]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdbserver/ChangeLog
gdbserver: turn target ops 'insert_point' and 'remove_point' into methods
[thirdparty/binutils-gdb.git] / gdbserver / ChangeLog
CommitLineData
7e0bde70
TBA
12020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2
3 Turn process_stratum_target's insert_point and remove_point ops
4 into methods of process_target.
5
6 * target.h (struct process_stratum_target): Remove the target ops.
7 (class process_target): Add the target ops.
8 * target.cc (process_target::insert_point): Define.
9 (process_target::remove_point): Define.
10
11 Update the derived classes and callers below.
12
13 * mem-break.cc (set_raw_breakpoint_at): Update.
14 (delete_raw_breakpoint): Update.
15 (uninsert_raw_breakpoint): Update.
16 (reinsert_raw_breakpoint): Update.
17 * linux-low.cc (linux_target_ops): Update.
18 (linux_insert_point): Turn into ...
19 (linux_process_target::insert_point): ... this.
20 (linux_remove_point): Turn into ...
21 (linux_process_target::remove_point): ... this.
22 * linux-low.h (class linux_process_target): Update.
23 * lynx-low.cc (lynx_target_ops): Update.
24 * nto-low.cc (nto_target_ops): Update.
25 (nto_insert_point): Turn into ...
26 (nto_process_target::insert_point): ... this.
27 (nto_remove_point): Turn into ...
28 (nto_process_target::remove_point): ... this.
29 * nto-low.h (class nto_process_target): Update.
30 * win32-low.cc (win32_target_ops): Update.
31 (win32_insert_point): Turn into ...
32 (win32_process_target::insert_point): ... this.
33 (win32_remove_point): Turn into ...
34 (win32_process_target::remove_point): ... this.
35 * win32-low.h (class win32_process_target): Update.
36
a2b2297a
TBA
372020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
38
39 Turn process_stratum_target's supports_z_point_type op into a
40 method of process_target.
41
42 * target.h (struct process_stratum_target): Remove the target op.
43 (class process_target): Add the target op.
44 * target.cc (process_target::supports_z_point_type): Define.
45
46 Update the derived classes and callers below.
47
48 * mem-break.cc (z_type_supported): Update.
49 * linux-low.cc (linux_target_ops): Update.
50 (linux_supports_z_point_type): Turn into ...
51 (linux_process_target::supports_z_point_type): ... this.
52 * linux-low.h (class linux_process_target): Update.
53 * lynx-low.cc (lynx_target_ops): Update.
54 * nto-low.cc (nto_target_ops): Update.
55 (nto_supports_z_point_type): Turn into ...
56 (nto_process_target::supports_z_point_type): ... this.
57 * nto-low.h (class nto_process_target): Update.
58 * win32-low.cc (win32_target_ops): Update.
59 (win32_supports_z_point_type): Turn into ...
60 (win32_process_target::supports_z_point_type): ... this.
61 * win32-low.h (class win32_process_target): Update.
62
eac215cc
TBA
632020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
64
65 Turn process_stratum_target's read_auxv op into a method of
66 process_target.
67
68 * target.h (class process_stratum_target): Remove the target op.
69 (struct process_target): Add the target op. Also add
70 'supports_read_auxv'.
71 * target.cc (process_target::read_auxv): Define.
72 (process_target::supports_read_auxv): Define.
73
74 Update the derived classes and callers below.
75
76 * server.cc (handle_qxfer_auxv): Update.
77 (handle_query): Update.
78 * linux-low.cc (linux_target_ops): Update.
79 (linux_process_target::supports_read_auxv): Define.
80 (linux_read_auxv): Turn into ...
81 (linux_process_target::read_auxv): ... this.
82 * linux-low.h (class linux_process_target): Update.
83 * lynx-low.cc (lynx_target_ops): Update.
84 * nto-low.cc (nto_target_ops): Update.
85 (nto_process_target::supports_read_auxv): Define.
86 (nto_read_auxv): Turn into ...
87 (nto_process_target::read_auxv): ... this.
88 * nto-low.h (class nto_process_target): Update.
89 * win32-low.cc (win32_target_ops): Update.
90
eb497a2a
TBA
912020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
92
93 Turn process_stratum_target's request_interrupt op into a method of
94 process_target.
95
96 * target.h (struct process_stratum_target): Remove the target op.
97 (class process_target): Add the target op.
98
99 Update the derived classes and callers below.
100
101 * remote-utils.cc (putpkt_binary_1): Update.
102 (input_interrupt): Update.
103 (getpkt): Update.
104 * server.cc (handle_v_requests): Update.
105 * linux-low.cc (linux_target_ops): Update.
106 (linux_request_interrupt): Turn into ...
107 (linux_process_target::request_interrupt): ... this.
108 * linux-low.h (class linux_process_target): Update.
109 * lynx-low.cc (lynx_target_ops): Update.
110 (lynx_request_interrupt): Turn into ...
111 (lynx_process_target::request_interrupt): ... this.
112 * lynx-low.h (class lynx_process_target): Update.
113 * nto-low.cc (nto_target_ops): Update.
114 (nto_request_interrupt): Turn into ...
115 (nto_process_target::request_interrupt): ... this.
116 * nto-low.h (class nto_process_target): Update.
117 * win32-low.cc (win32_target_ops): Update.
118 (win32_request_interrupt): Turn into ...
119 (win32_process_target::request_interrupt): ... this.
120 * win32-low.h (class win32_process_target): Update.
121
2a31c7aa
TBA
1222020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
123
124 Turn process_stratum_target's look_up_symbols op into a method of
125 process_target.
126
127 * target.h (struct process_stratum_target): Remove the target op.
128 (class process_target): Add the target op.
129 * target.cc (process_target::look_up_symbols): Define.
130
131 Update the derived classes and callers below.
132
133 * server.cc (handle_query): Update.
134 * linux-low.cc (linux_target_ops): Update.
135 (linux_look_up_symbols): Turn into ...
136 (linux_process_target::look_up_symbols): ... this.
137 * linux-low.h (class linux_process_target): Update.
138 * lynx-low.cc (lynx_target_ops): Update.
139 * nto-low.cc (nto_target_ops): Update.
140 * win32-low.cc (win32_target_ops): Update.
141
e2558df3
TBA
1422020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
143
144 Turn process_stratum_target's read_memory and write_memory
145 ops into methods of process_target.
146
147 * target.h (struct process_stratum_target): Remove the target ops.
148 (class process_target): Add the target ops.
149
150 Update the derived classes and callers below.
151
152 * linux-aarch32-low.cc (arm_breakpoint_at): Update.
153 * linux-aarch64-low.cc (aarch64_breakpoint_at): Update.
154 * linux-arm-low.cc (arm_sigreturn_next_pc): Update.
155 (arm_get_syscall_trapinfo): Update.
156 * linux-cris-low.cc (cris_breakpoint_at): Update.
157 * linux-crisv32-low.cc (cris_breakpoint_at): Update.
158 * linux-m32r-low.cc (m32r_breakpoint_at): Update.
159 * linux-mips-low.cc (mips_breakpoint_at): Update.
160 * linux-nios2-low.cc (nios2_breakpoint_at): Update.
161 * linux-ppc-low.cc (ppc_breakpoint_at): Update.
162 * linux-sh-low.cc (sh_breakpoint_at): Update.
163 * linux-sparc-low.cc (sparc_fill_gregset_to_stack): Update.
164 (sparc_store_gregset_from_stack): Update.
165 (sparc_breakpoint_at): Update.
166 * linux-tic6x-low.cc (tic6x_breakpoint_at): Update.
167 * linux-tile-low.cc (tile_breakpoint_at): Update.
168 * linux-x86-low.cc (x86_breakpoint_at): Update.
169 * linux-xtensa-low.cc (xtensa_breakpoint_at): Update.
170 * mem-brea.cc (insert_memory_breakpoint): Update.
171 (validate_inserted_breakpoint): Update.
172 * target.cc (read_inferior_memory): Update.
173 (target_write_memory): Update.
174 * linux-low.cc (linux_target_ops): Update.
175 (linux_read_memory): Make a wrapper around the read_memory target
176 op call.
177 (linux_process_target::read_memory): Rename from linux_read_memory.
178 (linux_write_memory): Turn into ...
179 (linux_process_target::write_memory): ... this.
180 * linux-low.h (class linux_process_target): Update.
181 * lynx-low.cc (lynx_target_ops): Update.
182 (lynx_read_memory): Turn into ...
183 (lynx_process_target::read_memory): ... this.
184 (lynx_write_memory): Turn into ...
185 (lynx_process_target::write_memory): ... this.
186 * lynx-low.h (class lynx_process_target): Update.
187 * nto-low.cc (nto_target_ops): Update.
188 (nto_read_memory): Turn into ...
189 (nto_process_target::read_memory): ... this.
190 (nto_write_memory): Turn into ...
191 (nto_process_target::write_memory): ... this.
192 * nto-low.h (class nto_process_target): Update.
193 * win32-low.cc (win32_target_ops): Update.
194 (win32_read_inferior_memory): Turn into ...
195 (win32_process_target::read_memory): ... this.
196 (win32_write_inferior_memory): Turn into ...
197 (win32_process_target::write_memory): ... this.
198 * win32-low.h (class win32_process_target): Update.
199
79b44087
TBA
2002020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
201
202 Turn process_stratum_target's prepare_to_access_memory and
203 done_accessing_memory ops into methods of process_target.
204
205 * target.h (struct process_stratum_target): Remove the target ops.
206 (class process_target): Add the target ops.
207 * target.cc (process_target::prepare_to_access_memory): Define.
208 (process_target::done_accessing_memory): Define.
209 (prepare_to_access_memory): Update.
210 (done_accessing_memory): Update.
211
212 Update the derived classes and callers below.
213
214 * linux-low.cc (linux_target_ops): Update.
215 (linux_prepare_to_access_memory): Turn into ...
216 (linux_process_target::prepare_to_access_memory): ... this.
217 (linux_done_accessing_memory): Turn into ...
218 (linux_process_target::done_accessing_memory): ... this.
219 * linux-low.h (class linux_process_target): Update.
220 * lynx-low.cc (lynx_target_ops): Update.
221 * nto-low.cc (nto_target_ops): Update.
222 * win32-low.cc (win32_target_ops): Update.
223
a5a4d4cd
TBA
2242020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
225
226 Turn process_stratum_target's fetch_registers and store_registers
227 ops into methods of process_target.
228
229 * target.h (struct process_stratum_target): Remove the target ops.
230 (class process_target): Add the target ops.
231 (fetch_inferior_registers): Update the macro.
232 (store_inferior_registers): Update the macro.
233
234 Update the derived classes and callers below.
235
236 * linux-low.cc (linux_target_ops): Update.
237 (linux_fetch_registers): Turn into ...
238 (linux_process_target::fetch_registers): ... this.
239 (linux_store_registers): Turn into ...
240 (linux_process_target::store_registers): ... this.
241 * linux-low.h (class linux_process_target): Update.
242 * lynx-low.cc (lynx_target_ops): Update.
243 (lynx_fetch_registers): Turn into ...
244 (lynx_process_target::fetch_registers): ... this.
245 (lynx_store_registers): Turn into ...
246 (lynx_process_target::store_registers): ... this.
247 * lynx-low.h (class lynx_process_target): Update.
248 * nto-low.cc (nto_target_ops): Update.
249 (nto_fetch_registers): Turn into ...
250 (nto_process_target::fetch_registers): ... this.
251 (nto_store_registers): Turn into ...
252 (nto_process_target::store_registers): ... this.
253 * nto-low.h (class nto_process_target): Update.
254 * win32-low.cc (win32_target_ops): Update.
255 (win32_fetch_inferior_registers): Turn into ...
256 (win32_process_target::fetch_registers): ... this.
257 (win32_store_inferior_registers): Turn into ...
258 (win32_process_target::store_registers): ... this.
259 * win32-low.h (class win32_process_target): Update.
260
6532e7e3
TBA
2612020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
262
263 Turn process_stratum_target's wait op into a method of
264 process_target.
265
266 * target.h (struct process_stratum_target): Remove the target op.
267 (class process_target): Add the target op.
268
269 Update the derived classes and callers below.
270
271 * target.cc (target_wait): Update.
272 * linux-low.cc (linux_target_ops): Update.
273 (linux_wait): Turn into ...
274 (linux_process_target::wait): ... this.
275 * linux-low.h (class linux_process_target): Update.
276 * lynx-low.cc (lynx_target_ops): Update.
277 (lynx_wait): Turn into ...
278 (lynx_process_target::wait): ... this.
279 * lynx-low.h (class lynx_process_target): Update.
280 * nto-low.cc (nto_target_ops): Update.
281 (nto_wait): Turn into ...
282 (nto_process_target::wait): ... this.
283 * nto-low.h (class nto_process_target): Update.
284 * win32-low.cc (win32_target_ops): Update.
285 (win32_wait): Turn into ...
286 (win32_process_target::wait): ... this.
287 (do_initial_child_stuff): Update.
288 * win32-low.h (class win32_process_target): Update.
289
0e4d7e35
TBA
2902020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
291
292 Turn process_stratum_target's resume op into a method of
293 process_target.
294
295 * target.h (struct process_stratum_target): Remove the target op.
296 (class process_target): Add the target op.
297
298 Update the derived classes and callers below.
299
300 * server.cc (resume): Update.
301 * target.cc (target_stop_and_wait): Update.
302 (target_continue_no_signal): Update.
303 (target_continue): Update.
304 * linux-low.cc (linux_target_ops): Update.
305 (linux_resume): Turn into ...
306 (linux_process_target::resume): ... this.
307 * linux-low.h (class linux_process_target): Update.
308 * lynx-low.cc (lynx_target_ops): Update.
309 (lynx_resume): Turn into ...
310 (lynx_process_target::resume): ... this.
311 * lynx-low.h (class lynx_process_target): Update.
312 * nto-low.cc (nto_target_ops): Update.
313 (nto_resume): Turn into ...
314 (nto_process_target::resume): ... this.
315 * nto-low.h (class nto_process_target): Update.
316 * win32-low.cc (win32_target_ops): Update.
317 (win32_resume): Turn into ...
318 (win32_process_target::resume): ... this.
319 (win32_process_target::detach): Update.
320 (do_initial_child_stuff): Update.
321 * win32-low.h (class win32_process_target): Update.
322
13d3d99b
TBA
3232020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
324
325 Turn process_stratum_target's thread_alive op into a method of
326 process_target.
327
328 * target.h (struct process_stratum_target): Remove the target op.
329 (class process_target): Add the target op.
330 (mythread_alive): Update the macro.
331
332 Update the derived classes and callers below.
333
334 * linux-low.cc (linux_target_ops): Update.
335 (linux_thread_alive): Turn into ...
336 (linux_process_target::thread_alive): ... this.
337 (wait_for_sigstop): Update.
338 * linux-low.h (class linux_process_target): Update.
339 * lynx-low.cc (lynx_target_ops): Update.
340 (lynx_thread_alive): Turn into ...
341 (lynx_process_target::thread_alive): ... this.
342 * lynx-low.h (class lynx_process_target): Update.
343 * nto-low.cc (nto_target_ops): Update.
344 (nto_thread_alive): Turn into ...
345 (nto_process_target::thread_alive): ... this.
346 * nto-low.h (class nto_process_target): Update.
347 * win32-low.cc (win32_target_ops): Update.
348 (win32_thread_alive): Turn into ...
349 (win32_process_target::thread_alive): ... this.
350 * win32-low.h (class win32_process_target): Update.
351
95a49a39
TBA
3522020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
353
354 Turn process_stratum_target's join op into a method of
355 process_target.
356
357 * target.h (struct process_stratum_target): Remove the target op.
358 (class process_target): Add the target op.
359 (join_inferior): Update the macro.
360
361 Update the derived classes and callers below.
362
363 * linux-low.cc (linux_target_ops): Update.
364 (linux_join): Turn into ...
365 (linux_process_target::join): ... this.
366 * linux-low.h (class linux_process_target): Update.
367 * lynx-low.cc (lynx_target_ops): Update.
368 (lynx_join): Turn into ...
369 (lynx_process_target::join): ... this.
370 * lynx-low.h (class lynx_process_target): Update.
371 * nto-low.cc (nto_target_ops): Update.
372 (nto_process_target::join): Define.
373 * nto-low.h (class nto_process_target): Update.
374 * win32-low.cc (win32_target_ops): Update.
375 (win32_join): Turn into ...
376 (win32_process_target::join): ... this.
377 * win32-low.h (class win32_process_target): Update.
378
8adb37b9
TBA
3792020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
380
381 Turn process_stratum_target's mourn op into a method of
382 process_target.
383
384 * target.h (struct process_stratum_target): Remove the target op.
385 (class process_target): Add the target op.
386
387 Update the derived classes and callers below.
388
389 * target.cc (target_mourn_inferior): Update.
390 * linux-low.cc (linux_target_ops): Update.
391 (linux_mourn): Turn into ...
392 (linux_process_target::mourn): ... this.
393 (handle_extended_wait): Update.
394 (linux_process_target::kill): Update.
395 (linux_process_target::detach): Update.
396 * linux-low.h (class linux_process_target): Update.
397 * lynx-low.cc (lynx_target_ops): Update.
398 (lynx_mourn): Turn into ...
399 (lynx_process_target::mourn): ... this.
400 * lynx-low.h (class lynx_process_target): Update.
401 * nto-low.cc (nto_target_ops): Update.
402 (nto_mourn): Turn into ...
403 (nto_process_target::mourn): ... this.
404 * nto-low.h (class nto_process_target): Update.
405 * win32-low.cc (win32_target_ops): Update.
406 (win32_mourn): Turn into ...
407 (win32_process_target::mourn): ... this.
408 * win32-low.h (class win32_process_target): Update.
409
9061c9cf
TBA
4102020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
411
412 Turn process_stratum_target's detach op into a method of
413 process_target.
414
415 * target.h (struct process_stratum_target): Remove the target op.
416 (class process_target): Add the target op.
417 (detach_inferior): Update the macro.
418
419 Update the derived classes and callers below.
420
421 * linux-low.cc (linux_target_ops): Update.
422 (linux_detach): Turn into ...
423 (linux_process_target::detach): ... this.
424 * linux-low.h (class linux_process_target): Update.
425 * lynx-low.cc (lynx_target_ops): Update.
426 (lynx_detach): Turn into ...
427 (lynx_process_target::detach): ... this.
428 * lynx-low.h (class lynx_process_target): Update.
429 * nto-low.cc (nto_target_ops): Update.
430 (nto_detach): Turn into ...
431 (nto_process_target::detach): ... this.
432 * nto-low.h (class nto_process_target): Update.
433 * win32-low.cc (win32_target_ops): Update.
434 (win32_detach): Turn into ...
435 (win32_process_target::detach): ... this.
436 * win32-low.h (class win32_process_target): Update.
437
c6885a57
TBA
4382020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
439
440 Turn process_stratum_target's kill op into a method of
441 process_target.
442
443 * target.h (struct process_stratum_target): Remove the target op.
444 (class process_target): Add the target op.
445
446 Update the derived classes and callers below.
447
448 * target.cc (kill_inferior): Update.
449 * linux-low.cc (linux_target_ops): Update.
450 (linux_kill): Turn into ...
451 (linux_process_target::kill): ... this.
452 * linux-low.h (class linux_process_target): Update.
453 * lynx-low.cc (lynx_target_ops): Update.
454 (lynx_kill): Turn into ...
455 (lynx_process_target::kill): ... this.
456 * lynx-low.h (class lynx_process_target): Update.
457 * nto-low.cc (nto_target_ops): Update.
458 (nto_kill): Turn into ...
459 (nto_process_target::kill): ... this.
460 * nto-low.h (class nto_process_target): Update.
461 * win32-low.cc (win32_target_ops): Update.
462 (win32_kill): Turn into ...
463 (win32_process_target::kill): ... this.
464 * win32-low.h (class win32_process_target): Update.
465
ef03dad8
TBA
4662020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
467
468 Turn process_stratum_target's attach op into a method of
469 process_target.
470
471 * target.h (struct process_stratum_target): Remove the target op.
472 (class process_target): Add the target op.
473 (myattach): Update the macro.
474
475 Update the derived classes and callers below.
476
477 * linux-low.cc (linux_target_ops): Update.
478 (linux_attach): Turn into ...
479 (linux_process_target::attach): ... this.
480 * linux-low.h (class linux_process_target): Update.
481 * lynx-low.cc (lynx_target_ops): Update.
482 (lynx_attach): Turn into ...
483 (lynx_process_target::attach): ... this.
484 * lynx-low.h (class lynx_process_target): Update.
485 * nto-low.cc (nto_target_ops): Update.
486 (nto_attach): Turn into ...
487 (nto_process_target::attach): ... this.
488 * nto-low.h (class nto_process_target): Update.
489 * win32-low.cc (win32_target_ops): Update.
490 (win32_attach): Turn into ...
491 (win32_process_target::attach): ... this.
492 * win32-low.h (class win32_process_target): Update.
493
6dee9afb
TBA
4942020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
495
496 Turn process_stratum_target's post_create_inferior op into a method
497 of process_target.
498
499 * target.h (struct process_stratum_target): Remove the target op.
500 (class process_target): Add the target op.
501 (target_post_create_inferior): Update the macro.
502 * target.cc (process_target::post_create_inferior): Define.
503
504 Update the derived classes and callers below.
505
506 * linux-low.cc (linux_target_ops): Update.
507 (linux_post_create_inferior): Turn into ...
508 (linux_process_target::post_create_inferior): ... this.
509 * linux-low.h (class linux_process_target): Update.
510 * lynx-low.cc (lynx_target_ops): Update.
511 * nto-low.cc (nto_target_ops): Update.
512 * win32-low.cc (win32_target_ops): Update.
513
15295543
TBA
5142020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
515
516 Turn process_stratum_target's create_inferior op into a method of
517 process_target.
518
519 * target.h (struct process_stratum_target): Remove the target op.
520 (class process_target): Add the target op.
521 (create_inferior): Rename the macro to ...
522 (target_create_inferior): ... this.
523
524 Update the derived classes and callers below.
525
526 * server.cc (handle_v_run): Update.
527 (captured_main): Update.
528 (process_serial_event): Update.
529 * linux-low.cc (linux_target_ops): Update.
530 (linux_create_inferior): Turn into ...
531 (linux_process_target::create_inferior): ... this.
532 * linux-low.h (class linux_process_target): Update.
533 * lynx-low.cc (lynx_target_ops): Update.
534 (lynx_create_inferior): Turn into ...
535 (lynx_process_target::create_inferior): ... this.
536 * lynx-low.h (class lynx_process_target): Update.
537 * nto-low.cc (nto_target_ops): Update.
538 (nto_create_inferior): Turn into ...
539 (nto_process_target::create_inferior): ... this.
540 * nto-low.h (class nto_process_target): Update.
541 * win32-low.cc (win32_target_ops): Update.
542 (win32_create_inferior): Turn into ...
543 (win32_process_target::create_inferior): ... this.
544 * win32-low.h (class win32_process_target): Update.
545
5ef9273d
TBA
5462020-02-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
547
548 * target.h (class process_target): New class definition.
549 (struct process_stratum_target) <pt>: New field with type
550 'process_target*'.
551 * linux-low.h (class linux_process_target): Define as a derived
552 class of 'process_target'.
553 * linux-low.cc (linux_target_ops): Add a linux_process_target*
554 as the 'pt' field.
555 * lynx-low.h (class lynx_process_target): Define as a derived
556 class of 'process_target'.
557 * lynx-low.cc (lynx_target_ops): Add a lynx_process_target*
558 as the 'pt' field.
559 * nto-low.h (class nto_process_target): Define as a derived
560 class of 'process_target'.
561 * nto-low.cc (nto_target_ops): Add an nto_process_target*
562 as the 'pt' field.
563 * win32-low.h (class win32_process_target): Define as a derived
564 class of 'process_target'.
565 * win32-low.cc (win32_target_ops): Add a win32_process_target*
566 as the 'pt' field.
567
9f1528a1
AB
5682020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
569
570 * configure: Regenerate.
571
bf84f706
MR
5722020-02-19 Maciej W. Rozycki <macro@wdc.com>
573 Andrew Burgess <andrew.burgess@embecosm.com>
574
575 * linux-riscv-low.cc: New file.
576 * Makefile.in (SFILES): Add linux-riscv-low.cc, arch/riscv.c,
577 and nat/riscv-linux-tdesc.c.
578 * configure.srv <riscv*-*-linux*> (srv_tgtobj)
579 (srv_linux_regsets, srv_linux_usrregs, srv_linux_thread_db):
580 Define.
581
1a627e7e
TT
5822020-02-14 Tom Tromey <tom@tromey.com>
583
584 * acinclude.m4: Don't include acx_configure_dir.m4.
585 * Makefile.in (LIBIBERTY_BUILDDIR, GNULIB_BUILDDIR): Update.
586 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): Remove.
587 (all, install-only, uninstall, clean-info, clean)
588 (maintainer-clean): Don't recurse.
589 (subdir_do, all-lib): Remove.
590 ($(LIBGNU) $(LIBIBERTY) $(GNULIB_H)): Remove rule.
591 (GNULIB_H): Remove.
592 (generated_files): Update.
593 ($(GNULIB_BUILDDIR)/Makefile): Remove rule.
594 * configure: Rebuild.
595 * configure.ac: Don't configure gnulib or libiberty.
596 (GNULIB): Update.
597
a9b34532
EZ
5982020-02-14 Eli Zaretskii <eliz@gnu.org>
599
600 * win32-low.c (create_process): Prepend PROGRAM to ARGS when
601 preparing the command line for CreateProcess.
602 (win32_create_inferior): Reflect the program name in debugging
603 output that shows the process and its command line.
604
feacfcac
SM
6052020-02-13 Simon Marchi <simon.marchi@efficios.com>
606
607 * Makefile.in: Rename source files from .c to .cc.
608 * %.c: Rename to %.cc.
609 * configure.ac: Rename server.c to server.cc.
610 * configure: Re-generate.
611
06b3c5bd
SM
6122020-02-13 Simon Marchi <simon.marchi@efficios.com>
613
614 * Makefile.in: Rename gdbsupport source files from .c to .cc.
615
052793ad
HD
6162020-02-12 Hannes Domani <ssbssa@yahoo.de>
617
618 * win32-low.c (win32_create_inferior): Set signal_pid.
619
f20e3e82
MR
6202020-02-12 Maciej W. Rozycki <macro@wdc.com>
621 Pedro Alves <palves@redhat.com>
622
623 Skip building gdbserver in a cross-configuration.
624 * configure.srv: Set $gdbserver_host depending on whether $target
625 is $host. Use $gdbserver_host instead of $host.
626
8ddd8e0e
SM
6272020-02-11 Simon Marchi <simon.marchi@efficios.com>
628
629 * configure: Re-generate.
630
898e7f60
SM
6312020-02-11 Simon Marchi <simon.marchi@efficios.com>
632
633 * configure: Re-generate.
634
58df732b
SM
6352020-02-11 Simon Marchi <simon.marchi@efficios.com>
636
637 * acinclude.m4: Update warning.m4 path.
638
7928d571
HD
6392020-02-09 Hannes Domani <ssbssa@yahoo.de>
640
641 * win32-low.c (win32_clear_inferiors): Reset siginfo_er.
642 (handle_exception): Set siginfo_er.
643 (win32_xfer_siginfo): New function.
644
919adfe8
TT
6452020-02-07 Tom Tromey <tom@tromey.com>
646 Pedro Alves <palves@redhat.com>
647
648 * README: Update build documentation.
649 * configure.srv: Set UNSUPPORTED if host is unsupported. Check
650 host, not target.
651 * configure.ac: Update paths.
652 * configure: Rebuild.
653 * acinclude.m4: Update paths.
654 * Makefile.in: Update include paths.
655 (depcomp, INCLUDE_DIR, INCGNU, INCSUPPORT, INCLUDE_CFLAGS)
656 (SFILES, XML_DIR, n, $(GNULIB_BUILDDIR)/Makefile, config.status)
657 (version-generated.c, stamp-xml, regdat_sh, arch/%-ipa.o)
658 (gdbsupport/%-ipa.o, %-ipa.o, arch/%.o, gdbsupport/%.o, %.o)
659 (%-generated.c): Update paths.
660 * Move entire directory from ../gdb/gdbserver.
661
287c844a
MR
6622020-01-29 Maciej W. Rozycki <macro@wdc.com>
663
664 * configure.srv <i[34567]86-*-mingw*>: Fix whitespace damage.
665
548a204f
PFC
6662020-01-29 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
667
668 * configure.srv (powerpc*-*-linux*): Use srv_tgtobj in second
669 assignment instead of srv_linux_obj.
670
a2236a08
HD
6712020-01-28 Hannes Domani <ssbssa@yahoo.de>
672
673 * server.c (handle_qxfer_libraries): Write segment-address with
674 paddress.
675
bdaed379
HD
6762020-01-24 Hannes Domani <ssbssa@yahoo.de>
677
678 * Makefile.in (install-strip): New target.
679 (install_sh, INSTALL_STRIP_PROGRAM, STRIP): New variables.
680 * aclocal.m4: Regenerate.
681 * configure: Regenerate.
682 * configure.ac: Add AM_PROG_INSTALL_STRIP.
683
42cd72aa
MR
6842020-01-24 Maciej W. Rozycki <macro@wdc.com>
685
686 * Makefile.in (SFILES): Adjust paths to point to real files.
687 (OBS): Move waitstatus.o to target/waitstatus.o.
688 (TAGS): Transform paths appropriately.
689 (%.o): Rename to...
690 (nat/%.o): ... this pattern rule.
691 (%.o): Rename to...
692 (target/%.o): ... this pattern rule.
693 * configure.srv: Adjust paths throughout to include nat/ prefix
694 with the revant files.
695 * configure.ac: Add `nat' and `target' to CONFIG_SRC_SUBDIR.
696 * configure: Regenerate.
697
42ba50ec
MR
6982020-01-24 Maciej W. Rozycki <macro@wdc.com>
699
700 * Makefile.in (TAGS): Remove config files from the recipe.
701
05ea2a05
TT
7022020-01-14 Tom Tromey <tom@tromey.com>
703
704 * configure: Rebuild.
705 * configure.ac: Remove any checks that were added to common.m4.
706 * acinclude.m4: Include lib-ld.m4, lib-prefix.m4, and
707 lib-link.m4.
708
01027315
TT
7092020-01-14 Tom Tromey <tom@tromey.com>
710
711 * server.h: Include config.h.
712 * gdbreplay.c: Include config.h.
713 * configure: Rebuild.
714 * configure.ac: Don't source common.host.
715 * acinclude.m4: Update path.
716 * Makefile.in (INCSUPPORT): New variable.
717 (INCLUDE_CFLAGS): Add INCSUPPORT.
718 (SFILES): Update paths.
719 (version-generated.c): Update path to create-version.sh.
720 (gdbsupport/%-ipa.o, gdbsupport/%.o): Update paths.
721
b2ceabe8
TT
7222020-01-14 Tom Tromey <tom@tromey.com>
723
724 * configure.ac (LIBS): Use WIN32APILIBS.
725 (USE_WIN32API): Don't define.
726 * configure: Rebuild.
727
25c51f71
TT
7282020-01-14 Tom Tromey <tom@tromey.com>
729
730 * configure: Rebuild.
731
c0bd321d
SM
7322020-01-13 Simon Marchi <simon.marchi@efficios.com>
733
734 * Makefile.in (%-generated.c): Remove rule for files from
735 regformats/i386.
736
bb564c58
SM
7372020-01-13 Simon Marchi <simon.marchi@efficios.com>
738
739 * configure: Re-generate.
740
6e37c371
SM
7412020-01-13 Simon Marchi <simon.marchi@efficios.com>
742
743 * tracepoint.h (IP_AGENT_EXPORT_FUNC) [!IN_PROCESS_AGENT]:
744 Define to static.
745 * tracepoint.c (stop_tracing, flush_trace_buffer,
746 about_to_request_buffer_space, get_trace_state_variable_value,
747 set_trace_state_variable_value, gdb_collect): Add declaration.
748
df4a0200
SM
7492020-01-13 Simon Marchi <simon.marchi@efficios.com>
750
751 * linux-x86-low.c (x86_linux_regs_info, amd64_emit_eq_goto,
752 amd64_emit_ne_goto, amd64_emit_lt_goto, amd64_emit_le_goto,
753 amd64_emit_gt_goto, amd64_emit_ge_goto, amd64_emit_ge_goto,
754 i386_emit_eq_goto, i386_emit_ne_goto, i386_emit_lt_goto,
755 i386_emit_le_goto, i386_emit_gt_goto, i386_emit_ge_goto): Make
756 static.
757
89e94ec9
SM
7582020-01-13 Simon Marchi <simon.marchi@efficios.com>
759
760 * inferiors.c: Include gdbsupport/common-inferior.h.
761
2552728a
SM
7622020-01-13 Simon Marchi <simon.marchi@efficios.com>
763
764 * hostio-errno.c: Include hostio.h.
765
4025fa09
SM
7662020-01-13 Simon Marchi <simon.marchi@efficios.com>
767
768 * Makefile.in (%-generated.c): Make $(regdat_sh) a regular
769 prerequisite.
770
c0b0a142
SM
7712020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
772
773 * linux-arm-tdesc.c: Include linux-arm-tdesc.h.
774 * linux-arm-tdesc.h: Include arch/arm.h.
775
bb1183e2
SM
7762020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
777
778 * linux-aarch64-low.c (aarch64_write_goto_address): Make static.
779
f5df0b5f
SM
7802020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
781
782 * linux-aarch32-tdesc.c: Include linux-aarch32-tdesc.h.
783 * linux-aarch64-tdesc.c: Include linux-aarch64-tdesc.h.
784
5b6d1e4f
PA
7852020-01-10 Pedro Alves <palves@redhat.com>
786
787 * fork-child.c (post_fork_inferior): Pass target down to
788 startup_inferior.
789 * inferiors.c (switch_to_thread): Add process_stratum_target
790 parameter.
791 * lynx-low.c (lynx_target_ops): Now a process_stratum_target.
792 * nto-low.c (nto_target_ops): Now a process_stratum_target.
793 * linux-low.c (linux_target_ops): Now a process_stratum_target.
794 * remote-utils.c (prepare_resume_reply): Pass the target to
795 switch_to_thread.
796 * target.c (the_target): Now a process_stratum_target.
797 (done_accessing_memory): Pass the target to switch_to_thread.
798 (set_target_ops): Ajust to use process_stratum_target.
799 * target.h (struct target_ops): Rename to ...
800 (struct process_stratum_target): ... this.
801 (the_target, set_target_ops): Adjust.
802 (prepare_to_access_memory): Adjust comment.
803 * win32-low.c (child_xfer_memory): Adjust to use
804 process_stratum_target.
805 (win32_target_ops): Now a process_stratum_target.
806
559e7e50
EZ
8072020-01-06 Eli Zaretskii <eliz@gnu.org>
808 Pedro Alves <palves@redhat.com>
809
810 * win32-low.c (get_child_debug_event): Extract the fatal exception
811 from the exit status and convert to the equivalent Posix signal
812 number.
813 (win32_wait): Allow TARGET_WAITKIND_SIGNALLED status as well.
814 * Makefile.in (OBS, SFILES): Add gdb_wait.[co].
815
48189bec
HD
8162020-01-01 Hannes Domani <ssbssa@yahoo.de>
817
818 * Makefile.in: Use INSTALL_PROGRAM_ENV.
819
5dd8bf88
JB
8202020-01-01 Joel Brobecker <brobecker@adacore.com>
821
822 * server.c (gdbserver_version): Change copyright year to 2020.
823 * gdbreplay.c (gdbreplay_version): Likewise.
824
0ad6b8ee
CB
8252019-12-19 Christian Biesinger <cbiesinger@google.com>
826
827 * configure: Regenerate.
828 * configure.ac: Quote variable arguments of test.
829
1ee7b812
BE
8302019-12-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
831
832 * Makefile.in: Fix build with GNU Make 3.81
833
d9fa87f4
TT
8342019-12-16 Tom Tromey <tromey@adacore.com>
835
836 * server.c (get_exec_file): Constify result.
837
ab7d13f0
CB
8382019-12-10 Christian Biesinger <cbiesinger@google.com>
839
840 * Makefile.in: Add safe-strerror.c to gdbreplay and IPA, and change
841 UNDO_GNULIB_CFLAGS to undo strerror_r instead of strerror.
842 * config.in: Regenerate.
843 * configure: Regenerate.
844 * configure.ac: Don't check for strerror.
845 * linux-i386-ipa.c (initialize_fast_tracepoint_trampoline_buffer):
846 Call safe_strerror instead of strerror.
847 * server.h (strerror): Remove this now-unnecessary declaration.
848 * tracepoint.c (init_named_socket): Call safe_strerror instead of
849 strerror.
850 (gdb_agent_helper_thread): Likewise.
851 * utils.c (perror_with_name): Likewise.
852
4da8c3a8
TT
8532019-11-26 Tom Tromey <tom@tromey.com>
854
855 * configure, config.in: Rebuild.
856
21987b9c
TT
8572019-11-26 Tom Tromey <tom@tromey.com>
858
859 * remote-utils.c (block_unblock_async_io): Use gdb_sigmask.
860 * linux-low.c (linux_wait_for_event_filtered, linux_async): Use
861 gdb_sigmask.
862 * configure, config.in: Rebuild.
863
5e030278
TT
8642019-11-26 Tom Tromey <tom@tromey.com>
865
866 * Makefile.in (PTHREAD_CFLAGS, PTHREAD_LIBS): New variables.
867 (INTERNAL_CFLAGS_BASE): Use PTHREAD_CFLAGS.
868 (GDBSERVER_LIBS): Use PTHREAD_LIBS.
869 * acinclude.m4: Include ax_pthread.m4.
870 * config.in, configure: Rebuild.
871
6d91ce9a
CB
8722019-11-26 Christian Biesinger <cbiesinger@google.com>
873
874 * debug.c (debug_set_output): Call safe_strerror instead of
875 strerror.
876 * linux-low.c (attach_proc_task_lwp_callback): Likewise.
877 (linux_kill_one_lwp): Likewise.
878 (linux_detach_one_lwp): Likewise.
879 (linux_wait_for_event_filtered): Likewise.
880 (store_register): Likewise.
881 * lynx-low.c (lynx_attach): Likewise.
882 * mem-break.c (insert_memory_breakpoint): Likewise.
883 (remove_memory_breakpoint): Likewise.
884 (delete_fast_tracepoint_jump): Likewise.
885 (set_fast_tracepoint_jump): Likewise.
886 (uninsert_fast_tracepoint_jumps_at): Likewise.
887 (reinsert_fast_tracepoint_jumps_at): Likewise.
888 * nto-low.c (nto_xfer_memory): Likewise.
889 (nto_resume): Likewise.
890
6cdd651f
LM
8912019-11-20 Luis Machado <luis.machado@linaro.org>
892
893 * linux-aarch64-low.c (is_sve_tdesc): Check against target feature
894 instead of register count.
895 * tdesc.c (tdesc_contains_feature): New function.
896 * tdesc.h (tdesc_contains_feature): New prototype.
897
cd850b40
CB
8982019-11-15 Christian Biesinger <cbiesinger@google.com>
899
900 * Makefile.in: Add safe-strerror.c.
901 * configure: Regenerate.
902 * configure.ac: Don't source common.host.
903
5abebf3c
CB
9042019-11-15 Christian Biesinger <cbiesinger@google.com>
905
906 * config.in: Regenerate.
907 * configure: Regenerate.
908
e06f3d6e
AB
9092019-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
910
911 * ax.c (ax_printf): Handle size_t_arg.
912
ca3a04f6
CB
9132019-11-06 Christian Biesinger <cbiesinger@google.com>
914
915 * linux-tdep.c (linux_info_proc): Use strtok_r instead of strtok.
916 * mi/mi-main.c (output_cores): Likewise.
917 * nat/linux-osdata.c (linux_xfer_osdata_cpus): Likewise.
918 (linux_xfer_osdata_modules): Likewise.
919 * remote.c (register_remote_support_xml): Likewise.
920 * sparc64-tdep.c (adi_is_addr_mapped): Likewise.
921 * xml-syscall.c (syscall_create_syscall_desc): Likewise.
922
e48f6033
CB
9232019-11-01 Christian Biesinger <cbiesinger@google.com>
924
925 * configure: Regenerate.
926 * configure.ac: Remove check for strerror_r.
927
e7e97a2e
CB
9282019-10-31 Christian Biesinger <cbiesinger@google.com>
929
930 * config.in: Regenerate.
931 * configure: Regenerate.
932 * configure.ac: Also check for strerror_r.
933
75cafaa6
CB
9342019-10-31 Christian Biesinger <cbiesinger@google.com>
935
936 * ax.h (debug_agent): Remove duplicate declaration.
937
30baf67b
TV
9382019-10-26 Tom de Vries <tdevries@suse.de>
939
940 * linux-aarch64-low.c: Fix typos in comments.
941 * linux-arm-low.c: Same.
942 * linux-low.c: Same.
943 * linux-ppc-low.c: Same.
944 * proc-service.c: Same.
945 * regcache.h: Same.
946 * server.c: Same.
947 * tracepoint.c: Same.
948 * win32-low.c: Same.
949
52c64cf7
TT
9502019-10-25 Tom Tromey <tromey@adacore.com>
951
952 * utils.c (xstrdup): Remove.
953
c12d372d
TT
9542019-10-23 Tom Tromey <tom@tromey.com>
955
956 * configure, config.in: Rebuild.
957
4d0b984b
TT
9582019-10-23 Tom Tromey <tom@tromey.com>
959
960 * configure: Rebuild.
961 * acinclude.m4: Use m4_include, not sinclude.
962
c5adaa19
TT
9632019-10-17 Tom Tromey <tromey@adacore.com>
964
965 * configure: Rebuild.
966 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
967 in AC_CONFIG_FILES invocation.
968 * Makefile.in (stamp-h, Makefile): Use new-style config.status
969 invocation.
970
fec4e896
CB
9712019-10-16 Christian Biesinger <cbiesinger@google.com>
972
973 * server.c: Include xml-builtin.h.
974 (get_xml_features): Don't declare xml_builtins here.
975
00975ff6
AB
9762019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
977
978 * Makefile.in: Remove references to vec-ipa.o.
979
0dc32745
AB
9802019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
981
982 * Makefile.in: Remove references to vec.c.
983
3e6ec53a
CB
9842019-10-02 Christian Biesinger <cbiesinger@google.com>
985
986 * server.c (server_waiting): Change to bool.
987 (extended_protocol): Likewise.
988 (response_needed): Likewise.
989 (exit_requested): Likewise.
990 (run_once): Likewise.
991 (report_no_resumed): Likewise.
992 (non_stop): Likewise.
993 (disable_packet_vCont): Likewise.
994 (disable_packet_Tthread): Likewise.
995 (disable_packet_qC): Likewise.
996 (disable_packet_qfThreadInfo): Likewise.
997 (handle_general_set): Update.
998 (handle_detach): Update.
999 (handle_monitor_command): Update.
1000 (handle_query): Update.
1001 (captured_main): Update.
1002 (process_serial_event): Update.
1003 * server.h (server_waiting): Change to bool.
1004 (disable_packet_vCont): Likewise.
1005 (disable_packet_Tthread): Likewise.
1006 (disable_packet_qC): Likewise.
1007 (disable_packet_qfThreadInfo): Likewise.
1008 (run_once): Likewise.
1009 (non_stop): Likewise.
1010 * target.c (target_stop_and_wait): Update.
1011
80fd2826
TT
10122019-10-02 Tom Tromey <tromey@adacore.com>
1013
1014 * Makefile.in (SFILES): Add common-inferior.c.
1015 (OBS): Add common-inferior.o.
1016 * server.c (startup_with_shell): Don't define.
1017
46f29a9a
AB
10182019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1019
1020 * linux-low.c (linux_low_read_btrace): Update for change to
1021 std::vector.
1022
f9d949fb
CB
10232019-09-20 Christian Biesinger <cbiesinger@google.com>
1024
1025 * debug.c (debug_threads): Remove comment in favor of the header.
1026 * debug.h (using_threads): Add declaration.
1027 (debug_threads): Add comment.
1028 * linux-aarch64-low.c: Include debug.h and remove declaration of
1029 debug_threads.
1030 * nto-low.c: Likewise.
1031 * remote-utils.c: Likewise.
1032 * thread-db.c: Likewise.
1033
abf516c6
UW
10342019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1035
1036 * configure.srv (ipa_ppc_linux_regobj): Remove powerpc-cell32l-ipa.o
1037 and powerpc-cell64l-ipa.o.
1038 (powerpc*-*-linux*): Remove powerpc-cell32l.o and powerpc-cell64l.o
1039 from srv_regobj. Remove rs6000/powerpc-cell32l.xml and
1040 rs6000/powerpc-cell64l.xml from srv_xmlfiles.
1041 (spu*-*-*): Remove.
1042
1043 * spu-low.c: Remove file.
1044
1045 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Remove.
1046 (parse_spufs_run): Remove.
1047 (ppc_get_pc): Remove Cell/B.E. support.
1048 (ppc_set_pc): Likewise.
1049 (ppc_breakpoint_at): Likewise.
1050 (ppc_arch_setup): Likewise.
1051 (ppc_get_ipa_tdesc_idx): Do not handle tdesc_powerpc_cell64l or
1052 tdesc_powerpc_cell32l.
1053 (initialize_low_arch): Do not call init_registers_powerpc_cell64l
1054 or init_registers_powerpc_cell32l.
1055 * linux-ppc-ipa.c (get_ipa_tdesc): Do not handle PPC_TDESC_CELL.
1056 (initialize_low_tracepoint): Do not call init_registers_powerpc_cell64l
1057 or init_registers_powerpc_cell32l.
1058 * linux-ppc-tdesc-init.h (PPC_TDESC_CELL): Mark as unused.
1059 (init_registers_powerpc_cell32l): Remove prototype.
1060 (init_registers_powerpc_cell64l): Likewise.
1061
1062 * target.h (struct target_ops): Remove qxfer_spu member.
1063 * server.c (handle_qxfer_spu): Remove.
1064 (qxfer_packets): Remove entry for "spu".
1065 (handle_query): No longer support qXfer:spu:read or qXfer:spu:write.
1066 * linux-low.c (SPUFS_MAGIC): Remove.
1067 (spu_enumerate_spu_ids): Remove.
1068 (linux_qxfer_spu): Remove.
1069 (linux_target_ops): Remove qxfer_spu member.
1070 * lynx-low.c (lynx_target_ops): Remove qxfer_spu member.
1071 * nto-low.c (nto_target_ops): Remove qxfer_spu member.
1072 * win32-low.c (win32_target_ops): Remove qxfer_spu member.
1073
2d41fa11
SDJ
10742019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
1075
1076 * Makefile.in (SFILES): Add 'gdbsupport/gdb-dlfcn.c'.
1077 (OBS): Add 'gdbsupport/gdb-dlfcn.o'.
1078 * config.in: Regenerate.
1079 * configure: Regenerate.
1080
d59b55f0
TT
10812019-08-15 Tom Tromey <tromey@adacore.com>
1082
1083 * target.c (target_write_memory): Use gdb::byte_vector.
1084
4196ab2a
TT
10852019-08-15 Tom Tromey <tromey@adacore.com>
1086
1087 * tracepoint.c (write_inferior_data_pointer)
1088 (write_inferior_integer, write_inferior_int8)
1089 (write_inferior_uinteger, m_tracepoint_action_download)
1090 (r_tracepoint_action_download, x_tracepoint_action_download)
1091 (l_tracepoint_action_download, clear_inferior_trace_buffer)
1092 (download_agent_expr, download_tracepoint_1)
1093 (download_trace_state_variables, upload_fast_traceframes): Update.
1094 * server.c (gdb_write_memory): Update.
1095 * remote-utils.c (relocate_instruction): Update.
1096 * proc-service.c (ps_pdwrite): Update.
1097 * mem-break.c (remove_memory_breakpoint)
1098 (delete_fast_tracepoint_jump, set_fast_tracepoint_jump)
1099 (uninsert_fast_tracepoint_jumps_at)
1100 (reinsert_fast_tracepoint_jumps_at): Update.
1101 * linux-x86-low.c (append_insns)
1102 (i386_install_fast_tracepoint_jump_pad)
1103 (amd64_write_goto_address, i386_write_goto_address): Update.
1104 * linux-s390-low.c (append_insns, s390_write_goto_address):
1105 Update.
1106 * linux-ppc-low.c (ppc_relocate_instruction)
1107 (ppc_install_fast_tracepoint_jump_pad, emit_insns)
1108 (ppc_write_goto_address): Update.
1109 * linux-aarch64-low.c (append_insns): Update.
1110 * target.h (struct target_ops): Update.
1111 (write_inferior_memory): Don't declare.
1112 * target.c (target_write_memory): Rename from
1113 write_inferior_memory. Remove old target_write_memory.
1114
c6778d00
TT
11152019-08-15 Tom Tromey <tromey@adacore.com>
1116
1117 * target.c (write_inferior_memory): Use std::vector.
1118
404f2902
FCE
11192019-08-06 Frank Ch. Eigler <fche@redhat.com>
1120
1121 PR build/24886
1122 * configure.ac: Drop enable-libmcheck support.
1123 * configure, config.in: Rebuild.
1124 * acinclude.m4: Don't include it.
1125
4c5aa8e0
AH
11262019-07-19 Alan Hayward <alan.hayward@arm.com>
1127
1128 * configure.srv: Remove Arm xml files.
1129
7cc17433
AH
11302019-07-19 Alan Hayward <alan.hayward@arm.com>
1131
1132 * configure.srv: Add new files. Remove xml generated files.
1133 * linux-aarch32-low.c (initialize_low_arch_aarch32): Don't init
1134 registers.
1135 * linux-aarch32-low.h (tdesc_arm_with_neon): Remove.
1136 * linux-aarch32-tdesc.c: New file.
1137 * linux-aarch32-tdesc.h: New file.
1138 * linux-aarch64-low.c (aarch64_arch_setup): Call aarch32_linux_read_description.
1139 * linux-arm-low.c (init_registers_arm, tdesc_arm)
1140 (init_registers_arm_with_iwmmxt, tdesc_arm_with_iwmmxt)
1141 (init_registers_arm_with_vfpv2, tdesc_arm_with_vfpv2)
1142 (init_registers_arm_with_vfpv3, tdesc_arm_with_vfpv3): Remove.
1143 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
1144 (arm_store_vfpregset): Call arm_linux_get_tdesc_fp_type.
1145 (arm_read_description): Call arm_linux_read_description.
1146 (initialize_low_arch): Don't init registers.
1147 * linux-arm-tdesc.c: New file.
1148 * linux-arm-tdesc.h: New file.
1149
166a82be
AH
11502019-07-10 Alan Hayward <alan.hayward@arm.com>
1151
1152 * linux-arm-low.c (arm_fill_wmmxregset, arm_store_wmmxregset):
1153 Move counter inside for.
1154 (arm_read_description): Check ptrace earlier.
1155 (arm_arch_setup): Call arm_linux_init_hwbp_cap here.
1156
268a13a5
TT
11572019-07-09 Tom Tromey <tom@tromey.com>
1158
1159 * configure: Rebuild.
1160 * configure.ac: Change common to gdbsupport.
1161 * acinclude.m4: Change common to gdbsupport.
1162 * Makefile.in (SFILES, OBS, GDBREPLAY_OBS, IPA_OBJS)
1163 (version-generated.c, gdbsupport/%-ipa.o, gdbsupport/%.o): Change
1164 common to gdbsupport.
1165 * ax.c, event-loop.c, fork-child.c, gdb_proc_service.h,
1166 gdbreplay.c, gdbthread.h, hostio-errno.c, hostio.c, i387-fp.c,
1167 inferiors.c, inferiors.h, linux-aarch64-tdesc-selftest.c,
1168 linux-amd64-ipa.c, linux-i386-ipa.c, linux-low.c,
1169 linux-tic6x-low.c, linux-x86-low.c, linux-x86-tdesc-selftest.c,
1170 linux-x86-tdesc.c, lynx-i386-low.c, lynx-low.c, mem-break.h,
1171 nto-x86-low.c, regcache.c, regcache.h, remote-utils.c, server.c,
1172 server.h, spu-low.c, symbol.c, target.h, tdesc.c, tdesc.h,
1173 thread-db.c, tracepoint.c, win32-i386-low.c, win32-low.c: Change
1174 common to gdbsupport.
1175
350fab54
AH
11762019-07-04 Alan Hayward <alan.hayward@arm.com>
1177
1178 * linux-aarch32-low.c (arm_read_description, arm_regsets): Use new
1179 defines.
1180 * linux-arm-low.c (arm_read_description, arm_regsets): Likewise.
1181
2b40fda7
AH
11822019-07-04 Alan Hayward <alan.hayward@arm.com>
1183
1184 * configure.srv: Remove legacy xml.
1185 * linux-aarch64-low.c (initialize_low_arch): Remove
1186 initialize_low_tdesc call.
1187 * linux-aarch64-tdesc-selftest.c: Remove file.
1188 * linux-aarch64-tdesc.h (initialize_low_tdesc): Remove.
1189 * linux-x86-low.c (initialize_low_arch): Remove
1190 initialize_low_tdesc call.
1191 * linux-x86-tdesc-selftest.c: Remove file.
1192 * linux-x86-tdesc.h (initialize_low_tdesc): Remove.
1193
7d10623d
TV
11942019-06-20 Tom de Vries <tdevries@suse.de>
1195
1196 * linux-s390-ipa.c (get_ipa_tdesc)[!__s390x__]: Use
1197 s390_te_linux64_ft_collect_regmap for S390_TDESC_GS.
1198
8d6a48df
TV
11992019-06-19 Tom de Vries <tdevries@suse.de>
1200
1201 * debug.h (debug_write): Change return type to ssize_t.
1202 * debug.c (debug_write): Same.
1203
73cc7272
TT
12042019-06-14 Tom Tromey <tom@tromey.com>
1205
1206 * configure.ac: Use new path to gnulib.
1207 * configure: Rebuild.
1208 * Makefile.in (INCGNU, $(GNULIB_BUILDDIR)/Makefile): Use new path
1209 to gnulib.
1210
08f10e02
TT
12112019-06-11 Tom Tromey <tom@tromey.com>
1212
1213 * Makefile.in (SFILES): Add alloc.c.
1214 (OBS): Add alloc.o.
1215 (IPA_OBJS): Add alloc-ipa.o.
1216 (alloc-ipa.o): New target.
1217 (%.o: ../%.c): New pattern rule.
1218
422186a9
TT
12192019-06-10 Tom Tromey <tromey@adacore.com>
1220
1221 * remote-utils.c (look_up_one_symbol, relocate_instruction): Don't
1222 end warning with a newline.
1223 * linux-s390-low.c (s390_get_wordsize): Don't end warning with a
1224 newline.
1225 * thread-db.c (attach_thread): Don't end warning with a newline.
1226 (thread_db_notice_clone): Likewise.
1227 * tracepoint.c (gdb_agent_helper_thread): Don't end warning with a
1228 newline.
1229 * linux-x86-low.c (x86_get_min_fast_tracepoint_insn_len): Don't
1230 end warning with a newline.
1231
b02f78f9
PA
12322019-06-04 Pedro Alves <palves@redhat.com>
1233
1234 * server.c (captured_main): Use make_unique_xstrdup.
1235
88ed7edb
TT
12362019-06-02 Tom Tromey <tom@tromey.com>
1237
1238 * gdbreplay.c (fromhex): Remove.
1239 * Makefile.in (GDBREPLAY_OBS): Add rsp-low.o.
1240
33a6bc35
TT
12412019-05-29 Tom Tromey <tromey@adacore.com>
1242
1243 * configure: Rebuild.
1244
e90a813d
KB
12452019-05-06 Kevin Buettner <kevinb@redhat.com>
1246
1247 * linux-x86-low.c (x86_fill_gregset): Don't compile 64-bit
1248 sign extension code on 32-bit builds.
1249
353ea2d1
EZ
12502019-05-03 Eli Zaretskii <eliz@gnu.org>
1251
1252 * remote-utils.c:
1253 * gdbreplay.c [USE_WIN32API]: Remove the _WIN32_WINNT override.
1254
b494cdff
TT
12552019-04-19 Tom Tromey <tom@tromey.com>
1256
1257 * server.c (struct vstop_notif): Derive from notif_event.
1258 <base>: Remove.
1259 (queue_stop_reply): Update.
1260 (remove_all_on_match_ptid): Change type. Rewrite.
1261 (discard_queued_stop_replies): Rewrite.
1262 (in_queued_stop_replies_ptid): Change type.
1263 (in_queued_stop_replies): Rewrite.
1264 (notif_stop): Update.
1265 (queue_stop_reply_callback): Update.
1266 (captured_main): Don't call initialize_notif.
1267 (push_stop_notification): Update.
1268 * notif.c (notif_write_event, handle_notif_ack)
1269 (notif_event_enque, notif_push): Update.
1270 (notif_event_xfree, initialize_notif): Remove.
1271 * notif.h (struct notif_event): Include <list>, not
1272 "common/queue.h".
1273 (struct notif_server) <queue>: Now a std::list.
1274 (notif_event_p): Remove typedef.
1275 (initialize_notif): Don't declare.
1276 (struct notif_event): Add virtual destructor.
1277
a7e559cc
AH
12782019-04-17 Alan Hayward <alan.hayward@arm.com>
1279
1280 * ax.c (ax_vdebug): Call debug_printf.
1281 * debug.c (debug_write): New function.
1282 * debug.h (debug_write): New declaration.
1283 * linux-low.c (sigchld_handler): Call debug_write.
1284
aeb2e706
AH
12852019-04-17 Alan Hayward <alan.hayward@arm.com>
1286
1287 * debug.c (debug_set_output): New function.
1288 (debug_vprintf): Send output to debug_file.
1289 (debug_flush): Likewise.
1290 * debug.h (debug_set_output): New declaration.
1291 * server.c (handle_monitor_command): Add debug-file option.
1292 (captured_main): Likewise.
1293
c1bc0935
AH
12942019-04-17 Alan Hayward <alan.hayward@arm.com>
1295
1296 * debug.c (remote_debug): Add definition.
1297 * debug.h (remote_debug): Add declaration.
1298 * hostio.c (remote_debug): Remove declaration.
1299 * remote-utils.c (struct ui_file): Likewise.
1300 (remote_debug): Likewise.
1301 * remote-utils.h (remote_debug): Likewise,
1302 * server.c (remote_debug): Remove definition.
1303
3f52fdbc
KB
13042019-04-10 Kevin Buettner <kevinb@redhat.com>
1305
1306 * linux-x86-low.c (x86_fill_gregset): Sign extend EAX value
1307 when using a 64-bit gdbserver.
1308
b0319eaa
TT
13092019-04-09 Tom Tromey <tromey@adacore.com>
1310
1311 * linux-low.c (select_event_lwp): Use find_thread_in_random.
1312
eedc3f4f
TT
13132019-04-08 Tom Tromey <tom@tromey.com>
1314
1315 * linux-low.c (linux_detach_one_lwp): Replace throw_exception with
1316 throw.
1317 (linux_resume_one_lwp): Likewise.
1318
230d2906
TT
13192019-04-08 Tom Tromey <tom@tromey.com>
1320
1321 * gdbreplay.c: Update.
1322 * linux-low.c: Update.
1323 * server.c: Update.
1324
a70b8144
TT
13252019-04-08 Tom Tromey <tom@tromey.com>
1326
1327 * server.c: Use C++ exception handling.
1328 * linux-low.c: Use C++ exception handling.
1329 * gdbreplay.c: Use C++ exception handling.
1330
3d6e9d23
TT
13312019-04-08 Tom Tromey <tom@tromey.com>
1332
1333 * server.c (handle_btrace_general_set, handle_qxfer_btrace)
1334 (handle_qxfer_btrace_conf, detach_or_kill_for_exit_cleanup)
1335 (captured_main, main): Update.
1336 * gdbreplay.c (main): Update.
1337
0570503d
PFC
13382019-04-05 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1339
1340 * linux-low.c (linux_get_auxv): Remove static. Return auxv entry
1341 value in argument pointer, return 1 if the entry is found and 0
1342 otherwise. Move comment.
1343 (linux_get_hwcap, linux_get_hwcap2): Use modified linux_get_auxv.
1344 * linux-low.h (linux_get_auxv): Declare.
1345 * linux-ppc-low.c (is_elfv2_inferior): Use linux_get_auxv.
1346
227a9e65
TT
13472019-04-05 Tom Tromey <tromey@adacore.com>
1348
1349 * server.c (gdbserver_usage): Use upper-case for metasyntactic
1350 variables.
1351
69f4c9cc
AH
13522019-03-28 Alan Hayward <alan.hayward@arm.com>
1353
1354 * linux-low.c (AT_HWCAP2): Add define if not already included.
1355
974c89e0
AH
13562019-03-26 Alan Hayward <alan.hayward@arm.com>
1357
1358 * linux-aarch64-low.c (aarch64_get_hwcap): Remove function.
1359 (aarch64_arch_setup): Call linux_get_hwcap.
1360 * linux-arm-low.c (arm_get_hwcap): Remove function.
1361 (arm_read_description): Call linux_get_hwcap.
1362 * linux-low.c (linux_get_auxv): New function.
1363 (linux_get_hwcap): Likewise.
1364 (linux_get_hwcap2): Likewise.
1365 * linux-low.h (linux_get_hwcap): New declaration.
1366 (linux_get_hwcap2): Likewise.
1367 * linux-ppc-low.c (ppc_get_auxv): Remove function.
1368 (ppc_arch_setup): Call linux_get_hwcap.
1369 * linux-s390-low.c (s390_get_hwcap): Remove function.
1370 (s390_arch_setup): Call linux_get_hwcap.
1371
1ef53e6b
AH
13722019-03-22 Alan Hayward <alan.hayward@arm.com>
1373 Jiong Wang <jiong.wang@arm.com>
1374
1375 * linux-aarch64-low.c (aarch64_store_pauthregset): New function.
1376 * linux-low.c (regsets_store_inferior_registers): Allow optional reads
1377 to fail.
1378 * linux-low.h (enum regset_type): Add OPTIONAL_REGS.
1379
ee4fbcfa
AH
13802019-03-22 Alan Hayward <alan.hayward@arm.com>
1381 Jiong Wang <jiong.wang@arm.com>
1382
1383 * linux-aarch64-low.c (AARCH64_HWCAP_PACA): New define.
1384 (aarch64_get_hwcap): New function.
1385 (aarch64_arch_setup): Read APIA hwcap.
1386
6dc0ebde
AH
13872019-03-22 Alan Hayward <alan.hayward@arm.com>
1388 Jiong Wang <jiong.wang@arm.com>
1389
1390 * linux-aarch64-ipa.c (get_ipa_tdesc): Add pauth param.
1391 (initialize_low_tracepoint): Likewise.
1392 * linux-aarch64-low.c (aarch64_arch_setup): Likewise.
1393 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Likewise.
1394 * linux-aarch64-tdesc.c (struct target_desc): Likewise.
1395 (aarch64_linux_read_description): Likewise.
1396 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Likewise.
1397
1163a4b7
JB
13982019-03-12 John Baldwin <jhb@FreeBSD.org>
1399
1400 * linux-x86-tdesc.c (i386_linux_read_description): Update call to
1401 i386_create_target_description for 'segments' parameter.
1402 * lynx-i386-low.c (lynx_i386_arch_setup): Likewise.
1403 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
1404 * win32-i386-low.c (i386_arch_setup): Likewise.
1405
d3a70e03
TT
14062019-03-12 Tom Tromey <tromey@adacore.com>
1407
1408 * linux-low.c (iterate_over_lwps): Update.
1409
37991b4f
TT
14102019-03-06 Tom Tromey <tom@tromey.com>
1411
1412 * server.c (detach_or_kill_for_exit_cleanup): Remove parameter.
1413 (captured_main): Use SCOPE_EXIT.
1414
45950eb6
SDJ
14152019-03-04 Sergio Durigan Junior <sergiodj@redhat.com>
1416
1417 * configure.srv: Use '$enable_unittest' instead of '$development'
1418 when checking whether to fill 'srv_regobj' on 'aarch64*-*-linux*'
1419 case.
1420
43ac54fc
TT
14212019-02-27 Tom Tromey <tromey@adacore.com>
1422
1423 * gdbreplay.c (logchar): Handle \r\n.
1424
df0da8a2
AH
14252019-02-07 Alan Hayward <alan.hayward@arm.com>
1426
1427 * linux-low.c (linux_attach): Add process before lwp.
1428 * server.c (attach_inferior): Check if already attached.
1429
1a5c2598
TT
14302019-02-07 Tom Tromey <tom@tromey.com>
1431
1432 * x86-tdesc.h: Rename include guard.
1433 * x86-low.h: Add include guard.
1434 * wincecompat.h: Rename include guard.
1435 * win32-low.h: Add include guard.
1436 * utils.h: Rename include guard.
1437 * tracepoint.h: Rename include guard.
1438 * tdesc.h: Rename include guard.
1439 * target.h: Rename include guard.
1440 * server.h: Rename include guard.
1441 * remote-utils.h: Rename include guard.
1442 * regcache.h: Rename include guard.
1443 * nto-low.h: Rename include guard.
1444 * notif.h: Add include guard.
1445 * mem-break.h: Rename include guard.
1446 * lynx-low.h: Add include guard.
1447 * linux-x86-tdesc.h: Add include guard.
1448 * linux-s390-tdesc.h: Add include guard.
1449 * linux-ppc-tdesc-init.h: Add include guard.
1450 * linux-low.h: Add include guard.
1451 * linux-aarch64-tdesc.h: Add include guard.
1452 * linux-aarch32-low.h: Add include guard.
1453 * inferiors.h: Rename include guard.
1454 * i387-fp.h: Rename include guard.
1455 * hostio.h: Rename include guard.
1456 * gdbthread.h: Rename include guard.
1457 * gdb_proc_service.h: Rename include guard.
1458 * event-loop.h: Rename include guard.
1459 * dll.h: Rename include guard.
1460 * debug.h: Rename include guard.
1461 * ax.h: Rename include guard.
1462
956cc47c
SN
14632018-01-30 Szabolcs Nagy <szabolcs.nagy@arm.com>
1464
1465 PR gdb/23985
1466 * Makefile.in (IPAGENT_CFLAGS): Add UNDO_GNULIB_CFLAGS.
1467 (UNDO_GNULIB_CFLAGS): Undo gnulib replacements.
1468
a0707f3c
TT
14692019-01-25 Tom Tromey <tom@tromey.com>
1470
1471 * Makefile.in (INCLUDE_CFLAGS): Don't add -I for common.
1472
0747795c
TT
14732019-01-25 Tom Tromey <tom@tromey.com>
1474
1475 * win32-low.c: Fix common/ includes.
1476 * win32-i386-low.c: Fix common/ includes.
1477 * tracepoint.c: Fix common/ includes.
1478 * thread-db.c: Fix common/ includes.
1479 * target.h: Fix common/ includes.
1480 * symbol.c: Fix common/ includes.
1481 * spu-low.c: Fix common/ includes.
1482 * server.h: Fix common/ includes.
1483 * server.c: Fix common/ includes.
1484 * remote-utils.c: Fix common/ includes.
1485 * regcache.h: Fix common/ includes.
1486 * regcache.c: Fix common/ includes.
1487 * nto-x86-low.c: Fix common/ includes.
1488 * notif.h: Fix common/ includes.
1489 * mem-break.h: Fix common/ includes.
1490 * lynx-low.c: Fix common/ includes.
1491 * lynx-i386-low.c: Fix common/ includes.
1492 * linux-x86-tdesc-selftest.c: Fix common/ includes.
1493 * linux-x86-low.c: Fix common/ includes.
1494 * linux-low.c: Fix common/ includes.
1495 * inferiors.h: Fix common/ includes.
1496 * i387-fp.c: Fix common/ includes.
1497 * hostio.c: Fix common/ includes.
1498 * hostio-errno.c: Fix common/ includes.
1499 * gdbthread.h: Fix common/ includes.
1500 * gdbreplay.c: Fix common/ includes.
1501 * fork-child.c: Fix common/ includes.
1502 * event-loop.c: Fix common/ includes.
1503 * ax.c:
1504 (enum gdb_agent_op): Fix common/ includes.
1505
be6d4f74
TT
15062019-01-21 Tom Tromey <tom@tromey.com>
1507
1508 * tracepoint.c: Fix includes.
1509 * remote-utils.c: Fix includes.
1510 * linux-x86-low.c: Fix includes.
1511
66d91b39
JB
15122019-01-01 Joel Brobecker <brobecker@adacore.com>
1513
1514 * gdbreplay.c (gdbreplay_version): Update copyright year in
1515 version message.
1516 * server.c (gdbserver_version): Likewise.
1517
754e3168
AH
15182018-12-05 Alan Hayward <alan.hayward@arm.com>
1519
1520 * linux-low.c (add_lwp): Switch ordering.
1521
d105de22
TT
15222018-11-29 Tom Tromey <tom@tromey.com>
1523
1524 * win32-low.c (win32_join): Take pid, not process.
1525 * target.h (struct target_ops) <join>: Change argument type.
1526 (join_inferior): Change argument name.
1527 * spu-low.c (spu_join): Take pid, not process.
1528 * server.c (handle_detach): Preserve pid before destroying
1529 process.
1530 * lynx-low.c (lynx_join): Take pid, not process.
1531 * linux-low.c (linux_join): Take pid, not process.
1532
50138245
AH
15332018-11-23 Alan Hayward <alan.hayward@arm.com>
1534
1535 * linux-aarch64-low.c (aarch64_cannot_store_register): Remove.
1536 (aarch64_cannot_fetch_register): Likewise.
1537 (struct linux_target_ops): Update references.
1538
64f57f3d
PFC
15392018-10-31 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1540
1541 * linux-ppc-low.c: Include nat/linux-ptrace.h.
1542
8d619c01
EBM
15432018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1544
1545 * configure.srv (ipa_ppc_linux_regobj): Add
1546 powerpc-isa207-htm-vsx32l-ipa.o and
1547 powerpc-isa207-htm-vsx64l-ipa.o.
1548 (powerpc*-*-linux*): Add powerpc-isa207-htm-vsx32l.o and
1549 powerpc-isa207-htm-vsx64l.o to srv_regobj. Add
1550 rs6000/power-htm-spr.xml, rs6000/power-htm-core.xml,
1551 rs6000/power64-htm-core.xml, rs6000/power-htm-fpu.xml,
1552 rs6000/power-htm-altivec.xml, rs6000/power-htm-vsx.xml,
1553 rs6000/power-htm-ppr.xml, rs6000/power-htm-dscr.xml,
1554 rs6000/power-htm-tar.xml, rs6000/powerpc-isa207-htm-vsx32l.xml,
1555 and rs6000/powerpc-isa207-htm-vsx64l.xml to srv_xmlfiles.
1556 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1557 <PPC_TDESC_ISA207_HTM_VSX>: New enum value.
1558 (init_registers_powerpc_isa207_htm_vsx32l)
1559 (init_registers_powerpc_isa207_htm_vsx64l): Declare.
1560 * linux-ppc-low.c (ppc_fill_tm_sprregset, ppc_store_tm_sprregset)
1561 (ppc_store_tm_cgprregset, ppc_store_tm_cfprregset)
1562 (ppc_store_tm_cvrregset, ppc_store_tm_cvsxregset)
1563 (ppc_store_tm_cpprregset, ppc_store_tm_cdscrregset)
1564 (ppc_store_tm_ctarregset): New functions.
1565 (ppc_regsets): Add entries for HTM regsets.
1566 (ppc_arch_setup): Set htm in features struct when needed. Set
1567 sizes for the HTM regsets.
1568 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_HTM_VSX.
1569 (initialize_low_arch): Call
1570 init_registers_powerpc_isa207_htm_vsx32l and
1571 init_registers_powerpc_isa207_htm_vsx64l.
1572 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1573 PPC_TDESC_ISA207_HTM_VSX.
1574 (initialize_low_tracepoint): Call
1575 init_registers_powerpc_isa207_htm_vsx32l and
1576 init_registers_powerpc_isa207_htm_vsx64l.
1577
232bfb86
EBM
15782018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1579
1580 * configure.srv (powerpc*-*-linux*): Add rs6000/power-ebb.xml and
1581 rs6000/power-linux-pmu.xml to srv_xmlfiles.
1582 * linux-ppc-low.c (ppc_store_ebbregset, ppc_fill_pmuregset)
1583 (ppc_store_pmuregset): New functions.
1584 (ppc_regsets): Add entries for ebb and pmu regsets.
1585 (ppc_arch_setup): Set isa207 in features struct if the ebb and
1586 pmu regsets are available. Set sizes for these regsets.
1587
f2cf6173
EBM
15882018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1589
1590 * configure.srv (ipa_ppc_linux_regobj): Add
1591 powerpc-isa207-vsx64l-ipa.o and powerpc-isa207-vsx32l-ipa.o.
1592 (powerpc*-*-linux*): Add powerpc-isa207-vsx32l.o and
1593 powerpc-isa207-vsx64l.o to srv_regobj, add rs6000/power-tar.xml,
1594 rs6000/powerpc-isa207-vsx32l.xml, and
1595 rs6000/powerpc-isa207-vsx64l.xml to srv_xmlfiles.
1596 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1597 <PPC_TDESC_ISA207_VSX>: New enum value.
1598 (init_registers_powerpc_isa207_vsx32l): Declare.
1599 (init_registers_powerpc_isa207_vsx64l): Declare.
1600 * linux-ppc-low.c (ppc_fill_tarregset): New function.
1601 (ppc_store_tarregset): New function.
1602 (ppc_regsets): Add entry for the TAR regset.
1603 (ppc_arch_setup): Set isa207 in features struct when needed. Set
1604 size for the TAR regsets.
1605 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA207_VSX.
1606 (initialize_low_arch): Call init_registers_powerpc_isa207_vsx32l
1607 and init_registers_powerpc_isa207_vsx64l.
1608 * linux-ppc-ipa.c (get_ipa_tdesc): Handle PPC_TDESC_ISA207_VSX.
1609 (initialize_low_tracepoint): Call
1610 init_registers_powerpc_isa207_vsx32l and
1611 init_registers_powerpc_isa207_vsx64l.
1612
7ca18ed6
EBM
16132018-10-26 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
1614 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1615
1616 * configure.srv (ipa_ppc_linux_regobj): Add
1617 powerpc-isa205-ppr-dscr-vsx32l-ipa.o and
1618 powerpc-isa205-ppr-dscr-vsx64l-ipa.o.
1619 (powerpc*-*-linux*): Add powerpc-isa205-ppr-dscr-vsx32l.o and
1620 powerpc-isa205-ppr-dscr-vsx64l.o to srv_regobj, add
1621 rs6000/power-dscr.xml, rs6000/power-ppr.xml,
1622 rs6000/powerpc-isa205-ppr-dscr-vsx32l.xml and
1623 rs6000/powerpc-isa205-ppr-dscr-vsx64l.xml to srv_xmlfiles.
1624 * linux-ppc-tdesc-init.h (enum ppc_linux_tdesc)
1625 <PPC_TDESC_ISA205_PPR_DSCR_VSX>: New enum value.
1626 (init_registers_powerpc_isa205_ppr_dscr_vsx32l)
1627 (init_registers_powerpc_isa205_ppr_dscr_vsx64l): Declare.
1628 * linux-ppc-low.c: Include "elf/common.h" and <sys/uio.h>.
1629 (ppc_hwcap): Add comment.
1630 (ppc_hwcap2): New global.
1631 (ppc_check_regset, ppc_fill_pprregset, ppc_store_pprregset)
1632 (ppc_fill_dscrregset, ppc_store_dscrregset): New functions.
1633 (ppc_regsets): Add entries for the DSCR and PPR regsets.
1634 (ppc_arch_setup): Get AT_HWCAP2. Set ppr_dscr in features struct
1635 when needed. Set sizes for the the DSCR and PPR regsets.
1636 (ppc_get_ipa_tdesc_idx): Return PPC_TDESC_ISA205_PPR_DSCR_VSX.
1637 (initialize_low_arch): Call
1638 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1639 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1640 * linux-ppc-ipa.c (get_ipa_tdesc): Handle
1641 PPC_TDESC_ISA205_PPR_DSCR_VSX.
1642 (initialize_low_tracepoint): Call
1643 init_registers_powerpc_isa205_ppr_dscr_vsx32l and
1644 init_registers_powerpc_isa205_ppr_dscr_vsx64l.
1645
5c849b22
PFC
16462018-10-26 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
1647
1648 * linux-ppc-low.c (ppc_fill_vrregset): Remove memset calls.
1649
8ecfd7bd
SDJ
16502018-10-10 Sergio Durigan Junior <sergiodj@redhat.com>
1651 Simon Marchi <simark@simark.ca>
1652
1653 * acinclude.m4: Include "../selftest.m4".
1654 * configure: Regenerate.
1655 * configure.ac: Use "GDB_AC_SELFTEST".
1656 * configure.srv: Use "$enable_unittests" instead of
1657 "$development" when checking whether unit tests have been
1658 enabled.
1659 * server.c (captured_main): Update message informing that
1660 selftests have been disabled.
1661
96643e35
TT
16622018-10-04 Tom Tromey <tom@tromey.com>
1663
1664 * configure: Rebuild.
1665
da4ae14a
TT
16662018-10-04 Tom Tromey <tom@tromey.com>
1667
1668 * server.c (handle_status): Rename inner "thread".
1669 (process_serial_event): Declare "res" in 'm' case.
1670 * linux-low.c (last_thread_of_process_p, find_lwp_pid)
1671 (iterate_over_lwps): Rename inner "thread".
1672 (linux_qxfer_libraries_svr4): Rename inner "len".
1673 * gdbthread.h (find_thread_in_random): Rename inner "thread".
1674
7c619dbd
GB
16752018-10-01 Gary Benson <gbenson@redhat.com>
1676
1677 * gdb_proc_service.h: Moved common code to
1678 common/gdb_proc_service.h.
1679
3795e814
GB
16802018-10-01 Gary Benson <gbenson@redhat.com>
1681
1682 * gdb_proc_service.h: Synchronize comments and whitespace with
1683 GDB's version of this file.
1684
49b036f1
TT
16852018-09-25 Tom Tromey <tom@tromey.com>
1686
1687 * configure: Rebuild.
1688 * configure.ac (WARN_CFLAGS): Don't remove -Wmissing-prototypes.
1689
8ff03f0b
SM
16902018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1691
1692 * Makefile.in (gdbserver$(EXEEXT)): Sort OBS.
1693 (gdbreplay$(EXEEXT)): Sort GDBREPLAY_OBS.
1694 ($(IPA_LIB)): Sort IPA_OBJS.
1695
a1cd91dc
SM
16962018-09-16 Simon Marchi <simon.marchi@polymtl.ca>
1697
1698 * Makefile.in: Remove references to $(ADD_DEPS).
1699
752312ba
TT
17002018-09-16 Tom Tromey <tom@tromey.com>
1701
1702 * remote-utils.c (remote_open): Use GNU style for metasyntactic
1703 variables.
1704 * gdbreplay.c (gdbreplay_usage): Use GNU style for metasyntactic
1705 variables.
1706
f1628857
TT
17072018-09-05 Tom Tromey <tom@tromey.com>
1708
1709 * configure: Rebuild.
1710
ad202fcc
SM
17112018-08-28 Simon Marchi <simon.marchi@polymtl.ca>
1712
1713 PR build/23399
1714 * tracepoint.c (IPA_SYM_STRUCT_NAME): Define.
1715
d3d8724a
TT
17162018-08-27 Tom Tromey <tom@tromey.com>
1717
1718 PR build/23087:
1719 * configure: Rebuild.
1720
b4f183d2
TT
17212018-08-27 Tom Tromey <tom@tromey.com>
1722
1723 * linux-s390-low.c (s390_emit_ext, s390_emit_litpool)
1724 (s390_emit_const, s390_emit_reg, s390_emit_zero_ext)
1725 (s390_emit_stack_adjust, s390_emit_set_r2, s390x_emit_ext)
1726 (s390x_emit_const, s390x_emit_reg, s390x_emit_zero_ext)
1727 (s390x_emit_stack_adjust): Add casts to unsigned char.
1728
4e2aa472
SM
17292018-08-22 Simon Marchi <simon.marchi@ericsson.com>
1730
1731 PR gdb/23374
1732 PR gdb/23375
1733 * server.h (struct client_state) <disable_randomization>:
1734 Initialize to 1.
1735
cf4088a9
SM
17362018-07-22 Simon Marchi <simon.marchi@polymtl.ca>
1737
1738 * linux-mips-low.c (mips_collect_ptrace_register): Remove unused
1739 variable.
1740 (mips_supply_ptrace_register): Likewise.
1741
a0de763e
TT
17422018-07-22 Tom Tromey <tom@tromey.com>
1743
1744 * configure: Rebuild.
1745
b0a7723d
TT
17462018-07-22 Tom Tromey <tom@tromey.com>
1747
1748 * win32-low.c (win32_create_inferior): Remove unused variables.
1749 * gdbreplay.c (remote_open): Remove unused variable.
1750 * remote-utils.c (remote_prepare): Remove unused variable.
1751 * x86-tdesc.h (X86_TDESC_H): Define.
1752 (amd64_expedite_regs): Define conditionally.
1753 (i386_expedite_regs): Mark ATTRIBUTE_UNUSED.
1754 * linux-x86-tdesc.c (i386_tdescs): Move inside #if.
1755 * remote-utils.c (readchar): Remove unused variable.
1756
a780ef4f
PA
17572018-07-13 Pedro Alves <palves@redhat.com>
1758
1759 * linux-low.c (linux_kill): Change parameter to process_info
1760 pointer instead of pid. Adjust.
1761 * lynx-low.c (lynx_kill): Likewise.
1762 * nto-low.c (nto_kill): Likewise.
1763 * spu-low.c (spu_kill): Likewise.
1764 * win32-low.c (win32_kill): Likewise.
1765 * server.c (handle_v_kill, kill_inferior_callback)
1766 (detach_or_kill_for_exit): Adjust.
1767 * target.c (kill_inferior): Change parameter to process_info
1768 pointer instead of pid. Adjust.
1769 * target.h (struct target_ops) <kill>: Change parameter to
1770 process_info pointer instead of pid. Adjust all implementations
1771 and callers.
1772 (kill_inferior): Likewise.
1773
ef2ddb33
PA
17742018-07-13 Pedro Alves <palves@redhat.com>
1775
1776 * linux-low.c (linux_detach, linux_join): Change parameter to
1777 process_info pointer instead of pid. Adjust.
1778 * lynx-low.c (lynx_detach, lynx_join): Likewise.
1779 * nto-low.c (nto_detach): Likewise.
1780 * spu-low.c (spu_detach, spu_join): Likewise.
1781 * win32-low.c (win32_detach, win32_join): Likewise.
1782 * server.c (handle_detach, detach_or_kill_for_exit): Adjust.
1783 * target.h (struct target_ops) <detach, join>: Change parameter to
1784 process_info pointer instead of pid. Adjust all implementations
1785 and callers.
1786 (detach_inferior, join_inferior): Rename 'pid' parameter to
1787 'proc'.
1788
c7ab0aef
SDJ
17892018-07-11 Sergio Durigan Junior <sergiodj@redhat.com>
1790 Jan Kratochvil <jan.kratochvil@redhat.com>
1791 Paul Fertser <fercerpav@gmail.com>
1792 Tsutomu Seki <sekiriki@gmail.com>
1793
1794 * Makefile.in (SFILES): Add '$(srcdir)/common/netstuff.c'.
1795 (OBS): Add 'common/netstuff.o'.
1796 (GDBREPLAY_OBS): Likewise.
1797 * gdbreplay.c: Include 'wspiapi.h' and 'netstuff.h'.
1798 (remote_open): Implement support for IPv6
1799 connections.
1800 * remote-utils.c: Include 'netstuff.h', 'filestuff.h'
1801 and 'wspiapi.h'.
1802 (handle_accept_event): Accept connections from IPv6 sources.
1803 (remote_prepare): Handle IPv6-style hostnames; implement
1804 support for IPv6 connections.
1805 (remote_open): Implement support for printing connections from
1806 IPv6 sources.
1807
31445d10
PA
18082018-07-11 Pedro Alves <palves@redhat.com>
1809
1810 PR gdb/23377
1811 * mem-break.c (any_persistent_commands): Add process_info
1812 parameter and use it instead of relying on the current process.
1813 Change return type to bool.
1814 * mem-break.h (any_persistent_commands): Add process_info
1815 parameter and change return type to bool.
1816 * server.c (handle_detach): Remove require_running_or_return call.
1817 Look up the process_info for the process we're about to detach.
1818 If not found, return back error to GDB. Adjust
1819 any_persistent_commands call to pass down a process pointer.
1820
cb197132
PA
18212018-07-11 Pedro Alves <palves@redhat.com>
1822
1823 * i387-fp.c (i387_cache_to_fsave, cache_to_fxsave)
1824 (i387_cache_to_xsave): Use regcache_raw_get_unsigned_by_name
1825 instead of collect_register_by_name.
1826 * regcache.c (regcache_raw_get_unsigned_by_name): New.
1827 * regcache.h (regcache_raw_get_unsigned_by_name): New.
1828
1b919490
VB
18292018-07-04 Vyacheslav Barinov <v.barinov@samsung.com>
1830 Pedro Alves <palves@redhat.com>
1831
1832 * linux-low.c (initialize_low): Call linux_proc_init_warnings.
1833
d7e15655
TT
18342018-07-03 Tom Tromey <tom@tromey.com>
1835
1836 * linux-low.c: Update.
1837 * lynx-low.c: Update.
1838 * mem-break.c: Update.
1839 * nto-low.c: Update.
1840 * remote-utils.c: Update.
1841 * server.c: Update.
1842 * spu-low.c: Update.
1843 * target.c: Update.
1844 * win32-low.c: Update.
1845
26a57c92
TT
18462018-07-03 Tom Tromey <tom@tromey.com>
1847
1848 * server.c: Update.
1849
0e998d96
TT
18502018-07-03 Tom Tromey <tom@tromey.com>
1851
1852 * linux-low.c: Update.
1853
cc6bcb54
TT
18542018-07-03 Tom Tromey <tom@tromey.com>
1855
1856 * target.c: Update.
1857
e38504b3
TT
18582018-07-03 Tom Tromey <tom@tromey.com>
1859
1860 * linux-low.c: Update.
1861 * linux-mips-low.c: Update.
1862 * lynx-low.c: Update.
1863 * nto-low.c: Update.
1864 * remote-utils.c: Update.
1865 * server.c: Update.
1866 * spu-low.c: Update.
1867 * target.c: Update.
1868 * thread-db.c: Update.
1869
e99b03dc
TT
18702018-07-03 Tom Tromey <tom@tromey.com>
1871
1872 * linux-low.c: Update.
1873 * linux-mips-low.c: Update.
1874 * lynx-low.c: Update.
1875 * mem-break.c: Update.
1876 * nto-low.c: Update.
1877 * remote-utils.c: Update.
1878 * server.c: Update.
1879 * spu-low.c: Update.
1880 * target.c: Update.
1881 * tracepoint.c: Update.
1882
f2907e49
TT
18832018-07-03 Tom Tromey <tom@tromey.com>
1884
1885 * linux-low.c: Update.
1886 * linux-ppc-low.c: Update.
1887 * linux-x86-low.c: Update.
1888 * proc-service.c: Update.
1889 * server.c: Update.
1890 * spu-low.c: Update.
1891 * thread-db.c: Update.
1892 * win32-low.c: Update.
1893
fd79271b
TT
18942018-07-03 Tom Tromey <tom@tromey.com>
1895
1896 * linux-low.c: Update.
1897 * lynx-low.c: Update.
1898 * nto-low.c: Update.
1899 * remote-utils.c: Update.
1900 * spu-low.c: Update.
1901 * thread-db.c: Update.
1902 * win32-low.c: Update.
1903
c0867626
SDJ
19042018-06-29 Joel Brobecker <brobecker@adacore.com>
1905
1906 * linux-x86-tdesc.c (amd64_linux_read_description): Add missing
1907 parameter in call to 'amd64_create_target_description'.
1908
2512d7ef
JK
19092018-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1910
1911 * x86-tdesc.h: Remove executable permission flag.
1912
d0ac1c44
SM
19132018-06-19 Simon Marchi <simon.marchi@ericsson.com>
1914
1915 * configure.ac: Remove AC_PREREQ, add missing quoting.
1916 * configure: Re-generate.
1917 * config.in: Re-generate.
1918 * aclocal.m4: Re-generate.
1919
c4eb05ff
SM
19202018-06-18 Simon Marchi <simon.marchi@ericsson.com>
1921
1922 * tracepoint.h (current_traceframe): Remove declaration.
1923
02895270
AH
19242018-06-18 Alan Hayward <alan.hayward@arm.com>
1925
1926 * linux-aarch64-low.c (is_sve_tdesc): New function.
1927 (aarch64_sve_regs_copy_to_regcache): Likewise.
1928 (aarch64_sve_regs_copy_from_regcache): Likewise.
1929 (aarch64_regs_info): Add SVE checks.
1930 (initialize_low_arch): Initialize SVE.
1931
e9902bfc
AH
19322018-06-18 Alan Hayward <alan.hayward@arm.com>
1933
1934 * Makefile.in: Add aarch64-sve-linux-ptrace.c.
1935
fefa175e
AH
19362018-06-11 Alan Hayward <alan.hayward@arm.com>
1937
1938 * linux-aarch64-ipa.c (get_ipa_tdesc): Add null VQ param.
1939 (initialize_low_tracepoint): Likewise
1940 * linux-aarch64-low.c (aarch64_arch_setup): Get VQ.
1941 * linux-aarch64-tdesc-selftest.c (aarch64_tdesc_test): Add null VQ
1942 param.
1943 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add VQ
1944 checks.
1945 * linux-aarch64-tdesc.h (aarch64_linux_read_description): Add VQ.
1946
b91ad3ff
AH
19472018-06-11 Alan Hayward <alan.hayward@arm.com>
1948
1949 * server.h (PBUFSIZ): Increase size
1950
f868386e
AH
19512018-06-11 Alan Hayward <alan.hayward@arm.com>
1952
1953 * regcache.c (regcache::raw_compare): New function.
1954 * regcache.h (regcache::raw_compare): New declaration.
1955
9c861883
AH
19562018-06-11 Alan Hayward <alan.hayward@arm.com>
1957
1958 * regcache.c (new_register_cache): Use new.
1959 (free_register_cache): Use delete.
1960 (register_data): Use const.
1961 (supply_register): Move body inside regcache.
1962 (regcache::raw_supply): New override function.
1963 (collect_register): Move body inside regcache.
1964 (regcache::raw_collect): New override function.
1965 (regcache::get_register_status): New override function.
1966 * regcache.h (struct regcache): Inherit from reg_buffer_common.
1967
40591844
TT
19682018-06-09 Tom Tromey <tom@tromey.com>
1969
1970 * event-loop.c (gdb_event, gdb_event_p): Remove typedefs. Don't
1971 declare queue.
1972 (event_queue): Use std::queue.
1973 (gdb_event_xfree): Remove.
1974 (initialize_event_loop, process_event, wait_for_event): Update.
1975
6341380d
SC
19762018-06-08 Stan Cox <scox@redhat.com>
1977
1978 * win32-low.c (win32_create_inferior): last_ptid and last_status
1979 moved to client_state.
1980
03349c93
PA
19812018-06-08 Pedro Alves <palves@redhat.com>
1982
1983 * Makefile.in (GDBREPLAY_OBS): Add common/cleanups.o,
1984 common/common-exceptions.o, common/common-utils.o,
1985 common/errors.o, common/print-utils.o and utils.o.
1986 * gdbreplay.c: Include "common-defs.h" instead of the two
1987 'config.h's here. Don't include stdio.h, errno.h, stdlib.h,
1988 string.h or alloca.h.
1989 (perror_with_name): Delete.
1990 (remote_open): Use xstrdup instead of strdup.
1991 (main): Rename to ...
1992 (captured_main): ... this.
1993 (main): New.
1994
8dcc53b3
TT
19952018-06-08 Tom Tromey <tom@tromey.com>
1996
1997 * linux-low.c (linux_low_read_btrace): Update.
1998
c12a5089
SC
19992018-06-04 Stan Cox <scox@redhat.com>
2000
2001 * server.h (struct client_state): New.
2002 * server.c (cont_thread, general_thread, multi_process)
2003 (report_fork_events, report_vfork_events, report_exec_events)
2004 (report_thread_events, swbreak_feature, hwbreak_feature)
2005 (vCont_supported, disable_randomization, pass_signals)
2006 (program_signals, program_signals_p, last_status, last_ptid, own_buf):
2007 Moved to client_state.
2008 * remote-utils.c (remote_debug, noack_mode)
2009 (transport_is_reliable): Moved to client_state.
2010 * tracepoint.c (current_traceframe): Moved to client_state.
2011
2012 Update all callers.
2013 * server.c, remote-utils.c, tracepoint.c, fork-child.c,
2014 linux-low.c, remote-utils.h, target.c: Use client_state.
2015
122394f1
AH
20162018-05-31 Alan Hayward <alan.hayward@arm.com>
2017
2018 * configure.srv: Add new c/h file.
2019
95228a0d
AH
20202018-05-31 Alan Hayward <alan.hayward@arm.com>
2021
2022 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add
2023 null VQ.
2024
d8dab6c3
MR
20252018-05-25 Maciej W. Rozycki <macro@mips.com>
2026
2027 * gdb.arch/mips-fpregset-core.exp: New test.
2028 * gdb.arch/mips-fpregset-core.c: New test source.
2029
81e25b7c
EK
20302018-05-23 Erik Kurzinger <ekurzinger@nvidia.com>
2031
2032 PR server/23198
2033 * hostio.c (require_int): Do not report overflow for integers
2034 between 0xfffffff and 0x7fffffff.
2035
7e947ad3
MR
20362018-05-22 Maciej W. Rozycki <macro@mips.com>
2037
2038 * linux-mips-low.c [HAVE_PTRACE_GETREGS] (mips_collect_register)
2039 (mips_supply_register): Move outside HAVE_PTRACE_GETREGS.
2040 (mips_collect_ptrace_register, mips_supply_ptrace_register): New
2041 functions.
2042 (the_low_target): Wire them.
2043
1d75a658
PFC
20442018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2045
2046 * linux-ppc-low.c (ppc_fill_vrregset): Add vscr_offset variable.
2047 Set vscr_offset to 0 in little-endian mode and 12 in big-endian
2048 mode. Call collect_register_by_name with vscr using
2049 vscr_offset. Zero-pad vscr and vrsave fields in collector buffer.
2050 (ppc_store_vrregset): Add and set vscr_offset variable as in
2051 ppc_fill_vrregset. Call supply_register_by_name with vscr using
2052 vscr_offset.
2053
d078308a
PFC
20542018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2055
2056 * linux-ppc-low.c (SIZEOF_VSXREGS, SIZEOF_VRREGS): Remove.
2057 (ppc_arch_setup): Change SIZEOF_VRREGS and SIZEOF_VSXREGS to
2058 PPC_LINUX_SIZEOF_VRREGSET and PPC_LINUX_SIZEOF_VSXREGSET.
2059
7273b5fc
PFC
20602018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2061
2062 * linux-ppc-low.c (ppc_fill_vsxregset): Remove ppc_hwcap check.
2063 (ppc_store_vsxregset): Likewise.
2064 (ppc_fill_vrregset): Likewise.
2065 (ppc_store_vrregset): Likewise.
2066 (ppc_fill_evrregset): Likewise.
2067 (ppc_store_evrregset): Likewise.
2068 (ppc_regsets): Set VSX/VR/EVR regset sizes to 0.
2069 (ppc_arch_setup): Iterate through ppc_regsets and set sizes when
2070 needed.
2071
2e077f5e
PFC
20722018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2073
2074 * linux-ppc-low.c (ppc_arch_setup): Remove code for getting the
2075 wordsize of the inferior. Call ppc_linux_target_wordsize.
2076
bd64614e
PFC
20772018-05-22 Pedro Franco de Carvalho <pedromfc@linux.vnet.ibm.com>
2078
2079 * configure.srv (srv_tgtobj): Add arch/ppc-linux-common.o.
2080 * Makefile.in (SFILES): Add arch/ppc-linux-common.c.
2081 * linux-ppc-tdesc.h: Rename to linux-ppc-tdesc-init.h.
2082 * linux-ppc-tdesc-init.h (tdesc_powerpc_32l, tdesc_powerpc_64l)
2083 (tdesc_powerpc_altivec32l, tdesc_powerpc_altivec64l)
2084 (tdesc_powerpc_cell32l, tdesc_powerpc_cell64l)
2085 (tdesc_powerpc_vsx32l, tdesc_powerpc_vsx64l)
2086 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_64l)
2087 (tdesc_powerpc_isa205_altivec32l, tdesc_powerpc_isa205_altivec64l)
2088 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_isa205_vsx64l)
2089 (tdesc_powerpc_e500l): Remove.
2090 * linux-ppc-ipa.c: Include arch/ppc-linux-tdesc.h and
2091 linux-ppc-tdesc-init.h. Don't include linux-ppc-tdesc.h.
2092 * linux-ppc-low.c: Include arch/ppc-linux-common.h,
2093 arch/ppc-linux-tdesc.h, and linux-ppc-tdesc-init.h. Don't include
2094 linux-ppc-tdesc.h.
2095 (ppc_arch_setup): Remove target description matching code. Fill a
2096 ppc_linux_features struct and call ppc_linux_match_description
2097 with it.
2098
75d74cca
MR
20992018-05-22 Maciej W. Rozycki <macro@mips.com>
2100
2101 * linux-mips-low.c (mips_cannot_fetch_register): Return 1 if the
2102 width of the requested register exceeds the width of the
2103 `ptrace' data type.
2104 (mips_cannot_store_register): Likewise.
2105
e4439e43
MR
21062018-05-21 Maciej W. Rozycki <macro@mips.com>
2107
2108 * linux-mips-low.c (mips_fetch_register): New function. Update
2109 preceding comment.
2110 (mips_store_gregset): Supply 0 rather than $restart for $zero.
2111 (the_low_target): Wire `mips_fetch_register'.
2112
55271bf9
JB
21132018-05-10 Joel Brobecker <brobecker@adacore.com>
2114
2115 * lynx-i386-low.c (LYNXOS_178): New macro.
2116 [LYNXOS_178] (usr_fcontext_t): Provide a definition that matches
2117 the layout on LynxOS-178.
2118 (lynx_i386_fill_fpregset, lynx_i386_store_fpregset): Do not
2119 handle floating point registers that are not supported by
2120 LynxOS-178.
2121
1a34f210
TT
21222018-05-10 Tom Tromey <tom@tromey.com>
2123
2124 * configure: Rebuild.
2125
190852c8
JB
21262018-05-10 Joel Brobecker <brobecker@adacore.com>
2127
2128 PR server/23158:
2129 * tdesc.h (init_target_desc) <expedite_regs>: New parameter.
2130 * tdesc.c (init_target_desc) <expedite_regs>: New parameter.
2131 Use it to set the expedite_regs field in the given tdesc.
2132 * x86-tdesc.h: New file.
2133 * linux-aarch64-tdesc.c (aarch64_linux_read_description):
2134 Adjust following the addition of the new expedite_regs parameter
2135 to init_target_desc.
2136 * linux-tic6x-low.c (tic6x_read_description): Likewise.
2137 * linux-x86-tdesc.c: #include "x86-tdesc.h".
2138 (i386_linux_read_description, amd64_linux_read_description):
2139 Adjust following the addition of the new expedite_regs parameter
2140 to init_target_desc.
2141 * lynx-i386-low.c: #include "x86-tdesc.h".
2142 (lynx_i386_arch_setup): Adjust following the addition of the new
2143 expedite_regs parameter to init_target_desc.
2144 * nto-x86-low.c: #include "x86-tdesc.h".
2145 (nto_x86_arch_setup): Adjust following the addition of the new
2146 expedite_regs parameter to init_target_desc.
2147 * win32-i386-low.c: #include "x86-tdesc.h".
2148 (i386_arch_setup): Adjust following the addition of the new
2149 expedite_regs parameter to init_target_desc.
2150
7dbac825
JB
21512018-05-10 Joel Brobecker <brobecker@adacore.com>
2152
2153 PR server/23158:
2154 * win32-low.c (win32_create_inferior): Add call to my_wait
2155 setting last_status global.
2156
906994d9
JB
21572018-05-10 Joel Brobecker <brobecker@adacore.com>
2158
2159 PR server/23158:
2160 * win32-low.c (create_process): Only call gdb_tilde_expand if
2161 inferior_cwd is not NULL.
2162
8ee22052
AB
21632018-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
2164
2165 * i387-fp.c (i387_cache_to_xsave): Only write x87 control
2166 registers to the cache if their values have changed.
2167 (i387_xsave_to_cache): Provide default values for x87 control
2168 registers when these features are available, but disabled.
2169 * regcache.c (supply_register_by_name_zeroed): New function.
2170 * regcache.h (supply_register_by_name_zeroed): Declare new
2171 function.
2172
aff689d3
TT
21732018-05-07 Tom Tromey <tom@tromey.com>
2174
2175 * configure: Rebuild.
2176
85e26832
TT
21772018-05-04 Tom Tromey <tom@tromey.com>
2178
2179 * configure: Rebuild.
2180
a3b60e45
JK
21812018-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2182 Pedro Alves <palves@redhat.com>
2183
2184 * linux-aarch64-low.c (aarch64_stopped_data_address):
2185 Likewise.
2186
632e107b
TT
21872018-04-27 Tom Tromey <tom@tromey.com>
2188
2189 * configure: Rebuild.
2190
458412c3
TT
21912018-04-23 Tom Tromey <tom@tromey.com>
2192
2193 * configure: Rebuild.
2194
f31c089e
SM
21952018-04-19 Simon Marchi <simon.marchi@ericsson.com>
2196
2197 * Makefile.in (depcomp): Add "..".
2198 (all_deps_files): New and use it.
2199
b319b098
AH
22002018-04-18 Alan Hayward <alan.hayward@arm.com>
2201
2202 * configure.srv (aarch64*-*-linux*): Don't include xml.
2203 (i[34567]86-*-cygwin*): Likewise.
2204 (i[34567]86-*-linux*): Likewise.
2205 (i[34567]86-*-lynxos*): Likewise.
2206 (i[34567]86-*-mingw32ce*): Likewise.
2207 (i[34567]86-*-mingw*): Likewise.
2208 (i[34567]86-*-nto*): Likewise.
2209 (tic6x-*-uclinux): Likewise.
2210 (x86_64-*-linux*): Likewise.
2211 (x86_64-*-mingw*): Likewise.
2212 (x86_64-*-cygwin*): Likewise.
2213
3b74854b
AH
22142018-04-18 Alan Hayward <alan.hayward@arm.com>
2215
2216 * tdesc.c: Remove xml parameter.
2217
e98577a9
AH
22182018-04-18 Alan Hayward <alan.hayward@arm.com>
2219
2220 * server.c (get_features_xml): Remove cast.
2221 * tdesc.c (void target_desc::accept): Fill in function.
2222 (tdesc_get_features_xml): Remove old xml creation.
2223 (print_xml_feature::visit_pre): Add xml vistor.
2224 * tdesc.h (struct target_desc): Make xmltarget mutable.
2225 (tdesc_get_features_xml): Remove declaration.
2226
d278f585
AH
22272018-04-18 Alan Hayward <alan.hayward@arm.com>
2228
2229 * tdesc.c (tdesc_architecture_name): Add new function.
2230 (tdesc_osabi_name): Likewise.
2231 (tdesc_get_features_xml): Use new functions.
2232
eee8a18d
AH
22332018-04-18 Alan Hayward <alan.hayward@arm.com>
2234
2235 * tdesc.c (tdesc_create_flags): Remove.
2236 (tdesc_add_flag): Likewise.
2237 (tdesc_named_type): Likewise.
2238 (tdesc_create_union): Likewise.
2239 (tdesc_create_struct): Likewise.
2240 (tdesc_create_vector): Likewise.
2241 (tdesc_add_bitfield): Likewise.
2242 (tdesc_add_field): Likewise.
2243 (tdesc_set_struct_size): Likewise.
2244
82ec9bc7
AH
22452018-04-18 Alan Hayward <alan.hayward@arm.com>
2246
2247 * tdesc.c (~target_desc): Remove implictly deleted items.
2248 (init_target_desc): Iterate all features.
2249 (tdesc_get_features_xml): Use vector.
2250 (tdesc_create_feature): Create feature.
2251 * tdesc.h (tdesc_feature) Remove
2252 (target_desc): Add features.
2253
ea3e7d71
AH
22542018-04-18 Alan Hayward <alan.hayward@arm.com>
2255
2256 * Makefile.in: Add common/tdesc.c
2257 * tdesc.c (init_target_desc): init all reg_defs from register
2258 vector.
2259 (tdesc_create_reg): Create tdesc_reg.
2260 * tdesc.h (tdesc_feature): Add register vector.
2261
17d08cd4
SM
22622018-03-30 Simon Marchi <simon.marchi@polymtl.ca>
2263
2264 * tdesc.h (struct target_desc) <features>: Change type to
2265 std::vector<std::string>.
2266 * tdesc.c (target_desc::~target_desc): Adjust to std::vector
2267 changes.
2268 (tdesc_get_features_xml): Likewise.
2269 (tdesc_create_feature): Likewise.
2270
5cd3e386
AH
22712018-03-26 Alan Hayward <alan.hayward@arm.com>
2272
2273 * regcache.c (find_register_by_number): Return a ref.
2274 (find_regno): Use references.
2275 (register_size): Likewise.
2276 (register_data): Likewise.
2277 * tdesc.c (target_desc::~target_desc): Remove free calls.
2278 (target_desc::operator==): Use std::vector compare.
2279 (init_target_desc): Use reference.
2280 (tdesc_create_reg): Use reg constructors.
2281 * tdesc.h (struct target_desc): Replace pointer with object.
2282
dff7492c
AH
22832018-03-23 Alan Hayward <alan.hayward@arm.com>
2284
2285 * regcache.c (find_register_by_number): Make static.
2286 (find_regno): Use find_register_by_number
2287 * regcache.h (struct reg): Remove declaration.
2288
d80e5242
AH
22892018-03-23 Alan Hayward <alan.hayward@arm.com>
2290
2291 * tdesc.c (target_desc::~target_desc): Move to here.
2292 (target_desc::operator==): Likewise.
2293 * tdesc.h (target_desc::~target_desc): Move from here.
2294 (target_desc::operator==): Likewise.
2295
f69c5afb
AA
22962018-03-22 Andreas Arnez <arnez@linux.vnet.ibm.com>
2297
2298 * linux-s390-low.c (s390_get_wordsize): Correct brace style.
2299
ce29f843
AA
23002018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2301
2302 * linux-s390-ipa.c (get_ipa_tdesc): Add handling for
2303 S390_TDESC_GS.
2304 * linux-s390-low.c (s390_get_ipa_tdesc_idx): Likewise.
2305 (initialize_low_tracepoint): Call init_registers_s390x_gs_linux64
2306 and init_registers_s390_gs_linux64.
2307
c49bd90b
AA
23082018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2309
2310 * linux-s390-low.c (s390_fill_gs): Remove function.
2311 (s390_fill_gsbc): Remove function.
2312 (s390_regsets): Set fill functions for the guarded storage regsets
2313 to NULL.
2314
7edb9bd3
AA
23152018-03-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
2316
2317 * linux-s390-low.c (s390_get_hwcap): Replace tdesc parameter by
2318 the word size. Add comment.
2319 (s390_get_wordsize): New function.
2320 (s390_arch_setup): No longer select a temporary tdesc to fetch the
2321 pswm with it. Instead, use s390_get_wordsize to determine the
2322 word size first and derive the correct tdesc from that directly.
2323
39be3c7e
SM
23242018-03-16 Simon Marchi <simon.marchi@polymtl.ca>
2325
2326 * Makefile.in: Include silent-rules.mk.
2327 (srcdir, abs_top_srcdir, abs_srcdir, VPATH): Move up.
2328 (COMPILE): Add ECHO_CXX.
2329 (gdbserver$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2330 (gdbreplay$(EXEEXT)): Add SILENCE and ECHO_CXXLD.
2331 ($(IPA_LIB)): Add SILENCE and ECHO_CXXLD.
2332 (version-generated.c): Add ECHO_GEN.
2333 (stamp-xml): Add SILENCE and ECHO_GEN_XML_BUILTIN_GENERATED.
2334 (IPAGENT_COMPILE): Add ECHO_CXX.
2335 (%-generated.c): Add ECHO_REGDAT.
2336
3ae9ce5d
TT
23372018-03-14 Tom Tromey <tom@tromey.com>
2338
2339 PR cli/14977:
2340 * ax.c (ax_printf): Special case for NULL.
2341
e6a58aa8
SM
23422018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2343
2344 * linux-low.c (linux_qxfer_libraries_svr4): Use
2345 xml_escape_text_append.
2346
f6e8a41e
SM
23472018-03-08 Simon Marchi <simon.marchi@polymtl.ca>
2348
2349 * linux-low.c (linux_qxfer_libraries_svr4): Use std::string.
2350
b9671caf
SM
23512018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2352
2353 * server.c (handle_general_set): Remove unnecessary xstrdup.
2354
e80aaf61
SM
23552018-03-02 Simon Marchi <simon.marchi@polymtl.ca>
2356
2357 * server.c (parse_debug_format_options): Adjust to
2358 delim_string_to_char_ptr_vec changes.
2359 * thread-db.c (thread_db_load_search): Adjust to
2360 dirnames_to_char_ptr_vec changes.
2361
b1223e78
MM
23622018-03-01 Markus Metzger <markus.t.metzger@intel.com>
2363
2364 * target.h (target_enable_btrace, target_disable_btrace)
2365 (target_read_btrace, target_read_btrace_conf): Turn macro into
2366 inline function. Throw error if target method is not defined.
2367 * server.c (handle_qxfer_btrace handle_qxfer_btrace_conf): Remove
2368 check for btrace target method. Be prepared to handle exceptions
2369 from btrace target methods.
2370
81561546
SDJ
23712018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2372
2373 * server.c (captured_main): Change order of error message printed
2374 when the current working directory cannot be found.
2375
25e3c82c
SDJ
23762018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2377
2378 * server.c: Include "filenames.h" and "pathstuff.h".
2379 (program_name): Delete variable.
2380 (program_path): New anonymous class.
2381 (get_exec_wrapper): Use "program_path" instead of
2382 "program_name".
2383 (handle_v_run): Likewise.
2384 (captured_main): Likewise.
2385 (process_serial_event): Likewise.
2386
b4987c95
SDJ
23872018-02-28 Sergio Durigan Junior <sergiodj@redhat.com>
2388
2389 * Makefile.in (SFILES): Add "$(srcdir)/common/pathstuff.c".
2390 (OBJS): Add "pathstuff.o".
2391 * server.c (current_directory): New global variable.
2392 (captured_main): Initialize "current_directory".
2393
f46cd62a
AH
23942018-02-26 Alan Hayward <alan.hayward@arm.com>
2395
2396 * tdesc.c: Use common/tdesc.h.
2397 * tdesc.h: Likewise.
2398
a543c5ca
AH
23992018-02-20 Alan Hayward <alan.hayward@arm.com>
2400 Simon Marchi <simon.marchi@ericsson.com>
2401
2402 * Makefile.in: Switch order of make rules.
2403
b5884fa7
AH
24042018-02-19 Alan Hayward <alan.hayward@arm.com>
2405
2406 * Makefile.in: Add common directory in build.
2407 * configure.ac: Add common reference.
2408 * configure: Regenerate.
2409
de6242d3
MM
24102018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2411
2412 * linux-low.c (linux_target_ops): Remove linux_supports_btrace.
2413 * nto-low.c (nto_target_ops): Remove NULL for supports_btrace.
2414 * spu-low.c (spu_target_ops): Likewise.
2415 * win32-low.c (win32_target_ops): Likewise.
2416 * server.c (supported_btrace_packets): Report packets unconditionally.
2417 * target.h (target_ops) <supports_btrace>: Remove.
2418 (target_supports_btrace): Remove.
2419
9ee23a85
MM
24202018-02-09 Markus Metzger <markus.t.metzger@intel.com>
2421
2422 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt)
2423 (handle_btrace_disable): Change return type to void. Use exceptions
2424 to report errors.
2425 (handle_btrace_general_set): Catch exception and copy message to
2426 return message.
2427
8ce47547
TT
24282018-02-08 Tom Tromey <tom@tromey.com>
2429
2430 * linux-low.c (install_software_single_step_breakpoints): Use
2431 make_scoped_restore.
2432 * inferiors.c (make_cleanup_restore_current_thread): Remove.
2433 (do_restore_current_thread_cleanup): Remove.
2434 * gdbthread.h (make_cleanup_restore_current_thread): Don't
2435 declare.
2436
45dd3607
TT
24372018-02-08 Tom Tromey <tom@tromey.com>
2438
2439 * mem-break.c (set_raw_breakpoint_at): Use
2440 gdb::unique_xmalloc_ptr.
2441
e671cd59
PA
24422018-01-30 Pedro Alves <palves@redhat.com>
2443
2444 PR gdb/13211
2445 * target.c (target_terminal::terminal_state): Rename to ...
2446 (target_terminal::m_terminal_state): ... this.
2447
a0aad537
JC
24482018-01-19 James Clarke <jrtc27@jrtc27.com>
2449
2450 * linux-low.c (handle_extended_wait): Surround call to
2451 thread_db_notice_clone with #ifdef USE_THREAD_DB.
2452
4d9b86e1
SM
24532018-01-17 Simon Marchi <simon.marchi@ericsson.com>
2454
2455 * linux-low.c (attach_proc_task_lwp_callback): Adjust to
2456 linux_ptrace_attach_fail_reason_string now returning an
2457 std::string.
2458 (linux_attach): Likewise.
2459 * thread-db.c (attach_thread): Likewise.
2460
f517c180
EA
24612018-01-17 Eldar Abusalimov <eldar.abusalimov@jetbrains.com>
2462
2463 PR gdb/21559
2464 * configure.ac: Include <sys/types.h> prior to <sys/user.h> when
2465 checking for fs_base/gs_base fields in struct user_regs_struct.
2466 * configure: Regenerate.
2467
9a70f35c
YQ
24682018-01-16 Yao Qi <yao.qi@linaro.org>
2469
2470 PR gdb/18749
2471 * linux-low.c (fetch_register): Call supply_register instead of
2472 error.
2473
605fd3c6
YQ
24742018-01-08 Yao Qi <yao.qi@linaro.org>
2475 Simon Marchi <simon.marchi@ericsson.com>
2476
2477 * Makefile.in (OBS): Remove selftest.o.
2478 * configure.ac: Set srv_selftest_objs if $development is true.
2479 (GDBSERVER_DEPFILES): Append $srv_selftest_objs.
2480 * configure: Re-generated.
2481 * server.c (captured_main): Wrap variable selftest_filter with
2482 GDB_SELF_TEST.
2483
2cc05030
SM
24842018-01-07 Simon Marchi <simon.marchi@polymtl.ca>
2485
2486 * server.c (parse_debug_format_options): Return std::string.
2487 (handle_monitor_command, captured_main): Adjust.
2488
e379cee6
PA
24892018-01-05 Pedro Alves <palves@redhat.com>
2490
2491 PR gdb/18653
2492 * server.c (captured_main): Pass quiet=false to
2493 save_original_signals_state.
2494
82e1e79a
JB
24952018-01-01 Joel Brobecker <brobecker@adacore.com>
2496
2497 * gdbreplay.c (gdbreplay_version): Update copyright year in
2498 version message.
2499 * server.c (gdbserver_version): Likewise.
2500
8e481c3b
TT
25012017-12-08 Tom Tromey <tom@tromey.com>
2502
2503 * ax.c (ax_printf): Update.
2504
a8806230
YQ
25052017-12-07 Yao Qi <yao.qi@linaro.org>
2506
2507 * linux-aarch64-ipa.c (initialize_low_tracepoint): Call
2508 aarch64_linux_read_description.
2509 * linux-amd64-ipa.c (idx2mask): New array.
2510 (get_ipa_tdesc): Move idx2mask out.
2511 (initialize_low_tracepoint): Initialize target descriptions.
2512 * linux-i386-ipa.c (idx2mask): New array.
2513 (get_ipa_tdesc): Move idx2mask out.
2514 (initialize_low_tracepoint): Initialize target descriptions.
2515
d4a0e8b5
SM
25162017-12-05 Simon Marchi <simon.marchi@polymtl.ca>
2517
2518 * tdesc.c (struct tdesc_type): Change return type.
2519 (tdesc_add_flag): Change parameter type.
2520 (tdesc_add_bitfield): Likewise.
2521 (tdesc_add_field): Likewise.
2522 (tdesc_set_struct_size): Likewise.
2523
798a7429
SM
25242017-12-05 Simon Marchi <simon.marchi@ericsson.com>
2525
2526 * regcache.c (registers_to_string): Remove unused variable.
2527
c0e15c9b
SM
25282017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2529
2530 * inferiors.c (for_each_inferior_with_data): Remove.
2531 * inferiors.h (for_each_inferior_with_data): Remove.
2532 * server.c (handle_qxfer_threads_worker): Change parameter type.
2533 (handle_qxfer_threads_proper): Use for_each_thread.
2534
f0045347
SM
25352017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2536
2537 * inferiors.c (for_each_inferior): Remove.
2538 (clear_inferiors): Use for_each_thread.
2539 * inferiors.h (for_each_inferior): Remove.
2540 * linux-low.c (linux_wait_for_event_filtered): Use
2541 for_each_thread.
2542 (linux_stabilize_threads): Likewise.
2543 * regcache.c (regcache_release): Likewise.
2544 * server.c (gdb_wants_all_threads_stopped): Likewise.
2545 (clear_pending_status_callback): Remove.
2546 (handle_status): Use for_each_thread.
2547 (captured_main): Likewise.
2548 * win32-low.c (child_init_thread_list): Likewise.
2549 (win32_clear_inferiors): Likewise.
2550 (fake_breakpoint_event): Likewise.
2551
9521758b
SM
25522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2553
2554 * inferiors.h (find_inferior): Remove.
2555 * inferiors.c (find_inferior): Remove.
2556
8f86d7aa
SM
25572017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2558
2559 * linux-low.c (resume_status_pending_p): Update comment.
2560 (need_step_over_p): Update comment.
2561
e2b44075
SM
25622017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2563
2564 * linux-low.c (proceed_one_lwp): Return void, change parameter
2565 type.
2566 (unsuspend_and_proceed_one_lwp): Likewise.
2567 (proceed_all_lwps): Use for_each_thread.
2568 (unstop_all_lwps): Likewise.
2569
c80825ff
SM
25702017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2571
2572 * linux-low.c (linux_resume_one_thread): Return void, take
2573 parameter directly.
2574 (linux_resume): Use for_each_thread.
2575
df3e4dbe
SM
25762017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2577
2578 * linux-low.c (send_sigstop_callback): Return void, change
2579 parameter type. Rename to...
2580 (send_sigstop): ... this.
2581 (suspend_and_send_sigstop_callback): Return void, change parameter
2582 type. Rename to...
2583 (suspend_and_send_sigstop): ... this.
2584 (stop_all_lwps): Use for_each_thread.
2585
5a6b0a41
SM
25862017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2587
2588 * linux-low.c (lwp_running): Return bool, remove unused
2589 argument.
2590 (linux_stabilize_threads): Use find_thread.
2591
39a64da5
SM
25922017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2593
2594 * linux-low.c (select_singlestep_lwp_callback): Remove.
2595 (count_events_callback): Remove.
2596 (select_event_lwp_callback): Remove.
2597 (select_event_lwp): Use find_thread/for_each_thread.
2598
a1385b7b
SM
25992017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2600
2601 * linux-low.c (not_stopped_callback): Return bool, take filter
2602 argument directly.
2603 (linux_wait_for_event_filtered): Use find_thread.
2604 (linux_wait_1): Likewise.
2605
454296a2
SM
26062017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2607
2608 * linux-low.c (same_lwp): Remove.
2609 (find_lwp_pid): Use find_thread.
2610
6b2a85da
SM
26112017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * linux-low.c (delete_lwp_callback): Remove.
2614 (linux_mourn): Use for_each_thread.
2615
798a38e8
SM
26162017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2617
2618 * linux-low.c (linux_detach_lwp_callback): Return void, remove
2619 args parameter, don't check for pid.
2620 (linux_detach): Use for_each_thread.
2621
e4eb0dec
SM
26222017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2623
2624 * linux-low.c (struct counter): Remove.
2625 (second_thread_of_pid_p): Remove.
2626 (last_thread_of_process_p): Use find_thread.
2627
83e1b6c1
SM
26282017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2629
2630 * inferiors.c (find_inferior_in_random): Remove.
2631 * inferiors.h (find_inferior_in_random): Remove.
2632 * linux-low.c (status_pending_p_callback): Return bool, accept
2633 parameter ptid directly.
2634 (linux_wait_for_event_filtered): Use find_thread_in_random.
2635 (linux_wait_1): Likewise.
2636
8dc7b443
SM
26372017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2638
2639 * inferiors.c (find_inferior_id): Remove.
2640 (find_thread_ptid): Move implemention from find_inferior_id to
2641 here.
2642 * inferiors.h (find_inferior_id): Remove.
2643 * server.c (handle_status): Use find_thread_ptid.
2644 (process_serial_event): Likewise.
2645 * thread-db.c (find_one_thread): Likewise.
2646 (thread_db_thread_handle): Likewise.
2647 * win32-low.c (thread_rec): Likewise.
2648 (child_delete_thread): Likewise.
2649 (win32_thread_alive): Likewise.
2650 (get_child_debug_event): Likewise.
2651
da25033c
SM
26522017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2653
2654 * linux-mips-low.c (update_watch_registers_callback): Return
2655 void, remove pid_p parameter, don't check for pid.
2656 (mips_insert_point, mips_remove_point): Use for_each_thread.
2657
c91bb56b
SM
26582017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2659
2660 * lynx.low (lynx_delete_thread_callback): Remove.
2661 (lynx_mourn): Use for_each_thread.
2662
634a3254
SM
26632017-12-02 Simon Marchi <simon.marchi@polymtl.ca>
2664
2665 * regcache.c (regcache_invalidate_one): Remove.
2666 (regcache_invalidate_pid): use for_each_thread.
2667
41272101
TT
26682017-11-26 Tom Tromey <tom@tromey.com>
2669
2670 * linux-low.c (linux_create_inferior): Update.
2671
f5291a6f
UW
26722017-11-24 Ulrich Weigand <uweigand@de.ibm.com>
2673
2674 * spu-low.c (spu_create_inferior): Fix typo in argument name.
2675
6654d750
AH
26762017-11-24 Alan Hayward <alan.hayward@arm.com>
2677
2678 * configure.srv: Add linux-aarch64-tdesc-selftest.o.
2679 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2680 * linux-aarch64-tdesc-selftest.c: New file.
2681 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2682
26832017-11-24 Alan Hayward <alan.hayward@arm.com>
2684
2685 * configure.srv: Add new file.
2686 * linux-aarch64-low.c (initialize_low_arch): Call init func.
2687 * linux-aarch64-tdesc-selftest.c: New file.
2688 * linux-aarch64-tdesc.h (initialize_low_tdesc): New declaration.
2689
49bdb7ee
AH
26902017-11-24 Alan Hayward <alan.hayward@arm.com>
2691
2692 * linux-aarch64-ipa.c (initialize_low_tracepoint): Remove init.
2693 * linux-aarch64-low.c (initialize_low_arch): Remove init.
2694 * linux-aarch64-tdesc.c (aarch64_linux_read_description): Add init.
2695
d6d7ce56
AH
26962017-11-24 Alan Hayward <alan.hayward@arm.com>
2697
2698 * configure.srv: Add new files.
2699 * linux-aarch64-ipa.c (get_ipa_tdesc): Call
2700 aarch64_linux_read_description.
2701 * linux-aarch64-low.c (aarch64_linux_read_description):
2702 Merge with aarch64_arch_setup.
2703 (aarch64_arch_setup): Call aarch64_linux_read_description.
2704 * linux-aarch64-tdesc.c: New file.
2705 * linux-aarch64-tdesc.h: New file.
2706
506fe5f4
YQ
27072017-11-24 Yao Qi <yao.qi@linaro.org>
2708
2709 * configure.srv: Set $srv_regobj for tic6x-linux.
2710 * linux-tic6x-low.c: Include "arch/tic6x.h" and "tdesc.h".
2711 (tic6x_read_description): Move some code to tic6x_arch_setup.
2712 (tic6x_tdesc_test): New function.
2713 (initialize_low_arch): Call selftests::register_test.
2714
29f9a567
YQ
27152017-11-22 Yao Qi <yao.qi@linaro.org>
2716
2717 * remote-utils.c (prepare_resume_reply): Use memcpy.
2718
578290ec
SM
27192017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2720
2721 * linux-low.c (kill_one_lwp_callback): Return void, take
2722 argument directly, don't filter on pid.
2723 (linux_kill): Use for_each_thread.
2724
eca55aec
SM
27252017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2726
2727 * linux-low.c (need_step_over_p): Return bool, remove dummy
2728 argument.
2729 (linux_resume, proceed_all_lwps): Use find_thread.
2730
25c28b4d
SM
27312017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2732
2733 * linux-low.c (resume_status_pending_p): Return bool, remove
2734 flag_p argument.
2735 (linux_resume): Use find_thread.
2736
5fdda392
SM
27372017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2738
2739 * linux-low.c (struct thread_resume_array): Remove.
2740 (linux_set_resume_request): Return void, take arguments
2741 directly.
2742 (linux_resume): Use for_each_thread.
2743
fcb056a5
SM
27442017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2745
2746 * linux-low.c (stuck_in_jump_pad_callback): Change prototype,
2747 return bool, remove data argument.
2748 (linux_stabilize_threads): Use find_thread.
2749
139720c5
SM
27502017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2751
2752 * linux-low.c (unsuspend_one_lwp): Remove.
2753 (unsuspend_all_lwps): Use for_each_thread, inline code from
2754 unsuspend_one_lwp.
2755
6d1e5673
SM
27562017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2757
2758 * gdbthread.h (find_thread): Add overload with ptid_t filter.
2759 * linux-low.c (struct iterate_over_lwps_args): Remove.
2760 (iterate_over_lwps_filter): Remove.
2761 (iterate_over_lwps): Use find_thread.
2762
bbf550d5
SM
27632017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2764
2765 * linux-low.c (reset_lwp_ptrace_options_callback): Remove.
2766 (linux_handle_new_gdb_connection): Use for_each_thread, inline
2767 code from reset_lwp_ptrace_options_callback.
2768
00192f77
SM
27692017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2770
2771 * linux-arm-low.c (struct update_registers_data): Remove.
2772 (update_registers_callback): Return void, take arguments
2773 directly, don't check thread's pid.
2774 (arm_insert_point, arm_remove_point): Use for_each_thread.
2775
2bee2b6c
SM
27762017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2777
2778 * win32-low.c (continue_one_thread): Return void, take argument
2779 directly.
2780 (child_continue): Use for_each_thread.
2781
0b360f19
SM
27822017-11-19 Simon Marchi <simon.marchi@ericsson.com>
2783
2784 * win32-i386-low.c (update_debug_registers_callback): Rename
2785 to ...
2786 (update_debug_registers): ... this, return void, remove pid_p arg.
2787 (x86_dr_low_set_addr, x86_dr_low_set_control): Use for_each_thread.
2788
f27866ba
SM
27892017-11-17 Simon Marchi <simon.marchi@polymtl.ca>
2790
2791 * inferiors.h (struct process_info): Add constructor, initialize
2792 fields..
2793 <syscalls_to_catch>: Change type to std::vector<int>.
2794 * inferiors.c (add_process): Allocate process_info with new.
2795 (remove_process): Free process_info with delete.
2796 * linux-low.c (handle_extended_wait): Adjust.
2797 (gdb_catching_syscalls_p, gdb_catch_this_syscall_p): Adjust.
2798 * server.c (handle_general_set): Adjust.
2799
e849ea89
PA
28002017-11-16 Pedro Alves <palves@redhat.com>
2801
2802 * remote-utils.c (remote_close): Block SIGIO signals instead of
2803 uninstalling the SIGIO handler.
2804
1d0aa65c
AH
28052017-11-16 Alan Hayward <alan.hayward@arm.com>
2806
2807 * tdesc.c (tdesc_get_features_xml): Allow null osabi.
2808
3491a34c
YQ
28092017-11-16 Yao Qi <yao.qi@linaro.org>
2810
2811 * linux-tic6x-low.c (tic6x_fill_gregset): Cast buf.
2812 (tic6x_store_gregset): Likewise.
2813 (tic6x_usrregs_info): Move it up.
2814
a602f924
AH
28152017-11-15 Alan Hayward <alan.hayward@arm.com>
2816
2817 * Makefile.in: Update arch rules.
2818 * configure.srv: Explicitly mark arch/ files.
2819
5616b6c3
AS
28202017-11-13 Andreas Schwab <schwab@suse.de>
2821
2822 * linux-m68k-low.c (m68k_supports_hardware_single_step): New
2823 function.
2824 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
2825
d1928160
PA
28262017-11-06 Pedro Alves <palves@redhat.com>
2827
2828 * config.in, configure: Regenerate.
2829
bac608e7
SM
28302017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2831
2832 * target.c (struct thread_search): Remove.
2833 (thread_search_callback): Remove.
2834 (prepare_to_access_memory): Use for_each_thread instead of
2835 find_inferior. Inline code from thread_search_callback.
2836
eaddb425
SM
28372017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2838
2839 * server.c (struct visit_actioned_threads_data): Remove.
2840 (visit_actioned_threads): Change prototype to take arguments
2841 directly.
2842 (resume): Use find_thread instead of find_inferior.
2843
99078d34
SM
28442017-10-27 Simon Marchi <simon.marchi@ericsson.com>
2845
2846 * server.c (queue_stop_reply_callback): Change prototype, return
2847 void.
2848 (find_status_pending_thread_callback): Remove.
2849 (handle_status): Replace find_inferior with find_thread and
2850 for_each_thread.
2851
cc628f3d
AH
28522017-10-25 Alan Hayward <alan.hayward@arm.com>
2853
2854 * linux-aarch64-low.c (aarch64_fill_gregset): Replace defines
2855 with REGNO.
2856 (aarch64_store_gregset): Likewise.
2857 (aarch64_fill_fpregset): Likewise.
2858 (aarch64_store_fpregset): Likewise.
2859
4d3bb80e
SM
28602017-10-21 Simon Marchi <simon.marchi@ericsson.com>
2861
2862 * gdbthread.h (find_thread, for_each_thread): New functions.
2863 * inferiors.c (thread_of_pid): Remove.
2864 (find_any_thread_of_pid): Use find_thread.
2865 * linux-low.c (num_lwps): Use for_each_thread.
2866
7a7cdfa0
YQ
28672017-10-17 Yao Qi <yao.qi@linaro.org>
2868
2869 * Makefile.in: Remove one rule.
2870 * configure.srv: Rename aarch64-insn.o with arch/aarch64-insn.o.
2871
e675d170
YQ
28722017-10-17 Yao Qi <yao.qi@linaro.org>
2873
2874 * configure.srv: Rename arm-linux.o with arch/arm-linux.o.
2875 Rename arm-get-next-pcs.o with arch/arm-get-next-pcs.o.
2876
7eb4e0f9
YQ
28772017-10-17 Yao Qi <yao.qi@linaro.org>
2878
2879 * configure.srv: Rename arm.o with arch/arm.o.
2880
60d6cfc9
YQ
28812017-10-17 Yao Qi <yao.qi@linaro.org>
2882
2883 * Makefile.in (CONFIG_SRC_SUBDIR): New variable.
2884 (clean): Remove .o files in CONFIG_SRC_SUBDIR.
2885 (distclean): Remove DEPDIR in CONFIG_SRC_SUBDIR.
2886 (arch-i386.o, arch-amd64.o): Remove rules.
2887 (arch/%.o): New rule.
2888 Update POSTCOMPILE and COMPILE.pre.
2889 * configure.ac: Invoke AC_CONFIG_COMMANDS.
2890 * configure: Re-generated.
2891 * configure.srv: Replace arch-i386.o with arch/i386.o.
2892 Replace arch-amd64.o with arch/amd64.o.
2893
5bfda255
YQ
28942017-10-16 Yao Qi <yao.qi@linaro.org>
2895
2896 * configure: Regenerated.
2897
9c80ecd6
SM
28982017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2899
2900 * inferiors.h: (struct inferior_list): Remove.
2901 (struct inferior_list_entry); Remove.
2902 (add_inferior_to_list, clear_inferior_list, one_inferior_p,
2903 A_I_NEXT, ALL_INFERIORS_TYPE, ALL_INFERIORS, remove_inferior,
2904 get_first_inferior): Remove.
2905 (for_each_inferior, for_each_inferior_with_data, find_inferior,
2906 find_inferior_id, find_inferior_in_random): Change signature.
2907 * inferiors.c (all_threads): Change type to
2908 std::list<thread_info *>.
2909 (get_thread): Remove macro.
2910 (find_inferior, find_inferior_id): Change signature, implement
2911 using find_thread.
2912 (find_inferior_in_random): Change signature, implement using
2913 find_thread_in_random.
2914 (for_each_inferior, for_each_inferior_with_data): Change
2915 signature, implement using for_each_thread.
2916 (add_inferior_to_list, remove_inferior): Remove.
2917 (add_thread, get_first_thread, thread_of_pid,
2918 find_any_thread_of_pid, free_one_thread, remove_thread): Update.
2919 (get_first_inferior, one_inferior_p, clear_inferior_list):
2920 Remove.
2921 (clear_inferiors, get_thread_process): Update.
2922 * gdbthread.h: Include <list>.
2923 (struct thread_info) <entry>: Remove field.
2924 <id>: New field.
2925 (all_threads): Change type to std::list<thread_info *>.
2926 (get_first_inferior): Add doc.
2927 (find_thread, for_each_thread, find_thread_in_random): New
2928 functions.
2929 (current_ptid, pid_of, ptid_of, lwpid_of): Update.
2930 * linux-arm-low.c (update_registers_callback): Update.
2931 * linux-low.c (second_thread_of_pid_p): Update.
2932 (kill_one_lwp_callback, linux_detach_lwp_callback,
2933 delete_lwp_callback, status_pending_p_callback, same_lwp,
2934 find_lwp_pid, num_lwps, iterate_over_lwps_filter,
2935 iterate_over_lwps, not_stopped_callback,
2936 resume_stopped_resumed_lwps, count_events_callback,
2937 select_singlestep_lwp_callback, select_event_lwp_callback,
2938 unsuspend_one_lwp, linux_wait_1, send_sigstop_callback,
2939 suspend_and_send_sigstop_callback, wait_for_sigstop,
2940 stuck_in_jump_pad_callback, move_out_of_jump_pad_callback,
2941 lwp_running, linux_set_resume_request, resume_status_pending_p,
2942 need_step_over_p, start_step_over, linux_resume_one_thread,
2943 proceed_one_lwp, unsuspend_and_proceed_one_lwp,
2944 reset_lwp_ptrace_options_callback): Update.
2945 * linux-mips-low.c (update_watch_registers_callback): Update.
2946 * regcache.c (regcache_invalidate_one, regcache_invalidate):
2947 Update.
2948 (free_register_cache_thread_one): Remove.
2949 (regcache_release): Update.
2950 * server.c (handle_btrace_enable_bts, handle_btrace_enable_pt,
2951 handle_qxfer_threads_worker): Update.
2952 (handle_query): Update, use list iterator.
2953 (visit_actioned_threads, handle_pending_status,
2954 queue_stop_reply_callback, gdb_wants_all_threads_stopped,
2955 clear_pending_status_callback, set_pending_status_callback,
2956 find_status_pending_thread_callback, handle_status,
2957 process_serial_event): Update.
2958 * target.c (thread_search_callback): Update.
2959 * thread-db.c (thread_db_get_tls_address): Update.
2960 * tracepoint.c (tracepoint_finished_step, tracepoint_was_hit):
2961 Update.
2962 * win32-i386-low.c (update_debug_registers_callback): Update.
2963 * win32-low.c (delete_thread_info, child_delete_thread,
2964 continue_one_thread, suspend_one_thread,
2965 get_child_debug_event): Adjust.
2966
9179355e
SM
29672017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
2968
2969 * gdbthread.h (ptid_of, pid_of, lwpid_of): New functions.
2970 * inferiors.h: Include <list>.
2971 (struct process_info) <entry>: Remove field.
2972 <pid>: New field.
2973 (pid_of): Change macro to function.
2974 (ptid_of, lwpid_of): Remove macro.
2975 (all_processes): Change type to std::list<process_info *>.
2976 (ALL_PROCESSES): Remove macro.
2977 (for_each_process, find_process): New function.
2978 * inferiors.c (all_processes): Change type to
2979 std::list<process_info *>.
2980 (find_thread_process): Adjust.
2981 (add_process): Likewise.
2982 (remove_process): Likewise.
2983 (find_process_pid): Likewise.
2984 (get_first_process): Likewise.
2985 (started_inferior_callback): Remove.
2986 (have_started_inferiors_p): Adjust.
2987 (attached_inferior_callback): Remove.
2988 (have_attached_inferiors_p): Adjust.
2989 * linux-low.c (check_zombie_leaders): Likewise.
2990 * linux-x86-low.c (x86_arch_setup_process_callback): Remove.
2991 (x86_linux_update_xmltarget): Adjust.
2992 * server.c (handle_query): Likewise.
2993 (gdb_reattached_process): Remove.
2994 (handle_status): Adjust.
2995 (kill_inferior_callback): Likewise.
2996 (detach_or_kill_inferior): Remove.
2997 (print_started_pid): Likewise.
2998 (print_attached_pid): Likewise.
2999 (detach_or_kill_for_exit): Update.
3000 (process_serial_event): Likewise.
3001 * linux-arm-low.c (arm_new_fork): Likewise.
3002
c9cb8905
SM
30032017-10-14 Simon Marchi <simon.marchi@polymtl.ca>
3004
3005 * dll.h: Include <list>.
3006 (struct dll_info): Add constructor.
3007 <entry>: Remove field.
3008 (all_dlls): Change type to std::list<dll_info>.
3009 * dll.c: Include <algorithm>.
3010 (get_dll): Remove macro.
3011 (all_dlls): Change type to std::list<dll_info *>.
3012 (free_one_dll): Remove.
3013 (match_dll): Likewise.
3014 (loaded_dll): Adjust.
3015 (unloaded_dll): Adjust to all_dlls type change, use
3016 std::find_if. Inline code from match_dll.
3017 (clear_dlls): Adjust to all_dlls type change.
3018 * server.c (emit_dll_description): Remove.
3019 (handle_qxfer_libraries): Adjust to all_dlls type change,
3020 integrate emit_dll_description's functionality.
3021
04ec7890
SM
30222017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3023
3024 * linux-low.h (struct linux_target_ops) <delete_process>: New
3025 field.
3026 * linux-low.c (linux_mourn): Call the_low_target.delete_process.
3027 * linux-aarch64-low.c (aarch64_linux_delete_process): New.
3028 (struct linux_target_ops): Add delete_process callback.
3029 * linux-arm-low.c (arm_delete_process): New.
3030 (struct linux_target_ops): Add delete_process callback.
3031 * linux-bfin-low.c (struct linux_target_ops): Likewise.
3032 * linux-crisv32-low.c (struct linux_target_ops): Likewise.
3033 * linux-m32r-low.c (struct linux_target_ops): Likewise.
3034 * linux-mips-low.c (mips_linux_delete_process): New.
3035 (struct linux_target_ops): Add delete_process callback.
3036 * linux-ppc-low.c (struct linux_target_ops): Likewise.
3037 * linux-s390-low.c (struct linux_target_ops): Likewise.
3038 * linux-sh-low.c (struct linux_target_ops): Likewise.
3039 * linux-tic6x-low.c (struct linux_target_ops): Likewise.
3040 * linux-tile-low.c (struct linux_target_ops): Likewise.
3041 * linux-x86-low.c (x86_linux_delete_process): New.
3042 (struct linux_target_ops): Add delete_process callback.
3043 * linux-xtensa-low.c (struct linux_target_ops): Likewise.
3044
466eecee
SM
30452017-10-12 Simon Marchi <simon.marchi@ericsson.com>
3046
3047 * linux-aarch64-low.c (the_low_target): Add thread delete
3048 callback.
3049 * linux-arm-low.c (arm_delete_thread): New function.
3050 (the_low_target): Add thread delete callback.
3051 * linux-bfin-low.c (the_low_target): Likewise.
3052 * linux-crisv32-low.c (the_low_target): Likewise.
3053 * linux-low.c (delete_lwp): Invoke delete_thread callback if
3054 set.
3055 * linux-low.h (struct linux_target_ops) <delete_thread>: New
3056 field.
3057 * linux-m32r-low.c (the_low_target): Add thread delete callback.
3058 * linux-mips-low.c (mips_linux_delete_thread): New function.
3059 (the_low_target): Add thread delete callback.
3060 * linux-ppc-low.c (the_low_target): Likewise.
3061 * linux-s390-low.c (the_low_target): Likewise.
3062 * linux-sh-low.c (the_low_target): Likewise.
3063 * linux-tic6x-low.c (the_low_target): Likewise.
3064 * linux-tile-low.c (the_low_target): Likewise.
3065 * linux-x86-low.c (the_low_target): Likewise.
3066 * linux-xtensa-low.c (the_low_target): Likewise.
3067
b79f7801
YZ
30682017-10-06 Yuanhui Zhang <asmwarrior@gmail.com>
3069
3070 * win32-low.c: Include "common-inferior.h".
3071
bc3b087d
SDJ
30722017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3073
3074 * inferiors.c (set_inferior_cwd): New function.
3075 * server.c (handle_general_set): Handle QSetWorkingDir packet.
3076 (handle_query): Inform that QSetWorkingDir is supported.
3077 * win32-low.c (create_process): Pass the inferior's cwd to
3078 CreateProcess.
3079
d092c5a2
SDJ
30802017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3081
3082 * inferiors.c (current_inferior_cwd): New global variable.
3083 (get_inferior_cwd): New function.
3084 * inferiors.h (struct process_info) <cwd>: New field.
3085
7da0a886
SDJ
30862017-10-04 Sergio Durigan Junior <sergiodj@redhat.com>
3087
3088 * Makefile.in (SFILES): Add $(srcdir)/common/gdb_tilde_expand.c.
3089 (OBS): Add gdb_tilde_expand.o.
3090
289a6840
SM
30912017-10-02 Simon Marchi <simon.marchi@ericsson.com>
3092
3093 * lynx-i386-low.c (lynx_i386_arch_setup): Call init_target_desc.
3094 * nto-x86-low.c (nto_x86_arch_setup): Likewise.
3095
256642e8
PA
30962017-09-29 Pedro Alves <palves@redhat.com>
3097
3098 * ax.c (gdb_parse_agent_expr): Constify.
3099 * ax.h (gdb_parse_agent_expr): Constify.
3100 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
3101 Constify.
3102 * mem-break.h (add_breakpoint_condition, add_breakpoint_commands): Constify.
3103 * remote-utils.c (hex_or_minus_one, read_ptid): Constify.
3104 * remote-utils.h (read_ptid): Constify.
3105 * server.c (handle_qxfer_exec_file, handle_query, handle_v_cont)
3106 (process_point_options, process_serial_event): Constify.
3107 * tracepoint.c (add_tracepoint_action, cmd_qtdp, cmd_qtdpsrc)
3108 (cmd_qtdv, cmd_qtenable_disable, cmd_qtro, cmd_qtframe, cmd_qtp)
3109 (cmd_qtbuffer): Constify.
3110
5b9ca4d4
PA
31112017-09-29 Pedro Alves <palves@redhat.com>
3112
3113 * proc-service.c (ps_pdread): Return PS_ERR if reading memory
3114 fails.
3115
94c207e0
PA
31162017-09-29 Pedro Alves <palves@redhat.com>
3117
3118 * linux-low.c (handle_extended_wait): Pass parent thread instead
3119 of process to thread_db_notice_clone.
3120 * linux-low.h (thread_db_notice_clone): Replace parent process
3121 parameter with parent thread parameter.
3122 * thread-db.c (find_one_thread): Add comment.
3123 (thread_db_notice_clone): Replace parent process parameter with
3124 parent thread parameter. Temporarily switch to the parent thread.
3125
75352e28
SDJ
31262017-09-26 Sergio Durigan Junior <sergiodj@redhat.com>
3127
3128 * gdbthread.h: Include "common-gdbthread.h".
3129 * inferiors.c (switch_to_thread): Use "gdb_assert" instead of
3130 "if" when validating the ptid.
3131 * remote-utils.c: Include "gdbthread.h".
3132 (prepare_resume_reply): Use "switch_to_thread".
3133 * target.c (done_accessing_memory): Likewise.
3134
ad339634
AA
31352017-09-25 Andreas Arnez <arnez@linux.vnet.ibm.com>
3136
3137 * configure.srv (s390*-*-linux*): Add s390-gs-linux64.o and
3138 s390x-gs-linux64.o to srv_regobj. Add s390-gs-linux64.xml,
3139 s390x-gs-linux64.xml, s390-gs.xml, and s390-gsbc.xml to
3140 srv_xmlfiles. Add s390-gs-linux64-ipa.o and
3141 s390x-gs-linux64-ipa.o to ipa_obj.
3142 * linux-s390-low.c (HWCAP_S390_GS): New define.
3143 (s390_fill_gs, s390_store_gs, s390_fill_gsbc, s390_store_gsbc):
3144 New functions.
3145 (s390_regsets): Add regsets for NT_S390_GS_CB and NT_S390_GS_BC.
3146 (s390_arch_setup): Check for guarded-storage support and choose
3147 appropriate tdesc.
3148 (initialize_low_arch): Invoke init_registers_s390_gs_linux64 and
3149 init_registers_s390x_gs_linux64.
3150 * linux-s390-tdesc.h (enum s390_linux_tdesc) <S390_TDESC_GS>: New
3151 enum value.
3152 (init_registers_s390x_gs_linux64, tdesc_s390x_gs_linux64)
3153 (init_registers_s390_gs_linux64, tdesc_s390_gs_linux64): Declare.
3154
cc4d742f
SM
31552017-09-22 Simon Marchi <simon.marchi@ericsson.com>
3156
3157 * win32-i386-low.c (i386_arch_setup): Call init_target_desc.
3158
f6327dcb
KB
31592017-09-21 Kevin Buettner <kevinb@redhat.com>
3160
3161 * linux-low.h (struct lwp_info): Add new field, thread_handle.
3162 (thread_db_thread_handle): Declare.
3163 * linux-low.c (linux_target_ops): Initialize thread_handle.
3164 * server.c (handle_qxfer_threads_worker): Add support for
3165 "handle" attribute.
3166 * target.h (struct target_ops): Add new function pointer,
3167 thread_handle.
3168 (target_thread_handle): Define.
3169 * thread-db.c (find_one_thread, attach_thread): Set thread_handle
3170 field in lwp.
3171 (thread_db_thread_handle): New function.
3172
86299109
KB
31732017-09-21 Kevin Buettner <kevinb@redhat.com>
3174
3175 * linux-low.c (handle_extended_wait): Call thread_db_notice_clone().
3176 * linux-low.h (thread_db_notice_clone): Declare.
3177 * thread-db.c (thread_db_notice_clone): New function.
3178
f557a88a
PA
31792017-09-21 Pedro Alves <palves@redhat.com>
3180
3181 * server.c (gdb_read_memory, handle_status, process_serial_event)
3182 (handle_serial_event, handle_target_event): Adjust to
3183 set_desired_thread prototype change.
3184 * target.c (set_desired_thread): Remove 'use_general' parameter
3185 and adjust.
3186 * target.h (set_desired_thread): Remove 'use_general' parameter.
3187
223ffa71
TT
31882017-09-20 Tom Tromey <tom@tromey.com>
3189
3190 * target.c (target_terminal::terminal_state): Define.
3191 (target_terminal::init): Rename from target_terminal_init.
3192 (target_terminal::inferior): Rename from
3193 target_terminal_inferior.
3194 (target_terminal::ours): Rename from target_terminal_ours.
3195 (target_terminal::ours_for_output, target_terminal::info): New.
3196
04fd3ba9
SM
31972017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3198
3199 * server.c (accumulate_file_name_length): Remove.
3200 (emit_dll_description): Adjust to std::string change.
3201 (handle_qxfer_libraries): Use std::string to hold document.
3202
5e187554
SM
32032017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3204
3205 * linux-low.c (linux_qxfer_libraries_svr4): Adjust to change of
3206 return type of xml_escape_text.
3207 * server.c (emit_dll_description): Likewise.
3208
1526853e
SM
32092017-09-16 Simon Marchi <simon.marchi@ericsson.com>
3210
3211 * server.c (captured_main): Accept argument for --selftest.
3212 Update run_tests call.
3213 * linux-x86-tdesc-selftest.c (initialize_low_tdesc): Add names
3214 when registering selftests.
3215
c4dfafab
SDJ
32162017-09-16 Sergio Durigan Junior <sergiodj@redhat.com>
3217
3218 * regcache.c (get_thread_regcache): Update code to use "std::vector"
3219 instead of "VEC" for "target_desc.reg_defs".
3220 (regcache_cpy): Likewise.
3221 (registers_to_string): Likewise.
3222 (registers_from_string): Likewise.
3223 (find_regno): Likewise.
3224 (supply_regblock): Likewise.
3225 (regcache_raw_read_unsigned): Likewise.
3226 * tdesc.c (init_target_desc): Likewise.
3227 (tdesc_create_reg): Likewise.
3228 * tdesc.h: Remove declaration of "tdesc_reg_p". Include <vector>.
3229 (struct target_desc) <reg_defs>: Convert to "std::vector".
3230 (target_desc): Do not initialize "reg_defs".
3231 (~target_desc): Update code to use "std::vector" instead of "VEC"
3232 for "target_desc.reg_defs".
3233 (operator==): Likewise.
3234
124aceb4
SM
32352017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3236
3237 * inferiors.h (thread_to_gdb_id): Remove.
3238 * inferiors.c (thread_to_gdb_id): Remove.
3239 * server.c (handle_qxfer_threads_worker, handle_query): Adjust.
3240 * lynx-low.c (lynx_resume, lynx_wait_1, lynx_fetch_registers,
3241 lynx_store_registers, lynx_read_memory, lynx_write_memory):
3242 Likewise.
3243 * nto-low.c (nto_fetch_registers, nto_store_registers,
3244 nto_stopped_by_watchpoint, nto_stopped_data_address): Likewise.
3245
96cde54f
SM
32462017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3247
3248 * inferiors.h (gdb_id_to_thread_id): Remove.
3249 * inferiors.c (gdb_id_to_thread_id): Remove.
3250 * server.c (process_serial_event): Adjust to gdb_id_to_thread_id
3251 removal. Move pid declaration closer to where it's used.
3252
e8ca139e
SM
32532017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3254
3255 * server.c (handle_detach): New function.
3256 (process_serial_event): Move code out, call handle_detach.
3257
f8a4e119
SM
32582017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3259
3260 * server.c (require_running): Rename to ...
3261 (require_running_or_return): ... this ...
3262 (require_running_or_break): ... and this.
3263 (handle_query, process_serial_event): Adjust.
3264
0eb0a407
SM
32652017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3266
3267 * linux-low.c (linux_set_resume_request): Remove unused
3268 variables.
3269
785922a5
SM
32702017-09-15 Simon Marchi <simon.marchi@ericsson.com>
3271
3272 * server.c (first_thread_of): Remove.
3273 (process_serial_event): Replace usage of first_thread_of with
3274 find_any_thread_of_pid.
3275 * tracepoint.c (same_process_p): Remove.
3276 (gdb_agent_about_to_close): Replace usage of same_process_p with
3277 find_any_thread_of_pid.
3278 * linux-x86-low.c (same_process_callback): Remove.
3279 (x86_arch_setup_process_callback): Replace usage of
3280 same_process_callback with find_any_thread_of_pid.
3281 * thread-db.c (any_thread_of): Remove.
3282 (switch_to_process): Replace usage of any_thread_of with
3283 find_any_thread_of_pid.
3284 * inferiors.c (thread_pid_matches_callback): Remove.
3285 (find_thread_process): Adjust to use find_any_thread_of_pid.
3286
a059f00c
SDJ
32872017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3288
3289 * regcache.c (get_thread_regcache): Guard calls to "memset"
e79be6e5 3290 with "!VEC_empty".
a059f00c 3291
cc397f3a
SDJ
32922017-09-10 Sergio Durigan Junior <sergiodj@redhat.com>
3293
3294 * linux-low.c (handle_extended_wait): Use
3295 "allocate_target_description" instead of "XNEW".
3296 * linux-x86-low.c (initialize_low_arch): Likewise.
3297
22916b07
YQ
32982017-09-05 Yao Qi <yao.qi@linaro.org>
3299
3300 * configure.srv (srv_i386_regobj): Remove.
3301 (srv_amd64_regobj): Remove.
3302 (srv_regobj): Set it to "" for x86 non-linux targets.
3303 * linux-x86-tdesc.c (i386_linux_read_description):
3304 * lynx-i386-low.c: Include x86-xstate.h and arch/i386.h.
3305 (init_registers_i386): Remove the declaration.
3306 (tdesc_i386): Remove the declaration.
3307 (lynx_i386_arch_setup): Call i386_create_target_description.
3308 * nto-x86-low.c: Likewise.
3309 * win32-i386-low.c [__x86_64__]: include arch/amd64.h.
3310 [!__x86_64__]: include arch/i386.h.
3311 (i386_arch_setup) [__x86_64__]: Call amd64_create_target_description.
3312
38602d55
YQ
33132017-09-05 Yao Qi <yao.qi@linaro.org>
3314
3315 * configure.srv (srv_amd64_linux_xmlfiles): Remove
3316 i386/amd64-XXX-linux from it.
3317
44b886ff
YQ
33182017-09-05 Yao Qi <yao.qi@linaro.org>
3319
3320 * configure.srv: Empty srv_amd64_linux_regobj if $development is
3321 false.
3322 (ipa_amd64_linux_regobj): Remove.
3323 (ipa_x32_linux_regobj): Remove.
3324
b4570e4b
YQ
33252017-09-05 Yao Qi <yao.qi@linaro.org>
3326
3327 * Makefile.in (arch-amd64.o): New rule.
3328 * configure.srv: Append arch-amd64.o.
3329 * linux-amd64-ipa.c: Include common/x86-xstate.h.
3330 (get_ipa_tdesc): Call amd64_linux_read_description.
3331 (initialize_low_tracepoint): Don't call init_registers_x32_XXX
3332 and init_registers_amd64_XXX.
3333 * linux-x86-low.c (x86_linux_read_description): Call
3334 amd64_linux_read_description.
3335 (x86_get_ipa_tdesc_idx): Call amd64_get_ipa_tdesc_idx.
3336 (initialize_low_arch): Don't call init_registers_x32_XXX and
3337 init_registers_amd64_XXX.
3338 * linux-x86-tdesc-selftest.c: Declare init_registers_amd64_XXX
3339 and tdesc_amd64_XXX.
3340 [__x86_64__] (amd64_tdesc_test): New function.
3341 (initialize_low_tdesc) [__x86_64__]: Call init_registers_x32_XXX
3342 and init_registers_amd64_XXX.
3343 * linux-x86-tdesc.c: Include arch/amd64.h.
3344 (xcr0_to_tdesc_idx): New function.
3345 (i386_linux_read_description): New function.
3346 (amd64_get_ipa_tdesc_idx): New function.
3347 * linux-x86-tdesc.h (amd64_get_ipa_tdesc_idx): Declare.
3348 (amd64_get_ipa_tdesc): Declare.
3349
d1f28ea2
YQ
33502017-09-05 Yao Qi <yao.qi@linaro.org>
3351
3352 * configure.srv (srv_i386_linux_xmlfiles): Remove
3353 i386/i386-XXX-linux.xml from it.
3354
25a93583
YQ
33552017-09-05 Yao Qi <yao.qi@linaro.org>
3356
3357 * configure.srv: Set srv_i386_linux_regobj empty if $development
3358 is false.
3359 * linux-i386-ipa.c (initialize_low_tracepoint): Don't call
3360 initialize_low_tdesc.
3361 * linux-x86-low.c (initialize_low_arch): Wrap initialize_low_tdesc
3362 with #if initialize_low_tdesc.
3363 * linux-x86-tdesc-selftest.c: New file.
3364 * linux-x86-tdesc.c: Move code to linux-x86-tdesc-selftest.c.
3365
5f035c07
YQ
33662017-09-05 Yao Qi <yao.qi@linaro.org>
3367
3368 * Makefile.in (arch-i386.o): New rule.
3369 * configure.srv (i[34567]86-*-linux*): Add arch-i386.o.
3370 (x86_64-*-linux*): Likewise.
3371 * linux-x86-tdesc.c: Don't include ../features/i386/32bit-XXX.c,
3372 include arch/i386.h.
3373 (i386_linux_read_description): Remove code and call
3374 i386_create_target_description.
3375 * tdesc.c (allocate_target_description): New function.
3376 * tdesc.h (set_tdesc_architecture): Remove declaration.
3377 (set_tdesc_osabi): Likewise.
3378
0abe8a89
YQ
33792017-09-05 Yao Qi <yao.qi@linaro.org>
3380
3381 * linux-x86-tdesc.c: Don't include <inttypes.h>.
3382 (i386_linux_read_description) [!IN_PROCESS_AGENT]: Call
3383 set_tdesc_architecture and set_tdesc_osabi. Remove code setting
3384 .xmltarget.
3385 * server.c (get_features_xml): Call tdesc_get_features_xml.
3386 * tdesc.c (set_tdesc_architecture): New function.
3387 (set_tdesc_osabi): New function.
3388 (tdesc_get_features_xml): New function.
3389 (tdesc_create_feature): Add an argument.
3390 * tdesc.h (struct target_desc) <features>: New field.
3391 <arch, osabi>: New field.
3392 (~target_desc): xfree features, arch, and osabi.
3393 (target_desc::oerator==): Don't compare .xmltarget.
3394 [!IN_PROCESS_AGENT] (set_tdesc_architecture): Declare.
3395 (set_tdesc_osabi): Likewise.
3396 (tdesc_get_features_xml): Likewise.
3397
0a188386
YQ
33982017-09-05 Yao Qi <yao.qi@linaro.org>
3399
3400 * linux-x86-tdesc.c: Include selftest.h.
3401 (i386_tdesc_test): New function.
3402 (initialize_low_tdesc): Call selftests::register_test.
3403 * tdesc.h: Include regdef.h.
3404 (target_desc): Override operator == and !=.
3405
f49ff000
YQ
34062017-09-05 Yao Qi <yao.qi@linaro.org>
3407
3408 * configure.srv (srv_tgtobj): Append linux-x86-tdesc.o.
3409 (ipa_obj): Likewise.
3410 * linux-i386-ipa.c: Include common/x86-xstate.h
3411 (get_ipa_tdesc): Call i386_linux_read_description.
3412 (initialize_low_tracepoint): Don't call init_registers_XXX
3413 functions, call initialize_low_tdesc instead.
3414 * linux-x86-low.c (x86_linux_read_description): Call
3415 i386_linux_read_description.
3416 (initialize_low_arch): Don't call init_registers_i386_XXX
3417 functions, call initialize_low_tdesc.
3418 * linux-x86-tdesc.c: New file.
3419 * linux-x86-tdesc.h (x86_linux_tdesc): New X86_TDESC_LAST.
3420 (i386_get_ipa_tdesc_idx): Declare.
3421 (i386_get_ipa_tdesc): Declare.
3422 (initialize_low_tdesc): Declare.
3423
2b68ef2f
YQ
34242017-09-05 Yao Qi <yao.qi@linaro.org>
3425
3426 * linux-x86-low.c (x86_get_ipa_tdesc_idx): Use X86_TDESC_MMX
3427 instead of 0.
3428
f7000548
YQ
34292017-09-05 Yao Qi <yao.qi@linaro.org>
3430
3431 * Makefile.in (IPA_OBJS): Add vec-ipa.o
3432 * regcache.c (get_thread_regcache): Use VEC_length.
3433 (init_register_cache): Likewise.
3434 (regcache_cpy): Likewise.
3435 (registers_to_string): Iterate reg_defs via VEC_iterate.
3436 (find_regno): Likewise.
3437 (find_register_by_number): Use VEC_index.
3438 (register_size): Call find_register_by_number.
3439 (register_data): Call find_register_by_number.
3440 (supply_regblock): Use VEC_length.
3441 (regcache_raw_read_unsigned): Likewise.
3442 * tdesc.c (init_target_desc): Iterate reg_defs via
3443 VEC_iterate.
3444 (default_description): Update initializer.
3445 (copy_target_description): Don't update field num_registers.
3446 * tdesc.h (struct target_desc) <reg_defs>: Change it to VEC.
3447 <num_registers>: Remove.
3448
50a421ac
SM
34492017-09-04 Simon Marchi <simon.marchi@ericsson.com>
3450
3451 * Makefile.in (.SECONDARY): Define target.
3452
23fdd69e
SM
34532017-09-03 Simon Marchi <simon.marchi@ericsson.com>
3454
3455 * linux-low.c (linux_wait_1): Adjust.
3456 * server.c (queue_stop_reply_callback): Adjust.
3457
0a2dde4a
SDJ
34582017-08-31 Sergio Durigan Junior <sergiodj@redhat.com>
3459
3460 * server.c (handle_general_set): Handle QEnvironmentHexEncoded,
3461 QEnvironmentUnset and QEnvironmentReset packets.
3462 (handle_query): Inform remote that QEnvironmentHexEncoded,
3463 QEnvironmentUnset and QEnvironmentReset are supported.
3464
6afd337d
SM
34652017-08-25 Simon Marchi <simon.marchi@ericsson.com>
3466
3467 * inferiors.h (inferior_target_data): Rename to ...
3468 (thread_target_data): ... this.
3469 (inferior_regcache_data): Rename to ...
3470 (thread_regcache_data): ... this.
3471 (set_inferior_regcache_data): Rename to ...
3472 (set_thread_regcache_data): ... this.
3473 * inferiors.c (inferior_target_data): Rename to ...
3474 (thread_target_data): ... this.
3475 (inferior_regcache_data): Rename to ...
3476 (thread_regcache_data): ... this.
3477 (set_inferior_regcache_data): Rename to ...
3478 (set_thread_regcache_data): ... this.
3479 (free_one_thread): Update.
3480 * linux-low.h (get_thread_lwp): Update.
3481 * regcache.c (get_thread_regcache): Update.
3482 (regcache_invalidate_thread): Update.
3483 (free_register_cache_thread): Update.
3484 * win32-i386-low.c (update_debug_registers_callback): Update.
3485 (win32_get_current_dr): Update.
3486 * win32-low.c (thread_rec): Update.
3487 (delete_thread_info): Update.
3488 (continue_one_thread): Update.
3489 (suspend_one_thread): Update.
3490
a160cc46
SM
34912017-08-24 Simon Marchi <simon.marchi@ericsson.com>
3492
3493 * inferiors.c (set_inferior_target_data): Remove.
3494 * inferiors.h (set_inferior_target_data): Remove.
3495
6d580b63
YQ
34962017-08-18 Yao Qi <yao.qi@linaro.org>
3497
3498 * Makefile.in (OBS): Add selftest.o.
3499 * configure.ac: AC_DEFINE GDB_SELF_TEST if $development.
3500 * configure, config.in: Re-generated.
3501 * server.c: Include common/sefltest.h.
3502 (captured_main): Handle option --selftest.
3503
f5a29eb0
YQ
35042017-08-09 Yao Qi <yao.qi@linaro.org>
3505
3506 * configure.srv (srv_i386_regobj): Remove i386-avx.o,
3507 i386-avx-avx512.o, i386-avx-mpx-avx512-pku.o, i386-mpx.o,
3508 i386-avx-mpx.o and i386-mmx.o.
3509 (srv_amd64_regobj): Remove amd64-avx.o, amd64-avx-avx512.o,
3510 amd64-avx-mpx-avx512-pku.o, amd64-mpx.o and amd64-avx-mpx.o.
3511 (srv_i386_xmlfiles): Remove i386/i386-avx.xml,
3512 i386/i386-avx-avx512.xml, i386/i386-avx-mpx-avx512-pku.xml,
3513 i386/i386-mpx.xml, i386/i386-avx-mpx.xml and i386/i386-mmx.xml.
3514 (srv_amd64_xmlfile):i386/amd64-avx.xml, i386/amd64-avx-avx512.xml,
3515 i386/amd64-avx-mpx-avx512-pku.xml, i386/amd64-mpx.xml,
3516 i386/amd64-avx-mpx.xml.
3517
57757c2f
YQ
35182017-08-09 Yao Qi <yao.qi@linaro.org>
3519
3520 * configure.srv (srv_amd64_regobj): Remove x32.o, x32-avx.o
3521 and x32-avx-avx512.o.
3522 (srv_amd64_xmlfiles): Remove i386/x32.xml, i386/x32-avx.xml
3523 i386/x32-avx-avx512.xml.
3524
229d26fc
SM
35252017-07-26 Simon Marchi <simon.marchi@ericsson.com>
3526
3527 * tracepoint.h (enum class fast_tpoint_collect_result): New
3528 enumeration.
3529 (fast_tracepoint_collecting): Change return type to
3530 fast_tpoint_collect_result.
3531 * tracepoint.c (fast_tracepoint_collecting): Likewise.
3532 * linux-low.h: Include tracepoint.h.
3533 (struct lwp_info) <collecting_fast_tracepoint>: Change type to
3534 fast_tpoint_collect_result.
3535 * linux-low.c (handle_tracepoints): Adjust.
3536 (linux_fast_tracepoint_collecting): Change return type to
3537 fast_tpoint_collect_result.
3538 (maybe_move_out_of_jump_pad, linux_wait_for_event_filtered,
3539 linux_wait_1, stuck_in_jump_pad_callback,
3540 lwp_signal_can_be_delivered, linux_resume_one_lwp_throw,
3541 proceed_one_lwp): Adjust to type change.
3542
2e1e43e1
YQ
35432017-07-10 Yao Qi <yao.qi@linaro.org>
3544
3545 * linux-x86-low.c (x86_linux_read_description): Re-indent the code.
3546
adc764e7
YQ
35472017-06-29 Yao Qi <yao.qi@linaro.org>
3548
3549 * tdesc.h (struct target_desc) [IN_PROCESS_AGENT] <expedite_regs>:
3550 Remove.
3551 [IN_PROCESS_AGENT] <xmltarget>: Likewise.
3552
a206891a
SM
35532017-06-20 Simon Marchi <simon.marchi@ericsson.com>
3554
3555 * Makefile.in (IPA_OBJS): Sort and format one item per line.
3556
9a6c7d9c
SDJ
35572017-06-20 Sergio Durigan Junior <sergiodj@redhat.com>
3558
3559 * linux-low.c (linux_create_inferior): Adjust code to access the
3560 environment information via 'gdb_environ' class.
3561 * lynx-low.c (lynx_create_inferior): Likewise.
3562 * server.c (our_environ): Make it an instance of 'gdb_environ'.
3563 (get_environ): Return a pointer to 'our_environ'.
3564 (captured_main): Initialize 'our_environ'.
3565 * server.h (get_environ): Adjust prototype.
3566 * spu-low.c (spu_create_inferior): Adjust code to access the
3567 environment information via 'gdb_environ' class.
3568
ae3e2ccf
SM
35692017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3570
3571 * linux-low.c (linux_read_memory, linux_write_memory): Remove
3572 usage of "register" keyword.
3573
3e019bdc
SM
35742017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3575
3576 * configure: Re-generate.
3577
8465943a
SM
35782017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3579
3580 * configure: Re-generate.
3581
cf0dd6f0
SM
35822017-06-17 Simon Marchi <simon.marchi@ericsson.com>
3583
3584 * Makefile.in (COMPILE.pre): Add "-x c++".
3585
9845682b
SDJ
35862017-06-09 Sergio Durigan Junior <sergiodj@redhat.com>
3587
3588 * fork-child.c: Conditionally include <signal.h>.
3589
aefd8b33
SDJ
35902017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3591
3592 * server.c (handle_general_set): Handle new packet
3593 "QStartupWithShell".
3594 (handle_query): Add "QStartupWithShell" to the list of supported
3595 packets.
3596 (gdbserver_usage): Add help text explaining the
3597 new "--startup-with-shell" and "--no-startup-with-shell" CLI
3598 options.
3599 (captured_main): Recognize and act upon the presence of the new
3600 CLI options.
3601
2090129c
SDJ
36022017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3603 Pedro Alves <palves@redhat.com>
3604
3605 * Makefile.in (SFILES): Add "nat/fork-inferior.o".
3606 * configure: Regenerate.
3607 * configure.srv (srv_linux_obj): Add "fork-child.o" and
3608 "fork-inferior.o".
3609 (i[34567]86-*-lynxos*): Likewise.
3610 (spu*-*-*): Likewise.
3611 * fork-child.c: New file.
3612 * linux-low.c: Include "common-inferior.h", "nat/fork-inferior.h"
3613 and "environ.h".
3614 (linux_ptrace_fun): New function.
3615 (linux_create_inferior): Adjust function prototype to reflect
3616 change on "target.h". Adjust function code to use
3617 "fork_inferior".
3618 (linux_request_interrupt): Delete "signal_pid".
3619 * lynx-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3620 (lynx_ptrace_fun): New function.
3621 (lynx_create_inferior): Adjust function prototype to reflect
3622 change on "target.h". Adjust function code to use
3623 "fork_inferior".
3624 * nto-low.c (nto_create_inferior): Adjust function prototype and
3625 code to reflect change on "target.h". Update comments.
3626 * server.c: Include "common-inferior.h", "nat/fork-inferior.h",
3627 "common-terminal.h" and "environ.h".
3628 (terminal_fd): Moved to fork-child.c.
3629 (old_foreground_pgrp): Likewise.
3630 (restore_old_foreground_pgrp): Likewise.
3631 (last_status): Make it global.
3632 (last_ptid): Likewise.
3633 (our_environ): New variable.
3634 (startup_with_shell): Likewise.
3635 (program_name): Likewise.
3636 (program_argv): Rename to...
3637 (program_args): ...this.
3638 (wrapper_argv): New variable.
3639 (start_inferior): Delete function.
3640 (get_exec_wrapper): New function.
3641 (get_exec_file): Likewise.
3642 (get_environ): Likewise.
3643 (prefork_hook): Likewise.
3644 (post_fork_inferior): Likewise.
3645 (postfork_hook): Likewise.
3646 (postfork_child_hook): Likewise.
3647 (handle_v_run): Update code to deal with arguments coming from the
3648 remote host. Update calls from "start_inferior" to
3649 "create_inferior".
3650 (captured_main): Likewise. Initialize environment variable. Call
3651 "have_job_control".
3652 * server.h (post_fork_inferior): New prototype.
3653 (get_environ): Likewise.
3654 (last_status): Declare.
3655 (last_ptid): Likewise.
3656 (signal_pid): Likewise.
3657 * spu-low.c: Include "common-inferior.h" and "nat/fork-inferior.h".
3658 (spu_ptrace_fun): New function.
3659 (spu_create_inferior): Adjust function prototype to reflect change
3660 on "target.h". Adjust function code to use "fork_inferior".
3661 * target.c (target_terminal_init): New function.
3662 (target_terminal_inferior): Likewise.
3663 (target_terminal_ours): Likewise.
3664 * target.h: Include <vector>.
3665 (struct target_ops) <create_inferior>: Update prototype.
3666 (create_inferior): Update macro.
3667 * utils.c (gdb_flush_out_err): New function.
3668 * win32-low.c (win32_create_inferior): Adjust function prototype
3669 and code to reflect change on "target.h".
3670
043a4934
SDJ
36712017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3672
3673 * inferiors.c (switch_to_thread): New function.
3674
15652511
SDJ
36752017-06-07 Sergio Durigan Junior <sergiodj@redhat.com>
3676
3677 * Makefile.in (SFILE): Add "common/job-control.c".
3678 (OBS): Add "job-control.o".
3679
21ea5acd
SDJ
36802017-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3681
3682 * Makefile: Remove "@host_makefile_frag@".
3683
e13cb306
PA
36842017-05-05 Pedro Alves <palves@redhat.com>
3685
3686 * configure: Regenerate.
3687
c94fee56
SDJ
36882017-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3689
3690 * configure: Regenerate.
3691
a0ff9e1a
SM
36922017-05-02 Simon Marchi <simon.marchi@polymtl.ca>
3693
3694 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Adjust to
3695 software_single_step change of return type to
3696 std::vector<CORE_ADDR>.
3697 * linux-low.c (install_software_single_step_breakpoints):
3698 Likewise.
3699 * linux-low.h (install_software_single_step_breakpoints):
3700 Likewise.
3701
be628ab8
SDJ
37022017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3703
3704 * remote-utils.c: Include "gdb_termios.h" instead of
3705 "terminal.h".
3706 * terminal.h: Delete file.
3707
7c5ded6a
SDJ
37082017-04-12 Sergio Durigan Junior <sergiodj@redhat.com>
3709
3710 * server.c: Include <vector>.
3711 <program_argv, wrapper_argv>: Convert to std::vector.
3712 (start_inferior): Rewrite function to use C++.
3713 (handle_v_run): Likewise. Update code that calculates the argv
3714 based on the vRun packet; use C++.
3715 (captured_main): Likewise.
3716
436252de
SM
37172017-04-06 Simon Marchi <simon.marchi@ericsson.com>
3718
3719 * server.c (handle_v_cont): Initialize thread_resume::thread
3720 with null_ptid.
3721
9bf2a700
PA
37222017-04-05 Pedro Alves <palves@redhat.com>
3723
3724 * configure: Regenerate.
3725
a121b7c1
PA
37262017-04-05 Pedro Alves <palves@redhat.com>
3727
3728 * gdbreplay.c (sync_error): Constify.
3729 * linux-x86-low.c (push_opcode): Constify.
3730
21c8a587
PA
37312017-04-05 Pedro Alves <palves@redhat.com>
3732
3733 * win32-low.c (get_child_debug_event)
3734 <CREATE_PROCESS_DEBUG_EVENT>: Don't report TARGET_WAITKIND_EXECD.
3735 Report TARGET_WAITKIND_SPURIOUS instead.
3736
fb32b4f7
PA
37372017-04-05 Pedro Alves <palves@redhat.com>
3738
e79be6e5
SM
3739 * remote-utils.c (remote_prepare, remote_open): Constify.
3740 * remote-utils.h (remote_prepare, remote_open): Constify.
3741 * server.c (captured_main): Constify 'port' handling.
fb32b4f7 3742
65dd1e59
SM
37432017-04-04 Simon Marchi <simon.marchi@ericsson.com>
3744
3745 * Makefile.in (clean): Clear .deps.
3746
8fa5b777
SM
37472017-03-31 Simon Marchi <simon.marchi@polymtl.ca>
3748
3749 * .gitignore: Remove generated files, replace with wildcard.
3750 * (clean): Replace removal of generated files with wildcard.
3751 (version.c): Replace with...
3752 (version-generated.c): ...this.
3753 (xml-builtin.c): Replace with...
3754 (xml-builtin-generated.c): ...this.
3755 (%-ipa.o: %-generated.c, %.o: %-generated.c): New rules.
3756 (%.c: *regformats*): Replace with...
3757 (%-generated.c: *regformats*): ...this.
3758
a12e714b
MF
37592017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3760
3761 * linux-xtensa-low.c (regnum::R_THREADPTR): New enum member.
3762 (xtensa_fill_gregset): Call collect_register_by_name for
3763 threadptr register.
3764 (xtensa_store_gregset): Call supply_register_by_name for
3765 threadptr register.
3766
1a09b50a
MF
37672017-03-27 Max Filippov <jcmvbkbc@gmail.com>
3768
3769 * linux-xtensa-low.c (xtensa_fill_gregset): Call collect_register
3770 for all registers in a0_regnum..a0_regnum + C0_NREGS range.
3771 (xtensa_store_gregset): Call supply_register for all registers in
3772 a0_regnum..a0_regnum + C0_NREGS range.
3773
1a01e7c6
SM
37742017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3775
3776 * Makefile.in (%-ipa.o: %-ipa.c): New rule.
3777 (ax-ipa.o: ax.c): Remove.
3778 (linux-i386-ipa.o: linux-i386-ipa.c): Remove.
3779 (linux-amd64-ipa.o: linux-amd64-ipa.c): Remove.
3780 (linux-aarch64-ipa.o: linux-aarch64-ipa.c): Remove.
3781 (linux-s390-ipa.o: linux-s390-ipa.c): Remove.
3782 (linux-ppc-ipa.o: linux-ppc-ipa.c): Remove.
3783
36bc18a8
SM
37842017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3785
3786 * Makefile.in (%-ipa.o: ../common/%.c): New rule.
3787 (print-utils-ipa.o: ../common/print-utils.c): Remove.
3788 (rsp-low-ipa.o: ../common/rsp-low.c): Remove.
3789 (errors-ipa.o: ../common/errors.c): Remove.
3790 (format-ipa.o: ../common/format.c): Remove.
3791 (common-utils-ipa.o: ../common/common-utils.c): Remove.
3792
a8ebe3d5
SM
37932017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3794
3795 * Makefile.in (%-ipa.o: %.c): New rule.
3796 (tracepoint-ipa.o: tracepoint.c): Remove.
3797 (utils-ipa.o: utils.c): Remove.
3798 (remote-utils-ipa.o: remote-utils.c): Remove.
3799 (regcache-ipa.o: regcache.c): Remove.
3800 (i386-linux-ipa.o: i386-linux.c): Remove.
3801 (i386-mmx-linux-ipa.o: i386-mmx-linux.c): Remove.
3802 (i386-avx-linux-ipa.o: i386-avx-linux.c): Remove.
3803 (i386-mpx-linux-ipa.o: i386-mpx-linux.c): Remove.
3804 (i386-avx-mpx-linux-ipa.o: i386-avx-mpx-linux.c): Remove.
3805 (i386-avx-avx512-linux-ipa.o: i386-avx-avx512-linux.c): Remove.
3806 (i386-avx-mpx-avx512-pku-linux-ipa.o: i386-avx-mpx-avx512-pku-linux.c): Remove.
3807 (amd64-linux-ipa.o: amd64-linux.c): Remove.
3808 (amd64-avx-linux-ipa.o: amd64-avx-linux.c): Remove.
3809 (amd64-mpx-linux-ipa.o: amd64-mpx-linux.c): Remove.
3810 (amd64-avx-mpx-linux-ipa.o: amd64-avx-mpx-linux.c): Remove.
3811 (amd64-avx-avx512-linux-ipa.o: amd64-avx-avx512-linux.c): Remove.
3812 (amd64-avx-mpx-avx512-pku-linux-ipa.o: amd64-avx-mpx-avx512-pku-linux.c): Remove.
3813 (aarch64-ipa.o: aarch64.c): Remove.
3814 (s390-linux32-ipa.o: s390-linux32.c): Remove.
3815 (s390-linux32v1-ipa.o: s390-linux32v1.c): Remove.
3816 (s390-linux32v2-ipa.o: s390-linux32v2.c): Remove.
3817 (s390-linux64-ipa.o: s390-linux64.c): Remove.
3818 (s390-linux64v1-ipa.o: s390-linux64v1.c): Remove.
3819 (s390-linux64v2-ipa.o: s390-linux64v2.c): Remove.
3820 (s390-te-linux64-ipa.o: s390-te-linux64.c): Remove.
3821 (s390-vx-linux64-ipa.o: s390-vx-linux64.c): Remove.
3822 (s390-tevx-linux64-ipa.o: s390-tevx-linux64.c): Remove.
3823 (s390x-linux64-ipa.o: s390x-linux64.c): Remove.
3824 (s390x-linux64v1-ipa.o: s390x-linux64v1.c): Remove.
3825 (s390x-linux64v2-ipa.o: s390x-linux64v2.c): Remove.
3826 (s390x-te-linux64-ipa.o: s390x-te-linux64.c): Remove.
3827 (s390x-vx-linux64-ipa.o: s390x-vx-linux64.c): Remove.
3828 (s390x-tevx-linux64-ipa.o: s390x-tevx-linux64.c): Remove.
3829 (powerpc-32l-ipa.o: powerpc-32l.c): Remove.
3830 (powerpc-altivec32l-ipa.o: powerpc-altivec32l.c): Remove.
3831 (powerpc-cell32l-ipa.o: powerpc-cell32l.c): Remove.
3832 (powerpc-vsx32l-ipa.o: powerpc-vsx32l.c): Remove.
3833 (powerpc-isa205-32l-ipa.o: powerpc-isa205-32l.c): Remove.
3834 (powerpc-isa205-altivec32l-ipa.o: powerpc-isa205-altivec32l.c): Remove.
3835 (powerpc-isa205-vsx32l-ipa.o: powerpc-isa205-vsx32l.c): Remove.
3836 (powerpc-e500l-ipa.o: powerpc-e500l.c): Remove.
3837 (powerpc-64l-ipa.o: powerpc-64l.c): Remove.
3838 (powerpc-altivec64l-ipa.o: powerpc-altivec64l.c): Remove.
3839 (powerpc-cell64l-ipa.o: powerpc-cell64l.c): Remove.
3840 (powerpc-vsx64l-ipa.o: powerpc-vsx64l.c): Remove.
3841 (powerpc-isa205-64l-ipa.o: powerpc-isa205-64l.c): Remove.
3842 (powerpc-isa205-altivec64l-ipa.o: powerpc-isa205-altivec64l.c): Remove.
3843 (powerpc-isa205-vsx64l-ipa.o: powerpc-isa205-vsx64l.c): Remove.
3844 (tdesc-ipa.o: tdesc.c): Remove.
3845 (x32-linux-ipa.o: x32-linux.c): Remove.
3846 (x32-avx-linux-ipa.o: x32-avx-linux.c): Remove.
3847 (x32-avx512-linux-ipa.o: x32-avx512-linux.c): Remove.
3848
50cfacb7
SM
38492017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3850
3851 * Makefile.in (%.o: ../arch/%.c): New rule.
3852 (arm.o: ../arch/arm.c): Remove.
3853 (arm-linux.o: ../arch/arm-linux.c): Remove.
3854 (arm-get-next-pcs.o: ../arch/arm-get-next-pcs.c): Remove.
3855 (aarch64-insn.o: ../arch/aarch64-insn.c): Remove.
3856
c5a22423
SM
38572017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3858
3859 * Makefile.in (%.o: ../nat/%.c): New rule.
3860 (x86-dregs.o: ../nat/x86-dregs.c): Remove.
3861 (amd64-linux-siginfo.o: ../nat/amd64-linux-siginfo.c): Remove.
3862 (linux-btrace.o: ../nat/linux-btrace.c): Remove.
3863 (linux-osdata.o: ../nat/linux-osdata.c): Remove.
3864 (linux-procfs.o: ../nat/linux-procfs.c): Remove.
3865 (linux-ptrace.o: ../nat/linux-ptrace.c): Remove.
3866 (linux-waitpid.o: ../nat/linux-waitpid.c): Remove.
3867 (mips-linux-watch.o: ../nat/mips-linux-watch.c): Remove.
3868 (ppc-linux.o: ../nat/ppc-linux.c): Remove.
3869 (linux-personality.o: ../nat/linux-personality.c): Remove.
3870 (aarch64-linux-hw-point.o: ../nat/aarch64-linux-hw-point.c): Remove.
3871 (aarch64-linux.o: ../nat/aarch64-linux.c): Remove.
3872 (x86-linux.o: ../nat/x86-linux.c): Remove.
3873 (x86-linux-dregs.o: ../nat/x86-linux-dregs.c): Remove.
3874 (linux-namespaces.o: ../nat/linux-namespaces.c): Remove.
3875
6bda016b
SM
38762017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3877
3878 * Makefile.in (%.o: ../common/%.c): New rule.
3879 (signals.o: ../common/signals.c): Remove.
3880 (print-utils.o: ../common/print-utils.c): Remove.
3881 (rsp-low.o: ../common/rsp-low.c): Remove.
3882 (common-utils.o: ../common/common-utils.c): Remove.
3883 (posix-strerror.o: ../common/posix-strerror.c): Remove.
3884 (mingw-strerror.o: ../common/mingw-strerror.c): Remove.
3885 (vec.o: ../common/vec.c): Remove.
3886 (gdb_vecs.o: ../common/gdb_vecs.c): Remove.
3887 (xml-utils.o: ../common/xml-utils.c): Remove.
3888 (ptid.o: ../common/ptid.c): Remove.
3889 (buffer.o: ../common/buffer.c): Remove.
3890 (format.o: ../common/format.c): Remove.
3891 (filestuff.o: ../common/filestuff.c): Remove.
3892 (agent.o: ../common/agent.c): Remove.
3893 (errors.o: ../common/errors.c): Remove.
3894 (environ.o: ../common/environ.c): Remove.
3895 (common-debug.o: ../common/common-debug.c): Remove.
3896 (cleanups.o: ../common/cleanups.c): Remove.
3897 (common-exceptions.o: ../common/common-exceptions.c): Remove.
3898 (fileio.o: ../common/fileio.c): Remove.
3899 (common-regcache.o: ../common/common-regcache.c): Remove.
3900 (signals-state-save-restore.o: ../common/signals-state-save-restore.c): Remove.
3901 (new-op.o: ../common/new-op.c): Remove.
3902 (btrace-common.o: ../common/btrace-common.c): Remove.
3903
21122961
SM
39042017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3905
3906 * Makefile.in (%.o: ../target/%.c): New rule.
3907 (waitstatus.o: ../target/waitstatus.c): Remove.
3908
c362e621
SM
39092017-03-13 Simon Marchi <simon.marchi@polymtl.ca>
3910
3911 * Makefile.in
3912 (%.c: ../regformats/%.dat,
3913 (%.c: ../regformats/arm/%.dat,
3914 (%.c: ../regformats/i386/%.dat,
3915 (%.c: ../regformats/rs6000/%.dat): New rules.
3916 (aarch64.c): Remove.
3917 (reg-arm.c): Remove.
3918 (arm-with-iwmmxt.c): Remove.
3919 (arm-with-vfpv2.c): Remove.
3920 (arm-with-vfpv3.c): Remove.
3921 (arm-with-neon.c): Remove.
3922 (reg-bfin.c): Remove.
3923 (reg-cris.c): Remove.
3924 (reg-crisv32.c): Remove.
3925 (i386.c): Remove.
3926 (i386-linux.c): Remove.
3927 (i386-avx.c): Remove.
3928 (i386-avx-linux.c): Remove.
3929 (i386-avx-avx512.c): Remove.
3930 (i386-avx-avx512-linux.c): Remove.
3931 (i386-mpx.c): Remove.
3932 (i386-mpx-linux.c): Remove.
3933 (i386-avx-mpx-avx512-pku.c): Remove.
3934 (i386-avx-mpx-avx512-pku-linux.c): Remove.
3935 (i386-avx-mpx.c): Remove.
3936 (i386-avx-mpx-linux.c): Remove.
3937 (i386-mmx.c): Remove.
3938 (i386-mmx-linux.c): Remove.
3939 (reg-ia64.c): Remove.
3940 (reg-m32r.c): Remove.
3941 (reg-m68k.c): Remove.
3942 (reg-cf.c): Remove.
3943 (mips-linux.c): Remove.
3944 (mips-dsp-linux.c): Remove.
3945 (mips64-linux.c): Remove.
3946 (mips64-dsp-linux.c): Remove.
3947 (nios2-linux.c): Remove.
3948 (powerpc-32.c): Remove.
3949 (powerpc-32l.c): Remove.
3950 (powerpc-altivec32l.c): Remove.
3951 (powerpc-cell32l.c): Remove.
3952 (powerpc-vsx32l.c): Remove.
3953 (powerpc-isa205-32l.c): Remove.
3954 (powerpc-isa205-altivec32l.c): Remove.
3955 (powerpc-isa205-vsx32l.c): Remove.
3956 (powerpc-e500l.c): Remove.
3957 (powerpc-64l.c): Remove.
3958 (powerpc-altivec64l.c): Remove.
3959 (powerpc-cell64l.c): Remove.
3960 (powerpc-vsx64l.c): Remove.
3961 (powerpc-isa205-64l.c): Remove.
3962 (powerpc-isa205-altivec64l.c): Remove.
3963 (powerpc-isa205-vsx64l.c): Remove.
3964 (s390-linux32.c): Remove.
3965 (s390-linux32v1.c): Remove.
3966 (s390-linux32v2.c): Remove.
3967 (s390-linux64.c): Remove.
3968 (s390-linux64v1.c): Remove.
3969 (s390-linux64v2.c): Remove.
3970 (s390-te-linux64.c): Remove.
3971 (s390-vx-linux64.c): Remove.
3972 (s390-tevx-linux64.c): Remove.
3973 (s390x-linux64.c): Remove.
3974 (s390x-linux64v1.c): Remove.
3975 (s390x-linux64v2.c): Remove.
3976 (s390x-te-linux64.c): Remove.
3977 (s390x-vx-linux64.c): Remove.
3978 (s390x-tevx-linux64.c): Remove.
3979 (tic6x-c64xp-linux.c): Remove.
3980 (tic6x-c64x-linux.c): Remove.
3981 (tic6x-c62x-linux.c): Remove.
3982 (reg-sh.c): Remove.
3983 (reg-sparc64.c): Remove.
3984 (reg-spu.c): Remove.
3985 (amd64.c): Remove.
3986 (amd64-linux.c): Remove.
3987 (amd64-avx.c): Remove.
3988 (amd64-avx-linux.c): Remove.
3989 (amd64-avx-avx512.c): Remove.
3990 (amd64-avx-avx512-linux.c): Remove.
3991 (amd64-mpx.c): Remove.
3992 (amd64-mpx-linux.c): Remove.
3993 (amd64-avx-mpx-avx512-pku.c): Remove.
3994 (amd64-avx-mpx-avx512-pku-linux.c): Remove.
3995 (amd64-avx-mpx.c): Remove.
3996 (amd64-avx-mpx-linux.c): Remove.
3997 (x32.c): Remove.
3998 (x32-linux.c): Remove.
3999 (x32-avx.c): Remove.
4000 (x32-avx-linux.c): Remove.
4001 (x32-avx-avx512.c): Remove.
4002 (x32-avx-avx512-linux.c): Remove.
4003 (reg-xtensa.c): Remove.
4004 (reg-tilegx.c): Remove.
4005 (reg-tilegx32.c): Remove.
4006
1672e0d9
SDJ
40072017-03-07 Sergio Durigan Junior <sergiodj@redhat.com>
4008
4009 * Makefile.in (SFILES): Add "common/environ.c".
4010 (OBJS): Add "common/environ.h".
4011
239b6d10
WT
40122017-01-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
4013
4014 * configure.ac: Check if the fs_base and gs_base members of
4015 `struct user_regs_struct' exist.
4016 * config.in: Regenerated.
4017 * configure: Likewise.
4018
694b382c
AT
40192017-01-09 Antoine Tremblay <antoine.tremblay@ericsson.com>
4020
4021 * linux-aarch32-low.c (arm_breakpoint_kind_from_pc): Use
4022 target_read_memory.
4023 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer): Likewise.
4024 (get_next_pcs_syscall_next_pc): Likewise.
4025
7dc53023
LM
40262016-12-23 Luis Machado <lgustavo@codesourcery.com>
4027
4028 * win32-i386-low.c: Fix incorrect reference to a couple source files.
4029 * nto-x86-low.c: Likewise.
4030
ad02e4fe
SM
40312016-11-30 Simon Marchi <simon.marchi@polymtl.ca>
4032
4033 * Makefile.in: Include disable-implicit-rules.mk.
4034
dcb07cfa
PA
40352016-11-23 Pedro Alves <palves@redhat.com>
4036
4037 * debug.c: Include <chrono> instead of "gdb_sys_time.h".
4038 (debug_vprintf): Use std::chrono::steady_clock instead of
4039 gettimeofday. Use '.' instead of ':'.
4040 * tracepoint.c: Include <chrono> instead of "gdb_sys_time.h".
4041 (get_timestamp): Use std::chrono::steady_clock instead of
4042 gettimeofday.
4043
8629c02c
SM
40442016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4045
4046 * Makefile.in: Fix whitespace formatting.
4047
b593ecca
SM
40482016-11-22 Simon Marchi <simon.marchi@polymtl.ca>
4049
4050 * Makefile.in (SFILES, OBS): Flatten list and order
4051 alphabetically.
4052
9986ba08
PA
40532016-11-23 Pedro Alves <palves@redhat.com>
4054
4055 * event-loop.c (handle_file_event): Use warning.
4056 * linux-low.c (linux_resume_one_lwp_throw): Use warning.
4057 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
4058 Use warning.
4059
4eefa7bc
PA
40602016-11-23 Pedro Alves <palves@redhat.com>
4061
4062 * linux-low.c (check_zombie_leaders): Use debug_printf for debug
4063 output.
4064 * notif.c (handle_notif_ack, notif_event_enque): Likewise.
4065 * remote-utils.c (putpkt_binary_1, readchar, getpkt): Use
4066 debug_printf and debug_flush for debug output.
4067 * server.c (handle_general_set): Likewise.
4068 * thread-db.c (try_thread_db_load): Use debug_printf for debug
4069 output.
4070
5443506e
SM
40712016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4072
4073 * Makefile.in (.c.o): Replace rule with ...
4074 (%.o: %.c): ... this one.
4075
3b165252
SM
40762016-11-17 Simon Marchi <simon.marchi@polymtl.ca>
4077
4078 * Makefile.in: Remove @GMAKE_TRUE@ prefixes and removes lines
4079 prefixed with @GMAKE_FALSE@. Update comment related to non-GNU
4080 make.
4081 * configure.ac: Remove checks for the make program.
4082 * configure: Re-generate.
4083
0bcda685
PA
40842016-10-28 Pedro Alves <palves@redhat.com>
4085
4086 * Makefile.in (CXX_DIALECT): Get from configure.
4087 (COMPILE.pre, CC_LD): Append $(CXX_DIALECT).
4088 * acinclude.m4: Include ../ax_cxx_compile_stdcxx.m4.
4089 * configure.ac: Call AX_CXX_COMPILE_STDCXX.
4090 * config.in: Regenerate.
4091 * configure: Regenerate.
4092
c3805894
YQ
40932016-10-27 Yao Qi <yao.qi@linaro.org>
4094
4095 * linux-low.c (linux_supports_range_stepping): Return true if
4096 can_software_single_step return true.
4097
89342618
YQ
40982016-10-27 Yao Qi <yao.qi@linaro.org>
4099
4100 * inferiors.c (find_inferior_in_random): New function.
4101 * inferiors.h (find_inferior_in_random): Declare.
4102 * linux-low.c (linux_wait_for_event_filtered): Call
4103 find_inferior_in_random instead of find_inferior.
4104
e3652c84
YQ
41052016-10-27 Yao Qi <yao.qi@linaro.org>
4106
4107 * linux-low.c (linux_wait_1): If single-step breakpoints are
4108 inserted, remove them.
4109
5a04c4cf
PA
41102016-10-26 Pedro Alves <palves@redhat.com>
4111
4112 * linux-low.c (handle_extended_wait): Link parent/child fork
4113 threads.
4114 (linux_wait_1): Unlink them.
4115 (linux_set_resume_request): Ignore resume requests for
4116 already-resumed and unhandled fork child threads.
4117 * linux-low.h (struct lwp_info) <fork_relative>: New field.
4118 * server.c (in_queued_stop_replies_ptid, in_queued_stop_replies):
4119 New functions.
4120 (handle_v_requests) <vCont>: Don't call require_running.
4121 * server.h (in_queued_stop_replies): New declaration.
4122
cb93dc7f
YQ
41232016-10-24 Yao Qi <yao.qi@linaro.org>
4124
4125 PR server/20733
4126 * linux-aarch64-low.c (append_insns): Cast the return value to
4127 'uint32_t *'.
4128
a1078bea
YQ
41292016-10-10 Yao Qi <yao.qi@linaro.org>
4130
4131 * linux-aarch32-low.c (enum arm_breakpoint_kinds): Remove.
4132
1fb77080
SDJ
41332016-10-06 Sergio Durigan Junior <sergiodj@redhat.com>
4134
4135 * target.c (target_supports_multi_process): New function, moved
4136 from...
4137 * target.h (target_supports_multi_process): ... here. Remove
4138 macro.
4139
39b5a3b9
TT
41402016-10-05 Tom Tromey <tom@tromey.com>
4141
4142 PR remote/20655:
4143 * tracepoint.c (handle_tracepoint_bkpts): Check
4144 ipa_error_tracepoint, not ipa_stopping_tracepoint.
4145
c1d0b70a
YQ
41462016-10-05 Yao Qi <yao.qi@linaro.org>
4147
4148 * configure.srv: Update the path of arm-*.xml files.
4149
0a69eedb
YQ
41502016-10-05 Terry Guo <terry.guo@arm.com>
4151 Yao Qi <yao.qi@linaro.org>
4152
4153 * Makefile.in: Adjust the path of rules.
4154 * configure.srv: Update the path of xml files.
4155 * regformats/arm-with-iwmmxt.dat: Regenerated.
4156 * regformats/arm-with-neon.dat: Likewise.
4157 * regformats/arm-with-vfpv2.dat: Likewise.
4158 * regformats/arm-with-vfpv3.dat Likewise.
4159
17e16485
YQ
41602016-09-30 Yao Qi <yao.qi@linaro.org>
4161
4162 PR gdbserver/20627
4163 * target.c (target_stop_and_wait): Don't call
4164 target_continue_no_signal, use resume_stop instead.
4165
edeeb602
YQ
41662016-09-26 Yao Qi <yao.qi@linaro.org>
4167
4168 * linux-low.c (linux_wait_1): Call debug_exit.
4169
503b1c39
PA
41702016-09-23 Pedro Alves <palves@redhat.com>
4171
4172 * Makefile.in (SFILES): Add common/new-op.c.
4173 (OBS): Add common/new-op.o.
4174 (new-op.o): New rule.
4175
74172ecf
SM
41762016-09-21 Simon Marchi <simon.marchi@ericsson.com>
4177
4178 * .gitinore: Ignore more files.
4179
fc6cda2e
YQ
41802016-09-21 Yao Qi <yao.qi@linaro.org>
4181
4182 * linux-aarch32-low.c (arm_fill_gregset): Keep bits 20 to
4183 23.
4184
bc1e6c81
SDJ
41852016-09-19 Sergio Durigan Junior <sergiodj@redhat.com>
4186
4187 * server.c (start_inferior): Call target_mourn_inferior instead of
4188 mourn_inferior; pass ptid_t argument to it.
4189 (resume): Likewise.
4190 (handle_target_event): Likewise.
4191 * target.c (target_mourn_inferior): New function.
4192 * target.h (mourn_inferior): Delete macro.
4193
0e00e962
AA
41942016-09-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
4195
4196 * linux-low.c (lwp_is_stepping): New function.
4197
1d8cb77d
CL
41982016-09-06 Carl Love <cel@us.ibm.com>
4199
4200 * server.c (start_inferior): Fixed comment, requested comment change
4201 didn't get updated correctly. Removed reference to ptrace () call as
4202 it is only true on Linux systems.
4203
7313bced
CL
42042016-09-06 Carl Love <cel@us.ibm.com>
4205
4206 * server.c (start_inferior): Do not call
4207 function target_post_create_inferior () if the
4208 inferior process has already exited.
4209
cf6de44d
PA
42102016-09-05 Pedro Alves <palves@redhat.com>
4211
4212 * Makefile.in (COMPILER, COMPILER_CFLAGS): Remove.
4213 (COMPILE.pre, CC_LD): Use CXX directly.
4214 (INTERNAL_CFLAGS_BASE): Use CXXFLAGS directly.
4215 * acinclude.m4: Don't include build-with-cxx.m4.
4216 * configure.ac: Remove GDB_AC_BUILD_WITH_CXX call.
4217 * configure: Regenerate.
4218
c1da6748
AT
42192016-09-02 Akash Trehan <akash.trehan123@gmail.com>
4220
4221 PR gdb/19495
4222 * remote-utils.c (relocate_instruction): Remove redundant strcpy()
4223 call writing data to own_buf.
4224
f2b9e3df
SDJ
42252016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4226
4227 * target.c (mywait): Call target_wait instead of
4228 the_target->wait.
4229 (target_wait): New function.
4230
049a8570
SDJ
42312016-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
4232
4233 * server.c (start_inferior): New variable 'ptid'. Replace calls
4234 to the_target->resume by target_continue{,_no_signal}, depending
4235 on the case.
4236 * target.c (target_stop_and_wait): Call target_continue_no_signal
4237 instead of the_target->resume.
4238 (target_continue): New function.
4239
3aa5cfa0
AT
42402016-08-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
4241
4242 * linux-low.c (linux_wait_1): Move event switch after unsuspend_lwps.
4243
754653a7
AZ
42442016-08-25 Adhemerval Zanella <adhemerval.zanella@linaro.org>
4245
4246 PR server/20491
4247 * gdb_proc_service.h (ps_get_thread_area): Remove const from struct
4248 ps_prochandle.
4249 * linux-aarch64-low.c (ps_get_thread_area): Likewise.
4250 * linux-arm-low.c (ps_get_thread_area): Likewise.
4251 * linux-crisv32-low.c (ps_get_thread_area): Likewise.
4252 * linux-m68k-low.c (ps_get_thread_area): Likewise.
4253 * linux-mips-low.c (ps_get_thread_area): Likewise.
4254 * linux-nios2-low.c (ps_get_thread_area): Likewise.
4255 * linux-tic6x-low.c (ps_get_thread_area): Likewise.
4256 * linux-x86-low.c (ps_get_thread_area): Likewise.
4257 * linux-xtensa-low.c (ps_get_thread_area): Likewise.
4258
ed036b40
PA
42592016-08-19 Pedro Alves <palves@redhat.com>
4260
4261 * linux-x86-low.c (amd64_emit_call): Emit missing call opcode.
4262
c8ef42ee
PA
42632016-08-19 Pedro Alves <palves@redhat.com>
4264
4265 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Fix
4266 comment. Use memcpy instead of casting through unsigned long.
4267
9c235a72
PA
42682016-08-19 Pedro Alves <palves@redhat.com>
4269
4270 * linux-amd64-ipa.c (alloc_jump_pad_buffer) [__ILP32__]: Try
4271 allocating around 0x80000000.
4272
201506da
PA
42732016-08-19 Pedro Alves <palves@redhat.com>
4274
4275 PR gdb/20415
4276 * Makefile.in (x32-linux-ipa.o, x32-avx-linux-ipa.o)
4277 (x32-avx512-linux-ipa.o): New rules.
4278 * configure.ac (x86_64-*-linux*): New x32 check.
4279 * configure.srv (ipa_x32_linux_regobj): New.
4280 (x86_64-*-linux*): Use $ipa_x32_linux_regobj if building for x32.
4281 * linux-amd64-ipa.c (get_ipa_tdesc) [__ILP32__]: Return x32
4282 descriptions.
4283 (initialize_low_tracepoint) [__ILP32__]: Initialize x32
4284 descriptions.
4285 * configure: Regenerate.
4286
f348d89a
PA
42872016-08-09 Pedro Alves <palves@redhat.com>
4288
4289 PR gdb/18653
4290 * Makefile.in (OBS): Add signals-state-save-restore.o.
4291 (signals-state-save-restore.o): New rule.
4292 * config.in: Regenerate.
4293 * configure: Regenerate.
4294 * linux-low.c: Include "signals-state-save-restore.h".
4295 (linux_create_inferior): Call
4296 restore_original_signals_state.
4297 * server.c: Include "dispositions-save-restore.h".
4298 (captured_main): Call save_original_signals_state.
4299
1baf5149
PA
43002016-08-05 Pedro Alves <palves@redhat.com>
4301
4302 * configure: Regenerate.
4303
fcd4a73d
YQ
43042016-08-04 Yao Qi <yao.qi@linaro.org>
4305
4306 * linux-low.c (regsets_fetch_inferior_registers): Check
4307 errno is ESRCH or not.
4308
979659d0
YQ
43092016-08-02 Yao Qi <yao.qi@linaro.org>
4310
4311 * thread-db.c (struct thread_db) <td_ta_event_getmsg_p>: Remove.
4312 <td_ta_set_event_p, td_ta_event_addr_p>: Remove.
4313 (thread_db_load_search): Update.
4314 (try_thread_db_load_1): Don't look for td_ta_event_addr,
4315 td_ta_set_event and td_ta_event_getmsg.
4316
6598661d
PA
43172016-07-26 Pedro Alves <palves@redhat.com>
4318
4319 PR server/20414
4320 * linux-x86-low.c (x86_get_pc, x86_set_pc): Use uint64_t instead
4321 of unsigned long for 64-bit registers and use uint32_t instead of
4322 unsigned int for 32-bit registers.
4323
9cf12d57
PA
43242016-07-26 Pedro Alves <palves@redhat.com>
4325
4326 * linux-x86-low.c (x86_siginfo_fixup): Rename 'native' parameter
4327 to 'ptrace'.
4328
305450ed
TT
43292016-07-21 Tom Tromey <tom@tromey.com>
4330
4331 * configure: Rebuild.
4332
2583da7c
YQ
43332016-07-21 Yao Qi <yao.qi@linaro.org>
4334
4335 * mem-break.c (find_gdb_breakpoint): Cast bp to
4336 'struct gdb_breakpoint *' rather than 'gdb_breakpoint *'.
4337
21536b36
YQ
43382016-07-21 Yao Qi <yao.qi@linaro.org>
4339
4340 * server.c (handle_v_requests): Support s and S actions
4341 if target_supports_software_single_step return true.
4342
8901d193
YQ
43432016-07-21 Yao Qi <yao.qi@linaro.org>
4344
4345 * linux-low.c (resume_stopped_resumed_lwps): If resume request
4346 is resume_step, call maybe_hw_step.
4347 (linux_wait_1): Stop all threads, remove reinsert breakpoints,
4348 and unstop them.
4349 (linux_resume_one_lwp_throw): Don't assert the thread has reinsert
4350 breakpoints or not.
4351 (proceed_one_lwp): If resume request is resume_step, install
4352 reinsert breakpoints and call maybe_hw_step.
4353
0e9a339e
YQ
43542016-07-21 Yao Qi <yao.qi@linaro.org>
4355
4356 * linux-low.c (proceed_one_lwp): Declare.
4357 (linux_resume_one_thread): Remove local variable 'step'.
4358 Lift code enqueue signal. Call proceed_one_lwp instead of
4359 linux_resume_one_lwp.
4360
4281b351
YQ
43612016-07-21 Yao Qi <yao.qi@linaro.org>
4362
4363 * linux-low.c (linux_resume_one_thread): Call
4364 enqueue_pending_signal.
4365
984a2c04
YQ
43662016-07-21 Yao Qi <yao.qi@linaro.org>
4367
4368 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
4369 * inferiors.c (do_restore_current_thread_cleanup): New function.
4370 (make_cleanup_restore_current_thread): Likewise.
4371 * linux-low.c (install_software_single_step_breakpoints): Call
4372 make_cleanup_restore_current_thread. Switch current_thread to
4373 thread.
4374
bec903c9
YQ
43752016-07-21 Yao Qi <yao.qi@linaro.org>
4376
4377 * mem-break.c (struct reinsert_breakpoint) <ptid>: New field.
4378 (set_reinsert_breakpoint): New parameter ptid. Callers updated.
4379 (clone_one_breakpoint): Likewise.
4380 (delete_reinsert_breakpoints): Change parameter to thread.
4381 Callers updated.
4382 (has_reinsert_breakpoints): Likewise.
4383 (uninsert_reinsert_breakpoints): Likewise.
4384 (reinsert_reinsert_breakpoints): Likewise.
4385 * mem-break.h (set_reinsert_breakpoint): Update declaration.
4386 (delete_reinsert_breakpoints): Likewise.
4387 (reinsert_reinsert_breakpoints): Likewise.
4388 (uninsert_reinsert_breakpoints): Likewise.
4389 (has_reinsert_breakpoints): Likewise.
4390
63c40ec7
YQ
43912016-07-21 Yao Qi <yao.qi@linaro.org>
4392
4393 * inferiors.c (get_thread_process): Make parameter const.
4394 * inferiors.h (get_thread_process): Update declaration.
4395 * mem-break.c (clone_all_breakpoints): Remove all parameters.
4396 Add new parameters child_thread and parent_thread. Callers
4397 updated.
4398 * mem-break.h (clone_all_breakpoints): Update declaration.
4399
9aa76cd0
YQ
44002016-07-21 Yao Qi <yao.qi@linaro.org>
4401
4402 * mem-break.c (struct breakpoint) <cond_list>: Remove.
4403 <command_list, handler>: Remove.
4404 (struct gdb_breakpoint): New.
4405 (struct other_breakpoint): New.
4406 (struct reinsert_breakpoint): New.
4407 (is_gdb_breakpoint): New function.
4408 (any_persistent_commands): Update command_list if
4409 is_gdb_breakpoint returns true.
4410 (set_breakpoint): Create breakpoints according to their types.
4411 (find_gdb_breakpoint): Return 'struct gdb_breakpoint *'.
4412 (set_gdb_breakpoint_1): Likewise.
4413 (set_gdb_breakpoint): Likewise.
4414 (clear_breakpoint_conditions): Change parameter type to
4415 'struct gdb_breakpoint *'.
4416 (clear_breakpoint_commands): Likewise.
4417 (clear_breakpoint_conditions_and_commands): Likewise.
4418 (add_condition_to_breakpoint): Likewise.
4419 (add_breakpoint_condition): Likewise.
4420 (add_commands_to_breakpoint): Likewise.
4421 (check_breakpoints): Check other_breakpoint.
4422 (clone_one_breakpoint): Clone breakpopint according to its type.
4423 * mem-break.h (struct gdb_breakpoint): Declare.
4424 (set_gdb_breakpoint): Update declaration.
4425 (clear_breakpoint_conditions_and_commands): Likewise.
4426 (add_breakpoint_condition): Likewise.
4427 (add_breakpoint_commands): Likewise.
4428 * server.c (process_point_options): Change parameter type to
4429 'struct gdb_breakpoint *'.
4430
811f8301
YQ
44312016-07-21 Yao Qi <yao.qi@linaro.org>
4432
4433 * mem-break.c (set_breakpoint_at): Rename it to ...
4434 (set_breakpoint_type_at): ... it.
4435 (set_breakpoint_at): Call set_breakpoint_type_at.
4436 (set_reinsert_breakpoint): Call set_breakpoint_type_at.
4437 * mem-break.h (set_breakpoint_at): Update comments.
4438
b1c51e36
CLT
44392016-07-12 Chung-Lin Tang <cltang@codesourcery.com>
4440
4441 * linux-nios2-low.c (nios2_fill_gregset): Add type cast
4442 to buf parameter.
4443 (nios2_store_gregset): Likewise.
4444
ced2dffb
PA
44452016-07-01 Pedro Alves <palves@redhat.com>
4446 Antoine Tremblay <antoine.tremblay@ericsson.com>
4447
4448 * linux-low.c: Change interface to take the target lwp_info
4449 pointer directly and return void. Handle detaching from a zombie
4450 thread.
4451 (linux_detach_lwp_callback): New function.
4452 (linux_detach): Detach from the leader thread after detaching from
4453 the clone threads.
4454
2ac09a5b
YQ
44552016-06-28 Yao Qi <yao.qi@linaro.org>
4456
4457 * linux-aarch64-low.c (aarch64_ftrace_insn_reloc_b): Use int64_t
4458 for variable new_offset.
4459 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
4460 (aarch64_ftrace_insn_reloc_cb): Likewise.
4461 (aarch64_ftrace_insn_reloc_tb): Likewise.
4462 (aarch64_install_fast_tracepoint_jump_pad): Likewise. Use
4463 PRIx64 instead of PRIx32.
4464
79e7fd4f
YQ
44652016-06-28 Yao Qi <yao.qi@linaro.org>
4466
4467 * linux-arm-low.c (arm_get_syscall_trapinfo): New function.
4468 (the_low_target): Install arm_get_syscall_trapinfo.
4469
061fc021
YQ
44702016-06-28 Yao Qi <yao.qi@linaro.org>
4471
4472 * linux-aarch64-low.c (aarch64_get_syscall_trapinfo): New
4473 function.
4474 (the_low_target): Install aarch64_get_syscall_trapinfo.
4475
4cc32bec
YQ
44762016-06-28 Yao Qi <yao.qi@linaro.org>
4477
4478 * linux-low.c (get_syscall_trapinfo): Remove parameter sysret.
4479 Callers updated.
4480 * linux-low.h (struct linux_target_ops) <get_syscall_trapinfo>:
4481 Remove parameter sysno.
4482 * linux-x86-low.c (x86_get_syscall_trapinfo): Remove parameter
4483 sysret.
4484
782c1122
AA
44852016-06-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
4486
4487 * linux-s390-low.c (s390_emit_eq_goto): Mark function static.
4488 (s390_emit_ne_goto): Likewise.
4489 (s390_emit_lt_goto): Likewise.
4490 (s390_emit_le_goto): Likewise.
4491 (s390_emit_gt_goto): Likewise.
4492 (s390_emit_ge_goto): Likewise.
4493 (s390x_emit_eq_goto): Likewise.
4494 (s390x_emit_ne_goto): Likewise.
4495 (s390x_emit_lt_goto): Likewise.
4496 (s390x_emit_le_goto): Likewise.
4497 (s390x_emit_gt_goto): Likewise.
4498 (s390x_emit_ge_goto): Likewise.
4499 (s390_emit_ops_impl): Mark variable static.
4500 (s390x_emit_ops): Likewise.
4501
2e7b624b
YQ
45022016-06-17 Yao Qi <yao.qi@linaro.org>
4503
4504 * linux-low.c (handle_extended_wait): Call
4505 uninsert_reinsert_breakpoints for the parent process. Remove
4506 reinsert breakpoints from the child process. Reinsert them to
4507 the parent process when vfork is done.
4508 * mem-break.c (uninsert_reinsert_breakpoints): New function.
4509 (reinsert_reinsert_breakpoints): New function.
4510 * mem-break.h (uninsert_reinsert_breakpoints): Declare
4511 (reinsert_reinsert_breakpoints): Declare.
4512
8a81c5d7
YQ
45132016-06-17 Yao Qi <yao.qi@linaro.org>
4514
4515 * linux-low.c (handle_extended_wait): If the parent is doing
4516 step-over, remove the reinsert breakpoints from the forked child.
4517
f50bf8e5
YQ
45182016-06-17 Yao Qi <yao.qi@linaro.org>
4519
4520 * linux-low.c (unsuspend_all_lwps): Declare.
4521 (linux_low_filter_event): If thread exited, call finish_step_over.
4522 If step-over is finished, unsuspend other threads.
4523
8376a3cb
YQ
45242016-06-17 Yao Qi <yao.qi@linaro.org>
4525
4526 * linux-low.c (linux_resume_one_lwp_throw): Assert
4527 has_reinsert_breakpoints returns false.
4528 * mem-break.c (delete_disabled_breakpoints): Assert
4529 bp type isn't reinsert_breakpoint.
4530
f79b145d
YQ
45312016-06-17 Yao Qi <yao.qi@linaro.org>
4532
4533 * linux-low.c (maybe_hw_step): New function.
4534 (linux_resume_one_lwp_throw): Call maybe_hw_step.
4535 (finish_step_over): Switch current_thread to lwp temporarily,
4536 and assert has_reinsert_breakpoints returns true.
4537 (proceed_one_lwp): Call maybe_hw_step.
4538 * mem-break.c (has_reinsert_breakpoints): New function.
4539 * mem-break.h (has_reinsert_breakpoints): Declare.
4540
0ae534d2
JT
45412016-06-02 Jon Turney <jon.turney@dronecode.org.uk>
4542
4543 * win32-low.c (win32_create_inferior): Add pointer casts for C++.
4544
fcdad592
YQ
45452016-05-17 Yao Qi <yao.qi@linaro.org>
4546
4547 * linux-low.c (linux_stabilize_threads): Call unsuspend_all_lwps
4548 instead of find_inferior.
4549
9e784964
YQ
45502016-05-05 Yao Qi <yao.qi@linaro.org>
4551
4552 * linux-arm-low.c (get_next_pcs_read_memory_unsigned_integer):
4553 Initialize res to zero.
4554
cf2ebb6e
YQ
45552016-05-05 Yao Qi <yao.qi@linaro.org>
4556
4557 * linux-arm-low.c (arm_sigreturn_next_pc): Change type of cpsr
4558 to uint32_t.
4559
c1aebf87
UW
45602016-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4561
4562 * spu-low.c (fetch_ppc_register): Cast PowerPC-Linux-specific value
4563 used as first ptrace argument to PTRACE_TYPE_ARG1 for C++.
4564 (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4565
35fd2deb 45662016-04-28 Par Olsson <par.olsson@windriver.com>
cbe14bcf 4567 Simon Marchi <simon.marchi@ericsson.com>
35fd2deb
PO
4568
4569 * tracepoint.c (write_inferior_int8): New function.
4570 (cmd_qtenable_disable): Write enable flag using
4571 write_inferior_int8.
4572
484b3c32
YQ
45732016-04-25 Yao Qi <yao.qi@linaro.org>
4574
4575 * linux-low.c (lwp_signal_can_be_delivered): Adjust.
4576 (need_step_over_p): Return zero if the LWP has pending signals
4577 can be delivered on software single step target.
4578
85ba7d86
YQ
45792016-04-25 Yao Qi <yao.qi@linaro.org>
4580
4581 * linux-low.c (reinsert_raw_breakpoint): If bp->inserted is true
4582 return instead of error.
4583
3539aa13
YQ
45842016-04-22 Yao Qi <yao.qi@linaro.org>
4585
4586 * linux-aarch32-low.c (arm_store_gregset): Clear CPSR bits 20
4587 to 23.
4588
5b061e98
YQ
45892016-04-22 Yao Qi <yao.qi@linaro.org>
4590
4591 * linux-low.c (lwp_signal_can_be_delivered): Don't deliver
4592 signal when stepping over breakpoint with software single
4593 step.
4594
3451269c
PA
45952016-04-21 Pedro Alves <palves@redhat.com>
4596
4597 * linux-s390-low.c (s390_collect_ptrace_register)
4598 (s390_supply_ptrace_register, s390_get_hwcap): Use gdb_byte * and
4599 add casts.
4600 (s390_check_regset): Use void * instead of gdb_byte *.
4601
a2358508
PA
46022016-04-20 Pedro Alves <palves@redhat.com>
4603
4604 * configure: Renegerate.
4605
6885166d
YQ
46062016-04-20 Yao Qi <yao.qi@linaro.org>
4607
4608 * linux-aarch32-low.c: Include "arch/arm-linux.h".
4609 (arm_fill_gregset): Use ARM_CPSR_GREGNUM rather than magic
4610 number 16.
4611 (arm_store_gregset): Likewise.
4612
2b863f51
WT
46132016-04-16 Walfred Tedeschi <walfred.tedeschi@intel.com>
4614
4615 * Makefile.in (clean): Add removal for i386-avx-mpx.c,
4616 i386-avx-mpx-linux.c, amd64-avx-mpx.c and amd64-avx-mpx-linux.c.
4617 (i386-avx-mpx.c, i386-avx-mpx-linux.c, amd64-avx-mpx.c)
4618 (amd64-avx-mpx-linux.c): New rules.
4619 (amd64-avx-mpx-linux-ipa.o, i386-avx-mpx-linux-ipa.o): New rule.
4620 * configure.srv (srv_i386_regobj): Add i386-avx-mpx.o.
4621 (srv_i386_linux_regobj): Add i386-avx-mpx-linux.o.
4622 (srv_amd64_regobj): Add amd64-avx-mpx.o.
4623 (srv_amd64_linux_regobj): Add amd64-avx-mpx-linux.o.
4624 (srv_i386_xmlfiles): Add i386/i386-avx-mpx.xml.
4625 (srv_amd64_xmlfiles): Add i386/amd64-avx-mpx.xml.
4626 (srv_i386_linux_xmlfiles): Add i386/i386-avx-mpx-linux.xml.
4627 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-mpx-linux.xml.
4628 (ipa_i386_linux_regobj): Add i386-avx-mpx-linux-ipa.o.
4629 (ipa_amd64_linux_regobj): Add amd64-avx-mpx-linux-ipa.o.
4630 * linux-x86-low.c (x86_linux_read_description): Add case for
4631 X86_XSTATE_AVX_MPX_MASK.
4632 (x86_get_ipa_tdesc_idx): Add cases for avx_mpx.
4633 (initialize_low_arch): Call init_registers_amd64_avx_mpx_linux and
4634 init_registers_i386_avx_mpx_linux.
4635 * linux-i386-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4636 (initialize_low_tracepoint): Call
4637 init_registers_i386_avx_mpx_linux.
4638 * linux-amd64-ipa.c (get_ipa_tdesc): Add case for avx_mpx.
4639 (initialize_low_tracepoint): Call
4640 init_registers_amd64_avx_mpx_linux.
4641 * linux-x86-tdesc.h (X86_TDESC_AVX_MPX): New enum value.
4642 (init_registers_amd64_avx_mpx_linux, tdesc_amd64_avx_mpx_linux)
4643 (init_registers_i386_avx_mpx_linux, tdesc_i386_avx_mpx_linux): New
4644 declarations.
4645
9b30624b
PA
46462016-04-18 Pedro Alves <palves@redhat.com>
4647
4648 * configure: Regenerate.
4649
45e3745e
AT
46502016-04-13 Antoine Tremblay <antoine.tremblay@ericsson.com>
4651
4652 * linux-aarch64-low.c (aarch64_emit_add): Switch x1 and x0.
4653 (aarch64_emit_sub): Likewise.
4654
2afc13ff
PA
46552016-04-12 Pedro Alves <palves@redhat.com>
4656
4657 * utils.c (prepare_to_throw_exception): Delete.
4658
6e774b13
SM
46592016-04-05 Simon Marchi <simon.marchi@ericsson.com>
4660
4661 * Makefile.in ($(IPA_LIB)): Set SONAME of the IPA lib.
4662
4dca19f8
MK
46632016-04-05 Marcin Kościelnicki <koriakin@0x04.net>
4664
4665 * tracepoint.c (getauxval): Move to #ifdef IN_PROCESS_AGENT.
4666
d0a9981f
MK
46672016-04-03 Marcin Kościelnicki <koriakin@0x04.net>
4668
4669 * linux-aarch64-ipa.c: Add <elf.h> include.
4670 * linux-ppc-ipa.c: Add <elf.h> include.
4671 * linux-s390-ipa.c: Add <elf.h> include.
4672
252db07e
MK
46732016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4674
4675 * tracepoint.c (gdb_collect_ptr): Remove const qualifier.
4676 (get_raw_reg_ptr): Likewise.
4677 (get_trace_state_variable_value_ptr): Likewise.
4678 (set_trace_state_variable_value_ptr): Likewise.
4679 (initialize_tracepoint): Cast alloc_jump_pad_buffer result to
4680 char *.
4681
14e2b6d9
MK
46822016-03-31 Wei-cheng Wang <cole945@gmail.com>
4683 Marcin Kościelnicki <koriakin@0x04.net>
4684
4685 PR/17221
4686 * linux-ppc-low.c (emit_insns): New function.
4687 (__EMIT_ASM, _EMIT_ASM, EMIT_ASM): New macros.
4688 (ppc_emit_prologue): New function.
4689 (ppc_emit_epilogue): New function.
4690 (ppc_emit_add): New function.
4691 (ppc_emit_sub): New function.
4692 (ppc_emit_mul): New function.
4693 (ppc_emit_lsh): New function.
4694 (ppc_emit_rsh_signed): New function.
4695 (ppc_emit_rsh_unsigned): New function.
4696 (ppc_emit_ext): New function.
4697 (ppc_emit_zero_ext): New function.
4698 (ppc_emit_log_not): New function.
4699 (ppc_emit_bit_and): New function.
4700 (ppc_emit_bit_or): New function.
4701 (ppc_emit_bit_xor): New function.
4702 (ppc_emit_bit_not): New function.
4703 (ppc_emit_equal): New function.
4704 (ppc_emit_less_signed): New function.
4705 (ppc_emit_less_unsigned): New function.
4706 (ppc_emit_ref): New function.
4707 (ppc_emit_const): New function.
4708 (ppc_emit_reg): New function.
4709 (ppc_emit_pop): New function.
4710 (ppc_emit_stack_flush): New function.
4711 (ppc_emit_swap): New function.
4712 (ppc_emit_stack_adjust): New function.
4713 (ppc_emit_call): New function.
4714 (ppc_emit_int_call_1): New function.
4715 (ppc_emit_void_call_2): New function.
4716 (ppc_emit_if_goto): New function.
4717 (ppc_emit_goto): New function.
4718 (ppc_emit_eq_goto): New function.
4719 (ppc_emit_ne_goto): New function.
4720 (ppc_emit_lt_goto): New function.
4721 (ppc_emit_le_goto): New function.
4722 (ppc_emit_gt_goto): New function.
4723 (ppc_emit_ge_goto): New function.
4724 (ppc_write_goto_address): New function.
4725 (ppc_emit_ops_impl): New static variable.
4726 (ppc64v1_emit_prologue): New function.
4727 (ppc64v2_emit_prologue): New function.
4728 (ppc64_emit_epilogue): New function.
4729 (ppc64_emit_add): New function.
4730 (ppc64_emit_sub): New function.
4731 (ppc64_emit_mul): New function.
4732 (ppc64_emit_lsh): New function.
4733 (ppc64_emit_rsh_signed): New function.
4734 (ppc64_emit_rsh_unsigned): New function.
4735 (ppc64_emit_ext): New function.
4736 (ppc64_emit_zero_ext): New function.
4737 (ppc64_emit_log_not): New function.
4738 (ppc64_emit_bit_and): New function.
4739 (ppc64_emit_bit_or): New function.
4740 (ppc64_emit_bit_xor): New function.
4741 (ppc64_emit_bit_not): New function.
4742 (ppc64_emit_equal): New function.
4743 (ppc64_emit_less_signed): New function.
4744 (ppc64_emit_less_unsigned): New function.
4745 (ppc64_emit_ref): New function.
4746 (ppc64_emit_const): New function.
4747 (ppc64v1_emit_reg): New function.
4748 (ppc64v2_emit_reg): New function.
4749 (ppc64_emit_pop): New function.
4750 (ppc64_emit_stack_flush): New function.
4751 (ppc64_emit_swap): New function.
4752 (ppc64v1_emit_call): New function.
4753 (ppc64v2_emit_call): New function.
4754 (ppc64v1_emit_int_call_1): New function.
4755 (ppc64v2_emit_int_call_1): New function.
4756 (ppc64v1_emit_void_call_2): New function.
4757 (ppc64v2_emit_void_call_2): New function.
4758 (ppc64_emit_if_goto): New function.
4759 (ppc64_emit_eq_goto): New function.
4760 (ppc64_emit_ne_goto): New function.
4761 (ppc64_emit_lt_goto): New function.
4762 (ppc64_emit_le_goto): New function.
4763 (ppc64_emit_gt_goto): New function.
4764 (ppc64_emit_ge_goto): New function.
4765 (ppc64v1_emit_ops_impl): New static variable.
4766 (ppc64v2_emit_ops_impl): New static variable.
4767 (ppc_emit_ops): New function.
4768 (linux_low_target): Wire in ppc_emit_ops.
4769
a2174ba4
MK
47702016-03-31 Wei-cheng Wang <cole945@gmail.com>
4771 Marcin Kościelnicki <koriakin@0x04.net>
4772
4773 PR/17221
4774 * Makefile.in: Add powerpc-*-ipa.o
4775 * configure.srv: Add ipa_obj for powerpc*-linux.
4776 * linux-ppc-ipa.c: New file.
4777 * linux-ppc-low.c: Added linux-ppc-tdesc.h, ax.h, tracepoint.h
4778 includes.
4779 (PPC_FIELD): New macro.
4780 (PPC_SEXT): New macro.
4781 (PPC_OP6): New macro.
4782 (PPC_BO): New macro.
4783 (PPC_LI): New macro.
4784 (PPC_BD): New macro.
4785 (init_registers_*): Move prototype to linux-ppc-tdesc.h.
4786 (tdesc_*): Move declaration to linux-ppc-tdesc.h.
4787 (ppc_get_hwcap): Rename to ppc_get_auxv and add type parameter.
4788 (ppc_get_thread_area): New function.
4789 (is_elfv2_inferior): New function.
4790 (gen_ds_form): New function.
4791 (GEN_STD): New macro.
4792 (GEN_STDU): New macro.
4793 (GEN_LD): New macro.
4794 (GEN_LDU): New macro.
4795 (gen_d_form): New function.
4796 (GEN_ADDI): New macro.
4797 (GEN_ADDIS): New macro.
4798 (GEN_LI): New macro.
4799 (GEN_LIS): New macro.
4800 (GEN_ORI): New macro.
4801 (GEN_ORIS): New macro.
4802 (GEN_LWZ): New macro.
4803 (GEN_STW): New macro.
4804 (GEN_STWU): New macro.
4805 (gen_xfx_form): New function.
4806 (GEN_MFSPR): New macro.
4807 (GEN_MTSPR): New macro.
4808 (GEN_MFCR): New macro.
4809 (GEN_MTCR): New macro.
4810 (GEN_SYNC): New macro.
4811 (GEN_LWSYNC): New macro.
4812 (gen_x_form): New function.
4813 (GEN_OR): New macro.
4814 (GEN_MR): New macro.
4815 (GEN_LWARX): New macro.
4816 (GEN_STWCX): New macro.
4817 (GEN_CMPW): New macro.
4818 (gen_md_form): New function.
4819 (GEN_RLDICL): New macro.
4820 (GEN_RLDICR): New macro.
4821 (gen_i_form): New function.
4822 (GEN_B): New macro.
4823 (GEN_BL): New macro.
4824 (gen_b_form): New function.
4825 (GEN_BNE): New macro.
4826 (GEN_LOAD): New macro.
4827 (GEN_STORE): New macro.
4828 (gen_limm): New function.
4829 (gen_atomic_xchg): New function.
4830 (gen_call): New function.
4831 (ppc_relocate_instruction): New function.
4832 (ppc_install_fast_tracepoint_jump_pad): New function.
4833 (ppc_get_min_fast_tracepoint_insn_len): New function.
4834 (ppc_get_ipa_tdesc_idx): New function.
4835 (the_low_target): Wire in the new functions.
4836 (initialize_low_arch) [!__powerpc64__]: Don'it initialize 64-bit
4837 tdescs.
4838 * linux-ppc-tdesc.h: New file.
4839
a13c4696
MK
48402016-03-31 Marcin Kościelnicki <koriakin@0x04.net>
4841
4842 * linux-aarch64-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4843 (alloc_jump_pad_buffer): New function.
4844 * linux-amd64-ipa.c: Add <sys/mman.h> include.
4845 (alloc_jump_pad_buffer): New function.
4846 * linux-i386-ipa.c (alloc_jump_pad_buffer): New function.
4847 * linux-s390-ipa.c: Add <sys/mman.h> and <sys/auxv.h> includes.
4848 (alloc_jump_pad_buffer): New function.
4849 * tracepoint.c (getauxval) [!HAVE_GETAUXVAL]: New function.
4850 (initialize_tracepoint): Delegate to alloc_jump_pad_buffer.
4851 * tracepoint.h (alloc_jump_pad_buffer): New prototype.
4852 (getauxval) [!HAVE_GETAUXVAL]: New prototype.
4853
1cda1512
MK
48542016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4855
4856 * linux-aarch64-ipa.c: Rename gdb_agent_get_raw_reg to get_raw_reg.
4857 * linux-amd64-ipa.c: Likewise.
4858 * linux-i386-ipa.c: Likewise.
4859 * linux-s390-ipa.c: Likewise.
4860 * tracepoint.c: IPA-export gdb_collect_ptr instead of gdb_collect,
4861 ditto for get_raw_reg_ptr, get_trace_state_variable_value_ptr,
4862 set_trace_state_variable_value_ptr.
4863 (struct ipa_sym_addresses): Likewise.
4864 (symbol_list): Likewise.
4865 (install_fast_tracepoint): Dereference gdb_collect_ptr instead of
4866 accessing gdb_collect directly.
4867 (gdb_collect_ptr_type): New typedef.
4868 (get_raw_reg_ptr_type): New typedef.
4869 (get_trace_state_variable_value_ptr_type): New typedef.
4870 (set_trace_state_variable_value_ptr_type): New typedef.
4871 (gdb_collect_ptr): New global.
4872 (get_raw_reg_ptr): New global.
4873 (get_trace_state_variable_value_ptr): New global.
4874 (set_trace_state_variable_value_ptr): New global.
4875 (get_raw_reg_func_addr): Dereference get_raw_reg_ptr instead of
4876 accessing get_raw_reg directly.
4877 (get_get_tsv_func_addr): Likewise for
4878 get_trace_state_variable_value_ptr.
4879 (get_set_tsv_func_addr): Likewise for
4880 set_trace_state_variable_value_ptr.
4881 * tracepoint.h: Rename gdb_agent_get_raw_reg to get_raw_reg.
4882
72fb5488
SM
48832016-03-30 Simon Marchi <simon.marchi@ericsson.com>
4884
4885 * tracepoint.c (cmd_qtenable_disable): Remove whitespace.
4886
28170b88
MK
48872016-03-30 Marcin Kościelnicki <koriakin@0x04.net>
4888
4889 * remote-utils.c (look_up_one_symbol): Remove own_buf, handle 'v'
4890 packets.
4891 (relocate_instruction): Remove own_buf.
4892 * server.c (own_buf): Make global.
4893 (handle_v_requests): Make global.
4894 * server.h (own_buf): New declaration.
4895 (handle_v_requests): New prototype.
4896
f39e8743
MK
48972016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4898
4899 PR 18377
4900 * linux-s390-low.c (add_insns): New function.
4901 (s390_emit_prologue): New function.
4902 (s390_emit_epilogue): New function.
4903 (s390_emit_add): New function.
4904 (s390_emit_sub): New function.
4905 (s390_emit_mul): New function.
4906 (s390_emit_lsh): New function.
4907 (s390_emit_rsh_signed): New function.
4908 (s390_emit_rsh_unsigned): New function.
4909 (s390_emit_ext): New function.
4910 (s390_emit_log_not): New function.
4911 (s390_emit_bit_and): New function.
4912 (s390_emit_bit_or): New function.
4913 (s390_emit_bit_xor): New function.
4914 (s390_emit_bit_not): New function.
4915 (s390_emit_equal): New function.
4916 (s390_emit_less_signed): New function.
4917 (s390_emit_less_unsigned): New function.
4918 (s390_emit_ref): New function.
4919 (s390_emit_if_goto): New function.
4920 (s390_emit_goto): New function.
4921 (s390_write_goto_address): New function.
4922 (s390_emit_litpool): New function.
4923 (s390_emit_const): New function.
4924 (s390_emit_call): New function.
4925 (s390_emit_reg): New function.
4926 (s390_emit_pop): New function.
4927 (s390_emit_stack_flush): New function.
4928 (s390_emit_zero_ext): New function.
4929 (s390_emit_swap): New function.
4930 (s390_emit_stack_adjust): New function.
4931 (s390_emit_set_r2): New function.
4932 (s390_emit_int_call_1): New function.
4933 (s390_emit_void_call_2): New function.
4934 (s390_emit_eq_goto): New function.
4935 (s390_emit_ne_goto): New function.
4936 (s390_emit_lt_goto): New function.
4937 (s390_emit_le_goto): New function.
4938 (s390_emit_gt_goto): New function.
4939 (s390_emit_ge_goto): New function.
4940 (s390x_emit_prologue): New function.
4941 (s390x_emit_epilogue): New function.
4942 (s390x_emit_add): New function.
4943 (s390x_emit_sub): New function.
4944 (s390x_emit_mul): New function.
4945 (s390x_emit_lsh): New function.
4946 (s390x_emit_rsh_signed): New function.
4947 (s390x_emit_rsh_unsigned): New function.
4948 (s390x_emit_ext): New function.
4949 (s390x_emit_log_not): New function.
4950 (s390x_emit_bit_and): New function.
4951 (s390x_emit_bit_or): New function.
4952 (s390x_emit_bit_xor): New function.
4953 (s390x_emit_bit_not): New function.
4954 (s390x_emit_equal): New function.
4955 (s390x_emit_less_signed): New function.
4956 (s390x_emit_less_unsigned): New function.
4957 (s390x_emit_ref): New function.
4958 (s390x_emit_if_goto): New function.
4959 (s390x_emit_const): New function.
4960 (s390x_emit_call): New function.
4961 (s390x_emit_reg): New function.
4962 (s390x_emit_pop): New function.
4963 (s390x_emit_stack_flush): New function.
4964 (s390x_emit_zero_ext): New function.
4965 (s390x_emit_swap): New function.
4966 (s390x_emit_stack_adjust): New function.
4967 (s390x_emit_int_call_1): New function.
4968 (s390x_emit_void_call_2): New function.
4969 (s390x_emit_eq_goto): New function.
4970 (s390x_emit_ne_goto): New function.
4971 (s390x_emit_lt_goto): New function.
4972 (s390x_emit_le_goto): New function.
4973 (s390x_emit_gt_goto): New function.
4974 (s390x_emit_ge_goto): New function.
4975 (s390_emit_ops): New function.
4976 (struct linux_target_ops): Fill in emit_ops hook.
4977
abd9baf9
MK
49782016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
4979
4980 PR 18377
4981 * Makefile.in: Add s390 IPA files.
4982 * configure.srv: Build IPA for s390.
4983 * linux-s390-ipa.c: New file.
4984 * linux-s390-low.c: New includes - inttypes.h and linux-s390-tdesc.h.
4985 (init_registers_s390_linux32): Move declaration to linux-s390-tdesc.h.
4986 (tdesc_s390_linux32): Likewise.
4987 (init_registers_s390_linux32v1): Likewise.
4988 (tdesc_s390_linux32v1): Likewise.
4989 (init_registers_s390_linux32v2): Likewise.
4990 (tdesc_s390_linux32v2): Likewise.
4991 (init_registers_s390_linux64): Likewise.
4992 (tdesc_s390_linux64): Likewise.
4993 (init_registers_s390_linux64v1): Likewise.
4994 (tdesc_s390_linux64v1): Likewise.
4995 (init_registers_s390_linux64v2): Likewise.
4996 (tdesc_s390_linux64v2): Likewise.
4997 (init_registers_s390_te_linux64): Likewise.
4998 (tdesc_s390_te_linux64): Likewise.
4999 (init_registers_s390_vx_linux64): Likewise.
5000 (tdesc_s390_vx_linux64): Likewise.
5001 (init_registers_s390_tevx_linux64): Likewise.
5002 (tdesc_s390_tevx_linux64): Likewise.
5003 (init_registers_s390x_linux64): Likewise.
5004 (tdesc_s390x_linux64): Likewise.
5005 (init_registers_s390x_linux64v1): Likewise.
5006 (tdesc_s390x_linux64v1): Likewise.
5007 (init_registers_s390x_linux64v2): Likewise.
5008 (tdesc_s390x_linux64v2): Likewise.
5009 (init_registers_s390x_te_linux64): Likewise.
5010 (tdesc_s390x_te_linux64): Likewise.
5011 (init_registers_s390x_vx_linux64): Likewise.
5012 (tdesc_s390x_vx_linux64): Likewise.
5013 (init_registers_s390x_tevx_linux64): Likewise.
5014 (tdesc_s390x_tevx_linux64): Likewise.
5015 (have_hwcap_s390_vx): New static variable.
5016 (s390_arch_setup): Fill have_hwcap_s390_vx.
5017 (s390_get_thread_area): New function.
5018 (s390_ft_entry_gpr_esa): New const.
5019 (s390_ft_entry_gpr_zarch): New const.
5020 (s390_ft_entry_misc): New const.
5021 (s390_ft_entry_fr): New const.
5022 (s390_ft_entry_vr): New const.
5023 (s390_ft_main_31): New const.
5024 (s390_ft_main_64): New const.
5025 (s390_ft_exit_fr): New const.
5026 (s390_ft_exit_vr): New const.
5027 (s390_ft_exit_misc): New const.
5028 (s390_ft_exit_gpr_esa): New const.
5029 (s390_ft_exit_gpr_zarch): New const.
5030 (append_insns): New function.
5031 (s390_relocate_instruction): New function.
5032 (s390_install_fast_tracepoint_jump_pad): New function.
5033 (s390_get_min_fast_tracepoint_insn_len): New function.
5034 (s390_get_ipa_tdesc_idx): New function.
5035 (struct linux_target_ops): Wire in the above functions.
5036 (initialize_low_arch) [!__s390x__]: Don't initialize s390x tdescs.
5037 * linux-s390-tdesc.h: New file.
5038
a4105d04
MK
50392016-03-29 Marcin Kościelnicki <koriakin@0x04.net>
5040
5041 * linux-s390-low.c (s390_supports_tracepoints): New function.
5042 (struct linux_target_ops): Fill supports_tracepoints hook.
5043
35ac8b3e
YQ
50442016-03-18 Yao Qi <yao.qi@linaro.org>
5045
5046 * linux-low.c (lwp_signal_can_be_delivered): New function.
5047 (linux_resume_one_lwp_throw): Use lwp_signal_can_be_delivered.
5048
94610ec4
YQ
50492016-03-18 Yao Qi <yao.qi@linaro.org>
5050
5051 * linux-low.c (linux_resume_one_lwp_throw): Set 'signal' to
5052 0 if signal is enqueued. Remove 'signal' from one debugging
5053 message. Move one debugging message to some lines below.
5054 Remove code setting 'signal' to 0.
5055
80aea927
YQ
50562016-03-18 Yao Qi <yao.qi@linaro.org>
5057
5058 * linux-low.c (linux_low_filter_event): Remove redundant
5059 WIFSTOPPED check together with linux_wstatus_maybe_breakpoint.
5060
b04fd3be
MK
50612016-03-09 Marcin Kościelnicki <koriakin@0x04.net>
5062
5063 * linux-ppc-low.c (ppc_supports_tracepoints): New function.
5064 (struct linux_target_ops): Wire in the above.
5065
c40c8d4b
YQ
50662016-03-03 Yao Qi <yao.qi@linaro.org>
5067
5068 * linux-low.c: Update comments to start_step_over.
5069
0f8288ae
YQ
50702016-03-03 Yao Qi <yao.qi@linaro.org>
5071
5072 PR server/19736
5073 * linux-low.c (handle_extended_wait): Set child suspended
5074 if event_lwp->bp_reinsert isn't zero.
5075
fdbd04a8
YQ
50762016-03-02 Yao Qi <yao.qi@linaro.org>
5077
5078 * linux-low.c (linux_resume_one_lwp_throw): Replace code with
5079 enqueue_pending_signal.
5080
6896a8fa
MK
50812016-03-02 Marcin Kościelnicki <koriakin@0x04.net>
5082
5083 * tracepoint.c (cmd_qtstart): Only set ipa_tdesc_idx if agent
5084 is actually loaded.
5085
ab503087
MK
50862016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5087
5088 * linux-s390-low.c (s390_num_regs_3264): Define on 31-bit too.
5089 (s390_regmap_3264) [!__s390x__]: New global.
5090 (s390_collect_ptrace_register): Skip map entries containing -1.
5091 (s390_supply_ptrace_register): Ditto.
5092 (s390_fill_gprs_high): New function.
5093 (s390_store_gprs_high): New function.
5094 (s390_regsets): Add NT_S390_HIGH_GPRS.
5095 (s390_get_hwcap): Enable on 31-bit.
5096 (have_hwcap_s390_high_gprs): Enable on 31-bit.
5097 (s390_arch_setup): Enable detection of high GPRs, TDB, VX on 31-bit.
5098 Detect NT_S390_HIGH_GPRS.
5099 (s390_usrregs_info_3264): Enable on 31-bit.
5100 (s390_regs_info): Enable regs_info_3264 on 31-bit.
5101 (initialize_low_arch): Initialize s390_regsets_info_3264 on 31-bit.
5102
ae91f625
MK
51032016-02-25 Marcin Kościelnicki <koriakin@0x04.net>
5104
5105 PR gdb/13808
5106 * Makefile.in: Add i386-*-linux-ipa.o and amd64-*-linux-ipa.o.
5107 * configure.srv: Ditto.
5108 * linux-aarch64-ipa.c (get_ipa_tdesc): New function.
5109 (initialize_low_tracepoint): Remove ipa_tdesc assignment.
5110 * linux-amd64-ipa.c: Add "linux-x86-tdesc.h" include.
5111 (init_registers_amd64_linux): Remove prototype.
5112 (tdesc_amd64_linux): Remove declaration.
5113 (get_ipa_tdesc): New function.
5114 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5115 initialize remaining tdescs.
5116 * linux-i386-ipa.c: Add "linux-x86-tdesc.h" include.
5117 (init_registers_i386_linux): Remove prototype.
5118 (tdesc_i386_linux): Remove declaration.
5119 (get_ipa_tdesc): New function.
5120 (initialize_low_tracepoint): Remove ipa_tdesc assignment,
5121 initialize remaining tdescs.
5122 * linux-low.c (linux_get_ipa_tdesc_idx): New function.
5123 (linux_target_ops): wire in linux_get_ipa_tdesc_idx.
5124 * linux-low.h (struct linux_target_ops): Add get_ipa_tdesc_idx.
5125 * linux-x86-low.c: Move tdesc declarations to linux-x86-tdesc.h.
5126 (x86_get_ipa_tdesc_idx): New function.
5127 (the_low_target): Wire in x86_get_ipa_tdesc_idx.
5128 * linux-x86-tdesc.h: New file.
5129 * target.h (struct target_ops): Add get_ipa_tdesc_idx.
5130 (target_get_ipa_tdesc_idx): New macro.
5131 * tracepoint.c (ipa_tdesc_idx): New macro.
5132 (struct ipa_sym_addresses): Add addr_ipa_tdesc_idx.
5133 (symbol_list): Add ipa_tdesc_idx.
5134 (cmd_qtstart): Write ipa_tdesc_idx in the target.
5135 (ipa_tdesc): Remove.
5136 (ipa_tdesc_idx): New variable.
5137 (get_context_regcache): Use get_ipa_tdesc.
5138 (gdb_collect): Ditto.
5139 (gdb_probe): Ditto.
5140 * tracepoint.h (get_ipa_tdesc): New prototype.
5141 (ipa_tdesc): Remove.
5142
e7ad2f14
PA
51432016-02-24 Pedro Alves <palves@redhat.com>
5144
5145 * linux-low.c (check_stopped_by_breakpoint): Rename to ...
5146 (save_stop_reason): ... this. Use GDB_ARCH_IS_TRAP_HWBKPT and
5147 handle ambiguous GDB_ARCH_IS_TRAP_BRKPT / GDB_ARCH_IS_TRAP_HWBKPT.
5148 Factor out common code between the USE_SIGTRAP_SIGINFO and
5149 !USE_SIGTRAP_SIGINFO blocks.
5150 (linux_low_filter_event): Call save_stop_reason instead of
5151 check_stopped_by_breakpoint and check_stopped_by_watchpoint.
5152 Update comments.
5153 (linux_wait_1): Update comments.
5154
657f9cde
WW
51552016-02-24 Wei-cheng Wang <cole945@gmail.com>
5156
5157 * linux-ppc-low.c (ppc_supports_z_point_type): New function:
5158 (ppc_insert_point, ppc_remove_point): Insert/remove z-packet breakpoints.
5159 (ppc64_emit_ops_vector): Add target ops - ppc_supports_z_point_type,
5160 ppc_insert_point, ppc_remove_point.
5161
b00b61e1
MK
51622016-02-17 Marcin Kościelnicki <koriakin@0x04.net>
5163
5164 * linux-s390-low.c (s390_supports_z_point_type): New function.
5165 (struct linux_target_ops): Wire s390_supports_z_point_type in.
5166
553cb527
YQ
51672016-02-16 Yao Qi <yao.qi@linaro.org>
5168
5169 * linux-arm-low.c (get_next_pcs_syscall_next_pc): Remove argument
5170 PC. Get pc from regcache_read_pc.
5171
a5652c21
YQ
51722016-02-12 Yao Qi <yao.qi@linaro.org>
5173
5174 * linux-aarch64-low.c (aarch64_get_pc): Call linux_get_pc_64bit
5175 or linux_get_pc_32bit.
5176 (aarch64_set_pc): Call linux_set_pc_64bit or linux_set_pc_32bit.
5177
ed443b61
YQ
51782016-02-12 Yao Qi <yao.qi@linaro.org>
5179
5180 * linux-arm-low.c (get_next_pcs_ops): Initialize it with
5181 arm_linux_get_next_pcs_fixup.
5182
020ecd38
MK
51832016-02-12 Marcin Kościelnicki <koriakin@0x04.net>
5184
5185 * tracepoint.c (x_tracepoint_action_download): Change
5186 write_inferior_data_ptr to write_inferior_data_pointer.
5187 (cmd_qtstart): Likewise.
5188 (write_inferior_data_ptr): Remove.
5189 (download_agent_expr): Change write_inferior_data_ptr to
5190 write_inferior_data_pointer.
5191 (download_tracepoint_1): Likewise.
5192 (download_tracepoint): Likewise.
5193 (download_trace_state_variables): Likewise.
5194
7cae9051
WW
51952016-02-11 Wei-cheng Wang <cole945@gmail.com>
5196 Marcin Kościelnicki <koriakin@0x04.net>
5197
5198 * tracepoint.c (struct tracepoint_action_ops): Remove.
5199 (struct tracepoint_action): Remove ops.
5200 (m_tracepoint_action_download, r_tracepoint_action_download)
5201 (x_tracepoint_action_download, l_tracepoint_action_download): Adjust
5202 size and offset accordingly.
5203 (m_tracepoint_action_ops, r_tracepoint_action_ops)
5204 (x_tracepoint_action_ops, l_tracepoint_action_ops): Remove.
5205 (tracepoint_action_send, tracepoint_action_download): New functions.
5206 Helpers for trace action handlers.
5207 (add_tracepoint_action): Remove setup actions ops.
5208 (download_tracepoint_1, tracepoint_send_agent): Call helper functions.
5209
9f6a71b4
YQ
52102016-02-10 Yao Qi <yao.qi@linaro.org>
5211
5212 * regcache.c (regcache_raw_read_unsigned): Clear *VAL.
5213
1e94266c
SM
52142016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5215
5216 * configure.ac: Use AC_CONFIG_FILES instead of passing arguments
5217 to AC_OUTPUT.
5218 * configure: Regenerate.
5219
8adce034
SM
52202016-02-09 Simon Marchi <simon.marchi@ericsson.com>
5221
5222 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): Change
5223 void * to gdb_byte *.
5224 * linux-low.c (siginfo_fixup): Likewise.
5225 (linux_xfer_siginfo): Likewise.
5226 * linux-low.h (struct linux_target_ops) <siginfo_fixup>:
5227 Likewise.
5228 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
5229
93813b37
WT
52302016-02-02 Walfred Tedeschi <walfred.tedeschi@intel.com>
5231
5232 * configure.srv (x86_64-*-linux*): Add amd64-linux-siginfo.o
5233 to srv_tgtobj.
5234 (i[34567]86-*-linux*): Add amd64-linux-siginfo.o
5235 to srv_tgtobj.
5236 * linux-x86-low.c [__x86_64__]: Include
5237 "nat/amd64-linux-siginfo.h".
5238 (compat_siginfo_from_siginfo, siginfo_from_compat_siginfo)
5239 (compat_x32_siginfo_from_siginfo, siginfo_from_compat_x32_siginfo)
5240 (compat_timeval, compat_sigval, compat_x32_clock, cpt_si_pid)
5241 (cpt_si_uid, cpt_si_timerid, cpt_si_overrun, cpt_si_status)
5242 (cpt_si_utime, cpt_si_stime, cpt_si_ptr, cpt_si_addr, cpt_si_band)
5243 (cpt_si_fd, si_timerid, si_overrun): Move from
5244 nat/amd64-linux-siginfo.c.
5245 * Makefile.in (amd64-linux-siginfo.o:): New rule.
5246
8424cc97
SM
52472016-01-28 Simon Marchi <simon.marchi@ericsson.com>
5248
5249 * server.c (skip_to_semicolon): Remove.
5250 (process_point_options): Use strchrnul instead of
5251 skip_to_semicolon.
5252
4d18591b
YQ
52532016-01-26 Yao Qi <yao.qi@linaro.org>
5254
5255 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Remove argument pc.
5256 * linux-low.c (install_software_single_step_breakpoints): Don't
5257 call regcache_read_pc.
5258 * linux-low.h (struct linux_target_ops) <get_next_pcs>: Remove
5259 argument pc.
5260
d8020970
YQ
52612016-01-26 Yao Qi <yao.qi@linaro.org>
5262
5263 * linux-low.c (install_software_single_step_breakpoints): Call
5264 regcache_read_pc instead of get_pc.
5265
8b207339
YQ
52662016-01-26 Yao Qi <yao.qi@linaro.org>
5267
5268 * remote-utils.c (remote_close) [!USE_WIN32API]: Ignore SIGIO.
5269 (unblock_async_io): Rename to ...
5270 (block_unblock_async_io): ... it. New function.
5271 (enable_async_io): Don't install SIGIO handler. Unblock it
5272 instead.
5273 (disable_async_io): Don't ignore SIGIO. Block it instead.
5274 (initialize_async_io): Install SIGIO handler. Don't call
5275 unblock_async_io.
5276
18879fef
YQ
52772016-01-26 Yao Qi <yao.qi@linaro.org>
5278
5279 * remote-utils.c (getpkt): If the buffer isn't empty, and the
5280 first character is '\003', call *the_target->request_interrupt.
5281
a0f8e08a
YQ
52822016-01-25 Yao Qi <yao.qi@linaro.org>
5283
5284 * remote-utils.c (new_thread_notify): Remove.
5285 (dead_thread_notify): Likewise.
5286 * remote-utils.h (new_thread_notify): Remove declaration.
5287 (dead_thread_notify): Likewise.
5288
cc5fd9ab
MK
52892016-01-23 Marcin Kościelnicki <koriakin@0x04.net>
5290
5291 * gdb.trace/pending.exp: Fix expected message on continue.
5292
99e8eb11
MK
52932016-01-22 Marcin Kościelnicki <koriakin@0x04.net>
5294
5295 * tracepoint.c (write_inferior_data_ptr): Cast to uintptr_t, so that
5296 it works properly on big-endian machines where sizeof (CORE_ADDR)
5297 != sizeof (void *).
5298
a994041d
PA
52992016-01-21 Pedro Alves <palves@redhat.com>
5300
5301 * Makefile.in (COMPILER_CFLAGS, CXXFLAGS): New.
5302 (INTERNAL_CFLAGS_BASE): Use COMPILER_CFLAGS instead of CFLAGS.
5303 * configure: Regenerate.
5304
f7a6a40d
YQ
53052016-01-21 Yao Qi <yao.qi@linaro.org>
5306
5307 * linux-arm-low.c (arm_sigreturn_next_pc): Add parameter
5308 is_thumb and set it according to CPSR saved on the stack.
5309 (get_next_pcs_syscall_next_pc): Pass is_thumb to
5310 arm_sigreturn_next_pc.
5311
6f69e520
YQ
53122016-01-18 Yao Qi <yao.qi@linaro.org>
5313
5314 * linux-low.c (linux_set_pc_64bit): New function.
5315 (linux_get_pc_64bit): New function.
5316 * linux-low.h (linux_set_pc_64bit, linux_get_pc_64bit):
5317 Declare.
5318 * linux-sparc-low.c (debug_threads): Remove declaration.
5319 (sparc_get_pc): Remove.
5320 (the_low_target): Use linux_get_pc_64bit instead of
5321 sparc_get_pc.
5322 * linux-tile-low.c (tile_get_pc, tile_set_pc): Remove.
5323 (the_low_target): Use linux_get_pc_64bit and
5324 linux_set_pc_64bit.
5325
276d4552
YQ
53262016-01-18 Yao Qi <yao.qi@linaro.org>
5327
5328 * linux-arm-low.c (debug_threads): Remove declaration.
5329 (arm_get_pc, arm_set_pc): Remove.
5330 (the_low_target): Use linux_get_pc_32bit and
5331 linux_set_pc_32bit.
5332 * linux-bfin-low.c (bfin_get_pc, bfin_set_pc): Remove.
5333 (the_low_target): Use linux_get_pc_32bit and
5334 linux_set_pc_32bit.
5335 * linux-cris-low.c (debug_threads): Remove declaration.
5336 (cris_get_pc, cris_set_pc,): Remove.
5337 (the_low_target): Use linux_get_pc_32bit and
5338 linux_set_pc_32bit.
5339 * linux-crisv32-low.c (debug_threads): Remove declaration.
5340 (cris_get_pc, cris_set_pc): Remove.
5341 (the_low_target): Use linux_get_pc_32bit and
5342 linux_set_pc_32bit.
5343 * linux-low.c: Include inttypes.h.
5344 (linux_get_pc_32bit, linux_set_pc_32bit): New functions.
5345 * linux-low.h (linux_get_pc_32bit, linux_set_pc_32bit): Declare.
5346 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Remove.
5347 (the_low_target): Use linux_get_pc_32bit and
5348 linux_set_pc_32bit.
5349 * linux-m68k-low.c (m68k_get_pc, m68k_set_pc): Remove.
5350 (the_low_target): Use linux_get_pc_32bit and
5351 linux_set_pc_32bit.
5352 * linux-nios2-low.c (nios2_get_pc, nios2_set_pc): Remove.
5353 (the_low_target): Use linux_get_pc_32bit and
5354 linux_set_pc_32bit.
5355 * linux-sh-low.c (sh_get_pc, sh_set_pc): Remove.
5356 (the_low_target): Use linux_get_pc_32bit and
5357 linux_set_pc_32bit.
5358 * linux-xtensa-low.c (xtensa_get_pc, xtensa_set_pc): Remove.
5359 (the_low_target): Use linux_get_pc_32bit and
5360 linux_set_pc_32bit.
5361
eb0edac8
GB
53622016-01-18 Gary Benson <gbenson@redhat.com>
5363
5364 * configure.ac (AC_FUNC_FORK): New check.
5365 * config.in: Regenerate.
5366 * configure: Likewise.
5367
1b451dda
YQ
53682016-01-14 Yao Qi <yao.qi@linaro.org>
5369
5370 * linux-aarch32-low.c (thumb2_breakpoint): Make it static.
5371 * linux-aarch32-low.h (thumb2_breakpoint): Remove declaration.
5372 * linux-arm-low.c (arm_gdbserver_get_next_pcs): Pass 1 to
5373 arm_get_next_pcs_ctor.
5374
82075af2
JS
53752016-01-12 Josh Stone <jistone@redhat.com>
5376 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5377
5378 * inferiors.h: Include "gdb_vecs.h".
5379 (struct process_info): Add syscalls_to_catch.
5380 * inferiors.c (remove_process): Free syscalls_to_catch.
5381 * remote-utils.c (prepare_resume_reply): Report syscall_entry and
5382 syscall_return stops.
5383 * server.h (UNKNOWN_SYSCALL, ANY_SYSCALL): Define.
5384 * server.c (handle_general_set): Handle QCatchSyscalls.
5385 (handle_query): Report support for QCatchSyscalls.
5386 * target.h (struct target_ops): Add supports_catch_syscall.
5387 (target_supports_catch_syscall): New macro.
5388 * linux-low.h (struct linux_target_ops): Add get_syscall_trapinfo.
5389 (struct lwp_info): Add syscall_state.
5390 * linux-low.c (handle_extended_wait): Mark syscall_state as an entry.
5391 Maintain syscall_state and syscalls_to_catch across exec.
5392 (get_syscall_trapinfo): New function, proxy to the_low_target.
5393 (linux_low_ptrace_options): Enable PTRACE_O_TRACESYSGOOD.
5394 (linux_low_filter_event): Toggle syscall_state entry/return for
5395 syscall traps, and set it ignored for all others.
5396 (gdb_catching_syscalls_p): New function.
5397 (gdb_catch_this_syscall_p): New function.
5398 (linux_wait_1): Handle SYSCALL_SIGTRAP.
5399 (linux_resume_one_lwp_throw): Add PTRACE_SYSCALL possibility.
5400 (linux_supports_catch_syscall): New function.
5401 (linux_target_ops): Install it.
5402 * linux-x86-low.c (x86_get_syscall_trapinfo): New function.
5403 (the_low_target): Install it.
5404
8f13a3ce
MF
54052016-01-12 Mike Frysinger <vapier@gentoo.org>
5406
5407 * acinclude.m4: Include new ../warning.m4 file.
5408 * configure: Regenerated.
5409 * configure.ac: Replace all warning logic with AM_GDB_WARNINGS.
5410
5b3da067
MF
54112016-01-12 Mike Frysinger <vapier@gentoo.org>
5412
5413 * ax.c (is_goto_target): Mark static.
5414 * linux-low.c (register_addr): Likewise.
5415 (linux_fetch_registers, linux_store_registers): Likewise.
5416 * mem-break.c (any_persistent_commands): Fix old prototype.
5417 (add_commands_to_breakpoint): Mark static.
5418 * regcache.c (find_register_by_name): Delete unused func.
5419 * remote-utils.c (hex_or_minus_one): Mark static.
5420 * server.c (monitor_show_help): Mark static.
5421 (handle_query, handle_v_cont, handle_v_attach, handle_v_kill,
5422 handle_v_requests): Likewise.
5423
bc504a31
PA
54242016-01-12 Pedro Alves <palves@redhat.com>
5425
5426 Remove use of the registered trademark symbol throughout.
5427
5a0dd67a
YQ
54282016-01-08 Yao Qi <yao.qi@linaro.org>
5429
5430 * remote-utils.c (getpkt): If c is '\003', call target hook
5431 request_interrupt.
5432
b2ca446f
YQ
54332016-01-06 Yao Qi <yao.qi@linaro.org>
5434
5435 * linux-aarch32-low.h (arm_abi_breakpoint): Move to
5436 linux-aarch32-low.c.
5437 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5438 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5439 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5440 (thumb2_breakpoint): Declare.
5441 * linux-aarch32-low.c (arm_abi_breakpoint): Moved from
5442 linux-aarch32-low.h.
5443 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5444 (arm_breakpoint_len, thumb_breakpoint_len): Likewise.
5445 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5446
edd88788
JB
54472016-01-01 Joel Brobecker <brobecker@adacore.com>
5448
5449 * gdbreplay.c (gdbreplay_version): Change copyright year in
5450 version message.
5451 * server.c (gdbserver_version): Likewise.
5452
65da7f14
PP
54532015-12-28 Patrick Palka <patrick@parcs.ath.cx>
5454
5455 * server.c (crc32_table): Delete.
5456 (crc32): Use libiberty's xcrc32 function.
5457
4abd5ed2
JB
54582015-12-22 Joel Brobecker <brobecker@adacore.com>
5459
5460 * lynx-low.c (lynx_delete_thread_callback): New function.
5461 (lynx_mourn): Properly delete our process and all of its
5462 threads. Remove call to clear_inferiors.
5463
0e50fe5c
JB
54642015-12-22 Joel Brobecker <brobecker@adacore.com>
5465
5466 * target.c (thread_search_callback): Add check that
5467 the thread_stopped target callback is not NULL before
5468 calling it.
5469
35adc03f
YQ
54702015-12-21 Yao Qi <yao.qi@linaro.org>
5471
5472 * linux-aarch32-low.h [__aarch64__]: Use arm_abi_breakpoint
5473 arm breakpoint.
5474
bd2b2909
AT
54752015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5476
5477 * server.c (handle_query): Call target_supports_software_single_step.
5478
7fe5e27e
AT
54792015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5480
5481 * linux-low.c (single_step): New function.
5482 (linux_resume_one_lwp_throw): Call single_step.
5483 (start_step_over): Likewise.
5484
d9311bfa
AT
54852015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5486
5487 * Makefile.in (SFILES): Append arch/arm-linux.c,
5488 arch/arm-get-next-pcs.c.
5489 (arm-linux.o): New rule.
5490 (arm-get-next-pcs.o): New rule.
5491 * configure.srv (arm*-*-linux*): Add arm-get-next-pcs.o,
5492 arm-linux.o.
5493 * linux-aarch32-low.c (arm_abi_breakpoint): Remove macro. Moved
5494 to linux-aarch32-low.c.
5495 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5496 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5497 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5498 (thumb2_breakpoint_len): Likewise.
5499 (arm_is_thumb_mode): Make non-static.
5500 * linux-aarch32-low.h (arm_abi_breakpoint): New macro. Moved
5501 from linux-aarch32-low.c.
5502 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5503 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5504 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5505 (thumb2_breakpoint_len): Likewise.
5506 (arm_is_thumb_mode): New declaration.
5507 * linux-arm-low.c: Include arch/arm-linux.h
5508 aarch/arm-get-next-pcs.h, sys/syscall.h.
5509 (get_next_pcs_ops): New struct.
5510 (get_next_pcs_addr_bits_remove): New function.
5511 (get_next_pcs_is_thumb): New function.
5512 (get_next_pcs_read_memory_unsigned_integer): Likewise.
5513 (arm_sigreturn_next_pc): Likewise.
5514 (get_next_pcs_syscall_next_pc): Likewise.
5515 (arm_gdbserver_get_next_pcs): Likewise.
5516 (struct linux_target_ops) <arm_gdbserver_get_next_pcs>:
5517 Initialize.
5518 * linux-low.h: Move CORE_ADDR vector definition to gdb_vecs.h.
5519 * server.h: Include gdb_vecs.h.
5520
68ce2059
AT
55212015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5522
5523 * Makefile.in (SFILES): Append common/common-regcache.c.
5524 (OBS): Append common-regcache.o.
5525 (common-regcache.o): New rule.
5526 * regcache.c (init_register_cache): Initialize cache to
5527 REG_UNAVAILABLE.
5528 (regcache_raw_read_unsigned): New function.
5529 * regcache.h (REG_UNAVAILABLE, REG_VALID): Replaced by shared
5530 register_status enum.
5531
fa5308bd
AT
55322015-12-18 Antoine Tremblay <antoine.tremblay@ericsson.com>
5533
5534 * linux-aarch64-low.c (the_low_targets): Rename
5535 breakpoint_reinsert_addr to get_next_pcs.
5536 * linux-arm-low.c (the_low_targets): Likewise.
5537 * linux-bfin-low.c (the_low_targets): Likewise.
5538 * linux-cris-low.c (the_low_targets): Likewise.
5539 * linux-crisv32-low.c (the_low_targets): Likewise.
5540 * linux-low.c (can_software_single_step): Likewise.
5541 (install_software_single_step_breakpoints): New function.
5542 (start_step_over): Use install_software_single_step_breakpoints.
5543 * linux-low.h: New CORE_ADDR vector.
5544 (struct linux_target_ops) Rename breakpoint_reinsert_addr to
5545 get_next_pcs.
5546 * linux-mips-low.c (the_low_targets): Likewise.
5547 * linux-nios2-low.c (the_low_targets): Likewise.
5548 * linux-sparc-low.c (the_low_targets): Likewise.
5549
4a6ed09b
PA
55502015-12-17 Pedro Alves <palves@redhat.com>
5551
5552 * linux-low.c (linux_kill_one_lwp): Remove references to
5553 LinuxThreads.
5554 (kill_lwp): Remove HAVE_TKILL_SYSCALL check. No longer fall back
5555 to 'kill'.
5556 (linux_init_signals): Delete.
5557 (initialize_low): Adjust.
5558 * thread-db.c (thread_db_init): Remove LinuxThreads reference.
5559
7544db95
PA
55602015-12-16 Pedro Alves <palves@redhat.com>
5561
5562 * configure.ac (compiler warning flags): When testing a
5563 -Wno-foo option, check whether -Wfoo works instead.
5564 * configure: Regenerate.
5565
8020350c
DB
55662015-12-11 Don Breazeal <donb@codesourcery.com>
5567
5568 * server.c (process_serial_event): Don't exit from gdbserver
5569 in remote mode if there are still active inferiors.
5570
db91f502
YQ
55712015-12-11 Yao Qi <yao.qi@linaro.org>
5572
5573 * linux-aarch64-low.c (aarch64_breakpoint_at): Call
5574 arm_breakpoint_at if the process is 32-bit.
5575
b37a6290
YQ
55762015-12-11 Yao Qi <yao.qi@linaro.org>
5577
5578 * linux-aarch32-low.c [__aarch64__]: Use arm_abi_breakpoint
5579 arm breakpoint.
5580
17b1509a
YQ
55812015-12-07 Yao Qi <yao.qi@linaro.org>
5582
5583 * configure.srv: Append arm.o to srv_tgtobj for
5584 aarch64*-*-linux* target.
5585 * linux-aarch32-low.c (arm_abi_breakpoint): New macro. Moved
5586 from linux-arm-low.c.
5587 (arm_eabi_breakpoint, arm_breakpoint): Likewise.
5588 (arm_breakpoint_len, thumb_breakpoint): Likewise.
5589 (thumb_breakpoint_len, thumb2_breakpoint): Likewise.
5590 (thumb2_breakpoint_len): Likewise.
5591 (arm_is_thumb_mode, arm_breakpoint_at): Likewise.
5592 (arm_breakpoint_kinds): Likewise.
5593 (arm_breakpoint_kind_from_pc): Likewise.
5594 (arm_sw_breakpoint_from_kind): Likewise.
5595 (arm_breakpoint_kind_from_current_state): Likewise.
5596 * linux-aarch32-low.h (arm_breakpoint_kind_from_pc): Declare.
5597 (arm_sw_breakpoint_from_kind): Declare.
5598 (arm_breakpoint_kind_from_current_state): Declare.
5599 (arm_breakpoint_at): Declare.
5600 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): Call
5601 arm_sw_breakpoint_from_kind if process is 32-bit.
5602 (aarch64_breakpoint_kind_from_pc): New function.
5603 (aarch64_breakpoint_kind_from_current_state): New function.
5604 (the_low_target): Initialize fields breakpoint_kind_from_pc
5605 and breakpoint_kind_from_current_state.
5606 * linux-arm-low.c (arm_breakpoint_kinds): Move to
5607 linux-aarch32-low.c.
5608 (arm_abi_breakpoint, arm_eabi_breakpoint): Likewise.
5609 (arm_breakpoint, arm_breakpoint_len): Likewise.
5610 (thumb_breakpoint, thumb_breakpoint_len): Likewise.
5611 (thumb2_breakpoint, thumb2_breakpoint_len): Likewise.
5612 (arm_is_thumb_mode): Likewise.
5613 (arm_breakpoint_at): Likewise.
5614 (arm_breakpoint_kind_from_pc): Likewise.
5615 (arm_sw_breakpoint_from_kind): Likewise.
5616 (arm_breakpoint_kind_from_current_state): Likewise.
5617
5618 Revert:
5619 2015-08-04 Yao Qi <yao.qi@linaro.org>
5620
5621 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
5622 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
5623 * server.c (extended_protocol): Remove "static".
5624 * server.h (extended_protocol): Declare it.
5625
ece66d65
JS
56262015-12-04 Josh Stone <jistone@redhat.com>
5627
5628 * target.h (struct target_ops) <arch_setup>: Rename to ...
5629 (struct target_ops) <post_create_inferior>: ... this.
5630 (target_arch_setup): Rename to ...
5631 (target_post_create_inferior): ... this, calling post_create_inferior.
5632 * server.c (start_inferior): Update target_arch_setup calls to
5633 target_post_create_inferior.
5634 * linux-low.c (linux_low_ptrace_options): Forward declare.
5635 (linux_arch_setup): Update its comment for general use.
5636 (linux_post_create_inferior): New, run arch_setup and setup ptrace.
5637 (struct linux_target_ops): Use linux_post_create_inferior.
5638 * lynx-low.c (struct lynx_target_ops): Update arch_setup stub comment
5639 to post_create_inferior.
5640 * nto-low.c (struct nto_target_ops): Likewise.
5641 * spu-low.c (struct spu_target_ops): Likewise.
5642 * win32-low.c (struct win32_target_ops): Likewise.
5643
e58c48b4
AT
56442015-12-03 Antoine Tremblay <antoine.tremblay@ericsson.com>
5645
5646 * linux-arm-low.c: Remove duplicate arch/arm.h include.
5647
fbec8956
AT
56482015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5649
5650 * linux-arm-low.c (arm_reinsert_addr): Remove function.
5651 (struct linux_target_ops <breakpoint_reinsert_addr>: Set to NULL.
5652 * linux-cris-low.c (cris_reinsert_addr> Remove function.
5653 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5654 * linux-crisv32-low.c (cris_reinsert_addr): Remove function.
5655 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5656 * linux-mips-low.c (mips_reinsert_addr): Remove function.
5657 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5658 * linux-nios2-low.c (nios2_reinsert_addr): Remove function.
5659 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5660 * linux-sparc-low.c (sparc_reinsert_addr): Remove function.
5661 (struct linux_target_ops) <breakpoint_reinsert_addr>: Set to NULL.
5662
9b4c5f87
AT
56632015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5664
5665 * linux-low.c (linux_look_up_symbols): Don't call
5666 linux_supports_traceclone.
5667 * linux-low.h (thread_db_init): Remove use_events argument.
5668 * thread-db.c (thread_db_use_event): Remove global variable.
5669 (struct thread_db) <td_thr_event_enable_p>: Remove field.
5670 (struct thread_db) <td_create_bp>: Remove field.
5671 (thread_db_create_event): Remove function.
5672 (thread_db_enable_reporting): Likewise.
5673 (find_one_thread): Don't check for thread_db_use_events.
5674 (attach_thread): Likewise.
5675 (thread_db_load_search): Remove td_thr_event_enable_p initialization.
5676 (try_thread_db_load_1): Don't check for thread_db_use_events.
5677 (thread_db_init): Remove use_events argument and thread events
5678 handling.
5679 (remove_thread_event_breakpoints): Remove function.
5680 (thread_db_detach): Remove call to remove_thred_event_breakpoints.
5681
7d00775e
AT
56822015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5683
5684 * linux-aarch64-low.c (aarch64_supports_hardware_single_step):
5685 New function.
5686 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5687 * linux-arm-low.c (arm_supports_hardware_single_step): New function.
5688 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5689 * linux-bfin-low.c (bfin_supports_hardware_single_step): New function.
5690 (struct linux_target_ops) <bfin_supports_hardware_single_step>:
5691 Initialize.
5692 * linux-crisv32-low.c (cris_supports_hardware_single_step):
5693 New function.
5694 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5695 * linux-low.c (can_hardware_single_step): Use
5696 supports_hardware_single_step.
5697 (can_software_single_step): New function.
5698 (start_step_over): Call can_software_single_step.
5699 (linux_supports_hardware_single_step): New function.
5700 (struct target_ops) <supports_software_single_step>: Initialize.
5701 * linux-low.h (struct linux_target_ops)
5702 <supports_hardware_single_step>: Initialize.
5703 * linux-m32r-low.c (m32r_supports_hardware_single_step): New function.
5704 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5705 * linux-ppc-low.c (ppc_supports_hardware_single_step): New function.
5706 (struct linux_target_ops) <supports_hardware_single_step> Initialize.
5707 * linux-s390-low.c (s390_supports_hardware_single_step): New function.
5708 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5709 * linux-sh-low.c (sh_supports_hardware_single_step): New function.
5710 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5711 * linux-tic6x-low.c (tic6x_supports_hardware_single_step): New function.
5712 (struct linux_target_ops) <tic6x_supports_hardware_single_step>:
5713 Initialize.
5714 * linux-tile-low.c (tile_supports_hardware_single_step): New function.
5715 (struct linux_target_ops) <tile_supports_hardware_single_step>:
5716 Initialize.
5717 * linux-x86-low.c (x86_supports_hardware_single_step) New function.
5718 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5719 * linux-xtensa-low.c (xtensa_supports_hardware_single_step):
5720 New function.
5721 (struct linux_target_ops) <supports_hardware_single_step>: Initialize.
5722 * target.h (struct target_ops): <supports_software_single_step>:
5723 New field.
5724 (target_supports_software_single_step): New macro.
5725
2d97cd35
AT
57262015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5727
5728 * linux-low.c (linux_wait_1): Fix pc advance condition.
5729 * mem-break.c (reinsert_breakpoint_inserted_here): New function.
5730 * mem-break.h (reinsert_breakpoint_inserted_here): New declaration.
5731
769ef81f
AT
57322015-11-30 Antoine Tremblay <antoine.tremblay@ericsson.com>
5733
5734 * linux-arm-low.c (arm_is_thumb_mode): New function.
5735 (arm_breakpoint_at): Use arm_is_thumb_mode.
5736 (arm_breakpoint_kind_from_current_state): New function.
5737 (struct linux_target_ops) <breakpoint_kind_from_current_state>:
5738 Initialize.
5739 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_current_state.
5740 (linux_breakpoint_kind_from_current_state): New function.
5741 (struct target_ops <breakpoint_kind_from_current_state>: Initialize.
5742 * linux-low.h (struct linux_target_ops)
5743 <breakpoint_kind_from_current_state>: New field.
5744 * target.h (struct target_ops): Likewise.
5745 (target_breakpoint_kind_from_current_state): New macro.
5746
1bebeeca
PA
57472015-11-30 Pedro Alves <palves@redhat.com>
5748
5749 * linux-low.c (linux_resume): Wake up the event loop before
5750 returning.
5751
a67a9fae
PA
57522015-11-30 Pedro Alves <palves@redhat.com>
5753
5754 * mem-break.c (check_gdb_bp_preconditions): Remove current_thread
5755 check.
5756 (set_gdb_breakpoint): If prepare_to_access_memory fails, set *ERR
5757 to -1.
5758 * target.c (struct thread_search): New structure.
5759 (thread_search_callback): New function.
5760 (prev_general_thread): New global.
5761 (prepare_to_access_memory, done_accessing_memory): New functions.
5762 * target.h (prepare_to_access_memory, done_accessing_memory):
5763 Replace macros with function declarations.
5764
f2faf941
PA
57652015-11-30 Pedro Alves <palves@redhat.com>
5766
5767 PR 14618
5768 * linux-low.c (linux_wait_1): If the last resumed thread is gone,
5769 report TARGET_WAITKIND_NO_RESUMED.
5770 * remote-utils.c (prepare_resume_reply): Handle
5771 TARGET_WAITKIND_NO_RESUMED.
5772 * server.c (report_no_resumed): New global.
5773 (handle_query) <qSupported>: Handle "no-resumed+". Report
5774 "no-resumed+" support.
5775 (resume): When the target reports TARGET_WAITKIND_NO_RESUMED, only
5776 return error if the client doesn't support no-resumed events.
5777 (push_stop_notification): New function.
5778 (handle_target_event): Use it. Report TARGET_WAITKIND_NO_RESUMED
5779 events if the client supports them.
5780
a681f9c9
PA
57812015-11-30 Pedro Alves <palves@redhat.com>
5782
5783 * linux-low.c (thread_still_has_status_pending_p): Don't check
5784 vCont;t here.
5785 (lwp_resumed): New function.
5786 (status_pending_p_callback): Return early if the LWP is not
5787 supposed to be resumed.
5788
65706a29
PA
57892015-11-30 Pedro Alves <palves@redhat.com>
5790
5791 * linux-low.c (handle_extended_wait): Assert that the LWP's
5792 waitstatus is TARGET_WAITKIND_IGNORE. If GDB wants to hear about
5793 thread create events, leave the new child's status pending.
5794 (linux_low_filter_event): If GDB wants to hear about thread exit
5795 events, leave the LWP marked dead and don't delete it.
5796 (linux_wait_for_event_filtered): Don't check for thread exit.
5797 (filter_exit_event): New function.
5798 (linux_wait_1): Use it, when returning an exit event.
5799 (linux_resume_one_lwp_throw): Assert that the LWP's
5800 waitstatus is TARGET_WAITKIND_IGNORE.
5801 * remote-utils.c (prepare_resume_reply): Handle
5802 TARGET_WAITKIND_THREAD_CREATED and TARGET_WAITKIND_THREAD_EXITED.
5803 * server.c (report_thread_events): New global.
5804 (handle_general_set): Handle QThreadEvents.
5805 (handle_query) <qSupported>: Handle and report QThreadEvents+;
5806 (handle_target_event): Handle TARGET_WAITKIND_THREAD_CREATED and
5807 TARGET_WAITKIND_THREAD_EXITED.
5808 * server.h (report_thread_events): Declare.
5809
56cf4bed
PA
58102015-11-30 Pedro Alves <palves@redhat.com>
5811
5812 * linux-low.c (resume_stopped_resumed_lwps): Don't check whether
5813 the thread's last_resume_kind was resume_stop.
5814
500c1d85
PA
58152015-11-30 Pedro Alves <palves@redhat.com>
5816
5817 * linux-low.c (linux_attach): In non-stop mode, wait for one stop
5818 before returning.
5819
de979965
PA
58202015-11-30 Pedro Alves <palves@redhat.com>
5821
5822 * server.c (handle_v_requests): Handle vCtrlC.
5823
34c65914
PA
58242015-11-30 Pedro Alves <palves@redhat.com>
5825
5826 * gdbthread.h (find_any_thread_of_pid): Declare.
5827 * inferiors.c (thread_of_pid, find_any_thread_of_pid): New
5828 functions.
5829 * server.c (handle_query): If current_thread is NULL, look for
5830 another thread of the selected process.
5831
79efa585 58322015-11-26 Daniel Colascione <dancol@dancol.org>
01a49af8 5833 Simon Marchi <simon.marchi@ericsson.com>
79efa585
SM
5834
5835 * linux-low.c (linux_target_ops): Use linux_proc_tid_get_name.
5836 * server.c (handle_qxfer_threads_worker): Refactor to include thread
5837 name in reply.
5838 * target.h (struct target_ops) <thread_name>: New field.
5839 (target_thread_name): New macro.
5840
80d82c19
JB
58412015-11-23 Joel Brobecker <brobecker@adacore.com>
5842
5843 * regcache.h (regcache_invalidate_pid): Add declaration.
5844 * regcache.c (regcache_invalidate_pid): New function, extracted
5845 from regcache_invalidate.
5846 (regcache_invalidate): Reimplement using regcache_invalidate_pid.
5847 Add trivial documentation comment.
5848 * lynx-low.c: Use regcache_invalidate_pid instead of
5849 regcache_invalidate.
5850
64da5dd5
JB
58512015-11-23 Joel Brobecker <brobecker@adacore.com>
5852
5853 * configure.ac: Do not call AC_CHECK_TYPES for Elf32_auxv_t
5854 and Elf64_auxv_t if the target is Android.
5855
37ce4055
DE
58562015-11-22 Doug Evans <xdje42@gmail.com>
5857
5858 * target.h: #include <sys/types.h>.
5859
06e03fff
PA
58602015-11-19 Pedro Alves <palves@redhat.com>
5861
5862 * linux-low.c (linux_process_qsupported): Change prototype.
5863 Adjust.
5864 * linux-low.h (struct linux_target_ops) <process_qsupported>:
5865 Change prototype.
5866 * linux-x86-low.c (x86_linux_process_qsupported): Change prototype
5867 and adjust to loop over all features.
5868 * server.c (handle_query) <qSupported>: Adjust to call
5869 target_process_qsupported once, passing it a vector of unprocessed
5870 features.
5871 * target.h (struct target_ops) <process_qsupported>: Change
5872 prototype.
5873 (target_process_qsupported): Adjust.
5874
9a084706
PA
58752015-11-19 Pedro Alves <palves@redhat.com>
5876
5877 * configure.ac (ERROR_ON_WARNING): Don't check whether in C++
5878 mode.
5879 * configure: Regenerate.
5880
dad44a1f
PA
58812015-11-19 Pedro Alves <palves@redhat.com>
5882
5883 * configure: Regenerate.
5884
231c0592
YQ
58852015-11-19 Yao Qi <yao.qi@linaro.org>
5886
5887 * linux-aarch64-low.c (emit_data_processing_reg): Change opcode
5888 type to uint32_t.
5889
6c1c9a8b
YQ
58902015-11-19 Yao Qi <yao.qi@linaro.org>
5891
5892 * linux-aarch64-low.c (enum aarch64_operand_type): New.
5893 (struct aarch64_operand): Move enum out.
5894
9caa3311
YQ
58952015-11-19 Yao Qi <yao.qi@linaro.org>
5896
5897 * linux-aarch64-low.c (aarch64_fill_fpregset): Cast buf to
5898 struct user_fpsimd_state *.
5899 (aarch64_store_fpregset): Likewise.
5900
6a69a054
YQ
59012015-11-19 Yao Qi <yao.qi@linaro.org>
5902
5903 * linux-aarch64-low.c (aarch64_fill_gregset): Cast buf to
5904 struct user_pt_regs *.
5905 (aarch64_store_gregset): Likewise.
5906
1798301e
PA
59072015-11-18 Pedro Alves <palves@redhat.com>
5908
5909 * Makefile.in (all_object_files): Add $IPA_OBJS.
5910
ce7715e2
PA
59112015-11-17 Pedro Alves <palves@redhat.com>
5912
5913 * win32-low.c (win32_resume): Use gdb_signal_from_host,
5914 GDB_SIGNAL_0 and gdb_signal_to_string.
5915
c0879059
PA
59162015-11-17 Pedro Alves <palves@redhat.com>
5917
5918 * win32-low.c (handle_output_debug_string): Remove parameter.
5919 (win32_kill): Remove our_status local and adjust call to
5920 handle_output_debug_string.
5921 (get_child_debug_event): Adjust call to
5922 handle_output_debug_string.
5923
1996e237
SM
59242015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5925
5926 * linux-mips-low.c (mips_fill_gregset): Add cast.
5927 (mips_store_gregset): Likewise.
5928 (mips_fill_fpregset): Likewise.
5929 (mips_store_fpregset): Likewise.
5930
cbec665b
SM
59312015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5932
5933 * linux-mips-low.c (mips_add_watchpoint): Rename private to
5934 priv.
5935
eb3e3c67
SM
59362015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5937
5938 * linux-mips-low.c (mips_linux_new_thread): Change type of
5939 watch_type to enum target_hw_bp_type.
5940
171de4b8
SM
59412015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5942
5943 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type):
5944 Change return type to arm_hwbp_type.
5945
04248ead
SM
59462015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5947
5948 * linux-aarch32-low.c (arm_fill_gregset): Add cast.
5949 (arm_store_gregset): Likewise.
5950 * linux-arm-low.c (arm_get_hwcap): Likewise.
5951 (arm_read_description): Likewise.
5952
04b3479c
SM
59532015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5954
5955 * linux-aarch32-low.c (aarch32_regsets): Use NULL_REGSET.
5956
2bc84e8a
SM
59572015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5958
5959 * linux-ppc-low.c (ppc_get_hwcap): Add cast.
5960 (ppc_fill_vsxregset): Likewise.
5961 (ppc_store_vsxregset): Likewise.
5962 (ppc_fill_vrregset): Likewise.
5963 (ppc_store_vrregset): Likewise.
5964 (ppc_fill_evrregset): Likewise.
5965 (ppc_store_evrregset): Likewise.
5966
e6c5bb05
SM
59672015-11-03 Simon Marchi <simon.marchi@polymtl.ca>
5968
5969 * linux-ppc-low.c (ppc_usrregs_info): Remove
5970 forward-declaration.
5971 (ppc_arch_setup): Move lower in file.
5972
7ea45d72
SM
59732015-10-30 Simon Marchi <simon.marchi@ericsson.com>
5974
5975 * proc-service.c (ps_pdread): Change CORE_ADDR cast to uintptr_t.
5976 (ps_pdwrite): Likewise.
5977
69291610
HW
59782015-10-29 Henrik Wallin <henrik.wallin@windriver.com>
5979
5980 * linux-arm-low.c (arm_new_thread): Move pointer dereference
5981 to after assert checks.
5982
b42945fd
SM
59832015-10-29 Simon Marchi <simon.marchi@ericsson.com>
5984
5985 * proc-service.c (ps_pdread): Add/adjust casts.
5986 (ps_pdwrite): Add/adjust casts.
5987
d6f85c84
SM
59882015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5989
5990 * server.c (handle_search_memory_1): Cast return value of
5991 memmem.
5992
f98cd059
SM
59932015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
5994
5995 * server.c (write_qxfer_response): Change type of data to
5996 gdb_byte *.
5997
d2412fa5
PA
59982015-10-29 Pedro Alves <palves@redhat.com>
5999
6000 * mem-break.c (Z_packet_to_bkpt_type): Add cast.
6001
c17414a2
PA
60022015-10-29 Pedro Alves <palves@redhat.com>
6003
6004 * tracepoint.c (clear_installed_tracepoints): Add casts.
6005
e053fbc4
PA
60062015-10-29 Pedro Alves <palves@redhat.com>
6007
6008 * server.c (handle_v_cont, process_serial_event): Add enum
6009 gdb_signal casts to signal parsing code.
6010
add67df8
PA
60112015-10-29 Pedro Alves <palves@redhat.com>
6012
6013 * linux-low.h (NULL_REGSET): Define.
6014 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6015 * linux-arm-low.c (arm_regsets): Likewise.
6016 * linux-crisv32-low.c (cris_regsets): Likewise.
6017 * linux-m68k-low.c (m68k_regsets): Likewise.
6018 * linux-mips-low.c (mips_regsets): Likewise.
6019 * linux-nios2-low.c (nios2_regsets): Likewise.
6020 * linux-ppc-low.c (ppc_regsets): Likewise.
6021 * linux-s390-low.c (s390_regsets): Likewise.
6022 * linux-sh-low.c (sh_regsets): Likewise.
6023 * linux-sparc-low.c (sparc_regsets): Likewise.
6024 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6025 * linux-tile-low.c (tile_regsets): Likewise.
6026 * linux-x86-low.c (x86_regsets): Likewise.
6027 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6028
50bc912a
PA
60292015-10-29 Pedro Alves <palves@redhat.com>
6030
6031 * linux-low.h (NULL_REGSET): Define.
6032 * linux-aarch64-low.c (aarch64_regsets): Use NULL_REGSET.
6033 * linux-arm-low.c (arm_regsets): Likewise.
6034 * linux-crisv32-low.c (cris_regsets): Likewise.
6035 * linux-m68k-low.c (m68k_regsets): Likewise.
6036 * linux-mips-low.c (mips_regsets): Likewise.
6037 * linux-nios2-low.c (nios2_regsets): Likewise.
6038 * linux-ppc-low.c (ppc_regsets): Likewise.
6039 * linux-s390-low.c (s390_regsets): Likewise.
6040 * linux-sh-low.c (sh_regsets): Likewise.
6041 * linux-sparc-low.c (sparc_regsets): Likewise.
6042 * linux-tic6x-low.c (tic6x_regsets): Likewise.
6043 * linux-tile-low.c (tile_regsets): Likewise.
6044 * linux-x86-low.c (x86_regsets): Likewise.
6045 * linux-xtensa-low.c (xtensa_regsets): Likewise.
6046
682b2546
DE
60472015-10-26 Doug Evans <dje@google.com>
6048
6049 * linux-low.c (__SIGRTMIN): Move to nat/linux-nat.h.
6050
963843d4
DE
60512015-10-26 Doug Evans <dje@google.com>
6052
6053 * linux-low.c (W_STOPCODE): Moved to common/gdb_wait.h.
6054
d41401ac
DE
60552015-10-26 Doug Evans <dje@google.com>
6056
6057 * thread-db.c (find_one_thread): Cast ti.ti_tid to unsigned long
6058 for debug_printf.
6059 (attach_thread, find_new_threads_callback): Ditto.
6060
3db28855
AT
60612015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6062
6063 * mem-break.h (set_breakpoint_data): Remove.
6064
fb78e89c
AT
60652015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6066
6067 * nto-low.c (nto_sw_breakpoint_from_kind): New function.
6068 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6069 (initialize_low): Remove set_breakpoint_data call.
6070 * spu-low.c (spu_sw_breakpoint_from_kind): New function.
6071 (struct target_ops) <sw_breakpoint_from_kind>: Iniitalize.
6072 (initialize_low): Remove set_breakpoint_data call.
6073 * win32-low.c (win32_sw_breakpoint_from_kind): New function.
6074 (struct target_ops) <sw_breakpoint_from_kind>: Initialize.
6075 (initialize_low): Remove set_breakpoint_data call.
6076
2e6ee069
AT
60772015-10-23 Antoine Tremblay <antoine.tremblay@ericsson.com>
6078
6079 * linux-low.c (default_breakpoint_kind_from_pc): Move to target.c.
6080 * mem-break.c (set_breakpoint_at): Use target_breakpoint_kind_from_pc.
6081 * target.c (default_breakpoint_kind_from_pc): Moved from linux-low.c
6082 * target.h (target_breakpoint_kind_from_pc): New macro.
6083
1652a986
AT
60842015-10-22 Antoine Tremblay <antoine.tremblay@ericsson.com>
6085
6086 * linux-low.c (default_breakpoint_kind_from_pc): New function.
6087 (linux_breakpoint_kind_from_pc): Use default_breakpoint_kind_from_pc for
6088 the default breakpoint kind.
6089
abeead09
AT
60902015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6091
6092 * linux-arm-low.c (arm_supports_z_point_type): Add software
6093 breakpoint support.
6094
b0b4b501
AT
60952015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6096
6097 * linux-arm-low.c: Refactor breakpoint definitions.
6098 (arm_breakpoint_at): Adjust for arm_abi_breakpoint.
6099 (arm_sw_breakpoint_from_kind): Adjust for arm_breakpoint.
6100
8689682c
AT
61012015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6102
6103 * Makefile.in: Add arm.c/o.
6104 * configure.srv: Likewise.
6105 * linux-arm-low.c (arm_breakpoint_kinds): New enum.
6106 (arm_breakpoint_kind_from_pc): New function.
6107 (arm_sw_breakpoint_from_kind): Return proper kind.
6108 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize.
6109
27165294
AT
61102015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6111
6112 * linux-low.c (initialize_low): Ajdust for breakpoint global variables
6113 removal.
6114 * mem-break.c : Remove breakpoint_data/breakpoint_len global variables.
6115 (struct raw_breakpoint) <size>: Remove.
6116 (struct raw_breakpoint) <kind>: Add.
6117 (bp_size): New function.
6118 (bp_opcode): Likewise.
6119 (find_raw_breakpoint_at): Adjust for kind.
6120 (insert_memory_breakpoint): Adjust for kind call bp_size,bp_opcode.
6121 (remove_memory_breakpoint): Adjust for kind call bp_size.
6122 (set_raw_breakpoint_at): Adjust for kind.
6123 (set_breakpoint): Likewise.
6124 (set_breakpoint_at): Call breakpoint_kind_from_pc.
6125 (delete_raw_breakpoint): Adjust for kind.
6126 (delete_breakpoint): Likewise.
6127 (find_gdb_breakpoint): Likewise.
6128 (set_gdb_breakpoint_1): Likewise.
6129 (set_gdb_breakpoint): Likewise.
6130 (delete_gdb_breakpoint_1): Likewise.
6131 (delete_gdb_breakpoint): Likewise.
6132 (uninsert_raw_breakpoint): Likewise.
6133 (reinsert_raw_breakpoint): Likewise.
6134 (set_breakpoint_data): Remove.
6135 (validate_inserted_breakpoint): Adjust for kind call bp_size,bp_opcode.
6136 (check_mem_read): Adjust for kind call bp_size.
6137 (check_mem_write): Adjust for kind call bp_size,bp_opcode.
6138 (clone_one_breakpoint): Adjust for kind.
6139 * mem-break.h (set_gdb_breakpoint): Likewise.
6140 (delete_gdb_breakpoint): Likewise.
6141 * server.c (process_serial_event): Likewise.
6142
dd373349
AT
61432015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6144
6145 * linux-aarch64-low.c (aarch64_sw_breakpoint_from_kind): New function.
6146 (struct linux_target_ops) <breakpoint>: Remove.
6147 (struct linux_target_ops) <breakpoint_len>: Remove.
6148 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6149 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6150 * linux-arm-low.c (arm_breakpoint_kind_from_pc): New function.
6151 (arm_sw_breakpoint_from_kind): New function.
6152 * linux-bfin-low.c (bfin_sw_breakpoint_from_kind): New function.
6153 (struct linux_target_ops) <breakpoint>: Remove.
6154 (struct linux_target_ops) <breakpoint_len>: Remove.
6155 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6156 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6157 * linux-cris-low.c (cris_sw_breakpoint_from_kind): New function.
6158 (struct linux_target_ops) <breakpoint>: Remove.
6159 (struct linux_target_ops) <breakpoint_len>: Remove.
6160 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6161 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6162 * linux-crisv32-low.c (cris_sw_breakpoint_from_kind): New function.
6163 (struct linux_target_ops) <breakpoint>: Remove.
6164 (struct linux_target_ops) <breakpoint_len>: Remove.
6165 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6166 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6167 * linux-low.c (linux_wait_1): Call breakpoint_kind_from_pc
6168 and sw_breakpoint_from_kind to increment the pc.
6169 (linux_breakpoint_kind_from_pc): New function.
6170 (linux_sw_breakpoint_from_kind): New function.
6171 (struct target_ops) <sw_breakpoint_from_kind>: Initialize field.
6172 (initialize_low): Call breakpoint_kind_from_pc and
6173 sw_breakpoint_from_kind to replace breakpoint_data/len.
6174 * linux-low.h (struct linux_target_ops) <breakpoint_kind_from_pc>:
6175 New field.
6176 (struct linux_target_ops) <sw_breakpoint_from_kind>: Likewise.
6177 * linux-m32r-low.c (m32r_sw_breakpoint_from_kind): New function.
6178 (struct linux_target_ops) <breakpoint>: Remove.
6179 (struct linux_target_ops) <breakpoint_len>: Remove.
6180 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6181 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6182 * linux-m68k-low.c (m68k_sw_breakpoint_from_kind): New function.
6183 (struct linux_target_ops) <breakpoint>: Remove.
6184 (struct linux_target_ops) <breakpoint_len>: Remove.
6185 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6186 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6187 * linux-mips-low.c (mips_sw_breakpoint_from_kind): New function.
6188 (struct linux_target_ops) <breakpoint>: Remove.
6189 (struct linux_target_ops) <breakpoint_len>: Remove.
6190 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6191 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6192 * linux-nios2-low.c (nios2_sw_breakpoint_from_kind): New function.
6193 (struct linux_target_ops) <breakpoint>: Remove.
6194 (struct linux_target_ops) <breakpoint_len>: Remove.
6195 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6196 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6197 * linux-ppc-low.c (ppc_sw_breakpoint_from_kind): New function.
6198 (struct linux_target_ops) <breakpoint>: Remove.
6199 (struct linux_target_ops) <breakpoint_len>: Remove.
6200 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6201 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6202 * linux-s390-low.c (s390_sw_breakpoint_from_kind): New function.
6203 (struct linux_target_ops) <breakpoint>: Remove.
6204 (struct linux_target_ops) <breakpoint_len>: Remove.
6205 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6206 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6207 * linux-sh-low.c (sh_sw_breakpoint_from_kind): New function.
6208 (struct linux_target_ops) <breakpoint>: Remove.
6209 (struct linux_target_ops) <breakpoint_len>: Remove.
6210 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6211 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6212 * linux-sparc-low.c (sparc_sw_breakpoint_from_kind): New function.
6213 (struct linux_target_ops) <breakpoint>: Remove.
6214 (struct linux_target_ops) <breakpoint_len>: Remove.
6215 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6216 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6217 * linux-tic6x-low.c (tic6x_sw_breakpoint_from_kind): New function.
6218 (struct linux_target_ops) <breakpoint>: Remove.
6219 (struct linux_target_ops) <breakpoint_len>: Remove.
6220 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6221 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6222 * linux-tile-low.c (tile_sw_breakpoint_from_kind): New function.
6223 * linux-x86-low.c (x86_sw_breakpoint_from_kind): New function.
6224 (struct linux_target_ops) <breakpoint>: Remove.
6225 (struct linux_target_ops) <breakpoint_len>: Remove.
6226 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6227 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6228 * linux-xtensa-low.c (xtensa_sw_breakpoint_from_kind) New function.
6229 (struct linux_target_ops) <breakpoint>: Remove.
6230 (struct linux_target_ops) <breakpoint_len>: Remove.
6231 (struct linux_target_ops) <breakpoint_kind_from_pc>: Initialize field.
6232 (struct linux_target_ops) <sw_breakpoint_from_kind>: Initialize field.
6233
4cd98a19
AT
62342015-10-21 Antoine Tremblay <antoine.tremblay@ericsson.com>
6235
6236 * linux-cris-low.c (cris_get_pc): Remove void arg.
6237
774ee6d2
AR
62382015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6239
6240 * gdbserver/nto-low.c (nto_insert_point, nto_remove_point): Fix
6241 variable name.
6242
833dcd29
AR
62432015-10-16 Aleksandar Ristovski <aristovski@qnx.com>
6244
6245 * inferiors.c (thread_pid_matches_callback): New function.
6246 (find_thread_process): New function.
6247 (remove_thread): Reset current_thread.
6248 (remove_process): Assert threads have been removed first.
6249
8d689ee5
YQ
62502015-10-15 Yao Qi <yao.qi@linaro.org>
6251
6252 * linux-aarch64-low.c (aarch64_insert_point): Set len to 2
6253 if it is 3.
6254 (aarch64_remove_point): Likewise.
6255 * regcache.c (regcache_register_size): New function.
6256
1c2e1515
YQ
62572015-10-12 Yao Qi <yao.qi@linaro.org>
6258
6259 * linux-aarch64-low.c: Update all callers as emit_load_store
6260 is renamed to aarch64_emit_load_store.
6261
e1c587c3
YQ
62622015-10-12 Yao Qi <yao.qi@linaro.org>
6263
6264 * linux-aarch64-low.c: Update all callers of function renaming
6265 from emit_insn to aarch64_emit_insn.
6266
b6542f81
YQ
62672015-10-12 Yao Qi <yao.qi@linaro.org>
6268
6269 * linux-aarch64-low.c (enum aarch64_opcodes): Move to
6270 arch/aarch64-insn.h.
6271 (struct aarch64_memory_operand): Likewise.
6272 (ENCODE): Likewise.
6273 (emit_insn): Move to arch/aarch64-insn.c.
6274 (emit_b, emit_bcond, emit_cb, emit_tb): Remove.
6275 (emit_load_store): Move to arch/aarch64-insn.c.
6276 (emit_ldr, emit_ldrb, emit_ldrsw, emit_nop): Remove.
6277 (can_encode_int32): Remove.
6278
246994ce
YQ
62792015-10-12 Yao Qi <yao.qi@linaro.org>
6280
6281 * linux-aarch64-low.c (extract_signed_bitfield): Remove.
6282 (aarch64_decode_ldr_literal): Move to gdb/arch/aarch64-insn.c.
6283 (aarch64_relocate_instruction): Likewise.
6284 (struct aarch64_insn_data): Move to gdb/arch/aarch64-insn.h.
6285 (struct aarch64_insn_visitor): Likewise.
6286
0badd99f
YQ
62872015-10-12 Yao Qi <yao.qi@linaro.org>
6288
6289 * linux-aarch64-low.c (struct aarch64_insn_data): New.
6290 (struct aarch64_insn_visitor): New.
6291 (struct aarch64_insn_relocation_data): New.
6292 (aarch64_ftrace_insn_reloc_b): New function.
6293 (aarch64_ftrace_insn_reloc_b_cond): Likewise.
6294 (aarch64_ftrace_insn_reloc_cb): Likewise.
6295 (aarch64_ftrace_insn_reloc_tb): Likewise.
6296 (aarch64_ftrace_insn_reloc_adr): Likewise.
6297 (aarch64_ftrace_insn_reloc_ldr_literal): Likewise.
6298 (aarch64_ftrace_insn_reloc_others): Likewise.
6299 (visitor): New.
6300 (aarch64_relocate_instruction): Use visitor.
6301
dfaffe9d
YQ
63022015-10-12 Yao Qi <yao.qi@linaro.org>
6303
6304 * linux-aarch64-low.c (aarch64_relocate_instruction): Return
6305 int. Add argument buf.
6306 (aarch64_install_fast_tracepoint_jump_pad): Pass buf to
6307 aarch64_relocate_instruction.
6308
70b439f0
YQ
63092015-10-12 Yao Qi <yao.qi@linaro.org>
6310
6311 * linux-aarch64-low.c (aarch64_relocate_instruction): Add
6312 argument insn. Remove local variable insn. Don't call
6313 target_read_uint32.
6314 (aarch64_install_fast_tracepoint_jump_pad): Call
6315 target_read_uint32.
6316
7781c06f
YQ
63172015-09-30 Yao Qi <yao.qi@linaro.org>
6318
6319 * linux-aarch64-low.c (emit_movk): Shorten a long line.
6320 (emit_load_store_pair): Likewise.
6321
9a3c8263
SM
63222015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6323
6324 * dll.c (match_dll): Add cast(s).
6325 (unloaded_dll): Likewise.
6326 * linux-low.c (second_thread_of_pid_p): Likewise.
6327 (delete_lwp_callback): Likewise.
6328 (count_events_callback): Likewise.
6329 (select_event_lwp_callback): Likewise.
6330 (linux_set_resume_request): Likewise.
6331 * server.c (accumulate_file_name_length): Likewise.
6332 (emit_dll_description): Likewise.
6333 (handle_qxfer_threads_worker): Likewise.
6334 (visit_actioned_threads): Likewise.
6335 * thread-db.c (any_thread_of): Likewise.
6336 * tracepoint.c (same_process_p): Likewise.
6337 (match_blocktype): Likewise.
6338 (build_traceframe_info_xml): Likewise.
6339
224c3ddb
SM
63402015-09-25 Simon Marchi <simon.marchi@ericsson.com>
6341
6342 * ax.c (gdb_parse_agent_expr): Add cast to allocation result
6343 assignment.
6344 (gdb_unparse_agent_expr): Likewise.
6345 * hostio.c (require_data): Likewise.
6346 (handle_pread): Likewise.
6347 * linux-low.c (disable_regset): Likewise.
6348 (fetch_register): Likewise.
6349 (store_register): Likewise.
6350 (get_dynamic): Likewise.
6351 (linux_qxfer_libraries_svr4): Likewise.
6352 * mem-break.c (delete_fast_tracepoint_jump): Likewise.
6353 (set_fast_tracepoint_jump): Likewise.
6354 (uninsert_fast_tracepoint_jumps_at): Likewise.
6355 (reinsert_fast_tracepoint_jumps_at): Likewise.
6356 (validate_inserted_breakpoint): Likewise.
6357 (clone_agent_expr): Likewise.
6358 * regcache.c (init_register_cache): Likewise.
6359 * remote-utils.c (putpkt_binary_1): Likewise.
6360 (decode_M_packet): Likewise.
6361 (decode_X_packet): Likewise.
6362 (look_up_one_symbol): Likewise.
6363 (relocate_instruction): Likewise.
6364 (monitor_output): Likewise.
6365 * server.c (handle_search_memory): Likewise.
6366 (handle_qxfer_exec_file): Likewise.
6367 (handle_qxfer_libraries): Likewise.
6368 (handle_qxfer): Likewise.
6369 (handle_query): Likewise.
6370 (handle_v_cont): Likewise.
6371 (handle_v_run): Likewise.
6372 (captured_main): Likewise.
6373 * target.c (write_inferior_memory): Likewise.
6374 * thread-db.c (try_thread_db_load_from_dir): Likewise.
6375 * tracepoint.c (init_trace_buffer): Likewise.
6376 (add_tracepoint_action): Likewise.
6377 (add_traceframe): Likewise.
6378 (add_traceframe_block): Likewise.
6379 (cmd_qtdpsrc): Likewise.
6380 (cmd_qtdv): Likewise.
6381 (cmd_qtstatus): Likewise.
6382 (response_source): Likewise.
6383 (response_tsv): Likewise.
6384 (cmd_qtnotes): Likewise.
6385 (gdb_collect): Likewise.
6386 (initialize_tracepoint): Likewise.
6387
afbe19f8
PL
63882015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6389
6390 * linux-aarch64-low-.c: Include ax.h and tracepoint.h.
6391 (enum aarch64_opcodes) <RET>, <SUBS>, <AND>, <ORR>, <ORN>,
6392 <EOR>, <LSLV>, <LSRV>, <ASRV>, <SBFM>, <UBFM>, <CSINC>, <MUL>,
6393 <NOP>: New.
6394 (enum aarch64_condition_codes): New enum.
6395 (w0): New static global.
6396 (fp): Likewise.
6397 (lr): Likewise.
6398 (struct aarch64_memory_operand) <type>: New
6399 MEMORY_OPERAND_POSTINDEX type.
6400 (postindex_memory_operand): New helper function.
6401 (emit_ret): New function.
6402 (emit_load_store_pair): New function, factored out of emit_stp
6403 with support for MEMORY_OPERAND_POSTINDEX.
6404 (emit_stp): Rewrite using emit_load_store_pair.
6405 (emit_ldp): New function.
6406 (emit_load_store): Likewise.
6407 (emit_ldr): Mention post-index instruction in comment.
6408 (emit_ldrh): New function.
6409 (emit_ldrb): New function.
6410 (emit_ldrsw): Mention post-index instruction in comment.
6411 (emit_str): Likewise.
6412 (emit_subs): New function.
6413 (emit_cmp): Likewise.
6414 (emit_and): Likewise.
6415 (emit_orr): Likewise.
6416 (emit_orn): Likewise.
6417 (emit_eor): Likewise.
6418 (emit_mvn): Likewise.
6419 (emit_lslv): Likewise.
6420 (emit_lsrv): Likewise.
6421 (emit_asrv): Likewise.
6422 (emit_mul): Likewise.
6423 (emit_sbfm): Likewise.
6424 (emit_sbfx): Likewise.
6425 (emit_ubfm): Likewise.
6426 (emit_ubfx): Likewise.
6427 (emit_csinc): Likewise.
6428 (emit_cset): Likewise.
6429 (emit_nop): Likewise.
6430 (emit_ops_insns): New helper function.
6431 (emit_pop): Likewise.
6432 (emit_push): Likewise.
6433 (aarch64_emit_prologue): New function.
6434 (aarch64_emit_epilogue): Likewise.
6435 (aarch64_emit_add): Likewise.
6436 (aarch64_emit_sub): Likewise.
6437 (aarch64_emit_mul): Likewise.
6438 (aarch64_emit_lsh): Likewise.
6439 (aarch64_emit_rsh_signed): Likewise.
6440 (aarch64_emit_rsh_unsigned): Likewise.
6441 (aarch64_emit_ext): Likewise.
6442 (aarch64_emit_log_not): Likewise.
6443 (aarch64_emit_bit_and): Likewise.
6444 (aarch64_emit_bit_or): Likewise.
6445 (aarch64_emit_bit_xor): Likewise.
6446 (aarch64_emit_bit_not): Likewise.
6447 (aarch64_emit_equal): Likewise.
6448 (aarch64_emit_less_signed): Likewise.
6449 (aarch64_emit_less_unsigned): Likewise.
6450 (aarch64_emit_ref): Likewise.
6451 (aarch64_emit_if_goto): Likewise.
6452 (aarch64_emit_goto): Likewise.
6453 (aarch64_write_goto_address): Likewise.
6454 (aarch64_emit_const): Likewise.
6455 (aarch64_emit_call): Likewise.
6456 (aarch64_emit_reg): Likewise.
6457 (aarch64_emit_pop): Likewise.
6458 (aarch64_emit_stack_flush): Likewise.
6459 (aarch64_emit_zero_ext): Likewise.
6460 (aarch64_emit_swap): Likewise.
6461 (aarch64_emit_stack_adjust): Likewise.
6462 (aarch64_emit_int_call_1): Likewise.
6463 (aarch64_emit_void_call_2): Likewise.
6464 (aarch64_emit_eq_goto): Likewise.
6465 (aarch64_emit_ne_goto): Likewise.
6466 (aarch64_emit_lt_goto): Likewise.
6467 (aarch64_emit_le_goto): Likewise.
6468 (aarch64_emit_gt_goto): Likewise.
6469 (aarch64_emit_ge_got): Likewise.
6470 (aarch64_emit_ops_impl): New static global variable.
6471 (aarch64_emit_ops): New target function, return
6472 &aarch64_emit_ops_impl.
6473 (struct linux_target_ops): Install it.
6474
bb903df0
PL
64752015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6476
6477 * Makefile.in (linux-aarch64-ipa.o, aarch64-ipa.o): New rules.
6478 * configure.srv (aarch64*-*-linux*): Add linux-aarch64-ipa.o and
6479 aarch64-ipa.o.
6480 * linux-aarch64-ipa.c: New file.
6481 * linux-aarch64-low.c: Include arch/aarch64-insn.h, inttypes.h
6482 and endian.h.
6483 (aarch64_get_thread_area): New target method.
6484 (extract_signed_bitfield): New helper function.
6485 (aarch64_decode_ldr_literal): New function.
6486 (enum aarch64_opcodes): New enum.
6487 (struct aarch64_register): New struct.
6488 (struct aarch64_operand): New struct.
6489 (x0): New static global.
6490 (x1): Likewise.
6491 (x2): Likewise.
6492 (x3): Likewise.
6493 (x4): Likewise.
6494 (w2): Likewise.
6495 (ip0): Likewise.
6496 (sp): Likewise.
6497 (xzr): Likewise.
6498 (aarch64_register): New helper function.
6499 (register_operand): Likewise.
6500 (immediate_operand): Likewise.
6501 (struct aarch64_memory_operand): New struct.
6502 (offset_memory_operand): New helper function.
6503 (preindex_memory_operand): Likewise.
6504 (enum aarch64_system_control_registers): New enum.
6505 (ENCODE): New macro.
6506 (emit_insn): New helper function.
6507 (emit_b): New function.
6508 (emit_bcond): Likewise.
6509 (emit_cb): Likewise.
6510 (emit_tb): Likewise.
6511 (emit_blr): Likewise.
6512 (emit_stp): Likewise.
6513 (emit_ldp_q_offset): Likewise.
6514 (emit_stp_q_offset): Likewise.
6515 (emit_load_store): Likewise.
6516 (emit_ldr): Likewise.
6517 (emit_ldrsw): Likewise.
6518 (emit_str): Likewise.
6519 (emit_ldaxr): Likewise.
6520 (emit_stxr): Likewise.
6521 (emit_stlr): Likewise.
6522 (emit_data_processing_reg): Likewise.
6523 (emit_data_processing): Likewise.
6524 (emit_add): Likewise.
6525 (emit_sub): Likewise.
6526 (emit_mov): Likewise.
6527 (emit_movk): Likewise.
6528 (emit_mov_addr): Likewise.
6529 (emit_mrs): Likewise.
6530 (emit_msr): Likewise.
6531 (emit_sevl): Likewise.
6532 (emit_wfe): Likewise.
6533 (append_insns): Likewise.
6534 (can_encode_int32_in): New helper function.
6535 (aarch64_relocate_instruction): New function.
6536 (aarch64_install_fast_tracepoint_jump_pad): Likewise.
6537 (aarch64_get_min_fast_tracepoint_insn_len): Likewise.
6538 (struct linux_target_ops): Install aarch64_get_thread_area,
6539 aarch64_install_fast_tracepoint_jump_pad and
6540 aarch64_get_min_fast_tracepoint_insn_len.
6541
787749ea
PL
65422015-09-21 Pierre Langlois <pierre.langlois@arm.com>
6543
6544 * Makefile.in (aarch64-insn.o): New rule.
6545 * configure.srv (aarch64*-*-linux*): Add aarch64-insn.o.
6546
9812b2e6
YQ
65472015-09-21 Yao Qi <yao.qi@linaro.org>
6548
6549 * ax.c [!IN_PROCESS_AGENT] (gdb_agent_op_sizes): Define it.
6550
18fe412b
YQ
65512015-09-21 Yao Qi <yao.qi@linaro.org>
6552
6553 * tracepoint.c (max_jump_pad_size): Remove.
6554
a0cc84cd
YQ
65552015-09-18 Yao Qi <yao.qi@linaro.org>
6556
6557 * linux-aarch64-low.c: Don't include sys/uio.h.
6558 (ps_get_thread_area): Call aarch64_ps_get_thread_area.
6559
d78908cf
WW
65602015-09-16 Wei-cheng Wang <cole945@gmail.com>
6561
6562 * tracepoint.c (eval_result_type): Change prototype.
6563 (condition_true_at_tracepoint): Fix argument to compiled_cond.
6564
d57e0d50
PA
65652015-09-15 Pedro Alves <palves@redhat.com>
6566
6567 * remote-utils.c (prepare_resume_reply) <TARGET_WAITKIND_EXECD>:
6568 Check whether to report exec events instead of checking whether
6569 multiprocess is enabled.
6570
5a676acc
PA
65712015-09-15 Pedro Alves <palves@redhat.com>
6572
6573 PR remote/18965
6574 * remote-utils.c (prepare_resume_reply): Merge
6575 TARGET_WAITKIND_VFORK_DONE switch case with the
6576 TARGET_WAITKIND_FORKED case.
6577
7c5d0fad
YQ
65782015-09-15 Yao Qi <yao.qi@linaro.org>
6579
6580 * server.c (handle_query): Check string comparison using
6581 "else if" instead of "if".
6582
750ce8d1
YQ
65832015-09-15 Yao Qi <yao.qi@linaro.org>
6584
6585 * server.c (vCont_supported): New global variable.
6586 (handle_query): Set vCont_supported to 1 if "vContSupported+"
6587 matches. Append ";vContSupported+" to own_buf.
6588 (handle_v_requests): Append ";s;S" to own_buf if target supports
6589 hardware single step or vCont_supported is false.
6590 (capture_main): Set vCont_supported to zero.
6591
70b90b91
YQ
65922015-09-15 Yao Qi <yao.qi@linaro.org>
6593
6594 * linux-low.c (linux_supports_conditional_breakpoints): Rename
6595 it to ...
6596 (linux_supports_hardware_single_step): ... New function.
6597 (linux_target_ops): Update.
6598 * lynx-low.c (lynx_target_ops): Set field
6599 supports_hardware_single_step to target_can_do_hardware_single_step.
6600 * nto-low.c (nto_target_ops): Likewise.
6601 * spu-low.c (spu_target_ops): Likewise.
6602 * win32-low.c (win32_target_ops): Likewise.
6603 * target.c (target_can_do_hardware_single_step): New function.
6604 * target.h (struct target_ops) <supports_conditional_breakpoints>:
6605 Remove. <supports_hardware_single_step>: New field.
6606 (target_supports_conditional_breakpoints): Remove.
6607 (target_supports_hardware_single_step): New macro.
6608 (target_can_do_hardware_single_step): Declare.
6609 * server.c (handle_query): Use target_supports_hardware_single_step
6610 instead of target_supports_conditional_breakpoints.
6611
ade90bde
YQ
66122015-09-15 Yao Qi <yao.qi@linaro.org>
6613
6614 * linux-aarch64-low.c (aarch64_linux_siginfo_fixup): New
6615 function.
6616 (struct linux_target_ops the_low_target): Install
6617 aarch64_linux_siginfo_fixup.
6618
94585166
DB
66192015-09-11 Don Breazeal <donb@codesourcery.com>
6620 Luis Machado <lgustavo@codesourcery.com>
6621
6622 * linux-low.c (linux_mourn): Static declaration.
6623 (linux_arch_setup): Move in front of
6624 handle_extended_wait.
6625 (linux_arch_setup_thread): New function.
6626 (handle_extended_wait): Handle exec events. Call
6627 linux_arch_setup_thread. Make event_lwp argument a
6628 pointer-to-a-pointer.
6629 (check_zombie_leaders): Do not check stopped threads.
6630 (linux_low_ptrace_options): Add PTRACE_O_TRACEEXEC.
6631 (linux_low_filter_event): Add lwp and thread for exec'ing
6632 non-leader thread if leader thread has been deleted.
6633 Refactor code into linux_arch_setup_thread and call it.
6634 Pass child lwp pointer by reference to handle_extended_wait.
6635 (linux_wait_for_event_filtered): Update comment.
6636 (linux_wait_1): Prevent clobbering exec event status.
6637 (linux_supports_exec_events): New function.
6638 (linux_target_ops) <supports_exec_events>: Initialize new member.
6639 * lynx-low.c (lynx_target_ops) <supports_exec_events>: Initialize
6640 new member.
6641 * remote-utils.c (prepare_resume_reply): New stop reason 'exec'.
6642 * server.c (report_exec_events): New global variable.
6643 (handle_query): Handle qSupported query for exec-events feature.
6644 (captured_main): Initialize report_exec_events.
6645 * server.h (report_exec_events): Declare new global variable.
6646 * target.h (struct target_ops) <supports_exec_events>: New
6647 member.
6648 (target_supports_exec_events): New macro.
6649 * win32-low.c (win32_target_ops) <supports_exec_events>:
6650 Initialize new member.
6651
0568462b
MM
66522015-09-09 Markus Metzger <markus.t.metzger@intel.com>
6653
6654 * linux-low.c (linux_low_enable_btrace): Remove.
6655 (linux_target_ops): Replace linux_low_enable_btrace with
6656 linux_enable_btrace.
6657
39edd165
YQ
66582015-09-03 Yao Qi <yao.qi@linaro.org>
6659
6660 * linux-aarch64-low.c (aarch64_insert_point): Call
6661 aarch64_handle_watchpoint if aarch64_linux_region_ok_for_watchpoint
6662 returns true.
6663
1db33b5a
UW
66642015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6665
6666 * linux-low.c (check_stopped_by_breakpoint): Use
6667 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
6668
ab290430
PA
66692015-08-27 Pedro Alves <palves@redhat.com>
6670
6671 * proc-service.c (ps_pdwrite): Return PS_ERR/PS_OK explicily.
6672
8d749320
SM
66732015-08-26 Simon Marchi <simon.marchi@ericsson.com>
6674
6711b7f8
SM
6675 * ax.c (gdb_parse_agent_expr): Replace xmalloc-family function with
6676 the XNEW-family equivalent.
8d749320
SM
6677 (compile_bytecodes): Likewise.
6678 * dll.c (loaded_dll): Likewise.
6679 * event-loop.c (append_callback_event): Likewise.
6680 (create_file_handler): Likewise.
6681 (create_file_event): Likewise.
6682 * hostio.c (handle_open): Likewise.
6683 * inferiors.c (add_thread): Likewise.
6684 (add_process): Likewise.
6685 * linux-aarch64-low.c (aarch64_linux_new_process): Likewise.
6686 * linux-arm-low.c (arm_new_process): Likewise.
6687 (arm_new_thread): Likewise.
6688 * linux-low.c (add_to_pid_list): Likewise.
6689 (linux_add_process): Likewise.
6690 (handle_extended_wait): Likewise.
6691 (add_lwp): Likewise.
6692 (enqueue_one_deferred_signal): Likewise.
6693 (enqueue_pending_signal): Likewise.
6694 (linux_resume_one_lwp_throw): Likewise.
6695 (linux_resume_one_thread): Likewise.
6696 (linux_read_memory): Likewise.
6697 (linux_write_memory): Likewise.
6698 * linux-mips-low.c (mips_linux_new_process): Likewise.
6699 (mips_linux_new_thread): Likewise.
6700 (mips_add_watchpoint): Likewise.
6701 * linux-x86-low.c (initialize_low_arch): Likewise.
6702 * lynx-low.c (lynx_add_process): Likewise.
6703 * mem-break.c (set_raw_breakpoint_at): Likewise.
6704 (set_breakpoint): Likewise.
6705 (add_condition_to_breakpoint): Likewise.
6706 (add_commands_to_breakpoint): Likewise.
6707 (clone_agent_expr): Likewise.
6708 (clone_one_breakpoint): Likewise.
6709 * regcache.c (new_register_cache): Likewise.
6710 * remote-utils.c (look_up_one_symbol): Likewise.
6711 * server.c (queue_stop_reply): Likewise.
6712 (start_inferior): Likewise.
6713 (queue_stop_reply_callback): Likewise.
6714 (handle_target_event): Likewise.
6715 * spu-low.c (fetch_ppc_memory): Likewise.
6716 (store_ppc_memory): Likewise.
6717 * target.c (set_target_ops): Likewise.
6718 * thread-db.c (thread_db_load_search): Likewise.
6719 (try_thread_db_load_1): Likewise.
6720 * tracepoint.c (add_tracepoint): Likewise.
6721 (add_tracepoint_action): Likewise.
6722 (create_trace_state_variable): Likewise.
6723 (cmd_qtdpsrc): Likewise.
6724 (cmd_qtro): Likewise.
6725 (add_while_stepping_state): Likewise.
6726 * win32-low.c (child_add_thread): Likewise.
6727 (get_image_name): Likewise.
6728
ed8b7b42
YQ
67292015-08-25 Yao Qi <yao.qi@linaro.org>
6730
6731 * linux-aarch64-low.c (aarch64_linux_new_thread): Remove.
6732
db3cb7cb
YQ
67332015-08-25 Yao Qi <yao.qi@linaro.org>
6734
6735 * Makefile.in (aarch64-linux.o): New rule.
6736 * configure.srv (aarch64*-*-linux*): Append aarch64-linux.o to
6737 srv_tgtobj.
6738 * linux-aarch64-low.c: Include nat/aarch64-linux.h.
6739 (aarch64_init_debug_reg_state): Make it extern.
6740 (aarch64_linux_prepare_to_resume): Remove.
6741
f6011a1c
YQ
67422015-08-25 Yao Qi <yao.qi@linaro.org>
6743
6744 * linux-aarch64-low.c (aarch64_linux_prepare_to_resume): Use
6745 lwp_arch_private_info and ptid_of_lwp.
6746
88e2cf7e
YQ
67472015-08-25 Yao Qi <yao.qi@linaro.org>
6748
6749 * linux-aarch64-low.c (aarch64_get_debug_reg_state): Add argument pid.
6750 Find proc_info by find_process_pid. All callers updated.
6751
5e35436e
YQ
67522015-08-25 Yao Qi <yao.qi@linaro.org>
6753
6754 * linux-aarch64-low.c (struct arch64_dr_update_callback_param):
6755 Remove.
6756 (debug_reg_change_callback): Remove.
6757 (aarch64_notify_debug_reg_change): Remove.
6758
4a8a7965
YQ
67592015-08-25 Yao Qi <yao.qi@linaro.org>
6760
6761 * linux-aarch64-low.c (aarch64_notify_debug_reg_change):
6762 Call current_lwp_ptid.
6763
32a271ee
YQ
67642015-08-25 Yao Qi <yao.qi@linaro.org>
6765
6766 * linux-aarch64-low.c (debug_reg_change_callback): Use
6767 debug_printf.
6768
0d51c8d7
YQ
67692015-08-25 Yao Qi <yao.qi@linaro.org>
6770
6771 * linux-aarch64-low.c (debug_reg_change_callback): Use phex.
6772
31a43dd5
YQ
67732015-08-25 Yao Qi <yao.qi@linaro.org>
6774
6775 * linux-aarch64-low.c (debug_reg_change_callback): Remove comments.
6776
8ee52567
YQ
67772015-08-25 Yao Qi <yao.qi@linaro.org>
6778
6779 * linux-aarch64-low.c (debug_reg_change_callback): Re-indent
6780 the code.
6781
ff3f0f45
YQ
67822015-08-25 Yao Qi <yao.qi@linaro.org>
6783
6784 * linux-aarch64-low.c (aarch64_dr_update_callback_param) <pid>:
6785 Remove.
6786 (debug_reg_change_callback): Remove argument entry and add argument
6787 lwp. Remove local variable thread. Don't print thread id in the
6788 debugging output. Don't check whether pid of thread equals to pid.
6789 (aarch64_notify_debug_reg_change): Don't set param.pid. Call
6790 iterate_over_lwps instead find_inferior.
6791
3d40fbb5
PA
67922015-08-24 Pedro Alves <palves@redhat.com>
6793
6794 * inferiors.c (get_first_process): New function.
6795 * inferiors.h (get_first_process): New declaration.
6796 * remote-utils.c (read_ptid): Default to the first process in the
6797 list, instead of to the current thread's process.
6798
438e1e42
PA
67992015-08-24 Pedro Alves <palves@redhat.com>
6800
6801 * debug.c: Include gdb_sys_time.h instead of sys/time.h.
6802 * event-loop.c: Likewise.
6803 * remote-utils.c: Likewise.
6804 * tracepoint.c: Likewise.
6805
a8c6d4fc
PA
68062015-08-24 Pedro Alves <palves@redhat.com>
6807
6808 * spu-low.c (spu_request_interrupt): Use lwpid_of instead of
6809 ptid_get_lwp.
6810
99b0bb12
PA
68112015-08-21 Pedro Alves <palves@redhat.com>
6812
6813 * ax.c (gdb_eval_agent_expr): Return expr_eval_unhandled_opcode
6814 instead of literal 1.
6815
f8904751
PA
68162015-08-21 Pedro Alves <palves@redhat.com>
6817
6818 * tdesc.c (default_description): Explicitly zero-initialize.
6819
465a859e
PA
68202015-08-21 Pedro Alves <palves@redhat.com>
6821
6822 PR gdb/18749
6823 * inferiors.c (remove_thread): Discard any pending stop reply for
6824 this thread.
6825 * server.c (remove_all_on_match_pid): Rename to ...
6826 (remove_all_on_match_ptid): ... this. Work with a filter ptid
6827 instead of a pid.
6828 (discard_queued_stop_replies): Change parameter to a ptid. Now
6829 extern.
6830 (handle_v_kill, kill_inferior_callback, captured_main)
6831 (process_serial_event): Adjust.
6832 * server.h (discard_queued_stop_replies): Declare.
6833
f0db101d
PA
68342015-08-21 Pedro Alves <palves@redhat.com>
6835
6836 * linux-low.c (wait_for_sigstop): Always switch to no thread
6837 selected if the previously current thread dies.
6838 * lynx-low.c (lynx_request_interrupt): Use the first thread's
6839 process instead of the current thread's.
6840 * remote-utils.c (input_interrupt): Don't check if there's no
6841 current thread.
6842 * server.c (gdb_read_memory, gdb_write_memory): If setting the
6843 current thread to the general thread fails, error out.
6844 (handle_qxfer_auxv, handle_qxfer_libraries)
6845 (handle_qxfer_libraries_svr4, handle_qxfer_siginfo)
6846 (handle_qxfer_spu, handle_qxfer_statictrace, handle_qxfer_fdpic)
6847 (handle_query): Check if there's a thread selected instead of
6848 checking whether there's any thread in the thread list.
6849 (handle_qxfer_threads, handle_qxfer_btrace)
6850 (handle_qxfer_btrace_conf): Don't error out early if there's no
6851 thread in the thread list.
6852 (handle_v_cont, myresume): Don't set the current thread to the
6853 continue thread.
6854 (process_serial_event) <Hg handling>: Also set thread_id if the
6855 previous general thread is still alive.
6856 (process_serial_event) <g/G handling>: If setting the current
6857 thread to the general thread fails, error out.
6858 * spu-low.c (spu_resume, spu_request_interrupt): Use the first
6859 thread's lwp instead of the current thread's.
6860 * target.c (set_desired_thread): If the desired thread was not
6861 found, leave the current thread pointing to NULL. Return an int
6862 (boolean) indicating success.
6863 * target.h (set_desired_thread): Change return type to int.
6864
40045d91
MF
68652015-08-20 Max Filippov <jcmvbkbc@gmail.com>
6866
6867 * configure.srv (xtensa*-*-linux*): Add srv_linux_thread_db=yes.
6868 * linux-xtensa-low.c (arch/xtensa.h gdb_proc_service.h): New
6869 #includes.
6870 (ps_get_thread_area): New function.
6871
45face3b
GB
68722015-08-19 Gary Benson <gbenson@redhat.com>
6873
6874 * hostio.c (handle_pread): Do not attempt to read more data
6875 than hostio_reply_with_data can fit in a packet.
6876
16d5f642
JB
68772015-08-18 Joel Brobecker <brobecker@adacore.com>
6878
6879 * linux-aarch32-low.c (NT_ARM_VFP): Define if not already defined.
6880
a738da3a
MF
68812015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
6882
6883 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP_REL.
6884
33ebda9d
PA
68852015-08-06 Pedro Alves <palves@redhat.com>
6886
6887 * tracepoint.c (expr_eval_result): Now an int.
6888
a44892be
PA
68892015-08-06 Pedro Alves <palves@redhat.com>
6890
6891 * gdbthread.h (struct regcache): Forward declare.
6892 (struct thread_info) <regcache_data>: Now a struct regcache
6893 pointer.
6894 * inferiors.c (inferior_regcache_data)
6895 (set_inferior_regcache_data): Now work with struct regcache
6896 pointers.
6897 * inferiors.h (struct regcache): Forward declare.
6898 (inferior_regcache_data, set_inferior_regcache_data): Now work
6899 with struct regcache pointers.
6900 * regcache.c (get_thread_regcache, regcache_invalidate_thread)
6901 (free_register_cache_thread): Remove struct regcache pointer
6902 casts.
6903
608a1e46
PA
69042015-08-06 Pedro Alves <palves@redhat.com>
6905
6906 * server.c (captured_main): On error, print the exception message
6907 to stderr, and if run_once is set, throw a quit.
6908
f0ce0d3a
PA
69092015-08-06 Pedro Alves <palves@redhat.com>
6910
6911 * linux-low.c (move_out_of_jump_pad_callback): Temporarily switch
6912 the current thread.
6913
bf47e248
PA
69142015-08-06 Pedro Alves <palves@redhat.com>
6915
6916 * linux-low.c (linux_write_memory): Rewrite debug output to avoid
6917 reading beyond the passed in buffer length.
6918
b6b9ffcc
PL
69192015-08-06 Pierre Langlois <pierre.langlois@arm.com>
6920
6921 * tracepoint.c (symbol_list) <required>: Remove.
6922
863d01bd
PA
69232015-08-06 Pedro Alves <palves@redhat.com>
6924
6925 * linux-low.c (handle_extended_wait): Set the fork child's suspend
6926 count if stopping and suspending threads.
6927 (check_stopped_by_breakpoint): If stopped by trace, set the LWP's
6928 stop reason to TARGET_STOPPED_BY_SINGLE_STEP.
6929 (linux_detach): Complete an ongoing step-over.
6930 (lwp_suspended_inc, lwp_suspended_decr): New functions. Use
6931 throughout.
6932 (resume_stopped_resumed_lwps): Don't resume a suspended thread.
6933 (linux_wait_1): If passing a signal to the inferior after
6934 finishing a step-over, unsuspend and re-resume all lwps. If we
6935 see a single-step event but the thread should be continuing, don't
6936 pass the trap to gdb.
6937 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback): Use
6938 internal_error instead of gdb_assert.
6939 (enqueue_pending_signal): New function.
6940 (check_ptrace_stopped_lwp_gone): Add debug output.
6941 (start_step_over): Use internal_error instead of gdb_assert.
6942 (complete_ongoing_step_over): New function.
6943 (linux_resume_one_thread): Don't resume a suspended thread.
6944 (proceed_one_lwp): If the LWP is stepping over a breakpoint, reset
6945 it stepping.
6946
00db26fa
PA
69472015-08-06 Pedro Alves <palves@redhat.com>
6948
6949 * linux-low.c (add_lwp): Set waitstatus to TARGET_WAITKIND_IGNORE.
6950 (linux_thread_alive): Use lwp_is_marked_dead.
6951 (extended_event_reported): Delete.
6952 (linux_wait_1): Check if waitstatus is TARGET_WAITKIND_IGNORE
6953 instead of extended_event_reported.
6954 (mark_lwp_dead): Don't set the 'dead' flag. Store the waitstatus
6955 as well.
6956 (lwp_is_marked_dead): New function.
6957 (lwp_running): Use lwp_is_marked_dead.
6958 * linux-low.h: Delete 'dead' field, and update 'waitstatus's
6959 comment.
6960
ad071a30
PA
69612015-08-06 Pedro Alves <palves@redhat.com>
6962
6963 * linux-low.c (linux_wait_1): Move fork event output out of the
6964 !report_to_gdb check. Pass event_child->waitstatus to
6965 target_waitstatus_to_string instead of ourstatus.
6966
524b57e6
YQ
69672015-08-04 Yao Qi <yao.qi@linaro.org>
6968
6969 * linux-aarch64-low.c (aarch64_supports_tracepoints): Return 0
6970 if current_thread is 32 bit.
6971
6085d6f6
YQ
69722015-08-04 Yao Qi <yao.qi@linaro.org>
6973
6974 * linux-aarch64-low.c (aarch64_supports_z_point_type): Return
6975 0 for Z_PACKET_SW_BP if it may be used in multi-arch debugging.
6976 * server.c (extended_protocol): Remove "static".
6977 * server.h (extended_protocol): Declare it.
6978
8a7e4587
YQ
69792015-08-04 Yao Qi <yao.qi@linaro.org>
6980
6981 * linux-aarch64-low.c (aarch64_get_pc): Get PC register on
6982 both aarch64 and aarch32.
6983 (aarch64_set_pc): Likewise.
6984
3b53ae99
YQ
69852015-08-04 Yao Qi <yao.qi@linaro.org>
6986
6987 * configure.srv (case aarch64*-*-linux*): Append arm-with-neon.o
6988 to srv_regobj and append arm-core.xml arm-vfpv3.xml and
6989 arm-with-neon.xml to srv_xmlfiles.
6990 * linux-aarch64-low.c: Include linux-aarch32-low.h.
6991 (is_64bit_tdesc): New function.
6992 (aarch64_linux_read_description): New function.
6993 (aarch64_arch_setup): Call aarch64_linux_read_description.
6994 (regs_info): Rename to regs_info_aarch64.
6995 (aarch64_regs_info): Return right regs_info.
6996 (initialize_low_arch): Call initialize_low_arch_aarch32.
6997
bd9e6534
YQ
69982015-08-04 Yao Qi <yao.qi@linaro.org>
6999
7000 * configure.srv (srv_tgtobj): Add linux-aarch32-low.o.
7001 * linux-aarch32-low.c: New file.
7002 * linux-aarch32-low.h: New file.
7003 * linux-arm-low.c (arm_fill_gregset): Move it to
7004 linux-aarch32-low.c.
7005 (arm_store_gregset): Likewise.
7006 (arm_fill_vfpregset): Call arm_fill_vfpregset_num
7007 (arm_store_vfpregset): Call arm_store_vfpregset_num.
7008 (arm_arch_setup): Check if PTRACE_GETREGSET works.
7009 (regs_info): Rename to regs_info_arm.
7010 (arm_regs_info): Return regs_info_aarch32 if
7011 have_ptrace_getregset is 1 and target description is
7012 arm_with_neon or arm_with_vfpv3.
7013 (initialize_low_arch): Don't call init_registers_arm_with_neon.
7014 Call initialize_low_arch_aarch32 instead.
7015
ded48a5e
YQ
70162015-08-04 Yao Qi <yao.qi@linaro.org>
7017
7018 * linux-x86-low.c (have_ptrace_getregset): Move it to ...
7019 * linux-low.c: ... here.
7020 * linux-low.h (have_ptrace_getregset): Declare it.
7021
96e9210f
PA
70222015-08-04 Pedro Alves <palves@redhat.com>
7023
7024 * thread-db.c (struct thread_db): Use new typedefs.
7025 (try_thread_db_load_1): Define local TDB_DLSYM macro and use it in
7026 CHK calls.
7027 (disable_thread_event_reporting): Cast result of dlsym to
7028 destination function pointer type.
7029 (thread_db_mourn): Use td_ta_delete_ftype.
7030
af60a1ef
SL
70312015-08-03 Sandra Loosemore <sandra@codesourcery.com>
7032
7033 * linux-nios2-low.c (NIOS2_BREAKPOINT): Conditionalize for
7034 arch variant.
7035 (CDX_BREAKPOINT): Define for R2.
7036 (nios2_breakpoint_at): Check for CDX_BREAKPOINT when R2.
7037 (the_low_target): Add comments.
7038
e8b41681
YQ
70392015-07-30 Yao Qi <yao.qi@linaro.org>
7040
7041 * linux-arm-low.c (arm_hwcap): Remove it.
7042 (arm_read_description): New local variable arm_hwcap. Don't
7043 set arm_hwcap to zero.
7044
89abb039
YQ
70452015-07-30 Yao Qi <yao.qi@linaro.org>
7046
7047 * linux-arm-low.c (arm_fill_wmmxregset): Don't use arm_hwcap.
7048 Use regcache->tdesc instead.
7049 (arm_store_wmmxregset): Likewise.
7050 (arm_fill_vfpregset): Likewise.
7051 (arm_store_vfpregset): Likewise.
7052
deca266c
YQ
70532015-07-30 Yao Qi <yao.qi@linaro.org>
7054
7055 * linux-arm-low.c: Include arch/arm.h.
7056 (arm_fill_gregset): Don't use arm_num_regs and arm_regmap.
7057 (arm_store_gregset): Likewise.
7058
aa58a496
SM
70592015-07-29 Simon Marchi <simon.marchi@ericsson.com>
7060
7061 * linux-mips-low.c (mips_linux_prepare_to_resume): Add NULL as
7062 ptrace's 4th parameter.
7063
50904b25
YQ
70642015-07-27 Yao Qi <yao.qi@linaro.org>
7065
7066 * configure.srv (case aarch64*-*-linux*): Don't set
7067 srv_linux_usrregs.
7068
5826e159
PA
70692015-07-24 Pedro Alves <palves@redhat.c: Likewise.om>
7070
7071 * linux-aarch64-low.c: Include nat/gdb_ptrace.h instead of
7072 sys/ptrace.h.
7073 * linux-arm-low.c: Likewise.
7074 * linux-cris-low.c: Likewise.
7075 * linux-crisv32-low.c: Likewise.
7076 * linux-low.c: Likewise.
7077 * linux-m68k-low.c: Likewise.
7078 * linux-mips-low.c: Likewise.
7079 * linux-nios2-low.c: Likewise.
7080 * linux-s390-low.c: Likewise.
7081 * linux-sparc-low.c: Likewise.
7082 * linux-tic6x-low.c: Likewise.
7083 * linux-tile-low.c: Likewise.
7084 * linux-x86-low.c: Likewise.
7085
54019719
PA
70862015-07-24 Pedro Alves <palves@redhat.com>
7087
7088 * config.in: Regenerate.
7089 * configure: Regenerate.
7090
eb7aa561
PA
70912015-07-24 Pedro Alves <palves@redhat.com>
7092
7093 * acinclude.m4: Include ../ptrace.m4.
7094 * configure.ac: Call GDB_AC_PTRACE.
7095 * config.in, configure: Regenerate.
7096
55d7b841
YQ
70972015-07-24 Yao Qi <yao.qi@linaro.org>
7098
7099 * linux-low.c (linux_create_inferior): Remove setting to
7100 proc->priv->new_inferior.
7101 (linux_attach): Likewise.
7102 (linux_low_filter_event): Likewise.
7103 * linux-low.h (struct process_info_private) <new_inferior>: Remove.
7104
c06cbd92
YQ
71052015-07-24 Yao Qi <yao.qi@linaro.org>
7106
7107 * linux-low.c (linux_arch_setup): New function.
7108 (linux_low_filter_event): If proc->tdesc is NULL and
7109 proc->attached is true, call the_low_target.arch_setup.
7110 Otherwise, keep status pending, and return.
7111 (linux_resume_one_lwp_throw): Don't call get_pc if
7112 thread->while_stepping isn't NULL. Don't call
7113 get_thread_regcache if proc->tdesc is NULL.
7114 (need_step_over_p): Return 0 if proc->tdesc is NULL.
7115 (linux_target_ops): Install arch_setup.
7116 * server.c (start_inferior): Call the_target->arch_setup.
7117 * target.h (struct target_ops) <arch_setup>: New field.
7118 (target_arch_setup): New marco.
7119 * lynx-low.c (lynx_target_ops): Update.
7120 * nto-low.c (nto_target_ops): Update.
7121 * spu-low.c (spu_target_ops): Update.
7122 * win32-low.c (win32_target_ops): Update.
7123
5ae3ebba
YQ
71242015-07-24 Yao Qi <yao.qi@linaro.org>
7125
7126 * linux-low.c (linux_add_process): Don't set
7127 proc->priv->new_inferior.
7128 (linux_create_inferior): Set proc->priv->new_inferior to 1.
7129 (linux_attach): Likewise.
7130
eb97750b
YQ
71312015-07-24 Yao Qi <yao.qi@linaro.org>
7132
7133 * server.c (start_inferior): Code refactor.
7134
51aee833
YQ
71352015-07-24 Yao Qi <yao.qi@linaro.org>
7136
7137 * server.c (process_serial_event): Set general_thread.
7138
af1b22f3
YQ
71392015-07-21 Yao Qi <yao.qi@linaro.org>
7140
7141 * linux-aarch64-low.c (aarch64_arch_setup): Remove code and call
7142 aarch64_linux_get_debug_reg_capacity.
7143
554717a3
YQ
71442015-07-17 Yao Qi <yao.qi@linaro.org>
7145
7146 * Makefile.in (aarch64-linux-hw-point.o): New rule.
7147 * configure.srv (srv_tgtobj): Append aarch64-linux-hw-point.o.
7148 * linux-aarch64-low.c: Include nat/aarch64-linux-hw-point.h.
7149 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
7150 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
7151 (AARCH64_HWP_ALIGNMENT): Likewise.
7152 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
7153 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
7154 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
7155 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
7156 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
7157 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
7158 (struct aarch64_debug_reg_state): Likewise.
7159 (struct arch_lwp_info): Likewise.
7160 (aarch64_align_watchpoint): Likewise.
7161 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
7162 (aarch64_watchpoint_length): Likewise.
7163 (aarch64_point_encode_ctrl_reg): Likewise
7164 (aarch64_point_is_aligned): Likewise.
7165 (aarch64_align_watchpoint): Likewise.
7166 (aarch64_linux_set_debug_regs):
7167 (aarch64_dr_state_insert_one_point): Likewise.
7168 (aarch64_dr_state_remove_one_point): Likewise.
7169 (aarch64_handle_breakpoint): Likewise.
7170 (aarch64_handle_aligned_watchpoint): Likewise.
7171 (aarch64_handle_unaligned_watchpoint): Likewise.
7172 (aarch64_handle_watchpoint): Likewise.
7173
c67ca4de
YQ
71742015-07-17 Yao Qi <yao.qi@linaro.org>
7175
7176 * linux-aarch64-low.c (aarch64_handle_breakpoint): Add argument state
7177 and don't aarch64_get_debug_reg_state. All callers update.
7178 (aarch64_handle_aligned_watchpoint): Likewise.
7179 (aarch64_handle_unaligned_watchpoint): Likewise.
7180 (aarch64_handle_watchpoint): Likewise.
7181 (aarch64_insert_point): Call aarch64_get_debug_reg_state earlier.
7182 (aarch64_remove_point): Likewise.
7183
25abf979
YQ
71842015-07-17 Yao Qi <yao.qi@linaro.org>
7185
7186 * linux-aarch64-low.c (aarch64_show_debug_reg_state): Use
7187 debug_printf.
7188 (aarch64_handle_unaligned_watchpoint): Likewise.
7189
db1ff28b
JK
71902015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7191
7192 Revert the previous 3 commits:
7193 Move gdb_regex* to common/
7194 Move linux_find_memory_regions_full & co.
7195 gdbserver build-id attribute generator
7196
700ca40f
JK
71972015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7198 Jan Kratochvil <jan.kratochvil@redhat.com>
7199
7200 gdbserver build-id attribute generator.
7201 * linux-low.c (nat/linux-maps.h, search.h, rsp-low.h): Include.
7202 (ElfXX_Ehdr, ElfXX_Phdr, ElfXX_Nhdr): New.
7203 (ELFXX_FLD, ELFXX_SIZEOF, ELFXX_ROUNDUP, BUILD_ID_INVALID): New.
7204 (find_phdr): New.
7205 (get_dynamic): Use find_pdhr to traverse program headers.
7206 (struct mapping_entry, mapping_entry_s, free_mapping_entry_vec)
7207 (compare_mapping_entry_range, struct find_memory_region_callback_data)
7208 (read_build_id, find_memory_region_callback, lrfind_mapping_entry)
7209 (get_hex_build_id): New.
7210 (linux_qxfer_libraries_svr4): Add optional build-id attribute
7211 to reply XML document.
7212
9904185c
JK
72132015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7214 Jan Kratochvil <jan.kratochvil@redhat.com>
7215
7216 * target.c: Include target/target-utils.h and fcntl.h.
7217 (target_fileio_read_stralloc_1_pread, target_fileio_read_stralloc_1)
7218 (target_fileio_read_stralloc): New functions.
7219
6e5b4429
JK
72202015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7221
7222 * Makefile.in (OBS): Add gdb_regex.o.
7223 (gdb_regex.o): New.
7224 * config.in: Rebuilt.
7225 * configure: Rebuilt.
7226
ddc98fbf
JK
72272015-07-15 Aleksandar Ristovski <aristovski@qnx.com
7228 Jan Kratochvil <jan.kratochvil@redhat.com>
7229
7230 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
7231 * Makefile.in (OBS): Add target-utils.o.
7232 (linux-maps.o, target-utils.o): New.
7233 * configure.srv (srv_linux_obj): Add linux-maps.o.
7234
e57bb7a0
PL
72352015-07-15 Pierre Langlois <pierre.langlois@arm.com>
7236
7237 * linux-aarch64-low.c (aarch64_supports_range_stepping): New
7238 function, return 1.
7239 (the_low_target): Install it.
7240
586b02a9
PA
72412015-07-14 Pedro Alves <palves@redhat.com>
7242
7243 * linux-low.c (kill_wait_lwp): Don't assert if waitpid fails.
7244 Instead, ignore ECHILD, and throw an error for other errnos.
7245
58c1b36c
PA
72462015-07-10 Pedro Alves <palves@redhat.com>
7247
7248 * event-loop.c (struct callback_event) <data>: Change type to
7249 gdb_client_data instance instead of gdb_client_data pointer.
7250 (append_callback_event): Adjust.
7251
421530db
PL
72522015-07-10 Pierre Langlois <pierre.langlois@arm.com>
7253
7254 * linux-aarch64-low.c: Add comments for each linux_target_ops
7255 method. Remove comments already covered in target_ops and
7256 linux_target_ops definitions.
7257 (the_low_target): Add comments for each unimplemented method.
7258
c2d65f38
YQ
72592015-07-09 Yao Qi <yao.qi@linaro.org>
7260
7261 * linux-aarch64-low.c (aarch64_regmap): Remove.
7262 (aarch64_usrregs_info): Remove.
7263 (regs_info): Set field usrregs to NULL.
7264
b20a6524
MM
72652015-07-02 Markus Metzger <markus.t.metzger@intel.com>
7266
7267 * linux-low.c: Include "rsp-low.h"
7268 (linux_low_encode_pt_config, linux_low_encode_raw): New.
7269 (linux_low_read_btrace): Support BTRACE_FORMAT_PT.
7270 (linux_low_btrace_conf): Support BTRACE_FORMAT_PT.
7271 (handle_btrace_enable_pt): New.
7272 (handle_btrace_general_set): Support "pt".
7273 (handle_btrace_conf_general_set): Support "pt:size".
7274
96c97461
PL
72752015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7276
7277 * linux-aarch64-low.c (aarch64_supports_z_point_type): Enable for
7278 Z_PACKET_SW_BP.
7279
37d66942
PL
72802015-06-29 Pierre Langlois <pierre.langlois@arm.com>
7281
7282 * linux-aarch64-low.c: Remove comment about endianness.
7283 (aarch64_breakpoint): Change type to gdb_byte[]. Set to "brk #0".
7284 (aarch64_breakpoint_at): Change type of insn to gdb_byte[]. Use
7285 memcmp.
7286
dc06243f
GB
72872015-06-24 Gary Benson <gbenson@redhat.com>
7288
7289 * linux-i386-ipa.c (stdint.h): Do not include.
7290 * lynx-i386-low.c (stdint.h): Likewise.
7291 * lynx-ppc-low.c (stdint.h): Likewise.
7292 * mem-break.c (stdint.h): Likewise.
7293 * thread-db.c (stdint.h): Likewise.
7294 * tracepoint.c (stdint.h): Likewise.
7295 * win32-low.c (stdint.h): Likewise.
7296
124e13d9
SM
72972015-06-18 Simon Marchi <simon.marchi@ericsson.com>
7298
7299 * server.c (write_qxfer_response): Update call to
7300 remote_escape_output.
7301
909c2cda
JK
73022015-06-15 Aleksandar Ristovski <aristovski@qnx.com
7303 Jan Kratochvil <jan.kratochvil@redhat.com>
7304
7305 Merge multiple hex conversions.
7306 * gdbreplay.c (tohex): Rename to 'fromhex'.
7307 (logchar): Use fromhex.
7308
24c05f46
JK
73092015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7310
7311 * server.c (handle_qxfer_libraries): Set `version' attribute for
7312 <library-list>.
7313
14d2069a
GB
73142015-06-10 Gary Benson <gbenson@redhat.com>
7315
7316 * target.h (struct target_ops) <multifs_open>: New field.
7317 <multifs_unlink>: Likewise.
7318 <multifs_readlink>: Likewise.
7319 * linux-low.c (nat/linux-namespaces.h): New include.
7320 (linux_target_ops): Initialize the_target->multifs_open,
7321 the_target->multifs_unlink and the_target->multifs_readlink.
7322 * hostio.h (hostio_handle_new_gdb_connection): New declaration.
7323 * hostio.c (hostio_fs_pid): New static variable.
7324 (hostio_handle_new_gdb_connection): New function.
7325 (handle_setfs): Likewise.
7326 (handle_open): Use the_target->multifs_open as appropriate.
7327 (handle_unlink): Use the_target->multifs_unlink as appropriate.
7328 (handle_readlink): Use the_target->multifs_readlink as
7329 appropriate.
7330 (handle_vFile): Handle vFile:setfs packets.
7331 * server.c (handle_query): Call hostio_handle_new_gdb_connection
7332 after target_handle_new_gdb_connection.
7333
4b8b5e72
GB
73342015-06-10 Gary Benson <gbenson@redhat.com>
7335
7336 * configure.ac (AC_CHECK_FUNCS): Add setns.
7337 * config.in: Regenerate.
7338 * configure: Likewise.
7339 * Makefile.in (SFILES): Add nat/linux-namespaces.c.
7340 (linux-namespaces.o): New rule.
7341 * configure.srv (srv_linux_obj): Add linux-namespaces.o.
7342
3ac2e371
GB
73432015-06-09 Gary Benson <gbenson@redhat.com>
7344
7345 * hostio.c (handle_open): Process mode argument with
7346 fileio_to_host_mode.
7347
ca9b78ce
YQ
73482015-06-01 Yao Qi <yao.qi@linaro.org>
7349
7350 * linux-s390-low.c (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7351 * linux-x86-low.c: Likewise.
7352
bfacd19d
DB
73532015-05-28 Don Breazeal <donb@codesourcery.com>
7354
7355 * linux-low.c (handle_extended_wait): Initialize
7356 thread_info.last_resume_kind for new fork children.
7357
452003ef
PA
73582015-05-15 Pedro Alves <palves@redhat.com>
7359
7360 * target.h (target_handle_new_gdb_connection): Rewrite using if
7361 wrapped in do/while.
7362
1041a03c
JB
73632015-05-14 Joel Brobecker <brobecker@adacore.com>
7364
7365 * configure.ac: Add prfpregset_t BFD_HAVE_SYS_PROCFS_TYPE check.
7366 * configure, config.in: Regenerate.
7367 * gdb_proc_service.h [HAVE_PRFPREGSET_T] (prfpregset_t):
7368 Declare typedef.
7369
c269dbdb
DB
73702015-05-12 Don Breazeal <donb@codesourcery.com>
7371
7372 * linux-low.c (handle_extended_wait): Handle PTRACE_EVENT_FORK and
7373 PTRACE_EVENT_VFORK_DONE.
7374 (linux_low_ptrace_options, extended_event_reported): Add vfork
7375 events.
7376 * remote-utils.c (prepare_resume_reply): New stop reasons "vfork"
7377 and "vforkdone" for RSP 'T' Stop Reply Packet.
7378 * server.h (report_vfork_events): Declare
7379 global variable.
7380
3a8a0396
DB
73812015-05-12 Don Breazeal <donb@codesourcery.com>
7382
7383 * linux-aarch64-low.c (aarch64_linux_new_fork): New function.
7384 (the_low_target) <new_fork>: Initialize new member.
7385 * linux-arm-low.c (arm_new_fork): New function.
7386 (the_low_target) <new_fork>: Initialize new member.
7387 * linux-low.c (handle_extended_wait): Call new target function
7388 new_fork.
7389 * linux-low.h (struct linux_target_ops) <new_fork>: New member.
7390 * linux-mips-low.c (mips_add_watchpoint): New function
7391 extracted from mips_insert_point.
7392 (the_low_target) <new_fork>: Initialize new member.
7393 (mips_linux_new_fork): New function.
7394 (mips_insert_point): Call mips_add_watchpoint.
7395 * linux-x86-low.c (x86_linux_new_fork): New function.
7396 (the_low_target) <new_fork>: Initialize new member.
7397
de0d863e
DB
73982015-05-12 Don Breazeal <donb@codesourcery.com>
7399
7400 * linux-low.c (handle_extended_wait): Implement return value,
7401 rename argument 'event_child' to 'event_lwp', handle
7402 PTRACE_EVENT_FORK, call internal_error for unrecognized event.
7403 (linux_low_ptrace_options): New function.
7404 (linux_low_filter_event): Call linux_low_ptrace_options,
7405 use different argument fo linux_enable_event_reporting,
7406 use return value from handle_extended_wait.
7407 (extended_event_reported): New function.
7408 (linux_wait_1): Call extended_event_reported and set
7409 status to report fork events.
7410 (linux_write_memory): Add pid to debug message.
7411 (reset_lwp_ptrace_options_callback): New function.
7412 (linux_handle_new_gdb_connection): New function.
7413 (linux_target_ops): Initialize new structure member.
7414 * linux-low.h (struct lwp_info) <waitstatus>: New member.
7415 * lynx-low.c: Initialize new structure member.
7416 * remote-utils.c (prepare_resume_reply): Implement stop reason
7417 "fork" for "T" stop message.
7418 * server.c (handle_query): Call handle_new_gdb_connection.
7419 * server.h (report_fork_events): Declare global flag.
7420 * target.h (struct target_ops) <handle_new_gdb_connection>:
7421 New member.
7422 (target_handle_new_gdb_connection): New macro.
7423 * win32-low.c: Initialize new structure member.
7424
ddcbc397
DB
74252015-05-12 Don Breazeal <donb@codesourcery.com>
7426
7427 * mem-break.c (APPEND_TO_LIST): Define macro.
7428 (clone_agent_expr): New function.
7429 (clone_one_breakpoint): New function.
7430 (clone_all_breakpoints): New function.
7431 * mem-break.h: Declare new functions.
7432
89245bc0
DB
74332015-05-12 Don Breazeal <donb@codesourcery.com>
7434
7435 * linux-low.c (linux_supports_fork_events): New function.
7436 (linux_supports_vfork_events): New function.
7437 (linux_target_ops): Initialize new structure members.
7438 (initialize_low): Call linux_check_ptrace_features.
7439 * lynx-low.c (lynx_target_ops): Initialize new structure
7440 members.
7441 * server.c (report_fork_events, report_vfork_events):
7442 New global flags.
7443 (handle_query): Add new features to qSupported packet and
7444 response.
7445 (captured_main): Initialize new global variables.
7446 * target.h (struct target_ops) <supports_fork_events>:
7447 New member.
7448 <supports_vfork_events>: New member.
7449 (target_supports_fork_events): New macro.
7450 (target_supports_vfork_events): New macro.
7451 * win32-low.c (win32_target_ops): Initialize new structure
7452 members.
7453
835205d0
GB
74542015-05-12 Gary Benson <gbenson@redhat.com>
7455
7456 * server.c (handle_qxfer_exec_file): Use current process
7457 if annex is empty.
7458
21e94bd9
SL
74592015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7460
7461 * linux-nios2-low.c: Include elf/common.h. Adjust comments.
7462 Remove HAVE_PTRACE_GETREGS conditionals.
7463 (nios2_regsets): Use PTRACE_GETREGSET and PTRACE_SETREGSET
7464 instead of PTRACE_GETREGS and PTRACE_SETREGS.
7465
45614f15
YQ
74662015-05-08 Yao Qi <yao.qi@linaro.org>
7467
7468 * linux-low.c (linux_supports_conditional_breakpoints): New
7469 function.
7470 (linux_target_ops): Install new target method.
7471 * lynx-low.c (lynx_target_ops): Install NULL hook for
7472 supports_conditional_breakpoints.
7473 * nto-low.c (nto_target_ops): Likewise.
7474 * spu-low.c (spu_target_ops): Likewise.
7475 * win32-low.c (win32_target_ops): Likewise.
7476 * server.c (handle_query): Check
7477 target_supports_conditional_breakpoints.
7478 * target.h (struct target_ops) <supports_conditional_breakpoints>:
7479 New field.
7480 (target_supports_conditional_breakpoints): New macro.
7481
80ad801e
PA
74822015-05-06 Pedro Alves <palves@redhat.com>
7483
7484 PR server/18081
7485 * server.c (start_inferior): If the process exits, mourn it.
7486
819843c7
GB
74872015-04-21 Gary Benson <gbenson@redhat.com>
7488
7489 * hostio.c (fileio_open_flags_to_host): Factored out to
7490 fileio_to_host_openflags in common/fileio.c. Single use
7491 updated.
7492
a2d5a9d7
MF
74932015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7494
7495 * linux-xtensa-low.c (xtensa_fill_gregset)
7496 (xtensa_store_gregset): Check XCHAL_HAVE_LOOPS instead of
7497 XCHAL_HAVE_LOOP.
7498
deb44829
MF
74992015-04-17 Max Filippov <jcmvbkbc@gmail.com>
7500
7501 * linux-xtensa-low.c (xtensa_usrregs_info): Remove.
7502 (regs_info): Replace usrregs pointer with NULL.
7503
e57f1de3
GB
75042015-04-17 Gary Benson <gbenson@redhat.com>
7505
7506 * target.h (struct target_ops) <pid_to_exec_file>: New field.
7507 * linux-low.c (linux_target_ops): Initialize pid_to_exec_file.
7508 * server.c (handle_qxfer_exec_file): New function.
7509 (qxfer_packets): Add exec-file entry.
7510 (handle_query): Report qXfer:exec-file:read as supported packet.
7511
62828379
RN
75122015-04-14 Romain Naour <romain.naour@openwide.fr> (tiny change)
7513
7514 * linux-low.c (linux_read_offsets): Remove get_thread_lwp.
7515
b88bb450
GB
75162015-04-09 Gary Benson <gbenson@redhat.com>
7517
7518 * hostio-errno.c (errno_to_fileio_error): Remove function.
7519 Update caller to use remote_fileio_to_fio_error.
7520
c8f4bfdd
YQ
75212015-04-09 Yao Qi <yao.qi@linaro.org>
7522
7523 * linux-low.c (linux_insert_point): Call
7524 insert_memory_breakpoint if TYPE is raw_bkpt_type_sw.
7525 (linux_remove_point): Call remove_memory_breakpoint if type is
7526 raw_bkpt_type_sw.
7527 * linux-x86-low.c (x86_insert_point): Don't call
7528 insert_memory_breakpoint.
7529 (x86_remove_point): Don't call remove_memory_breakpoint.
7530
41f98f02
PA
75312015-04-01 Pedro Alves <palves@redhat.com>
7532 Cleber Rosa <crosa@redhat.com>
7533
7534 * server.c (gdbserver_usage): Reorganize and extend the usage
7535 message.
7536
2bf6fb9d
PA
75372015-03-24 Pedro Alves <palves@redhat.com>
7538
7539 * linux-low.c (check_stopped_by_breakpoint): Tweak debug log
7540 output. Also dump TRAP_TRACE.
7541 (linux_low_filter_event): In debug output, distinguish a
7542 resume_stop SIGSTOP from a delayed SIGSTOP.
7543
369f6daa
GB
75442015-03-24 Gary Benson <gbenson@redhat.com>
7545
7546 * linux-x86-low.c (x86_linux_new_thread): Moved to
7547 nat/x86-linux.c.
7548 (x86_linux_prepare_to_resume): Likewise.
7549
8e5d4070
GB
75502015-03-24 Gary Benson <gbenson@redhat.com>
7551
7552 * Makefile.in (x86-linux-dregs.o): New rule.
7553 * configure.srv: Add x86-linux-dregs.o to relevant targets.
7554 * linux-x86-low.c: Include nat/x86-linux-dregs.h.
7555 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
7556 (x86_linux_dr_get): Likewise.
7557 (x86_linux_dr_set): Likewise.
7558 (update_debug_registers_callback): Likewise.
7559 (x86_linux_dr_set_addr): Likewise.
7560 (x86_linux_dr_get_addr): Likewise.
7561 (x86_linux_dr_set_control): Likewise.
7562 (x86_linux_dr_get_control): Likewise.
7563 (x86_linux_dr_get_status): Likewise.
7564 (x86_linux_update_debug_registers): Likewise.
7565
2b95d440
GB
75662015-03-24 Gary Benson <gbenson@redhat.com>
7567
7568 * linux-x86-low.c (x86_linux_update_debug_registers):
7569 New function, factored out from...
7570 (x86_linux_prepare_to_resume): ...this.
7571
14b0bc68
GB
75722015-03-24 Gary Benson <gbenson@redhat.com>
7573
7574 * linux-x86-low.c (x86_linux_dr_get): Update comments.
7575 (x86_linux_dr_set): Likewise.
7576 (update_debug_registers_callback): Likewise.
7577 (x86_linux_dr_set_addr): Likewise.
7578 (x86_linux_dr_get_addr): Likewise.
7579 (x86_linux_dr_set_control): Likewise.
7580 (x86_linux_dr_get_control): Likewise.
7581 (x86_linux_dr_get_status): Likewise.
7582 (x86_linux_prepare_to_resume): Likewise.
7583
5dfe6ca8
GB
75842015-03-24 Gary Benson <gbenson@redhat.com>
7585
7586 * linux-x86-low.c (x86_linux_dr_get): Add assertion.
7587 Use perror_with_name. Pass string through gettext.
7588 (x86_linux_dr_set): Likewise.
7589
d33472ad
GB
75902015-03-24 Gary Benson <gbenson@redhat.com>
7591
7592 * linux-x86-low.c (x86_dr_low_set_addr): Rename to...
7593 (x86_linux_dr_set_addr): ...this.
7594 (x86_dr_low_get_addr): Rename to...
7595 (x86_linux_dr_get_addr): ...this.
7596 (x86_dr_low_set_control): Rename to...
7597 (x86_linux_dr_set_control): ...this.
7598 (x86_dr_low_get_control): Rename to...
7599 (x86_linux_dr_get_control): ...this.
7600 (x86_dr_low_get_status): Rename to...
7601 (x86_linux_dr_get_status): ...this.
7602 (x86_dr_low): Update with new function names.
7603
4b134ca1
GB
76042015-03-24 Gary Benson <gbenson@redhat.com>
7605
7606 * Makefile.in (x86-linux.o): New rule.
7607 * configure.srv: Add x86-linux.o to relevant targets.
7608 * linux-low.c (lwp_set_arch_private_info): New function.
7609 (lwp_arch_private_info): Likewise.
7610 * linux-x86-low.c: Include nat/x86-linux.h.
7611 (arch_lwp_info): Removed structure.
7612 (update_debug_registers_callback):
7613 Use lwp_set_debug_registers_changed.
7614 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
7615 and lwp_set_debug_registers_changed.
7616 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
7617
34c703da
GB
76182015-03-24 Gary Benson <gbenson@redhat.com>
7619
7620 * linux-low.h (linux_target_ops) <new_thread>: Changed signature.
7621 * linux-arm-low.c (arm_new_thread): Likewise.
7622 * linux-aarch64-low.c (aarch64_linux_new_thread): Likewise.
7623 * linux-mips-low.c (mips_linux_new_thread): Likewise.
7624 * linux-x86-low.c (x86_linux_new_thread): Likewise.
7625 * linux-low.c (add_lwp): Update the_low_target.new_thread call.
7626
cff068da
GB
76272015-03-24 Gary Benson <gbenson@redhat.com>
7628
7629 * linux-low.c (ptid_of_lwp): New function.
7630 (lwp_is_stopped): Likewise.
7631 (lwp_stop_reason): Likewise.
7632 * linux-x86-low.c (update_debug_registers_callback):
7633 Use lwp_is_stopped.
7634 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
7635 lwp_stop_reason.
7636
b2f7c7e8
GB
76372015-03-24 Gary Benson <gbenson@redhat.com>
7638
7639 * linux-low.h (linux_stop_lwp): Remove declaration.
7640
6d4ee8c6
GB
76412015-03-24 Gary Benson <gbenson@redhat.com>
7642
7643 * linux-low.h: Include nat/linux-nat.h.
7644 * linux-low.c (iterate_over_lwps_args): New structure.
7645 (iterate_over_lwps_filter): New function.
7646 (iterate_over_lwps): Likewise.
7647 * linux-x86-low.c (update_debug_registers_callback):
7648 Update signature to what iterate_over_lwps expects.
7649 Remove PID check that iterate_over_lwps now performs.
7650 (x86_dr_low_set_addr): Use iterate_over_lwps.
7651 (x86_dr_low_set_control): Likewise.
7652
70a0bb6b
GB
76532015-03-24 Gary Benson <gbenson@redhat.com>
7654
7655 * linux-x86-low.c (x86_debug_reg_state): New function.
7656 (x86_linux_prepare_to_resume): Use the above.
7657
7b669087
GB
76582015-03-24 Gary Benson <gbenson@redhat.com>
7659
7660 * linux-low.c (current_lwp_ptid): New function.
7661 * linux-x86-low.c: Include nat/linux-nat.h.
7662 (x86_dr_low_get_addr): Use current_lwp_ptid.
7663 (x86_dr_low_get_control): Likewise.
7664 (x86_dr_low_get_status): Likewise.
7665
eef49a3d
PA
76662015-03-20 Pedro Alves <palves@redhat.com>
7667
7668 * tracepoint.c (cmd_qtstatus): Make "str" const.
7669
b2333d22
PA
76702015-03-20 Pedro Alves <palves@redhat.com>
7671
7672 * server.c (handle_general_set): Make "req_str" const.
7673
23f238d3
PA
76742015-03-19 Pedro Alves <palves@redhat.com>
7675
7676 * linux-low.c (linux_resume_one_lwp): Rename to ...
7677 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
7678 instead call perror_with_name.
7679 (check_ptrace_stopped_lwp_gone): New function.
7680 (linux_resume_one_lwp): Reimplement as wrapper around
7681 linux_resume_one_lwp_throw that swallows errors if the LWP is
7682 gone.
7683
91baf43f
PA
76842015-03-19 Pedro Alves <palves@redhat.com>
7685
7686 * linux-low.c (count_events_callback, select_event_lwp_callback):
7687 No longer check whether the thread has resume_stop as last resume
7688 kind.
7689
8bf3b159
PA
76902015-03-19 Pedro Alves <palves@redhat.com>
7691
7692 * linux-low.c (count_events_callback, select_event_lwp_callback):
7693 Use the lwp's status_pending_p field, not the thread's.
7694
b90fc188
PA
76952015-03-19 Pedro Alves <palves@redhat.com>
7696
7697 * linux-low.c (select_event_lwp_callback): Update comments to
7698 no longer mention SIGTRAP.
7699
464b0089
GB
77002015-03-18 Gary Benson <gbenson@redhat.com>
7701
7702 * server.c (handle_query): Do not report vFile:fstat as supported.
7703
aa9e327f
GB
77042015-03-11 Gary Benson <gbenson@redhat.com>
7705
7706 * hostio.c (sys/types.h): New include.
7707 (sys/stat.h): Likewise.
7708 (common-remote-fileio.h): Likewise.
7709 (handle_fstat): New function.
7710 (handle_vFile): Handle vFile:fstat packets.
aa9e327f 7711
791c0056
GB
77122015-03-11 Gary Benson <gbenson@redhat.com>
7713
7714 * configure.ac (AC_CHECK_MEMBERS): Add checks for
7715 struct stat.st_blocks and struct stat.st_blksize.
7716 * configure: Regenerate.
7717 * config.in: Likewise.
7718 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7719 (OBS): Add common-remote-fileio.o.
7720 (common-remote-fileio.o): New rule.
7721
9a9df970
PA
77222015-03-09 Pedro Alves <palves@redhat.com>
7723
7724 * tracepoint.c (gdb_agent_helper_thread): Cast '&sockaddr' to
7725 'struct sockaddr' pointer in 'accept' call.
7726
9eb1356e
PA
77272015-03-09 Pedro Alves <palves@redhat.com>
7728
7729 Revert:
7730 2015-03-07 Pedro Alves <palves@redhat.com>
7731 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7732 or <winsock2.h> here. Instead include "gdb_socket.h".
7733 (remote_open): Use union gdb_sockaddr_u.
7734 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7735 or <winsock2.h> here. Instead include "gdb_socket.h".
7736 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7737 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7738 or <sys/un.h>.
7739 (init_named_socket, gdb_agent_helper_thread): Use union
7740 gdb_sockaddr_u.
7741
aac331e4
PA
77422015-03-07 Pedro Alves <palves@redhat.com>
7743
7744 * configure.ac (build_warnings): Move
7745 -Wdeclaration-after-statement to the C-specific set.
7746 * configure: Regenerate.
7747
366c75fc
PA
77482015-03-07 Pedro Alves <palves@redhat.com>
7749
7750 * gdbreplay.c: No longer include <netinet/in.h>, <sys/socket.h>,
7751 or <winsock2.h> here. Instead include "gdb_socket.h".
7752 (remote_open): Use union gdb_sockaddr_u.
7753 * remote-utils.c: No longer include <netinet/in.h>, <sys/socket.h>
7754 or <winsock2.h> here. Instead include "gdb_socket.h".
7755 (handle_accept_event, remote_prepare): Use union gdb_sockaddr_u.
7756 * tracepoint.c: Include "gdb_socket.h" instead of <sys/socket.h>
7757 or <sys/un.h>.
7758 (init_named_socket, gdb_agent_helper_thread): Use union
7759 gdb_sockaddr_u.
7760
492d29ea
PA
77612015-03-07 Pedro Alves <palves@redhat.com>
7762
7763 Adjust all callers of TRY_CATCH to use TRY/CATCH/END_CATCH
7764 instead.
7765
60a191ed
YQ
77662015-03-06 Yao Qi <yao.qi@linaro.org>
7767
7768 * linux-aarch64-low.c (aarch64_insert_point): Use
7769 show_debug_regs as a boolean.
7770 (aarch64_remove_point): Likewise.
7771
f5771b1d
PA
77722015-03-05 Pedro Alves <palves@redhat.com>
7773
7774 * lynx-low.c (lynx_target_ops): Install NULL hooks for
7775 stopped_by_sw_breakpoint, supports_stopped_by_sw_breakpoint,
7776 stopped_by_hw_breakpoint, supports_stopped_by_hw_breakpoint.
7777 * nto-low.c (nto_target_ops): Likewise.
7778 * spu-low.c (spu_target_ops): Likewise.
7779 * win32-low.c (win32_target_ops): Likewise.
7780
3e572f71
PA
77812015-03-04 Pedro Alves <palves@redhat.com>
7782
72f4393d 7783 * linux-low.c (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]:
3e572f71
PA
7784 Decide whether a breakpoint triggered based on the SIGTRAP's
7785 siginfo.si_code.
72f4393d
L
7786 (thread_still_has_status_pending_p) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7787 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
3e572f71
PA
7788 (linux_low_filter_event): Check for breakpoints before checking
7789 watchpoints.
7790 (linux_wait_1): Don't re-increment the PC if relying on SIGTRAP's
7791 siginfo.si_code.
72f4393d
L
7792 (linux_stopped_by_sw_breakpoint)
7793 (linux_supports_stopped_by_sw_breakpoint)
7794 (linux_stopped_by_hw_breakpoint)
7795 (linux_supports_stopped_by_hw_breakpoint): New functions.
7796 (linux_target_ops): Install new target methods.
3e572f71 7797
1ec68e26
PA
77982015-03-04 Pedro Alves <palves@redhat.com>
7799
7800 * remote-utils.c (prepare_resume_reply): Report swbreak/hbreak.
7801 * server.c (swbreak_feature, hwbreak_feature): New globals.
7802 (handle_query) <qSupported>: Handle "swbreak+" and "hwbreak+".
7803 (captured_main): Clear swbreak_feature and hwbreak_feature.
7804 * server.h (swbreak_feature, hwbreak_feature): Declare.
7805 * target.h (struct target_ops) <stopped_by_sw_breakpoint,
7806 supports_stopped_by_sw_breakpoint, stopped_by_hw_breakpoint,
7807 supports_stopped_by_hw_breakpoint>: New fields.
7808 (target_supports_stopped_by_sw_breakpoint)
7809 (target_stopped_by_sw_breakpoint)
7810 (target_supports_stopped_by_hw_breakpoint)
7811 (target_stopped_by_hw_breakpoint): Declare.
7812
15c66dd6
PA
78132015-03-04 Pedro Alves <palves@redhat.com>
7814
7815 enum lwp_stop_reason -> enum target_stop_reason
7816 * linux-low.c (check_stopped_by_breakpoint): Adjust.
7817 (thread_still_has_status_pending_p, check_stopped_by_watchpoint)
7818 (linux_wait_1, stuck_in_jump_pad_callback)
7819 (move_out_of_jump_pad_callback, linux_resume_one_lwp)
7820 (linux_stopped_by_watchpoint):
7821 * linux-low.h (enum lwp_stop_reason): Delete.
7822 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7823 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
7824
98fc70d6
YQ
78252015-03-04 Yao Qi <yao.qi@linaro.org>
7826
7827 * Makefile.in (SFILES): Add linux-aarch64-low.c.
7828
dd2ac174
GB
78292015-03-03 Gary Benson <gbenson@redhat.com>
7830
7831 * hostio.c (handle_vFile): Fix prefix lengths.
7832
d68e53f4
MM
78332015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7834
7835 * linux-low.c (linux_low_enable_btrace): Do not overwrite non-zero
7836 ptr_bits.
7837
bf2d68ab
AA
78382015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7839
7840 * Makefile.in (s390-vx-linux64.c, s390-tevx-linux64.c)
7841 (s390x-vx-linux64.c, s390x-tevx-linux64.c): New rules.
7842 (clean): Add "rm -f" for above C files.
7843 * configure.srv (srv_regobj): Add s390-vx-linux64.o,
7844 s390-tevx-linux64.o, s390x-vx-linux64.o, and s390x-tevx-linux64.o.
7845 (srv_xmlfiles): Add s390-vx-linux64.xml, s390-tevx-linux64.xml,
7846 s390x-vx-linux64.xml, s390x-tevx-linux64.xml, and s390-vx.xml.
7847 * linux-s390-low.c (HWCAP_S390_VX): New macro.
7848 (init_registers_s390_vx_linux64, init_registers_s390_tevx_linux64)
7849 (init_registers_s390x_vx_linux64)
7850 (init_registers_s390x_tevx_linux64)
7851 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7852 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): New extern
7853 declarations.
7854 (s390_fill_vxrs_low, s390_store_vxrs_low, s390_fill_vxrs_high)
7855 (s390_store_vxrs_high): New functions.
7856 (s390_regsets): Add entries for NT_S390_VXRS_LOW and
7857 NT_S390_VXRS_HIGH.
7858 (s390_arch_setup): Add logic for selecting one of the new target
7859 descriptions. Activate the new vector regsets if applicable.
7860 (initialize_low_arch): Also invoke init_registers_s390_vx_linux64,
7861 init_registers_s390_tevx_linux64, init_registers_s390x_vx_linux64,
7862 and init_registers_s390x_tevx_linux64.
7863
c966a859
PA
78642015-03-01 Pedro Alves <palves@redhat.com>
7865
7866 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Constify 'raw_regs'
7867 parameter.
7868
4180215b
PA
78692015-02-27 Pedro Alves <palves@redhat.com>
7870
7871 * linux-x86-low.c (u_debugreg_offset): New function.
7872 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7873
749bab01
PA
78742015-02-27 Pedro Alves <palves@redhat.com>
7875
7876 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7877 [!HAVE_PROC_SERVICE_H] (struct ps_prochandle): Forward declare.
7878 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7879 ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7880 (ps_lsetfpregs, ps_getpid)
7881 (ps_get_thread_area, ps_pglobal_lookup, ps_pstop, ps_pcontinue)
7882 (ps_lstop, ps_lcontinue, ps_lgetxregsize, ps_lgetxregs)
7883 (ps_lsetxregs, ps_plog): Declare.
7884
3c14e5a3
PA
78852015-02-27 Pedro Alves <palves@redhat.com>
7886
7887 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Use
7888 IP_AGENT_EXPORT_FUNC.
7889 * linux-i386-ipa.c (gdb_agent_get_raw_reg): Use
7890 IP_AGENT_EXPORT_FUNC.
7891 * tracepoint.c (ATTR_USED, ATTR_NOINLINE, ATTR_CONSTRUCTOR)
7892 (IP_AGENT_EXPORT): Delete.
7893 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7894 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7895 (gdb_trampoline_buffer_error, collecting, gdb_collect)
7896 (stop_tracing, flush_trace_buffer, about_to_request_buffer_space)
7897 (trace_buffer_is_full, stopping_tracepoint, expr_eval_result)
7898 (error_tracepoint, tracepoints, tracing, trace_buffer_ctrl)
7899 (trace_buffer_ctrl_curr, trace_buffer_lo, trace_buffer_hi)
7900 (traceframe_read_count, traceframe_write_count)
7901 (traceframes_created, trace_state_variables, get_raw_reg)
7902 (get_trace_state_variable_value, set_trace_state_variable_value)
7903 (ust_loaded, helper_thread_id, cmd_buf): Use
7904 IPA_SYM_EXPORTED_NAME.
7905 (stop_tracing, flush_trace_buffer): Use IP_AGENT_EXPORT_FUNC.
7906 (tracepoints) Use IP_AGENT_EXPORT_VAR.
7907 (stopping_tracepoint, trace_buffer_is_full, expr_eval_result): Use
7908 IP_AGENT_EXPORT_VAR and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7909 (last_tracepoint): Move into !IN_PROCESS_AGENT block.
7910 (error_tracepoint): Use IP_AGENT_EXPORT_VAR and wrap in
7911 EXTERN_C_PUSH/EXTERN_C_POP.
7912 (trace_state_variables): Use IP_AGENT_EXPORT_VAR.
7913 (trace_buffer_lo, trace_buffer_hi): Use IP_AGENT_EXPORT_VAR and
7914 wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7915 (trace_buffer_ctrl, trace_buffer_ctrl_curr)
7916 (traceframe_write_count, traceframe_read_count)
7917 (traceframes_created, tracing): Use IP_AGENT_EXPORT_VAR.
7918 (about_to_request_buffer_space, get_trace_state_variable_value)
7919 (set_trace_state_variable_value): Use IP_AGENT_EXPORT_FUNC.
7920 (collecting): Use IP_AGENT_EXPORT_VAR and wrap in
7921 EXTERN_C_PUSH/EXTERN_C_POP.
7922 (gdb_collect): Use IP_AGENT_EXPORT_FUNC.
7923 (ust_loaded, cmd_buf): Use IP_AGENT_EXPORT_VAR.
7924 (helper_thread_id, gdb_agent_capability): Use IP_AGENT_EXPORT_VAR
7925 and wrap in EXTERN_C_PUSH/EXTERN_C_POP.
7926 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
7927 (gdb_trampoline_buffer, gdb_trampoline_buffer_end)
7928 (gdb_trampoline_buffer_error): Use IP_AGENT_EXPORT_VAR.
7929 * tracepoint.h (ATTR_USED, ATTR_NOINLINE, EXPORTED_SYMBOL):
7930 Define.
7931 (IP_AGENT_EXPORT_FUNC, IP_AGENT_EXPORT_VAR)
7932 (IP_AGENT_EXPORT_VAR_DECL): Define.
7933 (tracing): Declare.
7934 (gdb_agent_get_raw_reg): Declare.
7935
fe978cb0
PA
79362015-02-27 Tom Tromey <tromey@redhat.com>
7937 Pedro Alves <palves@redhat.com>
7938
7939 Rename symbols whose names are reserved C++ keywords throughout.
7940
3bc3d82a
PA
79412015-02-27 Pedro Alves <palves@redhat.com>
7942
7943 * Makefile.in (COMPILER): New, get it from autoconf.
7944 (CXX): Get from autoconf instead.
7945 (COMPILE.pre): Use COMPILER.
7946 (CC-LD): Rename to ...
7947 (CC_LD): ... this. Use COMPILER.
7948 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT), $(IPA_LIB)): Adjust.
7949 (CXX_FOR_TARGET): Default to g++ instead of gcc.
7950 * acinclude.m4: Include build-with-cxx.m4.
7951 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
7952 Disable -Werror by default if building in C++ mode.
7953 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
7954 -Wno-narrowing in C++ mode. Run supported-warning-flags tests with
7955 the C++ compiler. Save/restore CXXFLAGS too.
7956 * configure: Regenerate.
7957
07697489
PA
79582015-02-27 Pedro Alves <palves@redhat.com>
7959
7960 * acinclude.m4: Include libiberty.m4.
7961 * configure.ac: Call libiberty_INIT.
7962 * config.in, configure: Regenerate.
7963
9beb7c4e
PA
79642015-02-26 Pedro Alves <palves@redhat.com>
7965
7966 * linux-low.c (linux_wait_1): When incrementing the PC past a
7967 program breakpoint always use the_low_target.breakpoint_len as
7968 increment, rather than the maximum between that and
7969 the_low_target.decr_pc_after_break.
7970
8090aef2
PA
79712015-02-23 Pedro Alves <palves@redhat.com>
7972
7973 * linux-low.c (check_stopped_by_breakpoint): Don't check if the
7974 thread was doing a step-over; always adjust the PC if
7975 we stepped over a permanent breakpoint.
7976 (linux_wait_1): If we stepped over breakpoint that was on top of a
7977 permanent breakpoint, manually advance the PC past it.
7978
bc9540e8
PA
79792015-02-23 Pedro Alves <palves@redhat.com>
7980
7981 * linux-x86-low.c (REGSIZE): Define in both 32-bit and 64-bit
7982 modes.
7983 (x86_fill_gregset, x86_store_gregset): Use it when handling
7984 $orig_eax.
7985
2db9a427
PA
79862015-02-20 Pedro Alves <palves@redhat.com>
7987
7988 * thread-db.c: Include "nat/linux-procfs.h".
7989 (thread_db_init): Skip listing new threads if the kernel supports
7990 PTRACE_EVENT_CLONE and /proc/PID/task/ is accessible.
7991
afa8d396
PA
79922015-02-20 Pedro Alves <palves@redhat.com>
7993
7994 * linux-low.c (status_pending_p_callback): Use ptid_match.
7995
c9587f88
AT
79962015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
7997
7998 PR breakpoints/16812
7999 * linux-low.c (wstatus_maybe_breakpoint): Remove.
8000 (linux_low_filter_event): Update wstatus_maybe_breakpoint name.
8001 (linux_wait_1): Report SIGTRAP,SIGILL,SIGSEGV.
8002
b05ec7a5
AT
80032015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8004
8005 PR breakpoints/15956
8006 * tracepoint.c (cmd_qtinit): Add check for current_thread.
8007
d33501a5
MM
80082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8009
8010 * linux-low.c (linux_low_btrace_conf): Print size.
8011 * server.c (handle_btrace_conf_general_set): New.
8012 (hanle_general_set): Call handle_btrace_conf_general_set.
8013 (handle_query): Report Qbtrace-conf:bts:size as supported.
8014
f4abbc16
MM
80152015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8016
8017 * linux-low.c (linux_low_enable_btrace): Update parameters.
8018 (linux_low_btrace_conf): New.
8019 (linux_target_ops)<to_btrace_conf>: Initialize.
8020 * server.c (current_btrace_conf): New.
8021 (handle_btrace_enable): Rename to ...
8022 (handle_btrace_enable_bts): ... this. Pass &current_btrace_conf
8023 to target_enable_btrace. Update comment. Update users.
8024 (handle_qxfer_btrace_conf): New.
8025 (qxfer_packets): Add btrace-conf entry.
8026 (handle_query): Report qXfer:btrace-conf:read as supported packet.
8027 * target.h (target_ops)<enable_btrace>: Update parameters and comment.
8028 (target_ops)<read_btrace_conf>: New.
8029 (target_enable_btrace): Update parameters.
8030 (target_read_btrace_conf): New.
8031
043c3577
MM
80322015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8033
8034 * server.c (handle_btrace_general_set): Remove call to
8035 target_supports_btrace.
8036 (supported_btrace_packets): New.
8037 (handle_query): Call supported_btrace_packets.
8038 * target.h: include btrace-common.h.
8039 (btrace_target_info): Removed.
8040 (supports_btrace, target_supports_btrace): Update parameters.
8041
734b0e4b
MM
80422015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8043
8044 * Makefile.in (SFILES): Add common/btrace-common.c.
8045 (OBS): Add common/btrace-common.o.
8046 (btrace-common.o): Add build rules.
8047 * linux-low: Include btrace-common.h.
8048 (linux_low_read_btrace): Use struct btrace_data. Call
8049 btrace_data_init and btrace_data_fini.
8050
d6c146e9
PA
80512015-02-06 Pedro Alves <palves@redhat.com>
8052
8053 * thread-db.c (find_new_threads_callback): Add debug output.
8054
20ba1ce6
PA
80552015-02-04 Pedro Alves <palves@redhat.com>
8056
8057 * linux-low.c (handle_extended_wait): Don't resume LWPs here.
8058 (resume_stopped_resumed_lwps): New function.
8059 (linux_wait_for_event_filtered): Use it.
8060
8cc73a39
SDJ
80612015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8062
8063 * Makefile.in (SFILES): Add linux-personality.c.
8064 (linux-personality.o): New rule.
8065 * configure.srv (srv_linux_obj): Add linux-personality.o to the
8066 list of objects to be built.
8067 * linux-low.c: Include nat/linux-personality.h.
8068 (linux_create_inferior): Remove code to disable address space
8069 randomization (moved to ../nat/linux-personality.c). Create
8070 cleanup to disable address space randomization.
8071
fb23d554
SDJ
80722015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
8073
8074 * Makefile.in (posix-strerror.o): New rule.
8075 (mingw-strerror.o): Likewise.
8076 * configure: Regenerated.
8077 * configure.ac: Source file ../common/common.host. Initialize new
8078 variable srv_host_obs. Add srv_host_obs to GDBSERVER_DEPFILES.
8079
cdf43629
YQ
80802015-01-14 Yao Qi <yao@codesourcery.com>
8081
8082 * Makefile.in (SFILES): Add nat/ppc-linux.c.
8083 (ppc-linux.o): New rule.
8084 * configure.srv (powerpc*-*-linux*): Add ppc-linux.o.
8085 * configure.ac: AC_CHECK_FUNCS(getauxval).
8086 * config.in: Re-generated.
8087 * configure: Re-generated.
8088 * linux-ppc-low.c (ppc_arch_setup) [__powerpc64__]: Call
8089 ppc64_64bit_inferior_p
8090
514c5338
YQ
80912015-01-14 Yao Qi <yao@codesourcery.com>
8092
8093 * linux-ppc-low.c: Include "nat/ppc-linux.h".
8094 (PPC_FEATURE_HAS_VSX): Move to nat/ppc-linux.h.
8095 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Likewise.
8096 (PT_ORIG_R3, PT_TRAP): Likewise.
8097 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
8098 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
8099 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
8100
3368c1e5
JB
81012015-01-10 Joel Brobecker <brobecker@adacore.com>
8102
8103 * i387-fp.c (i387_cache_to_xsave): In look over
8104 num_avx512_zmmh_high_registers, replace use of struct i387_xsave
8105 zmmh_low_space field by use of zmmh_high_space.
8106
582511be
PA
81072015-01-09 Pedro Alves <palves@redhat.com>
8108
8109 * linux-low.c (step_over_bkpt): Move higher up in the file.
8110 (handle_extended_wait): Don't store the stop_pc here.
8111 (get_stop_pc): Adjust comments and rename to ...
8112 (check_stopped_by_breakpoint): ... this. Record whether the LWP
8113 stopped for a software breakpoint or hardware breakpoint.
8114 (thread_still_has_status_pending_p): New function.
8115 (status_pending_p_callback): Use
8116 thread_still_has_status_pending_p. If the event is no longer
8117 interesting, resume the LWP.
8118 (handle_tracepoints): Add assert.
8119 (maybe_move_out_of_jump_pad): Remove cancel_breakpoints call.
8120 (wstatus_maybe_breakpoint): New function.
8121 (cancel_breakpoint): Delete function.
8122 (check_stopped_by_watchpoint): New function, factored out from
8123 linux_low_filter_event.
8124 (lp_status_maybe_breakpoint): Delete function.
8125 (linux_low_filter_event): Remove filter_ptid argument.
8126 Leave thread group exits pending here. Store the LWP's stop PC.
8127 Always leave events pending.
8128 (linux_wait_for_event_filtered): Pull all events out of the
8129 kernel, and leave them all pending.
8130 (count_events_callback, select_event_lwp_callback): Consider all
8131 events.
8132 (cancel_breakpoints_callback, linux_cancel_breakpoints): Delete.
8133 (select_event_lwp): Only give preference to the stepping LWP in
8134 all-stop mode. Adjust comments.
8135 (ignore_event): New function.
8136 (linux_wait_1): Delete 'retry' label. Use ignore_event. Remove
8137 references to cancel_breakpoints. Adjust to renames. Also give
8138 equal priority to all LWPs that have had events in non-stop mode.
8139 If reporting a software breakpoint event, unadjust the LWP's PC.
8140 (linux_wait): If linux_wait_1 returned an ignored event, retry.
8141 (stuck_in_jump_pad_callback, move_out_of_jump_pad_callback):
8142 Adjust.
8143 (linux_resume_one_lwp): Store the LWP's PC. Adjust.
8144 (resume_status_pending_p): Use thread_still_has_status_pending_p.
8145 (linux_stopped_by_watchpoint): Adjust.
8146 (linux_target_ops): Remove reference to linux_cancel_breakpoints.
8147 * linux-low.h (enum lwp_stop_reason): New.
8148 (struct lwp_info) <stop_pc>: Adjust comment.
8149 <stopped_by_watchpoint>: Delete field.
8150 <stop_reason>: New field.
8151 * linux-x86-low.c (x86_linux_prepare_to_resume): Adjust.
8152 * mem-break.c (software_breakpoint_inserted_here)
8153 (hardware_breakpoint_inserted_here): New function.
8154 * mem-break.h (software_breakpoint_inserted_here)
8155 (hardware_breakpoint_inserted_here): Declare.
8156 * target.h (struct target_ops) <cancel_breakpoints>: Remove field.
8157 (cancel_breakpoints): Delete.
8158 * tracepoint.c (clear_installed_tracepoints, stop_tracing)
8159 (upload_fast_traceframes): Remove references to
8160 cancel_breakpoints.
8161
a33e3959
PA
81622015-01-09 Pedro Alves <palves@redhat.com>
8163
8164 * thread-db.c (find_new_threads_callback): Ignore thread if the
8165 kernel thread ID is -1.
8166
8784d563
PA
81672015-01-09 Pedro Alves <palves@redhat.com>
8168
8169 * linux-low.c (linux_attach_fail_reason_string): Move to
8170 nat/linux-ptrace.c, and rename.
8171 (linux_attach_lwp): Update comment.
8172 (attach_proc_task_lwp_callback): New function.
8173 (linux_attach): Adjust to rename and use
8174 linux_proc_attach_tgid_threads.
8175 (linux_attach_fail_reason_string): Delete declaration.
8176
76f2b779
JB
81772015-01-01 Joel Brobecker <brobecker@adacore.com>
8178
8179 * gdbreplay.c (gdbreplay_version): Update copyright year to 2015.
8180 * server.c (gdbserver_version): Likewise.
8181
fafcc06a
SDJ
81822014-12-29 Sergio Durigan Junior <sergiodj@redhat.com>
8183
8184 * remote-utils.c: Include ctype.h.
8185 (input_interrupt): Explicitly handle the case when the char
8186 received is the NUL byte. Improve the printing of non-ASCII
8187 characters.
8188
beed38b8
JB
81892014-12-16 Joel Brobecker <brobecker@adacore.com>
8190
8191 * linux-low.c (linux_low_filter_event): Update call to
8192 linux_enable_event_reporting following the addition of
8193 a new parameter to that function.
8194
bf330350
CU
81952014-12-16 Catalin Udma <catalin.udma@freescale.com>
8196
8197 PR server/17457
8198 * linux-aarch64-low.c (AARCH64_FPSR_REGNO): New define.
8199 (AARCH64_FPCR_REGNO): Likewise.
8200 (AARCH64_NUM_REGS): Update to include fpsr/fpcr registers.
8201 (aarch64_fill_fpregset): Add missing fpsr/fpcr registers.
8202 (aarch64_store_fpregset): Likewise.
8203
5227d625
JB
82042014-12-15 Joel Brobecker <brobecker@adacore.com>
8205
8206 * lynx-low.c (lynx_resume): Use PTRACE_SINGLESTEP_ONE if N == 1.
8207 Remove FIXME comment about assumption about N.
8208
f93b65a0
JB
82092014-12-13 Joel Brobecker <brobecker@adacore.com>
8210
8211 * configure.ac: If large-file support is disabled in GDBserver,
8212 pass --disable-largefile to ACX_CONFIGURE_DIR call for "gnulib".
8213 * configure: Regenerate.
8214
e5a9158d
AA
82152014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8216
8217 * linux-low.c (regsets_fetch_inferior_registers): Suppress the
8218 warning upon ENODATA from ptrace.
8219 * linux-s390-low.c (s390_store_tdb): New.
8220 (s390_regsets): Add regset for NT_S390_TDB.
8221
feea5f36
AA
82222014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8223
8224 * linux-low.c (regsets_store_inferior_registers): Skip regsets
8225 without a fill_function.
8226 * linux-s390-low.c (s390_fill_last_break): Remove.
8227 (s390_regsets): Set fill_function to NULL for NT_S390_LAST_BREAK.
8228 (s390_arch_setup): Use regset's size instead of fill_function for
8229 loop end condition.
8230
098dbe61
AA
82312014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8232
8233 * linux-low.c (regsets_fetch_inferior_registers): Do not invoke
8234 the regset's store function when ptrace returned an error.
8235 * regcache.c (get_thread_regcache): Invalidate register cache
8236 before fetching inferior's registers.
8237
28eef672
AA
82382014-12-12 Andreas Arnez <arnez@linux.vnet.ibm.com>
8239
8240 * linux-low.c (regsets_fetch_inferior_registers): Rephrase
8241 while-loop as for-loop.
8242 (regsets_store_inferior_registers): Likewise.
8243
bdca27a2
YQ
82442014-11-28 Yao Qi <yao@codesourcery.com>
8245
8246 * configure.ac(AC_CHECK_FUNCS): Remove readlink.
8247 * config.in, configure: Re-generate.
8248 * hostio.c (handle_unlink): Remove code checking HAVE_READLINK
8249 is defined.
8250
9c232dda
YQ
82512014-11-21 Yao Qi <yao@codesourcery.com>
8252
8253 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
8254 (AC_CHECK_HEADERS): Remove malloc.h.
8255 * configure: Re-generated.
8256 * config.in: Re-generated.
8257 * server.h: Don't include alloca.h and malloc.h.
8258 * gdbreplay.c: Don't check HAVE_ALLOCA_H is defined.
8259 Don't include malloc.h.
8260
43968415
JB
82612014-11-17 Joel Brobecker <brobecker@adacore.com>
8262
8263 * lynx-low.c (lynx_write_memory): Put lynx_read_memory and
8264 corresponding ERRNO check in same block.
8265
40e91bc7
PA
82662014-11-12 Pedro Alves <palves@redhat.com>
8267
8268 * server.c (cont_thread): Update comment.
8269 (start_inferior, attach_inferior): No longer clear cont_thread.
8270 (handle_v_cont): No longer set cont_thread.
8271 (captured_main): Clear cont_thread each time a GDB connects.
8272
c2c118cf
PA
82732014-11-12 Pedro Alves <palves@redhat.com>
8274
8275 * linux-low.c (linux_wait_1): Don't force a wait for the Hc
8276 thread, and don't resume all threads if the Hc thread has exited.
8277
78708b7c
PA
82782014-11-12 Pedro Alves <palves@redhat.com>
8279
8280 * linux-low.c (linux_request_interrupt): Always send a SIGINT to
8281 the process group instead of to a specific LWP.
8282
a2abc7de
PA
82832014-10-15 Pedro Alves <palves@redhat.com>
8284
8285 PR server/17487
8286 * win32-arm-low.c (arm_set_thread_context): Remove current_event
8287 parameter.
8288 (arm_set_thread_context): Delete.
8289 (the_low_target): Adjust.
8290 * win32-i386-low.c (debug_registers_changed)
8291 (debug_registers_used): Delete.
8292 (update_debug_registers_callback): New function.
8293 (x86_dr_low_set_addr, x86_dr_low_set_control): Mark all threads as
8294 needing to update their debug registers.
8295 (win32_get_current_dr): New function.
8296 (x86_dr_low_get_addr, x86_dr_low_get_control)
8297 (x86_dr_low_get_status): Fetch the debug register from the thread
8298 record's context.
8299 (i386_initial_stuff): Adjust.
8300 (i386_get_thread_context): Remove current_event parameter. Don't
8301 clear debug_registers_changed nor copy DR values to
8302 debug_reg_state.
8303 (i386_set_thread_context): Delete.
8304 (i386_prepare_to_resume): New function.
8305 (i386_thread_added): Mark the thread as needing to update irs
8306 debug registers.
8307 (the_low_target): Remove i386_set_thread_context and install
8308 i386_prepare_to_resume.
8309 * win32-low.c (win32_get_thread_context): Adjust.
8310 (win32_set_thread_context): Use SetThreadContext
8311 directly.
8312 (win32_prepare_to_resume): New function.
8313 (win32_require_context): New function, factored out from ...
8314 (thread_rec): ... this.
8315 (continue_one_thread): Call win32_prepare_to_resume on each thread
8316 we're about to continue.
8317 (win32_resume): Call win32_prepare_to_resume on the event thread.
8318 * win32-low.h (struct win32_thread_info)
8319 <debug_registers_changed>: New field.
8320 (struct win32_target_ops): Change prototype of set_thread_context,
8321 delete set_thread_context and add prepare_to_resume.
8322 (win32_require_context): New declaration.
8323
a442d071
GB
83242014-10-08 Gary Benson <gbenson@redhat.com>
8325
8326 * server.h: Do not include common-exceptions.h.
8327
6f1947e8
GB
83282014-10-08 Gary Benson <gbenson@redhat.com>
8329
8330 * server.h: Do not include cleanups.h.
8331
63b434a4
JH
83322014-09-30 James Hogan <james.hogan@imgtec.com>
8333
8334 * Makefile.in (clean): Add rm -f commands for mips-dsp-linux.c and
8335 mips64-dsp-linux.c.
8336
c4d9ceb6
YQ
83372014-09-23 Yao Qi <yao@codesourcery.com>
8338
8339 * linux-low.c (lp_status_maybe_breakpoint): New function.
8340 (linux_low_filter_event): Call lp_status_maybe_breakpoint.
8341 (count_events_callback): Likewise.
8342 (select_event_lwp_callback): Likewise.
8343 (cancel_breakpoints_callback): Likewise.
8344
89a5711c
DB
83452014-09-19 Don Breazeal <donb@codesourcery.com>
8346
8347 * linux-low.c (handle_extended_wait): Call
8348 linux_ptrace_get_extended_event.
8349 (get_stop_pc, get_detach_signal, linux_low_filter_event): Call
8350 linux_is_extended_waitstatus.
8351
bffc0964
JB
83522014-09-16 Joel Brobecker <brobecker@adacore.com>
8353
8354 * Makefile.in (CPPFLAGS): Define.
8355 (INTERNAL_CFLAGS_BASE): Add ${CPPFLAGS}.
8356 (IPAGENT_CFLAGS): Remove ${CPPFLAGS}.
8357
0bfdf32f
GB
83582014-09-16 Gary Benson <gbenson@redhat.com>
8359
8360 * inferiors.h (current_inferior): Renamed as...
8361 (current_thread): New variable. All uses updated.
8362 * linux-low.c (get_pc): Renamed saved_inferior as saved_thread.
8363 (maybe_move_out_of_jump_pad): Likewise.
8364 (cancel_breakpoint): Likewise.
8365 (linux_low_filter_event): Likewise.
8366 (wait_for_sigstop): Likewise.
8367 (linux_resume_one_lwp): Likewise.
8368 (need_step_over_p): Likewise.
8369 (start_step_over): Likewise.
8370 (linux_stabilize_threads): Renamed save_inferior as saved_thread.
8371 * linux-x86-low.c (x86_linux_update_xmltarget): Likewise.
8372 * proc-service.c (ps_lgetregs): Renamed reg_inferior as reg_thread
8373 and save_inferior as saved_thread.
8374 * regcache.c (get_thread_regcache): Renamed saved_inferior as
8375 saved_thread.
8376 (regcache_invalidate_thread): Likewise.
8377 * remote-utils.c (prepare_resume_reply): Likewise.
8378 * thread-db.c (thread_db_get_tls_address): Likewise.
8379 (disable_thread_event_reporting): Likewise.
8380 (remove_thread_event_breakpoints): Likewise.
8381 * tracepoint.c (gdb_agent_about_to_close): Renamed save_inferior
8382 as saved_thread.
8383 * target.h (set_desired_inferior): Renamed as...
8384 (set_desired_thread): New declaration. All uses updated.
8385 * server.c (myresume): Updated comment to reference thread instead
8386 of inferior.
8387 (handle_serial_event): Likewise.
8388 (handle_target_event): Likewise.
8389
361c8ade
GB
83902014-09-12 Tom Tromey <tromey@redhat.com>
8391 Gary Benson <gbenson@redhat.com>
8392
8393 * regcache.h: Include common-regcache.h.
8394 (regcache_read_pc): Don't declare.
8395 * regcache.c (get_thread_regcache_for_ptid): New function.
8396
bd9269f7
GB
83972014-09-11 Tom Tromey <tromey@redhat.com>
8398 Gary Benson <gbenson@redhat.com>
8399
8400 * symbol.c: New file.
8401 * Makefile.in (SFILES): Add symbol.c.
8402 (OBS): Add symbol.o.
8403
f8c1d06b
GB
84042014-09-11 Gary Benson <gbenson@redhat.com>
8405
8406 * target.c (target_stop_ptid, target_continue_ptid): New
8407 functions.
8408
721ec300
GB
84092014-09-11 Tom Tromey <tromey@redhat.com>
8410 Gary Benson <gbenson@redhat.com>
8411
8412 * target.h: Include target/target.h.
8413 * target.c (target_read_memory, target_read_uint32)
8414 (target_write_memory): New functions.
8415
c5e92cca
GB
84162014-09-11 Gary Benson <gbenson@redhat.com>
8417
8418 * server.h (debug_hw_points): Don't declare.
8419 * server.c (debug_hw_points): Don't define. Replace all uses
8420 with show_debug_regs.
8421 * linux-aarch64-low.c (debug_hw_points): Don't define. Replace
8422 all uses with show_debug_regs.
8423
2e4bb98a
EBM
84242014-09-08 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8425
8426 * linux-ppc-low.c (ppc_collect_ptrace_register): Adjust routine to take
8427 endianness into account.
8428 (ppc_supply_ptrace_register): Likewise.
8429
ac740bc7
JH
84302014-09-03 James Hogan <james.hogan@imgtec.com>
8431
8432 * linux-mips-low.c (mips_read_description): Reset errno to 0 prior
8433 to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
8434
97ea6506
GB
84352014-09-03 Gary Benson <gbenson@redhat.com>
8436
8437 * linux-x86-low.c (x86_linux_prepare_to_resume): Use
8438 ALL_DEBUG_ADDRESS_REGISTERS.
8439
df7e5265
GB
84402014-09-02 Gary Benson <gbenson@redhat.com>
8441
8442 * i386-low.h: Renamed as...
8443 * x86-low.h: New file. All type, function and variable name
8444 prefixes changed from "i386_" to "x86_". All references updated.
8445 * i386-low.c: Renamed as...
8446 * x86-low.c: New file. All type, function and variable name
8447 prefixes changed from "i386_" to "x86_". All references updated.
8448
ed859da7
GB
84492014-09-02 Gary Benson <gbenson@redhat.com>
8450
8451 * linux-x86-low.c (x86_linux_new_process): Use XCNEW.
8452 (x86_linux_new_thread): Likewise.
8453
860789c7
GB
84542014-08-29 Gary Benson <gbenson@redhat.com>
8455
8456 * server.h (setjmp.h): Do not include.
8457 (toplevel): Do not declare.
8458 (common-exceptions.h): Include.
8459 (cleanups.h): Likewise.
8460 * server.c (toplevel): Do not define.
8461 (exit_code): New static global.
8462 (detach_or_kill_for_exit_cleanup): New function.
8463 (main): New function. Original main renamed to...
8464 (captured_main): New function.
8465 * utils.c (verror) [!IN_PROCESS_AGENT]: Use throw_verror.
8466
ff55e1b5
GB
84672014-08-29 Gary Benson <gbenson@redhat.com>
8468
8469 * Makefile.in (SFILES): Add common/common-exceptions.c.
8470 (OBS): Add common-exceptions.o.
8471 (common-exceptions.o): New rule.
8472 * utils.c (prepare_to_throw_exception): New function.
8473
e9bcb658
GB
84742014-08-29 Gary Benson <gbenson@redhat.com>
8475
8476 * config.in: Regenerate.
8477 * configure: Likewise.
8478
e3180625
GB
84792014-08-29 Gary Benson <gbenson@redhat.com>
8480
8481 * Makefile.in (SFILES): Add common/cleanups.c.
8482 (OBS): cleanups.o.
8483 (cleanups.o): New rule.
8484
e3d6ba5d
GB
84852014-08-29 Gary Benson <gbenson@redhat.com>
8486
8487 * utils.c (internal_vwarning): New function.
8488
7096e886
GB
84892014-08-28 Gary Benson <gbenson@redhat.com>
8490
8491 * utils.h (fatal): Remove declaration.
8492 * utils.c (fatal): Remove function.
8493
14ce3192
GB
84942014-08-28 Gary Benson <gbenson@redhat.com>
8495
8496 * tracepoint.c (gdb_agent_init): Replace fatal with
8497 perror_with_name.
8498 (initialize_tracepoint): Likewise.
8499
50278d59
GB
85002014-08-28 Gary Benson <gbenson@redhat.com>
8501
8502 * remote-utils.c (remote_prepare): Replace fatal with error.
8503
aa96c426
GB
85042014-08-28 Gary Benson <gbenson@redhat.com>
8505
8506 * linux-low.c (linux_async): Replace fatal with warning.
8507 Tidy up and return.
8508 (linux_start_non_stop): Return -1 if linux_async failed.
8509
f7160e97
GB
85102014-08-28 Gary Benson <gbenson@redhat.com>
8511
8512 * linux-x86-low.c (i386_dr_low_set_addr): Replace check with
8513 gdb_assert.
8514 (i386_dr_low_get_addr): Remove vague comment.
8515 * win32-i386-low.c (i386_dr_low_set_addr): Replace check with
8516 gdb_assert.
8517
38e08fca
GB
85182014-08-28 Gary Benson <gbenson@redhat.com>
8519
8520 * inferiors.c (get_thread_process): Replace check with gdb_assert.
8521 * linux-low.c (linux_wait_for_event_filtered): Replace fatal with
8522 internal_error.
8523 (linux_resume_one_lwp): Likewise.
8524 * linux-x86-low.c (x86_siginfo_fixup): Replace checks with
8525 gdb_assert.
8526 * mem-break.c (raw_bkpt_type_to_target_hw_bp_type): Replace fatal
8527 with internal_error.
8528 * regcache.c (get_thread_regcache): Replace check with gdb_assert.
8529 (init_register_cache): Replace fatal with gdb_assert_not_reached.
8530 (find_register_by_name): Replace fatal with internal_error.
8531 (find_regno): Likewise.
8532 * tdesc.c (init_target_desc): Replace check with gdb_assert.
8533 * thread-db.c (thread_db_create_event): Likewise.
8534 (thread_db_load_search): Likewise.
8535 (try_thread_db_load_1): Likewise.
8536 * tracepoint.c (get_jump_space_head): Replace fatal with
8537 internal_error.
8538 (claim_trampoline_space): Likewise.
8539 (have_fast_tracepoint_trampoline_buffer): Likewise.
8540 (cmd_qtstart): Likewise.
8541 (stop_tracing): Likewise.
8542 (fast_tracepoint_collecting): Likewise.
8543 (target_malloc): Likewise.
8544 (download_tracepoint): Likewise.
8545 (download_trace_state_variables): Replace check with gdb_assert.
8546 (upload_fast_traceframes): Replace fatal with internal_error.
8547
34abf635
GB
85482014-08-19 Tom Tromey <tromey@redhat.com>
8549 Gary Benson <gbenson@redhat.com>
8550
8551 * Makefile.in (SFILES): Add common/common-debug.c.
8552 (OBS): Add common-debug.o.
8553 (common-debug.o): New rule.
8554 * debug.h (debug_printf): Don't declare.
8555 * debug.c (debug_printf): Renamed and rewritten as...
8556 (debug_vprintf): New function.
8557
f6e94d78
GB
85582014-08-19 Gary Benson <gbenson@redhat.com>
8559
8560 * utils.h: Do not include print-utils.h.
8561
9239eeab
GB
85622014-08-19 Tom Tromey <tromey@redhat.com>
8563 Gary Benson <gbenson@redhat.com>
8564
8565 * server.h: Add static assertion.
8566 (gdb_byte, CORE_ADDR, LONGEST, ULONGEST): Remove.
8567
ef87c8bb
GB
85682014-08-19 Tom Tromey <tromey@redhat.com>
8569 Gary Benson <gbenson@redhat.com>
8570
8571 * Makefile.in (SFILES): Add common/errors.c.
8572 (OBS): Add errors.o.
8573 (IPA_OBS): Add errors-ipa.o.
8574 (errors.o): New rule.
8575 (errors-ipa.o): Likewise.
8576 * utils.h (perror_with_name, error, warning): Don't declare.
8577 * utils.c (warning): Renamed and rewritten as...
8578 (vwarning): New function.
8579 (error): Renamed and rewritten as...
8580 (verror): New function.
8581 (internal_error): Renamed and rewritten as...
8582 (internal_verror): New function.
8583
bb974a24
GB
85842014-08-07 Gary Benson <gbenson@redhat.com>
8585
8586 * configure.ac (AC_CHECK_HEADERS): Remove errno.h.
8587 * configure: Regenerate.
8588 * config.in: Likewise.
8589 * server.h: Do not include errno.h.
8590 * event-loop.c: Likewise.
8591 * hostio-errno.c: Likewise.
8592 * linux-low.c: Likewise.
8593 * remote-utils.c: Likewise.
8594 * spu-low.c: Likewise.
8595 * utils.c: Likewise.
8596 * gdbreplay.c: Unconditionally include errno.h.
8597
6d3d12eb
GB
85982014-08-07 Gary Benson <gbenson@redhat.com>
8599
8600 * server.h: Do not include string.h.
8601 * event-loop.c: Likewise.
8602 * linux-low.c: Likewise.
8603 * regcache.c: Likewise.
8604 * remote-utils.c: Likewise.
8605 * spu-low.c: Likewise.
8606 * utils.c: Likewise.
8607
dccbb609
GB
86082014-08-07 Gary Benson <gbenson@redhat.com>
8609
8610 * server.h: Do not include gdb_assert.h.
8611
e76df0d0
GB
86122014-08-07 Gary Benson <gbenson@redhat.com>
8613
8614 * server.h: Do not include common-utils.h.
8615
4cb9c816
GB
86162014-08-07 Gary Benson <gbenson@redhat.com>
8617
8618 * server.h: Do not include ptid.h.
8619 * notif.h: Likewise.
8620
3995eeee
GB
86212014-08-07 Gary Benson <gbenson@redhat.com>
8622
8623 * server.h: Do not include gdb_locale.h.
8624
cb9f1a9b
GB
86252014-08-07 Gary Benson <gbenson@redhat.com>
8626
8627 * server.h: Do not include gdb/signals.h.
8628 * win32-low.c: Likewise.
8629
a5fceff8
GB
86302014-08-07 Gary Benson <gbenson@redhat.com>
8631
8632 * server.h: Do not include pathmax.h.
8633
b9391142
GB
86342014-08-07 Gary Benson <gbenson@redhat.com>
8635
8636 * server.h: Do not include libiberty.h.
8637 * linux-bfin-low.c: Likewise.
8638
0e443c87
GB
86392014-08-07 Gary Benson <gbenson@redhat.com>
8640
8641 * server.h: Do not include ansidecl.h.
8642
8ebb3f56
GB
86432014-08-07 Gary Benson <gbenson@redhat.com>
8644
8645 * linux-x86-low.c: Do not include stddef.h.
8646 * lynx-ppc-low.c: Likewise.
8647 * tracepoint.c: Likewise.
8648
8980bdf6
GB
86492014-08-07 Gary Benson <gbenson@redhat.com>
8650
8651 * server.h: Do not include stdarg.h.
8652 * nto-low.c: Likewise.
8653
d7096f71
GB
86542014-08-07 Gary Benson <gbenson@redhat.com>
8655
8656 * server.h: Do not include stdlib.h.
8657 * inferiors.c: Likewise.
8658 * linux-low.c: Likewise.
8659 * regcache.c: Likewise.
8660 * spu-low.c: Likewise.
8661 * tracepoint.c: Likewise.
8662 * utils.c: Likewise.
8663
d02f550d
GB
86642014-08-07 Gary Benson <gbenson@redhat.com>
8665
8666 * server.h: Do not include stdio.h.
8667 * linux-low.c: Likewise.
8668 * remote-utils.c: Likewise.
8669 * spu-low.c: Likewise.
8670 * utils.c: Likewise.
8671 * wincecompat.c: Likewise.
8672
87f6c4e3
GB
86732014-08-06 Gary Benson <gbenson@redhat.com>
8674
8675 * regcache.c (init_register_cache): Move conditionals inside if.
8676
7089dca4
GB
86772014-08-06 Gary Benson <gbenson@redhat.com>
8678
8679 * linux-low.c (linux_supports_non_stop): Use target_is_async_p.
8680
462f517e
GB
86812014-07-31 Gary Benson <gbenson@redhat.com>
8682
8683 * ax.h: Do not include server.h.
8684 * gdbthread.h: Likewise.
8685 * lynx-low.h: Likewise.
8686 * notif.h: Likewise.
8687
976411d6
GB
86882014-07-30 Gary Benson <gbenson@redhat.com>
8689
8690 * server.h: Include common-defs.h.
8691 Do not include config.h or build-gnulib-gdbserver/config.h.
8692
d41f6d8e
GB
86932014-07-30 Gary Benson <gbenson@redhat.com>
8694
8695 * hostio-errno.c: Move server.h to top of includes list.
8696 * inferiors.c: Likewise.
8697 * linux-x86-low.c: Likewise.
8698 * notif.c: Include server.h.
8699
314c6a35
TT
87002014-07-24 Tom Tromey <tromey@redhat.com>
8701 Gary Benson <gbenson@redhat.com>
8702
8703 * server.h (CORE_ADDR): Now unsigned.
8704
69ff6be5
PA
87052014-07-16 Pedro Alves <palves@redhat.com>
8706
8707 * linux-low.c (linux_kill_one_lwp): Use kill_lwp, not kill.
8708
ce9e3fe7
PA
87092014-07-15 Pedro Alves <palves@redhat.com>
8710
8711 * linux-low.c (linux_kill_one_lwp): Save errno and work with saved
8712 copy.
8713
e76126e8
PA
87142014-07-11 Pedro Alves <palves@redhat.com>
8715
8716 * linux-low.c (kill_wait_lwp): New function, based on
8717 kill_one_lwp_callback, but use my_waitpid directly.
8718 (kill_one_lwp_callback, linux_kill): Use it.
8719
8e9db26e
PA
87202014-06-23 Pedro Alves <palves@redhat.com>
8721
8722 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR_CONTROL
8723 before setting DR0..DR3.
8724
698b3e08
GB
87252014-06-20 Gary Benson <gbenson@redhat.com>
8726
8727 * configure.ac (AC_REPLACE_FUNCS) <vasprintf, vsnprintf>: Removed.
8728 * configure: Regenerated.
8729 * config.in: Likewise.
8730
125f8a3d
GB
87312014-06-20 Gary Benson <gbenson@redhat.com>
8732
8733 * Makefile.in (SFILES): Update locations for files moved
8734 from common to nat.
8735 (object file files): Reordered.
8736
42995dbd
GB
87372014-06-20 Gary Benson <gbenson@redhat.com>
8738
8739 * i386-low.h (i386_dr_low_can_set_addr): Removed.
8740 (i386_dr_low_set_addr): Likewise.
8741 (i386_dr_low_get_addr): Likewise.
8742 (i386_dr_low_can_set_control): Likewise.
8743 (i386_dr_low_set_control): Likewise.
8744 (i386_dr_low_get_control): Likewise.
8745 (i386_dr_low_get_status): Likewise.
8746 (i386_get_debug_register_length): Likewise.
8747 * linux-x86-low.c (i386_dr_low_set_addr):
8748 Changed signature. Made static.
8749 (i386_dr_low_get_addr): Likewise.
8750 (i386_dr_low_set_control): Likewise.
8751 (i386_dr_low_get_control): Likewise.
8752 (i386_dr_low_get_status): Likewise.
8753 (i386_dr_low): New global variable.
8754 * win32-i386-low.c (i386_dr_low_set_addr):
8755 Changed signature. Made static.
8756 (i386_dr_low_get_addr): Likewise.
8757 (i386_dr_low_set_control): Likewise.
8758 (i386_dr_low_get_control): Likewise.
8759 (i386_dr_low_get_status): Likewise.
8760 (i386_dr_low): New global variable.
8761
e1d2394b
MS
87622014-06-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
8763
8764 * configure.ac: Invoke. AC_CHECK_TOOL(AR, ar).
8765 * Makefile.in (AR, AR_FLAGS): Define.
8766 * configure: Regenerate.
8767
3a8ee006
GB
87682014-06-19 Gary Benson <gbenson@redhat.com>
8769
8770 * Makefile.in (i386-dregs.o): New rule.
8771 * configure.srv: Add i386-dregs.o to all targets using i386-low.o.
8772 * i386-low.c (target.h): Remove include.
8773 (TARGET_HAS_DR_LEN_8): Now in i386-dregs.c.
8774 (DR_CONTROL_SHIFT): Likewise.
8775 (DR_CONTROL_SIZE): Likewise.
8776 (DR_RW_EXECUTE): Likewise.
8777 (DR_RW_WRITE): Likewise.
8778 (DR_RW_READ): Likewise.
8779 (DR_RW_IORW): Likewise.
8780 (DR_LEN_1): Likewise.
8781 (DR_LEN_2): Likewise.
8782 (DR_LEN_4): Likewise.
8783 (DR_LEN_8): Likewise.
8784 (DR_LOCAL_ENABLE_SHIFT): Likewise.
8785 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
8786 (DR_ENABLE_SIZE): Likewise.
8787 (DR_LOCAL_SLOWDOWN): Likewise.
8788 (DR_GLOBAL_SLOWDOWN): Likewise.
8789 (DR_CONTROL_RESERVED): Likewise.
8790 (I386_DR_CONTROL_MASK): Likewise.
8791 (I386_DR_VACANT): Likewise.
8792 (I386_DR_LOCAL_ENABLE): Likewise.
8793 (I386_DR_GLOBAL_ENABLE): Likewise.
8794 (I386_DR_DISABLE): Likewise.
8795 (I386_DR_SET_RW_LEN): Likewise.
8796 (I386_DR_GET_RW_LEN): Likewise.
8797 (I386_DR_WATCH_HIT): Likewise.
8798 (i386_wp_op_t): Likewise.
8799 (i386_show_dr): Likewise.
8800 (i386_length_and_rw_bits): Likewise.
8801 (i386_insert_aligned_watchpoint): Likewise.
8802 (i386_remove_aligned_watchpoint): Likewise.
8803 (i386_handle_nonaligned_watchpoint): Likewise.
8804 i386_update_inferior_debug_regs(): Likewise.
8805 (i386_dr_insert_watchpoint): Likewise.
8806 (i386_dr_remove_watchpoint): Likewise.
8807 (i386_dr_region_ok_for_watchpoint): Likewise.
8808 (i386_dr_stopped_data_address): Likewise.
8809 (i386_dr_stopped_by_watchpoint): Likewise.
8810
8f26655c
GB
88112014-06-19 Gary Benson <gbenson@redhat.com>
8812
8813 * i386-low.c (i386_dr_show): Renamed to
8814 i386_show_dr and made static. All uses updated.
8815 (i386_dr_length_and_rw_bits): Renamed to
8816 i386_length_and_rw_bits and made static.
8817 All uses updated.
8818 (i386_dr_insert_aligned_watchpoint): Renamed to
8819 i386_insert_aligned_watchpoint and made static.
8820 All uses updated.
8821 (i386_dr_remove_aligned_watchpoint): Renamed to
8822 i386_remove_aligned_watchpoint and made static.
8823 All uses updated.
8824 (i386_dr_update_inferior_debug_regs): Renamed to
8825 i386_update_inferior_debug_regs and made static.
8826 All uses updated.
8827
b9228891
GB
88282014-06-18 Gary Benson <gbenson@redhat.com>
8829
5171def3
GB
8830 * i386-low.h (i386_dr_low_can_set_addr): New macro.
8831 (i386_dr_low_can_set_control): Likewise.
8832 (i386_get_debug_register_length): Likewise.
8833 * i386-low.c (i386_dr_low_can_set_addr): Now in i386-low.h.
8834 (i386_dr_low_can_set_control): Likewise.
8835 (i386_get_debug_register_length): Likewise.
8836
88372014-06-17 Gary Benson <gbenson@redhat.com>
8838
b9228891
GB
8839 * i386-low.h (i386-dregs.h): New include.
8840 (DR_FIRSTADDR): Now in i386-dregs.h.
8841 (DR_LASTADDR): Likewise.
8842 (DR_NADDR): Likewise.
8843 (DR_STATUS): Likewise.
8844 (DR_CONTROL): Likewise.
8845 (i386_debug_reg_state): Likewise.
8846 (i386_dr_insert_watchpoint): Likewise.
8847 (i386_dr_remove_watchpoint): Likewise.
8848 (i386_dr_region_ok_for_watchpoint): Likewise.
8849 (i386_dr_stopped_data_address): Likewise.
8850 (i386_dr_stopped_by_watchpoint): Likewise.
8851 * i386-low.c (ALL_DEBUG_REGISTERS): Likewise.
8852
4be83cc2
GB
88532014-06-18 Gary Benson <gbenson@redhat.com>
8854
8855 * i386-low.h (i386_low_insert_watchpoint): Renamed to
8856 i386_dr_insert_watchpoint.
8857 (i386_low_remove_watchpoint): Renamed to
8858 i386_dr_remove_watchpoint.
8859 (i386_low_region_ok_for_watchpoint): Renamed to
8860 i386_dr_region_ok_for_watchpoint.
8861 (i386_low_stopped_data_address): Renamed to
8862 i386_dr_stopped_data_address.
8863 (i386_low_stopped_by_watchpoint): Renamed to
8864 i386_dr_stopped_by_watchpoint.
8865 * i386-low.c (i386_show_dr): Renamed to
8866 i386_dr_show and made nonstatic. All uses updated.
8867 (i386_length_and_rw_bits): Renamed to
8868 i386_dr_length_and_rw_bits and made nonstatic.
8869 All uses updated.
8870 (i386_insert_aligned_watchpoint): Renamed to
8871 i386_dr_insert_aligned_watchpoint and made nonstatic.
8872 All uses updated.
8873 (i386_remove_aligned_watchpoint): Renamed to
8874 i386_dr_remove_aligned_watchpoint and made nonstatic.
8875 All uses updated.
8876 (i386_update_inferior_debug_regs): Renamed to
8877 i386_dr_update_inferior_debug_regs and made nonstatic.
8878 All uses updated.
8879 (i386_low_insert_watchpoint): Renamed to
8880 i386_dr_insert_watchpoint. All uses updated.
8881 (i386_low_remove_watchpoint): Renamed to
8882 i386_dr_remove_watchpoint. All uses updated.
8883 (i386_low_region_ok_for_watchpoint): Renamed to
8884 i386_dr_region_ok_for_watchpoint. All uses updated.
8885 (i386_low_stopped_data_address): Renamed to
8886 i386_dr_stopped_data_address. All uses updated.
8887 (i386_low_stopped_by_watchpoint): Renamed to
8888 i386_dr_stopped_by_watchpoint. All uses updated.
8889
131aa0d4
GB
88902014-06-18 Gary Benson <gbenson@redhat.com>
8891
8892 * i386-low.c (i386_dr_low_can_set_addr): New macro.
8893 (i386_dr_low_can_set_control): Likewise.
8894 (i386_insert_aligned_watchpoint): New check.
8895
d9305f7f
GB
88962014-06-18 Gary Benson <gbenson@redhat.com>
8897
8898 * i386-low.c (i386_update_inferior_debug_regs) <inf_state>:
8899 Renamed to state.
8900
e927c9fc
GB
89012014-06-18 Gary Benson <gbenson@redhat.com>
8902
8903 * i386-low.c (i386_length_and_rw_bits): Use internal_error
8904 instead of fatal and error.
8905 (i386_handle_nonaligned_watchpoint): Likewise.
8906
1b6d4134
GB
89072014-06-18 Gary Benson <gbenson@redhat.com>
8908
8909 * i386-low.c (i386_get_debug_register_length): New macro.
8910 (TARGET_HAS_DR_LEN_8): Remove conditional. Use above macro.
8911 (i386_show_dr): Use debug_printf instead of fprintf. Use
8912 phex to format values.
8913
6e62758f
GB
89142014-06-18 Gary Benson <gbenson@redhat.com>
8915
8916 * i386-low.h: Comment changes.
8917 * i386-low.c: Likewise.
8918
fc6e2f03
GB
89192014-06-18 Gary Benson <gbenson@redhat.com>
8920
8921 * i386-low.c: Whitespace changes.
8922
f9d1eeed
TT
89232014-06-12 Tom Tromey <tromey@redhat.com>
8924
8925 * utils.c (freeargv): Remove.
8926
0b04e523
TT
89272014-06-12 Tom Tromey <tromey@redhat.com>
8928
8929 * debug.c (debug_printf): Remove HAVE_GETTIMEOFDAY checks.
8930 * server.c (monitor_show_help): Remove HAVE_GETTIMEOFDAY check.
8931 (parse_debug_format_options): Likewise.
8932 (gdbserver_usage): Likewise.
8933 * Makefile.in (LIBIBERTY_BUILDDIR, LIBIBERTY): New variables.
8934 (SUBDIRS, REQUIRED_SUBDIRS): Add libiberty.
8935 (gdbserver$(EXEEXT), gdbreplay$(EXEEXT)): Depend on and link
8936 against libiberty.
8937 ($(LIBGNU)): Depend on libiberty.
8938 (all-lib): Recurse into all subdirs.
8939 (install-only): Invoke "install" target in subdirs.
8940 (vasprintf.o, vsnprintf.o, safe-ctype.o, lbasename.o): Remove
8941 targets.
8942 * configure: Rebuild.
8943 * configure.ac: Add ACX_CONFIGURE_DIR for libiberty. Don't check
8944 for vasprintf, vsnprintf, or gettimeofday.
8945 * configure.srv: Don't add safe-ctype.o or lbasename.o to
8946 srv_tgtobj.
8947
270c9937
JB
89482014-06-05 Joel Brobecker <brobecker@adacore.com>
8949
8950 * development.sh: Delete.
8951 * Makefile.in (config.status): Adjust dependency on development.sh.
8952 * configure.ac: Adjust development.sh source call.
8953 * configure: Regenerate.
8954
0a261ed8
PA
89552014-06-02 Pedro Alves <palves@redhat.com>
8956
8957 * ax.c (gdb_free_agent_expr): New function.
8958 * ax.h (gdb_free_agent_expr): New declaration.
8959 * mem-break.c (delete_gdb_breakpoint_1): Also clear the commands
8960 list.
8961 (clear_breakpoint_conditions, clear_breakpoint_commands): Make
8962 static.
8963 (clear_breakpoint_conditions_and_commands): New function.
8964 * mem-break.h (clear_breakpoint_conditions): Delete declaration.
8965 (clear_breakpoint_conditions_and_commands): New declaration.
8966
e9dae05e
RR
89672014-05-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8968
8969 * linux-aarch64-low.c (asm/ptrace.h): Include.
8970
5876f503
JK
89712014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8972
8973 Fix TLS access for -static -pthread.
8974 * gdbserver/thread-db.c (struct thread_db): Add td_thr_tlsbase_p.
8975 (thread_db_get_tls_address): Call it if LOAD_MODULE is zero.
8976 (thread_db_load_search, try_thread_db_load_1): Initialize it.
8977
802e8e6d
PA
89782014-05-20 Pedro Alves <palves@redhat.com>
8979
8980 * linux-aarch64-low.c (aarch64_insert_point)
8981 (aarch64_remove_point): No longer check whether the type is
8982 supported here. Adjust to new interface.
8983 (the_low_target): Install aarch64_supports_z_point_type as
8984 supports_z_point_type method.
8985 * linux-arm-low.c (raw_bkpt_type_to_arm_hwbp_type): New function.
8986 (arm_linux_hw_point_initialize): Take an enum raw_bkpt_type
8987 instead of a Z packet char. Adjust.
8988 (arm_supports_z_point_type): New function.
8989 (arm_insert_point, arm_remove_point): Adjust to new interface.
8990 (the_low_target): Install arm_supports_z_point_type.
8991 * linux-crisv32-low.c (cris_supports_z_point_type): New function.
8992 (cris_insert_point, cris_remove_point): Adjust to new interface.
8993 Don't check whether the type is supported here.
8994 (the_low_target): Install cris_supports_z_point_type.
8995 * linux-low.c (linux_supports_z_point_type): New function.
8996 (linux_insert_point, linux_remove_point): Adjust to new interface.
8997 * linux-low.h (struct linux_target_ops) <insert_point,
8998 remove_point>: Take an enum raw_bkpt_type instead of a char. Add
8999 raw_breakpoint pointer parameter.
9000 <supports_z_point_type>: New method.
9001 * linux-mips-low.c (mips_supports_z_point_type): New function.
9002 (mips_insert_point, mips_remove_point): Adjust to new interface.
9003 Use mips_supports_z_point_type.
9004 (the_low_target): Install mips_supports_z_point_type.
9005 * linux-ppc-low.c (the_low_target): Install NULL as
9006 supports_z_point_type method.
9007 * linux-s390-low.c (the_low_target): Install NULL as
9008 supports_z_point_type method.
9009 * linux-sparc-low.c (the_low_target): Install NULL as
9010 supports_z_point_type method.
9011 * linux-x86-low.c (x86_supports_z_point_type): New function.
9012 (x86_insert_point): Adjust to new insert_point interface. Use
9013 insert_memory_breakpoint. Adjust to new
9014 i386_low_insert_watchpoint interface.
9015 (x86_remove_point): Adjust to remove_point interface. Use
9016 remove_memory_breakpoint. Adjust to new
9017 i386_low_remove_watchpoint interface.
9018 (the_low_target): Install x86_supports_z_point_type.
9019 * lynx-low.c (lynx_target_ops): Install NULL as
9020 supports_z_point_type callback.
9021 * nto-low.c (nto_supports_z_point_type): New.
9022 (nto_insert_point, nto_remove_point): Adjust to new interface.
9023 (nto_target_ops): Install nto_supports_z_point_type.
9024 * mem-break.c: Adjust intro comment.
9025 (struct raw_breakpoint) <raw_type, size>: New fields.
9026 <inserted>: Update comment.
9027 <shlib_disabled>: Delete field.
9028 (enum bkpt_type) <gdb_breakpoint>: Delete value.
9029 <gdb_breakpoint_Z0, gdb_breakpoint_Z1, gdb_breakpoint_Z2,
9030 gdb_breakpoint_Z3, gdb_breakpoint_Z4>: New values.
9031 (raw_bkpt_type_to_target_hw_bp_type): New function.
9032 (find_enabled_raw_code_breakpoint_at): New function.
9033 (find_raw_breakpoint_at): New type and size parameters. Use them.
9034 (insert_memory_breakpoint): New function, based off
9035 set_raw_breakpoint_at.
9036 (remove_memory_breakpoint): New function.
9037 (set_raw_breakpoint_at): Reimplement.
9038 (set_breakpoint): New, based on set_breakpoint_at.
9039 (set_breakpoint_at): Reimplement.
9040 (delete_raw_breakpoint): Go through the_target->remove_point
9041 instead of assuming memory breakpoints.
9042 (find_gdb_breakpoint_at): Delete.
9043 (Z_packet_to_bkpt_type, Z_packet_to_raw_bkpt_type): New functions.
9044 (find_gdb_breakpoint): New function.
9045 (set_gdb_breakpoint_at): Delete.
9046 (z_type_supported): New function.
9047 (set_gdb_breakpoint_1): New function, loosely based off
9048 set_gdb_breakpoint_at.
9049 (check_gdb_bp_preconditions, set_gdb_breakpoint): New functions.
9050 (delete_gdb_breakpoint_at): Delete.
9051 (delete_gdb_breakpoint_1): New function, loosely based off
9052 delete_gdb_breakpoint_at.
9053 (delete_gdb_breakpoint): New function.
9054 (clear_gdb_breakpoint_conditions): Rename to ...
9055 (clear_breakpoint_conditions): ... this. Don't handle a NULL
9056 breakpoint.
9057 (add_condition_to_breakpoint): Make static.
9058 (add_breakpoint_condition): Take a struct breakpoint pointer
9059 instead of an address. Adjust.
9060 (gdb_condition_true_at_breakpoint): Rename to ...
9061 (gdb_condition_true_at_breakpoint_z_type): ... this, and add
9062 z_type parameter.
9063 (gdb_condition_true_at_breakpoint): Reimplement.
9064 (add_breakpoint_commands): Take a struct breakpoint pointer
9065 instead of an address. Adjust.
9066 (gdb_no_commands_at_breakpoint): Rename to ...
9067 (gdb_no_commands_at_breakpoint_z_type): ... this. Add z_type
9068 parameter. Return true if no breakpoint was found. Change debug
9069 output.
9070 (gdb_no_commands_at_breakpoint): Reimplement.
9071 (run_breakpoint_commands): Rename to ...
9072 (run_breakpoint_commands_z_type): ... this. Add z_type parameter,
9073 and change return type to boolean.
9074 (run_breakpoint_commands): New function.
9075 (gdb_breakpoint_here): Also check for Z1 breakpoints.
9076 (uninsert_raw_breakpoint): Don't try to reinsert a disabled
9077 breakpoint. Go through the_target->remove_point instead of
9078 assuming memory breakpoint.
9079 (uninsert_breakpoints_at, uninsert_all_breakpoints): Uninsert
9080 software and hardware breakpoints.
9081 (reinsert_raw_breakpoint): Go through the_target->insert_point
9082 instead of assuming memory breakpoint.
9083 (reinsert_breakpoints_at, reinsert_all_breakpoints): Reinsert
9084 software and hardware breakpoints.
9085 (check_breakpoints, breakpoint_here, breakpoint_inserted_here):
9086 Check both software and hardware breakpoints.
9087 (validate_inserted_breakpoint): Assert the breakpoint is a
9088 software breakpoint. Set the inserted flag to -1 instead of
9089 setting shlib_disabled.
9090 (delete_disabled_breakpoints): Adjust.
9091 (validate_breakpoints): Only validate software breakpoints.
9092 Adjust to inserted flag change.
9093 (check_mem_read, check_mem_write): Skip breakpoint types other
9094 than software breakpoints. Adjust to inserted flag change.
9095 * mem-break.h (enum raw_bkpt_type): New enum.
9096 (raw_breakpoint, struct process_info): Forward declare.
9097 (Z_packet_to_target_hw_bp_type): Delete declaration.
9098 (raw_bkpt_type_to_target_hw_bp_type, Z_packet_to_raw_bkpt_type)
9099 (set_gdb_breakpoint, delete_gdb_breakpoint)
9100 (clear_breakpoint_conditions): New declarations.
9101 (set_gdb_breakpoint_at, clear_gdb_breakpoint_conditions): Delete.
9102 (breakpoint_inserted_here): Update comment.
9103 (add_breakpoint_condition, add_breakpoint_commands): Replace
9104 address parameter with a breakpoint pointer parameter.
9105 (gdb_breakpoint_here): Update comment.
9106 (delete_gdb_breakpoint_at): Delete.
9107 (insert_memory_breakpoint, remove_memory_breakpoint): Declare.
9108 * server.c (process_point_options): Take a struct breakpoint
9109 pointer instead of an address. Adjust.
9110 (process_serial_event) <Z/z packets>: Use set_gdb_breakpoint and
9111 delete_gdb_breakpoint.
9112 * spu-low.c (spu_target_ops): Install NULL as
9113 supports_z_point_type method.
9114 * target.h: Include mem-break.h.
9115 (struct target_ops) <prepare_to_access_memory>: Update comment.
9116 <supports_z_point_type>: New field.
9117 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9118 instead of a char. Also take a raw breakpoint pointer.
9119 * win32-arm-low.c (the_low_target): Install NULL as
9120 supports_z_point_type.
9121 * win32-i386-low.c (i386_supports_z_point_type): New function.
9122 (i386_insert_point, i386_remove_point): Adjust to new interface.
9123 (the_low_target): Install i386_supports_z_point_type.
9124 * win32-low.c (win32_supports_z_point_type): New function.
9125 (win32_insert_point, win32_remove_point): Adjust to new interface.
9126 (win32_target_ops): Install win32_supports_z_point_type.
9127 * win32-low.h (struct win32_target_ops):
9128 <supports_z_point_type>: New method.
9129 <insert_point, remove_point>: Take an enum raw_bkpt_type argument
9130 instead of a char. Also take a raw breakpoint pointer.
9131
932539e3
PA
91322014-05-20 Pedro Alves <palves@redhat.com>
9133
9134 * mem-break.h: Include break-common.h.
9135 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9136 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): New defines.
9137 (Z_packet_to_target_hw_bp_type): New declaration.
9138 * mem-break.c (Z_packet_to_target_hw_bp_type): New function.
9139 * i386-low.c (Z_PACKET_HW_BP, Z_PACKET_WRITE_WP, Z_PACKET_READ_WP)
9140 (Z_PACKET_ACCESS_WP): Delete macros.
9141 (Z_packet_to_hw_type): Delete function.
9142 * i386-low.h: Don't include break-common.h here.
9143 (Z_packet_to_hw_type): Delete declaration.
9144 * linux-x86-low.c (x86_insert_point, x86_insert_point): Call
9145 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9146 * win32-i386-low.c (i386_insert_point, i386_remove_point): Call
9147 Z_packet_to_target_hw_bp_type instead of Z_packet_to_hw_type.
9148 * linux-aarch64-low.c: Don't include break-common.h here.
9149 (Z_PACKET_SW_BP, Z_PACKET_HW_BP, Z_PACKET_WRITE_WP)
9150 (Z_PACKET_READ_WP, Z_PACKET_ACCESS_WP): Delete macros.
9151 (Z_packet_to_target_hw_bp_type): Delete function.
9152 * linux-mips-low.c (rsp_bp_type_to_target_hw_bp_type): Delete
9153 function.
9154 (mips_insert_point, mips_remove_point): Use
9155 Z_packet_to_target_hw_bp_type.
9156
4ff0d3d8
PA
91572014-05-20 Pedro Alves <palves@redhat.com>
9158
9159 * linux-aarch64-low.c: Include break-common.h.
9160 (enum target_point_type): Delete.
9161 (Z_packet_to_point_type): Rename to ...
9162 (Z_packet_to_target_hw_bp_type): ... this, and return a
9163 target_hw_bp_type instead.
9164 (aarch64_show_debug_reg_state): Take an enum target_hw_bp_type
9165 instead of an enum target_point_type.
9166 (aarch64_point_encode_ctrl_reg): Likewise. Compute type mask from
9167 breakpoint type.
9168 (aarch64_dr_state_insert_one_point)
9169 (aarch64_dr_state_remove_one_point, aarch64_handle_breakpoint)
9170 (aarch64_handle_aligned_watchpoint)
9171 (aarch64_handle_unaligned_watchpoint, aarch64_handle_watchpoint):
9172 Take an enum target_hw_bp_type instead of an enum
9173 target_point_type.
9174 (aarch64_supports_z_point_type): New function.
9175 (aarch64_insert_point, aarch64_remove_point): Use it. Adjust to
9176 use Z_packet_to_target_hw_bp_type.
9177
786dc519
JB
91782014-05-20 Joel Brobecker <brobecker@adacore.com>
9179
9180 * configure.ac: Only use -Werror by default when DEVELOPMENT
9181 is true.
9182 * configure: Regenerate.
9183
9e0aa64f
JK
91842014-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9185
9186 Fix gdbserver qGetTLSAddr for x86_64 -m32.
9187 * linux-x86-low.c (X86_64_USER_REGS): New.
9188 (x86_fill_gregset): Call memset for BUF first in x86_64 -m32 case.
9189
2b577b92
YQ
91902014-04-28 Yao Qi <yao@codesourcery.com>
9191
9192 * Makefile.in (i386-avx512.c): Fix the typo of generated file
9193 name.
9194
94611da2
PA
91952014-04-25 Pedro Alves <palves@redhat.com>
9196
9197 PR server/16255
9198 * linux-low.c (linux_attach_fail_reason_string): New function.
9199 (linux_attach_lwp): Delete.
9200 (linux_attach_lwp_1): Rename to ...
9201 (linux_attach_lwp): ... this. Take a ptid instead of a pid as
9202 argument. Remove "initial" parameter. Return int instead of
9203 void. Don't error or warn here.
9204 (linux_attach): Adjust to call linux_attach_lwp. Call error on
9205 failure to attach to the tgid. Call warning when failing to
9206 attach to an lwp.
9207 * linux-low.h (linux_attach_lwp): Take a ptid instead of a pid as
9208 argument. Remove "initial" parameter. Return int instead of
9209 void. Don't error or warn here.
9210 (linux_attach_fail_reason_string): New declaration.
9211 * thread-db.c (attach_thread): Adjust to linux_attach_lwp's
9212 interface change. Use linux_attach_fail_reason_string.
9213
01f9f808
MS
92142014-04-24 Michael Sturm <michael.sturm@mintel.com>
9215 Walfred Tedeschi <walfred.tedeschi@intel.com>
9216
9217 * Makefile.in: Added rules to handle new files
9218 i386-avx512.c i386-avx512-linux.c amd64-avx512.c
9219 amd64-avx512-linux.c x32-avx512.c x32-avx512-linux.c.
9220 * configure.srv (srv_i386_regobj): Add i386-avx512.o.
9221 (srv_i386_linux_regobj): Add i386-avx512-linux.o.
9222 (srv_amd64_regobj): Add amd64-avx512.o and x32-avx512.o.
9223 (srv_amd64_linux_regobj): Add amd64-avx512-linux.o and
9224 x32-avx512-linux.o.
9225 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx512.xml.
9226 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx512.xml.
9227 (srv_amd64_xmlfiles): Add i386/amd64-avx512.xml and
9228 i386/x32-avx512.xml.
9229 (srv_i386_linux_xmlfiles): Add i386/i386-avx512-linux.xml.
9230 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx512-linux.xml and
9231 i386/x32-avx512-linux.xml.
9232 * i387-fp.c (num_avx512_k_registers): New constant for number
9233 of K registers.
9234 (num_avx512_zmmh_low_registers): New constant for number of
9235 lower ZMM registers (0-15).
9236 (num_avx512_zmmh_high_registers): New constant for number of
9237 higher ZMM registers (16-31).
9238 (num_avx512_ymmh_registers): New contant for number of higher
9239 YMM registers (ymm16-31 added by avx521 on x86_64).
9240 (num_avx512_xmm_registers): New constant for number of higher
9241 XMM registers (xmm16-31 added by AVX512 on x86_64).
9242 (struct i387_xsave): Add space for AVX512 registers.
9243 (i387_cache_to_xsave): Change raw buffer size to 64 characters.
9244 Add code to handle AVX512 registers.
9245 (i387_xsave_to_cache): Add code to handle AVX512 registers.
9246 * linux-x86-low.c (init_registers_amd64_avx512_linux): New
9247 prototypei from generated file.
9248 (tdesc_amd64_avx512_linux): Likewise.
9249 (init_registers_x32_avx512_linux): Likewise.
9250 (tdesc_x32_avx512_linux): Likewise.
9251 (init_registers_i386_avx512_linux): Likewise.
9252 (tdesc_i386_avx512_linux): Likewise.
9253 (x86_64_regmap): Add AVX512 registers.
9254 (x86_linux_read_description): Add code to handle AVX512 XSTATE
9255 mask.
9256 (initialize_low_arch): Add code to initialize AVX512 registers.
9257
51aa91f9
PA
92582014-04-23 Pedro Alves <palves@redhat.com>
9259
9260 * mem-break.c (find_gdb_breakpoint_at): Make static.
9261 * mem-break.h (find_gdb_breakpoint_at): Delete declaration.
9262
a4165e94
PA
92632014-04-23 Pedro Alves <palves@redhat.com>
9264
9265 * i386-low.c: Don't include break-common.h here.
9266 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9267 prototype to take target_hw_bp_type as argument instead of a Z
9268 packet char.
9269 * i386-low.h: Include break-common.h here.
9270 (Z_packet_to_hw_type): Declare.
9271 (i386_low_insert_watchpoint, i386_low_remove_watchpoint): Change
9272 prototypes.
9273 * linux-x86-low.c (x86_insert_point): Convert the packet number to
9274 a target_hw_bp_type before calling i386_low_insert_watchpoint.
9275 (x86_remove_point): Convert the packet number to a
9276 target_hw_bp_type before calling i386_low_remove_watchpoint.
9277 * win32-i386-low.c (i386_insert_point): Convert the packet number
9278 to a target_hw_bp_type before calling i386_low_insert_watchpoint.
9279 (i386_remove_point): Convert the packet number to a
9280 target_hw_bp_type before calling i386_low_remove_watchpoint.
9281
b8acf843
PA
92822014-04-23 Pedro Alves <palves@redhat.com>
9283
9284 * utils.h (perror_with_name): Add ATTRIBUTE_NORETURN.
9285
d708bcd1
PA
92862014-04-10 Pedro Alves <palves@redhat.com>
9287
9288 * mem-break.c (add_breakpoint_condition, add_breakpoint_commands):
9289 Check if the condition or command is NULL before checking if the
9290 breakpoint is known. On success, return true.
9291 * mem-break.h (add_breakpoint_condition): Document return.
9292 (add_breakpoint_commands): Add describing comment.
9293 * server.c (skip_to_semicolon): New function.
9294 (process_point_options): Use it.
9295
2eec7d5b
PA
92962014-04-09 Pedro Alves <palves@redhat.com>
9297
9298 * linux-low.c (linux_read_loadmap): Pass current_inferior directly
9299 to lwpid_of.
9300
fa96cb38
PA
93012014-02-27 Pedro Alves <palves@redhat.com>
9302
9303 PR 12702
9304 * inferiors.h (A_I_NEXT, ALL_INFERIORS_TYPE, ALL_PROCESSES): New
9305 macros.
9306 * linux-low.c (delete_lwp, handle_extended_wait): Add debug
9307 output.
9308 (last_thread_of_process_p): Take a PID argument instead of a
9309 thread pointer.
9310 (linux_wait_for_lwp): Delete.
9311 (num_lwps, check_zombie_leaders, not_stopped_callback): New
9312 functions.
9313 (linux_low_filter_event): New function, party factored out from
9314 linux_wait_for_event.
9315 (linux_wait_for_event): Rename to ...
9316 (linux_wait_for_event_filtered): ... this. Add new filter ptid
9317 argument. Partly rewrite. Always use waitpid(-1, WNOHANG) and
9318 sigsuspend. Check for zombie leaders.
9319 (linux_wait_for_event): Reimplement as wrapper around
9320 linux_wait_for_event_filtered.
9321 (linux_wait_1): Handle TARGET_WAITKIND_NO_RESUMED. Assume that if
9322 a normal or signal exit is seen, it's the whole process exiting.
9323 (wait_for_sigstop): No longer a for_each_inferior callback.
9324 Rewrite on top of linux_wait_for_event_filtered.
9325 (stop_all_lwps): Call wait_for_sigstop directly.
9326 * server.c (resume, handle_target_event): Handle
9327 TARGET_WAITKIND_NO_RESUMED.
9328
d763de10
JB
93292014-02-26 Joel Brobecker <brobecker@adacore.com>
9330
9331 * win32-low.c (psapi_get_dll_name,
9332 * win32_CreateToolhelp32Snapshot): Delete.
9333 (win32_CreateToolhelp32Snapshot, win32_Module32First)
9334 (win32_Module32Next, load_toolhelp, toolhelp_get_dll_name):
9335 Delete.
9336 (handle_load_dll): Add function description.
9337 Remove code using psapi_get_dll_name and toolhelp_get_dll_name.
9338
850a0f76
JB
93392014-02-26 Joel Brobecker <brobecker@adacore.com>
9340
9341 * win32-low.c (win32_add_one_solib): Add 0x1000 to load_addr.
9342 Add comment.
9343 (win32_add_all_dlls): Remove 0x1000 offset applied to DLL
9344 base address when calling win32_add_one_solib.
9345 (handle_load_dll): Delete local variable load_addr.
9346 Remove 0x1000 offset applied to DLL base address when calling
9347 win32_add_one_solib.
9348 (handle_unload_dll): Add comment.
9349
f25b3fc3
JB
93502014-02-26 Joel Brobecker <brobecker@adacore.com>
9351
9352 * win32-low.c (win32_add_all_dlls): Renames
9353 win32_ensure_ntdll_loaded. Rewrite function documentation.
9354 Adjust implementation to always load all DLLs.
9355 Add 0x1000 offset to DLL base address when calling
9356 win32_add_one_solib.
9357 (child_initialization_done): New static global.
9358 (do_initial_child_stuff): Set child_initialization_done to
9359 zero during child initialization, and 1 after. Replace call
9360 to win32_ensure_ntdll_loaded by call to win32_add_all_dlls.
9361 Add comment.
9362 (match_dll_by_basename, dll_is_loaded_by_basename): Delete.
9363 (handle_unload_dll): Add function documentation.
9364 (get_child_debug_event): Ignore load and unload DLL events
9365 during child initialization.
9366
d86d4aaf
DE
93672014-02-20 Doug Evans <dje@google.com>
9368
3bc32da3 9369 Remove global all_lwps.
d86d4aaf
DE
9370 * inferiors.h (ptid_of): Move here from linux-low.h.
9371 (pid_of, lwpid_of): Ditto.
9372 * linux-aarch64-low.c (debug_reg_change_callback): Update, "entry"
9373 parameter is a struct thread_info * now.
9374 (aarch64_notify_debug_reg_change): Fetch pid from current_inferior
9375 directly. Pass &all_threads to find_inferior instead of &all_lwps.
9376 (aarch64_stopped_data_address): Fetch lwpid from current_inferior
9377 directly.
9378 (aarch64_linux_prepare_to_resume): Fetch ptid from thread.
9379 (aarch64_arch_setup): Fetch lwpid from current_inferior directly.
9380 * linux-arm-low.c (update_registers_callback): Update, "entry"
9381 parameter is a struct thread_info * now.
9382 Fetch lwpid from current_inferior directly.
9383 (arm_insert_point): Pass &all_threads to find_inferior instead of
9384 &all_lwps.
9385 (arm_remove_point): Ditto.
9386 (arm_stopped_by_watchpoint): Fetch lwp from current_inferior.
9387 (arm_prepare_to_resume): Fetch pid from thread.
9388 (arm_read_description): Fetch lwpid from current_inferior directly.
9389 * linux-low.c (all_lwps): Delete.
9390 (delete_lwp): Delete call to remove_inferior.
9391 (handle_extended_wait): Fetch lwpid from thread.
9392 (add_lwp): Don't set lwp->entry.id. Remove call to
9393 add_inferior_to_list.
9394 (linux_attach_lwp_1): Fetch pid from current_inferior directly.
9395 (linux_kill_one_lwp): Fetch ptid,lwpid from thread.
9396 (kill_one_lwp_callback): Ditto.
9397 (linux_kill): Don't dereference NULL pointer.
9398 Fetch ptid,lwpid from thread.
9399 (get_detach_signal): Fetch ptid from thread.
9400 (linux_detach_one_lwp): Fetch ptid,lwpid from thread.
9401 Simplify call to regcache_invalidate_thread.
9402 (delete_lwp_callback): Update, "entry" parameter is a
9403 struct thread_info * now. Fetch pid from thread.
9404 (linux_mourn): Pass &all_threads to find_inferior instead of &all_lwps.
9405 (status_pending_p_callback): Update, "entry" parameter is a
9406 struct thread_info * now. Fetch ptid from thread.
9407 (find_lwp_pid): Update, "entry" parameter is a
9408 struct thread_info * now.
9409 (linux_wait_for_lwp): Fetch pid from thread.
9410 (linux_fast_tracepoint_collecting): Fetch lwpid from thread.
9411 (maybe_move_out_of_jump_pad): Fetch lwpid from current_inferior.
9412 (enqueue_one_deferred_signal): Fetch lwpid from thread.
9413 (dequeue_one_deferred_signal): Ditto.
9414 (cancel_breakpoint): Fetch ptid from current_inferior.
9415 (linux_wait_for_event): Pass &all_threads to find_inferior,
9416 not &all_lwps. Fetch ptid, lwpid from thread.
9417 (count_events_callback): Update, "entry" parameter is a
9418 struct thread_info * now.
9419 (select_singlestep_lwp_callback): Ditto.
9420 (select_event_lwp_callback): Ditto.
9421 (cancel_breakpoints_callback): Ditto.
9422 (linux_cancel_breakpoints): Pass &all_threads to find_inferior,
9423 not &all_lwps.
9424 (select_event_lwp): Ditto. Fetch ptid from event_thread.
9425 (unsuspend_one_lwp): Update, "entry" parameter is a
9426 struct thread_info * now.
9427 (unsuspend_all_lwps): Pass &all_threads to find_inferior,
9428 not &all_lwps.
9429 (linux_stabilize_threads): Ditto. And for for_each_inferior.
9430 Fetch lwpid from thread, not lwp.
9431 (linux_wait_1): Fetch ptid, lwpid from current_inferior.
9432 Pass &all_threads to find_inferior, not &all_lwps.
9433 (send_sigstop): Fetch lwpid from thread, not lwp.
9434 (send_sigstop_callback): Update, "entry" parameter is a
9435 struct thread_info * now.
9436 (suspend_and_send_sigstop_callback): Ditto.
9437 (wait_for_sigstop): Ditto. Fetch ptid, lwpid from thread, lwp.
9438 (stuck_in_jump_pad_callback): Update, "entry" parameter is a
9439 struct thread_info * now.
9440 (move_out_of_jump_pad_callback): Ditto. Fetch ptid, lwpid
9441 from thread, lwp.
9442 (lwp_running): Update, "entry" parameter is a
9443 struct thread_info * now.
9444 (stop_all_lwps): Fetch ptid from thread.
9445 Pass &all_threads to find_inferior, for_each_inferior, not &all_lwps.
9446 (linux_resume_one_lwp): Fetch lwpid from thread.
9447 (linux_set_resume_request): Update, "entry" parameter is a
9448 struct thread_info * now. Fetch pid, lwpid from thread.
9449 (resume_status_pending_p): Update, "entry" parameter is a
9450 struct thread_info * now.
9451 (need_step_over_p): Ditto. Fetch lwpid from thread.
9452 (start_step_over): Fetch lwpid from thread.
9453 (linux_resume_one_thread): Update, "entry" parameter is a
9454 struct thread_info * now. Fetch lwpid from thread.
9455 (linux_resume): Pass &all_threads to find_inferior, not &all_lwps.
9456 (proceed_one_lwp): Update, "entry" parameter is a
9457 struct thread_info * now. Fetch lwpid from thread.
9458 (unsuspend_and_proceed_one_lwp): Update, "entry" parameter is a
9459 struct thread_info * now.
9460 (proceed_all_lwps): Pass &all_threads to find_inferior, not &all_lwps.
9461 (unstop_all_lwps): Ditto. Fetch lwpid from thread.
9462 (regsets_fetch_inferior_registers): Fetch lwpid from current_inferior
9463 directly.
9464 (regsets_store_inferior_registers): Ditto.
9465 (fetch_register, store_register): Ditto.
9466 (linux_read_memory, linux_write_memory): Ditto.
9467 (linux_request_interrupt): Ditto.
9468 (linux_read_auxv): Ditto.
9469 (linux_xfer_siginfo): Ditto.
9470 (linux_qxfer_spu): Ditto.
9471 (linux_qxfer_libraries_svr4): Ditto.
9472 * linux-low.h (ptid_of, pid_of, lwpid_of): Delete,
9473 moved to inferiors.h.
9474 (get_lwp): Delete.
9475 (get_thread_lwp): Update.
9476 (struct lwp_info): Delete member "entry". Simplify comment for
9477 member "thread".
9478 (all_lwps): Delete.
9479 * linux-mips-low.c (mips_read_description): Fetch lwpid from
9480 current_inferior directly.
9481 (update_watch_registers_callback): Update, "entry" parameter is a
9482 struct thread_info * now. Fetch pid from thread.
9483 (mips_linux_prepare_to_resume): Fetch ptid from thread.
9484 (mips_insert_point): Fetch lwpid from current_inferior.
9485 Pass &all_threads to find_inferior, not &all_lwps.
9486 (mips_remove_point): Pass &all_threads to find_inferior, not &all_lwps.
9487 (mips_stopped_by_watchpoint): Fetch lwpid from current_inferior
9488 directly.
9489 (mips_stopped_data_address): Ditto.
9490 * linux-s390-low.c (s390_arch_setup): Fetch pid from current_inferior
9491 directly.
9492 * linux-tile-low.c (tile_arch_setup): Ditto.
9493 * linux-x86-low.c (x86_get_thread_area): Fetch lwpid from thread.
9494 (update_debug_registers_callback): Update, "entry" parameter is a
9495 struct thread_info * now. Fetch pid from thread.
9496 (i386_dr_low_set_addr): Fetch pid from current_inferior directly.
9497 Pass &all_threads to find_inferior, not &all_lwps.
9498 (i386_dr_low_get_addr): Fetch ptid from current_inferior directly.
9499 (i386_dr_low_set_control): Fetch pid from current_inferior directly.
9500 Pass &all_threads to find_inferior, not &all_lwps.
9501 (i386_dr_low_get_control): Fetch ptid from current_inferior directly.
9502 (i386_dr_low_get_status): Ditto.
9503 (x86_linux_prepare_to_resume): Fetch ptid from thread.
9504 (x86_siginfo_fixup): Fetch lwpid from current_inferior directly.
9505 (x86_linux_read_description): Ditto.
9506 * proc-service.c (ps_getpid): Fetch pid from current_inferior directly.
9507
3b8361aa
DE
95082014-02-20 Doug Evans <dje@google.com>
9509
9510 * inferiors.c (get_first_inferior): Fix buglet.
9511
f7667f0d
DE
95122014-02-19 Doug Evans <dje@google.com>
9513
9514 * gdbthread.h (add_thread): Change result type to struct thread_info *.
9515 * inferiors.c (add_thread): Change result type to struct thread_info *.
9516 All callers updated.
9517 (add_lwp): Call add_thread here instead of in callers.
9518 All callers updated.
9519 * linux-low.h (get_lwp_thread): Rewrite.
9520 (struct lwp_info): New member "thread".
9521
b3312d80
DE
95222014-02-19 Doug Evans <dje@google.com>
9523
9524 * linux-low.c (add_lwp): Change result to struct lwp_info *.
9525 All callers updated.
9526
ecc6f45c
DE
95272014-02-19 Doug Evans <dje@google.com>
9528
9529 * inferiors.c (add_thread): Fix whitespace.
9530
649ebbca
DE
95312014-02-19 Doug Evans <dje@google.com>
9532
9533 * dll.c (clear_dlls): Replace accessing list implemention details
9534 with API function.
9535 * gdbthread.h (get_first_thread): Declare.
9536 * inferiors.c (for_each_inferior_with_data): New function.
9537 (get_first_thread): New function.
9538 (find_thread_ptid): Simplify.
9539 (get_first_inferior): New function.
9540 (clear_list): Delete.
9541 (one_inferior_p): New function.
9542 (clear_inferior_list): New function.
9543 (clear_inferiors): Update.
9544 * inferiors.h (for_each_inferior_with_data): Declare.
9545 (clear_inferior_list): Declare.
9546 (one_inferior_p): Declare.
9547 (get_first_inferior): Declare.
9548 * linux-low.c (linux_wait_for_event): Replace accessing list
9549 implemention details with API function.
9550 * server.c (target_running): Ditto.
9551 (accumulate_file_name_length): New function.
9552 (emit_dll_description): New function.
9553 (handle_qxfer_libraries): Replace accessing list implemention
9554 details with API function.
9555 (handle_qxfer_threads_worker): New function.
9556 (handle_qxfer_threads_proper): Replace accessing list implemention
9557 details with API function.
9558 (handle_query): Ditto.
9559 (visit_actioned_threads_callback_ftype): New typedef.
9560 (visit_actioned_threads_data): New struct.
9561 (visit_actioned_threads): Rewrite to be find_inferior callback.
9562 (resume): Call find_inferior.
9563 (handle_status): Replace accessing list implemention
9564 details with API function.
9565 (process_serial_event): Replace accessing list implemention details
9566 with API function.
9567 * target.c (set_desired_inferior): Replace accessing list implemention
9568 details with API function.
9569 * tracepoint.c (same_process_p): New function.
9570 (gdb_agent_about_to_close): Replace accessing list implemention
9571 details with API function.
9572 * win32-low.c (child_delete_thread): Replace accessing list
9573 implemention details with API function.
9574 (match_dll_by_basename): New function.
9575 (dll_is_loaded_by_basename): New function.
9576 (win32_ensure_ntdll_loaded): Replace accessing list implemention
9577 details call to dll_is_loaded_by_basename.
9578
80894984
DE
95792014-02-19 Doug Evans <dje@google.com>
9580
9581 * dll.h (struct dll_info): Add comment.
9582 * gdbthread.h (struct thread_info): Add comment.
9583 (current_ptid): Simplify.
9584 * inferiors.c (add_process): Update.
9585 (remove_process): Update.
9586 * inferiors.h (struct process_info): Rename member "head" to "entry".
9587 * linux-low.c (delete_lwp): Update.
9588 (add_lwp): Update.
9589 (last_thread_of_process_p): Update.
9590 (kill_one_lwp_callback, linux_kill): Update.
9591 (status_pending_p_callback): Update.
9592 (wait_for_sigstop): Update. Simplify read of ptid.
9593 (start_step_over): Update.
9594 * linux-low.h (ptid_of, pid_of, lwpid_of): Update.
9595 (get_lwp_thread): Update.
9596 (struct lwp_info): Rename member "head" to "entry".
9597 * regcache.h (inferior_list_entry): Delete.
9598 * server.c (kill_inferior_callback): Update.
9599 (detach_or_kill_inferior_callback): Update.
9600 (print_started_pid): Update.
9601 (print_attached_pid): Update.
9602 (process_serial_event): Simplify read of ptid.
9603 * thread-db.c (thread_db_create_event): Update.
9604 (thread_db_get_tls_address): Update.
9605 * win32-low.c (current_inferior_ptid): Simplify.
9606
46917d26
TT
96072014-02-19 Tom Tromey <tromey@redhat.com>
9608
9609 * target.h (struct target_ops) <supports_btrace>: Add target_ops
9610 argument.
9611 (target_supports_btrace): Update.
9612
0759a81e
YQ
96132014-02-14 Yao Qi <yao@codesourcery.com>
9614
9615 * Makefile.in (IPA_OBJS): Append rsp-low-ipa.o.
9616 (rsp-low-ipa.o): New target.
9617
a7191e8b
TT
96182014-02-12 Tom Tromey <tromey@redhat.com>
9619
9620 * ax.c (gdb_parse_agent_expr): Use hex2bin, not
9621 convert_ascii_to_int.
9622 * regcache.c (registers_to_string): Likewise.
9623 * remote-utils.c (decode_M_packet): Likewise.
9624 * server.c (process_serial_event): Likewise.
9625
ff0e980e
TT
96262014-02-12 Tom Tromey <tromey@redhat.com>
9627
9628 * server.c (handle_query, handle_v_run): Use hex2bin, not
9629 unhexify.
9630 * tracepoint.c (cmd_qtdpsrc, cmd_qtdv, cmd_qtnotes): Likewise.
9631
e9371aff
TT
96322014-02-12 Tom Tromey <tromey@redhat.com>
9633
9634 * ax.c (gdb_unparse_agent_expr): Use bin2hex, not
9635 convert_int_to_ascii.
9636 * regcache.c (registers_to_string, collect_register_as_string):
9637 Likewise.
9638 * remote-utils.c (look_up_one_symbol, relocate_instruction):
9639 Likewise.
9640 * server.c (process_serial_event): Likewise.
9641 * tracepoint.c (cmd_qtstatus, response_source, response_tsv)
9642 (cmd_qtbuffer, cstr_to_hexstr): Likewise.
9643
971dc0b8
TT
96442014-02-12 Tom Tromey <tromey@redhat.com>
9645
9646 * remote-utils.c (look_up_one_symbol, monitor_output): Use
9647 bin2hex, not hexify.
9648 * tracepoint.c (cmd_qtstatus): Likewise.
9649
0a822afb
TT
96502014-02-12 Tom Tromey <tromey@redhat.com>
9651
9652 * remote-utils.c (monitor_output): Pass explicit length to
9653 hexify.
9654
9c3d6531
TT
96552014-02-12 Tom Tromey <tromey@redhat.com>
9656
9657 * tracepoint.c: Include rsp-low.h.
9658 * server.c: Include rsp-low.h.
9659 * remote-utils.h (convert_ascii_to_int, convert_int_to_ascii)
9660 (unhexify, hexify, remote_escape_output, unpack_varlen_hex): Don't
9661 declare.
9662 * remote-utils.c: Include rsp-low.h.
9663 (fromhex, hexchars, ishex, unhexify, tohex, hexify)
9664 (remote_escape_output, remote_unescape_input, unpack_varlen_hex)
9665 (convert_int_to_ascii, convert_ascii_to_int): Move to
9666 common/rsp-low.c.
9667 * regcache.c: Include rsp-low.h.
9668 * ax.c: Include rsp-low.h.
9669 * Makefile.in (SFILES): Add common/rsp-low.c.
9670 (OBS): Add rsp-low.o.
9671 (rsp-low.o): New target.
9672
01fd3ea5
TT
96732014-02-12 Tom Tromey <tromey@redhat.com>
9674
9675 * utils.h (pulongest, plongest, phex_nz): Don't declare.
9676 Include print-utils.h.
9677 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
9678 (plongest, thirty_two, phex_nz): Remove.
9679 * Makefile.in (SFILES): Add common/print-utils.c.
9680 (OBS): Add print-utils.o.
9681 (print-utils-ipa.o): New target.
9682 (print-utils.o): New target.
9683 (IPA_OBJS): Add print-utils-ipa.o.
9684
e99dc820
TT
96852014-02-06 Tom Tromey <tromey@redhat.com>
9686
9687 * Makefile.in (SFILES): Fix indentation.
9688
ee1e2d4f
DE
96892014-02-05 Doug Evans <dje@google.com>
9690
9691 * linux-low.c (linux_wait_for_event): Improve comment.
9692 (linux_wait_1): Keep current_inferior in sync with event_child.
9693
f5a02773
DE
96942014-01-22 Doug Evans <dje@google.com>
9695
9696 * gdbthread.h (gdb_id_to_thread): Delete, unused.
9697
87ce2a04
DE
96982014-01-22 Doug Evans <dje@google.com>
9699
9700 * configure.ac (AC_CHECK_FUNCS): Add test for gettimeofday.
9701 * configure: Regenerate.
9702 * config.in: Regenerate.
9703 * Makefile.in (SFILES): Add debug.c.
9704 (OBS): Add debug.o.
9705 * debug.c: New file.
9706 * debug.h: New file.
9707 * linux-aarch64-low.c (*): Update all debugging printfs to use
9708 debug_printf instead of fprintf.
9709 * linux-arm-low.c (*): Ditto.
9710 * linux-cris-low.c (*): Ditto.
9711 * linux-crisv32-low.c (*): Ditto.
9712 * linux-m32r-low.c (*): Ditto.
9713 * linux-sparc-low.c (*): Ditto.
9714 * linux-x86.c (*): Ditto.
9715 * linux-low.c (*): Ditto.
9716 (linux_wait_1): Add calls to debug_enter, debug_exit.
9717 (linux_wait): Remove redundant debugging printf.
9718 (stop_all_lwps): Add calls to debug_enter, debug_exit.
9719 (linux_resume, unstop_all_lwps): Ditto.
9720 * mem-break.c (*): Update all debugging printfs to use
9721 debug_printf instead of fprintf.
9722 * remote-utils.c (*): Ditto.
9723 * thread-db.c (*): Ditto.
9724 * server.c #include <ctype.h>, "gdb_vecs.h".
9725 (debug_threads): Moved to debug.c.
9726 (*): Update all debugging printfs to use debug_printf instead of
9727 fprintf.
9728 (start_inferior): Replace call to fflush with call to debug_flush.
9729 (monitor_show_help): Mention set debug-format.
9730 (parse_debug_format_options): New function.
9731 (handle_monitor_command): Handle "monitor set debug-format".
9732 (gdbserver_usage): Mention --debug-format.
9733 (main): Parse --debug-format.
9734 * server.h (debug_threads): Declaration moved to debug.h.
9735 #include "debug.h".
9736 * tracepoint.c (trace_debug_1) [!IN_PROCESS_AGENT]: Add version of
9737 trace_debug_1 that uses debug_printf.
9738 (tracepoint_look_up_symbols): Update all debugging printfs to use
9739 debug_printf instead of fprintf.
9740
e671835b
BS
97412014-01-20 Baruch Siach <baruch@tkos.co.il>
9742
9743 * linux-xtensa-low.c: Include asm/ptrace.h instead of
9744 sys/ptrace.h.
9745
b5737fa9
PA
97462014-01-17 Pedro Alves <palves@redhat.com>
9747
ea38d2a9 9748 PR build/16445
c7faa97a
PA
9749 * linux-x86-low.c: Don't include elf/common.h if ELFMAG0 is
9750 defined after including gdb_proc_service.h.
b5737fa9 9751
40ed484e
DE
97522014-01-16 Doug Evans <dje@google.com>
9753
9754 * dll.c (UNSPECIFIED_CORE_ADDR): New macro.
9755 (match_dll): Use it.
9756
969c39fb
MM
97572014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9758
9759 * target.h (target_ops) <read_btrace>: Change parameters and
9760 return type to allow error reporting.
9761 * server.c (handle_qxfer_btrace): Support delta reads. Pass
9762 trace reading errors on.
9763 * linux-low.c (linux_low_read_btrace): Pass trace reading
9764 errors on.
9765 (linux_low_disable_btrace): New.
9766
ab7f45ba
DE
97672014-01-15 Doug Evans <dje@google.com>
9768
9769 * inferiors.c (thread_id_to_gdb_id): Delete.
9770 * inferiors.h (thread_id_to_gdb_id): Delete.
9771
66af0f44
EZ
97722014-01-13 Eli Zaretskii <eliz@gnu.org>
9773
9774 * Makefile.in (INCLUDE_CFLAGS): Remove trailing slash from
9775 "-I$(srcdir)/../". Fixes MinGW compilation errors with old GCC
9776 versions.
9777
9939e131
PA
97782014-01-08 Pedro Alves <palves@redhat.com>
9779
9780 * server.c (handle_status): Don't discard previous queued stop
9781 replies or thread's pending status here.
9782 (main) <disconnection>: Do it here instead.
9783
b7ea362b
PA
97842014-01-08 Pedro Alves <palves@redhat.com>
9785
9786 * gdbthread.h (struct thread_info) <status_pending_p>: New field.
9787 * server.c (visit_actioned_threads, handle_pending_status): New
9788 function.
9789 (handle_v_cont): Factor out parts to ...
9790 (resume): ... this new function. If in all-stop, and a thread
9791 being resumed has a pending status, report it without actually
9792 resuming.
9793 (myresume): Adjust to use the new 'resume' function.
9794 (clear_pending_status_callback, set_pending_status_callback)
9795 (find_status_pending_thread_callback): New functions.
9796 (handle_status): Handle the case of multiple threads having
9797 interesting statuses to report. Report threads' real last signal
9798 instead of always reporting GDB_SIGNAL_TRAP. Look for a thread
9799 with an interesting thread to report the status for, instead of
9800 always reporting the status of the first thread.
9801
28498c42
JB
98022014-01-01 Joel Brobecker <brobecker@adacore.com>
9803
9804 * gdbserver.c (gdbserver_version): Set copyright year to 2014.
9805 * gdbreplay.c (gdbreplay_version): Likewise.
9806
f45c82da
YZ
98072013-12-18 Yufeng Zhang <yufeng.zhang@arm.com>
9808
9809 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Set
9810 iov.iov_len with the real length in use.
9811
379a5e2d
JB
98122013-12-13 Joel Brobecker <brobecker@adacore.com>
9813
9814 * Makefile.in (safe-ctype.o, lbasename.o): New rules.
9815 * configure.srv: Add safe-ctype.o and lbasename.o to srv_tgtobj
9816 for all targets that use win32-low.c.
9817 * win32-low.c (win32_ensure_ntdll_loaded): New function.
9818 (do_initial_child_stuff): Add call to win32_ensure_ntdll_loaded.
9819
4210d83e
PA
98202013-12-13 Pedro Alves <palves@redhat.com>
9821
9822 * target.c (mywait): Set OURSTATUS->KIND to TARGET_WAITKIND_STOPPED
9823 if equal to TARGET_WAITKIND_LOADED.
9824 * win32-low.c (cached_status): New static global.
9825 (win32_wait): Add declaration.
9826 (do_initial_child_stuff): Flush all initial pending debug events
9827 up to the initial breakpoint.
9828 (win32_wait): If CACHED_STATUS was set, return that instead
9829 of doing a real wait. Remove the code resuming the execution
9830 of the inferior after receiving a TARGET_WAITKIND_LOADED event
9831 during the initial phase. Also remove the code changing
9832 OURSTATUS->KIND from TARGET_WAITKIND_LOADED to
9833 TARGET_WAITKIND_STOPPED.
9834
e7f0d979
YQ
98352013-12-11 Yao Qi <yao@codesourcery.com>
9836
9837 * notif.c (handle_notif_ack): Return 0 if no notification
9838 matches.
9839
ebcf782c
DE
98402013-11-20 Doug Evans <dje@google.com>
9841
9842 * linux-low.c (linux_set_resume_request): Fix comment.
9843
20ad9378
DE
98442013-11-20 Doug Evans <dje@google.com>
9845
9846 * linux-low.c (resume_status_pending_p): Tweak comment.
9847
a196ebeb
WT
98482013-11-20 Walfred Tedeschi <walfred.tedeschi@intel.com>
9849
9850 * Makefile.in: Add i386-mpx.c, i386-mpx-linux.c, amd64-mpx.c,
9851 amd64-mpx-linux.c, x32-mpx.c and x32-mpx-linux.c generation.
9852 * configure.srv (srv_i386_regobj): Add i386-mpx.o.
9853 (srv_i386_linux_regobj): Add i386-mpx-linux.o.
9854 (srv_amd64_regobj): Add amd64-mpx.o.
9855 (srv_amd64_linux_regobj): Add amd64-mpx-linux.o.
9856 (srv_i386_32bit_xmlfiles): Add i386/32bit-mpx.xml.
9857 (srv_i386_64bit_xmlfiles): Add i386/64bit-mpx.xml.
9858 * i387-fp.c (num_pl_bnd_register) Added constant.
9859 (num_pl_bnd_cfg_registers) Added constant.
9860 (struct i387_xsave) Added reserved area and MPX fields.
9861 (i387_cache_to_xsave, i387_xsave_to_cache) Add MPX.
9862 * linux-x86-low.c (init_registers_i386_mpx_linux): Declare new
9863 function.
9864 (tdesc_i386_mpx_linux): Add MPX amd64 target.
9865 (init_registers_amd64_mpx_linux): Declare new function.
9866 (tdesc_amd64_mpx_linux): Add MPX amd64 target.
9867 (x86_64_regmap): Add MPX registers.
9868 (x86_linux_read_description): Add MPX case.
9869 (initialize_low_arch): Initialize MPX targets.
9870
0080a2f6
TT
98712013-11-18 Tom Tromey <tromey@redhat.com>
9872
9873 * configure: Rebuild.
9874 * configure.ac: Don't check for stdlib.h.
9875 * gdbreplay.c: Unconditionally include stdlib.h.
9876
2978b111
TT
98772013-11-18 Tom Tromey <tromey@redhat.com>
9878
9879 * config.in: Rebuild.
9880 * configure: Rebuild.
9881 * configure.ac: Don't use AC_HEADER_DIRENT.
9882
a3d08894
TT
98832013-11-18 Tom Tromey <tromey@redhat.com>
9884
9885 * server.h: Don't check HAVE_STRING_H.
9886 * gdbreplay.c: Don't check HAVE_STRING_H.
9887 * configure: Rebuild.
9888
0a5dd17d
TT
98892013-11-18 Tom Tromey <tromey@redhat.com>
9890
9891 * Makefile.in (gdbreplay$(EXEEXT)): Depend on and link against
9892 LIBGNU.
9893
1bd2f0ba
TT
98942013-11-08 Tom Tromey <tromey@redhat.com>
9895
9896 * configure, config.in: Rebuild.
9897 * configure.ac: Remove unused configury.
9898
3266f10b
TT
98992013-11-08 Tom Tromey <tromey@redhat.com>
9900
9901 * acinclude.m4: Include common.m4, codeset.m4.
9902 * configure, config.in: Rebuild.
9903 * configure.ac: Use GDB_AC_COMMON.
9904
6682d959
AA
99052013-11-06 Andreas Arnez <arnez@linux.vnet.ibm.com>
9906
9907 * linux-s390-low.c (HWCAP_S390_TE): New define.
9908 (s390_arch_setup): Consider the TE field in the HWCAP for
9909 determining 'have_regset_tdb'.
9910
fd0a4d76
SDJ
99112013-10-16 Sergio Durigan Junior <sergiodj@redhat.com>
9912
9913 PR gdb/16014
9914 * tracepoint.c (download_tracepoint_1): Remove unnecessary double
9915 call to sizeof.
9916
1a3d890b
PA
99172013-10-02 Pedro Alves <palves@redhat.com>
9918
9919 * server.c (process_serial_event): Don't output "GDBserver
9920 exiting" if GDB is connected through stdio.
9921 * target.c (mywait): Likewise, be silent if GDB is connected
9922 through stdio.
9923
97ad4581
JB
99242013-10-01 Joel Brobecker <brobecker@adacore.com>
9925
9926 * lynx-low.c (lynx_add_threads_after_attach): New function.
9927 (lynx_attach): Remove call to add_thread. Add call to
9928 lynx_add_threads_after_attach instead.
9929
5b4e221c
MF
99302013-09-28 Mike Frysinger <vapier@gentoo.org>
9931
9932 * configure.ac (AC_CHECK_HEADERS): Add sys/syscall.h
9933 * config.in, configure: Regenerated.
9934
ee47b2f8
YQ
99352013-09-18 Yao Qi <yao@codesourcery.com>
9936
9937 PR server/15959
9938 * server.c (start_inferior): Clear 'resume_info'.
9939
d6707650 99402013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 9941
d6707650
JW
9942 * linux-tile-low.c (tile_regsets): Modify the size field to 64-bit
9943 for each register.
9944
9243dd0e 99452013-09-16 Jiong Wang <jiwang@tilera.com>
0f63d4db 9946
9243dd0e
JW
9947 * configure.srv <tilegx*-*-linux*>: Remove linux-osdata.o from and add
9948 linux-tile-low.o to srv_tgtobj.
9949
c623a6ef
WN
99502013-09-16 Will Newton <will.newton@linaro.org>
9951
9952 * linux-aarch64-low.c (aarch64_linux_set_debug_regs): Zero
9953 out regs.
9954
fb71d39e
PA
99552013-09-06 Pedro Alves <palves@redhat.com>
9956
9957 * Makefile.in (gdb_proc_service_h, regdef_h, regcache_h)
9958 (signals_def, signals_h, ptid_h, ax_h, agent_h, linux_btrace_h)
9959 (linux_osdata_h, vec_h, gdb_vecs_h, host_defs_h, libiberty_h)
9960 (server_h, gdbthread_h, linux_low_h, linux_ptrace_h)
9961 (gdb_thread_db_h, linux_procfs_h, lynx_low_h, nto_low_h)
9962 (mips_linux_watch_h, i386_low_h, win32_low_h): Delete.
9963
8e7e9910
PA
99642013-09-06 Pedro Alves <palves@redhat.com>
9965
9966 * Makefile.in (linux-btrace.o, mips-linux-watch.o): Remove
9967 explicit header dependencies and use $COMPILE/$POSTCOMPILE.
9968
7c3a12ca
PA
99692013-09-06 Pedro Alves <palves@redhat.com>
9970
9971 * linux-amd64-ipa.c: Include tracepoint.h.
9972 * linux-i386-ipa.c: Include tracepoint.h.
9973
8eb3d7b6
RW
99742013-09-06 Ricard Wanderlof <ricardw@axis.com>
9975
9976 * linux-crisv32-low.c (PTRACE_GET_THREAD_AREA): New macro.
9977 (ps_get_thread_area): New function.
9978
eddddb9d
RW
99792013-09-06 Ricard Wanderlof <ricardw@axis.com>
9980
9981 * linux-crisv32-low.c (elf_gregset_t): Delete typedef.
9982 (initialize_low_arch): Call init_registers_crisv32 rather than
9983 init_register_crisv32.
9984
533b0600
PA
99852013-09-05 Pedro Alves <palves@redhat.com>
9986
9987 * server.h (handle_vFile, hostio_last_error_from_errno): Move
9988 to ...
9989 * hostio.h: ... this new file.
9990 * hostio.c, server.c, linux-low.c, nto-low.c, spu-low,
9991 win32-low.c: Include hostio.h.
9992
0ce3d3b5
PA
99932013-09-05 Pedro Alves <palves@redhat.com>
9994
9995 * server.h (gdb_client_data, handler_func, callback_handler_func)
9996 (delete_file_handler, add_file_handler, append_callback_event)
9997 (delete_callback_event, start_event_loop, initialize_event_loop):
9998 Move to event-loop.h and include it.
9999 * event-loop.h: New file.
10000
799cdc37
PA
100012013-09-05 Pedro Alves <palves@redhat.com>
10002
10003 * dll.c, inferiors.c, remote-utils.c, server.c: Include "dll.h".
10004 * server.h (struct dll_info, all_dlls, dlls_changed, clear_dlls)
10005 (loaded_dll, unloaded_dll): Move to ...
10006 * dll.h: ... this new file.
10007 * inferiors.c, remote-utils.c, win32-low.c: Include "dll.h".
10008
6a6bbd9d
PA
100092013-09-05 Pedro Alves <palves@redhat.com>
10010
10011 * server.h (current_process, get_thread_process, all_processes)
10012 (add_inferior_to_list, for_each_inferior, current_inferior)
10013 (remove_inferior, add_process, remove_process, find_process_pid)
10014 (have_started_inferiors_p, have_attached_inferiors_p)
10015 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id)
10016 (clear_inferiors, find_inferior, find_inferior_id)
10017 (inferior_target_data, set_inferior_target_data)
10018 (inferior_regcache_data, set_inferior_regcache_data): Move to
10019 inferiors.h, and include it.
10020 * inferiors.h: New file.
10021
f699aaba
PA
100222013-09-05 Pedro Alves <palves@redhat.com>
10023
10024 * server.h (struct emit_ops, current_insn_ptr, emit_error):
10025 Move ...
72f4393d 10026 * ax.h: ... here.
f699aaba 10027
c144c7a0
PA
100282013-09-05 Pedro Alves <palves@redhat.com>
10029
10030 * ax.c, linux-low.c, linux-x86-low.c, server.c: Include
10031 tracepoint.h.
10032 * server.h (IPA_BUFSIZ, initialize_tracepoint, tracing)
10033 (disconnected_tracing, tracepoint_look_up_symbols, stop_tracing
10034 (handle_tracepoint_general_set, handle_tracepoint_query)
10035 (tracepoint_finished_step, tracepoint_was_hit)
10036 (release_while_stepping_state_list, current_traceframe)
10037 (in_readonly_region, traceframe_read_mem)
10038 (fetch_traceframe_registers, traceframe_read_sdata)
10039 (traceframe_read_info, struct fast_tpoint_collect_status)
10040 (fast_tracepoint_collecting, force_unlock_trace_buffer)
10041 (handle_tracepoit_bkpts, initialize_low_tracepoint)
10042 (supply_fast_tracepoint_registers)
10043 (supply_static_tracepoint_registers, set_trampoline_buffer_space)
10044 (ipa_tdesc, claim_trampoline_space)
10045 (have_fast_tracepoint_trampoline_buffer, gdb_agent_about_to_close)
10046 (agent_mem_read, agent_get_trace_state_variable_value)
10047 (agent_set_trace_state_variable_value, agent_tsv_read)
10048 (agent_mem_read_string, get_raw_reg_func_addr)
10049 (get_get_tsv_func_addr, get_set_tsv_func_addr): Move to ...
10050 * tracepoint.h: ... this new file.
10051
ff42e6ab
PA
100522013-09-05 Pedro Alves <palves@redhat.com>
10053
10054 * server.h (perror_with_name, error, fatal, warning, paddress)
10055 (pulongest, plongest, phex_nz, pfildes): Move to utils.h, and
10056 include it.
10057 * utils.h: New file.
10058
541af0f4
PA
100592013-09-05 Pedro Alves <palves@redhat.com>
10060
10061 * server.h (remote_debug, noack_mode, transport_is_reliable)
10062 (gdb_connected, STDIO_CONNECTION_NAME, remote_connection_is_stdio)
10063 (read_ptid, write_ptid, putpkt, putpkt_binary, putpkt_notif)
10064 (getpkt, remote_prepare, remote_open, remote_close, write_ok)
10065 (write_enn, initialize_async_io, enable_async_io)
10066 (disable_async_io, check_remote_input_interrupt_request)
10067 (convert_ascii_to_int, convert_int_to_ascii, new_thread_notify)
10068 (dead_thread_notify, prepare_resume_reply)
10069 (decode_address_to_semicolon, decode_address, decode_m_packet)
10070 (decode_M_packet, decode_X_packet, decode_xfer_write)
10071 (decode_search_memory_packet, unhexify, hexify)
10072 (remote_escape_output, unpack_varlen_hex, clear_symbol_cache)
10073 (look_up_one_symbol, relocate_instruction)
10074 (monitor_output): Move to remote-utils.h, and include it.
10075 * remote-utils.h: New file.
10076
eebdf26b
PA
100772013-09-05 Pedro Alves <palves@redhat.com>
10078
10079 * server.h (_): Delete.
10080
3aafd2ff
PA
100812013-09-02 Pedro Alves <palves@redhat.com>
10082
10083 * tracepoint.c (TRACEFRAME_EOB_MARKER_SIZE): New macro.
10084 (init_trace_buffer): Ensure at least TRACEFRAME_EOB_MARKER_SIZE is
10085 allocated.
10086 (trace_buffer_alloc): Use TRACEFRAME_EOB_MARKER_SIZE.
10087
cee83bcb
PM
100882013-09-02 Pierre Muller <muller@sourceware.org>
10089
10090 * win32-low.c (child_xfer_memory): Check if ReadProcessMemory
10091 or WriteProcessMemory complete successfully and handle
10092 ERROR_PARTIAL_COPY error.
10093
9a13b2fa
PA
100942013-09-02 Pedro Alves <palves@redhat.com>
10095
10096 * server.c (gdb_read_memory): Return -1 on traceframe memory read
10097 error instead of EIO.
10098
602e3198
JK
100992013-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10100
10101 PR server/15604
10102 * linux-low.c: Include filestuff.h.
10103 (linux_create_inferior) <pid == 0>: Call close_most_fds.
10104 * lynx-low.c: Include filestuff.h.
10105 (lynx_create_inferior) <pid == 0>: Call close_most_fds.
10106 * server.c: Include filestuff.h.
10107 (main): Call notice_open_fds.
10108 * spu-low.c: Include filestuff.h.
10109 (spu_create_inferior) <pid == 0>: Call close_most_fds.
10110
96d7229d
LM
101112013-08-22 Luis Machado <lgustavo@codesourcery.com>
10112
10113 * Makefile.in: Explain why ../target and ../nat are not
10114 listed as include file search paths.
10115 (linux-waitpid.o): New object file rule.
10116 * configure.srv (srv_native_linux_obj): New variable.
10117 Replace all occurrences of linux native object files with
10118 $srv_native_linux_obj.
10119 * linux-low.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
10120 (HAS_NOMMU): Move defining logic to common/linux-ptrace.c.
10121 (linux_enable_event_reporting): Remove declaration.
10122 (my_waitpid): Moved to common/linux-waitpid.c.
10123 (linux_wait_for_event): Pass ptid when calling
10124 linux_enable_event_reporting.
10125 (linux_supports_tracefork_flag): Remove.
10126 (linux_enable_event_reporting): Likewise.
10127 (linux_tracefork_grandchild): Remove.
10128 (STACK_SIZE): Moved to common/linux-ptrace.c.
10129 (linux_tracefork_child): Remove.
10130 (linux_test_for_tracefork): Remove.
10131 (linux_look_up_symbols): Call linux_supports_traceclone.
10132 (initialize_low): Remove call to linux_test_for_tracefork.
10133 * linux-low.h (PTRACE_TYPE_ARG3): Move to
10134 common/linux-ptrace.h.
10135 (PTRACE_TYPE_ARG4): Likewise.
10136 Include linux-ptrace.h.
10137
32940073
PA
101382013-08-21 Pedro Alves <palves@redhat.com>
10139
10140 * config.in: Renegerate.
10141
33b60d58 101422013-08-19 Luis Machado <lgustavo@codesourcery.com>
a261b8f5 10143
33b60d58
LM
10144 * Makefile.in (INCLUDE_CFLAGS): Include -I$(srcdir)/../.
10145 (SFILES): Remove $(srcdir)/common/target-common.c and
10146 add $(srcdir)/target/waitstatus.c.
10147 (OBS): Remove target-common.o and add waitstatus.o.
10148 (server_h): Remove $(srcdir)/../common/target-common.h and
10149 add $(srcdir)/../target/resume.h, $(srcdir)/../target/wait.h
10150 and $(srcdir)/../target/waitstatus.h.
10151 (target-common.o): Remove.
10152 (waitstatus.o): New target object file.
10153 * target.h: Do not include target-common.h and
10154 include target/resume.h, target/wait.h and
10155 target/waitstatus.h.
10156
b8e1b30e
LM
101572013-08-13 Luis Machado <lgustavo@codesourcery.com>
10158
10159 * linux-arm-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10160 to PTRACE_TYPE_ARG3.
10161 * linux-low.c: Rename all occurrences of PTRACE_ARG3_TYPE
10162 to PTRACE_TYPE_ARG3 and PTRACE_ARG4_TYPE to
10163 PTRACE_TYPE_ARG4.
10164 * linux-low.h (PTRACE_ARG3_TYPE): Rename to PTRACE_TYPE_ARG3.
10165 (PTRACE_ARG4_TYPE): Rename to PTRACE_TYPE_ARG4.
10166
7a60ad40
YQ
101672013-07-27 Jie Zhang <jie@codesourcery.com>
10168 Daniel Jacobowitz <dan@codesourcery.com>
10169 Yao Qi <yao@codesourcery.com>
10170
10171 * Makefile.in (SFILES): Add common/mips-linux-watch.c.
10172 (mips-linux-watch.o): New rule.
10173 (mips_linux_watch_h): New variable.
10174 * configure.srv <mips*-*-linux*>: Add mips-linux-watch.o to
10175 srv_tgtobj.
10176 * linux-mips-low.c: Include mips-linux-watch.h.
10177 (struct arch_process_info, struct arch_lwp_info): New.
10178 (update_watch_registers_callback): New function.
10179 (mips_linux_new_process, mips_linux_new_thread) New functions.
10180 (mips_linux_prepare_to_resume, mips_insert_point): New
10181 functions.
10182 (mips_remove_point, mips_stopped_by_watchpoint): New
10183 functions.
10184 (rsp_bp_type_to_target_hw_bp_type): New function.
10185 (mips_stopped_data_address): New function.
10186 (the_low_target): Add watchpoint support functions.
10187
de6f69ad
YQ
101882013-07-27 Yao Qi <yao@codesourcery.com>
10189
10190 * i386-low.c: Include break-common.h.
10191 (enum target_hw_bp_type): Remove.
10192
3360c0bf
LM
101932013-07-24 Luis Machado <lgustavo@codesourcery.com>
10194
10195 * Makefile.in (SFILES): /common/target-common.c.
10196 (OBS): Add target-common.o.
10197 (server_h): Add $(srcdir)/../common/target-common.h.
10198 (target-common.o): New target.
10199 * server.c (queue_stop_reply_callback): Free
10200 status string after use.
10201 * target.c (target_waitstatus_to_string): Remove.
10202 * target.h: Include target-common.h.
10203 (resume_kind): Likewise.
10204 (target_waitkind): Likewise.
10205 (target_waitstatus): Likewise.
10206 (TARGET_WNOHANG): Likewise.
10207
bd885420
YQ
102082013-07-04 Yao Qi <yao@codesourcery.com>
10209
10210 * Makefile.in (host_alias): Use @host_noncanonical@.
10211 (target_alias): Use @target_noncanonical@.
10212 * configure.ac: Use ACX_NONCANONICAL_TARGET and
10213 ACX_NONCANONICAL_HOST.
10214 * configure: Regenerated.
10215
10216 Revert:
10217 2013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10218
10219 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10220 * configure: Rebuild.
10221 * Makefile.in (version_host, version_target): Get from configure.
10222 (version.c): Use $(version_host) and $(version_target).
10223
17ef446e
PA
102242013-07-03 Pedro Alves <palves@redhat.com>
10225
10226 * Makefile.in (config.status): Depend on development.sh.
10227 * acinclude.m4: Include libmcheck.m4.
10228 * configure: Regenerate.
10229
7a9a7487
MG
102302013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10231
10232 * win32-low.c (winapi_DebugActiveProcessStop): Move the WINAPI
10233 attribute inside the parentheses.
10234 (winapi_DebugSetProcessKillOnExit): Ditto.
10235 (winapi_DebugBreakProcess): Ditto.
10236 (winapi_GenerateConsoleCtrlEvent): Ditto.
a261b8f5 10237
49b64de6
MG
102382013-07-02 Mircea Gherzan <mircea.gherzan@intel.com>
10239
10240 * notif.h (notif_event): Add a dummy member to avoid compiler
10241 errors.
10242
d5749ee7
PA
102432013-07-01 Pedro Alves <palves@redhat.com>
10244
10245 * hostio.c (HOSTIO_PATH_MAX): Define.
10246 (require_filename, handle_open, handle_unlink, handle_readlink):
10247 Use it.
10248
d8d2a3ee
PA
102492013-07-01 Pedro Alves <palves@redhat.com>
10250
10251 * server.h: Include "pathmax.h".
10252 * linux-low.c: Don't include sys/param.h.
10253 (linux_pid_exe_is_elf_64_file): Use PATH_MAX instead of
10254 MAXPATHLEN.
10255 * win32-low.c: Don't include sys/param.h.
10256 (win32_create_inferior): Use PATH_MAX instead of MAXPATHLEN.
10257
bc7dea8d
PA
102582013-07-01 Pedro Alves <palves@redhat.com>
10259
10260 * event-loop.c: Don't check HAVE_UNISTD_H before including
10261 <unistd.h>.
10262 * gdbreplay.c: Likewise.
10263 * remote-utils.c: Likewise.
10264 * server.c: Likewise.
10265 * configure.ac: Don't check for unistd.h.
10266 * configure: Regenerate.
10267
d6c2da54
TT
102682013-06-28 Tom Tromey <tromey@redhat.com>
10269
10270 * Makefile.in (version.c): Use version.in, not
10271 common/version.in.
10272
257b6bec
MG
102732013-06-28 Mircea Gherzan <mircea.gherzan@intel.com>
10274
10275 * configure.ac (version_host, version_target): Set and AC_SUBST them.
10276 * configure: Rebuild.
10277 * Makefile.in (version_host, version_target): Get from configure.
10278 (version.c): Use $(version_host) and $(version_target).
10279
86ebe149
DK
102802013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10281
10282 Fix trace-status to output user name without trailing colon.
10283 * tracepoint.c (cmd_qtstatus): Remove unnecessary colon from user name.
10284
f30aa5af
DK
102852013-06-10 Dmitry Kozlov <ddk@codesourcery.com>
10286
10287 Fix trace-status to output proper start-time and stop-time.
10288 * tracepoint.c (cmd_qtstatus): Modify trace-status output to
10289 output start time and stop time in hex as gdb expects.
10290
28a93511
YQ
102912013-06-26 Pedro Alves <pedro@codesourcery.com>
10292
10293 * tracepoint.c (build_traceframe_info_xml): Output trace state
10294 variables present in the trace buffer.
10295
01208463
TT
102962013-06-24 Tom Tromey <tromey@redhat.com>
10297
10298 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
10299 create-version.sh.
10300 (version.o): Remove.
10301 * gdbreplay.c: Include version.h.
10302 (version, host_name): Don't declare.
10303 * server.h: Include version.h.
10304 (version, host_name): Don't declare.
10305
760256f9
PA
103062013-06-12 Pedro Alves <palves@redhat.com>
10307
10308 * linux-x86-low.c (linux_is_elf64): Delete global.
10309 (x86_siginfo_fixup): Replace reference to `linux_is_elf64' global
10310 with local linux_pid_exe_is_elf_64_file use.
10311
030031ee
PA
103122013-06-11 Pedro Alves <palves@redhat.com>
10313
10314 * linux-low.c (regset_disabled, disable_regset): New functions.
10315 (regsets_fetch_inferior_registers)
10316 (regsets_store_inferior_registers): Use them.
10317 (initialize_regsets_info); Don't allocate the disabled_regsets
10318 array here.
10319 * linux-low.h (struct regsets_info) <disabled_regsets>: Extend
10320 comment.
10321
5da6eb0a
PA
103222013-06-11 Pedro Alves <palves@redhat.com>
10323
10324 * linux-low.c (initialize_regsets_info): Use xcalloc instead of
10325 xmalloc.
10326
7e5aaa09
PA
103272013-06-11 Pedro Alves <palves@redhat.com>
10328
10329 * linux-x86-low.c (initialize_low_arch): Call
10330 init_registers_x32_avx_linux.
10331
d878444c
JK
103322013-06-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10333
10334 Fix compatibility with Android Bionic.
10335 * linux-low.c (linux_qxfer_libraries_svr4): Ignore first entry even if
10336 it is not empty.
10337
3aee8918
PA
103382013-06-07 Pedro Alves <palves@redhat.com>
10339
5f2b57b5 10340 PR server/14823
3aee8918
PA
10341 * Makefile.in (OBS): Add tdesc.o.
10342 (IPA_OBJS): Add tdesc-ipa.o.
10343 (tdesc-ipa.o): New rule.
10344 * ax.c (gdb_eval_agent_expr): Adjust register_size call to new
10345 interface.
10346 * linux-low.c (new_inferior): Delete.
10347 (disabled_regsets, num_regsets): Delete.
10348 (linux_add_process): Adjust to set the new per-process
10349 new_inferior flag.
10350 (linux_detach_one_lwp): Adjust to call regcache_invalidate_thread.
10351 (linux_wait_for_lwp): Adjust. Only call arch_setup if the event
10352 was a stop. When calling arch_setup, switch the current inferior
10353 to the thread that got an event.
10354 (linux_resume_one_lwp): Adjust to call regcache_invalidate_thread.
10355 (regsets_fetch_inferior_registers)
10356 (regsets_store_inferior_registers): New regsets_info parameter.
10357 Adjust to use it.
10358 (linux_register_in_regsets): New regs_info parameter. Adjust to
10359 use it.
10360 (register_addr, fetch_register, store_register): New usrregs_info
10361 parameter. Adjust to use it.
10362 (usr_fetch_inferior_registers, usr_store_inferior_registers): New
10363 parameter regs_info. Adjust to use it.
10364 (linux_fetch_registers): Get the current inferior's regs_info, and
10365 adjust to use it.
10366 (linux_store_registers): Ditto.
10367 [HAVE_LINUX_REGSETS] (initialize_regsets_info): New.
10368 (initialize_low): Don't initialize the target_regsets here. Call
10369 initialize_low_arch.
10370 * linux-low.h (target_regsets): Delete declaration.
10371 (struct regsets_info): New.
10372 (struct usrregs_info): New.
10373 (struct regs_info): New.
10374 (struct process_info_private) <new_inferior>: New field.
10375 (struct linux_target_ops): Delete the num_regs, regmap, and
10376 regset_bitmap fields. New field regs_info.
10377 [HAVE_LINUX_REGSETS] (initialize_regsets_info): Declare.
10378 * i387-fp.c (num_xmm_registers): Delete.
10379 (i387_cache_to_fsave, i387_fsave_to_cache): Adjust find_regno
10380 calls to new interface.
10381 (i387_cache_to_fxsave, i387_cache_to_xsave, i387_fxsave_to_cache)
10382 (i387_xsave_to_cache): Adjust find_regno calls to new interface.
10383 Infer the number of xmm registers from the regcache's target
10384 description.
10385 * i387-fp.h (num_xmm_registers): Delete.
10386 * inferiors.c (add_thread): Don't install the thread's regcache
10387 here.
10388 * proc-service.c (gregset_info): Fetch the current inferior's
10389 regs_info. Adjust to use it.
10390 * regcache.c: Include tdesc.h.
10391 (register_bytes, reg_defs, num_registers)
10392 (gdbserver_expedite_regs): Delete.
10393 (get_thread_regcache): If the thread doesn't have a regcache yet,
10394 create one, instead of aborting gdbserver.
10395 (regcache_invalidate_one): Rename to ...
10396 (regcache_invalidate_thread): ... this.
10397 (regcache_invalidate_one): New.
10398 (regcache_invalidate): Only invalidate registers of the current
10399 process.
10400 (init_register_cache): Add target_desc parameter, and use it.
10401 (new_register_cache): Ditto. Assert the target description has a
10402 non zero registers_size.
10403 (regcache_cpy): Add assertions. Adjust.
10404 (realloc_register_cache, set_register_cache): Delete.
10405 (registers_to_string, registers_from_string): Adjust.
10406 (find_register_by_name, find_regno, find_register_by_number)
10407 (register_cache_size): Add target_desc parameter, and use it.
10408 (free_register_cache_thread, free_register_cache_thread_one)
10409 (regcache_release, register_cache_size): New.
10410 (register_size): Add target_desc parameter, and use it.
10411 (register_data, supply_register, supply_register_zeroed)
10412 (supply_regblock, supply_register_by_name, collect_register)
10413 (collect_register_as_string, collect_register_by_name): Adjust.
10414 * regcache.h (struct target_desc): Forward declare.
10415 (struct regcache) <tdesc>: New field.
10416 (init_register_cache, new_register_cache): Add target_desc
10417 parameter.
10418 (regcache_invalidate_thread): Declare.
10419 (regcache_invalidate_one): Delete declaration.
10420 (regcache_release): Declare.
10421 (find_register_by_number, register_cache_size, register_size)
10422 (find_regno): Add target_desc parameter.
10423 (gdbserver_expedite_regs, gdbserver_xmltarget): Delete
10424 declarations.
10425 * remote-utils.c: Include tdesc.h.
10426 (outreg, prepare_resume_reply): Adjust.
10427 * server.c: Include tdesc.h.
10428 (gdbserver_xmltarget): Delete declaration.
10429 (get_features_xml, process_serial_event): Adjust.
10430 * server.h [IN_PROCESS_AGENT] (struct target_desc): Forward
10431 declare.
10432 (struct process_info) <tdesc>: New field.
10433 (ipa_tdesc): Declare.
10434 * tdesc.c: New file.
10435 * tdesc.h: New file.
10436 * tracepoint.c: Include tdesc.h.
10437 [IN_PROCESS_AGENT] (ipa_tdesc): Define.
10438 (get_context_regcache): Adjust to pass ipa_tdesc down.
10439 (do_action_at_tracepoint): Adjust to get the register cache size
10440 from the context regcache's description.
10441 (traceframe_walk_blocks): Adjust to get the register cache size
10442 from the current trace frame's description.
10443 (traceframe_get_pc): Adjust to get current trace frame's
10444 description and pass it down.
10445 (gdb_collect): Adjust to get the register cache size from the
10446 IPA's description.
10447 * linux-amd64-ipa.c (tdesc_amd64_linux): Declare.
10448 (gdbserver_xmltarget): Delete.
10449 (initialize_low_tracepoint): Set the ipa's target description.
10450 * linux-i386-ipa.c (tdesc_i386_linux): Declare.
10451 (initialize_low_tracepoint): Set the ipa's target description.
10452 * linux-x86-low.c: Include tdesc.h.
10453 [__x86_64__] (is_64bit_tdesc): New.
10454 (ps_get_thread_area, x86_get_thread_area): Use it.
10455 (i386_cannot_store_register): Rename to ...
10456 (x86_cannot_store_register): ... this. Use is_64bit_tdesc.
10457 (i386_cannot_fetch_register): Rename to ...
10458 (x86_cannot_fetch_register): ... this. Use is_64bit_tdesc.
10459 (x86_fill_gregset, x86_store_gregset): Adjust register_size calls
10460 to new interface.
10461 (target_regsets): Rename to ...
10462 (x86_regsets): ... this.
10463 (x86_get_pc, x86_set_pc): Adjust register_size calls to new
10464 interface.
10465 (x86_siginfo_fixup): Use is_64bit_tdesc.
10466 [__x86_64__] (tdesc_amd64_linux, tdesc_amd64_avx_linux)
10467 (tdesc_x32_avx_linux, tdesc_x32_linux)
10468 (tdesc_i386_linux, tdesc_i386_mmx_linux, tdesc_i386_avx_linux):
10469 Declare.
10470 (x86_linux_update_xmltarget): Delete.
10471 (I386_LINUX_XSAVE_XCR0_OFFSET): Define.
10472 (have_ptrace_getfpxregs, have_ptrace_getregset): New.
10473 (AMD64_LINUX_USER64_CS): New.
10474 (x86_linux_read_description): New, based on
10475 x86_linux_update_xmltarget.
10476 (same_process_callback): New.
10477 (x86_arch_setup_process_callback): New.
10478 (x86_linux_update_xmltarget): New.
10479 (x86_regsets_info): New.
10480 (amd64_linux_regs_info): New.
10481 (i386_linux_usrregs_info): New.
10482 (i386_linux_regs_info): New.
10483 (x86_linux_regs_info): New.
10484 (x86_arch_setup): Reimplement.
10485 (x86_install_fast_tracepoint_jump_pad): Use is_64bit_tdesc.
10486 (x86_emit_ops): Ditto.
10487 (the_low_target): Adjust. Install x86_linux_regs_info,
10488 x86_cannot_fetch_register, and x86_cannot_store_register.
10489 (initialize_low_arch): New.
10490 * linux-ia64-low.c (tdesc_ia64): Declare.
10491 (ia64_fetch_register): Adjust.
10492 (ia64_usrregs_info, regs_info): New globals.
10493 (ia64_regs_info): New function.
10494 (the_low_target): Adjust.
10495 (initialize_low_arch): New function.
10496 * linux-sparc-low.c (tdesc_sparc64): Declare.
10497 (sparc_fill_gregset_to_stack, sparc_store_gregset_from_stack):
10498 Adjust.
10499 (sparc_arch_setup): New function.
10500 (sparc_regsets_info, sparc_usrregs_info, regs_info): New globals.
10501 (the_low_target): Adjust.
10502 (initialize_low_arch): New function.
10503 * linux-ppc-low.c (tdesc_powerpc_32l, tdesc_powerpc_altivec32l)
10504 (tdesc_powerpc_cell32l, tdesc_powerpc_vsx32l)
10505 (tdesc_powerpc_isa205_32l, tdesc_powerpc_isa205_altivec32l)
10506 (tdesc_powerpc_isa205_vsx32l, tdesc_powerpc_e500l)
10507 (tdesc_powerpc_64l, tdesc_powerpc_altivec64l)
10508 (tdesc_powerpc_cell64l, tdesc_powerpc_vsx64l)
10509 (tdesc_powerpc_isa205_64l, tdesc_powerpc_isa205_altivec64l)
10510 (tdesc_powerpc_isa205_vsx64l): Declare.
10511 (ppc_cannot_store_register, ppc_collect_ptrace_register)
10512 (ppc_supply_ptrace_register, parse_spufs_run, ppc_get_pc)
10513 (ppc_set_pc, ppc_get_hwcap): Adjust.
10514 (ppc_usrregs_info): Forward declare.
10515 (!__powerpc64__) ppc_regmap_adjusted: New global.
10516 (ppc_arch_setup): Adjust to the current process'es target
10517 description.
10518 (ppc_fill_vsxregset, ppc_store_vsxregset, ppc_fill_vrregset)
10519 (ppc_store_vrregset, ppc_fill_evrregset, ppc_store_evrregse)
10520 (ppc_store_evrregset): Adjust.
10521 (target_regsets): Rename to ...
10522 (ppc_regsets): ... this, and make static.
10523 (ppc_usrregs_info, ppc_regsets_info, regs_info): New globals.
10524 (ppc_regs_info): New function.
10525 (the_low_target): Adjust.
10526 (initialize_low_arch): New function.
10527 * linux-s390-low.c (tdesc_s390_linux32, tdesc_s390_linux32v1)
10528 (tdesc_s390_linux32v2, tdesc_s390_linux64, tdesc_s390_linux64v1)
10529 (tdesc_s390_linux64v2, tdesc_s390x_linux64, tdesc_s390x_linux64v1)
10530 (tdesc_s390x_linux64v2): Declare.
10531 (s390_collect_ptrace_register, s390_supply_ptrace_register)
10532 (s390_fill_gregset, s390_store_last_break): Adjust.
10533 (target_regsets): Rename to ...
10534 (s390_regsets): ... this, and make static.
10535 (s390_get_pc, s390_set_pc): Adjust.
10536 (s390_get_hwcap): New target_desc parameter, and use it.
10537 [__s390x__] (have_hwcap_s390_high_gprs): New global.
10538 (s390_arch_setup): Adjust to set the current process'es target
10539 description. Don't adjust the regmap.
10540 (s390_usrregs_info, s390_regsets_info, regs_info): New globals.
10541 [__s390x__] (s390_usrregs_info_3264, s390_regsets_info_3264)
10542 (regs_info_3264): New globals.
10543 (s390_regs_info): New function.
10544 (the_low_target): Adjust.
10545 (initialize_low_arch): New function.
10546 * linux-mips-low.c (tdesc_mips_linux, tdesc_mips_dsp_linux)
10547 (tdesc_mips64_linux, tdesc_mips64_dsp_linux): Declare.
10548 [__mips64] (init_registers_mips_linux)
10549 (init_registers_mips_dsp_linux): Delete defines.
10550 [__mips64] (tdesc_mips_linux, tdesc_mips_dsp_linux): New defines.
10551 (have_dsp): New global.
10552 (mips_read_description): New, based on mips_arch_setup.
10553 (mips_arch_setup): Reimplement.
10554 (get_usrregs_info): New function.
10555 (mips_cannot_fetch_register, mips_cannot_store_register)
10556 (mips_get_pc, mips_set_pc, mips_fill_gregset, mips_store_gregset)
10557 (mips_fill_fpregset, mips_store_fpregset): Adjust.
10558 (target_regsets): Rename to ...
10559 (mips_regsets): ... this, and make static.
10560 (mips_regsets_info, mips_dsp_usrregs_info, mips_usrregs_info)
10561 (dsp_regs_info, regs_info): New globals.
10562 (mips_regs_info): New function.
10563 (the_low_target): Adjust.
10564 (initialize_low_arch): New function.
10565 * linux-arm-low.c (tdesc_arm, tdesc_arm_with_iwmmxt)
10566 (tdesc_arm_with_vfpv2, tdesc_arm_with_vfpv3, tdesc_arm_with_neon):
10567 Declare.
10568 (arm_fill_vfpregset, arm_store_vfpregset): Adjust.
10569 (arm_read_description): New, with bits factored from
10570 arm_arch_setup.
10571 (arm_arch_setup): Reimplement.
10572 (target_regsets): Rename to ...
10573 (arm_regsets): ... this, and make static.
10574 (arm_regsets_info, arm_usrregs_info, regs_info): New globals.
10575 (arm_regs_info): New function.
10576 (the_low_target): Adjust.
10577 (initialize_low_arch): New function.
10578 * linux-m68k-low.c (tdesc_m68k): Declare.
10579 (target_regsets): Rename to ...
10580 (m68k_regsets): ... this, and make static.
10581 (m68k_regsets_info, m68k_usrregs_info, regs_info): New globals.
10582 (m68k_regs_info): New function.
10583 (m68k_arch_setup): New function.
10584 (the_low_target): Adjust.
10585 (initialize_low_arch): New function.
10586 * linux-sh-low.c (tdesc_sharch): Declare.
10587 (target_regsets): Rename to ...
10588 (sh_regsets): ... this, and make static.
10589 (sh_regsets_info, sh_usrregs_info, regs_info): New globals.
10590 (sh_regs_info, sh_arch_setup): New functions.
10591 (the_low_target): Adjust.
10592 (initialize_low_arch): New function.
10593 * linux-bfin-low.c (tdesc_bfin): Declare.
10594 (bfin_arch_setup): New function.
10595 (bfin_usrregs_info, regs_info): New globals.
10596 (bfin_regs_info): New function.
10597 (the_low_target): Adjust.
10598 (initialize_low_arch): New function.
10599 * linux-cris-low.c (tdesc_cris): Declare.
10600 (cris_arch_setup): New function.
10601 (cris_usrregs_info, regs_info): New globals.
10602 (cris_regs_info): New function.
10603 (the_low_target): Adjust.
10604 (initialize_low_arch): New function.
10605 * linux-cris-low.c (tdesc_crisv32): Declare.
10606 (cris_arch_setup): New function.
10607 (cris_regsets_info, cris_usrregs_info, regs_info): New globals.
10608 (cris_regs_info): New function.
10609 (the_low_target): Adjust.
10610 (initialize_low_arch): New function.
10611 * linux-m32r-low.c (tdesc_m32r): Declare.
10612 (m32r_arch_setup): New function.
10613 (m32r_usrregs_info, regs_info): New globals.
10614 (m32r_regs_info): Adjust.
10615 (initialize_low_arch): New function.
10616 * linux-tic6x-low.c (tdesc_tic6x_c64xp_linux)
10617 (tdesc_tic6x_c64x_linux, tdesc_tic6x_c62x_linux): Declare.
10618 (tic6x_usrregs_info): Forward declare.
10619 (tic6x_read_description): New function, based on ...
10620 (tic6x_arch_setup): ... this. Reimplement.
10621 (target_regsets): Rename to ...
10622 (tic6x_regsets): ... this, and make static.
10623 (tic6x_regsets_info, tic6x_usrregs_info, regs_info): New globals.
10624 (tic6x_regs_info): New function.
10625 (the_low_target): Adjust.
10626 (initialize_low_arch): New function.
10627 * linux-xtensa-low.c (tdesc_xtensa): Declare.
10628 (xtensa_fill_gregset, xtensa_store_gregset): Adjust.
10629 (target_regsets): Rename to ...
10630 (xtensa_regsets): ... this, and make static.
10631 (xtensa_regsets_info, xtensa_usrregs_info, regs_info): New
10632 globals.
10633 (xtensa_arch_setup, xtensa_regs_info): New functions.
10634 (the_low_target): Adjust.
10635 (initialize_low_arch): New function.
10636 * linux-nios2-low.c (tdesc_nios2_linux): Declare.
10637 (nios2_arch_setup): Set the current process'es tdesc.
10638 (target_regsets): Rename to ...
10639 (nios2_regsets): ... this.
10640 (nios2_regsets_info, nios2_usrregs_info, regs_info): New globals.
10641 (nios2_regs_info): New function.
10642 (the_low_target): Adjust.
10643 (initialize_low_arch): New function.
a261b8f5
PA
10644 * linux-aarch64-low.c (tdesc_aarch64): Declare.
10645 (aarch64_arch_setup): Set the current process'es tdesc.
10646 (target_regsets): Rename to ...
10647 (aarch64_regsets): ... this.
10648 (aarch64_regsets_info, aarch64_usrregs_info, regs_info): New globals.
10649 (aarch64_regs_info): New function.
10650 (the_low_target): Adjust.
10651 (initialize_low_arch): New function.
3aee8918
PA
10652 * linux-tile-low.c (tdesc_tilegx, tdesc_tilegx32): Declare
10653 globals.
10654 (target_regsets): Rename to ...
10655 (tile_regsets): ... this.
10656 (tile_regsets_info, tile_usrregs_info, regs_info): New globals.
10657 (tile_regs_info): New function.
10658 (tile_arch_setup): Set the current process'es tdesc.
10659 (the_low_target): Adjust.
10660 (initialize_low_arch): New function.
10661 * spu-low.c (tdesc_spu): Declare.
10662 (spu_create_inferior, spu_attach): Set the new process'es tdesc.
10663 * win32-arm-low.c (tdesc_arm): Declare.
10664 (arm_arch_setup): New function.
10665 (the_low_target): Install arm_arch_setup instead of
10666 init_registers_arm.
10667 * win32-i386-low.c (tdesc_i386, tdesc_amd64): Declare.
10668 (init_windows_x86): Rename to ...
10669 (i386_arch_setup): ... this. Set `win32_tdesc'.
10670 (the_low_target): Adjust.
10671 * win32-low.c (win32_tdesc): New global.
10672 (child_add_thread): Don't create the thread cache here.
10673 (do_initial_child_stuff): Set the new process'es tdesc.
10674 * win32-low.h (struct target_desc): Forward declare.
10675 (win32_tdesc): Declare.
10676 * lynx-i386-low.c (tdesc_i386): Declare global.
10677 (lynx_i386_arch_setup): Set `lynx_tdesc'.
10678 * lynx-low.c (lynx_tdesc): New global.
10679 (lynx_add_process): Set the new process'es tdesc.
10680 * lynx-low.h (struct target_desc): Forward declare.
10681 (lynx_tdesc): Declare global.
10682 * lynx-ppc-low.c (tdesc_powerpc_32): Declare global.
10683 (lynx_ppc_arch_setup): Set `lynx_tdesc'.
10684 * nto-low.c (nto_tdesc): New global.
10685 (do_attach): Set the new process'es tdesc.
10686 * nto-low.h (struct target_desc): Forward declare.
10687 (nto_tdesc): Declare.
10688 * nto-x86-low.c (tdesc_i386): Declare.
10689 (nto_x86_arch_setup): Set `nto_tdesc'.
10690
b1fbec62
GB
106912013-06-04 Gary Benson <gbenson@redhat.com>
10692
10693 * server.c (handle_query): Add "augmented-libraries-svr4-read+"
10694 to qSupported response when appropriate.
10695 (handle_qxfer_libraries_svr4): Allow qXfer:libraries-svr4:read
10696 with nonzero-length annex.
10697 * linux-low.c (linux_qxfer_libraries_svr4): Parse and handle
10698 arguments supplied in annex.
10699
d1ec4ce7
DE
107002013-05-31 Doug Evans <dje@google.com>
10701
ac44adcb 10702 PR server/15594
d1ec4ce7
DE
10703 * linux-x86-low.c (ps_get_thread_area): Properly extend address to
10704 64 bits in 64-cross-32 environment.
10705
9b25f2d3
PA
107062013-05-28 Pedro Alves <palves@redhat.com>
10707
10708 * Makefile.in (clean): Remove reference to aarch64-without-fpu.c.
10709 (aarch64-without-fpu.c): Delete rule.
10710 * configure.srv (aarch64*-*-linux*): Remove references to
10711 aarch64-without-fpu.o and aarch64-without-fpu.xml.
10712 * linux-aarch64-low.c (init_registers_aarch64_without_fpu): Remove
10713 declaration.
10714
6740dc9c
PA
107152013-05-24 Pedro Alves <palves@redhat.com>
10716
10717 * server.c (handle_v_cont) <vCont;r>: Use unpack_varlen_hex
10718 instead of strchr/decode_address. Error if the range isn't split
10719 with a ','. Don't assume there's be a ':' in the action.
10720
c2d6af84
PA
107212013-05-23 Yao Qi <yao@codesourcery.com>
10722 Pedro Alves <palves@redhat.com>
10723
10724 * linux-low.c (lwp_in_step_range): New function.
10725 (linux_wait_1): If the thread was range stepping and stopped
10726 outside the stepping range, report the stop to GDB. Otherwise,
10727 continue stepping. Add range stepping debug output.
10728 (linux_set_resume_request): Copy the step range from the resume
10729 request to the lwp.
10730 (linux_supports_range_stepping): New.
10731 (linux_target_ops) <supports_range_stepping>: Set to
10732 linux_supports_range_stepping.
10733 * linux-low.h (struct linux_target_ops)
10734 <supports_range_stepping>: New field.
10735 (struct lwp_info) <step_range_start, step_range_end>: New fields.
10736 * linux-x86-low.c (x86_supports_range_stepping): New.
10737 (the_low_target) <supports_range_stepping>: Set to
10738 x86_supports_range_stepping.
10739 * server.c (handle_v_cont): Handle 'r' action.
10740 (handle_v_requests): Append ";r" if the target supports range
10741 stepping.
10742 * target.h (struct thread_resume) <step_range_start,
10743 step_range_end>: New fields.
10744 (struct target_ops) <supports_range_stepping>:
10745 New field.
10746 (target_supports_range_stepping): New macro.
10747
58794e1a
JB
107482013-05-17 Joel Brobecker <brobecker@adacore.com>
10749
10750 * lynx-low.c (lynx_resume): Fix null_ptid/minus_one_ptid
10751 confusion in comment.
10752
d631c5a7
JB
107532013-05-17 Joel Brobecker <brobecker@adacore.com>
10754
10755 * lynx-low.c (struct process_info_private): New type.
10756 (lynx_add_process): New function.
10757 (lynx_create_inferior, lynx_attach): Replace calls to
10758 add_process by calls to lynx_add_process.
10759 (lynx_resume): If PTID is null, then try using
10760 current_process()->private->last_wait_event_ptid.
10761 Add comments.
10762 (lynx_clear_inferiors): Delete. The contents of that function
10763 has been inlined in lynx_mourn;
10764 (lynx_wait_1): Save the ptid in the process's private data.
10765 (lynx_mourn): Free the process' private data. Replace call
10766 to lynx_clear_inferiors by call to clear_inferiors.
10767
96f7a20f
YQ
107682013-05-17 Yao Qi <yao@codesourcery.com>
10769
10770 * i386-low.c (i386_length_and_rw_bits): Move the comment to
10771 the right place.
10772
db0dfaa0
LM
107732013-05-16 Luis Machado <lgustavo@codesourcery.com>
10774
10775 * linux-low.c: Move definition checks upwards for PT_TEXT_ADDR,
10776 PT_DATA_ADDR and PT_TEXT_END_ADDR. Update comments.
10777 (linux_read_offsets): Remove PT_TEXT_ADDR, PT_DATA_ADDR and
10778 PT_TEXT_END_ADDR guards. Update comments.
10779 (linux_target_op) <read_offsets>: Conditionally define to
10780 linux_read_offsets if the target is UCLIBC and if it defines
10781 PT_TEXT_ADDR, PT_DATA_ADDR and PT_TEXT_END_ADDR.
10782
68f5f838
SL
107832013-05-06 Sandra Loosemore <sandra@codesourcery.com>
10784 Andrew Jenner <andrew@codesourcery.com>
10785
10786 * Makefile.in (SFILES): Add linux-nios2-low.c.
10787 (clean): Add action to delete nios2-linux.c.
10788 (nios2-linux.c): New rule.
10789 * configure.srv: Add nios2*-*-linux*.
10790 * linux-nios2-low.c: New.
10791
1ebff1fd
HAQ
107922013-05-03 Hafiz Abid Qadeer <abidh@codesourcery.com>
10793
10794 * tracepoint.c (cmd_qtinit): Call 'stop_tracing'.
10795
f6150862
HZ
107962013-04-25 Hui Zhu <hui@codesourcery.com>
10797
10798 PR gdb/15186
f6150862
HZ
10799 * ax.c (ax_printf): Add fflush.
10800
614c279d
TT
108012013-04-22 Tom Tromey <tromey@redhat.com>
10802
10803 * Makefile.in (SFILES): Add filestuff.c.
10804 (OBS): Add filestuff.o.
10805 (filestuff.o): New target.
10806 * config.in, configure: Rebuild.
10807 * configure.ac: Check for fdwalk, pipe2.
10808
7d4e5717
PA
108092013-04-17 Pedro Alves <palves@redhat.com>
10810
10811 * configure.ac (USE_THREAD_DB): Delete variable.
10812 (if test "$srv_linux_thread_db" = "yes"): AC_DEFINE USE_THREAD_DB.
10813 Don't AC_SUBST USE_THREAD_DB.
10814 * Makefile.in (INTERNAL_CFLAGS): Remove @USE_THREAD_DB@.
10815 * config.in, configure: Regenerate.
10816
d5c93e41
PA
108172013-04-16 Pedro Alves <palves@redhat.com>
10818
10819 * linux-low.h (struct lwp_info) <thread_known>: Move under
10820 the USE_THREAD_DB #ifdef.
10821
04f5fe89
PA
108222013-04-16 Pedro Alves <palves@redhat.com>
10823
10824 * Makefile.in (INTERNAL_CFLAGS): Add @USE_THREAD_DB@.
10825 (linux-low.o): Delete rule.
10826 * linux-low.h: Always include "gdb_thread_db.h" instead of
10827 conditionally including thread_db.h.
10828 (struct lwp_info) <th>: Guard with #ifdef USE_THREAD_DB instead of
10829 HAVE_THREAD_DB_H.
10830
480b27bf
JK
108312013-04-07 Jan Kratochvil <jan.kratochvil@redhat.com>
10832
10833 * Makefile.in (install-only): Fix make install regression.
10834
43662968
JK
108352013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10836
10837 Convert man pages to texinfo, new gdbinit.5 texinfo page.
10838 * Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
10839 installation.
10840 * gdbserver.1: Remove.
10841
3e74e146
PA
108422013-03-22 Pedro Alves <palves@redhat.com>
10843
10844 * linux-low.c (handle_extended_wait): Don't call
10845 linux_enable_event_reporting.
10846
a8347a2a
TT
108472013-03-15 Tony Theodore <tonyt@logyst.com>
10848
10849 PR build/9098:
10850 * Makefile.in (SHELL): Use @SHELL@.
10851
eeb56fa7
SDJ
108522013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
10853
10854 * tracepoint.c (cmd_qtv): Initialize `val' with zero, silencing
10855 compiler warning.
10856
4fa7e2ff
JB
108572013-03-13 Joel Brobecker <brobecker@adacore.com>
10858
10859 * linux-low.c (linux_target_ops) [!HAVE_LINUX_BTRACE]:
10860 Remove extraneous NULL element.
10861
8ddb1965
YQ
108622013-03-13 Yao Qi <yao@codesourcery.com>
10863
10864 * tracepoint.c (traceframe_read_tsv): Look for the last matched
10865 'V' block in trace frame.
10866
9accd112
MM
108672013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10868
10869 * target.h (struct target_ops): Add btrace ops.
10870 (target_supports_btrace): New macro.
10871 (target_enable_btrace): New macro.
10872 (target_disable_btrace): New macro.
10873 (target_read_btrace): New macro.
10874 * gdbthread.h (struct thread_info): Add btrace field.
10875 * server.c: Include btrace-common.h.
10876 (handle_btrace_general_set): New function.
10877 (handle_btrace_enable): New function.
10878 (handle_btrace_disable): New function.
10879 (handle_general_set): Call handle_btrace_general_set.
10880 (handle_qxfer_btrace): New function.
10881 (struct qxfer qxfer_packets[]): Add btrace entry.
10882 * inferiors.c (remove_thread): Disable btrace.
10883 * linux-low: Include linux-btrace.h.
10884 (linux_low_enable_btrace): New function.
10885 (linux_low_read_btrace): New function.
10886 (linux_target_ops): Add btrace ops.
10887 * configure.srv (i[34567]86-*-linux*): Add linux-btrace.o.
10888 Add srv_linux_btrace=yes.
10889 (x86_64-*-linux*): Add linux-btrace.o.
10890 Add srv_linux_btrace=yes.
10891 * configure.ac: Define HAVE_LINUX_BTRACE.
10892 * config.in: Regenerated.
10893 * configure: Regenerated.
10894
5cc22e4c
MM
108952013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10896
10897 * server.c (handle_qxfer): Preserve error message if -3 is
10898 returned.
10899 (qxfer): Document the -3 return value.
10900
7c97f91e
MM
109012013-03-11 Markus Metzger <markus.t.metzger@intel.com>
10902
10903 * Makefile.in (SFILES): Add $(srcdir)/common/linux-btrace.c.
10904 (linux_btrace_h): New variable.
10905 (linux-btrace.o): New rule.
10906
be9a119c 109072013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
10908 Hafiz Abid Qadeer <abidh@codesourcery.com>
10909
10910 * tracepoint.c (trace_buffer_size): New global.
10911 (DEFAULT_TRACE_BUFFER_SIZE): New define.
10912 (init_trace_buffer): Change to one-argument function. Allocate
10913 trace buffer memory.
10914 (handle_tracepoint_general_set): Call cmd_bigqtbuffer_size to
10915 handle QTBuffer:size packet.
10916 (cmd_bigqtbuffer_size): New function.
10917 (initialize_tracepoint): Call init_trace_buffer with
10918 DEFAULT_TRACE_BUFFER_SIZE.
10919 * server.c (handle_query): Add QTBuffer:size in the
10920 supported packets.
10921
e64f7499
YQ
109222013-03-07 Yao Qi <yao@codesourcery.com>
10923
10924 * tracepoint.c (cur_action, cur_step_action): Make them unsigned.
10925 (cmd_qtfp): Initialize cur_action and cur_step_action 0 instead
10926 of -1.
10927 (cmd_qtsp): Adjust condition. Do post increment.
10928 Set cur_action and cur_step_action back to 0.
10929
f0ae6fc3
PA
109302013-03-07 Jeremy Bennett <jeremy.bennett@embecosm.com>
10931
10932 PR server/15236
10933 * linux-low.c (linux_write_memory): Return early success if LEN is
10934 zero.
10935
b5b0b0af
CV
109362013-03-05 Corinna Vinschen <vinschen@redhat.de>
10937
334ad4a8 10938 * configure.srv: Add x86_64-*-cygwin* as target.
b5b0b0af 10939
589bc927
TT
109402013-02-28 Tom Tromey <tromey@redhat.com>
10941
10942 * configure.ac: Invoke AC_SYS_LARGEFILE.
10943 * configure, config.in: Rebuild.
10944
dfe07582
CV
109452013-02-28 Corinna Vinschen <vinschen@redhat.com>
10946
10947 * win32-low.c: Throughout, fix format strings and casts of
10948 printf-like functions to avoid type related warnings on all
10949 platforms.
10950 (get_child_debug_event): Print dwDebugEventCode as hex since
10951 that's how it's usually documented.
10952
736cd585
YQ
109532013-02-28 Yao Qi <yao@codesourcery.com>
10954
10955 * tracepoint.c (cmd_qtbuffer): Call phex_nz instead of
10956 pulongest.
10957
e1f58301
JW
109582013-02-27 Jiong Wang <jiwang@tilera.com>
10959
10960 * Makefile.in (clean): Remove reg-tilegx.c, reg-tilegx32.c.
10961 (reg-tilegx32.c): New rule.
10962 * configure.srv (tilegx-*-linux*): Add reg-tilegx32.o to srv_regobj.
10963 * linux-tile-low.c (tile_arch_setup): New function. Invoke
10964 different register info initializer according to elf class.
10965 (init_registers_tilgx32): New function. The tilegx32 register info
10966 initializer.
10967 (tile_fill_gregset): Use "uint_reg_t" to represent register size.
10968 (tile_store_gregset): Likewise.
10969
d171ca78
YQ
109702013-02-27 Yao Qi <yao@codesourcery.com>
10971
10972 * server.c (process_point_options): Print debug message when
10973 debug_threads is true.
10974
282bbdf3
YQ
109752013-02-26 Yao Qi <yao@codesourcery.com>
10976
10977 * tracepoint.c (cmd_qtbuffer): Don't set '\0' in OWN_BUF.
10978
aca22551
PA
109792013-02-19 Pedro Alves <palves@redhat.com>
10980 Kai Tietz <ktietz@redhat.com>
10981
10982 PR gdb/15161
10983
10984 * server.c (handle_query) <CRC check>: Use unpack_varlen_hex
10985 instead of strtoul to extract address from packet.
10986 (process_serial_event) <'z'>: Likewise.
10987
4f3cee1c
YQ
109882013-02-18 Yao Qi <yao@codesourcery.com>
10989
10990 * linux-bfin-low.c (the_low_target): Use NULL instead of 0.
10991
8e1d55a3
PA
109922013-02-14 Pedro Alves <palves@redhat.com>
10993
10994 Plug memory leak.
10995
10996 * tracepoint.c (cmd_qtnotes): Free TRACING_USER_NAME,
10997 TRACING_NOTES and TRACING_STOP_NOTE before clobbering.
10998
458820da
PA
109992013-02-14 Pedro Alves <palves@redhat.com>
11000
11001 * tracepoint.c (cmd_qtdpsrc): Use savestring.
11002
baea0dae
PA
110032013-02-14 Pedro Alves <palves@redhat.com>
11004
11005 * tracepoint.c (save_string): Delete.
11006 (add_tracepoint_action): Use savestring instead of save_string.
11007
0b1afbb3
PA
110082013-02-12 Pedro Alves <palves@redhat.com>
11009
11010 * linux-xtensa-low.c: Ditto.
11011 * xtensa-xtregs.c: Ditto.
11012
8a4ac37e
PA
110132013-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
11014
11015 * thread-db.c (thread_db_get_tls_address): NULL pointer check
11016 thread_db.
11017
148de6bb
MS
110182013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11019
11020 * linux-aarch64-low.c (aarch64_arch_setup): Clamp
11021 aarch64_num_wp_regs and aarch64_num_bp_regs to
11022 AARCH64_HWP_MAX_NUM and AARCH64_HBP_MAX_NUM respectively.
11023
55fac6e0
MS
110242013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11025
11026 * linux-aarch64-low.c (ps_get_thread_area): Replace
11027 PTRACE_GET_THREAD_AREA with PTRACE_GETREGSET.
11028
176eb98c
MS
110292013-02-04 Jim MacArthur <jim.macarthur@arm.com>
11030 Marcus Shawcroft <marcus.shawcroft@arm.com>
11031 Nigel Stephens <nigel.stephens@arm.com>
11032 Yufeng Zhang <yufeng.zhang@arm.com>
11033
11034 * Makefile.in (clean): Remove aarch64.c and aarch64-without-fpu.c.
11035 (aarch64.c, aarch64-without-fpu.c): New targets.
11036 * configure.srv (aarch64*-*-linux*): New.
11037 * linux-aarch64-low.c: New file.
11038
56f7af9c
MS
110392013-02-04 Marcus Shawcroft <marcus.shawcroft@arm.com>
11040
43aaf8b6 11041 * linux-low.c (handle_extended_wait, linux_create_inferior)
56f7af9c
MS
11042 (linux_attach_lwp_1, linux_kill_one_lwp, linux_attach_one_lwp)
11043 (dequeue_one_deferred_signal, linux_resume_one_thread)
11044 (fetch_register, linux_write_memory, linux_enable_event_reporting)
11045 (linux_tracefork_grandchild, linux_test_for_tracefork)
11046 (linux_read_offsets, linux_xfer_siginfo, linux_xfer_siginfo): Add
11047 PTRACE_ARG3_TYPE and PTRACE_ARG4_TYPE cast to ptrace arguments
11048 where the argument is 0.
11049
60f662b0
YQ
110502013-01-25 Yao Qi <yao@codesourcery.com>
11051
11052 * event-loop.c: Include "queue.h".
11053 (gdb_event_p): New typedef.
11054 (struct gdb_event) <next_event>: Remove.
11055 (event_queue): Change to QUEUE(gdb_event_p).
11056 (async_queue_event): Remove.
11057 (gdb_event_xfree): New.
11058 (initialize_event_loop): New.
11059 (process_event): Use API from QUEUE.
11060 (wait_for_event): Likewise.
11061 * server.c (main): Call initialize_event_loop.
11062 * server.h (initialize_event_loop): Declare.
11063
5ae4861a
YQ
110642013-01-18 Yao Qi <yao@codesourcery.com>
11065
11066 * ax.h (struct eval_agent_expr_context): New.
11067 (gdb_eval_agent_expr): Update declaration.
11068 * ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
11069 TFRAME. Add new argument CTX.
11070 * server.h (struct eval_agent_expr_context): Declare.
11071 (agent_mem_read, agent_tsv_read): Update declaration.
11072 (agent_mem_read_string): Likewise.
11073 * tracepoint.c (eval_tracepoint_agent_expr): Remove.
11074 (add_traceframe_block): Add new argument TPOINT.
11075 Increase TPOINT->traceframe_usage.
11076 (do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
11077 eval_tracepoint_agent_expr.
11078 (condition_true_at_tracepoint): Likewise.
11079 (agent_mem_read): Remove argument TFRAME. Add argument CTX.
11080 (agent_mem_read_string, agent_tsv_read): Likewise.
11081
85e00e85
YQ
110822013-01-16 Yao Qi <yao@codesourcery.com>
11083
11084 * linux-low.c (linux_resume_one_lwp): Don't check
11085 'lwp->bp_reinsert != 0'.
11086
4039cf45
JB
110872013-01-07 Joel Brobecker <brobecker@adacore.com>
11088 Pedro Alves <palves@redhat.com>
11089
11090 * lynx-low.c (ptrace_request_to_str): Define a temporary
11091 macro and use it to simplify this function's implementation.
11092
9044dee2
JB
110932013-01-07 Joel Brobecker <brobecker@adacore.com>
11094
11095 * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
11096 sets errno.
11097
e6352c8f
JB
110982013-01-07 Joel Brobecker <brobecker@adacore.com>
11099
11100 * configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
11101
50681a27
JB
111022013-01-07 Joel Brobecker <brobecker@adacore.com>
11103
11104 * configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
11105
3f6e77ef
JB
111062013-01-07 Joel Brobecker <brobecker@adacore.com>
11107
11108 * lynx-low.c (lynx_resume): Use the resume_info parameter
11109 to determine the ptid for the lynx_ptrace call, unless
11110 it is equal to minus_one_ptid, in which case we use the
11111 ptid of the current_inferior.
11112 (lynx_wait_1): After having received a thread create/exit
11113 event, resume the inferior's execution using the signaling
11114 thread's ptid, rather than the old ptid.
11115
7fda33ae
JB
111162013-01-07 Joel Brobecker <brobecker@adacore.com>
11117
11118 * lynx-low.c (lynx_resume): Delete variable ret.
11119
b9786c74
JB
111202013-01-01 Joel Brobecker <brobecker@adacore.com>
11121
11122 * gdbreplay.c (gdbreplay_version): Update copyright year.
11123 * server.c (gdbserver_version): Likewise.
11124
8b93d60f
JB
111252012-12-17 Joel Brobecker <brobecker@adacore.com>
11126
11127 * lynx-low.c (lynx_wait_1): Add debug trace before adding
11128 new thread.
11129
037335a7
JB
111302012-12-17 Joel Brobecker <brobecker@adacore.com>
11131
11132 * lynx-low.c (ptrace_request_to_str): Add handling for
11133 PTRACE_GETTRACESIG.
11134
52d4cbd8
JB
111352012-12-17 Joel Brobecker <brobecker@adacore.com>
11136
11137 * lynx-low.c (lynx_attach): Delete variable new_process.
11138
ab8f6ca9
JB
111392012-12-17 Joel Brobecker <brobecker@adacore.com>
11140
11141 * lynx-low.c (lynx_create_inferior): Delete variable
11142 new_process.
11143
78cbc024
JB
111442012-12-17 Joel Brobecker <brobecker@adacore.com>
11145
11146 * lynx-low.c (ptrace_request_to_str): Do not handle
11147 PTRACE_GETTHREADLIST if this macro does not exist.
11148
14a00470
YQ
111492012-12-15 Yao Qi <yao@codesourcery.com>
11150
11151 * Makefile.in (OBS): Add notif.o.
11152 * notif.c, notif.h: New.
11153 * server.c: Include "notif.h".
11154 (struct vstop_notif) <next>: Remove.
11155 <base>: New field.
11156 (queue_stop_reply): Update.
11157 (push_event, send_next_stop_reply): Remove.
11158 (discard_queued_stop_replies): Update.
11159 (notif_stop): New variable.
11160 (handle_v_stopped): Remove.
11161 (handle_v_requests): Don't call handle_v_stopped. Call
11162 handle_ack_notif instead.
11163 (queue_stop_reply_callback): Call notif_event_enque instead
11164 of queue_stop_reply.
11165 (handle_status): Don't call send_next_stop_reply, call
11166 notif_write_event instead.
11167 (kill_inferior_callback): Likewise.
11168 (detach_or_kill_inferior_callback): Likewise.
11169 (main): Call initialize_notif.
11170 (process_serial_event): Call QUEUE_is_empty.
11171 (handle_target_event): Call notif_push instead of push event.
11172 * server.h (push_event): Remove declaration.
11173
61c125b9
TT
111742012-12-10 Tom Tromey <tromey@redhat.com>
11175
11176 * Makefile.in (DEPMODE, DEPDIR, depcomp, COMPILE.pre)
11177 (COMPILE.post, COMPILE, POSTCOMPILE, IPAGENT_COMPILE): New
11178 macros.
11179 (.c.o): Rewrite.
11180 (ax-ipa.o, tracepoint-ipa.o, utils-ipa.o, format-ipa.o)
11181 (common-utils-ipa.o, remote-utils-ipa.o, regcache-ipa.o)
11182 (i386-linux-ipa.o, linux-i386-ipa.o, linux-amd64-ipa.o)
11183 (amd64-linux-ipa.o, ax.o): Rewrite.
11184 (event-loop.o, hostio.o, hostio-errno.o, inferiors.o, mem-break.o)
11185 (proc-service.o, regcache.o, remote-utils.o, server.o, target.o)
11186 (thread-db.o, tracepoint.o, utils.o, gdbreplay.o, dll.o): Remove.
11187 (signals.o, linux-procfs.o, linux-ptrace.o, common-utils.o, vec.o)
11188 (gdb_vecs.o, xml-utils.o, linux-osdata.o, ptid.o, buffer.o)
11189 (format.o, agent.o, vasprintf.o, vsnprintf.o): Rewrite.
11190 (i386-low.o, i387-fp.o, linux-low.o, linux-arm-low.o)
11191 (linux-bfin-low.o, linux-cris-low.o, linux-crisv32-low.o)
11192 (linux-ia64-low.o, linux-m32r-low.o, linux-mips-low.o)
11193 (linux-ppc-low.o, linux-s390-low.o, linux-sh-low.o)
11194 (linux-tic6x-low.o, linux-x86-low.o, linux-xtensa-low.o)
11195 (linux-tile-low.o, lynx-low.o, lynx-ppc-low.o, nto-low.o)
11196 (nto-x86-low.o, linux-low.o, win32-low.o, win32-arm-low.o)
11197 (win32-i386-low.o, spu-low.o, reg-arm.o, arm-with-iwmmxt.o)
11198 (arm-with-vfpv2.o, arm-with-vfpv3.o, arm-with-neon.o, reg-bfin.o)
11199 (reg-cris.o, reg-crisv32.o, i386.o, i386-linux.o, i386-avx.o)
11200 (i386-avx-linux.o, i386-mmx.o, i386-mmx-linux.o, reg-ia64.o)
11201 (reg-m32r.o, reg-m68k.o, reg-cf.o, mips-linux.o, mips-dsp-linux.o)
11202 (mips64-linux.o, mips64-dsp-linux.o, powerpc-32.o, powerpc-32l.o)
11203 (powerpc-altivec32l.o, powerpc-cell32l.o, powerpc-vsx32l.o)
11204 (powerpc-isa205-32l.o, powerpc-isa205-altivec32l.o)
11205 (powerpc-isa205-vsx32l.o, powerpc-e500l.o, powerpc-64l.o)
11206 (powerpc-altivec64l.o, powerpc-cell64l.o, powerpc-vsx64l.o)
11207 (powerpc-isa205-64l.o, powerpc-isa205-altivec64l.o)
11208 (powerpc-isa205-vsx64l.o, s390-linux32.o, s390-linux32v1.o)
11209 (s390-linux32v2.o, s390-linux64.o, s390-linux64v1.o)
11210 (s390-linux64v2.o, s390x-linux64.o, s390x-linux64v1.o)
11211 (s390x-linux64v2.o, tic6x-c64xp-linux.o, tic6x-c64x-linux.o)
11212 (tic6x-c62x-linux.o, reg-sh.o, reg-sparc64.o, reg-spu.o, amd64.o)
11213 (amd64-linux.o, amd64-avx.o, amd64-avx-linux.o, x32.o)
11214 (x32-linux.o, x32-avx.o, x32-avx-linux.o, reg-xtensa.o)
11215 (reg-tilegx.o): Remove.
11216 (all_object_files): New macro.
11217 Include .deps files.
11218 * aclocal.m4, configure: Rebuild.
11219 * acinclude.m4: Include depstand.m4, lead-dot.m4.
11220 * configure.ac: Invoke ZW_CREATE_DEPDIR,
11221 ZW_PROG_COMPILER_DEPENDENCIES. Compute GMAKE condition.
11222
e90e9ad9
TT
112232012-12-05 Tom Tromey <tromey@redhat.com>
11224
11225 PR gdb/14917:
11226 * server.h (current_insn_ptr, emit_error): Declare 'extern'.
11227
02d403bf 112282012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
11229
11230 * configure.ac: Check for linux/perf_event.h.
11231 * config.in: Regenerated.
11232 * configure: Regenerated.
11233
0270a750
PA
112342012-11-26 Maxime Villard <rustyBSD@gmx.fr>
11235
11236 * hostio.c (handle_readlink): Decrease buffer size
11237 parameter passed to readlink by one byte.
11238
8c29b58e
YQ
112392012-11-26 Yao Qi <yao@codesourcery.com>
11240
11241 * configure.ac (build_warnings): Append '-Wempty-body'.
11242 * configure: Regenerated.
11243 * linux-low.c (linux_create_inferior): Use braces for empty 'if'
11244 body.
11245
8bdce1ff
PM
112462012-11-15 Pierre Muller <muller@sourceware.org>
11247
11248 * configure.ac (AC_CHECK_HEADERS): Add wait.h header.
11249 * config.in: Regenerate.
11250 * configure: Regenerate.
11251 * linux-low.c: Use "gdb_stat.h" header instead of <sys/stat.h> header.
11252 Use "gdb_wait.h" header instead of <sys/wait.h> header.
11253 * lynx-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11254 * remote-utils.c: Use "gdb_stat.h" header instead of <sys/stat.h>
11255 header.
11256 * server.c: Remove HAVE_WAIT_H conditional. Use "gdb_wait.h" header
11257 instead of <sys/wait.h> header.
11258 * spu-low.c: Use "gdb_wait.h" header instead of <sys/wait.h> header.
11259
02d403bf 112602012-11-13 Markus Metzger <markus.t.metzger@intel.com>
3ba6ad0f
MM
11261
11262 * Makefile.in: (INTERNAL_CFLAGS): Add -DGDBSERVER
11263 (various make rules): Remove -DGDBSERVER
11264
fbd5db48
YQ
112652012-11-09 Yao Qi <yao@codesourcery.com>
11266
11267 * spu-low.c (current_ptid): Move it to ..
11268 * gdbthread.h: ... here. New.
11269 * remote-utils.c (read_ptid): Use macro 'current_ptid'.
11270 * server.c (myresume, process_serial_event): Likewise.
11271 * thread-db.c (thread_db_find_new_threads): Likewise.
11272 * tracepoint.c (run_inferior_command): Likewise.
11273
b3dc46ff
AB
112742012-10-01 Andrew Burgess <aburgess@broadcom.com>
11275
11276 * server.c (handle_search_memory_1): Include access length in
11277 warning message.
11278
07c04788
HPN
112792012-09-05 Michael Brandt <michael.brandt@axis.com>
11280
11281 * linux-crisv32-low.c: Fix compile errors.
11282
918d227b
YQ
112832012-09-04 Yao Qi <yao@codesourcery.com>
11284
11285 * tracepoint.c (cmd_qtsv): Adjust debug message.
11286 Don't check CUR_TPOINT.
11287
18c1b81a
YQ
112882012-08-28 Yao Qi <yao@codesourcery.com>
11289
11290 * ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
11291 * server.h: Include 'libiberty.h' and 'ansidecl.h'.
11292 (ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
11293 Remove declarations of xmalloc, xreallloc, xstrdup and
11294 freeargv.
11295 * Makefile.in (libiberty_h): New.
11296 (server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
11297 (linux-bfin-low.o): Append dependency 'libiberty.h'.
11298
dc82f37b
YQ
112992012-08-23 Yao Qi <yao@codesourcery.com>
11300
11301 * server.h: Remove declaration of 'xsnprintf'.
11302
406b1477
KS
113032012-08-22 Keith Seitz <keiths@redhat.com>
11304
11305 * server.h: Include build-gnulib-gbserver/config.h.
11306 * gdbreplay.c: Likewise.
11307
e6712ff1
DE
113082012-08-08 Doug Evans <dje@google.com>
11309
11310 * Makefile.in (SFILES): Add gdb_vecs.c.
11311 (OBS): Add gdb_vecs.o.
11312 (gdb_vecs_h, host_defs_h): New variables.
11313 (thread-db.o): Add $(gdb_vecs_h) dependency.
11314 (gdb_vecs.o): New rule.
11315 * thread-db.c: #include "gdb_vecs.h".
11316 (thread_db_load_search): Use a vector to iterate over path elements.
11317 Handle text appearing after "$pdir".
11318
11319 * configure.ac: Add check for strstr.
11320 * config.in: Regenerate.
11321 * configure: Regenerate.
11322
7c3270ae
UW
113232012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
11324
11325 * hostio.c (handle_pread): If pread fails, fall back to attempting
11326 lseek/read.
11327 (handle_pwrite): Likewise for pwrite.
11328
b62e2b27
UW
113292012-08-01 Ulrich Weigand <ulrich.weigand@linaro.org>
11330
11331 * linux-arm-low.c (arm_linux_hw_point_initialize): Distinguish
11332 between unsupported TYPE and unimplementable ADDR/LEN combination.
11333 (arm_insert_point): Act on new return value.
11334
78a99e91
PA
113352012-07-31 Pedro Alves <palves@redhat.com>
11336
11337 * server.c (process_point_options): Only skip tokens if we find
11338 one that is unrecognized. Don't treat 'X' specially while
11339 skipping unrecognized tokens.
11340
fcf303ab
UW
113412012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
11342
11343 * linux-arm-low.c (arm_linux_hw_point_initialize): Do not attempt
11344 to 4-byte-align HW breakpoint addresses for Thumb.
11345
7255706c
YQ
113462012-07-27 Yao Qi <yao@codesourcery.com>
11347
11348 PR remote/14161.
11349
11350 * server.h: Declare gdb_agent_about_to_close.
11351 * target.c (kill_inferior): Include "agent.h".
11352 New. Send command 'kill'.
11353 * target.h (kill_inferior): Removed macro.
11354 * tracepoint.c (gdb_agent_about_to_close): New.
11355 (gdb_agent_helper_thread): Handle command 'close'.
11356 Wait endlessly until the inferior stops.
11357 Install gdb_agent_remove_socket to atexit hook.
11358 (agent_socket_name): New static variable.
11359 (gdb_agent_socket_init): Replace local variable 'name' with
11360 'agent_socket_name'.
11361 (gdb_agent_remove_socket): New.
11362
5a3f286f
YQ
113632012-07-27 Yao Qi <yao@codesourcery.com>
11364
11365 * server.c (process_point_options): Stop at 'X' when parsing.
11366
961bd387
ME
113672012-07-19 Michael Eager <eager@eagercon.com>
11368
a261b8f5 11369 * i386-low.c (Z_packet_to_hw_type): Add Z_PACKET_HW_BP, translate
961bd387
ME
11370 to hw_execute.
11371 * linux-x86-low.c (x86_insert_point, x86_remove_point):
11372 Call i386_low_insert_watchpoint, i386_low_remove_watchpoint to add/del
11373 hardware breakpoint.
11374
aa7c7447
JK
113752012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
11376
11377 * gdbserver/linux-low.c (initialize_low): Call
11378 linux_ptrace_init_warnings.
11379
7f216e7c
DE
113802012-07-02 Doug Evans <dje@google.com>
11381
11382 * mem-break.c (gdb_no_commands_at_breakpoint): Fix cast from
11383 pointer to int.
11384
d3ce09f5
SS
113852012-07-02 Stan Shebs <stan@codesourcery.com>
11386
11387 * Makefile.in (WARN_CFLAGS_NO_FORMAT): Define.
11388 (ax.o): Add it to build rule.
11389 (ax-ipa.o): Ditto.
11390 (OBS): Add format.o.
11391 (IPA_OBS): Add format.o.
11392 * server.c (handle_query): Claim support for breakpoint commands.
11393 (process_point_options): Add command case.
11394 (process_serial_event): Leave running if there are printfs in
11395 effect.
11396 * mem-break.h (any_persistent_commands): Declare.
11397 (add_breakpoint_commands): Declare.
11398 (gdb_no_commands_at_breakpoint): Declare.
11399 (run_breakpoint_commands): Declare.
11400 * mem-break.c (struct point_command_list): New struct.
11401 (struct breakpoint): New field command_list.
11402 (any_persistent_commands): New function.
11403 (add_commands_to_breakpoint): New function.
11404 (add_breakpoint_commands): New function.
11405 (gdb_no_commands_at_breakpoint): New function.
11406 (run_breakpoint_commands): New function.
11407 * linux-low.c (linux_wait_1): Test for and run breakpoint commands
11408 locally.
11409 * ax.c: Include format.h.
11410 (ax_printf): New function.
11411 (gdb_eval_agent_expr): Add printf opcode.
11412
2f8f6aed
YQ
114132012-06-13 Yao Qi <yao@codesourcery.com>
11414
11415 * server.c (start_inferior): Remove duplicated writes to fields
11416 'last_resume_kind' and 'last_status' of 'current_inferior'.
11417
0c9070b3
YQ
114182012-06-12 Yao Qi <yao@codesourcery.com>
11419 Pedro Alves <palves@redhat.com>
11420
11421 * linux-low.c (linux_set_resume_request): Simplify predicate. Add
11422 comment.
11423 * server.c (handle_v_cont): Extend comment.
11424
c52daf70
YQ
114252012-06-11 Yao Qi <yao@codesourcery.com>
11426
11427 * linux-low.c (linux_attach): Add 'static'.
11428
d38bbb0a
YQ
114292012-06-06 Yao Qi <yao@codesourcery.com>
11430
11431 * ax.c (gdb_eval_agent_expr): Print `top' in hex.
11432
89dc0afd
JK
114332012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11434
11435 Fix gcc -flto compilation warning.
11436 * server.c (main): Make variable multi_mode and attach volatile.
11437
75f62ce7
TJB
114382012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11439
11440 * linux-low.c (get_r_debug): Disable code using DT_MIPS_RLD_MAP
11441 if the platform doesn't know about it.
11442
65f479b6
PA
114432012-05-30 Jeff Kenton <jkenton@tilera.com>
11444
11445 * Makefile.in (SFILES): Add linux-tile-low.c.
11446 (linux-tile-low.o, reg-tilegx.o, reg-tilegx.c): New rules.
11447 * configure.srv: Handle tilegx-*-linux*.
11448 * linux-tile-low.c: New file.
11449
0c5bf5a9
JK
114502012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11451
11452 * linux-low.c (linux_qxfer_libraries_svr4): Return -1 if R_DEBUG is -1.
11453
a493e3e2
PA
114542012-05-24 Pedro Alves <palves@redhat.com>
11455
11456 PR gdb/7205
11457
43aaf8b6 11458 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 11459
2ea28649
PA
114602012-05-24 Pedro Alves <palves@redhat.com>
11461
11462 PR gdb/7205
11463
11464 Replace target_signal with gdb_signal throughout.
11465
8d409d16
MR
114662012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
11467
11468 * linux-low.c (linux_store_registers): Avoid the copying sequence
11469 when no data has been retrieved by ptrace.
11470
23512c01
MGD
114712012-05-22 Will Deacon <will.deacon@arm.com>
11472
11473 * linux-low (__UCLIBC__ && !(__UCLIBC_HAS_MMU__ || __ARCH_HAS_MMU__)):
11474 Include asm/ptrace.h.
11475 (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define only if not
11476 already defined.
11477
4934b29e
MR
114782012-05-21 Maciej W. Rozycki <macro@codesourcery.com>
11479
11480 * linux-low.c (linux_store_registers): Don't re-retrieve data
11481 with ptrace that has already been obtained from /proc. Always
11482 copy any data retrieved with ptrace to the buffer supplied.
11483
bde24c0a
PA
114842012-05-11 Yao Qi <yao@codesourcery.com>
11485 Pedro Alves <palves@redhat.com>
11486
11487 * linux-low.c (enum stopping_threads_kind): New.
11488 (stopping_threads): Change type to `enum stopping_threads_kind'.
11489 (handle_extended_wait): If stopping and suspending threads, leave
11490 the new_lwp suspended too.
11491 (linux_wait_for_event): Adjust.
11492 (stop_all_lwps): Set `stopping_threads' to
11493 STOPPING_AND_SUSPENDING_THREADS or STOPPING_THREADS depending on
11494 whether we're suspending threads or just stopping them. Assert no
11495 recursion happens.
11496
623b6bdf
YQ
114972012-04-29 Yao Qi <yao@codesourcery.com>
11498
11499 * server.h: Move some code to ...
11500 * gdbthread.h: ... here. New.
11501 * Makefile.in (inferiors.o, regcache.o): Depends on gdbthread.h
11502 (remote-utils.o, server.o, target.o tracepoint.o): Likewise.
11503 (nto-low.o, win32-low.o): Likewise.
11504 * inferiors.c, linux-low.h, nto-low.c: Include gdbthread.h.
11505 * regcache.c, remote-utils.c, server.c: Likewise.
11506 * target.c, tracepoint.c, win32-low.c: Likewise.
11507
f15f9948
TJB
115082012-04-24 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11509
11510 * linux-low.h (PTRACE_ARG3_TYPE): Move macro from linux-low.c.
11511 (PTRACE_ARG4_TYPE): Likewise.
11512 (PTRACE_XFER_TYPE): Likewise.
11513 * linux-arm-low.c (arm_prepare_to_resume): Cast third argument of
11514 ptrace to PTRACE_ARG3_TYPE.
11515 * linux-low.c (PTRACE_ARG3_TYPE): Move macro to linux-low.h.
11516 (PTRACE_ARG4_TYPE): Likewise.
11517 (PTRACE_XFER_TYPE): Likewise.
11518 (linux_detach_one_lwp): Cast fourth argument of
11519 ptrace to long then PTRACE_ARG4_TYPE.
11520 (regsets_fetch_inferior_registers): Cast third argument of
11521 ptrace to long then PTRACE_ARG3_TYPE.
11522 (regsets_store_inferior_registers): Likewise.
11523
38ea300a
PA
115242012-04-20 Pedro Alves <palves@redhat.com>
11525
11526 * configure: Regenerate.
11527
c971b7fa
PA
115282012-04-19 Pedro Alves <palves@redhat.com>
11529
43aaf8b6 11530 * Makefile.in (GNULIB_BUILDDIR): New.
c971b7fa 11531 (LIBGNU, INCGNU, GNULIB_H): Adjust.
43aaf8b6
PA
11532 (SUBDIRS, CLEANDIRS, REQUIRED_SUBDIRS): New.
11533 (all, install-only, uninstall, clean-info, all-lib, clean): No
11534 longer pass GNULIB_FLAGS_TO_PASS. Use subdir_do.
11535 (maintainer-clean realclean distclean): Use subdir_do.
11536 (subdir_do): New.
11537 (gnulib/import/Makefile): Adjust. Replace gnulib/import with
c971b7fa 11538 $(GNULIB_BUILDDIR). Don't pass argument to config.status.
43aaf8b6
PA
11539 * acinclude.m4: Include acx_configure_dir.m4.
11540 * configure.ac: Remove gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE
11541 calls. Call AC_PROG_RANLIB. Configure gnulib using
11542 ACX_CONFIGURE_DIR.
11543 (GNULIB): New.
11544 (GNULIB_STDINT_H): Adjust.
11545 (AC_OUTPUT): Don't output gnulib/Makefile anymore.
11546 * gdbreplay.c: Include build-gnulib/config.h.
11547 * server.h: Likewise.
11548 * aclocal.m4: Regenerate.
11549 * config.in: Regenerate.
11550 * configure: Regenerate.
c971b7fa 11551
809277f8
PA
115522012-04-19 Pedro Alves <palves@redhat.com>
11553
11554 * Makefile.in (LIBGNU, INCGNU): Adjust.
11555 (GNULIB_FLAGS_TO_PASS, GNULIB_H): Adjust.
11556 (all, install-only, uninstall, clean-info, all-lib, clean)
11557 (maintainer-clean, Makefile, gnulib/Makefile): Adjust.
11558 * configure.ac: Adjust AC_OUTPUT output.
11559 * aclocal.m4: Regenerate.
11560 * configure: Regenerate.
11561
fd9bb8b8
PA
115622012-04-19 Pedro Alves <palves@redhat.com>
11563
11564 * Makefile.in (generated_files): New.
11565 (server_h): Remove the explicit dependency on config.h, and depend
11566 on $generated_files.
11567
1c298c66
PA
115682012-04-19 Pedro Alves <palves@redhat.com>
11569
11570 * Makefile.in (INCGNU): Add -Ignulib.
11571
57c4b50b
PA
115722012-04-19 Pedro Alves <palves@redhat.com>
11573
11574 * Makefile.in (GNULIB_INCLUDE_DIR): Rename to ...
11575 (INCGNU): ... this, and spell out -I here.
11576 (GNULIB_LIB): Rename to ...
11577 (LIBGNU): ... this.
11578 (INCLUDE_CFLAGS, gdbserver$(EXEEXT), $(GNULIB_LIB) rule): Adjust.
11579
1030e047
PA
115802012-04-19 Pedro Alves <palves@redhat.com>
11581
11582 * config.in: Regenerate.
11583
447d4319
PA
115842012-04-19 Pedro Alves <palves@redhat.com>
11585
11586 * configure.ac: Remove AC_CHECK_DECLS check for memmem.
11587 * server.h (memmem): Remove declaration.
11588 * config.in: Regenerate.
11589 * configure: Regenerate.
11590
aad9eab9
YQ
115912012-04-19 Yao Qi <yao@codesourcery.com>
11592
11593 * Makefile.in (SFILES): Add common/vec.c.
11594 (OBS): Add vec.o.
11595 (vec.o): New rule.
11596
3e10640f
YQ
115972012-04-19 Yao Qi <yao@codesourcery.com>
11598
11599 * remote-utils.c (prepare_resume_reply): Replace with macro
11600 target_core_of_thread.
11601 * server.c (handle_qxfer_threads_proper): Likewise.
11602 * target.h (traget_core_of_thread): New macro.
11603
71622373
PA
116042012-04-18 Pedro Alves <palves@redhat.com>
11605
11606 * aclocal.m4: Regenerate.
11607 * configure: Regenerate.
11608
80d26939
YQ
116092012-04-16 Yao Qi <yao@codesourcery.com>
11610
11611 * tracepoint.c (cmd_qtstart): Download tracepoints even when they are
11612 duplicated on address.
11613
42476b70
YQ
116142012-04-16 Yao Qi <yao@codesourcery.com>
11615
11616 * tracepoint.c (COPY_FIELD_TO_BUF): New macro.
11617 (struct tracepoint_action_ops) <send>: New field.
11618 (m_tracepoint_action_send, r_tracepoint_action_send): New.
11619 (agent_expr_send, x_tracepoint_action_send): New.
11620 (l_tracepoint_action_send): New.
11621 (cmd_qtdp): Download and install tracepoint
11622 according to `use_agent'.
11623 (run_inferior_command): Add one more parameter `len'.
11624 Update callers.
11625 (tracepoint_send_agent): New.
11626 (cmd_qtdp, cmd_qtstart): Call tracepoint_send_agent.
11627
7bc83639
YQ
116282012-04-16 Yao Qi <yao@codesourcery.com>
11629
11630 * tracepoint.c (download_tracepoints): Moved to ...
11631 (cmd_qtstart): ... here.
11632
5f18041e
YQ
116332012-04-14 Yao Qi <yao@codesourcery.com>
11634
11635 * tracepoint.c: Include inttypes.h.
11636 (struct collect_memory_action): Use sized types.
11637 (struct tracepoint): Likewise.
11638 (cmd_qtdp, stop_tracing): Update print specifiers.
11639 (cmd_qtp, response_tracepoint): Likewise.
11640 (collect_data_at_tracepoint): Likewise.
11641 (collect_data_at_step): Likewise.
11642
55a8c076
YQ
116432012-04-14 Yao Qi <yao@codesourcery.com>
11644
11645 Import gnulib module inttypes.
11646 * aclocal.m4, config.in, configure: Regenerated.
11647
dc750257
YQ
116482012-04-14 Yao Qi <yao@codesourcery.com>
11649
11650 * Makefile.in (maintainer-clean, realclean, distclean): Remove
11651 Makefile and config.status at last.
11652
0ab5faf9
YQ
116532012-04-13 Yao Qi <yao@codesourcery.com>
11654
11655 * tracepoint.c: Include stdint.h unconditionally.
11656
18f5fd81
TJB
116572012-04-13 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11658
11659 * acinclude.m4 (GDBSERVER_HAVE_THREAD_DB_TYPE): New macro based
11660 on BFD_HAVE_SYS_PROCFS_TYPE.
11661 * configure.ac: Look for lwpid_t and psaddr_t in libthread_db.h.
11662 * configure: Regenerate.
11663 * config.in: Likewise.
11664
4d47af5c
L
116652012-04-13 H.J. Lu <hongjiu.lu@intel.com>
11666
11667 * Makefile.in (clean): Also remove x32.c x32-linux.c
11668 x32-avx.c x32-avx-linux.c.
11669 (x32.o): New target.
11670 (x32.c): Likewise.
11671 (x32-linux.o): Likewise.
11672 (x32-linux.c): Likewise.
11673 (x32-avx.o): Likewise.
11674 (x32-avx.c): Likewise.
11675 (x32-avx-linux.o): Likewise.
11676 (x32-avx-linux.c): Likewise.
11677
11678 * configure.srv (srv_amd64_regobj): Add x32.o x32-avx.o.
11679 (srv_amd64_linux_regobj): Add x32-linux.o x32-avx-linux.o.
11680 (srv_i386_64bit_xmlfiles): Add i386/x32-core.xml.
11681 (srv_amd64_xmlfiles): Add i386/x32.xml i386/x32-avx.xml.
11682 (srv_amd64_linux_xmlfiles): Add i386/x32-linux.xml
11683 i386/x32-avx-linux.xml.
11684
11685 * linux-x86-low.c (init_registers_x32_linux): New prototype.
11686 (init_registers_x32_avx_linux): Likwise.
11687 (x86_linux_update_xmltarget): Call init_registers_x32_linux
11688 or init_registers_x32_avx_linux if linux_is_elf64 is false.
11689
ecedbe58
PA
116902012-04-13 Pedro Alves <palves@redhat.com>
11691
11692 * Makefile.in (GNULIB_FLAGS_TO_PASS): New.
11693 (FLAGS_TO_PASS): Don't change or set $top_srcdir, $srcdir and VPATH.
11694 (all, uninstall, clean-info, all-lib, clean, maintainer-clean)
11695 (realclean, distclean): Explicitly pass $GNULIB_FLAGS_TO_PASS to
11696 the sub-make.
11697
c92b5177
L
116982012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11699
11700 * linux-x86-low.c (compat_x32_clock_t): New.
11701 (compat_x32_siginfo_t): Likewise.
11702 (compat_x32_siginfo_from_siginfo): Likewise.
11703 (siginfo_from_compat_x32_siginfo): Likewise.
11704 (linux_is_elf64): Likewise.
11705 (x86_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
11706 and siginfo_from_compat_x32_siginfo for x32.
11707 (x86_arch_setup): Set linux_is_elf64.
11708
214d508e
L
117092012-04-12 H.J. Lu <hongjiu.lu@intel.com>
11710
11711 PR gdb/13969
11712 * linux-low.c (linux_pid_exe_is_elf_64_file): Also return the
11713 e_machine field.
11714 (linux_qxfer_libraries_svr4): Update call to elf_64_file_p.
11715 * linux-low.h (linux_pid_exe_is_elf_64_file): Updated.
11716 * linux-x86-low.c (x86_arch_setup): Check if GDBserver is
11717 compatible with process.
11718
c9a1864a
YQ
117192012-04-12 Yao Qi <yao@codesourcery.com>
11720
11721 * Makefile.in: Define abs_top_srcdir and abs_srcdir.
11722 (INCLUDE_CFLAGS): Append GNULIB_INCLUDE_DIR.
11723 (install-only, install-info, clean): Handle sub dir gnulib.
11724 (all-lib, am--refresh): New targets.
11725 (memmem.o): Remove target.
11726 * configure.ac: Remove AC_CONFIG_LIBOBJ_DIR.
11727 Invoke gl_EARLY. Invoke AC_CHECK_PROGS for make.
11728 (AC_REPLACE_FUNCS): Remove memmem.
11729 Invoke gl_INIT and AM_INIT_AUTOMAKE.
11730 (AC_OUTPUT): Generate Makefile in gnulib/.
11731 * aclocal.m4, config.in, configure: Regenerated.
11732
367ba2c2
MR
117332012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
11734
11735 * linux-low.c (get_r_debug): Handle DT_MIPS_RLD_MAP.
11736
9d236627
PA
117372012-04-05 Pedro Alves <palves@redhat.com>
11738
11739 -Werror=strict-aliasing
11740
11741 * spu-low.c (parse_spufs_run): Avoid dereferencing type-punned
11742 pointer.
11743
111217b3
PA
117442012-04-04 Pedro Alves <palves@redhat.com>
11745
11746 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
11747 (sparc_store_gregset_from_stack, sparc_store_gregset)
11748 (sparc_breakpoint_at): Fix formatting.
11749
8365dcf5
TJB
117502012-03-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
11751
11752 * configure.ac: Check whether Elf32_auxv_t and Elf64_auxv_t
11753 are available.
11754 * linux-low.c [HAVE_ELF32_AUXV_T] (Elf32_auxv_t): Add typedef.
11755 [HAVE_ELF64_AUXV_T] (Elf64_auxv_t): Likewise.
11756 * config.in: Regenerate.
11757 * configure: Likewise.
11758
689cc2ae
PA
117592012-03-29 Pedro Alves <palves@redhat.com>
11760
11761 * linux-low.c (regsets_store_inferior_registers) [__sparc__]:
11762 Correct ptrace arguments.
11763
c14dfd32
PA
117642012-03-28 Pedro Alves <palves@redhat.com>
11765
11766 * linux-ia64-low.c (ia64_regmap): Map IA64_EC_REGNUM to PT_AR_EC.
11767 (IA64_GR0_REGNUM, IA64_FR0_REGNUM)
11768 (IA64_FR1_REGNUM): New defines.
11769 (ia64_fetch_register): New.
11770 (the_low_target): Install it.
11771 * linux-low.h (struct linux_target_ops) <fetch_register>: New
11772 field.
11773 * linux-low.c (linux_fetch_registers): Try the
11774 the_low_target.fetch_register hook first.
11775
11776 * linux-arm-low.c (the_low_target): Adjust.
11777 * linux-bfin-low.c (the_low_target): Adjust.
11778 * linux-cris-low.c (the_low_target): Adjust.
11779 * linux-crisv32-low.c (the_low_target): Adjust.
11780 * linux-m32r-low.c (the_low_target): Adjust.
11781 * linux-m68k-low.c (the_low_target): Adjust.
11782 * linux-mips-low.c (the_low_target): Adjust.
11783 * linux-ppc-low.c (the_low_target): Adjust.
11784 * linux-s390-low.c (the_low_target): Adjust.
11785 * linux-sh-low.c (the_low_target): Adjust.
11786 * linux-sparc-low.c (the_low_target): Adjust.
11787 * linux-tic6x-low.c (the_low_target): Adjust.
11788 * linux-x86-low.c (the_low_target): Adjust.
11789 * linux-xtensa-low.c (the_low_target): Adjust.
11790
63c88e13
PA
117912012-03-26 Pedro Alves <palves@redhat.com>
11792
11793 * server.c (handle_qxfer_libraries): Don't bail early if
11794 the_target->qxfer_libraries_svr4 is not NULL.
11795
fb723180
PA
117962012-03-26 Pedro Alves <palves@redhat.com>
11797
11798 * linux-low.c (linux_qxfer_libraries_svr4): Fix pasto in comment.
11799
0afae3cf
PA
118002012-03-23 Pedro Alves <palves@redhat.com>
11801
11802 * linux-low.c (linux_qxfer_libraries_svr4): Terminate the
11803 "library-list-svr4" element's start tag when the the DSO list is
11804 empty.
11805
485f1ee4
PA
118062012-03-23 Pedro Alves <palves@redhat.com>
11807
11808 * linux-low.c (read_one_ptr): Read the inferior's pointer through
11809 a variable whose type size is the same as the inferior's pointer
11810 size.
11811
a5362b9a
TS
118122012-03-21 Thomas Schwinge <thomas@codesourcery.com>
11813
11814 * linux-arm-low.c (arm_stopped_by_watchpoint): Use siginfo_t instead of
11815 struct siginfo.
11816 * linux-low.c (siginfo_fixup, linux_xfer_siginfo): Likewise.
11817 * linux-x86-low.c (x86_siginfo_fixup): Likewise.
11818 * linux-low.h: Include <signal.h>.
11819 (struct siginfo): Remove forward declaration.
11820 (struct linux_target_ops) <siginfo_fixup>: Use siginfo_t instead of
11821 struct siginfo.
11822
d226c142
MF
118232012-03-21 Mike Frysinger <vapier@gentoo.org>
11824
11825 * .gitignore: Ignore more files.
11826
122f36ef
PA
118272012-03-19 Pedro Alves <palves@redhat.com>
11828 Jan Kratochvil <jan.kratochvil@redhat.com>
11829
11830 * server.c (cont_thread, general_thread): Add describing comments.
11831 (start_inferior): Clear `cont_thread'.
11832 (handle_v_cont): Don't set `cont_thread' if resuming all threads
11833 of a process.
11834
fc3e5175
YQ
118352012-03-15 Yao Qi <yao@codesourcery.com>
11836
11837 * tracepoint.c (install_tracepoint): Move duplicated tracepoint
11838 handling to ...
11839 (cmd_qtdp): ... here.
11840
8d0d92cd
YQ
118412012-03-15 Yao Qi <yao@codesourcery.com>
11842
11843 * tracepoint.c (struct tracepoint_action_ops): New.
11844 (struct tracepoint_action) [!IN_PROCESS_AGENT] <ops>: New field.
11845 (m_tracepoint_action_download): New.
11846 (r_tracepoint_action_download): New.
11847 (x_tracepoint_action_download): New.
11848 (l_tracepoint_action_download): New.
11849 (add_tracepoint_action): Install `action->ops' according type.
11850 (download_tracepoint_1): Move code `download' function pointer
11851 of various tracepoint_action_ops.
11852
87b0bb13
JK
118532012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11854
11855 * linux-low.c (linux_attach_lwp_1): New variable buffer. Call
11856 linux_ptrace_attach_warnings.
11857
5f572dec
JK
118582012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
11859
11860 * Makefile.in (linux-ptrace.o): New.
11861 * configure.srv (arm*-*-linux*, bfin-*-*linux*, crisv32-*-linux*)
11862 (cris-*-linux*, i[34567]86-*-linux*, ia64-*-linux*, m32r*-*-linux*)
11863 (m68*-*-linux*, m68*-*-uclinux*, mips*-*-linux*, powerpc*-*-linux*)
11864 (s390*-*-linux*, sh*-*-linux*, sparc*-*-linux*, tic6x-*-uclinux)
11865 (x86_64-*-linux*, xtensa*-*-linux*): Add linux-ptrace.o to SRV_TGTOBJ
11866 of these targets.
11867 * linux-low.c (linux_attach_lwp_1): Remove redundent else clause.
11868
f4647387
YQ
118692012-03-08 Yao Qi <yao@codesourcery.com>
11870 Pedro Alves <palves@redhat.com>
11871
11872 Fix PR server/13392.
11873 * linux-x86-low.c (amd64_install_fast_tracepoint_jump_pad): Check
11874 offset of JMP insn.
11875 * tracepoint.c (remove_tracepoint): New.
11876 (cmd_qtdp): Call remove_tracepoint when failed to install.
11877
9b224c5e
PA
118782012-03-07 Pedro Alves <palves@redhat.com>
11879
11880 * linux-low.c (get_detach_signal): New.
11881 (linux_detach_one_lwp): Get rid of a pending SIGSTOP with SIGCONT.
11882 Pass on pending signals to PTRACE_DETACH. Check the result of the
11883 ptrace call.
11884 * server.c (program_signals, program_signals_p): New.
11885 (handle_general_set): Handle QProgramSignals.
11886 * server.h (program_signals, program_signals_p): Declare.
11887
e237a7e2
JK
118882012-03-05 Pedro Alves <palves@redhat.com>
11889 Jan Kratochvil <jan.kratochvil@redhat.com>
11890
11891 * linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
11892 New comment why.
11893
5808517f
YQ
118942012-03-03 Yao Qi <yao@codesourcery.com>
11895
11896 * tracepoint.c (tracepoint_look_up_symbols): Update call to
11897 agent_look_up_symbols.
11898
58b4daa5
YQ
118992012-03-03 Yao Qi <yao@codesourcery.com>
11900
11901 * Makefile.in (linux-low.o): Keep dependence on agent.h.
11902 (linux-x86-low.o): Likewise.
11903 * server.h: Remove in_process_agent_loaded.
11904 * tracepoint.c (in_process_agent_loaded): Removed. Moved it
11905 common/agent.c.
11906 Update callers.
11907
8ffcbaaf
YQ
119082012-03-03 Yao Qi <yao@codesourcery.com>
11909
11910 * tracepoint.c (gdb_agent_capability): New global.
11911 (in_process_agent_loaded_ust): Renamed to
11912 `in_process_agent_supports_ust'.
11913 Update callers.
11914 (in_process_agent_supports_ust): Call agent_capability_check.
11915 (clear_installed_tracepoints): Assert that agent supports
11916 agent.
11917
d1feda86
YQ
119182012-03-03 Yao Qi <yao@codesourcery.com>
11919
11920 * linux-low.c (linux_supports_agent): New.
11921 (linux_target_ops): Initialize field `supports_agent' with
11922 linux_supports_agent.
11923 * target.h (struct target_ops) <supports_agent>: New.
11924 (target_supports_agent): New macro.
11925 * server.c (handle_general_set): Handle packet 'QAgent'.
11926 (handle_query): Send `QAgent+'.
11927 * Makefile.in (server.o): Depends on agent.h.
11928
2fa291ac
YQ
119292012-03-03 Yao Qi <yao@codesourcery.com>
11930
11931 * Makefile.in (OBS): Add agent.o.
11932 Add new rule for agent.o.
11933 Track dependence of tracepoint.c on agent.h.
11934 * tracepoint.c (run_inferior_command_1):
11935 (run_inferior_command): Call agent_run_command.
11936 (gdb_ust_connect_sync_socket): Deleted. Move it to
11937 common/agent.c.
11938 (resume_thread, stop_thread): Likewise.
11939 (gdb_ust_socket_init): Renamed to ...
11940 (gdb_agent_socket_init): ... New.
11941 (gdb_ust_thread): Renamed to ...
11942 (gdb_agent_helper_thread): ... New.
11943 (gdb_ust_init): Move some code to ...
11944 (gdb_agent_init): ... here. New.
11945 [HAVE_UST]: Call gdb_ust_init.
11946 (initialize_tracepoint_ftlib): Call gdb_agent_init.
11947 * configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
11948 * config.in, configure: Regenerated.
11949
05044653
PA
119502012-03-02 Pedro Alves <palves@redhat.com>
11951
11952 * inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
11953 * linux-low.c (struct simple_pid_list): New.
11954 (stopped_pids): New a struct simple_pid_list pointer.
11955 (add_to_pid_list, pull_pid_from_list): New.
11956 (handle_extended_wait): Don't assume the first signal new children
11957 report is SIGSTOP. Adjust call to pull_pid_from_list.
11958 (linux_wait_for_lwp): Adjust.
11959
8d00225b
YQ
119602012-03-02 Yao Qi <yao@codesourcery.com>
11961
11962 * tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
11963 debug log.
11964
19560ba5
YQ
119652012-03-02 Yao Qi <yao@codesourcery.com>
11966
11967 * tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
11968 `stop_pc' and `tpoint'. Update caller.
11969
1faeff08
MR
119702012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
11971
11972 * linux-low.h (linux_target_ops): Add regset_bitmap member.
11973 * linux-low.c (use_linux_regsets): New macro.
11974 [!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
11975 [!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
11976 (linux_register_in_regsets): New function.
11977 (usr_fetch_inferior_registers): Skip registers covered by
11978 regsets.
11979 (usr_store_inferior_registers): Likewise.
11980 (usr_fetch_inferior_registers): New macro.
11981 (usr_store_inferior_registers): Likewise.
11982 (linux_fetch_registers): Handle mixed regset/non-regset targets.
11983 (linux_store_registers): Likewise.
11984 * linux-mips-low.c (init_registers_mips_dsp_linux): New
11985 prototype.
11986 (init_registers_mips64_dsp_linux): Likewise.
11987 (init_registers_mips_linux): New macro.
11988 (init_registers_mips_dsp_linux): Likewise.
11989 (mips_dsp_num_regs): Likewise.
11990 (DSP_BASE, DSP_CONTROL): New fallback macros.
11991 (mips_base_regs): New macro.
11992 (mips_regmap): Use it. Fix the size.
11993 (mips_dsp_regmap): New variable.
11994 (mips_dsp_regset_bitmap): Likewise.
11995 (mips_arch_setup): New function.
11996 (mips_cannot_fetch_register): Use the_low_target.regmap rather
11997 than mips_regmap.
11998 (mips_cannot_store_register): Likewise.
11999 (the_low_target): Update .arch_setup, .num_regs and .regmap
12000 initializers. Add .regset_bitmap initializer.
12001 * linux-arm-low.c (the_low_target): Add .regset_bitmap
12002 initializer.
12003 * linux-bfin-low.c (the_low_target): Likewise.
12004 * linux-cris-low.c (the_low_target): Likewise.
12005 * linux-crisv32-low.c (the_low_target): Likewise.
12006 * linux-ia64-low.c (the_low_target): Likewise.
12007 * linux-m32r-low.c (the_low_target): Likewise.
12008 * linux-m68k-low.c (the_low_target): Likewise.
12009 * linux-ppc-low.c (the_low_target): Likewise.
12010 * linux-s390-low.c (the_low_target): Likewise.
12011 * linux-sh-low.c (the_low_target): Likewise.
12012 * linux-sparc-low.c (the_low_target): Likewise.
12013 * linux-tic6x-low.c (the_low_target): Likewise.
12014 * linux-x86-low.c (the_low_target): Likewise.
12015 * linux-xtensa-low.c (the_low_target): Likewise.
12016 * configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
12017 mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
12018 mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
12019 srv_xmlfiles.
12020 * Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
12021 (mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
12022
c03e6ccc
YQ
120232012-02-29 Yao Qi <yao@codesourcery.com>
12024 Pedro Alves <palves@redhat.com>
12025
12026 * linux-low.c: (linux_wait_1): Call unsuspend_all_lwps when
12027 `step_over_finished' is true.
12028
644cebc9
PA
120292012-02-27 Pedro Alves <palves@redhat.com>
12030
12031 * linux-low.c (pid_is_stopped): Delete, moved to common/.
12032 (linux_attach_lwp_1): Adjust to use linux_proc_pid_is_stopped.
12033
c14d7ab2
PA
120342012-02-27 Pedro Alves <palves@redhat.com>
12035
12036 PR server/9684
12037 * linux-low.c (pid_is_stopped): New.
12038 (linux_attach_lwp_1): Handle attaching to 'T (stopped)' processes.
12039
412c89dd
LM
120402012-02-25 Luis Machado <lgustavo@codesourcery.com>
12041
12042 * mem-break.c (clear_gdb_breakpoint_conditions): Fix de-allocation
12043 of conditions.
12044
b745defe
MR
120452012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
12046
12047 * linux-mips-low.c (mips_regmap): Correct the index of $f9.
12048
9f3a5c85
LM
120492012-02-24 Luis Machado <lgustavo@codesourcery>
12050
12051 * server.c (handle_query): Advertise support for target-side
12052 breakpoint condition evaluation.
12053 (process_point_options): New function.
12054 (process_serial_event): When inserting a breakpoint, check for
12055 a target-side condition that should be evaluated.
12056
12057 * mem-break.c: Include regcache.h and ax.h.
12058 (point_cond_list_t): New data structure.
12059 (breakpoint) <cond_list>: New field.
12060 (find_gdb_breakpoint_at): Make non-static.
12061 (delete_gdb_breakpoint_at): Clear any target-side
12062 conditions.
12063 (clear_gdb_breakpoint_conditions): New function.
12064 (add_condition_to_breakpoint): Likewise.
12065 (add_breakpoint_condition): Likewise.
12066 (gdb_condition_true_at_breakpoint): Likewise.
12067 (gdb_breakpoint_here): Return result directly instead
12068 of going through a local variable.
12069
12070 * mem-break.h (find_gdb_breakpoint_at): New prototype.
12071 (clear_gdb_breakpoint_conditions): Likewise.
12072 (add_breakpoint_condition): Likewise.
12073 (gdb_condition_true_at_breakpoint): Likewise.
12074
12075 * linux-low.c (linux_wait_1): Evaluate target-side breakpoint condition.
12076 (need_step_over_p): Take target-side breakpoint condition into
12077 consideration.
12078
5e1dc496
LM
120792012-02-24 Luis Machado <lgustavo@codesourcery>
12080
12081 * server.h: Include tracepoint.h.
12082 (agent_mem_read, agent_get_trace_state_variable_value,
12083 agent_set_trace_state_variable_value,
12084 agent_tsv_read, agent_mem_read_string, get_get_tsv_func_addr,
12085 get_set_tsv_func_addr): New prototypes.
12086
12087 * ax.h: New include file.
12088 * ax.c: New source file.
12089
12090 * tracepoint.c: Include ax.h.
12091 (gdb_agent_op, gdb_agent_op_names, gdb_agent_op_sizes,
12092 agent_expr, eval_result_type): Move to ax.h.
12093 (parse_agent_expr): Rename to ...
12094 (gdb_parse_agent_expr): ... this, make it non-static and move
12095 to ax.h.
12096 (unparse_agent_expr) Rename to ...
12097 (gdb_unparse_agent_expr): ... this, make it non-static and move
12098 to ax.h.
12099 (eval_agent_expr): Rename to ...
12100 (eval_tracepoint_agent_expr): ... this.
12101 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Remove
12102 forward declarations.
12103 (add_tracepoint_action): Call gdb_parse_agent_expr (...).
12104 (agent_get_trace_state_variable_value): New function.
12105 (agent_set_trace_state_variable_value): New function.
12106 (cmd_qtdp): Call gdb_parse_agent_expr (...).
12107 (response_tracepoint): Call gdb_unparse_agent_expr (...).
12108 (do_action_at_tracepoint): Call eval_tracepoint_agent_expr (...).
12109 (condition_true_at_tracepoint): Likewise.
12110 (parse_agent_expr): Rename to ...
12111 (gdb_parse_agent_expr): ... this and move to ax.c.
12112 (unparse_agent_expr): Rename to ...
12113 (gdb_unparse_agent_expr): ... this and move to ax.c.
12114 (gdb_agent_op_name): Move to ax.c.
12115 (eval_agent_expr): Rename to ...
12116 (gdb_eval_agent_expr): ... this, use regcache passed as parameter
12117 and move to ax.c.
12118 (eval_tracepoint_agent_expr): New function.
12119 (agent_mem_read, agent_mem_read_string, agent_tsv_read): Make
43aaf8b6 12120 non-static.
5e1dc496
LM
12121 (current_insn_ptr, emit_error, struct bytecode_address): Move to
12122 ax.c.
12123 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul, emit_lsh,
12124 emit_rsh_signed, emit_rsh_unsigned, emit_ext, emit_log_not,
12125 emit_bit_and, emit_bit_or, emit_bit_xor, emit_bit_not, emit_equal,
12126 emit_less_signed, emit_less_unsigned, emit_ref, emit_if_goto,
12127 emit_goto, write_goto_address, emit_const, emit_reg, emit_pop,
12128 emit_stack, emit_zero_ext, emit_swap, emit_stack_adjust,
12129 emit_int_call_1, emit_void_call_2, emit_eq_goto, emit_ne_goto,
12130 emit_lt_goto, emit_ge_goto, emit_gt_goto, emit_le_goto): Move to ax.c.
12131 (get_get_tsv_func_addr, get_set_tsv_func_addr): New functions.
12132 (compile_bytecodes): Remove forward declaration.
12133 (is_goto_target): Move to ax.c.
12134 (compile_bytecodes): Move to ax.c and call
12135 agent_get_trace_state_variable_value (...) and
12136 agent_set_trace_state_variable_value (...).
12137
12138 * Makefile.in: Update ax.c and IPA dependencies.
12139
277e4e52
PA
121402012-02-24 Pedro Alves <palves@redhat.com>
12141
12142 * tracepoint.c (cmd_bigqtbuffer): Rename as ...
12143 (cmd_bigqtbuffer_circular): ... this. Only handle
12144 'QTBuffer:circular:'.
12145 (handle_tracepoint_general_set): Adjust.
12146
bf4c19f7
YQ
121472012-02-16 Yao Qi <yao@codesourcery.com>
12148
12149 * inferiors.c: Move code to ...
12150 * dll.c: .... here. New.
12151 * server.h: Declare clear_dlls.
12152 * Makefile.in (SFILES): Add dll.c.
12153 (OBS): Add dll.o
12154 (dll.o): New rule.
12155
d73f2619
YQ
121562012-02-11 Yao Qi <yao@codesourcery.com>
12157
12158 * server.c: (handle_monitor_command): Add a new parameter
12159 `own_buf'.
12160 (handle_query): Update caller.
12161
f8255c2a
JB
121622012-02-09 Joel Brobecker <brobecker@adacore.com>
12163
12164 * configure.ac: Add readlink to AC_CHECK_FUNCS list.
12165 * configure, config.in: Regenerate.
12166 * hostio.c: Provide an alternate implementation if HAVE_READLINK
12167 is not defined.
12168
da84f473
PA
121692012-02-02 Pedro Alves <palves@redhat.com>
12170
12171 Try SIGKILL first, then PTRACE_KILL.
12172 * linux-low.c (linux_kill_one_lwp): New.
12173 (linux_kill_one_lwp): Rename to ...
12174 (kill_one_lwp_callback): ... this. Use the new
12175 linux_kill_one_lwp.
12176
e886a173
PA
121772012-02-02 Pedro Alves <palves@redhat.com>
12178
12179 * tracepoint.c (cmd_qtminftpilen): Return 0 if there's no current
12180 inferior.
12181
be07f1a2
PA
121822012-01-27 Pedro Alves <palves@redhat.com>
12183
12184 * linux-low.c (linux_child_pid_to_exec_file): Delete.
12185 (elf_64_file_p): Make static.
12186 (linux_pid_exe_is_elf_64_file): New.
12187 * linux-low.h (linux_child_pid_to_exec_file, elf_64_file_p):
12188 Delete declarations.
12189 (linux_pid_exe_is_elf_64_file): Declare.
12190 * linux-x86-low.c (x86_arch_setup): Use
12191 linux_pid_exe_is_elf_64_file.
12192
d8301ad1
JK
121932012-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
12194
12195 * linux-low.c (linux_wait_for_event_1): Rename to ...
12196 (linux_wait_for_event): ... here and merge it with former
12197 linux_wait_for_event - new variable wait_ptid, use it.
12198 (linux_wait_for_event): Remove - merge it to linux_wait_for_event_1.
12199
01b17894
PA
122002012-01-23 Pedro Alves <palves@redhat.com>
12201
12202 * server.c (main): Avoid yet another case of infinite loop while
12203 detaching/killing after a longjmp.
12204
e825046f
JK
122052012-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
12206
12207 Code cleanup.
12208 * linux-low.c (linux_wait_for_event_1): Use ptid_is_pid.
12209
b9e7b9c3
UW
122102012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12211
12212 * hostio.c (handle_readlink): New function.
12213 (handle_vFile): Call it to handle "vFile:readlink" packets.
12214
901f9912
UW
122152012-01-20 Pedro Alves <palves@redhat.com>
12216 Ulrich Weigand <ulrich.weigand@linaro.org>
12217
12218 * server.c (handle_v_requests): Only support vAttach and vRun to
12219 start multiple processes when in extended protocol mode.
12220
fc1ab1a0
PA
122212012-01-17 Pedro Alves <palves@redhat.com>
12222
12223 * tracepoint.c (initialize_tracepoint): Use mmap instead of
12224 memalign plus mprotect to allocate the scratch buffer.
12225
7d5d4e98
PA
122262012-01-13 Pedro Alves <palves@redhat.com>
12227
12228 * server.c (attach_inferior): Clear `cont_thread'.
12229
f128d5e9
PA
122302012-01-13 Pedro Alves <palves@redhat.com>
12231
12232 * server.c (main): Avoid infinite loop while detaching/killing
12233 after a longjmp.
12234
06db92f0
DE
122352012-01-09 Doug Evans <dje@google.com>
12236
12237 * server.c (start_inferior): Set last_ptid in --wrapper case.
12238
32d92999
YQ
122392012-01-06 Yao Qi <yao@codesourcery.com>
12240
12241 * tracepoint.c [IN_PROCESS_AGENT] (debug_threads): Macro
12242 defined.
12243 [IN_PROCESS_AGENT] (debug_agent): New global variable.
12244
5e0a92a9
YQ
122452012-01-04 Yao Qi <yao@codesourcery.com>
12246
12247 * tracepoint.c (cmd_qtdp): Print debug message
12248 for static tracepoint.
12249
ae639e8c
YQ
122502012-01-04 Yao Qi <yao@codesourcery.com>
12251
12252 * tracepoint.c (trace_vdebug): Differentiate debug message
12253 between gdbserver and IPA.
12254
f72429c5
YQ
122552012-01-03 Yao Qi <yao@codesourcery.com>
12256
12257 * tracepoint.c (tracepoint_was_hit): Don't collect for
12258 static tracepoint.
12259
12c3e59c
JB
122602012-01-02 Joel Brobecker <brobecker@adacore.com>
12261
12262 * terminal.h: Reformat copyright header.
12263
67827812
JB
122642012-01-02 Joel Brobecker <brobecker@adacore.com>
12265
12266 * server.c (gdbserver_version): Update copyright year.
12267 * gdbreplay.c (gdbreplay_version): Likewise.
12268
3e52c33d
JK
122692011-12-18 Jan Kratochvil <jan.kratochvil@redhat.com>
12270
12271 * linux-low.c (linux_create_inferior): Put empty if clause for write.
12272
12273 Revert:
12274 2011-12-18 Hui Zhu <teawater@gmail.com>
12275 * linux-low.c (linux_create_inferior): Save return value to ret.
12276
66f1260e
HZ
122772011-12-18 Hui Zhu <teawater@gmail.com>
12278
12279 * linux-low.c (linux_create_inferior): Save return value to ret.
12280
e77616d7
DE
122812011-12-16 Doug Evans <dje@google.com>
12282
e7b06c57
DE
12283 * linux-low.c (linux_create_inferior): If stdio connection,
12284 redirect stdin from /dev/null, stdout to stderr.
12285 * remote-utils.c (remote_is_stdio): New static global.
12286 (remote_connection_is_stdio): New function.
12287 (remote_prepare): Handle stdio connection.
12288 (remote_open): Ditto.
12289 (remote_close): Don't close stdin for stdio connections.
12290 (read_prim,write_prim): New functions. Replace all calls to
12291 read/write to these.
12292 * server.c (main): Watch for "-" argument. Move call to
12293 remote_prepare before start_inferior.
12294 * server.h (STDIO_CONNECTION_NAME): New macro.
12295 (remote_connection_is_stdio): Declare.
12296
e77616d7
DE
12297 * remote-utils.c (prepare_resume_reply): Remove extraneous \n
12298 in debugging output.
12299
82067193
YQ
123002011-12-15 Yao Qi <yao@codesourcery.com>
12301
12302 * tracepoint.c: Include sys/syscall.h.
12303 (gdb_ust_thread): Remove preprocessor conditional.
12304
82bfbe7e
PA
123052011-12-14 Pedro Alves <pedro@codesourcery.com>
12306
12307 * linux-low.c (linux_detach_one_lwp): Call
12308 the_low_target.prepare_to_resume before detaching.
12309
712c6575
YQ
123102011-12-14 Yao Qi <yao@codesourcery.com>
12311
12312 * tracepoint.c (gdb_ust_thread): Don't ignore return value
12313 of write.
12314
d54d1edf
YQ
123152011-12-14 Yao Qi <yao@codesourcery.com>
12316
12317 * i386-low.c (i386_low_stopped_data_address): Initialize local
12318 variable `control'.
12319
6210a125
PA
123202011-12-13 Pedro Alves <pedro@codesourcery.com>
12321
12322 PR remote/13492
12323
12324 * i386-low.c (i386_low_stopped_data_address): Avoid fetching
12325 DR_CONTROL unless necessary. Extend comments.
12326 * linux-x86-low.c (x86_linux_prepare_to_resume): Don't write to
12327 DR0-3 if not used. If any watchpoint was set, clear DR_STATUS.
12328
2ece8244
YQ
123292011-12-13 Yao Qi <yao@codesourcery.com>
12330
12331 * tracepoint.c (trace_buffer_alloc): Replace magic numbers with
12332 macros.
12333 (upload_fast_traceframes, upload_fast_traceframes): Likewise.
12334
784867a5
JK
123352011-12-08 Jan Kratochvil <jan.kratochvil@redhat.com>
12336
12337 * linux-low.c (linux_kill): Skip PTRACE_KILL if LWP does not exist.
12338 Print new debug message for such case.
12339
6bf36717
JK
123402011-12-06 Jan Kratochvil <jan.kratochvil@redhat.com>
12341
12342 Fix overlapping memcpy.
12343 * mem-break.c (set_raw_breakpoint_at): New variable buf. Use it for
12344 the read_inferior_memory transfer.
12345 (delete_fast_tracepoint_jump): New variable buf. Use it for the
12346 write_inferior_memory transfer.
12347 (set_fast_tracepoint_jump): New variable buf. Use it for the
12348 read_inferior_memory and write_inferior_memory transfers.
12349 (uninsert_fast_tracepoint_jumps_at, reinsert_fast_tracepoint_jumps_at)
12350 (delete_raw_breakpoint, uninsert_raw_breakpoint): New variable buf.
12351 Use it for the write_inferior_memory transfer.
12352 (check_mem_read, check_mem_write): New gdb_asserts for overlapping
12353 buffers.
12354
50275556
MR
123552011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12356
12357 * linux-low.c (fetch_register, store_register): Make code
12358 consistent, fix formatting.
12359
7325beb4
MR
123602011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
12361
12362 * linux-low.c (usr_store_inferior_registers): Factor out code
12363 to handle individual registers into...
12364 (store_register): ... this new function.
12365
c642a434
UW
123662011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
12367
12368 * Makefile.in (s390-linux32v1.o, s390-linux32v1.c): New rules.
12369 (s390-linux32v2.o, s390-linux32v2.c): Likewise.
12370 (s390-linux64v1.o, s390-linux64v1.c): Likewise.
12371 (s390-linux64v2.o, s390-linux64v2.c): Likewise.
12372 (s390x-linux64v1.o, s390x-linux64v1.c): Likewise.
12373 (s390x-linux64v2.o, s390x-linux64v2.c): Likewise.
12374 * configure.srv [s390*-*-linux*] (srv_regobj): Add new objects.
12375 (srv_xmlfiles): Add new XML files.
12376
12377 * linux-s390-low.c: Include "elf/common.h", <sys/ptrace.h>,
12378 and <sys/uio.h>.
12379 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
12380 (init_registers_s390_linux32v1): Add prototype.
12381 (init_registers_s390_linux32v2): Likewise.
12382 (init_registers_s390_linux64v1): Likewise.
12383 (init_registers_s390_linux64v2): Likewise.
12384 (init_registers_s390x_linux64v1): Likewise.
12385 (init_registers_s390x_linux64v2): Likewise.
12386 (s390_num_regs): Increment to 52.
12387 (s390_regmap): Add orig_r2 register.
12388 (s390_num_regs_3264): Increment to 68.
12389 (s390_regmap_3264): Add orig_r2 register.
12390 (s390_collect_ptrace_register): Handle orig_r2 register.
12391 (s390_supply_ptrace_register): Likewise.
12392 (s390_fill_last_break): New function.
12393 (s390_store_last_break): Likewise.
12394 (s390_fill_system_call): New function.
12395 (s390_store_system_call): Likewise.
12396 (target_regsets): Handle NT_S390_LAST_BREAK and NT_S390_SYSTEM_CALL
12397 register sets.
12398 (s390_check_regset): New function.
12399 (s390_arch_setup): Check for presence of NT_S390_LAST_BREAK and
12400 NT_S390_SYSTEM_CALL regsets and use appropriate description.
12401 Update target_regsets for available register sets.
12402
2268b414
JK
124032011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
12404 Jan Kratochvil <jan.kratochvil@redhat.com>
12405
12406 * linux-low.c (get_phdr_phnum_from_proc_auxv, get_dynamic, get_r_debug)
12407 (read_one_ptr, struct link_map_offsets, linux_qxfer_libraries_svr4):
12408 New.
12409 (struct linux_target_ops): Install linux_qxfer_libraries_svr4.
12410 * linux-low.h (struct process_info_private): New member r_debug.
12411 * server.c (handle_qxfer_libraries): Call
12412 the_target->qxfer_libraries_svr4.
12413 (handle_qxfer_libraries_svr4): New function.
12414 (qxfer_packets): New entry "libraries-svr4".
12415 (handle_query): Check QXFER_LIBRARIES_SVR4 and report libraries-svr4.
12416 * target.h (struct target_ops): New member qxfer_libraries_svr4.
12417 * remote.c (remote_xfer_partial): Call add_packet_config_cmd for
12418 PACKET_qXfer_libraries_svr4.
12419
d6db1fab
UW
124202011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
12421
12422 * linux-s390-low.c (s390_collect_ptrace_register): Fully convert
12423 PSW address/mask between 8-byte and 16-byte formats.
12424 (s390_supply_ptrace_register): Likewise.
12425 (s390_get_pc, s390_set_pc): 4-byte PSW address always includes
12426 basic addressing mode bit.
12427
242f5f1c
SS
124282011-11-24 Stan Shebs <stan@codesourcery.com>
12429
12430 * tracepoint.c (cmd_qtstatus): Use plongest instead of %llx.
12431
f196051f
SS
124322011-11-17 Stan Shebs <stan@codesourcery.com>
12433
12434 * tracepoint.c (struct tracepoint): New field traceframe_usage.
12435 (tracing_start_time): New global.
12436 (tracing_stop_time): New global.
12437 (tracing_user_name): New global.
12438 (tracing_notes): New global.
12439 (tracing_stop_note): New global.
12440 (cmd_qtstart): Set traceframe_usage, start_time.
12441 (stop_tracing): Set stop_time.
12442 (cmd_qtstatus): Report additional status.
12443 (cmd_qtp): New function.
12444 (handle_tracepoint_query): Call it.
12445 (cmd_qtnotes): New function.
12446 (handle_tracepoint_general_set): Call it.
12447 (get_timestamp): Rename from tsv_get_timestamp.
12448
405f8e94
SS
124492011-11-14 Stan Shebs <stan@codesourcery.com>
12450 Kwok Cheung Yeung <kcy@codesourcery.com>
12451
12452 * linux-x86-low.c (small_jump_insn): New.
12453 (i386_install_fast_tracepoint_jump_pad): Add arguments for
12454 trampoline and error message, build a trampoline and issue a small
12455 jump instruction to it.
12456 (x86_install_fast_tracepoint_jump_pad): Add arguments for
12457 trampoline and error message.
12458 (x86_get_min_fast_tracepoint_insn_len): New.
12459 (the_low_target): Add call to x86_get_min_fast_tracepoint_insn_len.
12460 * linux-low.h (struct linux_target_ops): Add arguments to
12461 install_fast_tracepoint_jump_pad operation, add new operation.
12462 * linux-low.c (linux_install_fast_tracepoint_jump_pad): Add
12463 arguments.
12464 (linux_get_min_fast_tracepoint_insn_len): New function.
12465 (linux_target_op): Add new operation.
12466 * tracepoint.c (gdb_trampoline_buffer): New IPA variable.
12467 (gdb_trampoline_buffer_end): Ditto.
12468 (gdb_trampoline_buffer_error): Ditto.
12469 (struct ipa_sym_addresses): Add fields for new IPA variables.
12470 (symbol_list): Add entries for new IPA variables.
12471 (struct tracepoint): Add fields to hold the address range of the
12472 trampoline used by the tracepoint.
12473 (trampoline_buffer_head): New static variable.
12474 (trampoline_buffer_tail): Ditto.
12475 (claim_trampoline_space): New function.
12476 (have_fast_tracepoint_trampoline_buffer): New function.
12477 (clone_fast_tracepoint): Fill in trampoline fields of tracepoint
12478 structure.
12479 (install_fast_tracepoint): Ditto, also add error buffer argument.
12480 (cmd_qtminftpilen): New function.
12481 (handle_tracepoint_query): Add response to qTMinFTPILen packet.
12482 (fast_tracepoint_from_trampoline_address): New function.
12483 (fast_tracepoint_collecting): Handle trampoline as part of jump
12484 pad space.
12485 (set_trampoline_buffer_space): New function.
12486 (initialize_tracepoint): Initialize new IPA variables.
12487 * target.h (struct target_ops): Add arguments to
12488 install_fast_tracepoint_jump_pad operation, add new
12489 get_min_fast_tracepoint_insn_len operation.
12490 (target_get_min_fast_tracepoint_insn_len): New.
12491 (install_fast_tracepoint_jump_pad): Add arguments.
12492 * server.h (IPA_BUFSIZ): Define.
12493 * linux-i386-ipa.c: Include extra header files.
12494 (initialize_fast_tracepoint_trampoline_buffer): New function.
12495 (initialize_low_tracepoint): Call it.
12496 * server.h (set_trampoline_buffer_space): Declare.
12497 (claim_trampoline_space): Ditto.
12498 (have_fast_tracepoint_trampoline_buffer): Ditto.
12499
1e4d1764
YQ
125002011-11-14 Yao Qi <yao@codesourcery.com>
12501
12502 * server.c (handle_query): Handle InstallInTrace for qSupported.
12503 * tracepoint.c (add_tracepoint): Sort list.
12504 (install_tracepoint, download_tracepoint): New.
12505 (cmd_qtdp): Call them to install and download tracepoints.
12506 (sort_tracepoints): Removed.
12507 (cmd_qtstart): Update.
12508
5c73ff4e
YQ
125092011-11-14 Yao Qi <yao@codesourcery.com>
12510
12511 * mem-break.c (inc_ref_fast_tracepoint_jump): New.
12512 * mem-break.h: Declare.
12513 * tracepoint.c (cmd_qtstart): Move some code to ...
12514 (clone_fast_tracepoint, install_fast_tracepoint): ... here.
12515 New.
12516 (download_tracepoints): Move some code to ...
12517 (download_tracepoint_1): ... here. New.
12518
86a30030
YQ
125192011-11-08 Yao Qi <yao@codesourcery.com>
12520
12521 * remote-utils.c (relocate_instruction): A comment fix.
12522
8d26e50c
JB
125232011-11-07 Joel Brobecker <brobecker@adacore.com>
12524
12525 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): Delete.
12526 (i386_dr_low_get_control, i386_dr_low_get_status): Use
12527 dr_status_mirror and dr_control_mirror from debug_reg_state.
12528 (i386_dr_low_get_status): Use debug_reg_state.dr_status_mirror
12529 (i386_initial_stuff): Remove use of deleted globals.
12530 (i386_get_thread_context, i386_set_thread_context,
12531 i386_thread_added): Use dr_status_mirror and dr_control_mirror
12532 from debug_reg_state.
12533
a59306a3
YQ
125342011-11-05 Yao Qi <yao@codesourcery.com>
12535
12536 * tracepoint.c (gdb_collect): Loop over tracepoints of same
12537 address as TPOINT's.
12538
3065dfb6
SS
125392011-11-02 Stan Shebs <stan@codesourcery.com>
12540
12541 * tracepoint.c (agent_mem_read_string): New function.
12542 (eval_agent_expr): Call it for tracenz.
12543 * server.c (handle_query): Report support for tracenz.
12544
fd0d8c7c
YQ
125452011-11-02 Yao Qi <yao@codesourcery.com>
12546
12547 * tracepoint.c (cmd_qtstart): Remove unused local variables.
12548
609086b1
YQ
125492011-11-02 Yao Qi <yao@codesourcery.com>
12550
12551 * target.h: Fix a typo in comment.
12552
b9fd1791
PA
125532011-10-31 Pedro Alves <pedro@codesourcery.com>
12554
12555 * mem-break.c (check_mem_write): Add `myaddr' parameter. Don't
12556 clobber the breakpoints' shadows with fast tracepoint jumps.
12557 * mem-break.h (check_mem_write): Add `myaddr' parameter.
12558 * target.c (write_inferior_memory): Also pass MYADDR down to
12559 check_mem_write.
12560
03583c20
UW
125612011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
12562
12563 * configure.ac: Check support for personality routine.
12564 * configure: Regenerate.
12565 * config.in: Likewise.
12566 * linux-low.c: Include <sys/personality.h>.
12567 Define ADDR_NO_RANDOMIZE if necessary.
12568 (linux_create_inferior): Disable address space randomization when
12569 forking inferior, if requested.
12570 (linux_supports_disable_randomization): New function.
12571 (linux_target_ops): Install it.
12572 * server.h (disable_randomization): Declare.
12573 * server.c (disable_randomization): New global variable.
12574 (handle_general_set): Handle QDisableRandomization.
12575 (handle_query): Likewise for qSupported.
12576 (main): Support --disable-randomization and --no-disable-randomization
12577 command line arguments.
12578 * target.h (struct target_ops): Add supports_disable_randomization.
12579 (target_supports_disable_randomization): New macro.
12580
723b724b
MF
125812011-09-29 Mike Frysinger <vapier@gentoo.org>
12582
12583 * linux-low.c (target_loadseg): Add defined PTRACE_GETFDPIC to the
12584 ifdef check.
12585 [PT_GETDSBT] (target_loadmap): Wrap in a defined PT_GETDSBT check.
12586 [!PT_GETDSBT] (target_loadmap): New definition.
12587 (LINUX_LOADMAP, LINUX_LOADMAP_EXEC, LINUX_LOADMAP_INTERP): Define.
12588 (linux_read_loadmap): Change PTRACE_GETDSBT_EXEC to
12589 LINUX_LOADMAP_EXEC, PTRACE_GETDSBT_INTERP to LINUX_LOADMAP_INTERP,
12590 and PT_GETDSBT to LINUX_LOADMAP.
12591 [!PT_GETDSBT] (linux_read_loadmap): Define to NULL.
12592 (linux_target_ops): Delete unnecessary ifdef PT_GETDSBT check.
12593
55329a5c 125942011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
71487fd7
UW
12595
12596 * linux-arm-low.c (struct arm_linux_hwbp_cap): Remove.
12597 (arm_linux_hwbp_cap): New static variable.
12598 (arm_linux_get_hwbp_cap): Replace by ...
12599 (arm_linux_init_hwbp_cap): ... this new function.
12600 (arm_linux_get_hw_breakpoint_count): Use arm_linux_hwbp_cap.
12601 (arm_linux_get_hw_watchpoint_count): Likewise.
12602 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12603 (arm_arch_setup): Call arm_linux_init_hwbp_cap.
12604 (arm_prepare_to_resume): Use perror_with_name instead of error.
12605
55329a5c 126062011-09-21 Ulrich Weigand <ulrich.weigand@linaro.org>
09b4ad9f
UW
12607
12608 * linux-arm-low.c: Include <signal.h>.
12609 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define if necessary.
12610 (struct arm_linux_hwbp_cap): New data type.
12611 (arm_hwbp_type, arm_hwbp_control_t): New typedefs.
12612 (struct arm_linux_hw_breakpoint): New data type.
12613 (MAX_BPTS, MAX_WPTS): Define.
12614 (struct arch_process_info, struct arch_lwp_info): New data types.
12615 (arm_linux_get_hwbp_cap): New function.
12616 (arm_linux_get_hw_breakpoint_count): Likewise.
12617 (arm_linux_get_hw_watchpoint_count): Likewise.
12618 (arm_linux_get_hw_watchpoint_max_length): Likewise.
12619 (arm_hwbp_control_initialize): Likewise.
12620 (arm_hwbp_control_is_enabled): Likewise.
12621 (arm_hwbp_control_is_initialized): Likewise.
12622 (arm_hwbp_control_disable): Likewise.
12623 (arm_linux_hw_breakpoint_equal): Likewise.
12624 (arm_linux_hw_point_initialize): Likewise.
12625 (struct update_registers_data): New data structure.
12626 (update_registers_callback: New function.
12627 (arm_insert_point): Likewise.
12628 (arm_remove_point): Likewise.
12629 (arm_stopped_by_watchpoint): Likewise.
12630 (arm_stopped_data_address): Likewise.
12631 (arm_new_process): Likewise.
12632 (arm_new_thread): Likewise.
12633 (arm_prepare_to_resume): Likewise.
12634 (the_low_target): Register arm_insert_point, arm_remove_point,
12635 arm_stopped_by_watchpoint, arm_stopped_data_address, arm_new_process,
12636 arm_new_thread, and arm_prepare_to_resume.
12637
6b9801d4
SS
126382011-09-15 Stan Shebs <stan@codesourcery.com>
12639
12640 * server.h (struct emit_ops): Add compare-goto fields.
12641 * tracepoint.c (gdb_agent_op_sizes): New table.
12642 (emit_eq_goto): New function.
12643 (emit_ne_goto): New function.
12644 (emit_lt_goto): New function.
12645 (emit_le_goto): New function.
12646 (emit_gt_goto): New function.
12647 (emit_ge_goto): New function.
12648 (is_goto_target): New function.
12649 (compile_bytecodes): Recognize special cases of compare-goto
12650 combinations and call specialized emitters for them.
12651 * linux-x86-low.c (amd64_emit_eq_goto): New function.
12652 (amd64_emit_ne_goto): New function.
12653 (amd64_emit_lt_goto): New function.
12654 (amd64_emit_le_goto): New function.
12655 (amd64_emit_gt_goto): New function.
12656 (amd64_emit_ge_goto): New function.
12657 (amd64_emit_ops): Add the new functions.
12658 (i386_emit_eq_goto): New function.
12659 (i386_emit_ne_goto): New function.
12660 (i386_emit_lt_goto): New function.
12661 (i386_emit_le_goto): New function.
12662 (i386_emit_gt_goto): New function.
12663 (i386_emit_ge_goto): New function.
12664 (i386_emit_ops): Add the new functions.
12665
bf15cbda
SS
126662011-09-08 Stan Shebs <stan@codesourcery.com>
12667
12668 * linux-x86-low.c (i386_emit_prologue): Save %ebx.
12669 (i386_emit_epilogue): Restore %ebx.
12670
943ca1dd
JZ
126712011-08-31 Jie Zhang <jzhang918@gmail.com>
12672
12673 * server.c (step_thread): Remove definition.
12674 (process_serial_event): Don't handle Hs.
12675 * server.h (step_thread): Remove declaration.
12676 * target.c (set_desired_inferior): Remove use of step_thread.
12677
e3deef73
LM
126782011-08-24 Luis Machado <lgustavo@codesourcery.com>
12679
12680 * linux-low.c: Include linux-procfs.h.
12681 (linux_attach_lwp_1): Update comments.
12682 (linux_attach): Scan for existing threads when attaching to a
12683 process that is the tgid.
12684 * Makefile.in: Update dependencies.
12685
13da1c97
LM
126862011-08-24 Luis Machado <lgustavo@codesourcery.com>
12687
12688 * configure.srv: Add linux-procfs.o dependencies.
12689
881127c9
YQ
126902011-08-14 Yao Qi <yao@codesourcery.com>
12691
12692 * target.h (struct target_ops): Fix indent.
12693 * win32-low.c (win32_target_ops): Fix comment.
12694
58dbd541
YQ
126952011-08-14 Andrew Jenner <andrew@codesourcery.com>
12696 Yao Qi <yao@codesourcery.com>
12697
12698 * Makefile.in (clean): Remove tic6x-*.c files.
12699 (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules.
12700 (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise.
12701 (tic6x-c64xp-linux.c): Likewise.
12702 * configure.srv: Add support for tic6x-*-uclinux.
12703 * linux-tic6x-low.c: New.
12704 * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
12705
78d85199
YQ
127062011-08-14 Andrew Stubbs <ams@codesourcery.com>
12707 Yao Qi <yao@codesourcery.com>
12708
12709 * target.h (struct target_ops): Add read_loadmap.
12710 * linux-low.c (struct target_loadseg): New type.
12711 (struct target_loadmap): New type.
12712 (linux_read_loadmap): New function.
12713 (linux_target_ops): Add linux_read_loadmap.
12714 * server.c (handle_query): Support qXfer:fdpic:read packet.
43aaf8b6
PA
12715 * win32-low.c (win32_target_ops): Initialize field `read_loadmap'
12716 to NULL.
78d85199 12717
a959a88d
EZ
127182011-08-05 Eli Zaretskii <eliz@gnu.org>
12719
12720 * win32-low.c: Include <stdint.h>.
12721
1ced966e
PA
127222011-07-22 Pedro Alves <pedro@codesourcery.com>
12723
12724 * i386-low.c (i386_insert_aligned_watchpoint): Don't pass the info
12725 to the inferior here.
12726 (i386_remove_aligned_watchpoint): Ditto.
12727 (i386_handle_nonaligned_watchpoint): Return immediate on fail to
12728 fit part of the watchpoint in the debug registers.
12729 (i386_update_inferior_debug_regs): New.
12730 (i386_low_insert_watchpoint): Work on a local mirror of the debug
12731 registers, and only update the inferior on success.
12732 (i386_low_remove_watchpoint): Ditto.
12733
d26e3629
KY
127342011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
12735
12736 * linux-low.c (compare_ints, unique, list_threads, show_process,
12737 linux_core_of_thread): Delete.
12738 (linux_target_ops): Change linux_core_of_thread to
12739 linux_common_core_of_thread.
12740 (linux_qxfer_osdata): Defer to linux_common_xfer_osdata.
12741 * utils.c (malloc_failure): Change type of argument.
12742 (xmalloc, xrealloc, xcalloc, xsnprintf): Delete.
12743 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
12744 common/linux-osdata.c, common/ptid.c and common/buffer.c.
12745 (OBS): Add xml-utils.o, common-utils.o, ptid.o and buffer.o.
12746 (IPA_OBJS): Add common-utils-ipa.o.
12747 (ptid_h, linux_osdata_h): New macros.
12748 (server_h): Add common/common-utils.h, common/xml-utils.h,
12749 common/buffer.h, common/gdb_assert.h, common/gdb_locale.h and
12750 common/ptid.h.
12751 (common-utils-ipa.o, common-utils.o, xml-utils.o, linux-osdata.o,
12752 ptid.o, buffer.o): New rules.
12753 (linux-low.o): Add common/linux-osdata.h as a dependency.
12754 * configure.srv (srv_tgtobj): Add linux-osdata.o to Linux targets.
12755 * configure.ac: Add AC_HEADER_DIRENT check.
12756 * config.in: Regenerate.
12757 * configure: Regenerate.
12758 * remote-utils.c (xml_escape_text): Delete.
12759 (buffer_grow, buffer_free, buffer_init, buffer_finish,
12760 buffer_xml_printf): Move to common/buffer.c.
12761 * server.c (main): Remove call to initialize_inferiors.
12762 * server.h (struct ptid, ptid_t, minus_one_ptid, null_ptid,
12763 ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid,
12764 ptid_equal, ptid_is_pid, initialize_inferiors, xml_escape_text,
12765 internal_error, gdb_assert, gdb_assert_fail): Delete.
12766 (struct buffer, buffer_grow, buffer_free, buffer_init, buffer_finish,
12767 buffer_xml_printf, buffer_grow_str, buffer_grow_str0): Move to
12768 common/buffer.h.
12769 * inferiors.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
12770 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid,
12771 initialize_inferiors): Delete.
12772
2275a1a7
PA
127732011-07-20 Pedro Alves <pedro@codesourcery.com>
12774
12775 * tracepoint.c (tracepoint_look_up_symbols): Return upon the first
12776 symbol error.
12777
0a5b1e09
PA
127782011-05-31 Pedro Alves <pedro@codesourcery.com>
12779
12780 * linux-x86-low.c (i386_dr_low_get_addr): Fix off by one in
12781 assertion.
12782 * win32-i386-low.c (i386_dr_low_get_addr): Ditto.
12783
6938fd34
YQ
127842011-05-26 Yao Qi <yao@codesourcery.com>
12785
12786 * Makefile.in (thread-db.o): Track dependence to
12787 common/gdb_thread_db.h.
12788 * thread-db.c: include gdb_thread_db.h from right place.
12789
b481f9e0
TT
127902011-05-16 Adrian Cornish <gnu@bluedreamer.com>
12791
12792 * linux-i386-ipa.c (supply_static_tracepoint_registers): Pass
12793 __FILE__ and __LINE__ to internal_error.
12794
98a5dd13
DE
127952011-05-13 Doug Evans <dje@google.com>
12796
12797 * thread-db.c (try_thread_db_load_from_sdir): New function.
12798 (try_thread_db_load_from_dir): New function.
12799 (thread_db_load_search): Handle $sdir, ignore $pdir.
12800 Remove trying of system directories if search of
12801 libthread-db-search-path fails, that is now done via $sdir.
12802
d248b706
KY
128032011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
12804
12805 * server.c (handle_query): Add EnableDisableTracepoints to the list
12806 of supported features.
43aaf8b6 12807 * tracepoint.c (clear_installed_tracepoints): Uninstall disabled
d248b706 12808 tracepoints.
43aaf8b6
PA
12809 (cmd_qtenable_disable): New.
12810 (cmd_qtstart): Install tracepoints even if disabled.
12811 (handle_tracepoint_general_set): Add call to cmd_qtenable_disable on
12812 receiving a QTEnable or QTDisable packet.
12813 (gdb_collect): Skip data collection if fast tracepoint is disabled.
12814 (ust_marker_to_static_tracepoint): Do not ignore disabled static
12815 tracepoints.
12816 (gdb_probe): Skip data collection if static tracepoint is disabled.
d248b706 12817
84e578fb
DE
128182011-05-10 Doug Evans <dje@google.com>
12819
12820 * thread-db.c (thread_db_handle_monitor_command): Handle elided path.
12821
71f55dd8
DE
128222011-05-04 Doug Evans <dje@google.com>
12823
12824 * linux-low.c (linux_join): Skip process lookup.
12825 * spu-low.c (spu_join): Ditto.
12826 * server.c (join_inferiors_callback): Delete.
12827 (process_serial_event): For 'D' packet (detach) call join_inferior
12828 directly.
12829
4d393d60
JM
128302011-05-04 Joseph Myers <joseph@codesourcery.com>
12831
12832 * README: Don't mention xscale*-*-linux*.
12833 * configure.srv (xscale*-*-linux*): Don't handle target.
12834
b00ad6ff
NF
128352011-04-27 Nathan Froyd <froydnj@codesourcery.com>
12836
12837 * linux-x86-low.c (amd64_emit_const): Call memcpy instead of
12838 casting pointers.
12839 (amd64_emit_reg, amd64_emit_int_call_1, amd64_emit_void_call_2):
12840 (i386_emit_const, i386_emit_reg, i386_emit_int_call_1):
12841 (i386_emit_void_call_2): Likewise.
12842
af96c192
YQ
128432011-04-26 Yao Qi <yao@codesourcery.com>
12844
43aaf8b6
PA
12845 * linux-low.c: Move common macros to linux-ptrace.h.
12846 Include linux-ptrace.h.
af96c192
YQ
12847 * Makefile.in (linux_ptrace_h): New.
12848 (linux-low.o): Depends on linux-ptrace.h.
12849
03f2bd59
JK
128502011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12851
12852 * remote-utils.c (handle_accept_event): Close LISTEN_DESC only if
12853 RUN_ONCE. Comment for the LISTEN_DESC delete_file_handler call.
12854 (remote_prepare): New function with most of the TCP code from ...
12855 (remote_open): ... here. Detect PORT here unconditionally. Move also
12856 setting transport_is_reliable.
12857 * server.c (run_once): New variable.
12858 (gdbserver_usage): Document it.
12859 (main): Set run_once for `--once'. Call remote_prepare. Exit after
12860 the first run if RUN_ONCE.
12861 * server.h (run_once, remote_prepare): New declarations.
12862
7a9dd1b2
TT
128632011-04-19 Tom Tromey <tromey@redhat.com>
12864
12865 * win32-low.c (handle_load_dll): Remove duplicate "the".
12866
81239425
PM
128672011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
12868
12869 Remove support for old Cygwin 1.5 versions.
12870 * win32-low.c (win32_create_inferior): Use new cygwin_path_list
12871 function to avoid warning.
12872 (win32_add_one_solib): Use cygwin_conv_path function to avoid
12873 warning.
12874
9e0627f1
PM
128752011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
12876
12877 * gdbserver/server.h (Macro _): Define it if not available.
12878
588eebee
MS
128792011-03-14 Michael Snyder <msnyder@vmware.com>
12880
348af9f7 12881 * hostio.c (handle_close): Remove unnecessary null test.
588eebee 12882
43f70d4c
JB
128832011-03-10 Joel Brobecker <brobecker@adacore.com>
12884
12885 * Makefile.in (maintainer-clean realclean distclean): Remove
12886 "make ... subdir_do" command.
12887
348af9f7
MS
128882011-03-10 Michael Snyder <msnyder@vmware.com>
12889
12890 * tracepoint.c (tracepoint_finish_step): Fix loop variable.
12891
12892 * server.c (handle_v_run): Free alloced buffer on early return.
12893
e637a4f5
YQ
128942011-03-09 Yao Qi <yao@codesourcery.com>
12895
12896 Revert:
12897 2011-03-04 Yao Qi <yao@codesourcery.com>
12898
12899 * Makefile.in: Remove GNU make feature --directory.
12900
12901 2011-03-05 Yao Qi <yao@codesourcery.com>
12902
12903 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12904 (subdir_do): New make target. Copied from gdb/Makefile.
12905 (maintainer-clean, realclean, distclean, clean): Call corresponding
12906 make targets in common/Makefile.
12907
12908 2011-02-11 Yao Qi <yao@codesourcery.com>
12909
12910 * configure.ac: Call AC_PROG_RANLIB.
12911 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
12912 * configure: Regenerate.
12913
e6edda56
JK
129142011-03-07 Jan Kratochvil <jan.kratochvil@redhat.com>
12915
12916 * remote-utils.c (putpkt_binary_1): Calculate BUF2 size dynamically.
12917
e5141119
JB
129182011-03-06 Yao Qi <yao@codesourcery.com>
12919
12920 * Makefile.in (REQUIRED_SUBDIRS): Remove $(LIBCOMMON_DIR).
12921
64794aa4
JB
129222011-03-05 Yao Qi <yao@codesourcery.com>
12923
12924 * Makefile.in (CLEANDIRS, REQUIRED_SUBDIRS): New variable.
12925 (subdir_do): New make target. Copied from gdb/Makefile.
12926 (maintainer-clean, realclean, distclean, clean): Call corresponding
12927 make targets in common/Makefile.
12928
7a762829
YQ
129292011-03-04 Yao Qi <yao@codesourcery.com>
12930
12931 * Makefile.in: Remove GNU make feature --directory.
12932
348af9f7
MS
129332011-03-04 Michael Snyder <msnyder@vmware.com>
12934
12935 * server.c (queue_stop_reply): Call xmalloc not malloc.
12936
129372011-03-02 Michael Snyder <msnyder@vmware.com>
12938
12939 * linux-arm-low.c (arm_arch_setup): Replace malloc with xmalloc.
12940
9f72fee2
MS
129412011-02-28 Michael Snyder <msnyder@vmware.com>
12942
588eebee
MS
12943 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
12944 (cmd_qtframe): Ditto.
12945 (cmd_qtbuffer): Ditto.
12946 (cmd_bigqtbuffer): Ditto.
12947
9f72fee2
MS
12948 * utils.c (decimal2str): Initialize 'width' to nine, then
12949 don't mess with it.
12950
8040bd49
UW
129512011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
12952
12953 * hostio.c (require_data): Free *data, not data.
12954
7e52cbd0
JK
129552011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12956
12957 * hostio.c (require_data): Use free, not xfree.
12958
9130f83e
MS
129592011-02-27 Michael Snyder <msnyder@vmware.com>
12960
4b812f4e
MS
12961 * server.c (handle_query): Discard unused value.
12962
9130f83e
MS
12963 * hostio.c (require_data): Free malloc memory before returning
12964 error.
12965
69d37113
MS
129662011-02-26 Michael Snyder <msnyder@vmware.com>
12967
12968 * linux-low.c (list_threads): Call closedir for dirent.
12969
35f5825a
MS
129702011-02-27 Michael Snyder <msnyder@vmware.com>
12971
2a589cef
MS
12972 * i386-low.c (i386-length_and_rw_bits): Comment the fact that
12973 a case statement falls through.
12974
0adea5f7
MS
12975 * linux-low.c (linux_xfer_siginfo): Fix fencepost error.
12976
35f5825a
MS
12977 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): Fix fencepost error
12978 in comparison.
12979
238f1c74
MS
129802011-02-26 Michael Snyder <msnyder@vmware.com>
12981
12982 * utils.c (decimal2str): Eliminate dead code and dead param.
12983 (pulongest): Drop dead param from call to decimal2str.
12984 (plongest): Ditto.
12985
633ff500
JB
129862011-02-24 Joel Brobecker <brobecker@adacore.com>
12987
12988 Revert the following patch (not approved yet):
12989 2011-02-21 Hui Zhu <teawater@gmail.com>
12990 * tracepoint.c (tp_printf): New function.
12991 (eval_agent_expr): Handle gdb_agent_op_printf.
12992
f9c6ff72
HZ
129932011-02-21 Hui Zhu <teawater@gmail.com>
12994
12995 * tracepoint.c (tp_printf): New function.
12996 (eval_agent_expr): Handle gdb_agent_op_printf.
12997
94d5e490
TT
129982011-02-18 Tom Tromey <tromey@redhat.com>
12999
13000 * Makefile.in (tracepoint-ipa.o): Depend on ax.def.
13001 (tracepoint.o): Likewise.
13002 * tracepoint.c (enum gdb_agent_op): Use ax.def.
13003 (gdb_agent_op_names): Likewise.
13004
c7f96d2b
TT
130052011-02-18 Tom Tromey <tromey@redhat.com>
13006
13007 * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick,
13008 gdb_agent_op_rot>: New constants.
13009 (gdb_agent_op_names): Add pick and roll.
13010 (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New
13011 cases.
13012
0feedb2c
JK
130132011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
13014
13015 * aclocal.m4: Regenerated with aclocal-1.11.1.
13016
b3b9301e
PA
130172011-02-14 Pedro Alves <pedro@codesourcery.com>
13018
13019 * server.c (handle_qxfer_traceframe_info): New.
13020 (qxfer_packets): Register "traceframe-info".
13021 (handle_query): Report support for qXfer:traceframe-info:read+.
13022 * tracepoint.c (match_blocktype): New.
13023 (traceframe_find_block_type): Rename to ...
13024 (traceframe_walk_blocks): ... this. Add callback filter argument,
13025 and use it.
13026 (traceframe_find_block_type): New, reimplemented on top of
13027 traceframe_walk_blocks.
13028 (build_traceframe_info_xml): New.
13029 (traceframe_read_info): New.
13030 * server.h (traceframe_read_info): Declare.
13031
4f3e6fb7
YQ
130322011-02-11 Yao Qi <yao@codesourcery.com>
13033
13034 * configure.ac: Call AC_PROG_RANLIB.
13035 * Makefile.in: Remove signals.o from OBS. Link libcommon.a.
13036 * configure: Regenerate.
13037
764880b7
PA
130382011-02-07 Pedro Alves <pedro@codesourcery.com>
13039
13040 * server.c (gdb_read_memory): Change return semantics to allow
13041 partial transfers.
13042 (handle_search_memory_1): Adjust.
13043 (process_serial_event) <'m' packet>: Handle partial transfers.
13044 * tracepoint.c (traceframe_read_mem): Handle partial transfers.
13045
1c79eb8a
PA
130462011-01-28 Pedro Alves <pedro@codesourcery.com>
13047
13048 * regcache.c (init_register_cache): Initialize
13049 regcache->register_status.
13050 (free_register_cache): Release regcache->register_status.
13051 (regcache_cpy): Copy register_status.
13052 (registers_to_string): Print 'x's for unavailable registers.
13053 (supply_register): Mark the register's status valid or
13054 unavailable, depending on whether a buffer was passed in or not.
13055 (supply_register_zeroed): New.
13056 (supply_regblock): Mark the registers' status valid or
13057 unavailable, depending on whether a buffer was passed in or not.
13058 * regcache.h (REG_UNAVAILABLE, REG_VALID): New defines.
13059 (struct regcache): New `register_status' field.
13060 (supply_register_zeroed): Declare.
13061 * i387-fp.c (i387_xsave_to_cache): Zero out registers using
13062 supply_register_zeroed, rather than passing a NULL buffer to
13063 supply_register.
13064 * tracepoint.c (fetch_traceframe_registers): Update comment.
13065
85724a0e
PA
130662011-01-28 Pedro Alves <pedro@codesourcery.com>
13067
13068 * i387-fp.c (i387_xsave_to_cache): Make passing NULL as register
13069 buffer explicit.
13070
d08aafef
PA
130712011-01-25 Pedro Alves <pedro@codesourcery.com>
13072
13073 * server.h (decode_xfer_write): Change prototype.
13074 * remote-utils.c (decode_xfer_write): Remove `annex' parameter,
13075 and don't extract the annex here.
13076 * server.c (decode_xfer_read): Remove `annex' parameter,
13077 and don't extract the annex here.
13078 (decode_xfer): New.
13079 (struct qxfer): New.
13080 (handle_qxfer_auxv, handle_qxfer_features, handle_qxfer_libraries)
13081 (handle_qxfer_osdata, handle_qxfer_siginfo, handle_qxfer_spu)
13082 (handle_qxfer_statictrace): New functions, abstracted out from
13083 handle_query, and made to use the struct qxfer interface.
13084 (handle_threads_qxfer_proper): Rename to ...
13085 (handle_qxfer_threads_proper): ... this.
13086 (handle_threads_qxfer): Rename to ...
13087 (handle_qxfer_threads): ... this. Adjust.
13088 (qxfer_packets): New array.
13089 (handle_qxfer): New function.
13090 (handle_query): Use handle_qxfer.
13091
493e2a69
MS
130922011-01-05 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
13093
13094 * gdbreplay.c: Shorten lines of >= 80 columns.
13095 * linux-low.c: Ditto.
13096 * linux-ppc-low.c: Ditto.
13097 * linux-s390-low.c: Ditto.
13098 * linux-sparc-low.c: Ditto.
13099 * linux-x86-low.c: Ditto.
13100 * linux-xtensa-low.c: Ditto.
13101 * mem-break.c: Ditto.
13102 * nto-low.c: Ditto.
13103 * regcache.h: Ditto.
13104 * remote-utils.c: Ditto.
13105 * server.c: Ditto.
13106 * server.h: Ditto.
13107 * thread-db.c: Ditto.
13108 * tracepoint.c: Ditto.
13109 * utils.c: Ditto.
13110 * win32-low.h: Ditto.
13111
44944448
JB
131122011-01-05 Joel Brobecker <brobecker@adacore.com>
13113
13114 * gdbserver/configure.ac, gdbserver/gdbserver.1: Copyright year
13115 update.
13116
71ce852c
JB
131172011-01-01 Joel Brobecker <brobecker@adacore.com>
13118
13119 * server.c (gdbserver_version): Update copyright year in version
13120 output.
13121 * gdbreplay.c (gdbreplay_version): Ditto.
13122
eb826dc6
MF
131232010-12-29 Jie Zhang <jie.zhang@analog.com>
13124
13125 * configure.srv (bfin-*-*linux*): Handle Blackfin/Linux targets.
13126 * linux-bfin-low.c: New file.
13127 * linux-low.c: Define PT_TEXT_ADDR, PT_TEXT_END_ADDR, and
13128 PT_DATA_ADDR for BFIN targets.
13129 * Makefile.in (SFILES): Add linux-bfin-low.c.
13130 (clean): Remove reg-bfin.c.
13131 (linux-bfin-low.o, reg-bfin.o, reg-bfin.c): New targets.
13132 * README: Mention supported Blackfin targets.
13133
39ab222a
MF
131342010-12-23 Mike Frysinger <vapier@gentoo.org>
13135
13136 * .gitignore: New file.
13137
a1f2ce7d
MF
131382010-11-16 Mike Frysinger <vapier@gentoo.org>
13139
13140 * linux-low.c (linux_tracefork_child): Add char* cast to arg.
13141
f474844c
JZ
131422010-10-22 Jie Zhang <jie@codesourcery.com>
13143
13144 * Makefile.in: Add FLAGS_TO_PASS variable.
13145 (install): Remove dependency of install-only and recursively
13146 invoke make for install-only.
13147
f1048712
DE
131482010-10-04 Doug Evans <dje@google.com>
13149
13150 * Makefile.in (uninstall): Use $(DESTDIR).
13151
b53a1623
PA
131522010-09-24 Pedro Alves <pedro@codesourcery.com>
13153
e6ee044d
PA
13154 PR gdb/11842
13155
b53a1623
PA
13156 * linux-x86-low.c (compat_siginfo_from_siginfo)
13157 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
13158 si_code is < 0. Check for si_code == SI_TIMER before checking for
13159 si_code < 0.
13160
fa1bd1e4
JB
131612010-09-13 Joel Brobecker <brobecker@adacore.com>
13162
13163 * lynx-i386-low.c: New file.
13164 * configure.srv: Add handling of i[34567]86-*-lynxos* targets.
13165
47fac8f8
JB
131662010-09-13 Joel Brobecker <brobecker@adacore.com>
13167
13168 * lynx-low.c (ptrace_request_to_str): Remove handling for
13169 request values that have been removed in LynxOS 5.x.
13170
1adfc54d
JB
131712010-09-13 Joel Brobecker <brobecker@adacore.com>
13172
13173 * lynx-low.c, lynx-ppc-loc.c: Include <sys/ptrace.h> instead of
13174 <ptrace.h>
13175
c2a66c29
NS
131762010-09-09 Nathan Sidwell <nathan@codesourcery.com>
13177
13178 * configure.ac: Add --enable-inprocess-agent option.
13179 * configure: Rebuilt.
13180
32fcada3
YQ
131812010-09-06 Yao Qi <yao@codesourcery.com>
13182
13183 * linux-low.c (linux_kill): Remove unused variable.
13184 (linux_stabilize_threads): Likewise.
13185 * server.c (start_inferior): Likewise.
13186 (queue_stop_reply_callback): Likewise.
13187 * tracepoint.c (do_action_at_tracepoint): Likewise.
13188
0cccb683
YQ
131892010-09-06 Yao Qi <yao@codesourcery.com>
13190
13191 * linux-low.c (maybe_move_out_of_jump_pad): Restore current_inferior
13192 on return.
13193
423ec54c
JK
131942010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
13195
13196 * target.c (mywait) <TARGET_WAITKIND_EXITED>: Fix to use INTEGER.
13197
12ac6819
PA
131982010-09-06 Pedro Alves <pedro@codesourcery.com>
13199
13200 * Makefile.in (install-only): Replace $IPA_DEPFILES with
13201 "$(IPA_DEPFILES)".
13202
8ed54b31
JB
132032010-09-01 Joel Brobecker <brobecker@adacore.com>
13204
13205 * gdbserver/lynx-low.c, gdbserver/lynx-low.h,
13206 gdbserver/lynx-ppc-low.c: New files.
13207 * Makefile.in (lynx_low_h): New variable.
13208 (lynx-low.o, lynx-ppc-low.o): New rules.
13209 * configure.ac: On LynxOS, link with -lnetinet.
13210 * configure.srv: Add handling of powerpc-*-lynxos* targets.
13211 * configure: regenerate.
13212
bb0116a4
JB
132132010-09-01 Joel Brobecker <brobecker@adacore.com>
13214
13215 * Makefile.in (vasprintf.o, vsnprintf.o): New rules.
13216 * configure.ac: Add check for vasprintf and vsnprintf.
13217 * configure, config.in: Regenerate.
13218 * server.h (vasprintf, vsnprintf): Add conditional declarations.
13219
a778ab81 132202010-09-01 Joel Brobecker <brobecker@adacore.com>
13221
13222 * gdbreplay.c: Move include of alloca.h up, next to include of
13223 malloc.h.
13224 * server.h: Add include of malloc.h.
13225 * mem-break.c: Remove include of malloc.h.
13226 * server.c, tracepoint.c, utils.c, win32-low.c: Likewise.
13227
8b034a19 132282010-09-01 Joel Brobecker <brobecker@adacore.com>
13229
13230 * Makefile.in (memmem.o): Build with -Wno-error.
13231
132322010-09-01 Joel Brobecker <brobecker@adacore.com>
13233
13234 * utils.c (xsnprintf): Make non-static.
13235 * server.h: Add xsnprintf declaration.
13236 * linux-low.c, nto-low.c, target.c, thread-db.c, tracepoint.c:
13237 replace calls to snprintf by calls to xsnprintf throughout.
13238
132392010-09-01 Joel Brobecker <brobecker@adacore.com>
13240
13241 * configure.ac: Add configure check for alloca.
13242 * configure, config.in: Regenerate.
13243 * server.h: Include alloca.h if it exists.
13244 * gdbreplay.c: Include alloca.h if it exists.
13245
1a981360
PA
132462010-08-28 Pedro Alves <pedro@codesourcery.com>
13247
13248 * linux-low.c (__SIGRTMIN): Define if not already defined.
13249 (linux_create_inferior): Check for __ANDROID__ rather than
13250 __SIGRTMIN.
13251 (enqueue_one_deferred_signal): Don't requeue non-RT signals that
13252 are already deferred.
13253 (linux_wait_1): Check for __ANDROID__ rather than __SIGRTMIN.
13254 (linux_resume_one_thread): Don't queue a SIGSTOP if the lwp is
13255 stopped and already has a pending signal to report.
13256 (proceed_one_lwp): : Don't queue a SIGSTOP if the lwp already has
13257 a pending signal to report or is moving out of a jump pad.
13258 (linux_init_signals): Check for __ANDROID__ rather than
13259 __SIGRTMIN.
13260
b4d51a55
PA
132612010-08-28 Pedro Alves <pedro@codesourcery.com>
13262
13263 * linux-low.c (linux_stabilize_threads): Wrap debug output in a
13264 debug_threads check. Avoid a linear search when not doing debug
13265 output.
13266
ec48365d
PA
132672010-08-27 Pedro Alves <pedro@codesourcery.com>
13268
13269 * event-loop.c (event_handle_func): Adjust to use gdb_fildes_t.
13270 (struct gdb_event) <fd>: Change type to gdb_fildes_t.
13271 (struct file_handler) <fd>: Change type to gdb_fildes_t.
13272 (process_event): Change local fd's type to gdb_fildes_t.
13273 (create_file_handler): Adjust prototype.
13274 (delete_file_handler): Adjust prototype.
13275 (handle_file_event): Adjust prototype. Use pfildes.
13276 (create_file_event): Adjsut prototype.
13277 * remote-utils.c (remote_desc, listen_desc): Change type to
13278 gdb_fildes_t.
13279 * server.h: New gdb_fildes_t typedef.
13280 [USE_WIN32API]: Include winsock2.h.
13281 (delete_file_handler, add_file_handler): Adjust prototypes.
13282 (pfildes): Declare.
13283 * utils.c (pfildes): New.
13284
854d88f0
PA
132852010-08-27 Pedro Alves <pedro@codesourcery.com>
13286
13287 * configure.ac (build_warnings): Add -Wno-char-subscripts.
13288 * configure: Regenerate.
13289
0146f85b
PA
132902010-08-27 Pedro Alves <pedro@codesourcery.com>
13291
13292 * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
13293 (linux_done_accessing_memory): ... this.
13294 (linux_target_ops): Adjust.
13295 * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
13296 * nto-low.c (nto_target_ops): Adjust comment.
13297 * server.c (gdb_read_memory, gdb_write_memory): Adjust.
13298 * spu-low.c (spu_target_ops): Adjust comment.
13299 * target.h (target_ops): Rename unprepare_to_access_memory field
13300 to done_accessing_memory.
13301 (unprepare_to_access_memory): Rename to ...
13302 (done_accessing_memory): ... this.
13303
90d74c30
PA
133042010-08-26 Pedro Alves <pedro@codesourcery.com>
13305
13306 * linux-low.c (linux_prepare_to_access_memory): New.
13307 (linux_unprepare_to_access_memory): New.
13308 (linux_target_ops): Install them.
13309 * server.c (read_memory): Rename to ...
13310 (gdb_read_memory): ... this. Use
13311 prepare_to_access_memory/prepare_to_access_memory.
13312 (write_memory): Rename to ...
13313 (gdb_write_memory): ... this. Use
13314 prepare_to_access_memory/prepare_to_access_memory.
13315 (handle_search_memory_1): Adjust.
13316 (process_serial_event): Adjust.
13317 * target.h (struct target_ops): New fields
13318 prepare_to_access_memory and unprepare_to_access_memory.
13319 (prepare_to_access_memory, unprepare_to_access_memory): New.
13320 * linux-x86-low.c (x86_insert_point, x86_remove_point): Use
13321 prepare_to_access_memory/prepare_to_access_memory.
13322 * nto-low.c (nto_target_ops): Adjust.
13323 * spu-low.c (spu_target_ops): Adjust.
13324 * win32-low.c (win32_target_ops): Adjust.
13325
fd467969
PA
133262010-08-26 Pedro Alves <pedro@codesourcery.com>
13327
13328 * Makefile.in (WARN_CFLAGS): Get it from configure.
13329 (WERROR_CFLAGS): New.
13330 (INTERNAL_CFLAGS): Add WERROR_CFLAGS.
13331 * configure.ac: Introduce --enable-werror, which adds -Werror to
13332 the compiler command line. Enabled by default. Disable with
13333 --disable-werror. Add -Wdeclaration-after-statement
13334 Wpointer-arith and -Wformat-nonliteral to warning flags.
13335 * configure: Regenerate.
13336
331e2f5f
PA
133372010-08-26 Pedro Alves <pedro@codesourcery.com>
13338
13339 * mem-break.c [HAVE_MALLOC_H]: Include malloc.h.
13340
e581f2b4
PA
133412010-08-26 Pedro Alves <pedro@codesourcery.com>
13342
13343 * gdbreplay.c (remote_error): New.
13344 (gdbchar): New.
13345 (expect): Use gdbchar. Check for error reading from GDB.
13346 Clarify sync error output.
13347 (play): Check for errors writing to GDB.
13348 * linux-low.c (sigchld_handler): Really ignore `write' errors.
13349 * remote-utils.c (getpkt): Check for errors writing to the remote
13350 descriptor.
13351
3c11dd79
PA
133522010-08-25 Pedro Alves <pedro@codesourcery.com>
13353
13354 * linux-low.c (linux_wait_1): Move non-debugging code out of
13355 `debug_threads' control.
13356
d20a8ad9
PA
133572010-08-25 Pedro Alves <pedro@codesourcery.com>
13358
13359 * linux-low.c (linux_wait_1): Don't set last_status here.
13360 * server.c (push_event, queue_stop_reply_callback): Assert we're
13361 not pushing a TARGET_WAITKIND_IGNORE event.
13362 (start_inferior, start_inferior, attach_inferior, handle_v_cont)
13363 (myresume, handle_target_event): Set the thread's last_resume_kind
13364 and last_status from the target returned status.
13365
964e4306
PA
133662010-08-25 Pedro Alves <pedro@codesourcery.com>
13367
13368 PR threads/10729
13369
13370 * linux-x86-low.c (update_debug_registers_callback): New.
13371 (i386_dr_low_set_addr): Use it.
13372 (i386_dr_low_get_addr): New.
13373 (i386_dr_low_set_control): Use update_debug_registers_callback.
13374 (i386_dr_low_get_control): New.
13375 (i386_dr_low_get_status): Adjust.
13376 * linux-low.c (linux_stop_lwp): New.
13377 * linux-low.h (linux_stop_lwp): Declare.
13378
13379 * i386-low.c (I386_DR_GET_RW_LEN): Take the dr7 contents as
13380 argument instead of a i386_debug_reg_state.
13381 (I386_DR_WATCH_HIT): Take the dr6 contents as argument instead of
13382 a i386_debug_reg_state.
13383 (i386_insert_aligned_watchpoint): Adjust.
13384 (i386_remove_aligned_watchpoint): Adjust.
13385 (i386_low_stopped_data_address): Read the debug registers from the
13386 inferior instead of from the mirrors.
13387 * i386-low.h (struct i386_debug_reg_state): Extend comment.
13388 (i386_dr_low_get_addr): Declare.
13389 (i386_dr_low_get_control): Declare.
13390 (i386_dr_low_get_status): Change prototype.
13391
13392 * win32-i386-low.c (dr_status_mirror, dr_control_mirror): New globals.
13393 (i386_dr_low_get_addr): New.
13394 (i386_dr_low_get_control): New.
13395 (i386_dr_low_get_status): Adjust prototype. Return
13396 dr_status_mirror.
13397 (i386_initial_stuff): Clear dr_status_mirror and
13398 dr_control_mirror.
13399 (i386_get_thread_context): Adjust.
13400 (i386_set_thread_context): Adjust.
13401 (i386_thread_added): Adjust.
13402
5f21a75b
PA
134032010-08-24 Pedro Alves <pedro@codesourcery.com>
13404
13405 * linux-low.h (linux_thread_area): Delete declaration.
13406
3e4c1235
TS
134072010-08-11 Thomas Schwinge <thomas@codesourcery.com>
13408
13409 * linux-low.c (linux_wait_1): Correctly return the ptid of the child
13410 after its termination.
13411
1971b033
PA
134122010-08-09 Pedro Alves <pedro@codesourcery.com>
13413
13414 * linux-low.c (gdb_wants_lwp_stopped): Delete.
13415 (gdb_wants_all_stopped): Delete.
13416 (linux_wait_1): Don't call them.
13417 * server.c (handle_v_cont): Tag all threads as want-stopped.
13418 (gdb_wants_thread_stopped): Fix comments. Tag the thread that
13419 stopped as "client-wants-stopped".
13420
310444ac
PA
134212010-07-31 Pedro Alves <pedro@codesourcery.com>
13422
13423 * Makefile.in (signals_h): New.
13424 (server_h): Depend on it.
13425 (server.o): Don't depend on $(signals_def).
13426 (signals.o): Depend on $(signals_def).
13427
a19cae16
JK
134282010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
13429
13430 * Makefile.in (signals_def): New.
13431 (server_h): Append include/gdb/signals.h and signals_def.
13432 (server.o): Append signals_def.
13433
30d50328
JK
134342010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
13435
13436 * server.c (handle_target_event): Use target_signal_to_host for
13437 resume_info.sig initialization.
13438 * target.h (struct thread_resume) <sig>: New comment.
13439
5c3216e2
OS
134402010-07-20 Ozkan Sezer <sezeroz@gmail.com>
13441
c6f46ca0
OS
13442 * server.c (handle_query): strcpy() the returned string from paddress()
13443 instead of sprintf().
5c3216e2
OS
13444 * utils.c (paddress): Return phex_nz().
13445
6bd31874
JB
134462010-07-07 Joel Brobecker <brobecker@adacore.com>
13447
13448 * server.c (handle_v_cont): Call mourn_inferior if process
13449 just exited.
13450 (myresume): Likewise.
13451
0fb4aa4b
PA
134522010-07-01 Pedro Alves <pedro@codesourcery.com>
13453
13454 Static tracepoints, and integration with UST.
13455
13456 * configure.ac: Handle --with-ust. substitute ustlibs and ustinc.
13457 * mem-break.c (uninsert_all_breakpoints)
13458 (reinsert_all_breakpoints): New.
13459 * mem-break.h (reinsert_all_breakpoints, uninsert_all_breakpoints):
13460 * tracepoint.c (ust_loaded, helper_thread_id, cmd_buf): New.
13461 (gdb_agent_ust_loaded, helper_thread_id)
13462 (gdb_agent_helper_thread_id): New macros.
13463 (struct ipa_sym_addresses): Add addr_ust_loaded,
13464 addr_helper_thread_id, addr_cmd_buf.
13465 (symbol_list): Add ust_loaded, helper_thread_id, cmd_buf.
13466 (in_process_agent_loaded_ust): New.
13467 (write_e_ust_not_loaded): New.
13468 (maybe_write_ipa_ust_not_loaded): New.
13469 (struct collect_static_trace_data_action): New.
13470 (enum tracepoint_type) <static_tracepoint>: New.
13471 (struct tracepoint) <handle>: Mention static tracepoints.
13472 (struct static_tracepoint_ctx): New.
13473 (CMD_BUF_SIZE): New.
13474 (add_tracepoint_action): Handle static tracepoint actions.
13475 (unprobe_marker_at): New.
13476 (clear_installed_tracepoints): Handle static tracepoints.
13477 (cmd_qtdp): Handle static tracepoints.
13478 (probe_marker_at): New.
13479 (cmd_qtstart): Handle static tracepoints.
13480 (response_tracepoint): Handle static tracepoints.
13481 (cmd_qtfstm, cmd_qtsstm, cmd_qtstmat): New.
13482 (handle_tracepoint_query): Handle qTfSTM, qTsSTM and qTSTMat.
13483 (get_context_regcache): Handle static tracepoints.
13484 (do_action_at_tracepoint): Handle static tracepoint actions.
13485 (traceframe_find_block_type): Handle static trace data blocks.
13486 (traceframe_read_sdata): New.
13487 (download_tracepoints): Download static tracepoint actions.
13488 [HAVE_UST] Include ust/ust.h, dlfcn.h, sys/socket.h, and sys/un.h.
13489 (GDB_PROBE_NAME): New.
13490 (ust_ops): New.
13491 (GET_UST_SYM): New.
13492 (USTF): New.
13493 (dlsym_ust): New.
13494 (ust_marker_to_static_tracepoint): New.
13495 (gdb_probe): New.
13496 (collect_ust_data_at_tracepoint): New.
13497 (gdb_ust_probe): New.
13498 (UNIX_PATH_MAX, SOCK_DIR): New.
13499 (gdb_ust_connect_sync_socket): New.
13500 (resume_thread, stop_thread): New.
13501 (run_inferior_command): New.
13502 (init_named_socket): New.
13503 (gdb_ust_socket_init): New.
13504 (cstr_to_hexstr): New.
13505 (next_st): New.
13506 (first_marker, next_marker): New.
13507 (response_ust_marker): New.
13508 (cmd_qtfstm, cmd_qtsstm): New.
13509 (unprobe_marker_at, probe_marker_at): New.
13510 (cmd_qtstmat, gdb_ust_thread): New.
13511 (gdb_ust_init): New.
13512 (initialize_tracepoint_ftlib): Call gdb_ust_init.
13513 * linux-amd64-ipa.c [HAVE_UST]: Include ust/processor.h
13514 (ST_REGENTRY): New.
13515 (x86_64_st_collect_regmap): New.
13516 (X86_64_NUM_ST_COLLECT_GREGS): New.
13517 (AMD64_RIP_REGNUM): New.
13518 (supply_static_tracepoint_registers): New.
13519 * linux-i386-ipa.c [HAVE_UST]: Include ust/processor.h
13520 (ST_REGENTRY): New.
13521 (i386_st_collect_regmap): New.
13522 (i386_NUM_ST_COLLECT_GREGS): New.
13523 (supply_static_tracepoint_registers): New.
13524 * server.c (handle_query): Handle qXfer:statictrace:read.
13525 <qSupported>: Report support for StaticTracepoints, and
13526 qXfer:statictrace:read features.
13527 * server.h (traceframe_read_sdata)
13528 (supply_static_tracepoint_registers): Declare.
13529 * remote-utils.c (convert_int_to_ascii, hexchars, ishex, tohex)
13530 (unpack_varlen_hex): Include in IPA build.
13531 * Makefile.in (ustlibs, ustinc): New.
13532 (IPA_OBJS): Add remote-utils-ipa.o.
13533 ($(IPA_LIB)): Link -ldl and -lpthread.
13534 (UST_CFLAGS): New.
13535 (IPAGENT_CFLAGS): Add UST_CFLAGS.
13536 * config.in, configure: Regenerate.
13537
9e4344e5
PA
135382010-06-20 Ian Lance Taylor <iant@google.com>
13539 Pedro Alves <pedro@codesourcery.com>
13540
13541 * linux-x86-low.c (always_true): Delete.
13542 (EMIT_ASM, EMIT_ASM32): Use an uncondition asm jmp instead of
13543 trying to fool the compiler with always_true.
13544
c6beb2cb
PA
135452010-06-20 Pedro Alves <pedro@codesourcery.com>
13546
13547 * tracepoint.c (condition_true_at_tracepoint): Don't run compiled
13548 conditions in gdbserver.
13549
d2ed6730
UW
135502010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
13551
13552 * spu-low.c (spu_read_memory): Wrap around local store limit.
13553 (spu_write_memory): Likewise.
13554
4e29fb54
PA
135552010-06-15 Pedro Alves <pedro@codesourcery.com>
13556
13557 * linux-x86-low.c (amd64_emit_const, amd64_emit_void_call_2)
13558 (i386_emit_const, i386_emit_void_call_2): Replace int64_t uses with
13559 LONGEST uses.
13560 * server.h (struct emit_ops): Replace int64_t uses with LONGEST
13561 uses.
13562 * tracepoint.c (emit_const, emit_void_call_2): Replace int64_t
13563 uses with LONGEST uses.
13564
6a271cae
PA
135652010-06-14 Stan Shebs <stan@codesourcery.com>
13566 Pedro Alves <pedro@codesourcery.com>
13567
13568 Bytecode compiler.
13569
13570 * linux-x86-low.c: Include limits.h.
13571 (add_insns): New.
13572 (always_true): New.
13573 (EMIT_ASM): New.
13574 (EMIT_ASM32): New.
13575 (amd64_emit_prologue, amd64_emit_epilogue, amd64_emit_add)
13576 (amd64_emit_sub, amd64_emit_mul, amd64_emit_lsh)
13577 (amd64_emit_rsh_signed, amd64_emit_rsh_unsigned, amd64_emit_ext,
13578 (amd64_emit_log_not, amd64_emit_bit_and, amd64_emit_bit_or)
13579 (amd64_emit_bit_xor, amd64_emit_bit_not, amd64_emit_equal,
13580 (amd64_emit_less_signed, amd64_emit_less_unsigned, amd64_emit_ref,
13581 (amd64_emit_if_goto, amd64_emit_goto, amd64_write_goto_address)
13582 (amd64_emit_const, amd64_emit_call, amd64_emit_reg)
13583 (amd64_emit_pop, amd64_emit_stack_flush, amd64_emit_zero_ext)
13584 (amd64_emit_swap, amd64_emit_stack_adjust, amd64_emit_int_call_1)
13585 (amd64_emit_void_call_2): New.
13586 (amd64_emit_ops): New.
13587 (i386_emit_prologue, i386_emit_epilogue, i386_emit_add)
13588 (i386_emit_sub,i386_emit_mul, i386_emit_lsh, i386_emit_rsh_signed)
13589 (i386_emit_rsh_unsigned, i386_emit_ext, i386_emit_log_not)
13590 (i386_emit_bit_and, i386_emit_bit_or, i386_emit_bit_xor)
13591 (i386_emit_bit_not, i386_emit_equal, i386_emit_less_signed)
13592 (i386_emit_less_unsigned, i386_emit_ref, i386_emit_if_goto)
13593 (i386_emit_goto, i386_write_goto_address, i386_emit_const)
13594 (i386_emit_call, i386_emit_reg, i386_emit_pop)
13595 (i386_emit_stack_flush, i386_emit_zero_ext, i386_emit_swap)
13596 (i386_emit_stack_adjust, i386_emit_int_call_1)
13597 (i386_emit_void_call_2): New.
13598 (i386_emit_ops): New.
13599 (x86_emit_ops): New.
13600 (the_low_target): Install x86_emit_ops.
13601 * server.h (struct emit_ops): New.
13602 (get_raw_reg_func_addr): Declare.
13603 (current_insn_ptr, emit_error): Declare.
13604 * tracepoint.c (get_raw_reg, get_trace_state_variable_value)
13605 (set_trace_state_variable_value): New defines.
13606 (struct ipa_sym_addresses): New fields addr_get_raw_reg,
13607 addr_get_trace_state_variable_value and
13608 addr_set_trace_state_variable_value.
13609 (symbol_list): New fields for get_raw_reg,
13610 get_trace_state_variable_value and set_trace_state_variable_value.
13611 (condfn): New typedef.
13612 (struct tracepoint): New field `compiled_cond'.
13613 (do_action_at_tracepoint): Clear compiled_cond.
13614 (get_trace_state_variable_value, set_trace_state_variable_value):
13615 Export in the IPA.
13616 (condition_true_at_tracepoint): If there's a compiled condition,
13617 run that.
13618 (current_insn_ptr, emit_error): New globals.
13619 (struct bytecode_address): New.
13620 (get_raw_reg_func_addr): New.
13621 (emit_prologue, emit_epilogue, emit_add, emit_sub, emit_mul)
13622 (emit_lsh, emit_rsh_signed, emit_rsh_unsigned, emit_ext)
13623 (emit_log_not, emit_bit_and, emit_bit_or, emit_bit_xor)
13624 (emit_bit_not, emit_equal, emit_less_signed, emit_less_unsigned)
13625 (emit_ref, emit_if_goto, emit_goto, write_goto_address, emit_const)
13626 (emit_reg, emit_pop, emit_stack_flush, emit_zero_ext, emit_swap)
13627 (emit_stack_adjust, emit_int_call_1, emit_void_call_2): New.
13628 (compile_tracepoint_condition, compile_bytecodes): New.
13629 * target.h (emit_ops): Forward declare.
13630 (struct target_ops): New field emit_ops.
13631 (target_emit_ops): New.
13632 * linux-amd64-ipa.c (gdb_agent_get_raw_reg): New.
13633 * linux-i386-ipa.c (gdb_agent_get_raw_reg): New.
13634 * linux-low.c (linux_emit_ops): New.
13635 (linux_target_ops): Install it.
13636 * linux-low.h (struct linux_target_ops): New field emit_ops.
13637
92b72907
UW
136382010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
13639
13640 * linux-ppc-low.c (ppc_arch_setup): Use private regcache to test MSR.
13641 * linux-s390-low.c (ppc_arch_setup): Use private regcache to test PSW.
13642
fa593d66
PA
136432010-06-01 Pedro Alves <pedro@codesourcery.com>
13644 Stan Shebs <stan@codesourcery.com>
13645
13646 * Makefile.in (IPA_DEPFILES, extra_libraries): New.
13647 (all): Depend on $(extra_libraries).
13648 (install-only): Install the IPA.
13649 (IPA_OBJS, IPA_LIB): New.
13650 (clean): Remove the IPA lib.
13651 (IPAGENT_CFLAGS): New.
13652 (tracepoint-ipa.o, utils-ipa.o, remote-utils-ipa.o)
13653 (regcache-ipa.o, i386-linux-ipa.o, linux-i386-ipa.o)
13654 (linux-amd64-ipa.o, amd64-linux-ipa.o): New rules.
13655 * linux-amd64-ipa.c, linux-i386-ipa.c: New files.
13656 * configure.ac: Check for atomic builtins support in the compiler.
13657 (IPA_DEPFILES, extra_libraries): Define.
13658 * configure.srv (ipa_obj): Add description.
13659 (ipa_i386_linux_regobj, ipa_amd64_linux_regobj): Define.
13660 (i[34567]86-*-linux*): Set ipa_obj.
13661 (x86_64-*-linux*): Set ipa_obj.
13662 * linux-low.c (stabilizing_threads): New.
13663 (supports_fast_tracepoints): New.
13664 (linux_detach): Stabilize threads before detaching.
13665 (handle_tracepoints): Handle internal tracing breakpoints. Assert
13666 the lwp is either not stabilizing, or is moving out of a jump pad.
13667 (linux_fast_tracepoint_collecting): New.
13668 (maybe_move_out_of_jump_pad): New.
13669 (enqueue_one_deferred_signal): New.
13670 (dequeue_one_deferred_signal): New.
13671 (linux_wait_for_event_1): If moving out of a jump pad, defer
13672 pending signals to later.
13673 (linux_stabilize_threads): New.
13674 (linux_wait_1): Check if threads need moving out of jump pads, and
13675 do it if so.
13676 (stuck_in_jump_pad_callback): New.
13677 (move_out_of_jump_pad_callback): New.
13678 (lwp_running): New.
13679 (linux_resume_one_lwp): Handle moving out of jump pads.
13680 (linux_set_resume_request): Dequeue deferred signals.
13681 (need_step_over_p): Also step over fast tracepoint jumps.
13682 (start_step_over): Also uninsert fast tracepoint jumps.
13683 (finish_step_over): Also reinsert fast tracepoint jumps.
13684 (linux_install_fast_tracepoint_jump): New.
13685 (linux_target_ops): Install linux_stabilize_threads and
13686 linux_install_fast_tracepoint_jump_pad.
13687 * linux-low.h (linux_target_ops) <get_thread_area,
13688 install_fast_tracepoint_jump_pad>: New fields.
13689 (struct lwp_info) <collecting_fast_tracepoint,
13690 pending_signals_to_report, exit_jump_pad_bkpt>: New fields.
13691 (linux_get_thread_area): Declare.
13692 * linux-x86-low.c (jump_insn): New.
13693 (x86_get_thread_area): New.
13694 (append_insns): New.
13695 (push_opcode): New.
13696 (amd64_install_fast_tracepoint_jump_pad): New.
13697 (i386_install_fast_tracepoint_jump_pad): New.
13698 (x86_install_fast_tracepoint_jump_pad): New.
13699 (the_low_target): Install x86_get_thread_area and
13700 x86_install_fast_tracepoint_jump_pad.
13701 * mem-break.c (set_raw_breakpoint_at): Use read_inferior_memory.
13702 (struct fast_tracepoint_jump): New.
13703 (fast_tracepoint_jump_insn): New.
13704 (fast_tracepoint_jump_shadow): New.
13705 (find_fast_tracepoint_jump_at): New.
13706 (fast_tracepoint_jump_here): New.
13707 (delete_fast_tracepoint_jump): New.
13708 (set_fast_tracepoint_jump): New.
13709 (uninsert_fast_tracepoint_jumps_at): New.
13710 (reinsert_fast_tracepoint_jumps_at): New.
13711 (set_breakpoint_at): Use write_inferior_memory.
13712 (uninsert_raw_breakpoint): Use write_inferior_memory.
13713 (check_mem_read): Mask out fast tracepoint jumps.
13714 (check_mem_write): Mask out fast tracepoint jumps.
13715 * mem-break.h (struct fast_tracepoint_jump): Forward declare.
13716 (set_fast_tracepoint_jump): Declare.
13717 (delete_fast_tracepoint_jump)
13718 (fast_tracepoint_jump_here, uninsert_fast_tracepoint_jumps_at)
13719 (reinsert_fast_tracepoint_jumps_at): Declare.
13720 * regcache.c: Don't compile many functions when building the
13721 in-process agent library.
13722 (init_register_cache) [IN_PROCESS_AGENT]: Don't allow allocating
13723 the register buffer in the heap.
13724 (free_register_cache): If the register buffer isn't owned by the
13725 regcache, don't free it.
13726 (set_register_cache) [IN_PROCESS_AGENT]: Don't re-alocate
13727 pre-existing register caches.
13728 * remote-utils.c (convert_int_to_ascii): Constify `from' parameter
13729 type.
13730 (convert_ascii_to_int): : Constify `from' parameter type.
13731 (decode_M_packet, decode_X_packet): Replace the `to' parameter by
13732 a `to_p' pointer to pointer parameter. If TO_P is NULL, malloc
13733 the needed buffer in-place.
13734 (relocate_instruction): New.
13735 * server.c (handle_query) <qSymbols>: If the target supports
13736 tracepoints, give it a chance of looking up symbols. Report
13737 support for fast tracepoints.
13738 (handle_status): Stabilize threads.
13739 (process_serial_event): Adjust.
13740 * server.h (struct fast_tracepoint_jump): Forward declare.
13741 (struct process_info) <fast_tracepoint_jumps>: New field.
13742 (convert_ascii_to_int, convert_int_to_ascii): Adjust.
13743 (decode_X_packet, decode_M_packet): Adjust.
13744 (relocate_instruction): Declare.
13745 (in_process_agent_loaded): Declare.
13746 (tracepoint_look_up_symbols): Declare.
13747 (struct fast_tpoint_collect_status): Declare.
13748 (fast_tracepoint_collecting): Declare.
13749 (force_unlock_trace_buffer): Declare.
13750 (handle_tracepoint_bkpts): Declare.
13751 (initialize_low_tracepoint)
13752 (supply_fast_tracepoint_registers) [IN_PROCESS_AGENT]: Declare.
13753 * target.h (struct target_ops) <stabilize_threads,
13754 install_fast_tracepoint_jump_pad>: New fields.
13755 (stabilize_threads, install_fast_tracepoint_jump_pad): New.
13756 * tracepoint.c [HAVE_MALLOC_H]: Include malloc.h.
13757 [HAVE_STDINT_H]: Include stdint.h.
13758 (trace_debug_1): Rename to ...
13759 (trace_vdebug): ... this.
13760 (trace_debug): Rename to ...
13761 (trace_debug_1): ... this. Add `level' parameter.
13762 (trace_debug): New.
13763 (ATTR_USED, ATTR_NOINLINE): New.
13764 (IP_AGENT_EXPORT): New.
13765 (gdb_tp_heap_buffer, gdb_jump_pad_buffer, gdb_jump_pad_buffer_end)
13766 (collecting, gdb_collect, stop_tracing, flush_trace_buffer)
13767 (about_to_request_buffer_space, trace_buffer_is_full)
13768 (stopping_tracepoint, expr_eval_result, error_tracepoint)
13769 (tracepoints, tracing, trace_buffer_ctrl, trace_buffer_ctrl_curr)
13770 (trace_buffer_lo, trace_buffer_hi, traceframe_read_count)
13771 (traceframe_write_count, traceframes_created)
13772 (trace_state_variables)
13773 New renaming defines.
13774 (struct ipa_sym_addresses): New.
13775 (STRINGIZE_1, STRINGIZE, IPA_SYM): New.
13776 (symbol_list): New.
13777 (ipa_sym_addrs): New.
13778 (all_tracepoint_symbols_looked_up): New.
13779 (in_process_agent_loaded): New.
13780 (write_e_ipa_not_loaded): New.
13781 (maybe_write_ipa_not_loaded): New.
13782 (tracepoint_look_up_symbols): New.
13783 (debug_threads) [IN_PROCESS_AGENT]: New.
13784 (read_inferior_memory) [IN_PROCESS_AGENT]: New.
13785 (UNKNOWN_SIDE_EFFECTS): New.
13786 (stop_tracing): New.
13787 (flush_trace_buffer): New.
13788 (stop_tracing_bkpt): New.
13789 (flush_trace_buffer_bkpt): New.
13790 (read_inferior_integer): New.
13791 (read_inferior_uinteger): New.
13792 (read_inferior_data_pointer): New.
13793 (write_inferior_data_pointer): New.
13794 (write_inferior_integer): New.
13795 (write_inferior_uinteger): New.
13796 (struct collect_static_trace_data_action): Delete.
13797 (enum tracepoint_type): New.
13798 (struct tracepoint) <type>: New field `type'.
43aaf8b6
PA
13799 <actions_str, step_actions, step_actions_str>: Only include in
13800 GDBserver.
fa593d66
PA
13801 <orig_size, obj_addr_on_target, adjusted_insn_addr>
13802 <adjusted_insn_addr_end, jump_pad, jump_pad_end>: New fields.
13803 (tracepoints): Use IP_AGENT_EXPORT.
13804 (last_tracepoint): Don't include in the IPA.
13805 (stopping_tracepoint): Use IP_AGENT_EXPORT.
13806 (trace_buffer_is_full): Use IP_AGENT_EXPORT.
13807 (alloced_trace_state_variables): New.
13808 (trace_state_variables): Use IP_AGENT_EXPORT.
13809 (traceframe_t): Delete unused variable.
13810 (circular_trace_buffer): Don't include in the IPA.
13811 (trace_buffer_start): Delete.
13812 (struct trace_buffer_control): New.
13813 (trace_buffer_free): Delete.
13814 (struct ipa_trace_buffer_control): New.
13815 (GDBSERVER_FLUSH_COUNT_MASK, GDBSERVER_FLUSH_COUNT_MASK_PREV)
13816 (GDBSERVER_FLUSH_COUNT_MASK_CURR, GDBSERVER_UPDATED_FLUSH_COUNT_BIT):
13817 New.
13818 (trace_buffer_ctrl): New.
13819 (TRACE_BUFFER_CTRL_CURR): New.
13820 (trace_buffer_start, trace_buffer_free, trace_buffer_end_free):
13821 Reimplement as macros.
13822 (trace_buffer_wrap): Delete.
13823 (traceframe_write_count, traceframe_read_count)
13824 (traceframes_created, tracing): Use IP_AGENT_EXPORT.
13825 (struct tracepoint_hit_ctx) <type>: New field.
13826 (struct fast_tracepoint_ctx): New.
13827 (memory_barrier): New.
13828 (cmpxchg): New.
13829 (record_tracepoint_error): Update atomically in the IPA.
13830 (clear_inferior_trace_buffer): New.
13831 (about_to_request_buffer_space): New.
13832 (trace_buffer_alloc): Handle GDBserver and inferior simulatenous
13833 updating the same buffer.
13834 (add_tracepoint): Default the tracepoint's type to trap
13835 tracepoint, and orig_size to -1.
13836 (get_trace_state_variable) [IN_PROCESS_AGENT]: Handle allocated
13837 internal variables.
13838 (create_trace_state_variable): New parameter `gdb'. Handle it.
13839 (clear_installed_tracepoints): Clear fast tracepoint jumps.
13840 (cmd_qtdp): Handle fast tracepoints.
13841 (cmd_qtdv): Adjust.
13842 (max_jump_pad_size): New.
13843 (gdb_jump_pad_head): New.
13844 (get_jump_space_head): New.
13845 (claim_jump_space): New.
13846 (sort_tracepoints): New.
13847 (MAX_JUMP_SIZE): New.
13848 (cmd_qtstart): Handle fast tracepoints. Sync tracepoints with the
13849 IPA.
13850 (stop_tracing) [IN_PROCESS_AGENT]: Don't include the tdisconnected
13851 support. Upload fast traceframes, and delete internal IPA
13852 breakpoints.
13853 (stop_tracing_handler): New.
13854 (flush_trace_buffer_handler): New.
13855 (cmd_qtstop): Upload fast tracepoints.
13856 (response_tracepoint): Handle fast tracepoints.
13857 (tracepoint_finished_step): Upload fast traceframes. Set the
13858 tracepoint hit context's tracepoint type.
13859 (handle_tracepoint_bkpts): New.
13860 (tracepoint_was_hit): Set the tracepoint hit context's tracepoint
13861 type. Add comment about fast tracepoints.
13862 (collect_data_at_tracepoint) [IN_PROCESS_AGENT]: Don't access the
13863 non-existing action_str field.
13864 (get_context_regcache): Handle fast tracepoints.
13865 (do_action_at_tracepoint) [!IN_PROCESS_AGENT]: Don't write the PC
13866 to the regcache.
13867 (fast_tracepoint_from_jump_pad_address): New.
13868 (fast_tracepoint_from_ipa_tpoint_address): New.
13869 (collecting_t): New.
13870 (force_unlock_trace_buffer): New.
13871 (fast_tracepoint_collecting): New.
13872 (collecting): New.
13873 (gdb_collect): New.
13874 (write_inferior_data_ptr): New.
13875 (target_tp_heap): New.
13876 (target_malloc): New.
13877 (download_agent_expr): New.
13878 (UALIGN): New.
13879 (download_tracepoints): New.
13880 (download_trace_state_variables): New.
13881 (upload_fast_traceframes): New.
13882 (IPA_FIRST_TRACEFRAME): New.
13883 (IPA_NEXT_TRACEFRAME_1): New.
13884 (IPA_NEXT_TRACEFRAME): New.
13885 [IN_PROCESS_AGENT]: Include sys/mman.h and fcntl.h.
13886 [IN_PROCESS_AGENT] (gdb_tp_heap_buffer, gdb_jump_pad_buffer)
13887 (gdb_jump_pad_buffer_end): New.
13888 [IN_PROCESS_AGENT] (initialize_tracepoint_ftlib): New.
13889 (initialize_tracepoint): Adjust.
13890 [IN_PROCESS_AGENT]: Allocate the IPA heap, and jump pad scratch
13891 buffer. Initialize the low module.
13892 * utils.c (PREFIX, TOOLNAME): New.
13893 (malloc_failure): Use PREFIX.
13894 (error): In the IPA, an error causes an exit.
13895 (fatal, warning): Use PREFIX.
13896 (internal_error): Use TOOLNAME.
13897 (NUMCELLS): Increase to 10.
13898 * configure, config.in: Regenerate.
13899
d149dd1d
PA
139002010-06-01 Pedro Alves <pedro@codesourcery.com>
13901
13902 * server.c (handle_query) <qSupported>: Do two passes over the
13903 qSupported string to avoid nesting strtok.
13904
f6528abd
JK
139052010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13906
13907 * Makefile.in (SFILES): Add $(srcdir)/proc-service.list.
13908 (CDEPS): New.
13909 * configure.ac (RDYNAMIC): New AC_MSG_CHECKING wrapping. Test also
13910 -Wl,--dynamic-list.
13911 * configure: Regenerate.
13912 * proc-service.list: New.
13913
ca2a87a0
JK
139142010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
13915
13916 * linux-low.c (linux_core_of_thread): Fix crash on invalid CONTENT.
13917 New comment.
13918
363a6e9f
OS
139192010-05-26 Ozkan Sezer <sezeroz@gmail.com>
13920
13921 * gdbreplay.c (remote_open): Check error return from socket() call by
13922 its equality to -1 not by it being negative.
13923 * remote-utils.c (remote_open): Likewise.
13924
d23b6cb1
PA
139252010-05-23 Pedro Alves <pedro@codesourcery.com>
13926
13927 * config.h: Regenerate.
13928
28d3cf85
MK
139292010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13930
13931 * linux-m68k-low.c (ps_get_thread_area): Don't define if kernel
13932 doesn't provide PTRACE_GET_THREAD_AREA.
13933
fea36a59
MK
139342010-05-19 Maxim Kuvyrkov <maxim@codesourcery.com>
13935
13936 * linux-m68k-low.c: Include <asm/ptrace.h>
13937 (ps_get_thread_area): Implement.
13938
24b066ba
DE
139392010-05-03 Doug Evans <dje@google.com>
13940
13941 * event-loop.c (struct callback_event): New struct.
13942 (callback_list): New global.
13943 (append_callback_event, delete_callback_event): New functions.
13944 (process_callback): New function.
13945 (start_event_loop): Call it.
13946 * remote-utils.c (NOT_SCHEDULED): Define.
13947 (readchar_buf, readchar_bufcnt, readchar_bufp): New static globals,
13948 moved out of readchar.
13949 (readchar): Rewrite. Call reschedule before returning.
13950 (reset_readchar): New function.
13951 (remote_close): Call it.
13952 (process_remaining, reschedule): New functions.
13953 * server.h (callback_handler_func): New typedef.
13954 (append_callback_event, delete_callback_event): Declare.
13955
9836d6ea
PA
139562010-05-03 Pedro Alves <pedro@codesourcery.com>
13957
13958 * proc-service.c (ps_pglobal_lookup): Use
13959 thread_db_look_up_one_symbol.
13960 * remote-utils.c (look_up_one_symbol): Add new `may_ask_gdb'
13961 parameter. Use it instead of all_symbols_looked_up.
13962 * server.h (struct process_info) <all_symbols_looked_up>: Delete
13963 field.
13964 (all_symbols_looked_up): Don't declare.
13965 (look_up_one_symbol): Add new `may_ask_gdb' parameter.
13966 * thread-db.c (struct thread_db) <all_symbols_looked_up>: New
13967 field.
13968 (thread_db_look_up_symbols): Adjust call to look_up_one_symbol.
13969 Set all_symbols_looked_up here.
13970 (thread_db_look_up_one_symbol): New.
13971 (thread_db_get_tls_address): Adjust.
13972 (thread_db_load_search, try_thread_db_load_1): Always allocate the
13973 thread_db object on the heap, and tentatively set it in the
13974 process structure.
13975 (thread_db_init): Don't set all_symbols_looked_up here.
13976 * linux-low.h (thread_db_look_up_one_symbol): Declare.
13977
7984d532
PA
139782010-05-03 Pedro Alves <pedro@codesourcery.com>
13979
13980 * linux-low.c (linux_kill, linux_detach): Adjust.
13981 (status_pending_p_callback): Remove redundant statement. Check
13982 for !TARGET_WAITIKIND_IGNORE, instead of
13983 TARGET_WAITKIND_STOPPED.
13984 (handle_tracepoints): Make sure LWP is locked. Adjust.
13985 (linux_wait_for_event_1): Adjust.
13986 (linux_cancel_breakpoints): New.
13987 (unsuspend_one_lwp): New.
13988 (unsuspend_all_lwps): New.
13989 (linux_wait_1): If finishing a step-over, unsuspend all lwps.
13990 (send_sigstop_callback): Change return type to int, add new
13991 `except' parameter and handle it.
13992 (suspend_and_send_sigstop_callback): New.
13993 (stop_all_lwps): Add new `suspend' and `expect' parameters, and
13994 pass them down. If SUSPEND, also increment the lwp's suspend
13995 count.
13996 (linux_resume_one_lwp): Add notice about resuming a suspended LWP.
13997 (need_step_over_p): Don't consider suspended LWPs.
13998 (start_step_over): Adjust.
13999 (proceed_one_lwp): Change return type to int, add new `except'
14000 parameter and handle it.
14001 (unsuspend_and_proceed_one_lwp): New.
14002 (proceed_all_lwps): Use find_inferior instead of
14003 for_each_inferior.
14004 (unstop_all_lwps): Add `unsuspend' parameter. If UNSUSPEND, them
14005 also decrement the suspend count of LWPs. Pass `except' down,
14006 instead of hacking its suspend count.
14007 (linux_pause_all): Add `freeze' parameter. Adjust.
14008 (linux_unpause_all): New.
14009 (linux_target_ops): Install linux_unpause_all.
14010 * server.c (handle_status): Adjust.
14011 * target.h (struct target_ops): New fields `unpause_all' and
14012 `cancel_breakpoints'. Add new parameter to `pause_all'.
14013 (pause_all): Add new `freeze' parameter.
14014 (unpause_all): New.
14015 (cancel_breakpoints): New.
14016 * tracepoint.c (clear_installed_tracepoints): Pause threads, and
14017 cancel breakpoints.
14018 (cmd_qtstart): Pause threads.
14019 (stop_tracing): Pause threads, and cancel breakpoints.
14020 * win32-low.c (win32_target_ops): Adjust.
14021
e471f25b
PA
140222010-05-03 Pedro Alves <pedro@codesourcery.com>
14023
14024 * linux-low.c (linux_wait_for_event_1): Move passing the signal to
14025 the inferior right away from here...
14026 (linux_wait_1): ... to here, and adjust to check the thread's
14027 last_resume_kind instead of the lwp's step or stop_expected flags.
14028
1915ef4f
PA
140292010-05-02 Pedro Alves <pedro@codesourcery.com>
14030
14031 * README: Use consistent `GDB' and `GDBserver' spellings.
14032
f9e39928
PA
140332010-05-02 Pedro Alves <pedro@codesourcery.com>
14034
14035 * linux-low.c (linux_kill_one_lwp): Assume the lwp is stopped.
14036 (linux_kill): Stop all lwps here. Don't delete the main lwp here.
14037 (linux_detach_one_lwp): Assume the lwp is stopped.
14038 (any_thread_of): Delete.
14039 (linux_detach): Stop all lwps here. Don't blindly delete all
14040 breakpoints.
14041 (delete_lwp_callback): New.
14042 (linux_mourn): Delete all lwps of the process that is gone.
14043 (linux_wait_1): Don't delete the last lwp of the process here.
14044 * mem-break.h (mark_breakpoints_out): Declare.
14045 * mem-break.c (mark_breakpoints_out): New.
14046 (free_all_breakpoints): Use it.
14047 * server.c (handle_target_event): If the process is gone, mark
14048 breakpoints out.
14049 * thread-db.c (struct thread_db) <create_bp>: New field.
14050 (thread_db_enable_reporting): Fix prototype. Store a thread event
14051 breakpoint reference in the thread_db struct.
14052 (thread_db_load_search): Clear the thread_db object.
14053 (try_thread_db_load_1): Ditto.
14054 (switch_to_process): New.
14055 (disable_thread_event_reporting): Use it.
14056 (remove_thread_event_breakpoints): New.
14057 (thread_db_detach, thread_db_mourn): Use it.
14058
1e7fc18c
PA
140592010-05-01 Pedro Alves <pedro@codesourcery.com>
14060
14061 * linux-low.c (linux_enable_event_reporting): New.
14062 (linux_wait_for_event_1, handle_extended_wait): Use it.
14063
02fc4de7
PA
140642010-04-30 Pedro Alves <pedro@codesourcery.com>
14065
14066 * linux-low.c (linux_kill_one_lwp, linux_kill)
14067 (linux_detach_one_lwp): Adjust to send_sigstop interface change.
14068 (send_sigstop): Take an lwp_info as parameter instead. Queue a
14069 SIGSTOP even if the LWP is stopped.
14070 (send_sigstop_callback): New.
14071 (stop_all_lwps): Use send_sigstop_callback instead.
14072 (linux_resume_one_thread): Adjust.
14073 (proceed_one_lwp): Still proceed an LWP that the client has
14074 requested to stop, if we haven't reported it as stopped yet. Make
14075 sure that LWPs the client want stopped, have a pending SIGSTOP.
14076
bc3b5632
DE
140772010-04-26 Doug Evans <dje@google.com>
14078
ae1ada35
DE
14079 * server.c (handle_general_set): Make static.
14080
bc3b5632
DE
14081 * remote-utils.c (putpkt_binary_1): Call readchar instead of read.
14082 Print received char after testing for error/eof instead of before.
14083 (input_interrupt): Tweak comment.
14084
65730243
DE
140852010-04-23 Doug Evans <dje@google.com>
14086
14087 * server.c (start_inferior): Print inferior argv if --debug.
14088
a8ae7dc0
AR
140892010-04-21 Aleksandar Ristovski <aristovski@qnx.com>
14090
14091 * Makefile.in (nto_low_h nto-low.o nto-x86-low.o): New dependency lists.
14092 * nto-x86-low.c: Include server.h
14093
1c07cc19
PM
140942010-04-20 Pierre Muller <muller@ics.u-strasbg.fr>
14095
14096 * win32-i386-low.c: Use __x86_64__ macro instead of __x86_64 to
14097 be consistent with other sources of this directory.
14098 (init_registers_amd64): Correct name of source file of this function
14099 in the comment.
14100
e0a61e09
PM
141012010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14102
14103 * configure.srv (x86_64-*-mingw*): New configuration for Windows
14104 64-bit executables.
14105
54709339
PM
141062010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14107
14108 * win32-i386-low.c: Add 64-bit support.
14109 (CONTEXT_EXTENDED_REGISTERS): Set macro to zero if not exisiting.
14110 (init_registers_amd64): Declare.
14111 (mappings): Add 64-bit version of array.
14112 (init_windows_x86): New function.
14113 (the_low_target): Change init_arch field to init_windows_x86.
14114
e8f0053d
PM
141152010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14116
14117 * win32-low.c: Adapt to support also 64-bit architecture.
14118 (child_xfer_memory): Use uintptr_t type for local variable `addr'.
14119 (get_image_name): Use SIZE_T type for local variable `done'.
14120 (psapi_get_dll_name): Use LPVOID type for parameter `BaseAddress'.
14121 (toolhelp_get_dll_name): Idem.
14122 (handle_load_dll): Use CORE_ADDR type for local variable `load_addr'.
14123 Use uintptr_t typecast to avoid warning.
14124 (handle_unload_dll): Use uintptr_t typecast to avoid warning.
14125 (handle_exception): Use phex_nz to avoid warning.
14126 (win32_wait): Remove unused local variable `process'.
14127
c481e77e
PM
141282010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
14129
14130 * configure.srv (srv_amd64_regobj): Replace `x86-64-avx.o' by
14131 `amd64-avx.o'.
14132
12ea4b69
PM
141332010-04-17 Pierre Muller <muller@ics.u-strasbg.fr>
14134
14135 * configure.ac: Use `ws2_32' library for srv_mingw.
14136 * configure: Regenerate.
14137 * gdbreplay.c: Include winsock2.h instead of winsock.h.
14138 * remote-utils.c: Likewise.
14139
f6d1620c
L
141402010-04-17 H.J. Lu <hongjiu.lu@intel.com>
14141
14142 * linux-x86-low.c (xmltarget_amd64_linux_no_xml): Define only
14143 if __x86_64__ is defined.
14144
8e642873
PM
141452010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14146
14147 * configure: Regenerate.
14148
711e434b
PM
141492010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
14150
14151 * server.c (handle_query): Handle 'qGetTIBAddr' query.
14152 * target.h (target_ops): New get_tib_address field.
14153 * win32-low.h (win32_thread_info): Add thread_local_base field.
14154 * win32-low.c (child_add_thread): Add tlb argument.
14155 Set thread_local_base field to TLB.
14156 (get_child_debug_event): Adapt to child_add_thread change.
14157 (win32_get_tib_address): New function.
14158 (win32_target_ops): Set get_tib_address field to
14159 win32_get_tib_address.
14160 * linux-low.c (linux_target_ops): Set get_tib_address field to NULL.
14161
505106cd
PA
141622010-04-12 Pedro Alves <pedro@codesourcery.com>
14163
505106cd
PA
14164 * linux-low.c (linux_mourn): Also remove the process.
14165 * server.c (handle_target_event): Don't remove the process here.
14166 * nto-low.c (nto_mourn): New.
14167 (nto_target_ops): Install it.
14168 * spu-low.c (spu_mourn): New.
14169 (spu_target_ops): Install it.
14170 * win32-low.c (win32_mourn): New.
14171 (win32_target_ops): Install it.
14172
e8470a06
PA
141732010-04-12 Pedro Alves <pedro@codesourcery.com>
14174
14175 * server.h (buffer_xml_printf): Remove redundant `;'.
14176
45ba0d02
PA
141772010-04-12 Pedro Alves <pedro@codesourcery.com>
14178
14179 * regcache.c (set_register_cache): Invalidate regcaches before
14180 changing the register cache layout.
14181 (regcache_invalidate_one): Allow a NULL regcache.
14182 * linux-x86-low.c (x86_linux_update_xmltarget): Invalidate
14183 regcaches before changing the register cache layout or the target
14184 regsets.
14185
59e04013
L
141862010-04-12 H.J. Lu <hongjiu.lu@intel.com>
14187
14188 * linux-x86-low.c (x86_linux_update_xmltarget): Avoid unused
14189 variable warning on Linux/x86-64.
14190
8336d594
PA
141912010-04-11 Pedro Alves <pedro@codesourcery.com>
14192
14193 GDBserver disconnected tracing support.
14194
14195 * linux-low.c (linux_remove_process): Delete.
14196 (add_lwp): Don't set last_resume_kind here.
14197 (linux_kill): Use `mourn'.
14198 (linux_detach): Use `thread_db_detach', and `mourn'.
14199 (linux_mourn): New.
14200 (linux_attach_lwp_1): Adjust comment.
14201 (linux_attach): last_resume_kind moved the thread_info; adjust.
14202 (status_pending_p_callback): Adjust.
14203 (linux_wait_for_event_1): Adjust.
14204 (count_events_callback, select_singlestep_lwp_callback)
14205 (select_event_lwp_callback, cancel_breakpoints_callback)
14206 (db_wants_lwp_stopped, linux_wait_1, need_step_over_p)
14207 (proceed_one_lwp): Adjust.
14208 (linux_async): Add debug output.
14209 (linux_thread_stopped): New.
14210 (linux_pause_all): New.
14211 (linux_target_ops): Install linux_mourn, linux_thread_stopped and
14212 linux_pause_all.
14213 * linux-low.h (struct lwp_info): Delete last_resume_kind field.
14214 (thread_db_free): Delete declaration.
14215 (thread_db_detach, thread_db_mourn): Declare.
14216 * thread-db.c (thread_db_init): Use thread_db_mourn.
14217 (thread_db_free): Delete, split in two.
14218 (disable_thread_event_reporting): New.
14219 (thread_db_detach): New.
14220 (thread_db_mourn): New.
14221
14222 * server.h (struct thread_info) <last_resume_kind>: New field.
14223 <attached>: Add comment.
14224 <gdb_detached>: New field.
14225 (handler_func): Change return type to int.
14226 (handle_serial_event, handle_target_event): Ditto.
14227 (gdb_connected): Declare.
14228 (tracing): Delete.
14229 (disconnected_tracing): Declare.
14230 (stop_tracing): Declare.
14231
14232 * server.c (handle_query) <qSupported>: Report support for
14233 disconnected tracing.
14234 (queue_stop_reply_callback): Account for running threads.
14235 (gdb_wants_thread_stopped): New.
14236 (gdb_wants_all_threads_stopped): New.
14237 (gdb_reattached_process): New.
14238 (handle_status): Clear the `gdb_detached' flag of all processes.
14239 In all-stop, stop all threads.
14240 (main): Be sure to leave tfind mode. Handle disconnected tracing.
14241 (process_serial_event): If the remote connection breaks, or if an
14242 exit was forced with "monitor exit", force an event loop exit.
14243 Handle disconnected tracing on detach.
14244 (handle_serial_event): Adjust.
14245 (handle_target_event): If GDB isn't connected, forward events back
14246 to the inferior, unless the last process exited, in which case,
14247 exit gdbserver. Adjust interface.
14248
14249 * remote-utils.c (remote_open): Don't block in accept. Instead
14250 register an event loop source on the listen socket file
14251 descriptor. Refactor bits into ...
14252 (listen_desc): ... this new global.
14253 (gdb_connected): ... this new function.
14254 (enable_async_notification): ... this new function.
14255 (handle_accept_event): ... this new function.
14256 (remote_close): Clear remote_desc.
14257
14258 * inferiors.c (add_thread): Set the new thread's last_resume_kind.
14259
14260 * target.h (struct target_ops) <mourn, thread_stopped, pause_all>:
14261 New fields.
14262 (mourn_inferior): Define.
14263 (target_process_qsupported): Avoid the dangling else problem.
14264 (thread_stopped): Define.
14265 (pause_all): Define.
14266 (target_waitstatus_to_string): Declare.
14267 * target.c (target_waitstatus_to_string): New.
14268
14269 * tracepoint.c (tracing): Make extern.
14270 (disconnected_tracing): New.
14271 (stop_tracing): Make extern. Handle tracing stops due to GDB
14272 disconnecting.
14273 (cmd_qtdisconnected): New.
14274 (cmd_qtstatus): Report disconnected tracing status in trace reply.
14275 (handle_tracepoint_general_set): Handle QTDisconnected.
14276
14277 * event-loop.c (event_handler_func): Change return type to int.
14278 (process_event): Bail out if the event handler wants the event
14279 loop to stop.
14280 (handle_file_event): Ditto.
14281 (start_event_loop): Bail out if the event handler wants the event
14282 loop to stop.
14283
14284 * nto-low.c (nto_target_ops): Adjust.
14285 * spu-low.c (spu_wait): Don't remove the process here.
14286 (spu_target_ops): Adjust.
14287 * win32-low.c (win32_wait): Don't remove the process here.
14288 (win32_target_ops): Adjust.
14289
5d267c4c
PA
142902010-04-11 Pedro Alves <pedro@codesourcery.com>
14291
14292 * regcache.c (realloc_register_cache): Invalidate inferior's
14293 regcache before recreating it.
14294
623ccd72
PA
142952010-04-09 Pedro Alves <pedro@codesourcery.com>
14296
14297 * tracepoint.c (cmd_qtstatus): Report trace buffer circularity.
14298
219f2f23
PA
142992010-04-09 Stan Shebs <stan@codesourcery.com>
14300 Pedro Alves <pedro@codesourcery.com>
14301
14302 * server.h (LONGEST): New.
14303 (struct thread_info) <while_stepping>: New field.
14304 (unpack_varlen_hex, xrealloc, pulongest, plongest, phex_nz):
14305 Declare.
14306 (initialize_tracepoint, handle_tracepoint_general_set)
14307 (handle_tracepoint_query, tracepoint_finished_step)
14308 (tracepoint_was_hit, release_while_stepping_state_list):
14309 (current_traceframe): Declare.
14310 * server.c (handle_general_set): Handle tracepoint packets.
14311 (read_memory): New.
14312 (write_memory): New.
14313 (handle_search_memory_1): Use read_memory.
14314 (handle_query): Report support for conditional tracepoints, trace
14315 state variables, and tracepoint sources. Handle tracepoint
14316 queries.
14317 (main): Initialize the tracepoints module.
14318 (process_serial_event): Handle traceframe reads/writes.
14319
14320 * linux-low.c (handle_tracepoints): New.
14321 (linux_wait_1): Call it.
14322 (linux_resume_one_lwp): Handle while-stepping.
14323 (linux_supports_tracepoints, linux_read_pc, linux_write_pc): New.
14324 (linux_target_ops): Install them.
14325 * linux-low.h (struct linux_target_ops) <supports_tracepoints>:
14326 New field.
14327 * linux-x86-low.c (x86_supports_tracepoints): New.
14328 (the_low_target). Install it.
14329
14330 * mem-break.h (delete_breakpoint): Declare.
14331 * mem-break.c (delete_breakpoint): Make external.
14332
14333 * target.h (struct target_ops): Add `supports_tracepoints',
14334 `read_pc', and `write_pc' fields.
14335 (target_supports_tracepoints): Define.
14336 * utils.c (xrealloc, decimal2str, pulongest, plongest, thirty_two)
14337 (phex_nz): New.
14338
14339 * regcache.h (struct regcache) <registers_owned>: New field.
14340 (init_register_cache, regcache_cpy): Declare.
14341 (regcache_read_pc, regcache_write_pc): Declare.
14342 (register_cache_size): Declare.
14343 (supply_regblock): Declare.
14344 * regcache.c (init_register_cache): New.
14345 (new_register_cache): Use it.
14346 (regcache_cpy): New.
14347 (register_cache_size): New.
14348 (supply_regblock): New.
14349 (regcache_read_pc, regcache_write_pc): New.
889bf7c5 14350
219f2f23
PA
14351 * tracepoint.c: New.
14352
14353 * Makefile.in (OBS): Add tracepoint.o.
14354 (tracepoint.o): New rule.
14355
3a13a53b
L
143562010-04-08 H.J. Lu <hongjiu.lu@intel.com>
14357
14358 * Makefile.in (clean): Also remove i386-mmx.c i386-mmx-linux.c.
14359 (i386-mmx.o): New.
14360 (i386-mmx.c): Likewise.
14361 (i386-mmx-linux.o): Likewise.
14362 (i386-mmx-linux.c): Likewise.
14363
14364 * configure.srv (srv_i386_regobj): Add i386-mmx.o.
14365 (srv_i386_linux_regobj): Add i386-mmx-linux.o.
14366 (srv_i386_xmlfiles): Add i386/i386-mmx.xml.
14367 (srv_i386_linux_xmlfiles): Add i386/i386-mmx-linux.xml.
14368
14369 * linux-x86-low.c (init_registers_i386_mmx_linux): New.
14370 (x86_linux_update_xmltarget): Call init_registers_i386_mmx_linux
14371 and return if ptrace PTRACE_GETFPXREGS failed in 32bit.
14372
1570b33e
L
143732010-04-07 H.J. Lu <hongjiu.lu@intel.com>
14374
14375 * Makefile.in (clean): Updated.
14376 (i386-avx.o): New.
14377 (i386-avx.c): Likewise.
14378 (i386-avx-linux.o): Likewise.
14379 (i386-avx-linux.c): Likewise.
14380 (amd64-avx.o): Likewise.
14381 (amd64-avx.c): Likewise.
14382 (amd64-avx-linux.o): Likewise.
14383 (amd64-avx-linux.c): Likewise.
14384
14385 * configure.srv (srv_i386_regobj): Add i386-avx.o.
14386 (srv_i386_linux_regobj): Add i386-avx-linux.o.
14387 (srv_amd64_regobj): Add amd64-avx.o.
14388 (srv_amd64_linux_regobj): Add amd64-avx-linux.o.
14389 (srv_i386_32bit_xmlfiles): Add i386/32bit-avx.xml.
14390 (srv_i386_64bit_xmlfiles): Add i386/64bit-avx.xml.
14391 (srv_i386_xmlfiles): Add i386/i386-avx.xml.
14392 (srv_amd64_xmlfiles): Add i386/amd64-avx.xml.
14393 (srv_i386_linux_xmlfiles): Add i386/i386-avx-linux.xml.
14394 (srv_amd64_linux_xmlfiles): Add i386/amd64-avx-linux.xml.
14395
14396 * i387-fp.c: Include "i386-xstate.h".
14397 (i387_xsave): New.
14398 (i387_cache_to_xsave): Likewise.
14399 (i387_xsave_to_cache): Likewise.
14400 (x86_xcr0): Likewise.
14401
14402 * i387-fp.h (i387_cache_to_xsave): Likewise.
14403 (i387_xsave_to_cache): Likewise.
14404 (x86_xcr0): Likewise.
14405
14406 * linux-arm-low.c (target_regsets): Initialize nt_type to 0.
14407 * linux-crisv32-low.c (target_regsets): Likewise.
14408 * linux-m68k-low.c (target_regsets): Likewise.
14409 * linux-mips-low.c (target_regsets): Likewise.
14410 * linux-ppc-low.c (target_regsets): Likewise.
14411 * linux-s390-low.c (target_regsets): Likewise.
14412 * linux-sh-low.c (target_regsets): Likewise.
14413 * linux-sparc-low.c (target_regsets): Likewise.
14414 * linux-xtensa-low.c (target_regsets): Likewise.
14415
14416 * linux-low.c: Include <sys/uio.h>.
14417 (regsets_fetch_inferior_registers): Support nt_type.
14418 (regsets_store_inferior_registers): Likewise.
14419 (linux_process_qsupported): New.
14420 (linux_target_ops): Add linux_process_qsupported.
14421
14422 * linux-low.h (regset_info): Add nt_type.
14423 (linux_target_ops): Add process_qsupported.
14424
14425 * linux-x86-low.c: Include "i386-xstate.h", "elf/common.h"
14426 and <sys/uio.h>.
14427 (init_registers_i386_avx_linux): New.
14428 (init_registers_amd64_avx_linux): Likewise.
14429 (xmltarget_i386_linux_no_xml): Likewise.
14430 (xmltarget_amd64_linux_no_xml): Likewise.
14431 (PTRACE_GETREGSET): Likewise.
14432 (PTRACE_SETREGSET): Likewise.
14433 (x86_fill_xstateregset): Likewise.
14434 (x86_store_xstateregset): Likewise.
14435 (use_xml): Likewise.
14436 (x86_linux_update_xmltarget): Likewise.
14437 (x86_linux_process_qsupported): Likewise.
14438 (target_regsets): Add NT_X86_XSTATE entry and Initialize nt_type.
14439 (x86_arch_setup): Don't call init_registers_amd64_linux nor
14440 init_registers_i386_linux here. Call
14441 x86_linux_update_xmltarget.
14442 (the_low_target): Add x86_linux_process_qsupported.
14443
14444 * server.c (handle_query): Call target_process_qsupported.
14445
14446 * target.h (target_ops): Add process_qsupported.
14447 (target_process_qsupported): New.
14448
fc7238bb
PA
144492010-04-03 Pedro Alves <pedro@codesourcery.com>
14450
14451 * inferiors.c (add_thread): Set last_status kind to
14452 TARGET_WAITKIND_IGNORE.
14453 * linux-low.c (cancel_breakpoint): Remove unnecessary regcache
14454 fetch. Use ptid_of. Avoid unnecessary get_lwp_thread calls.
14455 (linux_wait_1): Move `thread' local definition to block that uses
14456 it. Don't NULL initialize `event_child'.
14457 (linux_resume_one_thread): Avoid unnecessary get_lwp_thread calls.
14458 Alway set the thread's last_status to TARGET_WAITKIND_IGNORE.
14459 * linux-x86-low.c (x86_breakpoint_at): Read raw memory.
14460
bdabb078
PA
144612010-04-01 Pedro Alves <pedro@codesourcery.com>
14462
14463 * linux-low.c (get_stop_pc): Don't adjust the PC if stopped with
14464 an extended waitstatus, or by a watchpoint.
14465 (cancel_breakpoints_callback): Don't cancel a breakpoint if the
14466 thread was stepping or has been stopped by a watchpoint.
14467
d3bbe7a0
PA
144682010-04-01 Pedro Alves <pedro@codesourcery.com>
14469
14470 * mem-break.c (struct raw_breakpoint): New field shlib_disabled.
14471 (set_gdb_breakpoint_at): If GDB is inserting a breakpoint on top
14472 of another, then delete the previous, and validate all
14473 breakpoints.
14474 (validate_inserted_breakpoint): New.
14475 (delete_disabled_breakpoints): New.
14476 (validate_breakpoints): New.
14477 (check_mem_read): Validate breakpoints before trusting their
14478 shadow. Delete disabled breakpoints.
14479 (check_mem_write): Validate breakpoints before trusting they
14480 should be inserted. Delete disabled breakpoints.
14481 * mem-break.h (validate_breakpoints):
14482 * server.c (handle_query): Validate breakpoints when we see a
14483 qSymbol query.
14484
8b07ae33
PA
144852010-04-01 Pedro Alves <pedro@codesourcery.com>
14486
14487 * linux-low.c (linux_wait_1): Avoid setting need_step_over is
14488 there's a GDB breakpoint at stop_pc. Always report a trap to GDB
14489 if we could tell there's a GDB breakpoint at stop_pc.
14490 (need_step_over_p): Don't do a step over if we find a GDB
14491 breakpoint at the resume PC.
14492
14493 * mem-break.c (struct raw_breakpoint): New.
14494 (enum bkpt_type): New type `gdb_breakpoint'.
14495 (struct breakpoint): Delete the `PC', `old_data' and `inserted'
14496 fields. New field `raw'.
14497 (find_raw_breakpoint_at): New.
14498 (set_raw_breakpoint_at): Handle refcounting. Create a raw
14499 breakpoint instead.
14500 (set_breakpoint_at): Adjust.
14501 (delete_raw_breakpoint): New.
14502 (release_breakpoint): New.
14503 (delete_breakpoint): Rename to...
14504 (delete_breakpoint_1): ... this. Add proc parameter. Use
14505 release_breakpoint. Return ENOENT.
14506 (delete_breakpoint): Reimplement.
14507 (find_breakpoint_at): Delete.
14508 (find_gdb_breakpoint_at): New.
14509 (delete_breakpoint_at): Delete.
14510 (set_gdb_breakpoint_at): New.
14511 (delete_gdb_breakpoint_at): New.
14512 (gdb_breakpoint_here): New.
14513 (set_reinsert_breakpoint): Use release_breakpoint.
14514 (uninsert_breakpoint): Rename to ...
14515 (uninsert_raw_breakpoint): ... this.
14516 (uninsert_breakpoints_at): Adjust to handle raw breakpoints.
14517 (reinsert_raw_breakpoint): Change parameter type to
14518 raw_breakpoint.
14519 (reinsert_breakpoints_at): Adjust to handle raw breakpoints
14520 instead.
14521 (check_breakpoints): Adjust. Use release_breakpoint.
14522 (breakpoint_here): Rewrite using find_raw_breakpoint_at.
14523 (breakpoint_inserted_here): Ditto.
14524 (check_mem_read): Adjust to iterate over raw breakpoints instead.
14525 Don't trust the breakpoint's shadow if it is not inserted.
14526 (check_mem_write): Adjust to iterate over raw breakpoints instead.
14527 (delete_all_breakpoints): Adjust.
14528 (free_all_breakpoints): Mark all breakpoints as uninserted, and
14529 use delete_breakpoint_1.
14530
14531 * mem-break.h (breakpoints_supported): Delete declaration.
14532 (set_gdb_breakpoint_at): Declare.
14533 (gdb_breakpoint_here): Declare.
14534 (delete_breakpoint_at): Delete.
14535 (delete_gdb_breakpoint_at): Declare.
14536
14537 * server.h (struct raw_breakpoint): Forward declare.
14538 (struct process_info): New field `raw_breakpoints'.
14539
14540 * linux-x86-low.c (x86_insert_point, x86_remote_point): Handle Z0
14541 breakpoints.
14542
6bf5e0ba
PA
145432010-03-24 Pedro Alves <pedro@codesourcery.com>
14544
14545 * linux-low.c (status_pending_p_callback): Fix comment.
14546 (linux_wait_for_event_1): Move most of the internal breakpoint
14547 handling from here...
14548 (linux_wait_1): ... to here.
14549 (count_events_callback): New.
14550 (select_singlestep_lwp_callback): New.
14551 (select_event_lwp_callback): New.
14552 (cancel_breakpoints_callback): New.
14553 (select_event_lwp): New.
14554 (linux_wait_1): Simplify internal breakpoint handling. Give equal
14555 priority to all LWPs that have had events that should be reported
14556 to the client. Cancel breakpoints when about to reporting the
14557 event to the client, not while stopping lwps. No longer cancel
14558 finished single-steps here.
14559 (cancel_finished_single_step): Delete.
14560 (cancel_finished_single_steps): Delete.
14561
414a389f
PA
145622010-03-24 Pedro Alves <pedro@codesourcery.com>
14563
14564 * mem-break.c (enum bkpt_type): New.
14565 (struct breakpoint): New field `type'.
14566 (set_breakpoint_at): Change return type to struct breakpoint
14567 pointer. Set type to `other_breakpoint' by default.
14568 (delete_breakpoint): Rewrite, supporting more than one breakpoint
14569 in the breakpoint list.
14570 (delete_reinsert_breakpoints): Only delete reinsert breakpoints.
14571 (reinsert_breakpoint): Rename to ...
14572 (reinsert_raw_breakpoint): ... this.
14573 (reinsert_breakpoints_at): Adjust.
14574 * mem-break.h (struct breakpoint): Declare.
14575 (set_breakpoint_at): Change return type to struct breakpoint
14576 pointer.
14577
2280c721
PA
145782010-03-24 Pedro Alves <pedro@codesourcery.com>
14579
14580 * server.c (handle_query): Assign, not compare.
14581
d50171e4
PA
145822010-03-24 Pedro Alves <pedro@codesourcery.com>
14583
14584 Teach linux gdbserver to step-over-breakpoints.
14585
14586 * linux-low.c (can_hardware_single_step): New.
14587 (supports_breakpoints): New.
14588 (handle_extended_wait): If stopping threads, read the stop pc of
14589 the new cloned LWP.
14590 (get_pc): New.
14591 (get_stop_pc): Add `lwp' parameter. Handle it. Bail out if the
14592 low target doesn't support retrieving the PC.
14593 (add_lwp): Set last_resume_kind to resume_continue.
14594 (linux_attach_lwp_1): Adjust comments. Always set stop_expected.
14595 (linux_attach): Don't clear stop_expected. Set the lwp's
14596 last_resume_kind to resume_stop.
14597 (linux_detach_one_lwp): Don't check for removed breakpoints.
14598 (check_removed_breakpoint): Delete.
14599 (status_pending_p): Rename to ...
14600 (status_pending_p_callback): ... this. Don't check for removed
14601 breakpoints. Don't consider threads that are stopped from GDB's
14602 perspective.
14603 (linux_wait_for_lwp): Always read the stop_pc here.
14604 (cancel_breakpoint): New.
14605 (step_over_bkpt): New global.
14606 (linux_wait_for_event_1): Implement stepping over breakpoints.
14607 (gdb_wants_lwp_stopped): New.
14608 (gdb_wants_all_stopped): New.
14609 (linux_wait_1): Tag threads as gdb-wants-stopped. Cancel finished
14610 single-step traps here. Store the thread's last reported target
14611 wait status.
14612 (send_sigstop): Don't clear stop_expected. Always set it,
14613 instead.
14614 (mark_lwp_dead): Remove reference to pending_is_breakpoint.
14615 (cancel_finished_single_step): New.
14616 (cancel_finished_single_steps): New.
14617 (wait_for_sigstop): Don't cancel finished single-step traps here.
14618 (linux_resume_one_lwp): Don't check for removed breakpoints.
14619 Don't set `step' on non-hardware step archs.
14620 (linux_set_resume_request): Ignore resume_stop requests if already
14621 stopping or stopped. Set the lwp's last_resume_kind.
14622 (resume_status_pending_p): Don't check for removed breakpoints.
14623 (need_step_over_p): New.
14624 (start_step_over): New.
14625 (finish_step_over): New.
14626 (linux_resume_one_thread): Always queue a sigstop for resume_stop
14627 requests. Clear the thread's last reported target waitstatus.
14628 Don't use the `suspended' flag. Don't consider pending breakpoints.
14629 (linux_resume): Start a step-over if necessary.
14630 (proceed_one_lwp): New.
14631 (proceed_all_lwps): New.
14632 (unstop_all_lwps): New.
14633 * linux-low.h (struct lwp_info): Rewrite comment for the
14634 `suspended' flag. Add the `stop_pc' field. Delete the
14635 `pending_stop_pc' field. Tweak the `stepping' flag's comment.
14636 Add `'last_resume_kind' and `need_step_over' fields.
14637 * inferiors.c (struct thread_info): Delete, moved elsewhere.
14638 * mem-break.c (struct breakpoint): Delete `reinserting' flag.
14639 Delete `breakpoint_to_reinsert' field. New flag `inserted'.
14640 (set_raw_breakpoint_at): New.
14641 (set_breakpoint_at): Rewrite to use it.
14642 (reinsert_breakpoint_handler): Delete.
14643 (set_reinsert_breakpoint): New.
14644 (reinsert_breakpoint_by_bp): Delete.
14645 (delete_reinsert_breakpoints): New.
14646 (uninsert_breakpoint): Rewrite.
14647 (uninsert_breakpoints_at): New.
14648 (reinsert_breakpoint): Rewrite.
14649 (reinsert_breakpoints_at): New.
14650 (check_breakpoints): Rewrite.
14651 (breakpoint_here): New.
14652 (breakpoint_inserted_here): New.
14653 (check_mem_read): Adjust.
14654 * mem-break.h (breakpoints_supported, breakpoint_here)
14655 (breakpoint_inserted_here, set_reinsert_breakpoint): Declare.
14656 (reinsert_breakpoint_by_bp): Delete declaration.
14657 (delete_reinsert_breakpoints): Declare.
14658 (reinsert_breakpoint): Delete declaration.
14659 (reinsert_breakpoints_at): Declare.
14660 (uninsert_breakpoint): Delete declaration.
14661 (uninsert_breakpoints_at): Declare.
14662 (check_breakpoints): Adjust prototype.
14663 * server.h: Adjust include order.
14664 (struct thread_info): Declare here. Add a `last_status' field.
14665
30ba68cb
MS
146662010-03-23 Michael Snyder <msnyder@vmware.com>
14667
14668 * server.c (crc32): New function.
14669 (handle_query): Add handling for 'qCRC:' request.
14670
b9a881c2
PA
146712010-03-23 Pedro Alves <pedro@codesourcery.com>
14672
14673 * linux-x86-low.c (x86_linux_prepare_to_resume): Clear DR6 if the
14674 lwp had been stopped by a watchpoint.
14675
e92d13d5
PA
146762010-03-16 Pedro Alves <pedro@codesourcery.com>
14677
14678 * server.h (internal_error): Declare.
14679 (gdb_assert, ASSERT_FUNCTION, gdb_assert_fail): Define.
14680 * utils.c (internal_error): New function.
14681
64daa791
AS
146822010-03-15 Andreas Schwab <schwab@redhat.com>
14683
14684 * configure.srv: Fix typo setting srv_regobj.
14685
f52cd8cd
PA
146862010-03-15 Pedro Alves <pedro@codesourcery.com>
14687
14688 * linux-low.c (fetch_register): Avoid passing a non string literal
14689 format to `error'.
14690 (usr_store_inferior_registers): Ditto.
14691
93ae6fdc
PA
146922010-03-14 Pedro Alves <pedro@codesourcery.com>
14693
14694 * linux-low.c (linux_write_memory): Bail out early if peeking
14695 memory failed.
14696
c3adc08c
PA
146972010-03-14 Pedro Alves <pedro@codesourcery.com>
14698
14699 * linux-low.h (struct lwp_info): New fields
14700 `stopped_by_watchpoint' and `stopped_data_address'.
14701 * linux-low.c (linux_wait_for_lwp): Check for watchpoint triggers
14702 here, and cache them in the lwp object.
14703 (wait_for_sigstop): Check stopped_by_watchpoint lwp field
14704 directly.
14705 (linux_resume_one_lwp): Clear the lwp's stopped_by_watchpoint
14706 field.
14707 (linux_stopped_by_watchpoint): Rewrite.
14708 (linux_stopped_data_address): Rewrite.
14709
bce522a2
PA
147102010-03-06 Simo Melenius <simo.melenius@iki.fi>
14711
14712 * linux-low.c (linux_wait_for_lwp): Fetch the regcache after
14713 switching the current inferior, not before.
14714
90884b2b
L
147152010-03-01 H.J. Lu <hongjiu.lu@intel.com>
14716
14717 * Makefile.in (clean): Replace reg-i386.c, reg-x86-64.c,
14718 reg-i386-linux.c and reg-x86-64-linux.c with i386.c, amd64.c,
14719 i386-linux.c and amd64-linux.c.
14720 (reg-i386.o): Removed.
14721 (reg-i386.c): Likewise.
14722 (reg-i386-linux.o): Likewise.
14723 (reg-i386-linux.c): Likewise.
14724 (reg-x86-64.o): Likewise.
14725 (reg-x86-64.c): Likewise.
14726 (reg-x86-64-linux.o): Likewise.
14727 (reg-x86-64-linux.c): Likewise.
14728 (i386.o): New.
14729 (i386.c): Likewise.
14730 (i386-linux.o): Likewise.
14731 (i386-linux.c): Likewise.
14732 (amd64.o): Likewise.
14733 (amd64.c): Likewise.
14734 (amd64-linux.o): Likewise.
14735 (amd64-linux.c): Likewise.
14736
14737 * configure.srv (srv_i386_regobj): New.
14738 (srv_i386_linux_regobj): Likewise.
14739 (srv_amd64_regobj): Likewise.
14740 (srv_amd64_linux_regobj): Likewise.
14741 (srv_i386_32bit_xmlfiles): Likewise.
14742 (srv_i386_64bit_xmlfiles): Likewise.
14743 (srv_i386_xmlfiles): Likewise.
14744 (srv_amd64_xmlfiles): Likewise.
14745 (srv_i386_linux_xmlfiles): Likewise.
14746 (srv_amd64_linux_xmlfiles): Likewise.
14747 (i[34567]86-*-cygwin*): Set srv_regobj to $srv_i386_regobj. Set
14748 srv_xmlfiles to $srv_i386_xmlfiles.
14749 (i[34567]86-*-mingw32ce*): Likewise.
14750 (i[34567]86-*-mingw*): Likewise.
14751 (i[34567]86-*-nto*): Likewise.
14752 (i[34567]86-*-linux*): Set srv_regobj to $srv_i386_linux_regobj
14753 and $srv_amd64_linux_regobj. Set srv_xmlfiles to
14754 $srv_i386_linux_xmlfiles and $srv_amd64_linux_xmlfiles.
14755 (x86_64-*-linux*): Likewise.
14756
14757 * linux-x86-low.c (init_registers_x86_64_linux): Removed.
14758 (init_registers_amd64_linux): New.
14759 (x86_arch_setup): Replace init_registers_x86_64_linux with
14760 init_registers_amd64_linux.
14761
193f13e6
MK
147622010-02-23 Maxim Kuvyrkov <maxim@codesourcery.com>
14763
14764 * configure.ac: Check for libdl. If it is not available link against
14765 static libthread_db.
14766 * configure: Regenerate.
14767
85d721b8
PA
147682010-02-22 Pedro Alves <pedro@codesourcery.com>
14769
14770 PR9605
14771
14772 * i386-low.c (i386_length_and_rw_bits): Throw a fatal error if
14773 handing a read watchpoint.
14774 (i386_low_insert_watchpoint): Read watchpoints aren't supported.
14775
6076632b
DE
147762010-02-12 Doug Evans <dje@google.com>
14777
14778 * linux-low.c (linux_supports_tracefork_flag): Document.
14779 (linux_look_up_symbols): Add comment.
14780
3327ccf7
L
147812010-02-03 H.J. Lu <hongjiu.lu@intel.com>
14782
14783 * regcache.c (supply_register): Clear regcache if buf is NULL.
14784
0718675c 147852010-02-02 Nicolas Roche <roche@sourceware.org>
3327ccf7 14786 Joel Brobecker <brobecker@adacore.com>
0718675c
JB
14787
14788 * inferiors.c (find_inferior): Add function documentation.
14789 (unloaded_dll): Handle the case where the unloaded dll has not
14790 been previously registered in the dll list.
14791
177321bd
DJ
147922010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
14793
14794 * linux-arm-low.c (thumb_breakpoint_len): Delete.
14795 (thumb2_breakpoint): New.
14796 (arm_breakpoint_at): Check for Thumb-2 breakpoints.
14797
2b009048
DJ
147982010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
14799
14800 * linux-low.c (get_stop_pc): Check for SIGTRAP.
14801 (linux_wait_for_event_1): Handle SIGILL and SIGSEGV as possible
14802 breakpoints.
14803
3be029c7
PA
148042010-01-21 Pedro Alves <pedro@codesourcery.com>
14805
14806 * linux-ppc-low.c (ppc_arch_setup): Adjust to regcache changes.
14807
18f5de3b
JK
148082010-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
14809
14810 * linux-s390-low.c (s390_collect_ptrace_register)
14811 (s390_supply_ptrace_register): Adjust it for the new regcache parameter.
14812
3743bb4f
DE
148132010-01-21 Doug Evans <dje@google.com>
14814
14ce3065
DE
14815 * linux-low.c (PTRACE_ARG3_TYPE): Change from long to void*.
14816 (PTRACE_ARG4_TYPE): New macro.
14817 (handle_extended_wait): Cast ptrace arg4 to PTRACE_ARG4_TYPE.
14818 (linux_wait_for_event_1, linux_resume_one_lwp): Ditto.
14819 (fetch_register): Cast to uintptr_t before casting to PTRACE_ARG3_TYPE.
14820 (usr_store_inferior_registers): Ditto.
14821 (linux_read_memory, linux_write_memory): Ditto.
14822 (linux_test_for_tracefork): Ditto.
14823
3743bb4f
DE
14824 * linux-arm-low.c: Remove redundant include of gdb_proc_service.h.
14825 Only include elf.h if gdb_proc_service.h didn't include linux/elf.h.
14826
8b315be5
PA
148272010-01-21 Pedro Alves <pedro@codesourcery.com>
14828
14829 * proc-service.c (ps_lgetregs): Don't refetch registers from the
14830 target.
14831
85492558
PA
148322010-01-21 Pedro Alves <pedro@codesourcery.com>
14833
14834 * spu-low.c (spu_fetch_registers, spu_store_registers): Change
14835 prototype to take a regcache. Adjust.
14836
442ea881
PA
148372010-01-20 Pedro Alves <pedro@codesourcery.com>
14838
14839 * regcache.h (struct thread_info): Forward declare.
14840 (struct regcache): New.
14841 (new_register_cache): Adjust prototype.
14842 (get_thread_regcache): Declare.
14843 (free_register_cache): Adjust prototype.
14844 (registers_to_string, registers_from_string): Ditto.
14845 (supply_register, supply_register_by_name, collect_register)
14846 (collect_register_as_string, collect_register_by_name): Ditto.
14847 * regcache.c (struct inferior_regcache_data): Delete.
14848 (get_regcache): Rename to ...
14849 (get_thread_regcache): ... this. Adjust. Switch inferior before
14850 fetching registers.
14851 (regcache_invalidate_one): Adjust.
14852 (regcache_invalidate): Fix prototype.
14853 (new_register_cache): Return the new register cache.
14854 (free_register_cache): Change prototype.
14855 (realloc_register_cache): Adjust.
14856 (registers_to_string): Change prototype to take a regcache. Adjust.
14857 (registers_from_string): Ditto.
14858 (register_data): Ditto.
14859 (supply_register): Ditto.
14860 (supply_register_by_name): Ditto.
14861 (collect_register): Ditto.
14862 (collect_register_as_string): Ditto.
14863 (collect_register_by_name): Ditto.
14864 * server.c (process_serial_event): Adjust.
14865 * linux-low.h (regset_fill_func, regset_store_func): Change
14866 prototype.
14867 (get_pc, set_pc, collect_ptrace_register, supply_ptrace_register):
14868 Change prototype.
14869 * linux-low.c (get_stop_pc): Adjust.
14870 (check_removed_breakpoint): Adjust.
14871 (linux_wait_for_event): Adjust.
14872 (linux_resume_one_lwp): Adjust.
14873 (fetch_register): Add regcache parameter. Adjust.
14874 (usr_store_inferior_registers): Ditto.
14875 (regsets_fetch_inferior_registers): Ditto.
14876 (regsets_store_inferior_registers): Ditto.
14877 (linux_fetch_registers, linux_store_registers): Ditto.
14878 * i387-fp.c (i387_cache_to_fsave): Change prototype to take a
14879 regcache. Adjust.
43aaf8b6
PA
14880 (i387_fsave_to_cache, i387_cache_to_fxsave, i387_fxsave_to_cache):
14881 Ditto.
442ea881
PA
14882 * i387-fp.h (i387_cache_to_fsave, i387_fsave_to_cache): Change
14883 prototype to take a regcache.
14884 (i387_cache_to_fxsave, i387_fxsave_to_cache): Ditto.
14885 * remote-utils.c (convert_ascii_to_int, outreg)
14886 (prepare_resume_reply): Change prototype to take a regcache.
14887 Adjust.
14888 * target.h (struct target_ops) <fetch_registers, store_registers>:
14889 Change prototype to take a regcache.
14890 (fetch_inferior_registers, store_inferior_registers): Change
14891 prototype to take a regcache. Adjust.
14892 * proc-service.c (ps_lgetregs): Adjust.
14893 * linux-x86-low.c (x86_fill_gregset, x86_store_gregset)
14894 (x86_fill_fpregset, x86_store_fpregset, x86_fill_fpxregset)
14895 (x86_store_fpxregset, x86_get_pc, x86_set_pc): Change prototype to
14896 take a regcache. Adjust.
14897 * linux-arm-low.c (arm_fill_gregset, arm_store_gregset)
14898 (arm_fill_wmmxregset, arm_store_wmmxregset, arm_fill_vfpregset)
14899 (arm_store_vfpregset, arm_get_pc, arm_set_pc):
14900 (arm_breakpoint_at): Change prototype to take a regcache. Adjust.
14901 * linux-cris-low.c (cris_get_pc, cris_set_pc)
14902 (cris_cannot_fetch_register):
14903 (cris_breakpoint_at): Change prototype to take a regcache.
14904 Adjust.
14905 * linux-crisv32-low.c (cris_get_pc, cris_set_pc,
14906 cris_reinsert_addr, cris_write_data_breakpoint): Change prototype
14907 to take a regcache. Adjust.
14908 (cris_breakpoint_at, cris_insert_point, cris_remove_point):
14909 Adjust.
14910 * linux-m32r-low.c (m32r_get_pc, m32r_set_pc): Change prototype to
14911 take a regcache. Adjust.
14912 * linux-m68k-low.c (m68k_fill_gregset, m68k_store_gregset)
14913 (m68k_fill_fpregset, m68k_store_fpregset, m68k_get_pc,
14914 (m68k_set_pc): Change prototype to take a regcache. Adjust.
14915 * linux-mips-low.c (mips_get_pc):
14916 (mips_set_pc): Change prototype to take a regcache. Adjust.
14917 (mips_reinsert_addr): Adjust.
14918 (mips_collect_register): Change prototype to take a regcache.
14919 Adjust.
14920 (mips_supply_register):
14921 (mips_collect_register_32bit, mips_supply_register_32bit)
14922 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
14923 (mips_store_fpregset): Ditto.
43aaf8b6
PA
14924 * linux-ppc-low.c (ppc_supply_ptrace_register)
14925 (ppc_supply_ptrace_register): Ditto.
442ea881
PA
14926 (parse_spufs_run): Adjust.
14927 (ppc_get_pc, ppc_set_pc, ppc_fill_gregset, ppc_fill_vsxregset)
14928 (ppc_store_vsxregset, ppc_fill_vrregset, ppc_store_vrregset)
14929 (ppc_fill_evrregset, ppc_store_evrregset): Change prototype to
14930 take a regcache. Adjust.
14931 * linux-s390-low.c (s390_collect_ptrace_register)
14932 (s390_supply_ptrace_register, s390_fill_gregset, s390_get_pc)
14933 (s390_set_pc): Change prototype to take a regcache. Adjust.
14934 (s390_arch_setup): Adjust.
14935 * linux-sh-low.c (sh_get_pc, sh_breakpoint_at)
14936 (sh_fill_gregset): Change prototype to take a regcache. Adjust.
14937 * linux-sparc-low.c (sparc_fill_gregset_to_stack)
14938 (sparc_fill_gregset, sparc_store_gregset_from_stack)
14939 (sparc_store_gregset, sparc_get_pc): Change prototype to take a
14940 regcache. Adjust.
14941 (sparc_breakpoint_at): Adjust.
14942 * linux-xtensa-low.c (xtensa_fill_gregset):
14943 (xtensa_store_gregset):
14944 (xtensa_fill_xtregset, xtensa_store_xtregset, xtensa_get_pc)
14945 (xtensa_set_pc): Change prototype to take a regcache. Adjust.
14946 * nto-low.c (nto_fetch_registers, nto_store_registers): Change
14947 prototype to take a regcache. Adjust.
14948 * win32-arm-low.c (arm_fetch_inferior_register)
14949 (arm_store_inferior_register): Change prototype to take a
14950 regcache. Adjust.
14951 * win32-i386-low.c (i386_fetch_inferior_register)
14952 (i386_store_inferior_register): Change prototype to take a
14953 regcache. Adjust.
14954 * win32-low.c (child_fetch_inferior_registers)
14955 (child_store_inferior_registers): Change prototype to take a
14956 regcache. Adjust.
14957 (win32_wait): Adjust.
14958 (win32_fetch_inferior_registers): Change prototype to take a
14959 regcache. Adjust.
14960 (win32_store_inferior_registers): Adjust.
14961 * win32-low.h (struct win32_target_ops) <fetch_inferior_register,
14962 store_inferior_register>: Change prototype to take a regcache.
14963
60c3d7b0
DE
149642010-01-20 Doug Evans <dje@google.com>
14965
14966 * linux-low.c (linux_create_inferior): Wrap use of __SIGRTMIN in
14967 #ifdef.
14968 (linux_wait_for_event1, linux_init_signals): Ditto.
ec8ebe72 14969 (W_STOPCODE): Provide definition if missing.
60c3d7b0 14970
dc146f7c
VP
149712010-01-13 Vladimir Prus <vladimir@codesourcery.com>
14972
14973 * linux-low.c (linux_core_of_thread): New.
14974 (compare_ints, show_process, list_threads): New.
14975 (linux_qxfer_osdata): Report threads and cores.
14976 (linux_target_op): Register linux_core_of_thread.
14977 * remote-utils.c (prepare_resume_reply): Report the core.
14978 (buffer_xml_printf): Support %d specifier.
14979 * server.c (handle_threads_qxfer_proper, handle_threads_qxfer):
14980 New.
14981 (handle_query): Handle qXfer:threads. Announce availability
14982 thereof.
14983 * target.h (struct target_ops): New field core_of_thread.
14984
7803799a
UW
149852010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
14986
14987 * Makefile.in (clean): Remove new generated files.
14988 (reg-s390.o, reg-s390.c): Remove rules.
14989 (reg-s390x.o, reg-s390x.c): Likewise.
14990 (s390-linux32.o, s390-linux32.c): Add rules.
14991 (s390-linux64.o, s390-linux64.c): Likewise.
14992 (s390x-linux64.o, s390x-linux64.c): Likewise.
14993 * configure.srv (s390*-*-linux*): Update srv_regobj and srv_xmlfiles.
14994 * linux-s390-low.c: Include <elf.h>.
14995 (HWCAP_S390_HIGH_GPRS): Define if undefined.
14996 (init_registers_s390): Remove prototype.
14997 (init_registers_s390x): Likewise.
14998 (init_registers_s390_linux32): Add prototype.
14999 (init_registers_s390_linux64): Likewise.
15000 (init_registers_s390x_linux64): Likewise.
15001 (s390_num_regs_3264): New define.
15002 (s390_regmap_3264): New global variable.
15003 (s390_cannot_fetch_register): Remove obsolete check.
15004 (s390_cannot_store_register): Likewise.
15005 (s390_collect_ptrace_register): Handle upper/lower register halves.
15006 (s390_supply_ptrace_register): Likewise.
15007 (s390_fill_gregset): Update to register number changes.
15008 (s390_get_hwcap): New routine.
15009 (s390_arch_setup): Detect 32-bit process running on 64-bit system.
15010 Install appropriate regmap and register set.
15011
6e7ffa39
JB
150122010-01-01 Joel Brobecker <brobecker@adacore.com>
15013
15014 * server.c (gdbserver_version): Update copyright year to 2010.
15015 * gdbreplay.c (gdbreplay_version): Likewise.
15016
957f3f49
DE
150172009-12-28 Doug Evans <dje@google.com>
15018
15019 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,
15020 elf/external.h. Include <elf.h> instead but only if necessary.
15021
ca5c370d
PA
150222009-12-28 Pedro Alves <pedro@codesourcery.com>
15023
15024 * linux-low.c (linux_remove_process): Remove `detaching'
15025 parameter. Don't release/detach from thread_db here.
15026 (linux_kill): Release/detach from thread_db here, ...
15027 (linux_detach): ... and here, before actually detaching.
15028 (linux_wait_1): ... and here, when a process exits.
15029 * thread-db.c (any_thread_of): New.
15030 (thread_db_free): Switch the current inferior to a thread of the
15031 passed in process.
15032
4ee62156
DE
150332009-12-21 Doug Evans <dje@google.com>
15034
d90e6a88
DE
15035 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.
15036
c5f62d5f
DE
15037 * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
15038 Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
15039 warning ifndef __NR_tkill. Move setting of errno there too.
15040 Delete unnecessary resetting of errno after syscall.
15041 Minor comment changes to match gdb/linux-nat.c:kill_lwp.
15042
10e86dd7
DE
15043 * configure.ac: Check for dladdr.
15044 * config.in: Regenerate.
15045 * configure: Regenerate.
15046 * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR.
15047 (try_thread_db_load): Update.
15048
4ee62156
DE
15049 * linux-low.c (my_waitpid): Delete unnecessary prototype.
15050
00f515da
DE
150512009-12-18 Doug Evans <dje@google.com>
15052
e9464885
DE
15053 * event-loop.c: Include unistd.h if it exists.
15054
07d4f67e
DE
15055 * linux-low.c (my_waitpid): Move definition away from being in
15056 between linux_tracefork_child/linux_test_for_tracefork.
15057
00f515da
DE
15058 * gdb_proc_service.h (psaddr_t): Fix type.
15059 * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix
15060 signature to match glibc.
15061
1de1badb
DE
150622009-12-16 Doug Evans <dje@google.com>
15063
15064 * linux-low.c (linux_read_memory): Fix argument to read.
15065
aeeb81d1
PA
150662009-11-26 Pedro Alves <pedro@codesourcery.com>
15067
15068 * win32-low.c (get_child_debug_event): On EXIT_THREAD_DEBUG_EVENT
15069 events, don't leave current_inferior pointing at null.
15070
10357975
PA
150712009-11-26 Pedro Alves <pedro@codesourcery.com>
15072
15073 * win32-low.c (LOG): Delete.
15074 (OUTMSG): Output to stderr.
15075 (OUTMSG2): Conditionalize on `debug_threads' variable, instead of
15076 on compile time LOG macro.
15077 (win32_wait): Fix debug output.
15078
cf6e3471
PA
150792009-11-26 Pedro Alves <pedro@codesourcery.com>
15080
15081 * win32-low.c (win32_add_one_solib): If the dll name is
15082 "ntdll.dll", prepend the system directory to the dll path.
15083
0c85e18e
MK
150842009-11-17 Daniel Jacobowitz <dan@codesourcery.com>
15085
15086 * m68k-tdep.c (m68k_gdbarch_init): Reuse previous initialization.
15087
9ac544ce 150882009-11-17 Nathan Sidwell <nathan@codesourcery.com>
889bf7c5 15089 Vladimir Prus <vladimir@codesourcery.com>
9ac544ce
MK
15090
15091 * Makefile.in (reg-cf.o, reg-cf.c): New targets.
15092 * configure.ac: Check for __mcoldfire__ and set
15093 gdb_cv_m68k_is_coldfire.
15094 * configure.srv: Use gdb_cv_m68k_is_coldfire to select between
15095 reg-cf.o and reg-m68k.o.
15096 * configure: Regenerated.
15097
fd7dd3e6
PA
150982009-11-16 Pedro Alves <pedro@codesourcery.com>
15099
15100 * linux-low.c (linux_remove_process): Add `detaching' parameter.
15101 Pass it to thread_db_free.
15102 (linux_kill, linux_detach, linux_wait_1): Adjust to pass the
15103 proper `detaching' argument to linux_remove_process.
15104 * linux-low.h (thread_db_free): Add `detaching' parameter.
15105 * thread-db.c (thread_db_init): Pass false as `detaching' argument
15106 to thread_db_free.
15107 (thread_db_free): Add `detaching' parameter. Only
15108 call td_ta_clear_event if detaching from process.
15109
75aa492e
MK
151102009-11-12 Maxim Kuvyrkov <maxim@codesourcery.com>
15111
15112 * thread-db.c (thread_db_free): Fix typo.
15113
21e1bee4
PP
151142009-11-11 Paul Pluzhnikov <ppluzhnikov@google.com>
15115
15116 PR gdb/10838
15117 * thread-db.c (thread_db_free): Call td_ta_clear_event.
15118
8838b45e
NS
151192009-11-03 Nathan Sidwell <nathan@codesourcery.com>
15120
15121 * configure.ac (i[34567]86-*): Check if we're targetting x86-64
15122 with an i686 compiler.
15123 * configure.srv (i[34567]86-*-linux*): Pull in x86-64 handling if
15124 needed.
15125 * configure: Rebuilt.
15126
8a35fb51
SL
151272009-10-29 Sandra Loosemore <sandra@codesourcery.com>
15128
15129 PR gdb/10783
15130
15131 * server.c (handle_search_memory_1): Correct read_addr initialization
15132 in loop for searching subsequent chunks.
15133
96f15937
PP
151342009-10-29 Paul Pluzhnikov <ppluzhnikov@google.com>
15135
15136 * configure.ac: New --with-libthread-db option.
15137 * thread-db.c: Allow direct dependence on libthread_db.
15138 (thread_db_free): Adjust.
15139 * config.in: Regenerate.
15140 * configure: Likewise.
889bf7c5 15141
5f7d1694
PP
151422009-10-28 Paul Pluzhnikov <ppluzhnikov@google.com>
15143
15144 PR gdb/10757
15145 * thread-db.c (attach_thread): New function.
15146 (maybe_attach_thread): Return success/failure.
15147 (find_new_threads_callback): Adjust.
889bf7c5
PA
15148 (thread_db_find_new_threads): Loop until no new threads.
15149
88e3b899
PA
151502009-10-13 Pedro Alves <pedro@codesourcery.com>
15151
15152 * proc-service.c (ps_lgetregs): Formatting.
15153
cdbfd419
PP
151542009-10-08 Paul Pluzhnikov <ppluzhnikov@google.com>
15155
15156 * acinclude.m4: (SRV_CHECK_THREAD_DB, SRV_CHECK_TLS_GET_ADDR): Remove.
15157 * configure.ac: Adjust.
15158 * linux-low.h (struct process_info_private): Move members to struct
15159 thread_db.
15160 (thread_db_free, thread_db_handle_monitor_command): New prototype.
15161 * linux-low.c (linux_remove_process): Adjust.
15162 (linux_wait_for_event_1, linux_look_up_symbols): Likewise.
15163 * server.c (handle_query): Move code ...
15164 (handle_monitor_command): ... here. New function.
15165 * target.h (struct target_ops): New member.
15166 * thread-db.c (struct thread_db): New.
15167 (libthread_db_search_path): New variable.
15168 (thread_db_create_event, thread_db_enable_reporting)
15169 (find_one_thread, maybe_attach_thread, find_new_threads_callback)
15170 (thread_db_find_new_threads, (thread_db_get_tls_address): Adjust.
15171 (try_thread_db_load_1, dladdr_to_soname): New functions.
15172 (try_thread_db_load, thread_db_load_search): New functions.
15173 (thread_db_init): Search for libthread_db.
15174 (thread_db_free): New function.
15175 (thread_db_handle_monitor_command): Likewise.
15176 * config.in: Regenerate.
15177 * configure: Regenerate.
889bf7c5 15178
4168d2d6
UW
151792009-09-27 Ulrich Weigand <uweigand@de.ibm.com>
15180
15181 * spu-low.c (spu_kill): Wait for inferior to terminate.
15182 Call clear_inferiors.
15183 (spu_detach): Call clear_inferiors.
15184
81ecdfbb
RW
151852009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15186
15187 * aclocal.m4: Regenerate.
15188 * config.in: Likewise.
15189 * configure: Likewise.
15190
0b9ff2c0
UW
151912009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15192
15193 * linux-ppc-low.c (INSTR_SC, NR_spu_run): Define.
15194 (parse_spufs_run): New function.
15195 (ppc_get_pc, ppc_set_pc): Detect and handle SPU PC.
15196 (ppc_breakpoint_at): Handle SPU breakpoints.
15197
efcbbd14
UW
151982009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15199
15200 * linux-low.c: Include <sys/stat.h> and <sys/vfs.h>.
15201 (SPUFS_MAGIC): Define.
15202 (spu_enumerate_spu_ids): New function.
15203 (linux_qxfer_spu): New function.
15204 (linux_target_ops): Install linux_qxfer_spu.
15205
f4d9bade
UW
152062009-07-31 Ulrich Weigand <uweigand@de.ibm.com>
15207
15208 * configure.srv (powerpc*-*-linux*): Add powerpc-cell32l.o
15209 and powerpc-cell64l.o to srv_regobj. Add rs6000/powerpc-cell32l.xml
15210 and rs6000/powerpc-cell64l.xml to srv_xmlfiles.
15211 * Makefile.in (powerpc-cell32l.o, powerpc-cell32l.c): New rules.
15212 (powerpc-cell64l.o, powerpc-cell64l.c): Likewise.
15213 (clean): Handle powerpc-cell32l.c and powerpc-cell64l.c.
15214 * linux-ppc-low.c (PPC_FEATURE_CELL): Define.
15215 (init_registers_powerpc_cell32l): Add prototype.
15216 (init_registers_powerpc_cell64l): Likewise.
15217 (ppc_arch_setup): Detect Cell/B.E. architecture.
15218
96e946ca
RW
152192009-07-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15220
15221 * Makefile.in (datarootdir): New variable.
15222
58d6951d
DJ
152232009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15224
15225 * linux-low.c (linux_write_memory): Update debugging output.
15226 * Makefile.in (clean): Add new descriptions.
15227 (arm-with-vfpv2.o, arm-with-vfpv2.c, arm-with-vfpv3.o)
15228 (arm-with-vfpv3.c, arm-with-neon.o, arm-with-neon.c): New rules.
15229 * configure.srv: Add new files for arm*-*-linux*.
15230 * linux-arm-low.c: Add new declarations.
15231 (PTRACE_GETVFPREGS, PTRACE_SETVFPREGS): Define if undefined.
15232 (arm_hwcap, HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3)
15233 (HWCAP_VFPv3D16): New.
15234 (arm_fill_wmmxregset, arm_store_wmmxregset): Check HWCAP_IWMMXT
15235 instead of __IWMMXT__.
15236 (arm_fill_vfpregset, arm_store_vfpregset, arm_get_hwcap)
15237 (arm_arch_setup): New.
15238 (target_regsets): Remove #ifdef. Add VFP regset.
15239 (the_low_target): Use arm_arch_setup.
15240
12b42a12
DJ
152412009-07-28 Daniel Jacobowitz <dan@codesourcery.com>
15242
15243 * linux-low.c (linux_kill_one_lwp): Adjust kernel workaround to skip
15244 the main thread again.
15245
ac8c974e
AR
152462009-07-06 Aleksandar Ristovski <aristovski@qnx.com>
15247
15248 Adding Neutrino gdbserver.
15249 * configure: Regenerated.
15250 * configure.ac: Add case for srv_qnx and set LIBS accordingly.
15251 * configure.srv (i[34567]86-*-nto*): New target.
15252 * nto-low.c, nto-low.h, nto-x86-low.c: New files.
15253 * remote-utils.c [__QNX__]: Include sys/iomgr.h
15254 (nto_comctrl) [__QNX__]: New function.
15255 (enable_async_io, disable_async_io) [__QNX__]: Call nto_comctrl.
15256
4424e0c3 152572009-07-05 Danny Backx <dannybackx@users.sourceforge.net>
7437790a
PA
15258
15259 * configure.srv (i[34567]86-*-mingw32ce*): Add i386-low.o to
15260 srv_tgtobj.
15261
912cf4ba
PA
152622009-07-04 Danny Backx <dannybackx@users.sourceforge.net>
15263 Pedro Alves <pedro@codesourcery.com>
15264
15265 * win32-i386-low.c (i386_get_thread_context): Handle systems that
15266 don't support CONTEXT_EXTENDED_REGISTERS.
15267 (i386_win32_breakpoint, i386_win32_breakpoint_len): New.
15268 (the_low_target): Install them.
15269 * win32-low.c (get_child_debug_event): Handle WaitForDebugEvent
15270 failing with ERROR_PIPE_NOT_CONNECTED.
15271
aa5ca48f
DE
152722009-06-30 Doug Evans <dje@google.com>
15273 Pierre Muller <muller@ics.u-strasbg.fr>
15274
15275 Add h/w watchpoint support to x86-linux, win32-i386.
15276 * Makefile.in (SFILES): Add i386-low.c
15277 (i386_low_h): Define.
15278 (i386-low.o): Add dependencies.
15279 (linux-x86-low.o): Add i386-low.h dependency.
15280 (win32-i386-low.o): Ditto.
15281 * i386-low.c: New file.
15282 * i386-low.h: New file.
15283 * configure.srv (i[34567]86-*-cygwin*): Add i386-low.o to srv_tgtobj.
15284 (i[34567]86-*-linux*, i[34567]86-*-mingw*, x86_64-*-linux*): Ditto.
15285 * linux-low.c (linux_add_process): Initialize arch_private.
15286 (linux_remove_process): Free arch_private.
15287 (add_lwp): Initialize arch_private.
15288 (delete_lwp): Free arch_private.
15289 (linux_resume_one_lwp): Call the_low_target.prepare_to_resume if
15290 provided.
15291 * linux-low.h (process_info_private): New member arch_private.
15292 (lwp_info): New member arch_private.
15293 (linux_target_ops): New members new_process, new_thread,
15294 prepare_to_resume.
15295 (ptid_of): New macro.
15296 * linux-x86-low.c: Include stddef.h, i386-low.h.
15297 (arch_process_info): New struct.
15298 (arch_lwp_info): New struct.
15299 (x86_linux_dr_get, x86_linux_dr_set): New functions.
15300 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15301 (i386_dr_low_get_status): New function.
15302 (x86_insert_point, x86_remove_point): New functions.
15303 (x86_stopped_by_watchpoint): New function.
15304 (x86_stopped_data_address): New function.
15305 (x86_linux_new_process, x86_linux_new_thread): New functions.
15306 (x86_linux_prepare_to_resume): New function.
15307 (the_low_target): Add entries for insert_point, remove_point,
15308 stopped_by_watchpoint, stopped_data_address, new_process, new_thread,
15309 prepare_to_resume.
15310 * server.c (debug_hw_points): New global.
15311 (monitor_show_help): Document set debug-hw-points.
15312 (handle_query): Process "set debug-hw-points".
15313 * server.h (debug_hw_points): Declare.
15314 (paddress): Declare.
15315 * utils.c (NUMCELLS, CELLSIZE): New macros.
15316 (get_sell, xsnprintf, paddress): New functions.
15317 * win32-arm-low.c (the_low_target): Add entries for insert_point,
15318 remove_point, stopped_by_watchpoint, stopped_data_address.
15319 * win32-i386-low.c: Include i386-low.h.
15320 (debug_reg_state): Replaces dr.
15321 (i386_dr_low_set_addr, i386_dr_low_set_control): New functions.
15322 (i386_dr_low_get_status): New function.
15323 (i386_insert_point, i386_remove_point): New functions.
15324 (i386_stopped_by_watchpoint): New function.
15325 (i386_stopped_data_address): New function.
15326 (i386_initial_stuff): Update.
15327 (get_thread_context,set_thread_context,i386_thread_added): Update.
15328 (the_low_target): Add entries for insert_point,
15329 remove_point, stopped_by_watchpoint, stopped_data_address.
15330 * win32-low.c (win32_insert_watchpoint): New function.
15331 (win32_remove_watchpoint): New function.
15332 (win32_stopped_by_watchpoint): New function.
15333 (win32_stopped_data_address): New function.
15334 (win32_target_ops): Add entries for insert_watchpoint,
15335 remove_watchpoint, stopped_by_watchpoint, stopped_data_address.
15336 * win32-low.h (win32_target_ops): New members insert_point,
15337 remove_point, stopped_by_watchpoint, stopped_data_address.
15338
d993e290
PA
153392009-06-25 Pedro Alves <pedro@codesourcery.com>
15340
15341 * server.c (process_serial_event): Re-return unsupported, not
15342 error, if the type isn't recognized. Re-allow supporting only
15343 insert or remove packets. Also call require_running for
15344 breakpoints. Add missing break statement to default case. Tidy.
15345 * target.h (struct target_ops): Rename insert_watchpoint to
15346 insert_point, and remove_watchpoint to remove_point.
15347
15348 * linux-low.h (struct linux_target_ops): Likewise.
15349 * linux-low.c (linux_insert_watchpoint): Rename to ...
15350 (linux_insert_point): ... this. Adjust.
15351 (linux_remove_watchpoint): Rename to ...
15352 (linux_remove_point): ... this. Adjust.
15353 (linux_target_ops): Adjust.
15354 * linux-crisv32-low.c (cris_insert_watchpoint): Rename to ...
15355 (cris_insert_point): ... this.
15356 (cris_remove_watchpoint): Rename to ...
15357 (cris_remove_point): ... this.
15358 (the_low_target): Adjust.
15359
0f54c268
PM
153602009-06-24 Pierre Muller <muller@ics.u-strasbg.fr>
15361
15362 * server.c (handle_v_kill): Pass signal_pid to
15363 kill_inferior if multi_process is zero.
15364
c6314022
AR
153652009-06-23 Aleksandar Ristovski <aristovski@qnx.com>
15366
15367 * server.c (process_serial_event): Add support for Z0 and Z1 packet.
15368 * target.h (target_ops): Comment for *_watchpoint to make it clear
15369 the functions can get types '0' and '1'.
15370
4463ce24
AR
153712009-06-22 Aleksandar Ristovski <aristovski@qnx.com>
15372
15373 * linux-low.c (usr_fetch_inferior_registers): Remove check for regno 0.
15374 * proc-service.c (ps_lgetregs): Pass -1 to fetch all registers.
15375 * regcache.c (get_regcache): Likewise.
15376 * spu-low.c (spu_fetch_registers): Remove 0 to -1 conversion.
15377 * win32-low.c (child_fetch_inferior_registers): Remove check for
15378 regno 0.
15379
cf8fd78b
PA
153802009-06-19 Aleksandar Ristovski <aristovski@qnx.com>
15381 Pedro Alves <pedro@codesourcery.com>
15382
15383 * target.h (struct target_ops) <supports_multi_process>: New
15384 callback.
15385 (target_supports_multi_process): New.
15386 * server.c (handle_query): Even if GDB reports support, only
15387 enable multi-process if the target also supports it. Report
15388 multi-process support only if the target backend supports it.
15389 * linux-low.c (linux_supports_multi_process): New function.
15390 (linux_target_ops): Install it as target_supports_multi_process
15391 callback.
15392
47c0c975
DE
153932009-05-24 Doug Evans <dje@google.com>
15394
e09875d4
DE
15395 Global renaming of find_thread_pid to find_thread_ptid.
15396 * server.h (find_thread_ptid): Renamed from find_thread_pid.
15397 * inferiors.c (find_thread_ptid): Renamed from find_thread_pid.
15398 All callers updated.
15399
e27d73f6
DE
15400 * linux-low.c (handle_extended_wait): Use linux_resume_one_lwp
15401 to resume the newly created thread, don't call ptrace (PTRACE_CONT)
15402 directly.
15403
47c0c975
DE
15404 * linux-low.c (get_stop_pc): Print pc if debug_threads.
15405 (check_removed_breakpoint, linux_wait_for_lwp): Ditto.
15406 (linux_resume_one_lwp): Ditto.
15407
2acc282a
DE
154082009-05-23 Doug Evans <dje@google.com>
15409
15410 * linux-low.c (linux_resume_one_lwp): Change type of first arg
15411 from struct inferior_list_entry * to struct lwp_info *.
15412 All callers updated.
15413
9f1036c1
DE
154142009-05-13 Doug Evans <dje@google.com>
15415
15416 * linux-x86-low.c: Don't include assert.h.
15417 (x86_siginfo_fixup): Use fatal, not assert.
15418 (x86_arch_setup): Fix comment.
15419
d0722149
DE
154202009-05-12 Doug Evans <dje@google.com>
15421
15422 Biarch support for i386/amd64 gdbserver.
15423 * Makefile.in (SFILES): Remove linux-i386-low.c, linux-x86-64-low.c.
15424 Add linux-x86-low.c.
15425 (linux-i386-low.o, linux-x86-64-low.o): Delete.
15426 (linux-x86-low.o): Add.
15427 * linux-x86-64-low.c: Delete.
15428 * linux-i386-low.c: Delete.
15429 * linux-x86-low.c: New file.
15430 * configure.srv (i?86-linux srv_tgtobj): Replace linux-i386-low.o with
15431 linux-x86-low.o.
15432 (x86_64-linux srv_tgtobj): Replace linux-x86-64-low.o with
15433 linux-x86-low.o.
15434 (x86_64-linux srv_regobj): Add reg-i386-linux.o.
15435 * linux-low.c: Include ansidecl.h, elf/common.h, elf/external.h.
15436 (linux_child_pid_to_exec_file): New function.
15437 (elf_64_header_p, elf_64_file_p): New functions.
15438 (siginfo_fixup): New function.
15439 (linux_xfer_siginfo): New local inf_siginfo. Call siginfo_fixup to
15440 give target a chance to convert layout.
15441 * linux-low.h (linux_target_ops): New member siginfo_fixup.
15442 (linux_child_pid_to_exec_file, elf_64_file_p): Declare.
15443
fdeb2a12
DE
154442009-05-07 Doug Evans <dje@google.com>
15445
15446 * linux-low.c (regsets_fetch_inferior_registers): Fix memory leak.
15447 (regsets_store_inferior_registers): Ditto.
15448
a6dbe5df
PA
154492009-05-06 Pedro Alves <pedro@codesourcery.com>
15450
15451 PR server/10048
15452
15453 * linux-low.c (must_set_ptrace_flags): Delete.
15454 (linux_create_inferior): Set `lwp->must_set_ptrace_flags' instead
15455 of the global.
15456 (linux_attach_lwp_1): Don't set PTRACE_SETOPTIONS here. Set
15457 `lwp->must_set_ptrace_flags' instead.
ba42693b 15458 (linux_wait_for_event_1): Set ptrace options here.
a6dbe5df
PA
15459 (linux_wait_1): ... not here.
15460
5091eb23
DE
154612009-04-30 Doug Evans <dje@google.com>
15462
9f767825
DE
15463 * inferiors.c (started_inferior_callback): New function.
15464 (attached_inferior_callback): New function.
15465 (have_started_inferiors_p, have_attached_inferiors_p): New functions.
15466 * server.c (print_started_pid, print_attached_pid): New functions.
15467 (detach_or_kill_for_exit): New function.
15468 (main): Call it instead of for_each_inferior (kill_inferior_callback).
15469 * server.h (have_started_inferiors_p): Declare.
15470 (have_attached_inferiors_p): Declare.
15471
5091eb23
DE
15472 * inferiors.c (remove_process): Fix memory leak, free process.
15473 * linux-low.c (linux_remove_process): New function.
15474 (linux_kill): Call it instead of remove_process.
15475 (linux_detach, linux_wait_1): Ditto.
15476
155c8968
PA
154772009-04-19 Danny Backx <dannybackx@users.sourceforge.net>
15478
15479 * configure.srv: Add x86 Windows CE target.
15480
7fe519cb
UW
154812009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15482
15483 * inferiors.c (get_thread_process): Make global.
15484 * server.h (get_thread_process): Add prototype.
15485 * thread-db.c (find_one_thread): Use get_thread_process
15486 instead of current_process.
15487 (thread_db_get_tls_address): Do not crash if called when
15488 thread layer is not yet initialized.
15489
5472f405
UW
154902009-04-03 Ulrich Weigand <uweigand@de.ibm.com>
15491
15492 * remote-utils.c (prepare_resume_reply): Null-terminate packet.
15493 * spu-low.c (current_tid): Rename to ...
15494 (current_ptid): ... this.
15495 (fetch_ppc_register, fetch_ppc_memory, store_ppc_memory,
15496 spu_proc_xfer_spu, spu_resume, spu_request_interrupt): Use
15497 ptid_get_lwp (current_ptid) instead of current_tid.
15498 (spu_kill, spu_detach, spu_join, spu_wait): Use pid argument
15499 instead of current_tid. Use find_process_pid to verify pid
15500 argument is valid. Pass proper argument to remove_process.
15501 (spu_thread_alive): Compare current_ptid instead of current_tid.
15502 (spu_resume): Likewise.
15503
55ac2b99
PA
155042009-04-02 Pedro Alves <pedro@codesourcery.com>
15505
15506 * linux-low.c (usr_store_inferior_registers): Declare local `pid'
15507 variable.
15508
95954743
PA
155092009-04-01 Pedro Alves <pedro@codesourcery.com>
15510
15511 Implement the multiprocess extensions, and add linux multiprocess
15512 support.
15513
15514 * server.h (ULONGEST): Declare.
15515 (struct ptid, ptid_t): New.
15516 (minus_one_ptid, null_ptid): Declare.
15517 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15518 (ptid_get_tid, ptid_equal, ptid_is_pid): Declare.
15519 (struct inferior_list_entry): Change `id' type from unsigned from
15520 to ptid_t.
15521 (struct sym_cache, struct breakpoint, struct
15522 process_info_private): Forward declare.
15523 (struct process_info): Declare.
15524 (current_process): Declare.
15525 (all_processes): Declare.
15526 (initialize_inferiors): Declare.
15527 (add_thread): Adjust to use ptid_t.
15528 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): Ditto.
15529 (add_process, remove_process, find_thread_pid): Declare.
15530 (find_inferior_id): Adjust to use ptid_t.
15531 (cont_thread, general_thread, step_thread): Change type to ptid_t.
15532 (multi_process): Declare.
15533 (push_event): Adjust to use ptid_t.
15534 (read_ptid, write_ptid): Declare.
15535 (prepare_resume_reply): Adjust to use ptid_t.
15536 (clear_symbol_cache): Declare.
15537 * inferiors.c (all_processes): New.
15538 (null_ptid, minus_one_ptid): New.
15539 (ptid_build, pid_to_ptid, ptid_get_pid, ptid_get_lwp)
15540 (ptid_get_tid, ptid_equal, ptid_is_pid): New.
15541 (add_thread): Change unsigned long to ptid. Remove gdb_id
15542 parameter. Adjust.
15543 (thread_id_to_gdb_id, thread_to_gdb_id): Change unsigned long to ptid.
15544 (gdb_id_to_thread): Rename to ...
15545 (find_thread_pid): ... this. Change unsigned long to ptid.
15546 (gdb_id_to_thread_id, find_inferior_id): Change unsigned long to ptid.
15547 (loaded_dll, pull_pid_from_list): Adjust.
15548 (add_process, remove_process, find_process_pid)
15549 (get_thread_process, current_process, initialize_inferiors): New.
15550 * target.h (struct thread_resume) <thread>: Change type to ptid_t.
15551 (struct target_waitstatus) <related_pid>: Ditto.
15552 (struct target_ops) <kill, detach>: Add `pid' argument. Change
15553 return type to int.
15554 (struct target_ops) <join>: Add `pid' argument.
15555 (struct target_ops) <thread_alive>: Change pid's type to ptid_t.
15556 (struct target_ops) <wait>: Add `ptid' field. Change return type
15557 to ptid.
15558 (kill_inferior, detach_inferior, join_inferior): Add `pid' argument.
15559 (mywait): Add `ptid' argument. Change return type to ptid_t.
15560 (target_pid_to_str): Declare.
15561 * target.c (set_desired_inferior): Adjust to use ptids.
15562 (mywait): Add new `ptid' argument. Adjust.
15563 (target_pid_to_str): New.
15564 * mem-break.h (free_all_breakpoints): Declare.
15565 * mem-break.c (breakpoints): Delelete.
15566 (set_breakpoint_at, delete_breakpoint, find_breakpoint_at)
15567 (check_mem_read, check_mem_write, delete_all_breakpoints): Adjust
15568 to use per-process breakpoint list.
15569 (free_all_breakpoints): New.
15570 * remote-utils.c (struct sym_cache) <name>: Drop `const'.
15571 (symbol_cache, all_symbols_looked_up): Delete.
15572 (hexchars): New.
15573 (ishex, unpack_varlen_hex, write_ptid, hex_or_minus_one,
15574 read_ptid): New.
15575 (prepare_resume_reply): Change ptid argument's type from unsigned
15576 long to ptid_t. Adjust. Implement W;process and X;process.
15577 (free_sym_cache, clear_symbol_cache): New.
15578 (look_up_one_symbol): Adjust to per-process symbol cache. *
15579 * server.c (cont_thread, general_thread, step_thread): Change type
15580 to ptid_t.
15581 (attached): Delete.
15582 (multi_process): New.
15583 (last_ptid): Change type to ptid_t.
15584 (struct vstop_notif) <ptid>: Change type to ptid_t.
15585 (queue_stop_reply, push_event): Change `ptid' argument's type to
15586 ptid_t.
15587 (discard_queued_stop_replies): Add `pid' argument.
15588 (start_inferior): Adjust to use ptids. Adjust to mywait interface
15589 changes. Don't reference the `attached' global.
15590 (attach_inferior): Adjust to mywait interface changes.
15591 (handle_query): Adjust to use ptids. Parse GDB's qSupported
15592 features. Handle and report "multiprocess+". Handle
15593 "qAttached:PID".
15594 (handle_v_cont): Adjust to use ptids. Adjust to mywait interface
15595 changes.
15596 (handle_v_kill): New.
15597 (handle_v_stopped): Adjust to use target_pid_to_str.
15598 (handle_v_requests): Allow multiple attaches and runs when
15599 multiprocess extensions are in effect. Handle "vKill".
15600 (myresume): Adjust to use ptids.
15601 (queue_stop_reply_callback): Add `arg' parameter. Handle it.
15602 (handle_status): Adjust to discard_queued_stop_replies interface
15603 change.
15604 (first_thread_of, kill_inferior_callback)
15605 (detach_or_kill_inferior_callback, join_inferiors_callback): New.
15606 (main): Call initialize_inferiors. Adjust to use ptids, killing
15607 and detaching from all inferiors. Handle multiprocess packet
15608 variants.
15609 * linux-low.h: Include gdb_proc_service.h.
15610 (struct process_info_private): New.
15611 (struct linux_target_ops) <pid_of>: Use ptid_get_pid.
15612 <lwpid_of>: Use ptid_get_lwp.
15613 (get_lwp_thread): Adjust.
15614 (struct lwp_info): Add `dead' member.
15615 (find_lwp_pid): Declare.
15616 * linux-low.c (thread_db_active): Delete.
15617 (new_inferior): Adjust comment.
15618 (inferior_pid): Delete.
15619 (linux_add_process): New.
15620 (handle_extended_wait): Adjust.
15621 (add_lwp): Change unsigned long to ptid.
15622 (linux_create_inferior): Add process to processes table. Adjust
15623 to use ptids. Don't set new_inferior here.
15624 (linux_attach_lwp): Rename to ...
15625 (linux_attach_lwp_1): ... this. Add `initial' argument. Handle
15626 it. Adjust to use ptids.
15627 (linux_attach_lwp): New.
15628 (linux_attach): Add process to processes table. Don't set
15629 new_inferior here.
15630 (struct counter): New.
15631 (second_thread_of_pid_p, last_thread_of_process_p): New.
15632 (linux_kill_one_lwp): Add `args' parameter. Handle it. Adjust to
15633 multiple processes.
15634 (linux_kill): Add `pid' argument. Handle it. Adjust to multiple
15635 processes. Remove process from process table.
15636 (linux_detach_one_lwp): Add `args' parameter. Handle it. Adjust
15637 to multiple processes.
15638 (any_thread_of): New.
15639 (linux_detach): Add `pid' argument, and handle it. Remove process
15640 from processes table.
15641 (linux_join): Add `pid' argument. Handle it.
15642 (linux_thread_alive): Change unsighed long argument to ptid_t.
15643 Consider dead lwps as not being alive.
15644 (status_pending_p): Rename `dummy' argument to `arg'. Filter out
15645 threads we're not interested in.
15646 (same_lwp, find_lwp_pid): New.
15647 (linux_wait_for_lwp): Change `pid' argument's type from int to
15648 ptid_t. Adjust.
15649 (linux_wait_for_event): Rename to ...
15650 (linux_wait_for_event_1): ... this. Change `pid' argument's type
15651 from int to ptid_t. Adjust.
15652 (linux_wait_for_event): New.
15653 (linux_wait_1): Add `ptid' argument. Change return type to
15654 ptid_t. Adjust. Use last_thread_of_process_p. Remove processes
15655 that exit from the process table.
15656 (linux_wait): Add `ptid' argument. Change return type to ptid_t.
15657 Adjust.
15658 (mark_lwp_dead): New.
15659 (wait_for_sigstop): Adjust to use ptids. If a process exits while
15660 stopping all threads, mark its main lwp as dead.
15661 (linux_set_resume_request, linux_resume_one_thread): Adjust to use
15662 ptids.
15663 (fetch_register, usr_store_inferior_registers)
15664 (regsets_fetch_inferior_registers)
15665 (regsets_store_inferior_registers, linux_read_memory)
15666 (linux_write_memory): Inline `inferior_pid'.
15667 (linux_look_up_symbols): Adjust to use per-process
15668 `thread_db_active'.
15669 (linux_request_interrupt): Adjust to use ptids.
15670 (linux_read_auxv): Inline `inferior_pid'.
15671 (initialize_low): Don't reference thread_db_active.
15672 * gdb_proc_service.h (struct ps_prochandle) <pid>: Remove.
15673 * proc-service.c (ps_lgetregs): Use find_lwp_pid.
15674 (ps_getpid): Return the pid of the current inferior.
15675 * thread-db.c (proc_handle, thread_agent): Delete.
15676 (thread_db_create_event, thread_db_enable_reporting): Adjust to
15677 per-process data.
15678 (find_one_thread): Change argument type to ptid_t. Adjust to
15679 per-process data.
15680 (maybe_attach_thread): Adjust to per-process data and ptids.
15681 (thread_db_find_new_threads): Ditto.
15682 (thread_db_init): Ditto.
15683 * spu-low.c (spu_create_inferior, spu_attach): Add process to
15684 processes table. Adjust to use ptids.
15685 (spu_kill, spu_detach): Adjust interface. Remove process from
15686 processes table.
15687 (spu_join, spu_thread_alive): Adjust interface.
15688 (spu_wait): Adjust interface. Remove process from processes
15689 table. Adjust to use ptids.
15690 * win32-low.c (current_inferior_tid): Delete.
15691 (current_inferior_ptid): New.
15692 (debug_event_ptid): New.
15693 (thread_rec): Take a ptid. Adjust.
15694 (child_add_thread): Add `pid' argument. Adjust to use ptids.
15695 (child_delete_thread): Ditto.
15696 (do_initial_child_stuff): Add `attached' argument. Add process to
15697 processes table.
15698 (child_fetch_inferior_registers, child_store_inferior_registers):
15699 Adjust.
15700 (win32_create_inferior): Pass 0 to do_initial_child_stuff.
15701 (win32_attach): Pass 1 to do_initial_child_stuff.
15702 (win32_kill): Adjust interface. Remove process from processes
15703 table.
15704 (win32_detach): Ditto.
15705 (win32_join): Adjust interface.
15706 (win32_thread_alive): Take a ptid.
15707 (win32_resume): Adjust to use ptids.
15708 (get_child_debug_event): Ditto.
15709 (win32_wait): Adjust interface. Remove exiting process from
15710 processes table.
15711
bd99dc85
PA
157122009-04-01 Pedro Alves <pedro@codesourcery.com>
15713
15714 Non-stop mode support.
15715
15716 * server.h (non_stop): Declare.
15717 (gdb_client_data, handler_func): Declare.
15718 (delete_file_handler, add_file_handler, start_event_loop):
15719 Declare.
15720 (handle_serial_event, handle_target_event, push_event)
15721 (putpkt_notif): Declare.
15722 * target.h (enum resume_kind): New.
15723 (struct thread_resume): Replace `step' field by `kind' field.
15724 (TARGET_WNOHANG): Define.
15725 (struct target_ops) <wait>: Add `options' argument.
15726 <supports_non_stop, async, start_non_stop>: New fields.
15727 (target_supports_non_stop, target_async): New.
15728 (start_non_stop): Declare.
15729 (mywait): Add `options' argument.
15730 * target.c (mywait): Add `options' argument. Print child exit
15731 notifications here.
15732 (start_non_stop): New.
15733 * server.c (non_stop, own_buf, mem_buf): New globals.
15734 (struct vstop_notif): New.
15735 (notif_queue): New global.
15736 (queue_stop_reply, push_event, discard_queued_stop_replies)
15737 (send_next_stop_reply): New.
15738 (start_inferior): Adjust to use resume_kind. Adjust to mywait
15739 interface changes.
15740 (attach_inferior): In non-stop mode, don't wait for the target
15741 here.
15742 (handle_general_set): Handle QNonStop.
15743 (handle_query): When handling qC, return the current general
15744 thread, instead of the first thread of the list.
15745 (handle_query): If the backend supports non-stop mode, include
15746 QNonStop+ in the qSupported query response.
15747 (handle_v_cont): Adjust to use resume_kind. Handle resume_stop
15748 and non-stop mode.
15749 (handle_v_attach, handle_v_run): Handle non-stop mode.
15750 (handle_v_stopped): New.
15751 (handle_v_requests): Report support for vCont;t. Handle vStopped.
15752 (myresume): Adjust to use resume_kind. Handle non-stop.
15753 (queue_stop_reply_callback): New.
15754 (handle_status): Handle non-stop mode.
15755 (main): Clear non_stop flag on reconnection. Use the event-loop.
15756 Refactor serial protocol handling from here ...
15757 (process_serial_event): ... to this new function. When GDB
15758 selects any thread, select one here. In non-stop mode, wait until
15759 GDB acks all pending events before exiting.
15760 (handle_serial_event, handle_target_event): New.
15761 * remote-utils.c (remote_open): Install remote_desc in the event
15762 loop.
15763 (remote_close): Remove remote_desc from the event loop.
15764 (putpkt_binary): Rename to...
15765 (putpkt_binary_1): ... this. Add `is_notic' argument. Handle it.
15766 (putpkt_binary): New as wrapper around putpkt_binary_1.
15767 (putpkt_notif): New.
15768 (prepare_resume_reply): In non-stop mode, don't change the
15769 general_thread.
15770 * event-loop.c: New.
15771 * Makefile.in (OBJ): Add event-loop.o.
15772 (event-loop.o): New rule.
15773
15774 * linux-low.h (pid_of): Moved here.
15775 (lwpid_of): New.
15776 (get_lwp_thread): Use lwpid_of.
15777 (struct lwp_info): Delete `lwpid' field. Add `suspended' field.
15778 * linux-low.c (pid_of): Delete.
15779 (inferior_pid): Use lwpid_of.
15780 (linux_event_pipe): New.
15781 (target_is_async_p): New.
15782 (delete_lwp): New.
15783 (handle_extended_wait): Use lwpid_of.
15784 (add_lwp): Don't set lwpid field.
15785 (linux_attach_lwp): Adjust debug output. Use lwpid_of.
15786 (linux_kill_one_lwp): If killing a running lwp, stop it first.
15787 Use lwpid_of. Adjust to linux_wait_for_event interface changes.
15788 (linux_detach_one_lwp): If detaching from a running lwp, stop it
15789 first. Adjust to linux_wait_for_event interface changes. Use
15790 lwpid_of.
15791 (linux_detach): Don't delete the main lwp here.
15792 (linux_join): Use my_waitpid. Avoid signal_pid. Use lwpid_of.
15793 (status_pending_p): Don't consider explicitly suspended lwps.
15794 (linux_wait_for_lwp): Take an integer pid instead of a lwp_info
15795 pointer. Add OPTIONS argument. Change return type to int. Use
15796 my_waitpid instead of sleeping. Handle WNOHANG. Use lwpid_of.
15797 (linux_wait_for_event): Take an integer pid instead of a lwp_info
15798 pointer. Add status pointer argument. Return a pid instead of a
15799 status. Use lwpid_of. Adjust to linux_wait_for_lwp interface
15800 changes. In non-stop mode, don't switch to a random thread.
15801 (linux_wait): Rename to...
15802 (linux_wait_1): ... this. Add target_options argument, and handle
15803 it. Adjust to use resume_kind. Use lwpid_of. In non-stop mode,
15804 don't handle the continue thread. Handle TARGET_WNOHANG. Merge
15805 clean exit and signal exit code. Don't stop all threads in
15806 non-stop mode. In all-stop mode, only stop all threads when
15807 reporting a stop to GDB. Handle explicit thread stop requests.
15808 (async_file_flush, async_file_mark): New.
15809 (linux_wait): New.
15810 (send_sigstop): Use lwpid_of.
15811 (wait_for_sigstop): Use lwpid_of. Adjust to linux_wait_for_event
15812 interface changes. In non-stop mode, don't switch to a random
15813 thread.
15814 (linux_resume_one_lwp): Use lwpid_of.
15815 (linux_continue_one_thread, linux_queue_one_thread): Merge into ...
15816 (linux_resume_one_thread): ... this. Handle resume_stop. In
15817 non-stop mode, don't look for pending flag in all threads.
15818 (resume_status_pending_p): Don't consider explicitly suspended
15819 threads.
15820 (my_waitpid): Reimplement. Emulate __WALL.
15821 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15822 Use lwpid_of.
15823 (sigchld_handler, linux_supports_non_stop, linux_async)
15824 (linux_start_non_stop): New.
15825 (linux_target_ops): Register linux_supports_non_stop, linux_async
15826 and linux_start_non_stop.
15827 (initialize_low): Install SIGCHLD handler.
15828 * thread-db.c (thread_db_create_event, find_one_thread)
15829 (thread_db_get_tls_address): Use lwpid_of.
15830 * win32-low.c (win32_detach): Adjust to use resume_kind.
15831 (win32_wait): Add `options' argument.
15832 * spu-low.c (spu_resume): Adjust to use resume_kind.
15833 (spu_wait): Add `options' argument.
15834
5b1c542e
PA
158352009-04-01 Pedro Alves <pedro@codesourcery.com>
15836
15837 Decouple target code from remote protocol.
15838
15839 * target.h (enum target_waitkind): New.
15840 (struct target_waitstatus): New.
15841 (struct target_ops) <wait>: Return an unsigned long. Take a
15842 target_waitstatus pointer instead of a char pointer.
15843 (mywait): Likewise.
15844 * target.c (mywait): Change prototype to return an unsigned long.
15845 Take a target_waitstatus pointer instead of a char pointer. Adjust.
15846 * server.h (thread_from_wait, old_thread_from_wait): Delete
15847 declarations.
15848 (prepare_resume_reply): Change prototype to take a
15849 target_waitstatus.
15850 * server.c (thread_from_wait, old_thread_from_wait): Delete.
15851 (last_status, last_ptid): New.
15852 (start_inferior): Remove "statusptr" argument. Adjust. Return a
15853 pid instead of a signal.
15854 (attach_inferior): Remove "status" and "signal" parameters.
15855 Adjust.
15856 (handle_query): For qGetTLSAddr, parse the thread id with strtol,
15857 not as an address.
15858 (handle_v_cont, handle_v_attach, handle_v_run, handle_v_kill)
15859 (handle_v_requests, myresume): Remove "status" and "signal"
15860 parameters. Adjust.
15861 (handle_status): New.
15862 (main): Delete local `status'. Adjust.
15863 * remote-utils.c: Include target.h.
15864 (prepare_resume_reply): Change prototype to take a
15865 target_waitstatus. Adjust.
15866
15867 * linux-low.c (linux_wait): Adjust to new target_ops->wait
15868 interface.
15869 * spu-low.c (spu_wait): Adjust.
15870 * win32-low.c (enum target_waitkind, struct target_waitstatus):
15871 Delete.
15872 (win32_wait): Adjust.
15873
2bd7c093
PA
158742009-04-01 Pedro Alves <pedro@codesourcery.com>
15875
15876 * target.h (struct thread_resume): Delete leave_stopped member.
15877 (struct target_ops): Add a `n' argument to the `resume' callback.
15878 * server.c (start_inferior): Adjust.
15879 (handle_v_cont, myresume): Adjust.
15880 * linux-low.c (check_removed_breakpoint): Adjust to resume
15881 interface change, and to removed leave_stopped field.
15882 (resume_ptr): Delete.
15883 (struct thread_resume_array): New.
15884 (linux_set_resume_request): Add new `arg' parameter. Adjust to
15885 resume interface change.
15886 (linux_continue_one_thread, linux_queue_one_thread)
15887 (resume_status_pending_p): Check if the resume field is NULL
15888 instead of checking the leave_stopped member.
15889 (linux_resume): Adjust to the target resume interface change.
15890 * spu-low.c (spu_resume): Adjust to the target resume interface
15891 change.
15892 * win32-low.c (win32_detach, win32_resume): Ditto.
15893
c35fafde
PA
158942009-04-01 Pedro Alves <pedro@codesourcery.com>
15895
15896 * linux-low.c (linux_wait_for_event): Don't clear the `stepping'
15897 flag.
15898 (wait_for_sigstop): Don't leave a finished single-step SIGTRAP
15899 pending.
15900 (linux_continue_one_thread): Only preserve the stepping flag if
15901 there's a pending breakpoint.
15902
0a59d50b
PA
159032009-03-31 Pedro Alves <pedro@codesourcery.com>
15904
15905 * server.c (main): After the inferior having exited, call
15906 remote_close before exiting gdbserver.
15907
f04c6d38
TJB
159082009-03-25 Thiago Jung Bauermann <bauerman@br.ibm.com>
15909
15910 Fix size of FPSCR in Power 7 processors.
15911 * linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
15912 (PPC_FEATURE_HAS_DFP): New #define.
15913 (ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
15914 size of the FPSCR.
15915
78e5cee6
PA
159162009-03-23 Pedro Alves <pedro@codesourcery.com>
15917
15918 * server.c (handle_query) Whitespace and formatting.
15919
1b3f6016
PA
159202009-03-22 Pedro Alves <pedro@codesourcery.com>
15921
15922 * i387-fp.c, linux-arm-low.c, linux-cris-low.c,
15923 linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
15924 linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
15925 linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
15926 regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
15927 thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
15928 Makefile.in, configure.ac: Fix whitespace throughout.
15929 * configure: Regenerate.
15930
a07b2135
PA
159312009-03-22 Pedro Alves <pedro@codesourcery.com>
15932
15933 * inferiors.c (find_inferior): Make it safe for the callback
15934 function to delete the currently iterated inferior.
15935
67cc2626
PA
159362009-03-22 Pedro Alves <pedro@codesourcery.com>
15937
15938 * Makefile.in (linuw_low_h): Move higher.
15939 (thread-db.o): Depend on $(linux_low_h).
15940
54a0b537
PA
159412009-03-17 Pedro Alves <pedro@codesourcery.com>
15942
15943 Rename "process" to "lwp" throughout.
15944
15945 * linux-low.c (all_processes): Rename to...
15946 (all_lwps): ... this.
15947 (inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
15948 (add_process): Rename to ...
15949 (add_lwp): ... this. Adjust.
15950 (linux_create_inferior): Adjust.
15951 (linux_attach_lwp): Adjust.
15952 (linux_attach): Adjust.
15953 (linux_kill_one_process): Rename to ...
15954 (linux_kill_one_lwp): ... this. Adjust.
15955 (linux_kill): Adjust.
15956 (linux_detach_one_process): Rename to ...
15957 (linux_detach_one_lwp): ... this. Adjust.
15958 (linux_detach): Adjust.
15959 (check_removed_breakpoint): Adjust.
15960 (status_pending_p): Adjust.
15961 (linux_wait_for_process): Rename to ...
15962 (linux_wait_for_lwp): ... this. Adjust.
15963 (linux_wait_for_event): Adjust.
15964 (send_sigstop): Adjust.
15965 (wait_for_sigstop): Adjust.
15966 (stop_all_processes): Rename to ...
15967 (stop_all_lwps): ... this.
15968 (linux_resume_one_process): Rename to ...
15969 (linux_resume_one_lwp): ... this. Adjust.
15970 (linux_set_resume_request, linux_continue_one_thread)
15971 (linux_queue_one_thread, resume_status_pending_p)
15972 (usr_store_inferior_registers, regsets_store_inferior_registers)
15973 (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
15974 Adjust.
15975 * linux-low.h (get_process): Rename to ...
15976 (get_lwp): ... this. Adjust.
15977 (get_thread_process): Rename to ...
15978 (get_thread_lwp): ... this. Adjust.
15979 (get_process_thread): Rename to ...
15980 (get_lwp_thread): ... this. Adjust.
15981 (struct process_info): Rename to ...
15982 (struct lwp_info): ... this.
15983 (all_processes): Rename to ...
15984 (all_lwps): ... this.
15985 * proc-service.c (ps_lgetregs): Adjust.
15986 * thread-db.c (thread_db_create_event, find_one_thread)
15987 (maybe_attach_thread, thread_db_get_tls_address): Adjust.
15988
0b16c5cf
PA
159892009-03-14 Pedro Alves <pedro@codesourcery.com>
15990
15991 * server.c (handle_query): Handle "qAttached".
15992
32de4b9d
NS
159932009-03-13 Nathan Sidwell <nathan@codesourcery.com>
15994
15995 * Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
15996 GPLv3, update license URL.
15997
2aecd87f
DE
159982009-03-01 Doug Evans <dje@google.com>
15999
93efd302 16000 * Makefile.in (INCLUDE_CFLAGS): Add -I$(srcdir)/../common.
2aecd87f
DE
16001 (server_h): Add gdb_signals.h.
16002 (signals.o): Update.
16003 * server.h (target_signal_from_host,target_signal_to_host_p)
16004 (target_signal_to_host,target_signal_to_name): Moved to gdb_signals.h.
16005
86b1f9c5
PM
160062009-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
16007
16008 * remote-utils.c (getpkt): Also generate remote-debug
16009 information if noack_mode is set.
16010
4aa995e1
PA
160112009-02-06 Pedro Alves <pedro@codesourcery.com>
16012
16013 * server.c (handle_query): Report qXfer:siginfo:read and
16014 qXfer:siginfo:write as supported and handle them.
16015 * target.h (struct target_ops) <qxfer_siginfo>: New field.
16016 * linux-low.c (linux_xfer_siginfo): New.
16017 (linux_target_ops): Set it.
16018
62709adf
PA
160192009-01-26 Pedro Alves <pedro@codesourcery.com>
16020
16021 * server.c (gdbserver_usage): Mention --remote-debug.
16022 (main): Accept '--remote-debug' switch.
16023
aef93bd7
DE
160242009-01-18 Doug Evans <dje@google.com>
16025
16026 * regcache.c (new_register_cache): No need to check result of xcalloc.
16027 * server.c (handle_search_memory): Back out calls to xmalloc,
16028 result is checked and error is returned to user upon failure.
16029 (handle_query): Ditto. Add more checks for result of malloc.
16030 (handle_v_cont): Check result of malloc, report error back to
16031 user upon failure.
16032 (handle_v_run): Ditto. Call freeargv.
16033 * server.h (freeargv): Declare.
16034 * utils.c (freeargv): New fn.
16035
54363045
DE
160362009-01-15 Doug Evans <dje@google.com>
16037
f626972c
DE
16038 * gdbreplay.c (perror_with_name): Make arg const char *.
16039 * server.h (target_signal_to_name): Make return type const char *.
0842e787 16040 * thread-db.c (thread_db_err_str): Make return type const char *.
f626972c 16041 * utils.c (perror_with_name): Make arg const char *.
54363045 16042
18aae699
PA
160432009-01-14 Pedro Alves <pedro@codesourcery.com>
16044
16045 * win32-low.c (get_child_debug_event): Issue a final DBG_CONTINUE
16046 when handling a EXIT_PROCESS_DEBUG_EVENT.
16047
ff703abe
JB
160482009-01-06 Joel Brobecker <brobecker@adacore.com>
16049
16050 * gdbreplay.c (gdbreplay_version): Update copyright year.
16051 * server.c (gdbserver_version): Likewise.
16052
f21cc1a2 160532009-01-05 Doug Evans <dje@google.com>
0e21c1ec
DE
16054
16055 * linux-low.c (linux_attach_lwp): Add some comments/fixmes.
f21cc1a2 16056 (handle_extended_wait): Improve comment.
0e21c1ec 16057
bca929d3
DE
160582008-12-13 Doug Evans <dje@google.com>
16059
16060 * utils.c (xmalloc,xcalloc,xstrdup): New fns.
16061 * server.h (ATTR_MALLOC): New macro.
16062 (xmalloc,xcalloc,xstrdup): Declare.
16063 * hostio.c: Replace malloc,calloc,strdup with xmalloc,xcalloc,xstrdup.
16064 * inferiors.c: Ditto.
16065 * linux-low.c: Ditto.
16066 * mem-break.c: Ditto.
16067 * regcache.c: Ditto.
16068 * remote-utils.c: Ditto.
16069 * server.c: Ditto.
16070 * target.c: Ditto.
16071 * win32-low.c: Ditto.
16072
97438e3f
DE
160732008-12-12 Doug Evans <dje@google.com>
16074
896c7fbb
DE
16075 * linux-low.c (linux_wait_for_process): Don't clobber current_inferior
16076 in debugging printf.
16077
97438e3f
DE
16078 * linux-low.c (handle_extended_wait): Simplify, use my_waitpid.
16079
e3b886f8
DE
160802008-12-09 Doug Evans <dje@google.com>
16081
16082 * linux-low.h (struct process_info): Delete member tid, unused.
16083 * thread-db.c (find_one_thread): Update.
16084 (maybe_attach_thread): Update.
16085
07e059b5
VP
160862008-12-02 Pedro Alves <pedro@codesourcery.com>
16087
889bf7c5
PA
16088 * target.h (struct target_ops): Add qxfer_osdata member.
16089 * linux-low.c: Include ctype.h and pwd.h and sys/types.h
16090 and dirent.h.
16091 (linux_qxfer_osdata): New functions.
16092 (linux_target_ops): Register linux_qxfer_osdata as qxfer_osdata
16093 callback.
16094 * server.c (handle_query): Handle "qXfer:osdata:read:".
16095 * remote-utils.c (buffer_grow, buffer_free, buffer_init, buffer_finish)
16096 (buffer_xml_printf): New functions.
16097 * server.h (struct buffer): New.
16098 (buffer_grow_str, buffer_grow_str0): New macros.
16099 (buffer_grow, buffer_free, buffer_init, buffer_finish)
16100 (buffer_xml_printf): Declare.
07e059b5 16101
4cab47ab
DE
161022008-11-24 Doug Evans <dje@google.com>
16103
16104 * Makefile.in (VERSION,DIST,LINT,LINTFLAGS): Delete, unused.
16105
f142445f
DJ
161062008-11-24 Daniel Jacobowitz <dan@codesourcery.com>
16107
16108 * server.c (handle_v_run): Always use the supplied argument list.
16109
d0107bb6 161102008-11-19 Bob Wilson <bob.wilson@acm.org>
889bf7c5 16111
d0107bb6
BW
16112 * xtensa-xtregs.c (XTENSA_ELF_XTREG_SIZE): Change to 4.
16113 (xtensa_regmap_table): Add entry for scompare1.
889bf7c5 16114
2c4ad781
TJB
161152008-11-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
16116
16117 * Makefile.in (powerpc-isa205-32l.o, powerpc-isa205-32l.c,
16118 powerpc-isa205-altivec32l.o, powerpc-isa205-altivec32l.c,
16119 powerpc-isa205-vsx32l.o, powerpc-isa205-vsx32l.c,
16120 powerpc-isa205-64l.o, powerpc-isa205-64l.c,
16121 powerpc-isa205-altivec64l.o, powerpc-isa205-altivec64l.c,
16122 powerpc-isa205-vsx64l.o, powerpc-isa205-vsx64l.c): New targets.
16123 * configure.srv (powerpc*-*-linux*): Add ISA 2.05 object files and
16124 XML target descriptions.
16125 * linux-ppc-low.c (ppc_arch_setup): Init registers with 64-bit FPSCR
16126 when inferior is running on an ISA 2.05 or later processor. Add
16127 special case to return offset for full 64-bit slot of FPSCR when
16128 in 32-bits.
16129
dfb64f85
DJ
161302008-11-14 Daniel Gutson <dgutson@codesourcery.com>
16131
16132 * Makefile.in (SFILES, clean): Added sparc64 files.
16133 (reg-sparc64.o, reg-sparc64.c): New.
16134 * configure.srv (sparc*-*-linux*): New configuration.
16135 * linux-low.c (regsets_fetch_inferior_registers): Swap ptrace
16136 syscall arguments for SPARC.
16137 (regsets_store_inferior_registers): Likewise.
16138 * linux-sparc-low.c: New file.
16139
66b6e1dd
DE
161402008-10-21 Doug Evans <dje@google.com>
16141
16142 * Makefile.in (BFD_DIR,BFD,BFD_SRC,BFD_CFLAGS): Delete.
16143 (READLINE_DIR,READLINE_DEP): Delete.
16144 (INTERNAL_CFLAGS): Update.
16145 (LINTFLAGS): Update.
16146
9b710a42
PA
161472008-10-10 Pedro Alves <pedro@codesourcery.com>
16148
16149 * server.c (handle_v_run): If GDB didn't specify an argv, use the
16150 whole argv from the last run, not just argv[0].
16151
5822d809
PA
161522008-09-08 Pedro Alves <pedro@codesourcery.com>
16153
16154 * regcache.c (new_register_cache): Return NULL if the register
16155 cache size isn't known yet.
16156 (free_register_cache): Avoid dereferencing a NULL regcache.
16157
74aac56f
DJ
161582008-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16159
16160 * configure.srv: Merge MIPS and MIPS64.
16161
400b20f5
MR
161622008-08-24 Maciej W. Rozycki <macro@linux-mips.org>
16163
16164 * Makefile.in (uninstall): Apply $(EXEEXT) too.
16165
677c5bb1
LM
161662008-08-18 Luis Machado <luisgpm@br.ibm.com>
16167
16168 * Makefile.in: Add required vsx dependencies.
16169
16170 * linux-ppc-low: Define PPC_FEATURE_HAS_VSX.
16171 Declare init_registers_powerpc_vsx32l.
16172 Declare init_registers_powerpc_vsx64l.
16173 Define PTRACE_GETVSXREGS and PTRACE_SETVSXREGS.
16174 (ppc_arch_setup): Check for VSX in hwcap.
16175 (ppc_fill_vsxregset): New function.
16176 (ppc_store_vsxregset): New function.
16177 Add new VSX entry in regset_info target_regsets.
16178
16179 * configure.srv: Add new VSX dependencies.
16180
a6f3e723
SL
161812008-08-12 Pedro Alves <pedro@codesourcery.com>
16182
16183 * remote-utils.c (noack_mode, transport_is_reliable): New globals.
16184 (remote_open): Set or clear transport_is_reliable.
16185 (putpkt_binary): Don't expect acks in noack mode.
16186 (getpkt): Don't send ack/nac in noack mode.
16187 * server.c (handle_general_set): Handle QStartNoAckMode.
16188 (handle_query): If connected by tcp pass QStartNoAckMode+ in
16189 qSupported.
16190 (main): Reset noack_mode on every connection.
16191 * server.h (noack_mode): Declare.
16192
a417dc56
RW
161932008-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16194
16195 * Makefile.in (GDBREPLAY_OBS): New variable.
16196 (gdbreplay$(EXEEXT)): Use it to avoid unportable $^.
16197
3221518c
UW
161982008-08-05 Ulrich Weigand <uweigand@de.ibm.com>
16199 Daniel Jacobowitz <dan@codesourcery.com>
16200
16201 * linux-low.c (linux_resume_one_process): Ignore ESRCH.
16202 (usr_store_inferior_registers): Likewise.
16203 (regsets_store_inferior_registers): Likewise.
16204
ec56be1b
PA
162052008-07-31 Rolf Jansen <rj@surtec.com>
16206 Pedro Alves <pedro@codesourcery.com>
16207
16208 * configure.ac: Check for memmem declaration.
16209 * server.c [HAVE_MALLOC_H]: Include malloc.h.
16210 (disable_packet_vCont, disable_packet_Tthread, disable_packet_qC)
16211 (disable_packet_qfThreadInfo): Unconditionally compile.
16212 * server.h [!HAVE_DECL_MEMMEM]: Declare memmem.
16213 * configure, config.in: Regenerate.
16214
2fe5e3ff
DE
162152008-07-28 Doug Kwan <dougkwan@google.com>
16216
16217 * linux-low.c (sys/dir.h, sys/user.h): Remove includes.
16218 (linux_write_memory): Remove declaration of errno.
16219
836acd6d
UW
162202008-07-12 Ulrich Weigand <uweigand@de.ibm.com>
16221
16222 * linux-low.c (handle_extended_wait): Do not use "status"
16223 variable uninitialized.
16224
aeba519e
PA
162252008-07-07 Pedro Alves <pedro@codesourcery.com>
16226
16227 * server.c (handle_v_attach): Inhibit reporting dll changes.
16228
db42f210
PA
162292008-06-27 Pedro Alves <pedro@codesourcery.com>
16230
16231 * remote-utils.c (prepare_resume_reply): If requested, don't
16232 output "thread:TID" in the T stop reply.
16233
16234 * server.c (disable_packet_vCont, disable_packet_Tthread)
16235 (disable_packet_qC, disable_packet_qfThreadInfo): New globals.
16236 (handle_query): If requested, disable support for qC, qfThreadInfo
16237 and qsThreadInfo.
16238 (handle_v_requests): If requested, disable support for vCont.
16239 (gdbserver_show_disableable): New.
16240 (main): Handle --disable-packet and --disable-packet=LIST.
16241
16242 * server.h (disable_packet_vCont, disable_packet_Tthread)
16243 (disable_packet_qC, disable_packet_qfThreadInfo): Declare.
16244
8e4c5421
CD
162452008-06-20 Carlos O'Donell <carlos@codesourcery.com>
16246
16247 * server.c (gdbserver_usage): Mention --version.
16248
6e23a804
DJ
162492008-06-06 Daniel Jacobowitz <dan@codesourcery.com>
16250
16251 * Makefile.in (gdbreplay.o): New rule.
16252
90aa6a40
JM
162532008-06-06 Joseph Myers <joseph@codesourcery.com>
16254
16255 * gdbreplay.c (gdbreplay_version): Say gdbreplay in version
16256 message, not gdbserver.
16257
c16158bc 162582008-06-05 Vladimir Prus <vladimir@codesourcery.com>
889bf7c5
PA
16259 Nathan Sidwell <nathan@codesourcery.com>
16260 Joseph Myers <joseph@codesourcery.com>
c16158bc
JM
16261
16262 * acinclude.m4: Include ../../config/acx.m4.
16263 * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL.
16264 * configure, config.in: Regenerate.
16265 * Makefile.in (gdbreplay$(EXEEXT)): Add version.o.
16266 * server.c (gdbserver_version): Print PKGVERSION.
16267 (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO.
16268 (main): Adjust gdbserver_usage calls.
16269 * gdbreplay.c (version, host_name): Add declarations.
16270 (gdbreplay_version, gdbreplay_usage): New.
16271 (main): Accept --version and --help options.
16272
aeb75bf5
DJ
162732008-06-04 Daniel Jacobowitz <dan@codesourcery.com>
16274
16275 * linux-arm-low.c (thumb_breakpoint, thumb_breakpoint_len): New.
16276 (arm_breakpoint_at): Handle Thumb.
16277 (the_low_target): Add comment.
16278
76b233dd
UW
162792008-05-29 Ulrich Weigand <uweigand@de.ibm.com>
16280
16281 * linux-ppc-low.c (ppc_collect_ptrace_register): Clear buffer.
16282
08388c79
DE
162832008-05-09 Doug Evans <dje@google.com>
16284
a3c83fae
DE
16285 * server.h (decode_search_memory_packet): Declare.
16286 * remote-utils.c (decode_search_memory_packet): New fn.
16287 * server.c (handle_search_memory_1): New fn.
08388c79
DE
16288 (handle_search_memory): New fn.
16289 (handle_query): Process qSearch:memory packets.
16290
bb9c3d36
UW
162912008-05-08 Ulrich Weigand <uweigand@de.ibm.com>
16292
16293 * regcache.c (registers_length): Remove.
16294 (set_register_cache): Verify that PBUFSIZ is large enough to hold a
16295 full register packet.
16296 * regcache.h (registers_length): Remove prototype.
16297 * server.h (PBUFSIZ): Define to 16384.
16298
7284e1be
UW
162992008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
16300
16301 * configure.srv (powerpc*-*-linux*): Set srv_regobj to
16302 powerpc-32l.o, powerpc-altivec32l.o, powerpc-e500l.o,
16303 powerpc-64l.o, and powerpc-altivec64l.o.
16304 Remove rs6000/powerpc-32.xml, rs6000/powerpc-64.xml, and
16305 rs6000/powerpc-e500.xml; add rs6000/powerpc-32l.xml,
16306 rs6000/powerpc-altivec32l.xml, rs6000/powerpc-e500l.xml,
16307 rs6000/powerpc-64l.xml, rs6000/powerpc-altivec64l.xml,
16308 rs6000/power-linux.xml, and rs6000/power64-linux.xml
16309 to srv_xmlfiles.
16310
16311 * Makefile.in (reg-ppc.o, reg-ppc.c): Remove, replace by ...
16312 (powerpc-32l.o, powerpc-32l.c): ... these new rules.
16313 (powerpc-32.o, powerpc-32.c): Remove, replace by ...
16314 (powerpc-altivec32l.o, powerpc-altivec32l.c): ... these new rules.
16315 (powerpc-e500.o, powerpc-e500.c): Remove, replace by ...
16316 (powerpc-e500l.o, powerpc-e500l.c): ... these new rules.
16317 (reg-ppc64.o, reg-ppc64.c): Remove, replace by ...
16318 (powerpc-64l.o, powerpc-64l.c): ... these new rules.
16319 (powerpc-64.o, powerpc-64.c): Remove, replace by ...
16320 (powerpc-altivec64l.o, powerpc-altivec64l.c): ... these new rules.
16321 (clean): Update.
16322
16323 * linux-ppc-low.c (init_registers_ppc): Remove, replace by ...
16324 (init_registers_powerpc_32l): ... this new prototype.
16325 (init_registers_powerpc_32): Remove, replace by ...
16326 (init_registers_powerpc_altivec32l): ... this new prototype.
16327 (init_registers_powerpc_e500): Remove, replace by ...
16328 (init_registers_powerpc_e500l): ... this new prototype.
16329 (init_registers_ppc64): Remove, replace by ...
16330 (init_registers_powerpc_64l): ... this new prototype.
16331 (init_registers_powerpc_64): Remove, replace by ...
16332 (init_registers_powerpc_altivec64l): ... this new prototype.
16333 (ppc_num_regs): Set to 73.
16334 (PT_ORIG_R3, PT_TRAP): Define if necessary.
16335 (ppc_regmap, ppc_regmap_e500): Add values for orig_r3 and trap.
16336 (ppc_cannot_store_register): Handle orig_r3 and trap.
16337 (ppc_arch_setup): Update init_registers_... calls.
16338 (ppc_fill_gregset): Handle orig_r3 and trap.
16339
16340 * inferiors.c (clear_inferiors): Reset current_inferior.
16341
fdc59709
PB
163422008-04-23 Paolo Bonzini <bonzini@gnu.org>
16343
889bf7c5
PA
16344 * acinclude.m4: Add override.m4.
16345 * configure: Regenerate.
fdc59709 16346
c9b2f845
UW
163472008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16348
16349 * linux-ppc-low.c (ppc_arch_setup): Reset ppc_hwcap after the
16350 initial call to init_register_ppc64.
16351
550512b8
UW
163522008-04-21 Ulrich Weigand <uweigand@de.ibm.com>
16353
43aaf8b6
PA
16354 * configure.srv (powerpc64-*-linux*, powerpc-*-linux*): Merge into
16355 single powerpc*-*-linux* case.
550512b8
UW
16356 (s390-*-linux*, s390x-*-linux*): Merge into single s390*-*-linux* case.
16357
b6430ec3
UW
163582008-04-17 Ulrich Weigand <uweigand@de.ibm.com>
16359
16360 * configure.srv [powerpc64-*-linux*]: Remove powerpc-e500.o from
889bf7c5 16361 srv_regobj. Remove rs6000/powerpc-e500.xml and rs6000/power-spe.xml
b6430ec3
UW
16362 from reg_xmlfiles.
16363 * linux-ppc-low.c: Include <elf.h>.
16364 (PPC_FEATURE_HAS_ALTIVEC, PPC_FEATURE_HAS_SPE): Define.
16365 (ppc_hwcap): New global variable.
16366 (ppc_regmap): Remove __SPE__ #ifdef sections.
16367 (ppc_regmap_e500): New global variable.
16368 (ppc_cannot_store_register): Update __SPE__ special case.
16369 (ppc_get_hwcap): New function.
16370 (ppc_arch_setup): Use it to determine whether inferior supports
16371 AltiVec or SPE registers. Set the_low_target.regmap if appropriate.
16372 (ppc_fill_vrregset, ppc_store_vrregset): Define unconditionally.
16373 Do not access registers if target does not support AltiVec.
16374 (ppc_fill_evrregset, ppc_store_evrregset): Define unconditionally.
16375 Do not access registers if target does not support SPE.
16376 (target_regsets): Unconditionally include AltiVec and SPE regsets.
16377
52fa2412
UW
163782008-04-17 Daniel Jacobowitz <dan@codesourcery.com>
16379
16380 * linux-low.c (disabled_regsets, num_regsets): New.
16381 (use_regsets_p): Delete.
16382 (linux_wait_for_process): Clear disabled_regsets.
16383 (regsets_fetch_inferior_registers): Check and set it.
16384 (regsets_store_inferior_registers): Likewise.
16385 (linux_fetch_registers, linux_store_registers): Do not use
16386 use_regsets_p.
16387 (initialize_low): Allocate disabled_regsets.
16388
e28b3332
DJ
163892008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
16390
16391 * Makefile.in (LIBOBJS): New.
16392 (OBS): Use LIBOBJS.
16393 (memmem.o): New rule.
16394 * configure.ac: Use AC_CONFIG_LIBOBJ_DIR and check for memmem.
16395 * configure: Regenerated.
16396
4536995d
UW
163972008-04-04 Ulrich Weigand <uweigand@de.ibm.com>
16398
16399 * server.c (handle_query): Never return "unsupported" for
16400 qXfer:features:read queries.
16401
221c031f
UW
164022008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
16403
16404 * server.c (get_features_xml): Fix inverted condition.
16405 (handle_query): Always support qXfer:feature:read.
16406
ccd213ac
DJ
164072008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
16408
16409 * server.c (wrapper_argv): New.
16410 (start_inferior): Handle wrapper_argv. If set, expect an extra
16411 trap.
16412 (gdbserver_usage): Document --wrapper.
16413 (main): Parse --wrapper.
16414
6fe305f7
UW
164152008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16416
16417 * configure.srv [powerpc64-*-linux*]: Add all files mentioned for
16418 powerpc-*-linux* to srv_regobj and reg_xmlfiles.
16419 * linux-ppc-low.c (ppc_get_pc): Support bi-arch operation.
16420 (ppc_set_pc): Likewise.
16421 (ppc_arch_setup): New function.
16422 (ppc_fill_gregset): Call ppc_collect_ptrace_register instead
16423 of collect_register.
889bf7c5 16424 (the_low_target): Use ppc_arch_setup as arch_setup initializer.
6fe305f7 16425
5b0a002e
UW
164262008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16427
16428 * configure.srv [powerpc64-*-linux*]: Use linux-ppc-low.o
16429 instead of linux-ppc64-low.o.
16430 * linux-ppc64-low.c: Remove file.
16431 * Makefile.in (SFILES): Remove linux-ppc64-low.c.
16432 (linux-ppc64-low.o): Remove rule.
16433
16434 * linux-ppc-low.c (init_registers_ppc64): Add prototype.
16435 (init_registers_powerpc_64): Likewise.
16436 (ppc_regmap): Conditionally define depending on __powerpc64__.
16437 (ppc_cannot_store_register): Do not special-case "fpscr" when
16438 compiled on __powerpc64__.
16439 (ppc_collect_ptrace_register): New function.
16440 (ppc_supply_ptrace_register): New function.
16441 (ppc_breakpoint): Change type to "unsigned int".
16442 (ppc_breakpoint_at): Change type of "insn" to "unsigned int".
16443 (the_low_target): Conditionally provide initializers for the
889bf7c5 16444 arch_setup member depending on __powerpc64__. Install
5b0a002e
UW
16445 collect_ptrace_register and supply_ptrace_register members.
16446
9b4b61c8
UW
164472008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
16448
16449 * regcache.h (gdbserver_xmltarget): Add extern declaration.
16450 * server.c (gdbserver_xmltarget): Define.
16451 (get_features_xml): Use it to replace "target.xml" and arch_string.
16452
16453 * configure.srv: Remove srv_xmltarget. Add XML files that were
16454 mentioned there to srv_xmlfiles instead. Remove conditional tests
16455 on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set
16456 srv_xmlfiles and srv_regobj to include all possible choices.
16457 * configure.ac (srv_xmltarget): Remove.
16458 (srv_xmlfiles): Do not add "target.xml".
16459 (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove
16460 checks for supplementary target information.
16461 * configure: Regenerate.
16462 * Makefile.in (XML_TARGET): Remove.
16463 (target.xml): Remove rule.
16464 (clean): Do not clean up target.xml.
16465 (.PRECIOUS): Do not mention target.xml.
16466
16467 * target.h (struct target_ops): Remove arch_string member.
16468 * linux-low.c (linux_arch_string): Remove.
16469 (linux_target_ops): Remove arch_string initializer.
16470 * linux-low.h (struct linux_target_ops): Remove arch_string member.
16471 * linux-i386-low.c (the_low_target): Remove arch_string initializer.
16472 * linux-x86-64-low.c (the_low_target): Remove arch_string initializer.
16473 * spu-low.c (spu_arch_string): Remove.
16474 (spu_target_ops): Remove arch_string initializer.
16475 * win32-low.c (win32_arch_string): Remove.
16476 (win32_target_ops): Remove arch_string initializer.
16477 * win32-low.h (struct win32_target_ops): Remove arch_string member.
16478 * win32-arm-low.c (the_low_target): Remove arch_string initializer.
16479 * win32-i368-low.c (the_low_target): Remove arch_string initializer.
16480
ee1a7ae4
UW
164812008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16482
16483 * linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
16484 by collect_ptrace_register and supply_ptrace_register hooks.
16485 * linux-low.c (fetch_register): Use supply_ptrace_register callback
16486 instead of checking for the_low_target.left_pad_xfer.
16487 (usr_store_inferior_registers): Use collect_ptrace_register callback
16488 instead of checking for the_low_target.left_pad_xfer.
16489
16490 * linux-s390-low.c (s390_collect_ptrace_register): New function.
16491 (s390_supply_ptrace_register): Likewise.
16492 (s390_fill_gregset): Call s390_collect_ptrace_register.
16493 (the_low_target): Update.
16494
16495 * linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
16496 (ppc_supply_ptrace_register): Likewise.
16497 (the_low_target): Update.
16498
16499 * linux-i386-low.c (the_low_target): Update.
16500 * linux-x86-64-low.c (the_low_target): Update.
16501
d61ddec4
UW
165022008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16503
16504 * configure.srv [s390x-*-linux*]: Set srv_regobj to include both
16505 reg-s390.o and reg-s390x.o.
16506
16507 * linux-low.c (new_inferior): New global variable.
16508 (linux_create_inferior, linux_attach): Set it.
16509 (linux_wait_for_process): Call the_low_target.arch_setup after the
16510 target has stopped for the first time.
16511 (initialize_low): Do not call the_low_target.arch_setup.
16512
16513 * linux-s390-low.c (s390_get_pc): Support bi-arch operation.
16514 (s390_set_pc): Likewise.
16515 (s390_arch_setup): New function.
16516 (the_low_target): Use s390_arch_setup as arch_setup routine.
16517
16518 * regcache.c (realloc_register_cache): New function.
16519 (set_register_cache): Call it for each existing regcache.
16520
d05b4ac3
UW
165212008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
16522
16523 * server.h (init_registers): Remove prototype.
16524
16525 * linux-low.h (struct linux_target_ops): Add arch_setup field.
16526 * linux-low.c (initialize_low): Call the_low_target.arch_setup ()
16527 instead of init_registers ().
16528 * linux-arm-low.c (init_registers_arm): Add prototype.
16529 (init_registers_arm_with_iwmmxt): Likewise.
16530 (the_low_target): Add initializer for arch_setup field.
16531 * linux-cris-low.c (init_registers_cris): Add prototype.
16532 (the_low_target): Add initializer for arch_setup field.
16533 * linux-crisv32-low.c (init_registers_crisv32): Add prototype.
16534 (the_low_target): Add initializer for arch_setup field.
16535 * linux-i386-low.c (init_registers_i386_linux): Add prototype.
16536 (the_low_target): Add initializer for arch_setup field.
16537 * linux-ia64-low.c (init_registers_ia64): Add prototype.
16538 (the_low_target): Add initializer for arch_setup field.
16539 * linux-m32r-low.c (init_registers_m32r): Add prototype.
16540 (the_low_target): Add initializer for arch_setup field.
16541 * linux-m68k-low.c (init_registers_m68k): Add prototype.
16542 (the_low_target): Add initializer for arch_setup field.
16543 * linux-mips-low.c (init_registers_mips_linux): Add prototype.
16544 (init_registers_mips64_linux): Likewise.
16545 (the_low_target): Add initializer for arch_setup field.
16546 * linux-ppc-low.c (init_registers_ppc): Add prototype.
16547 (init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
16548 (the_low_target): Add initializer for arch_setup field.
16549 * linux-ppc64-low.c (init_registers_ppc64): Add prototype.
16550 (init_registers_powerpc_64): Likewise.
16551 (the_low_target): Add initializer for arch_setup field.
16552 * linux-s390-low.c (init_registers_s390): Add prototype.
16553 (init_registers_s390x): Likewise.
16554 (the_low_target): Add initializer for arch_setup field.
16555 * linux-sh-low.c (init_registers_sh): Add prototype.
16556 (the_low_target): Add initializer for arch_setup field.
16557 * linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
16558 (the_low_target): Add initializer for arch_setup field.
16559 * linux-xtensa-low.c (init_registers_xtensa): Add prototype.
16560 (the_low_target): Add initializer for arch_setup field.
16561
16562 * win32-low.h (struct win32_target_ops): Add arch_setup field.
16563 * win32-low.c (initialize_low): Call the_low_target.arch_setup ()
16564 instead of init_registers ().
16565 * win32-arm-low.c (init_registers_arm): Add prototype.
16566 (the_low_target): Add initializer for arch_setup field.
16567 * win32-i386-low.c (init_registers_i386): Add prototype.
16568 (the_low_target): Add initializer for arch_setup field.
16569
16570 * spu-low.c (init_registers_spu): Add prototype.
16571 (initialize_low): Call initialie_registers_spu () instead of
16572 initialize_registers ().
16573
fd96d250
PA
165742008-02-19 Pedro Alves <pedro@codesourcery.com>
16575
16576 * server.c (handle_v_requests): When handling the vRun and vAttach
16577 packets, if already debugging a process, don't kill it. Return an
16578 error instead.
16579
d41b6bb4
DJ
165802008-02-17 Daniel Jacobowitz <dan@codesourcery.com>
16581
16582 * server.c (handle_query): Correct length check.
16583
5ac588cf
PA
165842008-02-14 Pedro Alves <pedro_alves@portugalmail.pt>
16585
16586 * win32-low.c (do_initial_child_stuff): Add process handle
16587 parameter. Set current_process_handle and current_process_id from the
16588 parameters. Clear globals.
16589 (win32_create_inferior): Don't set current_process_handle and
16590 current_process_id here. Instead pass them on the call to
16591 do_initial_child_stuff.
16592 (win32_attach): Likewise.
16593 (win32_clear_inferiors): New.
16594 (win32_kill): Don't close the current process handle or the
16595 current thread handle here. Instead call win32_clear_inferiors.
16596 (win32_detach): Don't open a new handle to the process. Call
16597 win32_clear_inferiors.
16598 (win32_join): Don't rely on current_process_handle; open a new
16599 handle using the process id.
16600 (win32_wait): Call win32_clear_inferiors when the inferior process
16601 has exited.
16602
ecd7ecbc
DJ
166032008-02-14 Daniel Jacobowitz <dan@codesourcery.com>
16604
16605 * server.c (monitor_show_help): Add "exit".
16606
1525d545
MG
166072008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
16608
ecd7ecbc 16609 * Makefile.in (SFILES): Add linux-xtensa-low.c.
1525d545
MG
16610 (clean): Add reg-xtensa.c.
16611 (linux-xtensa-low.o, reg-xtensa.o, reg-xtensa.c): New dependencies.
ecd7ecbc
DJ
16612 * configure.srv (xtensa*-*-linux*) New target.
16613 * linux-xtensa-low.c: New.
16614 * xtensa-xtregs.c: New.
1525d545 16615
59a016f0
PA
166162008-02-01 Pedro Alves <pedro_alves@portugalmail.pt>
16617
16618 * hostio.c: Don't include errno.h.
16619 (errno_to_fileio_errno): Move to hostio-errno.
16620 * hostio.c: (hostio_error): Remove the error parameter. Defer the
16621 error number outputting to the target->hostio_last_error callback.
16622 (hostio_packet_error): Use FILEIO_EINVAL directly.
16623 (handle_open, handle_pread, hostio_error, handle_unlink): Update
16624 calls to hostio_error.
16625 * hostio-errno.c: New.
16626 * server.h (hostio_last_error_from_errno): Declare.
16627 * target.h (target_ops): Add hostio_last_error member.
16628 * linux-low.c (linux_target_op): Register hostio_last_error_from_errno
16629 as hostio_last_error handler.
889bf7c5 16630 * spu-low.c (spu_target_ops): Likewise.
59a016f0
PA
16631 * win32-low.c [_WIN32_WCE] (win32_error_to_fileio_error)
16632 (wince_hostio_last_error): New functions.
16633 (win32_target_ops) [_WIN32_WCE]: Register wince_hostio_last_error
16634 as hostio_last_error handler.
16635 (win32_target_ops) [!_WIN32_WCE]: Register
16636 hostio_last_error_from_errno as hostio_last_error handler.
16637 * Makefile.in (SFILES): Add hostio.c and hostio-errno.c.
16638 (hostio-errno.o): New rule.
16639 * configure.ac (GDBSERVER_DEPFILES): Add $srv_hostio_err_objs.
16640 * configure.srv (srv_hostio_err_objs): New variable. Default to
16641 hostio-errno.o.
16642 (arm*-*-mingw32ce*): Set srv_hostio_err_objs to "".
16643 * configure: Regenerate.
16644
2d717e4f
DJ
166452008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
16646
16647 * linux-low.c (linux_attach_lwp): Do not _exit after errors.
16648 (linux_kill, linux_detach): Clean up the process list.
16649 * remote-utils.c (remote_open): Improve port number parsing.
16650 (putpkt_binary, input_interrupt): Only send interrupts if the target
16651 is running.
16652 * server.c (extended_protocol): Make static.
16653 (attached): Define earlier.
16654 (exit_requested, response_needed, program_argv): New variables.
16655 (target_running): New.
16656 (start_inferior): Clear attached here.
16657 (attach_inferior): Set attached here.
16658 (require_running): Define.
16659 (handle_query): Use require_running and target_running. Implement
16660 "monitor exit".
16661 (handle_v_attach, handle_v_run): New.
16662 (handle_v_requests): Use require_running. Handle vAttach and vRun.
16663 (gdbserver_usage): Update.
16664 (main): Redo argument parsing. Handle --debug and --multi. Handle
16665 --attach along with other options or after the port. Save
16666 program_argv. Support no initial program. Resynchronize
16667 communication with GDB after an error. Handle "monitor exit".
16668 Use require_running and target_running. Always allow the extended
16669 protocol. Do not error out for Hc0 or Hc-1. Do not automatically
16670 restart in extended mode.
16671 * README: Refer to the GDB manual. Update --attach usage.
16672
7407e2de
AS
166732007-12-20 Andreas Schwab <schwab@suse.de>
16674
16675 * linux-low.c (STACK_SIZE): Define.
16676 (linux_tracefork_child): Use it. Use __clone2 on ia64.
16677 (linux_test_for_tracefork): Likewise.
16678
b65d95c5
DJ
166792007-12-18 Daniel Jacobowitz <dan@codesourcery.com>
16680
16681 * linux-low.c (linux_wait_for_event): Update messages. Do not
16682 reinsert auto-delete breakpoints.
16683 * mem-break.c (struct breakpoint): Change return type of handler to
16684 int.
16685 (set_breakpoint_at): Update handler type.
16686 (reinsert_breakpoint_handler): Return 1 instead of calling
16687 delete_breakpoint.
16688 (reinsert_breakpoint_by_bp): Check for the original breakpoint before
16689 setting a new one.
16690 (check_breakpoints): Delete auto-delete breakpoints and return 2.
16691 * mem-break.h (set_breakpoint_at): Update handler type.
16692 * thread-db.c (thread_db_create_event, thread_db_create_event): Update.
16693 * win32-low.c (auto_delete_breakpoint): New.
16694 (get_child_debug_event): Use it.
16695
4e799345
DJ
166962007-12-16 Daniel Jacobowitz <dan@codesourcery.com>
16697
16698 * configure.ac: Check for pread and pwrite.
16699 * hostio.c (handle_pread): Fall back to lseek and read.
16700 (handle_pwrite): Fall back to lseek and write.
16701 * config.in, configure: Regenerated.
16702
27524b67
DJ
167032007-12-07 Daniel Jacobowitz <dan@codesourcery.com>
16704
16705 * server.c (myresume): Add own_buf argument.
16706 (main): Update calls.
16707
a20d5e98
DJ
167082007-12-06 Daniel Jacobowitz <dan@codesourcery.com>
16709
16710 * linux-low.c (linux_wait, linux_resume): Do not handle async I/O.
16711 * remote-utils.c (remote_open): Do not call disable_async_io.
16712 (block_async_io): Delete.
16713 (unblock_async_io): Make static.
16714 (initialize_async_io): New.
16715 * server.c (handle_v_cont): Handle async I/O here.
16716 (myresume): Likewise. Move other common resume tasks here...
16717 (main): ... from here. Call initialize_async_io. Disable async
16718 I/O before the main loop.
16719 * server.h (initialize_async_io): Declare.
16720 (block_async_io, unblock_async_io): Delete prototypes.
16721 * spu-low.c (spu_resume, spu_wait): Do not handle async I/O here.
16722
b79d787e
DJ
167232007-12-06 Mick Davis <mickd@goanna.iinet.net.au>
16724
16725 * remote-utils.c (readchar): Allow binary data in received messages.
16726
d97903b2
PA
167272007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16728
16729 * win32-low.c (attaching): New global.
16730 (win32_create_inferior): Clear the `attaching' global.
16731 (win32_attach): Set the `attaching' global.
16732 (get_child_debug_event) [_WIN32_WCE]: Stop the inferior when
16733 attaching. Only set a breakpoint at the entry point if not
16734 attaching.
16735
311de423
PA
167362007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16737
16738 * server.c (main): Don't report dll events on the initial
16739 connection on attaches.
16740
6c2d16d2
PA
167412007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16742
16743 * server.c (main): Relax numerical bases supported for the pid of
16744 the --attach command line argument.
16745
5ca906e6
PA
167462007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16747
16748 * win32-low.c (win32_attach): Call OpenProcess before
16749 DebugActiveProcess, not after. Add last error output to error
16750 call.
16751
9c6c8194
PA
167522007-12-03 Pedro Alves <pedro_alves@portugalmail.pt>
16753
16754 * win32-low.c (win32_get_thread_context)
16755 (win32_set_thread_context): New functions.
16756 (thread_rec): Use win32_get_thread_context.
16757 (continue_one_thread, win32_resume): Use win32_set_thread_context.
16758 * win32-low.h (win32_thread_info) [_WIN32_WCE]: Add `base_context'
16759 field.
16760
4d5d1aaa
PA
167612007-12-03 Leo Zayas
16762 Pedro Alves <pedro_alves@portugalmail.pt>
16763
16764 * win32-low.c (soft_interrupt_requested, faked_breakpoint): New
16765 global variables.
16766 (child_add_thread): Minor cleanup.
16767 (child_continue): Resume artificially suspended threads before
16768 calling ContinueDebugEvent.
16769 (suspend_one_thread): New.
16770 (fake_breakpoint_event): New.
16771 (get_child_debug_event): Change return type to int. Check here if
16772 gdb sent an interrupt request. If a soft interrupt was requested,
16773 fake a breakpoint event. Return 0 if there is no event to handle,
16774 and 1 otherwise.
16775 (win32_wait): Don't check here if gdb sent an interrupt request.
16776 Ensure there is a valid event to handle.
16777 (win32_request_interrupt): Add soft interruption method as last
16778 resort.
16779
c436e841
PA
167802007-12-03 Leo Zayas
16781 Pedro Alves <pedro_alves@portugalmail.pt>
16782
16783 * win32-low.h (win32_thread_info): Add descriptions to the
16784 structure members. Replace `suspend_count' counter by a
16785 `suspended' flag.
16786 * win32-low.c (thread_rec): Update condition of when to get the
16787 context from the inferior. Rely on ContextFlags being set if it
16788 has already been retrieved. Only suspend the inferior thread if
16789 we haven't already. Warn if that fails.
16790 (continue_one_thread): s/suspend_count/suspended/. Only call
16791 ResumeThread once. Warn if that fails.
16792
e7b5fa67
PA
167932007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
16794
16795 * win32-low.c (win32_wait): Don't read from the inferior when it
16796 has already exited.
16797
a385171d
PA
167982007-12-02 Pedro Alves <pedro_alves@portugalmail.pt>
16799
16800 * Makefile.in (win32_low_h): New variable.
16801 (win32-low.o): Add dependency on $(win32_low_h).
16802 (win32-arm-low.o, win32-i386-low.o): New rules.
16803
f80c84b3
DJ
168042007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
16805
16806 * hostio.c: Correct copyright year.
16807
a6b151f1
DJ
168082007-11-30 Daniel Jacobowitz <dan@codesourcery.com>
16809
16810 * Makefile.in (OBS): Add hostio.o.
16811 (hostio.o): New rule.
16812 * server.h (handle_vFile): Declare.
16813 * hostio.c: New file.
16814 * server.c (handle_v_requests): Take packet_len and new_packet_len
16815 for binary packets. Call handle_vFile.
16816 (main): Update call to handle_v_requests.
16817
f9387fc3
DJ
168182007-11-05 Daniel Jacobowitz <dan@codesourcery.com>
16819
16820 * linux-low.c: Include <sched.h>.
16821
51c2684e
DJ
168222007-11-01 Daniel Jacobowitz <dan@codesourcery.com>
16823
16824 * linux-low.c (linux_tracefork_grandchild): New.
16825 (linux_tracefork_child): Use clone.
16826 (linux_test_for_tracefork): Use clone; allocate and free a stack.
16827
75f83163
JB
168282007-10-31 Joel Brobecker <brobecker@adacore.com>
16829
16830 * Makefile.in: Use $(SHELL) instead of "sh" to call regdat.sh.
16831
da5898ce
DJ
168322007-10-24 Daniel Jacobowitz <dan@codesourcery.com>
16833
16834 * linux-low.c (handle_extended_wait): Handle unexpected signals.
16835
24a09b5f
DJ
168362007-10-23 Daniel Jacobowitz <dan@codesourcery.com>
16837
16838 * inferiors.c (change_inferior_id): Delete.
16839 (add_pid_to_list, pull_pid_from_list): New.
16840 * linux-low.c (PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG)
16841 (PTRACE_O_TRACESYSGOOD, PTRACE_O_TRACEFORK, PTRACE_O_TRACEVFORK)
16842 (PTRACE_O_TRACECLONE, PTRACE_O_TRACEEXEC, PTRACE_O_TRACEVFORKDONE)
16843 (PTRACE_O_TRACEEXIT, PTRACE_EVENT_FORK, PTRACE_EVENT_VFORK)
16844 (PTRACE_EVENT_CLONE, PTRACE_EVENT_EXEC, PTRACE_EVENT_VFORK_DONE)
16845 (PTRACE_EVENT_EXIT, __WALL): Provide default definitions.
16846 (stopped_pids, thread_db_active, must_set_ptrace_flags): New variables.
16847 (using_threads): Always set to 1.
16848 (handle_extended_wait): New.
16849 (add_process): Do not set TID.
16850 (linux_create_inferior): Set must_set_ptrace_flags.
16851 (linux_attach_lwp): Remove TID argument. Do not check using_threads.
16852 Use PTRACE_SETOPTIONS. Call new_thread_notify. Update all callers.
16853 (linux_thread_alive): Rename TID argument to LWPID.
16854 (linux_wait_for_process): Handle unknown processes. Do not use TID.
16855 (linux_wait_for_event): Do not use TID or check using_threads. Update
16856 call to dead_thread_notify. Call handle_extended_wait.
16857 (linux_create_inferior): Use PTRACE_SETOPTIONS.
16858 (send_sigstop): Delete sigstop_sent.
16859 (wait_for_sigstop): Avoid TID.
16860 (linux_supports_tracefork_flag, linux_tracefork_child, my_waitpid)
16861 (linux_test_for_tracefork): New.
16862 (linux_lookup_signals): Use thread_db_active and
16863 linux_supports_tracefork_flag.
16864 (initialize_low): Use thread_db_active and linux_test_for_tracefork.
16865 * linux-low.h (get_process_thread): Avoid TID.
16866 (struct process_ifo): Move thread_known and tid to the end. Remove
16867 sigstop_sent.
16868 (linux_attach_lwp, thread_db_init): Update prototypes.
16869 * server.h (change_inferior_id): Delete prototype.
16870 (add_pid_to_list, pull_pid_from_list): New prototypes.
16871 * thread-db.c (thread_db_use_events): New.
16872 (find_first_thread): Rename to...
16873 (find_one_thread): ...this. Update callers and messages. Do not
16874 call fatal. Check thread_db_use_events. Do not call
16875 change_inferior_id or new_thread_notify.
16876 (maybe_attach_thread): Update. Do not call new_thread_notify.
16877 (thread_db_init): Set thread_db_use_events. Check use_events.
16878 * utils.c (fatal, warning): Correct message prefix.
16879
30ed0a8f
DJ
168802007-10-15 Daniel Jacobowitz <dan@codesourcery.com>
16881
16882 * Makefile.in (clean): Remove new files.
16883 (powerpc-32.o, powerpc-32.c, powerpc-e500.o, powerpc-e500.c)
16884 (powerpc-64.o, powerpc-64.c): New rules.
16885 * configure.srv: Use alternate register sets for powerpc64-*-linux*
16886 with AltiVec, powerpc-*-linux* with AltiVec, and powerpc-*-linux*
16887 with SPE.
16888 * linux-ppc-low.c (ppc_regmap): Do not fetch the FP registers for
16889 SPE targets.
16890 (ppc_cannot_store_register): Do not check for FPSCR for SPE targets.
16891 (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS, ppc_fill_vrregset)
16892 (ppc_store_vrregset, PTRACE_GETEVRREGS, PTRACE_SETEVRREGS)
16893 (struct gdb_evrregset_t, ppc_fill_evrregset, ppc_store_evrregset): New.
16894 (target_regsets): Add AltiVec and SPE register sets.
16895 * configure.ac: Check for AltiVec and SPE.
16896 * linux-ppc64-low.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS, SIZEOF_VRREGS)
16897 (ppc_fill_vrregset, ppc_store_vrregset): New.
16898 (target_regsets): Add AltiVec register set.
16899 * configure: Regenerated.
16900
fd462a61
DJ
169012007-09-19 Daniel Jacobowitz <dan@codesourcery.com>
16902
16903 * linux-low.c (O_LARGEFILE): Define.
16904 (linux_read_memory): Use /proc/PID/mem.
16905 * configure.ac: Use AC_GNU_SOURCE. Check for pread64.
16906 * configure, config.in: Regenerated.
16907
69f223ed
DJ
169082007-09-04 Daniel Jacobowitz <dan@codesourcery.com>
16909
16910 * linux-low.c (linux_wait_for_event): Do not pass signals while
16911 single-stepping.
16912
aec18585
PA
169132007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16914
16915 * win32-low.c (create_process): New.
16916 (win32_create_inferior): Use create_process instead of
16917 CreateProcess. If create_process failed retry appending an ".exe"
16918 suffix. Store the GetLastError result immediatelly after
16919 create_process calls and use it on the call to error.
16920
34d86ddd
PA
169212007-09-03 Pedro Alves <pedro_alves@portugalmail.pt>
16922
16923 * win32-low.c (handle_load_dll): Don't use toolhelp when waiting.
16924
5a0e3bd0
JB
169252007-08-23 Joel Brobecker <brobecker@adacore.com>
16926
16927 * configure.ac: Switch license to GPLv3.
16928
f88c79e6
MS
169292007-08-01 Michael Snyder <msnyder@access-company.com>
16930
16931 * remote-utils.c (putpkt_binary): Memory leak, free buf2.
16932
6b3d9b83
PA
169332007-07-31 Pedro Alves <pedro_alves@portugalmail.pt>
16934
16935 * win32-low.c (winapi_CloseToolhelp32Snapshot) [_WIN32_WCE]: New
16936 typedef.
16937 (win32_CloseToolhelp32Snapshot) [_WIN32_WCE]: New global var.
16938 (load_toolhelp) [_WIN32_WCE]: Load TOOLHELP.DLL. Get
16939 CloseToolhelp32Snapshot.
16940 (toolhelp_get_dll_name) [_WIN32_WCE]: Close the snapshot with
16941 CloseToolhelp32Snapshot.
16942
c588c53c
MS
169432007-07-27 Michael Snyder <michael.snyder@access-company.com>
16944
16945 * server.c (main): Check for inferior exit before main loop.
16946
aa0403d9
PA
169472007-07-18 Pedro Alves <pedro_alves@portugalmail.pt>
16948
16949 * remote-utils.c (remote_open): Set SO_KEEPALIVE on remote_desc
16950 instead of on tmp_desc.
16951
255e7678
DJ
169522007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>
16953 Daniel Jacobowitz <dan@codesourcery.com>
16954
16955 * inferiors.c (all_dlls, dlls_changed, get_dll): New.
16956 (add_thread): Minor cleanups.
16957 (clear_inferiors): Move lower in the file. Clear the DLL
16958 list.
16959 (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New.
16960 * remote-utils.c (prepare_resume_reply): Check dlls_changed.
16961 (xml_escape_text): New.
16962 * server.c (handle_query): Handle qXfer:libraries:read. Report it
16963 for qSupported.
16964 (handle_v_cont): Report errors.
16965 (gdbserver_version): Update.
16966 (main): Correct size of own_buf. Do not report initial DLL events.
16967 * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll)
16968 (unloaded_dll, xml_escape_text): New.
16969 * win32-low.c (enum target_waitkind): Update comments.
16970 (win32_add_one_solib, get_image_name, winapi_EnumProcessModules)
16971 (winapi_GetModuleInformation, winapi_GetModuleFileNameExA)
16972 (win32_EnumProcessModules, win32_GetModuleInformation)
16973 (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name)
16974 (winapi_CreateToolhelp32Snapshot, winapi_Module32First)
16975 (winapi_Module32Next, win32_CreateToolhelp32Snapshot)
16976 (win32_Module32First, win32_Module32Next, load_toolhelp)
16977 (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New.
16978 (get_child_debug_event): Handle DLL events.
16979 (win32_wait): Likewise.
16980
0d37add9
DJ
169812007-07-12 Daniel Jacobowitz <dan@codesourcery.com>
16982
16983 * configure.srv: Set srv_linux_regsets for sh*-*-linux*.
16984 * linux-sh-low.c (sh_fill_gregset, target_regsets): New.
16985
45e2715e
PA
169862007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16987
16988 * win32-low.c (handle_output_debug_string): Ignore event if not
16989 waiting.
16990
c5674cf1
PA
169912007-07-08 Pedro Alves <pedro_alves@portugalmail.pt>
16992
16993 * win32-arm-low.c (arm_wince_breakpoint): Fix typo.
16994
2bbe3cc1
DJ
169952007-07-03 Daniel Jacobowitz <dan@codesourcery.com>
16996
16997 * remote-utils.c (look_up_one_symbol): Handle 'm' packets.
16998
ae13219e
DJ
169992007-07-02 Daniel Jacobowitz <dan@codesourcery.com>
17000
17001 * inferiors.c (change_inferior_id): Add comment.
17002 * linux-low.c (check_removed_breakpoint): Add an early
17003 prototype. Improve debug output.
17004 (linux_attach): Doc update.
17005 (linux_detach_one_process, linux_detach): Clean up before releasing
17006 each process.
17007 (send_sigstop, wait_for_sigstop): Improve comments and debug output.
17008 * linux-low.h (struct process_info): Doc improvement.
17009 * mem-break.c (delete_all_breakpoints): New.
17010 * mem-break.h (delete_all_breakpoints): New prototype.
17011 * thread-db.c (find_first_thread): New.
17012 (thread_db_create_event): Call it instead of
17013 thread_db_find_new_threads. Clean up unused variables.
17014 (maybe_attach_thread): Remove first thread handling.
17015 (thread_db_find_new_threads): Use find_first_thread.
17016 (thread_db_get_tls_address): Likewise.
17017
4105de34
DJ
170182007-06-27 Daniel Jacobowitz <dan@codesourcery.com>
17019
17020 * thread-db.c (thread_db_find_new_threads): Add prototype.
17021 (thread_db_create_event): Check for the main thread before adding
17022 a new thread.
17023 (maybe_attach_thread): Only enable event reporting if TID == 0.
17024 (thread_db_get_tls_address): Check for new threads.
17025
2b876972
DJ
170262007-06-20 Daniel Jacobowitz <dan@codesourcery.com>
17027
17028 * linux-low.c (linux_create_inferior): Try execv before execvp.
17029 * spu-low.c (spu_create_inferior): Likewise.
17030
7a245884
DJ
170312007-06-13 Mike Frysinger <vapier@gentoo.org>
17032
17033 * linux-low.c (linux_create_inferior): Change execv to execvp.
17034 * spu-low.c (spu_create_inferior): Likewies.
17035
117ce543
DJ
170362007-06-13 Daniel Jacobowitz <dan@codesourcery.com>
17037
17038 * Makefile.in (clean): Clean new files instead of deleted ones.
17039 (reg-mips.o, reg-mips.c, reg-mips64.o, reg-mips64.c): Delete.
17040 (mips-linux.o, mips-linux.c, mips64-linux.o, mips64-linux.c): New
17041 rules.
17042 * configure.srv: Specify XML files and new regformats for MIPS and
17043 MIPS64 GNU/Linux.
17044 * linux-mips-low.c (mips_num_regs): Set to only used registers.
17045 (mips_regmap): Do not fetch $0. Remove unused registers. Add
17046 an entry for the restart register.
17047 (mips_cannot_fetch_register, mips_cannot_store_register)
17048 (mips_reinsert_addr, mips_fill_fpregset, mips_store_fpregset): Update
17049 register names to match the XML descriptions.
17050 (mips_fill_gregset, mips_store_gregset): Likewise. Handle the
17051 restart register instead of $0.
17052
0e7f50da
UW
170532007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17054 Markus Deuling <deuling@de.ibm.com>
17055
17056 * remote-utils.c (decode_xfer_write): New function.
17057 * server.h (decode_xfer_write): Add prototype.
17058 * server.c (handle_query): Add PACKET_LEN argument. Support
17059 qXfer:spu:read and qXfer:spu:write packets.
17060 (main): Pass packet_len to handle_query.
17061 * spu-low.c (spu_target_ops): Add spu_proc_xfer_spu.
17062 * target.h (target_ops): Add qxfer_spu.
17063
374c1d38
UW
170642007-06-12 Ulrich Weigand <uweigand@de.ibm.com>
17065
17066 * spu-low.c (spu_proc_xfer_spu): Do not return failure when
17067 accessing non-seekable spufs files.
17068
bb63802a
UW
170692007-05-16 Markus Deuling <deuling@de.ibm.com>
17070
889bf7c5 17071 * server.c (handle_query): Add reply for qC packet.
bb63802a 17072
7390519e
PA
170732007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17074 Leo Zayas <lerele@champenstudios@com>
17075
17076 * server.h (check_remote_input_interrupt_request): New function.
17077 * remote_utils.c (INVALID_DESCRIPTOR): New define.
17078 (remote_desc): Initialize with INVALID_DESCRIPTOR.
17079 (input_interrupt): Expose on USE_WIN32API too. Fix whitespace.
17080 (check_remote_input_interrupt_request): New function.
17081 * server.h (check_remote_input_interrupt_request): Declare.
3ecf0694 17082 * win32-low.c (winapi_DebugBreakProcess,
7390519e
PA
17083 winapi_GenerateConsoleCtrlEvent): New typedefs.
17084 (get_child_debug_event): Lower Win32 debug event polling from 1 sec
17085 to 250 ms.
17086 (win32_wait): Check for remote interrupt request
17087 with check_remote_input_interrupt_request.
17088 (win32_request_interrupt): New function.
17089 (win32_target_op): Set request_interrupt to win32_request_interrupt.
17090
34b34921
PA
170912007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17092
17093 * win32-low.c (debug_registers_changed,
17094 debug_registers_used, CONTEXT_EXTENDED_REGISTERS,
17095 CONTEXT_FLOATING_POINT, CONTEXT_DEBUG_REGISTERS,
17096 CONTEXT_DEBUGGER, CONTEXT_DEBUGGER_DR): Delete.
17097 (thread_rec): Get context using the low target.
17098 (child_add_thread): Call thread_added on the low target,
17099 which does the same thing.
17100 (regptr): Delete.
17101 (do_initial_child_stuff): Remove debug registers references.
17102 Set context using the low target. Resume threads after
17103 setting the contexts.
17104 (child_continue): Remove dead variable. Remove debug
17105 registers references.
17106 (child_fetch_inferior_registers): Go through the low target.
17107 (do_child_store_inferior_registers): Remove.
17108 (child_store_inferior_registers): Go through the low target.
17109 (win32_resume): Remove debug registers references.
17110 Set context using the low target.
17111 (handle_exception): Change return type to void. Don't record
17112 context here. Set status to TARGET_WAITKIND_SPURIOUS on a
17113 first chance exception.
889bf7c5 17114 (get_child_debug_event): Change return type to void. Remove
34b34921
PA
17115 goto loop. Always return after waiting for debug event.
17116 (win32_wait): Convert to switch statement. Handle spurious
17117 events.
17118
17119 * win32-i386-low.c (debug_registers_changed,
17120 debug_registers_used): New.
17121 (initial_stuff): Rename to ...
17122 (i386_initial_stuff): ... this. Clear debug registers
17123 state variables.
17124 (store_debug_registers): Delete.
17125 (i386_get_thread_context): New.
17126 (load_debug_registers): Delete.
17127 (i386_set_thread_context): New.
17128 (i386_thread_added): New.
17129 (single_step): Rename to ...
17130 (i386_single_step): ... this.
17131 (do_fetch_inferior_registers): Rename to ...
17132 (i386_fetch_inferior_register): ... this.
17133 (i386_store_inferior_register): New.
17134 (the_low_target): Adapt to new interface.
17135
17136 * win32-arm-low.c (CONTEXT_FLOATING_POINT): Define.
17137 (arm_get_thread_context): New.
17138 (arm_set_thread_context): New.
17139 (regptr): New.
17140 (do_fetch_inferior_registers): Rename to ...
17141 (arm_fetch_inferior_register): ... this.
17142 (arm_store_inferior_register): New.
17143 (arm_wince_breakpoint): Reimplement as unsigned long.
17144 (arm_wince_breakpoint_len): Define.
17145 (the_low_target): Adapt to new interface.
17146
17147 * win32-low.h (target_ops): Remove regmap, store_debug_registers and
17148 load_debug_registers. Add get_thread_context, set_thread_context,
17149 thread_added and store_inferior_register. Rename
17150 fetch_inferior_registers to fetch_inferior_register.
17151 (regptr): Remove declaration.
17152
dd6953e1
PA
171532007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17154
17155 * linux-low.c (linux_detach): Change return type to int. Return 0.
17156 * spu-low.c (spu_detach): Likewise.
17157
444d6139
PA
171582007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17159
17160 * target.h (target_ops): Change return type of detach to int.
17161 Add join.
17162 (join_inferior): New.
17163 * server.c (main): Don't skip detach support on mingw32.
17164 If the inferior doesn't support detaching return error.
17165 Call join_inferior instead of using waitpid.
17166 * linux-low.c (linux_join): New.
17167 (linux_target_op): Add linux_join.
17168 * spu-low.c (spu_join): New.
17169 (spu_target_ops): Add spu_join.
17170 * win32-low.c (win32_detach): Adapt to new interface.
17171 Reopen current_process_handle before detaching. Issue a child
17172 resume before detaching.
17173 (win32_join): New.
17174 (win32_target_op): Add win32_join.
17175
1d5315fe
PA
171762007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17177
17178 * win32-low.c (win32-attach): Fix return value.
17179 * target.h (target_ops): Describe ATTACH return values.
17180
bf914831
PA
171812007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17182
17183 * win32-low.c (GETPROCADDRESS): Define.
17184 (winapi_DebugActiveProcessStop): Add WINAPI. typedef as pointer.
17185 (winapi_DebugSetProcessKillOnExit): Likewise.
17186 (win32_create_inferior): Force usage of ansi CreateProcessA.
17187 (win32_attach): Use GETPROCADDRESS.
17188 (win32_detach): Likewise.
17189
f72f3e60
PA
171902007-05-10 Pedro Alves <pedro_alves@portugalmail.pt>
17191
17192 * win32-low.c (win32_wait): Don't use WSTOPSIG.
17193
ed50f18f
PA
171942007-03-30 Pedro Alves <pedro_alves@portugalmail.pt>
17195
17196 * win32-low.c: Commit leftover changes from 2007-03-29.
17197
0c2ead7e
DJ
171982007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17199
17200 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Make 16-bit
17201 fields short instead of int. Add explicit padding.
17202 (i387_cache_to_fsave): Remove unnecessary casts.
17203 (i387_fsave_to_cache): Doc fix.
17204 (i387_cache_to_fxsave): Remove unnecessary casts and masking.
17205
73725ff3
DJ
172062007-03-30 Daniel Jacobowitz <dan@codesourcery.com>
17207
17208 * i387-fp.c (i387_cache_to_fxsave): Reinitialize val2 before use.
17209 (i387_fxsave_to_cache): Check fp->ftag while building ftag value.
17210
d99f33d8
PA
172112007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17212
17213 * configure.srv (arm*-*-mingw32ce*): Move near the other
17214 arm targets.
17215
68070c10
PA
172162007-03-29 Pedro Alves <pedro_alves@portugalmail.pt>
17217
2482afc6 17218 * configure.ac: Add errno checking.
68070c10
PA
17219 (AC_CHECK_HEADERS): Add errno.h, fcntl.h, signal.h,
17220 sys/file.h and malloc.h.
17221 (AC_CHECK_DECLS): Add perror.
17222 (srv_mingwce): Handle.
2482afc6 17223 * configure.srv (i[34567]86-*-cygwin*): Add
68070c10
PA
17224 win32-i386-low.o to srv_tgtobj.
17225 (i[34567]86-*-mingw*): Likewise.
17226 (arm*-*-mingw32ce*): Add case.
17227 * gdbreplay.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17228 HAVE_FCNTL_H, HAVE_ERRNO_H, HAVE_MALLOC_H]: Check.
17229 [__MINGW32CE__] (strerror): New function.
17230 [__MINGW32CE__] (errno): Define to GetLastError.
17231 [__MINGW32CE__] (COUNTOF): New macro.
17232 (remote_open): Remove extra close call.
17233 * mem-break.c (delete_breakpoint_at): New function.
17234 * mem-break.h (delete_breakpoint_at): Declare.
17235 * remote-utils.c [HAVE_SYS_FILE_H, HAVE_SIGNAL_H,
17236 HAVE_FCNTL_H, HAVE_UNISTD_H, HAVE_ERRNO_H]: Check.
17237 [USE_WIN32API] (read, write): Add char* casts.
17238 * server.c [HAVE_UNISTD_H, HAVE_SIGNAL_H]: Check.
17239 * server.h: Include wincecompat.h on Windows CE.
17240 [HAVE_ERRNO_H]: Check.
17241 (perror): Declare if not declared.
17242 * utils.c: Add stdlib.h, errno.h and malloc.h includes.
17243 (perror_with_name): Remove errno declaration.
17244 * wincecompat.h: New.
17245 * wincecompat.c: New.
17246 * win32-low.h: New.
17247 * win32-arm-low.c: New.
17248 * win32-i386-low.c: New.
17249 (win32-low.c): Include mem-break.h and win32-low.h, and winnt.h.
17250 (OUTMSG2): Make it safe.
17251 (_T): New macro.
17252 (COUNTOF): New macro.
17253 (NUM_REGS): Get it from the low target.
17254 (CONTEXT_EXTENDED_REGISTERS, CONTEXT_FLOATING_POINT,
17255 CONTEXT_DEBUG_REGISTERS): Add fallbacks to 0.
17256 (thread_rec): Let low target handle debug registers.
17257 (child_add_thread): Likewise.
17258 (child_init_thread_list): Likewise.
17259 (continue_one_thread): Likewise.
17260 (regptr): New.
17261 (do_child_fetch_inferior_registers): Move to ...
17262 * win32-i386-low.c: ... here, and rename to ...
17263 (do_fetch_inferior_registers): ... this.
889bf7c5 17264 * win32-low.c (child_fetch_inferior_registers):
68070c10
PA
17265 Go through the low target.
17266 (do_child_store_inferior_registers): Use regptr.
17267 (strwinerror): New function.
17268 (win32_create_inferior): Handle Windows CE.
17269 Use strwinerror instead of strerror on Windows error
17270 codes. Add program to the error output.
17271 Don't close the main thread handle on Windows CE.
17272 (win32_attach): Use coredll.dll on Windows CE.
17273 (win32_kill): Close current process and current
17274 thread handles.
17275 (win32_detach): Use coredll.dll on Windows CE.
17276 (win32_resume): Let low target handle debug registers, and
17277 step request.
17278 (handle_exception): Add/Remove initial breakpoint. Avoid
17279 non-existant WSTOPSIG on Windows CE.
17280 (win32_read_inferior_memory): Cast to remove warning.
17281 (win32_arch_string): Go through the low target.
17282 (initialize_low): Call set_breakpoint_data with the low
17283 target's breakpoint.
17284 * win32-low.c (dr, FLAG_TRACE_BIT, FCS_REGNUM,
17285 FOP_REGNUM, mappings): Move to ...
17286 * win32-i386-low.c: ... here.
17287 * win32-low.c (win32_thread_info): Move to ...
17288 * win32-low.h: ... here.
17289 * Makefile.in (SFILES): Add win32-low.c, win32-i386-low.c,
17290 win32-arm-low.c and wincecompat.c.
17291 (all:): Add $EXEEXT.
17292 (install-only:): Likewise.
17293 (gdbserver:): Likewise.
17294 (gdbreplay:): Likewise.
17295 * config.in: Regenerate.
17296 * configure: Regenerate.
17297
41093d81
PA
172982007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17299
17300 * win32-low.c: Rename typedef thread_info to
17301 win32_thread_info throughout.
17302
544afa54
PA
173032007-03-28 Pedro Alves <pedro_alves@portugalmail.pt>
17304
17305 * win32-i386-low.c: Rename to ...
17306 * win32-low.c: ... this.
17307 * configure.srv: Replace win32-i386-low.o with win32-low.o.
17308 * Makefile.in: Likewise.
17309
bce7165d
PA
173102007-03-27 Pedro Alves <pedro_alves@portugalmail.pt>
17311
17312 * remote-utils.c (monitor_output): Constify msg parameter.
17313 * server.h (monitor_output): Likewise.
17314 * win32-i386-low.c (handle_output_debug_string): New.
17315 (win32_kill): Handle OUTPUT_DEBUG_STRING_EVENT events using
17316 handle_output_debug_string.
17317 (get_child_debug_event): Likewise.
17318
506c7aa0
DJ
173192007-03-27 Mat Hostetter <mat@lcs.mit.edu>
17320
17321 * server.c (main): Correct strtoul check.
17322
42c81e2a
DJ
173232007-03-27 Jon Ringle <jon@ringle.org>
17324
17325 * linux-low.c: Check __ARCH_HAS_MMU__ also.
17326
9453113a
DJ
173272007-03-27 Brooks Moses <brooks.moses@codesourcery.com>
17328
17329 * Makefile.in: Add dummy "pdf" and "install-pdf" targets.
17330
64a69107
DJ
173312007-02-27 Daniel Jacobowitz <dan@codesourcery.com>
17332
17333 * terminal.h: Check HAVE_SGTTY_H.
17334
173352007-02-27 Mat Hostetter <mat@lcs.mit.edu>
6f8486da
DJ
17336
17337 * remote-utils.c (remote_open): Print out the assigned port number.
17338
c74d0ad8
DJ
173392007-02-26 Daniel Jacobowitz <dan@codesourcery.com>
17340
17341 * remote-utils.c (monitor_output): New function.
17342 * server.c (debug_threads): Define here.
17343 (monitor_show_help): New function.
17344 (handle_query): Handle qRcmd.
17345 (main): Do not handle 'd' packet.
17346 * server.h (debug_threads, remote_debug, monitor_output): Declare.
17347 * linux-low.c, spu-low.c, win32-i386-low.c: Remove definitions
17348 of debug_threads.
17349
de7c3b4a
PA
173502007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17351
17352 * Makefile.in (EXEEXT): New.
17353 (clean): Use $(EXEEXT).
17354
ef57601b
PA
173552007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17356
17357 * target.h (target_ops): Rename send_signal to request_interrupt,
17358 and remove enum target_signal parameter.
17359 * linux-low.c (linux_request_interrupt): Rename from
17360 linux_send_signal, and always send SIGINT.
17361 * spu-low.c (spu_request_interrupt): Rename from spu_send_signal,
17362 and always send SIGINT.
17363 * remote-utils.c (putpkt_binary): Call request_interrupt, instead
17364 of send_signal.
17365 (input_interrupt): Likewise.
17366
820f2bda
PA
173672007-02-25 Pedro Alves <pedro_alves@portugalmail.pt>
17368
17369 * server.c (get_features_xml): Check if target implemented
17370 arch_string.
17371 * win32-i386-low.c (win32_arch_string): New.
17372 (win32_target_ops): Add win32_arch_string as arch_string member.
17373
ab39bf24
UW
173742007-02-22 Markus Deuling <deuling@de.ibm.com>
17375
17376 * spu-low.c (spu_arch_string): New.
17377 (spu_target_ops): Add spu_arch_string.
17378
61ff6e04
DJ
173792007-02-16 Daniel Jacobowitz <dan@codesourcery.com>
17380
17381 * remote-utils.c: Remove HAVE_TERMINAL_H check.
17382 * configure.ac: Do not check for terminal.h.
17383 * configure, config.in: Regenerated.
17384
fb1e4ffc
DJ
173852007-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17386
17387 * Makefile.in (OBS): Add $(XML_BUILTIN).
17388 (XML_DIR, XML_TARGET, XML_FILES, XML_BUILTIN): New.
17389 (clean): Update.
17390 (target.xml, xml-builtin.c, stamp-xml, arm-with-iwmmxt.o)
17391 (arm-with-iwmmxt.c): New.
17392 * config.in, configure: Regenerate.
17393 * configure.ac: Check for iWMMXt. Handle srv_xmltarget,
17394 srv_xmlbuiltin, and srv_xmlfiles. Define USE_XML.
17395 * configure.srv: Mention srv_xmltarget and srv_xmlfiles.
17396 (arm*-*-linux*): Add iWMMXt and regset support.
17397 * linux-arm-low.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
17398 (arm_fill_gregset, arm_store_gregset, arm_fill_wmmxregset)
17399 (arm_store_wmmxregset, target_regsets): New.
17400 * server.c (get_features_xml): Take annex argument. Check builtin
17401 XML documents.
17402 (handle_query): Handle multiple annexes.
17403
0f48aa01
DJ
174042007-01-29 Daniel Jacobowitz <dan@codesourcery.com>
17405
17406 * remote-utils.c [USE_WIN32API] (read, write): Define.
17407 (putpkt_binary, input_interrupt, readchar, getpkt): Use read and
17408 write.
17409
23181151
DJ
174102007-01-09 Daniel Jacobowitz <dan@codesourcery.com>
17411
17412 * linux-i386-low.c (the_low_target): Set arch_string.
17413 * linux-x86-64-low.c (the_low_target): Likewise.
17414 * linux-low.c (linux_arch_string): New.
17415 (linux_target_ops): Add it.
17416 * linux-low.h (struct linux_target_ops): Add arch_string.
17417 * server.c (write_qxfer_response): Use const void * for DATA.
17418 (get_features_xml): New.
17419 (handle_query): Handle qXfer:features:read. Report it for qSupported.
17420 * target.h (struct target_ops): Add arch_string method.
17421
9d606399
DJ
174222007-01-03 Denis Pilat <denis.pilat@st.com>
17423 Daniel Jacobowitz <dan@codesourcery.com>
17424
17425 * linux-low.c (linux_kill): Handle being called with no threads.
17426 * win32-i386-low.c (win32_kill): Likewise.
17427 (get_child_debug_event): Clear current_process_handle.
17428
174292006-12-30 Denis PILAT <denis.pilat@st.com>
8264bb58
DJ
17430 Daniel Jacobowitz <dan@codesourcery.com>
17431
17432 * remote-utils.c (remote_open): Check the type of specified
17433 serial port devices before opening them.
17434 * server.c (main): Kill the inferior if an error occurs during
17435 the first remote_open.
17436
a5e13d24
DJ
174372006-12-05 Markus Deuling <deuling@de.ibm.com>
17438
17439 * README: Update supported targets.
17440
186947f7
DJ
174412006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
17442
17443 * Makefile.in (clean): Remove reg-mips64.c.
17444 (reg-mips64.c, reg-mips64.o): New rules.
17445 * configure.srv: Handle mips64. Include regset support for mips.
17446 * linux-mips-low.c (union mips_register): New.
17447 (mips_get_pc, mips_set_pc, mips_reinsert_addr): Use it.
17448 (mips_breakpoint, mips_breakpoint_at): Use int.
17449 (mips_collect_register, mips_supply_register)
17450 (mips_collect_register_32bit, mips_supply_register_32bit)
17451 (mips_fill_gregset, mips_store_gregset, mips_fill_fpregset)
17452 (mips_store_fpregset, target_regsets): New.
17453 * thread-db.c (thread_db_get_tls_address): Use uintptr_t.
17454
a13e2c95
UW
174552006-11-22 Ulrich Weigand <uweigand@de.ibm.com>
17456
17457 * configure.srv: Add target "spu*-*-*".
17458 * Makefile.in (clean): Remove reg-spu.c.
17459 (reg-spu.c, reg-spu.o, spu-low.o): Add dependencies.
17460 * spu-low.c: New file.
17461
cb7283db
DJ
174622006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17463
17464 * configure.ac: Correct td_thr_tls_get_addr test.
17465 * configure: Regenerated.
17466
89be2091
DJ
174672006-11-16 Daniel Jacobowitz <dan@codesourcery.com>
17468
17469 * linux-low.c (linux_wait_for_event): Reformat. Use the
17470 pass_signals array.
17471 * remote-utils.c (decode_address_to_semicolon): New.
17472 * server.c (pass_signals, handle_general_set): New.
17473 (handle_query): Mention QPassSignals for qSupported.
17474 (main): Call handle_general_set.
17475 * server.h (pass_signals, decode_address_to_semicolon): New.
17476
000ef4f0
DJ
174772006-11-06 Daniel Jacobowitz <dan@codesourcery.com>
17478
17479 * server.c (handle_query): Correct error handling for read_auxv.
17480
b7149293
UW
174812005-10-19 Ulrich Weigand <uweigand@de.ibm.com>
17482
17483 * configure.srv [s390-*-linux*, s390x-*-linux*]: Set srv_linux_regsets
17484 and srv_linux_thread_db to yes.
17485 * linux-s390-low.c (s390_fill_gregset): New function.
17486 (target_regsets): Define data structure.
17487
dae5f5cf
DJ
174882006-10-17 Daniel Jacobowitz <dan@codesourcery.com>
17489
17490 * acinclude.m4 (SRV_CHECK_TLS_GET_ADDR): New.
17491 * configure.ac: Use it. Define HAVE_TD_THR_TLS_GET_ADDR.
17492 * config.in, configure: Regenerated.
17493 * inferiors.c (gdb_id_to_thread): New function.
17494 (gdb_id_to_thread_id): Use it.
17495 * linux-low.c (linux_target_ops): Use thread_db_get_tls_address.
17496 * linux-low.h (struct process_info): Add th member.
17497 (thread_db_get_tls_address): New prototype.
17498 * remote-utils.c (decode_address): Make non-static.
17499 * server.c (handle_query): Handle qGetTLSAddr.
17500 * server.h (gdb_id_to_thread, decode_address): New prototypes.
17501 * target.h (struct target_ops): Add get_tls_address.
17502 * thread-db.c (maybe_attach_thread): Save the thread handle.
17503 (thread_db_get_tls_address): New.
17504
32ca6d61
DJ
175052006-09-28 Daniel Jacobowitz <dan@codesourcery.com>
17506
17507 * linux-low.c (PTRACE_GETSIGINFO, PTRACE_SETSIGINFO): Define.
17508 (linux_resume_one_process): Take a siginfo_t *. Update all
17509 callers. Queue it if necessary. Use PTRACE_SETSIGINFO.
17510 (struct pending_signals): Add a siginfo_t.
17511 (linux_wait_for_process): Always set last_status.
17512 (linux_wait_for_event): Use PTRACE_GETSIGINFO.
17513 (linux_queue_one_thread): Use PTRACE_GETSIGINFO.
17514 * linux-low.h (struct process_info): Add last_status.
17515
5ffff7c1
DJ
175162006-09-21 Daniel Jacobowitz <dan@codesourcery.com>
17517
17518 * remote-utils.c (try_rle): New function.
17519 (putpkt_binary): Use it.
17520
8695c747
DJ
175212006-08-19 Daniel Jacobowitz <dan@codesourcery.com>
17522
17523 * Makefile.in (clean): Clean reg-x86-64-linux.c.
17524 (reg-x86-64-linux.o, reg-x86-64-linux.c): New.
17525 * configure.srv (x86_64-*-linux*): Use reg-x86-64-linux.o.
17526 * linux-x86-64-low.c (x86_64_regmap): Include ORIG_RAX.
17527 (x86_64_fill_gregset, x86_64_store_gregset): Skip floating
17528 point registers.
17529
290fadea
RS
175302006-08-08 Richard Sandiford <richard@codesourcery.com>
17531
17532 * server.c (terminal_fd): New variable.
17533 (old_foreground_pgrp): Likewise.
17534 (restore_old_foreground_pgrp): New function.
17535 (start_inferior): Record the terminal file descriptor in terminal_fd
17536 and its original foreground group in old_foreground_pgrp. Register
17537 restore_old_foreground_pgrp with atexit().
17538
9f2e1e63
DJ
175392006-07-26 Daniel Jacobowitz <dan@codesourcery.com>
17540
17541 * server.c (handle_query): Correct qPart to qXfer.
17542
b80864fb
DJ
175432006-07-22 Daniel Jacobowitz <dan@codesourcery.com>
17544
17545 * configure.ac: Check for more headers which are missing on
17546 Windows. Automatically supply -lwsock32 and USE_WIN32API.
17547 * configure.srv: Add Cygwin and mingw32.
17548 * remote-utils.c: Don't include headers unconditionally which
17549 are missing on mingw32. Include <winsock.h> for mingw32.
17550 (remote_open): Adjust for mingw32 support. Flush
17551 standard error after writing to it.
17552 (remote_close, putpkt_binary, input_interrupt, block_async_io)
17553 (unblock_async_io, enable_async_io, disable_async_io)
17554 (readchar, getpkt): Update for Winsock support.
17555 (prepare_resume_reply): Expect a protocol signal number.
17556 * server.c: Disable <sys/wait.h> on mingw32.
17557 (start_inferior): Adjust for mingw32 support. Flush
17558 standard error after writing to it.
17559 (attach_inferior): Likewise. Use protocol signal
17560 numbers.
17561 (main): Skip 'D' packet on mingw32. Use protocol signal numbers
17562 and names.
17563 * win32-i386-low.c: New file.
17564 * Makefile.in (XM_CLIBS): Set.
17565 (gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
17566 (win32-i386-low.o): New dependency rule.
17567 * linux-low.c (linux_wait): Use target signal numbers.
17568 * target.h (struct target_ops): Doc fix.
17569 * server.h (target_signal_to_name): New prototype.
17570 * gdbreplay.c: Don't include headers unconditionally which
17571 are missing on mingw32. Include <winsock.h> for mingw32.
17572 (remote_close, remote_open): Adjust for Winsock support.
17573 * configure, config.in: Regenerated.
17574
0876f84a
DJ
175752006-07-12 Daniel Jacobowitz <dan@codesourcery.com>
17576
17577 * server.c (decode_xfer_read, write_qxfer_response): New.
17578 (handle_query): Take a packet length argument. Handle
17579 qXfer:auxv:read instead of qPart:auxv:read. Mention it in
17580 the qSupported response.
17581 (main): Update call to handle_query.
17582
01f9e8fa
DJ
175832006-06-22 Daniel Jacobowitz <dan@codesourcery.com>
17584
17585 * remote-utils.c (remote_escape_output, remote_unescape_input): New.
17586 (putpkt_binary): Renamed from putpkt and adjusted for binary
17587 data.
17588 (putpkt): New wrapper for putpkt_binary.
17589 (readchar): Don't mask off the high bit.
17590 (decode_X_packet): New function.
17591 * server.c (main): Call putpkt_binary if a handler sets the packet
17592 length. Save the length of the incoming packet. Handle 'X'.
17593 * server.h (gdb_byte, remote_escape_output, decode_X_packet): New.
17594
be2a5f71
DJ
175952006-06-21 Daniel Jacobowitz <dan@codesourcery.com>
17596
17597 * server.c (handle_query): Handle qSupported.
17598
ea025f5f
DJ
175992006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17600
17601 * remote-utils.c (all_symbols_looked_up): New variable.
17602 (look_up_one_symbol): Check it.
17603 * server.h (look_up_one_symbol): New declaration.
17604 * thread-db.c (thread_db_init): Set all_symbols_looked_up.
17605
9308fc88
DJ
176062006-05-30 Daniel Jacobowitz <dan@codesourcery.com>
17607
17608 * Makefile.in (linux-arm-low.o): Update dependencies.
66f338c7 17609 * linux-arm-low.c: Include "gdb_proc_service.h".
9308fc88
DJ
17610 (PTRACE_GET_THREAD_AREA): Define.
17611 (ps_get_thread_area): New function.
17612
52fb6437
NS
176132006-05-09 Nathan Sidwell <nathan@codesourcery.com>
17614
17615 * configure.srv (m68k*-*-uclinux*): New target.
17616 * linux-low.c (linux_create_inferior): Use vfork on mmuless systems.
17617 (linux_resume_one_process): Remove extraneous cast.
17618 (linux_read_offsets): New.
17619 (linux_target_op): Add linux_read_offsets on mmuless systems.
17620 * server.c (handle_query): Add qOffsets logic.
17621 * target.h (struct target_ops): Add read_offsets.
17622
21b0f40c
DJ
176232006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17624
17625 * linux-mips-low.c: Include <sys/ptrace.h> and "gdb_proc_service.h".
17626 (PTRACE_GET_THREAD_AREA): Define.
17627 (ps_get_thread_area): New function.
17628 * Makefile.in (linux-i386-low.o, linux-mips-low.o)
17629 (linux-x86-64-low.o): Update.
17630
0050a760
DJ
176312006-03-15 Daniel Jacobowitz <dan@codesourcery.com>
17632
17633 * configure.ac: Remove checks for prfpregset_t.
17634 * gdb_proc_service.h: New file.
17635 * linux-i386-low.c, linux-x86-64-low.c, thread-db.c: Use the
17636 new "gdb_proc_service.h".
17637 * proc-service.c: Likewise.
17638 (ps_pglobal_lookup, ps_pdread, ps_pdwrite): Use psaddr_t.
17639 (ps_lgetfpregs, ps_lsetfpregs): Use a void* argument.
17640 * Makefile.in (gdb_proc_service_h): Updated.
17641 * configure, config.in: Regenerated.
17642
b92a518e
DJ
176432006-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17644
17645 * remote-utils.c (prepare_resume_reply): Move declaration
17646 of gdb_id_from_wait to the top of the block.
17647
545587ee
DJ
176482006-02-15 Daniel Jacobowitz <dan@codesourcery.com>
17649
17650 * linux-low.c (regsets_store_inferior_registers): Read the regset
17651 from the target before filling it.
17652
9db87ebd
DJ
176532006-02-08 Daniel Jacobowitz <dan@codesourcery.com>
17654
17655 * server.c (attach_inferior): Return SIGTRAP for a successful
17656 attach.
17657
dd24457d
DJ
176582006-02-01 Daniel Jacobowitz <dan@codesourcery.com>
17659
17660 * Makefile.in (OBS): Add version.o.
17661 (STAGESTUFF): Delete.
17662 (version.o): Add dependencies.
17663 (version.c): Replace rule.
17664 (clean): Remove version.c.
17665 * server.c (gdbserver_version): New.
17666 (gdbserver_usage): Use printf.
17667 (main): Handle --version and --help.
17668 * server.h (version, host_name): Add declarations.
17669
6f0f660e
EZ
176702005-12-23 Eli Zaretskii <eliz@gnu.org>
17671
889bf7c5
PA
17672 * linux-arm-low.c:
17673 * linux-arm-low.c:
17674 * inferiors.c:
17675 * i387-fp.h:
17676 * i387-fp.c:
17677 * gdbreplay.c:
17678 * regcache.c:
17679 * proc-service.c:
17680 * mem-break.h:
17681 * mem-break.c:
17682 * linux-x86-64-low.c:
17683 * linux-sh-low.c:
17684 * linux-s390-low.c:
17685 * linux-ppc64-low.c:
17686 * linux-ppc-low.c:
17687 * linux-mips-low.c:
17688 * linux-m68k-low.c:
17689 * linux-m32r-low.c:
17690 * linux-low.h:
17691 * linux-low.c:
17692 * linux-ia64-low.c:
17693 * linux-i386-low.c:
17694 * linux-crisv32-low.c:
17695 * thread-db.c:
17696 * terminal.h:
17697 * target.h:
17698 * target.c:
17699 * server.h:
17700 * server.c:
17701 * remote-utils.c:
17702 * regcache.h:
17703 * utils.c:
17704 * Makefile.in:
17705 * configure.ac:
6f0f660e
EZ
17706 * gdbserver.1: Add (C) after Copyright. Update the FSF
17707 address.
17708
9d1fb177
DJ
177092005-11-13 Daniel Jacobowitz <dan@codesourcery.com>
17710
17711 * linux-arm-low.c (arm_eabi_breakpoint): New variable.
17712 (arm_breakpoint_at): Recognize both breakpoints.
17713 (the_low_target): Use the correct breakpoint instruction.
17714
011a70c2
DJ
177152005-11-02 Daniel Jacobowitz <dan@codesourcery.com>
17716
17717 * configure.srv (x86_64-*-linux*): Turn on thread_db support.
17718 * linux-x86-64-low.c (x86_64_breakpoint, x86_64_breakpoint_len)
17719 (x86_64_get_pc, x86_64_set_pc, x86_64_breakpoint_at): New.
17720 (the_low_target): Update.
17721
7fb85e41
AS
177222005-10-25 Andreas Schwab <schwab@suse.de>
17723
17724 * server.c (main): Allocate mem_buf with PBUFSIZ bytes.
17725
17726 * linux-ia64-low.c (ia64_regmap): Remove NAT registers.
17727 (ia64_num_regs): Reduce to 462.
17728
3db0444b
DJ
177292005-09-17 Daniel Jacobowitz <dan@codesourcery.com>
17730
17731 * acinclude.m4: Correct quoting.
17732 * aclocal.m4: Regenerated.
17733
17734 Suggested by SZOKOVACS Robert <szo@ies.hu>:
17735 * thread-db.c (thread_db_err_str): Handle TD_VERSION.
17736 (thread_db_init): Call thread_db_err_str.
17737 * configure.ac: Check for TD_VERSION.
17738 * config.in, configure: Regenerated.
17739
bee0189a
DJ
177402005-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
17741
17742 * server.h (error, fatal, warning): Add ATTR_FORMAT.
17743
e9d25b98
DJ
177442005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17745
17746 * configure.ac: Define HAVE_LINUX_REGSETS even if PTRACE_GETREGS
17747 is not available. Define HAVE_PTRACE_GETREGS if it is.
17748 * config.in, configure: Regenerated.
17749 * configure.srv: Set srv_linux_regsets for PowerPC and PowerPC64.
17750 * linux-i386-low.c, linux-m68k-low.c: Update to use
17751 HAVE_PTRACE_GETREGS.
17752 * linux-low.c (regsets_fetch_inferior_registers)
17753 (regsets_store_inferior_registers): Only return 0 if we processed
17754 GENERAL_REGS.
17755 * linux-ppc-low.c (ppc_fill_gregset, target_regsets): New.
17756 * linux-ppc64-low.c (ppc_fill_gregset, target_regsets): New.
17757
a06660f7
DJ
177582005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17759
17760 * inferiors.c (struct thread_info): Add gdb_id.
17761 (add_thread): Add gdb_id argument.
17762 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New.
17763 * linux-low.c (linux_create_inferior, linux_attach_lwp): Update
17764 calls to add_thread.
17765 * remote-utils.c (prepare_resume_reply: Use thread_to_gdb_id.
17766 * server.c (handle_query): Use thread_to_gdb_id.
17767 (handle_v_cont, main): Use gdb_id_to_thread_id.
17768 * server.h (add_thread): Update prototype.
17769 (thread_id_to_gdb_id, thread_to_gdb_id, gdb_id_to_thread_id): New
17770 prototypes.
17771
5a1f5858
DJ
177722005-07-13 Daniel Jacobowitz <dan@codesourcery.com>
17773
17774 * linux-low.c (fetch_register, usr_store_inferior_registers): Handle
17775 left-padded registers.
17776 * linux-low.h (struct linux_target_ops): Add left_pad_xfer.
17777 * linux-ppc64-low.c (the_low_target): Set left_pad_xfer.
17778
e122f1f5
SE
177792005-07-01 Steve Ellcey <sje@cup.hp.com>
17780
17781 * configure.ac (BFD_NEED_DECLARATION): Replace with AC_CHECK_DECLS.
17782 * configure: Regenerate.
17783 * config.in: Regenerate.
17784 * server.h (NEED_DECLARATION_STRERROR):
17785 Replace with !HAVE_DECL_STRERROR.
17786
d592fa2f
DJ
177872005-06-16 Daniel Jacobowitz <dan@codesourcery.com>
17788
17789 * linux-low.c (linux_wait, linux_send_signal): Don't test
17790 an unsigned long variable for > 0 if it could be MAX_ULONG.
17791 * server.c (myresume): Likewise.
17792 * target.c (set_desired_inferior): Likewise.
17793
ccbd4912
MK
177942005-06-13 Mark Kettenis <kettenis@gnu.org>
17795
17796 * configure.ac: Simplify and improve check for socklen_t.
17797 * configure, config.in: Regenerate.
17798
f450004a
DJ
177992005-06-12 Daniel Jacobowitz <dan@codesourcery.com>
17800
17801 * acconfig.h: Remove.
17802 * configure.ac: Add a test for socklen_t. Use three-argument
17803 AC_DEFINE throughout.
17804 * config.in: Regenerated using autoheader 2.59.
17805 * configure: Regenerated.
17806
17807 * gdbreplay.c (socklen_t): Provide a default.
17808 (remote_open): Use socklen_t.
17809 * remote-utils.c (socklen_t): Provide a default.
17810 (remote_open): Use socklen_t.
17811 (convert_int_to_ascii, convert_ascii_to_int, decode_M_packet): Use
17812 unsigned char.
17813
17814 * i387-fp.c (struct i387_fsave, struct i387_fxsave): Use unsigned
17815 char for buffers.
17816 * linux-low.c (linux_read_memory, linux_write_memory)
17817 (linux_read_auxv): Likewise.
17818 * mem-break.c (breakpoint_data, set_breakpoint_data, check_mem_read)
17819 (check_mem_write): Likewise.
17820 * mem-break.h (set_breakpoint_data, check_mem_read, check_mem_write):
17821 Likewise.
17822 * regcache.c (struct inferior_rgcache_data, registers_to_string)
17823 (registers_from_string, register_data): Likewise.
17824 * server.c (handle_query, main): Likewise.
17825 * server.h (convert_ascii_to_int, convert_int_to_ascii)
17826 (decode_M_packet): Likewise.
17827 * target.c (read_inferior_memory, write_inferior_memory): Likewise.
17828 * target.h (struct target_ops): Update read_memory, write_memory,
17829 and read_auxv.
17830 (read_inferior_memory, write_inferior_memory): Update.
17831 * linux-low.h (struct linux_target_ops): Change type of breakpoint
17832 to unsigned char *.
17833 * linux-arm-low.c, linux-cris-low.c, linux-crisv32-low.c,
17834 linux-i386-low.c, linux-m32r-low.c, linux-m68k-low.c,
17835 linux-mips-low.c, linux-ppc-low.c, linux-ppc64-low.c,
17836 linux-s390-low.c, linux-sh-low.c: Update for changes in
17837 read_inferior_memory and the_low_target->breakpoint.
17838
eee84df1
DJ
178392005-05-28 Daniel Jacobowitz <dan@codesourcery.com>
17840
17841 * Makefile.in (SFILES): Add linux-ppc64-low.c.
17842 (linux-ppc64-low.o, reg-ppc64.c, reg-ppc64.o): New targets.
17843 * configure.srv: Add powerpc64-*-linux*.
17844 * linux-ppc64-low.c: New file.
17845
45b134e5
OF
178462005-05-23 Orjan Friberg <orjanf@axis.com>
17847
17848 * linux-cris-low.c: New file with support for CRIS.
17849 * linux-crisv32-low.c: Ditto for CRISv32.
17850 * Makefile.in (SFILES): Add linux-cris-low.c, linux-crisv32-low.c.
17851 (clean): Add reg-cris.c and reg-crisv32.c.
889bf7c5 17852 Add linux-cris-low.o, linux-crisv32-low.o, reg-cris.o, reg-cris.c,
45b134e5
OF
17853 reg-crisv32.o, and reg-crisv32.c to make rules.
17854 * configure.srv: Add cris-*-linux* and crisv32-*-linux* to list of
17855 recognized targets.
17856
48d93c75
UW
178572005-05-16 Ulrich Weigand <uweigand@de.ibm.com>
17858
17859 * linux-low.c (fetch_register): Ensure buffer size is a multiple
17860 of sizeof (PTRACE_XFER_TYPE).
17861 (usr_store_inferior_registers): Likewise. Zero out excess bytes.
17862
e013ee27
OF
178632005-05-12 Orjan Friberg <orjanf@axis.com>
17864
889bf7c5 17865 * target.h (struct target_ops): Add insert_watchpoint,
e013ee27
OF
17866 remove_watchpoint, stopped_by_watchpoint, stopped_data_address function
17867 pointers for hardware watchpoint support.
17868 * linux-low.h (struct linux_target_ops): Ditto.
17869 * linux-low.c (linux_insert_watchpoint, linux_remove_watchpoint)
17870 (linux_stopped_by_watchpoint, linux_stopped_data_address): New. Add
17871 to linux_target_ops.
17872 * remote-utils.c (prepare_resume_reply): Add watchpoint information to
17873 reply packet.
17874 * server.c (main): Recognize 'Z' and 'z' packets.
17875
b0ded00b
UW
178762005-05-10 Ulrich Weigand <uweigand@de.ibm.com>
17877
17878 * linux-s390-low.c (s390_breakpoint, s390_breakpoint_len): Define.
17879 (s390_get_pc, s390_set_pc, s390_breakpoint_at): New functions.
17880 (the_low_target): Add new members.
17881
8643e2ad
DJ
178822005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17883
17884 * proc-service.c (ps_lgetregs): Search all_processes instead of
17885 all_threads.
17886
fc620387
DJ
178872005-05-04 Daniel Jacobowitz <dan@codesourcery.com>
17888
17889 * server.c (start_inferior): Change return type to int.
17890 (attach_inferior): Change sigptr to int *.
17891 (handle_v_cont, handle_v_requests): Change signal to int *.
17892 (main): Change signal to int.
17893
178942005-04-15 Kei Sakamoto <sakamoto.kei@renesas.com>
7cfbc4a0
KI
17895
17896 * Makefile.in: Add linux-m32r-low.o, reg-m32r.c and reg-m32r.o.
17897 * configure.srv: Add m32r*-*-linux*.
17898 * linux-m32r-low.c: New file.
17899
e0e76420
DJ
179002005-03-04 Daniel Jacobowitz <dan@codesourcery.com>
17901
17902 * Makefile.in (stamp-h): Set CONFIG_HEADERS explicitly.
17903
a1928bad
DJ
179042005-03-03 Daniel Jacobowitz <dan@codesourcery.com>
17905
17906 * inferiors.c (change_inferior_id, add_thread, find_inferior_id):
17907 Take unsigned long arguments for PIDs.
17908 * linux-low.c (add_process, linux_attach_lwp, linux_attach)
17909 (linux_thread_alive, linux_wait_for_event, kill_lwp, send_sigstop)
17910 (wait_for_sigstop, linux_resume_one_process)
17911 (regsets_fetch_inferior_registers, linux_send_signal)
17912 (linux_read_auxv): Likewise. Update the types of variables holding
17913 PIDs. Update format string specifiers.
17914 * linux-low.h (struct process_info, linux_attach_lwp): Likewise.
17915 * remote-utils.c (prepare_resume_reply): Likewise.
17916 * server.c (cont_thread, general_thread, step_thread)
17917 (thread_from_wait, old_thread_from_wait, signal_pid): Change type to
17918 unsigned long.
17919 (handle_query): Update format specifiers.
17920 (handle_v_cont, main): Use strtoul for thread IDs.
17921 * server.h (struct inferior_list_entry): Use unsigned long for ID.
17922 (add_thread, find_inferior_id, change_inferior_id, cont_thread)
17923 (general_thread, step_thread, thread_from_wait)
17924 (old_thread_from_wait): Update.
17925 * target.h (struct thread_resume): Use unsigned long for THREAD.
17926 (struct target_ops): Use unsigned long for arguments to attach and
17927 thread_alive.
17928
dcdb98d2
DJ
179292005-02-24 Daniel Jacobowitz <dan@codesourcery.com>
17930
17931 * acinclude.m4: Include bfd/bfd.m4 directly.
17932 * configure.ac: Use AC_ARG_PROGRAM. Suggested by Aron Griffis
17933 <agriffis@toolchain.org>.
17934 * aclocal.m4, configure: Regenerated.
17935
bec39cab
AC
179362005-01-07 Andrew Cagney <cagney@gnu.org>
17937
17938 * configure.ac: Rename configure.in, require autoconf 2.59.
17939 * configure: Re-generate.
17940
434c4c77
DJ
179412004-12-08 Daniel Jacobowitz <dan@debian.org>
17942
17943 * acinclude.m4 (SRV_CHECK_THREAD_DB): Add ps_get_thread_area. Reset
17944 LIBS when finished.
17945 * aclocal.m4: Regenerated.
17946 * configure: Regenerated.
17947
db1d3e1b
AS
179482004-11-21 Andreas Schwab <schwab@suse.de>
17949
17950 * linux-m68k-low.c (m68k_num_gregs): Define.
17951 (m68k_fill_gregset, m68k_store_gregset, m68k_fill_fpregset)
17952 (m68k_store_fpregset, target_regsets) [HAVE_LINUX_REGSETS]: New.
17953 (m68k_breakpoint, m68k_breakpoint_len, m68k_get_pc, m68k_set_pc)
17954 (m68k_breakpoint_at): New. Add to the_low_target.
17955
17956 * configure.srv (m68*-*-linux*): Set srv_linux_regsets and
17957 srv_linux_thread_db to yes.
17958
43360365
JB
179592004-10-20 Joel Brobecker <brobecker@gnat.com>
17960
17961 * linux-x86-64-low.c (ARCH_SET_GS): Add definition if missing.
17962 (ARCH_SET_FS): Likewise.
17963 (ARCH_GET_FS): Likewise.
17964 (ARCH_GET_GS): Likewise.
17965
fd500816
DJ
179662004-10-16 Daniel Jacobowitz <dan@debian.org>
17967
17968 * linux-i386-low.c (ps_get_thread_area): New.
17969 * linux-x86-64-low.c (ps_get_thread_area): New.
17970 * linux-low.c: Include <sys/syscall.h>.
17971 (linux_kill_one_process): Don't kill the first thread here.
17972 (linux_kill): Kill the first thread here.
17973 (kill_lwp): New function.
17974 (send_sigstop, linux_send_signal): Use it.
17975 * proc-service.c: Clean up #ifdefs.
17976 (fpregset_info): Delete.
17977 (ps_lgetregs): Update and enable implementation.
17978 (ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs): Remove disabled
17979 implementations.
17980 * remote-utils.c (struct sym_cache, symbol_cache): New.
17981 (input_interrupt): Print a clearer message.
17982 (async_io_enabled): New variable.
17983 (enable_async_io, disable_async_io): Use it. Update comments.
17984 (look_up_one_symbol): Use the symbol cache.
17985 * thread-db.c (thread_db_look_up_symbols): New function.
17986 (thread_db_init): Update comments. Call thread_db_look_up_symbols.
17987
f6de3c42
DJ
179882004-10-16 Daniel Jacobowitz <dan@debian.org>
17989
17990 * configure.in: Test for -rdynamic.
17991 * configure: Regenerated.
17992 * Makefile (INTERNAL_LDFLAGS): New.
17993 (gdbserver, gdbreplay): Use it.
17994
2c0fc042
AC
179952004-09-02 Andrew Cagney <cagney@gnu.org>
17996
17997 * Makefile.in (TAGS): Replace TM_FILE with DEPRECATED_TM_FILE.
17998
075b3282
DJ
179992004-03-23 Daniel Jacobowitz <drow@mvista.com>
18000
18001 * linux-low.c (linux_wait): Clear all_processes list also.
18002
fa6a77dc
DJ
180032004-03-12 Daniel Jacobowitz <drow@mvista.com>
18004
18005 * linux-low.c: Include <errno.h>. Remove extern declaration of
18006 errno.
18007
6d782a97
DJ
180082004-03-12 Daniel Jacobowitz <drow@mvista.com>
18009
18010 * gdbreplay.c, server.h, utils.c: Update copyright years.
18011
3a7fb99b
DJ
180122004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18013
18014 * server.c (main): Print child status or termination signal from
18015 variable 'signal', not 'sig'.
18016
c3e735a6
DJ
180172004-03-04 Nathan J. Williams <nathanw@wasabisystems.com>
18018
18019 * linux-low.c (linux_read_memory): Change return type to
18020 int. Check for and return error from ptrace().
18021 * target.c (read_inferior_memory): Change return type to int. Pass
18022 back return status from the_target->read_memory().
18023 * target.h (struct target_ops): Adapt *read_memory() prototype.
18024 Update comment.
18025 (read_inferior_memory): Adapt prototype.
18026 * server.c (main): Return an error packet if
18027 read_inferior_memory() returns an error.
18028
a59d1c82
DJ
180292004-03-04 Daniel Jacobowitz <drow@mvista.com>
18030
18031 * Makefile.in (distclean): Remove config.h, stamp-h, and config.log.
18032 Unify with other clean targets.
18033
dc3f8883
DJ
180342004-02-29 Daniel Jacobowitz <drow@mvista.com>
18035
18036 * server.c (handle_v_cont): Call set_desired_inferior.
18037
89a208da
DJ
180382004-02-29 Daniel Jacobowitz <drow@mvista.com>
18039
18040 * remote-utils.c (prepare_resume_reply): Always supply "thread:".
18041
62ea82f5
DJ
180422004-02-29 Daniel Jacobowitz <drow@mvista.com>
18043
18044 * linux-low.c (linux_wait): Unblock async I/O.
18045 (linux_resume): Block and enable async I/O.
18046 * remote-utils.c (block_async_io, unblock_async_io): New functions.
18047 * server.h (block_async_io, unblock_async_io): Add prototypes.
18048
6910d122
DJ
180492004-02-29 Daniel Jacobowitz <drow@mvista.com>
18050
18051 * remote-utils.c (remote_open): Print a status notice after
18052 opening a TCP port.
18053 * server.c (attach_inferior): Print a status notice after
18054 attaching.
18055
180562004-02-29 Daniel Jacobowitz <drow@mvista.com>
d677d77d
DJ
18057
18058 * linux-arm-low.c (arm_get_pc): Print out stop PC in debug mode.
18059
c89dc5d4
DJ
180602004-02-26 Daniel Jacobowitz <drow@mvista.com>
18061
18062 * remote-utils.c (write_enn): Use "E01" instead of "ENN" for the
18063 error packet.
18064 * server.c, target.h: Update copyright years.
18065
4b8dad4a
RM
180662004-02-25 Roland McGrath <roland@redhat.com>
18067
18068 * target.h (struct target_ops): New member `read_auxv'.
18069 * server.c (handle_query): Handle qPart:auxv:read: query using that.
18070 * linux-low.c (linux_read_auxv): New function.
18071 (linux_target_ops): Initialize `read_auxv' member to that.
18072
d7446758
JB
180732004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18074
18075 Committed by Jim Blandy <jimb@redhat.com>.
18076
18077 * linux-s390-low.c (s390_num_regs): Update.
4b8dad4a 18078 (s390_regmap): Remove control registers. Use __s390x__ predefine
d7446758
JB
18079 instead of GPR_SIZE to distiguish s390 and s390x targets.
18080
5544ad89
DJ
180812004-01-31 Daniel Jacobowitz <drow@mvista.com>
18082
18083 * linux-low.c: Update copyright year.
18084 (check_removed_breakpoint): Clear pending_is_breakpoint.
18085 (linux_set_resume_request, linux_queue_one_thread)
18086 (resume_status_pending_p): New functions.
18087 (linux_continue_one_thread): Use process->resume.
18088 (linux_resume): Only resume threads if there are no pending events.
18089 * linux-low.h (struct process_info): Add resume request
18090 pointer.
18091
2a68b70e
DJ
180922004-01-30 Daniel Jacobowitz <drow@mvista.com>
18093
18094 * regcache.c (new_register_cache): Clear the allocated register
18095 buffer. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
18096
64386c31
DJ
180972003-10-13 Daniel Jacobowitz <drow@mvista.com>
18098
18099 * linux-low.c (linux_resume): Take a struct thread_resume *
18100 argument.
18101 (linux_wait): Update call.
18102 (resume_ptr): New static variable.
18103 (linux_continue_one_thread): Renamed from
18104 linux_continue_one_process. Use resume_ptr.
18105 (linux_resume): Use linux_continue_one_thread.
18106 * server.c (handle_v_cont, handle_v_requests): New functions.
18107 (myresume): New function.
18108 (main): Handle 'v' case.
18109 * target.h (struct thread_resume): New type.
18110 (struct target_ops): Change argument of "resume" to struct
18111 thread_resume *.
18112 (myresume): Delete macro.
18113
c938e9b0
L
181142003-08-08 H.J. Lu <hongjiu.lu@intel.com>
18115
18116 * Makefile.in (install-only): Create dest dir. Support DESTDIR.
18117 (uninstall): Support DESTDIR.
18118
7f313d07
BC
18119Mon Jul 21 20:09:34 UTC 2003 Brendan Conoboy <blc@redhat.com>
18120
18121 * configure.srv: Add xscale*linux copy of arm*linux entry.
18122
3b2fc2ea
DJ
181232003-07-24 Daniel Jacobowitz <drow@mvista.com>
18124
18125 * linux-arm-low.c (arm_reinsert_addr): New function.
18126 (the_low_target): Add arm_reinsert_addr.
18127
1c0a559e
MK
181282003-07-08 Mark Kettenis <kettenis@gnu.org>
18129
18130 * mem-break.c: Remove whitespace at end of file.
18131
43d5792c
DJ
181322003-06-28 Daniel Jacobowitz <drow@mvista.com>
18133
18134 * configure.in: Check whether we need to prototype strerror.
18135 * server.h: Optionally prototype strerror.
18136 * gdbreplay.c (perror_with_name): Use strerror.
18137 * linux-low.c (linux_attach_lwp): Use strerror.
18138 * utils.c (perror_with_name): Use strerror.
18139 * config.in, configure: Regenerated.
18140
c8a86edf
DJ
181412003-06-28 Daniel Jacobowitz <drow@mvista.com>
18142
18143 * linux-sh-low.c (sh_regmap): Fix FP register offsets, reported by
18144 SUGIOKA Toshinobu <sugioka@itonet.co.jp>.
18145
73d37363
DJ
181462003-06-20 Daniel Jacobowitz <drow@mvista.com>
18147
18148 * Makefile.in (SFILES): Update.
18149 * low-hppabsd.c, low-lynx.c, low-nbsd.c, low-sim.c, low-sparc.c,
18150 low-sun3.c: Remove files.
18151
6ad8ae5c
DJ
181522003-06-17 Daniel Jacobowitz <drow@mvista.com>
18153
18154 * linux-low.c: Move comment to linux_thread_alive where it belonged.
18155 (linux_detach_one_process, linux_detach): New functions.
18156 (linux_target_ops): Add linux_detach.
18157 * server.c (main): Handle 'D' packet.
18158 * target.h (struct target_ops): Add "detach" member.
18159 (detach_inferior): Define.
18160
1581182a
MK
181612003-06-13 Mark Kettenis <kettenis@gnu.org>
18162
18163 From Kelley Cook <kelleycook@wideopenwest.com>:
18164 * configure.srv: Accept i[34567]86 variants.
18165
e5379b03
DJ
181662003-06-05 Daniel Jacobowitz <drow@mvista.com>
18167
18168 * linux-low.c (linux_wait_for_event): Correct comment typos.
18169 (linux_resume_one_process): Call check_removed_breakpoint.
18170 (linux_send_signal): New function.
18171 (linux_target_ops): Add linux_send_signal.
18172 * remote-utils.c (putpkt, input_interrupt): Use send_signal instead
18173 of kill.
18174 * target.h (struct target_ops): Add send_signal.
18175
2ff29de4
JB
181762003-05-29 Jim Blandy <jimb@redhat.com>
18177
18178 * linux-low.c (usr_store_inferior_registers): Transfer buf in
18179 PTRACE_XFER_TYPE-sized chunks, not int-sized chunks. Otherwise,
18180 if 'int' is smaller than PTRACE_XFER_TYPE, you end up throwing
18181 away part of the register's value.
18182
254787d4
DJ
181832003-03-26 Daniel Jacobowitz <drow@mvista.com>
18184
18185 * linux-low.c (linux_create_inferior): Use __SIGRTMIN.
18186 (linux_wait_for_event, linux_init_signals): Likewise.
18187
94e10508
DJ
181882003-03-17 Daniel Jacobowitz <drow@mvista.com>
18189
18190 * configure.in: Check for stdlib.h.
18191 * configure: Regenerated.
18192 * config.in: Regenerated.
18193
4c0711e0
DJ
181942003-01-04 Andreas Schwab <schwab@suse.de>
18195
18196 * linux-m68k-low.c (m68k_num_regs): Define to 29 instead of 31.
18197
ef66e766
AC
181982003-01-02 Andrew Cagney <ac131313@redhat.com>
18199
18200 * Makefile.in: Remove obsolete code.
18201
a1358604
DJ
182022002-11-20 Daniel Jacobowitz <drow@mvista.com>
18203
18204 * linux-s390-low.c (s390_regmap): Check GPR_SIZE instead of
18205 defined(PT_FPR0_HI).
18206
23ce3b1c
DJ
182072002-11-17 Stuart Hughes <seh@zee2.com>
18208
18209 * linux-arm-low.c (arm_num_regs): Increase.
18210 (arm_regmap): Include status register.
18211
182122002-11-17 Daniel Jacobowitz <drow@mvista.com>
18213
18214 * linux-low.c (register_addr): Remove incorrect -1 check.
18215
a9fa9f7d
DJ
182162002-08-29 Daniel Jacobowitz <drow@mvista.com>
18217
18218 * linux-low.c (linux_create_inferior): Call setpgid. Return
18219 the new PID.
18220 (unstopped_p, linux_signal_pid): Remove.
18221 (linux_target_ops): Remove linux_signal_pid.
18222 * remote-utils.c (putpkt, input_interrupt): Use signal_pid
18223 global instead of target method.
18224 * target.h (struct target_ops): Remove signal_pid. Update comment
18225 for create_inferior.
18226 * server.c (signal_pid): New variable.
18227 (create_inferior): Set signal_pid. Block SIGTTOU and SIGTTIN in
4b8dad4a 18228 gdbserver. Set the child to be the foreground process group.
a9fa9f7d
DJ
18229 (attach_inferior): Set signal_pid.
18230
17574093
DJ
182312002-08-23 Daniel Jacobowitz <drow@mvista.com>
18232
18233 * ChangeLog: New file, with entries from gdb/ChangeLog after GDB 5.2.
18234
182352002-08-20 Jim Blandy <jimb@redhat.com>
18236
18237 * Makefile.in (LDFLAGS): Allow the configure script to establish a
18238 default for this.
18239
182402002-08-01 Andrew Cagney <cagney@redhat.com>
18241
18242 * Makefile.in: Make chill references obsolete.
18243
182442002-07-24 Kevin Buettner <kevinb@redhat.com>
18245
18246 * configure.in (unistd.h): Add to AC_CHECK_HEADERS list.
18247 * configure: Regenerate.
18248 * config.in: Regenerate.
18249
182502002-07-09 David O'Brien <obrien@FreeBSD.org>
18251
18252 * gdbreplay.c (stdlib.h, unistd.h): Conditionaly include.
18253 (perror_with_name, remote_close, remote_open, expect, play): Static.
18254
182552002-07-04 Michal Ludvig <mludvig@suse.cz>
18256
4b8dad4a 18257 * linux-x86-64-low.c (x86_64_regmap): Make it an array of
17574093
DJ
18258 byte offsets instead of an array of indexes.
18259 (x86_64_store_gregset, x86_64_store_fpregset): Parameter made const.
18260
182612002-06-13 Daniel Jacobowitz <drow@mvista.com>
18262
18263 * regcache.c: Add comment.
18264
182652002-06-11 Daniel Jacobowitz <drow@mvista.com>
18266
18267 * thread-db.c: New file.
18268 * proc-service.c: New file.
18269 * acinclude.m4: New file.
18270 * Makefile.in: Add GDBSERVER_LIBS, gdb_proc_service_h,
18271 proc-service.o, and thread-db.o.
18272 (linux-low.o): Add USE_THREAD_DB.
18273 * acconfig.h: Add HAVE_PRGREGSET_T, HAVE_PRFPREGSET_T,
18274 HAVE_LWPID_T, HAVE_PSADDR_T, and PRFPREGSET_T_BROKEN.
18275 * aclocal.m4: Regenerated.
18276 * config.in: Regenerated.
18277 * configure: Regenerated.
18278 * configure.in: Check for proc_service.h, sys/procfs.h,
18279 thread_db.h, and linux/elf.h headrs.
18280 Check for lwpid_t, psaddr_t, prgregset_t, prfpregset_t, and
18281 PRFPREGSET_T_BROKEN. Introduce srv_thread_depfiles and USE_THREAD_DB.
18282 Check for -lthread_db and thread support.
18283 * configure.srv: Enable thread_db support for ARM, i386, MIPS,
18284 PowerPC, and SuperH.
18285 * i387-fp.c: Constify arguments.
18286 * i387-fp.h: Likewise.
18287 * inferiors.c: (struct thread_info): Renamed from
18288 `struct inferior_info'. Remove PID member. Use generic inferior
18289 list header. All uses updated.
18290 (inferiors, signal_pid): Removed.
18291 (all_threads): New variable.
18292 (get_thread): Define.
18293 (add_inferior_to_list): New function.
18294 (for_each_inferior): New function.
18295 (change_inferior_id): New function.
18296 (add_inferior): Removed.
18297 (remove_inferior): New function.
18298 (add_thread): New function.
18299 (free_one_thread): New function.
18300 (remove_thread): New function.
18301 (clear_inferiors): Use for_each_inferior and free_one_thread.
18302 (find_inferior): New function.
18303 (find_inferior_id): New function.
18304 (inferior_target_data): Update argument type.
18305 (set_inferior_target_data): Likewise.
18306 (inferior_regcache_data): Likewise.
18307 (set_inferior_regcache_data): Likewise.
18308 * linux-low.c (linux_bp_reinsert): Remove.
18309 (all_processes, stopping_threads, using_thrads)
18310 (struct pending_signals, debug_threads, pid_of): New.
18311 (inferior_pid): Replace with macro.
18312 (struct inferior_linux_data): Remove.
18313 (get_stop_pc, add_process): New functions.
18314 (linux_create_inferior): Restore SIGRTMIN+1 before calling exec.
18315 Use add_process and add_thread.
18316 (linux_attach_lwp): New function, based on old linux_attach. Use
18317 add_process and add_thread. Set stop_expected for new threads.
18318 (linux_attach): New function.
18319 (linux_kill_one_process): New function.
18320 (linux_kill): Kill all LWPs.
18321 (linux_thread_alive): Use find_inferior_id.
18322 (check_removed_breakpoints, status_pending_p): New functions.
18323 (linux_wait_for_process): Renamed from linux_wait_for_one_inferior.
18324 Update. Use WNOHANG. Wait for cloned processes also. Update process
18325 struct for the found process.
18326 (linux_wait_for_event): New function.
18327 (linux_wait): Use it. Support LWPs.
18328 (send_sigstop, wait_for_sigstop, stop_all_processes)
18329 (linux_resume_one_process, linux_continue_one_process): New functions.
18330 (linux_resume): Support LWPs.
18331 (REGISTER_RAW_SIZE): Remove.
18332 (fetch_register): Use register_size instead. Call supply_register.
18333 (usr_store_inferior_registers): Likewise. Call collect_register.
18334 Fix recursive case.
18335 (regsets_fetch_inferior_registers): Improve error message.
18336 (regsets_store_inferior_registers): Add debugging.
18337 (linux_look_up_symbols): Call thread_db_init if USE_THREAD_DB.
18338 (unstopped_p, linux_signal_pid): New functions.
18339 (linux_target_ops): Add linux_signal_pid.
18340 (linux_init_signals): New function.
18341 (initialize_low): Call it. Initialize using_threads.
18342 * regcache.c (inferior_regcache_data): Add valid
18343 flag.
18344 (get_regcache): Fetch registers lazily. Add fetch argument
18345 and update all callers.
18346 (regcache_invalidate_one, regcache_invalidate): New
18347 functions.
18348 (new_register_cache): Renamed from create_register_cache.
18349 Return the new regcache.
18350 (free_register_cache): Change argument to a void *.
18351 (registers_to_string, registers_from_string): Call get_regcache
18352 with fetch flag set.
18353 (register_data): Make static. Pass fetch flag to get_regcache.
18354 (supply_register): Call get_regcache with fetch flag clear.
18355 (collect_register): Call get_regcache with fetch flag set.
18356 (collect_register_as_string): New function.
18357 * regcache.h: Update.
18358 * remote-utils.c (putpkt): Flush after debug output and use
18359 stderr.
18360 Handle input interrupts while waiting for an ACK.
18361 (input_interrupt): Use signal_pid method.
18362 (getpkt): Flush after debug output and use stderr.
18363 (outreg): Use collect_register_as_string.
18364 (new_thread_notify, dead_thread_notify): New functions.
18365 (prepare_resume_reply): Check using_threads. Set thread_from_wait
18366 and general_thread.
18367 (look_up_one_symbol): Flush after debug output.
18368 * server.c (step_thread, server_waiting): New variables.
18369 (start_inferior): Don't use signal_pid. Update call to mywait.
18370 (attach_inferior): Update call to mywait.
18371 (handle_query): Handle qfThreadInfo and qsThreadInfo.
18372 (main): Don't fetch/store registers explicitly. Use
18373 set_desired_inferior. Support proposed ``Hs'' packet. Update
18374 calls to mywait.
18375 * server.h: Update.
18376 (struct inferior_list, struct_inferior_list_entry): New.
18377 * target.c (set_desired_inferior): New.
18378 (write_inferior_memory): Constify.
18379 (mywait): New function.
18380 * target.h: Update.
18381 (struct target_ops): New signal_pid method.
18382 (mywait): Removed macro, added prototype.
18383
18384 * linux-low.h (regset_func): Removed.
18385 (regset_fill_func, regset_store_func): New.
18386 (enum regset_type): New.
18387 (struct regset_info): Add type field. Use new operation types.
18388 (struct linux_target_ops): stop_pc renamed to get_pc.
18389 Add decr_pc_after_break and breakpoint_at.
18390 (get_process, get_thread_proess, get_process_thread)
18391 (strut process_info, all_processes, linux_attach_lwp)
18392 (thread_db_init): New.
18393
18394 * linux-arm-low.c (arm_get_pc, arm_set_pc,
18395 arm_breakpoint, arm_breakpoint_len, arm_breakpoint_at): New.
18396 (the_low_target): Add new members.
18397 * linux-i386-low.c (i386_store_gregset, i386_store_fpregset)
18398 (i386_store_fpxregset): Constify.
18399 (target_regsets): Add new kind identifier.
18400 (i386_get_pc): Renamed from i386_stop_pc. Simplify.
18401 (i386_set_pc): Add debugging.
18402 (i386_breakpoint_at): New function.
18403 (the_low_target): Add new members.
18404 * linux-mips-low.c (mips_get_pc, mips_set_pc)
18405 (mips_breakpoint, mips_breakpoint_len, mips_reinsert_addr)
18406 (mips_breakpoint_at): New.
18407 (the_low_target): Add new members.
18408 * linux-ppc-low.c (ppc_get_pc, ppc_set_pc)
18409 (ppc_breakpoint, ppc_breakpoint_len, ppc_breakpoint_at): New.
18410 (the_low_target): Add new members.
18411 * linux-sh-low.c (sh_get_pc, sh_set_pc)
18412 (sh_breakpoint, sh_breakpoint_len, sh_breakpoint_at): New.
18413 (the_low_target): Add new members.
18414 * linux-x86-64-low.c (target_regsets): Add new kind
18415 identifier.
18416
184172002-05-15 Daniel Jacobowitz <drow@mvista.com>
18418
18419 From Martin Pool <mbp@samba.org>:
18420 * server.c (gdbserver_usage): New function.
18421 (main): Call it.
18422
184232002-05-14 Daniel Jacobowitz <drow@mvista.com>
18424
18425 * mem-break.c (reinsert_breakpoint_by_bp): Correct typo
18426 stop_at -> stop_pc.
18427
184282002-05-04 Andrew Cagney <ac131313@redhat.com>
18429
18430 * Makefile.in: Remove obsolete code.
18431
184322002-04-24 Michal Ludvig <mludvig@suse.cz>
18433
18434 * linux-low.c (regsets_fetch_inferior_registers),
18435 (regsets_store_inferior_registers): Removed cast to int from
18436 ptrace() calls.
18437 * regcache.h: Added declaration of struct inferior_info.
18438
184392002-04-20 Daniel Jacobowitz <drow@mvista.com>
18440
18441 * inferiors.c (struct inferior_info): Add regcache_data.
18442 (add_inferior): Call create_register_cache.
18443 (clear_inferiors): Call free_register_cache.
18444 (inferior_regcache_data, set_inferior_regcache_data): New functions.
18445 * regcache.c (struct inferior_regcache_data): New.
18446 (registers): Remove.
18447 (get_regcache): New function.
18448 (create_register_cache, free_register_cache): New functions.
18449 (set_register_cache): Don't initialize the register cache here.
18450 (registers_to_string, registers_from_string, register_data): Call
18451 get_regcache.
18452 * regcache.h: Add prototypes.
18453 * server.h: Likewise.
18454
184552002-04-20 Daniel Jacobowitz <drow@mvista.com>
18456
18457 * mem-break.c: New file.
18458 * mem-break.h: New file.
18459 * Makefile.in: Add mem-break.o rule; update server.h
18460 dependencies.
18461 * inferiors.c (struct inferior_info): Add target_data
18462 member.
18463 (clear_inferiors): Free target_data member if set.
18464 (inferior_target_data, set_inferior_target_data): New functions.
18465 * linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
18466 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
18467 * linux-low.c (linux_bp_reinsert): New variable.
18468 (struct inferior_linux_data): New.
18469 (linux_create_inferior): Use set_inferior_target_data.
18470 (linux_attach): Likewise. Call add_inferior.
18471 (linux_wait_for_one_inferior): New function.
18472 (linux_wait): Call it.
18473 (linux_write_memory): Add const.
18474 (initialize_low): Call set_breakpoint_data.
18475 * linux-low.h (struct linux_target_ops): Add breakpoint
18476 handling members.
18477 * server.c (attach_inferior): Remove extra add_inferior
18478 call.
18479 * server.h: Include mem-break.h. Update inferior.c
18480 prototypes.
18481 * target.c (read_inferior_memory)
18482 (write_inferior_memory): New functions.
18483 * target.h (read_inferior_memory)
18484 (write_inferior_memory): Change macros to prototypes.
18485 (struct target_ops): Update comments. Add const to write_memory
18486 definition.
18487
184882002-04-11 Daniel Jacobowitz <drow@mvista.com>
18489
18490 * linux-low.c (usr_store_inferior_registers): Support
18491 registers which are allowed to fail to store.
18492 * linux-low.h (linux_target_ops): Likewise.
18493 * linux-ppc-low.c (ppc_regmap): Support FPSCR.
18494 (ppc_cannot_store_register): FPSCR may not be storable.
18495
184962002-04-09 Daniel Jacobowitz <drow@mvista.com>
18497
18498 * server.h: Include <string.h> if HAVE_STRING_H.
18499 * ChangeLog: Correct paths in last ChangeLog entry.
18500
185012002-04-09 Daniel Jacobowitz <drow@mvista.com>
18502
18503 * linux-low.h: Remove obsolete prototypes.
18504 (struct linux_target_ops): New.
18505 (extern the_low_target): New.
18506 * linux-low.c (num_regs, regmap): Remove declarations.
18507 (register_addr): Use the_low_target explicitly.
18508 (fetch_register): Likewise.
18509 (usr_fetch_inferior_registers): Likewise.
18510 (usr_store_inferior_registers): Likewise.
18511 * linux-arm-low.c (num_regs): Remove.
18512 (arm_num_regs): Define.
18513 (arm_regmap): Renamed from regmap, made static.
18514 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
18515 made static.
18516 (arm_cannot_store_register): Renamed from cannot_store_register,
18517 made static.
18518 (the_low_target): New.
18519 * linux-i386-low.c (num_regs): Remove.
18520 (i386_num_regs): Define.
18521 (i386_regmap): Renamed from regmap, made static.
18522 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
18523 made static.
18524 (i386_cannot_store_register): Renamed from cannot_store_register,
18525 made static.
18526 (the_low_target): New.
18527 * linux-ia64-low.c (num_regs): Remove.
18528 (ia64_num_regs): Define.
18529 (ia64_regmap): Renamed from regmap, made static.
18530 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
18531 made static.
18532 (ia64_cannot_store_register): Renamed from cannot_store_register,
18533 made static.
18534 (the_low_target): New.
18535 * linux-m68k-low.c (num_regs): Remove.
18536 (m68k_num_regs): Define.
18537 (m68k_regmap): Renamed from regmap, made static.
18538 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
18539 made static.
18540 (m68k_cannot_store_register): Renamed from cannot_store_register,
18541 made static.
18542 (the_low_target): New.
18543 * linux-mips-low.c (num_regs): Remove.
18544 (mips_num_regs): Define.
18545 (mips_regmap): Renamed from regmap, made static.
18546 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
18547 made static.
18548 (mips_cannot_store_register): Renamed from cannot_store_register,
18549 made static.
18550 (the_low_target): New.
18551 * linux-ppc-low.c (num_regs): Remove.
18552 (ppc_num_regs): Define.
18553 (ppc_regmap): Renamed from regmap, made static.
18554 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
18555 made static.
18556 (ppc_cannot_store_register): Renamed from cannot_store_register,
18557 made static.
18558 (the_low_target): New.
18559 * linux-s390-low.c (num_regs): Remove.
18560 (s390_num_regs): Define.
18561 (s390_regmap): Renamed from regmap, made static.
18562 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
18563 made static.
18564 (s390_cannot_store_register): Renamed from cannot_store_register,
18565 made static.
18566 (the_low_target): New.
18567 * linux-sh-low.c (num_regs): Remove.
18568 (sh_num_regs): Define.
18569 (sh_regmap): Renamed from regmap, made static.
18570 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
18571 made static.
18572 (sh_cannot_store_register): Renamed from cannot_store_register,
18573 made static.
18574 (the_low_target): New.
18575 * linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
18576 (the_low_target): New.
18577
185782002-04-09 Daniel Jacobowitz <drow@mvista.com>
18579
18580 * Makefile.in: Add stamp-h target.
18581 * configure.in: Create stamp-h.
18582 * configure: Regenerated.
18583
185842002-04-09 Daniel Jacobowitz <drow@mvista.com>
18585
18586 * inferiors.c: New file.
18587 * target.c: New file.
18588 * target.h: New file.
18589 * Makefile.in: Add target.o and inferiors.o. Update
18590 dependencies.
18591 * linux-low.c (inferior_pid): New static variable,
18592 moved from server.c.
18593 (linux_create_inferior): Renamed from create_inferior.
18594 Call add_inferior. Return 0 on success instead of a PID.
18595 (linux_attach): Renamed from myattach.
18596 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
18597 (linux_thread_alive): Renamed from mythread_alive.
18598 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
18599 child dies.
18600 (linux_resume): Renamed from myresume. Add missing ``return 0''.
18601 (regsets_store_inferior_registers): Correct error message.
18602 Add missing ``return 0''.
18603 (linux_fetch_registers): Renamed from fetch_inferior_registers.
18604 (linux_store_registers): Renamed from store_inferior_registers.
18605 (linux_read_memory): Renamed from read_inferior_memory.
18606 (linux_write_memory): Renamed from write_inferior_memory.
18607 (linux_target_ops): New structure.
18608 (initialize_low): Call set_target_ops ().
18609 * remote-utils.c (unhexify): New function.
18610 (hexify): New function.
18611 (input_interrupt): Send signals to ``signal_pid''.
18612 * server.c (inferior_pid): Remove.
18613 (start_inferior): Update create_inferior call.
18614 (attach_inferior): Call add_inferior.
18615 (handle_query): New function.
18616 (main): Call handle_query for `q' packets.
18617 * server.h: Include "target.h". Remove obsolete prototypes.
18618 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
18619
186202002-04-09 Daniel Jacobowitz <drow@mvista.com>
18621
18622 * Makefile.in: Add WARN_CFLAGS. Update configury
18623 dependencies.
18624 * configure.in: Check for <string.h>
18625 * configure: Regenerate.
18626 * config.in: Regenerate.
18627 * gdbreplay.c: Include needed system headers.
18628 (remote_open): Remove strchr prototype.
18629 * linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
18630 * regcache.c (supply_register): Change buf argument to const void *.
18631 (supply_register_by_name): Likewise.
18632 (collect_register): Change buf argument to void *.
18633 (collect_register_by_name): Likewise.
18634 * regcache.h: Add missing prototypes.
18635 * remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
18636 * server.c (handle_query): New function.
18637 (attached): New static variable, moved out of main.
18638 (main): Quiet longjmp clobber warnings.
18639 * server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
18640 * utils.c (error): Remove NORETURN.
18641 (fatal): Likewise.