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