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