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