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