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