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