]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
gdbserver: turn target op 'qxfer_siginfo' into a method
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
d7abedf7
TBA
12020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn process_stratum_target's qxfer_siginfo op into a method of
4 process_target.
5
6 * target.h (struct process_stratum_target): Remove the target op.
7 (class process_target): Add the target op. Also add
8 'supports_qxfer_siginfo'.
9 * target.cc (process_target::qxfer_siginfo): Define.
10 (process_target::supports_qxfer_siginfo): Define.
11
12 Update the derived classes and callers below.
13
14 * server.cc (handle_qxfer_siginfo): Update.
15 (handle_query): Update.
16 * linux-low.cc (linux_target_ops): Update.
17 (linux_process_target::supports_qxfer_siginfo): Define.
18 (linux_xfer_siginfo): Turn into ...
19 (linux_process_target::qxfer_siginfo): ... this.
20 * linux-low.h (class linux_process_target): Update.
21 * lynx-low.cc (lynx_target_ops): Update.
22 * nto-low.cc (nto_target_ops): Update.
23 * win32-low.cc (win32_target_ops): Update.
24
2d0795ee
TBA
252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
26
27 Turn process_stratum_target's qxfer_osdata op into a method of
28 process_target.
29
30 * target.h (struct process_stratum_target): Remove the target op.
31 (class process_target): Add the target op. Also add
32 'supports_qxfer_osdata'.
33 * target.cc (process_target::qxfer_osdata): Define.
34 (process_target::supports_qxfer_osdata): Define.
35
36 Update the derived classes and callers below.
37
38 * server.cc (handle_qxfer_osdata): Update.
39 (handle_query): Update.
40 * linux-low.cc (linux_target_ops): Update.
41 (linux_process_target::supports_qxfer_osdata): Define.
42 (linux_qxfer_osdata): Turn into ...
43 (linux_process_target::qxfer_osdata): ... this.
44 * linux-low.h (class linux_process_target): Update.
45 * lynx-low.cc (lynx_target_ops): Update.
46 * nto-low.cc (nto_target_ops): Update.
47 * win32-low.cc (win32_target_ops): Update.
48
ea06bbaa
TBA
492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
50
51 Turn process_stratum_target's hostio_last_error op into a
52 method of process_target.
53
54 * target.h (struct process_stratum_target): Remove the target op.
55 (class process_target): Add the target op.
56 * target.cc: Add "hostio.h" to includes.
57 (process_target::hostio_last_error): Define.
58
59 Update the derived classes and callers below.
60
61 * hostio.cc (hostio_error): Update.
62 * linux-low.cc: Remove "hostio.h" from includes.
63 (linux_target_ops): Update.
64 * lynx-low.cc (lynx_target_ops): Update.
65 * nto-low.cc (nto_target_ops): Update.
66 * win32-low.h (class win32_process_target): Update.
67 * win32-low.cc (win32_target_ops): Update.
68 (wince_hostio_last_error): Turn into ...
69 (win32_process_target::hostio_last_error): ... this.
70
6e3fd7e9
TBA
712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
72
73 Turn process_stratum_target's get_tls_address op into a method of
74 process_target.
75
76 * target.h (struct process_stratum_target): Remove the target op.
77 (class process_target): Add the target op. Also add
78 'supports_get_tls_address'.
79 * target.cc (process_target::get_tls_address): Define.
80 (process_target::supports_get_tls_address): Define.
81
82 Update the derived classes and callers below.
83
84 * server.cc (handle_query): Update.
85 * linux-low.cc (linux_target_ops): Update.
86 (linux_process_target::supports_get_tls_address): Define.
87 (linux_process_target::get_tls_address): Define.
88 * linux-low.h (class linux_process_target): Update.
89 * lynx-low.cc (lynx_target_ops): Update.
90 * nto-low.cc (nto_target_ops): Update.
91 * win32-low.cc (win32_target_ops): Update.
92
5203ae1e
TBA
932020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
94
95 Turn process_stratum_target's read_offsets op into a method of
96 process_target.
97
98 * target.h (struct process_stratum_target): Remove the target op.
99 (class process_target): Add the target op. Also add
100 'supports_read_offsets'.
101 * target.cc (process_target::read_offsets): Define.
102 (process_target::supports_read_offsets): Define.
103
104 Update the derived classes and callers below.
105
106 * server.cc (handle_query): Update.
107 * linux-low.cc (SUPPORTS_READ_OFFSETS): New #define directive.
108 (linux_target_ops): Update.
109 (linux_process_target::supports_read_offsets): Define.
110 (linux_read_offsets): Turn into ...
111 (linux_process_target::read_offsets): ... this.
112 * linux-low.h (class linux_process_target): Update.
113 * lynx-low.cc (lynx_target_ops): Update.
114 * nto-low.cc (nto_target_ops): Update.
115 * win32-low.cc (win32_target_ops): Update.
116
6eeb5c55
TBA
1172020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
118
119 Turn process_stratum_target's stopped_by_watchpoint and
120 stopped_data_address ops into methods of process_target.
121
122 * target.h (struct process_stratum_target): Remove the target ops.
123 (class process_target): Add the target ops.
124 * target.cc (process_target::stopped_by_watchpoint): Define.
125 (process_target::stopped_data_address): Define.
126
127 Update the derived classes and callers below.
128
129 * remote-utils.cc (prepare_resume_reply): Update.
130 * linux-low.cc (linux_target_ops): Update.
131 (linux_stopped_by_watchpoint): Turn into ...
132 (linux_process_target::stopped_by_watchpoint): ... this.
133 (linux_stopped_data_address): Turn into ...
134 (linux_process_target::stopped_data_address): ... this.
135 * linux-low.h (class linux_process_target): Update.
136 * lynx-low.cc (lynx_target_ops): Update.
137 * nto-low.cc (nto_target_ops): Update.
138 (nto_stopped_by_watchpoint): Turn into ...
139 (nto_process_target::stopped_by_watchpoint): ... this.
140 (nto_stopped_data_address): Turn into ...
141 (nto_process_target::stopped_data_address): ... this.
142 * nto-low.h (class nto_process_target): Update.
143 * win32-low.cc (win32_target_ops): Update.
144 (win32_stopped_by_watchpoint): Turn into ...
145 (win32_process_target::stopped_by_watchpoint): ... this.
146 (win32_stopped_data_address): Turn into ...
147 (win32_process_target::stopped_data_address): ... this.
148 * win32-low.h (class win32_process_target): Update.
149
22aa6223
TBA
1502020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
151
152 Turn process_stratum_target's supports_hardware_single_step op into
153 a method of process_target.
154
155 * target.h (struct process_stratum_target): Remove the target op.
156 (class process_target): Add the target op.
157 (target_supports_hardware_single_step): Update the macro.
158 (target_can_do_hardware_single_step): Remove declaration.
159 * target.cc (process_target::supports_hardware_single_step): Define.
160 (target_can_do_hardware_single_step): Remove.
161
162 Update the derived classes and callers below.
163
164 * linux-low.h (class linux_process_target): Update.
165 * linux-low.cc (linux_target_ops): Update.
166 (linux_supports_hardware_single_step): Turn into ...
167 (linux_process_target::supports_hardware_single_step): ... this.
168 * lynx-low.h (class lynx_process_target): Update.
169 * lynx-low.cc (lynx_target_ops): Update.
170 (lynx_process_target::supports_hardware_single_step): Define.
171 * nto-low.h (class nto_process_target): Update.
172 * nto-low.cc (nto_target_ops): Update.
173 (nto_process_target::supports_hardware_single_step): Define.
174 * win32-low.h (class win32_process_target): Update.
175 * win32-low.cc (win32_target_ops): Update.
176 (win32_process_target::supports_hardware_single_step): Define.
177
93fe88b2
TBA
1782020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
179
180 Turn process_stratum_target's {supports_}stopped_by_hw_breakpoint
181 ops into methods of process_target.
182
183 * target.h (struct process_stratum_target): Remove the target ops.
184 (class process_target): Add the target ops.
185 (target_stopped_by_hw_breakpoint): Update the macro.
186 (target_supports_stopped_by_hw_breakpoint): Update the macro.
187 * target.cc (process_target::stopped_by_hw_breakpoint): Define.
188 (process_target::supports_stopped_by_hw_breakpoint): Define.
189
190 Update the derived classes and callers below.
191
192 * linux-low.cc (linux_target_ops): Update.
193 (linux_stopped_by_hw_breakpoint): Turn into ...
194 (linux_process_target::stopped_by_hw_breakpoint): ... this.
195 (linux_supports_stopped_by_hw_breakpoint): Turn into ...
196 (linux_process_target::supports_stopped_by_hw_breakpoint): ... this.
197 * linux-low.h (class linux_process_target): Update.
198 * lynx-low.cc (lynx_target_ops): Update.
199 * nto-low.cc (nto_target_ops): Update.
200 * win32-low.cc (win32_target_ops): Update.
201
84320c4e
TBA
2022020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
203
204 Turn process_stratum_target's {supports_}stopped_by_sw_breakpoint
205 ops into methods of process_target.
206
207 * target.h (struct process_stratum_target): Remove the target ops.
208 (class process_target): Add the target ops.
209 (target_stopped_by_sw_breakpoint): Update the macro.
210 (target_supports_stopped_by_sw_breakpoint): Update the macro.
211 * target.cc (process_target::stopped_by_sw_breakpoint): Define.
212 (process_target::supports_stopped_by_sw_breakpoint): Define.
213
214 Update the derived classes and callers below.
215
216 * linux-low.cc (linux_target_ops): Update.
217 (linux_stopped_by_sw_breakpoint): Turn into ...
218 (linux_process_target::stopped_by_sw_breakpoint): ... this.
219 (linux_supports_stopped_by_sw_breakpoint): Turn into ...
220 (linux_process_target::supports_stopped_by_sw_breakpoint): ... this.
221 * linux-low.h (class linux_process_target): Update.
222 * lynx-low.cc (lynx_target_ops): Update.
223 * nto-low.cc (nto_target_ops): Update.
224 * win32-low.cc (win32_target_ops): Update.
225
7e0bde70
TBA
2262020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
227
228 Turn process_stratum_target's insert_point and remove_point ops
229 into methods of process_target.
230
231 * target.h (struct process_stratum_target): Remove the target ops.
232 (class process_target): Add the target ops.
233 * target.cc (process_target::insert_point): Define.
234 (process_target::remove_point): Define.
235
236 Update the derived classes and callers below.
237
238 * mem-break.cc (set_raw_breakpoint_at): Update.
239 (delete_raw_breakpoint): Update.
240 (uninsert_raw_breakpoint): Update.
241 (reinsert_raw_breakpoint): Update.
242 * linux-low.cc (linux_target_ops): Update.
243 (linux_insert_point): Turn into ...
244 (linux_process_target::insert_point): ... this.
245 (linux_remove_point): Turn into ...
246 (linux_process_target::remove_point): ... this.
247 * linux-low.h (class linux_process_target): Update.
248 * lynx-low.cc (lynx_target_ops): Update.
249 * nto-low.cc (nto_target_ops): Update.
250 (nto_insert_point): Turn into ...
251 (nto_process_target::insert_point): ... this.
252 (nto_remove_point): Turn into ...
253 (nto_process_target::remove_point): ... this.
254 * nto-low.h (class nto_process_target): Update.
255 * win32-low.cc (win32_target_ops): Update.
256 (win32_insert_point): Turn into ...
257 (win32_process_target::insert_point): ... this.
258 (win32_remove_point): Turn into ...
259 (win32_process_target::remove_point): ... this.
260 * win32-low.h (class win32_process_target): Update.
261
a2b2297a
TBA
2622020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
263
264 Turn process_stratum_target's supports_z_point_type op into a
265 method of process_target.
266
267 * target.h (struct process_stratum_target): Remove the target op.
268 (class process_target): Add the target op.
269 * target.cc (process_target::supports_z_point_type): Define.
270
271 Update the derived classes and callers below.
272
273 * mem-break.cc (z_type_supported): Update.
274 * linux-low.cc (linux_target_ops): Update.
275 (linux_supports_z_point_type): Turn into ...
276 (linux_process_target::supports_z_point_type): ... this.
277 * linux-low.h (class linux_process_target): Update.
278 * lynx-low.cc (lynx_target_ops): Update.
279 * nto-low.cc (nto_target_ops): Update.
280 (nto_supports_z_point_type): Turn into ...
281 (nto_process_target::supports_z_point_type): ... this.
282 * nto-low.h (class nto_process_target): Update.
283 * win32-low.cc (win32_target_ops): Update.
284 (win32_supports_z_point_type): Turn into ...
285 (win32_process_target::supports_z_point_type): ... this.
286 * win32-low.h (class win32_process_target): Update.
287
eac215cc
TBA
2882020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
289
290 Turn process_stratum_target's read_auxv op into a method of
291 process_target.
292
293 * target.h (class process_stratum_target): Remove the target op.
294 (struct process_target): Add the target op. Also add
295 'supports_read_auxv'.
296 * target.cc (process_target::read_auxv): Define.
297 (process_target::supports_read_auxv): Define.
298
299 Update the derived classes and callers below.
300
301 * server.cc (handle_qxfer_auxv): Update.
302 (handle_query): Update.
303 * linux-low.cc (linux_target_ops): Update.
304 (linux_process_target::supports_read_auxv): Define.
305 (linux_read_auxv): Turn into ...
306 (linux_process_target::read_auxv): ... this.
307 * linux-low.h (class linux_process_target): Update.
308 * lynx-low.cc (lynx_target_ops): Update.
309 * nto-low.cc (nto_target_ops): Update.
310 (nto_process_target::supports_read_auxv): Define.
311 (nto_read_auxv): Turn into ...
312 (nto_process_target::read_auxv): ... this.
313 * nto-low.h (class nto_process_target): Update.
314 * win32-low.cc (win32_target_ops): Update.
315
eb497a2a
TBA
3162020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
317
318 Turn process_stratum_target's request_interrupt op into a method of
319 process_target.
320
321 * target.h (struct process_stratum_target): Remove the target op.
322 (class process_target): Add the target op.
323
324 Update the derived classes and callers below.
325
326 * remote-utils.cc (putpkt_binary_1): Update.
327 (input_interrupt): Update.
328 (getpkt): Update.
329 * server.cc (handle_v_requests): Update.
330 * linux-low.cc (linux_target_ops): Update.
331 (linux_request_interrupt): Turn into ...
332 (linux_process_target::request_interrupt): ... this.
333 * linux-low.h (class linux_process_target): Update.
334 * lynx-low.cc (lynx_target_ops): Update.
335 (lynx_request_interrupt): Turn into ...
336 (lynx_process_target::request_interrupt): ... this.
337 * lynx-low.h (class lynx_process_target): Update.
338 * nto-low.cc (nto_target_ops): Update.
339 (nto_request_interrupt): Turn into ...
340 (nto_process_target::request_interrupt): ... this.
341 * nto-low.h (class nto_process_target): Update.
342 * win32-low.cc (win32_target_ops): Update.
343 (win32_request_interrupt): Turn into ...
344 (win32_process_target::request_interrupt): ... this.
345 * win32-low.h (class win32_process_target): Update.
346
2a31c7aa
TBA
3472020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
348
349 Turn process_stratum_target's look_up_symbols op into a method of
350 process_target.
351
352 * target.h (struct process_stratum_target): Remove the target op.
353 (class process_target): Add the target op.
354 * target.cc (process_target::look_up_symbols): Define.
355
356 Update the derived classes and callers below.
357
358 * server.cc (handle_query): Update.
359 * linux-low.cc (linux_target_ops): Update.
360 (linux_look_up_symbols): Turn into ...
361 (linux_process_target::look_up_symbols): ... this.
362 * linux-low.h (class linux_process_target): Update.
363 * lynx-low.cc (lynx_target_ops): Update.
364 * nto-low.cc (nto_target_ops): Update.
365 * win32-low.cc (win32_target_ops): Update.
366
e2558df3
TBA
3672020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
368
369 Turn process_stratum_target's read_memory and write_memory
370 ops into methods of process_target.
371
372 * target.h (struct process_stratum_target): Remove the target ops.
373 (class process_target): Add the target ops.
374
375 Update the derived classes and callers below.
376
377 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
378 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
379 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
380 (arm_get_syscall_trapinfo): Update.
381 * linux-cris-low.cc (cris_breakpoint_at): Update.
382 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
383 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
384 * linux-mips-low.cc (mips_breakpoint_at): Update.
385 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
386 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
387 * linux-sh-low.cc (sh_breakpoint_at): Update.
388 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
389 (sparc_store_gregset_from_stack): Update.
390 (sparc_breakpoint_at): Update.
391 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
392 * linux-tile-low.cc (tile_breakpoint_at): Update.
393 * linux-x86-low.cc (x86_breakpoint_at): Update.
394 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
395 * mem-brea.cc (insert_memory_breakpoint): Update.
396 (validate_inserted_breakpoint): Update.
397 * target.cc (read_inferior_memory): Update.
398 (target_write_memory): Update.
399 * linux-low.cc (linux_target_ops): Update.
400 (linux_read_memory): Make a wrapper around the read_memory target
401 op call.
402 (linux_process_target::read_memory): Rename from linux_read_memory.
403 (linux_write_memory): Turn into ...
404 (linux_process_target::write_memory): ... this.
405 * linux-low.h (class linux_process_target): Update.
406 * lynx-low.cc (lynx_target_ops): Update.
407 (lynx_read_memory): Turn into ...
408 (lynx_process_target::read_memory): ... this.
409 (lynx_write_memory): Turn into ...
410 (lynx_process_target::write_memory): ... this.
411 * lynx-low.h (class lynx_process_target): Update.
412 * nto-low.cc (nto_target_ops): Update.
413 (nto_read_memory): Turn into ...
414 (nto_process_target::read_memory): ... this.
415 (nto_write_memory): Turn into ...
416 (nto_process_target::write_memory): ... this.
417 * nto-low.h (class nto_process_target): Update.
418 * win32-low.cc (win32_target_ops): Update.
419 (win32_read_inferior_memory): Turn into ...
420 (win32_process_target::read_memory): ... this.
421 (win32_write_inferior_memory): Turn into ...
422 (win32_process_target::write_memory): ... this.
423 * win32-low.h (class win32_process_target): Update.
424
79b44087
TBA
4252020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
426
427 Turn process_stratum_target's prepare_to_access_memory and
428 done_accessing_memory ops into methods of process_target.
429
430 * target.h (struct process_stratum_target): Remove the target ops.
431 (class process_target): Add the target ops.
432 * target.cc (process_target::prepare_to_access_memory): Define.
433 (process_target::done_accessing_memory): Define.
434 (prepare_to_access_memory): Update.
435 (done_accessing_memory): Update.
436
437 Update the derived classes and callers below.
438
439 * linux-low.cc (linux_target_ops): Update.
440 (linux_prepare_to_access_memory): Turn into ...
441 (linux_process_target::prepare_to_access_memory): ... this.
442 (linux_done_accessing_memory): Turn into ...
443 (linux_process_target::done_accessing_memory): ... 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
a5a4d4cd
TBA
4492020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
450
451 Turn process_stratum_target's fetch_registers and store_registers
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 (fetch_inferior_registers): Update the macro.
457 (store_inferior_registers): Update the macro.
458
459 Update the derived classes and callers below.
460
461 * linux-low.cc (linux_target_ops): Update.
462 (linux_fetch_registers): Turn into ...
463 (linux_process_target::fetch_registers): ... this.
464 (linux_store_registers): Turn into ...
465 (linux_process_target::store_registers): ... this.
466 * linux-low.h (class linux_process_target): Update.
467 * lynx-low.cc (lynx_target_ops): Update.
468 (lynx_fetch_registers): Turn into ...
469 (lynx_process_target::fetch_registers): ... this.
470 (lynx_store_registers): Turn into ...
471 (lynx_process_target::store_registers): ... this.
472 * lynx-low.h (class lynx_process_target): Update.
473 * nto-low.cc (nto_target_ops): Update.
474 (nto_fetch_registers): Turn into ...
475 (nto_process_target::fetch_registers): ... this.
476 (nto_store_registers): Turn into ...
477 (nto_process_target::store_registers): ... this.
478 * nto-low.h (class nto_process_target): Update.
479 * win32-low.cc (win32_target_ops): Update.
480 (win32_fetch_inferior_registers): Turn into ...
481 (win32_process_target::fetch_registers): ... this.
482 (win32_store_inferior_registers): Turn into ...
483 (win32_process_target::store_registers): ... this.
484 * win32-low.h (class win32_process_target): Update.
485
6532e7e3
TBA
4862020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
487
488 Turn process_stratum_target's wait op into a method of
489 process_target.
490
491 * target.h (struct process_stratum_target): Remove the target op.
492 (class process_target): Add the target op.
493
494 Update the derived classes and callers below.
495
496 * target.cc (target_wait): Update.
497 * linux-low.cc (linux_target_ops): Update.
498 (linux_wait): Turn into ...
499 (linux_process_target::wait): ... this.
500 * linux-low.h (class linux_process_target): Update.
501 * lynx-low.cc (lynx_target_ops): Update.
502 (lynx_wait): Turn into ...
503 (lynx_process_target::wait): ... this.
504 * lynx-low.h (class lynx_process_target): Update.
505 * nto-low.cc (nto_target_ops): Update.
506 (nto_wait): Turn into ...
507 (nto_process_target::wait): ... this.
508 * nto-low.h (class nto_process_target): Update.
509 * win32-low.cc (win32_target_ops): Update.
510 (win32_wait): Turn into ...
511 (win32_process_target::wait): ... this.
512 (do_initial_child_stuff): Update.
513 * win32-low.h (class win32_process_target): Update.
514
0e4d7e35
TBA
5152020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
516
517 Turn process_stratum_target's resume op into a method of
518 process_target.
519
520 * target.h (struct process_stratum_target): Remove the target op.
521 (class process_target): Add the target op.
522
523 Update the derived classes and callers below.
524
525 * server.cc (resume): Update.
526 * target.cc (target_stop_and_wait): Update.
527 (target_continue_no_signal): Update.
528 (target_continue): Update.
529 * linux-low.cc (linux_target_ops): Update.
530 (linux_resume): Turn into ...
531 (linux_process_target::resume): ... this.
532 * linux-low.h (class linux_process_target): Update.
533 * lynx-low.cc (lynx_target_ops): Update.
534 (lynx_resume): Turn into ...
535 (lynx_process_target::resume): ... this.
536 * lynx-low.h (class lynx_process_target): Update.
537 * nto-low.cc (nto_target_ops): Update.
538 (nto_resume): Turn into ...
539 (nto_process_target::resume): ... this.
540 * nto-low.h (class nto_process_target): Update.
541 * win32-low.cc (win32_target_ops): Update.
542 (win32_resume): Turn into ...
543 (win32_process_target::resume): ... this.
544 (win32_process_target::detach): Update.
545 (do_initial_child_stuff): Update.
546 * win32-low.h (class win32_process_target): Update.
547
13d3d99b
TBA
5482020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
549
550 Turn process_stratum_target's thread_alive op into a method of
551 process_target.
552
553 * target.h (struct process_stratum_target): Remove the target op.
554 (class process_target): Add the target op.
555 (mythread_alive): Update the macro.
556
557 Update the derived classes and callers below.
558
559 * linux-low.cc (linux_target_ops): Update.
560 (linux_thread_alive): Turn into ...
561 (linux_process_target::thread_alive): ... this.
562 (wait_for_sigstop): Update.
563 * linux-low.h (class linux_process_target): Update.
564 * lynx-low.cc (lynx_target_ops): Update.
565 (lynx_thread_alive): Turn into ...
566 (lynx_process_target::thread_alive): ... this.
567 * lynx-low.h (class lynx_process_target): Update.
568 * nto-low.cc (nto_target_ops): Update.
569 (nto_thread_alive): Turn into ...
570 (nto_process_target::thread_alive): ... this.
571 * nto-low.h (class nto_process_target): Update.
572 * win32-low.cc (win32_target_ops): Update.
573 (win32_thread_alive): Turn into ...
574 (win32_process_target::thread_alive): ... this.
575 * win32-low.h (class win32_process_target): Update.
576
95a49a39
TBA
5772020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
578
579 Turn process_stratum_target's join op into a method of
580 process_target.
581
582 * target.h (struct process_stratum_target): Remove the target op.
583 (class process_target): Add the target op.
584 (join_inferior): Update the macro.
585
586 Update the derived classes and callers below.
587
588 * linux-low.cc (linux_target_ops): Update.
589 (linux_join): Turn into ...
590 (linux_process_target::join): ... this.
591 * linux-low.h (class linux_process_target): Update.
592 * lynx-low.cc (lynx_target_ops): Update.
593 (lynx_join): Turn into ...
594 (lynx_process_target::join): ... this.
595 * lynx-low.h (class lynx_process_target): Update.
596 * nto-low.cc (nto_target_ops): Update.
597 (nto_process_target::join): Define.
598 * nto-low.h (class nto_process_target): Update.
599 * win32-low.cc (win32_target_ops): Update.
600 (win32_join): Turn into ...
601 (win32_process_target::join): ... this.
602 * win32-low.h (class win32_process_target): Update.
603
8adb37b9
TBA
6042020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
605
606 Turn process_stratum_target's mourn op into a method of
607 process_target.
608
609 * target.h (struct process_stratum_target): Remove the target op.
610 (class process_target): Add the target op.
611
612 Update the derived classes and callers below.
613
614 * target.cc (target_mourn_inferior): Update.
615 * linux-low.cc (linux_target_ops): Update.
616 (linux_mourn): Turn into ...
617 (linux_process_target::mourn): ... this.
618 (handle_extended_wait): Update.
619 (linux_process_target::kill): Update.
620 (linux_process_target::detach): Update.
621 * linux-low.h (class linux_process_target): Update.
622 * lynx-low.cc (lynx_target_ops): Update.
623 (lynx_mourn): Turn into ...
624 (lynx_process_target::mourn): ... this.
625 * lynx-low.h (class lynx_process_target): Update.
626 * nto-low.cc (nto_target_ops): Update.
627 (nto_mourn): Turn into ...
628 (nto_process_target::mourn): ... this.
629 * nto-low.h (class nto_process_target): Update.
630 * win32-low.cc (win32_target_ops): Update.
631 (win32_mourn): Turn into ...
632 (win32_process_target::mourn): ... this.
633 * win32-low.h (class win32_process_target): Update.
634
9061c9cf
TBA
6352020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
636
637 Turn process_stratum_target's detach op into a method of
638 process_target.
639
640 * target.h (struct process_stratum_target): Remove the target op.
641 (class process_target): Add the target op.
642 (detach_inferior): Update the macro.
643
644 Update the derived classes and callers below.
645
646 * linux-low.cc (linux_target_ops): Update.
647 (linux_detach): Turn into ...
648 (linux_process_target::detach): ... this.
649 * linux-low.h (class linux_process_target): Update.
650 * lynx-low.cc (lynx_target_ops): Update.
651 (lynx_detach): Turn into ...
652 (lynx_process_target::detach): ... this.
653 * lynx-low.h (class lynx_process_target): Update.
654 * nto-low.cc (nto_target_ops): Update.
655 (nto_detach): Turn into ...
656 (nto_process_target::detach): ... this.
657 * nto-low.h (class nto_process_target): Update.
658 * win32-low.cc (win32_target_ops): Update.
659 (win32_detach): Turn into ...
660 (win32_process_target::detach): ... this.
661 * win32-low.h (class win32_process_target): Update.
662
c6885a57
TBA
6632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
664
665 Turn process_stratum_target's kill op into a method of
666 process_target.
667
668 * target.h (struct process_stratum_target): Remove the target op.
669 (class process_target): Add the target op.
670
671 Update the derived classes and callers below.
672
673 * target.cc (kill_inferior): Update.
674 * linux-low.cc (linux_target_ops): Update.
675 (linux_kill): Turn into ...
676 (linux_process_target::kill): ... this.
677 * linux-low.h (class linux_process_target): Update.
678 * lynx-low.cc (lynx_target_ops): Update.
679 (lynx_kill): Turn into ...
680 (lynx_process_target::kill): ... this.
681 * lynx-low.h (class lynx_process_target): Update.
682 * nto-low.cc (nto_target_ops): Update.
683 (nto_kill): Turn into ...
684 (nto_process_target::kill): ... this.
685 * nto-low.h (class nto_process_target): Update.
686 * win32-low.cc (win32_target_ops): Update.
687 (win32_kill): Turn into ...
688 (win32_process_target::kill): ... this.
689 * win32-low.h (class win32_process_target): Update.
690
ef03dad8
TBA
6912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
692
693 Turn process_stratum_target's attach op into a method of
694 process_target.
695
696 * target.h (struct process_stratum_target): Remove the target op.
697 (class process_target): Add the target op.
698 (myattach): Update the macro.
699
700 Update the derived classes and callers below.
701
702 * linux-low.cc (linux_target_ops): Update.
703 (linux_attach): Turn into ...
704 (linux_process_target::attach): ... this.
705 * linux-low.h (class linux_process_target): Update.
706 * lynx-low.cc (lynx_target_ops): Update.
707 (lynx_attach): Turn into ...
708 (lynx_process_target::attach): ... this.
709 * lynx-low.h (class lynx_process_target): Update.
710 * nto-low.cc (nto_target_ops): Update.
711 (nto_attach): Turn into ...
712 (nto_process_target::attach): ... this.
713 * nto-low.h (class nto_process_target): Update.
714 * win32-low.cc (win32_target_ops): Update.
715 (win32_attach): Turn into ...
716 (win32_process_target::attach): ... this.
717 * win32-low.h (class win32_process_target): Update.
718
6dee9afb
TBA
7192020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
720
721 Turn process_stratum_target's post_create_inferior op into a method
722 of process_target.
723
724 * target.h (struct process_stratum_target): Remove the target op.
725 (class process_target): Add the target op.
726 (target_post_create_inferior): Update the macro.
727 * target.cc (process_target::post_create_inferior): Define.
728
729 Update the derived classes and callers below.
730
731 * linux-low.cc (linux_target_ops): Update.
732 (linux_post_create_inferior): Turn into ...
733 (linux_process_target::post_create_inferior): ... this.
734 * linux-low.h (class linux_process_target): Update.
735 * lynx-low.cc (lynx_target_ops): Update.
736 * nto-low.cc (nto_target_ops): Update.
737 * win32-low.cc (win32_target_ops): Update.
738
15295543
TBA
7392020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
740
741 Turn process_stratum_target's create_inferior op into a method of
742 process_target.
743
744 * target.h (struct process_stratum_target): Remove the target op.
745 (class process_target): Add the target op.
746 (create_inferior): Rename the macro to ...
747 (target_create_inferior): ... this.
748
749 Update the derived classes and callers below.
750
751 * server.cc (handle_v_run): Update.
752 (captured_main): Update.
753 (process_serial_event): Update.
754 * linux-low.cc (linux_target_ops): Update.
755 (linux_create_inferior): Turn into ...
756 (linux_process_target::create_inferior): ... this.
757 * linux-low.h (class linux_process_target): Update.
758 * lynx-low.cc (lynx_target_ops): Update.
759 (lynx_create_inferior): Turn into ...
760 (lynx_process_target::create_inferior): ... this.
761 * lynx-low.h (class lynx_process_target): Update.
762 * nto-low.cc (nto_target_ops): Update.
763 (nto_create_inferior): Turn into ...
764 (nto_process_target::create_inferior): ... this.
765 * nto-low.h (class nto_process_target): Update.
766 * win32-low.cc (win32_target_ops): Update.
767 (win32_create_inferior): Turn into ...
768 (win32_process_target::create_inferior): ... this.
769 * win32-low.h (class win32_process_target): Update.
770
5ef9273d
TBA
7712020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
772
773 * target.h (class process_target): New class definition.
774 (struct process_stratum_target) <pt>: New field with type
775 'process_target*'.
776 * linux-low.h (class linux_process_target): Define as a derived
777 class of 'process_target'.
778 * linux-low.cc (linux_target_ops): Add a linux_process_target*
779 as the 'pt' field.
780 * lynx-low.h (class lynx_process_target): Define as a derived
781 class of 'process_target'.
782 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
783 as the 'pt' field.
784 * nto-low.h (class nto_process_target): Define as a derived
785 class of 'process_target'.
786 * nto-low.cc (nto_target_ops): Add an nto_process_target*
787 as the 'pt' field.
788 * win32-low.h (class win32_process_target): Define as a derived
789 class of 'process_target'.
790 * win32-low.cc (win32_target_ops): Add a win32_process_target*
791 as the 'pt' field.
792
9f1528a1
AB
7932020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
794
795 * configure: Regenerate.
796
bf84f706
MR
7972020-02-19 Maciej W. Rozycki <macro@wdc.com>
798 Andrew Burgess <andrew.burgess@embecosm.com>
799
800 * linux-riscv-low.cc: New file.
801 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
802 and nat/riscv-linux-tdesc.c.
803 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
804 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
805 Define.
806
1a627e7e
TT
8072020-02-14 Tom Tromey <tom@tromey.com>
808
809 * acinclude.m4: Don't include acx_configure_dir.m4.
810 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
811 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
812 (all, install-only, uninstall, clean-info, clean)
813 (maintainer-clean): Don't recurse.
814 (subdir_do, all-lib): Remove.
815 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
816 (GNULIB_H): Remove.
817 (generated_files): Update.
818 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
819 * configure: Rebuild.
820 * configure.ac: Don't configure gnulib or libiberty.
821 (GNULIB): Update.
822
a9b34532
EZ
8232020-02-14 Eli Zaretskii <eliz@gnu.org>
824
825 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
826 preparing the command line for CreateProcess.
827 (win32_create_inferior): Reflect the program name in debugging
828 output that shows the process and its command line.
829
feacfcac
SM
8302020-02-13 Simon Marchi <simon.marchi@efficios.com>
831
832 * Makefile.in: Rename source files from .c to .cc.
833 * %.c: Rename to %.cc.
834 * configure.ac: Rename server.c to server.cc.
835 * configure: Re-generate.
836
06b3c5bd
SM
8372020-02-13 Simon Marchi <simon.marchi@efficios.com>
838
839 * Makefile.in: Rename gdbsupport source files from .c to .cc.
840
052793ad
HD
8412020-02-12 Hannes Domani <ssbssa@yahoo.de>
842
843 * win32-low.c (win32_create_inferior): Set signal_pid.
844
f20e3e82
MR
8452020-02-12 Maciej W. Rozycki <macro@wdc.com>
846 Pedro Alves <palves@redhat.com>
847
848 Skip building gdbserver in a cross-configuration.
849 * configure.srv: Set $gdbserver_host depending on whether $target
850 is $host. Use $gdbserver_host instead of $host.
851
8ddd8e0e
SM
8522020-02-11 Simon Marchi <simon.marchi@efficios.com>
853
854 * configure: Re-generate.
855
898e7f60
SM
8562020-02-11 Simon Marchi <simon.marchi@efficios.com>
857
858 * configure: Re-generate.
859
58df732b
SM
8602020-02-11 Simon Marchi <simon.marchi@efficios.com>
861
862 * acinclude.m4: Update warning.m4 path.
863
7928d571
HD
8642020-02-09 Hannes Domani <ssbssa@yahoo.de>
865
866 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
867 (handle_exception): Set siginfo_er.
868 (win32_xfer_siginfo): New function.
869
919adfe8
TT
8702020-02-07 Tom Tromey <tom@tromey.com>
871 Pedro Alves <palves@redhat.com>
872
873 * README: Update build documentation.
874 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
875 host, not target.
876 * configure.ac: Update paths.
877 * configure: Rebuild.
878 * acinclude.m4: Update paths.
879 * Makefile.in: Update include paths.
880 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
881 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
882 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
883 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
884 (%-generated.c): Update paths.
885 * Move entire directory from ../gdb/gdbserver.
886
287c844a
MR
8872020-01-29 Maciej W. Rozycki <macro@wdc.com>
888
889 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
890
548a204f
PFC
8912020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
892
893 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
894 assignment instead of srv_linux_obj.
895
a2236a08
HD
8962020-01-28 Hannes Domani <ssbssa@yahoo.de>
897
898 * server.c (handle_qxfer_libraries): Write segment-address with
899 paddress.
900
bdaed379
HD
9012020-01-24 Hannes Domani <ssbssa@yahoo.de>
902
903 * Makefile.in (install-strip): New target.
904 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
905 * aclocal.m4: Regenerate.
906 * configure: Regenerate.
907 * configure.ac: Add AM_PROG_INSTALL_STRIP.
908
42cd72aa
MR
9092020-01-24 Maciej W. Rozycki <macro@wdc.com>
910
911 * Makefile.in (SFILES): Adjust paths to point to real files.
912 (OBS): Move waitstatus.o to target/waitstatus.o.
913 (TAGS): Transform paths appropriately.
914 (%.o): Rename to...
915 (nat/%.o): ... this pattern rule.
916 (%.o): Rename to...
917 (target/%.o): ... this pattern rule.
918 * configure.srv: Adjust paths throughout to include nat/ prefix
919 with the revant files.
920 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
921 * configure: Regenerate.
922
42ba50ec
MR
9232020-01-24 Maciej W. Rozycki <macro@wdc.com>
924
925 * Makefile.in (TAGS): Remove config files from the recipe.
926
05ea2a05
TT
9272020-01-14 Tom Tromey <tom@tromey.com>
928
929 * configure: Rebuild.
930 * configure.ac: Remove any checks that were added to common.m4.
931 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
932 lib-link.m4.
933
01027315
TT
9342020-01-14 Tom Tromey <tom@tromey.com>
935
936 * server.h: Include config.h.
937 * gdbreplay.c: Include config.h.
938 * configure: Rebuild.
939 * configure.ac: Don't source common.host.
940 * acinclude.m4: Update path.
941 * Makefile.in (INCSUPPORT): New variable.
942 (INCLUDE_CFLAGS): Add INCSUPPORT.
943 (SFILES): Update paths.
944 (version-generated.c): Update path to create-version.sh.
945 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
946
b2ceabe8
TT
9472020-01-14 Tom Tromey <tom@tromey.com>
948
949 * configure.ac (LIBS): Use WIN32APILIBS.
950 (USE_WIN32API): Don't define.
951 * configure: Rebuild.
952
25c51f71
TT
9532020-01-14 Tom Tromey <tom@tromey.com>
954
955 * configure: Rebuild.
956
c0bd321d
SM
9572020-01-13 Simon Marchi <simon.marchi@efficios.com>
958
959 * Makefile.in (%-generated.c): Remove rule for files from
960 regformats/i386.
961
bb564c58
SM
9622020-01-13 Simon Marchi <simon.marchi@efficios.com>
963
964 * configure: Re-generate.
965
6e37c371
SM
9662020-01-13 Simon Marchi <simon.marchi@efficios.com>
967
968 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
969 Define to static.
970 * tracepoint.c (stop_tracing, flush_trace_buffer,
971 about_to_request_buffer_space, get_trace_state_variable_value,
972 set_trace_state_variable_value, gdb_collect): Add declaration.
973
df4a0200
SM
9742020-01-13 Simon Marchi <simon.marchi@efficios.com>
975
976 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
977 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
978 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
979 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
980 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
981 static.
982
89e94ec9
SM
9832020-01-13 Simon Marchi <simon.marchi@efficios.com>
984
985 * inferiors.c: Include gdbsupport/common-inferior.h.
986
2552728a
SM
9872020-01-13 Simon Marchi <simon.marchi@efficios.com>
988
989 * hostio-errno.c: Include hostio.h.
990
4025fa09
SM
9912020-01-13 Simon Marchi <simon.marchi@efficios.com>
992
993 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
994 prerequisite.
995
c0b0a142
SM
9962020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
997
998 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
999 * linux-arm-tdesc.h: Include arch/arm.h.
1000
bb1183e2
SM
10012020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1002
1003 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
1004
f5df0b5f
SM
10052020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
1006
1007 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
1008 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
1009
5b6d1e4f
PA
10102020-01-10 Pedro Alves <palves@redhat.com>
1011
1012 * fork-child.c (post_fork_inferior): Pass target down to
1013 startup_inferior.
1014 * inferiors.c (switch_to_thread): Add process_stratum_target
1015 parameter.
1016 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
1017 * nto-low.c (nto_target_ops): Now a process_stratum_target.
1018 * linux-low.c (linux_target_ops): Now a process_stratum_target.
1019 * remote-utils.c (prepare_resume_reply): Pass the target to
1020 switch_to_thread.
1021 * target.c (the_target): Now a process_stratum_target.
1022 (done_accessing_memory): Pass the target to switch_to_thread.
1023 (set_target_ops): Ajust to use process_stratum_target.
1024 * target.h (struct target_ops): Rename to ...
1025 (struct process_stratum_target): ... this.
1026 (the_target, set_target_ops): Adjust.
1027 (prepare_to_access_memory): Adjust comment.
1028 * win32-low.c (child_xfer_memory): Adjust to use
1029 process_stratum_target.
1030 (win32_target_ops): Now a process_stratum_target.
1031
559e7e50
EZ
10322020-01-06 Eli Zaretskii <eliz@gnu.org>
1033 Pedro Alves <palves@redhat.com>
1034
1035 * win32-low.c (get_child_debug_event): Extract the fatal exception
1036 from the exit status and convert to the equivalent Posix signal
1037 number.
1038 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
1039 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
1040
48189bec
HD
10412020-01-01 Hannes Domani <ssbssa@yahoo.de>
1042
1043 * Makefile.in: Use INSTALL_PROGRAM_ENV.
1044
5dd8bf88
JB
10452020-01-01 Joel Brobecker <brobecker@adacore.com>
1046
1047 * server.c (gdbserver_version): Change copyright year to 2020.
1048 * gdbreplay.c (gdbreplay_version): Likewise.
1049
0ad6b8ee
CB
10502019-12-19 Christian Biesinger <cbiesinger@google.com>
1051
1052 * configure: Regenerate.
1053 * configure.ac: Quote variable arguments of test.
1054
1ee7b812
BE
10552019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1056
1057 * Makefile.in: Fix build with GNU Make 3.81
1058
d9fa87f4
TT
10592019-12-16 Tom Tromey <tromey@adacore.com>
1060
1061 * server.c (get_exec_file): Constify result.
1062
ab7d13f0
CB
10632019-12-10 Christian Biesinger <cbiesinger@google.com>
1064
1065 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
1066 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
1067 * config.in: Regenerate.
1068 * configure: Regenerate.
1069 * configure.ac: Don't check for strerror.
1070 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
1071 Call safe_strerror instead of strerror.
1072 * server.h (strerror): Remove this now-unnecessary declaration.
1073 * tracepoint.c (init_named_socket): Call safe_strerror instead of
1074 strerror.
1075 (gdb_agent_helper_thread): Likewise.
1076 * utils.c (perror_with_name): Likewise.
1077
4da8c3a8
TT
10782019-11-26 Tom Tromey <tom@tromey.com>
1079
1080 * configure, config.in: Rebuild.
1081
21987b9c
TT
10822019-11-26 Tom Tromey <tom@tromey.com>
1083
1084 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
1085 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
1086 gdb_sigmask.
1087 * configure, config.in: Rebuild.
1088
5e030278
TT
10892019-11-26 Tom Tromey <tom@tromey.com>
1090
1091 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
1092 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
1093 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
1094 * acinclude.m4: Include ax_pthread.m4.
1095 * config.in, configure: Rebuild.
1096
6d91ce9a
CB
10972019-11-26 Christian Biesinger <cbiesinger@google.com>
1098
1099 * debug.c (debug_set_output): Call safe_strerror instead of
1100 strerror.
1101 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
1102 (linux_kill_one_lwp): Likewise.
1103 (linux_detach_one_lwp): Likewise.
1104 (linux_wait_for_event_filtered): Likewise.
1105 (store_register): Likewise.
1106 * lynx-low.c (lynx_attach): Likewise.
1107 * mem-break.c (insert_memory_breakpoint): Likewise.
1108 (remove_memory_breakpoint): Likewise.
1109 (delete_fast_tracepoint_jump): Likewise.
1110 (set_fast_tracepoint_jump): Likewise.
1111 (uninsert_fast_tracepoint_jumps_at): Likewise.
1112 (reinsert_fast_tracepoint_jumps_at): Likewise.
1113 * nto-low.c (nto_xfer_memory): Likewise.
1114 (nto_resume): Likewise.
1115
6cdd651f
LM
11162019-11-20 Luis Machado <luis.machado@linaro.org>
1117
1118 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
1119 instead of register count.
1120 * tdesc.c (tdesc_contains_feature): New function.
1121 * tdesc.h (tdesc_contains_feature): New prototype.
1122
cd850b40
CB
11232019-11-15 Christian Biesinger <cbiesinger@google.com>
1124
1125 * Makefile.in: Add safe-strerror.c.
1126 * configure: Regenerate.
1127 * configure.ac: Don't source common.host.
1128
5abebf3c
CB
11292019-11-15 Christian Biesinger <cbiesinger@google.com>
1130
1131 * config.in: Regenerate.
1132 * configure: Regenerate.
1133
e06f3d6e
AB
11342019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
1135
1136 * ax.c (ax_printf): Handle size_t_arg.
1137
ca3a04f6
CB
11382019-11-06 Christian Biesinger <cbiesinger@google.com>
1139
1140 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
1141 * mi/mi-main.c (output_cores): Likewise.
1142 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
1143 (linux_xfer_osdata_modules): Likewise.
1144 * remote.c (register_remote_support_xml): Likewise.
1145 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
1146 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
1147
e48f6033
CB
11482019-11-01 Christian Biesinger <cbiesinger@google.com>
1149
1150 * configure: Regenerate.
1151 * configure.ac: Remove check for strerror_r.
1152
e7e97a2e
CB
11532019-10-31 Christian Biesinger <cbiesinger@google.com>
1154
1155 * config.in: Regenerate.
1156 * configure: Regenerate.
1157 * configure.ac: Also check for strerror_r.
1158
75cafaa6
CB
11592019-10-31 Christian Biesinger <cbiesinger@google.com>
1160
1161 * ax.h (debug_agent): Remove duplicate declaration.
1162
30baf67b
TV
11632019-10-26 Tom de Vries <tdevries@suse.de>
1164
1165 * linux-aarch64-low.c: Fix typos in comments.
1166 * linux-arm-low.c: Same.
1167 * linux-low.c: Same.
1168 * linux-ppc-low.c: Same.
1169 * proc-service.c: Same.
1170 * regcache.h: Same.
1171 * server.c: Same.
1172 * tracepoint.c: Same.
1173 * win32-low.c: Same.
1174
52c64cf7
TT
11752019-10-25 Tom Tromey <tromey@adacore.com>
1176
1177 * utils.c (xstrdup): Remove.
1178
c12d372d
TT
11792019-10-23 Tom Tromey <tom@tromey.com>
1180
1181 * configure, config.in: Rebuild.
1182
4d0b984b
TT
11832019-10-23 Tom Tromey <tom@tromey.com>
1184
1185 * configure: Rebuild.
1186 * acinclude.m4: Use m4_include, not sinclude.
1187
c5adaa19
TT
11882019-10-17 Tom Tromey <tromey@adacore.com>
1189
1190 * configure: Rebuild.
1191 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
1192 in AC_CONFIG_FILES invocation.
1193 * Makefile.in (stamp-h, Makefile): Use new-style config.status
1194 invocation.
1195
fec4e896
CB
11962019-10-16 Christian Biesinger <cbiesinger@google.com>
1197
1198 * server.c: Include xml-builtin.h.
1199 (get_xml_features): Don't declare xml_builtins here.
1200
00975ff6
AB
12012019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1202
1203 * Makefile.in: Remove references to vec-ipa.o.
1204
0dc32745
AB
12052019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
1206
1207 * Makefile.in: Remove references to vec.c.
1208
3e6ec53a
CB
12092019-10-02 Christian Biesinger <cbiesinger@google.com>
1210
1211 * server.c (server_waiting): Change to bool.
1212 (extended_protocol): Likewise.
1213 (response_needed): Likewise.
1214 (exit_requested): Likewise.
1215 (run_once): Likewise.
1216 (report_no_resumed): Likewise.
1217 (non_stop): Likewise.
1218 (disable_packet_vCont): Likewise.
1219 (disable_packet_Tthread): Likewise.
1220 (disable_packet_qC): Likewise.
1221 (disable_packet_qfThreadInfo): Likewise.
1222 (handle_general_set): Update.
1223 (handle_detach): Update.
1224 (handle_monitor_command): Update.
1225 (handle_query): Update.
1226 (captured_main): Update.
1227 (process_serial_event): Update.
1228 * server.h (server_waiting): Change to bool.
1229 (disable_packet_vCont): Likewise.
1230 (disable_packet_Tthread): Likewise.
1231 (disable_packet_qC): Likewise.
1232 (disable_packet_qfThreadInfo): Likewise.
1233 (run_once): Likewise.
1234 (non_stop): Likewise.
1235 * target.c (target_stop_and_wait): Update.
1236
80fd2826
TT
12372019-10-02 Tom Tromey <tromey@adacore.com>
1238
1239 * Makefile.in (SFILES): Add common-inferior.c.
1240 (OBS): Add common-inferior.o.
1241 * server.c (startup_with_shell): Don't define.
1242
46f29a9a
AB
12432019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1244
1245 * linux-low.c (linux_low_read_btrace): Update for change to
1246 std::vector.
1247
f9d949fb
CB
12482019-09-20 Christian Biesinger <cbiesinger@google.com>
1249
1250 * debug.c (debug_threads): Remove comment in favor of the header.
1251 * debug.h (using_threads): Add declaration.
1252 (debug_threads): Add comment.
1253 * linux-aarch64-low.c: Include debug.h and remove declaration of
1254 debug_threads.
1255 * nto-low.c: Likewise.
1256 * remote-utils.c: Likewise.
1257 * thread-db.c: Likewise.
1258
abf516c6
UW
12592019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1260
1261 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
1262 and powerpc-cell64l-ipa.o.
1263 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
1264 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
1265 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
1266 (spu*-*-*): Remove.
1267
1268 * spu-low.c: Remove file.
1269
1270 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
1271 (parse_spufs_run): Remove.
1272 (ppc_get_pc): Remove Cell/B.E. support.
1273 (ppc_set_pc): Likewise.
1274 (ppc_breakpoint_at): Likewise.
1275 (ppc_arch_setup): Likewise.
1276 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
1277 tdesc_powerpc_cell32l.
1278 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
1279 or init_registers_powerpc_cell32l.
1280 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
1281 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
1282 or init_registers_powerpc_cell32l.
1283 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
1284 (init_registers_powerpc_cell32l): Remove prototype.
1285 (init_registers_powerpc_cell64l): Likewise.
1286
1287 * target.h (struct target_ops): Remove qxfer_spu member.
1288 * server.c (handle_qxfer_spu): Remove.
1289 (qxfer_packets): Remove entry for "spu".
1290 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
1291 * linux-low.c (SPUFS_MAGIC): Remove.
1292 (spu_enumerate_spu_ids): Remove.
1293 (linux_qxfer_spu): Remove.
1294 (linux_target_ops): Remove qxfer_spu member.
1295 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
1296 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
1297 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
1298
2d41fa11
SDJ
12992019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1300
1301 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
1302 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
1303 * config.in: Regenerate.
1304 * configure: Regenerate.
1305
d59b55f0
TT
13062019-08-15 Tom Tromey <tromey@adacore.com>
1307
1308 * target.c (target_write_memory): Use gdb::byte_vector.
1309
4196ab2a
TT
13102019-08-15 Tom Tromey <tromey@adacore.com>
1311
1312 * tracepoint.c (write_inferior_data_pointer)
1313 (write_inferior_integer, write_inferior_int8)
1314 (write_inferior_uinteger, m_tracepoint_action_download)
1315 (r_tracepoint_action_download, x_tracepoint_action_download)
1316 (l_tracepoint_action_download, clear_inferior_trace_buffer)
1317 (download_agent_expr, download_tracepoint_1)
1318 (download_trace_state_variables, upload_fast_traceframes): Update.
1319 * server.c (gdb_write_memory): Update.
1320 * remote-utils.c (relocate_instruction): Update.
1321 * proc-service.c (ps_pdwrite): Update.
1322 * mem-break.c (remove_memory_breakpoint)
1323 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
1324 (uninsert_fast_tracepoint_jumps_at)
1325 (reinsert_fast_tracepoint_jumps_at): Update.
1326 * linux-x86-low.c (append_insns)
1327 (i386_install_fast_tracepoint_jump_pad)
1328 (amd64_write_goto_address, i386_write_goto_address): Update.
1329 * linux-s390-low.c (append_insns, s390_write_goto_address):
1330 Update.
1331 * linux-ppc-low.c (ppc_relocate_instruction)
1332 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
1333 (ppc_write_goto_address): Update.
1334 * linux-aarch64-low.c (append_insns): Update.
1335 * target.h (struct target_ops): Update.
1336 (write_inferior_memory): Don't declare.
1337 * target.c (target_write_memory): Rename from
1338 write_inferior_memory. Remove old target_write_memory.
1339
c6778d00
TT
13402019-08-15 Tom Tromey <tromey@adacore.com>
1341
1342 * target.c (write_inferior_memory): Use std::vector.
1343
404f2902
FCE
13442019-08-06 Frank Ch. Eigler <fche@redhat.com>
1345
1346 PR build/24886
1347 * configure.ac: Drop enable-libmcheck support.
1348 * configure, config.in: Rebuild.
1349 * acinclude.m4: Don't include it.
1350
4c5aa8e0
AH
13512019-07-19 Alan Hayward <alan.hayward@arm.com>
1352
1353 * configure.srv: Remove Arm xml files.
1354
7cc17433
AH
13552019-07-19 Alan Hayward <alan.hayward@arm.com>
1356
1357 * configure.srv: Add new files. Remove xml generated files.
1358 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
1359 registers.
1360 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
1361 * linux-aarch32-tdesc.c: New file.
1362 * linux-aarch32-tdesc.h: New file.
1363 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
1364 * linux-arm-low.c (init_registers_arm, tdesc_arm)
1365 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
1366 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
1367 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
1368 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
1369 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
1370 (arm_read_description): Call arm_linux_read_description.
1371 (initialize_low_arch): Don't init registers.
1372 * linux-arm-tdesc.c: New file.
1373 * linux-arm-tdesc.h: New file.
1374
166a82be
AH
13752019-07-10 Alan Hayward <alan.hayward@arm.com>
1376
1377 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
1378 Move counter inside for.
1379 (arm_read_description): Check ptrace earlier.
1380 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
1381
268a13a5
TT
13822019-07-09 Tom Tromey <tom@tromey.com>
1383
1384 * configure: Rebuild.
1385 * configure.ac: Change common to gdbsupport.
1386 * acinclude.m4: Change common to gdbsupport.
1387 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
1388 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
1389 common to gdbsupport.
1390 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
1391 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
1392 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
1393 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
1394 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
1395 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
1396 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
1397 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
1398 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
1399 common to gdbsupport.
1400
350fab54
AH
14012019-07-04 Alan Hayward <alan.hayward@arm.com>
1402
1403 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
1404 defines.
1405 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
1406
2b40fda7
AH
14072019-07-04 Alan Hayward <alan.hayward@arm.com>
1408
1409 * configure.srv: Remove legacy xml.
1410 * linux-aarch64-low.c (initialize_low_arch): Remove
1411 initialize_low_tdesc call.
1412 * linux-aarch64-tdesc-selftest.c: Remove file.
1413 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
1414 * linux-x86-low.c (initialize_low_arch): Remove
1415 initialize_low_tdesc call.
1416 * linux-x86-tdesc-selftest.c: Remove file.
1417 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
1418
7d10623d
TV
14192019-06-20 Tom de Vries <tdevries@suse.de>
1420
1421 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
1422 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
1423
8d6a48df
TV
14242019-06-19 Tom de Vries <tdevries@suse.de>
1425
1426 * debug.h (debug_write): Change return type to ssize_t.
1427 * debug.c (debug_write): Same.
1428
73cc7272
TT
14292019-06-14 Tom Tromey <tom@tromey.com>
1430
1431 * configure.ac: Use new path to gnulib.
1432 * configure: Rebuild.
1433 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
1434 to gnulib.
1435
08f10e02
TT
14362019-06-11 Tom Tromey <tom@tromey.com>
1437
1438 * Makefile.in (SFILES): Add alloc.c.
1439 (OBS): Add alloc.o.
1440 (IPA_OBJS): Add alloc-ipa.o.
1441 (alloc-ipa.o): New target.
1442 (%.o: ../%.c): New pattern rule.
1443
422186a9
TT
14442019-06-10 Tom Tromey <tromey@adacore.com>
1445
1446 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
1447 end warning with a newline.
1448 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
1449 newline.
1450 * thread-db.c (attach_thread): Don't end warning with a newline.
1451 (thread_db_notice_clone): Likewise.
1452 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
1453 newline.
1454 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
1455 end warning with a newline.
1456
b02f78f9
PA
14572019-06-04 Pedro Alves <palves@redhat.com>
1458
1459 * server.c (captured_main): Use make_unique_xstrdup.
1460
88ed7edb
TT
14612019-06-02 Tom Tromey <tom@tromey.com>
1462
1463 * gdbreplay.c (fromhex): Remove.
1464 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
1465
33a6bc35
TT
14662019-05-29 Tom Tromey <tromey@adacore.com>
1467
1468 * configure: Rebuild.
1469
e90a813d
KB
14702019-05-06 Kevin Buettner <kevinb@redhat.com>
1471
1472 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
1473 sign extension code on 32-bit builds.
1474
353ea2d1
EZ
14752019-05-03 Eli Zaretskii <eliz@gnu.org>
1476
1477 * remote-utils.c:
1478 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
1479
b494cdff
TT
14802019-04-19 Tom Tromey <tom@tromey.com>
1481
1482 * server.c (struct vstop_notif): Derive from notif_event.
1483 <base>: Remove.
1484 (queue_stop_reply): Update.
1485 (remove_all_on_match_ptid): Change type. Rewrite.
1486 (discard_queued_stop_replies): Rewrite.
1487 (in_queued_stop_replies_ptid): Change type.
1488 (in_queued_stop_replies): Rewrite.
1489 (notif_stop): Update.
1490 (queue_stop_reply_callback): Update.
1491 (captured_main): Don't call initialize_notif.
1492 (push_stop_notification): Update.
1493 * notif.c (notif_write_event, handle_notif_ack)
1494 (notif_event_enque, notif_push): Update.
1495 (notif_event_xfree, initialize_notif): Remove.
1496 * notif.h (struct notif_event): Include <list>, not
1497 "common/queue.h".
1498 (struct notif_server) <queue>: Now a std::list.
1499 (notif_event_p): Remove typedef.
1500 (initialize_notif): Don't declare.
1501 (struct notif_event): Add virtual destructor.
1502
a7e559cc
AH
15032019-04-17 Alan Hayward <alan.hayward@arm.com>
1504
1505 * ax.c (ax_vdebug): Call debug_printf.
1506 * debug.c (debug_write): New function.
1507 * debug.h (debug_write): New declaration.
1508 * linux-low.c (sigchld_handler): Call debug_write.
1509
aeb2e706
AH
15102019-04-17 Alan Hayward <alan.hayward@arm.com>
1511
1512 * debug.c (debug_set_output): New function.
1513 (debug_vprintf): Send output to debug_file.
1514 (debug_flush): Likewise.
1515 * debug.h (debug_set_output): New declaration.
1516 * server.c (handle_monitor_command): Add debug-file option.
1517 (captured_main): Likewise.
1518
c1bc0935
AH
15192019-04-17 Alan Hayward <alan.hayward@arm.com>
1520
1521 * debug.c (remote_debug): Add definition.
1522 * debug.h (remote_debug): Add declaration.
1523 * hostio.c (remote_debug): Remove declaration.
1524 * remote-utils.c (struct ui_file): Likewise.
1525 (remote_debug): Likewise.
1526 * remote-utils.h (remote_debug): Likewise,
1527 * server.c (remote_debug): Remove definition.
1528
3f52fdbc
KB
15292019-04-10 Kevin Buettner <kevinb@redhat.com>
1530
1531 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
1532 when using a 64-bit gdbserver.
1533
b0319eaa
TT
15342019-04-09 Tom Tromey <tromey@adacore.com>
1535
1536 * linux-low.c (select_event_lwp): Use find_thread_in_random.
1537
eedc3f4f
TT
15382019-04-08 Tom Tromey <tom@tromey.com>
1539
1540 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
1541 throw.
1542 (linux_resume_one_lwp): Likewise.
1543
230d2906
TT
15442019-04-08 Tom Tromey <tom@tromey.com>
1545
1546 * gdbreplay.c: Update.
1547 * linux-low.c: Update.
1548 * server.c: Update.
1549
a70b8144
TT
15502019-04-08 Tom Tromey <tom@tromey.com>
1551
1552 * server.c: Use C++ exception handling.
1553 * linux-low.c: Use C++ exception handling.
1554 * gdbreplay.c: Use C++ exception handling.
1555
3d6e9d23
TT
15562019-04-08 Tom Tromey <tom@tromey.com>
1557
1558 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
1559 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
1560 (captured_main, main): Update.
1561 * gdbreplay.c (main): Update.
1562
0570503d
PFC
15632019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1564
1565 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
1566 value in argument pointer, return 1 if the entry is found and 0
1567 otherwise. Move comment.
1568 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
1569 * linux-low.h (linux_get_auxv): Declare.
1570 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
1571
227a9e65
TT
15722019-04-05 Tom Tromey <tromey@adacore.com>
1573
1574 * server.c (gdbserver_usage): Use upper-case for metasyntactic
1575 variables.
1576
69f4c9cc
AH
15772019-03-28 Alan Hayward <alan.hayward@arm.com>
1578
1579 * linux-low.c (AT_HWCAP2): Add define if not already included.
1580
974c89e0
AH
15812019-03-26 Alan Hayward <alan.hayward@arm.com>
1582
1583 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
1584 (aarch64_arch_setup): Call linux_get_hwcap.
1585 * linux-arm-low.c (arm_get_hwcap): Remove function.
1586 (arm_read_description): Call linux_get_hwcap.
1587 * linux-low.c (linux_get_auxv): New function.
1588 (linux_get_hwcap): Likewise.
1589 (linux_get_hwcap2): Likewise.
1590 * linux-low.h (linux_get_hwcap): New declaration.
1591 (linux_get_hwcap2): Likewise.
1592 * linux-ppc-low.c (ppc_get_auxv): Remove function.
1593 (ppc_arch_setup): Call linux_get_hwcap.
1594 * linux-s390-low.c (s390_get_hwcap): Remove function.
1595 (s390_arch_setup): Call linux_get_hwcap.
1596
1ef53e6b
AH
15972019-03-22 Alan Hayward <alan.hayward@arm.com>
1598 Jiong Wang <jiong.wang@arm.com>
1599
1600 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
1601 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
1602 to fail.
1603 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
1604
ee4fbcfa
AH
16052019-03-22 Alan Hayward <alan.hayward@arm.com>
1606 Jiong Wang <jiong.wang@arm.com>
1607
1608 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
1609 (aarch64_get_hwcap): New function.
1610 (aarch64_arch_setup): Read APIA hwcap.
1611
6dc0ebde
AH
16122019-03-22 Alan Hayward <alan.hayward@arm.com>
1613 Jiong Wang <jiong.wang@arm.com>
1614
1615 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
1616 (initialize_low_tracepoint): Likewise.
1617 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
1618 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
1619 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
1620 (aarch64_linux_read_description): Likewise.
1621 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
1622
1163a4b7
JB
16232019-03-12 John Baldwin <jhb@FreeBSD.org>
1624
1625 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
1626 i386_create_target_description for 'segments' parameter.
1627 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
1628 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1629 * win32-i386-low.c (i386_arch_setup): Likewise.
1630
d3a70e03
TT
16312019-03-12 Tom Tromey <tromey@adacore.com>
1632
1633 * linux-low.c (iterate_over_lwps): Update.
1634
37991b4f
TT
16352019-03-06 Tom Tromey <tom@tromey.com>
1636
1637 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
1638 (captured_main): Use SCOPE_EXIT.
1639
45950eb6
SDJ
16402019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
1641
1642 * configure.srv: Use '$enable_unittest' instead of '$development'
1643 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
1644 case.
1645
43ac54fc
TT
16462019-02-27 Tom Tromey <tromey@adacore.com>
1647
1648 * gdbreplay.c (logchar): Handle \r\n.
1649
df0da8a2
AH
16502019-02-07 Alan Hayward <alan.hayward@arm.com>
1651
1652 * linux-low.c (linux_attach): Add process before lwp.
1653 * server.c (attach_inferior): Check if already attached.
1654
1a5c2598
TT
16552019-02-07 Tom Tromey <tom@tromey.com>
1656
1657 * x86-tdesc.h: Rename include guard.
1658 * x86-low.h: Add include guard.
1659 * wincecompat.h: Rename include guard.
1660 * win32-low.h: Add include guard.
1661 * utils.h: Rename include guard.
1662 * tracepoint.h: Rename include guard.
1663 * tdesc.h: Rename include guard.
1664 * target.h: Rename include guard.
1665 * server.h: Rename include guard.
1666 * remote-utils.h: Rename include guard.
1667 * regcache.h: Rename include guard.
1668 * nto-low.h: Rename include guard.
1669 * notif.h: Add include guard.
1670 * mem-break.h: Rename include guard.
1671 * lynx-low.h: Add include guard.
1672 * linux-x86-tdesc.h: Add include guard.
1673 * linux-s390-tdesc.h: Add include guard.
1674 * linux-ppc-tdesc-init.h: Add include guard.
1675 * linux-low.h: Add include guard.
1676 * linux-aarch64-tdesc.h: Add include guard.
1677 * linux-aarch32-low.h: Add include guard.
1678 * inferiors.h: Rename include guard.
1679 * i387-fp.h: Rename include guard.
1680 * hostio.h: Rename include guard.
1681 * gdbthread.h: Rename include guard.
1682 * gdb_proc_service.h: Rename include guard.
1683 * event-loop.h: Rename include guard.
1684 * dll.h: Rename include guard.
1685 * debug.h: Rename include guard.
1686 * ax.h: Rename include guard.
1687
956cc47c
SN
16882018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
1689
1690 PR gdb/23985
1691 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
1692 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
1693
a0707f3c
TT
16942019-01-25 Tom Tromey <tom@tromey.com>
1695
1696 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
1697
0747795c
TT
16982019-01-25 Tom Tromey <tom@tromey.com>
1699
1700 * win32-low.c: Fix common/ includes.
1701 * win32-i386-low.c: Fix common/ includes.
1702 * tracepoint.c: Fix common/ includes.
1703 * thread-db.c: Fix common/ includes.
1704 * target.h: Fix common/ includes.
1705 * symbol.c: Fix common/ includes.
1706 * spu-low.c: Fix common/ includes.
1707 * server.h: Fix common/ includes.
1708 * server.c: Fix common/ includes.
1709 * remote-utils.c: Fix common/ includes.
1710 * regcache.h: Fix common/ includes.
1711 * regcache.c: Fix common/ includes.
1712 * nto-x86-low.c: Fix common/ includes.
1713 * notif.h: Fix common/ includes.
1714 * mem-break.h: Fix common/ includes.
1715 * lynx-low.c: Fix common/ includes.
1716 * lynx-i386-low.c: Fix common/ includes.
1717 * linux-x86-tdesc-selftest.c: Fix common/ includes.
1718 * linux-x86-low.c: Fix common/ includes.
1719 * linux-low.c: Fix common/ includes.
1720 * inferiors.h: Fix common/ includes.
1721 * i387-fp.c: Fix common/ includes.
1722 * hostio.c: Fix common/ includes.
1723 * hostio-errno.c: Fix common/ includes.
1724 * gdbthread.h: Fix common/ includes.
1725 * gdbreplay.c: Fix common/ includes.
1726 * fork-child.c: Fix common/ includes.
1727 * event-loop.c: Fix common/ includes.
1728 * ax.c:
1729 (enum gdb_agent_op): Fix common/ includes.
1730
be6d4f74
TT
17312019-01-21 Tom Tromey <tom@tromey.com>
1732
1733 * tracepoint.c: Fix includes.
1734 * remote-utils.c: Fix includes.
1735 * linux-x86-low.c: Fix includes.
1736
66d91b39
JB
17372019-01-01 Joel Brobecker <brobecker@adacore.com>
1738
1739 * gdbreplay.c (gdbreplay_version): Update copyright year in
1740 version message.
1741 * server.c (gdbserver_version): Likewise.
1742
754e3168
AH
17432018-12-05 Alan Hayward <alan.hayward@arm.com>
1744
1745 * linux-low.c (add_lwp): Switch ordering.
1746
d105de22
TT
17472018-11-29 Tom Tromey <tom@tromey.com>
1748
1749 * win32-low.c (win32_join): Take pid, not process.
1750 * target.h (struct target_ops) <join>: Change argument type.
1751 (join_inferior): Change argument name.
1752 * spu-low.c (spu_join): Take pid, not process.
1753 * server.c (handle_detach): Preserve pid before destroying
1754 process.
1755 * lynx-low.c (lynx_join): Take pid, not process.
1756 * linux-low.c (linux_join): Take pid, not process.
1757
50138245
AH
17582018-11-23 Alan Hayward <alan.hayward@arm.com>
1759
1760 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
1761 (aarch64_cannot_fetch_register): Likewise.
1762 (struct linux_target_ops): Update references.
1763
64f57f3d
PFC
17642018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1765
1766 * linux-ppc-low.c: Include nat/linux-ptrace.h.
1767
8d619c01
EBM
17682018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1769
1770 * configure.srv (ipa_ppc_linux_regobj): Add
1771 powerpc-isa207-htm-vsx32l-ipa.o and
1772 powerpc-isa207-htm-vsx64l-ipa.o.
1773 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
1774 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
1775 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
1776 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
1777 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
1778 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
1779 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
1780 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
1781 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1782 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
1783 (init_registers_powerpc_isa207_htm_vsx32l)
1784 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
1785 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
1786 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
1787 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
1788 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
1789 (ppc_store_tm_ctarregset): New functions.
1790 (ppc_regsets): Add entries for HTM regsets.
1791 (ppc_arch_setup): Set htm in features struct when needed. Set
1792 sizes for the HTM regsets.
1793 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
1794 (initialize_low_arch): Call
1795 init_registers_powerpc_isa207_htm_vsx32l and
1796 init_registers_powerpc_isa207_htm_vsx64l.
1797 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1798 PPC_TDESC_ISA207_HTM_VSX.
1799 (initialize_low_tracepoint): Call
1800 init_registers_powerpc_isa207_htm_vsx32l and
1801 init_registers_powerpc_isa207_htm_vsx64l.
1802
232bfb86
EBM
18032018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1804
1805 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
1806 rs6000/power-linux-pmu.xml to srv_xmlfiles.
1807 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
1808 (ppc_store_pmuregset): New functions.
1809 (ppc_regsets): Add entries for ebb and pmu regsets.
1810 (ppc_arch_setup): Set isa207 in features struct if the ebb and
1811 pmu regsets are available. Set sizes for these regsets.
1812
f2cf6173
EBM
18132018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1814
1815 * configure.srv (ipa_ppc_linux_regobj): Add
1816 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
1817 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
1818 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
1819 rs6000/powerpc-isa207-vsx32l.xml, and
1820 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
1821 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1822 <PPC_TDESC_ISA207_VSX>: New enum value.
1823 (init_registers_powerpc_isa207_vsx32l): Declare.
1824 (init_registers_powerpc_isa207_vsx64l): Declare.
1825 * linux-ppc-low.c (ppc_fill_tarregset): New function.
1826 (ppc_store_tarregset): New function.
1827 (ppc_regsets): Add entry for the TAR regset.
1828 (ppc_arch_setup): Set isa207 in features struct when needed. Set
1829 size for the TAR regsets.
1830 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
1831 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
1832 and init_registers_powerpc_isa207_vsx64l.
1833 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
1834 (initialize_low_tracepoint): Call
1835 init_registers_powerpc_isa207_vsx32l and
1836 init_registers_powerpc_isa207_vsx64l.
1837
7ca18ed6
EBM
18382018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1839 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1840
1841 * configure.srv (ipa_ppc_linux_regobj): Add
1842 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
1843 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
1844 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
1845 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
1846 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
1847 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1848 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
1849 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1850 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
1851 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
1852 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1853 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
1854 (ppc_hwcap): Add comment.
1855 (ppc_hwcap2): New global.
1856 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
1857 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
1858 (ppc_regsets): Add entries for the DSCR and PPR regsets.
1859 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
1860 when needed. Set sizes for the the DSCR and PPR regsets.
1861 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
1862 (initialize_low_arch): Call
1863 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1864 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1865 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1866 PPC_TDESC_ISA205_PPR_DSCR_VSX.
1867 (initialize_low_tracepoint): Call
1868 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1869 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1870
5c849b22
PFC
18712018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1872
1873 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
1874
8ecfd7bd
SDJ
18752018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1876 Simon Marchi <simark@simark.ca>
1877
1878 * acinclude.m4: Include "../selftest.m4".
1879 * configure: Regenerate.
1880 * configure.ac: Use "GDB_AC_SELFTEST".
1881 * configure.srv: Use "$enable_unittests" instead of
1882 "$development" when checking whether unit tests have been
1883 enabled.
1884 * server.c (captured_main): Update message informing that
1885 selftests have been disabled.
1886
96643e35
TT
18872018-10-04 Tom Tromey <tom@tromey.com>
1888
1889 * configure: Rebuild.
1890
da4ae14a
TT
18912018-10-04 Tom Tromey <tom@tromey.com>
1892
1893 * server.c (handle_status): Rename inner "thread".
1894 (process_serial_event): Declare "res" in 'm' case.
1895 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
1896 (iterate_over_lwps): Rename inner "thread".
1897 (linux_qxfer_libraries_svr4): Rename inner "len".
1898 * gdbthread.h (find_thread_in_random): Rename inner "thread".
1899
7c619dbd
GB
19002018-10-01 Gary Benson <gbenson@redhat.com>
1901
1902 * gdb_proc_service.h: Moved common code to
1903 common/gdb_proc_service.h.
1904
3795e814
GB
19052018-10-01 Gary Benson <gbenson@redhat.com>
1906
1907 * gdb_proc_service.h: Synchronize comments and whitespace with
1908 GDB's version of this file.
1909
49b036f1
TT
19102018-09-25 Tom Tromey <tom@tromey.com>
1911
1912 * configure: Rebuild.
1913 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
1914
8ff03f0b
SM
19152018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1916
1917 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
1918 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
1919 ($(IPA_LIB)): Sort IPA_OBJS.
1920
a1cd91dc
SM
19212018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1922
1923 * Makefile.in: Remove references to $(ADD_DEPS).
1924
752312ba
TT
19252018-09-16 Tom Tromey <tom@tromey.com>
1926
1927 * remote-utils.c (remote_open): Use GNU style for metasyntactic
1928 variables.
1929 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
1930 variables.
1931
f1628857
TT
19322018-09-05 Tom Tromey <tom@tromey.com>
1933
1934 * configure: Rebuild.
1935
ad202fcc
SM
19362018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1937
1938 PR build/23399
1939 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
1940
d3d8724a
TT
19412018-08-27 Tom Tromey <tom@tromey.com>
1942
1943 PR build/23087:
1944 * configure: Rebuild.
1945
b4f183d2
TT
19462018-08-27 Tom Tromey <tom@tromey.com>
1947
1948 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
1949 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
1950 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
1951 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
1952 (s390x_emit_stack_adjust): Add casts to unsigned char.
1953
4e2aa472
SM
19542018-08-22 Simon Marchi <simon.marchi@ericsson.com>
1955
1956 PR gdb/23374
1957 PR gdb/23375
1958 * server.h (struct client_state) <disable_randomization>:
1959 Initialize to 1.
1960
cf4088a9
SM
19612018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1962
1963 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
1964 variable.
1965 (mips_supply_ptrace_register): Likewise.
1966
a0de763e
TT
19672018-07-22 Tom Tromey <tom@tromey.com>
1968
1969 * configure: Rebuild.
1970
b0a7723d
TT
19712018-07-22 Tom Tromey <tom@tromey.com>
1972
1973 * win32-low.c (win32_create_inferior): Remove unused variables.
1974 * gdbreplay.c (remote_open): Remove unused variable.
1975 * remote-utils.c (remote_prepare): Remove unused variable.
1976 * x86-tdesc.h (X86_TDESC_H): Define.
1977 (amd64_expedite_regs): Define conditionally.
1978 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
1979 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
1980 * remote-utils.c (readchar): Remove unused variable.
1981
a780ef4f
PA
19822018-07-13 Pedro Alves <palves@redhat.com>
1983
1984 * linux-low.c (linux_kill): Change parameter to process_info
1985 pointer instead of pid. Adjust.
1986 * lynx-low.c (lynx_kill): Likewise.
1987 * nto-low.c (nto_kill): Likewise.
1988 * spu-low.c (spu_kill): Likewise.
1989 * win32-low.c (win32_kill): Likewise.
1990 * server.c (handle_v_kill, kill_inferior_callback)
1991 (detach_or_kill_for_exit): Adjust.
1992 * target.c (kill_inferior): Change parameter to process_info
1993 pointer instead of pid. Adjust.
1994 * target.h (struct target_ops) <kill>: Change parameter to
1995 process_info pointer instead of pid. Adjust all implementations
1996 and callers.
1997 (kill_inferior): Likewise.
1998
ef2ddb33
PA
19992018-07-13 Pedro Alves <palves@redhat.com>
2000
2001 * linux-low.c (linux_detach, linux_join): Change parameter to
2002 process_info pointer instead of pid. Adjust.
2003 * lynx-low.c (lynx_detach, lynx_join): Likewise.
2004 * nto-low.c (nto_detach): Likewise.
2005 * spu-low.c (spu_detach, spu_join): Likewise.
2006 * win32-low.c (win32_detach, win32_join): Likewise.
2007 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
2008 * target.h (struct target_ops) <detach, join>: Change parameter to
2009 process_info pointer instead of pid. Adjust all implementations
2010 and callers.
2011 (detach_inferior, join_inferior): Rename 'pid' parameter to
2012 'proc'.
2013
c7ab0aef
SDJ
20142018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
2015 Jan Kratochvil <jan.kratochvil@redhat.com>
2016 Paul Fertser <fercerpav@gmail.com>
2017 Tsutomu Seki <sekiriki@gmail.com>
2018
2019 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
2020 (OBS): Add 'common/netstuff.o'.
2021 (GDBREPLAY_OBS): Likewise.
2022 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
2023 (remote_open): Implement support for IPv6
2024 connections.
2025 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
2026 and 'wspiapi.h'.
2027 (handle_accept_event): Accept connections from IPv6 sources.
2028 (remote_prepare): Handle IPv6-style hostnames; implement
2029 support for IPv6 connections.
2030 (remote_open): Implement support for printing connections from
2031 IPv6 sources.
2032
31445d10
PA
20332018-07-11 Pedro Alves <palves@redhat.com>
2034
2035 PR gdb/23377
2036 * mem-break.c (any_persistent_commands): Add process_info
2037 parameter and use it instead of relying on the current process.
2038 Change return type to bool.
2039 * mem-break.h (any_persistent_commands): Add process_info
2040 parameter and change return type to bool.
2041 * server.c (handle_detach): Remove require_running_or_return call.
2042 Look up the process_info for the process we're about to detach.
2043 If not found, return back error to GDB. Adjust
2044 any_persistent_commands call to pass down a process pointer.
2045
cb197132
PA
20462018-07-11 Pedro Alves <palves@redhat.com>
2047
2048 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
2049 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
2050 instead of collect_register_by_name.
2051 * regcache.c (regcache_raw_get_unsigned_by_name): New.
2052 * regcache.h (regcache_raw_get_unsigned_by_name): New.
2053
1b919490
VB
20542018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
2055 Pedro Alves <palves@redhat.com>
2056
2057 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
2058
d7e15655
TT
20592018-07-03 Tom Tromey <tom@tromey.com>
2060
2061 * linux-low.c: Update.
2062 * lynx-low.c: Update.
2063 * mem-break.c: Update.
2064 * nto-low.c: Update.
2065 * remote-utils.c: Update.
2066 * server.c: Update.
2067 * spu-low.c: Update.
2068 * target.c: Update.
2069 * win32-low.c: Update.
2070
26a57c92
TT
20712018-07-03 Tom Tromey <tom@tromey.com>
2072
2073 * server.c: Update.
2074
0e998d96
TT
20752018-07-03 Tom Tromey <tom@tromey.com>
2076
2077 * linux-low.c: Update.
2078
cc6bcb54
TT
20792018-07-03 Tom Tromey <tom@tromey.com>
2080
2081 * target.c: Update.
2082
e38504b3
TT
20832018-07-03 Tom Tromey <tom@tromey.com>
2084
2085 * linux-low.c: Update.
2086 * linux-mips-low.c: Update.
2087 * lynx-low.c: Update.
2088 * nto-low.c: Update.
2089 * remote-utils.c: Update.
2090 * server.c: Update.
2091 * spu-low.c: Update.
2092 * target.c: Update.
2093 * thread-db.c: Update.
2094
e99b03dc
TT
20952018-07-03 Tom Tromey <tom@tromey.com>
2096
2097 * linux-low.c: Update.
2098 * linux-mips-low.c: Update.
2099 * lynx-low.c: Update.
2100 * mem-break.c: Update.
2101 * nto-low.c: Update.
2102 * remote-utils.c: Update.
2103 * server.c: Update.
2104 * spu-low.c: Update.
2105 * target.c: Update.
2106 * tracepoint.c: Update.
2107
f2907e49
TT
21082018-07-03 Tom Tromey <tom@tromey.com>
2109
2110 * linux-low.c: Update.
2111 * linux-ppc-low.c: Update.
2112 * linux-x86-low.c: Update.
2113 * proc-service.c: Update.
2114 * server.c: Update.
2115 * spu-low.c: Update.
2116 * thread-db.c: Update.
2117 * win32-low.c: Update.
2118
fd79271b
TT
21192018-07-03 Tom Tromey <tom@tromey.com>
2120
2121 * linux-low.c: Update.
2122 * lynx-low.c: Update.
2123 * nto-low.c: Update.
2124 * remote-utils.c: Update.
2125 * spu-low.c: Update.
2126 * thread-db.c: Update.
2127 * win32-low.c: Update.
2128
c0867626
SDJ
21292018-06-29 Joel Brobecker <brobecker@adacore.com>
2130
2131 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
2132 parameter in call to 'amd64_create_target_description'.
2133
2512d7ef
JK
21342018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2135
2136 * x86-tdesc.h: Remove executable permission flag.
2137
d0ac1c44
SM
21382018-06-19 Simon Marchi <simon.marchi@ericsson.com>
2139
2140 * configure.ac: Remove AC_PREREQ, add missing quoting.
2141 * configure: Re-generate.
2142 * config.in: Re-generate.
2143 * aclocal.m4: Re-generate.
2144
c4eb05ff
SM
21452018-06-18 Simon Marchi <simon.marchi@ericsson.com>
2146
2147 * tracepoint.h (current_traceframe): Remove declaration.
2148
02895270
AH
21492018-06-18 Alan Hayward <alan.hayward@arm.com>
2150
2151 * linux-aarch64-low.c (is_sve_tdesc): New function.
2152 (aarch64_sve_regs_copy_to_regcache): Likewise.
2153 (aarch64_sve_regs_copy_from_regcache): Likewise.
2154 (aarch64_regs_info): Add SVE checks.
2155 (initialize_low_arch): Initialize SVE.
2156
e9902bfc
AH
21572018-06-18 Alan Hayward <alan.hayward@arm.com>
2158
2159 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
2160
fefa175e
AH
21612018-06-11 Alan Hayward <alan.hayward@arm.com>
2162
2163 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
2164 (initialize_low_tracepoint): Likewise
2165 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
2166 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
2167 param.
2168 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
2169 checks.
2170 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
2171
b91ad3ff
AH
21722018-06-11 Alan Hayward <alan.hayward@arm.com>
2173
2174 * server.h (PBUFSIZ): Increase size
2175
f868386e
AH
21762018-06-11 Alan Hayward <alan.hayward@arm.com>
2177
2178 * regcache.c (regcache::raw_compare): New function.
2179 * regcache.h (regcache::raw_compare): New declaration.
2180
9c861883
AH
21812018-06-11 Alan Hayward <alan.hayward@arm.com>
2182
2183 * regcache.c (new_register_cache): Use new.
2184 (free_register_cache): Use delete.
2185 (register_data): Use const.
2186 (supply_register): Move body inside regcache.
2187 (regcache::raw_supply): New override function.
2188 (collect_register): Move body inside regcache.
2189 (regcache::raw_collect): New override function.
2190 (regcache::get_register_status): New override function.
2191 * regcache.h (struct regcache): Inherit from reg_buffer_common.
2192
40591844
TT
21932018-06-09 Tom Tromey <tom@tromey.com>
2194
2195 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
2196 declare queue.
2197 (event_queue): Use std::queue.
2198 (gdb_event_xfree): Remove.
2199 (initialize_event_loop, process_event, wait_for_event): Update.
2200
6341380d
SC
22012018-06-08 Stan Cox <scox@redhat.com>
2202
2203 * win32-low.c (win32_create_inferior): last_ptid and last_status
2204 moved to client_state.
2205
03349c93
PA
22062018-06-08 Pedro Alves <palves@redhat.com>
2207
2208 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
2209 common/common-exceptions.o, common/common-utils.o,
2210 common/errors.o, common/print-utils.o and utils.o.
2211 * gdbreplay.c: Include "common-defs.h" instead of the two
2212 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
2213 string.h or alloca.h.
2214 (perror_with_name): Delete.
2215 (remote_open): Use xstrdup instead of strdup.
2216 (main): Rename to ...
2217 (captured_main): ... this.
2218 (main): New.
2219
8dcc53b3
TT
22202018-06-08 Tom Tromey <tom@tromey.com>
2221
2222 * linux-low.c (linux_low_read_btrace): Update.
2223
c12a5089
SC
22242018-06-04 Stan Cox <scox@redhat.com>
2225
2226 * server.h (struct client_state): New.
2227 * server.c (cont_thread, general_thread, multi_process)
2228 (report_fork_events, report_vfork_events, report_exec_events)
2229 (report_thread_events, swbreak_feature, hwbreak_feature)
2230 (vCont_supported, disable_randomization, pass_signals)
2231 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
2232 Moved to client_state.
2233 * remote-utils.c (remote_debug, noack_mode)
2234 (transport_is_reliable): Moved to client_state.
2235 * tracepoint.c (current_traceframe): Moved to client_state.
2236
2237 Update all callers.
2238 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
2239 linux-low.c, remote-utils.h, target.c: Use client_state.
2240
122394f1
AH
22412018-05-31 Alan Hayward <alan.hayward@arm.com>
2242
2243 * configure.srv: Add new c/h file.
2244
95228a0d
AH
22452018-05-31 Alan Hayward <alan.hayward@arm.com>
2246
2247 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
2248 null VQ.
2249
d8dab6c3
MR
22502018-05-25 Maciej W. Rozycki <macro@mips.com>
2251
2252 * gdb.arch/mips-fpregset-core.exp: New test.
2253 * gdb.arch/mips-fpregset-core.c: New test source.
2254
81e25b7c
EK
22552018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
2256
2257 PR server/23198
2258 * hostio.c (require_int): Do not report overflow for integers
2259 between 0xfffffff and 0x7fffffff.
2260
7e947ad3
MR
22612018-05-22 Maciej W. Rozycki <macro@mips.com>
2262
2263 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
2264 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
2265 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
2266 functions.
2267 (the_low_target): Wire them.
2268
1d75a658
PFC
22692018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2270
2271 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
2272 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
2273 mode. Call collect_register_by_name with vscr using
2274 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
2275 (ppc_store_vrregset): Add and set vscr_offset variable as in
2276 ppc_fill_vrregset. Call supply_register_by_name with vscr using
2277 vscr_offset.
2278
d078308a
PFC
22792018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2280
2281 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2282 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
2283 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
2284
7273b5fc
PFC
22852018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2286
2287 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
2288 (ppc_store_vsxregset): Likewise.
2289 (ppc_fill_vrregset): Likewise.
2290 (ppc_store_vrregset): Likewise.
2291 (ppc_fill_evrregset): Likewise.
2292 (ppc_store_evrregset): Likewise.
2293 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
2294 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
2295 needed.
2296
2e077f5e
PFC
22972018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2298
2299 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
2300 wordsize of the inferior. Call ppc_linux_target_wordsize.
2301
bd64614e
PFC
23022018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2303
2304 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
2305 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
2306 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
2307 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2308 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2309 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2310 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2311 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2312 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2313 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2314 (tdesc_powerpc_e500l): Remove.
2315 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
2316 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
2317 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
2318 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
2319 linux-ppc-tdesc.h.
2320 (ppc_arch_setup): Remove target description matching code. Fill a
2321 ppc_linux_features struct and call ppc_linux_match_description
2322 with it.
2323
75d74cca
MR
23242018-05-22 Maciej W. Rozycki <macro@mips.com>
2325
2326 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
2327 width of the requested register exceeds the width of the
2328 `ptrace' data type.
2329 (mips_cannot_store_register): Likewise.
2330
e4439e43
MR
23312018-05-21 Maciej W. Rozycki <macro@mips.com>
2332
2333 * linux-mips-low.c (mips_fetch_register): New function. Update
2334 preceding comment.
2335 (mips_store_gregset): Supply 0 rather than $restart for $zero.
2336 (the_low_target): Wire `mips_fetch_register'.
2337
55271bf9
JB
23382018-05-10 Joel Brobecker <brobecker@adacore.com>
2339
2340 * lynx-i386-low.c (LYNXOS_178): New macro.
2341 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
2342 the layout on LynxOS-178.
2343 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
2344 handle floating point registers that are not supported by
2345 LynxOS-178.
2346
1a34f210
TT
23472018-05-10 Tom Tromey <tom@tromey.com>
2348
2349 * configure: Rebuild.
2350
190852c8
JB
23512018-05-10 Joel Brobecker <brobecker@adacore.com>
2352
2353 PR server/23158:
2354 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
2355 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
2356 Use it to set the expedite_regs field in the given tdesc.
2357 * x86-tdesc.h: New file.
2358 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
2359 Adjust following the addition of the new expedite_regs parameter
2360 to init_target_desc.
2361 * linux-tic6x-low.c (tic6x_read_description): Likewise.
2362 * linux-x86-tdesc.c: #include "x86-tdesc.h".
2363 (i386_linux_read_description, amd64_linux_read_description):
2364 Adjust following the addition of the new expedite_regs parameter
2365 to init_target_desc.
2366 * lynx-i386-low.c: #include "x86-tdesc.h".
2367 (lynx_i386_arch_setup): Adjust following the addition of the new
2368 expedite_regs parameter to init_target_desc.
2369 * nto-x86-low.c: #include "x86-tdesc.h".
2370 (nto_x86_arch_setup): Adjust following the addition of the new
2371 expedite_regs parameter to init_target_desc.
2372 * win32-i386-low.c: #include "x86-tdesc.h".
2373 (i386_arch_setup): Adjust following the addition of the new
2374 expedite_regs parameter to init_target_desc.
2375
7dbac825
JB
23762018-05-10 Joel Brobecker <brobecker@adacore.com>
2377
2378 PR server/23158:
2379 * win32-low.c (win32_create_inferior): Add call to my_wait
2380 setting last_status global.
2381
906994d9
JB
23822018-05-10 Joel Brobecker <brobecker@adacore.com>
2383
2384 PR server/23158:
2385 * win32-low.c (create_process): Only call gdb_tilde_expand if
2386 inferior_cwd is not NULL.
2387
8ee22052
AB
23882018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2389
2390 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
2391 registers to the cache if their values have changed.
2392 (i387_xsave_to_cache): Provide default values for x87 control
2393 registers when these features are available, but disabled.
2394 * regcache.c (supply_register_by_name_zeroed): New function.
2395 * regcache.h (supply_register_by_name_zeroed): Declare new
2396 function.
2397
aff689d3
TT
23982018-05-07 Tom Tromey <tom@tromey.com>
2399
2400 * configure: Rebuild.
2401
85e26832
TT
24022018-05-04 Tom Tromey <tom@tromey.com>
2403
2404 * configure: Rebuild.
2405
a3b60e45
JK
24062018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2407 Pedro Alves <palves@redhat.com>
2408
2409 * linux-aarch64-low.c (aarch64_stopped_data_address):
2410 Likewise.
2411
632e107b
TT
24122018-04-27 Tom Tromey <tom@tromey.com>
2413
2414 * configure: Rebuild.
2415
458412c3
TT
24162018-04-23 Tom Tromey <tom@tromey.com>
2417
2418 * configure: Rebuild.
2419
f31c089e
SM
24202018-04-19 Simon Marchi <simon.marchi@ericsson.com>
2421
2422 * Makefile.in (depcomp): Add "..".
2423 (all_deps_files): New and use it.
2424
b319b098
AH
24252018-04-18 Alan Hayward <alan.hayward@arm.com>
2426
2427 * configure.srv (aarch64*-*-linux*): Don't include xml.
2428 (i[34567]86-*-cygwin*): Likewise.
2429 (i[34567]86-*-linux*): Likewise.
2430 (i[34567]86-*-lynxos*): Likewise.
2431 (i[34567]86-*-mingw32ce*): Likewise.
2432 (i[34567]86-*-mingw*): Likewise.
2433 (i[34567]86-*-nto*): Likewise.
2434 (tic6x-*-uclinux): Likewise.
2435 (x86_64-*-linux*): Likewise.
2436 (x86_64-*-mingw*): Likewise.
2437 (x86_64-*-cygwin*): Likewise.
2438
3b74854b
AH
24392018-04-18 Alan Hayward <alan.hayward@arm.com>
2440
2441 * tdesc.c: Remove xml parameter.
2442
e98577a9
AH
24432018-04-18 Alan Hayward <alan.hayward@arm.com>
2444
2445 * server.c (get_features_xml): Remove cast.
2446 * tdesc.c (void target_desc::accept): Fill in function.
2447 (tdesc_get_features_xml): Remove old xml creation.
2448 (print_xml_feature::visit_pre): Add xml vistor.
2449 * tdesc.h (struct target_desc): Make xmltarget mutable.
2450 (tdesc_get_features_xml): Remove declaration.
2451
d278f585
AH
24522018-04-18 Alan Hayward <alan.hayward@arm.com>
2453
2454 * tdesc.c (tdesc_architecture_name): Add new function.
2455 (tdesc_osabi_name): Likewise.
2456 (tdesc_get_features_xml): Use new functions.
2457
eee8a18d
AH
24582018-04-18 Alan Hayward <alan.hayward@arm.com>
2459
2460 * tdesc.c (tdesc_create_flags): Remove.
2461 (tdesc_add_flag): Likewise.
2462 (tdesc_named_type): Likewise.
2463 (tdesc_create_union): Likewise.
2464 (tdesc_create_struct): Likewise.
2465 (tdesc_create_vector): Likewise.
2466 (tdesc_add_bitfield): Likewise.
2467 (tdesc_add_field): Likewise.
2468 (tdesc_set_struct_size): Likewise.
2469
82ec9bc7
AH
24702018-04-18 Alan Hayward <alan.hayward@arm.com>
2471
2472 * tdesc.c (~target_desc): Remove implictly deleted items.
2473 (init_target_desc): Iterate all features.
2474 (tdesc_get_features_xml): Use vector.
2475 (tdesc_create_feature): Create feature.
2476 * tdesc.h (tdesc_feature) Remove
2477 (target_desc): Add features.
2478
ea3e7d71
AH
24792018-04-18 Alan Hayward <alan.hayward@arm.com>
2480
2481 * Makefile.in: Add common/tdesc.c
2482 * tdesc.c (init_target_desc): init all reg_defs from register
2483 vector.
2484 (tdesc_create_reg): Create tdesc_reg.
2485 * tdesc.h (tdesc_feature): Add register vector.
2486
17d08cd4
SM
24872018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2488
2489 * tdesc.h (struct target_desc) <features>: Change type to
2490 std::vector<std::string>.
2491 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
2492 changes.
2493 (tdesc_get_features_xml): Likewise.
2494 (tdesc_create_feature): Likewise.
2495
5cd3e386
AH
24962018-03-26 Alan Hayward <alan.hayward@arm.com>
2497
2498 * regcache.c (find_register_by_number): Return a ref.
2499 (find_regno): Use references.
2500 (register_size): Likewise.
2501 (register_data): Likewise.
2502 * tdesc.c (target_desc::~target_desc): Remove free calls.
2503 (target_desc::operator==): Use std::vector compare.
2504 (init_target_desc): Use reference.
2505 (tdesc_create_reg): Use reg constructors.
2506 * tdesc.h (struct target_desc): Replace pointer with object.
2507
dff7492c
AH
25082018-03-23 Alan Hayward <alan.hayward@arm.com>
2509
2510 * regcache.c (find_register_by_number): Make static.
2511 (find_regno): Use find_register_by_number
2512 * regcache.h (struct reg): Remove declaration.
2513
d80e5242
AH
25142018-03-23 Alan Hayward <alan.hayward@arm.com>
2515
2516 * tdesc.c (target_desc::~target_desc): Move to here.
2517 (target_desc::operator==): Likewise.
2518 * tdesc.h (target_desc::~target_desc): Move from here.
2519 (target_desc::operator==): Likewise.
2520
f69c5afb
AA
25212018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
2522
2523 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
2524
ce29f843
AA
25252018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2526
2527 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
2528 S390_TDESC_GS.
2529 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
2530 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
2531 and init_registers_s390_gs_linux64.
2532
c49bd90b
AA
25332018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2534
2535 * linux-s390-low.c (s390_fill_gs): Remove function.
2536 (s390_fill_gsbc): Remove function.
2537 (s390_regsets): Set fill functions for the guarded storage regsets
2538 to NULL.
2539
7edb9bd3
AA
25402018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2541
2542 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
2543 the word size. Add comment.
2544 (s390_get_wordsize): New function.
2545 (s390_arch_setup): No longer select a temporary tdesc to fetch the
2546 pswm with it. Instead, use s390_get_wordsize to determine the
2547 word size first and derive the correct tdesc from that directly.
2548
39be3c7e
SM
25492018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
2550
2551 * Makefile.in: Include silent-rules.mk.
2552 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
2553 (COMPILE): Add ECHO_CXX.
2554 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2555 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2556 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
2557 (version-generated.c): Add ECHO_GEN.
2558 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
2559 (IPAGENT_COMPILE): Add ECHO_CXX.
2560 (%-generated.c): Add ECHO_REGDAT.
2561
3ae9ce5d
TT
25622018-03-14 Tom Tromey <tom@tromey.com>
2563
2564 PR cli/14977:
2565 * ax.c (ax_printf): Special case for NULL.
2566
e6a58aa8
SM
25672018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2568
2569 * linux-low.c (linux_qxfer_libraries_svr4): Use
2570 xml_escape_text_append.
2571
f6e8a41e
SM
25722018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2573
2574 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
2575
b9671caf
SM
25762018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2577
2578 * server.c (handle_general_set): Remove unnecessary xstrdup.
2579
e80aaf61
SM
25802018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2581
2582 * server.c (parse_debug_format_options): Adjust to
2583 delim_string_to_char_ptr_vec changes.
2584 * thread-db.c (thread_db_load_search): Adjust to
2585 dirnames_to_char_ptr_vec changes.
2586
b1223e78
MM
25872018-03-01 Markus Metzger <markus.t.metzger@intel.com>
2588
2589 * target.h (target_enable_btrace, target_disable_btrace)
2590 (target_read_btrace, target_read_btrace_conf): Turn macro into
2591 inline function. Throw error if target method is not defined.
2592 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
2593 check for btrace target method. Be prepared to handle exceptions
2594 from btrace target methods.
2595
81561546
SDJ
25962018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2597
2598 * server.c (captured_main): Change order of error message printed
2599 when the current working directory cannot be found.
2600
25e3c82c
SDJ
26012018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2602
2603 * server.c: Include "filenames.h" and "pathstuff.h".
2604 (program_name): Delete variable.
2605 (program_path): New anonymous class.
2606 (get_exec_wrapper): Use "program_path" instead of
2607 "program_name".
2608 (handle_v_run): Likewise.
2609 (captured_main): Likewise.
2610 (process_serial_event): Likewise.
2611
b4987c95
SDJ
26122018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2613
2614 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
2615 (OBJS): Add "pathstuff.o".
2616 * server.c (current_directory): New global variable.
2617 (captured_main): Initialize "current_directory".
2618
f46cd62a
AH
26192018-02-26 Alan Hayward <alan.hayward@arm.com>
2620
2621 * tdesc.c: Use common/tdesc.h.
2622 * tdesc.h: Likewise.
2623
a543c5ca
AH
26242018-02-20 Alan Hayward <alan.hayward@arm.com>
2625 Simon Marchi <simon.marchi@ericsson.com>
2626
2627 * Makefile.in: Switch order of make rules.
2628
b5884fa7
AH
26292018-02-19 Alan Hayward <alan.hayward@arm.com>
2630
2631 * Makefile.in: Add common directory in build.
2632 * configure.ac: Add common reference.
2633 * configure: Regenerate.
2634
de6242d3
MM
26352018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2636
2637 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
2638 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
2639 * spu-low.c (spu_target_ops): Likewise.
2640 * win32-low.c (win32_target_ops): Likewise.
2641 * server.c (supported_btrace_packets): Report packets unconditionally.
2642 * target.h (target_ops) <supports_btrace>: Remove.
2643 (target_supports_btrace): Remove.
2644
9ee23a85
MM
26452018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2646
2647 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
2648 (handle_btrace_disable): Change return type to void. Use exceptions
2649 to report errors.
2650 (handle_btrace_general_set): Catch exception and copy message to
2651 return message.
2652
8ce47547
TT
26532018-02-08 Tom Tromey <tom@tromey.com>
2654
2655 * linux-low.c (install_software_single_step_breakpoints): Use
2656 make_scoped_restore.
2657 * inferiors.c (make_cleanup_restore_current_thread): Remove.
2658 (do_restore_current_thread_cleanup): Remove.
2659 * gdbthread.h (make_cleanup_restore_current_thread): Don't
2660 declare.
2661
45dd3607
TT
26622018-02-08 Tom Tromey <tom@tromey.com>
2663
2664 * mem-break.c (set_raw_breakpoint_at): Use
2665 gdb::unique_xmalloc_ptr.
2666
e671cd59
PA
26672018-01-30 Pedro Alves <palves@redhat.com>
2668
2669 PR gdb/13211
2670 * target.c (target_terminal::terminal_state): Rename to ...
2671 (target_terminal::m_terminal_state): ... this.
2672
a0aad537
JC
26732018-01-19 James Clarke <jrtc27@jrtc27.com>
2674
2675 * linux-low.c (handle_extended_wait): Surround call to
2676 thread_db_notice_clone with #ifdef USE_THREAD_DB.
2677
4d9b86e1
SM
26782018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2679
2680 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
2681 linux_ptrace_attach_fail_reason_string now returning an
2682 std::string.
2683 (linux_attach): Likewise.
2684 * thread-db.c (attach_thread): Likewise.
2685
f517c180
EA
26862018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2687
2688 PR gdb/21559
2689 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2690 checking for fs_base/gs_base fields in struct user_regs_struct.
2691 * configure: Regenerate.
2692
9a70f35c
YQ
26932018-01-16 Yao Qi <yao.qi@linaro.org>
2694
2695 PR gdb/18749
2696 * linux-low.c (fetch_register): Call supply_register instead of
2697 error.
2698
605fd3c6
YQ
26992018-01-08 Yao Qi <yao.qi@linaro.org>
2700 Simon Marchi <simon.marchi@ericsson.com>
2701
2702 * Makefile.in (OBS): Remove selftest.o.
2703 * configure.ac: Set srv_selftest_objs if $development is true.
2704 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
2705 * configure: Re-generated.
2706 * server.c (captured_main): Wrap variable selftest_filter with
2707 GDB_SELF_TEST.
2708
2cc05030
SM
27092018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2710
2711 * server.c (parse_debug_format_options): Return std::string.
2712 (handle_monitor_command, captured_main): Adjust.
2713
e379cee6
PA
27142018-01-05 Pedro Alves <palves@redhat.com>
2715
2716 PR gdb/18653
2717 * server.c (captured_main): Pass quiet=false to
2718 save_original_signals_state.
2719
82e1e79a
JB
27202018-01-01 Joel Brobecker <brobecker@adacore.com>
2721
2722 * gdbreplay.c (gdbreplay_version): Update copyright year in
2723 version message.
2724 * server.c (gdbserver_version): Likewise.
2725
8e481c3b
TT
27262017-12-08 Tom Tromey <tom@tromey.com>
2727
2728 * ax.c (ax_printf): Update.
2729
a8806230
YQ
27302017-12-07 Yao Qi <yao.qi@linaro.org>
2731
2732 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
2733 aarch64_linux_read_description.
2734 * linux-amd64-ipa.c (idx2mask): New array.
2735 (get_ipa_tdesc): Move idx2mask out.
2736 (initialize_low_tracepoint): Initialize target descriptions.
2737 * linux-i386-ipa.c (idx2mask): New array.
2738 (get_ipa_tdesc): Move idx2mask out.
2739 (initialize_low_tracepoint): Initialize target descriptions.
2740
d4a0e8b5
SM
27412017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
2742
2743 * tdesc.c (struct tdesc_type): Change return type.
2744 (tdesc_add_flag): Change parameter type.
2745 (tdesc_add_bitfield): Likewise.
2746 (tdesc_add_field): Likewise.
2747 (tdesc_set_struct_size): Likewise.
2748
798a7429
SM
27492017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2750
2751 * regcache.c (registers_to_string): Remove unused variable.
2752
c0e15c9b
SM
27532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2754
2755 * inferiors.c (for_each_inferior_with_data): Remove.
2756 * inferiors.h (for_each_inferior_with_data): Remove.
2757 * server.c (handle_qxfer_threads_worker): Change parameter type.
2758 (handle_qxfer_threads_proper): Use for_each_thread.
2759
f0045347
SM
27602017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2761
2762 * inferiors.c (for_each_inferior): Remove.
2763 (clear_inferiors): Use for_each_thread.
2764 * inferiors.h (for_each_inferior): Remove.
2765 * linux-low.c (linux_wait_for_event_filtered): Use
2766 for_each_thread.
2767 (linux_stabilize_threads): Likewise.
2768 * regcache.c (regcache_release): Likewise.
2769 * server.c (gdb_wants_all_threads_stopped): Likewise.
2770 (clear_pending_status_callback): Remove.
2771 (handle_status): Use for_each_thread.
2772 (captured_main): Likewise.
2773 * win32-low.c (child_init_thread_list): Likewise.
2774 (win32_clear_inferiors): Likewise.
2775 (fake_breakpoint_event): Likewise.
2776
9521758b
SM
27772017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2778
2779 * inferiors.h (find_inferior): Remove.
2780 * inferiors.c (find_inferior): Remove.
2781
8f86d7aa
SM
27822017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2783
2784 * linux-low.c (resume_status_pending_p): Update comment.
2785 (need_step_over_p): Update comment.
2786
e2b44075
SM
27872017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2788
2789 * linux-low.c (proceed_one_lwp): Return void, change parameter
2790 type.
2791 (unsuspend_and_proceed_one_lwp): Likewise.
2792 (proceed_all_lwps): Use for_each_thread.
2793 (unstop_all_lwps): Likewise.
2794
c80825ff
SM
27952017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2796
2797 * linux-low.c (linux_resume_one_thread): Return void, take
2798 parameter directly.
2799 (linux_resume): Use for_each_thread.
2800
df3e4dbe
SM
28012017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2802
2803 * linux-low.c (send_sigstop_callback): Return void, change
2804 parameter type. Rename to...
2805 (send_sigstop): ... this.
2806 (suspend_and_send_sigstop_callback): Return void, change parameter
2807 type. Rename to...
2808 (suspend_and_send_sigstop): ... this.
2809 (stop_all_lwps): Use for_each_thread.
2810
5a6b0a41
SM
28112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2812
2813 * linux-low.c (lwp_running): Return bool, remove unused
2814 argument.
2815 (linux_stabilize_threads): Use find_thread.
2816
39a64da5
SM
28172017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2818
2819 * linux-low.c (select_singlestep_lwp_callback): Remove.
2820 (count_events_callback): Remove.
2821 (select_event_lwp_callback): Remove.
2822 (select_event_lwp): Use find_thread/for_each_thread.
2823
a1385b7b
SM
28242017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2825
2826 * linux-low.c (not_stopped_callback): Return bool, take filter
2827 argument directly.
2828 (linux_wait_for_event_filtered): Use find_thread.
2829 (linux_wait_1): Likewise.
2830
454296a2
SM
28312017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2832
2833 * linux-low.c (same_lwp): Remove.
2834 (find_lwp_pid): Use find_thread.
2835
6b2a85da
SM
28362017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2837
2838 * linux-low.c (delete_lwp_callback): Remove.
2839 (linux_mourn): Use for_each_thread.
2840
798a38e8
SM
28412017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2842
2843 * linux-low.c (linux_detach_lwp_callback): Return void, remove
2844 args parameter, don't check for pid.
2845 (linux_detach): Use for_each_thread.
2846
e4eb0dec
SM
28472017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2848
2849 * linux-low.c (struct counter): Remove.
2850 (second_thread_of_pid_p): Remove.
2851 (last_thread_of_process_p): Use find_thread.
2852
83e1b6c1
SM
28532017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2854
2855 * inferiors.c (find_inferior_in_random): Remove.
2856 * inferiors.h (find_inferior_in_random): Remove.
2857 * linux-low.c (status_pending_p_callback): Return bool, accept
2858 parameter ptid directly.
2859 (linux_wait_for_event_filtered): Use find_thread_in_random.
2860 (linux_wait_1): Likewise.
2861
8dc7b443
SM
28622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * inferiors.c (find_inferior_id): Remove.
2865 (find_thread_ptid): Move implemention from find_inferior_id to
2866 here.
2867 * inferiors.h (find_inferior_id): Remove.
2868 * server.c (handle_status): Use find_thread_ptid.
2869 (process_serial_event): Likewise.
2870 * thread-db.c (find_one_thread): Likewise.
2871 (thread_db_thread_handle): Likewise.
2872 * win32-low.c (thread_rec): Likewise.
2873 (child_delete_thread): Likewise.
2874 (win32_thread_alive): Likewise.
2875 (get_child_debug_event): Likewise.
2876
da25033c
SM
28772017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2878
2879 * linux-mips-low.c (update_watch_registers_callback): Return
2880 void, remove pid_p parameter, don't check for pid.
2881 (mips_insert_point, mips_remove_point): Use for_each_thread.
2882
c91bb56b
SM
28832017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2884
2885 * lynx.low (lynx_delete_thread_callback): Remove.
2886 (lynx_mourn): Use for_each_thread.
2887
634a3254
SM
28882017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2889
2890 * regcache.c (regcache_invalidate_one): Remove.
2891 (regcache_invalidate_pid): use for_each_thread.
2892
41272101
TT
28932017-11-26 Tom Tromey <tom@tromey.com>
2894
2895 * linux-low.c (linux_create_inferior): Update.
2896
f5291a6f
UW
28972017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
2898
2899 * spu-low.c (spu_create_inferior): Fix typo in argument name.
2900
6654d750
AH
29012017-11-24 Alan Hayward <alan.hayward@arm.com>
2902
2903 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
2904 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2905 * linux-aarch64-tdesc-selftest.c: New file.
2906 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2907
29082017-11-24 Alan Hayward <alan.hayward@arm.com>
2909
2910 * configure.srv: Add new file.
2911 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2912 * linux-aarch64-tdesc-selftest.c: New file.
2913 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2914
49bdb7ee
AH
29152017-11-24 Alan Hayward <alan.hayward@arm.com>
2916
2917 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
2918 * linux-aarch64-low.c (initialize_low_arch): Remove init.
2919 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
2920
d6d7ce56
AH
29212017-11-24 Alan Hayward <alan.hayward@arm.com>
2922
2923 * configure.srv: Add new files.
2924 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
2925 aarch64_linux_read_description.
2926 * linux-aarch64-low.c (aarch64_linux_read_description):
2927 Merge with aarch64_arch_setup.
2928 (aarch64_arch_setup): Call aarch64_linux_read_description.
2929 * linux-aarch64-tdesc.c: New file.
2930 * linux-aarch64-tdesc.h: New file.
2931
506fe5f4
YQ
29322017-11-24 Yao Qi <yao.qi@linaro.org>
2933
2934 * configure.srv: Set $srv_regobj for tic6x-linux.
2935 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
2936 (tic6x_read_description): Move some code to tic6x_arch_setup.
2937 (tic6x_tdesc_test): New function.
2938 (initialize_low_arch): Call selftests::register_test.
2939
29f9a567
YQ
29402017-11-22 Yao Qi <yao.qi@linaro.org>
2941
2942 * remote-utils.c (prepare_resume_reply): Use memcpy.
2943
578290ec
SM
29442017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2945
2946 * linux-low.c (kill_one_lwp_callback): Return void, take
2947 argument directly, don't filter on pid.
2948 (linux_kill): Use for_each_thread.
2949
eca55aec
SM
29502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2951
2952 * linux-low.c (need_step_over_p): Return bool, remove dummy
2953 argument.
2954 (linux_resume, proceed_all_lwps): Use find_thread.
2955
25c28b4d
SM
29562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2957
2958 * linux-low.c (resume_status_pending_p): Return bool, remove
2959 flag_p argument.
2960 (linux_resume): Use find_thread.
2961
5fdda392
SM
29622017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2963
2964 * linux-low.c (struct thread_resume_array): Remove.
2965 (linux_set_resume_request): Return void, take arguments
2966 directly.
2967 (linux_resume): Use for_each_thread.
2968
fcb056a5
SM
29692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2970
2971 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
2972 return bool, remove data argument.
2973 (linux_stabilize_threads): Use find_thread.
2974
139720c5
SM
29752017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2976
2977 * linux-low.c (unsuspend_one_lwp): Remove.
2978 (unsuspend_all_lwps): Use for_each_thread, inline code from
2979 unsuspend_one_lwp.
2980
6d1e5673
SM
29812017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2982
2983 * gdbthread.h (find_thread): Add overload with ptid_t filter.
2984 * linux-low.c (struct iterate_over_lwps_args): Remove.
2985 (iterate_over_lwps_filter): Remove.
2986 (iterate_over_lwps): Use find_thread.
2987
bbf550d5
SM
29882017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2989
2990 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
2991 (linux_handle_new_gdb_connection): Use for_each_thread, inline
2992 code from reset_lwp_ptrace_options_callback.
2993
00192f77
SM
29942017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2995
2996 * linux-arm-low.c (struct update_registers_data): Remove.
2997 (update_registers_callback): Return void, take arguments
2998 directly, don't check thread's pid.
2999 (arm_insert_point, arm_remove_point): Use for_each_thread.
3000
2bee2b6c
SM
30012017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3002
3003 * win32-low.c (continue_one_thread): Return void, take argument
3004 directly.
3005 (child_continue): Use for_each_thread.
3006
0b360f19
SM
30072017-11-19 Simon Marchi <simon.marchi@ericsson.com>
3008
3009 * win32-i386-low.c (update_debug_registers_callback): Rename
3010 to ...
3011 (update_debug_registers): ... this, return void, remove pid_p arg.
3012 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
3013
f27866ba
SM
30142017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
3015
3016 * inferiors.h (struct process_info): Add constructor, initialize
3017 fields..
3018 <syscalls_to_catch>: Change type to std::vector<int>.
3019 * inferiors.c (add_process): Allocate process_info with new.
3020 (remove_process): Free process_info with delete.
3021 * linux-low.c (handle_extended_wait): Adjust.
3022 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
3023 * server.c (handle_general_set): Adjust.
3024
e849ea89
PA
30252017-11-16 Pedro Alves <palves@redhat.com>
3026
3027 * remote-utils.c (remote_close): Block SIGIO signals instead of
3028 uninstalling the SIGIO handler.
3029
1d0aa65c
AH
30302017-11-16 Alan Hayward <alan.hayward@arm.com>
3031
3032 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
3033
3491a34c
YQ
30342017-11-16 Yao Qi <yao.qi@linaro.org>
3035
3036 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
3037 (tic6x_store_gregset): Likewise.
3038 (tic6x_usrregs_info): Move it up.
3039
a602f924
AH
30402017-11-15 Alan Hayward <alan.hayward@arm.com>
3041
3042 * Makefile.in: Update arch rules.
3043 * configure.srv: Explicitly mark arch/ files.
3044
5616b6c3
AS
30452017-11-13 Andreas Schwab <schwab@suse.de>
3046
3047 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
3048 function.
3049 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
3050
d1928160
PA
30512017-11-06 Pedro Alves <palves@redhat.com>
3052
3053 * config.in, configure: Regenerate.
3054
bac608e7
SM
30552017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3056
3057 * target.c (struct thread_search): Remove.
3058 (thread_search_callback): Remove.
3059 (prepare_to_access_memory): Use for_each_thread instead of
3060 find_inferior. Inline code from thread_search_callback.
3061
eaddb425
SM
30622017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3063
3064 * server.c (struct visit_actioned_threads_data): Remove.
3065 (visit_actioned_threads): Change prototype to take arguments
3066 directly.
3067 (resume): Use find_thread instead of find_inferior.
3068
99078d34
SM
30692017-10-27 Simon Marchi <simon.marchi@ericsson.com>
3070
3071 * server.c (queue_stop_reply_callback): Change prototype, return
3072 void.
3073 (find_status_pending_thread_callback): Remove.
3074 (handle_status): Replace find_inferior with find_thread and
3075 for_each_thread.
3076
cc628f3d
AH
30772017-10-25 Alan Hayward <alan.hayward@arm.com>
3078
3079 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
3080 with REGNO.
3081 (aarch64_store_gregset): Likewise.
3082 (aarch64_fill_fpregset): Likewise.
3083 (aarch64_store_fpregset): Likewise.
3084
4d3bb80e
SM
30852017-10-21 Simon Marchi <simon.marchi@ericsson.com>
3086
3087 * gdbthread.h (find_thread, for_each_thread): New functions.
3088 * inferiors.c (thread_of_pid): Remove.
3089 (find_any_thread_of_pid): Use find_thread.
3090 * linux-low.c (num_lwps): Use for_each_thread.
3091
7a7cdfa0
YQ
30922017-10-17 Yao Qi <yao.qi@linaro.org>
3093
3094 * Makefile.in: Remove one rule.
3095 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
3096
e675d170
YQ
30972017-10-17 Yao Qi <yao.qi@linaro.org>
3098
3099 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
3100 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
3101
7eb4e0f9
YQ
31022017-10-17 Yao Qi <yao.qi@linaro.org>
3103
3104 * configure.srv: Rename arm.o with arch/arm.o.
3105
60d6cfc9
YQ
31062017-10-17 Yao Qi <yao.qi@linaro.org>
3107
3108 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
3109 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
3110 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
3111 (arch-i386.o, arch-amd64.o): Remove rules.
3112 (arch/%.o): New rule.
3113 Update POSTCOMPILE and COMPILE.pre.
3114 * configure.ac: Invoke AC_CONFIG_COMMANDS.
3115 * configure: Re-generated.
3116 * configure.srv: Replace arch-i386.o with arch/i386.o.
3117 Replace arch-amd64.o with arch/amd64.o.
3118
5bfda255
YQ
31192017-10-16 Yao Qi <yao.qi@linaro.org>
3120
3121 * configure: Regenerated.
3122
9c80ecd6
SM
31232017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3124
3125 * inferiors.h: (struct inferior_list): Remove.
3126 (struct inferior_list_entry); Remove.
3127 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
3128 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
3129 get_first_inferior): Remove.
3130 (for_each_inferior, for_each_inferior_with_data, find_inferior,
3131 find_inferior_id, find_inferior_in_random): Change signature.
3132 * inferiors.c (all_threads): Change type to
3133 std::list<thread_info *>.
3134 (get_thread): Remove macro.
3135 (find_inferior, find_inferior_id): Change signature, implement
3136 using find_thread.
3137 (find_inferior_in_random): Change signature, implement using
3138 find_thread_in_random.
3139 (for_each_inferior, for_each_inferior_with_data): Change
3140 signature, implement using for_each_thread.
3141 (add_inferior_to_list, remove_inferior): Remove.
3142 (add_thread, get_first_thread, thread_of_pid,
3143 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
3144 (get_first_inferior, one_inferior_p, clear_inferior_list):
3145 Remove.
3146 (clear_inferiors, get_thread_process): Update.
3147 * gdbthread.h: Include <list>.
3148 (struct thread_info) <entry>: Remove field.
3149 <id>: New field.
3150 (all_threads): Change type to std::list<thread_info *>.
3151 (get_first_inferior): Add doc.
3152 (find_thread, for_each_thread, find_thread_in_random): New
3153 functions.
3154 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
3155 * linux-arm-low.c (update_registers_callback): Update.
3156 * linux-low.c (second_thread_of_pid_p): Update.
3157 (kill_one_lwp_callback, linux_detach_lwp_callback,
3158 delete_lwp_callback, status_pending_p_callback, same_lwp,
3159 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
3160 iterate_over_lwps, not_stopped_callback,
3161 resume_stopped_resumed_lwps, count_events_callback,
3162 select_singlestep_lwp_callback, select_event_lwp_callback,
3163 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
3164 suspend_and_send_sigstop_callback, wait_for_sigstop,
3165 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
3166 lwp_running, linux_set_resume_request, resume_status_pending_p,
3167 need_step_over_p, start_step_over, linux_resume_one_thread,
3168 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
3169 reset_lwp_ptrace_options_callback): Update.
3170 * linux-mips-low.c (update_watch_registers_callback): Update.
3171 * regcache.c (regcache_invalidate_one, regcache_invalidate):
3172 Update.
3173 (free_register_cache_thread_one): Remove.
3174 (regcache_release): Update.
3175 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
3176 handle_qxfer_threads_worker): Update.
3177 (handle_query): Update, use list iterator.
3178 (visit_actioned_threads, handle_pending_status,
3179 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
3180 clear_pending_status_callback, set_pending_status_callback,
3181 find_status_pending_thread_callback, handle_status,
3182 process_serial_event): Update.
3183 * target.c (thread_search_callback): Update.
3184 * thread-db.c (thread_db_get_tls_address): Update.
3185 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
3186 Update.
3187 * win32-i386-low.c (update_debug_registers_callback): Update.
3188 * win32-low.c (delete_thread_info, child_delete_thread,
3189 continue_one_thread, suspend_one_thread,
3190 get_child_debug_event): Adjust.
3191
9179355e
SM
31922017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3193
3194 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
3195 * inferiors.h: Include <list>.
3196 (struct process_info) <entry>: Remove field.
3197 <pid>: New field.
3198 (pid_of): Change macro to function.
3199 (ptid_of, lwpid_of): Remove macro.
3200 (all_processes): Change type to std::list<process_info *>.
3201 (ALL_PROCESSES): Remove macro.
3202 (for_each_process, find_process): New function.
3203 * inferiors.c (all_processes): Change type to
3204 std::list<process_info *>.
3205 (find_thread_process): Adjust.
3206 (add_process): Likewise.
3207 (remove_process): Likewise.
3208 (find_process_pid): Likewise.
3209 (get_first_process): Likewise.
3210 (started_inferior_callback): Remove.
3211 (have_started_inferiors_p): Adjust.
3212 (attached_inferior_callback): Remove.
3213 (have_attached_inferiors_p): Adjust.
3214 * linux-low.c (check_zombie_leaders): Likewise.
3215 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
3216 (x86_linux_update_xmltarget): Adjust.
3217 * server.c (handle_query): Likewise.
3218 (gdb_reattached_process): Remove.
3219 (handle_status): Adjust.
3220 (kill_inferior_callback): Likewise.
3221 (detach_or_kill_inferior): Remove.
3222 (print_started_pid): Likewise.
3223 (print_attached_pid): Likewise.
3224 (detach_or_kill_for_exit): Update.
3225 (process_serial_event): Likewise.
3226 * linux-arm-low.c (arm_new_fork): Likewise.
3227
c9cb8905
SM
32282017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3229
3230 * dll.h: Include <list>.
3231 (struct dll_info): Add constructor.
3232 <entry>: Remove field.
3233 (all_dlls): Change type to std::list<dll_info>.
3234 * dll.c: Include <algorithm>.
3235 (get_dll): Remove macro.
3236 (all_dlls): Change type to std::list<dll_info *>.
3237 (free_one_dll): Remove.
3238 (match_dll): Likewise.
3239 (loaded_dll): Adjust.
3240 (unloaded_dll): Adjust to all_dlls type change, use
3241 std::find_if. Inline code from match_dll.
3242 (clear_dlls): Adjust to all_dlls type change.
3243 * server.c (emit_dll_description): Remove.
3244 (handle_qxfer_libraries): Adjust to all_dlls type change,
3245 integrate emit_dll_description's functionality.
3246
04ec7890
SM
32472017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3248
3249 * linux-low.h (struct linux_target_ops) <delete_process>: New
3250 field.
3251 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
3252 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
3253 (struct linux_target_ops): Add delete_process callback.
3254 * linux-arm-low.c (arm_delete_process): New.
3255 (struct linux_target_ops): Add delete_process callback.
3256 * linux-bfin-low.c (struct linux_target_ops): Likewise.
3257 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
3258 * linux-m32r-low.c (struct linux_target_ops): Likewise.
3259 * linux-mips-low.c (mips_linux_delete_process): New.
3260 (struct linux_target_ops): Add delete_process callback.
3261 * linux-ppc-low.c (struct linux_target_ops): Likewise.
3262 * linux-s390-low.c (struct linux_target_ops): Likewise.
3263 * linux-sh-low.c (struct linux_target_ops): Likewise.
3264 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
3265 * linux-tile-low.c (struct linux_target_ops): Likewise.
3266 * linux-x86-low.c (x86_linux_delete_process): New.
3267 (struct linux_target_ops): Add delete_process callback.
3268 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
3269
466eecee
SM
32702017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3271
3272 * linux-aarch64-low.c (the_low_target): Add thread delete
3273 callback.
3274 * linux-arm-low.c (arm_delete_thread): New function.
3275 (the_low_target): Add thread delete callback.
3276 * linux-bfin-low.c (the_low_target): Likewise.
3277 * linux-crisv32-low.c (the_low_target): Likewise.
3278 * linux-low.c (delete_lwp): Invoke delete_thread callback if
3279 set.
3280 * linux-low.h (struct linux_target_ops) <delete_thread>: New
3281 field.
3282 * linux-m32r-low.c (the_low_target): Add thread delete callback.
3283 * linux-mips-low.c (mips_linux_delete_thread): New function.
3284 (the_low_target): Add thread delete callback.
3285 * linux-ppc-low.c (the_low_target): Likewise.
3286 * linux-s390-low.c (the_low_target): Likewise.
3287 * linux-sh-low.c (the_low_target): Likewise.
3288 * linux-tic6x-low.c (the_low_target): Likewise.
3289 * linux-tile-low.c (the_low_target): Likewise.
3290 * linux-x86-low.c (the_low_target): Likewise.
3291 * linux-xtensa-low.c (the_low_target): Likewise.
3292
b79f7801
YZ
32932017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
3294
3295 * win32-low.c: Include "common-inferior.h".
3296
bc3b087d
SDJ
32972017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3298
3299 * inferiors.c (set_inferior_cwd): New function.
3300 * server.c (handle_general_set): Handle QSetWorkingDir packet.
3301 (handle_query): Inform that QSetWorkingDir is supported.
3302 * win32-low.c (create_process): Pass the inferior's cwd to
3303 CreateProcess.
3304
d092c5a2
SDJ
33052017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3306
3307 * inferiors.c (current_inferior_cwd): New global variable.
3308 (get_inferior_cwd): New function.
3309 * inferiors.h (struct process_info) <cwd>: New field.
3310
7da0a886
SDJ
33112017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3312
3313 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
3314 (OBS): Add gdb_tilde_expand.o.
3315
289a6840
SM
33162017-10-02 Simon Marchi <simon.marchi@ericsson.com>
3317
3318 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
3319 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3320
256642e8
PA
33212017-09-29 Pedro Alves <palves@redhat.com>
3322
3323 * ax.c (gdb_parse_agent_expr): Constify.
3324 * ax.h (gdb_parse_agent_expr): Constify.
3325 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3326 Constify.
3327 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
3328 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
3329 * remote-utils.h (read_ptid): Constify.
3330 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
3331 (process_point_options, process_serial_event): Constify.
3332 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
3333 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
3334 (cmd_qtbuffer): Constify.
3335
5b9ca4d4
PA
33362017-09-29 Pedro Alves <palves@redhat.com>
3337
3338 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
3339 fails.
3340
94c207e0
PA
33412017-09-29 Pedro Alves <palves@redhat.com>
3342
3343 * linux-low.c (handle_extended_wait): Pass parent thread instead
3344 of process to thread_db_notice_clone.
3345 * linux-low.h (thread_db_notice_clone): Replace parent process
3346 parameter with parent thread parameter.
3347 * thread-db.c (find_one_thread): Add comment.
3348 (thread_db_notice_clone): Replace parent process parameter with
3349 parent thread parameter. Temporarily switch to the parent thread.
3350
75352e28
SDJ
33512017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
3352
3353 * gdbthread.h: Include "common-gdbthread.h".
3354 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
3355 "if" when validating the ptid.
3356 * remote-utils.c: Include "gdbthread.h".
3357 (prepare_resume_reply): Use "switch_to_thread".
3358 * target.c (done_accessing_memory): Likewise.
3359
ad339634
AA
33602017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3361
3362 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
3363 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
3364 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
3365 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
3366 s390x-gs-linux64-ipa.o to ipa_obj.
3367 * linux-s390-low.c (HWCAP_S390_GS): New define.
3368 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
3369 New functions.
3370 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
3371 (s390_arch_setup): Check for guarded-storage support and choose
3372 appropriate tdesc.
3373 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
3374 init_registers_s390x_gs_linux64.
3375 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
3376 enum value.
3377 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
3378 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
3379
cc4d742f
SM
33802017-09-22 Simon Marchi <simon.marchi@ericsson.com>
3381
3382 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
3383
f6327dcb
KB
33842017-09-21 Kevin Buettner <kevinb@redhat.com>
3385
3386 * linux-low.h (struct lwp_info): Add new field, thread_handle.
3387 (thread_db_thread_handle): Declare.
3388 * linux-low.c (linux_target_ops): Initialize thread_handle.
3389 * server.c (handle_qxfer_threads_worker): Add support for
3390 "handle" attribute.
3391 * target.h (struct target_ops): Add new function pointer,
3392 thread_handle.
3393 (target_thread_handle): Define.
3394 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
3395 field in lwp.
3396 (thread_db_thread_handle): New function.
3397
86299109
KB
33982017-09-21 Kevin Buettner <kevinb@redhat.com>
3399
3400 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
3401 * linux-low.h (thread_db_notice_clone): Declare.
3402 * thread-db.c (thread_db_notice_clone): New function.
3403
f557a88a
PA
34042017-09-21 Pedro Alves <palves@redhat.com>
3405
3406 * server.c (gdb_read_memory, handle_status, process_serial_event)
3407 (handle_serial_event, handle_target_event): Adjust to
3408 set_desired_thread prototype change.
3409 * target.c (set_desired_thread): Remove 'use_general' parameter
3410 and adjust.
3411 * target.h (set_desired_thread): Remove 'use_general' parameter.
3412
223ffa71
TT
34132017-09-20 Tom Tromey <tom@tromey.com>
3414
3415 * target.c (target_terminal::terminal_state): Define.
3416 (target_terminal::init): Rename from target_terminal_init.
3417 (target_terminal::inferior): Rename from
3418 target_terminal_inferior.
3419 (target_terminal::ours): Rename from target_terminal_ours.
3420 (target_terminal::ours_for_output, target_terminal::info): New.
3421
04fd3ba9
SM
34222017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3423
3424 * server.c (accumulate_file_name_length): Remove.
3425 (emit_dll_description): Adjust to std::string change.
3426 (handle_qxfer_libraries): Use std::string to hold document.
3427
5e187554
SM
34282017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3429
3430 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
3431 return type of xml_escape_text.
3432 * server.c (emit_dll_description): Likewise.
3433
1526853e
SM
34342017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3435
3436 * server.c (captured_main): Accept argument for --selftest.
3437 Update run_tests call.
3438 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
3439 when registering selftests.
3440
c4dfafab
SDJ
34412017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3442
3443 * regcache.c (get_thread_regcache): Update code to use "std::vector"
3444 instead of "VEC" for "target_desc.reg_defs".
3445 (regcache_cpy): Likewise.
3446 (registers_to_string): Likewise.
3447 (registers_from_string): Likewise.
3448 (find_regno): Likewise.
3449 (supply_regblock): Likewise.
3450 (regcache_raw_read_unsigned): Likewise.
3451 * tdesc.c (init_target_desc): Likewise.
3452 (tdesc_create_reg): Likewise.
3453 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
3454 (struct target_desc) <reg_defs>: Convert to "std::vector".
3455 (target_desc): Do not initialize "reg_defs".
3456 (~target_desc): Update code to use "std::vector" instead of "VEC"
3457 for "target_desc.reg_defs".
3458 (operator==): Likewise.
3459
124aceb4
SM
34602017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3461
3462 * inferiors.h (thread_to_gdb_id): Remove.
3463 * inferiors.c (thread_to_gdb_id): Remove.
3464 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
3465 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
3466 lynx_store_registers, lynx_read_memory, lynx_write_memory):
3467 Likewise.
3468 * nto-low.c (nto_fetch_registers, nto_store_registers,
3469 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
3470
96cde54f
SM
34712017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3472
3473 * inferiors.h (gdb_id_to_thread_id): Remove.
3474 * inferiors.c (gdb_id_to_thread_id): Remove.
3475 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
3476 removal. Move pid declaration closer to where it's used.
3477
e8ca139e
SM
34782017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3479
3480 * server.c (handle_detach): New function.
3481 (process_serial_event): Move code out, call handle_detach.
3482
f8a4e119
SM
34832017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3484
3485 * server.c (require_running): Rename to ...
3486 (require_running_or_return): ... this ...
3487 (require_running_or_break): ... and this.
3488 (handle_query, process_serial_event): Adjust.
3489
0eb0a407
SM
34902017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3491
3492 * linux-low.c (linux_set_resume_request): Remove unused
3493 variables.
3494
785922a5
SM
34952017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3496
3497 * server.c (first_thread_of): Remove.
3498 (process_serial_event): Replace usage of first_thread_of with
3499 find_any_thread_of_pid.
3500 * tracepoint.c (same_process_p): Remove.
3501 (gdb_agent_about_to_close): Replace usage of same_process_p with
3502 find_any_thread_of_pid.
3503 * linux-x86-low.c (same_process_callback): Remove.
3504 (x86_arch_setup_process_callback): Replace usage of
3505 same_process_callback with find_any_thread_of_pid.
3506 * thread-db.c (any_thread_of): Remove.
3507 (switch_to_process): Replace usage of any_thread_of with
3508 find_any_thread_of_pid.
3509 * inferiors.c (thread_pid_matches_callback): Remove.
3510 (find_thread_process): Adjust to use find_any_thread_of_pid.
3511
a059f00c
SDJ
35122017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3513
3514 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 3515 with "!VEC_empty".
a059f00c 3516
cc397f3a
SDJ
35172017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3518
3519 * linux-low.c (handle_extended_wait): Use
3520 "allocate_target_description" instead of "XNEW".
3521 * linux-x86-low.c (initialize_low_arch): Likewise.
3522
22916b07
YQ
35232017-09-05 Yao Qi <yao.qi@linaro.org>
3524
3525 * configure.srv (srv_i386_regobj): Remove.
3526 (srv_amd64_regobj): Remove.
3527 (srv_regobj): Set it to "" for x86 non-linux targets.
3528 * linux-x86-tdesc.c (i386_linux_read_description):
3529 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
3530 (init_registers_i386): Remove the declaration.
3531 (tdesc_i386): Remove the declaration.
3532 (lynx_i386_arch_setup): Call i386_create_target_description.
3533 * nto-x86-low.c: Likewise.
3534 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
3535 [!__x86_64__]: include arch/i386.h.
3536 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
3537
38602d55
YQ
35382017-09-05 Yao Qi <yao.qi@linaro.org>
3539
3540 * configure.srv (srv_amd64_linux_xmlfiles): Remove
3541 i386/amd64-XXX-linux from it.
3542
44b886ff
YQ
35432017-09-05 Yao Qi <yao.qi@linaro.org>
3544
3545 * configure.srv: Empty srv_amd64_linux_regobj if $development is
3546 false.
3547 (ipa_amd64_linux_regobj): Remove.
3548 (ipa_x32_linux_regobj): Remove.
3549
b4570e4b
YQ
35502017-09-05 Yao Qi <yao.qi@linaro.org>
3551
3552 * Makefile.in (arch-amd64.o): New rule.
3553 * configure.srv: Append arch-amd64.o.
3554 * linux-amd64-ipa.c: Include common/x86-xstate.h.
3555 (get_ipa_tdesc): Call amd64_linux_read_description.
3556 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
3557 and init_registers_amd64_XXX.
3558 * linux-x86-low.c (x86_linux_read_description): Call
3559 amd64_linux_read_description.
3560 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
3561 (initialize_low_arch): Don't call init_registers_x32_XXX and
3562 init_registers_amd64_XXX.
3563 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
3564 and tdesc_amd64_XXX.
3565 [__x86_64__] (amd64_tdesc_test): New function.
3566 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
3567 and init_registers_amd64_XXX.
3568 * linux-x86-tdesc.c: Include arch/amd64.h.
3569 (xcr0_to_tdesc_idx): New function.
3570 (i386_linux_read_description): New function.
3571 (amd64_get_ipa_tdesc_idx): New function.
3572 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
3573 (amd64_get_ipa_tdesc): Declare.
3574
d1f28ea2
YQ
35752017-09-05 Yao Qi <yao.qi@linaro.org>
3576
3577 * configure.srv (srv_i386_linux_xmlfiles): Remove
3578 i386/i386-XXX-linux.xml from it.
3579
25a93583
YQ
35802017-09-05 Yao Qi <yao.qi@linaro.org>
3581
3582 * configure.srv: Set srv_i386_linux_regobj empty if $development
3583 is false.
3584 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
3585 initialize_low_tdesc.
3586 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
3587 with #if initialize_low_tdesc.
3588 * linux-x86-tdesc-selftest.c: New file.
3589 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
3590
5f035c07
YQ
35912017-09-05 Yao Qi <yao.qi@linaro.org>
3592
3593 * Makefile.in (arch-i386.o): New rule.
3594 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
3595 (x86_64-*-linux*): Likewise.
3596 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
3597 include arch/i386.h.
3598 (i386_linux_read_description): Remove code and call
3599 i386_create_target_description.
3600 * tdesc.c (allocate_target_description): New function.
3601 * tdesc.h (set_tdesc_architecture): Remove declaration.
3602 (set_tdesc_osabi): Likewise.
3603
0abe8a89
YQ
36042017-09-05 Yao Qi <yao.qi@linaro.org>
3605
3606 * linux-x86-tdesc.c: Don't include <inttypes.h>.
3607 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
3608 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
3609 .xmltarget.
3610 * server.c (get_features_xml): Call tdesc_get_features_xml.
3611 * tdesc.c (set_tdesc_architecture): New function.
3612 (set_tdesc_osabi): New function.
3613 (tdesc_get_features_xml): New function.
3614 (tdesc_create_feature): Add an argument.
3615 * tdesc.h (struct target_desc) <features>: New field.
3616 <arch, osabi>: New field.
3617 (~target_desc): xfree features, arch, and osabi.
3618 (target_desc::oerator==): Don't compare .xmltarget.
3619 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
3620 (set_tdesc_osabi): Likewise.
3621 (tdesc_get_features_xml): Likewise.
3622
0a188386
YQ
36232017-09-05 Yao Qi <yao.qi@linaro.org>
3624
3625 * linux-x86-tdesc.c: Include selftest.h.
3626 (i386_tdesc_test): New function.
3627 (initialize_low_tdesc): Call selftests::register_test.
3628 * tdesc.h: Include regdef.h.
3629 (target_desc): Override operator == and !=.
3630
f49ff000
YQ
36312017-09-05 Yao Qi <yao.qi@linaro.org>
3632
3633 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
3634 (ipa_obj): Likewise.
3635 * linux-i386-ipa.c: Include common/x86-xstate.h
3636 (get_ipa_tdesc): Call i386_linux_read_description.
3637 (initialize_low_tracepoint): Don't call init_registers_XXX
3638 functions, call initialize_low_tdesc instead.
3639 * linux-x86-low.c (x86_linux_read_description): Call
3640 i386_linux_read_description.
3641 (initialize_low_arch): Don't call init_registers_i386_XXX
3642 functions, call initialize_low_tdesc.
3643 * linux-x86-tdesc.c: New file.
3644 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
3645 (i386_get_ipa_tdesc_idx): Declare.
3646 (i386_get_ipa_tdesc): Declare.
3647 (initialize_low_tdesc): Declare.
3648
2b68ef2f
YQ
36492017-09-05 Yao Qi <yao.qi@linaro.org>
3650
3651 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
3652 instead of 0.
3653
f7000548
YQ
36542017-09-05 Yao Qi <yao.qi@linaro.org>
3655
3656 * Makefile.in (IPA_OBJS): Add vec-ipa.o
3657 * regcache.c (get_thread_regcache): Use VEC_length.
3658 (init_register_cache): Likewise.
3659 (regcache_cpy): Likewise.
3660 (registers_to_string): Iterate reg_defs via VEC_iterate.
3661 (find_regno): Likewise.
3662 (find_register_by_number): Use VEC_index.
3663 (register_size): Call find_register_by_number.
3664 (register_data): Call find_register_by_number.
3665 (supply_regblock): Use VEC_length.
3666 (regcache_raw_read_unsigned): Likewise.
3667 * tdesc.c (init_target_desc): Iterate reg_defs via
3668 VEC_iterate.
3669 (default_description): Update initializer.
3670 (copy_target_description): Don't update field num_registers.
3671 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
3672 <num_registers>: Remove.
3673
50a421ac
SM
36742017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3675
3676 * Makefile.in (.SECONDARY): Define target.
3677
23fdd69e
SM
36782017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3679
3680 * linux-low.c (linux_wait_1): Adjust.
3681 * server.c (queue_stop_reply_callback): Adjust.
3682
0a2dde4a
SDJ
36832017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3684
3685 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
3686 QEnvironmentUnset and QEnvironmentReset packets.
3687 (handle_query): Inform remote that QEnvironmentHexEncoded,
3688 QEnvironmentUnset and QEnvironmentReset are supported.
3689
6afd337d
SM
36902017-08-25 Simon Marchi <simon.marchi@ericsson.com>
3691
3692 * inferiors.h (inferior_target_data): Rename to ...
3693 (thread_target_data): ... this.
3694 (inferior_regcache_data): Rename to ...
3695 (thread_regcache_data): ... this.
3696 (set_inferior_regcache_data): Rename to ...
3697 (set_thread_regcache_data): ... this.
3698 * inferiors.c (inferior_target_data): Rename to ...
3699 (thread_target_data): ... this.
3700 (inferior_regcache_data): Rename to ...
3701 (thread_regcache_data): ... this.
3702 (set_inferior_regcache_data): Rename to ...
3703 (set_thread_regcache_data): ... this.
3704 (free_one_thread): Update.
3705 * linux-low.h (get_thread_lwp): Update.
3706 * regcache.c (get_thread_regcache): Update.
3707 (regcache_invalidate_thread): Update.
3708 (free_register_cache_thread): Update.
3709 * win32-i386-low.c (update_debug_registers_callback): Update.
3710 (win32_get_current_dr): Update.
3711 * win32-low.c (thread_rec): Update.
3712 (delete_thread_info): Update.
3713 (continue_one_thread): Update.
3714 (suspend_one_thread): Update.
3715
a160cc46
SM
37162017-08-24 Simon Marchi <simon.marchi@ericsson.com>
3717
3718 * inferiors.c (set_inferior_target_data): Remove.
3719 * inferiors.h (set_inferior_target_data): Remove.
3720
6d580b63
YQ
37212017-08-18 Yao Qi <yao.qi@linaro.org>
3722
3723 * Makefile.in (OBS): Add selftest.o.
3724 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
3725 * configure, config.in: Re-generated.
3726 * server.c: Include common/sefltest.h.
3727 (captured_main): Handle option --selftest.
3728
f5a29eb0
YQ
37292017-08-09 Yao Qi <yao.qi@linaro.org>
3730
3731 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
3732 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
3733 i386-avx-mpx.o and i386-mmx.o.
3734 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
3735 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
3736 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
3737 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
3738 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
3739 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
3740 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
3741 i386/amd64-avx-mpx.xml.
3742
57757c2f
YQ
37432017-08-09 Yao Qi <yao.qi@linaro.org>
3744
3745 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
3746 and x32-avx-avx512.o.
3747 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
3748 i386/x32-avx-avx512.xml.
3749
229d26fc
SM
37502017-07-26 Simon Marchi <simon.marchi@ericsson.com>
3751
3752 * tracepoint.h (enum class fast_tpoint_collect_result): New
3753 enumeration.
3754 (fast_tracepoint_collecting): Change return type to
3755 fast_tpoint_collect_result.
3756 * tracepoint.c (fast_tracepoint_collecting): Likewise.
3757 * linux-low.h: Include tracepoint.h.
3758 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
3759 fast_tpoint_collect_result.
3760 * linux-low.c (handle_tracepoints): Adjust.
3761 (linux_fast_tracepoint_collecting): Change return type to
3762 fast_tpoint_collect_result.
3763 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
3764 linux_wait_1, stuck_in_jump_pad_callback,
3765 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
3766 proceed_one_lwp): Adjust to type change.
3767
2e1e43e1
YQ
37682017-07-10 Yao Qi <yao.qi@linaro.org>
3769
3770 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
3771
adc764e7
YQ
37722017-06-29 Yao Qi <yao.qi@linaro.org>
3773
3774 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
3775 Remove.
3776 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
3777
a206891a
SM
37782017-06-20 Simon Marchi <simon.marchi@ericsson.com>
3779
3780 * Makefile.in (IPA_OBJS): Sort and format one item per line.
3781
9a6c7d9c
SDJ
37822017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
3783
3784 * linux-low.c (linux_create_inferior): Adjust code to access the
3785 environment information via 'gdb_environ' class.
3786 * lynx-low.c (lynx_create_inferior): Likewise.
3787 * server.c (our_environ): Make it an instance of 'gdb_environ'.
3788 (get_environ): Return a pointer to 'our_environ'.
3789 (captured_main): Initialize 'our_environ'.
3790 * server.h (get_environ): Adjust prototype.
3791 * spu-low.c (spu_create_inferior): Adjust code to access the
3792 environment information via 'gdb_environ' class.
3793
ae3e2ccf
SM
37942017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3795
3796 * linux-low.c (linux_read_memory, linux_write_memory): Remove
3797 usage of "register" keyword.
3798
3e019bdc
SM
37992017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3800
3801 * configure: Re-generate.
3802
8465943a
SM
38032017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3804
3805 * configure: Re-generate.
3806
cf0dd6f0
SM
38072017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3808
3809 * Makefile.in (COMPILE.pre): Add "-x c++".
3810
9845682b
SDJ
38112017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
3812
3813 * fork-child.c: Conditionally include <signal.h>.
3814
aefd8b33
SDJ
38152017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3816
3817 * server.c (handle_general_set): Handle new packet
3818 "QStartupWithShell".
3819 (handle_query): Add "QStartupWithShell" to the list of supported
3820 packets.
3821 (gdbserver_usage): Add help text explaining the
3822 new "--startup-with-shell" and "--no-startup-with-shell" CLI
3823 options.
3824 (captured_main): Recognize and act upon the presence of the new
3825 CLI options.
3826
2090129c
SDJ
38272017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3828 Pedro Alves <palves@redhat.com>
3829
3830 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
3831 * configure: Regenerate.
3832 * configure.srv (srv_linux_obj): Add "fork-child.o" and
3833 "fork-inferior.o".
3834 (i[34567]86-*-lynxos*): Likewise.
3835 (spu*-*-*): Likewise.
3836 * fork-child.c: New file.
3837 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
3838 and "environ.h".
3839 (linux_ptrace_fun): New function.
3840 (linux_create_inferior): Adjust function prototype to reflect
3841 change on "target.h". Adjust function code to use
3842 "fork_inferior".
3843 (linux_request_interrupt): Delete "signal_pid".
3844 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3845 (lynx_ptrace_fun): New function.
3846 (lynx_create_inferior): Adjust function prototype to reflect
3847 change on "target.h". Adjust function code to use
3848 "fork_inferior".
3849 * nto-low.c (nto_create_inferior): Adjust function prototype and
3850 code to reflect change on "target.h". Update comments.
3851 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
3852 "common-terminal.h" and "environ.h".
3853 (terminal_fd): Moved to fork-child.c.
3854 (old_foreground_pgrp): Likewise.
3855 (restore_old_foreground_pgrp): Likewise.
3856 (last_status): Make it global.
3857 (last_ptid): Likewise.
3858 (our_environ): New variable.
3859 (startup_with_shell): Likewise.
3860 (program_name): Likewise.
3861 (program_argv): Rename to...
3862 (program_args): ...this.
3863 (wrapper_argv): New variable.
3864 (start_inferior): Delete function.
3865 (get_exec_wrapper): New function.
3866 (get_exec_file): Likewise.
3867 (get_environ): Likewise.
3868 (prefork_hook): Likewise.
3869 (post_fork_inferior): Likewise.
3870 (postfork_hook): Likewise.
3871 (postfork_child_hook): Likewise.
3872 (handle_v_run): Update code to deal with arguments coming from the
3873 remote host. Update calls from "start_inferior" to
3874 "create_inferior".
3875 (captured_main): Likewise. Initialize environment variable. Call
3876 "have_job_control".
3877 * server.h (post_fork_inferior): New prototype.
3878 (get_environ): Likewise.
3879 (last_status): Declare.
3880 (last_ptid): Likewise.
3881 (signal_pid): Likewise.
3882 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3883 (spu_ptrace_fun): New function.
3884 (spu_create_inferior): Adjust function prototype to reflect change
3885 on "target.h". Adjust function code to use "fork_inferior".
3886 * target.c (target_terminal_init): New function.
3887 (target_terminal_inferior): Likewise.
3888 (target_terminal_ours): Likewise.
3889 * target.h: Include <vector>.
3890 (struct target_ops) <create_inferior>: Update prototype.
3891 (create_inferior): Update macro.
3892 * utils.c (gdb_flush_out_err): New function.
3893 * win32-low.c (win32_create_inferior): Adjust function prototype
3894 and code to reflect change on "target.h".
3895
043a4934
SDJ
38962017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3897
3898 * inferiors.c (switch_to_thread): New function.
3899
15652511
SDJ
39002017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3901
3902 * Makefile.in (SFILE): Add "common/job-control.c".
3903 (OBS): Add "job-control.o".
3904
21ea5acd
SDJ
39052017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3906
3907 * Makefile: Remove "@host_makefile_frag@".
3908
e13cb306
PA
39092017-05-05 Pedro Alves <palves@redhat.com>
3910
3911 * configure: Regenerate.
3912
c94fee56
SDJ
39132017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3914
3915 * configure: Regenerate.
3916
a0ff9e1a
SM
39172017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
3918
3919 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
3920 software_single_step change of return type to
3921 std::vector<CORE_ADDR>.
3922 * linux-low.c (install_software_single_step_breakpoints):
3923 Likewise.
3924 * linux-low.h (install_software_single_step_breakpoints):
3925 Likewise.
3926
be628ab8
SDJ
39272017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3928
3929 * remote-utils.c: Include "gdb_termios.h" instead of
3930 "terminal.h".
3931 * terminal.h: Delete file.
3932
7c5ded6a
SDJ
39332017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3934
3935 * server.c: Include <vector>.
3936 <program_argv, wrapper_argv>: Convert to std::vector.
3937 (start_inferior): Rewrite function to use C++.
3938 (handle_v_run): Likewise. Update code that calculates the argv
3939 based on the vRun packet; use C++.
3940 (captured_main): Likewise.
3941
436252de
SM
39422017-04-06 Simon Marchi <simon.marchi@ericsson.com>
3943
3944 * server.c (handle_v_cont): Initialize thread_resume::thread
3945 with null_ptid.
3946
9bf2a700
PA
39472017-04-05 Pedro Alves <palves@redhat.com>
3948
3949 * configure: Regenerate.
3950
a121b7c1
PA
39512017-04-05 Pedro Alves <palves@redhat.com>
3952
3953 * gdbreplay.c (sync_error): Constify.
3954 * linux-x86-low.c (push_opcode): Constify.
3955
21c8a587
PA
39562017-04-05 Pedro Alves <palves@redhat.com>
3957
3958 * win32-low.c (get_child_debug_event)
3959 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
3960 Report TARGET_WAITKIND_SPURIOUS instead.
3961
fb32b4f7
PA
39622017-04-05 Pedro Alves <palves@redhat.com>
3963
e79be6e5
SM
3964 * remote-utils.c (remote_prepare, remote_open): Constify.
3965 * remote-utils.h (remote_prepare, remote_open): Constify.
3966 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 3967
65dd1e59
SM
39682017-04-04 Simon Marchi <simon.marchi@ericsson.com>
3969
3970 * Makefile.in (clean): Clear .deps.
3971
8fa5b777
SM
39722017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
3973
3974 * .gitignore: Remove generated files, replace with wildcard.
3975 * (clean): Replace removal of generated files with wildcard.
3976 (version.c): Replace with...
3977 (version-generated.c): ...this.
3978 (xml-builtin.c): Replace with...
3979 (xml-builtin-generated.c): ...this.
3980 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
3981 (%.c: *regformats*): Replace with...
3982 (%-generated.c: *regformats*): ...this.
3983
a12e714b
MF
39842017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3985
3986 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
3987 (xtensa_fill_gregset): Call collect_register_by_name for
3988 threadptr register.
3989 (xtensa_store_gregset): Call supply_register_by_name for
3990 threadptr register.
3991
1a09b50a
MF
39922017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3993
3994 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
3995 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
3996 (xtensa_store_gregset): Call supply_register for all registers in
3997 a0_regnum..a0_regnum + C0_NREGS range.
3998
1a01e7c6
SM
39992017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4000
4001 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
4002 (ax-ipa.o: ax.c): Remove.
4003 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
4004 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
4005 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
4006 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
4007 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
4008
36bc18a8
SM
40092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4010
4011 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
4012 (print-utils-ipa.o: ../common/print-utils.c): Remove.
4013 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
4014 (errors-ipa.o: ../common/errors.c): Remove.
4015 (format-ipa.o: ../common/format.c): Remove.
4016 (common-utils-ipa.o: ../common/common-utils.c): Remove.
4017
a8ebe3d5
SM
40182017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4019
4020 * Makefile.in (%-ipa.o: %.c): New rule.
4021 (tracepoint-ipa.o: tracepoint.c): Remove.
4022 (utils-ipa.o: utils.c): Remove.
4023 (remote-utils-ipa.o: remote-utils.c): Remove.
4024 (regcache-ipa.o: regcache.c): Remove.
4025 (i386-linux-ipa.o: i386-linux.c): Remove.
4026 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
4027 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
4028 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
4029 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
4030 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
4031 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
4032 (amd64-linux-ipa.o: amd64-linux.c): Remove.
4033 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
4034 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
4035 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
4036 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
4037 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
4038 (aarch64-ipa.o: aarch64.c): Remove.
4039 (s390-linux32-ipa.o: s390-linux32.c): Remove.
4040 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
4041 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
4042 (s390-linux64-ipa.o: s390-linux64.c): Remove.
4043 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
4044 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
4045 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
4046 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
4047 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
4048 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
4049 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
4050 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
4051 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
4052 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
4053 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
4054 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
4055 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
4056 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
4057 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
4058 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
4059 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
4060 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
4061 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
4062 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
4063 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
4064 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
4065 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
4066 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
4067 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
4068 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
4069 (tdesc-ipa.o: tdesc.c): Remove.
4070 (x32-linux-ipa.o: x32-linux.c): Remove.
4071 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
4072 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
4073
50cfacb7
SM
40742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4075
4076 * Makefile.in (%.o: ../arch/%.c): New rule.
4077 (arm.o: ../arch/arm.c): Remove.
4078 (arm-linux.o: ../arch/arm-linux.c): Remove.
4079 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
4080 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
4081
c5a22423
SM
40822017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4083
4084 * Makefile.in (%.o: ../nat/%.c): New rule.
4085 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
4086 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
4087 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
4088 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
4089 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
4090 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
4091 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
4092 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
4093 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
4094 (linux-personality.o: ../nat/linux-personality.c): Remove.
4095 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
4096 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
4097 (x86-linux.o: ../nat/x86-linux.c): Remove.
4098 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
4099 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
4100
6bda016b
SM
41012017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4102
4103 * Makefile.in (%.o: ../common/%.c): New rule.
4104 (signals.o: ../common/signals.c): Remove.
4105 (print-utils.o: ../common/print-utils.c): Remove.
4106 (rsp-low.o: ../common/rsp-low.c): Remove.
4107 (common-utils.o: ../common/common-utils.c): Remove.
4108 (posix-strerror.o: ../common/posix-strerror.c): Remove.
4109 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
4110 (vec.o: ../common/vec.c): Remove.
4111 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
4112 (xml-utils.o: ../common/xml-utils.c): Remove.
4113 (ptid.o: ../common/ptid.c): Remove.
4114 (buffer.o: ../common/buffer.c): Remove.
4115 (format.o: ../common/format.c): Remove.
4116 (filestuff.o: ../common/filestuff.c): Remove.
4117 (agent.o: ../common/agent.c): Remove.
4118 (errors.o: ../common/errors.c): Remove.
4119 (environ.o: ../common/environ.c): Remove.
4120 (common-debug.o: ../common/common-debug.c): Remove.
4121 (cleanups.o: ../common/cleanups.c): Remove.
4122 (common-exceptions.o: ../common/common-exceptions.c): Remove.
4123 (fileio.o: ../common/fileio.c): Remove.
4124 (common-regcache.o: ../common/common-regcache.c): Remove.
4125 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
4126 (new-op.o: ../common/new-op.c): Remove.
4127 (btrace-common.o: ../common/btrace-common.c): Remove.
4128
21122961
SM
41292017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4130
4131 * Makefile.in (%.o: ../target/%.c): New rule.
4132 (waitstatus.o: ../target/waitstatus.c): Remove.
4133
c362e621
SM
41342017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
4135
4136 * Makefile.in
4137 (%.c: ../regformats/%.dat,
4138 (%.c: ../regformats/arm/%.dat,
4139 (%.c: ../regformats/i386/%.dat,
4140 (%.c: ../regformats/rs6000/%.dat): New rules.
4141 (aarch64.c): Remove.
4142 (reg-arm.c): Remove.
4143 (arm-with-iwmmxt.c): Remove.
4144 (arm-with-vfpv2.c): Remove.
4145 (arm-with-vfpv3.c): Remove.
4146 (arm-with-neon.c): Remove.
4147 (reg-bfin.c): Remove.
4148 (reg-cris.c): Remove.
4149 (reg-crisv32.c): Remove.
4150 (i386.c): Remove.
4151 (i386-linux.c): Remove.
4152 (i386-avx.c): Remove.
4153 (i386-avx-linux.c): Remove.
4154 (i386-avx-avx512.c): Remove.
4155 (i386-avx-avx512-linux.c): Remove.
4156 (i386-mpx.c): Remove.
4157 (i386-mpx-linux.c): Remove.
4158 (i386-avx-mpx-avx512-pku.c): Remove.
4159 (i386-avx-mpx-avx512-pku-linux.c): Remove.
4160 (i386-avx-mpx.c): Remove.
4161 (i386-avx-mpx-linux.c): Remove.
4162 (i386-mmx.c): Remove.
4163 (i386-mmx-linux.c): Remove.
4164 (reg-ia64.c): Remove.
4165 (reg-m32r.c): Remove.
4166 (reg-m68k.c): Remove.
4167 (reg-cf.c): Remove.
4168 (mips-linux.c): Remove.
4169 (mips-dsp-linux.c): Remove.
4170 (mips64-linux.c): Remove.
4171 (mips64-dsp-linux.c): Remove.
4172 (nios2-linux.c): Remove.
4173 (powerpc-32.c): Remove.
4174 (powerpc-32l.c): Remove.
4175 (powerpc-altivec32l.c): Remove.
4176 (powerpc-cell32l.c): Remove.
4177 (powerpc-vsx32l.c): Remove.
4178 (powerpc-isa205-32l.c): Remove.
4179 (powerpc-isa205-altivec32l.c): Remove.
4180 (powerpc-isa205-vsx32l.c): Remove.
4181 (powerpc-e500l.c): Remove.
4182 (powerpc-64l.c): Remove.
4183 (powerpc-altivec64l.c): Remove.
4184 (powerpc-cell64l.c): Remove.
4185 (powerpc-vsx64l.c): Remove.
4186 (powerpc-isa205-64l.c): Remove.
4187 (powerpc-isa205-altivec64l.c): Remove.
4188 (powerpc-isa205-vsx64l.c): Remove.
4189 (s390-linux32.c): Remove.
4190 (s390-linux32v1.c): Remove.
4191 (s390-linux32v2.c): Remove.
4192 (s390-linux64.c): Remove.
4193 (s390-linux64v1.c): Remove.
4194 (s390-linux64v2.c): Remove.
4195 (s390-te-linux64.c): Remove.
4196 (s390-vx-linux64.c): Remove.
4197 (s390-tevx-linux64.c): Remove.
4198 (s390x-linux64.c): Remove.
4199 (s390x-linux64v1.c): Remove.
4200 (s390x-linux64v2.c): Remove.
4201 (s390x-te-linux64.c): Remove.
4202 (s390x-vx-linux64.c): Remove.
4203 (s390x-tevx-linux64.c): Remove.
4204 (tic6x-c64xp-linux.c): Remove.
4205 (tic6x-c64x-linux.c): Remove.
4206 (tic6x-c62x-linux.c): Remove.
4207 (reg-sh.c): Remove.
4208 (reg-sparc64.c): Remove.
4209 (reg-spu.c): Remove.
4210 (amd64.c): Remove.
4211 (amd64-linux.c): Remove.
4212 (amd64-avx.c): Remove.
4213 (amd64-avx-linux.c): Remove.
4214 (amd64-avx-avx512.c): Remove.
4215 (amd64-avx-avx512-linux.c): Remove.
4216 (amd64-mpx.c): Remove.
4217 (amd64-mpx-linux.c): Remove.
4218 (amd64-avx-mpx-avx512-pku.c): Remove.
4219 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
4220 (amd64-avx-mpx.c): Remove.
4221 (amd64-avx-mpx-linux.c): Remove.
4222 (x32.c): Remove.
4223 (x32-linux.c): Remove.
4224 (x32-avx.c): Remove.
4225 (x32-avx-linux.c): Remove.
4226 (x32-avx-avx512.c): Remove.
4227 (x32-avx-avx512-linux.c): Remove.
4228 (reg-xtensa.c): Remove.
4229 (reg-tilegx.c): Remove.
4230 (reg-tilegx32.c): Remove.
4231
1672e0d9
SDJ
42322017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4233
4234 * Makefile.in (SFILES): Add "common/environ.c".
4235 (OBJS): Add "common/environ.h".
4236
239b6d10
WT
42372017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4238
4239 * configure.ac: Check if the fs_base and gs_base members of
4240 `struct user_regs_struct' exist.
4241 * config.in: Regenerated.
4242 * configure: Likewise.
4243
694b382c
AT
42442017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
4245
4246 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
4247 target_read_memory.
4248 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
4249 (get_next_pcs_syscall_next_pc): Likewise.
4250
7dc53023
LM
42512016-12-23 Luis Machado <lgustavo@codesourcery.com>
4252
4253 * win32-i386-low.c: Fix incorrect reference to a couple source files.
4254 * nto-x86-low.c: Likewise.
4255
ad02e4fe
SM
42562016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
4257
4258 * Makefile.in: Include disable-implicit-rules.mk.
4259
dcb07cfa
PA
42602016-11-23 Pedro Alves <palves@redhat.com>
4261
4262 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
4263 (debug_vprintf): Use std::chrono::steady_clock instead of
4264 gettimeofday. Use '.' instead of ':'.
4265 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
4266 (get_timestamp): Use std::chrono::steady_clock instead of
4267 gettimeofday.
4268
8629c02c
SM
42692016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4270
4271 * Makefile.in: Fix whitespace formatting.
4272
b593ecca
SM
42732016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4274
4275 * Makefile.in (SFILES, OBS): Flatten list and order
4276 alphabetically.
4277
9986ba08
PA
42782016-11-23 Pedro Alves <palves@redhat.com>
4279
4280 * event-loop.c (handle_file_event): Use warning.
4281 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
4282 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4283 Use warning.
4284
4eefa7bc
PA
42852016-11-23 Pedro Alves <palves@redhat.com>
4286
4287 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
4288 output.
4289 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
4290 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
4291 debug_printf and debug_flush for debug output.
4292 * server.c (handle_general_set): Likewise.
4293 * thread-db.c (try_thread_db_load): Use debug_printf for debug
4294 output.
4295
5443506e
SM
42962016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4297
4298 * Makefile.in (.c.o): Replace rule with ...
4299 (%.o: %.c): ... this one.
4300
3b165252
SM
43012016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4302
4303 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
4304 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
4305 make.
4306 * configure.ac: Remove checks for the make program.
4307 * configure: Re-generate.
4308
0bcda685
PA
43092016-10-28 Pedro Alves <palves@redhat.com>
4310
4311 * Makefile.in (CXX_DIALECT): Get from configure.
4312 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
4313 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
4314 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
4315 * config.in: Regenerate.
4316 * configure: Regenerate.
4317
c3805894
YQ
43182016-10-27 Yao Qi <yao.qi@linaro.org>
4319
4320 * linux-low.c (linux_supports_range_stepping): Return true if
4321 can_software_single_step return true.
4322
89342618
YQ
43232016-10-27 Yao Qi <yao.qi@linaro.org>
4324
4325 * inferiors.c (find_inferior_in_random): New function.
4326 * inferiors.h (find_inferior_in_random): Declare.
4327 * linux-low.c (linux_wait_for_event_filtered): Call
4328 find_inferior_in_random instead of find_inferior.
4329
e3652c84
YQ
43302016-10-27 Yao Qi <yao.qi@linaro.org>
4331
4332 * linux-low.c (linux_wait_1): If single-step breakpoints are
4333 inserted, remove them.
4334
5a04c4cf
PA
43352016-10-26 Pedro Alves <palves@redhat.com>
4336
4337 * linux-low.c (handle_extended_wait): Link parent/child fork
4338 threads.
4339 (linux_wait_1): Unlink them.
4340 (linux_set_resume_request): Ignore resume requests for
4341 already-resumed and unhandled fork child threads.
4342 * linux-low.h (struct lwp_info) <fork_relative>: New field.
4343 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
4344 New functions.
4345 (handle_v_requests) <vCont>: Don't call require_running.
4346 * server.h (in_queued_stop_replies): New declaration.
4347
cb93dc7f
YQ
43482016-10-24 Yao Qi <yao.qi@linaro.org>
4349
4350 PR server/20733
4351 * linux-aarch64-low.c (append_insns): Cast the return value to
4352 'uint32_t *'.
4353
a1078bea
YQ
43542016-10-10 Yao Qi <yao.qi@linaro.org>
4355
4356 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
4357
1fb77080
SDJ
43582016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
4359
4360 * target.c (target_supports_multi_process): New function, moved
4361 from...
4362 * target.h (target_supports_multi_process): ... here. Remove
4363 macro.
4364
39b5a3b9
TT
43652016-10-05 Tom Tromey <tom@tromey.com>
4366
4367 PR remote/20655:
4368 * tracepoint.c (handle_tracepoint_bkpts): Check
4369 ipa_error_tracepoint, not ipa_stopping_tracepoint.
4370
c1d0b70a
YQ
43712016-10-05 Yao Qi <yao.qi@linaro.org>
4372
4373 * configure.srv: Update the path of arm-*.xml files.
4374
0a69eedb
YQ
43752016-10-05 Terry Guo <terry.guo@arm.com>
4376 Yao Qi <yao.qi@linaro.org>
4377
4378 * Makefile.in: Adjust the path of rules.
4379 * configure.srv: Update the path of xml files.
4380 * regformats/arm-with-iwmmxt.dat: Regenerated.
4381 * regformats/arm-with-neon.dat: Likewise.
4382 * regformats/arm-with-vfpv2.dat: Likewise.
4383 * regformats/arm-with-vfpv3.dat Likewise.
4384
17e16485
YQ
43852016-09-30 Yao Qi <yao.qi@linaro.org>
4386
4387 PR gdbserver/20627
4388 * target.c (target_stop_and_wait): Don't call
4389 target_continue_no_signal, use resume_stop instead.
4390
edeeb602
YQ
43912016-09-26 Yao Qi <yao.qi@linaro.org>
4392
4393 * linux-low.c (linux_wait_1): Call debug_exit.
4394
503b1c39
PA
43952016-09-23 Pedro Alves <palves@redhat.com>
4396
4397 * Makefile.in (SFILES): Add common/new-op.c.
4398 (OBS): Add common/new-op.o.
4399 (new-op.o): New rule.
4400
74172ecf
SM
44012016-09-21 Simon Marchi <simon.marchi@ericsson.com>
4402
4403 * .gitinore: Ignore more files.
4404
fc6cda2e
YQ
44052016-09-21 Yao Qi <yao.qi@linaro.org>
4406
4407 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
4408 23.
4409
bc1e6c81
SDJ
44102016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
4411
4412 * server.c (start_inferior): Call target_mourn_inferior instead of
4413 mourn_inferior; pass ptid_t argument to it.
4414 (resume): Likewise.
4415 (handle_target_event): Likewise.
4416 * target.c (target_mourn_inferior): New function.
4417 * target.h (mourn_inferior): Delete macro.
4418
0e00e962
AA
44192016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4420
4421 * linux-low.c (lwp_is_stepping): New function.
4422
1d8cb77d
CL
44232016-09-06 Carl Love <cel@us.ibm.com>
4424
4425 * server.c (start_inferior): Fixed comment, requested comment change
4426 didn't get updated correctly. Removed reference to ptrace () call as
4427 it is only true on Linux systems.
4428
7313bced
CL
44292016-09-06 Carl Love <cel@us.ibm.com>
4430
4431 * server.c (start_inferior): Do not call
4432 function target_post_create_inferior () if the
4433 inferior process has already exited.
4434
cf6de44d
PA
44352016-09-05 Pedro Alves <palves@redhat.com>
4436
4437 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
4438 (COMPILE.pre, CC_LD): Use CXX directly.
4439 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
4440 * acinclude.m4: Don't include build-with-cxx.m4.
4441 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
4442 * configure: Regenerate.
4443
c1da6748
AT
44442016-09-02 Akash Trehan <akash.trehan123@gmail.com>
4445
4446 PR gdb/19495
4447 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
4448 call writing data to own_buf.
4449
f2b9e3df
SDJ
44502016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4451
4452 * target.c (mywait): Call target_wait instead of
4453 the_target->wait.
4454 (target_wait): New function.
4455
049a8570
SDJ
44562016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4457
4458 * server.c (start_inferior): New variable 'ptid'. Replace calls
4459 to the_target->resume by target_continue{,_no_signal}, depending
4460 on the case.
4461 * target.c (target_stop_and_wait): Call target_continue_no_signal
4462 instead of the_target->resume.
4463 (target_continue): New function.
4464
3aa5cfa0
AT
44652016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4466
4467 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
4468
754653a7
AZ
44692016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4470
4471 PR server/20491
4472 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
4473 ps_prochandle.
4474 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
4475 * linux-arm-low.c (ps_get_thread_area): Likewise.
4476 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
4477 * linux-m68k-low.c (ps_get_thread_area): Likewise.
4478 * linux-mips-low.c (ps_get_thread_area): Likewise.
4479 * linux-nios2-low.c (ps_get_thread_area): Likewise.
4480 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
4481 * linux-x86-low.c (ps_get_thread_area): Likewise.
4482 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
4483
ed036b40
PA
44842016-08-19 Pedro Alves <palves@redhat.com>
4485
4486 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
4487
c8ef42ee
PA
44882016-08-19 Pedro Alves <palves@redhat.com>
4489
4490 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
4491 comment. Use memcpy instead of casting through unsigned long.
4492
9c235a72
PA
44932016-08-19 Pedro Alves <palves@redhat.com>
4494
4495 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
4496 allocating around 0x80000000.
4497
201506da
PA
44982016-08-19 Pedro Alves <palves@redhat.com>
4499
4500 PR gdb/20415
4501 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
4502 (x32-avx512-linux-ipa.o): New rules.
4503 * configure.ac (x86_64-*-linux*): New x32 check.
4504 * configure.srv (ipa_x32_linux_regobj): New.
4505 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
4506 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
4507 descriptions.
4508 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
4509 descriptions.
4510 * configure: Regenerate.
4511
f348d89a
PA
45122016-08-09 Pedro Alves <palves@redhat.com>
4513
4514 PR gdb/18653
4515 * Makefile.in (OBS): Add signals-state-save-restore.o.
4516 (signals-state-save-restore.o): New rule.
4517 * config.in: Regenerate.
4518 * configure: Regenerate.
4519 * linux-low.c: Include "signals-state-save-restore.h".
4520 (linux_create_inferior): Call
4521 restore_original_signals_state.
4522 * server.c: Include "dispositions-save-restore.h".
4523 (captured_main): Call save_original_signals_state.
4524
1baf5149
PA
45252016-08-05 Pedro Alves <palves@redhat.com>
4526
4527 * configure: Regenerate.
4528
fcd4a73d
YQ
45292016-08-04 Yao Qi <yao.qi@linaro.org>
4530
4531 * linux-low.c (regsets_fetch_inferior_registers): Check
4532 errno is ESRCH or not.
4533
979659d0
YQ
45342016-08-02 Yao Qi <yao.qi@linaro.org>
4535
4536 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
4537 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
4538 (thread_db_load_search): Update.
4539 (try_thread_db_load_1): Don't look for td_ta_event_addr,
4540 td_ta_set_event and td_ta_event_getmsg.
4541
6598661d
PA
45422016-07-26 Pedro Alves <palves@redhat.com>
4543
4544 PR server/20414
4545 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
4546 of unsigned long for 64-bit registers and use uint32_t instead of
4547 unsigned int for 32-bit registers.
4548
9cf12d57
PA
45492016-07-26 Pedro Alves <palves@redhat.com>
4550
4551 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
4552 to 'ptrace'.
4553
305450ed
TT
45542016-07-21 Tom Tromey <tom@tromey.com>
4555
4556 * configure: Rebuild.
4557
2583da7c
YQ
45582016-07-21 Yao Qi <yao.qi@linaro.org>
4559
4560 * mem-break.c (find_gdb_breakpoint): Cast bp to
4561 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
4562
21536b36
YQ
45632016-07-21 Yao Qi <yao.qi@linaro.org>
4564
4565 * server.c (handle_v_requests): Support s and S actions
4566 if target_supports_software_single_step return true.
4567
8901d193
YQ
45682016-07-21 Yao Qi <yao.qi@linaro.org>
4569
4570 * linux-low.c (resume_stopped_resumed_lwps): If resume request
4571 is resume_step, call maybe_hw_step.
4572 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
4573 and unstop them.
4574 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
4575 breakpoints or not.
4576 (proceed_one_lwp): If resume request is resume_step, install
4577 reinsert breakpoints and call maybe_hw_step.
4578
0e9a339e
YQ
45792016-07-21 Yao Qi <yao.qi@linaro.org>
4580
4581 * linux-low.c (proceed_one_lwp): Declare.
4582 (linux_resume_one_thread): Remove local variable 'step'.
4583 Lift code enqueue signal. Call proceed_one_lwp instead of
4584 linux_resume_one_lwp.
4585
4281b351
YQ
45862016-07-21 Yao Qi <yao.qi@linaro.org>
4587
4588 * linux-low.c (linux_resume_one_thread): Call
4589 enqueue_pending_signal.
4590
984a2c04
YQ
45912016-07-21 Yao Qi <yao.qi@linaro.org>
4592
4593 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4594 * inferiors.c (do_restore_current_thread_cleanup): New function.
4595 (make_cleanup_restore_current_thread): Likewise.
4596 * linux-low.c (install_software_single_step_breakpoints): Call
4597 make_cleanup_restore_current_thread. Switch current_thread to
4598 thread.
4599
bec903c9
YQ
46002016-07-21 Yao Qi <yao.qi@linaro.org>
4601
4602 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
4603 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
4604 (clone_one_breakpoint): Likewise.
4605 (delete_reinsert_breakpoints): Change parameter to thread.
4606 Callers updated.
4607 (has_reinsert_breakpoints): Likewise.
4608 (uninsert_reinsert_breakpoints): Likewise.
4609 (reinsert_reinsert_breakpoints): Likewise.
4610 * mem-break.h (set_reinsert_breakpoint): Update declaration.
4611 (delete_reinsert_breakpoints): Likewise.
4612 (reinsert_reinsert_breakpoints): Likewise.
4613 (uninsert_reinsert_breakpoints): Likewise.
4614 (has_reinsert_breakpoints): Likewise.
4615
63c40ec7
YQ
46162016-07-21 Yao Qi <yao.qi@linaro.org>
4617
4618 * inferiors.c (get_thread_process): Make parameter const.
4619 * inferiors.h (get_thread_process): Update declaration.
4620 * mem-break.c (clone_all_breakpoints): Remove all parameters.
4621 Add new parameters child_thread and parent_thread. Callers
4622 updated.
4623 * mem-break.h (clone_all_breakpoints): Update declaration.
4624
9aa76cd0
YQ
46252016-07-21 Yao Qi <yao.qi@linaro.org>
4626
4627 * mem-break.c (struct breakpoint) <cond_list>: Remove.
4628 <command_list, handler>: Remove.
4629 (struct gdb_breakpoint): New.
4630 (struct other_breakpoint): New.
4631 (struct reinsert_breakpoint): New.
4632 (is_gdb_breakpoint): New function.
4633 (any_persistent_commands): Update command_list if
4634 is_gdb_breakpoint returns true.
4635 (set_breakpoint): Create breakpoints according to their types.
4636 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
4637 (set_gdb_breakpoint_1): Likewise.
4638 (set_gdb_breakpoint): Likewise.
4639 (clear_breakpoint_conditions): Change parameter type to
4640 'struct gdb_breakpoint *'.
4641 (clear_breakpoint_commands): Likewise.
4642 (clear_breakpoint_conditions_and_commands): Likewise.
4643 (add_condition_to_breakpoint): Likewise.
4644 (add_breakpoint_condition): Likewise.
4645 (add_commands_to_breakpoint): Likewise.
4646 (check_breakpoints): Check other_breakpoint.
4647 (clone_one_breakpoint): Clone breakpopint according to its type.
4648 * mem-break.h (struct gdb_breakpoint): Declare.
4649 (set_gdb_breakpoint): Update declaration.
4650 (clear_breakpoint_conditions_and_commands): Likewise.
4651 (add_breakpoint_condition): Likewise.
4652 (add_breakpoint_commands): Likewise.
4653 * server.c (process_point_options): Change parameter type to
4654 'struct gdb_breakpoint *'.
4655
811f8301
YQ
46562016-07-21 Yao Qi <yao.qi@linaro.org>
4657
4658 * mem-break.c (set_breakpoint_at): Rename it to ...
4659 (set_breakpoint_type_at): ... it.
4660 (set_breakpoint_at): Call set_breakpoint_type_at.
4661 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
4662 * mem-break.h (set_breakpoint_at): Update comments.
4663
b1c51e36
CLT
46642016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
4665
4666 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
4667 to buf parameter.
4668 (nios2_store_gregset): Likewise.
4669
ced2dffb
PA
46702016-07-01 Pedro Alves <palves@redhat.com>
4671 Antoine Tremblay <antoine.tremblay@ericsson.com>
4672
4673 * linux-low.c: Change interface to take the target lwp_info
4674 pointer directly and return void. Handle detaching from a zombie
4675 thread.
4676 (linux_detach_lwp_callback): New function.
4677 (linux_detach): Detach from the leader thread after detaching from
4678 the clone threads.
4679
2ac09a5b
YQ
46802016-06-28 Yao Qi <yao.qi@linaro.org>
4681
4682 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
4683 for variable new_offset.
4684 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4685 (aarch64_ftrace_insn_reloc_cb): Likewise.
4686 (aarch64_ftrace_insn_reloc_tb): Likewise.
4687 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
4688 PRIx64 instead of PRIx32.
4689
79e7fd4f
YQ
46902016-06-28 Yao Qi <yao.qi@linaro.org>
4691
4692 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
4693 (the_low_target): Install arm_get_syscall_trapinfo.
4694
061fc021
YQ
46952016-06-28 Yao Qi <yao.qi@linaro.org>
4696
4697 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
4698 function.
4699 (the_low_target): Install aarch64_get_syscall_trapinfo.
4700
4cc32bec
YQ
47012016-06-28 Yao Qi <yao.qi@linaro.org>
4702
4703 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
4704 Callers updated.
4705 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
4706 Remove parameter sysno.
4707 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
4708 sysret.
4709
782c1122
AA
47102016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4711
4712 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
4713 (s390_emit_ne_goto): Likewise.
4714 (s390_emit_lt_goto): Likewise.
4715 (s390_emit_le_goto): Likewise.
4716 (s390_emit_gt_goto): Likewise.
4717 (s390_emit_ge_goto): Likewise.
4718 (s390x_emit_eq_goto): Likewise.
4719 (s390x_emit_ne_goto): Likewise.
4720 (s390x_emit_lt_goto): Likewise.
4721 (s390x_emit_le_goto): Likewise.
4722 (s390x_emit_gt_goto): Likewise.
4723 (s390x_emit_ge_goto): Likewise.
4724 (s390_emit_ops_impl): Mark variable static.
4725 (s390x_emit_ops): Likewise.
4726
2e7b624b
YQ
47272016-06-17 Yao Qi <yao.qi@linaro.org>
4728
4729 * linux-low.c (handle_extended_wait): Call
4730 uninsert_reinsert_breakpoints for the parent process. Remove
4731 reinsert breakpoints from the child process. Reinsert them to
4732 the parent process when vfork is done.
4733 * mem-break.c (uninsert_reinsert_breakpoints): New function.
4734 (reinsert_reinsert_breakpoints): New function.
4735 * mem-break.h (uninsert_reinsert_breakpoints): Declare
4736 (reinsert_reinsert_breakpoints): Declare.
4737
8a81c5d7
YQ
47382016-06-17 Yao Qi <yao.qi@linaro.org>
4739
4740 * linux-low.c (handle_extended_wait): If the parent is doing
4741 step-over, remove the reinsert breakpoints from the forked child.
4742
f50bf8e5
YQ
47432016-06-17 Yao Qi <yao.qi@linaro.org>
4744
4745 * linux-low.c (unsuspend_all_lwps): Declare.
4746 (linux_low_filter_event): If thread exited, call finish_step_over.
4747 If step-over is finished, unsuspend other threads.
4748
8376a3cb
YQ
47492016-06-17 Yao Qi <yao.qi@linaro.org>
4750
4751 * linux-low.c (linux_resume_one_lwp_throw): Assert
4752 has_reinsert_breakpoints returns false.
4753 * mem-break.c (delete_disabled_breakpoints): Assert
4754 bp type isn't reinsert_breakpoint.
4755
f79b145d
YQ
47562016-06-17 Yao Qi <yao.qi@linaro.org>
4757
4758 * linux-low.c (maybe_hw_step): New function.
4759 (linux_resume_one_lwp_throw): Call maybe_hw_step.
4760 (finish_step_over): Switch current_thread to lwp temporarily,
4761 and assert has_reinsert_breakpoints returns true.
4762 (proceed_one_lwp): Call maybe_hw_step.
4763 * mem-break.c (has_reinsert_breakpoints): New function.
4764 * mem-break.h (has_reinsert_breakpoints): Declare.
4765
0ae534d2
JT
47662016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4767
4768 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
4769
fcdad592
YQ
47702016-05-17 Yao Qi <yao.qi@linaro.org>
4771
4772 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
4773 instead of find_inferior.
4774
9e784964
YQ
47752016-05-05 Yao Qi <yao.qi@linaro.org>
4776
4777 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
4778 Initialize res to zero.
4779
cf2ebb6e
YQ
47802016-05-05 Yao Qi <yao.qi@linaro.org>
4781
4782 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
4783 to uint32_t.
4784
c1aebf87
UW
47852016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4786
4787 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
4788 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
4789 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4790
35fd2deb 47912016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 4792 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
4793
4794 * tracepoint.c (write_inferior_int8): New function.
4795 (cmd_qtenable_disable): Write enable flag using
4796 write_inferior_int8.
4797
484b3c32
YQ
47982016-04-25 Yao Qi <yao.qi@linaro.org>
4799
4800 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
4801 (need_step_over_p): Return zero if the LWP has pending signals
4802 can be delivered on software single step target.
4803
85ba7d86
YQ
48042016-04-25 Yao Qi <yao.qi@linaro.org>
4805
4806 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
4807 return instead of error.
4808
3539aa13
YQ
48092016-04-22 Yao Qi <yao.qi@linaro.org>
4810
4811 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
4812 to 23.
4813
5b061e98
YQ
48142016-04-22 Yao Qi <yao.qi@linaro.org>
4815
4816 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
4817 signal when stepping over breakpoint with software single
4818 step.
4819
3451269c
PA
48202016-04-21 Pedro Alves <palves@redhat.com>
4821
4822 * linux-s390-low.c (s390_collect_ptrace_register)
4823 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
4824 add casts.
4825 (s390_check_regset): Use void * instead of gdb_byte *.
4826
a2358508
PA
48272016-04-20 Pedro Alves <palves@redhat.com>
4828
4829 * configure: Renegerate.
4830
6885166d
YQ
48312016-04-20 Yao Qi <yao.qi@linaro.org>
4832
4833 * linux-aarch32-low.c: Include "arch/arm-linux.h".
4834 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
4835 number 16.
4836 (arm_store_gregset): Likewise.
4837
2b863f51
WT
48382016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4839
4840 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
4841 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
4842 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
4843 (amd64-avx-mpx-linux.c): New rules.
4844 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
4845 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
4846 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
4847 (srv_amd64_regobj): Add amd64-avx-mpx.o.
4848 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
4849 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
4850 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
4851 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
4852 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
4853 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
4854 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
4855 * linux-x86-low.c (x86_linux_read_description): Add case for
4856 X86_XSTATE_AVX_MPX_MASK.
4857 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
4858 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
4859 init_registers_i386_avx_mpx_linux.
4860 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4861 (initialize_low_tracepoint): Call
4862 init_registers_i386_avx_mpx_linux.
4863 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4864 (initialize_low_tracepoint): Call
4865 init_registers_amd64_avx_mpx_linux.
4866 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
4867 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
4868 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
4869 declarations.
4870
9b30624b
PA
48712016-04-18 Pedro Alves <palves@redhat.com>
4872
4873 * configure: Regenerate.
4874
45e3745e
AT
48752016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
4876
4877 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
4878 (aarch64_emit_sub): Likewise.
4879
2afc13ff
PA
48802016-04-12 Pedro Alves <palves@redhat.com>
4881
4882 * utils.c (prepare_to_throw_exception): Delete.
4883
6e774b13
SM
48842016-04-05 Simon Marchi <simon.marchi@ericsson.com>
4885
4886 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
4887
4dca19f8
MK
48882016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
4889
4890 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
4891
d0a9981f
MK
48922016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
4893
4894 * linux-aarch64-ipa.c: Add <elf.h> include.
4895 * linux-ppc-ipa.c: Add <elf.h> include.
4896 * linux-s390-ipa.c: Add <elf.h> include.
4897
252db07e
MK
48982016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4899
4900 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
4901 (get_raw_reg_ptr): Likewise.
4902 (get_trace_state_variable_value_ptr): Likewise.
4903 (set_trace_state_variable_value_ptr): Likewise.
4904 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
4905 char *.
4906
14e2b6d9
MK
49072016-03-31 Wei-cheng Wang <cole945@gmail.com>
4908 Marcin Kościelnicki <koriakin@0x04.net>
4909
4910 PR/17221
4911 * linux-ppc-low.c (emit_insns): New function.
4912 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
4913 (ppc_emit_prologue): New function.
4914 (ppc_emit_epilogue): New function.
4915 (ppc_emit_add): New function.
4916 (ppc_emit_sub): New function.
4917 (ppc_emit_mul): New function.
4918 (ppc_emit_lsh): New function.
4919 (ppc_emit_rsh_signed): New function.
4920 (ppc_emit_rsh_unsigned): New function.
4921 (ppc_emit_ext): New function.
4922 (ppc_emit_zero_ext): New function.
4923 (ppc_emit_log_not): New function.
4924 (ppc_emit_bit_and): New function.
4925 (ppc_emit_bit_or): New function.
4926 (ppc_emit_bit_xor): New function.
4927 (ppc_emit_bit_not): New function.
4928 (ppc_emit_equal): New function.
4929 (ppc_emit_less_signed): New function.
4930 (ppc_emit_less_unsigned): New function.
4931 (ppc_emit_ref): New function.
4932 (ppc_emit_const): New function.
4933 (ppc_emit_reg): New function.
4934 (ppc_emit_pop): New function.
4935 (ppc_emit_stack_flush): New function.
4936 (ppc_emit_swap): New function.
4937 (ppc_emit_stack_adjust): New function.
4938 (ppc_emit_call): New function.
4939 (ppc_emit_int_call_1): New function.
4940 (ppc_emit_void_call_2): New function.
4941 (ppc_emit_if_goto): New function.
4942 (ppc_emit_goto): New function.
4943 (ppc_emit_eq_goto): New function.
4944 (ppc_emit_ne_goto): New function.
4945 (ppc_emit_lt_goto): New function.
4946 (ppc_emit_le_goto): New function.
4947 (ppc_emit_gt_goto): New function.
4948 (ppc_emit_ge_goto): New function.
4949 (ppc_write_goto_address): New function.
4950 (ppc_emit_ops_impl): New static variable.
4951 (ppc64v1_emit_prologue): New function.
4952 (ppc64v2_emit_prologue): New function.
4953 (ppc64_emit_epilogue): New function.
4954 (ppc64_emit_add): New function.
4955 (ppc64_emit_sub): New function.
4956 (ppc64_emit_mul): New function.
4957 (ppc64_emit_lsh): New function.
4958 (ppc64_emit_rsh_signed): New function.
4959 (ppc64_emit_rsh_unsigned): New function.
4960 (ppc64_emit_ext): New function.
4961 (ppc64_emit_zero_ext): New function.
4962 (ppc64_emit_log_not): New function.
4963 (ppc64_emit_bit_and): New function.
4964 (ppc64_emit_bit_or): New function.
4965 (ppc64_emit_bit_xor): New function.
4966 (ppc64_emit_bit_not): New function.
4967 (ppc64_emit_equal): New function.
4968 (ppc64_emit_less_signed): New function.
4969 (ppc64_emit_less_unsigned): New function.
4970 (ppc64_emit_ref): New function.
4971 (ppc64_emit_const): New function.
4972 (ppc64v1_emit_reg): New function.
4973 (ppc64v2_emit_reg): New function.
4974 (ppc64_emit_pop): New function.
4975 (ppc64_emit_stack_flush): New function.
4976 (ppc64_emit_swap): New function.
4977 (ppc64v1_emit_call): New function.
4978 (ppc64v2_emit_call): New function.
4979 (ppc64v1_emit_int_call_1): New function.
4980 (ppc64v2_emit_int_call_1): New function.
4981 (ppc64v1_emit_void_call_2): New function.
4982 (ppc64v2_emit_void_call_2): New function.
4983 (ppc64_emit_if_goto): New function.
4984 (ppc64_emit_eq_goto): New function.
4985 (ppc64_emit_ne_goto): New function.
4986 (ppc64_emit_lt_goto): New function.
4987 (ppc64_emit_le_goto): New function.
4988 (ppc64_emit_gt_goto): New function.
4989 (ppc64_emit_ge_goto): New function.
4990 (ppc64v1_emit_ops_impl): New static variable.
4991 (ppc64v2_emit_ops_impl): New static variable.
4992 (ppc_emit_ops): New function.
4993 (linux_low_target): Wire in ppc_emit_ops.
4994
a2174ba4
MK
49952016-03-31 Wei-cheng Wang <cole945@gmail.com>
4996 Marcin Kościelnicki <koriakin@0x04.net>
4997
4998 PR/17221
4999 * Makefile.in: Add powerpc-*-ipa.o
5000 * configure.srv: Add ipa_obj for powerpc*-linux.
5001 * linux-ppc-ipa.c: New file.
5002 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
5003 includes.
5004 (PPC_FIELD): New macro.
5005 (PPC_SEXT): New macro.
5006 (PPC_OP6): New macro.
5007 (PPC_BO): New macro.
5008 (PPC_LI): New macro.
5009 (PPC_BD): New macro.
5010 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
5011 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
5012 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
5013 (ppc_get_thread_area): New function.
5014 (is_elfv2_inferior): New function.
5015 (gen_ds_form): New function.
5016 (GEN_STD): New macro.
5017 (GEN_STDU): New macro.
5018 (GEN_LD): New macro.
5019 (GEN_LDU): New macro.
5020 (gen_d_form): New function.
5021 (GEN_ADDI): New macro.
5022 (GEN_ADDIS): New macro.
5023 (GEN_LI): New macro.
5024 (GEN_LIS): New macro.
5025 (GEN_ORI): New macro.
5026 (GEN_ORIS): New macro.
5027 (GEN_LWZ): New macro.
5028 (GEN_STW): New macro.
5029 (GEN_STWU): New macro.
5030 (gen_xfx_form): New function.
5031 (GEN_MFSPR): New macro.
5032 (GEN_MTSPR): New macro.
5033 (GEN_MFCR): New macro.
5034 (GEN_MTCR): New macro.
5035 (GEN_SYNC): New macro.
5036 (GEN_LWSYNC): New macro.
5037 (gen_x_form): New function.
5038 (GEN_OR): New macro.
5039 (GEN_MR): New macro.
5040 (GEN_LWARX): New macro.
5041 (GEN_STWCX): New macro.
5042 (GEN_CMPW): New macro.
5043 (gen_md_form): New function.
5044 (GEN_RLDICL): New macro.
5045 (GEN_RLDICR): New macro.
5046 (gen_i_form): New function.
5047 (GEN_B): New macro.
5048 (GEN_BL): New macro.
5049 (gen_b_form): New function.
5050 (GEN_BNE): New macro.
5051 (GEN_LOAD): New macro.
5052 (GEN_STORE): New macro.
5053 (gen_limm): New function.
5054 (gen_atomic_xchg): New function.
5055 (gen_call): New function.
5056 (ppc_relocate_instruction): New function.
5057 (ppc_install_fast_tracepoint_jump_pad): New function.
5058 (ppc_get_min_fast_tracepoint_insn_len): New function.
5059 (ppc_get_ipa_tdesc_idx): New function.
5060 (the_low_target): Wire in the new functions.
5061 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
5062 tdescs.
5063 * linux-ppc-tdesc.h: New file.
5064
a13c4696
MK
50652016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
5066
5067 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5068 (alloc_jump_pad_buffer): New function.
5069 * linux-amd64-ipa.c: Add <sys/mman.h> include.
5070 (alloc_jump_pad_buffer): New function.
5071 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
5072 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
5073 (alloc_jump_pad_buffer): New function.
5074 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
5075 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
5076 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
5077 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
5078
1cda1512
MK
50792016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5080
5081 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
5082 * linux-amd64-ipa.c: Likewise.
5083 * linux-i386-ipa.c: Likewise.
5084 * linux-s390-ipa.c: Likewise.
5085 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
5086 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
5087 set_trace_state_variable_value_ptr.
5088 (struct ipa_sym_addresses): Likewise.
5089 (symbol_list): Likewise.
5090 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
5091 accessing gdb_collect directly.
5092 (gdb_collect_ptr_type): New typedef.
5093 (get_raw_reg_ptr_type): New typedef.
5094 (get_trace_state_variable_value_ptr_type): New typedef.
5095 (set_trace_state_variable_value_ptr_type): New typedef.
5096 (gdb_collect_ptr): New global.
5097 (get_raw_reg_ptr): New global.
5098 (get_trace_state_variable_value_ptr): New global.
5099 (set_trace_state_variable_value_ptr): New global.
5100 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
5101 accessing get_raw_reg directly.
5102 (get_get_tsv_func_addr): Likewise for
5103 get_trace_state_variable_value_ptr.
5104 (get_set_tsv_func_addr): Likewise for
5105 set_trace_state_variable_value_ptr.
5106 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
5107
72fb5488
SM
51082016-03-30 Simon Marchi <simon.marchi@ericsson.com>
5109
5110 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
5111
28170b88
MK
51122016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
5113
5114 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
5115 packets.
5116 (relocate_instruction): Remove own_buf.
5117 * server.c (own_buf): Make global.
5118 (handle_v_requests): Make global.
5119 * server.h (own_buf): New declaration.
5120 (handle_v_requests): New prototype.
5121
f39e8743
MK
51222016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5123
5124 PR 18377
5125 * linux-s390-low.c (add_insns): New function.
5126 (s390_emit_prologue): New function.
5127 (s390_emit_epilogue): New function.
5128 (s390_emit_add): New function.
5129 (s390_emit_sub): New function.
5130 (s390_emit_mul): New function.
5131 (s390_emit_lsh): New function.
5132 (s390_emit_rsh_signed): New function.
5133 (s390_emit_rsh_unsigned): New function.
5134 (s390_emit_ext): New function.
5135 (s390_emit_log_not): New function.
5136 (s390_emit_bit_and): New function.
5137 (s390_emit_bit_or): New function.
5138 (s390_emit_bit_xor): New function.
5139 (s390_emit_bit_not): New function.
5140 (s390_emit_equal): New function.
5141 (s390_emit_less_signed): New function.
5142 (s390_emit_less_unsigned): New function.
5143 (s390_emit_ref): New function.
5144 (s390_emit_if_goto): New function.
5145 (s390_emit_goto): New function.
5146 (s390_write_goto_address): New function.
5147 (s390_emit_litpool): New function.
5148 (s390_emit_const): New function.
5149 (s390_emit_call): New function.
5150 (s390_emit_reg): New function.
5151 (s390_emit_pop): New function.
5152 (s390_emit_stack_flush): New function.
5153 (s390_emit_zero_ext): New function.
5154 (s390_emit_swap): New function.
5155 (s390_emit_stack_adjust): New function.
5156 (s390_emit_set_r2): New function.
5157 (s390_emit_int_call_1): New function.
5158 (s390_emit_void_call_2): New function.
5159 (s390_emit_eq_goto): New function.
5160 (s390_emit_ne_goto): New function.
5161 (s390_emit_lt_goto): New function.
5162 (s390_emit_le_goto): New function.
5163 (s390_emit_gt_goto): New function.
5164 (s390_emit_ge_goto): New function.
5165 (s390x_emit_prologue): New function.
5166 (s390x_emit_epilogue): New function.
5167 (s390x_emit_add): New function.
5168 (s390x_emit_sub): New function.
5169 (s390x_emit_mul): New function.
5170 (s390x_emit_lsh): New function.
5171 (s390x_emit_rsh_signed): New function.
5172 (s390x_emit_rsh_unsigned): New function.
5173 (s390x_emit_ext): New function.
5174 (s390x_emit_log_not): New function.
5175 (s390x_emit_bit_and): New function.
5176 (s390x_emit_bit_or): New function.
5177 (s390x_emit_bit_xor): New function.
5178 (s390x_emit_bit_not): New function.
5179 (s390x_emit_equal): New function.
5180 (s390x_emit_less_signed): New function.
5181 (s390x_emit_less_unsigned): New function.
5182 (s390x_emit_ref): New function.
5183 (s390x_emit_if_goto): New function.
5184 (s390x_emit_const): New function.
5185 (s390x_emit_call): New function.
5186 (s390x_emit_reg): New function.
5187 (s390x_emit_pop): New function.
5188 (s390x_emit_stack_flush): New function.
5189 (s390x_emit_zero_ext): New function.
5190 (s390x_emit_swap): New function.
5191 (s390x_emit_stack_adjust): New function.
5192 (s390x_emit_int_call_1): New function.
5193 (s390x_emit_void_call_2): New function.
5194 (s390x_emit_eq_goto): New function.
5195 (s390x_emit_ne_goto): New function.
5196 (s390x_emit_lt_goto): New function.
5197 (s390x_emit_le_goto): New function.
5198 (s390x_emit_gt_goto): New function.
5199 (s390x_emit_ge_goto): New function.
5200 (s390_emit_ops): New function.
5201 (struct linux_target_ops): Fill in emit_ops hook.
5202
abd9baf9
MK
52032016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5204
5205 PR 18377
5206 * Makefile.in: Add s390 IPA files.
5207 * configure.srv: Build IPA for s390.
5208 * linux-s390-ipa.c: New file.
5209 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
5210 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
5211 (tdesc_s390_linux32): Likewise.
5212 (init_registers_s390_linux32v1): Likewise.
5213 (tdesc_s390_linux32v1): Likewise.
5214 (init_registers_s390_linux32v2): Likewise.
5215 (tdesc_s390_linux32v2): Likewise.
5216 (init_registers_s390_linux64): Likewise.
5217 (tdesc_s390_linux64): Likewise.
5218 (init_registers_s390_linux64v1): Likewise.
5219 (tdesc_s390_linux64v1): Likewise.
5220 (init_registers_s390_linux64v2): Likewise.
5221 (tdesc_s390_linux64v2): Likewise.
5222 (init_registers_s390_te_linux64): Likewise.
5223 (tdesc_s390_te_linux64): Likewise.
5224 (init_registers_s390_vx_linux64): Likewise.
5225 (tdesc_s390_vx_linux64): Likewise.
5226 (init_registers_s390_tevx_linux64): Likewise.
5227 (tdesc_s390_tevx_linux64): Likewise.
5228 (init_registers_s390x_linux64): Likewise.
5229 (tdesc_s390x_linux64): Likewise.
5230 (init_registers_s390x_linux64v1): Likewise.
5231 (tdesc_s390x_linux64v1): Likewise.
5232 (init_registers_s390x_linux64v2): Likewise.
5233 (tdesc_s390x_linux64v2): Likewise.
5234 (init_registers_s390x_te_linux64): Likewise.
5235 (tdesc_s390x_te_linux64): Likewise.
5236 (init_registers_s390x_vx_linux64): Likewise.
5237 (tdesc_s390x_vx_linux64): Likewise.
5238 (init_registers_s390x_tevx_linux64): Likewise.
5239 (tdesc_s390x_tevx_linux64): Likewise.
5240 (have_hwcap_s390_vx): New static variable.
5241 (s390_arch_setup): Fill have_hwcap_s390_vx.
5242 (s390_get_thread_area): New function.
5243 (s390_ft_entry_gpr_esa): New const.
5244 (s390_ft_entry_gpr_zarch): New const.
5245 (s390_ft_entry_misc): New const.
5246 (s390_ft_entry_fr): New const.
5247 (s390_ft_entry_vr): New const.
5248 (s390_ft_main_31): New const.
5249 (s390_ft_main_64): New const.
5250 (s390_ft_exit_fr): New const.
5251 (s390_ft_exit_vr): New const.
5252 (s390_ft_exit_misc): New const.
5253 (s390_ft_exit_gpr_esa): New const.
5254 (s390_ft_exit_gpr_zarch): New const.
5255 (append_insns): New function.
5256 (s390_relocate_instruction): New function.
5257 (s390_install_fast_tracepoint_jump_pad): New function.
5258 (s390_get_min_fast_tracepoint_insn_len): New function.
5259 (s390_get_ipa_tdesc_idx): New function.
5260 (struct linux_target_ops): Wire in the above functions.
5261 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
5262 * linux-s390-tdesc.h: New file.
5263
a4105d04
MK
52642016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5265
5266 * linux-s390-low.c (s390_supports_tracepoints): New function.
5267 (struct linux_target_ops): Fill supports_tracepoints hook.
5268
35ac8b3e
YQ
52692016-03-18 Yao Qi <yao.qi@linaro.org>
5270
5271 * linux-low.c (lwp_signal_can_be_delivered): New function.
5272 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
5273
94610ec4
YQ
52742016-03-18 Yao Qi <yao.qi@linaro.org>
5275
5276 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
5277 0 if signal is enqueued. Remove 'signal' from one debugging
5278 message. Move one debugging message to some lines below.
5279 Remove code setting 'signal' to 0.
5280
80aea927
YQ
52812016-03-18 Yao Qi <yao.qi@linaro.org>
5282
5283 * linux-low.c (linux_low_filter_event): Remove redundant
5284 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
5285
b04fd3be
MK
52862016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5287
5288 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
5289 (struct linux_target_ops): Wire in the above.
5290
c40c8d4b
YQ
52912016-03-03 Yao Qi <yao.qi@linaro.org>
5292
5293 * linux-low.c: Update comments to start_step_over.
5294
0f8288ae
YQ
52952016-03-03 Yao Qi <yao.qi@linaro.org>
5296
5297 PR server/19736
5298 * linux-low.c (handle_extended_wait): Set child suspended
5299 if event_lwp->bp_reinsert isn't zero.
5300
fdbd04a8
YQ
53012016-03-02 Yao Qi <yao.qi@linaro.org>
5302
5303 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
5304 enqueue_pending_signal.
5305
6896a8fa
MK
53062016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
5307
5308 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
5309 is actually loaded.
5310
ab503087
MK
53112016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5312
5313 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
5314 (s390_regmap_3264) [!__s390x__]: New global.
5315 (s390_collect_ptrace_register): Skip map entries containing -1.
5316 (s390_supply_ptrace_register): Ditto.
5317 (s390_fill_gprs_high): New function.
5318 (s390_store_gprs_high): New function.
5319 (s390_regsets): Add NT_S390_HIGH_GPRS.
5320 (s390_get_hwcap): Enable on 31-bit.
5321 (have_hwcap_s390_high_gprs): Enable on 31-bit.
5322 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
5323 Detect NT_S390_HIGH_GPRS.
5324 (s390_usrregs_info_3264): Enable on 31-bit.
5325 (s390_regs_info): Enable regs_info_3264 on 31-bit.
5326 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
5327
ae91f625
MK
53282016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5329
5330 PR gdb/13808
5331 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
5332 * configure.srv: Ditto.
5333 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
5334 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
5335 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
5336 (init_registers_amd64_linux): Remove prototype.
5337 (tdesc_amd64_linux): Remove declaration.
5338 (get_ipa_tdesc): New function.
5339 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5340 initialize remaining tdescs.
5341 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
5342 (init_registers_i386_linux): Remove prototype.
5343 (tdesc_i386_linux): Remove declaration.
5344 (get_ipa_tdesc): New function.
5345 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5346 initialize remaining tdescs.
5347 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
5348 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
5349 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
5350 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
5351 (x86_get_ipa_tdesc_idx): New function.
5352 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
5353 * linux-x86-tdesc.h: New file.
5354 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
5355 (target_get_ipa_tdesc_idx): New macro.
5356 * tracepoint.c (ipa_tdesc_idx): New macro.
5357 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
5358 (symbol_list): Add ipa_tdesc_idx.
5359 (cmd_qtstart): Write ipa_tdesc_idx in the target.
5360 (ipa_tdesc): Remove.
5361 (ipa_tdesc_idx): New variable.
5362 (get_context_regcache): Use get_ipa_tdesc.
5363 (gdb_collect): Ditto.
5364 (gdb_probe): Ditto.
5365 * tracepoint.h (get_ipa_tdesc): New prototype.
5366 (ipa_tdesc): Remove.
5367
e7ad2f14
PA
53682016-02-24 Pedro Alves <palves@redhat.com>
5369
5370 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
5371 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
5372 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
5373 Factor out common code between the USE_SIGTRAP_SIGINFO and
5374 !USE_SIGTRAP_SIGINFO blocks.
5375 (linux_low_filter_event): Call save_stop_reason instead of
5376 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
5377 Update comments.
5378 (linux_wait_1): Update comments.
5379
657f9cde
WW
53802016-02-24 Wei-cheng Wang <cole945@gmail.com>
5381
5382 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
5383 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
5384 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
5385 ppc_insert_point, ppc_remove_point.
5386
b00b61e1
MK
53872016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
5388
5389 * linux-s390-low.c (s390_supports_z_point_type): New function.
5390 (struct linux_target_ops): Wire s390_supports_z_point_type in.
5391
553cb527
YQ
53922016-02-16 Yao Qi <yao.qi@linaro.org>
5393
5394 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
5395 PC. Get pc from regcache_read_pc.
5396
a5652c21
YQ
53972016-02-12 Yao Qi <yao.qi@linaro.org>
5398
5399 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
5400 or linux_get_pc_32bit.
5401 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
5402
ed443b61
YQ
54032016-02-12 Yao Qi <yao.qi@linaro.org>
5404
5405 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
5406 arm_linux_get_next_pcs_fixup.
5407
020ecd38
MK
54082016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5409
5410 * tracepoint.c (x_tracepoint_action_download): Change
5411 write_inferior_data_ptr to write_inferior_data_pointer.
5412 (cmd_qtstart): Likewise.
5413 (write_inferior_data_ptr): Remove.
5414 (download_agent_expr): Change write_inferior_data_ptr to
5415 write_inferior_data_pointer.
5416 (download_tracepoint_1): Likewise.
5417 (download_tracepoint): Likewise.
5418 (download_trace_state_variables): Likewise.
5419
7cae9051
WW
54202016-02-11 Wei-cheng Wang <cole945@gmail.com>
5421 Marcin Kościelnicki <koriakin@0x04.net>
5422
5423 * tracepoint.c (struct tracepoint_action_ops): Remove.
5424 (struct tracepoint_action): Remove ops.
5425 (m_tracepoint_action_download, r_tracepoint_action_download)
5426 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
5427 size and offset accordingly.
5428 (m_tracepoint_action_ops, r_tracepoint_action_ops)
5429 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
5430 (tracepoint_action_send, tracepoint_action_download): New functions.
5431 Helpers for trace action handlers.
5432 (add_tracepoint_action): Remove setup actions ops.
5433 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
5434
9f6a71b4
YQ
54352016-02-10 Yao Qi <yao.qi@linaro.org>
5436
5437 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
5438
1e94266c
SM
54392016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5440
5441 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5442 to AC_OUTPUT.
5443 * configure: Regenerate.
5444
8adce034
SM
54452016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5446
5447 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
5448 void * to gdb_byte *.
5449 * linux-low.c (siginfo_fixup): Likewise.
5450 (linux_xfer_siginfo): Likewise.
5451 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
5452 Likewise.
5453 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
5454
93813b37
WT
54552016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5456
5457 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
5458 to srv_tgtobj.
5459 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
5460 to srv_tgtobj.
5461 * linux-x86-low.c [__x86_64__]: Include
5462 "nat/amd64-linux-siginfo.h".
5463 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5464 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5465 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5466 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5467 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5468 (cpt_si_fd, si_timerid, si_overrun): Move from
5469 nat/amd64-linux-siginfo.c.
5470 * Makefile.in (amd64-linux-siginfo.o:): New rule.
5471
8424cc97
SM
54722016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5473
5474 * server.c (skip_to_semicolon): Remove.
5475 (process_point_options): Use strchrnul instead of
5476 skip_to_semicolon.
5477
4d18591b
YQ
54782016-01-26 Yao Qi <yao.qi@linaro.org>
5479
5480 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
5481 * linux-low.c (install_software_single_step_breakpoints): Don't
5482 call regcache_read_pc.
5483 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
5484 argument pc.
5485
d8020970
YQ
54862016-01-26 Yao Qi <yao.qi@linaro.org>
5487
5488 * linux-low.c (install_software_single_step_breakpoints): Call
5489 regcache_read_pc instead of get_pc.
5490
8b207339
YQ
54912016-01-26 Yao Qi <yao.qi@linaro.org>
5492
5493 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
5494 (unblock_async_io): Rename to ...
5495 (block_unblock_async_io): ... it. New function.
5496 (enable_async_io): Don't install SIGIO handler. Unblock it
5497 instead.
5498 (disable_async_io): Don't ignore SIGIO. Block it instead.
5499 (initialize_async_io): Install SIGIO handler. Don't call
5500 unblock_async_io.
5501
18879fef
YQ
55022016-01-26 Yao Qi <yao.qi@linaro.org>
5503
5504 * remote-utils.c (getpkt): If the buffer isn't empty, and the
5505 first character is '\003', call *the_target->request_interrupt.
5506
a0f8e08a
YQ
55072016-01-25 Yao Qi <yao.qi@linaro.org>
5508
5509 * remote-utils.c (new_thread_notify): Remove.
5510 (dead_thread_notify): Likewise.
5511 * remote-utils.h (new_thread_notify): Remove declaration.
5512 (dead_thread_notify): Likewise.
5513
cc5fd9ab
MK
55142016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
5515
5516 * gdb.trace/pending.exp: Fix expected message on continue.
5517
99e8eb11
MK
55182016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
5519
5520 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
5521 it works properly on big-endian machines where sizeof (CORE_ADDR)
5522 != sizeof (void *).
5523
a994041d
PA
55242016-01-21 Pedro Alves <palves@redhat.com>
5525
5526 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
5527 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
5528 * configure: Regenerate.
5529
f7a6a40d
YQ
55302016-01-21 Yao Qi <yao.qi@linaro.org>
5531
5532 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
5533 is_thumb and set it according to CPSR saved on the stack.
5534 (get_next_pcs_syscall_next_pc): Pass is_thumb to
5535 arm_sigreturn_next_pc.
5536
6f69e520
YQ
55372016-01-18 Yao Qi <yao.qi@linaro.org>
5538
5539 * linux-low.c (linux_set_pc_64bit): New function.
5540 (linux_get_pc_64bit): New function.
5541 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
5542 Declare.
5543 * linux-sparc-low.c (debug_threads): Remove declaration.
5544 (sparc_get_pc): Remove.
5545 (the_low_target): Use linux_get_pc_64bit instead of
5546 sparc_get_pc.
5547 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
5548 (the_low_target): Use linux_get_pc_64bit and
5549 linux_set_pc_64bit.
5550
276d4552
YQ
55512016-01-18 Yao Qi <yao.qi@linaro.org>
5552
5553 * linux-arm-low.c (debug_threads): Remove declaration.
5554 (arm_get_pc, arm_set_pc): Remove.
5555 (the_low_target): Use linux_get_pc_32bit and
5556 linux_set_pc_32bit.
5557 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
5558 (the_low_target): Use linux_get_pc_32bit and
5559 linux_set_pc_32bit.
5560 * linux-cris-low.c (debug_threads): Remove declaration.
5561 (cris_get_pc, cris_set_pc,): Remove.
5562 (the_low_target): Use linux_get_pc_32bit and
5563 linux_set_pc_32bit.
5564 * linux-crisv32-low.c (debug_threads): Remove declaration.
5565 (cris_get_pc, cris_set_pc): Remove.
5566 (the_low_target): Use linux_get_pc_32bit and
5567 linux_set_pc_32bit.
5568 * linux-low.c: Include inttypes.h.
5569 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
5570 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
5571 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
5572 (the_low_target): Use linux_get_pc_32bit and
5573 linux_set_pc_32bit.
5574 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
5575 (the_low_target): Use linux_get_pc_32bit and
5576 linux_set_pc_32bit.
5577 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
5578 (the_low_target): Use linux_get_pc_32bit and
5579 linux_set_pc_32bit.
5580 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
5581 (the_low_target): Use linux_get_pc_32bit and
5582 linux_set_pc_32bit.
5583 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
5584 (the_low_target): Use linux_get_pc_32bit and
5585 linux_set_pc_32bit.
5586
eb0edac8
GB
55872016-01-18 Gary Benson <gbenson@redhat.com>
5588
5589 * configure.ac (AC_FUNC_FORK): New check.
5590 * config.in: Regenerate.
5591 * configure: Likewise.
5592
1b451dda
YQ
55932016-01-14 Yao Qi <yao.qi@linaro.org>
5594
5595 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
5596 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
5597 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
5598 arm_get_next_pcs_ctor.
5599
82075af2
JS
56002016-01-12 Josh Stone <jistone@redhat.com>
5601 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5602
5603 * inferiors.h: Include "gdb_vecs.h".
5604 (struct process_info): Add syscalls_to_catch.
5605 * inferiors.c (remove_process): Free syscalls_to_catch.
5606 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
5607 syscall_return stops.
5608 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
5609 * server.c (handle_general_set): Handle QCatchSyscalls.
5610 (handle_query): Report support for QCatchSyscalls.
5611 * target.h (struct target_ops): Add supports_catch_syscall.
5612 (target_supports_catch_syscall): New macro.
5613 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
5614 (struct lwp_info): Add syscall_state.
5615 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
5616 Maintain syscall_state and syscalls_to_catch across exec.
5617 (get_syscall_trapinfo): New function, proxy to the_low_target.
5618 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
5619 (linux_low_filter_event): Toggle syscall_state entry/return for
5620 syscall traps, and set it ignored for all others.
5621 (gdb_catching_syscalls_p): New function.
5622 (gdb_catch_this_syscall_p): New function.
5623 (linux_wait_1): Handle SYSCALL_SIGTRAP.
5624 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
5625 (linux_supports_catch_syscall): New function.
5626 (linux_target_ops): Install it.
5627 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
5628 (the_low_target): Install it.
5629
8f13a3ce
MF
56302016-01-12 Mike Frysinger <vapier@gentoo.org>
5631
5632 * acinclude.m4: Include new ../warning.m4 file.
5633 * configure: Regenerated.
5634 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
5635
5b3da067
MF
56362016-01-12 Mike Frysinger <vapier@gentoo.org>
5637
5638 * ax.c (is_goto_target): Mark static.
5639 * linux-low.c (register_addr): Likewise.
5640 (linux_fetch_registers, linux_store_registers): Likewise.
5641 * mem-break.c (any_persistent_commands): Fix old prototype.
5642 (add_commands_to_breakpoint): Mark static.
5643 * regcache.c (find_register_by_name): Delete unused func.
5644 * remote-utils.c (hex_or_minus_one): Mark static.
5645 * server.c (monitor_show_help): Mark static.
5646 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
5647 handle_v_requests): Likewise.
5648
bc504a31
PA
56492016-01-12 Pedro Alves <palves@redhat.com>
5650
5651 Remove use of the registered trademark symbol throughout.
5652
5a0dd67a
YQ
56532016-01-08 Yao Qi <yao.qi@linaro.org>
5654
5655 * remote-utils.c (getpkt): If c is '\003', call target hook
5656 request_interrupt.
5657
b2ca446f
YQ
56582016-01-06 Yao Qi <yao.qi@linaro.org>
5659
5660 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
5661 linux-aarch32-low.c.
5662 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5663 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5664 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5665 (thumb2_breakpoint): Declare.
5666 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
5667 linux-aarch32-low.h.
5668 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5669 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5670 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5671
edd88788
JB
56722016-01-01 Joel Brobecker <brobecker@adacore.com>
5673
5674 * gdbreplay.c (gdbreplay_version): Change copyright year in
5675 version message.
5676 * server.c (gdbserver_version): Likewise.
5677
65da7f14
PP
56782015-12-28 Patrick Palka <patrick@parcs.ath.cx>
5679
5680 * server.c (crc32_table): Delete.
5681 (crc32): Use libiberty's xcrc32 function.
5682
4abd5ed2
JB
56832015-12-22 Joel Brobecker <brobecker@adacore.com>
5684
5685 * lynx-low.c (lynx_delete_thread_callback): New function.
5686 (lynx_mourn): Properly delete our process and all of its
5687 threads. Remove call to clear_inferiors.
5688
0e50fe5c
JB
56892015-12-22 Joel Brobecker <brobecker@adacore.com>
5690
5691 * target.c (thread_search_callback): Add check that
5692 the thread_stopped target callback is not NULL before
5693 calling it.
5694
35adc03f
YQ
56952015-12-21 Yao Qi <yao.qi@linaro.org>
5696
5697 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
5698 arm breakpoint.
5699
bd2b2909
AT
57002015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5701
5702 * server.c (handle_query): Call target_supports_software_single_step.
5703
7fe5e27e
AT
57042015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5705
5706 * linux-low.c (single_step): New function.
5707 (linux_resume_one_lwp_throw): Call single_step.
5708 (start_step_over): Likewise.
5709
d9311bfa
AT
57102015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5711
5712 * Makefile.in (SFILES): Append arch/arm-linux.c,
5713 arch/arm-get-next-pcs.c.
5714 (arm-linux.o): New rule.
5715 (arm-get-next-pcs.o): New rule.
5716 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
5717 arm-linux.o.
5718 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
5719 to linux-aarch32-low.c.
5720 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5721 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5722 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5723 (thumb2_breakpoint_len): Likewise.
5724 (arm_is_thumb_mode): Make non-static.
5725 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
5726 from linux-aarch32-low.c.
5727 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5728 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5729 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5730 (thumb2_breakpoint_len): Likewise.
5731 (arm_is_thumb_mode): New declaration.
5732 * linux-arm-low.c: Include arch/arm-linux.h
5733 aarch/arm-get-next-pcs.h, sys/syscall.h.
5734 (get_next_pcs_ops): New struct.
5735 (get_next_pcs_addr_bits_remove): New function.
5736 (get_next_pcs_is_thumb): New function.
5737 (get_next_pcs_read_memory_unsigned_integer): Likewise.
5738 (arm_sigreturn_next_pc): Likewise.
5739 (get_next_pcs_syscall_next_pc): Likewise.
5740 (arm_gdbserver_get_next_pcs): Likewise.
5741 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
5742 Initialize.
5743 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
5744 * server.h: Include gdb_vecs.h.
5745
68ce2059
AT
57462015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5747
5748 * Makefile.in (SFILES): Append common/common-regcache.c.
5749 (OBS): Append common-regcache.o.
5750 (common-regcache.o): New rule.
5751 * regcache.c (init_register_cache): Initialize cache to
5752 REG_UNAVAILABLE.
5753 (regcache_raw_read_unsigned): New function.
5754 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
5755 register_status enum.
5756
fa5308bd
AT
57572015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5758
5759 * linux-aarch64-low.c (the_low_targets): Rename
5760 breakpoint_reinsert_addr to get_next_pcs.
5761 * linux-arm-low.c (the_low_targets): Likewise.
5762 * linux-bfin-low.c (the_low_targets): Likewise.
5763 * linux-cris-low.c (the_low_targets): Likewise.
5764 * linux-crisv32-low.c (the_low_targets): Likewise.
5765 * linux-low.c (can_software_single_step): Likewise.
5766 (install_software_single_step_breakpoints): New function.
5767 (start_step_over): Use install_software_single_step_breakpoints.
5768 * linux-low.h: New CORE_ADDR vector.
5769 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
5770 get_next_pcs.
5771 * linux-mips-low.c (the_low_targets): Likewise.
5772 * linux-nios2-low.c (the_low_targets): Likewise.
5773 * linux-sparc-low.c (the_low_targets): Likewise.
5774
4a6ed09b
PA
57752015-12-17 Pedro Alves <palves@redhat.com>
5776
5777 * linux-low.c (linux_kill_one_lwp): Remove references to
5778 LinuxThreads.
5779 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
5780 to 'kill'.
5781 (linux_init_signals): Delete.
5782 (initialize_low): Adjust.
5783 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
5784
7544db95
PA
57852015-12-16 Pedro Alves <palves@redhat.com>
5786
5787 * configure.ac (compiler warning flags): When testing a
5788 -Wno-foo option, check whether -Wfoo works instead.
5789 * configure: Regenerate.
5790
8020350c
DB
57912015-12-11 Don Breazeal <donb@codesourcery.com>
5792
5793 * server.c (process_serial_event): Don't exit from gdbserver
5794 in remote mode if there are still active inferiors.
5795
db91f502
YQ
57962015-12-11 Yao Qi <yao.qi@linaro.org>
5797
5798 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
5799 arm_breakpoint_at if the process is 32-bit.
5800
b37a6290
YQ
58012015-12-11 Yao Qi <yao.qi@linaro.org>
5802
5803 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
5804 arm breakpoint.
5805
17b1509a
YQ
58062015-12-07 Yao Qi <yao.qi@linaro.org>
5807
5808 * configure.srv: Append arm.o to srv_tgtobj for
5809 aarch64*-*-linux* target.
5810 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
5811 from linux-arm-low.c.
5812 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5813 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5814 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5815 (thumb2_breakpoint_len): Likewise.
5816 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
5817 (arm_breakpoint_kinds): Likewise.
5818 (arm_breakpoint_kind_from_pc): Likewise.
5819 (arm_sw_breakpoint_from_kind): Likewise.
5820 (arm_breakpoint_kind_from_current_state): Likewise.
5821 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
5822 (arm_sw_breakpoint_from_kind): Declare.
5823 (arm_breakpoint_kind_from_current_state): Declare.
5824 (arm_breakpoint_at): Declare.
5825 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
5826 arm_sw_breakpoint_from_kind if process is 32-bit.
5827 (aarch64_breakpoint_kind_from_pc): New function.
5828 (aarch64_breakpoint_kind_from_current_state): New function.
5829 (the_low_target): Initialize fields breakpoint_kind_from_pc
5830 and breakpoint_kind_from_current_state.
5831 * linux-arm-low.c (arm_breakpoint_kinds): Move to
5832 linux-aarch32-low.c.
5833 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
5834 (arm_breakpoint, arm_breakpoint_len): Likewise.
5835 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
5836 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5837 (arm_is_thumb_mode): Likewise.
5838 (arm_breakpoint_at): Likewise.
5839 (arm_breakpoint_kind_from_pc): Likewise.
5840 (arm_sw_breakpoint_from_kind): Likewise.
5841 (arm_breakpoint_kind_from_current_state): Likewise.
5842
5843 Revert:
5844 2015-08-04 Yao Qi <yao.qi@linaro.org>
5845
5846 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5847 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5848 * server.c (extended_protocol): Remove "static".
5849 * server.h (extended_protocol): Declare it.
5850
ece66d65
JS
58512015-12-04 Josh Stone <jistone@redhat.com>
5852
5853 * target.h (struct target_ops) <arch_setup>: Rename to ...
5854 (struct target_ops) <post_create_inferior>: ... this.
5855 (target_arch_setup): Rename to ...
5856 (target_post_create_inferior): ... this, calling post_create_inferior.
5857 * server.c (start_inferior): Update target_arch_setup calls to
5858 target_post_create_inferior.
5859 * linux-low.c (linux_low_ptrace_options): Forward declare.
5860 (linux_arch_setup): Update its comment for general use.
5861 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
5862 (struct linux_target_ops): Use linux_post_create_inferior.
5863 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
5864 to post_create_inferior.
5865 * nto-low.c (struct nto_target_ops): Likewise.
5866 * spu-low.c (struct spu_target_ops): Likewise.
5867 * win32-low.c (struct win32_target_ops): Likewise.
5868
e58c48b4
AT
58692015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
5870
5871 * linux-arm-low.c: Remove duplicate arch/arm.h include.
5872
fbec8956
AT
58732015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5874
5875 * linux-arm-low.c (arm_reinsert_addr): Remove function.
5876 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
5877 * linux-cris-low.c (cris_reinsert_addr> Remove function.
5878 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5879 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
5880 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5881 * linux-mips-low.c (mips_reinsert_addr): Remove function.
5882 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5883 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
5884 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5885 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
5886 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5887
9b4c5f87
AT
58882015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5889
5890 * linux-low.c (linux_look_up_symbols): Don't call
5891 linux_supports_traceclone.
5892 * linux-low.h (thread_db_init): Remove use_events argument.
5893 * thread-db.c (thread_db_use_event): Remove global variable.
5894 (struct thread_db) <td_thr_event_enable_p>: Remove field.
5895 (struct thread_db) <td_create_bp>: Remove field.
5896 (thread_db_create_event): Remove function.
5897 (thread_db_enable_reporting): Likewise.
5898 (find_one_thread): Don't check for thread_db_use_events.
5899 (attach_thread): Likewise.
5900 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
5901 (try_thread_db_load_1): Don't check for thread_db_use_events.
5902 (thread_db_init): Remove use_events argument and thread events
5903 handling.
5904 (remove_thread_event_breakpoints): Remove function.
5905 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
5906
7d00775e
AT
59072015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5908
5909 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
5910 New function.
5911 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5912 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
5913 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5914 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
5915 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
5916 Initialize.
5917 * linux-crisv32-low.c (cris_supports_hardware_single_step):
5918 New function.
5919 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5920 * linux-low.c (can_hardware_single_step): Use
5921 supports_hardware_single_step.
5922 (can_software_single_step): New function.
5923 (start_step_over): Call can_software_single_step.
5924 (linux_supports_hardware_single_step): New function.
5925 (struct target_ops) <supports_software_single_step>: Initialize.
5926 * linux-low.h (struct linux_target_ops)
5927 <supports_hardware_single_step>: Initialize.
5928 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
5929 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5930 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
5931 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
5932 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
5933 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5934 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
5935 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5936 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
5937 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
5938 Initialize.
5939 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
5940 (struct linux_target_ops) <tile_supports_hardware_single_step>:
5941 Initialize.
5942 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
5943 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5944 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
5945 New function.
5946 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5947 * target.h (struct target_ops): <supports_software_single_step>:
5948 New field.
5949 (target_supports_software_single_step): New macro.
5950
2d97cd35
AT
59512015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5952
5953 * linux-low.c (linux_wait_1): Fix pc advance condition.
5954 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
5955 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
5956
769ef81f
AT
59572015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5958
5959 * linux-arm-low.c (arm_is_thumb_mode): New function.
5960 (arm_breakpoint_at): Use arm_is_thumb_mode.
5961 (arm_breakpoint_kind_from_current_state): New function.
5962 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
5963 Initialize.
5964 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
5965 (linux_breakpoint_kind_from_current_state): New function.
5966 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
5967 * linux-low.h (struct linux_target_ops)
5968 <breakpoint_kind_from_current_state>: New field.
5969 * target.h (struct target_ops): Likewise.
5970 (target_breakpoint_kind_from_current_state): New macro.
5971
1bebeeca
PA
59722015-11-30 Pedro Alves <palves@redhat.com>
5973
5974 * linux-low.c (linux_resume): Wake up the event loop before
5975 returning.
5976
a67a9fae
PA
59772015-11-30 Pedro Alves <palves@redhat.com>
5978
5979 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
5980 check.
5981 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
5982 to -1.
5983 * target.c (struct thread_search): New structure.
5984 (thread_search_callback): New function.
5985 (prev_general_thread): New global.
5986 (prepare_to_access_memory, done_accessing_memory): New functions.
5987 * target.h (prepare_to_access_memory, done_accessing_memory):
5988 Replace macros with function declarations.
5989
f2faf941
PA
59902015-11-30 Pedro Alves <palves@redhat.com>
5991
5992 PR 14618
5993 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
5994 report TARGET_WAITKIND_NO_RESUMED.
5995 * remote-utils.c (prepare_resume_reply): Handle
5996 TARGET_WAITKIND_NO_RESUMED.
5997 * server.c (report_no_resumed): New global.
5998 (handle_query) <qSupported>: Handle "no-resumed+". Report
5999 "no-resumed+" support.
6000 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
6001 return error if the client doesn't support no-resumed events.
6002 (push_stop_notification): New function.
6003 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
6004 events if the client supports them.
6005
a681f9c9
PA
60062015-11-30 Pedro Alves <palves@redhat.com>
6007
6008 * linux-low.c (thread_still_has_status_pending_p): Don't check
6009 vCont;t here.
6010 (lwp_resumed): New function.
6011 (status_pending_p_callback): Return early if the LWP is not
6012 supposed to be resumed.
6013
65706a29
PA
60142015-11-30 Pedro Alves <palves@redhat.com>
6015
6016 * linux-low.c (handle_extended_wait): Assert that the LWP's
6017 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
6018 thread create events, leave the new child's status pending.
6019 (linux_low_filter_event): If GDB wants to hear about thread exit
6020 events, leave the LWP marked dead and don't delete it.
6021 (linux_wait_for_event_filtered): Don't check for thread exit.
6022 (filter_exit_event): New function.
6023 (linux_wait_1): Use it, when returning an exit event.
6024 (linux_resume_one_lwp_throw): Assert that the LWP's
6025 waitstatus is TARGET_WAITKIND_IGNORE.
6026 * remote-utils.c (prepare_resume_reply): Handle
6027 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
6028 * server.c (report_thread_events): New global.
6029 (handle_general_set): Handle QThreadEvents.
6030 (handle_query) <qSupported>: Handle and report QThreadEvents+;
6031 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
6032 TARGET_WAITKIND_THREAD_EXITED.
6033 * server.h (report_thread_events): Declare.
6034
56cf4bed
PA
60352015-11-30 Pedro Alves <palves@redhat.com>
6036
6037 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
6038 the thread's last_resume_kind was resume_stop.
6039
500c1d85
PA
60402015-11-30 Pedro Alves <palves@redhat.com>
6041
6042 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
6043 before returning.
6044
de979965
PA
60452015-11-30 Pedro Alves <palves@redhat.com>
6046
6047 * server.c (handle_v_requests): Handle vCtrlC.
6048
34c65914
PA
60492015-11-30 Pedro Alves <palves@redhat.com>
6050
6051 * gdbthread.h (find_any_thread_of_pid): Declare.
6052 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
6053 functions.
6054 * server.c (handle_query): If current_thread is NULL, look for
6055 another thread of the selected process.
6056
79efa585 60572015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 6058 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
6059
6060 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
6061 * server.c (handle_qxfer_threads_worker): Refactor to include thread
6062 name in reply.
6063 * target.h (struct target_ops) <thread_name>: New field.
6064 (target_thread_name): New macro.
6065
80d82c19
JB
60662015-11-23 Joel Brobecker <brobecker@adacore.com>
6067
6068 * regcache.h (regcache_invalidate_pid): Add declaration.
6069 * regcache.c (regcache_invalidate_pid): New function, extracted
6070 from regcache_invalidate.
6071 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
6072 Add trivial documentation comment.
6073 * lynx-low.c: Use regcache_invalidate_pid instead of
6074 regcache_invalidate.
6075
64da5dd5
JB
60762015-11-23 Joel Brobecker <brobecker@adacore.com>
6077
6078 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
6079 and Elf64_auxv_t if the target is Android.
6080
37ce4055
DE
60812015-11-22 Doug Evans <xdje42@gmail.com>
6082
6083 * target.h: #include <sys/types.h>.
6084
06e03fff
PA
60852015-11-19 Pedro Alves <palves@redhat.com>
6086
6087 * linux-low.c (linux_process_qsupported): Change prototype.
6088 Adjust.
6089 * linux-low.h (struct linux_target_ops) <process_qsupported>:
6090 Change prototype.
6091 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
6092 and adjust to loop over all features.
6093 * server.c (handle_query) <qSupported>: Adjust to call
6094 target_process_qsupported once, passing it a vector of unprocessed
6095 features.
6096 * target.h (struct target_ops) <process_qsupported>: Change
6097 prototype.
6098 (target_process_qsupported): Adjust.
6099
9a084706
PA
61002015-11-19 Pedro Alves <palves@redhat.com>
6101
6102 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
6103 mode.
6104 * configure: Regenerate.
6105
dad44a1f
PA
61062015-11-19 Pedro Alves <palves@redhat.com>
6107
6108 * configure: Regenerate.
6109
231c0592
YQ
61102015-11-19 Yao Qi <yao.qi@linaro.org>
6111
6112 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
6113 type to uint32_t.
6114
6c1c9a8b
YQ
61152015-11-19 Yao Qi <yao.qi@linaro.org>
6116
6117 * linux-aarch64-low.c (enum aarch64_operand_type): New.
6118 (struct aarch64_operand): Move enum out.
6119
9caa3311
YQ
61202015-11-19 Yao Qi <yao.qi@linaro.org>
6121
6122 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
6123 struct user_fpsimd_state *.
6124 (aarch64_store_fpregset): Likewise.
6125
6a69a054
YQ
61262015-11-19 Yao Qi <yao.qi@linaro.org>
6127
6128 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
6129 struct user_pt_regs *.
6130 (aarch64_store_gregset): Likewise.
6131
1798301e
PA
61322015-11-18 Pedro Alves <palves@redhat.com>
6133
6134 * Makefile.in (all_object_files): Add $IPA_OBJS.
6135
ce7715e2
PA
61362015-11-17 Pedro Alves <palves@redhat.com>
6137
6138 * win32-low.c (win32_resume): Use gdb_signal_from_host,
6139 GDB_SIGNAL_0 and gdb_signal_to_string.
6140
c0879059
PA
61412015-11-17 Pedro Alves <palves@redhat.com>
6142
6143 * win32-low.c (handle_output_debug_string): Remove parameter.
6144 (win32_kill): Remove our_status local and adjust call to
6145 handle_output_debug_string.
6146 (get_child_debug_event): Adjust call to
6147 handle_output_debug_string.
6148
1996e237
SM
61492015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6150
6151 * linux-mips-low.c (mips_fill_gregset): Add cast.
6152 (mips_store_gregset): Likewise.
6153 (mips_fill_fpregset): Likewise.
6154 (mips_store_fpregset): Likewise.
6155
cbec665b
SM
61562015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6157
6158 * linux-mips-low.c (mips_add_watchpoint): Rename private to
6159 priv.
6160
eb3e3c67
SM
61612015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6162
6163 * linux-mips-low.c (mips_linux_new_thread): Change type of
6164 watch_type to enum target_hw_bp_type.
6165
171de4b8
SM
61662015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6167
6168 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
6169 Change return type to arm_hwbp_type.
6170
04248ead
SM
61712015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6172
6173 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
6174 (arm_store_gregset): Likewise.
6175 * linux-arm-low.c (arm_get_hwcap): Likewise.
6176 (arm_read_description): Likewise.
6177
04b3479c
SM
61782015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6179
6180 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
6181
2bc84e8a
SM
61822015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6183
6184 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
6185 (ppc_fill_vsxregset): Likewise.
6186 (ppc_store_vsxregset): Likewise.
6187 (ppc_fill_vrregset): Likewise.
6188 (ppc_store_vrregset): Likewise.
6189 (ppc_fill_evrregset): Likewise.
6190 (ppc_store_evrregset): Likewise.
6191
e6c5bb05
SM
61922015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
6193
6194 * linux-ppc-low.c (ppc_usrregs_info): Remove
6195 forward-declaration.
6196 (ppc_arch_setup): Move lower in file.
6197
7ea45d72
SM
61982015-10-30 Simon Marchi <simon.marchi@ericsson.com>
6199
6200 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
6201 (ps_pdwrite): Likewise.
6202
69291610
HW
62032015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
6204
6205 * linux-arm-low.c (arm_new_thread): Move pointer dereference
6206 to after assert checks.
6207
b42945fd
SM
62082015-10-29 Simon Marchi <simon.marchi@ericsson.com>
6209
6210 * proc-service.c (ps_pdread): Add/adjust casts.
6211 (ps_pdwrite): Add/adjust casts.
6212
d6f85c84
SM
62132015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6214
6215 * server.c (handle_search_memory_1): Cast return value of
6216 memmem.
6217
f98cd059
SM
62182015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
6219
6220 * server.c (write_qxfer_response): Change type of data to
6221 gdb_byte *.
6222
d2412fa5
PA
62232015-10-29 Pedro Alves <palves@redhat.com>
6224
6225 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
6226
c17414a2
PA
62272015-10-29 Pedro Alves <palves@redhat.com>
6228
6229 * tracepoint.c (clear_installed_tracepoints): Add casts.
6230
e053fbc4
PA
62312015-10-29 Pedro Alves <palves@redhat.com>
6232
6233 * server.c (handle_v_cont, process_serial_event): Add enum
6234 gdb_signal casts to signal parsing code.
6235
add67df8
PA
62362015-10-29 Pedro Alves <palves@redhat.com>
6237
6238 * linux-low.h (NULL_REGSET): Define.
6239 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6240 * linux-arm-low.c (arm_regsets): Likewise.
6241 * linux-crisv32-low.c (cris_regsets): Likewise.
6242 * linux-m68k-low.c (m68k_regsets): Likewise.
6243 * linux-mips-low.c (mips_regsets): Likewise.
6244 * linux-nios2-low.c (nios2_regsets): Likewise.
6245 * linux-ppc-low.c (ppc_regsets): Likewise.
6246 * linux-s390-low.c (s390_regsets): Likewise.
6247 * linux-sh-low.c (sh_regsets): Likewise.
6248 * linux-sparc-low.c (sparc_regsets): Likewise.
6249 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6250 * linux-tile-low.c (tile_regsets): Likewise.
6251 * linux-x86-low.c (x86_regsets): Likewise.
6252 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6253
50bc912a
PA
62542015-10-29 Pedro Alves <palves@redhat.com>
6255
6256 * linux-low.h (NULL_REGSET): Define.
6257 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6258 * linux-arm-low.c (arm_regsets): Likewise.
6259 * linux-crisv32-low.c (cris_regsets): Likewise.
6260 * linux-m68k-low.c (m68k_regsets): Likewise.
6261 * linux-mips-low.c (mips_regsets): Likewise.
6262 * linux-nios2-low.c (nios2_regsets): Likewise.
6263 * linux-ppc-low.c (ppc_regsets): Likewise.
6264 * linux-s390-low.c (s390_regsets): Likewise.
6265 * linux-sh-low.c (sh_regsets): Likewise.
6266 * linux-sparc-low.c (sparc_regsets): Likewise.
6267 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6268 * linux-tile-low.c (tile_regsets): Likewise.
6269 * linux-x86-low.c (x86_regsets): Likewise.
6270 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6271
682b2546
DE
62722015-10-26 Doug Evans <dje@google.com>
6273
6274 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
6275
963843d4
DE
62762015-10-26 Doug Evans <dje@google.com>
6277
6278 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
6279
d41401ac
DE
62802015-10-26 Doug Evans <dje@google.com>
6281
6282 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
6283 for debug_printf.
6284 (attach_thread, find_new_threads_callback): Ditto.
6285
3db28855
AT
62862015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6287
6288 * mem-break.h (set_breakpoint_data): Remove.
6289
fb78e89c
AT
62902015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6291
6292 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
6293 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6294 (initialize_low): Remove set_breakpoint_data call.
6295 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
6296 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
6297 (initialize_low): Remove set_breakpoint_data call.
6298 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
6299 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6300 (initialize_low): Remove set_breakpoint_data call.
6301
2e6ee069
AT
63022015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6303
6304 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
6305 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
6306 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
6307 * target.h (target_breakpoint_kind_from_pc): New macro.
6308
1652a986
AT
63092015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
6310
6311 * linux-low.c (default_breakpoint_kind_from_pc): New function.
6312 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
6313 the default breakpoint kind.
6314
abeead09
AT
63152015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6316
6317 * linux-arm-low.c (arm_supports_z_point_type): Add software
6318 breakpoint support.
6319
b0b4b501
AT
63202015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6321
6322 * linux-arm-low.c: Refactor breakpoint definitions.
6323 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
6324 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
6325
8689682c
AT
63262015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6327
6328 * Makefile.in: Add arm.c/o.
6329 * configure.srv: Likewise.
6330 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
6331 (arm_breakpoint_kind_from_pc): New function.
6332 (arm_sw_breakpoint_from_kind): Return proper kind.
6333 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
6334
27165294
AT
63352015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6336
6337 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
6338 removal.
6339 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
6340 (struct raw_breakpoint) <size>: Remove.
6341 (struct raw_breakpoint) <kind>: Add.
6342 (bp_size): New function.
6343 (bp_opcode): Likewise.
6344 (find_raw_breakpoint_at): Adjust for kind.
6345 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
6346 (remove_memory_breakpoint): Adjust for kind call bp_size.
6347 (set_raw_breakpoint_at): Adjust for kind.
6348 (set_breakpoint): Likewise.
6349 (set_breakpoint_at): Call breakpoint_kind_from_pc.
6350 (delete_raw_breakpoint): Adjust for kind.
6351 (delete_breakpoint): Likewise.
6352 (find_gdb_breakpoint): Likewise.
6353 (set_gdb_breakpoint_1): Likewise.
6354 (set_gdb_breakpoint): Likewise.
6355 (delete_gdb_breakpoint_1): Likewise.
6356 (delete_gdb_breakpoint): Likewise.
6357 (uninsert_raw_breakpoint): Likewise.
6358 (reinsert_raw_breakpoint): Likewise.
6359 (set_breakpoint_data): Remove.
6360 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
6361 (check_mem_read): Adjust for kind call bp_size.
6362 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
6363 (clone_one_breakpoint): Adjust for kind.
6364 * mem-break.h (set_gdb_breakpoint): Likewise.
6365 (delete_gdb_breakpoint): Likewise.
6366 * server.c (process_serial_event): Likewise.
6367
dd373349
AT
63682015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6369
6370 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
6371 (struct linux_target_ops) <breakpoint>: Remove.
6372 (struct linux_target_ops) <breakpoint_len>: Remove.
6373 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6374 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6375 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
6376 (arm_sw_breakpoint_from_kind): New function.
6377 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
6378 (struct linux_target_ops) <breakpoint>: Remove.
6379 (struct linux_target_ops) <breakpoint_len>: Remove.
6380 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6381 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6382 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
6383 (struct linux_target_ops) <breakpoint>: Remove.
6384 (struct linux_target_ops) <breakpoint_len>: Remove.
6385 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6386 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6387 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
6388 (struct linux_target_ops) <breakpoint>: Remove.
6389 (struct linux_target_ops) <breakpoint_len>: Remove.
6390 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6391 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6392 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
6393 and sw_breakpoint_from_kind to increment the pc.
6394 (linux_breakpoint_kind_from_pc): New function.
6395 (linux_sw_breakpoint_from_kind): New function.
6396 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
6397 (initialize_low): Call breakpoint_kind_from_pc and
6398 sw_breakpoint_from_kind to replace breakpoint_data/len.
6399 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
6400 New field.
6401 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
6402 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
6403 (struct linux_target_ops) <breakpoint>: Remove.
6404 (struct linux_target_ops) <breakpoint_len>: Remove.
6405 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6406 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6407 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
6408 (struct linux_target_ops) <breakpoint>: Remove.
6409 (struct linux_target_ops) <breakpoint_len>: Remove.
6410 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6411 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6412 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
6413 (struct linux_target_ops) <breakpoint>: Remove.
6414 (struct linux_target_ops) <breakpoint_len>: Remove.
6415 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6416 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6417 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
6418 (struct linux_target_ops) <breakpoint>: Remove.
6419 (struct linux_target_ops) <breakpoint_len>: Remove.
6420 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6421 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6422 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
6423 (struct linux_target_ops) <breakpoint>: Remove.
6424 (struct linux_target_ops) <breakpoint_len>: Remove.
6425 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6426 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6427 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
6428 (struct linux_target_ops) <breakpoint>: Remove.
6429 (struct linux_target_ops) <breakpoint_len>: Remove.
6430 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6431 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6432 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
6433 (struct linux_target_ops) <breakpoint>: Remove.
6434 (struct linux_target_ops) <breakpoint_len>: Remove.
6435 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6436 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6437 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
6438 (struct linux_target_ops) <breakpoint>: Remove.
6439 (struct linux_target_ops) <breakpoint_len>: Remove.
6440 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6441 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6442 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
6443 (struct linux_target_ops) <breakpoint>: Remove.
6444 (struct linux_target_ops) <breakpoint_len>: Remove.
6445 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6446 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6447 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
6448 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
6449 (struct linux_target_ops) <breakpoint>: Remove.
6450 (struct linux_target_ops) <breakpoint_len>: Remove.
6451 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6452 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6453 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
6454 (struct linux_target_ops) <breakpoint>: Remove.
6455 (struct linux_target_ops) <breakpoint_len>: Remove.
6456 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6457 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6458
4cd98a19
AT
64592015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6460
6461 * linux-cris-low.c (cris_get_pc): Remove void arg.
6462
774ee6d2
AR
64632015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6464
6465 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
6466 variable name.
6467
833dcd29
AR
64682015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6469
6470 * inferiors.c (thread_pid_matches_callback): New function.
6471 (find_thread_process): New function.
6472 (remove_thread): Reset current_thread.
6473 (remove_process): Assert threads have been removed first.
6474
8d689ee5
YQ
64752015-10-15 Yao Qi <yao.qi@linaro.org>
6476
6477 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
6478 if it is 3.
6479 (aarch64_remove_point): Likewise.
6480 * regcache.c (regcache_register_size): New function.
6481
1c2e1515
YQ
64822015-10-12 Yao Qi <yao.qi@linaro.org>
6483
6484 * linux-aarch64-low.c: Update all callers as emit_load_store
6485 is renamed to aarch64_emit_load_store.
6486
e1c587c3
YQ
64872015-10-12 Yao Qi <yao.qi@linaro.org>
6488
6489 * linux-aarch64-low.c: Update all callers of function renaming
6490 from emit_insn to aarch64_emit_insn.
6491
b6542f81
YQ
64922015-10-12 Yao Qi <yao.qi@linaro.org>
6493
6494 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
6495 arch/aarch64-insn.h.
6496 (struct aarch64_memory_operand): Likewise.
6497 (ENCODE): Likewise.
6498 (emit_insn): Move to arch/aarch64-insn.c.
6499 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
6500 (emit_load_store): Move to arch/aarch64-insn.c.
6501 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
6502 (can_encode_int32): Remove.
6503
246994ce
YQ
65042015-10-12 Yao Qi <yao.qi@linaro.org>
6505
6506 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
6507 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
6508 (aarch64_relocate_instruction): Likewise.
6509 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
6510 (struct aarch64_insn_visitor): Likewise.
6511
0badd99f
YQ
65122015-10-12 Yao Qi <yao.qi@linaro.org>
6513
6514 * linux-aarch64-low.c (struct aarch64_insn_data): New.
6515 (struct aarch64_insn_visitor): New.
6516 (struct aarch64_insn_relocation_data): New.
6517 (aarch64_ftrace_insn_reloc_b): New function.
6518 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6519 (aarch64_ftrace_insn_reloc_cb): Likewise.
6520 (aarch64_ftrace_insn_reloc_tb): Likewise.
6521 (aarch64_ftrace_insn_reloc_adr): Likewise.
6522 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
6523 (aarch64_ftrace_insn_reloc_others): Likewise.
6524 (visitor): New.
6525 (aarch64_relocate_instruction): Use visitor.
6526
dfaffe9d
YQ
65272015-10-12 Yao Qi <yao.qi@linaro.org>
6528
6529 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
6530 int. Add argument buf.
6531 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
6532 aarch64_relocate_instruction.
6533
70b439f0
YQ
65342015-10-12 Yao Qi <yao.qi@linaro.org>
6535
6536 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
6537 argument insn. Remove local variable insn. Don't call
6538 target_read_uint32.
6539 (aarch64_install_fast_tracepoint_jump_pad): Call
6540 target_read_uint32.
6541
7781c06f
YQ
65422015-09-30 Yao Qi <yao.qi@linaro.org>
6543
6544 * linux-aarch64-low.c (emit_movk): Shorten a long line.
6545 (emit_load_store_pair): Likewise.
6546
9a3c8263
SM
65472015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6548
6549 * dll.c (match_dll): Add cast(s).
6550 (unloaded_dll): Likewise.
6551 * linux-low.c (second_thread_of_pid_p): Likewise.
6552 (delete_lwp_callback): Likewise.
6553 (count_events_callback): Likewise.
6554 (select_event_lwp_callback): Likewise.
6555 (linux_set_resume_request): Likewise.
6556 * server.c (accumulate_file_name_length): Likewise.
6557 (emit_dll_description): Likewise.
6558 (handle_qxfer_threads_worker): Likewise.
6559 (visit_actioned_threads): Likewise.
6560 * thread-db.c (any_thread_of): Likewise.
6561 * tracepoint.c (same_process_p): Likewise.
6562 (match_blocktype): Likewise.
6563 (build_traceframe_info_xml): Likewise.
6564
224c3ddb
SM
65652015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6566
6567 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
6568 assignment.
6569 (gdb_unparse_agent_expr): Likewise.
6570 * hostio.c (require_data): Likewise.
6571 (handle_pread): Likewise.
6572 * linux-low.c (disable_regset): Likewise.
6573 (fetch_register): Likewise.
6574 (store_register): Likewise.
6575 (get_dynamic): Likewise.
6576 (linux_qxfer_libraries_svr4): Likewise.
6577 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
6578 (set_fast_tracepoint_jump): Likewise.
6579 (uninsert_fast_tracepoint_jumps_at): Likewise.
6580 (reinsert_fast_tracepoint_jumps_at): Likewise.
6581 (validate_inserted_breakpoint): Likewise.
6582 (clone_agent_expr): Likewise.
6583 * regcache.c (init_register_cache): Likewise.
6584 * remote-utils.c (putpkt_binary_1): Likewise.
6585 (decode_M_packet): Likewise.
6586 (decode_X_packet): Likewise.
6587 (look_up_one_symbol): Likewise.
6588 (relocate_instruction): Likewise.
6589 (monitor_output): Likewise.
6590 * server.c (handle_search_memory): Likewise.
6591 (handle_qxfer_exec_file): Likewise.
6592 (handle_qxfer_libraries): Likewise.
6593 (handle_qxfer): Likewise.
6594 (handle_query): Likewise.
6595 (handle_v_cont): Likewise.
6596 (handle_v_run): Likewise.
6597 (captured_main): Likewise.
6598 * target.c (write_inferior_memory): Likewise.
6599 * thread-db.c (try_thread_db_load_from_dir): Likewise.
6600 * tracepoint.c (init_trace_buffer): Likewise.
6601 (add_tracepoint_action): Likewise.
6602 (add_traceframe): Likewise.
6603 (add_traceframe_block): Likewise.
6604 (cmd_qtdpsrc): Likewise.
6605 (cmd_qtdv): Likewise.
6606 (cmd_qtstatus): Likewise.
6607 (response_source): Likewise.
6608 (response_tsv): Likewise.
6609 (cmd_qtnotes): Likewise.
6610 (gdb_collect): Likewise.
6611 (initialize_tracepoint): Likewise.
6612
afbe19f8
PL
66132015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6614
6615 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
6616 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
6617 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
6618 <NOP>: New.
6619 (enum aarch64_condition_codes): New enum.
6620 (w0): New static global.
6621 (fp): Likewise.
6622 (lr): Likewise.
6623 (struct aarch64_memory_operand) <type>: New
6624 MEMORY_OPERAND_POSTINDEX type.
6625 (postindex_memory_operand): New helper function.
6626 (emit_ret): New function.
6627 (emit_load_store_pair): New function, factored out of emit_stp
6628 with support for MEMORY_OPERAND_POSTINDEX.
6629 (emit_stp): Rewrite using emit_load_store_pair.
6630 (emit_ldp): New function.
6631 (emit_load_store): Likewise.
6632 (emit_ldr): Mention post-index instruction in comment.
6633 (emit_ldrh): New function.
6634 (emit_ldrb): New function.
6635 (emit_ldrsw): Mention post-index instruction in comment.
6636 (emit_str): Likewise.
6637 (emit_subs): New function.
6638 (emit_cmp): Likewise.
6639 (emit_and): Likewise.
6640 (emit_orr): Likewise.
6641 (emit_orn): Likewise.
6642 (emit_eor): Likewise.
6643 (emit_mvn): Likewise.
6644 (emit_lslv): Likewise.
6645 (emit_lsrv): Likewise.
6646 (emit_asrv): Likewise.
6647 (emit_mul): Likewise.
6648 (emit_sbfm): Likewise.
6649 (emit_sbfx): Likewise.
6650 (emit_ubfm): Likewise.
6651 (emit_ubfx): Likewise.
6652 (emit_csinc): Likewise.
6653 (emit_cset): Likewise.
6654 (emit_nop): Likewise.
6655 (emit_ops_insns): New helper function.
6656 (emit_pop): Likewise.
6657 (emit_push): Likewise.
6658 (aarch64_emit_prologue): New function.
6659 (aarch64_emit_epilogue): Likewise.
6660 (aarch64_emit_add): Likewise.
6661 (aarch64_emit_sub): Likewise.
6662 (aarch64_emit_mul): Likewise.
6663 (aarch64_emit_lsh): Likewise.
6664 (aarch64_emit_rsh_signed): Likewise.
6665 (aarch64_emit_rsh_unsigned): Likewise.
6666 (aarch64_emit_ext): Likewise.
6667 (aarch64_emit_log_not): Likewise.
6668 (aarch64_emit_bit_and): Likewise.
6669 (aarch64_emit_bit_or): Likewise.
6670 (aarch64_emit_bit_xor): Likewise.
6671 (aarch64_emit_bit_not): Likewise.
6672 (aarch64_emit_equal): Likewise.
6673 (aarch64_emit_less_signed): Likewise.
6674 (aarch64_emit_less_unsigned): Likewise.
6675 (aarch64_emit_ref): Likewise.
6676 (aarch64_emit_if_goto): Likewise.
6677 (aarch64_emit_goto): Likewise.
6678 (aarch64_write_goto_address): Likewise.
6679 (aarch64_emit_const): Likewise.
6680 (aarch64_emit_call): Likewise.
6681 (aarch64_emit_reg): Likewise.
6682 (aarch64_emit_pop): Likewise.
6683 (aarch64_emit_stack_flush): Likewise.
6684 (aarch64_emit_zero_ext): Likewise.
6685 (aarch64_emit_swap): Likewise.
6686 (aarch64_emit_stack_adjust): Likewise.
6687 (aarch64_emit_int_call_1): Likewise.
6688 (aarch64_emit_void_call_2): Likewise.
6689 (aarch64_emit_eq_goto): Likewise.
6690 (aarch64_emit_ne_goto): Likewise.
6691 (aarch64_emit_lt_goto): Likewise.
6692 (aarch64_emit_le_goto): Likewise.
6693 (aarch64_emit_gt_goto): Likewise.
6694 (aarch64_emit_ge_got): Likewise.
6695 (aarch64_emit_ops_impl): New static global variable.
6696 (aarch64_emit_ops): New target function, return
6697 &aarch64_emit_ops_impl.
6698 (struct linux_target_ops): Install it.
6699
bb903df0
PL
67002015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6701
6702 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
6703 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
6704 aarch64-ipa.o.
6705 * linux-aarch64-ipa.c: New file.
6706 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
6707 and endian.h.
6708 (aarch64_get_thread_area): New target method.
6709 (extract_signed_bitfield): New helper function.
6710 (aarch64_decode_ldr_literal): New function.
6711 (enum aarch64_opcodes): New enum.
6712 (struct aarch64_register): New struct.
6713 (struct aarch64_operand): New struct.
6714 (x0): New static global.
6715 (x1): Likewise.
6716 (x2): Likewise.
6717 (x3): Likewise.
6718 (x4): Likewise.
6719 (w2): Likewise.
6720 (ip0): Likewise.
6721 (sp): Likewise.
6722 (xzr): Likewise.
6723 (aarch64_register): New helper function.
6724 (register_operand): Likewise.
6725 (immediate_operand): Likewise.
6726 (struct aarch64_memory_operand): New struct.
6727 (offset_memory_operand): New helper function.
6728 (preindex_memory_operand): Likewise.
6729 (enum aarch64_system_control_registers): New enum.
6730 (ENCODE): New macro.
6731 (emit_insn): New helper function.
6732 (emit_b): New function.
6733 (emit_bcond): Likewise.
6734 (emit_cb): Likewise.
6735 (emit_tb): Likewise.
6736 (emit_blr): Likewise.
6737 (emit_stp): Likewise.
6738 (emit_ldp_q_offset): Likewise.
6739 (emit_stp_q_offset): Likewise.
6740 (emit_load_store): Likewise.
6741 (emit_ldr): Likewise.
6742 (emit_ldrsw): Likewise.
6743 (emit_str): Likewise.
6744 (emit_ldaxr): Likewise.
6745 (emit_stxr): Likewise.
6746 (emit_stlr): Likewise.
6747 (emit_data_processing_reg): Likewise.
6748 (emit_data_processing): Likewise.
6749 (emit_add): Likewise.
6750 (emit_sub): Likewise.
6751 (emit_mov): Likewise.
6752 (emit_movk): Likewise.
6753 (emit_mov_addr): Likewise.
6754 (emit_mrs): Likewise.
6755 (emit_msr): Likewise.
6756 (emit_sevl): Likewise.
6757 (emit_wfe): Likewise.
6758 (append_insns): Likewise.
6759 (can_encode_int32_in): New helper function.
6760 (aarch64_relocate_instruction): New function.
6761 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
6762 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
6763 (struct linux_target_ops): Install aarch64_get_thread_area,
6764 aarch64_install_fast_tracepoint_jump_pad and
6765 aarch64_get_min_fast_tracepoint_insn_len.
6766
787749ea
PL
67672015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6768
6769 * Makefile.in (aarch64-insn.o): New rule.
6770 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
6771
9812b2e6
YQ
67722015-09-21 Yao Qi <yao.qi@linaro.org>
6773
6774 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
6775
18fe412b
YQ
67762015-09-21 Yao Qi <yao.qi@linaro.org>
6777
6778 * tracepoint.c (max_jump_pad_size): Remove.
6779
a0cc84cd
YQ
67802015-09-18 Yao Qi <yao.qi@linaro.org>
6781
6782 * linux-aarch64-low.c: Don't include sys/uio.h.
6783 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
6784
d78908cf
WW
67852015-09-16 Wei-cheng Wang <cole945@gmail.com>
6786
6787 * tracepoint.c (eval_result_type): Change prototype.
6788 (condition_true_at_tracepoint): Fix argument to compiled_cond.
6789
d57e0d50
PA
67902015-09-15 Pedro Alves <palves@redhat.com>
6791
6792 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
6793 Check whether to report exec events instead of checking whether
6794 multiprocess is enabled.
6795
5a676acc
PA
67962015-09-15 Pedro Alves <palves@redhat.com>
6797
6798 PR remote/18965
6799 * remote-utils.c (prepare_resume_reply): Merge
6800 TARGET_WAITKIND_VFORK_DONE switch case with the
6801 TARGET_WAITKIND_FORKED case.
6802
7c5d0fad
YQ
68032015-09-15 Yao Qi <yao.qi@linaro.org>
6804
6805 * server.c (handle_query): Check string comparison using
6806 "else if" instead of "if".
6807
750ce8d1
YQ
68082015-09-15 Yao Qi <yao.qi@linaro.org>
6809
6810 * server.c (vCont_supported): New global variable.
6811 (handle_query): Set vCont_supported to 1 if "vContSupported+"
6812 matches. Append ";vContSupported+" to own_buf.
6813 (handle_v_requests): Append ";s;S" to own_buf if target supports
6814 hardware single step or vCont_supported is false.
6815 (capture_main): Set vCont_supported to zero.
6816
70b90b91
YQ
68172015-09-15 Yao Qi <yao.qi@linaro.org>
6818
6819 * linux-low.c (linux_supports_conditional_breakpoints): Rename
6820 it to ...
6821 (linux_supports_hardware_single_step): ... New function.
6822 (linux_target_ops): Update.
6823 * lynx-low.c (lynx_target_ops): Set field
6824 supports_hardware_single_step to target_can_do_hardware_single_step.
6825 * nto-low.c (nto_target_ops): Likewise.
6826 * spu-low.c (spu_target_ops): Likewise.
6827 * win32-low.c (win32_target_ops): Likewise.
6828 * target.c (target_can_do_hardware_single_step): New function.
6829 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6830 Remove. <supports_hardware_single_step>: New field.
6831 (target_supports_conditional_breakpoints): Remove.
6832 (target_supports_hardware_single_step): New macro.
6833 (target_can_do_hardware_single_step): Declare.
6834 * server.c (handle_query): Use target_supports_hardware_single_step
6835 instead of target_supports_conditional_breakpoints.
6836
ade90bde
YQ
68372015-09-15 Yao Qi <yao.qi@linaro.org>
6838
6839 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
6840 function.
6841 (struct linux_target_ops the_low_target): Install
6842 aarch64_linux_siginfo_fixup.
6843
94585166
DB
68442015-09-11 Don Breazeal <donb@codesourcery.com>
6845 Luis Machado <lgustavo@codesourcery.com>
6846
6847 * linux-low.c (linux_mourn): Static declaration.
6848 (linux_arch_setup): Move in front of
6849 handle_extended_wait.
6850 (linux_arch_setup_thread): New function.
6851 (handle_extended_wait): Handle exec events. Call
6852 linux_arch_setup_thread. Make event_lwp argument a
6853 pointer-to-a-pointer.
6854 (check_zombie_leaders): Do not check stopped threads.
6855 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
6856 (linux_low_filter_event): Add lwp and thread for exec'ing
6857 non-leader thread if leader thread has been deleted.
6858 Refactor code into linux_arch_setup_thread and call it.
6859 Pass child lwp pointer by reference to handle_extended_wait.
6860 (linux_wait_for_event_filtered): Update comment.
6861 (linux_wait_1): Prevent clobbering exec event status.
6862 (linux_supports_exec_events): New function.
6863 (linux_target_ops) <supports_exec_events>: Initialize new member.
6864 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
6865 new member.
6866 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
6867 * server.c (report_exec_events): New global variable.
6868 (handle_query): Handle qSupported query for exec-events feature.
6869 (captured_main): Initialize report_exec_events.
6870 * server.h (report_exec_events): Declare new global variable.
6871 * target.h (struct target_ops) <supports_exec_events>: New
6872 member.
6873 (target_supports_exec_events): New macro.
6874 * win32-low.c (win32_target_ops) <supports_exec_events>:
6875 Initialize new member.
6876
0568462b
MM
68772015-09-09 Markus Metzger <markus.t.metzger@intel.com>
6878
6879 * linux-low.c (linux_low_enable_btrace): Remove.
6880 (linux_target_ops): Replace linux_low_enable_btrace with
6881 linux_enable_btrace.
6882
39edd165
YQ
68832015-09-03 Yao Qi <yao.qi@linaro.org>
6884
6885 * linux-aarch64-low.c (aarch64_insert_point): Call
6886 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
6887 returns true.
6888
1db33b5a
UW
68892015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6890
6891 * linux-low.c (check_stopped_by_breakpoint): Use
6892 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
6893
ab290430
PA
68942015-08-27 Pedro Alves <palves@redhat.com>
6895
6896 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
6897
8d749320
SM
68982015-08-26 Simon Marchi <simon.marchi@ericsson.com>
6899
6711b7f8
SM
6900 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
6901 the XNEW-family equivalent.
8d749320
SM
6902 (compile_bytecodes): Likewise.
6903 * dll.c (loaded_dll): Likewise.
6904 * event-loop.c (append_callback_event): Likewise.
6905 (create_file_handler): Likewise.
6906 (create_file_event): Likewise.
6907 * hostio.c (handle_open): Likewise.
6908 * inferiors.c (add_thread): Likewise.
6909 (add_process): Likewise.
6910 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
6911 * linux-arm-low.c (arm_new_process): Likewise.
6912 (arm_new_thread): Likewise.
6913 * linux-low.c (add_to_pid_list): Likewise.
6914 (linux_add_process): Likewise.
6915 (handle_extended_wait): Likewise.
6916 (add_lwp): Likewise.
6917 (enqueue_one_deferred_signal): Likewise.
6918 (enqueue_pending_signal): Likewise.
6919 (linux_resume_one_lwp_throw): Likewise.
6920 (linux_resume_one_thread): Likewise.
6921 (linux_read_memory): Likewise.
6922 (linux_write_memory): Likewise.
6923 * linux-mips-low.c (mips_linux_new_process): Likewise.
6924 (mips_linux_new_thread): Likewise.
6925 (mips_add_watchpoint): Likewise.
6926 * linux-x86-low.c (initialize_low_arch): Likewise.
6927 * lynx-low.c (lynx_add_process): Likewise.
6928 * mem-break.c (set_raw_breakpoint_at): Likewise.
6929 (set_breakpoint): Likewise.
6930 (add_condition_to_breakpoint): Likewise.
6931 (add_commands_to_breakpoint): Likewise.
6932 (clone_agent_expr): Likewise.
6933 (clone_one_breakpoint): Likewise.
6934 * regcache.c (new_register_cache): Likewise.
6935 * remote-utils.c (look_up_one_symbol): Likewise.
6936 * server.c (queue_stop_reply): Likewise.
6937 (start_inferior): Likewise.
6938 (queue_stop_reply_callback): Likewise.
6939 (handle_target_event): Likewise.
6940 * spu-low.c (fetch_ppc_memory): Likewise.
6941 (store_ppc_memory): Likewise.
6942 * target.c (set_target_ops): Likewise.
6943 * thread-db.c (thread_db_load_search): Likewise.
6944 (try_thread_db_load_1): Likewise.
6945 * tracepoint.c (add_tracepoint): Likewise.
6946 (add_tracepoint_action): Likewise.
6947 (create_trace_state_variable): Likewise.
6948 (cmd_qtdpsrc): Likewise.
6949 (cmd_qtro): Likewise.
6950 (add_while_stepping_state): Likewise.
6951 * win32-low.c (child_add_thread): Likewise.
6952 (get_image_name): Likewise.
6953
ed8b7b42
YQ
69542015-08-25 Yao Qi <yao.qi@linaro.org>
6955
6956 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
6957
db3cb7cb
YQ
69582015-08-25 Yao Qi <yao.qi@linaro.org>
6959
6960 * Makefile.in (aarch64-linux.o): New rule.
6961 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
6962 srv_tgtobj.
6963 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
6964 (aarch64_init_debug_reg_state): Make it extern.
6965 (aarch64_linux_prepare_to_resume): Remove.
6966
f6011a1c
YQ
69672015-08-25 Yao Qi <yao.qi@linaro.org>
6968
6969 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
6970 lwp_arch_private_info and ptid_of_lwp.
6971
88e2cf7e
YQ
69722015-08-25 Yao Qi <yao.qi@linaro.org>
6973
6974 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
6975 Find proc_info by find_process_pid. All callers updated.
6976
5e35436e
YQ
69772015-08-25 Yao Qi <yao.qi@linaro.org>
6978
6979 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
6980 Remove.
6981 (debug_reg_change_callback): Remove.
6982 (aarch64_notify_debug_reg_change): Remove.
6983
4a8a7965
YQ
69842015-08-25 Yao Qi <yao.qi@linaro.org>
6985
6986 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
6987 Call current_lwp_ptid.
6988
32a271ee
YQ
69892015-08-25 Yao Qi <yao.qi@linaro.org>
6990
6991 * linux-aarch64-low.c (debug_reg_change_callback): Use
6992 debug_printf.
6993
0d51c8d7
YQ
69942015-08-25 Yao Qi <yao.qi@linaro.org>
6995
6996 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
6997
31a43dd5
YQ
69982015-08-25 Yao Qi <yao.qi@linaro.org>
6999
7000 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
7001
8ee52567
YQ
70022015-08-25 Yao Qi <yao.qi@linaro.org>
7003
7004 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
7005 the code.
7006
ff3f0f45
YQ
70072015-08-25 Yao Qi <yao.qi@linaro.org>
7008
7009 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
7010 Remove.
7011 (debug_reg_change_callback): Remove argument entry and add argument
7012 lwp. Remove local variable thread. Don't print thread id in the
7013 debugging output. Don't check whether pid of thread equals to pid.
7014 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
7015 iterate_over_lwps instead find_inferior.
7016
3d40fbb5
PA
70172015-08-24 Pedro Alves <palves@redhat.com>
7018
7019 * inferiors.c (get_first_process): New function.
7020 * inferiors.h (get_first_process): New declaration.
7021 * remote-utils.c (read_ptid): Default to the first process in the
7022 list, instead of to the current thread's process.
7023
438e1e42
PA
70242015-08-24 Pedro Alves <palves@redhat.com>
7025
7026 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
7027 * event-loop.c: Likewise.
7028 * remote-utils.c: Likewise.
7029 * tracepoint.c: Likewise.
7030
a8c6d4fc
PA
70312015-08-24 Pedro Alves <palves@redhat.com>
7032
7033 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
7034 ptid_get_lwp.
7035
99b0bb12
PA
70362015-08-21 Pedro Alves <palves@redhat.com>
7037
7038 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
7039 instead of literal 1.
7040
f8904751
PA
70412015-08-21 Pedro Alves <palves@redhat.com>
7042
7043 * tdesc.c (default_description): Explicitly zero-initialize.
7044
465a859e
PA
70452015-08-21 Pedro Alves <palves@redhat.com>
7046
7047 PR gdb/18749
7048 * inferiors.c (remove_thread): Discard any pending stop reply for
7049 this thread.
7050 * server.c (remove_all_on_match_pid): Rename to ...
7051 (remove_all_on_match_ptid): ... this. Work with a filter ptid
7052 instead of a pid.
7053 (discard_queued_stop_replies): Change parameter to a ptid. Now
7054 extern.
7055 (handle_v_kill, kill_inferior_callback, captured_main)
7056 (process_serial_event): Adjust.
7057 * server.h (discard_queued_stop_replies): Declare.
7058
f0db101d
PA
70592015-08-21 Pedro Alves <palves@redhat.com>
7060
7061 * linux-low.c (wait_for_sigstop): Always switch to no thread
7062 selected if the previously current thread dies.
7063 * lynx-low.c (lynx_request_interrupt): Use the first thread's
7064 process instead of the current thread's.
7065 * remote-utils.c (input_interrupt): Don't check if there's no
7066 current thread.
7067 * server.c (gdb_read_memory, gdb_write_memory): If setting the
7068 current thread to the general thread fails, error out.
7069 (handle_qxfer_auxv, handle_qxfer_libraries)
7070 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
7071 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
7072 (handle_query): Check if there's a thread selected instead of
7073 checking whether there's any thread in the thread list.
7074 (handle_qxfer_threads, handle_qxfer_btrace)
7075 (handle_qxfer_btrace_conf): Don't error out early if there's no
7076 thread in the thread list.
7077 (handle_v_cont, myresume): Don't set the current thread to the
7078 continue thread.
7079 (process_serial_event) <Hg handling>: Also set thread_id if the
7080 previous general thread is still alive.
7081 (process_serial_event) <g/G handling>: If setting the current
7082 thread to the general thread fails, error out.
7083 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
7084 thread's lwp instead of the current thread's.
7085 * target.c (set_desired_thread): If the desired thread was not
7086 found, leave the current thread pointing to NULL. Return an int
7087 (boolean) indicating success.
7088 * target.h (set_desired_thread): Change return type to int.
7089
40045d91
MF
70902015-08-20 Max Filippov <jcmvbkbc@gmail.com>
7091
7092 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
7093 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
7094 #includes.
7095 (ps_get_thread_area): New function.
7096
45face3b
GB
70972015-08-19 Gary Benson <gbenson@redhat.com>
7098
7099 * hostio.c (handle_pread): Do not attempt to read more data
7100 than hostio_reply_with_data can fit in a packet.
7101
16d5f642
JB
71022015-08-18 Joel Brobecker <brobecker@adacore.com>
7103
7104 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
7105
a738da3a
MF
71062015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
7107
7108 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
7109
33ebda9d
PA
71102015-08-06 Pedro Alves <palves@redhat.com>
7111
7112 * tracepoint.c (expr_eval_result): Now an int.
7113
a44892be
PA
71142015-08-06 Pedro Alves <palves@redhat.com>
7115
7116 * gdbthread.h (struct regcache): Forward declare.
7117 (struct thread_info) <regcache_data>: Now a struct regcache
7118 pointer.
7119 * inferiors.c (inferior_regcache_data)
7120 (set_inferior_regcache_data): Now work with struct regcache
7121 pointers.
7122 * inferiors.h (struct regcache): Forward declare.
7123 (inferior_regcache_data, set_inferior_regcache_data): Now work
7124 with struct regcache pointers.
7125 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
7126 (free_register_cache_thread): Remove struct regcache pointer
7127 casts.
7128
608a1e46
PA
71292015-08-06 Pedro Alves <palves@redhat.com>
7130
7131 * server.c (captured_main): On error, print the exception message
7132 to stderr, and if run_once is set, throw a quit.
7133
f0ce0d3a
PA
71342015-08-06 Pedro Alves <palves@redhat.com>
7135
7136 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
7137 the current thread.
7138
bf47e248
PA
71392015-08-06 Pedro Alves <palves@redhat.com>
7140
7141 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
7142 reading beyond the passed in buffer length.
7143
b6b9ffcc
PL
71442015-08-06 Pierre Langlois <pierre.langlois@arm.com>
7145
7146 * tracepoint.c (symbol_list) <required>: Remove.
7147
863d01bd
PA
71482015-08-06 Pedro Alves <palves@redhat.com>
7149
7150 * linux-low.c (handle_extended_wait): Set the fork child's suspend
7151 count if stopping and suspending threads.
7152 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
7153 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
7154 (linux_detach): Complete an ongoing step-over.
7155 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
7156 throughout.
7157 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
7158 (linux_wait_1): If passing a signal to the inferior after
7159 finishing a step-over, unsuspend and re-resume all lwps. If we
7160 see a single-step event but the thread should be continuing, don't
7161 pass the trap to gdb.
7162 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
7163 internal_error instead of gdb_assert.
7164 (enqueue_pending_signal): New function.
7165 (check_ptrace_stopped_lwp_gone): Add debug output.
7166 (start_step_over): Use internal_error instead of gdb_assert.
7167 (complete_ongoing_step_over): New function.
7168 (linux_resume_one_thread): Don't resume a suspended thread.
7169 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
7170 it stepping.
7171
00db26fa
PA
71722015-08-06 Pedro Alves <palves@redhat.com>
7173
7174 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
7175 (linux_thread_alive): Use lwp_is_marked_dead.
7176 (extended_event_reported): Delete.
7177 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
7178 instead of extended_event_reported.
7179 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
7180 as well.
7181 (lwp_is_marked_dead): New function.
7182 (lwp_running): Use lwp_is_marked_dead.
7183 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
7184 comment.
7185
ad071a30
PA
71862015-08-06 Pedro Alves <palves@redhat.com>
7187
7188 * linux-low.c (linux_wait_1): Move fork event output out of the
7189 !report_to_gdb check. Pass event_child->waitstatus to
7190 target_waitstatus_to_string instead of ourstatus.
7191
524b57e6
YQ
71922015-08-04 Yao Qi <yao.qi@linaro.org>
7193
7194 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
7195 if current_thread is 32 bit.
7196
6085d6f6
YQ
71972015-08-04 Yao Qi <yao.qi@linaro.org>
7198
7199 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
7200 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
7201 * server.c (extended_protocol): Remove "static".
7202 * server.h (extended_protocol): Declare it.
7203
8a7e4587
YQ
72042015-08-04 Yao Qi <yao.qi@linaro.org>
7205
7206 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
7207 both aarch64 and aarch32.
7208 (aarch64_set_pc): Likewise.
7209
3b53ae99
YQ
72102015-08-04 Yao Qi <yao.qi@linaro.org>
7211
7212 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
7213 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
7214 arm-with-neon.xml to srv_xmlfiles.
7215 * linux-aarch64-low.c: Include linux-aarch32-low.h.
7216 (is_64bit_tdesc): New function.
7217 (aarch64_linux_read_description): New function.
7218 (aarch64_arch_setup): Call aarch64_linux_read_description.
7219 (regs_info): Rename to regs_info_aarch64.
7220 (aarch64_regs_info): Return right regs_info.
7221 (initialize_low_arch): Call initialize_low_arch_aarch32.
7222
bd9e6534
YQ
72232015-08-04 Yao Qi <yao.qi@linaro.org>
7224
7225 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
7226 * linux-aarch32-low.c: New file.
7227 * linux-aarch32-low.h: New file.
7228 * linux-arm-low.c (arm_fill_gregset): Move it to
7229 linux-aarch32-low.c.
7230 (arm_store_gregset): Likewise.
7231 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
7232 (arm_store_vfpregset): Call arm_store_vfpregset_num.
7233 (arm_arch_setup): Check if PTRACE_GETREGSET works.
7234 (regs_info): Rename to regs_info_arm.
7235 (arm_regs_info): Return regs_info_aarch32 if
7236 have_ptrace_getregset is 1 and target description is
7237 arm_with_neon or arm_with_vfpv3.
7238 (initialize_low_arch): Don't call init_registers_arm_with_neon.
7239 Call initialize_low_arch_aarch32 instead.
7240
ded48a5e
YQ
72412015-08-04 Yao Qi <yao.qi@linaro.org>
7242
7243 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
7244 * linux-low.c: ... here.
7245 * linux-low.h (have_ptrace_getregset): Declare it.
7246
96e9210f
PA
72472015-08-04 Pedro Alves <palves@redhat.com>
7248
7249 * thread-db.c (struct thread_db): Use new typedefs.
7250 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
7251 CHK calls.
7252 (disable_thread_event_reporting): Cast result of dlsym to
7253 destination function pointer type.
7254 (thread_db_mourn): Use td_ta_delete_ftype.
7255
af60a1ef
SL
72562015-08-03 Sandra Loosemore <sandra@codesourcery.com>
7257
7258 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
7259 arch variant.
7260 (CDX_BREAKPOINT): Define for R2.
7261 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
7262 (the_low_target): Add comments.
7263
e8b41681
YQ
72642015-07-30 Yao Qi <yao.qi@linaro.org>
7265
7266 * linux-arm-low.c (arm_hwcap): Remove it.
7267 (arm_read_description): New local variable arm_hwcap. Don't
7268 set arm_hwcap to zero.
7269
89abb039
YQ
72702015-07-30 Yao Qi <yao.qi@linaro.org>
7271
7272 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
7273 Use regcache->tdesc instead.
7274 (arm_store_wmmxregset): Likewise.
7275 (arm_fill_vfpregset): Likewise.
7276 (arm_store_vfpregset): Likewise.
7277
deca266c
YQ
72782015-07-30 Yao Qi <yao.qi@linaro.org>
7279
7280 * linux-arm-low.c: Include arch/arm.h.
7281 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
7282 (arm_store_gregset): Likewise.
7283
aa58a496
SM
72842015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7285
7286 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
7287 ptrace's 4th parameter.
7288
50904b25
YQ
72892015-07-27 Yao Qi <yao.qi@linaro.org>
7290
7291 * configure.srv (case aarch64*-*-linux*): Don't set
7292 srv_linux_usrregs.
7293
5826e159
PA
72942015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
7295
7296 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
7297 sys/ptrace.h.
7298 * linux-arm-low.c: Likewise.
7299 * linux-cris-low.c: Likewise.
7300 * linux-crisv32-low.c: Likewise.
7301 * linux-low.c: Likewise.
7302 * linux-m68k-low.c: Likewise.
7303 * linux-mips-low.c: Likewise.
7304 * linux-nios2-low.c: Likewise.
7305 * linux-s390-low.c: Likewise.
7306 * linux-sparc-low.c: Likewise.
7307 * linux-tic6x-low.c: Likewise.
7308 * linux-tile-low.c: Likewise.
7309 * linux-x86-low.c: Likewise.
7310
54019719
PA
73112015-07-24 Pedro Alves <palves@redhat.com>
7312
7313 * config.in: Regenerate.
7314 * configure: Regenerate.
7315
eb7aa561
PA
73162015-07-24 Pedro Alves <palves@redhat.com>
7317
7318 * acinclude.m4: Include ../ptrace.m4.
7319 * configure.ac: Call GDB_AC_PTRACE.
7320 * config.in, configure: Regenerate.
7321
55d7b841
YQ
73222015-07-24 Yao Qi <yao.qi@linaro.org>
7323
7324 * linux-low.c (linux_create_inferior): Remove setting to
7325 proc->priv->new_inferior.
7326 (linux_attach): Likewise.
7327 (linux_low_filter_event): Likewise.
7328 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
7329
c06cbd92
YQ
73302015-07-24 Yao Qi <yao.qi@linaro.org>
7331
7332 * linux-low.c (linux_arch_setup): New function.
7333 (linux_low_filter_event): If proc->tdesc is NULL and
7334 proc->attached is true, call the_low_target.arch_setup.
7335 Otherwise, keep status pending, and return.
7336 (linux_resume_one_lwp_throw): Don't call get_pc if
7337 thread->while_stepping isn't NULL. Don't call
7338 get_thread_regcache if proc->tdesc is NULL.
7339 (need_step_over_p): Return 0 if proc->tdesc is NULL.
7340 (linux_target_ops): Install arch_setup.
7341 * server.c (start_inferior): Call the_target->arch_setup.
7342 * target.h (struct target_ops) <arch_setup>: New field.
7343 (target_arch_setup): New marco.
7344 * lynx-low.c (lynx_target_ops): Update.
7345 * nto-low.c (nto_target_ops): Update.
7346 * spu-low.c (spu_target_ops): Update.
7347 * win32-low.c (win32_target_ops): Update.
7348
5ae3ebba
YQ
73492015-07-24 Yao Qi <yao.qi@linaro.org>
7350
7351 * linux-low.c (linux_add_process): Don't set
7352 proc->priv->new_inferior.
7353 (linux_create_inferior): Set proc->priv->new_inferior to 1.
7354 (linux_attach): Likewise.
7355
eb97750b
YQ
73562015-07-24 Yao Qi <yao.qi@linaro.org>
7357
7358 * server.c (start_inferior): Code refactor.
7359
51aee833
YQ
73602015-07-24 Yao Qi <yao.qi@linaro.org>
7361
7362 * server.c (process_serial_event): Set general_thread.
7363
af1b22f3
YQ
73642015-07-21 Yao Qi <yao.qi@linaro.org>
7365
7366 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
7367 aarch64_linux_get_debug_reg_capacity.
7368
554717a3
YQ
73692015-07-17 Yao Qi <yao.qi@linaro.org>
7370
7371 * Makefile.in (aarch64-linux-hw-point.o): New rule.
7372 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
7373 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
7374 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7375 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7376 (AARCH64_HWP_ALIGNMENT): Likewise.
7377 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7378 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7379 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7380 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7381 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7382 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7383 (struct aarch64_debug_reg_state): Likewise.
7384 (struct arch_lwp_info): Likewise.
7385 (aarch64_align_watchpoint): Likewise.
7386 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7387 (aarch64_watchpoint_length): Likewise.
7388 (aarch64_point_encode_ctrl_reg): Likewise
7389 (aarch64_point_is_aligned): Likewise.
7390 (aarch64_align_watchpoint): Likewise.
7391 (aarch64_linux_set_debug_regs):
7392 (aarch64_dr_state_insert_one_point): Likewise.
7393 (aarch64_dr_state_remove_one_point): Likewise.
7394 (aarch64_handle_breakpoint): Likewise.
7395 (aarch64_handle_aligned_watchpoint): Likewise.
7396 (aarch64_handle_unaligned_watchpoint): Likewise.
7397 (aarch64_handle_watchpoint): Likewise.
7398
c67ca4de
YQ
73992015-07-17 Yao Qi <yao.qi@linaro.org>
7400
7401 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
7402 and don't aarch64_get_debug_reg_state. All callers update.
7403 (aarch64_handle_aligned_watchpoint): Likewise.
7404 (aarch64_handle_unaligned_watchpoint): Likewise.
7405 (aarch64_handle_watchpoint): Likewise.
7406 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
7407 (aarch64_remove_point): Likewise.
7408
25abf979
YQ
74092015-07-17 Yao Qi <yao.qi@linaro.org>
7410
7411 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
7412 debug_printf.
7413 (aarch64_handle_unaligned_watchpoint): Likewise.
7414
db1ff28b
JK
74152015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7416
7417 Revert the previous 3 commits:
7418 Move gdb_regex* to common/
7419 Move linux_find_memory_regions_full & co.
7420 gdbserver build-id attribute generator
7421
700ca40f
JK
74222015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7423 Jan Kratochvil <jan.kratochvil@redhat.com>
7424
7425 gdbserver build-id attribute generator.
7426 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
7427 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
7428 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
7429 (find_phdr): New.
7430 (get_dynamic): Use find_pdhr to traverse program headers.
7431 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
7432 (compare_mapping_entry_range, struct find_memory_region_callback_data)
7433 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
7434 (get_hex_build_id): New.
7435 (linux_qxfer_libraries_svr4): Add optional build-id attribute
7436 to reply XML document.
7437
9904185c
JK
74382015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7439 Jan Kratochvil <jan.kratochvil@redhat.com>
7440
7441 * target.c: Include target/target-utils.h and fcntl.h.
7442 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
7443 (target_fileio_read_stralloc): New functions.
7444
6e5b4429
JK
74452015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7446
7447 * Makefile.in (OBS): Add gdb_regex.o.
7448 (gdb_regex.o): New.
7449 * config.in: Rebuilt.
7450 * configure: Rebuilt.
7451
ddc98fbf
JK
74522015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7453 Jan Kratochvil <jan.kratochvil@redhat.com>
7454
7455 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7456 * Makefile.in (OBS): Add target-utils.o.
7457 (linux-maps.o, target-utils.o): New.
7458 * configure.srv (srv_linux_obj): Add linux-maps.o.
7459
e57bb7a0
PL
74602015-07-15 Pierre Langlois <pierre.langlois@arm.com>
7461
7462 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
7463 function, return 1.
7464 (the_low_target): Install it.
7465
586b02a9
PA
74662015-07-14 Pedro Alves <palves@redhat.com>
7467
7468 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
7469 Instead, ignore ECHILD, and throw an error for other errnos.
7470
58c1b36c
PA
74712015-07-10 Pedro Alves <palves@redhat.com>
7472
7473 * event-loop.c (struct callback_event) <data>: Change type to
7474 gdb_client_data instance instead of gdb_client_data pointer.
7475 (append_callback_event): Adjust.
7476
421530db
PL
74772015-07-10 Pierre Langlois <pierre.langlois@arm.com>
7478
7479 * linux-aarch64-low.c: Add comments for each linux_target_ops
7480 method. Remove comments already covered in target_ops and
7481 linux_target_ops definitions.
7482 (the_low_target): Add comments for each unimplemented method.
7483
c2d65f38
YQ
74842015-07-09 Yao Qi <yao.qi@linaro.org>
7485
7486 * linux-aarch64-low.c (aarch64_regmap): Remove.
7487 (aarch64_usrregs_info): Remove.
7488 (regs_info): Set field usrregs to NULL.
7489
b20a6524
MM
74902015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7491
7492 * linux-low.c: Include "rsp-low.h"
7493 (linux_low_encode_pt_config, linux_low_encode_raw): New.
7494 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
7495 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
7496 (handle_btrace_enable_pt): New.
7497 (handle_btrace_general_set): Support "pt".
7498 (handle_btrace_conf_general_set): Support "pt:size".
7499
96c97461
PL
75002015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7501
7502 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
7503 Z_PACKET_SW_BP.
7504
37d66942
PL
75052015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7506
7507 * linux-aarch64-low.c: Remove comment about endianness.
7508 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
7509 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
7510 memcmp.
7511
dc06243f
GB
75122015-06-24 Gary Benson <gbenson@redhat.com>
7513
7514 * linux-i386-ipa.c (stdint.h): Do not include.
7515 * lynx-i386-low.c (stdint.h): Likewise.
7516 * lynx-ppc-low.c (stdint.h): Likewise.
7517 * mem-break.c (stdint.h): Likewise.
7518 * thread-db.c (stdint.h): Likewise.
7519 * tracepoint.c (stdint.h): Likewise.
7520 * win32-low.c (stdint.h): Likewise.
7521
124e13d9
SM
75222015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7523
7524 * server.c (write_qxfer_response): Update call to
7525 remote_escape_output.
7526
909c2cda
JK
75272015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7528 Jan Kratochvil <jan.kratochvil@redhat.com>
7529
7530 Merge multiple hex conversions.
7531 * gdbreplay.c (tohex): Rename to 'fromhex'.
7532 (logchar): Use fromhex.
7533
24c05f46
JK
75342015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7535
7536 * server.c (handle_qxfer_libraries): Set `version' attribute for
7537 <library-list>.
7538
14d2069a
GB
75392015-06-10 Gary Benson <gbenson@redhat.com>
7540
7541 * target.h (struct target_ops) <multifs_open>: New field.
7542 <multifs_unlink>: Likewise.
7543 <multifs_readlink>: Likewise.
7544 * linux-low.c (nat/linux-namespaces.h): New include.
7545 (linux_target_ops): Initialize the_target->multifs_open,
7546 the_target->multifs_unlink and the_target->multifs_readlink.
7547 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
7548 * hostio.c (hostio_fs_pid): New static variable.
7549 (hostio_handle_new_gdb_connection): New function.
7550 (handle_setfs): Likewise.
7551 (handle_open): Use the_target->multifs_open as appropriate.
7552 (handle_unlink): Use the_target->multifs_unlink as appropriate.
7553 (handle_readlink): Use the_target->multifs_readlink as
7554 appropriate.
7555 (handle_vFile): Handle vFile:setfs packets.
7556 * server.c (handle_query): Call hostio_handle_new_gdb_connection
7557 after target_handle_new_gdb_connection.
7558
4b8b5e72
GB
75592015-06-10 Gary Benson <gbenson@redhat.com>
7560
7561 * configure.ac (AC_CHECK_FUNCS): Add setns.
7562 * config.in: Regenerate.
7563 * configure: Likewise.
7564 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
7565 (linux-namespaces.o): New rule.
7566 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
7567
3ac2e371
GB
75682015-06-09 Gary Benson <gbenson@redhat.com>
7569
7570 * hostio.c (handle_open): Process mode argument with
7571 fileio_to_host_mode.
7572
ca9b78ce
YQ
75732015-06-01 Yao Qi <yao.qi@linaro.org>
7574
7575 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7576 * linux-x86-low.c: Likewise.
7577
bfacd19d
DB
75782015-05-28 Don Breazeal <donb@codesourcery.com>
7579
7580 * linux-low.c (handle_extended_wait): Initialize
7581 thread_info.last_resume_kind for new fork children.
7582
452003ef
PA
75832015-05-15 Pedro Alves <palves@redhat.com>
7584
7585 * target.h (target_handle_new_gdb_connection): Rewrite using if
7586 wrapped in do/while.
7587
1041a03c
JB
75882015-05-14 Joel Brobecker <brobecker@adacore.com>
7589
7590 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
7591 * configure, config.in: Regenerate.
7592 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
7593 Declare typedef.
7594
c269dbdb
DB
75952015-05-12 Don Breazeal <donb@codesourcery.com>
7596
7597 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
7598 PTRACE_EVENT_VFORK_DONE.
7599 (linux_low_ptrace_options, extended_event_reported): Add vfork
7600 events.
7601 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
7602 and "vforkdone" for RSP 'T' Stop Reply Packet.
7603 * server.h (report_vfork_events): Declare
7604 global variable.
7605
3a8a0396
DB
76062015-05-12 Don Breazeal <donb@codesourcery.com>
7607
7608 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
7609 (the_low_target) <new_fork>: Initialize new member.
7610 * linux-arm-low.c (arm_new_fork): New function.
7611 (the_low_target) <new_fork>: Initialize new member.
7612 * linux-low.c (handle_extended_wait): Call new target function
7613 new_fork.
7614 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
7615 * linux-mips-low.c (mips_add_watchpoint): New function
7616 extracted from mips_insert_point.
7617 (the_low_target) <new_fork>: Initialize new member.
7618 (mips_linux_new_fork): New function.
7619 (mips_insert_point): Call mips_add_watchpoint.
7620 * linux-x86-low.c (x86_linux_new_fork): New function.
7621 (the_low_target) <new_fork>: Initialize new member.
7622
de0d863e
DB
76232015-05-12 Don Breazeal <donb@codesourcery.com>
7624
7625 * linux-low.c (handle_extended_wait): Implement return value,
7626 rename argument 'event_child' to 'event_lwp', handle
7627 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
7628 (linux_low_ptrace_options): New function.
7629 (linux_low_filter_event): Call linux_low_ptrace_options,
7630 use different argument fo linux_enable_event_reporting,
7631 use return value from handle_extended_wait.
7632 (extended_event_reported): New function.
7633 (linux_wait_1): Call extended_event_reported and set
7634 status to report fork events.
7635 (linux_write_memory): Add pid to debug message.
7636 (reset_lwp_ptrace_options_callback): New function.
7637 (linux_handle_new_gdb_connection): New function.
7638 (linux_target_ops): Initialize new structure member.
7639 * linux-low.h (struct lwp_info) <waitstatus>: New member.
7640 * lynx-low.c: Initialize new structure member.
7641 * remote-utils.c (prepare_resume_reply): Implement stop reason
7642 "fork" for "T" stop message.
7643 * server.c (handle_query): Call handle_new_gdb_connection.
7644 * server.h (report_fork_events): Declare global flag.
7645 * target.h (struct target_ops) <handle_new_gdb_connection>:
7646 New member.
7647 (target_handle_new_gdb_connection): New macro.
7648 * win32-low.c: Initialize new structure member.
7649
ddcbc397
DB
76502015-05-12 Don Breazeal <donb@codesourcery.com>
7651
7652 * mem-break.c (APPEND_TO_LIST): Define macro.
7653 (clone_agent_expr): New function.
7654 (clone_one_breakpoint): New function.
7655 (clone_all_breakpoints): New function.
7656 * mem-break.h: Declare new functions.
7657
89245bc0
DB
76582015-05-12 Don Breazeal <donb@codesourcery.com>
7659
7660 * linux-low.c (linux_supports_fork_events): New function.
7661 (linux_supports_vfork_events): New function.
7662 (linux_target_ops): Initialize new structure members.
7663 (initialize_low): Call linux_check_ptrace_features.
7664 * lynx-low.c (lynx_target_ops): Initialize new structure
7665 members.
7666 * server.c (report_fork_events, report_vfork_events):
7667 New global flags.
7668 (handle_query): Add new features to qSupported packet and
7669 response.
7670 (captured_main): Initialize new global variables.
7671 * target.h (struct target_ops) <supports_fork_events>:
7672 New member.
7673 <supports_vfork_events>: New member.
7674 (target_supports_fork_events): New macro.
7675 (target_supports_vfork_events): New macro.
7676 * win32-low.c (win32_target_ops): Initialize new structure
7677 members.
7678
835205d0
GB
76792015-05-12 Gary Benson <gbenson@redhat.com>
7680
7681 * server.c (handle_qxfer_exec_file): Use current process
7682 if annex is empty.
7683
21e94bd9
SL
76842015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7685
7686 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
7687 Remove HAVE_PTRACE_GETREGS conditionals.
7688 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
7689 instead of PTRACE_GETREGS and PTRACE_SETREGS.
7690
45614f15
YQ
76912015-05-08 Yao Qi <yao.qi@linaro.org>
7692
7693 * linux-low.c (linux_supports_conditional_breakpoints): New
7694 function.
7695 (linux_target_ops): Install new target method.
7696 * lynx-low.c (lynx_target_ops): Install NULL hook for
7697 supports_conditional_breakpoints.
7698 * nto-low.c (nto_target_ops): Likewise.
7699 * spu-low.c (spu_target_ops): Likewise.
7700 * win32-low.c (win32_target_ops): Likewise.
7701 * server.c (handle_query): Check
7702 target_supports_conditional_breakpoints.
7703 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7704 New field.
7705 (target_supports_conditional_breakpoints): New macro.
7706
80ad801e
PA
77072015-05-06 Pedro Alves <palves@redhat.com>
7708
7709 PR server/18081
7710 * server.c (start_inferior): If the process exits, mourn it.
7711
819843c7
GB
77122015-04-21 Gary Benson <gbenson@redhat.com>
7713
7714 * hostio.c (fileio_open_flags_to_host): Factored out to
7715 fileio_to_host_openflags in common/fileio.c. Single use
7716 updated.
7717
a2d5a9d7
MF
77182015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7719
7720 * linux-xtensa-low.c (xtensa_fill_gregset)
7721 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
7722 XCHAL_HAVE_LOOP.
7723
deb44829
MF
77242015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7725
7726 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
7727 (regs_info): Replace usrregs pointer with NULL.
7728
e57f1de3
GB
77292015-04-17 Gary Benson <gbenson@redhat.com>
7730
7731 * target.h (struct target_ops) <pid_to_exec_file>: New field.
7732 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
7733 * server.c (handle_qxfer_exec_file): New function.
7734 (qxfer_packets): Add exec-file entry.
7735 (handle_query): Report qXfer:exec-file:read as supported packet.
7736
62828379
RN
77372015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
7738
7739 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
7740
b88bb450
GB
77412015-04-09 Gary Benson <gbenson@redhat.com>
7742
7743 * hostio-errno.c (errno_to_fileio_error): Remove function.
7744 Update caller to use remote_fileio_to_fio_error.
7745
c8f4bfdd
YQ
77462015-04-09 Yao Qi <yao.qi@linaro.org>
7747
7748 * linux-low.c (linux_insert_point): Call
7749 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
7750 (linux_remove_point): Call remove_memory_breakpoint if type is
7751 raw_bkpt_type_sw.
7752 * linux-x86-low.c (x86_insert_point): Don't call
7753 insert_memory_breakpoint.
7754 (x86_remove_point): Don't call remove_memory_breakpoint.
7755
41f98f02
PA
77562015-04-01 Pedro Alves <palves@redhat.com>
7757 Cleber Rosa <crosa@redhat.com>
7758
7759 * server.c (gdbserver_usage): Reorganize and extend the usage
7760 message.
7761
2bf6fb9d
PA
77622015-03-24 Pedro Alves <palves@redhat.com>
7763
7764 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
7765 output. Also dump TRAP_TRACE.
7766 (linux_low_filter_event): In debug output, distinguish a
7767 resume_stop SIGSTOP from a delayed SIGSTOP.
7768
369f6daa
GB
77692015-03-24 Gary Benson <gbenson@redhat.com>
7770
7771 * linux-x86-low.c (x86_linux_new_thread): Moved to
7772 nat/x86-linux.c.
7773 (x86_linux_prepare_to_resume): Likewise.
7774
8e5d4070
GB
77752015-03-24 Gary Benson <gbenson@redhat.com>
7776
7777 * Makefile.in (x86-linux-dregs.o): New rule.
7778 * configure.srv: Add x86-linux-dregs.o to relevant targets.
7779 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
7780 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7781 (x86_linux_dr_get): Likewise.
7782 (x86_linux_dr_set): Likewise.
7783 (update_debug_registers_callback): Likewise.
7784 (x86_linux_dr_set_addr): Likewise.
7785 (x86_linux_dr_get_addr): Likewise.
7786 (x86_linux_dr_set_control): Likewise.
7787 (x86_linux_dr_get_control): Likewise.
7788 (x86_linux_dr_get_status): Likewise.
7789 (x86_linux_update_debug_registers): Likewise.
7790
2b95d440
GB
77912015-03-24 Gary Benson <gbenson@redhat.com>
7792
7793 * linux-x86-low.c (x86_linux_update_debug_registers):
7794 New function, factored out from...
7795 (x86_linux_prepare_to_resume): ...this.
7796
14b0bc68
GB
77972015-03-24 Gary Benson <gbenson@redhat.com>
7798
7799 * linux-x86-low.c (x86_linux_dr_get): Update comments.
7800 (x86_linux_dr_set): Likewise.
7801 (update_debug_registers_callback): Likewise.
7802 (x86_linux_dr_set_addr): Likewise.
7803 (x86_linux_dr_get_addr): Likewise.
7804 (x86_linux_dr_set_control): Likewise.
7805 (x86_linux_dr_get_control): Likewise.
7806 (x86_linux_dr_get_status): Likewise.
7807 (x86_linux_prepare_to_resume): Likewise.
7808
5dfe6ca8
GB
78092015-03-24 Gary Benson <gbenson@redhat.com>
7810
7811 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
7812 Use perror_with_name. Pass string through gettext.
7813 (x86_linux_dr_set): Likewise.
7814
d33472ad
GB
78152015-03-24 Gary Benson <gbenson@redhat.com>
7816
7817 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
7818 (x86_linux_dr_set_addr): ...this.
7819 (x86_dr_low_get_addr): Rename to...
7820 (x86_linux_dr_get_addr): ...this.
7821 (x86_dr_low_set_control): Rename to...
7822 (x86_linux_dr_set_control): ...this.
7823 (x86_dr_low_get_control): Rename to...
7824 (x86_linux_dr_get_control): ...this.
7825 (x86_dr_low_get_status): Rename to...
7826 (x86_linux_dr_get_status): ...this.
7827 (x86_dr_low): Update with new function names.
7828
4b134ca1
GB
78292015-03-24 Gary Benson <gbenson@redhat.com>
7830
7831 * Makefile.in (x86-linux.o): New rule.
7832 * configure.srv: Add x86-linux.o to relevant targets.
7833 * linux-low.c (lwp_set_arch_private_info): New function.
7834 (lwp_arch_private_info): Likewise.
7835 * linux-x86-low.c: Include nat/x86-linux.h.
7836 (arch_lwp_info): Removed structure.
7837 (update_debug_registers_callback):
7838 Use lwp_set_debug_registers_changed.
7839 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7840 and lwp_set_debug_registers_changed.
7841 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7842
34c703da
GB
78432015-03-24 Gary Benson <gbenson@redhat.com>
7844
7845 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
7846 * linux-arm-low.c (arm_new_thread): Likewise.
7847 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
7848 * linux-mips-low.c (mips_linux_new_thread): Likewise.
7849 * linux-x86-low.c (x86_linux_new_thread): Likewise.
7850 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
7851
cff068da
GB
78522015-03-24 Gary Benson <gbenson@redhat.com>
7853
7854 * linux-low.c (ptid_of_lwp): New function.
7855 (lwp_is_stopped): Likewise.
7856 (lwp_stop_reason): Likewise.
7857 * linux-x86-low.c (update_debug_registers_callback):
7858 Use lwp_is_stopped.
7859 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7860 lwp_stop_reason.
7861
b2f7c7e8
GB
78622015-03-24 Gary Benson <gbenson@redhat.com>
7863
7864 * linux-low.h (linux_stop_lwp): Remove declaration.
7865
6d4ee8c6
GB
78662015-03-24 Gary Benson <gbenson@redhat.com>
7867
7868 * linux-low.h: Include nat/linux-nat.h.
7869 * linux-low.c (iterate_over_lwps_args): New structure.
7870 (iterate_over_lwps_filter): New function.
7871 (iterate_over_lwps): Likewise.
7872 * linux-x86-low.c (update_debug_registers_callback):
7873 Update signature to what iterate_over_lwps expects.
7874 Remove PID check that iterate_over_lwps now performs.
7875 (x86_dr_low_set_addr): Use iterate_over_lwps.
7876 (x86_dr_low_set_control): Likewise.
7877
70a0bb6b
GB
78782015-03-24 Gary Benson <gbenson@redhat.com>
7879
7880 * linux-x86-low.c (x86_debug_reg_state): New function.
7881 (x86_linux_prepare_to_resume): Use the above.
7882
7b669087
GB
78832015-03-24 Gary Benson <gbenson@redhat.com>
7884
7885 * linux-low.c (current_lwp_ptid): New function.
7886 * linux-x86-low.c: Include nat/linux-nat.h.
7887 (x86_dr_low_get_addr): Use current_lwp_ptid.
7888 (x86_dr_low_get_control): Likewise.
7889 (x86_dr_low_get_status): Likewise.
7890
eef49a3d
PA
78912015-03-20 Pedro Alves <palves@redhat.com>
7892
7893 * tracepoint.c (cmd_qtstatus): Make "str" const.
7894
b2333d22
PA
78952015-03-20 Pedro Alves <palves@redhat.com>
7896
7897 * server.c (handle_general_set): Make "req_str" const.
7898
23f238d3
PA
78992015-03-19 Pedro Alves <palves@redhat.com>
7900
7901 * linux-low.c (linux_resume_one_lwp): Rename to ...
7902 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7903 instead call perror_with_name.
7904 (check_ptrace_stopped_lwp_gone): New function.
7905 (linux_resume_one_lwp): Reimplement as wrapper around
7906 linux_resume_one_lwp_throw that swallows errors if the LWP is
7907 gone.
7908
91baf43f
PA
79092015-03-19 Pedro Alves <palves@redhat.com>
7910
7911 * linux-low.c (count_events_callback, select_event_lwp_callback):
7912 No longer check whether the thread has resume_stop as last resume
7913 kind.
7914
8bf3b159
PA
79152015-03-19 Pedro Alves <palves@redhat.com>
7916
7917 * linux-low.c (count_events_callback, select_event_lwp_callback):
7918 Use the lwp's status_pending_p field, not the thread's.
7919
b90fc188
PA
79202015-03-19 Pedro Alves <palves@redhat.com>
7921
7922 * linux-low.c (select_event_lwp_callback): Update comments to
7923 no longer mention SIGTRAP.
7924
464b0089
GB
79252015-03-18 Gary Benson <gbenson@redhat.com>
7926
7927 * server.c (handle_query): Do not report vFile:fstat as supported.
7928
aa9e327f
GB
79292015-03-11 Gary Benson <gbenson@redhat.com>
7930
7931 * hostio.c (sys/types.h): New include.
7932 (sys/stat.h): Likewise.
7933 (common-remote-fileio.h): Likewise.
7934 (handle_fstat): New function.
7935 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 7936
791c0056
GB
79372015-03-11 Gary Benson <gbenson@redhat.com>
7938
7939 * configure.ac (AC_CHECK_MEMBERS): Add checks for
7940 struct stat.st_blocks and struct stat.st_blksize.
7941 * configure: Regenerate.
7942 * config.in: Likewise.
7943 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7944 (OBS): Add common-remote-fileio.o.
7945 (common-remote-fileio.o): New rule.
7946
9a9df970
PA
79472015-03-09 Pedro Alves <palves@redhat.com>
7948
7949 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
7950 'struct sockaddr' pointer in 'accept' call.
7951
9eb1356e
PA
79522015-03-09 Pedro Alves <palves@redhat.com>
7953
7954 Revert:
7955 2015-03-07 Pedro Alves <palves@redhat.com>
7956 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7957 or <winsock2.h> here. Instead include "gdb_socket.h".
7958 (remote_open): Use union gdb_sockaddr_u.
7959 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7960 or <winsock2.h> here. Instead include "gdb_socket.h".
7961 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7962 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7963 or <sys/un.h>.
7964 (init_named_socket, gdb_agent_helper_thread): Use union
7965 gdb_sockaddr_u.
7966
aac331e4
PA
79672015-03-07 Pedro Alves <palves@redhat.com>
7968
7969 * configure.ac (build_warnings): Move
7970 -Wdeclaration-after-statement to the C-specific set.
7971 * configure: Regenerate.
7972
366c75fc
PA
79732015-03-07 Pedro Alves <palves@redhat.com>
7974
7975 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7976 or <winsock2.h> here. Instead include "gdb_socket.h".
7977 (remote_open): Use union gdb_sockaddr_u.
7978 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7979 or <winsock2.h> here. Instead include "gdb_socket.h".
7980 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7981 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7982 or <sys/un.h>.
7983 (init_named_socket, gdb_agent_helper_thread): Use union
7984 gdb_sockaddr_u.
7985
492d29ea
PA
79862015-03-07 Pedro Alves <palves@redhat.com>
7987
7988 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
7989 instead.
7990
60a191ed
YQ
79912015-03-06 Yao Qi <yao.qi@linaro.org>
7992
7993 * linux-aarch64-low.c (aarch64_insert_point): Use
7994 show_debug_regs as a boolean.
7995 (aarch64_remove_point): Likewise.
7996
f5771b1d
PA
79972015-03-05 Pedro Alves <palves@redhat.com>
7998
7999 * lynx-low.c (lynx_target_ops): Install NULL hooks for
8000 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
8001 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
8002 * nto-low.c (nto_target_ops): Likewise.
8003 * spu-low.c (spu_target_ops): Likewise.
8004 * win32-low.c (win32_target_ops): Likewise.
8005
3e572f71
PA
80062015-03-04 Pedro Alves <palves@redhat.com>
8007
72f4393d 8008 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
8009 Decide whether a breakpoint triggered based on the SIGTRAP's
8010 siginfo.si_code.
72f4393d
L
8011 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8012 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
8013 (linux_low_filter_event): Check for breakpoints before checking
8014 watchpoints.
8015 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
8016 siginfo.si_code.
72f4393d
L
8017 (linux_stopped_by_sw_breakpoint)
8018 (linux_supports_stopped_by_sw_breakpoint)
8019 (linux_stopped_by_hw_breakpoint)
8020 (linux_supports_stopped_by_hw_breakpoint): New functions.
8021 (linux_target_ops): Install new target methods.
3e572f71 8022
1ec68e26
PA
80232015-03-04 Pedro Alves <palves@redhat.com>
8024
8025 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
8026 * server.c (swbreak_feature, hwbreak_feature): New globals.
8027 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
8028 (captured_main): Clear swbreak_feature and hwbreak_feature.
8029 * server.h (swbreak_feature, hwbreak_feature): Declare.
8030 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
8031 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
8032 supports_stopped_by_hw_breakpoint>: New fields.
8033 (target_supports_stopped_by_sw_breakpoint)
8034 (target_stopped_by_sw_breakpoint)
8035 (target_supports_stopped_by_hw_breakpoint)
8036 (target_stopped_by_hw_breakpoint): Declare.
8037
15c66dd6
PA
80382015-03-04 Pedro Alves <palves@redhat.com>
8039
8040 enum lwp_stop_reason -> enum target_stop_reason
8041 * linux-low.c (check_stopped_by_breakpoint): Adjust.
8042 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
8043 (linux_wait_1, stuck_in_jump_pad_callback)
8044 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
8045 (linux_stopped_by_watchpoint):
8046 * linux-low.h (enum lwp_stop_reason): Delete.
8047 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8048 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8049
98fc70d6
YQ
80502015-03-04 Yao Qi <yao.qi@linaro.org>
8051
8052 * Makefile.in (SFILES): Add linux-aarch64-low.c.
8053
dd2ac174
GB
80542015-03-03 Gary Benson <gbenson@redhat.com>
8055
8056 * hostio.c (handle_vFile): Fix prefix lengths.
8057
d68e53f4
MM
80582015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8059
8060 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
8061 ptr_bits.
8062
bf2d68ab
AA
80632015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8064
8065 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
8066 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
8067 (clean): Add "rm -f" for above C files.
8068 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
8069 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
8070 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
8071 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
8072 * linux-s390-low.c (HWCAP_S390_VX): New macro.
8073 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
8074 (init_registers_s390x_vx_linux64)
8075 (init_registers_s390x_tevx_linux64)
8076 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8077 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
8078 declarations.
8079 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
8080 (s390_store_vxrs_high): New functions.
8081 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
8082 NT_S390_VXRS_HIGH.
8083 (s390_arch_setup): Add logic for selecting one of the new target
8084 descriptions. Activate the new vector regsets if applicable.
8085 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
8086 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
8087 and init_registers_s390x_tevx_linux64.
8088
c966a859
PA
80892015-03-01 Pedro Alves <palves@redhat.com>
8090
8091 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
8092 parameter.
8093
4180215b
PA
80942015-02-27 Pedro Alves <palves@redhat.com>
8095
8096 * linux-x86-low.c (u_debugreg_offset): New function.
8097 (x86_linux_dr_get, x86_linux_dr_set): Use it.
8098
749bab01
PA
80992015-02-27 Pedro Alves <palves@redhat.com>
8100
8101 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
8102 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
8103 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8104 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8105 (ps_lsetfpregs, ps_getpid)
8106 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
8107 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
8108 (ps_lsetxregs, ps_plog): Declare.
8109
3c14e5a3
PA
81102015-02-27 Pedro Alves <palves@redhat.com>
8111
8112 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
8113 IP_AGENT_EXPORT_FUNC.
8114 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
8115 IP_AGENT_EXPORT_FUNC.
8116 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
8117 (IP_AGENT_EXPORT): Delete.
8118 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8119 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8120 (gdb_trampoline_buffer_error, collecting, gdb_collect)
8121 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
8122 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
8123 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
8124 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
8125 (traceframe_read_count, traceframe_write_count)
8126 (traceframes_created, trace_state_variables, get_raw_reg)
8127 (get_trace_state_variable_value, set_trace_state_variable_value)
8128 (ust_loaded, helper_thread_id, cmd_buf): Use
8129 IPA_SYM_EXPORTED_NAME.
8130 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
8131 (tracepoints) Use IP_AGENT_EXPORT_VAR.
8132 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
8133 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8134 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
8135 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
8136 EXTERN_C_PUSH/EXTERN_C_POP.
8137 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
8138 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
8139 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8140 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
8141 (traceframe_write_count, traceframe_read_count)
8142 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
8143 (about_to_request_buffer_space, get_trace_state_variable_value)
8144 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
8145 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
8146 EXTERN_C_PUSH/EXTERN_C_POP.
8147 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
8148 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
8149 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
8150 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
8151 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
8152 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
8153 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
8154 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
8155 Define.
8156 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
8157 (IP_AGENT_EXPORT_VAR_DECL): Define.
8158 (tracing): Declare.
8159 (gdb_agent_get_raw_reg): Declare.
8160
fe978cb0
PA
81612015-02-27 Tom Tromey <tromey@redhat.com>
8162 Pedro Alves <palves@redhat.com>
8163
8164 Rename symbols whose names are reserved C++ keywords throughout.
8165
3bc3d82a
PA
81662015-02-27 Pedro Alves <palves@redhat.com>
8167
8168 * Makefile.in (COMPILER): New, get it from autoconf.
8169 (CXX): Get from autoconf instead.
8170 (COMPILE.pre): Use COMPILER.
8171 (CC-LD): Rename to ...
8172 (CC_LD): ... this. Use COMPILER.
8173 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
8174 (CXX_FOR_TARGET): Default to g++ instead of gcc.
8175 * acinclude.m4: Include build-with-cxx.m4.
8176 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
8177 Disable -Werror by default if building in C++ mode.
8178 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
8179 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
8180 the C++ compiler. Save/restore CXXFLAGS too.
8181 * configure: Regenerate.
8182
07697489
PA
81832015-02-27 Pedro Alves <palves@redhat.com>
8184
8185 * acinclude.m4: Include libiberty.m4.
8186 * configure.ac: Call libiberty_INIT.
8187 * config.in, configure: Regenerate.
8188
9beb7c4e
PA
81892015-02-26 Pedro Alves <palves@redhat.com>
8190
8191 * linux-low.c (linux_wait_1): When incrementing the PC past a
8192 program breakpoint always use the_low_target.breakpoint_len as
8193 increment, rather than the maximum between that and
8194 the_low_target.decr_pc_after_break.
8195
8090aef2
PA
81962015-02-23 Pedro Alves <palves@redhat.com>
8197
8198 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
8199 thread was doing a step-over; always adjust the PC if
8200 we stepped over a permanent breakpoint.
8201 (linux_wait_1): If we stepped over breakpoint that was on top of a
8202 permanent breakpoint, manually advance the PC past it.
8203
bc9540e8
PA
82042015-02-23 Pedro Alves <palves@redhat.com>
8205
8206 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
8207 modes.
8208 (x86_fill_gregset, x86_store_gregset): Use it when handling
8209 $orig_eax.
8210
2db9a427
PA
82112015-02-20 Pedro Alves <palves@redhat.com>
8212
8213 * thread-db.c: Include "nat/linux-procfs.h".
8214 (thread_db_init): Skip listing new threads if the kernel supports
8215 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
8216
afa8d396
PA
82172015-02-20 Pedro Alves <palves@redhat.com>
8218
8219 * linux-low.c (status_pending_p_callback): Use ptid_match.
8220
c9587f88
AT
82212015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
8222
8223 PR breakpoints/16812
8224 * linux-low.c (wstatus_maybe_breakpoint): Remove.
8225 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
8226 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
8227
b05ec7a5
AT
82282015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8229
8230 PR breakpoints/15956
8231 * tracepoint.c (cmd_qtinit): Add check for current_thread.
8232
d33501a5
MM
82332015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8234
8235 * linux-low.c (linux_low_btrace_conf): Print size.
8236 * server.c (handle_btrace_conf_general_set): New.
8237 (hanle_general_set): Call handle_btrace_conf_general_set.
8238 (handle_query): Report Qbtrace-conf:bts:size as supported.
8239
f4abbc16
MM
82402015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8241
8242 * linux-low.c (linux_low_enable_btrace): Update parameters.
8243 (linux_low_btrace_conf): New.
8244 (linux_target_ops)<to_btrace_conf>: Initialize.
8245 * server.c (current_btrace_conf): New.
8246 (handle_btrace_enable): Rename to ...
8247 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
8248 to target_enable_btrace. Update comment. Update users.
8249 (handle_qxfer_btrace_conf): New.
8250 (qxfer_packets): Add btrace-conf entry.
8251 (handle_query): Report qXfer:btrace-conf:read as supported packet.
8252 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
8253 (target_ops)<read_btrace_conf>: New.
8254 (target_enable_btrace): Update parameters.
8255 (target_read_btrace_conf): New.
8256
043c3577
MM
82572015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8258
8259 * server.c (handle_btrace_general_set): Remove call to
8260 target_supports_btrace.
8261 (supported_btrace_packets): New.
8262 (handle_query): Call supported_btrace_packets.
8263 * target.h: include btrace-common.h.
8264 (btrace_target_info): Removed.
8265 (supports_btrace, target_supports_btrace): Update parameters.
8266
734b0e4b
MM
82672015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8268
8269 * Makefile.in (SFILES): Add common/btrace-common.c.
8270 (OBS): Add common/btrace-common.o.
8271 (btrace-common.o): Add build rules.
8272 * linux-low: Include btrace-common.h.
8273 (linux_low_read_btrace): Use struct btrace_data. Call
8274 btrace_data_init and btrace_data_fini.
8275
d6c146e9
PA
82762015-02-06 Pedro Alves <palves@redhat.com>
8277
8278 * thread-db.c (find_new_threads_callback): Add debug output.
8279
20ba1ce6
PA
82802015-02-04 Pedro Alves <palves@redhat.com>
8281
8282 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
8283 (resume_stopped_resumed_lwps): New function.
8284 (linux_wait_for_event_filtered): Use it.
8285
8cc73a39
SDJ
82862015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8287
8288 * Makefile.in (SFILES): Add linux-personality.c.
8289 (linux-personality.o): New rule.
8290 * configure.srv (srv_linux_obj): Add linux-personality.o to the
8291 list of objects to be built.
8292 * linux-low.c: Include nat/linux-personality.h.
8293 (linux_create_inferior): Remove code to disable address space
8294 randomization (moved to ../nat/linux-personality.c). Create
8295 cleanup to disable address space randomization.
8296
fb23d554
SDJ
82972015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8298
8299 * Makefile.in (posix-strerror.o): New rule.
8300 (mingw-strerror.o): Likewise.
8301 * configure: Regenerated.
8302 * configure.ac: Source file ../common/common.host. Initialize new
8303 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
8304
cdf43629
YQ
83052015-01-14 Yao Qi <yao@codesourcery.com>
8306
8307 * Makefile.in (SFILES): Add nat/ppc-linux.c.
8308 (ppc-linux.o): New rule.
8309 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
8310 * configure.ac: AC_CHECK_FUNCS(getauxval).
8311 * config.in: Re-generated.
8312 * configure: Re-generated.
8313 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
8314 ppc64_64bit_inferior_p
8315
514c5338
YQ
83162015-01-14 Yao Qi <yao@codesourcery.com>
8317
8318 * linux-ppc-low.c: Include "nat/ppc-linux.h".
8319 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
8320 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
8321 (PT_ORIG_R3, PT_TRAP): Likewise.
8322 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8323 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8324 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8325
3368c1e5
JB
83262015-01-10 Joel Brobecker <brobecker@adacore.com>
8327
8328 * i387-fp.c (i387_cache_to_xsave): In look over
8329 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
8330 zmmh_low_space field by use of zmmh_high_space.
8331
582511be
PA
83322015-01-09 Pedro Alves <palves@redhat.com>
8333
8334 * linux-low.c (step_over_bkpt): Move higher up in the file.
8335 (handle_extended_wait): Don't store the stop_pc here.
8336 (get_stop_pc): Adjust comments and rename to ...
8337 (check_stopped_by_breakpoint): ... this. Record whether the LWP
8338 stopped for a software breakpoint or hardware breakpoint.
8339 (thread_still_has_status_pending_p): New function.
8340 (status_pending_p_callback): Use
8341 thread_still_has_status_pending_p. If the event is no longer
8342 interesting, resume the LWP.
8343 (handle_tracepoints): Add assert.
8344 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
8345 (wstatus_maybe_breakpoint): New function.
8346 (cancel_breakpoint): Delete function.
8347 (check_stopped_by_watchpoint): New function, factored out from
8348 linux_low_filter_event.
8349 (lp_status_maybe_breakpoint): Delete function.
8350 (linux_low_filter_event): Remove filter_ptid argument.
8351 Leave thread group exits pending here. Store the LWP's stop PC.
8352 Always leave events pending.
8353 (linux_wait_for_event_filtered): Pull all events out of the
8354 kernel, and leave them all pending.
8355 (count_events_callback, select_event_lwp_callback): Consider all
8356 events.
8357 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
8358 (select_event_lwp): Only give preference to the stepping LWP in
8359 all-stop mode. Adjust comments.
8360 (ignore_event): New function.
8361 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
8362 references to cancel_breakpoints. Adjust to renames. Also give
8363 equal priority to all LWPs that have had events in non-stop mode.
8364 If reporting a software breakpoint event, unadjust the LWP's PC.
8365 (linux_wait): If linux_wait_1 returned an ignored event, retry.
8366 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
8367 Adjust.
8368 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
8369 (resume_status_pending_p): Use thread_still_has_status_pending_p.
8370 (linux_stopped_by_watchpoint): Adjust.
8371 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
8372 * linux-low.h (enum lwp_stop_reason): New.
8373 (struct lwp_info) <stop_pc>: Adjust comment.
8374 <stopped_by_watchpoint>: Delete field.
8375 <stop_reason>: New field.
8376 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8377 * mem-break.c (software_breakpoint_inserted_here)
8378 (hardware_breakpoint_inserted_here): New function.
8379 * mem-break.h (software_breakpoint_inserted_here)
8380 (hardware_breakpoint_inserted_here): Declare.
8381 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
8382 (cancel_breakpoints): Delete.
8383 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
8384 (upload_fast_traceframes): Remove references to
8385 cancel_breakpoints.
8386
a33e3959
PA
83872015-01-09 Pedro Alves <palves@redhat.com>
8388
8389 * thread-db.c (find_new_threads_callback): Ignore thread if the
8390 kernel thread ID is -1.
8391
8784d563
PA
83922015-01-09 Pedro Alves <palves@redhat.com>
8393
8394 * linux-low.c (linux_attach_fail_reason_string): Move to
8395 nat/linux-ptrace.c, and rename.
8396 (linux_attach_lwp): Update comment.
8397 (attach_proc_task_lwp_callback): New function.
8398 (linux_attach): Adjust to rename and use
8399 linux_proc_attach_tgid_threads.
8400 (linux_attach_fail_reason_string): Delete declaration.
8401
76f2b779
JB
84022015-01-01 Joel Brobecker <brobecker@adacore.com>
8403
8404 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
8405 * server.c (gdbserver_version): Likewise.
8406
fafcc06a
SDJ
84072014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
8408
8409 * remote-utils.c: Include ctype.h.
8410 (input_interrupt): Explicitly handle the case when the char
8411 received is the NUL byte. Improve the printing of non-ASCII
8412 characters.
8413
beed38b8
JB
84142014-12-16 Joel Brobecker <brobecker@adacore.com>
8415
8416 * linux-low.c (linux_low_filter_event): Update call to
8417 linux_enable_event_reporting following the addition of
8418 a new parameter to that function.
8419
bf330350
CU
84202014-12-16 Catalin Udma <catalin.udma@freescale.com>
8421
8422 PR server/17457
8423 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
8424 (AARCH64_FPCR_REGNO): Likewise.
8425 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
8426 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
8427 (aarch64_store_fpregset): Likewise.
8428
5227d625
JB
84292014-12-15 Joel Brobecker <brobecker@adacore.com>
8430
8431 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
8432 Remove FIXME comment about assumption about N.
8433
f93b65a0
JB
84342014-12-13 Joel Brobecker <brobecker@adacore.com>
8435
8436 * configure.ac: If large-file support is disabled in GDBserver,
8437 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
8438 * configure: Regenerate.
8439
e5a9158d
AA
84402014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8441
8442 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
8443 warning upon ENODATA from ptrace.
8444 * linux-s390-low.c (s390_store_tdb): New.
8445 (s390_regsets): Add regset for NT_S390_TDB.
8446
feea5f36
AA
84472014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8448
8449 * linux-low.c (regsets_store_inferior_registers): Skip regsets
8450 without a fill_function.
8451 * linux-s390-low.c (s390_fill_last_break): Remove.
8452 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
8453 (s390_arch_setup): Use regset's size instead of fill_function for
8454 loop end condition.
8455
098dbe61
AA
84562014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8457
8458 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
8459 the regset's store function when ptrace returned an error.
8460 * regcache.c (get_thread_regcache): Invalidate register cache
8461 before fetching inferior's registers.
8462
28eef672
AA
84632014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8464
8465 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
8466 while-loop as for-loop.
8467 (regsets_store_inferior_registers): Likewise.
8468
bdca27a2
YQ
84692014-11-28 Yao Qi <yao@codesourcery.com>
8470
8471 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
8472 * config.in, configure: Re-generate.
8473 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
8474 is defined.
8475
9c232dda
YQ
84762014-11-21 Yao Qi <yao@codesourcery.com>
8477
8478 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
8479 (AC_CHECK_HEADERS): Remove malloc.h.
8480 * configure: Re-generated.
8481 * config.in: Re-generated.
8482 * server.h: Don't include alloca.h and malloc.h.
8483 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
8484 Don't include malloc.h.
8485
43968415
JB
84862014-11-17 Joel Brobecker <brobecker@adacore.com>
8487
8488 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
8489 corresponding ERRNO check in same block.
8490
40e91bc7
PA
84912014-11-12 Pedro Alves <palves@redhat.com>
8492
8493 * server.c (cont_thread): Update comment.
8494 (start_inferior, attach_inferior): No longer clear cont_thread.
8495 (handle_v_cont): No longer set cont_thread.
8496 (captured_main): Clear cont_thread each time a GDB connects.
8497
c2c118cf
PA
84982014-11-12 Pedro Alves <palves@redhat.com>
8499
8500 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
8501 thread, and don't resume all threads if the Hc thread has exited.
8502
78708b7c
PA
85032014-11-12 Pedro Alves <palves@redhat.com>
8504
8505 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
8506 the process group instead of to a specific LWP.
8507
a2abc7de
PA
85082014-10-15 Pedro Alves <palves@redhat.com>
8509
8510 PR server/17487
8511 * win32-arm-low.c (arm_set_thread_context): Remove current_event
8512 parameter.
8513 (arm_set_thread_context): Delete.
8514 (the_low_target): Adjust.
8515 * win32-i386-low.c (debug_registers_changed)
8516 (debug_registers_used): Delete.
8517 (update_debug_registers_callback): New function.
8518 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
8519 needing to update their debug registers.
8520 (win32_get_current_dr): New function.
8521 (x86_dr_low_get_addr, x86_dr_low_get_control)
8522 (x86_dr_low_get_status): Fetch the debug register from the thread
8523 record's context.
8524 (i386_initial_stuff): Adjust.
8525 (i386_get_thread_context): Remove current_event parameter. Don't
8526 clear debug_registers_changed nor copy DR values to
8527 debug_reg_state.
8528 (i386_set_thread_context): Delete.
8529 (i386_prepare_to_resume): New function.
8530 (i386_thread_added): Mark the thread as needing to update irs
8531 debug registers.
8532 (the_low_target): Remove i386_set_thread_context and install
8533 i386_prepare_to_resume.
8534 * win32-low.c (win32_get_thread_context): Adjust.
8535 (win32_set_thread_context): Use SetThreadContext
8536 directly.
8537 (win32_prepare_to_resume): New function.
8538 (win32_require_context): New function, factored out from ...
8539 (thread_rec): ... this.
8540 (continue_one_thread): Call win32_prepare_to_resume on each thread
8541 we're about to continue.
8542 (win32_resume): Call win32_prepare_to_resume on the event thread.
8543 * win32-low.h (struct win32_thread_info)
8544 <debug_registers_changed>: New field.
8545 (struct win32_target_ops): Change prototype of set_thread_context,
8546 delete set_thread_context and add prepare_to_resume.
8547 (win32_require_context): New declaration.
8548
a442d071
GB
85492014-10-08 Gary Benson <gbenson@redhat.com>
8550
8551 * server.h: Do not include common-exceptions.h.
8552
6f1947e8
GB
85532014-10-08 Gary Benson <gbenson@redhat.com>
8554
8555 * server.h: Do not include cleanups.h.
8556
63b434a4
JH
85572014-09-30 James Hogan <james.hogan@imgtec.com>
8558
8559 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
8560 mips64-dsp-linux.c.
8561
c4d9ceb6
YQ
85622014-09-23 Yao Qi <yao@codesourcery.com>
8563
8564 * linux-low.c (lp_status_maybe_breakpoint): New function.
8565 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
8566 (count_events_callback): Likewise.
8567 (select_event_lwp_callback): Likewise.
8568 (cancel_breakpoints_callback): Likewise.
8569
89a5711c
DB
85702014-09-19 Don Breazeal <donb@codesourcery.com>
8571
8572 * linux-low.c (handle_extended_wait): Call
8573 linux_ptrace_get_extended_event.
8574 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
8575 linux_is_extended_waitstatus.
8576
bffc0964
JB
85772014-09-16 Joel Brobecker <brobecker@adacore.com>
8578
8579 * Makefile.in (CPPFLAGS): Define.
8580 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
8581 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
8582
0bfdf32f
GB
85832014-09-16 Gary Benson <gbenson@redhat.com>
8584
8585 * inferiors.h (current_inferior): Renamed as...
8586 (current_thread): New variable. All uses updated.
8587 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
8588 (maybe_move_out_of_jump_pad): Likewise.
8589 (cancel_breakpoint): Likewise.
8590 (linux_low_filter_event): Likewise.
8591 (wait_for_sigstop): Likewise.
8592 (linux_resume_one_lwp): Likewise.
8593 (need_step_over_p): Likewise.
8594 (start_step_over): Likewise.
8595 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
8596 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
8597 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
8598 and save_inferior as saved_thread.
8599 * regcache.c (get_thread_regcache): Renamed saved_inferior as
8600 saved_thread.
8601 (regcache_invalidate_thread): Likewise.
8602 * remote-utils.c (prepare_resume_reply): Likewise.
8603 * thread-db.c (thread_db_get_tls_address): Likewise.
8604 (disable_thread_event_reporting): Likewise.
8605 (remove_thread_event_breakpoints): Likewise.
8606 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
8607 as saved_thread.
8608 * target.h (set_desired_inferior): Renamed as...
8609 (set_desired_thread): New declaration. All uses updated.
8610 * server.c (myresume): Updated comment to reference thread instead
8611 of inferior.
8612 (handle_serial_event): Likewise.
8613 (handle_target_event): Likewise.
8614
361c8ade
GB
86152014-09-12 Tom Tromey <tromey@redhat.com>
8616 Gary Benson <gbenson@redhat.com>
8617
8618 * regcache.h: Include common-regcache.h.
8619 (regcache_read_pc): Don't declare.
8620 * regcache.c (get_thread_regcache_for_ptid): New function.
8621
bd9269f7
GB
86222014-09-11 Tom Tromey <tromey@redhat.com>
8623 Gary Benson <gbenson@redhat.com>
8624
8625 * symbol.c: New file.
8626 * Makefile.in (SFILES): Add symbol.c.
8627 (OBS): Add symbol.o.
8628
f8c1d06b
GB
86292014-09-11 Gary Benson <gbenson@redhat.com>
8630
8631 * target.c (target_stop_ptid, target_continue_ptid): New
8632 functions.
8633
721ec300
GB
86342014-09-11 Tom Tromey <tromey@redhat.com>
8635 Gary Benson <gbenson@redhat.com>
8636
8637 * target.h: Include target/target.h.
8638 * target.c (target_read_memory, target_read_uint32)
8639 (target_write_memory): New functions.
8640
c5e92cca
GB
86412014-09-11 Gary Benson <gbenson@redhat.com>
8642
8643 * server.h (debug_hw_points): Don't declare.
8644 * server.c (debug_hw_points): Don't define. Replace all uses
8645 with show_debug_regs.
8646 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
8647 all uses with show_debug_regs.
8648
2e4bb98a
EBM
86492014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8650
8651 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
8652 endianness into account.
8653 (ppc_supply_ptrace_register): Likewise.
8654
ac740bc7
JH
86552014-09-03 James Hogan <james.hogan@imgtec.com>
8656
8657 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
8658 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
8659
97ea6506
GB
86602014-09-03 Gary Benson <gbenson@redhat.com>
8661
8662 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
8663 ALL_DEBUG_ADDRESS_REGISTERS.
8664
df7e5265
GB
86652014-09-02 Gary Benson <gbenson@redhat.com>
8666
8667 * i386-low.h: Renamed as...
8668 * x86-low.h: New file. All type, function and variable name
8669 prefixes changed from "i386_" to "x86_". All references updated.
8670 * i386-low.c: Renamed as...
8671 * x86-low.c: New file. All type, function and variable name
8672 prefixes changed from "i386_" to "x86_". All references updated.
8673
ed859da7
GB
86742014-09-02 Gary Benson <gbenson@redhat.com>
8675
8676 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
8677 (x86_linux_new_thread): Likewise.
8678
860789c7
GB
86792014-08-29 Gary Benson <gbenson@redhat.com>
8680
8681 * server.h (setjmp.h): Do not include.
8682 (toplevel): Do not declare.
8683 (common-exceptions.h): Include.
8684 (cleanups.h): Likewise.
8685 * server.c (toplevel): Do not define.
8686 (exit_code): New static global.
8687 (detach_or_kill_for_exit_cleanup): New function.
8688 (main): New function. Original main renamed to...
8689 (captured_main): New function.
8690 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
8691
ff55e1b5
GB
86922014-08-29 Gary Benson <gbenson@redhat.com>
8693
8694 * Makefile.in (SFILES): Add common/common-exceptions.c.
8695 (OBS): Add common-exceptions.o.
8696 (common-exceptions.o): New rule.
8697 * utils.c (prepare_to_throw_exception): New function.
8698
e9bcb658
GB
86992014-08-29 Gary Benson <gbenson@redhat.com>
8700
8701 * config.in: Regenerate.
8702 * configure: Likewise.
8703
e3180625
GB
87042014-08-29 Gary Benson <gbenson@redhat.com>
8705
8706 * Makefile.in (SFILES): Add common/cleanups.c.
8707 (OBS): cleanups.o.
8708 (cleanups.o): New rule.
8709
e3d6ba5d
GB
87102014-08-29 Gary Benson <gbenson@redhat.com>
8711
8712 * utils.c (internal_vwarning): New function.
8713
7096e886
GB
87142014-08-28 Gary Benson <gbenson@redhat.com>
8715
8716 * utils.h (fatal): Remove declaration.
8717 * utils.c (fatal): Remove function.
8718
14ce3192
GB
87192014-08-28 Gary Benson <gbenson@redhat.com>
8720
8721 * tracepoint.c (gdb_agent_init): Replace fatal with
8722 perror_with_name.
8723 (initialize_tracepoint): Likewise.
8724
50278d59
GB
87252014-08-28 Gary Benson <gbenson@redhat.com>
8726
8727 * remote-utils.c (remote_prepare): Replace fatal with error.
8728
aa96c426
GB
87292014-08-28 Gary Benson <gbenson@redhat.com>
8730
8731 * linux-low.c (linux_async): Replace fatal with warning.
8732 Tidy up and return.
8733 (linux_start_non_stop): Return -1 if linux_async failed.
8734
f7160e97
GB
87352014-08-28 Gary Benson <gbenson@redhat.com>
8736
8737 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
8738 gdb_assert.
8739 (i386_dr_low_get_addr): Remove vague comment.
8740 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
8741 gdb_assert.
8742
38e08fca
GB
87432014-08-28 Gary Benson <gbenson@redhat.com>
8744
8745 * inferiors.c (get_thread_process): Replace check with gdb_assert.
8746 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
8747 internal_error.
8748 (linux_resume_one_lwp): Likewise.
8749 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
8750 gdb_assert.
8751 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
8752 with internal_error.
8753 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
8754 (init_register_cache): Replace fatal with gdb_assert_not_reached.
8755 (find_register_by_name): Replace fatal with internal_error.
8756 (find_regno): Likewise.
8757 * tdesc.c (init_target_desc): Replace check with gdb_assert.
8758 * thread-db.c (thread_db_create_event): Likewise.
8759 (thread_db_load_search): Likewise.
8760 (try_thread_db_load_1): Likewise.
8761 * tracepoint.c (get_jump_space_head): Replace fatal with
8762 internal_error.
8763 (claim_trampoline_space): Likewise.
8764 (have_fast_tracepoint_trampoline_buffer): Likewise.
8765 (cmd_qtstart): Likewise.
8766 (stop_tracing): Likewise.
8767 (fast_tracepoint_collecting): Likewise.
8768 (target_malloc): Likewise.
8769 (download_tracepoint): Likewise.
8770 (download_trace_state_variables): Replace check with gdb_assert.
8771 (upload_fast_traceframes): Replace fatal with internal_error.
8772
34abf635
GB
87732014-08-19 Tom Tromey <tromey@redhat.com>
8774 Gary Benson <gbenson@redhat.com>
8775
8776 * Makefile.in (SFILES): Add common/common-debug.c.
8777 (OBS): Add common-debug.o.
8778 (common-debug.o): New rule.
8779 * debug.h (debug_printf): Don't declare.
8780 * debug.c (debug_printf): Renamed and rewritten as...
8781 (debug_vprintf): New function.
8782
f6e94d78
GB
87832014-08-19 Gary Benson <gbenson@redhat.com>
8784
8785 * utils.h: Do not include print-utils.h.
8786
9239eeab
GB
87872014-08-19 Tom Tromey <tromey@redhat.com>
8788 Gary Benson <gbenson@redhat.com>
8789
8790 * server.h: Add static assertion.
8791 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
8792
ef87c8bb
GB
87932014-08-19 Tom Tromey <tromey@redhat.com>
8794 Gary Benson <gbenson@redhat.com>
8795
8796 * Makefile.in (SFILES): Add common/errors.c.
8797 (OBS): Add errors.o.
8798 (IPA_OBS): Add errors-ipa.o.
8799 (errors.o): New rule.
8800 (errors-ipa.o): Likewise.
8801 * utils.h (perror_with_name, error, warning): Don't declare.
8802 * utils.c (warning): Renamed and rewritten as...
8803 (vwarning): New function.
8804 (error): Renamed and rewritten as...
8805 (verror): New function.
8806 (internal_error): Renamed and rewritten as...
8807 (internal_verror): New function.
8808
bb974a24
GB
88092014-08-07 Gary Benson <gbenson@redhat.com>
8810
8811 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
8812 * configure: Regenerate.
8813 * config.in: Likewise.
8814 * server.h: Do not include errno.h.
8815 * event-loop.c: Likewise.
8816 * hostio-errno.c: Likewise.
8817 * linux-low.c: Likewise.
8818 * remote-utils.c: Likewise.
8819 * spu-low.c: Likewise.
8820 * utils.c: Likewise.
8821 * gdbreplay.c: Unconditionally include errno.h.
8822
6d3d12eb
GB
88232014-08-07 Gary Benson <gbenson@redhat.com>
8824
8825 * server.h: Do not include string.h.
8826 * event-loop.c: Likewise.
8827 * linux-low.c: Likewise.
8828 * regcache.c: Likewise.
8829 * remote-utils.c: Likewise.
8830 * spu-low.c: Likewise.
8831 * utils.c: Likewise.
8832
dccbb609
GB
88332014-08-07 Gary Benson <gbenson@redhat.com>
8834
8835 * server.h: Do not include gdb_assert.h.
8836
e76df0d0
GB
88372014-08-07 Gary Benson <gbenson@redhat.com>
8838
8839 * server.h: Do not include common-utils.h.
8840
4cb9c816
GB
88412014-08-07 Gary Benson <gbenson@redhat.com>
8842
8843 * server.h: Do not include ptid.h.
8844 * notif.h: Likewise.
8845
3995eeee
GB
88462014-08-07 Gary Benson <gbenson@redhat.com>
8847
8848 * server.h: Do not include gdb_locale.h.
8849
cb9f1a9b
GB
88502014-08-07 Gary Benson <gbenson@redhat.com>
8851
8852 * server.h: Do not include gdb/signals.h.
8853 * win32-low.c: Likewise.
8854
a5fceff8
GB
88552014-08-07 Gary Benson <gbenson@redhat.com>
8856
8857 * server.h: Do not include pathmax.h.
8858
b9391142
GB
88592014-08-07 Gary Benson <gbenson@redhat.com>
8860
8861 * server.h: Do not include libiberty.h.
8862 * linux-bfin-low.c: Likewise.
8863
0e443c87
GB
88642014-08-07 Gary Benson <gbenson@redhat.com>
8865
8866 * server.h: Do not include ansidecl.h.
8867
8ebb3f56
GB
88682014-08-07 Gary Benson <gbenson@redhat.com>
8869
8870 * linux-x86-low.c: Do not include stddef.h.
8871 * lynx-ppc-low.c: Likewise.
8872 * tracepoint.c: Likewise.
8873
8980bdf6
GB
88742014-08-07 Gary Benson <gbenson@redhat.com>
8875
8876 * server.h: Do not include stdarg.h.
8877 * nto-low.c: Likewise.
8878
d7096f71
GB
88792014-08-07 Gary Benson <gbenson@redhat.com>
8880
8881 * server.h: Do not include stdlib.h.
8882 * inferiors.c: Likewise.
8883 * linux-low.c: Likewise.
8884 * regcache.c: Likewise.
8885 * spu-low.c: Likewise.
8886 * tracepoint.c: Likewise.
8887 * utils.c: Likewise.
8888
d02f550d
GB
88892014-08-07 Gary Benson <gbenson@redhat.com>
8890
8891 * server.h: Do not include stdio.h.
8892 * linux-low.c: Likewise.
8893 * remote-utils.c: Likewise.
8894 * spu-low.c: Likewise.
8895 * utils.c: Likewise.
8896 * wincecompat.c: Likewise.
8897
87f6c4e3
GB
88982014-08-06 Gary Benson <gbenson@redhat.com>
8899
8900 * regcache.c (init_register_cache): Move conditionals inside if.
8901
7089dca4
GB
89022014-08-06 Gary Benson <gbenson@redhat.com>
8903
8904 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
8905
462f517e
GB
89062014-07-31 Gary Benson <gbenson@redhat.com>
8907
8908 * ax.h: Do not include server.h.
8909 * gdbthread.h: Likewise.
8910 * lynx-low.h: Likewise.
8911 * notif.h: Likewise.
8912
976411d6
GB
89132014-07-30 Gary Benson <gbenson@redhat.com>
8914
8915 * server.h: Include common-defs.h.
8916 Do not include config.h or build-gnulib-gdbserver/config.h.
8917
d41f6d8e
GB
89182014-07-30 Gary Benson <gbenson@redhat.com>
8919
8920 * hostio-errno.c: Move server.h to top of includes list.
8921 * inferiors.c: Likewise.
8922 * linux-x86-low.c: Likewise.
8923 * notif.c: Include server.h.
8924
314c6a35
TT
89252014-07-24 Tom Tromey <tromey@redhat.com>
8926 Gary Benson <gbenson@redhat.com>
8927
8928 * server.h (CORE_ADDR): Now unsigned.
8929
69ff6be5
PA
89302014-07-16 Pedro Alves <palves@redhat.com>
8931
8932 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
8933
ce9e3fe7
PA
89342014-07-15 Pedro Alves <palves@redhat.com>
8935
8936 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
8937 copy.
8938
e76126e8
PA
89392014-07-11 Pedro Alves <palves@redhat.com>
8940
8941 * linux-low.c (kill_wait_lwp): New function, based on
8942 kill_one_lwp_callback, but use my_waitpid directly.
8943 (kill_one_lwp_callback, linux_kill): Use it.
8944
8e9db26e
PA
89452014-06-23 Pedro Alves <palves@redhat.com>
8946
8947 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
8948 before setting DR0..DR3.
8949
698b3e08
GB
89502014-06-20 Gary Benson <gbenson@redhat.com>
8951
8952 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
8953 * configure: Regenerated.
8954 * config.in: Likewise.
8955
125f8a3d
GB
89562014-06-20 Gary Benson <gbenson@redhat.com>
8957
8958 * Makefile.in (SFILES): Update locations for files moved
8959 from common to nat.
8960 (object file files): Reordered.
8961
42995dbd
GB
89622014-06-20 Gary Benson <gbenson@redhat.com>
8963
8964 * i386-low.h (i386_dr_low_can_set_addr): Removed.
8965 (i386_dr_low_set_addr): Likewise.
8966 (i386_dr_low_get_addr): Likewise.
8967 (i386_dr_low_can_set_control): Likewise.
8968 (i386_dr_low_set_control): Likewise.
8969 (i386_dr_low_get_control): Likewise.
8970 (i386_dr_low_get_status): Likewise.
8971 (i386_get_debug_register_length): Likewise.
8972 * linux-x86-low.c (i386_dr_low_set_addr):
8973 Changed signature. Made static.
8974 (i386_dr_low_get_addr): Likewise.
8975 (i386_dr_low_set_control): Likewise.
8976 (i386_dr_low_get_control): Likewise.
8977 (i386_dr_low_get_status): Likewise.
8978 (i386_dr_low): New global variable.
8979 * win32-i386-low.c (i386_dr_low_set_addr):
8980 Changed signature. Made static.
8981 (i386_dr_low_get_addr): Likewise.
8982 (i386_dr_low_set_control): Likewise.
8983 (i386_dr_low_get_control): Likewise.
8984 (i386_dr_low_get_status): Likewise.
8985 (i386_dr_low): New global variable.
8986
e1d2394b
MS
89872014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
8988
8989 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
8990 * Makefile.in (AR, AR_FLAGS): Define.
8991 * configure: Regenerate.
8992
3a8ee006
GB
89932014-06-19 Gary Benson <gbenson@redhat.com>
8994
8995 * Makefile.in (i386-dregs.o): New rule.
8996 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
8997 * i386-low.c (target.h): Remove include.
8998 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
8999 (DR_CONTROL_SHIFT): Likewise.
9000 (DR_CONTROL_SIZE): Likewise.
9001 (DR_RW_EXECUTE): Likewise.
9002 (DR_RW_WRITE): Likewise.
9003 (DR_RW_READ): Likewise.
9004 (DR_RW_IORW): Likewise.
9005 (DR_LEN_1): Likewise.
9006 (DR_LEN_2): Likewise.
9007 (DR_LEN_4): Likewise.
9008 (DR_LEN_8): Likewise.
9009 (DR_LOCAL_ENABLE_SHIFT): Likewise.
9010 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
9011 (DR_ENABLE_SIZE): Likewise.
9012 (DR_LOCAL_SLOWDOWN): Likewise.
9013 (DR_GLOBAL_SLOWDOWN): Likewise.
9014 (DR_CONTROL_RESERVED): Likewise.
9015 (I386_DR_CONTROL_MASK): Likewise.
9016 (I386_DR_VACANT): Likewise.
9017 (I386_DR_LOCAL_ENABLE): Likewise.
9018 (I386_DR_GLOBAL_ENABLE): Likewise.
9019 (I386_DR_DISABLE): Likewise.
9020 (I386_DR_SET_RW_LEN): Likewise.
9021 (I386_DR_GET_RW_LEN): Likewise.
9022 (I386_DR_WATCH_HIT): Likewise.
9023 (i386_wp_op_t): Likewise.
9024 (i386_show_dr): Likewise.
9025 (i386_length_and_rw_bits): Likewise.
9026 (i386_insert_aligned_watchpoint): Likewise.
9027 (i386_remove_aligned_watchpoint): Likewise.
9028 (i386_handle_nonaligned_watchpoint): Likewise.
9029 i386_update_inferior_debug_regs(): Likewise.
9030 (i386_dr_insert_watchpoint): Likewise.
9031 (i386_dr_remove_watchpoint): Likewise.
9032 (i386_dr_region_ok_for_watchpoint): Likewise.
9033 (i386_dr_stopped_data_address): Likewise.
9034 (i386_dr_stopped_by_watchpoint): Likewise.
9035
8f26655c
GB
90362014-06-19 Gary Benson <gbenson@redhat.com>
9037
9038 * i386-low.c (i386_dr_show): Renamed to
9039 i386_show_dr and made static. All uses updated.
9040 (i386_dr_length_and_rw_bits): Renamed to
9041 i386_length_and_rw_bits and made static.
9042 All uses updated.
9043 (i386_dr_insert_aligned_watchpoint): Renamed to
9044 i386_insert_aligned_watchpoint and made static.
9045 All uses updated.
9046 (i386_dr_remove_aligned_watchpoint): Renamed to
9047 i386_remove_aligned_watchpoint and made static.
9048 All uses updated.
9049 (i386_dr_update_inferior_debug_regs): Renamed to
9050 i386_update_inferior_debug_regs and made static.
9051 All uses updated.
9052
b9228891
GB
90532014-06-18 Gary Benson <gbenson@redhat.com>
9054
5171def3
GB
9055 * i386-low.h (i386_dr_low_can_set_addr): New macro.
9056 (i386_dr_low_can_set_control): Likewise.
9057 (i386_get_debug_register_length): Likewise.
9058 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
9059 (i386_dr_low_can_set_control): Likewise.
9060 (i386_get_debug_register_length): Likewise.
9061
90622014-06-17 Gary Benson <gbenson@redhat.com>
9063
b9228891
GB
9064 * i386-low.h (i386-dregs.h): New include.
9065 (DR_FIRSTADDR): Now in i386-dregs.h.
9066 (DR_LASTADDR): Likewise.
9067 (DR_NADDR): Likewise.
9068 (DR_STATUS): Likewise.
9069 (DR_CONTROL): Likewise.
9070 (i386_debug_reg_state): Likewise.
9071 (i386_dr_insert_watchpoint): Likewise.
9072 (i386_dr_remove_watchpoint): Likewise.
9073 (i386_dr_region_ok_for_watchpoint): Likewise.
9074 (i386_dr_stopped_data_address): Likewise.
9075 (i386_dr_stopped_by_watchpoint): Likewise.
9076 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
9077
4be83cc2
GB
90782014-06-18 Gary Benson <gbenson@redhat.com>
9079
9080 * i386-low.h (i386_low_insert_watchpoint): Renamed to
9081 i386_dr_insert_watchpoint.
9082 (i386_low_remove_watchpoint): Renamed to
9083 i386_dr_remove_watchpoint.
9084 (i386_low_region_ok_for_watchpoint): Renamed to
9085 i386_dr_region_ok_for_watchpoint.
9086 (i386_low_stopped_data_address): Renamed to
9087 i386_dr_stopped_data_address.
9088 (i386_low_stopped_by_watchpoint): Renamed to
9089 i386_dr_stopped_by_watchpoint.
9090 * i386-low.c (i386_show_dr): Renamed to
9091 i386_dr_show and made nonstatic. All uses updated.
9092 (i386_length_and_rw_bits): Renamed to
9093 i386_dr_length_and_rw_bits and made nonstatic.
9094 All uses updated.
9095 (i386_insert_aligned_watchpoint): Renamed to
9096 i386_dr_insert_aligned_watchpoint and made nonstatic.
9097 All uses updated.
9098 (i386_remove_aligned_watchpoint): Renamed to
9099 i386_dr_remove_aligned_watchpoint and made nonstatic.
9100 All uses updated.
9101 (i386_update_inferior_debug_regs): Renamed to
9102 i386_dr_update_inferior_debug_regs and made nonstatic.
9103 All uses updated.
9104 (i386_low_insert_watchpoint): Renamed to
9105 i386_dr_insert_watchpoint. All uses updated.
9106 (i386_low_remove_watchpoint): Renamed to
9107 i386_dr_remove_watchpoint. All uses updated.
9108 (i386_low_region_ok_for_watchpoint): Renamed to
9109 i386_dr_region_ok_for_watchpoint. All uses updated.
9110 (i386_low_stopped_data_address): Renamed to
9111 i386_dr_stopped_data_address. All uses updated.
9112 (i386_low_stopped_by_watchpoint): Renamed to
9113 i386_dr_stopped_by_watchpoint. All uses updated.
9114
131aa0d4
GB
91152014-06-18 Gary Benson <gbenson@redhat.com>
9116
9117 * i386-low.c (i386_dr_low_can_set_addr): New macro.
9118 (i386_dr_low_can_set_control): Likewise.
9119 (i386_insert_aligned_watchpoint): New check.
9120
d9305f7f
GB
91212014-06-18 Gary Benson <gbenson@redhat.com>
9122
9123 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
9124 Renamed to state.
9125
e927c9fc
GB
91262014-06-18 Gary Benson <gbenson@redhat.com>
9127
9128 * i386-low.c (i386_length_and_rw_bits): Use internal_error
9129 instead of fatal and error.
9130 (i386_handle_nonaligned_watchpoint): Likewise.
9131
1b6d4134
GB
91322014-06-18 Gary Benson <gbenson@redhat.com>
9133
9134 * i386-low.c (i386_get_debug_register_length): New macro.
9135 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
9136 (i386_show_dr): Use debug_printf instead of fprintf. Use
9137 phex to format values.
9138
6e62758f
GB
91392014-06-18 Gary Benson <gbenson@redhat.com>
9140
9141 * i386-low.h: Comment changes.
9142 * i386-low.c: Likewise.
9143
fc6e2f03
GB
91442014-06-18 Gary Benson <gbenson@redhat.com>
9145
9146 * i386-low.c: Whitespace changes.
9147
f9d1eeed
TT
91482014-06-12 Tom Tromey <tromey@redhat.com>
9149
9150 * utils.c (freeargv): Remove.
9151
0b04e523
TT
91522014-06-12 Tom Tromey <tromey@redhat.com>
9153
9154 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
9155 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
9156 (parse_debug_format_options): Likewise.
9157 (gdbserver_usage): Likewise.
9158 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
9159 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
9160 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
9161 against libiberty.
9162 ($(LIBGNU)): Depend on libiberty.
9163 (all-lib): Recurse into all subdirs.
9164 (install-only): Invoke "install" target in subdirs.
9165 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
9166 targets.
9167 * configure: Rebuild.
9168 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
9169 for vasprintf, vsnprintf, or gettimeofday.
9170 * configure.srv: Don't add safe-ctype.o or lbasename.o to
9171 srv_tgtobj.
9172
270c9937
JB
91732014-06-05 Joel Brobecker <brobecker@adacore.com>
9174
9175 * development.sh: Delete.
9176 * Makefile.in (config.status): Adjust dependency on development.sh.
9177 * configure.ac: Adjust development.sh source call.
9178 * configure: Regenerate.
9179
0a261ed8
PA
91802014-06-02 Pedro Alves <palves@redhat.com>
9181
9182 * ax.c (gdb_free_agent_expr): New function.
9183 * ax.h (gdb_free_agent_expr): New declaration.
9184 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
9185 list.
9186 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
9187 static.
9188 (clear_breakpoint_conditions_and_commands): New function.
9189 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
9190 (clear_breakpoint_conditions_and_commands): New declaration.
9191
e9dae05e
RR
91922014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9193
9194 * linux-aarch64-low.c (asm/ptrace.h): Include.
9195
5876f503
JK
91962014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9197
9198 Fix TLS access for -static -pthread.
9199 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
9200 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
9201 (thread_db_load_search, try_thread_db_load_1): Initialize it.
9202
802e8e6d
PA
92032014-05-20 Pedro Alves <palves@redhat.com>
9204
9205 * linux-aarch64-low.c (aarch64_insert_point)
9206 (aarch64_remove_point): No longer check whether the type is
9207 supported here. Adjust to new interface.
9208 (the_low_target): Install aarch64_supports_z_point_type as
9209 supports_z_point_type method.
9210 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
9211 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
9212 instead of a Z packet char. Adjust.
9213 (arm_supports_z_point_type): New function.
9214 (arm_insert_point, arm_remove_point): Adjust to new interface.
9215 (the_low_target): Install arm_supports_z_point_type.
9216 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
9217 (cris_insert_point, cris_remove_point): Adjust to new interface.
9218 Don't check whether the type is supported here.
9219 (the_low_target): Install cris_supports_z_point_type.
9220 * linux-low.c (linux_supports_z_point_type): New function.
9221 (linux_insert_point, linux_remove_point): Adjust to new interface.
9222 * linux-low.h (struct linux_target_ops) <insert_point,
9223 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
9224 raw_breakpoint pointer parameter.
9225 <supports_z_point_type>: New method.
9226 * linux-mips-low.c (mips_supports_z_point_type): New function.
9227 (mips_insert_point, mips_remove_point): Adjust to new interface.
9228 Use mips_supports_z_point_type.
9229 (the_low_target): Install mips_supports_z_point_type.
9230 * linux-ppc-low.c (the_low_target): Install NULL as
9231 supports_z_point_type method.
9232 * linux-s390-low.c (the_low_target): Install NULL as
9233 supports_z_point_type method.
9234 * linux-sparc-low.c (the_low_target): Install NULL as
9235 supports_z_point_type method.
9236 * linux-x86-low.c (x86_supports_z_point_type): New function.
9237 (x86_insert_point): Adjust to new insert_point interface. Use
9238 insert_memory_breakpoint. Adjust to new
9239 i386_low_insert_watchpoint interface.
9240 (x86_remove_point): Adjust to remove_point interface. Use
9241 remove_memory_breakpoint. Adjust to new
9242 i386_low_remove_watchpoint interface.
9243 (the_low_target): Install x86_supports_z_point_type.
9244 * lynx-low.c (lynx_target_ops): Install NULL as
9245 supports_z_point_type callback.
9246 * nto-low.c (nto_supports_z_point_type): New.
9247 (nto_insert_point, nto_remove_point): Adjust to new interface.
9248 (nto_target_ops): Install nto_supports_z_point_type.
9249 * mem-break.c: Adjust intro comment.
9250 (struct raw_breakpoint) <raw_type, size>: New fields.
9251 <inserted>: Update comment.
9252 <shlib_disabled>: Delete field.
9253 (enum bkpt_type) <gdb_breakpoint>: Delete value.
9254 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
9255 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
9256 (raw_bkpt_type_to_target_hw_bp_type): New function.
9257 (find_enabled_raw_code_breakpoint_at): New function.
9258 (find_raw_breakpoint_at): New type and size parameters. Use them.
9259 (insert_memory_breakpoint): New function, based off
9260 set_raw_breakpoint_at.
9261 (remove_memory_breakpoint): New function.
9262 (set_raw_breakpoint_at): Reimplement.
9263 (set_breakpoint): New, based on set_breakpoint_at.
9264 (set_breakpoint_at): Reimplement.
9265 (delete_raw_breakpoint): Go through the_target->remove_point
9266 instead of assuming memory breakpoints.
9267 (find_gdb_breakpoint_at): Delete.
9268 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
9269 (find_gdb_breakpoint): New function.
9270 (set_gdb_breakpoint_at): Delete.
9271 (z_type_supported): New function.
9272 (set_gdb_breakpoint_1): New function, loosely based off
9273 set_gdb_breakpoint_at.
9274 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
9275 (delete_gdb_breakpoint_at): Delete.
9276 (delete_gdb_breakpoint_1): New function, loosely based off
9277 delete_gdb_breakpoint_at.
9278 (delete_gdb_breakpoint): New function.
9279 (clear_gdb_breakpoint_conditions): Rename to ...
9280 (clear_breakpoint_conditions): ... this. Don't handle a NULL
9281 breakpoint.
9282 (add_condition_to_breakpoint): Make static.
9283 (add_breakpoint_condition): Take a struct breakpoint pointer
9284 instead of an address. Adjust.
9285 (gdb_condition_true_at_breakpoint): Rename to ...
9286 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
9287 z_type parameter.
9288 (gdb_condition_true_at_breakpoint): Reimplement.
9289 (add_breakpoint_commands): Take a struct breakpoint pointer
9290 instead of an address. Adjust.
9291 (gdb_no_commands_at_breakpoint): Rename to ...
9292 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
9293 parameter. Return true if no breakpoint was found. Change debug
9294 output.
9295 (gdb_no_commands_at_breakpoint): Reimplement.
9296 (run_breakpoint_commands): Rename to ...
9297 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
9298 and change return type to boolean.
9299 (run_breakpoint_commands): New function.
9300 (gdb_breakpoint_here): Also check for Z1 breakpoints.
9301 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
9302 breakpoint. Go through the_target->remove_point instead of
9303 assuming memory breakpoint.
9304 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
9305 software and hardware breakpoints.
9306 (reinsert_raw_breakpoint): Go through the_target->insert_point
9307 instead of assuming memory breakpoint.
9308 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
9309 software and hardware breakpoints.
9310 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
9311 Check both software and hardware breakpoints.
9312 (validate_inserted_breakpoint): Assert the breakpoint is a
9313 software breakpoint. Set the inserted flag to -1 instead of
9314 setting shlib_disabled.
9315 (delete_disabled_breakpoints): Adjust.
9316 (validate_breakpoints): Only validate software breakpoints.
9317 Adjust to inserted flag change.
9318 (check_mem_read, check_mem_write): Skip breakpoint types other
9319 than software breakpoints. Adjust to inserted flag change.
9320 * mem-break.h (enum raw_bkpt_type): New enum.
9321 (raw_breakpoint, struct process_info): Forward declare.
9322 (Z_packet_to_target_hw_bp_type): Delete declaration.
9323 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
9324 (set_gdb_breakpoint, delete_gdb_breakpoint)
9325 (clear_breakpoint_conditions): New declarations.
9326 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
9327 (breakpoint_inserted_here): Update comment.
9328 (add_breakpoint_condition, add_breakpoint_commands): Replace
9329 address parameter with a breakpoint pointer parameter.
9330 (gdb_breakpoint_here): Update comment.
9331 (delete_gdb_breakpoint_at): Delete.
9332 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
9333 * server.c (process_point_options): Take a struct breakpoint
9334 pointer instead of an address. Adjust.
9335 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
9336 delete_gdb_breakpoint.
9337 * spu-low.c (spu_target_ops): Install NULL as
9338 supports_z_point_type method.
9339 * target.h: Include mem-break.h.
9340 (struct target_ops) <prepare_to_access_memory>: Update comment.
9341 <supports_z_point_type>: New field.
9342 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9343 instead of a char. Also take a raw breakpoint pointer.
9344 * win32-arm-low.c (the_low_target): Install NULL as
9345 supports_z_point_type.
9346 * win32-i386-low.c (i386_supports_z_point_type): New function.
9347 (i386_insert_point, i386_remove_point): Adjust to new interface.
9348 (the_low_target): Install i386_supports_z_point_type.
9349 * win32-low.c (win32_supports_z_point_type): New function.
9350 (win32_insert_point, win32_remove_point): Adjust to new interface.
9351 (win32_target_ops): Install win32_supports_z_point_type.
9352 * win32-low.h (struct win32_target_ops):
9353 <supports_z_point_type>: New method.
9354 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9355 instead of a char. Also take a raw breakpoint pointer.
9356
932539e3
PA
93572014-05-20 Pedro Alves <palves@redhat.com>
9358
9359 * mem-break.h: Include break-common.h.
9360 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9361 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
9362 (Z_packet_to_target_hw_bp_type): New declaration.
9363 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
9364 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
9365 (Z_PACKET_ACCESS_WP): Delete macros.
9366 (Z_packet_to_hw_type): Delete function.
9367 * i386-low.h: Don't include break-common.h here.
9368 (Z_packet_to_hw_type): Delete declaration.
9369 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
9370 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9371 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
9372 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9373 * linux-aarch64-low.c: Don't include break-common.h here.
9374 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9375 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
9376 (Z_packet_to_target_hw_bp_type): Delete function.
9377 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
9378 function.
9379 (mips_insert_point, mips_remove_point): Use
9380 Z_packet_to_target_hw_bp_type.
9381
4ff0d3d8
PA
93822014-05-20 Pedro Alves <palves@redhat.com>
9383
9384 * linux-aarch64-low.c: Include break-common.h.
9385 (enum target_point_type): Delete.
9386 (Z_packet_to_point_type): Rename to ...
9387 (Z_packet_to_target_hw_bp_type): ... this, and return a
9388 target_hw_bp_type instead.
9389 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
9390 instead of an enum target_point_type.
9391 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
9392 breakpoint type.
9393 (aarch64_dr_state_insert_one_point)
9394 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
9395 (aarch64_handle_aligned_watchpoint)
9396 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
9397 Take an enum target_hw_bp_type instead of an enum
9398 target_point_type.
9399 (aarch64_supports_z_point_type): New function.
9400 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
9401 use Z_packet_to_target_hw_bp_type.
9402
786dc519
JB
94032014-05-20 Joel Brobecker <brobecker@adacore.com>
9404
9405 * configure.ac: Only use -Werror by default when DEVELOPMENT
9406 is true.
9407 * configure: Regenerate.
9408
9e0aa64f
JK
94092014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9410
9411 Fix gdbserver qGetTLSAddr for x86_64 -m32.
9412 * linux-x86-low.c (X86_64_USER_REGS): New.
9413 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
9414
2b577b92
YQ
94152014-04-28 Yao Qi <yao@codesourcery.com>
9416
9417 * Makefile.in (i386-avx512.c): Fix the typo of generated file
9418 name.
9419
94611da2
PA
94202014-04-25 Pedro Alves <palves@redhat.com>
9421
9422 PR server/16255
9423 * linux-low.c (linux_attach_fail_reason_string): New function.
9424 (linux_attach_lwp): Delete.
9425 (linux_attach_lwp_1): Rename to ...
9426 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
9427 argument. Remove "initial" parameter. Return int instead of
9428 void. Don't error or warn here.
9429 (linux_attach): Adjust to call linux_attach_lwp. Call error on
9430 failure to attach to the tgid. Call warning when failing to
9431 attach to an lwp.
9432 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
9433 argument. Remove "initial" parameter. Return int instead of
9434 void. Don't error or warn here.
9435 (linux_attach_fail_reason_string): New declaration.
9436 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
9437 interface change. Use linux_attach_fail_reason_string.
9438
01f9f808
MS
94392014-04-24 Michael Sturm <michael.sturm@mintel.com>
9440 Walfred Tedeschi <walfred.tedeschi@intel.com>
9441
9442 * Makefile.in: Added rules to handle new files
9443 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
9444 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
9445 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
9446 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
9447 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
9448 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
9449 x32-avx512-linux.o.
9450 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
9451 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
9452 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
9453 i386/x32-avx512.xml.
9454 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
9455 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
9456 i386/x32-avx512-linux.xml.
9457 * i387-fp.c (num_avx512_k_registers): New constant for number
9458 of K registers.
9459 (num_avx512_zmmh_low_registers): New constant for number of
9460 lower ZMM registers (0-15).
9461 (num_avx512_zmmh_high_registers): New constant for number of
9462 higher ZMM registers (16-31).
9463 (num_avx512_ymmh_registers): New contant for number of higher
9464 YMM registers (ymm16-31 added by avx521 on x86_64).
9465 (num_avx512_xmm_registers): New constant for number of higher
9466 XMM registers (xmm16-31 added by AVX512 on x86_64).
9467 (struct i387_xsave): Add space for AVX512 registers.
9468 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
9469 Add code to handle AVX512 registers.
9470 (i387_xsave_to_cache): Add code to handle AVX512 registers.
9471 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
9472 prototypei from generated file.
9473 (tdesc_amd64_avx512_linux): Likewise.
9474 (init_registers_x32_avx512_linux): Likewise.
9475 (tdesc_x32_avx512_linux): Likewise.
9476 (init_registers_i386_avx512_linux): Likewise.
9477 (tdesc_i386_avx512_linux): Likewise.
9478 (x86_64_regmap): Add AVX512 registers.
9479 (x86_linux_read_description): Add code to handle AVX512 XSTATE
9480 mask.
9481 (initialize_low_arch): Add code to initialize AVX512 registers.
9482
51aa91f9
PA
94832014-04-23 Pedro Alves <palves@redhat.com>
9484
9485 * mem-break.c (find_gdb_breakpoint_at): Make static.
9486 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
9487
a4165e94
PA
94882014-04-23 Pedro Alves <palves@redhat.com>
9489
9490 * i386-low.c: Don't include break-common.h here.
9491 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9492 prototype to take target_hw_bp_type as argument instead of a Z
9493 packet char.
9494 * i386-low.h: Include break-common.h here.
9495 (Z_packet_to_hw_type): Declare.
9496 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9497 prototypes.
9498 * linux-x86-low.c (x86_insert_point): Convert the packet number to
9499 a target_hw_bp_type before calling i386_low_insert_watchpoint.
9500 (x86_remove_point): Convert the packet number to a
9501 target_hw_bp_type before calling i386_low_remove_watchpoint.
9502 * win32-i386-low.c (i386_insert_point): Convert the packet number
9503 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
9504 (i386_remove_point): Convert the packet number to a
9505 target_hw_bp_type before calling i386_low_remove_watchpoint.
9506
b8acf843
PA
95072014-04-23 Pedro Alves <palves@redhat.com>
9508
9509 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
9510
d708bcd1
PA
95112014-04-10 Pedro Alves <palves@redhat.com>
9512
9513 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
9514 Check if the condition or command is NULL before checking if the
9515 breakpoint is known. On success, return true.
9516 * mem-break.h (add_breakpoint_condition): Document return.
9517 (add_breakpoint_commands): Add describing comment.
9518 * server.c (skip_to_semicolon): New function.
9519 (process_point_options): Use it.
9520
2eec7d5b
PA
95212014-04-09 Pedro Alves <palves@redhat.com>
9522
9523 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
9524 to lwpid_of.
9525
fa96cb38
PA
95262014-02-27 Pedro Alves <palves@redhat.com>
9527
9528 PR 12702
9529 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
9530 macros.
9531 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
9532 output.
9533 (last_thread_of_process_p): Take a PID argument instead of a
9534 thread pointer.
9535 (linux_wait_for_lwp): Delete.
9536 (num_lwps, check_zombie_leaders, not_stopped_callback): New
9537 functions.
9538 (linux_low_filter_event): New function, party factored out from
9539 linux_wait_for_event.
9540 (linux_wait_for_event): Rename to ...
9541 (linux_wait_for_event_filtered): ... this. Add new filter ptid
9542 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
9543 sigsuspend. Check for zombie leaders.
9544 (linux_wait_for_event): Reimplement as wrapper around
9545 linux_wait_for_event_filtered.
9546 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
9547 a normal or signal exit is seen, it's the whole process exiting.
9548 (wait_for_sigstop): No longer a for_each_inferior callback.
9549 Rewrite on top of linux_wait_for_event_filtered.
9550 (stop_all_lwps): Call wait_for_sigstop directly.
9551 * server.c (resume, handle_target_event): Handle
9552 TARGET_WAITKIND_NO_RESUMED.
9553
d763de10
JB
95542014-02-26 Joel Brobecker <brobecker@adacore.com>
9555
9556 * win32-low.c (psapi_get_dll_name,
9557 * win32_CreateToolhelp32Snapshot): Delete.
9558 (win32_CreateToolhelp32Snapshot, win32_Module32First)
9559 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
9560 Delete.
9561 (handle_load_dll): Add function description.
9562 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
9563
850a0f76
JB
95642014-02-26 Joel Brobecker <brobecker@adacore.com>
9565
9566 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
9567 Add comment.
9568 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
9569 base address when calling win32_add_one_solib.
9570 (handle_load_dll): Delete local variable load_addr.
9571 Remove 0x1000 offset applied to DLL base address when calling
9572 win32_add_one_solib.
9573 (handle_unload_dll): Add comment.
9574
f25b3fc3
JB
95752014-02-26 Joel Brobecker <brobecker@adacore.com>
9576
9577 * win32-low.c (win32_add_all_dlls): Renames
9578 win32_ensure_ntdll_loaded. Rewrite function documentation.
9579 Adjust implementation to always load all DLLs.
9580 Add 0x1000 offset to DLL base address when calling
9581 win32_add_one_solib.
9582 (child_initialization_done): New static global.
9583 (do_initial_child_stuff): Set child_initialization_done to
9584 zero during child initialization, and 1 after. Replace call
9585 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
9586 Add comment.
9587 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
9588 (handle_unload_dll): Add function documentation.
9589 (get_child_debug_event): Ignore load and unload DLL events
9590 during child initialization.
9591
d86d4aaf
DE
95922014-02-20 Doug Evans <dje@google.com>
9593
3bc32da3 9594 Remove global all_lwps.
d86d4aaf
DE
9595 * inferiors.h (ptid_of): Move here from linux-low.h.
9596 (pid_of, lwpid_of): Ditto.
9597 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
9598 parameter is a struct thread_info * now.
9599 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
9600 directly. Pass &all_threads to find_inferior instead of &all_lwps.
9601 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
9602 directly.
9603 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
9604 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
9605 * linux-arm-low.c (update_registers_callback): Update, "entry"
9606 parameter is a struct thread_info * now.
9607 Fetch lwpid from current_inferior directly.
9608 (arm_insert_point): Pass &all_threads to find_inferior instead of
9609 &all_lwps.
9610 (arm_remove_point): Ditto.
9611 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
9612 (arm_prepare_to_resume): Fetch pid from thread.
9613 (arm_read_description): Fetch lwpid from current_inferior directly.
9614 * linux-low.c (all_lwps): Delete.
9615 (delete_lwp): Delete call to remove_inferior.
9616 (handle_extended_wait): Fetch lwpid from thread.
9617 (add_lwp): Don't set lwp->entry.id. Remove call to
9618 add_inferior_to_list.
9619 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
9620 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
9621 (kill_one_lwp_callback): Ditto.
9622 (linux_kill): Don't dereference NULL pointer.
9623 Fetch ptid,lwpid from thread.
9624 (get_detach_signal): Fetch ptid from thread.
9625 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
9626 Simplify call to regcache_invalidate_thread.
9627 (delete_lwp_callback): Update, "entry" parameter is a
9628 struct thread_info * now. Fetch pid from thread.
9629 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
9630 (status_pending_p_callback): Update, "entry" parameter is a
9631 struct thread_info * now. Fetch ptid from thread.
9632 (find_lwp_pid): Update, "entry" parameter is a
9633 struct thread_info * now.
9634 (linux_wait_for_lwp): Fetch pid from thread.
9635 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
9636 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
9637 (enqueue_one_deferred_signal): Fetch lwpid from thread.
9638 (dequeue_one_deferred_signal): Ditto.
9639 (cancel_breakpoint): Fetch ptid from current_inferior.
9640 (linux_wait_for_event): Pass &all_threads to find_inferior,
9641 not &all_lwps. Fetch ptid, lwpid from thread.
9642 (count_events_callback): Update, "entry" parameter is a
9643 struct thread_info * now.
9644 (select_singlestep_lwp_callback): Ditto.
9645 (select_event_lwp_callback): Ditto.
9646 (cancel_breakpoints_callback): Ditto.
9647 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
9648 not &all_lwps.
9649 (select_event_lwp): Ditto. Fetch ptid from event_thread.
9650 (unsuspend_one_lwp): Update, "entry" parameter is a
9651 struct thread_info * now.
9652 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
9653 not &all_lwps.
9654 (linux_stabilize_threads): Ditto. And for for_each_inferior.
9655 Fetch lwpid from thread, not lwp.
9656 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
9657 Pass &all_threads to find_inferior, not &all_lwps.
9658 (send_sigstop): Fetch lwpid from thread, not lwp.
9659 (send_sigstop_callback): Update, "entry" parameter is a
9660 struct thread_info * now.
9661 (suspend_and_send_sigstop_callback): Ditto.
9662 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
9663 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
9664 struct thread_info * now.
9665 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
9666 from thread, lwp.
9667 (lwp_running): Update, "entry" parameter is a
9668 struct thread_info * now.
9669 (stop_all_lwps): Fetch ptid from thread.
9670 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
9671 (linux_resume_one_lwp): Fetch lwpid from thread.
9672 (linux_set_resume_request): Update, "entry" parameter is a
9673 struct thread_info * now. Fetch pid, lwpid from thread.
9674 (resume_status_pending_p): Update, "entry" parameter is a
9675 struct thread_info * now.
9676 (need_step_over_p): Ditto. Fetch lwpid from thread.
9677 (start_step_over): Fetch lwpid from thread.
9678 (linux_resume_one_thread): Update, "entry" parameter is a
9679 struct thread_info * now. Fetch lwpid from thread.
9680 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
9681 (proceed_one_lwp): Update, "entry" parameter is a
9682 struct thread_info * now. Fetch lwpid from thread.
9683 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
9684 struct thread_info * now.
9685 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
9686 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
9687 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
9688 directly.
9689 (regsets_store_inferior_registers): Ditto.
9690 (fetch_register, store_register): Ditto.
9691 (linux_read_memory, linux_write_memory): Ditto.
9692 (linux_request_interrupt): Ditto.
9693 (linux_read_auxv): Ditto.
9694 (linux_xfer_siginfo): Ditto.
9695 (linux_qxfer_spu): Ditto.
9696 (linux_qxfer_libraries_svr4): Ditto.
9697 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
9698 moved to inferiors.h.
9699 (get_lwp): Delete.
9700 (get_thread_lwp): Update.
9701 (struct lwp_info): Delete member "entry". Simplify comment for
9702 member "thread".
9703 (all_lwps): Delete.
9704 * linux-mips-low.c (mips_read_description): Fetch lwpid from
9705 current_inferior directly.
9706 (update_watch_registers_callback): Update, "entry" parameter is a
9707 struct thread_info * now. Fetch pid from thread.
9708 (mips_linux_prepare_to_resume): Fetch ptid from thread.
9709 (mips_insert_point): Fetch lwpid from current_inferior.
9710 Pass &all_threads to find_inferior, not &all_lwps.
9711 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
9712 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
9713 directly.
9714 (mips_stopped_data_address): Ditto.
9715 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
9716 directly.
9717 * linux-tile-low.c (tile_arch_setup): Ditto.
9718 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
9719 (update_debug_registers_callback): Update, "entry" parameter is a
9720 struct thread_info * now. Fetch pid from thread.
9721 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
9722 Pass &all_threads to find_inferior, not &all_lwps.
9723 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
9724 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
9725 Pass &all_threads to find_inferior, not &all_lwps.
9726 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
9727 (i386_dr_low_get_status): Ditto.
9728 (x86_linux_prepare_to_resume): Fetch ptid from thread.
9729 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
9730 (x86_linux_read_description): Ditto.
9731 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
9732
3b8361aa
DE
97332014-02-20 Doug Evans <dje@google.com>
9734
9735 * inferiors.c (get_first_inferior): Fix buglet.
9736
f7667f0d
DE
97372014-02-19 Doug Evans <dje@google.com>
9738
9739 * gdbthread.h (add_thread): Change result type to struct thread_info *.
9740 * inferiors.c (add_thread): Change result type to struct thread_info *.
9741 All callers updated.
9742 (add_lwp): Call add_thread here instead of in callers.
9743 All callers updated.
9744 * linux-low.h (get_lwp_thread): Rewrite.
9745 (struct lwp_info): New member "thread".
9746
b3312d80
DE
97472014-02-19 Doug Evans <dje@google.com>
9748
9749 * linux-low.c (add_lwp): Change result to struct lwp_info *.
9750 All callers updated.
9751
ecc6f45c
DE
97522014-02-19 Doug Evans <dje@google.com>
9753
9754 * inferiors.c (add_thread): Fix whitespace.
9755
649ebbca
DE
97562014-02-19 Doug Evans <dje@google.com>
9757
9758 * dll.c (clear_dlls): Replace accessing list implemention details
9759 with API function.
9760 * gdbthread.h (get_first_thread): Declare.
9761 * inferiors.c (for_each_inferior_with_data): New function.
9762 (get_first_thread): New function.
9763 (find_thread_ptid): Simplify.
9764 (get_first_inferior): New function.
9765 (clear_list): Delete.
9766 (one_inferior_p): New function.
9767 (clear_inferior_list): New function.
9768 (clear_inferiors): Update.
9769 * inferiors.h (for_each_inferior_with_data): Declare.
9770 (clear_inferior_list): Declare.
9771 (one_inferior_p): Declare.
9772 (get_first_inferior): Declare.
9773 * linux-low.c (linux_wait_for_event): Replace accessing list
9774 implemention details with API function.
9775 * server.c (target_running): Ditto.
9776 (accumulate_file_name_length): New function.
9777 (emit_dll_description): New function.
9778 (handle_qxfer_libraries): Replace accessing list implemention
9779 details with API function.
9780 (handle_qxfer_threads_worker): New function.
9781 (handle_qxfer_threads_proper): Replace accessing list implemention
9782 details with API function.
9783 (handle_query): Ditto.
9784 (visit_actioned_threads_callback_ftype): New typedef.
9785 (visit_actioned_threads_data): New struct.
9786 (visit_actioned_threads): Rewrite to be find_inferior callback.
9787 (resume): Call find_inferior.
9788 (handle_status): Replace accessing list implemention
9789 details with API function.
9790 (process_serial_event): Replace accessing list implemention details
9791 with API function.
9792 * target.c (set_desired_inferior): Replace accessing list implemention
9793 details with API function.
9794 * tracepoint.c (same_process_p): New function.
9795 (gdb_agent_about_to_close): Replace accessing list implemention
9796 details with API function.
9797 * win32-low.c (child_delete_thread): Replace accessing list
9798 implemention details with API function.
9799 (match_dll_by_basename): New function.
9800 (dll_is_loaded_by_basename): New function.
9801 (win32_ensure_ntdll_loaded): Replace accessing list implemention
9802 details call to dll_is_loaded_by_basename.
9803
80894984
DE
98042014-02-19 Doug Evans <dje@google.com>
9805
9806 * dll.h (struct dll_info): Add comment.
9807 * gdbthread.h (struct thread_info): Add comment.
9808 (current_ptid): Simplify.
9809 * inferiors.c (add_process): Update.
9810 (remove_process): Update.
9811 * inferiors.h (struct process_info): Rename member "head" to "entry".
9812 * linux-low.c (delete_lwp): Update.
9813 (add_lwp): Update.
9814 (last_thread_of_process_p): Update.
9815 (kill_one_lwp_callback, linux_kill): Update.
9816 (status_pending_p_callback): Update.
9817 (wait_for_sigstop): Update. Simplify read of ptid.
9818 (start_step_over): Update.
9819 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
9820 (get_lwp_thread): Update.
9821 (struct lwp_info): Rename member "head" to "entry".
9822 * regcache.h (inferior_list_entry): Delete.
9823 * server.c (kill_inferior_callback): Update.
9824 (detach_or_kill_inferior_callback): Update.
9825 (print_started_pid): Update.
9826 (print_attached_pid): Update.
9827 (process_serial_event): Simplify read of ptid.
9828 * thread-db.c (thread_db_create_event): Update.
9829 (thread_db_get_tls_address): Update.
9830 * win32-low.c (current_inferior_ptid): Simplify.
9831
46917d26
TT
98322014-02-19 Tom Tromey <tromey@redhat.com>
9833
9834 * target.h (struct target_ops) <supports_btrace>: Add target_ops
9835 argument.
9836 (target_supports_btrace): Update.
9837
0759a81e
YQ
98382014-02-14 Yao Qi <yao@codesourcery.com>
9839
9840 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
9841 (rsp-low-ipa.o): New target.
9842
a7191e8b
TT
98432014-02-12 Tom Tromey <tromey@redhat.com>
9844
9845 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
9846 convert_ascii_to_int.
9847 * regcache.c (registers_to_string): Likewise.
9848 * remote-utils.c (decode_M_packet): Likewise.
9849 * server.c (process_serial_event): Likewise.
9850
ff0e980e
TT
98512014-02-12 Tom Tromey <tromey@redhat.com>
9852
9853 * server.c (handle_query, handle_v_run): Use hex2bin, not
9854 unhexify.
9855 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
9856
e9371aff
TT
98572014-02-12 Tom Tromey <tromey@redhat.com>
9858
9859 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
9860 convert_int_to_ascii.
9861 * regcache.c (registers_to_string, collect_register_as_string):
9862 Likewise.
9863 * remote-utils.c (look_up_one_symbol, relocate_instruction):
9864 Likewise.
9865 * server.c (process_serial_event): Likewise.
9866 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
9867 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
9868
971dc0b8
TT
98692014-02-12 Tom Tromey <tromey@redhat.com>
9870
9871 * remote-utils.c (look_up_one_symbol, monitor_output): Use
9872 bin2hex, not hexify.
9873 * tracepoint.c (cmd_qtstatus): Likewise.
9874
0a822afb
TT
98752014-02-12 Tom Tromey <tromey@redhat.com>
9876
9877 * remote-utils.c (monitor_output): Pass explicit length to
9878 hexify.
9879
9c3d6531
TT
98802014-02-12 Tom Tromey <tromey@redhat.com>
9881
9882 * tracepoint.c: Include rsp-low.h.
9883 * server.c: Include rsp-low.h.
9884 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
9885 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
9886 declare.
9887 * remote-utils.c: Include rsp-low.h.
9888 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
9889 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
9890 (convert_int_to_ascii, convert_ascii_to_int): Move to
9891 common/rsp-low.c.
9892 * regcache.c: Include rsp-low.h.
9893 * ax.c: Include rsp-low.h.
9894 * Makefile.in (SFILES): Add common/rsp-low.c.
9895 (OBS): Add rsp-low.o.
9896 (rsp-low.o): New target.
9897
01fd3ea5
TT
98982014-02-12 Tom Tromey <tromey@redhat.com>
9899
9900 * utils.h (pulongest, plongest, phex_nz): Don't declare.
9901 Include print-utils.h.
9902 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9903 (plongest, thirty_two, phex_nz): Remove.
9904 * Makefile.in (SFILES): Add common/print-utils.c.
9905 (OBS): Add print-utils.o.
9906 (print-utils-ipa.o): New target.
9907 (print-utils.o): New target.
9908 (IPA_OBJS): Add print-utils-ipa.o.
9909
e99dc820
TT
99102014-02-06 Tom Tromey <tromey@redhat.com>
9911
9912 * Makefile.in (SFILES): Fix indentation.
9913
ee1e2d4f
DE
99142014-02-05 Doug Evans <dje@google.com>
9915
9916 * linux-low.c (linux_wait_for_event): Improve comment.
9917 (linux_wait_1): Keep current_inferior in sync with event_child.
9918
f5a02773
DE
99192014-01-22 Doug Evans <dje@google.com>
9920
9921 * gdbthread.h (gdb_id_to_thread): Delete, unused.
9922
87ce2a04
DE
99232014-01-22 Doug Evans <dje@google.com>
9924
9925 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
9926 * configure: Regenerate.
9927 * config.in: Regenerate.
9928 * Makefile.in (SFILES): Add debug.c.
9929 (OBS): Add debug.o.
9930 * debug.c: New file.
9931 * debug.h: New file.
9932 * linux-aarch64-low.c (*): Update all debugging printfs to use
9933 debug_printf instead of fprintf.
9934 * linux-arm-low.c (*): Ditto.
9935 * linux-cris-low.c (*): Ditto.
9936 * linux-crisv32-low.c (*): Ditto.
9937 * linux-m32r-low.c (*): Ditto.
9938 * linux-sparc-low.c (*): Ditto.
9939 * linux-x86.c (*): Ditto.
9940 * linux-low.c (*): Ditto.
9941 (linux_wait_1): Add calls to debug_enter, debug_exit.
9942 (linux_wait): Remove redundant debugging printf.
9943 (stop_all_lwps): Add calls to debug_enter, debug_exit.
9944 (linux_resume, unstop_all_lwps): Ditto.
9945 * mem-break.c (*): Update all debugging printfs to use
9946 debug_printf instead of fprintf.
9947 * remote-utils.c (*): Ditto.
9948 * thread-db.c (*): Ditto.
9949 * server.c #include <ctype.h>, "gdb_vecs.h".
9950 (debug_threads): Moved to debug.c.
9951 (*): Update all debugging printfs to use debug_printf instead of
9952 fprintf.
9953 (start_inferior): Replace call to fflush with call to debug_flush.
9954 (monitor_show_help): Mention set debug-format.
9955 (parse_debug_format_options): New function.
9956 (handle_monitor_command): Handle "monitor set debug-format".
9957 (gdbserver_usage): Mention --debug-format.
9958 (main): Parse --debug-format.
9959 * server.h (debug_threads): Declaration moved to debug.h.
9960 #include "debug.h".
9961 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
9962 trace_debug_1 that uses debug_printf.
9963 (tracepoint_look_up_symbols): Update all debugging printfs to use
9964 debug_printf instead of fprintf.
9965
e671835b
BS
99662014-01-20 Baruch Siach <baruch@tkos.co.il>
9967
9968 * linux-xtensa-low.c: Include asm/ptrace.h instead of
9969 sys/ptrace.h.
9970
b5737fa9
PA
99712014-01-17 Pedro Alves <palves@redhat.com>
9972
ea38d2a9 9973 PR build/16445
c7faa97a
PA
9974 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
9975 defined after including gdb_proc_service.h.
b5737fa9 9976
40ed484e
DE
99772014-01-16 Doug Evans <dje@google.com>
9978
9979 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
9980 (match_dll): Use it.
9981
969c39fb
MM
99822014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9983
9984 * target.h (target_ops) <read_btrace>: Change parameters and
9985 return type to allow error reporting.
9986 * server.c (handle_qxfer_btrace): Support delta reads. Pass
9987 trace reading errors on.
9988 * linux-low.c (linux_low_read_btrace): Pass trace reading
9989 errors on.
9990 (linux_low_disable_btrace): New.
9991
ab7f45ba
DE
99922014-01-15 Doug Evans <dje@google.com>
9993
9994 * inferiors.c (thread_id_to_gdb_id): Delete.
9995 * inferiors.h (thread_id_to_gdb_id): Delete.
9996
66af0f44
EZ
99972014-01-13 Eli Zaretskii <eliz@gnu.org>
9998
9999 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
10000 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
10001 versions.
10002
9939e131
PA
100032014-01-08 Pedro Alves <palves@redhat.com>
10004
10005 * server.c (handle_status): Don't discard previous queued stop
10006 replies or thread's pending status here.
10007 (main) <disconnection>: Do it here instead.
10008
b7ea362b
PA
100092014-01-08 Pedro Alves <palves@redhat.com>
10010
10011 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
10012 * server.c (visit_actioned_threads, handle_pending_status): New
10013 function.
10014 (handle_v_cont): Factor out parts to ...
10015 (resume): ... this new function. If in all-stop, and a thread
10016 being resumed has a pending status, report it without actually
10017 resuming.
10018 (myresume): Adjust to use the new 'resume' function.
10019 (clear_pending_status_callback, set_pending_status_callback)
10020 (find_status_pending_thread_callback): New functions.
10021 (handle_status): Handle the case of multiple threads having
10022 interesting statuses to report. Report threads' real last signal
10023 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
10024 with an interesting thread to report the status for, instead of
10025 always reporting the status of the first thread.
10026
28498c42
JB
100272014-01-01 Joel Brobecker <brobecker@adacore.com>
10028
10029 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
10030 * gdbreplay.c (gdbreplay_version): Likewise.
10031
f45c82da
YZ
100322013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
10033
10034 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
10035 iov.iov_len with the real length in use.
10036
379a5e2d
JB
100372013-12-13 Joel Brobecker <brobecker@adacore.com>
10038
10039 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
10040 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
10041 for all targets that use win32-low.c.
10042 * win32-low.c (win32_ensure_ntdll_loaded): New function.
10043 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
10044
4210d83e
PA
100452013-12-13 Pedro Alves <palves@redhat.com>
10046
10047 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
10048 if equal to TARGET_WAITKIND_LOADED.
10049 * win32-low.c (cached_status): New static global.
10050 (win32_wait): Add declaration.
10051 (do_initial_child_stuff): Flush all initial pending debug events
10052 up to the initial breakpoint.
10053 (win32_wait): If CACHED_STATUS was set, return that instead
10054 of doing a real wait. Remove the code resuming the execution
10055 of the inferior after receiving a TARGET_WAITKIND_LOADED event
10056 during the initial phase. Also remove the code changing
10057 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
10058 TARGET_WAITKIND_STOPPED.
10059
e7f0d979
YQ
100602013-12-11 Yao Qi <yao@codesourcery.com>
10061
10062 * notif.c (handle_notif_ack): Return 0 if no notification
10063 matches.
10064
ebcf782c
DE
100652013-11-20 Doug Evans <dje@google.com>
10066
10067 * linux-low.c (linux_set_resume_request): Fix comment.
10068
20ad9378
DE
100692013-11-20 Doug Evans <dje@google.com>
10070
10071 * linux-low.c (resume_status_pending_p): Tweak comment.
10072
a196ebeb
WT
100732013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
10074
10075 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
10076 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
10077 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
10078 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
10079 (srv_amd64_regobj): Add amd64-mpx.o.
10080 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
10081 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
10082 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
10083 * i387-fp.c (num_pl_bnd_register) Added constant.
10084 (num_pl_bnd_cfg_registers) Added constant.
10085 (struct i387_xsave) Added reserved area and MPX fields.
10086 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
10087 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
10088 function.
10089 (tdesc_i386_mpx_linux): Add MPX amd64 target.
10090 (init_registers_amd64_mpx_linux): Declare new function.
10091 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
10092 (x86_64_regmap): Add MPX registers.
10093 (x86_linux_read_description): Add MPX case.
10094 (initialize_low_arch): Initialize MPX targets.
10095
0080a2f6
TT
100962013-11-18 Tom Tromey <tromey@redhat.com>
10097
10098 * configure: Rebuild.
10099 * configure.ac: Don't check for stdlib.h.
10100 * gdbreplay.c: Unconditionally include stdlib.h.
10101
2978b111
TT
101022013-11-18 Tom Tromey <tromey@redhat.com>
10103
10104 * config.in: Rebuild.
10105 * configure: Rebuild.
10106 * configure.ac: Don't use AC_HEADER_DIRENT.
10107
a3d08894
TT
101082013-11-18 Tom Tromey <tromey@redhat.com>
10109
10110 * server.h: Don't check HAVE_STRING_H.
10111 * gdbreplay.c: Don't check HAVE_STRING_H.
10112 * configure: Rebuild.
10113
0a5dd17d
TT
101142013-11-18 Tom Tromey <tromey@redhat.com>
10115
10116 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
10117 LIBGNU.
10118
1bd2f0ba
TT
101192013-11-08 Tom Tromey <tromey@redhat.com>
10120
10121 * configure, config.in: Rebuild.
10122 * configure.ac: Remove unused configury.
10123
3266f10b
TT
101242013-11-08 Tom Tromey <tromey@redhat.com>
10125
10126 * acinclude.m4: Include common.m4, codeset.m4.
10127 * configure, config.in: Rebuild.
10128 * configure.ac: Use GDB_AC_COMMON.
10129
6682d959
AA
101302013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
10131
10132 * linux-s390-low.c (HWCAP_S390_TE): New define.
10133 (s390_arch_setup): Consider the TE field in the HWCAP for
10134 determining 'have_regset_tdb'.
10135
fd0a4d76
SDJ
101362013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
10137
10138 PR gdb/16014
10139 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
10140 call to sizeof.
10141
1a3d890b
PA
101422013-10-02 Pedro Alves <palves@redhat.com>
10143
10144 * server.c (process_serial_event): Don't output "GDBserver
10145 exiting" if GDB is connected through stdio.
10146 * target.c (mywait): Likewise, be silent if GDB is connected
10147 through stdio.
10148
97ad4581
JB
101492013-10-01 Joel Brobecker <brobecker@adacore.com>
10150
10151 * lynx-low.c (lynx_add_threads_after_attach): New function.
10152 (lynx_attach): Remove call to add_thread. Add call to
10153 lynx_add_threads_after_attach instead.
10154
5b4e221c
MF
101552013-09-28 Mike Frysinger <vapier@gentoo.org>
10156
10157 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
10158 * config.in, configure: Regenerated.
10159
ee47b2f8
YQ
101602013-09-18 Yao Qi <yao@codesourcery.com>
10161
10162 PR server/15959
10163 * server.c (start_inferior): Clear 'resume_info'.
10164
d6707650 101652013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 10166
d6707650
JW
10167 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
10168 for each register.
10169
9243dd0e 101702013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 10171
9243dd0e
JW
10172 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
10173 linux-tile-low.o to srv_tgtobj.
10174
c623a6ef
WN
101752013-09-16 Will Newton <will.newton@linaro.org>
10176
10177 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
10178 out regs.
10179
fb71d39e
PA
101802013-09-06 Pedro Alves <palves@redhat.com>
10181
10182 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
10183 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
10184 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
10185 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
10186 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
10187 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
10188
8e7e9910
PA
101892013-09-06 Pedro Alves <palves@redhat.com>
10190
10191 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
10192 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
10193
7c3a12ca
PA
101942013-09-06 Pedro Alves <palves@redhat.com>
10195
10196 * linux-amd64-ipa.c: Include tracepoint.h.
10197 * linux-i386-ipa.c: Include tracepoint.h.
10198
8eb3d7b6
RW
101992013-09-06 Ricard Wanderlof <ricardw@axis.com>
10200
10201 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
10202 (ps_get_thread_area): New function.
10203
eddddb9d
RW
102042013-09-06 Ricard Wanderlof <ricardw@axis.com>
10205
10206 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
10207 (initialize_low_arch): Call init_registers_crisv32 rather than
10208 init_register_crisv32.
10209
533b0600
PA
102102013-09-05 Pedro Alves <palves@redhat.com>
10211
10212 * server.h (handle_vFile, hostio_last_error_from_errno): Move
10213 to ...
10214 * hostio.h: ... this new file.
10215 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
10216 win32-low.c: Include hostio.h.
10217
0ce3d3b5
PA
102182013-09-05 Pedro Alves <palves@redhat.com>
10219
10220 * server.h (gdb_client_data, handler_func, callback_handler_func)
10221 (delete_file_handler, add_file_handler, append_callback_event)
10222 (delete_callback_event, start_event_loop, initialize_event_loop):
10223 Move to event-loop.h and include it.
10224 * event-loop.h: New file.
10225
799cdc37
PA
102262013-09-05 Pedro Alves <palves@redhat.com>
10227
10228 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
10229 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
10230 (loaded_dll, unloaded_dll): Move to ...
10231 * dll.h: ... this new file.
10232 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
10233
6a6bbd9d
PA
102342013-09-05 Pedro Alves <palves@redhat.com>
10235
10236 * server.h (current_process, get_thread_process, all_processes)
10237 (add_inferior_to_list, for_each_inferior, current_inferior)
10238 (remove_inferior, add_process, remove_process, find_process_pid)
10239 (have_started_inferiors_p, have_attached_inferiors_p)
10240 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
10241 (clear_inferiors, find_inferior, find_inferior_id)
10242 (inferior_target_data, set_inferior_target_data)
10243 (inferior_regcache_data, set_inferior_regcache_data): Move to
10244 inferiors.h, and include it.
10245 * inferiors.h: New file.
10246
f699aaba
PA
102472013-09-05 Pedro Alves <palves@redhat.com>
10248
10249 * server.h (struct emit_ops, current_insn_ptr, emit_error):
10250 Move ...
72f4393d 10251 * ax.h: ... here.
f699aaba 10252
c144c7a0
PA
102532013-09-05 Pedro Alves <palves@redhat.com>
10254
10255 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
10256 tracepoint.h.
10257 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
10258 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
10259 (handle_tracepoint_general_set, handle_tracepoint_query)
10260 (tracepoint_finished_step, tracepoint_was_hit)
10261 (release_while_stepping_state_list, current_traceframe)
10262 (in_readonly_region, traceframe_read_mem)
10263 (fetch_traceframe_registers, traceframe_read_sdata)
10264 (traceframe_read_info, struct fast_tpoint_collect_status)
10265 (fast_tracepoint_collecting, force_unlock_trace_buffer)
10266 (handle_tracepoit_bkpts, initialize_low_tracepoint)
10267 (supply_fast_tracepoint_registers)
10268 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
10269 (ipa_tdesc, claim_trampoline_space)
10270 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
10271 (agent_mem_read, agent_get_trace_state_variable_value)
10272 (agent_set_trace_state_variable_value, agent_tsv_read)
10273 (agent_mem_read_string, get_raw_reg_func_addr)
10274 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
10275 * tracepoint.h: ... this new file.
10276
ff42e6ab
PA
102772013-09-05 Pedro Alves <palves@redhat.com>
10278
10279 * server.h (perror_with_name, error, fatal, warning, paddress)
10280 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
10281 include it.
10282 * utils.h: New file.
10283
541af0f4
PA
102842013-09-05 Pedro Alves <palves@redhat.com>
10285
10286 * server.h (remote_debug, noack_mode, transport_is_reliable)
10287 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
10288 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
10289 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
10290 (write_enn, initialize_async_io, enable_async_io)
10291 (disable_async_io, check_remote_input_interrupt_request)
10292 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
10293 (dead_thread_notify, prepare_resume_reply)
10294 (decode_address_to_semicolon, decode_address, decode_m_packet)
10295 (decode_M_packet, decode_X_packet, decode_xfer_write)
10296 (decode_search_memory_packet, unhexify, hexify)
10297 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
10298 (look_up_one_symbol, relocate_instruction)
10299 (monitor_output): Move to remote-utils.h, and include it.
10300 * remote-utils.h: New file.
10301
eebdf26b
PA
103022013-09-05 Pedro Alves <palves@redhat.com>
10303
10304 * server.h (_): Delete.
10305
3aafd2ff
PA
103062013-09-02 Pedro Alves <palves@redhat.com>
10307
10308 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
10309 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
10310 allocated.
10311 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
10312
cee83bcb
PM
103132013-09-02 Pierre Muller <muller@sourceware.org>
10314
10315 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
10316 or WriteProcessMemory complete successfully and handle
10317 ERROR_PARTIAL_COPY error.
10318
9a13b2fa
PA
103192013-09-02 Pedro Alves <palves@redhat.com>
10320
10321 * server.c (gdb_read_memory): Return -1 on traceframe memory read
10322 error instead of EIO.
10323
602e3198
JK
103242013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10325
10326 PR server/15604
10327 * linux-low.c: Include filestuff.h.
10328 (linux_create_inferior) <pid == 0>: Call close_most_fds.
10329 * lynx-low.c: Include filestuff.h.
10330 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
10331 * server.c: Include filestuff.h.
10332 (main): Call notice_open_fds.
10333 * spu-low.c: Include filestuff.h.
10334 (spu_create_inferior) <pid == 0>: Call close_most_fds.
10335
96d7229d
LM
103362013-08-22 Luis Machado <lgustavo@codesourcery.com>
10337
10338 * Makefile.in: Explain why ../target and ../nat are not
10339 listed as include file search paths.
10340 (linux-waitpid.o): New object file rule.
10341 * configure.srv (srv_native_linux_obj): New variable.
10342 Replace all occurrences of linux native object files with
10343 $srv_native_linux_obj.
10344 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
10345 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
10346 (linux_enable_event_reporting): Remove declaration.
10347 (my_waitpid): Moved to common/linux-waitpid.c.
10348 (linux_wait_for_event): Pass ptid when calling
10349 linux_enable_event_reporting.
10350 (linux_supports_tracefork_flag): Remove.
10351 (linux_enable_event_reporting): Likewise.
10352 (linux_tracefork_grandchild): Remove.
10353 (STACK_SIZE): Moved to common/linux-ptrace.c.
10354 (linux_tracefork_child): Remove.
10355 (linux_test_for_tracefork): Remove.
10356 (linux_look_up_symbols): Call linux_supports_traceclone.
10357 (initialize_low): Remove call to linux_test_for_tracefork.
10358 * linux-low.h (PTRACE_TYPE_ARG3): Move to
10359 common/linux-ptrace.h.
10360 (PTRACE_TYPE_ARG4): Likewise.
10361 Include linux-ptrace.h.
10362
32940073
PA
103632013-08-21 Pedro Alves <palves@redhat.com>
10364
10365 * config.in: Renegerate.
10366
33b60d58 103672013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 10368
33b60d58
LM
10369 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
10370 (SFILES): Remove $(srcdir)/common/target-common.c and
10371 add $(srcdir)/target/waitstatus.c.
10372 (OBS): Remove target-common.o and add waitstatus.o.
10373 (server_h): Remove $(srcdir)/../common/target-common.h and
10374 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
10375 and $(srcdir)/../target/waitstatus.h.
10376 (target-common.o): Remove.
10377 (waitstatus.o): New target object file.
10378 * target.h: Do not include target-common.h and
10379 include target/resume.h, target/wait.h and
10380 target/waitstatus.h.
10381
b8e1b30e
LM
103822013-08-13 Luis Machado <lgustavo@codesourcery.com>
10383
10384 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10385 to PTRACE_TYPE_ARG3.
10386 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10387 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
10388 PTRACE_TYPE_ARG4.
10389 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
10390 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
10391
7a60ad40
YQ
103922013-07-27 Jie Zhang <jie@codesourcery.com>
10393 Daniel Jacobowitz <dan@codesourcery.com>
10394 Yao Qi <yao@codesourcery.com>
10395
10396 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
10397 (mips-linux-watch.o): New rule.
10398 (mips_linux_watch_h): New variable.
10399 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
10400 srv_tgtobj.
10401 * linux-mips-low.c: Include mips-linux-watch.h.
10402 (struct arch_process_info, struct arch_lwp_info): New.
10403 (update_watch_registers_callback): New function.
10404 (mips_linux_new_process, mips_linux_new_thread) New functions.
10405 (mips_linux_prepare_to_resume, mips_insert_point): New
10406 functions.
10407 (mips_remove_point, mips_stopped_by_watchpoint): New
10408 functions.
10409 (rsp_bp_type_to_target_hw_bp_type): New function.
10410 (mips_stopped_data_address): New function.
10411 (the_low_target): Add watchpoint support functions.
10412
de6f69ad
YQ
104132013-07-27 Yao Qi <yao@codesourcery.com>
10414
10415 * i386-low.c: Include break-common.h.
10416 (enum target_hw_bp_type): Remove.
10417
3360c0bf
LM
104182013-07-24 Luis Machado <lgustavo@codesourcery.com>
10419
10420 * Makefile.in (SFILES): /common/target-common.c.
10421 (OBS): Add target-common.o.
10422 (server_h): Add $(srcdir)/../common/target-common.h.
10423 (target-common.o): New target.
10424 * server.c (queue_stop_reply_callback): Free
10425 status string after use.
10426 * target.c (target_waitstatus_to_string): Remove.
10427 * target.h: Include target-common.h.
10428 (resume_kind): Likewise.
10429 (target_waitkind): Likewise.
10430 (target_waitstatus): Likewise.
10431 (TARGET_WNOHANG): Likewise.
10432
bd885420
YQ
104332013-07-04 Yao Qi <yao@codesourcery.com>
10434
10435 * Makefile.in (host_alias): Use @host_noncanonical@.
10436 (target_alias): Use @target_noncanonical@.
10437 * configure.ac: Use ACX_NONCANONICAL_TARGET and
10438 ACX_NONCANONICAL_HOST.
10439 * configure: Regenerated.
10440
10441 Revert:
10442 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10443
10444 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10445 * configure: Rebuild.
10446 * Makefile.in (version_host, version_target): Get from configure.
10447 (version.c): Use $(version_host) and $(version_target).
10448
17ef446e
PA
104492013-07-03 Pedro Alves <palves@redhat.com>
10450
10451 * Makefile.in (config.status): Depend on development.sh.
10452 * acinclude.m4: Include libmcheck.m4.
10453 * configure: Regenerate.
10454
7a9a7487
MG
104552013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10456
10457 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
10458 attribute inside the parentheses.
10459 (winapi_DebugSetProcessKillOnExit): Ditto.
10460 (winapi_DebugBreakProcess): Ditto.
10461 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 10462
49b64de6
MG
104632013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10464
10465 * notif.h (notif_event): Add a dummy member to avoid compiler
10466 errors.
10467
d5749ee7
PA
104682013-07-01 Pedro Alves <palves@redhat.com>
10469
10470 * hostio.c (HOSTIO_PATH_MAX): Define.
10471 (require_filename, handle_open, handle_unlink, handle_readlink):
10472 Use it.
10473
d8d2a3ee
PA
104742013-07-01 Pedro Alves <palves@redhat.com>
10475
10476 * server.h: Include "pathmax.h".
10477 * linux-low.c: Don't include sys/param.h.
10478 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
10479 MAXPATHLEN.
10480 * win32-low.c: Don't include sys/param.h.
10481 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
10482
bc7dea8d
PA
104832013-07-01 Pedro Alves <palves@redhat.com>
10484
10485 * event-loop.c: Don't check HAVE_UNISTD_H before including
10486 <unistd.h>.
10487 * gdbreplay.c: Likewise.
10488 * remote-utils.c: Likewise.
10489 * server.c: Likewise.
10490 * configure.ac: Don't check for unistd.h.
10491 * configure: Regenerate.
10492
d6c2da54
TT
104932013-06-28 Tom Tromey <tromey@redhat.com>
10494
10495 * Makefile.in (version.c): Use version.in, not
10496 common/version.in.
10497
257b6bec
MG
104982013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10499
10500 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10501 * configure: Rebuild.
10502 * Makefile.in (version_host, version_target): Get from configure.
10503 (version.c): Use $(version_host) and $(version_target).
10504
86ebe149
DK
105052013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10506
10507 Fix trace-status to output user name without trailing colon.
10508 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
10509
f30aa5af
DK
105102013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10511
10512 Fix trace-status to output proper start-time and stop-time.
10513 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
10514 output start time and stop time in hex as gdb expects.
10515
28a93511
YQ
105162013-06-26 Pedro Alves <pedro@codesourcery.com>
10517
10518 * tracepoint.c (build_traceframe_info_xml): Output trace state
10519 variables present in the trace buffer.
10520
01208463
TT
105212013-06-24 Tom Tromey <tromey@redhat.com>
10522
10523 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
10524 create-version.sh.
10525 (version.o): Remove.
10526 * gdbreplay.c: Include version.h.
10527 (version, host_name): Don't declare.
10528 * server.h: Include version.h.
10529 (version, host_name): Don't declare.
10530
760256f9
PA
105312013-06-12 Pedro Alves <palves@redhat.com>
10532
10533 * linux-x86-low.c (linux_is_elf64): Delete global.
10534 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
10535 with local linux_pid_exe_is_elf_64_file use.
10536
030031ee
PA
105372013-06-11 Pedro Alves <palves@redhat.com>
10538
10539 * linux-low.c (regset_disabled, disable_regset): New functions.
10540 (regsets_fetch_inferior_registers)
10541 (regsets_store_inferior_registers): Use them.
10542 (initialize_regsets_info); Don't allocate the disabled_regsets
10543 array here.
10544 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
10545 comment.
10546
5da6eb0a
PA
105472013-06-11 Pedro Alves <palves@redhat.com>
10548
10549 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
10550 xmalloc.
10551
7e5aaa09
PA
105522013-06-11 Pedro Alves <palves@redhat.com>
10553
10554 * linux-x86-low.c (initialize_low_arch): Call
10555 init_registers_x32_avx_linux.
10556
d878444c
JK
105572013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10558
10559 Fix compatibility with Android Bionic.
10560 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
10561 it is not empty.
10562
3aee8918
PA
105632013-06-07 Pedro Alves <palves@redhat.com>
10564
5f2b57b5 10565 PR server/14823
3aee8918
PA
10566 * Makefile.in (OBS): Add tdesc.o.
10567 (IPA_OBJS): Add tdesc-ipa.o.
10568 (tdesc-ipa.o): New rule.
10569 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
10570 interface.
10571 * linux-low.c (new_inferior): Delete.
10572 (disabled_regsets, num_regsets): Delete.
10573 (linux_add_process): Adjust to set the new per-process
10574 new_inferior flag.
10575 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
10576 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
10577 was a stop. When calling arch_setup, switch the current inferior
10578 to the thread that got an event.
10579 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
10580 (regsets_fetch_inferior_registers)
10581 (regsets_store_inferior_registers): New regsets_info parameter.
10582 Adjust to use it.
10583 (linux_register_in_regsets): New regs_info parameter. Adjust to
10584 use it.
10585 (register_addr, fetch_register, store_register): New usrregs_info
10586 parameter. Adjust to use it.
10587 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
10588 parameter regs_info. Adjust to use it.
10589 (linux_fetch_registers): Get the current inferior's regs_info, and
10590 adjust to use it.
10591 (linux_store_registers): Ditto.
10592 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
10593 (initialize_low): Don't initialize the target_regsets here. Call
10594 initialize_low_arch.
10595 * linux-low.h (target_regsets): Delete declaration.
10596 (struct regsets_info): New.
10597 (struct usrregs_info): New.
10598 (struct regs_info): New.
10599 (struct process_info_private) <new_inferior>: New field.
10600 (struct linux_target_ops): Delete the num_regs, regmap, and
10601 regset_bitmap fields. New field regs_info.
10602 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
10603 * i387-fp.c (num_xmm_registers): Delete.
10604 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
10605 calls to new interface.
10606 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
10607 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
10608 Infer the number of xmm registers from the regcache's target
10609 description.
10610 * i387-fp.h (num_xmm_registers): Delete.
10611 * inferiors.c (add_thread): Don't install the thread's regcache
10612 here.
10613 * proc-service.c (gregset_info): Fetch the current inferior's
10614 regs_info. Adjust to use it.
10615 * regcache.c: Include tdesc.h.
10616 (register_bytes, reg_defs, num_registers)
10617 (gdbserver_expedite_regs): Delete.
10618 (get_thread_regcache): If the thread doesn't have a regcache yet,
10619 create one, instead of aborting gdbserver.
10620 (regcache_invalidate_one): Rename to ...
10621 (regcache_invalidate_thread): ... this.
10622 (regcache_invalidate_one): New.
10623 (regcache_invalidate): Only invalidate registers of the current
10624 process.
10625 (init_register_cache): Add target_desc parameter, and use it.
10626 (new_register_cache): Ditto. Assert the target description has a
10627 non zero registers_size.
10628 (regcache_cpy): Add assertions. Adjust.
10629 (realloc_register_cache, set_register_cache): Delete.
10630 (registers_to_string, registers_from_string): Adjust.
10631 (find_register_by_name, find_regno, find_register_by_number)
10632 (register_cache_size): Add target_desc parameter, and use it.
10633 (free_register_cache_thread, free_register_cache_thread_one)
10634 (regcache_release, register_cache_size): New.
10635 (register_size): Add target_desc parameter, and use it.
10636 (register_data, supply_register, supply_register_zeroed)
10637 (supply_regblock, supply_register_by_name, collect_register)
10638 (collect_register_as_string, collect_register_by_name): Adjust.
10639 * regcache.h (struct target_desc): Forward declare.
10640 (struct regcache) <tdesc>: New field.
10641 (init_register_cache, new_register_cache): Add target_desc
10642 parameter.
10643 (regcache_invalidate_thread): Declare.
10644 (regcache_invalidate_one): Delete declaration.
10645 (regcache_release): Declare.
10646 (find_register_by_number, register_cache_size, register_size)
10647 (find_regno): Add target_desc parameter.
10648 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
10649 declarations.
10650 * remote-utils.c: Include tdesc.h.
10651 (outreg, prepare_resume_reply): Adjust.
10652 * server.c: Include tdesc.h.
10653 (gdbserver_xmltarget): Delete declaration.
10654 (get_features_xml, process_serial_event): Adjust.
10655 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
10656 declare.
10657 (struct process_info) <tdesc>: New field.
10658 (ipa_tdesc): Declare.
10659 * tdesc.c: New file.
10660 * tdesc.h: New file.
10661 * tracepoint.c: Include tdesc.h.
10662 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
10663 (get_context_regcache): Adjust to pass ipa_tdesc down.
10664 (do_action_at_tracepoint): Adjust to get the register cache size
10665 from the context regcache's description.
10666 (traceframe_walk_blocks): Adjust to get the register cache size
10667 from the current trace frame's description.
10668 (traceframe_get_pc): Adjust to get current trace frame's
10669 description and pass it down.
10670 (gdb_collect): Adjust to get the register cache size from the
10671 IPA's description.
10672 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
10673 (gdbserver_xmltarget): Delete.
10674 (initialize_low_tracepoint): Set the ipa's target description.
10675 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
10676 (initialize_low_tracepoint): Set the ipa's target description.
10677 * linux-x86-low.c: Include tdesc.h.
10678 [__x86_64__] (is_64bit_tdesc): New.
10679 (ps_get_thread_area, x86_get_thread_area): Use it.
10680 (i386_cannot_store_register): Rename to ...
10681 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
10682 (i386_cannot_fetch_register): Rename to ...
10683 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
10684 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
10685 to new interface.
10686 (target_regsets): Rename to ...
10687 (x86_regsets): ... this.
10688 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
10689 interface.
10690 (x86_siginfo_fixup): Use is_64bit_tdesc.
10691 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
10692 (tdesc_x32_avx_linux, tdesc_x32_linux)
10693 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
10694 Declare.
10695 (x86_linux_update_xmltarget): Delete.
10696 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
10697 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
10698 (AMD64_LINUX_USER64_CS): New.
10699 (x86_linux_read_description): New, based on
10700 x86_linux_update_xmltarget.
10701 (same_process_callback): New.
10702 (x86_arch_setup_process_callback): New.
10703 (x86_linux_update_xmltarget): New.
10704 (x86_regsets_info): New.
10705 (amd64_linux_regs_info): New.
10706 (i386_linux_usrregs_info): New.
10707 (i386_linux_regs_info): New.
10708 (x86_linux_regs_info): New.
10709 (x86_arch_setup): Reimplement.
10710 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
10711 (x86_emit_ops): Ditto.
10712 (the_low_target): Adjust. Install x86_linux_regs_info,
10713 x86_cannot_fetch_register, and x86_cannot_store_register.
10714 (initialize_low_arch): New.
10715 * linux-ia64-low.c (tdesc_ia64): Declare.
10716 (ia64_fetch_register): Adjust.
10717 (ia64_usrregs_info, regs_info): New globals.
10718 (ia64_regs_info): New function.
10719 (the_low_target): Adjust.
10720 (initialize_low_arch): New function.
10721 * linux-sparc-low.c (tdesc_sparc64): Declare.
10722 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
10723 Adjust.
10724 (sparc_arch_setup): New function.
10725 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
10726 (the_low_target): Adjust.
10727 (initialize_low_arch): New function.
10728 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
10729 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
10730 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
10731 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
10732 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
10733 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
10734 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
10735 (tdesc_powerpc_isa205_vsx64l): Declare.
10736 (ppc_cannot_store_register, ppc_collect_ptrace_register)
10737 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
10738 (ppc_set_pc, ppc_get_hwcap): Adjust.
10739 (ppc_usrregs_info): Forward declare.
10740 (!__powerpc64__) ppc_regmap_adjusted: New global.
10741 (ppc_arch_setup): Adjust to the current process'es target
10742 description.
10743 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
10744 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
10745 (ppc_store_evrregset): Adjust.
10746 (target_regsets): Rename to ...
10747 (ppc_regsets): ... this, and make static.
10748 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
10749 (ppc_regs_info): New function.
10750 (the_low_target): Adjust.
10751 (initialize_low_arch): New function.
10752 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
10753 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
10754 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
10755 (tdesc_s390x_linux64v2): Declare.
10756 (s390_collect_ptrace_register, s390_supply_ptrace_register)
10757 (s390_fill_gregset, s390_store_last_break): Adjust.
10758 (target_regsets): Rename to ...
10759 (s390_regsets): ... this, and make static.
10760 (s390_get_pc, s390_set_pc): Adjust.
10761 (s390_get_hwcap): New target_desc parameter, and use it.
10762 [__s390x__] (have_hwcap_s390_high_gprs): New global.
10763 (s390_arch_setup): Adjust to set the current process'es target
10764 description. Don't adjust the regmap.
10765 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
10766 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
10767 (regs_info_3264): New globals.
10768 (s390_regs_info): New function.
10769 (the_low_target): Adjust.
10770 (initialize_low_arch): New function.
10771 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
10772 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
10773 [__mips64] (init_registers_mips_linux)
10774 (init_registers_mips_dsp_linux): Delete defines.
10775 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
10776 (have_dsp): New global.
10777 (mips_read_description): New, based on mips_arch_setup.
10778 (mips_arch_setup): Reimplement.
10779 (get_usrregs_info): New function.
10780 (mips_cannot_fetch_register, mips_cannot_store_register)
10781 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
10782 (mips_fill_fpregset, mips_store_fpregset): Adjust.
10783 (target_regsets): Rename to ...
10784 (mips_regsets): ... this, and make static.
10785 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
10786 (dsp_regs_info, regs_info): New globals.
10787 (mips_regs_info): New function.
10788 (the_low_target): Adjust.
10789 (initialize_low_arch): New function.
10790 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
10791 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
10792 Declare.
10793 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
10794 (arm_read_description): New, with bits factored from
10795 arm_arch_setup.
10796 (arm_arch_setup): Reimplement.
10797 (target_regsets): Rename to ...
10798 (arm_regsets): ... this, and make static.
10799 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
10800 (arm_regs_info): New function.
10801 (the_low_target): Adjust.
10802 (initialize_low_arch): New function.
10803 * linux-m68k-low.c (tdesc_m68k): Declare.
10804 (target_regsets): Rename to ...
10805 (m68k_regsets): ... this, and make static.
10806 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
10807 (m68k_regs_info): New function.
10808 (m68k_arch_setup): New function.
10809 (the_low_target): Adjust.
10810 (initialize_low_arch): New function.
10811 * linux-sh-low.c (tdesc_sharch): Declare.
10812 (target_regsets): Rename to ...
10813 (sh_regsets): ... this, and make static.
10814 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
10815 (sh_regs_info, sh_arch_setup): New functions.
10816 (the_low_target): Adjust.
10817 (initialize_low_arch): New function.
10818 * linux-bfin-low.c (tdesc_bfin): Declare.
10819 (bfin_arch_setup): New function.
10820 (bfin_usrregs_info, regs_info): New globals.
10821 (bfin_regs_info): New function.
10822 (the_low_target): Adjust.
10823 (initialize_low_arch): New function.
10824 * linux-cris-low.c (tdesc_cris): Declare.
10825 (cris_arch_setup): New function.
10826 (cris_usrregs_info, regs_info): New globals.
10827 (cris_regs_info): New function.
10828 (the_low_target): Adjust.
10829 (initialize_low_arch): New function.
10830 * linux-cris-low.c (tdesc_crisv32): Declare.
10831 (cris_arch_setup): New function.
10832 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
10833 (cris_regs_info): New function.
10834 (the_low_target): Adjust.
10835 (initialize_low_arch): New function.
10836 * linux-m32r-low.c (tdesc_m32r): Declare.
10837 (m32r_arch_setup): New function.
10838 (m32r_usrregs_info, regs_info): New globals.
10839 (m32r_regs_info): Adjust.
10840 (initialize_low_arch): New function.
10841 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
10842 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
10843 (tic6x_usrregs_info): Forward declare.
10844 (tic6x_read_description): New function, based on ...
10845 (tic6x_arch_setup): ... this. Reimplement.
10846 (target_regsets): Rename to ...
10847 (tic6x_regsets): ... this, and make static.
10848 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
10849 (tic6x_regs_info): New function.
10850 (the_low_target): Adjust.
10851 (initialize_low_arch): New function.
10852 * linux-xtensa-low.c (tdesc_xtensa): Declare.
10853 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
10854 (target_regsets): Rename to ...
10855 (xtensa_regsets): ... this, and make static.
10856 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
10857 globals.
10858 (xtensa_arch_setup, xtensa_regs_info): New functions.
10859 (the_low_target): Adjust.
10860 (initialize_low_arch): New function.
10861 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
10862 (nios2_arch_setup): Set the current process'es tdesc.
10863 (target_regsets): Rename to ...
10864 (nios2_regsets): ... this.
10865 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
10866 (nios2_regs_info): New function.
10867 (the_low_target): Adjust.
10868 (initialize_low_arch): New function.
a261b8f5
PA
10869 * linux-aarch64-low.c (tdesc_aarch64): Declare.
10870 (aarch64_arch_setup): Set the current process'es tdesc.
10871 (target_regsets): Rename to ...
10872 (aarch64_regsets): ... this.
10873 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
10874 (aarch64_regs_info): New function.
10875 (the_low_target): Adjust.
10876 (initialize_low_arch): New function.
3aee8918
PA
10877 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
10878 globals.
10879 (target_regsets): Rename to ...
10880 (tile_regsets): ... this.
10881 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
10882 (tile_regs_info): New function.
10883 (tile_arch_setup): Set the current process'es tdesc.
10884 (the_low_target): Adjust.
10885 (initialize_low_arch): New function.
10886 * spu-low.c (tdesc_spu): Declare.
10887 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
10888 * win32-arm-low.c (tdesc_arm): Declare.
10889 (arm_arch_setup): New function.
10890 (the_low_target): Install arm_arch_setup instead of
10891 init_registers_arm.
10892 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
10893 (init_windows_x86): Rename to ...
10894 (i386_arch_setup): ... this. Set `win32_tdesc'.
10895 (the_low_target): Adjust.
10896 * win32-low.c (win32_tdesc): New global.
10897 (child_add_thread): Don't create the thread cache here.
10898 (do_initial_child_stuff): Set the new process'es tdesc.
10899 * win32-low.h (struct target_desc): Forward declare.
10900 (win32_tdesc): Declare.
10901 * lynx-i386-low.c (tdesc_i386): Declare global.
10902 (lynx_i386_arch_setup): Set `lynx_tdesc'.
10903 * lynx-low.c (lynx_tdesc): New global.
10904 (lynx_add_process): Set the new process'es tdesc.
10905 * lynx-low.h (struct target_desc): Forward declare.
10906 (lynx_tdesc): Declare global.
10907 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
10908 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
10909 * nto-low.c (nto_tdesc): New global.
10910 (do_attach): Set the new process'es tdesc.
10911 * nto-low.h (struct target_desc): Forward declare.
10912 (nto_tdesc): Declare.
10913 * nto-x86-low.c (tdesc_i386): Declare.
10914 (nto_x86_arch_setup): Set `nto_tdesc'.
10915
b1fbec62
GB
109162013-06-04 Gary Benson <gbenson@redhat.com>
10917
10918 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
10919 to qSupported response when appropriate.
10920 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
10921 with nonzero-length annex.
10922 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
10923 arguments supplied in annex.
10924
d1ec4ce7
DE
109252013-05-31 Doug Evans <dje@google.com>
10926
ac44adcb 10927 PR server/15594
d1ec4ce7
DE
10928 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
10929 64 bits in 64-cross-32 environment.
10930
9b25f2d3
PA
109312013-05-28 Pedro Alves <palves@redhat.com>
10932
10933 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
10934 (aarch64-without-fpu.c): Delete rule.
10935 * configure.srv (aarch64*-*-linux*): Remove references to
10936 aarch64-without-fpu.o and aarch64-without-fpu.xml.
10937 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
10938 declaration.
10939
6740dc9c
PA
109402013-05-24 Pedro Alves <palves@redhat.com>
10941
10942 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
10943 instead of strchr/decode_address. Error if the range isn't split
10944 with a ','. Don't assume there's be a ':' in the action.
10945
c2d6af84
PA
109462013-05-23 Yao Qi <yao@codesourcery.com>
10947 Pedro Alves <palves@redhat.com>
10948
10949 * linux-low.c (lwp_in_step_range): New function.
10950 (linux_wait_1): If the thread was range stepping and stopped
10951 outside the stepping range, report the stop to GDB. Otherwise,
10952 continue stepping. Add range stepping debug output.
10953 (linux_set_resume_request): Copy the step range from the resume
10954 request to the lwp.
10955 (linux_supports_range_stepping): New.
10956 (linux_target_ops) <supports_range_stepping>: Set to
10957 linux_supports_range_stepping.
10958 * linux-low.h (struct linux_target_ops)
10959 <supports_range_stepping>: New field.
10960 (struct lwp_info) <step_range_start, step_range_end>: New fields.
10961 * linux-x86-low.c (x86_supports_range_stepping): New.
10962 (the_low_target) <supports_range_stepping>: Set to
10963 x86_supports_range_stepping.
10964 * server.c (handle_v_cont): Handle 'r' action.
10965 (handle_v_requests): Append ";r" if the target supports range
10966 stepping.
10967 * target.h (struct thread_resume) <step_range_start,
10968 step_range_end>: New fields.
10969 (struct target_ops) <supports_range_stepping>:
10970 New field.
10971 (target_supports_range_stepping): New macro.
10972
58794e1a
JB
109732013-05-17 Joel Brobecker <brobecker@adacore.com>
10974
10975 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
10976 confusion in comment.
10977
d631c5a7
JB
109782013-05-17 Joel Brobecker <brobecker@adacore.com>
10979
10980 * lynx-low.c (struct process_info_private): New type.
10981 (lynx_add_process): New function.
10982 (lynx_create_inferior, lynx_attach): Replace calls to
10983 add_process by calls to lynx_add_process.
10984 (lynx_resume): If PTID is null, then try using
10985 current_process()->private->last_wait_event_ptid.
10986 Add comments.
10987 (lynx_clear_inferiors): Delete. The contents of that function
10988 has been inlined in lynx_mourn;
10989 (lynx_wait_1): Save the ptid in the process's private data.
10990 (lynx_mourn): Free the process' private data. Replace call
10991 to lynx_clear_inferiors by call to clear_inferiors.
10992
96f7a20f
YQ
109932013-05-17 Yao Qi <yao@codesourcery.com>
10994
10995 * i386-low.c (i386_length_and_rw_bits): Move the comment to
10996 the right place.
10997
db0dfaa0
LM
109982013-05-16 Luis Machado <lgustavo@codesourcery.com>
10999
11000 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
11001 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
11002 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
11003 PT_TEXT_END_ADDR guards. Update comments.
11004 (linux_target_op) <read_offsets>: Conditionally define to
11005 linux_read_offsets if the target is UCLIBC and if it defines
11006 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
11007
68f5f838
SL
110082013-05-06 Sandra Loosemore <sandra@codesourcery.com>
11009 Andrew Jenner <andrew@codesourcery.com>
11010
11011 * Makefile.in (SFILES): Add linux-nios2-low.c.
11012 (clean): Add action to delete nios2-linux.c.
11013 (nios2-linux.c): New rule.
11014 * configure.srv: Add nios2*-*-linux*.
11015 * linux-nios2-low.c: New.
11016
1ebff1fd
HAQ
110172013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
11018
11019 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
11020
f6150862
HZ
110212013-04-25 Hui Zhu <hui@codesourcery.com>
11022
11023 PR gdb/15186
f6150862
HZ
11024 * ax.c (ax_printf): Add fflush.
11025
614c279d
TT
110262013-04-22 Tom Tromey <tromey@redhat.com>
11027
11028 * Makefile.in (SFILES): Add filestuff.c.
11029 (OBS): Add filestuff.o.
11030 (filestuff.o): New target.
11031 * config.in, configure: Rebuild.
11032 * configure.ac: Check for fdwalk, pipe2.
11033
7d4e5717
PA
110342013-04-17 Pedro Alves <palves@redhat.com>
11035
11036 * configure.ac (USE_THREAD_DB): Delete variable.
11037 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
11038 Don't AC_SUBST USE_THREAD_DB.
11039 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
11040 * config.in, configure: Regenerate.
11041
d5c93e41
PA
110422013-04-16 Pedro Alves <palves@redhat.com>
11043
11044 * linux-low.h (struct lwp_info) <thread_known>: Move under
11045 the USE_THREAD_DB #ifdef.
11046
04f5fe89
PA
110472013-04-16 Pedro Alves <palves@redhat.com>
11048
11049 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
11050 (linux-low.o): Delete rule.
11051 * linux-low.h: Always include "gdb_thread_db.h" instead of
11052 conditionally including thread_db.h.
11053 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
11054 HAVE_THREAD_DB_H.
11055
480b27bf
JK
110562013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11057
11058 * Makefile.in (install-only): Fix make install regression.
11059
43662968
JK
110602013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
11061
11062 Convert man pages to texinfo, new gdbinit.5 texinfo page.
11063 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
11064 installation.
11065 * gdbserver.1: Remove.
11066
3e74e146
PA
110672013-03-22 Pedro Alves <palves@redhat.com>
11068
11069 * linux-low.c (handle_extended_wait): Don't call
11070 linux_enable_event_reporting.
11071
a8347a2a
TT
110722013-03-15 Tony Theodore <tonyt@logyst.com>
11073
11074 PR build/9098:
11075 * Makefile.in (SHELL): Use @SHELL@.
11076
eeb56fa7
SDJ
110772013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
11078
11079 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
11080 compiler warning.
11081
4fa7e2ff
JB
110822013-03-13 Joel Brobecker <brobecker@adacore.com>
11083
11084 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
11085 Remove extraneous NULL element.
11086
8ddb1965
YQ
110872013-03-13 Yao Qi <yao@codesourcery.com>
11088
11089 * tracepoint.c (traceframe_read_tsv): Look for the last matched
11090 'V' block in trace frame.
11091
9accd112
MM
110922013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11093
11094 * target.h (struct target_ops): Add btrace ops.
11095 (target_supports_btrace): New macro.
11096 (target_enable_btrace): New macro.
11097 (target_disable_btrace): New macro.
11098 (target_read_btrace): New macro.
11099 * gdbthread.h (struct thread_info): Add btrace field.
11100 * server.c: Include btrace-common.h.
11101 (handle_btrace_general_set): New function.
11102 (handle_btrace_enable): New function.
11103 (handle_btrace_disable): New function.
11104 (handle_general_set): Call handle_btrace_general_set.
11105 (handle_qxfer_btrace): New function.
11106 (struct qxfer qxfer_packets[]): Add btrace entry.
11107 * inferiors.c (remove_thread): Disable btrace.
11108 * linux-low: Include linux-btrace.h.
11109 (linux_low_enable_btrace): New function.
11110 (linux_low_read_btrace): New function.
11111 (linux_target_ops): Add btrace ops.
11112 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
11113 Add srv_linux_btrace=yes.
11114 (x86_64-*-linux*): Add linux-btrace.o.
11115 Add srv_linux_btrace=yes.
11116 * configure.ac: Define HAVE_LINUX_BTRACE.
11117 * config.in: Regenerated.
11118 * configure: Regenerated.
11119
5cc22e4c
MM
111202013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11121
11122 * server.c (handle_qxfer): Preserve error message if -3 is
11123 returned.
11124 (qxfer): Document the -3 return value.
11125
7c97f91e
MM
111262013-03-11 Markus Metzger <markus.t.metzger@intel.com>
11127
11128 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
11129 (linux_btrace_h): New variable.
11130 (linux-btrace.o): New rule.
11131
be9a119c 111322013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
11133 Hafiz Abid Qadeer <abidh@codesourcery.com>
11134
11135 * tracepoint.c (trace_buffer_size): New global.
11136 (DEFAULT_TRACE_BUFFER_SIZE): New define.
11137 (init_trace_buffer): Change to one-argument function. Allocate
11138 trace buffer memory.
11139 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
11140 handle QTBuffer:size packet.
11141 (cmd_bigqtbuffer_size): New function.
11142 (initialize_tracepoint): Call init_trace_buffer with
11143 DEFAULT_TRACE_BUFFER_SIZE.
11144 * server.c (handle_query): Add QTBuffer:size in the
11145 supported packets.
11146
e64f7499
YQ
111472013-03-07 Yao Qi <yao@codesourcery.com>
11148
11149 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
11150 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
11151 of -1.
11152 (cmd_qtsp): Adjust condition. Do post increment.
11153 Set cur_action and cur_step_action back to 0.
11154
f0ae6fc3
PA
111552013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
11156
11157 PR server/15236
11158 * linux-low.c (linux_write_memory): Return early success if LEN is
11159 zero.
11160
b5b0b0af
CV
111612013-03-05 Corinna Vinschen <vinschen@redhat.de>
11162
334ad4a8 11163 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 11164
589bc927
TT
111652013-02-28 Tom Tromey <tromey@redhat.com>
11166
11167 * configure.ac: Invoke AC_SYS_LARGEFILE.
11168 * configure, config.in: Rebuild.
11169
dfe07582
CV
111702013-02-28 Corinna Vinschen <vinschen@redhat.com>
11171
11172 * win32-low.c: Throughout, fix format strings and casts of
11173 printf-like functions to avoid type related warnings on all
11174 platforms.
11175 (get_child_debug_event): Print dwDebugEventCode as hex since
11176 that's how it's usually documented.
11177
736cd585
YQ
111782013-02-28 Yao Qi <yao@codesourcery.com>
11179
11180 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
11181 pulongest.
11182
e1f58301
JW
111832013-02-27 Jiong Wang <jiwang@tilera.com>
11184
11185 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
11186 (reg-tilegx32.c): New rule.
11187 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
11188 * linux-tile-low.c (tile_arch_setup): New function. Invoke
11189 different register info initializer according to elf class.
11190 (init_registers_tilgx32): New function. The tilegx32 register info
11191 initializer.
11192 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
11193 (tile_store_gregset): Likewise.
11194
d171ca78
YQ
111952013-02-27 Yao Qi <yao@codesourcery.com>
11196
11197 * server.c (process_point_options): Print debug message when
11198 debug_threads is true.
11199
282bbdf3
YQ
112002013-02-26 Yao Qi <yao@codesourcery.com>
11201
11202 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
11203
aca22551
PA
112042013-02-19 Pedro Alves <palves@redhat.com>
11205 Kai Tietz <ktietz@redhat.com>
11206
11207 PR gdb/15161
11208
11209 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
11210 instead of strtoul to extract address from packet.
11211 (process_serial_event) <'z'>: Likewise.
11212
4f3cee1c
YQ
112132013-02-18 Yao Qi <yao@codesourcery.com>
11214
11215 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
11216
8e1d55a3
PA
112172013-02-14 Pedro Alves <palves@redhat.com>
11218
11219 Plug memory leak.
11220
11221 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
11222 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
11223
458820da
PA
112242013-02-14 Pedro Alves <palves@redhat.com>
11225
11226 * tracepoint.c (cmd_qtdpsrc): Use savestring.
11227
baea0dae
PA
112282013-02-14 Pedro Alves <palves@redhat.com>
11229
11230 * tracepoint.c (save_string): Delete.
11231 (add_tracepoint_action): Use savestring instead of save_string.
11232
0b1afbb3
PA
112332013-02-12 Pedro Alves <palves@redhat.com>
11234
11235 * linux-xtensa-low.c: Ditto.
11236 * xtensa-xtregs.c: Ditto.
11237
8a4ac37e
PA
112382013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11239
11240 * thread-db.c (thread_db_get_tls_address): NULL pointer check
11241 thread_db.
11242
148de6bb
MS
112432013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11244
11245 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
11246 aarch64_num_wp_regs and aarch64_num_bp_regs to
11247 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
11248
55fac6e0
MS
112492013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11250
11251 * linux-aarch64-low.c (ps_get_thread_area): Replace
11252 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
11253
176eb98c
MS
112542013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11255 Marcus Shawcroft <marcus.shawcroft@arm.com>
11256 Nigel Stephens <nigel.stephens@arm.com>
11257 Yufeng Zhang <yufeng.zhang@arm.com>
11258
11259 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
11260 (aarch64.c, aarch64-without-fpu.c): New targets.
11261 * configure.srv (aarch64*-*-linux*): New.
11262 * linux-aarch64-low.c: New file.
11263
56f7af9c
MS
112642013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
11265
43aaf8b6 11266 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
11267 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
11268 (dequeue_one_deferred_signal, linux_resume_one_thread)
11269 (fetch_register, linux_write_memory, linux_enable_event_reporting)
11270 (linux_tracefork_grandchild, linux_test_for_tracefork)
11271 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
11272 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
11273 where the argument is 0.
11274
60f662b0
YQ
112752013-01-25 Yao Qi <yao@codesourcery.com>
11276
11277 * event-loop.c: Include "queue.h".
11278 (gdb_event_p): New typedef.
11279 (struct gdb_event) <next_event>: Remove.
11280 (event_queue): Change to QUEUE(gdb_event_p).
11281 (async_queue_event): Remove.
11282 (gdb_event_xfree): New.
11283 (initialize_event_loop): New.
11284 (process_event): Use API from QUEUE.
11285 (wait_for_event): Likewise.
11286 * server.c (main): Call initialize_event_loop.
11287 * server.h (initialize_event_loop): Declare.
11288
5ae4861a
YQ
112892013-01-18 Yao Qi <yao@codesourcery.com>
11290
11291 * ax.h (struct eval_agent_expr_context): New.
11292 (gdb_eval_agent_expr): Update declaration.
11293 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
11294 TFRAME. Add new argument CTX.
11295 * server.h (struct eval_agent_expr_context): Declare.
11296 (agent_mem_read, agent_tsv_read): Update declaration.
11297 (agent_mem_read_string): Likewise.
11298 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
11299 (add_traceframe_block): Add new argument TPOINT.
11300 Increase TPOINT->traceframe_usage.
11301 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
11302 eval_tracepoint_agent_expr.
11303 (condition_true_at_tracepoint): Likewise.
11304 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
11305 (agent_mem_read_string, agent_tsv_read): Likewise.
11306
85e00e85
YQ
113072013-01-16 Yao Qi <yao@codesourcery.com>
11308
11309 * linux-low.c (linux_resume_one_lwp): Don't check
11310 'lwp->bp_reinsert != 0'.
11311
4039cf45
JB
113122013-01-07 Joel Brobecker <brobecker@adacore.com>
11313 Pedro Alves <palves@redhat.com>
11314
11315 * lynx-low.c (ptrace_request_to_str): Define a temporary
11316 macro and use it to simplify this function's implementation.
11317
9044dee2
JB
113182013-01-07 Joel Brobecker <brobecker@adacore.com>
11319
11320 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
11321 sets errno.
11322
e6352c8f
JB
113232013-01-07 Joel Brobecker <brobecker@adacore.com>
11324
11325 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
11326
50681a27
JB
113272013-01-07 Joel Brobecker <brobecker@adacore.com>
11328
11329 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
11330
3f6e77ef
JB
113312013-01-07 Joel Brobecker <brobecker@adacore.com>
11332
11333 * lynx-low.c (lynx_resume): Use the resume_info parameter
11334 to determine the ptid for the lynx_ptrace call, unless
11335 it is equal to minus_one_ptid, in which case we use the
11336 ptid of the current_inferior.
11337 (lynx_wait_1): After having received a thread create/exit
11338 event, resume the inferior's execution using the signaling
11339 thread's ptid, rather than the old ptid.
11340
7fda33ae
JB
113412013-01-07 Joel Brobecker <brobecker@adacore.com>
11342
11343 * lynx-low.c (lynx_resume): Delete variable ret.
11344
b9786c74
JB
113452013-01-01 Joel Brobecker <brobecker@adacore.com>
11346
11347 * gdbreplay.c (gdbreplay_version): Update copyright year.
11348 * server.c (gdbserver_version): Likewise.
11349
8b93d60f
JB
113502012-12-17 Joel Brobecker <brobecker@adacore.com>
11351
11352 * lynx-low.c (lynx_wait_1): Add debug trace before adding
11353 new thread.
11354
037335a7
JB
113552012-12-17 Joel Brobecker <brobecker@adacore.com>
11356
11357 * lynx-low.c (ptrace_request_to_str): Add handling for
11358 PTRACE_GETTRACESIG.
11359
52d4cbd8
JB
113602012-12-17 Joel Brobecker <brobecker@adacore.com>
11361
11362 * lynx-low.c (lynx_attach): Delete variable new_process.
11363
ab8f6ca9
JB
113642012-12-17 Joel Brobecker <brobecker@adacore.com>
11365
11366 * lynx-low.c (lynx_create_inferior): Delete variable
11367 new_process.
11368
78cbc024
JB
113692012-12-17 Joel Brobecker <brobecker@adacore.com>
11370
11371 * lynx-low.c (ptrace_request_to_str): Do not handle
11372 PTRACE_GETTHREADLIST if this macro does not exist.
11373
14a00470
YQ
113742012-12-15 Yao Qi <yao@codesourcery.com>
11375
11376 * Makefile.in (OBS): Add notif.o.
11377 * notif.c, notif.h: New.
11378 * server.c: Include "notif.h".
11379 (struct vstop_notif) <next>: Remove.
11380 <base>: New field.
11381 (queue_stop_reply): Update.
11382 (push_event, send_next_stop_reply): Remove.
11383 (discard_queued_stop_replies): Update.
11384 (notif_stop): New variable.
11385 (handle_v_stopped): Remove.
11386 (handle_v_requests): Don't call handle_v_stopped. Call
11387 handle_ack_notif instead.
11388 (queue_stop_reply_callback): Call notif_event_enque instead
11389 of queue_stop_reply.
11390 (handle_status): Don't call send_next_stop_reply, call
11391 notif_write_event instead.
11392 (kill_inferior_callback): Likewise.
11393 (detach_or_kill_inferior_callback): Likewise.
11394 (main): Call initialize_notif.
11395 (process_serial_event): Call QUEUE_is_empty.
11396 (handle_target_event): Call notif_push instead of push event.
11397 * server.h (push_event): Remove declaration.
11398
61c125b9
TT
113992012-12-10 Tom Tromey <tromey@redhat.com>
11400
11401 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
11402 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
11403 macros.
11404 (.c.o): Rewrite.
11405 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
11406 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
11407 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
11408 (amd64-linux-ipa.o, ax.o): Rewrite.
11409 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
11410 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
11411 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
11412 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
11413 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
11414 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
11415 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
11416 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
11417 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
11418 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
11419 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
11420 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
11421 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
11422 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
11423 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
11424 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
11425 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
11426 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
11427 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
11428 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
11429 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
11430 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
11431 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
11432 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
11433 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
11434 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
11435 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
11436 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
11437 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
11438 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
11439 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
11440 (reg-tilegx.o): Remove.
11441 (all_object_files): New macro.
11442 Include .deps files.
11443 * aclocal.m4, configure: Rebuild.
11444 * acinclude.m4: Include depstand.m4, lead-dot.m4.
11445 * configure.ac: Invoke ZW_CREATE_DEPDIR,
11446 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
11447
e90e9ad9
TT
114482012-12-05 Tom Tromey <tromey@redhat.com>
11449
11450 PR gdb/14917:
11451 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
11452
02d403bf 114532012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
11454
11455 * configure.ac: Check for linux/perf_event.h.
11456 * config.in: Regenerated.
11457 * configure: Regenerated.
11458
0270a750
PA
114592012-11-26 Maxime Villard <rustyBSD@gmx.fr>
11460
11461 * hostio.c (handle_readlink): Decrease buffer size
11462 parameter passed to readlink by one byte.
11463
8c29b58e
YQ
114642012-11-26 Yao Qi <yao@codesourcery.com>
11465
11466 * configure.ac (build_warnings): Append '-Wempty-body'.
11467 * configure: Regenerated.
11468 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
11469 body.
11470
8bdce1ff
PM
114712012-11-15 Pierre Muller <muller@sourceware.org>
11472
11473 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
11474 * config.in: Regenerate.
11475 * configure: Regenerate.
11476 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
11477 Use "gdb_wait.h" header instead of <sys/wait.h> header.
11478 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11479 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
11480 header.
11481 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
11482 instead of <sys/wait.h> header.
11483 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11484
02d403bf 114852012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
11486
11487 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
11488 (various make rules): Remove -DGDBSERVER
11489
fbd5db48
YQ
114902012-11-09 Yao Qi <yao@codesourcery.com>
11491
11492 * spu-low.c (current_ptid): Move it to ..
11493 * gdbthread.h: ... here. New.
11494 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
11495 * server.c (myresume, process_serial_event): Likewise.
11496 * thread-db.c (thread_db_find_new_threads): Likewise.
11497 * tracepoint.c (run_inferior_command): Likewise.
11498
b3dc46ff
AB
114992012-10-01 Andrew Burgess <aburgess@broadcom.com>
11500
11501 * server.c (handle_search_memory_1): Include access length in
11502 warning message.
11503
07c04788
HPN
115042012-09-05 Michael Brandt <michael.brandt@axis.com>
11505
11506 * linux-crisv32-low.c: Fix compile errors.
11507
918d227b
YQ
115082012-09-04 Yao Qi <yao@codesourcery.com>
11509
11510 * tracepoint.c (cmd_qtsv): Adjust debug message.
11511 Don't check CUR_TPOINT.
11512
18c1b81a
YQ
115132012-08-28 Yao Qi <yao@codesourcery.com>
11514
11515 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
11516 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
11517 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
11518 Remove declarations of xmalloc, xreallloc, xstrdup and
11519 freeargv.
11520 * Makefile.in (libiberty_h): New.
11521 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
11522 (linux-bfin-low.o): Append dependency 'libiberty.h'.
11523
dc82f37b
YQ
115242012-08-23 Yao Qi <yao@codesourcery.com>
11525
11526 * server.h: Remove declaration of 'xsnprintf'.
11527
406b1477
KS
115282012-08-22 Keith Seitz <keiths@redhat.com>
11529
11530 * server.h: Include build-gnulib-gbserver/config.h.
11531 * gdbreplay.c: Likewise.
11532
e6712ff1
DE
115332012-08-08 Doug Evans <dje@google.com>
11534
11535 * Makefile.in (SFILES): Add gdb_vecs.c.
11536 (OBS): Add gdb_vecs.o.
11537 (gdb_vecs_h, host_defs_h): New variables.
11538 (thread-db.o): Add $(gdb_vecs_h) dependency.
11539 (gdb_vecs.o): New rule.
11540 * thread-db.c: #include "gdb_vecs.h".
11541 (thread_db_load_search): Use a vector to iterate over path elements.
11542 Handle text appearing after "$pdir".
11543
11544 * configure.ac: Add check for strstr.
11545 * config.in: Regenerate.
11546 * configure: Regenerate.
11547
7c3270ae
UW
115482012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11549
11550 * hostio.c (handle_pread): If pread fails, fall back to attempting
11551 lseek/read.
11552 (handle_pwrite): Likewise for pwrite.
11553
b62e2b27
UW
115542012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
11555
11556 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
11557 between unsupported TYPE and unimplementable ADDR/LEN combination.
11558 (arm_insert_point): Act on new return value.
11559
78a99e91
PA
115602012-07-31 Pedro Alves <palves@redhat.com>
11561
11562 * server.c (process_point_options): Only skip tokens if we find
11563 one that is unrecognized. Don't treat 'X' specially while
11564 skipping unrecognized tokens.
11565
fcf303ab
UW
115662012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
11567
11568 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
11569 to 4-byte-align HW breakpoint addresses for Thumb.
11570
7255706c
YQ
115712012-07-27 Yao Qi <yao@codesourcery.com>
11572
11573 PR remote/14161.
11574
11575 * server.h: Declare gdb_agent_about_to_close.
11576 * target.c (kill_inferior): Include "agent.h".
11577 New. Send command 'kill'.
11578 * target.h (kill_inferior): Removed macro.
11579 * tracepoint.c (gdb_agent_about_to_close): New.
11580 (gdb_agent_helper_thread): Handle command 'close'.
11581 Wait endlessly until the inferior stops.
11582 Install gdb_agent_remove_socket to atexit hook.
11583 (agent_socket_name): New static variable.
11584 (gdb_agent_socket_init): Replace local variable 'name' with
11585 'agent_socket_name'.
11586 (gdb_agent_remove_socket): New.
11587
5a3f286f
YQ
115882012-07-27 Yao Qi <yao@codesourcery.com>
11589
11590 * server.c (process_point_options): Stop at 'X' when parsing.
11591
961bd387
ME
115922012-07-19 Michael Eager <eager@eagercon.com>
11593
a261b8f5 11594 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
11595 to hw_execute.
11596 * linux-x86-low.c (x86_insert_point, x86_remove_point):
11597 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
11598 hardware breakpoint.
11599
aa7c7447
JK
116002012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11601
11602 * gdbserver/linux-low.c (initialize_low): Call
11603 linux_ptrace_init_warnings.
11604
7f216e7c
DE
116052012-07-02 Doug Evans <dje@google.com>
11606
11607 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
11608 pointer to int.
11609
d3ce09f5
SS
116102012-07-02 Stan Shebs <stan@codesourcery.com>
11611
11612 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
11613 (ax.o): Add it to build rule.
11614 (ax-ipa.o): Ditto.
11615 (OBS): Add format.o.
11616 (IPA_OBS): Add format.o.
11617 * server.c (handle_query): Claim support for breakpoint commands.
11618 (process_point_options): Add command case.
11619 (process_serial_event): Leave running if there are printfs in
11620 effect.
11621 * mem-break.h (any_persistent_commands): Declare.
11622 (add_breakpoint_commands): Declare.
11623 (gdb_no_commands_at_breakpoint): Declare.
11624 (run_breakpoint_commands): Declare.
11625 * mem-break.c (struct point_command_list): New struct.
11626 (struct breakpoint): New field command_list.
11627 (any_persistent_commands): New function.
11628 (add_commands_to_breakpoint): New function.
11629 (add_breakpoint_commands): New function.
11630 (gdb_no_commands_at_breakpoint): New function.
11631 (run_breakpoint_commands): New function.
11632 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
11633 locally.
11634 * ax.c: Include format.h.
11635 (ax_printf): New function.
11636 (gdb_eval_agent_expr): Add printf opcode.
11637
2f8f6aed
YQ
116382012-06-13 Yao Qi <yao@codesourcery.com>
11639
11640 * server.c (start_inferior): Remove duplicated writes to fields
11641 'last_resume_kind' and 'last_status' of 'current_inferior'.
11642
0c9070b3
YQ
116432012-06-12 Yao Qi <yao@codesourcery.com>
11644 Pedro Alves <palves@redhat.com>
11645
11646 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
11647 comment.
11648 * server.c (handle_v_cont): Extend comment.
11649
c52daf70
YQ
116502012-06-11 Yao Qi <yao@codesourcery.com>
11651
11652 * linux-low.c (linux_attach): Add 'static'.
11653
d38bbb0a
YQ
116542012-06-06 Yao Qi <yao@codesourcery.com>
11655
11656 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
11657
89dc0afd
JK
116582012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11659
11660 Fix gcc -flto compilation warning.
11661 * server.c (main): Make variable multi_mode and attach volatile.
11662
75f62ce7
TJB
116632012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11664
11665 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
11666 if the platform doesn't know about it.
11667
65f479b6
PA
116682012-05-30 Jeff Kenton <jkenton@tilera.com>
11669
11670 * Makefile.in (SFILES): Add linux-tile-low.c.
11671 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
11672 * configure.srv: Handle tilegx-*-linux*.
11673 * linux-tile-low.c: New file.
11674
0c5bf5a9
JK
116752012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11676
11677 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
11678
a493e3e2
PA
116792012-05-24 Pedro Alves <palves@redhat.com>
11680
11681 PR gdb/7205
11682
43aaf8b6 11683 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 11684
2ea28649
PA
116852012-05-24 Pedro Alves <palves@redhat.com>
11686
11687 PR gdb/7205
11688
11689 Replace target_signal with gdb_signal throughout.
11690
8d409d16
MR
116912012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
11692
11693 * linux-low.c (linux_store_registers): Avoid the copying sequence
11694 when no data has been retrieved by ptrace.
11695
23512c01
MGD
116962012-05-22 Will Deacon <will.deacon@arm.com>
11697
11698 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
11699 Include asm/ptrace.h.
11700 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
11701 already defined.
11702
4934b29e
MR
117032012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
11704
11705 * linux-low.c (linux_store_registers): Don't re-retrieve data
11706 with ptrace that has already been obtained from /proc. Always
11707 copy any data retrieved with ptrace to the buffer supplied.
11708
bde24c0a
PA
117092012-05-11 Yao Qi <yao@codesourcery.com>
11710 Pedro Alves <palves@redhat.com>
11711
11712 * linux-low.c (enum stopping_threads_kind): New.
11713 (stopping_threads): Change type to `enum stopping_threads_kind'.
11714 (handle_extended_wait): If stopping and suspending threads, leave
11715 the new_lwp suspended too.
11716 (linux_wait_for_event): Adjust.
11717 (stop_all_lwps): Set `stopping_threads' to
11718 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
11719 whether we're suspending threads or just stopping them. Assert no
11720 recursion happens.
11721
623b6bdf
YQ
117222012-04-29 Yao Qi <yao@codesourcery.com>
11723
11724 * server.h: Move some code to ...
11725 * gdbthread.h: ... here. New.
11726 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
11727 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
11728 (nto-low.o, win32-low.o): Likewise.
11729 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
11730 * regcache.c, remote-utils.c, server.c: Likewise.
11731 * target.c, tracepoint.c, win32-low.c: Likewise.
11732
f15f9948
TJB
117332012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11734
11735 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
11736 (PTRACE_ARG4_TYPE): Likewise.
11737 (PTRACE_XFER_TYPE): Likewise.
11738 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
11739 ptrace to PTRACE_ARG3_TYPE.
11740 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
11741 (PTRACE_ARG4_TYPE): Likewise.
11742 (PTRACE_XFER_TYPE): Likewise.
11743 (linux_detach_one_lwp): Cast fourth argument of
11744 ptrace to long then PTRACE_ARG4_TYPE.
11745 (regsets_fetch_inferior_registers): Cast third argument of
11746 ptrace to long then PTRACE_ARG3_TYPE.
11747 (regsets_store_inferior_registers): Likewise.
11748
38ea300a
PA
117492012-04-20 Pedro Alves <palves@redhat.com>
11750
11751 * configure: Regenerate.
11752
c971b7fa
PA
117532012-04-19 Pedro Alves <palves@redhat.com>
11754
43aaf8b6 11755 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 11756 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
11757 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
11758 (all, install-only, uninstall, clean-info, all-lib, clean): No
11759 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
11760 (maintainer-clean realclean distclean): Use subdir_do.
11761 (subdir_do): New.
11762 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 11763 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
11764 * acinclude.m4: Include acx_configure_dir.m4.
11765 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
11766 calls. Call AC_PROG_RANLIB. Configure gnulib using
11767 ACX_CONFIGURE_DIR.
11768 (GNULIB): New.
11769 (GNULIB_STDINT_H): Adjust.
11770 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
11771 * gdbreplay.c: Include build-gnulib/config.h.
11772 * server.h: Likewise.
11773 * aclocal.m4: Regenerate.
11774 * config.in: Regenerate.
11775 * configure: Regenerate.
c971b7fa 11776
809277f8
PA
117772012-04-19 Pedro Alves <palves@redhat.com>
11778
11779 * Makefile.in (LIBGNU, INCGNU): Adjust.
11780 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
11781 (all, install-only, uninstall, clean-info, all-lib, clean)
11782 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
11783 * configure.ac: Adjust AC_OUTPUT output.
11784 * aclocal.m4: Regenerate.
11785 * configure: Regenerate.
11786
fd9bb8b8
PA
117872012-04-19 Pedro Alves <palves@redhat.com>
11788
11789 * Makefile.in (generated_files): New.
11790 (server_h): Remove the explicit dependency on config.h, and depend
11791 on $generated_files.
11792
1c298c66
PA
117932012-04-19 Pedro Alves <palves@redhat.com>
11794
11795 * Makefile.in (INCGNU): Add -Ignulib.
11796
57c4b50b
PA
117972012-04-19 Pedro Alves <palves@redhat.com>
11798
11799 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
11800 (INCGNU): ... this, and spell out -I here.
11801 (GNULIB_LIB): Rename to ...
11802 (LIBGNU): ... this.
11803 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
11804
1030e047
PA
118052012-04-19 Pedro Alves <palves@redhat.com>
11806
11807 * config.in: Regenerate.
11808
447d4319
PA
118092012-04-19 Pedro Alves <palves@redhat.com>
11810
11811 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
11812 * server.h (memmem): Remove declaration.
11813 * config.in: Regenerate.
11814 * configure: Regenerate.
11815
aad9eab9
YQ
118162012-04-19 Yao Qi <yao@codesourcery.com>
11817
11818 * Makefile.in (SFILES): Add common/vec.c.
11819 (OBS): Add vec.o.
11820 (vec.o): New rule.
11821
3e10640f
YQ
118222012-04-19 Yao Qi <yao@codesourcery.com>
11823
11824 * remote-utils.c (prepare_resume_reply): Replace with macro
11825 target_core_of_thread.
11826 * server.c (handle_qxfer_threads_proper): Likewise.
11827 * target.h (traget_core_of_thread): New macro.
11828
71622373
PA
118292012-04-18 Pedro Alves <palves@redhat.com>
11830
11831 * aclocal.m4: Regenerate.
11832 * configure: Regenerate.
11833
80d26939
YQ
118342012-04-16 Yao Qi <yao@codesourcery.com>
11835
11836 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
11837 duplicated on address.
11838
42476b70
YQ
118392012-04-16 Yao Qi <yao@codesourcery.com>
11840
11841 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
11842 (struct tracepoint_action_ops) <send>: New field.
11843 (m_tracepoint_action_send, r_tracepoint_action_send): New.
11844 (agent_expr_send, x_tracepoint_action_send): New.
11845 (l_tracepoint_action_send): New.
11846 (cmd_qtdp): Download and install tracepoint
11847 according to `use_agent'.
11848 (run_inferior_command): Add one more parameter `len'.
11849 Update callers.
11850 (tracepoint_send_agent): New.
11851 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
11852
7bc83639
YQ
118532012-04-16 Yao Qi <yao@codesourcery.com>
11854
11855 * tracepoint.c (download_tracepoints): Moved to ...
11856 (cmd_qtstart): ... here.
11857
5f18041e
YQ
118582012-04-14 Yao Qi <yao@codesourcery.com>
11859
11860 * tracepoint.c: Include inttypes.h.
11861 (struct collect_memory_action): Use sized types.
11862 (struct tracepoint): Likewise.
11863 (cmd_qtdp, stop_tracing): Update print specifiers.
11864 (cmd_qtp, response_tracepoint): Likewise.
11865 (collect_data_at_tracepoint): Likewise.
11866 (collect_data_at_step): Likewise.
11867
55a8c076
YQ
118682012-04-14 Yao Qi <yao@codesourcery.com>
11869
11870 Import gnulib module inttypes.
11871 * aclocal.m4, config.in, configure: Regenerated.
11872
dc750257
YQ
118732012-04-14 Yao Qi <yao@codesourcery.com>
11874
11875 * Makefile.in (maintainer-clean, realclean, distclean): Remove
11876 Makefile and config.status at last.
11877
0ab5faf9
YQ
118782012-04-13 Yao Qi <yao@codesourcery.com>
11879
11880 * tracepoint.c: Include stdint.h unconditionally.
11881
18f5fd81
TJB
118822012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11883
11884 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
11885 on BFD_HAVE_SYS_PROCFS_TYPE.
11886 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
11887 * configure: Regenerate.
11888 * config.in: Likewise.
11889
4d47af5c
L
118902012-04-13 H.J. Lu <hongjiu.lu@intel.com>
11891
11892 * Makefile.in (clean): Also remove x32.c x32-linux.c
11893 x32-avx.c x32-avx-linux.c.
11894 (x32.o): New target.
11895 (x32.c): Likewise.
11896 (x32-linux.o): Likewise.
11897 (x32-linux.c): Likewise.
11898 (x32-avx.o): Likewise.
11899 (x32-avx.c): Likewise.
11900 (x32-avx-linux.o): Likewise.
11901 (x32-avx-linux.c): Likewise.
11902
11903 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
11904 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
11905 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
11906 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
11907 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
11908 i386/x32-avx-linux.xml.
11909
11910 * linux-x86-low.c (init_registers_x32_linux): New prototype.
11911 (init_registers_x32_avx_linux): Likwise.
11912 (x86_linux_update_xmltarget): Call init_registers_x32_linux
11913 or init_registers_x32_avx_linux if linux_is_elf64 is false.
11914
ecedbe58
PA
119152012-04-13 Pedro Alves <palves@redhat.com>
11916
11917 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
11918 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
11919 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
11920 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
11921 the sub-make.
11922
c92b5177
L
119232012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11924
11925 * linux-x86-low.c (compat_x32_clock_t): New.
11926 (compat_x32_siginfo_t): Likewise.
11927 (compat_x32_siginfo_from_siginfo): Likewise.
11928 (siginfo_from_compat_x32_siginfo): Likewise.
11929 (linux_is_elf64): Likewise.
11930 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
11931 and siginfo_from_compat_x32_siginfo for x32.
11932 (x86_arch_setup): Set linux_is_elf64.
11933
214d508e
L
119342012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11935
11936 PR gdb/13969
11937 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
11938 e_machine field.
11939 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
11940 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
11941 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
11942 compatible with process.
11943
c9a1864a
YQ
119442012-04-12 Yao Qi <yao@codesourcery.com>
11945
11946 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
11947 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
11948 (install-only, install-info, clean): Handle sub dir gnulib.
11949 (all-lib, am--refresh): New targets.
11950 (memmem.o): Remove target.
11951 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
11952 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
11953 (AC_REPLACE_FUNCS): Remove memmem.
11954 Invoke gl_INIT and AM_INIT_AUTOMAKE.
11955 (AC_OUTPUT): Generate Makefile in gnulib/.
11956 * aclocal.m4, config.in, configure: Regenerated.
11957
367ba2c2
MR
119582012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
11959
11960 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
11961
9d236627
PA
119622012-04-05 Pedro Alves <palves@redhat.com>
11963
11964 -Werror=strict-aliasing
11965
11966 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
11967 pointer.
11968
111217b3
PA
119692012-04-04 Pedro Alves <palves@redhat.com>
11970
11971 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
11972 (sparc_store_gregset_from_stack, sparc_store_gregset)
11973 (sparc_breakpoint_at): Fix formatting.
11974
8365dcf5
TJB
119752012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11976
11977 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
11978 are available.
11979 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
11980 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
11981 * config.in: Regenerate.
11982 * configure: Likewise.
11983
689cc2ae
PA
119842012-03-29 Pedro Alves <palves@redhat.com>
11985
11986 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
11987 Correct ptrace arguments.
11988
c14dfd32
PA
119892012-03-28 Pedro Alves <palves@redhat.com>
11990
11991 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
11992 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
11993 (IA64_FR1_REGNUM): New defines.
11994 (ia64_fetch_register): New.
11995 (the_low_target): Install it.
11996 * linux-low.h (struct linux_target_ops) <fetch_register>: New
11997 field.
11998 * linux-low.c (linux_fetch_registers): Try the
11999 the_low_target.fetch_register hook first.
12000
12001 * linux-arm-low.c (the_low_target): Adjust.
12002 * linux-bfin-low.c (the_low_target): Adjust.
12003 * linux-cris-low.c (the_low_target): Adjust.
12004 * linux-crisv32-low.c (the_low_target): Adjust.
12005 * linux-m32r-low.c (the_low_target): Adjust.
12006 * linux-m68k-low.c (the_low_target): Adjust.
12007 * linux-mips-low.c (the_low_target): Adjust.
12008 * linux-ppc-low.c (the_low_target): Adjust.
12009 * linux-s390-low.c (the_low_target): Adjust.
12010 * linux-sh-low.c (the_low_target): Adjust.
12011 * linux-sparc-low.c (the_low_target): Adjust.
12012 * linux-tic6x-low.c (the_low_target): Adjust.
12013 * linux-x86-low.c (the_low_target): Adjust.
12014 * linux-xtensa-low.c (the_low_target): Adjust.
12015
63c88e13
PA
120162012-03-26 Pedro Alves <palves@redhat.com>
12017
12018 * server.c (handle_qxfer_libraries): Don't bail early if
12019 the_target->qxfer_libraries_svr4 is not NULL.
12020
fb723180
PA
120212012-03-26 Pedro Alves <palves@redhat.com>
12022
12023 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
12024
0afae3cf
PA
120252012-03-23 Pedro Alves <palves@redhat.com>
12026
12027 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
12028 "library-list-svr4" element's start tag when the the DSO list is
12029 empty.
12030
485f1ee4
PA
120312012-03-23 Pedro Alves <palves@redhat.com>
12032
12033 * linux-low.c (read_one_ptr): Read the inferior's pointer through
12034 a variable whose type size is the same as the inferior's pointer
12035 size.
12036
a5362b9a
TS
120372012-03-21 Thomas Schwinge <thomas@codesourcery.com>
12038
12039 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
12040 struct siginfo.
12041 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
12042 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
12043 * linux-low.h: Include <signal.h>.
12044 (struct siginfo): Remove forward declaration.
12045 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
12046 struct siginfo.
12047
d226c142
MF
120482012-03-21 Mike Frysinger <vapier@gentoo.org>
12049
12050 * .gitignore: Ignore more files.
12051
122f36ef
PA
120522012-03-19 Pedro Alves <palves@redhat.com>
12053 Jan Kratochvil <jan.kratochvil@redhat.com>
12054
12055 * server.c (cont_thread, general_thread): Add describing comments.
12056 (start_inferior): Clear `cont_thread'.
12057 (handle_v_cont): Don't set `cont_thread' if resuming all threads
12058 of a process.
12059
fc3e5175
YQ
120602012-03-15 Yao Qi <yao@codesourcery.com>
12061
12062 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
12063 handling to ...
12064 (cmd_qtdp): ... here.
12065
8d0d92cd
YQ
120662012-03-15 Yao Qi <yao@codesourcery.com>
12067
12068 * tracepoint.c (struct tracepoint_action_ops): New.
12069 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
12070 (m_tracepoint_action_download): New.
12071 (r_tracepoint_action_download): New.
12072 (x_tracepoint_action_download): New.
12073 (l_tracepoint_action_download): New.
12074 (add_tracepoint_action): Install `action->ops' according type.
12075 (download_tracepoint_1): Move code `download' function pointer
12076 of various tracepoint_action_ops.
12077
87b0bb13
JK
120782012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12079
12080 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
12081 linux_ptrace_attach_warnings.
12082
5f572dec
JK
120832012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
12084
12085 * Makefile.in (linux-ptrace.o): New.
12086 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
12087 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
12088 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
12089 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
12090 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
12091 of these targets.
12092 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
12093
f4647387
YQ
120942012-03-08 Yao Qi <yao@codesourcery.com>
12095 Pedro Alves <palves@redhat.com>
12096
12097 Fix PR server/13392.
12098 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
12099 offset of JMP insn.
12100 * tracepoint.c (remove_tracepoint): New.
12101 (cmd_qtdp): Call remove_tracepoint when failed to install.
12102
9b224c5e
PA
121032012-03-07 Pedro Alves <palves@redhat.com>
12104
12105 * linux-low.c (get_detach_signal): New.
12106 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
12107 Pass on pending signals to PTRACE_DETACH. Check the result of the
12108 ptrace call.
12109 * server.c (program_signals, program_signals_p): New.
12110 (handle_general_set): Handle QProgramSignals.
12111 * server.h (program_signals, program_signals_p): Declare.
12112
e237a7e2
JK
121132012-03-05 Pedro Alves <palves@redhat.com>
12114 Jan Kratochvil <jan.kratochvil@redhat.com>
12115
12116 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
12117 New comment why.
12118
5808517f
YQ
121192012-03-03 Yao Qi <yao@codesourcery.com>
12120
12121 * tracepoint.c (tracepoint_look_up_symbols): Update call to
12122 agent_look_up_symbols.
12123
58b4daa5
YQ
121242012-03-03 Yao Qi <yao@codesourcery.com>
12125
12126 * Makefile.in (linux-low.o): Keep dependence on agent.h.
12127 (linux-x86-low.o): Likewise.
12128 * server.h: Remove in_process_agent_loaded.
12129 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
12130 common/agent.c.
12131 Update callers.
12132
8ffcbaaf
YQ
121332012-03-03 Yao Qi <yao@codesourcery.com>
12134
12135 * tracepoint.c (gdb_agent_capability): New global.
12136 (in_process_agent_loaded_ust): Renamed to
12137 `in_process_agent_supports_ust'.
12138 Update callers.
12139 (in_process_agent_supports_ust): Call agent_capability_check.
12140 (clear_installed_tracepoints): Assert that agent supports
12141 agent.
12142
d1feda86
YQ
121432012-03-03 Yao Qi <yao@codesourcery.com>
12144
12145 * linux-low.c (linux_supports_agent): New.
12146 (linux_target_ops): Initialize field `supports_agent' with
12147 linux_supports_agent.
12148 * target.h (struct target_ops) <supports_agent>: New.
12149 (target_supports_agent): New macro.
12150 * server.c (handle_general_set): Handle packet 'QAgent'.
12151 (handle_query): Send `QAgent+'.
12152 * Makefile.in (server.o): Depends on agent.h.
12153
2fa291ac
YQ
121542012-03-03 Yao Qi <yao@codesourcery.com>
12155
12156 * Makefile.in (OBS): Add agent.o.
12157 Add new rule for agent.o.
12158 Track dependence of tracepoint.c on agent.h.
12159 * tracepoint.c (run_inferior_command_1):
12160 (run_inferior_command): Call agent_run_command.
12161 (gdb_ust_connect_sync_socket): Deleted. Move it to
12162 common/agent.c.
12163 (resume_thread, stop_thread): Likewise.
12164 (gdb_ust_socket_init): Renamed to ...
12165 (gdb_agent_socket_init): ... New.
12166 (gdb_ust_thread): Renamed to ...
12167 (gdb_agent_helper_thread): ... New.
12168 (gdb_ust_init): Move some code to ...
12169 (gdb_agent_init): ... here. New.
12170 [HAVE_UST]: Call gdb_ust_init.
12171 (initialize_tracepoint_ftlib): Call gdb_agent_init.
12172 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
12173 * config.in, configure: Regenerated.
12174
05044653
PA
121752012-03-02 Pedro Alves <palves@redhat.com>
12176
12177 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
12178 * linux-low.c (struct simple_pid_list): New.
12179 (stopped_pids): New a struct simple_pid_list pointer.
12180 (add_to_pid_list, pull_pid_from_list): New.
12181 (handle_extended_wait): Don't assume the first signal new children
12182 report is SIGSTOP. Adjust call to pull_pid_from_list.
12183 (linux_wait_for_lwp): Adjust.
12184
8d00225b
YQ
121852012-03-02 Yao Qi <yao@codesourcery.com>
12186
12187 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
12188 debug log.
12189
19560ba5
YQ
121902012-03-02 Yao Qi <yao@codesourcery.com>
12191
12192 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
12193 `stop_pc' and `tpoint'. Update caller.
12194
1faeff08
MR
121952012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
12196
12197 * linux-low.h (linux_target_ops): Add regset_bitmap member.
12198 * linux-low.c (use_linux_regsets): New macro.
12199 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
12200 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
12201 (linux_register_in_regsets): New function.
12202 (usr_fetch_inferior_registers): Skip registers covered by
12203 regsets.
12204 (usr_store_inferior_registers): Likewise.
12205 (usr_fetch_inferior_registers): New macro.
12206 (usr_store_inferior_registers): Likewise.
12207 (linux_fetch_registers): Handle mixed regset/non-regset targets.
12208 (linux_store_registers): Likewise.
12209 * linux-mips-low.c (init_registers_mips_dsp_linux): New
12210 prototype.
12211 (init_registers_mips64_dsp_linux): Likewise.
12212 (init_registers_mips_linux): New macro.
12213 (init_registers_mips_dsp_linux): Likewise.
12214 (mips_dsp_num_regs): Likewise.
12215 (DSP_BASE, DSP_CONTROL): New fallback macros.
12216 (mips_base_regs): New macro.
12217 (mips_regmap): Use it. Fix the size.
12218 (mips_dsp_regmap): New variable.
12219 (mips_dsp_regset_bitmap): Likewise.
12220 (mips_arch_setup): New function.
12221 (mips_cannot_fetch_register): Use the_low_target.regmap rather
12222 than mips_regmap.
12223 (mips_cannot_store_register): Likewise.
12224 (the_low_target): Update .arch_setup, .num_regs and .regmap
12225 initializers. Add .regset_bitmap initializer.
12226 * linux-arm-low.c (the_low_target): Add .regset_bitmap
12227 initializer.
12228 * linux-bfin-low.c (the_low_target): Likewise.
12229 * linux-cris-low.c (the_low_target): Likewise.
12230 * linux-crisv32-low.c (the_low_target): Likewise.
12231 * linux-ia64-low.c (the_low_target): Likewise.
12232 * linux-m32r-low.c (the_low_target): Likewise.
12233 * linux-m68k-low.c (the_low_target): Likewise.
12234 * linux-ppc-low.c (the_low_target): Likewise.
12235 * linux-s390-low.c (the_low_target): Likewise.
12236 * linux-sh-low.c (the_low_target): Likewise.
12237 * linux-sparc-low.c (the_low_target): Likewise.
12238 * linux-tic6x-low.c (the_low_target): Likewise.
12239 * linux-x86-low.c (the_low_target): Likewise.
12240 * linux-xtensa-low.c (the_low_target): Likewise.
12241 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
12242 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
12243 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
12244 srv_xmlfiles.
12245 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
12246 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
12247
c03e6ccc
YQ
122482012-02-29 Yao Qi <yao@codesourcery.com>
12249 Pedro Alves <palves@redhat.com>
12250
12251 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
12252 `step_over_finished' is true.
12253
644cebc9
PA
122542012-02-27 Pedro Alves <palves@redhat.com>
12255
12256 * linux-low.c (pid_is_stopped): Delete, moved to common/.
12257 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
12258
c14d7ab2
PA
122592012-02-27 Pedro Alves <palves@redhat.com>
12260
12261 PR server/9684
12262 * linux-low.c (pid_is_stopped): New.
12263 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
12264
412c89dd
LM
122652012-02-25 Luis Machado <lgustavo@codesourcery.com>
12266
12267 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
12268 of conditions.
12269
b745defe
MR
122702012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
12271
12272 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
12273
9f3a5c85
LM
122742012-02-24 Luis Machado <lgustavo@codesourcery>
12275
12276 * server.c (handle_query): Advertise support for target-side
12277 breakpoint condition evaluation.
12278 (process_point_options): New function.
12279 (process_serial_event): When inserting a breakpoint, check for
12280 a target-side condition that should be evaluated.
12281
12282 * mem-break.c: Include regcache.h and ax.h.
12283 (point_cond_list_t): New data structure.
12284 (breakpoint) <cond_list>: New field.
12285 (find_gdb_breakpoint_at): Make non-static.
12286 (delete_gdb_breakpoint_at): Clear any target-side
12287 conditions.
12288 (clear_gdb_breakpoint_conditions): New function.
12289 (add_condition_to_breakpoint): Likewise.
12290 (add_breakpoint_condition): Likewise.
12291 (gdb_condition_true_at_breakpoint): Likewise.
12292 (gdb_breakpoint_here): Return result directly instead
12293 of going through a local variable.
12294
12295 * mem-break.h (find_gdb_breakpoint_at): New prototype.
12296 (clear_gdb_breakpoint_conditions): Likewise.
12297 (add_breakpoint_condition): Likewise.
12298 (gdb_condition_true_at_breakpoint): Likewise.
12299
12300 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
12301 (need_step_over_p): Take target-side breakpoint condition into
12302 consideration.
12303
5e1dc496
LM
123042012-02-24 Luis Machado <lgustavo@codesourcery>
12305
12306 * server.h: Include tracepoint.h.
12307 (agent_mem_read, agent_get_trace_state_variable_value,
12308 agent_set_trace_state_variable_value,
12309 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
12310 get_set_tsv_func_addr): New prototypes.
12311
12312 * ax.h: New include file.
12313 * ax.c: New source file.
12314
12315 * tracepoint.c: Include ax.h.
12316 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
12317 agent_expr, eval_result_type): Move to ax.h.
12318 (parse_agent_expr): Rename to ...
12319 (gdb_parse_agent_expr): ... this, make it non-static and move
12320 to ax.h.
12321 (unparse_agent_expr) Rename to ...
12322 (gdb_unparse_agent_expr): ... this, make it non-static and move
12323 to ax.h.
12324 (eval_agent_expr): Rename to ...
12325 (eval_tracepoint_agent_expr): ... this.
12326 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
12327 forward declarations.
12328 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
12329 (agent_get_trace_state_variable_value): New function.
12330 (agent_set_trace_state_variable_value): New function.
12331 (cmd_qtdp): Call gdb_parse_agent_expr (...).
12332 (response_tracepoint): Call gdb_unparse_agent_expr (...).
12333 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
12334 (condition_true_at_tracepoint): Likewise.
12335 (parse_agent_expr): Rename to ...
12336 (gdb_parse_agent_expr): ... this and move to ax.c.
12337 (unparse_agent_expr): Rename to ...
12338 (gdb_unparse_agent_expr): ... this and move to ax.c.
12339 (gdb_agent_op_name): Move to ax.c.
12340 (eval_agent_expr): Rename to ...
12341 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
12342 and move to ax.c.
12343 (eval_tracepoint_agent_expr): New function.
12344 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 12345 non-static.
5e1dc496
LM
12346 (current_insn_ptr, emit_error, struct bytecode_address): Move to
12347 ax.c.
12348 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
12349 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
12350 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
12351 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
12352 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
12353 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
12354 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
12355 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
12356 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
12357 (compile_bytecodes): Remove forward declaration.
12358 (is_goto_target): Move to ax.c.
12359 (compile_bytecodes): Move to ax.c and call
12360 agent_get_trace_state_variable_value (...) and
12361 agent_set_trace_state_variable_value (...).
12362
12363 * Makefile.in: Update ax.c and IPA dependencies.
12364
277e4e52
PA
123652012-02-24 Pedro Alves <palves@redhat.com>
12366
12367 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
12368 (cmd_bigqtbuffer_circular): ... this. Only handle
12369 'QTBuffer:circular:'.
12370 (handle_tracepoint_general_set): Adjust.
12371
bf4c19f7
YQ
123722012-02-16 Yao Qi <yao@codesourcery.com>
12373
12374 * inferiors.c: Move code to ...
12375 * dll.c: .... here. New.
12376 * server.h: Declare clear_dlls.
12377 * Makefile.in (SFILES): Add dll.c.
12378 (OBS): Add dll.o
12379 (dll.o): New rule.
12380
d73f2619
YQ
123812012-02-11 Yao Qi <yao@codesourcery.com>
12382
12383 * server.c: (handle_monitor_command): Add a new parameter
12384 `own_buf'.
12385 (handle_query): Update caller.
12386
f8255c2a
JB
123872012-02-09 Joel Brobecker <brobecker@adacore.com>
12388
12389 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
12390 * configure, config.in: Regenerate.
12391 * hostio.c: Provide an alternate implementation if HAVE_READLINK
12392 is not defined.
12393
da84f473
PA
123942012-02-02 Pedro Alves <palves@redhat.com>
12395
12396 Try SIGKILL first, then PTRACE_KILL.
12397 * linux-low.c (linux_kill_one_lwp): New.
12398 (linux_kill_one_lwp): Rename to ...
12399 (kill_one_lwp_callback): ... this. Use the new
12400 linux_kill_one_lwp.
12401
e886a173
PA
124022012-02-02 Pedro Alves <palves@redhat.com>
12403
12404 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
12405 inferior.
12406
be07f1a2
PA
124072012-01-27 Pedro Alves <palves@redhat.com>
12408
12409 * linux-low.c (linux_child_pid_to_exec_file): Delete.
12410 (elf_64_file_p): Make static.
12411 (linux_pid_exe_is_elf_64_file): New.
12412 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
12413 Delete declarations.
12414 (linux_pid_exe_is_elf_64_file): Declare.
12415 * linux-x86-low.c (x86_arch_setup): Use
12416 linux_pid_exe_is_elf_64_file.
12417
d8301ad1
JK
124182012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12419
12420 * linux-low.c (linux_wait_for_event_1): Rename to ...
12421 (linux_wait_for_event): ... here and merge it with former
12422 linux_wait_for_event - new variable wait_ptid, use it.
12423 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
12424
01b17894
PA
124252012-01-23 Pedro Alves <palves@redhat.com>
12426
12427 * server.c (main): Avoid yet another case of infinite loop while
12428 detaching/killing after a longjmp.
12429
e825046f
JK
124302012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12431
12432 Code cleanup.
12433 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
12434
b9e7b9c3
UW
124352012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12436
12437 * hostio.c (handle_readlink): New function.
12438 (handle_vFile): Call it to handle "vFile:readlink" packets.
12439
901f9912
UW
124402012-01-20 Pedro Alves <palves@redhat.com>
12441 Ulrich Weigand <ulrich.weigand@linaro.org>
12442
12443 * server.c (handle_v_requests): Only support vAttach and vRun to
12444 start multiple processes when in extended protocol mode.
12445
fc1ab1a0
PA
124462012-01-17 Pedro Alves <palves@redhat.com>
12447
12448 * tracepoint.c (initialize_tracepoint): Use mmap instead of
12449 memalign plus mprotect to allocate the scratch buffer.
12450
7d5d4e98
PA
124512012-01-13 Pedro Alves <palves@redhat.com>
12452
12453 * server.c (attach_inferior): Clear `cont_thread'.
12454
f128d5e9
PA
124552012-01-13 Pedro Alves <palves@redhat.com>
12456
12457 * server.c (main): Avoid infinite loop while detaching/killing
12458 after a longjmp.
12459
06db92f0
DE
124602012-01-09 Doug Evans <dje@google.com>
12461
12462 * server.c (start_inferior): Set last_ptid in --wrapper case.
12463
32d92999
YQ
124642012-01-06 Yao Qi <yao@codesourcery.com>
12465
12466 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
12467 defined.
12468 [IN_PROCESS_AGENT] (debug_agent): New global variable.
12469
5e0a92a9
YQ
124702012-01-04 Yao Qi <yao@codesourcery.com>
12471
12472 * tracepoint.c (cmd_qtdp): Print debug message
12473 for static tracepoint.
12474
ae639e8c
YQ
124752012-01-04 Yao Qi <yao@codesourcery.com>
12476
12477 * tracepoint.c (trace_vdebug): Differentiate debug message
12478 between gdbserver and IPA.
12479
f72429c5
YQ
124802012-01-03 Yao Qi <yao@codesourcery.com>
12481
12482 * tracepoint.c (tracepoint_was_hit): Don't collect for
12483 static tracepoint.
12484
12c3e59c
JB
124852012-01-02 Joel Brobecker <brobecker@adacore.com>
12486
12487 * terminal.h: Reformat copyright header.
12488
67827812
JB
124892012-01-02 Joel Brobecker <brobecker@adacore.com>
12490
12491 * server.c (gdbserver_version): Update copyright year.
12492 * gdbreplay.c (gdbreplay_version): Likewise.
12493
3e52c33d
JK
124942011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
12495
12496 * linux-low.c (linux_create_inferior): Put empty if clause for write.
12497
12498 Revert:
12499 2011-12-18 Hui Zhu <teawater@gmail.com>
12500 * linux-low.c (linux_create_inferior): Save return value to ret.
12501
66f1260e
HZ
125022011-12-18 Hui Zhu <teawater@gmail.com>
12503
12504 * linux-low.c (linux_create_inferior): Save return value to ret.
12505
e77616d7
DE
125062011-12-16 Doug Evans <dje@google.com>
12507
e7b06c57
DE
12508 * linux-low.c (linux_create_inferior): If stdio connection,
12509 redirect stdin from /dev/null, stdout to stderr.
12510 * remote-utils.c (remote_is_stdio): New static global.
12511 (remote_connection_is_stdio): New function.
12512 (remote_prepare): Handle stdio connection.
12513 (remote_open): Ditto.
12514 (remote_close): Don't close stdin for stdio connections.
12515 (read_prim,write_prim): New functions. Replace all calls to
12516 read/write to these.
12517 * server.c (main): Watch for "-" argument. Move call to
12518 remote_prepare before start_inferior.
12519 * server.h (STDIO_CONNECTION_NAME): New macro.
12520 (remote_connection_is_stdio): Declare.
12521
e77616d7
DE
12522 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
12523 in debugging output.
12524
82067193
YQ
125252011-12-15 Yao Qi <yao@codesourcery.com>
12526
12527 * tracepoint.c: Include sys/syscall.h.
12528 (gdb_ust_thread): Remove preprocessor conditional.
12529
82bfbe7e
PA
125302011-12-14 Pedro Alves <pedro@codesourcery.com>
12531
12532 * linux-low.c (linux_detach_one_lwp): Call
12533 the_low_target.prepare_to_resume before detaching.
12534
712c6575
YQ
125352011-12-14 Yao Qi <yao@codesourcery.com>
12536
12537 * tracepoint.c (gdb_ust_thread): Don't ignore return value
12538 of write.
12539
d54d1edf
YQ
125402011-12-14 Yao Qi <yao@codesourcery.com>
12541
12542 * i386-low.c (i386_low_stopped_data_address): Initialize local
12543 variable `control'.
12544
6210a125
PA
125452011-12-13 Pedro Alves <pedro@codesourcery.com>
12546
12547 PR remote/13492
12548
12549 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
12550 DR_CONTROL unless necessary. Extend comments.
12551 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
12552 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
12553
2ece8244
YQ
125542011-12-13 Yao Qi <yao@codesourcery.com>
12555
12556 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
12557 macros.
12558 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
12559
784867a5
JK
125602011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
12561
12562 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
12563 Print new debug message for such case.
12564
6bf36717
JK
125652011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12566
12567 Fix overlapping memcpy.
12568 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
12569 the read_inferior_memory transfer.
12570 (delete_fast_tracepoint_jump): New variable buf. Use it for the
12571 write_inferior_memory transfer.
12572 (set_fast_tracepoint_jump): New variable buf. Use it for the
12573 read_inferior_memory and write_inferior_memory transfers.
12574 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
12575 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
12576 Use it for the write_inferior_memory transfer.
12577 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
12578 buffers.
12579
50275556
MR
125802011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12581
12582 * linux-low.c (fetch_register, store_register): Make code
12583 consistent, fix formatting.
12584
7325beb4
MR
125852011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12586
12587 * linux-low.c (usr_store_inferior_registers): Factor out code
12588 to handle individual registers into...
12589 (store_register): ... this new function.
12590
c642a434
UW
125912011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
12592
12593 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
12594 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
12595 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
12596 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
12597 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
12598 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
12599 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
12600 (srv_xmlfiles): Add new XML files.
12601
12602 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
12603 and <sys/uio.h>.
12604 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
12605 (init_registers_s390_linux32v1): Add prototype.
12606 (init_registers_s390_linux32v2): Likewise.
12607 (init_registers_s390_linux64v1): Likewise.
12608 (init_registers_s390_linux64v2): Likewise.
12609 (init_registers_s390x_linux64v1): Likewise.
12610 (init_registers_s390x_linux64v2): Likewise.
12611 (s390_num_regs): Increment to 52.
12612 (s390_regmap): Add orig_r2 register.
12613 (s390_num_regs_3264): Increment to 68.
12614 (s390_regmap_3264): Add orig_r2 register.
12615 (s390_collect_ptrace_register): Handle orig_r2 register.
12616 (s390_supply_ptrace_register): Likewise.
12617 (s390_fill_last_break): New function.
12618 (s390_store_last_break): Likewise.
12619 (s390_fill_system_call): New function.
12620 (s390_store_system_call): Likewise.
12621 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
12622 register sets.
12623 (s390_check_regset): New function.
12624 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
12625 NT_S390_SYSTEM_CALL regsets and use appropriate description.
12626 Update target_regsets for available register sets.
12627
2268b414
JK
126282011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
12629 Jan Kratochvil <jan.kratochvil@redhat.com>
12630
12631 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
12632 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
12633 New.
12634 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
12635 * linux-low.h (struct process_info_private): New member r_debug.
12636 * server.c (handle_qxfer_libraries): Call
12637 the_target->qxfer_libraries_svr4.
12638 (handle_qxfer_libraries_svr4): New function.
12639 (qxfer_packets): New entry "libraries-svr4".
12640 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
12641 * target.h (struct target_ops): New member qxfer_libraries_svr4.
12642 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
12643 PACKET_qXfer_libraries_svr4.
12644
d6db1fab
UW
126452011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
12646
12647 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
12648 PSW address/mask between 8-byte and 16-byte formats.
12649 (s390_supply_ptrace_register): Likewise.
12650 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
12651 basic addressing mode bit.
12652
242f5f1c
SS
126532011-11-24 Stan Shebs <stan@codesourcery.com>
12654
12655 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
12656
f196051f
SS
126572011-11-17 Stan Shebs <stan@codesourcery.com>
12658
12659 * tracepoint.c (struct tracepoint): New field traceframe_usage.
12660 (tracing_start_time): New global.
12661 (tracing_stop_time): New global.
12662 (tracing_user_name): New global.
12663 (tracing_notes): New global.
12664 (tracing_stop_note): New global.
12665 (cmd_qtstart): Set traceframe_usage, start_time.
12666 (stop_tracing): Set stop_time.
12667 (cmd_qtstatus): Report additional status.
12668 (cmd_qtp): New function.
12669 (handle_tracepoint_query): Call it.
12670 (cmd_qtnotes): New function.
12671 (handle_tracepoint_general_set): Call it.
12672 (get_timestamp): Rename from tsv_get_timestamp.
12673
405f8e94
SS
126742011-11-14 Stan Shebs <stan@codesourcery.com>
12675 Kwok Cheung Yeung <kcy@codesourcery.com>
12676
12677 * linux-x86-low.c (small_jump_insn): New.
12678 (i386_install_fast_tracepoint_jump_pad): Add arguments for
12679 trampoline and error message, build a trampoline and issue a small
12680 jump instruction to it.
12681 (x86_install_fast_tracepoint_jump_pad): Add arguments for
12682 trampoline and error message.
12683 (x86_get_min_fast_tracepoint_insn_len): New.
12684 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
12685 * linux-low.h (struct linux_target_ops): Add arguments to
12686 install_fast_tracepoint_jump_pad operation, add new operation.
12687 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
12688 arguments.
12689 (linux_get_min_fast_tracepoint_insn_len): New function.
12690 (linux_target_op): Add new operation.
12691 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
12692 (gdb_trampoline_buffer_end): Ditto.
12693 (gdb_trampoline_buffer_error): Ditto.
12694 (struct ipa_sym_addresses): Add fields for new IPA variables.
12695 (symbol_list): Add entries for new IPA variables.
12696 (struct tracepoint): Add fields to hold the address range of the
12697 trampoline used by the tracepoint.
12698 (trampoline_buffer_head): New static variable.
12699 (trampoline_buffer_tail): Ditto.
12700 (claim_trampoline_space): New function.
12701 (have_fast_tracepoint_trampoline_buffer): New function.
12702 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
12703 structure.
12704 (install_fast_tracepoint): Ditto, also add error buffer argument.
12705 (cmd_qtminftpilen): New function.
12706 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
12707 (fast_tracepoint_from_trampoline_address): New function.
12708 (fast_tracepoint_collecting): Handle trampoline as part of jump
12709 pad space.
12710 (set_trampoline_buffer_space): New function.
12711 (initialize_tracepoint): Initialize new IPA variables.
12712 * target.h (struct target_ops): Add arguments to
12713 install_fast_tracepoint_jump_pad operation, add new
12714 get_min_fast_tracepoint_insn_len operation.
12715 (target_get_min_fast_tracepoint_insn_len): New.
12716 (install_fast_tracepoint_jump_pad): Add arguments.
12717 * server.h (IPA_BUFSIZ): Define.
12718 * linux-i386-ipa.c: Include extra header files.
12719 (initialize_fast_tracepoint_trampoline_buffer): New function.
12720 (initialize_low_tracepoint): Call it.
12721 * server.h (set_trampoline_buffer_space): Declare.
12722 (claim_trampoline_space): Ditto.
12723 (have_fast_tracepoint_trampoline_buffer): Ditto.
12724
1e4d1764
YQ
127252011-11-14 Yao Qi <yao@codesourcery.com>
12726
12727 * server.c (handle_query): Handle InstallInTrace for qSupported.
12728 * tracepoint.c (add_tracepoint): Sort list.
12729 (install_tracepoint, download_tracepoint): New.
12730 (cmd_qtdp): Call them to install and download tracepoints.
12731 (sort_tracepoints): Removed.
12732 (cmd_qtstart): Update.
12733
5c73ff4e
YQ
127342011-11-14 Yao Qi <yao@codesourcery.com>
12735
12736 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
12737 * mem-break.h: Declare.
12738 * tracepoint.c (cmd_qtstart): Move some code to ...
12739 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
12740 New.
12741 (download_tracepoints): Move some code to ...
12742 (download_tracepoint_1): ... here. New.
12743
86a30030
YQ
127442011-11-08 Yao Qi <yao@codesourcery.com>
12745
12746 * remote-utils.c (relocate_instruction): A comment fix.
12747
8d26e50c
JB
127482011-11-07 Joel Brobecker <brobecker@adacore.com>
12749
12750 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
12751 (i386_dr_low_get_control, i386_dr_low_get_status): Use
12752 dr_status_mirror and dr_control_mirror from debug_reg_state.
12753 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
12754 (i386_initial_stuff): Remove use of deleted globals.
12755 (i386_get_thread_context, i386_set_thread_context,
12756 i386_thread_added): Use dr_status_mirror and dr_control_mirror
12757 from debug_reg_state.
12758
a59306a3
YQ
127592011-11-05 Yao Qi <yao@codesourcery.com>
12760
12761 * tracepoint.c (gdb_collect): Loop over tracepoints of same
12762 address as TPOINT's.
12763
3065dfb6
SS
127642011-11-02 Stan Shebs <stan@codesourcery.com>
12765
12766 * tracepoint.c (agent_mem_read_string): New function.
12767 (eval_agent_expr): Call it for tracenz.
12768 * server.c (handle_query): Report support for tracenz.
12769
fd0d8c7c
YQ
127702011-11-02 Yao Qi <yao@codesourcery.com>
12771
12772 * tracepoint.c (cmd_qtstart): Remove unused local variables.
12773
609086b1
YQ
127742011-11-02 Yao Qi <yao@codesourcery.com>
12775
12776 * target.h: Fix a typo in comment.
12777
b9fd1791
PA
127782011-10-31 Pedro Alves <pedro@codesourcery.com>
12779
12780 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
12781 clobber the breakpoints' shadows with fast tracepoint jumps.
12782 * mem-break.h (check_mem_write): Add `myaddr' parameter.
12783 * target.c (write_inferior_memory): Also pass MYADDR down to
12784 check_mem_write.
12785
03583c20
UW
127862011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
12787
12788 * configure.ac: Check support for personality routine.
12789 * configure: Regenerate.
12790 * config.in: Likewise.
12791 * linux-low.c: Include <sys/personality.h>.
12792 Define ADDR_NO_RANDOMIZE if necessary.
12793 (linux_create_inferior): Disable address space randomization when
12794 forking inferior, if requested.
12795 (linux_supports_disable_randomization): New function.
12796 (linux_target_ops): Install it.
12797 * server.h (disable_randomization): Declare.
12798 * server.c (disable_randomization): New global variable.
12799 (handle_general_set): Handle QDisableRandomization.
12800 (handle_query): Likewise for qSupported.
12801 (main): Support --disable-randomization and --no-disable-randomization
12802 command line arguments.
12803 * target.h (struct target_ops): Add supports_disable_randomization.
12804 (target_supports_disable_randomization): New macro.
12805
723b724b
MF
128062011-09-29 Mike Frysinger <vapier@gentoo.org>
12807
12808 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
12809 ifdef check.
12810 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
12811 [!PT_GETDSBT] (target_loadmap): New definition.
12812 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
12813 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
12814 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
12815 and PT_GETDSBT to LINUX_LOADMAP.
12816 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
12817 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
12818
55329a5c 128192011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
12820
12821 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
12822 (arm_linux_hwbp_cap): New static variable.
12823 (arm_linux_get_hwbp_cap): Replace by ...
12824 (arm_linux_init_hwbp_cap): ... this new function.
12825 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
12826 (arm_linux_get_hw_watchpoint_count): Likewise.
12827 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12828 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
12829 (arm_prepare_to_resume): Use perror_with_name instead of error.
12830
55329a5c 128312011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
12832
12833 * linux-arm-low.c: Include <signal.h>.
12834 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
12835 (struct arm_linux_hwbp_cap): New data type.
12836 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
12837 (struct arm_linux_hw_breakpoint): New data type.
12838 (MAX_BPTS, MAX_WPTS): Define.
12839 (struct arch_process_info, struct arch_lwp_info): New data types.
12840 (arm_linux_get_hwbp_cap): New function.
12841 (arm_linux_get_hw_breakpoint_count): Likewise.
12842 (arm_linux_get_hw_watchpoint_count): Likewise.
12843 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12844 (arm_hwbp_control_initialize): Likewise.
12845 (arm_hwbp_control_is_enabled): Likewise.
12846 (arm_hwbp_control_is_initialized): Likewise.
12847 (arm_hwbp_control_disable): Likewise.
12848 (arm_linux_hw_breakpoint_equal): Likewise.
12849 (arm_linux_hw_point_initialize): Likewise.
12850 (struct update_registers_data): New data structure.
12851 (update_registers_callback: New function.
12852 (arm_insert_point): Likewise.
12853 (arm_remove_point): Likewise.
12854 (arm_stopped_by_watchpoint): Likewise.
12855 (arm_stopped_data_address): Likewise.
12856 (arm_new_process): Likewise.
12857 (arm_new_thread): Likewise.
12858 (arm_prepare_to_resume): Likewise.
12859 (the_low_target): Register arm_insert_point, arm_remove_point,
12860 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
12861 arm_new_thread, and arm_prepare_to_resume.
12862
6b9801d4
SS
128632011-09-15 Stan Shebs <stan@codesourcery.com>
12864
12865 * server.h (struct emit_ops): Add compare-goto fields.
12866 * tracepoint.c (gdb_agent_op_sizes): New table.
12867 (emit_eq_goto): New function.
12868 (emit_ne_goto): New function.
12869 (emit_lt_goto): New function.
12870 (emit_le_goto): New function.
12871 (emit_gt_goto): New function.
12872 (emit_ge_goto): New function.
12873 (is_goto_target): New function.
12874 (compile_bytecodes): Recognize special cases of compare-goto
12875 combinations and call specialized emitters for them.
12876 * linux-x86-low.c (amd64_emit_eq_goto): New function.
12877 (amd64_emit_ne_goto): New function.
12878 (amd64_emit_lt_goto): New function.
12879 (amd64_emit_le_goto): New function.
12880 (amd64_emit_gt_goto): New function.
12881 (amd64_emit_ge_goto): New function.
12882 (amd64_emit_ops): Add the new functions.
12883 (i386_emit_eq_goto): New function.
12884 (i386_emit_ne_goto): New function.
12885 (i386_emit_lt_goto): New function.
12886 (i386_emit_le_goto): New function.
12887 (i386_emit_gt_goto): New function.
12888 (i386_emit_ge_goto): New function.
12889 (i386_emit_ops): Add the new functions.
12890
bf15cbda
SS
128912011-09-08 Stan Shebs <stan@codesourcery.com>
12892
12893 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
12894 (i386_emit_epilogue): Restore %ebx.
12895
943ca1dd
JZ
128962011-08-31 Jie Zhang <jzhang918@gmail.com>
12897
12898 * server.c (step_thread): Remove definition.
12899 (process_serial_event): Don't handle Hs.
12900 * server.h (step_thread): Remove declaration.
12901 * target.c (set_desired_inferior): Remove use of step_thread.
12902
e3deef73
LM
129032011-08-24 Luis Machado <lgustavo@codesourcery.com>
12904
12905 * linux-low.c: Include linux-procfs.h.
12906 (linux_attach_lwp_1): Update comments.
12907 (linux_attach): Scan for existing threads when attaching to a
12908 process that is the tgid.
12909 * Makefile.in: Update dependencies.
12910
13da1c97
LM
129112011-08-24 Luis Machado <lgustavo@codesourcery.com>
12912
12913 * configure.srv: Add linux-procfs.o dependencies.
12914
881127c9
YQ
129152011-08-14 Yao Qi <yao@codesourcery.com>
12916
12917 * target.h (struct target_ops): Fix indent.
12918 * win32-low.c (win32_target_ops): Fix comment.
12919
58dbd541
YQ
129202011-08-14 Andrew Jenner <andrew@codesourcery.com>
12921 Yao Qi <yao@codesourcery.com>
12922
12923 * Makefile.in (clean): Remove tic6x-*.c files.
12924 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
12925 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
12926 (tic6x-c64xp-linux.c): Likewise.
12927 * configure.srv: Add support for tic6x-*-uclinux.
12928 * linux-tic6x-low.c: New.
12929 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
12930
78d85199
YQ
129312011-08-14 Andrew Stubbs <ams@codesourcery.com>
12932 Yao Qi <yao@codesourcery.com>
12933
12934 * target.h (struct target_ops): Add read_loadmap.
12935 * linux-low.c (struct target_loadseg): New type.
12936 (struct target_loadmap): New type.
12937 (linux_read_loadmap): New function.
12938 (linux_target_ops): Add linux_read_loadmap.
12939 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
12940 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
12941 to NULL.
78d85199 12942
a959a88d
EZ
129432011-08-05 Eli Zaretskii <eliz@gnu.org>
12944
12945 * win32-low.c: Include <stdint.h>.
12946
1ced966e
PA
129472011-07-22 Pedro Alves <pedro@codesourcery.com>
12948
12949 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
12950 to the inferior here.
12951 (i386_remove_aligned_watchpoint): Ditto.
12952 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
12953 fit part of the watchpoint in the debug registers.
12954 (i386_update_inferior_debug_regs): New.
12955 (i386_low_insert_watchpoint): Work on a local mirror of the debug
12956 registers, and only update the inferior on success.
12957 (i386_low_remove_watchpoint): Ditto.
12958
d26e3629
KY
129592011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
12960
12961 * linux-low.c (compare_ints, unique, list_threads, show_process,
12962 linux_core_of_thread): Delete.
12963 (linux_target_ops): Change linux_core_of_thread to
12964 linux_common_core_of_thread.
12965 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
12966 * utils.c (malloc_failure): Change type of argument.
12967 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
12968 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
12969 common/linux-osdata.c, common/ptid.c and common/buffer.c.
12970 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
12971 (IPA_OBJS): Add common-utils-ipa.o.
12972 (ptid_h, linux_osdata_h): New macros.
12973 (server_h): Add common/common-utils.h, common/xml-utils.h,
12974 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
12975 common/ptid.h.
12976 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
12977 ptid.o, buffer.o): New rules.
12978 (linux-low.o): Add common/linux-osdata.h as a dependency.
12979 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
12980 * configure.ac: Add AC_HEADER_DIRENT check.
12981 * config.in: Regenerate.
12982 * configure: Regenerate.
12983 * remote-utils.c (xml_escape_text): Delete.
12984 (buffer_grow, buffer_free, buffer_init, buffer_finish,
12985 buffer_xml_printf): Move to common/buffer.c.
12986 * server.c (main): Remove call to initialize_inferiors.
12987 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
12988 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
12989 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
12990 internal_error, gdb_assert, gdb_assert_fail): Delete.
12991 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
12992 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
12993 common/buffer.h.
12994 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
12995 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
12996 initialize_inferiors): Delete.
12997
2275a1a7
PA
129982011-07-20 Pedro Alves <pedro@codesourcery.com>
12999
13000 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
13001 symbol error.
13002
0a5b1e09
PA
130032011-05-31 Pedro Alves <pedro@codesourcery.com>
13004
13005 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
13006 assertion.
13007 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
13008
6938fd34
YQ
130092011-05-26 Yao Qi <yao@codesourcery.com>
13010
13011 * Makefile.in (thread-db.o): Track dependence to
13012 common/gdb_thread_db.h.
13013 * thread-db.c: include gdb_thread_db.h from right place.
13014
b481f9e0
TT
130152011-05-16 Adrian Cornish <gnu@bluedreamer.com>
13016
13017 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
13018 __FILE__ and __LINE__ to internal_error.
13019
98a5dd13
DE
130202011-05-13 Doug Evans <dje@google.com>
13021
13022 * thread-db.c (try_thread_db_load_from_sdir): New function.
13023 (try_thread_db_load_from_dir): New function.
13024 (thread_db_load_search): Handle $sdir, ignore $pdir.
13025 Remove trying of system directories if search of
13026 libthread-db-search-path fails, that is now done via $sdir.
13027
d248b706
KY
130282011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
13029
13030 * server.c (handle_query): Add EnableDisableTracepoints to the list
13031 of supported features.
43aaf8b6 13032 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 13033 tracepoints.
43aaf8b6
PA
13034 (cmd_qtenable_disable): New.
13035 (cmd_qtstart): Install tracepoints even if disabled.
13036 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
13037 receiving a QTEnable or QTDisable packet.
13038 (gdb_collect): Skip data collection if fast tracepoint is disabled.
13039 (ust_marker_to_static_tracepoint): Do not ignore disabled static
13040 tracepoints.
13041 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 13042
84e578fb
DE
130432011-05-10 Doug Evans <dje@google.com>
13044
13045 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
13046
71f55dd8
DE
130472011-05-04 Doug Evans <dje@google.com>
13048
13049 * linux-low.c (linux_join): Skip process lookup.
13050 * spu-low.c (spu_join): Ditto.
13051 * server.c (join_inferiors_callback): Delete.
13052 (process_serial_event): For 'D' packet (detach) call join_inferior
13053 directly.
13054
4d393d60
JM
130552011-05-04 Joseph Myers <joseph@codesourcery.com>
13056
13057 * README: Don't mention xscale*-*-linux*.
13058 * configure.srv (xscale*-*-linux*): Don't handle target.
13059
b00ad6ff
NF
130602011-04-27 Nathan Froyd <froydnj@codesourcery.com>
13061
13062 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
13063 casting pointers.
13064 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
13065 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
13066 (i386_emit_void_call_2): Likewise.
13067
af96c192
YQ
130682011-04-26 Yao Qi <yao@codesourcery.com>
13069
43aaf8b6
PA
13070 * linux-low.c: Move common macros to linux-ptrace.h.
13071 Include linux-ptrace.h.
af96c192
YQ
13072 * Makefile.in (linux_ptrace_h): New.
13073 (linux-low.o): Depends on linux-ptrace.h.
13074
03f2bd59
JK
130752011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
13076
13077 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
13078 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
13079 (remote_prepare): New function with most of the TCP code from ...
13080 (remote_open): ... here. Detect PORT here unconditionally. Move also
13081 setting transport_is_reliable.
13082 * server.c (run_once): New variable.
13083 (gdbserver_usage): Document it.
13084 (main): Set run_once for `--once'. Call remote_prepare. Exit after
13085 the first run if RUN_ONCE.
13086 * server.h (run_once, remote_prepare): New declarations.
13087
7a9dd1b2
TT
130882011-04-19 Tom Tromey <tromey@redhat.com>
13089
13090 * win32-low.c (handle_load_dll): Remove duplicate "the".
13091
81239425
PM
130922011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
13093
13094 Remove support for old Cygwin 1.5 versions.
13095 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
13096 function to avoid warning.
13097 (win32_add_one_solib): Use cygwin_conv_path function to avoid
13098 warning.
13099
9e0627f1
PM
131002011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
13101
13102 * gdbserver/server.h (Macro _): Define it if not available.
13103
588eebee
MS
131042011-03-14 Michael Snyder <msnyder@vmware.com>
13105
348af9f7 13106 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 13107
43f70d4c
JB
131082011-03-10 Joel Brobecker <brobecker@adacore.com>
13109
13110 * Makefile.in (maintainer-clean realclean distclean): Remove
13111 "make ... subdir_do" command.
13112
348af9f7
MS
131132011-03-10 Michael Snyder <msnyder@vmware.com>
13114
13115 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
13116
13117 * server.c (handle_v_run): Free alloced buffer on early return.
13118
e637a4f5
YQ
131192011-03-09 Yao Qi <yao@codesourcery.com>
13120
13121 Revert:
13122 2011-03-04 Yao Qi <yao@codesourcery.com>
13123
13124 * Makefile.in: Remove GNU make feature --directory.
13125
13126 2011-03-05 Yao Qi <yao@codesourcery.com>
13127
13128 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13129 (subdir_do): New make target. Copied from gdb/Makefile.
13130 (maintainer-clean, realclean, distclean, clean): Call corresponding
13131 make targets in common/Makefile.
13132
13133 2011-02-11 Yao Qi <yao@codesourcery.com>
13134
13135 * configure.ac: Call AC_PROG_RANLIB.
13136 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13137 * configure: Regenerate.
13138
e6edda56
JK
131392011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
13140
13141 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
13142
e5141119
JB
131432011-03-06 Yao Qi <yao@codesourcery.com>
13144
13145 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
13146
64794aa4
JB
131472011-03-05 Yao Qi <yao@codesourcery.com>
13148
13149 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
13150 (subdir_do): New make target. Copied from gdb/Makefile.
13151 (maintainer-clean, realclean, distclean, clean): Call corresponding
13152 make targets in common/Makefile.
13153
7a762829
YQ
131542011-03-04 Yao Qi <yao@codesourcery.com>
13155
13156 * Makefile.in: Remove GNU make feature --directory.
13157
348af9f7
MS
131582011-03-04 Michael Snyder <msnyder@vmware.com>
13159
13160 * server.c (queue_stop_reply): Call xmalloc not malloc.
13161
131622011-03-02 Michael Snyder <msnyder@vmware.com>
13163
13164 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
13165
9f72fee2
MS
131662011-02-28 Michael Snyder <msnyder@vmware.com>
13167
588eebee
MS
13168 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
13169 (cmd_qtframe): Ditto.
13170 (cmd_qtbuffer): Ditto.
13171 (cmd_bigqtbuffer): Ditto.
13172
9f72fee2
MS
13173 * utils.c (decimal2str): Initialize 'width' to nine, then
13174 don't mess with it.
13175
8040bd49
UW
131762011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
13177
13178 * hostio.c (require_data): Free *data, not data.
13179
7e52cbd0
JK
131802011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13181
13182 * hostio.c (require_data): Use free, not xfree.
13183
9130f83e
MS
131842011-02-27 Michael Snyder <msnyder@vmware.com>
13185
4b812f4e
MS
13186 * server.c (handle_query): Discard unused value.
13187
9130f83e
MS
13188 * hostio.c (require_data): Free malloc memory before returning
13189 error.
13190
69d37113
MS
131912011-02-26 Michael Snyder <msnyder@vmware.com>
13192
13193 * linux-low.c (list_threads): Call closedir for dirent.
13194
35f5825a
MS
131952011-02-27 Michael Snyder <msnyder@vmware.com>
13196
2a589cef
MS
13197 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
13198 a case statement falls through.
13199
0adea5f7
MS
13200 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
13201
35f5825a
MS
13202 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
13203 in comparison.
13204
238f1c74
MS
132052011-02-26 Michael Snyder <msnyder@vmware.com>
13206
13207 * utils.c (decimal2str): Eliminate dead code and dead param.
13208 (pulongest): Drop dead param from call to decimal2str.
13209 (plongest): Ditto.
13210
633ff500
JB
132112011-02-24 Joel Brobecker <brobecker@adacore.com>
13212
13213 Revert the following patch (not approved yet):
13214 2011-02-21 Hui Zhu <teawater@gmail.com>
13215 * tracepoint.c (tp_printf): New function.
13216 (eval_agent_expr): Handle gdb_agent_op_printf.
13217
f9c6ff72
HZ
132182011-02-21 Hui Zhu <teawater@gmail.com>
13219
13220 * tracepoint.c (tp_printf): New function.
13221 (eval_agent_expr): Handle gdb_agent_op_printf.
13222
94d5e490
TT
132232011-02-18 Tom Tromey <tromey@redhat.com>
13224
13225 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
13226 (tracepoint.o): Likewise.
13227 * tracepoint.c (enum gdb_agent_op): Use ax.def.
13228 (gdb_agent_op_names): Likewise.
13229
c7f96d2b
TT
132302011-02-18 Tom Tromey <tromey@redhat.com>
13231
13232 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
13233 gdb_agent_op_rot>: New constants.
13234 (gdb_agent_op_names): Add pick and roll.
13235 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
13236 cases.
13237
0feedb2c
JK
132382011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13239
13240 * aclocal.m4: Regenerated with aclocal-1.11.1.
13241
b3b9301e
PA
132422011-02-14 Pedro Alves <pedro@codesourcery.com>
13243
13244 * server.c (handle_qxfer_traceframe_info): New.
13245 (qxfer_packets): Register "traceframe-info".
13246 (handle_query): Report support for qXfer:traceframe-info:read+.
13247 * tracepoint.c (match_blocktype): New.
13248 (traceframe_find_block_type): Rename to ...
13249 (traceframe_walk_blocks): ... this. Add callback filter argument,
13250 and use it.
13251 (traceframe_find_block_type): New, reimplemented on top of
13252 traceframe_walk_blocks.
13253 (build_traceframe_info_xml): New.
13254 (traceframe_read_info): New.
13255 * server.h (traceframe_read_info): Declare.
13256
4f3e6fb7
YQ
132572011-02-11 Yao Qi <yao@codesourcery.com>
13258
13259 * configure.ac: Call AC_PROG_RANLIB.
13260 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13261 * configure: Regenerate.
13262
764880b7
PA
132632011-02-07 Pedro Alves <pedro@codesourcery.com>
13264
13265 * server.c (gdb_read_memory): Change return semantics to allow
13266 partial transfers.
13267 (handle_search_memory_1): Adjust.
13268 (process_serial_event) <'m' packet>: Handle partial transfers.
13269 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
13270
1c79eb8a
PA
132712011-01-28 Pedro Alves <pedro@codesourcery.com>
13272
13273 * regcache.c (init_register_cache): Initialize
13274 regcache->register_status.
13275 (free_register_cache): Release regcache->register_status.
13276 (regcache_cpy): Copy register_status.
13277 (registers_to_string): Print 'x's for unavailable registers.
13278 (supply_register): Mark the register's status valid or
13279 unavailable, depending on whether a buffer was passed in or not.
13280 (supply_register_zeroed): New.
13281 (supply_regblock): Mark the registers' status valid or
13282 unavailable, depending on whether a buffer was passed in or not.
13283 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
13284 (struct regcache): New `register_status' field.
13285 (supply_register_zeroed): Declare.
13286 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
13287 supply_register_zeroed, rather than passing a NULL buffer to
13288 supply_register.
13289 * tracepoint.c (fetch_traceframe_registers): Update comment.
13290
85724a0e
PA
132912011-01-28 Pedro Alves <pedro@codesourcery.com>
13292
13293 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
13294 buffer explicit.
13295
d08aafef
PA
132962011-01-25 Pedro Alves <pedro@codesourcery.com>
13297
13298 * server.h (decode_xfer_write): Change prototype.
13299 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
13300 and don't extract the annex here.
13301 * server.c (decode_xfer_read): Remove `annex' parameter,
13302 and don't extract the annex here.
13303 (decode_xfer): New.
13304 (struct qxfer): New.
13305 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
13306 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
13307 (handle_qxfer_statictrace): New functions, abstracted out from
13308 handle_query, and made to use the struct qxfer interface.
13309 (handle_threads_qxfer_proper): Rename to ...
13310 (handle_qxfer_threads_proper): ... this.
13311 (handle_threads_qxfer): Rename to ...
13312 (handle_qxfer_threads): ... this. Adjust.
13313 (qxfer_packets): New array.
13314 (handle_qxfer): New function.
13315 (handle_query): Use handle_qxfer.
13316
493e2a69
MS
133172011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
13318
13319 * gdbreplay.c: Shorten lines of >= 80 columns.
13320 * linux-low.c: Ditto.
13321 * linux-ppc-low.c: Ditto.
13322 * linux-s390-low.c: Ditto.
13323 * linux-sparc-low.c: Ditto.
13324 * linux-x86-low.c: Ditto.
13325 * linux-xtensa-low.c: Ditto.
13326 * mem-break.c: Ditto.
13327 * nto-low.c: Ditto.
13328 * regcache.h: Ditto.
13329 * remote-utils.c: Ditto.
13330 * server.c: Ditto.
13331 * server.h: Ditto.
13332 * thread-db.c: Ditto.
13333 * tracepoint.c: Ditto.
13334 * utils.c: Ditto.
13335 * win32-low.h: Ditto.
13336
44944448
JB
133372011-01-05 Joel Brobecker <brobecker@adacore.com>
13338
13339 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
13340 update.
13341
71ce852c
JB
133422011-01-01 Joel Brobecker <brobecker@adacore.com>
13343
13344 * server.c (gdbserver_version): Update copyright year in version
13345 output.
13346 * gdbreplay.c (gdbreplay_version): Ditto.
13347
eb826dc6
MF
133482010-12-29 Jie Zhang <jie.zhang@analog.com>
13349
13350 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
13351 * linux-bfin-low.c: New file.
13352 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
13353 PT_DATA_ADDR for BFIN targets.
13354 * Makefile.in (SFILES): Add linux-bfin-low.c.
13355 (clean): Remove reg-bfin.c.
13356 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
13357 * README: Mention supported Blackfin targets.
13358
39ab222a
MF
133592010-12-23 Mike Frysinger <vapier@gentoo.org>
13360
13361 * .gitignore: New file.
13362
a1f2ce7d
MF
133632010-11-16 Mike Frysinger <vapier@gentoo.org>
13364
13365 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
13366
f474844c
JZ
133672010-10-22 Jie Zhang <jie@codesourcery.com>
13368
13369 * Makefile.in: Add FLAGS_TO_PASS variable.
13370 (install): Remove dependency of install-only and recursively
13371 invoke make for install-only.
13372
f1048712
DE
133732010-10-04 Doug Evans <dje@google.com>
13374
13375 * Makefile.in (uninstall): Use $(DESTDIR).
13376
b53a1623
PA
133772010-09-24 Pedro Alves <pedro@codesourcery.com>
13378
e6ee044d
PA
13379 PR gdb/11842
13380
b53a1623
PA
13381 * linux-x86-low.c (compat_siginfo_from_siginfo)
13382 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
13383 si_code is < 0. Check for si_code == SI_TIMER before checking for
13384 si_code < 0.
13385
fa1bd1e4
JB
133862010-09-13 Joel Brobecker <brobecker@adacore.com>
13387
13388 * lynx-i386-low.c: New file.
13389 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
13390
47fac8f8
JB
133912010-09-13 Joel Brobecker <brobecker@adacore.com>
13392
13393 * lynx-low.c (ptrace_request_to_str): Remove handling for
13394 request values that have been removed in LynxOS 5.x.
13395
1adfc54d
JB
133962010-09-13 Joel Brobecker <brobecker@adacore.com>
13397
13398 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
13399 <ptrace.h>
13400
c2a66c29
NS
134012010-09-09 Nathan Sidwell <nathan@codesourcery.com>
13402
13403 * configure.ac: Add --enable-inprocess-agent option.
13404 * configure: Rebuilt.
13405
32fcada3
YQ
134062010-09-06 Yao Qi <yao@codesourcery.com>
13407
13408 * linux-low.c (linux_kill): Remove unused variable.
13409 (linux_stabilize_threads): Likewise.
13410 * server.c (start_inferior): Likewise.
13411 (queue_stop_reply_callback): Likewise.
13412 * tracepoint.c (do_action_at_tracepoint): Likewise.
13413
0cccb683
YQ
134142010-09-06 Yao Qi <yao@codesourcery.com>
13415
13416 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
13417 on return.
13418
423ec54c
JK
134192010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13420
13421 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
13422
12ac6819
PA
134232010-09-06 Pedro Alves <pedro@codesourcery.com>
13424
13425 * Makefile.in (install-only): Replace $IPA_DEPFILES with
13426 "$(IPA_DEPFILES)".
13427
8ed54b31
JB
134282010-09-01 Joel Brobecker <brobecker@adacore.com>
13429
13430 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
13431 gdbserver/lynx-ppc-low.c: New files.
13432 * Makefile.in (lynx_low_h): New variable.
13433 (lynx-low.o, lynx-ppc-low.o): New rules.
13434 * configure.ac: On LynxOS, link with -lnetinet.
13435 * configure.srv: Add handling of powerpc-*-lynxos* targets.
13436 * configure: regenerate.
13437
bb0116a4
JB
134382010-09-01 Joel Brobecker <brobecker@adacore.com>
13439
13440 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
13441 * configure.ac: Add check for vasprintf and vsnprintf.
13442 * configure, config.in: Regenerate.
13443 * server.h (vasprintf, vsnprintf): Add conditional declarations.
13444
a778ab81 134452010-09-01 Joel Brobecker <brobecker@adacore.com>
13446
13447 * gdbreplay.c: Move include of alloca.h up, next to include of
13448 malloc.h.
13449 * server.h: Add include of malloc.h.
13450 * mem-break.c: Remove include of malloc.h.
13451 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
13452
8b034a19 134532010-09-01 Joel Brobecker <brobecker@adacore.com>
13454
13455 * Makefile.in (memmem.o): Build with -Wno-error.
13456
134572010-09-01 Joel Brobecker <brobecker@adacore.com>
13458
13459 * utils.c (xsnprintf): Make non-static.
13460 * server.h: Add xsnprintf declaration.
13461 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
13462 replace calls to snprintf by calls to xsnprintf throughout.
13463
134642010-09-01 Joel Brobecker <brobecker@adacore.com>
13465
13466 * configure.ac: Add configure check for alloca.
13467 * configure, config.in: Regenerate.
13468 * server.h: Include alloca.h if it exists.
13469 * gdbreplay.c: Include alloca.h if it exists.
13470
1a981360
PA
134712010-08-28 Pedro Alves <pedro@codesourcery.com>
13472
13473 * linux-low.c (__SIGRTMIN): Define if not already defined.
13474 (linux_create_inferior): Check for __ANDROID__ rather than
13475 __SIGRTMIN.
13476 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
13477 are already deferred.
13478 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
13479 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
13480 stopped and already has a pending signal to report.
13481 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
13482 a pending signal to report or is moving out of a jump pad.
13483 (linux_init_signals): Check for __ANDROID__ rather than
13484 __SIGRTMIN.
13485
b4d51a55
PA
134862010-08-28 Pedro Alves <pedro@codesourcery.com>
13487
13488 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
13489 debug_threads check. Avoid a linear search when not doing debug
13490 output.
13491
ec48365d
PA
134922010-08-27 Pedro Alves <pedro@codesourcery.com>
13493
13494 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
13495 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
13496 (struct file_handler) <fd>: Change type to gdb_fildes_t.
13497 (process_event): Change local fd's type to gdb_fildes_t.
13498 (create_file_handler): Adjust prototype.
13499 (delete_file_handler): Adjust prototype.
13500 (handle_file_event): Adjust prototype. Use pfildes.
13501 (create_file_event): Adjsut prototype.
13502 * remote-utils.c (remote_desc, listen_desc): Change type to
13503 gdb_fildes_t.
13504 * server.h: New gdb_fildes_t typedef.
13505 [USE_WIN32API]: Include winsock2.h.
13506 (delete_file_handler, add_file_handler): Adjust prototypes.
13507 (pfildes): Declare.
13508 * utils.c (pfildes): New.
13509
854d88f0
PA
135102010-08-27 Pedro Alves <pedro@codesourcery.com>
13511
13512 * configure.ac (build_warnings): Add -Wno-char-subscripts.
13513 * configure: Regenerate.
13514
0146f85b
PA
135152010-08-27 Pedro Alves <pedro@codesourcery.com>
13516
13517 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
13518 (linux_done_accessing_memory): ... this.
13519 (linux_target_ops): Adjust.
13520 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
13521 * nto-low.c (nto_target_ops): Adjust comment.
13522 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
13523 * spu-low.c (spu_target_ops): Adjust comment.
13524 * target.h (target_ops): Rename unprepare_to_access_memory field
13525 to done_accessing_memory.
13526 (unprepare_to_access_memory): Rename to ...
13527 (done_accessing_memory): ... this.
13528
90d74c30
PA
135292010-08-26 Pedro Alves <pedro@codesourcery.com>
13530
13531 * linux-low.c (linux_prepare_to_access_memory): New.
13532 (linux_unprepare_to_access_memory): New.
13533 (linux_target_ops): Install them.
13534 * server.c (read_memory): Rename to ...
13535 (gdb_read_memory): ... this. Use
13536 prepare_to_access_memory/prepare_to_access_memory.
13537 (write_memory): Rename to ...
13538 (gdb_write_memory): ... this. Use
13539 prepare_to_access_memory/prepare_to_access_memory.
13540 (handle_search_memory_1): Adjust.
13541 (process_serial_event): Adjust.
13542 * target.h (struct target_ops): New fields
13543 prepare_to_access_memory and unprepare_to_access_memory.
13544 (prepare_to_access_memory, unprepare_to_access_memory): New.
13545 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
13546 prepare_to_access_memory/prepare_to_access_memory.
13547 * nto-low.c (nto_target_ops): Adjust.
13548 * spu-low.c (spu_target_ops): Adjust.
13549 * win32-low.c (win32_target_ops): Adjust.
13550
fd467969
PA
135512010-08-26 Pedro Alves <pedro@codesourcery.com>
13552
13553 * Makefile.in (WARN_CFLAGS): Get it from configure.
13554 (WERROR_CFLAGS): New.
13555 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
13556 * configure.ac: Introduce --enable-werror, which adds -Werror to
13557 the compiler command line. Enabled by default. Disable with
13558 --disable-werror. Add -Wdeclaration-after-statement
13559 Wpointer-arith and -Wformat-nonliteral to warning flags.
13560 * configure: Regenerate.
13561
331e2f5f
PA
135622010-08-26 Pedro Alves <pedro@codesourcery.com>
13563
13564 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
13565
e581f2b4
PA
135662010-08-26 Pedro Alves <pedro@codesourcery.com>
13567
13568 * gdbreplay.c (remote_error): New.
13569 (gdbchar): New.
13570 (expect): Use gdbchar. Check for error reading from GDB.
13571 Clarify sync error output.
13572 (play): Check for errors writing to GDB.
13573 * linux-low.c (sigchld_handler): Really ignore `write' errors.
13574 * remote-utils.c (getpkt): Check for errors writing to the remote
13575 descriptor.
13576
3c11dd79
PA
135772010-08-25 Pedro Alves <pedro@codesourcery.com>
13578
13579 * linux-low.c (linux_wait_1): Move non-debugging code out of
13580 `debug_threads' control.
13581
d20a8ad9
PA
135822010-08-25 Pedro Alves <pedro@codesourcery.com>
13583
13584 * linux-low.c (linux_wait_1): Don't set last_status here.
13585 * server.c (push_event, queue_stop_reply_callback): Assert we're
13586 not pushing a TARGET_WAITKIND_IGNORE event.
13587 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
13588 (myresume, handle_target_event): Set the thread's last_resume_kind
13589 and last_status from the target returned status.
13590
964e4306
PA
135912010-08-25 Pedro Alves <pedro@codesourcery.com>
13592
13593 PR threads/10729
13594
13595 * linux-x86-low.c (update_debug_registers_callback): New.
13596 (i386_dr_low_set_addr): Use it.
13597 (i386_dr_low_get_addr): New.
13598 (i386_dr_low_set_control): Use update_debug_registers_callback.
13599 (i386_dr_low_get_control): New.
13600 (i386_dr_low_get_status): Adjust.
13601 * linux-low.c (linux_stop_lwp): New.
13602 * linux-low.h (linux_stop_lwp): Declare.
13603
13604 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
13605 argument instead of a i386_debug_reg_state.
13606 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
13607 a i386_debug_reg_state.
13608 (i386_insert_aligned_watchpoint): Adjust.
13609 (i386_remove_aligned_watchpoint): Adjust.
13610 (i386_low_stopped_data_address): Read the debug registers from the
13611 inferior instead of from the mirrors.
13612 * i386-low.h (struct i386_debug_reg_state): Extend comment.
13613 (i386_dr_low_get_addr): Declare.
13614 (i386_dr_low_get_control): Declare.
13615 (i386_dr_low_get_status): Change prototype.
13616
13617 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
13618 (i386_dr_low_get_addr): New.
13619 (i386_dr_low_get_control): New.
13620 (i386_dr_low_get_status): Adjust prototype. Return
13621 dr_status_mirror.
13622 (i386_initial_stuff): Clear dr_status_mirror and
13623 dr_control_mirror.
13624 (i386_get_thread_context): Adjust.
13625 (i386_set_thread_context): Adjust.
13626 (i386_thread_added): Adjust.
13627
5f21a75b
PA
136282010-08-24 Pedro Alves <pedro@codesourcery.com>
13629
13630 * linux-low.h (linux_thread_area): Delete declaration.
13631
3e4c1235
TS
136322010-08-11 Thomas Schwinge <thomas@codesourcery.com>
13633
13634 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
13635 after its termination.
13636
1971b033
PA
136372010-08-09 Pedro Alves <pedro@codesourcery.com>
13638
13639 * linux-low.c (gdb_wants_lwp_stopped): Delete.
13640 (gdb_wants_all_stopped): Delete.
13641 (linux_wait_1): Don't call them.
13642 * server.c (handle_v_cont): Tag all threads as want-stopped.
13643 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
13644 stopped as "client-wants-stopped".
13645
310444ac
PA
136462010-07-31 Pedro Alves <pedro@codesourcery.com>
13647
13648 * Makefile.in (signals_h): New.
13649 (server_h): Depend on it.
13650 (server.o): Don't depend on $(signals_def).
13651 (signals.o): Depend on $(signals_def).
13652
a19cae16
JK
136532010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
13654
13655 * Makefile.in (signals_def): New.
13656 (server_h): Append include/gdb/signals.h and signals_def.
13657 (server.o): Append signals_def.
13658
30d50328
JK
136592010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13660
13661 * server.c (handle_target_event): Use target_signal_to_host for
13662 resume_info.sig initialization.
13663 * target.h (struct thread_resume) <sig>: New comment.
13664
5c3216e2
OS
136652010-07-20 Ozkan Sezer <sezeroz@gmail.com>
13666
c6f46ca0
OS
13667 * server.c (handle_query): strcpy() the returned string from paddress()
13668 instead of sprintf().
5c3216e2
OS
13669 * utils.c (paddress): Return phex_nz().
13670
6bd31874
JB
136712010-07-07 Joel Brobecker <brobecker@adacore.com>
13672
13673 * server.c (handle_v_cont): Call mourn_inferior if process
13674 just exited.
13675 (myresume): Likewise.
13676
0fb4aa4b
PA
136772010-07-01 Pedro Alves <pedro@codesourcery.com>
13678
13679 Static tracepoints, and integration with UST.
13680
13681 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
13682 * mem-break.c (uninsert_all_breakpoints)
13683 (reinsert_all_breakpoints): New.
13684 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
13685 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
13686 (gdb_agent_ust_loaded, helper_thread_id)
13687 (gdb_agent_helper_thread_id): New macros.
13688 (struct ipa_sym_addresses): Add addr_ust_loaded,
13689 addr_helper_thread_id, addr_cmd_buf.
13690 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
13691 (in_process_agent_loaded_ust): New.
13692 (write_e_ust_not_loaded): New.
13693 (maybe_write_ipa_ust_not_loaded): New.
13694 (struct collect_static_trace_data_action): New.
13695 (enum tracepoint_type) <static_tracepoint>: New.
13696 (struct tracepoint) <handle>: Mention static tracepoints.
13697 (struct static_tracepoint_ctx): New.
13698 (CMD_BUF_SIZE): New.
13699 (add_tracepoint_action): Handle static tracepoint actions.
13700 (unprobe_marker_at): New.
13701 (clear_installed_tracepoints): Handle static tracepoints.
13702 (cmd_qtdp): Handle static tracepoints.
13703 (probe_marker_at): New.
13704 (cmd_qtstart): Handle static tracepoints.
13705 (response_tracepoint): Handle static tracepoints.
13706 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
13707 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
13708 (get_context_regcache): Handle static tracepoints.
13709 (do_action_at_tracepoint): Handle static tracepoint actions.
13710 (traceframe_find_block_type): Handle static trace data blocks.
13711 (traceframe_read_sdata): New.
13712 (download_tracepoints): Download static tracepoint actions.
13713 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
13714 (GDB_PROBE_NAME): New.
13715 (ust_ops): New.
13716 (GET_UST_SYM): New.
13717 (USTF): New.
13718 (dlsym_ust): New.
13719 (ust_marker_to_static_tracepoint): New.
13720 (gdb_probe): New.
13721 (collect_ust_data_at_tracepoint): New.
13722 (gdb_ust_probe): New.
13723 (UNIX_PATH_MAX, SOCK_DIR): New.
13724 (gdb_ust_connect_sync_socket): New.
13725 (resume_thread, stop_thread): New.
13726 (run_inferior_command): New.
13727 (init_named_socket): New.
13728 (gdb_ust_socket_init): New.
13729 (cstr_to_hexstr): New.
13730 (next_st): New.
13731 (first_marker, next_marker): New.
13732 (response_ust_marker): New.
13733 (cmd_qtfstm, cmd_qtsstm): New.
13734 (unprobe_marker_at, probe_marker_at): New.
13735 (cmd_qtstmat, gdb_ust_thread): New.
13736 (gdb_ust_init): New.
13737 (initialize_tracepoint_ftlib): Call gdb_ust_init.
13738 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
13739 (ST_REGENTRY): New.
13740 (x86_64_st_collect_regmap): New.
13741 (X86_64_NUM_ST_COLLECT_GREGS): New.
13742 (AMD64_RIP_REGNUM): New.
13743 (supply_static_tracepoint_registers): New.
13744 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
13745 (ST_REGENTRY): New.
13746 (i386_st_collect_regmap): New.
13747 (i386_NUM_ST_COLLECT_GREGS): New.
13748 (supply_static_tracepoint_registers): New.
13749 * server.c (handle_query): Handle qXfer:statictrace:read.
13750 <qSupported>: Report support for StaticTracepoints, and
13751 qXfer:statictrace:read features.
13752 * server.h (traceframe_read_sdata)
13753 (supply_static_tracepoint_registers): Declare.
13754 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
13755 (unpack_varlen_hex): Include in IPA build.
13756 * Makefile.in (ustlibs, ustinc): New.
13757 (IPA_OBJS): Add remote-utils-ipa.o.
13758 ($(IPA_LIB)): Link -ldl and -lpthread.
13759 (UST_CFLAGS): New.
13760 (IPAGENT_CFLAGS): Add UST_CFLAGS.
13761 * config.in, configure: Regenerate.
13762
9e4344e5
PA
137632010-06-20 Ian Lance Taylor <iant@google.com>
13764 Pedro Alves <pedro@codesourcery.com>
13765
13766 * linux-x86-low.c (always_true): Delete.
13767 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
13768 trying to fool the compiler with always_true.
13769
c6beb2cb
PA
137702010-06-20 Pedro Alves <pedro@codesourcery.com>
13771
13772 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
13773 conditions in gdbserver.
13774
d2ed6730
UW
137752010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
13776
13777 * spu-low.c (spu_read_memory): Wrap around local store limit.
13778 (spu_write_memory): Likewise.
13779
4e29fb54
PA
137802010-06-15 Pedro Alves <pedro@codesourcery.com>
13781
13782 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
13783 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
13784 LONGEST uses.
13785 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
13786 uses.
13787 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
13788 uses with LONGEST uses.
13789
6a271cae
PA
137902010-06-14 Stan Shebs <stan@codesourcery.com>
13791 Pedro Alves <pedro@codesourcery.com>
13792
13793 Bytecode compiler.
13794
13795 * linux-x86-low.c: Include limits.h.
13796 (add_insns): New.
13797 (always_true): New.
13798 (EMIT_ASM): New.
13799 (EMIT_ASM32): New.
13800 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
13801 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
13802 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
13803 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
13804 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
13805 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
13806 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
13807 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
13808 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
13809 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
13810 (amd64_emit_void_call_2): New.
13811 (amd64_emit_ops): New.
13812 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
13813 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
13814 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
13815 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
13816 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
13817 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
13818 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
13819 (i386_emit_call, i386_emit_reg, i386_emit_pop)
13820 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
13821 (i386_emit_stack_adjust, i386_emit_int_call_1)
13822 (i386_emit_void_call_2): New.
13823 (i386_emit_ops): New.
13824 (x86_emit_ops): New.
13825 (the_low_target): Install x86_emit_ops.
13826 * server.h (struct emit_ops): New.
13827 (get_raw_reg_func_addr): Declare.
13828 (current_insn_ptr, emit_error): Declare.
13829 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
13830 (set_trace_state_variable_value): New defines.
13831 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
13832 addr_get_trace_state_variable_value and
13833 addr_set_trace_state_variable_value.
13834 (symbol_list): New fields for get_raw_reg,
13835 get_trace_state_variable_value and set_trace_state_variable_value.
13836 (condfn): New typedef.
13837 (struct tracepoint): New field `compiled_cond'.
13838 (do_action_at_tracepoint): Clear compiled_cond.
13839 (get_trace_state_variable_value, set_trace_state_variable_value):
13840 Export in the IPA.
13841 (condition_true_at_tracepoint): If there's a compiled condition,
13842 run that.
13843 (current_insn_ptr, emit_error): New globals.
13844 (struct bytecode_address): New.
13845 (get_raw_reg_func_addr): New.
13846 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
13847 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
13848 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
13849 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
13850 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
13851 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
13852 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
13853 (compile_tracepoint_condition, compile_bytecodes): New.
13854 * target.h (emit_ops): Forward declare.
13855 (struct target_ops): New field emit_ops.
13856 (target_emit_ops): New.
13857 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
13858 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
13859 * linux-low.c (linux_emit_ops): New.
13860 (linux_target_ops): Install it.
13861 * linux-low.h (struct linux_target_ops): New field emit_ops.
13862
92b72907
UW
138632010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
13864
13865 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
13866 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
13867
fa593d66
PA
138682010-06-01 Pedro Alves <pedro@codesourcery.com>
13869 Stan Shebs <stan@codesourcery.com>
13870
13871 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
13872 (all): Depend on $(extra_libraries).
13873 (install-only): Install the IPA.
13874 (IPA_OBJS, IPA_LIB): New.
13875 (clean): Remove the IPA lib.
13876 (IPAGENT_CFLAGS): New.
13877 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
13878 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
13879 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
13880 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
13881 * configure.ac: Check for atomic builtins support in the compiler.
13882 (IPA_DEPFILES, extra_libraries): Define.
13883 * configure.srv (ipa_obj): Add description.
13884 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
13885 (i[34567]86-*-linux*): Set ipa_obj.
13886 (x86_64-*-linux*): Set ipa_obj.
13887 * linux-low.c (stabilizing_threads): New.
13888 (supports_fast_tracepoints): New.
13889 (linux_detach): Stabilize threads before detaching.
13890 (handle_tracepoints): Handle internal tracing breakpoints. Assert
13891 the lwp is either not stabilizing, or is moving out of a jump pad.
13892 (linux_fast_tracepoint_collecting): New.
13893 (maybe_move_out_of_jump_pad): New.
13894 (enqueue_one_deferred_signal): New.
13895 (dequeue_one_deferred_signal): New.
13896 (linux_wait_for_event_1): If moving out of a jump pad, defer
13897 pending signals to later.
13898 (linux_stabilize_threads): New.
13899 (linux_wait_1): Check if threads need moving out of jump pads, and
13900 do it if so.
13901 (stuck_in_jump_pad_callback): New.
13902 (move_out_of_jump_pad_callback): New.
13903 (lwp_running): New.
13904 (linux_resume_one_lwp): Handle moving out of jump pads.
13905 (linux_set_resume_request): Dequeue deferred signals.
13906 (need_step_over_p): Also step over fast tracepoint jumps.
13907 (start_step_over): Also uninsert fast tracepoint jumps.
13908 (finish_step_over): Also reinsert fast tracepoint jumps.
13909 (linux_install_fast_tracepoint_jump): New.
13910 (linux_target_ops): Install linux_stabilize_threads and
13911 linux_install_fast_tracepoint_jump_pad.
13912 * linux-low.h (linux_target_ops) <get_thread_area,
13913 install_fast_tracepoint_jump_pad>: New fields.
13914 (struct lwp_info) <collecting_fast_tracepoint,
13915 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
13916 (linux_get_thread_area): Declare.
13917 * linux-x86-low.c (jump_insn): New.
13918 (x86_get_thread_area): New.
13919 (append_insns): New.
13920 (push_opcode): New.
13921 (amd64_install_fast_tracepoint_jump_pad): New.
13922 (i386_install_fast_tracepoint_jump_pad): New.
13923 (x86_install_fast_tracepoint_jump_pad): New.
13924 (the_low_target): Install x86_get_thread_area and
13925 x86_install_fast_tracepoint_jump_pad.
13926 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
13927 (struct fast_tracepoint_jump): New.
13928 (fast_tracepoint_jump_insn): New.
13929 (fast_tracepoint_jump_shadow): New.
13930 (find_fast_tracepoint_jump_at): New.
13931 (fast_tracepoint_jump_here): New.
13932 (delete_fast_tracepoint_jump): New.
13933 (set_fast_tracepoint_jump): New.
13934 (uninsert_fast_tracepoint_jumps_at): New.
13935 (reinsert_fast_tracepoint_jumps_at): New.
13936 (set_breakpoint_at): Use write_inferior_memory.
13937 (uninsert_raw_breakpoint): Use write_inferior_memory.
13938 (check_mem_read): Mask out fast tracepoint jumps.
13939 (check_mem_write): Mask out fast tracepoint jumps.
13940 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
13941 (set_fast_tracepoint_jump): Declare.
13942 (delete_fast_tracepoint_jump)
13943 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
13944 (reinsert_fast_tracepoint_jumps_at): Declare.
13945 * regcache.c: Don't compile many functions when building the
13946 in-process agent library.
13947 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
13948 the register buffer in the heap.
13949 (free_register_cache): If the register buffer isn't owned by the
13950 regcache, don't free it.
13951 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
13952 pre-existing register caches.
13953 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
13954 type.
13955 (convert_ascii_to_int): : Constify `from' parameter type.
13956 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
13957 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
13958 the needed buffer in-place.
13959 (relocate_instruction): New.
13960 * server.c (handle_query) <qSymbols>: If the target supports
13961 tracepoints, give it a chance of looking up symbols. Report
13962 support for fast tracepoints.
13963 (handle_status): Stabilize threads.
13964 (process_serial_event): Adjust.
13965 * server.h (struct fast_tracepoint_jump): Forward declare.
13966 (struct process_info) <fast_tracepoint_jumps>: New field.
13967 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
13968 (decode_X_packet, decode_M_packet): Adjust.
13969 (relocate_instruction): Declare.
13970 (in_process_agent_loaded): Declare.
13971 (tracepoint_look_up_symbols): Declare.
13972 (struct fast_tpoint_collect_status): Declare.
13973 (fast_tracepoint_collecting): Declare.
13974 (force_unlock_trace_buffer): Declare.
13975 (handle_tracepoint_bkpts): Declare.
13976 (initialize_low_tracepoint)
13977 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
13978 * target.h (struct target_ops) <stabilize_threads,
13979 install_fast_tracepoint_jump_pad>: New fields.
13980 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
13981 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
13982 [HAVE_STDINT_H]: Include stdint.h.
13983 (trace_debug_1): Rename to ...
13984 (trace_vdebug): ... this.
13985 (trace_debug): Rename to ...
13986 (trace_debug_1): ... this. Add `level' parameter.
13987 (trace_debug): New.
13988 (ATTR_USED, ATTR_NOINLINE): New.
13989 (IP_AGENT_EXPORT): New.
13990 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
13991 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
13992 (about_to_request_buffer_space, trace_buffer_is_full)
13993 (stopping_tracepoint, expr_eval_result, error_tracepoint)
13994 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
13995 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
13996 (traceframe_write_count, traceframes_created)
13997 (trace_state_variables)
13998 New renaming defines.
13999 (struct ipa_sym_addresses): New.
14000 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
14001 (symbol_list): New.
14002 (ipa_sym_addrs): New.
14003 (all_tracepoint_symbols_looked_up): New.
14004 (in_process_agent_loaded): New.
14005 (write_e_ipa_not_loaded): New.
14006 (maybe_write_ipa_not_loaded): New.
14007 (tracepoint_look_up_symbols): New.
14008 (debug_threads) [IN_PROCESS_AGENT]: New.
14009 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
14010 (UNKNOWN_SIDE_EFFECTS): New.
14011 (stop_tracing): New.
14012 (flush_trace_buffer): New.
14013 (stop_tracing_bkpt): New.
14014 (flush_trace_buffer_bkpt): New.
14015 (read_inferior_integer): New.
14016 (read_inferior_uinteger): New.
14017 (read_inferior_data_pointer): New.
14018 (write_inferior_data_pointer): New.
14019 (write_inferior_integer): New.
14020 (write_inferior_uinteger): New.
14021 (struct collect_static_trace_data_action): Delete.
14022 (enum tracepoint_type): New.
14023 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
14024 <actions_str, step_actions, step_actions_str>: Only include in
14025 GDBserver.
fa593d66
PA
14026 <orig_size, obj_addr_on_target, adjusted_insn_addr>
14027 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
14028 (tracepoints): Use IP_AGENT_EXPORT.
14029 (last_tracepoint): Don't include in the IPA.
14030 (stopping_tracepoint): Use IP_AGENT_EXPORT.
14031 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
14032 (alloced_trace_state_variables): New.
14033 (trace_state_variables): Use IP_AGENT_EXPORT.
14034 (traceframe_t): Delete unused variable.
14035 (circular_trace_buffer): Don't include in the IPA.
14036 (trace_buffer_start): Delete.
14037 (struct trace_buffer_control): New.
14038 (trace_buffer_free): Delete.
14039 (struct ipa_trace_buffer_control): New.
14040 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
14041 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
14042 New.
14043 (trace_buffer_ctrl): New.
14044 (TRACE_BUFFER_CTRL_CURR): New.
14045 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
14046 Reimplement as macros.
14047 (trace_buffer_wrap): Delete.
14048 (traceframe_write_count, traceframe_read_count)
14049 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
14050 (struct tracepoint_hit_ctx) <type>: New field.
14051 (struct fast_tracepoint_ctx): New.
14052 (memory_barrier): New.
14053 (cmpxchg): New.
14054 (record_tracepoint_error): Update atomically in the IPA.
14055 (clear_inferior_trace_buffer): New.
14056 (about_to_request_buffer_space): New.
14057 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
14058 updating the same buffer.
14059 (add_tracepoint): Default the tracepoint's type to trap
14060 tracepoint, and orig_size to -1.
14061 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
14062 internal variables.
14063 (create_trace_state_variable): New parameter `gdb'. Handle it.
14064 (clear_installed_tracepoints): Clear fast tracepoint jumps.
14065 (cmd_qtdp): Handle fast tracepoints.
14066 (cmd_qtdv): Adjust.
14067 (max_jump_pad_size): New.
14068 (gdb_jump_pad_head): New.
14069 (get_jump_space_head): New.
14070 (claim_jump_space): New.
14071 (sort_tracepoints): New.
14072 (MAX_JUMP_SIZE): New.
14073 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
14074 IPA.
14075 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
14076 support. Upload fast traceframes, and delete internal IPA
14077 breakpoints.
14078 (stop_tracing_handler): New.
14079 (flush_trace_buffer_handler): New.
14080 (cmd_qtstop): Upload fast tracepoints.
14081 (response_tracepoint): Handle fast tracepoints.
14082 (tracepoint_finished_step): Upload fast traceframes. Set the
14083 tracepoint hit context's tracepoint type.
14084 (handle_tracepoint_bkpts): New.
14085 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
14086 type. Add comment about fast tracepoints.
14087 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
14088 non-existing action_str field.
14089 (get_context_regcache): Handle fast tracepoints.
14090 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
14091 to the regcache.
14092 (fast_tracepoint_from_jump_pad_address): New.
14093 (fast_tracepoint_from_ipa_tpoint_address): New.
14094 (collecting_t): New.
14095 (force_unlock_trace_buffer): New.
14096 (fast_tracepoint_collecting): New.
14097 (collecting): New.
14098 (gdb_collect): New.
14099 (write_inferior_data_ptr): New.
14100 (target_tp_heap): New.
14101 (target_malloc): New.
14102 (download_agent_expr): New.
14103 (UALIGN): New.
14104 (download_tracepoints): New.
14105 (download_trace_state_variables): New.
14106 (upload_fast_traceframes): New.
14107 (IPA_FIRST_TRACEFRAME): New.
14108 (IPA_NEXT_TRACEFRAME_1): New.
14109 (IPA_NEXT_TRACEFRAME): New.
14110 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
14111 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
14112 (gdb_jump_pad_buffer_end): New.
14113 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
14114 (initialize_tracepoint): Adjust.
14115 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
14116 buffer. Initialize the low module.
14117 * utils.c (PREFIX, TOOLNAME): New.
14118 (malloc_failure): Use PREFIX.
14119 (error): In the IPA, an error causes an exit.
14120 (fatal, warning): Use PREFIX.
14121 (internal_error): Use TOOLNAME.
14122 (NUMCELLS): Increase to 10.
14123 * configure, config.in: Regenerate.
14124
d149dd1d
PA
141252010-06-01 Pedro Alves <pedro@codesourcery.com>
14126
14127 * server.c (handle_query) <qSupported>: Do two passes over the
14128 qSupported string to avoid nesting strtok.
14129
f6528abd
JK
141302010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14131
14132 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
14133 (CDEPS): New.
14134 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
14135 -Wl,--dynamic-list.
14136 * configure: Regenerate.
14137 * proc-service.list: New.
14138
ca2a87a0
JK
141392010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
14140
14141 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
14142 New comment.
14143
363a6e9f
OS
141442010-05-26 Ozkan Sezer <sezeroz@gmail.com>
14145
14146 * gdbreplay.c (remote_open): Check error return from socket() call by
14147 its equality to -1 not by it being negative.
14148 * remote-utils.c (remote_open): Likewise.
14149
d23b6cb1
PA
141502010-05-23 Pedro Alves <pedro@codesourcery.com>
14151
14152 * config.h: Regenerate.
14153
28d3cf85
MK
141542010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14155
14156 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
14157 doesn't provide PTRACE_GET_THREAD_AREA.
14158
fea36a59
MK
141592010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
14160
14161 * linux-m68k-low.c: Include <asm/ptrace.h>
14162 (ps_get_thread_area): Implement.
14163
24b066ba
DE
141642010-05-03 Doug Evans <dje@google.com>
14165
14166 * event-loop.c (struct callback_event): New struct.
14167 (callback_list): New global.
14168 (append_callback_event, delete_callback_event): New functions.
14169 (process_callback): New function.
14170 (start_event_loop): Call it.
14171 * remote-utils.c (NOT_SCHEDULED): Define.
14172 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
14173 moved out of readchar.
14174 (readchar): Rewrite. Call reschedule before returning.
14175 (reset_readchar): New function.
14176 (remote_close): Call it.
14177 (process_remaining, reschedule): New functions.
14178 * server.h (callback_handler_func): New typedef.
14179 (append_callback_event, delete_callback_event): Declare.
14180
9836d6ea
PA
141812010-05-03 Pedro Alves <pedro@codesourcery.com>
14182
14183 * proc-service.c (ps_pglobal_lookup): Use
14184 thread_db_look_up_one_symbol.
14185 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
14186 parameter. Use it instead of all_symbols_looked_up.
14187 * server.h (struct process_info) <all_symbols_looked_up>: Delete
14188 field.
14189 (all_symbols_looked_up): Don't declare.
14190 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
14191 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
14192 field.
14193 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
14194 Set all_symbols_looked_up here.
14195 (thread_db_look_up_one_symbol): New.
14196 (thread_db_get_tls_address): Adjust.
14197 (thread_db_load_search, try_thread_db_load_1): Always allocate the
14198 thread_db object on the heap, and tentatively set it in the
14199 process structure.
14200 (thread_db_init): Don't set all_symbols_looked_up here.
14201 * linux-low.h (thread_db_look_up_one_symbol): Declare.
14202
7984d532
PA
142032010-05-03 Pedro Alves <pedro@codesourcery.com>
14204
14205 * linux-low.c (linux_kill, linux_detach): Adjust.
14206 (status_pending_p_callback): Remove redundant statement. Check
14207 for !TARGET_WAITIKIND_IGNORE, instead of
14208 TARGET_WAITKIND_STOPPED.
14209 (handle_tracepoints): Make sure LWP is locked. Adjust.
14210 (linux_wait_for_event_1): Adjust.
14211 (linux_cancel_breakpoints): New.
14212 (unsuspend_one_lwp): New.
14213 (unsuspend_all_lwps): New.
14214 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
14215 (send_sigstop_callback): Change return type to int, add new
14216 `except' parameter and handle it.
14217 (suspend_and_send_sigstop_callback): New.
14218 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
14219 pass them down. If SUSPEND, also increment the lwp's suspend
14220 count.
14221 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
14222 (need_step_over_p): Don't consider suspended LWPs.
14223 (start_step_over): Adjust.
14224 (proceed_one_lwp): Change return type to int, add new `except'
14225 parameter and handle it.
14226 (unsuspend_and_proceed_one_lwp): New.
14227 (proceed_all_lwps): Use find_inferior instead of
14228 for_each_inferior.
14229 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
14230 also decrement the suspend count of LWPs. Pass `except' down,
14231 instead of hacking its suspend count.
14232 (linux_pause_all): Add `freeze' parameter. Adjust.
14233 (linux_unpause_all): New.
14234 (linux_target_ops): Install linux_unpause_all.
14235 * server.c (handle_status): Adjust.
14236 * target.h (struct target_ops): New fields `unpause_all' and
14237 `cancel_breakpoints'. Add new parameter to `pause_all'.
14238 (pause_all): Add new `freeze' parameter.
14239 (unpause_all): New.
14240 (cancel_breakpoints): New.
14241 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
14242 cancel breakpoints.
14243 (cmd_qtstart): Pause threads.
14244 (stop_tracing): Pause threads, and cancel breakpoints.
14245 * win32-low.c (win32_target_ops): Adjust.
14246
e471f25b
PA
142472010-05-03 Pedro Alves <pedro@codesourcery.com>
14248
14249 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
14250 the inferior right away from here...
14251 (linux_wait_1): ... to here, and adjust to check the thread's
14252 last_resume_kind instead of the lwp's step or stop_expected flags.
14253
1915ef4f
PA
142542010-05-02 Pedro Alves <pedro@codesourcery.com>
14255
14256 * README: Use consistent `GDB' and `GDBserver' spellings.
14257
f9e39928
PA
142582010-05-02 Pedro Alves <pedro@codesourcery.com>
14259
14260 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
14261 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
14262 (linux_detach_one_lwp): Assume the lwp is stopped.
14263 (any_thread_of): Delete.
14264 (linux_detach): Stop all lwps here. Don't blindly delete all
14265 breakpoints.
14266 (delete_lwp_callback): New.
14267 (linux_mourn): Delete all lwps of the process that is gone.
14268 (linux_wait_1): Don't delete the last lwp of the process here.
14269 * mem-break.h (mark_breakpoints_out): Declare.
14270 * mem-break.c (mark_breakpoints_out): New.
14271 (free_all_breakpoints): Use it.
14272 * server.c (handle_target_event): If the process is gone, mark
14273 breakpoints out.
14274 * thread-db.c (struct thread_db) <create_bp>: New field.
14275 (thread_db_enable_reporting): Fix prototype. Store a thread event
14276 breakpoint reference in the thread_db struct.
14277 (thread_db_load_search): Clear the thread_db object.
14278 (try_thread_db_load_1): Ditto.
14279 (switch_to_process): New.
14280 (disable_thread_event_reporting): Use it.
14281 (remove_thread_event_breakpoints): New.
14282 (thread_db_detach, thread_db_mourn): Use it.
14283
1e7fc18c
PA
142842010-05-01 Pedro Alves <pedro@codesourcery.com>
14285
14286 * linux-low.c (linux_enable_event_reporting): New.
14287 (linux_wait_for_event_1, handle_extended_wait): Use it.
14288
02fc4de7
PA
142892010-04-30 Pedro Alves <pedro@codesourcery.com>
14290
14291 * linux-low.c (linux_kill_one_lwp, linux_kill)
14292 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
14293 (send_sigstop): Take an lwp_info as parameter instead. Queue a
14294 SIGSTOP even if the LWP is stopped.
14295 (send_sigstop_callback): New.
14296 (stop_all_lwps): Use send_sigstop_callback instead.
14297 (linux_resume_one_thread): Adjust.
14298 (proceed_one_lwp): Still proceed an LWP that the client has
14299 requested to stop, if we haven't reported it as stopped yet. Make
14300 sure that LWPs the client want stopped, have a pending SIGSTOP.
14301
bc3b5632
DE
143022010-04-26 Doug Evans <dje@google.com>
14303
ae1ada35
DE
14304 * server.c (handle_general_set): Make static.
14305
bc3b5632
DE
14306 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
14307 Print received char after testing for error/eof instead of before.
14308 (input_interrupt): Tweak comment.
14309
65730243
DE
143102010-04-23 Doug Evans <dje@google.com>
14311
14312 * server.c (start_inferior): Print inferior argv if --debug.
14313
a8ae7dc0
AR
143142010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
14315
14316 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
14317 * nto-x86-low.c: Include server.h
14318
1c07cc19
PM
143192010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
14320
14321 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
14322 be consistent with other sources of this directory.
14323 (init_registers_amd64): Correct name of source file of this function
14324 in the comment.
14325
e0a61e09
PM
143262010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14327
14328 * configure.srv (x86_64-*-mingw*): New configuration for Windows
14329 64-bit executables.
14330
54709339
PM
143312010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14332
14333 * win32-i386-low.c: Add 64-bit support.
14334 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
14335 (init_registers_amd64): Declare.
14336 (mappings): Add 64-bit version of array.
14337 (init_windows_x86): New function.
14338 (the_low_target): Change init_arch field to init_windows_x86.
14339
e8f0053d
PM
143402010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14341
14342 * win32-low.c: Adapt to support also 64-bit architecture.
14343 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
14344 (get_image_name): Use SIZE_T type for local variable `done'.
14345 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
14346 (toolhelp_get_dll_name): Idem.
14347 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
14348 Use uintptr_t typecast to avoid warning.
14349 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
14350 (handle_exception): Use phex_nz to avoid warning.
14351 (win32_wait): Remove unused local variable `process'.
14352
c481e77e
PM
143532010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14354
14355 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
14356 `amd64-avx.o'.
14357
12ea4b69
PM
143582010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
14359
14360 * configure.ac: Use `ws2_32' library for srv_mingw.
14361 * configure: Regenerate.
14362 * gdbreplay.c: Include winsock2.h instead of winsock.h.
14363 * remote-utils.c: Likewise.
14364
f6d1620c
L
143652010-04-17 H.J. Lu <hongjiu.lu@intel.com>
14366
14367 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
14368 if __x86_64__ is defined.
14369
8e642873
PM
143702010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14371
14372 * configure: Regenerate.
14373
711e434b
PM
143742010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14375
14376 * server.c (handle_query): Handle 'qGetTIBAddr' query.
14377 * target.h (target_ops): New get_tib_address field.
14378 * win32-low.h (win32_thread_info): Add thread_local_base field.
14379 * win32-low.c (child_add_thread): Add tlb argument.
14380 Set thread_local_base field to TLB.
14381 (get_child_debug_event): Adapt to child_add_thread change.
14382 (win32_get_tib_address): New function.
14383 (win32_target_ops): Set get_tib_address field to
14384 win32_get_tib_address.
14385 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
14386
505106cd
PA
143872010-04-12 Pedro Alves <pedro@codesourcery.com>
14388
505106cd
PA
14389 * linux-low.c (linux_mourn): Also remove the process.
14390 * server.c (handle_target_event): Don't remove the process here.
14391 * nto-low.c (nto_mourn): New.
14392 (nto_target_ops): Install it.
14393 * spu-low.c (spu_mourn): New.
14394 (spu_target_ops): Install it.
14395 * win32-low.c (win32_mourn): New.
14396 (win32_target_ops): Install it.
14397
e8470a06
PA
143982010-04-12 Pedro Alves <pedro@codesourcery.com>
14399
14400 * server.h (buffer_xml_printf): Remove redundant `;'.
14401
45ba0d02
PA
144022010-04-12 Pedro Alves <pedro@codesourcery.com>
14403
14404 * regcache.c (set_register_cache): Invalidate regcaches before
14405 changing the register cache layout.
14406 (regcache_invalidate_one): Allow a NULL regcache.
14407 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
14408 regcaches before changing the register cache layout or the target
14409 regsets.
14410
59e04013
L
144112010-04-12 H.J. Lu <hongjiu.lu@intel.com>
14412
14413 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
14414 variable warning on Linux/x86-64.
14415
8336d594
PA
144162010-04-11 Pedro Alves <pedro@codesourcery.com>
14417
14418 GDBserver disconnected tracing support.
14419
14420 * linux-low.c (linux_remove_process): Delete.
14421 (add_lwp): Don't set last_resume_kind here.
14422 (linux_kill): Use `mourn'.
14423 (linux_detach): Use `thread_db_detach', and `mourn'.
14424 (linux_mourn): New.
14425 (linux_attach_lwp_1): Adjust comment.
14426 (linux_attach): last_resume_kind moved the thread_info; adjust.
14427 (status_pending_p_callback): Adjust.
14428 (linux_wait_for_event_1): Adjust.
14429 (count_events_callback, select_singlestep_lwp_callback)
14430 (select_event_lwp_callback, cancel_breakpoints_callback)
14431 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
14432 (proceed_one_lwp): Adjust.
14433 (linux_async): Add debug output.
14434 (linux_thread_stopped): New.
14435 (linux_pause_all): New.
14436 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
14437 linux_pause_all.
14438 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
14439 (thread_db_free): Delete declaration.
14440 (thread_db_detach, thread_db_mourn): Declare.
14441 * thread-db.c (thread_db_init): Use thread_db_mourn.
14442 (thread_db_free): Delete, split in two.
14443 (disable_thread_event_reporting): New.
14444 (thread_db_detach): New.
14445 (thread_db_mourn): New.
14446
14447 * server.h (struct thread_info) <last_resume_kind>: New field.
14448 <attached>: Add comment.
14449 <gdb_detached>: New field.
14450 (handler_func): Change return type to int.
14451 (handle_serial_event, handle_target_event): Ditto.
14452 (gdb_connected): Declare.
14453 (tracing): Delete.
14454 (disconnected_tracing): Declare.
14455 (stop_tracing): Declare.
14456
14457 * server.c (handle_query) <qSupported>: Report support for
14458 disconnected tracing.
14459 (queue_stop_reply_callback): Account for running threads.
14460 (gdb_wants_thread_stopped): New.
14461 (gdb_wants_all_threads_stopped): New.
14462 (gdb_reattached_process): New.
14463 (handle_status): Clear the `gdb_detached' flag of all processes.
14464 In all-stop, stop all threads.
14465 (main): Be sure to leave tfind mode. Handle disconnected tracing.
14466 (process_serial_event): If the remote connection breaks, or if an
14467 exit was forced with "monitor exit", force an event loop exit.
14468 Handle disconnected tracing on detach.
14469 (handle_serial_event): Adjust.
14470 (handle_target_event): If GDB isn't connected, forward events back
14471 to the inferior, unless the last process exited, in which case,
14472 exit gdbserver. Adjust interface.
14473
14474 * remote-utils.c (remote_open): Don't block in accept. Instead
14475 register an event loop source on the listen socket file
14476 descriptor. Refactor bits into ...
14477 (listen_desc): ... this new global.
14478 (gdb_connected): ... this new function.
14479 (enable_async_notification): ... this new function.
14480 (handle_accept_event): ... this new function.
14481 (remote_close): Clear remote_desc.
14482
14483 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
14484
14485 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
14486 New fields.
14487 (mourn_inferior): Define.
14488 (target_process_qsupported): Avoid the dangling else problem.
14489 (thread_stopped): Define.
14490 (pause_all): Define.
14491 (target_waitstatus_to_string): Declare.
14492 * target.c (target_waitstatus_to_string): New.
14493
14494 * tracepoint.c (tracing): Make extern.
14495 (disconnected_tracing): New.
14496 (stop_tracing): Make extern. Handle tracing stops due to GDB
14497 disconnecting.
14498 (cmd_qtdisconnected): New.
14499 (cmd_qtstatus): Report disconnected tracing status in trace reply.
14500 (handle_tracepoint_general_set): Handle QTDisconnected.
14501
14502 * event-loop.c (event_handler_func): Change return type to int.
14503 (process_event): Bail out if the event handler wants the event
14504 loop to stop.
14505 (handle_file_event): Ditto.
14506 (start_event_loop): Bail out if the event handler wants the event
14507 loop to stop.
14508
14509 * nto-low.c (nto_target_ops): Adjust.
14510 * spu-low.c (spu_wait): Don't remove the process here.
14511 (spu_target_ops): Adjust.
14512 * win32-low.c (win32_wait): Don't remove the process here.
14513 (win32_target_ops): Adjust.
14514
5d267c4c
PA
145152010-04-11 Pedro Alves <pedro@codesourcery.com>
14516
14517 * regcache.c (realloc_register_cache): Invalidate inferior's
14518 regcache before recreating it.
14519
623ccd72
PA
145202010-04-09 Pedro Alves <pedro@codesourcery.com>
14521
14522 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
14523
219f2f23
PA
145242010-04-09 Stan Shebs <stan@codesourcery.com>
14525 Pedro Alves <pedro@codesourcery.com>
14526
14527 * server.h (LONGEST): New.
14528 (struct thread_info) <while_stepping>: New field.
14529 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
14530 Declare.
14531 (initialize_tracepoint, handle_tracepoint_general_set)
14532 (handle_tracepoint_query, tracepoint_finished_step)
14533 (tracepoint_was_hit, release_while_stepping_state_list):
14534 (current_traceframe): Declare.
14535 * server.c (handle_general_set): Handle tracepoint packets.
14536 (read_memory): New.
14537 (write_memory): New.
14538 (handle_search_memory_1): Use read_memory.
14539 (handle_query): Report support for conditional tracepoints, trace
14540 state variables, and tracepoint sources. Handle tracepoint
14541 queries.
14542 (main): Initialize the tracepoints module.
14543 (process_serial_event): Handle traceframe reads/writes.
14544
14545 * linux-low.c (handle_tracepoints): New.
14546 (linux_wait_1): Call it.
14547 (linux_resume_one_lwp): Handle while-stepping.
14548 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
14549 (linux_target_ops): Install them.
14550 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
14551 New field.
14552 * linux-x86-low.c (x86_supports_tracepoints): New.
14553 (the_low_target). Install it.
14554
14555 * mem-break.h (delete_breakpoint): Declare.
14556 * mem-break.c (delete_breakpoint): Make external.
14557
14558 * target.h (struct target_ops): Add `supports_tracepoints',
14559 `read_pc', and `write_pc' fields.
14560 (target_supports_tracepoints): Define.
14561 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
14562 (phex_nz): New.
14563
14564 * regcache.h (struct regcache) <registers_owned>: New field.
14565 (init_register_cache, regcache_cpy): Declare.
14566 (regcache_read_pc, regcache_write_pc): Declare.
14567 (register_cache_size): Declare.
14568 (supply_regblock): Declare.
14569 * regcache.c (init_register_cache): New.
14570 (new_register_cache): Use it.
14571 (regcache_cpy): New.
14572 (register_cache_size): New.
14573 (supply_regblock): New.
14574 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 14575
219f2f23
PA
14576 * tracepoint.c: New.
14577
14578 * Makefile.in (OBS): Add tracepoint.o.
14579 (tracepoint.o): New rule.
14580
3a13a53b
L
145812010-04-08 H.J. Lu <hongjiu.lu@intel.com>
14582
14583 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
14584 (i386-mmx.o): New.
14585 (i386-mmx.c): Likewise.
14586 (i386-mmx-linux.o): Likewise.
14587 (i386-mmx-linux.c): Likewise.
14588
14589 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
14590 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
14591 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
14592 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
14593
14594 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
14595 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
14596 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
14597
1570b33e
L
145982010-04-07 H.J. Lu <hongjiu.lu@intel.com>
14599
14600 * Makefile.in (clean): Updated.
14601 (i386-avx.o): New.
14602 (i386-avx.c): Likewise.
14603 (i386-avx-linux.o): Likewise.
14604 (i386-avx-linux.c): Likewise.
14605 (amd64-avx.o): Likewise.
14606 (amd64-avx.c): Likewise.
14607 (amd64-avx-linux.o): Likewise.
14608 (amd64-avx-linux.c): Likewise.
14609
14610 * configure.srv (srv_i386_regobj): Add i386-avx.o.
14611 (srv_i386_linux_regobj): Add i386-avx-linux.o.
14612 (srv_amd64_regobj): Add amd64-avx.o.
14613 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
14614 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
14615 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
14616 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
14617 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
14618 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
14619 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
14620
14621 * i387-fp.c: Include "i386-xstate.h".
14622 (i387_xsave): New.
14623 (i387_cache_to_xsave): Likewise.
14624 (i387_xsave_to_cache): Likewise.
14625 (x86_xcr0): Likewise.
14626
14627 * i387-fp.h (i387_cache_to_xsave): Likewise.
14628 (i387_xsave_to_cache): Likewise.
14629 (x86_xcr0): Likewise.
14630
14631 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
14632 * linux-crisv32-low.c (target_regsets): Likewise.
14633 * linux-m68k-low.c (target_regsets): Likewise.
14634 * linux-mips-low.c (target_regsets): Likewise.
14635 * linux-ppc-low.c (target_regsets): Likewise.
14636 * linux-s390-low.c (target_regsets): Likewise.
14637 * linux-sh-low.c (target_regsets): Likewise.
14638 * linux-sparc-low.c (target_regsets): Likewise.
14639 * linux-xtensa-low.c (target_regsets): Likewise.
14640
14641 * linux-low.c: Include <sys/uio.h>.
14642 (regsets_fetch_inferior_registers): Support nt_type.
14643 (regsets_store_inferior_registers): Likewise.
14644 (linux_process_qsupported): New.
14645 (linux_target_ops): Add linux_process_qsupported.
14646
14647 * linux-low.h (regset_info): Add nt_type.
14648 (linux_target_ops): Add process_qsupported.
14649
14650 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
14651 and <sys/uio.h>.
14652 (init_registers_i386_avx_linux): New.
14653 (init_registers_amd64_avx_linux): Likewise.
14654 (xmltarget_i386_linux_no_xml): Likewise.
14655 (xmltarget_amd64_linux_no_xml): Likewise.
14656 (PTRACE_GETREGSET): Likewise.
14657 (PTRACE_SETREGSET): Likewise.
14658 (x86_fill_xstateregset): Likewise.
14659 (x86_store_xstateregset): Likewise.
14660 (use_xml): Likewise.
14661 (x86_linux_update_xmltarget): Likewise.
14662 (x86_linux_process_qsupported): Likewise.
14663 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
14664 (x86_arch_setup): Don't call init_registers_amd64_linux nor
14665 init_registers_i386_linux here. Call
14666 x86_linux_update_xmltarget.
14667 (the_low_target): Add x86_linux_process_qsupported.
14668
14669 * server.c (handle_query): Call target_process_qsupported.
14670
14671 * target.h (target_ops): Add process_qsupported.
14672 (target_process_qsupported): New.
14673
fc7238bb
PA
146742010-04-03 Pedro Alves <pedro@codesourcery.com>
14675
14676 * inferiors.c (add_thread): Set last_status kind to
14677 TARGET_WAITKIND_IGNORE.
14678 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
14679 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
14680 (linux_wait_1): Move `thread' local definition to block that uses
14681 it. Don't NULL initialize `event_child'.
14682 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
14683 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
14684 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
14685
bdabb078
PA
146862010-04-01 Pedro Alves <pedro@codesourcery.com>
14687
14688 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
14689 an extended waitstatus, or by a watchpoint.
14690 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
14691 thread was stepping or has been stopped by a watchpoint.
14692
d3bbe7a0
PA
146932010-04-01 Pedro Alves <pedro@codesourcery.com>
14694
14695 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
14696 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
14697 of another, then delete the previous, and validate all
14698 breakpoints.
14699 (validate_inserted_breakpoint): New.
14700 (delete_disabled_breakpoints): New.
14701 (validate_breakpoints): New.
14702 (check_mem_read): Validate breakpoints before trusting their
14703 shadow. Delete disabled breakpoints.
14704 (check_mem_write): Validate breakpoints before trusting they
14705 should be inserted. Delete disabled breakpoints.
14706 * mem-break.h (validate_breakpoints):
14707 * server.c (handle_query): Validate breakpoints when we see a
14708 qSymbol query.
14709
8b07ae33
PA
147102010-04-01 Pedro Alves <pedro@codesourcery.com>
14711
14712 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
14713 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
14714 if we could tell there's a GDB breakpoint at stop_pc.
14715 (need_step_over_p): Don't do a step over if we find a GDB
14716 breakpoint at the resume PC.
14717
14718 * mem-break.c (struct raw_breakpoint): New.
14719 (enum bkpt_type): New type `gdb_breakpoint'.
14720 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
14721 fields. New field `raw'.
14722 (find_raw_breakpoint_at): New.
14723 (set_raw_breakpoint_at): Handle refcounting. Create a raw
14724 breakpoint instead.
14725 (set_breakpoint_at): Adjust.
14726 (delete_raw_breakpoint): New.
14727 (release_breakpoint): New.
14728 (delete_breakpoint): Rename to...
14729 (delete_breakpoint_1): ... this. Add proc parameter. Use
14730 release_breakpoint. Return ENOENT.
14731 (delete_breakpoint): Reimplement.
14732 (find_breakpoint_at): Delete.
14733 (find_gdb_breakpoint_at): New.
14734 (delete_breakpoint_at): Delete.
14735 (set_gdb_breakpoint_at): New.
14736 (delete_gdb_breakpoint_at): New.
14737 (gdb_breakpoint_here): New.
14738 (set_reinsert_breakpoint): Use release_breakpoint.
14739 (uninsert_breakpoint): Rename to ...
14740 (uninsert_raw_breakpoint): ... this.
14741 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
14742 (reinsert_raw_breakpoint): Change parameter type to
14743 raw_breakpoint.
14744 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
14745 instead.
14746 (check_breakpoints): Adjust. Use release_breakpoint.
14747 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
14748 (breakpoint_inserted_here): Ditto.
14749 (check_mem_read): Adjust to iterate over raw breakpoints instead.
14750 Don't trust the breakpoint's shadow if it is not inserted.
14751 (check_mem_write): Adjust to iterate over raw breakpoints instead.
14752 (delete_all_breakpoints): Adjust.
14753 (free_all_breakpoints): Mark all breakpoints as uninserted, and
14754 use delete_breakpoint_1.
14755
14756 * mem-break.h (breakpoints_supported): Delete declaration.
14757 (set_gdb_breakpoint_at): Declare.
14758 (gdb_breakpoint_here): Declare.
14759 (delete_breakpoint_at): Delete.
14760 (delete_gdb_breakpoint_at): Declare.
14761
14762 * server.h (struct raw_breakpoint): Forward declare.
14763 (struct process_info): New field `raw_breakpoints'.
14764
14765 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
14766 breakpoints.
14767
6bf5e0ba
PA
147682010-03-24 Pedro Alves <pedro@codesourcery.com>
14769
14770 * linux-low.c (status_pending_p_callback): Fix comment.
14771 (linux_wait_for_event_1): Move most of the internal breakpoint
14772 handling from here...
14773 (linux_wait_1): ... to here.
14774 (count_events_callback): New.
14775 (select_singlestep_lwp_callback): New.
14776 (select_event_lwp_callback): New.
14777 (cancel_breakpoints_callback): New.
14778 (select_event_lwp): New.
14779 (linux_wait_1): Simplify internal breakpoint handling. Give equal
14780 priority to all LWPs that have had events that should be reported
14781 to the client. Cancel breakpoints when about to reporting the
14782 event to the client, not while stopping lwps. No longer cancel
14783 finished single-steps here.
14784 (cancel_finished_single_step): Delete.
14785 (cancel_finished_single_steps): Delete.
14786
414a389f
PA
147872010-03-24 Pedro Alves <pedro@codesourcery.com>
14788
14789 * mem-break.c (enum bkpt_type): New.
14790 (struct breakpoint): New field `type'.
14791 (set_breakpoint_at): Change return type to struct breakpoint
14792 pointer. Set type to `other_breakpoint' by default.
14793 (delete_breakpoint): Rewrite, supporting more than one breakpoint
14794 in the breakpoint list.
14795 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
14796 (reinsert_breakpoint): Rename to ...
14797 (reinsert_raw_breakpoint): ... this.
14798 (reinsert_breakpoints_at): Adjust.
14799 * mem-break.h (struct breakpoint): Declare.
14800 (set_breakpoint_at): Change return type to struct breakpoint
14801 pointer.
14802
2280c721
PA
148032010-03-24 Pedro Alves <pedro@codesourcery.com>
14804
14805 * server.c (handle_query): Assign, not compare.
14806
d50171e4
PA
148072010-03-24 Pedro Alves <pedro@codesourcery.com>
14808
14809 Teach linux gdbserver to step-over-breakpoints.
14810
14811 * linux-low.c (can_hardware_single_step): New.
14812 (supports_breakpoints): New.
14813 (handle_extended_wait): If stopping threads, read the stop pc of
14814 the new cloned LWP.
14815 (get_pc): New.
14816 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
14817 low target doesn't support retrieving the PC.
14818 (add_lwp): Set last_resume_kind to resume_continue.
14819 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
14820 (linux_attach): Don't clear stop_expected. Set the lwp's
14821 last_resume_kind to resume_stop.
14822 (linux_detach_one_lwp): Don't check for removed breakpoints.
14823 (check_removed_breakpoint): Delete.
14824 (status_pending_p): Rename to ...
14825 (status_pending_p_callback): ... this. Don't check for removed
14826 breakpoints. Don't consider threads that are stopped from GDB's
14827 perspective.
14828 (linux_wait_for_lwp): Always read the stop_pc here.
14829 (cancel_breakpoint): New.
14830 (step_over_bkpt): New global.
14831 (linux_wait_for_event_1): Implement stepping over breakpoints.
14832 (gdb_wants_lwp_stopped): New.
14833 (gdb_wants_all_stopped): New.
14834 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
14835 single-step traps here. Store the thread's last reported target
14836 wait status.
14837 (send_sigstop): Don't clear stop_expected. Always set it,
14838 instead.
14839 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
14840 (cancel_finished_single_step): New.
14841 (cancel_finished_single_steps): New.
14842 (wait_for_sigstop): Don't cancel finished single-step traps here.
14843 (linux_resume_one_lwp): Don't check for removed breakpoints.
14844 Don't set `step' on non-hardware step archs.
14845 (linux_set_resume_request): Ignore resume_stop requests if already
14846 stopping or stopped. Set the lwp's last_resume_kind.
14847 (resume_status_pending_p): Don't check for removed breakpoints.
14848 (need_step_over_p): New.
14849 (start_step_over): New.
14850 (finish_step_over): New.
14851 (linux_resume_one_thread): Always queue a sigstop for resume_stop
14852 requests. Clear the thread's last reported target waitstatus.
14853 Don't use the `suspended' flag. Don't consider pending breakpoints.
14854 (linux_resume): Start a step-over if necessary.
14855 (proceed_one_lwp): New.
14856 (proceed_all_lwps): New.
14857 (unstop_all_lwps): New.
14858 * linux-low.h (struct lwp_info): Rewrite comment for the
14859 `suspended' flag. Add the `stop_pc' field. Delete the
14860 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
14861 Add `'last_resume_kind' and `need_step_over' fields.
14862 * inferiors.c (struct thread_info): Delete, moved elsewhere.
14863 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
14864 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
14865 (set_raw_breakpoint_at): New.
14866 (set_breakpoint_at): Rewrite to use it.
14867 (reinsert_breakpoint_handler): Delete.
14868 (set_reinsert_breakpoint): New.
14869 (reinsert_breakpoint_by_bp): Delete.
14870 (delete_reinsert_breakpoints): New.
14871 (uninsert_breakpoint): Rewrite.
14872 (uninsert_breakpoints_at): New.
14873 (reinsert_breakpoint): Rewrite.
14874 (reinsert_breakpoints_at): New.
14875 (check_breakpoints): Rewrite.
14876 (breakpoint_here): New.
14877 (breakpoint_inserted_here): New.
14878 (check_mem_read): Adjust.
14879 * mem-break.h (breakpoints_supported, breakpoint_here)
14880 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
14881 (reinsert_breakpoint_by_bp): Delete declaration.
14882 (delete_reinsert_breakpoints): Declare.
14883 (reinsert_breakpoint): Delete declaration.
14884 (reinsert_breakpoints_at): Declare.
14885 (uninsert_breakpoint): Delete declaration.
14886 (uninsert_breakpoints_at): Declare.
14887 (check_breakpoints): Adjust prototype.
14888 * server.h: Adjust include order.
14889 (struct thread_info): Declare here. Add a `last_status' field.
14890
30ba68cb
MS
148912010-03-23 Michael Snyder <msnyder@vmware.com>
14892
14893 * server.c (crc32): New function.
14894 (handle_query): Add handling for 'qCRC:' request.
14895
b9a881c2
PA
148962010-03-23 Pedro Alves <pedro@codesourcery.com>
14897
14898 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
14899 lwp had been stopped by a watchpoint.
14900
e92d13d5
PA
149012010-03-16 Pedro Alves <pedro@codesourcery.com>
14902
14903 * server.h (internal_error): Declare.
14904 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
14905 * utils.c (internal_error): New function.
14906
64daa791
AS
149072010-03-15 Andreas Schwab <schwab@redhat.com>
14908
14909 * configure.srv: Fix typo setting srv_regobj.
14910
f52cd8cd
PA
149112010-03-15 Pedro Alves <pedro@codesourcery.com>
14912
14913 * linux-low.c (fetch_register): Avoid passing a non string literal
14914 format to `error'.
14915 (usr_store_inferior_registers): Ditto.
14916
93ae6fdc
PA
149172010-03-14 Pedro Alves <pedro@codesourcery.com>
14918
14919 * linux-low.c (linux_write_memory): Bail out early if peeking
14920 memory failed.
14921
c3adc08c
PA
149222010-03-14 Pedro Alves <pedro@codesourcery.com>
14923
14924 * linux-low.h (struct lwp_info): New fields
14925 `stopped_by_watchpoint' and `stopped_data_address'.
14926 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
14927 here, and cache them in the lwp object.
14928 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
14929 directly.
14930 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
14931 field.
14932 (linux_stopped_by_watchpoint): Rewrite.
14933 (linux_stopped_data_address): Rewrite.
14934
bce522a2
PA
149352010-03-06 Simo Melenius <simo.melenius@iki.fi>
14936
14937 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
14938 switching the current inferior, not before.
14939
90884b2b
L
149402010-03-01 H.J. Lu <hongjiu.lu@intel.com>
14941
14942 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
14943 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
14944 i386-linux.c and amd64-linux.c.
14945 (reg-i386.o): Removed.
14946 (reg-i386.c): Likewise.
14947 (reg-i386-linux.o): Likewise.
14948 (reg-i386-linux.c): Likewise.
14949 (reg-x86-64.o): Likewise.
14950 (reg-x86-64.c): Likewise.
14951 (reg-x86-64-linux.o): Likewise.
14952 (reg-x86-64-linux.c): Likewise.
14953 (i386.o): New.
14954 (i386.c): Likewise.
14955 (i386-linux.o): Likewise.
14956 (i386-linux.c): Likewise.
14957 (amd64.o): Likewise.
14958 (amd64.c): Likewise.
14959 (amd64-linux.o): Likewise.
14960 (amd64-linux.c): Likewise.
14961
14962 * configure.srv (srv_i386_regobj): New.
14963 (srv_i386_linux_regobj): Likewise.
14964 (srv_amd64_regobj): Likewise.
14965 (srv_amd64_linux_regobj): Likewise.
14966 (srv_i386_32bit_xmlfiles): Likewise.
14967 (srv_i386_64bit_xmlfiles): Likewise.
14968 (srv_i386_xmlfiles): Likewise.
14969 (srv_amd64_xmlfiles): Likewise.
14970 (srv_i386_linux_xmlfiles): Likewise.
14971 (srv_amd64_linux_xmlfiles): Likewise.
14972 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
14973 srv_xmlfiles to $srv_i386_xmlfiles.
14974 (i[34567]86-*-mingw32ce*): Likewise.
14975 (i[34567]86-*-mingw*): Likewise.
14976 (i[34567]86-*-nto*): Likewise.
14977 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
14978 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
14979 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
14980 (x86_64-*-linux*): Likewise.
14981
14982 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
14983 (init_registers_amd64_linux): New.
14984 (x86_arch_setup): Replace init_registers_x86_64_linux with
14985 init_registers_amd64_linux.
14986
193f13e6
MK
149872010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
14988
14989 * configure.ac: Check for libdl. If it is not available link against
14990 static libthread_db.
14991 * configure: Regenerate.
14992
85d721b8
PA
149932010-02-22 Pedro Alves <pedro@codesourcery.com>
14994
14995 PR9605
14996
14997 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
14998 handing a read watchpoint.
14999 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
15000
6076632b
DE
150012010-02-12 Doug Evans <dje@google.com>
15002
15003 * linux-low.c (linux_supports_tracefork_flag): Document.
15004 (linux_look_up_symbols): Add comment.
15005
3327ccf7
L
150062010-02-03 H.J. Lu <hongjiu.lu@intel.com>
15007
15008 * regcache.c (supply_register): Clear regcache if buf is NULL.
15009
0718675c 150102010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 15011 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
15012
15013 * inferiors.c (find_inferior): Add function documentation.
15014 (unloaded_dll): Handle the case where the unloaded dll has not
15015 been previously registered in the dll list.
15016
177321bd
DJ
150172010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
15018
15019 * linux-arm-low.c (thumb_breakpoint_len): Delete.
15020 (thumb2_breakpoint): New.
15021 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
15022
2b009048
DJ
150232010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
15024
15025 * linux-low.c (get_stop_pc): Check for SIGTRAP.
15026 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
15027 breakpoints.
15028
3be029c7
PA
150292010-01-21 Pedro Alves <pedro@codesourcery.com>
15030
15031 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
15032
18f5de3b
JK
150332010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
15034
15035 * linux-s390-low.c (s390_collect_ptrace_register)
15036 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
15037
3743bb4f
DE
150382010-01-21 Doug Evans <dje@google.com>
15039
14ce3065
DE
15040 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
15041 (PTRACE_ARG4_TYPE): New macro.
15042 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
15043 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
15044 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
15045 (usr_store_inferior_registers): Ditto.
15046 (linux_read_memory, linux_write_memory): Ditto.
15047 (linux_test_for_tracefork): Ditto.
15048
3743bb4f
DE
15049 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
15050 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
15051
8b315be5
PA
150522010-01-21 Pedro Alves <pedro@codesourcery.com>
15053
15054 * proc-service.c (ps_lgetregs): Don't refetch registers from the
15055 target.
15056
85492558
PA
150572010-01-21 Pedro Alves <pedro@codesourcery.com>
15058
15059 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
15060 prototype to take a regcache. Adjust.
15061
442ea881
PA
150622010-01-20 Pedro Alves <pedro@codesourcery.com>
15063
15064 * regcache.h (struct thread_info): Forward declare.
15065 (struct regcache): New.
15066 (new_register_cache): Adjust prototype.
15067 (get_thread_regcache): Declare.
15068 (free_register_cache): Adjust prototype.
15069 (registers_to_string, registers_from_string): Ditto.
15070 (supply_register, supply_register_by_name, collect_register)
15071 (collect_register_as_string, collect_register_by_name): Ditto.
15072 * regcache.c (struct inferior_regcache_data): Delete.
15073 (get_regcache): Rename to ...
15074 (get_thread_regcache): ... this. Adjust. Switch inferior before
15075 fetching registers.
15076 (regcache_invalidate_one): Adjust.
15077 (regcache_invalidate): Fix prototype.
15078 (new_register_cache): Return the new register cache.
15079 (free_register_cache): Change prototype.
15080 (realloc_register_cache): Adjust.
15081 (registers_to_string): Change prototype to take a regcache. Adjust.
15082 (registers_from_string): Ditto.
15083 (register_data): Ditto.
15084 (supply_register): Ditto.
15085 (supply_register_by_name): Ditto.
15086 (collect_register): Ditto.
15087 (collect_register_as_string): Ditto.
15088 (collect_register_by_name): Ditto.
15089 * server.c (process_serial_event): Adjust.
15090 * linux-low.h (regset_fill_func, regset_store_func): Change
15091 prototype.
15092 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
15093 Change prototype.
15094 * linux-low.c (get_stop_pc): Adjust.
15095 (check_removed_breakpoint): Adjust.
15096 (linux_wait_for_event): Adjust.
15097 (linux_resume_one_lwp): Adjust.
15098 (fetch_register): Add regcache parameter. Adjust.
15099 (usr_store_inferior_registers): Ditto.
15100 (regsets_fetch_inferior_registers): Ditto.
15101 (regsets_store_inferior_registers): Ditto.
15102 (linux_fetch_registers, linux_store_registers): Ditto.
15103 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
15104 regcache. Adjust.
43aaf8b6
PA
15105 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
15106 Ditto.
442ea881
PA
15107 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
15108 prototype to take a regcache.
15109 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
15110 * remote-utils.c (convert_ascii_to_int, outreg)
15111 (prepare_resume_reply): Change prototype to take a regcache.
15112 Adjust.
15113 * target.h (struct target_ops) <fetch_registers, store_registers>:
15114 Change prototype to take a regcache.
15115 (fetch_inferior_registers, store_inferior_registers): Change
15116 prototype to take a regcache. Adjust.
15117 * proc-service.c (ps_lgetregs): Adjust.
15118 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
15119 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
15120 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
15121 take a regcache. Adjust.
15122 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
15123 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
15124 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
15125 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
15126 * linux-cris-low.c (cris_get_pc, cris_set_pc)
15127 (cris_cannot_fetch_register):
15128 (cris_breakpoint_at): Change prototype to take a regcache.
15129 Adjust.
15130 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
15131 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
15132 to take a regcache. Adjust.
15133 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
15134 Adjust.
15135 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
15136 take a regcache. Adjust.
15137 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
15138 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
15139 (m68k_set_pc): Change prototype to take a regcache. Adjust.
15140 * linux-mips-low.c (mips_get_pc):
15141 (mips_set_pc): Change prototype to take a regcache. Adjust.
15142 (mips_reinsert_addr): Adjust.
15143 (mips_collect_register): Change prototype to take a regcache.
15144 Adjust.
15145 (mips_supply_register):
15146 (mips_collect_register_32bit, mips_supply_register_32bit)
15147 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
15148 (mips_store_fpregset): Ditto.
43aaf8b6
PA
15149 * linux-ppc-low.c (ppc_supply_ptrace_register)
15150 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
15151 (parse_spufs_run): Adjust.
15152 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
15153 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
15154 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
15155 take a regcache. Adjust.
15156 * linux-s390-low.c (s390_collect_ptrace_register)
15157 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
15158 (s390_set_pc): Change prototype to take a regcache. Adjust.
15159 (s390_arch_setup): Adjust.
15160 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
15161 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
15162 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
15163 (sparc_fill_gregset, sparc_store_gregset_from_stack)
15164 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
15165 regcache. Adjust.
15166 (sparc_breakpoint_at): Adjust.
15167 * linux-xtensa-low.c (xtensa_fill_gregset):
15168 (xtensa_store_gregset):
15169 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
15170 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
15171 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
15172 prototype to take a regcache. Adjust.
15173 * win32-arm-low.c (arm_fetch_inferior_register)
15174 (arm_store_inferior_register): Change prototype to take a
15175 regcache. Adjust.
15176 * win32-i386-low.c (i386_fetch_inferior_register)
15177 (i386_store_inferior_register): Change prototype to take a
15178 regcache. Adjust.
15179 * win32-low.c (child_fetch_inferior_registers)
15180 (child_store_inferior_registers): Change prototype to take a
15181 regcache. Adjust.
15182 (win32_wait): Adjust.
15183 (win32_fetch_inferior_registers): Change prototype to take a
15184 regcache. Adjust.
15185 (win32_store_inferior_registers): Adjust.
15186 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
15187 store_inferior_register>: Change prototype to take a regcache.
15188
60c3d7b0
DE
151892010-01-20 Doug Evans <dje@google.com>
15190
15191 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
15192 #ifdef.
15193 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 15194 (W_STOPCODE): Provide definition if missing.
60c3d7b0 15195
dc146f7c
VP
151962010-01-13 Vladimir Prus <vladimir@codesourcery.com>
15197
15198 * linux-low.c (linux_core_of_thread): New.
15199 (compare_ints, show_process, list_threads): New.
15200 (linux_qxfer_osdata): Report threads and cores.
15201 (linux_target_op): Register linux_core_of_thread.
15202 * remote-utils.c (prepare_resume_reply): Report the core.
15203 (buffer_xml_printf): Support %d specifier.
15204 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
15205 New.
15206 (handle_query): Handle qXfer:threads. Announce availability
15207 thereof.
15208 * target.h (struct target_ops): New field core_of_thread.
15209
7803799a
UW
152102010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
15211
15212 * Makefile.in (clean): Remove new generated files.
15213 (reg-s390.o, reg-s390.c): Remove rules.
15214 (reg-s390x.o, reg-s390x.c): Likewise.
15215 (s390-linux32.o, s390-linux32.c): Add rules.
15216 (s390-linux64.o, s390-linux64.c): Likewise.
15217 (s390x-linux64.o, s390x-linux64.c): Likewise.
15218 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
15219 * linux-s390-low.c: Include <elf.h>.
15220 (HWCAP_S390_HIGH_GPRS): Define if undefined.
15221 (init_registers_s390): Remove prototype.
15222 (init_registers_s390x): Likewise.
15223 (init_registers_s390_linux32): Add prototype.
15224 (init_registers_s390_linux64): Likewise.
15225 (init_registers_s390x_linux64): Likewise.
15226 (s390_num_regs_3264): New define.
15227 (s390_regmap_3264): New global variable.
15228 (s390_cannot_fetch_register): Remove obsolete check.
15229 (s390_cannot_store_register): Likewise.
15230 (s390_collect_ptrace_register): Handle upper/lower register halves.
15231 (s390_supply_ptrace_register): Likewise.
15232 (s390_fill_gregset): Update to register number changes.
15233 (s390_get_hwcap): New routine.
15234 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
15235 Install appropriate regmap and register set.
15236
6e7ffa39
JB
152372010-01-01 Joel Brobecker <brobecker@adacore.com>
15238
15239 * server.c (gdbserver_version): Update copyright year to 2010.
15240 * gdbreplay.c (gdbreplay_version): Likewise.
15241
957f3f49
DE
152422009-12-28 Doug Evans <dje@google.com>
15243
15244 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
15245 elf/external.h. Include <elf.h> instead but only if necessary.
15246
ca5c370d
PA
152472009-12-28 Pedro Alves <pedro@codesourcery.com>
15248
15249 * linux-low.c (linux_remove_process): Remove `detaching'
15250 parameter. Don't release/detach from thread_db here.
15251 (linux_kill): Release/detach from thread_db here, ...
15252 (linux_detach): ... and here, before actually detaching.
15253 (linux_wait_1): ... and here, when a process exits.
15254 * thread-db.c (any_thread_of): New.
15255 (thread_db_free): Switch the current inferior to a thread of the
15256 passed in process.
15257
4ee62156
DE
152582009-12-21 Doug Evans <dje@google.com>
15259
d90e6a88
DE
15260 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
15261
c5f62d5f
DE
15262 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
15263 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
15264 warning ifndef __NR_tkill. Move setting of errno there too.
15265 Delete unnecessary resetting of errno after syscall.
15266 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
15267
10e86dd7
DE
15268 * configure.ac: Check for dladdr.
15269 * config.in: Regenerate.
15270 * configure: Regenerate.
15271 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
15272 (try_thread_db_load): Update.
15273
4ee62156
DE
15274 * linux-low.c (my_waitpid): Delete unnecessary prototype.
15275
00f515da
DE
152762009-12-18 Doug Evans <dje@google.com>
15277
e9464885
DE
15278 * event-loop.c: Include unistd.h if it exists.
15279
07d4f67e
DE
15280 * linux-low.c (my_waitpid): Move definition away from being in
15281 between linux_tracefork_child/linux_test_for_tracefork.
15282
00f515da
DE
15283 * gdb_proc_service.h (psaddr_t): Fix type.
15284 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
15285 signature to match glibc.
15286
1de1badb
DE
152872009-12-16 Doug Evans <dje@google.com>
15288
15289 * linux-low.c (linux_read_memory): Fix argument to read.
15290
aeeb81d1
PA
152912009-11-26 Pedro Alves <pedro@codesourcery.com>
15292
15293 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
15294 events, don't leave current_inferior pointing at null.
15295
10357975
PA
152962009-11-26 Pedro Alves <pedro@codesourcery.com>
15297
15298 * win32-low.c (LOG): Delete.
15299 (OUTMSG): Output to stderr.
15300 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
15301 on compile time LOG macro.
15302 (win32_wait): Fix debug output.
15303
cf6e3471
PA
153042009-11-26 Pedro Alves <pedro@codesourcery.com>
15305
15306 * win32-low.c (win32_add_one_solib): If the dll name is
15307 "ntdll.dll", prepend the system directory to the dll path.
15308
0c85e18e
MK
153092009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
15310
15311 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
15312
9ac544ce 153132009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 15314 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
15315
15316 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
15317 * configure.ac: Check for __mcoldfire__ and set
15318 gdb_cv_m68k_is_coldfire.
15319 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
15320 reg-cf.o and reg-m68k.o.
15321 * configure: Regenerated.
15322
fd7dd3e6
PA
153232009-11-16 Pedro Alves <pedro@codesourcery.com>
15324
15325 * linux-low.c (linux_remove_process): Add `detaching' parameter.
15326 Pass it to thread_db_free.
15327 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
15328 proper `detaching' argument to linux_remove_process.
15329 * linux-low.h (thread_db_free): Add `detaching' parameter.
15330 * thread-db.c (thread_db_init): Pass false as `detaching' argument
15331 to thread_db_free.
15332 (thread_db_free): Add `detaching' parameter. Only
15333 call td_ta_clear_event if detaching from process.
15334
75aa492e
MK
153352009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
15336
15337 * thread-db.c (thread_db_free): Fix typo.
15338
21e1bee4
PP
153392009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
15340
15341 PR gdb/10838
15342 * thread-db.c (thread_db_free): Call td_ta_clear_event.
15343
8838b45e
NS
153442009-11-03 Nathan Sidwell <nathan@codesourcery.com>
15345
15346 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
15347 with an i686 compiler.
15348 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
15349 needed.
15350 * configure: Rebuilt.
15351
8a35fb51
SL
153522009-10-29 Sandra Loosemore <sandra@codesourcery.com>
15353
15354 PR gdb/10783
15355
15356 * server.c (handle_search_memory_1): Correct read_addr initialization
15357 in loop for searching subsequent chunks.
15358
96f15937
PP
153592009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
15360
15361 * configure.ac: New --with-libthread-db option.
15362 * thread-db.c: Allow direct dependence on libthread_db.
15363 (thread_db_free): Adjust.
15364 * config.in: Regenerate.
15365 * configure: Likewise.
889bf7c5 15366
5f7d1694
PP
153672009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
15368
15369 PR gdb/10757
15370 * thread-db.c (attach_thread): New function.
15371 (maybe_attach_thread): Return success/failure.
15372 (find_new_threads_callback): Adjust.
889bf7c5
PA
15373 (thread_db_find_new_threads): Loop until no new threads.
15374
88e3b899
PA
153752009-10-13 Pedro Alves <pedro@codesourcery.com>
15376
15377 * proc-service.c (ps_lgetregs): Formatting.
15378
cdbfd419
PP
153792009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
15380
15381 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
15382 * configure.ac: Adjust.
15383 * linux-low.h (struct process_info_private): Move members to struct
15384 thread_db.
15385 (thread_db_free, thread_db_handle_monitor_command): New prototype.
15386 * linux-low.c (linux_remove_process): Adjust.
15387 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
15388 * server.c (handle_query): Move code ...
15389 (handle_monitor_command): ... here. New function.
15390 * target.h (struct target_ops): New member.
15391 * thread-db.c (struct thread_db): New.
15392 (libthread_db_search_path): New variable.
15393 (thread_db_create_event, thread_db_enable_reporting)
15394 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
15395 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
15396 (try_thread_db_load_1, dladdr_to_soname): New functions.
15397 (try_thread_db_load, thread_db_load_search): New functions.
15398 (thread_db_init): Search for libthread_db.
15399 (thread_db_free): New function.
15400 (thread_db_handle_monitor_command): Likewise.
15401 * config.in: Regenerate.
15402 * configure: Regenerate.
889bf7c5 15403
4168d2d6
UW
154042009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
15405
15406 * spu-low.c (spu_kill): Wait for inferior to terminate.
15407 Call clear_inferiors.
15408 (spu_detach): Call clear_inferiors.
15409
81ecdfbb
RW
154102009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15411
15412 * aclocal.m4: Regenerate.
15413 * config.in: Likewise.
15414 * configure: Likewise.
15415
0b9ff2c0
UW
154162009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15417
15418 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
15419 (parse_spufs_run): New function.
15420 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
15421 (ppc_breakpoint_at): Handle SPU breakpoints.
15422
efcbbd14
UW
154232009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15424
15425 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
15426 (SPUFS_MAGIC): Define.
15427 (spu_enumerate_spu_ids): New function.
15428 (linux_qxfer_spu): New function.
15429 (linux_target_ops): Install linux_qxfer_spu.
15430
f4d9bade
UW
154312009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15432
15433 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
15434 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
15435 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
15436 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
15437 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
15438 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
15439 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
15440 (init_registers_powerpc_cell32l): Add prototype.
15441 (init_registers_powerpc_cell64l): Likewise.
15442 (ppc_arch_setup): Detect Cell/B.E. architecture.
15443
96e946ca
RW
154442009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15445
15446 * Makefile.in (datarootdir): New variable.
15447
58d6951d
DJ
154482009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15449
15450 * linux-low.c (linux_write_memory): Update debugging output.
15451 * Makefile.in (clean): Add new descriptions.
15452 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
15453 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
15454 * configure.srv: Add new files for arm*-*-linux*.
15455 * linux-arm-low.c: Add new declarations.
15456 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
15457 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
15458 (HWCAP_VFPv3D16): New.
15459 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
15460 instead of __IWMMXT__.
15461 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
15462 (arm_arch_setup): New.
15463 (target_regsets): Remove #ifdef. Add VFP regset.
15464 (the_low_target): Use arm_arch_setup.
15465
12b42a12
DJ
154662009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15467
15468 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
15469 the main thread again.
15470
ac8c974e
AR
154712009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
15472
15473 Adding Neutrino gdbserver.
15474 * configure: Regenerated.
15475 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
15476 * configure.srv (i[34567]86-*-nto*): New target.
15477 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
15478 * remote-utils.c [__QNX__]: Include sys/iomgr.h
15479 (nto_comctrl) [__QNX__]: New function.
15480 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
15481
4424e0c3 154822009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
15483
15484 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
15485 srv_tgtobj.
15486
912cf4ba
PA
154872009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
15488 Pedro Alves <pedro@codesourcery.com>
15489
15490 * win32-i386-low.c (i386_get_thread_context): Handle systems that
15491 don't support CONTEXT_EXTENDED_REGISTERS.
15492 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
15493 (the_low_target): Install them.
15494 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
15495 failing with ERROR_PIPE_NOT_CONNECTED.
15496
aa5ca48f
DE
154972009-06-30 Doug Evans <dje@google.com>
15498 Pierre Muller <muller@ics.u-strasbg.fr>
15499
15500 Add h/w watchpoint support to x86-linux, win32-i386.
15501 * Makefile.in (SFILES): Add i386-low.c
15502 (i386_low_h): Define.
15503 (i386-low.o): Add dependencies.
15504 (linux-x86-low.o): Add i386-low.h dependency.
15505 (win32-i386-low.o): Ditto.
15506 * i386-low.c: New file.
15507 * i386-low.h: New file.
15508 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
15509 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
15510 * linux-low.c (linux_add_process): Initialize arch_private.
15511 (linux_remove_process): Free arch_private.
15512 (add_lwp): Initialize arch_private.
15513 (delete_lwp): Free arch_private.
15514 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
15515 provided.
15516 * linux-low.h (process_info_private): New member arch_private.
15517 (lwp_info): New member arch_private.
15518 (linux_target_ops): New members new_process, new_thread,
15519 prepare_to_resume.
15520 (ptid_of): New macro.
15521 * linux-x86-low.c: Include stddef.h, i386-low.h.
15522 (arch_process_info): New struct.
15523 (arch_lwp_info): New struct.
15524 (x86_linux_dr_get, x86_linux_dr_set): New functions.
15525 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15526 (i386_dr_low_get_status): New function.
15527 (x86_insert_point, x86_remove_point): New functions.
15528 (x86_stopped_by_watchpoint): New function.
15529 (x86_stopped_data_address): New function.
15530 (x86_linux_new_process, x86_linux_new_thread): New functions.
15531 (x86_linux_prepare_to_resume): New function.
15532 (the_low_target): Add entries for insert_point, remove_point,
15533 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
15534 prepare_to_resume.
15535 * server.c (debug_hw_points): New global.
15536 (monitor_show_help): Document set debug-hw-points.
15537 (handle_query): Process "set debug-hw-points".
15538 * server.h (debug_hw_points): Declare.
15539 (paddress): Declare.
15540 * utils.c (NUMCELLS, CELLSIZE): New macros.
15541 (get_sell, xsnprintf, paddress): New functions.
15542 * win32-arm-low.c (the_low_target): Add entries for insert_point,
15543 remove_point, stopped_by_watchpoint, stopped_data_address.
15544 * win32-i386-low.c: Include i386-low.h.
15545 (debug_reg_state): Replaces dr.
15546 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15547 (i386_dr_low_get_status): New function.
15548 (i386_insert_point, i386_remove_point): New functions.
15549 (i386_stopped_by_watchpoint): New function.
15550 (i386_stopped_data_address): New function.
15551 (i386_initial_stuff): Update.
15552 (get_thread_context,set_thread_context,i386_thread_added): Update.
15553 (the_low_target): Add entries for insert_point,
15554 remove_point, stopped_by_watchpoint, stopped_data_address.
15555 * win32-low.c (win32_insert_watchpoint): New function.
15556 (win32_remove_watchpoint): New function.
15557 (win32_stopped_by_watchpoint): New function.
15558 (win32_stopped_data_address): New function.
15559 (win32_target_ops): Add entries for insert_watchpoint,
15560 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
15561 * win32-low.h (win32_target_ops): New members insert_point,
15562 remove_point, stopped_by_watchpoint, stopped_data_address.
15563
d993e290
PA
155642009-06-25 Pedro Alves <pedro@codesourcery.com>
15565
15566 * server.c (process_serial_event): Re-return unsupported, not
15567 error, if the type isn't recognized. Re-allow supporting only
15568 insert or remove packets. Also call require_running for
15569 breakpoints. Add missing break statement to default case. Tidy.
15570 * target.h (struct target_ops): Rename insert_watchpoint to
15571 insert_point, and remove_watchpoint to remove_point.
15572
15573 * linux-low.h (struct linux_target_ops): Likewise.
15574 * linux-low.c (linux_insert_watchpoint): Rename to ...
15575 (linux_insert_point): ... this. Adjust.
15576 (linux_remove_watchpoint): Rename to ...
15577 (linux_remove_point): ... this. Adjust.
15578 (linux_target_ops): Adjust.
15579 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
15580 (cris_insert_point): ... this.
15581 (cris_remove_watchpoint): Rename to ...
15582 (cris_remove_point): ... this.
15583 (the_low_target): Adjust.
15584
0f54c268
PM
155852009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
15586
15587 * server.c (handle_v_kill): Pass signal_pid to
15588 kill_inferior if multi_process is zero.
15589
c6314022
AR
155902009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
15591
15592 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
15593 * target.h (target_ops): Comment for *_watchpoint to make it clear
15594 the functions can get types '0' and '1'.
15595
4463ce24
AR
155962009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
15597
15598 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
15599 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
15600 * regcache.c (get_regcache): Likewise.
15601 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
15602 * win32-low.c (child_fetch_inferior_registers): Remove check for
15603 regno 0.
15604
cf8fd78b
PA
156052009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
15606 Pedro Alves <pedro@codesourcery.com>
15607
15608 * target.h (struct target_ops) <supports_multi_process>: New
15609 callback.
15610 (target_supports_multi_process): New.
15611 * server.c (handle_query): Even if GDB reports support, only
15612 enable multi-process if the target also supports it. Report
15613 multi-process support only if the target backend supports it.
15614 * linux-low.c (linux_supports_multi_process): New function.
15615 (linux_target_ops): Install it as target_supports_multi_process
15616 callback.
15617
47c0c975
DE
156182009-05-24 Doug Evans <dje@google.com>
15619
e09875d4
DE
15620 Global renaming of find_thread_pid to find_thread_ptid.
15621 * server.h (find_thread_ptid): Renamed from find_thread_pid.
15622 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
15623 All callers updated.
15624
e27d73f6
DE
15625 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
15626 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
15627 directly.
15628
47c0c975
DE
15629 * linux-low.c (get_stop_pc): Print pc if debug_threads.
15630 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
15631 (linux_resume_one_lwp): Ditto.
15632
2acc282a
DE
156332009-05-23 Doug Evans <dje@google.com>
15634
15635 * linux-low.c (linux_resume_one_lwp): Change type of first arg
15636 from struct inferior_list_entry * to struct lwp_info *.
15637 All callers updated.
15638
9f1036c1
DE
156392009-05-13 Doug Evans <dje@google.com>
15640
15641 * linux-x86-low.c: Don't include assert.h.
15642 (x86_siginfo_fixup): Use fatal, not assert.
15643 (x86_arch_setup): Fix comment.
15644
d0722149
DE
156452009-05-12 Doug Evans <dje@google.com>
15646
15647 Biarch support for i386/amd64 gdbserver.
15648 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
15649 Add linux-x86-low.c.
15650 (linux-i386-low.o, linux-x86-64-low.o): Delete.
15651 (linux-x86-low.o): Add.
15652 * linux-x86-64-low.c: Delete.
15653 * linux-i386-low.c: Delete.
15654 * linux-x86-low.c: New file.
15655 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
15656 linux-x86-low.o.
15657 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
15658 linux-x86-low.o.
15659 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
15660 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
15661 (linux_child_pid_to_exec_file): New function.
15662 (elf_64_header_p, elf_64_file_p): New functions.
15663 (siginfo_fixup): New function.
15664 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
15665 give target a chance to convert layout.
15666 * linux-low.h (linux_target_ops): New member siginfo_fixup.
15667 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
15668
fdeb2a12
DE
156692009-05-07 Doug Evans <dje@google.com>
15670
15671 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
15672 (regsets_store_inferior_registers): Ditto.
15673
a6dbe5df
PA
156742009-05-06 Pedro Alves <pedro@codesourcery.com>
15675
15676 PR server/10048
15677
15678 * linux-low.c (must_set_ptrace_flags): Delete.
15679 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
15680 of the global.
15681 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
15682 `lwp->must_set_ptrace_flags' instead.
ba42693b 15683 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
15684 (linux_wait_1): ... not here.
15685
5091eb23
DE
156862009-04-30 Doug Evans <dje@google.com>
15687
9f767825
DE
15688 * inferiors.c (started_inferior_callback): New function.
15689 (attached_inferior_callback): New function.
15690 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
15691 * server.c (print_started_pid, print_attached_pid): New functions.
15692 (detach_or_kill_for_exit): New function.
15693 (main): Call it instead of for_each_inferior (kill_inferior_callback).
15694 * server.h (have_started_inferiors_p): Declare.
15695 (have_attached_inferiors_p): Declare.
15696
5091eb23
DE
15697 * inferiors.c (remove_process): Fix memory leak, free process.
15698 * linux-low.c (linux_remove_process): New function.
15699 (linux_kill): Call it instead of remove_process.
15700 (linux_detach, linux_wait_1): Ditto.
15701
155c8968
PA
157022009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
15703
15704 * configure.srv: Add x86 Windows CE target.
15705
7fe519cb
UW
157062009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15707
15708 * inferiors.c (get_thread_process): Make global.
15709 * server.h (get_thread_process): Add prototype.
15710 * thread-db.c (find_one_thread): Use get_thread_process
15711 instead of current_process.
15712 (thread_db_get_tls_address): Do not crash if called when
15713 thread layer is not yet initialized.
15714
5472f405
UW
157152009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15716
15717 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
15718 * spu-low.c (current_tid): Rename to ...
15719 (current_ptid): ... this.
15720 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
15721 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
15722 ptid_get_lwp (current_ptid) instead of current_tid.
15723 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
15724 instead of current_tid. Use find_process_pid to verify pid
15725 argument is valid. Pass proper argument to remove_process.
15726 (spu_thread_alive): Compare current_ptid instead of current_tid.
15727 (spu_resume): Likewise.
15728
55ac2b99
PA
157292009-04-02 Pedro Alves <pedro@codesourcery.com>
15730
15731 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
15732 variable.
15733
95954743
PA
157342009-04-01 Pedro Alves <pedro@codesourcery.com>
15735
15736 Implement the multiprocess extensions, and add linux multiprocess
15737 support.
15738
15739 * server.h (ULONGEST): Declare.
15740 (struct ptid, ptid_t): New.
15741 (minus_one_ptid, null_ptid): Declare.
15742 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15743 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
15744 (struct inferior_list_entry): Change `id' type from unsigned from
15745 to ptid_t.
15746 (struct sym_cache, struct breakpoint, struct
15747 process_info_private): Forward declare.
15748 (struct process_info): Declare.
15749 (current_process): Declare.
15750 (all_processes): Declare.
15751 (initialize_inferiors): Declare.
15752 (add_thread): Adjust to use ptid_t.
15753 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
15754 (add_process, remove_process, find_thread_pid): Declare.
15755 (find_inferior_id): Adjust to use ptid_t.
15756 (cont_thread, general_thread, step_thread): Change type to ptid_t.
15757 (multi_process): Declare.
15758 (push_event): Adjust to use ptid_t.
15759 (read_ptid, write_ptid): Declare.
15760 (prepare_resume_reply): Adjust to use ptid_t.
15761 (clear_symbol_cache): Declare.
15762 * inferiors.c (all_processes): New.
15763 (null_ptid, minus_one_ptid): New.
15764 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15765 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
15766 (add_thread): Change unsigned long to ptid. Remove gdb_id
15767 parameter. Adjust.
15768 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
15769 (gdb_id_to_thread): Rename to ...
15770 (find_thread_pid): ... this. Change unsigned long to ptid.
15771 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
15772 (loaded_dll, pull_pid_from_list): Adjust.
15773 (add_process, remove_process, find_process_pid)
15774 (get_thread_process, current_process, initialize_inferiors): New.
15775 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
15776 (struct target_waitstatus) <related_pid>: Ditto.
15777 (struct target_ops) <kill, detach>: Add `pid' argument. Change
15778 return type to int.
15779 (struct target_ops) <join>: Add `pid' argument.
15780 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
15781 (struct target_ops) <wait>: Add `ptid' field. Change return type
15782 to ptid.
15783 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
15784 (mywait): Add `ptid' argument. Change return type to ptid_t.
15785 (target_pid_to_str): Declare.
15786 * target.c (set_desired_inferior): Adjust to use ptids.
15787 (mywait): Add new `ptid' argument. Adjust.
15788 (target_pid_to_str): New.
15789 * mem-break.h (free_all_breakpoints): Declare.
15790 * mem-break.c (breakpoints): Delelete.
15791 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
15792 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
15793 to use per-process breakpoint list.
15794 (free_all_breakpoints): New.
15795 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
15796 (symbol_cache, all_symbols_looked_up): Delete.
15797 (hexchars): New.
15798 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
15799 read_ptid): New.
15800 (prepare_resume_reply): Change ptid argument's type from unsigned
15801 long to ptid_t. Adjust. Implement W;process and X;process.
15802 (free_sym_cache, clear_symbol_cache): New.
15803 (look_up_one_symbol): Adjust to per-process symbol cache. *
15804 * server.c (cont_thread, general_thread, step_thread): Change type
15805 to ptid_t.
15806 (attached): Delete.
15807 (multi_process): New.
15808 (last_ptid): Change type to ptid_t.
15809 (struct vstop_notif) <ptid>: Change type to ptid_t.
15810 (queue_stop_reply, push_event): Change `ptid' argument's type to
15811 ptid_t.
15812 (discard_queued_stop_replies): Add `pid' argument.
15813 (start_inferior): Adjust to use ptids. Adjust to mywait interface
15814 changes. Don't reference the `attached' global.
15815 (attach_inferior): Adjust to mywait interface changes.
15816 (handle_query): Adjust to use ptids. Parse GDB's qSupported
15817 features. Handle and report "multiprocess+". Handle
15818 "qAttached:PID".
15819 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
15820 changes.
15821 (handle_v_kill): New.
15822 (handle_v_stopped): Adjust to use target_pid_to_str.
15823 (handle_v_requests): Allow multiple attaches and runs when
15824 multiprocess extensions are in effect. Handle "vKill".
15825 (myresume): Adjust to use ptids.
15826 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
15827 (handle_status): Adjust to discard_queued_stop_replies interface
15828 change.
15829 (first_thread_of, kill_inferior_callback)
15830 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
15831 (main): Call initialize_inferiors. Adjust to use ptids, killing
15832 and detaching from all inferiors. Handle multiprocess packet
15833 variants.
15834 * linux-low.h: Include gdb_proc_service.h.
15835 (struct process_info_private): New.
15836 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
15837 <lwpid_of>: Use ptid_get_lwp.
15838 (get_lwp_thread): Adjust.
15839 (struct lwp_info): Add `dead' member.
15840 (find_lwp_pid): Declare.
15841 * linux-low.c (thread_db_active): Delete.
15842 (new_inferior): Adjust comment.
15843 (inferior_pid): Delete.
15844 (linux_add_process): New.
15845 (handle_extended_wait): Adjust.
15846 (add_lwp): Change unsigned long to ptid.
15847 (linux_create_inferior): Add process to processes table. Adjust
15848 to use ptids. Don't set new_inferior here.
15849 (linux_attach_lwp): Rename to ...
15850 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
15851 it. Adjust to use ptids.
15852 (linux_attach_lwp): New.
15853 (linux_attach): Add process to processes table. Don't set
15854 new_inferior here.
15855 (struct counter): New.
15856 (second_thread_of_pid_p, last_thread_of_process_p): New.
15857 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
15858 multiple processes.
15859 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
15860 processes. Remove process from process table.
15861 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
15862 to multiple processes.
15863 (any_thread_of): New.
15864 (linux_detach): Add `pid' argument, and handle it. Remove process
15865 from processes table.
15866 (linux_join): Add `pid' argument. Handle it.
15867 (linux_thread_alive): Change unsighed long argument to ptid_t.
15868 Consider dead lwps as not being alive.
15869 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
15870 threads we're not interested in.
15871 (same_lwp, find_lwp_pid): New.
15872 (linux_wait_for_lwp): Change `pid' argument's type from int to
15873 ptid_t. Adjust.
15874 (linux_wait_for_event): Rename to ...
15875 (linux_wait_for_event_1): ... this. Change `pid' argument's type
15876 from int to ptid_t. Adjust.
15877 (linux_wait_for_event): New.
15878 (linux_wait_1): Add `ptid' argument. Change return type to
15879 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
15880 that exit from the process table.
15881 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
15882 Adjust.
15883 (mark_lwp_dead): New.
15884 (wait_for_sigstop): Adjust to use ptids. If a process exits while
15885 stopping all threads, mark its main lwp as dead.
15886 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
15887 ptids.
15888 (fetch_register, usr_store_inferior_registers)
15889 (regsets_fetch_inferior_registers)
15890 (regsets_store_inferior_registers, linux_read_memory)
15891 (linux_write_memory): Inline `inferior_pid'.
15892 (linux_look_up_symbols): Adjust to use per-process
15893 `thread_db_active'.
15894 (linux_request_interrupt): Adjust to use ptids.
15895 (linux_read_auxv): Inline `inferior_pid'.
15896 (initialize_low): Don't reference thread_db_active.
15897 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
15898 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
15899 (ps_getpid): Return the pid of the current inferior.
15900 * thread-db.c (proc_handle, thread_agent): Delete.
15901 (thread_db_create_event, thread_db_enable_reporting): Adjust to
15902 per-process data.
15903 (find_one_thread): Change argument type to ptid_t. Adjust to
15904 per-process data.
15905 (maybe_attach_thread): Adjust to per-process data and ptids.
15906 (thread_db_find_new_threads): Ditto.
15907 (thread_db_init): Ditto.
15908 * spu-low.c (spu_create_inferior, spu_attach): Add process to
15909 processes table. Adjust to use ptids.
15910 (spu_kill, spu_detach): Adjust interface. Remove process from
15911 processes table.
15912 (spu_join, spu_thread_alive): Adjust interface.
15913 (spu_wait): Adjust interface. Remove process from processes
15914 table. Adjust to use ptids.
15915 * win32-low.c (current_inferior_tid): Delete.
15916 (current_inferior_ptid): New.
15917 (debug_event_ptid): New.
15918 (thread_rec): Take a ptid. Adjust.
15919 (child_add_thread): Add `pid' argument. Adjust to use ptids.
15920 (child_delete_thread): Ditto.
15921 (do_initial_child_stuff): Add `attached' argument. Add process to
15922 processes table.
15923 (child_fetch_inferior_registers, child_store_inferior_registers):
15924 Adjust.
15925 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
15926 (win32_attach): Pass 1 to do_initial_child_stuff.
15927 (win32_kill): Adjust interface. Remove process from processes
15928 table.
15929 (win32_detach): Ditto.
15930 (win32_join): Adjust interface.
15931 (win32_thread_alive): Take a ptid.
15932 (win32_resume): Adjust to use ptids.
15933 (get_child_debug_event): Ditto.
15934 (win32_wait): Adjust interface. Remove exiting process from
15935 processes table.
15936
bd99dc85
PA
159372009-04-01 Pedro Alves <pedro@codesourcery.com>
15938
15939 Non-stop mode support.
15940
15941 * server.h (non_stop): Declare.
15942 (gdb_client_data, handler_func): Declare.
15943 (delete_file_handler, add_file_handler, start_event_loop):
15944 Declare.
15945 (handle_serial_event, handle_target_event, push_event)
15946 (putpkt_notif): Declare.
15947 * target.h (enum resume_kind): New.
15948 (struct thread_resume): Replace `step' field by `kind' field.
15949 (TARGET_WNOHANG): Define.
15950 (struct target_ops) <wait>: Add `options' argument.
15951 <supports_non_stop, async, start_non_stop>: New fields.
15952 (target_supports_non_stop, target_async): New.
15953 (start_non_stop): Declare.
15954 (mywait): Add `options' argument.
15955 * target.c (mywait): Add `options' argument. Print child exit
15956 notifications here.
15957 (start_non_stop): New.
15958 * server.c (non_stop, own_buf, mem_buf): New globals.
15959 (struct vstop_notif): New.
15960 (notif_queue): New global.
15961 (queue_stop_reply, push_event, discard_queued_stop_replies)
15962 (send_next_stop_reply): New.
15963 (start_inferior): Adjust to use resume_kind. Adjust to mywait
15964 interface changes.
15965 (attach_inferior): In non-stop mode, don't wait for the target
15966 here.
15967 (handle_general_set): Handle QNonStop.
15968 (handle_query): When handling qC, return the current general
15969 thread, instead of the first thread of the list.
15970 (handle_query): If the backend supports non-stop mode, include
15971 QNonStop+ in the qSupported query response.
15972 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
15973 and non-stop mode.
15974 (handle_v_attach, handle_v_run): Handle non-stop mode.
15975 (handle_v_stopped): New.
15976 (handle_v_requests): Report support for vCont;t. Handle vStopped.
15977 (myresume): Adjust to use resume_kind. Handle non-stop.
15978 (queue_stop_reply_callback): New.
15979 (handle_status): Handle non-stop mode.
15980 (main): Clear non_stop flag on reconnection. Use the event-loop.
15981 Refactor serial protocol handling from here ...
15982 (process_serial_event): ... to this new function. When GDB
15983 selects any thread, select one here. In non-stop mode, wait until
15984 GDB acks all pending events before exiting.
15985 (handle_serial_event, handle_target_event): New.
15986 * remote-utils.c (remote_open): Install remote_desc in the event
15987 loop.
15988 (remote_close): Remove remote_desc from the event loop.
15989 (putpkt_binary): Rename to...
15990 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
15991 (putpkt_binary): New as wrapper around putpkt_binary_1.
15992 (putpkt_notif): New.
15993 (prepare_resume_reply): In non-stop mode, don't change the
15994 general_thread.
15995 * event-loop.c: New.
15996 * Makefile.in (OBJ): Add event-loop.o.
15997 (event-loop.o): New rule.
15998
15999 * linux-low.h (pid_of): Moved here.
16000 (lwpid_of): New.
16001 (get_lwp_thread): Use lwpid_of.
16002 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
16003 * linux-low.c (pid_of): Delete.
16004 (inferior_pid): Use lwpid_of.
16005 (linux_event_pipe): New.
16006 (target_is_async_p): New.
16007 (delete_lwp): New.
16008 (handle_extended_wait): Use lwpid_of.
16009 (add_lwp): Don't set lwpid field.
16010 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
16011 (linux_kill_one_lwp): If killing a running lwp, stop it first.
16012 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
16013 (linux_detach_one_lwp): If detaching from a running lwp, stop it
16014 first. Adjust to linux_wait_for_event interface changes. Use
16015 lwpid_of.
16016 (linux_detach): Don't delete the main lwp here.
16017 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
16018 (status_pending_p): Don't consider explicitly suspended lwps.
16019 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
16020 pointer. Add OPTIONS argument. Change return type to int. Use
16021 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
16022 (linux_wait_for_event): Take an integer pid instead of a lwp_info
16023 pointer. Add status pointer argument. Return a pid instead of a
16024 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
16025 changes. In non-stop mode, don't switch to a random thread.
16026 (linux_wait): Rename to...
16027 (linux_wait_1): ... this. Add target_options argument, and handle
16028 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
16029 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
16030 clean exit and signal exit code. Don't stop all threads in
16031 non-stop mode. In all-stop mode, only stop all threads when
16032 reporting a stop to GDB. Handle explicit thread stop requests.
16033 (async_file_flush, async_file_mark): New.
16034 (linux_wait): New.
16035 (send_sigstop): Use lwpid_of.
16036 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
16037 interface changes. In non-stop mode, don't switch to a random
16038 thread.
16039 (linux_resume_one_lwp): Use lwpid_of.
16040 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
16041 (linux_resume_one_thread): ... this. Handle resume_stop. In
16042 non-stop mode, don't look for pending flag in all threads.
16043 (resume_status_pending_p): Don't consider explicitly suspended
16044 threads.
16045 (my_waitpid): Reimplement. Emulate __WALL.
16046 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16047 Use lwpid_of.
16048 (sigchld_handler, linux_supports_non_stop, linux_async)
16049 (linux_start_non_stop): New.
16050 (linux_target_ops): Register linux_supports_non_stop, linux_async
16051 and linux_start_non_stop.
16052 (initialize_low): Install SIGCHLD handler.
16053 * thread-db.c (thread_db_create_event, find_one_thread)
16054 (thread_db_get_tls_address): Use lwpid_of.
16055 * win32-low.c (win32_detach): Adjust to use resume_kind.
16056 (win32_wait): Add `options' argument.
16057 * spu-low.c (spu_resume): Adjust to use resume_kind.
16058 (spu_wait): Add `options' argument.
16059
5b1c542e
PA
160602009-04-01 Pedro Alves <pedro@codesourcery.com>
16061
16062 Decouple target code from remote protocol.
16063
16064 * target.h (enum target_waitkind): New.
16065 (struct target_waitstatus): New.
16066 (struct target_ops) <wait>: Return an unsigned long. Take a
16067 target_waitstatus pointer instead of a char pointer.
16068 (mywait): Likewise.
16069 * target.c (mywait): Change prototype to return an unsigned long.
16070 Take a target_waitstatus pointer instead of a char pointer. Adjust.
16071 * server.h (thread_from_wait, old_thread_from_wait): Delete
16072 declarations.
16073 (prepare_resume_reply): Change prototype to take a
16074 target_waitstatus.
16075 * server.c (thread_from_wait, old_thread_from_wait): Delete.
16076 (last_status, last_ptid): New.
16077 (start_inferior): Remove "statusptr" argument. Adjust. Return a
16078 pid instead of a signal.
16079 (attach_inferior): Remove "status" and "signal" parameters.
16080 Adjust.
16081 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
16082 not as an address.
16083 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
16084 (handle_v_requests, myresume): Remove "status" and "signal"
16085 parameters. Adjust.
16086 (handle_status): New.
16087 (main): Delete local `status'. Adjust.
16088 * remote-utils.c: Include target.h.
16089 (prepare_resume_reply): Change prototype to take a
16090 target_waitstatus. Adjust.
16091
16092 * linux-low.c (linux_wait): Adjust to new target_ops->wait
16093 interface.
16094 * spu-low.c (spu_wait): Adjust.
16095 * win32-low.c (enum target_waitkind, struct target_waitstatus):
16096 Delete.
16097 (win32_wait): Adjust.
16098
2bd7c093
PA
160992009-04-01 Pedro Alves <pedro@codesourcery.com>
16100
16101 * target.h (struct thread_resume): Delete leave_stopped member.
16102 (struct target_ops): Add a `n' argument to the `resume' callback.
16103 * server.c (start_inferior): Adjust.
16104 (handle_v_cont, myresume): Adjust.
16105 * linux-low.c (check_removed_breakpoint): Adjust to resume
16106 interface change, and to removed leave_stopped field.
16107 (resume_ptr): Delete.
16108 (struct thread_resume_array): New.
16109 (linux_set_resume_request): Add new `arg' parameter. Adjust to
16110 resume interface change.
16111 (linux_continue_one_thread, linux_queue_one_thread)
16112 (resume_status_pending_p): Check if the resume field is NULL
16113 instead of checking the leave_stopped member.
16114 (linux_resume): Adjust to the target resume interface change.
16115 * spu-low.c (spu_resume): Adjust to the target resume interface
16116 change.
16117 * win32-low.c (win32_detach, win32_resume): Ditto.
16118
c35fafde
PA
161192009-04-01 Pedro Alves <pedro@codesourcery.com>
16120
16121 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
16122 flag.
16123 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
16124 pending.
16125 (linux_continue_one_thread): Only preserve the stepping flag if
16126 there's a pending breakpoint.
16127
0a59d50b
PA
161282009-03-31 Pedro Alves <pedro@codesourcery.com>
16129
16130 * server.c (main): After the inferior having exited, call
16131 remote_close before exiting gdbserver.
16132
f04c6d38
TJB
161332009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
16134
16135 Fix size of FPSCR in Power 7 processors.
16136 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
16137 (PPC_FEATURE_HAS_DFP): New #define.
16138 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
16139 size of the FPSCR.
16140
78e5cee6
PA
161412009-03-23 Pedro Alves <pedro@codesourcery.com>
16142
16143 * server.c (handle_query) Whitespace and formatting.
16144
1b3f6016
PA
161452009-03-22 Pedro Alves <pedro@codesourcery.com>
16146
16147 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
16148 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
16149 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
16150 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
16151 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
16152 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
16153 Makefile.in, configure.ac: Fix whitespace throughout.
16154 * configure: Regenerate.
16155
a07b2135
PA
161562009-03-22 Pedro Alves <pedro@codesourcery.com>
16157
16158 * inferiors.c (find_inferior): Make it safe for the callback
16159 function to delete the currently iterated inferior.
16160
67cc2626
PA
161612009-03-22 Pedro Alves <pedro@codesourcery.com>
16162
16163 * Makefile.in (linuw_low_h): Move higher.
16164 (thread-db.o): Depend on $(linux_low_h).
16165
54a0b537
PA
161662009-03-17 Pedro Alves <pedro@codesourcery.com>
16167
16168 Rename "process" to "lwp" throughout.
16169
16170 * linux-low.c (all_processes): Rename to...
16171 (all_lwps): ... this.
16172 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
16173 (add_process): Rename to ...
16174 (add_lwp): ... this. Adjust.
16175 (linux_create_inferior): Adjust.
16176 (linux_attach_lwp): Adjust.
16177 (linux_attach): Adjust.
16178 (linux_kill_one_process): Rename to ...
16179 (linux_kill_one_lwp): ... this. Adjust.
16180 (linux_kill): Adjust.
16181 (linux_detach_one_process): Rename to ...
16182 (linux_detach_one_lwp): ... this. Adjust.
16183 (linux_detach): Adjust.
16184 (check_removed_breakpoint): Adjust.
16185 (status_pending_p): Adjust.
16186 (linux_wait_for_process): Rename to ...
16187 (linux_wait_for_lwp): ... this. Adjust.
16188 (linux_wait_for_event): Adjust.
16189 (send_sigstop): Adjust.
16190 (wait_for_sigstop): Adjust.
16191 (stop_all_processes): Rename to ...
16192 (stop_all_lwps): ... this.
16193 (linux_resume_one_process): Rename to ...
16194 (linux_resume_one_lwp): ... this. Adjust.
16195 (linux_set_resume_request, linux_continue_one_thread)
16196 (linux_queue_one_thread, resume_status_pending_p)
16197 (usr_store_inferior_registers, regsets_store_inferior_registers)
16198 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
16199 Adjust.
16200 * linux-low.h (get_process): Rename to ...
16201 (get_lwp): ... this. Adjust.
16202 (get_thread_process): Rename to ...
16203 (get_thread_lwp): ... this. Adjust.
16204 (get_process_thread): Rename to ...
16205 (get_lwp_thread): ... this. Adjust.
16206 (struct process_info): Rename to ...
16207 (struct lwp_info): ... this.
16208 (all_processes): Rename to ...
16209 (all_lwps): ... this.
16210 * proc-service.c (ps_lgetregs): Adjust.
16211 * thread-db.c (thread_db_create_event, find_one_thread)
16212 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
16213
0b16c5cf
PA
162142009-03-14 Pedro Alves <pedro@codesourcery.com>
16215
16216 * server.c (handle_query): Handle "qAttached".
16217
32de4b9d
NS
162182009-03-13 Nathan Sidwell <nathan@codesourcery.com>
16219
16220 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
16221 GPLv3, update license URL.
16222
2aecd87f
DE
162232009-03-01 Doug Evans <dje@google.com>
16224
93efd302 16225 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
16226 (server_h): Add gdb_signals.h.
16227 (signals.o): Update.
16228 * server.h (target_signal_from_host,target_signal_to_host_p)
16229 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
16230
86b1f9c5
PM
162312009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
16232
16233 * remote-utils.c (getpkt): Also generate remote-debug
16234 information if noack_mode is set.
16235
4aa995e1
PA
162362009-02-06 Pedro Alves <pedro@codesourcery.com>
16237
16238 * server.c (handle_query): Report qXfer:siginfo:read and
16239 qXfer:siginfo:write as supported and handle them.
16240 * target.h (struct target_ops) <qxfer_siginfo>: New field.
16241 * linux-low.c (linux_xfer_siginfo): New.
16242 (linux_target_ops): Set it.
16243
62709adf
PA
162442009-01-26 Pedro Alves <pedro@codesourcery.com>
16245
16246 * server.c (gdbserver_usage): Mention --remote-debug.
16247 (main): Accept '--remote-debug' switch.
16248
aef93bd7
DE
162492009-01-18 Doug Evans <dje@google.com>
16250
16251 * regcache.c (new_register_cache): No need to check result of xcalloc.
16252 * server.c (handle_search_memory): Back out calls to xmalloc,
16253 result is checked and error is returned to user upon failure.
16254 (handle_query): Ditto. Add more checks for result of malloc.
16255 (handle_v_cont): Check result of malloc, report error back to
16256 user upon failure.
16257 (handle_v_run): Ditto. Call freeargv.
16258 * server.h (freeargv): Declare.
16259 * utils.c (freeargv): New fn.
16260
54363045
DE
162612009-01-15 Doug Evans <dje@google.com>
16262
f626972c
DE
16263 * gdbreplay.c (perror_with_name): Make arg const char *.
16264 * server.h (target_signal_to_name): Make return type const char *.
0842e787 16265 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 16266 * utils.c (perror_with_name): Make arg const char *.
54363045 16267
18aae699
PA
162682009-01-14 Pedro Alves <pedro@codesourcery.com>
16269
16270 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
16271 when handling a EXIT_PROCESS_DEBUG_EVENT.
16272
ff703abe
JB
162732009-01-06 Joel Brobecker <brobecker@adacore.com>
16274
16275 * gdbreplay.c (gdbreplay_version): Update copyright year.
16276 * server.c (gdbserver_version): Likewise.
16277
f21cc1a2 162782009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
16279
16280 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 16281 (handle_extended_wait): Improve comment.
0e21c1ec 16282
bca929d3
DE
162832008-12-13 Doug Evans <dje@google.com>
16284
16285 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
16286 * server.h (ATTR_MALLOC): New macro.
16287 (xmalloc,xcalloc,xstrdup): Declare.
16288 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
16289 * inferiors.c: Ditto.
16290 * linux-low.c: Ditto.
16291 * mem-break.c: Ditto.
16292 * regcache.c: Ditto.
16293 * remote-utils.c: Ditto.
16294 * server.c: Ditto.
16295 * target.c: Ditto.
16296 * win32-low.c: Ditto.
16297
97438e3f
DE
162982008-12-12 Doug Evans <dje@google.com>
16299
896c7fbb
DE
16300 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
16301 in debugging printf.
16302
97438e3f
DE
16303 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
16304
e3b886f8
DE
163052008-12-09 Doug Evans <dje@google.com>
16306
16307 * linux-low.h (struct process_info): Delete member tid, unused.
16308 * thread-db.c (find_one_thread): Update.
16309 (maybe_attach_thread): Update.
16310
07e059b5
VP
163112008-12-02 Pedro Alves <pedro@codesourcery.com>
16312
889bf7c5
PA
16313 * target.h (struct target_ops): Add qxfer_osdata member.
16314 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
16315 and dirent.h.
16316 (linux_qxfer_osdata): New functions.
16317 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
16318 callback.
16319 * server.c (handle_query): Handle "qXfer:osdata:read:".
16320 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
16321 (buffer_xml_printf): New functions.
16322 * server.h (struct buffer): New.
16323 (buffer_grow_str, buffer_grow_str0): New macros.
16324 (buffer_grow, buffer_free, buffer_init, buffer_finish)
16325 (buffer_xml_printf): Declare.
07e059b5 16326
4cab47ab
DE
163272008-11-24 Doug Evans <dje@google.com>
16328
16329 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
16330
f142445f
DJ
163312008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
16332
16333 * server.c (handle_v_run): Always use the supplied argument list.
16334
d0107bb6 163352008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 16336
d0107bb6
BW
16337 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
16338 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 16339
2c4ad781
TJB
163402008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
16341
16342 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
16343 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
16344 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
16345 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
16346 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
16347 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
16348 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
16349 XML target descriptions.
16350 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
16351 when inferior is running on an ISA 2.05 or later processor. Add
16352 special case to return offset for full 64-bit slot of FPSCR when
16353 in 32-bits.
16354
dfb64f85
DJ
163552008-11-14 Daniel Gutson <dgutson@codesourcery.com>
16356
16357 * Makefile.in (SFILES, clean): Added sparc64 files.
16358 (reg-sparc64.o, reg-sparc64.c): New.
16359 * configure.srv (sparc*-*-linux*): New configuration.
16360 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
16361 syscall arguments for SPARC.
16362 (regsets_store_inferior_registers): Likewise.
16363 * linux-sparc-low.c: New file.
16364
66b6e1dd
DE
163652008-10-21 Doug Evans <dje@google.com>
16366
16367 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
16368 (READLINE_DIR,READLINE_DEP): Delete.
16369 (INTERNAL_CFLAGS): Update.
16370 (LINTFLAGS): Update.
16371
9b710a42
PA
163722008-10-10 Pedro Alves <pedro@codesourcery.com>
16373
16374 * server.c (handle_v_run): If GDB didn't specify an argv, use the
16375 whole argv from the last run, not just argv[0].
16376
5822d809
PA
163772008-09-08 Pedro Alves <pedro@codesourcery.com>
16378
16379 * regcache.c (new_register_cache): Return NULL if the register
16380 cache size isn't known yet.
16381 (free_register_cache): Avoid dereferencing a NULL regcache.
16382
74aac56f
DJ
163832008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16384
16385 * configure.srv: Merge MIPS and MIPS64.
16386
400b20f5
MR
163872008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
16388
16389 * Makefile.in (uninstall): Apply $(EXEEXT) too.
16390
677c5bb1
LM
163912008-08-18 Luis Machado <luisgpm@br.ibm.com>
16392
16393 * Makefile.in: Add required vsx dependencies.
16394
16395 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
16396 Declare init_registers_powerpc_vsx32l.
16397 Declare init_registers_powerpc_vsx64l.
16398 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
16399 (ppc_arch_setup): Check for VSX in hwcap.
16400 (ppc_fill_vsxregset): New function.
16401 (ppc_store_vsxregset): New function.
16402 Add new VSX entry in regset_info target_regsets.
16403
16404 * configure.srv: Add new VSX dependencies.
16405
a6f3e723
SL
164062008-08-12 Pedro Alves <pedro@codesourcery.com>
16407
16408 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
16409 (remote_open): Set or clear transport_is_reliable.
16410 (putpkt_binary): Don't expect acks in noack mode.
16411 (getpkt): Don't send ack/nac in noack mode.
16412 * server.c (handle_general_set): Handle QStartNoAckMode.
16413 (handle_query): If connected by tcp pass QStartNoAckMode+ in
16414 qSupported.
16415 (main): Reset noack_mode on every connection.
16416 * server.h (noack_mode): Declare.
16417
a417dc56
RW
164182008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16419
16420 * Makefile.in (GDBREPLAY_OBS): New variable.
16421 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
16422
3221518c
UW
164232008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
16424 Daniel Jacobowitz <dan@codesourcery.com>
16425
16426 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
16427 (usr_store_inferior_registers): Likewise.
16428 (regsets_store_inferior_registers): Likewise.
16429
ec56be1b
PA
164302008-07-31 Rolf Jansen <rj@surtec.com>
16431 Pedro Alves <pedro@codesourcery.com>
16432
16433 * configure.ac: Check for memmem declaration.
16434 * server.c [HAVE_MALLOC_H]: Include malloc.h.
16435 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
16436 (disable_packet_qfThreadInfo): Unconditionally compile.
16437 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
16438 * configure, config.in: Regenerate.
16439
2fe5e3ff
DE
164402008-07-28 Doug Kwan <dougkwan@google.com>
16441
16442 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
16443 (linux_write_memory): Remove declaration of errno.
16444
836acd6d
UW
164452008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
16446
16447 * linux-low.c (handle_extended_wait): Do not use "status"
16448 variable uninitialized.
16449
aeba519e
PA
164502008-07-07 Pedro Alves <pedro@codesourcery.com>
16451
16452 * server.c (handle_v_attach): Inhibit reporting dll changes.
16453
db42f210
PA
164542008-06-27 Pedro Alves <pedro@codesourcery.com>
16455
16456 * remote-utils.c (prepare_resume_reply): If requested, don't
16457 output "thread:TID" in the T stop reply.
16458
16459 * server.c (disable_packet_vCont, disable_packet_Tthread)
16460 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
16461 (handle_query): If requested, disable support for qC, qfThreadInfo
16462 and qsThreadInfo.
16463 (handle_v_requests): If requested, disable support for vCont.
16464 (gdbserver_show_disableable): New.
16465 (main): Handle --disable-packet and --disable-packet=LIST.
16466
16467 * server.h (disable_packet_vCont, disable_packet_Tthread)
16468 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
16469
8e4c5421
CD
164702008-06-20 Carlos O'Donell <carlos@codesourcery.com>
16471
16472 * server.c (gdbserver_usage): Mention --version.
16473
6e23a804
DJ
164742008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
16475
16476 * Makefile.in (gdbreplay.o): New rule.
16477
90aa6a40
JM
164782008-06-06 Joseph Myers <joseph@codesourcery.com>
16479
16480 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
16481 message, not gdbserver.
16482
c16158bc 164832008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
16484 Nathan Sidwell <nathan@codesourcery.com>
16485 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
16486
16487 * acinclude.m4: Include ../../config/acx.m4.
16488 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
16489 * configure, config.in: Regenerate.
16490 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
16491 * server.c (gdbserver_version): Print PKGVERSION.
16492 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
16493 (main): Adjust gdbserver_usage calls.
16494 * gdbreplay.c (version, host_name): Add declarations.
16495 (gdbreplay_version, gdbreplay_usage): New.
16496 (main): Accept --version and --help options.
16497
aeb75bf5
DJ
164982008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
16499
16500 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
16501 (arm_breakpoint_at): Handle Thumb.
16502 (the_low_target): Add comment.
16503
76b233dd
UW
165042008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
16505
16506 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
16507
08388c79
DE
165082008-05-09 Doug Evans <dje@google.com>
16509
a3c83fae
DE
16510 * server.h (decode_search_memory_packet): Declare.
16511 * remote-utils.c (decode_search_memory_packet): New fn.
16512 * server.c (handle_search_memory_1): New fn.
08388c79
DE
16513 (handle_search_memory): New fn.
16514 (handle_query): Process qSearch:memory packets.
16515
bb9c3d36
UW
165162008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
16517
16518 * regcache.c (registers_length): Remove.
16519 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
16520 full register packet.
16521 * regcache.h (registers_length): Remove prototype.
16522 * server.h (PBUFSIZ): Define to 16384.
16523
7284e1be
UW
165242008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
16525
16526 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
16527 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
16528 powerpc-64l.o, and powerpc-altivec64l.o.
16529 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
16530 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
16531 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
16532 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
16533 rs6000/power-linux.xml, and rs6000/power64-linux.xml
16534 to srv_xmlfiles.
16535
16536 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
16537 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
16538 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
16539 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
16540 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
16541 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
16542 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
16543 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
16544 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
16545 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
16546 (clean): Update.
16547
16548 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
16549 (init_registers_powerpc_32l): ... this new prototype.
16550 (init_registers_powerpc_32): Remove, replace by ...
16551 (init_registers_powerpc_altivec32l): ... this new prototype.
16552 (init_registers_powerpc_e500): Remove, replace by ...
16553 (init_registers_powerpc_e500l): ... this new prototype.
16554 (init_registers_ppc64): Remove, replace by ...
16555 (init_registers_powerpc_64l): ... this new prototype.
16556 (init_registers_powerpc_64): Remove, replace by ...
16557 (init_registers_powerpc_altivec64l): ... this new prototype.
16558 (ppc_num_regs): Set to 73.
16559 (PT_ORIG_R3, PT_TRAP): Define if necessary.
16560 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
16561 (ppc_cannot_store_register): Handle orig_r3 and trap.
16562 (ppc_arch_setup): Update init_registers_... calls.
16563 (ppc_fill_gregset): Handle orig_r3 and trap.
16564
16565 * inferiors.c (clear_inferiors): Reset current_inferior.
16566
fdc59709
PB
165672008-04-23 Paolo Bonzini <bonzini@gnu.org>
16568
889bf7c5
PA
16569 * acinclude.m4: Add override.m4.
16570 * configure: Regenerate.
fdc59709 16571
c9b2f845
UW
165722008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16573
16574 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
16575 initial call to init_register_ppc64.
16576
550512b8
UW
165772008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16578
43aaf8b6
PA
16579 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
16580 single powerpc*-*-linux* case.
550512b8
UW
16581 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
16582
b6430ec3
UW
165832008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16584
16585 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 16586 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
16587 from reg_xmlfiles.
16588 * linux-ppc-low.c: Include <elf.h>.
16589 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
16590 (ppc_hwcap): New global variable.
16591 (ppc_regmap): Remove __SPE__ #ifdef sections.
16592 (ppc_regmap_e500): New global variable.
16593 (ppc_cannot_store_register): Update __SPE__ special case.
16594 (ppc_get_hwcap): New function.
16595 (ppc_arch_setup): Use it to determine whether inferior supports
16596 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
16597 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
16598 Do not access registers if target does not support AltiVec.
16599 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
16600 Do not access registers if target does not support SPE.
16601 (target_regsets): Unconditionally include AltiVec and SPE regsets.
16602
52fa2412
UW
166032008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
16604
16605 * linux-low.c (disabled_regsets, num_regsets): New.
16606 (use_regsets_p): Delete.
16607 (linux_wait_for_process): Clear disabled_regsets.
16608 (regsets_fetch_inferior_registers): Check and set it.
16609 (regsets_store_inferior_registers): Likewise.
16610 (linux_fetch_registers, linux_store_registers): Do not use
16611 use_regsets_p.
16612 (initialize_low): Allocate disabled_regsets.
16613
e28b3332
DJ
166142008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
16615
16616 * Makefile.in (LIBOBJS): New.
16617 (OBS): Use LIBOBJS.
16618 (memmem.o): New rule.
16619 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
16620 * configure: Regenerated.
16621
4536995d
UW
166222008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
16623
16624 * server.c (handle_query): Never return "unsupported" for
16625 qXfer:features:read queries.
16626
221c031f
UW
166272008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
16628
16629 * server.c (get_features_xml): Fix inverted condition.
16630 (handle_query): Always support qXfer:feature:read.
16631
ccd213ac
DJ
166322008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
16633
16634 * server.c (wrapper_argv): New.
16635 (start_inferior): Handle wrapper_argv. If set, expect an extra
16636 trap.
16637 (gdbserver_usage): Document --wrapper.
16638 (main): Parse --wrapper.
16639
6fe305f7
UW
166402008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16641
16642 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
16643 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
16644 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
16645 (ppc_set_pc): Likewise.
16646 (ppc_arch_setup): New function.
16647 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
16648 of collect_register.
889bf7c5 16649 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 16650
5b0a002e
UW
166512008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16652
16653 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
16654 instead of linux-ppc64-low.o.
16655 * linux-ppc64-low.c: Remove file.
16656 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
16657 (linux-ppc64-low.o): Remove rule.
16658
16659 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
16660 (init_registers_powerpc_64): Likewise.
16661 (ppc_regmap): Conditionally define depending on __powerpc64__.
16662 (ppc_cannot_store_register): Do not special-case "fpscr" when
16663 compiled on __powerpc64__.
16664 (ppc_collect_ptrace_register): New function.
16665 (ppc_supply_ptrace_register): New function.
16666 (ppc_breakpoint): Change type to "unsigned int".
16667 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
16668 (the_low_target): Conditionally provide initializers for the
889bf7c5 16669 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
16670 collect_ptrace_register and supply_ptrace_register members.
16671
9b4b61c8
UW
166722008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16673
16674 * regcache.h (gdbserver_xmltarget): Add extern declaration.
16675 * server.c (gdbserver_xmltarget): Define.
16676 (get_features_xml): Use it to replace "target.xml" and arch_string.
16677
16678 * configure.srv: Remove srv_xmltarget. Add XML files that were
16679 mentioned there to srv_xmlfiles instead. Remove conditional tests
16680 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
16681 srv_xmlfiles and srv_regobj to include all possible choices.
16682 * configure.ac (srv_xmltarget): Remove.
16683 (srv_xmlfiles): Do not add "target.xml".
16684 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
16685 checks for supplementary target information.
16686 * configure: Regenerate.
16687 * Makefile.in (XML_TARGET): Remove.
16688 (target.xml): Remove rule.
16689 (clean): Do not clean up target.xml.
16690 (.PRECIOUS): Do not mention target.xml.
16691
16692 * target.h (struct target_ops): Remove arch_string member.
16693 * linux-low.c (linux_arch_string): Remove.
16694 (linux_target_ops): Remove arch_string initializer.
16695 * linux-low.h (struct linux_target_ops): Remove arch_string member.
16696 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
16697 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
16698 * spu-low.c (spu_arch_string): Remove.
16699 (spu_target_ops): Remove arch_string initializer.
16700 * win32-low.c (win32_arch_string): Remove.
16701 (win32_target_ops): Remove arch_string initializer.
16702 * win32-low.h (struct win32_target_ops): Remove arch_string member.
16703 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
16704 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
16705
ee1a7ae4
UW
167062008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16707
16708 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
16709 by collect_ptrace_register and supply_ptrace_register hooks.
16710 * linux-low.c (fetch_register): Use supply_ptrace_register callback
16711 instead of checking for the_low_target.left_pad_xfer.
16712 (usr_store_inferior_registers): Use collect_ptrace_register callback
16713 instead of checking for the_low_target.left_pad_xfer.
16714
16715 * linux-s390-low.c (s390_collect_ptrace_register): New function.
16716 (s390_supply_ptrace_register): Likewise.
16717 (s390_fill_gregset): Call s390_collect_ptrace_register.
16718 (the_low_target): Update.
16719
16720 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
16721 (ppc_supply_ptrace_register): Likewise.
16722 (the_low_target): Update.
16723
16724 * linux-i386-low.c (the_low_target): Update.
16725 * linux-x86-64-low.c (the_low_target): Update.
16726
d61ddec4
UW
167272008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16728
16729 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
16730 reg-s390.o and reg-s390x.o.
16731
16732 * linux-low.c (new_inferior): New global variable.
16733 (linux_create_inferior, linux_attach): Set it.
16734 (linux_wait_for_process): Call the_low_target.arch_setup after the
16735 target has stopped for the first time.
16736 (initialize_low): Do not call the_low_target.arch_setup.
16737
16738 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
16739 (s390_set_pc): Likewise.
16740 (s390_arch_setup): New function.
16741 (the_low_target): Use s390_arch_setup as arch_setup routine.
16742
16743 * regcache.c (realloc_register_cache): New function.
16744 (set_register_cache): Call it for each existing regcache.
16745
d05b4ac3
UW
167462008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16747
16748 * server.h (init_registers): Remove prototype.
16749
16750 * linux-low.h (struct linux_target_ops): Add arch_setup field.
16751 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
16752 instead of init_registers ().
16753 * linux-arm-low.c (init_registers_arm): Add prototype.
16754 (init_registers_arm_with_iwmmxt): Likewise.
16755 (the_low_target): Add initializer for arch_setup field.
16756 * linux-cris-low.c (init_registers_cris): Add prototype.
16757 (the_low_target): Add initializer for arch_setup field.
16758 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
16759 (the_low_target): Add initializer for arch_setup field.
16760 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
16761 (the_low_target): Add initializer for arch_setup field.
16762 * linux-ia64-low.c (init_registers_ia64): Add prototype.
16763 (the_low_target): Add initializer for arch_setup field.
16764 * linux-m32r-low.c (init_registers_m32r): Add prototype.
16765 (the_low_target): Add initializer for arch_setup field.
16766 * linux-m68k-low.c (init_registers_m68k): Add prototype.
16767 (the_low_target): Add initializer for arch_setup field.
16768 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
16769 (init_registers_mips64_linux): Likewise.
16770 (the_low_target): Add initializer for arch_setup field.
16771 * linux-ppc-low.c (init_registers_ppc): Add prototype.
16772 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
16773 (the_low_target): Add initializer for arch_setup field.
16774 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
16775 (init_registers_powerpc_64): Likewise.
16776 (the_low_target): Add initializer for arch_setup field.
16777 * linux-s390-low.c (init_registers_s390): Add prototype.
16778 (init_registers_s390x): Likewise.
16779 (the_low_target): Add initializer for arch_setup field.
16780 * linux-sh-low.c (init_registers_sh): Add prototype.
16781 (the_low_target): Add initializer for arch_setup field.
16782 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
16783 (the_low_target): Add initializer for arch_setup field.
16784 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
16785 (the_low_target): Add initializer for arch_setup field.
16786
16787 * win32-low.h (struct win32_target_ops): Add arch_setup field.
16788 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
16789 instead of init_registers ().
16790 * win32-arm-low.c (init_registers_arm): Add prototype.
16791 (the_low_target): Add initializer for arch_setup field.
16792 * win32-i386-low.c (init_registers_i386): Add prototype.
16793 (the_low_target): Add initializer for arch_setup field.
16794
16795 * spu-low.c (init_registers_spu): Add prototype.
16796 (initialize_low): Call initialie_registers_spu () instead of
16797 initialize_registers ().
16798
fd96d250
PA
167992008-02-19 Pedro Alves <pedro@codesourcery.com>
16800
16801 * server.c (handle_v_requests): When handling the vRun and vAttach
16802 packets, if already debugging a process, don't kill it. Return an
16803 error instead.
16804
d41b6bb4
DJ
168052008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
16806
16807 * server.c (handle_query): Correct length check.
16808
5ac588cf
PA
168092008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
16810
16811 * win32-low.c (do_initial_child_stuff): Add process handle
16812 parameter. Set current_process_handle and current_process_id from the
16813 parameters. Clear globals.
16814 (win32_create_inferior): Don't set current_process_handle and
16815 current_process_id here. Instead pass them on the call to
16816 do_initial_child_stuff.
16817 (win32_attach): Likewise.
16818 (win32_clear_inferiors): New.
16819 (win32_kill): Don't close the current process handle or the
16820 current thread handle here. Instead call win32_clear_inferiors.
16821 (win32_detach): Don't open a new handle to the process. Call
16822 win32_clear_inferiors.
16823 (win32_join): Don't rely on current_process_handle; open a new
16824 handle using the process id.
16825 (win32_wait): Call win32_clear_inferiors when the inferior process
16826 has exited.
16827
ecd7ecbc
DJ
168282008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
16829
16830 * server.c (monitor_show_help): Add "exit".
16831
1525d545
MG
168322008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
16833
ecd7ecbc 16834 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
16835 (clean): Add reg-xtensa.c.
16836 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
16837 * configure.srv (xtensa*-*-linux*) New target.
16838 * linux-xtensa-low.c: New.
16839 * xtensa-xtregs.c: New.
1525d545 16840
59a016f0
PA
168412008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
16842
16843 * hostio.c: Don't include errno.h.
16844 (errno_to_fileio_errno): Move to hostio-errno.
16845 * hostio.c: (hostio_error): Remove the error parameter. Defer the
16846 error number outputting to the target->hostio_last_error callback.
16847 (hostio_packet_error): Use FILEIO_EINVAL directly.
16848 (handle_open, handle_pread, hostio_error, handle_unlink): Update
16849 calls to hostio_error.
16850 * hostio-errno.c: New.
16851 * server.h (hostio_last_error_from_errno): Declare.
16852 * target.h (target_ops): Add hostio_last_error member.
16853 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
16854 as hostio_last_error handler.
889bf7c5 16855 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
16856 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
16857 (wince_hostio_last_error): New functions.
16858 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
16859 as hostio_last_error handler.
16860 (win32_target_ops) [!_WIN32_WCE]: Register
16861 hostio_last_error_from_errno as hostio_last_error handler.
16862 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
16863 (hostio-errno.o): New rule.
16864 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
16865 * configure.srv (srv_hostio_err_objs): New variable. Default to
16866 hostio-errno.o.
16867 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
16868 * configure: Regenerate.
16869
2d717e4f
DJ
168702008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16871
16872 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
16873 (linux_kill, linux_detach): Clean up the process list.
16874 * remote-utils.c (remote_open): Improve port number parsing.
16875 (putpkt_binary, input_interrupt): Only send interrupts if the target
16876 is running.
16877 * server.c (extended_protocol): Make static.
16878 (attached): Define earlier.
16879 (exit_requested, response_needed, program_argv): New variables.
16880 (target_running): New.
16881 (start_inferior): Clear attached here.
16882 (attach_inferior): Set attached here.
16883 (require_running): Define.
16884 (handle_query): Use require_running and target_running. Implement
16885 "monitor exit".
16886 (handle_v_attach, handle_v_run): New.
16887 (handle_v_requests): Use require_running. Handle vAttach and vRun.
16888 (gdbserver_usage): Update.
16889 (main): Redo argument parsing. Handle --debug and --multi. Handle
16890 --attach along with other options or after the port. Save
16891 program_argv. Support no initial program. Resynchronize
16892 communication with GDB after an error. Handle "monitor exit".
16893 Use require_running and target_running. Always allow the extended
16894 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
16895 restart in extended mode.
16896 * README: Refer to the GDB manual. Update --attach usage.
16897
7407e2de
AS
168982007-12-20 Andreas Schwab <schwab@suse.de>
16899
16900 * linux-low.c (STACK_SIZE): Define.
16901 (linux_tracefork_child): Use it. Use __clone2 on ia64.
16902 (linux_test_for_tracefork): Likewise.
16903
b65d95c5
DJ
169042007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
16905
16906 * linux-low.c (linux_wait_for_event): Update messages. Do not
16907 reinsert auto-delete breakpoints.
16908 * mem-break.c (struct breakpoint): Change return type of handler to
16909 int.
16910 (set_breakpoint_at): Update handler type.
16911 (reinsert_breakpoint_handler): Return 1 instead of calling
16912 delete_breakpoint.
16913 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
16914 setting a new one.
16915 (check_breakpoints): Delete auto-delete breakpoints and return 2.
16916 * mem-break.h (set_breakpoint_at): Update handler type.
16917 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
16918 * win32-low.c (auto_delete_breakpoint): New.
16919 (get_child_debug_event): Use it.
16920
4e799345
DJ
169212007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
16922
16923 * configure.ac: Check for pread and pwrite.
16924 * hostio.c (handle_pread): Fall back to lseek and read.
16925 (handle_pwrite): Fall back to lseek and write.
16926 * config.in, configure: Regenerated.
16927
27524b67
DJ
169282007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
16929
16930 * server.c (myresume): Add own_buf argument.
16931 (main): Update calls.
16932
a20d5e98
DJ
169332007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
16934
16935 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
16936 * remote-utils.c (remote_open): Do not call disable_async_io.
16937 (block_async_io): Delete.
16938 (unblock_async_io): Make static.
16939 (initialize_async_io): New.
16940 * server.c (handle_v_cont): Handle async I/O here.
16941 (myresume): Likewise. Move other common resume tasks here...
16942 (main): ... from here. Call initialize_async_io. Disable async
16943 I/O before the main loop.
16944 * server.h (initialize_async_io): Declare.
16945 (block_async_io, unblock_async_io): Delete prototypes.
16946 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
16947
b79d787e
DJ
169482007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
16949
16950 * remote-utils.c (readchar): Allow binary data in received messages.
16951
d97903b2
PA
169522007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16953
16954 * win32-low.c (attaching): New global.
16955 (win32_create_inferior): Clear the `attaching' global.
16956 (win32_attach): Set the `attaching' global.
16957 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
16958 attaching. Only set a breakpoint at the entry point if not
16959 attaching.
16960
311de423
PA
169612007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16962
16963 * server.c (main): Don't report dll events on the initial
16964 connection on attaches.
16965
6c2d16d2
PA
169662007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16967
16968 * server.c (main): Relax numerical bases supported for the pid of
16969 the --attach command line argument.
16970
5ca906e6
PA
169712007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16972
16973 * win32-low.c (win32_attach): Call OpenProcess before
16974 DebugActiveProcess, not after. Add last error output to error
16975 call.
16976
9c6c8194
PA
169772007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16978
16979 * win32-low.c (win32_get_thread_context)
16980 (win32_set_thread_context): New functions.
16981 (thread_rec): Use win32_get_thread_context.
16982 (continue_one_thread, win32_resume): Use win32_set_thread_context.
16983 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
16984 field.
16985
4d5d1aaa
PA
169862007-12-03 Leo Zayas
16987 Pedro Alves <pedro_alves@portugalmail.pt>
16988
16989 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
16990 global variables.
16991 (child_add_thread): Minor cleanup.
16992 (child_continue): Resume artificially suspended threads before
16993 calling ContinueDebugEvent.
16994 (suspend_one_thread): New.
16995 (fake_breakpoint_event): New.
16996 (get_child_debug_event): Change return type to int. Check here if
16997 gdb sent an interrupt request. If a soft interrupt was requested,
16998 fake a breakpoint event. Return 0 if there is no event to handle,
16999 and 1 otherwise.
17000 (win32_wait): Don't check here if gdb sent an interrupt request.
17001 Ensure there is a valid event to handle.
17002 (win32_request_interrupt): Add soft interruption method as last
17003 resort.
17004
c436e841
PA
170052007-12-03 Leo Zayas
17006 Pedro Alves <pedro_alves@portugalmail.pt>
17007
17008 * win32-low.h (win32_thread_info): Add descriptions to the
17009 structure members. Replace `suspend_count' counter by a
17010 `suspended' flag.
17011 * win32-low.c (thread_rec): Update condition of when to get the
17012 context from the inferior. Rely on ContextFlags being set if it
17013 has already been retrieved. Only suspend the inferior thread if
17014 we haven't already. Warn if that fails.
17015 (continue_one_thread): s/suspend_count/suspended/. Only call
17016 ResumeThread once. Warn if that fails.
17017
e7b5fa67
PA
170182007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17019
17020 * win32-low.c (win32_wait): Don't read from the inferior when it
17021 has already exited.
17022
a385171d
PA
170232007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
17024
17025 * Makefile.in (win32_low_h): New variable.
17026 (win32-low.o): Add dependency on $(win32_low_h).
17027 (win32-arm-low.o, win32-i386-low.o): New rules.
17028
f80c84b3
DJ
170292007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17030
17031 * hostio.c: Correct copyright year.
17032
a6b151f1
DJ
170332007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
17034
17035 * Makefile.in (OBS): Add hostio.o.
17036 (hostio.o): New rule.
17037 * server.h (handle_vFile): Declare.
17038 * hostio.c: New file.
17039 * server.c (handle_v_requests): Take packet_len and new_packet_len
17040 for binary packets. Call handle_vFile.
17041 (main): Update call to handle_v_requests.
17042
f9387fc3
DJ
170432007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
17044
17045 * linux-low.c: Include <sched.h>.
17046
51c2684e
DJ
170472007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
17048
17049 * linux-low.c (linux_tracefork_grandchild): New.
17050 (linux_tracefork_child): Use clone.
17051 (linux_test_for_tracefork): Use clone; allocate and free a stack.
17052
75f83163
JB
170532007-10-31 Joel Brobecker <brobecker@adacore.com>
17054
17055 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
17056
da5898ce
DJ
170572007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
17058
17059 * linux-low.c (handle_extended_wait): Handle unexpected signals.
17060
24a09b5f
DJ
170612007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
17062
17063 * inferiors.c (change_inferior_id): Delete.
17064 (add_pid_to_list, pull_pid_from_list): New.
17065 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
17066 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
17067 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
17068 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
17069 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
17070 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
17071 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
17072 (using_threads): Always set to 1.
17073 (handle_extended_wait): New.
17074 (add_process): Do not set TID.
17075 (linux_create_inferior): Set must_set_ptrace_flags.
17076 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
17077 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
17078 (linux_thread_alive): Rename TID argument to LWPID.
17079 (linux_wait_for_process): Handle unknown processes. Do not use TID.
17080 (linux_wait_for_event): Do not use TID or check using_threads. Update
17081 call to dead_thread_notify. Call handle_extended_wait.
17082 (linux_create_inferior): Use PTRACE_SETOPTIONS.
17083 (send_sigstop): Delete sigstop_sent.
17084 (wait_for_sigstop): Avoid TID.
17085 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
17086 (linux_test_for_tracefork): New.
17087 (linux_lookup_signals): Use thread_db_active and
17088 linux_supports_tracefork_flag.
17089 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
17090 * linux-low.h (get_process_thread): Avoid TID.
17091 (struct process_ifo): Move thread_known and tid to the end. Remove
17092 sigstop_sent.
17093 (linux_attach_lwp, thread_db_init): Update prototypes.
17094 * server.h (change_inferior_id): Delete prototype.
17095 (add_pid_to_list, pull_pid_from_list): New prototypes.
17096 * thread-db.c (thread_db_use_events): New.
17097 (find_first_thread): Rename to...
17098 (find_one_thread): ...this. Update callers and messages. Do not
17099 call fatal. Check thread_db_use_events. Do not call
17100 change_inferior_id or new_thread_notify.
17101 (maybe_attach_thread): Update. Do not call new_thread_notify.
17102 (thread_db_init): Set thread_db_use_events. Check use_events.
17103 * utils.c (fatal, warning): Correct message prefix.
17104
30ed0a8f
DJ
171052007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
17106
17107 * Makefile.in (clean): Remove new files.
17108 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
17109 (powerpc-64.o, powerpc-64.c): New rules.
17110 * configure.srv: Use alternate register sets for powerpc64-*-linux*
17111 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
17112 with SPE.
17113 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
17114 SPE targets.
17115 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
17116 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
17117 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
17118 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
17119 (target_regsets): Add AltiVec and SPE register sets.
17120 * configure.ac: Check for AltiVec and SPE.
17121 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
17122 (ppc_fill_vrregset, ppc_store_vrregset): New.
17123 (target_regsets): Add AltiVec register set.
17124 * configure: Regenerated.
17125
fd462a61
DJ
171262007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
17127
17128 * linux-low.c (O_LARGEFILE): Define.
17129 (linux_read_memory): Use /proc/PID/mem.
17130 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
17131 * configure, config.in: Regenerated.
17132
69f223ed
DJ
171332007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
17134
17135 * linux-low.c (linux_wait_for_event): Do not pass signals while
17136 single-stepping.
17137
aec18585
PA
171382007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17139
17140 * win32-low.c (create_process): New.
17141 (win32_create_inferior): Use create_process instead of
17142 CreateProcess. If create_process failed retry appending an ".exe"
17143 suffix. Store the GetLastError result immediatelly after
17144 create_process calls and use it on the call to error.
17145
34d86ddd
PA
171462007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
17147
17148 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
17149
5a0e3bd0
JB
171502007-08-23 Joel Brobecker <brobecker@adacore.com>
17151
17152 * configure.ac: Switch license to GPLv3.
17153
f88c79e6
MS
171542007-08-01 Michael Snyder <msnyder@access-company.com>
17155
17156 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
17157
6b3d9b83
PA
171582007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
17159
17160 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
17161 typedef.
17162 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
17163 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
17164 CloseToolhelp32Snapshot.
17165 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
17166 CloseToolhelp32Snapshot.
17167
c588c53c
MS
171682007-07-27 Michael Snyder <michael.snyder@access-company.com>
17169
17170 * server.c (main): Check for inferior exit before main loop.
17171
aa0403d9
PA
171722007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
17173
17174 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
17175 instead of on tmp_desc.
17176
255e7678
DJ
171772007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
17178 Daniel Jacobowitz <dan@codesourcery.com>
17179
17180 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
17181 (add_thread): Minor cleanups.
17182 (clear_inferiors): Move lower in the file. Clear the DLL
17183 list.
17184 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
17185 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
17186 (xml_escape_text): New.
17187 * server.c (handle_query): Handle qXfer:libraries:read. Report it
17188 for qSupported.
17189 (handle_v_cont): Report errors.
17190 (gdbserver_version): Update.
17191 (main): Correct size of own_buf. Do not report initial DLL events.
17192 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
17193 (unloaded_dll, xml_escape_text): New.
17194 * win32-low.c (enum target_waitkind): Update comments.
17195 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
17196 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
17197 (win32_EnumProcessModules, win32_GetModuleInformation)
17198 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
17199 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
17200 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
17201 (win32_Module32First, win32_Module32Next, load_toolhelp)
17202 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
17203 (get_child_debug_event): Handle DLL events.
17204 (win32_wait): Likewise.
17205
0d37add9
DJ
172062007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17207
17208 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
17209 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
17210
45e2715e
PA
172112007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17212
17213 * win32-low.c (handle_output_debug_string): Ignore event if not
17214 waiting.
17215
c5674cf1
PA
172162007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
17217
17218 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
17219
2bbe3cc1
DJ
172202007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
17221
17222 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
17223
ae13219e
DJ
172242007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
17225
17226 * inferiors.c (change_inferior_id): Add comment.
17227 * linux-low.c (check_removed_breakpoint): Add an early
17228 prototype. Improve debug output.
17229 (linux_attach): Doc update.
17230 (linux_detach_one_process, linux_detach): Clean up before releasing
17231 each process.
17232 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
17233 * linux-low.h (struct process_info): Doc improvement.
17234 * mem-break.c (delete_all_breakpoints): New.
17235 * mem-break.h (delete_all_breakpoints): New prototype.
17236 * thread-db.c (find_first_thread): New.
17237 (thread_db_create_event): Call it instead of
17238 thread_db_find_new_threads. Clean up unused variables.
17239 (maybe_attach_thread): Remove first thread handling.
17240 (thread_db_find_new_threads): Use find_first_thread.
17241 (thread_db_get_tls_address): Likewise.
17242
4105de34
DJ
172432007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
17244
17245 * thread-db.c (thread_db_find_new_threads): Add prototype.
17246 (thread_db_create_event): Check for the main thread before adding
17247 a new thread.
17248 (maybe_attach_thread): Only enable event reporting if TID == 0.
17249 (thread_db_get_tls_address): Check for new threads.
17250
2b876972
DJ
172512007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
17252
17253 * linux-low.c (linux_create_inferior): Try execv before execvp.
17254 * spu-low.c (spu_create_inferior): Likewise.
17255
7a245884
DJ
172562007-06-13 Mike Frysinger <vapier@gentoo.org>
17257
17258 * linux-low.c (linux_create_inferior): Change execv to execvp.
17259 * spu-low.c (spu_create_inferior): Likewies.
17260
117ce543
DJ
172612007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
17262
17263 * Makefile.in (clean): Clean new files instead of deleted ones.
17264 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
17265 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
17266 rules.
17267 * configure.srv: Specify XML files and new regformats for MIPS and
17268 MIPS64 GNU/Linux.
17269 * linux-mips-low.c (mips_num_regs): Set to only used registers.
17270 (mips_regmap): Do not fetch $0. Remove unused registers. Add
17271 an entry for the restart register.
17272 (mips_cannot_fetch_register, mips_cannot_store_register)
17273 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
17274 register names to match the XML descriptions.
17275 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
17276 restart register instead of $0.
17277
0e7f50da
UW
172782007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17279 Markus Deuling <deuling@de.ibm.com>
17280
17281 * remote-utils.c (decode_xfer_write): New function.
17282 * server.h (decode_xfer_write): Add prototype.
17283 * server.c (handle_query): Add PACKET_LEN argument. Support
17284 qXfer:spu:read and qXfer:spu:write packets.
17285 (main): Pass packet_len to handle_query.
17286 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
17287 * target.h (target_ops): Add qxfer_spu.
17288
374c1d38
UW
172892007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17290
17291 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
17292 accessing non-seekable spufs files.
17293
bb63802a
UW
172942007-05-16 Markus Deuling <deuling@de.ibm.com>
17295
889bf7c5 17296 * server.c (handle_query): Add reply for qC packet.
bb63802a 17297
7390519e
PA
172982007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17299 Leo Zayas <lerele@champenstudios@com>
17300
17301 * server.h (check_remote_input_interrupt_request): New function.
17302 * remote_utils.c (INVALID_DESCRIPTOR): New define.
17303 (remote_desc): Initialize with INVALID_DESCRIPTOR.
17304 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
17305 (check_remote_input_interrupt_request): New function.
17306 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 17307 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
17308 winapi_GenerateConsoleCtrlEvent): New typedefs.
17309 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
17310 to 250 ms.
17311 (win32_wait): Check for remote interrupt request
17312 with check_remote_input_interrupt_request.
17313 (win32_request_interrupt): New function.
17314 (win32_target_op): Set request_interrupt to win32_request_interrupt.
17315
34b34921
PA
173162007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17317
17318 * win32-low.c (debug_registers_changed,
17319 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
17320 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
17321 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
17322 (thread_rec): Get context using the low target.
17323 (child_add_thread): Call thread_added on the low target,
17324 which does the same thing.
17325 (regptr): Delete.
17326 (do_initial_child_stuff): Remove debug registers references.
17327 Set context using the low target. Resume threads after
17328 setting the contexts.
17329 (child_continue): Remove dead variable. Remove debug
17330 registers references.
17331 (child_fetch_inferior_registers): Go through the low target.
17332 (do_child_store_inferior_registers): Remove.
17333 (child_store_inferior_registers): Go through the low target.
17334 (win32_resume): Remove debug registers references.
17335 Set context using the low target.
17336 (handle_exception): Change return type to void. Don't record
17337 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
17338 first chance exception.
889bf7c5 17339 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
17340 goto loop. Always return after waiting for debug event.
17341 (win32_wait): Convert to switch statement. Handle spurious
17342 events.
17343
17344 * win32-i386-low.c (debug_registers_changed,
17345 debug_registers_used): New.
17346 (initial_stuff): Rename to ...
17347 (i386_initial_stuff): ... this. Clear debug registers
17348 state variables.
17349 (store_debug_registers): Delete.
17350 (i386_get_thread_context): New.
17351 (load_debug_registers): Delete.
17352 (i386_set_thread_context): New.
17353 (i386_thread_added): New.
17354 (single_step): Rename to ...
17355 (i386_single_step): ... this.
17356 (do_fetch_inferior_registers): Rename to ...
17357 (i386_fetch_inferior_register): ... this.
17358 (i386_store_inferior_register): New.
17359 (the_low_target): Adapt to new interface.
17360
17361 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
17362 (arm_get_thread_context): New.
17363 (arm_set_thread_context): New.
17364 (regptr): New.
17365 (do_fetch_inferior_registers): Rename to ...
17366 (arm_fetch_inferior_register): ... this.
17367 (arm_store_inferior_register): New.
17368 (arm_wince_breakpoint): Reimplement as unsigned long.
17369 (arm_wince_breakpoint_len): Define.
17370 (the_low_target): Adapt to new interface.
17371
17372 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
17373 load_debug_registers. Add get_thread_context, set_thread_context,
17374 thread_added and store_inferior_register. Rename
17375 fetch_inferior_registers to fetch_inferior_register.
17376 (regptr): Remove declaration.
17377
dd6953e1
PA
173782007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17379
17380 * linux-low.c (linux_detach): Change return type to int. Return 0.
17381 * spu-low.c (spu_detach): Likewise.
17382
444d6139
PA
173832007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17384
17385 * target.h (target_ops): Change return type of detach to int.
17386 Add join.
17387 (join_inferior): New.
17388 * server.c (main): Don't skip detach support on mingw32.
17389 If the inferior doesn't support detaching return error.
17390 Call join_inferior instead of using waitpid.
17391 * linux-low.c (linux_join): New.
17392 (linux_target_op): Add linux_join.
17393 * spu-low.c (spu_join): New.
17394 (spu_target_ops): Add spu_join.
17395 * win32-low.c (win32_detach): Adapt to new interface.
17396 Reopen current_process_handle before detaching. Issue a child
17397 resume before detaching.
17398 (win32_join): New.
17399 (win32_target_op): Add win32_join.
17400
1d5315fe
PA
174012007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17402
17403 * win32-low.c (win32-attach): Fix return value.
17404 * target.h (target_ops): Describe ATTACH return values.
17405
bf914831
PA
174062007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17407
17408 * win32-low.c (GETPROCADDRESS): Define.
17409 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
17410 (winapi_DebugSetProcessKillOnExit): Likewise.
17411 (win32_create_inferior): Force usage of ansi CreateProcessA.
17412 (win32_attach): Use GETPROCADDRESS.
17413 (win32_detach): Likewise.
17414
f72f3e60
PA
174152007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17416
17417 * win32-low.c (win32_wait): Don't use WSTOPSIG.
17418
ed50f18f
PA
174192007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
17420
17421 * win32-low.c: Commit leftover changes from 2007-03-29.
17422
0c2ead7e
DJ
174232007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17424
17425 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
17426 fields short instead of int. Add explicit padding.
17427 (i387_cache_to_fsave): Remove unnecessary casts.
17428 (i387_fsave_to_cache): Doc fix.
17429 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
17430
73725ff3
DJ
174312007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17432
17433 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
17434 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
17435
d99f33d8
PA
174362007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17437
17438 * configure.srv (arm*-*-mingw32ce*): Move near the other
17439 arm targets.
17440
68070c10
PA
174412007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17442
2482afc6 17443 * configure.ac: Add errno checking.
68070c10
PA
17444 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
17445 sys/file.h and malloc.h.
17446 (AC_CHECK_DECLS): Add perror.
17447 (srv_mingwce): Handle.
2482afc6 17448 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
17449 win32-i386-low.o to srv_tgtobj.
17450 (i[34567]86-*-mingw*): Likewise.
17451 (arm*-*-mingw32ce*): Add case.
17452 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17453 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
17454 [__MINGW32CE__] (strerror): New function.
17455 [__MINGW32CE__] (errno): Define to GetLastError.
17456 [__MINGW32CE__] (COUNTOF): New macro.
17457 (remote_open): Remove extra close call.
17458 * mem-break.c (delete_breakpoint_at): New function.
17459 * mem-break.h (delete_breakpoint_at): Declare.
17460 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17461 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
17462 [USE_WIN32API] (read, write): Add char* casts.
17463 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
17464 * server.h: Include wincecompat.h on Windows CE.
17465 [HAVE_ERRNO_H]: Check.
17466 (perror): Declare if not declared.
17467 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
17468 (perror_with_name): Remove errno declaration.
17469 * wincecompat.h: New.
17470 * wincecompat.c: New.
17471 * win32-low.h: New.
17472 * win32-arm-low.c: New.
17473 * win32-i386-low.c: New.
17474 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
17475 (OUTMSG2): Make it safe.
17476 (_T): New macro.
17477 (COUNTOF): New macro.
17478 (NUM_REGS): Get it from the low target.
17479 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
17480 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
17481 (thread_rec): Let low target handle debug registers.
17482 (child_add_thread): Likewise.
17483 (child_init_thread_list): Likewise.
17484 (continue_one_thread): Likewise.
17485 (regptr): New.
17486 (do_child_fetch_inferior_registers): Move to ...
17487 * win32-i386-low.c: ... here, and rename to ...
17488 (do_fetch_inferior_registers): ... this.
889bf7c5 17489 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
17490 Go through the low target.
17491 (do_child_store_inferior_registers): Use regptr.
17492 (strwinerror): New function.
17493 (win32_create_inferior): Handle Windows CE.
17494 Use strwinerror instead of strerror on Windows error
17495 codes. Add program to the error output.
17496 Don't close the main thread handle on Windows CE.
17497 (win32_attach): Use coredll.dll on Windows CE.
17498 (win32_kill): Close current process and current
17499 thread handles.
17500 (win32_detach): Use coredll.dll on Windows CE.
17501 (win32_resume): Let low target handle debug registers, and
17502 step request.
17503 (handle_exception): Add/Remove initial breakpoint. Avoid
17504 non-existant WSTOPSIG on Windows CE.
17505 (win32_read_inferior_memory): Cast to remove warning.
17506 (win32_arch_string): Go through the low target.
17507 (initialize_low): Call set_breakpoint_data with the low
17508 target's breakpoint.
17509 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
17510 FOP_REGNUM, mappings): Move to ...
17511 * win32-i386-low.c: ... here.
17512 * win32-low.c (win32_thread_info): Move to ...
17513 * win32-low.h: ... here.
17514 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
17515 win32-arm-low.c and wincecompat.c.
17516 (all:): Add $EXEEXT.
17517 (install-only:): Likewise.
17518 (gdbserver:): Likewise.
17519 (gdbreplay:): Likewise.
17520 * config.in: Regenerate.
17521 * configure: Regenerate.
17522
41093d81
PA
175232007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17524
17525 * win32-low.c: Rename typedef thread_info to
17526 win32_thread_info throughout.
17527
544afa54
PA
175282007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17529
17530 * win32-i386-low.c: Rename to ...
17531 * win32-low.c: ... this.
17532 * configure.srv: Replace win32-i386-low.o with win32-low.o.
17533 * Makefile.in: Likewise.
17534
bce7165d
PA
175352007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
17536
17537 * remote-utils.c (monitor_output): Constify msg parameter.
17538 * server.h (monitor_output): Likewise.
17539 * win32-i386-low.c (handle_output_debug_string): New.
17540 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
17541 handle_output_debug_string.
17542 (get_child_debug_event): Likewise.
17543
506c7aa0
DJ
175442007-03-27 Mat Hostetter <mat@lcs.mit.edu>
17545
17546 * server.c (main): Correct strtoul check.
17547
42c81e2a
DJ
175482007-03-27 Jon Ringle <jon@ringle.org>
17549
17550 * linux-low.c: Check __ARCH_HAS_MMU__ also.
17551
9453113a
DJ
175522007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
17553
17554 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
17555
64a69107
DJ
175562007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
17557
17558 * terminal.h: Check HAVE_SGTTY_H.
17559
175602007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
17561
17562 * remote-utils.c (remote_open): Print out the assigned port number.
17563
c74d0ad8
DJ
175642007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
17565
17566 * remote-utils.c (monitor_output): New function.
17567 * server.c (debug_threads): Define here.
17568 (monitor_show_help): New function.
17569 (handle_query): Handle qRcmd.
17570 (main): Do not handle 'd' packet.
17571 * server.h (debug_threads, remote_debug, monitor_output): Declare.
17572 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
17573 of debug_threads.
17574
de7c3b4a
PA
175752007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17576
17577 * Makefile.in (EXEEXT): New.
17578 (clean): Use $(EXEEXT).
17579
ef57601b
PA
175802007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17581
17582 * target.h (target_ops): Rename send_signal to request_interrupt,
17583 and remove enum target_signal parameter.
17584 * linux-low.c (linux_request_interrupt): Rename from
17585 linux_send_signal, and always send SIGINT.
17586 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
17587 and always send SIGINT.
17588 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
17589 of send_signal.
17590 (input_interrupt): Likewise.
17591
820f2bda
PA
175922007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17593
17594 * server.c (get_features_xml): Check if target implemented
17595 arch_string.
17596 * win32-i386-low.c (win32_arch_string): New.
17597 (win32_target_ops): Add win32_arch_string as arch_string member.
17598
ab39bf24
UW
175992007-02-22 Markus Deuling <deuling@de.ibm.com>
17600
17601 * spu-low.c (spu_arch_string): New.
17602 (spu_target_ops): Add spu_arch_string.
17603
61ff6e04
DJ
176042007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
17605
17606 * remote-utils.c: Remove HAVE_TERMINAL_H check.
17607 * configure.ac: Do not check for terminal.h.
17608 * configure, config.in: Regenerated.
17609
fb1e4ffc
DJ
176102007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17611
17612 * Makefile.in (OBS): Add $(XML_BUILTIN).
17613 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
17614 (clean): Update.
17615 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
17616 (arm-with-iwmmxt.c): New.
17617 * config.in, configure: Regenerate.
17618 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
17619 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
17620 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
17621 (arm*-*-linux*): Add iWMMXt and regset support.
17622 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
17623 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
17624 (arm_store_wmmxregset, target_regsets): New.
17625 * server.c (get_features_xml): Take annex argument. Check builtin
17626 XML documents.
17627 (handle_query): Handle multiple annexes.
17628
0f48aa01
DJ
176292007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17630
17631 * remote-utils.c [USE_WIN32API] (read, write): Define.
17632 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
17633 write.
17634
23181151
DJ
176352007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
17636
17637 * linux-i386-low.c (the_low_target): Set arch_string.
17638 * linux-x86-64-low.c (the_low_target): Likewise.
17639 * linux-low.c (linux_arch_string): New.
17640 (linux_target_ops): Add it.
17641 * linux-low.h (struct linux_target_ops): Add arch_string.
17642 * server.c (write_qxfer_response): Use const void * for DATA.
17643 (get_features_xml): New.
17644 (handle_query): Handle qXfer:features:read. Report it for qSupported.
17645 * target.h (struct target_ops): Add arch_string method.
17646
9d606399
DJ
176472007-01-03 Denis Pilat <denis.pilat@st.com>
17648 Daniel Jacobowitz <dan@codesourcery.com>
17649
17650 * linux-low.c (linux_kill): Handle being called with no threads.
17651 * win32-i386-low.c (win32_kill): Likewise.
17652 (get_child_debug_event): Clear current_process_handle.
17653
176542006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
17655 Daniel Jacobowitz <dan@codesourcery.com>
17656
17657 * remote-utils.c (remote_open): Check the type of specified
17658 serial port devices before opening them.
17659 * server.c (main): Kill the inferior if an error occurs during
17660 the first remote_open.
17661
a5e13d24
DJ
176622006-12-05 Markus Deuling <deuling@de.ibm.com>
17663
17664 * README: Update supported targets.
17665
186947f7
DJ
176662006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
17667
17668 * Makefile.in (clean): Remove reg-mips64.c.
17669 (reg-mips64.c, reg-mips64.o): New rules.
17670 * configure.srv: Handle mips64. Include regset support for mips.
17671 * linux-mips-low.c (union mips_register): New.
17672 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
17673 (mips_breakpoint, mips_breakpoint_at): Use int.
17674 (mips_collect_register, mips_supply_register)
17675 (mips_collect_register_32bit, mips_supply_register_32bit)
17676 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17677 (mips_store_fpregset, target_regsets): New.
17678 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
17679
a13e2c95
UW
176802006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
17681
17682 * configure.srv: Add target "spu*-*-*".
17683 * Makefile.in (clean): Remove reg-spu.c.
17684 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
17685 * spu-low.c: New file.
17686
cb7283db
DJ
176872006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17688
17689 * configure.ac: Correct td_thr_tls_get_addr test.
17690 * configure: Regenerated.
17691
89be2091
DJ
176922006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17693
17694 * linux-low.c (linux_wait_for_event): Reformat. Use the
17695 pass_signals array.
17696 * remote-utils.c (decode_address_to_semicolon): New.
17697 * server.c (pass_signals, handle_general_set): New.
17698 (handle_query): Mention QPassSignals for qSupported.
17699 (main): Call handle_general_set.
17700 * server.h (pass_signals, decode_address_to_semicolon): New.
17701
000ef4f0
DJ
177022006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
17703
17704 * server.c (handle_query): Correct error handling for read_auxv.
17705
b7149293
UW
177062005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
17707
17708 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
17709 and srv_linux_thread_db to yes.
17710 * linux-s390-low.c (s390_fill_gregset): New function.
17711 (target_regsets): Define data structure.
17712
dae5f5cf
DJ
177132006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
17714
17715 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
17716 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
17717 * config.in, configure: Regenerated.
17718 * inferiors.c (gdb_id_to_thread): New function.
17719 (gdb_id_to_thread_id): Use it.
17720 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
17721 * linux-low.h (struct process_info): Add th member.
17722 (thread_db_get_tls_address): New prototype.
17723 * remote-utils.c (decode_address): Make non-static.
17724 * server.c (handle_query): Handle qGetTLSAddr.
17725 * server.h (gdb_id_to_thread, decode_address): New prototypes.
17726 * target.h (struct target_ops): Add get_tls_address.
17727 * thread-db.c (maybe_attach_thread): Save the thread handle.
17728 (thread_db_get_tls_address): New.
17729
32ca6d61
DJ
177302006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
17731
17732 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
17733 (linux_resume_one_process): Take a siginfo_t *. Update all
17734 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
17735 (struct pending_signals): Add a siginfo_t.
17736 (linux_wait_for_process): Always set last_status.
17737 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
17738 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
17739 * linux-low.h (struct process_info): Add last_status.
17740
5ffff7c1
DJ
177412006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
17742
17743 * remote-utils.c (try_rle): New function.
17744 (putpkt_binary): Use it.
17745
8695c747
DJ
177462006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
17747
17748 * Makefile.in (clean): Clean reg-x86-64-linux.c.
17749 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
17750 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
17751 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
17752 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
17753 point registers.
17754
290fadea
RS
177552006-08-08 Richard Sandiford <richard@codesourcery.com>
17756
17757 * server.c (terminal_fd): New variable.
17758 (old_foreground_pgrp): Likewise.
17759 (restore_old_foreground_pgrp): New function.
17760 (start_inferior): Record the terminal file descriptor in terminal_fd
17761 and its original foreground group in old_foreground_pgrp. Register
17762 restore_old_foreground_pgrp with atexit().
17763
9f2e1e63
DJ
177642006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
17765
17766 * server.c (handle_query): Correct qPart to qXfer.
17767
b80864fb
DJ
177682006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
17769
17770 * configure.ac: Check for more headers which are missing on
17771 Windows. Automatically supply -lwsock32 and USE_WIN32API.
17772 * configure.srv: Add Cygwin and mingw32.
17773 * remote-utils.c: Don't include headers unconditionally which
17774 are missing on mingw32. Include <winsock.h> for mingw32.
17775 (remote_open): Adjust for mingw32 support. Flush
17776 standard error after writing to it.
17777 (remote_close, putpkt_binary, input_interrupt, block_async_io)
17778 (unblock_async_io, enable_async_io, disable_async_io)
17779 (readchar, getpkt): Update for Winsock support.
17780 (prepare_resume_reply): Expect a protocol signal number.
17781 * server.c: Disable <sys/wait.h> on mingw32.
17782 (start_inferior): Adjust for mingw32 support. Flush
17783 standard error after writing to it.
17784 (attach_inferior): Likewise. Use protocol signal
17785 numbers.
17786 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
17787 and names.
17788 * win32-i386-low.c: New file.
17789 * Makefile.in (XM_CLIBS): Set.
17790 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
17791 (win32-i386-low.o): New dependency rule.
17792 * linux-low.c (linux_wait): Use target signal numbers.
17793 * target.h (struct target_ops): Doc fix.
17794 * server.h (target_signal_to_name): New prototype.
17795 * gdbreplay.c: Don't include headers unconditionally which
17796 are missing on mingw32. Include <winsock.h> for mingw32.
17797 (remote_close, remote_open): Adjust for Winsock support.
17798 * configure, config.in: Regenerated.
17799
0876f84a
DJ
178002006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17801
17802 * server.c (decode_xfer_read, write_qxfer_response): New.
17803 (handle_query): Take a packet length argument. Handle
17804 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
17805 the qSupported response.
17806 (main): Update call to handle_query.
17807
01f9e8fa
DJ
178082006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
17809
17810 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
17811 (putpkt_binary): Renamed from putpkt and adjusted for binary
17812 data.
17813 (putpkt): New wrapper for putpkt_binary.
17814 (readchar): Don't mask off the high bit.
17815 (decode_X_packet): New function.
17816 * server.c (main): Call putpkt_binary if a handler sets the packet
17817 length. Save the length of the incoming packet. Handle 'X'.
17818 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
17819
be2a5f71
DJ
178202006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
17821
17822 * server.c (handle_query): Handle qSupported.
17823
ea025f5f
DJ
178242006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17825
17826 * remote-utils.c (all_symbols_looked_up): New variable.
17827 (look_up_one_symbol): Check it.
17828 * server.h (look_up_one_symbol): New declaration.
17829 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
17830
9308fc88
DJ
178312006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17832
17833 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 17834 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
17835 (PTRACE_GET_THREAD_AREA): Define.
17836 (ps_get_thread_area): New function.
17837
52fb6437
NS
178382006-05-09 Nathan Sidwell <nathan@codesourcery.com>
17839
17840 * configure.srv (m68k*-*-uclinux*): New target.
17841 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
17842 (linux_resume_one_process): Remove extraneous cast.
17843 (linux_read_offsets): New.
17844 (linux_target_op): Add linux_read_offsets on mmuless systems.
17845 * server.c (handle_query): Add qOffsets logic.
17846 * target.h (struct target_ops): Add read_offsets.
17847
21b0f40c
DJ
178482006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17849
17850 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
17851 (PTRACE_GET_THREAD_AREA): Define.
17852 (ps_get_thread_area): New function.
17853 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
17854 (linux-x86-64-low.o): Update.
17855
0050a760
DJ
178562006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17857
17858 * configure.ac: Remove checks for prfpregset_t.
17859 * gdb_proc_service.h: New file.
17860 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
17861 new "gdb_proc_service.h".
17862 * proc-service.c: Likewise.
17863 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
17864 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
17865 * Makefile.in (gdb_proc_service_h): Updated.
17866 * configure, config.in: Regenerated.
17867
b92a518e
DJ
178682006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17869
17870 * remote-utils.c (prepare_resume_reply): Move declaration
17871 of gdb_id_from_wait to the top of the block.
17872
545587ee
DJ
178732006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
17874
17875 * linux-low.c (regsets_store_inferior_registers): Read the regset
17876 from the target before filling it.
17877
9db87ebd
DJ
178782006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17879
17880 * server.c (attach_inferior): Return SIGTRAP for a successful
17881 attach.
17882
dd24457d
DJ
178832006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17884
17885 * Makefile.in (OBS): Add version.o.
17886 (STAGESTUFF): Delete.
17887 (version.o): Add dependencies.
17888 (version.c): Replace rule.
17889 (clean): Remove version.c.
17890 * server.c (gdbserver_version): New.
17891 (gdbserver_usage): Use printf.
17892 (main): Handle --version and --help.
17893 * server.h (version, host_name): Add declarations.
17894
6f0f660e
EZ
178952005-12-23 Eli Zaretskii <eliz@gnu.org>
17896
889bf7c5
PA
17897 * linux-arm-low.c:
17898 * linux-arm-low.c:
17899 * inferiors.c:
17900 * i387-fp.h:
17901 * i387-fp.c:
17902 * gdbreplay.c:
17903 * regcache.c:
17904 * proc-service.c:
17905 * mem-break.h:
17906 * mem-break.c:
17907 * linux-x86-64-low.c:
17908 * linux-sh-low.c:
17909 * linux-s390-low.c:
17910 * linux-ppc64-low.c:
17911 * linux-ppc-low.c:
17912 * linux-mips-low.c:
17913 * linux-m68k-low.c:
17914 * linux-m32r-low.c:
17915 * linux-low.h:
17916 * linux-low.c:
17917 * linux-ia64-low.c:
17918 * linux-i386-low.c:
17919 * linux-crisv32-low.c:
17920 * thread-db.c:
17921 * terminal.h:
17922 * target.h:
17923 * target.c:
17924 * server.h:
17925 * server.c:
17926 * remote-utils.c:
17927 * regcache.h:
17928 * utils.c:
17929 * Makefile.in:
17930 * configure.ac:
6f0f660e
EZ
17931 * gdbserver.1: Add (C) after Copyright. Update the FSF
17932 address.
17933
9d1fb177
DJ
179342005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
17935
17936 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
17937 (arm_breakpoint_at): Recognize both breakpoints.
17938 (the_low_target): Use the correct breakpoint instruction.
17939
011a70c2
DJ
179402005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
17941
17942 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
17943 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
17944 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
17945 (the_low_target): Update.
17946
7fb85e41
AS
179472005-10-25 Andreas Schwab <schwab@suse.de>
17948
17949 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
17950
17951 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
17952 (ia64_num_regs): Reduce to 462.
17953
3db0444b
DJ
179542005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
17955
17956 * acinclude.m4: Correct quoting.
17957 * aclocal.m4: Regenerated.
17958
17959 Suggested by SZOKOVACS Robert <szo@ies.hu>:
17960 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
17961 (thread_db_init): Call thread_db_err_str.
17962 * configure.ac: Check for TD_VERSION.
17963 * config.in, configure: Regenerated.
17964
bee0189a
DJ
179652005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17966
17967 * server.h (error, fatal, warning): Add ATTR_FORMAT.
17968
e9d25b98
DJ
179692005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17970
17971 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
17972 is not available. Define HAVE_PTRACE_GETREGS if it is.
17973 * config.in, configure: Regenerated.
17974 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
17975 * linux-i386-low.c, linux-m68k-low.c: Update to use
17976 HAVE_PTRACE_GETREGS.
17977 * linux-low.c (regsets_fetch_inferior_registers)
17978 (regsets_store_inferior_registers): Only return 0 if we processed
17979 GENERAL_REGS.
17980 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
17981 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
17982
a06660f7
DJ
179832005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17984
17985 * inferiors.c (struct thread_info): Add gdb_id.
17986 (add_thread): Add gdb_id argument.
17987 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
17988 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
17989 calls to add_thread.
17990 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
17991 * server.c (handle_query): Use thread_to_gdb_id.
17992 (handle_v_cont, main): Use gdb_id_to_thread_id.
17993 * server.h (add_thread): Update prototype.
17994 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
17995 prototypes.
17996
5a1f5858
DJ
179972005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17998
17999 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
18000 left-padded registers.
18001 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
18002 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
18003
e122f1f5
SE
180042005-07-01 Steve Ellcey <sje@cup.hp.com>
18005
18006 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
18007 * configure: Regenerate.
18008 * config.in: Regenerate.
18009 * server.h (NEED_DECLARATION_STRERROR):
18010 Replace with !HAVE_DECL_STRERROR.
18011
d592fa2f
DJ
180122005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
18013
18014 * linux-low.c (linux_wait, linux_send_signal): Don't test
18015 an unsigned long variable for > 0 if it could be MAX_ULONG.
18016 * server.c (myresume): Likewise.
18017 * target.c (set_desired_inferior): Likewise.
18018
ccbd4912
MK
180192005-06-13 Mark Kettenis <kettenis@gnu.org>
18020
18021 * configure.ac: Simplify and improve check for socklen_t.
18022 * configure, config.in: Regenerate.
18023
f450004a
DJ
180242005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
18025
18026 * acconfig.h: Remove.
18027 * configure.ac: Add a test for socklen_t. Use three-argument
18028 AC_DEFINE throughout.
18029 * config.in: Regenerated using autoheader 2.59.
18030 * configure: Regenerated.
18031
18032 * gdbreplay.c (socklen_t): Provide a default.
18033 (remote_open): Use socklen_t.
18034 * remote-utils.c (socklen_t): Provide a default.
18035 (remote_open): Use socklen_t.
18036 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
18037 unsigned char.
18038
18039 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
18040 char for buffers.
18041 * linux-low.c (linux_read_memory, linux_write_memory)
18042 (linux_read_auxv): Likewise.
18043 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
18044 (check_mem_write): Likewise.
18045 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
18046 Likewise.
18047 * regcache.c (struct inferior_rgcache_data, registers_to_string)
18048 (registers_from_string, register_data): Likewise.
18049 * server.c (handle_query, main): Likewise.
18050 * server.h (convert_ascii_to_int, convert_int_to_ascii)
18051 (decode_M_packet): Likewise.
18052 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
18053 * target.h (struct target_ops): Update read_memory, write_memory,
18054 and read_auxv.
18055 (read_inferior_memory, write_inferior_memory): Update.
18056 * linux-low.h (struct linux_target_ops): Change type of breakpoint
18057 to unsigned char *.
18058 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
18059 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
18060 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
18061 linux-s390-low.c, linux-sh-low.c: Update for changes in
18062 read_inferior_memory and the_low_target->breakpoint.
18063
eee84df1
DJ
180642005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
18065
18066 * Makefile.in (SFILES): Add linux-ppc64-low.c.
18067 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
18068 * configure.srv: Add powerpc64-*-linux*.
18069 * linux-ppc64-low.c: New file.
18070
45b134e5
OF
180712005-05-23 Orjan Friberg <orjanf@axis.com>
18072
18073 * linux-cris-low.c: New file with support for CRIS.
18074 * linux-crisv32-low.c: Ditto for CRISv32.
18075 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
18076 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 18077 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
18078 reg-crisv32.o, and reg-crisv32.c to make rules.
18079 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
18080 recognized targets.
18081
48d93c75
UW
180822005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
18083
18084 * linux-low.c (fetch_register): Ensure buffer size is a multiple
18085 of sizeof (PTRACE_XFER_TYPE).
18086 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
18087
e013ee27
OF
180882005-05-12 Orjan Friberg <orjanf@axis.com>
18089
889bf7c5 18090 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
18091 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
18092 pointers for hardware watchpoint support.
18093 * linux-low.h (struct linux_target_ops): Ditto.
18094 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
18095 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
18096 to linux_target_ops.
18097 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
18098 reply packet.
18099 * server.c (main): Recognize 'Z' and 'z' packets.
18100
b0ded00b
UW
181012005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
18102
18103 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
18104 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
18105 (the_low_target): Add new members.
18106
8643e2ad
DJ
181072005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18108
18109 * proc-service.c (ps_lgetregs): Search all_processes instead of
18110 all_threads.
18111
fc620387
DJ
181122005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
18113
18114 * server.c (start_inferior): Change return type to int.
18115 (attach_inferior): Change sigptr to int *.
18116 (handle_v_cont, handle_v_requests): Change signal to int *.
18117 (main): Change signal to int.
18118
181192005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
18120
18121 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
18122 * configure.srv: Add m32r*-*-linux*.
18123 * linux-m32r-low.c: New file.
18124
e0e76420
DJ
181252005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
18126
18127 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
18128
a1928bad
DJ
181292005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
18130
18131 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
18132 Take unsigned long arguments for PIDs.
18133 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
18134 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
18135 (wait_for_sigstop, linux_resume_one_process)
18136 (regsets_fetch_inferior_registers, linux_send_signal)
18137 (linux_read_auxv): Likewise. Update the types of variables holding
18138 PIDs. Update format string specifiers.
18139 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
18140 * remote-utils.c (prepare_resume_reply): Likewise.
18141 * server.c (cont_thread, general_thread, step_thread)
18142 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
18143 unsigned long.
18144 (handle_query): Update format specifiers.
18145 (handle_v_cont, main): Use strtoul for thread IDs.
18146 * server.h (struct inferior_list_entry): Use unsigned long for ID.
18147 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
18148 (general_thread, step_thread, thread_from_wait)
18149 (old_thread_from_wait): Update.
18150 * target.h (struct thread_resume): Use unsigned long for THREAD.
18151 (struct target_ops): Use unsigned long for arguments to attach and
18152 thread_alive.
18153
dcdb98d2
DJ
181542005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
18155
18156 * acinclude.m4: Include bfd/bfd.m4 directly.
18157 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
18158 <agriffis@toolchain.org>.
18159 * aclocal.m4, configure: Regenerated.
18160
bec39cab
AC
181612005-01-07 Andrew Cagney <cagney@gnu.org>
18162
18163 * configure.ac: Rename configure.in, require autoconf 2.59.
18164 * configure: Re-generate.
18165
434c4c77
DJ
181662004-12-08 Daniel Jacobowitz <dan@debian.org>
18167
18168 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
18169 LIBS when finished.
18170 * aclocal.m4: Regenerated.
18171 * configure: Regenerated.
18172
db1d3e1b
AS
181732004-11-21 Andreas Schwab <schwab@suse.de>
18174
18175 * linux-m68k-low.c (m68k_num_gregs): Define.
18176 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
18177 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
18178 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
18179 (m68k_breakpoint_at): New. Add to the_low_target.
18180
18181 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
18182 srv_linux_thread_db to yes.
18183
43360365
JB
181842004-10-20 Joel Brobecker <brobecker@gnat.com>
18185
18186 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
18187 (ARCH_SET_FS): Likewise.
18188 (ARCH_GET_FS): Likewise.
18189 (ARCH_GET_GS): Likewise.
18190
fd500816
DJ
181912004-10-16 Daniel Jacobowitz <dan@debian.org>
18192
18193 * linux-i386-low.c (ps_get_thread_area): New.
18194 * linux-x86-64-low.c (ps_get_thread_area): New.
18195 * linux-low.c: Include <sys/syscall.h>.
18196 (linux_kill_one_process): Don't kill the first thread here.
18197 (linux_kill): Kill the first thread here.
18198 (kill_lwp): New function.
18199 (send_sigstop, linux_send_signal): Use it.
18200 * proc-service.c: Clean up #ifdefs.
18201 (fpregset_info): Delete.
18202 (ps_lgetregs): Update and enable implementation.
18203 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
18204 implementations.
18205 * remote-utils.c (struct sym_cache, symbol_cache): New.
18206 (input_interrupt): Print a clearer message.
18207 (async_io_enabled): New variable.
18208 (enable_async_io, disable_async_io): Use it. Update comments.
18209 (look_up_one_symbol): Use the symbol cache.
18210 * thread-db.c (thread_db_look_up_symbols): New function.
18211 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
18212
f6de3c42
DJ
182132004-10-16 Daniel Jacobowitz <dan@debian.org>
18214
18215 * configure.in: Test for -rdynamic.
18216 * configure: Regenerated.
18217 * Makefile (INTERNAL_LDFLAGS): New.
18218 (gdbserver, gdbreplay): Use it.
18219
2c0fc042
AC
182202004-09-02 Andrew Cagney <cagney@gnu.org>
18221
18222 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
18223
075b3282
DJ
182242004-03-23 Daniel Jacobowitz <drow@mvista.com>
18225
18226 * linux-low.c (linux_wait): Clear all_processes list also.
18227
fa6a77dc
DJ
182282004-03-12 Daniel Jacobowitz <drow@mvista.com>
18229
18230 * linux-low.c: Include <errno.h>. Remove extern declaration of
18231 errno.
18232
6d782a97
DJ
182332004-03-12 Daniel Jacobowitz <drow@mvista.com>
18234
18235 * gdbreplay.c, server.h, utils.c: Update copyright years.
18236
3a7fb99b
DJ
182372004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18238
18239 * server.c (main): Print child status or termination signal from
18240 variable 'signal', not 'sig'.
18241
c3e735a6
DJ
182422004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18243
18244 * linux-low.c (linux_read_memory): Change return type to
18245 int. Check for and return error from ptrace().
18246 * target.c (read_inferior_memory): Change return type to int. Pass
18247 back return status from the_target->read_memory().
18248 * target.h (struct target_ops): Adapt *read_memory() prototype.
18249 Update comment.
18250 (read_inferior_memory): Adapt prototype.
18251 * server.c (main): Return an error packet if
18252 read_inferior_memory() returns an error.
18253
a59d1c82
DJ
182542004-03-04 Daniel Jacobowitz <drow@mvista.com>
18255
18256 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
18257 Unify with other clean targets.
18258
dc3f8883
DJ
182592004-02-29 Daniel Jacobowitz <drow@mvista.com>
18260
18261 * server.c (handle_v_cont): Call set_desired_inferior.
18262
89a208da
DJ
182632004-02-29 Daniel Jacobowitz <drow@mvista.com>
18264
18265 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
18266
62ea82f5
DJ
182672004-02-29 Daniel Jacobowitz <drow@mvista.com>
18268
18269 * linux-low.c (linux_wait): Unblock async I/O.
18270 (linux_resume): Block and enable async I/O.
18271 * remote-utils.c (block_async_io, unblock_async_io): New functions.
18272 * server.h (block_async_io, unblock_async_io): Add prototypes.
18273
6910d122
DJ
182742004-02-29 Daniel Jacobowitz <drow@mvista.com>
18275
18276 * remote-utils.c (remote_open): Print a status notice after
18277 opening a TCP port.
18278 * server.c (attach_inferior): Print a status notice after
18279 attaching.
18280
182812004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
18282
18283 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
18284
c89dc5d4
DJ
182852004-02-26 Daniel Jacobowitz <drow@mvista.com>
18286
18287 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
18288 error packet.
18289 * server.c, target.h: Update copyright years.
18290
4b8dad4a
RM
182912004-02-25 Roland McGrath <roland@redhat.com>
18292
18293 * target.h (struct target_ops): New member `read_auxv'.
18294 * server.c (handle_query): Handle qPart:auxv:read: query using that.
18295 * linux-low.c (linux_read_auxv): New function.
18296 (linux_target_ops): Initialize `read_auxv' member to that.
18297
d7446758
JB
182982004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18299
18300 Committed by Jim Blandy <jimb@redhat.com>.
18301
18302 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 18303 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
18304 instead of GPR_SIZE to distiguish s390 and s390x targets.
18305
5544ad89
DJ
183062004-01-31 Daniel Jacobowitz <drow@mvista.com>
18307
18308 * linux-low.c: Update copyright year.
18309 (check_removed_breakpoint): Clear pending_is_breakpoint.
18310 (linux_set_resume_request, linux_queue_one_thread)
18311 (resume_status_pending_p): New functions.
18312 (linux_continue_one_thread): Use process->resume.
18313 (linux_resume): Only resume threads if there are no pending events.
18314 * linux-low.h (struct process_info): Add resume request
18315 pointer.
18316
2a68b70e
DJ
183172004-01-30 Daniel Jacobowitz <drow@mvista.com>
18318
18319 * regcache.c (new_register_cache): Clear the allocated register
18320 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
18321
64386c31
DJ
183222003-10-13 Daniel Jacobowitz <drow@mvista.com>
18323
18324 * linux-low.c (linux_resume): Take a struct thread_resume *
18325 argument.
18326 (linux_wait): Update call.
18327 (resume_ptr): New static variable.
18328 (linux_continue_one_thread): Renamed from
18329 linux_continue_one_process. Use resume_ptr.
18330 (linux_resume): Use linux_continue_one_thread.
18331 * server.c (handle_v_cont, handle_v_requests): New functions.
18332 (myresume): New function.
18333 (main): Handle 'v' case.
18334 * target.h (struct thread_resume): New type.
18335 (struct target_ops): Change argument of "resume" to struct
18336 thread_resume *.
18337 (myresume): Delete macro.
18338
c938e9b0
L
183392003-08-08 H.J. Lu <hongjiu.lu@intel.com>
18340
18341 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
18342 (uninstall): Support DESTDIR.
18343
7f313d07
BC
18344Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
18345
18346 * configure.srv: Add xscale*linux copy of arm*linux entry.
18347
3b2fc2ea
DJ
183482003-07-24 Daniel Jacobowitz <drow@mvista.com>
18349
18350 * linux-arm-low.c (arm_reinsert_addr): New function.
18351 (the_low_target): Add arm_reinsert_addr.
18352
1c0a559e
MK
183532003-07-08 Mark Kettenis <kettenis@gnu.org>
18354
18355 * mem-break.c: Remove whitespace at end of file.
18356
43d5792c
DJ
183572003-06-28 Daniel Jacobowitz <drow@mvista.com>
18358
18359 * configure.in: Check whether we need to prototype strerror.
18360 * server.h: Optionally prototype strerror.
18361 * gdbreplay.c (perror_with_name): Use strerror.
18362 * linux-low.c (linux_attach_lwp): Use strerror.
18363 * utils.c (perror_with_name): Use strerror.
18364 * config.in, configure: Regenerated.
18365
c8a86edf
DJ
183662003-06-28 Daniel Jacobowitz <drow@mvista.com>
18367
18368 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
18369 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
18370
73d37363
DJ
183712003-06-20 Daniel Jacobowitz <drow@mvista.com>
18372
18373 * Makefile.in (SFILES): Update.
18374 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
18375 low-sun3.c: Remove files.
18376
6ad8ae5c
DJ
183772003-06-17 Daniel Jacobowitz <drow@mvista.com>
18378
18379 * linux-low.c: Move comment to linux_thread_alive where it belonged.
18380 (linux_detach_one_process, linux_detach): New functions.
18381 (linux_target_ops): Add linux_detach.
18382 * server.c (main): Handle 'D' packet.
18383 * target.h (struct target_ops): Add "detach" member.
18384 (detach_inferior): Define.
18385
1581182a
MK
183862003-06-13 Mark Kettenis <kettenis@gnu.org>
18387
18388 From Kelley Cook <kelleycook@wideopenwest.com>:
18389 * configure.srv: Accept i[34567]86 variants.
18390
e5379b03
DJ
183912003-06-05 Daniel Jacobowitz <drow@mvista.com>
18392
18393 * linux-low.c (linux_wait_for_event): Correct comment typos.
18394 (linux_resume_one_process): Call check_removed_breakpoint.
18395 (linux_send_signal): New function.
18396 (linux_target_ops): Add linux_send_signal.
18397 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
18398 of kill.
18399 * target.h (struct target_ops): Add send_signal.
18400
2ff29de4
JB
184012003-05-29 Jim Blandy <jimb@redhat.com>
18402
18403 * linux-low.c (usr_store_inferior_registers): Transfer buf in
18404 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
18405 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
18406 away part of the register's value.
18407
254787d4
DJ
184082003-03-26 Daniel Jacobowitz <drow@mvista.com>
18409
18410 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
18411 (linux_wait_for_event, linux_init_signals): Likewise.
18412
94e10508
DJ
184132003-03-17 Daniel Jacobowitz <drow@mvista.com>
18414
18415 * configure.in: Check for stdlib.h.
18416 * configure: Regenerated.
18417 * config.in: Regenerated.
18418
4c0711e0
DJ
184192003-01-04 Andreas Schwab <schwab@suse.de>
18420
18421 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
18422
ef66e766
AC
184232003-01-02 Andrew Cagney <ac131313@redhat.com>
18424
18425 * Makefile.in: Remove obsolete code.
18426
a1358604
DJ
184272002-11-20 Daniel Jacobowitz <drow@mvista.com>
18428
18429 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
18430 defined(PT_FPR0_HI).
18431
23ce3b1c
DJ
184322002-11-17 Stuart Hughes <seh@zee2.com>
18433
18434 * linux-arm-low.c (arm_num_regs): Increase.
18435 (arm_regmap): Include status register.
18436
184372002-11-17 Daniel Jacobowitz <drow@mvista.com>
18438
18439 * linux-low.c (register_addr): Remove incorrect -1 check.
18440
a9fa9f7d
DJ
184412002-08-29 Daniel Jacobowitz <drow@mvista.com>
18442
18443 * linux-low.c (linux_create_inferior): Call setpgid. Return
18444 the new PID.
18445 (unstopped_p, linux_signal_pid): Remove.
18446 (linux_target_ops): Remove linux_signal_pid.
18447 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
18448 global instead of target method.
18449 * target.h (struct target_ops): Remove signal_pid. Update comment
18450 for create_inferior.
18451 * server.c (signal_pid): New variable.
18452 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 18453 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
18454 (attach_inferior): Set signal_pid.
18455
17574093
DJ
184562002-08-23 Daniel Jacobowitz <drow@mvista.com>
18457
18458 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
18459
184602002-08-20 Jim Blandy <jimb@redhat.com>
18461
18462 * Makefile.in (LDFLAGS): Allow the configure script to establish a
18463 default for this.
18464
184652002-08-01 Andrew Cagney <cagney@redhat.com>
18466
18467 * Makefile.in: Make chill references obsolete.
18468
184692002-07-24 Kevin Buettner <kevinb@redhat.com>
18470
18471 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
18472 * configure: Regenerate.
18473 * config.in: Regenerate.
18474
184752002-07-09 David O'Brien <obrien@FreeBSD.org>
18476
18477 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
18478 (perror_with_name, remote_close, remote_open, expect, play): Static.
18479
184802002-07-04 Michal Ludvig <mludvig@suse.cz>
18481
4b8dad4a 18482 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
18483 byte offsets instead of an array of indexes.
18484 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
18485
184862002-06-13 Daniel Jacobowitz <drow@mvista.com>
18487
18488 * regcache.c: Add comment.
18489
184902002-06-11 Daniel Jacobowitz <drow@mvista.com>
18491
18492 * thread-db.c: New file.
18493 * proc-service.c: New file.
18494 * acinclude.m4: New file.
18495 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
18496 proc-service.o, and thread-db.o.
18497 (linux-low.o): Add USE_THREAD_DB.
18498 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
18499 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
18500 * aclocal.m4: Regenerated.
18501 * config.in: Regenerated.
18502 * configure: Regenerated.
18503 * configure.in: Check for proc_service.h, sys/procfs.h,
18504 thread_db.h, and linux/elf.h headrs.
18505 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
18506 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
18507 Check for -lthread_db and thread support.
18508 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
18509 PowerPC, and SuperH.
18510 * i387-fp.c: Constify arguments.
18511 * i387-fp.h: Likewise.
18512 * inferiors.c: (struct thread_info): Renamed from
18513 `struct inferior_info'. Remove PID member. Use generic inferior
18514 list header. All uses updated.
18515 (inferiors, signal_pid): Removed.
18516 (all_threads): New variable.
18517 (get_thread): Define.
18518 (add_inferior_to_list): New function.
18519 (for_each_inferior): New function.
18520 (change_inferior_id): New function.
18521 (add_inferior): Removed.
18522 (remove_inferior): New function.
18523 (add_thread): New function.
18524 (free_one_thread): New function.
18525 (remove_thread): New function.
18526 (clear_inferiors): Use for_each_inferior and free_one_thread.
18527 (find_inferior): New function.
18528 (find_inferior_id): New function.
18529 (inferior_target_data): Update argument type.
18530 (set_inferior_target_data): Likewise.
18531 (inferior_regcache_data): Likewise.
18532 (set_inferior_regcache_data): Likewise.
18533 * linux-low.c (linux_bp_reinsert): Remove.
18534 (all_processes, stopping_threads, using_thrads)
18535 (struct pending_signals, debug_threads, pid_of): New.
18536 (inferior_pid): Replace with macro.
18537 (struct inferior_linux_data): Remove.
18538 (get_stop_pc, add_process): New functions.
18539 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
18540 Use add_process and add_thread.
18541 (linux_attach_lwp): New function, based on old linux_attach. Use
18542 add_process and add_thread. Set stop_expected for new threads.
18543 (linux_attach): New function.
18544 (linux_kill_one_process): New function.
18545 (linux_kill): Kill all LWPs.
18546 (linux_thread_alive): Use find_inferior_id.
18547 (check_removed_breakpoints, status_pending_p): New functions.
18548 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
18549 Update. Use WNOHANG. Wait for cloned processes also. Update process
18550 struct for the found process.
18551 (linux_wait_for_event): New function.
18552 (linux_wait): Use it. Support LWPs.
18553 (send_sigstop, wait_for_sigstop, stop_all_processes)
18554 (linux_resume_one_process, linux_continue_one_process): New functions.
18555 (linux_resume): Support LWPs.
18556 (REGISTER_RAW_SIZE): Remove.
18557 (fetch_register): Use register_size instead. Call supply_register.
18558 (usr_store_inferior_registers): Likewise. Call collect_register.
18559 Fix recursive case.
18560 (regsets_fetch_inferior_registers): Improve error message.
18561 (regsets_store_inferior_registers): Add debugging.
18562 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
18563 (unstopped_p, linux_signal_pid): New functions.
18564 (linux_target_ops): Add linux_signal_pid.
18565 (linux_init_signals): New function.
18566 (initialize_low): Call it. Initialize using_threads.
18567 * regcache.c (inferior_regcache_data): Add valid
18568 flag.
18569 (get_regcache): Fetch registers lazily. Add fetch argument
18570 and update all callers.
18571 (regcache_invalidate_one, regcache_invalidate): New
18572 functions.
18573 (new_register_cache): Renamed from create_register_cache.
18574 Return the new regcache.
18575 (free_register_cache): Change argument to a void *.
18576 (registers_to_string, registers_from_string): Call get_regcache
18577 with fetch flag set.
18578 (register_data): Make static. Pass fetch flag to get_regcache.
18579 (supply_register): Call get_regcache with fetch flag clear.
18580 (collect_register): Call get_regcache with fetch flag set.
18581 (collect_register_as_string): New function.
18582 * regcache.h: Update.
18583 * remote-utils.c (putpkt): Flush after debug output and use
18584 stderr.
18585 Handle input interrupts while waiting for an ACK.
18586 (input_interrupt): Use signal_pid method.
18587 (getpkt): Flush after debug output and use stderr.
18588 (outreg): Use collect_register_as_string.
18589 (new_thread_notify, dead_thread_notify): New functions.
18590 (prepare_resume_reply): Check using_threads. Set thread_from_wait
18591 and general_thread.
18592 (look_up_one_symbol): Flush after debug output.
18593 * server.c (step_thread, server_waiting): New variables.
18594 (start_inferior): Don't use signal_pid. Update call to mywait.
18595 (attach_inferior): Update call to mywait.
18596 (handle_query): Handle qfThreadInfo and qsThreadInfo.
18597 (main): Don't fetch/store registers explicitly. Use
18598 set_desired_inferior. Support proposed ``Hs'' packet. Update
18599 calls to mywait.
18600 * server.h: Update.
18601 (struct inferior_list, struct_inferior_list_entry): New.
18602 * target.c (set_desired_inferior): New.
18603 (write_inferior_memory): Constify.
18604 (mywait): New function.
18605 * target.h: Update.
18606 (struct target_ops): New signal_pid method.
18607 (mywait): Removed macro, added prototype.
18608
18609 * linux-low.h (regset_func): Removed.
18610 (regset_fill_func, regset_store_func): New.
18611 (enum regset_type): New.
18612 (struct regset_info): Add type field. Use new operation types.
18613 (struct linux_target_ops): stop_pc renamed to get_pc.
18614 Add decr_pc_after_break and breakpoint_at.
18615 (get_process, get_thread_proess, get_process_thread)
18616 (strut process_info, all_processes, linux_attach_lwp)
18617 (thread_db_init): New.
18618
18619 * linux-arm-low.c (arm_get_pc, arm_set_pc,
18620 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
18621 (the_low_target): Add new members.
18622 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
18623 (i386_store_fpxregset): Constify.
18624 (target_regsets): Add new kind identifier.
18625 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
18626 (i386_set_pc): Add debugging.
18627 (i386_breakpoint_at): New function.
18628 (the_low_target): Add new members.
18629 * linux-mips-low.c (mips_get_pc, mips_set_pc)
18630 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
18631 (mips_breakpoint_at): New.
18632 (the_low_target): Add new members.
18633 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
18634 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
18635 (the_low_target): Add new members.
18636 * linux-sh-low.c (sh_get_pc, sh_set_pc)
18637 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
18638 (the_low_target): Add new members.
18639 * linux-x86-64-low.c (target_regsets): Add new kind
18640 identifier.
18641
186422002-05-15 Daniel Jacobowitz <drow@mvista.com>
18643
18644 From Martin Pool <mbp@samba.org>:
18645 * server.c (gdbserver_usage): New function.
18646 (main): Call it.
18647
186482002-05-14 Daniel Jacobowitz <drow@mvista.com>
18649
18650 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
18651 stop_at -> stop_pc.
18652
186532002-05-04 Andrew Cagney <ac131313@redhat.com>
18654
18655 * Makefile.in: Remove obsolete code.
18656
186572002-04-24 Michal Ludvig <mludvig@suse.cz>
18658
18659 * linux-low.c (regsets_fetch_inferior_registers),
18660 (regsets_store_inferior_registers): Removed cast to int from
18661 ptrace() calls.
18662 * regcache.h: Added declaration of struct inferior_info.
18663
186642002-04-20 Daniel Jacobowitz <drow@mvista.com>
18665
18666 * inferiors.c (struct inferior_info): Add regcache_data.
18667 (add_inferior): Call create_register_cache.
18668 (clear_inferiors): Call free_register_cache.
18669 (inferior_regcache_data, set_inferior_regcache_data): New functions.
18670 * regcache.c (struct inferior_regcache_data): New.
18671 (registers): Remove.
18672 (get_regcache): New function.
18673 (create_register_cache, free_register_cache): New functions.
18674 (set_register_cache): Don't initialize the register cache here.
18675 (registers_to_string, registers_from_string, register_data): Call
18676 get_regcache.
18677 * regcache.h: Add prototypes.
18678 * server.h: Likewise.
18679
186802002-04-20 Daniel Jacobowitz <drow@mvista.com>
18681
18682 * mem-break.c: New file.
18683 * mem-break.h: New file.
18684 * Makefile.in: Add mem-break.o rule; update server.h
18685 dependencies.
18686 * inferiors.c (struct inferior_info): Add target_data
18687 member.
18688 (clear_inferiors): Free target_data member if set.
18689 (inferior_target_data, set_inferior_target_data): New functions.
18690 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
18691 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
18692 * linux-low.c (linux_bp_reinsert): New variable.
18693 (struct inferior_linux_data): New.
18694 (linux_create_inferior): Use set_inferior_target_data.
18695 (linux_attach): Likewise. Call add_inferior.
18696 (linux_wait_for_one_inferior): New function.
18697 (linux_wait): Call it.
18698 (linux_write_memory): Add const.
18699 (initialize_low): Call set_breakpoint_data.
18700 * linux-low.h (struct linux_target_ops): Add breakpoint
18701 handling members.
18702 * server.c (attach_inferior): Remove extra add_inferior
18703 call.
18704 * server.h: Include mem-break.h. Update inferior.c
18705 prototypes.
18706 * target.c (read_inferior_memory)
18707 (write_inferior_memory): New functions.
18708 * target.h (read_inferior_memory)
18709 (write_inferior_memory): Change macros to prototypes.
18710 (struct target_ops): Update comments. Add const to write_memory
18711 definition.
18712
187132002-04-11 Daniel Jacobowitz <drow@mvista.com>
18714
18715 * linux-low.c (usr_store_inferior_registers): Support
18716 registers which are allowed to fail to store.
18717 * linux-low.h (linux_target_ops): Likewise.
18718 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
18719 (ppc_cannot_store_register): FPSCR may not be storable.
18720
187212002-04-09 Daniel Jacobowitz <drow@mvista.com>
18722
18723 * server.h: Include <string.h> if HAVE_STRING_H.
18724 * ChangeLog: Correct paths in last ChangeLog entry.
18725
187262002-04-09 Daniel Jacobowitz <drow@mvista.com>
18727
18728 * linux-low.h: Remove obsolete prototypes.
18729 (struct linux_target_ops): New.
18730 (extern the_low_target): New.
18731 * linux-low.c (num_regs, regmap): Remove declarations.
18732 (register_addr): Use the_low_target explicitly.
18733 (fetch_register): Likewise.
18734 (usr_fetch_inferior_registers): Likewise.
18735 (usr_store_inferior_registers): Likewise.
18736 * linux-arm-low.c (num_regs): Remove.
18737 (arm_num_regs): Define.
18738 (arm_regmap): Renamed from regmap, made static.
18739 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
18740 made static.
18741 (arm_cannot_store_register): Renamed from cannot_store_register,
18742 made static.
18743 (the_low_target): New.
18744 * linux-i386-low.c (num_regs): Remove.
18745 (i386_num_regs): Define.
18746 (i386_regmap): Renamed from regmap, made static.
18747 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
18748 made static.
18749 (i386_cannot_store_register): Renamed from cannot_store_register,
18750 made static.
18751 (the_low_target): New.
18752 * linux-ia64-low.c (num_regs): Remove.
18753 (ia64_num_regs): Define.
18754 (ia64_regmap): Renamed from regmap, made static.
18755 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
18756 made static.
18757 (ia64_cannot_store_register): Renamed from cannot_store_register,
18758 made static.
18759 (the_low_target): New.
18760 * linux-m68k-low.c (num_regs): Remove.
18761 (m68k_num_regs): Define.
18762 (m68k_regmap): Renamed from regmap, made static.
18763 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
18764 made static.
18765 (m68k_cannot_store_register): Renamed from cannot_store_register,
18766 made static.
18767 (the_low_target): New.
18768 * linux-mips-low.c (num_regs): Remove.
18769 (mips_num_regs): Define.
18770 (mips_regmap): Renamed from regmap, made static.
18771 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
18772 made static.
18773 (mips_cannot_store_register): Renamed from cannot_store_register,
18774 made static.
18775 (the_low_target): New.
18776 * linux-ppc-low.c (num_regs): Remove.
18777 (ppc_num_regs): Define.
18778 (ppc_regmap): Renamed from regmap, made static.
18779 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
18780 made static.
18781 (ppc_cannot_store_register): Renamed from cannot_store_register,
18782 made static.
18783 (the_low_target): New.
18784 * linux-s390-low.c (num_regs): Remove.
18785 (s390_num_regs): Define.
18786 (s390_regmap): Renamed from regmap, made static.
18787 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
18788 made static.
18789 (s390_cannot_store_register): Renamed from cannot_store_register,
18790 made static.
18791 (the_low_target): New.
18792 * linux-sh-low.c (num_regs): Remove.
18793 (sh_num_regs): Define.
18794 (sh_regmap): Renamed from regmap, made static.
18795 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
18796 made static.
18797 (sh_cannot_store_register): Renamed from cannot_store_register,
18798 made static.
18799 (the_low_target): New.
18800 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
18801 (the_low_target): New.
18802
188032002-04-09 Daniel Jacobowitz <drow@mvista.com>
18804
18805 * Makefile.in: Add stamp-h target.
18806 * configure.in: Create stamp-h.
18807 * configure: Regenerated.
18808
188092002-04-09 Daniel Jacobowitz <drow@mvista.com>
18810
18811 * inferiors.c: New file.
18812 * target.c: New file.
18813 * target.h: New file.
18814 * Makefile.in: Add target.o and inferiors.o. Update
18815 dependencies.
18816 * linux-low.c (inferior_pid): New static variable,
18817 moved from server.c.
18818 (linux_create_inferior): Renamed from create_inferior.
18819 Call add_inferior. Return 0 on success instead of a PID.
18820 (linux_attach): Renamed from myattach.
18821 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
18822 (linux_thread_alive): Renamed from mythread_alive.
18823 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
18824 child dies.
18825 (linux_resume): Renamed from myresume. Add missing ``return 0''.
18826 (regsets_store_inferior_registers): Correct error message.
18827 Add missing ``return 0''.
18828 (linux_fetch_registers): Renamed from fetch_inferior_registers.
18829 (linux_store_registers): Renamed from store_inferior_registers.
18830 (linux_read_memory): Renamed from read_inferior_memory.
18831 (linux_write_memory): Renamed from write_inferior_memory.
18832 (linux_target_ops): New structure.
18833 (initialize_low): Call set_target_ops ().
18834 * remote-utils.c (unhexify): New function.
18835 (hexify): New function.
18836 (input_interrupt): Send signals to ``signal_pid''.
18837 * server.c (inferior_pid): Remove.
18838 (start_inferior): Update create_inferior call.
18839 (attach_inferior): Call add_inferior.
18840 (handle_query): New function.
18841 (main): Call handle_query for `q' packets.
18842 * server.h: Include "target.h". Remove obsolete prototypes.
18843 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
18844
188452002-04-09 Daniel Jacobowitz <drow@mvista.com>
18846
18847 * Makefile.in: Add WARN_CFLAGS. Update configury
18848 dependencies.
18849 * configure.in: Check for <string.h>
18850 * configure: Regenerate.
18851 * config.in: Regenerate.
18852 * gdbreplay.c: Include needed system headers.
18853 (remote_open): Remove strchr prototype.
18854 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
18855 * regcache.c (supply_register): Change buf argument to const void *.
18856 (supply_register_by_name): Likewise.
18857 (collect_register): Change buf argument to void *.
18858 (collect_register_by_name): Likewise.
18859 * regcache.h: Add missing prototypes.
18860 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
18861 * server.c (handle_query): New function.
18862 (attached): New static variable, moved out of main.
18863 (main): Quiet longjmp clobber warnings.
18864 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
18865 * utils.c (error): Remove NORETURN.
18866 (fatal): Likewise.