cli-script.c: Fix read_next_line's comment
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2181a6c6
SM
12015-09-28 Simon Marchi <simon.marchi@ericsson.com>
2
3 * cli/cli-script.c (read_next_line): Fix stdout -> stdout in
4 comment.
5
245af596
DE
62015-09-28 Doug Evans <dje@google.com>
7
8 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
9
c402ef90
DE
102015-09-28 Doug Evans <dje@google.com>
11
12 * common/filestuff.c (make_cleanup_close): Update comment.
13
bc84451b
SM
142015-09-26 Simon Marchi <simark@nova.polymtl.ca>
15
16 * btrace.c (parse_xml_btrace_block): Fix cast of
17 xml_find_attribute's return value.
18 * memory-map.c (memory_map_start_memory): Likewise.
19 * solib-svr4.c (library_list_start_library): Likewise.
20 * solib-target.c (library_list_start_segment): Likewise.
21 (library_list_start_section): Likewise.
22 * tracepoint.c (traceframe_info_start_memory): Likewise.
23
ba587d55
IB
242015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
25
26 * d-namespace.c (d_lookup_symbol): New arg langdef.
27 All callers updated. Support looking up symbol as a primitive type.
28 (lookup_module_scope): New arg langdef. All callers updated.
29 Call d_lookup_symbol directly for simple bare symbols.
30
19ba03f4
SM
312015-09-25 Simon Marchi <simon.marchi@ericsson.com>
32
33 * macrocmd.c (print_macro_callback): Add cast(s).
34 * macrotab.c (macro_bcache_str): Likewise.
35 (new_macro_definition): Likewise.
36 * main.c (captured_main): Likewise.
37 * maint.c (print_bfd_section_info): Likewise.
38 * mdebugread.c (mdebug_build_psymtabs): Likewise.
39 (basic_type): Likewise.
40 * memattr.c (mem_region_cmp): Likewise.
41 * memory-map.c (memory_map_start_memory): Likewise.
42 (memory_map_end_memory): Likewise.
43 (memory_map_start_property): Likewise.
44 (memory_map_end_property): Likewise.
45 (clear_result): Likewise.
46 * memrange.c (compare_mem_ranges): Likewise.
47 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
48 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
49 * mi/mi-console.c (mi_console_file_delete): Likewise.
50 (mi_console_file_fputs): Likewise.
51 (mi_console_raw_packet): Likewise.
52 (mi_console_file_flush): Likewise.
53 (mi_console_set_raw): Likewise.
54 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
55 (mi_new_thread): Likewise.
56 (mi_thread_exit): Likewise.
57 (mi_record_changed): Likewise.
58 (mi_inferior_added): Likewise.
59 (mi_inferior_appeared): Likewise.
60 (mi_inferior_exit): Likewise.
61 (mi_inferior_removed): Likewise.
62 (mi_interp_data): Likewise.
63 (mi_on_normal_stop): Likewise.
64 (mi_traceframe_changed): Likewise.
65 (mi_tsv_created): Likewise.
66 (mi_tsv_deleted): Likewise.
67 (mi_tsv_modified): Likewise.
68 (mi_breakpoint_created): Likewise.
69 (mi_breakpoint_deleted): Likewise.
70 (mi_breakpoint_modified): Likewise.
71 (mi_output_running_pid): Likewise.
72 (mi_inferior_count): Likewise.
73 (mi_solib_loaded): Likewise.
74 (mi_solib_unloaded): Likewise.
75 (mi_command_param_changed): Likewise.
76 (mi_memory_changed): Likewise.
77 (report_initial_inferior): Likewise.
78 (mi_ui_out): Likewise.
79 (mi_set_logging): Likewise.
80 * mi/mi-main.c (collect_cores): Likewise.
81 (print_one_inferior): Likewise.
82 (free_vector_of_ints): Likewise.
83 (free_splay_tree): Likewise.
84 (mi_execute_command): Likewise.
85 * mi/mi-out.c (mi_table_body): Likewise.
86 (mi_table_end): Likewise.
87 (mi_table_header): Likewise.
88 (mi_begin): Likewise.
89 (mi_end): Likewise.
90 (mi_field_int): Likewise.
91 (mi_field_string): Likewise.
92 (mi_field_fmt): Likewise.
93 (mi_flush): Likewise.
94 (mi_redirect): Likewise.
95 (field_separator): Likewise.
96 (mi_open): Likewise.
97 (mi_close): Likewise.
98 (mi_out_buffered): Likewise.
99 (mi_out_rewind): Likewise.
100 (mi_out_put): Likewise.
101 (mi_version): Likewise.
102 (mi_out_data_dtor): Likewise.
103 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
104 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
105 * minidebug.c (lzma_open): Likewise.
106 (lzma_pread): Likewise.
107 (lzma_close): Likewise.
108 (lzma_stat): Likewise.
109 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
110 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
111 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
112 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
113 (mips_micro_frame_cache): Likewise.
114 (mips_insn32_frame_cache): Likewise.
115 (mips_stub_frame_cache): Likewise.
116 (gdb_print_insn_mips): Likewise.
117 (value_of_mips_user_reg): Likewise.
118 (mips_gdbarch_init): Likewise.
119 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
120 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
121 (mipsnbsd_supply_gregset): Likewise.
122 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
123 (am33_collect_gregset_method): Likewise.
124 (am33_collect_fpregset_method): Likewise.
125 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
126 * moxie-tdep.c (moxie_frame_cache): Likewise.
127 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
128 (msp430_analyze_frame_prologue): Likewise.
129 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
130 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
131 (nios2_collect_gregset): Likewise.
132 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
133 (nios2_stub_frame_cache): Likewise.
134 * objc-lang.c (find_methods): Likewise.
135 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
136 (get_objfile_pspace_data): Likewise.
137 (get_objfile_bfd_data): Likewise.
138 (objfile_bfd_data_free): Likewise.
139 (add_to_objfile_sections): Likewise.
140 (do_free_objfile_cleanup): Likewise.
141 (resume_section_map_updates_cleanup): Likewise.
142 * opencl-lang.c (builtin_opencl_type): Likewise.
143 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
144 * osdata.c (osdata_start_osdata): Likewise.
145 (osdata_start_item): Likewise.
146 (osdata_start_column): Likewise.
147 (osdata_end_column): Likewise.
148 (clear_parsing_data): Likewise.
149 (osdata_free_cleanup): Likewise.
150 * parse.c (type_stack_cleanup): Likewise.
151 (exp_uses_objfile_iter): Likewise.
152 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
153 (ppc_linux_collect_gregset): Likewise.
154 (ppu2spu_prev_arch): Likewise.
155 (ppu2spu_this_id): Likewise.
156 (ppu2spu_prev_register): Likewise.
157 (ppu2spu_unwind_register): Likewise.
158 (ppu2spu_sniffer): Likewise.
159 (ppu2spu_dealloc_cache): Likewise.
160 (ppc_linux_init_abi): Likewise.
161 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
162 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
163 * progspace.c (restore_program_space): Likewise.
164 * psymtab.c (find_pc_sect_psymtab): Likewise.
165 (compare_psymbols): Likewise.
166 (psymbol_bcache_full): Likewise.
167 (allocate_psymtab): Likewise.
168 (discard_psymtabs_upto): Likewise.
169 * python/py-block.c (set_block): Likewise.
170 (del_objfile_blocks): Likewise.
171 * python/py-breakpoint.c (build_bp_list): Likewise.
172 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
173 (build_inferior_list): Likewise.
174 (py_free_inferior): Likewise.
175 * python/py-objfile.c (py_free_objfile): Likewise.
176 (objfile_to_objfile_object): Likewise.
177 * python/py-prettyprint.c (py_restore_tstate): Likewise.
178 * python/py-progspace.c (py_free_pspace): Likewise.
179 (pspace_to_pspace_object): Likewise.
180 * python/py-symbol.c (set_symbol): Likewise.
181 (del_objfile_symbols): Likewise.
182 * python/py-symtab.c (set_sal): Likewise.
183 (set_symtab): Likewise.
184 (del_objfile_symtab): Likewise.
185 (del_objfile_sal): Likewise.
186 * python/py-type.c (save_objfile_types): Likewise.
187 (set_type): Likewise.
188 * python/py-unwind.c (pyuw_prev_register): Likewise.
189 (pyuw_on_new_gdbarch): Likewise.
190 * python/py-utils.c (py_decref): Likewise.
191 (py_xdecref): Likewise.
192 (gdb_py_generic_dict): Likewise.
193 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
194 (gdbpy_clone_xmethod_worker_data): Likewise.
195 (gdbpy_get_xmethod_arg_types): Likewise.
196 (gdbpy_get_xmethod_result_type): Likewise.
197 (gdbpy_invoke_xmethod): Likewise.
198 * python/python.c (gdbpy_apply_type_printers): Likewise.
199 (gdbpy_free_type_printers): Likewise.
200 * record-btrace.c (record_btrace_disable_callback): Likewise.
201 (bfcache_hash): Likewise.
202 (bfcache_eq): Likewise.
203 (btrace_get_frame_function): Likewise.
204 (record_btrace_frame_unwind_stop_reason): Likewise.
205 (record_btrace_frame_this_id): Likewise.
206 (record_btrace_frame_prev_register): Likewise.
207 (record_btrace_frame_dealloc_cache): Likewise.
208 * record-full.c (record_full_message_wrapper): Likewise.
209 (record_full_save_cleanups): Likewise.
210 * regcache.c (regcache_descr): Likewise.
211 (do_regcache_xfree): Likewise.
212 (do_regcache_invalidate): Likewise.
213 (do_cooked_read): Likewise.
214 (regcache_transfer_regset): Likewise.
215 * reggroups.c (reggroup_add): Likewise.
216 (reggroup_next): Likewise.
217 (reggroup_prev): Likewise.
218 * remote-fileio.c (do_remote_fileio_request): Likewise.
219 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
220 (do_notif_event_xfree): Likewise.
221 * remote.c (get_remote_arch_state): Likewise.
222 (remote_pspace_data_cleanup): Likewise.
223 (get_remote_exec_file): Likewise.
224 (set_pspace_remote_exec_file): Likewise.
225 (compare_pnums): Likewise.
226 (clear_threads_listing_context): Likewise.
227 (remote_newthread_step): Likewise.
228 (start_thread): Likewise.
229 (end_thread): Likewise.
230 (remove_child_of_pending_fork): Likewise.
231 (remove_stop_reply_for_inferior): Likewise.
232 (remove_stop_reply_of_remote_state): Likewise.
233 (remote_notif_remove_once_on_match): Likewise.
234 (stop_reply_match_ptid_and_ws): Likewise.
235 (kill_child_of_pending_fork): Likewise.
236 (register_remote_g_packet_guess): Likewise.
237 (remote_read_description_p): Likewise.
238 (remote_read_description): Likewise.
239 (free_actions_list_cleanup_wrapper): Likewise.
240 (remote_async_serial_handler): Likewise.
241 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
242 (rl78_analyze_frame_prologue): Likewise.
243 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
244 (ppc_supply_fpregset): Likewise.
245 (ppc_supply_vsxregset): Likewise.
246 (ppc_supply_vrregset): Likewise.
247 (ppc_collect_gregset): Likewise.
248 (ppc_collect_fpregset): Likewise.
249 (ppc_collect_vsxregset): Likewise.
250 (ppc_collect_vrregset): Likewise.
251 (e500_move_ev_register): Likewise.
252 (do_regcache_raw_write): Likewise.
253 (rs6000_frame_cache): Likewise.
254 (rs6000_epilogue_frame_cache): Likewise.
255 (rs6000_gdbarch_init): Likewise.
256 * rx-tdep.c (rx_get_opcode_byte): Likewise.
257 (rx_analyze_frame_prologue): Likewise.
258 (rx_frame_type): Likewise.
259 (rx_frame_sniffer_common): Likewise.
260 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
261 (s390_frame_unwind_cache): Likewise.
262 (s390_stub_frame_unwind_cache): Likewise.
263 (s390_sigtramp_frame_unwind_cache): Likewise.
264 * score-tdep.c (score_make_prologue_cache): Likewise.
265 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
266 (sentinel_frame_prev_arch): Likewise.
267 * ser-base.c (fd_event): Likewise.
268 (push_event): Likewise.
269 (ser_base_write): Likewise.
270 * ser-pipe.c (pipe_close): Likewise.
271 * serial.c (serial_write): Likewise.
272 * sh-tdep.c (sh_frame_cache): Likewise.
273 (sh_stub_this_id): Likewise.
274 * sh64-tdep.c (sh64_frame_cache): Likewise.
275 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
276 (library_list_start_library): Likewise.
277 (library_list_start_list): Likewise.
278 (solib_aix_free_library_list): Likewise.
279 * solib-darwin.c (get_darwin_info): Likewise.
280 * solib-dsbt.c (get_dsbt_info): Likewise.
281 * solib-spu.c (append_ocl_sos): Likewise.
282 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
283 (get_svr4_info): Likewise.
284 (library_list_start_library): Likewise.
285 (svr4_library_list_start_list): Likewise.
286 (hash_probe_and_action): Likewise.
287 (equal_probe_and_action): Likewise.
288 (svr4_update_solib_event_breakpoint): Likewise.
289 (set_solib_svr4_fetch_link_map_offsets): Likewise.
290 (svr4_fetch_link_map_offsets): Likewise.
291 (svr4_have_link_map_offsets): Likewise.
292 * solib-target.c (library_list_start_segment): Likewise.
293 (library_list_start_section): Likewise.
294 (library_list_start_library): Likewise.
295 (library_list_end_library): Likewise.
296 (library_list_start_list): Likewise.
297 (solib_target_free_library_list): Likewise.
298 * solib.c (solib_ops): Likewise.
299 (set_solib_ops): Likewise.
300 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
301 * sparc-tdep.c (sparc_frame_cache): Likewise.
302 (sparc32_frame_cache): Likewise.
303 (sparc32_supply_gregset): Likewise.
304 (sparc32_collect_gregset): Likewise.
305 (sparc32_supply_fpregset): Likewise.
306 (sparc32_collect_fpregset): Likewise.
307 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
308 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
309 (sparc64_collect_gregset): Likewise.
310 (sparc64_supply_fpregset): Likewise.
311 (sparc64_collect_fpregset): Likewise.
312 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
313 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
314 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
315 (sparc64obsd_trapframe_cache): Likewise.
316 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
317 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
318 * spu-multiarch.c (spu_gdbarch): Likewise.
319 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
320 (spu2ppu_prev_arch): Likewise.
321 (spu2ppu_this_id): Likewise.
322 (spu2ppu_prev_register): Likewise.
323 (spu2ppu_dealloc_cache): Likewise.
324 (spu_dis_asm_print_address): Likewise.
325 (gdb_print_insn_spu): Likewise.
326 (spu_get_overlay_table): Likewise.
327 * stabsread.c (rs6000_builtin_type): Likewise.
328 * stack.c (do_print_variable_and_value): Likewise.
329 * stap-probe.c (get_stap_base_address_1): Likewise.
330 * symfile-debug.c (debug_qf_has_symbols): Likewise.
331 (debug_qf_find_last_source_symtab): Likewise.
332 (debug_qf_forget_cached_source_info): Likewise.
333 (debug_qf_map_symtabs_matching_filename): Likewise.
334 (debug_qf_lookup_symbol): Likewise.
335 (debug_qf_print_stats): Likewise.
336 (debug_qf_dump): Likewise.
337 (debug_qf_relocate): Likewise.
338 (debug_qf_expand_symtabs_for_function): Likewise.
339 (debug_qf_expand_all_symtabs): Likewise.
340 (debug_qf_expand_symtabs_with_fullname): Likewise.
341 (debug_qf_map_matching_symbols): Likewise.
342 (debug_qf_expand_symtabs_matching): Likewise.
343 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
344 (debug_qf_map_symbol_filenames): Likewise.
345 (debug_sym_get_probes): Likewise.
346 (debug_sym_new_init): Likewise.
347 (debug_sym_init): Likewise.
348 (debug_sym_read): Likewise.
349 (debug_sym_read_psymbols): Likewise.
350 (debug_sym_finish): Likewise.
351 (debug_sym_offsets): Likewise.
352 (debug_sym_read_linetable): Likewise.
353 (debug_sym_relocate): Likewise.
354 (uninstall_symfile_debug_logging): Likewise.
355 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
356 * symfile.c (place_section): Likewise.
357 (add_section_size_callback): Likewise.
358 (load_progress): Likewise.
359 (load_section_callback): Likewise.
360 (clear_memory_write_data): Likewise.
361 (allocate_symtab): Likewise.
362 * symmisc.c (maintenance_expand_file_matcher): Likewise.
363 * symtab.c (lookup_symtab_callback): Likewise.
364 (hash_demangled_name_entry): Likewise.
365 (eq_demangled_name_entry): Likewise.
366 (get_symbol_cache): Likewise.
367 (symbol_cache_cleanup): Likewise.
368 (set_symbol_cache_size): Likewise.
369 (symbol_cache_flush): Likewise.
370 (maintenance_print_symbol_cache): Likewise.
371 (maintenance_print_symbol_cache_statistics): Likewise.
372 (delete_filename_seen_cache): Likewise.
373 (output_partial_symbol_filename): Likewise.
374 (search_symbols_file_matches): Likewise.
375 (search_symbols_name_matches): Likewise.
376 (do_free_completion_list): Likewise.
377 (maybe_add_partial_symtab_filename): Likewise.
378 (get_main_info): Likewise.
379 (main_info_cleanup): Likewise.
380 * target-dcache.c (target_dcache_cleanup): Likewise.
381 (target_dcache_init_p): Likewise.
382 (target_dcache_invalidate): Likewise.
383 (target_dcache_get): Likewise.
384 (target_dcache_get_or_init): Likewise.
385 * target-descriptions.c (target_find_description): Likewise.
386 (tdesc_find_type): Likewise.
387 (tdesc_data_cleanup): Likewise.
388 (tdesc_find_arch_register): Likewise.
389 (tdesc_register_name): Likewise.
390 (tdesc_register_type): Likewise.
391 (tdesc_register_reggroup_p): Likewise.
392 (set_tdesc_pseudo_register_name): Likewise.
393 (set_tdesc_pseudo_register_type): Likewise.
394 (set_tdesc_pseudo_register_reggroup_p): Likewise.
395 (tdesc_use_registers): Likewise.
396 (free_target_description): Likewise.
397 * target-memory.c (compare_block_starting_address): Likewise.
398 (cleanup_request_data): Likewise.
399 (cleanup_write_requests_vector): Likewise.
400 * target.c (open_target): Likewise.
401 (cleanup_restore_target_terminal): Likewise.
402 (free_memory_read_result_vector): Likewise.
403 * thread.c (disable_thread_stack_temporaries): Likewise.
404 (finish_thread_state_cleanup): Likewise.
405 (do_restore_current_thread_cleanup): Likewise.
406 (restore_current_thread_cleanup_dtor): Likewise.
407 (set_thread_refcount): Likewise.
408 (tp_array_compar): Likewise.
409 (do_captured_thread_select): Likewise.
410 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
411 (tic6x_stub_this_id): Likewise.
412 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
413 * top.c (do_restore_instream_cleanup): Likewise.
414 (gdb_readline_wrapper_cleanup): Likewise.
415 (kill_or_detach): Likewise.
416 (print_inferior_quit_action): Likewise.
417 * tracefile-tfile.c (match_blocktype): Likewise.
418 (build_traceframe_info): Likewise.
419 * tracefile.c (trace_file_writer_xfree): Likewise.
420 * tracepoint.c (memrange_cmp): Likewise.
421 (do_collect_symbol): Likewise.
422 (do_clear_collection_list): Likewise.
423 (do_restore_current_traceframe_cleanup): Likewise.
424 (restore_current_traceframe_cleanup_dtor): Likewise.
425 (free_current_marker): Likewise.
426 (traceframe_info_start_memory): Likewise.
427 (traceframe_info_start_tvar): Likewise.
428 (free_result): Likewise.
429 * tramp-frame.c (tramp_frame_cache): Likewise.
430 * tui/tui-file.c (tui_file_delete): Likewise.
431 (tui_fileopen): Likewise.
432 (tui_sfileopen): Likewise.
433 (tui_file_isatty): Likewise.
434 (tui_file_rewind): Likewise.
435 (tui_file_put): Likewise.
436 (tui_file_fputs): Likewise.
437 (tui_file_get_strbuf): Likewise.
438 (tui_file_adjust_strbuf): Likewise.
439 (tui_file_flush): Likewise.
440 * tui/tui-layout.c (make_command_window): Likewise.
441 (make_data_window): Likewise.
442 (show_source_disasm_command): Likewise.
443 (show_data): Likewise.
444 (make_source_or_disasm_window): Likewise.
445 (show_source_or_disasm_and_command): Likewise.
446 * tui/tui-out.c (tui_field_int): Likewise.
447 (tui_field_string): Likewise.
448 (tui_field_fmt): Likewise.
449 (tui_text): Likewise.
450 * typeprint.c (hash_typedef_field): Likewise.
451 (eq_typedef_field): Likewise.
452 (do_free_typedef_hash): Likewise.
453 (copy_typedef_hash_element): Likewise.
454 (do_free_global_table): Likewise.
455 (find_global_typedef): Likewise.
456 (find_typedef_in_hash): Likewise.
457 * ui-file.c (ui_file_write_for_put): Likewise.
458 (do_ui_file_xstrdup): Likewise.
459 (mem_file_delete): Likewise.
460 (mem_file_rewind): Likewise.
461 (mem_file_put): Likewise.
462 (mem_file_write): Likewise.
463 (stdio_file_delete): Likewise.
464 (stdio_file_flush): Likewise.
465 (stdio_file_read): Likewise.
466 (stdio_file_write): Likewise.
467 (stdio_file_write_async_safe): Likewise.
468 (stdio_file_fputs): Likewise.
469 (stdio_file_isatty): Likewise.
470 (stdio_file_fseek): Likewise.
471 (tee_file_delete): Likewise.
472 (tee_file_flush): Likewise.
473 (tee_file_write): Likewise.
474 (tee_file_fputs): Likewise.
475 (tee_file_isatty): Likewise.
476 * ui-out.c (do_cleanup_table_end): Likewise.
477 (do_cleanup_end): Likewise.
478 * user-regs.c (user_reg_add): Likewise.
479 (user_reg_map_name_to_regnum): Likewise.
480 (usernum_to_user_reg): Likewise.
481 (maintenance_print_user_registers): Likewise.
482 * utils.c (do_bfd_close_cleanup): Likewise.
483 (do_fclose_cleanup): Likewise.
484 (do_obstack_free): Likewise.
485 (do_ui_file_delete): Likewise.
486 (do_ui_out_redirect_pop): Likewise.
487 (do_free_section_addr_info): Likewise.
488 (restore_integer): Likewise.
489 (do_unpush_target): Likewise.
490 (do_htab_delete_cleanup): Likewise.
491 (do_restore_ui_file): Likewise.
492 (do_value_free): Likewise.
493 (do_free_so): Likewise.
494 (free_current_contents): Likewise.
495 (do_regfree_cleanup): Likewise.
496 (core_addr_hash): Likewise.
497 (core_addr_eq): Likewise.
498 (do_free_char_ptr_vec): Likewise.
499 * v850-tdep.c (v850_frame_cache): Likewise.
500 * varobj.c (do_free_variable_cleanup): Likewise.
501 * vax-tdep.c (vax_supply_gregset): Likewise.
502 (vax_frame_cache): Likewise.
503 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
504 * xml-support.c (gdb_xml_body_text): Likewise.
505 (gdb_xml_values_cleanup): Likewise.
506 (gdb_xml_start_element): Likewise.
507 (gdb_xml_start_element_wrapper): Likewise.
508 (gdb_xml_end_element): Likewise.
509 (gdb_xml_end_element_wrapper): Likewise.
510 (gdb_xml_cleanup): Likewise.
511 (gdb_xml_fetch_external_entity): Likewise.
512 (gdb_xml_parse_attr_enum): Likewise.
513 (xinclude_start_include): Likewise.
514 (xinclude_end_include): Likewise.
515 (xml_xinclude_default): Likewise.
516 (xml_xinclude_start_doctype): Likewise.
517 (xml_xinclude_end_doctype): Likewise.
518 (xml_xinclude_cleanup): Likewise.
519 (xml_fetch_content_from_file): Likewise.
520 * xml-syscall.c (free_syscalls_info): Likewise.
521 (syscall_start_syscall): Likewise.
522 * xml-tdesc.c (tdesc_end_arch): Likewise.
523 (tdesc_end_osabi): Likewise.
524 (tdesc_end_compatible): Likewise.
525 (tdesc_start_target): Likewise.
526 (tdesc_start_feature): Likewise.
527 (tdesc_start_reg): Likewise.
528 (tdesc_start_union): Likewise.
529 (tdesc_start_struct): Likewise.
530 (tdesc_start_flags): Likewise.
531 (tdesc_start_field): Likewise.
532 (tdesc_start_vector): Likewise.
533 (fetch_available_features_from_target): Likewise.
534 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
535 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
536 (xtensa_frame_cache): Likewise.
537 (xtensa_frame_prev_register): Likewise.
538 (xtensa_extract_return_value): Likewise.
539
9a3c8263
SM
5402015-09-25 Simon Marchi <simon.marchi@ericsson.com>
541
542 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
543 (aarch64_make_stub_cache): Likewise.
544 (value_of_aarch64_user_reg): Likewise.
545 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
546 (get_ada_inferior_data): Likewise.
547 (get_ada_pspace_data): Likewise.
548 (ada_pspace_data_cleanup): Likewise.
549 (ada_complete_symbol_matcher): Likewise.
550 (ada_exc_search_name_matches): Likewise.
551 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
552 (get_ada_tasks_inferior_data): Likewise.
553 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
554 (splay_obstack_alloc): Likewise.
555 (splay_obstack_free): Likewise.
556 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
557 (alpha_linux_collect_gregset): Likewise.
558 (alpha_linux_supply_fpregset): Likewise.
559 (alpha_linux_collect_fpregset): Likewise.
560 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
561 * alpha-tdep.c (alpha_lds): Likewise.
562 (alpha_sts): Likewise.
563 (alpha_sigtramp_frame_unwind_cache): Likewise.
564 (alpha_heuristic_frame_unwind_cache): Likewise.
565 (alpha_supply_int_regs): Likewise.
566 (alpha_fill_int_regs): Likewise.
567 (alpha_supply_fp_regs): Likewise.
568 (alpha_fill_fp_regs): Likewise.
569 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
570 (alphanbsd_aout_supply_gregset): Likewise.
571 (alphanbsd_supply_gregset): Likewise.
572 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
573 (amd64_x32_linux_init_abi): Likewise.
574 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
575 (amd64_collect_native_gregset): Likewise.
576 * amd64-tdep.c (amd64_frame_cache): Likewise.
577 (amd64_sigtramp_frame_cache): Likewise.
578 (amd64_epilogue_frame_cache): Likewise.
579 (amd64_supply_fxsave): Likewise.
580 (amd64_supply_xsave): Likewise.
581 (amd64_collect_fxsave): Likewise.
582 (amd64_collect_xsave): Likewise.
583 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
584 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
585 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
586 (arm_linux_collect_gregset): Likewise.
587 (arm_linux_supply_nwfpe): Likewise.
588 (arm_linux_collect_nwfpe): Likewise.
589 (arm_linux_supply_vfp): Likewise.
590 (arm_linux_collect_vfp): Likewise.
591 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
592 (arm_prologue_unwind_stop_reason): Likewise.
593 (arm_prologue_this_id): Likewise.
594 (arm_prologue_prev_register): Likewise.
595 (arm_exidx_data_free): Likewise.
596 (arm_find_exidx_entry): Likewise.
597 (arm_stub_this_id): Likewise.
598 (arm_m_exception_this_id): Likewise.
599 (arm_m_exception_prev_register): Likewise.
600 (arm_normal_frame_base): Likewise.
601 (gdb_print_insn_arm): Likewise.
602 (arm_objfile_data_free): Likewise.
603 (arm_record_special_symbol): Likewise.
604 (value_of_arm_user_reg): Likewise.
605 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
606 (armbsd_supply_gregset): Likewise.
607 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
608 (get_auto_load_pspace_data): Likewise.
609 (hash_loaded_script_entry): Likewise.
610 (eq_loaded_script_entry): Likewise.
611 (clear_section_scripts): Likewise.
612 (collect_matching_scripts): Likewise.
613 * auxv.c (auxv_inferior_data_cleanup): Likewise.
614 (get_auxv_inferior_data): Likewise.
615 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
616 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
617 * bfd-target.c (target_bfd_xfer_partial): Likewise.
618 (target_bfd_xclose): Likewise.
619 (target_bfd_get_section_table): Likewise.
620 * bfin-tdep.c (bfin_frame_cache): Likewise.
621 * block.c (find_block_in_blockvector): Likewise.
622 (call_site_for_pc): Likewise.
623 (block_find_non_opaque_type_preferred): Likewise.
624 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
625 (signal_catchpoint_remove_location): Likewise.
626 (signal_catchpoint_breakpoint_hit): Likewise.
627 (signal_catchpoint_print_one): Likewise.
628 (signal_catchpoint_print_mention): Likewise.
629 (signal_catchpoint_print_recreate): Likewise.
630 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
631 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
632 (bp_location_compare_addrs): Likewise.
633 (get_first_locp_gte_addr): Likewise.
634 (check_tracepoint_command): Likewise.
635 (do_map_commands_command): Likewise.
636 (get_breakpoint_objfile_data): Likewise.
637 (free_breakpoint_probes): Likewise.
638 (do_captured_breakpoint_query): Likewise.
639 (compare_breakpoints): Likewise.
640 (bp_location_compare): Likewise.
641 (bpstat_remove_breakpoint_callback): Likewise.
642 (do_delete_breakpoint_cleanup): Likewise.
643 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
644 (bsd_uthread_set_collect_uthread): Likewise.
645 (bsd_uthread_activate): Likewise.
646 (bsd_uthread_fetch_registers): Likewise.
647 (bsd_uthread_store_registers): Likewise.
648 * btrace.c (check_xml_btrace_version): Likewise.
649 (parse_xml_btrace_block): Likewise.
650 (parse_xml_btrace_pt_config_cpu): Likewise.
651 (parse_xml_btrace_pt_raw): Likewise.
652 (parse_xml_btrace_pt): Likewise.
653 (parse_xml_btrace_conf_bts): Likewise.
654 (parse_xml_btrace_conf_pt): Likewise.
655 (do_btrace_data_cleanup): Likewise.
656 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
657 * charset.c (cleanup_iconv): Likewise.
658 (do_cleanup_iterator): Likewise.
659 * cli-out.c (cli_uiout_dtor): Likewise.
660 (cli_table_begin): Likewise.
661 (cli_table_body): Likewise.
662 (cli_table_end): Likewise.
663 (cli_table_header): Likewise.
664 (cli_begin): Likewise.
665 (cli_end): Likewise.
666 (cli_field_int): Likewise.
667 (cli_field_skip): Likewise.
668 (cli_field_string): Likewise.
669 (cli_field_fmt): Likewise.
670 (cli_spaces): Likewise.
671 (cli_text): Likewise.
672 (cli_message): Likewise.
673 (cli_wrap_hint): Likewise.
674 (cli_flush): Likewise.
675 (cli_redirect): Likewise.
676 (out_field_fmt): Likewise.
677 (field_separator): Likewise.
678 (cli_out_set_stream): Likewise.
679 * cli/cli-cmds.c (compare_symtabs): Likewise.
680 * cli/cli-dump.c (call_dump_func): Likewise.
681 (restore_section_callback): Likewise.
682 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
683 (do_restore_user_call_depth): Likewise.
684 (do_free_command_lines_cleanup): Likewise.
685 * coff-pe-read.c (get_section_vmas): Likewise.
686 (pe_as16): Likewise.
687 (pe_as32): Likewise.
688 * coffread.c (coff_symfile_read): Likewise.
689 * common/agent.c (agent_look_up_symbols): Likewise.
690 * common/filestuff.c (do_close_cleanup): Likewise.
691 * common/format.c (free_format_pieces_cleanup): Likewise.
692 * common/vec.c (vec_o_reserve): Likewise.
693 * compile/compile-c-support.c (print_one_macro): Likewise.
694 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
695 (eq_symbol_error): Likewise.
696 (del_symbol_error): Likewise.
697 (error_symbol_once): Likewise.
698 (gcc_convert_symbol): Likewise.
699 (gcc_symbol_address): Likewise.
700 (hash_symname): Likewise.
701 (eq_symname): Likewise.
702 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
703 (eq_type_map_instance): Likewise.
704 (insert_type): Likewise.
705 (convert_type): Likewise.
706 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
707 (setup_sections): Likewise.
708 (link_hash_table_free): Likewise.
709 (copy_sections): Likewise.
710 * compile/compile-object-run.c (do_module_cleanup): Likewise.
711 * compile/compile.c (compile_print_value): Likewise.
712 (do_rmdir): Likewise.
713 (cleanup_compile_instance): Likewise.
714 (cleanup_unlink_file): Likewise.
715 * completer.c (free_completion_tracker): Likewise.
716 * corelow.c (add_to_spuid_list): Likewise.
717 * cp-namespace.c (reset_directive_searched): Likewise.
718 * cp-support.c (reset_directive_searched): Likewise.
719 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
720 (cris_frame_unwind_cache): Likewise.
721 * d-lang.c (builtin_d_type): Likewise.
722 * d-namespace.c (reset_directive_searched): Likewise.
723 * dbxread.c (dbx_free_symfile_info): Likewise.
724 (do_free_bincl_list_cleanup): Likewise.
725 * disasm.c (hash_dis_line_entry): Likewise.
726 (eq_dis_line_entry): Likewise.
727 (dis_asm_print_address): Likewise.
728 (fprintf_disasm): Likewise.
729 (do_ui_file_delete): Likewise.
730 * doublest.c (convert_floatformat_to_doublest): Likewise.
731 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
732 (dummy_frame_prev_register): Likewise.
733 (dummy_frame_this_id): Likewise.
734 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
735 (cache_eq): Likewise.
736 (cache_find): Likewise.
737 (tailcall_frame_this_id): Likewise.
738 (dwarf2_tailcall_prev_register_first): Likewise.
739 (tailcall_frame_prev_register): Likewise.
740 (tailcall_frame_dealloc_cache): Likewise.
741 (tailcall_frame_prev_arch): Likewise.
742 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
743 (dwarf2_frame_set_init_reg): Likewise.
744 (dwarf2_frame_init_reg): Likewise.
745 (dwarf2_frame_set_signal_frame_p): Likewise.
746 (dwarf2_frame_signal_frame_p): Likewise.
747 (dwarf2_frame_set_adjust_regnum): Likewise.
748 (dwarf2_frame_adjust_regnum): Likewise.
749 (clear_pointer_cleanup): Likewise.
750 (dwarf2_frame_cache): Likewise.
751 (find_cie): Likewise.
752 (dwarf2_frame_find_fde): Likewise.
753 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
754 (free_dwarf_expr_context_cleanup): Likewise.
755 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
756 (locexpr_get_frame_base): Likewise.
757 (loclist_find_frame_base_location): Likewise.
758 (loclist_get_frame_base): Likewise.
759 (dwarf_expr_dwarf_call): Likewise.
760 (dwarf_expr_get_base_type): Likewise.
761 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
762 (dwarf_expr_get_obj_addr): Likewise.
763 (entry_data_value_coerce_ref): Likewise.
764 (entry_data_value_copy_closure): Likewise.
765 (entry_data_value_free_closure): Likewise.
766 (get_frame_address_in_block_wrapper): Likewise.
767 (dwarf2_evaluate_property): Likewise.
768 (dwarf2_compile_property_to_c): Likewise.
769 (needs_frame_read_addr_from_reg): Likewise.
770 (needs_frame_get_reg_value): Likewise.
771 (needs_frame_frame_base): Likewise.
772 (needs_frame_frame_cfa): Likewise.
773 (needs_frame_tls_address): Likewise.
774 (needs_frame_dwarf_call): Likewise.
775 (needs_dwarf_reg_entry_value): Likewise.
776 (get_ax_pc): Likewise.
777 (locexpr_read_variable): Likewise.
778 (locexpr_read_variable_at_entry): Likewise.
779 (locexpr_read_needs_frame): Likewise.
780 (locexpr_describe_location): Likewise.
781 (locexpr_tracepoint_var_ref): Likewise.
782 (locexpr_generate_c_location): Likewise.
783 (loclist_read_variable): Likewise.
784 (loclist_read_variable_at_entry): Likewise.
785 (loclist_describe_location): Likewise.
786 (loclist_tracepoint_var_ref): Likewise.
787 (loclist_generate_c_location): Likewise.
788 * dwarf2read.c (line_header_hash_voidp): Likewise.
789 (line_header_eq_voidp): Likewise.
790 (dwarf2_has_info): Likewise.
791 (dwarf2_get_section_info): Likewise.
792 (locate_dwz_sections): Likewise.
793 (hash_file_name_entry): Likewise.
794 (eq_file_name_entry): Likewise.
795 (delete_file_name_entry): Likewise.
796 (dw2_setup): Likewise.
797 (dw2_get_file_names_reader): Likewise.
798 (dw2_find_pc_sect_compunit_symtab): Likewise.
799 (hash_signatured_type): Likewise.
800 (eq_signatured_type): Likewise.
801 (add_signatured_type_cu_to_table): Likewise.
802 (create_debug_types_hash_table): Likewise.
803 (lookup_dwo_signatured_type): Likewise.
804 (lookup_dwp_signatured_type): Likewise.
805 (lookup_signatured_type): Likewise.
806 (hash_type_unit_group): Likewise.
807 (eq_type_unit_group): Likewise.
808 (get_type_unit_group): Likewise.
809 (process_psymtab_comp_unit_reader): Likewise.
810 (sort_tu_by_abbrev_offset): Likewise.
811 (process_skeletonless_type_unit): Likewise.
812 (psymtabs_addrmap_cleanup): Likewise.
813 (dwarf2_read_symtab): Likewise.
814 (psymtab_to_symtab_1): Likewise.
815 (die_hash): Likewise.
816 (die_eq): Likewise.
817 (load_full_comp_unit_reader): Likewise.
818 (reset_die_in_process): Likewise.
819 (free_cu_line_header): Likewise.
820 (handle_DW_AT_stmt_list): Likewise.
821 (hash_dwo_file): Likewise.
822 (eq_dwo_file): Likewise.
823 (hash_dwo_unit): Likewise.
824 (eq_dwo_unit): Likewise.
825 (create_dwo_cu_reader): Likewise.
826 (create_dwo_unit_in_dwp_v1): Likewise.
827 (create_dwo_unit_in_dwp_v2): Likewise.
828 (lookup_dwo_unit_in_dwp): Likewise.
829 (dwarf2_locate_dwo_sections): Likewise.
830 (dwarf2_locate_common_dwp_sections): Likewise.
831 (dwarf2_locate_v2_dwp_sections): Likewise.
832 (hash_dwp_loaded_cutus): Likewise.
833 (eq_dwp_loaded_cutus): Likewise.
834 (lookup_dwo_cutu): Likewise.
835 (abbrev_table_free_cleanup): Likewise.
836 (dwarf2_free_abbrev_table): Likewise.
837 (find_partial_die_in_comp_unit): Likewise.
838 (free_line_header_voidp): Likewise.
839 (follow_die_offset): Likewise.
840 (follow_die_sig_1): Likewise.
841 (free_heap_comp_unit): Likewise.
842 (free_stack_comp_unit): Likewise.
843 (dwarf2_free_objfile): Likewise.
844 (per_cu_offset_and_type_hash): Likewise.
845 (per_cu_offset_and_type_eq): Likewise.
846 (get_die_type_at_offset): Likewise.
847 (partial_die_hash): Likewise.
848 (partial_die_eq): Likewise.
849 (dwarf2_per_objfile_free): Likewise.
850 (hash_strtab_entry): Likewise.
851 (eq_strtab_entry): Likewise.
852 (add_string): Likewise.
853 (hash_symtab_entry): Likewise.
854 (eq_symtab_entry): Likewise.
855 (delete_symtab_entry): Likewise.
856 (cleanup_mapped_symtab): Likewise.
857 (add_indices_to_cpool): Likewise.
858 (hash_psymtab_cu_index): Likewise.
859 (eq_psymtab_cu_index): Likewise.
860 (add_address_entry_worker): Likewise.
861 (unlink_if_set): Likewise.
862 (write_one_signatured_type): Likewise.
863 (save_gdb_index_command): Likewise.
864 * elfread.c (elf_symtab_read): Likewise.
865 (elf_gnu_ifunc_cache_hash): Likewise.
866 (elf_gnu_ifunc_cache_eq): Likewise.
867 (elf_gnu_ifunc_record_cache): Likewise.
868 (elf_gnu_ifunc_resolve_by_cache): Likewise.
869 (elf_get_probes): Likewise.
870 (probe_key_free): Likewise.
871 * f-lang.c (builtin_f_type): Likewise.
872 * frame-base.c (frame_base_append_sniffer): Likewise.
873 (frame_base_set_default): Likewise.
874 (frame_base_find_by_frame): Likewise.
875 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
876 (frame_unwind_append_unwinder): Likewise.
877 (frame_unwind_find_by_frame): Likewise.
878 * frame.c (frame_addr_hash): Likewise.
879 (frame_addr_hash_eq): Likewise.
880 (frame_stash_find): Likewise.
881 (do_frame_register_read): Likewise.
882 (unwind_to_current_frame): Likewise.
883 (frame_cleanup_after_sniffer): Likewise.
884 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
885 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
886 * ft32-tdep.c (ft32_frame_cache): Likewise.
887 * gcore.c (do_bfd_delete_cleanup): Likewise.
888 (gcore_create_callback): Likewise.
889 * gdb_bfd.c (hash_bfd): Likewise.
890 (eq_bfd): Likewise.
891 (gdb_bfd_open): Likewise.
892 (free_one_bfd_section): Likewise.
893 (gdb_bfd_ref): Likewise.
894 (gdb_bfd_unref): Likewise.
895 (get_section_descriptor): Likewise.
896 (gdb_bfd_map_section): Likewise.
897 (gdb_bfd_crc): Likewise.
898 (gdb_bfd_mark_parent): Likewise.
899 (gdb_bfd_record_inclusion): Likewise.
900 (gdb_bfd_requires_relocations): Likewise.
901 (print_one_bfd): Likewise.
902 * gdbtypes.c (type_pair_hash): Likewise.
903 (type_pair_eq): Likewise.
904 (builtin_type): Likewise.
905 (objfile_type): Likewise.
906 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
907 (vtable_address_point_offset): Likewise.
908 (gnuv3_get_vtable): Likewise.
909 (hash_value_and_voffset): Likewise.
910 (eq_value_and_voffset): Likewise.
911 (compare_value_and_voffset): Likewise.
912 (compute_vtable_size): Likewise.
913 (gnuv3_get_typeid_type): Likewise.
914 * go-lang.c (builtin_go_type): Likewise.
915 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
916 (bkscm_eq_block_smob): Likewise.
917 (bkscm_objfile_block_map): Likewise.
918 (bkscm_del_objfile_blocks): Likewise.
919 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
920 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
921 (gdbscm_disasm_print_address): Likewise.
922 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
923 (frscm_eq_frame_smob): Likewise.
924 (frscm_inferior_frame_map): Likewise.
925 (frscm_del_inferior_frames): Likewise.
926 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
927 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
928 (ofscm_objfile_smob_from_objfile): Likewise.
929 * guile/scm-ports.c (ioscm_write): Likewise.
930 (ioscm_file_port_delete): Likewise.
931 (ioscm_file_port_rewind): Likewise.
932 (ioscm_file_port_put): Likewise.
933 (ioscm_file_port_write): Likewise.
934 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
935 (psscm_pspace_smob_from_pspace): Likewise.
936 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
937 (scscm_recording_unwind_handler): Likewise.
938 (gdbscm_with_catch): Likewise.
939 (scscm_call_0_body): Likewise.
940 (scscm_call_1_body): Likewise.
941 (scscm_call_2_body): Likewise.
942 (scscm_call_3_body): Likewise.
943 (scscm_call_4_body): Likewise.
944 (scscm_apply_1_body): Likewise.
945 (scscm_eval_scheme_string): Likewise.
946 (gdbscm_safe_eval_string): Likewise.
947 (scscm_source_scheme_script): Likewise.
948 (gdbscm_safe_source_script): Likewise.
949 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
950 (gdbscm_call_scm_from_stringn): Likewise.
951 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
952 (syscm_eq_symbol_smob): Likewise.
953 (syscm_get_symbol_map): Likewise.
954 (syscm_del_objfile_symbols): Likewise.
955 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
956 (stscm_eq_symtab_smob): Likewise.
957 (stscm_objfile_symtab_map): Likewise.
958 (stscm_del_objfile_symtabs): Likewise.
959 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
960 (tyscm_eq_type_smob): Likewise.
961 (tyscm_type_map): Likewise.
962 (tyscm_copy_type_recursive): Likewise.
963 (save_objfile_types): Likewise.
964 * guile/scm-utils.c (extract_arg): Likewise.
965 * h8300-tdep.c (h8300_frame_cache): Likewise.
966 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
967 * hppa-tdep.c (compare_unwind_entries): Likewise.
968 (find_unwind_entry): Likewise.
969 (hppa_frame_cache): Likewise.
970 (hppa_stub_frame_unwind_cache): Likewise.
971 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
972 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
973 (hppaobsd_supply_fpregset): Likewise.
974 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
975 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
976 * i386-tdep.c (i386_frame_cache): Likewise.
977 (i386_epilogue_frame_cache): Likewise.
978 (i386_sigtramp_frame_cache): Likewise.
979 (i386_supply_gregset): Likewise.
980 (i386_collect_gregset): Likewise.
981 (i386_gdbarch_init): Likewise.
982 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
983 (i386obsd_trapframe_cache): Likewise.
984 * i387-tdep.c (i387_supply_fsave): Likewise.
985 (i387_collect_fsave): Likewise.
986 (i387_supply_fxsave): Likewise.
987 (i387_collect_fxsave): Likewise.
988 (i387_supply_xsave): Likewise.
989 (i387_collect_xsave): Likewise.
990 * ia64-tdep.c (ia64_frame_cache): Likewise.
991 (ia64_sigtramp_frame_cache): Likewise.
992 * infcmd.c (attach_command_continuation): Likewise.
993 (attach_command_continuation_free_args): Likewise.
994 * inferior.c (restore_inferior): Likewise.
995 (delete_thread_of_inferior): Likewise.
996 * inflow.c (inflow_inferior_data_cleanup): Likewise.
997 (get_inflow_inferior_data): Likewise.
998 (inflow_inferior_exit): Likewise.
999 * infrun.c (displaced_step_clear_cleanup): Likewise.
1000 (restore_current_uiout_cleanup): Likewise.
1001 (release_stop_context_cleanup): Likewise.
1002 (do_restore_infcall_suspend_state_cleanup): Likewise.
1003 (do_restore_infcall_control_state_cleanup): Likewise.
1004 (restore_inferior_ptid): Likewise.
1005 * inline-frame.c (block_starting_point_at): Likewise.
1006 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1007 * jit.c (get_jit_objfile_data): Likewise.
1008 (get_jit_program_space_data): Likewise.
1009 (jit_object_close_impl): Likewise.
1010 (jit_find_objf_with_entry_addr): Likewise.
1011 (jit_breakpoint_deleted): Likewise.
1012 (jit_unwind_reg_set_impl): Likewise.
1013 (jit_unwind_reg_get_impl): Likewise.
1014 (jit_dealloc_cache): Likewise.
1015 (jit_frame_sniffer): Likewise.
1016 (jit_frame_prev_register): Likewise.
1017 (jit_prepend_unwinder): Likewise.
1018 (jit_inferior_exit_hook): Likewise.
1019 (free_objfile_data): Likewise.
1020 * jv-lang.c (jv_per_objfile_free): Likewise.
1021 (get_dynamics_objfile): Likewise.
1022 (get_java_class_symtab): Likewise.
1023 (builtin_java_type): Likewise.
1024 * language.c (language_string_char_type): Likewise.
1025 (language_bool_type): Likewise.
1026 (language_lookup_primitive_type): Likewise.
1027 (language_lookup_primitive_type_as_symbol): Likewise.
1028 * linespec.c (hash_address_entry): Likewise.
1029 (eq_address_entry): Likewise.
1030 (iterate_inline_only): Likewise.
1031 (iterate_name_matcher): Likewise.
1032 (decode_line_2_compare_items): Likewise.
1033 (collect_one_symbol): Likewise.
1034 (compare_symbols): Likewise.
1035 (compare_msymbols): Likewise.
1036 (add_symtabs_to_list): Likewise.
1037 (collect_symbols): Likewise.
1038 (compare_msyms): Likewise.
1039 (add_minsym): Likewise.
1040 (cleanup_linespec_result): Likewise.
1041 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1042 * linux-nat.c (delete_lwp_cleanup): Likewise.
1043 (count_events_callback): Likewise.
1044 (select_event_lwp_callback): Likewise.
1045 (resume_stopped_resumed_lwps): Likewise.
1046 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1047 (invalidate_linux_cache_inf): Likewise.
1048 (get_linux_inferior_data): Likewise.
1049 (linux_find_memory_regions_thunk): Likewise.
1050 (linux_make_mappings_callback): Likewise.
1051 (linux_corefile_thread_callback): Likewise.
1052 (find_mapping_size): Likewise.
1053 * linux-thread-db.c (find_new_threads_callback): Likewise.
1054 * lm32-tdep.c (lm32_frame_cache): Likewise.
1055 * m2-lang.c (builtin_m2_type): Likewise.
1056 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1057 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1058 (m32r_linux_supply_gregset): Likewise.
1059 (m32r_linux_collect_gregset): Likewise.
1060 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1061 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1062 * m68k-tdep.c (m68k_frame_cache): Likewise.
1063 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1064 (m68kbsd_supply_gregset): Likewise.
1065 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1066 * m88k-tdep.c (m88k_frame_cache): Likewise.
1067 (m88k_supply_gregset): Likewise.
1068
224c3ddb
SM
10692015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1070
1071 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1072 to allocation result assignment.
1073 * ada-exp.y (write_object_renaming): Likewise.
1074 (write_ambiguous_var): Likewise.
1075 (ada_nget_field_index): Likewise.
1076 (write_var_or_type): Likewise.
1077 * ada-lang.c (ada_decode_symbol): Likewise.
1078 (ada_value_assign): Likewise.
1079 (value_pointer): Likewise.
1080 (cache_symbol): Likewise.
1081 (add_nonlocal_symbols): Likewise.
1082 (ada_name_for_lookup): Likewise.
1083 (symbol_completion_add): Likewise.
1084 (ada_to_fixed_type_1): Likewise.
1085 (ada_get_next_arg): Likewise.
1086 (defns_collected): Likewise.
1087 * ada-lex.l (processId): Likewise.
1088 (processString): Likewise.
1089 * ada-tasks.c (read_known_tasks_array): Likewise.
1090 (read_known_tasks_list): Likewise.
1091 * ada-typeprint.c (decoded_type_name): Likewise.
1092 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1093 * amd64-tdep.c (amd64_push_arguments): Likewise.
1094 (amd64_displaced_step_copy_insn): Likewise.
1095 (amd64_classify_insn_at): Likewise.
1096 (amd64_relocate_instruction): Likewise.
1097 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1098 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1099 (initialize_current_architecture): Likewise.
1100 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1101 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1102 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1103 (arm_push_dummy_call): Likewise.
1104 (extend_buffer_earlier): Likewise.
1105 (arm_adjust_breakpoint_address): Likewise.
1106 (arm_skip_stub): Likewise.
1107 * auto-load.c (filename_is_in_pattern): Likewise.
1108 (maybe_add_script_file): Likewise.
1109 (maybe_add_script_text): Likewise.
1110 (auto_load_objfile_script_1): Likewise.
1111 * auxv.c (ld_so_xfer_auxv): Likewise.
1112 * ax-general.c (new_agent_expr): Likewise.
1113 (grow_expr): Likewise.
1114 (ax_reg_mask): Likewise.
1115 * bcache.c (bcache_full): Likewise.
1116 * breakpoint.c (program_breakpoint_here_p): Likewise.
1117 * btrace.c (parse_xml_raw): Likewise.
1118 * build-id.c (build_id_to_debug_bfd): Likewise.
1119 * buildsym.c (end_symtab_with_blockvector): Likewise.
1120 * c-exp.y (string_exp): Likewise.
1121 (qualified_name): Likewise.
1122 (write_destructor_name): Likewise.
1123 (operator_stoken): Likewise.
1124 (parse_number): Likewise.
1125 (scan_macro_expansion): Likewise.
1126 (yylex): Likewise.
1127 (c_print_token): Likewise.
1128 * c-lang.c (c_get_string): Likewise.
1129 (emit_numeric_character): Likewise.
1130 * charset.c (wchar_iterate): Likewise.
1131 * cli/cli-cmds.c (complete_command): Likewise.
1132 (make_command): Likewise.
1133 * cli/cli-dump.c (restore_section_callback): Likewise.
1134 (restore_binary_file): Likewise.
1135 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1136 * cli/cli-script.c (execute_control_command): Likewise.
1137 * cli/cli-setshow.c (do_set_command): Likewise.
1138 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1139 (read_pe_exported_syms): Likewise.
1140 * coffread.c (coff_read_struct_type): Likewise.
1141 (coff_read_enum_type): Likewise.
1142 * common/btrace-common.c (btrace_data_append): Likewise.
1143 * common/buffer.c (buffer_grow): Likewise.
1144 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1145 * common/format.c (parse_format_string): Likewise.
1146 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1147 * common/xml-utils.c (xml_escape_text): Likewise.
1148 * compile/compile-object-load.c (copy_sections): Likewise.
1149 (compile_object_load): Likewise.
1150 * compile/compile-object-run.c (compile_object_run): Likewise.
1151 * completer.c (filename_completer): Likewise.
1152 * corefile.c (read_memory_typed_address): Likewise.
1153 (write_memory_unsigned_integer): Likewise.
1154 (write_memory_signed_integer): Likewise.
1155 (complete_set_gnutarget): Likewise.
1156 * corelow.c (get_core_register_section): Likewise.
1157 * cp-name-parser.y (d_grab): Likewise.
1158 (allocate_info): Likewise.
1159 (cp_new_demangle_parse_info): Likewise.
1160 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1161 (cp_lookup_symbol_in_namespace): Likewise.
1162 (lookup_namespace_scope): Likewise.
1163 (find_symbol_in_baseclass): Likewise.
1164 (cp_lookup_nested_symbol): Likewise.
1165 (cp_lookup_transparent_type_loop): Likewise.
1166 * cp-support.c (copy_string_to_obstack): Likewise.
1167 (make_symbol_overload_list): Likewise.
1168 (make_symbol_overload_list_namespace): Likewise.
1169 (make_symbol_overload_list_adl_namespace): Likewise.
1170 (first_component_command): Likewise.
1171 * cp-valprint.c (cp_print_value): Likewise.
1172 * ctf.c (ctf_xfer_partial): Likewise.
1173 * d-exp.y (StringExp): Likewise.
1174 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1175 (lookup_module_scope): Likewise.
1176 (find_symbol_in_baseclass): Likewise.
1177 (d_lookup_nested_symbol): Likewise.
1178 * dbxread.c (find_stab_function_addr): Likewise.
1179 (read_dbx_symtab): Likewise.
1180 (dbx_end_psymtab): Likewise.
1181 (cp_set_block_scope): Likewise.
1182 * dcache.c (dcache_alloc): Likewise.
1183 * demangle.c (_initialize_demangler): Likewise.
1184 * dicos-tdep.c (dicos_load_module_p): Likewise.
1185 * dictionary.c (dict_create_hashed_expandable): Likewise.
1186 (dict_create_linear_expandable): Likewise.
1187 (expand_hashtable): Likewise.
1188 (add_symbol_linear_expandable): Likewise.
1189 * dwarf2-frame.c (add_cie): Likewise.
1190 (add_fde): Likewise.
1191 (dwarf2_build_frame_info): Likewise.
1192 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1193 (dwarf_expr_fetch_address): Likewise.
1194 (add_piece): Likewise.
1195 (execute_stack_op): Likewise.
1196 * dwarf2loc.c (chain_candidate): Likewise.
1197 (dwarf_entry_parameter_to_value): Likewise.
1198 (read_pieced_value): Likewise.
1199 (write_pieced_value): Likewise.
1200 * dwarf2read.c (dwarf2_read_section): Likewise.
1201 (add_type_unit): Likewise.
1202 (read_comp_units_from_section): Likewise.
1203 (fixup_go_packaging): Likewise.
1204 (dwarf2_compute_name): Likewise.
1205 (dwarf2_physname): Likewise.
1206 (create_dwo_unit_in_dwp_v1): Likewise.
1207 (create_dwo_unit_in_dwp_v2): Likewise.
1208 (read_func_scope): Likewise.
1209 (read_call_site_scope): Likewise.
1210 (dwarf2_attach_fields_to_type): Likewise.
1211 (process_structure_scope): Likewise.
1212 (mark_common_block_symbol_computed): Likewise.
1213 (read_common_block): Likewise.
1214 (abbrev_table_read_table): Likewise.
1215 (guess_partial_die_structure_name): Likewise.
1216 (fixup_partial_die): Likewise.
1217 (add_file_name): Likewise.
1218 (dwarf2_const_value_data): Likewise.
1219 (dwarf2_const_value_attr): Likewise.
1220 (build_error_marker_type): Likewise.
1221 (guess_full_die_structure_name): Likewise.
1222 (anonymous_struct_prefix): Likewise.
1223 (typename_concat): Likewise.
1224 (dwarf2_canonicalize_name): Likewise.
1225 (dwarf2_name): Likewise.
1226 (write_constant_as_bytes): Likewise.
1227 (dwarf2_fetch_constant_bytes): Likewise.
1228 (copy_string): Likewise.
1229 (parse_macro_definition): Likewise.
1230 * elfread.c (elf_symfile_segments): Likewise.
1231 (elf_rel_plt_read): Likewise.
1232 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1233 (elf_gnu_ifunc_resolve_by_got): Likewise.
1234 (elf_read_minimal_symbols): Likewise.
1235 (elf_gnu_ifunc_record_cache): Likewise.
1236 * event-top.c (top_level_prompt): Likewise.
1237 (command_line_handler): Likewise.
1238 * exec.c (resize_section_table): Likewise.
1239 * expprint.c (print_subexp_standard): Likewise.
1240 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1241 * findcmd.c (parse_find_args): Likewise.
1242 * findvar.c (address_from_register): Likewise.
1243 * frame.c (get_prev_frame_always): Likewise.
1244 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1245 (get_section_descriptor): Likewise.
1246 * gdb_obstack.c (obconcat): Likewise.
1247 (obstack_strdup): Likewise.
1248 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1249 (create_set_type): Likewise.
1250 (lookup_unsigned_typename): Likewise.
1251 (lookup_signed_typename): Likewise.
1252 (resolve_dynamic_union): Likewise.
1253 (resolve_dynamic_struct): Likewise.
1254 (add_dyn_prop): Likewise.
1255 (copy_dynamic_prop_list): Likewise.
1256 (arch_flags_type): Likewise.
1257 (append_composite_type_field_raw): Likewise.
1258 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1259 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1260 * go-exp.y (string_exp): Likewise.
1261 * go-lang.c (go_demangle): Likewise.
1262 * guile/guile.c (compute_scheme_string): Likewise.
1263 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1264 (gdbscm_canonicalize_command_name): Likewise.
1265 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1266 (ioscm_init_memory_port): Likewise.
1267 (ioscm_reinit_memory_port): Likewise.
1268 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1269 (gdbscm_gc_dup_argv): Likewise.
1270 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1271 * hppa-tdep.c (internalize_unwinds): Likewise.
1272 (read_unwind_info): Likewise.
1273 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1274 (windows_core_xfer_shared_libraries): Likewise.
1275 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1276 (i386_stap_parse_special_token_triplet): Likewise.
1277 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1278 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1279 * inf-child.c (inf_child_fileio_readlink): Likewise.
1280 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1281 (inf_ptrace_store_register): Likewise.
1282 * infrun.c (follow_exec): Likewise.
1283 (displaced_step_prepare_throw): Likewise.
1284 (save_stop_context): Likewise.
1285 (save_infcall_suspend_state): Likewise.
1286 * jit.c (jit_read_descriptor): Likewise.
1287 (jit_read_code_entry): Likewise.
1288 (jit_symtab_line_mapping_add_impl): Likewise.
1289 (finalize_symtab): Likewise.
1290 (jit_unwind_reg_get_impl): Likewise.
1291 * jv-exp.y (QualifiedName): Likewise.
1292 * jv-lang.c (get_java_utf8_name): Likewise.
1293 (type_from_class): Likewise.
1294 (java_demangle_type_signature): Likewise.
1295 (java_class_name_from_physname): Likewise.
1296 * jv-typeprint.c (java_type_print_base): Likewise.
1297 * jv-valprint.c (java_value_print): Likewise.
1298 * language.c (add_language): Likewise.
1299 * linespec.c (add_sal_to_sals_basic): Likewise.
1300 (add_sal_to_sals): Likewise.
1301 (decode_objc): Likewise.
1302 (find_linespec_symbols): Likewise.
1303 * linux-fork.c (fork_save_infrun_state): Likewise.
1304 * linux-nat.c (linux_nat_detach): Likewise.
1305 (linux_nat_fileio_readlink): Likewise.
1306 * linux-record.c (record_linux_sockaddr): Likewise.
1307 (record_linux_msghdr): Likewise.
1308 (Do): Likewise.
1309 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1310 (linux_collect_regset_section_cb): Likewise.
1311 (linux_get_siginfo_data): Likewise.
1312 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1313 (try_thread_db_load_from_dir): Likewise.
1314 (thread_db_load_search): Likewise.
1315 (info_auto_load_libthread_db): Likewise.
1316 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1317 (m32c_m16c_pointer_to_address): Likewise.
1318 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1319 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1320 * machoread.c (macho_check_dsym): Likewise.
1321 * macroexp.c (resize_buffer): Likewise.
1322 (gather_arguments): Likewise.
1323 (maybe_expand): Likewise.
1324 * macrotab.c (new_macro_key): Likewise.
1325 (new_source_file): Likewise.
1326 (new_macro_definition): Likewise.
1327 * mdebugread.c (parse_symbol): Likewise.
1328 (parse_type): Likewise.
1329 (parse_partial_symbols): Likewise.
1330 (psymtab_to_symtab_1): Likewise.
1331 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1332 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1333 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1334 (mi_cmd_data_read_memory_bytes): Likewise.
1335 (mi_cmd_data_write_memory_bytes): Likewise.
1336 (mi_cmd_trace_frame_collected): Likewise.
1337 * mi/mi-parse.c (mi_parse_argv): Likewise.
1338 (mi_parse): Likewise.
1339 * minidebug.c (lzma_open): Likewise.
1340 (lzma_pread): Likewise.
1341 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1342 (mips_print_fp_register): Likewise.
1343 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1344 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1345 * mt-tdep.c (mt_register_name): Likewise.
1346 (mt_registers_info): Likewise.
1347 (mt_push_dummy_call): Likewise.
1348 * namespace.c (add_using_directive): Likewise.
1349 * nat/linux-btrace.c (perf_event_read): Likewise.
1350 (linux_enable_bts): Likewise.
1351 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1352 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1353 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1354 (nto_parse_redirection): Likewise.
1355 * objc-lang.c (objc_demangle): Likewise.
1356 (find_methods): Likewise.
1357 * objfiles.c (get_objfile_bfd_data): Likewise.
1358 (set_objfile_main_name): Likewise.
1359 (allocate_objfile): Likewise.
1360 (objfile_relocate): Likewise.
1361 (update_section_map): Likewise.
1362 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1363 * p-exp.y (exp): Likewise.
1364 (yylex): Likewise.
1365 * p-valprint.c (pascal_object_print_value): Likewise.
1366 * parse.c (initialize_expout): Likewise.
1367 (mark_completion_tag): Likewise.
1368 (copy_name): Likewise.
1369 (parse_float): Likewise.
1370 (type_stack_reserve): Likewise.
1371 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1372 (ppu2spu_prev_register): Likewise.
1373 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1374 * printcmd.c (printf_wide_c_string): Likewise.
1375 (printf_pointer): Likewise.
1376 * probe.c (parse_probes): Likewise.
1377 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1378 (cmdpy_init): Likewise.
1379 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1380 * python/py-symtab.c (set_sal): Likewise.
1381 * python/py-unwind.c (pyuw_sniffer): Likewise.
1382 * python/python.c (python_interactive_command): Likewise.
1383 (compute_python_string): Likewise.
1384 * ravenscar-thread.c (get_running_thread_id): Likewise.
1385 * record-full.c (record_full_exec_insn): Likewise.
1386 (record_full_core_open_1): Likewise.
1387 * regcache.c (regcache_raw_read_signed): Likewise.
1388 (regcache_raw_read_unsigned): Likewise.
1389 (regcache_cooked_read_signed): Likewise.
1390 (regcache_cooked_read_unsigned): Likewise.
1391 * remote-fileio.c (remote_fileio_func_open): Likewise.
1392 (remote_fileio_func_rename): Likewise.
1393 (remote_fileio_func_unlink): Likewise.
1394 (remote_fileio_func_stat): Likewise.
1395 (remote_fileio_func_system): Likewise.
1396 * remote-mips.c (mips_xfer_memory): Likewise.
1397 (mips_load_srec): Likewise.
1398 (pmon_end_download): Likewise.
1399 * remote.c (new_remote_state): Likewise.
1400 (map_regcache_remote_table): Likewise.
1401 (remote_register_number_and_offset): Likewise.
1402 (init_remote_state): Likewise.
1403 (get_memory_packet_size): Likewise.
1404 (remote_pass_signals): Likewise.
1405 (remote_program_signals): Likewise.
1406 (remote_start_remote): Likewise.
1407 (remote_check_symbols): Likewise.
1408 (remote_query_supported): Likewise.
1409 (extended_remote_attach): Likewise.
1410 (process_g_packet): Likewise.
1411 (store_registers_using_G): Likewise.
1412 (putpkt_binary): Likewise.
1413 (read_frame): Likewise.
1414 (compare_sections_command): Likewise.
1415 (remote_hostio_pread): Likewise.
1416 (remote_hostio_readlink): Likewise.
1417 (remote_file_put): Likewise.
1418 (remote_file_get): Likewise.
1419 (remote_pid_to_exec_file): Likewise.
1420 (_initialize_remote): Likewise.
1421 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1422 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1423 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1424 (bfd_uses_spe_extensions): Likewise.
1425 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1426 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1427 * solib-dsbt.c (decode_loadmap): Likewise.
1428 (fetch_loadmap): Likewise.
1429 (scan_dyntag): Likewise.
1430 (enable_break): Likewise.
1431 (dsbt_relocate_main_executable): Likewise.
1432 * solib-frv.c (fetch_loadmap): Likewise.
1433 (enable_break2): Likewise.
1434 (frv_relocate_main_executable): Likewise.
1435 * solib-spu.c (spu_relocate_main_executable): Likewise.
1436 (spu_bfd_open): Likewise.
1437 * solib-svr4.c (lm_info_read): Likewise.
1438 (read_program_header): Likewise.
1439 (find_program_interpreter): Likewise.
1440 (scan_dyntag): Likewise.
1441 (elf_locate_base): Likewise.
1442 (open_symbol_file_object): Likewise.
1443 (read_program_headers_from_bfd): Likewise.
1444 (svr4_relocate_main_executable): Likewise.
1445 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1446 * solib.c (solib_find_1): Likewise.
1447 (exec_file_find): Likewise.
1448 (solib_find): Likewise.
1449 * source.c (openp): Likewise.
1450 (print_source_lines_base): Likewise.
1451 (forward_search_command): Likewise.
1452 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1453 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1454 (spu_get_overlay_table): Likewise.
1455 * stabsread.c (patch_block_stabs): Likewise.
1456 (define_symbol): Likewise.
1457 (again:): Likewise.
1458 (read_member_functions): Likewise.
1459 (read_one_struct_field): Likewise.
1460 (read_enum_type): Likewise.
1461 (common_block_start): Likewise.
1462 * stack.c (read_frame_arg): Likewise.
1463 (backtrace_command): Likewise.
1464 * stap-probe.c (stap_parse_register_operand): Likewise.
1465 * symfile.c (syms_from_objfile_1): Likewise.
1466 (find_separate_debug_file): Likewise.
1467 (load_command): Likewise.
1468 (load_progress): Likewise.
1469 (load_section_callback): Likewise.
1470 (reread_symbols): Likewise.
1471 (add_filename_language): Likewise.
1472 (allocate_compunit_symtab): Likewise.
1473 (read_target_long_array): Likewise.
1474 (simple_read_overlay_table): Likewise.
1475 * symtab.c (symbol_set_names): Likewise.
1476 (resize_symbol_cache): Likewise.
1477 (rbreak_command): Likewise.
1478 (completion_list_add_name): Likewise.
1479 (completion_list_objc_symbol): Likewise.
1480 (add_filename_to_list): Likewise.
1481 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1482 * target-memory.c (target_write_memory_blocks): Likewise.
1483 * target.c (target_read_string): Likewise.
1484 (read_whatever_is_readable): Likewise.
1485 (target_read_alloc_1): Likewise.
1486 (simple_search_memory): Likewise.
1487 (target_fileio_read_alloc_1): Likewise.
1488 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1489 * top.c (command_line_input): Likewise.
1490 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1491 * tracefile.c (tracefile_fetch_registers): Likewise.
1492 * tracepoint.c (add_memrange): Likewise.
1493 (init_collection_list): Likewise.
1494 (add_aexpr): Likewise.
1495 (trace_dump_actions): Likewise.
1496 (parse_trace_status): Likewise.
1497 (parse_tracepoint_definition): Likewise.
1498 (parse_tsv_definition): Likewise.
1499 (parse_static_tracepoint_marker_definition): Likewise.
1500 * tui/tui-file.c (tui_sfileopen): Likewise.
1501 (tui_file_adjust_strbuf): Likewise.
1502 * tui/tui-io.c (tui_expand_tabs): Likewise.
1503 * tui/tui-source.c (tui_set_source_content): Likewise.
1504 * typeprint.c (find_global_typedef): Likewise.
1505 * ui-file.c (do_ui_file_xstrdup): Likewise.
1506 (ui_file_obsavestring): Likewise.
1507 (mem_file_write): Likewise.
1508 * utils.c (make_hex_string): Likewise.
1509 (get_regcomp_error): Likewise.
1510 (puts_filtered_tabular): Likewise.
1511 (gdb_realpath_keepfile): Likewise.
1512 (ldirname): Likewise.
1513 (gdb_bfd_errmsg): Likewise.
1514 (substitute_path_component): Likewise.
1515 * valops.c (search_struct_method): Likewise.
1516 (find_oload_champ_namespace_loop): Likewise.
1517 * valprint.c (print_decimal_chars): Likewise.
1518 (read_string): Likewise.
1519 (generic_emit_char): Likewise.
1520 * varobj.c (varobj_delete): Likewise.
1521 (varobj_value_get_print_value): Likewise.
1522 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1523 * windows-tdep.c (display_one_tib): Likewise.
1524 * xcoffread.c (read_xcoff_symtab): Likewise.
1525 (process_xcoff_symbol): Likewise.
1526 (swap_sym): Likewise.
1527 (scan_xcoff_symtab): Likewise.
1528 (xcoff_initial_scan): Likewise.
1529 * xml-support.c (gdb_xml_end_element): Likewise.
1530 (xml_process_xincludes): Likewise.
1531 (xml_fetch_content_from_file): Likewise.
1532 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1533 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1534
623fb775 15352015-09-23 James Bowman <james.bowman@ftdichip.com>
1536
1537 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1538 instead of builtin_func_ptr.
1539 (ft32_pointer_to_address): New function.
1540 (ft32_address_class_type_flags): New function.
1541 (ft32_address_class_type_flags_to_name): New function.
1542 (ft32_address_class_name_to_type_flags): New function.
1543 (ft32_gdbarch_init): Set tdep->pc_type. Call
1544 set_gdbarch_pointer_to_address,
1545 set_gdbarch_address_class_type_flags
1546 set_gdbarch_address_class_name_to_type_flags,
1547 and set_gdbarch_address_class_type_flags_to_name.
1548 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1549
e6c2c623
PMR
15502015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1551
1552 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1553 value is a reference, actually dereference it in order to get
1554 the underlying value.
1555
bc1f8cda
SM
15562015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1557
1558 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1559
acaa662f
SM
15602015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1561
1562 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1563 * linespec.c (linespec_lexer_lex_string): Same.
1564
4d9d419e
PL
15652015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1566
1567 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1568
6ec5f4be
PL
15692015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1570
1571 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1572 variable. Call aarch64_decode_adr instead of
1573 aarch64_decode_adrp.
1574 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1575 (aarch64_decode_adr): New function declaration.
1576 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1577 (aarch64_decode_adr): New function, factored out from
1578 aarch64_decode_adrp to decode both adr and adrp instructions.
1579
787749ea
PL
15802015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1581
1582 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1583 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1584 (aarch64-insn.o): New rule.
1585 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1586 (aarch64*-*-linux*): Likewise.
1587 * arch/aarch64-insn.c: New file.
1588 * arch/aarch64-insn.h: New file.
1589 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1590 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1591 arch/aarch64-insn.h.
1592 (decode_add_sub_imm): Rename to ...
1593 (aarch64_decode_add_sub_imm): ... this.
1594 (decode_adrp): Rename to ...
1595 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1596 Declare in arch/aarch64-insn.h.
1597 (decode_b): Rename to ...
1598 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1599 Declare in arch/aarch64-insn.h.
1600 (decode_bcond): Rename to ...
1601 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1602 Declare in arch/aarch64-insn.h.
1603 (decode_br): Rename to ...
1604 (aarch64_decode_br): ... this.
1605 (decode_cb): Rename to ...
1606 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1607 Declare in arch/aarch64-insn.h.
1608 (decode_eret): Rename to ...
1609 (aarch64_decode_eret): ... this.
1610 (decode_movz): Rename to ...
1611 (aarch64_decode_movz): ... this.
1612 (decode_orr_shifted_register_x): Rename to ...
1613 (aarch64_decode_orr_shifted_register_x): ... this.
1614 (decode_ret): Rename to ...
1615 (aarch64_decode_ret): ... this.
1616 (decode_stp_offset): Rename to ...
1617 (aarch64_decode_stp_offset): ... this.
1618 (decode_stp_offset_wb): Rename to ...
1619 (aarch64_decode_stp_offset_wb): ... this.
1620 (decode_stur): Rename to ...
1621 (aarch64_decode_stur): ... this.
1622 (decode_tb): Rename to ...
1623 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1624 Declare in arch/aarch64-insn.h.
1625 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1626
183dc7ec
DE
16272015-09-20 Doug Evans <xdje42@gmail.com>
1628
1629 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1630
2ee7123e
DE
16312015-09-20 Doug Evans <xdje42@gmail.com>
1632
1633 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1634 variable name that collides with a parameter.
1635
7d1c9c9b
JB
16362015-09-20 Joel Brobecker <brobecker@adacore.com>
1637
1638 * dwarf2loc.c (locexpr_get_frame_base): Renames
1639 block_op_get_frame_base.
1640 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1641 block_op_get_frame_base by reference to locexpr_get_frame_base.
1642 (loclist_get_frame_base): New function, near identical copy of
1643 locexpr_get_frame_base.
1644 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1645 block_op_get_frame_base by reference to loclist_get_frame_base.
1646
7dc7c195
DE
16472015-09-19 Doug Evans <xdje42@gmail.com>
1648
1649 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1650 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1651
be550b6e
DE
16522015-09-18 Doug Evans <xdje42@gmail.com>
1653
1654 * linux-thread-db.c (record_thread): Return the created thread.
1655 (thread_from_lwp): Likewise.
1656 (thread_db_get_thread_local_address): Update.
1657
615b3f62
DE
16582015-09-18 Doug Evans <xdje42@gmail.com>
1659
1660 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1661 move only member demangled_name up. All uses updated.
1662
015d2e7e
DE
16632015-09-18 Doug Evans <xdje42@gmail.com>
1664
1665 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1666 kind of minimal symbol in the error message.
1667 * objfiles.c (objfile_flavour_name): New function.
1668 * objfiles.h (objfile_flavour_name): Declare.
1669
a0cc84cd
YQ
16702015-09-18 Yao Qi <yao.qi@linaro.org>
1671
1672 * nat/aarch64-linux.c: Include elf/common.h,
1673 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1674 (aarch64_ps_get_thread_area): New function.
1675 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1676 (aarch64_ps_get_thread_area): Declare.
1677 * aarch64-linux-nat.c (ps_get_thread_area): Call
1678 aarch64_ps_get_thread_area.
1679
d2939ba2
MM
16802015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1681
1682 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1683
f2665db5
MM
16842015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1685
1686 * NEWS: Announce new scheduler-locking mode.
1687 * infrun.c (schedlock_replay): New.
1688 (scheduler_enums): Add schedlock_replay.
1689 (scheduler_mode): Change default to schedlock_replay.
1690 (user_visible_resume_ptid): Handle schedlock_replay.
1691 (clear_proceed_status_thread): Stop replaying if resumed thread is
1692 not replaying.
1693 (schedlock_applies): Handle schedlock_replay.
1694 (_initialize_infrun): Document new scheduler-locking mode.
1695 * record-btrace.c (record_btrace_resume): Remove code to stop other
1696 threads when not replaying the resumed thread.
1697
7ff27e9b
MM
16982015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1699
1700 * record-btrace.c ((record_btrace_will_replay): New.
1701 (init_record_btrace_ops): Initialize to_record_will_replay.
1702 * record-full.c ((record_full_will_replay): New.
1703 (init_record_full_ops): Initialize to_record_will_replay.
1704 * target-delegates.c: Regenerated.
1705 * target.c (target_record_will_replay): New.
1706 * target.h (struct target_ops) <to_record_will_replay>: New.
1707 (target_record_will_replay): New.
1708
797094dd
MM
17092015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1710
1711 * record-btrace.c (record_btrace_resume): Call
1712 target_record_stop_replaying.
1713 (record_btrace_stop_replaying_all): New.
1714 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1715 * record-full.c (record_full_stop_replaying): New.
1716 (init_record_full_ops ): Initialize to_record_stop_replaying.
1717 * target-delegates.c: Regenerated.
1718 * target.c (target_record_stop_replaying): New.
1719 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1720 (target_record_stop_replaying): New.
1721
4d10e986
MM
17222015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1723
1724 * record-btrace.c (record_btrace_xfer_partial)
1725 (record_btrace_store_registers, record_btrace_prepare_to_store):
1726 Call record_btrace_is_replaying with inferior_ptid instead of
1727 minus_one_ptid.
1728 (record_btrace_store_registers): Change error message.
1729
a52eab48
MM
17302015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1731
1732 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1733 Update users to pass minus_one_ptid.
1734 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1735 * record.c (cmd_record_delete): Pass inferior_ptid to
1736 target_record_is_replaying.
1737 * target-delegates.c: Regenerated.
1738 * target.c (target_record_is_replaying): Add ptid argument.
1739 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1740 argument.
1741 (target_record_is_replaying): Add ptid argument.
1742
cbb55fa7
MM
17432015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1744
1745 * record-btrace.c (record_btrace_open): Remove non_stop check.
1746 * NEWS: Announce that record btrace supports non-stop mode.
1747
d1988021
MM
17482015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1749
1750 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1751 in the TARKET_WAITKIND_NO_HISTORY case.
1752
a6b5be76
MM
17532015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1754
1755 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1756 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1757
ec71cc2f
MM
17582015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1759
1760 * record-btrace.c (get_thread_current_frame): New.
1761 (record_btrace_start_replaying): Call get_thread_current_frame.
1762
0ca912df
MM
17632015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1764
1765 * record-btrace.c (record_btrace_resume_thread): A move request
1766 overwrites a previous move request.
1767 (record_btrace_find_resume_thread): Removed.
1768 (record_btrace_resume): Resume all requested threads.
1769
e3cfc1c7
MM
17702015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1771
1772 * record-btrace.c: Include vec.h.
1773 (record_btrace_find_thread_to_move): Removed.
1774 (btrace_step_no_resumed, btrace_step_again)
1775 (record_btrace_stop_replaying_at_end): New.
1776 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1777 (record_btrace_single_step_forward): Remove calls to
1778 record_btrace_stop_replaying.
1779 (record_btrace_step_thread): Do only one step for BTHR_CONT and
1780 BTHR_RCONT. Keep threads at the end of their history moving.
1781 (record_btrace_wait): Call record_btrace_step_thread for all threads
1782 until one reports an event. Call record_btrace_stop_replaying_at_end
1783 for the eventing thread.
1784
cf8f8f0c
MM
17852015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1786
1787 * record-btrace.c (record_btrace_single_step_forward): Return
1788 NO_HISTORY if a step brings us to the end of the execution history.
1789
011c71b6
MM
17902015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1791
1792 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1793 to ...
1794 (record_btrace_single_step_forward): ... here and
1795 (record_btrace_single_step_backward): ... here.
1796
d825d248
MM
17972015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1798
1799 * record-btrace.c (btrace_step_spurious)
1800 (record_btrace_single_step_forward)
1801 (record_btrace_single_step_backward): New.
1802 (record_btrace_step_thread): Call record_btrace_single_step_forward
1803 and record_btrace_single_step_backward.
1804
3c615f99
MM
18052015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1806
1807 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1808 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1809
987e68b1
MM
18102015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1811
1812 * record-btrace.c (btrace_thread_flag_to_str)
1813 (record_btrace_cancel_resume): New.
1814 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1815 (record_btrace_resume): Print execution direction.
1816 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1817 (record_btrace_wait): Call record_btrace_cancel_resume.
1818
6e4879f0
MM
18192015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1820
1821 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1822 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1823 (record_btrace_find_thread_to_move): Also accept threads that have
1824 BTHR_STOP set.
1825 (btrace_step_stopped_on_request, record_btrace_stop): New.
1826 (record_btrace_step_thread): Support BTHR_STOP.
1827 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1828 (init_record_btrace_ops): Initialize to_stop.
1829
5953356c
MM
18302015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1831
1832 * record-btrace.c (record_btrace_wait): Replace non_stop check with
1833 target_is_non_stop_p ().
1834
bfca584f
PMR
18352015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
1836
1837 * ada-typeprint.c (print_array_type): Do not describe arrays as
1838 packed when they embed dynamic elements.
1839
5382cfab
PW
18402015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1841
1842 * symtab.h (address_class): Document that TLS variables
1843 are handled by LOC_UNRESOLVED.
1844 * findvar.c (default_read_var_value): Don't relocate TLS variables.
1845 * printcmd.c (address_info): Don't relocate TLS variables.
1846
b277c936
PL
18472015-09-15 Pierre Langlois <pierre.langlois@arm.com>
1848
1849 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
1850 (decode_adrp): Likewise.
1851 (decode_b): Likewise.
1852 (decode_bcond): Likewise.
1853 (decode_br): Likewise.
1854 (decode_cb): Likewise.
1855 (decode_eret): Likewise.
1856 (decode_movz): Likewise.
1857 (decode_orr_shifted_register_x): Likewise.
1858 (decode_ret): Likewise.
1859 (decode_stp_offset): Likewise.
1860 (decode_stp_offset_wb): Likewise.
1861 (decode_stur): Likewise.
1862 (decode_tb): Likewise.
1863 (aarch64_analyze_prologue): Likewise.
1864 (pass_in_x): Likewise.
1865 (pass_in_v): Likewise.
1866 (pass_on_stack): Likewise.
1867 (aarch64_push_dummy_call): Likewise.
1868 (aarch64_extract_return_value): Likewise.
1869 (aarch64_store_return_value): Likewise.
1870 (aarch64_return_value): Likewise.
1871 (aarch64_record_asimd_load_store): Likewise.
1872 (aarch64_record_load_store): Likewise.
1873 (aarch64_record_data_proc_simd_fp): Likewise.
1874
141c5cc4
JK
18752015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1876
1877 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
1878 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
1879 (ppc64_skip_trampoline_code_1): ... here.
1880 (ppc64_skip_trampoline_code): New wrapper function.
1881 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
1882
750ce8d1
YQ
18832015-09-15 Yao Qi <yao.qi@linaro.org>
1884
1885 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
1886 function.
1887 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
1888 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
1889 if target_can_do_single_step returns 1.
1890 * remote.c (struct vCont_action_support) <s, S>: New fields.
1891 (PACKET_vContSupported): New enum.
1892 (remote_protocol_features): New element for vContSupported.
1893 (remote_query_supported): Append "vContSupported+".
1894 (remote_vcont_probe): Remove support_s and support_S, use
1895 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
1896 vCont packet if c and C actions are not supported.
1897 (remote_can_do_single_step): New function.
1898 (init_remote_ops): Install it to to_can_do_single_step.
1899 (_initialize_remote): Call add_packet_config_cmd.
1900 * target.h (struct target_ops) <to_can_do_single_step>: New field.
1901 (target_can_do_single_step): New macro.
1902 * target-delegates.c: Re-generated.
1903
ade90bde
YQ
19042015-09-15 Yao Qi <yao.qi@linaro.org>
1905
1906 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
1907 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
1908 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
1909 New function.
1910 (aarch64_siginfo_from_compat_siginfo): New function.
1911 * nat/aarch64-linux.h: Include signal.h.
1912 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
1913 (compat_timer_t, compat_clock_t): Likewise.
1914 (struct compat_timeval): New.
1915 (union compat_sigval): New.
1916 (struct compat_siginfo): New.
1917 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
1918 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
1919 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
1920 (cpt_si_band, cpt_si_fd): Likewise.
1921
4c2f2a79
PA
19222015-09-14 Pedro Alves <palves@redhat.com>
1923
1924 * infrun.c (current_stop_id): New global.
1925 (get_stop_id, new_stop_id): New functions.
1926 (fetch_inferior_event): Handle normal_stop proceeding the target.
1927 (struct stop_context): New.
1928 (save_stop_context, release_stop_context_cleanup)
1929 (stop_context_changed): New functions.
1930 (normal_stop): Return true if the hook-stop changes the stop
1931 context.
1932 * infrun.h (get_stop_id): Declare.
1933 (normal_stop): Now returns int. Add documentation.
1934
919e6dbe
PMR
19352015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
1936
1937 * ada-lang.c (ada_value_ptr_subscript): Update the heading
1938 comment. Handle packed arrays.
1939
b027a8fa
PA
19402015-09-14 Pedro Alves <palves@redhat.com>
1941
1942 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
1943 mention of maint set/show target-non-stop.
1944
b459a59b
DB
19452015-09-11 Don Breazeal <donb@codesourcery.com>
1946
1947 * NEWS: Announce new remote packets for the exec-events
1948 feature and the exec-events feature and associated commands.
1949
d46addbb
DB
19502015-09-11 Don Breazeal <donb@codesourcery.com>
1951
1952 * remote.c (remote_exec_event_p): New function.
1953 (remote_insert_exec_catchpoint): New function.
1954 (remote_remove_exec_catchpoint): New function.
1955 (init_extended_remote_ops): Initialize extended_remote_ops
1956 members to_insert_exec_catchpoint and
1957 to_remove_exec_catchpoint.
1958
94585166
DB
19592015-09-11 Don Breazeal <donb@codesourcery.com>
1960 Luis Machado <lgustavo@codesourcery.com>
1961
1962 * infrun.c (follow_exec): Use process-style ptid for
1963 exec message. Call add_inferior_with_spaces and
1964 target_follow_exec.
1965 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
1966 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
1967 * remote.c (remote_pspace_data): New static variable.
1968 (remote_pspace_data_cleanup): New function.
1969 (get_remote_exec_file): New function.
1970 (set_remote_exec_file_1): New function.
1971 (set_remote_exec_file): New function.
1972 (show_remote_exec_file): New function.
1973 (remote_exec_file): Delete static variable.
1974 (anonymous enum) <PACKET_exec_event_feature>: New
1975 enumeration constant.
1976 (remote_protocol_features): Add entry for exec-events feature.
1977 (remote_query_supported): Add client side of qSupported query
1978 for exec-events feature.
1979 (remote_follow_exec): New function.
1980 (remote_parse_stop_reply): Handle 'exec' stop reason.
1981 (extended_remote_run, extended_remote_create_inferior): Call
1982 get_remote_exec_file and set_remote_exec_file_1.
1983 (init_extended_remote_ops) <to_follow_exec>: Initialize new
1984 member.
1985 (_initialize_remote): Call
1986 register_program_space_data_with_cleanup. Call
1987 add_packet_config_cmd for remote exec-events feature.
1988 Modify call to add_setshow_string_noescape_cmd for exec-file
1989 to use new functions set_remote_exec_file and
1990 show_remote_exec_file.
1991 * target-debug.h, target-delegates.c: Regenerated.
1992 * target.c (target_follow_exec): New function.
1993 * target.h (struct target_ops) <to_follow_exec>: New member.
1994 (target_follow_exec): Declare new function.
1995
669e74e8
PL
19962015-09-11 Pierre Langlois <pierre.langlois@arm.com>
1997
1998 * aarch64-tdep.c (decode_cb): Move up comment describing the
1999 encoding.
2000 (decode_tb): Fix a typo in comment above the function. Move up
2001 comment describing the encoding.
2002
4d50586d
PL
20032015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2004
2005 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2006
6dcaef99
MMN
20072015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2008
2009 PR gdb/18947
2010 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2011 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2012
5da1a4d3
SM
20132015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2014
2015 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2016 operations.
2017
108d56a4
SM
20182015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2019
2020 * ada-lang.c (ada_search_struct_field): Constify parameters
2021 and/or variables..
2022 (xget_renaming_scope): Likewise.
2023 (ada_is_redundant_range_encoding): Likewise.
2024 (scan_discrim_bound): Likewise.
2025 (to_fixed_range_type): Likewise.
2026
dd2e65cc
YQ
20272015-09-10 Yao Qi <yao.qi@linaro.org>
2028
2029 * breakpoint.c (download_tracepoint_locations): New local
2030 can_download_tracepoint. Check the result of
2031 target_can_download_tracepoint and save it in
2032 can_download_tracepoint if there are tracepoints to download.
2033 * linux-nat.h (enum tribool): Move it to ...
2034 * common/common-types.h: ... here.
2035
cfe75703
PA
20362015-09-09 Pedro Alves <palves@redhat.com>
2037
2038 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2039 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2040
a85a3079
PA
20412015-09-09 Pedro Alves <palves@redhat.com>
2042
2043 * continuations.c (add_continuation, restore_thread_cleanup)
2044 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2045 (do_all_continuations_thread, do_all_continuations)
2046 (discard_all_continuations_thread_callback)
2047 (discard_all_continuations_thread, discard_all_continuations)
2048 (add_intermediate_continuation)
2049 (do_all_intermediate_continuations_thread_callback)
2050 (do_all_intermediate_continuations_thread)
2051 (do_all_intermediate_continuations)
2052 (discard_all_intermediate_continuations_thread_callback)
2053 (discard_all_intermediate_continuations_thread)
2054 (discard_all_intermediate_continuations): Delete.
2055 * continuations.h (add_continuation, do_all_continuations)
2056 (do_all_continuations_thread, discard_all_continuations)
2057 (discard_all_continuations_thread, add_intermediate_continuation)
2058 (do_all_intermediate_continuations)
2059 (do_all_intermediate_continuations_thread)
2060 (discard_all_intermediate_continuations)
2061 (discard_all_intermediate_continuations_thread): Delete
2062 declarations.
2063 * event-top.c (stdin_event_handler): Delete references to
2064 continuations.
2065 * gdbthread.h (struct thread_info): Delete continuations and
2066 intermediate_continuations fields.
2067 * inf-loop.c (inferior_event_handler): Remove references to
2068 continuations.
2069 * infrun.c (infrun_thread_stop_requested_callback): Remove
2070 references to continuations.
2071 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2072 * thread.c: Don't include "continuations.h".
2073 (clear_thread_inferior_resources): Remove references to
2074 continuations.
2075
0700e23e
PA
20762015-09-09 Pedro Alves <palves@redhat.com>
2077
2078 * infcall.c (struct dummy_frame_context_saver): Delete.
2079 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2080 (dummy_frame_context_saver_drop)
2081 (dummy_frame_context_saver_cleanup)
2082 (dummy_frame_context_saver_get_regs)
2083 (dummy_frame_context_saver_setup): Delete.
2084 * infcall.h (dummy_frame_context_saver_drop)
2085 (dummy_frame_context_saver_cleanup)
2086 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2087 Delete.
2088 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2089 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2090 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2091
cfc31633
PA
20922015-09-09 Pedro Alves <palves@redhat.com>
2093
2094 * breakpoint.c: Include "thread-fsm.h".
2095 (struct until_break_command_continuation_args): Delete.
2096 (struct until_break_fsm): New.
2097 (until_break_fsm_ops): New global.
2098 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2099 (until_break_command_continuation): Delete.
2100 (until_break_fsm_clean_up): New function.
2101 (until_break_fsm_async_reply_reason): New function.
2102 (until_break_command): Adjust to create an until_break_fsm instead
2103 of a continuation.
2104 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2105 here.
2106 * infcmd.c (struct until_next_fsm): New.
2107 (until_next_fsm_ops): New global.
2108 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2109 (until_next_continuation): Delete.
2110 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2111 functions.
2112 (until_next_command): Adjust to create a new until_next_fsm
2113 instead of a continuation.
2114
388a7084
PA
21152015-09-09 Pedro Alves <palves@redhat.com>
2116
2117 * infcall.c: Include thread_fsm.h.
2118 (struct call_return_meta_info): New.
2119 (get_call_return_value): New function, factored out from
2120 call_function_by_hand_dummy.
2121 (struct call_thread_fsm): New.
2122 (call_thread_fsm_ops): New global.
2123 (new_call_thread_fsm, call_thread_fsm_should_stop)
2124 (call_thread_fsm_should_notify_stop): New functions.
2125 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2126 the thread.
2127 (call_function_by_hand_dummy): Create a new call_thread_fsm
2128 instance, associate it with the thread, and wait for the FSM to
2129 finish. If finished successfully, fetch the function's result
2130 value out of the FSM.
2131 * infrun.c (fetch_inferior_event): If the FSM says the stop
2132 shouldn't be notified, don't call normal_stop.
2133 (maybe_remove_breakpoints): New function, factored out from ...
2134 (normal_stop): ... here. Simplify.
2135 * infrun.h (maybe_remove_breakpoints): Declare.
2136 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2137 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2138 (thread_fsm_should_notify_stop): Declare.
2139
243a9253
PA
21402015-09-09 Pedro Alves <palves@redhat.com>
2141
2142 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2143 * breakpoint.c (handle_jit_event): Print debug output.
2144 (bpstat_what): Split event callback handling to ...
2145 (bpstat_run_callbacks): ... this new function.
2146 (momentary_bkpt_print_it): No longer handle bp_finish here.
2147 * breakpoint.h (bpstat_run_callbacks): Declare.
2148 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2149 <thread_fsm>: New field.
2150 (thread_cancel_execution_command): Declare.
2151 * infcmd.c: Include thread-fsm.h.
2152 (struct step_command_fsm): New.
2153 (step_command_fsm_ops): New global.
2154 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2155 (step_1): Adjust to use step_command_fsm_prepare and
2156 prepare_one_step.
2157 (struct step_1_continuation_args): Delete.
2158 (step_1_continuation): Delete.
2159 (step_command_fsm_should_stop): New function.
2160 (step_once): Delete.
2161 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2162 (prepare_one_step): New function, based on step_once.
2163 (until_next_command): Remove step_multi reference.
2164 (struct return_value_info): New.
2165 (print_return_value): Rename to ...
2166 (print_return_value_1): ... this. New struct return_value_info
2167 parameter. Adjust.
2168 (print_return_value): Reimplement as wrapper around
2169 print_return_value_1.
2170 (struct finish_command_fsm): New.
2171 (finish_command_continuation): Delete.
2172 (finish_command_fsm_ops): New global.
2173 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2174 functions.
2175 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2176 New.
2177 (finish_command_continuation_free_arg): Delete.
2178 (finish_command_fsm_async_reply_reason): New.
2179 (finish_backward, finish_forward): Change symbol parameter to a
2180 finish_command_fsm. Adjust.
2181 (finish_command): Create a finish_command_fsm. Adjust.
2182 * infrun.c: Include "thread-fsm.h".
2183 (clear_proceed_status_thread): Delete the thread's FSM.
2184 (infrun_thread_stop_requested_callback): Cancel the thread's
2185 execution command.
2186 (clean_up_just_stopped_threads_fsms): New function.
2187 (fetch_inferior_event): Handle the event_thread's should_stop
2188 method saying the command isn't done yet.
2189 (process_event_stop_test): Run breakpoint callbacks here.
2190 (print_stop_event): Rename to ...
2191 (print_stop_location): ... this.
2192 (restore_current_uiout_cleanup): New function.
2193 (print_stop_event): Reimplement.
2194 (normal_stop): No longer notify the end_stepping_range observers
2195 here handle "step N" nor "finish" here. No longer call
2196 print_stop_event here.
2197 * infrun.h (struct return_value_info): Forward declare.
2198 (print_return_value): Declare.
2199 (print_stop_event): Change prototype.
2200 * thread-fsm.c: New file.
2201 * thread-fsm.h: New file.
2202 * thread.c: Include "thread-fsm.h".
2203 (thread_cancel_execution_command): New function.
2204 (clear_thread_inferior_resources): Call it.
2205 * cli/cli-interp.c (cli_on_normal_stop): New function.
2206 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2207 observer.
2208 * mi/mi-interp.c: Include "thread-fsm.h".
2209 (restore_current_uiout_cleanup): Delete.
2210 (mi_on_normal_stop): If the thread has an FSM associated, and it
2211 finished, ask it for the async-reply-reason to print. Always call
2212 print_stop_event here, regardless of the top-level interpreter.
2213 Check bpstat_what to tell whether an asynchronous breakpoint hit
2214 triggered.
2215 * tui/tui-interp.c (tui_on_normal_stop): New function.
2216 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2217
0b333c5e
PA
22182015-09-09 Pedro Alves <palves@redhat.com>
2219
2220 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2221 check whether the target can async.
2222 * inf-loop.c (inferior_event_handler): Only call target_async if
2223 the target can async.
2224 * infcall.c: Include top.h and interps.h.
2225 (run_inferior_call): For the interpreter to sync mode while
2226 running the infcall. Call wait_sync_command_done instead of
2227 wait_for_inferior plus normal_stop.
2228 * infcmd.c (prepare_execution_command): Don't check whether the
2229 target can async when running in the foreground.
2230 (step_1): Delete synchronous case handling.
2231 (step_once): Always install a continuation, even in sync mode.
2232 (until_next_command, finish_forward): Don't check whether the
2233 target can async.
2234 (attach_command_post_wait, notice_new_inferior): Always install a
2235 continuation, even in sync mode.
2236 * infrun.c (mark_infrun_async_event_handler): New function.
2237 (proceed): In sync mode, mark infrun's event source instead of
2238 waiting for events here.
2239 (fetch_inferior_event): If the target can't async, do a blocking
2240 wait.
2241 (prepare_to_wait): In sync mode, mark infrun's event source.
2242 (infrun_async_inferior_event_handler): No longer bail out if the
2243 target can't async.
2244 * infrun.h (mark_infrun_async_event_handler): New declaration.
2245 * linux-nat.c (linux_nat_wait_1): Remove calls to
2246 set_sigint_trap/clear_sigint_trap.
2247 (linux_nat_terminal_inferior): No longer check whether the target
2248 can async.
2249 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2250 comment.
2251 (mi_execute_command_input_handler): No longer check whether the
2252 target is async. Update and simplify comment.
2253 * target.c (default_target_wait): New function.
2254 * target.h (struct target_ops) <to_wait>: Now defaults to
2255 default_target_wait.
2256 (default_target_wait): Declare.
2257 * top.c (wait_sync_command_done): New function, factored out from
2258 ...
2259 (maybe_wait_sync_command_done): ... this.
2260 * top.h (wait_sync_command_done): Declare.
2261 * target-delegates.c: Regenerate.
2262
0568462b
MM
22632015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2264
2265 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2266 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2267 Remove include of sys/utsname.h.
2268 (linux_determine_kernel_ptr_bits): Remove.
2269 (linux_determine_kernel_start): New.
2270 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2271 Update check.
2272 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2273 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2274 initialization.
2275 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2276 assignment.
2277
72e02483
PA
22782015-09-07 Pedro Alves <palves@redhat.com>
2279
2280 * guile/guile-internal.h (as_a_scm_t_subr): New.
2281 * guile/guile.c (misc_guile_functions): Use it.
2282 * guile/scm-arch.c (arch_functions): Use it.
2283 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2284 Use it.
2285 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2286 * guile/scm-cmd.c (command_functions): Use it.
2287 * guile/scm-disasm.c (disasm_functions): Use it.
2288 * guile/scm-exception.c (exception_functions)
2289 (private_exception_functions): Use it.
2290 * guile/scm-frame.c (frame_functions)
2291 * guile/scm-gsmob.c (gsmob_functions): Use it.
2292 * guile/scm-iterator.c (iterator_functions): Use it.
2293 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2294 * guile/scm-math.c (math_functions): Use it.
2295 * guile/scm-objfile.c (objfile_functions): Use it.
2296 * guile/scm-param.c (parameter_functions): Use it.
2297 * guile/scm-ports.c (port_functions, private_port_functions): Use
2298 it.
2299 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2300 * guile/scm-progspace.c (pspace_functions): Use it.
2301 * guile/scm-string.c (string_functions): Use it.
2302 * guile/scm-symbol.c (symbol_functions): Use it.
2303 * guile/scm-symtab.c (symtab_functions): Use it.
2304 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2305 it.
2306 * guile/scm-value.c (value_functions): Use it.
2307
e65b5245
AB
23082015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2309
2310 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2311 (tui_next_win): Likewise.
2312 (tui_prev_win): Likewise.
2313 (tui_partial_win_by_name): Likewise.
2314 (tui_init_generic_part): Likewise.
2315 (init_content_element): Likewise.
2316 (tui_del_window): Likewise.
2317 (tui_free_window): Likewise.
2318 (tui_del_data_windows): Likewise.
2319 (tui_free_data_content): Likewise.
2320 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2321 * tui/tui-regs.c (tui_show_register_group): Likewise.
2322 * tui/tui-win.c (tui_resize_all): Likewise.
2323 (tui_set_focus): Likewise.
2324 (tui_set_win_height): Likewise.
2325 (make_invisible_and_set_new_height): Likewise.
2326 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2327 * tui/tui-wingeneral.c (make_visible): Likewise.
2328
b03e6ad9
AB
23292015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2330
2331 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2332
be903358
AB
23332015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2334
2335 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2336 pointer.
2337 * dbxread.c (dbx_end_psymtab): Likewise.
2338 * gnu-nat.c (gnu_write_inferior): Likewise.
2339 * mdebugread.c (cross_ref): Likewise.
2340 * p-valprint.c (pascal_val_print): Likewise.
2341 * xcoffread.c (xcoff_end_psymtab): Likewise.
2342
02f024f9
YQ
23432015-09-04 Yao Qi <yao.qi@linaro.org>
2344
2345 * NEWS: Mention the aarch64 multi-arch debugging support.
2346
cd7c1778
PMR
23472015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2348
2349 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2350 type instead of a TYPE_CODE_INT one for the string_char_type
2351 and the ada_primitive_type_char types.
2352
39edd165
YQ
23532015-09-03 Yao Qi <yao.qi@linaro.org>
2354
2355 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2356 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2357 aarch64_linux_region_ok_for_watchpoint.
2358 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2359 New function.
2360 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2361 Declare it.
2362
6c214e7c
PP
23632015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2364
2365 * gdb_obstack.h (obstack_strdup): Declare.
2366 * gdb_obstack.c (obstack_strdup): Define.
2367 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2368 * gdbarch.c: Regenerate.
2369 * gdbarch.h: Regenerate.
2370 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2371
eed8b28a
PP
23722015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2373
2374 * gdbtypes.c (copy_type_recursive): Update documentation.
2375
73c6b475
SDJ
23762015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2377
2378 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2379 as zero.
2380
ad1c917a
SDJ
23812015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2382
2383 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2384
3bd7e5b7
SDJ
23852015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2386
2387 * solib-svr4.c (solib_event_probe_action): Call
2388 get_probe_argument_count using TRY...CATCH.
2389 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2390
f469e8ce
SDJ
23912015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2392
2393 * probe.h (struct probe_ops) <get_probe_argument_count,
2394 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2395 the comment that the function can throw an exception.
2396 (get_probe_argument_count): Likewise.
2397 (evaluate_probe_argument): Likewise.
2398 * stap-probe.c (stap_get_opcode): Call error instead of
2399 internal_error.
2400 (stap_get_expected_argument_type): Likewise. Add argument
2401 'probe'. Improve error message by mentioning the probe's name.
2402 (stap_parse_probe_arguments): Adjust call to
2403 stap_get_expected_argument_type.
2404 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2405 not zero. Call internal_error if GDB requests an argument but the
2406 probe has no arguments.
2407
dc5c8746
PMR
24082015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2409
2410 * ada-lang.c (ada_resolve_function): Do not ask the user what
2411 match to use when in completion mode.
2412
136765ea
AB
24132015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2414
2415 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2416 cast of NULL.
2417
90b81c5f
MF
24182015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2419
2420 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2421 call_abi using XSHAL_ABI macro.
2422
1cd36e54
DE
24232015-08-29 Doug Evans <xdje42@gmail.com>
2424
2425 * symtab.h (struct symbol): Tweak comment.
2426
8f57eec2
PP
24272015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2428
2429 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2430 gdbarch obstack instead of on the heap. Update commentary
2431 accordingly.
2432
38eebd71
JB
24332015-08-28 Joel Brobecker <brobecker@adacore.com>
2434
2435 GDB 7.10 released.
2436
d63dd61e
SM
24372015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2438
2439 * NEWS: Update entry about non-8-bits addressable memory.
2440
6f059256
UW
24412015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2442
2443 Revert:
2444 2014-11-06 Doug Evans <xdje42@gmail.com>
2445 * solib.c (solib_global_lookup): Fetch arch from objfile,
2446 not target_gdbarch.
2447
70987a92 24482015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
2449
2450 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2451 attempt to relocate a TLS variable offset.
2452
70987a92 24532015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
2454
2455 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2456 registered yet. Set inferior_ptid while calling target_read_memory.
2457
70987a92 24582015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
2459
2460 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2461 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2462 * linux-nat.c (check_stopped_by_breakpoint): Use
2463 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2464
70987a92 24652015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
2466
2467 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2468 thread was not yet discovered, use thread_from_lwp instead of
2469 calling thread_db_find_new_threads_1.
2470
f5cdf498
SM
24712015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2472
2473 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2474 statements.
2475
fd2ae5d6
SM
24762015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2477
2478 * NEWS: Document support for non-8-bits addressable memory.
2479
14d88147
PA
24802015-08-27 Pedro Alves <palves@redhat.com>
2481
2482 * configure.ac: Remove AC_TYPE_SIGNAL call.
2483 * configure, config.in: Regenerate.
2484
a40805d4
PA
24852015-08-27 Pedro Alves <palves@redhat.com>
2486
2487 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2488 * extension-priv.h: Include signal.h.
2489 (struct signal_handler) <handler>: Change type to sighandler_t.
2490 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2491 * inflow.c (sigint_ours, sigquit_ours): Change type to
2492 sighandler_t.
2493 (child_terminal_inferior): Remove casts.
2494 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2495 (osig): Change type to sighandler_t.
2496 * nto-procfs.c (ofunc): Change type to sighandler_t.
2497 (procfs_wait): Remove casts.
2498 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2499 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2500 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2501
0750520d
PA
25022015-08-27 Pedro Alves <palves@redhat.com>
2503
2504 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2505 * gnulib/aclocal.m4: Renegerate.
2506 * gnulib/config.in: Renegerate.
2507 * gnulib/configure: Renegerate.
2508 * gnulib/import/Makefile.am: Update.
2509 * gnulib/import/Makefile.in: Regenerate.
2510 * gnulib/import/m4/gnulib-cache.m4: Update.
2511 * gnulib/import/m4/gnulib-comp.m4: Update.
2512 * gnulib/import/m4/signal_h.m4: New file.
2513 * gnulib/import/signal.in.h: New file.
2514
a5c0808e
PA
25152015-08-27 Pedro Alves <palves@redhat.com>
2516
2517 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2518 (MIN_MEMORY_PACKET_SIZE): New.
2519 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2520 (get_memory_packet_size): Adjust. No longer limit the max packet
2521 size.
2522 (set_memory_packet_size): Adjust, and remove dead code.
2523 (remote_check_symbols): Use xmalloc and a cleanup instead of
2524 alloca.
2525 (remote_packet_size): No longer cap the packet size.
2526 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2527
cdaec3f3
LM
25282015-08-26 Luis Machado <lgustavo@codesourcery.com>
2529
2530 * compile/compile.c (compile_to_object): Mention language in
2531 error message.
2532
e9756d52
PP
25332015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2534
2535 * target.c (target_pre_inferior): Unset attach_flag.
2536
1dc7a623
SM
25372015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2538
2539 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2540 * gdbarch.c: Re-generate.
2541
8d749320
SM
25422015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2543
6711b7f8
SM
2544 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2545 function with the XNEW-family equivalent.
8d749320
SM
2546 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2547 * ada-exp.y (write_ambiguous_var): Likewise.
2548 * ada-lang.c (resolve_subexp): Likewise.
2549 (user_select_syms): Likewise.
2550 (assign_aggregate): Likewise.
2551 (ada_evaluate_subexp): Likewise.
2552 (cache_symbol): Likewise.
2553 * addrmap.c (allocate_key): Likewise.
2554 (addrmap_create_mutable): Likewise.
2555 * aix-thread.c (sync_threadlists): Likewise.
2556 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2557 (alpha_gdbarch_init): Likewise.
2558 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2559 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2560 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2561 * arm-tdep.c (push_stack_item): Likewise.
2562 (arm_displaced_step_copy_insn): Likewise.
2563 (arm_gdbarch_init): Likewise.
2564 (_initialize_arm_tdep): Likewise.
2565 * avr-tdep.c (push_stack_item): Likewise.
2566 * ax-general.c (new_agent_expr): Likewise.
2567 * block.c (block_initialize_namespace): Likewise.
2568 * breakpoint.c (alloc_counted_command_line): Likewise.
2569 (update_dprintf_command_list): Likewise.
2570 (parse_breakpoint_sals): Likewise.
2571 (decode_static_tracepoint_spec): Likewise.
2572 (until_break_command): Likewise.
2573 (clear_command): Likewise.
2574 (update_global_location_list): Likewise.
2575 (get_breakpoint_objfile_data) Likewise.
2576 * btrace.c (ftrace_new_function): Likewise.
2577 (btrace_set_insn_history): Likewise.
2578 (btrace_set_call_history): Likewise.
2579 * buildsym.c (add_symbol_to_list): Likewise.
2580 (record_pending_block): Likewise.
2581 (start_subfile): Likewise.
2582 (start_buildsym_compunit): Likewise.
2583 (push_subfile): Likewise.
2584 (end_symtab_get_static_block): Likewise.
2585 (buildsym_init): Likewise.
2586 * cli/cli-cmds.c (source_command): Likewise.
2587 * cli/cli-decode.c (add_cmd): Likewise.
2588 * cli/cli-script.c (build_command_line): Likewise.
2589 (setup_user_args): Likewise.
2590 (realloc_body_list): Likewise.
2591 (process_next_line): Likewise.
2592 (copy_command_lines): Likewise.
2593 * cli/cli-setshow.c (do_set_command): Likewise.
2594 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2595 * coffread.c (coff_locate_sections): Likewise.
2596 (coff_symtab_read): Likewise.
2597 (coff_read_struct_type): Likewise.
2598 * common/cleanups.c (make_my_cleanup2): Likewise.
2599 * common/common-exceptions.c (throw_it): Likewise.
2600 * common/filestuff.c (make_cleanup_close): Likewise.
2601 * common/format.c (parse_format_string): Likewise.
2602 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2603 * compile/compile-object-load.c (munmap_list_add): Likewise.
2604 (compile_object_load): Likewise.
2605 * compile/compile-object-run.c (compile_object_run): Likewise.
2606 * compile/compile.c (append_args): Likewise.
2607 * corefile.c (specify_exec_file_hook): Likewise.
2608 * cp-support.c (make_symbol_overload_list): Likewise.
2609 * cris-tdep.c (push_stack_item): Likewise.
2610 (cris_gdbarch_init): Likewise.
2611 * ctf.c (ctf_trace_file_writer_new): Likewise.
2612 * dbxread.c (init_header_files): Likewise.
2613 (add_new_header_file): Likewise.
2614 (init_bincl_list): Likewise.
2615 (dbx_end_psymtab): Likewise.
2616 (start_psymtab): Likewise.
2617 (dbx_end_psymtab): Likewise.
2618 * dcache.c (dcache_init): Likewise.
2619 * dictionary.c (dict_create_hashed): Likewise.
2620 (dict_create_hashed_expandable): Likewise.
2621 (dict_create_linear): Likewise.
2622 (dict_create_linear_expandable): Likewise.
2623 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2624 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2625 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2626 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2627 (decode_frame_entry_1): Likewise.
2628 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2629 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2630 * dwarf2read.c (dwarf2_has_info): Likewise.
2631 (create_signatured_type_table_from_index): Likewise.
2632 (dwarf2_read_index): Likewise.
2633 (dw2_get_file_names_reader): Likewise.
2634 (create_all_type_units): Likewise.
2635 (read_cutu_die_from_dwo): Likewise.
2636 (init_tu_and_read_dwo_dies): Likewise.
2637 (init_cutu_and_read_dies): Likewise.
2638 (create_all_comp_units): Likewise.
2639 (queue_comp_unit): Likewise.
2640 (inherit_abstract_dies): Likewise.
2641 (read_call_site_scope): Likewise.
2642 (dwarf2_add_field): Likewise.
2643 (dwarf2_add_typedef): Likewise.
2644 (dwarf2_add_member_fn): Likewise.
2645 (attr_to_dynamic_prop): Likewise.
2646 (abbrev_table_alloc_abbrev): Likewise.
2647 (abbrev_table_read_table): Likewise.
2648 (add_include_dir): Likewise.
2649 (add_file_name): Likewise.
2650 (dwarf_decode_line_header): Likewise.
2651 (dwarf2_const_value_attr): Likewise.
2652 (dwarf_alloc_block): Likewise.
2653 (parse_macro_definition): Likewise.
2654 (set_die_type): Likewise.
2655 (write_psymtabs_to_index): Likewise.
2656 (create_cus_from_index): Likewise.
2657 (dwarf2_create_include_psymtab): Likewise.
2658 (process_psymtab_comp_unit_reader): Likewise.
2659 (build_type_psymtab_dependencies): Likewise.
2660 (read_comp_units_from_section): Likewise.
2661 (compute_compunit_symtab_includes): Likewise.
2662 (create_dwo_unit_in_dwp_v1): Likewise.
2663 (create_dwo_unit_in_dwp_v2): Likewise.
2664 (read_func_scope): Likewise.
2665 (process_structure_scope): Likewise.
2666 (mark_common_block_symbol_computed): Likewise.
2667 (load_partial_dies): Likewise.
2668 (dwarf2_symbol_mark_computed): Likewise.
2669 * elfread.c (elf_symfile_segments): Likewise.
2670 (elf_read_minimal_symbols): Likewise.
2671 * environ.c (make_environ): Likewise.
2672 * eval.c (evaluate_subexp_standard): Likewise.
2673 * event-loop.c (create_file_handler): Likewise.
2674 (create_async_signal_handler): Likewise.
2675 (create_async_event_handler): Likewise.
2676 (create_timer): Likewise.
2677 * exec.c (build_section_table): Likewise.
2678 * fbsd-nat.c (fbsd_remember_child): Likewise.
2679 * fork-child.c (fork_inferior): Likewise.
2680 * frv-tdep.c (new_variant): Likewise.
2681 * gdbarch.sh (gdbarch_alloc): Likewise.
2682 (append_name): Likewise.
2683 * gdbtypes.c (rank_function): Likewise.
2684 (copy_type_recursive): Likewise.
2685 (add_dyn_prop): Likewise.
2686 * gnu-nat.c (make_proc): Likewise.
2687 (make_inf): Likewise.
2688 (gnu_write_inferior): Likewise.
2689 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2690 (build_std_type_info_type): Likewise.
2691 * guile/scm-param.c (compute_enum_list): Likewise.
2692 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2693 * guile/scm-value.c (gdbscm_value_call): Likewise.
2694 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2695 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2696 (read_unwind_info): Likewise.
2697 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2698 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2699 (call_function_by_hand_dummy): Likewise.
2700 * infcmd.c (step_once): Likewise.
2701 (finish_forward): Likewise.
2702 (attach_command): Likewise.
2703 (notice_new_inferior): Likewise.
2704 * inferior.c (add_inferior_silent): Likewise.
2705 * infrun.c (add_displaced_stepping_state): Likewise.
2706 (save_infcall_control_state): Likewise.
2707 (save_inferior_ptid): Likewise.
2708 (_initialize_infrun): Likewise.
2709 * jit.c (bfd_open_from_target_memory): Likewise.
2710 (jit_gdbarch_data_init): Likewise.
2711 * language.c (add_language): Likewise.
2712 * linespec.c (decode_line_2): Likewise.
2713 * linux-nat.c (add_to_pid_list): Likewise.
2714 (add_initial_lwp): Likewise.
2715 * linux-thread-db.c (add_thread_db_info): Likewise.
2716 (record_thread): Likewise.
2717 (info_auto_load_libthread_db): Likewise.
2718 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2719 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2720 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2721 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2722 * macrocmd.c (macro_define_command): Likewise.
2723 * macroexp.c (gather_arguments): Likewise.
2724 * macroscope.c (sal_macro_scope): Likewise.
2725 * macrotab.c (new_macro_table): Likewise.
2726 * mdebugread.c (push_parse_stack): Likewise.
2727 (parse_partial_symbols): Likewise.
2728 (parse_symbol): Likewise.
2729 (psymtab_to_symtab_1): Likewise.
2730 (new_block): Likewise.
2731 (new_psymtab): Likewise.
2732 (mdebug_build_psymtabs): Likewise.
2733 (add_pending): Likewise.
2734 (elfmdebug_build_psymtabs): Likewise.
2735 * mep-tdep.c (mep_gdbarch_init): Likewise.
2736 * mi/mi-main.c (mi_execute_command): Likewise.
2737 * mi/mi-parse.c (mi_parse_argv): Likewise.
2738 * minidebug.c (lzma_open): Likewise.
2739 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2740 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2741 * mips-tdep.c (mips_gdbarch_init): Likewise.
2742 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2743 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2744 * mt-tdep.c (mt_registers_info): Likewise.
2745 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2746 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2747 (linux_enable_pt): Likewise.
2748 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2749 (linux_xfer_osdata_processgroups): Likewise.
2750 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2751 * nto-procfs.c (procfs_meminfo): Likewise.
2752 * objc-lang.c (start_msglist): Likewise.
2753 (selectors_info): Likewise.
2754 (classes_info): Likewise.
2755 (find_methods): Likewise.
2756 * objfiles.c (allocate_objfile): Likewise.
2757 (update_section_map): Likewise.
2758 * osabi.c (gdbarch_register_osabi): Likewise.
2759 (gdbarch_register_osabi_sniffer): Likewise.
2760 * parse.c (start_arglist): Likewise.
2761 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2762 (hwdebug_insert_point): Likewise.
2763 * printcmd.c (display_command): Likewise.
2764 (ui_printf): Likewise.
2765 * procfs.c (create_procinfo): Likewise.
2766 (load_syscalls): Likewise.
2767 (proc_get_LDT_entry): Likewise.
2768 (proc_update_threads): Likewise.
2769 * prologue-value.c (make_pv_area): Likewise.
2770 (pv_area_store): Likewise.
2771 * psymtab.c (extend_psymbol_list): Likewise.
2772 (init_psymbol_list): Likewise.
2773 (allocate_psymtab): Likewise.
2774 * python/py-inferior.c (add_thread_object): Likewise.
2775 * python/py-param.c (compute_enum_values): Likewise.
2776 * python/py-value.c (valpy_call): Likewise.
2777 * python/py-varobj.c (py_varobj_iter_next): Likewise.
2778 * python/python.c (ensure_python_env): Likewise.
2779 * record-btrace.c (record_btrace_start_replaying): Likewise.
2780 * record-full.c (record_full_reg_alloc): Likewise.
2781 (record_full_mem_alloc): Likewise.
2782 (record_full_end_alloc): Likewise.
2783 (record_full_core_xfer_partial): Likewise.
2784 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2785 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2786 * remote-notif.c (remote_notif_state_allocate): Likewise.
2787 * remote.c (demand_private_info): Likewise.
2788 (remote_notif_stop_alloc_reply): Likewise.
2789 (remote_enable_btrace): Likewise.
2790 * reverse.c (save_bookmark_command): Likewise.
2791 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2792 * rx-tdep.c (rx_gdbarch_init): Likewise.
2793 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2794 * ser-go32.c (dos_get_tty_state): Likewise.
2795 (dos_copy_tty_state): Likewise.
2796 * ser-mingw.c (ser_windows_open): Likewise.
2797 (ser_console_wait_handle): Likewise.
2798 (ser_console_get_tty_state): Likewise.
2799 (make_pipe_state): Likewise.
2800 (net_windows_open): Likewise.
2801 * ser-unix.c (hardwire_get_tty_state): Likewise.
2802 (hardwire_copy_tty_state): Likewise.
2803 * solib-aix.c (solib_aix_new_lm_info): Likewise.
2804 * solib-dsbt.c (dsbt_current_sos): Likewise.
2805 (dsbt_relocate_main_executable): Likewise.
2806 * solib-frv.c (frv_current_sos): Likewise.
2807 (frv_relocate_main_executable): Likewise.
2808 * solib-spu.c (spu_bfd_fopen): Likewise.
2809 * solib-svr4.c (lm_info_read): Likewise.
2810 (svr4_copy_library_list): Likewise.
2811 (svr4_default_sos): Likewise.
2812 * source.c (find_source_lines): Likewise.
2813 (line_info): Likewise.
2814 (add_substitute_path_rule): Likewise.
2815 * spu-linux-nat.c (spu_bfd_open): Likewise.
2816 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2817 * stabsread.c (dbx_lookup_type): Likewise.
2818 (read_type): Likewise.
2819 (read_member_functions): Likewise.
2820 (read_struct_fields): Likewise.
2821 (read_baseclasses): Likewise.
2822 (read_args): Likewise.
2823 (_initialize_stabsread): Likewise.
2824 * stack.c (func_command): Likewise.
2825 * stap-probe.c (handle_stap_probe): Likewise.
2826 * symfile.c (addrs_section_sort): Likewise.
2827 (addr_info_make_relative): Likewise.
2828 (load_section_callback): Likewise.
2829 (add_symbol_file_command): Likewise.
2830 (init_filename_language_table): Likewise.
2831 * symtab.c (create_filename_seen_cache): Likewise.
2832 (sort_search_symbols_remove_dups): Likewise.
2833 (search_symbols): Likewise.
2834 * target.c (make_cleanup_restore_target_terminal): Likewise.
2835 * thread.c (new_thread): Likewise.
2836 (enable_thread_stack_temporaries): Likewise.
2837 (make_cleanup_restore_current_thread): Likewise.
2838 (thread_apply_all_command): Likewise.
2839 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2840 * top.c (gdb_readline_wrapper): Likewise.
2841 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2842 * tracepoint.c (trace_find_line_command): Likewise.
2843 (all_tracepoint_actions_and_cleanup): Likewise.
2844 (make_cleanup_restore_current_traceframe): Likewise.
2845 (get_uploaded_tp): Likewise.
2846 (get_uploaded_tsv): Likewise.
2847 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2848 (tui_alloc_win_info): Likewise.
2849 (tui_alloc_content): Likewise.
2850 (tui_add_content_elements): Likewise.
2851 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
2852 (tui_set_disassem_content): Likewise.
2853 * ui-file.c (ui_file_new): Likewise.
2854 (stdio_file_new): Likewise.
2855 (tee_file_new): Likewise.
2856 * utils.c (make_cleanup_restore_integer): Likewise.
2857 (add_internal_problem_command): Likewise.
2858 * v850-tdep.c (v850_gdbarch_init): Likewise.
2859 * valops.c (find_oload_champ): Likewise.
2860 * value.c (allocate_value_lazy): Likewise.
2861 (record_latest_value): Likewise.
2862 (create_internalvar): Likewise.
2863 * varobj.c (install_variable): Likewise.
2864 (new_variable): Likewise.
2865 (new_root_variable): Likewise.
2866 (cppush): Likewise.
2867 (_initialize_varobj): Likewise.
2868 * windows-nat.c (windows_make_so): Likewise.
2869 * x86-nat.c (x86_add_process): Likewise.
2870 * xcoffread.c (arrange_linetable): Likewise.
2871 (allocate_include_entry): Likewise.
2872 (process_linenos): Likewise.
2873 (SYMBOL_DUP): Likewise.
2874 (xcoff_start_psymtab): Likewise.
2875 (xcoff_end_psymtab): Likewise.
2876 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
2877 * xtensa-tdep.c (xtensa_register_type): Likewise.
2878 * gdbarch.c: Regenerate.
2879 * gdbarch.h: Regenerate.
2880
17d8546e
DB
28812015-08-25 Don Breazeal <donb@codesourcery.com>
2882
2883 * infrun.c (follow_exec): Re-order operations for
2884 handling follow-exec-mode "new".
2885 (handle_inferior_event_1): Assign ecs->event_thread
2886 to the current thread.
2887 * remote.c (get_remote_arch_state): Add an assertion.
2888
ba49e44b
PA
28892015-08-26 Pedro Alves <palves@redhat.com>
2890
2891 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
2892
7541ab03 28932015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 2894
7541ab03 2895 PR gdb/18804
abc56d60
PA
2896 * defs.h (maybe_quit): Declare.
2897 (QUIT): Now calls maybe_quit.
2898 * event-loop.c (clear_async_signal_handler)
2899 (async_signal_handler_is_marked): New functions.
2900 * event-loop.h (async_signal_handler_is_marked)
2901 (clear_async_signal_handler): New declarations.
2902 * remote.c (remote_check_pending_interrupt): New function.
2903 (interrupt_query): Use make_cleanup_restore_target_terminal. No
2904 longer check whether the target is async. If waiting for a stop
2905 reply, and a Ctrl-C as been sent to the target, offer to
2906 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
2907 Otherwise do not disconnect and throw a quit.
2908 (_initialize_remote): Install remote_check_pending_interrupt as
2909 to_check_pending_interrupt.
2910 * target.c (target_check_pending_interrupt): New function.
2911 * target.h (struct target_ops) <to_check_pending_interrupt>: New
2912 field.
2913 (target_check_pending_interrupt): New declaration.
2914 * utils.c (maybe_quit): New function.
2915 * target-delegates.c: Regenerate.
2916
dfe7f77c
YQ
29172015-08-25 Yao Qi <yao.qi@linaro.org>
2918
2919 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
2920 Rename local variable pid to tid, and get lwpid of lwp. Update
2921 debug output.
2922
63e43d3a
PMR
29232015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
2924
2925 * ada-lang.c (ada_read_var_value): Add a var_block argument
2926 and pass it to default_read_var_value.
2927 * block.c (block_static_link): New accessor.
2928 * block.h (block_static_link): Declare it.
2929 * buildsym.c (finish_block_internal): Add a static_link
2930 argument. If there is a static link, associate it to the new
2931 block.
2932 (finish_block): Add a static link argument and pass it to
2933 finish_block_internal.
2934 (end_symtab_get_static_block): Update calls to finish_block and
2935 to finish_block_internal.
2936 (end_symtab_with_blockvector): Update call to
2937 finish_block_internal.
2938 * buildsym.h: Forward-declare struct dynamic_prop.
2939 (struct context_stack): Add a static_link field.
2940 (finish_block): Add a static link argument.
2941 * c-exp.y: Remove an obsolete comment (evaluation of variables
2942 already start from the selected frame, and now they climb *up*
2943 the call stack) and propagate the block information to the
2944 produced expression.
2945 * d-exp.y: Likewise.
2946 * f-exp.y: Likewise.
2947 * go-exp.y: Likewise.
2948 * jv-exp.y: Likewise.
2949 * m2-exp.y: Likewise.
2950 * p-exp.y: Likewise.
2951 * coffread.c (coff_symtab_read): Update calls to finish_block.
2952 * dbxread.c (process_one_symbol): Likewise.
2953 * xcoffread.c (read_xcoff_symtab): Likewise.
2954 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
2955 "sym" parameter to struct block_symbol, update its uses and pass
2956 its block to calls to read_var_value.
2957 (convert_symbol_sym): Update the calls to convert_one_symbol.
2958 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
2959 call to read_var_value.
2960 * dwarf2loc.c (block_op_get_frame_base): New.
2961 (dwarf2_block_frame_base_locexpr_funcs): Implement the
2962 get_frame_base method.
2963 (dwarf2_block_frame_base_loclist_funcs): Likewise.
2964 (dwarf2locexpr_baton_eval): Add a frame argument and use it
2965 instead of the selected frame in order to evaluate the
2966 expression.
2967 (dwarf2_evaluate_property): Add a frame argument. Update call
2968 to dwarf2_locexpr_baton_eval to provide a frame in available and
2969 to handle the absence of address stack.
2970 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
2971 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
2972 declaration.
2973 (read_func_scope): Record any available static link description.
2974 Update call to finish_block.
2975 (read_lexical_block_scope): Update call to finish_block.
2976 * findvar.c (follow_static_link): New.
2977 (get_hosting_frame): New.
2978 (default_read_var_value): Add a var_block argument. Use
2979 get_hosting_frame to handle non-local references.
2980 (read_var_value): Add a var_block argument and pass it to the
2981 LA_READ_VAR_VALUE method.
2982 * gdbtypes.c (resolve_dynamic_range): Update calls to
2983 dwarf2_evaluate_property.
2984 (resolve_dynamic_type_internal): Likewise.
2985 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
2986 read_var_value, passing it the block coming from symbol lookup.
2987 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
2988 read_var_value (TODO).
2989 * infcmd.c (finish_command_continuation): Update call to
2990 read_var_value, passing it the block coming from symbol lookup.
2991 * infrun.c (insert_exception_resume_breakpoint): Likewise.
2992 * language.h (struct language_defn): Add a var_block argument to
2993 the LA_READ_VAR_VALUE method.
2994 * objfiles.c (struct static_link_htab_entry): New.
2995 (static_link_htab_entry_hash): New.
2996 (static_link_htab_entry_eq): New.
2997 (objfile_register_static_link): New.
2998 (objfile_lookup_static_link): New.
2999 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3000 * objfiles.h: Include hashtab.h.
3001 (struct objfile): Add a static_links field.
3002 (objfile_register_static_link): New.
3003 (objfile_lookup_static_link): New.
3004 * printcmd.c (print_variable_and_value): Update call to
3005 read_var_value.
3006 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3007 * python/py-frame.c (frapy_read_var): Update call to
3008 read_var_value, passing it the block coming from symbol lookup.
3009 * python/py-framefilter.c (extract_sym): Add a sym_block
3010 parameter and set the pointed value to NULL (TODO).
3011 (enumerate_args): Update call to extract_sym.
3012 (enumerate_locals): Update calls to extract_sym and to
3013 read_var_value.
3014 * python/py-symbol.c (sympy_value): Update call to
3015 read_var_value (TODO).
3016 * stack.c (read_frame_local): Update call to read_var_value.
3017 (read_frame_arg): Likewise.
3018 (return_command): Likewise.
3019 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3020 method.
3021 (struct symbol): Add a block field.
3022 (SYMBOL_BLOCK): New accessor.
3023 * valops.c (value_of_variable): Remove frame/block handling and
3024 pass the block argument to read_var_value, which does this job
3025 now.
3026 (value_struct_elt_for_reference): Update calls to
3027 read_var_value.
3028 (value_of_this): Pass the block found to read_var_value.
3029 * value.h (read_var_value): Add a var_block argument.
3030 (default_read_var_value): Likewise.
3031
ed8b7b42
YQ
30322015-08-25 Yao Qi <yao.qi@linaro.org>
3033
3034 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3035 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3036 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3037
db3cb7cb
YQ
30382015-08-25 Yao Qi <yao.qi@linaro.org>
3039
3040 * Makefile.in (aarch64-liunx.o): New rule.
3041 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3042 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3043 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3044 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3045 extern.
3046 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3047 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3048 * nat/aarch64-linux.c: New file.
3049 * nat/aarch64-linux.h: New file.
3050
f6011a1c
YQ
30512015-08-25 Yao Qi <yao.qi@linaro.org>
3052
3053 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3054 lwp_arch_private_info and ptid_of_lwp.
3055
5e35436e
YQ
30562015-08-25 Yao Qi <yao.qi@linaro.org>
3057
3058 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3059 Move it to nat/aarch64-linux-hw-point.c.
3060 (debug_reg_change_callback): Likewise.
3061 (aarch64_notify_debug_reg_change): :Likewise.
3062 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3063 (aarch64_dr_update_callback_param): New.
3064 (debug_reg_change_callback): New function.
3065 (aarch64_notify_debug_reg_change): Likewise.
3066 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3067 Remove the declaration.
3068
4a8a7965
YQ
30692015-08-25 Yao Qi <yao.qi@linaro.org>
3070
3071 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3072 Call current_lwp_ptid.
3073
32a271ee
YQ
30742015-08-25 Yao Qi <yao.qi@linaro.org>
3075
3076 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3077 debug_printf.
3078
5e137137
YQ
30792015-08-25 Yao Qi <yao.qi@linaro.org>
3080
3081 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3082 ptid_get_pid rather than ptid_get_lwp.
3083
73b8c1fd
PA
30842015-08-24 Pedro Alves <palves@redhat.com>
3085
3086 * NEWS (New commands): Mention set/show remote
3087 multiprocess-extensions-packet.
3088 * remote.c (remote_query_supported): Only tell the server to use
3089 the multiprocess extensions if the user hasn't force-disabled them
3090 with "set remote multiprocess-extensions-packet off".
3091
4a626d0a
PA
30922015-08-24 Pedro Alves <palves@redhat.com>
3093
3094 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3095 1029a8112290f6eee9d7878a391c49db42c999bd.
3096 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3097 Regenerate.
3098 * gnulib/import/Makefile.am: Update.
3099 * gnulib/import/Makefile.in: Update.
3100 * gnulib/import/alloca.in.h: Update.
3101 * gnulib/import/basename-lgpl.c: Update.
3102 * gnulib/import/canonicalize-lgpl.c: Update.
3103 * gnulib/import/config.charset: Update.
3104 * gnulib/import/dirent.in.h: Update.
3105 * gnulib/import/dirfd.c: Update.
3106 * gnulib/import/dirname-lgpl.c: Update.
3107 * gnulib/import/dirname.h: Update.
3108 * gnulib/import/dosname.h: Update.
3109 * gnulib/import/errno.in.h: Update.
3110 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3111 * gnulib/import/extra/snippet/c++defs.h: Update.
3112 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3113 * gnulib/import/extra/update-copyright: Update.
3114 * gnulib/import/float+.h: Update.
3115 * gnulib/import/float.c: Update.
3116 * gnulib/import/float.in.h: Update.
3117 * gnulib/import/fnmatch.c: Update.
3118 * gnulib/import/fnmatch.in.h: Update.
3119 * gnulib/import/fnmatch_loop.c: Update.
3120 * gnulib/import/fpucw.h: Update.
3121 * gnulib/import/frexp.c: Update.
3122 * gnulib/import/frexpl.c: Update.
3123 * gnulib/import/gettimeofday.c: Update.
3124 * gnulib/import/inttypes.in.h: Update.
3125 * gnulib/import/isnan.c: Update.
3126 * gnulib/import/isnand-nolibm.h: Update.
3127 * gnulib/import/isnand.c: Update.
3128 * gnulib/import/isnanl-nolibm.h: Update.
3129 * gnulib/import/isnanl.c: Update.
3130 * gnulib/import/itold.c: Update.
3131 * gnulib/import/localcharset.c: Update.
3132 * gnulib/import/localcharset.h: Update.
3133 * gnulib/import/lstat.c: Update.
3134 * gnulib/import/m4/00gnulib.m4: Update.
3135 * gnulib/import/m4/absolute-header.m4: Update.
3136 * gnulib/import/m4/alloca.m4: Update.
3137 * gnulib/import/m4/canonicalize.m4: Update.
3138 * gnulib/import/m4/codeset.m4: Update.
3139 * gnulib/import/m4/configmake.m4: Update.
3140 * gnulib/import/m4/dirent_h.m4: Update.
3141 * gnulib/import/m4/dirfd.m4: Update.
3142 * gnulib/import/m4/dirname.m4: Update.
3143 * gnulib/import/m4/double-slash-root.m4: Update.
3144 * gnulib/import/m4/eealloc.m4: Update.
3145 * gnulib/import/m4/errno_h.m4: Update.
3146 * gnulib/import/m4/exponentd.m4: Update.
3147 * gnulib/import/m4/exponentl.m4: Update.
3148 * gnulib/import/m4/extensions.m4: Update.
3149 * gnulib/import/m4/extern-inline.m4: Update.
3150 * gnulib/import/m4/fcntl-o.m4: Update.
3151 * gnulib/import/m4/float_h.m4: Update.
3152 * gnulib/import/m4/fnmatch.m4: Update.
3153 * gnulib/import/m4/fpieee.m4: Update.
3154 * gnulib/import/m4/frexp.m4: Update.
3155 * gnulib/import/m4/frexpl.m4: Update.
3156 * gnulib/import/m4/gettimeofday.m4: Update.
3157 * gnulib/import/m4/glibc21.m4: Update.
3158 * gnulib/import/m4/gnulib-cache.m4: Update.
3159 * gnulib/import/m4/gnulib-common.m4: Update.
3160 * gnulib/import/m4/gnulib-comp.m4: Update.
3161 * gnulib/import/m4/gnulib-tool.m4: Update.
3162 * gnulib/import/m4/include_next.m4: Update.
3163 * gnulib/import/m4/inttypes-pri.m4: Update.
3164 * gnulib/import/m4/inttypes.m4: Update.
3165 * gnulib/import/m4/isnand.m4: Update.
3166 * gnulib/import/m4/isnanl.m4: Update.
3167 * gnulib/import/m4/largefile.m4: Update.
3168 * gnulib/import/m4/localcharset.m4: Update.
3169 * gnulib/import/m4/locale-fr.m4: Update.
3170 * gnulib/import/m4/locale-ja.m4: Update.
3171 * gnulib/import/m4/locale-zh.m4: Update.
3172 * gnulib/import/m4/longlong.m4: Update.
3173 * gnulib/import/m4/lstat.m4: Update.
3174 * gnulib/import/m4/malloc.m4: Update.
3175 * gnulib/import/m4/malloca.m4: Update.
3176 * gnulib/import/m4/math_h.m4: Update.
3177 * gnulib/import/m4/mbrtowc.m4: Update.
3178 * gnulib/import/m4/mbsinit.m4: Update.
3179 * gnulib/import/m4/mbsrtowcs.m4: Update.
3180 * gnulib/import/m4/mbstate_t.m4: Update.
3181 * gnulib/import/m4/memchr.m4: Update.
3182 * gnulib/import/m4/memmem.m4: Update.
3183 * gnulib/import/m4/mmap-anon.m4: Update.
3184 * gnulib/import/m4/multiarch.m4: Update.
3185 * gnulib/import/m4/nocrash.m4: Update.
3186 * gnulib/import/m4/off_t.m4: Update.
3187 * gnulib/import/m4/pathmax.m4: Update.
3188 * gnulib/import/m4/readlink.m4: Update.
3189 * gnulib/import/m4/rename.m4: Update.
3190 * gnulib/import/m4/rmdir.m4: Update.
3191 * gnulib/import/m4/ssize_t.m4: Update.
3192 * gnulib/import/m4/stat.m4: Update.
3193 * gnulib/import/m4/stdbool.m4: Update.
3194 * gnulib/import/m4/stddef_h.m4: Update.
3195 * gnulib/import/m4/stdint.m4: Update.
3196 * gnulib/import/m4/stdio_h.m4: Update.
3197 * gnulib/import/m4/stdlib_h.m4: Update.
3198 * gnulib/import/m4/string_h.m4: Update.
3199 * gnulib/import/m4/strstr.m4: Update.
3200 * gnulib/import/m4/strtok_r.m4: Update.
3201 * gnulib/import/m4/sys_socket_h.m4: Update.
3202 * gnulib/import/m4/sys_stat_h.m4: Update.
3203 * gnulib/import/m4/sys_time_h.m4: Update.
3204 * gnulib/import/m4/sys_types_h.m4: Update.
3205 * gnulib/import/m4/time_h.m4: Update.
3206 * gnulib/import/m4/unistd_h.m4: Update.
3207 * gnulib/import/m4/warn-on-use.m4: Update.
3208 * gnulib/import/m4/wchar_h.m4: Update.
3209 * gnulib/import/m4/wchar_t.m4: Update.
3210 * gnulib/import/m4/wctype_h.m4: Update.
3211 * gnulib/import/m4/wint_t.m4: Update.
3212 * gnulib/import/malloc.c: Update.
3213 * gnulib/import/malloca.c: Update.
3214 * gnulib/import/malloca.h: Update.
3215 * gnulib/import/math.in.h: Update.
3216 * gnulib/import/mbrtowc.c: Update.
3217 * gnulib/import/mbsinit.c: Update.
3218 * gnulib/import/mbsrtowcs-impl.h: Update.
3219 * gnulib/import/mbsrtowcs-state.c: Update.
3220 * gnulib/import/mbsrtowcs.c: Update.
3221 * gnulib/import/memchr.c: Update.
3222 * gnulib/import/memmem.c: Update.
3223 * gnulib/import/pathmax.h: Update.
3224 * gnulib/import/readlink.c: Update.
3225 * gnulib/import/ref-add.sin: Update.
3226 * gnulib/import/ref-del.sin: Update.
3227 * gnulib/import/rename.c: Update.
3228 * gnulib/import/rmdir.c: Update.
3229 * gnulib/import/same-inode.h: Update.
3230 * gnulib/import/stat.c: Update.
3231 * gnulib/import/stdbool.in.h: Update.
3232 * gnulib/import/stddef.in.h: Update.
3233 * gnulib/import/stdint.in.h: Update.
3234 * gnulib/import/stdio.c: Update.
3235 * gnulib/import/stdio.in.h: Update.
3236 * gnulib/import/stdlib.in.h: Update.
3237 * gnulib/import/str-two-way.h: Update.
3238 * gnulib/import/streq.h: Update.
3239 * gnulib/import/string.in.h: Update.
3240 * gnulib/import/stripslash.c: Update.
3241 * gnulib/import/strnlen1.c: Update.
3242 * gnulib/import/strnlen1.h: Update.
3243 * gnulib/import/strstr.c: Update.
3244 * gnulib/import/strtok_r.c: Update.
3245 * gnulib/import/sys_stat.in.h: Update.
3246 * gnulib/import/sys_time.in.h: Update.
3247 * gnulib/import/sys_types.in.h: Update.
3248 * gnulib/import/time.in.h: Update.
3249 * gnulib/import/unistd.in.h: Update.
3250 * gnulib/import/verify.h: Update.
3251 * gnulib/import/wchar.in.h: Update.
3252 * gnulib/import/wctype.in.h: Update.
3253 * gnulib/import/gettimeofday.c: New file.
3254 * gnulib/import/m4/absolute-header.m4: New file.
3255 * gnulib/import/m4/gettimeofday.m4: New file.
3256 * gnulib/import/m4/sys_socket_h.m4: New file.
3257 * gnulib/import/m4/sys_time_h.m4: New file.
3258 * gnulib/import/stdio.c: Delete file.
3259 * gnulib/import/sys_time.in.h: New file.
3260
438e1e42
PA
32612015-08-24 Pedro Alves <palves@redhat.com>
3262
3263 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3264 * common/gdb_sys_time.h: New file.
3265 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3266 * gdb_select.h: Likewise.
3267 * gdb_usleep.c: Likewise.
3268 * maint.c: Likewise.
3269 * mi/mi-main.c: Likewise.
3270 * mi/mi-parse.h: Likewise.
3271 * remote-fileio.c: Likewise.
3272 * remote-m32r-sdi.c: Likewise.
3273 * remote.c: Likewise.
3274 * ser-base.c: Likewise.
3275 * ser-pipe.c: Likewise.
3276 * ser-tcp.c: Likewise.
3277 * ser-unix.c: Likewise.
3278 * symfile.c: Likewise.
3279 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3280 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3281 * utils.c: Likewise.
3282
40e0b271
PA
32832015-08-24 Pedro Alves <palves@redhat.com>
3284
3285 * NEWS: Mention removed support for the various ROM monitors.
3286 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3287 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3288 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3289 gdb_target_obs.
3290 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3291 gdb_target_obs.
3292 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3293 dsrec.o from gdb_target_obs.
3294 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3295 from gdb_target_obs.
3296 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3297 gdb_target_obs.
3298 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3299 dink32-rom.o from gdb_target_obs.
3300 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3301 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3302 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3303 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3304
f8904751
PA
33052015-08-21 Pedro Alves <palves@redhat.com>
3306
3307 * frame.c (null_frame_id): Explicitly zero-initialize.
3308
049412e3
TT
33092015-08-21 Tom Tromey <tromey@redhat.com>
3310
3311 * dwarf2read.c (struct dwarf2_section_info): Rename field
3312 'asection' to 'section'.
3313 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3314 (dwarf2_locate_sections, dwarf2_locate_sections)
3315 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3316 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3317 (dwarf2_locate_v2_dwp_sections): Adjust.
3318
948578a9
PP
33192015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3320
3321 * top.h (gdb_in_secondary_prompt_p): Declare.
3322 * top.c (gdb_secondary_prompt_depth): Define.
3323 (gdb_in_secondary_prompt_p): Define.
3324 (gdb_readline_wrapper_cleanup): Decrement
3325 gdb_secondary_prompt_depth.
3326 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3327 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3328 are in a secondary prompt.
3329
7a8bcb88
PP
33302015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3331
3332 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3333 emit the newline.
3334
2d7711a3
GB
33352015-08-21 Gary Benson <gbenson@redhat.com>
3336
3337 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3338
4313b8c0
GB
33392015-08-21 Gary Benson <gbenson@redhat.com>
3340
3341 * target.h (struct target_ops) <to_fileio_open>: New argument
3342 warn_if_slow. Update comment. All implementations updated.
3343 (target_fileio_open_warn_if_slow): New declaration.
3344 * target.c (target_fileio_open): Renamed as...
3345 (target_fileio_open_1): ...this. New argument warn_if_slow.
3346 Pass warn_if_slow to implementation. Update debug printing.
3347 (target_fileio_open): New function.
3348 (target_fileio_open_warn_if_slow): Likewise.
3349 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3350 target_fileio_open_warn_if_slow.
3351
f36b8719
GB
33522015-08-21 Gary Benson <gbenson@redhat.com>
3353
3354 * nat/linux-namespaces.c (linux_mntns_access_fs):
3355 Do not overwrite old_chain.
3356
40045d91
MF
33572015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3358
3359 * arch/xtensa.h: New file.
3360 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3361 (ps_get_thread_area): New function.
3362 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3363 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3364 * xtensa-tdep.c (osabi.h): New #include.
3365 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3366 xtensa-specific hooks.
3367 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3368 member and move the structure to arch/xtensa.h.
3369
80152258
PA
33702015-08-21 Pedro Alves <palves@redhat.com>
3371
3372 * remote.c (struct readahead_cache): New.
3373 (struct remote_state) <readahead_cache>: New field.
3374 (remote_open_1): Invalidate the cache.
3375 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3376 functions.
3377 (remote_hostio_pwrite): Invalidate the readahead cache.
3378 (remote_hostio_pread): Rename to ...
3379 (remote_hostio_pread_vFile): ... this.
3380 (remote_hostio_pread_from_cache): New function.
3381 (remote_hostio_pread): Reimplement.
3382 (remote_hostio_close): Invalidate the readahead cache.
3383
88fc5eb7
MC
33842015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3385
3386 PR build/18843
3387 * procfs.c: Include "filestuff.h".
3388
6f1cb6ea
PP
33892015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3390
3391 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3392 curch.
3393 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3394 cur_line or curch, instead call wmove().
3395 (init_win_info) [CMD_WIN]: Likewise.
3396 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3397 instead call getcury().
3398 (tui_redisplay_readline): Don't set cur_line or curch.
3399 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3400 getcury().
3401 (tui_cont_sig): Remove call to wmove.
3402 (tui_getc): Don't read cur_line or curch, instead call getcury()
3403 or getyx(). Don't set curch.
3404 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3405 set cur_line or curch. Always move cursor to (0,0).
3406
221e1a37
PA
34072015-08-20 Pedro Alves <palves@redhat.com>
3408
3409 * infrun.c (print_target_wait_results): Make extern.
3410 * infrun.h (print_target_wait_results): Declare.
3411 * remote.c (set_stop_requested_callback): Delete.
3412 (process_initial_stop_replies): New function.
3413 (remote_start_remote): Use it.
3414 (stop_reply_queue_length): New function.
3415
40e3ad0e
PA
34162015-08-20 Pedro Alves <palves@redhat.com>
3417
3418 * dwarf2read.c (process_full_comp_unit): To tell whether
3419 start_subfile managed to deduce a language, test for
3420 language_unknown instead of language_c.
3421
af39b327
PMR
34222015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3423
3424 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3425 matches attributes.
3426
7d45c7c3
KB
34272015-08-19 Kevin Buettner <kevinb@redhat.com>
3428
3429 * dwarf2read.c (dwarf2_string_attr): New function.
3430 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3431 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3432 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3433 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3434 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3435
4d6cceb4
DE
34362015-08-18 Doug Evans <dje@google.com>
3437 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3438
3439 PR mi/18833
3440 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3441 if MI-like.
3442 * mi/mi-out.c: #include "vec.h".
3443 (ui_filep): New type.
3444 (DEV_VEC_P (ui_filep)): New type.
3445 (struct ui_out_data) <buffer, original_buffer>: Delete.
3446 (struct ui_out_data) <streams>: New member.
3447 (mi_ui_out_impl): Add data_destroy field.
3448 (mi_field_string, mi_field_fmt): Update.
3449 (mi_flush, mi_redirect, field_separator): Update.
3450 (mi_open, mi_close): Update.
3451 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3452 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3453 (mi_out_new): Call mi_out_data_ctor.
3454
26d56a93
SL
34552015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3456
3457 * remote.c (strprefix): New.
3458 (remote_parse_stop_reply): Use strprefix instead of strncmp
3459 to ensure exact match of keyword.
3460
566f5e3b
AB
34612015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3462
3463 * gdb_bfd.c (debug_bfd_cache): New variable.
3464 (show_bfd_cache_debug): New function.
3465 (gdb_bfd_open): Add debug logging.
3466 (gdb_bfd_ref): Likewise.
3467 (gdb_bfd_unref): Likewise.
3468 (_initialize_gdb_bfd): Add new set/show command.
3469 * NEWS: Mention new command.
3470
18989b3c
AB
34712015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3472
3473 * gdb_bfd.c (bfd_sharing): New variable.
3474 (show_bfd_sharing): New function.
3475 (gdb_bfd_open): Check bfd_sharing variable.
3476 (_initialize_gdb_bfd): Add new set/show command.
3477 * NEWS: Mention new command.
3478
c04fe68f
AB
34792015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3480
3481 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3482 field.
3483 (struct gdb_bfd_cache_search): Likewise.
3484 (eq_bfd): Compare the size, inode, and device id fields.
3485 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3486 (gdb_bfd_ref): Likewise.
3487 (gdb_bfd_unref): Likewise.
3488
b2a33439
PA
34892015-08-18 Pedro Alves <palves@redhat.com>
3490
3491 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3492 target implements to_always_non_stop_p, call it.
3493 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3494 (x86_linux_create_target): Install it as to_always_non_stop_p
3495 method.
3496
71b57e37
DE
34972015-08-17 Doug Evans <dje@google.com>
3498
3499 * ui-out.c (default_ui_out_impl): Add comment.
3500
7f3706eb
IB
35012015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3502
3503 * d-exp.y (type_aggregate_p): New function.
3504 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3505 (classify_inner_name): Likewise.
3506 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3507
1762568f
DE
35082015-08-15 Doug Evans <xdje42@gmail.com>
3509
3510 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3511 updated.
3512 (add_psymbol_to_list): Ditto.
3513
8763cede
DE
35142015-08-15 Doug Evans <xdje42@gmail.com>
3515
3516 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3517 updated. Call end_psymtab_common.
3518 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3519 end_psymtab_common.
3520 (build_type_psymtabs_reader): Ditto.
3521 * psympriv.h (sort_pst_symbols): Delete.
3522 (end_psymtab_common): Declare.
3523 * psymtab.c (sort_pst_symbols): Make static.
3524 (end_psymtab_common): New function.
3525 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3526
51cdc993
DE
35272015-08-15 Doug Evans <xdje42@gmail.com>
3528
3529 * defs.h (LANGUAGE_BITS): Define.
3530 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3531 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3532 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3533 (minimal_symbol_type): Add nr_minsym_types.
3534 (MINSYM_TYPE_BITS): Define.
3535 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3536 (domain_enum_tag): Add NR_DOMAINS.
3537 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3538 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3539
95cf5869
DE
35402015-08-15 Doug Evans <xdje42@gmail.com>
3541
3542 * objfiles.h: Whitespace cleanup.
3543 * psympriv.h: Whitespace cleanup.
3544 * psymtab.c: Whitespace/coding convention cleanup.
3545
e3ae3c43
PP
35462015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3547
3548 * inferior.c (detach_inferior_command): Don't call
3549 any_thread_of_process when pid is 0.
3550 (kill_inferior_command): Likewise.
3551
6ff0ba5f
DE
35522015-08-14 Doug Evans <xdje42@gmail.com>
3553
3554 PR gdb/11833
3555 * NEWS: Document new /s modifier for the disassemble command.
3556 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3557 (_initialize_cli_cmds): Update online docs of disassemble command.
3558 * disasm.c: #include "source.h".
3559 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3560 All uses updated.
3561 (dis_line_entry): New struct.
3562 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3563 (allocate_dis_line_table): New functions.
3564 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3565 (dump_insns): New arg end_pc. All callers updated.
3566 (do_mixed_source_and_assembly_deprecated): Renamed from
3567 do_mixed_source_and_assembly. All callers updated.
3568 (do_mixed_source_and_assembly): New function.
3569 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3570 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3571 DISASSEMBLY_SOURCE. All uses updated.
3572 (DISASSEMBLY_SOURCE): New macro.
3573 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3574
b56ccc20
KS
35752015-08-14 Keith Seitz <keiths@redhat.com>
3576
3577 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3578 `typename' to `type_name' to avoid C++ reserved word.
3579
ebdad8fc
KS
35802015-08-14 Keith Seitz <keiths@redhat.com>
3581
3582 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3583 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3584 silence ARI errors.
3585
c0fe2ae7
IB
35862015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3587
3588 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3589 xstrprintf instead of malloc and sprintf.
3590 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3591 (lex_one_token): Likewise.
3592
a738da3a
MF
35932015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3594
3595 * solib-svr4.c (read_program_header): Add base_addr argument to
3596 report the runtime address of the segment.
3597 (find_program_interpreter): Update read_program_header call to pass
3598 a NULL pointer for the new argument.
3599 (scan_dyntag): Add ptr_addr argument to report the runtime address
3600 of the tag payload.
3601 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3602 read_program_header to get the base address of the dynamic segment.
3603 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3604 read_program_header.
3605 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3606
f8edc4ff
MF
36072015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3608
3609 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3610
444c1ed8
IB
36112015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3612
3613 * d-exp.y (%union): Add voidval.
3614 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3615 name in the lexing stage.
3616 (PostfixExpression): Move symbol completion handling in grammar here
3617 from PrimaryExpression.
3618 (PrimaryExpression): Move routines to handle resolving identifier
3619 tokens in the grammar here from push_expression_name.
3620 (IdentifierExp): Remove the handling of alternating '.' and identifier
3621 tokens.
3622 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3623 (BasicType): Remove C-style typename rules.
3624 (d_type_from_name, d_module_from_name, push_variable)
3625 (push_fieldnames, push_type_name, push_module_name)
3626 (push_expression_name): Remove.
3627 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3628 (token_and_value): New type.
3629 (token_fifo, popping, name_obstack): New globals.
3630 (classify_name): New function.
3631 (classify_inner_name): Likewise.
3632 (yylex): Likewise.
3633 (d_parse): Initialize token_fifo, popping and name_obstack.
3634
bc7c9fab
IB
36352015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3636
3637 * Makefile.in (SFILES): Add d-namespace.c.
3638 (COMMON_OBS): Add d-namespace.o.
3639 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3640 la_lookup_symbol_nonlocal callback function pointer.
3641 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3642 (d_lookup_nested_symbol): New declaration.
3643 * d-namespace.c: New file.
3644
3207396b
PA
36452015-08-13 Pedro Alves <palves@redhat.com>
3646
3647 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3648 cleanup after the decref cleanup, not before.
3649
5d8c3ed3
PMR
36502015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3651
3652 * ada-lang.c: Include namespace.h
3653 (aux_add_nonlocal_symbols): Fix a function name in comment.
3654 (ada_add_block_renamings): New.
3655 (add_nonlocal_symbols): Add global renamings handling.
3656 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3657 to...
3658 (ada_add_all_symbols): ... this new function.
3659 (ada_add_block_symbols): Try to match the input name against the
3660 "using directives list", perform a recursive symbol lookup on
3661 the matched declarations.
3662 * block.h (struct block): Move the_namespace to top-level as
3663 namespace_info. Remove the language_specific field.
3664 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3665 * buildsym.h (using_directives): Rename into...
3666 (local_using_directives): ... this.
3667 (global_using_directives): New.
3668 (struct context_stack): Rename the using_directives field into
3669 local_using_directives.
3670 * buildsym.c (finish_block_internal): Deal with the proper
3671 using directives repository (local or global).
3672 (prepare_for_building): Reset local_using_directives. Assert
3673 that there is no pending global using directive.
3674 (reset_symtab_globals): Reset global_using_directives and
3675 local_using_directives.
3676 (end_symtab_get_static_block): Don't ignore symtabs that have
3677 only using directives.
3678 (push_context): Update references to local_using_directives.
3679 (buildsym_init): Do not reset using_directives.
3680 * cp-support.c: Include namespace.h.
3681 * cp-support.h (struct using_direct): Move to namespace.h.
3682 (cp_add_using_directives): Move to namespace.h.
3683 * cp-namespace.c: Include namespace.h
3684 (cp_add_using_directive): Move to namespace.c, rename it to
3685 add_using_directive, add a "using_directives" argument and use
3686 it as the pending using directives repository. All callers
3687 updated.
3688 * dwarf2read.c (using_directives): New.
3689 (read_import_statement): Call using_directives.
3690 (read_func_scope): Update references to local_using_directives.
3691 (read_lexical_block_scope): Likewise.
3692 (read_namespace): Update the heading comment, call
3693 using_directives.
3694 * namespace.h: New file.
3695 * namespace.c: New file.
3696 * Makefile.in (SFILES): Add namespace.c.
3697 (COMMON_OBS): Add namespace.o
3698
4dafcdeb
JB
36992015-08-12 Joel Brobecker <brobecker@adacore.com>
3700
3701 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3702 compute RETADDR.
3703
67994074
KS
37042015-08-12 Keith Seitz <keiths@redhat.com>
3705
3706 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3707 reserved C++ keyword "explicit" to "explicit_loc".
3708 * breakpoint.c (create_overlay_event_breakpoint)
3709 (create_longjmp_master_breakpoint)
3710 (create_std_terminate_master_breakpoint)
3711 (create_exception_master_breakpoint, update_static_tracepoint):
3712 Rename reserved C++ keyword "explicit" to "explicit_loc".
3713 * completer.c (collect_explicit_location_matches)
3714 (explicit_location_completer): Rename reserved C++ keyword
3715 "explicit" to "explicit_loc".
3716 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3717 (canonicalize_linespec, create_sals_line_offset)
3718 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3719 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3720 "explicit" to "explicit_loc".
3721 * location.c (struct event_location) <explicit>: Rename to
3722 "explicit_loc".
3723 (initialize_explicit_location, new_explicit_location)
3724 (explicit_location_to_string_internal, explicit_location_to_linespec):
3725 Rename reserved C++ keyword "explicit" to "explicit_loc".
3726 * location.h (explicit_location_to_string)
3727 (explicit_location_to_linespec, initialize_explicit_location)
3728 (new_explicit_location): Rename reserved C++ keyword "explicit"
3729 to "explicit_loc".
3730 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3731 keyword "explicit" to "explicit_loc".
3732
59ecaff3
KS
37332015-08-12 Keith Seitz <keiths@redhat.com>
3734
3735 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3736 and only call decode_line_1 when it is non-NULL.
3737
244558af
LM
37382015-08-12 Luis Machado <lgustavo@codesourcery.com>
3739
3740 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3741 location address is not meaningful.
3742 (breakpoint_address_is_meaningful): Update comment.
3743
629500fa
KS
37442015-08-11 Keith Seitz <keiths@redhat.com>
3745
3746 * NEWS: Mention explicit locations.
3747 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3748 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3749 (_initialize_breakpoint): Update documentation for
3750 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3751
eb8c4e2e
KS
37522015-08-11 Keith Seitz <keiths@redhat.com>
3753
3754 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3755 explicit locations, options "--source", "--function",
3756 "--label", and "--line".
3757
87f0e720
KS
37582015-08-11 Keith Seitz <keiths@redhat.com>
3759
3760 * completer.c: Include location.h.
3761 (enum match_type): New enum.
3762 (location_completer): Rename to ...
3763 (linespec_completer): ... this.
3764 (collect_explicit_location_matches, backup_text_ptr)
3765 (explicit_location_completer): New functions.
3766 (location_completer): "New" function; handle linespec
3767 and explicit location completions.
3768 (complete_line_internal): Remove all location completer-specific
3769 handling.
3770 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3771 (find_toplevel_char): Export.
3772 (linespec_parse_line_offset): Export.
3773 Issue error if STRING is not numerical.
3774 (gdb_get_linespec_parser_quote_characters): New function.
3775 * linespec.h (linespec_parse_line_offset): Declare.
3776 (get_gdb_linespec_parser_quote_characters): Declare.
3777 (is_ada_operator): Declare.
3778 (find_toplevel_char): Declare.
3779 (linespec_lexer_lex_keyword): Declare.
3780 * location.c (explicit_to_event_location): New function.
3781 (explicit_location_lex_one): New function.
3782 (string_to_explicit_location): New function.
3783 (string_to_event_location): Handle explicit locations.
3784 * location.h (explicit_to_event_location): Declare.
3785 (string_to_explicit_location): Declare.
3786
00e52e53
KS
37872015-08-11 Keith Seitz <keiths@redhat.com>
3788
3789 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3790 linespec into explicit location.
3791 * breakpoint.c (create_overlay_breakpoint)
3792 (create_longjmp_master_breakpoint)
3793 (create_std_terminate_master_breakpoint)
3794 (create_exception_master_breakpoint): Convert linespec into explicit
3795 location.
3796 (update_static_tracepoint): Convert linespec into explicit location.
3797 * linespec.c (enum offset_relative_sign, struct line_offset): Move
3798 location.h.
3799 (struct linespec) <expression, expr_pc, source_filename>
3800 <function_name, label_name, line_offset>: Replace with ...
3801 <explicit>: ... this.
3802 <is_linespec>: New member.
3803 (PARSER_EXPLICIT): New accessor macro.
3804 (undefined_label_error): New function.
3805 (source_file_not_found_error): New function.
3806 (linespec_parse_basic): The parser result is now an explicit location.
3807 Use PARSER_EXPLICIT to access it.
3808 Use undefined_label_error.
3809 (canonicalize_linespec): Convert canonical linespec into explicit
3810 location.
3811 Move string representation of location to explicit_location_to_linespec
3812 and use it and explicit_location_to_string to save string
3813 representations of the canonical location.
3814 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3815 explicit location. Update all references.
3816 (convert_explicit_location_to_sals): New function.
3817 (parse_linespec): Use PARSER_EXPLICIT to access the parser
3818 result's explicit location.
3819 (linespec_state_constructor): Initialize is_linespec.
3820 Use PARSER_EXPLICIT.
3821 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3822 result.
3823 (event_location_to_sals): For linespec locations, set is_linespec.
3824 Handle explicit locations.
3825 (decode_objc): 'ls' contains an explicit location now. Update all
3826 references.
3827 (symtabs_from_filename): Use source_file_not_found_error.
3828 * location.c (struct event_location.u) <explicit>: New member.
3829 (initialize_explicit_location): New function.
3830 (initialize_event_location): Initialize explicit locations.
3831 (new_explicit_location, get_explicit_location)
3832 (get_explicit_location_const): New functions.
3833 (explicit_to_string_internal): New function; most of contents moved
3834 from canonicalize_linespec.
3835 (explicit_location_to_string): New function.
3836 (explicit_location_to_linespec): New function.
3837 (copy_event_location, delete_event_location)
3838 (event_location_to_string_const, event_location_empty_p): Handle
3839 explicit locations.
3840 * location.h (enum offset_relative_sign, struct line_offset): Move
3841 here from linespec.h.
3842 (enum event_location_type): Add EXPLICIT_LOCATION.
3843 (struct explicit_location): New structure.
3844 (explicit_location_to_string): Declare.
3845 (explicit_location_to_linespec): Declare.
3846 (new_explicit_location, get_explicit_locationp
3847 (get_explicit_location_const, initialize_explicit_location): Declare.
3848
5b56227b
KS
38492015-08-11 Keith Seitz <keiths@redhat.com>
3850
3851 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3852 linespec for stap probe to probe location.
3853 * breakpoint.c (create_longjmp_master_breakpoint)
3854 (create_exception_master_breakpoint): Likewise.
3855 (break_command_1): Remove local variable `arg_cp'.
3856 Check location type to set appropriate breakpoint ops methods.
3857 (trace_command): Likewise.
3858 * linespec.c (event_location_to_sals): Assert on probe locations.
3859 * location.c (EL_PROBE): Add macro definition.
3860 (new_probe_location, get_probe_location): New functions.
3861 (copy_event_location, delete_event_location, event_location_to_string)
3862 (string_to_event_location, event_location_empty_p): Handle probe
3863 locations.
3864 * location.h (enum event_location_type): Add PROBE_LOCATION.
3865 (new_probe_location, get_probe_location): Declare.
3866 * probe.c (parse_probes): Assert that LOCATION is a probe location.
3867 Convert linespec into probe location.
3868
a06efdd6
KS
38692015-08-11 Keith Seitz <keiths@redhat.com>
3870
3871 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
3872 Convert linespec to address location.
3873 * linespec.c (canonicalize_linespec): Do not handle address
3874 locations here.
3875 (convert_address_location_to_sals): New function; contents moved
3876 from ...
3877 (convert_linespc_to_sals): ... here.
3878 (parse_linespec): Remove address locations from linespec grammar.
3879 Remove handling of address locations.
3880 (linespec_lex_to_end): Remove handling of address linespecs.
3881 (event_location_to_sals): Handle ADDRESS_LOCATION.
3882 (linespec_expression_to_pc): Export.
3883 * linespec.h (linespec_expression_to_pc): Add declaration.
3884 * location.c (struct event_location.u) <address>: New member.
3885 (new_address_location, get_address_location): New functions.
3886 (copy_event_location, delete_event_location, event_location_to_string)
3887 (string_to_event_location, event_location_empty_p): Handle address
3888 locations.
3889 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
3890 (new_address_location, get_address_location): Declare.
3891 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
3892 to address location.
3893 * spu-tdep.c (spu_catch_start): Likewise.
3894
f00aae0f
KS
38952015-08-11 Keith Seitz <keiths@redhat.com>
3896
3897 * ax-gdb.c: Include location.h.
3898 (agent_command_1) Use linespec location instead of address
3899 string.
3900 * break-catch-throw.c: Include location.h.
3901 (re_set_exception_catchpoint): Use linespec locations instead
3902 of address strings.
3903 * breakpoint.c: Include location.h.
3904 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
3905 (create_std_terminate_master_breakpoint)
3906 (create_exception_master_breakpoint, update_breakpoints_after_exec):
3907 Use linespec location instead of address string.
3908 (print_breakpoint_location): Use locations and
3909 event_location_to_string.
3910 Print extra_string for pending locations for non-MI streams.
3911 (print_one_breakpoint_location): Use locations and
3912 event_location_to_string.
3913 (init_raw_breakpoint_without_location): Initialize b->location.
3914 (create_thread_event_breakpoint): Use linespec location instead of
3915 address string.
3916 (init_breakpoint_sal): Likewise.
3917 Only save extra_string if it is non-NULL and not the empty string.
3918 Use event_location_to_string instead of `addr_string'.
3919 Constify `p' and `endp'.
3920 Use skip_spaces_const/skip_space_const instead of non-const versions.
3921 Copy the location into the breakpoint.
3922 If LOCATION is NULL, save the breakpoint address as a linespec location
3923 instead of an address string.
3924 (create_breakpoint_sal): Change `addr_string' parameter to a struct
3925 event_location. All uses updated.
3926 (create_breakpoints_sal): Likewise for local variable `addr_string'.
3927 (parse_breakpoint_sals): Use locations instead of address strings.
3928 Remove check for empty linespec with conditional.
3929 Refactor.
3930 (decode_static_tracepoint_spec): Make argument const and update
3931 function.
3932 (create_breakpoint): Change `arg' to a struct event_location and
3933 rename.
3934 Remove `copy_arg' and `addr_start'.
3935 If EXTRA_STRING is empty, set it to NULL.
3936 Don't populate `canonical' for pending breakpoints.
3937 Pass `extra_string' to find_condition_and_thread.
3938 Clear `extra_string' if `rest' was NULL.
3939 Do not error with "garbage after location" if setting a dprintf
3940 breakpoint.
3941 Copy the location into the breakpoint instead of an address string.
3942 (break_command_1): Use string_to_event_location and pass this to
3943 create_breakpoint instead of an address string.
3944 Check against `arg_cp' for a probe linespec.
3945 (dprintf_command): Use string_to_event_location and pass this to
3946 create_breakpoint instead of an address string.
3947 Throw an exception if no format string was specified.
3948 (print_recreate_ranged_breakpoint): Use event_location_to_string
3949 instead of address strings.
3950 (break_range_command, until_break_command)
3951 (init_ada_exception_breakpoint): Use locations instead
3952 of address strings.
3953 (say_where): Print out extra_string for pending locations.
3954 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
3955 the breakpoint.
3956 (base_breakpoint_create_sals_from_location): Use struct event_location
3957 instead of address string.
3958 Remove `addr_start' and `copy_arg' parameters.
3959 (base_breakpoint_decode_location): Use struct event_location instead of
3960 address string.
3961 (bkpt_re_set): Use locations instead of address strings.
3962 Use event_location_empty_p to check for unset location.
3963 (bkpt_print_recreate): Use event_location_to_string instead of
3964 an address string.
3965 Print out extra_string for pending locations.
3966 (bkpt_create_sals_from_location, bkpt_decode_location)
3967 (bkpt_probe_create_sals_from_location): Use struct event_location
3968 instead of address string.
3969 (bkpt_probe_decode_location): Use struct event_location instead of
3970 address string.
3971 (tracepoint_print_recreate): Use event_location_to_string to
3972 recreate the tracepoint.
3973 (tracepoint_create_sals_from_location, tracepoint_decode_location)
3974 (tracepoint_probe_create_sals_from_location)
3975 (tracepoint_probe_decode_location): Use struct event_location
3976 instead of address string.
3977 (dprintf_print_recreate): Use event_location_to_string to recreate
3978 the dprintf.
3979 (dprintf_re_set): Remove check for valid/missing format string.
3980 (strace_marker_create_sals_from_location)
3981 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
3982 (update_static_tracepoint): Use struct event_location instead of
3983 address string.
3984 (location_to_sals): Likewise.
3985 Pass `extra_string' to find_condition_and_thread.
3986 For newly resolved pending breakpoint locations, clear the location's
3987 string representation.
3988 Assert that the breakpoint's condition string is NULL when
3989 condition_not_parsed.
3990 (breakpoint_re_set_default, create_sals_from_location_default)
3991 (decode_location_default, trace_command, ftrace_command)
3992 (strace_command, create_tracepoint_from_upload): Use locations
3993 instead of address strings.
3994 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
3995 Use struct event_location instead of address string.
3996 Update all uses.
3997 <decode_location>: Likewise.
3998 (struct breakpoint) <addr_string>: Change to struct event_location
3999 and rename `location'.
4000 <addr_string_range_end>: Change to struct event_location and rename
4001 `location_range_end'.
4002 (create_breakpoint): Use struct event_location instead of address
4003 string.
4004 * cli/cli-cmds.c: Include location.h.
4005 (edit_command, list_command): Use locations instead of address strings.
4006 * elfread.c: Include location.h.
4007 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4008 * guile/scm-breakpoint.c: Include location.h.
4009 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4010 (gdbscm_register_breakpoint): Use locations instead of address
4011 strings.
4012 * linespec.c: Include location.h.
4013 (struct ls_parser) <stream>: Change to const char *.
4014 (PARSER_STREAM): Update.
4015 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4016 keywords must be followed by whitespace.
4017 (canonicalize_linespec): Save a linespec location into `canonical'.
4018 Save a canonical linespec into `canonical'.
4019 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4020 All uses updated.
4021 Update function description.
4022 (linespec_parser_new): Initialize `parser'.
4023 Update initialization of parsing stream.
4024 (event_location_to_sals): New function.
4025 (decode_line_full): Change `argptr' to a struct event_location and
4026 rename it `location'.
4027 Use locations instead of address strings.
4028 Call event_location_to_sals instead of parse_linespec.
4029 (decode_line_1): Likewise.
4030 (decode_line_with_current_source, decode_line_with_last_displayed)
4031 Use locations instead of address strings.
4032 (decode_objc): Likewise.
4033 Change `argptr' to const char * and rename `arg'.
4034 (destroy_linespec_result): Delete the linespec result's location
4035 instead of freeing the address string.
4036 * linespec.h (struct linespec_result) <addr_string>: Change to
4037 struct event_location and rename to ...
4038 <location>: ... this.
4039 (decode_line_1, decode_line_full): Change `argptr' to struct
4040 event_location. All callers updated.
4041 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4042 (mi_cmd_break_insert_1): Use locations instead of address strings.
4043 Throw an error if there was "garbage" at the end of the specified
4044 linespec.
4045 * probe.c: Include location.h.
4046 (parse_probes): Change `argptr' to struct event_location.
4047 Use event locations instead of address strings.
4048 * probe.h (parse_probes): Change `argptr' to struct event_location.
4049 * python/py-breakpoint.c: Include location.h.
4050 (bppy_get_location): Constify local variable `str'.
4051 Use event_location_to_string.
4052 (bppy_init): Use locations instead of address strings.
4053 * python/py-finishbreakpoint.c: Include location.h.
4054 (bpfinishpy_init): Remove local variable `addr_str'.
4055 Use locations instead of address strings.
4056 * python/python.c: Include location.h.
4057 (gdbpy_decode_line): Use locations instead of address strings.
4058 * remote.c: Include location.h.
4059 (remote_download_tracepoint): Use locations instead of address
4060 strings.
4061 * spu-tdep.c: Include location.h.
4062 (spu_catch_start): Remove local variable `buf'.
4063 Use locations instead of address strings.
4064 * tracepoint.c: Include location.h.
4065 (scope_info): Use locations instead of address strings.
4066 (encode_source_string): Constify parameter `src'.
4067 * tracepoint.h (encode_source_string): Likewise.
4068
c7c1b3e9
KS
40692015-08-11 Keith Seitz <keiths@redhat.com>
4070
4071 * Makefile.in (SFILES): Add location.c.
4072 (HFILES_NO_SRCDIR): Add location.h.
4073 (COMMON_OBS): Add location.o.
4074 * linespec.c (linespec_lex_to_end): New function.
4075 * linespec.h (linespec_lex_to_end): Declare.
4076 * location.c: New file.
4077 * location.h: New file.
4078
5f700d83
KS
40792015-08-11 Keith Seitz <keiths@redhat.com>
4080
4081 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4082 Renamed to create_sals_from_location.
4083 <decode_linespec>: Renamed to decode_location.
4084 Update all callers.
4085 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4086 (create_sals_from_location_default): ... this.
4087 (addr_string_to_sals): Renamed to ...
4088 (location_to_sals): ... this.
4089 (decode_linespec_default): Renamed to ...
4090 (decode_location_default): ... this.
4091 (base_breakpoint_create_sals_from_address): Renamed to ...
4092 (base_breakpoint_create_sals_from_location): ... this.
4093 (bkpt_create_sals_from_address): Renamed to ...
4094 (bkpt_create_sals_from_location): ... this.
4095 (bkpt_decode_linespec): Renamed to ...
4096 (bkpt_decode_location): ... this.
4097 (bkpt_probe_create_sals_from_address): Renamed to ...
4098 (bkpt_probe_create_sals_from_location): ... this.
4099 (tracepoint_create_sals_from_address): Renamed to ...
4100 (tracepoint_create_sals_from_location): ... this.
4101 (tracepoint_decode_linespec): Renamed to ...
4102 (tracepoint_decode_location): ... this.
4103 (tracepoint_probe_create_sals_from_address): Renamed to ...
4104 (tracepoint_probe_create_sals_from_location): ... this.
4105 (tracepoint_probe_decode_linespec): Renamed to ...
4106 (tracepoint_probe_decode_location): ... this.
4107 (strace_marker_create_sals_from_address): Renamed to ...
4108 (strace_marker_create_sals_from_location): ... this.
4109 (decode_linespec_default): Renamed to ...
4110 (decode_location_default): ... this.
4111
e27852be
DE
41122015-08-10 Doug Evans <dje@google.com>
4113 Keith Seitz <keiths@redhat.com>
4114
4115 PR gdb/17960
4116 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4117 make_file_symbol_completion_list and made static.
4118 (make_file_symbol_completion_list): New function.
80af41e0 4119
fd7dcb94
JB
41202015-08-10 Joel Brobecker <brobecker@adacore.com>
4121
4122 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4123 trailing new-line at end of warning message.
4124 (proceed): Add i18n marker to error messages.
4125
f12899e9
PA
41262015-08-07 Pedro Alves <palves@redhat.com>
4127
4128 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4129
5ac21343
PA
41302015-08-07 Pedro Alves <palves@redhat.com>
4131
4132 * s390-linux-tdep.c (is_non_branch_ril)
4133 (s390_displaced_step_copy_insn): New functions.
4134 (s390_displaced_step_fixup): Update comment.
4135 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4136 gdbarch_displaced_step_copy_insn hook.
4137
7f03bd92
PA
41382015-08-07 Pedro Alves <palves@redhat.com>
4139
4140 * infrun.c (displaced_step_prepare_throw): Return -1 if
4141 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4142 comment.
4143 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4144 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4145 in file.
4146 (ppc_displaced_step_copy_insn): New function.
4147 (ppc_displaced_step_fixup): Update comment.
4148 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4149 gdbarch_displaced_step_copy_insn hook.
4150 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4151 NULL return.
4152 * gdbarch.h: Regenerate.
4153
3fc8eb30
PA
41542015-08-07 Pedro Alves <palves@redhat.com>
4155
4156 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4157 field.
4158 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4159 Return false if dispaced stepping failed before.
4160 (resume): Pass the current inferior to
4161 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4162 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4163 displaced_stepping_failed flag, and fall back to an in-line
4164 step-over.
4165
bfedc46a
PA
41662015-08-07 Pedro Alves <palves@redhat.com>
4167
4168 * darwin-nat.c (darwin_stop): Rename to ...
4169 (darwin_interrupt): ... this.
4170 (_initialize_darwin_inferior): Adjust.
4171 * gnu-nat.c (gnu_stop): Delete.
4172 (gnu_target): Don't install gnu_stop.
4173 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4174 (inf_ptrace_interrupt): ... this.
4175 (inf_ptrace_target): Adjust.
4176 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4177 target_stop.
4178 * linux-nat (linux_nat_stop): Rename to ...
4179 (linux_nat_interrupt): ... this.
4180 (linux_nat_stop): Reimplement.
4181 (linux_nat_add_target): Install linux_nat_interrupt.
4182 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4183 (nto_handle_sigint_twice): ... this.
4184 (nto_interrupt): Rename to ...
4185 (nto_handle_sigint): ... this. Call target_interrupt instead of
4186 target_stop.
4187 (procfs_wait): Adjust.
4188 (procfs_stop): Rename to ...
4189 (procfs_interrupt): ... this.
4190 (init_procfs_targets): Adjust.
4191 * procfs.c (procfs_stop): Rename to ...
4192 (procfs_interrupt): ... this.
4193 (procfs_target): Adjust.
4194 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4195 (m32r_interrupt): ... this.
4196 (init_m32r_ops): Adjust.
4197 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4198 (gdbsim_interrupt_inferior): ... this.
4199 (gdbsim_stop): Rename to ...
4200 (gdbsim_interrupt): ... this.
4201 (gdbsim_cntrl_c): Adjust.
4202 (init_gdbsim_ops): Adjust.
4203 * remote.c (sync_remote_interrupt): Adjust comments.
4204 (remote_stop_as): Rename to ...
4205 (remote_interrupt_as): ... this.
4206 (remote_stop): Adjust comment.
4207 (remote_interrupt): New function.
4208 (init_remote_ops): Install remote_interrupt.
4209 * target.c (target_interrupt): New function.
4210 * target.h (struct target_ops) <to_interrupt>: New field.
4211 (target_interrupt): New declaration.
4212 * windows-nat.c (windows_stop): Rename to ...
4213 (windows_interrupt): ... this.
4214 * target-delegates.c: Regenerate.
4215
d55007b5
PA
42162015-08-07 Pedro Alves <palves@redhat.com>
4217
4218 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4219 threads" as alternative to "switching back to stepped thread".
4220
fbea99ea
PA
42212015-08-07 Pedro Alves <palves@redhat.com>
4222
4223 * NEWS: Mention "maint set/show target-non-stop".
4224 * breakpoint.c (update_global_location_list): Check
4225 target_is_non_stop_p instead of non_stop.
4226 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4227 * infrun.c (show_can_use_displaced_stepping)
4228 (can_use_displaced_stepping_p, start_step_over_inferior):
4229 Likewise.
4230 (internal_resume_ptid): New function.
4231 (resume): Use it.
4232 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4233 all-stop mode but the target is always in non-stop mode, start all
4234 the other threads that are implicitly resumed too.
4235 (for_each_just_stopped_thread, fetch_inferior_event)
4236 (adjust_pc_after_break, stop_all_threads): Check
4237 target_is_non_stop_p instead of non_stop.
4238 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4239 with the target always in non-stop mode.
4240 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4241 instead of non_stop.
4242 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4243 instead of non_stop.
4244 (keep_going_stepped_thread): Use internal_resume_ptid.
4245 (stop_waiting): If in all-stop mode, and the target is in non-stop
4246 mode, stop all threads.
4247 (keep_going_pass): Likewise, when starting a new in-line step-over
4248 sequence.
4249 * linux-nat.c (get_pending_status, select_event_lwp)
4250 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4251 target_is_non_stop_p instead of non_stop.
4252 (linux_nat_always_non_stop_p): New function.
4253 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4254 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4255 * target-delegates.c: Regenerate.
4256 * target.c (target_is_non_stop_p): New function.
4257 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4258 (maint_set_target_non_stop_command)
4259 (maint_show_target_non_stop_command): New functions.
4260 (_initilize_target): Install "maint set/show target-non-stop"
4261 commands.
4262 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4263 (target_non_stop_enabled): New declaration.
4264 (target_is_non_stop_p): New declaration.
4265
372316f1
PA
42662015-08-07 Pedro Alves <pedro@codesourcery.com>
4267
4268 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4269 has a pending status, return true.
4270 * gdbthread.h: Include target/waitstatus.h.
4271 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4272 stop_pc>: New fields.
4273 (struct thread_info) <resumed>: New field.
4274 (set_resumed): Declare.
4275 * infrun.c: Include "event-loop.h".
4276 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4277 (infrun_async): New function.
4278 (clear_step_over_info): Add debug output.
4279 (displaced_step_in_progress_any_inferior): New function.
4280 (displaced_step_fixup): New returns int.
4281 (start_step_over): Handle in-line step-overs too. Assert the
4282 thread is marked resumed.
4283 (resume_cleanups): Clear the thread's resumed flag.
4284 (resume): Set the thread's resumed flag. Return early if the
4285 thread has a pending status. Allow stepping a breakpoint with no
4286 signal.
4287 (proceed): Adjust to check 'resumed' instead of 'executing'.
4288 (clear_proceed_status_thread): If the thread has a pending status,
4289 and that status is a finished step, discard the pending status.
4290 (clear_proceed_status): Don't clear step_over_info here.
4291 (random_pending_event_thread, do_target_wait): New functions.
4292 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4293 do_target_wait.
4294 (wait_one): New function.
4295 (THREAD_STOPPED_BY): New macro.
4296 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4297 (thread_stopped_by_hw_breakpoint): New functions.
4298 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4299 functions.
4300 (handle_inferior_event): Also call set_resumed(false) on all
4301 threads implicitly stopped by the event.
4302 (restart_threads, resumed_thread_with_pending_status): New
4303 functions.
4304 (finish_step_over): If we were doing an in-line step-over before,
4305 and no longer are after trying to start a new step-over, restart
4306 all threads. If we have multiple threads with pending events,
4307 save the current event and go through the event loop again.
4308 (handle_signal_stop): Return early if finish_step_over returns
4309 false.
4310 <random signal>: If we get a signal while stepping over a
4311 breakpoint in-line in non-stop mode, restart all threads. Clear
4312 step_over_info before delivering the signal.
4313 (keep_going_stepped_thread): Use internal_error instead of
4314 gdb_assert. Mark the thread as resumed.
4315 (keep_going_pass_signal): Assert the thread isn't already resumed.
4316 If some other thread is doing an in-line step-over, defer the
4317 resume. If we just started a new in-line step-over, stop all
4318 threads. Don't clear step_over_info.
4319 (infrun_async_inferior_event_handler): New function.
4320 (_initialize_infrun): Create async event handler with
4321 infrun_async_inferior_event_handler as callback.
4322 (infrun_async): New declaration.
4323 * target.c (target_async): New function.
4324 * target.h (target_async): Declare macro and readd as function
4325 declaration.
4326 * target/waitstatus.h (enum target_stop_reason)
4327 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4328 * thread.c (new_thread): Clear the new waitstatus field.
4329 (set_resumed): New function.
4330
2ac7589c
PA
43312015-08-07 Pedro Alves <palves@redhat.com>
4332
4333 * infrun.c (keep_going_stepped_thread): New function, factored out
4334 from ...
4335 (switch_back_to_stepped_thread): ... here.
4336
8b061563
PA
43372015-08-07 Pedro Alves <palves@redhat.com>
4338
4339 * infrun.c (currently_stepping): Extend intro comment.
4340 * target.h (target_resume): Extend intro comment.
4341
1afd5965
PA
43422015-08-07 Pedro Alves <palves@redhat.com>
4343
4344 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4345 of inferior_ptid. If the stepped thread vanished, return 0
4346 instead of resuming here. Use reset_ecs. Print the prev_pc and
4347 the current stop_pc in log message. Clear trap_expected if the
4348 thread advanced. Don't pass currently_stepping to
4349 do_target_resume.
4350
4d9d9d04
PA
43512015-08-07 Pedro Alves <palves@redhat.com>
4352
4353 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4354 * infrun.c (struct execution_control_state): Move higher up in the
4355 file.
4356 (reset_ecs): New function.
4357 (start_step_over): Now returns int. Rewrite to use
4358 keep_going_pass_signal instead of manually starting a displaced step.
4359 (resume): Don't call set_running here. If displaced stepping
4360 can't start now, clear trap_expected.
4361 (find_thread_needs_step_over): Delete function.
4362 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4363 If the current thread needs a step over, push it in the step-over
4364 chain. Don't set insert breakpoints nor call resume directly
4365 here. Instead rewrite to use start_step_over and
4366 keep_going_pass_signal.
4367 (finish_step_over): New function.
4368 (handle_signal_stop): Call finish_step_over instead of
4369 start_step_over.
4370 (switch_back_to_stepped_thread): If the event thread needs another
4371 step-over do that first. Use start_step_over.
4372 (keep_going_pass_signal): New function, factored out from ...
4373 (keep_going): ... here.
4374 (_initialize_infrun): Comment moved here.
4375 * thread.c (set_running_thread): New function.
4376 (set_running, finish_thread_state): Use set_running_thread.
4377
c2829269
PA
43782015-08-07 Pedro Alves <palves@redhat.com>
4379
4380 * gdbthread.h (struct thread_info) <step_over_prev,
4381 step_over_next>: New fields.
4382 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4383 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4384 declarations.
4385 * infrun.c (struct displaced_step_request): Delete.
4386 (struct displaced_step_inferior_state) <step_request_queue>:
4387 Delete field.
4388 (displaced_step_prepare): Assert that trap_expected is set. Use
4389 thread_step_over_chain_enqueue. Split starting a new displaced
4390 step to ...
4391 (start_step_over): ... this new function.
4392 (resume): Assert the thread isn't waiting for a step over already.
4393 (proceed): Assert the thread isn't waiting for a step over
4394 already.
4395 (infrun_thread_stop_requested): Adjust to remove threads from the
4396 embedded step-over chain.
4397 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4398 displaced_step_fixup.
4399 (handle_signal_stop): Call start_step_over after
4400 displaced_step_fixup.
4401 * infrun.h (step_over_queue_head): New declaration.
4402 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4403 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4404 (thread_step_over_chain_enqueue)
4405 (thread_step_over_chain_remove): New functions.
4406 (delete_thread_1): Remove thread from the step-over chain.
4407
6c4cfb24
PA
44082015-08-07 Pedro Alves <palves@redhat.com>
4409
4410 * infrun.c (thread_still_needs_step_over): Rename to ...
4411 (thread_still_needs_step_over_bp): ... this.
4412 (enum step_over_what): New.
4413 (thread_still_needs_step_over): Reimplement.
4414
567420d1
PA
44152015-08-07 Pedro Alves <palves@redhat.com>
4416
4417 * remote.c (remote_wait_as): If not waiting for a stop reply,
4418 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4419 requested, don't block waiting forever.
4420
d8dd4d5f
PA
44212015-08-07 Pedro Alves <pedro@codesourcery.com>
4422
4423 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4424 waitstatus pointers instead of an ecs. Adjust.
4425 (handle_inferior_event): Adjust caller.
4426
e1316e60
PA
44272015-08-07 Pedro Alves <palves@redhat.com>
4428
4429 * infrun.c (handle_inferior_event): If we get
4430 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4431 mode, mark all threads of the exiting process as not-executing.
4432 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4433 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4434 exiting process, if inferior_ptid still points at a process.
4435 * thread.c (struct current_thread_cleanup) <next>: New field.
4436 (current_thread_cleanup_chain): New global.
4437 (restore_current_thread_ptid_changed): New function.
4438 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4439 current_thread_cleanup_chain list.
4440 (make_cleanup_restore_current_thread): Add the cleanup data to the
4441 current_thread_cleanup_chain list.
4442 (_initialize_thread): Install restore_current_thread_ptid_changed
4443 as thread_ptid_changed observer.
4444
47e9c225
JB
44452015-08-07 Joel Brobecker <brobecker@adacore.com>
4446
4447 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4448 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4449 smaller than expected.
4450
06096720
AB
44512015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4452
4453 * stack.c (get_frame_language): Moved ...
4454 * frame.c (get_frame_language): ... to here.
4455 * language.h (get_frame_language): Declaration moved to frame.h.
4456 * frame.h: Add language.h include, for language enum.
4457 (get_frame_language): Declaration moved from language.h.
4458 * language.c: Add frame.h include.
4459 * top.c: Add frame.h include.
4460 * symtab.h (struct obj_section): Declare.
4461 (struct cmd_list_element): Declare.
4462
7ff38b1c
AB
44632015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4464
4465 * language.c (show_language_command): Find selected frame before
4466 asking for the language of that frame.
4467 (set_language_command): Likewise.
4468 * language.h (get_frame_language): Add frame parameter.
4469 * stack.c (get_frame_language): Add frame parameter, assert
4470 parameter is not NULL, update comment and reindent.
4471 * top.c (check_frame_language_change): Pass the selected frame
4472 into get_frame_language.
4473
da8c46d2
MM
44742015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4475
4476 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4477 (pt_btrace_insn_flags): New.
4478 (ftrace_add_pt): Call pt_btrace_insn_flags.
4479 * btrace.h (btrace_insn_flag): New.
4480 (btrace_insn) <flags>: New.
4481 * record-btrace.c (btrace_insn_history): Print insn prefix.
4482 * NEWS: Announce it.
4483
5599c404
MM
44842015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4485
4486 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4487 * configure: Regenerate.
4488
016a3251
DD
44892015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4490
4491 * Makefile.in (LIBICONV): Define.
4492 (CLIBS): Add LIBICONV.
4493 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4494 * configure: Regenerate.
4495
aead7601
SM
44962015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4497 Pedro Alves <palves@redhat.com>
4498
4499 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4500 (arm_set_abi): Likewise.
4501 * ax-general.c (ax_print): Likewise.
4502 * c-exp.y (exp : string_exp): Likewise.
4503 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4504 (do_compile_dwarf_expr_to_c): Likewise.
4505 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4506 Likewise.
4507 * dwarf2expr.c (execute_stack_op): Likewise.
4508 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4509 (disassemble_dwarf_expression): Likewise.
4510 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4511 (read_array_order): Likewise.
4512 (abbrev_table_read_table): Likewise.
4513 (read_attribute_value): Likewise.
4514 (skip_unknown_opcode): Likewise.
4515 (dwarf_decode_macro_bytes): Likewise.
4516 (dwarf_decode_macros): Likewise.
4517 * eval.c (value_f90_subarray): Likewise.
4518 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4519 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4520 * infrun.c (handle_command): Likewise.
4521 * memory-map.c (memory_map_start_memory): Likewise.
4522 * osabi.c (set_osabi): Likewise.
4523 * parse.c (operator_length_standard): Likewise.
4524 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4525 single return point.
4526 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4527 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4528 (gdbpy_lookup_global_symbol): Likewise.
4529 * record-full.c (record_full_restore): Likewise.
4530 * regcache.c (regcache_register_status): Likewise.
4531 (regcache_raw_read): Likewise.
4532 (regcache_cooked_read): Likewise.
4533 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4534 * symtab.c (initialize_ordinary_address_classes): Likewise.
4535 * target-debug.h (target_debug_print_signals): Likewise.
4536 * utils.c (do_restore_current_language): Likewise.
4537
ca0a5f0b
CD
45382015-08-06 Clem Dickey <clemd@acm.org>
4539
4540 PR python/17136
4541 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4542
05d999b0
SM
45432015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4544
4545 * complaints.c (enum complaint_series): Add newlines and remove
4546 out of date comment.
4547 (struct complaints) <series>: Change type to enum
4548 complaint_series and remove out of date comment.
4549 (symfile_complaint_hook): Use equivalent enum value
4550 ISOLATED_MESSAGE instead of 0.
4551
bf47e248
PA
45522015-08-06 Pedro Alves <palves@redhat.com>
4553
4554 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4555 returned > 0.
4556
b6b9ffcc
PL
45572015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4558
4559 * common/agent.c (symbol_list) <required>: Remove.
4560
863d01bd
PA
45612015-08-06 Pedro Alves <palves@redhat.com>
4562
4563 * target/waitstatus.h (enum target_stop_reason)
4564 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4565
0a39bb32
PA
45662015-08-05 Pedro Alves <palves@redhat.com>
4567 Joel Brobecker <brobecker@adacore.com>
4568
9d996aba 4569 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
4570 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4571 case where BS->STOP is not set.
4572
260439cb
UW
45732015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4574
4575 * nat/gdb_thread_db.h: Add copyright header.
4576 Protect against multiple inclusion.
4577
d89fa914
YQ
45782015-08-05 Yao Qi <yao.qi@linaro.org>
4579
4580 * aarch64-linux-nat.c (get_thread_id): Remove.
4581 (debug_reg_change_callback): Call ptid_get_lwp instead of
4582 get_thread_id.
4583 (fetch_gregs_from_thread): Likewise.
4584 (store_gregs_to_thread): Likewise.
4585 (fetch_fpregs_from_thread): Likewise.
4586 (store_fpregs_to_thread): Likewise.
4587 (aarch64_linux_get_debug_reg_capacity): Likewise.
4588 * arm-linux-nat.c (get_thread_id): Remove.
4589 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4590 * xtensa-linux-nat.c (get_thread_id): Remove.
4591 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4592 * arm-linux-nat.c (get_thread_id): Remove.
4593 (GET_THREAD_ID): Remove.
4594 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4595 (store_fpregs, fetch_regs, store_regs): Likewise.
4596 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4597 (fetch_vfp_regs, store_vfp_regs): Likewise.
4598 (arm_linux_read_description): Likewise.
4599 (arm_linux_get_hwbp_cap): Likewise.
4600 * xtensa-linux-nat.c (get_thread_id): Remove.
4601 (GET_THREAD_ID): Remove.
4602 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4603 GET_THREAD_ID.
4604
4efd80aa
CS
46052015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4606
4607 * python/py-linetable.c: Fix case of Linetable to LineTable
4608 in docstrings and code comments.
4609 * python/py-symtab.c: Same.
4610
c6343a91
JK
46112015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4612
4613 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4614
978b9495
JK
46152015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4616
4617 PR gdb/18767
4618 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4619 use.
4620
96e9210f
PA
46212015-08-04 Pedro Alves <palves@redhat.com>
4622
4623 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4624 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4625 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4626 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4627 (td_thr_validate_ftype, td_thr_get_info_ftype)
4628 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4629 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4630 New typedefs.
4631 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4632 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4633 local macros and use them instead of verbose_dlsym and dlsym
4634 calls.
4635
af60a1ef
SL
46362015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4637
4638 * nios2-tdep.h: Include opcode/nios2.h here.
4639 (NIOS2_CDX_OPCODE_SIZE): New.
4640 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4641 * nios2-tdep.c: Don't include opcode/nios2.h here.
4642 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4643 4-byte read fails.
4644 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4645 (nios2_match_addi, nios2_match_orhi): Likewise.
4646 (nios2_match_stw, nios2_match_ldw): Likewise.
4647 (nios2_match_rdctl): Likewise.
4648 (nios2_match_stwm, nios2_match_ldwm): New.
4649 (nios2_match_branch): Add cases for R2 encodings.
4650 (nios2_match_jmpi, nios2_match_calli): Likewise.
4651 (nios2_match_jmpr, nios2_match_callr): Likewise.
4652 (nios2_match_break, nios2_match_trap): Likewise.
4653 (nios2_in_epilogue_p): Add R2 support.
4654 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4655 prologues.
4656 (nios2_breakpoint_from_pc): Handle R2 instructions.
4657 (nios2_get_next_pc): Likewise. Adjust call to
4658 tdep->syscall_next_pc.
4659 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4660 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4661 instruction field macros instead of literal hex values.
4662 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4663 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4664 Use size field from OP instead of assuming all instructions
4665 are the same size.
4666 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4667
1da03605
UW
46682015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4669
4670 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4671 variable warning with some compilers.
4672
8156fe7f
YQ
46732015-08-03 Yao Qi <yao.qi@linaro.org>
4674
4675 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4676 in comment. Replace "rw" with "type".
4677 (arm_linux_remove_watchpoint): Change type of "rw" to
4678 "enum target_hw_bp_type".
4679
835a09d9
PMR
46802015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4681
4682 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4683 lookup_symbol.
4684 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4685 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4686 * mt-tdep.c (mt_skip_prologue): Likewise.
4687 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4688
d12307c1
PMR
46892015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4690
4691 * ada-exp.y (write_object_renaming): Replace struct
4692 ada_symbol_info with struct block_symbol. Update field
4693 references accordingly.
4694 (block_lookup, select_possible_type_sym): Likewise.
4695 (find_primitive_type): Likewise. Also update call to
4696 ada_lookup_symbol to extract the symbol itself.
4697 (write_var_or_type, write_name_assoc): Likewise.
4698 * ada-lang.h (struct ada_symbol_info): Remove.
4699 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4700 struct block_symbol.
4701 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4702 (ada_lookup_symbol): Return struct block_symbol instead of a
4703 mere symbol.
4704 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4705 with struct block_symbol.
4706 (resolve_subexp, ada_resolve_function, sort_choices,
4707 user_select_syms, is_nonfunction, add_defn_to_vec,
4708 num_defns_collected, defns_collected,
4709 symbols_are_identical_enums, remove_extra_symbols,
4710 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4711 ada_lookup_symbol_list, ada_iterate_over_symbols,
4712 ada_lookup_encoded_symbol, get_var_value): Likewise.
4713 (ada_lookup_symbol): Return a block_symbol instead of a mere
4714 symbol. Replace struct ada_symbol_info with struct
4715 block_symbol.
4716 (ada_lookup_symbol_nonlocal): Likewise.
4717 (standard_lookup): Make block passing explicit through
4718 lookup_symbol_in_language.
4719 * ada-tasks.c (get_tcb_types_info): Update the calls to
4720 lookup_symbol_in_language to extract the mere symbol out of the
4721 returned value.
4722 (ada_tasks_inferior_data_sniffer): Likewise.
4723 * ax-gdb.c (gen_static_field): Likewise for the call to
4724 lookup_symbol.
a5fdf78a 4725 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
4726 lookup functions.
4727 (gen_expr): Likewise.
4728 * c-exp.y: Likewise. Remove uses of block_found.
4729 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4730 (classify_name): Likewise. Rename the "sym" local variable to
4731 "bsym".
4732 * c-valprint.c (print_unpacked_pointer): Likewise.
4733 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4734 "sym" parameter from struct symbol * to struct block_symbol.
4735 Use it to remove uses of block_found. Deal with struct
a5fdf78a 4736 block_symbol from lookup functions.
d12307c1
PMR
4737 (gcc_convert_symbol): Likewise. Update the call to
4738 convert_symbol_sym.
4739 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 4740 struct block_symbol from lookup functions.
d12307c1
PMR
4741 * cp-namespace.c (cp_lookup_nested_symbol_1,
4742 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4743 cp_search_static_and_baseclasses,
4744 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4745 cp_lookup_symbol_imports_or_template,
4746 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4747 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
4748 find_symbol_in_baseclass): Return struct block_symbol instead of
4749 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
4750 functions.
4751 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 4752 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
4753 lookup functions.
4754 * cp-support.h (cp_lookup_symbol_nonlocal,
4755 cp_lookup_symbol_from_namespace,
4756 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 4757 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
4758 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4759 push_module_name):
a5fdf78a 4760 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
4761 uses of block_found.
4762 * eval.c (evaluate_subexp_standard): Update call to
4763 cp_lookup_symbol_namespace.
a5fdf78a
PMR
4764 * f-exp.y: Deal with struct block_symbol from lookup functions.
4765 Remove uses of block_found.
d12307c1
PMR
4766 (yylex): Likewise.
4767 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4768 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 4769 struct block_symbol from lookup functions.
d12307c1
PMR
4770 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4771 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4772 (gdbscm_lookup_global_symbol): Likewise.
4773 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4774 * go-exp.y: Likewise. Remove uses of block_found.
4775 (package_name_p, classify_packaged_name, classify_name):
4776 Likewise.
4777 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4778 * jv-exp.y (push_variable): Likewise.
4779 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4780 * language.c (language_bool_type): Likewise.
4781 * language.h (struct language_defn): Update
a5fdf78a
PMR
4782 la_lookup_symbol_nonlocal to return a struct block_symbol rather
4783 than a mere symbol.
4784 * linespec.c (find_label_symbols): Deal with struct block_symbol
4785 from lookup functions.
d12307c1
PMR
4786 * m2-exp.y: Likewise. Remove uses of block_found.
4787 (yylex): Likewise.
4788 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4789 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4790 * p-exp.y: Likewise. Remove uses of block_found.
4791 (yylex): Likewise.
4792 * p-valprint.c (pascal_val_print): Likewise.
4793 * parse.c (write_dollar_variable): Likewise. Remove uses of
4794 block_found.
4795 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
4796 struct block_symbol.
4797 * printcmd.c (address_info): Deal with struct block_symbol from
4798 lookup functions.
d12307c1
PMR
4799 * python/py-frame.c (frapy_read_var): Likewise.
4800 * python/py-symbol.c (gdbpy_lookup_symbol,
4801 gdbpy_lookup_global_symbol): Likewise.
4802 * skip.c (skip_function_command): Likewise.
4803 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 4804 block_symbol instead of a mere symbol.
d12307c1
PMR
4805 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4806 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4807 * solib.c (solib_global_lookup): Likewise.
4808 * solist.h (solib_global_lookup): Likewise.
4809 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
4810 return a struct block_symbol rather than a mere symbol.
4811 * source.c (select_source_symtab): Deal with struct block_symbol
4812 from lookup functions.
d12307c1
PMR
4813 * stack.c (print_frame_args, iterate_over_block_arg_vars):
4814 Likewise.
4815 * symfile.c (set_initial_language): Likewise.
4816 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 4817 block_symbol.
d12307c1
PMR
4818 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4819 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 4820 block_symbol.
d12307c1 4821 (block_found): Remove.
a5fdf78a 4822 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 4823 cache slots.
a5fdf78a
PMR
4824 (symbol_cache_lookup): Return a struct block_symbol rather than
4825 a mere symbol.
d12307c1
PMR
4826 (symbol_cache_mark_found): Add a BLOCK parameter to fill
4827 appropriately the cache slots. Update callers.
4828 (symbol_cache_dump): Update cache slots handling to the type
4829 change.
4830 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4831 lookup_symbol_aux, lookup_local_symbol,
4832 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4833 lookup_symbol_in_objfile_symtabs,
4834 lookup_symbol_in_objfile_from_linkage_name,
4835 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4836 lookup_symbol_in_static_block, lookup_static_symbol,
4837 lookup_global_symbol):
a5fdf78a
PMR
4838 Return a struct block_symbol rather than a mere symbol. Deal
4839 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
4840 uses of block_found.
4841 (lookup_symbol_in_block): Remove uses of block_found.
4842 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 4843 struct block_symbol.
d12307c1
PMR
4844 (lookup_symbol_global_iterator_cb): Update references to the
4845 RESULT field.
a5fdf78a 4846 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 4847 functions.
a5fdf78a 4848 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
4849 (block_found): Remove.
4850 (lookup_symbol_in_language, lookup_symbol,
4851 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
4852 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
4853 lookup_global_symbol_from_objfile): Return a struct block_symbol
4854 rather than just a mere symbol. Update comments to remove
4855 mentions of block_found.
d12307c1
PMR
4856 * valops.c (find_function_in_inferior,
4857 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 4858 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
4859 functions.
4860 * value.c (value_static_field, value_fn_field): Likewise.
4861
b1c59ddc
SM
48622015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4863
4864 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
4865 instead of integer.
4866
f486487f 48672015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 4868 Pedro Alves <palves@redhat.com>
f486487f
SM
4869
4870 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
4871 type or value instead of integer.
4872 (aarch64_linux_insert_watchpoint): Likewise.
4873 (aarch64_linux_remove_watchpoint): Likewise.
4874 * ada-lang.c (ada_op_print_tab): Likewise.
4875 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
4876 (amd64_linux_syscall_record_common): Likewise.
4877 * arch-utils.c (target_byte_order_user): Likewise.
4878 (default_byte_order): Likewise.
4879 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
4880 (arm_linux_get_hwbp_type): Likewise.
4881 (arm_linux_hw_watchpoint_initialize): Likewise.
4882 (arm_linux_insert_watchpoint): Likewise.
4883 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
4884 (arm_linux_syscall_record): Likewise.
4885 * breakpoint.c (update_watchpoint): Likewise.
4886 (breakpoint_here_p): Likewise.
4887 (bpstat_print): Likewise.
4888 (enable_breakpoint_disp): Likewise.
4889 * c-lang.c (c_op_print_tab): Likewise.
4890 * cli/cli-decode.c (add_info_alias): Likewise.
4891 * d-lang.c (d_op_print_tab): Likewise.
4892 * eval.c (evaluate_subexp_standard): Likewise.
4893 * f-exp.y (dot_ops): Likewise.
4894 (f77_keywords): Likewise.
4895 * f-lang.c (f_op_print_tab): Likewise.
4896 * go-lang.c (go_op_print_tab): Likewise.
4897 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
4898 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
4899 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4900 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
4901 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
4902 (struct scm_from_stringn_data): Likewise.
4903 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4904 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4905 (ia64_linux_remove_watchpoint): Likewise.
4906 (ia64_linux_can_use_hw_breakpoint): Likewise.
4907 * infrun.c (print_stop_event): Likewise.
4908 * jv-lang.c (java_op_print_tab): Likewise.
4909 * linux-nat.c (linux_proc_xfer_partial): Likewise.
4910 * linux-nat.h (struct lwp_info): Likewise.
4911 * linux-thread-db.c (enable_thread_event): Likewise.
4912 * m2-lang.c (m2_op_print_tab): Likewise.
4913 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4914 (mi_cmd_stack_list_variables): Likewise.
4915 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
4916 * mi/mi-out.c (mi_table_begin): Likewise.
4917 (mi_table_header): Likewise.
4918 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
4919 (mips_linux_insert_watchpoint): Likewise.
4920 (mips_linux_remove_watchpoint): Likewise.
4921 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
4922 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
4923 (mips_linux_watch_type_to_irw): Likewise.
4924 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4925 (procfs_insert_hw_watchpoint): Likewise.
4926 (procfs_remove_hw_watchpoint): Likewise.
4927 (procfs_hw_watchpoint): Likewise.
4928 (procfs_can_use_hw_breakpoint): Likewise.
4929 (procfs_remove_hw_watchpoint): Likewise.
4930 (procfs_insert_hw_watchpoint): Likewise.
4931 * p-lang.c (pascal_op_print_tab): Likewise.
4932 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
4933 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
4934 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
4935 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4936 (procfs_insert_watchpoint): Likewise.
4937 (procfs_remove_watchpoint): Likewise.
4938 * psymtab.c (recursively_search_psymtabs): Likewise.
4939 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
4940 (m32r_insert_watchpoint): Likewise.
4941 * remote-mips.c (mips_can_use_watchpoint): Likewise.
4942 (mips_insert_watchpoint): Likewise.
4943 (mips_remove_watchpoint): Likewise.
4944 * remote.c (watchpoint_to_Z_packet): Likewise.
4945 (remote_insert_watchpoint): Likewise.
4946 (remote_remove_watchpoint): Likewise.
4947 (remote_check_watch_resources): Likewise.
4948 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4949 (s390_remove_watchpoint): Likewise.
4950 (s390_can_use_hw_breakpoint): Likewise.
4951 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4952 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
4953 * target.h (struct target_ops): Likewise.
4954 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4955 * ui-out.c (struct ui_out_hdr): Likewise.
4956 (append_header_to_list): Likewise.
4957 (get_next_header): Likewise.
4958 (verify_field): Likewise.
4959 (ui_out_begin): Likewise.
4960 (ui_out_field_int): Likewise.
4961 (ui_out_field_fmt_int): Likewise.
4962 (ui_out_field_skip): Likewise.
4963 (ui_out_field_string): Likewise.
4964 (ui_out_field_fmt): Likewise.
4965 * varobj.c (new_variable): Likewise.
4966 * x86-nat.c (x86_insert_watchpoint): Likewise.
4967 (x86_remove_watchpoint): Likewise.
4968 (x86_can_use_hw_breakpoint): Likewise.
4969 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
4970 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
4971 previously anonymous enumeration type..
4972 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
4973 value.
4974 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
4975 (target_debug_print_enum_bptype): New.
4976 * target-delegates.c: Regenerate.
4977
e1b5381f
SL
49782015-07-30 Sandra Loosemore <sandra@codesourcery.com>
4979
4980 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
4981 already says and disallow non-stack memory writes in the prologue.
4982
9aaf8e3a
SL
49832015-07-30 Sandra Loosemore <sandra@codesourcery.com>
4984
4985 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
4986 reflect how current GCC emits stack overflow checks. Match
4987 both trap and break instructions for backward compatbility.
4988 Disallow other trap and break instructions in the prologue.
4989
69dde7dc
PA
49902015-07-30 Pedro Alves <palves@redhat.com>
4991
4992 PR threads/18600
4993 * linux-nat.c (wait_lwp): Report to the core when thread group
4994 leader exits.
4995
4dd63d48
PA
49962015-07-30 Pedro Alves <palves@redhat.com>
4997 Simon Marchi <simon.marchi@ericsson.com>
4998
4999 PR threads/18600
5000 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5001 mark the new thread as resumed. Remove STOPPING parameter.
5002 (wait_lwp): Adjust call to linux_handle_extended_wait.
5003 (linux_nat_filter_event): Adjust call to
5004 linux_handle_extended_wait.
5005 (resume_stopped_resumed_lwps): Add debug output.
5006
6b940e6a
PL
50072015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5008
5009 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5010 isize argument.
5011 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5012 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5013 gdbarch_fast_tracepoint_valid_at.
5014 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5015 * gdbarch.h: Regenerate.
5016 * gdbarch.c: Regenerate.
5017 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5018 argument. Do not set it.
5019 * remote.c (remote_download_tracepoint): Adjust call to
5020 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5021 the instruction length.
5022
ec741292
YQ
50232015-07-30 Yao Qi <yao.qi@linaro.org>
5024
5025 * arm-tdep.h (enum gdb_regnum): Move it to ...
5026 * arch/arm.h: ... here. New file.
5027 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5028
0ea6402e
PL
50292015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5030
5031 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5032 Change its type to int *.
5033 (decode_br): Rename link argument to is_blr. Change its type to
5034 int *.
5035 (decode_cb): Rename op argument to is_cbnz. Change its type to
5036 int *.
5037 (decode_tb): Rename op argument to is_tbnz. Change its type to
5038 int *. Set is_tbnz to either 1 or 0.
5039 (aarch64_analyze_prologue): Change type of is_link to int. Add
5040 new variables is_cbnz and is_tbnz. Adjust call to
5041 aarch64_decode_cb and aarch64_decode_tb.
5042
aa58a496
SM
50432015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5044
5045 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5046 parameter.
5047 (mips_linux_new_thread): Likewise.
5048 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5049
18206ca3
PP
50502015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5051
5052 * top.c: Include "tui/tui.h".
5053 (undo_terminal_modifications_before_exit): New static function.
5054 (quit_force): Use it.
5055
7afa63c6
PP
50562015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5057
5058 * target.c (terminal_state): Initialize to terminal_is_ours.
5059
cc9f16aa
YQ
50602015-07-29 Yao Qi <yao.qi@linaro.org>
5061
5062 PR record/18691
5063 * dcache.c (dcache_read_memory_partial): Call
5064 raw_memory_xfer_partial.
5065 * target.c (raw_memory_xfer_partial): Make it non-static.
5066 * target.h (raw_memory_xfer_partial): Declare.
5067
3ae385af
SM
50682015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5069
5070 * c-valprint.c (c_val_print_array): Consider addressable memory
5071 unit size.
5072 (c_val_print_ptr): Likewise.
5073 (c_val_print_int): Likewise.
5074 * findvar.c (read_frame_register_value): Likewise.
5075 * valarith.c (find_size_for_pointer_math): Likewise.
5076 (value_ptrdiff): Likewise.
5077 (value_subscripted_rvalue): Likewise.
5078 * valops.c (read_value_memory): Likewise (and rename variables).
5079 (value_assign): Likewise.
5080 (value_repeat): Likewise.
5081 (value_array): Likewise.
5082 (value_slice): Likewise.
5083 * valprint.c (generic_val_print_ptr): Likewise.
5084 (generic_val_print_enum): Likewise.
5085 (generic_val_print_bool): Likewise.
5086 (generic_val_print_int): Likewise.
5087 (generic_val_print_char): Likewise.
5088 (generic_val_print_float): Likewise.
5089 (generic_val_print_decfloat): Likewise.
5090 (generic_val_print_complex): Likewise.
5091 (val_print_scalar_formatted): Likewise.
5092 (val_print_array_elements): Likewise.
5093 * value.c (set_value_parent): Likewise.
5094 (value_contents_copy_raw): Likewise.
5095 (set_internalvar_component): Likewise.
5096 (value_primitive_field): Likewise.
5097 (value_fetch_lazy): Likewise.
5098 * value.h (read_value_memory): Update comment.
5099
e512cdbd
SM
51002015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5101
5102 * value.c (get_value_arch): New function.
5103 * value.h (get_value_arch): New declaration.
5104
3723fda8
SM
51052015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5106
5107 * value.c (struct value): Update comments.
5108
2e056931
SM
51092015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5110
5111 * gdbtypes.c (type_length_units): New function.
5112 * gdbtypes.h (type_length_units): New declaration.
5113 (struct type) <length>: Update comment.
5114
0c87c0bf
SM
51152015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5116
5117 * valprint.c (generic_val_print): Factor out complex
5118 printing code to ...
5119 (generic_val_print_complex): ... this new function.
5120
9550ae5e
SM
51212015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5122
5123 * valprint.c (generic_val_print): Factor out decfloat
5124 printing code to ...
5125 (generic_val_print_decfloat): ... this new function.
5126
7784724b
SM
51272015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5128
5129 * valprint.c (generic_val_print): Factor out float
5130 printing code to ...
5131 (generic_val_print_float): ... this new function.
5132
385f5aff
SM
51332015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5134
5135 * valprint.c (generic_val_print): Factor out char
5136 printing code to ...
5137 (generic_val_print_char): ... this new function.
5138
b21b6342
SM
51392015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5140
5141 * valprint.c (generic_val_print): Factor out integer
5142 printing code to ...
5143 (generic_val_print_int): ... this new function.
5144
e5bead4b
SM
51452015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5146
5147 * valprint.c (generic_val_print): Factor out bool
5148 printing code to ...
5149 (generic_val_print_bool): ... this new function.
5150
4a8c372f
SM
51512015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5152
5153 * valprint.c (generic_val_print): Factor out function/method
5154 printing code to ...
5155 (generic_val_print_func): ... this new function.
5156
d93880bd
SM
51572015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5158
5159 * valprint.c (generic_val_print): Factor out flags
5160 printing code to ...
5161 (generic_val_print_flags): ... this new function.
5162
ef0bc0dd
SM
51632015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5164
5165 * valprint.c (generic_val_print): Factor out enum
5166 printing code to ...
5167 (generic_val_print_enum): ... this new function.
5168
fe43fede
SM
51692015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5170
5171 * valprint.c (generic_val_print): Factor out reference
5172 printing code to ...
5173 (generic_val_print_ref): ... this new function.
5174
45000ea2
SM
51752015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5176
5177 * valprint.c (generic_val_print): Factor out memberptr
5178 printing code to ...
5179 (generic_val_print_memberptr): ... this new function.
5180
81eb921a
SM
51812015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5182
5183 * valprint.c (generic_val_print): Factor out pointer
5184 printing code to ...
5185 (generic_val_print_ptr): ... this new function.
5186
557dbe8a
SM
51872015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5188
5189 * valprint.c (generic_val_print): Factor out array
5190 printing code to ...
5191 (generic_val_print_array): ... this new function.
5192
9f436164
SM
51932015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5194
5195 * valprint.c (generic_val_print): Factor out
5196 print_unpacked_pointer code to ...
5197 (print_unpacked_pointer): ... this new function.
5198
077836f7
PP
51992015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5200
5201 * event-top.c (handle_sigterm): Don't inspect
5202 target_can_async_p. Always set the quit flag and always mark
5203 the async signal handler.
5204
3a60804f
YQ
52052015-07-27 Yao Qi <yao.qi@linaro.org>
5206
5207 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5208
c9f35b34
KB
52092015-07-25 Kevin Buettner <kevinb@redhat.com>
5210
5211 * remote.c (read_ptid): Return null_ptid when no thread id
5212 is found.
5213 (remote_current_thread): Add log warning for malformed
5214 qC reply.
5215 (remote_start_remote): Add log warning when current thread
5216 not found.
5217
2b4cab86
PA
52182015-07-24 Pedro Alves <palves@redhat.com>
5219
5220 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5221 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5222 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5223
77598427
PA
52242015-07-24 Pedro Alves <palves@redhat.com>
5225
5226 PR gdb/18717
5227 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5228 is resumed, and extend the debug log.
5229
fe23c31f
PA
52302015-07-24 Pedro Alves <palves@redhat.com>
5231
5232 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5233
5826e159
PA
52342015-07-24 Pedro Alves <palves@redhat.com>
5235
5236 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5237 sys/ptrace.h.
5238 * alpha-linux-nat.c: Likewise.
5239 * amd64-linux-nat.c: Likewise.
5240 * arm-linux-nat.c: Likewise.
5241 * hppa-linux-nat.c: Likewise.
5242 * i386-linux-nat.c: Likewise.
5243 * ia64-linux-nat.c: Likewise.
5244 * linux-fork.c: Likewise.
5245 * linux-nat.c: Likewise.
5246 * m32r-linux-nat.c: Likewise.
5247 * m68klinux-nat.c: Likewise.
5248 * mips-linux-nat.c: Likewise.
5249 * nat/linux-btrace.c: Likewise.
5250 * nat/linux-ptrace.c: Likewise.
5251 * nat/linux-ptrace.h
5252 * nat/mips-linux-watch.c: Likewise.
5253 * nat/x86-linux-dregs.c: Likewise.
5254 * ppc-linux-nat.c: Likewise.
5255 * s390-linux-nat.c: Likewise.
5256 * spu-linux-nat.c: Likewise.
5257 * tilegx-linux-nat.c: Likewise.
5258 * x86-linux-nat.c: Likewise.
5259 * xtensa-linux-nat.c: Likewise.
5260
54019719
PA
52612015-07-24 Pedro Alves <palves@redhat.com>
5262
5263 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5264 __ptrace_request as first parameter type instead of int.
5265 (PTRACE_TYPE_ARG1): Define.
5266 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5267 that casts first argument to PTRACE_TYPE_ARG1.
5268 * config.in: Regenerate.
5269 * configure: Regenerate.
5270
e3790375
PA
52712015-07-24 Pedro Alves <palves@redhat.com>
5272
5273 * gdb_ptrace.h: Move ...
5274 * nat/gdb_ptrace.h: ... here.
5275 * inf-ptrace.c: Adjust.
5276
eb7aa561
PA
52772015-07-24 Pedro Alves <palves@redhat.com>
5278
5279 * acinclude.m4: Include ptrace.m4.
5280 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5281 * ptrace.m4: ... to this new file.
5282
cc12ce38
DE
52832015-07-23 Doug Evans <dje@google.com>
5284
5285 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5286 (load_cu): Handle dummy CUs.
5287 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5288 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5289
7b849db4
CS
52902015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5291
5292 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5293 documentation to say that it returns a list rather than
5294 a FrozenSet.
5295 (linetable_object_methods): Update the docstring of the
5296 "source_line" entry.
5297
d0d84780
PMR
52982015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5299
5300 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5301 type to the recursive call instead of the original (maybe
5302 TYPE_CODE_TYPEDEF) type.
5303
c2fbdc59
YQ
53042015-07-23 Yao Qi <yao.qi@linaro.org>
5305
5306 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5307 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5308 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5309
af1b22f3
YQ
53102015-07-21 Yao Qi <yao.qi@linaro.org>
5311
5312 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5313 Move it to nat/aarch64-linux-hw-point.c.
5314 (aarch64_linux_child_post_startup_inferior): Update.
5315 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5316 New function.
5317 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5318 Declare it.
5319
40e050d2
MM
53202015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5321
5322 * common/btrace-common.c (btrace_data_append): Change case label.
5323
3675a06a
YQ
53242015-07-20 Yao Qi <yao.qi@linaro.org>
5325
5326 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5327 Re-indent the code.
5328 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5329 "unsigned long long".
5330
b4e1fd61
KB
53312015-07-18 Kevin Buettner <kevinb@redhat.com>
5332
5333 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5334 to be set for SEC_ALLOC sections too.
5335
554717a3
YQ
53362015-07-17 Yao Qi <yao.qi@linaro.org>
5337
5338 * Makefile.in (HFILES_NO_SRCDIR): Add
5339 nat/aarch64-linux-hw-point.h.
5340 (aarch64-linux-hw-point.o): New rule.
5341 * nat/aarch64-linux-hw-point.h: New file.
5342 * nat/aarch64-linux-hw-point.c: New file.
5343 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5344 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5345 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5346 (AARCH64_HWP_ALIGNMENT): Likewise.
5347 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5348 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5349 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5350 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5351 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5352 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5353 (struct aarch64_debug_reg_state): Likewise.
5354 (struct arch_lwp_info): Likewise.
5355 (aarch64_linux_set_debug_regs): Likewise.
5356 (aarch64_notify_debug_reg_change): Remove static.
5357 (aarch64_align_watchpoint): Likewise.
5358 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5359 (aarch64_watchpoint_length): Likewise.
5360 (aarch64_point_encode_ctrl_reg): Likewise
5361 (aarch64_point_is_aligned): Likewise.
5362 (aarch64_dr_state_insert_one_point): Likewise.
5363 (aarch64_dr_state_remove_one_point): Likewise.
5364 (aarch64_handle_breakpoint): Likewise.
5365 (aarch64_handle_aligned_watchpoint): Likewise.
5366 (aarch64_handle_unaligned_watchpoint): Likewise.
5367 (aarch64_handle_watchpoint): Likewise.
5368 * config/aarch64/linux.mh (NAT_FILE): Add
5369 aarch64-linux-hw-point.o.
5370
c67ca4de
YQ
53712015-07-17 Yao Qi <yao.qi@linaro.org>
5372
5373 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5374 state and don't call aarch64_get_debug_reg_state. All callers
5375 update.
5376 (aarch64_linux_insert_hw_breakpoint): Call
5377 aarch64_get_debug_reg_state earlier.
5378 (aarch64_linux_remove_hw_breakpoint): Likewise.
5379 (aarch64_handle_aligned_watchpoint): Add argument state and
5380 don't call aarch64_get_debug_reg_state. All callers update.
5381 (aarch64_handle_unaligned_watchpoint): Likewise.
5382 (aarch64_handle_watchpoint): Add argument state.
5383 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5384 earlier.
5385 (aarch64_linux_remove_watchpoint): Likewise.
5386
25abf979
YQ
53872015-07-17 Yao Qi <yao.qi@linaro.org>
5388
5389 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5390 debug_printf.
5391 (aarch64_handle_unaligned_watchpoint): Likewise.
5392
2ecd81c2
YQ
53932015-07-17 Yao Qi <yao.qi@linaro.org>
5394
5395 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5396 argument type's type to 'enum target_hw_bp_type'.
5397 (aarch64_dr_state_remove_one_point): Likewise.
5398 (aarch64_handle_breakpoint): Likewise.
5399 (aarch64_linux_insert_hw_breakpoint): Likewise.
5400 (aarch64_linux_remove_hw_breakpoint): Likewise.
5401 (aarch64_handle_aligned_watchpoint): Likewise.
5402
e53b6938
YQ
54032015-07-17 Yao Qi <yao.qi@linaro.org>
5404
5405 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5406 ptid_get_pid instead of get_thread_id.
5407
6a49a997
YQ
54082015-07-17 Yao Qi <yao.qi@linaro.org>
5409
5410 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5411 (add_current_inferior_and_thread): Don't initialise ptid.
5412
4bcddace
PL
54132015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5414
5415 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5416 unavailable if invalid.
5417
db1ff28b
JK
54182015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5419
5420 Revert the previous 6 commits:
5421 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5422 Move gdb_regex* to common/
5423 Prepare linux_find_memory_regions_full & co. for move
5424 Move linux_find_memory_regions_full & co.
5425 gdbserver build-id attribute generator
5426 Validate symbol file using build-id
5427
ca5268b6
JK
54282015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5429 Jan Kratochvil <jan.kratochvil@redhat.com>
5430
5431 Validate symbol file using build-id.
5432 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5433 and 'show validate-build-id'. Add build-id attribute.
5434 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5435 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5436 * solib-frv.c (_initialize_frv_solib): Ditto.
5437 * solib-spu.c (set_spu_solib_ops): Ditto.
5438 * solib-svr4.c: Include rsp-low.h.
5439 (NOTE_GNU_BUILD_ID_NAME): New define.
5440 (svr4_validate): New function.
5441 (svr4_copy_library_list): Duplicate field build_id.
5442 (library_list_start_library): Parse 'build-id' attribute.
5443 (svr4_library_attributes): Add 'build-id' attribute.
5444 (_initialize_svr4_solib): Assign validate value.
5445 * solib-target.c (solib.h): Include.
5446 (_initialize_solib_target): Assign validate value.
5447 * solib.c (validate_build_id, show_validate_build_id): New.
5448 (solib_map_sections): Use ops->validate.
5449 (clear_so): Free build_id.
5450 (default_solib_validate): New function.
5451 (_initialize_solib): Add "validate-build-id".
5452 * solib.h (default_solib_validate): New declaration.
5453 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5454 (target_so_ops): New field 'validate'.
5455
700ca40f
JK
54562015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5457 Jan Kratochvil <jan.kratochvil@redhat.com>
5458
5459 gdbserver build-id attribute generator.
5460 * features/library-list-svr4.dtd (library-list-svr4): New
5461 'build-id' attribute.
5462
9904185c
JK
54632015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5464 Jan Kratochvil <jan.kratochvil@redhat.com>
5465
5466 Move linux_find_memory_regions_full & co.
5467 * linux-tdep.c (nat/linux-maps.h): Include.
5468 (gdb_regex.h): Remove the include.
5469 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5470 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5471 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5472 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5473 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5474 and target/target.h.
5475 (struct smaps_vmflags, read_mapping, decode_vmflags)
5476 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5477 (linux_find_memory_regions_full): Move from linux-tdep.c.
5478 * nat/linux-maps.h (read_mapping): New declaration.
5479 (linux_find_memory_region_ftype, enum filterflags): Moved from
5480 linux-tdep.c.
5481 (linux_find_memory_regions_full): New declaration.
5482 * target.c (target/target-utils.h): Include.
5483 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5484 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5485 definitions to target/target-utils.c.
5486 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5487 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5488 from target.c.
5489 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5490 (read_alloc): New declaration.
5491 (read_stralloc_func_ftype): New typedef.
5492 (read_stralloc): New declaration.
5493 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5494
f7af1fcd
JK
54952015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5496 Jan Kratochvil <jan.kratochvil@redhat.com>
5497
5498 Prepare linux_find_memory_regions_full & co. for move.
5499 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5500 (linux_find_memory_regions_full): Change signature and prepare
5501 for moving to linux-maps.
5502 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5503 (linux_find_memory_regions_thunk): New.
5504 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5505 (linux_find_memory_regions_gdb): New.
5506 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5507 (linux_make_mappings_corefile_notes): Use
5508 linux_find_memory_regions_gdb.
5509 * target.c (read_alloc_pread_ftype): New typedef.
5510 (target_fileio_read_alloc_1_pread): New function.
5511 (read_alloc): Refactor from target_fileio_read_alloc_1.
5512 (read_stralloc_func_ftype): New typedef.
5513 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5514 (read_stralloc): Refactored from target_fileio_read_stralloc.
5515 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5516
6e5b4429
JK
55172015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5518
5519 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5520 common/gdb_regex.h.
5521 (COMMON_OBS): Add gdb_regex.o.
5522 (gdb_regex.o): New.
5523 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5524 --without-included-regex and USE_INCLUDED_REGEX.
5525 * common/gdb_regex.c: New file from utils.c functions.
5526 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5527 file wrapping define name.
5528 * configure: Rebuilt.
5529 * configure.ac (gdb_use_included_regex, --without-included-regex)
5530 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5531 * gdb_regex.h: Move it to common/gdb_regex.h.
5532 * utils.c: Remove include gdb_regex.h.
5533 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5534 (compile_rx_or_error): Move them to common/gdb_regex.c.
5535
ddc98fbf
JK
55362015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5537 Jan Kratochvil <jan.kratochvil@redhat.com>
5538
5539 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5540 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5541 common/target-utils.h.
5542 (COMMON_OBS): Add target-utils.o.
5543 (linux-maps.o, target-utils.o): New.
5544 * target/target-utils.c: New file.
5545 * target/target-utils.h: New file.
5546 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5547 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5548 * nat/linux-maps.c: New file.
5549 * nat/linux-maps.h: New file.
5550
e7b01ce0
MM
55512015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5552 Pedro Alves <palves@redhat.com>
5553
5554 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5555 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5556 (perf_event_read_bts): Change the type of SIZE and READ.
5557 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5558 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5559 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5560 mmap page.
5561 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5562 buffer size to UINT_MAX.
5563 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5564 DATA_TAIL.
5565 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5566 <last_head>: Change type.
5567 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5568 * common/btrace-common.c (btrace_data_append): Change the type of
5569 SIZE.
5570 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5571 check.
5572
f168693b
SM
55732015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5574
5575 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5576 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5577 with check_typedef.
5578 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5579 (ada_array_length): Likewise.
5580 (find_parallel_type_by_descriptive_type): Likewise.
5581 (ada_check_typedef): Likewise.
5582 * arm-tdep.c (arm_return_in_memory): Likewise.
5583 * ax-gdb.c (gen_trace_static_fields): Likewise.
5584 (gen_struct_ref_recursive): Likewise.
5585 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5586 (variable: block COLONCOLON name): Likewise.
5587 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5588 * c-lang.c (classify_type): Likewise.
5589 * c-typeprint.c (c_print_type): Likewise.
5590 (c_print_typedef): Likewise.
5591 (c_type_print_base): Likewise.
5592 * c-valprint.c (c_val_print): Likewise.
5593 * compile/compile-c-types.c (convert_type): Likewise.
5594 * compile/compile-object-load.c (get_out_value_type): Likewise.
5595 * completer.c (add_struct_fields): Likewise.
5596 (expression_completer): Likewise.
5597 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5598 (cp_lookup_nested_symbol_1): Likewise.
5599 (cp_lookup_nested_symbol): Likewise.
5600 * cp-valprint.c (cp_print_value_fields): Likewise.
5601 (cp_print_static_field): Likewise.
5602 * d-valprint.c (d_val_print): Likewise.
5603 * eval.c (evaluate_subexp_standard): Likewise.
5604 (evaluate_subexp_for_sizeof): Likewise.
5605 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5606 * f-typeprint.c (f_type_print_base): Likewise.
5607 * f-valprint.c (f_val_print): Likewise.
5608 * gdbtypes.c (get_discrete_bounds): Likewise.
5609 (create_array_type_with_stride): Likewise.
5610 (type_name_no_tag_or_error): Likewise.
5611 (lookup_struct_elt_type): Likewise.
5612 (get_unsigned_type_max): Likewise.
5613 (internal_type_vptr_fieldno): Likewise.
5614 (set_type_vptr_fieldno): Likewise.
5615 (internal_type_vptr_basetype): Likewise.
5616 (set_type_vptr_basetype): Likewise.
5617 (get_vptr_fieldno): Likewise.
5618 (is_integral_type): Likewise.
5619 (is_scalar_type): Likewise.
5620 (is_scalar_type_recursive): Likewise.
5621 (distance_to_ancestor): Likewise.
5622 (is_unique_ancestor_worker): Likewise.
5623 (check_types_equal): Likewise.
5624 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5625
45280282
IB
56262015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5627
5628 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5629 also test for language_d.
5630 (dwarf2_compute_name): Likewise.
5631 (read_func_scope): Likewise.
5632 (read_structure_type): Likewise.
5633 (new_symbol_full): Likewise.
5634 (determine_prefix): Likewise.
5635 (read_import_statement): Use dot as the separator for language_d.
5636 (typename_concat): Likewise, but don't prefix the D main function.
5637
99fe86f7
PB
56382015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5639
5640 * nat/linux-namespaces.c (setns): Rename from this ...
5641 (do_setns): ... to this. Support calling setns if it exists.
5642 (mnsh_handle_setns): Call do_setns.
5643
d5131498
YQ
56442015-07-13 Yao Qi <yao.qi@linaro.org>
5645
5646 * exec.c (exec_file_attach): Add period at the end of error
5647 message.
5648
97605e61
AB
56492015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5650
5651 * tui/tui-win.c (window_name_completer): New function.
5652 (focus_completer): Call window_name_completer. All old content
5653 moved into window_name_completer.
5654 (winheight_completer): New function.
5655 (_initialize_tui_win): Rename variable. Add completer to
5656 winheight command. Update doc string on winheight.
5657
8d6dbeb4
SL
56582015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5659
5660 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5661 all nios2 mach variants.
5662
a0e28e54
KB
56632015-07-10 Kevin Buettner <kevinb@redhat.com>
5664
5665 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5666 of target_read_memory.
5667
c101f28f
AB
56682015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5669
5670 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5671 string copy.
5672 (parse_scrolling_args): Likewise.
5673
150375dc
AB
56742015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5675
5676 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5677 names in this function.
5678
6dce28e4
AB
56792015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5680
5681 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5682 (CMD_NAME): Likewise.
5683 (DATA_NAME): Likewise.
5684 (DISASSEM_NAME): Likewise.
5685 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5686 (tui_set_win_height): Likewise.
5687 (parse_scrolling_args): Likewise.
5688
485668e5
MM
56892015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5690
5691 * record-btrace.c (record_btrace_goto_begin)
5692 (record_btrace_goto_end, record_btrace_goto): Move call to
5693 print_stack_frame ...
5694 (record_btrace_set_replay): ... here. Set stop_pc.
5695 * record-full.c (record_full_goto_entry): Set stop_pc.
5696
58d2eda5
PL
56972015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5698
5699 * NEWS: Mention support for tracepoints on aarch64-linux.
5700
7671bf47
PL
57012015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5702
5703 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5704 function. Return 1.
5705 (the_low_target): Install it.
5706
7890fb45
PL
57072015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5708
5709 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5710 * gdb.trace/collection.exp: Likewise.
5711 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5712 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5713 * gdb.trace/report.exp: Likewise.
5714 * gdb.trace/trace-break.exp: Likewise.
5715 * gdb.trace/unavailable.exp: Likewise.
5716 * gdb.trace/while-dyn.exp: Likewise.
5717
ea873d8e
PL
57182015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5719
5720 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5721 (aarch64_gen_return_address): New function.
5722 (aarch64_gdbarch_init): Hook it.
5723
02a2a705
PL
57242015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5725
5726 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5727 swallow NOT_AVAILABLE_ERROR.
5728 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5729 available_p is not set.
5730 (aarch64_stub_frame_unwind_stop_reason): New function.
5731 (aarch64_stub_unwind): Install it.
5732
7dfa3edc
PL
57332015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5734
5735 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5736 field.
5737 (aarch64_make_prologue_cache_1): New function, factored out from
5738 aarch64_make_prologue_cache. Do not allocate cache. Set
5739 available_p.
5740 (aarch64_make_prologue_cache): Reimplement wrapping
5741 aarch64_make_prologue_cache_1, and swallowing
5742 NOT_AVAILABLE_ERROR.
5743 (aarch64_prologue_frame_unwind_stop_reason): New function.
5744 Return UNWIND_UNAVAILABLE if available_p is not set.
5745 (aarch64_prologue_unwind): Install it.
5746 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5747 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5748 frame_id_build_unavailable_stack if available_p is not set.
5749
db634143
PL
57502015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5751
5752 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5753 fields.
5754 (aarch64_scan_prologue): Set prev_pc.
5755 (aarch64_make_prologue_cache): Set func.
5756 (aarch64_make_stub_cache): Set prev_pc.
5757 (aarch64_prologue_this_id): Remove local variables id, pc and
5758 func. Read prev_pc and func from cache.
5759 (aarch64_stub_this_id): Read prev_pc from cache.
5760
8b61f75d
PL
57612015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5762
5763 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5764 argument this_cache. Remove unused local variables reg and
5765 unwound_fp. Return early if this_cache is already set. Set
5766 this_cache.
5767 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5768
7c8edfae
PL
57692015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5770
5771 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5772 New argument this_cache. Return early if this_cache is already
5773 set. Set this_cache.
5774 (aarch64_prologue_this_id): Update call to
5775 aarch64_make_prologue_cache.
5776 (aarch64_prologue_prev_register): Likewise.
5777 (aarch64_normal_frame_base): Likewise.
5778
938c69a1
SM
57792015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5780
5781 * c-valprint.c (c_val_print): Factor out memberptr printing code
5782 from c_val_print to ...
5783 (c_val_print_memberptr): ... this new function.
5784
49f7fe28
SM
57852015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5786
5787 * c-valprint.c (c_val_print): Factor out int printing code to ...
5788 (c_val_print_int): ... this new function.
5789
9e4f353c
SM
57902015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5791
5792 * c-valprint.c (c_val_print): Factor out struct and union
5793 printing code to ...
5794 (c_val_print_struct): ... this new function ...
5795 (c_val_print_union): ... and this new function.
5796
1c67f032
SM
57972015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5798
5799 * c-valprint.c (c_val_print): Factor out pointer printing code
5800 to ...
5801 (c_val_print_ptr): ... this new function.
5802
0b6ef777
SM
58032015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5804
5805 * c-valprint.c (c_valprint): Factor our array printing code from
5806 c_val_print to ...
5807 (c_val_print_array): ... this new function.
5808
1033c33c
SM
58092015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5810
5811 * c-valprint.c (c_val_print): Factor out pointer printing code
5812 to ...
5813 (print_unpacked_pointer): ... this new function.
5814
f6b93c34
SM
58152015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5816
5817 * c-valprint.c (c_val_print): Remove an assignment to i and move
5818 its declaration.
5819
0f4576e3
YQ
58202015-07-09 Yao Qi <yao.qi@linaro.org>
5821
5822 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5823 argument ptid. Update comments. Caller update.
5824
37fdfe4c
MM
58252015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5826
5827 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5828 mnt packets.
5829
80a2b330
MM
58302015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5831
5832 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5833
4ab31498
SM
58342015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5835
5836 * progspace.c (delete_program_space): Add missing spaces.
5837
7a41607e
SM
58382015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5839
5840 * inferior.c (delete_inferior_1): Rename to ...
5841 (delete_inferior): ..., remove 'silent' parameter, delete
5842 program space when unused and remove call to prune_program_spaces.
5843 Remove the old, unused, delete_inferior.
5844 (delete_inferior_silent): Remove.
5845 (prune_inferiors): Change call from delete_inferior_1 to
5846 delete_inferior and remove 'silent' parameter. Remove call to
5847 prune_program_spaces.
5848 (remove_inferior_command): Idem.
5849 * inferior.h (delete_inferior_1): Rename to...
5850 (delete_inferior): ..., remove 'silent' parameter and remove the
5851 original delete_inferior.
5852 (delete_inferior_silent): Remove.
5853 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
5854 delete_inferior_1 to delete_inferior and remove 'silent'
5855 parameter.
5856 * progspace.c (prune_program_spaces): Remove.
5857 (pspace_empty_p): Rename to...
5858 (program_space_empty_p): ... and make non-static.
5859 (delete_program_space): New.
5860 * progspace.h (prune_program_spaces): Remove declaration.
5861 (program_space_empty_p): New declaration.
5862 (delete_program_space): New declaration.
5863 * monitor.c (monitor_close): Replace call to
5864 delete_thread_silent and delete_inferior_silent with
5865 discard_all_inferiors.
5866
a9bd710f
PP
58672015-07-08 Patrick Palka <patrick@parcs.ath.cx>
5868
5869 * defs.h (deprecated_register_changed_hook): Remove prototype.
5870 * interps.c (clear_iterpreter_hooks): Remove reference to
5871 deprecated_register_changed_hook.
5872 * top.c (deprecated_register_changed_hook): Remove prototype.
5873 * valops.c (value_assign): Remove reference to
5874 deprecated_register_changed_hook.
5875 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
5876 Add comment documenting the function.
5877 (tui_register_changed_observer): Define.
5878 (tui_install_hooks): Remove reference to
5879 deprecated_register_changed_hook. Set
5880 tui_register_changed_observer.
5881 (tui_remove_hooks): Remove reference to
5882 deprecated_register_changed_hook. Unset
5883 tui_register_changed_observer.
5884
08464196
JK
58852015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5886
5887 PR compile/18484
5888 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
5889
bcf5c1d9
RC
58902015-07-08 Robert O'Callahan <robert@ocallahan.org>
5891
5892 PR exp/18617
5893 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
5894
e8643a45
MM
58952015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5896
5897 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
5898
76fb6829
MM
58992015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5900
5901 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
5902 Use safe_strerror() instead of strerror().
5903
82c40d4b
YQ
59042015-07-07 Yao Qi <yao.qi@linaro.org>
5905
5906 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
5907 * features/arm-with-m-fpa-layout.c: Regenerated.
5908 * features/arm-with-m-vfp-d16.xml: Likewise.
5909 * features/arm-with-m-vfp-d16.c: Regenerated.
5910 * features/arm-with-m.xml: Likewise.
5911 * features/arm-with-m.c: Regenerated.
5912 * features/arm-with-neon.xml: Likewise.
5913 * features/arm-with-neon.c: Regenerated.
5914 * features/arm-with-vfpv2.xml: Likewise.
5915 * features/arm-with-vfpv2.c: Regenerated.
5916 * features/arm-with-vfpv3.xml: Likewise.
5917 * features/arm-with-vfpv3.c: Regenerated.
5918
607685ec
YQ
59192015-07-07 Yao Qi <yao.qi@linaro.org>
5920
5921 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
5922 arm-linux-nat.c.
5923 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
5924 elf/external.h.
5925 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
5926 if target is 32-bit.
5927 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
5928 if target is 32-bit.
5929 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
5930 if target is 32-bit.
5931 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
5932 if target is 32-bit.
5933 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
5934 (aarch64_linux_read_description): Return the right target
5935 description.
5936 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
5937 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5938 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
5939 arm-linux-tdep.o.
5940
f1b67888
YQ
59412015-07-07 Yao Qi <yao.qi@linaro.org>
5942
5943 * aarch32-linux-nat.c: New file.
5944 * aarch32-linux-nat.h: New file.
5945 * arm-linux-nat.c: Include aarch32-linux-nat.h.
5946 (fetch_regs): Move code to aarch32-linux-nat.c. Call
5947 aarch32_gp_regcache_supply.
5948 (store_regs): Move code to aarch32-linux-nat.c. Call
5949 aarch32_gp_regcache_collect.
5950 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
5951 aarch32_vfp_regcache_supply.
5952 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
5953 aarch32_vfp_regcache_collect.
5954 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5955
179bfe82
YQ
59562015-07-07 Yao Qi <yao.qi@linaro.org>
5957
5958 * arm-linux-nat.c (store_fpregister): Remove.
5959 (store_register): Likewise.
5960 (fetch_fpregister): Likewise.
5961 (fetch_register): Likewise.
5962 (arm_linux_store_inferior_registers): Call store_regs and
5963 store_fpregs instead.
5964 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
5965 fetch_regs instead.
5966
6008fc5f
AB
59672015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5968
5969 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
5970 and focus commands.
5971
7c79d316
JB
59722015-07-06 Joel Brobecker <brobecker@adacore.com>
5973
5974 * NEWS: Create a new section for the next release branch.
5975 Rename the section of the current branch, now that it has
5976 been cut.
5977
f2232bea
JB
59782015-07-06 Joel Brobecker <brobecker@adacore.com>
5979
5980 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
5981 * version.in: Bump version to 7.10.50.DATE-cvs.
5982
66c4b3e8
LM
59832015-07-06 Luis Machado <lgustavo@codesourcery.com>
5984
5985 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
5986 breakpoints in a special way.
5987 (remove_breakpoint): Likewise.
5988 (mark_breakpoints_out): Likewise.
5989
bcd8537c
AB
59902015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5991
5992 * doc/gdb.texinfo (TUI): Add comma after @xref.
5993
10e9aaa3
AB
59942015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5995
5996 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
5997 instead of casting the structure type.
5998
8a13d42d
SM
59992015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6000
6001 * valops.c (search_struct_field): Remove OFFSET parameter.
6002 (value_cast_structs): Adjust calls to search_struct_field.
6003 (value_struct_elt): Same.
6004 (find_overload_match): Same.
6005
a844296a
SM
60062015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6007
6008 * value.c (value_fetch_lazy): Update comment, change return
6009 value to void.
6010 * value.h (value_fetch_lazy): Change return value to void.
6011
f41cbf58
AB
60122015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6013
6014 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6015 (tui_win_name): Make parameter and result const.
6016 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6017
118ca224
PP
60182015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6019
6020 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6021 use printf_unfiltered.
6022 (set_mpx_cmd): Add missing trailing space to command string
6023 literal.
6024 (_initialize_i386_tdep): Give the "mpx" prefix command its
6025 correct name.
6026
1b485e67
KB
60272015-07-02 Kevin Buettner <kevinb@redhat.com>
6028
6029 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6030 (enum rx_frame_type): New.
6031 (struct rx_prologue): Add new field `frame_type'.
6032 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6033 parameter in the prologue struct. Add code for recording
6034 locations of PC and PSW for fast interrupt and exception frames.
6035 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6036 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6037 (rx_frame_type): New function.
6038 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6039 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6040 `this_cache'.
6041 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6042 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6043 RX_FRAME_TYPE_FAST_INTERRUPT.
6044 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6045 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6046 (rx_frame_unwind): Use rx_frame_sniffer instead of
6047 default_frame_sniffer.
6048 (rx_frame_unwind): New unwinder.
6049 (rx_gdbarch_init): Register new unwinder.
6050
0561fea4
KB
60512015-07-02 Kevin Buettner <kevinb@redhat.com>
6052
6053 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6054 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6055 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6056 and RX_FPSW_REGNUM.
6057 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6058
decf8d9a
JK
60592015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6060
6061 Fix GCC false warning.
6062 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6063
2fd0f80d
YQ
60642015-07-02 Yao Qi <yao.qi@linaro.org>
6065
6066 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6067 typo in the debugging message.
6068
b0627500
MM
60692015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6070
6071 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6072 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6073 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6074 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6075 (btrace_maint_clear): New.
6076 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6077 (pt_print_packet, btrace_maint_decode_pt)
6078 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6079 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6080 (maint_btrace_packet_history_cmd)
6081 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6082 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6083 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6084 (maint_info_btrace_cmd, _initialize_btrace): New.
6085 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6086 (btrace_maint_packet_history, btrace_maint_info): New.
6087 (btrace_thread_info) <maint>: New.
6088 * NEWS: Announce it.
6089
9be54cae
MM
60902015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6091
6092 * btrace.c (btrace_fetch): Append the new trace data.
6093 (btrace_clear): Clear the stored trace data.
6094 * btrace.h (btrace_thread_info) <data>: New.
6095 * common/btrace-common.h (btrace_data_clear)
6096 (btrace_data_append): New.
6097 * common/btrace-common.c (btrace_data_clear)
6098 (btrace_data_append): New.
6099
010a18a1
MM
61002015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6101
6102 * nat/linux-btrace.c (linux_enable_bts): Check for
6103 PERF_ATTR_SIZE_VER5.
6104 Check for data_offset and data_size fields. Use them.
6105
b20a6524
MM
61062015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6107
6108 * NEWS: Announce new commands "record btrace pt" and "record pt".
6109 Announce new options "set|show record btrace pt buffer-size".
6110 * btrace.c: Include "rsp-low.h".
6111 Include "inttypes.h".
6112 (btrace_add_pc): Add forward declaration.
6113 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6114 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6115 (btrace_compute_ftrace_pt): New.
6116 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6117 (check_xml_btrace_version): Update version check.
6118 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6119 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6120 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6121 (btrace_pt_children): New.
6122 (btrace_children): Add support for "pt".
6123 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6124 (btrace_conf_children): Add support for "pt".
6125 * btrace.h: Include "intel-pt.h".
6126 (btrace_pt_error): New.
6127 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6128 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6129 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6130 (struct btrace_config_pt): New.
6131 (struct btrace_config)<pt>: New.
6132 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6133 (struct btrace_data)<pt>: New.
6134 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6135 (pt): New.
6136 * features/btrace.dtd (btrace)<pt>: New.
6137 (pt, pt-config, cpu): New.
6138 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6139 (perf_event_pt_event_type, kernel_supports_pt)
6140 (linux_supports_pt): New.
6141 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6142 (linux_enable_bts): Free tinfo on error.
6143 (linux_enable_pt): New.
6144 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6145 (linux_disable_pt): New.
6146 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6147 (linux_fill_btrace_pt_config, linux_read_pt): New.
6148 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6149 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6150 (struct btrace_target_info)<pt>: New.
6151 * record-btrace.c (set_record_btrace_pt_cmdlist)
6152 (show_record_btrace_pt_cmdlist): New.
6153 (record_btrace_print_pt_conf): New.
6154 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6155 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6156 (cmd_record_btrace_pt_start): New.
6157 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6158 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6159 (_initialize_record_btrace): Add new commands.
6160 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6161 (remote_protocol_features): Add "Qbtrace:pt".
6162 Add "Qbtrace-conf:pt:size".
6163 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6164 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6165 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6166 (_initialize_remote): Add new commands.
6167
58bfce93
MM
61682015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6169
6170 * configure.ac: check for libipt
6171 * configure: Regenerate.
6172 * config.in: Regenerate.
6173 * Makefile.in (LIBIPT): New.
6174 (CLIBS): Add $LIBIPT.
6175 * NEWS: document new configure options
6176
b0fd6b30
JK
61772015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6178
6179 * compile/compile-object-load.c (compile_object_load): Replace debug
6180 message "lookup undefined ELF symbol" by 3 more specific messages.
6181
e6280369
KB
61822015-07-01 Kevin Buettner <kevinb@redhat.com>
6183
6184 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6185 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6186 (rl78_gdbarch_init): Initialize rl78_psw_type.
6187
bbcbf914
PP
61882015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6189
6190 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6191 Update commentary. Always refresh the registers when frame
6192 information has changed.
6193 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6194 Change return type to int. Return 1 if frame information has
6195 changed, 0 otherwise.
6196 (tui_before_prompt): Update commentary.
6197 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6198 int.
6199
0986c744
PP
62002015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6201
6202 PR tui/13378
6203 * frame.c (select_frame): Remove reference to
6204 deprecated_selected_frame_level_changed_hook.
6205 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6206 declaration.
6207 * stack.c (deprecated_selected_frame_level_changed_hook):
6208 Likewise.
6209 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6210 Rename to ...
6211 (tui_refresh_frame_and_register_information): ... this. Bail
6212 out if there is no stack. Don't update register information
6213 unless registers_too_p is true.
6214 (tui_print_frame_info_listing_hook): Rename to ...
6215 (tui_dummy_print_frame_info_listing_hook): ... this.
6216 (tui_before_prompt): New function.
6217 (tui_normal_stop): New function.
6218 (tui_before_prompt_observer): New observer.
6219 (tui_normal_stop_observer): New observer.
6220 (tui_install_hooks): Set
6221 deprecated_print_frame_info_listing_hook to
6222 tui_dummy_print_frame_info_listing_hook. Register
6223 tui_before_prompt_observer to call tui_before_prompt and
6224 tui_normal_stop_observer to call tui_normal_stop. Remove
6225 reference to deprecated_selected_frame_level_changed_hook.
6226 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6227 and tui_normal_stop_observer. Remove reference to
6228 deprecated_selected_frame_level_changed_hook.
6229
b5fca6d7
PP
62302015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6231
6232 PR tui/13378
6233 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6234 return an int instead of void. Return whether the locator
6235 window has changed.
6236 (tui_show_frame_info): If the locator info has not changed, then
6237 bail out early to avoid refreshing the windows.
6238
c45613e3
PP
62392015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6240
6241 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6242 LOCATOR_WIN to tui_alloc_content.
6243
7b9be803
YQ
62442015-06-30 Yao Qi <yao.qi@linaro.org>
6245
6246 PR tdep/18605
6247 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6248 instructions.
6249
fd6e021d
KB
62502015-06-29 Kevin Buettner <kevinb@redhat.com>
6251
78ab7e9d
KB
6252 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6253 (rx_dwarf_reg_to_regnum): New function.
6254 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6255 unwinding.
fd6e021d 6256
28bf096c
PA
62572015-06-29 Pedro Alves <palves@redhat.com>
6258
6259 PR threads/18127
6260 * infcall.c (run_inferior_call): On infcall success, if the thread
6261 was marked stopped before, reset it back to stopped.
6262 * infrun.c (resume): Don't suppress the set_running calls when
6263 doing an infcall.
6264 (normal_stop): Only discard the finish_thread_state cleanup if the
6265 infcall succeeded.
6266
2880b51c 62672015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6268
6269 * MAINTAINERS (Write After Approval): Update my email address.
6270
ee93cd5e
KS
62712015-06-26 Keith Seitz <keiths@redhat.com>
6272 Doug Evans <dje@google.com>
6273
6274 PR 16253
6275 * block.c (block_lookup_symbol): For non-function blocks,
6276 continue to search for a symbol with an exact domain match
6277 Otherwise, return any previously found "best domain" symbol.
6278 (block_lookup_symbol_primary): Likewise.
6279
fc637f04
PP
62802015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6281
6282 * NEWS: Mention the new option "history remove-duplicates".
6283 * top.c (history_remove_duplicates): New static variable.
6284 (show_history_remove_duplicates): New static function.
6285 (gdb_add_history): Conditionally remove duplicate history
6286 entries.
6287 (init_main): Add "history remove-duplicates" option.
6288
2e52ae68
PP
62892015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6290
6291 * tui/tui-win.c (focus_completer): New static function.
6292 (_initialize_tui_win): Set the completion function of the
6293 "focus" command to focus_completer.
6294
6e22494e
JK
62952015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6296
6297 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6298 and language_asm..
6299 * symtab.c (find_function_start_sal): Likewise.
6300
f8773be1
GB
63012015-06-25 Gary Benson <gbenson@redhat.com>
6302
6303 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6304 it is the empty string after trailing slashes have been stripped.
6305
a3be80c3
GB
63062015-06-25 Gary Benson <gbenson@redhat.com>
6307
6308 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6309 * infrun.c (follow_exec): Likewise.
6310 * remote.c (remote_filesystem_is_local): Likewise.
6311 * solib.c (solib_find_1): Likewise.
6312
32fad71f
KS
63132015-06-24 Keith Seitz <keiths@redhat.com>
6314
6315 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6316 return value from lrealpath.
6317
87d1b309
MF
63182015-06-24 Mike Frysinger <vapier@gentoo.org>
6319
6320 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6321
23bf70af
MF
63222015-06-24 Mike Frysinger <vapier@gentoo.org>
6323
6324 * remote-sim.c: Include gdb_bfd.h.
6325 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6326 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6327
5cd867b4
YQ
63282015-06-24 Yao Qi <yao.qi@linaro.org>
6329
6330 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6331 set_gdbarch_get_siginfo_type.
6332 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6333 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6334 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6335 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6336 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6337 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6338 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6339 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6340 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6341 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6342
dc06243f
GB
63432015-06-24 Gary Benson <gbenson@redhat.com>
6344
6345 * common/buffer.c (stdint.h): Do not include.
6346 * common/print-utils.c (stdint.h): Likewise.
6347 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6348 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6349 * ft32-tdep.c (gdb_assert.h): Likewise.
6350 * guile/scm-utils.c (stdint.h): Likewise.
6351 * i386-linux-tdep.c (stdint.h): Likewise.
6352 * i386-tdep.c (stdint.h): Likewise.
6353 * nat/linux-btrace.c (stdint.h): Likewise.
6354 * nat/linux-btrace.h (stdint.h): Likewise.
6355 * nat/linux-ptrace.c (stdint.h): Likewise.
6356 * nat/mips-linux-watch.h (stdint.h): Likewise.
6357 * ppc-linux-nat.c (stdint.h): Likewise.
6358 * python/python-internal.h (stdint.h): Likewise.
6359 * stub-termcap.c (stdlib.h): Likewise.
6360 * target/target.h (stdint.h): Likewise.
6361 * xtensa-linux-nat.c (stdint.h): Likewise.
6362
0fc26caf
PP
63632015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6364
6365 * top.c (init_history): Look at errno after calling strtol to
6366 properly map large GDBHISTSIZE values to infinity.
6367
a38fe4fe
DE
63682015-06-23 Doug Evans <dje@google.com>
6369
6370 * inferior.h (struct inferior_suspend_state): Delete, unused.
6371 All references deleted.
6372
7564fe45
MF
63732015-06-23 Mike Frysinger <vapier@gentoo.org>
6374
6375 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6376 (microblaze_push_dummy_call): Likewise.
6377 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6378 and set_gdbarch_push_dummy_call.
6379
0bdb2f78
YQ
63802015-06-23 Yao Qi <yao.qi@linaro.org>
6381
6382 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6383 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6384 (amd64_linux_store_inferior_registers): Likewise.
6385 * arm-linux-nat.c (fetch_fpregister): Likewise.
6386 (fetch_fpregs, store_fpregister): Likewise.
6387 (store_fpregister, store_fpregs): Likewise.
6388 (fetch_register, fetch_regs): Likewise.
6389 (store_register, store_regs): Likewise.
6390 (fetch_vfp_regs, store_vfp_regs): Likewise.
6391 (arm_linux_read_description): Check have_ptrace_getregset is
6392 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6393 or TRIBOOL_FALSE.
6394 * i386-linux-nat.c (fetch_xstateregs): Check
6395 have_ptrace_getregset is not TRIBOOL_TRUE.
6396 (store_xstateregs): Likewise.
6397 * linux-nat.c (have_ptrace_getregset): Change its type to
6398 enum tribool.
6399 * linux-nat.h (tribool): New enum.
6400 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6401 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6402
18a94d75
DE
64032015-06-19 Doug Evans <dje@google.com>
6404
6405 * NEWS: Mention Sun's version of stabs is no longer supported.
6406 * elfread.c (free_elfinfo): Delete. All uses updated.
6407 (elfstab_offset_sections): Delete. All uses updated.
6408 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6409 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6410 All uses updated.
6411 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6412 All callers updated.
6413
124e13d9
SM
64142015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6415
6416 * common/rsp-low.c (needs_escaping): New.
6417 (remote_escape_output): Add unit_size parameter. Refactor to
6418 support multi-byte addressable units. Rename parameters.
6419 * common/rsp-low.h (remote_escape_output): Add unit_size
6420 parameter and rename others. Update doc.
6421 * remote.c (align_for_efficient_write): New.
6422 (remote_write_bytes_aux): Add unit_size parameter and use it.
6423 Rename some variables. Update doc.
6424 (remote_xfer_partial): Get unit size and use it.
6425 (remote_read_bytes_1): Add unit_size parameter and use it.
6426 Rename some variables. Update doc.
6427 (remote_write_bytes): Same.
6428 (remote_xfer_live_readonly_partial): Same.
6429 (remote_read_bytes): Same.
6430 (remote_flash_write): Update call to remote_write_bytes_aux.
6431 (remote_write_qxfer): Update call to remote_escape_output.
6432 (remote_search_memory): Same.
6433 (remote_hostio_pwrite): Same.
6434
6ae88661
LM
64352015-06-17 Luis Machado <lgustavo@codesourcery.com>
6436
6437 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6438 locations as inserted.
6439 Update and expand comment about permanent locations.
6440 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6441 Move comment to add_location_to_breakpoint.
6442 (update_global_location_list): Don't error out if a permanent
6443 breakpoint is not marked inserted.
6444 Don't error out if a non-permanent breakpoint location is inserted on
6445 top of a permanent breakpoint.
6446
da4616f6
LM
64472015-06-17 Luis Machado <lgustavo@codesourcery.com>
6448
6449 * breakpoint.c (make_breakpoint_permanent): Remove unused
6450 function.
6451 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6452
bc460514
PP
64532015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6454
6455 PR gdb/16999
6456 * NEWS: Mention new GDBHISTSIZE behavior.
6457 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6458 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6459
b58c513b
PP
64602015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6461
6462 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6463 * top.c (init_history): Read from GDBHISTSIZE instead of
6464 HISTSIZE.
6465 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6466
2093d2d3
PP
64672015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6468
6469 * top.c (gdb_safe_append_history): Do not call
6470 history_truncate_file if the history is not stifled.
6471
fc248485
AA
64722015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6473
6474 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6475 * syscalls/s390x-linux.xml: Likewise.
6476
4da680ad
ME
64772015-06-16 Michael Eager <eager@eagercon.com>
6478
6479 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6480
0a75489f
PP
64812015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6482
6483 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6484 target_terminal_ours_for_output() before calling
6485 tui_show_frame_info(), and restore the original terminal
6486 settings afterwards.
6487
95855ca8
MS
64882015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6489
6490 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6491
cfc32360
SM
64922015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6493
6494 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6495 memory unit size.
6496 (mi_cmd_data_write_memory_bytes): Same.
6497
cb6f16cf
SM
64982015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6499
6500 * corefile.c (write_memory): Update doc.
6501 * gdbcore.h (write_memory): Same.
6502
31b7833d
JK
65032015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6504
6505 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6506 (dump_mapping_p): Use it for parameter filterflags.
6507 (linux_find_memory_regions_full): Use it for variable filterflags.
6508
909c2cda
JK
65092015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6510 Jan Kratochvil <jan.kratochvil@redhat.com>
6511
6512 Merge multiple hex conversions.
6513 * monitor.c: Include rsp-low.h.
6514 (fromhex): Remove definition.
6515
03aef70f
JK
65162015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6517 Jan Kratochvil <jan.kratochvil@redhat.com>
6518
6519 Move utility functions to common/.
6520 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6521 Move defs to common/common-utils.c.
6522 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6523 (skip_to_space_const): Move decls to common/common-utils.h.
6524 * common/common-defs.h: Move include of common-types.h before
6525 common-utils.h.
6526 * common/common-utils.c: Include host-defs.h and ctype.h.
6527 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6528 from utils.c.
6529 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6530 cli/cli-utils.c.
6531 * common/common-utils.h (strtoulst): Move decl from utils.h.
6532 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6533 Move from cli/cli-utils.h.
6534 * common/host-defs.h: Include limits.h.
6535 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6536 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6537 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6538 common/common-utils.h.
6539 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6540 (strtoulst): Move to common/common-utils.c.
6541 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6542
d1168cc1
YQ
65432015-06-15 Yao Qi <yao.qi@linaro.org>
6544
6545 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6546
c74f7d1c
JT
65472015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6548
6549 * build-id.c: Don't include elf-bfd.h.
6550 (build_id_bfd_get): Use bfd_build_id.
6551 (build_id_verify): Ditto.
6552 * build-id.h: Ditto.
6553 (find_separate_debug_file_by_buildid): Ditto.
6554 * python/py-objfile.c: Don't include elf-bfd.h.
6555 (objfpy_get_build_id) Use bfd_build_id.
6556 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6557 * coffread.c: Include build-id.h.
6558 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6559
f20c58f5
JT
65602015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6561
6562 * windows-nat.c (do_windows_fetch_inferior_registers)
6563 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6564 conditional with __CYGWIN__.
6565
51f0e40d
AB
65662015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6567
6568 * completer.c: Add arch-utils.h include.
6569 (enum reg_completer_targets): New enum.
6570 (reg_or_group_completer_1): New function containing old
6571 reg_or_group_completer, add and use new parameter to control what
6572 is completed on. Use get_current_arch rather than architecture of
6573 currently selected frame.
6574 (reg_or_group_completer): Call new reg_or_group_completer_1.
6575 (reggroup_completer): Call new reg_or_group_completer_1.
6576 * completer.h (reggroup_completer): Add declaration.
6577 * tui/tui-regs.c: Add 'completer.h' include.
6578 (tui_reg_next_command): Renamed to...
6579 (tui_reg_next): ...this. Adjust parameters and return rather than
6580 display new group.
6581 (tui_reg_prev_command): Renamed to...
6582 (tui_reg_prev): ...this. Adjust parameters and return rather than
6583 display new group.
6584 (tui_reg_float_command): Delete.
6585 (tui_reg_general_command): Delete.
6586 (tui_reg_system_command): Delete.
6587 (tui_reg_command): Rewrite to perform switching of register group.
6588 Add header comment.
6589 (tuireglist): Remove.
6590 (tui_reggroup_completer): New function.
6591 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6592 creation of 'tui reg' command.
6593 * NEWS: Add comment about 'tui reg' changes.
6594
d309493c
SM
65952015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6596
6597 * target.c (target_read): Consider addressable unit size when
6598 reading from a memory object.
6599 (read_memory_robust): Same.
6600 (read_whatever_is_readable): Same.
6601 (target_write_with_progress): Consider addressable unit size
6602 when writing to a memory object.
6603 * target.h (target_read): Update documentation.
6604 (target_write): Add documentation.
6605
3374165f
SM
66062015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6607
6608 * arch-utils.h (default_addressable_memory_unit_size): New.
6609 * arch-utils.c (default_addressable_memory_unit_size): New.
6610 * gdbarch.sh (addressable_memory_unit_size): New.
6611 * gdbarch.h: Re-generate.
6612 * gdbarch.c: Re-generate.
6613
279a6fed
SM
66142015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6615
6616 * target.c (target_read): Rename variables and use
6617 TARGET_XFER_E_IO.
6618 (target_read_with_progress): Same.
6619 (read_memory_robust): Constify parameters and rename
6620 variables.
6621 (read_whatever_is_readable): Constify parameters,
6622 rename variables, adjust formatting.
6623 * target.h (read_memory_robust): Constify parameters.
6624
1e5338b6 66252015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
6626
6627 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6628 synthetic (non-AltiVec) vector types.
6629 (ppc64_sysv_abi_return_value): Likewise.
6630
98aa42ee
AT
66312015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6632
6633 PR breakpoints/16465
6634 * breakpoint.c (create_breakpoint): Save extra_string for
6635 pending breakpoints.
6636
966f0aef
WT
66372015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6638
6639 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6640 and bt_mask to CORE_ADDR.
6641
6449ed0d
GB
66422015-06-11 Gary Benson <gbenson@redhat.com>
6643
6644 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6645 (mnsh_recv_message): Likewise.
6646
34f8ac9f
WT
66472015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6648
6649 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6650 long long int and plongest instead of %ll.
6651
198c808c
GB
66522015-06-11 Gary Benson <gbenson@redhat.com>
6653
6654 * nat/linux-namespaces.c (gdb_wait.h): New include.
6655 (sys/wait.h): Do not include.
6656
e815d2d2
SM
66572015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6658
6659 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6660 end_sequence is true.
6661
8847cac2
JK
66622015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6663
6664 Code cleanup.
6665 * solib-target.c (library_list_start_list): Use explicit NULL
6666 comparison.
6667
24c05f46
JK
66682015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6669
6670 * solib-target.c (library_list_start_list): Do not dereference
6671 variable version in its initialization. Make the VERSION check handle
6672 NULL.
6673 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6674
51aad7cc
GB
66752015-06-10 Gary Benson <gbenson@redhat.com>
6676
6677 * NEWS: Announce support for direct access of executable and
6678 shared library files when attaching to inferiors in containers
6679 on GNU/Linux systems.
6680
15a201c8
GB
66812015-06-10 Gary Benson <gbenson@redhat.com>
6682
6683 * remote.c (struct remote_state) <fs_pid>: New field.
6684 (new_remote_state): Initialize the above.
6685 (PACKET_vFile_setfs): New enum value.
6686 (remote_hostio_set_filesystem): New function.
6687 (remote_hostio_open): Call the above.
6688 (remote_hostio_unlink): Likewise.
6689 (remote_hostio_readlink): Likewise.
6690 (_initialize_remote): Register new "set/show remote
6691 hostio-setfs-packet" command.
6692 * NEWS: Announce new vFile:setfs packet.
6693
7a6a1731
GB
66942015-06-10 Gary Benson <gbenson@redhat.com>
6695
6696 * linux-nat.c (nat/linux-namespaces.h): New include.
6697 (fileio.h): Likewise.
6698 (linux_nat_filesystem_is_local): New function.
6699 (linux_nat_fileio_pid_of): Likewise.
6700 (linux_nat_fileio_open): Likewise.
6701 (linux_nat_fileio_readlink): Likewise.
6702 (linux_nat_fileio_unlink): Likewise.
6703 (linux_nat_add_target): Initialize to_filesystem_is_local,
6704 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6705 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6706 commands.
6707 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6708
07c138c8
GB
67092015-06-10 Gary Benson <gbenson@redhat.com>
6710
6711 * target.h (struct inferior): New forward declaration.
6712 (struct target_ops) <to_filesystem_is_local>: Update comment.
6713 (struct target_ops) <to_fileio_open>: New argument inf.
6714 Update comment. All implementations updated.
6715 (struct target_ops) <to_fileio_unlink>: Likewise.
6716 (struct target_ops) <to_fileio_readlink>: Likewise.
6717 (target_filesystem_is_local): Update comment.
6718 (target_fileio_open): New argument inf. Update comment.
6719 (target_fileio_unlink): Likewise.
6720 (target_fileio_readlink): Likewise.
6721 (target_fileio_read_alloc): Likewise.
6722 (target_fileio_read_stralloc): Likewise.
6723 * target.c (target_fileio_open): New argument inf.
6724 Pass inf to implementation. Update debug printing.
6725 (target_fileio_unlink): Likewise.
6726 (target_fileio_readlink): Likewise.
6727 (target_fileio_read_alloc_1): New argument inf. Pass inf
6728 to target_fileio_open.
6729 (target_fileio_read_alloc): New argument inf. Pass inf to
6730 target_fileio_read_alloc_1.
6731 (target_fileio_read_stralloc): Likewise.
6732 * gdb_bfd.c (inferior.h): New include.
6733 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6734 argument with new argument "inferior". Pass inferior to
6735 target_fileio_open.
6736 (gdb_bfd_open): Supply inferior argument to
6737 gdb_bfd_iovec_fileio_open.
6738 * linux-tdep.c (linux_info_proc): Supply inf argument to
6739 relevant target_fileio calls.
6740 (linux_find_memory_regions_full): Likewise.
6741 (linux_fill_prpsinfo): Likewise.
6742 * remote.c (remote_filesystem_is_local): Supply inf
6743 argument to remote_hostio_open.
6744 (remote_file_put): Likewise.
6745 (remote_file_get): Likewise.
6746 (remote_file_delete): Supply inf argument to
6747 remote_hostio_unlink.
6748
12e2a5fd
GB
67492015-06-10 Gary Benson <gbenson@redhat.com>
6750
6751 * inf-child.c (inf_child_fileio_open): Replace comment.
6752 (inf_child_fileio_pwrite): Likewise.
6753 (inf_child_fileio_pread): Likewise.
6754 (inf_child_fileio_fstat): Insert blank line before comment.
6755 (inf_child_fileio_close): Replace comment.
6756 (inf_child_fileio_unlink): Likewise.
6757 (inf_child_fileio_readlink): Likewise.
6758 * remote.c (remote_hostio_open): Likewise.
6759 (remote_hostio_pread): Likewise.
6760 (remote_hostio_pwrite): Likewise.
6761 (remote_hostio_close): Likewise.
6762 (remote_hostio_unlink): Likewise.
6763 (remote_hostio_readlink): Likewise.
6764 (remote_hostio_fstat): Likewise.
6765 (remote_filesystem_is_local): Likewise.
6766 * target.c (target_fileio_open): Likewise.
6767 (target_fileio_pwrite): Likewise.
6768 (target_fileio_pread): Likewise.
6769 (target_fileio_fstat): Insert blank line before comment.
6770 (target_fileio_close): Replace comment.
6771 (target_fileio_unlink): Likewise.
6772 (target_fileio_readlink): Likewise.
6773 (target_fileio_read_alloc): Likewise.
6774 (target_fileio_read_stralloc): Likewise.
6775
9bc3a976
GB
67762015-06-10 Gary Benson <gbenson@redhat.com>
6777
6778 * linux-thread-db.c (nat/linux-namespaces.h): New include.
6779 (check_pid_namespace_match): Use linux_ns_same rather than
6780 linux_proc_pid_get_ns to spot PID namespace mismatches.
6781 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6782 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6783
4b8b5e72
GB
67842015-06-10 Gary Benson <gbenson@redhat.com>
6785
6786 * configure.ac (AC_CHECK_FUNCS): Add setns.
6787 * config.in: Regenerate.
6788 * configure: Likewise.
6789 * nat/linux-namespaces.h: New file.
6790 * nat/linux-namespaces.c: Likewise.
6791 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6792 (linux-namespaces.o): New rule.
6793 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6794 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6795 * config/arm/linux.mh (NATDEPFILES): Likewise.
6796 * config/i386/linux.mh (NATDEPFILES): Likewise.
6797 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6798 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6799 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6800 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6801 * config/mips/linux.mh (NATDEPFILES): Likewise.
6802 * config/pa/linux.mh (NATDEPFILES): Likewise.
6803 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6804 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6805 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6806 * config/s390/linux.mh (NATDEPFILES): Likewise.
6807 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6808 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6809 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6810 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6811
ca095836
GB
68122015-06-10 Gary Benson <gbenson@redhat.com>
6813
6814 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6815 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6816 (make_cleanup_close): Likewise.
6817 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6818 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6819 (make_cleanup_close): Likewise.
6820
5d9c55d3
JT
68212015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6822
6823 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6824 from SuspendThread().
6825
040ea00b
JT
68262015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6827
6828 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6829 from OutputDebugString.
6830
7d73c23c
WT
68312015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6832 Mircea Gherzan <mircea.gherzan@intel.com>
6833
6834 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6835 MPX_BT_MASK_32): New macros.
6836 (i386_mpx_set_bounds): New function that implements
6837 the command "set-mpx-bound".
6838 (i386_mpx_enabled): Helper function to test MPX availability.
6839 (i386_mpx_bd_base): Helper function to calculate the base directory
6840 address.
6841 (i386_mpx_get_bt_entry): Helper function to access a bound
6842 table entry.
6843 (i386_mpx_print_bounds): Effectively display bound information.
6844 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6845 "show mpx".
6846 (_initialize_i386_tdep):
6847 Add "bound" to the commands "show mpx" and "set mpx" commands.
6848 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
6849 and "show mpx" commands.
6850 * NEWS: List new commands for MPX support.
6851
3ac2e371
GB
68522015-06-09 Gary Benson <gbenson@redhat.com>
6853
6854 * common/fileio.h (fileio_to_host_mode): New declaration.
6855 * common/fileio.c (fileio_to_host_mode): New Function.
6856 * inf-child.c (inf_child_fileio_open): Process mode argument
6857 with fileio_to_host_mode.
6858
ecef18c5
GB
68592015-06-09 Gary Benson <gbenson@redhat.com>
6860
6861 * common/fileio.c (fileio_mode_pack): Fix preprocessor
6862 conditional.
6863
e3dd7556
GB
68642015-06-05 Gary Benson <gbenson@redhat.com>
6865
6866 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
6867 * remote.c (remote_filesystem_is_local): ...here.
6868
5b74bf7d
YQ
68692015-06-04 Yao Qi <yao.qi@linaro.org>
6870
6871 * gdbarch.c: Regenerate it.
6872
7f361056
JK
68732015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6874
6875 * arch-utils.c (default_infcall_munmap): New.
6876 * arch-utils.h (default_infcall_munmap): New declaration.
6877 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
6878 (munmap_list_free, munmap_listp_free_cleanup): New.
6879 (struct setup_sections_data): Add field munmap_list_headp.
6880 (setup_sections): Call munmap_list_add.
6881 (compile_object_load): New variable munmap_list_head, initialize
6882 setup_sections_data.munmap_list_headp, return munmap_list_head.
6883 * compile/compile-object-load.h (struct munmap_list): New declaration.
6884 (struct compile_module): Add field munmap_list_head.
6885 (munmap_list_free): New declaration.
6886 * compile/compile-object-run.c (struct do_module_cleanup): Add field
6887 munmap_list_head.
6888 (do_module_cleanup): Call munmap_list_free.
6889 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
6890 * gdbarch.c: Regenerate.
6891 * gdbarch.h: Regenerate.
6892 * gdbarch.sh (infcall_munmap): New.
6893 * linux-tdep.c (linux_infcall_munmap): New.
6894 (linux_init_abi): Install it.
6895
3b462ec2
SM
68962015-06-02 Simon Marchi <simon.marchi@ericsson.com>
6897
6898 PR gdb/15564
6899 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
6900
8d683210
YQ
69012015-06-02 Yao Qi <yao.qi@linaro.org>
6902
6903 * i386-linux-nat.c: Include linux-nat.h.
6904
e0619de6
JK
69052015-06-01 Andreas Schwab <schwab@linux-m68k.org>
6906 Jan Kratochvil <jan.kratochvil@redhat.com>
6907
6908 PR symtab/18392
6909 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
6910 assertion.
6911 * dwarf2loc.c (chain_candidate): Likewise.
6912
bd16da51
YQ
69132015-06-01 Yao Qi <yao.qi@linaro.org>
6914
6915 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
6916 (store_vfp_regs): Use PTRACE_SETREGSET.
6917
df9d7ec9
YQ
69182015-06-01 Yao Qi <yao.qi@linaro.org>
6919
6920 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
6921 (fetch_fpregs): Likewise.
6922 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
6923 (store_fpregs): Likewise.
6924
10766686
YQ
69252015-06-01 Yao Qi <yao.qi@linaro.org>
6926
6927 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
6928 (fetch_regs): Likewise.
6929 (store_regs): Use PTRACE_SETREGSET.
6930 (store_register): Likewise.
6931
7efe48d1
YQ
69322015-06-01 Yao Qi <yao.qi@linaro.org>
6933
6934 * arm-linux-nat.c (arm_linux_read_description): Check whether
6935 kernel supports PTRACE_GETREGSET.
6936
433bbbf8
YQ
69372015-06-01 Yao Qi <yao.qi@linaro.org>
6938
6939 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
6940 * linux-nat.c: ... here.
6941 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
6942 to ...
6943 * linux-nat.h: ... here.
6944
ca9b78ce
YQ
69452015-06-01 Yao Qi <yao.qi@linaro.org>
6946
6947 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
6948 * i386-linux-nat.c: Likewise.
6949 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
6950 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
6951 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6952 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
6953 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6954
99cee7b7
EZ
69552015-05-30 Eli Zaretskii <eliz@gnu.org>
6956
6957 * go32-nat.c (go32_xfer_memory): Fix the return value to be
6958 compatible to what read_child and write_child return. This
6959 unbreaks that DJGPP build of GDB which was broken since v7.7.
6960
2147f5bd
MG
69612015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
6962
6963 * MAINTAINERS (Write After Approval): Add Martin Galvan.
6964
c8f6c93c
RM
69652015-05-29 Roland McGrath <mcgrathr@google.com>
6966
6967 PR gdb/18464
6968 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
6969 rather than internal_error for an unrecognized value.
6970
8c6a948d
MF
69712015-05-29 Max Filippov <jcmvbkbc@gmail.com>
6972
6973 * xtensa-tdep.c (xtensa_pseudo_register_read)
6974 (xtensa_pseudo_register_write): Don't alias last pseudo register
6975 to a1.
6976
8dd06f7a
DB
69772015-05-28 Don Breazeal <donb@codesourcery.com>
6978
6979 * infrun.c (follow_fork_inferior): Ensure the use of
6980 process-style ptids (pid,0,0) in verbose/debug "Detaching"
6981 messages.
6982
a051152b
DE
69832015-05-28 Doug Evans <dje@google.com>
6984
6985 * dwarf2read.c (record_line_ftype): Remove, duplicate.
6986
a56cc1ce
YQ
69872015-05-28 Yao Qi <yao.qi@linaro.org>
6988
6989 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
6990 (arm_linux_fetch_inferior_registers): Use
6991 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
6992 (arm_linux_store_inferior_registers): Likewise.
6993 (arm_linux_read_description): Don't set
6994 arm_linux_has_wmmx_registers.
6995 * arm-tdep.c (arm_gdbarch_init): Set
6996 tdep->have_wmmx_registers according target descriptions.
6997 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
6998 field.
6999
330c6ca9
YQ
70002015-05-28 Yao Qi <yao.qi@linaro.org>
7001
7002 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7003 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7004 instead of arm_linux_vfp_register_count.
7005 (store_vfp_regs): Likewise.
7006 (arm_linux_fetch_inferior_registers): Likewise.
7007 (arm_linux_store_inferior_registers): Likewise.
7008 (arm_linux_read_description): Don't set
7009 arm_linux_vfp_register_count.
7010 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7011 Adjust.
7012 * arm-tdep.c (arm_gdbarch_init): Add assert on
7013 vfp_register_count.
7014 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7015 field to vfp_register_count. All users updated.
7016
d403db27
KH
70172015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7018
7019 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7020 ELFOSABI_GNU binaries.
7021
d9b3de22
DE
70222015-05-27 Doug Evans <dje@google.com>
7023
7024 * dwarf2read.c (lnp_state_machine): New typedef.
7025 (lnp_reader_state): New typedef.
7026 (dwarf_record_line_1): Renamed from dwarf_record_line.
7027 All callers updated.
7028 (dwarf_record_line): New function.
7029 (init_lnp_state_machine): New function.
7030 (check_line_address): Replace p_record_line parameter with state.
7031 All callers updated.
7032 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7033 Update to record state in lnp_state_machine.
7034
924c2928
DE
70352015-05-27 Doug Evans <dje@google.com>
7036
7037 * dwarf2read.c (record_line_ftype): New typedef.
7038 (check_line_address): New function.
7039 (dwarf_decode_lines_1): Call it.
7040
27e0867f
DE
70412015-05-27 Doug Evans <dje@google.com>
7042
7043 * NEWS: Mention "set debug dwarf-line".
7044 * dwarf2read.c (dwarf_line_debug): New static global.
7045 (add_include_dir): Add debug dwarf-line support.
7046 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7047 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7048
4dcabcc2
DE
70492015-05-27 Doug Evans <dje@google.com>
7050
7051 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7052 All callers updated.
7053 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7054 * cp-support.h (cp_lookup_nested_symbol): Update.
7055
b2e2f908
DE
70562015-05-27 Doug Evans <dje@google.com>
7057
7058 PR symtab/18258
7059 * block.c (block_find_symbol): New function.
7060 (block_find_non_opaque_type): Ditto.
7061 (block_find_non_opaque_type_preferred): Ditto.
7062 * block.h (block_symbol_matcher_ftype): New typedef.
7063 (block_find_symbol): Declare.
7064 (block_find_non_opaque_type): Ditto.
7065 (block_find_non_opaque_type_preferred): Ditto.
7066 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7067 * psymtab.c (psym_lookup_symbol): Ditto.
7068 * symtab.c (basic_lookup_transparent_type_1): New function.
7069 (basic_lookup_transparent_type): Call it.
7070
f62fce35
YQ
70712015-05-27 Yao Qi <yao.qi@linaro.org>
7072
7073 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7074 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7075
5d98d3cd
YQ
70762015-05-27 Yao Qi <yao.qi@linaro.org>
7077
7078 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7079 before operator &&.
7080 (aarch64_record_load_store): Likewise.
7081
82c7be31
DE
70822015-05-26 Doug Evans <dje@google.com>
7083
7084 PR c++/18141, c++/18417.
7085 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7086 a typedef.
7087
b4f54984
DE
70882015-05-26 Doug Evans <dje@google.com>
7089
7090 * NEWS: Add entries for command renamings.
7091 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7092 All uses updated.
7093 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7094 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7095 All uses updated.
7096 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7097 All callers updated. Fix spelling of DWARF in help text.
7098 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7099 All uses updated.
7100 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7101 All uses updated.
7102 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7103 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7104 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7105 All uses updated.
7106 (show_dwarf_always_disassemble): Renamed from
7107 show_dwarf2_always_disassemble. All callers updated.
7108 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7109 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7110 "set/show dwarf max-cache-age". Rename
7111 "set/show dwarf2 always-disassemble" to
7112 "set/show dwarf always-disassemble". Rename
7113 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7114 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7115
4ea6efe9
DE
71162015-05-26 Doug Evans <dje@google.com>
7117
7118 PR python/18438
7119 * python/py-lazy-string.c (stpy_convert_to_value): Use
7120 gdbpy_gdb_memory_error not PyExc_MemoryError.
7121 (gdbpy_create_lazy_string_object): Ditto.
7122
b93fd21d
AB
71232015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7124
7125 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7126
55b40027
AB
71272015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7128
7129 * tui/tui-regs.c (tui_reg_prev_command): New function.
7130 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7131 * reggroups.c (reggroup_prev): New function.
7132 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7133
99afc88b
OJ
71342015-05-26 Omair Javaid <omair.javaid@linaro.org>
7135 Yao Qi <yao.qi@linaro.org>
7136
7137 * aarch64-linux-tdep.c: Include linux-record.h and
7138 record-full.h.
7139 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7140 (aarch64_syscall): New enum.
7141 (aarch64_canonicalize_syscall): New function.
7142 (aarch64_all_but_pc_registers_record): New function.
7143 (aarch64_linux_syscall_record): New function.
7144 (aarch64_linux_init_abi): Install AArch64 process record
7145 handler. Update to handle syscall recording.
7146 * aarch64-tdep.c: Include record.h and record-full.h.
7147 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7148 (struct aarch64_mem_r): Define.
7149 (aarch64_record_result): New enum.
7150 (struct insn_decode_record): Define.
7151 (insn_decode_record): New typedef.
7152 (aarch64_record_data_proc_reg): New function.
7153 (aarch64_record_data_proc_imm): New function.
7154 (aarch64_record_branch_except_sys): New function.
7155 (aarch64_record_load_store): New function.
7156 (aarch64_record_data_proc_simd_fp): New function.
7157 (aarch64_record_asimd_load_store): New function.
7158 (aarch64_record_decode_insn_handler): New function.
7159 (deallocate_reg_mem): New function.
7160 (aarch64_process_record): New function.
7161 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7162 New field.
7163 (aarch64_process_record): New extern declaration.
7164 * configure.tgt: Add linux-record.o to gdb_target_obs.
7165 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7166
c16a3f52
OJ
71672015-05-26 Omair Javaid <omair.javaid@linaro.org>
7168
7169 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7170 targets.
7171
c9cf6e20
MG
71722015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7173
7174 * amd64-tdep.c: Replace in_function_epilogue_p with
7175 stack_frame_destroyed_p throughout.
7176 * arch-utils.c: Ditto.
7177 * arch-utils.h: Ditto.
7178 * arm-tdep.c: Ditto.
7179 * breakpoint.c: Ditto.
7180 * gdbarch.sh: Ditto.
7181 * hppa-tdep.c: Ditto.
7182 * i386-tdep.c: Ditto.
7183 * mips-tdep.c: Ditto.
7184 * nios2-tdep.c: Ditto.
7185 * rs6000-tdep.c: Ditto.
7186 * s390-linux-tdep.c: Ditto.
7187 * score-tdep.c: Ditto.
7188 * sh-tdep.c: Ditto.
7189 * sparc-tdep.c: Ditto.
7190 * sparc-tdep.h: Ditto.
7191 * sparc64-tdep.c: Ditto.
7192 * spu-tdep.c: Ditto.
7193 * tic6x-tdep.c: Ditto.
7194 * tilegx-tdep.c: Ditto.
7195 * xstormy16-tdep.c: Ditto.
7196 * gdbarch.c, gdbarch.h: Re-generated.
7197
a4ea0946
AB
71982015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7199
7200 * NEWS: Mention 'tui enable' and 'tui disable'.
7201 * tui/tui.c (tui_enable_command): New function.
7202 (tui_disable_command): New function.
7203 (_initialize_tui): New function.
7204
b75c69bb
AB
72052015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7206
7207 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7208
c1b009ee
AB
72092015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7210
7211 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7212 buf_ptr is freed.
7213
880d1e40
AB
72142015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7215
7216 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7217 into ...
7218 (tui_set_layout_for_display_command): ...here, before calling
7219 tui_set_layout. Only set the layout if gdb has not already
7220 entered the TUI_FAILURE state.
7221
a0145030
AB
72222015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7223
7224 * tui/tui-layout.c (layout_completer): New function.
7225 (_initialize_tui_layout): Set completer on layout command.
7226
7bd0be3a
AB
72272015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7228
7229 * tui/tui-layout.c (tui_set_layout): Remove
7230 tui_register_display_type parameter. Remove all checking of this
7231 parameter, and reindent function. Update header comment.
7232 (tui_set_layout_for_display_command): Rename to...
7233 (tui_set_layout_by_name): ...this, and don't check for different
7234 register class types, don't pass a tui_register_display_type to
7235 tui_set_layout. Update header comment.
7236 (layout_names): Remove register set specific names.
7237 * tui/tui-layout.h (tui_set_layout): Remove
7238 tui_register_display_type parameter.
7239 * tui/tui.c (tui_rl_change_windows): Don't pass a
7240 tui_register_display_type to tui_set_layout.
7241 (tui_rl_delete_other_windows): Likewise.
7242 (tui_enable): Likewise.
7243 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7244 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7245 (TUI_GENERAL_REGS_NAME): Remove.
7246 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7247 (TUI_SPECIAL_REGS_NAME): Remove.
7248 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7249 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7250 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7251 (enum tui_register_display_type): Remove.
7252 (struct tui_layout_def): Remove regs_display_type and
7253 float_regs_display_type fields.
7254 (struct tui_data_info): Remove regs_display_type field.
7255 (tui_layout_command): Use new name for
7256 tui_set_layout_for_display_command.
7257 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7258 (tui_clear_win_detail): Don't initialise removed fields of
7259 win_info.
7260 * tui/tui-regs.c (tui_show_registers): Use new name for
7261 tui_set_layout_for_display_command.
7262 * tui/tui.h (tui_set_layout_for_display_command): Rename
7263 declaration to...
7264 (tui_set_layout_by_name): ...this.
7265 * printcmd.c (display_command): Remove tui related layout call,
7266 and reindent.
7267
0b6e5e10
JB
72682015-05-20 Joel Brobecker <brobecker@adacore.com>
7269
7270 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7271 (handle_inferior_event): New function.
7272
1da0522e
JB
72732015-05-20 Joel Brobecker <brobecker@adacore.com>
7274
7275 * ada-lang.c (to_fixed_array_type): Rename local variable
7276 typename into type_name.
7277
5fe75eec
JK
72782015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7279
7280 Fix ASAN crash for gdb.compile/compile.exp.
7281 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7282
a4063588
JK
72832015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7284
7285 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7286 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7287 * compile/compile-object-load.c (setup_sections, compile_object_load):
7288 Likewise.
7289 * compile/compile.c (compile_to_object): Likewise.
7290
37442ce1
DE
72912015-05-16 Doug Evans <xdje42@gmail.com>
7292
7293 * NEWS: Mention support for unbuffered Guile memory ports.
7294 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7295 (ioscm_lseek_address): Improve overflow calculation.
7296 (gdbscm_memory_port_fill_input): Add assert.
7297 (gdbscm_memory_port_write): Handle unbuffered ports.
7298 Handle large writes identical to Guile's fport_write.
7299 (gdbscm_memory_port_seek): Fix seeking past end check.
7300 (gdbscm_memory_port_close): Handle closing unbuffered port.
7301 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7302 (ioscm_init_memory_port): Handle unbuffered ports.
7303 (ioscm_reinit_memory_port): Ditto.
7304 (ioscm_init_memory_port): Update size calculation.
7305 (gdbscm_open_memory): Support zero sized ports.
7306
d976bace
JK
73072015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7308
7309 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7310 variable compiler warnings.
7311
4d18dfad
JK
73122015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7313
7314 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7315
36de76f9
JK
73162015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7317 Phil Muldoon <pmuldoon@redhat.com>
7318
7319 * NEWS (Changes since GDB 7.9): Add compile print.
7320 * compile/compile-c-support.c (add_code_header, add_code_footer)
7321 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7322 COMPILE_I_PRINT_VALUE_SCOPE.
7323 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7324 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7325 New.
7326 * compile/compile-object-load.c: Include block.h.
7327 (get_out_value_type): New function.
7328 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7329 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7330 OUT_VALUE_TYPE.
7331 * compile/compile-object-load.h (struct compile_module): Add fields
7332 out_value_addr and out_value_type.
7333 * compile/compile-object-run.c: Include valprint.h and compile.h.
7334 (struct do_module_cleanup): Add fields out_value_addr and
7335 out_value_type.
7336 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7337 COMPILE_I_PRINT_VALUE_SCOPE.
7338 (compile_object_run): Propagate out_value_addr and out_value_type.
7339 Pass OUT_VALUE_ADDR.
7340 * compile/compile.c: Include valprint.h.
7341 (compile_print_value, compile_print_command): New functions.
7342 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7343 (_initialize_compile): Update compile code help text. Install
7344 compile_print_command.
7345 * compile/compile.h (compile_print_value): New prototype.
7346 * defs.h (enum compile_i_scope_types): Add
7347 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7348
83d3415e
JK
73492015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7350
7351 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7352 Rely on its parameter count.
7353 (compile_object_load): Replace lookup_minimal_symbol_text by
7354 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7355 return value.
7356 * compile/compile-object-load.h (struct compile_module): Replace
7357 func_addr by func_sym.
7358 * compile/compile-object-run.c: Include block.h.
7359 (compile_object_run): Reset module variable after it is freed. Use
7360 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7361
3a9558c4
JK
73622015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7363
7364 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7365 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7366 (c_compute_program): Call generate_register_struct after typedefs.
7367 * compile/compile-loc2c.c (push, pushf_register_address)
7368 (pushf_register): Cast to GCC_UINTPTR.
7369 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7370 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7371 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7372 * compile/compile.c (_initialize_compile): Enable warnings for
7373 COMPILE_ARGS.
7374
5c65b58a
JK
73752015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7376
7377 * cli/cli-script.c (execute_control_command): Update
7378 eval_compile_command caller.
7379 * compile/compile-object-load.c (compile_object_load): Add parameters
7380 scope and scope_data. Set them.
7381 * compile/compile-object-load.h (struct compile_module): Add fields
7382 scope and scope_data.
7383 (compile_object_load): Add parameters scope and scope_data.
7384 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7385 scope and scope_data.
7386 (compile_object_run): Propagate the fields scope and scope_data.
7387 * compile/compile.c (compile_file_command, compile_code_command):
7388 Update eval_compile_command callers.
7389 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7390 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7391 * defs.h (struct command_line): Add field scope_data.
7392
1c88ceb1
JK
73932015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7394
7395 * printcmd.c (struct format_data): Move it to valprint.h.
7396 (print_command_parse_format, print_value): New functions from ...
7397 (print_command_1): ... here. Call them.
7398 * valprint.h (struct format_data): Move it here from printcmd.c.
7399 (print_command_parse_format, print_value): New declarations.
7400
0b738f27
JK
74012015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7402
7403 * compile/compile-object-load.c (compile_object_load): Add
7404 COMPILE_DEBUG message.
7405
aa715135
JG
74062015-05-15 Jerome Guitton <guitton@adacore.com>
7407
7408 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7409 index to get element instead of enum value.
7410 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7411 of index to compute length, but enum values to compute bounds.
7412 (ada_array_length): Use enum position of index instead of enum value.
7413 (pos_atr): Move position computation to...
7414 (ada_evaluate_subexp): Use enum values to compute bounds.
7415 * gdbtypes.c (discrete_position): ...this new function.
7416 * gdbtypes.h (discrete_position): New function declaration.
7417 * valprint.c (val_print_array_elements): Call discrete_position
7418 to handle array indexed by non-contiguous enumeration types.
7419
931e5bc3
JG
74202015-05-15 Jerome Guitton <guitton@adacore.com>
7421
7422 * ada-lang.c (find_parallel_type_by_descriptive_type):
7423 Go through typedefs during lookup.
7424 (to_fixed_array_type): Add support for non-bit packed arrays
7425 as variable-length fields.
7426
4e63d0ac
PA
74272015-05-15 Pedro Alves <palves@redhat.com>
7428 Simon Marchi <simon.marchi@ericsson.com>
7429
7430 * event-loop.c (gdb_notifier) <next_file_handler,
7431 next_poll_fds_index>: New fields.
7432 (get_next_file_handler_to_handle_and_advance): New function.
7433 (delete_file_handler): If deleting the next file handler to
7434 handle, advance to the next file handler.
7435 (gdb_wait_for_event): Bail early if no event fired. Poll file
7436 handlers in round-robin fashion.
7437
52e48b36
PA
74382015-05-15 Pedro Alves <palves@redhat.com>
7439
7440 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7441 'private' to 'priv'.
7442
2465e12e
PA
74432015-05-15 Pedro Alves <palves@redhat.com>
7444
7445 * nat/linux-nat.h: Include "target/waitstatus.h".
7446
13fa0398
YZ
74472015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7448
7449 * python/py-unwind.c (struct reg_info): Move out of ...
7450 (struct cached_frame_info): ... this scope.
7451 (pending_frame_object_type, unwind_info_object_type): Make extern.
7452
9cd4d857
JB
74532015-05-15 Joel Brobecker <brobecker@adacore.com>
7454
7455 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7456 accumSize is never negative.
7457
e3555239
PP
74582015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7459
7460 * tui/tui-command.c: Remove include of <ctype.h>.
7461 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7462
08a76f8a
MG
74632015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7464
7465 * dwarf2read.c (die_needs_namespace): Return 1 for
7466 DW_TAG_inlined_subroutine.
7467
bd49952b
JK
74682015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7469
7470 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7471 (regcache_cpy_no_passthrough): Make it static, add function comment.
7472 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7473 (regcache_cpy_no_passthrough): Remove declaration.
7474
46c03469
JK
74752015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7476
7477 * gdbthread.h (struct thread_control_state): Update comment for
7478 proceed_to_finish.
7479 * infcall.c (run_inferior_call): Update comment about
7480 proceed_to_finish.
7481 * infcmd.c (get_return_value): Update comment about stop_registers.
7482 (finish_forward): Update comment about proceed_to_finish.
7483 * infrun.c (stop_registers): Remove.
7484 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7485 * infrun.h (stop_registers): Remove.
7486
8a6c4031
JK
74872015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7488
7489 * infcall.c (struct dummy_frame_context_saver)
7490 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7491 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7492 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7493 New.
7494 (call_function_by_hand_dummy): Move discard_cleanups of
7495 inf_status_cleanup before dummy_frame_push. Call
7496 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7497 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7498 * infcall.h (struct dummy_frame_context_saver)
7499 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7500 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7501 New declarations.
7502 * infcmd.c: Include infcall.h.
7503 (get_return_value): Add parameter ctx_saver, use it instead of
7504 stop_registers.
7505 (print_return_value): Add parameter ctx_saver, pass it.
7506 (struct finish_command_continuation_args): Add field ctx_saver.
7507 (finish_command_continuation): Update print_return_value caller.
7508 (finish_command_continuation_free_arg): Free also ctx_saver.
7509 (finish_forward): Call dummy_frame_context_saver_setup.
7510 * inferior.h (struct dummy_frame_context_saver): New declaration.
7511 (get_return_value): Add parameter ctx_saver.
7512 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7513 get_return_value caller.
7514
10989690
JK
75152015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7516
7517 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7518 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7519 (remove_dummy_frame): Process dtor_list.
7520 (pop_dummy_frame): Process dtor_list.
7521 (register_dummy_frame_dtor): Maintain dtor_list.
7522 (find_dummy_frame_dtor): Handle dtor_list.
7523 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7524 Update comments.
7525
5e970501
JK
75262015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7527
7528 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7529 registers_valid.
7530 (compile_object_run): Update do_module_cleanup caller.
7531 * dummy-frame.c: Include infcall.h.
7532 (struct dummy_frame): Update dtor comment.
7533 (remove_dummy_frame): Call dtor.
7534 (pop_dummy_frame): Update dtor caller.
7535 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7536 registers_valid.
7537
1c4eb778
JB
75382015-05-13 Joel Brobecker <brobecker@adacore.com>
7539
7540 GDB 7.9.1 released.
7541
f5f85ab9
JB
75422015-05-13 Joel Brobecker <brobecker@adacore.com>
7543
7544 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7545 Xmethods now being able to specify a result type to that new
7546 sectioin.
7547
242cd84c
PP
75482015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7549
7550 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7551 first before resizing the window.
e3555239 7552 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
7553
75542015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
7555
7556 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7557 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7558 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7559 dummy_dtor parameter.
7560 * infcall.h: Include dummy-frame.h.
7561 (call_function_by_hand_dummy_dtor_ftype): Remove.
7562 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7563 parameter.
7564
ebfd00d2
PP
75652015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7566
7567 PR gdb/17820
7568 * top.c (history_size_setshow_var): Change type to signed.
7569 Initialize to -2. Update documentation.
7570 (set_readline_history_size): Define.
7571 (set_history_size_command): Use it. Remove logic for handling
7572 out-of-range sizes.
7573 (init_history): Use set_readline_history_size(). Test for a
7574 value of -2 instead of 0 when determining whether to set a
7575 default history size.
7576 (init_main): Decode the argument of the "size" command as a
7577 zuinteger_unlimited.
7578
83769d0b
DE
75792015-05-12 Doug Evans <dje@google.com>
7580
7581 * dwarf2read.c (struct file_entry): Tweak comments.
7582 (get_debug_line_section): Tweak comments.
7583
0d71eef5
DB
75842015-05-12 Don Breazeal <donb@codesourcery.com>
7585
7586 * NEWS: Announce fork support in the RSP and support
7587 for fork debugging in extended mode.
7588
cbb8991c
DB
75892015-05-12 Don Breazeal <donb@codesourcery.com>
7590
7591 * remote.c (remote_insert_fork_catchpoint): New function.
7592 (remote_remove_fork_catchpoint): New function.
7593 (remote_insert_vfork_catchpoint): New function.
7594 (remote_remove_vfork_catchpoint): New function.
7595 (pending_fork_parent_callback): New function.
7596 (remove_new_fork_child): New function.
7597 (remote_update_thread_list): Call remote_notif_get_pending_events
7598 and remove_new_fork_child.
7599 (extended_remote_kill): Kill fork child when killing the
7600 parent before follow_fork completes.
7601 (init_extended_remote_ops): Initialize target vector with
7602 new fork catchpoint functions.
7603
c269dbdb
DB
76042015-05-12 Don Breazeal <donb@codesourcery.com>
7605
7606 * remote.c (remove_vfork_event_p): New function.
7607 (remote_follow_fork): Add vfork event type to event checking.
7608 (remote_parse_stop_reply): New stop reasons "vfork" and
7609 "vforkdone" for RSP 'T' Stop Reply Packet.
7610
de0d863e
DB
76112015-05-12 Don Breazeal <donb@codesourcery.com>
7612
7613 * linux-nat.c (linux_nat_ptrace_options): New function.
7614 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7615 Call linux_nat_ptrace_options and use different argument to
7616 linux_enable_event_reporting.
7617 (_initialize_linux_nat): Delete call to
7618 linux_ptrace_set_additional_flags.
c8f6c93c 7619 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
7620 supported_ptrace_options.
7621 (additional_flags): Delete variable.
7622 (linux_check_ptrace_features): Use supported_ptrace_options.
7623 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7624 Likewise, and remove additional_flags check.
7625 (linux_enable_event_reporting): Change 'attached' argument to
7626 'options'. Use supported_ptrace_options.
c8f6c93c 7627 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
7628 supported_ptrace_options.
7629 (linux_ptrace_set_additional_flags): Delete function.
7630 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7631 Delete function prototype.
7632 * remote.c (remote_fork_event_p): New function.
7633 (remote_detach_pid): New function.
7634 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7635 if doing detach-on-fork.
7636 (remote_follow_fork): New function.
7637 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7638 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7639 (init_extended_remote_ops): Initialize to_follow_fork.
7640
89245bc0
DB
76412015-05-12 Don Breazeal <donb@codesourcery.com>
7642
7643 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7644 from static to extern.
7645 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7646 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7647 * PACKET_vfork_event_feature>: New enumeration constants.
7648 (remote_protocol_features): Add table entries for new packets.
7649 (remote_query_supported): Add new feature queries to qSupported
7650 packet.
7651
835205d0
GB
76522015-05-12 Gary Benson <gbenson@redhat.com>
7653
7654 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7655 for fake PIDs as well as real ones.
7656 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7657
4c082a81
SC
76582015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7659
7660 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7661 * python/py-value.c (valpy_reference_value): New function.
7662 (valpy_const_value): Likewise.
7663 (value_object_methods): Add new methods.
7664 * value.c (make_cv_value): New function.
7665 * value.h (make_cv_value): Declare.
7666
afa6c9ab
SL
76672015-05-08 Yao Qi <yao@codesourcery.com>
7668 Sandra Loosemore <sandra@codesourcery.com>
7669
7670 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7671 to 'lh->include_dirs' before accessing to it.
7672 (psymtab_include_file_name): Likewise.
7673 (dwarf_decode_lines_1): Likewise.
7674 (dwarf_decode_lines): Likewise.
7675 (file_file_name): Likewise.
7676
35d54293
SL
76772015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7678
7679 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7680 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7681 (nios2_linux_rt_sigreturn_init): Adjust base address of
7682 register save area.
7683
b73c49b7
SL
76842015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7685
7686 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7687 "trap 31" as the breakpoint instruction on all targets.
7688
dd9f02a0
JK
76892015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7690
7691 * infcmd.c (print_return_value): Remove unused declaration.
7692
6ad395a7
JB
76932015-05-08 Joel Brobecker <brobecker@adacore.com>
7694
7695 * dwarf2read.c (attr_to_dynamic_prop)
7696 <DW_AT_data_member_location>: Use read_type_die isntead of
7697 get_die_type.
7698
8344af1e
JB
76992015-05-08 Joel Brobecker <brobecker@adacore.com>
7700
7701 * ada-lang.c (ada_convert_actual): Add handling of formals
7702 passed inside an aligner type.
7703
80b0912b
JB
77042015-05-08 Joel Brobecker <brobecker@adacore.com>
7705
7706 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7707
df2eb078
SC
77082015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7709
7710 PR python/18291
7711 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7712 Print xmethod matcher status.
7713
2492f0d0
AA
77142015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7715
7716 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7717 register in the regcache when treating the PSWM register, and vice
7718 versa.
7719
1c56a84d
GB
77202015-05-07 Gary Benson <gbenson@redhat.com>
7721
7722 * linux-thread-db.c (struct thread_db_info)
7723 <td_ta_map_id2thr_p>: Remove field.
7724 (try_thread_db_load_1): Remove initialization for the above.
7725
74850322
GB
77262015-05-07 Gary Benson <gbenson@redhat.com>
7727
7728 * linux-thread-db.c (struct thread_db_info)
7729 <td_thr_validate_p>: Remove field.
7730 (try_thread_db_load_1): Remove initialization for the above.
7731
e26efa40
JK
77322015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7733
7734 * compile/compile-object-load.c (compile_object_load): Support
7735 mst_text_gnu_ifunc.
7736
851c9091
JK
77372015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7738
7739 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7740 const. Use new variables for the const compatibility.
7741 (eval_compile_command): Make the cmd_string parameter const.
7742 * compile/compile.h (eval_compile_command): Make the cmd_string
7743 parameter const.
7744
f218b647
JB
77452015-05-06 Joel Brobecker <brobecker@adacore.com>
7746
7747 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7748 comment.
7749 * top.c (deprecated_init_ui_hook): Delete.
7750 (gdb_init): Remove handling of deprecated_init_ui_hook.
7751 * interps.c (clear_interpreter_hooks): Remove handling of
7752 deprecated_init_ui_hook.
7753 * main.c (captured_main): Update comment.
7754
b30a0bc3
JB
77552015-05-06 Joel Brobecker <brobecker@adacore.com>
7756
7757 * solib.c (_initialize_solib): Add "info dll" alias creation.
7758 * windows-nat.c (set_windows_aliases): Delete.
7759 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7760 assignment.
7761 * NEWS: Add news entry about "info dll" now being available
7762 on all platforms.
7763
7c512744
JB
77642015-05-05 Joel Brobecker <brobecker@adacore.com>
7765
7766 * ada-lang.c (value_assign_to_component): Reformat and improve
7767 documentation. Remove all trailing spaces.
7768
0fa7fe50
JB
77692015-05-05 Joel Brobecker <brobecker@adacore.com>
7770
7771 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7772 Stop counting inlined frames as soon as an out-of-line function
7773 is found.
7774
3ea89b92
PMR
77752014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
7776
7777 * dwarf2read.c (inherit_abstract_dies): Skip
7778 DW_TAG_GNU_call_site dies while inheriting children of an
7779 abstract DIE into a scope.
7780 (read_lexical_block_scope): Inherit abstract DIE's for
7781 lexical scopes.
7782
2478d075
JB
77832015-05-05 Joel Brobecker <brobecker@adacore.com>
7784
7785 * ada-valprint.c (val_print_packed_array_elements): Delete
7786 variable "len". Add a type-length check when comparing two
7787 consecutive elements of the array. Use the element's actual
7788 length in call to value_contents_eq.
7789 * ada-lang.c (ada_value_primitive_packed_val): Always return
7790 a value whose type has been resolved.
7791
fc958966
JB
77922015-05-05 Joel Brobecker <brobecker@adacore.com>
7793
7794 * ada-lang.c (ada_value_primitive_packed_val): Recompute
7795 BIT_SIZE and LEN if the size of the resolved type is smaller
7796 than BIT_SIZE * HOST_CHAR_BIT.
7797
ca34b84f
JB
77982015-05-05 Joel Brobecker <brobecker@adacore.com>
7799
7800 * ada-lang.c (ada_value_primitive_packed_val): Use a more
7801 correct address in call to value_at. Adjust call to
7802 value_address accordingly.
7803
62c67f3c
JB
78042015-05-05 Joel Brobecker <brobecker@adacore.com>
7805
7806 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7807 to print it.
7808
c3345124
JB
78092015-05-05 Joel Brobecker <brobecker@adacore.com>
7810
7811 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7812 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7813 pinfo->valaddr.
7814 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7815 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7816 (resolve_dynamic_type_internal): Set pinfo.valaddr.
7817 Add handling of addr_stack->valaddr.
7818 (resolve_dynamic_type): Add "valaddr" parameter.
7819 Set pinfo.valaddr field.
7820 * ada-lang.c (ada_discrete_type_high_bound): Update call to
7821 resolve_dynamic_type.
7822 (ada_discrete_type_low_bound): Likewise.
7823 * findvar.c (default_read_var_value): Likewise.
7824 * value.c (value_from_contents_and_address): Likewise.
7825
75ea5859
JB
78262015-05-05 Joel Brobecker <brobecker@adacore.com>
7827
7828 * gdbtypes.c (resolve_dynamic_array): Use
7829 create_array_type_with_stride instead of create_array_type.
7830
0952813b
DD
78312015-04-30 DJ Delorie <dj@redhat.com>
7832
7833 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7834 rl78_decode_opcode
7835
2ce1cdbf
DE
78362015-04-29 Doug Evans <dje@google.com>
7837
7838 PR python/18285
7839 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7840 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7841 EVAL_AVOID_SIDE_EFFECTS for xmethods.
7842 * extension-priv.h (struct extension_language_ops)
7843 <get_xmethod_result_type>: New member.
7844 * extension.c (get_xmethod_result_type): New function.
7845 * extension.h (get_xmethod_result_type): Declare.
7846 * python/py-xmethods.c (get_result_type_method_name): New static
7847 global.
7848 (py_get_result_type_method_name): Ditto.
7849 (gdbpy_get_xmethod_result_type): New function.
7850 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
7851 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
7852 * python/python.c (python_extension_ops): Add
7853 gdbpy_get_xmethod_result_type.
7854 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
7855 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
7856 xmethods.
7857 (value_x_unop): Ditto.
7858 * value.c (result_type_of_xmethod): New function.
7859 * value.h (result_type_of_xmethod): Declare.
7860
998d2a3e
GB
78612015-04-29 Gary Benson <gbenson@redhat.com>
7862
7863 * solib.c (solib_find_1): Allow fd argument to be NULL.
7864 (exec_file_find): Update comment.
7865 (solib_find): Likewise.
7866 * exec.c (exec_file_locate_attach): Use NULL as fd
7867 argument to exec_file_find to avoid having to close
7868 the opened file.
7869 * infrun.c (follow_exec): Likewise.
7870
34f5f757
DE
78712015-04-28 Doug Evans <dje@google.com>
7872
7873 PR python/18299
7874 * python/lib/gdb/printing.py (register_pretty_printer): Handle
7875 name or __name__ attributes. Handle gdb module as first argument.
7876
69b4374a
DE
78772015-04-28 Doug Evans <dje@google.com>
7878
7879 PR python/18089
7880 * python/py-prettyprint.c (print_children): Verify result of children
7881 iterator. Provide better error message.
7882 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
7883 * python/python.c (gdbpy_print_python_errors_p): New function.
7884
5e7cf078
DE
78852015-04-28 Doug Evans <dje@google.com>
7886
7887 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
7888
59fb7612
SS
78892015-04-28 Sasha Smundak <asmundak@google.com>
7890
7891 * NEWS: Mention gdb.Type.optimized_out method.
7892 * python/py-type.c (typy_optimized_out): New function.
7893
cea6e4f1
JB
78942015-04-28 John Baldwin <jhb@FreeBSD.org>
7895
7896 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7897
24b73f8e
PP
78982015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7899
7900 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
7901 (initialize_utils): Move call of init_page_info() to ...
7902 * top.c (gdb_init): ... here.
7903
a88d0bb3
PP
79042015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7905
7906 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
7907 (tui_sigwinch_handler): Still update our idea of
7908 the terminal's width and height even when TUI is not active.
7909
d6e5e7f7
PP
79102015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7911
7912 * utils.h (set_screen_width_and_height): Declare.
7913 * utils.c (set_screen_width_and_height): Define.
7914 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
7915
ff862be4
GB
79162015-04-28 Gary Benson <gbenson@redhat.com>
7917
7918 * infrun.c (solist.h): New include.
7919 (follow_exec): Use exec_file_find to prefix execd_pathname
7920 with gdb_sysroot.
7921
2eb639cb
PP
79222015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7923
7924 * tui/tui-source.c (tui_set_source_content): Avoid calling
7925 strcpy() when offset is 0.
7926
97206799
PP
79272015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7928
7929 PR gdb/18155
7930 * tui/tui-data.c (tui_free_window): Don't free the locator
7931 window when passed an SRC_WIN or a DISASSEM_WIN.
7932
63ed8182
PP
79332015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7934
7935 * tui/tui-data.h (struct tui_win_element): Forward-declare.
7936 (tui_win_content): Move declaration.
7937 (struct tui_gen_win_info): Give 'content' field the
7938 type tui_win_content.
7939 * tui/tui-data.c (init_content_element): Remove redundant and
7940 erroneous casts.
7941 (tui_add_content_elements): Remove erroneous cast.
7942 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
7943 casts.
7944 (tui_get_begin_asm_address): Likewise.
7945 * tui/tui-regs.c (tui_show_registers): Likewise.
7946 (tui_show_register_group): Likewise.
7947 (tui_display_registers_from): Likewise.
7948 (tui_check_register_values): Likewise.
7949 * tui/tui-source.c (tui_set_source_content): Likewise.
7950 (tui_set_source_content_nil): Likewise.
7951 (tui_source_is_displayed): Likewise.
7952 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7953 (tui_set_locator_fullname): Likewise.
7954 (tui_set_locator_info): Likewise.
7955 (tui_show_frame_info): Likewise.
7956 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
7957 (tui_show_source_line): Likewise.
7958 (tui_horizontal_source_scroll): Likewise.
7959 (tui_update_breakpoint_info): Likewise.
7960 (tui_set_exec_info_content): Likewise.
7961 (tui_show_exec_info_content): Likewise.
7962 (tui_alloc_source_buffer): Likewise.
7963 (tui_line_is_displayed): Likewise.
7964 (tui_addr_is_displayed): Likewise.
7965
d2b41ca0
JB
79662015-04-27 John Baldwin <jhb@FreeBSD.org>
7967
7968 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
7969 event if PL_FLAG_EXEC is set.
7970 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
7971 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
7972 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
7973 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
7974 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
7975
e58e05d6
JB
79762015-04-27 John Baldwin <jhb@FreeBSD.org>
7977
7978 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
7979 [TDP_RFPPWAIT] New variable fbsd_pending_children.
7980 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
7981 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
7982 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
7983 [PT_LWPINFO] (fbsd_wait): New function.
7984 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
7985 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
7986 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
7987 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
7988 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
7989 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
7990 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
7991 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
7992 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
7993 "fbsd_wait".
7994 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
7995 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
7996 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
7997 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
7998 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
7999 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8000 Set "to_post_attach" to "fbsd_post_attach".
8001
8f60fe01
JB
80022015-04-27 John Baldwin <jhb@FreeBSD.org>
8003
8004 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8005 (fbsd_find_memory_regions): Mark static.
8006 (fbsd_nat_add_target): New function.
8007 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8008 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8009 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8010 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8011 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8012 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8013
5fbae7d1
GB
80142015-04-27 Gary Benson <gbenson@redhat.com>
8015
8016 * objfiles.c (allocate_objfile): Do not attempt to expand name
8017 if name is a "target:" filename.
8018 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8019 to load auto-load scripts for objfiles with "target:" filenames.
8020
417c80f9
AA
80212015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8022
8023 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8024 (enum s390_vector_abi_kind): New enum.
8025 (struct gdbarch_tdep)<vector_abi>: New field.
8026 (s390_effective_inner_type): Add parameter min_size. Stop
8027 unwrapping if the inner type is smaller than min_size.
8028 (s390_function_arg_float): Adjust call to
8029 s390_effective_inner_type.
8030 (s390_function_arg_vector): New function.
8031 (s390_function_arg_integer): Adjust comment.
8032 (struct s390_arg_state)<vr>: New field.
8033 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8034 arguments according to vector ABI when appropriate.
8035 (s390_push_dummy_call): Initialize the argument state's field
8036 'vr'. Adjust calls to s390_handle_arg.
8037 (s390_register_return_value): Handle vector return values.
8038 (s390_return_value): Apply the "register" return value convention
8039 to a vector when appropriate.
8040 (s390_gdbarch_init): Initialize tdep->vector_abi.
8041 * NEWS: Announce S390 vector ABI support.
8042
4e65a17e
AA
80432015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8044
8045 * s390-linux-tdep.c (s390_return_value_convention): Remove
8046 function. Inline its logic...
8047 (s390_return_value): ...here. Instead, move the handling of the
8048 "register" return value convention...
8049 (s390_register_return_value): ...here. New function.
8050
80f75320
AA
80512015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8052
8053 * s390-linux-tdep.c
8054 (is_float_singleton): Remove function. Move the "singleton" part
8055 of the logic...
8056 (s390_effective_inner_type): ...here. New function.
8057 (is_float_like): Remove function. Inline its logic...
8058 (s390_function_arg_float): ...here.
8059 (is_pointer_like, is_integer_like, is_struct_like): Remove
8060 functions. Inline their logic...
8061 (s390_function_arg_integer): ...here.
8062 (s390_function_arg_pass_by_reference): Remove function.
8063 (extend_simple_arg): Remove function.
8064 (alignment_of): Remove function.
8065 (struct s390_arg_state): New structure.
8066 (s390_handle_arg): New function.
8067 (s390_push_dummy_call): Move parameter placement logic to the new
8068 function s390_handle_arg. Call it for calculating the stack area
8069 sizes first, and again for actually writing the parameters.
8070
6dbc9c04
AA
80712015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8072
8073 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8074 false if the argument is zero.
8075
9e195661
PMR
80762015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8077
8078 * ada-lang.c (template_to_static_fixed_type): Return input type
8079 when it is already fixed. Cache the input type itself when not
8080 creating a static fixed copy. Make it explicit that we never
8081 molestate the input type.
8082 * gdbtypes.c (resolve_dynamic_struct): Reset the
8083 TYPE_TARGET_TYPE field for resolved copies.
8084
460efde1
JB
80852015-04-27 Joel Brobecker <brobecker@adacore.com>
8086
8087 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8088 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8089 (template_to_static_fixed_type): Call ada_check_typedef only
8090 when necessary.
8091
6faec16b
AB
80922015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8093
8094 * cli/cli-dump.c (srec_dump_command): Add internationalization
8095 mark ups.
8096 (ihex_dump_command): Likewise.
8097 (tekhex_dump_command): Likewise.
8098 (binary_dump_command): Likewise.
8099 (binary_append_command): Likewise.
8100
cf75d6c3
AB
81012015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8102
8103 * cli/cli-dump.c (verilog_cmdlist): New variable.
8104 (dump_verilog_memory): New function.
8105 (dump_verilog_value): New function.
8106 (verilog_dump_command): New function.
8107 (_initialize_cli_dump): Add new commands to support verilog dump
8108 format.
8109 * NEWS: Add entry for "dump verilog".
8110
8cd00c59
PMR
81112015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8112
8113 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8114 descriptive type when there is none.
8115
8900d71e
PP
81162015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8117
8118 * tui/tui-win.c (tui_async_resize_screen): Call
8119 rl_resize_terminal().
8120
f16eab5f
JT
81212015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8122
8123 * windows-nat.c (handle_output_debug_string): Don't change
8124 current_event.dwThreadId.
8125 (get_windows_debug_event): Use thread_id, rather than relying on
8126 current_event.dwThreadId being changed.
8127
68ffc902
JT
81282015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8129
8130 * windows-nat.c (windows_continue): Report an error if
8131 ContinueDebugEvent() fails.
8132
23942819
JT
81332015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8134
8135 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8136
e6ad66bd
JT
81372015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8138
8139 * windows-nat.c (get_windows_debug_event): Replace retval with
8140 thread_id throughout. Update stale comment.
8141
776704b9
JT
81422015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8143
8144 * windows-nat.c (get_windows_debug_event): Don't use ternary
8145 conditional operator.
8146
8aae4344
PM
81472015-04-21 Pierre Muller <muller@sourceware.org>
8148
8149 PR pascal/17815
8150 p-exp.y (yylex): Reorganize code to return the matched pattern
8151 for a field of this.
8152
819843c7
GB
81532015-04-21 Gary Benson <gbenson@redhat.com>
8154
8155 * common/fileio.h (fileio_to_host_openflags): New declaration.
8156 * common/fileio.c (fcntl.h): New include.
8157 (fileio_to_host_openflags): New function, factored out from...
8158 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8159 Single use updated.
8160
0bca7f99
KB
81612015-04-21 Kevin Buettner <kevinb@redhat.com>
8162
8163 * rl78-tdep.c (RL78_SP_ADDR): Define.
8164 (opc_reg_to_gdb_regnum): New static function.
8165 (rl78_analyze_prologue): Recognize instructions forming slightly
8166 more interesting prologues.
8167
e771e4be
PMR
81682015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8169
8170 Revert:
8171 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8172 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8173 TYPE_CODE_REF types so that they are not considered as dynamic
8174 depending on the referenced type.
8175 (resolve_dynamic_type_internal): Likewise.
8176
ee715b5a
PMR
81772015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8178
8179 Revert:
8180 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8181 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8182 "top_level" parameter.
8183 (resolve_dynamic_type_internal): Remove the unused "top_level"
8184 parameter. Update call to is_dynamic_type_internal.
8185 (is_dynamic_type): Update call to is_dynamic_type_internal.
8186 (resolve_dynamic_range): Update call to
8187 resolve_dynamic_type_internal.
8188 (resolve_dynamic_union): Likewise.
8189 (resolve_dynamic_struct): Likewise.
8190 (resolve_dynamic_type): Likewise.
8191
e31d7699
GKB
81922015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8193
8194 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8195 xmalloc.
8196
d214e5e7
TS
81972015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8198
110f9112
TS
8199 * reply_mig_hack.awk: Robustify parsing.
8200
d214e5e7
TS
8201 * reply_mig_hack.awk: Don't bother to declare an intermediate
8202 function pointer variable.
8203
8f61baf8
DE
82042015-04-17 Doug Evans <dje@google.com>
8205
8206 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8207 to "exec_displacement" to avoid confusion with inner use of the name.
8208
dbbf180a
YQ
82092015-04-17 Pedro Alves <palves@redhat.com>
8210
8211 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8212 if HW point of TYPE isn't supported.
8213
059790a0
YQ
82142015-04-17 Yao Qi <yao.qi@linaro.org>
8215 Pedro Alves <palves@redhat.com>
8216
8217 * target.h (target_can_use_hardware_watchpoint): Update comments.
8218 Remove trailing ";".
8219
1b6e6f5c
GB
82202015-04-17 Gary Benson <gbenson@redhat.com>
8221
8222 * remote.c (remote_add_inferior): New argument try_open_exec.
8223 If nonzero, attempt to open the inferior's executable file as
8224 the main executable if no main executable is open already.
8225 All callers updated.
8226 * NEWS: Mention that GDB now supports automatic location and
8227 retrieval of executable + files from remote targets.
8228
c78fa86a
GB
82292015-04-17 Gary Benson <gbenson@redhat.com>
8230
8231 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8232 * remote.c (PACKET_qXfer_exec_file): Likewise.
8233 (remote_protocol_features): Register the
8234 "qXfer:exec-file:read" feature.
8235 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8236 (remote_pid_to_exec_file): New function.
8237 (init_remote_ops): Initialize to_pid_to_exec_file.
8238 (_initialize_remote): Register new "set/show remote
8239 pid-to-exec-file-packet" command.
8240 * NEWS: Announce new qXfer:exec-file:read packet.
8241
e0d86d2c
GB
82422015-04-17 Gary Benson <gbenson@redhat.com>
8243
8244 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8245 New declaration.
8246 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8247 New function, factored out from...
8248 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8249
a9a5a3d1
GB
82502015-04-17 Gary Benson <gbenson@redhat.com>
8251
8252 * exec.c (solist.h): New include.
8253 (exec_file_locate_attach): Prefix absolute executable
8254 paths with gdb_sysroot if set.
8255 * NEWS: Mention that executable paths may be prepended
8256 with sysroot.
8257
af1900b0
GB
82582015-04-17 Gary Benson <gbenson@redhat.com>
8259
8260 * solist.h (exec_file_find): New declaration.
8261 * solib.c (solib_find_1): New function, factored out from...
8262 (solib_find): ...here.
8263 (exec_file_find): New function.
8264
a10de604
GB
82652015-04-17 Gary Benson <gbenson@redhat.com>
8266
8267 * gdbcore.h (exec_file_locate_attach): New declaration.
8268 * exec.c (exec_file_locate_attach): New function, factored
8269 out from...
8270 * infcmd.c (attach_command_post_wait): ...here.
8271
92209ddf
MF
82722015-04-17 Mike Frysinger <vapier@gentoo.org>
8273
8274 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8275
8550d3b3
YQ
82762015-04-16 Yao Qi <yao.qi@linaro.org>
8277
8278 * infrun.c (maybe_software_singlestep): Declare.
8279 (displaced_step_fixup): Call maybe_software_singlestep.
8280
30b3dd9d
DE
82812015-04-15 Doug Evans <dje@google.com>
8282
8283 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8284
61d96d7e
DE
82852015-04-15 Doug Evans <dje@google.com>
8286
8287 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8288
40d2f8d6
SM
82892015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8290
8291 * python/lib/gdb/command/unwinders.py: Add parentheses.
8292
6bbbba9b
YQ
82932015-04-15 Yao Qi <yao.qi@linaro.org>
8294
8295 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8296
2bb2dcab
YQ
82972015-04-15 Yao Qi <yao.qi@linaro.org>
8298
8299 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8300
41f071ef
YQ
83012015-04-15 Yao Qi <yao.qi@linaro.org>
8302
8303 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8304 dsc->insn_size instead of 4.
8305
326a5c7e
GB
83062015-04-14 Gary Benson <gbenson@redhat.com>
8307
8308 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8309 * minidebug.c (lzma_stat): Likewise.
8310 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8311 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8312
dd177e81
SS
83132015-04-13 Stan Shebs <stanshebs@google.com>
8314
8315 * MAINTAINERS: Update my email address.
8316
97de3545
JB
83172015-04-13 John Baldwin <jhb@FreeBSD.org>
8318
8319 * amd64-tdep.c (amd64_target_description): New function.
8320 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8321 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8322 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8323 x86 extended save area.
8324 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8325 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8326 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8327 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8328 "amd64fbsd_read_description".
8329 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8330 (amd64fbsd_supply_xstateregset): New function.
8331 (amd64fbsd_collect_xstateregset): New function.
8332 Add "amd64fbsd_xstateregset".
8333 (amd64fbsd_iterate_over_regset_sections): New function.
8334 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8335 "I386_FBSD_XSAVE_XCR0_OFFSET".
8336 Add "iterate_over_regset_sections" gdbarch method.
8337 Add "core_read_description" gdbarch method.
8338 * i386-tdep.c (i386_target_description): New function.
8339 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8340 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8341 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8342 x86 extended save area.
8343 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8344 * i386bsd-nat.h: Export i386bsd_xsave_len.
8345 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8346 (_initialize_i386fbsd_nat): Set "to_read_description" to
8347 "i386fbsd_read_description".
8348 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8349 (i386fbsd_core_read_description): New function.
8350 (i386fbsd_supply_xstateregset): New function.
8351 (i386fbsd_collect_xstateregset): New function.
8352 Add "i386fbsd_xstateregset".
8353 (i386fbsd_iterate_over_regset_sections): New function.
8354 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8355 "I386_FBSD_XSAVE_XCR0_OFFSET".
8356 Add "iterate_over_regset_sections" gdbarch method.
8357 Add "core_read_description" gdbarch method.
8358 * i386fbsd-tdep.h: New file.
8359
4f45d445
JK
83602015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8361
8362 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8363 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8364 conditional.
8365 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8366 and lb.
8367 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8368 va.
8369 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8370 conditional.
8371 * defs.h (xdb_commands): Remove declaration.
8372 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8373 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8374 * infcmd.c (run_no_args_command, go_command): Remove.
8375 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8376 * infrun.c (xdb_handle_command): Remove.
8377 (_initialize_infrun): Remove xdb_commands for lz and z.
8378 * main.c (xdb_commands): Remove variable.
8379 (captured_main): Remove "xdb" from long_options.
8380 (print_gdb_help): Remove --xdb from help.
8381 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8382 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8383 * stack.c (backtrace_full_command, args_plus_locals_info)
8384 (current_frame_command): Remove.
8385 (_initialize_stack): Remove xdb_commands for t, T and l.
8386 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8387 * thread.c (_initialize_thread): Remove xdb_commands condition.
8388 * tui/tui-layout.c (tui_toggle_layout_command)
8389 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8390 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8391 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8392 (tui_scroll_regs_backward_command): Remove.
8393 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8394 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8395 (_initialize_tui_win): Remove xdb_commands for U and w.
8396 * utils.c (pagination_on_command, pagination_off_command): Remove.
8397 (initialize_utils): Remove xdb_commands for am and sm.
8398
cb71640d
PA
83992015-04-10 Pedro Alves <palves@redhat.com>
8400
8401 * infrun.c (displaced_step_fixup): Switch to the event ptid
8402 earlier. If the thread stopped for a watchpoint and the
8403 target/arch has non-continuable watchpoints, cancel the displaced
8404 step.
8405 (resume): Don't start a displaced step if in-line step-over info
8406 is valid.
8407
8f572e5c
PA
84082015-04-10 Pedro Alves <palves@redhat.com>
8409
8410 * infrun.c (displaced_step_in_progress): New function.
8411 (do_target_resume): Advise target to report all signals if
8412 displaced stepping.
8413
8d707a12
PA
84142015-04-10 Pedro Alves <palves@redhat.com>
8415
8416 PR gdb/18216
8417 * infrun.c (process_event_stop_test): Don't assume a step-resume
8418 is set if tp->stepped_breakpoint is true.
8419
ef713951
YQ
84202015-04-10 Yao Qi <yao.qi@linaro.org>
8421
8422 * arm-tdep.c (install_alu_reg): Update comment.
8423 (thumb_copy_alu_reg): Remove local variable rn. Update
8424 debugging message. Use r2 instead of r1 in the modified
8425 instruction.
8426
906d60cf
PA
84272015-04-10 Pedro Alves <palves@redhat.com>
8428
8429 PR gdb/13858
8430 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8431 linux_displaced_step_location as gdbarch_displaced_step_location
8432 hook.
8433 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8434 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8435 * linux-tdep.c (linux_displaced_step_location): New function,
8436 based on ppc_linux_displaced_step_location.
8437 * linux-tdep.h (linux_displaced_step_location): New declaration.
8438 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8439 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8440 Delete.
8441 (ppc_linux_init_abi): Install linux_displaced_step_location as
8442 gdbarch_displaced_step_location hook, even without Cell/B.E..
8443 (_initialize_ppc_linux_tdep): Don't install
8444 ppc_linux_inferior_created as inferior_created observer.
8445 * s390-linux-tdep.c (s390_gdbarch_init): Install
8446 linux_displaced_step_location as gdbarch_displaced_step_location
8447 hook.
8448
7823a941
GB
84492015-04-09 Gary Benson <gbenson@redhat.com>
8450
8451 * common/common-remote-fileio.h: Rename to...
8452 * common/fileio.h: ...this. Update all references.
8453 (remote_fileio_to_fio_error): Rename to...
8454 (host_to_fileio_error): ...this.
8455 (remote_fileio_to_be): Rename to...
8456 (host_to_bigendian): ...this. Update all callers.
8457 (remote_fileio_to_fio_uint): Rename to...
8458 (host_to_fileio_uint): ...this. Update all callers.
8459 (remote_fileio_to_fio_time): Rename to...
8460 (host_to_fileio_time): ...this. Update all callers.
8461 (remote_fileio_to_fio_stat): Rename to...
8462 (host_to_fileio_stat): ...this.
8463 Update all references.
8464 * common/common-remote-fileio.c: Rename to...
8465 * common/fileio.c: ...this. Update all references.
8466 (remote_fileio_to_fio_error): Rename to...
8467 (host_to_fileio_error): ...this. Update all callers.
8468 (remote_fileio_mode_to_target): Rename to...
8469 (fileio_mode_pack): ...this. Update all callers.
8470 (remote_fileio_to_fio_mode): Rename to...
8471 (host_to_fileio_mode): ...this. Update all callers.
8472 (remote_fileio_to_fio_ulong): Rename to...
8473 (host_to_fileio_ulong): ...this. Update all callers.
8474 (remote_fileio_to_fio_stat): Rename to...
8475 (host_to_fileio_stat): ...this. Update all callers.
8476
f2983cc3
AW
84772015-04-09 Andy Wingo <wingo@igalia.com>
8478
8479 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8480 (frame_functions): Bind gdbscm_frame_read_register to
8481 frame-read-register.
8482 * guile/lib/gdb.scm (frame-read-register): Export.
8483
b88bb450
GB
84842015-04-09 Gary Benson <gbenson@redhat.com>
8485
8486 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8487 New declaration.
8488 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8489 New function, factored out the named functions below.
8490 * inf-child.c (gdb/fileio.h): Remove include.
8491 (common-remote-fileio.h): New include.
8492 (inf_child_errno_to_fileio_error): Remove function. Update
8493 all callers to use remote_fileio_to_fio_error.
8494 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8495
2f2680f3
AW
84962015-04-09 Andy Wingo <wingo@igalia.com>
8497
8498 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8499
5a2d4533
L
85002015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8501
8502 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8503 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8504 * configure: Regenerated.
8505
421693b0
PA
85062015-04-09 Pedro Alves <palves@redhat.com>
8507
8508 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8509 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8510 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8511 * gnulib/import/Makefile.am: Update.
8512 * gnulib/import/Makefile.in: Update.
8513 * gnulib/import/m4/gnulib-cache.m4: Update.
8514 * gnulib/import/m4/gnulib-comp.m4: Update.
8515 * gnulib/import/m4/strtok_r.m4: New file.
8516 * gnulib/import/strtok_r.c: New file.
8517
f543dc83
PA
85182015-04-09 Pedro Alves <palves@redhat.com>
8519
8520 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8521 "called too early to check prototype".
8522
6d62641c
SDJ
85232015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8524
8525 PR python/16699
8526 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8527 use a caching mechanism. Adjust comments and code to reflect
8528 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8529 (cmdpy_completer_handle_brkchars): Adjust call to
8530 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8531 (cmdpy_completer): Likewise.
8532
85558555
YQ
85332015-04-08 Yao Qi <yao.qi@linaro.org>
8534
8535 * spu-tdep.c (spu_gdbarch_init): Don't call
8536 set_gdbarch_cannot_step_breakpoint.
8537
d249a14a
SDJ
85382015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8539
8540 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8541
8a06aea7
PA
85422015-04-07 Pedro Alves <palves@redhat.com>
8543
8544 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8545 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8546 (delete_exited_threads): New declaration.
8547 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8548 * linux-nat.c (linux_nat_update_thread_list): New function.
8549 (linux_nat_add_target): Install it.
8550 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8551 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8552 (delete_exited_threads): New function.
8553
d9b67d9f
PA
85542015-04-07 Pedro Alves <pedro@codesourcery.com>
8555
8556 * infrun.c (resume) <displaced stepping debug output>: Get the
8557 leader thread's regcache, not resume_ptid's.
8558
2c26b84f
DE
85592015-04-06 Doug Evans <xdje42@gmail.com>
8560
8561 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8562 VAR_DOMAIN.
8563 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8564 Include symbol domain in debugging output.
8565
7a85168d
PA
85662015-04-06 Pedro Alves <palves@redhat.com>
8567 Bernd Edlinger <bernd.edlinger@hotmail.de>
8568
8569 * configure.ac: Remove the mingw32-specific stub-termcap.o
8570 fallback, and instead fallback to the stub termcap on all hosts.
8571 * configure: Regenerate.
8572 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8573 symbols.
8574
25755e2b
PMR
85752015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8576
8577 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8578 "top_level" parameter.
8579 (resolve_dynamic_type_internal): Remove the unused "top_level"
8580 parameter. Update call to is_dynamic_type_internal.
8581 (is_dynamic_type): Update call to is_dynamic_type_internal.
8582 (resolve_dynamic_range): Update call to
8583 resolve_dynamic_type_internal.
8584 (resolve_dynamic_union): Likewise.
8585 (resolve_dynamic_struct): Likewise.
8586 (resolve_dynamic_type): Likewise.
8587
961f4160
PMR
85882015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8589
8590 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8591 TYPE_CODE_REF types so that they are not considered as dynamic
8592 depending on the referenced type.
8593 (resolve_dynamic_type_internal): Likewise.
8594
39f3de7c
L
85952015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8596
8597 * Makefile.in (top_srcdir): New.
8598 * configure: Regenerated.
8599
599bd15c
GB
86002015-04-02 Gary Benson <gbenson@redhat.com>
8601
8602 * NEWS: Announce the new default sysroot of "target:".
8603
fed040c6
GB
86042015-04-02 Gary Benson <gbenson@redhat.com>
8605
8606 * main.c (captured_main): Set gdb_sysroot to "target:"
8607 if not otherwise set.
8608
64c0b5de
GB
86092015-04-02 Gary Benson <gbenson@redhat.com>
8610
8611 * exec.c (exec_file_attach): Support "target:" filenames.
8612
b57fbfba
GB
86132015-04-02 Gary Benson <gbenson@redhat.com>
8614
8615 * solib.c (solib_find): Strip "target:" prefix from sysroot
8616 if accessing local files.
8617
97a41605
GB
86182015-04-02 Gary Benson <gbenson@redhat.com>
8619
8620 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8621 checks and error messages.
8622
2938e6cf
GB
86232015-04-02 Gary Benson <gbenson@redhat.com>
8624
8625 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8626 (remote_filename_p): Remove declaration.
8627 (remote_bfd_open): Likewise.
8628 * remote.c (remote_bfd_iovec_open): Remove function.
8629 (remote_bfd_iovec_close): Likewise.
8630 (remote_bfd_iovec_pread): Likewise.
8631 (remote_bfd_iovec_stat): Likewise.
8632 (remote_filename_p): Likewise.
8633 (remote_bfd_open): Likewise.
8634 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8635 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8636 (gdb_bfd_open_maybe_remote): Remove function.
8637 (symfile_bfd_open): Replace remote filename check with
8638 target filename check.
8639 (reread_symbols): Use gdb_bfd_open.
8640 * build-id.c (gdbcore.h): New include.
8641 (build_id_to_debug_bfd): Use gdb_bfd_open.
8642 * infcmd.c (attach_command_post_wait): Remove remote filename
8643 check.
8644 * solib.c (solib_find): Replace remote-specific handling with
8645 target-specific handling. Update comments where necessary.
8646 (solib_bfd_open): Replace remote-specific handling with
8647 target-specific handling.
8648 (gdb_sysroot_changed): New function.
8649 (_initialize_solib): Call the above when gdb_sysroot changes.
8650 * windows-tdep.c (gdbcore.h): New include.
8651 (windows_xfer_shared_library): Use gdb_bfd_open.
8652
f08e97fe
GB
86532015-04-02 Gary Benson <gbenson@redhat.com>
8654
8655 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8656 (is_target_filename): New declaration.
8657 (gdb_bfd_has_target_filename): Likewise.
8658 (gdb_bfd_open): Update documentation comment.
8659 * gdb_bfd.c (target.h): New include.
8660 (gdb/fileio.h): Likewise.
8661 (is_target_filename): New function.
8662 (gdb_bfd_has_target_filename): Likewise.
8663 (fileio_errno_to_host): Likewise.
8664 (gdb_bfd_iovec_fileio_open): Likewise.
8665 (gdb_bfd_iovec_fileio_pread): Likewise.
8666 (gdb_bfd_iovec_fileio_close): Likewise.
8667 (gdb_bfd_iovec_fileio_fstat): Likewise.
8668 (gdb_bfd_open): Use target fileio to access paths prefixed
8669 with "target:" where necessary.
8670
4bd7dc42
GB
86712015-04-02 Gary Benson <gbenson@redhat.com>
8672
8673 * target.h (struct target_ops) <to_filesystem_is_local>:
8674 New field.
8675 (target_filesystem_is_local): New macro.
8676 * target-delegates.c: Regenerate.
8677 * remote.c (remote_filesystem_is_local): New function.
8678 (init_remote_ops): Initialize to_filesystem_is_local.
8679
9b15c1f0
GB
86802015-04-02 Gary Benson <gbenson@redhat.com>
8681
8682 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8683 (target_fileio_fstat): New declaration.
8684 * target.c (target_fileio_fstat): New function.
8685 * inf-child.c (inf_child_fileio_fstat): Likewise.
8686 (inf_child_target): Initialize to_fileio_fstat.
8687 * remote.c (init_remote_ops): Likewise.
8688
d11916aa
SS
86892015-04-01 Sasha Smundak <asmundak@google.com>
8690
8691 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8692 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8693 (py-unwind.o): New recipe.
8694 * NEWS: mention Python frame unwinding.
8695 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8696 gdb/unwinder.py and gdb/command/unwinder.py
8697 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8698 list.
8699 (execute_unwinders): New function.
8700 * python/lib/gdb/command/unwinders.py: New file.
8701 * python/lib/gdb/unwinder.py: New file.
8702 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8703 (objfpy_dealloc): Decrement frame_unwinders reference count.
8704 (objfpy_initialize): Create frame_unwinders list.
8705 (objfpy_get_frame_unwinders): New function.
8706 (objfpy_set_frame_unwinders): Ditto.
8707 (objfile_getset): Add frame_unwinders attribute to Objfile.
8708 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8709 (pspy_dealloc): Decrement frame_unwinders reference count.
8710 (pspy_initialize): Create frame_unwinders list.
8711 (pspy_get_frame_unwinders): New function.
8712 (pspy_set_frame_unwinders): Ditto.
8713 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8714 * python/py-unwind.c: New file.
8715 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8716 (objpy_get_frame_unwinders): New prototype.
8717 (gdbpy_initialize_unwind): New prototype.
8718 * python/python.c (gdbpy_apply_type_printers): Call
8719 gdbpy_initialize_unwind.
8720
6b403daa
PA
87212015-04-01 Pedro Alves <palves@redhat.com>
8722
8723 * infrun.c (resume): Check currently_stepping after clearing
8724 stepped_breakpoint, not before.
8725
1176ecec
PA
87262015-04-01 Pedro Alves <palves@redhat.com>
8727
8728 * infrun.c (print_target_wait_results): Print all the ptid
8729 elements.
8730
de1fe8c8
PA
87312015-04-01 Pedro Alves <palves@redhat.com>
8732
8733 * infrun.c (keep_going): Also discard cleanups if inserting
8734 breakpoints fails.
8735
e6f5c25b
PA
87362015-04-01 Pedro Alves <palves@redhat.com>
8737
8738 * infrun.c (wait_for_inferior): Install the
8739 finish_thread_state_cleanup cleanup across the whole function, not
8740 just around handle_inferior_event.
8741
1ac806b8
PA
87422015-04-01 Pedro Alves <palves@redhat.com>
8743
8744 * infrun.c (resume) <step past permanent breakpoint>: Use
8745 do_target_resume.
8746
2ee52aa4
PA
87472015-04-01 Pedro Alves <palves@redhat.com>
8748
8749 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8750
5445da1b
PMR
87512015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8752
8753 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8754
4eec2deb
PA
87552015-04-01 Pedro Alves <palves@redhat.com>
8756
8757 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8758 list if it was marked exited.
8759
afa59b79
L
87602015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8761
8762 * configure: Regenerated.
8763
df8411da
SDJ
87642015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8765 Jan Kratochvil <jan.kratochvil@redhat.com>
8766 Oleg Nesterov <oleg@redhat.com>
8767
8768 PR corefiles/16092
8769 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8770 New enum identifying the various options of the coredump_filter
8771 file.
8772 (struct smaps_vmflags): New struct.
8773 (use_coredump_filter): New variable.
8774 (decode_vmflags): New function.
8775 (mapping_is_anonymous_p): Likewise.
8776 (dump_mapping_p): Likewise.
8777 (linux_find_memory_regions_full): New variables
8778 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8779 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
8780 parsing of its information. Implement memory mapping filtering
8781 based on its contents.
8782 (show_use_coredump_filter): New function.
8783 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8784 * NEWS: Mention the possibility of using the
8785 '/proc/PID/coredump_filter' file when generating a corefile.
8786 Mention new command 'set use-coredump-filter'.
8787
416f679e
SDJ
87882015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8789
8790 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8791 read_memory_unsigned_integer.
8792
711a72d3
L
87932015-03-31 H.J. Lu <hongjiu.lu@intel.com>
8794
8795 * Makefile.in (ZLIB): New.
8796 (ZLIBINC): Likewise.
8797 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8798 (CLIBS): Add $(ZLIB).
8799 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8800 Add -lz to LIBS.
8801 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8802 * top.c (print_gdb_configuration): Remove --with-zlib and
8803 --without-zlib.
8804 * config.in: Regenerated.
8805 * configure: Likewise.
8806
d33279b3
AT
88072015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8808
8809 * NEWS: Mention info os cpus support.
8810 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8811 (struct osdata_type): Add cpus entry, reorder the entries in
8812 alphabetical order.
8813
71b30f27
MK
88142015-03-31 Matthias Klose <doko@ubuntu.com>
8815
8816 * compile/compile.c (compile_to_object): Allow triplets with or
8817 without vendor set.
8818
13ce9222
DE
88192015-03-30 Doug Evans <dje@google.com>
8820
8821 PR c++/18141
8822 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8823 klass in VAR_DOMAIN.
8824
20f796c9
GB
88252015-03-30 Gary Benson <gbenson@redhat.com>
8826
8827 * remote.c (remote_mourn_1): Remove function. Update all callers
8828 to use remote_mourn.
8829 (extended_remote_mourn_1): Remove function. Update all callers
8830 to use extended_remote_mourn.
8831 (extended_remote_attach_1): Remove function. Update all callers
8832 to use extended_remote_attach.
8833
49d45b20
JB
88342015-03-28 James Bowman <james.bowman@ftdichip.com>
8835
8836 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8837 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8838 (ALLDEPFILES): Add ft32-tdep.c.
8839 * configure.tgt: Add FT32 entry.
8840 * ft32-tdep.c: New file, FT32 target-dependent code.
8841 * ft32-tdep.h: New file, FT32 target-dependent code.
8842
1c4ff080
JK
88432015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8844
8845 Revert:
8846 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8847 Code cleanup.
8848 * printcmd.c (print_command_1): Move expr variable scope.
8849
79498702
JB
88502015-03-27 Joel Brobecker <brobecker@adacore.com>
8851
8852 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
8853
ce9c0ca1
AK
88542015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
8855
8856 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
8857 sections.
8858
429e1e81
JB
88592015-03-26 Joel Brobecker <brobecker@adacore.com>
8860
8861 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
8862 exception raised while parsing the probe arguments.
8863 Force parsing to be done using the C language parser.
8864 * expression.h (parse_expression_with_language): Declare.
8865 * parse.c (parse_expression_with_language): New function.
8866
4593441b
JT
88672015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
8868
8869 * MAINTAINERS (Write After Approval): Add "Jon Turney".
8870
ff908ebf
AW
88712015-03-26 Andy Wingo <wingo@igalia.com>
8872
8873 PR symtab/18148
8874 * dwarf2read.c (struct partial_die_info): Add has_const_value
8875 member.
8876 (add_partial_symbol): Don't punt on symbols that have const_value
8877 attributes.
8878 (read_partial_die): Detect DW_AT_const_value.
8879
f30d5c78
JK
88802015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8881
8882 Code cleanup.
8883 * printcmd.c (print_command_1): Move expr variable scope.
8884
8d89f51a
JK
88852015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8886
8887 Code cleanup.
8888 * printcmd.c (validate_format): Make the parameter cmdname const.
8889
0b736949
DB
88902015-03-26 Don Breazeal <donb@codesourcery.com>
8891
8892 * remote.c (_initialize_remote): Update comment.
8893
20d35291
PA
88942015-03-26 Pedro Alves <palves@redhat.com>
8895 Jon TURNEY <jon.turney@dronecode.org.uk>
8896
8897 * coffread.c (coff_symfile_read): When constructing the name of an
8898 import stub symbol from import symbol for amd64, only skip the
8899 char after _imp_ if the target is underscored (like i386) and the
8900 char is indeed the target's leading char.
8901
6a3753b3
PA
89022015-03-25 Pedro Alves <palves@redhat.com>
8903
8904 * target.h <to_async>: Replace 'callback' and 'context' parameters
8905 with boolean 'enable' parameter.
8906 (target_async): Replace CALLBACK and CONTEXT parameters with
8907 boolean ENABLE parameter.
8908 * inf-loop.c (inferior_event_handler): Adjust.
8909 * linux-nat.c (linux_nat_attach, linux_nat_resume)
8910 (linux_nat_resume): Adjust.
8911 (async_client_callback, async_client_context): Delete.
8912 (handle_target_event): Call inferior_event_handler directly.
8913 (linux_nat_async): Replace 'callback' and 'context' parameters
8914 with boolean 'enable' parameter. Adjust. Remove references to
8915 async_client_callback and async_client_context.
8916 (linux_nat_close): Adjust.
8917 * record-btrace.c (record_btrace_async): Replace 'callback' and
8918 'context' parameters with boolean 'enable' parameter. Adjust.
8919 (record_btrace_resume): Adjust.
8920 * record-full.c (record_full_async): Replace 'callback' and
8921 'context' parameters with boolean 'enable' parameter. Adjust.
8922 (record_full_resume, record_full_core_resume): Adjust.
8923 * remote.c (struct remote_state) <async_client_callback,
8924 async_client_context>: Delete fields.
8925 (remote_start_remote, extended_remote_attach_1, remote_resume)
8926 (extended_remote_create_inferior): Adjust.
8927 (remote_async_serial_handler): Call inferior_event_handler
8928 directly.
8929 (remote_async): Replace 'callback' and 'context' parameters with
8930 boolean 'enable' parameter. Adjust.
8931 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
8932 Adjust.
8933 * target-delegates.c: Regenerate.
8934
1c4b552b
GB
89352015-03-25 Gary Benson <gbenson@redhat.com>
8936 Pedro Alves <palves@redhat.com>
8937
8938 * target.c (fileio_ft_t): New typedef, define object vector.
8939 (fileio_fhandles): New static variable.
8940 (is_closed_fileio_fh): New macro.
8941 (lowest_closed_fd): New static variable.
8942 (acquire_fileio_fd): New function.
8943 (release_fileio_fd): Likewise.
8944 (fileio_fd_to_fh): New macro.
8945 (target_fileio_open): Wrap the file descriptor on success.
8946 (target_fileio_pwrite): Updated to use wrapped file descriptor.
8947 (target_fileio_pread): Likewise.
8948 (target_fileio_close): Likewise.
8949
a25d8bf9
PA
89502015-03-24 Pedro Alves <palves@redhat.com>
8951
8952 * thread.c (thread_apply_all_command): Take exited threads into
8953 account.
8954
44a1ee51
PA
89552015-03-24 Pedro Alves <palves@redhat.com>
8956
8957 * infrun.c (resume, proceed): Mention
8958 switch_back_to_stepped_thread, not switch_back_to_stepping.
8959
f3263aa4
PA
89602015-03-24 Pedro Alves <palves@redhat.com>
8961
8962 * infrun.c (user_visible_resume_ptid): Rewrite going from
8963 most-locked to unlocked instead of the opposite. Move comment ...
8964 * infrun.h (user_visible_resume_ptid): ... here.
8965
2bf6fb9d
PA
89662015-03-24 Pedro Alves <palves@redhat.com>
8967
8968 * linux-nat.c (linux_nat_resume): Output debug logs before trying
8969 to resume the event lwp. Use the lwp's ptid instead of the passed
8970 in (maybe wildcard) ptid.
8971 (stop_wait_callback): Tweak debug log output.
8972 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
8973 TRAP_TRACE.
8974 (linux_nat_filter_event): In debug output, distinguish a
8975 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
8976 before trying to resume the lwp.
8977
283a9958
JB
89782015-03-24 Joel Brobecker <brobecker@adacore.com>
8979
8980 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
8981 pointer indirection.
8982 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
8983 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
8984
93a8e227
JB
89852015-03-24 Joel Brobecker <brobecker@adacore.com>
8986
8987 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
8988 Renames DYN_ATTR_DATA_LOCATION.
8989 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
8990 DYN_ATTR_DATA_LOCATION.
8991 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
8992 instead of DYN_ATTR_DATA_LOCATION.
8993
64ce06e4
PA
89942015-03-24 Pedro Alves <palves@redhat.com>
8995
8996 * breakpoint.c (until_break_command): Adjust call to proceed.
8997 * gdbthread.h (struct thread_control_state) <stepping_command>:
8998 New field.
8999 * infcall.c (run_inferior_call): Adjust call to proceed.
9000 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9001 Adjust calls to proceed.
9002 (set_step_frame): Set the current thread's step_start_function
9003 here.
9004 (step_once): Adjust calls to proceed.
9005 (jump_command, signal_command, until_next_command)
9006 (finish_backward, finish_forward, proceed_after_attach_callback)
9007 (attach_command_post_wait): Adjust calls to proceed.
9008 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9009 (do_target_resume): New function, factored out from ...
9010 (resume): ... here. Remove 'step' parameter. Instead, check
9011 currently_stepping to determine whether the thread should be
9012 single-stepped.
9013 (proceed): Remove 'step' parameter and don't set the thread's
9014 step_start_function here. Adjust call to 'resume'.
9015 (handle_inferior_event): Adjust calls to 'resume'.
9016 (switch_back_to_stepped_thread): Use do_target_resume instead of
9017 'resume'.
9018 (keep_going): Adjust calls to 'resume'.
9019 * infrun.h (proceed): Remove 'step' parameter.
9020 (resume): Likewise.
9021 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9022 'resume'.
9023 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9024
856e7dd6
PA
90252015-03-24 Pedro Alves <palves@redhat.com>
9026
9027 * gdbthread.h (struct thread_control_state) <stepping_command>:
9028 New field.
9029 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9030 the thread's stepping_command field.
9031 * infrun.c (resume): Check the thread's stepping_command flag to
9032 determine which threads should be resumed. Rename 'entry_step'
9033 local to user_step.
9034 (clear_proceed_status_thread): Clear 'stepping_command'.
9035 (schedlock_applies): Change parameter type to struct thread_info
9036 pointer. Adjust.
9037 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9038 (switch_back_to_stepped_thread): Adjust calls to
9039 'schedlock_applies'.
9040 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9041
885eeb5b
PA
90422015-03-24 Pedro Alves <palves@redhat.com>
9043
9044 * infrun.c (step_start_function): Delete and ...
9045 * gdbthread.h (struct thread_control_state) <step_start_function>:
9046 ... now a field here.
9047 * infrun.c (clear_proceed_status_thread): Clear the thread's
9048 step_start_function.
9049 (proceed, process_event_stop_test, print_stop_event): Adjust.
9050
3333f03a
PA
90512015-03-24 Pedro Alves <palves@redhat.com>
9052
9053 * infrun.c (proceed): No longer handle negative step.
9054
369f6daa
GB
90552015-03-24 Gary Benson <gbenson@redhat.com>
9056
9057 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9058 (x86_linux_prepare_to_resume): Likewise.
9059 * x86-linux-nat.c (x86_linux_new_thread):
9060 Moved to nat/x86-linux.c.
9061 (x86_linux_prepare_to_resume): Likewise.
9062 * nat/x86-linux.c (x86_linux_new_thread): New function.
9063 (x86_linux_prepare_to_resume): Likewise.
9064
8e5d4070
GB
90652015-03-24 Gary Benson <gbenson@redhat.com>
9066
9067 * nat/x86-linux-dregs.h: New file.
9068 * nat/x86-linux-dregs.c: Likewise.
9069 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9070 (x86-linux-dregs.o): New rule.
9071 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9072 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9073 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9074 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9075 (x86_linux_dr_get): Likewise.
9076 (x86_linux_dr_set): Likewise.
9077 (x86_linux_dr_get_addr): Likewise.
9078 (x86_linux_dr_get_control): Likewise.
9079 (x86_linux_dr_get_status): Likewise.
9080 (update_debug_registers_callback): Likewise.
9081 (x86_linux_dr_set_control): Likewise.
9082 (x86_linux_dr_set_addr): Likewise.
9083 (x86_linux_update_debug_registers): Likewise.
9084
2b95d440
GB
90852015-03-24 Gary Benson <gbenson@redhat.com>
9086
9087 * x86-linux-nat.c (x86_linux_update_debug_registers):
9088 New function, factored out from...
9089 (x86_linux_prepare_to_resume): ...this.
9090
14b0bc68
GB
90912015-03-24 Gary Benson <gbenson@redhat.com>
9092
9093 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9094 (x86_linux_dr_set): Likewise.
9095 (x86_linux_dr_get_addr): Likewise.
9096 (x86_linux_dr_get_control): Likewise.
9097 (x86_linux_dr_get_status): Likewise.
9098 (update_debug_registers_callback): Likewise.
9099 (x86_linux_dr_set_control): Likewise.
9100 (x86_linux_dr_set_addr): Likewise.
9101 (x86_linux_prepare_to_resume): Likewise.
9102 (x86_linux_new_thread): Likewise.
9103
5dfe6ca8
GB
91042015-03-24 Gary Benson <gbenson@redhat.com>
9105
9106 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9107 (x86_linux_new_thread): Rename argument.
9108
4b134ca1
GB
91092015-03-24 Gary Benson <gbenson@redhat.com>
9110
9111 * nat/x86-linux.h: New file.
9112 * nat/x86-linux.c: Likewise.
9113 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9114 (x86-linux.o): New rule.
9115 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9116 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9117 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9118 (lwp_set_arch_private_info): New declaration.
9119 (lwp_arch_private_info): Likewise.
9120 * linux-nat.c (lwp_set_arch_private_info): New function.
9121 (lwp_arch_private_info): Likewise.
9122 * x86-linux-nat.c: Include nat/x86-linux.h.
9123 (arch_lwp_info): Removed structure.
9124 (update_debug_registers_callback):
9125 Use lwp_set_debug_registers_changed.
9126 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9127 and lwp_set_debug_registers_changed.
9128 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9129
cff068da
GB
91302015-03-24 Gary Benson <gbenson@redhat.com>
9131
9132 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9133 (lwp_is_stopped): Likewise.
9134 (lwp_stop_reason): Likewise.
9135 * linux-nat.c (ptid_of_lwp): New function.
9136 (lwp_is_stopped): Likewise.
9137 (lwp_is_stopped_by_watchpoint): Likewise.
9138 * x86-linux-nat.c (update_debug_registers_callback):
9139 Use lwp_is_stopped.
9140 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9141 lwp_stop_reason.
9142
b2f7c7e8
GB
91432015-03-24 Gary Benson <gbenson@redhat.com>
9144
9145 * linux-nat.h (linux_stop_lwp): Move declaration to...
9146 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9147
6d4ee8c6
GB
91482015-03-24 Gary Benson <gbenson@redhat.com>
9149
9150 * linux-nat.h: Include nat/linux-nat.h.
9151 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9152 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9153 (iterate_over_lwps_ftype): New typedef.
9154 (iterate_over_lwps): New declaration.
9155 * linux-nat.h (iterate_over_lwps): Update comment. Use
9156 iterate_over_lwps_ftype. Update callback return value check.
9157
70a0bb6b
GB
91582015-03-24 Gary Benson <gbenson@redhat.com>
9159
9160 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9161 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9162
7b669087
GB
91632015-03-24 Gary Benson <gbenson@redhat.com>
9164
9165 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9166 * linux-nat.c (current_lwp_ptid): New function.
9167 * x86-linux-nat.c: Include nat/linux-nat.h.
9168 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9169 (x86_linux_dr_get_control): Likewise.
9170 (x86_linux_dr_get_status): Likewise.
9171 (x86_linux_dr_set_control): Likewise.
9172 (x86_linux_dr_set_addr): Likewise.
9173
15630549
AT
91742015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9175
9176 PR breakpoints/16466
9177 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9178
8a4506c0
JB
91792015-03-23 Joel Brobecker <brobecker@adacore.com>
9180
9181 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9182 * ser-unix.c (hardwire_setparity): Likewise.
9183
236af5e3
YG
91842015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9185
9186 * NEWS: Mention set/show serial parity command.
9187 * monitor.c (monitor_open): Call serial_setparity.
9188 * remote.c (remote_open_1): Likewise.
9189 * ser-base.c (ser_base_serparity): New function.
9190 * ser-base.h (ser_base_setparity): Add declaration.
9191 * ser-go32.c (dos_ops): Set "setparity" field.
9192 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9193 state.Parity.
9194 (ser_windows_setparity): New function.
9195 (hardwire_ops): Add ser_windows_setparity.
9196 (tty_ops): Add NULL for setparity field.
9197 (pipe_ops): Add ser_base_setparity.
9198 (tcp_ops): Likewise.
9199 * ser-pipe.c (pipe_ops): Likewise.
9200 * ser-tcp.c (tcp_ops): Likewise.
9201 * ser-unix.c (hardwire_setparity): Add declaration.
9202 (hardwire_raw): Don't reset PARENB flag.
9203 (hardwire_setparity): New function.
9204 (hardwire_ops): Add hardwire_setparity.
9205 * serial.c (serial_setparity): New function.
9206 (serial_parity): New global.
9207 (parity_none, parity_odd, parity_even, parity_enums, parity):
9208 New static globals.
9209 (set_parity): New function.
9210 (_initialize_serial): Add set/show serial parity commands.
9211 * serial.h (GDBPARITY_NONE): Define.
9212 (GDBPARITY_ODD): Define.
9213 (GDBPARITY_EVEN): Define.
9214 (serial_setparity) Add declaration.
9215 (struct serial_ops): Add setparity field.
9216 * target.h (serial_parity): Add declaration.
9217
32b40af9
KS
92182015-03-23 Keith Seitz <keiths@redhat.com>
9219
9220 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9221
693dca06
KS
92222015-03-23 Keith Seitz <keiths@redhat.com>
9223
9224 * breakpoint.c (parse_breakpoint_sals): Use
9225 linespec_lexer_lex_keyword to ascertain if the user specified
9226 a NULL location.
9227 * linespec.c [IF_KEYWORD_INDEX]: Define.
9228 (linespec_lexer_lex_keyword): Export.
9229 (struct ls_parser) <keyword_ok>: Remove.
9230 A keyword is only a keyword if not followed by another keyword.
9231 (linespec_lexer_lex_one): Remove keyword_ok handling.
9232 Add comment explaining why the parsing stream is not advanced
9233 when a keyword is seen.
9234 (parse_linespec): Remove parser->keyword_ok.
9235 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9236
7e993ebf
KS
92372015-03-23 Keith Seitz <keiths@redhat.com>
9238
9239 PR gdb/18021
9240 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9241 if we find a static method with DW_AT_vtable_elem_location.
9242
b1a0f704
EZ
92432015-03-21 Eli Zaretskii <eliz@gnu.org>
9244
9245 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9246 before the second loop, to avoid undefined behavior. Reported by
9247 Anton Blanchard <anton@samba.org>.
9248
d9823cbb
KB
92492015-03-20 Keven Boell <keven.boell@intel.com>
9250
9251 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9252 data_location usage to linked list.
9253 (resolve_dynamic_type_internal): Adapt data_location to
9254 linked list.
9255 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9256 (copy_type_recursive, copy_type): Add copy of linked list.
9257 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9258 (struct dynamic_prop_list): New struct.
9259 * dwarf2read.c (set_die_type): Set data_location data.
9260
2e7bf1d7
PA
92612015-03-20 Pedro Alves <palves@redhat.com>
9262
9263 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9264 inner block and make it const.
9265 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9266
7a26bd4d
PA
92672015-03-20 Pedro Alves <palves@redhat.com>
9268
9269 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9270 * breakpoint.h (set_breakpoint_condition): Update declaration.
9271
cd46431b
PA
92722015-03-20 Pedro Alves <palves@redhat.com>
9273
9274 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9275
e28566f7
PA
92762015-03-20 Pedro Alves <palves@redhat.com>
9277
9278 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9279
f6fc92f6
PA
92802015-03-20 Pedro Alves <palves@redhat.com>
9281
9282 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9283
c32ed3ef
PA
92842015-03-20 Pedro Alves <palves@redhat.com>
9285
9286 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9287 (nto_init_solib_absolute_prefix): Likewise.
9288
53e78085
PA
92892015-03-20 Pedro Alves <palves@redhat.com>
9290
9291 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9292 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9293
bc23328c
JK
92942015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9295
9296 * config/djgpp/README: Remove gdb.hp.
9297
e8ffc436
YQ
92982015-03-20 Yao Qi <yao.qi@linaro.org>
9299
9300 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9301 set_gdbarch_cannot_step_breakpoint.
9302
23f238d3
PA
93032015-03-19 Pedro Alves <palves@redhat.com>
9304
9305 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9306 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9307 instead call perror_with_name.
9308 (check_ptrace_stopped_lwp_gone): New function.
9309 (linux_resume_one_lwp): Reimplement as wrapper around
9310 linux_resume_one_lwp_throw that swallows errors if the LWP is
9311 gone.
9312 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9313 swallows errors if the LWP is gone. Use
9314 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9315
eb54c8bf
PA
93162015-03-19 Pedro Alves <palves@redhat.com>
9317
9318 * linux-nat.c (status_callback): Return early if the LWP has no
9319 status pending.
9320
b90fc188
PA
93212015-03-19 Pedro Alves <palves@redhat.com>
9322
9323 * linux-nat.c (select_event_lwp_callback): Update comment to no
9324 longer mention SIGTRAP.
9325
670f82d4
TG
93262015-03-18 Tristan Gingold <gingold@adacore.com>
9327
72f4393d
L
9328 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9329 redirection code to ...
9330 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9331 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9332
464b0089
GB
93332015-03-18 Gary Benson <gbenson@redhat.com>
9334
9335 (remote_protocol_features): Remove the "vFile:fstat" feature.
9336 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9337
f68f11b7
YQ
93382015-03-11 Yao Qi <yao.qi@linaro.org>
9339
9340 PR tdep/18107
9341 * aarch64-linux-tdep.c: Include xml-syscall.h
9342 (aarch64_linux_get_syscall_number): New function.
9343 (aarch64_linux_init_abi): Call
9344 set_gdbarch_get_syscall_number.
9345 * syscalls/aarch64-linux.xml: New file.
9346
393bd0c0
YG
93472015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9348
9349 * ser-base.h (ser_base_setstopbits): Change second argument name
9350 from "rate" to "num".
9351
7f3647e2
GB
93522015-03-17 Gary Benson <gbenson@redhat.com>
9353 Luke Allardyce <lukeallardyce@gmail.com>
9354
9355 PR gdb/18131
9356 * common/common-remote-fileio.h (sys/stat.h): New include.
9357 (stuct stat): Remove forward declaration.
9358
3ce5b6e2
JB
93592015-03-16 John Baldwin <jhb@FreeBSD.org>
9360
9361 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9362 before writing core register notes.
9363
d053f6be
YZ
93642015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9365 Pedro Alves <palves@redhat.com>
9366
9367 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9368 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9369 (tgoto): Wrap with extern "C".
9370
b1a921c8
PA
93712015-03-16 Pedro Alves <palves@redhat.com>
9372 Yuanhui Zhang <asmwarrior@gmail.com>
9373
9374 * stub-termcap.c (tputs): Change prototype.
9375
876d1cd7
YZ
93762015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9377 Pedro Alves <palves@redhat.com>
9378
9379 * windows-nat.c (struct thread_info_struct): Rename to ...
9380 (struct windows_thread_info_struct): ... this.
9381 (thread_info): Rename to ...
9382 (windows_thread_info): ... this.
9383 All users updated.
9384
0800b440
JK
93852015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9386 Pedro Alves <palves@redhat.com>
9387
9388 * NEWS: New Removed targets and native configurations.
9389
93902015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
9391
9392 Remove HPUX.
9393 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9394 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9395 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9396 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9397 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9398 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9399 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9400 hppa-hpux-tdep.c.
9401 * config/ia64/hpux.mh: Remove file.
9402 * config/pa/hpux.mh: Remove file.
9403 * configure: Rebuilt.
9404 * configure.ac (dlgetmodinfo, somread.o): Remove.
9405 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9406 (ia64-*-hpux*): Remove its float format exception.
9407 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9408 * hppa-hpux-nat.c: Remove file.
9409 * hppa-hpux-tdep.c: Remove file.
9410 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9411 Move them here from hppa-tdep.h
9412 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9413 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9414 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9415 Move them to hppa-tdep.c.
9416 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9417 declarations.
9418 * ia64-hpux-nat.c: Remove file.
9419 * ia64-hpux-tdep.c: Remove file.
9420 * ia64-hpux-tdep.h: Remove file.
9421 * inf-ttrace.c: Remove file.
9422 * inf-ttrace.h: Remove file.
9423 * solib-ia64-hpux.c: Remove file.
9424 * solib-ia64-hpux.h: Remove file.
9425 * solib-pa64.c: Remove file.
9426 * solib-pa64.h: Remove file.
9427 * solib-som.c: Remove file.
9428 * solib-som.h: Remove file.
9429 * somread.c: Remove file.
9430
25268153
JB
94312015-03-13 John Baldwin <jhb@FreeBSD.org>
9432
9433 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9434 * config.in: Regenerate.
9435 * configure: Regenerate.
9436 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 9437 define.
25268153
JB
9438 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9439 enumerate memory regions if present.
9440
773eacf5
JB
94412015-03-13 John Baldwin <jhb@FreeBSD.org>
9442
9443 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9444 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9445 expressions.
9446 (i386fbsd_sigtramp_p): Likewise.
9447
01b6bdb0
JB
94482015-03-12 John Baldwin <jhb@FreeBSD.org>
9449
9450 * MAINTAINERS (Write After Approval): Add John Baldwin.
9451
811a659a
GB
94522015-03-12 Gary Benson <gbenson@redhat.com>
9453
9454 * solib.c (_initialize_solib): Make "set/show sysroot" use
9455 add_setshow_optional_filename_cmd so it can be restored to
9456 empty after being set.
9457
10304ef3
SDJ
94582015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9459
9460 * Makefile.in (SFILES): New source break-catch-syscall.c.
9461 (COMMON_OBS): New object break-catch-syscall.o.
9462 * break-catch-syscall.c: New file.
9463 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9464 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9465 (struct syscall_catchpoint): Likewise.
9466 (dtor_catch_syscall): Likewise.
9467 (catch_syscall_inferior_data): Likewise.
9468 (struct catch_syscall_inferior_data): Likewise.
9469 (get_catch_syscall_inferior_data): Likewise.
9470 (catch_syscall_inferior_data_cleanup): Likewise.
9471 (insert_catch_syscall): Likewise.
9472 (remove_catch_syscall): Likewise.
9473 (breakpoint_hit_catch_syscall): Likewise.
9474 (print_it_catch_syscall): Likewise.
9475 (print_one_catch_syscall): Likewise.
9476 (print_mention_catch_syscall): Likewise.
9477 (print_recreate_catch_syscall): Likewise.
9478 (catch_syscall_breakpoint_ops): Likewise.
9479 (syscall_catchpoint_p): Likewise.
9480 (create_syscall_event_catchpoint): Likewise.
9481 (catch_syscall_split_args): Likewise.
9482 (catch_syscall_command_1): Likewise.
9483 (is_syscall_catchpoint_enabled): Likewise.
9484 (catch_syscall_enabled): Likewise.
9485 (catching_syscall_number): Likewise.
9486 (catch_syscall_completer): Likewise.
9487 (clear_syscall_counts): Likewise.
9488 (initialize_breakpoint_ops): Move initialization of syscall
9489 catchpoints to break-catch-syscall.c.
9490 (_initialize_breakpoint): Move code related to syscall catchpoints
9491 to break-catch-syscall.c.
9492
badd37ce
SDJ
94932015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9494
9495 * breakpoint.c (breakpoint_find_if): New function.
9496 * breakpoint.h (breakpoint_find_if): New prototype.
9497
0a93529c
GB
94982015-03-11 Gary Benson <gbenson@redhat.com>
9499
9500 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9501 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9502 (remote_fileio_to_host_ulong): Likewise.
9503 (remote_fileio_to_host_mode): Likewise.
9504 (remote_fileio_to_host_time): Likewise.
9505 (remote_fileio_to_host_stat): Likewise.
9506 * remote.c (PACKET_vFile_fstat): New enum value.
9507 (remote_protocol_features): Register the "vFile:fstat" feature.
9508 (remote_hostio_fstat): New function.
9509 (remote_bfd_iovec_stat): Use the above.
9510 (_initialize_remote): Register new "set/show remote
9511 hostio-fstat-packet" command.
9512 * symfile.c (separate_debug_file_exists): Update comment.
9513 * NEWS: Announce new vFile:fstat packet.
9514
791c0056
GB
95152015-03-11 Gary Benson <gbenson@redhat.com>
9516
9517 * common/common-remote-fileio.h: New file.
9518 * common/common-remote-fileio.c: Likewise.
9519 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9520 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9521 (COMMON_OBS): Add common-remote-fileio.o.
9522 (common-remote-fileio.o): New rule.
9523 * remote-fileio.h (common-remote-fileio.h): New include.
9524 * remote-fileio.c (gdb/fileio.h): Do not include.
9525 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9526 (remote_fileio_to_fio_uint): Likewise.
9527 (remote_fileio_to_fio_time): Likewise.
9528 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9529 (remote_fileio_to_fio_mode): Likewise.
9530 (remote_fileio_to_fio_ulong): Likewise.
9531 (remote_fileio_to_fio_stat): Likewise.
9532
1390d0ef
AW
95332015-03-11 Andy Wingo <wingo@igalia.com>
9534
9535 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9536 we were checking the cached type, not the cached dynamic type.
9537
84a4591a
AW
95382015-03-11 Andy Wingo <wingo@igalia.com>
9539
9540 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9541 other strings, as these are on the GC'd heap, and will be
9542 collected along with the smob.
9543
85642ba0
AW
95442015-03-11 Andy Wingo <wingo@igalia.com>
9545
9546 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9547 (objfile_functions): Bind gdbscm_objfile_progspace to
9548 objfile-progspace.
9549 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9550
92fab5a6
AW
95512015-03-11 Andy Wingo <wingo@igalia.com>
9552
9553 * guile/guile.c (_initialize_guile): Disable automatic
9554 finalization, if Guile offers us that possibility.
9555 * guile/guile.c (call_initialize_gdb_module):
9556 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9557 finalizers in appropriate places.
9558 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9559 scm_set_automatic_finalization_enabled.
9560 * configure: Regenerated.
9561
f054145e
AA
95622015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9563
9564 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9565 SAL, if possible.
9566
18396193
AA
95672015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9568
9569 * s390-linux-nat.c (struct arch_lwp_info): New.
9570 (s390_fix_watch_points): Rename to...
9571 (s390_prepare_to_resume): ...this. Skip the PER info update
9572 unless the watch points have changed.
9573 (s390_refresh_per_info, s390_new_thread): New functions.
9574 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9575 s390_fix_watch_points.
9576 (s390_remove_watchpoint): Likewise.
9577 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9578 Register s390_prepare_to_resume.
9579
9eb1356e
PA
95802015-03-09 Pedro Alves <palves@redhat.com>
9581
9582 Revert:
9583 2015-03-07 Pedro Alves <palves@redhat.com>
9584 * common/gdb_socket.h: New file.
9585 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9586 sys/socket.h.
9587 (net_open): Use union gdb_sockaddr_u.
9588
aac331e4
PA
95892015-03-07 Pedro Alves <palves@redhat.com>
9590
9591 * configure.ac (build_warnings): Move -Wmissing-prototypes
9592 -Wdeclaration-after-statement -Wmissing-parameter-type
9593 -Wold-style-declaration -Wold-style-definition to the C-specific
9594 set.
9595 * configure: Regenerate.
9596
366c75fc
PA
95972015-03-07 Pedro Alves <palves@redhat.com>
9598
9599 * common/gdb_socket.h: New file.
9600 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9601 sys/socket.h.
9602 (net_open): Use union gdb_sockaddr_u.
9603
72df25b2
PA
96042015-03-07 Pedro Alves <palves@redhat.com>
9605
9606 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9607 (exceptions_state_mc_action_iter)
9608 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9609 Don't define.
9610 [__cplusplus] (try_scope_depth): New global.
9611 [__cplusplus] (exception_try_scope_entry)
9612 (exception_try_scope_exit, gdb_exception_sliced_copy)
9613 (exception_rethrow): New functions.
9614 (throw_exception): In C++ mode, throw
9615 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9616 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9617 (throw_it): In C++ mode, use try_scope_depth.
9618 * common/common-exceptions.h [!__cplusplus]
9619 (exceptions_state_mc_action_iter)
9620 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9621 Don't declare.
9622 [__cplusplus] (exception_try_scope_entry)
9623 (exception_try_scope_exit, exception_rethrow): Declare.
9624 [__cplusplus] (struct exception_try_scope): New struct.
9625 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9626 C++ exceptions.
9627 (struct gdb_exception_RETURN_MASK_ALL)
9628 (struct gdb_exception_RETURN_MASK_ERROR)
9629 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9630
284e6217
PA
96312015-03-07 Pedro Alves <palves@redhat.com>
9632
9633 * main.c (handle_command_errors): Remove volatile qualifier from
9634 parameter.
9635
6c63c96a
PA
96362015-03-07 Pedro Alves <palves@redhat.com>
9637
9638 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9639 TRY and CATCH.
9640 * gdbtypes.c (safe_parse_type): Remove empty line.
9641 (types_deeply_equal):
9642 * guile/scm-frame.c (gdbscm_frame_name):
9643 * linux-thread-db.c (find_new_threads_once):
9644 * python/py-breakpoint.c (bppy_get_commands):
9645 * record-btrace.c (record_btrace_insert_breakpoint)
9646 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9647 (record_btrace_start_replaying): Adjust to avoid code between TRY
9648 and CATCH.
9649
492d29ea
PA
96502015-03-07 Pedro Alves <palves@redhat.com>
9651
9652 * common/common-exceptions.c (struct catcher) <exception>: No
9653 longer a pointer to volatile exception. Now an exception value.
9654 <mask>: Delete field.
9655 (exceptions_state_mc_init): Remove all parameters. Adjust.
9656 (exceptions_state_mc): No longer pop the catcher here.
9657 (exceptions_state_mc_catch): New function.
9658 (throw_exception): Adjust.
9659 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9660 all parameters.
9661 (exceptions_state_mc_catch): Declare.
9662 (TRY_CATCH): Rename to ...
9663 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9664 (CATCH, END_CATCH): New.
9665 All callers adjusted.
9666
ece957c8
TT
96672015-03-07 Tom Tromey <tromey@redhat.com>
9668
9669 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9670
7556d4a4
PA
96712015-03-07 Pedro Alves <palves@redhat.com>
9672
9673 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9674 (amd64_epilogue_frame_cache): Normal exception handling code.
9675 * break-catch-throw.c (check_status_exception_catchpoint)
9676 (re_set_exception_catchpoint): Ditto.
9677 * cli/cli-interp.c (safe_execute_command):
9678 * cli/cli-script.c (script_from_file): Ditto.
9679 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9680 Ditto.
9681 * compile/compile-object-run.c (compile_object_run): Ditto.
9682 * cp-abi.c (baseclass_offset): Ditto.
9683 * cp-valprint.c (cp_print_value): Ditto.
9684 * exceptions.c (catch_exceptions_with_msg):
9685 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9686 * frame.c (get_frame_address_in_block_if_available): Ditto.
9687 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9688 (i386_sigtramp_frame_cache): Ditto.
9689 * infcmd.c (post_create_inferior): Ditto.
9690 * linespec.c (parse_linespec, find_linespec_symbols):
9691 * p-valprint.c (pascal_object_print_value): Ditto.
9692 * parse.c (parse_expression_for_completion): Ditto.
9693 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9694 * remote.c (remote_get_noisy_reply): Ditto.
9695 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9696 * solib-svr4.c (solib_svr4_r_map): Ditto.
9697
f873665f 96982015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
9699
9700 * common/common-utils.h (startswith): New inline function.
9701 All places where this logic was used updated to use the above.
9702
68901c4d
PA
97032015-03-05 Pedro Alves <palves@redhat.com>
9704
9705 PR gdb/18002
9706 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9707 after reading the breakpoint's shadow memory.
9708
2dcb2b1a
MK
97092015-03-05 Mark Kettenis <kettenis@gnu.org>
9710
9711 * hppabsd-nat.c: Remove file.
9712 * hppaobsd-nat.c: New file.
9713 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9714 hppaobsd-nat.c.
9715 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9716 hppaobsd-nat.o.
9717
527a273a
PA
97182015-03-04 Pedro Alves <palves@redhat.com>
9719
9720 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9721 (target_decr_pc_after_break): Delete declaration.
9722 * target.c (default_target_decr_pc_after_break)
9723 (target_decr_pc_after_break): Delete.
9724 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9725 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9726 * linux-thread-db.c (check_event): Likewise.
9727 * infrun.c (adjust_pc_after_break): Likewise.
9728 * darwin-nat.c (cancel_breakpoint): Likewise.
9729 * aix-thread.c (aix_thread_wait): Likewise.
9730 * target-delegates.c: Regenerate.
9731
faf09f01
PA
97322015-03-04 Pedro Alves <palves@redhat.com>
9733
9734 * linux-nat.c (save_sigtrap): Check for breakpoints before
9735 checking watchpoints.
9736 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9737 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9738 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9739 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9740 (linux_nat_stopped_by_sw_breakpoint)
9741 (linux_nat_supports_stopped_by_sw_breakpoint)
9742 (linux_nat_stopped_by_hw_breakpoint)
9743 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9744 (linux_nat_wait_1): Don't re-increment the PC if relying on
9745 SIGTRAP's siginfo->si_code.
9746 (linux_nat_add_target): Install new target methods.
9747 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9748 offset if the target already adjusted the PC.
9749 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9750 (GDB_ARCH_TRAP_BRKPT): New.
9751 (TRAP_HWBKPT): Define if not already defined.
9752
f7e6eed5
PA
97532015-03-04 Pedro Alves <palves@redhat.com>
9754
9755 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9756 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9757 Delete field.
9758 <stop_reason>: New field.
9759 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9760 (packet_set_cmd_state): New function.
9761 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9762 features.
9763 (remote_query_supported): If not disabled with the corresponding
9764 "set remote foo-packet" command, report support for the swbreak
9765 and hwbreak features.
9766 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9767 field.
9768 <stop_reason>: New field.
9769 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9770 (remote_wait_as): Adjust.
9771 (remote_stopped_by_sw_breakpoint)
9772 (remote_supports_stopped_by_sw_breakpoint)
9773 (remote_stopped_by_hw_breakpoint)
9774 (remote_supports_stopped_by_hw_breakpoint): New functions.
9775 (remote_stopped_by_watchpoint): New function.
9776 (init_remote_ops): Install them.
9777 (_initialize_remote): Register new "set/show remote
9778 swbreak-feature-packet" and "set/show remote
9779 swbreak-feature-packet" commands.
9780
9e8915c6
PA
97812015-03-04 Pedro Alves <palves@redhat.com>
9782
9783 * btrace.h: Include target/waitstatus.h.
9784 (struct btrace_thread_info) <stop_reason>: New field.
9785 * record-btrace.c (record_btrace_step_thread): Use
9786 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9787 (record_btrace_decr_pc_after_break): Delete.
9788 (record_btrace_stopped_by_sw_breakpoint)
9789 (record_btrace_supports_stopped_by_sw_breakpoint)
9790 (record_btrace_stopped_by_hw_breakpoint)
9791 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9792 (init_record_btrace_ops): Install them.
9793 * record-full.c (record_full_hw_watchpoint): Delete and replace
9794 with ...
9795 (record_full_stop_reason): ... this throughout.
9796 (record_full_exec_insn): Adjust.
9797 (record_full_wait_1): Adjust. No longer re-increment the PC.
9798 (record_full_wait_1): Adjust. Use
9799 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9800 (record_full_stopped_by_watchpoint): Adjust.
9801 (record_full_stopped_by_sw_breakpoint)
9802 (record_full_supports_stopped_by_sw_breakpoint)
9803 (record_full_supports_stopped_by_sw_breakpoint)
9804 (record_full_stopped_by_hw_breakpoint)
9805 (record_full_supports_stopped_by_hw_breakpoint): New functions.
9806 (init_record_full_ops, init_record_full_core_ops): Install them.
9807 * record.c (record_check_stopped_by_breakpoint): New function.
9808 * record.h: Include target/waitstatus.h.
9809 (record_check_stopped_by_breakpoint): New declaration.
9810
15c66dd6
PA
98112015-03-04 Pedro Alves <palves@redhat.com>
9812
9813 enum lwp_stop_reason -> enum target_stop_reason
9814 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9815 (linux_nat_stopped_by_watchpoint, status_callback)
9816 (linux_nat_wait_1): Adjust.
9817 * linux-nat.h (enum lwp_stop_reason): Delete.
9818 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9819 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9820 * target/waitstatus.h (enum target_stop_reason): New.
9821
1cf4d951
PA
98222015-03-04 Pedro Alves <palves@redhat.com>
9823
9824 * breakpoint.c (need_moribund_for_location_type): New function.
9825 (bpstat_stop_status): Don't skipping checking moribund locations
9826 of breakpoint types which the target tell caused a stop.
9827 (program_breakpoint_here_p): New function, factored out from ...
9828 (bp_loc_is_permanent): ... this.
9829 (update_global_location_list): Don't create a moribund location if
9830 the target supports reporting stops of the type of the removed
9831 breakpoint.
9832 * breakpoint.h (program_breakpoint_here_p): New declaration.
9833 * infrun.c (adjust_pc_after_break): Return early if the target has
9834 already adjusted the PC. Add comments.
9835 (handle_signal_stop): If nothing explains a signal, and the target
9836 tells us the stop was caused by a software breakpoint, check if
9837 there's a breakpoint instruction in the memory. If so, adjust the
9838 PC before presenting the stop to the user. Otherwise, ignore the
9839 trap. If nothing explains a signal, and the target tells us the
9840 stop was caused by a hardware breakpoint, ignore the trap.
9841 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9842 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9843 to_supports_stopped_by_hw_breakpoint>: New fields.
9844 (target_stopped_by_sw_breakpoint)
9845 (target_supports_stopped_by_sw_breakpoint)
9846 (target_stopped_by_hw_breakpoint)
9847 (target_supports_stopped_by_hw_breakpoint): Define.
9848 * target-delegates.c: Regenerate.
9849
79639e11
PA
98502015-03-04 Pedro Alves <palves@redhat.com>
9851
9852 * infrun.c (follow_fork_inferior): Use the whole of the
9853 inferior_ptid and pending_follow.related_pid ptids instead of
9854 building ptids from the process components. Adjust verbose output
9855 to use target_pid_to_str.
9856 * linux-nat.c (linux_child_follow_fork): Use the whole of the
9857 inferior_ptid and pending_follow.related_pid ptids instead of
9858 building ptids from the process components.
9859
e85e8e5e
MK
98602015-03-04 Mark Kettenis <kettenis@gnu.org>
9861
9862 * inf-ptrace.c [PT_GET_PROCESS_STATE]
9863 (inf_ptrace_insert_fork_catchpoint): New function.
9864 (inf_ptrace_remove_fork_catchpoint): New function.
9865 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
9866
87de11c0
AA
98672015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9868
9869 * s390-linux-tdep.c (s390_register_name): Return empty string
9870 instead of NULL for registers that shouldn't be visible.
9871
d851a69a
AA
98722015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9873
9874 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
9875 XML file for 64-bit targets.
9876
b072f6c1
SM
98772015-03-03 Simon Marchi <simon.marchi@ericsson.com>
9878
9879 * target.h (find_default_create_inferior): Remove declaration.
9880 (find_default_attach): Likewise.
9881
c1593e4f
PA
98822015-03-03 Pedro Alves <palves@redhat.com>
9883
9884 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
9885 Use ptid_get_pid to get the overall process id when resuming all
9886 threads.
9887
90ad5e1d
PA
98882015-03-03 Pedro Alves <palves@redhat.com>
9889
9890 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
9891 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
9892 * inf-ptrace.c (get_ptrace_pid): New function.
9893 (inf_ptrace_resume): Use it.
9894 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
9895 to the lower layer.
9896
d68e53f4
MM
98972015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9898
9899 * nat/linux-btrace.c: Include sys/utsname.h.
9900 (linux_determine_kernel_ptr_bits): New.
9901 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
9902 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
9903 ptr_bits.
9904
986b6601
MM
99052015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9906
9907 * btrace.c (ftrace_update_function): Treat return as tailcall for
9908 "_dl_runtime_resolve".
9909
ce0dfbea
MM
99102015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9911
9912 * btrace.h (btrace_function) <lbegin, lend>: Remove.
9913 * btrace.c (ftrace_debug): Do not print the line range.
9914 (ftrace_skip_file, ftrace_update_lines): Remove.
9915 (ftrace_new_function): Remove lbegin and lend initialization.
9916 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
9917 * record-btrace.c (btrace_compute_src_line_range): New.
9918 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
9919
95e50b27
PA
99202015-03-02 Pedro Alves <palves@redhat.com>
9921
9922 * infrun.c (follow_exec): Delete all threads of the process except
9923 the event thread. Extended comments.
9924
00e474c2
JB
99252015-03-02 Joel Brobecker <brobecker@adacore.com>
9926
9927 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
9928
cc7039d3
JB
99292015-03-02 Joel Brobecker <brobecker@adacore.com>
9930
9931 * utils.h: Remove <stdbool.h> #include.
9932 (producer_is_gcc): Change return type to "int".
9933 * utils.c (producer_is_gcc): Change return type to int.
9934 Return 1 instead of true, and 0 instead of false.
9935 Adjust function documentation accordingly.
9936
550bdf96
AA
99372015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9938
9939 * s390-linux-nat.c (have_regset_vxrs): New static variable.
9940 (s390_linux_fetch_inferior_registers): Handle vector registers, if
9941 present.
9942 (s390_linux_store_inferior_registers): Likewise.
9943 (s390_get_hwcap): Remove function. Embed its logic...
9944 (s390_read_description): ...here. Yield a target description with
9945 vector registers if applicable.
9946 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
9947 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
9948 "features/s390x-tevx-linux64.c".
9949 (struct gdbarch_tdep) <v0_full_regnum>: New field.
9950 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
9951 for "GNU/Linux-specific registers".
9952 (s390_dwarf_reg_r0l): New enum value.
9953 (s390_dwarf_reg_to_regnum): Support vector registers.
9954 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
9955 of GPR lower halves.
9956 (regnum_is_vxr_full): New function.
9957 (s390_register_name): New function.
9958 (s390_pseudo_register_name): Handle v0-v15, which are composed of
9959 f0-f15 and v0l-v15l.
9960 (s390_pseudo_register_type): Likewise.
9961 (s390_pseudo_register_read): Likewise.
9962 (s390_pseudo_register_write): Likewise.
9963 (s390_value_from_register): Account for the fact that values are
9964 placed left-justified in vector registers.
9965 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
9966 the vector reggroup and omit them from the general reggroup.
9967 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
9968 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
9969 (s390_iterate_over_regset_sections): Add iterations for the two
9970 new vector regsets.
9971 (s390_core_read_description): Yield a target description with
9972 vector registers if applicable.
9973 (s390_gdbarch_init): Handle target descriptions with vector
9974 registers. Add "register_name" gdbarch method.
9975 (_initialize_s390_tdep): Call new tdesc initialization functions.
9976 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
9977 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
9978 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
9979 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
9980 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
9981 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
9982 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
9983 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
9984 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
9985 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
9986 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
9987 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
9988 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
9989 (S390_NUM_REGS): Adjust value.
9990 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
9991 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9992 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
9993 * NEWS: Announce S/390 vector register support.
9994
446899e4
AA
99952015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9996
9997 * features/s390-tevx-linux64.xml: New file.
9998 * features/s390-vx-linux64.xml: New file.
9999 * features/s390-vx.xml: New file.
10000 * features/s390x-tevx-linux64.xml: New file.
10001 * features/s390x-vx-linux64.xml: New file.
10002 * features/Makefile (WHICH): Add s390-vx-linux64,
10003 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10004 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10005 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10006 macros.
10007 * features/s390-tevx-linux64.c: New generated file.
10008 * features/s390-vx-linux64.c: Likewise.
10009 * features/s390x-tevx-linux64.c: Likewise.
10010 * features/s390x-vx-linux64.c: Likewise.
10011 * regformats/s390-tevx-linux64.dat: Likewise.
10012 * regformats/s390-vx-linux64.dat: Likewise.
10013 * regformats/s390x-tevx-linux64.dat: Likewise.
10014 * regformats/s390x-vx-linux64.dat: Likewise.
10015
b7236fbe
DE
100162015-02-28 Doug Evans <xdje42@gmail.com>
10017
10018 * symtab.h (struct symtab) <next>: Fix comment.
10019
02e62830
SM
100202015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10021
10022 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10023 python_GdbMethods.
10024
bf36a1e7
PA
100252015-02-27 Pedro Alves <palves@redhat.com>
10026
10027 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10028
ad6aff7d
PA
100292015-02-27 Pedro Alves <palves@redhat.com>
10030
10031 * common/common-exceptions.h (exception_none): Declare.
10032 * common/common-exceptions.c (exception_none): Moved from
10033 exceptions.c.
10034 (exceptions_state_mc_init): Use exception_none.
10035 * exceptions.c (exception_none): Move to
10036 common/common-exceptions.c.
10037 * exceptions.h (exception_none): Move to
10038 common/common-exceptions.h.
10039
97c18565
PA
100402015-02-27 Pedro Alves <palves@redhat.com>
10041
10042 * main.c (catch_command_errors, catch_command_errors_const):
10043 Remove 'mask' argument. Adjust.
10044 (captured_main): Adjust callers.
10045
e992c591
PA
100462015-02-27 Pedro Alves <palves@redhat.com>
10047
10048 * python/python-internal.h: Include "extension-priv.h".
10049
64166036
PA
100502015-02-27 Pedro Alves <palves@redhat.com>
10051
10052 * breakpoint.h (enum print_stop_action): Move further up in the
10053 file.
10054
8a526fa6
PA
100552015-02-27 Pedro Alves <palves@redhat.com>
10056
10057 * gdbarch.sh: Include regcache.h.
10058 * gdbarch.h: Regenerate.
10059
0fa9c223
PA
100602015-02-27 Pedro Alves <palves@redhat.com>
10061
10062 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10063 Remove duplicate const.
10064 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10065 duplicate const.
10066
7cf99fb1
PA
100672015-02-27 Pedro Alves <palves@redhat.com>
10068
10069 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10070 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10071 * features/feature_to_c.sh: Tag the generated xml_builtin array
10072 with extern const in C++ mode.
10073
1424c16e
TT
100742015-02-27 Tom Tromey <tromey@redhat.com>
10075
10076 * minidebug.c (struct lzma_stream): Rename to ...
10077 (struct gdb_lzma_stream): ... this.
10078 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10079
10367c7c
PA
100802015-02-27 Pedro Alves <palves@redhat.com>
10081
10082 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10083 function.
10084 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10085 (mi_cmd_stack_list_variables): Use it.
10086
4180215b
PA
100872015-02-27 Pedro Alves <palves@redhat.com>
10088
10089 * x86-linux-nat.c (u_debugreg_offset): New function.
10090 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10091
2f56f7c3
PA
100922015-02-27 Pedro Alves <palves@redhat.com>
10093
10094 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10095 declaration.
10096 Include break-common.h.
10097
570dc176
TT
100982015-02-27 Tom Tromey <tromey@redhat.com>
10099 Pedro Alves <palves@redhat.com>
10100
10101 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10102 local used to iterate over enums.
10103 * completer.c (signal_completer): Likewise.
10104 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10105 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10106 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10107 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10108 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10109 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10110 * tui-wingeneral.c (tui_refresh_all): Likewise.
10111
68c14faa
PA
101122015-02-27 Pedro Alves <palves@redhat.com>
10113
10114 * target.h: Include "infrun.h".
10115
749bab01
PA
101162015-02-27 Pedro Alves <palves@redhat.com>
10117
10118 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10119
3c14e5a3
PA
101202015-02-27 Pedro Alves <palves@redhat.com>
10121
10122 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10123 (IPA_SYM): Use it.
10124 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10125
56000a98
PA
101262015-02-27 Pedro Alves <palves@redhat.com>
10127
10128 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10129 cli_mld_erase_entire_line, and make it extern "C".
10130 * common/common-defs.h (EXTERN_C): New.
10131 * completer.c (_rl_completion_prefix_display_length)
10132 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10133 out of gdb_display_match_list_1.
10134 (_rl_qsort_string_compare): Move declaration out of
10135 gdb_display_match_list_1, and make it extern "C".
10136 * defs.h (re_comp): Use EXTERN_C.
10137 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10138 and make it extern "C".
10139 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10140 and make it extern "C".
10141 (main): Move declaration out of maintenance_set_profile_cmd.
10142 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10143 EXTERN_C.
10144
bcabf420
PA
101452015-02-27 Pedro Alves <palves@redhat.com>
10146
10147 * python/python.c (GdbMethods): Rename to ...
10148 (python_GdbMethods): ... this and make extern.
10149 (GdbModuleDef): Rename to ...
10150 (python_GdbModuleDef): ... this and make extern.
10151
928dbe07
PA
101522015-02-27 Pedro Alves <palves@redhat.com>
10153
10154 * record-btrace.c (set_record_btrace_cmdlist)
10155 (show_record_btrace_cmdlist): Remove redefinitions.
10156
52059ffd
TT
101572015-02-27 Tom Tromey <tromey@redhat.com>
10158 Pedro Alves <palves@redhat.com>
10159
10160 * dwarf2-frame.c (enum cfa_how_kind, struct
10161 dwarf2_frame_state_reg_info): Move out of struct
10162 dwarf2_frame_state.
10163 * dwarf2read.c (struct tu_stats): Move out of struct
10164 dwarf2_per_objfile.
10165 (struct file_entry): Move out of struct line_header.
10166 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10167 typedef_field_list): Move out of struct field_info.
10168 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10169 Move out of struct dynamic_prop.
10170 (union type_owner, union field_location, struct field, struct
10171 range_bounds, union type_specific): Move out of struct main_type.
10172 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10173 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10174 (struct call_site_target, union call_site_parameter_u, struct
10175 call_site_parameter): Move out of struct call_site.
10176 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10177 m32c_prologue.
10178 (enum srcdest_kind): Move out of struct srcdest.
10179 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10180 * prologue-value.h (enum prologue_value_kind): Move out of struct
10181 prologue_value.
10182 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10183 gdbarch_tdep.
10184 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10185 out of struct field_info.
10186 * symfile.h (struct other_sections): Move out of struct
10187 section_addr_info.
10188 * symtab.c (struct symbol_cache_slot): Move out struct
10189 block_symbol_cache.
10190 * target-descriptions.c (enum tdesc_type_kind): Move out of
10191 typedef struct tdesc_type.
10192 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10193 struct tui_line_or_address.
10194 * value.c (enum internalvar_kind, union internalvar_data): Move
10195 out of struct internalvar.
10196 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10197 gdbarch_tdep.
10198
fe978cb0
PA
101992015-02-27 Tom Tromey <tromey@redhat.com>
10200 Pedro Alves <palves@redhat.com>
10201
10202 Rename symbols whose names are reserved C++ keywords throughout.
10203
3bc3d82a
PA
102042015-02-27 Pedro Alves <palves@redhat.com>
10205
10206 * Makefile.in (COMPILER): New, get it from autoconf.
10207 (COMPILE.pre, CC_LD): Use COMPILER.
10208 (CXX): Get from autoconf instead.
10209 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10210 * acinclude.m4: Include build-with-cxx.m4.
10211 * build-with-cxx.m4: New file.
10212 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10213 Disable -Werror by default if building in C++ mode.
10214 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10215 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10216 Run supported-warning-flags tests with the C++ compiler.
10217 Save/restore CXXFLAGS too.
10218 * configure: Regenerate.
10219
07697489
PA
102202015-02-27 Pedro Alves <palves@redhat.com>
10221
10222 * libiberty.m4: New file.
10223 * acinclude.m4: Include libiberty.m4.
10224 * configure.ac: Call libiberty_INIT.
10225 * config.in, configure: Regenerate.
10226
60abeae4
AA
102272015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10228
10229 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10230 31-bit targets, but 64-bit targets as well.
10231 (s390_gnu_triplet_regexp): New function.
10232 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10233 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10234 method.
10235
f44466fb 102362015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10237
10238 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10239 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10240 from CONTEXT_DEBUGGER.
10241
0def5aaa
DE
102422015-02-26 Doug Evans <dje@google.com>
10243
10244 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10245 CHECK_TYPEDEF.
10246 (set_type_vptr_fieldno): Ditto.
10247 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10248 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10249
77b64a49
PA
102502015-02-26 Pedro Alves <palves@redhat.com>
10251
10252 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10253 * complaints.c (vcomplaint): Pass argument FMT directly to
10254 printf-like functions instead of complaint->fmt.
10255 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10256 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10257 * compile/compile-loc2c.c (pushf, unary, binary): Add
10258 ATTRIBUTE_PRINTF.
10259 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10260 to pushf.
10261 (BINARY): Pass string literal as format string to 'binary'.
10262 * compile/compile-object-load.c (link_callbacks_einfo): Add
10263 ATTRIBUTE_PRINTF.
10264 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10265
532f44ed
PA
102662015-02-26 Pedro Alves <palves@redhat.com>
10267
10268 * windows-termcap.c: Rename to ...
10269 * stub-termcap.c: ... this. Adjust header line.
10270 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10271 windows-termcap.c.
10272 * configure: Regenerate.
10273 * configure.ac: Refer to stub-termcap.o instead of
10274 windows-termcap.o.
10275 * gdb_curses.h: Mention stub-termcap.c instead of
10276 windows-termcap.c.
10277
081a1c2c
JK
102782015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10279
10280 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10281 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10282
2f41223f
AT
102832015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10284
10285 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10286
80c57053
JK
102872015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10288
10289 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10290 bfd_canonicalize_symtab.
10291
cf424aef
JB
102922015-02-25 John Baldwin <jhb@FreeBSD.org>
10293
10294 * amd64fbsd-nat.c: Include sys/user.h.
10295 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10296 instead of KERN_PS_STRINGS to locate the signal trampoline.
10297 * i386fbsd-nat.c: Include sys/user.h.
10298 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10299 instead of KERN_PS_STRINGS to locate the signal trampoline.
10300 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10301 (amd64fbsd_sigtramp_p): New.
10302 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10303 longer set default values.
10304 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10305 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10306 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10307 (i386fbsd_freebsd4_sigtramp_start)
10308 (i386fbsd_freebsd4_sigtramp_middle)
10309 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10310 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10311 (i386fbsd_sigtramp_p): New.
10312 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10313 longer set default values.
10314 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10315
c5cb74ee
JB
103162015-02-25 John Baldwin <jhb@freebsd.org>
10317
10318 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10319 get_frame_register instead of frame_unwind_register_unsigned.
10320
17487d85
JK
103212015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10322
10323 PR build/18033
10324 * compile/compile-c-support.c (c_compute_program): Change // comment.
10325 * compile/compile-object-load.c (setup_sections): Change // comment.
10326
9357a9e6
JB
103272015-02-26 Joel Brobecker <brobecker@adacore.com>
10328
10329 PR build/18033:
10330 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10331
1f10ba14
PA
103322015-02-23 Pedro Alves <palves@redhat.com>
10333
10334 * remote.c (skip_to_semicolon): New function.
10335 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10336 special case the stop reasons that look like hex numbers
10337 upfront. Instead handle real register numbers after matching
10338 all the known stop reasons.
10339
96553a0c
DE
103402015-02-21 Doug Evans <dje@google.com>
10341
10342 PR c++/17976, symtab/17821
10343 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10344 is_in_anonymous. All callers updated.
10345 (find_symbol_in_baseclass): Ditto.
10346 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10347 for symbols in an anonymous namespace.
10348 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10349 DW_AT_name directly.
10350 (dwarf2_name): Convert missing namespace name to
10351 CP_ANONYMOUS_NAMESPACE_STR.
10352
2db9a427
PA
103532015-02-20 Pedro Alves <palves@redhat.com>
10354
10355 * linux-nat.c (linux_handle_extended_wait): Call
10356 thread_db_notice_clone whenever a new clone LWP is detected.
10357 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10358 functions.
10359 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10360 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10361 (linux_unstop_all_lwps): Declare.
10362 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10363 (thread_get_info_callback): Delete.
10364 (thread_from_lwp): Use td_thr_get_info and record_thread.
10365 (thread_db_attach_lwp): Delete.
10366 (thread_db_notice_clone): New function.
10367 (try_thread_db_load_1): If /proc is mounted and shows the
10368 process'es task list, walk over all LWPs and call thread_from_lwp
10369 instead of relying on td_ta_thr_iter.
10370 (attach_thread): Don't call check_thread_signals here. Split the
10371 tail part of the function (which adds the thread to the core GDB
10372 thread list) to ...
10373 (record_thread): ... this function. Call check_thread_signals
10374 here.
10375 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10376 call thread_from_lwp.
10377 (thread_db_update_thread_list): Rename to ...
10378 (thread_db_update_thread_list_org): ... this.
10379 (thread_db_update_thread_list): New function.
10380 (thread_db_find_thread_from_tid): Delete.
10381 (thread_db_get_ada_task_ptid): Simplify.
10382 * nat/linux-procfs.c: Include <sys/stat.h>.
10383 (linux_proc_task_list_dir_exists): New function.
10384 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10385
3b27ef47
PA
103862015-02-20 Pedro Alves <palves@redhat.com>
10387
10388 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10389 main LWP. Handle the case of waitpid returning 0 if we're already
10390 attached to the LWP. Don't set the LWP's last_resume_kind to
10391 resume_stop if we already knew about the LWP.
10392 (linux_nat_filter_event): Add debug logs.
10393
1cc28231
PA
103942015-02-20 Pedro Alves <palves@redhat.com>
10395
10396 * target.h (forward_target_decr_pc_after_break): Delete
10397 declaration.
10398
5c5019c2
PA
103992015-02-20 Pedro Alves <palves@redhat.com>
10400
10401 PR threads/18006
10402 * linux-thread-db.c (thread_get_info_callback): Return early if
10403 the thread's lwp id is -1.
10404
f3978e91
JB
104052015-02-20 Joel Brobecker <brobecker@adacore.com>
10406
10407 GDB 7.9 released.
10408
ffdf88ec
SE
104092015-02-19 Steve Ellcey <sellcey@imgtec.com>
10410
10411 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10412 (dtrace_get_probes) Change type of variable 'dof'.
10413
c9587f88
AT
104142015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10415
10416 PR breakpoints/16812
10417 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10418 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10419 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10420
53cf2ee0
DT
104212015-02-19 David Taylor <dtaylor@emc.com>
10422
10423 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10424
acfe0940
PP
104252015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10426
10427 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10428 function.
10429 (tui_putc): Don't call tui_handle_resize_during_io.
10430 (tui_getc): Likewise.
10431 (tui_mld_getc): Likewise.
10432 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10433 (tui_sigwinch_token): New static variable.
10434 (tui_initialize_win): Adjust documentation. Set
10435 tui_sigwinch_token.
10436 (tui_async_resize_screen): New asynchronous callback.
10437 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10438 invoke tui_async_resize_screen.
10439
f6a88844
JM
104402015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10441
10442 * configure: Regenerated.
10443 * configure.ac: Use GDB_AC_TRANSFORM.
10444 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10445 * acinclude.m4: sinclude transform.m4.
10446 * transform.m4: New file.
10447 (GDB_AC_TRANSFORM): New macro.
10448
b05e3b0d
JM
104492015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10450
10451 * NEWS: Announce the support for DTrace SDT probes.
10452
c3e3045e
JM
104532015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10454
10455 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10456 (amd64_dtrace_parse_probe_argument): New function.
10457 (amd64_dtrace_probe_is_enabled): Likewise.
10458 (amd64_dtrace_enable_probe): Likewise.
10459 (amd64_dtrace_disable_probe): Likewise.
10460 (amd64_linux_init_abi): Register the
10461 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10462 `gdbarch_dtrace_disable_probe' and
10463 `gdbarch_dtrace_probe_is_enabled' hooks.
10464 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10465 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10466 (amd64_dtrace_enable_probe_sequence): Likewise.
10467 (amd64_dtrace_disable_probe_sequence): Likewise.
10468
d4777acb
JM
104692015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10470
10471 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10472 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10473 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10474 handle ELF files.
10475 * Makefile.in (SFILES): dtrace-probe.c added.
10476 * configure: Regenerate.
10477 * dtrace-probe.c: New file.
10478 (SHT_SUNW_dof): New constant.
10479 (dtrace_probe_type): New enum.
10480 (dtrace_probe_arg): New struct.
10481 (dtrace_probe_arg_s): New typedef.
10482 (struct dtrace_probe_enabler): New struct.
10483 (dtrace_probe_enabler_s): New typedef.
10484 (dtrace_probe): New struct.
10485 (dtrace_probe_is_linespec): New function.
10486 (dtrace_dof_sect_type): New enum.
10487 (dtrace_dof_dofh_ident): Likewise.
10488 (dtrace_dof_encoding): Likewise.
10489 (DTRACE_DOF_ENCODE_LSB): Likewise.
10490 (DTRACE_DOF_ENCODE_MSB): Likewise.
10491 (dtrace_dof_hdr): New struct.
10492 (dtrace_dof_sect): Likewise.
10493 (dtrace_dof_provider): Likewise.
10494 (dtrace_dof_probe): Likewise.
10495 (DOF_UINT): New macro.
10496 (DTRACE_DOF_PTR): Likewise.
10497 (DTRACE_DOF_SECT): Likewise.
10498 (dtrace_process_dof_probe): New function.
10499 (dtrace_process_dof): Likewise.
10500 (dtrace_build_arg_exprs): Likewise.
10501 (dtrace_get_arg): Likewise.
10502 (dtrace_get_probes): Likewise.
10503 (dtrace_get_probe_argument_count): Likewise.
10504 (dtrace_can_evaluate_probe_arguments): Likewise.
10505 (dtrace_evaluate_probe_argument): Likewise.
10506 (dtrace_compile_to_ax): Likewise.
10507 (dtrace_probe_destroy): Likewise.
10508 (dtrace_gen_info_probes_table_header): Likewise.
10509 (dtrace_gen_info_probes_table_values): Likewise.
10510 (dtrace_probe_is_enabled): Likewise.
10511 (dtrace_probe_ops): New variable.
10512 (info_probes_dtrace_command): New function.
10513 (_initialize_dtrace_probe): Likewise.
10514 (dtrace_type_name): Likewise.
10515
8b367e17
JM
105162015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10517
10518 * gdbarch.sh (dtrace_parse_probe_argument): New.
10519 (dtrace_probe_is_enabled): Likewise.
10520 (dtrace_enable_probe): Likewise.
10521 (dtrace_disable_probe): Likewise.
10522 * gdbarch.c: Regenerate.
10523 * gdbarch.h: Regenerate.
10524
9aca2ff8
JM
105252015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10526
10527 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10528 stap_probe_ops for `enable_probe' and `disable_probe'.
10529 * probe.c (enable_probes_command): New function.
10530 (disable_probes_command): Likewise.
10531 (_initialize_probe): Define the cli commands `enable probe' and
10532 `disable probe'.
10533 (parse_probe_linespec): New function.
10534 (info_probes_for_ops): Use parse_probe_linespec.
10535 * probe.h (probe_ops): New hooks `enable_probe' and
10536 `disable_probe'.
10537
03e98035
JM
105382015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10539
10540 * probe.c (compute_probe_arg): Moved from stap-probe.c
10541 (compile_probe_arg): Likewise.
10542 (probe_funcs): Likewise.
10543 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10544 (compile_probe_arg): Likewise.
10545 (probe_funcs): Likewise.
10546
6f9b8491
JM
105472015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10548
10549 * probe.c (print_ui_out_not_applicables): New function.
10550 (exists_probe_with_pops): Likewise.
10551 (info_probes_for_ops): Do not include column headers for probe
10552 types for which no probe has been actually found on any object.
10553 Also invoke `print_ui_out_not_applicables' in order to match the
10554 column rows with the header when probes of several types are
10555 listed.
10556 Print the "Type" column.
10557 * probe.h (probe_ops): Added a new probe operation `type_name'.
10558 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10559 (stap_type_name): New function.
10560
69efdff1
PP
105612015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10562
10563 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10564 (key_is_command_char): Delete.
10565
f8e5e23e
PA
105662015-02-17 Pedro Alves <palves@redhat.com>
10567
10568 * tui/tui.c (tui_enable): Resize windows before anything
10569 might show a window.
10570
9f2e0721
MO
105712015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10572
10573 PR gdb/17984
10574 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10575 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10576 call.
10577 * aarch64-tdep.h (tdesc_aarch64): Declare.
10578
171e6b1c
MW
105792015-02-12 Mark Wielaard <mjw@redhat.com>
10580
10581 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10582
d5ff0482
DE
105832015-02-13 Doug Evans <dje@google.com>
10584
10585 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10586 anonymous_namespace to is_in_anonymous for consistency with the rest
10587 of the file.
10588 (cp_lookup_bare_symbol): Fix typo in comment.
10589 (cp_search_static_and_baseclasses): Ditto.
10590 (search_symbol_list): Use vertical space in comment better.
10591 (reset_directive_searched): Ditto. Fix typo.
10592 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10593
9f04ac5f
YQ
105942015-02-13 Yao Qi <yao.qi@arm.com>
10595
10596 * MAINTAINERS: Update my email address.
10597
013d0319
DE
105982015-02-12 Doug Evans <dje@google.com>
10599
b615dd20 10600 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 10601
9a7e538e
DE
106022015-02-12 Doug Evans <dje@google.com>
10603
10604 * completer.c (complete_line): Remove incorrect comment.
10605
e1fcd575
JK
106062015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10607
10608 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10609 (py_print_frame): Use RETURN_MASK_ERROR.
10610
b99bf4e3
JK
106112015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10612
10613 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10614 function comment. Wrap all function that can throw in cleanups.
10615 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10616 cleanups.
10617
800eb1ce
JK
106182015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10619
10620 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10621 Remove the error label.
10622
34019068
JK
106232015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10624
10625 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10626 with goto first, indent the former else codepath left. Put variable
10627 'elided' to a new inner block.
10628
8d4a54e2
JK
106292015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10632
18ad82c1
PA
106332015-02-11 Pedro Alves <palves@redhat.com>
10634
10635 * xcoffread.c (within_function): Delete.
10636
e36122e9
TT
106372015-02-11 Tom Tromey <tromey@redhat.com>
10638 Pedro Alves <palves@redhat.com>
10639
10640 * breakpoint.c (base_breakpoint_ops): Delete.
10641 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10642 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10643 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10644 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10645 * python/py-arch.c (arch_object_type): Make extern.
10646 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10647 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10648 * python/py-cmd.c (cmdpy_object_type): Make extern.
10649 * python/py-continueevent.c (continue_event_object_type)
10650 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10651 parameter. Update all callers.
10652 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10653 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10654 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10655 * python/py-function.c (fnpy_object_type): Make extern.
10656 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10657 * python/py-infevents.c (call_pre_event_object_type)
10658 (inferior_call_post_event_object_type).
10659 (memory_changed_event_object_type): Make extern.
10660 * python/py-infthread.c (thread_object_type): Make extern.
10661 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10662 * python/py-linetable.c (linetable_entry_object_type)
10663 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10664 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10665 (clear_objfiles_event_object_type): Make extern.
10666 * python/py-objfile.c (objfile_object_type): Make extern.
10667 * python/py-param.c (parmpy_object_type): Make extern.
10668 * python/py-progspace.c (pspace_object_type): Make extern.
10669 * python/py-signalevent.c (signal_event_object_type): Make extern.
10670 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10671 * python/py-type.c (type_object_type, field_object_type)
10672 (type_iterator_object_type): Make extern.
10673 * python/python.c (python_extension_script_ops)
10674 (python_extension_ops): Make extern.
10675 * stap-probe.c (stap_probe_ops): Make extern.
10676
0703599a
PA
106772015-02-11 Pedro Alves <pedro@codesourcery.com>
10678
10679 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10680 because the event thread is not the current thread.
10681
eaaf76ab
DE
106822015-02-11 Doug Evans <xdje42@gmail.com>
10683
10684 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10685 been initialized yet, return NULL.
10686
e7d52ed3
DE
106872015-02-11 Doug Evans <dje@google.com>
10688
10689 * symfile.h (new_symfile_objfile): Delete.
10690 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10691 All callers updated.
10692
fc6b1256
PP
106932015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10694
10695 * tui/tui-io.c (tui_handle_resize_during_io): Call
10696 tui_update_gdb_sizes() after resizing the screen.
10697 * tui/tui.c (tui_enable): Resize the terminal before
10698 calling tui_update_gdb_sizes().
10699
d9080678
PP
107002015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10701
10702 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10703 line before printing a newline.
10704
9f615e3a
MW
107052015-02-11 Mark Wielaard <mjw@redhat.com>
10706
10707 * utils.c (producer_is_gcc): Return true or false.
10708
d9080678 107092015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
10710
10711 * utils.h (producer_is_gcc): Change return type to bool. Add major
10712 argument.
10713 * utils.c (producer_is_gcc): Likewise.
10714 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10715 * dwarf2read.c (check_producer): Likewise.
10716
b052c4fb
PA
107172015-02-10 Pedro Alves <palves@redhat.com>
10718
10719 * infrun.c (displaced_step_fixup): Switch to the event thread
10720 before calling gdbarch_displaced_step_fixup.
10721
3ac240d4
AT
107222015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10723
10724 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10725
c1cc6152
SM
107262015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10727
10728 * ada-varobj.c (ada_name_of_child): Constify parent.
10729 (ada_path_expr_of_child): Same.
10730 (ada_value_of_child): Same.
10731 (ada_type_of_child): Same.
10732 * c-varobj.c (c_is_path_expr_parent): Same.
10733 (c_describe_child): Same.
10734 (c_name_of_child): Same.
10735 (c_value_of_child): Same.
10736 (c_type_of_child): Same.
10737 (cplus_number_of_children): Same.
10738 (cplus_describe_child): Constify var.
10739 (cplus_name_of_child): Constify parent.
10740 (cplus_value_of_child): Same.
10741 (cplus_type_of_child): Same.
10742 * jv-varobj.c (java_name_of_child): Same.
10743 (java_value_of_child): Same.
10744 (java_type_of_child): Same.
10745 * varobj.c (value_of_child): Same.
10746 (varobj_default_is_path_expr_parent): Constify var, parent and return
10747 value.
10748 (varobj_get_path_expr): Constify var, modify path_expr through
10749 mutable_var.
10750 (install_new_value): Constify parent.
10751 (value_of_child): Constify parent.
10752 * varobj.h (struct varobj): Constify parent.
10753 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10754 type_of_child.
10755 (varobj_get_path_expr): Constify var.
10756 (varobj_get_path_expr_parent): Constify var and return value.
10757
c1ee9414
LM
107582015-02-10 Luis Machado <lgustavo@codesourcery.com>
10759
10760 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10761 (arm_prologue_this_id): Move PC and SP limit checks to
10762 arm_prologue_unwind_stop_reason.
10763 (arm_prologue_unwind) <stop_reason> : Set to
10764 arm_prologue_unwind_stop_reason.
10765
f7de9aab
MW
107662015-02-09 Mark Wielaard <mjw@redhat.com>
10767
10768 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10769 DW_LANG_Fortran08 as language_fortran.
10770
0b24eb2d
SDJ
107712015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10772
10773 PR remote/17946
10774 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10775 of pointer against char.
10776
a2c2acaf
MW
107772015-02-09 Mark Wielaard <mjw@redhat.com>
10778
10779 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10780 (c_type_print_modifier): Likewise.
10781 * dwarf2read.c (read_tag_atomic_type): New function.
10782 (read_type_die_1): Handle DW_TAG_atomic_type.
10783 * gdbtypes.c (make_atomic_type): New function.
10784 (recursive_dump_type): Handle TYPE_ATOMIC.
10785 * gdbtypes.h (enum type_flag_values): Renumber.
10786 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10787 (TYPE_ATOMIC): New macro.
10788 (make_atomic_type): Declare.
10789
31fd9caa
MM
107902015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10791
10792 * btrace.c (ftrace_find_call): Skip gaps.
10793 (ftrace_new_function): Initialize level.
10794 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10795 (ftrace_new_switch): Update
10796 level computation.
10797 (ftrace_new_gap): New.
10798 (ftrace_update_function): Create new function after gap.
10799 (btrace_compute_ftrace_bts): Create gap on error.
10800 (btrace_stitch_bts): Update parameters. Clear trace if it
10801 becomes empty.
10802 (btrace_stitch_trace): Update parameters. Update callers.
10803 (btrace_clear): Reset the number of gaps.
10804 (btrace_insn_get): Return NULL if the iterator points to a gap.
10805 (btrace_insn_number): Return zero if the iterator points to a gap.
10806 (btrace_insn_end): Allow gaps at the end.
10807 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10808 (btrace_find_insn_by_number): Assert that the found iterator does
10809 not point to a gap.
10810 (btrace_call_next, btrace_call_prev): Assert that the last function
10811 is not a gap.
10812 * btrace.h (btrace_bts_error): New.
10813 (btrace_function): Update comment.
10814 (btrace_function) <insn, insn_offset, number>: Update comment.
10815 (btrace_function) <errcode>: New.
10816 (btrace_thread_info) <ngaps>: New.
10817 (btrace_thread_info) <replay>: Update comment.
10818 (btrace_insn_get): Update comment.
10819 * record-btrace.c (btrace_ui_out_decode_error): New.
10820 (record_btrace_info): Print number of gaps.
10821 (btrace_insn_history, btrace_call_history): Call
10822 btrace_ui_out_decode_error for gaps.
10823 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10824
afb778a2
MM
108252015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10826
10827 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10828 * nat/linux-btrace.c: (btrace_this_cpu): New.
10829 (cpu_supports_bts): Call btrace_this_cpu.
10830 (intel_supports_bts): Add cpu parameter.
10831
7d5c24b3
MM
108322015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10833
10834 * btrace.h (btrace_insn_class): New.
10835 (btrace_insn) <size, iclass>: New.
10836 * btrace.c (ftrace_find_call): Update parameters. Update users.
10837 Use instruction classification.
10838 (ftrace_new_return): Update parameters. Update users.
10839 (ftrace_update_function): Update parameters. Update users. Use
10840 instruction classification.
10841 (ftrace_update_insns): Update parameters. Update users.
10842 (ftrace_classify_insn): New.
10843 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
10844 TRY_CATCH around call to gdb_insn_length.
10845
76235df1
MM
108462015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10847
10848 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
10849 Update parameters. Update users.
10850
d33501a5
MM
108512015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10852
10853 * btrace.c (parse_xml_btrace_conf_bts): Add size.
10854 (btrace_conf_bts_attributes): New.
10855 (btrace_conf_children): Add attributes.
10856 * common/btrace-common.h (btrace_config_bts): New.
10857 (btrace_config)<bts>: New.
10858 (btrace_config): Update comment.
10859 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
10860 Use config.
10861 * features/btrace-conf.dtd: Increment version. Add size
10862 attribute to bts element.
10863 * record-btrace.c (set_record_btrace_bts_cmdlist,
10864 show_record_btrace_bts_cmdlist): New.
10865 (record_btrace_adjust_size, record_btrace_print_bts_conf,
10866 record_btrace_print_conf, cmd_set_record_btrace_bts,
10867 cmd_show_record_btrace_bts): New.
10868 (record_btrace_info): Call record_btrace_print_conf.
10869 (_initialize_record_btrace): Add commands.
10870 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
10871 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
10872 (btrace_sync_conf): Synchronize bts size.
10873 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
10874 * NEWS: Announce new commands and new packets.
10875
f4abbc16
MM
108762015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10877
10878 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
10879 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
10880 (x86_linux_btrace_conf): New.
10881 (x86_linux_create_target): Initialize to_btrace_conf.
10882 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
10883 Check format. Split into this and ...
10884 (linux_enable_bts): ... this.
10885 (linux_btrace_conf): New.
10886 (perf_event_skip_record): Renamed into ...
10887 (perf_event_skip_bts_record): ... this. Updated users.
10888 (linux_disable_btrace): Split into this and ...
10889 (linux_disable_bts): ... this.
10890 (linux_read_btrace): Check format.
10891 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
10892 (linux_btrace_conf): New.
10893 (btrace_target_info)<ptid>: Moved.
10894 (btrace_target_info)<conf>: New.
10895 (btrace_target_info): Split into this and ...
10896 (btrace_tinfo_bts): ... this. Updated users.
10897 * btrace.c (btrace_enable): Update parameters.
10898 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
10899 (btrace_conf_children, btrace_conf_attributes)
10900 (btrace_conf_elements): New.
10901 * btrace.h (btrace_enable): Update parameters.
10902 (btrace_conf, parse_xml_btrace_conf): New.
10903 * common/btrace-common.h (btrace_config): New.
10904 * feature/btrace-conf.dtd: New.
10905 * record-btrace.c (record_btrace_conf): New.
10906 (record_btrace_cmdlist): New.
10907 (record_btrace_enable_warn, record_btrace_open): Pass
10908 &record_btrace_conf.
10909 (record_btrace_info): Print recording format.
10910 (cmd_record_btrace_bts_start): New.
10911 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
10912 (_initialize_record_btrace): Add "record btrace bts" subcommand.
10913 Add "record bts" alias command.
10914 * remote.c (remote_state)<btrace_config>: New.
10915 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
10916 (remote_protocol_features): Add qXfer:btrace-conf:read.
10917 (remote_open_1): Call remote_btrace_reset.
10918 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
10919 (btrace_target_info)<conf>: New.
10920 (btrace_sync_conf, btrace_read_config): New.
10921 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
10922 btrace_read_conf.
10923 (remote_btrace_conf): New.
10924 (init_remote_ops): Initialize to_btrace_conf.
10925 (_initialize_remote): Add qXfer:btrace-conf packet.
10926 * target.c (target_enable_btrace): Update parameters.
10927 (target_btrace_conf): New.
10928 * target.h (target_enable_btrace): Update parameters.
10929 (target_btrace_conf): New.
10930 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
10931 (target_ops)<to_enable_btrace>: Update parameters and comment.
10932 (target_ops)<to_btrace_conf>: New.
10933 * target-delegates: Regenerate.
10934 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
10935 (target_debug_print_const_struct_btrace_target_info_p): New.
10936 * NEWS: Announce new command and new packet.
10937
aadf7753
MM
109382015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10939
10940 * nat/linux-btrace.h (perf_event_buffer): New.
10941 (btrace_target_info) <buffer, size, data_head>: Replace with ...
10942 <bts>: ... this.
10943 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
10944 (perf_event_buffer_size, perf_event_buffer_begin)
10945 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
10946 Updated users.
10947 (perf_event_new_data): New.
10948
043c3577
MM
109492015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10950
10951 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
10952 * record-btrace.c (record_btrace_open): Remove call to
10953 target_supports_btrace.
10954 * remote.c (remote_supports_btrace): Update parameters.
10955 * target.c (target_supports_btrace): Update parameters.
10956 * target.h (to_supports_btrace, target_supports_btrace): Update
10957 parameters.
10958 * target-delegates.c: Regenerate.
10959 * target-debug.h (target_debug_print_enum_btrace_format): New.
10960 * nat/linux-btrace.c
10961 (kernel_supports_btrace): Rename into ...
10962 (kernel_supports_bts): ... this. Update users. Update warning text.
10963 (intel_supports_btrace): Rename into ...
10964 (intel_supports_bts): ... this. Update users.
10965 (cpu_supports_btrace): Rename into ...
10966 (cpu_supports_bts): ... this. Update users.
10967 (linux_supports_btrace): Update parameters. Split into this and ...
10968 (linux_supports_bts): ... this.
10969 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
10970
734b0e4b
MM
109712015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10972
10973 * Makefile.in (SFILES): Add common/btrace-common.c.
10974 (COMMON_OBS): Add common/btrace-common.o.
10975 (btrace-common.o): Add build rules.
10976 * btrace.c (parse_xml_btrace): Update parameters.
10977 (parse_xml_btrace_block): Set format field.
10978 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
10979 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
10980 (btrace_compute_ftrace): Split into this and...
10981 (btrace_compute_ftrace_bts): ...this.
10982 (btrace_stitch_trace): Split into this and...
10983 (btrace_stitch_bts): ...this.
10984 * btrace.h (parse_xml_btrace): Update parameters.
10985 (make_cleanup_btrace_data): New.
10986 * common/btrace-common.c: New.
10987 * common/btrace-common.h: Include common-defs.h.
10988 (btrace_block_s): Update comment.
10989 (btrace_format): New.
10990 (btrace_format_string): New.
10991 (btrace_data_bts): New.
10992 (btrace_data): New.
10993 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
10994 * remote.c (remote_read_btrace): Update parameters.
10995 * target.c (target_read_btrace): Update parameters.
10996 * target.h (target_read_btrace): Update parameters.
10997 (target_ops)<to_read_btrace>: Update parameters.
10998 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
10999 * target-delegates.c: Regenerate.
11000 * target-debug (target_debug_print_struct_btrace_data_p): New.
11001 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11002 (linux_read_bts): ...this.
11003 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11004
bd2e0e9e
DE
110052015-02-06 Doug Evans <dje@google.com>
11006
11007 * remote-m32r-sdi.c: Include symfile.h.
11008
f176c4b5
DE
110092015-02-06 Doug Evans <dje@google.com>
11010
11011 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11012 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11013 to here.
11014
d6c146e9
PA
110152015-02-06 Pedro Alves <palves@redhat.com>
11016
11017 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11018
b9d61307
SM
110192015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11020
11021 PR gdb/15678
11022 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11023 (enable_count_command): Check args for NULL value.
11024
e9fbd043
DE
110252015-02-05 Doug Evans <xdje42@gmail.com>
11026
11027 * guile/scm-frame.c: Fix spelling errors in a comment.
11028
881d5d5d
JK
110292015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11030
11031 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11032 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11033 return type.
11034
20ba1ce6
PA
110352015-02-04 Pedro Alves <palves@redhat.com>
11036
11037 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11038 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11039 returns true.
11040 (resume_stopped_resumed_lwps): Don't check whether the thread is
11041 marked as executing.
11042 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11043
f962539a
AA
110442015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11045
11046 * regset.h (struct regset): Add flags field.
11047 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11048 * corelow.c (get_core_register_section): Add warning if the size
11049 exceeds the requested size and the regset does not have the
11050 REGSET_VARIABLE_SIZE flag set.
11051 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11052 flag.
11053 * armbsd-tdep.c (armbsd_gregset): Likewise.
11054 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11055 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11056 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11057 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11058
dde9acd6
AA
110592015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11060
11061 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11062 For ".reg-xstate", explicitly specify the requested section size
11063 via X86_XSTATE_SIZE instead of just 0 on input and
11064 X86_XSTATE_MAX_SIZE on output.
11065 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11066 Likewise.
11067
1528345d
AA
110682015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11069
11070 PR corefiles/17808:
11071 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11072 function type, particularly its SIZE parameter.
11073 * gdbarch.h: Regenerate.
11074 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11075 actual against required size using ">=" instead of "==".
11076 (amd64_collect_fpregset): Likewise.
11077 * i386-tdep.c (i386_supply_gregset): Likewise.
11078 (i386_collect_gregset): Likewise.
11079 (i386_supply_fpregset): Likewise.
11080 (i386_collect_fpregset): Likewise.
11081 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11082 (mips_fill_gregset_wrapper): Likewise.
11083 (mips_supply_fpregset_wrapper): Likewise.
11084 (mips_fill_fpregset_wrapper): Likewise.
11085 (mips64_supply_gregset_wrapper): Likewise.
11086 (mips64_fill_gregset_wrapper): Likewise.
11087 (mips64_supply_fpregset_wrapper): Likewise.
11088 (mips64_fill_fpregset_wrapper): Likewise.
11089 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11090 (am33_supply_fpregset_method): Likewise.
11091 (am33_collect_gregset_method): Likewise.
11092 (am33_collect_fpregset_method): Likewise.
11093
518be979
DE
110942015-02-04 Doug Evans <dje@google.com>
11095 Pedro Alves <palves@redhat.com>
11096 Eli Zaretskii <eliz@gnu.org>
11097
11098 PR tui/17810
11099 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11100 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11101 * tui/tui-file.c: #include tui/tui-command.h.
11102 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11103 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11104 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11105
80bd5fab
PA
111062015-02-04 Pedro Alves <palves@redhat.com>
11107
11108 Fix build breakage.
11109 * event-loop.c (gdb_do_one_event): Add default switch case.
11110
a7606d80
JK
111112015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11112
11113 Filter out inferior gcc option -fpreprocessed.
11114 * compile/compile.c (filter_args): New function.
11115 (get_args): Use it.
11116
70b66289
PA
111172015-02-03 Pedro Alves <palves@redhat.com>
11118
11119 * event-loop.c: Don't declare nor define a queue type for
11120 gdb_event_p.
11121 (event_queue): Delete.
11122 (create_event, create_file_event, gdb_event_xfree)
11123 (initialize_event_loop, process_event): Delete.
11124 (gdb_do_one_event): Return as soon as one event is handled.
11125 (handle_file_event): Change prototype. Used the passed in
11126 file_handler pointer and ready_mask instead of looping over all
11127 file handlers.
11128 (gdb_wait_for_event): Update the poll/select timeouts before
11129 blocking. Run event handlers directly instead of queueing events.
11130 Return as soon as one event is handled.
11131 (struct async_event_handler_data): Delete.
11132 (invoke_async_event_handler): Delete.
11133 (check_async_event_handlers): Change return type to int. Run
11134 event handlers directly instead of queueing events. Return as
11135 soon as one event is handled.
11136 (handle_timer_event): Delete.
11137 (update_wait_timeout): New function, factored out from
11138 poll_timers.
11139 (poll_timers): Reimplement.
11140 * event-loop.h (initialize_event_loop): Delete declaration.
11141 * top.c (gdb_init): Don't call initialize_event_loop.
11142
b7d2e916
PA
111432015-02-03 Pedro Alves <palves@redhat.com>
11144
11145 * event-loop.c (clear_async_event_handler): New function.
11146 * event-loop.h (clear_async_event_handler): New declaration.
11147 * record-btrace.c (record_btrace_async): New function.
11148 (init_record_btrace_ops): Install record_btrace_async.
11149 * record-full.c (record_full_async): New function.
11150 (record_full_resume): Don't mark the async event source here.
11151 (init_record_full_ops): Install record_full_async.
11152 (record_full_core_resume): Don't mark the async event source here.
11153 (init_record_full_core_ops): Install record_full_async.
11154 * remote.c (remote_async): Mark and clear the async stop reply
11155 queue event-loop token as appropriate.
11156
d9d41e78
PA
111572015-02-03 Pedro Alves <palves@redhat.com>
11158
11159 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11160 target_is_async_p instead of target_can_async.
11161 (linux_nat_wait): Use target_is_async_p instead of
11162 target_can_async. Don't enable async here.
11163 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11164 target_is_async_p instead of target_can_async.
11165
aa3de267
SM
111662015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11167
11168 * varobj.h (lang_varobj_ops): Mention which return values need
11169 to be freed.
11170
2c811c0f
JB
111712015-02-02 Joel Brobecker <brobecker@adacore.com>
11172
11173 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11174
b1eedac9
JB
111752015-02-02 Joel Brobecker <brobecker@adacore.com>
11176
11177 PR gdb/17856:
11178 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11179 results found in the cache.
11180
66c168ae
JB
111812015-02-02 Joel Brobecker <brobecker@adacore.com>
11182
11183 PR gdb/17854:
11184 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11185 when allocating a new one.
11186
4bdc02b2
TT
111872015-02-01 Tom Tromey <tom@tromey.com>
11188
11189 * MAINTAINERS: Remove myself.
11190
ae6ae975
DE
111912015-01-31 Doug Evans <xdje42@gmail.com>
11192
11193 * dwarf2read.c (process_structure_scope): Update setting of
11194 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11195 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11196 (set_type_vptr_fieldno): New function.
11197 (internal_type_vptr_basetype): New function.
11198 (set_type_vptr_basetype): New function.
11199 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11200 TYPE_VPTR_BASETYPE.
11201 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11202 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11203 (print_cplus_stuff): ... moved here.
11204 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11205 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11206 moved to ...
11207 (struct cplus_struct_type): ... here. All uses updated.
11208 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11209 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11210 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11211 * stabsread.c (read_tilde_fields): Update setting of
11212 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11213
09e2d7c7
DE
112142015-01-31 Doug Evans <xdje42@gmail.com>
11215
11216 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11217 to self_p.
11218 (cp_print_class_member): Rename local domain to self_type.
11219 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11220 domain_type to self_type.
11221 (set_die_type) <need_gnat_info>: Handle
11222 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11223 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11224 TYPE_SPECIFIC_SELF_TYPE.
11225 * gdbtypes.c (internal_type_self_type): New function.
11226 (set_type_self_type): New function.
11227 (smash_to_memberptr_type): Rename parameter domain to self_type.
11228 Update setting of TYPE_SELF_TYPE.
11229 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11230 (smash_to_method_type): Rename parameter domain to self_type.
11231 Update setting of TYPE_SELF_TYPE.
11232 (check_stub_method): Call smash_to_method_type.
11233 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11234 (copy_type_recursive): Ditto.
11235 * gdbtypes.h (enum type_specific_kind): New value
11236 TYPE_SPECIFIC_SELF_TYPE.
11237 (struct main_type) <type_specific>: New member self_type.
11238 (struct cplus_struct_type) <fn_field.type>: Update comment.
11239 (TYPE_SELF_TYPE): Rewrite.
11240 (internal_type_self_type, set_type_self_type): Declare.
11241 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11242 self_type.
11243 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11244 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11245 TYPE_TARGET_TYPE.
11246 * stabsread.c (read_member_functions): Mark methods with
11247 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11248 TYPE_SELF_TYPE.
11249
4bfb94b8
DE
112502015-01-31 Doug Evans <xdje42@gmail.com>
11251
11252 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11253 All uses updated.
11254
5f4ce105
DE
112552015-01-31 Doug Evans <xdje42@gmail.com>
11256
11257 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11258 or unions. Return zero if union.
11259 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11260 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11261 gnuv3_get_vtable.
11262 (compute_vtable_size): Assert only passed structs.
11263 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11264
f6b3afbf
DE
112652015-01-31 Doug Evans <xdje42@gmail.com>
11266
11267 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11268 kinds.
11269
cfb069a8
GB
112702015-01-31 Gary Benson <gbenson@redhat.com>
11271 Doug Evans <dje@google.com>
11272
11273 PR cli/9007
11274 PR cli/11920
11275 PR cli/15548
11276 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11277 reached.
11278 * common/common-exceptions.h (enum errors)
11279 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11280 * completer.h (get_max_completions_reached_message): New declaration.
11281 (max_completions): Likewise.
11282 (completion_tracker_t): New typedef.
11283 (new_completion_tracker): New declaration.
11284 (make_cleanup_free_completion_tracker): Likewise.
11285 (maybe_add_completion_enum): New enum.
11286 (maybe_add_completion): New declaration.
11287 (throw_max_completions_reached_error): Likewise.
11288 * completer.c (max_completions): New global variable.
11289 (new_completion_tracker): New function.
11290 (free_completion_tracker): Likewise.
11291 (make_cleanup_free_completion_tracker): Likewise.
11292 (maybe_add_completions): Likewise.
11293 (throw_max_completions_reached_error): Likewise.
11294 (complete_line): Remove duplicates and limit result to max_completions
11295 entries.
11296 (get_max_completions_reached_message): New function.
11297 (gdb_display_match_list): Handle max_completions.
11298 (_initialize_completer): New declaration and function.
11299 * symtab.c: Include completer.h.
11300 (completion_tracker): New static variable.
11301 (completion_list_add_name): Call maybe_add_completion.
11302 (default_make_symbol_completion_list_break_on_1): Renamed from
11303 default_make_symbol_completion_list_break_on. Maintain
11304 completion_tracker across calls to completion_list_add_name.
11305 (default_make_symbol_completion_list_break_on): New function.
11306 * top.c (init_main): Set rl_completion_display_matches_hook.
11307 * tui/tui-io.c: Include completer.h.
11308 (tui_old_rl_display_matches_hook): New static global.
11309 (tui_rl_display_match_list): Notify user if max-completions reached.
11310 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11311 * NEWS (New Options): Mention set/show max-completions.
11312
e11c72c7
GB
113132015-01-31 Gary Benson <gbenson@redhat.com>
11314
11315 * symtab.c (struct add_name_data) <code>: New field.
11316 Updated comments.
11317 (add_symtab_completions): New function.
11318 (symtab_expansion_callback): Likewise.
11319 (default_make_symbol_completion_list_break_on): Set datum.code.
11320 Move minimal symbol scan before calling expand_symtabs_matching.
11321 Scan known primary symtabs for externs and statics before calling
11322 expand_symtabs_matching. Pass symtab_expansion_callback as
11323 expansion_notify argument to expand_symtabs_matching. Do not scan
11324 primary symtabs for externs and statics after calling
11325 expand_symtabs_matching.
11326
276d885b
GB
113272015-01-31 Gary Benson <gbenson@redhat.com>
11328
11329 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11330 (struct quick_symbol_functions) <expand_symtabs_matching>:
11331 New argument expansion_notify. All uses updated.
11332 (expand_symtabs_matching): New argument expansion_notify.
11333 All uses updated.
11334 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11335 Also print expansion notify.
11336 * symtab.c (expand_symtabs_matching_via_partial): Call
11337 expansion_notify whenever a partial symbol table is expanded.
11338 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11339 expansion_notify whenever a symbol table is instantiated.
11340
82083d6d
DE
113412015-01-31 Doug Evans <xdje42@gmail.com>
11342
11343 * cli-out.c: #include completer.h, readline/readline.h.
11344 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11345 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11346 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11347 * cli-out.h (cli_display_match_list): Declare.
11348 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11349 (ELLIPSIS_LEN): Ditto.
11350 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11351 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11352 (gdb_fnprint, gdb_print_filename): Ditto.
11353 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11354 (gdb_display_match_list): Ditto.
11355 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11356 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11357 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11358 (match_list_displayer): New struct.
11359 (gdb_display_match_list): Declare.
11360 * top.c (init_main): Set rl_completion_display_matches_hook.
11361 * tui/tui-io.c: #include completer.h.
11362 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11363 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11364 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11365 (tui_mld_getc, tui_mld_read_key): Ditto.
11366 (tui_rl_display_match_list): Rewrite.
11367 (tui_handle_resize_during_io): New arg for_completion. All callers
11368 updated.
11369
f57d2163
DE
113702015-01-31 Doug Evans <xdje42@gmail.com>
11371
11372 Add symbol lookup cache.
11373 * NEWS: Document new options and commands.
11374 * symtab.c (symbol_cache_key): New static global.
11375 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11376 (SYMBOL_LOOKUP_FAILED): New macro.
11377 (symbol_cache_slot_state): New enum.
11378 (block_symbol_cache): New struct.
11379 (symbol_cache): New struct.
11380 (new_symbol_cache_size, symbol_cache_size): New static globals.
11381 (hash_symbol_entry, eq_symbol_entry): New functions.
11382 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11383 (make_symbol_cache, free_symbol_cache): New functions.
11384 (get_symbol_cache, symbol_cache_cleanup): New function.
11385 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11386 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11387 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11388 (symbol_cache_flush, symbol_cache_dump): New functions.
11389 (maintenance_print_symbol_cache): New function.
11390 (maintenance_flush_symbol_cache): New function.
11391 (symbol_cache_stats): New function.
11392 (maintenance_print_symbol_cache_statistics): New function.
11393 (symtab_new_objfile_observer): New function.
11394 (symtab_free_objfile_observer): New function.
11395 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11396 (_initialize_symtab): Init symbol_cache_key. New parameter
11397 maint symbol-cache-size. New maint commands print symbol-cache,
11398 print symbol-cache-statistics, flush-symbol-cache.
11399 Install new_objfile, free_objfile observers.
11400
e700d1b2
JB
114012015-01-31 Joel Brobecker <brobecker@adacore.com>
11402
11403 PR symtab/17855
11404 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11405 to end.
11406
9f050062
DE
114072015-01-31 Doug Evans <xdje42@gmail.com>
11408
11409 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11410 * auto-load.c: #include ctype.h.
11411 (struct auto_load_pspace_info): Replace member loaded_scripts with
11412 new members loaded_script_files, loaded_script_texts.
11413 (auto_load_pspace_data_cleanup): Update.
11414 (init_loaded_scripts_info): Update.
11415 (get_auto_load_pspace_data_for_loading): Update.
11416 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11417 updated.
11418 (maybe_add_script_text): New function.
11419 (clear_section_scripts): Update.
11420 (source_script_file, execute_script_contents): New functions.
11421 (source_section_scripts): Add support for
11422 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11423 (print_scripts): New function.
11424 (auto_load_info_scripts): Also print inlined scripts.
11425 (maybe_print_unsupported_script_warning): Renamed from
11426 unsupported_script_warning_print. All callers updated.
11427 (maybe_print_script_not_found_warning): Renamed from
11428 script_not_found_warning_print. All callers updated.
11429 * extension-priv.h (struct extension_language_script_ops): New member
11430 objfile_script_executor.
11431 * extension.c (ext_lang_objfile_script_executor): New function.
11432 * extension.h (objfile_script_executor_func): New typedef.
11433 (ext_lang_objfile_script_executor): Declare.
11434 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11435 * guile/guile.c (guile_extension_script_ops): Update.
11436 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11437 * python/python.c (python_extension_script_ops): Update.
11438 (gdbpy_execute_objfile_script): New function.
11439
312809f8
EZ
114402015-01-31 Eli Zaretskii <eliz@gnu.org>
11441
11442 * tui/tui-io.c (tui_expand_tabs): New function.
11443 (tui_puts, tui_redisplay_readline): Expand TABs into the
11444 appropriate number of spaces.
11445 * tui/tui-regs.c: Include tui-io.h.
11446 (tui_register_format): Call tui_expand_tabs to expand TABs into
11447 the appropriate number of spaces.
11448 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11449
b6577aab
DE
114502015-01-30 Doug Evans <dje@google.com>
11451
11452 * NEWS: "info source" command now display producer string if present.
11453 * source.c (source_info): Print producer string if present.
11454
6da58d3e
SM
114552015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11456
11457 * varobj.c (varobj_delete): Fix comment.
11458
837ce252
SM
114592015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11460
11461 * varobj.c (create_child): Modify comment.
11462
b09e2c59
SM
114632015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11464
11465 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11466 parameter.
11467 (ada_name_of_variable): Same.
11468 (ada_path_expr_of_child): Same.
11469 (ada_value_of_variable): Same.
11470 (ada_value_is_changeable_p): Same.
11471 (ada_value_has_mutated): Same.
11472 * c-varobj.c (varobj_is_anonymous_child): Same.
11473 (c_is_path_expr_parent): Same.
11474 (c_number_of_children): Same.
11475 (c_name_of_variable): Same.
11476 (c_path_expr_of_child): Same.
11477 (get_type): Same.
11478 (c_value_of_variable): Same.
11479 (cplus_number_of_children): Same.
11480 (cplus_name_of_variable): Same.
11481 (cplus_path_expr_of_child): Same.
11482 (cplus_value_of_variable): Same.
11483 * jv-varobj.c (java_number_of_children): Same.
11484 (java_name_of_variable): Same.
11485 (java_path_expr_of_child): Same.
11486 (java_value_of_variable): Same.
11487 * varobj.c (number_of_children): Same.
11488 (name_of_variable): Same.
11489 (is_root_p): Same.
11490 (varobj_ensure_python_env): Same.
11491 (varobj_get_objname): Same.
11492 (varobj_get_expression): Same.
11493 (varobj_get_display_format): Same.
11494 (varobj_get_display_hint): Same.
11495 (varobj_has_more): Same.
11496 (varobj_get_thread_id): Same.
11497 (varobj_get_frozen): Same.
11498 (dynamic_varobj_has_child_method): Same.
11499 (varobj_get_gdb_type): Same.
11500 (is_path_expr_parent): Same.
11501 (varobj_default_is_path_expr_parent): Same.
11502 (varobj_get_language): Same.
11503 (varobj_get_attributes): Same.
11504 (varobj_is_dynamic_p): Same.
11505 (varobj_get_child_range): Same.
11506 (varobj_value_has_mutated): Same.
11507 (varobj_get_value_type): Same.
11508 (number_of_children): Same.
11509 (name_of_variable): Same.
11510 (check_scope): Same.
11511 (varobj_editable_p): Same.
11512 (varobj_value_is_changeable_p): Same.
11513 (varobj_floating_p): Same.
11514 (varobj_default_value_is_changeable_p): Same.
11515
2568868e
SM
115162015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11517
11518 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11519 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11520 child->path_expr.
11521 (cplus_path_expr_of_child): Same.
11522
ca83fa81
SM
115232015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11524
11525 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11526 result.
11527 (mi_cmd_var_info_expression): Same.
11528 * varobj.c (varobj_get_expression): Mention in the comment that
11529 the result must by freed by the caller.
11530
afa269ae
SM
115312015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11532
11533 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11534 varobj_get_type.
11535 (varobj_update_one): Same.
11536 * varobj.c (update_type_if_necessary): Free curr_type_str and
11537 new_type_str.
11538 (varobj_get_type): Specify in comment that the result needs to be
11539 freed by the caller.
11540
cd366ee8
DE
115412015-01-29 Doug Evans <dje@google.com>
11542
11543 PR symtab/17890
11544 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11545
38360086
MW
115462015-01-25 Mark Wielaard <mjw@redhat.com>
11547
11548 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11549 * utils.c (producer_is_gcc_ge_4): Likewise.
11550 (producer_is_gcc): New function.
11551 * utils.h (producer_is_gcc): New declaration.
11552
df25ebbd
JB
115532015-01-29 Joel Brobecker <brobecker@adacore.com>
11554
11555 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11556 kind.
11557 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11558 parameter by "addr_stack" parameter.
11559 (resolve_dynamic_range): Replace "addr" parameter by
11560 "stack_addr" parameter. Update function documentation.
11561 Update code accordingly.
11562 (resolve_dynamic_array, resolve_dynamic_union)
11563 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11564 (resolve_dynamic_type): Update code, following the changes made
11565 to resolve_dynamic_type_internal's interface.
11566 * dwarf2loc.h (struct property_addr_info): New.
11567 (dwarf2_evaluate_property): Replace "address" parameter
11568 by "addr_stack" parameter. Adjust function documentation.
11569 (struct dwarf2_offset_baton): New.
11570 (struct dwarf2_property_baton): Update documentation of
11571 field "referenced_type" to be more general. New field
11572 "offset_info" in union data field.
11573 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11574 parameter by "addr_stack" parameter. Adjust code accordingly.
11575 Add support for PROP_ADDR_OFFSET properties.
11576 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11577 DW_AT_data_member_location attributes as well. Use case
11578 statements instead of if/else condition.
11579
4a0ca9ec
JB
115802015-01-29 Joel Brobecker <brobecker@adacore.com>
11581
11582 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11583 Return zero if PARENT_VALUE is NULL and parent_type's
11584 range type is dynamic.
11585
ddb87a81
JB
115862015-01-29 Joel Brobecker <brobecker@adacore.com>
11587
11588 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11589 nonzero if the type's subtype is dynamic.
11590 (resolve_dynamic_range): Also resolve the range's subtype.
11591
3d7ad9b4 115922015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 11593
3d7ad9b4 11594 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
11595 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11596
3a8b707a
DE
115972015-01-27 Doug Evans <dje@google.com>
11598
11599 * NEWS: Mention gdb.Objfile.username.
11600 * python/py-objfile.c (objfpy_get_username): New function.
11601 (objfile_getset): Add "username".
11602
d35b90fb
MW
116032015-01-24 Mark Wielaard <mjw@redhat.com>
11604
11605 * stack.c (return_command): Markup warning message with _.
11606
734ae125
DE
116072015-01-24 Doug Evans <xdje42@gmail.com>
11608
11609 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11610
527f3840
JK
116112015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11612
11613 Fix 100x slowdown regression on DWZ files.
11614 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11615 (struct line_header): Add offset and offset_in_dwz.
11616 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11617 (free_line_header_voidp): New declaration.
11618 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11619 functions.
11620 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11621 (handle_DW_AT_stmt_list): Use line_header_hash.
11622 (free_line_header_voidp): New function.
11623 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11624 (dwarf_decode_lines): New parameter decode_mapping, use it.
11625 (dwarf2_free_objfile): Free line_header_hash.
11626
f7e5394d
SM
116272015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11628
11629 PR gdb/17416
11630 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11631 value_ind.
11632
743649fd
MW
116332015-01-15 Mark Wielaard <mjw@redhat.com>
11634
11635 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11636 DW_AT_noreturn.
11637 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11638 calling_convention an 8 bit bit field.
11639 (TYPE_NO_RETURN): New macro.
11640 * infcmd.c (finish_command): Query if function does not return
11641 normally.
11642 * stack.c (return_command): Likewise.
11643
198297aa
PA
116442015-01-23 Pedro Alves <palves@redhat.com>
11645
11646 * linux-nat.c (linux_is_async_p): New macro.
11647 (linux_nat_is_async_p):
11648 (linux_nat_terminal_inferior): Check whether the target can async
11649 instead of whether it is already async.
11650 (linux_nat_terminal_ours): Don't check whether the target is
11651 async.
11652 (linux_async_pipe): Use linux_is_async_p.
11653
253828f1
JK
116542015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11655
11656 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11657 '-ascending'.
11658 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11659 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11660 Sort tp_array using tp_array_compar.
11661 (_initialize_thread): Extend thread_apply_all_command help.
11662
f0e8c4c5
JK
116632015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11664
11665 * corelow.c (core_open): Call also thread_command.
11666 * gdbthread.h (thread_command): New prototype moved from ...
11667 * thread.c (thread_command): ... here.
11668 (thread_command): Make it global.
11669
03b79603
PA
116702015-01-22 Pedro Alves <palves@redhat.com>
11671
11672 * configure.ac [*mingw32*]: Check $curses_found instead of
11673 $prefer_curses.
11674 * configure: Regenerate.
11675 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11676 HAVE_NCURSES_NCURSES_H checks.
11677
6b8a872f
EZ
116782015-01-22 Eli Zaretskii <eliz@gnu.org>
11679
bbbbffbb 11680 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
11681 fails with the 1st arg NULL, try again with "unknown". Don't test
11682 the "cup" capability: it isn't supported by the Windows port of
11683 ncurses, but the Windows console driver is still capable of
11684 supporting TUI.
11685
4b62a76e
JK
116862015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11687
11688 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11689
82a864f9
EZ
116902015-01-22 Eli Zaretskii <eliz@gnu.org>
11691
11692 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11693 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11694 reason that "make TAGS" is broken.
11695
b35018fd
CG
116962015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11697
11698 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11699 and check additional store instructions.
11700
ffbc4646
WW
117012015-01-21 Wei-cheng Wang <cole945@gmail.com>
11702
11703 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11704
ddeca1df
WW
117052015-01-21 Wei-cheng Wang <cole945@gmail.com>
11706
11707 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11708 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11709 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11710 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11711 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11712 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11713 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11714 ppc_process_record_op19, ppc_process_record_op31,
11715 ppc_process_record_op59, ppc_process_record_op60,
11716 ppc_process_record_op63): Likewise.
11717
049bb5de
JB
117182015-01-20 Joel Brobecker <brobecker@adacore.com>
11719
11720 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11721 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11722 strerror.
11723
42b87c63 117242015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
11725
11726 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11727 ppc_process_record_op31, ppc_process_record_op59,
11728 ppc_process_record_op60, ppc_process_record_op63,
11729 ppc_process_record): Fix -Wformat warning.
11730 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11731 Remove unused variables.
11732
569340fc
CG
117332015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11734
11735 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11736
63413d85
EZ
117372015-01-19 Eli Zaretskii <eliz@gnu.org>
11738
11739 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11740 CONFIG_OBS if not building with a curses library.
11741 * configure: Regenerate.
11742
11743 * windows-termcap.c: Include defs.h. Make the whole body empty if
11744 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11745 HAVE_NCURSES_NCURSES_H is defined.
11746
16d8013c
JB
117472015-01-19 Joel Brobecker <brobecker@adacore.com>
11748
11749 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11750 from end of line to start of next line.
11751
cf90fd9a
WW
117522015-01-17 Wei-cheng Wang <cole945@gmail.com>
11753
11754 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11755 Scan PLT stub backward for reverse debugging.
11756 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11757
b4cdae6f
WW
117582015-01-17 Wei-cheng Wang <cole945@gmail.com>
11759 Ulrich Weigand <uweigand@de.ibm.com>
11760
11761 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11762 gdb_target_obs.
11763 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11764 record.
11765 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11766 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11767 (ppc_linux_init_abi): Set process_record, process_record_signal.
11768 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11769 ppc_linux_record_tdep to gdbarch_tdep.
11770 (ppc_process_record): New declaration.
11771 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11772 ppc_process_record_op19, ppc_process_record_op31,
11773 ppc_process_record_op59, ppc_process_record_op60,
11774 ppc_process_record_op63, ppc_process_record): New functions.
11775
2608dbf8
WW
117762015-01-17 Wei-cheng Wang <cole945@gmail.com>
11777
11778 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11779 rs6000_in_function_epilogue_frame_p and add an argument
11780 for frame_info.
11781 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11782 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11783 New functions.
11784 (rs6000_epilogue_frame_unwind): New.
11785 (rs6000_gdbarch_init): Append epilogue unwinder.
11786
4c347be6
SDJ
117872015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11788
11789 * nat/linux-personality.c: Replace "#ifndef
11790 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11791 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11792 systems.
11793
9f2850ba
EZ
117942015-01-16 Eli Zaretskii <eliz@gnu.org>
11795
6cdb25f4
EZ
11796 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11797 functions.
11798 (_initialize_tui_win) <border-kind, border-mode>:
11799 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
11800 (tui_set_tab_width_command): Fix the commentary.
11801
6cdb25f4
EZ
11802 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11803
bf555842
EZ
11804 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11805 Doc fix.
cb86fcc1
EZ
11806 (tui_set_tab_width_command): Delete and recreate the source and
11807 the disassembly windows, to show the effect of the changed tab
11808 size immediately.
bf555842 11809
9f2850ba
EZ
11810 * tui/tui-data.h (LINE_PREFIX): Make shorter
11811 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11812 "Thread NNNNN.XXXX" thread ID notation on Windows.
11813
95761b2d
JK
118142015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11815
11816 Fix gcc-5 compilation.
11817 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11818
8cc73a39
SDJ
118192015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11820
11821 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11822 (linux-personality.o): New rule.
11823 * common/common-defs.h: Include <stdint.h>.
11824 * config/aarch64/linux.mh (NATDEPFILES): Include
11825 linux-personality.o.
11826 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11827 * config/arm/linux.mh (NATDEPFILES): Likewise.
11828 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11829 * config/i386/linux.mh (NATDEPFILES): Likewise.
11830 * config/ia64/linux.mh (NATDEPFILES): Likewise.
11831 * config/m32r/linux.mh (NATDEPFILES): Likewise.
11832 * config/m68k/linux.mh (NATDEPFILES): Likewise.
11833 * config/mips/linux.mh (NATDEPFILES): Likewise.
11834 * config/pa/linux.mh (NATDEPFILES): Likewise.
11835 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11836 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11837 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11838 * config/s390/linux.mh (NATDEPFILES): Likewise.
11839 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11840 * config/sparc/linux.mh (NATDEPFILES): Likewise.
11841 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11842 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11843 * defs.h: Remove #include <stdint.h> (moved to
11844 common/common-defs.h).
11845 * linux-nat.c: Include nat/linux-personality.h. Remove #include
11846 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11847 nat/linux-personality.c).
11848 (linux_nat_create_inferior): Remove code to disable address space
11849 randomization (moved to nat/linux-personality.c). Create cleanup
11850 to disable address space randomization.
11851 * nat/linux-personality.c: New file.
11852 * nat/linux-personality.h: Likewise.
11853
fb23d554
SDJ
118542015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11855
11856 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
11857 common/posix-strerror.c.
11858 (posix-strerror.o): New rule.
11859 (mingw-strerror.o): Likewise.
11860 * common/common-utils.h (safe_strerror): Move prototype to here,
11861 from utils.h.
11862 * common/common.host: New file.
11863 * common/mingw-strerror.c: Likewise.
11864 * common/posix-strerror.c: Likewise.
11865 * configure: Regenerated.
11866 * configure.ac: Source common/common.host. Add variable
11867 common_host_obs to gdb_host_obs.
11868 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
11869 gdb/common/posix-strerror.c when warning about the use of
11870 strerror.
11871 * mingw-hdep.c (safe_strerror): Remove definition; move it to
11872 common/mingw-strerror.c.
11873 * posix-hdep.c (safe_strerror): Remove definition; move it to
11874 common/posix-hdep.c.
11875 * utils.h (safe_strerror): Remove prototype; move to
11876 common/common-utils.h.
11877
3af8af43
JB
118782015-01-15 Joel Brobecker <brobecker@adacore.com>
11879
11880 GDB 7.8.2 released.
11881
bafffb51
JB
118822015-01-15 Joel Brobecker <brobecker@adacore.com>
11883
11884 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
11885 ___XA type if the array has already been fixed.
11886
cdf43629
YQ
118872015-01-14 Yao Qi <yao@codesourcery.com>
11888
11889 * Makefile.in (ppc-linux.o): New rule.
11890 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
11891 * configure.ac: AC_CHECK_FUNCS(getauxval).
11892 * config.in: Re-generated.
11893 * configure: Re-generated.
11894 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
11895 Declare.
11896 * nat/ppc-linux.c: New file.
11897 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
11898 Call ppc64_64bit_inferior_p.
11899
514c5338
YQ
119002015-01-14 Yao Qi <yao@codesourcery.com>
11901
11902 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
11903 nat/ppc-linux.h.
11904 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
11905 (PPC_FEATURE_HAS_DFP): Likewise.
11906 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11907 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11908 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11909 Include "nat/ppc-linux.h".
11910 * nat/ppc-linux.h: New file.
11911 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
11912
5589af0e
PA
119132015-01-14 Pedro Alves <palves@redhat.com>
11914
11915 PR gdb/17525
11916 * breakpoint.c: Include "interps.h".
11917 (bpstat_do_actions_1): Also check whether the interpreter is
11918 async.
11919
6c400b59
PA
119202015-01-14 Pedro Alves <palves@redhat.com>
11921
11922 PR cli/17828
11923 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
11924 reinstall if the interpreter is sync.
11925
e02c96a7
DE
119262015-01-13 Doug Evans <dje@google.com>
11927
11928 * objfiles.c (objfile_filename): New function.
11929 * objfiles.h (objfile_filename): Declare it.
11930 (objfile_name): Add function comment.
11931 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
11932 bfd file name (which may be realpath'd), and the original name.
11933
3b2f13ff
JB
119342015-01-13 Joel Brobecker <brobecker@adacore.com>
11935
11936 * NEWS: Create a new section for the next release branch.
11937 Rename the section of the current branch, now that it has
11938 been cut.
11939
b4cfe7f8
JB
119402015-01-13 Joel Brobecker <brobecker@adacore.com>
11941
11942 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
11943 * version.in: Bump version to 7.9.50.DATE-cvs.
11944
92fc2e69
JB
119452015-01-13 Joel Brobecker <brobecker@adacore.com>
11946
11947 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
11948 Remove trailing new-line in argument of call to warning.
11949
f71f0b0d
JB
119502015-01-13 Joel Brobecker <brobecker@adacore.com>
11951
11952 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
11953 new-line in argument of call to "warning".
11954
04dccad0
JB
119552015-01-13 Joel Brobecker <brobecker@adacore.com>
11956
11957 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
11958 in static block, then try searching for primitive types.
11959
08b13bdd
PP
119602015-01-12 Patrick Palka <patrick@parcs.ath.cx>
11961
11962 * top.h (gdb_add_history): Declare.
11963 * top.c (command_count): New variable.
11964 (gdb_add_history): New function.
11965 (gdb_safe_append_history): New static function.
11966 (quit_force): Call it.
11967 (command_line_input): Use gdb_add_history instead of
11968 add_history.
11969 * event-top.c (command_line_handler): Likewise.
11970
4ac15b59
JC
119712015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
11972
11973 PR gdb/17046
11974 * darwin-nat.c: Replace <machine/setjmp.h> #include by
11975 <setjmp.h> #include.
11976
005e54bb
DE
119772015-01-11 Doug Evans <xdje42@gmail.com>
11978
11979 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
11980
439250fb
DE
119812015-01-11 Doug Evans <xdje42@gmail.com>
11982
11983 PR gdb/15830
11984 * NEWS: The "maint demangle" command is renamed as "demangle".
11985 * demangle.c: #include cli/cli-utils.h, language.h.
11986 (demangle_command): New function.
11987 (_initialize_demangle): Add new command "demangle".
11988 * maint.c (maintenance_demangle): Stub out.
11989 (_initialize_maint_cmds): Update help text for "maint demangle",
11990 and mark as deprecated.
11991
ebf3aa72
MK
119922015-01-11 Mark Kettenis <kettenis@gnu.org>
11993
11994 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
11995 inferior_thread is a function.
11996
6bf045cd
PP
119972015-01-09 Patrick Palka <patrick@parcs.ath.cx>
11998
11999 * Makefile.in (.y.c): Don't munge yacc's #line
12000 directives.
12001
588dcc3e
PP
120022015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12003
12004 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12005 to prompt for input.
12006 * tui/tui-hooks.c (tui_query_hook): Remove.
12007 (tui_install_hooks): Don't set deprecated_query_hook.
12008 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12009 height calculation. Always update the command window's cur_line.
12010
9c02b525
PA
120112015-01-09 Pedro Alves <palves@redhat.com>
12012
12013 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12014 function.
12015 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12016 declaration.
12017 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12018 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12019 stop_reason.
12020 (check_stopped_by_watchpoint): New function.
12021 (save_sigtrap): Reimplement.
12022 (linux_nat_stopped_by_watchpoint): Adjust.
12023 (linux_nat_lp_status_is_event): Delete.
12024 (stop_wait_callback): Only call save_sigtrap after storing the
12025 pending status.
12026 (status_callback): If the thread had been stopped for a breakpoint
12027 that has since been removed, discard the event and resume the LWP.
12028 (count_events_callback, select_event_lwp_callback): Use
12029 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12030 (cancel_breakpoint): Rename to ...
12031 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12032 stopped for a software breakpoint or hardware breakpoint.
12033 (select_event_lwp): Only give preference to the stepping LWP in
12034 all-stop mode. Adjust comments.
12035 (stop_and_resume_callback): Remove references to new_pending_p.
12036 (linux_nat_filter_event): Likewise. Leave exit events of the
12037 leader thread pending here. Handle signal short circuiting here.
12038 Only call save_sigtrap after storing the pending waitstatus.
12039 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12040 new_pending. Don't handle leaving events the caller is not
12041 interested in pending here, nor handle signal short-circuiting
12042 here. Also give equal priority to all LWPs that have had events
12043 in non-stop mode. If reporting a software breakpoint event,
12044 unadjust the LWP's PC.
12045 * linux-nat.h (enum lwp_stop_reason): New.
12046 (struct lwp_info) <stop_pc>: New field.
12047 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12048 (struct lwp_info) <stop_reason>: New field.
12049 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12050
8af756ef
PA
120512015-01-09 Pedro Alves <palves@redhat.com>
12052
12053 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12054 Set the LWP's 'resumed' flag.
12055
8a99810d
PA
120562015-01-09 Pedro Alves <palves@redhat.com>
12057
12058 * linux-nat.c (linux_resume_one_lwp): New function.
12059 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12060 (linux_nat_resume): Use lwp_status_pending_p and
12061 linux_resume_one_lwp.
12062 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12063 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12064 (status_callback, running_callback): Use lwp_status_pending_p.
12065 (lwp_status_pending_p): New function.
12066 (stop_and_resume_callback): Use lwp_status_pending_p.
12067 (linux_nat_filter_event): Use linux_resume_one_lwp.
12068 (linux_nat_wait_1): Always use status_callback to look for an LWP
12069 with a pending status. Use linux_resume_one_lwp.
12070 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12071 linux_resume_one_lwp.
12072
f7ce857f
PA
120732015-01-09 Pedro Alves <palves@redhat.com>
12074
12075 * breakpoint.c (bp_location_inserted_here_p): New function,
12076 factored out from ...
12077 (breakpoint_inserted_here_p): ... here. Use
12078 ALL_BP_LOCATIONS_AT_ADDR.
12079 (software_breakpoint_inserted_here_p): Use
12080 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12081
c1a747c1
PA
120822014-01-09 Pedro Alves <palves@redhat.com>
12083
12084 Skip enabling event reporting if the kernel supports
12085 PTRACE_EVENT_CLONE.
12086 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12087 (thread_db_use_events): New function.
12088 (try_thread_db_load_1): Check thread_db_use_events before enabling
12089 event reporting.
12090 (update_thread_state): New function.
12091 (attach_thread): Use it. Check thread_db_use_events before
12092 enabling event reporting.
12093 (thread_db_detach): Check thread_db_use_events before disabling
12094 event reporting.
12095 (find_new_threads_callback): Check thread_db_use_events before
12096 enabling event reporting. Update the thread's state if not using
12097 libthread_db events.
12098
a33e3959
PA
120992015-01-09 Pedro Alves <palves@redhat.com>
12100
12101 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12102 about to wait for is > 0.
12103 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12104 the kernel thread ID is -1.
12105
8784d563
PA
121062015-01-09 Pedro Alves <palves@redhat.com>
12107
12108 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12109 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12110 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12111 ptrace option flags.
12112 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12113 field.
12114 * nat/linux-procfs.c: Include <dirent.h>.
12115 (linux_proc_get_int): New parameter "warn". Handle it.
12116 (linux_proc_get_tgid): Adjust.
12117 (linux_proc_get_tracerpid): Rename to ...
12118 (linux_proc_get_tracerpid_nowarn): ... this.
12119 (linux_proc_pid_get_state): New function, factored out from
12120 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12121 and handle it.
12122 (linux_proc_pid_is_gone): New function.
12123 (linux_proc_pid_is_stopped): Adjust.
12124 (linux_proc_pid_is_zombie_maybe_warn)
12125 (linux_proc_pid_is_zombie_nowarn): New functions.
12126 (linux_proc_pid_is_zombie): Use
12127 linux_proc_pid_is_zombie_maybe_warn.
12128 (linux_proc_attach_tgid_threads): New function.
12129 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12130 (linux_proc_get_tracerpid): Rename to ...
12131 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12132 (linux_proc_pid_is_gone): New declaration.
12133 (linux_proc_pid_is_zombie): Update comment.
12134 (linux_proc_pid_is_zombie_nowarn): New declaration.
12135 (linux_proc_attach_lwp_func): New typedef.
12136 (linux_proc_attach_tgid_threads): New declaration.
12137 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12138 use nowarn functions.
12139 (linux_ptrace_attach_fail_reason_string): Move here from
12140 gdbserver/linux-low.c and rename.
12141 (ptrace_supports_feature): If the current ptrace options are not
12142 known yet, check them now, instead of asserting.
12143 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12144 Declare.
12145
883ed13e
PA
121462015-01-09 Pedro Alves <palves@redhat.com>
12147
12148 * linux-thread-db.c (thread_db_find_new_threads_silently)
12149 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12150 (find_new_threads_once): Print debug output on gdb_stdlog.
12151
1710aab8
CG
121522015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12153 Pedro Alves <palves@redhat.com>
12154
12155 * compile/compile.c: Include "gdb_wait.h".
12156 (do_rmdir): Check return value, and free 'zap'.
12157
b597c318
YQ
121582015-01-08 Pedro Alves <palves@redhat.com>
12159 Yao Qi <yao@codesourcery.com>
12160
12161 * dwarf2loc.c (indirect_pieced_value): Don't call
12162 gdb_sign_extend. Call extract_signed_integer instead.
12163 * utils.c (gdb_sign_extend): Remove.
12164 * utils.h (gdb_sign_extend): Remove declaration.
12165
025ac414
PM
121662015-01-07 Pierre Muller <muller@sourceware.org>
12167
12168 PR symtab/17811
12169 * stabsread.c (define_symbol): Set language for C++ special symbols.
12170
fa5af12a
PP
121712015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12172
12173 * inflow.c (initial_gdb_ttystate): Tweak comment.
12174
ea42d6f8
JB
121752015-01-07 Joel Brobecker <brobecker@adacore.com>
12176
12177 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12178 comment documenting function.
12179
6a06d660
PP
121802015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12181
12182 * terminal.h (set_initial_gdb_ttystate): Declare.
12183 * inflow.c (initial_gdb_ttystate): New static variable.
12184 (set_initial_gdb_ttystate): New setter.
12185 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12186 instead of our current terminal state.
12187 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12188
e810d75b
JB
121892015-01-07 Joel Brobecker <brobecker@adacore.com>
12190
12191 * guile/scm-type.c (tyscm_array_1): Add comment.
12192 * python/py-type.c (typy_array_1): Add comment.
12193
fce10a84
JB
121942015-01-06 Joel Brobecker <brobecker@adacore.com>
12195
12196 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12197 error if N2 is equal to N1 - 1.
12198
8503d6e1
JB
121992015-01-06 Joel Brobecker <brobecker@adacore.com>
12200
12201 * python/py-type.c (typy_array_1): Do not raise negative-length
12202 exception if N2 is equal to N1 - 1.
12203
4d29c0a8
DE
122042015-01-03 Doug Evans <xdje42@gmail.com>
12205
12206 * c-exp.y: Whitespace cleanup.
12207 (classify_inner_name): Remove extra ;.
12208
eaa6a9a4
MR
122092015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12210
12211 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12212 offset signed.
12213
02fe9972
DE
122142015-01-02 Doug Evans <dje@google.com>
12215
12216 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12217
e2ada9cb
DE
122182015-01-02 Doug Evans <dje@google.com>
12219
12220 * symtab.h (struct symbol): Fix typo in comment.
12221
32d0add0
JB
122222015-01-01 Joel Brobecker <brobecker@adacore.com>
12223
12224 Update year range in copyright notice of all files.
12225
76f2b779
JB
122262015-01-01 Joel Brobecker <brobecker@adacore.com>
12227
12228 * top.c (print_gdb_version): Update copyright year to 2015.
12229
077309e2 122302015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12231
077309e2 12232 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12233
077309e2 12234For older changes see ChangeLog-2014.
c906108c
SS
12235\f
12236Local Variables:
12237mode: change-log
12238left-margin: 8
12239fill-column: 74
12240version-control: never
57da7796 12241coding: utf-8
c906108c 12242End:
This page took 2.301404 seconds and 4 git commands to generate.