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