gdb: get_frame_language now takes a frame parameter.
[external/binutils.git] / gdb / ChangeLog
1 2015-08-07  Andrew Burgess  <andrew.burgess@embecosm.com>
2
3         * language.c (show_language_command): Find selected frame before
4         asking for the language of that frame.
5         (set_language_command): Likewise.
6         * language.h (get_frame_language): Add frame parameter.
7         * stack.c (get_frame_language): Add frame parameter, assert
8         parameter is not NULL, update comment and reindent.
9         * top.c (check_frame_language_change): Pass the selected frame
10         into get_frame_language.
11
12 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
13
14         * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
15         (pt_btrace_insn_flags): New.
16         (ftrace_add_pt): Call pt_btrace_insn_flags.
17         * btrace.h (btrace_insn_flag): New.
18         (btrace_insn) <flags>: New.
19         * record-btrace.c (btrace_insn_history): Print insn prefix.
20         * NEWS: Announce it.
21
22 2015-08-07  Markus Metzger  <markus.t.metzger@intel.com>
23
24         * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
25         * configure: Regenerate.
26
27 2015-08-06  Yaakov Selkowitz  <yselkowi@redhat.com>
28
29         * Makefile.in (LIBICONV): Define.
30         (CLIBS): Add LIBICONV.
31         * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
32         * configure: Regenerate.
33
34 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
35             Pedro Alves  <palves@redhat.com>
36
37         * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
38         (arm_set_abi): Likewise.
39         * ax-general.c (ax_print): Likewise.
40         * c-exp.y (exp : string_exp): Likewise.
41         * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
42         (do_compile_dwarf_expr_to_c): Likewise.
43         * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
44         Likewise.
45         * dwarf2expr.c (execute_stack_op): Likewise.
46         * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
47         (disassemble_dwarf_expression): Likewise.
48         * dwarf2read.c (dwarf2_add_member_fn): Likewise.
49         (read_array_order): Likewise.
50         (abbrev_table_read_table): Likewise.
51         (read_attribute_value): Likewise.
52         (skip_unknown_opcode): Likewise.
53         (dwarf_decode_macro_bytes): Likewise.
54         (dwarf_decode_macros): Likewise.
55         * eval.c (value_f90_subarray): Likewise.
56         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
57         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
58         * infrun.c (handle_command): Likewise.
59         * memory-map.c (memory_map_start_memory): Likewise.
60         * osabi.c (set_osabi): Likewise.
61         * parse.c (operator_length_standard): Likewise.
62         * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
63         single return point.
64         * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
65         * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
66         (gdbpy_lookup_global_symbol): Likewise.
67         * record-full.c (record_full_restore): Likewise.
68         * regcache.c (regcache_register_status): Likewise.
69         (regcache_raw_read): Likewise.
70         (regcache_cooked_read): Likewise.
71         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
72         * symtab.c (initialize_ordinary_address_classes): Likewise.
73         * target-debug.h (target_debug_print_signals): Likewise.
74         * utils.c (do_restore_current_language): Likewise.
75
76 2015-08-06  Clem Dickey  <clemd@acm.org>
77
78         PR python/17136
79         * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
80
81 2015-08-06  Simon Marchi  <simon.marchi@ericsson.com>
82
83         * complaints.c (enum complaint_series): Add newlines and remove
84         out of date comment.
85         (struct complaints) <series>: Change type to enum
86         complaint_series and remove out of date comment.
87         (symfile_complaint_hook): Use equivalent enum value
88         ISOLATED_MESSAGE instead of 0.
89
90 2015-08-06  Pedro Alves  <palves@redhat.com>
91
92         * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
93         returned > 0.
94
95 2015-08-06  Pierre Langlois  <pierre.langlois@arm.com>
96
97         * common/agent.c (symbol_list) <required>: Remove.
98
99 2015-08-06  Pedro Alves  <palves@redhat.com>
100
101         * target/waitstatus.h (enum target_stop_reason)
102         <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
103
104 2015-08-05  Pedro Alves  <palves@redhat.com>
105             Joel Brobecker  <brobecker@adacore.com>
106
107         * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
108         <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
109         case where BS->STOP is not set.
110
111 2015-08-05  Ulrich Weigand  <uweigand@de.ibm.com>
112
113         * nat/gdb_thread_db.h: Add copyright header.
114         Protect against multiple inclusion.
115
116 2015-08-05  Yao Qi  <yao.qi@linaro.org>
117
118         * aarch64-linux-nat.c (get_thread_id): Remove.
119         (debug_reg_change_callback): Call ptid_get_lwp instead of
120         get_thread_id.
121         (fetch_gregs_from_thread): Likewise.
122         (store_gregs_to_thread): Likewise.
123         (fetch_fpregs_from_thread): Likewise.
124         (store_fpregs_to_thread): Likewise.
125         (aarch64_linux_get_debug_reg_capacity): Likewise.
126         * arm-linux-nat.c (get_thread_id): Remove.
127         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
128         * xtensa-linux-nat.c (get_thread_id): Remove.
129         (GET_THREAD_ID): Update macro to use ptid_get_lwp.
130         * arm-linux-nat.c (get_thread_id): Remove.
131         (GET_THREAD_ID): Remove.
132         (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
133         (store_fpregs, fetch_regs, store_regs): Likewise.
134         (fetch_wmmx_regs, store_wmmx_regs): Likewise.
135         (fetch_vfp_regs, store_vfp_regs): Likewise.
136         (arm_linux_read_description): Likewise.
137         (arm_linux_get_hwbp_cap): Likewise.
138         * xtensa-linux-nat.c (get_thread_id): Remove.
139         (GET_THREAD_ID): Remove.
140         (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
141         GET_THREAD_ID.
142
143 2015-08-04  Ciro Santilli  <ciro.santilli@gmail.com>  (obvious patch)
144
145         * python/py-linetable.c: Fix case of Linetable to LineTable
146         in docstrings and code comments.
147         * python/py-symtab.c: Same.
148
149 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
150
151         * infcmd.c (signal_command): Call do_cleanups for args_chain.
152
153 2015-08-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
154
155         PR gdb/18767
156         * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
157         use.
158
159 2015-08-04  Pedro Alves  <palves@redhat.com>
160
161         * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
162         (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
163         (td_ta_event_addr_ftype, td_ta_set_event_ftype)
164         (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
165         (td_thr_validate_ftype, td_thr_get_info_ftype)
166         (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
167         (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
168         New typedefs.
169         * linux-thread-db.c (struct thread_db_info): Use new typedefs.
170         (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
171         local macros and use them instead of verbose_dlsym and dlsym
172         calls.
173
174 2015-08-03  Sandra Loosemore  <sandra@codesourcery.com>
175
176         * nios2-tdep.h: Include opcode/nios2.h here.
177         (NIOS2_CDX_OPCODE_SIZE): New.
178         (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
179         * nios2-tdep.c: Don't include opcode/nios2.h here.
180         (nios2_fetch_insn): For R2, try reading 2-byte instruction if
181         4-byte read fails.
182         (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
183         (nios2_match_addi, nios2_match_orhi): Likewise.
184         (nios2_match_stw, nios2_match_ldw): Likewise.
185         (nios2_match_rdctl): Likewise.
186         (nios2_match_stwm, nios2_match_ldwm): New.
187         (nios2_match_branch): Add cases for R2 encodings.
188         (nios2_match_jmpi, nios2_match_calli): Likewise.
189         (nios2_match_jmpr, nios2_match_callr): Likewise.
190         (nios2_match_break, nios2_match_trap): Likewise.
191         (nios2_in_epilogue_p): Add R2 support.
192         (nios2_analyze_prologue): Update comments.  Recognize R2 CDX
193         prologues.
194         (nios2_breakpoint_from_pc): Handle R2 instructions.
195         (nios2_get_next_pc): Likewise.  Adjust call to
196         tdep->syscall_next_pc.
197         * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
198         Renamed from nios2_linux_rt_sigreturn_tramp_frame.  Use
199         instruction field macros instead of literal hex values.
200         (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
201         (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
202         Use size field from OP instead of assuming all instructions
203         are the same size.
204         (nios2_linux_init_abi): Register appropriate unwinder for mach.
205
206 2015-08-03  Ulrich Weigand  <uweigand@de.ibm.com>
207
208         * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
209         variable warning with some compilers.
210
211 2015-08-03  Yao Qi  <yao.qi@linaro.org>
212
213         * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
214         in comment.  Replace "rw" with "type".
215         (arm_linux_remove_watchpoint): Change type of "rw" to
216         "enum target_hw_bp_type".
217
218 2015-08-02  Pierre-Marie de Rodat  <derodat@adacore.com>
219
220         * alpha-mdebug-tdep.c (find_proc_desc): Update call to
221         lookup_symbol.
222         * ft32-tdep.c (ft32_skip_prologue): Likewise.
223         * moxie-tdep.c (moxie_skip_prologue): Likewise.
224         * mt-tdep.c (mt_skip_prologue): Likewise.
225         * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
226
227 2015-08-01  Pierre-Marie de Rodat  <derodat@adacore.com>
228
229         * ada-exp.y (write_object_renaming): Replace struct
230         ada_symbol_info with struct block_symbol.  Update field
231         references accordingly.
232         (block_lookup, select_possible_type_sym): Likewise.
233         (find_primitive_type): Likewise.  Also update call to
234         ada_lookup_symbol to extract the symbol itself.
235         (write_var_or_type, write_name_assoc): Likewise.
236         * ada-lang.h (struct ada_symbol_info): Remove.
237         (ada_lookup_symbol_list): Replace struct ada_symbol_info with
238         struct block_symbol.
239         (ada_lookup_encoded_symbol, user_select_syms): Likewise.
240         (ada_lookup_symbol): Return struct block_symbol instead of a
241         mere symbol.
242         * ada-lang.c (defns_collected): Replace struct ada_symbol_info
243         with struct block_symbol.
244         (resolve_subexp, ada_resolve_function, sort_choices,
245         user_select_syms, is_nonfunction, add_defn_to_vec,
246         num_defns_collected, defns_collected,
247         symbols_are_identical_enums, remove_extra_symbols,
248         remove_irrelevant_renamings, add_lookup_symbol_list_worker,
249         ada_lookup_symbol_list, ada_iterate_over_symbols,
250         ada_lookup_encoded_symbol, get_var_value): Likewise.
251         (ada_lookup_symbol): Return a block_symbol instead of a mere
252         symbol.  Replace struct ada_symbol_info with struct
253         block_symbol.
254         (ada_lookup_symbol_nonlocal): Likewise.
255         (standard_lookup): Make block passing explicit through
256         lookup_symbol_in_language.
257         * ada-tasks.c (get_tcb_types_info): Update the calls to
258         lookup_symbol_in_language to extract the mere symbol out of the
259         returned value.
260         (ada_tasks_inferior_data_sniffer): Likewise.
261         * ax-gdb.c (gen_static_field): Likewise for the call to
262         lookup_symbol.
263         (gen_maybe_namespace_elt): Deal with struct block_symbol from
264         lookup functions.
265         (gen_expr): Likewise.
266         * c-exp.y: Likewise.  Remove uses of block_found.
267         (lex_one_token, classify_inner_name, c_print_token): Likewise.
268         (classify_name): Likewise.  Rename the "sym" local variable to
269         "bsym".
270         * c-valprint.c (print_unpacked_pointer): Likewise.
271         * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
272         "sym" parameter from struct symbol * to struct block_symbol.
273         Use it to remove uses of block_found.  Deal with struct
274         block_symbol from lookup functions.
275         (gcc_convert_symbol): Likewise.  Update the call to
276         convert_symbol_sym.
277         * compile/compile-object-load.c (compile_object_load): Deal with
278         struct block_symbol from lookup functions.
279         * cp-namespace.c (cp_lookup_nested_symbol_1,
280         cp_lookup_nested_symbol, cp_lookup_bare_symbol,
281         cp_search_static_and_baseclasses,
282         cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
283         cp_lookup_symbol_imports_or_template,
284         cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
285         lookup_namespace_scope, cp_lookup_nonlocal,
286         find_symbol_in_baseclass): Return struct block_symbol instead of
287         mere symbols and deal with struct block_symbol from lookup
288         functions.
289         * cp-support.c (inspect_type, replace_typedefs,
290         cp_lookup_rtti_type): Deal with struct block_symbol from
291         lookup functions.
292         * cp-support.h (cp_lookup_symbol_nonlocal,
293         cp_lookup_symbol_from_namespace,
294         cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
295         Return struct block_symbol instead of mere symbols.
296         * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
297         push_module_name):
298         Deal with struct block_symbol from lookup functions.  Remove
299         uses of block_found.
300         * eval.c (evaluate_subexp_standard): Update call to
301         cp_lookup_symbol_namespace.
302         * f-exp.y: Deal with struct block_symbol from lookup functions.
303         Remove uses of block_found.
304         (yylex): Likewise.
305         * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
306         lookup_enum, lookup_template_type, check_typedef): Deal with
307         struct block_symbol from lookup functions.
308         * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
309         * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
310         (gdbscm_lookup_global_symbol): Likewise.
311         * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
312         * go-exp.y: Likewise.  Remove uses of block_found.
313         (package_name_p, classify_packaged_name, classify_name):
314         Likewise.
315         * infrun.c (insert_exception_resume_breakpoint): Likewise.
316         * jv-exp.y (push_variable): Likewise.
317         * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
318         * language.c (language_bool_type): Likewise.
319         * language.h (struct language_defn): Update
320         la_lookup_symbol_nonlocal to return a struct block_symbol rather
321         than a mere symbol.
322         * linespec.c (find_label_symbols): Deal with struct block_symbol
323         from lookup functions.
324         * m2-exp.y: Likewise.  Remove uses of block_found.
325         (yylex): Likewise.
326         * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
327         * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
328         * p-exp.y: Likewise.  Remove uses of block_found.
329         (yylex): Likewise.
330         * p-valprint.c (pascal_val_print): Likewise.
331         * parse.c (write_dollar_variable): Likewise.  Remove uses of
332         block_found.
333         * parser-defs.h (struct symtoken): Turn the SYM field into a
334         struct block_symbol.
335         * printcmd.c (address_info): Deal with struct block_symbol from
336         lookup functions.
337         * python/py-frame.c (frapy_read_var): Likewise.
338         * python/py-symbol.c (gdbpy_lookup_symbol,
339         gdbpy_lookup_global_symbol): Likewise.
340         * skip.c (skip_function_command): Likewise.
341         * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
342         block_symbol instead of a mere symbol.
343         * solib-spu.c (spu_lookup_lib_symbol): Likewise.
344         * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
345         * solib.c (solib_global_lookup): Likewise.
346         * solist.h (solib_global_lookup): Likewise.
347         (struct target_so_ops): Update lookup_lib_global_symbol to
348         return a struct block_symbol rather than a mere symbol.
349         * source.c (select_source_symtab): Deal with struct block_symbol
350         from lookup functions.
351         * stack.c (print_frame_args, iterate_over_block_arg_vars):
352         Likewise.
353         * symfile.c (set_initial_language): Likewise.
354         * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
355         block_symbol.
356         (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
357         (struct symbol_cache_slot): Turn the FOUND field into a struct
358         block_symbol.
359         (block_found): Remove.
360         (eq_symbol_entry): Update to deal with struct block_symbol in
361         cache slots.
362         (symbol_cache_lookup): Return a struct block_symbol rather than
363         a mere symbol.
364         (symbol_cache_mark_found): Add a BLOCK parameter to fill
365         appropriately the cache slots.  Update callers.
366         (symbol_cache_dump): Update cache slots handling to the type
367         change.
368         (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
369         lookup_symbol_aux, lookup_local_symbol,
370         lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
371         lookup_symbol_in_objfile_symtabs,
372         lookup_symbol_in_objfile_from_linkage_name,
373         lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
374         lookup_symbol_in_static_block, lookup_static_symbol,
375         lookup_global_symbol):
376         Return a struct block_symbol rather than a mere symbol.  Deal
377         with struct block_symbol from other lookup functions.  Remove
378         uses of block_found.
379         (lookup_symbol_in_block): Remove uses of block_found.
380         (struct global_sym_lookup_data): Turn the RESULT field into a
381         struct block_symbol.
382         (lookup_symbol_global_iterator_cb): Update references to the
383         RESULT field.
384         (search_symbols): Deal with struct block_symbol from lookup
385         functions.
386         * symtab.h (struct block_symbol): New structure.
387         (block_found): Remove.
388         (lookup_symbol_in_language, lookup_symbol,
389         basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
390         lookup_static_symbol, lookup_global_symbol, lookup_language_this,
391         lookup_global_symbol_from_objfile): Return a struct block_symbol
392         rather than just a mere symbol.  Update comments to remove
393         mentions of block_found.
394         * valops.c (find_function_in_inferior,
395         value_struct_elt_for_reference, value_maybe_namespace_elt,
396         value_of_this):  Deal with struct block_symbol from lookup
397         functions.
398         * value.c (value_static_field, value_fn_field): Likewise.
399
400 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
401
402         * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
403         instead of integer.
404
405 2015-07-31  Simon Marchi  <simon.marchi@ericsson.com>
406             Pedro Alves  <palves@redhat.com>
407
408         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
409         type or value instead of integer.
410         (aarch64_linux_insert_watchpoint): Likewise.
411         (aarch64_linux_remove_watchpoint): Likewise.
412         * ada-lang.c (ada_op_print_tab): Likewise.
413         * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
414         (amd64_linux_syscall_record_common): Likewise.
415         * arch-utils.c (target_byte_order_user): Likewise.
416         (default_byte_order): Likewise.
417         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
418         (arm_linux_get_hwbp_type): Likewise.
419         (arm_linux_hw_watchpoint_initialize): Likewise.
420         (arm_linux_insert_watchpoint): Likewise.
421         * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
422         (arm_linux_syscall_record): Likewise.
423         * breakpoint.c (update_watchpoint): Likewise.
424         (breakpoint_here_p): Likewise.
425         (bpstat_print): Likewise.
426         (enable_breakpoint_disp): Likewise.
427         * c-lang.c (c_op_print_tab): Likewise.
428         * cli/cli-decode.c (add_info_alias): Likewise.
429         * d-lang.c (d_op_print_tab): Likewise.
430         * eval.c (evaluate_subexp_standard): Likewise.
431         * f-exp.y (dot_ops): Likewise.
432         (f77_keywords): Likewise.
433         * f-lang.c (f_op_print_tab): Likewise.
434         * go-lang.c (go_op_print_tab): Likewise.
435         * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
436         * guile/scm-cmd.c (gdbscm_make_command): Likewise.
437         * guile/scm-param.c (gdbscm_make_parameter): Likewise.
438         * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
439         * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
440         (struct scm_from_stringn_data): Likewise.
441         * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
442         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
443         (ia64_linux_remove_watchpoint): Likewise.
444         (ia64_linux_can_use_hw_breakpoint): Likewise.
445         * infrun.c (print_stop_event): Likewise.
446         * jv-lang.c (java_op_print_tab): Likewise.
447         * linux-nat.c (linux_proc_xfer_partial): Likewise.
448         * linux-nat.h (struct lwp_info): Likewise.
449         * linux-thread-db.c (enable_thread_event): Likewise.
450         * m2-lang.c (m2_op_print_tab): Likewise.
451         * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
452         (mi_cmd_stack_list_variables): Likewise.
453         * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
454         * mi/mi-out.c (mi_table_begin): Likewise.
455         (mi_table_header): Likewise.
456         * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
457         (mips_linux_insert_watchpoint): Likewise.
458         (mips_linux_remove_watchpoint): Likewise.
459         * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
460         * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
461         (mips_linux_watch_type_to_irw): Likewise.
462         * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
463         (procfs_insert_hw_watchpoint): Likewise.
464         (procfs_remove_hw_watchpoint): Likewise.
465         (procfs_hw_watchpoint): Likewise.
466         (procfs_can_use_hw_breakpoint): Likewise.
467         (procfs_remove_hw_watchpoint): Likewise.
468         (procfs_insert_hw_watchpoint): Likewise.
469         * p-lang.c (pascal_op_print_tab): Likewise.
470         * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
471         * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
472         * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
473         * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
474         (procfs_insert_watchpoint): Likewise.
475         (procfs_remove_watchpoint): Likewise.
476         * psymtab.c (recursively_search_psymtabs): Likewise.
477         * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
478         (m32r_insert_watchpoint): Likewise.
479         * remote-mips.c (mips_can_use_watchpoint): Likewise.
480         (mips_insert_watchpoint): Likewise.
481         (mips_remove_watchpoint): Likewise.
482         * remote.c (watchpoint_to_Z_packet): Likewise.
483         (remote_insert_watchpoint): Likewise.
484         (remote_remove_watchpoint): Likewise.
485         (remote_check_watch_resources): Likewise.
486         * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
487         (s390_remove_watchpoint): Likewise.
488         (s390_can_use_hw_breakpoint): Likewise.
489         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
490         * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
491         * target.h (struct target_ops): Likewise.
492         * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
493         * ui-out.c (struct ui_out_hdr): Likewise.
494         (append_header_to_list): Likewise.
495         (get_next_header): Likewise.
496         (verify_field): Likewise.
497         (ui_out_begin): Likewise.
498         (ui_out_field_int): Likewise.
499         (ui_out_field_fmt_int): Likewise.
500         (ui_out_field_skip): Likewise.
501         (ui_out_field_string): Likewise.
502         (ui_out_field_fmt): Likewise.
503         * varobj.c (new_variable): Likewise.
504         * x86-nat.c (x86_insert_watchpoint): Likewise.
505         (x86_remove_watchpoint): Likewise.
506         (x86_can_use_hw_breakpoint): Likewise.
507         * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
508         * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
509         previously anonymous enumeration type..
510         * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
511         value.
512         * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
513         (target_debug_print_enum_bptype): New.
514         * target-delegates.c: Regenerate.
515
516 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
517
518         * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
519         already says and disallow non-stack memory writes in the prologue.
520
521 2015-07-30  Sandra Loosemore  <sandra@codesourcery.com>
522
523         * nios2-tdep.c (nios2_analyze_prologue): Update comments to
524         reflect how current GCC emits stack overflow checks.  Match
525         both trap and break instructions for backward compatbility.
526         Disallow other trap and break instructions in the prologue.
527
528 2015-07-30  Pedro Alves  <palves@redhat.com>
529
530         PR threads/18600
531         * linux-nat.c (wait_lwp): Report to the core when thread group
532         leader exits.
533
534 2015-07-30  Pedro Alves  <palves@redhat.com>
535             Simon Marchi  <simon.marchi@ericsson.com>
536
537         PR threads/18600
538         * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
539         mark the new thread as resumed.  Remove STOPPING parameter.
540         (wait_lwp): Adjust call to linux_handle_extended_wait.
541         (linux_nat_filter_event): Adjust call to
542         linux_handle_extended_wait.
543         (resume_stopped_resumed_lwps): Add debug output.
544
545 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
546
547         * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
548         isize argument.
549         * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
550         * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
551         gdbarch_fast_tracepoint_valid_at.
552         * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
553         * gdbarch.h: Regenerate.
554         * gdbarch.c: Regenerate.
555         * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
556         argument.  Do not set it.
557         * remote.c (remote_download_tracepoint): Adjust call to
558         gdbarch_fast_tracepoint_valid_at.  Call gdb_insn_length to get
559         the instruction length.
560
561 2015-07-30  Yao Qi  <yao.qi@linaro.org>
562
563         * arm-tdep.h (enum gdb_regnum): Move it to ...
564         * arch/arm.h: ... here.  New file.
565         * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
566
567 2015-07-30  Pierre Langlois  <pierre.langlois@arm.com>
568
569         * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
570         Change its type to int *.
571         (decode_br): Rename link argument to is_blr.  Change its type to
572         int *.
573         (decode_cb): Rename op argument to is_cbnz.  Change its type to
574         int *.
575         (decode_tb): Rename op argument to is_tbnz.  Change its type to
576         int *.  Set is_tbnz to either 1 or 0.
577         (aarch64_analyze_prologue): Change type of is_link to int.  Add
578         new variables is_cbnz and is_tbnz.  Adjust call to
579         aarch64_decode_cb and aarch64_decode_tb.
580
581 2015-07-29  Simon Marchi  <simon.marchi@ericsson.com>
582
583         * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
584         parameter.
585         (mips_linux_new_thread): Likewise.
586         * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
587
588 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
589
590         * top.c: Include "tui/tui.h".
591         (undo_terminal_modifications_before_exit): New static function.
592         (quit_force): Use it.
593
594 2015-07-29  Patrick Palka  <patrick@parcs.ath.cx>
595
596         * target.c (terminal_state): Initialize to terminal_is_ours.
597
598 2015-07-29  Yao Qi  <yao.qi@linaro.org>
599
600         PR record/18691
601         * dcache.c (dcache_read_memory_partial): Call
602         raw_memory_xfer_partial.
603         * target.c (raw_memory_xfer_partial): Make it non-static.
604         * target.h (raw_memory_xfer_partial): Declare.
605
606 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
607
608         * c-valprint.c (c_val_print_array): Consider addressable memory
609         unit size.
610         (c_val_print_ptr): Likewise.
611         (c_val_print_int): Likewise.
612         * findvar.c (read_frame_register_value): Likewise.
613         * valarith.c (find_size_for_pointer_math): Likewise.
614         (value_ptrdiff): Likewise.
615         (value_subscripted_rvalue): Likewise.
616         * valops.c (read_value_memory): Likewise (and rename variables).
617         (value_assign): Likewise.
618         (value_repeat): Likewise.
619         (value_array): Likewise.
620         (value_slice): Likewise.
621         * valprint.c (generic_val_print_ptr): Likewise.
622         (generic_val_print_enum): Likewise.
623         (generic_val_print_bool): Likewise.
624         (generic_val_print_int): Likewise.
625         (generic_val_print_char): Likewise.
626         (generic_val_print_float): Likewise.
627         (generic_val_print_decfloat): Likewise.
628         (generic_val_print_complex): Likewise.
629         (val_print_scalar_formatted): Likewise.
630         (val_print_array_elements): Likewise.
631         * value.c (set_value_parent): Likewise.
632         (value_contents_copy_raw): Likewise.
633         (set_internalvar_component): Likewise.
634         (value_primitive_field): Likewise.
635         (value_fetch_lazy): Likewise.
636         * value.h (read_value_memory): Update comment.
637
638 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
639
640         * value.c (get_value_arch): New function.
641         * value.h (get_value_arch): New declaration.
642
643 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
644
645         * value.c (struct value): Update comments.
646
647 2015-07-28  Simon Marchi  <simon.marchi@ericsson.com>
648
649         * gdbtypes.c (type_length_units): New function.
650         * gdbtypes.h (type_length_units): New declaration.
651         (struct type) <length>: Update comment.
652
653 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
654
655         * valprint.c (generic_val_print): Factor out complex
656         printing code to ...
657         (generic_val_print_complex): ... this new function.
658
659 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
660
661         * valprint.c (generic_val_print): Factor out decfloat
662         printing code to ...
663         (generic_val_print_decfloat): ... this new function.
664
665 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
666
667         * valprint.c (generic_val_print): Factor out float
668         printing code to ...
669         (generic_val_print_float): ... this new function.
670
671 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
672
673         * valprint.c (generic_val_print): Factor out char
674         printing code to ...
675         (generic_val_print_char): ... this new function.
676
677 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
678
679         * valprint.c (generic_val_print): Factor out integer
680         printing code to ...
681         (generic_val_print_int): ... this new function.
682
683 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
684
685         * valprint.c (generic_val_print): Factor out bool
686         printing code to ...
687         (generic_val_print_bool): ... this new function.
688
689 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
690
691         * valprint.c (generic_val_print): Factor out function/method
692         printing code to ...
693         (generic_val_print_func): ... this new function.
694
695 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
696
697         * valprint.c (generic_val_print): Factor out flags
698         printing code to ...
699         (generic_val_print_flags): ... this new function.
700
701 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
702
703         * valprint.c (generic_val_print): Factor out enum
704         printing code to ...
705         (generic_val_print_enum): ... this new function.
706
707 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
708
709         * valprint.c (generic_val_print): Factor out reference
710         printing code to ...
711         (generic_val_print_ref): ... this new function.
712
713 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
714
715         * valprint.c (generic_val_print): Factor out memberptr
716         printing code to ...
717         (generic_val_print_memberptr): ... this new function.
718
719 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
720
721         * valprint.c (generic_val_print): Factor out pointer
722         printing code to ...
723         (generic_val_print_ptr): ... this new function.
724
725 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
726
727         * valprint.c (generic_val_print): Factor out array
728         printing code to ...
729         (generic_val_print_array): ... this new function.
730
731 2015-07-27  Simon Marchi  <simon.marchi@ericsson.com>
732
733         * valprint.c (generic_val_print): Factor out
734         print_unpacked_pointer code to ...
735         (print_unpacked_pointer): ... this new function.
736
737 2015-07-27  Patrick Palka  <patrick@parcs.ath.cx>
738
739         * event-top.c (handle_sigterm): Don't inspect
740         target_can_async_p.  Always set the quit flag and always mark
741         the async signal handler.
742
743 2015-07-27  Yao Qi  <yao.qi@linaro.org>
744
745         * Makefile.in (REMOTE_EXAMPLES): Remove it.
746
747 2015-07-25  Kevin Buettner  <kevinb@redhat.com>
748
749         * remote.c (read_ptid): Return null_ptid when no thread id
750         is found.
751         (remote_current_thread): Add log warning for malformed
752         qC reply.
753         (remote_start_remote): Add log warning when current thread
754         not found.
755
756 2015-07-24  Pedro Alves  <palves@redhat.com>
757
758         * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
759         (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
760         forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
761
762 2015-07-24  Pedro Alves  <palves@redhat.com>
763
764         PR gdb/18717
765         * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
766         is resumed, and extend the debug log.
767
768 2015-07-24  Pedro Alves  <palves@redhat.com>
769
770         * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
771
772 2015-07-24  Pedro Alves  <palves@redhat.com>
773
774         * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
775         sys/ptrace.h.
776         * alpha-linux-nat.c: Likewise.
777         * amd64-linux-nat.c: Likewise.
778         * arm-linux-nat.c: Likewise.
779         * hppa-linux-nat.c: Likewise.
780         * i386-linux-nat.c: Likewise.
781         * ia64-linux-nat.c: Likewise.
782         * linux-fork.c: Likewise.
783         * linux-nat.c: Likewise.
784         * m32r-linux-nat.c: Likewise.
785         * m68klinux-nat.c: Likewise.
786         * mips-linux-nat.c: Likewise.
787         * nat/linux-btrace.c: Likewise.
788         * nat/linux-ptrace.c: Likewise.
789         * nat/linux-ptrace.h
790         * nat/mips-linux-watch.c: Likewise.
791         * nat/x86-linux-dregs.c: Likewise.
792         * ppc-linux-nat.c: Likewise.
793         * s390-linux-nat.c: Likewise.
794         * spu-linux-nat.c: Likewise.
795         * tilegx-linux-nat.c: Likewise.
796         * x86-linux-nat.c: Likewise.
797         * xtensa-linux-nat.c: Likewise.
798
799 2015-07-24  Pedro Alves  <palves@redhat.com>
800
801         * ptrace.m4 (ptrace tests): Test in C++ mode.  Try with 'enum
802         __ptrace_request as first parameter type instead of int.
803         (PTRACE_TYPE_ARG1): Define.
804         * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
805         that casts first argument to PTRACE_TYPE_ARG1.
806         * config.in: Regenerate.
807         * configure: Regenerate.
808
809 2015-07-24  Pedro Alves  <palves@redhat.com>
810
811         * gdb_ptrace.h: Move ...
812         * nat/gdb_ptrace.h: ... here.
813         * inf-ptrace.c: Adjust.
814
815 2015-07-24  Pedro Alves  <palves@redhat.com>
816
817         * acinclude.m4: Include ptrace.m4.
818         * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
819         * ptrace.m4: ... to this new file.
820
821 2015-07-23  Doug Evans  <dje@google.com>
822
823         * dwarf2read.c (dwarf2_per_cu_data): Add comment.
824         (load_cu): Handle dummy CUs.
825         (dw2_do_instantiate_symtab, process_queuef): Ditto.
826         (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
827
828 2015-07-23  Ciro Santilli  <ciro.santilli@gmail.com>  (tiny patch)
829
830         * py-linetable.c (ltpy_get_all_source_lines): Adjust function
831         documentation to say that it returns a list rather than
832         a FrozenSet.
833         (linetable_object_methods): Update the docstring of the
834         "source_line" entry.
835
836 2015-07-23  Pierre-Marie de Rodat  <derodat@adacore.com>
837
838         * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
839         type to the recursive call instead of the original (maybe
840         TYPE_CODE_TYPEDEF) type.
841
842 2015-07-23  Yao Qi  <yao.qi@linaro.org>
843
844         * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
845         TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
846         If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
847
848 2015-07-21  Yao Qi  <yao.qi@linaro.org>
849
850         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
851         Move it to nat/aarch64-linux-hw-point.c.
852         (aarch64_linux_child_post_startup_inferior): Update.
853         * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
854         New function.
855         * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
856         Declare it.
857
858 2015-07-21  Markus Metzger  <markus.t.metzger@intel.com>
859
860         * common/btrace-common.c (btrace_data_append): Change case label.
861
862 2015-07-20  Yao Qi  <yao.qi@linaro.org>
863
864         * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
865         Re-indent the code.
866         * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
867         "unsigned long long".
868
869 2015-07-18  Kevin Buettner  <kevinb@redhat.com>
870
871         * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
872         to be set for SEC_ALLOC sections too.
873
874 2015-07-17  Yao Qi  <yao.qi@linaro.org>
875
876         * Makefile.in (HFILES_NO_SRCDIR): Add
877         nat/aarch64-linux-hw-point.h.
878         (aarch64-linux-hw-point.o): New rule.
879         * nat/aarch64-linux-hw-point.h: New file.
880         * nat/aarch64-linux-hw-point.c: New file.
881         * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
882         (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
883         (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
884         (AARCH64_HWP_ALIGNMENT): Likewise.
885         (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
886         (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
887         (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
888         (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
889         (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
890         (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
891         (struct aarch64_debug_reg_state): Likewise.
892         (struct arch_lwp_info): Likewise.
893         (aarch64_linux_set_debug_regs): Likewise.
894         (aarch64_notify_debug_reg_change): Remove static.
895         (aarch64_align_watchpoint): Likewise.
896         (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
897         (aarch64_watchpoint_length): Likewise.
898         (aarch64_point_encode_ctrl_reg): Likewise
899         (aarch64_point_is_aligned): Likewise.
900         (aarch64_dr_state_insert_one_point): Likewise.
901         (aarch64_dr_state_remove_one_point): Likewise.
902         (aarch64_handle_breakpoint): Likewise.
903         (aarch64_handle_aligned_watchpoint): Likewise.
904         (aarch64_handle_unaligned_watchpoint): Likewise.
905         (aarch64_handle_watchpoint): Likewise.
906         * config/aarch64/linux.mh (NAT_FILE): Add
907         aarch64-linux-hw-point.o.
908
909 2015-07-17  Yao Qi  <yao.qi@linaro.org>
910
911         * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
912         state and don't call aarch64_get_debug_reg_state.  All callers
913         update.
914         (aarch64_linux_insert_hw_breakpoint): Call
915         aarch64_get_debug_reg_state earlier.
916         (aarch64_linux_remove_hw_breakpoint): Likewise.
917         (aarch64_handle_aligned_watchpoint): Add argument state and
918         don't call aarch64_get_debug_reg_state.  All callers update.
919         (aarch64_handle_unaligned_watchpoint): Likewise.
920         (aarch64_handle_watchpoint): Add argument state.
921         (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
922         earlier.
923         (aarch64_linux_remove_watchpoint): Likewise.
924
925 2015-07-17  Yao Qi  <yao.qi@linaro.org>
926
927         * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
928         debug_printf.
929         (aarch64_handle_unaligned_watchpoint): Likewise.
930
931 2015-07-17  Yao Qi  <yao.qi@linaro.org>
932
933         * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
934         argument type's type to 'enum target_hw_bp_type'.
935         (aarch64_dr_state_remove_one_point): Likewise.
936         (aarch64_handle_breakpoint): Likewise.
937         (aarch64_linux_insert_hw_breakpoint): Likewise.
938         (aarch64_linux_remove_hw_breakpoint): Likewise.
939         (aarch64_handle_aligned_watchpoint): Likewise.
940
941 2015-07-17  Yao Qi  <yao.qi@linaro.org>
942
943         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
944         ptid_get_pid instead of get_thread_id.
945
946 2015-07-17  Yao Qi  <yao.qi@linaro.org>
947
948         * remote.c (get_current_thread): Initialise ptid to null_ptid.
949         (add_current_inferior_and_thread): Don't initialise ptid.
950
951 2015-07-16  Pierre Langlois  <pierre.langlois@arm.com>
952
953         * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
954         unavailable if invalid.
955
956 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
957
958         Revert the previous 6 commits:
959         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
960         Move gdb_regex* to common/
961         Prepare linux_find_memory_regions_full & co. for move
962         Move linux_find_memory_regions_full & co.
963         gdbserver build-id attribute generator
964         Validate symbol file using build-id
965
966 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
967             Jan Kratochvil  <jan.kratochvil@redhat.com>
968
969         Validate symbol file using build-id.
970         * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
971         and 'show validate-build-id'.  Add build-id attribute.
972         * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
973         * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
974         * solib-frv.c (_initialize_frv_solib): Ditto.
975         * solib-spu.c (set_spu_solib_ops): Ditto.
976         * solib-svr4.c: Include rsp-low.h.
977         (NOTE_GNU_BUILD_ID_NAME): New define.
978         (svr4_validate): New function.
979         (svr4_copy_library_list): Duplicate field build_id.
980         (library_list_start_library): Parse 'build-id' attribute.
981         (svr4_library_attributes): Add 'build-id' attribute.
982         (_initialize_svr4_solib): Assign validate value.
983         * solib-target.c (solib.h): Include.
984         (_initialize_solib_target): Assign validate value.
985         * solib.c (validate_build_id, show_validate_build_id): New.
986         (solib_map_sections): Use ops->validate.
987         (clear_so): Free build_id.
988         (default_solib_validate): New function.
989         (_initialize_solib): Add "validate-build-id".
990         * solib.h (default_solib_validate): New declaration.
991         * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
992         (target_so_ops): New field 'validate'.
993
994 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
995             Jan Kratochvil  <jan.kratochvil@redhat.com>
996
997         gdbserver build-id attribute generator.
998         * features/library-list-svr4.dtd (library-list-svr4): New
999         'build-id' attribute.
1000
1001 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
1002             Jan Kratochvil  <jan.kratochvil@redhat.com>
1003
1004         Move linux_find_memory_regions_full & co.
1005         * linux-tdep.c (nat/linux-maps.h): Include.
1006         (gdb_regex.h): Remove the include.
1007         (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
1008         (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
1009         (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
1010         (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
1011         * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
1012         and target/target.h.
1013         (struct smaps_vmflags, read_mapping, decode_vmflags)
1014         (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
1015         (linux_find_memory_regions_full): Move from linux-tdep.c.
1016         * nat/linux-maps.h (read_mapping): New declaration.
1017         (linux_find_memory_region_ftype, enum filterflags): Moved from
1018         linux-tdep.c.
1019         (linux_find_memory_regions_full): New declaration.
1020         * target.c (target/target-utils.h): Include.
1021         (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
1022         (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
1023         definitions to target/target-utils.c.
1024         * target.h (target_fileio_read_stralloc): Move it to target/target.h.
1025         * target/target-utils.c (read_alloc, read_stralloc): Move definitions
1026         from target.c.
1027         * target/target-utils.h (read_alloc_pread_ftype): New typedef.
1028         (read_alloc): New declaration.
1029         (read_stralloc_func_ftype): New typedef.
1030         (read_stralloc): New declaration.
1031         * target/target.h (target_fileio_read_stralloc): Move it from target.h.
1032
1033 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
1034             Jan Kratochvil  <jan.kratochvil@redhat.com>
1035
1036         Prepare linux_find_memory_regions_full & co. for move.
1037         * linux-tdep.c (linux_find_memory_region_ftype): Comment.
1038         (linux_find_memory_regions_full): Change signature and prepare
1039         for moving to linux-maps.
1040         (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
1041         (linux_find_memory_regions_thunk): New.
1042         (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
1043         (linux_find_memory_regions_gdb): New.
1044         (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
1045         (linux_make_mappings_corefile_notes): Use
1046         linux_find_memory_regions_gdb.
1047         * target.c (read_alloc_pread_ftype): New typedef.
1048         (target_fileio_read_alloc_1_pread): New function.
1049         (read_alloc): Refactor from target_fileio_read_alloc_1.
1050         (read_stralloc_func_ftype): New typedef.
1051         (target_fileio_read_alloc_1): New implementation. Use read_alloc.
1052         (read_stralloc): Refactored from target_fileio_read_stralloc.
1053         (target_fileio_read_stralloc): New implementation, use read_stralloc.
1054
1055 2015-07-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
1056
1057         * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
1058         common/gdb_regex.h.
1059         (COMMON_OBS): Add gdb_regex.o.
1060         (gdb_regex.o): New.
1061         * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
1062         --without-included-regex and USE_INCLUDED_REGEX.
1063         * common/gdb_regex.c: New file from utils.c functions.
1064         * common/gdb_regex.h: Move it here from gdb_regex.h, update include
1065         file wrapping define name.
1066         * configure: Rebuilt.
1067         * configure.ac (gdb_use_included_regex, --without-included-regex)
1068         (USE_INCLUDED_REGEX): Move them to common/common.m4.
1069         * gdb_regex.h: Move it to common/gdb_regex.h.
1070         * utils.c: Remove include gdb_regex.h.
1071         (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
1072         (compile_rx_or_error): Move them to common/gdb_regex.c.
1073
1074 2015-07-15  Aleksandar Ristovski  <aristovski@qnx.com
1075             Jan Kratochvil  <jan.kratochvil@redhat.com>
1076
1077         Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
1078         * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
1079         common/target-utils.h.
1080         (COMMON_OBS): Add target-utils.o.
1081         (linux-maps.o, target-utils.o): New.
1082         * target/target-utils.c: New file.
1083         * target/target-utils.h: New file.
1084         * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
1085         * config/i386/linux64.mh (NATDEPFILES): Ditto.
1086         * nat/linux-maps.c: New file.
1087         * nat/linux-maps.h: New file.
1088
1089 2015-07-15  Markus Metzger  <markus.t.metzger@intel.com>
1090             Pedro Alves <palves@redhat.com>
1091
1092         * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
1093         (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
1094         (perf_event_read_bts): Change the type of SIZE and READ.
1095         (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
1096         and DATA_OFFSET.  Move DATA_SIZE declaration.  Restrict the buffer size
1097         to UINT_MAX.  Check for overflows when using DATA_HEAD from the perf
1098         mmap page.
1099         (linux_enable_pt): Change the type of PAGES and SIZE.  Restrict the
1100         buffer size to UINT_MAX.
1101         (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
1102         DATA_TAIL.
1103         * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
1104         <last_head>: Change type.
1105         * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
1106         * common/btrace-common.c (btrace_data_append): Change the type of
1107         SIZE.
1108         * btrace.c (parse_xml_raw): Change the type of SIZE.  Change oddness
1109         check.
1110
1111 2015-07-14  Simon Marchi  <simon.marchi@ericsson.com>
1112
1113         * gdbtypes.h (CHECK_TYPEDEF): Remove.
1114         * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
1115         with check_typedef.
1116         * ada-lang.c (decode_constrained_packed_array_type): Likewise.
1117         (ada_array_length): Likewise.
1118         (find_parallel_type_by_descriptive_type): Likewise.
1119         (ada_check_typedef): Likewise.
1120         * arm-tdep.c (arm_return_in_memory): Likewise.
1121         * ax-gdb.c (gen_trace_static_fields): Likewise.
1122         (gen_struct_ref_recursive): Likewise.
1123         * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
1124         (variable: block COLONCOLON name): Likewise.
1125         (qualified_name: TYPENAME COLONCOLON name): Likewise.
1126         * c-lang.c (classify_type): Likewise.
1127         * c-typeprint.c (c_print_type): Likewise.
1128         (c_print_typedef): Likewise.
1129         (c_type_print_base): Likewise.
1130         * c-valprint.c (c_val_print): Likewise.
1131         * compile/compile-c-types.c (convert_type): Likewise.
1132         * compile/compile-object-load.c (get_out_value_type): Likewise.
1133         * completer.c (add_struct_fields): Likewise.
1134         (expression_completer): Likewise.
1135         * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
1136         (cp_lookup_nested_symbol_1): Likewise.
1137         (cp_lookup_nested_symbol): Likewise.
1138         * cp-valprint.c (cp_print_value_fields): Likewise.
1139         (cp_print_static_field): Likewise.
1140         * d-valprint.c (d_val_print): Likewise.
1141         * eval.c (evaluate_subexp_standard): Likewise.
1142         (evaluate_subexp_for_sizeof): Likewise.
1143         * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
1144         * f-typeprint.c (f_type_print_base): Likewise.
1145         * f-valprint.c (f_val_print): Likewise.
1146         * gdbtypes.c (get_discrete_bounds): Likewise.
1147         (create_array_type_with_stride): Likewise.
1148         (type_name_no_tag_or_error): Likewise.
1149         (lookup_struct_elt_type): Likewise.
1150         (get_unsigned_type_max): Likewise.
1151         (internal_type_vptr_fieldno): Likewise.
1152         (set_type_vptr_fieldno): Likewise.
1153         (internal_type_vptr_basetype): Likewise.
1154         (set_type_vptr_basetype): Likewise.
1155         (get_vptr_fieldno): Likewise.
1156         (is_integral_type): Likewise.
1157         (is_scalar_type): Likewise.
1158         (is_scalar_type_recursive): Likewise.
1159         (distance_to_ancestor): Likewise.
1160         (is_unique_ancestor_worker): Likewise.
1161         (check_types_equal): Likewise.
1162         * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
1163
1164 2015-07-14  Iain Buclaw  <ibuclaw@gdcproject.org>
1165
1166         * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
1167         also test for language_d.
1168         (dwarf2_compute_name): Likewise.
1169         (read_func_scope): Likewise.
1170         (read_structure_type): Likewise.
1171         (new_symbol_full): Likewise.
1172         (determine_prefix): Likewise.
1173         (read_import_statement): Use dot as the separator for language_d.
1174         (typename_concat): Likewise, but don't prefix the D main function.
1175
1176 2015-07-14  Peter Bergner  <bergner@vnet.ibm.com>
1177
1178         * nat/linux-namespaces.c (setns): Rename from this ...
1179         (do_setns): ... to this.  Support calling setns if it exists.
1180         (mnsh_handle_setns): Call do_setns.
1181
1182 2015-07-13  Yao Qi  <yao.qi@linaro.org>
1183
1184         * exec.c (exec_file_attach): Add period at the end of error
1185         message.
1186
1187 2015-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
1188
1189         * tui/tui-win.c (window_name_completer): New function.
1190         (focus_completer): Call window_name_completer.  All old content
1191         moved into window_name_completer.
1192         (winheight_completer): New function.
1193         (_initialize_tui_win): Rename variable.  Add completer to
1194         winheight command.  Update doc string on winheight.
1195
1196 2015-07-12  Sandra Loosemore  <sandra@codesourcery.com>
1197
1198         * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
1199         all nios2 mach variants.
1200
1201 2015-07-10  Kevin Buettner  <kevinb@redhat.com>
1202
1203         * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
1204         of target_read_memory.
1205
1206 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
1207
1208         * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
1209         string copy.
1210         (parse_scrolling_args): Likewise.
1211
1212 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
1213
1214         * tui/tui-win.c (focus_completer): Don't duplicate the tui window
1215         names in this function.
1216
1217 2015-07-10  Andrew Burgess  <andrew.burgess@embecosm.com>
1218
1219         * tui/tui-data.h (SRC_NAME): Convert to lower case.
1220         (CMD_NAME): Likewise.
1221         (DATA_NAME): Likewise.
1222         (DISASSEM_NAME): Likewise.
1223         * tui/tui-win.c (tui_set_focus): Window names are now lower case.
1224         (tui_set_win_height): Likewise.
1225         (parse_scrolling_args): Likewise.
1226
1227 2015-07-10  Markus Metzger  <markus.t.metzger@intel.com>
1228
1229         * record-btrace.c (record_btrace_goto_begin)
1230         (record_btrace_goto_end, record_btrace_goto): Move call to
1231         print_stack_frame ...
1232         (record_btrace_set_replay): ... here.  Set stop_pc.
1233         * record-full.c (record_full_goto_entry): Set stop_pc.
1234
1235 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
1236
1237         * NEWS: Mention support for tracepoints on aarch64-linux.
1238
1239 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
1240
1241         * linux-aarch64-low.c (aarch64_supports_tracepoints): New
1242         function.  Return 1.
1243         (the_low_target): Install it.
1244
1245 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
1246
1247         * gdb.trace/backtrace.exp: Set registers for aarch64 target.
1248         * gdb.trace/collection.exp: Likewise.
1249         * gdb.trace/mi-trace-frame-collected.exp: Likewise.
1250         * gdb.trace/mi-trace-unavailable.exp: Likewise.
1251         * gdb.trace/report.exp: Likewise.
1252         * gdb.trace/trace-break.exp: Likewise.
1253         * gdb.trace/unavailable.exp: Likewise.
1254         * gdb.trace/while-dyn.exp: Likewise.
1255
1256 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
1257
1258         * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
1259         (aarch64_gen_return_address): New function.
1260         (aarch64_gdbarch_init): Hook it.
1261
1262 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
1263
1264         * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
1265         swallow NOT_AVAILABLE_ERROR.
1266         (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
1267         available_p is not set.
1268         (aarch64_stub_frame_unwind_stop_reason): New function.
1269         (aarch64_stub_unwind): Install it.
1270
1271 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
1272
1273         * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
1274         field.
1275         (aarch64_make_prologue_cache_1): New function, factored out from
1276         aarch64_make_prologue_cache.  Do not allocate cache.  Set
1277         available_p.
1278         (aarch64_make_prologue_cache): Reimplement wrapping
1279         aarch64_make_prologue_cache_1, and swallowing
1280         NOT_AVAILABLE_ERROR.
1281         (aarch64_prologue_frame_unwind_stop_reason): New function.
1282         Return UNWIND_UNAVAILABLE if available_p is not set.
1283         (aarch64_prologue_unwind): Install it.
1284         (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
1285         checks into aarch64_prologue_frame_unwind_stop_reason.  Call
1286         frame_id_build_unavailable_stack if available_p is not set.
1287
1288 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
1289
1290         * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
1291         fields.
1292         (aarch64_scan_prologue): Set prev_pc.
1293         (aarch64_make_prologue_cache): Set func.
1294         (aarch64_make_stub_cache): Set prev_pc.
1295         (aarch64_prologue_this_id): Remove local variables id, pc and
1296         func.  Read prev_pc and func from cache.
1297         (aarch64_stub_this_id): Read prev_pc from cache.
1298
1299 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
1300
1301         * aarch64-tdep.c (aarch64_make_stub_cache): Update comment.  New
1302         argument this_cache.  Remove unused local variables reg and
1303         unwound_fp.  Return early if this_cache is already set.  Set
1304         this_cache.
1305         (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
1306
1307 2015-07-09  Pierre Langlois  <pierre.langlois@arm.com>
1308
1309         * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
1310         New argument this_cache.  Return early if this_cache is already
1311         set.  Set this_cache.
1312         (aarch64_prologue_this_id): Update call to
1313         aarch64_make_prologue_cache.
1314         (aarch64_prologue_prev_register): Likewise.
1315         (aarch64_normal_frame_base): Likewise.
1316
1317 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
1318
1319         * c-valprint.c (c_val_print): Factor out memberptr printing code
1320         from c_val_print to ...
1321         (c_val_print_memberptr): ... this new function.
1322
1323 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
1324
1325         * c-valprint.c (c_val_print): Factor out int printing code to ...
1326         (c_val_print_int): ... this new function.
1327
1328 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
1329
1330         * c-valprint.c (c_val_print): Factor out struct and union
1331         printing code to ...
1332         (c_val_print_struct): ... this new function ...
1333         (c_val_print_union): ... and this new function.
1334
1335 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
1336
1337         * c-valprint.c (c_val_print): Factor out pointer printing code
1338         to ...
1339         (c_val_print_ptr): ... this new function.
1340
1341 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
1342
1343         * c-valprint.c (c_valprint): Factor our array printing code from
1344         c_val_print to ...
1345         (c_val_print_array): ... this new function.
1346
1347 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
1348
1349         * c-valprint.c (c_val_print): Factor out pointer printing code
1350         to ...
1351         (print_unpacked_pointer): ... this new function.
1352
1353 2015-07-09  Simon Marchi  <simon.marchi@ericsson.com>
1354
1355         * c-valprint.c (c_val_print): Remove an assignment to i and move
1356         its declaration.
1357
1358 2015-07-09  Yao Qi  <yao.qi@linaro.org>
1359
1360         * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
1361         argument ptid.  Update comments.  Caller update.
1362
1363 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
1364
1365         * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
1366         mnt packets.
1367
1368 2015-07-09  Markus Metzger  <markus.t.metzger@intel.com>
1369
1370         * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
1371
1372 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
1373
1374         * progspace.c (delete_program_space): Add missing spaces.
1375
1376 2015-07-08  Simon Marchi  <simon.marchi@ericsson.com>
1377
1378         * inferior.c (delete_inferior_1): Rename to ...
1379         (delete_inferior): ..., remove 'silent' parameter, delete
1380         program space when unused and remove call to prune_program_spaces.
1381         Remove the old, unused, delete_inferior.
1382         (delete_inferior_silent): Remove.
1383         (prune_inferiors): Change call from delete_inferior_1 to
1384         delete_inferior and remove 'silent' parameter. Remove call to
1385         prune_program_spaces.
1386         (remove_inferior_command): Idem.
1387         * inferior.h (delete_inferior_1): Rename to...
1388         (delete_inferior): ..., remove 'silent' parameter and remove the
1389         original delete_inferior.
1390         (delete_inferior_silent): Remove.
1391         * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
1392         delete_inferior_1 to delete_inferior and remove 'silent'
1393         parameter.
1394         * progspace.c (prune_program_spaces): Remove.
1395         (pspace_empty_p): Rename to...
1396         (program_space_empty_p): ... and make non-static.
1397         (delete_program_space): New.
1398         * progspace.h (prune_program_spaces): Remove declaration.
1399         (program_space_empty_p): New declaration.
1400         (delete_program_space): New declaration.
1401         * monitor.c (monitor_close): Replace call to
1402         delete_thread_silent and delete_inferior_silent with
1403         discard_all_inferiors.
1404
1405 2015-07-08  Patrick Palka  <patrick@parcs.ath.cx>
1406
1407         * defs.h (deprecated_register_changed_hook): Remove prototype.
1408         * interps.c (clear_iterpreter_hooks): Remove reference to
1409         deprecated_register_changed_hook.
1410         * top.c (deprecated_register_changed_hook): Remove prototype.
1411         * valops.c (value_assign): Remove reference to
1412         deprecated_register_changed_hook.
1413         * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
1414         Add comment documenting the function.
1415         (tui_register_changed_observer): Define.
1416         (tui_install_hooks): Remove reference to
1417         deprecated_register_changed_hook.  Set
1418         tui_register_changed_observer.
1419         (tui_remove_hooks): Remove reference to
1420         deprecated_register_changed_hook.  Unset
1421         tui_register_changed_observer.
1422
1423 2015-07-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1424
1425         PR compile/18484
1426         * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
1427
1428 2015-07-08  Robert O'Callahan  <robert@ocallahan.org>
1429
1430         PR exp/18617
1431         * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
1432
1433 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
1434
1435         * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
1436
1437 2015-07-08  Markus Metzger  <markus.t.metzger@intel.com>
1438
1439         * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
1440         Use safe_strerror() instead of strerror().
1441
1442 2015-07-07  Yao Qi  <yao.qi@linaro.org>
1443
1444         * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
1445         * features/arm-with-m-fpa-layout.c: Regenerated.
1446         * features/arm-with-m-vfp-d16.xml: Likewise.
1447         * features/arm-with-m-vfp-d16.c: Regenerated.
1448         * features/arm-with-m.xml: Likewise.
1449         * features/arm-with-m.c: Regenerated.
1450         * features/arm-with-neon.xml: Likewise.
1451         * features/arm-with-neon.c: Regenerated.
1452         * features/arm-with-vfpv2.xml: Likewise.
1453         * features/arm-with-vfpv2.c: Regenerated.
1454         * features/arm-with-vfpv3.xml: Likewise.
1455         * features/arm-with-vfpv3.c: Regenerated.
1456
1457 2015-07-07  Yao Qi  <yao.qi@linaro.org>
1458
1459         * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
1460         arm-linux-nat.c.
1461         * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
1462         elf/external.h.
1463         (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
1464         if target is 32-bit.
1465         (store_gregs_to_thread): Call aarch32_gp_regcache_collect
1466         if target is 32-bit.
1467         (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
1468         if target is 32-bit.
1469         (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
1470         if target is 32-bit.
1471         (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
1472         (aarch64_linux_read_description): Return the right target
1473         description.
1474         * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
1475         * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
1476         * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
1477         arm-linux-tdep.o.
1478
1479 2015-07-07  Yao Qi  <yao.qi@linaro.org>
1480
1481         * aarch32-linux-nat.c: New file.
1482         * aarch32-linux-nat.h: New file.
1483         * arm-linux-nat.c: Include aarch32-linux-nat.h.
1484         (fetch_regs): Move code to aarch32-linux-nat.c.  Call
1485         aarch32_gp_regcache_supply.
1486         (store_regs): Move code to aarch32-linux-nat.c.  Call
1487         aarch32_gp_regcache_collect.
1488         (fetch_vfp_regs): Move code to aarch32-linux-nat.c.  Call
1489         aarch32_vfp_regcache_supply.
1490         (store_vfp_regs): Move code to aarch32-linux-nat.c.  Call
1491         aarch32_vfp_regcache_collect.
1492         * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
1493
1494 2015-07-07  Yao Qi  <yao.qi@linaro.org>
1495
1496         * arm-linux-nat.c (store_fpregister): Remove.
1497         (store_register): Likewise.
1498         (fetch_fpregister): Likewise.
1499         (fetch_register): Likewise.
1500         (arm_linux_store_inferior_registers): Call store_regs and
1501         store_fpregs instead.
1502         (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
1503         fetch_regs instead.
1504
1505 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1506
1507         * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
1508         and focus commands.
1509
1510 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
1511
1512         * NEWS: Create a new section for the next release branch.
1513         Rename the section of the current branch, now that it has
1514         been cut.
1515
1516 2015-07-06  Joel Brobecker  <brobecker@adacore.com>
1517
1518         GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
1519         * version.in: Bump version to 7.10.50.DATE-cvs.
1520
1521 2015-07-06  Luis Machado  <lgustavo@codesourcery.com>
1522
1523         * breakpoint.c (remove_breakpoint_1): Don't handle permanent
1524         breakpoints in a special way.
1525         (remove_breakpoint): Likewise.
1526         (mark_breakpoints_out): Likewise.
1527
1528 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1529
1530         * doc/gdb.texinfo (TUI): Add comma after @xref.
1531
1532 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1533
1534         * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
1535         instead of casting the structure type.
1536
1537 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
1538
1539         * valops.c (search_struct_field): Remove OFFSET parameter.
1540         (value_cast_structs): Adjust calls to search_struct_field.
1541         (value_struct_elt): Same.
1542         (find_overload_match): Same.
1543
1544 2015-07-06  Simon Marchi  <simon.marchi@ericsson.com>
1545
1546         * value.c (value_fetch_lazy): Update comment, change return
1547         value to void.
1548         * value.h (value_fetch_lazy): Change return value to void.
1549
1550 2015-07-06  Andrew Burgess  <andrew.burgess@embecosm.com>
1551
1552         * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
1553         (tui_win_name): Make parameter and result const.
1554         * tui/tui-data.h (tui_win_name): Make parameter and result const.
1555
1556 2015-07-06  Patrick Palka  <patrick@parcs.ath.cx>
1557
1558         * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
1559         use printf_unfiltered.
1560         (set_mpx_cmd): Add missing trailing space to command string
1561         literal.
1562         (_initialize_i386_tdep): Give the "mpx" prefix command its
1563         correct name.
1564
1565 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
1566
1567         * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
1568         (enum rx_frame_type): New.
1569         (struct rx_prologue): Add new field `frame_type'.
1570         (rx_analyze_prologue): Add `frame_type' parameter. Cache this
1571         parameter in the prologue struct.  Add code for recording
1572         locations of PC and PSW for fast interrupt and exception frames.
1573         (rx_skip_prologue): Adjust call to rx_analyze_prologue.
1574         (rx_analyze_frame_prologue): Add `frame_type' parameter.
1575         (rx_frame_type): New function.
1576         (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
1577         (rx_frame_this_id): Rename parameter `this_prologue_cache' to
1578         `this_cache'.
1579         (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
1580         `this_cache'.  Add cases for RX_FRAME_TYPE_EXCEPTION and
1581         RX_FRAME_TYPE_FAST_INTERRUPT.
1582         (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
1583         (rx_frame_sniffer, rx_exception_sniffer): New functions.
1584         (rx_frame_unwind): Use rx_frame_sniffer instead of
1585         default_frame_sniffer.
1586         (rx_frame_unwind): New unwinder.
1587         (rx_gdbarch_init): Register new unwinder.
1588
1589 2015-07-02  Kevin Buettner  <kevinb@redhat.com>
1590
1591         * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
1592         (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
1593         (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
1594         and RX_FPSW_REGNUM.
1595         (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
1596
1597 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1598
1599         Fix GCC false warning.
1600         * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
1601
1602 2015-07-02  Yao Qi  <yao.qi@linaro.org>
1603
1604         * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
1605         typo in the debugging message.
1606
1607 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
1608
1609         * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
1610         (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
1611         (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
1612         (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
1613         (btrace_maint_clear): New.
1614         (btrace_fetch, btrace_clear): Call btrace_maint_clear.
1615         (pt_print_packet, btrace_maint_decode_pt)
1616         (btrace_maint_update_pt_packets, btrace_maint_update_packets)
1617         (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
1618         (maint_btrace_packet_history_cmd)
1619         (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
1620         (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
1621         (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
1622         (maint_info_btrace_cmd, _initialize_btrace): New.
1623         * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
1624         (btrace_maint_packet_history, btrace_maint_info): New.
1625         (btrace_thread_info) <maint>: New.
1626         * NEWS: Announce it.
1627
1628 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
1629
1630         * btrace.c (btrace_fetch): Append the new trace data.
1631         (btrace_clear): Clear the stored trace data.
1632         * btrace.h (btrace_thread_info) <data>: New.
1633         * common/btrace-common.h (btrace_data_clear)
1634         (btrace_data_append): New.
1635         * common/btrace-common.c (btrace_data_clear)
1636         (btrace_data_append): New.
1637
1638 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
1639
1640         * nat/linux-btrace.c (linux_enable_bts): Check for
1641         PERF_ATTR_SIZE_VER5.
1642         Check for data_offset and data_size fields.  Use them.
1643
1644 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
1645
1646         * NEWS: Announce new commands "record btrace pt" and "record pt".
1647         Announce new options "set|show record btrace pt buffer-size".
1648         * btrace.c: Include "rsp-low.h".
1649         Include "inttypes.h".
1650         (btrace_add_pc): Add forward declaration.
1651         (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
1652         (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
1653         (btrace_compute_ftrace_pt): New.
1654         (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
1655         (check_xml_btrace_version): Update version check.
1656         (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
1657         (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
1658         (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
1659         (btrace_pt_children): New.
1660         (btrace_children): Add support for "pt".
1661         (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
1662         (btrace_conf_children): Add support for "pt".
1663         * btrace.h: Include "intel-pt.h".
1664         (btrace_pt_error): New.
1665         * common/btrace-common.c (btrace_format_string, btrace_data_fini)
1666         (btrace_data_empty): Support BTRACE_FORMAT_PT.
1667         * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
1668         (struct btrace_config_pt): New.
1669         (struct btrace_config)<pt>: New.
1670         (struct btrace_data_pt_config, struct btrace_data_pt): New.
1671         (struct btrace_data)<pt>: New.
1672         * features/btrace-conf.dtd (btrace-conf)<pt>: New.
1673         (pt): New.
1674         * features/btrace.dtd (btrace)<pt>: New.
1675         (pt, pt-config, cpu): New.
1676         * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
1677         (perf_event_pt_event_type, kernel_supports_pt)
1678         (linux_supports_pt): New.
1679         (linux_supports_btrace): Support BTRACE_FORMAT_PT.
1680         (linux_enable_bts): Free tinfo on error.
1681         (linux_enable_pt): New.
1682         (linux_enable_btrace): Support BTRACE_FORMAT_PT.
1683         (linux_disable_pt): New.
1684         (linux_disable_btrace): Support BTRACE_FORMAT_PT.
1685         (linux_fill_btrace_pt_config, linux_read_pt): New.
1686         (linux_read_btrace): Support BTRACE_FORMAT_PT.
1687         * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
1688         (struct btrace_target_info)<pt>: New.
1689         * record-btrace.c (set_record_btrace_pt_cmdlist)
1690         (show_record_btrace_pt_cmdlist): New.
1691         (record_btrace_print_pt_conf): New.
1692         (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
1693         (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
1694         (cmd_record_btrace_pt_start): New.
1695         (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
1696         (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
1697         (_initialize_record_btrace): Add new commands.
1698         * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
1699         (remote_protocol_features): Add "Qbtrace:pt".
1700         Add "Qbtrace-conf:pt:size".
1701         (remote_supports_btrace): Support BTRACE_FORMAT_PT.
1702         (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
1703         (remote_enable_btrace): Support BTRACE_FORMAT_PT.
1704         (_initialize_remote): Add new commands.
1705
1706 2015-07-02  Markus Metzger  <markus.t.metzger@intel.com>
1707
1708         * configure.ac: check for libipt
1709         * configure: Regenerate.
1710         * config.in: Regenerate.
1711         * Makefile.in (LIBIPT): New.
1712         (CLIBS): Add $LIBIPT.
1713         * NEWS: document new configure options
1714
1715 2015-07-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1716
1717         * compile/compile-object-load.c (compile_object_load): Replace debug
1718         message "lookup undefined ELF symbol" by 3 more specific messages.
1719
1720 2015-07-01  Kevin Buettner  <kevinb@redhat.com>
1721
1722         * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
1723         (rl78_register_type): Add case for RL78_PSW_REGNUM.
1724         (rl78_gdbarch_init): Initialize rl78_psw_type.
1725
1726 2015-07-01  Patrick Palka  <patrick@parcs.ath.cx>
1727
1728         * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
1729         Update commentary.  Always refresh the registers when frame
1730         information has changed.
1731         * tui/tui-stack.c (tui_show_frame_info): Update commentary.
1732         Change return type to int.  Return 1 if frame information has
1733         changed, 0 otherwise.
1734         (tui_before_prompt): Update commentary.
1735         * tui/tui-stack.h (tui_show_frame_info): Change return type to
1736         int.
1737
1738 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
1739
1740         PR tui/13378
1741         * frame.c (select_frame): Remove reference to
1742         deprecated_selected_frame_level_changed_hook.
1743         * frame.h (deprecated_selected_frame_level_changed_hook): Remove
1744         declaration.
1745         * stack.c (deprecated_selected_frame_level_changed_hook):
1746         Likewise.
1747         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
1748         Rename to ...
1749         (tui_refresh_frame_and_register_information): ... this.  Bail
1750         out if there is no stack.  Don't update register information
1751         unless registers_too_p is true.
1752         (tui_print_frame_info_listing_hook): Rename to ...
1753         (tui_dummy_print_frame_info_listing_hook): ... this.
1754         (tui_before_prompt): New function.
1755         (tui_normal_stop): New function.
1756         (tui_before_prompt_observer): New observer.
1757         (tui_normal_stop_observer): New observer.
1758         (tui_install_hooks): Set
1759         deprecated_print_frame_info_listing_hook to
1760         tui_dummy_print_frame_info_listing_hook.  Register
1761         tui_before_prompt_observer to call tui_before_prompt and
1762         tui_normal_stop_observer to call tui_normal_stop.  Remove
1763         reference to deprecated_selected_frame_level_changed_hook.
1764         (tui_remove_hooks): Detach and unset tui_before_prompt_observer
1765         and tui_normal_stop_observer.  Remove reference to
1766         deprecated_selected_frame_level_changed_hook.
1767
1768 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
1769
1770         PR tui/13378
1771         * tui/tui-stack.c (tui_set_locator_info): Change prototype to
1772         return an int instead of void.  Return whether the locator
1773         window has changed.
1774         (tui_show_frame_info): If the locator info has not changed, then
1775         bail out early to avoid refreshing the windows.
1776
1777 2015-06-30  Patrick Palka  <patrick@parcs.ath.cx>
1778
1779         * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
1780         LOCATOR_WIN to tui_alloc_content.
1781
1782 2015-06-30  Yao Qi  <yao.qi@linaro.org>
1783
1784         PR tdep/18605
1785         * arm-tdep.c (arm_get_next_pc_raw): Break for media
1786         instructions.
1787
1788 2015-06-29  Kevin Buettner  <kevinb@redhat.com>
1789
1790         * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
1791         (rx_dwarf_reg_to_regnum): New function.
1792         (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum.  Use dwarf2
1793         unwinding.
1794
1795 2015-06-29  Pedro Alves  <palves@redhat.com>
1796
1797         PR threads/18127
1798         * infcall.c (run_inferior_call): On infcall success, if the thread
1799         was marked stopped before, reset it back to stopped.
1800         * infrun.c (resume): Don't suppress the set_running calls when
1801         doing an infcall.
1802         (normal_stop): Only discard the finish_thread_state cleanup if the
1803         infcall succeeded.
1804
1805 2015-06-29  Pierre Langlois  <pierre.langlois@arm.com>
1806
1807         * MAINTAINERS (Write After Approval): Update my email address.
1808
1809 2015-06-26  Keith Seitz  <keiths@redhat.com>
1810             Doug Evans  <dje@google.com>
1811
1812         PR 16253
1813         * block.c (block_lookup_symbol): For non-function blocks,
1814         continue to search for a symbol with an exact domain match
1815         Otherwise, return any previously found "best domain" symbol.
1816         (block_lookup_symbol_primary): Likewise.
1817
1818 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
1819
1820         * NEWS: Mention the new option "history remove-duplicates".
1821         * top.c (history_remove_duplicates): New static variable.
1822         (show_history_remove_duplicates): New static function.
1823         (gdb_add_history): Conditionally remove duplicate history
1824         entries.
1825         (init_main): Add "history remove-duplicates" option.
1826
1827 2015-06-26  Patrick Palka  <patrick@parcs.ath.cx>
1828
1829         * tui/tui-win.c (focus_completer): New static function.
1830         (_initialize_tui_win): Set the completion function of the
1831         "focus" command to focus_completer.
1832
1833 2015-06-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
1834
1835         * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
1836         and language_asm..
1837         * symtab.c (find_function_start_sal): Likewise.
1838
1839 2015-06-25  Gary Benson  <gbenson@redhat.com>
1840
1841         * solib.c (solib_find_1): Set local variable sysroot to NULL if
1842         it is the empty string after trailing slashes have been stripped.
1843
1844 2015-06-25  Gary Benson  <gbenson@redhat.com>
1845
1846         * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
1847         * infrun.c (follow_exec): Likewise.
1848         * remote.c (remote_filesystem_is_local): Likewise.
1849         * solib.c (solib_find_1): Likewise.
1850
1851 2015-06-24  Keith Seitz  <keiths@redhat.com>
1852
1853         * build-id.c (build_id_to_debug_bfd): Add cleanup to free
1854         return value from lrealpath.
1855
1856 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
1857
1858         * remote-sim.c (gdbsim_open): Move sysroot update to the top.
1859
1860 2015-06-24  Mike Frysinger  <vapier@gentoo.org>
1861
1862         * remote-sim.c: Include gdb_bfd.h.
1863         (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
1864         Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
1865
1866 2015-06-24  Yao Qi  <yao.qi@linaro.org>
1867
1868         * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
1869         set_gdbarch_get_siginfo_type.
1870         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
1871         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
1872         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1873         * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
1874         * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
1875         * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
1876         * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
1877         * linux-tdep.c (linux_get_siginfo_type): Change it to static.
1878         (linux_init_abi): Call set_gdbarch_get_siginfo_type.
1879         * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
1880
1881 2015-06-24  Gary Benson  <gbenson@redhat.com>
1882
1883         * common/buffer.c (stdint.h): Do not include.
1884         * common/print-utils.c (stdint.h): Likewise.
1885         * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
1886         * compile/compile-c-types.c (gdb_assert.h): Likewise.
1887         * ft32-tdep.c (gdb_assert.h): Likewise.
1888         * guile/scm-utils.c (stdint.h): Likewise.
1889         * i386-linux-tdep.c (stdint.h): Likewise.
1890         * i386-tdep.c (stdint.h): Likewise.
1891         * nat/linux-btrace.c (stdint.h): Likewise.
1892         * nat/linux-btrace.h (stdint.h): Likewise.
1893         * nat/linux-ptrace.c (stdint.h): Likewise.
1894         * nat/mips-linux-watch.h (stdint.h): Likewise.
1895         * ppc-linux-nat.c (stdint.h): Likewise.
1896         * python/python-internal.h (stdint.h): Likewise.
1897         * stub-termcap.c (stdlib.h): Likewise.
1898         * target/target.h (stdint.h): Likewise.
1899         * xtensa-linux-nat.c (stdint.h): Likewise.
1900
1901 2015-06-23  Patrick Palka  <patrick@parcs.ath.cx>
1902
1903         * top.c (init_history): Look at errno after calling strtol to
1904         properly map large GDBHISTSIZE values to infinity.
1905
1906 2015-06-23  Doug Evans  <dje@google.com>
1907
1908         * inferior.h (struct inferior_suspend_state): Delete, unused.
1909         All references deleted.
1910
1911 2015-06-23  Mike Frysinger  <vapier@gentoo.org>
1912
1913         * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
1914         (microblaze_push_dummy_call): Likewise.
1915         (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
1916         and set_gdbarch_push_dummy_call.
1917
1918 2015-06-23  Yao Qi  <yao.qi@linaro.org>
1919
1920         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
1921         Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
1922         (amd64_linux_store_inferior_registers): Likewise.
1923         * arm-linux-nat.c (fetch_fpregister): Likewise.
1924         (fetch_fpregs, store_fpregister): Likewise.
1925         (store_fpregister, store_fpregs): Likewise.
1926         (fetch_register, fetch_regs): Likewise.
1927         (store_register, store_regs): Likewise.
1928         (fetch_vfp_regs, store_vfp_regs): Likewise.
1929         (arm_linux_read_description): Check have_ptrace_getregset is
1930         TRIBOOL_UNKNOWN.  Set have_ptrace_getregset to TRIBOOL_TRUE
1931         or TRIBOOL_FALSE.
1932         * i386-linux-nat.c (fetch_xstateregs): Check
1933         have_ptrace_getregset is not TRIBOOL_TRUE.
1934         (store_xstateregs): Likewise.
1935         * linux-nat.c (have_ptrace_getregset): Change its type to
1936         enum tribool.
1937         * linux-nat.h (tribool): New enum.
1938         * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
1939         Check whether have_ptrace_getregset is TRIBOOL_TRUE.
1940
1941 2015-06-19  Doug Evans  <dje@google.com>
1942
1943         * NEWS: Mention Sun's version of stabs is no longer supported.
1944         * elfread.c (free_elfinfo): Delete.  All uses updated.
1945         (elfstab_offset_sections): Delete.  All uses updated.
1946         * gdb-stabs.h (stab_section_info): Delete.  All uses updated.
1947         * psympriv.h (partial_symtab) <section_offsets>: Delete.
1948         All uses updated.
1949         * psymtab.c (start_psymtab_common): Delete arg section_offsets.
1950         All callers updated.
1951
1952 2015-06-18  Simon Marchi  <simon.marchi@ericsson.com>
1953
1954         * common/rsp-low.c (needs_escaping): New.
1955         (remote_escape_output): Add unit_size parameter. Refactor to
1956         support multi-byte addressable units.  Rename parameters.
1957         * common/rsp-low.h (remote_escape_output): Add unit_size
1958         parameter and rename others. Update doc.
1959         * remote.c (align_for_efficient_write): New.
1960         (remote_write_bytes_aux): Add unit_size parameter and use it.
1961         Rename some variables.  Update doc.
1962         (remote_xfer_partial): Get unit size and use it.
1963         (remote_read_bytes_1): Add unit_size parameter and use it.
1964         Rename some variables. Update doc.
1965         (remote_write_bytes): Same.
1966         (remote_xfer_live_readonly_partial): Same.
1967         (remote_read_bytes): Same.
1968         (remote_flash_write): Update call to remote_write_bytes_aux.
1969         (remote_write_qxfer): Update call to remote_escape_output.
1970         (remote_search_memory): Same.
1971         (remote_hostio_pwrite): Same.
1972
1973 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
1974
1975         * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
1976         locations as inserted.
1977         Update and expand comment about permanent locations.
1978         (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
1979         Move comment to add_location_to_breakpoint.
1980         (update_global_location_list): Don't error out if a permanent
1981         breakpoint is not marked inserted.
1982         Don't error out if a non-permanent breakpoint location is inserted on
1983         top of a permanent breakpoint.
1984
1985 2015-06-17  Luis Machado  <lgustavo@codesourcery.com>
1986
1987         * breakpoint.c (make_breakpoint_permanent): Remove unused
1988         function.
1989         * breakpoint.h (make_breakpoint_permanent): Remove declaration.
1990
1991 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
1992
1993         PR gdb/16999
1994         * NEWS: Mention new GDBHISTSIZE behavior.
1995         * top.c (init_history): For null or out-of-range GDBHISTSIZE,
1996         set history size to unlimited.  Ignore non-numeric GDBHISTSIZE.
1997
1998 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
1999
2000         * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
2001         * top.c (init_history): Read from GDBHISTSIZE instead of
2002         HISTSIZE.
2003         (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
2004
2005 2015-06-17  Patrick Palka  <patrick@parcs.ath.cx>
2006
2007         * top.c (gdb_safe_append_history): Do not call
2008         history_truncate_file if the history is not stifled.
2009
2010 2015-06-17  Andreas Arnez  <arnez@linux.vnet.ibm.com>
2011
2012         * syscalls/s390-linux.xml: Add syscalls 344 through 354.
2013         * syscalls/s390x-linux.xml: Likewise.
2014
2015 2015-06-16  Michael Eager  <eager@eagercon.com>
2016
2017         * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
2018
2019 2015-06-16  Patrick Palka  <patrick@parcs.ath.cx>
2020
2021         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
2022         target_terminal_ours_for_output() before calling
2023         tui_show_frame_info(), and restore the original terminal
2024         settings afterwards.
2025
2026 2015-06-16  Martin Simmons  <martin@lispworks.com>  (tiny patch)
2027
2028         * arm-linux-nat.c: Include nat/linux-ptrace.h.
2029
2030 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
2031
2032         * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
2033         memory unit size.
2034         (mi_cmd_data_write_memory_bytes): Same.
2035
2036 2015-06-15  Simon Marchi  <simon.marchi@ericsson.com>
2037
2038         * corefile.c (write_memory): Update doc.
2039         * gdbcore.h (write_memory): Same.
2040
2041 2015-06-15  Jan Kratochvil  <jan.kratochvil@redhat.com>
2042
2043         * linux-tdep.c (enum filterflags): Make it from anonymous enum.
2044         (dump_mapping_p): Use it for parameter filterflags.
2045         (linux_find_memory_regions_full): Use it for variable filterflags.
2046
2047 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
2048             Jan Kratochvil  <jan.kratochvil@redhat.com>
2049
2050         Merge multiple hex conversions.
2051         * monitor.c: Include rsp-low.h.
2052         (fromhex): Remove definition.
2053
2054 2015-06-15  Aleksandar Ristovski  <aristovski@qnx.com
2055             Jan Kratochvil  <jan.kratochvil@redhat.com>
2056
2057         Move utility functions to common/.
2058         * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
2059         Move defs to common/common-utils.c.
2060         * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
2061         (skip_to_space_const): Move decls to common/common-utils.h.
2062         * common/common-defs.h: Move include of common-types.h before
2063         common-utils.h.
2064         * common/common-utils.c: Include host-defs.h and ctype.h.
2065         (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
2066         from utils.c.
2067         (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
2068         cli/cli-utils.c.
2069         * common/common-utils.h (strtoulst): Move decl from utils.h.
2070         (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
2071         Move from cli/cli-utils.h.
2072         * common/host-defs.h: Include limits.h.
2073         (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
2074         (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
2075         * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
2076         common/common-utils.h.
2077         * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
2078         (strtoulst): Move to common/common-utils.c.
2079         * utils.h (strtoulst): Moved decl to common/common-utils.h.
2080
2081 2015-06-15  Yao Qi  <yao.qi@linaro.org>
2082
2083         * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
2084
2085 2015-06-10  Jon Turney  <jon.turney@dronecode.org.uk>
2086
2087         * build-id.c: Don't include elf-bfd.h.
2088         (build_id_bfd_get): Use bfd_build_id.
2089         (build_id_verify): Ditto.
2090         * build-id.h: Ditto.
2091         (find_separate_debug_file_by_buildid): Ditto.
2092         * python/py-objfile.c: Don't include elf-bfd.h.
2093         (objfpy_get_build_id) Use bfd_build_id.
2094         (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
2095         * coffread.c: Include build-id.h.
2096         (coff_symfile_read): Try find_separate_debug_file_by_buildid.
2097
2098 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
2099
2100         * windows-nat.c (do_windows_fetch_inferior_registers)
2101         (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
2102         conditional with __CYGWIN__.
2103
2104 2015-06-13  Andrew Burgess  <andrew.burgess@embecosm.com>
2105
2106         * completer.c: Add arch-utils.h include.
2107         (enum reg_completer_targets): New enum.
2108         (reg_or_group_completer_1): New function containing old
2109         reg_or_group_completer, add and use new parameter to control what
2110         is completed on.  Use get_current_arch rather than architecture of
2111         currently selected frame.
2112         (reg_or_group_completer): Call new reg_or_group_completer_1.
2113         (reggroup_completer): Call new reg_or_group_completer_1.
2114         * completer.h (reggroup_completer): Add declaration.
2115         * tui/tui-regs.c: Add 'completer.h' include.
2116         (tui_reg_next_command): Renamed to...
2117         (tui_reg_next): ...this.  Adjust parameters and return rather than
2118         display new group.
2119         (tui_reg_prev_command): Renamed to...
2120         (tui_reg_prev): ...this.  Adjust parameters and return rather than
2121         display new group.
2122         (tui_reg_float_command): Delete.
2123         (tui_reg_general_command): Delete.
2124         (tui_reg_system_command): Delete.
2125         (tui_reg_command): Rewrite to perform switching of register group.
2126         Add header comment.
2127         (tuireglist): Remove.
2128         (tui_reggroup_completer): New function.
2129         (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
2130         creation of 'tui reg' command.
2131         * NEWS: Add comment about 'tui reg' changes.
2132
2133 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
2134
2135         * target.c (target_read): Consider addressable unit size when
2136         reading from a memory object.
2137         (read_memory_robust): Same.
2138         (read_whatever_is_readable): Same.
2139         (target_write_with_progress): Consider addressable unit size
2140         when writing to a memory object.
2141         * target.h (target_read): Update documentation.
2142         (target_write): Add documentation.
2143
2144 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
2145
2146         * arch-utils.h (default_addressable_memory_unit_size): New.
2147         * arch-utils.c (default_addressable_memory_unit_size): New.
2148         * gdbarch.sh (addressable_memory_unit_size): New.
2149         * gdbarch.h: Re-generate.
2150         * gdbarch.c: Re-generate.
2151
2152 2015-06-12  Simon Marchi  <simon.marchi@ericsson.com>
2153
2154         * target.c (target_read): Rename variables and use
2155         TARGET_XFER_E_IO.
2156         (target_read_with_progress): Same.
2157         (read_memory_robust): Constify parameters and rename
2158         variables.
2159         (read_whatever_is_readable): Constify parameters,
2160         rename variables, adjust formatting.
2161         * target.h (read_memory_robust): Constify parameters.
2162
2163 2015-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
2164
2165         * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
2166         synthetic (non-AltiVec) vector types.
2167         (ppc64_sysv_abi_return_value): Likewise.
2168
2169 2015-06-12  Antoine Tremblay  <antoine.tremblay@ericsson.com>
2170
2171         PR breakpoints/16465
2172         * breakpoint.c (create_breakpoint): Save extra_string for
2173         pending breakpoints.
2174
2175 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2176
2177         * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
2178         and bt_mask to CORE_ADDR.
2179
2180 2015-06-11  Gary Benson <gbenson@redhat.com>
2181
2182         * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
2183         (mnsh_recv_message): Likewise.
2184
2185 2015-06-11  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2186
2187         * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
2188         long long int and plongest instead of %ll.
2189
2190 2015-06-11  Gary Benson <gbenson@redhat.com>
2191
2192         * nat/linux-namespaces.c (gdb_wait.h): New include.
2193         (sys/wait.h): Do not include.
2194
2195 2015-06-10  Simon Marchi  <simon.marchi@ericsson.com>
2196
2197         * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
2198         end_sequence is true.
2199
2200 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2201
2202         Code cleanup.
2203         * solib-target.c (library_list_start_list): Use explicit NULL
2204         comparison.
2205
2206 2015-06-10  Jan Kratochvil  <jan.kratochvil@redhat.com>
2207
2208         * solib-target.c (library_list_start_list): Do not dereference
2209         variable version in its initialization.  Make the VERSION check handle
2210         NULL.
2211         (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
2212
2213 2015-06-10  Gary Benson <gbenson@redhat.com>
2214
2215         * NEWS: Announce support for direct access of executable and
2216         shared library files when attaching to inferiors in containers
2217         on GNU/Linux systems.
2218
2219 2015-06-10  Gary Benson <gbenson@redhat.com>
2220
2221         * remote.c (struct remote_state) <fs_pid>: New field.
2222         (new_remote_state): Initialize the above.
2223         (PACKET_vFile_setfs): New enum value.
2224         (remote_hostio_set_filesystem): New function.
2225         (remote_hostio_open): Call the above.
2226         (remote_hostio_unlink): Likewise.
2227         (remote_hostio_readlink): Likewise.
2228         (_initialize_remote): Register new "set/show remote
2229         hostio-setfs-packet" command.
2230         * NEWS: Announce new vFile:setfs packet.
2231
2232 2015-06-10  Gary Benson <gbenson@redhat.com>
2233
2234         * linux-nat.c (nat/linux-namespaces.h): New include.
2235         (fileio.h): Likewise.
2236         (linux_nat_filesystem_is_local): New function.
2237         (linux_nat_fileio_pid_of): Likewise.
2238         (linux_nat_fileio_open): Likewise.
2239         (linux_nat_fileio_readlink): Likewise.
2240         (linux_nat_fileio_unlink): Likewise.
2241         (linux_nat_add_target): Initialize to_filesystem_is_local,
2242         to_fileio_open, to_fileio_readlink and to_fileio_unlink.
2243         (_initialize_linux_nat): New "set/show debug linux-namespaces"
2244         commands.
2245         * NEWS: Mention new "set/show debug linux-namespaces" commands.
2246
2247 2015-06-10  Gary Benson <gbenson@redhat.com>
2248
2249         * target.h (struct inferior): New forward declaration.
2250         (struct target_ops) <to_filesystem_is_local>: Update comment.
2251         (struct target_ops) <to_fileio_open>: New argument inf.
2252         Update comment.  All implementations updated.
2253         (struct target_ops) <to_fileio_unlink>: Likewise.
2254         (struct target_ops) <to_fileio_readlink>: Likewise.
2255         (target_filesystem_is_local): Update comment.
2256         (target_fileio_open): New argument inf.  Update comment.
2257         (target_fileio_unlink): Likewise.
2258         (target_fileio_readlink): Likewise.
2259         (target_fileio_read_alloc): Likewise.
2260         (target_fileio_read_stralloc): Likewise.
2261         * target.c (target_fileio_open): New argument inf.
2262         Pass inf to implementation.  Update debug printing.
2263         (target_fileio_unlink): Likewise.
2264         (target_fileio_readlink): Likewise.
2265         (target_fileio_read_alloc_1): New argument inf. Pass inf
2266         to target_fileio_open.
2267         (target_fileio_read_alloc): New argument inf. Pass inf to
2268         target_fileio_read_alloc_1.
2269         (target_fileio_read_stralloc): Likewise.
2270         * gdb_bfd.c (inferior.h): New include.
2271         (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
2272         argument with new argument "inferior".  Pass inferior to
2273         target_fileio_open.
2274         (gdb_bfd_open): Supply inferior argument to
2275         gdb_bfd_iovec_fileio_open.
2276         * linux-tdep.c (linux_info_proc): Supply inf argument to
2277         relevant target_fileio calls.
2278         (linux_find_memory_regions_full): Likewise.
2279         (linux_fill_prpsinfo): Likewise.
2280         * remote.c (remote_filesystem_is_local): Supply inf
2281         argument to remote_hostio_open.
2282         (remote_file_put): Likewise.
2283         (remote_file_get): Likewise.
2284         (remote_file_delete): Supply inf argument to
2285         remote_hostio_unlink.
2286
2287 2015-06-10  Gary Benson <gbenson@redhat.com>
2288
2289         * inf-child.c (inf_child_fileio_open): Replace comment.
2290         (inf_child_fileio_pwrite): Likewise.
2291         (inf_child_fileio_pread): Likewise.
2292         (inf_child_fileio_fstat): Insert blank line before comment.
2293         (inf_child_fileio_close): Replace comment.
2294         (inf_child_fileio_unlink): Likewise.
2295         (inf_child_fileio_readlink): Likewise.
2296         * remote.c (remote_hostio_open): Likewise.
2297         (remote_hostio_pread): Likewise.
2298         (remote_hostio_pwrite): Likewise.
2299         (remote_hostio_close): Likewise.
2300         (remote_hostio_unlink): Likewise.
2301         (remote_hostio_readlink): Likewise.
2302         (remote_hostio_fstat): Likewise.
2303         (remote_filesystem_is_local): Likewise.
2304         * target.c (target_fileio_open): Likewise.
2305         (target_fileio_pwrite): Likewise.
2306         (target_fileio_pread): Likewise.
2307         (target_fileio_fstat): Insert blank line before comment.
2308         (target_fileio_close): Replace comment.
2309         (target_fileio_unlink): Likewise.
2310         (target_fileio_readlink): Likewise.
2311         (target_fileio_read_alloc): Likewise.
2312         (target_fileio_read_stralloc): Likewise.
2313
2314 2015-06-10  Gary Benson <gbenson@redhat.com>
2315
2316         * linux-thread-db.c (nat/linux-namespaces.h): New include.
2317         (check_pid_namespace_match): Use linux_ns_same rather than
2318         linux_proc_pid_get_ns to spot PID namespace mismatches.
2319         * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
2320         * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
2321
2322 2015-06-10  Gary Benson <gbenson@redhat.com>
2323
2324         * configure.ac (AC_CHECK_FUNCS): Add setns.
2325         * config.in: Regenerate.
2326         * configure: Likewise.
2327         * nat/linux-namespaces.h: New file.
2328         * nat/linux-namespaces.c: Likewise.
2329         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
2330         (linux-namespaces.o): New rule.
2331         * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
2332         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2333         * config/arm/linux.mh (NATDEPFILES): Likewise.
2334         * config/i386/linux.mh (NATDEPFILES): Likewise.
2335         * config/i386/linux64.mh (NATDEPFILES): Likewise.
2336         * config/ia64/linux.mh (NATDEPFILES): Likewise.
2337         * config/m32r/linux.mh (NATDEPFILES): Likewise.
2338         * config/m68k/linux.mh (NATDEPFILES): Likewise.
2339         * config/mips/linux.mh (NATDEPFILES): Likewise.
2340         * config/pa/linux.mh (NATDEPFILES): Likewise.
2341         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
2342         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2343         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2344         * config/s390/linux.mh (NATDEPFILES): Likewise.
2345         * config/sparc/linux.mh (NATDEPFILES): Likewise.
2346         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2347         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2348         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2349
2350 2015-06-10  Gary Benson <gbenson@redhat.com>
2351
2352         * utils.h (make_cleanup_close): Moved to common/filestuff.h.
2353         * utils.c (do_close_cleanup): Moved to common/filestuff.c.
2354         (make_cleanup_close): Likewise.
2355         * common/filestuff.h (make_cleanup_close): Moved from utils.h.
2356         * common/filestuff.c (do_close_cleanup): Moved from utils.c.
2357         (make_cleanup_close): Likewise.
2358
2359 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
2360
2361         * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
2362         from SuspendThread().
2363
2364 2015-06-03  Jon Turney  <jon.turney@dronecode.org.uk>
2365
2366         * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
2367         from OutputDebugString.
2368
2369 2015-06-10  Walfred Tedeschi  <walfred.tedeschi@intel.com>
2370                         Mircea Gherzan  <mircea.gherzan@intel.com>
2371
2372         * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
2373         MPX_BT_MASK_32): New macros.
2374         (i386_mpx_set_bounds): New function that implements
2375         the command "set-mpx-bound".
2376         (i386_mpx_enabled): Helper function to test MPX availability.
2377         (i386_mpx_bd_base): Helper function to calculate the base directory
2378         address.
2379         (i386_mpx_get_bt_entry): Helper function to access a bound
2380         table entry.
2381         (i386_mpx_print_bounds): Effectively display bound information.
2382         (_initialize_i386_tdep): Add new commands to commands "set mpx" and
2383         "show mpx".
2384         (_initialize_i386_tdep):
2385         Add "bound" to the commands "show mpx" and "set mpx" commands.
2386         (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
2387         and "show mpx" commands.
2388         * NEWS: List new commands for MPX support.
2389
2390 2015-06-09  Gary Benson <gbenson@redhat.com>
2391
2392         * common/fileio.h (fileio_to_host_mode): New declaration.
2393         * common/fileio.c (fileio_to_host_mode): New Function.
2394         * inf-child.c (inf_child_fileio_open): Process mode argument
2395         with fileio_to_host_mode.
2396
2397 2015-06-09  Gary Benson <gbenson@redhat.com>
2398
2399         * common/fileio.c (fileio_mode_pack): Fix preprocessor
2400         conditional.
2401
2402 2015-06-05  Gary Benson <gbenson@redhat.com>
2403
2404         * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
2405         * remote.c (remote_filesystem_is_local): ...here.
2406
2407 2015-06-04  Yao Qi  <yao.qi@linaro.org>
2408
2409         * gdbarch.c: Regenerate it.
2410
2411 2015-06-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2412
2413         * arch-utils.c (default_infcall_munmap): New.
2414         * arch-utils.h (default_infcall_munmap): New declaration.
2415         * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
2416         (munmap_list_free, munmap_listp_free_cleanup): New.
2417         (struct setup_sections_data): Add field munmap_list_headp.
2418         (setup_sections): Call munmap_list_add.
2419         (compile_object_load): New variable munmap_list_head, initialize
2420         setup_sections_data.munmap_list_headp, return munmap_list_head.
2421         * compile/compile-object-load.h (struct munmap_list): New declaration.
2422         (struct compile_module): Add field munmap_list_head.
2423         (munmap_list_free): New declaration.
2424         * compile/compile-object-run.c (struct do_module_cleanup): Add field
2425         munmap_list_head.
2426         (do_module_cleanup): Call munmap_list_free.
2427         (compile_object_run): Pass munmap_list_head to do_module_cleanup.
2428         * gdbarch.c: Regenerate.
2429         * gdbarch.h: Regenerate.
2430         * gdbarch.sh (infcall_munmap): New.
2431         * linux-tdep.c (linux_infcall_munmap): New.
2432         (linux_init_abi): Install it.
2433
2434 2015-06-02  Simon Marchi  <simon.marchi@ericsson.com>
2435
2436         PR gdb/15564
2437         * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
2438
2439 2015-06-02  Yao Qi  <yao.qi@linaro.org>
2440
2441         * i386-linux-nat.c: Include linux-nat.h.
2442
2443 2015-06-01  Andreas Schwab  <schwab@linux-m68k.org>
2444             Jan Kratochvil  <jan.kratochvil@redhat.com>
2445
2446         PR symtab/18392
2447         * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
2448         assertion.
2449         * dwarf2loc.c (chain_candidate): Likewise.
2450
2451 2015-06-01  Yao Qi  <yao.qi@linaro.org>
2452
2453         * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
2454         (store_vfp_regs): Use PTRACE_SETREGSET.
2455
2456 2015-06-01  Yao Qi  <yao.qi@linaro.org>
2457
2458         * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
2459         (fetch_fpregs): Likewise.
2460         * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
2461         (store_fpregs): Likewise.
2462
2463 2015-06-01  Yao Qi  <yao.qi@linaro.org>
2464
2465         * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
2466         (fetch_regs): Likewise.
2467         (store_regs): Use PTRACE_SETREGSET.
2468         (store_register): Likewise.
2469
2470 2015-06-01  Yao Qi  <yao.qi@linaro.org>
2471
2472         * arm-linux-nat.c (arm_linux_read_description): Check whether
2473         kernel supports PTRACE_GETREGSET.
2474
2475 2015-06-01  Yao Qi  <yao.qi@linaro.org>
2476
2477         * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
2478         * linux-nat.c: ... here.
2479         * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
2480         to ...
2481         * linux-nat.h: ... here.
2482
2483 2015-06-01  Yao Qi  <yao.qi@linaro.org>
2484
2485         * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
2486         * i386-linux-nat.c: Likewise.
2487         * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
2488         * s390-linux-nat.c: Include "nat/linux-ptrace.h".
2489         (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
2490         * x86-linux-nat.c: Include "nat/linux-ptrace.h".
2491         * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
2492
2493 2015-05-30  Eli Zaretskii  <eliz@gnu.org>
2494
2495         * go32-nat.c (go32_xfer_memory): Fix the return value to be
2496         compatible to what read_child and write_child return.  This
2497         unbreaks that DJGPP build of GDB which was broken since v7.7.
2498
2499 2015-05-29  Martin Galvan  <martin.galvan@tallertechnologies.com>
2500
2501         * MAINTAINERS (Write After Approval): Add Martin Galvan.
2502
2503 2015-05-29  Roland McGrath  <mcgrathr@google.com>
2504
2505         PR gdb/18464
2506         * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
2507         rather than internal_error for an unrecognized value.
2508
2509 2015-05-29  Max Filippov  <jcmvbkbc@gmail.com>
2510
2511         * xtensa-tdep.c (xtensa_pseudo_register_read)
2512         (xtensa_pseudo_register_write): Don't alias last pseudo register
2513         to a1.
2514
2515 2015-05-28  Don Breazeal  <donb@codesourcery.com>
2516
2517         * infrun.c (follow_fork_inferior): Ensure the use of
2518         process-style ptids (pid,0,0) in verbose/debug "Detaching"
2519         messages.
2520
2521 2015-05-28  Doug Evans  <dje@google.com>
2522
2523         * dwarf2read.c (record_line_ftype): Remove, duplicate.
2524
2525 2015-05-28  Yao Qi  <yao.qi@linaro.org>
2526
2527         * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
2528         (arm_linux_fetch_inferior_registers): Use
2529         tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
2530         (arm_linux_store_inferior_registers): Likewise.
2531         (arm_linux_read_description): Don't set
2532         arm_linux_has_wmmx_registers.
2533         * arm-tdep.c (arm_gdbarch_init): Set
2534         tdep->have_wmmx_registers according target descriptions.
2535         * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
2536         field.
2537
2538 2015-05-28  Yao Qi  <yao.qi@linaro.org>
2539
2540         * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
2541         (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
2542         instead of arm_linux_vfp_register_count.
2543         (store_vfp_regs): Likewise.
2544         (arm_linux_fetch_inferior_registers): Likewise.
2545         (arm_linux_store_inferior_registers): Likewise.
2546         (arm_linux_read_description): Don't set
2547         arm_linux_vfp_register_count.
2548         * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
2549         Adjust.
2550         * arm-tdep.c (arm_gdbarch_init): Add assert on
2551         vfp_register_count.
2552         * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
2553         field to vfp_register_count.  All users updated.
2554
2555 2015-05-28  Kyle Huey  <me@kylehuey.com>  (tiny patch)
2556
2557         * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
2558         ELFOSABI_GNU binaries.
2559
2560 2015-05-27  Doug Evans  <dje@google.com>
2561
2562         * dwarf2read.c (lnp_state_machine): New typedef.
2563         (lnp_reader_state): New typedef.
2564         (dwarf_record_line_1): Renamed from dwarf_record_line.
2565         All callers updated.
2566         (dwarf_record_line): New function.
2567         (init_lnp_state_machine): New function.
2568         (check_line_address): Replace p_record_line parameter with state.
2569         All callers updated.
2570         (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
2571         Update to record state in lnp_state_machine.
2572
2573 2015-05-27  Doug Evans  <dje@google.com>
2574
2575         * dwarf2read.c (record_line_ftype): New typedef.
2576         (check_line_address): New function.
2577         (dwarf_decode_lines_1): Call it.
2578
2579 2015-05-27  Doug Evans  <dje@google.com>
2580
2581         * NEWS: Mention "set debug dwarf-line".
2582         * dwarf2read.c (dwarf_line_debug): New static global.
2583         (add_include_dir): Add debug dwarf-line support.
2584         (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
2585         (_initialize_dwarf2_read): New parameter "debug dwarf-line".
2586
2587 2015-05-27  Doug Evans  <dje@google.com>
2588
2589         * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
2590         All callers updated.
2591         (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
2592         * cp-support.h (cp_lookup_nested_symbol): Update.
2593
2594 2015-05-27  Doug Evans  <dje@google.com>
2595
2596         PR symtab/18258
2597         * block.c (block_find_symbol): New function.
2598         (block_find_non_opaque_type): Ditto.
2599         (block_find_non_opaque_type_preferred): Ditto.
2600         * block.h (block_symbol_matcher_ftype): New typedef.
2601         (block_find_symbol): Declare.
2602         (block_find_non_opaque_type): Ditto.
2603         (block_find_non_opaque_type_preferred): Ditto.
2604         * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
2605         * psymtab.c (psym_lookup_symbol): Ditto.
2606         * symtab.c (basic_lookup_transparent_type_1): New function.
2607         (basic_lookup_transparent_type): Call it.
2608
2609 2015-05-27  Yao Qi  <yao.qi@linaro.org>
2610
2611         * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
2612         AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
2613
2614 2015-05-27  Yao Qi  <yao.qi@linaro.org>
2615
2616         * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
2617         before operator &&.
2618         (aarch64_record_load_store): Likewise.
2619
2620 2015-05-26  Doug Evans  <dje@google.com>
2621
2622         PR c++/18141, c++/18417.
2623         * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
2624         a typedef.
2625
2626 2015-05-26  Doug Evans  <dje@google.com>
2627
2628         * NEWS: Add entries for command renamings.
2629         * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
2630         All uses updated.
2631         (dwarf_die_debug): Renamed from dwarf2_die_debug.  All uses updated.
2632         (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
2633         All uses updated.
2634         (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
2635         All callers updated.  Fix spelling of DWARF in help text.
2636         (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
2637         All uses updated.
2638         (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
2639         All uses updated.
2640         (set_dwarf_cmd): Renamed from set_dwarf2_cmd.  All callers updated.
2641         (show_dwarf_cmd): Renamed from show_dwarf2_cmd.  All callers updated.
2642         (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
2643         All uses updated.
2644         (show_dwarf_always_disassemble): Renamed from
2645         show_dwarf2_always_disassemble.  All callers updated.
2646         (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
2647         "set/show dwarf".  Rename "set/show dwarf2 max-cache-age" to
2648         "set/show dwarf max-cache-age".  Rename
2649         "set/show dwarf2 always-disassemble" to
2650         "set/show dwarf always-disassemble".  Rename
2651         "set/show debug dwarf2-read" to "set/show debug dwarf-read".  Rename
2652         "set/show debug dwarf2-die" to "set/show debug dwarf-die".
2653
2654 2015-05-26  Doug Evans  <dje@google.com>
2655
2656         PR python/18438
2657         * python/py-lazy-string.c (stpy_convert_to_value): Use
2658         gdbpy_gdb_memory_error not PyExc_MemoryError.
2659         (gdbpy_create_lazy_string_object): Ditto.
2660
2661 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
2662
2663         * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
2664
2665 2015-05-26  Andrew Burgess  <andrew.burgess@embecosm.com>
2666
2667         * tui/tui-regs.c (tui_reg_prev_command): New function.
2668         (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
2669         * reggroups.c (reggroup_prev): New function.
2670         * reggroups.h (reggroup_prev): Add declaration.  Update comment.
2671
2672 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
2673             Yao Qi  <yao.qi@linaro.org>
2674
2675         * aarch64-linux-tdep.c: Include linux-record.h and
2676         record-full.h.
2677         (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
2678         (aarch64_syscall): New enum.
2679         (aarch64_canonicalize_syscall): New function.
2680         (aarch64_all_but_pc_registers_record): New function.
2681         (aarch64_linux_syscall_record): New function.
2682         (aarch64_linux_init_abi): Install AArch64 process record
2683         handler.  Update to handle syscall recording.
2684         * aarch64-tdep.c: Include record.h and record-full.h.
2685         (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
2686         (struct aarch64_mem_r): Define.
2687         (aarch64_record_result): New enum.
2688         (struct insn_decode_record): Define.
2689         (insn_decode_record): New typedef.
2690         (aarch64_record_data_proc_reg): New function.
2691         (aarch64_record_data_proc_imm): New function.
2692         (aarch64_record_branch_except_sys): New function.
2693         (aarch64_record_load_store): New function.
2694         (aarch64_record_data_proc_simd_fp): New function.
2695         (aarch64_record_asimd_load_store): New function.
2696         (aarch64_record_decode_insn_handler): New function.
2697         (deallocate_reg_mem): New function.
2698         (aarch64_process_record): New function.
2699         * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
2700         New field.
2701         (aarch64_process_record): New extern declaration.
2702         * configure.tgt: Add linux-record.o to gdb_target_obs.
2703         * linux-record.h (struct linux_record_tdep) <arg7>: New field.
2704
2705 2015-05-26  Omair Javaid  <omair.javaid@linaro.org>
2706
2707         * NEWS: Add a note on process record-replay support on aarch64*-linux*
2708         targets.
2709
2710 2015-05-26  Martin Galvan  <martin.galvan@tallertechnologies.com>
2711
2712         * amd64-tdep.c: Replace in_function_epilogue_p with
2713         stack_frame_destroyed_p throughout.
2714         * arch-utils.c: Ditto.
2715         * arch-utils.h: Ditto.
2716         * arm-tdep.c: Ditto.
2717         * breakpoint.c: Ditto.
2718         * gdbarch.sh: Ditto.
2719         * hppa-tdep.c: Ditto.
2720         * i386-tdep.c: Ditto.
2721         * mips-tdep.c: Ditto.
2722         * nios2-tdep.c: Ditto.
2723         * rs6000-tdep.c: Ditto.
2724         * s390-linux-tdep.c: Ditto.
2725         * score-tdep.c: Ditto.
2726         * sh-tdep.c: Ditto.
2727         * sparc-tdep.c: Ditto.
2728         * sparc-tdep.h: Ditto.
2729         * sparc64-tdep.c: Ditto.
2730         * spu-tdep.c: Ditto.
2731         * tic6x-tdep.c: Ditto.
2732         * tilegx-tdep.c: Ditto.
2733         * xstormy16-tdep.c: Ditto.
2734         * gdbarch.c, gdbarch.h: Re-generated.
2735
2736 2015-05-22  Andrew Burgess  <andrew.burgess@embecosm.com>
2737
2738         * NEWS: Mention 'tui enable' and 'tui disable'.
2739         * tui/tui.c (tui_enable_command): New function.
2740         (tui_disable_command): New function.
2741         (_initialize_tui): New function.
2742
2743 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2744
2745         * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
2746
2747 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2748
2749         * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
2750         buf_ptr is freed.
2751
2752 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2753
2754         * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
2755         into ...
2756         (tui_set_layout_for_display_command): ...here, before calling
2757         tui_set_layout.  Only set the layout if gdb has not already
2758         entered the TUI_FAILURE state.
2759
2760 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2761
2762         * tui/tui-layout.c (layout_completer): New function.
2763         (_initialize_tui_layout): Set completer on layout command.
2764
2765 2015-05-21  Andrew Burgess  <andrew.burgess@embecosm.com>
2766
2767         * tui/tui-layout.c (tui_set_layout): Remove
2768         tui_register_display_type parameter.  Remove all checking of this
2769         parameter, and reindent function.  Update header comment.
2770         (tui_set_layout_for_display_command): Rename to...
2771         (tui_set_layout_by_name): ...this, and don't check for different
2772         register class types, don't pass a tui_register_display_type to
2773         tui_set_layout.  Update header comment.
2774         (layout_names): Remove register set specific names.
2775         * tui/tui-layout.h (tui_set_layout): Remove
2776         tui_register_display_type parameter.
2777         * tui/tui.c (tui_rl_change_windows): Don't pass a
2778         tui_register_display_type to tui_set_layout.
2779         (tui_rl_delete_other_windows): Likewise.
2780         (tui_enable): Likewise.
2781         * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
2782         (TUI_FLOAT_REGS_NAME_LOWER): Remove.
2783         (TUI_GENERAL_REGS_NAME): Remove.
2784         (TUI_GENERAL_REGS_NAME_LOWER): Remove.
2785         (TUI_SPECIAL_REGS_NAME): Remove.
2786         (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
2787         (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
2788         (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
2789         (enum tui_register_display_type): Remove.
2790         (struct tui_layout_def): Remove regs_display_type and
2791         float_regs_display_type fields.
2792         (struct tui_data_info): Remove regs_display_type field.
2793         (tui_layout_command): Use new name for
2794         tui_set_layout_for_display_command.
2795         * tui/tui-data.c (layout_def): Don't initialise removed fields.
2796         (tui_clear_win_detail): Don't initialise removed fields of
2797         win_info.
2798         * tui/tui-regs.c (tui_show_registers): Use new name for
2799         tui_set_layout_for_display_command.
2800         * tui/tui.h (tui_set_layout_for_display_command): Rename
2801         declaration to...
2802         (tui_set_layout_by_name): ...this.
2803         * printcmd.c (display_command): Remove tui related layout call,
2804         and reindent.
2805
2806 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
2807
2808         * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
2809         (handle_inferior_event): New function.
2810
2811 2015-05-20  Joel Brobecker  <brobecker@adacore.com>
2812
2813         * ada-lang.c (to_fixed_array_type): Rename local variable
2814         typename into type_name.
2815
2816 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2817
2818         Fix ASAN crash for gdb.compile/compile.exp.
2819         * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
2820
2821 2015-05-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2822
2823         * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
2824         (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
2825         * compile/compile-object-load.c (setup_sections, compile_object_load):
2826         Likewise.
2827         * compile/compile.c (compile_to_object): Likewise.
2828
2829 2015-05-16  Doug Evans  <xdje42@gmail.com>
2830
2831         * NEWS: Mention support for unbuffered Guile memory ports.
2832         * scm-ports.c (ioscm_memory_port): Update comments on end, size.
2833         (ioscm_lseek_address): Improve overflow calculation.
2834         (gdbscm_memory_port_fill_input): Add assert.
2835         (gdbscm_memory_port_write): Handle unbuffered ports.
2836         Handle large writes identical to Guile's fport_write.
2837         (gdbscm_memory_port_seek): Fix seeking past end check.
2838         (gdbscm_memory_port_close): Handle closing unbuffered port.
2839         (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
2840         (ioscm_init_memory_port): Handle unbuffered ports.
2841         (ioscm_reinit_memory_port): Ditto.
2842         (ioscm_init_memory_port): Update size calculation.
2843         (gdbscm_open_memory): Support zero sized ports.
2844
2845 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2846
2847         * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
2848         variable compiler warnings.
2849
2850 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2851
2852         * compile/compile-object-load.c (get_out_value_type): Fix returned type.
2853
2854 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2855             Phil Muldoon  <pmuldoon@redhat.com>
2856
2857         * NEWS (Changes since GDB 7.9): Add compile print.
2858         * compile/compile-c-support.c (add_code_header, add_code_footer)
2859         (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
2860         COMPILE_I_PRINT_VALUE_SCOPE.
2861         * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
2862         (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
2863         New.
2864         * compile/compile-object-load.c: Include block.h.
2865         (get_out_value_type): New function.
2866         (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
2867         COMPILE_I_PRINT_VALUE_SCOPE.  Set compile_module's OUT_VALUE_ADDR and
2868         OUT_VALUE_TYPE.
2869         * compile/compile-object-load.h (struct compile_module): Add fields
2870         out_value_addr and out_value_type.
2871         * compile/compile-object-run.c: Include valprint.h and compile.h.
2872         (struct do_module_cleanup): Add fields out_value_addr and
2873         out_value_type.
2874         (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
2875         COMPILE_I_PRINT_VALUE_SCOPE.
2876         (compile_object_run): Propagate out_value_addr and out_value_type.
2877         Pass OUT_VALUE_ADDR.
2878         * compile/compile.c: Include valprint.h.
2879         (compile_print_value, compile_print_command): New functions.
2880         (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
2881         (_initialize_compile): Update compile code help text.  Install
2882         compile_print_command.
2883         * compile/compile.h (compile_print_value): New prototype.
2884         * defs.h (enum compile_i_scope_types): Add
2885         COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
2886
2887 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2888
2889         * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
2890         Rely on its parameter count.
2891         (compile_object_load): Replace lookup_minimal_symbol_text by
2892         lookup_global_symbol_from_objfile.  Verify FUNC_SYM.  Set it in the
2893         return value.
2894         * compile/compile-object-load.h (struct compile_module): Replace
2895         func_addr by func_sym.
2896         * compile/compile-object-run.c: Include block.h.
2897         (compile_object_run): Reset module variable after it is freed.  Use
2898         FUNC_SYM instead of FUNC_ADDR.  Rely on it.
2899
2900 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2901
2902         * compile/compile-c-support.c (print_one_macro): Use #ifndef.
2903         (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
2904         (c_compute_program): Call generate_register_struct after typedefs.
2905         * compile/compile-loc2c.c (push, pushf_register_address)
2906         (pushf_register): Cast to GCC_UINTPTR.
2907         (do_compile_dwarf_expr_to_c): Use unused attribute.  Add space after
2908         type.  Use GCC_UINTPTR instead of void *.  Remove excessive cast.
2909         (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
2910         * compile/compile.c (_initialize_compile): Enable warnings for
2911         COMPILE_ARGS.
2912
2913 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2914
2915         * cli/cli-script.c (execute_control_command): Update
2916         eval_compile_command caller.
2917         * compile/compile-object-load.c (compile_object_load): Add parameters
2918         scope and scope_data.  Set them.
2919         * compile/compile-object-load.h (struct compile_module): Add fields
2920         scope and scope_data.
2921         (compile_object_load): Add parameters scope and scope_data.
2922         * compile/compile-object-run.c (struct do_module_cleanup): Add fields
2923         scope and scope_data.
2924         (compile_object_run): Propagate the fields scope and scope_data.
2925         * compile/compile.c (compile_file_command, compile_code_command):
2926         Update eval_compile_command callers.
2927         (eval_compile_command): Add parameter scope_data.  Pass it plus scope.
2928         * compile/compile.h (eval_compile_command): Add parameter scope_data.
2929         * defs.h (struct command_line): Add field scope_data.
2930
2931 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2932
2933         * printcmd.c (struct format_data): Move it to valprint.h.
2934         (print_command_parse_format, print_value): New functions from ...
2935         (print_command_1): ... here.  Call them.
2936         * valprint.h (struct format_data): Move it here from printcmd.c.
2937         (print_command_parse_format, print_value): New declarations.
2938
2939 2015-05-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
2940
2941         * compile/compile-object-load.c (compile_object_load): Add
2942         COMPILE_DEBUG message.
2943
2944 2015-05-15  Jerome Guitton  <guitton@adacore.com>
2945
2946         * ada-lang.c (ada_value_ptr_subscript): Use enum position of
2947         index to get element instead of enum value.
2948         (ada_value_slice_from_ptr, ada_value_slice): Use enum position
2949         of index to compute length, but enum values to compute bounds.
2950         (ada_array_length): Use enum position of index instead of enum value.
2951         (pos_atr): Move position computation to...
2952         (ada_evaluate_subexp): Use enum values to compute bounds.
2953         * gdbtypes.c (discrete_position): ...this new function.
2954         * gdbtypes.h (discrete_position): New function declaration.
2955         * valprint.c (val_print_array_elements): Call discrete_position
2956         to handle array indexed by non-contiguous enumeration types.
2957
2958 2015-05-15  Jerome Guitton  <guitton@adacore.com>
2959
2960         * ada-lang.c (find_parallel_type_by_descriptive_type):
2961         Go through typedefs during lookup.
2962         (to_fixed_array_type): Add support for non-bit packed arrays
2963         as variable-length fields.
2964
2965 2015-05-15  Pedro Alves  <palves@redhat.com>
2966             Simon Marchi  <simon.marchi@ericsson.com>
2967
2968         * event-loop.c (gdb_notifier) <next_file_handler,
2969         next_poll_fds_index>: New fields.
2970         (get_next_file_handler_to_handle_and_advance): New function.
2971         (delete_file_handler): If deleting the next file handler to
2972         handle, advance to the next file handler.
2973         (gdb_wait_for_event): Bail early if no event fired.  Poll file
2974         handlers in round-robin fashion.
2975
2976 2015-05-15  Pedro Alves  <palves@redhat.com>
2977
2978         * linux-tdep.c (linux_find_memory_regions_full): Rename local
2979         'private' to 'priv'.
2980
2981 2015-05-15  Pedro Alves  <palves@redhat.com>
2982
2983         * nat/linux-nat.h: Include "target/waitstatus.h".
2984
2985 2015-05-15  Yuanhui Zhang  <asmwarrior@gmail.com>
2986
2987         * python/py-unwind.c (struct reg_info): Move out of ...
2988         (struct cached_frame_info): ... this scope.
2989         (pending_frame_object_type, unwind_info_object_type): Make extern.
2990
2991 2015-05-15  Joel Brobecker  <brobecker@adacore.com>
2992
2993         * ada-lang.c (ada_value_primitive_packed_val): Make sure
2994         accumSize is never negative.
2995
2996 2015-05-14  Patrick Palka  <patrick@parcs.ath.cx>
2997
2998         * tui/tui-command.c: Remove include of <ctype.h>.
2999         (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
3000
3001 2015-05-13  Martin Galvan  <martin.galvan@tallertechnologies.com>
3002
3003         * dwarf2read.c (die_needs_namespace): Return 1 for
3004         DW_TAG_inlined_subroutine.
3005
3006 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3007
3008         * regcache.c (regcache_cpy_no_passthrough): New declaration.
3009         (regcache_cpy_no_passthrough): Make it static, add function comment.
3010         * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
3011         (regcache_cpy_no_passthrough): Remove declaration.
3012
3013 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3014
3015         * gdbthread.h (struct thread_control_state): Update comment for
3016         proceed_to_finish.
3017         * infcall.c (run_inferior_call): Update comment about
3018         proceed_to_finish.
3019         * infcmd.c (get_return_value): Update comment about stop_registers.
3020         (finish_forward): Update comment about proceed_to_finish.
3021         * infrun.c (stop_registers): Remove.
3022         (clear_proceed_status, normal_stop): Remove stop_registers handling.
3023         * infrun.h (stop_registers): Remove.
3024
3025 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3026
3027         * infcall.c (struct dummy_frame_context_saver)
3028         (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
3029         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
3030         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
3031         New.
3032         (call_function_by_hand_dummy): Move discard_cleanups of
3033         inf_status_cleanup before dummy_frame_push.  Call
3034         dummy_frame_context_saver_setup and prepare context_saver_cleanup.
3035         Use dummy_frame_context_saver_get_regs instead of stop_registers.
3036         * infcall.h (struct dummy_frame_context_saver)
3037         (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
3038         (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
3039         New declarations.
3040         * infcmd.c: Include infcall.h.
3041         (get_return_value): Add parameter ctx_saver, use it instead of
3042         stop_registers.
3043         (print_return_value): Add parameter ctx_saver, pass it.
3044         (struct finish_command_continuation_args): Add field ctx_saver.
3045         (finish_command_continuation): Update print_return_value caller.
3046         (finish_command_continuation_free_arg): Free also ctx_saver.
3047         (finish_forward): Call dummy_frame_context_saver_setup.
3048         * inferior.h (struct dummy_frame_context_saver): New declaration.
3049         (get_return_value): Add parameter ctx_saver.
3050         * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
3051         get_return_value caller.
3052
3053 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3054
3055         * dummy-frame.c (struct dummy_frame_dtor_list): New.
3056         (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
3057         (remove_dummy_frame): Process dtor_list.
3058         (pop_dummy_frame): Process dtor_list.
3059         (register_dummy_frame_dtor): Maintain dtor_list.
3060         (find_dummy_frame_dtor): Handle dtor_list.
3061         * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
3062         Update comments.
3063
3064 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3065
3066         * compile/compile-object-run.c (do_module_cleanup): Add parameter
3067         registers_valid.
3068         (compile_object_run): Update do_module_cleanup caller.
3069         * dummy-frame.c: Include infcall.h.
3070         (struct dummy_frame): Update dtor comment.
3071         (remove_dummy_frame): Call dtor.
3072         (pop_dummy_frame): Update dtor caller.
3073         * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
3074         registers_valid.
3075
3076 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
3077
3078         GDB 7.9.1 released.
3079
3080 2015-05-13  Joel Brobecker  <brobecker@adacore.com>
3081
3082         * NEWS: Create "Changes in GDB 7.9.1" section.  Move news about
3083         Xmethods now being able to specify a result type to that new
3084         sectioin.
3085
3086 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
3087
3088         * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
3089         first before resizing the window.
3090         * tui/tui.c (tui_enable): Likewise.
3091
3092 2015-05-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
3093
3094         * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
3095         * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
3096         * infcall.c (call_function_by_hand_dummy): Use proper typedef for
3097         dummy_dtor parameter.
3098         * infcall.h: Include dummy-frame.h.
3099         (call_function_by_hand_dummy_dtor_ftype): Remove.
3100         (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
3101         parameter.
3102
3103 2015-05-13  Patrick Palka  <patrick@parcs.ath.cx>
3104
3105         PR gdb/17820
3106         * top.c (history_size_setshow_var): Change type to signed.
3107         Initialize to -2.  Update documentation.
3108         (set_readline_history_size): Define.
3109         (set_history_size_command): Use it.  Remove logic for handling
3110         out-of-range sizes.
3111         (init_history): Use set_readline_history_size().  Test for a
3112         value of -2 instead of 0 when determining whether to set a
3113         default history size.
3114         (init_main): Decode the argument of the "size" command as a
3115         zuinteger_unlimited.
3116
3117 2015-05-12  Doug Evans  <dje@google.com>
3118
3119         * dwarf2read.c (struct file_entry): Tweak comments.
3120         (get_debug_line_section): Tweak comments.
3121
3122 2015-05-12  Don Breazeal  <donb@codesourcery.com>
3123
3124         * NEWS: Announce fork support in the RSP and support
3125         for fork debugging in extended mode.
3126
3127 2015-05-12  Don Breazeal  <donb@codesourcery.com>
3128
3129         * remote.c (remote_insert_fork_catchpoint): New function.
3130         (remote_remove_fork_catchpoint): New function.
3131         (remote_insert_vfork_catchpoint): New function.
3132         (remote_remove_vfork_catchpoint): New function.
3133         (pending_fork_parent_callback): New function.
3134         (remove_new_fork_child): New function.
3135         (remote_update_thread_list): Call remote_notif_get_pending_events
3136         and remove_new_fork_child.
3137         (extended_remote_kill): Kill fork child when killing the
3138         parent before follow_fork completes.
3139         (init_extended_remote_ops): Initialize target vector with
3140         new fork catchpoint functions.
3141
3142 2015-05-12  Don Breazeal  <donb@codesourcery.com>
3143
3144         * remote.c (remove_vfork_event_p): New function.
3145         (remote_follow_fork): Add vfork event type to event checking.
3146         (remote_parse_stop_reply): New stop reasons "vfork" and
3147         "vforkdone" for RSP 'T' Stop Reply Packet.
3148
3149 2015-05-12  Don Breazeal  <donb@codesourcery.com>
3150
3151         * linux-nat.c (linux_nat_ptrace_options): New function.
3152         (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
3153         Call linux_nat_ptrace_options and use different argument to
3154         linux_enable_event_reporting.
3155         (_initialize_linux_nat): Delete call to
3156         linux_ptrace_set_additional_flags.
3157         * nat/linux-ptrace.c (current_ptrace_options): Rename to
3158         supported_ptrace_options.
3159         (additional_flags): Delete variable.
3160         (linux_check_ptrace_features): Use supported_ptrace_options.
3161         (linux_test_for_tracesysgood, linux_test_for_tracefork):
3162         Likewise, and remove additional_flags check.
3163         (linux_enable_event_reporting): Change 'attached' argument to
3164         'options'.  Use supported_ptrace_options.
3165         (ptrace_supports_feature): Change comment.  Use
3166         supported_ptrace_options.
3167         (linux_ptrace_set_additional_flags): Delete function.
3168         * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
3169         Delete function prototype.
3170         * remote.c (remote_fork_event_p): New function.
3171         (remote_detach_pid): New function.
3172         (remote_detach_1): Call remote_detach_pid, don't mourn inferior
3173         if doing detach-on-fork.
3174         (remote_follow_fork): New function.
3175         (remote_parse_stop_reply): Handle new "T" stop reason "fork".
3176         (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
3177         (init_extended_remote_ops): Initialize to_follow_fork.
3178
3179 2015-05-12  Don Breazeal  <donb@codesourcery.com>
3180
3181         * nat/linux-ptrace.c (linux_check_ptrace_features): Change
3182         from static to extern.
3183         * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
3184         * remote.c (anonymous enum): <PACKET_fork_event_feature,
3185         * PACKET_vfork_event_feature>: New enumeration constants.
3186         (remote_protocol_features): Add table entries for new packets.
3187         (remote_query_supported): Add new feature queries to qSupported
3188         packet.
3189
3190 2015-05-12  Gary Benson <gbenson@redhat.com>
3191
3192         * remote.c (remote_add_inferior): Call exec_file_locate_attach
3193         for fake PIDs as well as real ones.
3194         (remote_pid_to_exec_file): Send empty annex if PID is fake.
3195
3196 2015-05-09  Siva Chandra Reddy  <sivachandra@google.com>
3197
3198         * NEWS (Python Scripting): Mention the new gdb.Value methods.
3199         * python/py-value.c (valpy_reference_value): New function.
3200         (valpy_const_value): Likewise.
3201         (value_object_methods): Add new methods.
3202         * value.c (make_cv_value): New function.
3203         * value.h (make_cv_value): Declare.
3204
3205 2015-05-08  Yao Qi  <yao@codesourcery.com>
3206             Sandra Loosemore  <sandra@codesourcery.com>
3207
3208         * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
3209         to 'lh->include_dirs' before accessing to it.
3210         (psymtab_include_file_name): Likewise.
3211         (dwarf_decode_lines_1): Likewise.
3212         (dwarf_decode_lines): Likewise.
3213         (file_file_name): Likewise.
3214
3215 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
3216
3217         * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
3218         (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
3219         (nios2_linux_rt_sigreturn_init): Adjust base address of
3220         register save area.
3221
3222 2015-05-08  Sandra Loosemore  <sandra@codesourcery.com>
3223
3224         * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
3225         "trap 31" as the breakpoint instruction on all targets.
3226
3227 2015-05-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
3228
3229         * infcmd.c (print_return_value): Remove unused declaration.
3230
3231 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
3232
3233         * dwarf2read.c (attr_to_dynamic_prop)
3234         <DW_AT_data_member_location>: Use read_type_die isntead of
3235         get_die_type.
3236
3237 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
3238
3239         * ada-lang.c (ada_convert_actual): Add handling of formals
3240         passed inside an aligner type.
3241
3242 2015-05-08  Joel Brobecker  <brobecker@adacore.com>
3243
3244         * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
3245
3246 2015-05-08  Siva Chandra Reddy  <sivachandra@google.com>
3247
3248         PR python/18291
3249         * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
3250         Print xmethod matcher status.
3251
3252 2015-05-08  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3253
3254         * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
3255         register in the regcache when treating the PSWM register, and vice
3256         versa.
3257
3258 2015-05-07  Gary Benson <gbenson@redhat.com>
3259
3260         * linux-thread-db.c (struct thread_db_info)
3261         <td_ta_map_id2thr_p>: Remove field.
3262         (try_thread_db_load_1): Remove initialization for the above.
3263
3264 2015-05-07  Gary Benson <gbenson@redhat.com>
3265
3266         * linux-thread-db.c (struct thread_db_info)
3267         <td_thr_validate_p>: Remove field.
3268         (try_thread_db_load_1): Remove initialization for the above.
3269
3270 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3271
3272         * compile/compile-object-load.c (compile_object_load): Support
3273         mst_text_gnu_ifunc.
3274
3275 2015-05-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
3276
3277         * compile/compile.c (compile_to_object): Make the cmd_string parameter
3278         const.  Use new variables for the const compatibility.
3279         (eval_compile_command): Make the cmd_string parameter const.
3280         * compile/compile.h (eval_compile_command): Make the cmd_string
3281         parameter const.
3282
3283 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
3284
3285         * defs.h (deprecated_init_ui_hook): Delete.  Remove associated
3286         comment.
3287         * top.c (deprecated_init_ui_hook): Delete.
3288         (gdb_init): Remove handling of deprecated_init_ui_hook.
3289         * interps.c (clear_interpreter_hooks): Remove handling of
3290         deprecated_init_ui_hook.
3291         * main.c (captured_main): Update comment.
3292
3293 2015-05-06  Joel Brobecker  <brobecker@adacore.com>
3294
3295         * solib.c (_initialize_solib): Add "info dll" alias creation.
3296         * windows-nat.c (set_windows_aliases): Delete.
3297         (_initialize_windows_nat): Remove deprecated_init_ui_hook
3298         assignment.
3299         * NEWS: Add news entry about "info dll" now being available
3300         on all platforms.
3301
3302 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
3303
3304         * ada-lang.c (value_assign_to_component): Reformat and improve
3305         documentation. Remove all trailing spaces.
3306
3307 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
3308
3309         * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
3310         Stop counting inlined frames as soon as an out-of-line function
3311         is found.
3312
3313 2014-05-05  Pierre-Marie de Rodat  <derodat@adacore.com>
3314
3315         * dwarf2read.c (inherit_abstract_dies): Skip
3316         DW_TAG_GNU_call_site dies while inheriting children of an
3317         abstract DIE into a scope.
3318         (read_lexical_block_scope): Inherit abstract DIE's for
3319         lexical scopes.
3320
3321 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
3322
3323         * ada-valprint.c (val_print_packed_array_elements): Delete
3324         variable "len".  Add a type-length check when comparing two
3325         consecutive elements of the array.  Use the element's actual
3326         length in call to value_contents_eq.
3327         * ada-lang.c (ada_value_primitive_packed_val): Always return
3328         a value whose type has been resolved.
3329
3330 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
3331
3332         * ada-lang.c (ada_value_primitive_packed_val): Recompute
3333         BIT_SIZE and LEN if the size of the resolved type is smaller
3334         than BIT_SIZE * HOST_CHAR_BIT.
3335
3336 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
3337
3338         * ada-lang.c (ada_value_primitive_packed_val): Use a more
3339         correct address in call to value_at.  Adjust call to
3340         value_address accordingly.
3341
3342 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
3343
3344         * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
3345         to print it.
3346
3347 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
3348
3349         * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
3350         * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
3351         pinfo->valaddr.
3352         * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
3353         * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
3354         (resolve_dynamic_type_internal): Set pinfo.valaddr.
3355         Add handling of addr_stack->valaddr.
3356         (resolve_dynamic_type): Add "valaddr" parameter.
3357         Set pinfo.valaddr field.
3358         * ada-lang.c (ada_discrete_type_high_bound): Update call to
3359         resolve_dynamic_type.
3360         (ada_discrete_type_low_bound): Likewise.
3361         * findvar.c (default_read_var_value): Likewise.
3362         * value.c (value_from_contents_and_address): Likewise.
3363
3364 2015-05-05  Joel Brobecker  <brobecker@adacore.com>
3365
3366         * gdbtypes.c (resolve_dynamic_array): Use
3367         create_array_type_with_stride instead of create_array_type.
3368
3369 2015-04-30  DJ Delorie  <dj@redhat.com>
3370
3371         * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
3372         rl78_decode_opcode
3373
3374 2015-04-29  Doug Evans  <dje@google.com>
3375
3376         PR python/18285
3377         * NEWS: Document new gdb.XMethodWorker.get_result_type method.
3378         * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
3379         EVAL_AVOID_SIDE_EFFECTS for xmethods.
3380         * extension-priv.h (struct extension_language_ops)
3381         <get_xmethod_result_type>: New member.
3382         * extension.c (get_xmethod_result_type): New function.
3383         * extension.h (get_xmethod_result_type): Declare.
3384         * python/py-xmethods.c (get_result_type_method_name): New static
3385         global.
3386         (py_get_result_type_method_name): Ditto.
3387         (gdbpy_get_xmethod_result_type): New function.
3388         (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
3389         * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
3390         * python/python.c (python_extension_ops): Add
3391         gdbpy_get_xmethod_result_type.
3392         * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
3393         * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
3394         xmethods.
3395         (value_x_unop): Ditto.
3396         * value.c (result_type_of_xmethod): New function.
3397         * value.h (result_type_of_xmethod): Declare.
3398
3399 2015-04-29  Gary Benson <gbenson@redhat.com>
3400
3401         * solib.c (solib_find_1): Allow fd argument to be NULL.
3402         (exec_file_find): Update comment.
3403         (solib_find): Likewise.
3404         * exec.c (exec_file_locate_attach): Use NULL as fd
3405         argument to exec_file_find to avoid having to close
3406         the opened file.
3407         * infrun.c (follow_exec): Likewise.
3408
3409 2015-04-28  Doug Evans  <dje@google.com>
3410
3411         PR python/18299
3412         * python/lib/gdb/printing.py (register_pretty_printer): Handle
3413         name or __name__ attributes.  Handle gdb module as first argument.
3414
3415 2015-04-28  Doug Evans  <dje@google.com>
3416
3417         PR python/18089
3418         * python/py-prettyprint.c (print_children): Verify result of children
3419         iterator.  Provide better error message.
3420         * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
3421         * python/python.c (gdbpy_print_python_errors_p): New function.
3422
3423 2015-04-28  Doug Evans  <dje@google.com>
3424
3425         * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
3426
3427 2015-04-28  Sasha Smundak  <asmundak@google.com>
3428
3429         * NEWS: Mention gdb.Type.optimized_out method.
3430         * python/py-type.c (typy_optimized_out):  New function.
3431
3432 2015-04-28  John Baldwin  <jhb@FreeBSD.org>
3433
3434         * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3435
3436 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
3437
3438         * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
3439         (initialize_utils): Move call of init_page_info() to ...
3440         * top.c (gdb_init): ... here.
3441
3442 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
3443
3444         * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
3445         (tui_sigwinch_handler): Still update our idea of
3446         the terminal's width and height even when TUI is not active.
3447
3448 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
3449
3450         * utils.h (set_screen_width_and_height): Declare.
3451         * utils.c (set_screen_width_and_height): Define.
3452         * tui/tui-win.c (tui_update_gdb_sizes): Use it.
3453
3454 2015-04-28  Gary Benson <gbenson@redhat.com>
3455
3456         * infrun.c (solist.h): New include.
3457         (follow_exec): Use exec_file_find to prefix execd_pathname
3458         with gdb_sysroot.
3459
3460 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
3461
3462         * tui/tui-source.c (tui_set_source_content): Avoid calling
3463         strcpy() when offset is 0.
3464
3465 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
3466
3467         PR gdb/18155
3468         * tui/tui-data.c (tui_free_window): Don't free the locator
3469         window when passed an SRC_WIN or a DISASSEM_WIN.
3470
3471 2015-04-28  Patrick Palka  <patrick@parcs.ath.cx>
3472
3473         * tui/tui-data.h (struct tui_win_element): Forward-declare.
3474         (tui_win_content): Move declaration.
3475         (struct tui_gen_win_info): Give 'content' field the
3476         type tui_win_content.
3477         * tui/tui-data.c (init_content_element): Remove redundant and
3478         erroneous casts.
3479         (tui_add_content_elements): Remove erroneous cast.
3480         * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
3481         casts.
3482         (tui_get_begin_asm_address): Likewise.
3483         * tui/tui-regs.c (tui_show_registers): Likewise.
3484         (tui_show_register_group): Likewise.
3485         (tui_display_registers_from): Likewise.
3486         (tui_check_register_values): Likewise.
3487         * tui/tui-source.c (tui_set_source_content): Likewise.
3488         (tui_set_source_content_nil): Likewise.
3489         (tui_source_is_displayed): Likewise.
3490         * tui/tui-stack.c (tui_show_locator_content): Likewise.
3491         (tui_set_locator_fullname): Likewise.
3492         (tui_set_locator_info): Likewise.
3493         (tui_show_frame_info): Likewise.
3494         * tui/tui-winsource.c (tui_clear_source_content): Likewise.
3495         (tui_show_source_line): Likewise.
3496         (tui_horizontal_source_scroll): Likewise.
3497         (tui_update_breakpoint_info): Likewise.
3498         (tui_set_exec_info_content): Likewise.
3499         (tui_show_exec_info_content): Likewise.
3500         (tui_alloc_source_buffer): Likewise.
3501         (tui_line_is_displayed): Likewise.
3502         (tui_addr_is_displayed): Likewise.
3503
3504 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
3505
3506         * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
3507         event if PL_FLAG_EXEC is set.
3508         [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
3509         [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
3510         (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
3511         "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
3512         Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
3513
3514 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
3515
3516         * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
3517         [TDP_RFPPWAIT] New variable fbsd_pending_children.
3518         [TDP_RFPPWAIT] (fbsd_remember_child): New function.
3519         [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
3520         [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
3521         [PT_LWPINFO] (fbsd_wait): New function.
3522         [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
3523         [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
3524         [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
3525         [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
3526         [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
3527         [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
3528         [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
3529         [TDP_RFPPWAIT] (fbsd_post_attach): New function.
3530         (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
3531         "fbsd_wait".
3532         [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
3533         Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
3534         Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
3535         Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
3536         Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
3537         Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
3538         Set "to_post_attach" to "fbsd_post_attach".
3539
3540 2015-04-27  John Baldwin  <jhb@FreeBSD.org>
3541
3542         * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
3543         (fbsd_find_memory_regions): Mark static.
3544         (fbsd_nat_add_target): New function.
3545         * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
3546         fbsd_pid_to_exec_file and fbsd_find_memory_regions.
3547         * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
3548         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
3549         * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
3550         * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
3551
3552 2015-04-27  Gary Benson <gbenson@redhat.com>
3553
3554         * objfiles.c (allocate_objfile): Do not attempt to expand name
3555         if name is a "target:" filename.
3556         * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
3557         to load auto-load scripts for objfiles with "target:" filenames.
3558
3559 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3560
3561         * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
3562         (enum s390_vector_abi_kind): New enum.
3563         (struct gdbarch_tdep)<vector_abi>: New field.
3564         (s390_effective_inner_type): Add parameter min_size.  Stop
3565         unwrapping if the inner type is smaller than min_size.
3566         (s390_function_arg_float): Adjust call to
3567         s390_effective_inner_type.
3568         (s390_function_arg_vector): New function.
3569         (s390_function_arg_integer): Adjust comment.
3570         (struct s390_arg_state)<vr>: New field.
3571         (s390_handle_arg): Add parameter 'is_unnamed'.  Pass vector
3572         arguments according to vector ABI when appropriate.
3573         (s390_push_dummy_call): Initialize the argument state's field
3574         'vr'.  Adjust calls to s390_handle_arg.
3575         (s390_register_return_value): Handle vector return values.
3576         (s390_return_value): Apply the "register" return value convention
3577         to a vector when appropriate.
3578         (s390_gdbarch_init): Initialize tdep->vector_abi.
3579         * NEWS: Announce S390 vector ABI support.
3580
3581 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3582
3583         * s390-linux-tdep.c (s390_return_value_convention): Remove
3584         function.  Inline its logic...
3585         (s390_return_value): ...here.  Instead, move the handling of the
3586         "register" return value convention...
3587         (s390_register_return_value): ...here.  New function.
3588
3589 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3590
3591         * s390-linux-tdep.c
3592         (is_float_singleton): Remove function.  Move the "singleton" part
3593         of the logic...
3594         (s390_effective_inner_type): ...here.  New function.
3595         (is_float_like): Remove function.  Inline its logic...
3596         (s390_function_arg_float): ...here.
3597         (is_pointer_like, is_integer_like, is_struct_like): Remove
3598         functions.  Inline their logic...
3599         (s390_function_arg_integer): ...here.
3600         (s390_function_arg_pass_by_reference): Remove function.
3601         (extend_simple_arg): Remove function.
3602         (alignment_of): Remove function.
3603         (struct s390_arg_state): New structure.
3604         (s390_handle_arg): New function.
3605         (s390_push_dummy_call): Move parameter placement logic to the new
3606         function s390_handle_arg.  Call it for calculating the stack area
3607         sizes first, and again for actually writing the parameters.
3608
3609 2015-04-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3610
3611         * s390-linux-tdep.c (is_power_of_two): Add comment.  Return
3612           false if the argument is zero.
3613
3614 2015-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
3615
3616         * ada-lang.c (template_to_static_fixed_type): Return input type
3617         when it is already fixed.  Cache the input type itself when not
3618         creating a static fixed copy.  Make it explicit that we never
3619         molestate the input type.
3620         * gdbtypes.c (resolve_dynamic_struct): Reset the
3621         TYPE_TARGET_TYPE field for resolved copies.
3622
3623 2015-04-27  Joel Brobecker  <brobecker@adacore.com>
3624
3625         * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
3626         (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
3627         (template_to_static_fixed_type): Call ada_check_typedef only
3628         when necessary.
3629
3630 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
3631
3632         * cli/cli-dump.c (srec_dump_command): Add internationalization
3633         mark ups.
3634         (ihex_dump_command): Likewise.
3635         (tekhex_dump_command): Likewise.
3636         (binary_dump_command): Likewise.
3637         (binary_append_command): Likewise.
3638
3639 2015-04-24  Andrew Burgess  <andrew.burgess@embecosm.com>
3640
3641         * cli/cli-dump.c (verilog_cmdlist): New variable.
3642         (dump_verilog_memory): New function.
3643         (dump_verilog_value): New function.
3644         (verilog_dump_command): New function.
3645         (_initialize_cli_dump): Add new commands to support verilog dump
3646         format.
3647         * NEWS: Add entry for "dump verilog".
3648
3649 2015-04-24  Pierre-Marie de Rodat  <derodat@adacore.com>
3650
3651         * gdbtypes.c (print_gnat_stuff): Do not recurse on the
3652         descriptive type when there is none.
3653
3654 2015-04-23  Patrick Palka  <patrick@parcs.ath.cx>
3655
3656         * tui/tui-win.c (tui_async_resize_screen): Call
3657         rl_resize_terminal().
3658
3659 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
3660
3661         * windows-nat.c (handle_output_debug_string): Don't change
3662         current_event.dwThreadId.
3663         (get_windows_debug_event): Use thread_id, rather than relying on
3664         current_event.dwThreadId being changed.
3665
3666 2015-04-22  Jon Turney  <jon.turney@dronecode.org.uk>
3667
3668         * windows-nat.c (windows_continue): Report an error if
3669         ContinueDebugEvent() fails.
3670
3671 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
3672
3673         * windows-nat.c (windows_resume): Fix misspelling in debug output.
3674
3675 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
3676
3677         * windows-nat.c (get_windows_debug_event): Replace retval with
3678         thread_id throughout.  Update stale comment.
3679
3680 2015-04-16  Jon Turney  <jon.turney@dronecode.org.uk>
3681
3682         * windows-nat.c (get_windows_debug_event): Don't use ternary
3683         conditional operator.
3684
3685 2015-04-21  Pierre Muller  <muller@sourceware.org>
3686
3687         PR pascal/17815
3688         p-exp.y (yylex): Reorganize code to return the matched pattern
3689         for a field of this.
3690
3691 2015-04-21  Gary Benson <gbenson@redhat.com>
3692
3693         * common/fileio.h (fileio_to_host_openflags): New declaration.
3694         * common/fileio.c (fcntl.h): New include.
3695         (fileio_to_host_openflags): New function, factored out from...
3696         * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
3697         Single use updated.
3698
3699 2015-04-21  Kevin Buettner  <kevinb@redhat.com>
3700
3701         * rl78-tdep.c (RL78_SP_ADDR): Define.
3702         (opc_reg_to_gdb_regnum): New static function.
3703         (rl78_analyze_prologue): Recognize instructions forming slightly
3704         more interesting prologues.
3705
3706 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3707
3708         Revert:
3709         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3710         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
3711         TYPE_CODE_REF types so that they are not considered as dynamic
3712         depending on the referenced type.
3713         (resolve_dynamic_type_internal): Likewise.
3714
3715 2015-04-20  Pierre-Marie de Rodat  <derodat@adacore.com>
3716
3717         Revert:
3718         2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
3719         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
3720         "top_level" parameter.
3721         (resolve_dynamic_type_internal): Remove the unused "top_level"
3722         parameter.  Update call to is_dynamic_type_internal.
3723         (is_dynamic_type): Update call to is_dynamic_type_internal.
3724         (resolve_dynamic_range): Update call to
3725         resolve_dynamic_type_internal.
3726         (resolve_dynamic_union): Likewise.
3727         (resolve_dynamic_struct): Likewise.
3728         (resolve_dynamic_type): Likewise.
3729
3730 2015-04-19  Gabriel Krisman Bertazi  <gabriel@krisman.be>
3731
3732         * breakpoint.c (update_dprintf_command_list): Remove duplicated
3733         xmalloc.
3734
3735 2015-04-20  Thomas Schwinge  <thomas@codesourcery.com>
3736
3737         * reply_mig_hack.awk: Robustify parsing.
3738
3739         * reply_mig_hack.awk: Don't bother to declare an intermediate
3740         function pointer variable.
3741
3742 2015-04-17  Doug Evans  <dje@google.com>
3743
3744         * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
3745         to "exec_displacement" to avoid confusion with inner use of the name.
3746
3747 2015-04-17  Pedro Alves  <palves@redhat.com>
3748
3749         * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
3750         if HW point of TYPE isn't supported.
3751
3752 2015-04-17  Yao Qi  <yao.qi@linaro.org>
3753             Pedro Alves  <palves@redhat.com>
3754
3755         * target.h (target_can_use_hardware_watchpoint): Update comments.
3756         Remove trailing ";".
3757
3758 2015-04-17  Gary Benson <gbenson@redhat.com>
3759
3760         * remote.c (remote_add_inferior): New argument try_open_exec.
3761         If nonzero, attempt to open the inferior's executable file as
3762         the main executable if no main executable is open already.
3763         All callers updated.
3764         * NEWS: Mention that GDB now supports automatic location and
3765         retrieval of executable + files from remote targets.
3766
3767 2015-04-17  Gary Benson <gbenson@redhat.com>
3768
3769         * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
3770         * remote.c (PACKET_qXfer_exec_file): Likewise.
3771         (remote_protocol_features): Register the
3772         "qXfer:exec-file:read" feature.
3773         (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
3774         (remote_pid_to_exec_file): New function.
3775         (init_remote_ops): Initialize to_pid_to_exec_file.
3776         (_initialize_remote): Register new "set/show remote
3777         pid-to-exec-file-packet" command.
3778         * NEWS: Announce new qXfer:exec-file:read packet.
3779
3780 2015-04-17  Gary Benson <gbenson@redhat.com>
3781
3782         * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
3783         New declaration.
3784         * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
3785         New function, factored out from...
3786         * linux-nat.c (linux_child_pid_to_exec_file): ...here.
3787
3788 2015-04-17  Gary Benson <gbenson@redhat.com>
3789
3790         * exec.c (solist.h): New include.
3791         (exec_file_locate_attach): Prefix absolute executable
3792         paths with gdb_sysroot if set.
3793         * NEWS: Mention that executable paths may be prepended
3794         with sysroot.
3795
3796 2015-04-17  Gary Benson <gbenson@redhat.com>
3797
3798         * solist.h (exec_file_find): New declaration.
3799         * solib.c (solib_find_1): New function, factored out from...
3800         (solib_find): ...here.
3801         (exec_file_find): New function.
3802
3803 2015-04-17  Gary Benson <gbenson@redhat.com>
3804
3805         * gdbcore.h (exec_file_locate_attach): New declaration.
3806         * exec.c (exec_file_locate_attach): New function, factored
3807         out from...
3808         * infcmd.c (attach_command_post_wait): ...here.
3809
3810 2015-04-17  Mike Frysinger  <vapier@gentoo.org>
3811
3812         * MAINTAINERS: Add myself for Blackfin/write-after-approval.
3813
3814 2015-04-16  Yao Qi  <yao.qi@linaro.org>
3815
3816         * infrun.c (maybe_software_singlestep): Declare.
3817         (displaced_step_fixup): Call maybe_software_singlestep.
3818
3819 2015-04-15  Doug Evans  <dje@google.com>
3820
3821         * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
3822
3823 2015-04-15  Doug Evans  <dje@google.com>
3824
3825         * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
3826
3827 2015-04-15  Simon Marchi  <simon.marchi@ericsson.com>
3828
3829         * python/lib/gdb/command/unwinders.py: Add parentheses.
3830
3831 2015-04-15  Yao Qi  <yao.qi@linaro.org>
3832
3833         * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
3834
3835 2015-04-15  Yao Qi  <yao.qi@linaro.org>
3836
3837         * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
3838
3839 2015-04-15  Yao Qi  <yao.qi@linaro.org>
3840
3841         * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
3842         dsc->insn_size instead of 4.
3843
3844 2015-04-14  Gary Benson <gbenson@redhat.com>
3845
3846         * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
3847         * minidebug.c (lzma_stat): Likewise.
3848         * solib-spu.c (spu_bfd_iovec_stat): Likewise.
3849         * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
3850
3851 2015-04-13  Stan Shebs  <stanshebs@google.com>
3852
3853         * MAINTAINERS: Update my email address.
3854
3855 2015-04-13  John Baldwin  <jhb@FreeBSD.org>
3856
3857         * amd64-tdep.c (amd64_target_description): New function.
3858         * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
3859         * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
3860         (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
3861         x86 extended save area.
3862         (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
3863         * amd64bsd-nat.h: Export amd64bsd_xsave_len.
3864         * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
3865         (_initialize_amd64fbsd_nat): Set "to_read_description" to
3866         "amd64fbsd_read_description".
3867         * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
3868         (amd64fbsd_supply_xstateregset): New function.
3869         (amd64fbsd_collect_xstateregset): New function.
3870         Add "amd64fbsd_xstateregset".
3871         (amd64fbsd_iterate_over_regset_sections): New function.
3872         (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
3873         "I386_FBSD_XSAVE_XCR0_OFFSET".
3874         Add "iterate_over_regset_sections" gdbarch method.
3875         Add "core_read_description" gdbarch method.
3876         * i386-tdep.c (i386_target_description): New function.
3877         * i386-tdep.h: Export i386_target_description and tdesc_i386.
3878         * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
3879         (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
3880         x86 extended save area.
3881         (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
3882         * i386bsd-nat.h: Export i386bsd_xsave_len.
3883         * i386fbsd-nat.c (i386fbsd_read_description): New function.
3884         (_initialize_i386fbsd_nat): Set "to_read_description" to
3885         "i386fbsd_read_description".
3886         * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
3887         (i386fbsd_core_read_description): New function.
3888         (i386fbsd_supply_xstateregset): New function.
3889         (i386fbsd_collect_xstateregset): New function.
3890         Add "i386fbsd_xstateregset".
3891         (i386fbsd_iterate_over_regset_sections): New function.
3892         (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
3893         "I386_FBSD_XSAVE_XCR0_OFFSET".
3894         Add "iterate_over_regset_sections" gdbarch method.
3895         Add "core_read_description" gdbarch method.
3896         * i386fbsd-tdep.h: New file.
3897
3898 2015-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
3899
3900         * NEWS (Changes since GDB 7.9): Add removed -xdb.
3901         * breakpoint.c (command_line_is_silent): Remove xdb_commands
3902         conditional.
3903         (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
3904         and lb.
3905         * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
3906         va.
3907         * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
3908         conditional.
3909         * defs.h (xdb_commands): Remove declaration.
3910         * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
3911         * guile/scm-cmd.c (command_classes): Remove xdb from comment.
3912         * infcmd.c (run_no_args_command, go_command): Remove.
3913         (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
3914         * infrun.c (xdb_handle_command): Remove.
3915         (_initialize_infrun): Remove xdb_commands for lz and z.
3916         * main.c (xdb_commands): Remove variable.
3917         (captured_main): Remove "xdb" from long_options.
3918         (print_gdb_help): Remove --xdb from help.
3919         * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
3920         * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
3921         * stack.c (backtrace_full_command, args_plus_locals_info)
3922         (current_frame_command): Remove.
3923         (_initialize_stack): Remove xdb_commands for t, T and l.
3924         * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
3925         * thread.c (_initialize_thread): Remove xdb_commands condition.
3926         * tui/tui-layout.c (tui_toggle_layout_command)
3927         (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
3928         (_initialize_tui_layout): Remove xdb_commands for td and ts.
3929         * tui/tui-regs.c (tui_scroll_regs_forward_command)
3930         (tui_scroll_regs_backward_command): Remove.
3931         (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
3932         * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
3933         (_initialize_tui_win): Remove xdb_commands for U and w.
3934         * utils.c (pagination_on_command, pagination_off_command): Remove.
3935         (initialize_utils): Remove xdb_commands for am and sm.
3936
3937 2015-04-10  Pedro Alves  <palves@redhat.com>
3938
3939         * infrun.c (displaced_step_fixup): Switch to the event ptid
3940         earlier.  If the thread stopped for a watchpoint and the
3941         target/arch has non-continuable watchpoints, cancel the displaced
3942         step.
3943         (resume): Don't start a displaced step if in-line step-over info
3944         is valid.
3945
3946 2015-04-10  Pedro Alves  <palves@redhat.com>
3947
3948         * infrun.c (displaced_step_in_progress): New function.
3949         (do_target_resume): Advise target to report all signals if
3950         displaced stepping.
3951
3952 2015-04-10  Pedro Alves  <palves@redhat.com>
3953
3954         PR gdb/18216
3955         * infrun.c (process_event_stop_test): Don't assume a step-resume
3956         is set if tp->stepped_breakpoint is true.
3957
3958 2015-04-10  Yao Qi  <yao.qi@linaro.org>
3959
3960         * arm-tdep.c (install_alu_reg): Update comment.
3961         (thumb_copy_alu_reg): Remove local variable rn.  Update
3962         debugging message.  Use r2 instead of r1 in the modified
3963         instruction.
3964
3965 2015-04-10  Pedro Alves  <palves@redhat.com>
3966
3967         PR gdb/13858
3968         * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
3969         linux_displaced_step_location as gdbarch_displaced_step_location
3970         hook.
3971         * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
3972         * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3973         * linux-tdep.c (linux_displaced_step_location): New function,
3974         based on ppc_linux_displaced_step_location.
3975         * linux-tdep.h (linux_displaced_step_location): New declaration.
3976         * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
3977         (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
3978         Delete.
3979         (ppc_linux_init_abi): Install linux_displaced_step_location as
3980         gdbarch_displaced_step_location hook, even without Cell/B.E..
3981         (_initialize_ppc_linux_tdep): Don't install
3982         ppc_linux_inferior_created as inferior_created observer.
3983         * s390-linux-tdep.c (s390_gdbarch_init): Install
3984         linux_displaced_step_location as gdbarch_displaced_step_location
3985         hook.
3986
3987 2015-04-09  Gary Benson <gbenson@redhat.com>
3988
3989         * common/common-remote-fileio.h: Rename to...
3990         * common/fileio.h: ...this.  Update all references.
3991         (remote_fileio_to_fio_error): Rename to...
3992         (host_to_fileio_error): ...this.
3993         (remote_fileio_to_be): Rename to...
3994         (host_to_bigendian): ...this.  Update all callers.
3995         (remote_fileio_to_fio_uint): Rename to...
3996         (host_to_fileio_uint): ...this.  Update all callers.
3997         (remote_fileio_to_fio_time): Rename to...
3998         (host_to_fileio_time): ...this.  Update all callers.
3999         (remote_fileio_to_fio_stat): Rename to...
4000         (host_to_fileio_stat): ...this.
4001         Update all references.
4002         * common/common-remote-fileio.c: Rename to...
4003         * common/fileio.c: ...this.  Update all references.
4004         (remote_fileio_to_fio_error): Rename to...
4005         (host_to_fileio_error): ...this.  Update all callers.
4006         (remote_fileio_mode_to_target): Rename to...
4007         (fileio_mode_pack): ...this.  Update all callers.
4008         (remote_fileio_to_fio_mode): Rename to...
4009         (host_to_fileio_mode): ...this.  Update all callers.
4010         (remote_fileio_to_fio_ulong): Rename to...
4011         (host_to_fileio_ulong): ...this.  Update all callers.
4012         (remote_fileio_to_fio_stat): Rename to...
4013         (host_to_fileio_stat): ...this.  Update all callers.
4014
4015 2015-04-09  Andy Wingo  <wingo@igalia.com>
4016
4017         * guile/scm-frame.c (gdbscm_frame_read_register): New function.
4018         (frame_functions): Bind gdbscm_frame_read_register to
4019         frame-read-register.
4020         * guile/lib/gdb.scm (frame-read-register): Export.
4021
4022 2015-04-09  Gary Benson <gbenson@redhat.com>
4023
4024         * common/common-remote-fileio.h (remote_fileio_to_fio_error):
4025         New declaration.
4026         * common/common-remote-fileio.c (remote_fileio_to_fio_error):
4027         New function, factored out the named functions below.
4028         * inf-child.c (gdb/fileio.h): Remove include.
4029         (common-remote-fileio.h): New include.
4030         (inf_child_errno_to_fileio_error): Remove function.  Update
4031         all callers to use remote_fileio_to_fio_error.
4032         * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
4033
4034 2015-04-09  Andy Wingo  <wingo@igalia.com>
4035
4036         * MAINTAINERS (Write After Approval): Add Andy Wingo.
4037
4038 2015-04-09  H.J. Lu  <hongjiu.lu@intel.com>
4039
4040         * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
4041         Replace $zlibdir with $ZLIBDIR in LDFLAGS.
4042         * configure: Regenerated.
4043
4044 2015-04-09  Pedro Alves  <palves@redhat.com>
4045
4046         * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
4047         * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
4048         * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
4049         * gnulib/import/Makefile.am: Update.
4050         * gnulib/import/Makefile.in: Update.
4051         * gnulib/import/m4/gnulib-cache.m4: Update.
4052         * gnulib/import/m4/gnulib-comp.m4: Update.
4053         * gnulib/import/m4/strtok_r.m4: New file.
4054         * gnulib/import/strtok_r.c: New file.
4055
4056 2015-04-09  Pedro Alves  <palves@redhat.com>
4057
4058         * gnulib/update-gnulib.sh (aclocal version check): Filter out
4059         "called too early to check prototype".
4060
4061 2015-04-08  Sergio Durigan Junior  <sergiodj@redhat.com>
4062
4063         PR python/16699
4064         * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
4065         use a caching mechanism.  Adjust comments and code to reflect
4066         that.  Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
4067         (cmdpy_completer_handle_brkchars): Adjust call to
4068         cmdpy_completer_helper.  Call Py_XDECREF for 'resultobj'.
4069         (cmdpy_completer): Likewise.
4070
4071 2015-04-08  Yao Qi  <yao.qi@linaro.org>
4072
4073         * spu-tdep.c (spu_gdbarch_init): Don't call
4074         set_gdbarch_cannot_step_breakpoint.
4075
4076 2015-04-07  Sergio Durigan Junior  <sergiodj@redhat.com>
4077
4078         * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
4079
4080 2015-04-07  Pedro Alves  <palves@redhat.com>
4081
4082         * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
4083         (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
4084         (delete_exited_threads): New declaration.
4085         * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
4086         * linux-nat.c (linux_nat_update_thread_list): New function.
4087         (linux_nat_add_target): Install it.
4088         * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
4089         * thread.c (prune_threads): Use ALL_THREADS_SAFE.
4090         (delete_exited_threads): New function.
4091
4092 2015-04-07  Pedro Alves  <pedro@codesourcery.com>
4093
4094         * infrun.c (resume) <displaced stepping debug output>: Get the
4095         leader thread's regcache, not resume_ptid's.
4096
4097 2015-04-06  Doug Evans  <xdje42@gmail.com>
4098
4099         * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
4100         VAR_DOMAIN.
4101         (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
4102         Include symbol domain in debugging output.
4103
4104 2015-04-06  Pedro Alves  <palves@redhat.com>
4105             Bernd Edlinger  <bernd.edlinger@hotmail.de>
4106
4107         * configure.ac: Remove the mingw32-specific stub-termcap.o
4108         fallback, and instead fallback to the stub termcap on all hosts.
4109         * configure: Regenerate.
4110         * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
4111         symbols.
4112
4113 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
4114
4115         * gdbtypes.c (is_dynamic_type_internal): Remove the unused
4116         "top_level" parameter.
4117         (resolve_dynamic_type_internal): Remove the unused "top_level"
4118         parameter.  Update call to is_dynamic_type_internal.
4119         (is_dynamic_type): Update call to is_dynamic_type_internal.
4120         (resolve_dynamic_range): Update call to
4121         resolve_dynamic_type_internal.
4122         (resolve_dynamic_union): Likewise.
4123         (resolve_dynamic_struct): Likewise.
4124         (resolve_dynamic_type): Likewise.
4125
4126 2015-04-03  Pierre-Marie de Rodat  <derodat@adacore.com>
4127
4128         * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
4129         TYPE_CODE_REF types so that they are not considered as dynamic
4130         depending on the referenced type.
4131         (resolve_dynamic_type_internal): Likewise.
4132
4133 2015-04-02  H.J. Lu  <hongjiu.lu@intel.com>
4134
4135         * Makefile.in (top_srcdir): New.
4136         * configure: Regenerated.
4137
4138 2015-04-02  Gary Benson <gbenson@redhat.com>
4139
4140         * NEWS: Announce the new default sysroot of "target:".
4141
4142 2015-04-02  Gary Benson <gbenson@redhat.com>
4143
4144         * main.c (captured_main): Set gdb_sysroot to "target:"
4145         if not otherwise set.
4146
4147 2015-04-02  Gary Benson <gbenson@redhat.com>
4148
4149         * exec.c (exec_file_attach): Support "target:" filenames.
4150
4151 2015-04-02  Gary Benson <gbenson@redhat.com>
4152
4153         * solib.c (solib_find): Strip "target:" prefix from sysroot
4154         if accessing local files.
4155
4156 2015-04-02  Gary Benson <gbenson@redhat.com>
4157
4158         * symfile.c (symfile_bfd_open): Reorder to remove duplicated
4159         checks and error messages.
4160
4161 2015-04-02  Gary Benson <gbenson@redhat.com>
4162
4163         * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
4164         (remote_filename_p): Remove declaration.
4165         (remote_bfd_open): Likewise.
4166         * remote.c (remote_bfd_iovec_open): Remove function.
4167         (remote_bfd_iovec_close): Likewise.
4168         (remote_bfd_iovec_pread): Likewise.
4169         (remote_bfd_iovec_stat): Likewise.
4170         (remote_filename_p): Likewise.
4171         (remote_bfd_open): Likewise.
4172         * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
4173         * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
4174         (gdb_bfd_open_maybe_remote): Remove function.
4175         (symfile_bfd_open):  Replace remote filename check with
4176         target filename check.
4177         (reread_symbols): Use gdb_bfd_open.
4178         * build-id.c (gdbcore.h): New include.
4179         (build_id_to_debug_bfd): Use gdb_bfd_open.
4180         * infcmd.c (attach_command_post_wait): Remove remote filename
4181         check.
4182         * solib.c (solib_find): Replace remote-specific handling with
4183         target-specific handling.  Update comments where necessary.
4184         (solib_bfd_open): Replace remote-specific handling with
4185         target-specific handling.
4186         (gdb_sysroot_changed): New function.
4187         (_initialize_solib): Call the above when gdb_sysroot changes.
4188         * windows-tdep.c (gdbcore.h): New include.
4189         (windows_xfer_shared_library): Use gdb_bfd_open.
4190
4191 2015-04-02  Gary Benson <gbenson@redhat.com>
4192
4193         * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
4194         (is_target_filename): New declaration.
4195         (gdb_bfd_has_target_filename): Likewise.
4196         (gdb_bfd_open): Update documentation comment.
4197         * gdb_bfd.c (target.h): New include.
4198         (gdb/fileio.h): Likewise.
4199         (is_target_filename): New function.
4200         (gdb_bfd_has_target_filename): Likewise.
4201         (fileio_errno_to_host): Likewise.
4202         (gdb_bfd_iovec_fileio_open): Likewise.
4203         (gdb_bfd_iovec_fileio_pread): Likewise.
4204         (gdb_bfd_iovec_fileio_close): Likewise.
4205         (gdb_bfd_iovec_fileio_fstat): Likewise.
4206         (gdb_bfd_open): Use target fileio to access paths prefixed
4207         with "target:" where necessary.
4208
4209 2015-04-02  Gary Benson <gbenson@redhat.com>
4210
4211         * target.h (struct target_ops) <to_filesystem_is_local>:
4212         New field.
4213         (target_filesystem_is_local): New macro.
4214         * target-delegates.c: Regenerate.
4215         * remote.c (remote_filesystem_is_local): New function.
4216         (init_remote_ops): Initialize to_filesystem_is_local.
4217
4218 2015-04-02  Gary Benson <gbenson@redhat.com>
4219
4220         * target.h (struct target_ops) <to_fileio_fstat>: New field.
4221         (target_fileio_fstat): New declaration.
4222         * target.c (target_fileio_fstat): New function.
4223         * inf-child.c (inf_child_fileio_fstat): Likewise.
4224         (inf_child_target): Initialize to_fileio_fstat.
4225         * remote.c (init_remote_ops): Likewise.
4226
4227 2015-04-01  Sasha Smundak  <asmundak@google.com>
4228
4229         * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
4230         (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
4231         (py-unwind.o): New recipe.
4232         * NEWS: mention Python frame unwinding.
4233         * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
4234         gdb/unwinder.py and gdb/command/unwinder.py
4235         * python/lib/gdb/__init__.py (packages): Add frame_unwinders
4236         list.
4237         (execute_unwinders): New function.
4238         * python/lib/gdb/command/unwinders.py: New file.
4239         * python/lib/gdb/unwinder.py: New file.
4240         * python/py-objfile.c (objfile_object): Add frame_unwinders field.
4241         (objfpy_dealloc): Decrement frame_unwinders reference count.
4242         (objfpy_initialize): Create frame_unwinders list.
4243         (objfpy_get_frame_unwinders): New function.
4244         (objfpy_set_frame_unwinders): Ditto.
4245         (objfile_getset): Add frame_unwinders attribute to Objfile.
4246         * python/py-progspace.c (pspace_object): Add frame_unwinders field.
4247         (pspy_dealloc): Decrement frame_unwinders reference count.
4248         (pspy_initialize): Create frame_unwinders list.
4249         (pspy_get_frame_unwinders): New function.
4250         (pspy_set_frame_unwinders): Ditto.
4251         (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
4252         * python/py-unwind.c: New file.
4253         * python/python-internal.h (pspy_get_name_unwinders): New prototype.
4254         (objpy_get_frame_unwinders): New prototype.
4255         (gdbpy_initialize_unwind): New prototype.
4256         * python/python.c (gdbpy_apply_type_printers): Call
4257         gdbpy_initialize_unwind.
4258
4259 2015-04-01  Pedro Alves  <palves@redhat.com>
4260
4261         * infrun.c (resume): Check currently_stepping after clearing
4262         stepped_breakpoint, not before.
4263
4264 2015-04-01  Pedro Alves  <palves@redhat.com>
4265
4266         * infrun.c (print_target_wait_results): Print all the ptid
4267         elements.
4268
4269 2015-04-01  Pedro Alves  <palves@redhat.com>
4270
4271         * infrun.c (keep_going): Also discard cleanups if inserting
4272         breakpoints fails.
4273
4274 2015-04-01  Pedro Alves  <palves@redhat.com>
4275
4276         * infrun.c (wait_for_inferior): Install the
4277         finish_thread_state_cleanup cleanup across the whole function, not
4278         just around handle_inferior_event.
4279
4280 2015-04-01  Pedro Alves  <palves@redhat.com>
4281
4282         * infrun.c (resume) <step past permanent breakpoint>: Use
4283         do_target_resume.
4284
4285 2015-04-01  Pedro Alves  <palves@redhat.com>
4286
4287         * linux-nat.c (linux_handle_extended_wait): Always call set_running.
4288
4289 2015-04-01  Pierre-Marie de Rodat  <derodat@adacore.com>
4290
4291         * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
4292
4293 2015-04-01  Pedro Alves  <palves@redhat.com>
4294
4295         * linux-thread-db.c (record_thread): Readd the thread to gdb's
4296         list if it was marked exited.
4297
4298 2015-04-01  H.J. Lu  <hongjiu.lu@intel.com>
4299
4300         * configure: Regenerated.
4301
4302 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
4303             Jan Kratochvil  <jan.kratochvil@redhat.com>
4304             Oleg Nesterov  <oleg@redhat.com>
4305
4306         PR corefiles/16092
4307         * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
4308         New enum identifying the various options of the coredump_filter
4309         file.
4310         (struct smaps_vmflags): New struct.
4311         (use_coredump_filter): New variable.
4312         (decode_vmflags): New function.
4313         (mapping_is_anonymous_p): Likewise.
4314         (dump_mapping_p): Likewise.
4315         (linux_find_memory_regions_full): New variables
4316         'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
4317         Removed variable 'modified'.  Read /proc/<PID>/smaps file; improve
4318         parsing of its information.  Implement memory mapping filtering
4319         based on its contents.
4320         (show_use_coredump_filter): New function.
4321         (_initialize_linux_tdep): New command 'set use-coredump-filter'.
4322         * NEWS: Mention the possibility of using the
4323         '/proc/PID/coredump_filter' file when generating a corefile.
4324         Mention new command 'set use-coredump-filter'.
4325
4326 2015-03-31  Sergio Durigan Junior  <sergiodj@redhat.com>
4327
4328         * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
4329         read_memory_unsigned_integer.
4330
4331 2015-03-31  H.J. Lu  <hongjiu.lu@intel.com>
4332
4333         * Makefile.in (ZLIB): New.
4334         (ZLIBINC): Likewise.
4335         (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
4336         (CLIBS): Add $(ZLIB).
4337         * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
4338         Add -lz to LIBS.
4339         * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
4340         * top.c (print_gdb_configuration): Remove --with-zlib and
4341         --without-zlib.
4342         * config.in: Regenerated.
4343         * configure: Likewise.
4344
4345 2015-03-31  Antoine Tremblay  <antoine.tremblay@ericsson.com>
4346
4347         * NEWS: Mention info os cpus support.
4348         * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
4349         (struct osdata_type): Add cpus entry, reorder the entries in
4350         alphabetical order.
4351
4352 2015-03-31  Matthias Klose  <doko@ubuntu.com>
4353
4354         * compile/compile.c (compile_to_object): Allow triplets with or
4355         without vendor set.
4356
4357 2015-03-30  Doug Evans  <dje@google.com>
4358
4359         PR c++/18141
4360         * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
4361         klass in VAR_DOMAIN.
4362
4363 2015-03-30  Gary Benson <gbenson@redhat.com>
4364
4365         * remote.c (remote_mourn_1): Remove function.  Update all callers
4366         to use remote_mourn.
4367         (extended_remote_mourn_1): Remove function.  Update all callers
4368         to use extended_remote_mourn.
4369         (extended_remote_attach_1): Remove function.  Update all callers
4370         to use extended_remote_attach.
4371
4372 2015-03-28  James Bowman  <james.bowman@ftdichip.com>
4373
4374         * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
4375         (HFILES_NO_SRCDIR): Add ft32-tdep.h.
4376         (ALLDEPFILES): Add ft32-tdep.c.
4377         * configure.tgt: Add FT32 entry.
4378         * ft32-tdep.c: New file, FT32 target-dependent code.
4379         * ft32-tdep.h: New file, FT32 target-dependent code.
4380
4381 2015-03-27  Jan Kratochvil  <jan.kratochvil@redhat.com>
4382
4383         Revert:
4384         2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4385         Code cleanup.
4386         * printcmd.c (print_command_1): Move expr variable scope.
4387
4388 2015-03-27  Joel Brobecker  <brobecker@adacore.com>
4389
4390         * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
4391
4392 2015-03-27  Andrzej Kaczmarek  <andrzej.kaczmarek@tieto.com>
4393
4394         * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
4395         sections.
4396
4397 2015-03-26  Joel Brobecker  <brobecker@adacore.com>
4398
4399         * dtrace-probe.c (dtrace_process_dof_probe): Contain any
4400         exception raised while parsing the probe arguments.
4401         Force parsing to be done using the C language parser.
4402         * expression.h (parse_expression_with_language): Declare.
4403         * parse.c (parse_expression_with_language): New function.
4404
4405 2015-03-26  Jon Turney  <jon.turney@dronecode.org.uk>
4406
4407         * MAINTAINERS (Write After Approval): Add "Jon Turney".
4408
4409 2015-03-26  Andy Wingo  <wingo@igalia.com>
4410
4411         PR symtab/18148
4412         * dwarf2read.c (struct partial_die_info): Add has_const_value
4413         member.
4414         (add_partial_symbol): Don't punt on symbols that have const_value
4415         attributes.
4416         (read_partial_die): Detect DW_AT_const_value.
4417
4418 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4419
4420         Code cleanup.
4421         * printcmd.c (print_command_1): Move expr variable scope.
4422
4423 2015-03-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
4424
4425         Code cleanup.
4426         * printcmd.c (validate_format): Make the parameter cmdname const.
4427
4428 2015-03-26  Don Breazeal  <donb@codesourcery.com>
4429
4430         * remote.c (_initialize_remote): Update comment.
4431
4432 2015-03-26  Pedro Alves  <palves@redhat.com>
4433             Jon TURNEY  <jon.turney@dronecode.org.uk>
4434
4435         * coffread.c (coff_symfile_read): When constructing the name of an
4436         import stub symbol from import symbol for amd64, only skip the
4437         char after _imp_ if the target is underscored (like i386) and the
4438         char is indeed the target's leading char.
4439
4440 2015-03-25  Pedro Alves  <palves@redhat.com>
4441
4442         * target.h <to_async>: Replace 'callback' and 'context' parameters
4443         with boolean 'enable' parameter.
4444         (target_async): Replace CALLBACK and CONTEXT parameters with
4445         boolean ENABLE parameter.
4446         * inf-loop.c (inferior_event_handler): Adjust.
4447         * linux-nat.c (linux_nat_attach, linux_nat_resume)
4448         (linux_nat_resume): Adjust.
4449         (async_client_callback, async_client_context): Delete.
4450         (handle_target_event): Call inferior_event_handler directly.
4451         (linux_nat_async): Replace 'callback' and 'context' parameters
4452         with boolean 'enable' parameter.  Adjust.  Remove references to
4453         async_client_callback and async_client_context.
4454         (linux_nat_close): Adjust.
4455         * record-btrace.c (record_btrace_async): Replace 'callback' and
4456         'context' parameters with boolean 'enable' parameter.  Adjust.
4457         (record_btrace_resume): Adjust.
4458         * record-full.c (record_full_async): Replace 'callback' and
4459         'context' parameters with boolean 'enable' parameter.  Adjust.
4460         (record_full_resume, record_full_core_resume): Adjust.
4461         * remote.c (struct remote_state) <async_client_callback,
4462         async_client_context>: Delete fields.
4463         (remote_start_remote, extended_remote_attach_1, remote_resume)
4464         (extended_remote_create_inferior): Adjust.
4465         (remote_async_serial_handler): Call inferior_event_handler
4466         directly.
4467         (remote_async): Replace 'callback' and 'context' parameters with
4468         boolean 'enable' parameter.  Adjust.
4469         * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
4470         Adjust.
4471         * target-delegates.c: Regenerate.
4472
4473 2015-03-25  Gary Benson <gbenson@redhat.com>
4474             Pedro Alves  <palves@redhat.com>
4475
4476         * target.c (fileio_ft_t): New typedef, define object vector.
4477         (fileio_fhandles): New static variable.
4478         (is_closed_fileio_fh): New macro.
4479         (lowest_closed_fd): New static variable.
4480         (acquire_fileio_fd): New function.
4481         (release_fileio_fd): Likewise.
4482         (fileio_fd_to_fh): New macro.
4483         (target_fileio_open): Wrap the file descriptor on success.
4484         (target_fileio_pwrite): Updated to use wrapped file descriptor.
4485         (target_fileio_pread): Likewise.
4486         (target_fileio_close): Likewise.
4487
4488 2015-03-24  Pedro Alves  <palves@redhat.com>
4489
4490         * thread.c (thread_apply_all_command): Take exited threads into
4491         account.
4492
4493 2015-03-24  Pedro Alves  <palves@redhat.com>
4494
4495         * infrun.c (resume, proceed): Mention
4496         switch_back_to_stepped_thread, not switch_back_to_stepping.
4497
4498 2015-03-24  Pedro Alves  <palves@redhat.com>
4499
4500         * infrun.c (user_visible_resume_ptid): Rewrite going from
4501         most-locked to unlocked instead of the opposite.  Move comment ...
4502         * infrun.h (user_visible_resume_ptid): ... here.
4503
4504 2015-03-24  Pedro Alves  <palves@redhat.com>
4505
4506         * linux-nat.c (linux_nat_resume): Output debug logs before trying
4507         to resume the event lwp.  Use the lwp's ptid instead of the passed
4508         in (maybe wildcard) ptid.
4509         (stop_wait_callback): Tweak debug log output.
4510         (check_stopped_by_breakpoint): Tweak debug log output.  Also dump
4511         TRAP_TRACE.
4512         (linux_nat_filter_event): In debug output, distinguish a
4513         resume_stop SIGSTOP from a delayed SIGSTOP.  Output debug logs
4514         before trying to resume the lwp.
4515
4516 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
4517
4518         * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
4519         pointer indirection.
4520         * gdbtypes.c (get_dyn_prop): Adjust, following change above.
4521         (add_dyn_prop, copy_dynamic_prop_list): Likewise.
4522
4523 2015-03-24  Joel Brobecker  <brobecker@adacore.com>
4524
4525         * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
4526         Renames DYN_ATTR_DATA_LOCATION.
4527         (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
4528         DYN_ATTR_DATA_LOCATION.
4529         * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
4530         instead of DYN_ATTR_DATA_LOCATION.
4531
4532 2015-03-24  Pedro Alves  <palves@redhat.com>
4533
4534         * breakpoint.c (until_break_command): Adjust call to proceed.
4535         * gdbthread.h (struct thread_control_state) <stepping_command>:
4536         New field.
4537         * infcall.c (run_inferior_call): Adjust call to proceed.
4538         * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
4539         Adjust calls to proceed.
4540         (set_step_frame): Set the current thread's step_start_function
4541         here.
4542         (step_once): Adjust calls to proceed.
4543         (jump_command, signal_command, until_next_command)
4544         (finish_backward, finish_forward, proceed_after_attach_callback)
4545         (attach_command_post_wait): Adjust calls to proceed.
4546         * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
4547         (do_target_resume): New function, factored out from ...
4548         (resume): ... here.  Remove 'step' parameter.  Instead, check
4549         currently_stepping to determine whether the thread should be
4550         single-stepped.
4551         (proceed): Remove 'step' parameter and don't set the thread's
4552         step_start_function here.  Adjust call to 'resume'.
4553         (handle_inferior_event): Adjust calls to 'resume'.
4554         (switch_back_to_stepped_thread): Use do_target_resume instead of
4555         'resume'.
4556         (keep_going): Adjust calls to 'resume'.
4557         * infrun.h (proceed): Remove 'step' parameter.
4558         (resume): Likewise.
4559         * windows-nat.c (do_initial_windows_stuff): Adjust call to
4560         'resume'.
4561         * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
4562
4563 2015-03-24  Pedro Alves  <palves@redhat.com>
4564
4565         * gdbthread.h (struct thread_control_state) <stepping_command>:
4566         New field.
4567         * infcmd.c (step_once): Pass step=1 to clear_proceed_status.  Set
4568         the thread's stepping_command field.
4569         * infrun.c (resume): Check the thread's stepping_command flag to
4570         determine which threads should be resumed.  Rename 'entry_step'
4571         local to user_step.
4572         (clear_proceed_status_thread): Clear 'stepping_command'.
4573         (schedlock_applies): Change parameter type to struct thread_info
4574         pointer.  Adjust.
4575         (find_thread_needs_step_over): Remove 'step' parameter.  Adjust.
4576         (switch_back_to_stepped_thread): Adjust calls to
4577         'schedlock_applies'.
4578         (_initialize_infrun): Adjust "set scheduler-locking step" help.
4579
4580 2015-03-24  Pedro Alves  <palves@redhat.com>
4581
4582         * infrun.c (step_start_function): Delete and ...
4583         * gdbthread.h (struct thread_control_state) <step_start_function>:
4584         ... now a field here.
4585         * infrun.c (clear_proceed_status_thread): Clear the thread's
4586         step_start_function.
4587         (proceed, process_event_stop_test, print_stop_event): Adjust.
4588
4589 2015-03-24  Pedro Alves  <palves@redhat.com>
4590
4591         * infrun.c (proceed): No longer handle negative step.
4592
4593 2015-03-24  Gary Benson  <gbenson@redhat.com>
4594
4595         * nat/x86-linux.h (x86_linux_new_thread): New declaration.
4596         (x86_linux_prepare_to_resume): Likewise.
4597         * x86-linux-nat.c (x86_linux_new_thread):
4598         Moved to nat/x86-linux.c.
4599         (x86_linux_prepare_to_resume): Likewise.
4600         * nat/x86-linux.c (x86_linux_new_thread): New function.
4601         (x86_linux_prepare_to_resume): Likewise.
4602
4603 2015-03-24  Gary Benson  <gbenson@redhat.com>
4604
4605         * nat/x86-linux-dregs.h: New file.
4606         * nat/x86-linux-dregs.c: Likewise.
4607         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
4608         (x86-linux-dregs.o): New rule.
4609         * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
4610         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4611         * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
4612         (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
4613         (x86_linux_dr_get): Likewise.
4614         (x86_linux_dr_set): Likewise.
4615         (x86_linux_dr_get_addr): Likewise.
4616         (x86_linux_dr_get_control): Likewise.
4617         (x86_linux_dr_get_status): Likewise.
4618         (update_debug_registers_callback): Likewise.
4619         (x86_linux_dr_set_control): Likewise.
4620         (x86_linux_dr_set_addr): Likewise.
4621         (x86_linux_update_debug_registers): Likewise.
4622
4623 2015-03-24  Gary Benson  <gbenson@redhat.com>
4624
4625         * x86-linux-nat.c (x86_linux_update_debug_registers):
4626         New function, factored out from...
4627         (x86_linux_prepare_to_resume): ...this.
4628
4629 2015-03-24  Gary Benson  <gbenson@redhat.com>
4630
4631         * x86-linux-nat.c (x86_linux_dr_get): Update comments.
4632         (x86_linux_dr_set): Likewise.
4633         (x86_linux_dr_get_addr): Likewise.
4634         (x86_linux_dr_get_control): Likewise.
4635         (x86_linux_dr_get_status): Likewise.
4636         (update_debug_registers_callback): Likewise.
4637         (x86_linux_dr_set_control): Likewise.
4638         (x86_linux_dr_set_addr): Likewise.
4639         (x86_linux_prepare_to_resume): Likewise.
4640         (x86_linux_new_thread): Likewise.
4641
4642 2015-03-24  Gary Benson  <gbenson@redhat.com>
4643
4644         * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
4645         (x86_linux_new_thread): Rename argument.
4646
4647 2015-03-24  Gary Benson  <gbenson@redhat.com>
4648
4649         * nat/x86-linux.h: New file.
4650         * nat/x86-linux.c: Likewise.
4651         * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
4652         (x86-linux.o): New rule.
4653         * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
4654         * config/i386/linux64.mh (NATDEPFILES): Likewise.
4655         * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
4656         (lwp_set_arch_private_info): New declaration.
4657         (lwp_arch_private_info): Likewise.
4658         * linux-nat.c (lwp_set_arch_private_info): New function.
4659         (lwp_arch_private_info): Likewise.
4660         * x86-linux-nat.c: Include nat/x86-linux.h.
4661         (arch_lwp_info): Removed structure.
4662         (update_debug_registers_callback):
4663         Use lwp_set_debug_registers_changed.
4664         (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
4665         and lwp_set_debug_registers_changed.
4666         (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
4667
4668 2015-03-24  Gary Benson  <gbenson@redhat.com>
4669
4670         * nat/linux-nat.h (ptid_of_lwp): New declaration.
4671         (lwp_is_stopped): Likewise.
4672         (lwp_stop_reason): Likewise.
4673         * linux-nat.c (ptid_of_lwp): New function.
4674         (lwp_is_stopped): Likewise.
4675         (lwp_is_stopped_by_watchpoint): Likewise.
4676         * x86-linux-nat.c (update_debug_registers_callback):
4677         Use lwp_is_stopped.
4678         (x86_linux_prepare_to_resume): Use ptid_of_lwp and
4679         lwp_stop_reason.
4680
4681 2015-03-24  Gary Benson  <gbenson@redhat.com>
4682
4683         * linux-nat.h (linux_stop_lwp): Move declaration to...
4684         * nat/linux-nat.h (linux_stop_lwp): New declaration.
4685
4686 2015-03-24  Gary Benson  <gbenson@redhat.com>
4687
4688         * linux-nat.h: Include nat/linux-nat.h.
4689         (iterate_over_lwps): Move declaration to nat/linux-nat.h.
4690         * nat/linux-nat.h (struct lwp_info): New forward declaration.
4691         (iterate_over_lwps_ftype): New typedef.
4692         (iterate_over_lwps): New declaration.
4693         * linux-nat.h (iterate_over_lwps): Update comment.  Use
4694         iterate_over_lwps_ftype.  Update callback return value check.
4695
4696 2015-03-24  Gary Benson  <gbenson@redhat.com>
4697
4698         * x86-nat.h (x86_debug_reg_state): Move declaration to...
4699         * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
4700
4701 2015-03-24  Gary Benson  <gbenson@redhat.com>
4702
4703         * nat/linux-nat.h (current_lwp_ptid): New declaration.
4704         * linux-nat.c (current_lwp_ptid): New function.
4705         * x86-linux-nat.c: Include nat/linux-nat.h.
4706         (x86_linux_dr_get_addr): Use current_lwp_ptid.
4707         (x86_linux_dr_get_control): Likewise.
4708         (x86_linux_dr_get_status): Likewise.
4709         (x86_linux_dr_set_control): Likewise.
4710         (x86_linux_dr_set_addr): Likewise.
4711
4712 2015-03-24  Antoine Tremblay  <antoine.tremblay@ericsson.com>
4713
4714         PR breakpoints/16466
4715         * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
4716
4717 2015-03-23  Joel Brobecker  <brobecker@adacore.com>
4718
4719         * ser-mingw.c (ser_windows_setparity): Fix indentation.
4720         * ser-unix.c (hardwire_setparity): Likewise.
4721
4722 2015-03-23  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
4723
4724         * NEWS: Mention set/show serial parity command.
4725         * monitor.c (monitor_open): Call serial_setparity.
4726         * remote.c (remote_open_1): Likewise.
4727         * ser-base.c (ser_base_serparity): New function.
4728         * ser-base.h (ser_base_setparity): Add  declaration.
4729         * ser-go32.c (dos_ops): Set "setparity" field.
4730         * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
4731         state.Parity.
4732         (ser_windows_setparity): New function.
4733         (hardwire_ops): Add ser_windows_setparity.
4734         (tty_ops): Add NULL for setparity field.
4735         (pipe_ops): Add ser_base_setparity.
4736         (tcp_ops): Likewise.
4737         * ser-pipe.c (pipe_ops): Likewise.
4738         * ser-tcp.c (tcp_ops): Likewise.
4739         * ser-unix.c (hardwire_setparity): Add declaration.
4740         (hardwire_raw): Don't reset PARENB flag.
4741         (hardwire_setparity): New function.
4742         (hardwire_ops): Add hardwire_setparity.
4743         * serial.c (serial_setparity): New function.
4744         (serial_parity): New global.
4745         (parity_none, parity_odd, parity_even, parity_enums, parity):
4746         New static globals.
4747         (set_parity): New function.
4748         (_initialize_serial): Add set/show serial parity commands.
4749         * serial.h (GDBPARITY_NONE): Define.
4750         (GDBPARITY_ODD): Define.
4751         (GDBPARITY_EVEN): Define.
4752         (serial_setparity) Add declaration.
4753         (struct serial_ops): Add setparity field.
4754         * target.h (serial_parity): Add declaration.
4755
4756 2015-03-23  Keith Seitz  <keiths@redhat.com>
4757
4758         * linespec.c (linespec_lexer_lex_keyword): Update comment.
4759
4760 2015-03-23  Keith Seitz  <keiths@redhat.com>
4761
4762         * breakpoint.c (parse_breakpoint_sals): Use
4763         linespec_lexer_lex_keyword to ascertain if the user specified
4764         a NULL location.
4765         * linespec.c [IF_KEYWORD_INDEX]: Define.
4766         (linespec_lexer_lex_keyword): Export.
4767         (struct ls_parser) <keyword_ok>: Remove.
4768         A keyword is only a keyword if not followed by another keyword.
4769         (linespec_lexer_lex_one): Remove keyword_ok handling.
4770         Add comment explaining why the parsing stream is not advanced
4771         when a keyword is seen.
4772         (parse_linespec): Remove parser->keyword_ok.
4773         * linespec.h (linespec_lexer_lex_keyword): Add declaration.
4774
4775 2015-03-23  Keith Seitz  <keiths@redhat.com>
4776
4777         PR gdb/18021
4778         * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
4779         if we find a static method with DW_AT_vtable_elem_location.
4780
4781 2015-03-21  Eli Zaretskii  <eliz@gnu.org>
4782
4783         * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
4784         before the second loop, to avoid undefined behavior.  Reported by
4785         Anton Blanchard <anton@samba.org>.
4786
4787 2015-03-20  Keven Boell  <keven.boell@intel.com>
4788
4789         * gdbtypes.c (resolve_dynamic_type_internal): Adapt
4790         data_location usage to linked list.
4791         (resolve_dynamic_type_internal): Adapt data_location to
4792         linked list.
4793         (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
4794         (copy_type_recursive, copy_type): Add copy of linked list.
4795         * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
4796         (struct dynamic_prop_list): New struct.
4797         * dwarf2read.c (set_die_type): Set data_location data.
4798
4799 2015-03-20  Pedro Alves  <palves@redhat.com>
4800
4801         * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
4802         inner block and make it const.
4803         * machoread.c (get_archive_prefix_len): Make "lparen" const.
4804
4805 2015-03-20  Pedro Alves  <palves@redhat.com>
4806
4807         * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
4808         * breakpoint.h (set_breakpoint_condition): Update declaration.
4809
4810 2015-03-20  Pedro Alves  <palves@redhat.com>
4811
4812         * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
4813
4814 2015-03-20  Pedro Alves  <palves@redhat.com>
4815
4816         * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
4817
4818 2015-03-20  Pedro Alves  <palves@redhat.com>
4819
4820         * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
4821
4822 2015-03-20  Pedro Alves  <palves@redhat.com>
4823
4824         * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
4825         (nto_init_solib_absolute_prefix): Likewise.
4826
4827 2015-03-20  Pedro Alves  <palves@redhat.com>
4828
4829         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
4830         * spu-tdep.c (spu_gdbarch_init): Make "name" const.
4831
4832 2015-03-20  Jan Kratochvil  <jan.kratochvil@redhat.com>
4833
4834         * config/djgpp/README: Remove gdb.hp.
4835
4836 2015-03-20  Yao Qi  <yao.qi@linaro.org>
4837
4838         * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
4839         set_gdbarch_cannot_step_breakpoint.
4840
4841 2015-03-19  Pedro Alves  <palves@redhat.com>
4842
4843         * linux-nat.c (linux_resume_one_lwp): Rename to ...
4844         (linux_resume_one_lwp_throw): ... this.  Don't handle ESRCH here,
4845         instead call perror_with_name.
4846         (check_ptrace_stopped_lwp_gone): New function.
4847         (linux_resume_one_lwp): Reimplement as wrapper around
4848         linux_resume_one_lwp_throw that swallows errors if the LWP is
4849         gone.
4850         (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
4851         swallows errors if the LWP is gone.  Use
4852         linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
4853
4854 2015-03-19  Pedro Alves  <palves@redhat.com>
4855
4856         * linux-nat.c (status_callback): Return early if the LWP has no
4857         status pending.
4858
4859 2015-03-19  Pedro Alves  <palves@redhat.com>
4860
4861         * linux-nat.c (select_event_lwp_callback): Update comment to no
4862         longer mention SIGTRAP.
4863
4864 2015-03-18  Tristan Gingold  <gingold@adacore.com>
4865
4866         * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
4867         redirection code to ...
4868         (amd64_windows_frame_decode_insns): ... Here.  Fix in prologue
4869         checks.  Fix SAVE_NONVOL operations.  Add debug code and comments.
4870
4871 2015-03-18  Gary Benson <gbenson@redhat.com>
4872
4873         (remote_protocol_features): Remove the "vFile:fstat" feature.
4874         (remote_hostio_fstat): Probe for "vFile:fstat" support.
4875
4876 2015-03-11  Yao Qi  <yao.qi@linaro.org>
4877
4878         PR tdep/18107
4879         * aarch64-linux-tdep.c: Include xml-syscall.h
4880         (aarch64_linux_get_syscall_number): New function.
4881         (aarch64_linux_init_abi): Call
4882         set_gdbarch_get_syscall_number.
4883         * syscalls/aarch64-linux.xml: New file.
4884
4885 2015-03-17  Yurij Grechishhev  <yurij.grechishhev@gmail.com>
4886
4887         * ser-base.h (ser_base_setstopbits): Change second argument name
4888         from "rate" to "num".
4889
4890 2015-03-17  Gary Benson <gbenson@redhat.com>
4891             Luke Allardyce <lukeallardyce@gmail.com>
4892
4893         PR gdb/18131
4894         * common/common-remote-fileio.h (sys/stat.h): New include.
4895         (stuct stat): Remove forward declaration.
4896
4897 2015-03-16  John Baldwin  <jhb@FreeBSD.org>
4898
4899         * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
4900         before writing core register notes.
4901
4902 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
4903             Pedro Alves  <palves@redhat.com>
4904
4905         * gdb_curses.h (tgetnum): Mark with EXTERN_C.
4906         * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
4907         (tgoto): Wrap with extern "C".
4908
4909 2015-03-16  Pedro Alves  <palves@redhat.com>
4910             Yuanhui Zhang  <asmwarrior@gmail.com>
4911
4912         * stub-termcap.c (tputs): Change prototype.
4913
4914 2015-03-16  Yuanhui Zhang  <asmwarrior@gmail.com>
4915             Pedro Alves  <palves@redhat.com>
4916
4917         * windows-nat.c (struct thread_info_struct): Rename to ...
4918         (struct windows_thread_info_struct): ... this.
4919         (thread_info): Rename to ...
4920         (windows_thread_info): ... this.
4921         All users updated.
4922
4923 2015-03-14  Jan Kratochvil  <jan.kratochvil@redhat.com>
4924             Pedro Alves  <palves@redhat.com>
4925
4926         * NEWS: New Removed targets and native configurations.
4927
4928 2015-03-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
4929
4930         Remove HPUX.
4931         * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
4932         (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
4933         (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
4934         ia64-hpux-tdep.h, solib-ia64-hpux.h.
4935         (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
4936         ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
4937         * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
4938         hppa-hpux-tdep.c.
4939         * config/ia64/hpux.mh: Remove file.
4940         * config/pa/hpux.mh: Remove file.
4941         * configure: Rebuilt.
4942         * configure.ac (dlgetmodinfo, somread.o): Remove.
4943         * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
4944         (ia64-*-hpux*): Remove its float format exception.
4945         * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
4946         * hppa-hpux-nat.c: Remove file.
4947         * hppa-hpux-tdep.c: Remove file.
4948         * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
4949         Move them here from hppa-tdep.h
4950         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
4951         (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
4952         * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
4953         Move them to hppa-tdep.c.
4954         (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
4955         declarations.
4956         * ia64-hpux-nat.c: Remove file.
4957         * ia64-hpux-tdep.c: Remove file.
4958         * ia64-hpux-tdep.h: Remove file.
4959         * inf-ttrace.c: Remove file.
4960         * inf-ttrace.h: Remove file.
4961         * solib-ia64-hpux.c: Remove file.
4962         * solib-ia64-hpux.h: Remove file.
4963         * solib-pa64.c: Remove file.
4964         * solib-pa64.h: Remove file.
4965         * solib-som.c: Remove file.
4966         * solib-som.h: Remove file.
4967         * somread.c: Remove file.
4968
4969 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
4970
4971         * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
4972         * config.in: Regenerate.
4973         * configure: Regenerate.
4974         * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
4975         define.
4976         (fbsd_find_memory_regions): Use kinfo_getvmmap to
4977         enumerate memory regions if present.
4978
4979 2015-03-13  John Baldwin  <jhb@FreeBSD.org>
4980
4981         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
4982         * i386fbsd-tdep.c: Fix style in various gdb_static_assert
4983         expressions.
4984         (i386fbsd_sigtramp_p): Likewise.
4985
4986 2015-03-12  John Baldwin  <jhb@FreeBSD.org>
4987
4988         * MAINTAINERS (Write After Approval): Add John Baldwin.
4989
4990 2015-03-12  Gary Benson <gbenson@redhat.com>
4991
4992         * solib.c (_initialize_solib): Make "set/show sysroot" use
4993         add_setshow_optional_filename_cmd so it can be restored to
4994         empty after being set.
4995
4996 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
4997
4998         * Makefile.in (SFILES): New source break-catch-syscall.c.
4999         (COMMON_OBS): New object break-catch-syscall.o.
5000         * break-catch-syscall.c: New file.
5001         * breakpoint.c: Remove inclusion of "xml-syscall.h".
5002         (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
5003         (struct syscall_catchpoint): Likewise.
5004         (dtor_catch_syscall): Likewise.
5005         (catch_syscall_inferior_data): Likewise.
5006         (struct catch_syscall_inferior_data): Likewise.
5007         (get_catch_syscall_inferior_data): Likewise.
5008         (catch_syscall_inferior_data_cleanup): Likewise.
5009         (insert_catch_syscall): Likewise.
5010         (remove_catch_syscall): Likewise.
5011         (breakpoint_hit_catch_syscall): Likewise.
5012         (print_it_catch_syscall): Likewise.
5013         (print_one_catch_syscall): Likewise.
5014         (print_mention_catch_syscall): Likewise.
5015         (print_recreate_catch_syscall): Likewise.
5016         (catch_syscall_breakpoint_ops): Likewise.
5017         (syscall_catchpoint_p): Likewise.
5018         (create_syscall_event_catchpoint): Likewise.
5019         (catch_syscall_split_args): Likewise.
5020         (catch_syscall_command_1): Likewise.
5021         (is_syscall_catchpoint_enabled): Likewise.
5022         (catch_syscall_enabled): Likewise.
5023         (catching_syscall_number): Likewise.
5024         (catch_syscall_completer): Likewise.
5025         (clear_syscall_counts): Likewise.
5026         (initialize_breakpoint_ops): Move initialization of syscall
5027         catchpoints to break-catch-syscall.c.
5028         (_initialize_breakpoint): Move code related to syscall catchpoints
5029         to break-catch-syscall.c.
5030
5031 2015-03-11  Sergio Durigan Junior  <sergiodj@redhat.com>
5032
5033         * breakpoint.c (breakpoint_find_if): New function.
5034         * breakpoint.h (breakpoint_find_if): New prototype.
5035
5036 2015-03-11  Gary Benson <gbenson@redhat.com>
5037
5038         * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
5039         * remote-fileio.c (remote_fileio_to_host_uint): New function.
5040         (remote_fileio_to_host_ulong): Likewise.
5041         (remote_fileio_to_host_mode): Likewise.
5042         (remote_fileio_to_host_time): Likewise.
5043         (remote_fileio_to_host_stat): Likewise.
5044         * remote.c (PACKET_vFile_fstat): New enum value.
5045         (remote_protocol_features): Register the "vFile:fstat" feature.
5046         (remote_hostio_fstat): New function.
5047         (remote_bfd_iovec_stat): Use the above.
5048         (_initialize_remote): Register new "set/show remote
5049         hostio-fstat-packet" command.
5050         * symfile.c (separate_debug_file_exists): Update comment.
5051         * NEWS: Announce new vFile:fstat packet.
5052
5053 2015-03-11  Gary Benson <gbenson@redhat.com>
5054
5055         * common/common-remote-fileio.h: New file.
5056         * common/common-remote-fileio.c: Likewise.
5057         * Makefile.in (SFILES): Add common/common-remote-fileio.c.
5058         (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
5059         (COMMON_OBS): Add common-remote-fileio.o.
5060         (common-remote-fileio.o): New rule.
5061         * remote-fileio.h (common-remote-fileio.h): New include.
5062         * remote-fileio.c (gdb/fileio.h): Do not include.
5063         (remote_fileio_to_be): Moved to common-remote-fileio.h.
5064         (remote_fileio_to_fio_uint): Likewise.
5065         (remote_fileio_to_fio_time): Likewise.
5066         (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
5067         (remote_fileio_to_fio_mode): Likewise.
5068         (remote_fileio_to_fio_ulong): Likewise.
5069         (remote_fileio_to_fio_stat): Likewise.
5070
5071 2015-03-11  Andy Wingo  <wingo@igalia.com>
5072
5073         * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
5074         we were checking the cached type, not the cached dynamic type.
5075
5076 2015-03-11  Andy Wingo  <wingo@igalia.com>
5077
5078         * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
5079         other strings, as these are on the GC'd heap, and will be
5080         collected along with the smob.
5081
5082 2015-03-11  Andy Wingo  <wingo@igalia.com>
5083
5084         * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
5085         (objfile_functions): Bind gdbscm_objfile_progspace to
5086         objfile-progspace.
5087         * guile/lib/gdb.scm: Add objfile-progspace to exports.
5088
5089 2015-03-11  Andy Wingo  <wingo@igalia.com>
5090
5091         * guile/guile.c (_initialize_guile): Disable automatic
5092         finalization, if Guile offers us that possibility.
5093         * guile/guile.c (call_initialize_gdb_module):
5094         * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
5095         finalizers in appropriate places.
5096         * configure.ac (AC_TRY_LIBGUILE): Add a check for
5097         scm_set_automatic_finalization_enabled.
5098         * configure: Regenerated.
5099
5100 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5101
5102         * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
5103         SAL, if possible.
5104
5105 2015-03-11  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5106
5107         * s390-linux-nat.c (struct arch_lwp_info): New.
5108         (s390_fix_watch_points): Rename to...
5109         (s390_prepare_to_resume): ...this.  Skip the PER info update
5110         unless the watch points have changed.
5111         (s390_refresh_per_info, s390_new_thread): New functions.
5112         (s390_insert_watchpoint): Call s390_refresh_per_info instead of
5113         s390_fix_watch_points.
5114         (s390_remove_watchpoint): Likewise.
5115         (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
5116         Register s390_prepare_to_resume.
5117
5118 2015-03-09  Pedro Alves  <palves@redhat.com>
5119
5120         Revert:
5121         2015-03-07  Pedro Alves  <palves@redhat.com>
5122         * common/gdb_socket.h: New file.
5123         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
5124         sys/socket.h.
5125         (net_open): Use union gdb_sockaddr_u.
5126
5127 2015-03-07  Pedro Alves  <palves@redhat.com>
5128
5129         * configure.ac (build_warnings): Move -Wmissing-prototypes
5130         -Wdeclaration-after-statement -Wmissing-parameter-type
5131         -Wold-style-declaration -Wold-style-definition to the C-specific
5132         set.
5133         * configure: Regenerate.
5134
5135 2015-03-07  Pedro Alves  <palves@redhat.com>
5136
5137         * common/gdb_socket.h: New file.
5138         * ser-tcp.c: Include gdb_socket.h.  Don't include netinet/in.h nor
5139         sys/socket.h.
5140         (net_open): Use union gdb_sockaddr_u.
5141
5142 2015-03-07  Pedro Alves  <palves@redhat.com>
5143
5144         * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
5145         (exceptions_state_mc_action_iter)
5146         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5147         Don't define.
5148         [__cplusplus] (try_scope_depth): New global.
5149         [__cplusplus] (exception_try_scope_entry)
5150         (exception_try_scope_exit, gdb_exception_sliced_copy)
5151         (exception_rethrow): New functions.
5152         (throw_exception): In C++ mode, throw
5153         gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
5154         gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
5155         (throw_it): In C++ mode, use try_scope_depth.
5156         * common/common-exceptions.h [!__cplusplus]
5157         (exceptions_state_mc_action_iter)
5158         (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
5159         Don't declare.
5160         [__cplusplus] (exception_try_scope_entry)
5161         (exception_try_scope_exit, exception_rethrow): Declare.
5162         [__cplusplus] (struct exception_try_scope): New struct.
5163         [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
5164         C++ exceptions.
5165         (struct gdb_exception_RETURN_MASK_ALL)
5166         (struct gdb_exception_RETURN_MASK_ERROR)
5167         (struct gdb_exception_RETURN_MASK_QUIT): New types.
5168
5169 2015-03-07  Pedro Alves  <palves@redhat.com>
5170
5171         * main.c (handle_command_errors): Remove volatile qualifier from
5172         parameter.
5173
5174 2015-03-07  Pedro Alves  <palves@redhat.com>
5175
5176         * breakpoint.c (save_breakpoints): Adjust to avoid code between
5177         TRY and CATCH.
5178         * gdbtypes.c (safe_parse_type): Remove empty line.
5179         (types_deeply_equal):
5180         * guile/scm-frame.c (gdbscm_frame_name):
5181         * linux-thread-db.c (find_new_threads_once):
5182         * python/py-breakpoint.c (bppy_get_commands):
5183         * record-btrace.c (record_btrace_insert_breakpoint)
5184         (record_btrace_remove_breakpoint, record_btrace_start_replaying)
5185         (record_btrace_start_replaying): Adjust to avoid code between TRY
5186         and CATCH.
5187
5188 2015-03-07  Pedro Alves  <palves@redhat.com>
5189
5190         * common/common-exceptions.c (struct catcher) <exception>: No
5191         longer a pointer to volatile exception.  Now an exception value.
5192         <mask>: Delete field.
5193         (exceptions_state_mc_init): Remove all parameters.  Adjust.
5194         (exceptions_state_mc): No longer pop the catcher here.
5195         (exceptions_state_mc_catch): New function.
5196         (throw_exception): Adjust.
5197         * common/common-exceptions.h (exceptions_state_mc_init): Remove
5198         all parameters.
5199         (exceptions_state_mc_catch): Declare.
5200         (TRY_CATCH): Rename to ...
5201         (TRY): ... this.  Remove EXCEPTION and MASK parameters.
5202         (CATCH, END_CATCH): New.
5203         All callers adjusted.
5204
5205 2015-03-07  Tom Tromey  <tromey@redhat.com>
5206
5207         * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
5208
5209 2015-03-07  Pedro Alves  <palves@redhat.com>
5210
5211         * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
5212         (amd64_epilogue_frame_cache): Normal exception handling code.
5213         * break-catch-throw.c (check_status_exception_catchpoint)
5214         (re_set_exception_catchpoint): Ditto.
5215         * cli/cli-interp.c (safe_execute_command):
5216         * cli/cli-script.c (script_from_file): Ditto.
5217         * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
5218         Ditto.
5219         * compile/compile-object-run.c (compile_object_run): Ditto.
5220         * cp-abi.c (baseclass_offset): Ditto.
5221         * cp-valprint.c (cp_print_value): Ditto.
5222         * exceptions.c (catch_exceptions_with_msg):
5223         * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
5224         * frame.c (get_frame_address_in_block_if_available): Ditto.
5225         * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
5226         (i386_sigtramp_frame_cache): Ditto.
5227         * infcmd.c (post_create_inferior): Ditto.
5228         * linespec.c (parse_linespec, find_linespec_symbols):
5229         * p-valprint.c (pascal_object_print_value): Ditto.
5230         * parse.c (parse_expression_for_completion): Ditto.
5231         * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5232         * remote.c (remote_get_noisy_reply): Ditto.
5233         * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
5234         * solib-svr4.c (solib_svr4_r_map): Ditto.
5235
5236 2015-03-06  Gary Benson  <gbenson@redhat.com>
5237
5238         * common/common-utils.h (startswith): New inline function.
5239         All places where this logic was used updated to use the above.
5240
5241 2015-03-05  Pedro Alves  <palves@redhat.com>
5242
5243         PR gdb/18002
5244         * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
5245         after reading the breakpoint's shadow memory.
5246
5247 2015-03-05  Mark Kettenis  <kettenis@gnu.org>
5248
5249         * hppabsd-nat.c: Remove file.
5250         * hppaobsd-nat.c: New file.
5251         * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c.  Add
5252         hppaobsd-nat.c.
5253         * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
5254         hppaobsd-nat.o.
5255
5256 2015-03-04  Pedro Alves  <palves@redhat.com>
5257
5258         * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
5259         (target_decr_pc_after_break): Delete declaration.
5260         * target.c (default_target_decr_pc_after_break)
5261         (target_decr_pc_after_break): Delete.
5262         * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
5263         gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
5264         * linux-thread-db.c (check_event): Likewise.
5265         * infrun.c (adjust_pc_after_break): Likewise.
5266         * darwin-nat.c (cancel_breakpoint): Likewise.
5267         * aix-thread.c (aix_thread_wait): Likewise.
5268         * target-delegates.c: Regenerate.
5269
5270 2015-03-04  Pedro Alves  <palves@redhat.com>
5271
5272         * linux-nat.c (save_sigtrap): Check for breakpoints before
5273         checking watchpoints.
5274         (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
5275         breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
5276         (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
5277         a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
5278         (linux_nat_stopped_by_sw_breakpoint)
5279         (linux_nat_supports_stopped_by_sw_breakpoint)
5280         (linux_nat_stopped_by_hw_breakpoint)
5281         (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
5282         (linux_nat_wait_1): Don't re-increment the PC if relying on
5283         SIGTRAP's siginfo->si_code.
5284         (linux_nat_add_target): Install new target methods.
5285         * linux-thread-db.c (check_event): Don't account for breakpoint PC
5286         offset if the target already adjusted the PC.
5287         * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
5288         (GDB_ARCH_TRAP_BRKPT): New.
5289         (TRAP_HWBKPT): Define if not already defined.
5290
5291 2015-03-04  Pedro Alves  <palves@redhat.com>
5292
5293         * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
5294         * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
5295         Delete field.
5296         <stop_reason>: New field.
5297         (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
5298         (packet_set_cmd_state): New function.
5299         (remote_protocol_features): Register the "swbreak" and "hwbreak"
5300         features.
5301         (remote_query_supported): If not disabled with the corresponding
5302         "set remote foo-packet" command, report support for the swbreak
5303         and hwbreak features.
5304         (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
5305         field.
5306         <stop_reason>: New field.
5307         (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
5308         (remote_wait_as): Adjust.
5309         (remote_stopped_by_sw_breakpoint)
5310         (remote_supports_stopped_by_sw_breakpoint)
5311         (remote_stopped_by_hw_breakpoint)
5312         (remote_supports_stopped_by_hw_breakpoint): New functions.
5313         (remote_stopped_by_watchpoint): New function.
5314         (init_remote_ops): Install them.
5315         (_initialize_remote): Register new "set/show remote
5316         swbreak-feature-packet" and "set/show remote
5317         swbreak-feature-packet" commands.
5318
5319 2015-03-04  Pedro Alves  <palves@redhat.com>
5320
5321         * btrace.h: Include target/waitstatus.h.
5322         (struct btrace_thread_info) <stop_reason>: New field.
5323         * record-btrace.c (record_btrace_step_thread): Use
5324         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
5325         (record_btrace_decr_pc_after_break): Delete.
5326         (record_btrace_stopped_by_sw_breakpoint)
5327         (record_btrace_supports_stopped_by_sw_breakpoint)
5328         (record_btrace_stopped_by_hw_breakpoint)
5329         (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
5330         (init_record_btrace_ops): Install them.
5331         * record-full.c (record_full_hw_watchpoint): Delete and replace
5332         with ...
5333         (record_full_stop_reason): ... this throughout.
5334         (record_full_exec_insn): Adjust.
5335         (record_full_wait_1): Adjust.  No longer re-increment the PC.
5336         (record_full_wait_1): Adjust.  Use
5337         record_check_stopped_by_breakpoint instead of breakpoint_here_p.
5338         (record_full_stopped_by_watchpoint): Adjust.
5339         (record_full_stopped_by_sw_breakpoint)
5340         (record_full_supports_stopped_by_sw_breakpoint)
5341         (record_full_supports_stopped_by_sw_breakpoint)
5342         (record_full_stopped_by_hw_breakpoint)
5343         (record_full_supports_stopped_by_hw_breakpoint): New functions.
5344         (init_record_full_ops, init_record_full_core_ops): Install them.
5345         * record.c (record_check_stopped_by_breakpoint): New function.
5346         * record.h: Include target/waitstatus.h.
5347         (record_check_stopped_by_breakpoint): New declaration.
5348
5349 2015-03-04  Pedro Alves  <palves@redhat.com>
5350
5351         enum lwp_stop_reason -> enum target_stop_reason
5352         * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
5353         (linux_nat_stopped_by_watchpoint, status_callback)
5354         (linux_nat_wait_1): Adjust.
5355         * linux-nat.h (enum lwp_stop_reason): Delete.
5356         (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
5357         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
5358         * target/waitstatus.h (enum target_stop_reason): New.
5359
5360 2015-03-04  Pedro Alves  <palves@redhat.com>
5361
5362         * breakpoint.c (need_moribund_for_location_type): New function.
5363         (bpstat_stop_status): Don't skipping checking moribund locations
5364         of breakpoint types which the target tell caused a stop.
5365         (program_breakpoint_here_p): New function, factored out from ...
5366         (bp_loc_is_permanent): ... this.
5367         (update_global_location_list): Don't create a moribund location if
5368         the target supports reporting stops of the type of the removed
5369         breakpoint.
5370         * breakpoint.h (program_breakpoint_here_p): New declaration.
5371         * infrun.c (adjust_pc_after_break): Return early if the target has
5372         already adjusted the PC.  Add comments.
5373         (handle_signal_stop): If nothing explains a signal, and the target
5374         tells us the stop was caused by a software breakpoint, check if
5375         there's a breakpoint instruction in the memory.  If so, adjust the
5376         PC before presenting the stop to the user.  Otherwise, ignore the
5377         trap.  If nothing explains a signal, and the target tells us the
5378         stop was caused by a hardware breakpoint, ignore the trap.
5379         * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
5380         to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
5381         to_supports_stopped_by_hw_breakpoint>: New fields.
5382         (target_stopped_by_sw_breakpoint)
5383         (target_supports_stopped_by_sw_breakpoint)
5384         (target_stopped_by_hw_breakpoint)
5385         (target_supports_stopped_by_hw_breakpoint): Define.
5386         * target-delegates.c: Regenerate.
5387
5388 2015-03-04  Pedro Alves  <palves@redhat.com>
5389
5390         * infrun.c (follow_fork_inferior): Use the whole of the
5391         inferior_ptid and pending_follow.related_pid ptids instead of
5392         building ptids from the process components.  Adjust verbose output
5393         to use target_pid_to_str.
5394         * linux-nat.c (linux_child_follow_fork): Use the whole of the
5395         inferior_ptid and pending_follow.related_pid ptids instead of
5396         building ptids from the process components.
5397
5398 2015-03-04  Mark Kettenis  <kettenis@gnu.org>
5399
5400         * inf-ptrace.c [PT_GET_PROCESS_STATE]
5401         (inf_ptrace_insert_fork_catchpoint): New function.
5402         (inf_ptrace_remove_fork_catchpoint): New function.
5403         (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
5404
5405 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5406
5407         * s390-linux-tdep.c (s390_register_name): Return empty string
5408         instead of NULL for registers that shouldn't be visible.
5409
5410 2015-03-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5411
5412         * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
5413         XML file for 64-bit targets.
5414
5415 2015-03-03  Simon Marchi  <simon.marchi@ericsson.com>
5416
5417         * target.h (find_default_create_inferior): Remove declaration.
5418         (find_default_attach): Likewise.
5419
5420 2015-03-03  Pedro Alves  <palves@redhat.com>
5421
5422         * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
5423         Use ptid_get_pid to get the overall process id when resuming all
5424         threads.
5425
5426 2015-03-03  Pedro Alves  <palves@redhat.com>
5427
5428         * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
5429         the lwp field of ptid.  Pass the full ptid to get_thread_regcache.
5430         * inf-ptrace.c (get_ptrace_pid): New function.
5431         (inf_ptrace_resume): Use it.
5432         * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
5433         to the lower layer.
5434
5435 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
5436
5437         * nat/linux-btrace.c: Include sys/utsname.h.
5438         (linux_determine_kernel_ptr_bits): New.
5439         (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
5440         * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
5441         ptr_bits.
5442
5443 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
5444
5445         * btrace.c (ftrace_update_function): Treat return as tailcall for
5446         "_dl_runtime_resolve".
5447
5448 2015-03-03  Markus Metzger  <markus.t.metzger@intel.com>
5449
5450         * btrace.h (btrace_function) <lbegin, lend>: Remove.
5451         * btrace.c (ftrace_debug): Do not print the line range.
5452         (ftrace_skip_file, ftrace_update_lines): Remove.
5453         (ftrace_new_function): Remove lbegin and lend initialization.
5454         (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
5455         * record-btrace.c (btrace_compute_src_line_range): New.
5456         (btrace_call_history_src_line): Call btrace_compute_src_line_range.
5457
5458 2015-03-02  Pedro Alves  <palves@redhat.com>
5459
5460         * infrun.c (follow_exec): Delete all threads of the process except
5461         the event thread.  Extended comments.
5462
5463 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
5464
5465         * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
5466
5467 2015-03-02  Joel Brobecker  <brobecker@adacore.com>
5468
5469         * utils.h: Remove <stdbool.h> #include.
5470         (producer_is_gcc): Change return type to "int".
5471         * utils.c (producer_is_gcc): Change return type to int.
5472         Return 1 instead of true, and 0 instead of false.
5473         Adjust function documentation accordingly.
5474
5475 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5476
5477         * s390-linux-nat.c (have_regset_vxrs): New static variable.
5478         (s390_linux_fetch_inferior_registers): Handle vector registers, if
5479         present.
5480         (s390_linux_store_inferior_registers): Likewise.
5481         (s390_get_hwcap): Remove function.  Embed its logic...
5482         (s390_read_description): ...here.  Yield a target description with
5483         vector registers if applicable.
5484         * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
5485         "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
5486         "features/s390x-tevx-linux64.c".
5487         (struct gdbarch_tdep) <v0_full_regnum>: New field.
5488         (s390_dwarf_regmap): Add vector registers.  Remove bogus entries
5489         for "GNU/Linux-specific registers".
5490         (s390_dwarf_reg_r0l): New enum value.
5491         (s390_dwarf_reg_to_regnum): Support vector registers.
5492         (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
5493         of GPR lower halves.
5494         (regnum_is_vxr_full): New function.
5495         (s390_register_name): New function.
5496         (s390_pseudo_register_name): Handle v0-v15, which are composed of
5497         f0-f15 and v0l-v15l.
5498         (s390_pseudo_register_type): Likewise.
5499         (s390_pseudo_register_read): Likewise.
5500         (s390_pseudo_register_write): Likewise.
5501         (s390_value_from_register): Account for the fact that values are
5502         placed left-justified in vector registers.
5503         (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
5504         the vector reggroup and omit them from the general reggroup.
5505         (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
5506         (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
5507         (s390_iterate_over_regset_sections): Add iterations for the two
5508         new vector regsets.
5509         (s390_core_read_description): Yield a target description with
5510         vector registers if applicable.
5511         (s390_gdbarch_init): Handle target descriptions with vector
5512         registers.  Add "register_name" gdbarch method.
5513         (_initialize_s390_tdep): Call new tdesc initialization functions.
5514         * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
5515         (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
5516         (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
5517         (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
5518         (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
5519         (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
5520         (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
5521         (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
5522         (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
5523         (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
5524         (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
5525         (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
5526         (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
5527         (S390_NUM_REGS): Adjust value.
5528         (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
5529         (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
5530         (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
5531         * NEWS: Announce S/390 vector register support.
5532
5533 2015-03-02  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5534
5535         * features/s390-tevx-linux64.xml: New file.
5536         * features/s390-vx-linux64.xml: New file.
5537         * features/s390-vx.xml: New file.
5538         * features/s390x-tevx-linux64.xml: New file.
5539         * features/s390x-vx-linux64.xml: New file.
5540         * features/Makefile (WHICH): Add s390-vx-linux64,
5541         s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
5542         (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
5543         (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
5544         macros.
5545         * features/s390-tevx-linux64.c: New generated file.
5546         * features/s390-vx-linux64.c: Likewise.
5547         * features/s390x-tevx-linux64.c: Likewise.
5548         * features/s390x-vx-linux64.c: Likewise.
5549         * regformats/s390-tevx-linux64.dat: Likewise.
5550         * regformats/s390-vx-linux64.dat: Likewise.
5551         * regformats/s390x-tevx-linux64.dat: Likewise.
5552         * regformats/s390x-vx-linux64.dat: Likewise.
5553
5554 2015-02-28  Doug Evans  <xdje42@gmail.com>
5555
5556         * symtab.h (struct symtab) <next>: Fix comment.
5557
5558 2015-02-27  Simon Marchi  <simon.marchi@ericsson.com>
5559
5560         * python/python.c (python_GdbModuleDef): Rename GdbMethods to
5561         python_GdbMethods.
5562
5563 2015-02-27  Pedro Alves  <palves@redhat.com>
5564
5565         * dtrace-probe.c (dtrace_probe_ops): Make extern.
5566
5567 2015-02-27  Pedro Alves  <palves@redhat.com>
5568
5569         * common/common-exceptions.h (exception_none): Declare.
5570         * common/common-exceptions.c (exception_none): Moved from
5571         exceptions.c.
5572         (exceptions_state_mc_init): Use exception_none.
5573         * exceptions.c (exception_none): Move to
5574         common/common-exceptions.c.
5575         * exceptions.h (exception_none): Move to
5576         common/common-exceptions.h.
5577
5578 2015-02-27  Pedro Alves  <palves@redhat.com>
5579
5580         * main.c (catch_command_errors, catch_command_errors_const):
5581         Remove 'mask' argument.  Adjust.
5582         (captured_main): Adjust callers.
5583
5584 2015-02-27  Pedro Alves  <palves@redhat.com>
5585
5586         * python/python-internal.h: Include "extension-priv.h".
5587
5588 2015-02-27  Pedro Alves  <palves@redhat.com>
5589
5590         * breakpoint.h (enum print_stop_action): Move further up in the
5591         file.
5592
5593 2015-02-27  Pedro Alves  <palves@redhat.com>
5594
5595         * gdbarch.sh: Include regcache.h.
5596         * gdbarch.h: Regenerate.
5597
5598 2015-02-27  Pedro Alves  <palves@redhat.com>
5599
5600         * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
5601         Remove duplicate const.
5602         * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
5603         duplicate const.
5604
5605 2015-02-27  Pedro Alves  <palves@redhat.com>
5606
5607         * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
5608         * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
5609         * features/feature_to_c.sh: Tag the generated xml_builtin array
5610         with extern const in C++ mode.
5611
5612 2015-02-27  Tom Tromey  <tromey@redhat.com>
5613
5614         * minidebug.c (struct lzma_stream): Rename to ...
5615         (struct gdb_lzma_stream): ... this.
5616         (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
5617
5618 2015-02-27  Pedro Alves  <palves@redhat.com>
5619
5620         * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
5621         function.
5622         (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
5623         (mi_cmd_stack_list_variables): Use it.
5624
5625 2015-02-27  Pedro Alves  <palves@redhat.com>
5626
5627         * x86-linux-nat.c (u_debugreg_offset): New function.
5628         (x86_linux_dr_get, x86_linux_dr_set): Use it.
5629
5630 2015-02-27  Pedro Alves  <palves@redhat.com>
5631
5632         * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
5633         declaration.
5634         Include break-common.h.
5635
5636 2015-02-27  Tom Tromey  <tromey@redhat.com>
5637             Pedro Alves <palves@redhat.com>
5638
5639         * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
5640         local used to iterate over enums.
5641         * completer.c (signal_completer): Likewise.
5642         * i386-tdep.c (i386_stap_parse_special_token): Likewise.
5643         * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
5644         * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
5645         * tui/tui-layout.c (next_layout, prev_layout): Likewise.
5646         * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
5647         (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
5648         * tui-wingeneral.c (tui_refresh_all):  Likewise.
5649
5650 2015-02-27  Pedro Alves  <palves@redhat.com>
5651
5652         * target.h: Include "infrun.h".
5653
5654 2015-02-27  Pedro Alves  <palves@redhat.com>
5655
5656         * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
5657
5658 2015-02-27  Pedro Alves  <palves@redhat.com>
5659
5660         * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
5661         (IPA_SYM): Use it.
5662         * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
5663
5664 2015-02-27  Pedro Alves  <palves@redhat.com>
5665
5666         * cli-out.c (_rl_erase_entire_line): Move declaration out of
5667         cli_mld_erase_entire_line, and make it extern "C".
5668         * common/common-defs.h (EXTERN_C): New.
5669         * completer.c (_rl_completion_prefix_display_length)
5670         (_rl_print_completions_horizontally, QSFUNC): Move declarations
5671         out of gdb_display_match_list_1.
5672         (_rl_qsort_string_compare): Move declaration out of
5673         gdb_display_match_list_1, and make it extern "C".
5674         * defs.h (re_comp): Use EXTERN_C.
5675         * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
5676         and make it extern "C".
5677         (monstartup): Move declaration out of maintenance_set_profile_cmd,
5678         and make it extern "C".
5679         (main): Move declaration out of maintenance_set_profile_cmd.
5680         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
5681         EXTERN_C.
5682
5683 2015-02-27  Pedro Alves  <palves@redhat.com>
5684
5685         * python/python.c (GdbMethods): Rename to ...
5686         (python_GdbMethods): ... this and make extern.
5687         (GdbModuleDef): Rename to ...
5688         (python_GdbModuleDef): ... this and make extern.
5689
5690 2015-02-27  Pedro Alves  <palves@redhat.com>
5691
5692         * record-btrace.c (set_record_btrace_cmdlist)
5693         (show_record_btrace_cmdlist): Remove redefinitions.
5694
5695 2015-02-27  Tom Tromey  <tromey@redhat.com>
5696             Pedro Alves  <palves@redhat.com>
5697
5698         * dwarf2-frame.c (enum cfa_how_kind, struct
5699         dwarf2_frame_state_reg_info): Move out of struct
5700         dwarf2_frame_state.
5701         * dwarf2read.c (struct tu_stats): Move out of struct
5702         dwarf2_per_objfile.
5703         (struct file_entry): Move out of struct line_header.
5704         (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
5705         typedef_field_list): Move out of struct field_info.
5706         * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
5707         Move out of struct dynamic_prop.
5708         (union type_owner, union field_location, struct field, struct
5709         range_bounds, union type_specific): Move out of struct main_type.
5710         (struct fn_fieldlist, struct fn_field, struct typedef_field)
5711         (VOFFSET_STATIC): Move out of struct cplus_struct_type.
5712         (struct call_site_target, union call_site_parameter_u, struct
5713         call_site_parameter): Move out of struct call_site.
5714         * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
5715         m32c_prologue.
5716         (enum srcdest_kind): Move out of struct srcdest.
5717         * main.c (enum cmdarg_kind): Move out of struct cmdarg.
5718         * prologue-value.h (enum prologue_value_kind): Move out of struct
5719         prologue_value.
5720         * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
5721         gdbarch_tdep.
5722         * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
5723         out of struct field_info.
5724         * symfile.h (struct other_sections): Move out of struct
5725         section_addr_info.
5726         * symtab.c (struct symbol_cache_slot): Move out struct
5727         block_symbol_cache.
5728         * target-descriptions.c (enum tdesc_type_kind): Move out of
5729         typedef struct tdesc_type.
5730         * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
5731         struct tui_line_or_address.
5732         * value.c (enum internalvar_kind, union internalvar_data): Move
5733         out of struct internalvar.
5734         * xtensa-tdep.h (struct ctype_cache): Move out of struct
5735         gdbarch_tdep.
5736
5737 2015-02-27  Tom Tromey  <tromey@redhat.com>
5738             Pedro Alves  <palves@redhat.com>
5739
5740         Rename symbols whose names are reserved C++ keywords throughout.
5741
5742 2015-02-27  Pedro Alves  <palves@redhat.com>
5743
5744         * Makefile.in (COMPILER): New, get it from autoconf.
5745         (COMPILE.pre, CC_LD): Use COMPILER.
5746         (CXX): Get from autoconf instead.
5747         (CXX_FOR_TARGET): Default to g++ instead of gcc.
5748         * acinclude.m4: Include build-with-cxx.m4.
5749         * build-with-cxx.m4: New file.
5750         * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
5751         Disable -Werror by default if building in C++ mode.
5752         (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
5753         -Wno-narrowing in C++ mode.  Only enable -Wpointer-sign in C mode.
5754         Run supported-warning-flags tests with the C++ compiler.
5755         Save/restore CXXFLAGS too.
5756         * configure: Regenerate.
5757
5758 2015-02-27  Pedro Alves  <palves@redhat.com>
5759
5760         * libiberty.m4: New file.
5761         * acinclude.m4: Include libiberty.m4.
5762         * configure.ac: Call libiberty_INIT.
5763         * config.in, configure: Regenerate.
5764
5765 2015-02-27  Andreas Arnez  <arnez@linux.vnet.ibm.com>
5766
5767         * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
5768         31-bit targets, but 64-bit targets as well.
5769         (s390_gnu_triplet_regexp): New function.
5770         (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
5771         64-bit targets as well.  Set the gnu_triplet_regexp gdbarch
5772         method.
5773
5774 2015-02-27  Jon TURNEY  <jon.turney@dronecode.org.uk>  (tiny patch)
5775
5776         * windows-nat.c (CONTEXT_DEBUGGER): Remove.
5777         (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS.  Incorporate flags
5778         from CONTEXT_DEBUGGER.
5779
5780 2015-02-26  Doug Evans  <dje@google.com>
5781
5782         * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
5783         CHECK_TYPEDEF.
5784         (set_type_vptr_fieldno): Ditto.
5785         (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
5786         * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
5787
5788 2015-02-26  Pedro Alves  <palves@redhat.com>
5789
5790         * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
5791         * complaints.c (vcomplaint): Pass argument FMT directly to
5792         printf-like functions instead of complaint->fmt.
5793         * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
5794         * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
5795         * compile/compile-loc2c.c (pushf, unary, binary): Add
5796         ATTRIBUTE_PRINTF.
5797         (do_compile_dwarf_expr_to_c): Pass string literal as format string
5798         to pushf.
5799         (BINARY): Pass string literal as format string to 'binary'.
5800         * compile/compile-object-load.c (link_callbacks_einfo): Add
5801         ATTRIBUTE_PRINTF.
5802         * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
5803
5804 2015-02-26  Pedro Alves  <palves@redhat.com>
5805
5806         * windows-termcap.c: Rename to ...
5807         * stub-termcap.c: ... this.  Adjust header line.
5808         * Makefile.in (SFILES): Refer to stub-termcap.c instead of
5809         windows-termcap.c.
5810         * configure: Regenerate.
5811         * configure.ac: Refer to stub-termcap.o instead of
5812         windows-termcap.o.
5813         * gdb_curses.h: Mention stub-termcap.c instead of
5814         windows-termcap.c.
5815
5816 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5817
5818         * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
5819         (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
5820
5821 2015-02-26  Antoine Tremblay  <antoine.tremblay@ericsson.com>
5822
5823         * gdb/infcmd.c (print_return_value): use type_to_string to print type.
5824
5825 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5826
5827         * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
5828         bfd_canonicalize_symtab.
5829
5830 2015-02-25  John Baldwin  <jhb@FreeBSD.org>
5831
5832         * amd64fbsd-nat.c: Include sys/user.h.
5833         (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
5834         instead of KERN_PS_STRINGS to locate the signal trampoline.
5835         * i386fbsd-nat.c: Include sys/user.h.
5836         (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
5837         instead of KERN_PS_STRINGS to locate the signal trampoline.
5838         * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
5839         (amd64fbsd_sigtramp_p): New.
5840         (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
5841         longer set default values.
5842         (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
5843         * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
5844         (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
5845         (i386fbsd_freebsd4_sigtramp_start)
5846         (i386fbsd_freebsd4_sigtramp_middle)
5847         (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
5848         (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
5849         (i386fbsd_sigtramp_p): New.
5850         (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
5851         longer set default values.
5852         (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
5853
5854 2015-02-25  John Baldwin  <jhb@freebsd.org>
5855
5856         * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
5857         get_frame_register instead of frame_unwind_register_unsigned.
5858
5859 2015-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
5860
5861         PR build/18033
5862         * compile/compile-c-support.c (c_compute_program): Change // comment.
5863         * compile/compile-object-load.c (setup_sections): Change // comment.
5864
5865 2015-02-26  Joel Brobecker  <brobecker@adacore.com>
5866
5867         PR build/18033:
5868         * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
5869
5870 2015-02-23  Pedro Alves  <palves@redhat.com>
5871
5872         * remote.c (skip_to_semicolon): New function.
5873         (remote_parse_stop_reply) <T stop reply>: Use it.  Don't
5874         special case the stop reasons that look like hex numbers
5875         upfront.  Instead handle real register numbers after matching
5876         all the known stop reasons.
5877
5878 2015-02-21  Doug Evans  <dje@google.com>
5879
5880         PR c++/17976, symtab/17821
5881         * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
5882         is_in_anonymous.  All callers updated.
5883         (find_symbol_in_baseclass): Ditto.
5884         (cp_lookup_nested_symbol_1): Ditto.  Don't search all static blocks
5885         for symbols in an anonymous namespace.
5886         * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
5887         DW_AT_name directly.
5888         (dwarf2_name): Convert missing namespace name to
5889         CP_ANONYMOUS_NAMESPACE_STR.
5890
5891 2015-02-20  Pedro Alves  <palves@redhat.com>
5892
5893         * linux-nat.c (linux_handle_extended_wait): Call
5894         thread_db_notice_clone whenever a new clone LWP is detected.
5895         (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
5896         functions.
5897         * linux-nat.h (thread_db_attach_lwp): Delete declaration.
5898         (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
5899         (linux_unstop_all_lwps): Declare.
5900         * linux-thread-db.c (struct thread_get_info_inout): Delete.
5901         (thread_get_info_callback): Delete.
5902         (thread_from_lwp): Use td_thr_get_info and record_thread.
5903         (thread_db_attach_lwp): Delete.
5904         (thread_db_notice_clone): New function.
5905         (try_thread_db_load_1): If /proc is mounted and shows the
5906         process'es task list, walk over all LWPs and call thread_from_lwp
5907         instead of relying on td_ta_thr_iter.
5908         (attach_thread): Don't call check_thread_signals here.  Split the
5909         tail part of the function (which adds the thread to the core GDB
5910         thread list) to ...
5911         (record_thread): ... this function.  Call check_thread_signals
5912         here.
5913         (thread_db_wait): Don't call thread_db_find_new_threads_1.  Always
5914         call thread_from_lwp.
5915         (thread_db_update_thread_list): Rename to ...
5916         (thread_db_update_thread_list_org): ... this.
5917         (thread_db_update_thread_list): New function.
5918         (thread_db_find_thread_from_tid): Delete.
5919         (thread_db_get_ada_task_ptid): Simplify.
5920         * nat/linux-procfs.c: Include <sys/stat.h>.
5921         (linux_proc_task_list_dir_exists): New function.
5922         * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
5923
5924 2015-02-20  Pedro Alves  <palves@redhat.com>
5925
5926         * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
5927         main LWP.  Handle the case of waitpid returning 0 if we're already
5928         attached to the LWP.  Don't set the LWP's last_resume_kind to
5929         resume_stop if we already knew about the LWP.
5930         (linux_nat_filter_event): Add debug logs.
5931
5932 2015-02-20  Pedro Alves  <palves@redhat.com>
5933
5934         * target.h (forward_target_decr_pc_after_break): Delete
5935         declaration.
5936
5937 2015-02-20  Pedro Alves  <palves@redhat.com>
5938
5939         PR threads/18006
5940         * linux-thread-db.c (thread_get_info_callback): Return early if
5941         the thread's lwp id is -1.
5942
5943 2015-02-20  Joel Brobecker  <brobecker@adacore.com>
5944
5945         GDB 7.9 released.
5946
5947 2015-02-19  Steve Ellcey  <sellcey@imgtec.com>
5948
5949         * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
5950         (dtrace_get_probes) Change type of variable 'dof'.
5951
5952 2015-02-19  Antoine Tremblay  <antoine.tremblay@ericsson.com>
5953
5954         PR breakpoints/16812
5955         * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
5956         * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
5957         * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
5958
5959 2015-02-19  David Taylor  <dtaylor@emc.com>
5960
5961         * common/ax.def (setv): Fix consumed entry in setv DEFOP.
5962
5963 2015-02-18  Patrick Palka  <patrick@parcs.ath.cx>
5964
5965         * tui/tui-io.c (tui_handle_resize_during_io): Remove this
5966         function.
5967         (tui_putc): Don't call tui_handle_resize_during_io.
5968         (tui_getc): Likewise.
5969         (tui_mld_getc): Likewise.
5970         * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
5971         (tui_sigwinch_token): New static variable.
5972         (tui_initialize_win): Adjust documentation.  Set
5973         tui_sigwinch_token.
5974         (tui_async_resize_screen): New asynchronous callback.
5975         (tui_sigwinch_handler): Adjust documentation.  Asynchronously
5976         invoke tui_async_resize_screen.
5977
5978 2015-02-18  Jose E. Marchesi  <jose.marchesi@oracle.com>
5979
5980         * configure: Regenerated.
5981         * configure.ac: Use GDB_AC_TRANSFORM.
5982         * Makefile.in (aclocal_m4_deps): Added transform.m4.
5983         * acinclude.m4: sinclude transform.m4.
5984         * transform.m4: New file.
5985         (GDB_AC_TRANSFORM): New macro.
5986
5987 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
5988
5989         * NEWS: Announce the support for DTrace SDT probes.
5990
5991 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
5992
5993         * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
5994         (amd64_dtrace_parse_probe_argument): New function.
5995         (amd64_dtrace_probe_is_enabled): Likewise.
5996         (amd64_dtrace_enable_probe): Likewise.
5997         (amd64_dtrace_disable_probe): Likewise.
5998         (amd64_linux_init_abi): Register the
5999         `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
6000         `gdbarch_dtrace_disable_probe' and
6001         `gdbarch_dtrace_probe_is_enabled' hooks.
6002         (amd64_dtrace_disabled_probe_sequence_1): New constant.
6003         (amd64_dtrace_disabled_probe_sequence_2): Likewise.
6004         (amd64_dtrace_enable_probe_sequence): Likewise.
6005         (amd64_dtrace_disable_probe_sequence): Likewise.
6006
6007 2015-01-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
6008
6009         * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
6010         the -probe-dtrace new vpossible value for PROBE_MODIFIER.
6011         * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
6012         handle ELF files.
6013         * Makefile.in (SFILES): dtrace-probe.c added.
6014         * configure: Regenerate.
6015         * dtrace-probe.c: New file.
6016         (SHT_SUNW_dof): New constant.
6017         (dtrace_probe_type): New enum.
6018         (dtrace_probe_arg): New struct.
6019         (dtrace_probe_arg_s): New typedef.
6020         (struct dtrace_probe_enabler): New struct.
6021         (dtrace_probe_enabler_s): New typedef.
6022         (dtrace_probe): New struct.
6023         (dtrace_probe_is_linespec): New function.
6024         (dtrace_dof_sect_type): New enum.
6025         (dtrace_dof_dofh_ident): Likewise.
6026         (dtrace_dof_encoding): Likewise.
6027         (DTRACE_DOF_ENCODE_LSB): Likewise.
6028         (DTRACE_DOF_ENCODE_MSB): Likewise.
6029         (dtrace_dof_hdr): New struct.
6030         (dtrace_dof_sect): Likewise.
6031         (dtrace_dof_provider): Likewise.
6032         (dtrace_dof_probe): Likewise.
6033         (DOF_UINT): New macro.
6034         (DTRACE_DOF_PTR): Likewise.
6035         (DTRACE_DOF_SECT): Likewise.
6036         (dtrace_process_dof_probe): New function.
6037         (dtrace_process_dof): Likewise.
6038         (dtrace_build_arg_exprs): Likewise.
6039         (dtrace_get_arg): Likewise.
6040         (dtrace_get_probes): Likewise.
6041         (dtrace_get_probe_argument_count): Likewise.
6042         (dtrace_can_evaluate_probe_arguments): Likewise.
6043         (dtrace_evaluate_probe_argument): Likewise.
6044         (dtrace_compile_to_ax): Likewise.
6045         (dtrace_probe_destroy): Likewise.
6046         (dtrace_gen_info_probes_table_header): Likewise.
6047         (dtrace_gen_info_probes_table_values): Likewise.
6048         (dtrace_probe_is_enabled): Likewise.
6049         (dtrace_probe_ops): New variable.
6050         (info_probes_dtrace_command): New function.
6051         (_initialize_dtrace_probe): Likewise.
6052         (dtrace_type_name): Likewise.
6053
6054 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
6055
6056         * gdbarch.sh (dtrace_parse_probe_argument): New.
6057         (dtrace_probe_is_enabled): Likewise.
6058         (dtrace_enable_probe): Likewise.
6059         (dtrace_disable_probe): Likewise.
6060         * gdbarch.c: Regenerate.
6061         * gdbarch.h: Regenerate.
6062
6063 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
6064
6065         * stap-probe.c (stap_probe_ops): Add NULLs in the static
6066         stap_probe_ops for `enable_probe' and `disable_probe'.
6067         * probe.c (enable_probes_command): New function.
6068         (disable_probes_command): Likewise.
6069         (_initialize_probe): Define the cli commands `enable probe' and
6070         `disable probe'.
6071         (parse_probe_linespec): New function.
6072         (info_probes_for_ops): Use parse_probe_linespec.
6073         * probe.h (probe_ops): New hooks `enable_probe' and
6074         `disable_probe'.
6075
6076 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
6077
6078         * probe.c (compute_probe_arg): Moved from stap-probe.c
6079         (compile_probe_arg): Likewise.
6080         (probe_funcs): Likewise.
6081         * stap-probe.c (compute_probe_arg): Moved to probe.c.
6082         (compile_probe_arg): Likewise.
6083         (probe_funcs): Likewise.
6084
6085 2015-02-17  Jose E. Marchesi  <jose.marchesi@oracle.com>
6086
6087         * probe.c (print_ui_out_not_applicables): New function.
6088         (exists_probe_with_pops): Likewise.
6089         (info_probes_for_ops): Do not include column headers for probe
6090         types for which no probe has been actually found on any object.
6091         Also invoke `print_ui_out_not_applicables' in order to match the
6092         column rows with the header when probes of several types are
6093         listed.
6094         Print the "Type" column.
6095         * probe.h (probe_ops): Added a new probe operation `type_name'.
6096         * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
6097         (stap_type_name): New function.
6098
6099 2015-02-17  Patrick Palka  <patrick@parcs.ath.cx>
6100
6101         * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
6102         (key_is_command_char): Delete.
6103
6104 2015-02-17  Pedro Alves  <palves@redhat.com>
6105
6106         * tui/tui.c (tui_enable): Resize windows before anything
6107         might show a window.
6108
6109 2015-02-17  Max Ostapenko  <m.ostapenko@partner.samsung.com>
6110
6111         PR gdb/17984
6112         * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
6113         (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
6114         call.
6115         * aarch64-tdep.h (tdesc_aarch64): Declare.
6116
6117 2015-02-12  Mark Wielaard  <mjw@redhat.com>
6118
6119         * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
6120
6121 2015-02-13  Doug Evans  <dje@google.com>
6122
6123         * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
6124         anonymous_namespace to is_in_anonymous for consistency with the rest
6125         of the file.
6126         (cp_lookup_bare_symbol): Fix typo in comment.
6127         (cp_search_static_and_baseclasses): Ditto.
6128         (search_symbol_list): Use vertical space in comment better.
6129         (reset_directive_searched): Ditto. Fix typo.
6130         (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
6131
6132 2015-02-13  Yao Qi  <yao.qi@arm.com>
6133
6134         * MAINTAINERS: Update my email address.
6135
6136 2015-02-12  Doug Evans  <dje@google.com>
6137
6138         * symtab.c (completion_list_add_name): Fix memory leak.
6139
6140 2015-02-12  Doug Evans  <dje@google.com>
6141
6142         * completer.c (complete_line): Remove incorrect comment.
6143
6144 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6145
6146         * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
6147         (py_print_frame): Use RETURN_MASK_ERROR.
6148
6149 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6150
6151         * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
6152         function comment.  Wrap all function that can throw in cleanups.
6153         (gdbpy_apply_frame_filter): Wrap all function that can throw in
6154         cleanups.
6155
6156 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6157
6158         * python/py-framefilter.c (py_print_frame): Substitute goto error.
6159         Remove the error label.
6160
6161 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6162
6163         * python/py-framefilter.c (py_print_frame): Put conditional code paths
6164         with goto first, indent the former else codepath left.  Put variable
6165         'elided' to a new inner block.
6166
6167 2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
6168
6169         * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
6170
6171 2015-02-11  Pedro Alves  <palves@redhat.com>
6172
6173         * xcoffread.c (within_function): Delete.
6174
6175 2015-02-11  Tom Tromey  <tromey@redhat.com>
6176             Pedro Alves <palves@redhat.com>
6177
6178         * breakpoint.c (base_breakpoint_ops): Delete.
6179         * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
6180         * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
6181         * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
6182         * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
6183         * python/py-arch.c (arch_object_type): Make extern.
6184         * python/py-block.c (block_syms_iterator_object_type): Make extern.
6185         * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
6186         * python/py-cmd.c (cmdpy_object_type): Make extern.
6187         * python/py-continueevent.c (continue_event_object_type)
6188         * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
6189         parameter.  Update all callers.
6190         * python/py-evtregistry.c (eventregistry_object_type): Make extern.
6191         * python/py-exitedevent.c (exited_event_object_type): Make extern.
6192         * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
6193         * python/py-function.c (fnpy_object_type): Make extern.
6194         * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
6195         * python/py-infevents.c (call_pre_event_object_type)
6196         (inferior_call_post_event_object_type).
6197         (memory_changed_event_object_type): Make extern.
6198         * python/py-infthread.c (thread_object_type): Make extern.
6199         * python/py-lazy-string.c (lazy_string_object_type): Make extern.
6200         * python/py-linetable.c (linetable_entry_object_type)
6201         (linetable_object_type, ltpy_iterator_object_type): Make extern.
6202         * python/py-newobjfileevent.c (new_objfile_event_object_type)
6203         (clear_objfiles_event_object_type): Make extern.
6204         * python/py-objfile.c (objfile_object_type): Make extern.
6205         * python/py-param.c (parmpy_object_type): Make extern.
6206         * python/py-progspace.c (pspace_object_type): Make extern.
6207         * python/py-signalevent.c (signal_event_object_type): Make extern.
6208         * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
6209         * python/py-type.c (type_object_type, field_object_type)
6210         (type_iterator_object_type): Make extern.
6211         * python/python.c (python_extension_script_ops)
6212         (python_extension_ops): Make extern.
6213         * stap-probe.c (stap_probe_ops): Make extern.
6214
6215 2015-02-11  Pedro Alves  <pedro@codesourcery.com>
6216
6217         * infrun.c (adjust_pc_after_break): Don't adjust the PC just
6218         because the event thread is not the current thread.
6219
6220 2015-02-11  Doug Evans  <xdje42@gmail.com>
6221
6222         * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
6223         been initialized yet, return NULL.
6224
6225 2015-02-11  Doug Evans  <dje@google.com>
6226
6227         * symfile.h (new_symfile_objfile): Delete.
6228         * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
6229         All callers updated.
6230
6231 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
6232
6233         * tui/tui-io.c (tui_handle_resize_during_io): Call
6234         tui_update_gdb_sizes() after resizing the screen.
6235         * tui/tui.c (tui_enable): Resize the terminal before
6236         calling tui_update_gdb_sizes().
6237
6238 2015-02-11  Patrick Palka  <patrick@parcs.ath.cx>
6239
6240         * tui/tui-io.c (tui_getc): Move cursor to the end of the command
6241         line before printing a newline.
6242
6243 2015-02-11  Mark Wielaard  <mjw@redhat.com>
6244
6245         * utils.c (producer_is_gcc): Return true or false.
6246
6247 2015-02-10  Mark Wielaard  <mjw@redhat.com>
6248
6249         * utils.h (producer_is_gcc): Change return type to bool. Add major
6250         argument.
6251         * utils.c (producer_is_gcc): Likewise.
6252         (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
6253         * dwarf2read.c (check_producer): Likewise.
6254
6255 2015-02-10  Pedro Alves  <palves@redhat.com>
6256
6257         * infrun.c (displaced_step_fixup): Switch to the event thread
6258         before calling gdbarch_displaced_step_fixup.
6259
6260 2015-02-10  Antoine Tremblay <antoine.tremblay@ericsson.com>
6261
6262         * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
6263
6264 2015-02-10  Simon Marchi  <simon.marchi@ericsson.com>
6265
6266         * ada-varobj.c (ada_name_of_child): Constify parent.
6267         (ada_path_expr_of_child): Same.
6268         (ada_value_of_child): Same.
6269         (ada_type_of_child): Same.
6270         * c-varobj.c (c_is_path_expr_parent): Same.
6271         (c_describe_child): Same.
6272         (c_name_of_child): Same.
6273         (c_value_of_child): Same.
6274         (c_type_of_child): Same.
6275         (cplus_number_of_children): Same.
6276         (cplus_describe_child): Constify var.
6277         (cplus_name_of_child): Constify parent.
6278         (cplus_value_of_child): Same.
6279         (cplus_type_of_child): Same.
6280         * jv-varobj.c (java_name_of_child): Same.
6281         (java_value_of_child): Same.
6282         (java_type_of_child): Same.
6283         * varobj.c (value_of_child): Same.
6284         (varobj_default_is_path_expr_parent): Constify var, parent and return
6285         value.
6286         (varobj_get_path_expr): Constify var, modify path_expr through
6287         mutable_var.
6288         (install_new_value): Constify parent.
6289         (value_of_child): Constify parent.
6290         * varobj.h (struct varobj): Constify parent.
6291         (struct lang_varobj_ops): Constify name_of_child, value_of_child and
6292         type_of_child.
6293         (varobj_get_path_expr): Constify var.
6294         (varobj_get_path_expr_parent): Constify var and return value.
6295
6296 2015-02-10  Luis Machado  <lgustavo@codesourcery.com>
6297
6298         * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
6299         (arm_prologue_this_id): Move PC and SP limit checks to
6300         arm_prologue_unwind_stop_reason.
6301         (arm_prologue_unwind) <stop_reason> : Set to
6302         arm_prologue_unwind_stop_reason.
6303
6304 2015-02-09  Mark Wielaard  <mjw@redhat.com>
6305
6306         * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
6307         DW_LANG_Fortran08 as language_fortran.
6308
6309 2015-02-09  Sergio Durigan Junior  <sergiodj@redhat.com>
6310
6311         PR remote/17946
6312         * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
6313         of pointer against char.
6314
6315 2015-02-09  Mark Wielaard  <mjw@redhat.com>
6316
6317         * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
6318         (c_type_print_modifier): Likewise.
6319         * dwarf2read.c (read_tag_atomic_type): New function.
6320         (read_type_die_1): Handle DW_TAG_atomic_type.
6321         * gdbtypes.c (make_atomic_type): New function.
6322         (recursive_dump_type): Handle TYPE_ATOMIC.
6323         * gdbtypes.h (enum type_flag_values): Renumber.
6324         (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
6325         (TYPE_ATOMIC): New macro.
6326         (make_atomic_type): Declare.
6327
6328 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6329
6330         * btrace.c (ftrace_find_call): Skip gaps.
6331         (ftrace_new_function): Initialize level.
6332         (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
6333         (ftrace_new_switch): Update
6334         level computation.
6335         (ftrace_new_gap): New.
6336         (ftrace_update_function): Create new function after gap.
6337         (btrace_compute_ftrace_bts): Create gap on error.
6338         (btrace_stitch_bts): Update parameters.  Clear trace if it
6339         becomes empty.
6340         (btrace_stitch_trace): Update parameters.  Update callers.
6341         (btrace_clear): Reset the number of gaps.
6342         (btrace_insn_get): Return NULL if the iterator points to a gap.
6343         (btrace_insn_number): Return zero if the iterator points to a gap.
6344         (btrace_insn_end): Allow gaps at the end.
6345         (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
6346         (btrace_find_insn_by_number): Assert that the found iterator does
6347         not point to a gap.
6348         (btrace_call_next, btrace_call_prev): Assert that the last function
6349         is not a gap.
6350         * btrace.h (btrace_bts_error): New.
6351         (btrace_function): Update comment.
6352         (btrace_function) <insn, insn_offset, number>: Update comment.
6353         (btrace_function) <errcode>: New.
6354         (btrace_thread_info) <ngaps>: New.
6355         (btrace_thread_info) <replay>: Update comment.
6356         (btrace_insn_get): Update comment.
6357         * record-btrace.c (btrace_ui_out_decode_error): New.
6358         (record_btrace_info): Print number of gaps.
6359         (btrace_insn_history, btrace_call_history): Call
6360         btrace_ui_out_decode_error for gaps.
6361         (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
6362
6363 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6364
6365         * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
6366         * nat/linux-btrace.c: (btrace_this_cpu): New.
6367         (cpu_supports_bts): Call btrace_this_cpu.
6368         (intel_supports_bts): Add cpu parameter.
6369
6370 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6371
6372         * btrace.h (btrace_insn_class): New.
6373         (btrace_insn) <size, iclass>: New.
6374         * btrace.c (ftrace_find_call): Update parameters.  Update users.
6375         Use instruction classification.
6376         (ftrace_new_return): Update parameters.  Update users.
6377         (ftrace_update_function): Update parameters.  Update users.  Use
6378         instruction classification.
6379         (ftrace_update_insns): Update parameters.  Update users.
6380         (ftrace_classify_insn): New.
6381         (btrace_compute_ftrace_bts): Fill in new btrace_insn fields.  Add
6382         TRY_CATCH around call to gdb_insn_length.
6383
6384 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6385
6386         * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
6387         Update parameters.  Update users.
6388
6389 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6390
6391         * btrace.c (parse_xml_btrace_conf_bts): Add size.
6392         (btrace_conf_bts_attributes): New.
6393         (btrace_conf_children): Add attributes.
6394         * common/btrace-common.h (btrace_config_bts): New.
6395         (btrace_config)<bts>: New.
6396         (btrace_config): Update comment.
6397         * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
6398         Use config.
6399         * features/btrace-conf.dtd: Increment version.  Add size
6400         attribute to bts element.
6401         * record-btrace.c (set_record_btrace_bts_cmdlist,
6402         show_record_btrace_bts_cmdlist): New.
6403         (record_btrace_adjust_size, record_btrace_print_bts_conf,
6404         record_btrace_print_conf, cmd_set_record_btrace_bts,
6405         cmd_show_record_btrace_bts): New.
6406         (record_btrace_info): Call record_btrace_print_conf.
6407         (_initialize_record_btrace): Add commands.
6408         * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
6409         (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
6410         (btrace_sync_conf): Synchronize bts size.
6411         (_initialize_remote): Add Qbtrace-conf:bts:size packet.
6412         * NEWS: Announce new commands and new packets.
6413
6414 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6415
6416         * Makefile.in (XMLFILES): Add btrace-conf.dtd.
6417         * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
6418         (x86_linux_btrace_conf): New.
6419         (x86_linux_create_target): Initialize to_btrace_conf.
6420         * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
6421         Check format.  Split into this and ...
6422         (linux_enable_bts): ... this.
6423         (linux_btrace_conf): New.
6424         (perf_event_skip_record): Renamed into ...
6425         (perf_event_skip_bts_record): ... this.  Updated users.
6426         (linux_disable_btrace): Split into this and ...
6427         (linux_disable_bts): ... this.
6428         (linux_read_btrace): Check format.
6429         * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
6430         (linux_btrace_conf): New.
6431         (btrace_target_info)<ptid>: Moved.
6432         (btrace_target_info)<conf>: New.
6433         (btrace_target_info): Split into this and ...
6434         (btrace_tinfo_bts): ... this.  Updated users.
6435         * btrace.c (btrace_enable): Update parameters.
6436         (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
6437         (btrace_conf_children, btrace_conf_attributes)
6438         (btrace_conf_elements): New.
6439         * btrace.h (btrace_enable): Update parameters.
6440         (btrace_conf, parse_xml_btrace_conf): New.
6441         * common/btrace-common.h (btrace_config): New.
6442         * feature/btrace-conf.dtd: New.
6443         * record-btrace.c (record_btrace_conf): New.
6444         (record_btrace_cmdlist): New.
6445         (record_btrace_enable_warn, record_btrace_open): Pass
6446         &record_btrace_conf.
6447         (record_btrace_info): Print recording format.
6448         (cmd_record_btrace_bts_start): New.
6449         (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
6450         (_initialize_record_btrace): Add "record btrace bts" subcommand.
6451         Add "record bts" alias command.
6452         * remote.c (remote_state)<btrace_config>: New.
6453         (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
6454         (remote_protocol_features): Add qXfer:btrace-conf:read.
6455         (remote_open_1): Call remote_btrace_reset.
6456         (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
6457         (btrace_target_info)<conf>: New.
6458         (btrace_sync_conf, btrace_read_config): New.
6459         (remote_enable_btrace): Update parameters.  Call btrace_sync_conf and
6460         btrace_read_conf.
6461         (remote_btrace_conf): New.
6462         (init_remote_ops): Initialize to_btrace_conf.
6463         (_initialize_remote): Add qXfer:btrace-conf packet.
6464         * target.c (target_enable_btrace): Update parameters.
6465         (target_btrace_conf): New.
6466         * target.h (target_enable_btrace): Update parameters.
6467         (target_btrace_conf): New.
6468         (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
6469         (target_ops)<to_enable_btrace>: Update parameters and comment.
6470         (target_ops)<to_btrace_conf>: New.
6471         * target-delegates: Regenerate.
6472         * target-debug.h (target_debug_print_const_struct_btrace_config_p)
6473         (target_debug_print_const_struct_btrace_target_info_p): New.
6474         * NEWS: Announce new command and new packet.
6475
6476 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6477
6478         * nat/linux-btrace.h (perf_event_buffer): New.
6479         (btrace_target_info) <buffer, size, data_head>: Replace with ...
6480         <bts>: ... this.
6481         * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
6482         (perf_event_buffer_size, perf_event_buffer_begin)
6483         (perf_event_buffer_end, linux_btrace_has_changed): Removed.
6484         Updated users.
6485         (perf_event_new_data): New.
6486
6487 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6488
6489         * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
6490         * record-btrace.c (record_btrace_open): Remove call to
6491         target_supports_btrace.
6492         * remote.c (remote_supports_btrace): Update parameters.
6493         * target.c (target_supports_btrace): Update parameters.
6494         * target.h (to_supports_btrace, target_supports_btrace): Update
6495         parameters.
6496         * target-delegates.c: Regenerate.
6497         * target-debug.h (target_debug_print_enum_btrace_format): New.
6498         * nat/linux-btrace.c
6499         (kernel_supports_btrace): Rename into ...
6500         (kernel_supports_bts): ... this.  Update users.  Update warning text.
6501         (intel_supports_btrace): Rename into ...
6502         (intel_supports_bts): ... this.  Update users.
6503         (cpu_supports_btrace): Rename into ...
6504         (cpu_supports_bts): ... this.  Update users.
6505         (linux_supports_btrace): Update parameters.  Split into this and ...
6506         (linux_supports_bts): ... this.
6507         * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
6508
6509 2015-02-09  Markus Metzger  <markus.t.metzger@intel.com>
6510
6511         * Makefile.in (SFILES): Add common/btrace-common.c.
6512         (COMMON_OBS): Add common/btrace-common.o.
6513         (btrace-common.o): Add build rules.
6514         * btrace.c (parse_xml_btrace): Update parameters.
6515         (parse_xml_btrace_block): Set format field.
6516         (btrace_add_pc, btrace_fetch): Use struct btrace_data.
6517         (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
6518         (btrace_compute_ftrace): Split into this and...
6519         (btrace_compute_ftrace_bts): ...this.
6520         (btrace_stitch_trace): Split into this and...
6521         (btrace_stitch_bts): ...this.
6522         * btrace.h (parse_xml_btrace): Update parameters.
6523         (make_cleanup_btrace_data): New.
6524         * common/btrace-common.c: New.
6525         * common/btrace-common.h: Include common-defs.h.
6526         (btrace_block_s): Update comment.
6527         (btrace_format): New.
6528         (btrace_format_string): New.
6529         (btrace_data_bts): New.
6530         (btrace_data): New.
6531         (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
6532         * remote.c (remote_read_btrace): Update parameters.
6533         * target.c (target_read_btrace): Update parameters.
6534         * target.h (target_read_btrace): Update parameters.
6535         (target_ops)<to_read_btrace>: Update parameters.
6536         * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
6537         * target-delegates.c: Regenerate.
6538         * target-debug (target_debug_print_struct_btrace_data_p): New.
6539         * nat/linux-btrace.c (linux_read_btrace): Split into this and...
6540         (linux_read_bts): ...this.
6541         * nat/linux-btrace.h (linux_read_btrace): Update parameters.
6542
6543 2015-02-06  Doug Evans  <dje@google.com>
6544
6545         * remote-m32r-sdi.c: Include symfile.h.
6546
6547 2015-02-06  Doug Evans  <dje@google.com>
6548
6549         * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
6550         * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
6551         to here.
6552
6553 2015-02-06  Pedro Alves  <palves@redhat.com>
6554
6555         * linux-thread-db.c (find_new_threads_callback): Add debug output.
6556
6557 2015-02-06  Simon Marchi  <simon.marchi@ericsson.com>
6558
6559         PR gdb/15678
6560         * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
6561         (enable_count_command): Check args for NULL value.
6562
6563 2015-02-05  Doug Evans  <xdje42@gmail.com>
6564
6565         * guile/scm-frame.c: Fix spelling errors in a comment.
6566
6567 2015-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
6568
6569         * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
6570         * python/py-value.c (valpy_fetch_lazy): Use it.  Remove cast to the
6571         return type.
6572
6573 2015-02-04  Pedro Alves  <palves@redhat.com>
6574
6575         * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
6576         (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
6577         returns true.
6578         (resume_stopped_resumed_lwps): Don't check whether the thread is
6579         marked as executing.
6580         (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
6581
6582 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6583
6584         * regset.h (struct regset): Add flags field.
6585         (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
6586         * corelow.c (get_core_register_section): Add warning if the size
6587         exceeds the requested size and the regset does not have the
6588         REGSET_VARIABLE_SIZE flag set.
6589         * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
6590         flag.
6591         * armbsd-tdep.c (armbsd_gregset): Likewise.
6592         * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
6593         * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
6594         * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
6595         * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
6596
6597 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6598
6599         * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
6600         For ".reg-xstate", explicitly specify the requested section size
6601         via X86_XSTATE_SIZE instead of just 0 on input and
6602         X86_XSTATE_MAX_SIZE on output.
6603         * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
6604         Likewise.
6605
6606 2015-02-04  Andreas Arnez  <arnez@linux.vnet.ibm.com>
6607
6608         PR corefiles/17808:
6609         * gdbarch.sh (iterate_over_regset_sections_cb): Document this
6610         function type, particularly its SIZE parameter.
6611         * gdbarch.h: Regenerate.
6612         * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
6613         actual against required size using ">=" instead of "==".
6614         (amd64_collect_fpregset): Likewise.
6615         * i386-tdep.c (i386_supply_gregset): Likewise.
6616         (i386_collect_gregset): Likewise.
6617         (i386_supply_fpregset): Likewise.
6618         (i386_collect_fpregset): Likewise.
6619         * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
6620         (mips_fill_gregset_wrapper): Likewise.
6621         (mips_supply_fpregset_wrapper): Likewise.
6622         (mips_fill_fpregset_wrapper): Likewise.
6623         (mips64_supply_gregset_wrapper): Likewise.
6624         (mips64_fill_gregset_wrapper): Likewise.
6625         (mips64_supply_fpregset_wrapper): Likewise.
6626         (mips64_fill_fpregset_wrapper): Likewise.
6627         * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
6628         (am33_supply_fpregset_method): Likewise.
6629         (am33_collect_gregset_method): Likewise.
6630         (am33_collect_fpregset_method): Likewise.
6631
6632 2015-02-04  Doug Evans  <dje@google.com>
6633             Pedro Alves  <palves@redhat.com>
6634             Eli Zaretskii  <eliz@gnu.org>
6635
6636         PR tui/17810
6637         * tui/tui-command.c (tui_refresh_cmd_win): New function.
6638         * tui/tui-command.c (tui_refresh_cmd_win): Declare.
6639         * tui/tui-file.c: #include tui/tui-command.h.
6640         (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
6641         (tui_file_flush): Refresh command window if stream is gdb_stdout.
6642         * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
6643
6644 2015-02-04  Pedro Alves  <palves@redhat.com>
6645
6646         Fix build breakage.
6647         * event-loop.c (gdb_do_one_event): Add default switch case.
6648
6649 2015-02-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
6650
6651         Filter out inferior gcc option -fpreprocessed.
6652         * compile/compile.c (filter_args): New function.
6653         (get_args): Use it.
6654
6655 2015-02-03  Pedro Alves  <palves@redhat.com>
6656
6657         * event-loop.c: Don't declare nor define a queue type for
6658         gdb_event_p.
6659         (event_queue): Delete.
6660         (create_event, create_file_event, gdb_event_xfree)
6661         (initialize_event_loop, process_event): Delete.
6662         (gdb_do_one_event): Return as soon as one event is handled.
6663         (handle_file_event): Change prototype.  Used the passed in
6664         file_handler pointer and ready_mask instead of looping over all
6665         file handlers.
6666         (gdb_wait_for_event): Update the poll/select timeouts before
6667         blocking.  Run event handlers directly instead of queueing events.
6668         Return as soon as one event is handled.
6669         (struct async_event_handler_data): Delete.
6670         (invoke_async_event_handler): Delete.
6671         (check_async_event_handlers): Change return type to int.  Run
6672         event handlers directly instead of queueing events.  Return as
6673         soon as one event is handled.
6674         (handle_timer_event): Delete.
6675         (update_wait_timeout): New function, factored out from
6676         poll_timers.
6677         (poll_timers): Reimplement.
6678         * event-loop.h (initialize_event_loop): Delete declaration.
6679         * top.c (gdb_init): Don't call initialize_event_loop.
6680
6681 2015-02-03  Pedro Alves  <palves@redhat.com>
6682
6683         * event-loop.c (clear_async_event_handler): New function.
6684         * event-loop.h (clear_async_event_handler): New declaration.
6685         * record-btrace.c (record_btrace_async): New function.
6686         (init_record_btrace_ops): Install record_btrace_async.
6687         * record-full.c (record_full_async): New function.
6688         (record_full_resume): Don't mark the async event source here.
6689         (init_record_full_ops): Install record_full_async.
6690         (record_full_core_resume): Don't mark the async event source here.
6691         (init_record_full_core_ops): Install record_full_async.
6692         * remote.c (remote_async): Mark and clear the async stop reply
6693         queue event-loop token as appropriate.
6694
6695 2015-02-03  Pedro Alves  <palves@redhat.com>
6696
6697         * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
6698         target_is_async_p instead of target_can_async.
6699         (linux_nat_wait): Use target_is_async_p instead of
6700         target_can_async.  Don't enable async here.
6701         * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
6702         target_is_async_p instead of target_can_async.
6703
6704 2015-02-02  Simon Marchi  <simon.marchi@ericsson.com>
6705
6706         * varobj.h (lang_varobj_ops): Mention which return values need
6707         to be freed.
6708
6709 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
6710
6711         * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
6712
6713 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
6714
6715         PR gdb/17856:
6716         * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
6717         results found in the cache.
6718
6719 2015-02-02  Joel Brobecker  <brobecker@adacore.com>
6720
6721         PR gdb/17854:
6722         * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
6723         when allocating a new one.
6724
6725 2015-02-01  Tom Tromey  <tom@tromey.com>
6726
6727         * MAINTAINERS: Remove myself.
6728
6729 2015-01-31  Doug Evans  <xdje42@gmail.com>
6730
6731         * dwarf2read.c (process_structure_scope): Update setting of
6732         TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
6733         * gdbtypes.c (internal_type_vptr_fieldno): New function.
6734         (set_type_vptr_fieldno): New function.
6735         (internal_type_vptr_basetype): New function.
6736         (set_type_vptr_basetype): New function.
6737         (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
6738         TYPE_VPTR_BASETYPE.
6739         (allocate_cplus_struct_type): Initialize vptr_fieldno.
6740         (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
6741         (print_cplus_stuff): ... moved here.
6742         (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
6743         * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
6744         moved to ...
6745         (struct cplus_struct_type): ... here.  All uses updated.
6746         (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
6747         (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
6748         (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
6749         * stabsread.c (read_tilde_fields): Update setting of
6750         TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
6751
6752 2015-01-31  Doug Evans  <xdje42@gmail.com>
6753
6754         * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
6755         to self_p.
6756         (cp_print_class_member): Rename local domain to self_type.
6757         * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
6758         domain_type to self_type.
6759         (set_die_type) <need_gnat_info>: Handle
6760         TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
6761         * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
6762         TYPE_SPECIFIC_SELF_TYPE.
6763         * gdbtypes.c (internal_type_self_type): New function.
6764         (set_type_self_type): New function.
6765         (smash_to_memberptr_type): Rename parameter domain to self_type.
6766         Update setting of TYPE_SELF_TYPE.
6767         (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
6768         (smash_to_method_type): Rename parameter domain to self_type.
6769         Update setting of TYPE_SELF_TYPE.
6770         (check_stub_method): Call smash_to_method_type.
6771         (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
6772         (copy_type_recursive): Ditto.
6773         * gdbtypes.h (enum type_specific_kind): New value
6774         TYPE_SPECIFIC_SELF_TYPE.
6775         (struct main_type) <type_specific>: New member self_type.
6776         (struct cplus_struct_type) <fn_field.type>: Update comment.
6777         (TYPE_SELF_TYPE): Rewrite.
6778         (internal_type_self_type, set_type_self_type): Declare.
6779         * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
6780         self_type.
6781         (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
6782         * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
6783         TYPE_TARGET_TYPE.
6784         * stabsread.c (read_member_functions): Mark methods with
6785         TYPE_CODE_METHOD, not TYPE_CODE_FUNC.  Update setting of
6786         TYPE_SELF_TYPE.
6787
6788 2015-01-31  Doug Evans  <xdje42@gmail.com>
6789
6790         * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
6791         All uses updated.
6792
6793 2015-01-31  Doug Evans  <xdje42@gmail.com>
6794
6795         * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
6796         or unions.  Return zero if union.
6797         (gnuv3_get_vtable): Call check_typedef.  Assert only passed structs.
6798         (gnuv3_rtti_type): Pass already-check_typedef'd value to
6799         gnuv3_get_vtable.
6800         (compute_vtable_size): Assert only passed structs.
6801         (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
6802
6803 2015-01-31  Doug Evans  <xdje42@gmail.com>
6804
6805         * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
6806         kinds.
6807
6808 2015-01-31  Gary Benson <gbenson@redhat.com>
6809             Doug Evans  <dje@google.com>
6810
6811         PR cli/9007
6812         PR cli/11920
6813         PR cli/15548
6814         * cli/cli-cmds.c (complete_command): Notify user if max-completions
6815         reached.
6816         * common/common-exceptions.h (enum errors)
6817         <MAX_COMPLETIONS_REACHED_ERROR>: New value.
6818         * completer.h (get_max_completions_reached_message): New declaration.
6819         (max_completions): Likewise.
6820         (completion_tracker_t): New typedef.
6821         (new_completion_tracker): New declaration.
6822         (make_cleanup_free_completion_tracker): Likewise.
6823         (maybe_add_completion_enum): New enum.
6824         (maybe_add_completion): New declaration.
6825         (throw_max_completions_reached_error): Likewise.
6826         * completer.c (max_completions): New global variable.
6827         (new_completion_tracker): New function.
6828         (free_completion_tracker): Likewise.
6829         (make_cleanup_free_completion_tracker): Likewise.
6830         (maybe_add_completions): Likewise.
6831         (throw_max_completions_reached_error): Likewise.
6832         (complete_line): Remove duplicates and limit result to max_completions
6833         entries.
6834         (get_max_completions_reached_message): New function.
6835         (gdb_display_match_list): Handle max_completions.
6836         (_initialize_completer): New declaration and function.
6837         * symtab.c: Include completer.h.
6838         (completion_tracker): New static variable.
6839         (completion_list_add_name): Call maybe_add_completion.
6840         (default_make_symbol_completion_list_break_on_1): Renamed from
6841         default_make_symbol_completion_list_break_on.  Maintain
6842         completion_tracker across calls to completion_list_add_name.
6843         (default_make_symbol_completion_list_break_on): New function.
6844         * top.c (init_main): Set rl_completion_display_matches_hook.
6845         * tui/tui-io.c: Include completer.h.
6846         (tui_old_rl_display_matches_hook): New static global.
6847         (tui_rl_display_match_list): Notify user if max-completions reached.
6848         (tui_setup_io): Save/restore rl_completion_display_matches_hook.
6849         * NEWS (New Options): Mention set/show max-completions.
6850
6851 2015-01-31  Gary Benson  <gbenson@redhat.com>
6852
6853         * symtab.c (struct add_name_data) <code>: New field.
6854         Updated comments.
6855         (add_symtab_completions): New function.
6856         (symtab_expansion_callback): Likewise.
6857         (default_make_symbol_completion_list_break_on): Set datum.code.
6858         Move minimal symbol scan before calling expand_symtabs_matching.
6859         Scan known primary symtabs for externs and statics before calling
6860         expand_symtabs_matching.  Pass symtab_expansion_callback as
6861         expansion_notify argument to expand_symtabs_matching.  Do not scan
6862         primary symtabs for externs and statics after calling
6863         expand_symtabs_matching.
6864
6865 2015-01-31  Gary Benson  <gbenson@redhat.com>
6866
6867         * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
6868         (struct quick_symbol_functions) <expand_symtabs_matching>:
6869         New argument expansion_notify.  All uses updated.
6870         (expand_symtabs_matching): New argument expansion_notify.
6871         All uses updated.
6872         * symfile-debug.c (debug_qf_expand_symtabs_matching):
6873         Also print expansion notify.
6874         * symtab.c (expand_symtabs_matching_via_partial): Call
6875         expansion_notify whenever a partial symbol table is expanded.
6876         * dwarf2read.c (dw2_expand_symtabs_matching): Call
6877         expansion_notify whenever a symbol table is instantiated.
6878
6879 2015-01-31  Doug Evans  <xdje42@gmail.com>
6880
6881         * cli-out.c: #include completer.h, readline/readline.h.
6882         (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
6883         (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
6884         (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
6885         * cli-out.h (cli_display_match_list): Declare.
6886         * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
6887         (ELLIPSIS_LEN): Ditto.
6888         (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
6889         (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
6890         (gdb_fnprint, gdb_print_filename): Ditto.
6891         (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
6892         (gdb_display_match_list): Ditto.
6893         * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
6894         (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
6895         (mld_beep_ftype, mld_read_key_ftype): Ditto.
6896         (match_list_displayer): New struct.
6897         (gdb_display_match_list): Declare.
6898         * top.c (init_main): Set rl_completion_display_matches_hook.
6899         * tui/tui-io.c: #include completer.h.
6900         (printable_part, PUTX, print_filename, get_y_or_n): Delete.
6901         (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
6902         (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
6903         (tui_mld_getc, tui_mld_read_key): Ditto.
6904         (tui_rl_display_match_list): Rewrite.
6905         (tui_handle_resize_during_io): New arg for_completion.  All callers
6906         updated.
6907
6908 2015-01-31  Doug Evans  <xdje42@gmail.com>
6909
6910         Add symbol lookup cache.
6911         * NEWS: Document new options and commands.
6912         * symtab.c (symbol_cache_key): New static global.
6913         (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
6914         (SYMBOL_LOOKUP_FAILED): New macro.
6915         (symbol_cache_slot_state): New enum.
6916         (block_symbol_cache): New struct.
6917         (symbol_cache): New struct.
6918         (new_symbol_cache_size, symbol_cache_size): New static globals.
6919         (hash_symbol_entry, eq_symbol_entry): New functions.
6920         (symbol_cache_byte_size, resize_symbol_cache): New functions.
6921         (make_symbol_cache, free_symbol_cache): New functions.
6922         (get_symbol_cache, symbol_cache_cleanup): New function.
6923         (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
6924         (symbol_cache_lookup, symbol_cache_clear_slot): New function.
6925         (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
6926         (symbol_cache_flush, symbol_cache_dump): New functions.
6927         (maintenance_print_symbol_cache): New function.
6928         (maintenance_flush_symbol_cache): New function.
6929         (symbol_cache_stats): New function.
6930         (maintenance_print_symbol_cache_statistics): New function.
6931         (symtab_new_objfile_observer): New function.
6932         (symtab_free_objfile_observer): New function.
6933         (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
6934         (_initialize_symtab): Init symbol_cache_key.  New parameter
6935         maint symbol-cache-size.  New maint commands print symbol-cache,
6936         print symbol-cache-statistics, flush-symbol-cache.
6937         Install new_objfile, free_objfile observers.
6938
6939 2015-01-31  Joel Brobecker  <brobecker@adacore.com>
6940
6941         PR symtab/17855
6942         * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
6943         to end.
6944
6945 2015-01-31  Doug Evans  <xdje42@gmail.com>
6946
6947         * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
6948         * auto-load.c: #include ctype.h.
6949         (struct auto_load_pspace_info): Replace member loaded_scripts with
6950         new members loaded_script_files, loaded_script_texts.
6951         (auto_load_pspace_data_cleanup): Update.
6952         (init_loaded_scripts_info): Update.
6953         (get_auto_load_pspace_data_for_loading): Update.
6954         (maybe_add_script_file): Renamed from maybe_add_script.  All callers
6955         updated.
6956         (maybe_add_script_text): New function.
6957         (clear_section_scripts): Update.
6958         (source_script_file, execute_script_contents): New functions.
6959         (source_section_scripts): Add support for
6960         SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
6961         (print_scripts): New function.
6962         (auto_load_info_scripts): Also print inlined scripts.
6963         (maybe_print_unsupported_script_warning): Renamed from
6964         unsupported_script_warning_print.  All callers updated.
6965         (maybe_print_script_not_found_warning): Renamed from
6966         script_not_found_warning_print.  All callers updated.
6967         * extension-priv.h (struct extension_language_script_ops): New member
6968         objfile_script_executor.
6969         * extension.c (ext_lang_objfile_script_executor): New function.
6970         * extension.h (objfile_script_executor_func): New typedef.
6971         (ext_lang_objfile_script_executor): Declare.
6972         * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
6973         * guile/guile.c (guile_extension_script_ops): Update.
6974         * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
6975         * python/python.c (python_extension_script_ops): Update.
6976         (gdbpy_execute_objfile_script): New function.
6977
6978 2015-01-31  Eli Zaretskii  <eliz@gnu.org>
6979
6980         * tui/tui-io.c (tui_expand_tabs): New function.
6981         (tui_puts, tui_redisplay_readline): Expand TABs into the
6982         appropriate number of spaces.
6983         * tui/tui-regs.c: Include tui-io.h.
6984         (tui_register_format): Call tui_expand_tabs to expand TABs into
6985         the appropriate number of spaces.
6986         * tui/tui-io.h: Add prototype for tui_expand_tabs.
6987
6988 2015-01-30  Doug Evans  <dje@google.com>
6989
6990         * NEWS: "info source" command now display producer string if present.
6991         * source.c (source_info): Print producer string if present.
6992
6993 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
6994
6995         * varobj.c (varobj_delete): Fix comment.
6996
6997 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
6998
6999         * varobj.c (create_child): Modify comment.
7000
7001 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
7002
7003         * ada-varobj.c (ada_number_of_children): Constify struct varobj *
7004         parameter.
7005         (ada_name_of_variable): Same.
7006         (ada_path_expr_of_child): Same.
7007         (ada_value_of_variable): Same.
7008         (ada_value_is_changeable_p): Same.
7009         (ada_value_has_mutated): Same.
7010         * c-varobj.c (varobj_is_anonymous_child): Same.
7011         (c_is_path_expr_parent): Same.
7012         (c_number_of_children): Same.
7013         (c_name_of_variable): Same.
7014         (c_path_expr_of_child): Same.
7015         (get_type): Same.
7016         (c_value_of_variable): Same.
7017         (cplus_number_of_children): Same.
7018         (cplus_name_of_variable): Same.
7019         (cplus_path_expr_of_child): Same.
7020         (cplus_value_of_variable): Same.
7021         * jv-varobj.c (java_number_of_children): Same.
7022         (java_name_of_variable): Same.
7023         (java_path_expr_of_child): Same.
7024         (java_value_of_variable): Same.
7025         * varobj.c (number_of_children): Same.
7026         (name_of_variable): Same.
7027         (is_root_p): Same.
7028         (varobj_ensure_python_env): Same.
7029         (varobj_get_objname): Same.
7030         (varobj_get_expression): Same.
7031         (varobj_get_display_format): Same.
7032         (varobj_get_display_hint): Same.
7033         (varobj_has_more): Same.
7034         (varobj_get_thread_id): Same.
7035         (varobj_get_frozen): Same.
7036         (dynamic_varobj_has_child_method): Same.
7037         (varobj_get_gdb_type): Same.
7038         (is_path_expr_parent): Same.
7039         (varobj_default_is_path_expr_parent): Same.
7040         (varobj_get_language): Same.
7041         (varobj_get_attributes): Same.
7042         (varobj_is_dynamic_p): Same.
7043         (varobj_get_child_range): Same.
7044         (varobj_value_has_mutated): Same.
7045         (varobj_get_value_type): Same.
7046         (number_of_children): Same.
7047         (name_of_variable): Same.
7048         (check_scope): Same.
7049         (varobj_editable_p): Same.
7050         (varobj_value_is_changeable_p): Same.
7051         (varobj_floating_p): Same.
7052         (varobj_default_value_is_changeable_p): Same.
7053
7054 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
7055
7056         * varobj.c (varobj_get_path_expr): Set var->path_expr.
7057         * c-varobj.c (c_path_expr_of_child): Set local var instead of
7058         child->path_expr.
7059         (cplus_path_expr_of_child): Same.
7060
7061 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
7062
7063         * mi-cmd-var.c (print_varobj): Free varobj_get_expression
7064         result.
7065         (mi_cmd_var_info_expression): Same.
7066         * varobj.c (varobj_get_expression): Mention in the comment that
7067         the result must by freed by the caller.
7068
7069 2015-01-30  Simon Marchi  <simon.marchi@ericsson.com>
7070
7071         * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
7072         varobj_get_type.
7073         (varobj_update_one): Same.
7074         * varobj.c (update_type_if_necessary): Free curr_type_str and
7075         new_type_str.
7076         (varobj_get_type): Specify in comment that the result needs to be
7077         freed by the caller.
7078
7079 2015-01-29  Doug Evans  <dje@google.com>
7080
7081         PR symtab/17890
7082         * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
7083
7084 2015-01-25  Mark Wielaard  <mjw@redhat.com>
7085
7086         * dwarf2read.c (checkproducer): Call producer_is_gcc.
7087         * utils.c (producer_is_gcc_ge_4): Likewise.
7088         (producer_is_gcc): New function.
7089         * utils.h (producer_is_gcc): New declaration.
7090
7091 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
7092
7093         * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
7094         kind.
7095         * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
7096         parameter by "addr_stack" parameter.
7097         (resolve_dynamic_range): Replace "addr" parameter by
7098         "stack_addr" parameter.  Update function documentation.
7099         Update code accordingly.
7100         (resolve_dynamic_array, resolve_dynamic_union)
7101         (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
7102         (resolve_dynamic_type): Update code, following the changes made
7103         to resolve_dynamic_type_internal's interface.
7104         * dwarf2loc.h (struct property_addr_info): New.
7105         (dwarf2_evaluate_property): Replace "address" parameter
7106         by "addr_stack" parameter.  Adjust function documentation.
7107         (struct dwarf2_offset_baton): New.
7108         (struct dwarf2_property_baton): Update documentation of
7109         field "referenced_type" to be more general. New field
7110         "offset_info" in union data field.
7111         * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
7112         parameter by "addr_stack" parameter.  Adjust code accordingly.
7113         Add support for PROP_ADDR_OFFSET properties.
7114         * dwarf2read.c (attr_to_dynamic_prop): Add support for
7115         DW_AT_data_member_location attributes as well.  Use case
7116         statements instead of if/else condition.
7117
7118 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
7119
7120         * ada-varobj.c (ada_varobj_get_array_number_of_children):
7121         Return zero if PARENT_VALUE is NULL and parent_type's
7122         range type is dynamic.
7123
7124 2015-01-29  Joel Brobecker  <brobecker@adacore.com>
7125
7126         * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
7127         nonzero if the type's subtype is dynamic.
7128         (resolve_dynamic_range): Also resolve the range's subtype.
7129
7130 2015-01-29  Alexander Klimov  <alserkli@inbox.ru>  (tiny patch)
7131
7132         Pushed by Joel Brobecker  <brobecker@adacore.com>.
7133         * symfile.c (unmap_overlay_command): Initialize sec to NULL.
7134
7135 2015-01-27  Doug Evans  <dje@google.com>
7136
7137         * NEWS: Mention gdb.Objfile.username.
7138         * python/py-objfile.c (objfpy_get_username): New function.
7139         (objfile_getset): Add "username".
7140
7141 2015-01-24  Mark Wielaard  <mjw@redhat.com>
7142
7143         * stack.c (return_command): Markup warning message with _.
7144
7145 2015-01-24  Doug Evans  <xdje42@gmail.com>
7146
7147         * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
7148
7149 2015-01-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
7150
7151         Fix 100x slowdown regression on DWZ files.
7152         * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
7153         (struct line_header): Add offset and offset_in_dwz.
7154         (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
7155         (free_line_header_voidp): New declaration.
7156         (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
7157         functions.
7158         (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
7159         (handle_DW_AT_stmt_list): Use line_header_hash.
7160         (free_line_header_voidp): New function.
7161         (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
7162         (dwarf_decode_lines): New parameter decode_mapping, use it.
7163         (dwarf2_free_objfile): Free line_header_hash.
7164
7165 2015-01-23  Simon Marchi  <simon.marchi@ericsson.com>
7166
7167         PR gdb/17416
7168         * valops.c (value_rtti_indirect_type): Catch exception thrown by
7169         value_ind.
7170
7171 2015-01-15  Mark Wielaard  <mjw@redhat.com>
7172
7173         * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
7174         DW_AT_noreturn.
7175         * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
7176         calling_convention an 8 bit bit field.
7177         (TYPE_NO_RETURN): New macro.
7178         * infcmd.c (finish_command): Query if function does not return
7179         normally.
7180         * stack.c (return_command): Likewise.
7181
7182 2015-01-23  Pedro Alves  <palves@redhat.com>
7183
7184         * linux-nat.c (linux_is_async_p): New macro.
7185         (linux_nat_is_async_p):
7186         (linux_nat_terminal_inferior): Check whether the target can async
7187         instead of whether it is already async.
7188         (linux_nat_terminal_ours): Don't check whether the target is
7189         async.
7190         (linux_async_pipe): Use linux_is_async_p.
7191
7192 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7193
7194         * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
7195         '-ascending'.
7196         * thread.c (tp_array_compar_ascending, tp_array_compar): New.
7197         (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
7198         Sort tp_array using tp_array_compar.
7199         (_initialize_thread): Extend thread_apply_all_command help.
7200
7201 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7202
7203         * corelow.c (core_open): Call also thread_command.
7204         * gdbthread.h (thread_command): New prototype moved from ...
7205         * thread.c (thread_command): ... here.
7206         (thread_command): Make it global.
7207
7208 2015-01-22  Pedro Alves  <palves@redhat.com>
7209
7210         * configure.ac [*mingw32*]: Check $curses_found instead of
7211         $prefer_curses.
7212         * configure: Regenerate.
7213         * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
7214         HAVE_NCURSES_NCURSES_H checks.
7215
7216 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
7217
7218         * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
7219         fails with the 1st arg NULL, try again with "unknown".  Don't test
7220         the "cup" capability: it isn't supported by the Windows port of
7221         ncurses, but the Windows console driver is still capable of
7222         supporting TUI.
7223
7224 2015-01-22  Jan Kratochvil  <jan.kratochvil@redhat.com>
7225
7226         * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
7227
7228 2015-01-22  Eli Zaretskii  <eliz@gnu.org>
7229
7230         * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
7231         (ALLDEPFILES): Remove irix5-nat.c.  These two are part of the
7232         reason that "make TAGS" is broken.
7233
7234 2015-01-22  Chen Gang  <gang.chen.5i5j@gmail.com>
7235
7236         * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
7237         and check additional store instructions.
7238
7239 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
7240
7241         * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
7242
7243 2015-01-21  Wei-cheng Wang  <cole945@gmail.com>
7244
7245         * ppc-linux-tdep.c (ppc_skip_trampoline_code,
7246         ppc_canonicalize_syscall, ppc_linux_syscall_record,
7247         ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
7248         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
7249         * rs6000-tdep.c (rs6000_epilogue_frame_cache,
7250         rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
7251         rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
7252         ppc_process_record_op19, ppc_process_record_op31,
7253         ppc_process_record_op59, ppc_process_record_op60,
7254         ppc_process_record_op63): Likewise.
7255
7256 2015-01-20  Joel Brobecker  <brobecker@adacore.com>
7257
7258         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
7259         (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
7260         strerror.
7261
7262 2015-01-20  Wei-cheng Wang  <cole945@gmail.com>
7263
7264         * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
7265         ppc_process_record_op31, ppc_process_record_op59,
7266         ppc_process_record_op60, ppc_process_record_op63,
7267         ppc_process_record): Fix -Wformat warning.
7268         * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
7269         Remove unused variables.
7270
7271 2015-01-20  Chen Gang  <gang.chen.5i5j@gmail.com>
7272
7273         * MAINTAINERS (Write After Approval): Add "Chen Gang".
7274
7275 2015-01-19  Eli Zaretskii  <eliz@gnu.org>
7276
7277         * configure.ac [*mingw32*]: Only add windows-termcap.o to
7278         CONFIG_OBS if not building with a curses library.
7279         * configure: Regenerate.
7280
7281         * windows-termcap.c: Include defs.h.  Make the whole body empty if
7282         either one of HAVE_CURSES_H or HAVE_NCURSES_H or
7283         HAVE_NCURSES_NCURSES_H is defined.
7284
7285 2015-01-19  Joel Brobecker  <brobecker@adacore.com>
7286
7287         * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
7288         from end of line to start of next line.
7289
7290 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
7291
7292         * ppc-linux-tdep.c (ppc_skip_trampoline_code):
7293         Scan PLT stub backward for reverse debugging.
7294         * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
7295
7296 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
7297             Ulrich Weigand  <uweigand@de.ibm.com>
7298
7299         * configure.tgt (powerpc*-*-linux): Add linux-record.o to
7300         gdb_target_obs.
7301         (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
7302         record.
7303         (ppc_canonicalize_syscall, ppc_linux_syscall_record,
7304         ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
7305         (ppc_linux_init_abi): Set process_record, process_record_signal.
7306         * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
7307         ppc_linux_record_tdep to gdbarch_tdep.
7308         (ppc_process_record): New declaration.
7309         * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
7310         ppc_process_record_op19, ppc_process_record_op31,
7311         ppc_process_record_op59, ppc_process_record_op60,
7312         ppc_process_record_op63, ppc_process_record): New functions.
7313
7314 2015-01-17  Wei-cheng Wang  <cole945@gmail.com>
7315
7316         * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
7317         rs6000_in_function_epilogue_frame_p and add an argument
7318         for frame_info.
7319         (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
7320         rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
7321         New functions.
7322         (rs6000_epilogue_frame_unwind): New.
7323         (rs6000_gdbarch_init): Append epilogue unwinder.
7324
7325 2015-01-16  Sergio Durigan Junior  <sergiodj@redhat.com>
7326
7327         * nat/linux-personality.c: Replace "#ifndef
7328         HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
7329         !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
7330         systems.
7331
7332 2015-01-16  Eli Zaretskii  <eliz@gnu.org>
7333
7334         * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
7335         functions.
7336         (_initialize_tui_win) <border-kind, border-mode>:
7337         <active-border-mode>: Use tui_set_var_cmd as the "set" function.
7338         (tui_set_tab_width_command): Fix the commentary.
7339
7340         * tui/tui-win.h: Add prototype for tui_rehighlight_all.
7341
7342         * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
7343         Doc fix.
7344         (tui_set_tab_width_command): Delete and recreate the source and
7345         the disassembly windows, to show the effect of the changed tab
7346         size immediately.
7347
7348         * tui/tui-data.h (LINE_PREFIX): Make shorter
7349         (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
7350         "Thread NNNNN.XXXX" thread ID notation on Windows.
7351
7352 2015-01-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
7353
7354         Fix gcc-5 compilation.
7355         * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
7356
7357 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
7358
7359         * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
7360         (linux-personality.o): New rule.
7361         * common/common-defs.h: Include <stdint.h>.
7362         * config/aarch64/linux.mh (NATDEPFILES): Include
7363         linux-personality.o.
7364         * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
7365         * config/arm/linux.mh (NATDEPFILES): Likewise.
7366         * config/i386/linux64.mh (NATDEPFILES): Likewise.
7367         * config/i386/linux.mh (NATDEPFILES): Likewise.
7368         * config/ia64/linux.mh (NATDEPFILES): Likewise.
7369         * config/m32r/linux.mh (NATDEPFILES): Likewise.
7370         * config/m68k/linux.mh (NATDEPFILES): Likewise.
7371         * config/mips/linux.mh (NATDEPFILES): Likewise.
7372         * config/pa/linux.mh (NATDEPFILES): Likewise.
7373         * config/powerpc/linux.mh (NATDEPFILES): Likewise.
7374         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
7375         * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
7376         * config/s390/linux.mh (NATDEPFILES): Likewise.
7377         * config/sparc/linux64.mh (NATDEPFILES): Likewise.
7378         * config/sparc/linux.mh (NATDEPFILES): Likewise.
7379         * config/tilegx/linux.mh (NATDEPFILES): Likewise.
7380         * config/xtensa/linux.mh (NATDEPFILES): Likewise.
7381         * defs.h: Remove #include <stdint.h> (moved to
7382         common/common-defs.h).
7383         * linux-nat.c: Include nat/linux-personality.h.  Remove #include
7384         <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
7385         nat/linux-personality.c).
7386         (linux_nat_create_inferior): Remove code to disable address space
7387         randomization (moved to nat/linux-personality.c).  Create cleanup
7388         to disable address space randomization.
7389         * nat/linux-personality.c: New file.
7390         * nat/linux-personality.h: Likewise.
7391
7392 2015-01-15  Sergio Durigan Junior  <sergiodj@redhat.com>
7393
7394         * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
7395         common/posix-strerror.c.
7396         (posix-strerror.o): New rule.
7397         (mingw-strerror.o): Likewise.
7398         * common/common-utils.h (safe_strerror): Move prototype to here,
7399         from utils.h.
7400         * common/common.host: New file.
7401         * common/mingw-strerror.c: Likewise.
7402         * common/posix-strerror.c: Likewise.
7403         * configure: Regenerated.
7404         * configure.ac: Source common/common.host.  Add variable
7405         common_host_obs to gdb_host_obs.
7406         * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
7407         gdb/common/posix-strerror.c when warning about the use of
7408         strerror.
7409         * mingw-hdep.c (safe_strerror): Remove definition; move it to
7410         common/mingw-strerror.c.
7411         * posix-hdep.c (safe_strerror): Remove definition; move it to
7412         common/posix-hdep.c.
7413         * utils.h (safe_strerror): Remove prototype; move to
7414         common/common-utils.h.
7415
7416 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
7417
7418         GDB 7.8.2 released.
7419
7420 2015-01-15  Joel Brobecker  <brobecker@adacore.com>
7421
7422         * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
7423         ___XA type if the array has already been fixed.
7424
7425 2015-01-14  Yao Qi  <yao@codesourcery.com>
7426
7427         * Makefile.in (ppc-linux.o): New rule.
7428         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
7429         * configure.ac: AC_CHECK_FUNCS(getauxval).
7430         * config.in: Re-generated.
7431         * configure: Re-generated.
7432         * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
7433         Declare.
7434         * nat/ppc-linux.c: New file.
7435         * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
7436         Call ppc64_64bit_inferior_p.
7437
7438 2015-01-14  Yao Qi  <yao@codesourcery.com>
7439
7440         * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
7441         nat/ppc-linux.h.
7442         (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
7443         (PPC_FEATURE_HAS_DFP): Likewise.
7444         (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
7445         (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
7446         (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
7447         Include "nat/ppc-linux.h".
7448         * nat/ppc-linux.h: New file.
7449         * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
7450
7451 2015-01-14  Pedro Alves  <palves@redhat.com>
7452
7453         PR gdb/17525
7454         * breakpoint.c: Include "interps.h".
7455         (bpstat_do_actions_1): Also check whether the interpreter is
7456         async.
7457
7458 2015-01-14  Pedro Alves  <palves@redhat.com>
7459
7460         PR cli/17828
7461         * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
7462         reinstall if the interpreter is sync.
7463
7464 2015-01-13  Doug Evans  <dje@google.com>
7465
7466         * objfiles.c (objfile_filename): New function.
7467         * objfiles.h (objfile_filename): Declare it.
7468         (objfile_name): Add function comment.
7469         * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
7470         bfd file name (which may be realpath'd), and the original name.
7471
7472 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
7473
7474         * NEWS: Create a new section for the next release branch.
7475         Rename the section of the current branch, now that it has
7476         been cut.
7477
7478 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
7479
7480         GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
7481         * version.in: Bump version to 7.9.50.DATE-cvs.
7482
7483 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
7484
7485         * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
7486         Remove trailing new-line in argument of call to warning.
7487
7488 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
7489
7490         * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
7491         new-line in argument of call to "warning".
7492
7493 2015-01-13  Joel Brobecker  <brobecker@adacore.com>
7494
7495         * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
7496         in static block, then try searching for primitive types.
7497
7498 2015-01-12  Patrick Palka  <patrick@parcs.ath.cx>
7499
7500         * top.h (gdb_add_history): Declare.
7501         * top.c (command_count): New variable.
7502         (gdb_add_history): New function.
7503         (gdb_safe_append_history): New static function.
7504         (quit_force): Call it.
7505         (command_line_input): Use gdb_add_history instead of
7506         add_history.
7507         * event-top.c (command_line_handler): Likewise.
7508
7509 2015-01-12  James Clarke  <jrtc27@jrtc27.com>  (tiny patch)
7510
7511         PR gdb/17046
7512         * darwin-nat.c: Replace <machine/setjmp.h> #include by
7513         <setjmp.h> #include.
7514
7515 2015-01-11  Doug Evans  <xdje42@gmail.com>
7516
7517         * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
7518
7519 2015-01-11  Doug Evans  <xdje42@gmail.com>
7520
7521         PR gdb/15830
7522         * NEWS: The "maint demangle" command is renamed as "demangle".
7523         * demangle.c: #include cli/cli-utils.h, language.h.
7524         (demangle_command): New function.
7525         (_initialize_demangle): Add new command "demangle".
7526         * maint.c (maintenance_demangle): Stub out.
7527         (_initialize_maint_cmds): Update help text for "maint demangle",
7528         and mark as deprecated.
7529
7530 2015-01-11  Mark Kettenis  <kettenis@gnu.org>
7531
7532         * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
7533         inferior_thread is a function.
7534
7535 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
7536
7537         * Makefile.in (.y.c): Don't munge yacc's #line
7538         directives.
7539
7540 2015-01-09  Patrick Palka  <patrick@parcs.ath.cx>
7541
7542         * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
7543         to prompt for input.
7544         * tui/tui-hooks.c (tui_query_hook): Remove.
7545         (tui_install_hooks): Don't set deprecated_query_hook.
7546         * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
7547         height calculation.  Always update the command window's cur_line.
7548
7549 2015-01-09  Pedro Alves  <palves@redhat.com>
7550
7551         * breakpoint.c (hardware_breakpoint_inserted_here_p): New
7552         function.
7553         * breakpoint.h (hardware_breakpoint_inserted_here_p): New
7554         declaration.
7555         * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
7556         (linux_resume_one_lwp): Store the thread's PC.  Adjust to clear
7557         stop_reason.
7558         (check_stopped_by_watchpoint): New function.
7559         (save_sigtrap): Reimplement.
7560         (linux_nat_stopped_by_watchpoint): Adjust.
7561         (linux_nat_lp_status_is_event): Delete.
7562         (stop_wait_callback): Only call save_sigtrap after storing the
7563         pending status.
7564         (status_callback): If the thread had been stopped for a breakpoint
7565         that has since been removed, discard the event and resume the LWP.
7566         (count_events_callback, select_event_lwp_callback): Use
7567         lwp_status_pending_p instead of linux_nat_lp_status_is_event.
7568         (cancel_breakpoint): Rename to ...
7569         (check_stopped_by_breakpoint): ... this.  Record whether the LWP
7570         stopped for a software breakpoint or hardware breakpoint.
7571         (select_event_lwp): Only give preference to the stepping LWP in
7572         all-stop mode.  Adjust comments.
7573         (stop_and_resume_callback): Remove references to new_pending_p.
7574         (linux_nat_filter_event): Likewise.  Leave exit events of the
7575         leader thread pending here.  Handle signal short circuiting here.
7576         Only call save_sigtrap after storing the pending waitstatus.
7577         (linux_nat_wait_1): Remove 'retry' label.  Remove references to
7578         new_pending.  Don't handle leaving events the caller is not
7579         interested in pending here, nor handle signal short-circuiting
7580         here.  Also give equal priority to all LWPs that have had events
7581         in non-stop mode.  If reporting a software breakpoint event,
7582         unadjust the LWP's PC.
7583         * linux-nat.h (enum lwp_stop_reason): New.
7584         (struct lwp_info) <stop_pc>: New field.
7585         (struct lwp_info) <stopped_by_watchpoint>: Delete field.
7586         (struct lwp_info) <stop_reason>: New field.
7587         * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7588
7589 2015-01-09  Pedro Alves  <palves@redhat.com>
7590
7591         * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
7592         Set the LWP's 'resumed' flag.
7593
7594 2015-01-09  Pedro Alves  <palves@redhat.com>
7595
7596         * linux-nat.c (linux_resume_one_lwp): New function.
7597         (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
7598         (linux_nat_resume): Use lwp_status_pending_p and
7599         linux_resume_one_lwp.
7600         (linux_handle_syscall_trap): Use linux_resume_one_lwp.
7601         (linux_handle_extended_wait): Use linux_resume_one_lwp.
7602         (status_callback, running_callback): Use lwp_status_pending_p.
7603         (lwp_status_pending_p): New function.
7604         (stop_and_resume_callback): Use lwp_status_pending_p.
7605         (linux_nat_filter_event): Use linux_resume_one_lwp.
7606         (linux_nat_wait_1): Always use status_callback to look for an LWP
7607         with a pending status.  Use linux_resume_one_lwp.
7608         (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
7609         linux_resume_one_lwp.
7610
7611 2015-01-09  Pedro Alves  <palves@redhat.com>
7612
7613         * breakpoint.c (bp_location_inserted_here_p): New function,
7614         factored out from ...
7615         (breakpoint_inserted_here_p): ... here.  Use
7616         ALL_BP_LOCATIONS_AT_ADDR.
7617         (software_breakpoint_inserted_here_p): Use
7618         bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
7619
7620 2014-01-09  Pedro Alves  <palves@redhat.com>
7621
7622         Skip enabling event reporting if the kernel supports
7623         PTRACE_EVENT_CLONE.
7624         * linux-thread-db.c: Include "nat/linux-ptrace.h".
7625         (thread_db_use_events): New function.
7626         (try_thread_db_load_1): Check thread_db_use_events before enabling
7627         event reporting.
7628         (update_thread_state): New function.
7629         (attach_thread): Use it.  Check thread_db_use_events before
7630         enabling event reporting.
7631         (thread_db_detach): Check thread_db_use_events before disabling
7632         event reporting.
7633         (find_new_threads_callback): Check thread_db_use_events before
7634         enabling event reporting.  Update the thread's state if not using
7635         libthread_db events.
7636
7637 2015-01-09  Pedro Alves  <palves@redhat.com>
7638
7639         * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
7640         about to wait for is > 0.
7641         * linux-thread-db.c (find_new_threads_callback): Ignore thread if
7642         the kernel thread ID is -1.
7643
7644 2015-01-09  Pedro Alves  <palves@redhat.com>
7645
7646         * linux-nat.c (attach_proc_task_lwp_callback): New function.
7647         (linux_nat_attach): Use linux_proc_attach_tgid_threads.
7648         (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
7649         ptrace option flags.
7650         * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
7651         field.
7652         * nat/linux-procfs.c: Include <dirent.h>.
7653         (linux_proc_get_int): New parameter "warn".  Handle it.
7654         (linux_proc_get_tgid): Adjust.
7655         (linux_proc_get_tracerpid): Rename to ...
7656         (linux_proc_get_tracerpid_nowarn): ... this.
7657         (linux_proc_pid_get_state): New function, factored out from
7658         (linux_proc_pid_has_state): ... this.  Add new parameter "warn"
7659         and handle it.
7660         (linux_proc_pid_is_gone): New function.
7661         (linux_proc_pid_is_stopped): Adjust.
7662         (linux_proc_pid_is_zombie_maybe_warn)
7663         (linux_proc_pid_is_zombie_nowarn): New functions.
7664         (linux_proc_pid_is_zombie): Use
7665         linux_proc_pid_is_zombie_maybe_warn.
7666         (linux_proc_attach_tgid_threads): New function.
7667         * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
7668         (linux_proc_get_tracerpid): Rename to ...
7669         (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
7670         (linux_proc_pid_is_gone): New declaration.
7671         (linux_proc_pid_is_zombie): Update comment.
7672         (linux_proc_pid_is_zombie_nowarn): New declaration.
7673         (linux_proc_attach_lwp_func): New typedef.
7674         (linux_proc_attach_tgid_threads): New declaration.
7675         * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
7676         use nowarn functions.
7677         (linux_ptrace_attach_fail_reason_string): Move here from
7678         gdbserver/linux-low.c and rename.
7679         (ptrace_supports_feature): If the current ptrace options are not
7680         known yet, check them now, instead of asserting.
7681         * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
7682         Declare.
7683
7684 2015-01-09  Pedro Alves  <palves@redhat.com>
7685
7686         * linux-thread-db.c (thread_db_find_new_threads_silently)
7687         (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
7688         (find_new_threads_once): Print debug output on gdb_stdlog.
7689
7690 2015-01-09  Chen Gang  <gang.chen.5i5j@gmail.com>
7691             Pedro Alves  <palves@redhat.com>
7692
7693         * compile/compile.c: Include "gdb_wait.h".
7694         (do_rmdir): Check return value, and free 'zap'.
7695
7696 2015-01-08  Pedro Alves  <palves@redhat.com>
7697             Yao Qi  <yao@codesourcery.com>
7698
7699         * dwarf2loc.c (indirect_pieced_value): Don't call
7700         gdb_sign_extend.  Call extract_signed_integer instead.
7701         * utils.c (gdb_sign_extend): Remove.
7702         * utils.h (gdb_sign_extend): Remove declaration.
7703
7704 2015-01-07  Pierre Muller  <muller@sourceware.org>
7705
7706         PR symtab/17811
7707         * stabsread.c (define_symbol): Set language for C++ special symbols.
7708
7709 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
7710
7711         * inflow.c (initial_gdb_ttystate): Tweak comment.
7712
7713 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
7714
7715         * inflow.c (set_initial_gdb_ttystate): Add empty line after
7716         comment documenting function.
7717
7718 2015-01-07  Patrick Palka  <patrick@parcs.ath.cx>
7719
7720         * terminal.h (set_initial_gdb_ttystate): Declare.
7721         * inflow.c (initial_gdb_ttystate): New static variable.
7722         (set_initial_gdb_ttystate): New setter.
7723         (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
7724         instead of our current terminal state.
7725         * top.c (gdb_init): Call set_initial_gdb_ttystate.
7726
7727 2015-01-07  Joel Brobecker  <brobecker@adacore.com>
7728
7729         * guile/scm-type.c (tyscm_array_1): Add comment.
7730         * python/py-type.c (typy_array_1): Add comment.
7731
7732 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
7733
7734         * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
7735         error if N2 is equal to N1 - 1.
7736
7737 2015-01-06  Joel Brobecker  <brobecker@adacore.com>
7738
7739         * python/py-type.c (typy_array_1): Do not raise negative-length
7740         exception if N2 is equal to N1 - 1.
7741
7742 2015-01-03  Doug Evans  <xdje42@gmail.com>
7743
7744         * c-exp.y: Whitespace cleanup.
7745         (classify_inner_name): Remove extra ;.
7746
7747 2015-01-02  Maciej W. Rozycki  <macro@codesourcery.com>
7748
7749         * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
7750         offset signed.
7751
7752 2015-01-02  Doug Evans  <dje@google.com>
7753
7754         * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
7755
7756 2015-01-02  Doug Evans  <dje@google.com>
7757
7758         * symtab.h (struct symbol): Fix typo in comment.
7759
7760 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
7761
7762         Update year range in copyright notice of all files.
7763
7764 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
7765
7766         * top.c (print_gdb_version): Update copyright year to 2015.
7767
7768 2015-01-01  Joel Brobecker  <brobecker@adacore.com>
7769
7770         * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
7771
7772 For older changes see ChangeLog-2014.
7773 \f
7774 Local Variables:
7775 mode: change-log
7776 left-margin: 8
7777 fill-column: 74
7778 version-control: never
7779 coding: utf-8
7780 End: