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