convert to_trace_init
[binutils-gdb.git] / gdb / ChangeLog
1 2014-02-19 Tom Tromey <tromey@redhat.com>
2
3 * target-delegates.c: Rebuild.
4 * target.c (update_current_target): Don't inherit or default
5 to_trace_init.
6 * target.h (struct target_ops) <to_trace_init>: Use
7 TARGET_DEFAULT_RETURN.
8
9 2014-02-19 Tom Tromey <tromey@redhat.com>
10
11 * target-delegates.c: Rebuild.
12 * target.c (update_current_target): Don't inherit or default
13 to_supports_string_tracing.
14 * target.h (struct target_ops) <to_supports_string_tracing>: Use
15 TARGET_DEFAULT_RETURN.
16
17 2014-02-19 Tom Tromey <tromey@redhat.com>
18
19 * target-delegates.c: Rebuild.
20 * target.c (update_current_target): Don't inherit or default
21 to_supports_enable_disable_tracepoint.
22 * target.h (struct target_ops)
23 <to_supports_enable_disable_tracepoint>: Use
24 TARGET_DEFAULT_RETURN.
25
26 2014-02-19 Tom Tromey <tromey@redhat.com>
27
28 * target-delegates.c: Rebuild.
29 * target.c (update_current_target): Don't inherit or default
30 to_supports_multi_process.
31 * target.h (struct target_ops) <to_supports_multi_process>: Use
32 TARGET_DEFAULT_RETURN.
33
34 2014-02-19 Tom Tromey <tromey@redhat.com>
35
36 * target-delegates.c: Rebuild.
37 * target.c (update_current_target): Don't inherit or default
38 to_get_ada_task_ptid.
39 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
40 TARGET_DEFAULT_FUNC.
41
42 2014-02-19 Tom Tromey <tromey@redhat.com>
43
44 * target-delegates.c: Rebuild.
45 * target.c (update_current_target): Don't inherit or default
46 to_thread_architecture.
47 * target.h (struct target_ops) <to_thread_architecture>: Use
48 TARGET_DEFAULT_FUNC.
49
50 2014-02-19 Tom Tromey <tromey@redhat.com>
51
52 * target-delegates.c: Rebuild.
53 * target.c (update_current_target): Don't inherit or default
54 to_execution_direction.
55 * target.h (struct target_ops) <to_execution_direction>: Use
56 TARGET_DEFAULT_FUNC.
57
58 2014-02-19 Tom Tromey <tromey@redhat.com>
59
60 * target-delegates.c: Rebuild.
61 * target.c (update_current_target): Don't inherit or default
62 to_can_execute_reverse.
63 * target.h (struct target_ops) <to_can_execute_reverse>: Use
64 TARGET_DEFAULT_RETURN.
65 (target_can_execute_reverse): Unconditionally delegate.
66
67 2014-02-19 Tom Tromey <tromey@redhat.com>
68
69 * target-delegates.c: Rebuild.
70 * target.c (update_current_target): Don't inherit or default
71 to_goto_bookmark.
72 (dummy_goto_bookmark): Remove.
73 (init_dummy_target): Don't inherit or default to_goto_bookmark.
74 * target.h (struct target_ops) <to_goto_bookmark>: Use
75 TARGET_DEFAULT_NORETURN.
76
77 2014-02-19 Tom Tromey <tromey@redhat.com>
78
79 * target-delegates.c: Rebuild.
80 * target.c (update_current_target): Don't inherit or default
81 to_get_bookmark.
82 (dummy_get_bookmark): Remove.
83 (init_dummy_target): Don't inherit or default to_get_bookmark.
84 * target.h (struct target_ops) <to_get_bookmark>: Use
85 TARGET_DEFAULT_NORETURN
86
87 2014-02-19 Tom Tromey <tromey@redhat.com>
88
89 * target-delegates.c: Rebuild.
90 * target.c (update_current_target): Don't inherit or default
91 to_make_corefile_notes.
92 (init_dummy_target): Don't initialize to_make_corefile_notes.
93 * target.h (struct target_ops) <to_make_corefile_notes>: Use
94 TARGET_DEFAULT_FUNC.
95
96 2014-02-19 Tom Tromey <tromey@redhat.com>
97
98 * target-delegates.c: Rebuild.
99 * target.c (update_current_target): Don't inherit or default
100 to_find_memory_regions.
101 (init_dummy_target): Don't initialize to_find_memory_regions.
102 * target.h (struct target_ops) <to_find_memory_regions>: Use
103 TARGET_DEFAULT_FUNC.
104
105 2014-02-19 Tom Tromey <tromey@redhat.com>
106
107 * target-delegates.c: Rebuild.
108 * target.c (update_current_target): Don't inherit or default
109 to_log_command.
110 * target.h (struct target_ops) <to_log_command>: Use
111 TARGET_DEFAULT_IGNORE.
112 (target_log_command): Unconditionally delegate.
113
114 2014-02-19 Tom Tromey <tromey@redhat.com>
115
116 * target-delegates.c: Rebuild.
117 * target.c (update_current_target): Don't inherit or default
118 to_pid_to_exec_file.
119 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
120 TARGET_DEFAULT_RETURN.
121
122 2014-02-19 Tom Tromey <tromey@redhat.com>
123
124 * target-delegates.c: Rebuild.
125 * target.c (update_current_target): Don't inherit or default
126 to_thread_name.
127 (target_thread_name): Unconditionally delegate.
128 * target.h (struct target_ops) <to_thread_name>: Use
129 TARGET_DEFAULT_RETURN.
130
131 2014-02-19 Tom Tromey <tromey@redhat.com>
132
133 * target-delegates.c: Rebuild.
134 * target.c (update_current_target): Don't inherit or default
135 to_extra_thread_info.
136 * target.h (struct target_ops) <to_extra_thread_info>: Use
137 TARGET_DEFAULT_RETURN.
138
139 2014-02-19 Tom Tromey <tromey@redhat.com>
140
141 * target-delegates.c: Rebuild.
142 * target.c (update_current_target): Don't inherit or default
143 to_has_exited.
144 * target.h (struct target_ops) <to_has_exited>: Use
145 TARGET_DEFAULT_RETURN..
146
147 2014-02-19 Tom Tromey <tromey@redhat.com>
148
149 * target-delegates.c: Rebuild.
150 * target.c (update_current_target): Don't inherit or default
151 to_set_syscall_catchpoint.
152 (return_one): Remove.
153 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
154 TARGET_DEFAULT_RETURN.
155
156 2014-02-19 Tom Tromey <tromey@redhat.com>
157
158 * target-delegates.c: Rebuild.
159 * target.c (update_current_target): Don't inherit or default
160 to_insert_exec_catchpoint.
161 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
162 TARGET_DEFAULT_RETURN.
163
164 2014-01-08 Tom Tromey <tromey@redhat.com>
165
166 * target-delegates.c: Rebuild.
167 * target.c (update_current_target): Don't inherit or default
168 to_insert_exec_catchpoint.
169 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
170 TARGET_DEFAULT_RETURN.
171
172 2014-02-19 Tom Tromey <tromey@redhat.com>
173
174 * target-delegates.c: Rebuild.
175 * target.c (update_current_target): Don't inherit or default
176 to_remove_vfork_catchpoint.
177 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
178 TARGET_DEFAULT_RETURN.
179
180 2014-02-19 Tom Tromey <tromey@redhat.com>
181
182 * target-delegates.c: Rebuild.
183 * target.c (update_current_target): Don't inherit or default
184 to_insert_vfork_catchpoint.
185 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
186 TARGET_DEFAULT_RETURN.
187
188 2014-02-19 Tom Tromey <tromey@redhat.com>
189
190 * target-delegates.c: Rebuild.
191 * target.c (update_current_target): Don't inherit or default
192 to_remove_fork_catchpoint.
193 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
194 TARGET_DEFAULT_RETURN.
195
196 2014-02-19 Tom Tromey <tromey@redhat.com>
197
198 * target-delegates.c: Rebuild.
199 * target.c (update_current_target): Don't inherit or default
200 to_insert_fork_catchpoint.
201 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
202 TARGET_DEFAULT_RETURN.
203
204 2014-02-19 Tom Tromey <tromey@redhat.com>
205
206 * target-delegates.c: Rebuild.
207 * target.c (update_current_target): Don't inherit or default
208 to_post_startup_inferior.
209 * target.h (struct target_ops) <to_post_startup_inferior>: Use
210 TARGET_DEFAULT_IGNORE.
211
212 2014-02-19 Tom Tromey <tromey@redhat.com>
213
214 * target-delegates.c: Rebuild.
215 * target.c (update_current_target): Don't inherit or default
216 to_load.
217 * target.h (struct target_ops) <to_load>: Use
218 TARGET_DEFAULT_NORETURN.
219
220 2014-02-19 Tom Tromey <tromey@redhat.com>
221
222 * target-delegates.c: Rebuild.
223 * target.c (update_current_target): Don't inherit or default
224 to_terminal_info.
225 * target.h (struct target_ops) <to_terminal_info>: Use
226 TARGET_DEFAULT_FUNC.
227
228 2014-02-19 Tom Tromey <tromey@redhat.com>
229
230 * target-delegates.c: Rebuild.
231 * target.c (update_current_target): Don't inherit or default
232 to_terminal_save_ours.
233 * target.h (struct target_ops) <to_terminal_save_ours>: Use
234 TARGET_DEFAULT_IGNORE.
235
236 2014-02-19 Tom Tromey <tromey@redhat.com>
237
238 * target-delegates.c: Rebuild.
239 * target.c (update_current_target): Don't inherit or default
240 to_terminal_ours.
241 * target.h (struct target_ops) <to_terminal_ours>: Use
242 TARGET_DEFAULT_IGNORE.
243
244 2014-02-19 Tom Tromey <tromey@redhat.com>
245
246 * target-delegates.c: Rebuild.
247 * target.c (update_current_target): Don't inherit or default
248 to_terminal_ours_for_output.
249 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
250 TARGET_DEFAULT_IGNORE.
251
252 2014-02-19 Tom Tromey <tromey@redhat.com>
253
254 * target-delegates.c: Rebuild.
255 * target.c (update_current_target): Don't inherit or default
256 to_terminal_inferior.
257 * target.h (struct target_ops) <to_terminal_inferior>: Use
258 TARGET_DEFAULT_IGNORE.
259
260 2014-02-19 Tom Tromey <tromey@redhat.com>
261
262 * target-delegates.c: Rebuild.
263 * target.c (update_current_target): Don't inherit or default
264 to_terminal_init.
265 * target.h (struct target_ops) <to_terminal_init>: Use
266 TARGET_DEFAULT_IGNORE.
267
268 2014-02-19 Tom Tromey <tromey@redhat.com>
269
270 * target-delegates.c: Rebuild.
271 * target.c (update_current_target): Don't inherit or default
272 to_can_accel_watchpoint_condition.
273 * target.h (struct target_ops)
274 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
275
276 2014-02-19 Tom Tromey <tromey@redhat.com>
277
278 * target-delegates.c: Rebuild.
279 * target.c (update_current_target): Don't inherit or default
280 to_region_ok_for_hw_watchpoint.
281 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
282 Use TARGET_DEFAULT_FUNC.
283
284 2014-02-19 Tom Tromey <tromey@redhat.com>
285
286 * target-delegates.c: Rebuild.
287 * target.c (update_current_target): Don't inherit or default
288 to_watchpoint_addr_within_range.
289 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
290 Use TARGET_DEFAULT_FUNC.
291
292 2014-02-19 Tom Tromey <tromey@redhat.com>
293
294 * target-delegates.c: Rebuild.
295 * target.c (update_current_target): Don't inherit or default
296 to_remove_watchpoint.
297 * target.h (struct target_ops) <to_remove_watchpoint>: Use
298 TARGET_DEFAULT_NORETURN.
299
300 2014-02-19 Tom Tromey <tromey@redhat.com>
301
302 * target-delegates.c: Rebuild.
303 * target.c (update_current_target): Don't inherit or default
304 to_insert_watchpoint.
305 * target.h (struct target_ops) <to_insert_watchpoint>: Use
306 TARGET_DEFAULT_RETURN.
307
308 2014-02-19 Tom Tromey <tromey@redhat.com>
309
310 * target-delegates.c: Rebuild.
311 * target.c (update_current_target): Don't inherit or default
312 to_remove_hw_breakpoint.
313 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
314 TARGET_DEFAULT_RETURN.
315
316 2014-02-19 Tom Tromey <tromey@redhat.com>
317
318 * target-delegates.c: Rebuild.
319 * target.c (update_current_target): Don't inherit or default
320 to_insert_hw_breakpoint.
321 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
322 TARGET_DEFAULT_RETURN.
323
324 2014-02-19 Tom Tromey <tromey@redhat.com>
325
326 * target-delegates.c: Rebuild.
327 * target.c (update_current_target): Don't inherit or default
328 to_can_use_hw_breakpoint.
329 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
330 TARGET_DEFAULT_RETURN.
331
332 2014-02-19 Tom Tromey <tromey@redhat.com>
333
334 * target-delegates.c: Rebuild.
335 * target.c (update_current_target): Don't inherit or default
336 to_files_info.
337 * target.h (struct target_ops) <to_files_info>: Use
338 TARGET_DEFAULT_IGNORE.
339
340 2014-02-19 Tom Tromey <tromey@redhat.com>
341
342 * target-delegates.c: Rebuild.
343 * target.c (update_current_target): Don't inherit or default
344 to_store.
345 * target.h (struct target_ops) <to_store>: Use
346 TARGET_DEFAULT_NORETURN.
347
348 2014-02-19 Tom Tromey <tromey@redhat.com>
349
350 * target-delegates.c: Rebuild.
351 * target.c (update_current_target): Don't inherit or default
352 to_post_attach.
353 * target.h (struct target_ops) <to_post_attach>: Use
354 TARGET_DEFAULT_IGNORE.
355
356 2014-02-19 Tom Tromey <tromey@redhat.com>
357
358 * target-delegates.c: Rebuild.
359 * target.c (update_current_target): Don't inherit or default
360 to_rcmd.
361 (default_rcmd): New function.
362 (do_monitor_command): Unconditionally delegate.
363 * target.h (struct target_ops) <to_rmcd>: Use
364 TARGET_DEFAULT_FUNC.
365
366 2014-02-19 Tom Tromey <tromey@redhat.com>
367
368 * target-delegates.c: Rebuild.
369 * target.c (init_dummy_target): Don't initialize to_attach.
370 (target_attach): Unconditionally delegate.
371 * target.h (struct target_ops) <to_attach>: Use
372 TARGET_DEFAULT_FUNC.
373
374 2014-02-19 Tom Tromey <tromey@redhat.com>
375
376 * target-delegates.c: Rebuild.
377 * target.c (target_detach): Unconditionally delegate.
378 (init_dummy_target): Don't initialize to_detach.
379 * target.h (struct target_ops) <to_detach>: Use
380 TARGET_DEFAULT_IGNORE.
381
382 2014-02-19 Tom Tromey <tromey@redhat.com>
383
384 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
385 Add argument.
386 (target_augmented_libraries_svr4_read): Add argument.
387 * target.c (update_current_target): Update.
388 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
389 argument.
390
391 2014-02-19 Tom Tromey <tromey@redhat.com>
392
393 * target.h (struct target_ops) <to_call_history_range>: Add
394 argument.
395 * target.c (target_call_history_range): Add argument.
396 * record-btrace.c (record_btrace_call_history_range): Add 'self'
397 argument.
398 (record_btrace_call_history_from): Update.
399
400 2014-02-19 Tom Tromey <tromey@redhat.com>
401
402 * target.h (struct target_ops) <to_call_history_from>: Add
403 argument.
404 * target.c (target_call_history_from): Add argument.
405 * record-btrace.c (record_btrace_call_history_from): Add 'self'
406 argument.
407
408 2014-02-19 Tom Tromey <tromey@redhat.com>
409
410 * target.h (struct target_ops) <to_call_history>: Add argument.
411 * target.c (target_call_history): Add argument.
412 * record-btrace.c (record_btrace_call_history): Add 'self'
413 argument.
414
415 2014-02-19 Tom Tromey <tromey@redhat.com>
416
417 * target.h (struct target_ops) <to_insn_history_range>: Add
418 argument.
419 * target.c (target_insn_history_range): Add argument.
420 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
421 argument.
422 (record_btrace_insn_history_from): Update.
423
424 2014-02-19 Tom Tromey <tromey@redhat.com>
425
426 * target.h (struct target_ops) <to_insn_history_from>: Add
427 argument.
428 * target.c (target_insn_history_from): Add argument.
429 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
430 argument.
431
432 2014-02-19 Tom Tromey <tromey@redhat.com>
433
434 * target.h (struct target_ops) <to_insn_history>: Add argument.
435 * target.c (target_insn_history): Add argument.
436 * record-btrace.c (record_btrace_insn_history): Add 'self'
437 argument.
438
439 2014-02-19 Tom Tromey <tromey@redhat.com>
440
441 * target.h (struct target_ops) <to_goto_record>: Add argument.
442 * target.c (target_goto_record): Add argument.
443 * record-full.c (record_full_goto): Add 'self' argument.
444 * record-btrace.c (record_btrace_goto): Add 'self' argument.
445
446 2014-02-19 Tom Tromey <tromey@redhat.com>
447
448 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
449 * target.c (target_goto_record_end): Add argument.
450 * record-full.c (record_full_goto_end): Add 'self' argument.
451 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
452
453 2014-02-19 Tom Tromey <tromey@redhat.com>
454
455 * target.h (struct target_ops) <to_goto_record_begin>: Add
456 argument.
457 * target.c (target_goto_record_begin): Add argument.
458 * record-full.c (record_full_goto_begin): Add 'self' argument.
459 * record-btrace.c (record_btrace_goto_begin): Add 'self'
460 argument.
461
462 2014-02-19 Tom Tromey <tromey@redhat.com>
463
464 * target.h (struct target_ops) <to_record_is_replaying>: Add
465 argument.
466 * target.c (target_record_is_replaying): Add argument.
467 * record-full.c (record_full_is_replaying): Add 'self' argument.
468 * record-btrace.c (record_btrace_is_replaying): Add 'self'
469 argument.
470 (record_btrace_xfer_partial, record_btrace_store_registers)
471 (record_btrace_prepare_to_store, record_btrace_resume)
472 (record_btrace_wait, record_btrace_decr_pc_after_break)
473 (record_btrace_find_new_threads, record_btrace_thread_alive):
474 Update.
475
476 2014-02-19 Tom Tromey <tromey@redhat.com>
477
478 * target.h (struct target_ops) <to_delete_record>: Add argument.
479 * target.c (target_delete_record): Add argument.
480 * record-full.c (record_full_delete): Add 'self' argument.
481
482 2014-02-19 Tom Tromey <tromey@redhat.com>
483
484 * target.h (struct target_ops) <to_save_record>: Add argument.
485 * target.c (target_save_record): Add argument.
486 * record-full.c (record_full_save): Add 'self' argument.
487 (record_full_save): Add 'self' argument.
488
489 2014-02-19 Tom Tromey <tromey@redhat.com>
490
491 * target.h (struct target_ops) <to_info_record>: Add argument.
492 * target.c (target_info_record): Add argument.
493 * record.c (info_record_command): Add argument.
494 * record-full.c (record_full_info): Add 'self' argument.
495 * record-btrace.c (record_btrace_info): Add 'self' argument.
496
497 2014-02-19 Tom Tromey <tromey@redhat.com>
498
499 * target.h (struct target_ops) <to_stop_recording>: Add argument.
500 * target.c (target_stop_recording): Add argument.
501 * record.c (record_stop): Add argument.
502 * record-btrace.c (record_btrace_stop_recording): Add 'self'
503 argument.
504
505 2014-02-19 Tom Tromey <tromey@redhat.com>
506
507 * target.h (struct target_ops) <to_read_btrace>: Add argument.
508 * target.c (struct target_ops) <to_read_btrace>: Add argument.
509 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
510 argument.
511 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
512 (_initialize_amd64_linux_nat): Use it.
513 * i386-linux-nat.c (i386_linux_read_btrace): New function.
514 (_initialize_i386_linux_nat): Use it.
515
516 2014-02-19 Tom Tromey <tromey@redhat.com>
517
518 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
519 * target.c (target_teardown_btrace): Add argument.
520 * remote.c (remote_teardown_btrace): Add 'self' argument.
521 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
522 argument.
523 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
524 argument.
525
526 2014-02-19 Tom Tromey <tromey@redhat.com>
527
528 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
529 * target.c (target_disable_btrace): Add argument.
530 * remote.c (remote_disable_btrace): Add 'self' argument.
531 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
532 argument.
533 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
534 argument.
535
536 2014-02-19 Tom Tromey <tromey@redhat.com>
537
538 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
539 * target.c (target_enable_btrace): Add argument.
540 * remote.c (remote_enable_btrace): Add 'self' argument.
541 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
542 argument.
543 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
544 argument.
545
546 2014-02-19 Tom Tromey <tromey@redhat.com>
547
548 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
549 (target_can_use_agent): Add argument.
550 * target.c (update_current_target): Update.
551 * remote.c (remote_can_use_agent): Add 'self' argument.
552 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
553
554 2014-02-19 Tom Tromey <tromey@redhat.com>
555
556 * target.h (struct target_ops) <to_use_agent>: Add argument.
557 (target_use_agent): Add argument.
558 * target.c (update_current_target): Update.
559 * remote.c (remote_use_agent): Add 'self' argument.
560 * inf-child.c (inf_child_use_agent): Add 'self' argument.
561
562 2014-02-19 Tom Tromey <tromey@redhat.com>
563
564 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
565 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
566 (target_traceframe_info): Add argument.
567 * target.c (update_current_target): Update.
568 * remote.c (remote_traceframe_info): Add 'self' argument.
569 * ctf.c (ctf_traceframe_info): Add 'self' argument.
570
571 2014-02-19 Tom Tromey <tromey@redhat.com>
572
573 * target.h (target_static_tracepoint_markers_by_strid): Add
574 argument.
575 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
576 'self' argument.
577 * target.c (update_current_target): Update.
578 * remote.c (struct target_ops)
579 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
580 * linux-nat.c (struct target_ops)
581 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
582
583 2014-02-19 Tom Tromey <tromey@redhat.com>
584
585 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
586 Add argument.
587 (target_static_tracepoint_marker_at): Add argument.
588 * target.c (update_current_target): Update.
589 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
590 argument.
591
592 2014-02-19 Tom Tromey <tromey@redhat.com>
593
594 * target.h (struct target_ops) <to_set_permissions>: Add argument.
595 (target_set_permissions): Add argument.
596 * target.c (update_current_target): Update.
597 * remote.c (remote_set_permissions): Add 'self' argument.
598 (remote_start_remote): Update.
599
600 2014-02-19 Tom Tromey <tromey@redhat.com>
601
602 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
603 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
604 (target_get_tib_address): Add argument.
605 * target.c (update_current_target): Update.
606 * remote.c (remote_get_tib_address): Add 'self' argument.
607
608 2014-02-19 Tom Tromey <tromey@redhat.com>
609
610 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
611 (target_set_trace_notes): Add argument.
612 * target.c (update_current_target): Update.
613 * remote.c (remote_set_trace_notes): Add 'self' argument.
614
615 2014-02-19 Tom Tromey <tromey@redhat.com>
616
617 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
618 argument.
619 (target_set_trace_buffer_size): Add argument.
620 * target.c (update_current_target): Update.
621 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
622
623 2014-02-19 Tom Tromey <tromey@redhat.com>
624
625 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
626 argument.
627 (target_set_circular_trace_buffer): Add argument.
628 * target.c (update_current_target): Update.
629 * remote.c (remote_set_circular_trace_buffer): Add 'self'
630 argument.
631
632 2014-02-19 Tom Tromey <tromey@redhat.com>
633
634 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
635 argument.
636 (target_set_disconnected_tracing): Add argument.
637 * target.c (update_current_target): Update.
638 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
639
640 2014-02-19 Tom Tromey <tromey@redhat.com>
641
642 * target.h (struct target_ops)
643 <to_get_min_fast_tracepoint_insn_len>: Add argument.
644 (target_get_min_fast_tracepoint_insn_len): Add argument.
645 * target.c (update_current_target): Update.
646 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
647 argument.
648
649 2014-02-19 Tom Tromey <tromey@redhat.com>
650
651 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
652 argument.
653 (target_get_raw_trace_data): Add argument.
654 * target.c (update_current_target): Update.
655 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
656
657 2014-02-19 Tom Tromey <tromey@redhat.com>
658
659 * target.h (struct target_ops) <to_upload_trace_state_variables>:
660 Add argument.
661 (target_upload_trace_state_variables): Add argument.
662 * target.c (update_current_target): Update.
663 * remote.c (remote_upload_trace_state_variables): Add 'self'
664 argument.
665 (remote_start_remote): Update.
666
667 2014-02-19 Tom Tromey <tromey@redhat.com>
668
669 * target.h (struct target_ops) <to_upload_tracepoints>: Add
670 argument.
671 (target_upload_tracepoints): Add argument.
672 * target.c (update_current_target): Update.
673 * remote.c (remote_upload_tracepoints): Add 'self' argument.
674 (remote_start_remote): Update.
675
676 2014-02-19 Tom Tromey <tromey@redhat.com>
677
678 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
679 (target_save_trace_data): Add argument.
680 * target.c (update_current_target): Update.
681 * remote.c (remote_save_trace_data): Add 'self' argument.
682
683 2014-02-19 Tom Tromey <tromey@redhat.com>
684
685 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
686 argument.
687 * target.h (struct target_ops)
688 <to_get_trace_state_variable_value>: Add argument.
689 (target_get_trace_state_variable_value): Add argument.
690 * target.c (update_current_target): Update.
691 * remote.c (remote_get_trace_state_variable_value): Add 'self'
692 argument.
693 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
694
695 2014-02-19 Tom Tromey <tromey@redhat.com>
696
697 * tracepoint.c (tfile_trace_find): Add 'self' argument.
698 * target.h (struct target_ops) <to_trace_find>: Add argument.
699 (target_trace_find): Add argument.
700 * target.c (update_current_target): Update.
701 * remote.c (remote_trace_find): Add 'self' argument.
702 * ctf.c (ctf_trace_find): Add 'self' argument.
703
704 2014-02-19 Tom Tromey <tromey@redhat.com>
705
706 * target.h (struct target_ops) <to_trace_stop>: Add argument.
707 (target_trace_stop): Add argument.
708 * target.c (update_current_target): Update.
709 * remote.c (remote_trace_stop): Add 'self' argument.
710
711 2014-02-19 Tom Tromey <tromey@redhat.com>
712
713 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
714 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
715 argument.
716 (target_get_tracepoint_status): Add argument.
717 * target.c (update_current_target): Update.
718 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
719
720 2014-02-19 Tom Tromey <tromey@redhat.com>
721
722 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
723 * target.h (struct target_ops) <to_get_trace_status>: Add
724 argument.
725 (target_get_trace_status): Add argument.
726 * target.c (update_current_target): Update.
727 * remote.c (remote_get_trace_status): Add 'self' argument.
728 (remote_start_remote, remote_can_download_tracepoint): Update.
729 * ctf.c (ctf_get_trace_status): Add 'self' argument.
730
731 2014-02-19 Tom Tromey <tromey@redhat.com>
732
733 * target.h (struct target_ops) <to_trace_start>: Add argument.
734 (target_trace_start): Add argument.
735 * target.c (update_current_target): Update.
736 * remote.c (remote_trace_start): Add 'self' argument.
737
738 2014-02-19 Tom Tromey <tromey@redhat.com>
739
740 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
741 Add argument.
742 (target_trace_set_readonly_regions): Add argument.
743 * target.c (update_current_target): Update.
744 * remote.c (remote_trace_set_readonly_regions): Add 'self'
745 argument.
746
747 2014-02-19 Tom Tromey <tromey@redhat.com>
748
749 * target.h (struct target_ops) <to_disable_tracepoint>: Add
750 argument.
751 (target_disable_tracepoint): Add argument.
752 * target.c (update_current_target): Update.
753 * remote.c (remote_disable_tracepoint): Add 'self' argument.
754
755 2014-02-19 Tom Tromey <tromey@redhat.com>
756
757 * target.h (struct target_ops) <to_enable_tracepoint>: Add
758 argument.
759 (target_enable_tracepoint): Add argument.
760 * target.c (update_current_target): Update.
761 * remote.c (remote_enable_tracepoint): Add 'self' argument.
762
763 2014-02-19 Tom Tromey <tromey@redhat.com>
764
765 * target.h (struct target_ops) <to_download_trace_state_variable>:
766 Add argument.
767 (target_download_trace_state_variable): Add argument.
768 * target.c (update_current_target): Update.
769 * remote.c (remote_download_trace_state_variable): Add 'self'
770 argument.
771
772 2014-02-19 Tom Tromey <tromey@redhat.com>
773
774 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
775 argument.
776 (target_can_download_tracepoint): Add argument.
777 * target.c (update_current_target): Update.
778 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
779
780 2014-02-19 Tom Tromey <tromey@redhat.com>
781
782 * target.h (struct target_ops) <to_download_tracepoint>: Add
783 argument.
784 (target_download_tracepoint): Add argument.
785 * target.c (update_current_target): Update.
786 * remote.c (remote_download_tracepoint): Add 'self' argument.
787
788 2014-02-19 Tom Tromey <tromey@redhat.com>
789
790 * target.h (struct target_ops) <to_trace_init>: Add argument.
791 (target_trace_init): Add argument.
792 * target.c (update_current_target): Update.
793 * remote.c (remote_trace_init): Add 'self' argument.
794
795 2014-02-19 Tom Tromey <tromey@redhat.com>
796
797 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
798 * target.c (target_fileio_readlink): Add argument.
799 * remote.c (remote_hostio_readlink): Add 'self' argument.
800 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
801
802 2014-02-19 Tom Tromey <tromey@redhat.com>
803
804 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
805 * target.c (target_fileio_unlink): Add argument.
806 * remote.c (remote_hostio_unlink): Add 'self' argument.
807 (remote_file_delete): Update.
808 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
809
810 2014-02-19 Tom Tromey <tromey@redhat.com>
811
812 * target.h (struct target_ops) <to_fileio_close>: Add argument.
813 * target.c (target_fileio_close): Add argument.
814 * remote.c (remote_hostio_close): Add 'self' argument.
815 (remote_hostio_close_cleanup): Update.
816 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
817 Update.
818 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
819
820 2014-02-19 Tom Tromey <tromey@redhat.com>
821
822 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
823 * target.c (target_fileio_pread): Add argument.
824 * remote.c (remote_hostio_pread): Add 'self' argument.
825 (remote_bfd_iovec_pread, remote_file_get): Update.
826 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
827
828 2014-02-19 Tom Tromey <tromey@redhat.com>
829
830 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
831 * target.c (target_fileio_pwrite): Add argument.
832 * remote.c (remote_hostio_pwrite): Add 'self' argument.
833 (remote_file_put): Update.
834 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
835
836 2014-02-19 Tom Tromey <tromey@redhat.com>
837
838 * target.h (struct target_ops) <to_fileio_open>: Add argument.
839 * target.c (target_fileio_open): Add argument.
840 * remote.c (remote_hostio_open): Add 'self' argument.
841 (remote_bfd_iovec_open): Add 'self' argument.
842 (remote_file_put): Add 'self' argument.
843 (remote_file_get): Add 'self' argument.
844 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
845
846 2014-02-19 Tom Tromey <tromey@redhat.com>
847
848 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
849 Add argument.
850 (target_can_run_breakpoint_commands): Add argument.
851 * target.c (update_current_target): Update.
852 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
853 argument.
854 (remote_insert_breakpoint): Add 'self' argument.
855 (remote_insert_hw_breakpoint): Add 'self' argument.
856 (remote_can_run_breakpoint_commands): Add 'self' argument.
857
858 2014-02-19 Tom Tromey <tromey@redhat.com>
859
860 * target.h (struct target_ops)
861 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
862 (target_supports_evaluation_of_breakpoint_conditions): Add
863 argument.
864 * target.c (update_current_target): Update.
865 * remote.c (remote_supports_cond_breakpoints): Add 'self'
866 argument.
867 (remote_insert_breakpoint): Add 'self' argument.
868 (remote_insert_hw_breakpoint): Add 'self' argument.
869 (remote_supports_cond_breakpoints): Add 'self' argument.
870
871 2014-02-19 Tom Tromey <tromey@redhat.com>
872
873 * target.h (struct target_ops) <to_supports_string_tracing>: Add
874 argument.
875 (target_supports_string_tracing): Add argument.
876 * target.c (update_current_target): Update.
877 * remote.c (remote_supports_string_tracing): Add 'self' argument.
878
879 2014-02-19 Tom Tromey <tromey@redhat.com>
880
881 * target.h (struct target_ops)
882 <to_supports_disable_randomization>: Add argument.
883 * target.c (find_default_supports_disable_randomization): Add
884 argument.
885 (target_supports_disable_randomization): Add argument.
886 (find_default_supports_disable_randomization): Add 'self'
887 argument.
888 * remote.c (extended_remote_supports_disable_randomization): Add
889 'self' argument.
890 (remote_supports_disable_randomization): Add 'self' argument.
891 (extended_remote_create_inferior): Update.
892 * linux-nat.c (linux_nat_supports_disable_randomization): Add
893 'self' argument.
894
895 2014-02-19 Tom Tromey <tromey@redhat.com>
896
897 * target.h (struct target_ops)
898 <to_supports_enable_disable_tracepoint>: Add argument.
899 (target_supports_enable_disable_tracepoint): Add argument.
900 * target.c (update_current_target): Update.
901 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
902 argument.
903
904 2014-02-19 Tom Tromey <tromey@redhat.com>
905
906 * target.h (struct target_ops) <to_supports_multi_process>: Add
907 argument.
908 (target_supports_multi_process): Add argument.
909 * target.c (update_current_target): Update.
910 * remote.c (remote_supports_multi_process): Add 'self' argument.
911 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
912 argument.
913 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
914 argument.
915
916 2014-02-19 Tom Tromey <tromey@redhat.com>
917
918 * target.h (struct target_ops) <to_execution_direction>: Add
919 argument.
920 (target_execution_direction): Add argument.
921 * target.c (default_execution_direction): Add 'self' argument.
922 * record-full.c (record_full_execution_direction): Add 'self'
923 argument.
924
925 2014-02-19 Tom Tromey <tromey@redhat.com>
926
927 * target.h (struct target_ops) <to_can_execute_reverse>: Add
928 argument.
929 (target_can_execute_reverse): Add argument.
930 * remote.c (remote_can_execute_reverse): Add 'self' argument.
931 * record-full.c (record_full_can_execute_reverse): Add 'self'
932 argument.
933 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
934 argument.
935
936 2014-02-19 Tom Tromey <tromey@redhat.com>
937
938 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
939 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
940 argument.
941 (target_get_ada_task_ptid): Add argument.
942 * target.c (update_current_target): Update.
943 (default_get_ada_task_ptid): Add 'self' argument.
944 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
945 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
946 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
947 argument.
948 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
949 argument.
950 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
951 argument.
952 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
953 argument.
954 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
955 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
956 argument.
957
958 2014-02-19 Tom Tromey <tromey@redhat.com>
959
960 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
961 (target_goto_bookmark): Add argument.
962 * target.c (dummy_goto_bookmark): Add 'self' argument.
963 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
964
965 2014-02-19 Tom Tromey <tromey@redhat.com>
966
967 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
968 (target_get_bookmark): Add argument.
969 * target.c (dummy_get_bookmark): Add 'self' argument.
970 * record-full.c (record_full_get_bookmark): Add 'self' argument.
971
972 2014-02-19 Tom Tromey <tromey@redhat.com>
973
974 * target.h (struct target_ops) <to_make_corefile_notes>: Add
975 argument.
976 (target_make_corefile_notes): Add argument.
977 * target.c (dummy_make_corefile_notes): Add 'self' argument.
978 * procfs.c (procfs_make_note_section): Add 'self' argument.
979 (procfs_make_note_section): Add 'self' argument.
980 (procfs_make_note_section): Add 'self' argument.
981 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
982 argument.
983 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
984 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
985 * exec.c (exec_make_note_section): Add 'self' argument.
986 (exec_make_note_section): Add 'self' argument.
987
988 2014-02-19 Tom Tromey <tromey@redhat.com>
989
990 * target.h (struct target_ops) <to_find_memory_regions>: Add
991 argument.
992 (target_find_memory_regions): Add argument.
993 * target.c (dummy_find_memory_regions): Add 'self' argument.
994 * procfs.c (proc_find_memory_regions): Add 'self' argument.
995 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
996 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
997 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
998 * exec. (exec_do_find_memory_regions): New global.
999 (exec_set_find_memory_regions): Rewrite.
1000 (exec_find_memory_regions): New function.
1001 (init_exec_ops): Use exec_find_memory_regions.
1002
1003 2014-02-19 Tom Tromey <tromey@redhat.com>
1004
1005 * target.h (struct target_ops) <to_supports_non_stop>: Add
1006 argument.
1007 * target.c (find_default_supports_non_stop): Add argument.
1008 (target_supports_non_stop): Add argument.
1009 (find_default_supports_non_stop): Add 'self' argument.
1010 * remote.c (remote_supports_non_stop): Add 'self' argument.
1011 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
1012
1013 2014-02-19 Tom Tromey <tromey@redhat.com>
1014
1015 * target.h (struct target_ops) <to_log_command>: Add argument.
1016 (target_log_command): Add argument.
1017 * serial.h (serial_log_command): Add 'self' argument.
1018 * serial.c (serial_log_command): Add 'self' argument.
1019
1020 2014-02-19 Tom Tromey <tromey@redhat.com>
1021
1022 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
1023 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
1024 argument.
1025 (target_pid_to_exec_file): Add argument.
1026 * target.c (debug_to_pid_to_exec_file): Add argument.
1027 (update_current_target): Update.
1028 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
1029 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
1030 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
1031 (linux_handle_extended_wait): Update.
1032 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
1033 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
1034 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
1035 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
1036
1037 2014-02-19 Tom Tromey <tromey@redhat.com>
1038
1039 * target.h (struct target_ops) <to_rcmd>: Add argument.
1040 (target_rcmd): Add argument.
1041 * target.c (debug_to_rcmd): Add argument.
1042 (update_current_target, do_monitor_command): Update.
1043 * remote.c (remote_rcmd): Add 'self' argument.
1044 * monitor.c (monitor_rcmd): Add 'self' argument.
1045
1046 2014-02-19 Tom Tromey <tromey@redhat.com>
1047
1048 * windows-nat.c (windows_stop): Add 'self' argument.
1049 * target.h (struct target_ops) <to_stop>: Add argument.
1050 * target.c (target_stop): Add argument.
1051 (debug_to_stop): Add argument.
1052 (update_current_target): Update.
1053 * remote.c (remote_stop): Add 'self' argument.
1054 * remote-sim.c (gdbsim_stop): Add 'self' argument.
1055 (gdbsim_cntrl_c): Update.
1056 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
1057 * procfs.c (procfs_stop): Add 'self' argument.
1058 * nto-procfs.c (procfs_stop): Add 'self' argument.
1059 * monitor.c (monitor_stop): Add 'self' argument.
1060 (monitor_open): Update.
1061 * linux-nat.c (linux_nat_stop): Add argument.
1062 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
1063 * gnu-nat.c (gnu_stop): Add 'self' argument.
1064 * darwin-nat.c (darwin_stop): Add 'self' argument.
1065
1066 2014-02-19 Tom Tromey <tromey@redhat.com>
1067
1068 * target.h (struct target_ops) <to_thread_name>: Add argument.
1069 * target.c (target_thread_name): Add argument.
1070 (update_current_target): Update.
1071 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
1072
1073 2014-02-19 Tom Tromey <tromey@redhat.com>
1074
1075 * target.h (struct target_ops) <to_extra_thread_info>: Add
1076 argument.
1077 (target_extra_thread_info): Add argument.
1078 * target.c (update_current_target): Update.
1079 * remote.c (remote_threads_extra_info): Add 'self' argument.
1080 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
1081 argument.
1082 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
1083 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
1084 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
1085 argument.
1086 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
1087 argument.
1088 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
1089 argument.
1090 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
1091 argument.
1092
1093 2014-02-19 Tom Tromey <tromey@redhat.com>
1094
1095 * target.h (struct target_ops) <to_program_signals>: Add argument.
1096 * target.c (target_program_signals): Add argument.
1097 * remote.c (remote_program_signals): Add 'self' argument.
1098
1099 2014-02-19 Tom Tromey <tromey@redhat.com>
1100
1101 * target.h (struct target_ops) <to_pass_signals>: Add argument.
1102 * target.c (target_pass_signals): Add argument.
1103 * remote.c (remote_pass_signals): Add 'self' argument.
1104 (remote_start_remote): Update.
1105 * procfs.c (procfs_pass_signals): Add 'self' argument.
1106 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
1107 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
1108 (linux_nat_create_inferior, linux_nat_attach): Update.
1109
1110 2014-02-19 Tom Tromey <tromey@redhat.com>
1111
1112 * windows-nat.c (windows_can_run): Add 'self' argument.
1113 * target.h (struct target_ops) <to_can_run>: Add argument.
1114 (target_can_run): Add argument.
1115 * target.c (debug_to_can_run): Add argument.
1116 (update_current_target): Update.
1117 * nto-procfs.c (procfs_can_run): Add 'self' argument.
1118 * inf-child.c (inf_child_can_run): Add 'self' argument.
1119 * go32-nat.c (go32_can_run): Add 'self' argument.
1120
1121 2014-02-19 Tom Tromey <tromey@redhat.com>
1122
1123 * target.h (struct target_ops) <to_has_exited>: Add argument.
1124 (target_has_exited): Add argument.
1125 * target.c (debug_to_has_exited): Add argument.
1126 (update_current_target): Update.
1127
1128 2014-02-19 Tom Tromey <tromey@redhat.com>
1129
1130 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
1131 argument.
1132 (target_set_syscall_catchpoint): Add argument.
1133 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
1134 argument.
1135 * target.c (update_current_target): Update.
1136
1137 2014-02-19 Tom Tromey <tromey@redhat.com>
1138
1139 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
1140 argument.
1141 (target_remove_exec_catchpoint): Add argument.
1142 * target.c (debug_to_remove_exec_catchpoint): Add argument.
1143 (update_current_target): Update.
1144 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
1145 argument.
1146
1147 2014-02-19 Tom Tromey <tromey@redhat.com>
1148
1149 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
1150 argument.
1151 (target_insert_exec_catchpoint): Add argument.
1152 * target.c (debug_to_insert_exec_catchpoint): Add argument.
1153 (update_current_target): Update.
1154 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
1155 argument.
1156
1157 2014-02-19 Tom Tromey <tromey@redhat.com>
1158
1159 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
1160 argument.
1161 (target_remove_vfork_catchpoint): Add argument.
1162 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
1163 (update_current_target): Update.
1164 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
1165 argument.
1166
1167 2014-02-19 Tom Tromey <tromey@redhat.com>
1168
1169 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
1170 argument.
1171 (target_insert_vfork_catchpoint): Add argument.
1172 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
1173 (update_current_target): Update.
1174 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
1175 argument.
1176
1177 2014-02-19 Tom Tromey <tromey@redhat.com>
1178
1179 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
1180 argument.
1181 (target_remove_fork_catchpoint): Add argument.
1182 * target.c (debug_to_remove_fork_catchpoint): Add argument.
1183 (update_current_target): Update.
1184 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
1185 argument.
1186
1187 2014-02-19 Tom Tromey <tromey@redhat.com>
1188
1189 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
1190 argument.
1191 (target_insert_fork_catchpoint): Add argument.
1192 * target.c (debug_to_insert_fork_catchpoint): Add argument.
1193 (update_current_target): Update.
1194 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
1195 argument.
1196
1197 2014-02-19 Tom Tromey <tromey@redhat.com>
1198
1199 * target.h (struct target_ops) <to_post_startup_inferior>: Add
1200 argument.
1201 (target_post_startup_inferior): Add argument.
1202 * target.c (debug_to_post_startup_inferior): Add argument.
1203 (update_current_target): Update.
1204 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
1205 argument.
1206 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
1207 argument.
1208 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
1209 argument.
1210 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
1211 argument.
1212 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
1213 'self' argument.
1214 (super_post_startup_inferior): Likewise.
1215 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
1216 'self' argument.
1217 (super_post_startup_inferior): Likewise.
1218 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
1219 Add 'self' argument.
1220 (super_post_startup_inferior): Likewise.
1221
1222 2014-02-19 Tom Tromey <tromey@redhat.com>
1223
1224 * target.h (struct target_ops) <to_load>: Add argument.
1225 * target.c (target_load): Add argument.
1226 (debug_to_load): Add argument.
1227 (update_current_target): Update.
1228 * remote.c (remote_load): Add 'self' argument.
1229 * remote-sim.c (gdbsim_load): Add 'self' argument.
1230 * remote-mips.c (mips_load): Add 'self' argument.
1231 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
1232 * monitor.c (monitor_load): Add 'self' argument.
1233 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
1234
1235 2014-02-19 Tom Tromey <tromey@redhat.com>
1236
1237 * target.h (struct target_ops) <to_terminal_info>: Add argument.
1238 (target_terminal_info): Add argument.
1239 * target.c (debug_to_terminal_info): Add argument.
1240 (default_terminal_info): Likewise.
1241 * inflow.c (child_terminal_info): Add 'self' argument.
1242 * inferior.h (child_terminal_info): Add 'self' argument.
1243 * go32-nat.c (go32_terminal_info): Add 'self' argument.
1244
1245 2014-02-19 Tom Tromey <tromey@redhat.com>
1246
1247 * target.h (struct target_ops) <to_terminal_save_ours>: Add
1248 argument.
1249 (target_terminal_save_ours): Add argument.
1250 * target.c (debug_to_terminal_save_ours): Add argument.
1251 (update_current_target): Update.
1252 * inflow.c (terminal_save_ours): Add 'self' argument.
1253 * inferior.h (terminal_save_ours): Add 'self' argument.
1254
1255 2014-02-19 Tom Tromey <tromey@redhat.com>
1256
1257 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
1258 (target_terminal_ours): Add argument.
1259 * target.c (debug_to_terminal_ours): Add argument.
1260 (update_current_target): Update.
1261 * remote.c (remote_terminal_ours): Add 'self' argument.
1262 (remote_close): Update.
1263 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
1264 * inflow.c (terminal_ours): Add 'self' argument.
1265 * inferior.h (terminal_ours): Add 'self' argument.
1266 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1267
1268 2014-02-19 Pedro Alves <palves@redhat.com>
1269 Tom Tromey <tromey@redhat.com>
1270
1271 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
1272 argument.
1273 (target_terminal_ours_for_output): Add argument.
1274 * target.c (debug_to_terminal_ours_for_output): Add argument.
1275 (update_current_target): Update.
1276 * inflow.c (terminal_ours_for_output): Add 'self' argument.
1277 * inferior.h (terminal_ours_for_output): Add 'self' argument.
1278 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
1279
1280 2014-02-19 Tom Tromey <tromey@redhat.com>
1281
1282 * target.h (struct target_ops) <to_terminal_inferior>: Add
1283 argument.
1284 * target.c (target_terminal_inferior): Add argument.
1285 (update_current_target): Update.
1286 * remote.c (remote_terminal_inferior): Add 'self' argument.
1287 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
1288 * inflow.c (terminal_inferior): Add 'self' argument.
1289 * inferior.h (terminal_inferior): Add 'self' argument.
1290 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
1291 (go32_terminal_inferior): Add 'self' argument.
1292
1293 2014-02-19 Tom Tromey <tromey@redhat.com>
1294
1295 * target.h (struct target_ops) <to_terminal_init>: Add argument.
1296 (target_terminal_init): Add argument.
1297 * target.c (debug_to_terminal_init): Add argument.
1298 (update_current_target): Update.
1299 * inflow.c (terminal_init_inferior): Add 'self' argument.
1300 * inferior.h (terminal_init_inferior): Add 'self' argument.
1301 * go32-nat.c (go32_terminal_init): Add 'self' argument.
1302 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
1303
1304 2014-02-19 Tom Tromey <tromey@redhat.com>
1305
1306 * target.h (struct target_ops)
1307 <to_can_accel_watchpoint_condition>: Add argument.
1308 (target_can_accel_watchpoint_condition): Add argument.
1309 * target.c (debug_to_can_accel_watchpoint_condition): Add
1310 argument.
1311 (update_current_target): Update.
1312 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
1313 'self' argument.
1314
1315 2014-02-19 Tom Tromey <tromey@redhat.com>
1316
1317 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
1318 Add argument.
1319 (target_region_ok_for_hw_watchpoint): Add argument.
1320 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
1321 (default_region_ok_for_hw_watchpoint): Add argument.
1322 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
1323 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
1324 argument.
1325 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
1326 argument.
1327 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
1328 argument.
1329 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
1330 'self' argument.
1331 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
1332 'self' argument.
1333 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
1334 'self' argument.
1335 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
1336 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
1337 'self' argument.
1338 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1339 Add 'self' argument.
1340
1341 2014-02-19 Tom Tromey <tromey@redhat.com>
1342
1343 * target.h (struct target_ops) <to_insert_watchpoint>: Add
1344 argument.
1345 (target_insert_watchpoint): Add argument.
1346 * target.c (debug_to_insert_watchpoint): Add argument.
1347 (update_current_target): Update.
1348 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
1349 * remote.c (remote_insert_watchpoint): Add 'self' argument.
1350 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
1351 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
1352 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
1353 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
1354 argument.
1355 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
1356 (procfs_insert_hw_watchpoint): Add 'self' argument.
1357 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
1358 argument.
1359 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
1360 argument.
1361 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
1362 argument.
1363 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
1364 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
1365 argument.
1366 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
1367 'self' argument.
1368
1369 2014-02-19 Tom Tromey <tromey@redhat.com>
1370
1371 * target.h (struct target_ops) <to_remove_watchpoint>: Add
1372 argument.
1373 (target_remove_watchpoint): Add argument.
1374 * target.c (debug_to_remove_watchpoint): Add argument.
1375 (update_current_target): Update.
1376 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
1377 * remote.c (remote_remove_watchpoint): Add 'self' argument.
1378 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
1379 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
1380 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
1381 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
1382 argument.
1383 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
1384 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
1385 argument.
1386 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
1387 argument.
1388 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
1389 argument.
1390 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
1391 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
1392 argument.
1393 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
1394 'self' argument.
1395
1396 2014-02-19 Tom Tromey <tromey@redhat.com>
1397
1398 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
1399 argument.
1400 (target_remove_hw_breakpoint): Add argument.
1401 * target.c (debug_to_remove_hw_breakpoint): Add argument.
1402 (update_current_target): Update.
1403 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
1404 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
1405 argument.
1406 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
1407 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
1408 argument.
1409 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
1410 'self' argument.
1411
1412 2014-02-19 Tom Tromey <tromey@redhat.com>
1413
1414 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
1415 argument.
1416 (target_insert_hw_breakpoint): Add argument.
1417 * target.c (debug_to_insert_hw_breakpoint): Add argument.
1418 (update_current_target): Update.
1419 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
1420 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
1421 argument.
1422 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
1423 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
1424 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
1425 argument.
1426 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
1427 'self' argument.
1428
1429 2014-02-19 Tom Tromey <tromey@redhat.com>
1430
1431 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
1432 argument.
1433 (target_can_use_hardware_watchpoint): Add argument.
1434 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
1435 (update_current_target): Update.
1436 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
1437 argument.
1438 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
1439 argument.
1440 * remote.c (remote_check_watch_resources): Add 'self' argument.
1441 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
1442 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
1443 argument.
1444 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
1445 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
1446 argument.
1447 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
1448 argument.
1449 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
1450 argument.
1451 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
1452 argument.
1453 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
1454 argument.
1455 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
1456 argument.
1457 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
1458 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
1459 argument.
1460 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
1461 'self' argument.
1462
1463 2014-02-19 Tom Tromey <tromey@redhat.com>
1464
1465 * target.h (struct target_ops) <to_post_attach>: Add argument.
1466 (target_post_attach): Add argument.
1467 * target.c (debug_to_post_attach): Add argument.
1468 (update_current_target): Update.
1469 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
1470 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
1471 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
1472 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
1473 * inf-child.c (inf_child_post_attach): Add 'self' argument.
1474
1475 2014-02-19 Tom Tromey <tromey@redhat.com>
1476
1477 * windows-nat.c (windows_close): Add 'self' argument.
1478 * tracepoint.c (tfile_close): Add 'self' argument.
1479 * target.h (struct target_ops) <to_close>: Add argument.
1480 * target.c (target_close): Add argument.
1481 (update_current_target): Update.
1482 * remote.c (remote_close): Add 'self' argument.
1483 * remote-sim.c (gdbsim_close): Add 'self' argument.
1484 * remote-mips.c (mips_close): Add 'self' argument.
1485 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
1486 * record-full.c (record_full_close): Add 'self' argument.
1487 * record-btrace.c (record_btrace_close): Add 'self' argument.
1488 * monitor.h (monitor_close): Add 'self' argument.
1489 * monitor.c (monitor_close): Add 'self' argument.
1490 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
1491 * linux-nat.c (linux_nat_close): Add argument.
1492 * go32-nat.c (go32_close): Add 'self' argument.
1493 * exec.c (exec_close_1): Add 'self' argument.
1494 * ctf.c (ctf_close): Add 'self' argument.
1495 * corelow.c (core_close): Add 'self' argument.
1496 (core_close_cleanup): Update.
1497 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
1498 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
1499
1500 2014-02-19 Tom Tromey <tromey@redhat.com>
1501
1502 * remote.c (remote_load): New function.
1503 (init_remote_ops): Use it.
1504
1505 2014-02-19 Tom Tromey <tromey@redhat.com>
1506
1507 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
1508 argument.
1509 * common/linux-btrace.h (linux_supports_btrace): Update.
1510 * remote.c (remote_supports_btrace): Add "self" argument.
1511 * target-delegates.c: Rebuild.
1512 * target.c (target_supports_btrace): Remove.
1513 * target.h (struct target_ops) <to_supports_btrace>: Add
1514 target_ops argument.
1515 (target_supports_btrace): New define.
1516
1517 2014-02-19 Tom Tromey <tromey@redhat.com>
1518
1519 * record-full.c (record_full_beneath_to_resume_ops)
1520 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
1521 (record_full_beneath_to_wait)
1522 (record_full_beneath_to_store_registers_ops)
1523 (record_full_beneath_to_store_registers)
1524 (record_full_beneath_to_xfer_partial_ops)
1525 (record_full_beneath_to_xfer_partial)
1526 (record_full_beneath_to_insert_breakpoint_ops)
1527 (record_full_beneath_to_insert_breakpoint)
1528 (record_full_beneath_to_remove_breakpoint_ops)
1529 (record_full_beneath_to_remove_breakpoint)
1530 (record_full_beneath_to_stopped_by_watchpoint)
1531 (record_full_beneath_to_stopped_data_address)
1532 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
1533 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
1534 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
1535 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
1536 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
1537 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
1538 (tmp_to_stopped_data_address, tmp_to_async): Remove.
1539 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
1540 (record_full_resume, record_full_wait_1)
1541 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
1542 (record_full_store_registers, record_full_xfer_partial)
1543 (record_full_insert_breakpoint, record_full_remove_breakpoint)
1544 (record_full_async, record_full_core_xfer_partial): Use target
1545 delegation.
1546 * target-delegates.c: Rebuild.
1547 * target.c (current_xfer_partial): Remove.
1548 (update_current_target): Do not INHERIT or de_fault
1549 to_insert_breakpoint, to_remove_breakpoint,
1550 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
1551 to_is_async_p, to_async. Do not set to_xfer_partial field.
1552 (default_xfer_partial): Simplify.
1553 (current_xfer_partial): Remove.
1554 (target_wait, target_resume): Simplify.
1555 (find_default_can_async_p, find_default_is_async_p): Update.
1556 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
1557 to_xfer_partial, to_stopped_by_watchpoint,
1558 to_stopped_data_address.
1559 (target_store_registers): Simplify.
1560 (forward_target_remove_breakpoint)
1561 (forward_target_insert_breakpoint): Remove.
1562 (target_remove_breakpoint, target_insert_breakpoint)
1563 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
1564 * target.h (struct target_ops) <to_resume, to_wait,
1565 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
1566 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
1567 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
1568 markup.
1569 (forward_target_remove_breakpoint)
1570 (forward_target_insert_breakpoint): Remove.
1571 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
1572 directly.
1573 (record_btrace_insert_breakpoint): Delegate directly.
1574
1575 2014-02-19 Tom Tromey <tromey@redhat.com>
1576
1577 PR build/7701:
1578 * target-delegates.c: New file.
1579 * target.c: Include target-delegates.c.
1580 (init_dummy_target): Call install_dummy_methods.
1581 (complete_target_initialization): Call install_delegators.
1582 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
1583 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
1584 * make-target-delegates: New file.
1585
1586 2014-02-19 Tom Tromey <tromey@redhat.com>
1587
1588 * record.c (find_record_target): Use find_target_at.
1589 * target.c (find_target_at): New function.
1590 * target.h (find_target_at): Declare.
1591
1592 2014-02-19 Tom Tromey <tromey@redhat.com>
1593
1594 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
1595 Add 'ops' argument.
1596 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
1597 'ops' argument.
1598 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
1599 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
1600 'ops' argument.
1601 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
1602 argument.
1603 * linux-nat.c (save_sigtrap): Update.
1604 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
1605 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
1606 (linux_nat_close): Update.
1607 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
1608 argument.
1609 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
1610 argument.
1611 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
1612 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
1613 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
1614 (tmp_to_async): Add 'ops' argument.
1615 (record_full_stopped_by_watchpoint, record_full_async)
1616 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
1617 argument.
1618 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
1619 (m32r_stopped_by_watchpoint): Add 'ops' argument.
1620 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
1621 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
1622 (remote_is_async_p, remote_async): Add 'ops' argument.
1623 (remote_stopped_data_address): Update.
1624 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
1625 * target.c (update_current_target)
1626 (find_default_can_async_p, find_default_is_async_p): Update.
1627 (init_dummy_target): Update.
1628 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
1629 * target.h (struct target_ops) <to_stopped_by_watchpoint,
1630 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
1631 (target_can_async_p, target_is_async_p, target_async)
1632 (target_stopped_by_watchpoint): Update.
1633
1634 2014-02-19 Yao Qi <yao@codesourcery.com>
1635
1636 PR gdb/16220
1637 * gdbarch.sh: Remove startup_gdbarch.
1638 * gdbarch.c: Regenerated.
1639 * gdbarch.h: Likewise.
1640
1641 2014-02-17 Kevin Buettner <kevinb@redhat.com>
1642
1643 * rl78-tdep.c (rl78_g10_register_name): New function.
1644 (rl78_return_value): Add g10 support.
1645 (rl78_gdbarch_init): Register rl78_g10_register_name for the
1646 g10.
1647
1648 2014-02-17 Doug Evans <xdje42@gmail.com>
1649
1650 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
1651 (SUBDIR_GUILE_SRCS): Ditto.
1652 (scm-gsmob.o): Ditto.
1653
1654 2014-02-17 Yao Qi <yao@codesourcery.com>
1655
1656 * gnu-nat.c (ILL_RPC): Declare defined function.
1657
1658 2014-02-17 Yao Qi <yao@codesourcery.com>
1659
1660 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
1661 mach_msg_type_number_t.
1662 (gnu_write_inferior): Likewise.
1663
1664 2014-02-17 Yao Qi <yao@codesourcery.com>
1665
1666 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
1667 in format string.
1668 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
1669 (inf_validate_procs, inf_signal): Likewise.
1670 (S_exception_raise_request): Likewise.
1671 (do_mach_notify_dead_name): Likewise.
1672 (steal_exc_port): Likewise.
1673 (gnu_read_inferior): Change 'copy_count''s type to
1674 mach_msg_type_number_t.
1675 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
1676 format string.
1677
1678 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
1679
1680 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
1681 flag. Adjust all users; in particular...
1682 (gnu_wait): ..., don't decrement its value in here...
1683 (gnu_create_inferior): ..., and instead set the flag in here,
1684 around the startup_inferior call, and call that one with
1685 START_INFERIOR_TRAPS_EXPECTED.
1686
1687 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
1688 (ILL_RPC): ... new macro.
1689 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
1690 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
1691 (do_mach_notify_send_once, S_proc_setmsgport_reply)
1692 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
1693 functions with ILL_RPC macro.
1694 (S_proc_pid2task_reply, S_proc_task2pid_reply)
1695 (S_proc_task2proc_reply, S_proc_proc2task_reply)
1696 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
1697 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
1698 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
1699 (S_proc_getlogin_reply, S_proc_getsid_reply)
1700 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
1701 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
1702 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
1703 (S_proc_getnports_reply, S_proc_is_important_reply)
1704 (S_proc_get_code_reply): New stub functions, generated with
1705 ILL_RPC macro.
1706
1707 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
1708 collected the type check structures.
1709
1710 * reply_mig_hack.awk: Don't expect to see the auto keyword.
1711
1712 2014-02-14 Doug Evans <dje@google.com>
1713
1714 * target.c (target_write_partial): Fix result type.
1715
1716 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
1717
1718 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
1719 the proper offsets to access fpregset_t.
1720
1721 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
1722
1723 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
1724 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
1725 * h8300-tdep.c (setmachinelist): Remove global.
1726 * hppa-tdep.c (hppa_sigtramp): Remove global.
1727 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
1728 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
1729 * ravenscar-thread.c (update_target_observer): Remove global.
1730 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
1731
1732 2014-02-12 Tom Tromey <tromey@redhat.com>
1733
1734 * common/rsp-low.c: Update comments.
1735 * common/rsp-low.h: Update comments.
1736
1737 2014-02-12 Tom Tromey <tromey@redhat.com>
1738
1739 * common/rsp-low.c (convert_ascii_to_int): Remove.
1740 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
1741
1742 2014-02-12 Tom Tromey <tromey@redhat.com>
1743
1744 * common/rsp-low.h (unhexify): Don't declare.
1745 * common/rsp-low.c (unhexify): Remove.
1746
1747 2014-02-12 Tom Tromey <tromey@redhat.com>
1748
1749 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
1750 * common/rsp-low.c (convert_int_to_ascii): Remove.
1751
1752 2014-02-12 Tom Tromey <tromey@redhat.com>
1753
1754 * common/rsp-low.h (hexify): Don't declare.
1755 * common/rsp-low.c (hexify): Remove.
1756
1757 2014-02-12 Tom Tromey <tromey@redhat.com>
1758
1759 * common/rsp-low.c (hexify): Never take strlen of argument.
1760
1761 2014-02-12 Tom Tromey <tromey@redhat.com>
1762
1763 * common/rsp-low.c (bin2hex): Never take strlen of argument.
1764 * remote.c (extended_remote_run, remote_rcmd)
1765 (remote_download_trace_state_variable, remote_save_trace_data)
1766 (remote_set_trace_notes): Update.
1767 * tracepoint.c (encode_source_string, tfile_write_status)
1768 (tfile_write_uploaded_tsv): Update.
1769
1770 2014-02-12 Tom Tromey <tromey@redhat.com>
1771
1772 * tracepoint.c: Include rsp-low.h.
1773 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
1774 * remote.c: Include rsp-low.h.
1775 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
1776 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
1777 (remote_unescape_input): Move to common/rsp-low.c.
1778 * common/rsp-low.h: New file.
1779 * common/rsp-low.c: New file.
1780 * Makefile.in (SFILES): Add common/rsp-low.c.
1781 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
1782 (COMMON_OBS): Add rsp-low.o.
1783 (rsp-low.o): New target.
1784
1785 2014-02-12 Tom Tromey <tromey@redhat.com>
1786
1787 * utils.h: Include print-utils.h.
1788 (host_address_to_string, plongest, pulongest, phex, phex_nz)
1789 (int_string, core_addr_to_string, core_addr_to_string_nz)
1790 (hex_string, hex_string_custom): Don't declare.
1791 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
1792 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
1793 (hex_string_custom, int_string, core_addr_to_string)
1794 (core_addr_to_string_nz, host_address_to_string): Move to
1795 common/print-utils.c.
1796 * common/print-utils.h: New file.
1797 * common/print-utils.c: New file
1798 * Makefile.in (SFILES): Add common/print-utils.c.
1799 (HFILES_NO_SRCDIR): Add common/print-utils.h.
1800 (COMMON_OBS): Add print-utils.o.
1801 (print-utils.o): New target.
1802
1803 2014-02-12 Tom Tromey <tromey@redhat.com>
1804
1805 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
1806
1807 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1808
1809 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
1810
1811 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1812
1813 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
1814 if a PT_IO ptrace request returns sucessfully but indicates that 0
1815 bytes were transferred.
1816
1817 2014-02-12 Pedro Alves <palves@redhat.com>
1818 Kevin Buettner <kevinb@redhat.com>
1819
1820 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
1821 TYPE_INSTANCE_FLAG_CODE_SPACE.
1822
1823 2014-02-12 Pedro Alves <palves@redhat.com>
1824
1825 * h8300-tdep.c (pseudo_from_raw_register)
1826 (raw_from_pseudo_register): New functions.
1827 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
1828 them.
1829
1830 2014-02-12 Pedro Alves <palves@redhat.com>
1831
1832 * h8300-tdep.c (h8300_register_sim_regno): New function.
1833 (h8300_gdbarch_init): Install h8300_register_sim_regno as
1834 gdbarch_register_sim_regno hook.
1835
1836 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1837
1838 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
1839
1840 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
1841
1842 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
1843
1844 2014-02-12 Mark Kettenis <kettenis@gnu.org>
1845
1846 * obsd-tdep.h (obsd_init_abi): New prototype.
1847 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
1848 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
1849 (obsd_init_abi): New functions.
1850 * i386obsd-tdep.c: Include "obsd-tdep.h".
1851 (i386obsd_init_abi): Call obsd_init_abi.
1852 * amd64obsd-tdep.c: Include "obsd-tdep.h".
1853 (amd64obsd_init_abi): Call obsd_init_abi.
1854 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
1855 obsd-tdep.c to gdb_target_obs.
1856
1857 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
1858
1859 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
1860 double float arguments to 16-byte in the argument slots.
1861
1862 2014-02-11 Doug Evans <xdje42@gmail.com>
1863
1864 * configure.ac: Don't crash if pkg-config is not found and guile
1865 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
1866 in guile checks.
1867 * configure: Regenerate.
1868
1869 2014-02-11 Yao Qi <yao@codesourcery.com>
1870
1871 * aix-thread.c (aix_thread_xfer_partial): Update comments.
1872 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
1873 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
1874 * gnu-nat.c (gnu_xfer_memory): Likewise.
1875 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1876 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1877 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1878 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1879
1880 2014-02-11 Yao Qi <yao@codesourcery.com>
1881
1882 * target.h (enum target_xfer_error): Rename to ...
1883 (enum target_xfer_status): ... it. New. All users updated.
1884 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
1885 New.
1886 (TARGET_XFER_STATUS_ERROR_P): New macro.
1887 (target_xfer_error_to_string): Remove declaration.
1888 (target_xfer_status_to_string): Declare.
1889 (target_xfer_partial_ftype): Adjust it.
1890 (struct target_ops) <to_xfer_partial>: Return
1891 target_xfer_status. Add argument xfered_len. Update
1892 comments.
1893 * target.c (target_xfer_error_to_string): Rename to ...
1894 (target_xfer_status_to_string): ... it. New. All callers
1895 updated.
1896 (target_read_live_memory): Likewise. Call target_xfer_partial
1897 instead of target_read.
1898 (memory_xfer_live_readonly_partial): Return
1899 target_xfer_status. Add argument xfered_len.
1900 (raw_memory_xfer_partial): Likewise.
1901 (memory_xfer_partial_1): Likewise.
1902 (memory_xfer_partial): Likewise.
1903 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
1904 properly. Update debug message.
1905 (default_xfer_partial, current_xfer_partial): Likewise.
1906 (target_write_partial): Likewise.
1907 (target_read_partial): Likewise. All callers updated.
1908 (read_whatever_is_readable): Likewise.
1909 (target_write_with_progress): Likewise.
1910 (target_read_alloc_1): Likewise.
1911
1912 * aix-thread.c (aix_thread_xfer_partial): Likewise.
1913 * auxv.c (procfs_xfer_auxv): Likewise.
1914 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
1915 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1916 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1917 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
1918 * corefile.c (read_memory): Adjust.
1919 * corelow.c (core_xfer_partial): Likewise.
1920 * ctf.c (ctf_xfer_partial): Likewise.
1921 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
1922 updated.
1923 (darwin_xfer_partial): Likewise.
1924 * exec.c (section_table_xfer_memory_partial): Likewise. All
1925 callers updated.
1926 (exec_xfer_partial): Likewise.
1927 * exec.h (section_table_xfer_memory_partial): Update
1928 declaration.
1929 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
1930 negative.
1931 (gnu_xfer_partial): Likewise.
1932 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
1933 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
1934 (ia64_hpux_xfer_solib_got): Likewise.
1935 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
1936 type of 'partial_len' to ULONGEST.
1937 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1938 * linux-nat.c (linux_xfer_siginfo ): Likewise.
1939 (linux_nat_xfer_partial): Likewise.
1940 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
1941 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
1942 * monitor.c (monitor_xfer_memory): Likewise.
1943 (monitor_xfer_partial): Likewise.
1944 * procfs.c (procfs_xfer_partial): Likewise.
1945 * record-btrace.c (record_btrace_xfer_partial): Likewise.
1946 * record-full.c (record_full_xfer_partial): Likewise.
1947 (record_full_core_xfer_partial): Likewise.
1948 * remote-sim.c (gdbsim_xfer_memory): Likewise.
1949 (gdbsim_xfer_partial): Likewise.
1950 * remote.c (remote_write_bytes_aux): Likewise. All callers
1951 updated.
1952 (remote_write_bytes, remote_read_bytes): Likewise. All
1953 callers updated.
1954 (remote_flash_erase): Likewise. All callers updated.
1955 (remote_write_qxfer): Likewise. All callers updated.
1956 (remote_read_qxfer): Likewise. All callers updated.
1957 (remote_xfer_partial): Likewise.
1958 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1959 (rs6000_xfer_shared_libraries): Likewise.
1960 * sol-thread.c (sol_thread_xfer_partial): Likewise.
1961 (sol_thread_xfer_partial): Likewise.
1962 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1963 (sparc_xfer_partial): Likewise.
1964 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
1965 updated.
1966 (spu_xfer_partial): Likewise.
1967 * spu-multiarch.c (spu_xfer_partial): Likewise.
1968 * tracepoint.c (tfile_xfer_partial): Likewise.
1969 * windows-nat.c (windows_xfer_memory): Likewise.
1970 (windows_xfer_shared_libraries): Likewise.
1971 (windows_xfer_partial): Likewise.
1972 * valprint.c: Replace 'target_xfer_error' with
1973 'target_xfer_status' in comments.
1974
1975 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
1976
1977 Checked in by Joel Brobecker <brobecker@adacore.com>.
1978 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
1979
1980 2014-02-11 Joel Brobecker <brobecker@adacore.com>
1981
1982 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
1983 function parameters.
1984
1985 2014-02-10 Will Newton <will.newton@linaro.org>
1986
1987 * elfread.c (elf_rel_plt_read): Look for a .got section if
1988 looking up .got.plt fails.
1989 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
1990 on address passed to elf_gnu_ifunc_record_cache.
1991 (elf_gnu_ifunc_resolve_addr): Likewise.
1992 (elf_gnu_ifunc_resolver_return_stop): Likewise.
1993
1994 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
1995
1996 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
1997 (X_RETTURN): New macro.
1998 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
1999
2000 * sparc64-tdep.c (sparc64_init_abi): Hook
2001 sparc_in_function_epilogue_p.
2002
2003 2014-02-10 Gary Benson <gbenson@redhat.com>
2004
2005 * symfile-debug.c (debug_qf_expand_symtabs_matching):
2006 Rename name_matcher to symbol_matcher.
2007
2008 2014-02-10 Gary Benson <gbenson@redhat.com>
2009
2010 * symfile-debug.c (debug_qf_expand_symtabs_matching):
2011 Use expand_symtabs_file_matcher_ftype and
2012 expand_symtabs_symbol_matcher_ftype.
2013
2014 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2015
2016 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
2017 (struct ada_symbol_cache): New.
2018 (ada_free_symbol_cache): Forward declare.
2019 (struct ada_pspace_data): New.
2020 (ada_pspace_data_handle): New static global.
2021 (get_ada_pspace_data, ada_pspace_data_cleanup)
2022 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
2023 (cache_space, cache): Delete, now folded inside struct
2024 ada_pspace_data.
2025 (ada_get_symbol_cache): New function.
2026 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
2027 implementation.
2028 (_initialize_ada_language): Remove initialization of cache_space.
2029 Move call to observer_attach_inferior_exit up, grouping it
2030 with the other observer registrations inside this function.
2031 Rename command to be more general. Add call to
2032 register_program_space_data_with_cleanup.
2033
2034 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2035
2036 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
2037 ada_new_objfile_observer.
2038 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
2039 (_initialize_tasks): Update uses of ada_new_objfile_observer
2040 and ada_tasks_normal_stop_observer.
2041
2042 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2043
2044 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
2045 returned by the 'Length attribute to integer.
2046
2047 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2048
2049 * ada-lang.c (_initialize_ada_language): Initialize
2050 cache_space obstack.
2051
2052 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2053
2054 * ada-lang.c (HASH_SIZE): New macro.
2055 (struct cache_entry): New type.
2056 (cache_space, cache): New static globals.
2057 (ada_clear_symbol_cache, find_entry): New functions.
2058 (lookup_cached_symbol, cache_symbol): Implement.
2059 (ada_new_objfile_observer, ada_free_objfile_observer): New.
2060 (_initialize_ada_language): Attach ada_new_objfile_observer
2061 and ada_free_objfile_observer.
2062
2063 2014-02-10 Joel Brobecker <brobecker@adacore.com>
2064
2065 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
2066 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
2067 struct block * parameter.
2068 (ada_lookup_symbol_list_worker): Constify local variable "block".
2069 Remove cast which is no longer necessary.
2070
2071 2014-02-10 Doug Evans <xdje42@gmail.com>
2072
2073 Add Guile as an extension language.
2074 * NEWS: Mention Guile scripting.
2075 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
2076 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
2077 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
2078 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
2079 (CLIBS): Add GUILE_LIBS.
2080 (install-guile): New rule.
2081 (guile.o): New rule.
2082 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
2083 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
2084 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
2085 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
2086 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
2087 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
2088 (scm-type.o, scm-utils.o, scm-value.o): New rules.
2089 * configure.ac: New option --with-guile.
2090 * configure: Regenerate.
2091 * config.in: Regenerate.
2092 * auto-load.c: Remove #include "python/python.h". Add #include
2093 "gdb/section-scripts.h".
2094 (source_section_scripts): Handle Guile scripts.
2095 (_initialize_auto_load): Add name of Guile objfile script to
2096 scripts-directory help text.
2097 * breakpoint.c (condition_command): Tweak comment to include Scheme.
2098 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
2099 (struct breakpoint): New member scm_bp_object.
2100 * defs.h (enum command_control_type): New value guile_control.
2101 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
2102 "extension.h".
2103 (show_user): Update comment.
2104 (_initialize_cli_cmds): Update help text for "show user". Update help
2105 text for max-user-call-depth.
2106 * cli/cli-script.c: Remove #include "python/python.h". Add #include
2107 "extension.h".
2108 (multi_line_command_p): Add guile_control.
2109 (print_command_lines): Handle guile_control.
2110 (execute_control_command, recurse_read_control_structure): Ditto.
2111 (process_next_line): Recognize "guile" commands.
2112 * disasm.c (gdb_disassemble_info): Make non-static.
2113 * disasm.h: #include "dis-asm.h".
2114 (struct gdbarch): Add forward decl.
2115 (gdb_disassemble_info): Declare.
2116 * extension.c: #include "guile/guile.h".
2117 (extension_languages): Add guile.
2118 (get_ext_lang_defn): Handle EXT_LANG_GDB.
2119 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
2120 * gdbtypes.c (get_unsigned_type_max): New function.
2121 (get_signed_type_minmax): New function.
2122 * gdbtypes.h (get_unsigned_type_max): Declare.
2123 (get_signed_type_minmax): Declare.
2124 * guile/README: New file.
2125 * guile/guile-internal.h: New file.
2126 * guile/guile.c: New file.
2127 * guile/guile.h: New file.
2128 * guile/scm-arch.c: New file.
2129 * guile/scm-auto-load.c: New file.
2130 * guile/scm-block.c: New file.
2131 * guile/scm-breakpoint.c: New file.
2132 * guile/scm-disasm.c: New file.
2133 * guile/scm-exception.c: New file.
2134 * guile/scm-frame.c: New file.
2135 * guile/scm-gsmob.c: New file.
2136 * guile/scm-iterator.c: New file.
2137 * guile/scm-lazy-string.c: New file.
2138 * guile/scm-math.c: New file.
2139 * guile/scm-objfile.c: New file.
2140 * guile/scm-ports.c: New file.
2141 * guile/scm-pretty-print.c: New file.
2142 * guile/scm-safe-call.c: New file.
2143 * guile/scm-string.c: New file.
2144 * guile/scm-symbol.c: New file.
2145 * guile/scm-symtab.c: New file.
2146 * guile/scm-type.c: New file.
2147 * guile/scm-utils.c: New file.
2148 * guile/scm-value.c: New file.
2149 * guile/lib/gdb.scm: New file.
2150 * guile/lib/gdb/boot.scm: New file.
2151 * guile/lib/gdb/experimental.scm: New file.
2152 * guile/lib/gdb/init.scm: New file.
2153 * guile/lib/gdb/iterator.scm: New file.
2154 * guile/lib/gdb/printing.scm: New file.
2155 * guile/lib/gdb/types.scm: New file.
2156 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
2157 (VPATH): Add $(GUILE_SRCDIR).
2158 (GUILE_DIR): New variable.
2159 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
2160 (all): Add stamp-guile dependency.
2161 (stamp-guile): New rule.
2162 (clean-guile, install-guile, uninstall-guile): New rules.
2163 (install-only): Add install-guile dependency.
2164 (uninstall): Add uninstall-guile dependency.
2165 (clean): Add clean-guile dependency.
2166
2167 2014-02-09 Doug Evans <xdje42@gmail.com>
2168
2169 Revert this patch (which I approved, mea culpa).
2170
2171 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2172
2173 * Makefile.in (all-lib): Remove.
2174 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2175
2176 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2177
2178 Fix Python stack corruption.
2179 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
2180 gdb_py_longest.
2181
2182 2014-02-08 Mark Kettenis <kettenis@gnu.org>
2183
2184 * Makefile.in (all-lib): Remove.
2185 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
2186
2187 2014-02-07 Doug Evans <dje@google.com>
2188
2189 * extension-priv.h (extension_language_script_ops): Add comment.
2190 (extension_language_ops): Add comment.
2191 (active_ext_lang_state): Fix typo in comment.
2192
2193 2014-02-07 Pedro Alves <palves@redhat.com>
2194
2195 * infrun.c (handle_signal_stop) <signal arrives while stepping
2196 over a breakpoint>: Switch back to the stepping thread.
2197
2198 2014-02-07 Yao Qi <yao@codesourcery.com>
2199
2200 * target.c (target_xfer_partial): Return zero if LEN is zero.
2201
2202 2014-02-07 Yao Qi <yao@codesourcery.com>
2203
2204 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
2205 (ld_so_xfer_auxv): Likewise.
2206 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2207 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2208 * corelow.c (core_xfer_partial): Likewise.
2209 * ctf.c (ctf_xfer_partial): Likewise.
2210 * darwin-nat.c (darwin_read_dyld_info): Likewise.
2211 (darwin_xfer_partial): Likewise.
2212 * exec.c (exec_xfer_partial): Likewise.
2213 * gnu-nat.c (gnu_xfer_partial): Likewise.
2214 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
2215 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
2216 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
2217 * linux-nat.c (linux_xfer_siginfo): Likewise.
2218 (linux_proc_xfer_spu): Likewise.
2219 * procfs.c (procfs_xfer_partial): Likewise.
2220 * record-full.c (record_full_xfer_partial): Likewise.
2221 (record_full_core_xfer_partial): Likewise.
2222 * remote-sim.c (gdbsim_xfer_partial): Likewise.
2223 * remote.c (remote_write_qxfer): Likewise.
2224 (remote_write_qxfer, remote_read_qxfer): Likewise.
2225 (remote_xfer_partial): Likewise.
2226 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2227 (rs6000_xfer_shared_libraries): Likewise.
2228 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2229 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2230 (spu_xfer_partial): Likewise.
2231 * target.c (memory_xfer_partial_1): Likewise.
2232 * tracepoint.c (tfile_xfer_partial): Likewise.
2233 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
2234 (windows_xfer_partial): Likewise.
2235
2236 2014-02-07 Yao Qi <yao@codesourcery.com>
2237
2238 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
2239 comments.
2240 (core_xfer_shared_libraries_aix): Likewise.
2241 * gdbarch.c, gdbarch.h: Regenerated.
2242 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
2243 ULONGEST. Change 'len_avail' type to ULONGEST.
2244 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2245 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2246 declaration.
2247 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
2248
2249 2014-02-07 Yao Qi <yao@codesourcery.com>
2250
2251 * corefile.c (memory_error): Get 'exception' from ERR and pass
2252 'exception' to throw_error.
2253
2254 2014-02-06 Doug Evans <xdje42@gmail.com>
2255
2256 * configure.ac (libpython checking): Remove all but python.o from
2257 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
2258 * configure: Regenerate.
2259
2260 * Makefile.in (SFILES): Add extension.c.
2261 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
2262 (COMMON_OBS): Add extension.o.
2263 * extension.h: New file.
2264 * extension-priv.h: New file.
2265 * extension.c: New file.
2266
2267 * python/python-internal.h: #include "extension.h".
2268 (gdbpy_auto_load_enabled): Declare.
2269 (gdbpy_apply_val_pretty_printer): Declare.
2270 (gdbpy_apply_frame_filter): Declare.
2271 (gdbpy_preserve_values): Declare.
2272 (gdbpy_breakpoint_cond_says_stop): Declare.
2273 (gdbpy_breakpoint_has_cond): Declare.
2274 (void source_python_script_for_objfile): Delete.
2275 * python/python.c: #include "extension-priv.h".
2276 Delete inclusion of "observer.h".
2277 (extension_language_python): Moved here and renamed from
2278 script_language_python in py-auto-load.c.
2279 Redefined to be of type extension_language_defn.
2280 (python_extension_script_ops): New global.
2281 (python_extension_ops): New global.
2282 (struct python_env): New member previous_active.
2283 (restore_python_env): Call restore_active_ext_lang.
2284 (ensure_python_env): Call set_active_ext_lang.
2285 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
2286 New arg extlang.
2287 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
2288 New arg extlang.
2289 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
2290 New arg extlang.
2291 (gdbpy_eval_from_control_command): Renamed from
2292 eval_python_from_control_command, made static. New arg extlang.
2293 (gdbpy_source_script) Renamed from source_python_script, made static.
2294 New arg extlang.
2295 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
2296 result to int. New arg extlang.
2297 (gdbpy_source_objfile_script): Renamed from
2298 source_python_script_for_objfile, made static. New arg extlang.
2299 (gdbpy_start_type_printers): Renamed from start_type_printers, made
2300 static. New args extlang, extlang_printers. Change result type to
2301 "void".
2302 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
2303 static. New arg extlang. Rename arg printers to extlang_printers
2304 and change type to ext_lang_type_printers *.
2305 (gdbpy_free_type_printers): Renamed from free_type_printers, made
2306 static. Replace argument arg with extlang, extlang_printers.
2307 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
2308 (!HAVE_PYTHON, source_python_script): Delete.
2309 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
2310 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
2311 (!HAVE_PYTHON, start_type_printers): Delete.
2312 (!HAVE_PYTHON, apply_type_printers): Delete.
2313 (!HAVE_PYTHON, free_type_printers): Delete.
2314 (_initialize_python): Delete call to observer_attach_before_prompt.
2315 (finalize_python): Set/restore active extension language.
2316 (gdbpy_finish_initialization) Renamed from
2317 finish_python_initialization, made static. New arg extlang.
2318 (gdbpy_initialized): New function.
2319 * python/python.h: #include "extension.h". Delete #include
2320 "value.h", "mi/mi-cmds.h".
2321 (extension_language_python): Declare.
2322 (GDBPY_AUTO_FILE_NAME): Delete.
2323 (enum py_bt_status): Moved to extension.h and renamed to
2324 ext_lang_bt_status.
2325 (enum frame_filter_flags): Moved to extension.h.
2326 (enum py_frame_args): Moved to extension.h and renamed to
2327 ext_lang_frame_args.
2328 (finish_python_initialization): Delete.
2329 (eval_python_from_control_command): Delete.
2330 (source_python_script): Delete.
2331 (apply_val_pretty_printer): Delete.
2332 (apply_frame_filter): Delete.
2333 (preserve_python_values): Delete.
2334 (gdbpy_script_language_defn): Delete.
2335 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
2336 (start_type_printers, apply_type_printers, free_type_printers): Delete.
2337
2338 * auto-load.c: #include "extension.h".
2339 (GDB_AUTO_FILE_NAME): Delete.
2340 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
2341 (script_language_gdb): Delete, moved to extension.c and renamed to
2342 extension_language_gdb.
2343 (source_gdb_script_for_objfile): Delete.
2344 (auto_load_pspace_info): New member unsupported_script_warning_printed.
2345 (loaded_script): Change type of language member to
2346 struct extension_language_defn *.
2347 (init_loaded_scripts_info): Initialize
2348 unsupported_script_warning_printed.
2349 (maybe_add_script): Make static. Change type of language arg to
2350 struct extension_language_defn *.
2351 (clear_section_scripts): Reset unsupported_script_warning_printed.
2352 (auto_load_objfile_script_1): Rewrite to use extension language API.
2353 (auto_load_objfile_script): Make public. Remove support-compiled-in
2354 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
2355 (source_section_scripts): Rewrite to use extension language API.
2356 (load_auto_scripts_for_objfile): Rewrite to use
2357 auto_load_scripts_for_objfile.
2358 (collect_matching_scripts_data): Change type of language member to
2359 struct extension_language_defn *.
2360 (auto_load_info_scripts): Change type of language arg to
2361 struct extension_language_defn *.
2362 (unsupported_script_warning_print): New function.
2363 (script_not_found_warning_print): Make static.
2364 (_initialize_auto_load): Rewrite construction of scripts-directory
2365 help.
2366 * auto-load.h (struct objfile): Add forward decl.
2367 (struct script_language): Delete.
2368 (struct auto_load_pspace_info): Add forward decl.
2369 (struct extension_language_defn): Add forward decl.
2370 (maybe_add_script): Delete.
2371 (auto_load_objfile_script): Declare.
2372 (script_not_found_warning_print): Delete.
2373 (auto_load_info_scripts): Update prototype.
2374 (auto_load_gdb_scripts_enabled): Declare.
2375 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
2376 auto_load_python_scripts_enabled and made public.
2377 (script_language_python): Delete, moved to python.c.
2378 (gdbpy_script_language_defn): Delete.
2379 (info_auto_load_python_scripts): Update to use
2380 extension_language_python.
2381
2382 * breakpoint.c (condition_command): Replace call to
2383 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
2384 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
2385 with call to breakpoint_ext_lang_cond_says_stop.
2386 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
2387 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
2388 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
2389 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
2390 New arg slang.
2391 (local_setattro): Print name of extension language with existing
2392 stop condition.
2393
2394 * valprint.c (val_print, value_print): Update to call
2395 apply_ext_lang_val_pretty_printer.
2396 * cp-valprint.c (cp_print_value): Update call to
2397 apply_ext_lang_val_pretty_printer.
2398 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
2399 (gdbpy_apply_val_pretty_printer): Renamed from
2400 apply_val_pretty_printer. New arg extlang.
2401 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
2402
2403 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
2404 extension language API.
2405 * cli/cli-script.c (execute_control_command): Update to call
2406 eval_ext_lang_from_control_command.
2407
2408 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
2409 enum ext_lang_bt_status values. Update call to
2410 apply_ext_lang_frame_filter.
2411 (mi_cmd_stack_list_locals): Ditto.
2412 (mi_cmd_stack_list_args): Ditto.
2413 (mi_cmd_stack_list_variables): Ditto.
2414 * mi/mi-main.c: Delete #include "python/python-internal.h".
2415 Add #include "extension.h".
2416 (mi_cmd_list_features): Replace reference to python internal variable
2417 gdb_python_initialized with call to ext_lang_initialized_p.
2418
2419 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
2420 Update to use enum ext_lang_frame_args. Update to call
2421 apply_ext_lang_frame_filter.
2422 * python/py-framefilter.c (extract_sym): Update to use enum
2423 ext_lang_bt_status.
2424 (extract_value, py_print_type, py_print_value): Ditto.
2425 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
2426 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
2427 (py_print_frame): Ditto.
2428 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
2429 New arg extlang. Update to use enum ext_lang_bt_status.
2430
2431 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
2432 finish_python_initialization. Replace with call to
2433 finish_ext_lang_initialization.
2434
2435 * typeprint.c (do_free_global_table): Update to call
2436 free_ext_lang_type_printers.
2437 (create_global_typedef_table): Update to call
2438 start_ext_lang_type_printers.
2439 (find_global_typedef): Update to call apply_ext_lang_type_printers.
2440 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
2441 (type_print_options): Change type of global_printers from "void *"
2442 to "struct ext_lang_type_printers *".
2443
2444 * value.c (preserve_values): Update to call preserve_ext_lang_values.
2445 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
2446 (gdbpy_preserve_values): Renamed from preserve_python_values.
2447 New arg extlang.
2448 (!HAVE_PYTHON, preserve_python_values): Delete.
2449
2450 * utils.c (quit_flag): Delete, moved to extension.c.
2451 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
2452 extension.c.
2453
2454 * eval.c: Delete #include "python/python.h".
2455 * main.c: Delete #include "python/python.h".
2456
2457 * defs.h: Update comment.
2458
2459 2014-02-06 Joel Brobecker <brobecker@adacore.com>
2460
2461 GDB 7.7 released.
2462
2463 2014-02-05 Mark Kettenis <kettenis@gnu.org>
2464
2465 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
2466 defined.
2467
2468 2014-02-05 Yao Qi <yao@codesourcery.com>
2469
2470 * remote.c (remote_pass_signals): Remove local 'buf' and use
2471 rs->buf.
2472 (remote_program_signals): Likewise.
2473
2474 2014-02-05 Yao Qi <yao@codesourcery.com>
2475
2476 * ctf.c: Include "inferior.h" and "gdbthread.h".
2477 (CTF_PID): A new macro.
2478 (ctf_open): Call inferior_appeared and add_thread_silent.
2479 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
2480 (ctf_thread_alive): New function.
2481 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
2482
2483 2014-02-05 Yao Qi <yao@codesourcery.com>
2484
2485 Revert this patch:
2486
2487 2013-05-24 Yao Qi <yao@codesourcery.com>
2488
2489 * tracepoint.c (TFILE_PID): Remove.
2490 (tfile_open): Don't add thread and inferior.
2491 (tfile_close): Don't set 'inferior_ptid'. Don't call
2492 exit_inferior_silent.
2493 (tfile_thread_alive): Remove.
2494 (init_tfile_ops): Don't set field 'to_thread_alive' of
2495 tfile_ops.
2496
2497 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
2498
2499 * remote.c (remote_start_remote): Call remote_check_symbols even
2500 if only symbol-file (not file) has been given.
2501
2502 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2503
2504 * gdbarch.sh (skip_entrypoint): New callback.
2505 * gdbarch.c, gdbarch.h: Regenerate.
2506 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
2507 * infrun.c (fill_in_stop_func): Likewise.
2508 * ppc-linux-tdep.c: Include "elf/ppc64.h".
2509 (ppc_elfv2_elf_make_msymbol_special): New function.
2510 (ppc_elfv2_skip_entrypoint): Likewise.
2511 (ppc_linux_init_abi): Install them for ELFv2.
2512
2513 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2514
2515 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
2516 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
2517 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
2518 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
2519 structures returned in GPRs.
2520
2521 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2522
2523 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
2524 offset to the stack parameter list for the ELFv2 ABI.
2525
2526 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2527
2528 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
2529 set_gdbarch_convert_from_func_ptr_addr and
2530 set_gdbarch_elf_make_msymbol_special for ELFv1.
2531 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
2532 function descriptors on ELFv1.
2533 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
2534 set up r12 at function entry.
2535
2536 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2537
2538 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
2539 (struct gdbarch_tdep): New member elf_abi.
2540
2541 * rs6000-tdep.c: Include "elf/ppc64.h".
2542 (rs6000_gdbarch_init): Detect ELF ABI version.
2543
2544 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2545
2546 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
2547 within a register pair holding a DFP 128-bit value on little-endian.
2548 (ppc64_sysv_abi_return_value_base): Likewise.
2549 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
2550 (dfp_pseudo_register_write): Likewise.
2551
2552 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2553
2554 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
2555 offset on little-endian when passing _Decimal32.
2556 (ppc64_sysv_abi_return_value_base): Likewise for return values.
2557
2558 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2559
2560 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
2561 of the overlapped FP register within the VSX register on little-
2562 endian platforms.
2563 (efpr_pseudo_register_write): Likewise.
2564
2565 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2566
2567 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
2568 offset on little-endian when passing small structures.
2569
2570 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2571
2572 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
2573 (struct ppc64_sysv_argpos): New data structure.
2574 (ppc64_sysv_abi_push_float): Remove.
2575 (ppc64_sysv_abi_push_val): New function.
2576 (ppc64_sysv_abi_push_integer): Likewise.
2577 (ppc64_sysv_abi_push_freg): Likewise.
2578 (ppc64_sysv_abi_push_vreg): Likewise.
2579 (ppc64_sysv_abi_push_param): Likewise.
2580 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
2581 (ppc64_sysv_abi_return_value_base): New function.
2582 (ppc64_sysv_abi_return_value): Refactor to use it.
2583
2584 2014-02-04 Ulrich Weigand  <uweigand@de.ibm.com>
2585
2586 * NEWS: Document new target powerpc64le-*-linux*.
2587
2588 2014-02-04 Mark Kettenis <kettenis@gnu.org>
2589
2590 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
2591 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
2592 core dumps.
2593 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
2594 register set used in ELF core dumps. Add floating-point register set.
2595
2596 2014-02-03 Kevin Buettner <kevinb@redhat.com>
2597
2598 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
2599 dwarf2_to_gdb[] table using symbolic constants. Adjust
2600 penultimate entry from number representing the PC register
2601 to symbolic constant representing the MDR register. Add
2602 constant for the PC register to the end of the table.
2603
2604 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2605
2606 * bsd-kvm.c: Include <sys/param.h>
2607
2608 2014-02-03 Mark Kettenis <kettenis@gnu.org>
2609
2610 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
2611
2612 2014-01-31 Joel Brobecker <brobecker@adacore.com>
2613
2614 * ada-lang.h (clear_ada_sym_cache): Delete.
2615
2616 2014-01-30 Ulrich Weigand  <uweigand@de.ibm.com>
2617
2618 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
2619
2620 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
2621
2622 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
2623 the sigreturn register save area only if the syscall is
2624 sigreturn.
2625
2626 2014-01-29 Joel Brobecker <brobecker@adacore.com>
2627
2628 * valops.c (value_slice): Minor reformatting.
2629
2630 2014-01-28 Ulrich Weigand  <uweigand@de.ibm.com>
2631
2632 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
2633
2634 2014-01-28 Joel Brobecker <brobecker@adacore.com>
2635
2636 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
2637 New static globals.
2638 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
2639 (ada_ignore_descriptive_types_p): New static global.
2640 (find_parallel_type_by_descriptive_type): Return immediately
2641 if ada_ignore_descriptive_types_p is set.
2642 (_initialize_ada_language): Register new commands "maintenance
2643 set ada", "maintenance show ada", "maintenance set ada
2644 ignore-descriptive-types" and "maintenance show ada
2645 ignore-descriptive-types".
2646 * NEWS: Add entry for new "maint ada set/show
2647 ignore-descriptive-types" commands.
2648
2649 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
2650
2651 * record-btrace.c (record_btrace_close): Call btrace_teardown
2652 for all threads.
2653
2654 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2655
2656 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
2657 "ui-out.h".
2658
2659 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2660
2661 * ada-typeprint (type_is_full_subrange_of_target_type):
2662 New function.
2663 (print_range): Add parameter bounds_prefered_p. If not set,
2664 try printing range types using the name of their base type.
2665 (print_range_type): Add parameter bounds_prefered_p.
2666 Use it in call to print_range.
2667 (print_array_type, ada_print_type): Update calls to print_range
2668 and print_range_type.
2669
2670 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2671
2672 * ada-typeprint.c (print_array_type, print_choices, print_range)
2673 (print_range_bound, print_dynamic_range_bound, print_range_type):
2674 Remove declaration.
2675
2676 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2677
2678 * ada-typeprint.c (print_range): Add missing empty line
2679 after local declaration.
2680
2681 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2682
2683 * ada-valprint.c (print_optional_low_bound): Get index_type's
2684 target type for as long as it is a TYPE_CODE_RANGE.
2685
2686 2014-01-27 Joel Brobecker <brobecker@adacore.com>
2687
2688 * procfs.c (procfs_make_note_section): Remove assertion and
2689 associated comment.
2690
2691 2014-01-24 Yao Qi <yao@codesourcery.com>
2692
2693 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
2694 * corelow.c (get_core_siginfo): Likewise.
2695
2696 2014-01-24 Yao Qi <yao@codesourcery.com>
2697
2698 * remote.c (remote_write_bytes_aux): Change type of 'len' to
2699 ULONGEST. Don't check 'len' is negative.
2700 (remote_write_bytes): Change type of 'len' to ULONGEST.
2701
2702 2014-01-23 Tom Tromey <tromey@redhat.com>
2703
2704 PR python/16485:
2705 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
2706 Handle exception from frame.block.
2707 (FrameVars.fetch_frame_locals): Likewise.
2708
2709 2014-01-23 Tom Tromey <tromey@redhat.com>
2710
2711 PR python/16487:
2712 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
2713 on a NULL pointer. Move "goto error" to correct place.
2714
2715 2014-01-23 Tom Tromey <tromey@redhat.com>
2716
2717 PR python/16491:
2718 * python/py-framefilter.c (apply_frame_filter): Call
2719 ensure_python_env after computing gdbarch.
2720
2721 2014-01-23 Yao Qi <yao@codesourcery.com>
2722
2723 * target.c (raw_memory_xfer_partial): Change argument type
2724 from void * to gdb_byte *.
2725 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
2726
2727 2014-01-22 Doug Evans <dje@google.com>
2728
2729 New gdbserver option --debug-format=timestamp.
2730 * NEWS: Mention it.
2731
2732 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
2733
2734 * syscalls/s390x-linux.xml: New file.
2735 * syscalls/s390-linux.xml: New file.
2736 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
2737 (XML_SYSCALL_FILENAME_S390X): Likewise.
2738 (op_svc): New enum value for SVC opcode.
2739 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
2740 (s390_linux_get_syscall_number): New function.
2741 (s390_gdbarch_init): Register '*get_syscall_number' and the
2742 syscall xml file name.
2743 * data-directory/Makefile.in (SYSCALLS_FILES): Add
2744 "s390-linux.xml" and "s390x-linux.xml".
2745 * NEWS: Announce new feature.
2746
2747 2014-01-22 Baruch Siach <baruch@tkos.co.il>
2748
2749 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
2750
2751 2014-01-22 Pedro Alves <palves@redhat.com>
2752
2753 * xtensa-config.c: Include defs.h.
2754
2755 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2756
2757 * common/common-utils.h: Add "ARI:" comment beside __func__
2758 reference.
2759
2760 2014-01-22 Joel Brobecker <brobecker@adacore.com>
2761
2762 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
2763 documentation a bit.
2764
2765 2014-01-21 Roland McGrath <mcgrathr@google.com>
2766
2767 * configure.ac: Call AM_PROG_INSTALL_STRIP.
2768 * configure: Regenerate.
2769 * aclocal.m4: Regenerate.
2770 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
2771 New substituted variables.
2772 (install-strip): New target.
2773 (INSTALL_SCRIPT): New substituted variable.
2774 (FLAGS_TO_PASS): Add it.
2775 (install-only): Use $(INSTALL_SCRIPT) rather than
2776 $(INSTALL_PROGRAM) for gcore.
2777
2778 2014-01-20 Tom Tromey <tromey@redhat.com>
2779
2780 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
2781 together.
2782
2783 2014-01-20 Tom Tromey <tromey@redhat.com>
2784
2785 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
2786 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
2787 (deprecated_cmd_warning, complete_on_cmdlist): Update.
2788 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
2789 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
2790 (struct cmd_list_element) <flags>: Remove.
2791 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
2792 doc_allocated>: New fields.
2793 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
2794 bitfields.
2795 * maint.c (maintenance_do_deprecate): Update.
2796 * top.c (execute_command): Update.
2797
2798 2014-01-20 Baruch Siach <baruch@tkos.co.il>
2799
2800 * xtensa-linux-nat.c: Include asm/ptrace.h.
2801
2802 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2803
2804 * Makefile.in (SFILES): Add d-support.c.
2805 (COMMON_OBS): Add d-support.o.
2806 * d-lang.h (d_parse_symbol): Add comment, now defined in
2807 d-support.c.
2808 * d-lang.c (parse_call_convention)
2809 (parse_attributes, parse_function_types)
2810 (parse_function_args, parse_type, parse_identifier)
2811 (call_convention_p, d_parse_symbol): Move functions to ...
2812 * d-support.c: ... New file.
2813
2814 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2815
2816 * d-lang.h (d_parse_symbol): Add declaration.
2817 * d-lang.c (extract_identifiers)
2818 (extract_type_info): Remove functions.
2819 (parse_call_convention, parse_attributes)
2820 (parse_function_types, parse_function_args)
2821 (parse_type, parse_identifier, call_convention_p)
2822 (d_parse_symbol): New functions.
2823 (d_demangle): Use d_parse_symbol to demangle D symbols.
2824
2825 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2826
2827 * d-lang.h (struct builtin_d_type): New data type.
2828 (builtin_d_type): Add declaration.
2829 * d-lang.c (d_language_arch_info, build_d_types)
2830 (builtin_d_type): New functions.
2831 (enum d_primitive_types): New data type.
2832 (d_language_defn): Change c_language_arch_info to
2833 d_language_arch_info.
2834 (d_type_data): New static variable.
2835 (_initialize_d_language): Initialize d_type_data.
2836
2837 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2838
2839 * d-lang.h (d_main_name): Add declaration.
2840 * d-lang.c (d_main_name): New function.
2841 * symtab.c (find_main_name): Add call to d_main_name.
2842
2843 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2844
2845 * d-lang.c (d_language_defn): Change macro_expansion_c to
2846 macro_expansion_no.
2847
2848 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
2849
2850 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2851
2852 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
2853
2854 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
2855 gdb_exception" declaration.
2856 * remote.c (getpkt_or_notif_sane): Likewise.
2857
2858 2014-01-17 Doug Evans <dje@google.com>
2859
2860 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
2861 function, contents of dirnames_to_char_ptr_vec_append moved here.
2862 (delim_string_to_char_ptr_vec): New function.
2863 (dirnames_to_char_ptr_vec_append): Rewrite.
2864 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
2865
2866 2014-01-17 Doug Evans <dje@google.com>
2867
2868 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
2869 and moved here ...
2870 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
2871 #include "common-utils.h".
2872 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
2873 * common/vec.h (VEC_ASSERT_PASS): Update.
2874 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
2875 (MACH_CHECK_ERROR): Update.
2876
2877 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
2878
2879 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
2880 comments.
2881 * gdbarch.h: Regenerate.
2882
2883 2014-01-16 Tom Tromey <tromey@redhat.com>
2884
2885 * value.c (struct value) <regnum>: Move earlier.
2886
2887 2014-01-16 Tom Tromey <tromey@redhat.com>
2888
2889 * remote.c (extended_remote_create_inferior): Rename from
2890 extended_remote_create_inferior_1. Add "ops" argument. Remove
2891 old implementation.
2892
2893 2014-01-16 Pedro Alves <palves@redhat.com>
2894
2895 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
2896 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
2897 the backchain.
2898
2899 2014-01-16 Doug Evans <dje@google.com>
2900
2901 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
2902
2903 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2904
2905 * btrace.h (btrace_thread_flag): New.
2906 (struct btrace_thread_info) <flags>: New.
2907 * record-btrace.c (record_btrace_resume_thread)
2908 (record_btrace_find_thread_to_move, btrace_step_no_history)
2909 (btrace_step_stopped, record_btrace_start_replaying)
2910 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
2911 (record_btrace_find_resume_thread): New.
2912 (record_btrace_resume, record_btrace_wait): Extend.
2913 (record_btrace_can_execute_reverse): New.
2914 (record_btrace_open): Fail in non-stop mode.
2915 (record_btrace_set_replay): Split into this, ...
2916 (record_btrace_stop_replaying): ... this, ...
2917 (record_btrace_clear_histories): ... and this.
2918 (init_record_btrace_ops): Init to_can_execute_reverse.
2919 * NEWS: Announce it.
2920
2921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2922
2923 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
2924 (forward_target_decr_pc_after_break)
2925 (target_decr_pc_after_break): New.
2926 * target.c (forward_target_decr_pc_after_break)
2927 (target_decr_pc_after_break): New.
2928 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
2929 instead of gdbarch_decr_pc_after_break.
2930 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2931 instead of gdbarch_decr_pc_after_break.
2932 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
2933 instead of gdbarch_decr_pc_after_break.
2934 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
2935 instead of gdbarch_decr_pc_after_break.
2936 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
2937 instead of gdbarch_decr_pc_after_break.
2938 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
2939 instead of gdbarch_decr_pc_after_break.
2940
2941 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2942
2943 * btrace.c: Include regcache.h.
2944 (btrace_add_pc): New.
2945 (btrace_enable): Call btrace_add_pc.
2946 (btrace_is_empty): New.
2947 * btrace.h (btrace_is_empty): New.
2948 * record-btrace.c (require_btrace, record_btrace_info): Call
2949 btrace_is_empty.
2950
2951 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2952
2953 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
2954 Support delta reads.
2955 (linux_disable_btrace): Change return type.
2956 * common/linux-btrace.h (linux_read_btrace): Change parameters
2957 and return type to allow error reporting. Update users.
2958 (linux_disable_btrace): Change return type. Update users.
2959 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
2960 New.
2961 (btrace_error): New.
2962 (btrace_block) <begin>: Comment on BEGIN == 0.
2963 * btrace.c (btrace_compute_ftrace): Start from the end of
2964 the current trace.
2965 (btrace_stitch_trace, btrace_clear_history): New.
2966 (btrace_fetch): Read delta trace, return if replaying.
2967 (btrace_clear): Move clear history code to btrace_clear_history.
2968 (parse_xml_btrace): Throw an error if parsing failed.
2969 * target.h (struct target_ops) <to_read_btrace>: Change parameters
2970 and return type to allow error reporting.
2971 (target_read_btrace): Change parameters and return type to allow
2972 error reporting.
2973 * target.c (target_read_btrace): Update.
2974 * remote.c (remote_read_btrace): Support delta reads. Pass
2975 errors on.
2976 * NEWS: Announce it.
2977
2978 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2979
2980 * record.h (record_btrace_frame_unwind)
2981 (record_btrace_tailcall_frame_unwind): New declarations.
2982 * dwarf2-frame: Include record.h
2983 (dwarf2_frame_cfa): Throw an error for btrace frames.
2984 * record-btrace.c: Include hashtab.h.
2985 (btrace_get_bfun_name): New.
2986 (btrace_call_history): Call btrace_get_bfun_name.
2987 (struct btrace_frame_cache): New.
2988 (bfcache): New.
2989 (bfcache_hash, bfcache_eq, bfcache_new): New.
2990 (btrace_get_frame_function): New.
2991 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
2992 (record_btrace_frame_this_id): Compute own id.
2993 (record_btrace_frame_prev_register): Provide PC, throw_error
2994 for all other registers.
2995 (record_btrace_frame_sniffer): Detect btrace frames.
2996 (record_btrace_tailcall_frame_sniffer): New.
2997 (record_btrace_frame_dealloc_cache): New.
2998 (record_btrace_frame_unwind): Add new functions.
2999 (record_btrace_tailcall_frame_unwind): New.
3000 (_initialize_record_btrace): Allocate cache.
3001 * btrace.c (btrace_clear): Call reinit_frame_cache.
3002 * NEWS: Announce it.
3003
3004 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3005
3006 * record-btrace.c (record_btrace_set_replay)
3007 (record_btrace_goto_begin, record_btrace_goto_end)
3008 (record_btrace_goto): New.
3009 (init_record_btrace_ops): Initialize them.
3010 * NEWS: Announce it.
3011
3012 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3013
3014 * record-btrace.c (record_btrace_find_new_threads)
3015 (record_btrace_thread_alive): New.
3016 (init_record_btrace_ops): Initialize to_find_new_threads and
3017 to_thread_alive.
3018
3019 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3020
3021 * record-btrace.c (record_btrace_resume): New.
3022 (record_btrace_wait): New.
3023 (init_record_btrace_ops): Initialize to_wait and to_resume.
3024
3025 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3026
3027 * record-btrace.c (record_btrace_xfer_partial)
3028 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
3029 (record_btrace_allow_memory_access): New.
3030 (init_record_btrace_ops): Initialize new methods.
3031 * target.c (raw_memory_xfer_partial): Bail out if target reports
3032 that this memory is not available.
3033
3034 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3035
3036 * target.h (target_ops) <to_insert_breakpoint>
3037 <to_remove_breakpoint>: Add target_ops parameter.
3038 (forward_target_insert_breakpoint): New.
3039 (forward_target_remove_breakpoint): New.
3040 (memory_remove_breakpoint, memory_insert_breakpoint):
3041 Add target_ops parameter.
3042 * target.c (target_insert_breakpoint): Split into this and ...
3043 (forward_target_insert_breakpoint): ... this.
3044 (target_remove_breakpoint): Split into this and ...
3045 (forward_target_remove_breakpoint): ... this.
3046 (debug_to_insert_breakpoint): Add target_ops parameter.
3047 Call forward_target_insert_breakpoint.
3048 (debug_to_remove_breakpoint): Add target_ops parameter.
3049 Call forward_target_remove_breakpoint.
3050 (update_current_target): Do not inherit or default to_insert_breakpoint
3051 and to_remove_breakpoint.
3052 * corelow.c (ignore): Add target_ops parameter.
3053 * exec.c (ignore): Add target_ops parameter.
3054 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
3055 Add target_ops parameter.
3056 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
3057 Add target_ops parameter.
3058 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
3059 Add target_ops parameter.
3060 * record-full.c (record_full_beneath_to_insert_breakpoint)
3061 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
3062 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
3063 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
3064 (record_full_core_remove_breakpoint): Add target_ops parameter.
3065 Update users.
3066 (record_full_beneath_to_insert_breakpoint_ops)
3067 (record_full_beneath_to_remove_breakpoint_ops)
3068 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
3069 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
3070 tmp_to_remove_breakpoint_ops,
3071 record_full_beneath_to_insert_breakpoint_ops, and
3072 record_full_beneath_to_remove_breakpoint_ops.
3073 * remote-m32r-sdi.c (m32r_insert_breakpoint)
3074 (m32r_remove_breakpoint): Add target_ops parameter.
3075 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
3076 Add target_ops parameter.
3077 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
3078 Add target_ops parameter.
3079
3080 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3081 Markus Metzger <markus.t.metzger@intel.com>
3082
3083 * record-btrace.c: Include frame-unwind.h.
3084 (record_btrace_frame_unwind_stop_reason)
3085 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
3086 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
3087 New.
3088 (init_record_btrace_ops): Install it.
3089
3090 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3091
3092 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
3093 get_prev_frame_1.
3094
3095 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3096
3097 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
3098 earlier.
3099
3100 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3101
3102 * frame-unwind.c: Include target.h.
3103 (frame_unwind_try_unwinder): New function with code from ...
3104 (frame_unwind_find_by_frame): ... here. New variable
3105 unwinder_from_target, call also target_get_unwinder)
3106 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
3107 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
3108 * target.h (struct target_ops): New fields to_get_unwinder and
3109 to_get_tailcall_unwinder.
3110 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
3111
3112 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3113
3114 * record-btrace.c (record_btrace_fetch_registers)
3115 (record_btrace_store_registers)
3116 (record_btrace_to_prepare_to_store): New.
3117 (init_record_btrace_ops): Add the above.
3118
3119 2014-01-16 Tom Tromey <tromey@redhat.com>
3120
3121 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
3122 * target.h (struct target_ops) <to_prepare_to_store>: Add
3123 argument.
3124 (target_prepare_to_store): Add argument.
3125 * target.c (debug_to_prepare_to_store): Add argument.
3126 (update_current_target): Update.
3127 * remote.c (remote_prepare_to_store): Add 'self' argument.
3128 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
3129 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
3130 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
3131 * record-full.c (record_full_core_prepare_to_store): Add 'self'
3132 argument.
3133 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
3134 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
3135 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
3136 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
3137 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
3138
3139 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3140
3141 * btrace.h (replay) <replay>: New.
3142 (btrace_is_replaying): New.
3143 * btrace.c (btrace_clear): Free replay iterator.
3144 (btrace_is_replaying): New.
3145 * record-btrace.c (record_btrace_is_replaying): New.
3146 (record_btrace_info): Print insn number if replaying.
3147 (record_btrace_insn_history): Start at replay position.
3148 (record_btrace_call_history): Start at replay position.
3149 (init_record_btrace_ops): Init to_record_is_replaying.
3150
3151 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3152
3153 * record-btrace.c (record_btrace_insn_history_range): Include
3154 end.
3155 (record_btrace_insn_history_from): Adjust range.
3156 (record_btrace_call_history_range): Include
3157 end.
3158 (record_btrace_call_history_from): Adjust range.
3159 * NEWS: Announce changes.
3160
3161 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3162
3163 * record.h (enum record_print_flag)
3164 <record_print_indent_calls>: New.
3165 * record.c (get_call_history_modifiers): Recognize /c modifier.
3166 (_initialize_record): Document /c modifier.
3167 * record-btrace.c (btrace_call_history): Add btinfo parameter.
3168 Reorder fields. Optionally indent the function name. Update
3169 all users.
3170 * NEWS: Announce changes.
3171
3172 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3173
3174 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
3175
3176 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3177
3178 * btrace.c (ftrace_new_function): Start counting at one.
3179 * record-btrace.c (record_btrace_info): Adjust number of calls
3180 and insns.
3181 * NEWS: Announce it.
3182
3183 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3184
3185 * record-btrace.c (btrace_call_history_insn_range): Print
3186 insn range as [begin, end].
3187
3188 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3189
3190 * btrace.h (struct btrace_func_link): New.
3191 (enum btrace_function_flag): New.
3192 (struct btrace_inst): Rename to ...
3193 (struct btrace_insn): ...this. Update all users.
3194 (struct btrace_func) <ibegin, iend>: Remove.
3195 (struct btrace_func_link): New.
3196 (struct btrace_func): Rename to ...
3197 (struct btrace_function): ...this. Update all users.
3198 (struct btrace_function) <segment, flow, up, insn, insn_offset)
3199 (number, level, flags>: New.
3200 (struct btrace_insn_iterator): Rename to ...
3201 (struct btrace_insn_history): ...this.
3202 Update all users.
3203 (struct btrace_insn_iterator, btrace_call_iterator): New.
3204 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
3205 (struct btrace_target_info) <begin, end, level>
3206 <insn_history, call_history>: New.
3207 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3208 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3209 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3210 (btrace_call_number, btrace_call_begin, btrace_call_end)
3211 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3212 (btrace_find_function_by_number, btrace_set_insn_history)
3213 (btrace_set_call_history): New.
3214 * btrace.c (btrace_init_insn_iterator)
3215 (btrace_init_func_iterator, compute_itrace): Remove.
3216 (ftrace_print_function_name, ftrace_print_filename)
3217 (ftrace_skip_file): Change
3218 parameter to const.
3219 (ftrace_init_func): Remove.
3220 (ftrace_debug): Use new btrace_function fields.
3221 (ftrace_function_switched): Also consider gaining and
3222 losing symbol information).
3223 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
3224 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
3225 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
3226 New.
3227 (ftrace_new_function): Move. Remove debug print.
3228 (ftrace_update_lines, ftrace_update_insns): New.
3229 (ftrace_update_function): Check for call, ret, and jump.
3230 (compute_ftrace): Renamed to ...
3231 (btrace_compute_ftrace): ...this. Rewritten to compute call
3232 stack.
3233 (btrace_fetch, btrace_clear): Updated.
3234 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
3235 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
3236 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
3237 (btrace_call_number, btrace_call_begin, btrace_call_end)
3238 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
3239 (btrace_find_function_by_number, btrace_set_insn_history)
3240 (btrace_set_call_history): New.
3241 * record-btrace.c (require_btrace): Use new btrace thread
3242 info fields.
3243 (record_btrace_info, btrace_insn_history)
3244 (record_btrace_insn_history, record_btrace_insn_history_range):
3245 Use new btrace thread info fields and new iterator.
3246 (btrace_func_history_src_line): Rename to ...
3247 (btrace_call_history_src_line): ...this. Use new btrace
3248 thread info fields.
3249 (btrace_func_history): Rename to ...
3250 (btrace_call_history): ...this. Use new btrace thread info
3251 fields and new iterator.
3252 (record_btrace_call_history, record_btrace_call_history_range):
3253 Use new btrace thread info fields and new iterator.
3254
3255 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3256
3257 * frame.h (frame_id_build_unavailable_stack_special): New.
3258 * frame.c (frame_id_build_unavailable_stack_special): New.
3259
3260 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3261
3262 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
3263 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
3264 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
3265 to gdbarch.
3266 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
3267 (i386_insn_is_jump, i386_jmp_p): New.
3268 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
3269 insn_is_jump to gdbarch.
3270 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
3271 * gdbarch.h: Regenerated.
3272 * gdbarch.c: Regenerated.
3273 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
3274 (default_insn_is_jump): New.
3275 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
3276 (default_insn_is_jump): New.
3277
3278 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3279
3280 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
3281 Change to ...
3282 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
3283 (btrace_read_type) <btrace_read_new>: Change to ...
3284 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
3285
3286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
3287
3288 * common/linux-btrace.c (linux_read_btrace): Free trace from
3289 previous iteration.
3290
3291 2014-01-15 Doug Evans <dje@google.com>
3292
3293 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
3294 uint32_t.
3295
3296 2014-01-15 Tom Tromey <tromey@redhat.com>
3297
3298 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
3299 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
3300 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
3301 (set_objfile_main_name): New function.
3302 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
3303 language_of_main>: New fields.
3304 (set_objfile_main_name): Declare.
3305 * symtab.c (find_main_name): Loop over objfiles to find the main
3306 name and language.
3307 (set_main_name): Now static.
3308 (get_main_info): Add comment.
3309 * symtab.h (set_main_name): Don't declare.
3310
3311 2014-01-15 Tom Tromey <tromey@redhat.com>
3312
3313 * symtab.c (main_progspace_key): New global.
3314 (struct main_info): New.
3315 (name_of_main, language_of_main): Remove.
3316 (get_main_info, main_info_cleanup): New function.
3317 (set_main_name, main_name, main_language): Use get_main_info.
3318 (_initialize_symtab): Initialize main_progspace_key.
3319
3320 2014-01-15 Tom Tromey <tromey@redhat.com>
3321
3322 * dbxread.c (process_one_symbol): Update.
3323 * dwarf2read.c (read_partial_die): Update.
3324 * symfile.c (set_initial_language): Call main_language.
3325 * symtab.c (language_of_main): Now static.
3326 (set_main_name): Add 'lang' parameter.
3327 (find_main_name): Update.
3328 (main_language): New function.
3329 (symtab_observer_executable_changed): Update.
3330 * symtab.h (set_main_name): Update.
3331 (language_of_main): Remove.
3332 (main_language): Declare.
3333
3334 2014-01-15 Tom Tromey <tromey@redhat.com>
3335
3336 * symfile.c (init_entry_point_info): Use new "initialized" field.
3337 Update.
3338 * objfiles.h (struct entry_point) <initialized>: New field.
3339 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
3340 (struct objfile) <ei>: ...here. Remove.
3341 * objfiles.c (entry_point_address_query): Update.
3342
3343 2014-01-15 Tom Tromey <tromey@redhat.com>
3344
3345 * objfiles.c (entry_point_address_query): Relocate entry point
3346 address.
3347 (objfile_relocate1): Do not relocate entry point address.
3348 * objfiles.h (struct entry_info) <entry_point>: Update comment.
3349 <the_bfd_section_index>: New field.
3350 * symfile.c (init_entry_point_info): Find the entry point's
3351 section.
3352
3353 2014-01-15 Tom Tromey <tromey@redhat.com>
3354
3355 * solib-frv.c (enable_break): Use entry_point_address_query.
3356
3357 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3358
3359 * NEWS: Add note on improved process record-replay on
3360 arm*-linux* targets.
3361
3362 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3363
3364 * arm-tdep.c (enum arm_record_result): New enum.
3365 (arm_record_unsupported_insn): New function.
3366 (arm_record_coproc_data_proc): Removed.
3367 (thumb2_record_ld_st_multiple): New function.
3368 (thumb2_record_ld_st_dual_ex_tbb): New function.
3369 (thumb2_record_data_proc_sreg_mimm): New function.
3370 (thumb2_record_ps_dest_generic): New function.
3371 (thumb2_record_branch_misc_cntrl): New function.
3372 (thumb2_record_str_single_data): New function.
3373 (thumb2_record_ld_mem_hints): New function.
3374 (thumb2_record_ld_word): New function.
3375 (thumb2_record_lmul_lmla_div): New function.
3376 (thumb2_record_decode_insn_handler): New function.
3377 (decode_insn): Add thumb32 instruction handlers.
3378
3379 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3380
3381 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
3382 (struct arm_linux_record_tdep): Declare.
3383 (arm_canonicalize_syscall): New function.
3384 (arm_all_but_pc_registers_record): New function.
3385 (arm_linux_syscall_record): New function.
3386 (arm_linux_init_abi): Add syscall recording constructs.
3387 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
3388 decoding. (arm_record_coproc_data_proc): Update arm syscall
3389 decoding.
3390 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
3391 <arm_syscall_record>: New field.
3392 * configure.tgt (arm*-*-linux*): Add linux-record.o to
3393 gdb_target_obs.
3394
3395 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3396
3397 * arm-tdep.c (thumb_record_misc): Update to use sp as base
3398 register for push instruction recording.
3399
3400 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3401
3402 * arm-tdep.c (thumb_record_misc): Update to correct logical
3403 error while recording ldm, ldmia and pop instructions.
3404
3405 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
3406
3407 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
3408
3409 2014-01-15 Pedro Alves <palves@redhat.com>
3410
3411 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
3412 (go32_resume, go32_fetch_registers, store_register)
3413 (go32_store_registers, go32_prepare_to_store)
3414 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
3415 (go32_create_inferior, go32_can_run, go32_terminal_init)
3416 (go32_terminal_inferior, go32_terminal_ours): Delete forward
3417 declarations.
3418
3419 2014-01-15 Tom Tromey <tromey@redhat.com>
3420
3421 * target.h (async_callback_ftype): New typedef.
3422 (struct target_ops) <to_async>: Use it.
3423
3424 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3425
3426 * python/py-value.c (get_field_type): Remove unnecessary curly
3427 braces for single-statement if block.
3428
3429 2014-01-15 Joel Brobecker <brobecker@adacore.com>
3430
3431 * python/py-type.c (convert_field): Add missing empty line
3432 after declarations.
3433
3434 2014-01-14 Doug Evans <dje@google.com>
3435
3436 * symfile.h (expand_symtabs_matching): Renamed from
3437 expand_partial_symbol_names. Update prototype.
3438 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3439 * symfile.c (expand_symtabs_matching): Renamed from
3440 expand_partial_symbol_names. New args file_matcher, kind.
3441 Rename arg fun to symbol_matcher.
3442 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
3443 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
3444 ada_expand_partial_symbol_name.
3445 (ada_make_symbol_completion_list): Update to call
3446 expand_symtabs_matching.
3447 (ada_add_global_exceptions): Call expand_symtabs_matching.
3448 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
3449 call map_symbol_filenames.
3450 * symtab.c (sources_info): Update to call map_symbol_filenames.
3451 (search_symbols): Call expand_symtabs_matching.
3452 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
3453 (default_make_symbol_completion_list_break_on): Update to call
3454 expand_symtabs_matching.
3455 (make_source_files_completion_list): Update to call
3456 map_symbol_filenames.
3457
3458 2014-01-14 Doug Evans <dje@google.com>
3459
3460 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
3461 (expand_symtabs_symbol_matcher_ftype): New typedef.
3462 (quick_symbol_functions.expand_symtabs_matching): Update to use.
3463 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3464 * symfile.c (expand_partial_symbol_names): Update to use
3465 expand_symtabs_symbol_matcher_ftype.
3466 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
3467 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3468 Arg name_matcher renamed to symbol_matcher.
3469 * psymtab.c (recursively_search_psymtabs): Update to use
3470 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
3471 sym_matcher.
3472 (expand_symtabs_matching_via_partial): Update to use
3473 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
3474 Arg name_matcher renamed to symbol_matcher.
3475
3476 2014-01-14 Doug Evans <dje@google.com>
3477
3478 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
3479 (map_partial_symbol_filenames): Ditto.
3480 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
3481 (map_partial_symbol_filenames): Ditto.
3482 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
3483 (map_partial_symbol_filenames): Ditto.
3484 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
3485 (map_partial_symbol_filenames): Ditto.
3486 * symtab.c: Delete #include "psymtab.h".
3487
3488 2014-01-14 Pedro Alves <palves@redhat.com>
3489 Tom Tromey <tromey@redhat.com>
3490
3491 * infrun.c (use_displaced_stepping): Use find_record_target
3492 instead of RECORD_IS_USED.
3493 (adjust_pc_after_break): Use record_full_is_used instead of
3494 RECORD_IS_USED.
3495 * record-btrace.c (record_btrace_open): Call record_preopen
3496 instead of checking RECORD_IS_USED.
3497 * record-full.c (record_full_shortname)
3498 (record_full_core_shortname): New globals.
3499 (record_full_is_used): New function.
3500 (find_full_open): Call record_preopen instead of checking
3501 RECORD_IS_USED.
3502 (init_record_full_ops): Set the target's shortname to
3503 record_full_shortname.
3504 (init_record_full_core_ops): Set the target's shortname to
3505 record_full_core_shortname.
3506 * record-full.h (record_full_is_used): Declare.
3507 * record.c (find_record_target): Make extern.
3508 (record_preopen): New function.
3509 * record.h (RECORD_IS_USED): Delete macro.
3510 (find_record_target, record_preopen): Declare functions.
3511
3512 2014-01-14 Yao Qi <yao@codesourcery.com>
3513
3514 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
3515 'len''s type to ULONGEST.
3516 (core_xfer_shared_libraries_aix): Likewise.
3517 * gdbarch.c, gdbarch.h: Regenerated.
3518 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
3519 Change type of 'len' to ULONGEST.
3520 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3521 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
3522
3523 2014-01-14 Yao Qi <yao@codesourcery.com>
3524
3525 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
3526 type of 'len' to ULONGEST.
3527 (linux_xfer_osdata_processgroups): Likewise.
3528 (linux_xfer_osdata_threads): Likewise.
3529 (linux_xfer_osdata_fds): Likewise.
3530 (linux_xfer_osdata_isockets): Likewise.
3531 (linux_xfer_osdata_shm): Likewise.
3532 (linux_xfer_osdata_sem): Likewise.
3533 (linux_xfer_osdata_msg): Likewise.
3534 (linux_common_xfer_osdata): Likewise.
3535 (struct osdata_type) <getter>: Likewise.
3536 * common/linux-osdata.h (linux_common_xfer_osdata): Update
3537 the declaration.
3538
3539 2014-01-14 Yao Qi <yao@codesourcery.com>
3540
3541 * target.h (target_xfer_partial_ftype): Update.
3542 (struct target_ops) <to_xfer_partial>: Change 'len' type to
3543 ULONGEST.
3544 * aix-thread.c (aix_thread_xfer_partial): Change type of
3545 argument 'len' to ULONGEST.
3546 * auxv.c (procfs_xfer_auxv): Likewise.
3547 (ld_so_xfer_auxv): Likewise.
3548 (memory_xfer_auxv): Likewise.
3549 * bfd-target.c (target_bfd_xfer_partial): Likewise.
3550 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
3551 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
3552 * corelow.c (core_xfer_partial): Likewise.
3553 * ctf.c (ctf_xfer_partial): Likewise.
3554 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
3555 '%u'.
3556 (darwin_read_dyld_info): Likewise.
3557 (darwin_xfer_partial): Likewise.
3558 * exec.c (section_table_xfer_memory_partial): Likewise.
3559 (exec_xfer_partial): Likewise.
3560 * exec.h (section_table_xfer_memory_partial): Update
3561 declaration.
3562 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
3563 instead of plongest.
3564 (gnu_xfer_partial): Likewise.
3565 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
3566 (ia64_hpux_xfer_solib_got): Likewise.
3567 (ia64_hpux_xfer_partial): Likewise.
3568 * ia64-linux-nat.c (ia64_linux_xfer_partial):
3569 * inf-ptrace.c (inf_ptrace_xfer_partial):
3570 * inf-ttrace.c (inf_ttrace_xfer_partial):
3571 * linux-nat.c (linux_xfer_siginfo): Likewise.
3572 (linux_nat_xfer_partial): Likewise.
3573 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
3574 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
3575 * monitor.c (monitor_xfer_memory): Likewise.
3576 (monitor_xfer_partial): Likewise.
3577 * procfs.c (procfs_xfer_partial): Likewise.
3578 * record-full.c (record_full_xfer_partial): Likewise.
3579 (record_full_core_xfer_partial): Likewise.
3580 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
3581 instead of plongest.
3582 (gdbsim_xfer_partial): Likewise.
3583 * remote.c (remote_xfer_partial): Likewise.
3584 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
3585 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
3586 declaration.
3587 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
3588 (rs6000_xfer_shared_libraries): Likewise.
3589 * sol-thread.c (sol_thread_xfer_partial): Likewise.
3590 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
3591 (sparc_xfer_partial): Likewise.
3592 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
3593 (spu_xfer_partial): Likewise.
3594 * spu-multiarch.c (spu_xfer_partial): Likewise.
3595 * target.c (target_read_live_memory): Likewise.
3596 (memory_xfer_live_readonly_partial): Likewise.
3597 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
3598 (target_xfer_partial, default_xfer_partial): Likewise.
3599 (current_xfer_partial): Likewise.
3600 * tracepoint.c (tfile_xfer_partial): Likewise.
3601 * windows-nat.c (windows_xfer_memory): Likewise. Call
3602 pulongest instead of plongest.
3603 (windows_xfer_partial): Likewise.
3604 (windows_xfer_shared_libraries): Likewise.
3605
3606 2014-01-14 Yao Qi <yao@codesourcery.com>
3607
3608 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
3609 target_xfer_partial_ftype.
3610
3611 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
3612
3613 PR python/15464
3614 PR python/16113
3615 * valops.c (value_struct_elt_bitpos): New function
3616 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
3617 object to 'None' if the field name is an empty string ("").
3618 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
3619 attribute to look for a field when 'name' is 'None'.
3620 (get_field_type): New function
3621
3622 2014-01-13 Doug Evans <dje@google.com>
3623
3624 PR symtab/16426
3625 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
3626 (try_open_dwop_file): Ditto.
3627 * gdb_bfd.c: #include "vec.h".
3628 (bfdp): New typedef.
3629 (struct gdb_bfd_data): New member included_bfds.
3630 (gdb_bfd_unref): Unref all included bfds.
3631 (gdb_bfd_record_inclusion): New function.
3632 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
3633
3634 2014-01-13 Tom Tromey <tromey@redhat.com>
3635
3636 * gdbcore.h (deprecated_core_resize_section_table): Remove.
3637
3638 2014-01-13 Tom Tromey <tromey@redhat.com>
3639
3640 * defs.h (use_windows): Remove.
3641 * gdb.c (main): Update.
3642 * main.c (captured_main, gdb_main): Update.
3643 * main.h (struct captured_main_args) <use_windows>: Remove.
3644 * top.c (use_windows): Remove.
3645
3646 2014-01-13 Tom Tromey <tromey@redhat.com>
3647
3648 * defs.h (deprecated_flush_hook): Remove.
3649
3650 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3651
3652 PR threads/16216
3653 * linux-thread-db.c (try_thread_db_load): Add parameter
3654 check_auto_load_safe. Move here the file_is_auto_load_safe call.
3655 (try_thread_db_load_from_pdir_1): Move it there from here.
3656 (try_thread_db_load_from_sdir): Update caller.
3657 (try_thread_db_load_from_dir): Move it there from here.
3658
3659 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
3660
3661 * regformats/regdat.sh: Always rewrite the register file.
3662
3663 2014-01-13 Pedro Alves <palves@redhat.com>
3664
3665 * Makefile.in (CHECK_HEADERS): New variable.
3666 (check-headers:): New rule.
3667
3668 2014-01-13 Tom Tromey <tromey@redhat.com>
3669
3670 * cli/cli-setshow.c (do_set_command): Update.
3671 * defs.h (deprecated_set_hook): Remove.
3672 * top.c (deprecated_set_hook): Remove.
3673
3674 2014-01-13 Pedro Alves <palves@redhat.com>
3675
3676 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
3677 the tracepoint if the PC is a pseudo-register.
3678
3679 2014-01-13 Tom Tromey <tromey@redhat.com>
3680
3681 * defs.h (XCALLOC): Remove.
3682 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
3683 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
3684 * dwarf2loc.c (allocate_piece_closure): Likewise.
3685 * elfread.c (elf_symfile_segments): Likewise.
3686 (elf_symfile_segments): Likewise.
3687 * gdbtypes.c (copy_type_recursive): Likewise.
3688 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
3689 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
3690 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
3691 XCALLOC.
3692 * mt-tdep.c (mt_gdbarch_init): Likewise.
3693 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
3694 XCALLOC.
3695 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
3696 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
3697 * registry.c (registry_alloc_data): Likewise.
3698 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
3699 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3700 * serial.c (serial_fdopen_ops): Likewise.
3701 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
3702 XCALLOC.
3703 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
3704 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
3705 not XCALLOC.
3706
3707 2014-01-13 Tom Tromey <tromey@redhat.com>
3708
3709 * defs.h (XMALLOC): Remove.
3710 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
3711 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
3712 * cli-out.c (struct ui_out *): Likewise.
3713 * cli/cli-dump.c (add_dump_command): Likewise.
3714 (add_dump_command): Likewise.
3715 * complaints.c (get_complaints): Likewise.
3716 (find_complaint): Likewise.
3717 * dwarf2-frame.c (execute_cfa_program): Likewise.
3718 * dwarf2read.c (abbrev_table_read_table): Likewise.
3719 * gdbarch.sh: Likewise.
3720 * gdbarch.c: Rebuild.
3721 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
3722 * interps.c (interp_new): Likewise.
3723 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
3724 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
3725 * mi/mi-console.c (mi_console_file_new): Likewise.
3726 * mi/mi-interp.c (mi_interpreter_init): Likewise.
3727 * mi/mi-out.c (mi_out_new): Likewise.
3728 * mi/mi-parse.c (mi_parse): Likewise.
3729 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
3730 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
3731 * observer.c (xalloc_observer_list_node): Likewise.
3732 * regcache.c (regcache_xmalloc_1): Likewise.
3733 * reggroups.c (reggroup_new): Likewise.
3734 (_initialize_reggroup): Likewise.
3735 * registry.c (register_data_with_cleanup): Likewise.
3736 * remote.c (remote_notif_stop_alloc_reply): Likewise.
3737 * ser-base.c (serial_ttystate): Likewise.
3738 * ser-mingw.c (make_pipe_state): Likewise.
3739 * ser-pipe.c (pipe_open): Likewise.
3740 * serial.c (serial_open): Likewise.
3741 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
3742 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
3743 (tui_alloc_win_info): Likewise.
3744 (tui_add_content_elements): Likewise.
3745 * tui/tui-file.c (tui_file_new): Likewise.
3746 * tui/tui-out.c (tui_out_new): Likewise.
3747 * ui-file.c (mem_file_new): Likewise.
3748 * ui-out.c (push_level): Likewise.
3749 (make_cleanup_ui_out_end): Likewise.
3750 (append_header_to_list): Likewise.
3751 (ui_out_new): Likewise.
3752 * user-regs.c (user_reg_add_builtin): Likewise.
3753
3754 2014-01-13 Tom Tromey <tromey@redhat.com>
3755
3756 * defs.h (XZALLOC): Remove.
3757 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
3758 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
3759 (get_ada_tasks_inferior_data): Likewise.
3760 * auto-load.c (get_auto_load_pspace_data): Likewise.
3761 * auxv.c (get_auxv_inferior_data): Likewise.
3762 * bfd-target.c (target_bfd_reopen): Likewise.
3763 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
3764 (deprecated_insert_raw_breakpoint): Likewise.
3765 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
3766 * corelow.c (core_open): Likewise.
3767 * darwin-nat.c (darwin_check_new_threads): Likewise.
3768 (darwin_attach_pid): Likewise.
3769 * dummy-frame.c (dummy_frame_push): Likewise.
3770 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3771 * dwarf2loc.c (allocate_piece_closure): Likewise.
3772 * elfread.c (elf_symfile_segments): Likewise.
3773 * eval.c (ptrmath_type_p): Likewise.
3774 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
3775 * gdbtypes.c (alloc_type_arch): Likewise.
3776 (alloc_type_instance): Likewise.
3777 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
3778 * inf-child.c (inf_child_can_use_agent): Likewise.
3779 * inflow.c (get_inflow_inferior_data): Likewise.
3780 * infrun.c (save_infcall_suspend_state): Likewise.
3781 * jit.c (jit_reader_load): Likewise.
3782 (get_jit_objfile_data): Likewise.
3783 (get_jit_program_space_data): Likewise.
3784 (jit_object_open_impl): Likewise.
3785 (jit_symtab_open_impl): Likewise.
3786 (jit_block_open_impl): Likewise.
3787 (jit_frame_sniffer): Likewise.
3788 * linux-fork.c (add_fork): Likewise.
3789 * maint.c (make_command_stats_cleanup): Likewise.
3790 * objfiles.c (get_objfile_pspace_data): Likewise.
3791 * opencl-lang.c (struct lval_closure): Likewise.
3792 * osdata.c (osdata_start_osdata): Likewise.
3793 * progspace.c (new_address_space): Likewise.
3794 (add_program_space): Likewise.
3795 * remote-sim.c (get_sim_inferior_data): Likewise.
3796 * sh-tdep.c (sh_gdbarch_init): Likewise.
3797 * skip.c (Ignore): Likewise.
3798 (skip_delete_command): Likewise.
3799 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
3800 (library_list_start_library): Likewise.
3801 (solib_aix_current_sos): Likewise.
3802 * solib-darwin.c (get_darwin_info): Likewise.
3803 (darwin_current_sos): Likewise.
3804 * solib-dsbt.c (get_dsbt_info): Likewise.
3805 * solib-ia64-hpux.c (new_so_list): Likewise.
3806 (ia64_hpux_get_solib_linkage_addr): Likewise.
3807 * solib-spu.c (append_ocl_sos): Likewise.
3808 (spu_current_sos): Likewise.
3809 * solib-svr4.c (get_svr4_info): Likewise.
3810 (svr4_keep_data_in_core): Likewise.
3811 (library_list_start_library): Likewise.
3812 (svr4_default_sos): Likewise.
3813 (svr4_read_so_list): Likewise.
3814 * solib-target.c (library_list_start_library): Likewise.
3815 (solib_target_current_sos): Likewise.
3816 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
3817 * symfile-debug.c (install_symfile_debug_logging): Likewise.
3818 * symfile.c (default_symfile_segments): Likewise.
3819 * target-descriptions.c (tdesc_data_init): Likewise.
3820 (tdesc_create_reg): Likewise.
3821 (struct tdesc_type *): Likewise.
3822 (tdesc_create_vector): Likewise.
3823 (tdesc_set_struct_size): Likewise.
3824 (struct tdesc_type *): Likewise.
3825 (tdesc_free_feature): Likewise.
3826 (tdesc_create_feature): Likewise.
3827 * windows-nat.c (windows_add_thread): Likewise.
3828 (windows_make_so): Likewise.
3829 * xml-support.c (gdb_xml_body_text): Likewise.
3830 (gdb_xml_create_parser_and_cleanup): Likewise.
3831 (xml_process_xincludes): Likewise.
3832 * xml-syscall.c (allocate_syscalls_info): Likewise.
3833 (syscall_create_syscall_desc): Likewise.
3834
3835 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
3836
3837 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
3838 function, with code from i386_stap_parse_special_token.
3839 (i386_stap_parse_special_token_three_arg_disp): Likewise.
3840 (i386_stap_parse_special_token): Move code to the two functions
3841 above; simplify it.
3842
3843 2014-01-09 Pedro Alves <palves@redhat.com>
3844 Hui Zhu <hui@codesourcery.com>
3845
3846 PR gdb/16101
3847 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
3848 bp_err_string. Don't mark the location shlib_disabled if the
3849 error thrown wasn't a generic or memory error. Catch errors
3850 thrown while inserting breakpoints in overlayed code. Output
3851 error message of software breakpoints.
3852 * remote.c (remote_insert_breakpoint): If this breakpoint has
3853 target-side commands but this stub doesn't support Z0 packets,
3854 throw NOT_SUPPORTED_ERROR error.
3855 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
3856 * target.h (target_insert_breakpoint): Extend comment.
3857 (target_insert_hw_breakpoint): Add comment.
3858
3859 2014-01-08 Pedro Alves <palves@redhat.com>
3860
3861 * remote.c (remote_add_thread): Add threads silently if starting
3862 up.
3863 (remote_notice_new_inferior): If in all-stop, and starting up,
3864 don't call notice_new_inferior.
3865 (get_current_thread): New function, factored out from ...
3866 (add_current_inferior_and_thread): ... this. Adjust.
3867 (remote_start_remote) <all-stop>: Fetch the thread list. If we
3868 found any thread, then select the remote's current thread as GDB's
3869 current thread too.
3870
3871 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3872
3873 * NEWS: Create a new section for the next release branch.
3874 Rename the section of the current branch, now that it has
3875 been cut.
3876
3877 2014-01-08 Joel Brobecker <brobecker@adacore.com>
3878
3879 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
3880 * version.in: Bump version to 7.7.50.DATE-cvs.
3881
3882 2014-01-08 Yao Qi <yao@codesourcery.com>
3883
3884 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
3885 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
3886 (spu_xfer_partial): Cast 'buf' to 'const char *'.
3887
3888 2014-01-08 Yao Qi <yao@codesourcery.com>
3889
3890 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
3891 return value of bfd_get_filename to symbol_file_add_from_bfd.
3892
3893 2014-01-08 Pierre Muller <muller@sourceware.org>
3894
3895 Fix PR16201.
3896 * coff-pe-read.c (struct read_pe_section_data): Add index field.
3897 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
3898 to prim_record_mininal_symbol_and_info.
3899 (add_pe_forwarded_sym): Use known section number of forwarded symbol
3900 in call to prim_record_minimal_symbol_and_info.
3901 (read_pe_exported_syms): Set index field of section_data.
3902
3903 2014-01-07 Andrew Pinski <apinski@cavium.com>
3904
3905 * features/aarch64-core.xml (cpsr): Change to be 64bit.
3906 * features/aarch64.c: Regenerate.
3907
3908 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
3909
3910 * target.c (return_null): Define.
3911 (update_current_target): Use it instead of return_zero for
3912 functions that return a pointer.
3913
3914 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
3915
3916 * source.c (add_path): Fix check for duplicated paths in the previously
3917 included paths.
3918
3919 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
3920
3921 * ada-lang.c: Remove duplicated include statements.
3922 * alphabsd-nat.c: Ditto.
3923 * amd64-darwin-tdep.c: Ditto.
3924 * amd64fbsd-nat.c: Ditto.
3925 * auto-load.c: Ditto.
3926 * ax-gdb.c: Ditto.
3927 * breakpoint.c: Ditto.
3928 * dbxread.c: Ditto.
3929 * fork-child.c: Ditto.
3930 * gdb_usleep.c: Ditto.
3931 * i386-darwin-tdep.c: Ditto.
3932 * i386fbsd-nat.c: Ditto.
3933 * infcmd.c: Ditto.
3934 * inferior.c: Ditto.
3935 * jv-lang.c: Ditto.
3936 * linux-nat.c: Ditto.
3937 * linux-tdep.c: Ditto.
3938 * m68kbsd-nat.c: Ditto.
3939 * m68klinux-nat.c: Ditto.
3940 * microblaze-tdep.c: Ditto.
3941 * mips-linux-tdep.c: Ditto.
3942 * mn10300-tdep.c: Ditto.
3943 * nto-tdep.c: Ditto.
3944 * opencl-lang.c: Ditto.
3945 * osdata.c: Ditto.
3946 * printcmd.c: Ditto.
3947 * regcache.c: Ditto.
3948 * remote-m32r-sdi.c: Ditto.
3949 * remote.c: Ditto.
3950 * symfile.c: Ditto.
3951 * symtab.c: Ditto.
3952 * tilegx-linux-nat.c: Ditto.
3953 * tilegx-tdep.c: Ditto.
3954 * tracepoint.c: Ditto.
3955 * valops.c: Ditto.
3956 * vaxbsd-nat.c: Ditto.
3957 * windows-nat.c: Ditto.
3958 * xtensa-tdep.c: Ditto.
3959
3960 2014-01-07 Yao Qi <yao@codesourcery.com>
3961
3962 * spu-linux-nat.c (_initialize_spu_nat): Declare.
3963
3964 2014-01-07 Yao Qi <yao@codesourcery.com>
3965 Joel Brobecker <brobecker@adacore.com>
3966
3967 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
3968 (pdc_write_regs): Likewise.
3969 (fetch_regs_kernel_thread): Likewise.
3970 (store_regs_kernel_thread): Likewise.
3971
3972 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3973
3974 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
3975 tagged type objects to their actual type.
3976
3977 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3978
3979 * ada-valprint.c (print_field_values): Add "language" parameter.
3980 Update calls to print_field_values and print_variant_part.
3981 Pass new parameter "language" in call to val_print instead
3982 of "current_language". Replace call to ada_val_print by call
3983 to val_print.
3984 (print_variant_part): Add "language" parameter.
3985 (ada_val_print_struct_union): Update call to print_field_values.
3986
3987 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3988
3989 * ada-valprint.c (ui_memcpy): Delete.
3990 (ada_print_floating): Update documentation. Add empty line
3991 between between function documentation and implementation.
3992 Delete variable "buffer". Use ui_file_xstrdup in place of
3993 ui_file_put. Minor adjustments following this change.
3994
3995 2014-01-07 Joel Brobecker <brobecker@adacore.com>
3996
3997 * ada-valprint.c (ada_val_print_string): New function,
3998 extracted from ada_val_print_array.
3999 (ada_val_print_array): Replace extracted code by call
4000 to ada_val_print_string followed by a return. Move
4001 "else" branch to the function's top block.
4002
4003 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4004
4005 * ada-valprint.c (ada_val_print_array): Move implementation
4006 down. Rename parameter "offset" and "val" into "offset_aligned"
4007 and "original_value" respectively. Add parameter "offset".
4008
4009 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4010
4011 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
4012 re-organizing the code. Change the "???" message printed
4013 when target type is a TYPE_CODE_UNDEF into
4014 "<ref to undefined type>".
4015
4016 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4017
4018 * ada-valprint.c (print_record): Delete, implementation inlined...
4019 (ada_val_print_struct_union): ... here. Remove call to
4020 ada_check_typedef in inlined implementation.
4021
4022 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4023
4024 * ada-valprint.c (ada_val_print_gnat_array): New function,
4025 extracted from ada_val_print_1;
4026 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
4027 (ada_val_print_flt, ada_val_print_struct_union)
4028 (ada_val_print_ref): Likewise.
4029 (ada_val_print_1): Delete variables i and elttype.
4030 Replace extracted-out code by call to corresponding
4031 new functions.
4032
4033 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4034
4035 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
4036
4037 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4038
4039 * ada-valprint.c (ada_val_print_1): Replace calls to
4040 ada_val_print_1 by calls to val_print.
4041
4042 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4043
4044 * ada-valprint.c (ada_val_print_1): Add parameter "language".
4045 Update calls to self accordingly. Replace calls to c_val_print
4046 by calls to val_print.
4047
4048 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4049
4050 * ada-valprint.c (print_record): Delete declaration.
4051 (adjust_type_signedness, ada_val_print_1): Likewise.
4052 (ada_val_print): Move function implementation down.
4053 (print_variant_part, print_field_values, print_record):
4054 Move function implementation up.
4055
4056 2014-01-07 Joel Brobecker <brobecker@adacore.com>
4057
4058 * python/py-type.c (typy_get_name): New function.
4059 (type_object_getset): Add entry for attribute "name".
4060 * NEWS: Add entry mentioning this new attribute.
4061
4062 2014-01-07 Yao Qi <yao@codesourcery.com>
4063
4064 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
4065 statement.
4066
4067 2014-01-07 Yao Qi <yao@codesourcery.com>
4068
4069 * gnu-nat.c (info_port_rights): Add qualifier const to
4070 argument args.
4071
4072 2014-01-07 Yao Qi <yao@codesourcery.com>
4073
4074 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
4075
4076 2014-01-07 Yao Qi <yao@codesourcery.com>
4077
4078 * gnu-nat.c (make_inf) Update declaration.
4079 (make_inf): Make it static.
4080 (inf_set_traced): Likewise.
4081 (inf_port_to_thread, inf_task_died_status): Likewise.
4082
4083 2014-01-07 Yao Qi <yao@codesourcery.com>
4084
4085 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
4086
4087 2014-01-07 Yao Qi <yao@codesourcery.com>
4088
4089 * gnu-nat.c (_initialize_gnu_nat): Declare.
4090
4091 2014-01-07 Yao Qi <yao@codesourcery.com>
4092
4093 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
4094 'enum bfd_endian'.
4095 (struct gdbarch_info) <byte_order>: Change type to
4096 'enum bfd_endian'.
4097 <byte_order_for_code>: Likewise.
4098 * gdbarch.c, gdbarch.h: Regenerated.
4099
4100 2014-01-06 Sasha Smundak <asmundak@google.com>
4101
4102 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
4103
4104 2014-01-06 Tom Tromey <tromey@redhat.com>
4105
4106 * doublest.c (convert_doublest_to_floatformat): Use const, not
4107 CONST.
4108 * somread.c (som_symtab_read): Likewise.
4109
4110 2014-01-07 Hui Zhu <hui@codesourcery.com>
4111
4112 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
4113 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
4114 (gdb_bfd_fopen): Ditto.
4115 (gdb_bfd_openr): Ditto.
4116 (gdb_bfd_openw): Ditto.
4117 (gdb_bfd_openr_iovec): Ditto.
4118 (gdb_bfd_fdopenr): Ditto.
4119 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
4120 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
4121 with xstrdup.
4122 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
4123 with xstrdup.
4124 * symfile-mem.c (symbol_file_add_from_memory): Removed
4125 gdb_bfd_stash_filename.
4126
4127 2014-01-03 Doug Evans <dje@google.com>
4128
4129 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
4130 output.
4131
4132 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4133
4134 Update year range in copyright notice of all files.
4135
4136 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4137
4138 * top.c (print_gdb_version): Set copyright year to 2014.
4139
4140 2014-01-01 Joel Brobecker <brobecker@adacore.com>
4141
4142 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
4143
4144 For older changes see ChangeLog-2013.
4145 \f
4146 Local Variables:
4147 mode: change-log
4148 left-margin: 8
4149 fill-column: 74
4150 version-control: never
4151 coding: utf-8
4152 End: