Add casts to memory allocation related calls
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
224c3ddb
SM
12015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2
3 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
4 to allocation result assignment.
5 * ada-exp.y (write_object_renaming): Likewise.
6 (write_ambiguous_var): Likewise.
7 (ada_nget_field_index): Likewise.
8 (write_var_or_type): Likewise.
9 * ada-lang.c (ada_decode_symbol): Likewise.
10 (ada_value_assign): Likewise.
11 (value_pointer): Likewise.
12 (cache_symbol): Likewise.
13 (add_nonlocal_symbols): Likewise.
14 (ada_name_for_lookup): Likewise.
15 (symbol_completion_add): Likewise.
16 (ada_to_fixed_type_1): Likewise.
17 (ada_get_next_arg): Likewise.
18 (defns_collected): Likewise.
19 * ada-lex.l (processId): Likewise.
20 (processString): Likewise.
21 * ada-tasks.c (read_known_tasks_array): Likewise.
22 (read_known_tasks_list): Likewise.
23 * ada-typeprint.c (decoded_type_name): Likewise.
24 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
25 * amd64-tdep.c (amd64_push_arguments): Likewise.
26 (amd64_displaced_step_copy_insn): Likewise.
27 (amd64_classify_insn_at): Likewise.
28 (amd64_relocate_instruction): Likewise.
29 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
30 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
31 (initialize_current_architecture): Likewise.
32 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
33 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
34 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
35 (arm_push_dummy_call): Likewise.
36 (extend_buffer_earlier): Likewise.
37 (arm_adjust_breakpoint_address): Likewise.
38 (arm_skip_stub): Likewise.
39 * auto-load.c (filename_is_in_pattern): Likewise.
40 (maybe_add_script_file): Likewise.
41 (maybe_add_script_text): Likewise.
42 (auto_load_objfile_script_1): Likewise.
43 * auxv.c (ld_so_xfer_auxv): Likewise.
44 * ax-general.c (new_agent_expr): Likewise.
45 (grow_expr): Likewise.
46 (ax_reg_mask): Likewise.
47 * bcache.c (bcache_full): Likewise.
48 * breakpoint.c (program_breakpoint_here_p): Likewise.
49 * btrace.c (parse_xml_raw): Likewise.
50 * build-id.c (build_id_to_debug_bfd): Likewise.
51 * buildsym.c (end_symtab_with_blockvector): Likewise.
52 * c-exp.y (string_exp): Likewise.
53 (qualified_name): Likewise.
54 (write_destructor_name): Likewise.
55 (operator_stoken): Likewise.
56 (parse_number): Likewise.
57 (scan_macro_expansion): Likewise.
58 (yylex): Likewise.
59 (c_print_token): Likewise.
60 * c-lang.c (c_get_string): Likewise.
61 (emit_numeric_character): Likewise.
62 * charset.c (wchar_iterate): Likewise.
63 * cli/cli-cmds.c (complete_command): Likewise.
64 (make_command): Likewise.
65 * cli/cli-dump.c (restore_section_callback): Likewise.
66 (restore_binary_file): Likewise.
67 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
68 * cli/cli-script.c (execute_control_command): Likewise.
69 * cli/cli-setshow.c (do_set_command): Likewise.
70 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
71 (read_pe_exported_syms): Likewise.
72 * coffread.c (coff_read_struct_type): Likewise.
73 (coff_read_enum_type): Likewise.
74 * common/btrace-common.c (btrace_data_append): Likewise.
75 * common/buffer.c (buffer_grow): Likewise.
76 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
77 * common/format.c (parse_format_string): Likewise.
78 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
79 * common/xml-utils.c (xml_escape_text): Likewise.
80 * compile/compile-object-load.c (copy_sections): Likewise.
81 (compile_object_load): Likewise.
82 * compile/compile-object-run.c (compile_object_run): Likewise.
83 * completer.c (filename_completer): Likewise.
84 * corefile.c (read_memory_typed_address): Likewise.
85 (write_memory_unsigned_integer): Likewise.
86 (write_memory_signed_integer): Likewise.
87 (complete_set_gnutarget): Likewise.
88 * corelow.c (get_core_register_section): Likewise.
89 * cp-name-parser.y (d_grab): Likewise.
90 (allocate_info): Likewise.
91 (cp_new_demangle_parse_info): Likewise.
92 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
93 (cp_lookup_symbol_in_namespace): Likewise.
94 (lookup_namespace_scope): Likewise.
95 (find_symbol_in_baseclass): Likewise.
96 (cp_lookup_nested_symbol): Likewise.
97 (cp_lookup_transparent_type_loop): Likewise.
98 * cp-support.c (copy_string_to_obstack): Likewise.
99 (make_symbol_overload_list): Likewise.
100 (make_symbol_overload_list_namespace): Likewise.
101 (make_symbol_overload_list_adl_namespace): Likewise.
102 (first_component_command): Likewise.
103 * cp-valprint.c (cp_print_value): Likewise.
104 * ctf.c (ctf_xfer_partial): Likewise.
105 * d-exp.y (StringExp): Likewise.
106 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
107 (lookup_module_scope): Likewise.
108 (find_symbol_in_baseclass): Likewise.
109 (d_lookup_nested_symbol): Likewise.
110 * dbxread.c (find_stab_function_addr): Likewise.
111 (read_dbx_symtab): Likewise.
112 (dbx_end_psymtab): Likewise.
113 (cp_set_block_scope): Likewise.
114 * dcache.c (dcache_alloc): Likewise.
115 * demangle.c (_initialize_demangler): Likewise.
116 * dicos-tdep.c (dicos_load_module_p): Likewise.
117 * dictionary.c (dict_create_hashed_expandable): Likewise.
118 (dict_create_linear_expandable): Likewise.
119 (expand_hashtable): Likewise.
120 (add_symbol_linear_expandable): Likewise.
121 * dwarf2-frame.c (add_cie): Likewise.
122 (add_fde): Likewise.
123 (dwarf2_build_frame_info): Likewise.
124 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
125 (dwarf_expr_fetch_address): Likewise.
126 (add_piece): Likewise.
127 (execute_stack_op): Likewise.
128 * dwarf2loc.c (chain_candidate): Likewise.
129 (dwarf_entry_parameter_to_value): Likewise.
130 (read_pieced_value): Likewise.
131 (write_pieced_value): Likewise.
132 * dwarf2read.c (dwarf2_read_section): Likewise.
133 (add_type_unit): Likewise.
134 (read_comp_units_from_section): Likewise.
135 (fixup_go_packaging): Likewise.
136 (dwarf2_compute_name): Likewise.
137 (dwarf2_physname): Likewise.
138 (create_dwo_unit_in_dwp_v1): Likewise.
139 (create_dwo_unit_in_dwp_v2): Likewise.
140 (read_func_scope): Likewise.
141 (read_call_site_scope): Likewise.
142 (dwarf2_attach_fields_to_type): Likewise.
143 (process_structure_scope): Likewise.
144 (mark_common_block_symbol_computed): Likewise.
145 (read_common_block): Likewise.
146 (abbrev_table_read_table): Likewise.
147 (guess_partial_die_structure_name): Likewise.
148 (fixup_partial_die): Likewise.
149 (add_file_name): Likewise.
150 (dwarf2_const_value_data): Likewise.
151 (dwarf2_const_value_attr): Likewise.
152 (build_error_marker_type): Likewise.
153 (guess_full_die_structure_name): Likewise.
154 (anonymous_struct_prefix): Likewise.
155 (typename_concat): Likewise.
156 (dwarf2_canonicalize_name): Likewise.
157 (dwarf2_name): Likewise.
158 (write_constant_as_bytes): Likewise.
159 (dwarf2_fetch_constant_bytes): Likewise.
160 (copy_string): Likewise.
161 (parse_macro_definition): Likewise.
162 * elfread.c (elf_symfile_segments): Likewise.
163 (elf_rel_plt_read): Likewise.
164 (elf_gnu_ifunc_resolve_by_cache): Likewise.
165 (elf_gnu_ifunc_resolve_by_got): Likewise.
166 (elf_read_minimal_symbols): Likewise.
167 (elf_gnu_ifunc_record_cache): Likewise.
168 * event-top.c (top_level_prompt): Likewise.
169 (command_line_handler): Likewise.
170 * exec.c (resize_section_table): Likewise.
171 * expprint.c (print_subexp_standard): Likewise.
172 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
173 * findcmd.c (parse_find_args): Likewise.
174 * findvar.c (address_from_register): Likewise.
175 * frame.c (get_prev_frame_always): Likewise.
176 * gdb_bfd.c (gdb_bfd_ref): Likewise.
177 (get_section_descriptor): Likewise.
178 * gdb_obstack.c (obconcat): Likewise.
179 (obstack_strdup): Likewise.
180 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
181 (create_set_type): Likewise.
182 (lookup_unsigned_typename): Likewise.
183 (lookup_signed_typename): Likewise.
184 (resolve_dynamic_union): Likewise.
185 (resolve_dynamic_struct): Likewise.
186 (add_dyn_prop): Likewise.
187 (copy_dynamic_prop_list): Likewise.
188 (arch_flags_type): Likewise.
189 (append_composite_type_field_raw): Likewise.
190 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
191 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
192 * go-exp.y (string_exp): Likewise.
193 * go-lang.c (go_demangle): Likewise.
194 * guile/guile.c (compute_scheme_string): Likewise.
195 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
196 (gdbscm_canonicalize_command_name): Likewise.
197 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
198 (ioscm_init_memory_port): Likewise.
199 (ioscm_reinit_memory_port): Likewise.
200 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
201 (gdbscm_gc_dup_argv): Likewise.
202 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
203 * hppa-tdep.c (internalize_unwinds): Likewise.
204 (read_unwind_info): Likewise.
205 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
206 (windows_core_xfer_shared_libraries): Likewise.
207 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
208 (i386_stap_parse_special_token_triplet): Likewise.
209 (i386_stap_parse_special_token_three_arg_disp): Likewise.
210 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
211 * inf-child.c (inf_child_fileio_readlink): Likewise.
212 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
213 (inf_ptrace_store_register): Likewise.
214 * infrun.c (follow_exec): Likewise.
215 (displaced_step_prepare_throw): Likewise.
216 (save_stop_context): Likewise.
217 (save_infcall_suspend_state): Likewise.
218 * jit.c (jit_read_descriptor): Likewise.
219 (jit_read_code_entry): Likewise.
220 (jit_symtab_line_mapping_add_impl): Likewise.
221 (finalize_symtab): Likewise.
222 (jit_unwind_reg_get_impl): Likewise.
223 * jv-exp.y (QualifiedName): Likewise.
224 * jv-lang.c (get_java_utf8_name): Likewise.
225 (type_from_class): Likewise.
226 (java_demangle_type_signature): Likewise.
227 (java_class_name_from_physname): Likewise.
228 * jv-typeprint.c (java_type_print_base): Likewise.
229 * jv-valprint.c (java_value_print): Likewise.
230 * language.c (add_language): Likewise.
231 * linespec.c (add_sal_to_sals_basic): Likewise.
232 (add_sal_to_sals): Likewise.
233 (decode_objc): Likewise.
234 (find_linespec_symbols): Likewise.
235 * linux-fork.c (fork_save_infrun_state): Likewise.
236 * linux-nat.c (linux_nat_detach): Likewise.
237 (linux_nat_fileio_readlink): Likewise.
238 * linux-record.c (record_linux_sockaddr): Likewise.
239 (record_linux_msghdr): Likewise.
240 (Do): Likewise.
241 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
242 (linux_collect_regset_section_cb): Likewise.
243 (linux_get_siginfo_data): Likewise.
244 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
245 (try_thread_db_load_from_dir): Likewise.
246 (thread_db_load_search): Likewise.
247 (info_auto_load_libthread_db): Likewise.
248 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
249 (m32c_m16c_pointer_to_address): Likewise.
250 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
251 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
252 * machoread.c (macho_check_dsym): Likewise.
253 * macroexp.c (resize_buffer): Likewise.
254 (gather_arguments): Likewise.
255 (maybe_expand): Likewise.
256 * macrotab.c (new_macro_key): Likewise.
257 (new_source_file): Likewise.
258 (new_macro_definition): Likewise.
259 * mdebugread.c (parse_symbol): Likewise.
260 (parse_type): Likewise.
261 (parse_partial_symbols): Likewise.
262 (psymtab_to_symtab_1): Likewise.
263 * mem-break.c (default_memory_insert_breakpoint): Likewise.
264 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
265 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
266 (mi_cmd_data_read_memory_bytes): Likewise.
267 (mi_cmd_data_write_memory_bytes): Likewise.
268 (mi_cmd_trace_frame_collected): Likewise.
269 * mi/mi-parse.c (mi_parse_argv): Likewise.
270 (mi_parse): Likewise.
271 * minidebug.c (lzma_open): Likewise.
272 (lzma_pread): Likewise.
273 * mips-tdep.c (mips_read_fp_register_single): Likewise.
274 (mips_print_fp_register): Likewise.
275 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
276 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
277 * mt-tdep.c (mt_register_name): Likewise.
278 (mt_registers_info): Likewise.
279 (mt_push_dummy_call): Likewise.
280 * namespace.c (add_using_directive): Likewise.
281 * nat/linux-btrace.c (perf_event_read): Likewise.
282 (linux_enable_bts): Likewise.
283 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
284 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
285 * nto-tdep.c (nto_find_and_open_solib): Likewise.
286 (nto_parse_redirection): Likewise.
287 * objc-lang.c (objc_demangle): Likewise.
288 (find_methods): Likewise.
289 * objfiles.c (get_objfile_bfd_data): Likewise.
290 (set_objfile_main_name): Likewise.
291 (allocate_objfile): Likewise.
292 (objfile_relocate): Likewise.
293 (update_section_map): Likewise.
294 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
295 * p-exp.y (exp): Likewise.
296 (yylex): Likewise.
297 * p-valprint.c (pascal_object_print_value): Likewise.
298 * parse.c (initialize_expout): Likewise.
299 (mark_completion_tag): Likewise.
300 (copy_name): Likewise.
301 (parse_float): Likewise.
302 (type_stack_reserve): Likewise.
303 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
304 (ppu2spu_prev_register): Likewise.
305 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
306 * printcmd.c (printf_wide_c_string): Likewise.
307 (printf_pointer): Likewise.
308 * probe.c (parse_probes): Likewise.
309 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
310 (cmdpy_init): Likewise.
311 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
312 * python/py-symtab.c (set_sal): Likewise.
313 * python/py-unwind.c (pyuw_sniffer): Likewise.
314 * python/python.c (python_interactive_command): Likewise.
315 (compute_python_string): Likewise.
316 * ravenscar-thread.c (get_running_thread_id): Likewise.
317 * record-full.c (record_full_exec_insn): Likewise.
318 (record_full_core_open_1): Likewise.
319 * regcache.c (regcache_raw_read_signed): Likewise.
320 (regcache_raw_read_unsigned): Likewise.
321 (regcache_cooked_read_signed): Likewise.
322 (regcache_cooked_read_unsigned): Likewise.
323 * remote-fileio.c (remote_fileio_func_open): Likewise.
324 (remote_fileio_func_rename): Likewise.
325 (remote_fileio_func_unlink): Likewise.
326 (remote_fileio_func_stat): Likewise.
327 (remote_fileio_func_system): Likewise.
328 * remote-mips.c (mips_xfer_memory): Likewise.
329 (mips_load_srec): Likewise.
330 (pmon_end_download): Likewise.
331 * remote.c (new_remote_state): Likewise.
332 (map_regcache_remote_table): Likewise.
333 (remote_register_number_and_offset): Likewise.
334 (init_remote_state): Likewise.
335 (get_memory_packet_size): Likewise.
336 (remote_pass_signals): Likewise.
337 (remote_program_signals): Likewise.
338 (remote_start_remote): Likewise.
339 (remote_check_symbols): Likewise.
340 (remote_query_supported): Likewise.
341 (extended_remote_attach): Likewise.
342 (process_g_packet): Likewise.
343 (store_registers_using_G): Likewise.
344 (putpkt_binary): Likewise.
345 (read_frame): Likewise.
346 (compare_sections_command): Likewise.
347 (remote_hostio_pread): Likewise.
348 (remote_hostio_readlink): Likewise.
349 (remote_file_put): Likewise.
350 (remote_file_get): Likewise.
351 (remote_pid_to_exec_file): Likewise.
352 (_initialize_remote): Likewise.
353 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
354 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
355 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
356 (bfd_uses_spe_extensions): Likewise.
357 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
358 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
359 * solib-dsbt.c (decode_loadmap): Likewise.
360 (fetch_loadmap): Likewise.
361 (scan_dyntag): Likewise.
362 (enable_break): Likewise.
363 (dsbt_relocate_main_executable): Likewise.
364 * solib-frv.c (fetch_loadmap): Likewise.
365 (enable_break2): Likewise.
366 (frv_relocate_main_executable): Likewise.
367 * solib-spu.c (spu_relocate_main_executable): Likewise.
368 (spu_bfd_open): Likewise.
369 * solib-svr4.c (lm_info_read): Likewise.
370 (read_program_header): Likewise.
371 (find_program_interpreter): Likewise.
372 (scan_dyntag): Likewise.
373 (elf_locate_base): Likewise.
374 (open_symbol_file_object): Likewise.
375 (read_program_headers_from_bfd): Likewise.
376 (svr4_relocate_main_executable): Likewise.
377 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
378 * solib.c (solib_find_1): Likewise.
379 (exec_file_find): Likewise.
380 (solib_find): Likewise.
381 * source.c (openp): Likewise.
382 (print_source_lines_base): Likewise.
383 (forward_search_command): Likewise.
384 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
385 * spu-tdep.c (spu2ppu_prev_register): Likewise.
386 (spu_get_overlay_table): Likewise.
387 * stabsread.c (patch_block_stabs): Likewise.
388 (define_symbol): Likewise.
389 (again:): Likewise.
390 (read_member_functions): Likewise.
391 (read_one_struct_field): Likewise.
392 (read_enum_type): Likewise.
393 (common_block_start): Likewise.
394 * stack.c (read_frame_arg): Likewise.
395 (backtrace_command): Likewise.
396 * stap-probe.c (stap_parse_register_operand): Likewise.
397 * symfile.c (syms_from_objfile_1): Likewise.
398 (find_separate_debug_file): Likewise.
399 (load_command): Likewise.
400 (load_progress): Likewise.
401 (load_section_callback): Likewise.
402 (reread_symbols): Likewise.
403 (add_filename_language): Likewise.
404 (allocate_compunit_symtab): Likewise.
405 (read_target_long_array): Likewise.
406 (simple_read_overlay_table): Likewise.
407 * symtab.c (symbol_set_names): Likewise.
408 (resize_symbol_cache): Likewise.
409 (rbreak_command): Likewise.
410 (completion_list_add_name): Likewise.
411 (completion_list_objc_symbol): Likewise.
412 (add_filename_to_list): Likewise.
413 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
414 * target-memory.c (target_write_memory_blocks): Likewise.
415 * target.c (target_read_string): Likewise.
416 (read_whatever_is_readable): Likewise.
417 (target_read_alloc_1): Likewise.
418 (simple_search_memory): Likewise.
419 (target_fileio_read_alloc_1): Likewise.
420 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
421 * top.c (command_line_input): Likewise.
422 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
423 * tracefile.c (tracefile_fetch_registers): Likewise.
424 * tracepoint.c (add_memrange): Likewise.
425 (init_collection_list): Likewise.
426 (add_aexpr): Likewise.
427 (trace_dump_actions): Likewise.
428 (parse_trace_status): Likewise.
429 (parse_tracepoint_definition): Likewise.
430 (parse_tsv_definition): Likewise.
431 (parse_static_tracepoint_marker_definition): Likewise.
432 * tui/tui-file.c (tui_sfileopen): Likewise.
433 (tui_file_adjust_strbuf): Likewise.
434 * tui/tui-io.c (tui_expand_tabs): Likewise.
435 * tui/tui-source.c (tui_set_source_content): Likewise.
436 * typeprint.c (find_global_typedef): Likewise.
437 * ui-file.c (do_ui_file_xstrdup): Likewise.
438 (ui_file_obsavestring): Likewise.
439 (mem_file_write): Likewise.
440 * utils.c (make_hex_string): Likewise.
441 (get_regcomp_error): Likewise.
442 (puts_filtered_tabular): Likewise.
443 (gdb_realpath_keepfile): Likewise.
444 (ldirname): Likewise.
445 (gdb_bfd_errmsg): Likewise.
446 (substitute_path_component): Likewise.
447 * valops.c (search_struct_method): Likewise.
448 (find_oload_champ_namespace_loop): Likewise.
449 * valprint.c (print_decimal_chars): Likewise.
450 (read_string): Likewise.
451 (generic_emit_char): Likewise.
452 * varobj.c (varobj_delete): Likewise.
453 (varobj_value_get_print_value): Likewise.
454 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
455 * windows-tdep.c (display_one_tib): Likewise.
456 * xcoffread.c (read_xcoff_symtab): Likewise.
457 (process_xcoff_symbol): Likewise.
458 (swap_sym): Likewise.
459 (scan_xcoff_symtab): Likewise.
460 (xcoff_initial_scan): Likewise.
461 * xml-support.c (gdb_xml_end_element): Likewise.
462 (xml_process_xincludes): Likewise.
463 (xml_fetch_content_from_file): Likewise.
464 * xml-syscall.c (xml_list_of_syscalls): Likewise.
465 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
466
623fb775 4672015-09-23 James Bowman <james.bowman@ftdichip.com>
468
469 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
470 instead of builtin_func_ptr.
471 (ft32_pointer_to_address): New function.
472 (ft32_address_class_type_flags): New function.
473 (ft32_address_class_type_flags_to_name): New function.
474 (ft32_address_class_name_to_type_flags): New function.
475 (ft32_gdbarch_init): Set tdep->pc_type. Call
476 set_gdbarch_pointer_to_address,
477 set_gdbarch_address_class_type_flags
478 set_gdbarch_address_class_name_to_type_flags,
479 and set_gdbarch_address_class_type_flags_to_name.
480 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
481
e6c2c623
PMR
4822015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
483
484 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
485 value is a reference, actually dereference it in order to get
486 the underlying value.
487
bc1f8cda
SM
4882015-09-22 Simon Marchi <simon.marchi@ericsson.com>
489
490 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
491
acaa662f
SM
4922015-09-21 Simon Marchi <simon.marchi@ericsson.com>
493
494 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
495 * linespec.c (linespec_lexer_lex_string): Same.
496
4d9d419e
PL
4972015-09-21 Pierre Langlois <pierre.langlois@arm.com>
498
499 * NEWS: Mention support for fast tracepoints on aarch64-linux.
500
6ec5f4be
PL
5012015-09-21 Pierre Langlois <pierre.langlois@arm.com>
502
503 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
504 variable. Call aarch64_decode_adr instead of
505 aarch64_decode_adrp.
506 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
507 (aarch64_decode_adr): New function declaration.
508 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
509 (aarch64_decode_adr): New function, factored out from
510 aarch64_decode_adrp to decode both adr and adrp instructions.
511
787749ea
PL
5122015-09-21 Pierre Langlois <pierre.langlois@arm.com>
513
514 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
515 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
516 (aarch64-insn.o): New rule.
517 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
518 (aarch64*-*-linux*): Likewise.
519 * arch/aarch64-insn.c: New file.
520 * arch/aarch64-insn.h: New file.
521 * aarch64-tdep.c: Include arch/aarch64-insn.h.
522 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
523 arch/aarch64-insn.h.
524 (decode_add_sub_imm): Rename to ...
525 (aarch64_decode_add_sub_imm): ... this.
526 (decode_adrp): Rename to ...
527 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
528 Declare in arch/aarch64-insn.h.
529 (decode_b): Rename to ...
530 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
531 Declare in arch/aarch64-insn.h.
532 (decode_bcond): Rename to ...
533 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
534 Declare in arch/aarch64-insn.h.
535 (decode_br): Rename to ...
536 (aarch64_decode_br): ... this.
537 (decode_cb): Rename to ...
538 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
539 Declare in arch/aarch64-insn.h.
540 (decode_eret): Rename to ...
541 (aarch64_decode_eret): ... this.
542 (decode_movz): Rename to ...
543 (aarch64_decode_movz): ... this.
544 (decode_orr_shifted_register_x): Rename to ...
545 (aarch64_decode_orr_shifted_register_x): ... this.
546 (decode_ret): Rename to ...
547 (aarch64_decode_ret): ... this.
548 (decode_stp_offset): Rename to ...
549 (aarch64_decode_stp_offset): ... this.
550 (decode_stp_offset_wb): Rename to ...
551 (aarch64_decode_stp_offset_wb): ... this.
552 (decode_stur): Rename to ...
553 (aarch64_decode_stur): ... this.
554 (decode_tb): Rename to ...
555 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
556 Declare in arch/aarch64-insn.h.
557 (aarch64_analyze_prologue): Adjust calls to renamed functions.
558
183dc7ec
DE
5592015-09-20 Doug Evans <xdje42@gmail.com>
560
561 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
562
2ee7123e
DE
5632015-09-20 Doug Evans <xdje42@gmail.com>
564
565 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
566 variable name that collides with a parameter.
567
7d1c9c9b
JB
5682015-09-20 Joel Brobecker <brobecker@adacore.com>
569
570 * dwarf2loc.c (locexpr_get_frame_base): Renames
571 block_op_get_frame_base.
572 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
573 block_op_get_frame_base by reference to locexpr_get_frame_base.
574 (loclist_get_frame_base): New function, near identical copy of
575 locexpr_get_frame_base.
576 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
577 block_op_get_frame_base by reference to loclist_get_frame_base.
578
7dc7c195
DE
5792015-09-19 Doug Evans <xdje42@gmail.com>
580
581 * ravenscar-thread.c (ravenscar_inferior_created): Replace
582 current_inferior ()->gdbarch with its wrapper target_gdbarch.
583
be550b6e
DE
5842015-09-18 Doug Evans <xdje42@gmail.com>
585
586 * linux-thread-db.c (record_thread): Return the created thread.
587 (thread_from_lwp): Likewise.
588 (thread_db_get_thread_local_address): Update.
589
615b3f62
DE
5902015-09-18 Doug Evans <xdje42@gmail.com>
591
592 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
593 move only member demangled_name up. All uses updated.
594
015d2e7e
DE
5952015-09-18 Doug Evans <xdje42@gmail.com>
596
597 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
598 kind of minimal symbol in the error message.
599 * objfiles.c (objfile_flavour_name): New function.
600 * objfiles.h (objfile_flavour_name): Declare.
601
a0cc84cd
YQ
6022015-09-18 Yao Qi <yao.qi@linaro.org>
603
604 * nat/aarch64-linux.c: Include elf/common.h,
605 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
606 (aarch64_ps_get_thread_area): New function.
607 * nat/aarch64-linux.h: Include gdb_proc_service.h.
608 (aarch64_ps_get_thread_area): Declare.
609 * aarch64-linux-nat.c (ps_get_thread_area): Call
610 aarch64_ps_get_thread_area.
611
d2939ba2
MM
6122015-09-18 Markus Metzger <markus.t.metzger@intel.com>
613
614 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
615
f2665db5
MM
6162015-09-18 Markus Metzger <markus.t.metzger@intel.com>
617
618 * NEWS: Announce new scheduler-locking mode.
619 * infrun.c (schedlock_replay): New.
620 (scheduler_enums): Add schedlock_replay.
621 (scheduler_mode): Change default to schedlock_replay.
622 (user_visible_resume_ptid): Handle schedlock_replay.
623 (clear_proceed_status_thread): Stop replaying if resumed thread is
624 not replaying.
625 (schedlock_applies): Handle schedlock_replay.
626 (_initialize_infrun): Document new scheduler-locking mode.
627 * record-btrace.c (record_btrace_resume): Remove code to stop other
628 threads when not replaying the resumed thread.
629
7ff27e9b
MM
6302015-09-18 Markus Metzger <markus.t.metzger@intel.com>
631
632 * record-btrace.c ((record_btrace_will_replay): New.
633 (init_record_btrace_ops): Initialize to_record_will_replay.
634 * record-full.c ((record_full_will_replay): New.
635 (init_record_full_ops): Initialize to_record_will_replay.
636 * target-delegates.c: Regenerated.
637 * target.c (target_record_will_replay): New.
638 * target.h (struct target_ops) <to_record_will_replay>: New.
639 (target_record_will_replay): New.
640
797094dd
MM
6412015-09-18 Markus Metzger <markus.t.metzger@intel.com>
642
643 * record-btrace.c (record_btrace_resume): Call
644 target_record_stop_replaying.
645 (record_btrace_stop_replaying_all): New.
646 (init_record_btrace_ops): Initialize to_record_stop_replaying.
647 * record-full.c (record_full_stop_replaying): New.
648 (init_record_full_ops ): Initialize to_record_stop_replaying.
649 * target-delegates.c: Regenerated.
650 * target.c (target_record_stop_replaying): New.
651 * target.h (struct target_ops) <to_record_stop_replaying>: New.
652 (target_record_stop_replaying): New.
653
4d10e986
MM
6542015-09-18 Markus Metzger <markus.t.metzger@intel.com>
655
656 * record-btrace.c (record_btrace_xfer_partial)
657 (record_btrace_store_registers, record_btrace_prepare_to_store):
658 Call record_btrace_is_replaying with inferior_ptid instead of
659 minus_one_ptid.
660 (record_btrace_store_registers): Change error message.
661
a52eab48
MM
6622015-09-18 Markus Metzger <markus.t.metzger@intel.com>
663
664 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
665 Update users to pass minus_one_ptid.
666 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
667 * record.c (cmd_record_delete): Pass inferior_ptid to
668 target_record_is_replaying.
669 * target-delegates.c: Regenerated.
670 * target.c (target_record_is_replaying): Add ptid argument.
671 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
672 argument.
673 (target_record_is_replaying): Add ptid argument.
674
cbb55fa7
MM
6752015-09-18 Markus Metzger <markus.t.metzger@intel.com>
676
677 * record-btrace.c (record_btrace_open): Remove non_stop check.
678 * NEWS: Announce that record btrace supports non-stop mode.
679
d1988021
MM
6802015-09-18 Markus Metzger <markus.t.metzger@intel.com>
681
682 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
683 in the TARKET_WAITKIND_NO_HISTORY case.
684
a6b5be76
MM
6852015-09-18 Markus Metzger <markus.t.metzger@intel.com>
686
687 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
688 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
689
ec71cc2f
MM
6902015-09-18 Markus Metzger <markus.t.metzger@intel.com>
691
692 * record-btrace.c (get_thread_current_frame): New.
693 (record_btrace_start_replaying): Call get_thread_current_frame.
694
0ca912df
MM
6952015-09-18 Markus Metzger <markus.t.metzger@intel.com>
696
697 * record-btrace.c (record_btrace_resume_thread): A move request
698 overwrites a previous move request.
699 (record_btrace_find_resume_thread): Removed.
700 (record_btrace_resume): Resume all requested threads.
701
e3cfc1c7
MM
7022015-09-18 Markus Metzger <markus.t.metzger@intel.com>
703
704 * record-btrace.c: Include vec.h.
705 (record_btrace_find_thread_to_move): Removed.
706 (btrace_step_no_resumed, btrace_step_again)
707 (record_btrace_stop_replaying_at_end): New.
708 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
709 (record_btrace_single_step_forward): Remove calls to
710 record_btrace_stop_replaying.
711 (record_btrace_step_thread): Do only one step for BTHR_CONT and
712 BTHR_RCONT. Keep threads at the end of their history moving.
713 (record_btrace_wait): Call record_btrace_step_thread for all threads
714 until one reports an event. Call record_btrace_stop_replaying_at_end
715 for the eventing thread.
716
cf8f8f0c
MM
7172015-09-18 Markus Metzger <markus.t.metzger@intel.com>
718
719 * record-btrace.c (record_btrace_single_step_forward): Return
720 NO_HISTORY if a step brings us to the end of the execution history.
721
011c71b6
MM
7222015-09-18 Markus Metzger <markus.t.metzger@intel.com>
723
724 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
725 to ...
726 (record_btrace_single_step_forward): ... here and
727 (record_btrace_single_step_backward): ... here.
728
d825d248
MM
7292015-09-18 Markus Metzger <markus.t.metzger@intel.com>
730
731 * record-btrace.c (btrace_step_spurious)
732 (record_btrace_single_step_forward)
733 (record_btrace_single_step_backward): New.
734 (record_btrace_step_thread): Call record_btrace_single_step_forward
735 and record_btrace_single_step_backward.
736
3c615f99
MM
7372015-09-18 Markus Metzger <markus.t.metzger@intel.com>
738
739 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
740 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
741
987e68b1
MM
7422015-09-18 Markus Metzger <markus.t.metzger@intel.com>
743
744 * record-btrace.c (btrace_thread_flag_to_str)
745 (record_btrace_cancel_resume): New.
746 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
747 (record_btrace_resume): Print execution direction.
748 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
749 (record_btrace_wait): Call record_btrace_cancel_resume.
750
6e4879f0
MM
7512015-09-18 Markus Metzger <markus.t.metzger@intel.com>
752
753 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
754 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
755 (record_btrace_find_thread_to_move): Also accept threads that have
756 BTHR_STOP set.
757 (btrace_step_stopped_on_request, record_btrace_stop): New.
758 (record_btrace_step_thread): Support BTHR_STOP.
759 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
760 (init_record_btrace_ops): Initialize to_stop.
761
5953356c
MM
7622015-09-18 Markus Metzger <markus.t.metzger@intel.com>
763
764 * record-btrace.c (record_btrace_wait): Replace non_stop check with
765 target_is_non_stop_p ().
766
bfca584f
PMR
7672015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
768
769 * ada-typeprint.c (print_array_type): Do not describe arrays as
770 packed when they embed dynamic elements.
771
5382cfab
PW
7722015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
773
774 * symtab.h (address_class): Document that TLS variables
775 are handled by LOC_UNRESOLVED.
776 * findvar.c (default_read_var_value): Don't relocate TLS variables.
777 * printcmd.c (address_info): Don't relocate TLS variables.
778
b277c936
PL
7792015-09-15 Pierre Langlois <pierre.langlois@arm.com>
780
781 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
782 (decode_adrp): Likewise.
783 (decode_b): Likewise.
784 (decode_bcond): Likewise.
785 (decode_br): Likewise.
786 (decode_cb): Likewise.
787 (decode_eret): Likewise.
788 (decode_movz): Likewise.
789 (decode_orr_shifted_register_x): Likewise.
790 (decode_ret): Likewise.
791 (decode_stp_offset): Likewise.
792 (decode_stp_offset_wb): Likewise.
793 (decode_stur): Likewise.
794 (decode_tb): Likewise.
795 (aarch64_analyze_prologue): Likewise.
796 (pass_in_x): Likewise.
797 (pass_in_v): Likewise.
798 (pass_on_stack): Likewise.
799 (aarch64_push_dummy_call): Likewise.
800 (aarch64_extract_return_value): Likewise.
801 (aarch64_store_return_value): Likewise.
802 (aarch64_return_value): Likewise.
803 (aarch64_record_asimd_load_store): Likewise.
804 (aarch64_record_load_store): Likewise.
805 (aarch64_record_data_proc_simd_fp): Likewise.
806
141c5cc4
JK
8072015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
808
809 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
810 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
811 (ppc64_skip_trampoline_code_1): ... here.
812 (ppc64_skip_trampoline_code): New wrapper function.
813 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
814
750ce8d1
YQ
8152015-09-15 Yao Qi <yao.qi@linaro.org>
816
817 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
818 function.
819 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
820 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
821 if target_can_do_single_step returns 1.
822 * remote.c (struct vCont_action_support) <s, S>: New fields.
823 (PACKET_vContSupported): New enum.
824 (remote_protocol_features): New element for vContSupported.
825 (remote_query_supported): Append "vContSupported+".
826 (remote_vcont_probe): Remove support_s and support_S, use
827 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
828 vCont packet if c and C actions are not supported.
829 (remote_can_do_single_step): New function.
830 (init_remote_ops): Install it to to_can_do_single_step.
831 (_initialize_remote): Call add_packet_config_cmd.
832 * target.h (struct target_ops) <to_can_do_single_step>: New field.
833 (target_can_do_single_step): New macro.
834 * target-delegates.c: Re-generated.
835
ade90bde
YQ
8362015-09-15 Yao Qi <yao.qi@linaro.org>
837
838 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
839 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
840 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
841 New function.
842 (aarch64_siginfo_from_compat_siginfo): New function.
843 * nat/aarch64-linux.h: Include signal.h.
844 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
845 (compat_timer_t, compat_clock_t): Likewise.
846 (struct compat_timeval): New.
847 (union compat_sigval): New.
848 (struct compat_siginfo): New.
849 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
850 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
851 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
852 (cpt_si_band, cpt_si_fd): Likewise.
853
4c2f2a79
PA
8542015-09-14 Pedro Alves <palves@redhat.com>
855
856 * infrun.c (current_stop_id): New global.
857 (get_stop_id, new_stop_id): New functions.
858 (fetch_inferior_event): Handle normal_stop proceeding the target.
859 (struct stop_context): New.
860 (save_stop_context, release_stop_context_cleanup)
861 (stop_context_changed): New functions.
862 (normal_stop): Return true if the hook-stop changes the stop
863 context.
864 * infrun.h (get_stop_id): Declare.
865 (normal_stop): Now returns int. Add documentation.
866
919e6dbe
PMR
8672015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
868
869 * ada-lang.c (ada_value_ptr_subscript): Update the heading
870 comment. Handle packed arrays.
871
b027a8fa
PA
8722015-09-14 Pedro Alves <palves@redhat.com>
873
874 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
875 mention of maint set/show target-non-stop.
876
b459a59b
DB
8772015-09-11 Don Breazeal <donb@codesourcery.com>
878
879 * NEWS: Announce new remote packets for the exec-events
880 feature and the exec-events feature and associated commands.
881
d46addbb
DB
8822015-09-11 Don Breazeal <donb@codesourcery.com>
883
884 * remote.c (remote_exec_event_p): New function.
885 (remote_insert_exec_catchpoint): New function.
886 (remote_remove_exec_catchpoint): New function.
887 (init_extended_remote_ops): Initialize extended_remote_ops
888 members to_insert_exec_catchpoint and
889 to_remove_exec_catchpoint.
890
94585166
DB
8912015-09-11 Don Breazeal <donb@codesourcery.com>
892 Luis Machado <lgustavo@codesourcery.com>
893
894 * infrun.c (follow_exec): Use process-style ptid for
895 exec message. Call add_inferior_with_spaces and
896 target_follow_exec.
897 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
898 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
899 * remote.c (remote_pspace_data): New static variable.
900 (remote_pspace_data_cleanup): New function.
901 (get_remote_exec_file): New function.
902 (set_remote_exec_file_1): New function.
903 (set_remote_exec_file): New function.
904 (show_remote_exec_file): New function.
905 (remote_exec_file): Delete static variable.
906 (anonymous enum) <PACKET_exec_event_feature>: New
907 enumeration constant.
908 (remote_protocol_features): Add entry for exec-events feature.
909 (remote_query_supported): Add client side of qSupported query
910 for exec-events feature.
911 (remote_follow_exec): New function.
912 (remote_parse_stop_reply): Handle 'exec' stop reason.
913 (extended_remote_run, extended_remote_create_inferior): Call
914 get_remote_exec_file and set_remote_exec_file_1.
915 (init_extended_remote_ops) <to_follow_exec>: Initialize new
916 member.
917 (_initialize_remote): Call
918 register_program_space_data_with_cleanup. Call
919 add_packet_config_cmd for remote exec-events feature.
920 Modify call to add_setshow_string_noescape_cmd for exec-file
921 to use new functions set_remote_exec_file and
922 show_remote_exec_file.
923 * target-debug.h, target-delegates.c: Regenerated.
924 * target.c (target_follow_exec): New function.
925 * target.h (struct target_ops) <to_follow_exec>: New member.
926 (target_follow_exec): Declare new function.
927
669e74e8
PL
9282015-09-11 Pierre Langlois <pierre.langlois@arm.com>
929
930 * aarch64-tdep.c (decode_cb): Move up comment describing the
931 encoding.
932 (decode_tb): Fix a typo in comment above the function. Move up
933 comment describing the encoding.
934
4d50586d
PL
9352015-09-11 Pierre Langlois <pierre.langlois@arm.com>
936
937 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
938
6dcaef99
MMN
9392015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
940
941 PR gdb/18947
942 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
943 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
944
5da1a4d3
SM
9452015-09-10 Simon Marchi <simon.marchi@ericsson.com>
946
947 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
948 operations.
949
108d56a4
SM
9502015-09-10 Simon Marchi <simon.marchi@ericsson.com>
951
952 * ada-lang.c (ada_search_struct_field): Constify parameters
953 and/or variables..
954 (xget_renaming_scope): Likewise.
955 (ada_is_redundant_range_encoding): Likewise.
956 (scan_discrim_bound): Likewise.
957 (to_fixed_range_type): Likewise.
958
dd2e65cc
YQ
9592015-09-10 Yao Qi <yao.qi@linaro.org>
960
961 * breakpoint.c (download_tracepoint_locations): New local
962 can_download_tracepoint. Check the result of
963 target_can_download_tracepoint and save it in
964 can_download_tracepoint if there are tracepoints to download.
965 * linux-nat.h (enum tribool): Move it to ...
966 * common/common-types.h: ... here.
967
cfe75703
PA
9682015-09-09 Pedro Alves <palves@redhat.com>
969
970 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
971 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
972
a85a3079
PA
9732015-09-09 Pedro Alves <palves@redhat.com>
974
975 * continuations.c (add_continuation, restore_thread_cleanup)
976 (do_all_continuations_ptid, do_all_continuations_thread_callback)
977 (do_all_continuations_thread, do_all_continuations)
978 (discard_all_continuations_thread_callback)
979 (discard_all_continuations_thread, discard_all_continuations)
980 (add_intermediate_continuation)
981 (do_all_intermediate_continuations_thread_callback)
982 (do_all_intermediate_continuations_thread)
983 (do_all_intermediate_continuations)
984 (discard_all_intermediate_continuations_thread_callback)
985 (discard_all_intermediate_continuations_thread)
986 (discard_all_intermediate_continuations): Delete.
987 * continuations.h (add_continuation, do_all_continuations)
988 (do_all_continuations_thread, discard_all_continuations)
989 (discard_all_continuations_thread, add_intermediate_continuation)
990 (do_all_intermediate_continuations)
991 (do_all_intermediate_continuations_thread)
992 (discard_all_intermediate_continuations)
993 (discard_all_intermediate_continuations_thread): Delete
994 declarations.
995 * event-top.c (stdin_event_handler): Delete references to
996 continuations.
997 * gdbthread.h (struct thread_info): Delete continuations and
998 intermediate_continuations fields.
999 * inf-loop.c (inferior_event_handler): Remove references to
1000 continuations.
1001 * infrun.c (infrun_thread_stop_requested_callback): Remove
1002 references to continuations.
1003 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
1004 * thread.c: Don't include "continuations.h".
1005 (clear_thread_inferior_resources): Remove references to
1006 continuations.
1007
0700e23e
PA
10082015-09-09 Pedro Alves <palves@redhat.com>
1009
1010 * infcall.c (struct dummy_frame_context_saver): Delete.
1011 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
1012 (dummy_frame_context_saver_drop)
1013 (dummy_frame_context_saver_cleanup)
1014 (dummy_frame_context_saver_get_regs)
1015 (dummy_frame_context_saver_setup): Delete.
1016 * infcall.h (dummy_frame_context_saver_drop)
1017 (dummy_frame_context_saver_cleanup)
1018 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
1019 Delete.
1020 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
1021 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
1022 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
1023
cfc31633
PA
10242015-09-09 Pedro Alves <palves@redhat.com>
1025
1026 * breakpoint.c: Include "thread-fsm.h".
1027 (struct until_break_command_continuation_args): Delete.
1028 (struct until_break_fsm): New.
1029 (until_break_fsm_ops): New global.
1030 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
1031 (until_break_command_continuation): Delete.
1032 (until_break_fsm_clean_up): New function.
1033 (until_break_fsm_async_reply_reason): New function.
1034 (until_break_command): Adjust to create an until_break_fsm instead
1035 of a continuation.
1036 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
1037 here.
1038 * infcmd.c (struct until_next_fsm): New.
1039 (until_next_fsm_ops): New global.
1040 (new_until_next_fsm, until_next_fsm_should_stop): New function.
1041 (until_next_continuation): Delete.
1042 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
1043 functions.
1044 (until_next_command): Adjust to create a new until_next_fsm
1045 instead of a continuation.
1046
388a7084
PA
10472015-09-09 Pedro Alves <palves@redhat.com>
1048
1049 * infcall.c: Include thread_fsm.h.
1050 (struct call_return_meta_info): New.
1051 (get_call_return_value): New function, factored out from
1052 call_function_by_hand_dummy.
1053 (struct call_thread_fsm): New.
1054 (call_thread_fsm_ops): New global.
1055 (new_call_thread_fsm, call_thread_fsm_should_stop)
1056 (call_thread_fsm_should_notify_stop): New functions.
1057 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
1058 the thread.
1059 (call_function_by_hand_dummy): Create a new call_thread_fsm
1060 instance, associate it with the thread, and wait for the FSM to
1061 finish. If finished successfully, fetch the function's result
1062 value out of the FSM.
1063 * infrun.c (fetch_inferior_event): If the FSM says the stop
1064 shouldn't be notified, don't call normal_stop.
1065 (maybe_remove_breakpoints): New function, factored out from ...
1066 (normal_stop): ... here. Simplify.
1067 * infrun.h (maybe_remove_breakpoints): Declare.
1068 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
1069 (thread-fsm.h) <struct thread_fsm_ops>: New field.
1070 (thread_fsm_should_notify_stop): Declare.
1071
243a9253
PA
10722015-09-09 Pedro Alves <palves@redhat.com>
1073
1074 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
1075 * breakpoint.c (handle_jit_event): Print debug output.
1076 (bpstat_what): Split event callback handling to ...
1077 (bpstat_run_callbacks): ... this new function.
1078 (momentary_bkpt_print_it): No longer handle bp_finish here.
1079 * breakpoint.h (bpstat_run_callbacks): Declare.
1080 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
1081 <thread_fsm>: New field.
1082 (thread_cancel_execution_command): Declare.
1083 * infcmd.c: Include thread-fsm.h.
1084 (struct step_command_fsm): New.
1085 (step_command_fsm_ops): New global.
1086 (new_step_command_fsm, step_command_fsm_prepare): New functions.
1087 (step_1): Adjust to use step_command_fsm_prepare and
1088 prepare_one_step.
1089 (struct step_1_continuation_args): Delete.
1090 (step_1_continuation): Delete.
1091 (step_command_fsm_should_stop): New function.
1092 (step_once): Delete.
1093 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
1094 (prepare_one_step): New function, based on step_once.
1095 (until_next_command): Remove step_multi reference.
1096 (struct return_value_info): New.
1097 (print_return_value): Rename to ...
1098 (print_return_value_1): ... this. New struct return_value_info
1099 parameter. Adjust.
1100 (print_return_value): Reimplement as wrapper around
1101 print_return_value_1.
1102 (struct finish_command_fsm): New.
1103 (finish_command_continuation): Delete.
1104 (finish_command_fsm_ops): New global.
1105 (new_finish_command_fsm, finish_command_fsm_should_stop): New
1106 functions.
1107 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
1108 New.
1109 (finish_command_continuation_free_arg): Delete.
1110 (finish_command_fsm_async_reply_reason): New.
1111 (finish_backward, finish_forward): Change symbol parameter to a
1112 finish_command_fsm. Adjust.
1113 (finish_command): Create a finish_command_fsm. Adjust.
1114 * infrun.c: Include "thread-fsm.h".
1115 (clear_proceed_status_thread): Delete the thread's FSM.
1116 (infrun_thread_stop_requested_callback): Cancel the thread's
1117 execution command.
1118 (clean_up_just_stopped_threads_fsms): New function.
1119 (fetch_inferior_event): Handle the event_thread's should_stop
1120 method saying the command isn't done yet.
1121 (process_event_stop_test): Run breakpoint callbacks here.
1122 (print_stop_event): Rename to ...
1123 (print_stop_location): ... this.
1124 (restore_current_uiout_cleanup): New function.
1125 (print_stop_event): Reimplement.
1126 (normal_stop): No longer notify the end_stepping_range observers
1127 here handle "step N" nor "finish" here. No longer call
1128 print_stop_event here.
1129 * infrun.h (struct return_value_info): Forward declare.
1130 (print_return_value): Declare.
1131 (print_stop_event): Change prototype.
1132 * thread-fsm.c: New file.
1133 * thread-fsm.h: New file.
1134 * thread.c: Include "thread-fsm.h".
1135 (thread_cancel_execution_command): New function.
1136 (clear_thread_inferior_resources): Call it.
1137 * cli/cli-interp.c (cli_on_normal_stop): New function.
1138 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
1139 observer.
1140 * mi/mi-interp.c: Include "thread-fsm.h".
1141 (restore_current_uiout_cleanup): Delete.
1142 (mi_on_normal_stop): If the thread has an FSM associated, and it
1143 finished, ask it for the async-reply-reason to print. Always call
1144 print_stop_event here, regardless of the top-level interpreter.
1145 Check bpstat_what to tell whether an asynchronous breakpoint hit
1146 triggered.
1147 * tui/tui-interp.c (tui_on_normal_stop): New function.
1148 (tui_init): Install tui_on_normal_stop as normal_stop observer.
1149
0b333c5e
PA
11502015-09-09 Pedro Alves <palves@redhat.com>
1151
1152 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
1153 check whether the target can async.
1154 * inf-loop.c (inferior_event_handler): Only call target_async if
1155 the target can async.
1156 * infcall.c: Include top.h and interps.h.
1157 (run_inferior_call): For the interpreter to sync mode while
1158 running the infcall. Call wait_sync_command_done instead of
1159 wait_for_inferior plus normal_stop.
1160 * infcmd.c (prepare_execution_command): Don't check whether the
1161 target can async when running in the foreground.
1162 (step_1): Delete synchronous case handling.
1163 (step_once): Always install a continuation, even in sync mode.
1164 (until_next_command, finish_forward): Don't check whether the
1165 target can async.
1166 (attach_command_post_wait, notice_new_inferior): Always install a
1167 continuation, even in sync mode.
1168 * infrun.c (mark_infrun_async_event_handler): New function.
1169 (proceed): In sync mode, mark infrun's event source instead of
1170 waiting for events here.
1171 (fetch_inferior_event): If the target can't async, do a blocking
1172 wait.
1173 (prepare_to_wait): In sync mode, mark infrun's event source.
1174 (infrun_async_inferior_event_handler): No longer bail out if the
1175 target can't async.
1176 * infrun.h (mark_infrun_async_event_handler): New declaration.
1177 * linux-nat.c (linux_nat_wait_1): Remove calls to
1178 set_sigint_trap/clear_sigint_trap.
1179 (linux_nat_terminal_inferior): No longer check whether the target
1180 can async.
1181 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
1182 comment.
1183 (mi_execute_command_input_handler): No longer check whether the
1184 target is async. Update and simplify comment.
1185 * target.c (default_target_wait): New function.
1186 * target.h (struct target_ops) <to_wait>: Now defaults to
1187 default_target_wait.
1188 (default_target_wait): Declare.
1189 * top.c (wait_sync_command_done): New function, factored out from
1190 ...
1191 (maybe_wait_sync_command_done): ... this.
1192 * top.h (wait_sync_command_done): Declare.
1193 * target-delegates.c: Regenerate.
1194
0568462b
MM
11952015-09-09 Markus Metzger <markus.t.metzger@intel.com>
1196
1197 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
1198 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
1199 Remove include of sys/utsname.h.
1200 (linux_determine_kernel_ptr_bits): Remove.
1201 (linux_determine_kernel_start): New.
1202 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
1203 Update check.
1204 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
1205 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
1206 initialization.
1207 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
1208 assignment.
1209
72e02483
PA
12102015-09-07 Pedro Alves <palves@redhat.com>
1211
1212 * guile/guile-internal.h (as_a_scm_t_subr): New.
1213 * guile/guile.c (misc_guile_functions): Use it.
1214 * guile/scm-arch.c (arch_functions): Use it.
1215 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
1216 Use it.
1217 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
1218 * guile/scm-cmd.c (command_functions): Use it.
1219 * guile/scm-disasm.c (disasm_functions): Use it.
1220 * guile/scm-exception.c (exception_functions)
1221 (private_exception_functions): Use it.
1222 * guile/scm-frame.c (frame_functions)
1223 * guile/scm-gsmob.c (gsmob_functions): Use it.
1224 * guile/scm-iterator.c (iterator_functions): Use it.
1225 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
1226 * guile/scm-math.c (math_functions): Use it.
1227 * guile/scm-objfile.c (objfile_functions): Use it.
1228 * guile/scm-param.c (parameter_functions): Use it.
1229 * guile/scm-ports.c (port_functions, private_port_functions): Use
1230 it.
1231 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
1232 * guile/scm-progspace.c (pspace_functions): Use it.
1233 * guile/scm-string.c (string_functions): Use it.
1234 * guile/scm-symbol.c (symbol_functions): Use it.
1235 * guile/scm-symtab.c (symtab_functions): Use it.
1236 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
1237 it.
1238 * guile/scm-value.c (value_functions): Use it.
1239
e65b5245
AB
12402015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1241
1242 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
1243 (tui_next_win): Likewise.
1244 (tui_prev_win): Likewise.
1245 (tui_partial_win_by_name): Likewise.
1246 (tui_init_generic_part): Likewise.
1247 (init_content_element): Likewise.
1248 (tui_del_window): Likewise.
1249 (tui_free_window): Likewise.
1250 (tui_del_data_windows): Likewise.
1251 (tui_free_data_content): Likewise.
1252 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
1253 * tui/tui-regs.c (tui_show_register_group): Likewise.
1254 * tui/tui-win.c (tui_resize_all): Likewise.
1255 (tui_set_focus): Likewise.
1256 (tui_set_win_height): Likewise.
1257 (make_invisible_and_set_new_height): Likewise.
1258 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
1259 * tui/tui-wingeneral.c (make_visible): Likewise.
1260
b03e6ad9
AB
12612015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1262
1263 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
1264
be903358
AB
12652015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
1266
1267 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
1268 pointer.
1269 * dbxread.c (dbx_end_psymtab): Likewise.
1270 * gnu-nat.c (gnu_write_inferior): Likewise.
1271 * mdebugread.c (cross_ref): Likewise.
1272 * p-valprint.c (pascal_val_print): Likewise.
1273 * xcoffread.c (xcoff_end_psymtab): Likewise.
1274
02f024f9
YQ
12752015-09-04 Yao Qi <yao.qi@linaro.org>
1276
1277 * NEWS: Mention the aarch64 multi-arch debugging support.
1278
cd7c1778
PMR
12792015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
1280
1281 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
1282 type instead of a TYPE_CODE_INT one for the string_char_type
1283 and the ada_primitive_type_char types.
1284
39edd165
YQ
12852015-09-03 Yao Qi <yao.qi@linaro.org>
1286
1287 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
1288 Move code to aarch64_linux_region_ok_for_watchpoint. Call
1289 aarch64_linux_region_ok_for_watchpoint.
1290 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
1291 New function.
1292 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
1293 Declare it.
1294
6c214e7c
PP
12952015-09-02 Patrick Palka <patrick@parcs.ath.cx>
1296
1297 * gdb_obstack.h (obstack_strdup): Declare.
1298 * gdb_obstack.c (obstack_strdup): Define.
1299 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
1300 * gdbarch.c: Regenerate.
1301 * gdbarch.h: Regenerate.
1302 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
1303
eed8b28a
PP
13042015-09-02 Patrick Palka <patrick@parcs.ath.cx>
1305
1306 * gdbtypes.c (copy_type_recursive): Update documentation.
1307
73c6b475
SDJ
13082015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1309
1310 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
1311 as zero.
1312
ad1c917a
SDJ
13132015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1314
1315 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
1316
3bd7e5b7
SDJ
13172015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1318
1319 * solib-svr4.c (solib_event_probe_action): Call
1320 get_probe_argument_count using TRY...CATCH.
1321 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
1322
f469e8ce
SDJ
13232015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
1324
1325 * probe.h (struct probe_ops) <get_probe_argument_count,
1326 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
1327 the comment that the function can throw an exception.
1328 (get_probe_argument_count): Likewise.
1329 (evaluate_probe_argument): Likewise.
1330 * stap-probe.c (stap_get_opcode): Call error instead of
1331 internal_error.
1332 (stap_get_expected_argument_type): Likewise. Add argument
1333 'probe'. Improve error message by mentioning the probe's name.
1334 (stap_parse_probe_arguments): Adjust call to
1335 stap_get_expected_argument_type.
1336 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
1337 not zero. Call internal_error if GDB requests an argument but the
1338 probe has no arguments.
1339
dc5c8746
PMR
13402015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
1341
1342 * ada-lang.c (ada_resolve_function): Do not ask the user what
1343 match to use when in completion mode.
1344
136765ea
AB
13452015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
1346
1347 * tui/tui-data.c (tui_win_name): Make local variable const, remove
1348 cast of NULL.
1349
90b81c5f
MF
13502015-08-31 Max Filippov <jcmvbkbc@gmail.com>
1351
1352 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
1353 call_abi using XSHAL_ABI macro.
1354
1cd36e54
DE
13552015-08-29 Doug Evans <xdje42@gmail.com>
1356
1357 * symtab.h (struct symbol): Tweak comment.
1358
8f57eec2
PP
13592015-08-29 Patrick Palka <patrick@parcs.ath.cx>
1360
1361 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
1362 gdbarch obstack instead of on the heap. Update commentary
1363 accordingly.
1364
38eebd71
JB
13652015-08-28 Joel Brobecker <brobecker@adacore.com>
1366
1367 GDB 7.10 released.
1368
d63dd61e
SM
13692015-08-28 Simon Marchi <simon.marchi@ericsson.com>
1370
1371 * NEWS: Update entry about non-8-bits addressable memory.
1372
6f059256
UW
13732015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
1374
1375 Revert:
1376 2014-11-06 Doug Evans <xdje42@gmail.com>
1377 * solib.c (solib_global_lookup): Fetch arch from objfile,
1378 not target_gdbarch.
1379
70987a92 13802015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
1381
1382 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
1383 attempt to relocate a TLS variable offset.
1384
70987a92 13852015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
1386
1387 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
1388 registered yet. Set inferior_ptid while calling target_read_memory.
1389
70987a92 13902015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
1391
1392 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
1393 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
1394 * linux-nat.c (check_stopped_by_breakpoint): Use
1395 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
1396
70987a92 13972015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
1398
1399 * linux-thread-db.c (thread_db_get_thread_local_address): If the
1400 thread was not yet discovered, use thread_from_lwp instead of
1401 calling thread_db_find_new_threads_1.
1402
f5cdf498
SM
14032015-08-27 Simon Marchi <simon.marchi@ericsson.com>
1404
1405 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
1406 statements.
1407
fd2ae5d6
SM
14082015-08-27 Simon Marchi <simon.marchi@ericsson.com>
1409
1410 * NEWS: Document support for non-8-bits addressable memory.
1411
14d88147
PA
14122015-08-27 Pedro Alves <palves@redhat.com>
1413
1414 * configure.ac: Remove AC_TYPE_SIGNAL call.
1415 * configure, config.in: Regenerate.
1416
a40805d4
PA
14172015-08-27 Pedro Alves <palves@redhat.com>
1418
1419 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
1420 * extension-priv.h: Include signal.h.
1421 (struct signal_handler) <handler>: Change type to sighandler_t.
1422 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
1423 * inflow.c (sigint_ours, sigquit_ours): Change type to
1424 sighandler_t.
1425 (child_terminal_inferior): Remove casts.
1426 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
1427 (osig): Change type to sighandler_t.
1428 * nto-procfs.c (ofunc): Change type to sighandler_t.
1429 (procfs_wait): Remove casts.
1430 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
1431 * remote-sim.c (gdbsim_wait): Use sighandler_t.
1432 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
1433
0750520d
PA
14342015-08-27 Pedro Alves <palves@redhat.com>
1435
1436 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
1437 * gnulib/aclocal.m4: Renegerate.
1438 * gnulib/config.in: Renegerate.
1439 * gnulib/configure: Renegerate.
1440 * gnulib/import/Makefile.am: Update.
1441 * gnulib/import/Makefile.in: Regenerate.
1442 * gnulib/import/m4/gnulib-cache.m4: Update.
1443 * gnulib/import/m4/gnulib-comp.m4: Update.
1444 * gnulib/import/m4/signal_h.m4: New file.
1445 * gnulib/import/signal.in.h: New file.
1446
a5c0808e
PA
14472015-08-27 Pedro Alves <palves@redhat.com>
1448
1449 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
1450 (MIN_MEMORY_PACKET_SIZE): New.
1451 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
1452 (get_memory_packet_size): Adjust. No longer limit the max packet
1453 size.
1454 (set_memory_packet_size): Adjust, and remove dead code.
1455 (remote_check_symbols): Use xmalloc and a cleanup instead of
1456 alloca.
1457 (remote_packet_size): No longer cap the packet size.
1458 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
1459
cdaec3f3
LM
14602015-08-26 Luis Machado <lgustavo@codesourcery.com>
1461
1462 * compile/compile.c (compile_to_object): Mention language in
1463 error message.
1464
e9756d52
PP
14652015-08-26 Patrick Palka <patrick@parcs.ath.cx>
1466
1467 * target.c (target_pre_inferior): Unset attach_flag.
1468
1dc7a623
SM
14692015-08-26 Simon Marchi <simon.marchi@ericsson.com>
1470
1471 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
1472 * gdbarch.c: Re-generate.
1473
8d749320
SM
14742015-08-26 Simon Marchi <simon.marchi@ericsson.com>
1475
6711b7f8
SM
1476 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
1477 function with the XNEW-family equivalent.
8d749320
SM
1478 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
1479 * ada-exp.y (write_ambiguous_var): Likewise.
1480 * ada-lang.c (resolve_subexp): Likewise.
1481 (user_select_syms): Likewise.
1482 (assign_aggregate): Likewise.
1483 (ada_evaluate_subexp): Likewise.
1484 (cache_symbol): Likewise.
1485 * addrmap.c (allocate_key): Likewise.
1486 (addrmap_create_mutable): Likewise.
1487 * aix-thread.c (sync_threadlists): Likewise.
1488 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
1489 (alpha_gdbarch_init): Likewise.
1490 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
1491 * arm-linux-nat.c (arm_linux_add_process): Likewise.
1492 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
1493 * arm-tdep.c (push_stack_item): Likewise.
1494 (arm_displaced_step_copy_insn): Likewise.
1495 (arm_gdbarch_init): Likewise.
1496 (_initialize_arm_tdep): Likewise.
1497 * avr-tdep.c (push_stack_item): Likewise.
1498 * ax-general.c (new_agent_expr): Likewise.
1499 * block.c (block_initialize_namespace): Likewise.
1500 * breakpoint.c (alloc_counted_command_line): Likewise.
1501 (update_dprintf_command_list): Likewise.
1502 (parse_breakpoint_sals): Likewise.
1503 (decode_static_tracepoint_spec): Likewise.
1504 (until_break_command): Likewise.
1505 (clear_command): Likewise.
1506 (update_global_location_list): Likewise.
1507 (get_breakpoint_objfile_data) Likewise.
1508 * btrace.c (ftrace_new_function): Likewise.
1509 (btrace_set_insn_history): Likewise.
1510 (btrace_set_call_history): Likewise.
1511 * buildsym.c (add_symbol_to_list): Likewise.
1512 (record_pending_block): Likewise.
1513 (start_subfile): Likewise.
1514 (start_buildsym_compunit): Likewise.
1515 (push_subfile): Likewise.
1516 (end_symtab_get_static_block): Likewise.
1517 (buildsym_init): Likewise.
1518 * cli/cli-cmds.c (source_command): Likewise.
1519 * cli/cli-decode.c (add_cmd): Likewise.
1520 * cli/cli-script.c (build_command_line): Likewise.
1521 (setup_user_args): Likewise.
1522 (realloc_body_list): Likewise.
1523 (process_next_line): Likewise.
1524 (copy_command_lines): Likewise.
1525 * cli/cli-setshow.c (do_set_command): Likewise.
1526 * coff-pe-read.c (read_pe_exported_syms): Likewise.
1527 * coffread.c (coff_locate_sections): Likewise.
1528 (coff_symtab_read): Likewise.
1529 (coff_read_struct_type): Likewise.
1530 * common/cleanups.c (make_my_cleanup2): Likewise.
1531 * common/common-exceptions.c (throw_it): Likewise.
1532 * common/filestuff.c (make_cleanup_close): Likewise.
1533 * common/format.c (parse_format_string): Likewise.
1534 * common/queue.h (DEFINE_QUEUE_P): Likewise.
1535 * compile/compile-object-load.c (munmap_list_add): Likewise.
1536 (compile_object_load): Likewise.
1537 * compile/compile-object-run.c (compile_object_run): Likewise.
1538 * compile/compile.c (append_args): Likewise.
1539 * corefile.c (specify_exec_file_hook): Likewise.
1540 * cp-support.c (make_symbol_overload_list): Likewise.
1541 * cris-tdep.c (push_stack_item): Likewise.
1542 (cris_gdbarch_init): Likewise.
1543 * ctf.c (ctf_trace_file_writer_new): Likewise.
1544 * dbxread.c (init_header_files): Likewise.
1545 (add_new_header_file): Likewise.
1546 (init_bincl_list): Likewise.
1547 (dbx_end_psymtab): Likewise.
1548 (start_psymtab): Likewise.
1549 (dbx_end_psymtab): Likewise.
1550 * dcache.c (dcache_init): Likewise.
1551 * dictionary.c (dict_create_hashed): Likewise.
1552 (dict_create_hashed_expandable): Likewise.
1553 (dict_create_linear): Likewise.
1554 (dict_create_linear_expandable): Likewise.
1555 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
1556 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
1557 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
1558 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1559 (decode_frame_entry_1): Likewise.
1560 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
1561 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
1562 * dwarf2read.c (dwarf2_has_info): Likewise.
1563 (create_signatured_type_table_from_index): Likewise.
1564 (dwarf2_read_index): Likewise.
1565 (dw2_get_file_names_reader): Likewise.
1566 (create_all_type_units): Likewise.
1567 (read_cutu_die_from_dwo): Likewise.
1568 (init_tu_and_read_dwo_dies): Likewise.
1569 (init_cutu_and_read_dies): Likewise.
1570 (create_all_comp_units): Likewise.
1571 (queue_comp_unit): Likewise.
1572 (inherit_abstract_dies): Likewise.
1573 (read_call_site_scope): Likewise.
1574 (dwarf2_add_field): Likewise.
1575 (dwarf2_add_typedef): Likewise.
1576 (dwarf2_add_member_fn): Likewise.
1577 (attr_to_dynamic_prop): Likewise.
1578 (abbrev_table_alloc_abbrev): Likewise.
1579 (abbrev_table_read_table): Likewise.
1580 (add_include_dir): Likewise.
1581 (add_file_name): Likewise.
1582 (dwarf_decode_line_header): Likewise.
1583 (dwarf2_const_value_attr): Likewise.
1584 (dwarf_alloc_block): Likewise.
1585 (parse_macro_definition): Likewise.
1586 (set_die_type): Likewise.
1587 (write_psymtabs_to_index): Likewise.
1588 (create_cus_from_index): Likewise.
1589 (dwarf2_create_include_psymtab): Likewise.
1590 (process_psymtab_comp_unit_reader): Likewise.
1591 (build_type_psymtab_dependencies): Likewise.
1592 (read_comp_units_from_section): Likewise.
1593 (compute_compunit_symtab_includes): Likewise.
1594 (create_dwo_unit_in_dwp_v1): Likewise.
1595 (create_dwo_unit_in_dwp_v2): Likewise.
1596 (read_func_scope): Likewise.
1597 (process_structure_scope): Likewise.
1598 (mark_common_block_symbol_computed): Likewise.
1599 (load_partial_dies): Likewise.
1600 (dwarf2_symbol_mark_computed): Likewise.
1601 * elfread.c (elf_symfile_segments): Likewise.
1602 (elf_read_minimal_symbols): Likewise.
1603 * environ.c (make_environ): Likewise.
1604 * eval.c (evaluate_subexp_standard): Likewise.
1605 * event-loop.c (create_file_handler): Likewise.
1606 (create_async_signal_handler): Likewise.
1607 (create_async_event_handler): Likewise.
1608 (create_timer): Likewise.
1609 * exec.c (build_section_table): Likewise.
1610 * fbsd-nat.c (fbsd_remember_child): Likewise.
1611 * fork-child.c (fork_inferior): Likewise.
1612 * frv-tdep.c (new_variant): Likewise.
1613 * gdbarch.sh (gdbarch_alloc): Likewise.
1614 (append_name): Likewise.
1615 * gdbtypes.c (rank_function): Likewise.
1616 (copy_type_recursive): Likewise.
1617 (add_dyn_prop): Likewise.
1618 * gnu-nat.c (make_proc): Likewise.
1619 (make_inf): Likewise.
1620 (gnu_write_inferior): Likewise.
1621 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
1622 (build_std_type_info_type): Likewise.
1623 * guile/scm-param.c (compute_enum_list): Likewise.
1624 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
1625 * guile/scm-value.c (gdbscm_value_call): Likewise.
1626 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
1627 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
1628 (read_unwind_info): Likewise.
1629 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
1630 * infcall.c (dummy_frame_context_saver_setup): Likewise.
1631 (call_function_by_hand_dummy): Likewise.
1632 * infcmd.c (step_once): Likewise.
1633 (finish_forward): Likewise.
1634 (attach_command): Likewise.
1635 (notice_new_inferior): Likewise.
1636 * inferior.c (add_inferior_silent): Likewise.
1637 * infrun.c (add_displaced_stepping_state): Likewise.
1638 (save_infcall_control_state): Likewise.
1639 (save_inferior_ptid): Likewise.
1640 (_initialize_infrun): Likewise.
1641 * jit.c (bfd_open_from_target_memory): Likewise.
1642 (jit_gdbarch_data_init): Likewise.
1643 * language.c (add_language): Likewise.
1644 * linespec.c (decode_line_2): Likewise.
1645 * linux-nat.c (add_to_pid_list): Likewise.
1646 (add_initial_lwp): Likewise.
1647 * linux-thread-db.c (add_thread_db_info): Likewise.
1648 (record_thread): Likewise.
1649 (info_auto_load_libthread_db): Likewise.
1650 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
1651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
1652 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
1653 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
1654 * macrocmd.c (macro_define_command): Likewise.
1655 * macroexp.c (gather_arguments): Likewise.
1656 * macroscope.c (sal_macro_scope): Likewise.
1657 * macrotab.c (new_macro_table): Likewise.
1658 * mdebugread.c (push_parse_stack): Likewise.
1659 (parse_partial_symbols): Likewise.
1660 (parse_symbol): Likewise.
1661 (psymtab_to_symtab_1): Likewise.
1662 (new_block): Likewise.
1663 (new_psymtab): Likewise.
1664 (mdebug_build_psymtabs): Likewise.
1665 (add_pending): Likewise.
1666 (elfmdebug_build_psymtabs): Likewise.
1667 * mep-tdep.c (mep_gdbarch_init): Likewise.
1668 * mi/mi-main.c (mi_execute_command): Likewise.
1669 * mi/mi-parse.c (mi_parse_argv): Likewise.
1670 * minidebug.c (lzma_open): Likewise.
1671 * minsyms.c (terminate_minimal_symbol_table): Likewise.
1672 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
1673 * mips-tdep.c (mips_gdbarch_init): Likewise.
1674 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
1675 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
1676 * mt-tdep.c (mt_registers_info): Likewise.
1677 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
1678 * nat/linux-btrace.c (linux_enable_bts): Likewise.
1679 (linux_enable_pt): Likewise.
1680 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
1681 (linux_xfer_osdata_processgroups): Likewise.
1682 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
1683 * nto-procfs.c (procfs_meminfo): Likewise.
1684 * objc-lang.c (start_msglist): Likewise.
1685 (selectors_info): Likewise.
1686 (classes_info): Likewise.
1687 (find_methods): Likewise.
1688 * objfiles.c (allocate_objfile): Likewise.
1689 (update_section_map): Likewise.
1690 * osabi.c (gdbarch_register_osabi): Likewise.
1691 (gdbarch_register_osabi_sniffer): Likewise.
1692 * parse.c (start_arglist): Likewise.
1693 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
1694 (hwdebug_insert_point): Likewise.
1695 * printcmd.c (display_command): Likewise.
1696 (ui_printf): Likewise.
1697 * procfs.c (create_procinfo): Likewise.
1698 (load_syscalls): Likewise.
1699 (proc_get_LDT_entry): Likewise.
1700 (proc_update_threads): Likewise.
1701 * prologue-value.c (make_pv_area): Likewise.
1702 (pv_area_store): Likewise.
1703 * psymtab.c (extend_psymbol_list): Likewise.
1704 (init_psymbol_list): Likewise.
1705 (allocate_psymtab): Likewise.
1706 * python/py-inferior.c (add_thread_object): Likewise.
1707 * python/py-param.c (compute_enum_values): Likewise.
1708 * python/py-value.c (valpy_call): Likewise.
1709 * python/py-varobj.c (py_varobj_iter_next): Likewise.
1710 * python/python.c (ensure_python_env): Likewise.
1711 * record-btrace.c (record_btrace_start_replaying): Likewise.
1712 * record-full.c (record_full_reg_alloc): Likewise.
1713 (record_full_mem_alloc): Likewise.
1714 (record_full_end_alloc): Likewise.
1715 (record_full_core_xfer_partial): Likewise.
1716 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
1717 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
1718 * remote-notif.c (remote_notif_state_allocate): Likewise.
1719 * remote.c (demand_private_info): Likewise.
1720 (remote_notif_stop_alloc_reply): Likewise.
1721 (remote_enable_btrace): Likewise.
1722 * reverse.c (save_bookmark_command): Likewise.
1723 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
1724 * rx-tdep.c (rx_gdbarch_init): Likewise.
1725 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
1726 * ser-go32.c (dos_get_tty_state): Likewise.
1727 (dos_copy_tty_state): Likewise.
1728 * ser-mingw.c (ser_windows_open): Likewise.
1729 (ser_console_wait_handle): Likewise.
1730 (ser_console_get_tty_state): Likewise.
1731 (make_pipe_state): Likewise.
1732 (net_windows_open): Likewise.
1733 * ser-unix.c (hardwire_get_tty_state): Likewise.
1734 (hardwire_copy_tty_state): Likewise.
1735 * solib-aix.c (solib_aix_new_lm_info): Likewise.
1736 * solib-dsbt.c (dsbt_current_sos): Likewise.
1737 (dsbt_relocate_main_executable): Likewise.
1738 * solib-frv.c (frv_current_sos): Likewise.
1739 (frv_relocate_main_executable): Likewise.
1740 * solib-spu.c (spu_bfd_fopen): Likewise.
1741 * solib-svr4.c (lm_info_read): Likewise.
1742 (svr4_copy_library_list): Likewise.
1743 (svr4_default_sos): Likewise.
1744 * source.c (find_source_lines): Likewise.
1745 (line_info): Likewise.
1746 (add_substitute_path_rule): Likewise.
1747 * spu-linux-nat.c (spu_bfd_open): Likewise.
1748 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
1749 * stabsread.c (dbx_lookup_type): Likewise.
1750 (read_type): Likewise.
1751 (read_member_functions): Likewise.
1752 (read_struct_fields): Likewise.
1753 (read_baseclasses): Likewise.
1754 (read_args): Likewise.
1755 (_initialize_stabsread): Likewise.
1756 * stack.c (func_command): Likewise.
1757 * stap-probe.c (handle_stap_probe): Likewise.
1758 * symfile.c (addrs_section_sort): Likewise.
1759 (addr_info_make_relative): Likewise.
1760 (load_section_callback): Likewise.
1761 (add_symbol_file_command): Likewise.
1762 (init_filename_language_table): Likewise.
1763 * symtab.c (create_filename_seen_cache): Likewise.
1764 (sort_search_symbols_remove_dups): Likewise.
1765 (search_symbols): Likewise.
1766 * target.c (make_cleanup_restore_target_terminal): Likewise.
1767 * thread.c (new_thread): Likewise.
1768 (enable_thread_stack_temporaries): Likewise.
1769 (make_cleanup_restore_current_thread): Likewise.
1770 (thread_apply_all_command): Likewise.
1771 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
1772 * top.c (gdb_readline_wrapper): Likewise.
1773 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
1774 * tracepoint.c (trace_find_line_command): Likewise.
1775 (all_tracepoint_actions_and_cleanup): Likewise.
1776 (make_cleanup_restore_current_traceframe): Likewise.
1777 (get_uploaded_tp): Likewise.
1778 (get_uploaded_tsv): Likewise.
1779 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
1780 (tui_alloc_win_info): Likewise.
1781 (tui_alloc_content): Likewise.
1782 (tui_add_content_elements): Likewise.
1783 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
1784 (tui_set_disassem_content): Likewise.
1785 * ui-file.c (ui_file_new): Likewise.
1786 (stdio_file_new): Likewise.
1787 (tee_file_new): Likewise.
1788 * utils.c (make_cleanup_restore_integer): Likewise.
1789 (add_internal_problem_command): Likewise.
1790 * v850-tdep.c (v850_gdbarch_init): Likewise.
1791 * valops.c (find_oload_champ): Likewise.
1792 * value.c (allocate_value_lazy): Likewise.
1793 (record_latest_value): Likewise.
1794 (create_internalvar): Likewise.
1795 * varobj.c (install_variable): Likewise.
1796 (new_variable): Likewise.
1797 (new_root_variable): Likewise.
1798 (cppush): Likewise.
1799 (_initialize_varobj): Likewise.
1800 * windows-nat.c (windows_make_so): Likewise.
1801 * x86-nat.c (x86_add_process): Likewise.
1802 * xcoffread.c (arrange_linetable): Likewise.
1803 (allocate_include_entry): Likewise.
1804 (process_linenos): Likewise.
1805 (SYMBOL_DUP): Likewise.
1806 (xcoff_start_psymtab): Likewise.
1807 (xcoff_end_psymtab): Likewise.
1808 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
1809 * xtensa-tdep.c (xtensa_register_type): Likewise.
1810 * gdbarch.c: Regenerate.
1811 * gdbarch.h: Regenerate.
1812
17d8546e
DB
18132015-08-25 Don Breazeal <donb@codesourcery.com>
1814
1815 * infrun.c (follow_exec): Re-order operations for
1816 handling follow-exec-mode "new".
1817 (handle_inferior_event_1): Assign ecs->event_thread
1818 to the current thread.
1819 * remote.c (get_remote_arch_state): Add an assertion.
1820
ba49e44b
PA
18212015-08-26 Pedro Alves <palves@redhat.com>
1822
1823 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
1824
7541ab03 18252015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 1826
7541ab03 1827 PR gdb/18804
abc56d60
PA
1828 * defs.h (maybe_quit): Declare.
1829 (QUIT): Now calls maybe_quit.
1830 * event-loop.c (clear_async_signal_handler)
1831 (async_signal_handler_is_marked): New functions.
1832 * event-loop.h (async_signal_handler_is_marked)
1833 (clear_async_signal_handler): New declarations.
1834 * remote.c (remote_check_pending_interrupt): New function.
1835 (interrupt_query): Use make_cleanup_restore_target_terminal. No
1836 longer check whether the target is async. If waiting for a stop
1837 reply, and a Ctrl-C as been sent to the target, offer to
1838 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
1839 Otherwise do not disconnect and throw a quit.
1840 (_initialize_remote): Install remote_check_pending_interrupt as
1841 to_check_pending_interrupt.
1842 * target.c (target_check_pending_interrupt): New function.
1843 * target.h (struct target_ops) <to_check_pending_interrupt>: New
1844 field.
1845 (target_check_pending_interrupt): New declaration.
1846 * utils.c (maybe_quit): New function.
1847 * target-delegates.c: Regenerate.
1848
dfe7f77c
YQ
18492015-08-25 Yao Qi <yao.qi@linaro.org>
1850
1851 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
1852 Rename local variable pid to tid, and get lwpid of lwp. Update
1853 debug output.
1854
63e43d3a
PMR
18552015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
1856
1857 * ada-lang.c (ada_read_var_value): Add a var_block argument
1858 and pass it to default_read_var_value.
1859 * block.c (block_static_link): New accessor.
1860 * block.h (block_static_link): Declare it.
1861 * buildsym.c (finish_block_internal): Add a static_link
1862 argument. If there is a static link, associate it to the new
1863 block.
1864 (finish_block): Add a static link argument and pass it to
1865 finish_block_internal.
1866 (end_symtab_get_static_block): Update calls to finish_block and
1867 to finish_block_internal.
1868 (end_symtab_with_blockvector): Update call to
1869 finish_block_internal.
1870 * buildsym.h: Forward-declare struct dynamic_prop.
1871 (struct context_stack): Add a static_link field.
1872 (finish_block): Add a static link argument.
1873 * c-exp.y: Remove an obsolete comment (evaluation of variables
1874 already start from the selected frame, and now they climb *up*
1875 the call stack) and propagate the block information to the
1876 produced expression.
1877 * d-exp.y: Likewise.
1878 * f-exp.y: Likewise.
1879 * go-exp.y: Likewise.
1880 * jv-exp.y: Likewise.
1881 * m2-exp.y: Likewise.
1882 * p-exp.y: Likewise.
1883 * coffread.c (coff_symtab_read): Update calls to finish_block.
1884 * dbxread.c (process_one_symbol): Likewise.
1885 * xcoffread.c (read_xcoff_symtab): Likewise.
1886 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
1887 "sym" parameter to struct block_symbol, update its uses and pass
1888 its block to calls to read_var_value.
1889 (convert_symbol_sym): Update the calls to convert_one_symbol.
1890 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
1891 call to read_var_value.
1892 * dwarf2loc.c (block_op_get_frame_base): New.
1893 (dwarf2_block_frame_base_locexpr_funcs): Implement the
1894 get_frame_base method.
1895 (dwarf2_block_frame_base_loclist_funcs): Likewise.
1896 (dwarf2locexpr_baton_eval): Add a frame argument and use it
1897 instead of the selected frame in order to evaluate the
1898 expression.
1899 (dwarf2_evaluate_property): Add a frame argument. Update call
1900 to dwarf2_locexpr_baton_eval to provide a frame in available and
1901 to handle the absence of address stack.
1902 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
1903 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
1904 declaration.
1905 (read_func_scope): Record any available static link description.
1906 Update call to finish_block.
1907 (read_lexical_block_scope): Update call to finish_block.
1908 * findvar.c (follow_static_link): New.
1909 (get_hosting_frame): New.
1910 (default_read_var_value): Add a var_block argument. Use
1911 get_hosting_frame to handle non-local references.
1912 (read_var_value): Add a var_block argument and pass it to the
1913 LA_READ_VAR_VALUE method.
1914 * gdbtypes.c (resolve_dynamic_range): Update calls to
1915 dwarf2_evaluate_property.
1916 (resolve_dynamic_type_internal): Likewise.
1917 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
1918 read_var_value, passing it the block coming from symbol lookup.
1919 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
1920 read_var_value (TODO).
1921 * infcmd.c (finish_command_continuation): Update call to
1922 read_var_value, passing it the block coming from symbol lookup.
1923 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1924 * language.h (struct language_defn): Add a var_block argument to
1925 the LA_READ_VAR_VALUE method.
1926 * objfiles.c (struct static_link_htab_entry): New.
1927 (static_link_htab_entry_hash): New.
1928 (static_link_htab_entry_eq): New.
1929 (objfile_register_static_link): New.
1930 (objfile_lookup_static_link): New.
1931 (free_objfile): Free the STATIC_LINKS hashed map if needed.
1932 * objfiles.h: Include hashtab.h.
1933 (struct objfile): Add a static_links field.
1934 (objfile_register_static_link): New.
1935 (objfile_lookup_static_link): New.
1936 * printcmd.c (print_variable_and_value): Update call to
1937 read_var_value.
1938 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
1939 * python/py-frame.c (frapy_read_var): Update call to
1940 read_var_value, passing it the block coming from symbol lookup.
1941 * python/py-framefilter.c (extract_sym): Add a sym_block
1942 parameter and set the pointed value to NULL (TODO).
1943 (enumerate_args): Update call to extract_sym.
1944 (enumerate_locals): Update calls to extract_sym and to
1945 read_var_value.
1946 * python/py-symbol.c (sympy_value): Update call to
1947 read_var_value (TODO).
1948 * stack.c (read_frame_local): Update call to read_var_value.
1949 (read_frame_arg): Likewise.
1950 (return_command): Likewise.
1951 * symtab.h (struct symbol_block_ops): Add a get_frame_base
1952 method.
1953 (struct symbol): Add a block field.
1954 (SYMBOL_BLOCK): New accessor.
1955 * valops.c (value_of_variable): Remove frame/block handling and
1956 pass the block argument to read_var_value, which does this job
1957 now.
1958 (value_struct_elt_for_reference): Update calls to
1959 read_var_value.
1960 (value_of_this): Pass the block found to read_var_value.
1961 * value.h (read_var_value): Add a var_block argument.
1962 (default_read_var_value): Likewise.
1963
ed8b7b42
YQ
19642015-08-25 Yao Qi <yao.qi@linaro.org>
1965
1966 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
1967 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
1968 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
1969
db3cb7cb
YQ
19702015-08-25 Yao Qi <yao.qi@linaro.org>
1971
1972 * Makefile.in (aarch64-liunx.o): New rule.
1973 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
1974 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
1975 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
1976 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
1977 extern.
1978 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
1979 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
1980 * nat/aarch64-linux.c: New file.
1981 * nat/aarch64-linux.h: New file.
1982
f6011a1c
YQ
19832015-08-25 Yao Qi <yao.qi@linaro.org>
1984
1985 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
1986 lwp_arch_private_info and ptid_of_lwp.
1987
5e35436e
YQ
19882015-08-25 Yao Qi <yao.qi@linaro.org>
1989
1990 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
1991 Move it to nat/aarch64-linux-hw-point.c.
1992 (debug_reg_change_callback): Likewise.
1993 (aarch64_notify_debug_reg_change): :Likewise.
1994 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
1995 (aarch64_dr_update_callback_param): New.
1996 (debug_reg_change_callback): New function.
1997 (aarch64_notify_debug_reg_change): Likewise.
1998 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
1999 Remove the declaration.
2000
4a8a7965
YQ
20012015-08-25 Yao Qi <yao.qi@linaro.org>
2002
2003 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
2004 Call current_lwp_ptid.
2005
32a271ee
YQ
20062015-08-25 Yao Qi <yao.qi@linaro.org>
2007
2008 * aarch64-linux-nat.c (debug_reg_change_callback): Use
2009 debug_printf.
2010
5e137137
YQ
20112015-08-25 Yao Qi <yao.qi@linaro.org>
2012
2013 * aarch64-linux-nat.c (debug_reg_change_callback): Call
2014 ptid_get_pid rather than ptid_get_lwp.
2015
73b8c1fd
PA
20162015-08-24 Pedro Alves <palves@redhat.com>
2017
2018 * NEWS (New commands): Mention set/show remote
2019 multiprocess-extensions-packet.
2020 * remote.c (remote_query_supported): Only tell the server to use
2021 the multiprocess extensions if the user hasn't force-disabled them
2022 with "set remote multiprocess-extensions-packet off".
2023
4a626d0a
PA
20242015-08-24 Pedro Alves <palves@redhat.com>
2025
2026 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
2027 1029a8112290f6eee9d7878a391c49db42c999bd.
2028 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
2029 Regenerate.
2030 * gnulib/import/Makefile.am: Update.
2031 * gnulib/import/Makefile.in: Update.
2032 * gnulib/import/alloca.in.h: Update.
2033 * gnulib/import/basename-lgpl.c: Update.
2034 * gnulib/import/canonicalize-lgpl.c: Update.
2035 * gnulib/import/config.charset: Update.
2036 * gnulib/import/dirent.in.h: Update.
2037 * gnulib/import/dirfd.c: Update.
2038 * gnulib/import/dirname-lgpl.c: Update.
2039 * gnulib/import/dirname.h: Update.
2040 * gnulib/import/dosname.h: Update.
2041 * gnulib/import/errno.in.h: Update.
2042 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
2043 * gnulib/import/extra/snippet/c++defs.h: Update.
2044 * gnulib/import/extra/snippet/warn-on-use.h: Update.
2045 * gnulib/import/extra/update-copyright: Update.
2046 * gnulib/import/float+.h: Update.
2047 * gnulib/import/float.c: Update.
2048 * gnulib/import/float.in.h: Update.
2049 * gnulib/import/fnmatch.c: Update.
2050 * gnulib/import/fnmatch.in.h: Update.
2051 * gnulib/import/fnmatch_loop.c: Update.
2052 * gnulib/import/fpucw.h: Update.
2053 * gnulib/import/frexp.c: Update.
2054 * gnulib/import/frexpl.c: Update.
2055 * gnulib/import/gettimeofday.c: Update.
2056 * gnulib/import/inttypes.in.h: Update.
2057 * gnulib/import/isnan.c: Update.
2058 * gnulib/import/isnand-nolibm.h: Update.
2059 * gnulib/import/isnand.c: Update.
2060 * gnulib/import/isnanl-nolibm.h: Update.
2061 * gnulib/import/isnanl.c: Update.
2062 * gnulib/import/itold.c: Update.
2063 * gnulib/import/localcharset.c: Update.
2064 * gnulib/import/localcharset.h: Update.
2065 * gnulib/import/lstat.c: Update.
2066 * gnulib/import/m4/00gnulib.m4: Update.
2067 * gnulib/import/m4/absolute-header.m4: Update.
2068 * gnulib/import/m4/alloca.m4: Update.
2069 * gnulib/import/m4/canonicalize.m4: Update.
2070 * gnulib/import/m4/codeset.m4: Update.
2071 * gnulib/import/m4/configmake.m4: Update.
2072 * gnulib/import/m4/dirent_h.m4: Update.
2073 * gnulib/import/m4/dirfd.m4: Update.
2074 * gnulib/import/m4/dirname.m4: Update.
2075 * gnulib/import/m4/double-slash-root.m4: Update.
2076 * gnulib/import/m4/eealloc.m4: Update.
2077 * gnulib/import/m4/errno_h.m4: Update.
2078 * gnulib/import/m4/exponentd.m4: Update.
2079 * gnulib/import/m4/exponentl.m4: Update.
2080 * gnulib/import/m4/extensions.m4: Update.
2081 * gnulib/import/m4/extern-inline.m4: Update.
2082 * gnulib/import/m4/fcntl-o.m4: Update.
2083 * gnulib/import/m4/float_h.m4: Update.
2084 * gnulib/import/m4/fnmatch.m4: Update.
2085 * gnulib/import/m4/fpieee.m4: Update.
2086 * gnulib/import/m4/frexp.m4: Update.
2087 * gnulib/import/m4/frexpl.m4: Update.
2088 * gnulib/import/m4/gettimeofday.m4: Update.
2089 * gnulib/import/m4/glibc21.m4: Update.
2090 * gnulib/import/m4/gnulib-cache.m4: Update.
2091 * gnulib/import/m4/gnulib-common.m4: Update.
2092 * gnulib/import/m4/gnulib-comp.m4: Update.
2093 * gnulib/import/m4/gnulib-tool.m4: Update.
2094 * gnulib/import/m4/include_next.m4: Update.
2095 * gnulib/import/m4/inttypes-pri.m4: Update.
2096 * gnulib/import/m4/inttypes.m4: Update.
2097 * gnulib/import/m4/isnand.m4: Update.
2098 * gnulib/import/m4/isnanl.m4: Update.
2099 * gnulib/import/m4/largefile.m4: Update.
2100 * gnulib/import/m4/localcharset.m4: Update.
2101 * gnulib/import/m4/locale-fr.m4: Update.
2102 * gnulib/import/m4/locale-ja.m4: Update.
2103 * gnulib/import/m4/locale-zh.m4: Update.
2104 * gnulib/import/m4/longlong.m4: Update.
2105 * gnulib/import/m4/lstat.m4: Update.
2106 * gnulib/import/m4/malloc.m4: Update.
2107 * gnulib/import/m4/malloca.m4: Update.
2108 * gnulib/import/m4/math_h.m4: Update.
2109 * gnulib/import/m4/mbrtowc.m4: Update.
2110 * gnulib/import/m4/mbsinit.m4: Update.
2111 * gnulib/import/m4/mbsrtowcs.m4: Update.
2112 * gnulib/import/m4/mbstate_t.m4: Update.
2113 * gnulib/import/m4/memchr.m4: Update.
2114 * gnulib/import/m4/memmem.m4: Update.
2115 * gnulib/import/m4/mmap-anon.m4: Update.
2116 * gnulib/import/m4/multiarch.m4: Update.
2117 * gnulib/import/m4/nocrash.m4: Update.
2118 * gnulib/import/m4/off_t.m4: Update.
2119 * gnulib/import/m4/pathmax.m4: Update.
2120 * gnulib/import/m4/readlink.m4: Update.
2121 * gnulib/import/m4/rename.m4: Update.
2122 * gnulib/import/m4/rmdir.m4: Update.
2123 * gnulib/import/m4/ssize_t.m4: Update.
2124 * gnulib/import/m4/stat.m4: Update.
2125 * gnulib/import/m4/stdbool.m4: Update.
2126 * gnulib/import/m4/stddef_h.m4: Update.
2127 * gnulib/import/m4/stdint.m4: Update.
2128 * gnulib/import/m4/stdio_h.m4: Update.
2129 * gnulib/import/m4/stdlib_h.m4: Update.
2130 * gnulib/import/m4/string_h.m4: Update.
2131 * gnulib/import/m4/strstr.m4: Update.
2132 * gnulib/import/m4/strtok_r.m4: Update.
2133 * gnulib/import/m4/sys_socket_h.m4: Update.
2134 * gnulib/import/m4/sys_stat_h.m4: Update.
2135 * gnulib/import/m4/sys_time_h.m4: Update.
2136 * gnulib/import/m4/sys_types_h.m4: Update.
2137 * gnulib/import/m4/time_h.m4: Update.
2138 * gnulib/import/m4/unistd_h.m4: Update.
2139 * gnulib/import/m4/warn-on-use.m4: Update.
2140 * gnulib/import/m4/wchar_h.m4: Update.
2141 * gnulib/import/m4/wchar_t.m4: Update.
2142 * gnulib/import/m4/wctype_h.m4: Update.
2143 * gnulib/import/m4/wint_t.m4: Update.
2144 * gnulib/import/malloc.c: Update.
2145 * gnulib/import/malloca.c: Update.
2146 * gnulib/import/malloca.h: Update.
2147 * gnulib/import/math.in.h: Update.
2148 * gnulib/import/mbrtowc.c: Update.
2149 * gnulib/import/mbsinit.c: Update.
2150 * gnulib/import/mbsrtowcs-impl.h: Update.
2151 * gnulib/import/mbsrtowcs-state.c: Update.
2152 * gnulib/import/mbsrtowcs.c: Update.
2153 * gnulib/import/memchr.c: Update.
2154 * gnulib/import/memmem.c: Update.
2155 * gnulib/import/pathmax.h: Update.
2156 * gnulib/import/readlink.c: Update.
2157 * gnulib/import/ref-add.sin: Update.
2158 * gnulib/import/ref-del.sin: Update.
2159 * gnulib/import/rename.c: Update.
2160 * gnulib/import/rmdir.c: Update.
2161 * gnulib/import/same-inode.h: Update.
2162 * gnulib/import/stat.c: Update.
2163 * gnulib/import/stdbool.in.h: Update.
2164 * gnulib/import/stddef.in.h: Update.
2165 * gnulib/import/stdint.in.h: Update.
2166 * gnulib/import/stdio.c: Update.
2167 * gnulib/import/stdio.in.h: Update.
2168 * gnulib/import/stdlib.in.h: Update.
2169 * gnulib/import/str-two-way.h: Update.
2170 * gnulib/import/streq.h: Update.
2171 * gnulib/import/string.in.h: Update.
2172 * gnulib/import/stripslash.c: Update.
2173 * gnulib/import/strnlen1.c: Update.
2174 * gnulib/import/strnlen1.h: Update.
2175 * gnulib/import/strstr.c: Update.
2176 * gnulib/import/strtok_r.c: Update.
2177 * gnulib/import/sys_stat.in.h: Update.
2178 * gnulib/import/sys_time.in.h: Update.
2179 * gnulib/import/sys_types.in.h: Update.
2180 * gnulib/import/time.in.h: Update.
2181 * gnulib/import/unistd.in.h: Update.
2182 * gnulib/import/verify.h: Update.
2183 * gnulib/import/wchar.in.h: Update.
2184 * gnulib/import/wctype.in.h: Update.
2185 * gnulib/import/gettimeofday.c: New file.
2186 * gnulib/import/m4/absolute-header.m4: New file.
2187 * gnulib/import/m4/gettimeofday.m4: New file.
2188 * gnulib/import/m4/sys_socket_h.m4: New file.
2189 * gnulib/import/m4/sys_time_h.m4: New file.
2190 * gnulib/import/stdio.c: Delete file.
2191 * gnulib/import/sys_time.in.h: New file.
2192
438e1e42
PA
21932015-08-24 Pedro Alves <palves@redhat.com>
2194
2195 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
2196 * common/gdb_sys_time.h: New file.
2197 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
2198 * gdb_select.h: Likewise.
2199 * gdb_usleep.c: Likewise.
2200 * maint.c: Likewise.
2201 * mi/mi-main.c: Likewise.
2202 * mi/mi-parse.h: Likewise.
2203 * remote-fileio.c: Likewise.
2204 * remote-m32r-sdi.c: Likewise.
2205 * remote.c: Likewise.
2206 * ser-base.c: Likewise.
2207 * ser-pipe.c: Likewise.
2208 * ser-tcp.c: Likewise.
2209 * ser-unix.c: Likewise.
2210 * symfile.c: Likewise.
2211 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
2212 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
2213 * utils.c: Likewise.
2214
40e0b271
PA
22152015-08-24 Pedro Alves <palves@redhat.com>
2216
2217 * NEWS: Mention removed support for the various ROM monitors.
2218 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
2219 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
2220 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
2221 gdb_target_obs.
2222 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
2223 gdb_target_obs.
2224 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
2225 dsrec.o from gdb_target_obs.
2226 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
2227 from gdb_target_obs.
2228 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
2229 gdb_target_obs.
2230 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
2231 dink32-rom.o from gdb_target_obs.
2232 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
2233 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
2234 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
2235 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
2236
f8904751
PA
22372015-08-21 Pedro Alves <palves@redhat.com>
2238
2239 * frame.c (null_frame_id): Explicitly zero-initialize.
2240
049412e3
TT
22412015-08-21 Tom Tromey <tromey@redhat.com>
2242
2243 * dwarf2read.c (struct dwarf2_section_info): Rename field
2244 'asection' to 'section'.
2245 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
2246 (dwarf2_locate_sections, dwarf2_locate_sections)
2247 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
2248 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
2249 (dwarf2_locate_v2_dwp_sections): Adjust.
2250
948578a9
PP
22512015-08-21 Patrick Palka <patrick@parcs.ath.cx>
2252
2253 * top.h (gdb_in_secondary_prompt_p): Declare.
2254 * top.c (gdb_secondary_prompt_depth): Define.
2255 (gdb_in_secondary_prompt_p): Define.
2256 (gdb_readline_wrapper_cleanup): Decrement
2257 gdb_secondary_prompt_depth.
2258 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
2259 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
2260 are in a secondary prompt.
2261
7a8bcb88
PP
22622015-08-21 Patrick Palka <patrick@parcs.ath.cx>
2263
2264 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
2265 emit the newline.
2266
2d7711a3
GB
22672015-08-21 Gary Benson <gbenson@redhat.com>
2268
2269 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
2270
4313b8c0
GB
22712015-08-21 Gary Benson <gbenson@redhat.com>
2272
2273 * target.h (struct target_ops) <to_fileio_open>: New argument
2274 warn_if_slow. Update comment. All implementations updated.
2275 (target_fileio_open_warn_if_slow): New declaration.
2276 * target.c (target_fileio_open): Renamed as...
2277 (target_fileio_open_1): ...this. New argument warn_if_slow.
2278 Pass warn_if_slow to implementation. Update debug printing.
2279 (target_fileio_open): New function.
2280 (target_fileio_open_warn_if_slow): Likewise.
2281 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
2282 target_fileio_open_warn_if_slow.
2283
f36b8719
GB
22842015-08-21 Gary Benson <gbenson@redhat.com>
2285
2286 * nat/linux-namespaces.c (linux_mntns_access_fs):
2287 Do not overwrite old_chain.
2288
40045d91
MF
22892015-08-20 Max Filippov <jcmvbkbc@gmail.com>
2290
2291 * arch/xtensa.h: New file.
2292 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
2293 (ps_get_thread_area): New function.
2294 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
2295 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
2296 * xtensa-tdep.c (osabi.h): New #include.
2297 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
2298 xtensa-specific hooks.
2299 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
2300 member and move the structure to arch/xtensa.h.
2301
80152258
PA
23022015-08-21 Pedro Alves <palves@redhat.com>
2303
2304 * remote.c (struct readahead_cache): New.
2305 (struct remote_state) <readahead_cache>: New field.
2306 (remote_open_1): Invalidate the cache.
2307 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
2308 functions.
2309 (remote_hostio_pwrite): Invalidate the readahead cache.
2310 (remote_hostio_pread): Rename to ...
2311 (remote_hostio_pread_vFile): ... this.
2312 (remote_hostio_pread_from_cache): New function.
2313 (remote_hostio_pread): Reimplement.
2314 (remote_hostio_close): Invalidate the readahead cache.
2315
88fc5eb7
MC
23162015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
2317
2318 PR build/18843
2319 * procfs.c: Include "filestuff.h".
2320
6f1cb6ea
PP
23212015-08-21 Patrick Palka <patrick@parcs.ath.cx>
2322
2323 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
2324 curch.
2325 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
2326 cur_line or curch, instead call wmove().
2327 (init_win_info) [CMD_WIN]: Likewise.
2328 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
2329 instead call getcury().
2330 (tui_redisplay_readline): Don't set cur_line or curch.
2331 (tui_mld_erase_entire_line): Don't read cur_line, instead call
2332 getcury().
2333 (tui_cont_sig): Remove call to wmove.
2334 (tui_getc): Don't read cur_line or curch, instead call getcury()
2335 or getyx(). Don't set curch.
2336 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
2337 set cur_line or curch. Always move cursor to (0,0).
2338
221e1a37
PA
23392015-08-20 Pedro Alves <palves@redhat.com>
2340
2341 * infrun.c (print_target_wait_results): Make extern.
2342 * infrun.h (print_target_wait_results): Declare.
2343 * remote.c (set_stop_requested_callback): Delete.
2344 (process_initial_stop_replies): New function.
2345 (remote_start_remote): Use it.
2346 (stop_reply_queue_length): New function.
2347
40e3ad0e
PA
23482015-08-20 Pedro Alves <palves@redhat.com>
2349
2350 * dwarf2read.c (process_full_comp_unit): To tell whether
2351 start_subfile managed to deduce a language, test for
2352 language_unknown instead of language_c.
2353
af39b327
PMR
23542015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
2355
2356 * ada-lex.l: Reset the start condition to INITIAL in the rule that
2357 matches attributes.
2358
7d45c7c3
KB
23592015-08-19 Kevin Buettner <kevinb@redhat.com>
2360
2361 * dwarf2read.c (dwarf2_string_attr): New function.
2362 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
2363 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
2364 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
2365 (anonymous_struct_prefix, prepare_one_comp_unit): Use
2366 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
2367
4d6cceb4
DE
23682015-08-18 Doug Evans <dje@google.com>
2369 Adrian Sendroiu <adrian.sendroiu@freescale.com>
2370
2371 PR mi/18833
2372 * cli/cli-logging.c (pop_output_files): Don't restore redirection
2373 if MI-like.
2374 * mi/mi-out.c: #include "vec.h".
2375 (ui_filep): New type.
2376 (DEV_VEC_P (ui_filep)): New type.
2377 (struct ui_out_data) <buffer, original_buffer>: Delete.
2378 (struct ui_out_data) <streams>: New member.
2379 (mi_ui_out_impl): Add data_destroy field.
2380 (mi_field_string, mi_field_fmt): Update.
2381 (mi_flush, mi_redirect, field_separator): Update.
2382 (mi_open, mi_close): Update.
2383 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
2384 (mi_out_data_ctor, mi_out_data_dtor): New functions.
2385 (mi_out_new): Call mi_out_data_ctor.
2386
26d56a93
SL
23872015-08-18 Sandra Loosemore <sandra@codesourcery.com>
2388
2389 * remote.c (strprefix): New.
2390 (remote_parse_stop_reply): Use strprefix instead of strncmp
2391 to ensure exact match of keyword.
2392
566f5e3b
AB
23932015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
2394
2395 * gdb_bfd.c (debug_bfd_cache): New variable.
2396 (show_bfd_cache_debug): New function.
2397 (gdb_bfd_open): Add debug logging.
2398 (gdb_bfd_ref): Likewise.
2399 (gdb_bfd_unref): Likewise.
2400 (_initialize_gdb_bfd): Add new set/show command.
2401 * NEWS: Mention new command.
2402
18989b3c
AB
24032015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
2404
2405 * gdb_bfd.c (bfd_sharing): New variable.
2406 (show_bfd_sharing): New function.
2407 (gdb_bfd_open): Check bfd_sharing variable.
2408 (_initialize_gdb_bfd): Add new set/show command.
2409 * NEWS: Mention new command.
2410
c04fe68f
AB
24112015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
2412
2413 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
2414 field.
2415 (struct gdb_bfd_cache_search): Likewise.
2416 (eq_bfd): Compare the size, inode, and device id fields.
2417 (gdb_bfd_open): Initialise the size, inode, and device id fields.
2418 (gdb_bfd_ref): Likewise.
2419 (gdb_bfd_unref): Likewise.
2420
b2a33439
PA
24212015-08-18 Pedro Alves <palves@redhat.com>
2422
2423 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
2424 target implements to_always_non_stop_p, call it.
2425 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
2426 (x86_linux_create_target): Install it as to_always_non_stop_p
2427 method.
2428
71b57e37
DE
24292015-08-17 Doug Evans <dje@google.com>
2430
2431 * ui-out.c (default_ui_out_impl): Add comment.
2432
7f3706eb
IB
24332015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
2434
2435 * d-exp.y (type_aggregate_p): New function.
2436 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
2437 (classify_inner_name): Likewise.
2438 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
2439
1762568f
DE
24402015-08-15 Doug Evans <xdje42@gmail.com>
2441
2442 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
2443 updated.
2444 (add_psymbol_to_list): Ditto.
2445
8763cede
DE
24462015-08-15 Doug Evans <xdje42@gmail.com>
2447
2448 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
2449 updated. Call end_psymtab_common.
2450 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
2451 end_psymtab_common.
2452 (build_type_psymtabs_reader): Ditto.
2453 * psympriv.h (sort_pst_symbols): Delete.
2454 (end_psymtab_common): Declare.
2455 * psymtab.c (sort_pst_symbols): Make static.
2456 (end_psymtab_common): New function.
2457 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
2458
51cdc993
DE
24592015-08-15 Doug Evans <xdje42@gmail.com>
2460
2461 * defs.h (LANGUAGE_BITS): Define.
2462 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
2463 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
2464 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
2465 (minimal_symbol_type): Add nr_minsym_types.
2466 (MINSYM_TYPE_BITS): Define.
2467 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
2468 (domain_enum_tag): Add NR_DOMAINS.
2469 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
2470 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
2471
95cf5869
DE
24722015-08-15 Doug Evans <xdje42@gmail.com>
2473
2474 * objfiles.h: Whitespace cleanup.
2475 * psympriv.h: Whitespace cleanup.
2476 * psymtab.c: Whitespace/coding convention cleanup.
2477
e3ae3c43
PP
24782015-08-15 Patrick Palka <patrick@parcs.ath.cx>
2479
2480 * inferior.c (detach_inferior_command): Don't call
2481 any_thread_of_process when pid is 0.
2482 (kill_inferior_command): Likewise.
2483
6ff0ba5f
DE
24842015-08-14 Doug Evans <xdje42@gmail.com>
2485
2486 PR gdb/11833
2487 * NEWS: Document new /s modifier for the disassemble command.
2488 * cli/cli-cmds.c (disassemble_command): Add support for /s.
2489 (_initialize_cli_cmds): Update online docs of disassemble command.
2490 * disasm.c: #include "source.h".
2491 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
2492 All uses updated.
2493 (dis_line_entry): New struct.
2494 (hash_dis_line_entry, eq_dis_line_entry): New functions.
2495 (allocate_dis_line_table): New functions.
2496 (maybe_add_dis_line_entry, line_has_code_p): New functions.
2497 (dump_insns): New arg end_pc. All callers updated.
2498 (do_mixed_source_and_assembly_deprecated): Renamed from
2499 do_mixed_source_and_assembly. All callers updated.
2500 (do_mixed_source_and_assembly): New function.
2501 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
2502 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
2503 DISASSEMBLY_SOURCE. All uses updated.
2504 (DISASSEMBLY_SOURCE): New macro.
2505 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
2506
b56ccc20
KS
25072015-08-14 Keith Seitz <keiths@redhat.com>
2508
2509 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
2510 `typename' to `type_name' to avoid C++ reserved word.
2511
ebdad8fc
KS
25122015-08-14 Keith Seitz <keiths@redhat.com>
2513
2514 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
2515 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
2516 silence ARI errors.
2517
c0fe2ae7
IB
25182015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
2519
2520 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
2521 xstrprintf instead of malloc and sprintf.
2522 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
2523 (lex_one_token): Likewise.
2524
a738da3a
MF
25252015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
2526
2527 * solib-svr4.c (read_program_header): Add base_addr argument to
2528 report the runtime address of the segment.
2529 (find_program_interpreter): Update read_program_header call to pass
2530 a NULL pointer for the new argument.
2531 (scan_dyntag): Add ptr_addr argument to report the runtime address
2532 of the tag payload.
2533 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
2534 read_program_header to get the base address of the dynamic segment.
2535 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
2536 read_program_header.
2537 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
2538
f8edc4ff
MF
25392015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
2540
2541 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
2542
444c1ed8
IB
25432015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
2544
2545 * d-exp.y (%union): Add voidval.
2546 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
2547 name in the lexing stage.
2548 (PostfixExpression): Move symbol completion handling in grammar here
2549 from PrimaryExpression.
2550 (PrimaryExpression): Move routines to handle resolving identifier
2551 tokens in the grammar here from push_expression_name.
2552 (IdentifierExp): Remove the handling of alternating '.' and identifier
2553 tokens.
2554 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
2555 (BasicType): Remove C-style typename rules.
2556 (d_type_from_name, d_module_from_name, push_variable)
2557 (push_fieldnames, push_type_name, push_module_name)
2558 (push_expression_name): Remove.
2559 (lex_one_token): Rename from yylex. Replace pstate with par_state.
2560 (token_and_value): New type.
2561 (token_fifo, popping, name_obstack): New globals.
2562 (classify_name): New function.
2563 (classify_inner_name): Likewise.
2564 (yylex): Likewise.
2565 (d_parse): Initialize token_fifo, popping and name_obstack.
2566
bc7c9fab
IB
25672015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
2568
2569 * Makefile.in (SFILES): Add d-namespace.c.
2570 (COMMON_OBS): Add d-namespace.o.
2571 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
2572 la_lookup_symbol_nonlocal callback function pointer.
2573 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
2574 (d_lookup_nested_symbol): New declaration.
2575 * d-namespace.c: New file.
2576
3207396b
PA
25772015-08-13 Pedro Alves <palves@redhat.com>
2578
2579 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
2580 cleanup after the decref cleanup, not before.
2581
5d8c3ed3
PMR
25822015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
2583
2584 * ada-lang.c: Include namespace.h
2585 (aux_add_nonlocal_symbols): Fix a function name in comment.
2586 (ada_add_block_renamings): New.
2587 (add_nonlocal_symbols): Add global renamings handling.
2588 (ada_lookup_symbol_list_worker): Move the symbol lookup part
2589 to...
2590 (ada_add_all_symbols): ... this new function.
2591 (ada_add_block_symbols): Try to match the input name against the
2592 "using directives list", perform a recursive symbol lookup on
2593 the matched declarations.
2594 * block.h (struct block): Move the_namespace to top-level as
2595 namespace_info. Remove the language_specific field.
2596 (BLOCK_NAMESPACE): Update access to the namespace_info field.
2597 * buildsym.h (using_directives): Rename into...
2598 (local_using_directives): ... this.
2599 (global_using_directives): New.
2600 (struct context_stack): Rename the using_directives field into
2601 local_using_directives.
2602 * buildsym.c (finish_block_internal): Deal with the proper
2603 using directives repository (local or global).
2604 (prepare_for_building): Reset local_using_directives. Assert
2605 that there is no pending global using directive.
2606 (reset_symtab_globals): Reset global_using_directives and
2607 local_using_directives.
2608 (end_symtab_get_static_block): Don't ignore symtabs that have
2609 only using directives.
2610 (push_context): Update references to local_using_directives.
2611 (buildsym_init): Do not reset using_directives.
2612 * cp-support.c: Include namespace.h.
2613 * cp-support.h (struct using_direct): Move to namespace.h.
2614 (cp_add_using_directives): Move to namespace.h.
2615 * cp-namespace.c: Include namespace.h
2616 (cp_add_using_directive): Move to namespace.c, rename it to
2617 add_using_directive, add a "using_directives" argument and use
2618 it as the pending using directives repository. All callers
2619 updated.
2620 * dwarf2read.c (using_directives): New.
2621 (read_import_statement): Call using_directives.
2622 (read_func_scope): Update references to local_using_directives.
2623 (read_lexical_block_scope): Likewise.
2624 (read_namespace): Update the heading comment, call
2625 using_directives.
2626 * namespace.h: New file.
2627 * namespace.c: New file.
2628 * Makefile.in (SFILES): Add namespace.c.
2629 (COMMON_OBS): Add namespace.o
2630
4dafcdeb
JB
26312015-08-12 Joel Brobecker <brobecker@adacore.com>
2632
2633 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
2634 compute RETADDR.
2635
67994074
KS
26362015-08-12 Keith Seitz <keiths@redhat.com>
2637
2638 * break-catch-throw.c (re_set_exception_catchpoint) Rename
2639 reserved C++ keyword "explicit" to "explicit_loc".
2640 * breakpoint.c (create_overlay_event_breakpoint)
2641 (create_longjmp_master_breakpoint)
2642 (create_std_terminate_master_breakpoint)
2643 (create_exception_master_breakpoint, update_static_tracepoint):
2644 Rename reserved C++ keyword "explicit" to "explicit_loc".
2645 * completer.c (collect_explicit_location_matches)
2646 (explicit_location_completer): Rename reserved C++ keyword
2647 "explicit" to "explicit_loc".
2648 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
2649 (canonicalize_linespec, create_sals_line_offset)
2650 (convert_linespec_to_sals, convert_explicit_location_to_sals)
2651 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
2652 "explicit" to "explicit_loc".
2653 * location.c (struct event_location) <explicit>: Rename to
2654 "explicit_loc".
2655 (initialize_explicit_location, new_explicit_location)
2656 (explicit_location_to_string_internal, explicit_location_to_linespec):
2657 Rename reserved C++ keyword "explicit" to "explicit_loc".
2658 * location.h (explicit_location_to_string)
2659 (explicit_location_to_linespec, initialize_explicit_location)
2660 (new_explicit_location): Rename reserved C++ keyword "explicit"
2661 to "explicit_loc".
2662 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
2663 keyword "explicit" to "explicit_loc".
2664
59ecaff3
KS
26652015-08-12 Keith Seitz <keiths@redhat.com>
2666
2667 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
2668 and only call decode_line_1 when it is non-NULL.
2669
244558af
LM
26702015-08-12 Luis Machado <lgustavo@codesourcery.com>
2671
2672 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
2673 location address is not meaningful.
2674 (breakpoint_address_is_meaningful): Update comment.
2675
629500fa
KS
26762015-08-11 Keith Seitz <keiths@redhat.com>
2677
2678 * NEWS: Mention explicit locations.
2679 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
2680 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
2681 (_initialize_breakpoint): Update documentation for
2682 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
2683
eb8c4e2e
KS
26842015-08-11 Keith Seitz <keiths@redhat.com>
2685
2686 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
2687 explicit locations, options "--source", "--function",
2688 "--label", and "--line".
2689
87f0e720
KS
26902015-08-11 Keith Seitz <keiths@redhat.com>
2691
2692 * completer.c: Include location.h.
2693 (enum match_type): New enum.
2694 (location_completer): Rename to ...
2695 (linespec_completer): ... this.
2696 (collect_explicit_location_matches, backup_text_ptr)
2697 (explicit_location_completer): New functions.
2698 (location_completer): "New" function; handle linespec
2699 and explicit location completions.
2700 (complete_line_internal): Remove all location completer-specific
2701 handling.
2702 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
2703 (find_toplevel_char): Export.
2704 (linespec_parse_line_offset): Export.
2705 Issue error if STRING is not numerical.
2706 (gdb_get_linespec_parser_quote_characters): New function.
2707 * linespec.h (linespec_parse_line_offset): Declare.
2708 (get_gdb_linespec_parser_quote_characters): Declare.
2709 (is_ada_operator): Declare.
2710 (find_toplevel_char): Declare.
2711 (linespec_lexer_lex_keyword): Declare.
2712 * location.c (explicit_to_event_location): New function.
2713 (explicit_location_lex_one): New function.
2714 (string_to_explicit_location): New function.
2715 (string_to_event_location): Handle explicit locations.
2716 * location.h (explicit_to_event_location): Declare.
2717 (string_to_explicit_location): Declare.
2718
00e52e53
KS
27192015-08-11 Keith Seitz <keiths@redhat.com>
2720
2721 * break-catch-throw.c (re_set_exception_catchpoint): Convert
2722 linespec into explicit location.
2723 * breakpoint.c (create_overlay_breakpoint)
2724 (create_longjmp_master_breakpoint)
2725 (create_std_terminate_master_breakpoint)
2726 (create_exception_master_breakpoint): Convert linespec into explicit
2727 location.
2728 (update_static_tracepoint): Convert linespec into explicit location.
2729 * linespec.c (enum offset_relative_sign, struct line_offset): Move
2730 location.h.
2731 (struct linespec) <expression, expr_pc, source_filename>
2732 <function_name, label_name, line_offset>: Replace with ...
2733 <explicit>: ... this.
2734 <is_linespec>: New member.
2735 (PARSER_EXPLICIT): New accessor macro.
2736 (undefined_label_error): New function.
2737 (source_file_not_found_error): New function.
2738 (linespec_parse_basic): The parser result is now an explicit location.
2739 Use PARSER_EXPLICIT to access it.
2740 Use undefined_label_error.
2741 (canonicalize_linespec): Convert canonical linespec into explicit
2742 location.
2743 Move string representation of location to explicit_location_to_linespec
2744 and use it and explicit_location_to_string to save string
2745 representations of the canonical location.
2746 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
2747 explicit location. Update all references.
2748 (convert_explicit_location_to_sals): New function.
2749 (parse_linespec): Use PARSER_EXPLICIT to access the parser
2750 result's explicit location.
2751 (linespec_state_constructor): Initialize is_linespec.
2752 Use PARSER_EXPLICIT.
2753 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
2754 result.
2755 (event_location_to_sals): For linespec locations, set is_linespec.
2756 Handle explicit locations.
2757 (decode_objc): 'ls' contains an explicit location now. Update all
2758 references.
2759 (symtabs_from_filename): Use source_file_not_found_error.
2760 * location.c (struct event_location.u) <explicit>: New member.
2761 (initialize_explicit_location): New function.
2762 (initialize_event_location): Initialize explicit locations.
2763 (new_explicit_location, get_explicit_location)
2764 (get_explicit_location_const): New functions.
2765 (explicit_to_string_internal): New function; most of contents moved
2766 from canonicalize_linespec.
2767 (explicit_location_to_string): New function.
2768 (explicit_location_to_linespec): New function.
2769 (copy_event_location, delete_event_location)
2770 (event_location_to_string_const, event_location_empty_p): Handle
2771 explicit locations.
2772 * location.h (enum offset_relative_sign, struct line_offset): Move
2773 here from linespec.h.
2774 (enum event_location_type): Add EXPLICIT_LOCATION.
2775 (struct explicit_location): New structure.
2776 (explicit_location_to_string): Declare.
2777 (explicit_location_to_linespec): Declare.
2778 (new_explicit_location, get_explicit_locationp
2779 (get_explicit_location_const, initialize_explicit_location): Declare.
2780
5b56227b
KS
27812015-08-11 Keith Seitz <keiths@redhat.com>
2782
2783 * break-catch-throw.c (re_set_exception_catchpoint): Convert
2784 linespec for stap probe to probe location.
2785 * breakpoint.c (create_longjmp_master_breakpoint)
2786 (create_exception_master_breakpoint): Likewise.
2787 (break_command_1): Remove local variable `arg_cp'.
2788 Check location type to set appropriate breakpoint ops methods.
2789 (trace_command): Likewise.
2790 * linespec.c (event_location_to_sals): Assert on probe locations.
2791 * location.c (EL_PROBE): Add macro definition.
2792 (new_probe_location, get_probe_location): New functions.
2793 (copy_event_location, delete_event_location, event_location_to_string)
2794 (string_to_event_location, event_location_empty_p): Handle probe
2795 locations.
2796 * location.h (enum event_location_type): Add PROBE_LOCATION.
2797 (new_probe_location, get_probe_location): Declare.
2798 * probe.c (parse_probes): Assert that LOCATION is a probe location.
2799 Convert linespec into probe location.
2800
a06efdd6
KS
28012015-08-11 Keith Seitz <keiths@redhat.com>
2802
2803 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
2804 Convert linespec to address location.
2805 * linespec.c (canonicalize_linespec): Do not handle address
2806 locations here.
2807 (convert_address_location_to_sals): New function; contents moved
2808 from ...
2809 (convert_linespc_to_sals): ... here.
2810 (parse_linespec): Remove address locations from linespec grammar.
2811 Remove handling of address locations.
2812 (linespec_lex_to_end): Remove handling of address linespecs.
2813 (event_location_to_sals): Handle ADDRESS_LOCATION.
2814 (linespec_expression_to_pc): Export.
2815 * linespec.h (linespec_expression_to_pc): Add declaration.
2816 * location.c (struct event_location.u) <address>: New member.
2817 (new_address_location, get_address_location): New functions.
2818 (copy_event_location, delete_event_location, event_location_to_string)
2819 (string_to_event_location, event_location_empty_p): Handle address
2820 locations.
2821 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
2822 (new_address_location, get_address_location): Declare.
2823 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
2824 to address location.
2825 * spu-tdep.c (spu_catch_start): Likewise.
2826
f00aae0f
KS
28272015-08-11 Keith Seitz <keiths@redhat.com>
2828
2829 * ax-gdb.c: Include location.h.
2830 (agent_command_1) Use linespec location instead of address
2831 string.
2832 * break-catch-throw.c: Include location.h.
2833 (re_set_exception_catchpoint): Use linespec locations instead
2834 of address strings.
2835 * breakpoint.c: Include location.h.
2836 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
2837 (create_std_terminate_master_breakpoint)
2838 (create_exception_master_breakpoint, update_breakpoints_after_exec):
2839 Use linespec location instead of address string.
2840 (print_breakpoint_location): Use locations and
2841 event_location_to_string.
2842 Print extra_string for pending locations for non-MI streams.
2843 (print_one_breakpoint_location): Use locations and
2844 event_location_to_string.
2845 (init_raw_breakpoint_without_location): Initialize b->location.
2846 (create_thread_event_breakpoint): Use linespec location instead of
2847 address string.
2848 (init_breakpoint_sal): Likewise.
2849 Only save extra_string if it is non-NULL and not the empty string.
2850 Use event_location_to_string instead of `addr_string'.
2851 Constify `p' and `endp'.
2852 Use skip_spaces_const/skip_space_const instead of non-const versions.
2853 Copy the location into the breakpoint.
2854 If LOCATION is NULL, save the breakpoint address as a linespec location
2855 instead of an address string.
2856 (create_breakpoint_sal): Change `addr_string' parameter to a struct
2857 event_location. All uses updated.
2858 (create_breakpoints_sal): Likewise for local variable `addr_string'.
2859 (parse_breakpoint_sals): Use locations instead of address strings.
2860 Remove check for empty linespec with conditional.
2861 Refactor.
2862 (decode_static_tracepoint_spec): Make argument const and update
2863 function.
2864 (create_breakpoint): Change `arg' to a struct event_location and
2865 rename.
2866 Remove `copy_arg' and `addr_start'.
2867 If EXTRA_STRING is empty, set it to NULL.
2868 Don't populate `canonical' for pending breakpoints.
2869 Pass `extra_string' to find_condition_and_thread.
2870 Clear `extra_string' if `rest' was NULL.
2871 Do not error with "garbage after location" if setting a dprintf
2872 breakpoint.
2873 Copy the location into the breakpoint instead of an address string.
2874 (break_command_1): Use string_to_event_location and pass this to
2875 create_breakpoint instead of an address string.
2876 Check against `arg_cp' for a probe linespec.
2877 (dprintf_command): Use string_to_event_location and pass this to
2878 create_breakpoint instead of an address string.
2879 Throw an exception if no format string was specified.
2880 (print_recreate_ranged_breakpoint): Use event_location_to_string
2881 instead of address strings.
2882 (break_range_command, until_break_command)
2883 (init_ada_exception_breakpoint): Use locations instead
2884 of address strings.
2885 (say_where): Print out extra_string for pending locations.
2886 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
2887 the breakpoint.
2888 (base_breakpoint_create_sals_from_location): Use struct event_location
2889 instead of address string.
2890 Remove `addr_start' and `copy_arg' parameters.
2891 (base_breakpoint_decode_location): Use struct event_location instead of
2892 address string.
2893 (bkpt_re_set): Use locations instead of address strings.
2894 Use event_location_empty_p to check for unset location.
2895 (bkpt_print_recreate): Use event_location_to_string instead of
2896 an address string.
2897 Print out extra_string for pending locations.
2898 (bkpt_create_sals_from_location, bkpt_decode_location)
2899 (bkpt_probe_create_sals_from_location): Use struct event_location
2900 instead of address string.
2901 (bkpt_probe_decode_location): Use struct event_location instead of
2902 address string.
2903 (tracepoint_print_recreate): Use event_location_to_string to
2904 recreate the tracepoint.
2905 (tracepoint_create_sals_from_location, tracepoint_decode_location)
2906 (tracepoint_probe_create_sals_from_location)
2907 (tracepoint_probe_decode_location): Use struct event_location
2908 instead of address string.
2909 (dprintf_print_recreate): Use event_location_to_string to recreate
2910 the dprintf.
2911 (dprintf_re_set): Remove check for valid/missing format string.
2912 (strace_marker_create_sals_from_location)
2913 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
2914 (update_static_tracepoint): Use struct event_location instead of
2915 address string.
2916 (location_to_sals): Likewise.
2917 Pass `extra_string' to find_condition_and_thread.
2918 For newly resolved pending breakpoint locations, clear the location's
2919 string representation.
2920 Assert that the breakpoint's condition string is NULL when
2921 condition_not_parsed.
2922 (breakpoint_re_set_default, create_sals_from_location_default)
2923 (decode_location_default, trace_command, ftrace_command)
2924 (strace_command, create_tracepoint_from_upload): Use locations
2925 instead of address strings.
2926 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
2927 Use struct event_location instead of address string.
2928 Update all uses.
2929 <decode_location>: Likewise.
2930 (struct breakpoint) <addr_string>: Change to struct event_location
2931 and rename `location'.
2932 <addr_string_range_end>: Change to struct event_location and rename
2933 `location_range_end'.
2934 (create_breakpoint): Use struct event_location instead of address
2935 string.
2936 * cli/cli-cmds.c: Include location.h.
2937 (edit_command, list_command): Use locations instead of address strings.
2938 * elfread.c: Include location.h.
2939 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
2940 * guile/scm-breakpoint.c: Include location.h.
2941 (bpscm_print_breakpoint_smob): Use event_location_to_string.
2942 (gdbscm_register_breakpoint): Use locations instead of address
2943 strings.
2944 * linespec.c: Include location.h.
2945 (struct ls_parser) <stream>: Change to const char *.
2946 (PARSER_STREAM): Update.
2947 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
2948 keywords must be followed by whitespace.
2949 (canonicalize_linespec): Save a linespec location into `canonical'.
2950 Save a canonical linespec into `canonical'.
2951 (parse_linespec): Change `argptr' to const char * and rename `arg'.
2952 All uses updated.
2953 Update function description.
2954 (linespec_parser_new): Initialize `parser'.
2955 Update initialization of parsing stream.
2956 (event_location_to_sals): New function.
2957 (decode_line_full): Change `argptr' to a struct event_location and
2958 rename it `location'.
2959 Use locations instead of address strings.
2960 Call event_location_to_sals instead of parse_linespec.
2961 (decode_line_1): Likewise.
2962 (decode_line_with_current_source, decode_line_with_last_displayed)
2963 Use locations instead of address strings.
2964 (decode_objc): Likewise.
2965 Change `argptr' to const char * and rename `arg'.
2966 (destroy_linespec_result): Delete the linespec result's location
2967 instead of freeing the address string.
2968 * linespec.h (struct linespec_result) <addr_string>: Change to
2969 struct event_location and rename to ...
2970 <location>: ... this.
2971 (decode_line_1, decode_line_full): Change `argptr' to struct
2972 event_location. All callers updated.
2973 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
2974 (mi_cmd_break_insert_1): Use locations instead of address strings.
2975 Throw an error if there was "garbage" at the end of the specified
2976 linespec.
2977 * probe.c: Include location.h.
2978 (parse_probes): Change `argptr' to struct event_location.
2979 Use event locations instead of address strings.
2980 * probe.h (parse_probes): Change `argptr' to struct event_location.
2981 * python/py-breakpoint.c: Include location.h.
2982 (bppy_get_location): Constify local variable `str'.
2983 Use event_location_to_string.
2984 (bppy_init): Use locations instead of address strings.
2985 * python/py-finishbreakpoint.c: Include location.h.
2986 (bpfinishpy_init): Remove local variable `addr_str'.
2987 Use locations instead of address strings.
2988 * python/python.c: Include location.h.
2989 (gdbpy_decode_line): Use locations instead of address strings.
2990 * remote.c: Include location.h.
2991 (remote_download_tracepoint): Use locations instead of address
2992 strings.
2993 * spu-tdep.c: Include location.h.
2994 (spu_catch_start): Remove local variable `buf'.
2995 Use locations instead of address strings.
2996 * tracepoint.c: Include location.h.
2997 (scope_info): Use locations instead of address strings.
2998 (encode_source_string): Constify parameter `src'.
2999 * tracepoint.h (encode_source_string): Likewise.
3000
c7c1b3e9
KS
30012015-08-11 Keith Seitz <keiths@redhat.com>
3002
3003 * Makefile.in (SFILES): Add location.c.
3004 (HFILES_NO_SRCDIR): Add location.h.
3005 (COMMON_OBS): Add location.o.
3006 * linespec.c (linespec_lex_to_end): New function.
3007 * linespec.h (linespec_lex_to_end): Declare.
3008 * location.c: New file.
3009 * location.h: New file.
3010
5f700d83
KS
30112015-08-11 Keith Seitz <keiths@redhat.com>
3012
3013 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
3014 Renamed to create_sals_from_location.
3015 <decode_linespec>: Renamed to decode_location.
3016 Update all callers.
3017 * breakpoint.c (create_sals_from_address_default): Renamed to ...
3018 (create_sals_from_location_default): ... this.
3019 (addr_string_to_sals): Renamed to ...
3020 (location_to_sals): ... this.
3021 (decode_linespec_default): Renamed to ...
3022 (decode_location_default): ... this.
3023 (base_breakpoint_create_sals_from_address): Renamed to ...
3024 (base_breakpoint_create_sals_from_location): ... this.
3025 (bkpt_create_sals_from_address): Renamed to ...
3026 (bkpt_create_sals_from_location): ... this.
3027 (bkpt_decode_linespec): Renamed to ...
3028 (bkpt_decode_location): ... this.
3029 (bkpt_probe_create_sals_from_address): Renamed to ...
3030 (bkpt_probe_create_sals_from_location): ... this.
3031 (tracepoint_create_sals_from_address): Renamed to ...
3032 (tracepoint_create_sals_from_location): ... this.
3033 (tracepoint_decode_linespec): Renamed to ...
3034 (tracepoint_decode_location): ... this.
3035 (tracepoint_probe_create_sals_from_address): Renamed to ...
3036 (tracepoint_probe_create_sals_from_location): ... this.
3037 (tracepoint_probe_decode_linespec): Renamed to ...
3038 (tracepoint_probe_decode_location): ... this.
3039 (strace_marker_create_sals_from_address): Renamed to ...
3040 (strace_marker_create_sals_from_location): ... this.
3041 (decode_linespec_default): Renamed to ...
3042 (decode_location_default): ... this.
3043
e27852be
DE
30442015-08-10 Doug Evans <dje@google.com>
3045 Keith Seitz <keiths@redhat.com>
3046
3047 PR gdb/17960
3048 * symtab.c (make_file_symbol_completion_list_1): Renamed from
3049 make_file_symbol_completion_list and made static.
3050 (make_file_symbol_completion_list): New function.
80af41e0 3051
fd7dcb94
JB
30522015-08-10 Joel Brobecker <brobecker@adacore.com>
3053
3054 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
3055 trailing new-line at end of warning message.
3056 (proceed): Add i18n marker to error messages.
3057
f12899e9
PA
30582015-08-07 Pedro Alves <palves@redhat.com>
3059
3060 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
3061
5ac21343
PA
30622015-08-07 Pedro Alves <palves@redhat.com>
3063
3064 * s390-linux-tdep.c (is_non_branch_ril)
3065 (s390_displaced_step_copy_insn): New functions.
3066 (s390_displaced_step_fixup): Update comment.
3067 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
3068 gdbarch_displaced_step_copy_insn hook.
3069
7f03bd92
PA
30702015-08-07 Pedro Alves <palves@redhat.com>
3071
3072 * infrun.c (displaced_step_prepare_throw): Return -1 if
3073 gdbarch_displaced_step_copy_insn returns NULL. Update intro
3074 comment.
3075 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
3076 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
3077 in file.
3078 (ppc_displaced_step_copy_insn): New function.
3079 (ppc_displaced_step_fixup): Update comment.
3080 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
3081 gdbarch_displaced_step_copy_insn hook.
3082 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
3083 NULL return.
3084 * gdbarch.h: Regenerate.
3085
3fc8eb30
PA
30862015-08-07 Pedro Alves <palves@redhat.com>
3087
3088 * inferior.h (struct inferior) <displaced_stepping_failed>: New
3089 field.
3090 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
3091 Return false if dispaced stepping failed before.
3092 (resume): Pass the current inferior to
3093 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
3094 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
3095 displaced_stepping_failed flag, and fall back to an in-line
3096 step-over.
3097
bfedc46a
PA
30982015-08-07 Pedro Alves <palves@redhat.com>
3099
3100 * darwin-nat.c (darwin_stop): Rename to ...
3101 (darwin_interrupt): ... this.
3102 (_initialize_darwin_inferior): Adjust.
3103 * gnu-nat.c (gnu_stop): Delete.
3104 (gnu_target): Don't install gnu_stop.
3105 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
3106 (inf_ptrace_interrupt): ... this.
3107 (inf_ptrace_target): Adjust.
3108 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
3109 target_stop.
3110 * linux-nat (linux_nat_stop): Rename to ...
3111 (linux_nat_interrupt): ... this.
3112 (linux_nat_stop): Reimplement.
3113 (linux_nat_add_target): Install linux_nat_interrupt.
3114 * nto-procfs.c (nto_interrupt_twice): Rename to ...
3115 (nto_handle_sigint_twice): ... this.
3116 (nto_interrupt): Rename to ...
3117 (nto_handle_sigint): ... this. Call target_interrupt instead of
3118 target_stop.
3119 (procfs_wait): Adjust.
3120 (procfs_stop): Rename to ...
3121 (procfs_interrupt): ... this.
3122 (init_procfs_targets): Adjust.
3123 * procfs.c (procfs_stop): Rename to ...
3124 (procfs_interrupt): ... this.
3125 (procfs_target): Adjust.
3126 * remote-m32r-sdi.c (m32r_stop): Rename to ...
3127 (m32r_interrupt): ... this.
3128 (init_m32r_ops): Adjust.
3129 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
3130 (gdbsim_interrupt_inferior): ... this.
3131 (gdbsim_stop): Rename to ...
3132 (gdbsim_interrupt): ... this.
3133 (gdbsim_cntrl_c): Adjust.
3134 (init_gdbsim_ops): Adjust.
3135 * remote.c (sync_remote_interrupt): Adjust comments.
3136 (remote_stop_as): Rename to ...
3137 (remote_interrupt_as): ... this.
3138 (remote_stop): Adjust comment.
3139 (remote_interrupt): New function.
3140 (init_remote_ops): Install remote_interrupt.
3141 * target.c (target_interrupt): New function.
3142 * target.h (struct target_ops) <to_interrupt>: New field.
3143 (target_interrupt): New declaration.
3144 * windows-nat.c (windows_stop): Rename to ...
3145 (windows_interrupt): ... this.
3146 * target-delegates.c: Regenerate.
3147
d55007b5
PA
31482015-08-07 Pedro Alves <palves@redhat.com>
3149
3150 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
3151 threads" as alternative to "switching back to stepped thread".
3152
fbea99ea
PA
31532015-08-07 Pedro Alves <palves@redhat.com>
3154
3155 * NEWS: Mention "maint set/show target-non-stop".
3156 * breakpoint.c (update_global_location_list): Check
3157 target_is_non_stop_p instead of non_stop.
3158 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
3159 * infrun.c (show_can_use_displaced_stepping)
3160 (can_use_displaced_stepping_p, start_step_over_inferior):
3161 Likewise.
3162 (internal_resume_ptid): New function.
3163 (resume): Use it.
3164 (proceed): Check target_is_non_stop_p instead of non_stop. If in
3165 all-stop mode but the target is always in non-stop mode, start all
3166 the other threads that are implicitly resumed too.
3167 (for_each_just_stopped_thread, fetch_inferior_event)
3168 (adjust_pc_after_break, stop_all_threads): Check
3169 target_is_non_stop_p instead of non_stop.
3170 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
3171 with the target always in non-stop mode.
3172 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
3173 instead of non_stop.
3174 (switch_back_to_stepped_thread): Check target_is_non_stop_p
3175 instead of non_stop.
3176 (keep_going_stepped_thread): Use internal_resume_ptid.
3177 (stop_waiting): If in all-stop mode, and the target is in non-stop
3178 mode, stop all threads.
3179 (keep_going_pass): Likewise, when starting a new in-line step-over
3180 sequence.
3181 * linux-nat.c (get_pending_status, select_event_lwp)
3182 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
3183 target_is_non_stop_p instead of non_stop.
3184 (linux_nat_always_non_stop_p): New function.
3185 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
3186 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
3187 * target-delegates.c: Regenerate.
3188 * target.c (target_is_non_stop_p): New function.
3189 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
3190 (maint_set_target_non_stop_command)
3191 (maint_show_target_non_stop_command): New functions.
3192 (_initilize_target): Install "maint set/show target-non-stop"
3193 commands.
3194 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
3195 (target_non_stop_enabled): New declaration.
3196 (target_is_non_stop_p): New declaration.
3197
372316f1
PA
31982015-08-07 Pedro Alves <pedro@codesourcery.com>
3199
3200 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
3201 has a pending status, return true.
3202 * gdbthread.h: Include target/waitstatus.h.
3203 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
3204 stop_pc>: New fields.
3205 (struct thread_info) <resumed>: New field.
3206 (set_resumed): Declare.
3207 * infrun.c: Include "event-loop.h".
3208 (infrun_async_inferior_event_token, infrun_is_async): New globals.
3209 (infrun_async): New function.
3210 (clear_step_over_info): Add debug output.
3211 (displaced_step_in_progress_any_inferior): New function.
3212 (displaced_step_fixup): New returns int.
3213 (start_step_over): Handle in-line step-overs too. Assert the
3214 thread is marked resumed.
3215 (resume_cleanups): Clear the thread's resumed flag.
3216 (resume): Set the thread's resumed flag. Return early if the
3217 thread has a pending status. Allow stepping a breakpoint with no
3218 signal.
3219 (proceed): Adjust to check 'resumed' instead of 'executing'.
3220 (clear_proceed_status_thread): If the thread has a pending status,
3221 and that status is a finished step, discard the pending status.
3222 (clear_proceed_status): Don't clear step_over_info here.
3223 (random_pending_event_thread, do_target_wait): New functions.
3224 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
3225 do_target_wait.
3226 (wait_one): New function.
3227 (THREAD_STOPPED_BY): New macro.
3228 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
3229 (thread_stopped_by_hw_breakpoint): New functions.
3230 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
3231 functions.
3232 (handle_inferior_event): Also call set_resumed(false) on all
3233 threads implicitly stopped by the event.
3234 (restart_threads, resumed_thread_with_pending_status): New
3235 functions.
3236 (finish_step_over): If we were doing an in-line step-over before,
3237 and no longer are after trying to start a new step-over, restart
3238 all threads. If we have multiple threads with pending events,
3239 save the current event and go through the event loop again.
3240 (handle_signal_stop): Return early if finish_step_over returns
3241 false.
3242 <random signal>: If we get a signal while stepping over a
3243 breakpoint in-line in non-stop mode, restart all threads. Clear
3244 step_over_info before delivering the signal.
3245 (keep_going_stepped_thread): Use internal_error instead of
3246 gdb_assert. Mark the thread as resumed.
3247 (keep_going_pass_signal): Assert the thread isn't already resumed.
3248 If some other thread is doing an in-line step-over, defer the
3249 resume. If we just started a new in-line step-over, stop all
3250 threads. Don't clear step_over_info.
3251 (infrun_async_inferior_event_handler): New function.
3252 (_initialize_infrun): Create async event handler with
3253 infrun_async_inferior_event_handler as callback.
3254 (infrun_async): New declaration.
3255 * target.c (target_async): New function.
3256 * target.h (target_async): Declare macro and readd as function
3257 declaration.
3258 * target/waitstatus.h (enum target_stop_reason)
3259 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
3260 * thread.c (new_thread): Clear the new waitstatus field.
3261 (set_resumed): New function.
3262
2ac7589c
PA
32632015-08-07 Pedro Alves <palves@redhat.com>
3264
3265 * infrun.c (keep_going_stepped_thread): New function, factored out
3266 from ...
3267 (switch_back_to_stepped_thread): ... here.
3268
8b061563
PA
32692015-08-07 Pedro Alves <palves@redhat.com>
3270
3271 * infrun.c (currently_stepping): Extend intro comment.
3272 * target.h (target_resume): Extend intro comment.
3273
1afd5965
PA
32742015-08-07 Pedro Alves <palves@redhat.com>
3275
3276 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
3277 of inferior_ptid. If the stepped thread vanished, return 0
3278 instead of resuming here. Use reset_ecs. Print the prev_pc and
3279 the current stop_pc in log message. Clear trap_expected if the
3280 thread advanced. Don't pass currently_stepping to
3281 do_target_resume.
3282
4d9d9d04
PA
32832015-08-07 Pedro Alves <palves@redhat.com>
3284
3285 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
3286 * infrun.c (struct execution_control_state): Move higher up in the
3287 file.
3288 (reset_ecs): New function.
3289 (start_step_over): Now returns int. Rewrite to use
3290 keep_going_pass_signal instead of manually starting a displaced step.
3291 (resume): Don't call set_running here. If displaced stepping
3292 can't start now, clear trap_expected.
3293 (find_thread_needs_step_over): Delete function.
3294 (proceed): Set up finish_thread_state_cleanup. Call set_running.
3295 If the current thread needs a step over, push it in the step-over
3296 chain. Don't set insert breakpoints nor call resume directly
3297 here. Instead rewrite to use start_step_over and
3298 keep_going_pass_signal.
3299 (finish_step_over): New function.
3300 (handle_signal_stop): Call finish_step_over instead of
3301 start_step_over.
3302 (switch_back_to_stepped_thread): If the event thread needs another
3303 step-over do that first. Use start_step_over.
3304 (keep_going_pass_signal): New function, factored out from ...
3305 (keep_going): ... here.
3306 (_initialize_infrun): Comment moved here.
3307 * thread.c (set_running_thread): New function.
3308 (set_running, finish_thread_state): Use set_running_thread.
3309
c2829269
PA
33102015-08-07 Pedro Alves <palves@redhat.com>
3311
3312 * gdbthread.h (struct thread_info) <step_over_prev,
3313 step_over_next>: New fields.
3314 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
3315 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
3316 declarations.
3317 * infrun.c (struct displaced_step_request): Delete.
3318 (struct displaced_step_inferior_state) <step_request_queue>:
3319 Delete field.
3320 (displaced_step_prepare): Assert that trap_expected is set. Use
3321 thread_step_over_chain_enqueue. Split starting a new displaced
3322 step to ...
3323 (start_step_over): ... this new function.
3324 (resume): Assert the thread isn't waiting for a step over already.
3325 (proceed): Assert the thread isn't waiting for a step over
3326 already.
3327 (infrun_thread_stop_requested): Adjust to remove threads from the
3328 embedded step-over chain.
3329 (handle_inferior_event) <fork/vfork>: Call start_step_over after
3330 displaced_step_fixup.
3331 (handle_signal_stop): Call start_step_over after
3332 displaced_step_fixup.
3333 * infrun.h (step_over_queue_head): New declaration.
3334 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
3335 (thread_step_over_chain_next, thread_is_in_step_over_chain)
3336 (thread_step_over_chain_enqueue)
3337 (thread_step_over_chain_remove): New functions.
3338 (delete_thread_1): Remove thread from the step-over chain.
3339
6c4cfb24
PA
33402015-08-07 Pedro Alves <palves@redhat.com>
3341
3342 * infrun.c (thread_still_needs_step_over): Rename to ...
3343 (thread_still_needs_step_over_bp): ... this.
3344 (enum step_over_what): New.
3345 (thread_still_needs_step_over): Reimplement.
3346
567420d1
PA
33472015-08-07 Pedro Alves <palves@redhat.com>
3348
3349 * remote.c (remote_wait_as): If not waiting for a stop reply,
3350 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
3351 requested, don't block waiting forever.
3352
d8dd4d5f
PA
33532015-08-07 Pedro Alves <pedro@codesourcery.com>
3354
3355 * infrun.c (adjust_pc_after_break): Now takes thread_info and
3356 waitstatus pointers instead of an ecs. Adjust.
3357 (handle_inferior_event): Adjust caller.
3358
e1316e60
PA
33592015-08-07 Pedro Alves <palves@redhat.com>
3360
3361 * infrun.c (handle_inferior_event): If we get
3362 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
3363 mode, mark all threads of the exiting process as not-executing.
3364 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
3365 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
3366 exiting process, if inferior_ptid still points at a process.
3367 * thread.c (struct current_thread_cleanup) <next>: New field.
3368 (current_thread_cleanup_chain): New global.
3369 (restore_current_thread_ptid_changed): New function.
3370 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
3371 current_thread_cleanup_chain list.
3372 (make_cleanup_restore_current_thread): Add the cleanup data to the
3373 current_thread_cleanup_chain list.
3374 (_initialize_thread): Install restore_current_thread_ptid_changed
3375 as thread_ptid_changed observer.
3376
47e9c225
JB
33772015-08-07 Joel Brobecker <brobecker@adacore.com>
3378
3379 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
3380 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
3381 smaller than expected.
3382
06096720
AB
33832015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
3384
3385 * stack.c (get_frame_language): Moved ...
3386 * frame.c (get_frame_language): ... to here.
3387 * language.h (get_frame_language): Declaration moved to frame.h.
3388 * frame.h: Add language.h include, for language enum.
3389 (get_frame_language): Declaration moved from language.h.
3390 * language.c: Add frame.h include.
3391 * top.c: Add frame.h include.
3392 * symtab.h (struct obj_section): Declare.
3393 (struct cmd_list_element): Declare.
3394
7ff38b1c
AB
33952015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
3396
3397 * language.c (show_language_command): Find selected frame before
3398 asking for the language of that frame.
3399 (set_language_command): Likewise.
3400 * language.h (get_frame_language): Add frame parameter.
3401 * stack.c (get_frame_language): Add frame parameter, assert
3402 parameter is not NULL, update comment and reindent.
3403 * top.c (check_frame_language_change): Pass the selected frame
3404 into get_frame_language.
3405
da8c46d2
MM
34062015-08-07 Markus Metzger <markus.t.metzger@intel.com>
3407
3408 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
3409 (pt_btrace_insn_flags): New.
3410 (ftrace_add_pt): Call pt_btrace_insn_flags.
3411 * btrace.h (btrace_insn_flag): New.
3412 (btrace_insn) <flags>: New.
3413 * record-btrace.c (btrace_insn_history): Print insn prefix.
3414 * NEWS: Announce it.
3415
5599c404
MM
34162015-08-07 Markus Metzger <markus.t.metzger@intel.com>
3417
3418 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
3419 * configure: Regenerate.
3420
016a3251
DD
34212015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
3422
3423 * Makefile.in (LIBICONV): Define.
3424 (CLIBS): Add LIBICONV.
3425 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
3426 * configure: Regenerate.
3427
aead7601
SM
34282015-08-06 Simon Marchi <simon.marchi@ericsson.com>
3429 Pedro Alves <palves@redhat.com>
3430
3431 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
3432 (arm_set_abi): Likewise.
3433 * ax-general.c (ax_print): Likewise.
3434 * c-exp.y (exp : string_exp): Likewise.
3435 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
3436 (do_compile_dwarf_expr_to_c): Likewise.
3437 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
3438 Likewise.
3439 * dwarf2expr.c (execute_stack_op): Likewise.
3440 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
3441 (disassemble_dwarf_expression): Likewise.
3442 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
3443 (read_array_order): Likewise.
3444 (abbrev_table_read_table): Likewise.
3445 (read_attribute_value): Likewise.
3446 (skip_unknown_opcode): Likewise.
3447 (dwarf_decode_macro_bytes): Likewise.
3448 (dwarf_decode_macros): Likewise.
3449 * eval.c (value_f90_subarray): Likewise.
3450 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
3451 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
3452 * infrun.c (handle_command): Likewise.
3453 * memory-map.c (memory_map_start_memory): Likewise.
3454 * osabi.c (set_osabi): Likewise.
3455 * parse.c (operator_length_standard): Likewise.
3456 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
3457 single return point.
3458 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
3459 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
3460 (gdbpy_lookup_global_symbol): Likewise.
3461 * record-full.c (record_full_restore): Likewise.
3462 * regcache.c (regcache_register_status): Likewise.
3463 (regcache_raw_read): Likewise.
3464 (regcache_cooked_read): Likewise.
3465 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
3466 * symtab.c (initialize_ordinary_address_classes): Likewise.
3467 * target-debug.h (target_debug_print_signals): Likewise.
3468 * utils.c (do_restore_current_language): Likewise.
3469
ca0a5f0b
CD
34702015-08-06 Clem Dickey <clemd@acm.org>
3471
3472 PR python/17136
3473 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
3474
05d999b0
SM
34752015-08-06 Simon Marchi <simon.marchi@ericsson.com>
3476
3477 * complaints.c (enum complaint_series): Add newlines and remove
3478 out of date comment.
3479 (struct complaints) <series>: Change type to enum
3480 complaint_series and remove out of date comment.
3481 (symfile_complaint_hook): Use equivalent enum value
3482 ISOLATED_MESSAGE instead of 0.
3483
bf47e248
PA
34842015-08-06 Pedro Alves <palves@redhat.com>
3485
3486 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
3487 returned > 0.
3488
b6b9ffcc
PL
34892015-08-06 Pierre Langlois <pierre.langlois@arm.com>
3490
3491 * common/agent.c (symbol_list) <required>: Remove.
3492
863d01bd
PA
34932015-08-06 Pedro Alves <palves@redhat.com>
3494
3495 * target/waitstatus.h (enum target_stop_reason)
3496 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
3497
0a39bb32
PA
34982015-08-05 Pedro Alves <palves@redhat.com>
3499 Joel Brobecker <brobecker@adacore.com>
3500
9d996aba 3501 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
3502 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
3503 case where BS->STOP is not set.
3504
260439cb
UW
35052015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
3506
3507 * nat/gdb_thread_db.h: Add copyright header.
3508 Protect against multiple inclusion.
3509
d89fa914
YQ
35102015-08-05 Yao Qi <yao.qi@linaro.org>
3511
3512 * aarch64-linux-nat.c (get_thread_id): Remove.
3513 (debug_reg_change_callback): Call ptid_get_lwp instead of
3514 get_thread_id.
3515 (fetch_gregs_from_thread): Likewise.
3516 (store_gregs_to_thread): Likewise.
3517 (fetch_fpregs_from_thread): Likewise.
3518 (store_fpregs_to_thread): Likewise.
3519 (aarch64_linux_get_debug_reg_capacity): Likewise.
3520 * arm-linux-nat.c (get_thread_id): Remove.
3521 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
3522 * xtensa-linux-nat.c (get_thread_id): Remove.
3523 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
3524 * arm-linux-nat.c (get_thread_id): Remove.
3525 (GET_THREAD_ID): Remove.
3526 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
3527 (store_fpregs, fetch_regs, store_regs): Likewise.
3528 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
3529 (fetch_vfp_regs, store_vfp_regs): Likewise.
3530 (arm_linux_read_description): Likewise.
3531 (arm_linux_get_hwbp_cap): Likewise.
3532 * xtensa-linux-nat.c (get_thread_id): Remove.
3533 (GET_THREAD_ID): Remove.
3534 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
3535 GET_THREAD_ID.
3536
4efd80aa
CS
35372015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
3538
3539 * python/py-linetable.c: Fix case of Linetable to LineTable
3540 in docstrings and code comments.
3541 * python/py-symtab.c: Same.
3542
c6343a91
JK
35432015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3544
3545 * infcmd.c (signal_command): Call do_cleanups for args_chain.
3546
978b9495
JK
35472015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3548
3549 PR gdb/18767
3550 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
3551 use.
3552
96e9210f
PA
35532015-08-04 Pedro Alves <palves@redhat.com>
3554
3555 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
3556 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
3557 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
3558 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
3559 (td_thr_validate_ftype, td_thr_get_info_ftype)
3560 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
3561 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
3562 New typedefs.
3563 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
3564 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
3565 local macros and use them instead of verbose_dlsym and dlsym
3566 calls.
3567
af60a1ef
SL
35682015-08-03 Sandra Loosemore <sandra@codesourcery.com>
3569
3570 * nios2-tdep.h: Include opcode/nios2.h here.
3571 (NIOS2_CDX_OPCODE_SIZE): New.
3572 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
3573 * nios2-tdep.c: Don't include opcode/nios2.h here.
3574 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
3575 4-byte read fails.
3576 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
3577 (nios2_match_addi, nios2_match_orhi): Likewise.
3578 (nios2_match_stw, nios2_match_ldw): Likewise.
3579 (nios2_match_rdctl): Likewise.
3580 (nios2_match_stwm, nios2_match_ldwm): New.
3581 (nios2_match_branch): Add cases for R2 encodings.
3582 (nios2_match_jmpi, nios2_match_calli): Likewise.
3583 (nios2_match_jmpr, nios2_match_callr): Likewise.
3584 (nios2_match_break, nios2_match_trap): Likewise.
3585 (nios2_in_epilogue_p): Add R2 support.
3586 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
3587 prologues.
3588 (nios2_breakpoint_from_pc): Handle R2 instructions.
3589 (nios2_get_next_pc): Likewise. Adjust call to
3590 tdep->syscall_next_pc.
3591 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
3592 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
3593 instruction field macros instead of literal hex values.
3594 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
3595 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
3596 Use size field from OP instead of assuming all instructions
3597 are the same size.
3598 (nios2_linux_init_abi): Register appropriate unwinder for mach.
3599
1da03605
UW
36002015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
3601
3602 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
3603 variable warning with some compilers.
3604
8156fe7f
YQ
36052015-08-03 Yao Qi <yao.qi@linaro.org>
3606
3607 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
3608 in comment. Replace "rw" with "type".
3609 (arm_linux_remove_watchpoint): Change type of "rw" to
3610 "enum target_hw_bp_type".
3611
835a09d9
PMR
36122015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
3613
3614 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
3615 lookup_symbol.
3616 * ft32-tdep.c (ft32_skip_prologue): Likewise.
3617 * moxie-tdep.c (moxie_skip_prologue): Likewise.
3618 * mt-tdep.c (mt_skip_prologue): Likewise.
3619 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3620
d12307c1
PMR
36212015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
3622
3623 * ada-exp.y (write_object_renaming): Replace struct
3624 ada_symbol_info with struct block_symbol. Update field
3625 references accordingly.
3626 (block_lookup, select_possible_type_sym): Likewise.
3627 (find_primitive_type): Likewise. Also update call to
3628 ada_lookup_symbol to extract the symbol itself.
3629 (write_var_or_type, write_name_assoc): Likewise.
3630 * ada-lang.h (struct ada_symbol_info): Remove.
3631 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
3632 struct block_symbol.
3633 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
3634 (ada_lookup_symbol): Return struct block_symbol instead of a
3635 mere symbol.
3636 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
3637 with struct block_symbol.
3638 (resolve_subexp, ada_resolve_function, sort_choices,
3639 user_select_syms, is_nonfunction, add_defn_to_vec,
3640 num_defns_collected, defns_collected,
3641 symbols_are_identical_enums, remove_extra_symbols,
3642 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
3643 ada_lookup_symbol_list, ada_iterate_over_symbols,
3644 ada_lookup_encoded_symbol, get_var_value): Likewise.
3645 (ada_lookup_symbol): Return a block_symbol instead of a mere
3646 symbol. Replace struct ada_symbol_info with struct
3647 block_symbol.
3648 (ada_lookup_symbol_nonlocal): Likewise.
3649 (standard_lookup): Make block passing explicit through
3650 lookup_symbol_in_language.
3651 * ada-tasks.c (get_tcb_types_info): Update the calls to
3652 lookup_symbol_in_language to extract the mere symbol out of the
3653 returned value.
3654 (ada_tasks_inferior_data_sniffer): Likewise.
3655 * ax-gdb.c (gen_static_field): Likewise for the call to
3656 lookup_symbol.
a5fdf78a 3657 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
3658 lookup functions.
3659 (gen_expr): Likewise.
3660 * c-exp.y: Likewise. Remove uses of block_found.
3661 (lex_one_token, classify_inner_name, c_print_token): Likewise.
3662 (classify_name): Likewise. Rename the "sym" local variable to
3663 "bsym".
3664 * c-valprint.c (print_unpacked_pointer): Likewise.
3665 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
3666 "sym" parameter from struct symbol * to struct block_symbol.
3667 Use it to remove uses of block_found. Deal with struct
a5fdf78a 3668 block_symbol from lookup functions.
d12307c1
PMR
3669 (gcc_convert_symbol): Likewise. Update the call to
3670 convert_symbol_sym.
3671 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 3672 struct block_symbol from lookup functions.
d12307c1
PMR
3673 * cp-namespace.c (cp_lookup_nested_symbol_1,
3674 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
3675 cp_search_static_and_baseclasses,
3676 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
3677 cp_lookup_symbol_imports_or_template,
3678 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
3679 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
3680 find_symbol_in_baseclass): Return struct block_symbol instead of
3681 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
3682 functions.
3683 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 3684 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
3685 lookup functions.
3686 * cp-support.h (cp_lookup_symbol_nonlocal,
3687 cp_lookup_symbol_from_namespace,
3688 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 3689 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
3690 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
3691 push_module_name):
a5fdf78a 3692 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
3693 uses of block_found.
3694 * eval.c (evaluate_subexp_standard): Update call to
3695 cp_lookup_symbol_namespace.
a5fdf78a
PMR
3696 * f-exp.y: Deal with struct block_symbol from lookup functions.
3697 Remove uses of block_found.
d12307c1
PMR
3698 (yylex): Likewise.
3699 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
3700 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 3701 struct block_symbol from lookup functions.
d12307c1
PMR
3702 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
3703 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
3704 (gdbscm_lookup_global_symbol): Likewise.
3705 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
3706 * go-exp.y: Likewise. Remove uses of block_found.
3707 (package_name_p, classify_packaged_name, classify_name):
3708 Likewise.
3709 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3710 * jv-exp.y (push_variable): Likewise.
3711 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
3712 * language.c (language_bool_type): Likewise.
3713 * language.h (struct language_defn): Update
a5fdf78a
PMR
3714 la_lookup_symbol_nonlocal to return a struct block_symbol rather
3715 than a mere symbol.
3716 * linespec.c (find_label_symbols): Deal with struct block_symbol
3717 from lookup functions.
d12307c1
PMR
3718 * m2-exp.y: Likewise. Remove uses of block_found.
3719 (yylex): Likewise.
3720 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
3721 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
3722 * p-exp.y: Likewise. Remove uses of block_found.
3723 (yylex): Likewise.
3724 * p-valprint.c (pascal_val_print): Likewise.
3725 * parse.c (write_dollar_variable): Likewise. Remove uses of
3726 block_found.
3727 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
3728 struct block_symbol.
3729 * printcmd.c (address_info): Deal with struct block_symbol from
3730 lookup functions.
d12307c1
PMR
3731 * python/py-frame.c (frapy_read_var): Likewise.
3732 * python/py-symbol.c (gdbpy_lookup_symbol,
3733 gdbpy_lookup_global_symbol): Likewise.
3734 * skip.c (skip_function_command): Likewise.
3735 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 3736 block_symbol instead of a mere symbol.
d12307c1
PMR
3737 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
3738 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
3739 * solib.c (solib_global_lookup): Likewise.
3740 * solist.h (solib_global_lookup): Likewise.
3741 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
3742 return a struct block_symbol rather than a mere symbol.
3743 * source.c (select_source_symtab): Deal with struct block_symbol
3744 from lookup functions.
d12307c1
PMR
3745 * stack.c (print_frame_args, iterate_over_block_arg_vars):
3746 Likewise.
3747 * symfile.c (set_initial_language): Likewise.
3748 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 3749 block_symbol.
d12307c1
PMR
3750 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
3751 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 3752 block_symbol.
d12307c1 3753 (block_found): Remove.
a5fdf78a 3754 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 3755 cache slots.
a5fdf78a
PMR
3756 (symbol_cache_lookup): Return a struct block_symbol rather than
3757 a mere symbol.
d12307c1
PMR
3758 (symbol_cache_mark_found): Add a BLOCK parameter to fill
3759 appropriately the cache slots. Update callers.
3760 (symbol_cache_dump): Update cache slots handling to the type
3761 change.
3762 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
3763 lookup_symbol_aux, lookup_local_symbol,
3764 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
3765 lookup_symbol_in_objfile_symtabs,
3766 lookup_symbol_in_objfile_from_linkage_name,
3767 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
3768 lookup_symbol_in_static_block, lookup_static_symbol,
3769 lookup_global_symbol):
a5fdf78a
PMR
3770 Return a struct block_symbol rather than a mere symbol. Deal
3771 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
3772 uses of block_found.
3773 (lookup_symbol_in_block): Remove uses of block_found.
3774 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 3775 struct block_symbol.
d12307c1
PMR
3776 (lookup_symbol_global_iterator_cb): Update references to the
3777 RESULT field.
a5fdf78a 3778 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 3779 functions.
a5fdf78a 3780 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
3781 (block_found): Remove.
3782 (lookup_symbol_in_language, lookup_symbol,
3783 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
3784 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
3785 lookup_global_symbol_from_objfile): Return a struct block_symbol
3786 rather than just a mere symbol. Update comments to remove
3787 mentions of block_found.
d12307c1
PMR
3788 * valops.c (find_function_in_inferior,
3789 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 3790 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
3791 functions.
3792 * value.c (value_static_field, value_fn_field): Likewise.
3793
b1c59ddc
SM
37942015-07-31 Simon Marchi <simon.marchi@ericsson.com>
3795
3796 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
3797 instead of integer.
3798
f486487f 37992015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 3800 Pedro Alves <palves@redhat.com>
f486487f
SM
3801
3802 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
3803 type or value instead of integer.
3804 (aarch64_linux_insert_watchpoint): Likewise.
3805 (aarch64_linux_remove_watchpoint): Likewise.
3806 * ada-lang.c (ada_op_print_tab): Likewise.
3807 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
3808 (amd64_linux_syscall_record_common): Likewise.
3809 * arch-utils.c (target_byte_order_user): Likewise.
3810 (default_byte_order): Likewise.
3811 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
3812 (arm_linux_get_hwbp_type): Likewise.
3813 (arm_linux_hw_watchpoint_initialize): Likewise.
3814 (arm_linux_insert_watchpoint): Likewise.
3815 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
3816 (arm_linux_syscall_record): Likewise.
3817 * breakpoint.c (update_watchpoint): Likewise.
3818 (breakpoint_here_p): Likewise.
3819 (bpstat_print): Likewise.
3820 (enable_breakpoint_disp): Likewise.
3821 * c-lang.c (c_op_print_tab): Likewise.
3822 * cli/cli-decode.c (add_info_alias): Likewise.
3823 * d-lang.c (d_op_print_tab): Likewise.
3824 * eval.c (evaluate_subexp_standard): Likewise.
3825 * f-exp.y (dot_ops): Likewise.
3826 (f77_keywords): Likewise.
3827 * f-lang.c (f_op_print_tab): Likewise.
3828 * go-lang.c (go_op_print_tab): Likewise.
3829 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
3830 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
3831 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
3832 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
3833 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
3834 (struct scm_from_stringn_data): Likewise.
3835 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
3836 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
3837 (ia64_linux_remove_watchpoint): Likewise.
3838 (ia64_linux_can_use_hw_breakpoint): Likewise.
3839 * infrun.c (print_stop_event): Likewise.
3840 * jv-lang.c (java_op_print_tab): Likewise.
3841 * linux-nat.c (linux_proc_xfer_partial): Likewise.
3842 * linux-nat.h (struct lwp_info): Likewise.
3843 * linux-thread-db.c (enable_thread_event): Likewise.
3844 * m2-lang.c (m2_op_print_tab): Likewise.
3845 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
3846 (mi_cmd_stack_list_variables): Likewise.
3847 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
3848 * mi/mi-out.c (mi_table_begin): Likewise.
3849 (mi_table_header): Likewise.
3850 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
3851 (mips_linux_insert_watchpoint): Likewise.
3852 (mips_linux_remove_watchpoint): Likewise.
3853 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
3854 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
3855 (mips_linux_watch_type_to_irw): Likewise.
3856 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3857 (procfs_insert_hw_watchpoint): Likewise.
3858 (procfs_remove_hw_watchpoint): Likewise.
3859 (procfs_hw_watchpoint): Likewise.
3860 (procfs_can_use_hw_breakpoint): Likewise.
3861 (procfs_remove_hw_watchpoint): Likewise.
3862 (procfs_insert_hw_watchpoint): Likewise.
3863 * p-lang.c (pascal_op_print_tab): Likewise.
3864 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
3865 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
3866 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
3867 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
3868 (procfs_insert_watchpoint): Likewise.
3869 (procfs_remove_watchpoint): Likewise.
3870 * psymtab.c (recursively_search_psymtabs): Likewise.
3871 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
3872 (m32r_insert_watchpoint): Likewise.
3873 * remote-mips.c (mips_can_use_watchpoint): Likewise.
3874 (mips_insert_watchpoint): Likewise.
3875 (mips_remove_watchpoint): Likewise.
3876 * remote.c (watchpoint_to_Z_packet): Likewise.
3877 (remote_insert_watchpoint): Likewise.
3878 (remote_remove_watchpoint): Likewise.
3879 (remote_check_watch_resources): Likewise.
3880 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
3881 (s390_remove_watchpoint): Likewise.
3882 (s390_can_use_hw_breakpoint): Likewise.
3883 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3884 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
3885 * target.h (struct target_ops): Likewise.
3886 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
3887 * ui-out.c (struct ui_out_hdr): Likewise.
3888 (append_header_to_list): Likewise.
3889 (get_next_header): Likewise.
3890 (verify_field): Likewise.
3891 (ui_out_begin): Likewise.
3892 (ui_out_field_int): Likewise.
3893 (ui_out_field_fmt_int): Likewise.
3894 (ui_out_field_skip): Likewise.
3895 (ui_out_field_string): Likewise.
3896 (ui_out_field_fmt): Likewise.
3897 * varobj.c (new_variable): Likewise.
3898 * x86-nat.c (x86_insert_watchpoint): Likewise.
3899 (x86_remove_watchpoint): Likewise.
3900 (x86_can_use_hw_breakpoint): Likewise.
3901 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
3902 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
3903 previously anonymous enumeration type..
3904 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
3905 value.
3906 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
3907 (target_debug_print_enum_bptype): New.
3908 * target-delegates.c: Regenerate.
3909
e1b5381f
SL
39102015-07-30 Sandra Loosemore <sandra@codesourcery.com>
3911
3912 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
3913 already says and disallow non-stack memory writes in the prologue.
3914
9aaf8e3a
SL
39152015-07-30 Sandra Loosemore <sandra@codesourcery.com>
3916
3917 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
3918 reflect how current GCC emits stack overflow checks. Match
3919 both trap and break instructions for backward compatbility.
3920 Disallow other trap and break instructions in the prologue.
3921
69dde7dc
PA
39222015-07-30 Pedro Alves <palves@redhat.com>
3923
3924 PR threads/18600
3925 * linux-nat.c (wait_lwp): Report to the core when thread group
3926 leader exits.
3927
4dd63d48
PA
39282015-07-30 Pedro Alves <palves@redhat.com>
3929 Simon Marchi <simon.marchi@ericsson.com>
3930
3931 PR threads/18600
3932 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
3933 mark the new thread as resumed. Remove STOPPING parameter.
3934 (wait_lwp): Adjust call to linux_handle_extended_wait.
3935 (linux_nat_filter_event): Adjust call to
3936 linux_handle_extended_wait.
3937 (resume_stopped_resumed_lwps): Add debug output.
3938
6b940e6a
PL
39392015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3940
3941 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
3942 isize argument.
3943 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
3944 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
3945 gdbarch_fast_tracepoint_valid_at.
3946 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
3947 * gdbarch.h: Regenerate.
3948 * gdbarch.c: Regenerate.
3949 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
3950 argument. Do not set it.
3951 * remote.c (remote_download_tracepoint): Adjust call to
3952 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
3953 the instruction length.
3954
ec741292
YQ
39552015-07-30 Yao Qi <yao.qi@linaro.org>
3956
3957 * arm-tdep.h (enum gdb_regnum): Move it to ...
3958 * arch/arm.h: ... here. New file.
3959 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
3960
0ea6402e
PL
39612015-07-30 Pierre Langlois <pierre.langlois@arm.com>
3962
3963 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
3964 Change its type to int *.
3965 (decode_br): Rename link argument to is_blr. Change its type to
3966 int *.
3967 (decode_cb): Rename op argument to is_cbnz. Change its type to
3968 int *.
3969 (decode_tb): Rename op argument to is_tbnz. Change its type to
3970 int *. Set is_tbnz to either 1 or 0.
3971 (aarch64_analyze_prologue): Change type of is_link to int. Add
3972 new variables is_cbnz and is_tbnz. Adjust call to
3973 aarch64_decode_cb and aarch64_decode_tb.
3974
aa58a496
SM
39752015-07-29 Simon Marchi <simon.marchi@ericsson.com>
3976
3977 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
3978 parameter.
3979 (mips_linux_new_thread): Likewise.
3980 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
3981
18206ca3
PP
39822015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3983
3984 * top.c: Include "tui/tui.h".
3985 (undo_terminal_modifications_before_exit): New static function.
3986 (quit_force): Use it.
3987
7afa63c6
PP
39882015-07-29 Patrick Palka <patrick@parcs.ath.cx>
3989
3990 * target.c (terminal_state): Initialize to terminal_is_ours.
3991
cc9f16aa
YQ
39922015-07-29 Yao Qi <yao.qi@linaro.org>
3993
3994 PR record/18691
3995 * dcache.c (dcache_read_memory_partial): Call
3996 raw_memory_xfer_partial.
3997 * target.c (raw_memory_xfer_partial): Make it non-static.
3998 * target.h (raw_memory_xfer_partial): Declare.
3999
3ae385af
SM
40002015-07-28 Simon Marchi <simon.marchi@ericsson.com>
4001
4002 * c-valprint.c (c_val_print_array): Consider addressable memory
4003 unit size.
4004 (c_val_print_ptr): Likewise.
4005 (c_val_print_int): Likewise.
4006 * findvar.c (read_frame_register_value): Likewise.
4007 * valarith.c (find_size_for_pointer_math): Likewise.
4008 (value_ptrdiff): Likewise.
4009 (value_subscripted_rvalue): Likewise.
4010 * valops.c (read_value_memory): Likewise (and rename variables).
4011 (value_assign): Likewise.
4012 (value_repeat): Likewise.
4013 (value_array): Likewise.
4014 (value_slice): Likewise.
4015 * valprint.c (generic_val_print_ptr): Likewise.
4016 (generic_val_print_enum): Likewise.
4017 (generic_val_print_bool): Likewise.
4018 (generic_val_print_int): Likewise.
4019 (generic_val_print_char): Likewise.
4020 (generic_val_print_float): Likewise.
4021 (generic_val_print_decfloat): Likewise.
4022 (generic_val_print_complex): Likewise.
4023 (val_print_scalar_formatted): Likewise.
4024 (val_print_array_elements): Likewise.
4025 * value.c (set_value_parent): Likewise.
4026 (value_contents_copy_raw): Likewise.
4027 (set_internalvar_component): Likewise.
4028 (value_primitive_field): Likewise.
4029 (value_fetch_lazy): Likewise.
4030 * value.h (read_value_memory): Update comment.
4031
e512cdbd
SM
40322015-07-28 Simon Marchi <simon.marchi@ericsson.com>
4033
4034 * value.c (get_value_arch): New function.
4035 * value.h (get_value_arch): New declaration.
4036
3723fda8
SM
40372015-07-28 Simon Marchi <simon.marchi@ericsson.com>
4038
4039 * value.c (struct value): Update comments.
4040
2e056931
SM
40412015-07-28 Simon Marchi <simon.marchi@ericsson.com>
4042
4043 * gdbtypes.c (type_length_units): New function.
4044 * gdbtypes.h (type_length_units): New declaration.
4045 (struct type) <length>: Update comment.
4046
0c87c0bf
SM
40472015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4048
4049 * valprint.c (generic_val_print): Factor out complex
4050 printing code to ...
4051 (generic_val_print_complex): ... this new function.
4052
9550ae5e
SM
40532015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4054
4055 * valprint.c (generic_val_print): Factor out decfloat
4056 printing code to ...
4057 (generic_val_print_decfloat): ... this new function.
4058
7784724b
SM
40592015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4060
4061 * valprint.c (generic_val_print): Factor out float
4062 printing code to ...
4063 (generic_val_print_float): ... this new function.
4064
385f5aff
SM
40652015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4066
4067 * valprint.c (generic_val_print): Factor out char
4068 printing code to ...
4069 (generic_val_print_char): ... this new function.
4070
b21b6342
SM
40712015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4072
4073 * valprint.c (generic_val_print): Factor out integer
4074 printing code to ...
4075 (generic_val_print_int): ... this new function.
4076
e5bead4b
SM
40772015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4078
4079 * valprint.c (generic_val_print): Factor out bool
4080 printing code to ...
4081 (generic_val_print_bool): ... this new function.
4082
4a8c372f
SM
40832015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4084
4085 * valprint.c (generic_val_print): Factor out function/method
4086 printing code to ...
4087 (generic_val_print_func): ... this new function.
4088
d93880bd
SM
40892015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4090
4091 * valprint.c (generic_val_print): Factor out flags
4092 printing code to ...
4093 (generic_val_print_flags): ... this new function.
4094
ef0bc0dd
SM
40952015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4096
4097 * valprint.c (generic_val_print): Factor out enum
4098 printing code to ...
4099 (generic_val_print_enum): ... this new function.
4100
fe43fede
SM
41012015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4102
4103 * valprint.c (generic_val_print): Factor out reference
4104 printing code to ...
4105 (generic_val_print_ref): ... this new function.
4106
45000ea2
SM
41072015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4108
4109 * valprint.c (generic_val_print): Factor out memberptr
4110 printing code to ...
4111 (generic_val_print_memberptr): ... this new function.
4112
81eb921a
SM
41132015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4114
4115 * valprint.c (generic_val_print): Factor out pointer
4116 printing code to ...
4117 (generic_val_print_ptr): ... this new function.
4118
557dbe8a
SM
41192015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4120
4121 * valprint.c (generic_val_print): Factor out array
4122 printing code to ...
4123 (generic_val_print_array): ... this new function.
4124
9f436164
SM
41252015-07-27 Simon Marchi <simon.marchi@ericsson.com>
4126
4127 * valprint.c (generic_val_print): Factor out
4128 print_unpacked_pointer code to ...
4129 (print_unpacked_pointer): ... this new function.
4130
077836f7
PP
41312015-07-27 Patrick Palka <patrick@parcs.ath.cx>
4132
4133 * event-top.c (handle_sigterm): Don't inspect
4134 target_can_async_p. Always set the quit flag and always mark
4135 the async signal handler.
4136
3a60804f
YQ
41372015-07-27 Yao Qi <yao.qi@linaro.org>
4138
4139 * Makefile.in (REMOTE_EXAMPLES): Remove it.
4140
c9f35b34
KB
41412015-07-25 Kevin Buettner <kevinb@redhat.com>
4142
4143 * remote.c (read_ptid): Return null_ptid when no thread id
4144 is found.
4145 (remote_current_thread): Add log warning for malformed
4146 qC reply.
4147 (remote_start_remote): Add log warning when current thread
4148 not found.
4149
2b4cab86
PA
41502015-07-24 Pedro Alves <palves@redhat.com>
4151
4152 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
4153 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
4154 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
4155
77598427
PA
41562015-07-24 Pedro Alves <palves@redhat.com>
4157
4158 PR gdb/18717
4159 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
4160 is resumed, and extend the debug log.
4161
fe23c31f
PA
41622015-07-24 Pedro Alves <palves@redhat.com>
4163
4164 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
4165
5826e159
PA
41662015-07-24 Pedro Alves <palves@redhat.com>
4167
4168 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
4169 sys/ptrace.h.
4170 * alpha-linux-nat.c: Likewise.
4171 * amd64-linux-nat.c: Likewise.
4172 * arm-linux-nat.c: Likewise.
4173 * hppa-linux-nat.c: Likewise.
4174 * i386-linux-nat.c: Likewise.
4175 * ia64-linux-nat.c: Likewise.
4176 * linux-fork.c: Likewise.
4177 * linux-nat.c: Likewise.
4178 * m32r-linux-nat.c: Likewise.
4179 * m68klinux-nat.c: Likewise.
4180 * mips-linux-nat.c: Likewise.
4181 * nat/linux-btrace.c: Likewise.
4182 * nat/linux-ptrace.c: Likewise.
4183 * nat/linux-ptrace.h
4184 * nat/mips-linux-watch.c: Likewise.
4185 * nat/x86-linux-dregs.c: Likewise.
4186 * ppc-linux-nat.c: Likewise.
4187 * s390-linux-nat.c: Likewise.
4188 * spu-linux-nat.c: Likewise.
4189 * tilegx-linux-nat.c: Likewise.
4190 * x86-linux-nat.c: Likewise.
4191 * xtensa-linux-nat.c: Likewise.
4192
54019719
PA
41932015-07-24 Pedro Alves <palves@redhat.com>
4194
4195 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
4196 __ptrace_request as first parameter type instead of int.
4197 (PTRACE_TYPE_ARG1): Define.
4198 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
4199 that casts first argument to PTRACE_TYPE_ARG1.
4200 * config.in: Regenerate.
4201 * configure: Regenerate.
4202
e3790375
PA
42032015-07-24 Pedro Alves <palves@redhat.com>
4204
4205 * gdb_ptrace.h: Move ...
4206 * nat/gdb_ptrace.h: ... here.
4207 * inf-ptrace.c: Adjust.
4208
eb7aa561
PA
42092015-07-24 Pedro Alves <palves@redhat.com>
4210
4211 * acinclude.m4: Include ptrace.m4.
4212 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
4213 * ptrace.m4: ... to this new file.
4214
cc12ce38
DE
42152015-07-23 Doug Evans <dje@google.com>
4216
4217 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
4218 (load_cu): Handle dummy CUs.
4219 (dw2_do_instantiate_symtab, process_queuef): Ditto.
4220 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
4221
7b849db4
CS
42222015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
4223
4224 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
4225 documentation to say that it returns a list rather than
4226 a FrozenSet.
4227 (linetable_object_methods): Update the docstring of the
4228 "source_line" entry.
4229
d0d84780
PMR
42302015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
4231
4232 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
4233 type to the recursive call instead of the original (maybe
4234 TYPE_CODE_TYPEDEF) type.
4235
c2fbdc59
YQ
42362015-07-23 Yao Qi <yao.qi@linaro.org>
4237
4238 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
4239 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
4240 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
4241
af1b22f3
YQ
42422015-07-21 Yao Qi <yao.qi@linaro.org>
4243
4244 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
4245 Move it to nat/aarch64-linux-hw-point.c.
4246 (aarch64_linux_child_post_startup_inferior): Update.
4247 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
4248 New function.
4249 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
4250 Declare it.
4251
40e050d2
MM
42522015-07-21 Markus Metzger <markus.t.metzger@intel.com>
4253
4254 * common/btrace-common.c (btrace_data_append): Change case label.
4255
3675a06a
YQ
42562015-07-20 Yao Qi <yao.qi@linaro.org>
4257
4258 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
4259 Re-indent the code.
4260 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
4261 "unsigned long long".
4262
b4e1fd61
KB
42632015-07-18 Kevin Buettner <kevinb@redhat.com>
4264
4265 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
4266 to be set for SEC_ALLOC sections too.
4267
554717a3
YQ
42682015-07-17 Yao Qi <yao.qi@linaro.org>
4269
4270 * Makefile.in (HFILES_NO_SRCDIR): Add
4271 nat/aarch64-linux-hw-point.h.
4272 (aarch64-linux-hw-point.o): New rule.
4273 * nat/aarch64-linux-hw-point.h: New file.
4274 * nat/aarch64-linux-hw-point.c: New file.
4275 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
4276 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
4277 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
4278 (AARCH64_HWP_ALIGNMENT): Likewise.
4279 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
4280 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
4281 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
4282 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
4283 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
4284 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
4285 (struct aarch64_debug_reg_state): Likewise.
4286 (struct arch_lwp_info): Likewise.
4287 (aarch64_linux_set_debug_regs): Likewise.
4288 (aarch64_notify_debug_reg_change): Remove static.
4289 (aarch64_align_watchpoint): Likewise.
4290 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
4291 (aarch64_watchpoint_length): Likewise.
4292 (aarch64_point_encode_ctrl_reg): Likewise
4293 (aarch64_point_is_aligned): Likewise.
4294 (aarch64_dr_state_insert_one_point): Likewise.
4295 (aarch64_dr_state_remove_one_point): Likewise.
4296 (aarch64_handle_breakpoint): Likewise.
4297 (aarch64_handle_aligned_watchpoint): Likewise.
4298 (aarch64_handle_unaligned_watchpoint): Likewise.
4299 (aarch64_handle_watchpoint): Likewise.
4300 * config/aarch64/linux.mh (NAT_FILE): Add
4301 aarch64-linux-hw-point.o.
4302
c67ca4de
YQ
43032015-07-17 Yao Qi <yao.qi@linaro.org>
4304
4305 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
4306 state and don't call aarch64_get_debug_reg_state. All callers
4307 update.
4308 (aarch64_linux_insert_hw_breakpoint): Call
4309 aarch64_get_debug_reg_state earlier.
4310 (aarch64_linux_remove_hw_breakpoint): Likewise.
4311 (aarch64_handle_aligned_watchpoint): Add argument state and
4312 don't call aarch64_get_debug_reg_state. All callers update.
4313 (aarch64_handle_unaligned_watchpoint): Likewise.
4314 (aarch64_handle_watchpoint): Add argument state.
4315 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
4316 earlier.
4317 (aarch64_linux_remove_watchpoint): Likewise.
4318
25abf979
YQ
43192015-07-17 Yao Qi <yao.qi@linaro.org>
4320
4321 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
4322 debug_printf.
4323 (aarch64_handle_unaligned_watchpoint): Likewise.
4324
2ecd81c2
YQ
43252015-07-17 Yao Qi <yao.qi@linaro.org>
4326
4327 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
4328 argument type's type to 'enum target_hw_bp_type'.
4329 (aarch64_dr_state_remove_one_point): Likewise.
4330 (aarch64_handle_breakpoint): Likewise.
4331 (aarch64_linux_insert_hw_breakpoint): Likewise.
4332 (aarch64_linux_remove_hw_breakpoint): Likewise.
4333 (aarch64_handle_aligned_watchpoint): Likewise.
4334
e53b6938
YQ
43352015-07-17 Yao Qi <yao.qi@linaro.org>
4336
4337 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
4338 ptid_get_pid instead of get_thread_id.
4339
6a49a997
YQ
43402015-07-17 Yao Qi <yao.qi@linaro.org>
4341
4342 * remote.c (get_current_thread): Initialise ptid to null_ptid.
4343 (add_current_inferior_and_thread): Don't initialise ptid.
4344
4bcddace
PL
43452015-07-16 Pierre Langlois <pierre.langlois@arm.com>
4346
4347 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
4348 unavailable if invalid.
4349
db1ff28b
JK
43502015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4351
4352 Revert the previous 6 commits:
4353 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
4354 Move gdb_regex* to common/
4355 Prepare linux_find_memory_regions_full & co. for move
4356 Move linux_find_memory_regions_full & co.
4357 gdbserver build-id attribute generator
4358 Validate symbol file using build-id
4359
ca5268b6
JK
43602015-07-15 Aleksandar Ristovski <aristovski@qnx.com
4361 Jan Kratochvil <jan.kratochvil@redhat.com>
4362
4363 Validate symbol file using build-id.
4364 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
4365 and 'show validate-build-id'. Add build-id attribute.
4366 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
4367 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
4368 * solib-frv.c (_initialize_frv_solib): Ditto.
4369 * solib-spu.c (set_spu_solib_ops): Ditto.
4370 * solib-svr4.c: Include rsp-low.h.
4371 (NOTE_GNU_BUILD_ID_NAME): New define.
4372 (svr4_validate): New function.
4373 (svr4_copy_library_list): Duplicate field build_id.
4374 (library_list_start_library): Parse 'build-id' attribute.
4375 (svr4_library_attributes): Add 'build-id' attribute.
4376 (_initialize_svr4_solib): Assign validate value.
4377 * solib-target.c (solib.h): Include.
4378 (_initialize_solib_target): Assign validate value.
4379 * solib.c (validate_build_id, show_validate_build_id): New.
4380 (solib_map_sections): Use ops->validate.
4381 (clear_so): Free build_id.
4382 (default_solib_validate): New function.
4383 (_initialize_solib): Add "validate-build-id".
4384 * solib.h (default_solib_validate): New declaration.
4385 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
4386 (target_so_ops): New field 'validate'.
4387
700ca40f
JK
43882015-07-15 Aleksandar Ristovski <aristovski@qnx.com
4389 Jan Kratochvil <jan.kratochvil@redhat.com>
4390
4391 gdbserver build-id attribute generator.
4392 * features/library-list-svr4.dtd (library-list-svr4): New
4393 'build-id' attribute.
4394
9904185c
JK
43952015-07-15 Aleksandar Ristovski <aristovski@qnx.com
4396 Jan Kratochvil <jan.kratochvil@redhat.com>
4397
4398 Move linux_find_memory_regions_full & co.
4399 * linux-tdep.c (nat/linux-maps.h): Include.
4400 (gdb_regex.h): Remove the include.
4401 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
4402 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
4403 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
4404 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
4405 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
4406 and target/target.h.
4407 (struct smaps_vmflags, read_mapping, decode_vmflags)
4408 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
4409 (linux_find_memory_regions_full): Move from linux-tdep.c.
4410 * nat/linux-maps.h (read_mapping): New declaration.
4411 (linux_find_memory_region_ftype, enum filterflags): Moved from
4412 linux-tdep.c.
4413 (linux_find_memory_regions_full): New declaration.
4414 * target.c (target/target-utils.h): Include.
4415 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
4416 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
4417 definitions to target/target-utils.c.
4418 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
4419 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
4420 from target.c.
4421 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
4422 (read_alloc): New declaration.
4423 (read_stralloc_func_ftype): New typedef.
4424 (read_stralloc): New declaration.
4425 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
4426
f7af1fcd
JK
44272015-07-15 Aleksandar Ristovski <aristovski@qnx.com
4428 Jan Kratochvil <jan.kratochvil@redhat.com>
4429
4430 Prepare linux_find_memory_regions_full & co. for move.
4431 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
4432 (linux_find_memory_regions_full): Change signature and prepare
4433 for moving to linux-maps.
4434 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
4435 (linux_find_memory_regions_thunk): New.
4436 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
4437 (linux_find_memory_regions_gdb): New.
4438 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
4439 (linux_make_mappings_corefile_notes): Use
4440 linux_find_memory_regions_gdb.
4441 * target.c (read_alloc_pread_ftype): New typedef.
4442 (target_fileio_read_alloc_1_pread): New function.
4443 (read_alloc): Refactor from target_fileio_read_alloc_1.
4444 (read_stralloc_func_ftype): New typedef.
4445 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
4446 (read_stralloc): Refactored from target_fileio_read_stralloc.
4447 (target_fileio_read_stralloc): New implementation, use read_stralloc.
4448
6e5b4429
JK
44492015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4450
4451 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
4452 common/gdb_regex.h.
4453 (COMMON_OBS): Add gdb_regex.o.
4454 (gdb_regex.o): New.
4455 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
4456 --without-included-regex and USE_INCLUDED_REGEX.
4457 * common/gdb_regex.c: New file from utils.c functions.
4458 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
4459 file wrapping define name.
4460 * configure: Rebuilt.
4461 * configure.ac (gdb_use_included_regex, --without-included-regex)
4462 (USE_INCLUDED_REGEX): Move them to common/common.m4.
4463 * gdb_regex.h: Move it to common/gdb_regex.h.
4464 * utils.c: Remove include gdb_regex.h.
4465 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
4466 (compile_rx_or_error): Move them to common/gdb_regex.c.
4467
ddc98fbf
JK
44682015-07-15 Aleksandar Ristovski <aristovski@qnx.com
4469 Jan Kratochvil <jan.kratochvil@redhat.com>
4470
4471 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
4472 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
4473 common/target-utils.h.
4474 (COMMON_OBS): Add target-utils.o.
4475 (linux-maps.o, target-utils.o): New.
4476 * target/target-utils.c: New file.
4477 * target/target-utils.h: New file.
4478 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
4479 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4480 * nat/linux-maps.c: New file.
4481 * nat/linux-maps.h: New file.
4482
e7b01ce0
MM
44832015-07-15 Markus Metzger <markus.t.metzger@intel.com>
4484 Pedro Alves <palves@redhat.com>
4485
4486 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
4487 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
4488 (perf_event_read_bts): Change the type of SIZE and READ.
4489 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
4490 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
4491 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
4492 mmap page.
4493 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
4494 buffer size to UINT_MAX.
4495 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
4496 DATA_TAIL.
4497 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
4498 <last_head>: Change type.
4499 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
4500 * common/btrace-common.c (btrace_data_append): Change the type of
4501 SIZE.
4502 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
4503 check.
4504
f168693b
SM
45052015-07-14 Simon Marchi <simon.marchi@ericsson.com>
4506
4507 * gdbtypes.h (CHECK_TYPEDEF): Remove.
4508 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
4509 with check_typedef.
4510 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
4511 (ada_array_length): Likewise.
4512 (find_parallel_type_by_descriptive_type): Likewise.
4513 (ada_check_typedef): Likewise.
4514 * arm-tdep.c (arm_return_in_memory): Likewise.
4515 * ax-gdb.c (gen_trace_static_fields): Likewise.
4516 (gen_struct_ref_recursive): Likewise.
4517 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
4518 (variable: block COLONCOLON name): Likewise.
4519 (qualified_name: TYPENAME COLONCOLON name): Likewise.
4520 * c-lang.c (classify_type): Likewise.
4521 * c-typeprint.c (c_print_type): Likewise.
4522 (c_print_typedef): Likewise.
4523 (c_type_print_base): Likewise.
4524 * c-valprint.c (c_val_print): Likewise.
4525 * compile/compile-c-types.c (convert_type): Likewise.
4526 * compile/compile-object-load.c (get_out_value_type): Likewise.
4527 * completer.c (add_struct_fields): Likewise.
4528 (expression_completer): Likewise.
4529 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
4530 (cp_lookup_nested_symbol_1): Likewise.
4531 (cp_lookup_nested_symbol): Likewise.
4532 * cp-valprint.c (cp_print_value_fields): Likewise.
4533 (cp_print_static_field): Likewise.
4534 * d-valprint.c (d_val_print): Likewise.
4535 * eval.c (evaluate_subexp_standard): Likewise.
4536 (evaluate_subexp_for_sizeof): Likewise.
4537 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
4538 * f-typeprint.c (f_type_print_base): Likewise.
4539 * f-valprint.c (f_val_print): Likewise.
4540 * gdbtypes.c (get_discrete_bounds): Likewise.
4541 (create_array_type_with_stride): Likewise.
4542 (type_name_no_tag_or_error): Likewise.
4543 (lookup_struct_elt_type): Likewise.
4544 (get_unsigned_type_max): Likewise.
4545 (internal_type_vptr_fieldno): Likewise.
4546 (set_type_vptr_fieldno): Likewise.
4547 (internal_type_vptr_basetype): Likewise.
4548 (set_type_vptr_basetype): Likewise.
4549 (get_vptr_fieldno): Likewise.
4550 (is_integral_type): Likewise.
4551 (is_scalar_type): Likewise.
4552 (is_scalar_type_recursive): Likewise.
4553 (distance_to_ancestor): Likewise.
4554 (is_unique_ancestor_worker): Likewise.
4555 (check_types_equal): Likewise.
4556 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
4557
45280282
IB
45582015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
4559
4560 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
4561 also test for language_d.
4562 (dwarf2_compute_name): Likewise.
4563 (read_func_scope): Likewise.
4564 (read_structure_type): Likewise.
4565 (new_symbol_full): Likewise.
4566 (determine_prefix): Likewise.
4567 (read_import_statement): Use dot as the separator for language_d.
4568 (typename_concat): Likewise, but don't prefix the D main function.
4569
99fe86f7
PB
45702015-07-14 Peter Bergner <bergner@vnet.ibm.com>
4571
4572 * nat/linux-namespaces.c (setns): Rename from this ...
4573 (do_setns): ... to this. Support calling setns if it exists.
4574 (mnsh_handle_setns): Call do_setns.
4575
d5131498
YQ
45762015-07-13 Yao Qi <yao.qi@linaro.org>
4577
4578 * exec.c (exec_file_attach): Add period at the end of error
4579 message.
4580
97605e61
AB
45812015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
4582
4583 * tui/tui-win.c (window_name_completer): New function.
4584 (focus_completer): Call window_name_completer. All old content
4585 moved into window_name_completer.
4586 (winheight_completer): New function.
4587 (_initialize_tui_win): Rename variable. Add completer to
4588 winheight command. Update doc string on winheight.
4589
8d6dbeb4
SL
45902015-07-12 Sandra Loosemore <sandra@codesourcery.com>
4591
4592 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
4593 all nios2 mach variants.
4594
a0e28e54
KB
45952015-07-10 Kevin Buettner <kevinb@redhat.com>
4596
4597 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
4598 of target_read_memory.
4599
c101f28f
AB
46002015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4601
4602 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
4603 string copy.
4604 (parse_scrolling_args): Likewise.
4605
150375dc
AB
46062015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4607
4608 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
4609 names in this function.
4610
6dce28e4
AB
46112015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
4612
4613 * tui/tui-data.h (SRC_NAME): Convert to lower case.
4614 (CMD_NAME): Likewise.
4615 (DATA_NAME): Likewise.
4616 (DISASSEM_NAME): Likewise.
4617 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
4618 (tui_set_win_height): Likewise.
4619 (parse_scrolling_args): Likewise.
4620
485668e5
MM
46212015-07-10 Markus Metzger <markus.t.metzger@intel.com>
4622
4623 * record-btrace.c (record_btrace_goto_begin)
4624 (record_btrace_goto_end, record_btrace_goto): Move call to
4625 print_stack_frame ...
4626 (record_btrace_set_replay): ... here. Set stop_pc.
4627 * record-full.c (record_full_goto_entry): Set stop_pc.
4628
58d2eda5
PL
46292015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4630
4631 * NEWS: Mention support for tracepoints on aarch64-linux.
4632
7671bf47
PL
46332015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4634
4635 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
4636 function. Return 1.
4637 (the_low_target): Install it.
4638
7890fb45
PL
46392015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4640
4641 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
4642 * gdb.trace/collection.exp: Likewise.
4643 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
4644 * gdb.trace/mi-trace-unavailable.exp: Likewise.
4645 * gdb.trace/report.exp: Likewise.
4646 * gdb.trace/trace-break.exp: Likewise.
4647 * gdb.trace/unavailable.exp: Likewise.
4648 * gdb.trace/while-dyn.exp: Likewise.
4649
ea873d8e
PL
46502015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4651
4652 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
4653 (aarch64_gen_return_address): New function.
4654 (aarch64_gdbarch_init): Hook it.
4655
02a2a705
PL
46562015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4657
4658 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
4659 swallow NOT_AVAILABLE_ERROR.
4660 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
4661 available_p is not set.
4662 (aarch64_stub_frame_unwind_stop_reason): New function.
4663 (aarch64_stub_unwind): Install it.
4664
7dfa3edc
PL
46652015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4666
4667 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
4668 field.
4669 (aarch64_make_prologue_cache_1): New function, factored out from
4670 aarch64_make_prologue_cache. Do not allocate cache. Set
4671 available_p.
4672 (aarch64_make_prologue_cache): Reimplement wrapping
4673 aarch64_make_prologue_cache_1, and swallowing
4674 NOT_AVAILABLE_ERROR.
4675 (aarch64_prologue_frame_unwind_stop_reason): New function.
4676 Return UNWIND_UNAVAILABLE if available_p is not set.
4677 (aarch64_prologue_unwind): Install it.
4678 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
4679 checks into aarch64_prologue_frame_unwind_stop_reason. Call
4680 frame_id_build_unavailable_stack if available_p is not set.
4681
db634143
PL
46822015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4683
4684 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
4685 fields.
4686 (aarch64_scan_prologue): Set prev_pc.
4687 (aarch64_make_prologue_cache): Set func.
4688 (aarch64_make_stub_cache): Set prev_pc.
4689 (aarch64_prologue_this_id): Remove local variables id, pc and
4690 func. Read prev_pc and func from cache.
4691 (aarch64_stub_this_id): Read prev_pc from cache.
4692
8b61f75d
PL
46932015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4694
4695 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
4696 argument this_cache. Remove unused local variables reg and
4697 unwound_fp. Return early if this_cache is already set. Set
4698 this_cache.
4699 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
4700
7c8edfae
PL
47012015-07-09 Pierre Langlois <pierre.langlois@arm.com>
4702
4703 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
4704 New argument this_cache. Return early if this_cache is already
4705 set. Set this_cache.
4706 (aarch64_prologue_this_id): Update call to
4707 aarch64_make_prologue_cache.
4708 (aarch64_prologue_prev_register): Likewise.
4709 (aarch64_normal_frame_base): Likewise.
4710
938c69a1
SM
47112015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4712
4713 * c-valprint.c (c_val_print): Factor out memberptr printing code
4714 from c_val_print to ...
4715 (c_val_print_memberptr): ... this new function.
4716
49f7fe28
SM
47172015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4718
4719 * c-valprint.c (c_val_print): Factor out int printing code to ...
4720 (c_val_print_int): ... this new function.
4721
9e4f353c
SM
47222015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4723
4724 * c-valprint.c (c_val_print): Factor out struct and union
4725 printing code to ...
4726 (c_val_print_struct): ... this new function ...
4727 (c_val_print_union): ... and this new function.
4728
1c67f032
SM
47292015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4730
4731 * c-valprint.c (c_val_print): Factor out pointer printing code
4732 to ...
4733 (c_val_print_ptr): ... this new function.
4734
0b6ef777
SM
47352015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4736
4737 * c-valprint.c (c_valprint): Factor our array printing code from
4738 c_val_print to ...
4739 (c_val_print_array): ... this new function.
4740
1033c33c
SM
47412015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4742
4743 * c-valprint.c (c_val_print): Factor out pointer printing code
4744 to ...
4745 (print_unpacked_pointer): ... this new function.
4746
f6b93c34
SM
47472015-07-09 Simon Marchi <simon.marchi@ericsson.com>
4748
4749 * c-valprint.c (c_val_print): Remove an assignment to i and move
4750 its declaration.
4751
0f4576e3
YQ
47522015-07-09 Yao Qi <yao.qi@linaro.org>
4753
4754 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
4755 argument ptid. Update comments. Caller update.
4756
37fdfe4c
MM
47572015-07-09 Markus Metzger <markus.t.metzger@intel.com>
4758
4759 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
4760 mnt packets.
4761
80a2b330
MM
47622015-07-09 Markus Metzger <markus.t.metzger@intel.com>
4763
4764 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
4765
4ab31498
SM
47662015-07-08 Simon Marchi <simon.marchi@ericsson.com>
4767
4768 * progspace.c (delete_program_space): Add missing spaces.
4769
7a41607e
SM
47702015-07-08 Simon Marchi <simon.marchi@ericsson.com>
4771
4772 * inferior.c (delete_inferior_1): Rename to ...
4773 (delete_inferior): ..., remove 'silent' parameter, delete
4774 program space when unused and remove call to prune_program_spaces.
4775 Remove the old, unused, delete_inferior.
4776 (delete_inferior_silent): Remove.
4777 (prune_inferiors): Change call from delete_inferior_1 to
4778 delete_inferior and remove 'silent' parameter. Remove call to
4779 prune_program_spaces.
4780 (remove_inferior_command): Idem.
4781 * inferior.h (delete_inferior_1): Rename to...
4782 (delete_inferior): ..., remove 'silent' parameter and remove the
4783 original delete_inferior.
4784 (delete_inferior_silent): Remove.
4785 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
4786 delete_inferior_1 to delete_inferior and remove 'silent'
4787 parameter.
4788 * progspace.c (prune_program_spaces): Remove.
4789 (pspace_empty_p): Rename to...
4790 (program_space_empty_p): ... and make non-static.
4791 (delete_program_space): New.
4792 * progspace.h (prune_program_spaces): Remove declaration.
4793 (program_space_empty_p): New declaration.
4794 (delete_program_space): New declaration.
4795 * monitor.c (monitor_close): Replace call to
4796 delete_thread_silent and delete_inferior_silent with
4797 discard_all_inferiors.
4798
a9bd710f
PP
47992015-07-08 Patrick Palka <patrick@parcs.ath.cx>
4800
4801 * defs.h (deprecated_register_changed_hook): Remove prototype.
4802 * interps.c (clear_iterpreter_hooks): Remove reference to
4803 deprecated_register_changed_hook.
4804 * top.c (deprecated_register_changed_hook): Remove prototype.
4805 * valops.c (value_assign): Remove reference to
4806 deprecated_register_changed_hook.
4807 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
4808 Add comment documenting the function.
4809 (tui_register_changed_observer): Define.
4810 (tui_install_hooks): Remove reference to
4811 deprecated_register_changed_hook. Set
4812 tui_register_changed_observer.
4813 (tui_remove_hooks): Remove reference to
4814 deprecated_register_changed_hook. Unset
4815 tui_register_changed_observer.
4816
08464196
JK
48172015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4818
4819 PR compile/18484
4820 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
4821
bcf5c1d9
RC
48222015-07-08 Robert O'Callahan <robert@ocallahan.org>
4823
4824 PR exp/18617
4825 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
4826
e8643a45
MM
48272015-07-08 Markus Metzger <markus.t.metzger@intel.com>
4828
4829 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
4830
76fb6829
MM
48312015-07-08 Markus Metzger <markus.t.metzger@intel.com>
4832
4833 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
4834 Use safe_strerror() instead of strerror().
4835
82c40d4b
YQ
48362015-07-07 Yao Qi <yao.qi@linaro.org>
4837
4838 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
4839 * features/arm-with-m-fpa-layout.c: Regenerated.
4840 * features/arm-with-m-vfp-d16.xml: Likewise.
4841 * features/arm-with-m-vfp-d16.c: Regenerated.
4842 * features/arm-with-m.xml: Likewise.
4843 * features/arm-with-m.c: Regenerated.
4844 * features/arm-with-neon.xml: Likewise.
4845 * features/arm-with-neon.c: Regenerated.
4846 * features/arm-with-vfpv2.xml: Likewise.
4847 * features/arm-with-vfpv2.c: Regenerated.
4848 * features/arm-with-vfpv3.xml: Likewise.
4849 * features/arm-with-vfpv3.c: Regenerated.
4850
607685ec
YQ
48512015-07-07 Yao Qi <yao.qi@linaro.org>
4852
4853 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
4854 arm-linux-nat.c.
4855 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
4856 elf/external.h.
4857 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
4858 if target is 32-bit.
4859 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
4860 if target is 32-bit.
4861 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
4862 if target is 32-bit.
4863 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
4864 if target is 32-bit.
4865 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
4866 (aarch64_linux_read_description): Return the right target
4867 description.
4868 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
4869 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4870 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
4871 arm-linux-tdep.o.
4872
f1b67888
YQ
48732015-07-07 Yao Qi <yao.qi@linaro.org>
4874
4875 * aarch32-linux-nat.c: New file.
4876 * aarch32-linux-nat.h: New file.
4877 * arm-linux-nat.c: Include aarch32-linux-nat.h.
4878 (fetch_regs): Move code to aarch32-linux-nat.c. Call
4879 aarch32_gp_regcache_supply.
4880 (store_regs): Move code to aarch32-linux-nat.c. Call
4881 aarch32_gp_regcache_collect.
4882 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
4883 aarch32_vfp_regcache_supply.
4884 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
4885 aarch32_vfp_regcache_collect.
4886 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
4887
179bfe82
YQ
48882015-07-07 Yao Qi <yao.qi@linaro.org>
4889
4890 * arm-linux-nat.c (store_fpregister): Remove.
4891 (store_register): Likewise.
4892 (fetch_fpregister): Likewise.
4893 (fetch_register): Likewise.
4894 (arm_linux_store_inferior_registers): Call store_regs and
4895 store_fpregs instead.
4896 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
4897 fetch_regs instead.
4898
6008fc5f
AB
48992015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4900
4901 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
4902 and focus commands.
4903
7c79d316
JB
49042015-07-06 Joel Brobecker <brobecker@adacore.com>
4905
4906 * NEWS: Create a new section for the next release branch.
4907 Rename the section of the current branch, now that it has
4908 been cut.
4909
f2232bea
JB
49102015-07-06 Joel Brobecker <brobecker@adacore.com>
4911
4912 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
4913 * version.in: Bump version to 7.10.50.DATE-cvs.
4914
66c4b3e8
LM
49152015-07-06 Luis Machado <lgustavo@codesourcery.com>
4916
4917 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
4918 breakpoints in a special way.
4919 (remove_breakpoint): Likewise.
4920 (mark_breakpoints_out): Likewise.
4921
bcd8537c
AB
49222015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4923
4924 * doc/gdb.texinfo (TUI): Add comma after @xref.
4925
10e9aaa3
AB
49262015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4927
4928 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
4929 instead of casting the structure type.
4930
8a13d42d
SM
49312015-07-06 Simon Marchi <simon.marchi@ericsson.com>
4932
4933 * valops.c (search_struct_field): Remove OFFSET parameter.
4934 (value_cast_structs): Adjust calls to search_struct_field.
4935 (value_struct_elt): Same.
4936 (find_overload_match): Same.
4937
a844296a
SM
49382015-07-06 Simon Marchi <simon.marchi@ericsson.com>
4939
4940 * value.c (value_fetch_lazy): Update comment, change return
4941 value to void.
4942 * value.h (value_fetch_lazy): Change return value to void.
4943
f41cbf58
AB
49442015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
4945
4946 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
4947 (tui_win_name): Make parameter and result const.
4948 * tui/tui-data.h (tui_win_name): Make parameter and result const.
4949
118ca224
PP
49502015-07-06 Patrick Palka <patrick@parcs.ath.cx>
4951
4952 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
4953 use printf_unfiltered.
4954 (set_mpx_cmd): Add missing trailing space to command string
4955 literal.
4956 (_initialize_i386_tdep): Give the "mpx" prefix command its
4957 correct name.
4958
1b485e67
KB
49592015-07-02 Kevin Buettner <kevinb@redhat.com>
4960
4961 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
4962 (enum rx_frame_type): New.
4963 (struct rx_prologue): Add new field `frame_type'.
4964 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
4965 parameter in the prologue struct. Add code for recording
4966 locations of PC and PSW for fast interrupt and exception frames.
4967 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
4968 (rx_analyze_frame_prologue): Add `frame_type' parameter.
4969 (rx_frame_type): New function.
4970 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
4971 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
4972 `this_cache'.
4973 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 4974 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
4975 RX_FRAME_TYPE_FAST_INTERRUPT.
4976 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
4977 (rx_frame_sniffer, rx_exception_sniffer): New functions.
4978 (rx_frame_unwind): Use rx_frame_sniffer instead of
4979 default_frame_sniffer.
4980 (rx_frame_unwind): New unwinder.
4981 (rx_gdbarch_init): Register new unwinder.
4982
0561fea4
KB
49832015-07-02 Kevin Buettner <kevinb@redhat.com>
4984
4985 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
4986 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
4987 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
4988 and RX_FPSW_REGNUM.
4989 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
4990
decf8d9a
JK
49912015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4992
4993 Fix GCC false warning.
4994 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
4995
2fd0f80d
YQ
49962015-07-02 Yao Qi <yao.qi@linaro.org>
4997
4998 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
4999 typo in the debugging message.
5000
b0627500
MM
50012015-07-02 Markus Metzger <markus.t.metzger@intel.com>
5002
5003 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
5004 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
5005 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
5006 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
5007 (btrace_maint_clear): New.
5008 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
5009 (pt_print_packet, btrace_maint_decode_pt)
5010 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
5011 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
5012 (maint_btrace_packet_history_cmd)
5013 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
5014 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
5015 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
5016 (maint_info_btrace_cmd, _initialize_btrace): New.
5017 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
5018 (btrace_maint_packet_history, btrace_maint_info): New.
5019 (btrace_thread_info) <maint>: New.
5020 * NEWS: Announce it.
5021
9be54cae
MM
50222015-07-02 Markus Metzger <markus.t.metzger@intel.com>
5023
5024 * btrace.c (btrace_fetch): Append the new trace data.
5025 (btrace_clear): Clear the stored trace data.
5026 * btrace.h (btrace_thread_info) <data>: New.
5027 * common/btrace-common.h (btrace_data_clear)
5028 (btrace_data_append): New.
5029 * common/btrace-common.c (btrace_data_clear)
5030 (btrace_data_append): New.
5031
010a18a1
MM
50322015-07-02 Markus Metzger <markus.t.metzger@intel.com>
5033
5034 * nat/linux-btrace.c (linux_enable_bts): Check for
5035 PERF_ATTR_SIZE_VER5.
5036 Check for data_offset and data_size fields. Use them.
5037
b20a6524
MM
50382015-07-02 Markus Metzger <markus.t.metzger@intel.com>
5039
5040 * NEWS: Announce new commands "record btrace pt" and "record pt".
5041 Announce new options "set|show record btrace pt buffer-size".
5042 * btrace.c: Include "rsp-low.h".
5043 Include "inttypes.h".
5044 (btrace_add_pc): Add forward declaration.
5045 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
5046 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
5047 (btrace_compute_ftrace_pt): New.
5048 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
5049 (check_xml_btrace_version): Update version check.
5050 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
5051 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
5052 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
5053 (btrace_pt_children): New.
5054 (btrace_children): Add support for "pt".
5055 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
5056 (btrace_conf_children): Add support for "pt".
5057 * btrace.h: Include "intel-pt.h".
5058 (btrace_pt_error): New.
5059 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
5060 (btrace_data_empty): Support BTRACE_FORMAT_PT.
5061 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
5062 (struct btrace_config_pt): New.
5063 (struct btrace_config)<pt>: New.
5064 (struct btrace_data_pt_config, struct btrace_data_pt): New.
5065 (struct btrace_data)<pt>: New.
5066 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
5067 (pt): New.
5068 * features/btrace.dtd (btrace)<pt>: New.
5069 (pt, pt-config, cpu): New.
5070 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
5071 (perf_event_pt_event_type, kernel_supports_pt)
5072 (linux_supports_pt): New.
5073 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
5074 (linux_enable_bts): Free tinfo on error.
5075 (linux_enable_pt): New.
5076 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
5077 (linux_disable_pt): New.
5078 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
5079 (linux_fill_btrace_pt_config, linux_read_pt): New.
5080 (linux_read_btrace): Support BTRACE_FORMAT_PT.
5081 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
5082 (struct btrace_target_info)<pt>: New.
5083 * record-btrace.c (set_record_btrace_pt_cmdlist)
5084 (show_record_btrace_pt_cmdlist): New.
5085 (record_btrace_print_pt_conf): New.
5086 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
5087 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
5088 (cmd_record_btrace_pt_start): New.
5089 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
5090 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
5091 (_initialize_record_btrace): Add new commands.
5092 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
5093 (remote_protocol_features): Add "Qbtrace:pt".
5094 Add "Qbtrace-conf:pt:size".
5095 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
5096 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
5097 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
5098 (_initialize_remote): Add new commands.
5099
58bfce93
MM
51002015-07-02 Markus Metzger <markus.t.metzger@intel.com>
5101
5102 * configure.ac: check for libipt
5103 * configure: Regenerate.
5104 * config.in: Regenerate.
5105 * Makefile.in (LIBIPT): New.
5106 (CLIBS): Add $LIBIPT.
5107 * NEWS: document new configure options
5108
b0fd6b30
JK
51092015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5110
5111 * compile/compile-object-load.c (compile_object_load): Replace debug
5112 message "lookup undefined ELF symbol" by 3 more specific messages.
5113
e6280369
KB
51142015-07-01 Kevin Buettner <kevinb@redhat.com>
5115
5116 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
5117 (rl78_register_type): Add case for RL78_PSW_REGNUM.
5118 (rl78_gdbarch_init): Initialize rl78_psw_type.
5119
bbcbf914
PP
51202015-07-01 Patrick Palka <patrick@parcs.ath.cx>
5121
5122 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
5123 Update commentary. Always refresh the registers when frame
5124 information has changed.
5125 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
5126 Change return type to int. Return 1 if frame information has
5127 changed, 0 otherwise.
5128 (tui_before_prompt): Update commentary.
5129 * tui/tui-stack.h (tui_show_frame_info): Change return type to
5130 int.
5131
0986c744
PP
51322015-06-30 Patrick Palka <patrick@parcs.ath.cx>
5133
5134 PR tui/13378
5135 * frame.c (select_frame): Remove reference to
5136 deprecated_selected_frame_level_changed_hook.
5137 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
5138 declaration.
5139 * stack.c (deprecated_selected_frame_level_changed_hook):
5140 Likewise.
5141 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
5142 Rename to ...
5143 (tui_refresh_frame_and_register_information): ... this. Bail
5144 out if there is no stack. Don't update register information
5145 unless registers_too_p is true.
5146 (tui_print_frame_info_listing_hook): Rename to ...
5147 (tui_dummy_print_frame_info_listing_hook): ... this.
5148 (tui_before_prompt): New function.
5149 (tui_normal_stop): New function.
5150 (tui_before_prompt_observer): New observer.
5151 (tui_normal_stop_observer): New observer.
5152 (tui_install_hooks): Set
5153 deprecated_print_frame_info_listing_hook to
5154 tui_dummy_print_frame_info_listing_hook. Register
5155 tui_before_prompt_observer to call tui_before_prompt and
5156 tui_normal_stop_observer to call tui_normal_stop. Remove
5157 reference to deprecated_selected_frame_level_changed_hook.
5158 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
5159 and tui_normal_stop_observer. Remove reference to
5160 deprecated_selected_frame_level_changed_hook.
5161
b5fca6d7
PP
51622015-06-30 Patrick Palka <patrick@parcs.ath.cx>
5163
5164 PR tui/13378
5165 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
5166 return an int instead of void. Return whether the locator
5167 window has changed.
5168 (tui_show_frame_info): If the locator info has not changed, then
5169 bail out early to avoid refreshing the windows.
5170
c45613e3
PP
51712015-06-30 Patrick Palka <patrick@parcs.ath.cx>
5172
5173 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
5174 LOCATOR_WIN to tui_alloc_content.
5175
7b9be803
YQ
51762015-06-30 Yao Qi <yao.qi@linaro.org>
5177
5178 PR tdep/18605
5179 * arm-tdep.c (arm_get_next_pc_raw): Break for media
5180 instructions.
5181
fd6e021d
KB
51822015-06-29 Kevin Buettner <kevinb@redhat.com>
5183
78ab7e9d
KB
5184 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
5185 (rx_dwarf_reg_to_regnum): New function.
5186 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
5187 unwinding.
fd6e021d 5188
28bf096c
PA
51892015-06-29 Pedro Alves <palves@redhat.com>
5190
5191 PR threads/18127
5192 * infcall.c (run_inferior_call): On infcall success, if the thread
5193 was marked stopped before, reset it back to stopped.
5194 * infrun.c (resume): Don't suppress the set_running calls when
5195 doing an infcall.
5196 (normal_stop): Only discard the finish_thread_state cleanup if the
5197 infcall succeeded.
5198
2880b51c 51992015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
5200
5201 * MAINTAINERS (Write After Approval): Update my email address.
5202
ee93cd5e
KS
52032015-06-26 Keith Seitz <keiths@redhat.com>
5204 Doug Evans <dje@google.com>
5205
5206 PR 16253
5207 * block.c (block_lookup_symbol): For non-function blocks,
5208 continue to search for a symbol with an exact domain match
5209 Otherwise, return any previously found "best domain" symbol.
5210 (block_lookup_symbol_primary): Likewise.
5211
fc637f04
PP
52122015-06-26 Patrick Palka <patrick@parcs.ath.cx>
5213
5214 * NEWS: Mention the new option "history remove-duplicates".
5215 * top.c (history_remove_duplicates): New static variable.
5216 (show_history_remove_duplicates): New static function.
5217 (gdb_add_history): Conditionally remove duplicate history
5218 entries.
5219 (init_main): Add "history remove-duplicates" option.
5220
2e52ae68
PP
52212015-06-26 Patrick Palka <patrick@parcs.ath.cx>
5222
5223 * tui/tui-win.c (focus_completer): New static function.
5224 (_initialize_tui_win): Set the completion function of the
5225 "focus" command to focus_completer.
5226
6e22494e
JK
52272015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5228
5229 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
5230 and language_asm..
5231 * symtab.c (find_function_start_sal): Likewise.
5232
f8773be1
GB
52332015-06-25 Gary Benson <gbenson@redhat.com>
5234
5235 * solib.c (solib_find_1): Set local variable sysroot to NULL if
5236 it is the empty string after trailing slashes have been stripped.
5237
a3be80c3
GB
52382015-06-25 Gary Benson <gbenson@redhat.com>
5239
5240 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
5241 * infrun.c (follow_exec): Likewise.
5242 * remote.c (remote_filesystem_is_local): Likewise.
5243 * solib.c (solib_find_1): Likewise.
5244
32fad71f
KS
52452015-06-24 Keith Seitz <keiths@redhat.com>
5246
5247 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
5248 return value from lrealpath.
5249
87d1b309
MF
52502015-06-24 Mike Frysinger <vapier@gentoo.org>
5251
5252 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
5253
23bf70af
MF
52542015-06-24 Mike Frysinger <vapier@gentoo.org>
5255
5256 * remote-sim.c: Include gdb_bfd.h.
5257 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
5258 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
5259
5cd867b4
YQ
52602015-06-24 Yao Qi <yao.qi@linaro.org>
5261
5262 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
5263 set_gdbarch_get_siginfo_type.
5264 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
5265 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5266 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5267 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
5268 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
5269 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5270 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
5271 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
5272 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
5273 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
5274
dc06243f
GB
52752015-06-24 Gary Benson <gbenson@redhat.com>
5276
5277 * common/buffer.c (stdint.h): Do not include.
5278 * common/print-utils.c (stdint.h): Likewise.
5279 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
5280 * compile/compile-c-types.c (gdb_assert.h): Likewise.
5281 * ft32-tdep.c (gdb_assert.h): Likewise.
5282 * guile/scm-utils.c (stdint.h): Likewise.
5283 * i386-linux-tdep.c (stdint.h): Likewise.
5284 * i386-tdep.c (stdint.h): Likewise.
5285 * nat/linux-btrace.c (stdint.h): Likewise.
5286 * nat/linux-btrace.h (stdint.h): Likewise.
5287 * nat/linux-ptrace.c (stdint.h): Likewise.
5288 * nat/mips-linux-watch.h (stdint.h): Likewise.
5289 * ppc-linux-nat.c (stdint.h): Likewise.
5290 * python/python-internal.h (stdint.h): Likewise.
5291 * stub-termcap.c (stdlib.h): Likewise.
5292 * target/target.h (stdint.h): Likewise.
5293 * xtensa-linux-nat.c (stdint.h): Likewise.
5294
0fc26caf
PP
52952015-06-23 Patrick Palka <patrick@parcs.ath.cx>
5296
5297 * top.c (init_history): Look at errno after calling strtol to
5298 properly map large GDBHISTSIZE values to infinity.
5299
a38fe4fe
DE
53002015-06-23 Doug Evans <dje@google.com>
5301
5302 * inferior.h (struct inferior_suspend_state): Delete, unused.
5303 All references deleted.
5304
7564fe45
MF
53052015-06-23 Mike Frysinger <vapier@gentoo.org>
5306
5307 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
5308 (microblaze_push_dummy_call): Likewise.
5309 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
5310 and set_gdbarch_push_dummy_call.
5311
0bdb2f78
YQ
53122015-06-23 Yao Qi <yao.qi@linaro.org>
5313
5314 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
5315 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
5316 (amd64_linux_store_inferior_registers): Likewise.
5317 * arm-linux-nat.c (fetch_fpregister): Likewise.
5318 (fetch_fpregs, store_fpregister): Likewise.
5319 (store_fpregister, store_fpregs): Likewise.
5320 (fetch_register, fetch_regs): Likewise.
5321 (store_register, store_regs): Likewise.
5322 (fetch_vfp_regs, store_vfp_regs): Likewise.
5323 (arm_linux_read_description): Check have_ptrace_getregset is
5324 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
5325 or TRIBOOL_FALSE.
5326 * i386-linux-nat.c (fetch_xstateregs): Check
5327 have_ptrace_getregset is not TRIBOOL_TRUE.
5328 (store_xstateregs): Likewise.
5329 * linux-nat.c (have_ptrace_getregset): Change its type to
5330 enum tribool.
5331 * linux-nat.h (tribool): New enum.
5332 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
5333 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
5334
18a94d75
DE
53352015-06-19 Doug Evans <dje@google.com>
5336
5337 * NEWS: Mention Sun's version of stabs is no longer supported.
5338 * elfread.c (free_elfinfo): Delete. All uses updated.
5339 (elfstab_offset_sections): Delete. All uses updated.
5340 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
5341 * psympriv.h (partial_symtab) <section_offsets>: Delete.
5342 All uses updated.
5343 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
5344 All callers updated.
5345
124e13d9
SM
53462015-06-18 Simon Marchi <simon.marchi@ericsson.com>
5347
5348 * common/rsp-low.c (needs_escaping): New.
5349 (remote_escape_output): Add unit_size parameter. Refactor to
5350 support multi-byte addressable units. Rename parameters.
5351 * common/rsp-low.h (remote_escape_output): Add unit_size
5352 parameter and rename others. Update doc.
5353 * remote.c (align_for_efficient_write): New.
5354 (remote_write_bytes_aux): Add unit_size parameter and use it.
5355 Rename some variables. Update doc.
5356 (remote_xfer_partial): Get unit size and use it.
5357 (remote_read_bytes_1): Add unit_size parameter and use it.
5358 Rename some variables. Update doc.
5359 (remote_write_bytes): Same.
5360 (remote_xfer_live_readonly_partial): Same.
5361 (remote_read_bytes): Same.
5362 (remote_flash_write): Update call to remote_write_bytes_aux.
5363 (remote_write_qxfer): Update call to remote_escape_output.
5364 (remote_search_memory): Same.
5365 (remote_hostio_pwrite): Same.
5366
6ae88661
LM
53672015-06-17 Luis Machado <lgustavo@codesourcery.com>
5368
5369 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
5370 locations as inserted.
5371 Update and expand comment about permanent locations.
5372 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
5373 Move comment to add_location_to_breakpoint.
5374 (update_global_location_list): Don't error out if a permanent
5375 breakpoint is not marked inserted.
5376 Don't error out if a non-permanent breakpoint location is inserted on
5377 top of a permanent breakpoint.
5378
da4616f6
LM
53792015-06-17 Luis Machado <lgustavo@codesourcery.com>
5380
5381 * breakpoint.c (make_breakpoint_permanent): Remove unused
5382 function.
5383 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
5384
bc460514
PP
53852015-06-17 Patrick Palka <patrick@parcs.ath.cx>
5386
5387 PR gdb/16999
5388 * NEWS: Mention new GDBHISTSIZE behavior.
5389 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
5390 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
5391
b58c513b
PP
53922015-06-17 Patrick Palka <patrick@parcs.ath.cx>
5393
5394 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
5395 * top.c (init_history): Read from GDBHISTSIZE instead of
5396 HISTSIZE.
5397 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
5398
2093d2d3
PP
53992015-06-17 Patrick Palka <patrick@parcs.ath.cx>
5400
5401 * top.c (gdb_safe_append_history): Do not call
5402 history_truncate_file if the history is not stifled.
5403
fc248485
AA
54042015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
5405
5406 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
5407 * syscalls/s390x-linux.xml: Likewise.
5408
4da680ad
ME
54092015-06-16 Michael Eager <eager@eagercon.com>
5410
5411 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
5412
0a75489f
PP
54132015-06-16 Patrick Palka <patrick@parcs.ath.cx>
5414
5415 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
5416 target_terminal_ours_for_output() before calling
5417 tui_show_frame_info(), and restore the original terminal
5418 settings afterwards.
5419
95855ca8
MS
54202015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
5421
5422 * arm-linux-nat.c: Include nat/linux-ptrace.h.
5423
cfc32360
SM
54242015-06-15 Simon Marchi <simon.marchi@ericsson.com>
5425
5426 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
5427 memory unit size.
5428 (mi_cmd_data_write_memory_bytes): Same.
5429
cb6f16cf
SM
54302015-06-15 Simon Marchi <simon.marchi@ericsson.com>
5431
5432 * corefile.c (write_memory): Update doc.
5433 * gdbcore.h (write_memory): Same.
5434
31b7833d
JK
54352015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5436
5437 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
5438 (dump_mapping_p): Use it for parameter filterflags.
5439 (linux_find_memory_regions_full): Use it for variable filterflags.
5440
909c2cda
JK
54412015-06-15 Aleksandar Ristovski <aristovski@qnx.com
5442 Jan Kratochvil <jan.kratochvil@redhat.com>
5443
5444 Merge multiple hex conversions.
5445 * monitor.c: Include rsp-low.h.
5446 (fromhex): Remove definition.
5447
03aef70f
JK
54482015-06-15 Aleksandar Ristovski <aristovski@qnx.com
5449 Jan Kratochvil <jan.kratochvil@redhat.com>
5450
5451 Move utility functions to common/.
5452 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
5453 Move defs to common/common-utils.c.
5454 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
5455 (skip_to_space_const): Move decls to common/common-utils.h.
5456 * common/common-defs.h: Move include of common-types.h before
5457 common-utils.h.
5458 * common/common-utils.c: Include host-defs.h and ctype.h.
5459 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
5460 from utils.c.
5461 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
5462 cli/cli-utils.c.
5463 * common/common-utils.h (strtoulst): Move decl from utils.h.
5464 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
5465 Move from cli/cli-utils.h.
5466 * common/host-defs.h: Include limits.h.
5467 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
5468 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
5469 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
5470 common/common-utils.h.
5471 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
5472 (strtoulst): Move to common/common-utils.c.
5473 * utils.h (strtoulst): Moved decl to common/common-utils.h.
5474
d1168cc1
YQ
54752015-06-15 Yao Qi <yao.qi@linaro.org>
5476
5477 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
5478
c74f7d1c
JT
54792015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
5480
5481 * build-id.c: Don't include elf-bfd.h.
5482 (build_id_bfd_get): Use bfd_build_id.
5483 (build_id_verify): Ditto.
5484 * build-id.h: Ditto.
5485 (find_separate_debug_file_by_buildid): Ditto.
5486 * python/py-objfile.c: Don't include elf-bfd.h.
5487 (objfpy_get_build_id) Use bfd_build_id.
5488 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
5489 * coffread.c: Include build-id.h.
5490 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
5491
f20c58f5
JT
54922015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5493
5494 * windows-nat.c (do_windows_fetch_inferior_registers)
5495 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
5496 conditional with __CYGWIN__.
5497
51f0e40d
AB
54982015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
5499
5500 * completer.c: Add arch-utils.h include.
5501 (enum reg_completer_targets): New enum.
5502 (reg_or_group_completer_1): New function containing old
5503 reg_or_group_completer, add and use new parameter to control what
5504 is completed on. Use get_current_arch rather than architecture of
5505 currently selected frame.
5506 (reg_or_group_completer): Call new reg_or_group_completer_1.
5507 (reggroup_completer): Call new reg_or_group_completer_1.
5508 * completer.h (reggroup_completer): Add declaration.
5509 * tui/tui-regs.c: Add 'completer.h' include.
5510 (tui_reg_next_command): Renamed to...
5511 (tui_reg_next): ...this. Adjust parameters and return rather than
5512 display new group.
5513 (tui_reg_prev_command): Renamed to...
5514 (tui_reg_prev): ...this. Adjust parameters and return rather than
5515 display new group.
5516 (tui_reg_float_command): Delete.
5517 (tui_reg_general_command): Delete.
5518 (tui_reg_system_command): Delete.
5519 (tui_reg_command): Rewrite to perform switching of register group.
5520 Add header comment.
5521 (tuireglist): Remove.
5522 (tui_reggroup_completer): New function.
5523 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
5524 creation of 'tui reg' command.
5525 * NEWS: Add comment about 'tui reg' changes.
5526
d309493c
SM
55272015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5528
5529 * target.c (target_read): Consider addressable unit size when
5530 reading from a memory object.
5531 (read_memory_robust): Same.
5532 (read_whatever_is_readable): Same.
5533 (target_write_with_progress): Consider addressable unit size
5534 when writing to a memory object.
5535 * target.h (target_read): Update documentation.
5536 (target_write): Add documentation.
5537
3374165f
SM
55382015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5539
5540 * arch-utils.h (default_addressable_memory_unit_size): New.
5541 * arch-utils.c (default_addressable_memory_unit_size): New.
5542 * gdbarch.sh (addressable_memory_unit_size): New.
5543 * gdbarch.h: Re-generate.
5544 * gdbarch.c: Re-generate.
5545
279a6fed
SM
55462015-06-12 Simon Marchi <simon.marchi@ericsson.com>
5547
5548 * target.c (target_read): Rename variables and use
5549 TARGET_XFER_E_IO.
5550 (target_read_with_progress): Same.
5551 (read_memory_robust): Constify parameters and rename
5552 variables.
5553 (read_whatever_is_readable): Constify parameters,
5554 rename variables, adjust formatting.
5555 * target.h (read_memory_robust): Constify parameters.
5556
1e5338b6 55572015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
5558
5559 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
5560 synthetic (non-AltiVec) vector types.
5561 (ppc64_sysv_abi_return_value): Likewise.
5562
98aa42ee
AT
55632015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
5564
5565 PR breakpoints/16465
5566 * breakpoint.c (create_breakpoint): Save extra_string for
5567 pending breakpoints.
5568
966f0aef
WT
55692015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
5570
5571 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
5572 and bt_mask to CORE_ADDR.
5573
6449ed0d
GB
55742015-06-11 Gary Benson <gbenson@redhat.com>
5575
5576 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
5577 (mnsh_recv_message): Likewise.
5578
34f8ac9f
WT
55792015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
5580
5581 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
5582 long long int and plongest instead of %ll.
5583
198c808c
GB
55842015-06-11 Gary Benson <gbenson@redhat.com>
5585
5586 * nat/linux-namespaces.c (gdb_wait.h): New include.
5587 (sys/wait.h): Do not include.
5588
e815d2d2
SM
55892015-06-10 Simon Marchi <simon.marchi@ericsson.com>
5590
5591 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
5592 end_sequence is true.
5593
8847cac2
JK
55942015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5595
5596 Code cleanup.
5597 * solib-target.c (library_list_start_list): Use explicit NULL
5598 comparison.
5599
24c05f46
JK
56002015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5601
5602 * solib-target.c (library_list_start_list): Do not dereference
5603 variable version in its initialization. Make the VERSION check handle
5604 NULL.
5605 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
5606
51aad7cc
GB
56072015-06-10 Gary Benson <gbenson@redhat.com>
5608
5609 * NEWS: Announce support for direct access of executable and
5610 shared library files when attaching to inferiors in containers
5611 on GNU/Linux systems.
5612
15a201c8
GB
56132015-06-10 Gary Benson <gbenson@redhat.com>
5614
5615 * remote.c (struct remote_state) <fs_pid>: New field.
5616 (new_remote_state): Initialize the above.
5617 (PACKET_vFile_setfs): New enum value.
5618 (remote_hostio_set_filesystem): New function.
5619 (remote_hostio_open): Call the above.
5620 (remote_hostio_unlink): Likewise.
5621 (remote_hostio_readlink): Likewise.
5622 (_initialize_remote): Register new "set/show remote
5623 hostio-setfs-packet" command.
5624 * NEWS: Announce new vFile:setfs packet.
5625
7a6a1731
GB
56262015-06-10 Gary Benson <gbenson@redhat.com>
5627
5628 * linux-nat.c (nat/linux-namespaces.h): New include.
5629 (fileio.h): Likewise.
5630 (linux_nat_filesystem_is_local): New function.
5631 (linux_nat_fileio_pid_of): Likewise.
5632 (linux_nat_fileio_open): Likewise.
5633 (linux_nat_fileio_readlink): Likewise.
5634 (linux_nat_fileio_unlink): Likewise.
5635 (linux_nat_add_target): Initialize to_filesystem_is_local,
5636 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
5637 (_initialize_linux_nat): New "set/show debug linux-namespaces"
5638 commands.
5639 * NEWS: Mention new "set/show debug linux-namespaces" commands.
5640
07c138c8
GB
56412015-06-10 Gary Benson <gbenson@redhat.com>
5642
5643 * target.h (struct inferior): New forward declaration.
5644 (struct target_ops) <to_filesystem_is_local>: Update comment.
5645 (struct target_ops) <to_fileio_open>: New argument inf.
5646 Update comment. All implementations updated.
5647 (struct target_ops) <to_fileio_unlink>: Likewise.
5648 (struct target_ops) <to_fileio_readlink>: Likewise.
5649 (target_filesystem_is_local): Update comment.
5650 (target_fileio_open): New argument inf. Update comment.
5651 (target_fileio_unlink): Likewise.
5652 (target_fileio_readlink): Likewise.
5653 (target_fileio_read_alloc): Likewise.
5654 (target_fileio_read_stralloc): Likewise.
5655 * target.c (target_fileio_open): New argument inf.
5656 Pass inf to implementation. Update debug printing.
5657 (target_fileio_unlink): Likewise.
5658 (target_fileio_readlink): Likewise.
5659 (target_fileio_read_alloc_1): New argument inf. Pass inf
5660 to target_fileio_open.
5661 (target_fileio_read_alloc): New argument inf. Pass inf to
5662 target_fileio_read_alloc_1.
5663 (target_fileio_read_stralloc): Likewise.
5664 * gdb_bfd.c (inferior.h): New include.
5665 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
5666 argument with new argument "inferior". Pass inferior to
5667 target_fileio_open.
5668 (gdb_bfd_open): Supply inferior argument to
5669 gdb_bfd_iovec_fileio_open.
5670 * linux-tdep.c (linux_info_proc): Supply inf argument to
5671 relevant target_fileio calls.
5672 (linux_find_memory_regions_full): Likewise.
5673 (linux_fill_prpsinfo): Likewise.
5674 * remote.c (remote_filesystem_is_local): Supply inf
5675 argument to remote_hostio_open.
5676 (remote_file_put): Likewise.
5677 (remote_file_get): Likewise.
5678 (remote_file_delete): Supply inf argument to
5679 remote_hostio_unlink.
5680
12e2a5fd
GB
56812015-06-10 Gary Benson <gbenson@redhat.com>
5682
5683 * inf-child.c (inf_child_fileio_open): Replace comment.
5684 (inf_child_fileio_pwrite): Likewise.
5685 (inf_child_fileio_pread): Likewise.
5686 (inf_child_fileio_fstat): Insert blank line before comment.
5687 (inf_child_fileio_close): Replace comment.
5688 (inf_child_fileio_unlink): Likewise.
5689 (inf_child_fileio_readlink): Likewise.
5690 * remote.c (remote_hostio_open): Likewise.
5691 (remote_hostio_pread): Likewise.
5692 (remote_hostio_pwrite): Likewise.
5693 (remote_hostio_close): Likewise.
5694 (remote_hostio_unlink): Likewise.
5695 (remote_hostio_readlink): Likewise.
5696 (remote_hostio_fstat): Likewise.
5697 (remote_filesystem_is_local): Likewise.
5698 * target.c (target_fileio_open): Likewise.
5699 (target_fileio_pwrite): Likewise.
5700 (target_fileio_pread): Likewise.
5701 (target_fileio_fstat): Insert blank line before comment.
5702 (target_fileio_close): Replace comment.
5703 (target_fileio_unlink): Likewise.
5704 (target_fileio_readlink): Likewise.
5705 (target_fileio_read_alloc): Likewise.
5706 (target_fileio_read_stralloc): Likewise.
5707
9bc3a976
GB
57082015-06-10 Gary Benson <gbenson@redhat.com>
5709
5710 * linux-thread-db.c (nat/linux-namespaces.h): New include.
5711 (check_pid_namespace_match): Use linux_ns_same rather than
5712 linux_proc_pid_get_ns to spot PID namespace mismatches.
5713 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
5714 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
5715
4b8b5e72
GB
57162015-06-10 Gary Benson <gbenson@redhat.com>
5717
5718 * configure.ac (AC_CHECK_FUNCS): Add setns.
5719 * config.in: Regenerate.
5720 * configure: Likewise.
5721 * nat/linux-namespaces.h: New file.
5722 * nat/linux-namespaces.c: Likewise.
5723 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
5724 (linux-namespaces.o): New rule.
5725 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
5726 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
5727 * config/arm/linux.mh (NATDEPFILES): Likewise.
5728 * config/i386/linux.mh (NATDEPFILES): Likewise.
5729 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5730 * config/ia64/linux.mh (NATDEPFILES): Likewise.
5731 * config/m32r/linux.mh (NATDEPFILES): Likewise.
5732 * config/m68k/linux.mh (NATDEPFILES): Likewise.
5733 * config/mips/linux.mh (NATDEPFILES): Likewise.
5734 * config/pa/linux.mh (NATDEPFILES): Likewise.
5735 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
5736 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
5737 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
5738 * config/s390/linux.mh (NATDEPFILES): Likewise.
5739 * config/sparc/linux.mh (NATDEPFILES): Likewise.
5740 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
5741 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
5742 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
5743
ca095836
GB
57442015-06-10 Gary Benson <gbenson@redhat.com>
5745
5746 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
5747 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
5748 (make_cleanup_close): Likewise.
5749 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
5750 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
5751 (make_cleanup_close): Likewise.
5752
5d9c55d3
JT
57532015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5754
5755 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
5756 from SuspendThread().
5757
040ea00b
JT
57582015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
5759
5760 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
5761 from OutputDebugString.
5762
7d73c23c
WT
57632015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
5764 Mircea Gherzan <mircea.gherzan@intel.com>
5765
5766 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
5767 MPX_BT_MASK_32): New macros.
5768 (i386_mpx_set_bounds): New function that implements
5769 the command "set-mpx-bound".
5770 (i386_mpx_enabled): Helper function to test MPX availability.
5771 (i386_mpx_bd_base): Helper function to calculate the base directory
5772 address.
5773 (i386_mpx_get_bt_entry): Helper function to access a bound
5774 table entry.
5775 (i386_mpx_print_bounds): Effectively display bound information.
5776 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
5777 "show mpx".
5778 (_initialize_i386_tdep):
5779 Add "bound" to the commands "show mpx" and "set mpx" commands.
5780 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
5781 and "show mpx" commands.
5782 * NEWS: List new commands for MPX support.
5783
3ac2e371
GB
57842015-06-09 Gary Benson <gbenson@redhat.com>
5785
5786 * common/fileio.h (fileio_to_host_mode): New declaration.
5787 * common/fileio.c (fileio_to_host_mode): New Function.
5788 * inf-child.c (inf_child_fileio_open): Process mode argument
5789 with fileio_to_host_mode.
5790
ecef18c5
GB
57912015-06-09 Gary Benson <gbenson@redhat.com>
5792
5793 * common/fileio.c (fileio_mode_pack): Fix preprocessor
5794 conditional.
5795
e3dd7556
GB
57962015-06-05 Gary Benson <gbenson@redhat.com>
5797
5798 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
5799 * remote.c (remote_filesystem_is_local): ...here.
5800
5b74bf7d
YQ
58012015-06-04 Yao Qi <yao.qi@linaro.org>
5802
5803 * gdbarch.c: Regenerate it.
5804
7f361056
JK
58052015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5806
5807 * arch-utils.c (default_infcall_munmap): New.
5808 * arch-utils.h (default_infcall_munmap): New declaration.
5809 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
5810 (munmap_list_free, munmap_listp_free_cleanup): New.
5811 (struct setup_sections_data): Add field munmap_list_headp.
5812 (setup_sections): Call munmap_list_add.
5813 (compile_object_load): New variable munmap_list_head, initialize
5814 setup_sections_data.munmap_list_headp, return munmap_list_head.
5815 * compile/compile-object-load.h (struct munmap_list): New declaration.
5816 (struct compile_module): Add field munmap_list_head.
5817 (munmap_list_free): New declaration.
5818 * compile/compile-object-run.c (struct do_module_cleanup): Add field
5819 munmap_list_head.
5820 (do_module_cleanup): Call munmap_list_free.
5821 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
5822 * gdbarch.c: Regenerate.
5823 * gdbarch.h: Regenerate.
5824 * gdbarch.sh (infcall_munmap): New.
5825 * linux-tdep.c (linux_infcall_munmap): New.
5826 (linux_init_abi): Install it.
5827
3b462ec2
SM
58282015-06-02 Simon Marchi <simon.marchi@ericsson.com>
5829
5830 PR gdb/15564
5831 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
5832
8d683210
YQ
58332015-06-02 Yao Qi <yao.qi@linaro.org>
5834
5835 * i386-linux-nat.c: Include linux-nat.h.
5836
e0619de6
JK
58372015-06-01 Andreas Schwab <schwab@linux-m68k.org>
5838 Jan Kratochvil <jan.kratochvil@redhat.com>
5839
5840 PR symtab/18392
5841 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
5842 assertion.
5843 * dwarf2loc.c (chain_candidate): Likewise.
5844
bd16da51
YQ
58452015-06-01 Yao Qi <yao.qi@linaro.org>
5846
5847 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
5848 (store_vfp_regs): Use PTRACE_SETREGSET.
5849
df9d7ec9
YQ
58502015-06-01 Yao Qi <yao.qi@linaro.org>
5851
5852 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
5853 (fetch_fpregs): Likewise.
5854 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
5855 (store_fpregs): Likewise.
5856
10766686
YQ
58572015-06-01 Yao Qi <yao.qi@linaro.org>
5858
5859 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
5860 (fetch_regs): Likewise.
5861 (store_regs): Use PTRACE_SETREGSET.
5862 (store_register): Likewise.
5863
7efe48d1
YQ
58642015-06-01 Yao Qi <yao.qi@linaro.org>
5865
5866 * arm-linux-nat.c (arm_linux_read_description): Check whether
5867 kernel supports PTRACE_GETREGSET.
5868
433bbbf8
YQ
58692015-06-01 Yao Qi <yao.qi@linaro.org>
5870
5871 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
5872 * linux-nat.c: ... here.
5873 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
5874 to ...
5875 * linux-nat.h: ... here.
5876
ca9b78ce
YQ
58772015-06-01 Yao Qi <yao.qi@linaro.org>
5878
5879 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
5880 * i386-linux-nat.c: Likewise.
5881 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
5882 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
5883 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5884 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
5885 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
5886
99cee7b7
EZ
58872015-05-30 Eli Zaretskii <eliz@gnu.org>
5888
5889 * go32-nat.c (go32_xfer_memory): Fix the return value to be
5890 compatible to what read_child and write_child return. This
5891 unbreaks that DJGPP build of GDB which was broken since v7.7.
5892
2147f5bd
MG
58932015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
5894
5895 * MAINTAINERS (Write After Approval): Add Martin Galvan.
5896
c8f6c93c
RM
58972015-05-29 Roland McGrath <mcgrathr@google.com>
5898
5899 PR gdb/18464
5900 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
5901 rather than internal_error for an unrecognized value.
5902
8c6a948d
MF
59032015-05-29 Max Filippov <jcmvbkbc@gmail.com>
5904
5905 * xtensa-tdep.c (xtensa_pseudo_register_read)
5906 (xtensa_pseudo_register_write): Don't alias last pseudo register
5907 to a1.
5908
8dd06f7a
DB
59092015-05-28 Don Breazeal <donb@codesourcery.com>
5910
5911 * infrun.c (follow_fork_inferior): Ensure the use of
5912 process-style ptids (pid,0,0) in verbose/debug "Detaching"
5913 messages.
5914
a051152b
DE
59152015-05-28 Doug Evans <dje@google.com>
5916
5917 * dwarf2read.c (record_line_ftype): Remove, duplicate.
5918
a56cc1ce
YQ
59192015-05-28 Yao Qi <yao.qi@linaro.org>
5920
5921 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
5922 (arm_linux_fetch_inferior_registers): Use
5923 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
5924 (arm_linux_store_inferior_registers): Likewise.
5925 (arm_linux_read_description): Don't set
5926 arm_linux_has_wmmx_registers.
5927 * arm-tdep.c (arm_gdbarch_init): Set
5928 tdep->have_wmmx_registers according target descriptions.
5929 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
5930 field.
5931
330c6ca9
YQ
59322015-05-28 Yao Qi <yao.qi@linaro.org>
5933
5934 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
5935 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
5936 instead of arm_linux_vfp_register_count.
5937 (store_vfp_regs): Likewise.
5938 (arm_linux_fetch_inferior_registers): Likewise.
5939 (arm_linux_store_inferior_registers): Likewise.
5940 (arm_linux_read_description): Don't set
5941 arm_linux_vfp_register_count.
5942 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
5943 Adjust.
5944 * arm-tdep.c (arm_gdbarch_init): Add assert on
5945 vfp_register_count.
5946 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
5947 field to vfp_register_count. All users updated.
5948
d403db27
KH
59492015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
5950
5951 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
5952 ELFOSABI_GNU binaries.
5953
d9b3de22
DE
59542015-05-27 Doug Evans <dje@google.com>
5955
5956 * dwarf2read.c (lnp_state_machine): New typedef.
5957 (lnp_reader_state): New typedef.
5958 (dwarf_record_line_1): Renamed from dwarf_record_line.
5959 All callers updated.
5960 (dwarf_record_line): New function.
5961 (init_lnp_state_machine): New function.
5962 (check_line_address): Replace p_record_line parameter with state.
5963 All callers updated.
5964 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
5965 Update to record state in lnp_state_machine.
5966
924c2928
DE
59672015-05-27 Doug Evans <dje@google.com>
5968
5969 * dwarf2read.c (record_line_ftype): New typedef.
5970 (check_line_address): New function.
5971 (dwarf_decode_lines_1): Call it.
5972
27e0867f
DE
59732015-05-27 Doug Evans <dje@google.com>
5974
5975 * NEWS: Mention "set debug dwarf-line".
5976 * dwarf2read.c (dwarf_line_debug): New static global.
5977 (add_include_dir): Add debug dwarf-line support.
5978 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
5979 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
5980
4dcabcc2
DE
59812015-05-27 Doug Evans <dje@google.com>
5982
5983 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
5984 All callers updated.
5985 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
5986 * cp-support.h (cp_lookup_nested_symbol): Update.
5987
b2e2f908
DE
59882015-05-27 Doug Evans <dje@google.com>
5989
5990 PR symtab/18258
5991 * block.c (block_find_symbol): New function.
5992 (block_find_non_opaque_type): Ditto.
5993 (block_find_non_opaque_type_preferred): Ditto.
5994 * block.h (block_symbol_matcher_ftype): New typedef.
5995 (block_find_symbol): Declare.
5996 (block_find_non_opaque_type): Ditto.
5997 (block_find_non_opaque_type_preferred): Ditto.
5998 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
5999 * psymtab.c (psym_lookup_symbol): Ditto.
6000 * symtab.c (basic_lookup_transparent_type_1): New function.
6001 (basic_lookup_transparent_type): Call it.
6002
f62fce35
YQ
60032015-05-27 Yao Qi <yao.qi@linaro.org>
6004
6005 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
6006 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
6007
5d98d3cd
YQ
60082015-05-27 Yao Qi <yao.qi@linaro.org>
6009
6010 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
6011 before operator &&.
6012 (aarch64_record_load_store): Likewise.
6013
82c7be31
DE
60142015-05-26 Doug Evans <dje@google.com>
6015
6016 PR c++/18141, c++/18417.
6017 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
6018 a typedef.
6019
b4f54984
DE
60202015-05-26 Doug Evans <dje@google.com>
6021
6022 * NEWS: Add entries for command renamings.
6023 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
6024 All uses updated.
6025 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
6026 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
6027 All uses updated.
6028 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
6029 All callers updated. Fix spelling of DWARF in help text.
6030 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
6031 All uses updated.
6032 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
6033 All uses updated.
6034 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
6035 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
6036 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
6037 All uses updated.
6038 (show_dwarf_always_disassemble): Renamed from
6039 show_dwarf2_always_disassemble. All callers updated.
6040 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
6041 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
6042 "set/show dwarf max-cache-age". Rename
6043 "set/show dwarf2 always-disassemble" to
6044 "set/show dwarf always-disassemble". Rename
6045 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
6046 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
6047
4ea6efe9
DE
60482015-05-26 Doug Evans <dje@google.com>
6049
6050 PR python/18438
6051 * python/py-lazy-string.c (stpy_convert_to_value): Use
6052 gdbpy_gdb_memory_error not PyExc_MemoryError.
6053 (gdbpy_create_lazy_string_object): Ditto.
6054
b93fd21d
AB
60552015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
6056
6057 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
6058
55b40027
AB
60592015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
6060
6061 * tui/tui-regs.c (tui_reg_prev_command): New function.
6062 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
6063 * reggroups.c (reggroup_prev): New function.
6064 * reggroups.h (reggroup_prev): Add declaration. Update comment.
6065
99afc88b
OJ
60662015-05-26 Omair Javaid <omair.javaid@linaro.org>
6067 Yao Qi <yao.qi@linaro.org>
6068
6069 * aarch64-linux-tdep.c: Include linux-record.h and
6070 record-full.h.
6071 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
6072 (aarch64_syscall): New enum.
6073 (aarch64_canonicalize_syscall): New function.
6074 (aarch64_all_but_pc_registers_record): New function.
6075 (aarch64_linux_syscall_record): New function.
6076 (aarch64_linux_init_abi): Install AArch64 process record
6077 handler. Update to handle syscall recording.
6078 * aarch64-tdep.c: Include record.h and record-full.h.
6079 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
6080 (struct aarch64_mem_r): Define.
6081 (aarch64_record_result): New enum.
6082 (struct insn_decode_record): Define.
6083 (insn_decode_record): New typedef.
6084 (aarch64_record_data_proc_reg): New function.
6085 (aarch64_record_data_proc_imm): New function.
6086 (aarch64_record_branch_except_sys): New function.
6087 (aarch64_record_load_store): New function.
6088 (aarch64_record_data_proc_simd_fp): New function.
6089 (aarch64_record_asimd_load_store): New function.
6090 (aarch64_record_decode_insn_handler): New function.
6091 (deallocate_reg_mem): New function.
6092 (aarch64_process_record): New function.
6093 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
6094 New field.
6095 (aarch64_process_record): New extern declaration.
6096 * configure.tgt: Add linux-record.o to gdb_target_obs.
6097 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
6098
c16a3f52
OJ
60992015-05-26 Omair Javaid <omair.javaid@linaro.org>
6100
6101 * NEWS: Add a note on process record-replay support on aarch64*-linux*
6102 targets.
6103
c9cf6e20
MG
61042015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
6105
6106 * amd64-tdep.c: Replace in_function_epilogue_p with
6107 stack_frame_destroyed_p throughout.
6108 * arch-utils.c: Ditto.
6109 * arch-utils.h: Ditto.
6110 * arm-tdep.c: Ditto.
6111 * breakpoint.c: Ditto.
6112 * gdbarch.sh: Ditto.
6113 * hppa-tdep.c: Ditto.
6114 * i386-tdep.c: Ditto.
6115 * mips-tdep.c: Ditto.
6116 * nios2-tdep.c: Ditto.
6117 * rs6000-tdep.c: Ditto.
6118 * s390-linux-tdep.c: Ditto.
6119 * score-tdep.c: Ditto.
6120 * sh-tdep.c: Ditto.
6121 * sparc-tdep.c: Ditto.
6122 * sparc-tdep.h: Ditto.
6123 * sparc64-tdep.c: Ditto.
6124 * spu-tdep.c: Ditto.
6125 * tic6x-tdep.c: Ditto.
6126 * tilegx-tdep.c: Ditto.
6127 * xstormy16-tdep.c: Ditto.
6128 * gdbarch.c, gdbarch.h: Re-generated.
6129
a4ea0946
AB
61302015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
6131
6132 * NEWS: Mention 'tui enable' and 'tui disable'.
6133 * tui/tui.c (tui_enable_command): New function.
6134 (tui_disable_command): New function.
6135 (_initialize_tui): New function.
6136
b75c69bb
AB
61372015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6138
6139 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
6140
c1b009ee
AB
61412015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6142
6143 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
6144 buf_ptr is freed.
6145
880d1e40
AB
61462015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6147
6148 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
6149 into ...
6150 (tui_set_layout_for_display_command): ...here, before calling
6151 tui_set_layout. Only set the layout if gdb has not already
6152 entered the TUI_FAILURE state.
6153
a0145030
AB
61542015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6155
6156 * tui/tui-layout.c (layout_completer): New function.
6157 (_initialize_tui_layout): Set completer on layout command.
6158
7bd0be3a
AB
61592015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
6160
6161 * tui/tui-layout.c (tui_set_layout): Remove
6162 tui_register_display_type parameter. Remove all checking of this
6163 parameter, and reindent function. Update header comment.
6164 (tui_set_layout_for_display_command): Rename to...
6165 (tui_set_layout_by_name): ...this, and don't check for different
6166 register class types, don't pass a tui_register_display_type to
6167 tui_set_layout. Update header comment.
6168 (layout_names): Remove register set specific names.
6169 * tui/tui-layout.h (tui_set_layout): Remove
6170 tui_register_display_type parameter.
6171 * tui/tui.c (tui_rl_change_windows): Don't pass a
6172 tui_register_display_type to tui_set_layout.
6173 (tui_rl_delete_other_windows): Likewise.
6174 (tui_enable): Likewise.
6175 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
6176 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
6177 (TUI_GENERAL_REGS_NAME): Remove.
6178 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
6179 (TUI_SPECIAL_REGS_NAME): Remove.
6180 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
6181 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
6182 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
6183 (enum tui_register_display_type): Remove.
6184 (struct tui_layout_def): Remove regs_display_type and
6185 float_regs_display_type fields.
6186 (struct tui_data_info): Remove regs_display_type field.
6187 (tui_layout_command): Use new name for
6188 tui_set_layout_for_display_command.
6189 * tui/tui-data.c (layout_def): Don't initialise removed fields.
6190 (tui_clear_win_detail): Don't initialise removed fields of
6191 win_info.
6192 * tui/tui-regs.c (tui_show_registers): Use new name for
6193 tui_set_layout_for_display_command.
6194 * tui/tui.h (tui_set_layout_for_display_command): Rename
6195 declaration to...
6196 (tui_set_layout_by_name): ...this.
6197 * printcmd.c (display_command): Remove tui related layout call,
6198 and reindent.
6199
0b6e5e10
JB
62002015-05-20 Joel Brobecker <brobecker@adacore.com>
6201
6202 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
6203 (handle_inferior_event): New function.
6204
1da0522e
JB
62052015-05-20 Joel Brobecker <brobecker@adacore.com>
6206
6207 * ada-lang.c (to_fixed_array_type): Rename local variable
6208 typename into type_name.
6209
5fe75eec
JK
62102015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6211
6212 Fix ASAN crash for gdb.compile/compile.exp.
6213 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
6214
a4063588
JK
62152015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6216
6217 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
6218 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
6219 * compile/compile-object-load.c (setup_sections, compile_object_load):
6220 Likewise.
6221 * compile/compile.c (compile_to_object): Likewise.
6222
37442ce1
DE
62232015-05-16 Doug Evans <xdje42@gmail.com>
6224
6225 * NEWS: Mention support for unbuffered Guile memory ports.
6226 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
6227 (ioscm_lseek_address): Improve overflow calculation.
6228 (gdbscm_memory_port_fill_input): Add assert.
6229 (gdbscm_memory_port_write): Handle unbuffered ports.
6230 Handle large writes identical to Guile's fport_write.
6231 (gdbscm_memory_port_seek): Fix seeking past end check.
6232 (gdbscm_memory_port_close): Handle closing unbuffered port.
6233 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
6234 (ioscm_init_memory_port): Handle unbuffered ports.
6235 (ioscm_reinit_memory_port): Ditto.
6236 (ioscm_init_memory_port): Update size calculation.
6237 (gdbscm_open_memory): Support zero sized ports.
6238
d976bace
JK
62392015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6240
6241 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
6242 variable compiler warnings.
6243
4d18dfad
JK
62442015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6245
6246 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
6247
36de76f9
JK
62482015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6249 Phil Muldoon <pmuldoon@redhat.com>
6250
6251 * NEWS (Changes since GDB 7.9): Add compile print.
6252 * compile/compile-c-support.c (add_code_header, add_code_footer)
6253 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
6254 COMPILE_I_PRINT_VALUE_SCOPE.
6255 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
6256 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
6257 New.
6258 * compile/compile-object-load.c: Include block.h.
6259 (get_out_value_type): New function.
6260 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
6261 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
6262 OUT_VALUE_TYPE.
6263 * compile/compile-object-load.h (struct compile_module): Add fields
6264 out_value_addr and out_value_type.
6265 * compile/compile-object-run.c: Include valprint.h and compile.h.
6266 (struct do_module_cleanup): Add fields out_value_addr and
6267 out_value_type.
6268 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
6269 COMPILE_I_PRINT_VALUE_SCOPE.
6270 (compile_object_run): Propagate out_value_addr and out_value_type.
6271 Pass OUT_VALUE_ADDR.
6272 * compile/compile.c: Include valprint.h.
6273 (compile_print_value, compile_print_command): New functions.
6274 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
6275 (_initialize_compile): Update compile code help text. Install
6276 compile_print_command.
6277 * compile/compile.h (compile_print_value): New prototype.
6278 * defs.h (enum compile_i_scope_types): Add
6279 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
6280
83d3415e
JK
62812015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6282
6283 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
6284 Rely on its parameter count.
6285 (compile_object_load): Replace lookup_minimal_symbol_text by
6286 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
6287 return value.
6288 * compile/compile-object-load.h (struct compile_module): Replace
6289 func_addr by func_sym.
6290 * compile/compile-object-run.c: Include block.h.
6291 (compile_object_run): Reset module variable after it is freed. Use
6292 FUNC_SYM instead of FUNC_ADDR. Rely on it.
6293
3a9558c4
JK
62942015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6295
6296 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
6297 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
6298 (c_compute_program): Call generate_register_struct after typedefs.
6299 * compile/compile-loc2c.c (push, pushf_register_address)
6300 (pushf_register): Cast to GCC_UINTPTR.
6301 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
6302 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
6303 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
6304 * compile/compile.c (_initialize_compile): Enable warnings for
6305 COMPILE_ARGS.
6306
5c65b58a
JK
63072015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6308
6309 * cli/cli-script.c (execute_control_command): Update
6310 eval_compile_command caller.
6311 * compile/compile-object-load.c (compile_object_load): Add parameters
6312 scope and scope_data. Set them.
6313 * compile/compile-object-load.h (struct compile_module): Add fields
6314 scope and scope_data.
6315 (compile_object_load): Add parameters scope and scope_data.
6316 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
6317 scope and scope_data.
6318 (compile_object_run): Propagate the fields scope and scope_data.
6319 * compile/compile.c (compile_file_command, compile_code_command):
6320 Update eval_compile_command callers.
6321 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
6322 * compile/compile.h (eval_compile_command): Add parameter scope_data.
6323 * defs.h (struct command_line): Add field scope_data.
6324
1c88ceb1
JK
63252015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6326
6327 * printcmd.c (struct format_data): Move it to valprint.h.
6328 (print_command_parse_format, print_value): New functions from ...
6329 (print_command_1): ... here. Call them.
6330 * valprint.h (struct format_data): Move it here from printcmd.c.
6331 (print_command_parse_format, print_value): New declarations.
6332
0b738f27
JK
63332015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6334
6335 * compile/compile-object-load.c (compile_object_load): Add
6336 COMPILE_DEBUG message.
6337
aa715135
JG
63382015-05-15 Jerome Guitton <guitton@adacore.com>
6339
6340 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
6341 index to get element instead of enum value.
6342 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
6343 of index to compute length, but enum values to compute bounds.
6344 (ada_array_length): Use enum position of index instead of enum value.
6345 (pos_atr): Move position computation to...
6346 (ada_evaluate_subexp): Use enum values to compute bounds.
6347 * gdbtypes.c (discrete_position): ...this new function.
6348 * gdbtypes.h (discrete_position): New function declaration.
6349 * valprint.c (val_print_array_elements): Call discrete_position
6350 to handle array indexed by non-contiguous enumeration types.
6351
931e5bc3
JG
63522015-05-15 Jerome Guitton <guitton@adacore.com>
6353
6354 * ada-lang.c (find_parallel_type_by_descriptive_type):
6355 Go through typedefs during lookup.
6356 (to_fixed_array_type): Add support for non-bit packed arrays
6357 as variable-length fields.
6358
4e63d0ac
PA
63592015-05-15 Pedro Alves <palves@redhat.com>
6360 Simon Marchi <simon.marchi@ericsson.com>
6361
6362 * event-loop.c (gdb_notifier) <next_file_handler,
6363 next_poll_fds_index>: New fields.
6364 (get_next_file_handler_to_handle_and_advance): New function.
6365 (delete_file_handler): If deleting the next file handler to
6366 handle, advance to the next file handler.
6367 (gdb_wait_for_event): Bail early if no event fired. Poll file
6368 handlers in round-robin fashion.
6369
52e48b36
PA
63702015-05-15 Pedro Alves <palves@redhat.com>
6371
6372 * linux-tdep.c (linux_find_memory_regions_full): Rename local
6373 'private' to 'priv'.
6374
2465e12e
PA
63752015-05-15 Pedro Alves <palves@redhat.com>
6376
6377 * nat/linux-nat.h: Include "target/waitstatus.h".
6378
13fa0398
YZ
63792015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
6380
6381 * python/py-unwind.c (struct reg_info): Move out of ...
6382 (struct cached_frame_info): ... this scope.
6383 (pending_frame_object_type, unwind_info_object_type): Make extern.
6384
9cd4d857
JB
63852015-05-15 Joel Brobecker <brobecker@adacore.com>
6386
6387 * ada-lang.c (ada_value_primitive_packed_val): Make sure
6388 accumSize is never negative.
6389
e3555239
PP
63902015-05-14 Patrick Palka <patrick@parcs.ath.cx>
6391
6392 * tui/tui-command.c: Remove include of <ctype.h>.
6393 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
6394
08a76f8a
MG
63952015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
6396
6397 * dwarf2read.c (die_needs_namespace): Return 1 for
6398 DW_TAG_inlined_subroutine.
6399
bd49952b
JK
64002015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6401
6402 * regcache.c (regcache_cpy_no_passthrough): New declaration.
6403 (regcache_cpy_no_passthrough): Make it static, add function comment.
6404 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
6405 (regcache_cpy_no_passthrough): Remove declaration.
6406
46c03469
JK
64072015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6408
6409 * gdbthread.h (struct thread_control_state): Update comment for
6410 proceed_to_finish.
6411 * infcall.c (run_inferior_call): Update comment about
6412 proceed_to_finish.
6413 * infcmd.c (get_return_value): Update comment about stop_registers.
6414 (finish_forward): Update comment about proceed_to_finish.
6415 * infrun.c (stop_registers): Remove.
6416 (clear_proceed_status, normal_stop): Remove stop_registers handling.
6417 * infrun.h (stop_registers): Remove.
6418
8a6c4031
JK
64192015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6420
6421 * infcall.c (struct dummy_frame_context_saver)
6422 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
6423 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
6424 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
6425 New.
6426 (call_function_by_hand_dummy): Move discard_cleanups of
6427 inf_status_cleanup before dummy_frame_push. Call
6428 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
6429 Use dummy_frame_context_saver_get_regs instead of stop_registers.
6430 * infcall.h (struct dummy_frame_context_saver)
6431 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
6432 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
6433 New declarations.
6434 * infcmd.c: Include infcall.h.
6435 (get_return_value): Add parameter ctx_saver, use it instead of
6436 stop_registers.
6437 (print_return_value): Add parameter ctx_saver, pass it.
6438 (struct finish_command_continuation_args): Add field ctx_saver.
6439 (finish_command_continuation): Update print_return_value caller.
6440 (finish_command_continuation_free_arg): Free also ctx_saver.
6441 (finish_forward): Call dummy_frame_context_saver_setup.
6442 * inferior.h (struct dummy_frame_context_saver): New declaration.
6443 (get_return_value): Add parameter ctx_saver.
6444 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
6445 get_return_value caller.
6446
10989690
JK
64472015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6448
6449 * dummy-frame.c (struct dummy_frame_dtor_list): New.
6450 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
6451 (remove_dummy_frame): Process dtor_list.
6452 (pop_dummy_frame): Process dtor_list.
6453 (register_dummy_frame_dtor): Maintain dtor_list.
6454 (find_dummy_frame_dtor): Handle dtor_list.
6455 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
6456 Update comments.
6457
5e970501
JK
64582015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6459
6460 * compile/compile-object-run.c (do_module_cleanup): Add parameter
6461 registers_valid.
6462 (compile_object_run): Update do_module_cleanup caller.
6463 * dummy-frame.c: Include infcall.h.
6464 (struct dummy_frame): Update dtor comment.
6465 (remove_dummy_frame): Call dtor.
6466 (pop_dummy_frame): Update dtor caller.
6467 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
6468 registers_valid.
6469
1c4eb778
JB
64702015-05-13 Joel Brobecker <brobecker@adacore.com>
6471
6472 GDB 7.9.1 released.
6473
f5f85ab9
JB
64742015-05-13 Joel Brobecker <brobecker@adacore.com>
6475
6476 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
6477 Xmethods now being able to specify a result type to that new
6478 sectioin.
6479
242cd84c
PP
64802015-05-13 Patrick Palka <patrick@parcs.ath.cx>
6481
6482 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
6483 first before resizing the window.
e3555239 6484 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
6485
64862015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
6487
6488 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
6489 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
6490 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
6491 dummy_dtor parameter.
6492 * infcall.h: Include dummy-frame.h.
6493 (call_function_by_hand_dummy_dtor_ftype): Remove.
6494 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
6495 parameter.
6496
ebfd00d2
PP
64972015-05-13 Patrick Palka <patrick@parcs.ath.cx>
6498
6499 PR gdb/17820
6500 * top.c (history_size_setshow_var): Change type to signed.
6501 Initialize to -2. Update documentation.
6502 (set_readline_history_size): Define.
6503 (set_history_size_command): Use it. Remove logic for handling
6504 out-of-range sizes.
6505 (init_history): Use set_readline_history_size(). Test for a
6506 value of -2 instead of 0 when determining whether to set a
6507 default history size.
6508 (init_main): Decode the argument of the "size" command as a
6509 zuinteger_unlimited.
6510
83769d0b
DE
65112015-05-12 Doug Evans <dje@google.com>
6512
6513 * dwarf2read.c (struct file_entry): Tweak comments.
6514 (get_debug_line_section): Tweak comments.
6515
0d71eef5
DB
65162015-05-12 Don Breazeal <donb@codesourcery.com>
6517
6518 * NEWS: Announce fork support in the RSP and support
6519 for fork debugging in extended mode.
6520
cbb8991c
DB
65212015-05-12 Don Breazeal <donb@codesourcery.com>
6522
6523 * remote.c (remote_insert_fork_catchpoint): New function.
6524 (remote_remove_fork_catchpoint): New function.
6525 (remote_insert_vfork_catchpoint): New function.
6526 (remote_remove_vfork_catchpoint): New function.
6527 (pending_fork_parent_callback): New function.
6528 (remove_new_fork_child): New function.
6529 (remote_update_thread_list): Call remote_notif_get_pending_events
6530 and remove_new_fork_child.
6531 (extended_remote_kill): Kill fork child when killing the
6532 parent before follow_fork completes.
6533 (init_extended_remote_ops): Initialize target vector with
6534 new fork catchpoint functions.
6535
c269dbdb
DB
65362015-05-12 Don Breazeal <donb@codesourcery.com>
6537
6538 * remote.c (remove_vfork_event_p): New function.
6539 (remote_follow_fork): Add vfork event type to event checking.
6540 (remote_parse_stop_reply): New stop reasons "vfork" and
6541 "vforkdone" for RSP 'T' Stop Reply Packet.
6542
de0d863e
DB
65432015-05-12 Don Breazeal <donb@codesourcery.com>
6544
6545 * linux-nat.c (linux_nat_ptrace_options): New function.
6546 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
6547 Call linux_nat_ptrace_options and use different argument to
6548 linux_enable_event_reporting.
6549 (_initialize_linux_nat): Delete call to
6550 linux_ptrace_set_additional_flags.
c8f6c93c 6551 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
6552 supported_ptrace_options.
6553 (additional_flags): Delete variable.
6554 (linux_check_ptrace_features): Use supported_ptrace_options.
6555 (linux_test_for_tracesysgood, linux_test_for_tracefork):
6556 Likewise, and remove additional_flags check.
6557 (linux_enable_event_reporting): Change 'attached' argument to
6558 'options'. Use supported_ptrace_options.
c8f6c93c 6559 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
6560 supported_ptrace_options.
6561 (linux_ptrace_set_additional_flags): Delete function.
6562 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
6563 Delete function prototype.
6564 * remote.c (remote_fork_event_p): New function.
6565 (remote_detach_pid): New function.
6566 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
6567 if doing detach-on-fork.
6568 (remote_follow_fork): New function.
6569 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
6570 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
6571 (init_extended_remote_ops): Initialize to_follow_fork.
6572
89245bc0
DB
65732015-05-12 Don Breazeal <donb@codesourcery.com>
6574
6575 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
6576 from static to extern.
6577 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
6578 * remote.c (anonymous enum): <PACKET_fork_event_feature,
6579 * PACKET_vfork_event_feature>: New enumeration constants.
6580 (remote_protocol_features): Add table entries for new packets.
6581 (remote_query_supported): Add new feature queries to qSupported
6582 packet.
6583
835205d0
GB
65842015-05-12 Gary Benson <gbenson@redhat.com>
6585
6586 * remote.c (remote_add_inferior): Call exec_file_locate_attach
6587 for fake PIDs as well as real ones.
6588 (remote_pid_to_exec_file): Send empty annex if PID is fake.
6589
4c082a81
SC
65902015-05-09 Siva Chandra Reddy <sivachandra@google.com>
6591
6592 * NEWS (Python Scripting): Mention the new gdb.Value methods.
6593 * python/py-value.c (valpy_reference_value): New function.
6594 (valpy_const_value): Likewise.
6595 (value_object_methods): Add new methods.
6596 * value.c (make_cv_value): New function.
6597 * value.h (make_cv_value): Declare.
6598
afa6c9ab
SL
65992015-05-08 Yao Qi <yao@codesourcery.com>
6600 Sandra Loosemore <sandra@codesourcery.com>
6601
6602 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
6603 to 'lh->include_dirs' before accessing to it.
6604 (psymtab_include_file_name): Likewise.
6605 (dwarf_decode_lines_1): Likewise.
6606 (dwarf_decode_lines): Likewise.
6607 (file_file_name): Likewise.
6608
35d54293
SL
66092015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6610
6611 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
6612 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
6613 (nios2_linux_rt_sigreturn_init): Adjust base address of
6614 register save area.
6615
b73c49b7
SL
66162015-05-08 Sandra Loosemore <sandra@codesourcery.com>
6617
6618 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
6619 "trap 31" as the breakpoint instruction on all targets.
6620
dd9f02a0
JK
66212015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6622
6623 * infcmd.c (print_return_value): Remove unused declaration.
6624
6ad395a7
JB
66252015-05-08 Joel Brobecker <brobecker@adacore.com>
6626
6627 * dwarf2read.c (attr_to_dynamic_prop)
6628 <DW_AT_data_member_location>: Use read_type_die isntead of
6629 get_die_type.
6630
8344af1e
JB
66312015-05-08 Joel Brobecker <brobecker@adacore.com>
6632
6633 * ada-lang.c (ada_convert_actual): Add handling of formals
6634 passed inside an aligner type.
6635
80b0912b
JB
66362015-05-08 Joel Brobecker <brobecker@adacore.com>
6637
6638 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
6639
df2eb078
SC
66402015-05-08 Siva Chandra Reddy <sivachandra@google.com>
6641
6642 PR python/18291
6643 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
6644 Print xmethod matcher status.
6645
2492f0d0
AA
66462015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
6647
6648 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
6649 register in the regcache when treating the PSWM register, and vice
6650 versa.
6651
1c56a84d
GB
66522015-05-07 Gary Benson <gbenson@redhat.com>
6653
6654 * linux-thread-db.c (struct thread_db_info)
6655 <td_ta_map_id2thr_p>: Remove field.
6656 (try_thread_db_load_1): Remove initialization for the above.
6657
74850322
GB
66582015-05-07 Gary Benson <gbenson@redhat.com>
6659
6660 * linux-thread-db.c (struct thread_db_info)
6661 <td_thr_validate_p>: Remove field.
6662 (try_thread_db_load_1): Remove initialization for the above.
6663
e26efa40
JK
66642015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6665
6666 * compile/compile-object-load.c (compile_object_load): Support
6667 mst_text_gnu_ifunc.
6668
851c9091
JK
66692015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6670
6671 * compile/compile.c (compile_to_object): Make the cmd_string parameter
6672 const. Use new variables for the const compatibility.
6673 (eval_compile_command): Make the cmd_string parameter const.
6674 * compile/compile.h (eval_compile_command): Make the cmd_string
6675 parameter const.
6676
f218b647
JB
66772015-05-06 Joel Brobecker <brobecker@adacore.com>
6678
6679 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
6680 comment.
6681 * top.c (deprecated_init_ui_hook): Delete.
6682 (gdb_init): Remove handling of deprecated_init_ui_hook.
6683 * interps.c (clear_interpreter_hooks): Remove handling of
6684 deprecated_init_ui_hook.
6685 * main.c (captured_main): Update comment.
6686
b30a0bc3
JB
66872015-05-06 Joel Brobecker <brobecker@adacore.com>
6688
6689 * solib.c (_initialize_solib): Add "info dll" alias creation.
6690 * windows-nat.c (set_windows_aliases): Delete.
6691 (_initialize_windows_nat): Remove deprecated_init_ui_hook
6692 assignment.
6693 * NEWS: Add news entry about "info dll" now being available
6694 on all platforms.
6695
7c512744
JB
66962015-05-05 Joel Brobecker <brobecker@adacore.com>
6697
6698 * ada-lang.c (value_assign_to_component): Reformat and improve
6699 documentation. Remove all trailing spaces.
6700
0fa7fe50
JB
67012015-05-05 Joel Brobecker <brobecker@adacore.com>
6702
6703 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6704 Stop counting inlined frames as soon as an out-of-line function
6705 is found.
6706
3ea89b92
PMR
67072014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
6708
6709 * dwarf2read.c (inherit_abstract_dies): Skip
6710 DW_TAG_GNU_call_site dies while inheriting children of an
6711 abstract DIE into a scope.
6712 (read_lexical_block_scope): Inherit abstract DIE's for
6713 lexical scopes.
6714
2478d075
JB
67152015-05-05 Joel Brobecker <brobecker@adacore.com>
6716
6717 * ada-valprint.c (val_print_packed_array_elements): Delete
6718 variable "len". Add a type-length check when comparing two
6719 consecutive elements of the array. Use the element's actual
6720 length in call to value_contents_eq.
6721 * ada-lang.c (ada_value_primitive_packed_val): Always return
6722 a value whose type has been resolved.
6723
fc958966
JB
67242015-05-05 Joel Brobecker <brobecker@adacore.com>
6725
6726 * ada-lang.c (ada_value_primitive_packed_val): Recompute
6727 BIT_SIZE and LEN if the size of the resolved type is smaller
6728 than BIT_SIZE * HOST_CHAR_BIT.
6729
ca34b84f
JB
67302015-05-05 Joel Brobecker <brobecker@adacore.com>
6731
6732 * ada-lang.c (ada_value_primitive_packed_val): Use a more
6733 correct address in call to value_at. Adjust call to
6734 value_address accordingly.
6735
62c67f3c
JB
67362015-05-05 Joel Brobecker <brobecker@adacore.com>
6737
6738 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
6739 to print it.
6740
c3345124
JB
67412015-05-05 Joel Brobecker <brobecker@adacore.com>
6742
6743 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
6744 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
6745 pinfo->valaddr.
6746 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
6747 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
6748 (resolve_dynamic_type_internal): Set pinfo.valaddr.
6749 Add handling of addr_stack->valaddr.
6750 (resolve_dynamic_type): Add "valaddr" parameter.
6751 Set pinfo.valaddr field.
6752 * ada-lang.c (ada_discrete_type_high_bound): Update call to
6753 resolve_dynamic_type.
6754 (ada_discrete_type_low_bound): Likewise.
6755 * findvar.c (default_read_var_value): Likewise.
6756 * value.c (value_from_contents_and_address): Likewise.
6757
75ea5859
JB
67582015-05-05 Joel Brobecker <brobecker@adacore.com>
6759
6760 * gdbtypes.c (resolve_dynamic_array): Use
6761 create_array_type_with_stride instead of create_array_type.
6762
0952813b
DD
67632015-04-30 DJ Delorie <dj@redhat.com>
6764
6765 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
6766 rl78_decode_opcode
6767
2ce1cdbf
DE
67682015-04-29 Doug Evans <dje@google.com>
6769
6770 PR python/18285
6771 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
6772 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
6773 EVAL_AVOID_SIDE_EFFECTS for xmethods.
6774 * extension-priv.h (struct extension_language_ops)
6775 <get_xmethod_result_type>: New member.
6776 * extension.c (get_xmethod_result_type): New function.
6777 * extension.h (get_xmethod_result_type): Declare.
6778 * python/py-xmethods.c (get_result_type_method_name): New static
6779 global.
6780 (py_get_result_type_method_name): Ditto.
6781 (gdbpy_get_xmethod_result_type): New function.
6782 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
6783 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
6784 * python/python.c (python_extension_ops): Add
6785 gdbpy_get_xmethod_result_type.
6786 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
6787 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
6788 xmethods.
6789 (value_x_unop): Ditto.
6790 * value.c (result_type_of_xmethod): New function.
6791 * value.h (result_type_of_xmethod): Declare.
6792
998d2a3e
GB
67932015-04-29 Gary Benson <gbenson@redhat.com>
6794
6795 * solib.c (solib_find_1): Allow fd argument to be NULL.
6796 (exec_file_find): Update comment.
6797 (solib_find): Likewise.
6798 * exec.c (exec_file_locate_attach): Use NULL as fd
6799 argument to exec_file_find to avoid having to close
6800 the opened file.
6801 * infrun.c (follow_exec): Likewise.
6802
34f5f757
DE
68032015-04-28 Doug Evans <dje@google.com>
6804
6805 PR python/18299
6806 * python/lib/gdb/printing.py (register_pretty_printer): Handle
6807 name or __name__ attributes. Handle gdb module as first argument.
6808
69b4374a
DE
68092015-04-28 Doug Evans <dje@google.com>
6810
6811 PR python/18089
6812 * python/py-prettyprint.c (print_children): Verify result of children
6813 iterator. Provide better error message.
6814 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
6815 * python/python.c (gdbpy_print_python_errors_p): New function.
6816
5e7cf078
DE
68172015-04-28 Doug Evans <dje@google.com>
6818
6819 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
6820
59fb7612
SS
68212015-04-28 Sasha Smundak <asmundak@google.com>
6822
6823 * NEWS: Mention gdb.Type.optimized_out method.
6824 * python/py-type.c (typy_optimized_out): New function.
6825
cea6e4f1
JB
68262015-04-28 John Baldwin <jhb@FreeBSD.org>
6827
6828 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
6829
24b73f8e
PP
68302015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6831
6832 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
6833 (initialize_utils): Move call of init_page_info() to ...
6834 * top.c (gdb_init): ... here.
6835
a88d0bb3
PP
68362015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6837
6838 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
6839 (tui_sigwinch_handler): Still update our idea of
6840 the terminal's width and height even when TUI is not active.
6841
d6e5e7f7
PP
68422015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6843
6844 * utils.h (set_screen_width_and_height): Declare.
6845 * utils.c (set_screen_width_and_height): Define.
6846 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
6847
ff862be4
GB
68482015-04-28 Gary Benson <gbenson@redhat.com>
6849
6850 * infrun.c (solist.h): New include.
6851 (follow_exec): Use exec_file_find to prefix execd_pathname
6852 with gdb_sysroot.
6853
2eb639cb
PP
68542015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6855
6856 * tui/tui-source.c (tui_set_source_content): Avoid calling
6857 strcpy() when offset is 0.
6858
97206799
PP
68592015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6860
6861 PR gdb/18155
6862 * tui/tui-data.c (tui_free_window): Don't free the locator
6863 window when passed an SRC_WIN or a DISASSEM_WIN.
6864
63ed8182
PP
68652015-04-28 Patrick Palka <patrick@parcs.ath.cx>
6866
6867 * tui/tui-data.h (struct tui_win_element): Forward-declare.
6868 (tui_win_content): Move declaration.
6869 (struct tui_gen_win_info): Give 'content' field the
6870 type tui_win_content.
6871 * tui/tui-data.c (init_content_element): Remove redundant and
6872 erroneous casts.
6873 (tui_add_content_elements): Remove erroneous cast.
6874 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
6875 casts.
6876 (tui_get_begin_asm_address): Likewise.
6877 * tui/tui-regs.c (tui_show_registers): Likewise.
6878 (tui_show_register_group): Likewise.
6879 (tui_display_registers_from): Likewise.
6880 (tui_check_register_values): Likewise.
6881 * tui/tui-source.c (tui_set_source_content): Likewise.
6882 (tui_set_source_content_nil): Likewise.
6883 (tui_source_is_displayed): Likewise.
6884 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6885 (tui_set_locator_fullname): Likewise.
6886 (tui_set_locator_info): Likewise.
6887 (tui_show_frame_info): Likewise.
6888 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
6889 (tui_show_source_line): Likewise.
6890 (tui_horizontal_source_scroll): Likewise.
6891 (tui_update_breakpoint_info): Likewise.
6892 (tui_set_exec_info_content): Likewise.
6893 (tui_show_exec_info_content): Likewise.
6894 (tui_alloc_source_buffer): Likewise.
6895 (tui_line_is_displayed): Likewise.
6896 (tui_addr_is_displayed): Likewise.
6897
d2b41ca0
JB
68982015-04-27 John Baldwin <jhb@FreeBSD.org>
6899
6900 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
6901 event if PL_FLAG_EXEC is set.
6902 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
6903 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
6904 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
6905 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
6906 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
6907
e58e05d6
JB
69082015-04-27 John Baldwin <jhb@FreeBSD.org>
6909
6910 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
6911 [TDP_RFPPWAIT] New variable fbsd_pending_children.
6912 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
6913 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
6914 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
6915 [PT_LWPINFO] (fbsd_wait): New function.
6916 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
6917 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
6918 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
6919 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
6920 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
6921 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
6922 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
6923 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
6924 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
6925 "fbsd_wait".
6926 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
6927 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
6928 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
6929 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
6930 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
6931 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
6932 Set "to_post_attach" to "fbsd_post_attach".
6933
8f60fe01
JB
69342015-04-27 John Baldwin <jhb@FreeBSD.org>
6935
6936 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
6937 (fbsd_find_memory_regions): Mark static.
6938 (fbsd_nat_add_target): New function.
6939 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
6940 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
6941 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
6942 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
6943 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
6944 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
6945
5fbae7d1
GB
69462015-04-27 Gary Benson <gbenson@redhat.com>
6947
6948 * objfiles.c (allocate_objfile): Do not attempt to expand name
6949 if name is a "target:" filename.
6950 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
6951 to load auto-load scripts for objfiles with "target:" filenames.
6952
417c80f9
AA
69532015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6954
6955 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
6956 (enum s390_vector_abi_kind): New enum.
6957 (struct gdbarch_tdep)<vector_abi>: New field.
6958 (s390_effective_inner_type): Add parameter min_size. Stop
6959 unwrapping if the inner type is smaller than min_size.
6960 (s390_function_arg_float): Adjust call to
6961 s390_effective_inner_type.
6962 (s390_function_arg_vector): New function.
6963 (s390_function_arg_integer): Adjust comment.
6964 (struct s390_arg_state)<vr>: New field.
6965 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
6966 arguments according to vector ABI when appropriate.
6967 (s390_push_dummy_call): Initialize the argument state's field
6968 'vr'. Adjust calls to s390_handle_arg.
6969 (s390_register_return_value): Handle vector return values.
6970 (s390_return_value): Apply the "register" return value convention
6971 to a vector when appropriate.
6972 (s390_gdbarch_init): Initialize tdep->vector_abi.
6973 * NEWS: Announce S390 vector ABI support.
6974
4e65a17e
AA
69752015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6976
6977 * s390-linux-tdep.c (s390_return_value_convention): Remove
6978 function. Inline its logic...
6979 (s390_return_value): ...here. Instead, move the handling of the
6980 "register" return value convention...
6981 (s390_register_return_value): ...here. New function.
6982
80f75320
AA
69832015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
6984
6985 * s390-linux-tdep.c
6986 (is_float_singleton): Remove function. Move the "singleton" part
6987 of the logic...
6988 (s390_effective_inner_type): ...here. New function.
6989 (is_float_like): Remove function. Inline its logic...
6990 (s390_function_arg_float): ...here.
6991 (is_pointer_like, is_integer_like, is_struct_like): Remove
6992 functions. Inline their logic...
6993 (s390_function_arg_integer): ...here.
6994 (s390_function_arg_pass_by_reference): Remove function.
6995 (extend_simple_arg): Remove function.
6996 (alignment_of): Remove function.
6997 (struct s390_arg_state): New structure.
6998 (s390_handle_arg): New function.
6999 (s390_push_dummy_call): Move parameter placement logic to the new
7000 function s390_handle_arg. Call it for calculating the stack area
7001 sizes first, and again for actually writing the parameters.
7002
6dbc9c04
AA
70032015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
7004
7005 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
7006 false if the argument is zero.
7007
9e195661
PMR
70082015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
7009
7010 * ada-lang.c (template_to_static_fixed_type): Return input type
7011 when it is already fixed. Cache the input type itself when not
7012 creating a static fixed copy. Make it explicit that we never
7013 molestate the input type.
7014 * gdbtypes.c (resolve_dynamic_struct): Reset the
7015 TYPE_TARGET_TYPE field for resolved copies.
7016
460efde1
JB
70172015-04-27 Joel Brobecker <brobecker@adacore.com>
7018
7019 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
7020 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
7021 (template_to_static_fixed_type): Call ada_check_typedef only
7022 when necessary.
7023
6faec16b
AB
70242015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
7025
7026 * cli/cli-dump.c (srec_dump_command): Add internationalization
7027 mark ups.
7028 (ihex_dump_command): Likewise.
7029 (tekhex_dump_command): Likewise.
7030 (binary_dump_command): Likewise.
7031 (binary_append_command): Likewise.
7032
cf75d6c3
AB
70332015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
7034
7035 * cli/cli-dump.c (verilog_cmdlist): New variable.
7036 (dump_verilog_memory): New function.
7037 (dump_verilog_value): New function.
7038 (verilog_dump_command): New function.
7039 (_initialize_cli_dump): Add new commands to support verilog dump
7040 format.
7041 * NEWS: Add entry for "dump verilog".
7042
8cd00c59
PMR
70432015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
7044
7045 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
7046 descriptive type when there is none.
7047
8900d71e
PP
70482015-04-23 Patrick Palka <patrick@parcs.ath.cx>
7049
7050 * tui/tui-win.c (tui_async_resize_screen): Call
7051 rl_resize_terminal().
7052
f16eab5f
JT
70532015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
7054
7055 * windows-nat.c (handle_output_debug_string): Don't change
7056 current_event.dwThreadId.
7057 (get_windows_debug_event): Use thread_id, rather than relying on
7058 current_event.dwThreadId being changed.
7059
68ffc902
JT
70602015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
7061
7062 * windows-nat.c (windows_continue): Report an error if
7063 ContinueDebugEvent() fails.
7064
23942819
JT
70652015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
7066
7067 * windows-nat.c (windows_resume): Fix misspelling in debug output.
7068
e6ad66bd
JT
70692015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
7070
7071 * windows-nat.c (get_windows_debug_event): Replace retval with
7072 thread_id throughout. Update stale comment.
7073
776704b9
JT
70742015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
7075
7076 * windows-nat.c (get_windows_debug_event): Don't use ternary
7077 conditional operator.
7078
8aae4344
PM
70792015-04-21 Pierre Muller <muller@sourceware.org>
7080
7081 PR pascal/17815
7082 p-exp.y (yylex): Reorganize code to return the matched pattern
7083 for a field of this.
7084
819843c7
GB
70852015-04-21 Gary Benson <gbenson@redhat.com>
7086
7087 * common/fileio.h (fileio_to_host_openflags): New declaration.
7088 * common/fileio.c (fcntl.h): New include.
7089 (fileio_to_host_openflags): New function, factored out from...
7090 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
7091 Single use updated.
7092
0bca7f99
KB
70932015-04-21 Kevin Buettner <kevinb@redhat.com>
7094
7095 * rl78-tdep.c (RL78_SP_ADDR): Define.
7096 (opc_reg_to_gdb_regnum): New static function.
7097 (rl78_analyze_prologue): Recognize instructions forming slightly
7098 more interesting prologues.
7099
e771e4be
PMR
71002015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
7101
7102 Revert:
7103 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
7104 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
7105 TYPE_CODE_REF types so that they are not considered as dynamic
7106 depending on the referenced type.
7107 (resolve_dynamic_type_internal): Likewise.
7108
ee715b5a
PMR
71092015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
7110
7111 Revert:
7112 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
7113 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
7114 "top_level" parameter.
7115 (resolve_dynamic_type_internal): Remove the unused "top_level"
7116 parameter. Update call to is_dynamic_type_internal.
7117 (is_dynamic_type): Update call to is_dynamic_type_internal.
7118 (resolve_dynamic_range): Update call to
7119 resolve_dynamic_type_internal.
7120 (resolve_dynamic_union): Likewise.
7121 (resolve_dynamic_struct): Likewise.
7122 (resolve_dynamic_type): Likewise.
7123
e31d7699
GKB
71242015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
7125
7126 * breakpoint.c (update_dprintf_command_list): Remove duplicated
7127 xmalloc.
7128
d214e5e7
TS
71292015-04-20 Thomas Schwinge <thomas@codesourcery.com>
7130
110f9112
TS
7131 * reply_mig_hack.awk: Robustify parsing.
7132
d214e5e7
TS
7133 * reply_mig_hack.awk: Don't bother to declare an intermediate
7134 function pointer variable.
7135
8f61baf8
DE
71362015-04-17 Doug Evans <dje@google.com>
7137
7138 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
7139 to "exec_displacement" to avoid confusion with inner use of the name.
7140
dbbf180a
YQ
71412015-04-17 Pedro Alves <palves@redhat.com>
7142
7143 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
7144 if HW point of TYPE isn't supported.
7145
059790a0
YQ
71462015-04-17 Yao Qi <yao.qi@linaro.org>
7147 Pedro Alves <palves@redhat.com>
7148
7149 * target.h (target_can_use_hardware_watchpoint): Update comments.
7150 Remove trailing ";".
7151
1b6e6f5c
GB
71522015-04-17 Gary Benson <gbenson@redhat.com>
7153
7154 * remote.c (remote_add_inferior): New argument try_open_exec.
7155 If nonzero, attempt to open the inferior's executable file as
7156 the main executable if no main executable is open already.
7157 All callers updated.
7158 * NEWS: Mention that GDB now supports automatic location and
7159 retrieval of executable + files from remote targets.
7160
c78fa86a
GB
71612015-04-17 Gary Benson <gbenson@redhat.com>
7162
7163 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
7164 * remote.c (PACKET_qXfer_exec_file): Likewise.
7165 (remote_protocol_features): Register the
7166 "qXfer:exec-file:read" feature.
7167 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
7168 (remote_pid_to_exec_file): New function.
7169 (init_remote_ops): Initialize to_pid_to_exec_file.
7170 (_initialize_remote): Register new "set/show remote
7171 pid-to-exec-file-packet" command.
7172 * NEWS: Announce new qXfer:exec-file:read packet.
7173
e0d86d2c
GB
71742015-04-17 Gary Benson <gbenson@redhat.com>
7175
7176 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
7177 New declaration.
7178 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
7179 New function, factored out from...
7180 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
7181
a9a5a3d1
GB
71822015-04-17 Gary Benson <gbenson@redhat.com>
7183
7184 * exec.c (solist.h): New include.
7185 (exec_file_locate_attach): Prefix absolute executable
7186 paths with gdb_sysroot if set.
7187 * NEWS: Mention that executable paths may be prepended
7188 with sysroot.
7189
af1900b0
GB
71902015-04-17 Gary Benson <gbenson@redhat.com>
7191
7192 * solist.h (exec_file_find): New declaration.
7193 * solib.c (solib_find_1): New function, factored out from...
7194 (solib_find): ...here.
7195 (exec_file_find): New function.
7196
a10de604
GB
71972015-04-17 Gary Benson <gbenson@redhat.com>
7198
7199 * gdbcore.h (exec_file_locate_attach): New declaration.
7200 * exec.c (exec_file_locate_attach): New function, factored
7201 out from...
7202 * infcmd.c (attach_command_post_wait): ...here.
7203
92209ddf
MF
72042015-04-17 Mike Frysinger <vapier@gentoo.org>
7205
7206 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
7207
8550d3b3
YQ
72082015-04-16 Yao Qi <yao.qi@linaro.org>
7209
7210 * infrun.c (maybe_software_singlestep): Declare.
7211 (displaced_step_fixup): Call maybe_software_singlestep.
7212
30b3dd9d
DE
72132015-04-15 Doug Evans <dje@google.com>
7214
7215 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
7216
61d96d7e
DE
72172015-04-15 Doug Evans <dje@google.com>
7218
7219 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
7220
40d2f8d6
SM
72212015-04-15 Simon Marchi <simon.marchi@ericsson.com>
7222
7223 * python/lib/gdb/command/unwinders.py: Add parentheses.
7224
6bbbba9b
YQ
72252015-04-15 Yao Qi <yao.qi@linaro.org>
7226
7227 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
7228
2bb2dcab
YQ
72292015-04-15 Yao Qi <yao.qi@linaro.org>
7230
7231 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
7232
41f071ef
YQ
72332015-04-15 Yao Qi <yao.qi@linaro.org>
7234
7235 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
7236 dsc->insn_size instead of 4.
7237
326a5c7e
GB
72382015-04-14 Gary Benson <gbenson@redhat.com>
7239
7240 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
7241 * minidebug.c (lzma_stat): Likewise.
7242 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
7243 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
7244
dd177e81
SS
72452015-04-13 Stan Shebs <stanshebs@google.com>
7246
7247 * MAINTAINERS: Update my email address.
7248
97de3545
JB
72492015-04-13 John Baldwin <jhb@FreeBSD.org>
7250
7251 * amd64-tdep.c (amd64_target_description): New function.
7252 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
7253 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
7254 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
7255 x86 extended save area.
7256 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
7257 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
7258 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
7259 (_initialize_amd64fbsd_nat): Set "to_read_description" to
7260 "amd64fbsd_read_description".
7261 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
7262 (amd64fbsd_supply_xstateregset): New function.
7263 (amd64fbsd_collect_xstateregset): New function.
7264 Add "amd64fbsd_xstateregset".
7265 (amd64fbsd_iterate_over_regset_sections): New function.
7266 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
7267 "I386_FBSD_XSAVE_XCR0_OFFSET".
7268 Add "iterate_over_regset_sections" gdbarch method.
7269 Add "core_read_description" gdbarch method.
7270 * i386-tdep.c (i386_target_description): New function.
7271 * i386-tdep.h: Export i386_target_description and tdesc_i386.
7272 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
7273 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
7274 x86 extended save area.
7275 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
7276 * i386bsd-nat.h: Export i386bsd_xsave_len.
7277 * i386fbsd-nat.c (i386fbsd_read_description): New function.
7278 (_initialize_i386fbsd_nat): Set "to_read_description" to
7279 "i386fbsd_read_description".
7280 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
7281 (i386fbsd_core_read_description): New function.
7282 (i386fbsd_supply_xstateregset): New function.
7283 (i386fbsd_collect_xstateregset): New function.
7284 Add "i386fbsd_xstateregset".
7285 (i386fbsd_iterate_over_regset_sections): New function.
7286 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
7287 "I386_FBSD_XSAVE_XCR0_OFFSET".
7288 Add "iterate_over_regset_sections" gdbarch method.
7289 Add "core_read_description" gdbarch method.
7290 * i386fbsd-tdep.h: New file.
7291
4f45d445
JK
72922015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7293
7294 * NEWS (Changes since GDB 7.9): Add removed -xdb.
7295 * breakpoint.c (command_line_is_silent): Remove xdb_commands
7296 conditional.
7297 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
7298 and lb.
7299 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
7300 va.
7301 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
7302 conditional.
7303 * defs.h (xdb_commands): Remove declaration.
7304 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
7305 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
7306 * infcmd.c (run_no_args_command, go_command): Remove.
7307 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
7308 * infrun.c (xdb_handle_command): Remove.
7309 (_initialize_infrun): Remove xdb_commands for lz and z.
7310 * main.c (xdb_commands): Remove variable.
7311 (captured_main): Remove "xdb" from long_options.
7312 (print_gdb_help): Remove --xdb from help.
7313 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
7314 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
7315 * stack.c (backtrace_full_command, args_plus_locals_info)
7316 (current_frame_command): Remove.
7317 (_initialize_stack): Remove xdb_commands for t, T and l.
7318 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
7319 * thread.c (_initialize_thread): Remove xdb_commands condition.
7320 * tui/tui-layout.c (tui_toggle_layout_command)
7321 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
7322 (_initialize_tui_layout): Remove xdb_commands for td and ts.
7323 * tui/tui-regs.c (tui_scroll_regs_forward_command)
7324 (tui_scroll_regs_backward_command): Remove.
7325 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
7326 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
7327 (_initialize_tui_win): Remove xdb_commands for U and w.
7328 * utils.c (pagination_on_command, pagination_off_command): Remove.
7329 (initialize_utils): Remove xdb_commands for am and sm.
7330
cb71640d
PA
73312015-04-10 Pedro Alves <palves@redhat.com>
7332
7333 * infrun.c (displaced_step_fixup): Switch to the event ptid
7334 earlier. If the thread stopped for a watchpoint and the
7335 target/arch has non-continuable watchpoints, cancel the displaced
7336 step.
7337 (resume): Don't start a displaced step if in-line step-over info
7338 is valid.
7339
8f572e5c
PA
73402015-04-10 Pedro Alves <palves@redhat.com>
7341
7342 * infrun.c (displaced_step_in_progress): New function.
7343 (do_target_resume): Advise target to report all signals if
7344 displaced stepping.
7345
8d707a12
PA
73462015-04-10 Pedro Alves <palves@redhat.com>
7347
7348 PR gdb/18216
7349 * infrun.c (process_event_stop_test): Don't assume a step-resume
7350 is set if tp->stepped_breakpoint is true.
7351
ef713951
YQ
73522015-04-10 Yao Qi <yao.qi@linaro.org>
7353
7354 * arm-tdep.c (install_alu_reg): Update comment.
7355 (thumb_copy_alu_reg): Remove local variable rn. Update
7356 debugging message. Use r2 instead of r1 in the modified
7357 instruction.
7358
906d60cf
PA
73592015-04-10 Pedro Alves <palves@redhat.com>
7360
7361 PR gdb/13858
7362 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
7363 linux_displaced_step_location as gdbarch_displaced_step_location
7364 hook.
7365 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
7366 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
7367 * linux-tdep.c (linux_displaced_step_location): New function,
7368 based on ppc_linux_displaced_step_location.
7369 * linux-tdep.h (linux_displaced_step_location): New declaration.
7370 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
7371 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
7372 Delete.
7373 (ppc_linux_init_abi): Install linux_displaced_step_location as
7374 gdbarch_displaced_step_location hook, even without Cell/B.E..
7375 (_initialize_ppc_linux_tdep): Don't install
7376 ppc_linux_inferior_created as inferior_created observer.
7377 * s390-linux-tdep.c (s390_gdbarch_init): Install
7378 linux_displaced_step_location as gdbarch_displaced_step_location
7379 hook.
7380
7823a941
GB
73812015-04-09 Gary Benson <gbenson@redhat.com>
7382
7383 * common/common-remote-fileio.h: Rename to...
7384 * common/fileio.h: ...this. Update all references.
7385 (remote_fileio_to_fio_error): Rename to...
7386 (host_to_fileio_error): ...this.
7387 (remote_fileio_to_be): Rename to...
7388 (host_to_bigendian): ...this. Update all callers.
7389 (remote_fileio_to_fio_uint): Rename to...
7390 (host_to_fileio_uint): ...this. Update all callers.
7391 (remote_fileio_to_fio_time): Rename to...
7392 (host_to_fileio_time): ...this. Update all callers.
7393 (remote_fileio_to_fio_stat): Rename to...
7394 (host_to_fileio_stat): ...this.
7395 Update all references.
7396 * common/common-remote-fileio.c: Rename to...
7397 * common/fileio.c: ...this. Update all references.
7398 (remote_fileio_to_fio_error): Rename to...
7399 (host_to_fileio_error): ...this. Update all callers.
7400 (remote_fileio_mode_to_target): Rename to...
7401 (fileio_mode_pack): ...this. Update all callers.
7402 (remote_fileio_to_fio_mode): Rename to...
7403 (host_to_fileio_mode): ...this. Update all callers.
7404 (remote_fileio_to_fio_ulong): Rename to...
7405 (host_to_fileio_ulong): ...this. Update all callers.
7406 (remote_fileio_to_fio_stat): Rename to...
7407 (host_to_fileio_stat): ...this. Update all callers.
7408
f2983cc3
AW
74092015-04-09 Andy Wingo <wingo@igalia.com>
7410
7411 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
7412 (frame_functions): Bind gdbscm_frame_read_register to
7413 frame-read-register.
7414 * guile/lib/gdb.scm (frame-read-register): Export.
7415
b88bb450
GB
74162015-04-09 Gary Benson <gbenson@redhat.com>
7417
7418 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
7419 New declaration.
7420 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
7421 New function, factored out the named functions below.
7422 * inf-child.c (gdb/fileio.h): Remove include.
7423 (common-remote-fileio.h): New include.
7424 (inf_child_errno_to_fileio_error): Remove function. Update
7425 all callers to use remote_fileio_to_fio_error.
7426 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
7427
2f2680f3
AW
74282015-04-09 Andy Wingo <wingo@igalia.com>
7429
7430 * MAINTAINERS (Write After Approval): Add Andy Wingo.
7431
5a2d4533
L
74322015-04-09 H.J. Lu <hongjiu.lu@intel.com>
7433
7434 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
7435 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
7436 * configure: Regenerated.
7437
421693b0
PA
74382015-04-09 Pedro Alves <palves@redhat.com>
7439
7440 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
7441 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
7442 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
7443 * gnulib/import/Makefile.am: Update.
7444 * gnulib/import/Makefile.in: Update.
7445 * gnulib/import/m4/gnulib-cache.m4: Update.
7446 * gnulib/import/m4/gnulib-comp.m4: Update.
7447 * gnulib/import/m4/strtok_r.m4: New file.
7448 * gnulib/import/strtok_r.c: New file.
7449
f543dc83
PA
74502015-04-09 Pedro Alves <palves@redhat.com>
7451
7452 * gnulib/update-gnulib.sh (aclocal version check): Filter out
7453 "called too early to check prototype".
7454
6d62641c
SDJ
74552015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
7456
7457 PR python/16699
7458 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
7459 use a caching mechanism. Adjust comments and code to reflect
7460 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
7461 (cmdpy_completer_handle_brkchars): Adjust call to
7462 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
7463 (cmdpy_completer): Likewise.
7464
85558555
YQ
74652015-04-08 Yao Qi <yao.qi@linaro.org>
7466
7467 * spu-tdep.c (spu_gdbarch_init): Don't call
7468 set_gdbarch_cannot_step_breakpoint.
7469
d249a14a
SDJ
74702015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
7471
7472 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
7473
8a06aea7
PA
74742015-04-07 Pedro Alves <palves@redhat.com>
7475
7476 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
7477 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
7478 (delete_exited_threads): New declaration.
7479 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
7480 * linux-nat.c (linux_nat_update_thread_list): New function.
7481 (linux_nat_add_target): Install it.
7482 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
7483 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
7484 (delete_exited_threads): New function.
7485
d9b67d9f
PA
74862015-04-07 Pedro Alves <pedro@codesourcery.com>
7487
7488 * infrun.c (resume) <displaced stepping debug output>: Get the
7489 leader thread's regcache, not resume_ptid's.
7490
2c26b84f
DE
74912015-04-06 Doug Evans <xdje42@gmail.com>
7492
7493 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
7494 VAR_DOMAIN.
7495 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
7496 Include symbol domain in debugging output.
7497
7a85168d
PA
74982015-04-06 Pedro Alves <palves@redhat.com>
7499 Bernd Edlinger <bernd.edlinger@hotmail.de>
7500
7501 * configure.ac: Remove the mingw32-specific stub-termcap.o
7502 fallback, and instead fallback to the stub termcap on all hosts.
7503 * configure: Regenerate.
7504 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
7505 symbols.
7506
25755e2b
PMR
75072015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
7508
7509 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
7510 "top_level" parameter.
7511 (resolve_dynamic_type_internal): Remove the unused "top_level"
7512 parameter. Update call to is_dynamic_type_internal.
7513 (is_dynamic_type): Update call to is_dynamic_type_internal.
7514 (resolve_dynamic_range): Update call to
7515 resolve_dynamic_type_internal.
7516 (resolve_dynamic_union): Likewise.
7517 (resolve_dynamic_struct): Likewise.
7518 (resolve_dynamic_type): Likewise.
7519
961f4160
PMR
75202015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
7521
7522 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
7523 TYPE_CODE_REF types so that they are not considered as dynamic
7524 depending on the referenced type.
7525 (resolve_dynamic_type_internal): Likewise.
7526
39f3de7c
L
75272015-04-02 H.J. Lu <hongjiu.lu@intel.com>
7528
7529 * Makefile.in (top_srcdir): New.
7530 * configure: Regenerated.
7531
599bd15c
GB
75322015-04-02 Gary Benson <gbenson@redhat.com>
7533
7534 * NEWS: Announce the new default sysroot of "target:".
7535
fed040c6
GB
75362015-04-02 Gary Benson <gbenson@redhat.com>
7537
7538 * main.c (captured_main): Set gdb_sysroot to "target:"
7539 if not otherwise set.
7540
64c0b5de
GB
75412015-04-02 Gary Benson <gbenson@redhat.com>
7542
7543 * exec.c (exec_file_attach): Support "target:" filenames.
7544
b57fbfba
GB
75452015-04-02 Gary Benson <gbenson@redhat.com>
7546
7547 * solib.c (solib_find): Strip "target:" prefix from sysroot
7548 if accessing local files.
7549
97a41605
GB
75502015-04-02 Gary Benson <gbenson@redhat.com>
7551
7552 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
7553 checks and error messages.
7554
2938e6cf
GB
75552015-04-02 Gary Benson <gbenson@redhat.com>
7556
7557 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
7558 (remote_filename_p): Remove declaration.
7559 (remote_bfd_open): Likewise.
7560 * remote.c (remote_bfd_iovec_open): Remove function.
7561 (remote_bfd_iovec_close): Likewise.
7562 (remote_bfd_iovec_pread): Likewise.
7563 (remote_bfd_iovec_stat): Likewise.
7564 (remote_filename_p): Likewise.
7565 (remote_bfd_open): Likewise.
7566 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
7567 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
7568 (gdb_bfd_open_maybe_remote): Remove function.
7569 (symfile_bfd_open): Replace remote filename check with
7570 target filename check.
7571 (reread_symbols): Use gdb_bfd_open.
7572 * build-id.c (gdbcore.h): New include.
7573 (build_id_to_debug_bfd): Use gdb_bfd_open.
7574 * infcmd.c (attach_command_post_wait): Remove remote filename
7575 check.
7576 * solib.c (solib_find): Replace remote-specific handling with
7577 target-specific handling. Update comments where necessary.
7578 (solib_bfd_open): Replace remote-specific handling with
7579 target-specific handling.
7580 (gdb_sysroot_changed): New function.
7581 (_initialize_solib): Call the above when gdb_sysroot changes.
7582 * windows-tdep.c (gdbcore.h): New include.
7583 (windows_xfer_shared_library): Use gdb_bfd_open.
7584
f08e97fe
GB
75852015-04-02 Gary Benson <gbenson@redhat.com>
7586
7587 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
7588 (is_target_filename): New declaration.
7589 (gdb_bfd_has_target_filename): Likewise.
7590 (gdb_bfd_open): Update documentation comment.
7591 * gdb_bfd.c (target.h): New include.
7592 (gdb/fileio.h): Likewise.
7593 (is_target_filename): New function.
7594 (gdb_bfd_has_target_filename): Likewise.
7595 (fileio_errno_to_host): Likewise.
7596 (gdb_bfd_iovec_fileio_open): Likewise.
7597 (gdb_bfd_iovec_fileio_pread): Likewise.
7598 (gdb_bfd_iovec_fileio_close): Likewise.
7599 (gdb_bfd_iovec_fileio_fstat): Likewise.
7600 (gdb_bfd_open): Use target fileio to access paths prefixed
7601 with "target:" where necessary.
7602
4bd7dc42
GB
76032015-04-02 Gary Benson <gbenson@redhat.com>
7604
7605 * target.h (struct target_ops) <to_filesystem_is_local>:
7606 New field.
7607 (target_filesystem_is_local): New macro.
7608 * target-delegates.c: Regenerate.
7609 * remote.c (remote_filesystem_is_local): New function.
7610 (init_remote_ops): Initialize to_filesystem_is_local.
7611
9b15c1f0
GB
76122015-04-02 Gary Benson <gbenson@redhat.com>
7613
7614 * target.h (struct target_ops) <to_fileio_fstat>: New field.
7615 (target_fileio_fstat): New declaration.
7616 * target.c (target_fileio_fstat): New function.
7617 * inf-child.c (inf_child_fileio_fstat): Likewise.
7618 (inf_child_target): Initialize to_fileio_fstat.
7619 * remote.c (init_remote_ops): Likewise.
7620
d11916aa
SS
76212015-04-01 Sasha Smundak <asmundak@google.com>
7622
7623 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
7624 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
7625 (py-unwind.o): New recipe.
7626 * NEWS: mention Python frame unwinding.
7627 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
7628 gdb/unwinder.py and gdb/command/unwinder.py
7629 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
7630 list.
7631 (execute_unwinders): New function.
7632 * python/lib/gdb/command/unwinders.py: New file.
7633 * python/lib/gdb/unwinder.py: New file.
7634 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
7635 (objfpy_dealloc): Decrement frame_unwinders reference count.
7636 (objfpy_initialize): Create frame_unwinders list.
7637 (objfpy_get_frame_unwinders): New function.
7638 (objfpy_set_frame_unwinders): Ditto.
7639 (objfile_getset): Add frame_unwinders attribute to Objfile.
7640 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
7641 (pspy_dealloc): Decrement frame_unwinders reference count.
7642 (pspy_initialize): Create frame_unwinders list.
7643 (pspy_get_frame_unwinders): New function.
7644 (pspy_set_frame_unwinders): Ditto.
7645 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
7646 * python/py-unwind.c: New file.
7647 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
7648 (objpy_get_frame_unwinders): New prototype.
7649 (gdbpy_initialize_unwind): New prototype.
7650 * python/python.c (gdbpy_apply_type_printers): Call
7651 gdbpy_initialize_unwind.
7652
6b403daa
PA
76532015-04-01 Pedro Alves <palves@redhat.com>
7654
7655 * infrun.c (resume): Check currently_stepping after clearing
7656 stepped_breakpoint, not before.
7657
1176ecec
PA
76582015-04-01 Pedro Alves <palves@redhat.com>
7659
7660 * infrun.c (print_target_wait_results): Print all the ptid
7661 elements.
7662
de1fe8c8
PA
76632015-04-01 Pedro Alves <palves@redhat.com>
7664
7665 * infrun.c (keep_going): Also discard cleanups if inserting
7666 breakpoints fails.
7667
e6f5c25b
PA
76682015-04-01 Pedro Alves <palves@redhat.com>
7669
7670 * infrun.c (wait_for_inferior): Install the
7671 finish_thread_state_cleanup cleanup across the whole function, not
7672 just around handle_inferior_event.
7673
1ac806b8
PA
76742015-04-01 Pedro Alves <palves@redhat.com>
7675
7676 * infrun.c (resume) <step past permanent breakpoint>: Use
7677 do_target_resume.
7678
2ee52aa4
PA
76792015-04-01 Pedro Alves <palves@redhat.com>
7680
7681 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
7682
5445da1b
PMR
76832015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
7684
7685 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
7686
4eec2deb
PA
76872015-04-01 Pedro Alves <palves@redhat.com>
7688
7689 * linux-thread-db.c (record_thread): Readd the thread to gdb's
7690 list if it was marked exited.
7691
afa59b79
L
76922015-04-01 H.J. Lu <hongjiu.lu@intel.com>
7693
7694 * configure: Regenerated.
7695
df8411da
SDJ
76962015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
7697 Jan Kratochvil <jan.kratochvil@redhat.com>
7698 Oleg Nesterov <oleg@redhat.com>
7699
7700 PR corefiles/16092
7701 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
7702 New enum identifying the various options of the coredump_filter
7703 file.
7704 (struct smaps_vmflags): New struct.
7705 (use_coredump_filter): New variable.
7706 (decode_vmflags): New function.
7707 (mapping_is_anonymous_p): Likewise.
7708 (dump_mapping_p): Likewise.
7709 (linux_find_memory_regions_full): New variables
7710 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
7711 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
7712 parsing of its information. Implement memory mapping filtering
7713 based on its contents.
7714 (show_use_coredump_filter): New function.
7715 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
7716 * NEWS: Mention the possibility of using the
7717 '/proc/PID/coredump_filter' file when generating a corefile.
7718 Mention new command 'set use-coredump-filter'.
7719
416f679e
SDJ
77202015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
7721
7722 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
7723 read_memory_unsigned_integer.
7724
711a72d3
L
77252015-03-31 H.J. Lu <hongjiu.lu@intel.com>
7726
7727 * Makefile.in (ZLIB): New.
7728 (ZLIBINC): Likewise.
7729 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
7730 (CLIBS): Add $(ZLIB).
7731 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
7732 Add -lz to LIBS.
7733 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
7734 * top.c (print_gdb_configuration): Remove --with-zlib and
7735 --without-zlib.
7736 * config.in: Regenerated.
7737 * configure: Likewise.
7738
d33279b3
AT
77392015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
7740
7741 * NEWS: Mention info os cpus support.
7742 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
7743 (struct osdata_type): Add cpus entry, reorder the entries in
7744 alphabetical order.
7745
71b30f27
MK
77462015-03-31 Matthias Klose <doko@ubuntu.com>
7747
7748 * compile/compile.c (compile_to_object): Allow triplets with or
7749 without vendor set.
7750
13ce9222
DE
77512015-03-30 Doug Evans <dje@google.com>
7752
7753 PR c++/18141
7754 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
7755 klass in VAR_DOMAIN.
7756
20f796c9
GB
77572015-03-30 Gary Benson <gbenson@redhat.com>
7758
7759 * remote.c (remote_mourn_1): Remove function. Update all callers
7760 to use remote_mourn.
7761 (extended_remote_mourn_1): Remove function. Update all callers
7762 to use extended_remote_mourn.
7763 (extended_remote_attach_1): Remove function. Update all callers
7764 to use extended_remote_attach.
7765
49d45b20
JB
77662015-03-28 James Bowman <james.bowman@ftdichip.com>
7767
7768 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
7769 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
7770 (ALLDEPFILES): Add ft32-tdep.c.
7771 * configure.tgt: Add FT32 entry.
7772 * ft32-tdep.c: New file, FT32 target-dependent code.
7773 * ft32-tdep.h: New file, FT32 target-dependent code.
7774
1c4ff080
JK
77752015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7776
7777 Revert:
7778 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7779 Code cleanup.
7780 * printcmd.c (print_command_1): Move expr variable scope.
7781
79498702
JB
77822015-03-27 Joel Brobecker <brobecker@adacore.com>
7783
7784 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
7785
ce9c0ca1
AK
77862015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
7787
7788 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
7789 sections.
7790
429e1e81
JB
77912015-03-26 Joel Brobecker <brobecker@adacore.com>
7792
7793 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
7794 exception raised while parsing the probe arguments.
7795 Force parsing to be done using the C language parser.
7796 * expression.h (parse_expression_with_language): Declare.
7797 * parse.c (parse_expression_with_language): New function.
7798
4593441b
JT
77992015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
7800
7801 * MAINTAINERS (Write After Approval): Add "Jon Turney".
7802
ff908ebf
AW
78032015-03-26 Andy Wingo <wingo@igalia.com>
7804
7805 PR symtab/18148
7806 * dwarf2read.c (struct partial_die_info): Add has_const_value
7807 member.
7808 (add_partial_symbol): Don't punt on symbols that have const_value
7809 attributes.
7810 (read_partial_die): Detect DW_AT_const_value.
7811
f30d5c78
JK
78122015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7813
7814 Code cleanup.
7815 * printcmd.c (print_command_1): Move expr variable scope.
7816
8d89f51a
JK
78172015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7818
7819 Code cleanup.
7820 * printcmd.c (validate_format): Make the parameter cmdname const.
7821
0b736949
DB
78222015-03-26 Don Breazeal <donb@codesourcery.com>
7823
7824 * remote.c (_initialize_remote): Update comment.
7825
20d35291
PA
78262015-03-26 Pedro Alves <palves@redhat.com>
7827 Jon TURNEY <jon.turney@dronecode.org.uk>
7828
7829 * coffread.c (coff_symfile_read): When constructing the name of an
7830 import stub symbol from import symbol for amd64, only skip the
7831 char after _imp_ if the target is underscored (like i386) and the
7832 char is indeed the target's leading char.
7833
6a3753b3
PA
78342015-03-25 Pedro Alves <palves@redhat.com>
7835
7836 * target.h <to_async>: Replace 'callback' and 'context' parameters
7837 with boolean 'enable' parameter.
7838 (target_async): Replace CALLBACK and CONTEXT parameters with
7839 boolean ENABLE parameter.
7840 * inf-loop.c (inferior_event_handler): Adjust.
7841 * linux-nat.c (linux_nat_attach, linux_nat_resume)
7842 (linux_nat_resume): Adjust.
7843 (async_client_callback, async_client_context): Delete.
7844 (handle_target_event): Call inferior_event_handler directly.
7845 (linux_nat_async): Replace 'callback' and 'context' parameters
7846 with boolean 'enable' parameter. Adjust. Remove references to
7847 async_client_callback and async_client_context.
7848 (linux_nat_close): Adjust.
7849 * record-btrace.c (record_btrace_async): Replace 'callback' and
7850 'context' parameters with boolean 'enable' parameter. Adjust.
7851 (record_btrace_resume): Adjust.
7852 * record-full.c (record_full_async): Replace 'callback' and
7853 'context' parameters with boolean 'enable' parameter. Adjust.
7854 (record_full_resume, record_full_core_resume): Adjust.
7855 * remote.c (struct remote_state) <async_client_callback,
7856 async_client_context>: Delete fields.
7857 (remote_start_remote, extended_remote_attach_1, remote_resume)
7858 (extended_remote_create_inferior): Adjust.
7859 (remote_async_serial_handler): Call inferior_event_handler
7860 directly.
7861 (remote_async): Replace 'callback' and 'context' parameters with
7862 boolean 'enable' parameter. Adjust.
7863 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
7864 Adjust.
7865 * target-delegates.c: Regenerate.
7866
1c4b552b
GB
78672015-03-25 Gary Benson <gbenson@redhat.com>
7868 Pedro Alves <palves@redhat.com>
7869
7870 * target.c (fileio_ft_t): New typedef, define object vector.
7871 (fileio_fhandles): New static variable.
7872 (is_closed_fileio_fh): New macro.
7873 (lowest_closed_fd): New static variable.
7874 (acquire_fileio_fd): New function.
7875 (release_fileio_fd): Likewise.
7876 (fileio_fd_to_fh): New macro.
7877 (target_fileio_open): Wrap the file descriptor on success.
7878 (target_fileio_pwrite): Updated to use wrapped file descriptor.
7879 (target_fileio_pread): Likewise.
7880 (target_fileio_close): Likewise.
7881
a25d8bf9
PA
78822015-03-24 Pedro Alves <palves@redhat.com>
7883
7884 * thread.c (thread_apply_all_command): Take exited threads into
7885 account.
7886
44a1ee51
PA
78872015-03-24 Pedro Alves <palves@redhat.com>
7888
7889 * infrun.c (resume, proceed): Mention
7890 switch_back_to_stepped_thread, not switch_back_to_stepping.
7891
f3263aa4
PA
78922015-03-24 Pedro Alves <palves@redhat.com>
7893
7894 * infrun.c (user_visible_resume_ptid): Rewrite going from
7895 most-locked to unlocked instead of the opposite. Move comment ...
7896 * infrun.h (user_visible_resume_ptid): ... here.
7897
2bf6fb9d
PA
78982015-03-24 Pedro Alves <palves@redhat.com>
7899
7900 * linux-nat.c (linux_nat_resume): Output debug logs before trying
7901 to resume the event lwp. Use the lwp's ptid instead of the passed
7902 in (maybe wildcard) ptid.
7903 (stop_wait_callback): Tweak debug log output.
7904 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
7905 TRAP_TRACE.
7906 (linux_nat_filter_event): In debug output, distinguish a
7907 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
7908 before trying to resume the lwp.
7909
283a9958
JB
79102015-03-24 Joel Brobecker <brobecker@adacore.com>
7911
7912 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
7913 pointer indirection.
7914 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
7915 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
7916
93a8e227
JB
79172015-03-24 Joel Brobecker <brobecker@adacore.com>
7918
7919 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
7920 Renames DYN_ATTR_DATA_LOCATION.
7921 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
7922 DYN_ATTR_DATA_LOCATION.
7923 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
7924 instead of DYN_ATTR_DATA_LOCATION.
7925
64ce06e4
PA
79262015-03-24 Pedro Alves <palves@redhat.com>
7927
7928 * breakpoint.c (until_break_command): Adjust call to proceed.
7929 * gdbthread.h (struct thread_control_state) <stepping_command>:
7930 New field.
7931 * infcall.c (run_inferior_call): Adjust call to proceed.
7932 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
7933 Adjust calls to proceed.
7934 (set_step_frame): Set the current thread's step_start_function
7935 here.
7936 (step_once): Adjust calls to proceed.
7937 (jump_command, signal_command, until_next_command)
7938 (finish_backward, finish_forward, proceed_after_attach_callback)
7939 (attach_command_post_wait): Adjust calls to proceed.
7940 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
7941 (do_target_resume): New function, factored out from ...
7942 (resume): ... here. Remove 'step' parameter. Instead, check
7943 currently_stepping to determine whether the thread should be
7944 single-stepped.
7945 (proceed): Remove 'step' parameter and don't set the thread's
7946 step_start_function here. Adjust call to 'resume'.
7947 (handle_inferior_event): Adjust calls to 'resume'.
7948 (switch_back_to_stepped_thread): Use do_target_resume instead of
7949 'resume'.
7950 (keep_going): Adjust calls to 'resume'.
7951 * infrun.h (proceed): Remove 'step' parameter.
7952 (resume): Likewise.
7953 * windows-nat.c (do_initial_windows_stuff): Adjust call to
7954 'resume'.
7955 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
7956
856e7dd6
PA
79572015-03-24 Pedro Alves <palves@redhat.com>
7958
7959 * gdbthread.h (struct thread_control_state) <stepping_command>:
7960 New field.
7961 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
7962 the thread's stepping_command field.
7963 * infrun.c (resume): Check the thread's stepping_command flag to
7964 determine which threads should be resumed. Rename 'entry_step'
7965 local to user_step.
7966 (clear_proceed_status_thread): Clear 'stepping_command'.
7967 (schedlock_applies): Change parameter type to struct thread_info
7968 pointer. Adjust.
7969 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
7970 (switch_back_to_stepped_thread): Adjust calls to
7971 'schedlock_applies'.
7972 (_initialize_infrun): Adjust "set scheduler-locking step" help.
7973
885eeb5b
PA
79742015-03-24 Pedro Alves <palves@redhat.com>
7975
7976 * infrun.c (step_start_function): Delete and ...
7977 * gdbthread.h (struct thread_control_state) <step_start_function>:
7978 ... now a field here.
7979 * infrun.c (clear_proceed_status_thread): Clear the thread's
7980 step_start_function.
7981 (proceed, process_event_stop_test, print_stop_event): Adjust.
7982
3333f03a
PA
79832015-03-24 Pedro Alves <palves@redhat.com>
7984
7985 * infrun.c (proceed): No longer handle negative step.
7986
369f6daa
GB
79872015-03-24 Gary Benson <gbenson@redhat.com>
7988
7989 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
7990 (x86_linux_prepare_to_resume): Likewise.
7991 * x86-linux-nat.c (x86_linux_new_thread):
7992 Moved to nat/x86-linux.c.
7993 (x86_linux_prepare_to_resume): Likewise.
7994 * nat/x86-linux.c (x86_linux_new_thread): New function.
7995 (x86_linux_prepare_to_resume): Likewise.
7996
8e5d4070
GB
79972015-03-24 Gary Benson <gbenson@redhat.com>
7998
7999 * nat/x86-linux-dregs.h: New file.
8000 * nat/x86-linux-dregs.c: Likewise.
8001 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
8002 (x86-linux-dregs.o): New rule.
8003 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
8004 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8005 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
8006 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
8007 (x86_linux_dr_get): Likewise.
8008 (x86_linux_dr_set): Likewise.
8009 (x86_linux_dr_get_addr): Likewise.
8010 (x86_linux_dr_get_control): Likewise.
8011 (x86_linux_dr_get_status): Likewise.
8012 (update_debug_registers_callback): Likewise.
8013 (x86_linux_dr_set_control): Likewise.
8014 (x86_linux_dr_set_addr): Likewise.
8015 (x86_linux_update_debug_registers): Likewise.
8016
2b95d440
GB
80172015-03-24 Gary Benson <gbenson@redhat.com>
8018
8019 * x86-linux-nat.c (x86_linux_update_debug_registers):
8020 New function, factored out from...
8021 (x86_linux_prepare_to_resume): ...this.
8022
14b0bc68
GB
80232015-03-24 Gary Benson <gbenson@redhat.com>
8024
8025 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
8026 (x86_linux_dr_set): Likewise.
8027 (x86_linux_dr_get_addr): Likewise.
8028 (x86_linux_dr_get_control): Likewise.
8029 (x86_linux_dr_get_status): Likewise.
8030 (update_debug_registers_callback): Likewise.
8031 (x86_linux_dr_set_control): Likewise.
8032 (x86_linux_dr_set_addr): Likewise.
8033 (x86_linux_prepare_to_resume): Likewise.
8034 (x86_linux_new_thread): Likewise.
8035
5dfe6ca8
GB
80362015-03-24 Gary Benson <gbenson@redhat.com>
8037
8038 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
8039 (x86_linux_new_thread): Rename argument.
8040
4b134ca1
GB
80412015-03-24 Gary Benson <gbenson@redhat.com>
8042
8043 * nat/x86-linux.h: New file.
8044 * nat/x86-linux.c: Likewise.
8045 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
8046 (x86-linux.o): New rule.
8047 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
8048 * config/i386/linux64.mh (NATDEPFILES): Likewise.
8049 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
8050 (lwp_set_arch_private_info): New declaration.
8051 (lwp_arch_private_info): Likewise.
8052 * linux-nat.c (lwp_set_arch_private_info): New function.
8053 (lwp_arch_private_info): Likewise.
8054 * x86-linux-nat.c: Include nat/x86-linux.h.
8055 (arch_lwp_info): Removed structure.
8056 (update_debug_registers_callback):
8057 Use lwp_set_debug_registers_changed.
8058 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
8059 and lwp_set_debug_registers_changed.
8060 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
8061
cff068da
GB
80622015-03-24 Gary Benson <gbenson@redhat.com>
8063
8064 * nat/linux-nat.h (ptid_of_lwp): New declaration.
8065 (lwp_is_stopped): Likewise.
8066 (lwp_stop_reason): Likewise.
8067 * linux-nat.c (ptid_of_lwp): New function.
8068 (lwp_is_stopped): Likewise.
8069 (lwp_is_stopped_by_watchpoint): Likewise.
8070 * x86-linux-nat.c (update_debug_registers_callback):
8071 Use lwp_is_stopped.
8072 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
8073 lwp_stop_reason.
8074
b2f7c7e8
GB
80752015-03-24 Gary Benson <gbenson@redhat.com>
8076
8077 * linux-nat.h (linux_stop_lwp): Move declaration to...
8078 * nat/linux-nat.h (linux_stop_lwp): New declaration.
8079
6d4ee8c6
GB
80802015-03-24 Gary Benson <gbenson@redhat.com>
8081
8082 * linux-nat.h: Include nat/linux-nat.h.
8083 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
8084 * nat/linux-nat.h (struct lwp_info): New forward declaration.
8085 (iterate_over_lwps_ftype): New typedef.
8086 (iterate_over_lwps): New declaration.
8087 * linux-nat.h (iterate_over_lwps): Update comment. Use
8088 iterate_over_lwps_ftype. Update callback return value check.
8089
70a0bb6b
GB
80902015-03-24 Gary Benson <gbenson@redhat.com>
8091
8092 * x86-nat.h (x86_debug_reg_state): Move declaration to...
8093 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
8094
7b669087
GB
80952015-03-24 Gary Benson <gbenson@redhat.com>
8096
8097 * nat/linux-nat.h (current_lwp_ptid): New declaration.
8098 * linux-nat.c (current_lwp_ptid): New function.
8099 * x86-linux-nat.c: Include nat/linux-nat.h.
8100 (x86_linux_dr_get_addr): Use current_lwp_ptid.
8101 (x86_linux_dr_get_control): Likewise.
8102 (x86_linux_dr_get_status): Likewise.
8103 (x86_linux_dr_set_control): Likewise.
8104 (x86_linux_dr_set_addr): Likewise.
8105
15630549
AT
81062015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
8107
8108 PR breakpoints/16466
8109 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
8110
8a4506c0
JB
81112015-03-23 Joel Brobecker <brobecker@adacore.com>
8112
8113 * ser-mingw.c (ser_windows_setparity): Fix indentation.
8114 * ser-unix.c (hardwire_setparity): Likewise.
8115
236af5e3
YG
81162015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
8117
8118 * NEWS: Mention set/show serial parity command.
8119 * monitor.c (monitor_open): Call serial_setparity.
8120 * remote.c (remote_open_1): Likewise.
8121 * ser-base.c (ser_base_serparity): New function.
8122 * ser-base.h (ser_base_setparity): Add declaration.
8123 * ser-go32.c (dos_ops): Set "setparity" field.
8124 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
8125 state.Parity.
8126 (ser_windows_setparity): New function.
8127 (hardwire_ops): Add ser_windows_setparity.
8128 (tty_ops): Add NULL for setparity field.
8129 (pipe_ops): Add ser_base_setparity.
8130 (tcp_ops): Likewise.
8131 * ser-pipe.c (pipe_ops): Likewise.
8132 * ser-tcp.c (tcp_ops): Likewise.
8133 * ser-unix.c (hardwire_setparity): Add declaration.
8134 (hardwire_raw): Don't reset PARENB flag.
8135 (hardwire_setparity): New function.
8136 (hardwire_ops): Add hardwire_setparity.
8137 * serial.c (serial_setparity): New function.
8138 (serial_parity): New global.
8139 (parity_none, parity_odd, parity_even, parity_enums, parity):
8140 New static globals.
8141 (set_parity): New function.
8142 (_initialize_serial): Add set/show serial parity commands.
8143 * serial.h (GDBPARITY_NONE): Define.
8144 (GDBPARITY_ODD): Define.
8145 (GDBPARITY_EVEN): Define.
8146 (serial_setparity) Add declaration.
8147 (struct serial_ops): Add setparity field.
8148 * target.h (serial_parity): Add declaration.
8149
32b40af9
KS
81502015-03-23 Keith Seitz <keiths@redhat.com>
8151
8152 * linespec.c (linespec_lexer_lex_keyword): Update comment.
8153
693dca06
KS
81542015-03-23 Keith Seitz <keiths@redhat.com>
8155
8156 * breakpoint.c (parse_breakpoint_sals): Use
8157 linespec_lexer_lex_keyword to ascertain if the user specified
8158 a NULL location.
8159 * linespec.c [IF_KEYWORD_INDEX]: Define.
8160 (linespec_lexer_lex_keyword): Export.
8161 (struct ls_parser) <keyword_ok>: Remove.
8162 A keyword is only a keyword if not followed by another keyword.
8163 (linespec_lexer_lex_one): Remove keyword_ok handling.
8164 Add comment explaining why the parsing stream is not advanced
8165 when a keyword is seen.
8166 (parse_linespec): Remove parser->keyword_ok.
8167 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
8168
7e993ebf
KS
81692015-03-23 Keith Seitz <keiths@redhat.com>
8170
8171 PR gdb/18021
8172 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
8173 if we find a static method with DW_AT_vtable_elem_location.
8174
b1a0f704
EZ
81752015-03-21 Eli Zaretskii <eliz@gnu.org>
8176
8177 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
8178 before the second loop, to avoid undefined behavior. Reported by
8179 Anton Blanchard <anton@samba.org>.
8180
d9823cbb
KB
81812015-03-20 Keven Boell <keven.boell@intel.com>
8182
8183 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
8184 data_location usage to linked list.
8185 (resolve_dynamic_type_internal): Adapt data_location to
8186 linked list.
8187 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
8188 (copy_type_recursive, copy_type): Add copy of linked list.
8189 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
8190 (struct dynamic_prop_list): New struct.
8191 * dwarf2read.c (set_die_type): Set data_location data.
8192
2e7bf1d7
PA
81932015-03-20 Pedro Alves <palves@redhat.com>
8194
8195 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
8196 inner block and make it const.
8197 * machoread.c (get_archive_prefix_len): Make "lparen" const.
8198
7a26bd4d
PA
81992015-03-20 Pedro Alves <palves@redhat.com>
8200
8201 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
8202 * breakpoint.h (set_breakpoint_condition): Update declaration.
8203
cd46431b
PA
82042015-03-20 Pedro Alves <palves@redhat.com>
8205
8206 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
8207
e28566f7
PA
82082015-03-20 Pedro Alves <palves@redhat.com>
8209
8210 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
8211
f6fc92f6
PA
82122015-03-20 Pedro Alves <palves@redhat.com>
8213
8214 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
8215
c32ed3ef
PA
82162015-03-20 Pedro Alves <palves@redhat.com>
8217
8218 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
8219 (nto_init_solib_absolute_prefix): Likewise.
8220
53e78085
PA
82212015-03-20 Pedro Alves <palves@redhat.com>
8222
8223 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
8224 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
8225
bc23328c
JK
82262015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8227
8228 * config/djgpp/README: Remove gdb.hp.
8229
e8ffc436
YQ
82302015-03-20 Yao Qi <yao.qi@linaro.org>
8231
8232 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
8233 set_gdbarch_cannot_step_breakpoint.
8234
23f238d3
PA
82352015-03-19 Pedro Alves <palves@redhat.com>
8236
8237 * linux-nat.c (linux_resume_one_lwp): Rename to ...
8238 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
8239 instead call perror_with_name.
8240 (check_ptrace_stopped_lwp_gone): New function.
8241 (linux_resume_one_lwp): Reimplement as wrapper around
8242 linux_resume_one_lwp_throw that swallows errors if the LWP is
8243 gone.
8244 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
8245 swallows errors if the LWP is gone. Use
8246 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
8247
eb54c8bf
PA
82482015-03-19 Pedro Alves <palves@redhat.com>
8249
8250 * linux-nat.c (status_callback): Return early if the LWP has no
8251 status pending.
8252
b90fc188
PA
82532015-03-19 Pedro Alves <palves@redhat.com>
8254
8255 * linux-nat.c (select_event_lwp_callback): Update comment to no
8256 longer mention SIGTRAP.
8257
670f82d4
TG
82582015-03-18 Tristan Gingold <gingold@adacore.com>
8259
72f4393d
L
8260 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
8261 redirection code to ...
8262 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
8263 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 8264
464b0089
GB
82652015-03-18 Gary Benson <gbenson@redhat.com>
8266
8267 (remote_protocol_features): Remove the "vFile:fstat" feature.
8268 (remote_hostio_fstat): Probe for "vFile:fstat" support.
8269
f68f11b7
YQ
82702015-03-11 Yao Qi <yao.qi@linaro.org>
8271
8272 PR tdep/18107
8273 * aarch64-linux-tdep.c: Include xml-syscall.h
8274 (aarch64_linux_get_syscall_number): New function.
8275 (aarch64_linux_init_abi): Call
8276 set_gdbarch_get_syscall_number.
8277 * syscalls/aarch64-linux.xml: New file.
8278
393bd0c0
YG
82792015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
8280
8281 * ser-base.h (ser_base_setstopbits): Change second argument name
8282 from "rate" to "num".
8283
7f3647e2
GB
82842015-03-17 Gary Benson <gbenson@redhat.com>
8285 Luke Allardyce <lukeallardyce@gmail.com>
8286
8287 PR gdb/18131
8288 * common/common-remote-fileio.h (sys/stat.h): New include.
8289 (stuct stat): Remove forward declaration.
8290
3ce5b6e2
JB
82912015-03-16 John Baldwin <jhb@FreeBSD.org>
8292
8293 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
8294 before writing core register notes.
8295
d053f6be
YZ
82962015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
8297 Pedro Alves <palves@redhat.com>
8298
8299 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
8300 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
8301 (tgoto): Wrap with extern "C".
8302
b1a921c8
PA
83032015-03-16 Pedro Alves <palves@redhat.com>
8304 Yuanhui Zhang <asmwarrior@gmail.com>
8305
8306 * stub-termcap.c (tputs): Change prototype.
8307
876d1cd7
YZ
83082015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
8309 Pedro Alves <palves@redhat.com>
8310
8311 * windows-nat.c (struct thread_info_struct): Rename to ...
8312 (struct windows_thread_info_struct): ... this.
8313 (thread_info): Rename to ...
8314 (windows_thread_info): ... this.
8315 All users updated.
8316
0800b440
JK
83172015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8318 Pedro Alves <palves@redhat.com>
8319
8320 * NEWS: New Removed targets and native configurations.
8321
83222015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
8323
8324 Remove HPUX.
8325 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
8326 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
8327 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
8328 ia64-hpux-tdep.h, solib-ia64-hpux.h.
8329 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
8330 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
8331 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
8332 hppa-hpux-tdep.c.
8333 * config/ia64/hpux.mh: Remove file.
8334 * config/pa/hpux.mh: Remove file.
8335 * configure: Rebuilt.
8336 * configure.ac (dlgetmodinfo, somread.o): Remove.
8337 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
8338 (ia64-*-hpux*): Remove its float format exception.
8339 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
8340 * hppa-hpux-nat.c: Remove file.
8341 * hppa-hpux-tdep.c: Remove file.
8342 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
8343 Move them here from hppa-tdep.h
8344 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
8345 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
8346 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
8347 Move them to hppa-tdep.c.
8348 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
8349 declarations.
8350 * ia64-hpux-nat.c: Remove file.
8351 * ia64-hpux-tdep.c: Remove file.
8352 * ia64-hpux-tdep.h: Remove file.
8353 * inf-ttrace.c: Remove file.
8354 * inf-ttrace.h: Remove file.
8355 * solib-ia64-hpux.c: Remove file.
8356 * solib-ia64-hpux.h: Remove file.
8357 * solib-pa64.c: Remove file.
8358 * solib-pa64.h: Remove file.
8359 * solib-som.c: Remove file.
8360 * solib-som.h: Remove file.
8361 * somread.c: Remove file.
8362
25268153
JB
83632015-03-13 John Baldwin <jhb@FreeBSD.org>
8364
8365 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
8366 * config.in: Regenerate.
8367 * configure: Regenerate.
8368 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 8369 define.
25268153
JB
8370 (fbsd_find_memory_regions): Use kinfo_getvmmap to
8371 enumerate memory regions if present.
8372
773eacf5
JB
83732015-03-13 John Baldwin <jhb@FreeBSD.org>
8374
8375 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
8376 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
8377 expressions.
8378 (i386fbsd_sigtramp_p): Likewise.
8379
01b6bdb0
JB
83802015-03-12 John Baldwin <jhb@FreeBSD.org>
8381
8382 * MAINTAINERS (Write After Approval): Add John Baldwin.
8383
811a659a
GB
83842015-03-12 Gary Benson <gbenson@redhat.com>
8385
8386 * solib.c (_initialize_solib): Make "set/show sysroot" use
8387 add_setshow_optional_filename_cmd so it can be restored to
8388 empty after being set.
8389
10304ef3
SDJ
83902015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
8391
8392 * Makefile.in (SFILES): New source break-catch-syscall.c.
8393 (COMMON_OBS): New object break-catch-syscall.o.
8394 * break-catch-syscall.c: New file.
8395 * breakpoint.c: Remove inclusion of "xml-syscall.h".
8396 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
8397 (struct syscall_catchpoint): Likewise.
8398 (dtor_catch_syscall): Likewise.
8399 (catch_syscall_inferior_data): Likewise.
8400 (struct catch_syscall_inferior_data): Likewise.
8401 (get_catch_syscall_inferior_data): Likewise.
8402 (catch_syscall_inferior_data_cleanup): Likewise.
8403 (insert_catch_syscall): Likewise.
8404 (remove_catch_syscall): Likewise.
8405 (breakpoint_hit_catch_syscall): Likewise.
8406 (print_it_catch_syscall): Likewise.
8407 (print_one_catch_syscall): Likewise.
8408 (print_mention_catch_syscall): Likewise.
8409 (print_recreate_catch_syscall): Likewise.
8410 (catch_syscall_breakpoint_ops): Likewise.
8411 (syscall_catchpoint_p): Likewise.
8412 (create_syscall_event_catchpoint): Likewise.
8413 (catch_syscall_split_args): Likewise.
8414 (catch_syscall_command_1): Likewise.
8415 (is_syscall_catchpoint_enabled): Likewise.
8416 (catch_syscall_enabled): Likewise.
8417 (catching_syscall_number): Likewise.
8418 (catch_syscall_completer): Likewise.
8419 (clear_syscall_counts): Likewise.
8420 (initialize_breakpoint_ops): Move initialization of syscall
8421 catchpoints to break-catch-syscall.c.
8422 (_initialize_breakpoint): Move code related to syscall catchpoints
8423 to break-catch-syscall.c.
8424
badd37ce
SDJ
84252015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
8426
8427 * breakpoint.c (breakpoint_find_if): New function.
8428 * breakpoint.h (breakpoint_find_if): New prototype.
8429
0a93529c
GB
84302015-03-11 Gary Benson <gbenson@redhat.com>
8431
8432 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
8433 * remote-fileio.c (remote_fileio_to_host_uint): New function.
8434 (remote_fileio_to_host_ulong): Likewise.
8435 (remote_fileio_to_host_mode): Likewise.
8436 (remote_fileio_to_host_time): Likewise.
8437 (remote_fileio_to_host_stat): Likewise.
8438 * remote.c (PACKET_vFile_fstat): New enum value.
8439 (remote_protocol_features): Register the "vFile:fstat" feature.
8440 (remote_hostio_fstat): New function.
8441 (remote_bfd_iovec_stat): Use the above.
8442 (_initialize_remote): Register new "set/show remote
8443 hostio-fstat-packet" command.
8444 * symfile.c (separate_debug_file_exists): Update comment.
8445 * NEWS: Announce new vFile:fstat packet.
8446
791c0056
GB
84472015-03-11 Gary Benson <gbenson@redhat.com>
8448
8449 * common/common-remote-fileio.h: New file.
8450 * common/common-remote-fileio.c: Likewise.
8451 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
8452 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
8453 (COMMON_OBS): Add common-remote-fileio.o.
8454 (common-remote-fileio.o): New rule.
8455 * remote-fileio.h (common-remote-fileio.h): New include.
8456 * remote-fileio.c (gdb/fileio.h): Do not include.
8457 (remote_fileio_to_be): Moved to common-remote-fileio.h.
8458 (remote_fileio_to_fio_uint): Likewise.
8459 (remote_fileio_to_fio_time): Likewise.
8460 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
8461 (remote_fileio_to_fio_mode): Likewise.
8462 (remote_fileio_to_fio_ulong): Likewise.
8463 (remote_fileio_to_fio_stat): Likewise.
8464
1390d0ef
AW
84652015-03-11 Andy Wingo <wingo@igalia.com>
8466
8467 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
8468 we were checking the cached type, not the cached dynamic type.
8469
84a4591a
AW
84702015-03-11 Andy Wingo <wingo@igalia.com>
8471
8472 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
8473 other strings, as these are on the GC'd heap, and will be
8474 collected along with the smob.
8475
85642ba0
AW
84762015-03-11 Andy Wingo <wingo@igalia.com>
8477
8478 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
8479 (objfile_functions): Bind gdbscm_objfile_progspace to
8480 objfile-progspace.
8481 * guile/lib/gdb.scm: Add objfile-progspace to exports.
8482
92fab5a6
AW
84832015-03-11 Andy Wingo <wingo@igalia.com>
8484
8485 * guile/guile.c (_initialize_guile): Disable automatic
8486 finalization, if Guile offers us that possibility.
8487 * guile/guile.c (call_initialize_gdb_module):
8488 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
8489 finalizers in appropriate places.
8490 * configure.ac (AC_TRY_LIBGUILE): Add a check for
8491 scm_set_automatic_finalization_enabled.
8492 * configure: Regenerated.
8493
f054145e
AA
84942015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
8495
8496 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
8497 SAL, if possible.
8498
18396193
AA
84992015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
8500
8501 * s390-linux-nat.c (struct arch_lwp_info): New.
8502 (s390_fix_watch_points): Rename to...
8503 (s390_prepare_to_resume): ...this. Skip the PER info update
8504 unless the watch points have changed.
8505 (s390_refresh_per_info, s390_new_thread): New functions.
8506 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
8507 s390_fix_watch_points.
8508 (s390_remove_watchpoint): Likewise.
8509 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
8510 Register s390_prepare_to_resume.
8511
9eb1356e
PA
85122015-03-09 Pedro Alves <palves@redhat.com>
8513
8514 Revert:
8515 2015-03-07 Pedro Alves <palves@redhat.com>
8516 * common/gdb_socket.h: New file.
8517 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
8518 sys/socket.h.
8519 (net_open): Use union gdb_sockaddr_u.
8520
aac331e4
PA
85212015-03-07 Pedro Alves <palves@redhat.com>
8522
8523 * configure.ac (build_warnings): Move -Wmissing-prototypes
8524 -Wdeclaration-after-statement -Wmissing-parameter-type
8525 -Wold-style-declaration -Wold-style-definition to the C-specific
8526 set.
8527 * configure: Regenerate.
8528
366c75fc
PA
85292015-03-07 Pedro Alves <palves@redhat.com>
8530
8531 * common/gdb_socket.h: New file.
8532 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
8533 sys/socket.h.
8534 (net_open): Use union gdb_sockaddr_u.
8535
72df25b2
PA
85362015-03-07 Pedro Alves <palves@redhat.com>
8537
8538 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
8539 (exceptions_state_mc_action_iter)
8540 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
8541 Don't define.
8542 [__cplusplus] (try_scope_depth): New global.
8543 [__cplusplus] (exception_try_scope_entry)
8544 (exception_try_scope_exit, gdb_exception_sliced_copy)
8545 (exception_rethrow): New functions.
8546 (throw_exception): In C++ mode, throw
8547 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
8548 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
8549 (throw_it): In C++ mode, use try_scope_depth.
8550 * common/common-exceptions.h [!__cplusplus]
8551 (exceptions_state_mc_action_iter)
8552 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
8553 Don't declare.
8554 [__cplusplus] (exception_try_scope_entry)
8555 (exception_try_scope_exit, exception_rethrow): Declare.
8556 [__cplusplus] (struct exception_try_scope): New struct.
8557 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
8558 C++ exceptions.
8559 (struct gdb_exception_RETURN_MASK_ALL)
8560 (struct gdb_exception_RETURN_MASK_ERROR)
8561 (struct gdb_exception_RETURN_MASK_QUIT): New types.
8562
284e6217
PA
85632015-03-07 Pedro Alves <palves@redhat.com>
8564
8565 * main.c (handle_command_errors): Remove volatile qualifier from
8566 parameter.
8567
6c63c96a
PA
85682015-03-07 Pedro Alves <palves@redhat.com>
8569
8570 * breakpoint.c (save_breakpoints): Adjust to avoid code between
8571 TRY and CATCH.
8572 * gdbtypes.c (safe_parse_type): Remove empty line.
8573 (types_deeply_equal):
8574 * guile/scm-frame.c (gdbscm_frame_name):
8575 * linux-thread-db.c (find_new_threads_once):
8576 * python/py-breakpoint.c (bppy_get_commands):
8577 * record-btrace.c (record_btrace_insert_breakpoint)
8578 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
8579 (record_btrace_start_replaying): Adjust to avoid code between TRY
8580 and CATCH.
8581
492d29ea
PA
85822015-03-07 Pedro Alves <palves@redhat.com>
8583
8584 * common/common-exceptions.c (struct catcher) <exception>: No
8585 longer a pointer to volatile exception. Now an exception value.
8586 <mask>: Delete field.
8587 (exceptions_state_mc_init): Remove all parameters. Adjust.
8588 (exceptions_state_mc): No longer pop the catcher here.
8589 (exceptions_state_mc_catch): New function.
8590 (throw_exception): Adjust.
8591 * common/common-exceptions.h (exceptions_state_mc_init): Remove
8592 all parameters.
8593 (exceptions_state_mc_catch): Declare.
8594 (TRY_CATCH): Rename to ...
8595 (TRY): ... this. Remove EXCEPTION and MASK parameters.
8596 (CATCH, END_CATCH): New.
8597 All callers adjusted.
8598
ece957c8
TT
85992015-03-07 Tom Tromey <tromey@redhat.com>
8600
8601 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
8602
7556d4a4
PA
86032015-03-07 Pedro Alves <palves@redhat.com>
8604
8605 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
8606 (amd64_epilogue_frame_cache): Normal exception handling code.
8607 * break-catch-throw.c (check_status_exception_catchpoint)
8608 (re_set_exception_catchpoint): Ditto.
8609 * cli/cli-interp.c (safe_execute_command):
8610 * cli/cli-script.c (script_from_file): Ditto.
8611 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
8612 Ditto.
8613 * compile/compile-object-run.c (compile_object_run): Ditto.
8614 * cp-abi.c (baseclass_offset): Ditto.
8615 * cp-valprint.c (cp_print_value): Ditto.
8616 * exceptions.c (catch_exceptions_with_msg):
8617 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
8618 * frame.c (get_frame_address_in_block_if_available): Ditto.
8619 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
8620 (i386_sigtramp_frame_cache): Ditto.
8621 * infcmd.c (post_create_inferior): Ditto.
8622 * linespec.c (parse_linespec, find_linespec_symbols):
8623 * p-valprint.c (pascal_object_print_value): Ditto.
8624 * parse.c (parse_expression_for_completion): Ditto.
8625 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
8626 * remote.c (remote_get_noisy_reply): Ditto.
8627 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
8628 * solib-svr4.c (solib_svr4_r_map): Ditto.
8629
f873665f 86302015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
8631
8632 * common/common-utils.h (startswith): New inline function.
8633 All places where this logic was used updated to use the above.
8634
68901c4d
PA
86352015-03-05 Pedro Alves <palves@redhat.com>
8636
8637 PR gdb/18002
8638 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
8639 after reading the breakpoint's shadow memory.
8640
2dcb2b1a
MK
86412015-03-05 Mark Kettenis <kettenis@gnu.org>
8642
8643 * hppabsd-nat.c: Remove file.
8644 * hppaobsd-nat.c: New file.
8645 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
8646 hppaobsd-nat.c.
8647 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
8648 hppaobsd-nat.o.
8649
527a273a
PA
86502015-03-04 Pedro Alves <palves@redhat.com>
8651
8652 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
8653 (target_decr_pc_after_break): Delete declaration.
8654 * target.c (default_target_decr_pc_after_break)
8655 (target_decr_pc_after_break): Delete.
8656 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
8657 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
8658 * linux-thread-db.c (check_event): Likewise.
8659 * infrun.c (adjust_pc_after_break): Likewise.
8660 * darwin-nat.c (cancel_breakpoint): Likewise.
8661 * aix-thread.c (aix_thread_wait): Likewise.
8662 * target-delegates.c: Regenerate.
8663
faf09f01
PA
86642015-03-04 Pedro Alves <palves@redhat.com>
8665
8666 * linux-nat.c (save_sigtrap): Check for breakpoints before
8667 checking watchpoints.
8668 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
8669 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
8670 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
8671 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
8672 (linux_nat_stopped_by_sw_breakpoint)
8673 (linux_nat_supports_stopped_by_sw_breakpoint)
8674 (linux_nat_stopped_by_hw_breakpoint)
8675 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
8676 (linux_nat_wait_1): Don't re-increment the PC if relying on
8677 SIGTRAP's siginfo->si_code.
8678 (linux_nat_add_target): Install new target methods.
8679 * linux-thread-db.c (check_event): Don't account for breakpoint PC
8680 offset if the target already adjusted the PC.
8681 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
8682 (GDB_ARCH_TRAP_BRKPT): New.
8683 (TRAP_HWBKPT): Define if not already defined.
8684
f7e6eed5
PA
86852015-03-04 Pedro Alves <palves@redhat.com>
8686
8687 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
8688 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
8689 Delete field.
8690 <stop_reason>: New field.
8691 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
8692 (packet_set_cmd_state): New function.
8693 (remote_protocol_features): Register the "swbreak" and "hwbreak"
8694 features.
8695 (remote_query_supported): If not disabled with the corresponding
8696 "set remote foo-packet" command, report support for the swbreak
8697 and hwbreak features.
8698 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
8699 field.
8700 <stop_reason>: New field.
8701 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
8702 (remote_wait_as): Adjust.
8703 (remote_stopped_by_sw_breakpoint)
8704 (remote_supports_stopped_by_sw_breakpoint)
8705 (remote_stopped_by_hw_breakpoint)
8706 (remote_supports_stopped_by_hw_breakpoint): New functions.
8707 (remote_stopped_by_watchpoint): New function.
8708 (init_remote_ops): Install them.
8709 (_initialize_remote): Register new "set/show remote
8710 swbreak-feature-packet" and "set/show remote
8711 swbreak-feature-packet" commands.
8712
9e8915c6
PA
87132015-03-04 Pedro Alves <palves@redhat.com>
8714
8715 * btrace.h: Include target/waitstatus.h.
8716 (struct btrace_thread_info) <stop_reason>: New field.
8717 * record-btrace.c (record_btrace_step_thread): Use
8718 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
8719 (record_btrace_decr_pc_after_break): Delete.
8720 (record_btrace_stopped_by_sw_breakpoint)
8721 (record_btrace_supports_stopped_by_sw_breakpoint)
8722 (record_btrace_stopped_by_hw_breakpoint)
8723 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
8724 (init_record_btrace_ops): Install them.
8725 * record-full.c (record_full_hw_watchpoint): Delete and replace
8726 with ...
8727 (record_full_stop_reason): ... this throughout.
8728 (record_full_exec_insn): Adjust.
8729 (record_full_wait_1): Adjust. No longer re-increment the PC.
8730 (record_full_wait_1): Adjust. Use
8731 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
8732 (record_full_stopped_by_watchpoint): Adjust.
8733 (record_full_stopped_by_sw_breakpoint)
8734 (record_full_supports_stopped_by_sw_breakpoint)
8735 (record_full_supports_stopped_by_sw_breakpoint)
8736 (record_full_stopped_by_hw_breakpoint)
8737 (record_full_supports_stopped_by_hw_breakpoint): New functions.
8738 (init_record_full_ops, init_record_full_core_ops): Install them.
8739 * record.c (record_check_stopped_by_breakpoint): New function.
8740 * record.h: Include target/waitstatus.h.
8741 (record_check_stopped_by_breakpoint): New declaration.
8742
15c66dd6
PA
87432015-03-04 Pedro Alves <palves@redhat.com>
8744
8745 enum lwp_stop_reason -> enum target_stop_reason
8746 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
8747 (linux_nat_stopped_by_watchpoint, status_callback)
8748 (linux_nat_wait_1): Adjust.
8749 * linux-nat.h (enum lwp_stop_reason): Delete.
8750 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
8751 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
8752 * target/waitstatus.h (enum target_stop_reason): New.
8753
1cf4d951
PA
87542015-03-04 Pedro Alves <palves@redhat.com>
8755
8756 * breakpoint.c (need_moribund_for_location_type): New function.
8757 (bpstat_stop_status): Don't skipping checking moribund locations
8758 of breakpoint types which the target tell caused a stop.
8759 (program_breakpoint_here_p): New function, factored out from ...
8760 (bp_loc_is_permanent): ... this.
8761 (update_global_location_list): Don't create a moribund location if
8762 the target supports reporting stops of the type of the removed
8763 breakpoint.
8764 * breakpoint.h (program_breakpoint_here_p): New declaration.
8765 * infrun.c (adjust_pc_after_break): Return early if the target has
8766 already adjusted the PC. Add comments.
8767 (handle_signal_stop): If nothing explains a signal, and the target
8768 tells us the stop was caused by a software breakpoint, check if
8769 there's a breakpoint instruction in the memory. If so, adjust the
8770 PC before presenting the stop to the user. Otherwise, ignore the
8771 trap. If nothing explains a signal, and the target tells us the
8772 stop was caused by a hardware breakpoint, ignore the trap.
8773 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
8774 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
8775 to_supports_stopped_by_hw_breakpoint>: New fields.
8776 (target_stopped_by_sw_breakpoint)
8777 (target_supports_stopped_by_sw_breakpoint)
8778 (target_stopped_by_hw_breakpoint)
8779 (target_supports_stopped_by_hw_breakpoint): Define.
8780 * target-delegates.c: Regenerate.
8781
79639e11
PA
87822015-03-04 Pedro Alves <palves@redhat.com>
8783
8784 * infrun.c (follow_fork_inferior): Use the whole of the
8785 inferior_ptid and pending_follow.related_pid ptids instead of
8786 building ptids from the process components. Adjust verbose output
8787 to use target_pid_to_str.
8788 * linux-nat.c (linux_child_follow_fork): Use the whole of the
8789 inferior_ptid and pending_follow.related_pid ptids instead of
8790 building ptids from the process components.
8791
e85e8e5e
MK
87922015-03-04 Mark Kettenis <kettenis@gnu.org>
8793
8794 * inf-ptrace.c [PT_GET_PROCESS_STATE]
8795 (inf_ptrace_insert_fork_catchpoint): New function.
8796 (inf_ptrace_remove_fork_catchpoint): New function.
8797 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
8798
87de11c0
AA
87992015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8800
8801 * s390-linux-tdep.c (s390_register_name): Return empty string
8802 instead of NULL for registers that shouldn't be visible.
8803
d851a69a
AA
88042015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8805
8806 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
8807 XML file for 64-bit targets.
8808
b072f6c1
SM
88092015-03-03 Simon Marchi <simon.marchi@ericsson.com>
8810
8811 * target.h (find_default_create_inferior): Remove declaration.
8812 (find_default_attach): Likewise.
8813
c1593e4f
PA
88142015-03-03 Pedro Alves <palves@redhat.com>
8815
8816 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
8817 Use ptid_get_pid to get the overall process id when resuming all
8818 threads.
8819
90ad5e1d
PA
88202015-03-03 Pedro Alves <palves@redhat.com>
8821
8822 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
8823 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
8824 * inf-ptrace.c (get_ptrace_pid): New function.
8825 (inf_ptrace_resume): Use it.
8826 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
8827 to the lower layer.
8828
d68e53f4
MM
88292015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8830
8831 * nat/linux-btrace.c: Include sys/utsname.h.
8832 (linux_determine_kernel_ptr_bits): New.
8833 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
8834 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
8835 ptr_bits.
8836
986b6601
MM
88372015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8838
8839 * btrace.c (ftrace_update_function): Treat return as tailcall for
8840 "_dl_runtime_resolve".
8841
ce0dfbea
MM
88422015-03-03 Markus Metzger <markus.t.metzger@intel.com>
8843
8844 * btrace.h (btrace_function) <lbegin, lend>: Remove.
8845 * btrace.c (ftrace_debug): Do not print the line range.
8846 (ftrace_skip_file, ftrace_update_lines): Remove.
8847 (ftrace_new_function): Remove lbegin and lend initialization.
8848 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
8849 * record-btrace.c (btrace_compute_src_line_range): New.
8850 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
8851
95e50b27
PA
88522015-03-02 Pedro Alves <palves@redhat.com>
8853
8854 * infrun.c (follow_exec): Delete all threads of the process except
8855 the event thread. Extended comments.
8856
00e474c2
JB
88572015-03-02 Joel Brobecker <brobecker@adacore.com>
8858
8859 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
8860
cc7039d3
JB
88612015-03-02 Joel Brobecker <brobecker@adacore.com>
8862
8863 * utils.h: Remove <stdbool.h> #include.
8864 (producer_is_gcc): Change return type to "int".
8865 * utils.c (producer_is_gcc): Change return type to int.
8866 Return 1 instead of true, and 0 instead of false.
8867 Adjust function documentation accordingly.
8868
550bdf96
AA
88692015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8870
8871 * s390-linux-nat.c (have_regset_vxrs): New static variable.
8872 (s390_linux_fetch_inferior_registers): Handle vector registers, if
8873 present.
8874 (s390_linux_store_inferior_registers): Likewise.
8875 (s390_get_hwcap): Remove function. Embed its logic...
8876 (s390_read_description): ...here. Yield a target description with
8877 vector registers if applicable.
8878 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
8879 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
8880 "features/s390x-tevx-linux64.c".
8881 (struct gdbarch_tdep) <v0_full_regnum>: New field.
8882 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
8883 for "GNU/Linux-specific registers".
8884 (s390_dwarf_reg_r0l): New enum value.
8885 (s390_dwarf_reg_to_regnum): Support vector registers.
8886 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
8887 of GPR lower halves.
8888 (regnum_is_vxr_full): New function.
8889 (s390_register_name): New function.
8890 (s390_pseudo_register_name): Handle v0-v15, which are composed of
8891 f0-f15 and v0l-v15l.
8892 (s390_pseudo_register_type): Likewise.
8893 (s390_pseudo_register_read): Likewise.
8894 (s390_pseudo_register_write): Likewise.
8895 (s390_value_from_register): Account for the fact that values are
8896 placed left-justified in vector registers.
8897 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
8898 the vector reggroup and omit them from the general reggroup.
8899 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
8900 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
8901 (s390_iterate_over_regset_sections): Add iterations for the two
8902 new vector regsets.
8903 (s390_core_read_description): Yield a target description with
8904 vector registers if applicable.
8905 (s390_gdbarch_init): Handle target descriptions with vector
8906 registers. Add "register_name" gdbarch method.
8907 (_initialize_s390_tdep): Call new tdesc initialization functions.
8908 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
8909 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
8910 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
8911 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
8912 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
8913 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
8914 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
8915 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
8916 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
8917 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
8918 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
8919 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
8920 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
8921 (S390_NUM_REGS): Adjust value.
8922 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
8923 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
8924 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
8925 * NEWS: Announce S/390 vector register support.
8926
446899e4
AA
89272015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
8928
8929 * features/s390-tevx-linux64.xml: New file.
8930 * features/s390-vx-linux64.xml: New file.
8931 * features/s390-vx.xml: New file.
8932 * features/s390x-tevx-linux64.xml: New file.
8933 * features/s390x-vx-linux64.xml: New file.
8934 * features/Makefile (WHICH): Add s390-vx-linux64,
8935 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
8936 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
8937 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
8938 macros.
8939 * features/s390-tevx-linux64.c: New generated file.
8940 * features/s390-vx-linux64.c: Likewise.
8941 * features/s390x-tevx-linux64.c: Likewise.
8942 * features/s390x-vx-linux64.c: Likewise.
8943 * regformats/s390-tevx-linux64.dat: Likewise.
8944 * regformats/s390-vx-linux64.dat: Likewise.
8945 * regformats/s390x-tevx-linux64.dat: Likewise.
8946 * regformats/s390x-vx-linux64.dat: Likewise.
8947
b7236fbe
DE
89482015-02-28 Doug Evans <xdje42@gmail.com>
8949
8950 * symtab.h (struct symtab) <next>: Fix comment.
8951
02e62830
SM
89522015-02-27 Simon Marchi <simon.marchi@ericsson.com>
8953
8954 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
8955 python_GdbMethods.
8956
bf36a1e7
PA
89572015-02-27 Pedro Alves <palves@redhat.com>
8958
8959 * dtrace-probe.c (dtrace_probe_ops): Make extern.
8960
ad6aff7d
PA
89612015-02-27 Pedro Alves <palves@redhat.com>
8962
8963 * common/common-exceptions.h (exception_none): Declare.
8964 * common/common-exceptions.c (exception_none): Moved from
8965 exceptions.c.
8966 (exceptions_state_mc_init): Use exception_none.
8967 * exceptions.c (exception_none): Move to
8968 common/common-exceptions.c.
8969 * exceptions.h (exception_none): Move to
8970 common/common-exceptions.h.
8971
97c18565
PA
89722015-02-27 Pedro Alves <palves@redhat.com>
8973
8974 * main.c (catch_command_errors, catch_command_errors_const):
8975 Remove 'mask' argument. Adjust.
8976 (captured_main): Adjust callers.
8977
e992c591
PA
89782015-02-27 Pedro Alves <palves@redhat.com>
8979
8980 * python/python-internal.h: Include "extension-priv.h".
8981
64166036
PA
89822015-02-27 Pedro Alves <palves@redhat.com>
8983
8984 * breakpoint.h (enum print_stop_action): Move further up in the
8985 file.
8986
8a526fa6
PA
89872015-02-27 Pedro Alves <palves@redhat.com>
8988
8989 * gdbarch.sh: Include regcache.h.
8990 * gdbarch.h: Regenerate.
8991
0fa9c223
PA
89922015-02-27 Pedro Alves <palves@redhat.com>
8993
8994 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
8995 Remove duplicate const.
8996 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
8997 duplicate const.
8998
7cf99fb1
PA
89992015-02-27 Pedro Alves <palves@redhat.com>
9000
9001 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
9002 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
9003 * features/feature_to_c.sh: Tag the generated xml_builtin array
9004 with extern const in C++ mode.
9005
1424c16e
TT
90062015-02-27 Tom Tromey <tromey@redhat.com>
9007
9008 * minidebug.c (struct lzma_stream): Rename to ...
9009 (struct gdb_lzma_stream): ... this.
9010 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
9011
10367c7c
PA
90122015-02-27 Pedro Alves <palves@redhat.com>
9013
9014 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
9015 function.
9016 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
9017 (mi_cmd_stack_list_variables): Use it.
9018
4180215b
PA
90192015-02-27 Pedro Alves <palves@redhat.com>
9020
9021 * x86-linux-nat.c (u_debugreg_offset): New function.
9022 (x86_linux_dr_get, x86_linux_dr_set): Use it.
9023
2f56f7c3
PA
90242015-02-27 Pedro Alves <palves@redhat.com>
9025
9026 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
9027 declaration.
9028 Include break-common.h.
9029
570dc176
TT
90302015-02-27 Tom Tromey <tromey@redhat.com>
9031 Pedro Alves <palves@redhat.com>
9032
9033 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
9034 local used to iterate over enums.
9035 * completer.c (signal_completer): Likewise.
9036 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
9037 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
9038 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
9039 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
9040 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
9041 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
9042 * tui-wingeneral.c (tui_refresh_all): Likewise.
9043
68c14faa
PA
90442015-02-27 Pedro Alves <palves@redhat.com>
9045
9046 * target.h: Include "infrun.h".
9047
749bab01
PA
90482015-02-27 Pedro Alves <palves@redhat.com>
9049
9050 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
9051
3c14e5a3
PA
90522015-02-27 Pedro Alves <palves@redhat.com>
9053
9054 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
9055 (IPA_SYM): Use it.
9056 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
9057
56000a98
PA
90582015-02-27 Pedro Alves <palves@redhat.com>
9059
9060 * cli-out.c (_rl_erase_entire_line): Move declaration out of
9061 cli_mld_erase_entire_line, and make it extern "C".
9062 * common/common-defs.h (EXTERN_C): New.
9063 * completer.c (_rl_completion_prefix_display_length)
9064 (_rl_print_completions_horizontally, QSFUNC): Move declarations
9065 out of gdb_display_match_list_1.
9066 (_rl_qsort_string_compare): Move declaration out of
9067 gdb_display_match_list_1, and make it extern "C".
9068 * defs.h (re_comp): Use EXTERN_C.
9069 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
9070 and make it extern "C".
9071 (monstartup): Move declaration out of maintenance_set_profile_cmd,
9072 and make it extern "C".
9073 (main): Move declaration out of maintenance_set_profile_cmd.
9074 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
9075 EXTERN_C.
9076
bcabf420
PA
90772015-02-27 Pedro Alves <palves@redhat.com>
9078
9079 * python/python.c (GdbMethods): Rename to ...
9080 (python_GdbMethods): ... this and make extern.
9081 (GdbModuleDef): Rename to ...
9082 (python_GdbModuleDef): ... this and make extern.
9083
928dbe07
PA
90842015-02-27 Pedro Alves <palves@redhat.com>
9085
9086 * record-btrace.c (set_record_btrace_cmdlist)
9087 (show_record_btrace_cmdlist): Remove redefinitions.
9088
52059ffd
TT
90892015-02-27 Tom Tromey <tromey@redhat.com>
9090 Pedro Alves <palves@redhat.com>
9091
9092 * dwarf2-frame.c (enum cfa_how_kind, struct
9093 dwarf2_frame_state_reg_info): Move out of struct
9094 dwarf2_frame_state.
9095 * dwarf2read.c (struct tu_stats): Move out of struct
9096 dwarf2_per_objfile.
9097 (struct file_entry): Move out of struct line_header.
9098 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
9099 typedef_field_list): Move out of struct field_info.
9100 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
9101 Move out of struct dynamic_prop.
9102 (union type_owner, union field_location, struct field, struct
9103 range_bounds, union type_specific): Move out of struct main_type.
9104 (struct fn_fieldlist, struct fn_field, struct typedef_field)
9105 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
9106 (struct call_site_target, union call_site_parameter_u, struct
9107 call_site_parameter): Move out of struct call_site.
9108 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
9109 m32c_prologue.
9110 (enum srcdest_kind): Move out of struct srcdest.
9111 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
9112 * prologue-value.h (enum prologue_value_kind): Move out of struct
9113 prologue_value.
9114 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
9115 gdbarch_tdep.
9116 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
9117 out of struct field_info.
9118 * symfile.h (struct other_sections): Move out of struct
9119 section_addr_info.
9120 * symtab.c (struct symbol_cache_slot): Move out struct
9121 block_symbol_cache.
9122 * target-descriptions.c (enum tdesc_type_kind): Move out of
9123 typedef struct tdesc_type.
9124 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
9125 struct tui_line_or_address.
9126 * value.c (enum internalvar_kind, union internalvar_data): Move
9127 out of struct internalvar.
9128 * xtensa-tdep.h (struct ctype_cache): Move out of struct
9129 gdbarch_tdep.
9130
fe978cb0
PA
91312015-02-27 Tom Tromey <tromey@redhat.com>
9132 Pedro Alves <palves@redhat.com>
9133
9134 Rename symbols whose names are reserved C++ keywords throughout.
9135
3bc3d82a
PA
91362015-02-27 Pedro Alves <palves@redhat.com>
9137
9138 * Makefile.in (COMPILER): New, get it from autoconf.
9139 (COMPILE.pre, CC_LD): Use COMPILER.
9140 (CXX): Get from autoconf instead.
9141 (CXX_FOR_TARGET): Default to g++ instead of gcc.
9142 * acinclude.m4: Include build-with-cxx.m4.
9143 * build-with-cxx.m4: New file.
9144 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
9145 Disable -Werror by default if building in C++ mode.
9146 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
9147 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
9148 Run supported-warning-flags tests with the C++ compiler.
9149 Save/restore CXXFLAGS too.
9150 * configure: Regenerate.
9151
07697489
PA
91522015-02-27 Pedro Alves <palves@redhat.com>
9153
9154 * libiberty.m4: New file.
9155 * acinclude.m4: Include libiberty.m4.
9156 * configure.ac: Call libiberty_INIT.
9157 * config.in, configure: Regenerate.
9158
60abeae4
AA
91592015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
9160
9161 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
9162 31-bit targets, but 64-bit targets as well.
9163 (s390_gnu_triplet_regexp): New function.
9164 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
9165 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
9166 method.
9167
f44466fb 91682015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
9169
9170 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
9171 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
9172 from CONTEXT_DEBUGGER.
9173
0def5aaa
DE
91742015-02-26 Doug Evans <dje@google.com>
9175
9176 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
9177 CHECK_TYPEDEF.
9178 (set_type_vptr_fieldno): Ditto.
9179 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
9180 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
9181
77b64a49
PA
91822015-02-26 Pedro Alves <palves@redhat.com>
9183
9184 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
9185 * complaints.c (vcomplaint): Pass argument FMT directly to
9186 printf-like functions instead of complaint->fmt.
9187 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
9188 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
9189 * compile/compile-loc2c.c (pushf, unary, binary): Add
9190 ATTRIBUTE_PRINTF.
9191 (do_compile_dwarf_expr_to_c): Pass string literal as format string
9192 to pushf.
9193 (BINARY): Pass string literal as format string to 'binary'.
9194 * compile/compile-object-load.c (link_callbacks_einfo): Add
9195 ATTRIBUTE_PRINTF.
9196 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
9197
532f44ed
PA
91982015-02-26 Pedro Alves <palves@redhat.com>
9199
9200 * windows-termcap.c: Rename to ...
9201 * stub-termcap.c: ... this. Adjust header line.
9202 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
9203 windows-termcap.c.
9204 * configure: Regenerate.
9205 * configure.ac: Refer to stub-termcap.o instead of
9206 windows-termcap.o.
9207 * gdb_curses.h: Mention stub-termcap.c instead of
9208 windows-termcap.c.
9209
081a1c2c
JK
92102015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9211
9212 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
9213 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
9214
2f41223f
AT
92152015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
9216
9217 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
9218
80c57053
JK
92192015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9220
9221 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
9222 bfd_canonicalize_symtab.
9223
cf424aef
JB
92242015-02-25 John Baldwin <jhb@FreeBSD.org>
9225
9226 * amd64fbsd-nat.c: Include sys/user.h.
9227 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
9228 instead of KERN_PS_STRINGS to locate the signal trampoline.
9229 * i386fbsd-nat.c: Include sys/user.h.
9230 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
9231 instead of KERN_PS_STRINGS to locate the signal trampoline.
9232 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
9233 (amd64fbsd_sigtramp_p): New.
9234 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
9235 longer set default values.
9236 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
9237 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
9238 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
9239 (i386fbsd_freebsd4_sigtramp_start)
9240 (i386fbsd_freebsd4_sigtramp_middle)
9241 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
9242 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
9243 (i386fbsd_sigtramp_p): New.
9244 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
9245 longer set default values.
9246 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
9247
c5cb74ee
JB
92482015-02-25 John Baldwin <jhb@freebsd.org>
9249
9250 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
9251 get_frame_register instead of frame_unwind_register_unsigned.
9252
17487d85
JK
92532015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9254
9255 PR build/18033
9256 * compile/compile-c-support.c (c_compute_program): Change // comment.
9257 * compile/compile-object-load.c (setup_sections): Change // comment.
9258
9357a9e6
JB
92592015-02-26 Joel Brobecker <brobecker@adacore.com>
9260
9261 PR build/18033:
9262 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
9263
1f10ba14
PA
92642015-02-23 Pedro Alves <palves@redhat.com>
9265
9266 * remote.c (skip_to_semicolon): New function.
9267 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
9268 special case the stop reasons that look like hex numbers
9269 upfront. Instead handle real register numbers after matching
9270 all the known stop reasons.
9271
96553a0c
DE
92722015-02-21 Doug Evans <dje@google.com>
9273
9274 PR c++/17976, symtab/17821
9275 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
9276 is_in_anonymous. All callers updated.
9277 (find_symbol_in_baseclass): Ditto.
9278 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
9279 for symbols in an anonymous namespace.
9280 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
9281 DW_AT_name directly.
9282 (dwarf2_name): Convert missing namespace name to
9283 CP_ANONYMOUS_NAMESPACE_STR.
9284
2db9a427
PA
92852015-02-20 Pedro Alves <palves@redhat.com>
9286
9287 * linux-nat.c (linux_handle_extended_wait): Call
9288 thread_db_notice_clone whenever a new clone LWP is detected.
9289 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
9290 functions.
9291 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
9292 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
9293 (linux_unstop_all_lwps): Declare.
9294 * linux-thread-db.c (struct thread_get_info_inout): Delete.
9295 (thread_get_info_callback): Delete.
9296 (thread_from_lwp): Use td_thr_get_info and record_thread.
9297 (thread_db_attach_lwp): Delete.
9298 (thread_db_notice_clone): New function.
9299 (try_thread_db_load_1): If /proc is mounted and shows the
9300 process'es task list, walk over all LWPs and call thread_from_lwp
9301 instead of relying on td_ta_thr_iter.
9302 (attach_thread): Don't call check_thread_signals here. Split the
9303 tail part of the function (which adds the thread to the core GDB
9304 thread list) to ...
9305 (record_thread): ... this function. Call check_thread_signals
9306 here.
9307 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
9308 call thread_from_lwp.
9309 (thread_db_update_thread_list): Rename to ...
9310 (thread_db_update_thread_list_org): ... this.
9311 (thread_db_update_thread_list): New function.
9312 (thread_db_find_thread_from_tid): Delete.
9313 (thread_db_get_ada_task_ptid): Simplify.
9314 * nat/linux-procfs.c: Include <sys/stat.h>.
9315 (linux_proc_task_list_dir_exists): New function.
9316 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
9317
3b27ef47
PA
93182015-02-20 Pedro Alves <palves@redhat.com>
9319
9320 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
9321 main LWP. Handle the case of waitpid returning 0 if we're already
9322 attached to the LWP. Don't set the LWP's last_resume_kind to
9323 resume_stop if we already knew about the LWP.
9324 (linux_nat_filter_event): Add debug logs.
9325
1cc28231
PA
93262015-02-20 Pedro Alves <palves@redhat.com>
9327
9328 * target.h (forward_target_decr_pc_after_break): Delete
9329 declaration.
9330
5c5019c2
PA
93312015-02-20 Pedro Alves <palves@redhat.com>
9332
9333 PR threads/18006
9334 * linux-thread-db.c (thread_get_info_callback): Return early if
9335 the thread's lwp id is -1.
9336
f3978e91
JB
93372015-02-20 Joel Brobecker <brobecker@adacore.com>
9338
9339 GDB 7.9 released.
9340
ffdf88ec
SE
93412015-02-19 Steve Ellcey <sellcey@imgtec.com>
9342
9343 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
9344 (dtrace_get_probes) Change type of variable 'dof'.
9345
c9587f88
AT
93462015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
9347
9348 PR breakpoints/16812
9349 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
9350 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
9351 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
9352
53cf2ee0
DT
93532015-02-19 David Taylor <dtaylor@emc.com>
9354
9355 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
9356
acfe0940
PP
93572015-02-18 Patrick Palka <patrick@parcs.ath.cx>
9358
9359 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
9360 function.
9361 (tui_putc): Don't call tui_handle_resize_during_io.
9362 (tui_getc): Likewise.
9363 (tui_mld_getc): Likewise.
9364 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
9365 (tui_sigwinch_token): New static variable.
9366 (tui_initialize_win): Adjust documentation. Set
9367 tui_sigwinch_token.
9368 (tui_async_resize_screen): New asynchronous callback.
9369 (tui_sigwinch_handler): Adjust documentation. Asynchronously
9370 invoke tui_async_resize_screen.
9371
f6a88844
JM
93722015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
9373
9374 * configure: Regenerated.
9375 * configure.ac: Use GDB_AC_TRANSFORM.
9376 * Makefile.in (aclocal_m4_deps): Added transform.m4.
9377 * acinclude.m4: sinclude transform.m4.
9378 * transform.m4: New file.
9379 (GDB_AC_TRANSFORM): New macro.
9380
b05e3b0d
JM
93812015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
9382
9383 * NEWS: Announce the support for DTrace SDT probes.
9384
c3e3045e
JM
93852015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
9386
9387 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
9388 (amd64_dtrace_parse_probe_argument): New function.
9389 (amd64_dtrace_probe_is_enabled): Likewise.
9390 (amd64_dtrace_enable_probe): Likewise.
9391 (amd64_dtrace_disable_probe): Likewise.
9392 (amd64_linux_init_abi): Register the
9393 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
9394 `gdbarch_dtrace_disable_probe' and
9395 `gdbarch_dtrace_probe_is_enabled' hooks.
9396 (amd64_dtrace_disabled_probe_sequence_1): New constant.
9397 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
9398 (amd64_dtrace_enable_probe_sequence): Likewise.
9399 (amd64_dtrace_disable_probe_sequence): Likewise.
9400
d4777acb
JM
94012015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
9402
9403 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
9404 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
9405 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
9406 handle ELF files.
9407 * Makefile.in (SFILES): dtrace-probe.c added.
9408 * configure: Regenerate.
9409 * dtrace-probe.c: New file.
9410 (SHT_SUNW_dof): New constant.
9411 (dtrace_probe_type): New enum.
9412 (dtrace_probe_arg): New struct.
9413 (dtrace_probe_arg_s): New typedef.
9414 (struct dtrace_probe_enabler): New struct.
9415 (dtrace_probe_enabler_s): New typedef.
9416 (dtrace_probe): New struct.
9417 (dtrace_probe_is_linespec): New function.
9418 (dtrace_dof_sect_type): New enum.
9419 (dtrace_dof_dofh_ident): Likewise.
9420 (dtrace_dof_encoding): Likewise.
9421 (DTRACE_DOF_ENCODE_LSB): Likewise.
9422 (DTRACE_DOF_ENCODE_MSB): Likewise.
9423 (dtrace_dof_hdr): New struct.
9424 (dtrace_dof_sect): Likewise.
9425 (dtrace_dof_provider): Likewise.
9426 (dtrace_dof_probe): Likewise.
9427 (DOF_UINT): New macro.
9428 (DTRACE_DOF_PTR): Likewise.
9429 (DTRACE_DOF_SECT): Likewise.
9430 (dtrace_process_dof_probe): New function.
9431 (dtrace_process_dof): Likewise.
9432 (dtrace_build_arg_exprs): Likewise.
9433 (dtrace_get_arg): Likewise.
9434 (dtrace_get_probes): Likewise.
9435 (dtrace_get_probe_argument_count): Likewise.
9436 (dtrace_can_evaluate_probe_arguments): Likewise.
9437 (dtrace_evaluate_probe_argument): Likewise.
9438 (dtrace_compile_to_ax): Likewise.
9439 (dtrace_probe_destroy): Likewise.
9440 (dtrace_gen_info_probes_table_header): Likewise.
9441 (dtrace_gen_info_probes_table_values): Likewise.
9442 (dtrace_probe_is_enabled): Likewise.
9443 (dtrace_probe_ops): New variable.
9444 (info_probes_dtrace_command): New function.
9445 (_initialize_dtrace_probe): Likewise.
9446 (dtrace_type_name): Likewise.
9447
8b367e17
JM
94482015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
9449
9450 * gdbarch.sh (dtrace_parse_probe_argument): New.
9451 (dtrace_probe_is_enabled): Likewise.
9452 (dtrace_enable_probe): Likewise.
9453 (dtrace_disable_probe): Likewise.
9454 * gdbarch.c: Regenerate.
9455 * gdbarch.h: Regenerate.
9456
9aca2ff8
JM
94572015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
9458
9459 * stap-probe.c (stap_probe_ops): Add NULLs in the static
9460 stap_probe_ops for `enable_probe' and `disable_probe'.
9461 * probe.c (enable_probes_command): New function.
9462 (disable_probes_command): Likewise.
9463 (_initialize_probe): Define the cli commands `enable probe' and
9464 `disable probe'.
9465 (parse_probe_linespec): New function.
9466 (info_probes_for_ops): Use parse_probe_linespec.
9467 * probe.h (probe_ops): New hooks `enable_probe' and
9468 `disable_probe'.
9469
03e98035
JM
94702015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
9471
9472 * probe.c (compute_probe_arg): Moved from stap-probe.c
9473 (compile_probe_arg): Likewise.
9474 (probe_funcs): Likewise.
9475 * stap-probe.c (compute_probe_arg): Moved to probe.c.
9476 (compile_probe_arg): Likewise.
9477 (probe_funcs): Likewise.
9478
6f9b8491
JM
94792015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
9480
9481 * probe.c (print_ui_out_not_applicables): New function.
9482 (exists_probe_with_pops): Likewise.
9483 (info_probes_for_ops): Do not include column headers for probe
9484 types for which no probe has been actually found on any object.
9485 Also invoke `print_ui_out_not_applicables' in order to match the
9486 column rows with the header when probes of several types are
9487 listed.
9488 Print the "Type" column.
9489 * probe.h (probe_ops): Added a new probe operation `type_name'.
9490 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
9491 (stap_type_name): New function.
9492
69efdff1
PP
94932015-02-17 Patrick Palka <patrick@parcs.ath.cx>
9494
9495 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
9496 (key_is_command_char): Delete.
9497
f8e5e23e
PA
94982015-02-17 Pedro Alves <palves@redhat.com>
9499
9500 * tui/tui.c (tui_enable): Resize windows before anything
9501 might show a window.
9502
9f2e0721
MO
95032015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
9504
9505 PR gdb/17984
9506 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
9507 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
9508 call.
9509 * aarch64-tdep.h (tdesc_aarch64): Declare.
9510
171e6b1c
MW
95112015-02-12 Mark Wielaard <mjw@redhat.com>
9512
9513 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
9514
d5ff0482
DE
95152015-02-13 Doug Evans <dje@google.com>
9516
9517 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
9518 anonymous_namespace to is_in_anonymous for consistency with the rest
9519 of the file.
9520 (cp_lookup_bare_symbol): Fix typo in comment.
9521 (cp_search_static_and_baseclasses): Ditto.
9522 (search_symbol_list): Use vertical space in comment better.
9523 (reset_directive_searched): Ditto. Fix typo.
9524 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
9525
9f04ac5f
YQ
95262015-02-13 Yao Qi <yao.qi@arm.com>
9527
9528 * MAINTAINERS: Update my email address.
9529
013d0319
DE
95302015-02-12 Doug Evans <dje@google.com>
9531
b615dd20 9532 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 9533
9a7e538e
DE
95342015-02-12 Doug Evans <dje@google.com>
9535
9536 * completer.c (complete_line): Remove incorrect comment.
9537
e1fcd575
JK
95382015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9539
9540 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
9541 (py_print_frame): Use RETURN_MASK_ERROR.
9542
b99bf4e3
JK
95432015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9544
9545 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
9546 function comment. Wrap all function that can throw in cleanups.
9547 (gdbpy_apply_frame_filter): Wrap all function that can throw in
9548 cleanups.
9549
800eb1ce
JK
95502015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9551
9552 * python/py-framefilter.c (py_print_frame): Substitute goto error.
9553 Remove the error label.
9554
34019068
JK
95552015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9556
9557 * python/py-framefilter.c (py_print_frame): Put conditional code paths
9558 with goto first, indent the former else codepath left. Put variable
9559 'elided' to a new inner block.
9560
8d4a54e2
JK
95612015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9562
9563 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
9564
18ad82c1
PA
95652015-02-11 Pedro Alves <palves@redhat.com>
9566
9567 * xcoffread.c (within_function): Delete.
9568
e36122e9
TT
95692015-02-11 Tom Tromey <tromey@redhat.com>
9570 Pedro Alves <palves@redhat.com>
9571
9572 * breakpoint.c (base_breakpoint_ops): Delete.
9573 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
9574 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
9575 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
9576 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
9577 * python/py-arch.c (arch_object_type): Make extern.
9578 * python/py-block.c (block_syms_iterator_object_type): Make extern.
9579 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
9580 * python/py-cmd.c (cmdpy_object_type): Make extern.
9581 * python/py-continueevent.c (continue_event_object_type)
9582 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
9583 parameter. Update all callers.
9584 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
9585 * python/py-exitedevent.c (exited_event_object_type): Make extern.
9586 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
9587 * python/py-function.c (fnpy_object_type): Make extern.
9588 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
9589 * python/py-infevents.c (call_pre_event_object_type)
9590 (inferior_call_post_event_object_type).
9591 (memory_changed_event_object_type): Make extern.
9592 * python/py-infthread.c (thread_object_type): Make extern.
9593 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
9594 * python/py-linetable.c (linetable_entry_object_type)
9595 (linetable_object_type, ltpy_iterator_object_type): Make extern.
9596 * python/py-newobjfileevent.c (new_objfile_event_object_type)
9597 (clear_objfiles_event_object_type): Make extern.
9598 * python/py-objfile.c (objfile_object_type): Make extern.
9599 * python/py-param.c (parmpy_object_type): Make extern.
9600 * python/py-progspace.c (pspace_object_type): Make extern.
9601 * python/py-signalevent.c (signal_event_object_type): Make extern.
9602 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
9603 * python/py-type.c (type_object_type, field_object_type)
9604 (type_iterator_object_type): Make extern.
9605 * python/python.c (python_extension_script_ops)
9606 (python_extension_ops): Make extern.
9607 * stap-probe.c (stap_probe_ops): Make extern.
9608
0703599a
PA
96092015-02-11 Pedro Alves <pedro@codesourcery.com>
9610
9611 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
9612 because the event thread is not the current thread.
9613
eaaf76ab
DE
96142015-02-11 Doug Evans <xdje42@gmail.com>
9615
9616 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
9617 been initialized yet, return NULL.
9618
e7d52ed3
DE
96192015-02-11 Doug Evans <dje@google.com>
9620
9621 * symfile.h (new_symfile_objfile): Delete.
9622 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
9623 All callers updated.
9624
fc6b1256
PP
96252015-02-11 Patrick Palka <patrick@parcs.ath.cx>
9626
9627 * tui/tui-io.c (tui_handle_resize_during_io): Call
9628 tui_update_gdb_sizes() after resizing the screen.
9629 * tui/tui.c (tui_enable): Resize the terminal before
9630 calling tui_update_gdb_sizes().
9631
d9080678
PP
96322015-02-11 Patrick Palka <patrick@parcs.ath.cx>
9633
9634 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
9635 line before printing a newline.
9636
9f615e3a
MW
96372015-02-11 Mark Wielaard <mjw@redhat.com>
9638
9639 * utils.c (producer_is_gcc): Return true or false.
9640
d9080678 96412015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
9642
9643 * utils.h (producer_is_gcc): Change return type to bool. Add major
9644 argument.
9645 * utils.c (producer_is_gcc): Likewise.
9646 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
9647 * dwarf2read.c (check_producer): Likewise.
9648
b052c4fb
PA
96492015-02-10 Pedro Alves <palves@redhat.com>
9650
9651 * infrun.c (displaced_step_fixup): Switch to the event thread
9652 before calling gdbarch_displaced_step_fixup.
9653
3ac240d4
AT
96542015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
9655
9656 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
9657
c1cc6152
SM
96582015-02-10 Simon Marchi <simon.marchi@ericsson.com>
9659
9660 * ada-varobj.c (ada_name_of_child): Constify parent.
9661 (ada_path_expr_of_child): Same.
9662 (ada_value_of_child): Same.
9663 (ada_type_of_child): Same.
9664 * c-varobj.c (c_is_path_expr_parent): Same.
9665 (c_describe_child): Same.
9666 (c_name_of_child): Same.
9667 (c_value_of_child): Same.
9668 (c_type_of_child): Same.
9669 (cplus_number_of_children): Same.
9670 (cplus_describe_child): Constify var.
9671 (cplus_name_of_child): Constify parent.
9672 (cplus_value_of_child): Same.
9673 (cplus_type_of_child): Same.
9674 * jv-varobj.c (java_name_of_child): Same.
9675 (java_value_of_child): Same.
9676 (java_type_of_child): Same.
9677 * varobj.c (value_of_child): Same.
9678 (varobj_default_is_path_expr_parent): Constify var, parent and return
9679 value.
9680 (varobj_get_path_expr): Constify var, modify path_expr through
9681 mutable_var.
9682 (install_new_value): Constify parent.
9683 (value_of_child): Constify parent.
9684 * varobj.h (struct varobj): Constify parent.
9685 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
9686 type_of_child.
9687 (varobj_get_path_expr): Constify var.
9688 (varobj_get_path_expr_parent): Constify var and return value.
9689
c1ee9414
LM
96902015-02-10 Luis Machado <lgustavo@codesourcery.com>
9691
9692 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
9693 (arm_prologue_this_id): Move PC and SP limit checks to
9694 arm_prologue_unwind_stop_reason.
9695 (arm_prologue_unwind) <stop_reason> : Set to
9696 arm_prologue_unwind_stop_reason.
9697
f7de9aab
MW
96982015-02-09 Mark Wielaard <mjw@redhat.com>
9699
9700 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
9701 DW_LANG_Fortran08 as language_fortran.
9702
0b24eb2d
SDJ
97032015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
9704
9705 PR remote/17946
9706 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
9707 of pointer against char.
9708
a2c2acaf
MW
97092015-02-09 Mark Wielaard <mjw@redhat.com>
9710
9711 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
9712 (c_type_print_modifier): Likewise.
9713 * dwarf2read.c (read_tag_atomic_type): New function.
9714 (read_type_die_1): Handle DW_TAG_atomic_type.
9715 * gdbtypes.c (make_atomic_type): New function.
9716 (recursive_dump_type): Handle TYPE_ATOMIC.
9717 * gdbtypes.h (enum type_flag_values): Renumber.
9718 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
9719 (TYPE_ATOMIC): New macro.
9720 (make_atomic_type): Declare.
9721
31fd9caa
MM
97222015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9723
9724 * btrace.c (ftrace_find_call): Skip gaps.
9725 (ftrace_new_function): Initialize level.
9726 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
9727 (ftrace_new_switch): Update
9728 level computation.
9729 (ftrace_new_gap): New.
9730 (ftrace_update_function): Create new function after gap.
9731 (btrace_compute_ftrace_bts): Create gap on error.
9732 (btrace_stitch_bts): Update parameters. Clear trace if it
9733 becomes empty.
9734 (btrace_stitch_trace): Update parameters. Update callers.
9735 (btrace_clear): Reset the number of gaps.
9736 (btrace_insn_get): Return NULL if the iterator points to a gap.
9737 (btrace_insn_number): Return zero if the iterator points to a gap.
9738 (btrace_insn_end): Allow gaps at the end.
9739 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
9740 (btrace_find_insn_by_number): Assert that the found iterator does
9741 not point to a gap.
9742 (btrace_call_next, btrace_call_prev): Assert that the last function
9743 is not a gap.
9744 * btrace.h (btrace_bts_error): New.
9745 (btrace_function): Update comment.
9746 (btrace_function) <insn, insn_offset, number>: Update comment.
9747 (btrace_function) <errcode>: New.
9748 (btrace_thread_info) <ngaps>: New.
9749 (btrace_thread_info) <replay>: Update comment.
9750 (btrace_insn_get): Update comment.
9751 * record-btrace.c (btrace_ui_out_decode_error): New.
9752 (record_btrace_info): Print number of gaps.
9753 (btrace_insn_history, btrace_call_history): Call
9754 btrace_ui_out_decode_error for gaps.
9755 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
9756
afb778a2
MM
97572015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9758
9759 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
9760 * nat/linux-btrace.c: (btrace_this_cpu): New.
9761 (cpu_supports_bts): Call btrace_this_cpu.
9762 (intel_supports_bts): Add cpu parameter.
9763
7d5c24b3
MM
97642015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9765
9766 * btrace.h (btrace_insn_class): New.
9767 (btrace_insn) <size, iclass>: New.
9768 * btrace.c (ftrace_find_call): Update parameters. Update users.
9769 Use instruction classification.
9770 (ftrace_new_return): Update parameters. Update users.
9771 (ftrace_update_function): Update parameters. Update users. Use
9772 instruction classification.
9773 (ftrace_update_insns): Update parameters. Update users.
9774 (ftrace_classify_insn): New.
9775 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
9776 TRY_CATCH around call to gdb_insn_length.
9777
76235df1
MM
97782015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9779
9780 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
9781 Update parameters. Update users.
9782
d33501a5
MM
97832015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9784
9785 * btrace.c (parse_xml_btrace_conf_bts): Add size.
9786 (btrace_conf_bts_attributes): New.
9787 (btrace_conf_children): Add attributes.
9788 * common/btrace-common.h (btrace_config_bts): New.
9789 (btrace_config)<bts>: New.
9790 (btrace_config): Update comment.
9791 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
9792 Use config.
9793 * features/btrace-conf.dtd: Increment version. Add size
9794 attribute to bts element.
9795 * record-btrace.c (set_record_btrace_bts_cmdlist,
9796 show_record_btrace_bts_cmdlist): New.
9797 (record_btrace_adjust_size, record_btrace_print_bts_conf,
9798 record_btrace_print_conf, cmd_set_record_btrace_bts,
9799 cmd_show_record_btrace_bts): New.
9800 (record_btrace_info): Call record_btrace_print_conf.
9801 (_initialize_record_btrace): Add commands.
9802 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
9803 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
9804 (btrace_sync_conf): Synchronize bts size.
9805 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
9806 * NEWS: Announce new commands and new packets.
9807
f4abbc16
MM
98082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9809
9810 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
9811 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
9812 (x86_linux_btrace_conf): New.
9813 (x86_linux_create_target): Initialize to_btrace_conf.
9814 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
9815 Check format. Split into this and ...
9816 (linux_enable_bts): ... this.
9817 (linux_btrace_conf): New.
9818 (perf_event_skip_record): Renamed into ...
9819 (perf_event_skip_bts_record): ... this. Updated users.
9820 (linux_disable_btrace): Split into this and ...
9821 (linux_disable_bts): ... this.
9822 (linux_read_btrace): Check format.
9823 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
9824 (linux_btrace_conf): New.
9825 (btrace_target_info)<ptid>: Moved.
9826 (btrace_target_info)<conf>: New.
9827 (btrace_target_info): Split into this and ...
9828 (btrace_tinfo_bts): ... this. Updated users.
9829 * btrace.c (btrace_enable): Update parameters.
9830 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
9831 (btrace_conf_children, btrace_conf_attributes)
9832 (btrace_conf_elements): New.
9833 * btrace.h (btrace_enable): Update parameters.
9834 (btrace_conf, parse_xml_btrace_conf): New.
9835 * common/btrace-common.h (btrace_config): New.
9836 * feature/btrace-conf.dtd: New.
9837 * record-btrace.c (record_btrace_conf): New.
9838 (record_btrace_cmdlist): New.
9839 (record_btrace_enable_warn, record_btrace_open): Pass
9840 &record_btrace_conf.
9841 (record_btrace_info): Print recording format.
9842 (cmd_record_btrace_bts_start): New.
9843 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
9844 (_initialize_record_btrace): Add "record btrace bts" subcommand.
9845 Add "record bts" alias command.
9846 * remote.c (remote_state)<btrace_config>: New.
9847 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
9848 (remote_protocol_features): Add qXfer:btrace-conf:read.
9849 (remote_open_1): Call remote_btrace_reset.
9850 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
9851 (btrace_target_info)<conf>: New.
9852 (btrace_sync_conf, btrace_read_config): New.
9853 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
9854 btrace_read_conf.
9855 (remote_btrace_conf): New.
9856 (init_remote_ops): Initialize to_btrace_conf.
9857 (_initialize_remote): Add qXfer:btrace-conf packet.
9858 * target.c (target_enable_btrace): Update parameters.
9859 (target_btrace_conf): New.
9860 * target.h (target_enable_btrace): Update parameters.
9861 (target_btrace_conf): New.
9862 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
9863 (target_ops)<to_enable_btrace>: Update parameters and comment.
9864 (target_ops)<to_btrace_conf>: New.
9865 * target-delegates: Regenerate.
9866 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
9867 (target_debug_print_const_struct_btrace_target_info_p): New.
9868 * NEWS: Announce new command and new packet.
9869
aadf7753
MM
98702015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9871
9872 * nat/linux-btrace.h (perf_event_buffer): New.
9873 (btrace_target_info) <buffer, size, data_head>: Replace with ...
9874 <bts>: ... this.
9875 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
9876 (perf_event_buffer_size, perf_event_buffer_begin)
9877 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
9878 Updated users.
9879 (perf_event_new_data): New.
9880
043c3577
MM
98812015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9882
9883 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
9884 * record-btrace.c (record_btrace_open): Remove call to
9885 target_supports_btrace.
9886 * remote.c (remote_supports_btrace): Update parameters.
9887 * target.c (target_supports_btrace): Update parameters.
9888 * target.h (to_supports_btrace, target_supports_btrace): Update
9889 parameters.
9890 * target-delegates.c: Regenerate.
9891 * target-debug.h (target_debug_print_enum_btrace_format): New.
9892 * nat/linux-btrace.c
9893 (kernel_supports_btrace): Rename into ...
9894 (kernel_supports_bts): ... this. Update users. Update warning text.
9895 (intel_supports_btrace): Rename into ...
9896 (intel_supports_bts): ... this. Update users.
9897 (cpu_supports_btrace): Rename into ...
9898 (cpu_supports_bts): ... this. Update users.
9899 (linux_supports_btrace): Update parameters. Split into this and ...
9900 (linux_supports_bts): ... this.
9901 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
9902
734b0e4b
MM
99032015-02-09 Markus Metzger <markus.t.metzger@intel.com>
9904
9905 * Makefile.in (SFILES): Add common/btrace-common.c.
9906 (COMMON_OBS): Add common/btrace-common.o.
9907 (btrace-common.o): Add build rules.
9908 * btrace.c (parse_xml_btrace): Update parameters.
9909 (parse_xml_btrace_block): Set format field.
9910 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
9911 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
9912 (btrace_compute_ftrace): Split into this and...
9913 (btrace_compute_ftrace_bts): ...this.
9914 (btrace_stitch_trace): Split into this and...
9915 (btrace_stitch_bts): ...this.
9916 * btrace.h (parse_xml_btrace): Update parameters.
9917 (make_cleanup_btrace_data): New.
9918 * common/btrace-common.c: New.
9919 * common/btrace-common.h: Include common-defs.h.
9920 (btrace_block_s): Update comment.
9921 (btrace_format): New.
9922 (btrace_format_string): New.
9923 (btrace_data_bts): New.
9924 (btrace_data): New.
9925 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
9926 * remote.c (remote_read_btrace): Update parameters.
9927 * target.c (target_read_btrace): Update parameters.
9928 * target.h (target_read_btrace): Update parameters.
9929 (target_ops)<to_read_btrace>: Update parameters.
9930 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
9931 * target-delegates.c: Regenerate.
9932 * target-debug (target_debug_print_struct_btrace_data_p): New.
9933 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
9934 (linux_read_bts): ...this.
9935 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
9936
bd2e0e9e
DE
99372015-02-06 Doug Evans <dje@google.com>
9938
9939 * remote-m32r-sdi.c: Include symfile.h.
9940
f176c4b5
DE
99412015-02-06 Doug Evans <dje@google.com>
9942
9943 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
9944 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
9945 to here.
9946
d6c146e9
PA
99472015-02-06 Pedro Alves <palves@redhat.com>
9948
9949 * linux-thread-db.c (find_new_threads_callback): Add debug output.
9950
b9d61307
SM
99512015-02-06 Simon Marchi <simon.marchi@ericsson.com>
9952
9953 PR gdb/15678
9954 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
9955 (enable_count_command): Check args for NULL value.
9956
e9fbd043
DE
99572015-02-05 Doug Evans <xdje42@gmail.com>
9958
9959 * guile/scm-frame.c: Fix spelling errors in a comment.
9960
881d5d5d
JK
99612015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9962
9963 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
9964 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
9965 return type.
9966
20ba1ce6
PA
99672015-02-04 Pedro Alves <palves@redhat.com>
9968
9969 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
9970 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
9971 returns true.
9972 (resume_stopped_resumed_lwps): Don't check whether the thread is
9973 marked as executing.
9974 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
9975
f962539a
AA
99762015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9977
9978 * regset.h (struct regset): Add flags field.
9979 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
9980 * corelow.c (get_core_register_section): Add warning if the size
9981 exceeds the requested size and the regset does not have the
9982 REGSET_VARIABLE_SIZE flag set.
9983 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
9984 flag.
9985 * armbsd-tdep.c (armbsd_gregset): Likewise.
9986 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
9987 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
9988 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
9989 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
9990
dde9acd6
AA
99912015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9992
9993 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
9994 For ".reg-xstate", explicitly specify the requested section size
9995 via X86_XSTATE_SIZE instead of just 0 on input and
9996 X86_XSTATE_MAX_SIZE on output.
9997 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
9998 Likewise.
9999
1528345d
AA
100002015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
10001
10002 PR corefiles/17808:
10003 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
10004 function type, particularly its SIZE parameter.
10005 * gdbarch.h: Regenerate.
10006 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
10007 actual against required size using ">=" instead of "==".
10008 (amd64_collect_fpregset): Likewise.
10009 * i386-tdep.c (i386_supply_gregset): Likewise.
10010 (i386_collect_gregset): Likewise.
10011 (i386_supply_fpregset): Likewise.
10012 (i386_collect_fpregset): Likewise.
10013 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
10014 (mips_fill_gregset_wrapper): Likewise.
10015 (mips_supply_fpregset_wrapper): Likewise.
10016 (mips_fill_fpregset_wrapper): Likewise.
10017 (mips64_supply_gregset_wrapper): Likewise.
10018 (mips64_fill_gregset_wrapper): Likewise.
10019 (mips64_supply_fpregset_wrapper): Likewise.
10020 (mips64_fill_fpregset_wrapper): Likewise.
10021 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
10022 (am33_supply_fpregset_method): Likewise.
10023 (am33_collect_gregset_method): Likewise.
10024 (am33_collect_fpregset_method): Likewise.
10025
518be979
DE
100262015-02-04 Doug Evans <dje@google.com>
10027 Pedro Alves <palves@redhat.com>
10028 Eli Zaretskii <eliz@gnu.org>
10029
10030 PR tui/17810
10031 * tui/tui-command.c (tui_refresh_cmd_win): New function.
10032 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
10033 * tui/tui-file.c: #include tui/tui-command.h.
10034 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
10035 (tui_file_flush): Refresh command window if stream is gdb_stdout.
10036 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
10037
80bd5fab
PA
100382015-02-04 Pedro Alves <palves@redhat.com>
10039
10040 Fix build breakage.
10041 * event-loop.c (gdb_do_one_event): Add default switch case.
10042
a7606d80
JK
100432015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10044
10045 Filter out inferior gcc option -fpreprocessed.
10046 * compile/compile.c (filter_args): New function.
10047 (get_args): Use it.
10048
70b66289
PA
100492015-02-03 Pedro Alves <palves@redhat.com>
10050
10051 * event-loop.c: Don't declare nor define a queue type for
10052 gdb_event_p.
10053 (event_queue): Delete.
10054 (create_event, create_file_event, gdb_event_xfree)
10055 (initialize_event_loop, process_event): Delete.
10056 (gdb_do_one_event): Return as soon as one event is handled.
10057 (handle_file_event): Change prototype. Used the passed in
10058 file_handler pointer and ready_mask instead of looping over all
10059 file handlers.
10060 (gdb_wait_for_event): Update the poll/select timeouts before
10061 blocking. Run event handlers directly instead of queueing events.
10062 Return as soon as one event is handled.
10063 (struct async_event_handler_data): Delete.
10064 (invoke_async_event_handler): Delete.
10065 (check_async_event_handlers): Change return type to int. Run
10066 event handlers directly instead of queueing events. Return as
10067 soon as one event is handled.
10068 (handle_timer_event): Delete.
10069 (update_wait_timeout): New function, factored out from
10070 poll_timers.
10071 (poll_timers): Reimplement.
10072 * event-loop.h (initialize_event_loop): Delete declaration.
10073 * top.c (gdb_init): Don't call initialize_event_loop.
10074
b7d2e916
PA
100752015-02-03 Pedro Alves <palves@redhat.com>
10076
10077 * event-loop.c (clear_async_event_handler): New function.
10078 * event-loop.h (clear_async_event_handler): New declaration.
10079 * record-btrace.c (record_btrace_async): New function.
10080 (init_record_btrace_ops): Install record_btrace_async.
10081 * record-full.c (record_full_async): New function.
10082 (record_full_resume): Don't mark the async event source here.
10083 (init_record_full_ops): Install record_full_async.
10084 (record_full_core_resume): Don't mark the async event source here.
10085 (init_record_full_core_ops): Install record_full_async.
10086 * remote.c (remote_async): Mark and clear the async stop reply
10087 queue event-loop token as appropriate.
10088
d9d41e78
PA
100892015-02-03 Pedro Alves <palves@redhat.com>
10090
10091 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
10092 target_is_async_p instead of target_can_async.
10093 (linux_nat_wait): Use target_is_async_p instead of
10094 target_can_async. Don't enable async here.
10095 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
10096 target_is_async_p instead of target_can_async.
10097
aa3de267
SM
100982015-02-02 Simon Marchi <simon.marchi@ericsson.com>
10099
10100 * varobj.h (lang_varobj_ops): Mention which return values need
10101 to be freed.
10102
2c811c0f
JB
101032015-02-02 Joel Brobecker <brobecker@adacore.com>
10104
10105 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
10106
b1eedac9
JB
101072015-02-02 Joel Brobecker <brobecker@adacore.com>
10108
10109 PR gdb/17856:
10110 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
10111 results found in the cache.
10112
66c168ae
JB
101132015-02-02 Joel Brobecker <brobecker@adacore.com>
10114
10115 PR gdb/17854:
10116 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
10117 when allocating a new one.
10118
4bdc02b2
TT
101192015-02-01 Tom Tromey <tom@tromey.com>
10120
10121 * MAINTAINERS: Remove myself.
10122
ae6ae975
DE
101232015-01-31 Doug Evans <xdje42@gmail.com>
10124
10125 * dwarf2read.c (process_structure_scope): Update setting of
10126 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
10127 * gdbtypes.c (internal_type_vptr_fieldno): New function.
10128 (set_type_vptr_fieldno): New function.
10129 (internal_type_vptr_basetype): New function.
10130 (set_type_vptr_basetype): New function.
10131 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
10132 TYPE_VPTR_BASETYPE.
10133 (allocate_cplus_struct_type): Initialize vptr_fieldno.
10134 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
10135 (print_cplus_stuff): ... moved here.
10136 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
10137 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
10138 moved to ...
10139 (struct cplus_struct_type): ... here. All uses updated.
10140 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
10141 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
10142 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
10143 * stabsread.c (read_tilde_fields): Update setting of
10144 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
10145
09e2d7c7
DE
101462015-01-31 Doug Evans <xdje42@gmail.com>
10147
10148 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
10149 to self_p.
10150 (cp_print_class_member): Rename local domain to self_type.
10151 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
10152 domain_type to self_type.
10153 (set_die_type) <need_gnat_info>: Handle
10154 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
10155 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
10156 TYPE_SPECIFIC_SELF_TYPE.
10157 * gdbtypes.c (internal_type_self_type): New function.
10158 (set_type_self_type): New function.
10159 (smash_to_memberptr_type): Rename parameter domain to self_type.
10160 Update setting of TYPE_SELF_TYPE.
10161 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
10162 (smash_to_method_type): Rename parameter domain to self_type.
10163 Update setting of TYPE_SELF_TYPE.
10164 (check_stub_method): Call smash_to_method_type.
10165 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
10166 (copy_type_recursive): Ditto.
10167 * gdbtypes.h (enum type_specific_kind): New value
10168 TYPE_SPECIFIC_SELF_TYPE.
10169 (struct main_type) <type_specific>: New member self_type.
10170 (struct cplus_struct_type) <fn_field.type>: Update comment.
10171 (TYPE_SELF_TYPE): Rewrite.
10172 (internal_type_self_type, set_type_self_type): Declare.
10173 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
10174 self_type.
10175 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
10176 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
10177 TYPE_TARGET_TYPE.
10178 * stabsread.c (read_member_functions): Mark methods with
10179 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
10180 TYPE_SELF_TYPE.
10181
4bfb94b8
DE
101822015-01-31 Doug Evans <xdje42@gmail.com>
10183
10184 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
10185 All uses updated.
10186
5f4ce105
DE
101872015-01-31 Doug Evans <xdje42@gmail.com>
10188
10189 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
10190 or unions. Return zero if union.
10191 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
10192 (gnuv3_rtti_type): Pass already-check_typedef'd value to
10193 gnuv3_get_vtable.
10194 (compute_vtable_size): Assert only passed structs.
10195 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
10196
f6b3afbf
DE
101972015-01-31 Doug Evans <xdje42@gmail.com>
10198
10199 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
10200 kinds.
10201
cfb069a8
GB
102022015-01-31 Gary Benson <gbenson@redhat.com>
10203 Doug Evans <dje@google.com>
10204
10205 PR cli/9007
10206 PR cli/11920
10207 PR cli/15548
10208 * cli/cli-cmds.c (complete_command): Notify user if max-completions
10209 reached.
10210 * common/common-exceptions.h (enum errors)
10211 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
10212 * completer.h (get_max_completions_reached_message): New declaration.
10213 (max_completions): Likewise.
10214 (completion_tracker_t): New typedef.
10215 (new_completion_tracker): New declaration.
10216 (make_cleanup_free_completion_tracker): Likewise.
10217 (maybe_add_completion_enum): New enum.
10218 (maybe_add_completion): New declaration.
10219 (throw_max_completions_reached_error): Likewise.
10220 * completer.c (max_completions): New global variable.
10221 (new_completion_tracker): New function.
10222 (free_completion_tracker): Likewise.
10223 (make_cleanup_free_completion_tracker): Likewise.
10224 (maybe_add_completions): Likewise.
10225 (throw_max_completions_reached_error): Likewise.
10226 (complete_line): Remove duplicates and limit result to max_completions
10227 entries.
10228 (get_max_completions_reached_message): New function.
10229 (gdb_display_match_list): Handle max_completions.
10230 (_initialize_completer): New declaration and function.
10231 * symtab.c: Include completer.h.
10232 (completion_tracker): New static variable.
10233 (completion_list_add_name): Call maybe_add_completion.
10234 (default_make_symbol_completion_list_break_on_1): Renamed from
10235 default_make_symbol_completion_list_break_on. Maintain
10236 completion_tracker across calls to completion_list_add_name.
10237 (default_make_symbol_completion_list_break_on): New function.
10238 * top.c (init_main): Set rl_completion_display_matches_hook.
10239 * tui/tui-io.c: Include completer.h.
10240 (tui_old_rl_display_matches_hook): New static global.
10241 (tui_rl_display_match_list): Notify user if max-completions reached.
10242 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
10243 * NEWS (New Options): Mention set/show max-completions.
10244
e11c72c7
GB
102452015-01-31 Gary Benson <gbenson@redhat.com>
10246
10247 * symtab.c (struct add_name_data) <code>: New field.
10248 Updated comments.
10249 (add_symtab_completions): New function.
10250 (symtab_expansion_callback): Likewise.
10251 (default_make_symbol_completion_list_break_on): Set datum.code.
10252 Move minimal symbol scan before calling expand_symtabs_matching.
10253 Scan known primary symtabs for externs and statics before calling
10254 expand_symtabs_matching. Pass symtab_expansion_callback as
10255 expansion_notify argument to expand_symtabs_matching. Do not scan
10256 primary symtabs for externs and statics after calling
10257 expand_symtabs_matching.
10258
276d885b
GB
102592015-01-31 Gary Benson <gbenson@redhat.com>
10260
10261 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
10262 (struct quick_symbol_functions) <expand_symtabs_matching>:
10263 New argument expansion_notify. All uses updated.
10264 (expand_symtabs_matching): New argument expansion_notify.
10265 All uses updated.
10266 * symfile-debug.c (debug_qf_expand_symtabs_matching):
10267 Also print expansion notify.
10268 * symtab.c (expand_symtabs_matching_via_partial): Call
10269 expansion_notify whenever a partial symbol table is expanded.
10270 * dwarf2read.c (dw2_expand_symtabs_matching): Call
10271 expansion_notify whenever a symbol table is instantiated.
10272
82083d6d
DE
102732015-01-31 Doug Evans <xdje42@gmail.com>
10274
10275 * cli-out.c: #include completer.h, readline/readline.h.
10276 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
10277 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
10278 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
10279 * cli-out.h (cli_display_match_list): Declare.
10280 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
10281 (ELLIPSIS_LEN): Ditto.
10282 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
10283 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
10284 (gdb_fnprint, gdb_print_filename): Ditto.
10285 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
10286 (gdb_display_match_list): Ditto.
10287 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
10288 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
10289 (mld_beep_ftype, mld_read_key_ftype): Ditto.
10290 (match_list_displayer): New struct.
10291 (gdb_display_match_list): Declare.
10292 * top.c (init_main): Set rl_completion_display_matches_hook.
10293 * tui/tui-io.c: #include completer.h.
10294 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
10295 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
10296 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
10297 (tui_mld_getc, tui_mld_read_key): Ditto.
10298 (tui_rl_display_match_list): Rewrite.
10299 (tui_handle_resize_during_io): New arg for_completion. All callers
10300 updated.
10301
f57d2163
DE
103022015-01-31 Doug Evans <xdje42@gmail.com>
10303
10304 Add symbol lookup cache.
10305 * NEWS: Document new options and commands.
10306 * symtab.c (symbol_cache_key): New static global.
10307 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
10308 (SYMBOL_LOOKUP_FAILED): New macro.
10309 (symbol_cache_slot_state): New enum.
10310 (block_symbol_cache): New struct.
10311 (symbol_cache): New struct.
10312 (new_symbol_cache_size, symbol_cache_size): New static globals.
10313 (hash_symbol_entry, eq_symbol_entry): New functions.
10314 (symbol_cache_byte_size, resize_symbol_cache): New functions.
10315 (make_symbol_cache, free_symbol_cache): New functions.
10316 (get_symbol_cache, symbol_cache_cleanup): New function.
10317 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
10318 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
10319 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
10320 (symbol_cache_flush, symbol_cache_dump): New functions.
10321 (maintenance_print_symbol_cache): New function.
10322 (maintenance_flush_symbol_cache): New function.
10323 (symbol_cache_stats): New function.
10324 (maintenance_print_symbol_cache_statistics): New function.
10325 (symtab_new_objfile_observer): New function.
10326 (symtab_free_objfile_observer): New function.
10327 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
10328 (_initialize_symtab): Init symbol_cache_key. New parameter
10329 maint symbol-cache-size. New maint commands print symbol-cache,
10330 print symbol-cache-statistics, flush-symbol-cache.
10331 Install new_objfile, free_objfile observers.
10332
e700d1b2
JB
103332015-01-31 Joel Brobecker <brobecker@adacore.com>
10334
10335 PR symtab/17855
10336 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
10337 to end.
10338
9f050062
DE
103392015-01-31 Doug Evans <xdje42@gmail.com>
10340
10341 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
10342 * auto-load.c: #include ctype.h.
10343 (struct auto_load_pspace_info): Replace member loaded_scripts with
10344 new members loaded_script_files, loaded_script_texts.
10345 (auto_load_pspace_data_cleanup): Update.
10346 (init_loaded_scripts_info): Update.
10347 (get_auto_load_pspace_data_for_loading): Update.
10348 (maybe_add_script_file): Renamed from maybe_add_script. All callers
10349 updated.
10350 (maybe_add_script_text): New function.
10351 (clear_section_scripts): Update.
10352 (source_script_file, execute_script_contents): New functions.
10353 (source_section_scripts): Add support for
10354 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
10355 (print_scripts): New function.
10356 (auto_load_info_scripts): Also print inlined scripts.
10357 (maybe_print_unsupported_script_warning): Renamed from
10358 unsupported_script_warning_print. All callers updated.
10359 (maybe_print_script_not_found_warning): Renamed from
10360 script_not_found_warning_print. All callers updated.
10361 * extension-priv.h (struct extension_language_script_ops): New member
10362 objfile_script_executor.
10363 * extension.c (ext_lang_objfile_script_executor): New function.
10364 * extension.h (objfile_script_executor_func): New typedef.
10365 (ext_lang_objfile_script_executor): Declare.
10366 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
10367 * guile/guile.c (guile_extension_script_ops): Update.
10368 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
10369 * python/python.c (python_extension_script_ops): Update.
10370 (gdbpy_execute_objfile_script): New function.
10371
312809f8
EZ
103722015-01-31 Eli Zaretskii <eliz@gnu.org>
10373
10374 * tui/tui-io.c (tui_expand_tabs): New function.
10375 (tui_puts, tui_redisplay_readline): Expand TABs into the
10376 appropriate number of spaces.
10377 * tui/tui-regs.c: Include tui-io.h.
10378 (tui_register_format): Call tui_expand_tabs to expand TABs into
10379 the appropriate number of spaces.
10380 * tui/tui-io.h: Add prototype for tui_expand_tabs.
10381
b6577aab
DE
103822015-01-30 Doug Evans <dje@google.com>
10383
10384 * NEWS: "info source" command now display producer string if present.
10385 * source.c (source_info): Print producer string if present.
10386
6da58d3e
SM
103872015-01-30 Simon Marchi <simon.marchi@ericsson.com>
10388
10389 * varobj.c (varobj_delete): Fix comment.
10390
837ce252
SM
103912015-01-30 Simon Marchi <simon.marchi@ericsson.com>
10392
10393 * varobj.c (create_child): Modify comment.
10394
b09e2c59
SM
103952015-01-30 Simon Marchi <simon.marchi@ericsson.com>
10396
10397 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
10398 parameter.
10399 (ada_name_of_variable): Same.
10400 (ada_path_expr_of_child): Same.
10401 (ada_value_of_variable): Same.
10402 (ada_value_is_changeable_p): Same.
10403 (ada_value_has_mutated): Same.
10404 * c-varobj.c (varobj_is_anonymous_child): Same.
10405 (c_is_path_expr_parent): Same.
10406 (c_number_of_children): Same.
10407 (c_name_of_variable): Same.
10408 (c_path_expr_of_child): Same.
10409 (get_type): Same.
10410 (c_value_of_variable): Same.
10411 (cplus_number_of_children): Same.
10412 (cplus_name_of_variable): Same.
10413 (cplus_path_expr_of_child): Same.
10414 (cplus_value_of_variable): Same.
10415 * jv-varobj.c (java_number_of_children): Same.
10416 (java_name_of_variable): Same.
10417 (java_path_expr_of_child): Same.
10418 (java_value_of_variable): Same.
10419 * varobj.c (number_of_children): Same.
10420 (name_of_variable): Same.
10421 (is_root_p): Same.
10422 (varobj_ensure_python_env): Same.
10423 (varobj_get_objname): Same.
10424 (varobj_get_expression): Same.
10425 (varobj_get_display_format): Same.
10426 (varobj_get_display_hint): Same.
10427 (varobj_has_more): Same.
10428 (varobj_get_thread_id): Same.
10429 (varobj_get_frozen): Same.
10430 (dynamic_varobj_has_child_method): Same.
10431 (varobj_get_gdb_type): Same.
10432 (is_path_expr_parent): Same.
10433 (varobj_default_is_path_expr_parent): Same.
10434 (varobj_get_language): Same.
10435 (varobj_get_attributes): Same.
10436 (varobj_is_dynamic_p): Same.
10437 (varobj_get_child_range): Same.
10438 (varobj_value_has_mutated): Same.
10439 (varobj_get_value_type): Same.
10440 (number_of_children): Same.
10441 (name_of_variable): Same.
10442 (check_scope): Same.
10443 (varobj_editable_p): Same.
10444 (varobj_value_is_changeable_p): Same.
10445 (varobj_floating_p): Same.
10446 (varobj_default_value_is_changeable_p): Same.
10447
2568868e
SM
104482015-01-30 Simon Marchi <simon.marchi@ericsson.com>
10449
10450 * varobj.c (varobj_get_path_expr): Set var->path_expr.
10451 * c-varobj.c (c_path_expr_of_child): Set local var instead of
10452 child->path_expr.
10453 (cplus_path_expr_of_child): Same.
10454
ca83fa81
SM
104552015-01-30 Simon Marchi <simon.marchi@ericsson.com>
10456
10457 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
10458 result.
10459 (mi_cmd_var_info_expression): Same.
10460 * varobj.c (varobj_get_expression): Mention in the comment that
10461 the result must by freed by the caller.
10462
afa269ae
SM
104632015-01-30 Simon Marchi <simon.marchi@ericsson.com>
10464
10465 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
10466 varobj_get_type.
10467 (varobj_update_one): Same.
10468 * varobj.c (update_type_if_necessary): Free curr_type_str and
10469 new_type_str.
10470 (varobj_get_type): Specify in comment that the result needs to be
10471 freed by the caller.
10472
cd366ee8
DE
104732015-01-29 Doug Evans <dje@google.com>
10474
10475 PR symtab/17890
10476 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
10477
38360086
MW
104782015-01-25 Mark Wielaard <mjw@redhat.com>
10479
10480 * dwarf2read.c (checkproducer): Call producer_is_gcc.
10481 * utils.c (producer_is_gcc_ge_4): Likewise.
10482 (producer_is_gcc): New function.
10483 * utils.h (producer_is_gcc): New declaration.
10484
df25ebbd
JB
104852015-01-29 Joel Brobecker <brobecker@adacore.com>
10486
10487 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
10488 kind.
10489 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
10490 parameter by "addr_stack" parameter.
10491 (resolve_dynamic_range): Replace "addr" parameter by
10492 "stack_addr" parameter. Update function documentation.
10493 Update code accordingly.
10494 (resolve_dynamic_array, resolve_dynamic_union)
10495 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
10496 (resolve_dynamic_type): Update code, following the changes made
10497 to resolve_dynamic_type_internal's interface.
10498 * dwarf2loc.h (struct property_addr_info): New.
10499 (dwarf2_evaluate_property): Replace "address" parameter
10500 by "addr_stack" parameter. Adjust function documentation.
10501 (struct dwarf2_offset_baton): New.
10502 (struct dwarf2_property_baton): Update documentation of
10503 field "referenced_type" to be more general. New field
10504 "offset_info" in union data field.
10505 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
10506 parameter by "addr_stack" parameter. Adjust code accordingly.
10507 Add support for PROP_ADDR_OFFSET properties.
10508 * dwarf2read.c (attr_to_dynamic_prop): Add support for
10509 DW_AT_data_member_location attributes as well. Use case
10510 statements instead of if/else condition.
10511
4a0ca9ec
JB
105122015-01-29 Joel Brobecker <brobecker@adacore.com>
10513
10514 * ada-varobj.c (ada_varobj_get_array_number_of_children):
10515 Return zero if PARENT_VALUE is NULL and parent_type's
10516 range type is dynamic.
10517
ddb87a81
JB
105182015-01-29 Joel Brobecker <brobecker@adacore.com>
10519
10520 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
10521 nonzero if the type's subtype is dynamic.
10522 (resolve_dynamic_range): Also resolve the range's subtype.
10523
3d7ad9b4 105242015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 10525
3d7ad9b4 10526 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
10527 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
10528
3a8b707a
DE
105292015-01-27 Doug Evans <dje@google.com>
10530
10531 * NEWS: Mention gdb.Objfile.username.
10532 * python/py-objfile.c (objfpy_get_username): New function.
10533 (objfile_getset): Add "username".
10534
d35b90fb
MW
105352015-01-24 Mark Wielaard <mjw@redhat.com>
10536
10537 * stack.c (return_command): Markup warning message with _.
10538
734ae125
DE
105392015-01-24 Doug Evans <xdje42@gmail.com>
10540
10541 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
10542
527f3840
JK
105432015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10544
10545 Fix 100x slowdown regression on DWZ files.
10546 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
10547 (struct line_header): Add offset and offset_in_dwz.
10548 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
10549 (free_line_header_voidp): New declaration.
10550 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
10551 functions.
10552 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
10553 (handle_DW_AT_stmt_list): Use line_header_hash.
10554 (free_line_header_voidp): New function.
10555 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
10556 (dwarf_decode_lines): New parameter decode_mapping, use it.
10557 (dwarf2_free_objfile): Free line_header_hash.
10558
f7e5394d
SM
105592015-01-23 Simon Marchi <simon.marchi@ericsson.com>
10560
10561 PR gdb/17416
10562 * valops.c (value_rtti_indirect_type): Catch exception thrown by
10563 value_ind.
10564
743649fd
MW
105652015-01-15 Mark Wielaard <mjw@redhat.com>
10566
10567 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
10568 DW_AT_noreturn.
10569 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
10570 calling_convention an 8 bit bit field.
10571 (TYPE_NO_RETURN): New macro.
10572 * infcmd.c (finish_command): Query if function does not return
10573 normally.
10574 * stack.c (return_command): Likewise.
10575
198297aa
PA
105762015-01-23 Pedro Alves <palves@redhat.com>
10577
10578 * linux-nat.c (linux_is_async_p): New macro.
10579 (linux_nat_is_async_p):
10580 (linux_nat_terminal_inferior): Check whether the target can async
10581 instead of whether it is already async.
10582 (linux_nat_terminal_ours): Don't check whether the target is
10583 async.
10584 (linux_async_pipe): Use linux_is_async_p.
10585
253828f1
JK
105862015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10587
10588 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
10589 '-ascending'.
10590 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
10591 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
10592 Sort tp_array using tp_array_compar.
10593 (_initialize_thread): Extend thread_apply_all_command help.
10594
f0e8c4c5
JK
105952015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10596
10597 * corelow.c (core_open): Call also thread_command.
10598 * gdbthread.h (thread_command): New prototype moved from ...
10599 * thread.c (thread_command): ... here.
10600 (thread_command): Make it global.
10601
03b79603
PA
106022015-01-22 Pedro Alves <palves@redhat.com>
10603
10604 * configure.ac [*mingw32*]: Check $curses_found instead of
10605 $prefer_curses.
10606 * configure: Regenerate.
10607 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
10608 HAVE_NCURSES_NCURSES_H checks.
10609
6b8a872f
EZ
106102015-01-22 Eli Zaretskii <eliz@gnu.org>
10611
bbbbffbb 10612 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
10613 fails with the 1st arg NULL, try again with "unknown". Don't test
10614 the "cup" capability: it isn't supported by the Windows port of
10615 ncurses, but the Windows console driver is still capable of
10616 supporting TUI.
10617
4b62a76e
JK
106182015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
10619
10620 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
10621
82a864f9
EZ
106222015-01-22 Eli Zaretskii <eliz@gnu.org>
10623
10624 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
10625 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
10626 reason that "make TAGS" is broken.
10627
b35018fd
CG
106282015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
10629
10630 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
10631 and check additional store instructions.
10632
ffbc4646
WW
106332015-01-21 Wei-cheng Wang <cole945@gmail.com>
10634
10635 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
10636
ddeca1df
WW
106372015-01-21 Wei-cheng Wang <cole945@gmail.com>
10638
10639 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
10640 ppc_canonicalize_syscall, ppc_linux_syscall_record,
10641 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
10642 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
10643 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
10644 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
10645 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
10646 ppc_process_record_op19, ppc_process_record_op31,
10647 ppc_process_record_op59, ppc_process_record_op60,
10648 ppc_process_record_op63): Likewise.
10649
049bb5de
JB
106502015-01-20 Joel Brobecker <brobecker@adacore.com>
10651
10652 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
10653 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
10654 strerror.
10655
42b87c63 106562015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
10657
10658 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
10659 ppc_process_record_op31, ppc_process_record_op59,
10660 ppc_process_record_op60, ppc_process_record_op63,
10661 ppc_process_record): Fix -Wformat warning.
10662 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
10663 Remove unused variables.
10664
569340fc
CG
106652015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
10666
10667 * MAINTAINERS (Write After Approval): Add "Chen Gang".
10668
63413d85
EZ
106692015-01-19 Eli Zaretskii <eliz@gnu.org>
10670
10671 * configure.ac [*mingw32*]: Only add windows-termcap.o to
10672 CONFIG_OBS if not building with a curses library.
10673 * configure: Regenerate.
10674
10675 * windows-termcap.c: Include defs.h. Make the whole body empty if
10676 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
10677 HAVE_NCURSES_NCURSES_H is defined.
10678
16d8013c
JB
106792015-01-19 Joel Brobecker <brobecker@adacore.com>
10680
10681 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
10682 from end of line to start of next line.
10683
cf90fd9a
WW
106842015-01-17 Wei-cheng Wang <cole945@gmail.com>
10685
10686 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
10687 Scan PLT stub backward for reverse debugging.
10688 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
10689
b4cdae6f
WW
106902015-01-17 Wei-cheng Wang <cole945@gmail.com>
10691 Ulrich Weigand <uweigand@de.ibm.com>
10692
10693 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
10694 gdb_target_obs.
10695 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
10696 record.
10697 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
10698 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
10699 (ppc_linux_init_abi): Set process_record, process_record_signal.
10700 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
10701 ppc_linux_record_tdep to gdbarch_tdep.
10702 (ppc_process_record): New declaration.
10703 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
10704 ppc_process_record_op19, ppc_process_record_op31,
10705 ppc_process_record_op59, ppc_process_record_op60,
10706 ppc_process_record_op63, ppc_process_record): New functions.
10707
2608dbf8
WW
107082015-01-17 Wei-cheng Wang <cole945@gmail.com>
10709
10710 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
10711 rs6000_in_function_epilogue_frame_p and add an argument
10712 for frame_info.
10713 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
10714 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
10715 New functions.
10716 (rs6000_epilogue_frame_unwind): New.
10717 (rs6000_gdbarch_init): Append epilogue unwinder.
10718
4c347be6
SDJ
107192015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10720
10721 * nat/linux-personality.c: Replace "#ifndef
10722 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
10723 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
10724 systems.
10725
9f2850ba
EZ
107262015-01-16 Eli Zaretskii <eliz@gnu.org>
10727
6cdb25f4
EZ
10728 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
10729 functions.
10730 (_initialize_tui_win) <border-kind, border-mode>:
10731 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
10732 (tui_set_tab_width_command): Fix the commentary.
10733
6cdb25f4
EZ
10734 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
10735
bf555842
EZ
10736 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
10737 Doc fix.
cb86fcc1
EZ
10738 (tui_set_tab_width_command): Delete and recreate the source and
10739 the disassembly windows, to show the effect of the changed tab
10740 size immediately.
bf555842 10741
9f2850ba
EZ
10742 * tui/tui-data.h (LINE_PREFIX): Make shorter
10743 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
10744 "Thread NNNNN.XXXX" thread ID notation on Windows.
10745
95761b2d
JK
107462015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
10747
10748 Fix gcc-5 compilation.
10749 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
10750
8cc73a39
SDJ
107512015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10752
10753 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
10754 (linux-personality.o): New rule.
10755 * common/common-defs.h: Include <stdint.h>.
10756 * config/aarch64/linux.mh (NATDEPFILES): Include
10757 linux-personality.o.
10758 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
10759 * config/arm/linux.mh (NATDEPFILES): Likewise.
10760 * config/i386/linux64.mh (NATDEPFILES): Likewise.
10761 * config/i386/linux.mh (NATDEPFILES): Likewise.
10762 * config/ia64/linux.mh (NATDEPFILES): Likewise.
10763 * config/m32r/linux.mh (NATDEPFILES): Likewise.
10764 * config/m68k/linux.mh (NATDEPFILES): Likewise.
10765 * config/mips/linux.mh (NATDEPFILES): Likewise.
10766 * config/pa/linux.mh (NATDEPFILES): Likewise.
10767 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
10768 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
10769 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
10770 * config/s390/linux.mh (NATDEPFILES): Likewise.
10771 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
10772 * config/sparc/linux.mh (NATDEPFILES): Likewise.
10773 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
10774 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
10775 * defs.h: Remove #include <stdint.h> (moved to
10776 common/common-defs.h).
10777 * linux-nat.c: Include nat/linux-personality.h. Remove #include
10778 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
10779 nat/linux-personality.c).
10780 (linux_nat_create_inferior): Remove code to disable address space
10781 randomization (moved to nat/linux-personality.c). Create cleanup
10782 to disable address space randomization.
10783 * nat/linux-personality.c: New file.
10784 * nat/linux-personality.h: Likewise.
10785
fb23d554
SDJ
107862015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
10787
10788 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
10789 common/posix-strerror.c.
10790 (posix-strerror.o): New rule.
10791 (mingw-strerror.o): Likewise.
10792 * common/common-utils.h (safe_strerror): Move prototype to here,
10793 from utils.h.
10794 * common/common.host: New file.
10795 * common/mingw-strerror.c: Likewise.
10796 * common/posix-strerror.c: Likewise.
10797 * configure: Regenerated.
10798 * configure.ac: Source common/common.host. Add variable
10799 common_host_obs to gdb_host_obs.
10800 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
10801 gdb/common/posix-strerror.c when warning about the use of
10802 strerror.
10803 * mingw-hdep.c (safe_strerror): Remove definition; move it to
10804 common/mingw-strerror.c.
10805 * posix-hdep.c (safe_strerror): Remove definition; move it to
10806 common/posix-hdep.c.
10807 * utils.h (safe_strerror): Remove prototype; move to
10808 common/common-utils.h.
10809
3af8af43
JB
108102015-01-15 Joel Brobecker <brobecker@adacore.com>
10811
10812 GDB 7.8.2 released.
10813
bafffb51
JB
108142015-01-15 Joel Brobecker <brobecker@adacore.com>
10815
10816 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
10817 ___XA type if the array has already been fixed.
10818
cdf43629
YQ
108192015-01-14 Yao Qi <yao@codesourcery.com>
10820
10821 * Makefile.in (ppc-linux.o): New rule.
10822 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
10823 * configure.ac: AC_CHECK_FUNCS(getauxval).
10824 * config.in: Re-generated.
10825 * configure: Re-generated.
10826 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
10827 Declare.
10828 * nat/ppc-linux.c: New file.
10829 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
10830 Call ppc64_64bit_inferior_p.
10831
514c5338
YQ
108322015-01-14 Yao Qi <yao@codesourcery.com>
10833
10834 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
10835 nat/ppc-linux.h.
10836 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
10837 (PPC_FEATURE_HAS_DFP): Likewise.
10838 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
10839 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
10840 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
10841 Include "nat/ppc-linux.h".
10842 * nat/ppc-linux.h: New file.
10843 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
10844
5589af0e
PA
108452015-01-14 Pedro Alves <palves@redhat.com>
10846
10847 PR gdb/17525
10848 * breakpoint.c: Include "interps.h".
10849 (bpstat_do_actions_1): Also check whether the interpreter is
10850 async.
10851
6c400b59
PA
108522015-01-14 Pedro Alves <palves@redhat.com>
10853
10854 PR cli/17828
10855 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
10856 reinstall if the interpreter is sync.
10857
e02c96a7
DE
108582015-01-13 Doug Evans <dje@google.com>
10859
10860 * objfiles.c (objfile_filename): New function.
10861 * objfiles.h (objfile_filename): Declare it.
10862 (objfile_name): Add function comment.
10863 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
10864 bfd file name (which may be realpath'd), and the original name.
10865
3b2f13ff
JB
108662015-01-13 Joel Brobecker <brobecker@adacore.com>
10867
10868 * NEWS: Create a new section for the next release branch.
10869 Rename the section of the current branch, now that it has
10870 been cut.
10871
b4cfe7f8
JB
108722015-01-13 Joel Brobecker <brobecker@adacore.com>
10873
10874 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
10875 * version.in: Bump version to 7.9.50.DATE-cvs.
10876
92fc2e69
JB
108772015-01-13 Joel Brobecker <brobecker@adacore.com>
10878
10879 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
10880 Remove trailing new-line in argument of call to warning.
10881
f71f0b0d
JB
108822015-01-13 Joel Brobecker <brobecker@adacore.com>
10883
10884 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
10885 new-line in argument of call to "warning".
10886
04dccad0
JB
108872015-01-13 Joel Brobecker <brobecker@adacore.com>
10888
10889 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
10890 in static block, then try searching for primitive types.
10891
08b13bdd
PP
108922015-01-12 Patrick Palka <patrick@parcs.ath.cx>
10893
10894 * top.h (gdb_add_history): Declare.
10895 * top.c (command_count): New variable.
10896 (gdb_add_history): New function.
10897 (gdb_safe_append_history): New static function.
10898 (quit_force): Call it.
10899 (command_line_input): Use gdb_add_history instead of
10900 add_history.
10901 * event-top.c (command_line_handler): Likewise.
10902
4ac15b59
JC
109032015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
10904
10905 PR gdb/17046
10906 * darwin-nat.c: Replace <machine/setjmp.h> #include by
10907 <setjmp.h> #include.
10908
005e54bb
DE
109092015-01-11 Doug Evans <xdje42@gmail.com>
10910
10911 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
10912
439250fb
DE
109132015-01-11 Doug Evans <xdje42@gmail.com>
10914
10915 PR gdb/15830
10916 * NEWS: The "maint demangle" command is renamed as "demangle".
10917 * demangle.c: #include cli/cli-utils.h, language.h.
10918 (demangle_command): New function.
10919 (_initialize_demangle): Add new command "demangle".
10920 * maint.c (maintenance_demangle): Stub out.
10921 (_initialize_maint_cmds): Update help text for "maint demangle",
10922 and mark as deprecated.
10923
ebf3aa72
MK
109242015-01-11 Mark Kettenis <kettenis@gnu.org>
10925
10926 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
10927 inferior_thread is a function.
10928
6bf045cd
PP
109292015-01-09 Patrick Palka <patrick@parcs.ath.cx>
10930
10931 * Makefile.in (.y.c): Don't munge yacc's #line
10932 directives.
10933
588dcc3e
PP
109342015-01-09 Patrick Palka <patrick@parcs.ath.cx>
10935
10936 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
10937 to prompt for input.
10938 * tui/tui-hooks.c (tui_query_hook): Remove.
10939 (tui_install_hooks): Don't set deprecated_query_hook.
10940 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
10941 height calculation. Always update the command window's cur_line.
10942
9c02b525
PA
109432015-01-09 Pedro Alves <palves@redhat.com>
10944
10945 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
10946 function.
10947 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
10948 declaration.
10949 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
10950 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
10951 stop_reason.
10952 (check_stopped_by_watchpoint): New function.
10953 (save_sigtrap): Reimplement.
10954 (linux_nat_stopped_by_watchpoint): Adjust.
10955 (linux_nat_lp_status_is_event): Delete.
10956 (stop_wait_callback): Only call save_sigtrap after storing the
10957 pending status.
10958 (status_callback): If the thread had been stopped for a breakpoint
10959 that has since been removed, discard the event and resume the LWP.
10960 (count_events_callback, select_event_lwp_callback): Use
10961 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
10962 (cancel_breakpoint): Rename to ...
10963 (check_stopped_by_breakpoint): ... this. Record whether the LWP
10964 stopped for a software breakpoint or hardware breakpoint.
10965 (select_event_lwp): Only give preference to the stepping LWP in
10966 all-stop mode. Adjust comments.
10967 (stop_and_resume_callback): Remove references to new_pending_p.
10968 (linux_nat_filter_event): Likewise. Leave exit events of the
10969 leader thread pending here. Handle signal short circuiting here.
10970 Only call save_sigtrap after storing the pending waitstatus.
10971 (linux_nat_wait_1): Remove 'retry' label. Remove references to
10972 new_pending. Don't handle leaving events the caller is not
10973 interested in pending here, nor handle signal short-circuiting
10974 here. Also give equal priority to all LWPs that have had events
10975 in non-stop mode. If reporting a software breakpoint event,
10976 unadjust the LWP's PC.
10977 * linux-nat.h (enum lwp_stop_reason): New.
10978 (struct lwp_info) <stop_pc>: New field.
10979 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
10980 (struct lwp_info) <stop_reason>: New field.
10981 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
10982
8af756ef
PA
109832015-01-09 Pedro Alves <palves@redhat.com>
10984
10985 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
10986 Set the LWP's 'resumed' flag.
10987
8a99810d
PA
109882015-01-09 Pedro Alves <palves@redhat.com>
10989
10990 * linux-nat.c (linux_resume_one_lwp): New function.
10991 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
10992 (linux_nat_resume): Use lwp_status_pending_p and
10993 linux_resume_one_lwp.
10994 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
10995 (linux_handle_extended_wait): Use linux_resume_one_lwp.
10996 (status_callback, running_callback): Use lwp_status_pending_p.
10997 (lwp_status_pending_p): New function.
10998 (stop_and_resume_callback): Use lwp_status_pending_p.
10999 (linux_nat_filter_event): Use linux_resume_one_lwp.
11000 (linux_nat_wait_1): Always use status_callback to look for an LWP
11001 with a pending status. Use linux_resume_one_lwp.
11002 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
11003 linux_resume_one_lwp.
11004
f7ce857f
PA
110052015-01-09 Pedro Alves <palves@redhat.com>
11006
11007 * breakpoint.c (bp_location_inserted_here_p): New function,
11008 factored out from ...
11009 (breakpoint_inserted_here_p): ... here. Use
11010 ALL_BP_LOCATIONS_AT_ADDR.
11011 (software_breakpoint_inserted_here_p): Use
11012 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
11013
c1a747c1
PA
110142014-01-09 Pedro Alves <palves@redhat.com>
11015
11016 Skip enabling event reporting if the kernel supports
11017 PTRACE_EVENT_CLONE.
11018 * linux-thread-db.c: Include "nat/linux-ptrace.h".
11019 (thread_db_use_events): New function.
11020 (try_thread_db_load_1): Check thread_db_use_events before enabling
11021 event reporting.
11022 (update_thread_state): New function.
11023 (attach_thread): Use it. Check thread_db_use_events before
11024 enabling event reporting.
11025 (thread_db_detach): Check thread_db_use_events before disabling
11026 event reporting.
11027 (find_new_threads_callback): Check thread_db_use_events before
11028 enabling event reporting. Update the thread's state if not using
11029 libthread_db events.
11030
a33e3959
PA
110312015-01-09 Pedro Alves <palves@redhat.com>
11032
11033 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
11034 about to wait for is > 0.
11035 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
11036 the kernel thread ID is -1.
11037
8784d563
PA
110382015-01-09 Pedro Alves <palves@redhat.com>
11039
11040 * linux-nat.c (attach_proc_task_lwp_callback): New function.
11041 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
11042 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
11043 ptrace option flags.
11044 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
11045 field.
11046 * nat/linux-procfs.c: Include <dirent.h>.
11047 (linux_proc_get_int): New parameter "warn". Handle it.
11048 (linux_proc_get_tgid): Adjust.
11049 (linux_proc_get_tracerpid): Rename to ...
11050 (linux_proc_get_tracerpid_nowarn): ... this.
11051 (linux_proc_pid_get_state): New function, factored out from
11052 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
11053 and handle it.
11054 (linux_proc_pid_is_gone): New function.
11055 (linux_proc_pid_is_stopped): Adjust.
11056 (linux_proc_pid_is_zombie_maybe_warn)
11057 (linux_proc_pid_is_zombie_nowarn): New functions.
11058 (linux_proc_pid_is_zombie): Use
11059 linux_proc_pid_is_zombie_maybe_warn.
11060 (linux_proc_attach_tgid_threads): New function.
11061 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
11062 (linux_proc_get_tracerpid): Rename to ...
11063 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
11064 (linux_proc_pid_is_gone): New declaration.
11065 (linux_proc_pid_is_zombie): Update comment.
11066 (linux_proc_pid_is_zombie_nowarn): New declaration.
11067 (linux_proc_attach_lwp_func): New typedef.
11068 (linux_proc_attach_tgid_threads): New declaration.
11069 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
11070 use nowarn functions.
11071 (linux_ptrace_attach_fail_reason_string): Move here from
11072 gdbserver/linux-low.c and rename.
11073 (ptrace_supports_feature): If the current ptrace options are not
11074 known yet, check them now, instead of asserting.
11075 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
11076 Declare.
11077
883ed13e
PA
110782015-01-09 Pedro Alves <palves@redhat.com>
11079
11080 * linux-thread-db.c (thread_db_find_new_threads_silently)
11081 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
11082 (find_new_threads_once): Print debug output on gdb_stdlog.
11083
1710aab8
CG
110842015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
11085 Pedro Alves <palves@redhat.com>
11086
11087 * compile/compile.c: Include "gdb_wait.h".
11088 (do_rmdir): Check return value, and free 'zap'.
11089
b597c318
YQ
110902015-01-08 Pedro Alves <palves@redhat.com>
11091 Yao Qi <yao@codesourcery.com>
11092
11093 * dwarf2loc.c (indirect_pieced_value): Don't call
11094 gdb_sign_extend. Call extract_signed_integer instead.
11095 * utils.c (gdb_sign_extend): Remove.
11096 * utils.h (gdb_sign_extend): Remove declaration.
11097
025ac414
PM
110982015-01-07 Pierre Muller <muller@sourceware.org>
11099
11100 PR symtab/17811
11101 * stabsread.c (define_symbol): Set language for C++ special symbols.
11102
fa5af12a
PP
111032015-01-07 Patrick Palka <patrick@parcs.ath.cx>
11104
11105 * inflow.c (initial_gdb_ttystate): Tweak comment.
11106
ea42d6f8
JB
111072015-01-07 Joel Brobecker <brobecker@adacore.com>
11108
11109 * inflow.c (set_initial_gdb_ttystate): Add empty line after
11110 comment documenting function.
11111
6a06d660
PP
111122015-01-07 Patrick Palka <patrick@parcs.ath.cx>
11113
11114 * terminal.h (set_initial_gdb_ttystate): Declare.
11115 * inflow.c (initial_gdb_ttystate): New static variable.
11116 (set_initial_gdb_ttystate): New setter.
11117 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
11118 instead of our current terminal state.
11119 * top.c (gdb_init): Call set_initial_gdb_ttystate.
11120
e810d75b
JB
111212015-01-07 Joel Brobecker <brobecker@adacore.com>
11122
11123 * guile/scm-type.c (tyscm_array_1): Add comment.
11124 * python/py-type.c (typy_array_1): Add comment.
11125
fce10a84
JB
111262015-01-06 Joel Brobecker <brobecker@adacore.com>
11127
11128 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
11129 error if N2 is equal to N1 - 1.
11130
8503d6e1
JB
111312015-01-06 Joel Brobecker <brobecker@adacore.com>
11132
11133 * python/py-type.c (typy_array_1): Do not raise negative-length
11134 exception if N2 is equal to N1 - 1.
11135
4d29c0a8
DE
111362015-01-03 Doug Evans <xdje42@gmail.com>
11137
11138 * c-exp.y: Whitespace cleanup.
11139 (classify_inner_name): Remove extra ;.
11140
eaa6a9a4
MR
111412015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
11142
11143 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
11144 offset signed.
11145
02fe9972
DE
111462015-01-02 Doug Evans <dje@google.com>
11147
11148 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
11149
e2ada9cb
DE
111502015-01-02 Doug Evans <dje@google.com>
11151
11152 * symtab.h (struct symbol): Fix typo in comment.
11153
32d0add0
JB
111542015-01-01 Joel Brobecker <brobecker@adacore.com>
11155
11156 Update year range in copyright notice of all files.
11157
76f2b779
JB
111582015-01-01 Joel Brobecker <brobecker@adacore.com>
11159
11160 * top.c (print_gdb_version): Update copyright year to 2015.
11161
077309e2 111622015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 11163
077309e2 11164 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 11165
077309e2 11166For older changes see ChangeLog-2014.
c906108c
SS
11167\f
11168Local Variables:
11169mode: change-log
11170left-margin: 8
11171fill-column: 74
11172version-control: never
57da7796 11173coding: utf-8
c906108c 11174End:
This page took 2.226559 seconds and 4 git commands to generate.