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