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