1 2014-02-19 Tom Tromey <tromey@redhat.com>
3 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4 * target.c (target_pass_signals): Add argument.
5 * remote.c (remote_pass_signals): Add 'self' argument.
6 (remote_start_remote): Update.
7 * procfs.c (procfs_pass_signals): Add 'self' argument.
8 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
9 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
10 (linux_nat_create_inferior, linux_nat_attach): Update.
12 2014-02-19 Tom Tromey <tromey@redhat.com>
14 * windows-nat.c (windows_can_run): Add 'self' argument.
15 * target.h (struct target_ops) <to_can_run>: Add argument.
16 (target_can_run): Add argument.
17 * target.c (debug_to_can_run): Add argument.
18 (update_current_target): Update.
19 * nto-procfs.c (procfs_can_run): Add 'self' argument.
20 * inf-child.c (inf_child_can_run): Add 'self' argument.
21 * go32-nat.c (go32_can_run): Add 'self' argument.
23 2014-02-19 Tom Tromey <tromey@redhat.com>
25 * target.h (struct target_ops) <to_has_exited>: Add argument.
26 (target_has_exited): Add argument.
27 * target.c (debug_to_has_exited): Add argument.
28 (update_current_target): Update.
30 2014-02-19 Tom Tromey <tromey@redhat.com>
32 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
34 (target_set_syscall_catchpoint): Add argument.
35 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
37 * target.c (update_current_target): Update.
39 2014-02-19 Tom Tromey <tromey@redhat.com>
41 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
43 (target_remove_exec_catchpoint): Add argument.
44 * target.c (debug_to_remove_exec_catchpoint): Add argument.
45 (update_current_target): Update.
46 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
49 2014-02-19 Tom Tromey <tromey@redhat.com>
51 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
53 (target_insert_exec_catchpoint): Add argument.
54 * target.c (debug_to_insert_exec_catchpoint): Add argument.
55 (update_current_target): Update.
56 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
59 2014-02-19 Tom Tromey <tromey@redhat.com>
61 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
63 (target_remove_vfork_catchpoint): Add argument.
64 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
65 (update_current_target): Update.
66 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
69 2014-02-19 Tom Tromey <tromey@redhat.com>
71 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
73 (target_insert_vfork_catchpoint): Add argument.
74 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
75 (update_current_target): Update.
76 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
79 2014-02-19 Tom Tromey <tromey@redhat.com>
81 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
83 (target_remove_fork_catchpoint): Add argument.
84 * target.c (debug_to_remove_fork_catchpoint): Add argument.
85 (update_current_target): Update.
86 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
89 2014-02-19 Tom Tromey <tromey@redhat.com>
91 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
93 (target_insert_fork_catchpoint): Add argument.
94 * target.c (debug_to_insert_fork_catchpoint): Add argument.
95 (update_current_target): Update.
96 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
99 2014-02-19 Tom Tromey <tromey@redhat.com>
101 * target.h (struct target_ops) <to_post_startup_inferior>: Add
103 (target_post_startup_inferior): Add argument.
104 * target.c (debug_to_post_startup_inferior): Add argument.
105 (update_current_target): Update.
106 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
108 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
110 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
112 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
114 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
116 (super_post_startup_inferior): Likewise.
117 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
119 (super_post_startup_inferior): Likewise.
120 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
122 (super_post_startup_inferior): Likewise.
124 2014-02-19 Tom Tromey <tromey@redhat.com>
126 * target.h (struct target_ops) <to_load>: Add argument.
127 * target.c (target_load): Add argument.
128 (debug_to_load): Add argument.
129 (update_current_target): Update.
130 * remote.c (remote_load): Add 'self' argument.
131 * remote-sim.c (gdbsim_load): Add 'self' argument.
132 * remote-mips.c (mips_load): Add 'self' argument.
133 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
134 * monitor.c (monitor_load): Add 'self' argument.
135 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
137 2014-02-19 Tom Tromey <tromey@redhat.com>
139 * target.h (struct target_ops) <to_terminal_info>: Add argument.
140 (target_terminal_info): Add argument.
141 * target.c (debug_to_terminal_info): Add argument.
142 (default_terminal_info): Likewise.
143 * inflow.c (child_terminal_info): Add 'self' argument.
144 * inferior.h (child_terminal_info): Add 'self' argument.
145 * go32-nat.c (go32_terminal_info): Add 'self' argument.
147 2014-02-19 Tom Tromey <tromey@redhat.com>
149 * target.h (struct target_ops) <to_terminal_save_ours>: Add
151 (target_terminal_save_ours): Add argument.
152 * target.c (debug_to_terminal_save_ours): Add argument.
153 (update_current_target): Update.
154 * inflow.c (terminal_save_ours): Add 'self' argument.
155 * inferior.h (terminal_save_ours): Add 'self' argument.
157 2014-02-19 Tom Tromey <tromey@redhat.com>
159 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
160 (target_terminal_ours): Add argument.
161 * target.c (debug_to_terminal_ours): Add argument.
162 (update_current_target): Update.
163 * remote.c (remote_terminal_ours): Add 'self' argument.
164 (remote_close): Update.
165 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
166 * inflow.c (terminal_ours): Add 'self' argument.
167 * inferior.h (terminal_ours): Add 'self' argument.
168 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
170 2014-02-19 Pedro Alves <palves@redhat.com>
171 Tom Tromey <tromey@redhat.com>
173 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
175 (target_terminal_ours_for_output): Add argument.
176 * target.c (debug_to_terminal_ours_for_output): Add argument.
177 (update_current_target): Update.
178 * inflow.c (terminal_ours_for_output): Add 'self' argument.
179 * inferior.h (terminal_ours_for_output): Add 'self' argument.
180 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
182 2014-02-19 Tom Tromey <tromey@redhat.com>
184 * target.h (struct target_ops) <to_terminal_inferior>: Add
186 * target.c (target_terminal_inferior): Add argument.
187 (update_current_target): Update.
188 * remote.c (remote_terminal_inferior): Add 'self' argument.
189 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
190 * inflow.c (terminal_inferior): Add 'self' argument.
191 * inferior.h (terminal_inferior): Add 'self' argument.
192 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
193 (go32_terminal_inferior): Add 'self' argument.
195 2014-02-19 Tom Tromey <tromey@redhat.com>
197 * target.h (struct target_ops) <to_terminal_init>: Add argument.
198 (target_terminal_init): Add argument.
199 * target.c (debug_to_terminal_init): Add argument.
200 (update_current_target): Update.
201 * inflow.c (terminal_init_inferior): Add 'self' argument.
202 * inferior.h (terminal_init_inferior): Add 'self' argument.
203 * go32-nat.c (go32_terminal_init): Add 'self' argument.
204 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
206 2014-02-19 Tom Tromey <tromey@redhat.com>
208 * target.h (struct target_ops)
209 <to_can_accel_watchpoint_condition>: Add argument.
210 (target_can_accel_watchpoint_condition): Add argument.
211 * target.c (debug_to_can_accel_watchpoint_condition): Add
213 (update_current_target): Update.
214 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
217 2014-02-19 Tom Tromey <tromey@redhat.com>
219 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
221 (target_region_ok_for_hw_watchpoint): Add argument.
222 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
223 (default_region_ok_for_hw_watchpoint): Add argument.
224 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
225 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
227 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
229 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
231 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
233 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
235 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
237 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
238 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
240 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
243 2014-02-19 Tom Tromey <tromey@redhat.com>
245 * target.h (struct target_ops) <to_insert_watchpoint>: Add
247 (target_insert_watchpoint): Add argument.
248 * target.c (debug_to_insert_watchpoint): Add argument.
249 (update_current_target): Update.
250 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
251 * remote.c (remote_insert_watchpoint): Add 'self' argument.
252 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
253 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
254 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
255 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
257 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
258 (procfs_insert_hw_watchpoint): Add 'self' argument.
259 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
261 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
263 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
265 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
266 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
268 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
271 2014-02-19 Tom Tromey <tromey@redhat.com>
273 * target.h (struct target_ops) <to_remove_watchpoint>: Add
275 (target_remove_watchpoint): Add argument.
276 * target.c (debug_to_remove_watchpoint): Add argument.
277 (update_current_target): Update.
278 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
279 * remote.c (remote_remove_watchpoint): Add 'self' argument.
280 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
281 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
282 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
283 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
285 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
286 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
288 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
290 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
292 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
293 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
295 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
298 2014-02-19 Tom Tromey <tromey@redhat.com>
300 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
302 (target_remove_hw_breakpoint): Add argument.
303 * target.c (debug_to_remove_hw_breakpoint): Add argument.
304 (update_current_target): Update.
305 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
306 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
308 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
309 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
311 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
314 2014-02-19 Tom Tromey <tromey@redhat.com>
316 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
318 (target_insert_hw_breakpoint): Add argument.
319 * target.c (debug_to_insert_hw_breakpoint): Add argument.
320 (update_current_target): Update.
321 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
322 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
324 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
325 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
326 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
328 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
331 2014-02-19 Tom Tromey <tromey@redhat.com>
333 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
335 (target_can_use_hardware_watchpoint): Add argument.
336 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
337 (update_current_target): Update.
338 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
340 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
342 * remote.c (remote_check_watch_resources): Add 'self' argument.
343 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
344 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
346 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
347 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
349 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
351 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
353 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
355 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
357 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
359 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
360 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
362 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
365 2014-02-19 Tom Tromey <tromey@redhat.com>
367 * target.h (struct target_ops) <to_post_attach>: Add argument.
368 (target_post_attach): Add argument.
369 * target.c (debug_to_post_attach): Add argument.
370 (update_current_target): Update.
371 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
372 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
373 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
374 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
375 * inf-child.c (inf_child_post_attach): Add 'self' argument.
377 2014-02-19 Tom Tromey <tromey@redhat.com>
379 * windows-nat.c (windows_close): Add 'self' argument.
380 * tracepoint.c (tfile_close): Add 'self' argument.
381 * target.h (struct target_ops) <to_close>: Add argument.
382 * target.c (target_close): Add argument.
383 (update_current_target): Update.
384 * remote.c (remote_close): Add 'self' argument.
385 * remote-sim.c (gdbsim_close): Add 'self' argument.
386 * remote-mips.c (mips_close): Add 'self' argument.
387 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
388 * record-full.c (record_full_close): Add 'self' argument.
389 * record-btrace.c (record_btrace_close): Add 'self' argument.
390 * monitor.h (monitor_close): Add 'self' argument.
391 * monitor.c (monitor_close): Add 'self' argument.
392 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
393 * linux-nat.c (linux_nat_close): Add argument.
394 * go32-nat.c (go32_close): Add 'self' argument.
395 * exec.c (exec_close_1): Add 'self' argument.
396 * ctf.c (ctf_close): Add 'self' argument.
397 * corelow.c (core_close): Add 'self' argument.
398 (core_close_cleanup): Update.
399 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
400 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
402 2014-02-19 Tom Tromey <tromey@redhat.com>
404 * remote.c (remote_load): New function.
405 (init_remote_ops): Use it.
407 2014-02-19 Tom Tromey <tromey@redhat.com>
409 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
411 * common/linux-btrace.h (linux_supports_btrace): Update.
412 * remote.c (remote_supports_btrace): Add "self" argument.
413 * target-delegates.c: Rebuild.
414 * target.c (target_supports_btrace): Remove.
415 * target.h (struct target_ops) <to_supports_btrace>: Add
417 (target_supports_btrace): New define.
419 2014-02-19 Tom Tromey <tromey@redhat.com>
421 * record-full.c (record_full_beneath_to_resume_ops)
422 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
423 (record_full_beneath_to_wait)
424 (record_full_beneath_to_store_registers_ops)
425 (record_full_beneath_to_store_registers)
426 (record_full_beneath_to_xfer_partial_ops)
427 (record_full_beneath_to_xfer_partial)
428 (record_full_beneath_to_insert_breakpoint_ops)
429 (record_full_beneath_to_insert_breakpoint)
430 (record_full_beneath_to_remove_breakpoint_ops)
431 (record_full_beneath_to_remove_breakpoint)
432 (record_full_beneath_to_stopped_by_watchpoint)
433 (record_full_beneath_to_stopped_data_address)
434 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
435 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
436 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
437 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
438 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
439 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
440 (tmp_to_stopped_data_address, tmp_to_async): Remove.
441 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
442 (record_full_resume, record_full_wait_1)
443 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
444 (record_full_store_registers, record_full_xfer_partial)
445 (record_full_insert_breakpoint, record_full_remove_breakpoint)
446 (record_full_async, record_full_core_xfer_partial): Use target
448 * target-delegates.c: Rebuild.
449 * target.c (current_xfer_partial): Remove.
450 (update_current_target): Do not INHERIT or de_fault
451 to_insert_breakpoint, to_remove_breakpoint,
452 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
453 to_is_async_p, to_async. Do not set to_xfer_partial field.
454 (default_xfer_partial): Simplify.
455 (current_xfer_partial): Remove.
456 (target_wait, target_resume): Simplify.
457 (find_default_can_async_p, find_default_is_async_p): Update.
458 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
459 to_xfer_partial, to_stopped_by_watchpoint,
460 to_stopped_data_address.
461 (target_store_registers): Simplify.
462 (forward_target_remove_breakpoint)
463 (forward_target_insert_breakpoint): Remove.
464 (target_remove_breakpoint, target_insert_breakpoint)
465 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
466 * target.h (struct target_ops) <to_resume, to_wait,
467 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
468 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
469 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
471 (forward_target_remove_breakpoint)
472 (forward_target_insert_breakpoint): Remove.
473 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
475 (record_btrace_insert_breakpoint): Delegate directly.
477 2014-02-19 Tom Tromey <tromey@redhat.com>
480 * target-delegates.c: New file.
481 * target.c: Include target-delegates.c.
482 (init_dummy_target): Call install_dummy_methods.
483 (complete_target_initialization): Call install_delegators.
484 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
485 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
486 * make-target-delegates: New file.
488 2014-02-19 Tom Tromey <tromey@redhat.com>
490 * record.c (find_record_target): Use find_target_at.
491 * target.c (find_target_at): New function.
492 * target.h (find_target_at): Declare.
494 2014-02-19 Tom Tromey <tromey@redhat.com>
496 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
498 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
500 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
501 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
503 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
505 * linux-nat.c (save_sigtrap): Update.
506 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
507 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
508 (linux_nat_close): Update.
509 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
511 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
513 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
514 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
515 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
516 (tmp_to_async): Add 'ops' argument.
517 (record_full_stopped_by_watchpoint, record_full_async)
518 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
520 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
521 (m32r_stopped_by_watchpoint): Add 'ops' argument.
522 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
523 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
524 (remote_is_async_p, remote_async): Add 'ops' argument.
525 (remote_stopped_data_address): Update.
526 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
527 * target.c (update_current_target)
528 (find_default_can_async_p, find_default_is_async_p): Update.
529 (init_dummy_target): Update.
530 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
531 * target.h (struct target_ops) <to_stopped_by_watchpoint,
532 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
533 (target_can_async_p, target_is_async_p, target_async)
534 (target_stopped_by_watchpoint): Update.
536 2014-02-19 Yao Qi <yao@codesourcery.com>
539 * gdbarch.sh: Remove startup_gdbarch.
540 * gdbarch.c: Regenerated.
541 * gdbarch.h: Likewise.
543 2014-02-17 Kevin Buettner <kevinb@redhat.com>
545 * rl78-tdep.c (rl78_g10_register_name): New function.
546 (rl78_return_value): Add g10 support.
547 (rl78_gdbarch_init): Register rl78_g10_register_name for the
550 2014-02-17 Doug Evans <xdje42@gmail.com>
552 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
553 (SUBDIR_GUILE_SRCS): Ditto.
554 (scm-gsmob.o): Ditto.
556 2014-02-17 Yao Qi <yao@codesourcery.com>
558 * gnu-nat.c (ILL_RPC): Declare defined function.
560 2014-02-17 Yao Qi <yao@codesourcery.com>
562 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
563 mach_msg_type_number_t.
564 (gnu_write_inferior): Likewise.
566 2014-02-17 Yao Qi <yao@codesourcery.com>
568 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
570 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
571 (inf_validate_procs, inf_signal): Likewise.
572 (S_exception_raise_request): Likewise.
573 (do_mach_notify_dead_name): Likewise.
574 (steal_exc_port): Likewise.
575 (gnu_read_inferior): Change 'copy_count''s type to
576 mach_msg_type_number_t.
577 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
580 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
582 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
583 flag. Adjust all users; in particular...
584 (gnu_wait): ..., don't decrement its value in here...
585 (gnu_create_inferior): ..., and instead set the flag in here,
586 around the startup_inferior call, and call that one with
587 START_INFERIOR_TRAPS_EXPECTED.
589 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
590 (ILL_RPC): ... new macro.
591 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
592 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
593 (do_mach_notify_send_once, S_proc_setmsgport_reply)
594 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
595 functions with ILL_RPC macro.
596 (S_proc_pid2task_reply, S_proc_task2pid_reply)
597 (S_proc_task2proc_reply, S_proc_proc2task_reply)
598 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
599 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
600 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
601 (S_proc_getlogin_reply, S_proc_getsid_reply)
602 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
603 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
604 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
605 (S_proc_getnports_reply, S_proc_is_important_reply)
606 (S_proc_get_code_reply): New stub functions, generated with
609 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
610 collected the type check structures.
612 * reply_mig_hack.awk: Don't expect to see the auto keyword.
614 2014-02-14 Doug Evans <dje@google.com>
616 * target.c (target_write_partial): Fix result type.
618 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
620 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
621 the proper offsets to access fpregset_t.
623 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
625 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
626 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
627 * h8300-tdep.c (setmachinelist): Remove global.
628 * hppa-tdep.c (hppa_sigtramp): Remove global.
629 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
630 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
631 * ravenscar-thread.c (update_target_observer): Remove global.
632 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
634 2014-02-12 Tom Tromey <tromey@redhat.com>
636 * common/rsp-low.c: Update comments.
637 * common/rsp-low.h: Update comments.
639 2014-02-12 Tom Tromey <tromey@redhat.com>
641 * common/rsp-low.c (convert_ascii_to_int): Remove.
642 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
644 2014-02-12 Tom Tromey <tromey@redhat.com>
646 * common/rsp-low.h (unhexify): Don't declare.
647 * common/rsp-low.c (unhexify): Remove.
649 2014-02-12 Tom Tromey <tromey@redhat.com>
651 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
652 * common/rsp-low.c (convert_int_to_ascii): Remove.
654 2014-02-12 Tom Tromey <tromey@redhat.com>
656 * common/rsp-low.h (hexify): Don't declare.
657 * common/rsp-low.c (hexify): Remove.
659 2014-02-12 Tom Tromey <tromey@redhat.com>
661 * common/rsp-low.c (hexify): Never take strlen of argument.
663 2014-02-12 Tom Tromey <tromey@redhat.com>
665 * common/rsp-low.c (bin2hex): Never take strlen of argument.
666 * remote.c (extended_remote_run, remote_rcmd)
667 (remote_download_trace_state_variable, remote_save_trace_data)
668 (remote_set_trace_notes): Update.
669 * tracepoint.c (encode_source_string, tfile_write_status)
670 (tfile_write_uploaded_tsv): Update.
672 2014-02-12 Tom Tromey <tromey@redhat.com>
674 * tracepoint.c: Include rsp-low.h.
675 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
676 * remote.c: Include rsp-low.h.
677 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
678 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
679 (remote_unescape_input): Move to common/rsp-low.c.
680 * common/rsp-low.h: New file.
681 * common/rsp-low.c: New file.
682 * Makefile.in (SFILES): Add common/rsp-low.c.
683 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
684 (COMMON_OBS): Add rsp-low.o.
685 (rsp-low.o): New target.
687 2014-02-12 Tom Tromey <tromey@redhat.com>
689 * utils.h: Include print-utils.h.
690 (host_address_to_string, plongest, pulongest, phex, phex_nz)
691 (int_string, core_addr_to_string, core_addr_to_string_nz)
692 (hex_string, hex_string_custom): Don't declare.
693 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
694 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
695 (hex_string_custom, int_string, core_addr_to_string)
696 (core_addr_to_string_nz, host_address_to_string): Move to
697 common/print-utils.c.
698 * common/print-utils.h: New file.
699 * common/print-utils.c: New file
700 * Makefile.in (SFILES): Add common/print-utils.c.
701 (HFILES_NO_SRCDIR): Add common/print-utils.h.
702 (COMMON_OBS): Add print-utils.o.
703 (print-utils.o): New target.
705 2014-02-12 Tom Tromey <tromey@redhat.com>
707 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
709 2014-02-12 Mark Kettenis <kettenis@gnu.org>
711 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
713 2014-02-12 Mark Kettenis <kettenis@gnu.org>
715 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
716 if a PT_IO ptrace request returns sucessfully but indicates that 0
717 bytes were transferred.
719 2014-02-12 Pedro Alves <palves@redhat.com>
720 Kevin Buettner <kevinb@redhat.com>
722 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
723 TYPE_INSTANCE_FLAG_CODE_SPACE.
725 2014-02-12 Pedro Alves <palves@redhat.com>
727 * h8300-tdep.c (pseudo_from_raw_register)
728 (raw_from_pseudo_register): New functions.
729 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
732 2014-02-12 Pedro Alves <palves@redhat.com>
734 * h8300-tdep.c (h8300_register_sim_regno): New function.
735 (h8300_gdbarch_init): Install h8300_register_sim_regno as
736 gdbarch_register_sim_regno hook.
738 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
740 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
742 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
744 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
746 2014-02-12 Mark Kettenis <kettenis@gnu.org>
748 * obsd-tdep.h (obsd_init_abi): New prototype.
749 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
750 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
751 (obsd_init_abi): New functions.
752 * i386obsd-tdep.c: Include "obsd-tdep.h".
753 (i386obsd_init_abi): Call obsd_init_abi.
754 * amd64obsd-tdep.c: Include "obsd-tdep.h".
755 (amd64obsd_init_abi): Call obsd_init_abi.
756 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
757 obsd-tdep.c to gdb_target_obs.
759 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
761 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
762 double float arguments to 16-byte in the argument slots.
764 2014-02-11 Doug Evans <xdje42@gmail.com>
766 * configure.ac: Don't crash if pkg-config is not found and guile
767 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
769 * configure: Regenerate.
771 2014-02-11 Yao Qi <yao@codesourcery.com>
773 * aix-thread.c (aix_thread_xfer_partial): Update comments.
774 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
775 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
776 * gnu-nat.c (gnu_xfer_memory): Likewise.
777 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
778 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
779 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
780 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
782 2014-02-11 Yao Qi <yao@codesourcery.com>
784 * target.h (enum target_xfer_error): Rename to ...
785 (enum target_xfer_status): ... it. New. All users updated.
786 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
788 (TARGET_XFER_STATUS_ERROR_P): New macro.
789 (target_xfer_error_to_string): Remove declaration.
790 (target_xfer_status_to_string): Declare.
791 (target_xfer_partial_ftype): Adjust it.
792 (struct target_ops) <to_xfer_partial>: Return
793 target_xfer_status. Add argument xfered_len. Update
795 * target.c (target_xfer_error_to_string): Rename to ...
796 (target_xfer_status_to_string): ... it. New. All callers
798 (target_read_live_memory): Likewise. Call target_xfer_partial
799 instead of target_read.
800 (memory_xfer_live_readonly_partial): Return
801 target_xfer_status. Add argument xfered_len.
802 (raw_memory_xfer_partial): Likewise.
803 (memory_xfer_partial_1): Likewise.
804 (memory_xfer_partial): Likewise.
805 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
806 properly. Update debug message.
807 (default_xfer_partial, current_xfer_partial): Likewise.
808 (target_write_partial): Likewise.
809 (target_read_partial): Likewise. All callers updated.
810 (read_whatever_is_readable): Likewise.
811 (target_write_with_progress): Likewise.
812 (target_read_alloc_1): Likewise.
814 * aix-thread.c (aix_thread_xfer_partial): Likewise.
815 * auxv.c (procfs_xfer_auxv): Likewise.
816 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
817 * bfd-target.c (target_bfd_xfer_partial): Likewise.
818 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
819 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
820 * corefile.c (read_memory): Adjust.
821 * corelow.c (core_xfer_partial): Likewise.
822 * ctf.c (ctf_xfer_partial): Likewise.
823 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
825 (darwin_xfer_partial): Likewise.
826 * exec.c (section_table_xfer_memory_partial): Likewise. All
828 (exec_xfer_partial): Likewise.
829 * exec.h (section_table_xfer_memory_partial): Update
831 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
833 (gnu_xfer_partial): Likewise.
834 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
835 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
836 (ia64_hpux_xfer_solib_got): Likewise.
837 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
838 type of 'partial_len' to ULONGEST.
839 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
840 * linux-nat.c (linux_xfer_siginfo ): Likewise.
841 (linux_nat_xfer_partial): Likewise.
842 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
843 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
844 * monitor.c (monitor_xfer_memory): Likewise.
845 (monitor_xfer_partial): Likewise.
846 * procfs.c (procfs_xfer_partial): Likewise.
847 * record-btrace.c (record_btrace_xfer_partial): Likewise.
848 * record-full.c (record_full_xfer_partial): Likewise.
849 (record_full_core_xfer_partial): Likewise.
850 * remote-sim.c (gdbsim_xfer_memory): Likewise.
851 (gdbsim_xfer_partial): Likewise.
852 * remote.c (remote_write_bytes_aux): Likewise. All callers
854 (remote_write_bytes, remote_read_bytes): Likewise. All
856 (remote_flash_erase): Likewise. All callers updated.
857 (remote_write_qxfer): Likewise. All callers updated.
858 (remote_read_qxfer): Likewise. All callers updated.
859 (remote_xfer_partial): Likewise.
860 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
861 (rs6000_xfer_shared_libraries): Likewise.
862 * sol-thread.c (sol_thread_xfer_partial): Likewise.
863 (sol_thread_xfer_partial): Likewise.
864 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
865 (sparc_xfer_partial): Likewise.
866 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
868 (spu_xfer_partial): Likewise.
869 * spu-multiarch.c (spu_xfer_partial): Likewise.
870 * tracepoint.c (tfile_xfer_partial): Likewise.
871 * windows-nat.c (windows_xfer_memory): Likewise.
872 (windows_xfer_shared_libraries): Likewise.
873 (windows_xfer_partial): Likewise.
874 * valprint.c: Replace 'target_xfer_error' with
875 'target_xfer_status' in comments.
877 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
879 Checked in by Joel Brobecker <brobecker@adacore.com>.
880 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
882 2014-02-11 Joel Brobecker <brobecker@adacore.com>
884 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
887 2014-02-10 Will Newton <will.newton@linaro.org>
889 * elfread.c (elf_rel_plt_read): Look for a .got section if
890 looking up .got.plt fails.
891 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
892 on address passed to elf_gnu_ifunc_record_cache.
893 (elf_gnu_ifunc_resolve_addr): Likewise.
894 (elf_gnu_ifunc_resolver_return_stop): Likewise.
896 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
898 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
899 (X_RETTURN): New macro.
900 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
902 * sparc64-tdep.c (sparc64_init_abi): Hook
903 sparc_in_function_epilogue_p.
905 2014-02-10 Gary Benson <gbenson@redhat.com>
907 * symfile-debug.c (debug_qf_expand_symtabs_matching):
908 Rename name_matcher to symbol_matcher.
910 2014-02-10 Gary Benson <gbenson@redhat.com>
912 * symfile-debug.c (debug_qf_expand_symtabs_matching):
913 Use expand_symtabs_file_matcher_ftype and
914 expand_symtabs_symbol_matcher_ftype.
916 2014-02-10 Joel Brobecker <brobecker@adacore.com>
918 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
919 (struct ada_symbol_cache): New.
920 (ada_free_symbol_cache): Forward declare.
921 (struct ada_pspace_data): New.
922 (ada_pspace_data_handle): New static global.
923 (get_ada_pspace_data, ada_pspace_data_cleanup)
924 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
925 (cache_space, cache): Delete, now folded inside struct
927 (ada_get_symbol_cache): New function.
928 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
930 (_initialize_ada_language): Remove initialization of cache_space.
931 Move call to observer_attach_inferior_exit up, grouping it
932 with the other observer registrations inside this function.
933 Rename command to be more general. Add call to
934 register_program_space_data_with_cleanup.
936 2014-02-10 Joel Brobecker <brobecker@adacore.com>
938 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
939 ada_new_objfile_observer.
940 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
941 (_initialize_tasks): Update uses of ada_new_objfile_observer
942 and ada_tasks_normal_stop_observer.
944 2014-02-10 Joel Brobecker <brobecker@adacore.com>
946 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
947 returned by the 'Length attribute to integer.
949 2014-02-10 Joel Brobecker <brobecker@adacore.com>
951 * ada-lang.c (_initialize_ada_language): Initialize
954 2014-02-10 Joel Brobecker <brobecker@adacore.com>
956 * ada-lang.c (HASH_SIZE): New macro.
957 (struct cache_entry): New type.
958 (cache_space, cache): New static globals.
959 (ada_clear_symbol_cache, find_entry): New functions.
960 (lookup_cached_symbol, cache_symbol): Implement.
961 (ada_new_objfile_observer, ada_free_objfile_observer): New.
962 (_initialize_ada_language): Attach ada_new_objfile_observer
963 and ada_free_objfile_observer.
965 2014-02-10 Joel Brobecker <brobecker@adacore.com>
967 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
968 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
969 struct block * parameter.
970 (ada_lookup_symbol_list_worker): Constify local variable "block".
971 Remove cast which is no longer necessary.
973 2014-02-10 Doug Evans <xdje42@gmail.com>
975 Add Guile as an extension language.
976 * NEWS: Mention Guile scripting.
977 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
978 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
979 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
980 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
981 (CLIBS): Add GUILE_LIBS.
982 (install-guile): New rule.
984 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
985 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
986 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
987 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
988 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
989 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
990 (scm-type.o, scm-utils.o, scm-value.o): New rules.
991 * configure.ac: New option --with-guile.
992 * configure: Regenerate.
993 * config.in: Regenerate.
994 * auto-load.c: Remove #include "python/python.h". Add #include
995 "gdb/section-scripts.h".
996 (source_section_scripts): Handle Guile scripts.
997 (_initialize_auto_load): Add name of Guile objfile script to
998 scripts-directory help text.
999 * breakpoint.c (condition_command): Tweak comment to include Scheme.
1000 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
1001 (struct breakpoint): New member scm_bp_object.
1002 * defs.h (enum command_control_type): New value guile_control.
1003 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
1005 (show_user): Update comment.
1006 (_initialize_cli_cmds): Update help text for "show user". Update help
1007 text for max-user-call-depth.
1008 * cli/cli-script.c: Remove #include "python/python.h". Add #include
1010 (multi_line_command_p): Add guile_control.
1011 (print_command_lines): Handle guile_control.
1012 (execute_control_command, recurse_read_control_structure): Ditto.
1013 (process_next_line): Recognize "guile" commands.
1014 * disasm.c (gdb_disassemble_info): Make non-static.
1015 * disasm.h: #include "dis-asm.h".
1016 (struct gdbarch): Add forward decl.
1017 (gdb_disassemble_info): Declare.
1018 * extension.c: #include "guile/guile.h".
1019 (extension_languages): Add guile.
1020 (get_ext_lang_defn): Handle EXT_LANG_GDB.
1021 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
1022 * gdbtypes.c (get_unsigned_type_max): New function.
1023 (get_signed_type_minmax): New function.
1024 * gdbtypes.h (get_unsigned_type_max): Declare.
1025 (get_signed_type_minmax): Declare.
1026 * guile/README: New file.
1027 * guile/guile-internal.h: New file.
1028 * guile/guile.c: New file.
1029 * guile/guile.h: New file.
1030 * guile/scm-arch.c: New file.
1031 * guile/scm-auto-load.c: New file.
1032 * guile/scm-block.c: New file.
1033 * guile/scm-breakpoint.c: New file.
1034 * guile/scm-disasm.c: New file.
1035 * guile/scm-exception.c: New file.
1036 * guile/scm-frame.c: New file.
1037 * guile/scm-gsmob.c: New file.
1038 * guile/scm-iterator.c: New file.
1039 * guile/scm-lazy-string.c: New file.
1040 * guile/scm-math.c: New file.
1041 * guile/scm-objfile.c: New file.
1042 * guile/scm-ports.c: New file.
1043 * guile/scm-pretty-print.c: New file.
1044 * guile/scm-safe-call.c: New file.
1045 * guile/scm-string.c: New file.
1046 * guile/scm-symbol.c: New file.
1047 * guile/scm-symtab.c: New file.
1048 * guile/scm-type.c: New file.
1049 * guile/scm-utils.c: New file.
1050 * guile/scm-value.c: New file.
1051 * guile/lib/gdb.scm: New file.
1052 * guile/lib/gdb/boot.scm: New file.
1053 * guile/lib/gdb/experimental.scm: New file.
1054 * guile/lib/gdb/init.scm: New file.
1055 * guile/lib/gdb/iterator.scm: New file.
1056 * guile/lib/gdb/printing.scm: New file.
1057 * guile/lib/gdb/types.scm: New file.
1058 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
1059 (VPATH): Add $(GUILE_SRCDIR).
1060 (GUILE_DIR): New variable.
1061 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
1062 (all): Add stamp-guile dependency.
1063 (stamp-guile): New rule.
1064 (clean-guile, install-guile, uninstall-guile): New rules.
1065 (install-only): Add install-guile dependency.
1066 (uninstall): Add uninstall-guile dependency.
1067 (clean): Add clean-guile dependency.
1069 2014-02-09 Doug Evans <xdje42@gmail.com>
1071 Revert this patch (which I approved, mea culpa).
1073 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1075 * Makefile.in (all-lib): Remove.
1076 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1078 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1080 Fix Python stack corruption.
1081 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
1084 2014-02-08 Mark Kettenis <kettenis@gnu.org>
1086 * Makefile.in (all-lib): Remove.
1087 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
1089 2014-02-07 Doug Evans <dje@google.com>
1091 * extension-priv.h (extension_language_script_ops): Add comment.
1092 (extension_language_ops): Add comment.
1093 (active_ext_lang_state): Fix typo in comment.
1095 2014-02-07 Pedro Alves <palves@redhat.com>
1097 * infrun.c (handle_signal_stop) <signal arrives while stepping
1098 over a breakpoint>: Switch back to the stepping thread.
1100 2014-02-07 Yao Qi <yao@codesourcery.com>
1102 * target.c (target_xfer_partial): Return zero if LEN is zero.
1104 2014-02-07 Yao Qi <yao@codesourcery.com>
1106 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
1107 (ld_so_xfer_auxv): Likewise.
1108 * bfd-target.c (target_bfd_xfer_partial): Likewise.
1109 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
1110 * corelow.c (core_xfer_partial): Likewise.
1111 * ctf.c (ctf_xfer_partial): Likewise.
1112 * darwin-nat.c (darwin_read_dyld_info): Likewise.
1113 (darwin_xfer_partial): Likewise.
1114 * exec.c (exec_xfer_partial): Likewise.
1115 * gnu-nat.c (gnu_xfer_partial): Likewise.
1116 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
1117 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
1118 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
1119 * linux-nat.c (linux_xfer_siginfo): Likewise.
1120 (linux_proc_xfer_spu): Likewise.
1121 * procfs.c (procfs_xfer_partial): Likewise.
1122 * record-full.c (record_full_xfer_partial): Likewise.
1123 (record_full_core_xfer_partial): Likewise.
1124 * remote-sim.c (gdbsim_xfer_partial): Likewise.
1125 * remote.c (remote_write_qxfer): Likewise.
1126 (remote_write_qxfer, remote_read_qxfer): Likewise.
1127 (remote_xfer_partial): Likewise.
1128 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
1129 (rs6000_xfer_shared_libraries): Likewise.
1130 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
1131 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
1132 (spu_xfer_partial): Likewise.
1133 * target.c (memory_xfer_partial_1): Likewise.
1134 * tracepoint.c (tfile_xfer_partial): Likewise.
1135 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
1136 (windows_xfer_partial): Likewise.
1138 2014-02-07 Yao Qi <yao@codesourcery.com>
1140 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
1142 (core_xfer_shared_libraries_aix): Likewise.
1143 * gdbarch.c, gdbarch.h: Regenerated.
1144 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
1145 ULONGEST. Change 'len_avail' type to ULONGEST.
1146 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1147 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
1149 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
1151 2014-02-07 Yao Qi <yao@codesourcery.com>
1153 * corefile.c (memory_error): Get 'exception' from ERR and pass
1154 'exception' to throw_error.
1156 2014-02-06 Doug Evans <xdje42@gmail.com>
1158 * configure.ac (libpython checking): Remove all but python.o from
1159 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
1160 * configure: Regenerate.
1162 * Makefile.in (SFILES): Add extension.c.
1163 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
1164 (COMMON_OBS): Add extension.o.
1165 * extension.h: New file.
1166 * extension-priv.h: New file.
1167 * extension.c: New file.
1169 * python/python-internal.h: #include "extension.h".
1170 (gdbpy_auto_load_enabled): Declare.
1171 (gdbpy_apply_val_pretty_printer): Declare.
1172 (gdbpy_apply_frame_filter): Declare.
1173 (gdbpy_preserve_values): Declare.
1174 (gdbpy_breakpoint_cond_says_stop): Declare.
1175 (gdbpy_breakpoint_has_cond): Declare.
1176 (void source_python_script_for_objfile): Delete.
1177 * python/python.c: #include "extension-priv.h".
1178 Delete inclusion of "observer.h".
1179 (extension_language_python): Moved here and renamed from
1180 script_language_python in py-auto-load.c.
1181 Redefined to be of type extension_language_defn.
1182 (python_extension_script_ops): New global.
1183 (python_extension_ops): New global.
1184 (struct python_env): New member previous_active.
1185 (restore_python_env): Call restore_active_ext_lang.
1186 (ensure_python_env): Call set_active_ext_lang.
1187 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
1189 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
1191 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
1193 (gdbpy_eval_from_control_command): Renamed from
1194 eval_python_from_control_command, made static. New arg extlang.
1195 (gdbpy_source_script) Renamed from source_python_script, made static.
1197 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
1198 result to int. New arg extlang.
1199 (gdbpy_source_objfile_script): Renamed from
1200 source_python_script_for_objfile, made static. New arg extlang.
1201 (gdbpy_start_type_printers): Renamed from start_type_printers, made
1202 static. New args extlang, extlang_printers. Change result type to
1204 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
1205 static. New arg extlang. Rename arg printers to extlang_printers
1206 and change type to ext_lang_type_printers *.
1207 (gdbpy_free_type_printers): Renamed from free_type_printers, made
1208 static. Replace argument arg with extlang, extlang_printers.
1209 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
1210 (!HAVE_PYTHON, source_python_script): Delete.
1211 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
1212 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
1213 (!HAVE_PYTHON, start_type_printers): Delete.
1214 (!HAVE_PYTHON, apply_type_printers): Delete.
1215 (!HAVE_PYTHON, free_type_printers): Delete.
1216 (_initialize_python): Delete call to observer_attach_before_prompt.
1217 (finalize_python): Set/restore active extension language.
1218 (gdbpy_finish_initialization) Renamed from
1219 finish_python_initialization, made static. New arg extlang.
1220 (gdbpy_initialized): New function.
1221 * python/python.h: #include "extension.h". Delete #include
1222 "value.h", "mi/mi-cmds.h".
1223 (extension_language_python): Declare.
1224 (GDBPY_AUTO_FILE_NAME): Delete.
1225 (enum py_bt_status): Moved to extension.h and renamed to
1227 (enum frame_filter_flags): Moved to extension.h.
1228 (enum py_frame_args): Moved to extension.h and renamed to
1229 ext_lang_frame_args.
1230 (finish_python_initialization): Delete.
1231 (eval_python_from_control_command): Delete.
1232 (source_python_script): Delete.
1233 (apply_val_pretty_printer): Delete.
1234 (apply_frame_filter): Delete.
1235 (preserve_python_values): Delete.
1236 (gdbpy_script_language_defn): Delete.
1237 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
1238 (start_type_printers, apply_type_printers, free_type_printers): Delete.
1240 * auto-load.c: #include "extension.h".
1241 (GDB_AUTO_FILE_NAME): Delete.
1242 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
1243 (script_language_gdb): Delete, moved to extension.c and renamed to
1244 extension_language_gdb.
1245 (source_gdb_script_for_objfile): Delete.
1246 (auto_load_pspace_info): New member unsupported_script_warning_printed.
1247 (loaded_script): Change type of language member to
1248 struct extension_language_defn *.
1249 (init_loaded_scripts_info): Initialize
1250 unsupported_script_warning_printed.
1251 (maybe_add_script): Make static. Change type of language arg to
1252 struct extension_language_defn *.
1253 (clear_section_scripts): Reset unsupported_script_warning_printed.
1254 (auto_load_objfile_script_1): Rewrite to use extension language API.
1255 (auto_load_objfile_script): Make public. Remove support-compiled-in
1256 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
1257 (source_section_scripts): Rewrite to use extension language API.
1258 (load_auto_scripts_for_objfile): Rewrite to use
1259 auto_load_scripts_for_objfile.
1260 (collect_matching_scripts_data): Change type of language member to
1261 struct extension_language_defn *.
1262 (auto_load_info_scripts): Change type of language arg to
1263 struct extension_language_defn *.
1264 (unsupported_script_warning_print): New function.
1265 (script_not_found_warning_print): Make static.
1266 (_initialize_auto_load): Rewrite construction of scripts-directory
1268 * auto-load.h (struct objfile): Add forward decl.
1269 (struct script_language): Delete.
1270 (struct auto_load_pspace_info): Add forward decl.
1271 (struct extension_language_defn): Add forward decl.
1272 (maybe_add_script): Delete.
1273 (auto_load_objfile_script): Declare.
1274 (script_not_found_warning_print): Delete.
1275 (auto_load_info_scripts): Update prototype.
1276 (auto_load_gdb_scripts_enabled): Declare.
1277 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
1278 auto_load_python_scripts_enabled and made public.
1279 (script_language_python): Delete, moved to python.c.
1280 (gdbpy_script_language_defn): Delete.
1281 (info_auto_load_python_scripts): Update to use
1282 extension_language_python.
1284 * breakpoint.c (condition_command): Replace call to
1285 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
1286 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
1287 with call to breakpoint_ext_lang_cond_says_stop.
1288 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
1289 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
1290 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
1291 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
1293 (local_setattro): Print name of extension language with existing
1296 * valprint.c (val_print, value_print): Update to call
1297 apply_ext_lang_val_pretty_printer.
1298 * cp-valprint.c (cp_print_value): Update call to
1299 apply_ext_lang_val_pretty_printer.
1300 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
1301 (gdbpy_apply_val_pretty_printer): Renamed from
1302 apply_val_pretty_printer. New arg extlang.
1303 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
1305 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
1306 extension language API.
1307 * cli/cli-script.c (execute_control_command): Update to call
1308 eval_ext_lang_from_control_command.
1310 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
1311 enum ext_lang_bt_status values. Update call to
1312 apply_ext_lang_frame_filter.
1313 (mi_cmd_stack_list_locals): Ditto.
1314 (mi_cmd_stack_list_args): Ditto.
1315 (mi_cmd_stack_list_variables): Ditto.
1316 * mi/mi-main.c: Delete #include "python/python-internal.h".
1317 Add #include "extension.h".
1318 (mi_cmd_list_features): Replace reference to python internal variable
1319 gdb_python_initialized with call to ext_lang_initialized_p.
1321 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
1322 Update to use enum ext_lang_frame_args. Update to call
1323 apply_ext_lang_frame_filter.
1324 * python/py-framefilter.c (extract_sym): Update to use enum
1326 (extract_value, py_print_type, py_print_value): Ditto.
1327 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
1328 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
1329 (py_print_frame): Ditto.
1330 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
1331 New arg extlang. Update to use enum ext_lang_bt_status.
1333 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
1334 finish_python_initialization. Replace with call to
1335 finish_ext_lang_initialization.
1337 * typeprint.c (do_free_global_table): Update to call
1338 free_ext_lang_type_printers.
1339 (create_global_typedef_table): Update to call
1340 start_ext_lang_type_printers.
1341 (find_global_typedef): Update to call apply_ext_lang_type_printers.
1342 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
1343 (type_print_options): Change type of global_printers from "void *"
1344 to "struct ext_lang_type_printers *".
1346 * value.c (preserve_values): Update to call preserve_ext_lang_values.
1347 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
1348 (gdbpy_preserve_values): Renamed from preserve_python_values.
1350 (!HAVE_PYTHON, preserve_python_values): Delete.
1352 * utils.c (quit_flag): Delete, moved to extension.c.
1353 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
1356 * eval.c: Delete #include "python/python.h".
1357 * main.c: Delete #include "python/python.h".
1359 * defs.h: Update comment.
1361 2014-02-06 Joel Brobecker <brobecker@adacore.com>
1365 2014-02-05 Mark Kettenis <kettenis@gnu.org>
1367 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
1370 2014-02-05 Yao Qi <yao@codesourcery.com>
1372 * remote.c (remote_pass_signals): Remove local 'buf' and use
1374 (remote_program_signals): Likewise.
1376 2014-02-05 Yao Qi <yao@codesourcery.com>
1378 * ctf.c: Include "inferior.h" and "gdbthread.h".
1379 (CTF_PID): A new macro.
1380 (ctf_open): Call inferior_appeared and add_thread_silent.
1381 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
1382 (ctf_thread_alive): New function.
1383 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
1385 2014-02-05 Yao Qi <yao@codesourcery.com>
1389 2013-05-24 Yao Qi <yao@codesourcery.com>
1391 * tracepoint.c (TFILE_PID): Remove.
1392 (tfile_open): Don't add thread and inferior.
1393 (tfile_close): Don't set 'inferior_ptid'. Don't call
1394 exit_inferior_silent.
1395 (tfile_thread_alive): Remove.
1396 (init_tfile_ops): Don't set field 'to_thread_alive' of
1399 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
1401 * remote.c (remote_start_remote): Call remote_check_symbols even
1402 if only symbol-file (not file) has been given.
1404 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1406 * gdbarch.sh (skip_entrypoint): New callback.
1407 * gdbarch.c, gdbarch.h: Regenerate.
1408 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
1409 * infrun.c (fill_in_stop_func): Likewise.
1410 * ppc-linux-tdep.c: Include "elf/ppc64.h".
1411 (ppc_elfv2_elf_make_msymbol_special): New function.
1412 (ppc_elfv2_skip_entrypoint): Likewise.
1413 (ppc_linux_init_abi): Install them for ELFv2.
1415 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1417 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
1418 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
1419 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
1420 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
1421 structures returned in GPRs.
1423 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1425 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
1426 offset to the stack parameter list for the ELFv2 ABI.
1428 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1430 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
1431 set_gdbarch_convert_from_func_ptr_addr and
1432 set_gdbarch_elf_make_msymbol_special for ELFv1.
1433 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
1434 function descriptors on ELFv1.
1435 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
1436 set up r12 at function entry.
1438 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1440 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
1441 (struct gdbarch_tdep): New member elf_abi.
1443 * rs6000-tdep.c: Include "elf/ppc64.h".
1444 (rs6000_gdbarch_init): Detect ELF ABI version.
1446 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1448 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
1449 within a register pair holding a DFP 128-bit value on little-endian.
1450 (ppc64_sysv_abi_return_value_base): Likewise.
1451 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
1452 (dfp_pseudo_register_write): Likewise.
1454 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1456 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
1457 offset on little-endian when passing _Decimal32.
1458 (ppc64_sysv_abi_return_value_base): Likewise for return values.
1460 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1462 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
1463 of the overlapped FP register within the VSX register on little-
1465 (efpr_pseudo_register_write): Likewise.
1467 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1469 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
1470 offset on little-endian when passing small structures.
1472 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1474 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
1475 (struct ppc64_sysv_argpos): New data structure.
1476 (ppc64_sysv_abi_push_float): Remove.
1477 (ppc64_sysv_abi_push_val): New function.
1478 (ppc64_sysv_abi_push_integer): Likewise.
1479 (ppc64_sysv_abi_push_freg): Likewise.
1480 (ppc64_sysv_abi_push_vreg): Likewise.
1481 (ppc64_sysv_abi_push_param): Likewise.
1482 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
1483 (ppc64_sysv_abi_return_value_base): New function.
1484 (ppc64_sysv_abi_return_value): Refactor to use it.
1486 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1488 * NEWS: Document new target powerpc64le-*-linux*.
1490 2014-02-04 Mark Kettenis <kettenis@gnu.org>
1492 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
1493 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
1495 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
1496 register set used in ELF core dumps. Add floating-point register set.
1498 2014-02-03 Kevin Buettner <kevinb@redhat.com>
1500 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
1501 dwarf2_to_gdb[] table using symbolic constants. Adjust
1502 penultimate entry from number representing the PC register
1503 to symbolic constant representing the MDR register. Add
1504 constant for the PC register to the end of the table.
1506 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1508 * bsd-kvm.c: Include <sys/param.h>
1510 2014-02-03 Mark Kettenis <kettenis@gnu.org>
1512 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
1514 2014-01-31 Joel Brobecker <brobecker@adacore.com>
1516 * ada-lang.h (clear_ada_sym_cache): Delete.
1518 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
1520 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
1522 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
1524 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
1525 the sigreturn register save area only if the syscall is
1528 2014-01-29 Joel Brobecker <brobecker@adacore.com>
1530 * valops.c (value_slice): Minor reformatting.
1532 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
1534 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
1536 2014-01-28 Joel Brobecker <brobecker@adacore.com>
1538 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
1540 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
1541 (ada_ignore_descriptive_types_p): New static global.
1542 (find_parallel_type_by_descriptive_type): Return immediately
1543 if ada_ignore_descriptive_types_p is set.
1544 (_initialize_ada_language): Register new commands "maintenance
1545 set ada", "maintenance show ada", "maintenance set ada
1546 ignore-descriptive-types" and "maintenance show ada
1547 ignore-descriptive-types".
1548 * NEWS: Add entry for new "maint ada set/show
1549 ignore-descriptive-types" commands.
1551 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
1553 * record-btrace.c (record_btrace_close): Call btrace_teardown
1556 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1558 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
1561 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1563 * ada-typeprint (type_is_full_subrange_of_target_type):
1565 (print_range): Add parameter bounds_prefered_p. If not set,
1566 try printing range types using the name of their base type.
1567 (print_range_type): Add parameter bounds_prefered_p.
1568 Use it in call to print_range.
1569 (print_array_type, ada_print_type): Update calls to print_range
1570 and print_range_type.
1572 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1574 * ada-typeprint.c (print_array_type, print_choices, print_range)
1575 (print_range_bound, print_dynamic_range_bound, print_range_type):
1578 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1580 * ada-typeprint.c (print_range): Add missing empty line
1581 after local declaration.
1583 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1585 * ada-valprint.c (print_optional_low_bound): Get index_type's
1586 target type for as long as it is a TYPE_CODE_RANGE.
1588 2014-01-27 Joel Brobecker <brobecker@adacore.com>
1590 * procfs.c (procfs_make_note_section): Remove assertion and
1593 2014-01-24 Yao Qi <yao@codesourcery.com>
1595 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
1596 * corelow.c (get_core_siginfo): Likewise.
1598 2014-01-24 Yao Qi <yao@codesourcery.com>
1600 * remote.c (remote_write_bytes_aux): Change type of 'len' to
1601 ULONGEST. Don't check 'len' is negative.
1602 (remote_write_bytes): Change type of 'len' to ULONGEST.
1604 2014-01-23 Tom Tromey <tromey@redhat.com>
1607 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
1608 Handle exception from frame.block.
1609 (FrameVars.fetch_frame_locals): Likewise.
1611 2014-01-23 Tom Tromey <tromey@redhat.com>
1614 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
1615 on a NULL pointer. Move "goto error" to correct place.
1617 2014-01-23 Tom Tromey <tromey@redhat.com>
1620 * python/py-framefilter.c (apply_frame_filter): Call
1621 ensure_python_env after computing gdbarch.
1623 2014-01-23 Yao Qi <yao@codesourcery.com>
1625 * target.c (raw_memory_xfer_partial): Change argument type
1626 from void * to gdb_byte *.
1627 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
1629 2014-01-22 Doug Evans <dje@google.com>
1631 New gdbserver option --debug-format=timestamp.
1634 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
1636 * syscalls/s390x-linux.xml: New file.
1637 * syscalls/s390-linux.xml: New file.
1638 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
1639 (XML_SYSCALL_FILENAME_S390X): Likewise.
1640 (op_svc): New enum value for SVC opcode.
1641 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
1642 (s390_linux_get_syscall_number): New function.
1643 (s390_gdbarch_init): Register '*get_syscall_number' and the
1644 syscall xml file name.
1645 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1646 "s390-linux.xml" and "s390x-linux.xml".
1647 * NEWS: Announce new feature.
1649 2014-01-22 Baruch Siach <baruch@tkos.co.il>
1651 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
1653 2014-01-22 Pedro Alves <palves@redhat.com>
1655 * xtensa-config.c: Include defs.h.
1657 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1659 * common/common-utils.h: Add "ARI:" comment beside __func__
1662 2014-01-22 Joel Brobecker <brobecker@adacore.com>
1664 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
1665 documentation a bit.
1667 2014-01-21 Roland McGrath <mcgrathr@google.com>
1669 * configure.ac: Call AM_PROG_INSTALL_STRIP.
1670 * configure: Regenerate.
1671 * aclocal.m4: Regenerate.
1672 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
1673 New substituted variables.
1674 (install-strip): New target.
1675 (INSTALL_SCRIPT): New substituted variable.
1676 (FLAGS_TO_PASS): Add it.
1677 (install-only): Use $(INSTALL_SCRIPT) rather than
1678 $(INSTALL_PROGRAM) for gcore.
1680 2014-01-20 Tom Tromey <tromey@redhat.com>
1682 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
1685 2014-01-20 Tom Tromey <tromey@redhat.com>
1687 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
1688 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
1689 (deprecated_cmd_warning, complete_on_cmdlist): Update.
1690 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
1691 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
1692 (struct cmd_list_element) <flags>: Remove.
1693 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
1694 doc_allocated>: New fields.
1695 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
1697 * maint.c (maintenance_do_deprecate): Update.
1698 * top.c (execute_command): Update.
1700 2014-01-20 Baruch Siach <baruch@tkos.co.il>
1702 * xtensa-linux-nat.c: Include asm/ptrace.h.
1704 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1706 * Makefile.in (SFILES): Add d-support.c.
1707 (COMMON_OBS): Add d-support.o.
1708 * d-lang.h (d_parse_symbol): Add comment, now defined in
1710 * d-lang.c (parse_call_convention)
1711 (parse_attributes, parse_function_types)
1712 (parse_function_args, parse_type, parse_identifier)
1713 (call_convention_p, d_parse_symbol): Move functions to ...
1714 * d-support.c: ... New file.
1716 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1718 * d-lang.h (d_parse_symbol): Add declaration.
1719 * d-lang.c (extract_identifiers)
1720 (extract_type_info): Remove functions.
1721 (parse_call_convention, parse_attributes)
1722 (parse_function_types, parse_function_args)
1723 (parse_type, parse_identifier, call_convention_p)
1724 (d_parse_symbol): New functions.
1725 (d_demangle): Use d_parse_symbol to demangle D symbols.
1727 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1729 * d-lang.h (struct builtin_d_type): New data type.
1730 (builtin_d_type): Add declaration.
1731 * d-lang.c (d_language_arch_info, build_d_types)
1732 (builtin_d_type): New functions.
1733 (enum d_primitive_types): New data type.
1734 (d_language_defn): Change c_language_arch_info to
1735 d_language_arch_info.
1736 (d_type_data): New static variable.
1737 (_initialize_d_language): Initialize d_type_data.
1739 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1741 * d-lang.h (d_main_name): Add declaration.
1742 * d-lang.c (d_main_name): New function.
1743 * symtab.c (find_main_name): Add call to d_main_name.
1745 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1747 * d-lang.c (d_language_defn): Change macro_expansion_c to
1750 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
1752 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1754 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
1756 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
1757 gdb_exception" declaration.
1758 * remote.c (getpkt_or_notif_sane): Likewise.
1760 2014-01-17 Doug Evans <dje@google.com>
1762 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
1763 function, contents of dirnames_to_char_ptr_vec_append moved here.
1764 (delim_string_to_char_ptr_vec): New function.
1765 (dirnames_to_char_ptr_vec_append): Rewrite.
1766 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
1768 2014-01-17 Doug Evans <dje@google.com>
1770 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
1772 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
1773 #include "common-utils.h".
1774 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
1775 * common/vec.h (VEC_ASSERT_PASS): Update.
1776 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
1777 (MACH_CHECK_ERROR): Update.
1779 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
1781 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
1783 * gdbarch.h: Regenerate.
1785 2014-01-16 Tom Tromey <tromey@redhat.com>
1787 * value.c (struct value) <regnum>: Move earlier.
1789 2014-01-16 Tom Tromey <tromey@redhat.com>
1791 * remote.c (extended_remote_create_inferior): Rename from
1792 extended_remote_create_inferior_1. Add "ops" argument. Remove
1795 2014-01-16 Pedro Alves <palves@redhat.com>
1797 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
1798 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
1801 2014-01-16 Doug Evans <dje@google.com>
1803 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
1805 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1807 * btrace.h (btrace_thread_flag): New.
1808 (struct btrace_thread_info) <flags>: New.
1809 * record-btrace.c (record_btrace_resume_thread)
1810 (record_btrace_find_thread_to_move, btrace_step_no_history)
1811 (btrace_step_stopped, record_btrace_start_replaying)
1812 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
1813 (record_btrace_find_resume_thread): New.
1814 (record_btrace_resume, record_btrace_wait): Extend.
1815 (record_btrace_can_execute_reverse): New.
1816 (record_btrace_open): Fail in non-stop mode.
1817 (record_btrace_set_replay): Split into this, ...
1818 (record_btrace_stop_replaying): ... this, ...
1819 (record_btrace_clear_histories): ... and this.
1820 (init_record_btrace_ops): Init to_can_execute_reverse.
1821 * NEWS: Announce it.
1823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1825 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
1826 (forward_target_decr_pc_after_break)
1827 (target_decr_pc_after_break): New.
1828 * target.c (forward_target_decr_pc_after_break)
1829 (target_decr_pc_after_break): New.
1830 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
1831 instead of gdbarch_decr_pc_after_break.
1832 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1833 instead of gdbarch_decr_pc_after_break.
1834 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
1835 instead of gdbarch_decr_pc_after_break.
1836 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
1837 instead of gdbarch_decr_pc_after_break.
1838 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
1839 instead of gdbarch_decr_pc_after_break.
1840 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
1841 instead of gdbarch_decr_pc_after_break.
1843 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1845 * btrace.c: Include regcache.h.
1846 (btrace_add_pc): New.
1847 (btrace_enable): Call btrace_add_pc.
1848 (btrace_is_empty): New.
1849 * btrace.h (btrace_is_empty): New.
1850 * record-btrace.c (require_btrace, record_btrace_info): Call
1853 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1855 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
1856 Support delta reads.
1857 (linux_disable_btrace): Change return type.
1858 * common/linux-btrace.h (linux_read_btrace): Change parameters
1859 and return type to allow error reporting. Update users.
1860 (linux_disable_btrace): Change return type. Update users.
1861 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
1863 (btrace_error): New.
1864 (btrace_block) <begin>: Comment on BEGIN == 0.
1865 * btrace.c (btrace_compute_ftrace): Start from the end of
1867 (btrace_stitch_trace, btrace_clear_history): New.
1868 (btrace_fetch): Read delta trace, return if replaying.
1869 (btrace_clear): Move clear history code to btrace_clear_history.
1870 (parse_xml_btrace): Throw an error if parsing failed.
1871 * target.h (struct target_ops) <to_read_btrace>: Change parameters
1872 and return type to allow error reporting.
1873 (target_read_btrace): Change parameters and return type to allow
1875 * target.c (target_read_btrace): Update.
1876 * remote.c (remote_read_btrace): Support delta reads. Pass
1878 * NEWS: Announce it.
1880 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1882 * record.h (record_btrace_frame_unwind)
1883 (record_btrace_tailcall_frame_unwind): New declarations.
1884 * dwarf2-frame: Include record.h
1885 (dwarf2_frame_cfa): Throw an error for btrace frames.
1886 * record-btrace.c: Include hashtab.h.
1887 (btrace_get_bfun_name): New.
1888 (btrace_call_history): Call btrace_get_bfun_name.
1889 (struct btrace_frame_cache): New.
1891 (bfcache_hash, bfcache_eq, bfcache_new): New.
1892 (btrace_get_frame_function): New.
1893 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
1894 (record_btrace_frame_this_id): Compute own id.
1895 (record_btrace_frame_prev_register): Provide PC, throw_error
1896 for all other registers.
1897 (record_btrace_frame_sniffer): Detect btrace frames.
1898 (record_btrace_tailcall_frame_sniffer): New.
1899 (record_btrace_frame_dealloc_cache): New.
1900 (record_btrace_frame_unwind): Add new functions.
1901 (record_btrace_tailcall_frame_unwind): New.
1902 (_initialize_record_btrace): Allocate cache.
1903 * btrace.c (btrace_clear): Call reinit_frame_cache.
1904 * NEWS: Announce it.
1906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1908 * record-btrace.c (record_btrace_set_replay)
1909 (record_btrace_goto_begin, record_btrace_goto_end)
1910 (record_btrace_goto): New.
1911 (init_record_btrace_ops): Initialize them.
1912 * NEWS: Announce it.
1914 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1916 * record-btrace.c (record_btrace_find_new_threads)
1917 (record_btrace_thread_alive): New.
1918 (init_record_btrace_ops): Initialize to_find_new_threads and
1921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1923 * record-btrace.c (record_btrace_resume): New.
1924 (record_btrace_wait): New.
1925 (init_record_btrace_ops): Initialize to_wait and to_resume.
1927 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1929 * record-btrace.c (record_btrace_xfer_partial)
1930 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
1931 (record_btrace_allow_memory_access): New.
1932 (init_record_btrace_ops): Initialize new methods.
1933 * target.c (raw_memory_xfer_partial): Bail out if target reports
1934 that this memory is not available.
1936 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
1938 * target.h (target_ops) <to_insert_breakpoint>
1939 <to_remove_breakpoint>: Add target_ops parameter.
1940 (forward_target_insert_breakpoint): New.
1941 (forward_target_remove_breakpoint): New.
1942 (memory_remove_breakpoint, memory_insert_breakpoint):
1943 Add target_ops parameter.
1944 * target.c (target_insert_breakpoint): Split into this and ...
1945 (forward_target_insert_breakpoint): ... this.
1946 (target_remove_breakpoint): Split into this and ...
1947 (forward_target_remove_breakpoint): ... this.
1948 (debug_to_insert_breakpoint): Add target_ops parameter.
1949 Call forward_target_insert_breakpoint.
1950 (debug_to_remove_breakpoint): Add target_ops parameter.
1951 Call forward_target_remove_breakpoint.
1952 (update_current_target): Do not inherit or default to_insert_breakpoint
1953 and to_remove_breakpoint.
1954 * corelow.c (ignore): Add target_ops parameter.
1955 * exec.c (ignore): Add target_ops parameter.
1956 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
1957 Add target_ops parameter.
1958 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
1959 Add target_ops parameter.
1960 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
1961 Add target_ops parameter.
1962 * record-full.c (record_full_beneath_to_insert_breakpoint)
1963 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
1964 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
1965 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
1966 (record_full_core_remove_breakpoint): Add target_ops parameter.
1968 (record_full_beneath_to_insert_breakpoint_ops)
1969 (record_full_beneath_to_remove_breakpoint_ops)
1970 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
1971 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
1972 tmp_to_remove_breakpoint_ops,
1973 record_full_beneath_to_insert_breakpoint_ops, and
1974 record_full_beneath_to_remove_breakpoint_ops.
1975 * remote-m32r-sdi.c (m32r_insert_breakpoint)
1976 (m32r_remove_breakpoint): Add target_ops parameter.
1977 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
1978 Add target_ops parameter.
1979 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
1980 Add target_ops parameter.
1982 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1983 Markus Metzger <markus.t.metzger@intel.com>
1985 * record-btrace.c: Include frame-unwind.h.
1986 (record_btrace_frame_unwind_stop_reason)
1987 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
1988 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
1990 (init_record_btrace_ops): Install it.
1992 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1994 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
1997 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1999 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
2002 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2004 * frame-unwind.c: Include target.h.
2005 (frame_unwind_try_unwinder): New function with code from ...
2006 (frame_unwind_find_by_frame): ... here. New variable
2007 unwinder_from_target, call also target_get_unwinder)
2008 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
2009 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
2010 * target.h (struct target_ops): New fields to_get_unwinder and
2011 to_get_tailcall_unwinder.
2012 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
2014 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2016 * record-btrace.c (record_btrace_fetch_registers)
2017 (record_btrace_store_registers)
2018 (record_btrace_to_prepare_to_store): New.
2019 (init_record_btrace_ops): Add the above.
2021 2014-01-16 Tom Tromey <tromey@redhat.com>
2023 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
2024 * target.h (struct target_ops) <to_prepare_to_store>: Add
2026 (target_prepare_to_store): Add argument.
2027 * target.c (debug_to_prepare_to_store): Add argument.
2028 (update_current_target): Update.
2029 * remote.c (remote_prepare_to_store): Add 'self' argument.
2030 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
2031 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
2032 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
2033 * record-full.c (record_full_core_prepare_to_store): Add 'self'
2035 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
2036 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
2037 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
2038 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
2039 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
2041 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2043 * btrace.h (replay) <replay>: New.
2044 (btrace_is_replaying): New.
2045 * btrace.c (btrace_clear): Free replay iterator.
2046 (btrace_is_replaying): New.
2047 * record-btrace.c (record_btrace_is_replaying): New.
2048 (record_btrace_info): Print insn number if replaying.
2049 (record_btrace_insn_history): Start at replay position.
2050 (record_btrace_call_history): Start at replay position.
2051 (init_record_btrace_ops): Init to_record_is_replaying.
2053 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2055 * record-btrace.c (record_btrace_insn_history_range): Include
2057 (record_btrace_insn_history_from): Adjust range.
2058 (record_btrace_call_history_range): Include
2060 (record_btrace_call_history_from): Adjust range.
2061 * NEWS: Announce changes.
2063 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2065 * record.h (enum record_print_flag)
2066 <record_print_indent_calls>: New.
2067 * record.c (get_call_history_modifiers): Recognize /c modifier.
2068 (_initialize_record): Document /c modifier.
2069 * record-btrace.c (btrace_call_history): Add btinfo parameter.
2070 Reorder fields. Optionally indent the function name. Update
2072 * NEWS: Announce changes.
2074 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2076 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
2078 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2080 * btrace.c (ftrace_new_function): Start counting at one.
2081 * record-btrace.c (record_btrace_info): Adjust number of calls
2083 * NEWS: Announce it.
2085 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2087 * record-btrace.c (btrace_call_history_insn_range): Print
2088 insn range as [begin, end].
2090 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2092 * btrace.h (struct btrace_func_link): New.
2093 (enum btrace_function_flag): New.
2094 (struct btrace_inst): Rename to ...
2095 (struct btrace_insn): ...this. Update all users.
2096 (struct btrace_func) <ibegin, iend>: Remove.
2097 (struct btrace_func_link): New.
2098 (struct btrace_func): Rename to ...
2099 (struct btrace_function): ...this. Update all users.
2100 (struct btrace_function) <segment, flow, up, insn, insn_offset)
2101 (number, level, flags>: New.
2102 (struct btrace_insn_iterator): Rename to ...
2103 (struct btrace_insn_history): ...this.
2105 (struct btrace_insn_iterator, btrace_call_iterator): New.
2106 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
2107 (struct btrace_target_info) <begin, end, level>
2108 <insn_history, call_history>: New.
2109 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2110 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2111 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2112 (btrace_call_number, btrace_call_begin, btrace_call_end)
2113 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2114 (btrace_find_function_by_number, btrace_set_insn_history)
2115 (btrace_set_call_history): New.
2116 * btrace.c (btrace_init_insn_iterator)
2117 (btrace_init_func_iterator, compute_itrace): Remove.
2118 (ftrace_print_function_name, ftrace_print_filename)
2119 (ftrace_skip_file): Change
2121 (ftrace_init_func): Remove.
2122 (ftrace_debug): Use new btrace_function fields.
2123 (ftrace_function_switched): Also consider gaining and
2124 losing symbol information).
2125 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
2126 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
2127 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
2129 (ftrace_new_function): Move. Remove debug print.
2130 (ftrace_update_lines, ftrace_update_insns): New.
2131 (ftrace_update_function): Check for call, ret, and jump.
2132 (compute_ftrace): Renamed to ...
2133 (btrace_compute_ftrace): ...this. Rewritten to compute call
2135 (btrace_fetch, btrace_clear): Updated.
2136 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
2137 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
2138 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
2139 (btrace_call_number, btrace_call_begin, btrace_call_end)
2140 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
2141 (btrace_find_function_by_number, btrace_set_insn_history)
2142 (btrace_set_call_history): New.
2143 * record-btrace.c (require_btrace): Use new btrace thread
2145 (record_btrace_info, btrace_insn_history)
2146 (record_btrace_insn_history, record_btrace_insn_history_range):
2147 Use new btrace thread info fields and new iterator.
2148 (btrace_func_history_src_line): Rename to ...
2149 (btrace_call_history_src_line): ...this. Use new btrace
2151 (btrace_func_history): Rename to ...
2152 (btrace_call_history): ...this. Use new btrace thread info
2153 fields and new iterator.
2154 (record_btrace_call_history, record_btrace_call_history_range):
2155 Use new btrace thread info fields and new iterator.
2157 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2159 * frame.h (frame_id_build_unavailable_stack_special): New.
2160 * frame.c (frame_id_build_unavailable_stack_special): New.
2162 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2164 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
2165 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
2166 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
2168 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
2169 (i386_insn_is_jump, i386_jmp_p): New.
2170 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
2171 insn_is_jump to gdbarch.
2172 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
2173 * gdbarch.h: Regenerated.
2174 * gdbarch.c: Regenerated.
2175 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
2176 (default_insn_is_jump): New.
2177 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
2178 (default_insn_is_jump): New.
2180 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2182 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
2184 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
2185 (btrace_read_type) <btrace_read_new>: Change to ...
2186 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
2188 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
2190 * common/linux-btrace.c (linux_read_btrace): Free trace from
2193 2014-01-15 Doug Evans <dje@google.com>
2195 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
2198 2014-01-15 Tom Tromey <tromey@redhat.com>
2200 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
2201 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
2202 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
2203 (set_objfile_main_name): New function.
2204 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
2205 language_of_main>: New fields.
2206 (set_objfile_main_name): Declare.
2207 * symtab.c (find_main_name): Loop over objfiles to find the main
2209 (set_main_name): Now static.
2210 (get_main_info): Add comment.
2211 * symtab.h (set_main_name): Don't declare.
2213 2014-01-15 Tom Tromey <tromey@redhat.com>
2215 * symtab.c (main_progspace_key): New global.
2216 (struct main_info): New.
2217 (name_of_main, language_of_main): Remove.
2218 (get_main_info, main_info_cleanup): New function.
2219 (set_main_name, main_name, main_language): Use get_main_info.
2220 (_initialize_symtab): Initialize main_progspace_key.
2222 2014-01-15 Tom Tromey <tromey@redhat.com>
2224 * dbxread.c (process_one_symbol): Update.
2225 * dwarf2read.c (read_partial_die): Update.
2226 * symfile.c (set_initial_language): Call main_language.
2227 * symtab.c (language_of_main): Now static.
2228 (set_main_name): Add 'lang' parameter.
2229 (find_main_name): Update.
2230 (main_language): New function.
2231 (symtab_observer_executable_changed): Update.
2232 * symtab.h (set_main_name): Update.
2233 (language_of_main): Remove.
2234 (main_language): Declare.
2236 2014-01-15 Tom Tromey <tromey@redhat.com>
2238 * symfile.c (init_entry_point_info): Use new "initialized" field.
2240 * objfiles.h (struct entry_point) <initialized>: New field.
2241 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
2242 (struct objfile) <ei>: ...here. Remove.
2243 * objfiles.c (entry_point_address_query): Update.
2245 2014-01-15 Tom Tromey <tromey@redhat.com>
2247 * objfiles.c (entry_point_address_query): Relocate entry point
2249 (objfile_relocate1): Do not relocate entry point address.
2250 * objfiles.h (struct entry_info) <entry_point>: Update comment.
2251 <the_bfd_section_index>: New field.
2252 * symfile.c (init_entry_point_info): Find the entry point's
2255 2014-01-15 Tom Tromey <tromey@redhat.com>
2257 * solib-frv.c (enable_break): Use entry_point_address_query.
2259 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2261 * NEWS: Add note on improved process record-replay on
2262 arm*-linux* targets.
2264 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2266 * arm-tdep.c (enum arm_record_result): New enum.
2267 (arm_record_unsupported_insn): New function.
2268 (arm_record_coproc_data_proc): Removed.
2269 (thumb2_record_ld_st_multiple): New function.
2270 (thumb2_record_ld_st_dual_ex_tbb): New function.
2271 (thumb2_record_data_proc_sreg_mimm): New function.
2272 (thumb2_record_ps_dest_generic): New function.
2273 (thumb2_record_branch_misc_cntrl): New function.
2274 (thumb2_record_str_single_data): New function.
2275 (thumb2_record_ld_mem_hints): New function.
2276 (thumb2_record_ld_word): New function.
2277 (thumb2_record_lmul_lmla_div): New function.
2278 (thumb2_record_decode_insn_handler): New function.
2279 (decode_insn): Add thumb32 instruction handlers.
2281 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2283 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
2284 (struct arm_linux_record_tdep): Declare.
2285 (arm_canonicalize_syscall): New function.
2286 (arm_all_but_pc_registers_record): New function.
2287 (arm_linux_syscall_record): New function.
2288 (arm_linux_init_abi): Add syscall recording constructs.
2289 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
2290 decoding. (arm_record_coproc_data_proc): Update arm syscall
2292 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
2293 <arm_syscall_record>: New field.
2294 * configure.tgt (arm*-*-linux*): Add linux-record.o to
2297 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2299 * arm-tdep.c (thumb_record_misc): Update to use sp as base
2300 register for push instruction recording.
2302 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2304 * arm-tdep.c (thumb_record_misc): Update to correct logical
2305 error while recording ldm, ldmia and pop instructions.
2307 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
2309 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
2311 2014-01-15 Pedro Alves <palves@redhat.com>
2313 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
2314 (go32_resume, go32_fetch_registers, store_register)
2315 (go32_store_registers, go32_prepare_to_store)
2316 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
2317 (go32_create_inferior, go32_can_run, go32_terminal_init)
2318 (go32_terminal_inferior, go32_terminal_ours): Delete forward
2321 2014-01-15 Tom Tromey <tromey@redhat.com>
2323 * target.h (async_callback_ftype): New typedef.
2324 (struct target_ops) <to_async>: Use it.
2326 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2328 * python/py-value.c (get_field_type): Remove unnecessary curly
2329 braces for single-statement if block.
2331 2014-01-15 Joel Brobecker <brobecker@adacore.com>
2333 * python/py-type.c (convert_field): Add missing empty line
2336 2014-01-14 Doug Evans <dje@google.com>
2338 * symfile.h (expand_symtabs_matching): Renamed from
2339 expand_partial_symbol_names. Update prototype.
2340 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2341 * symfile.c (expand_symtabs_matching): Renamed from
2342 expand_partial_symbol_names. New args file_matcher, kind.
2343 Rename arg fun to symbol_matcher.
2344 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
2345 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
2346 ada_expand_partial_symbol_name.
2347 (ada_make_symbol_completion_list): Update to call
2348 expand_symtabs_matching.
2349 (ada_add_global_exceptions): Call expand_symtabs_matching.
2350 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
2351 call map_symbol_filenames.
2352 * symtab.c (sources_info): Update to call map_symbol_filenames.
2353 (search_symbols): Call expand_symtabs_matching.
2354 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
2355 (default_make_symbol_completion_list_break_on): Update to call
2356 expand_symtabs_matching.
2357 (make_source_files_completion_list): Update to call
2358 map_symbol_filenames.
2360 2014-01-14 Doug Evans <dje@google.com>
2362 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
2363 (expand_symtabs_symbol_matcher_ftype): New typedef.
2364 (quick_symbol_functions.expand_symtabs_matching): Update to use.
2365 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2366 * symfile.c (expand_partial_symbol_names): Update to use
2367 expand_symtabs_symbol_matcher_ftype.
2368 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
2369 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2370 Arg name_matcher renamed to symbol_matcher.
2371 * psymtab.c (recursively_search_psymtabs): Update to use
2372 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
2374 (expand_symtabs_matching_via_partial): Update to use
2375 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
2376 Arg name_matcher renamed to symbol_matcher.
2378 2014-01-14 Doug Evans <dje@google.com>
2380 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
2381 (map_partial_symbol_filenames): Ditto.
2382 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
2383 (map_partial_symbol_filenames): Ditto.
2384 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
2385 (map_partial_symbol_filenames): Ditto.
2386 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
2387 (map_partial_symbol_filenames): Ditto.
2388 * symtab.c: Delete #include "psymtab.h".
2390 2014-01-14 Pedro Alves <palves@redhat.com>
2391 Tom Tromey <tromey@redhat.com>
2393 * infrun.c (use_displaced_stepping): Use find_record_target
2394 instead of RECORD_IS_USED.
2395 (adjust_pc_after_break): Use record_full_is_used instead of
2397 * record-btrace.c (record_btrace_open): Call record_preopen
2398 instead of checking RECORD_IS_USED.
2399 * record-full.c (record_full_shortname)
2400 (record_full_core_shortname): New globals.
2401 (record_full_is_used): New function.
2402 (find_full_open): Call record_preopen instead of checking
2404 (init_record_full_ops): Set the target's shortname to
2405 record_full_shortname.
2406 (init_record_full_core_ops): Set the target's shortname to
2407 record_full_core_shortname.
2408 * record-full.h (record_full_is_used): Declare.
2409 * record.c (find_record_target): Make extern.
2410 (record_preopen): New function.
2411 * record.h (RECORD_IS_USED): Delete macro.
2412 (find_record_target, record_preopen): Declare functions.
2414 2014-01-14 Yao Qi <yao@codesourcery.com>
2416 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
2417 'len''s type to ULONGEST.
2418 (core_xfer_shared_libraries_aix): Likewise.
2419 * gdbarch.c, gdbarch.h: Regenerated.
2420 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
2421 Change type of 'len' to ULONGEST.
2422 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2423 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2425 2014-01-14 Yao Qi <yao@codesourcery.com>
2427 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
2428 type of 'len' to ULONGEST.
2429 (linux_xfer_osdata_processgroups): Likewise.
2430 (linux_xfer_osdata_threads): Likewise.
2431 (linux_xfer_osdata_fds): Likewise.
2432 (linux_xfer_osdata_isockets): Likewise.
2433 (linux_xfer_osdata_shm): Likewise.
2434 (linux_xfer_osdata_sem): Likewise.
2435 (linux_xfer_osdata_msg): Likewise.
2436 (linux_common_xfer_osdata): Likewise.
2437 (struct osdata_type) <getter>: Likewise.
2438 * common/linux-osdata.h (linux_common_xfer_osdata): Update
2441 2014-01-14 Yao Qi <yao@codesourcery.com>
2443 * target.h (target_xfer_partial_ftype): Update.
2444 (struct target_ops) <to_xfer_partial>: Change 'len' type to
2446 * aix-thread.c (aix_thread_xfer_partial): Change type of
2447 argument 'len' to ULONGEST.
2448 * auxv.c (procfs_xfer_auxv): Likewise.
2449 (ld_so_xfer_auxv): Likewise.
2450 (memory_xfer_auxv): Likewise.
2451 * bfd-target.c (target_bfd_xfer_partial): Likewise.
2452 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
2453 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
2454 * corelow.c (core_xfer_partial): Likewise.
2455 * ctf.c (ctf_xfer_partial): Likewise.
2456 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
2458 (darwin_read_dyld_info): Likewise.
2459 (darwin_xfer_partial): Likewise.
2460 * exec.c (section_table_xfer_memory_partial): Likewise.
2461 (exec_xfer_partial): Likewise.
2462 * exec.h (section_table_xfer_memory_partial): Update
2464 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
2465 instead of plongest.
2466 (gnu_xfer_partial): Likewise.
2467 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
2468 (ia64_hpux_xfer_solib_got): Likewise.
2469 (ia64_hpux_xfer_partial): Likewise.
2470 * ia64-linux-nat.c (ia64_linux_xfer_partial):
2471 * inf-ptrace.c (inf_ptrace_xfer_partial):
2472 * inf-ttrace.c (inf_ttrace_xfer_partial):
2473 * linux-nat.c (linux_xfer_siginfo): Likewise.
2474 (linux_nat_xfer_partial): Likewise.
2475 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
2476 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
2477 * monitor.c (monitor_xfer_memory): Likewise.
2478 (monitor_xfer_partial): Likewise.
2479 * procfs.c (procfs_xfer_partial): Likewise.
2480 * record-full.c (record_full_xfer_partial): Likewise.
2481 (record_full_core_xfer_partial): Likewise.
2482 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
2483 instead of plongest.
2484 (gdbsim_xfer_partial): Likewise.
2485 * remote.c (remote_xfer_partial): Likewise.
2486 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
2487 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
2489 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
2490 (rs6000_xfer_shared_libraries): Likewise.
2491 * sol-thread.c (sol_thread_xfer_partial): Likewise.
2492 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
2493 (sparc_xfer_partial): Likewise.
2494 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
2495 (spu_xfer_partial): Likewise.
2496 * spu-multiarch.c (spu_xfer_partial): Likewise.
2497 * target.c (target_read_live_memory): Likewise.
2498 (memory_xfer_live_readonly_partial): Likewise.
2499 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
2500 (target_xfer_partial, default_xfer_partial): Likewise.
2501 (current_xfer_partial): Likewise.
2502 * tracepoint.c (tfile_xfer_partial): Likewise.
2503 * windows-nat.c (windows_xfer_memory): Likewise. Call
2504 pulongest instead of plongest.
2505 (windows_xfer_partial): Likewise.
2506 (windows_xfer_shared_libraries): Likewise.
2508 2014-01-14 Yao Qi <yao@codesourcery.com>
2510 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
2511 target_xfer_partial_ftype.
2513 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
2517 * valops.c (value_struct_elt_bitpos): New function
2518 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
2519 object to 'None' if the field name is an empty string ("").
2520 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
2521 attribute to look for a field when 'name' is 'None'.
2522 (get_field_type): New function
2524 2014-01-13 Doug Evans <dje@google.com>
2527 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
2528 (try_open_dwop_file): Ditto.
2529 * gdb_bfd.c: #include "vec.h".
2530 (bfdp): New typedef.
2531 (struct gdb_bfd_data): New member included_bfds.
2532 (gdb_bfd_unref): Unref all included bfds.
2533 (gdb_bfd_record_inclusion): New function.
2534 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
2536 2014-01-13 Tom Tromey <tromey@redhat.com>
2538 * gdbcore.h (deprecated_core_resize_section_table): Remove.
2540 2014-01-13 Tom Tromey <tromey@redhat.com>
2542 * defs.h (use_windows): Remove.
2543 * gdb.c (main): Update.
2544 * main.c (captured_main, gdb_main): Update.
2545 * main.h (struct captured_main_args) <use_windows>: Remove.
2546 * top.c (use_windows): Remove.
2548 2014-01-13 Tom Tromey <tromey@redhat.com>
2550 * defs.h (deprecated_flush_hook): Remove.
2552 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2555 * linux-thread-db.c (try_thread_db_load): Add parameter
2556 check_auto_load_safe. Move here the file_is_auto_load_safe call.
2557 (try_thread_db_load_from_pdir_1): Move it there from here.
2558 (try_thread_db_load_from_sdir): Update caller.
2559 (try_thread_db_load_from_dir): Move it there from here.
2561 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
2563 * regformats/regdat.sh: Always rewrite the register file.
2565 2014-01-13 Pedro Alves <palves@redhat.com>
2567 * Makefile.in (CHECK_HEADERS): New variable.
2568 (check-headers:): New rule.
2570 2014-01-13 Tom Tromey <tromey@redhat.com>
2572 * cli/cli-setshow.c (do_set_command): Update.
2573 * defs.h (deprecated_set_hook): Remove.
2574 * top.c (deprecated_set_hook): Remove.
2576 2014-01-13 Pedro Alves <palves@redhat.com>
2578 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
2579 the tracepoint if the PC is a pseudo-register.
2581 2014-01-13 Tom Tromey <tromey@redhat.com>
2583 * defs.h (XCALLOC): Remove.
2584 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
2585 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
2586 * dwarf2loc.c (allocate_piece_closure): Likewise.
2587 * elfread.c (elf_symfile_segments): Likewise.
2588 (elf_symfile_segments): Likewise.
2589 * gdbtypes.c (copy_type_recursive): Likewise.
2590 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
2591 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
2592 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
2594 * mt-tdep.c (mt_gdbarch_init): Likewise.
2595 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
2597 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
2598 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
2599 * registry.c (registry_alloc_data): Likewise.
2600 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
2601 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2602 * serial.c (serial_fdopen_ops): Likewise.
2603 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
2605 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
2606 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
2609 2014-01-13 Tom Tromey <tromey@redhat.com>
2611 * defs.h (XMALLOC): Remove.
2612 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
2613 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
2614 * cli-out.c (struct ui_out *): Likewise.
2615 * cli/cli-dump.c (add_dump_command): Likewise.
2616 (add_dump_command): Likewise.
2617 * complaints.c (get_complaints): Likewise.
2618 (find_complaint): Likewise.
2619 * dwarf2-frame.c (execute_cfa_program): Likewise.
2620 * dwarf2read.c (abbrev_table_read_table): Likewise.
2621 * gdbarch.sh: Likewise.
2622 * gdbarch.c: Rebuild.
2623 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
2624 * interps.c (interp_new): Likewise.
2625 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
2626 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
2627 * mi/mi-console.c (mi_console_file_new): Likewise.
2628 * mi/mi-interp.c (mi_interpreter_init): Likewise.
2629 * mi/mi-out.c (mi_out_new): Likewise.
2630 * mi/mi-parse.c (mi_parse): Likewise.
2631 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
2632 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
2633 * observer.c (xalloc_observer_list_node): Likewise.
2634 * regcache.c (regcache_xmalloc_1): Likewise.
2635 * reggroups.c (reggroup_new): Likewise.
2636 (_initialize_reggroup): Likewise.
2637 * registry.c (register_data_with_cleanup): Likewise.
2638 * remote.c (remote_notif_stop_alloc_reply): Likewise.
2639 * ser-base.c (serial_ttystate): Likewise.
2640 * ser-mingw.c (make_pipe_state): Likewise.
2641 * ser-pipe.c (pipe_open): Likewise.
2642 * serial.c (serial_open): Likewise.
2643 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2644 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2645 (tui_alloc_win_info): Likewise.
2646 (tui_add_content_elements): Likewise.
2647 * tui/tui-file.c (tui_file_new): Likewise.
2648 * tui/tui-out.c (tui_out_new): Likewise.
2649 * ui-file.c (mem_file_new): Likewise.
2650 * ui-out.c (push_level): Likewise.
2651 (make_cleanup_ui_out_end): Likewise.
2652 (append_header_to_list): Likewise.
2653 (ui_out_new): Likewise.
2654 * user-regs.c (user_reg_add_builtin): Likewise.
2656 2014-01-13 Tom Tromey <tromey@redhat.com>
2658 * defs.h (XZALLOC): Remove.
2659 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
2660 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
2661 (get_ada_tasks_inferior_data): Likewise.
2662 * auto-load.c (get_auto_load_pspace_data): Likewise.
2663 * auxv.c (get_auxv_inferior_data): Likewise.
2664 * bfd-target.c (target_bfd_reopen): Likewise.
2665 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
2666 (deprecated_insert_raw_breakpoint): Likewise.
2667 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
2668 * corelow.c (core_open): Likewise.
2669 * darwin-nat.c (darwin_check_new_threads): Likewise.
2670 (darwin_attach_pid): Likewise.
2671 * dummy-frame.c (dummy_frame_push): Likewise.
2672 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
2673 * dwarf2loc.c (allocate_piece_closure): Likewise.
2674 * elfread.c (elf_symfile_segments): Likewise.
2675 * eval.c (ptrmath_type_p): Likewise.
2676 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
2677 * gdbtypes.c (alloc_type_arch): Likewise.
2678 (alloc_type_instance): Likewise.
2679 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2680 * inf-child.c (inf_child_can_use_agent): Likewise.
2681 * inflow.c (get_inflow_inferior_data): Likewise.
2682 * infrun.c (save_infcall_suspend_state): Likewise.
2683 * jit.c (jit_reader_load): Likewise.
2684 (get_jit_objfile_data): Likewise.
2685 (get_jit_program_space_data): Likewise.
2686 (jit_object_open_impl): Likewise.
2687 (jit_symtab_open_impl): Likewise.
2688 (jit_block_open_impl): Likewise.
2689 (jit_frame_sniffer): Likewise.
2690 * linux-fork.c (add_fork): Likewise.
2691 * maint.c (make_command_stats_cleanup): Likewise.
2692 * objfiles.c (get_objfile_pspace_data): Likewise.
2693 * opencl-lang.c (struct lval_closure): Likewise.
2694 * osdata.c (osdata_start_osdata): Likewise.
2695 * progspace.c (new_address_space): Likewise.
2696 (add_program_space): Likewise.
2697 * remote-sim.c (get_sim_inferior_data): Likewise.
2698 * sh-tdep.c (sh_gdbarch_init): Likewise.
2699 * skip.c (Ignore): Likewise.
2700 (skip_delete_command): Likewise.
2701 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
2702 (library_list_start_library): Likewise.
2703 (solib_aix_current_sos): Likewise.
2704 * solib-darwin.c (get_darwin_info): Likewise.
2705 (darwin_current_sos): Likewise.
2706 * solib-dsbt.c (get_dsbt_info): Likewise.
2707 * solib-ia64-hpux.c (new_so_list): Likewise.
2708 (ia64_hpux_get_solib_linkage_addr): Likewise.
2709 * solib-spu.c (append_ocl_sos): Likewise.
2710 (spu_current_sos): Likewise.
2711 * solib-svr4.c (get_svr4_info): Likewise.
2712 (svr4_keep_data_in_core): Likewise.
2713 (library_list_start_library): Likewise.
2714 (svr4_default_sos): Likewise.
2715 (svr4_read_so_list): Likewise.
2716 * solib-target.c (library_list_start_library): Likewise.
2717 (solib_target_current_sos): Likewise.
2718 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
2719 * symfile-debug.c (install_symfile_debug_logging): Likewise.
2720 * symfile.c (default_symfile_segments): Likewise.
2721 * target-descriptions.c (tdesc_data_init): Likewise.
2722 (tdesc_create_reg): Likewise.
2723 (struct tdesc_type *): Likewise.
2724 (tdesc_create_vector): Likewise.
2725 (tdesc_set_struct_size): Likewise.
2726 (struct tdesc_type *): Likewise.
2727 (tdesc_free_feature): Likewise.
2728 (tdesc_create_feature): Likewise.
2729 * windows-nat.c (windows_add_thread): Likewise.
2730 (windows_make_so): Likewise.
2731 * xml-support.c (gdb_xml_body_text): Likewise.
2732 (gdb_xml_create_parser_and_cleanup): Likewise.
2733 (xml_process_xincludes): Likewise.
2734 * xml-syscall.c (allocate_syscalls_info): Likewise.
2735 (syscall_create_syscall_desc): Likewise.
2737 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
2739 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
2740 function, with code from i386_stap_parse_special_token.
2741 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2742 (i386_stap_parse_special_token): Move code to the two functions
2745 2014-01-09 Pedro Alves <palves@redhat.com>
2746 Hui Zhu <hui@codesourcery.com>
2749 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
2750 bp_err_string. Don't mark the location shlib_disabled if the
2751 error thrown wasn't a generic or memory error. Catch errors
2752 thrown while inserting breakpoints in overlayed code. Output
2753 error message of software breakpoints.
2754 * remote.c (remote_insert_breakpoint): If this breakpoint has
2755 target-side commands but this stub doesn't support Z0 packets,
2756 throw NOT_SUPPORTED_ERROR error.
2757 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
2758 * target.h (target_insert_breakpoint): Extend comment.
2759 (target_insert_hw_breakpoint): Add comment.
2761 2014-01-08 Pedro Alves <palves@redhat.com>
2763 * remote.c (remote_add_thread): Add threads silently if starting
2765 (remote_notice_new_inferior): If in all-stop, and starting up,
2766 don't call notice_new_inferior.
2767 (get_current_thread): New function, factored out from ...
2768 (add_current_inferior_and_thread): ... this. Adjust.
2769 (remote_start_remote) <all-stop>: Fetch the thread list. If we
2770 found any thread, then select the remote's current thread as GDB's
2773 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2775 * NEWS: Create a new section for the next release branch.
2776 Rename the section of the current branch, now that it has
2779 2014-01-08 Joel Brobecker <brobecker@adacore.com>
2781 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
2782 * version.in: Bump version to 7.7.50.DATE-cvs.
2784 2014-01-08 Yao Qi <yao@codesourcery.com>
2786 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
2787 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
2788 (spu_xfer_partial): Cast 'buf' to 'const char *'.
2790 2014-01-08 Yao Qi <yao@codesourcery.com>
2792 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
2793 return value of bfd_get_filename to symbol_file_add_from_bfd.
2795 2014-01-08 Pierre Muller <muller@sourceware.org>
2798 * coff-pe-read.c (struct read_pe_section_data): Add index field.
2799 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
2800 to prim_record_mininal_symbol_and_info.
2801 (add_pe_forwarded_sym): Use known section number of forwarded symbol
2802 in call to prim_record_minimal_symbol_and_info.
2803 (read_pe_exported_syms): Set index field of section_data.
2805 2014-01-07 Andrew Pinski <apinski@cavium.com>
2807 * features/aarch64-core.xml (cpsr): Change to be 64bit.
2808 * features/aarch64.c: Regenerate.
2810 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
2812 * target.c (return_null): Define.
2813 (update_current_target): Use it instead of return_zero for
2814 functions that return a pointer.
2816 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
2818 * source.c (add_path): Fix check for duplicated paths in the previously
2821 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
2823 * ada-lang.c: Remove duplicated include statements.
2824 * alphabsd-nat.c: Ditto.
2825 * amd64-darwin-tdep.c: Ditto.
2826 * amd64fbsd-nat.c: Ditto.
2827 * auto-load.c: Ditto.
2829 * breakpoint.c: Ditto.
2831 * fork-child.c: Ditto.
2832 * gdb_usleep.c: Ditto.
2833 * i386-darwin-tdep.c: Ditto.
2834 * i386fbsd-nat.c: Ditto.
2836 * inferior.c: Ditto.
2838 * linux-nat.c: Ditto.
2839 * linux-tdep.c: Ditto.
2840 * m68kbsd-nat.c: Ditto.
2841 * m68klinux-nat.c: Ditto.
2842 * microblaze-tdep.c: Ditto.
2843 * mips-linux-tdep.c: Ditto.
2844 * mn10300-tdep.c: Ditto.
2845 * nto-tdep.c: Ditto.
2846 * opencl-lang.c: Ditto.
2848 * printcmd.c: Ditto.
2849 * regcache.c: Ditto.
2850 * remote-m32r-sdi.c: Ditto.
2854 * tilegx-linux-nat.c: Ditto.
2855 * tilegx-tdep.c: Ditto.
2856 * tracepoint.c: Ditto.
2858 * vaxbsd-nat.c: Ditto.
2859 * windows-nat.c: Ditto.
2860 * xtensa-tdep.c: Ditto.
2862 2014-01-07 Yao Qi <yao@codesourcery.com>
2864 * spu-linux-nat.c (_initialize_spu_nat): Declare.
2866 2014-01-07 Yao Qi <yao@codesourcery.com>
2867 Joel Brobecker <brobecker@adacore.com>
2869 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
2870 (pdc_write_regs): Likewise.
2871 (fetch_regs_kernel_thread): Likewise.
2872 (store_regs_kernel_thread): Likewise.
2874 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2876 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
2877 tagged type objects to their actual type.
2879 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2881 * ada-valprint.c (print_field_values): Add "language" parameter.
2882 Update calls to print_field_values and print_variant_part.
2883 Pass new parameter "language" in call to val_print instead
2884 of "current_language". Replace call to ada_val_print by call
2886 (print_variant_part): Add "language" parameter.
2887 (ada_val_print_struct_union): Update call to print_field_values.
2889 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2891 * ada-valprint.c (ui_memcpy): Delete.
2892 (ada_print_floating): Update documentation. Add empty line
2893 between between function documentation and implementation.
2894 Delete variable "buffer". Use ui_file_xstrdup in place of
2895 ui_file_put. Minor adjustments following this change.
2897 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2899 * ada-valprint.c (ada_val_print_string): New function,
2900 extracted from ada_val_print_array.
2901 (ada_val_print_array): Replace extracted code by call
2902 to ada_val_print_string followed by a return. Move
2903 "else" branch to the function's top block.
2905 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2907 * ada-valprint.c (ada_val_print_array): Move implementation
2908 down. Rename parameter "offset" and "val" into "offset_aligned"
2909 and "original_value" respectively. Add parameter "offset".
2911 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2913 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
2914 re-organizing the code. Change the "???" message printed
2915 when target type is a TYPE_CODE_UNDEF into
2916 "<ref to undefined type>".
2918 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2920 * ada-valprint.c (print_record): Delete, implementation inlined...
2921 (ada_val_print_struct_union): ... here. Remove call to
2922 ada_check_typedef in inlined implementation.
2924 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2926 * ada-valprint.c (ada_val_print_gnat_array): New function,
2927 extracted from ada_val_print_1;
2928 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
2929 (ada_val_print_flt, ada_val_print_struct_union)
2930 (ada_val_print_ref): Likewise.
2931 (ada_val_print_1): Delete variables i and elttype.
2932 Replace extracted-out code by call to corresponding
2935 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2937 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
2939 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2941 * ada-valprint.c (ada_val_print_1): Replace calls to
2942 ada_val_print_1 by calls to val_print.
2944 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2946 * ada-valprint.c (ada_val_print_1): Add parameter "language".
2947 Update calls to self accordingly. Replace calls to c_val_print
2948 by calls to val_print.
2950 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2952 * ada-valprint.c (print_record): Delete declaration.
2953 (adjust_type_signedness, ada_val_print_1): Likewise.
2954 (ada_val_print): Move function implementation down.
2955 (print_variant_part, print_field_values, print_record):
2956 Move function implementation up.
2958 2014-01-07 Joel Brobecker <brobecker@adacore.com>
2960 * python/py-type.c (typy_get_name): New function.
2961 (type_object_getset): Add entry for attribute "name".
2962 * NEWS: Add entry mentioning this new attribute.
2964 2014-01-07 Yao Qi <yao@codesourcery.com>
2966 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
2969 2014-01-07 Yao Qi <yao@codesourcery.com>
2971 * gnu-nat.c (info_port_rights): Add qualifier const to
2974 2014-01-07 Yao Qi <yao@codesourcery.com>
2976 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
2978 2014-01-07 Yao Qi <yao@codesourcery.com>
2980 * gnu-nat.c (make_inf) Update declaration.
2981 (make_inf): Make it static.
2982 (inf_set_traced): Likewise.
2983 (inf_port_to_thread, inf_task_died_status): Likewise.
2985 2014-01-07 Yao Qi <yao@codesourcery.com>
2987 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
2989 2014-01-07 Yao Qi <yao@codesourcery.com>
2991 * gnu-nat.c (_initialize_gnu_nat): Declare.
2993 2014-01-07 Yao Qi <yao@codesourcery.com>
2995 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
2997 (struct gdbarch_info) <byte_order>: Change type to
2999 <byte_order_for_code>: Likewise.
3000 * gdbarch.c, gdbarch.h: Regenerated.
3002 2014-01-06 Sasha Smundak <asmundak@google.com>
3004 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
3006 2014-01-06 Tom Tromey <tromey@redhat.com>
3008 * doublest.c (convert_doublest_to_floatformat): Use const, not
3010 * somread.c (som_symtab_read): Likewise.
3012 2014-01-07 Hui Zhu <hui@codesourcery.com>
3014 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
3015 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
3016 (gdb_bfd_fopen): Ditto.
3017 (gdb_bfd_openr): Ditto.
3018 (gdb_bfd_openw): Ditto.
3019 (gdb_bfd_openr_iovec): Ditto.
3020 (gdb_bfd_fdopenr): Ditto.
3021 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
3022 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
3024 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
3026 * symfile-mem.c (symbol_file_add_from_memory): Removed
3027 gdb_bfd_stash_filename.
3029 2014-01-03 Doug Evans <dje@google.com>
3031 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
3034 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3036 Update year range in copyright notice of all files.
3038 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3040 * top.c (print_gdb_version): Set copyright year to 2014.
3042 2014-01-01 Joel Brobecker <brobecker@adacore.com>
3044 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
3046 For older changes see ChangeLog-2013.
3052 version-control: never