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