FT32: define macros for instruction recognition.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bc84451b
SM
12015-09-26 Simon Marchi <simark@nova.polymtl.ca>
2
3 * btrace.c (parse_xml_btrace_block): Fix cast of
4 xml_find_attribute's return value.
5 * memory-map.c (memory_map_start_memory): Likewise.
6 * solib-svr4.c (library_list_start_library): Likewise.
7 * solib-target.c (library_list_start_segment): Likewise.
8 (library_list_start_section): Likewise.
9 * tracepoint.c (traceframe_info_start_memory): Likewise.
10
ba587d55
IB
112015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
12
13 * d-namespace.c (d_lookup_symbol): New arg langdef.
14 All callers updated. Support looking up symbol as a primitive type.
15 (lookup_module_scope): New arg langdef. All callers updated.
16 Call d_lookup_symbol directly for simple bare symbols.
17
19ba03f4
SM
182015-09-25 Simon Marchi <simon.marchi@ericsson.com>
19
20 * macrocmd.c (print_macro_callback): Add cast(s).
21 * macrotab.c (macro_bcache_str): Likewise.
22 (new_macro_definition): Likewise.
23 * main.c (captured_main): Likewise.
24 * maint.c (print_bfd_section_info): Likewise.
25 * mdebugread.c (mdebug_build_psymtabs): Likewise.
26 (basic_type): Likewise.
27 * memattr.c (mem_region_cmp): Likewise.
28 * memory-map.c (memory_map_start_memory): Likewise.
29 (memory_map_end_memory): Likewise.
30 (memory_map_start_property): Likewise.
31 (memory_map_end_property): Likewise.
32 (clear_result): Likewise.
33 * memrange.c (compare_mem_ranges): Likewise.
34 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
35 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
36 * mi/mi-console.c (mi_console_file_delete): Likewise.
37 (mi_console_file_fputs): Likewise.
38 (mi_console_raw_packet): Likewise.
39 (mi_console_file_flush): Likewise.
40 (mi_console_set_raw): Likewise.
41 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
42 (mi_new_thread): Likewise.
43 (mi_thread_exit): Likewise.
44 (mi_record_changed): Likewise.
45 (mi_inferior_added): Likewise.
46 (mi_inferior_appeared): Likewise.
47 (mi_inferior_exit): Likewise.
48 (mi_inferior_removed): Likewise.
49 (mi_interp_data): Likewise.
50 (mi_on_normal_stop): Likewise.
51 (mi_traceframe_changed): Likewise.
52 (mi_tsv_created): Likewise.
53 (mi_tsv_deleted): Likewise.
54 (mi_tsv_modified): Likewise.
55 (mi_breakpoint_created): Likewise.
56 (mi_breakpoint_deleted): Likewise.
57 (mi_breakpoint_modified): Likewise.
58 (mi_output_running_pid): Likewise.
59 (mi_inferior_count): Likewise.
60 (mi_solib_loaded): Likewise.
61 (mi_solib_unloaded): Likewise.
62 (mi_command_param_changed): Likewise.
63 (mi_memory_changed): Likewise.
64 (report_initial_inferior): Likewise.
65 (mi_ui_out): Likewise.
66 (mi_set_logging): Likewise.
67 * mi/mi-main.c (collect_cores): Likewise.
68 (print_one_inferior): Likewise.
69 (free_vector_of_ints): Likewise.
70 (free_splay_tree): Likewise.
71 (mi_execute_command): Likewise.
72 * mi/mi-out.c (mi_table_body): Likewise.
73 (mi_table_end): Likewise.
74 (mi_table_header): Likewise.
75 (mi_begin): Likewise.
76 (mi_end): Likewise.
77 (mi_field_int): Likewise.
78 (mi_field_string): Likewise.
79 (mi_field_fmt): Likewise.
80 (mi_flush): Likewise.
81 (mi_redirect): Likewise.
82 (field_separator): Likewise.
83 (mi_open): Likewise.
84 (mi_close): Likewise.
85 (mi_out_buffered): Likewise.
86 (mi_out_rewind): Likewise.
87 (mi_out_put): Likewise.
88 (mi_version): Likewise.
89 (mi_out_data_dtor): Likewise.
90 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
91 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
92 * minidebug.c (lzma_open): Likewise.
93 (lzma_pread): Likewise.
94 (lzma_close): Likewise.
95 (lzma_stat): Likewise.
96 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
97 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
98 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
99 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
100 (mips_micro_frame_cache): Likewise.
101 (mips_insn32_frame_cache): Likewise.
102 (mips_stub_frame_cache): Likewise.
103 (gdb_print_insn_mips): Likewise.
104 (value_of_mips_user_reg): Likewise.
105 (mips_gdbarch_init): Likewise.
106 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
107 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
108 (mipsnbsd_supply_gregset): Likewise.
109 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
110 (am33_collect_gregset_method): Likewise.
111 (am33_collect_fpregset_method): Likewise.
112 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
113 * moxie-tdep.c (moxie_frame_cache): Likewise.
114 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
115 (msp430_analyze_frame_prologue): Likewise.
116 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
117 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
118 (nios2_collect_gregset): Likewise.
119 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
120 (nios2_stub_frame_cache): Likewise.
121 * objc-lang.c (find_methods): Likewise.
122 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
123 (get_objfile_pspace_data): Likewise.
124 (get_objfile_bfd_data): Likewise.
125 (objfile_bfd_data_free): Likewise.
126 (add_to_objfile_sections): Likewise.
127 (do_free_objfile_cleanup): Likewise.
128 (resume_section_map_updates_cleanup): Likewise.
129 * opencl-lang.c (builtin_opencl_type): Likewise.
130 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
131 * osdata.c (osdata_start_osdata): Likewise.
132 (osdata_start_item): Likewise.
133 (osdata_start_column): Likewise.
134 (osdata_end_column): Likewise.
135 (clear_parsing_data): Likewise.
136 (osdata_free_cleanup): Likewise.
137 * parse.c (type_stack_cleanup): Likewise.
138 (exp_uses_objfile_iter): Likewise.
139 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
140 (ppc_linux_collect_gregset): Likewise.
141 (ppu2spu_prev_arch): Likewise.
142 (ppu2spu_this_id): Likewise.
143 (ppu2spu_prev_register): Likewise.
144 (ppu2spu_unwind_register): Likewise.
145 (ppu2spu_sniffer): Likewise.
146 (ppu2spu_dealloc_cache): Likewise.
147 (ppc_linux_init_abi): Likewise.
148 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
149 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
150 * progspace.c (restore_program_space): Likewise.
151 * psymtab.c (find_pc_sect_psymtab): Likewise.
152 (compare_psymbols): Likewise.
153 (psymbol_bcache_full): Likewise.
154 (allocate_psymtab): Likewise.
155 (discard_psymtabs_upto): Likewise.
156 * python/py-block.c (set_block): Likewise.
157 (del_objfile_blocks): Likewise.
158 * python/py-breakpoint.c (build_bp_list): Likewise.
159 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
160 (build_inferior_list): Likewise.
161 (py_free_inferior): Likewise.
162 * python/py-objfile.c (py_free_objfile): Likewise.
163 (objfile_to_objfile_object): Likewise.
164 * python/py-prettyprint.c (py_restore_tstate): Likewise.
165 * python/py-progspace.c (py_free_pspace): Likewise.
166 (pspace_to_pspace_object): Likewise.
167 * python/py-symbol.c (set_symbol): Likewise.
168 (del_objfile_symbols): Likewise.
169 * python/py-symtab.c (set_sal): Likewise.
170 (set_symtab): Likewise.
171 (del_objfile_symtab): Likewise.
172 (del_objfile_sal): Likewise.
173 * python/py-type.c (save_objfile_types): Likewise.
174 (set_type): Likewise.
175 * python/py-unwind.c (pyuw_prev_register): Likewise.
176 (pyuw_on_new_gdbarch): Likewise.
177 * python/py-utils.c (py_decref): Likewise.
178 (py_xdecref): Likewise.
179 (gdb_py_generic_dict): Likewise.
180 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
181 (gdbpy_clone_xmethod_worker_data): Likewise.
182 (gdbpy_get_xmethod_arg_types): Likewise.
183 (gdbpy_get_xmethod_result_type): Likewise.
184 (gdbpy_invoke_xmethod): Likewise.
185 * python/python.c (gdbpy_apply_type_printers): Likewise.
186 (gdbpy_free_type_printers): Likewise.
187 * record-btrace.c (record_btrace_disable_callback): Likewise.
188 (bfcache_hash): Likewise.
189 (bfcache_eq): Likewise.
190 (btrace_get_frame_function): Likewise.
191 (record_btrace_frame_unwind_stop_reason): Likewise.
192 (record_btrace_frame_this_id): Likewise.
193 (record_btrace_frame_prev_register): Likewise.
194 (record_btrace_frame_dealloc_cache): Likewise.
195 * record-full.c (record_full_message_wrapper): Likewise.
196 (record_full_save_cleanups): Likewise.
197 * regcache.c (regcache_descr): Likewise.
198 (do_regcache_xfree): Likewise.
199 (do_regcache_invalidate): Likewise.
200 (do_cooked_read): Likewise.
201 (regcache_transfer_regset): Likewise.
202 * reggroups.c (reggroup_add): Likewise.
203 (reggroup_next): Likewise.
204 (reggroup_prev): Likewise.
205 * remote-fileio.c (do_remote_fileio_request): Likewise.
206 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
207 (do_notif_event_xfree): Likewise.
208 * remote.c (get_remote_arch_state): Likewise.
209 (remote_pspace_data_cleanup): Likewise.
210 (get_remote_exec_file): Likewise.
211 (set_pspace_remote_exec_file): Likewise.
212 (compare_pnums): Likewise.
213 (clear_threads_listing_context): Likewise.
214 (remote_newthread_step): Likewise.
215 (start_thread): Likewise.
216 (end_thread): Likewise.
217 (remove_child_of_pending_fork): Likewise.
218 (remove_stop_reply_for_inferior): Likewise.
219 (remove_stop_reply_of_remote_state): Likewise.
220 (remote_notif_remove_once_on_match): Likewise.
221 (stop_reply_match_ptid_and_ws): Likewise.
222 (kill_child_of_pending_fork): Likewise.
223 (register_remote_g_packet_guess): Likewise.
224 (remote_read_description_p): Likewise.
225 (remote_read_description): Likewise.
226 (free_actions_list_cleanup_wrapper): Likewise.
227 (remote_async_serial_handler): Likewise.
228 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
229 (rl78_analyze_frame_prologue): Likewise.
230 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
231 (ppc_supply_fpregset): Likewise.
232 (ppc_supply_vsxregset): Likewise.
233 (ppc_supply_vrregset): Likewise.
234 (ppc_collect_gregset): Likewise.
235 (ppc_collect_fpregset): Likewise.
236 (ppc_collect_vsxregset): Likewise.
237 (ppc_collect_vrregset): Likewise.
238 (e500_move_ev_register): Likewise.
239 (do_regcache_raw_write): Likewise.
240 (rs6000_frame_cache): Likewise.
241 (rs6000_epilogue_frame_cache): Likewise.
242 (rs6000_gdbarch_init): Likewise.
243 * rx-tdep.c (rx_get_opcode_byte): Likewise.
244 (rx_analyze_frame_prologue): Likewise.
245 (rx_frame_type): Likewise.
246 (rx_frame_sniffer_common): Likewise.
247 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
248 (s390_frame_unwind_cache): Likewise.
249 (s390_stub_frame_unwind_cache): Likewise.
250 (s390_sigtramp_frame_unwind_cache): Likewise.
251 * score-tdep.c (score_make_prologue_cache): Likewise.
252 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
253 (sentinel_frame_prev_arch): Likewise.
254 * ser-base.c (fd_event): Likewise.
255 (push_event): Likewise.
256 (ser_base_write): Likewise.
257 * ser-pipe.c (pipe_close): Likewise.
258 * serial.c (serial_write): Likewise.
259 * sh-tdep.c (sh_frame_cache): Likewise.
260 (sh_stub_this_id): Likewise.
261 * sh64-tdep.c (sh64_frame_cache): Likewise.
262 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
263 (library_list_start_library): Likewise.
264 (library_list_start_list): Likewise.
265 (solib_aix_free_library_list): Likewise.
266 * solib-darwin.c (get_darwin_info): Likewise.
267 * solib-dsbt.c (get_dsbt_info): Likewise.
268 * solib-spu.c (append_ocl_sos): Likewise.
269 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
270 (get_svr4_info): Likewise.
271 (library_list_start_library): Likewise.
272 (svr4_library_list_start_list): Likewise.
273 (hash_probe_and_action): Likewise.
274 (equal_probe_and_action): Likewise.
275 (svr4_update_solib_event_breakpoint): Likewise.
276 (set_solib_svr4_fetch_link_map_offsets): Likewise.
277 (svr4_fetch_link_map_offsets): Likewise.
278 (svr4_have_link_map_offsets): Likewise.
279 * solib-target.c (library_list_start_segment): Likewise.
280 (library_list_start_section): Likewise.
281 (library_list_start_library): Likewise.
282 (library_list_end_library): Likewise.
283 (library_list_start_list): Likewise.
284 (solib_target_free_library_list): Likewise.
285 * solib.c (solib_ops): Likewise.
286 (set_solib_ops): Likewise.
287 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
288 * sparc-tdep.c (sparc_frame_cache): Likewise.
289 (sparc32_frame_cache): Likewise.
290 (sparc32_supply_gregset): Likewise.
291 (sparc32_collect_gregset): Likewise.
292 (sparc32_supply_fpregset): Likewise.
293 (sparc32_collect_fpregset): Likewise.
294 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
295 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
296 (sparc64_collect_gregset): Likewise.
297 (sparc64_supply_fpregset): Likewise.
298 (sparc64_collect_fpregset): Likewise.
299 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
300 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
301 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
302 (sparc64obsd_trapframe_cache): Likewise.
303 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
304 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
305 * spu-multiarch.c (spu_gdbarch): Likewise.
306 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
307 (spu2ppu_prev_arch): Likewise.
308 (spu2ppu_this_id): Likewise.
309 (spu2ppu_prev_register): Likewise.
310 (spu2ppu_dealloc_cache): Likewise.
311 (spu_dis_asm_print_address): Likewise.
312 (gdb_print_insn_spu): Likewise.
313 (spu_get_overlay_table): Likewise.
314 * stabsread.c (rs6000_builtin_type): Likewise.
315 * stack.c (do_print_variable_and_value): Likewise.
316 * stap-probe.c (get_stap_base_address_1): Likewise.
317 * symfile-debug.c (debug_qf_has_symbols): Likewise.
318 (debug_qf_find_last_source_symtab): Likewise.
319 (debug_qf_forget_cached_source_info): Likewise.
320 (debug_qf_map_symtabs_matching_filename): Likewise.
321 (debug_qf_lookup_symbol): Likewise.
322 (debug_qf_print_stats): Likewise.
323 (debug_qf_dump): Likewise.
324 (debug_qf_relocate): Likewise.
325 (debug_qf_expand_symtabs_for_function): Likewise.
326 (debug_qf_expand_all_symtabs): Likewise.
327 (debug_qf_expand_symtabs_with_fullname): Likewise.
328 (debug_qf_map_matching_symbols): Likewise.
329 (debug_qf_expand_symtabs_matching): Likewise.
330 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
331 (debug_qf_map_symbol_filenames): Likewise.
332 (debug_sym_get_probes): Likewise.
333 (debug_sym_new_init): Likewise.
334 (debug_sym_init): Likewise.
335 (debug_sym_read): Likewise.
336 (debug_sym_read_psymbols): Likewise.
337 (debug_sym_finish): Likewise.
338 (debug_sym_offsets): Likewise.
339 (debug_sym_read_linetable): Likewise.
340 (debug_sym_relocate): Likewise.
341 (uninstall_symfile_debug_logging): Likewise.
342 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
343 * symfile.c (place_section): Likewise.
344 (add_section_size_callback): Likewise.
345 (load_progress): Likewise.
346 (load_section_callback): Likewise.
347 (clear_memory_write_data): Likewise.
348 (allocate_symtab): Likewise.
349 * symmisc.c (maintenance_expand_file_matcher): Likewise.
350 * symtab.c (lookup_symtab_callback): Likewise.
351 (hash_demangled_name_entry): Likewise.
352 (eq_demangled_name_entry): Likewise.
353 (get_symbol_cache): Likewise.
354 (symbol_cache_cleanup): Likewise.
355 (set_symbol_cache_size): Likewise.
356 (symbol_cache_flush): Likewise.
357 (maintenance_print_symbol_cache): Likewise.
358 (maintenance_print_symbol_cache_statistics): Likewise.
359 (delete_filename_seen_cache): Likewise.
360 (output_partial_symbol_filename): Likewise.
361 (search_symbols_file_matches): Likewise.
362 (search_symbols_name_matches): Likewise.
363 (do_free_completion_list): Likewise.
364 (maybe_add_partial_symtab_filename): Likewise.
365 (get_main_info): Likewise.
366 (main_info_cleanup): Likewise.
367 * target-dcache.c (target_dcache_cleanup): Likewise.
368 (target_dcache_init_p): Likewise.
369 (target_dcache_invalidate): Likewise.
370 (target_dcache_get): Likewise.
371 (target_dcache_get_or_init): Likewise.
372 * target-descriptions.c (target_find_description): Likewise.
373 (tdesc_find_type): Likewise.
374 (tdesc_data_cleanup): Likewise.
375 (tdesc_find_arch_register): Likewise.
376 (tdesc_register_name): Likewise.
377 (tdesc_register_type): Likewise.
378 (tdesc_register_reggroup_p): Likewise.
379 (set_tdesc_pseudo_register_name): Likewise.
380 (set_tdesc_pseudo_register_type): Likewise.
381 (set_tdesc_pseudo_register_reggroup_p): Likewise.
382 (tdesc_use_registers): Likewise.
383 (free_target_description): Likewise.
384 * target-memory.c (compare_block_starting_address): Likewise.
385 (cleanup_request_data): Likewise.
386 (cleanup_write_requests_vector): Likewise.
387 * target.c (open_target): Likewise.
388 (cleanup_restore_target_terminal): Likewise.
389 (free_memory_read_result_vector): Likewise.
390 * thread.c (disable_thread_stack_temporaries): Likewise.
391 (finish_thread_state_cleanup): Likewise.
392 (do_restore_current_thread_cleanup): Likewise.
393 (restore_current_thread_cleanup_dtor): Likewise.
394 (set_thread_refcount): Likewise.
395 (tp_array_compar): Likewise.
396 (do_captured_thread_select): Likewise.
397 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
398 (tic6x_stub_this_id): Likewise.
399 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
400 * top.c (do_restore_instream_cleanup): Likewise.
401 (gdb_readline_wrapper_cleanup): Likewise.
402 (kill_or_detach): Likewise.
403 (print_inferior_quit_action): Likewise.
404 * tracefile-tfile.c (match_blocktype): Likewise.
405 (build_traceframe_info): Likewise.
406 * tracefile.c (trace_file_writer_xfree): Likewise.
407 * tracepoint.c (memrange_cmp): Likewise.
408 (do_collect_symbol): Likewise.
409 (do_clear_collection_list): Likewise.
410 (do_restore_current_traceframe_cleanup): Likewise.
411 (restore_current_traceframe_cleanup_dtor): Likewise.
412 (free_current_marker): Likewise.
413 (traceframe_info_start_memory): Likewise.
414 (traceframe_info_start_tvar): Likewise.
415 (free_result): Likewise.
416 * tramp-frame.c (tramp_frame_cache): Likewise.
417 * tui/tui-file.c (tui_file_delete): Likewise.
418 (tui_fileopen): Likewise.
419 (tui_sfileopen): Likewise.
420 (tui_file_isatty): Likewise.
421 (tui_file_rewind): Likewise.
422 (tui_file_put): Likewise.
423 (tui_file_fputs): Likewise.
424 (tui_file_get_strbuf): Likewise.
425 (tui_file_adjust_strbuf): Likewise.
426 (tui_file_flush): Likewise.
427 * tui/tui-layout.c (make_command_window): Likewise.
428 (make_data_window): Likewise.
429 (show_source_disasm_command): Likewise.
430 (show_data): Likewise.
431 (make_source_or_disasm_window): Likewise.
432 (show_source_or_disasm_and_command): Likewise.
433 * tui/tui-out.c (tui_field_int): Likewise.
434 (tui_field_string): Likewise.
435 (tui_field_fmt): Likewise.
436 (tui_text): Likewise.
437 * typeprint.c (hash_typedef_field): Likewise.
438 (eq_typedef_field): Likewise.
439 (do_free_typedef_hash): Likewise.
440 (copy_typedef_hash_element): Likewise.
441 (do_free_global_table): Likewise.
442 (find_global_typedef): Likewise.
443 (find_typedef_in_hash): Likewise.
444 * ui-file.c (ui_file_write_for_put): Likewise.
445 (do_ui_file_xstrdup): Likewise.
446 (mem_file_delete): Likewise.
447 (mem_file_rewind): Likewise.
448 (mem_file_put): Likewise.
449 (mem_file_write): Likewise.
450 (stdio_file_delete): Likewise.
451 (stdio_file_flush): Likewise.
452 (stdio_file_read): Likewise.
453 (stdio_file_write): Likewise.
454 (stdio_file_write_async_safe): Likewise.
455 (stdio_file_fputs): Likewise.
456 (stdio_file_isatty): Likewise.
457 (stdio_file_fseek): Likewise.
458 (tee_file_delete): Likewise.
459 (tee_file_flush): Likewise.
460 (tee_file_write): Likewise.
461 (tee_file_fputs): Likewise.
462 (tee_file_isatty): Likewise.
463 * ui-out.c (do_cleanup_table_end): Likewise.
464 (do_cleanup_end): Likewise.
465 * user-regs.c (user_reg_add): Likewise.
466 (user_reg_map_name_to_regnum): Likewise.
467 (usernum_to_user_reg): Likewise.
468 (maintenance_print_user_registers): Likewise.
469 * utils.c (do_bfd_close_cleanup): Likewise.
470 (do_fclose_cleanup): Likewise.
471 (do_obstack_free): Likewise.
472 (do_ui_file_delete): Likewise.
473 (do_ui_out_redirect_pop): Likewise.
474 (do_free_section_addr_info): Likewise.
475 (restore_integer): Likewise.
476 (do_unpush_target): Likewise.
477 (do_htab_delete_cleanup): Likewise.
478 (do_restore_ui_file): Likewise.
479 (do_value_free): Likewise.
480 (do_free_so): Likewise.
481 (free_current_contents): Likewise.
482 (do_regfree_cleanup): Likewise.
483 (core_addr_hash): Likewise.
484 (core_addr_eq): Likewise.
485 (do_free_char_ptr_vec): Likewise.
486 * v850-tdep.c (v850_frame_cache): Likewise.
487 * varobj.c (do_free_variable_cleanup): Likewise.
488 * vax-tdep.c (vax_supply_gregset): Likewise.
489 (vax_frame_cache): Likewise.
490 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
491 * xml-support.c (gdb_xml_body_text): Likewise.
492 (gdb_xml_values_cleanup): Likewise.
493 (gdb_xml_start_element): Likewise.
494 (gdb_xml_start_element_wrapper): Likewise.
495 (gdb_xml_end_element): Likewise.
496 (gdb_xml_end_element_wrapper): Likewise.
497 (gdb_xml_cleanup): Likewise.
498 (gdb_xml_fetch_external_entity): Likewise.
499 (gdb_xml_parse_attr_enum): Likewise.
500 (xinclude_start_include): Likewise.
501 (xinclude_end_include): Likewise.
502 (xml_xinclude_default): Likewise.
503 (xml_xinclude_start_doctype): Likewise.
504 (xml_xinclude_end_doctype): Likewise.
505 (xml_xinclude_cleanup): Likewise.
506 (xml_fetch_content_from_file): Likewise.
507 * xml-syscall.c (free_syscalls_info): Likewise.
508 (syscall_start_syscall): Likewise.
509 * xml-tdesc.c (tdesc_end_arch): Likewise.
510 (tdesc_end_osabi): Likewise.
511 (tdesc_end_compatible): Likewise.
512 (tdesc_start_target): Likewise.
513 (tdesc_start_feature): Likewise.
514 (tdesc_start_reg): Likewise.
515 (tdesc_start_union): Likewise.
516 (tdesc_start_struct): Likewise.
517 (tdesc_start_flags): Likewise.
518 (tdesc_start_field): Likewise.
519 (tdesc_start_vector): Likewise.
520 (fetch_available_features_from_target): Likewise.
521 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
522 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
523 (xtensa_frame_cache): Likewise.
524 (xtensa_frame_prev_register): Likewise.
525 (xtensa_extract_return_value): Likewise.
526
9a3c8263
SM
5272015-09-25 Simon Marchi <simon.marchi@ericsson.com>
528
529 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
530 (aarch64_make_stub_cache): Likewise.
531 (value_of_aarch64_user_reg): Likewise.
532 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
533 (get_ada_inferior_data): Likewise.
534 (get_ada_pspace_data): Likewise.
535 (ada_pspace_data_cleanup): Likewise.
536 (ada_complete_symbol_matcher): Likewise.
537 (ada_exc_search_name_matches): Likewise.
538 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
539 (get_ada_tasks_inferior_data): Likewise.
540 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
541 (splay_obstack_alloc): Likewise.
542 (splay_obstack_free): Likewise.
543 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
544 (alpha_linux_collect_gregset): Likewise.
545 (alpha_linux_supply_fpregset): Likewise.
546 (alpha_linux_collect_fpregset): Likewise.
547 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
548 * alpha-tdep.c (alpha_lds): Likewise.
549 (alpha_sts): Likewise.
550 (alpha_sigtramp_frame_unwind_cache): Likewise.
551 (alpha_heuristic_frame_unwind_cache): Likewise.
552 (alpha_supply_int_regs): Likewise.
553 (alpha_fill_int_regs): Likewise.
554 (alpha_supply_fp_regs): Likewise.
555 (alpha_fill_fp_regs): Likewise.
556 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
557 (alphanbsd_aout_supply_gregset): Likewise.
558 (alphanbsd_supply_gregset): Likewise.
559 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
560 (amd64_x32_linux_init_abi): Likewise.
561 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
562 (amd64_collect_native_gregset): Likewise.
563 * amd64-tdep.c (amd64_frame_cache): Likewise.
564 (amd64_sigtramp_frame_cache): Likewise.
565 (amd64_epilogue_frame_cache): Likewise.
566 (amd64_supply_fxsave): Likewise.
567 (amd64_supply_xsave): Likewise.
568 (amd64_collect_fxsave): Likewise.
569 (amd64_collect_xsave): Likewise.
570 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
571 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
572 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
573 (arm_linux_collect_gregset): Likewise.
574 (arm_linux_supply_nwfpe): Likewise.
575 (arm_linux_collect_nwfpe): Likewise.
576 (arm_linux_supply_vfp): Likewise.
577 (arm_linux_collect_vfp): Likewise.
578 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
579 (arm_prologue_unwind_stop_reason): Likewise.
580 (arm_prologue_this_id): Likewise.
581 (arm_prologue_prev_register): Likewise.
582 (arm_exidx_data_free): Likewise.
583 (arm_find_exidx_entry): Likewise.
584 (arm_stub_this_id): Likewise.
585 (arm_m_exception_this_id): Likewise.
586 (arm_m_exception_prev_register): Likewise.
587 (arm_normal_frame_base): Likewise.
588 (gdb_print_insn_arm): Likewise.
589 (arm_objfile_data_free): Likewise.
590 (arm_record_special_symbol): Likewise.
591 (value_of_arm_user_reg): Likewise.
592 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
593 (armbsd_supply_gregset): Likewise.
594 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
595 (get_auto_load_pspace_data): Likewise.
596 (hash_loaded_script_entry): Likewise.
597 (eq_loaded_script_entry): Likewise.
598 (clear_section_scripts): Likewise.
599 (collect_matching_scripts): Likewise.
600 * auxv.c (auxv_inferior_data_cleanup): Likewise.
601 (get_auxv_inferior_data): Likewise.
602 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
603 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
604 * bfd-target.c (target_bfd_xfer_partial): Likewise.
605 (target_bfd_xclose): Likewise.
606 (target_bfd_get_section_table): Likewise.
607 * bfin-tdep.c (bfin_frame_cache): Likewise.
608 * block.c (find_block_in_blockvector): Likewise.
609 (call_site_for_pc): Likewise.
610 (block_find_non_opaque_type_preferred): Likewise.
611 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
612 (signal_catchpoint_remove_location): Likewise.
613 (signal_catchpoint_breakpoint_hit): Likewise.
614 (signal_catchpoint_print_one): Likewise.
615 (signal_catchpoint_print_mention): Likewise.
616 (signal_catchpoint_print_recreate): Likewise.
617 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
618 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
619 (bp_location_compare_addrs): Likewise.
620 (get_first_locp_gte_addr): Likewise.
621 (check_tracepoint_command): Likewise.
622 (do_map_commands_command): Likewise.
623 (get_breakpoint_objfile_data): Likewise.
624 (free_breakpoint_probes): Likewise.
625 (do_captured_breakpoint_query): Likewise.
626 (compare_breakpoints): Likewise.
627 (bp_location_compare): Likewise.
628 (bpstat_remove_breakpoint_callback): Likewise.
629 (do_delete_breakpoint_cleanup): Likewise.
630 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
631 (bsd_uthread_set_collect_uthread): Likewise.
632 (bsd_uthread_activate): Likewise.
633 (bsd_uthread_fetch_registers): Likewise.
634 (bsd_uthread_store_registers): Likewise.
635 * btrace.c (check_xml_btrace_version): Likewise.
636 (parse_xml_btrace_block): Likewise.
637 (parse_xml_btrace_pt_config_cpu): Likewise.
638 (parse_xml_btrace_pt_raw): Likewise.
639 (parse_xml_btrace_pt): Likewise.
640 (parse_xml_btrace_conf_bts): Likewise.
641 (parse_xml_btrace_conf_pt): Likewise.
642 (do_btrace_data_cleanup): Likewise.
643 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
644 * charset.c (cleanup_iconv): Likewise.
645 (do_cleanup_iterator): Likewise.
646 * cli-out.c (cli_uiout_dtor): Likewise.
647 (cli_table_begin): Likewise.
648 (cli_table_body): Likewise.
649 (cli_table_end): Likewise.
650 (cli_table_header): Likewise.
651 (cli_begin): Likewise.
652 (cli_end): Likewise.
653 (cli_field_int): Likewise.
654 (cli_field_skip): Likewise.
655 (cli_field_string): Likewise.
656 (cli_field_fmt): Likewise.
657 (cli_spaces): Likewise.
658 (cli_text): Likewise.
659 (cli_message): Likewise.
660 (cli_wrap_hint): Likewise.
661 (cli_flush): Likewise.
662 (cli_redirect): Likewise.
663 (out_field_fmt): Likewise.
664 (field_separator): Likewise.
665 (cli_out_set_stream): Likewise.
666 * cli/cli-cmds.c (compare_symtabs): Likewise.
667 * cli/cli-dump.c (call_dump_func): Likewise.
668 (restore_section_callback): Likewise.
669 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
670 (do_restore_user_call_depth): Likewise.
671 (do_free_command_lines_cleanup): Likewise.
672 * coff-pe-read.c (get_section_vmas): Likewise.
673 (pe_as16): Likewise.
674 (pe_as32): Likewise.
675 * coffread.c (coff_symfile_read): Likewise.
676 * common/agent.c (agent_look_up_symbols): Likewise.
677 * common/filestuff.c (do_close_cleanup): Likewise.
678 * common/format.c (free_format_pieces_cleanup): Likewise.
679 * common/vec.c (vec_o_reserve): Likewise.
680 * compile/compile-c-support.c (print_one_macro): Likewise.
681 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
682 (eq_symbol_error): Likewise.
683 (del_symbol_error): Likewise.
684 (error_symbol_once): Likewise.
685 (gcc_convert_symbol): Likewise.
686 (gcc_symbol_address): Likewise.
687 (hash_symname): Likewise.
688 (eq_symname): Likewise.
689 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
690 (eq_type_map_instance): Likewise.
691 (insert_type): Likewise.
692 (convert_type): Likewise.
693 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
694 (setup_sections): Likewise.
695 (link_hash_table_free): Likewise.
696 (copy_sections): Likewise.
697 * compile/compile-object-run.c (do_module_cleanup): Likewise.
698 * compile/compile.c (compile_print_value): Likewise.
699 (do_rmdir): Likewise.
700 (cleanup_compile_instance): Likewise.
701 (cleanup_unlink_file): Likewise.
702 * completer.c (free_completion_tracker): Likewise.
703 * corelow.c (add_to_spuid_list): Likewise.
704 * cp-namespace.c (reset_directive_searched): Likewise.
705 * cp-support.c (reset_directive_searched): Likewise.
706 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
707 (cris_frame_unwind_cache): Likewise.
708 * d-lang.c (builtin_d_type): Likewise.
709 * d-namespace.c (reset_directive_searched): Likewise.
710 * dbxread.c (dbx_free_symfile_info): Likewise.
711 (do_free_bincl_list_cleanup): Likewise.
712 * disasm.c (hash_dis_line_entry): Likewise.
713 (eq_dis_line_entry): Likewise.
714 (dis_asm_print_address): Likewise.
715 (fprintf_disasm): Likewise.
716 (do_ui_file_delete): Likewise.
717 * doublest.c (convert_floatformat_to_doublest): Likewise.
718 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
719 (dummy_frame_prev_register): Likewise.
720 (dummy_frame_this_id): Likewise.
721 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
722 (cache_eq): Likewise.
723 (cache_find): Likewise.
724 (tailcall_frame_this_id): Likewise.
725 (dwarf2_tailcall_prev_register_first): Likewise.
726 (tailcall_frame_prev_register): Likewise.
727 (tailcall_frame_dealloc_cache): Likewise.
728 (tailcall_frame_prev_arch): Likewise.
729 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
730 (dwarf2_frame_set_init_reg): Likewise.
731 (dwarf2_frame_init_reg): Likewise.
732 (dwarf2_frame_set_signal_frame_p): Likewise.
733 (dwarf2_frame_signal_frame_p): Likewise.
734 (dwarf2_frame_set_adjust_regnum): Likewise.
735 (dwarf2_frame_adjust_regnum): Likewise.
736 (clear_pointer_cleanup): Likewise.
737 (dwarf2_frame_cache): Likewise.
738 (find_cie): Likewise.
739 (dwarf2_frame_find_fde): Likewise.
740 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
741 (free_dwarf_expr_context_cleanup): Likewise.
742 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
743 (locexpr_get_frame_base): Likewise.
744 (loclist_find_frame_base_location): Likewise.
745 (loclist_get_frame_base): Likewise.
746 (dwarf_expr_dwarf_call): Likewise.
747 (dwarf_expr_get_base_type): Likewise.
748 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
749 (dwarf_expr_get_obj_addr): Likewise.
750 (entry_data_value_coerce_ref): Likewise.
751 (entry_data_value_copy_closure): Likewise.
752 (entry_data_value_free_closure): Likewise.
753 (get_frame_address_in_block_wrapper): Likewise.
754 (dwarf2_evaluate_property): Likewise.
755 (dwarf2_compile_property_to_c): Likewise.
756 (needs_frame_read_addr_from_reg): Likewise.
757 (needs_frame_get_reg_value): Likewise.
758 (needs_frame_frame_base): Likewise.
759 (needs_frame_frame_cfa): Likewise.
760 (needs_frame_tls_address): Likewise.
761 (needs_frame_dwarf_call): Likewise.
762 (needs_dwarf_reg_entry_value): Likewise.
763 (get_ax_pc): Likewise.
764 (locexpr_read_variable): Likewise.
765 (locexpr_read_variable_at_entry): Likewise.
766 (locexpr_read_needs_frame): Likewise.
767 (locexpr_describe_location): Likewise.
768 (locexpr_tracepoint_var_ref): Likewise.
769 (locexpr_generate_c_location): Likewise.
770 (loclist_read_variable): Likewise.
771 (loclist_read_variable_at_entry): Likewise.
772 (loclist_describe_location): Likewise.
773 (loclist_tracepoint_var_ref): Likewise.
774 (loclist_generate_c_location): Likewise.
775 * dwarf2read.c (line_header_hash_voidp): Likewise.
776 (line_header_eq_voidp): Likewise.
777 (dwarf2_has_info): Likewise.
778 (dwarf2_get_section_info): Likewise.
779 (locate_dwz_sections): Likewise.
780 (hash_file_name_entry): Likewise.
781 (eq_file_name_entry): Likewise.
782 (delete_file_name_entry): Likewise.
783 (dw2_setup): Likewise.
784 (dw2_get_file_names_reader): Likewise.
785 (dw2_find_pc_sect_compunit_symtab): Likewise.
786 (hash_signatured_type): Likewise.
787 (eq_signatured_type): Likewise.
788 (add_signatured_type_cu_to_table): Likewise.
789 (create_debug_types_hash_table): Likewise.
790 (lookup_dwo_signatured_type): Likewise.
791 (lookup_dwp_signatured_type): Likewise.
792 (lookup_signatured_type): Likewise.
793 (hash_type_unit_group): Likewise.
794 (eq_type_unit_group): Likewise.
795 (get_type_unit_group): Likewise.
796 (process_psymtab_comp_unit_reader): Likewise.
797 (sort_tu_by_abbrev_offset): Likewise.
798 (process_skeletonless_type_unit): Likewise.
799 (psymtabs_addrmap_cleanup): Likewise.
800 (dwarf2_read_symtab): Likewise.
801 (psymtab_to_symtab_1): Likewise.
802 (die_hash): Likewise.
803 (die_eq): Likewise.
804 (load_full_comp_unit_reader): Likewise.
805 (reset_die_in_process): Likewise.
806 (free_cu_line_header): Likewise.
807 (handle_DW_AT_stmt_list): Likewise.
808 (hash_dwo_file): Likewise.
809 (eq_dwo_file): Likewise.
810 (hash_dwo_unit): Likewise.
811 (eq_dwo_unit): Likewise.
812 (create_dwo_cu_reader): Likewise.
813 (create_dwo_unit_in_dwp_v1): Likewise.
814 (create_dwo_unit_in_dwp_v2): Likewise.
815 (lookup_dwo_unit_in_dwp): Likewise.
816 (dwarf2_locate_dwo_sections): Likewise.
817 (dwarf2_locate_common_dwp_sections): Likewise.
818 (dwarf2_locate_v2_dwp_sections): Likewise.
819 (hash_dwp_loaded_cutus): Likewise.
820 (eq_dwp_loaded_cutus): Likewise.
821 (lookup_dwo_cutu): Likewise.
822 (abbrev_table_free_cleanup): Likewise.
823 (dwarf2_free_abbrev_table): Likewise.
824 (find_partial_die_in_comp_unit): Likewise.
825 (free_line_header_voidp): Likewise.
826 (follow_die_offset): Likewise.
827 (follow_die_sig_1): Likewise.
828 (free_heap_comp_unit): Likewise.
829 (free_stack_comp_unit): Likewise.
830 (dwarf2_free_objfile): Likewise.
831 (per_cu_offset_and_type_hash): Likewise.
832 (per_cu_offset_and_type_eq): Likewise.
833 (get_die_type_at_offset): Likewise.
834 (partial_die_hash): Likewise.
835 (partial_die_eq): Likewise.
836 (dwarf2_per_objfile_free): Likewise.
837 (hash_strtab_entry): Likewise.
838 (eq_strtab_entry): Likewise.
839 (add_string): Likewise.
840 (hash_symtab_entry): Likewise.
841 (eq_symtab_entry): Likewise.
842 (delete_symtab_entry): Likewise.
843 (cleanup_mapped_symtab): Likewise.
844 (add_indices_to_cpool): Likewise.
845 (hash_psymtab_cu_index): Likewise.
846 (eq_psymtab_cu_index): Likewise.
847 (add_address_entry_worker): Likewise.
848 (unlink_if_set): Likewise.
849 (write_one_signatured_type): Likewise.
850 (save_gdb_index_command): Likewise.
851 * elfread.c (elf_symtab_read): Likewise.
852 (elf_gnu_ifunc_cache_hash): Likewise.
853 (elf_gnu_ifunc_cache_eq): Likewise.
854 (elf_gnu_ifunc_record_cache): Likewise.
855 (elf_gnu_ifunc_resolve_by_cache): Likewise.
856 (elf_get_probes): Likewise.
857 (probe_key_free): Likewise.
858 * f-lang.c (builtin_f_type): Likewise.
859 * frame-base.c (frame_base_append_sniffer): Likewise.
860 (frame_base_set_default): Likewise.
861 (frame_base_find_by_frame): Likewise.
862 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
863 (frame_unwind_append_unwinder): Likewise.
864 (frame_unwind_find_by_frame): Likewise.
865 * frame.c (frame_addr_hash): Likewise.
866 (frame_addr_hash_eq): Likewise.
867 (frame_stash_find): Likewise.
868 (do_frame_register_read): Likewise.
869 (unwind_to_current_frame): Likewise.
870 (frame_cleanup_after_sniffer): Likewise.
871 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
872 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
873 * ft32-tdep.c (ft32_frame_cache): Likewise.
874 * gcore.c (do_bfd_delete_cleanup): Likewise.
875 (gcore_create_callback): Likewise.
876 * gdb_bfd.c (hash_bfd): Likewise.
877 (eq_bfd): Likewise.
878 (gdb_bfd_open): Likewise.
879 (free_one_bfd_section): Likewise.
880 (gdb_bfd_ref): Likewise.
881 (gdb_bfd_unref): Likewise.
882 (get_section_descriptor): Likewise.
883 (gdb_bfd_map_section): Likewise.
884 (gdb_bfd_crc): Likewise.
885 (gdb_bfd_mark_parent): Likewise.
886 (gdb_bfd_record_inclusion): Likewise.
887 (gdb_bfd_requires_relocations): Likewise.
888 (print_one_bfd): Likewise.
889 * gdbtypes.c (type_pair_hash): Likewise.
890 (type_pair_eq): Likewise.
891 (builtin_type): Likewise.
892 (objfile_type): Likewise.
893 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
894 (vtable_address_point_offset): Likewise.
895 (gnuv3_get_vtable): Likewise.
896 (hash_value_and_voffset): Likewise.
897 (eq_value_and_voffset): Likewise.
898 (compare_value_and_voffset): Likewise.
899 (compute_vtable_size): Likewise.
900 (gnuv3_get_typeid_type): Likewise.
901 * go-lang.c (builtin_go_type): Likewise.
902 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
903 (bkscm_eq_block_smob): Likewise.
904 (bkscm_objfile_block_map): Likewise.
905 (bkscm_del_objfile_blocks): Likewise.
906 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
907 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
908 (gdbscm_disasm_print_address): Likewise.
909 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
910 (frscm_eq_frame_smob): Likewise.
911 (frscm_inferior_frame_map): Likewise.
912 (frscm_del_inferior_frames): Likewise.
913 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
914 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
915 (ofscm_objfile_smob_from_objfile): Likewise.
916 * guile/scm-ports.c (ioscm_write): Likewise.
917 (ioscm_file_port_delete): Likewise.
918 (ioscm_file_port_rewind): Likewise.
919 (ioscm_file_port_put): Likewise.
920 (ioscm_file_port_write): Likewise.
921 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
922 (psscm_pspace_smob_from_pspace): Likewise.
923 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
924 (scscm_recording_unwind_handler): Likewise.
925 (gdbscm_with_catch): Likewise.
926 (scscm_call_0_body): Likewise.
927 (scscm_call_1_body): Likewise.
928 (scscm_call_2_body): Likewise.
929 (scscm_call_3_body): Likewise.
930 (scscm_call_4_body): Likewise.
931 (scscm_apply_1_body): Likewise.
932 (scscm_eval_scheme_string): Likewise.
933 (gdbscm_safe_eval_string): Likewise.
934 (scscm_source_scheme_script): Likewise.
935 (gdbscm_safe_source_script): Likewise.
936 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
937 (gdbscm_call_scm_from_stringn): Likewise.
938 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
939 (syscm_eq_symbol_smob): Likewise.
940 (syscm_get_symbol_map): Likewise.
941 (syscm_del_objfile_symbols): Likewise.
942 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
943 (stscm_eq_symtab_smob): Likewise.
944 (stscm_objfile_symtab_map): Likewise.
945 (stscm_del_objfile_symtabs): Likewise.
946 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
947 (tyscm_eq_type_smob): Likewise.
948 (tyscm_type_map): Likewise.
949 (tyscm_copy_type_recursive): Likewise.
950 (save_objfile_types): Likewise.
951 * guile/scm-utils.c (extract_arg): Likewise.
952 * h8300-tdep.c (h8300_frame_cache): Likewise.
953 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
954 * hppa-tdep.c (compare_unwind_entries): Likewise.
955 (find_unwind_entry): Likewise.
956 (hppa_frame_cache): Likewise.
957 (hppa_stub_frame_unwind_cache): Likewise.
958 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
959 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
960 (hppaobsd_supply_fpregset): Likewise.
961 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
962 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
963 * i386-tdep.c (i386_frame_cache): Likewise.
964 (i386_epilogue_frame_cache): Likewise.
965 (i386_sigtramp_frame_cache): Likewise.
966 (i386_supply_gregset): Likewise.
967 (i386_collect_gregset): Likewise.
968 (i386_gdbarch_init): Likewise.
969 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
970 (i386obsd_trapframe_cache): Likewise.
971 * i387-tdep.c (i387_supply_fsave): Likewise.
972 (i387_collect_fsave): Likewise.
973 (i387_supply_fxsave): Likewise.
974 (i387_collect_fxsave): Likewise.
975 (i387_supply_xsave): Likewise.
976 (i387_collect_xsave): Likewise.
977 * ia64-tdep.c (ia64_frame_cache): Likewise.
978 (ia64_sigtramp_frame_cache): Likewise.
979 * infcmd.c (attach_command_continuation): Likewise.
980 (attach_command_continuation_free_args): Likewise.
981 * inferior.c (restore_inferior): Likewise.
982 (delete_thread_of_inferior): Likewise.
983 * inflow.c (inflow_inferior_data_cleanup): Likewise.
984 (get_inflow_inferior_data): Likewise.
985 (inflow_inferior_exit): Likewise.
986 * infrun.c (displaced_step_clear_cleanup): Likewise.
987 (restore_current_uiout_cleanup): Likewise.
988 (release_stop_context_cleanup): Likewise.
989 (do_restore_infcall_suspend_state_cleanup): Likewise.
990 (do_restore_infcall_control_state_cleanup): Likewise.
991 (restore_inferior_ptid): Likewise.
992 * inline-frame.c (block_starting_point_at): Likewise.
993 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
994 * jit.c (get_jit_objfile_data): Likewise.
995 (get_jit_program_space_data): Likewise.
996 (jit_object_close_impl): Likewise.
997 (jit_find_objf_with_entry_addr): Likewise.
998 (jit_breakpoint_deleted): Likewise.
999 (jit_unwind_reg_set_impl): Likewise.
1000 (jit_unwind_reg_get_impl): Likewise.
1001 (jit_dealloc_cache): Likewise.
1002 (jit_frame_sniffer): Likewise.
1003 (jit_frame_prev_register): Likewise.
1004 (jit_prepend_unwinder): Likewise.
1005 (jit_inferior_exit_hook): Likewise.
1006 (free_objfile_data): Likewise.
1007 * jv-lang.c (jv_per_objfile_free): Likewise.
1008 (get_dynamics_objfile): Likewise.
1009 (get_java_class_symtab): Likewise.
1010 (builtin_java_type): Likewise.
1011 * language.c (language_string_char_type): Likewise.
1012 (language_bool_type): Likewise.
1013 (language_lookup_primitive_type): Likewise.
1014 (language_lookup_primitive_type_as_symbol): Likewise.
1015 * linespec.c (hash_address_entry): Likewise.
1016 (eq_address_entry): Likewise.
1017 (iterate_inline_only): Likewise.
1018 (iterate_name_matcher): Likewise.
1019 (decode_line_2_compare_items): Likewise.
1020 (collect_one_symbol): Likewise.
1021 (compare_symbols): Likewise.
1022 (compare_msymbols): Likewise.
1023 (add_symtabs_to_list): Likewise.
1024 (collect_symbols): Likewise.
1025 (compare_msyms): Likewise.
1026 (add_minsym): Likewise.
1027 (cleanup_linespec_result): Likewise.
1028 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1029 * linux-nat.c (delete_lwp_cleanup): Likewise.
1030 (count_events_callback): Likewise.
1031 (select_event_lwp_callback): Likewise.
1032 (resume_stopped_resumed_lwps): Likewise.
1033 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1034 (invalidate_linux_cache_inf): Likewise.
1035 (get_linux_inferior_data): Likewise.
1036 (linux_find_memory_regions_thunk): Likewise.
1037 (linux_make_mappings_callback): Likewise.
1038 (linux_corefile_thread_callback): Likewise.
1039 (find_mapping_size): Likewise.
1040 * linux-thread-db.c (find_new_threads_callback): Likewise.
1041 * lm32-tdep.c (lm32_frame_cache): Likewise.
1042 * m2-lang.c (builtin_m2_type): Likewise.
1043 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1044 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1045 (m32r_linux_supply_gregset): Likewise.
1046 (m32r_linux_collect_gregset): Likewise.
1047 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1048 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1049 * m68k-tdep.c (m68k_frame_cache): Likewise.
1050 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1051 (m68kbsd_supply_gregset): Likewise.
1052 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1053 * m88k-tdep.c (m88k_frame_cache): Likewise.
1054 (m88k_supply_gregset): Likewise.
1055
224c3ddb
SM
10562015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1057
1058 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1059 to allocation result assignment.
1060 * ada-exp.y (write_object_renaming): Likewise.
1061 (write_ambiguous_var): Likewise.
1062 (ada_nget_field_index): Likewise.
1063 (write_var_or_type): Likewise.
1064 * ada-lang.c (ada_decode_symbol): Likewise.
1065 (ada_value_assign): Likewise.
1066 (value_pointer): Likewise.
1067 (cache_symbol): Likewise.
1068 (add_nonlocal_symbols): Likewise.
1069 (ada_name_for_lookup): Likewise.
1070 (symbol_completion_add): Likewise.
1071 (ada_to_fixed_type_1): Likewise.
1072 (ada_get_next_arg): Likewise.
1073 (defns_collected): Likewise.
1074 * ada-lex.l (processId): Likewise.
1075 (processString): Likewise.
1076 * ada-tasks.c (read_known_tasks_array): Likewise.
1077 (read_known_tasks_list): Likewise.
1078 * ada-typeprint.c (decoded_type_name): Likewise.
1079 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1080 * amd64-tdep.c (amd64_push_arguments): Likewise.
1081 (amd64_displaced_step_copy_insn): Likewise.
1082 (amd64_classify_insn_at): Likewise.
1083 (amd64_relocate_instruction): Likewise.
1084 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1085 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1086 (initialize_current_architecture): Likewise.
1087 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1088 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1089 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1090 (arm_push_dummy_call): Likewise.
1091 (extend_buffer_earlier): Likewise.
1092 (arm_adjust_breakpoint_address): Likewise.
1093 (arm_skip_stub): Likewise.
1094 * auto-load.c (filename_is_in_pattern): Likewise.
1095 (maybe_add_script_file): Likewise.
1096 (maybe_add_script_text): Likewise.
1097 (auto_load_objfile_script_1): Likewise.
1098 * auxv.c (ld_so_xfer_auxv): Likewise.
1099 * ax-general.c (new_agent_expr): Likewise.
1100 (grow_expr): Likewise.
1101 (ax_reg_mask): Likewise.
1102 * bcache.c (bcache_full): Likewise.
1103 * breakpoint.c (program_breakpoint_here_p): Likewise.
1104 * btrace.c (parse_xml_raw): Likewise.
1105 * build-id.c (build_id_to_debug_bfd): Likewise.
1106 * buildsym.c (end_symtab_with_blockvector): Likewise.
1107 * c-exp.y (string_exp): Likewise.
1108 (qualified_name): Likewise.
1109 (write_destructor_name): Likewise.
1110 (operator_stoken): Likewise.
1111 (parse_number): Likewise.
1112 (scan_macro_expansion): Likewise.
1113 (yylex): Likewise.
1114 (c_print_token): Likewise.
1115 * c-lang.c (c_get_string): Likewise.
1116 (emit_numeric_character): Likewise.
1117 * charset.c (wchar_iterate): Likewise.
1118 * cli/cli-cmds.c (complete_command): Likewise.
1119 (make_command): Likewise.
1120 * cli/cli-dump.c (restore_section_callback): Likewise.
1121 (restore_binary_file): Likewise.
1122 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1123 * cli/cli-script.c (execute_control_command): Likewise.
1124 * cli/cli-setshow.c (do_set_command): Likewise.
1125 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1126 (read_pe_exported_syms): Likewise.
1127 * coffread.c (coff_read_struct_type): Likewise.
1128 (coff_read_enum_type): Likewise.
1129 * common/btrace-common.c (btrace_data_append): Likewise.
1130 * common/buffer.c (buffer_grow): Likewise.
1131 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1132 * common/format.c (parse_format_string): Likewise.
1133 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1134 * common/xml-utils.c (xml_escape_text): Likewise.
1135 * compile/compile-object-load.c (copy_sections): Likewise.
1136 (compile_object_load): Likewise.
1137 * compile/compile-object-run.c (compile_object_run): Likewise.
1138 * completer.c (filename_completer): Likewise.
1139 * corefile.c (read_memory_typed_address): Likewise.
1140 (write_memory_unsigned_integer): Likewise.
1141 (write_memory_signed_integer): Likewise.
1142 (complete_set_gnutarget): Likewise.
1143 * corelow.c (get_core_register_section): Likewise.
1144 * cp-name-parser.y (d_grab): Likewise.
1145 (allocate_info): Likewise.
1146 (cp_new_demangle_parse_info): Likewise.
1147 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1148 (cp_lookup_symbol_in_namespace): Likewise.
1149 (lookup_namespace_scope): Likewise.
1150 (find_symbol_in_baseclass): Likewise.
1151 (cp_lookup_nested_symbol): Likewise.
1152 (cp_lookup_transparent_type_loop): Likewise.
1153 * cp-support.c (copy_string_to_obstack): Likewise.
1154 (make_symbol_overload_list): Likewise.
1155 (make_symbol_overload_list_namespace): Likewise.
1156 (make_symbol_overload_list_adl_namespace): Likewise.
1157 (first_component_command): Likewise.
1158 * cp-valprint.c (cp_print_value): Likewise.
1159 * ctf.c (ctf_xfer_partial): Likewise.
1160 * d-exp.y (StringExp): Likewise.
1161 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1162 (lookup_module_scope): Likewise.
1163 (find_symbol_in_baseclass): Likewise.
1164 (d_lookup_nested_symbol): Likewise.
1165 * dbxread.c (find_stab_function_addr): Likewise.
1166 (read_dbx_symtab): Likewise.
1167 (dbx_end_psymtab): Likewise.
1168 (cp_set_block_scope): Likewise.
1169 * dcache.c (dcache_alloc): Likewise.
1170 * demangle.c (_initialize_demangler): Likewise.
1171 * dicos-tdep.c (dicos_load_module_p): Likewise.
1172 * dictionary.c (dict_create_hashed_expandable): Likewise.
1173 (dict_create_linear_expandable): Likewise.
1174 (expand_hashtable): Likewise.
1175 (add_symbol_linear_expandable): Likewise.
1176 * dwarf2-frame.c (add_cie): Likewise.
1177 (add_fde): Likewise.
1178 (dwarf2_build_frame_info): Likewise.
1179 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1180 (dwarf_expr_fetch_address): Likewise.
1181 (add_piece): Likewise.
1182 (execute_stack_op): Likewise.
1183 * dwarf2loc.c (chain_candidate): Likewise.
1184 (dwarf_entry_parameter_to_value): Likewise.
1185 (read_pieced_value): Likewise.
1186 (write_pieced_value): Likewise.
1187 * dwarf2read.c (dwarf2_read_section): Likewise.
1188 (add_type_unit): Likewise.
1189 (read_comp_units_from_section): Likewise.
1190 (fixup_go_packaging): Likewise.
1191 (dwarf2_compute_name): Likewise.
1192 (dwarf2_physname): Likewise.
1193 (create_dwo_unit_in_dwp_v1): Likewise.
1194 (create_dwo_unit_in_dwp_v2): Likewise.
1195 (read_func_scope): Likewise.
1196 (read_call_site_scope): Likewise.
1197 (dwarf2_attach_fields_to_type): Likewise.
1198 (process_structure_scope): Likewise.
1199 (mark_common_block_symbol_computed): Likewise.
1200 (read_common_block): Likewise.
1201 (abbrev_table_read_table): Likewise.
1202 (guess_partial_die_structure_name): Likewise.
1203 (fixup_partial_die): Likewise.
1204 (add_file_name): Likewise.
1205 (dwarf2_const_value_data): Likewise.
1206 (dwarf2_const_value_attr): Likewise.
1207 (build_error_marker_type): Likewise.
1208 (guess_full_die_structure_name): Likewise.
1209 (anonymous_struct_prefix): Likewise.
1210 (typename_concat): Likewise.
1211 (dwarf2_canonicalize_name): Likewise.
1212 (dwarf2_name): Likewise.
1213 (write_constant_as_bytes): Likewise.
1214 (dwarf2_fetch_constant_bytes): Likewise.
1215 (copy_string): Likewise.
1216 (parse_macro_definition): Likewise.
1217 * elfread.c (elf_symfile_segments): Likewise.
1218 (elf_rel_plt_read): Likewise.
1219 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1220 (elf_gnu_ifunc_resolve_by_got): Likewise.
1221 (elf_read_minimal_symbols): Likewise.
1222 (elf_gnu_ifunc_record_cache): Likewise.
1223 * event-top.c (top_level_prompt): Likewise.
1224 (command_line_handler): Likewise.
1225 * exec.c (resize_section_table): Likewise.
1226 * expprint.c (print_subexp_standard): Likewise.
1227 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1228 * findcmd.c (parse_find_args): Likewise.
1229 * findvar.c (address_from_register): Likewise.
1230 * frame.c (get_prev_frame_always): Likewise.
1231 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1232 (get_section_descriptor): Likewise.
1233 * gdb_obstack.c (obconcat): Likewise.
1234 (obstack_strdup): Likewise.
1235 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1236 (create_set_type): Likewise.
1237 (lookup_unsigned_typename): Likewise.
1238 (lookup_signed_typename): Likewise.
1239 (resolve_dynamic_union): Likewise.
1240 (resolve_dynamic_struct): Likewise.
1241 (add_dyn_prop): Likewise.
1242 (copy_dynamic_prop_list): Likewise.
1243 (arch_flags_type): Likewise.
1244 (append_composite_type_field_raw): Likewise.
1245 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1246 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1247 * go-exp.y (string_exp): Likewise.
1248 * go-lang.c (go_demangle): Likewise.
1249 * guile/guile.c (compute_scheme_string): Likewise.
1250 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1251 (gdbscm_canonicalize_command_name): Likewise.
1252 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1253 (ioscm_init_memory_port): Likewise.
1254 (ioscm_reinit_memory_port): Likewise.
1255 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1256 (gdbscm_gc_dup_argv): Likewise.
1257 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1258 * hppa-tdep.c (internalize_unwinds): Likewise.
1259 (read_unwind_info): Likewise.
1260 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1261 (windows_core_xfer_shared_libraries): Likewise.
1262 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1263 (i386_stap_parse_special_token_triplet): Likewise.
1264 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1265 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1266 * inf-child.c (inf_child_fileio_readlink): Likewise.
1267 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1268 (inf_ptrace_store_register): Likewise.
1269 * infrun.c (follow_exec): Likewise.
1270 (displaced_step_prepare_throw): Likewise.
1271 (save_stop_context): Likewise.
1272 (save_infcall_suspend_state): Likewise.
1273 * jit.c (jit_read_descriptor): Likewise.
1274 (jit_read_code_entry): Likewise.
1275 (jit_symtab_line_mapping_add_impl): Likewise.
1276 (finalize_symtab): Likewise.
1277 (jit_unwind_reg_get_impl): Likewise.
1278 * jv-exp.y (QualifiedName): Likewise.
1279 * jv-lang.c (get_java_utf8_name): Likewise.
1280 (type_from_class): Likewise.
1281 (java_demangle_type_signature): Likewise.
1282 (java_class_name_from_physname): Likewise.
1283 * jv-typeprint.c (java_type_print_base): Likewise.
1284 * jv-valprint.c (java_value_print): Likewise.
1285 * language.c (add_language): Likewise.
1286 * linespec.c (add_sal_to_sals_basic): Likewise.
1287 (add_sal_to_sals): Likewise.
1288 (decode_objc): Likewise.
1289 (find_linespec_symbols): Likewise.
1290 * linux-fork.c (fork_save_infrun_state): Likewise.
1291 * linux-nat.c (linux_nat_detach): Likewise.
1292 (linux_nat_fileio_readlink): Likewise.
1293 * linux-record.c (record_linux_sockaddr): Likewise.
1294 (record_linux_msghdr): Likewise.
1295 (Do): Likewise.
1296 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1297 (linux_collect_regset_section_cb): Likewise.
1298 (linux_get_siginfo_data): Likewise.
1299 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1300 (try_thread_db_load_from_dir): Likewise.
1301 (thread_db_load_search): Likewise.
1302 (info_auto_load_libthread_db): Likewise.
1303 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1304 (m32c_m16c_pointer_to_address): Likewise.
1305 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1306 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1307 * machoread.c (macho_check_dsym): Likewise.
1308 * macroexp.c (resize_buffer): Likewise.
1309 (gather_arguments): Likewise.
1310 (maybe_expand): Likewise.
1311 * macrotab.c (new_macro_key): Likewise.
1312 (new_source_file): Likewise.
1313 (new_macro_definition): Likewise.
1314 * mdebugread.c (parse_symbol): Likewise.
1315 (parse_type): Likewise.
1316 (parse_partial_symbols): Likewise.
1317 (psymtab_to_symtab_1): Likewise.
1318 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1319 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1320 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1321 (mi_cmd_data_read_memory_bytes): Likewise.
1322 (mi_cmd_data_write_memory_bytes): Likewise.
1323 (mi_cmd_trace_frame_collected): Likewise.
1324 * mi/mi-parse.c (mi_parse_argv): Likewise.
1325 (mi_parse): Likewise.
1326 * minidebug.c (lzma_open): Likewise.
1327 (lzma_pread): Likewise.
1328 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1329 (mips_print_fp_register): Likewise.
1330 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1331 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1332 * mt-tdep.c (mt_register_name): Likewise.
1333 (mt_registers_info): Likewise.
1334 (mt_push_dummy_call): Likewise.
1335 * namespace.c (add_using_directive): Likewise.
1336 * nat/linux-btrace.c (perf_event_read): Likewise.
1337 (linux_enable_bts): Likewise.
1338 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1339 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1340 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1341 (nto_parse_redirection): Likewise.
1342 * objc-lang.c (objc_demangle): Likewise.
1343 (find_methods): Likewise.
1344 * objfiles.c (get_objfile_bfd_data): Likewise.
1345 (set_objfile_main_name): Likewise.
1346 (allocate_objfile): Likewise.
1347 (objfile_relocate): Likewise.
1348 (update_section_map): Likewise.
1349 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1350 * p-exp.y (exp): Likewise.
1351 (yylex): Likewise.
1352 * p-valprint.c (pascal_object_print_value): Likewise.
1353 * parse.c (initialize_expout): Likewise.
1354 (mark_completion_tag): Likewise.
1355 (copy_name): Likewise.
1356 (parse_float): Likewise.
1357 (type_stack_reserve): Likewise.
1358 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1359 (ppu2spu_prev_register): Likewise.
1360 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1361 * printcmd.c (printf_wide_c_string): Likewise.
1362 (printf_pointer): Likewise.
1363 * probe.c (parse_probes): Likewise.
1364 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1365 (cmdpy_init): Likewise.
1366 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1367 * python/py-symtab.c (set_sal): Likewise.
1368 * python/py-unwind.c (pyuw_sniffer): Likewise.
1369 * python/python.c (python_interactive_command): Likewise.
1370 (compute_python_string): Likewise.
1371 * ravenscar-thread.c (get_running_thread_id): Likewise.
1372 * record-full.c (record_full_exec_insn): Likewise.
1373 (record_full_core_open_1): Likewise.
1374 * regcache.c (regcache_raw_read_signed): Likewise.
1375 (regcache_raw_read_unsigned): Likewise.
1376 (regcache_cooked_read_signed): Likewise.
1377 (regcache_cooked_read_unsigned): Likewise.
1378 * remote-fileio.c (remote_fileio_func_open): Likewise.
1379 (remote_fileio_func_rename): Likewise.
1380 (remote_fileio_func_unlink): Likewise.
1381 (remote_fileio_func_stat): Likewise.
1382 (remote_fileio_func_system): Likewise.
1383 * remote-mips.c (mips_xfer_memory): Likewise.
1384 (mips_load_srec): Likewise.
1385 (pmon_end_download): Likewise.
1386 * remote.c (new_remote_state): Likewise.
1387 (map_regcache_remote_table): Likewise.
1388 (remote_register_number_and_offset): Likewise.
1389 (init_remote_state): Likewise.
1390 (get_memory_packet_size): Likewise.
1391 (remote_pass_signals): Likewise.
1392 (remote_program_signals): Likewise.
1393 (remote_start_remote): Likewise.
1394 (remote_check_symbols): Likewise.
1395 (remote_query_supported): Likewise.
1396 (extended_remote_attach): Likewise.
1397 (process_g_packet): Likewise.
1398 (store_registers_using_G): Likewise.
1399 (putpkt_binary): Likewise.
1400 (read_frame): Likewise.
1401 (compare_sections_command): Likewise.
1402 (remote_hostio_pread): Likewise.
1403 (remote_hostio_readlink): Likewise.
1404 (remote_file_put): Likewise.
1405 (remote_file_get): Likewise.
1406 (remote_pid_to_exec_file): Likewise.
1407 (_initialize_remote): Likewise.
1408 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1409 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1410 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1411 (bfd_uses_spe_extensions): Likewise.
1412 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1413 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1414 * solib-dsbt.c (decode_loadmap): Likewise.
1415 (fetch_loadmap): Likewise.
1416 (scan_dyntag): Likewise.
1417 (enable_break): Likewise.
1418 (dsbt_relocate_main_executable): Likewise.
1419 * solib-frv.c (fetch_loadmap): Likewise.
1420 (enable_break2): Likewise.
1421 (frv_relocate_main_executable): Likewise.
1422 * solib-spu.c (spu_relocate_main_executable): Likewise.
1423 (spu_bfd_open): Likewise.
1424 * solib-svr4.c (lm_info_read): Likewise.
1425 (read_program_header): Likewise.
1426 (find_program_interpreter): Likewise.
1427 (scan_dyntag): Likewise.
1428 (elf_locate_base): Likewise.
1429 (open_symbol_file_object): Likewise.
1430 (read_program_headers_from_bfd): Likewise.
1431 (svr4_relocate_main_executable): Likewise.
1432 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1433 * solib.c (solib_find_1): Likewise.
1434 (exec_file_find): Likewise.
1435 (solib_find): Likewise.
1436 * source.c (openp): Likewise.
1437 (print_source_lines_base): Likewise.
1438 (forward_search_command): Likewise.
1439 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1440 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1441 (spu_get_overlay_table): Likewise.
1442 * stabsread.c (patch_block_stabs): Likewise.
1443 (define_symbol): Likewise.
1444 (again:): Likewise.
1445 (read_member_functions): Likewise.
1446 (read_one_struct_field): Likewise.
1447 (read_enum_type): Likewise.
1448 (common_block_start): Likewise.
1449 * stack.c (read_frame_arg): Likewise.
1450 (backtrace_command): Likewise.
1451 * stap-probe.c (stap_parse_register_operand): Likewise.
1452 * symfile.c (syms_from_objfile_1): Likewise.
1453 (find_separate_debug_file): Likewise.
1454 (load_command): Likewise.
1455 (load_progress): Likewise.
1456 (load_section_callback): Likewise.
1457 (reread_symbols): Likewise.
1458 (add_filename_language): Likewise.
1459 (allocate_compunit_symtab): Likewise.
1460 (read_target_long_array): Likewise.
1461 (simple_read_overlay_table): Likewise.
1462 * symtab.c (symbol_set_names): Likewise.
1463 (resize_symbol_cache): Likewise.
1464 (rbreak_command): Likewise.
1465 (completion_list_add_name): Likewise.
1466 (completion_list_objc_symbol): Likewise.
1467 (add_filename_to_list): Likewise.
1468 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1469 * target-memory.c (target_write_memory_blocks): Likewise.
1470 * target.c (target_read_string): Likewise.
1471 (read_whatever_is_readable): Likewise.
1472 (target_read_alloc_1): Likewise.
1473 (simple_search_memory): Likewise.
1474 (target_fileio_read_alloc_1): Likewise.
1475 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1476 * top.c (command_line_input): Likewise.
1477 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1478 * tracefile.c (tracefile_fetch_registers): Likewise.
1479 * tracepoint.c (add_memrange): Likewise.
1480 (init_collection_list): Likewise.
1481 (add_aexpr): Likewise.
1482 (trace_dump_actions): Likewise.
1483 (parse_trace_status): Likewise.
1484 (parse_tracepoint_definition): Likewise.
1485 (parse_tsv_definition): Likewise.
1486 (parse_static_tracepoint_marker_definition): Likewise.
1487 * tui/tui-file.c (tui_sfileopen): Likewise.
1488 (tui_file_adjust_strbuf): Likewise.
1489 * tui/tui-io.c (tui_expand_tabs): Likewise.
1490 * tui/tui-source.c (tui_set_source_content): Likewise.
1491 * typeprint.c (find_global_typedef): Likewise.
1492 * ui-file.c (do_ui_file_xstrdup): Likewise.
1493 (ui_file_obsavestring): Likewise.
1494 (mem_file_write): Likewise.
1495 * utils.c (make_hex_string): Likewise.
1496 (get_regcomp_error): Likewise.
1497 (puts_filtered_tabular): Likewise.
1498 (gdb_realpath_keepfile): Likewise.
1499 (ldirname): Likewise.
1500 (gdb_bfd_errmsg): Likewise.
1501 (substitute_path_component): Likewise.
1502 * valops.c (search_struct_method): Likewise.
1503 (find_oload_champ_namespace_loop): Likewise.
1504 * valprint.c (print_decimal_chars): Likewise.
1505 (read_string): Likewise.
1506 (generic_emit_char): Likewise.
1507 * varobj.c (varobj_delete): Likewise.
1508 (varobj_value_get_print_value): Likewise.
1509 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1510 * windows-tdep.c (display_one_tib): Likewise.
1511 * xcoffread.c (read_xcoff_symtab): Likewise.
1512 (process_xcoff_symbol): Likewise.
1513 (swap_sym): Likewise.
1514 (scan_xcoff_symtab): Likewise.
1515 (xcoff_initial_scan): Likewise.
1516 * xml-support.c (gdb_xml_end_element): Likewise.
1517 (xml_process_xincludes): Likewise.
1518 (xml_fetch_content_from_file): Likewise.
1519 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1520 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1521
623fb775 15222015-09-23 James Bowman <james.bowman@ftdichip.com>
1523
1524 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1525 instead of builtin_func_ptr.
1526 (ft32_pointer_to_address): New function.
1527 (ft32_address_class_type_flags): New function.
1528 (ft32_address_class_type_flags_to_name): New function.
1529 (ft32_address_class_name_to_type_flags): New function.
1530 (ft32_gdbarch_init): Set tdep->pc_type. Call
1531 set_gdbarch_pointer_to_address,
1532 set_gdbarch_address_class_type_flags
1533 set_gdbarch_address_class_name_to_type_flags,
1534 and set_gdbarch_address_class_type_flags_to_name.
1535 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1536
e6c2c623
PMR
15372015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1538
1539 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1540 value is a reference, actually dereference it in order to get
1541 the underlying value.
1542
bc1f8cda
SM
15432015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1544
1545 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1546
acaa662f
SM
15472015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1548
1549 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1550 * linespec.c (linespec_lexer_lex_string): Same.
1551
4d9d419e
PL
15522015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1553
1554 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1555
6ec5f4be
PL
15562015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1557
1558 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1559 variable. Call aarch64_decode_adr instead of
1560 aarch64_decode_adrp.
1561 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1562 (aarch64_decode_adr): New function declaration.
1563 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1564 (aarch64_decode_adr): New function, factored out from
1565 aarch64_decode_adrp to decode both adr and adrp instructions.
1566
787749ea
PL
15672015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1568
1569 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1570 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1571 (aarch64-insn.o): New rule.
1572 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1573 (aarch64*-*-linux*): Likewise.
1574 * arch/aarch64-insn.c: New file.
1575 * arch/aarch64-insn.h: New file.
1576 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1577 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1578 arch/aarch64-insn.h.
1579 (decode_add_sub_imm): Rename to ...
1580 (aarch64_decode_add_sub_imm): ... this.
1581 (decode_adrp): Rename to ...
1582 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1583 Declare in arch/aarch64-insn.h.
1584 (decode_b): Rename to ...
1585 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1586 Declare in arch/aarch64-insn.h.
1587 (decode_bcond): Rename to ...
1588 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1589 Declare in arch/aarch64-insn.h.
1590 (decode_br): Rename to ...
1591 (aarch64_decode_br): ... this.
1592 (decode_cb): Rename to ...
1593 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1594 Declare in arch/aarch64-insn.h.
1595 (decode_eret): Rename to ...
1596 (aarch64_decode_eret): ... this.
1597 (decode_movz): Rename to ...
1598 (aarch64_decode_movz): ... this.
1599 (decode_orr_shifted_register_x): Rename to ...
1600 (aarch64_decode_orr_shifted_register_x): ... this.
1601 (decode_ret): Rename to ...
1602 (aarch64_decode_ret): ... this.
1603 (decode_stp_offset): Rename to ...
1604 (aarch64_decode_stp_offset): ... this.
1605 (decode_stp_offset_wb): Rename to ...
1606 (aarch64_decode_stp_offset_wb): ... this.
1607 (decode_stur): Rename to ...
1608 (aarch64_decode_stur): ... this.
1609 (decode_tb): Rename to ...
1610 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1611 Declare in arch/aarch64-insn.h.
1612 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1613
183dc7ec
DE
16142015-09-20 Doug Evans <xdje42@gmail.com>
1615
1616 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1617
2ee7123e
DE
16182015-09-20 Doug Evans <xdje42@gmail.com>
1619
1620 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1621 variable name that collides with a parameter.
1622
7d1c9c9b
JB
16232015-09-20 Joel Brobecker <brobecker@adacore.com>
1624
1625 * dwarf2loc.c (locexpr_get_frame_base): Renames
1626 block_op_get_frame_base.
1627 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1628 block_op_get_frame_base by reference to locexpr_get_frame_base.
1629 (loclist_get_frame_base): New function, near identical copy of
1630 locexpr_get_frame_base.
1631 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1632 block_op_get_frame_base by reference to loclist_get_frame_base.
1633
7dc7c195
DE
16342015-09-19 Doug Evans <xdje42@gmail.com>
1635
1636 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1637 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1638
be550b6e
DE
16392015-09-18 Doug Evans <xdje42@gmail.com>
1640
1641 * linux-thread-db.c (record_thread): Return the created thread.
1642 (thread_from_lwp): Likewise.
1643 (thread_db_get_thread_local_address): Update.
1644
615b3f62
DE
16452015-09-18 Doug Evans <xdje42@gmail.com>
1646
1647 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1648 move only member demangled_name up. All uses updated.
1649
015d2e7e
DE
16502015-09-18 Doug Evans <xdje42@gmail.com>
1651
1652 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1653 kind of minimal symbol in the error message.
1654 * objfiles.c (objfile_flavour_name): New function.
1655 * objfiles.h (objfile_flavour_name): Declare.
1656
a0cc84cd
YQ
16572015-09-18 Yao Qi <yao.qi@linaro.org>
1658
1659 * nat/aarch64-linux.c: Include elf/common.h,
1660 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1661 (aarch64_ps_get_thread_area): New function.
1662 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1663 (aarch64_ps_get_thread_area): Declare.
1664 * aarch64-linux-nat.c (ps_get_thread_area): Call
1665 aarch64_ps_get_thread_area.
1666
d2939ba2
MM
16672015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1668
1669 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1670
f2665db5
MM
16712015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1672
1673 * NEWS: Announce new scheduler-locking mode.
1674 * infrun.c (schedlock_replay): New.
1675 (scheduler_enums): Add schedlock_replay.
1676 (scheduler_mode): Change default to schedlock_replay.
1677 (user_visible_resume_ptid): Handle schedlock_replay.
1678 (clear_proceed_status_thread): Stop replaying if resumed thread is
1679 not replaying.
1680 (schedlock_applies): Handle schedlock_replay.
1681 (_initialize_infrun): Document new scheduler-locking mode.
1682 * record-btrace.c (record_btrace_resume): Remove code to stop other
1683 threads when not replaying the resumed thread.
1684
7ff27e9b
MM
16852015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1686
1687 * record-btrace.c ((record_btrace_will_replay): New.
1688 (init_record_btrace_ops): Initialize to_record_will_replay.
1689 * record-full.c ((record_full_will_replay): New.
1690 (init_record_full_ops): Initialize to_record_will_replay.
1691 * target-delegates.c: Regenerated.
1692 * target.c (target_record_will_replay): New.
1693 * target.h (struct target_ops) <to_record_will_replay>: New.
1694 (target_record_will_replay): New.
1695
797094dd
MM
16962015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1697
1698 * record-btrace.c (record_btrace_resume): Call
1699 target_record_stop_replaying.
1700 (record_btrace_stop_replaying_all): New.
1701 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1702 * record-full.c (record_full_stop_replaying): New.
1703 (init_record_full_ops ): Initialize to_record_stop_replaying.
1704 * target-delegates.c: Regenerated.
1705 * target.c (target_record_stop_replaying): New.
1706 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1707 (target_record_stop_replaying): New.
1708
4d10e986
MM
17092015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1710
1711 * record-btrace.c (record_btrace_xfer_partial)
1712 (record_btrace_store_registers, record_btrace_prepare_to_store):
1713 Call record_btrace_is_replaying with inferior_ptid instead of
1714 minus_one_ptid.
1715 (record_btrace_store_registers): Change error message.
1716
a52eab48
MM
17172015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1718
1719 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1720 Update users to pass minus_one_ptid.
1721 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1722 * record.c (cmd_record_delete): Pass inferior_ptid to
1723 target_record_is_replaying.
1724 * target-delegates.c: Regenerated.
1725 * target.c (target_record_is_replaying): Add ptid argument.
1726 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1727 argument.
1728 (target_record_is_replaying): Add ptid argument.
1729
cbb55fa7
MM
17302015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1731
1732 * record-btrace.c (record_btrace_open): Remove non_stop check.
1733 * NEWS: Announce that record btrace supports non-stop mode.
1734
d1988021
MM
17352015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1736
1737 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1738 in the TARKET_WAITKIND_NO_HISTORY case.
1739
a6b5be76
MM
17402015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1741
1742 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1743 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1744
ec71cc2f
MM
17452015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1746
1747 * record-btrace.c (get_thread_current_frame): New.
1748 (record_btrace_start_replaying): Call get_thread_current_frame.
1749
0ca912df
MM
17502015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1751
1752 * record-btrace.c (record_btrace_resume_thread): A move request
1753 overwrites a previous move request.
1754 (record_btrace_find_resume_thread): Removed.
1755 (record_btrace_resume): Resume all requested threads.
1756
e3cfc1c7
MM
17572015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1758
1759 * record-btrace.c: Include vec.h.
1760 (record_btrace_find_thread_to_move): Removed.
1761 (btrace_step_no_resumed, btrace_step_again)
1762 (record_btrace_stop_replaying_at_end): New.
1763 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1764 (record_btrace_single_step_forward): Remove calls to
1765 record_btrace_stop_replaying.
1766 (record_btrace_step_thread): Do only one step for BTHR_CONT and
1767 BTHR_RCONT. Keep threads at the end of their history moving.
1768 (record_btrace_wait): Call record_btrace_step_thread for all threads
1769 until one reports an event. Call record_btrace_stop_replaying_at_end
1770 for the eventing thread.
1771
cf8f8f0c
MM
17722015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1773
1774 * record-btrace.c (record_btrace_single_step_forward): Return
1775 NO_HISTORY if a step brings us to the end of the execution history.
1776
011c71b6
MM
17772015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1778
1779 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1780 to ...
1781 (record_btrace_single_step_forward): ... here and
1782 (record_btrace_single_step_backward): ... here.
1783
d825d248
MM
17842015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1785
1786 * record-btrace.c (btrace_step_spurious)
1787 (record_btrace_single_step_forward)
1788 (record_btrace_single_step_backward): New.
1789 (record_btrace_step_thread): Call record_btrace_single_step_forward
1790 and record_btrace_single_step_backward.
1791
3c615f99
MM
17922015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1793
1794 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1795 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1796
987e68b1
MM
17972015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1798
1799 * record-btrace.c (btrace_thread_flag_to_str)
1800 (record_btrace_cancel_resume): New.
1801 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1802 (record_btrace_resume): Print execution direction.
1803 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1804 (record_btrace_wait): Call record_btrace_cancel_resume.
1805
6e4879f0
MM
18062015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1807
1808 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1809 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1810 (record_btrace_find_thread_to_move): Also accept threads that have
1811 BTHR_STOP set.
1812 (btrace_step_stopped_on_request, record_btrace_stop): New.
1813 (record_btrace_step_thread): Support BTHR_STOP.
1814 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1815 (init_record_btrace_ops): Initialize to_stop.
1816
5953356c
MM
18172015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1818
1819 * record-btrace.c (record_btrace_wait): Replace non_stop check with
1820 target_is_non_stop_p ().
1821
bfca584f
PMR
18222015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
1823
1824 * ada-typeprint.c (print_array_type): Do not describe arrays as
1825 packed when they embed dynamic elements.
1826
5382cfab
PW
18272015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1828
1829 * symtab.h (address_class): Document that TLS variables
1830 are handled by LOC_UNRESOLVED.
1831 * findvar.c (default_read_var_value): Don't relocate TLS variables.
1832 * printcmd.c (address_info): Don't relocate TLS variables.
1833
b277c936
PL
18342015-09-15 Pierre Langlois <pierre.langlois@arm.com>
1835
1836 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
1837 (decode_adrp): Likewise.
1838 (decode_b): Likewise.
1839 (decode_bcond): Likewise.
1840 (decode_br): Likewise.
1841 (decode_cb): Likewise.
1842 (decode_eret): Likewise.
1843 (decode_movz): Likewise.
1844 (decode_orr_shifted_register_x): Likewise.
1845 (decode_ret): Likewise.
1846 (decode_stp_offset): Likewise.
1847 (decode_stp_offset_wb): Likewise.
1848 (decode_stur): Likewise.
1849 (decode_tb): Likewise.
1850 (aarch64_analyze_prologue): Likewise.
1851 (pass_in_x): Likewise.
1852 (pass_in_v): Likewise.
1853 (pass_on_stack): Likewise.
1854 (aarch64_push_dummy_call): Likewise.
1855 (aarch64_extract_return_value): Likewise.
1856 (aarch64_store_return_value): Likewise.
1857 (aarch64_return_value): Likewise.
1858 (aarch64_record_asimd_load_store): Likewise.
1859 (aarch64_record_load_store): Likewise.
1860 (aarch64_record_data_proc_simd_fp): Likewise.
1861
141c5cc4
JK
18622015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1863
1864 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
1865 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
1866 (ppc64_skip_trampoline_code_1): ... here.
1867 (ppc64_skip_trampoline_code): New wrapper function.
1868 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
1869
750ce8d1
YQ
18702015-09-15 Yao Qi <yao.qi@linaro.org>
1871
1872 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
1873 function.
1874 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
1875 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
1876 if target_can_do_single_step returns 1.
1877 * remote.c (struct vCont_action_support) <s, S>: New fields.
1878 (PACKET_vContSupported): New enum.
1879 (remote_protocol_features): New element for vContSupported.
1880 (remote_query_supported): Append "vContSupported+".
1881 (remote_vcont_probe): Remove support_s and support_S, use
1882 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
1883 vCont packet if c and C actions are not supported.
1884 (remote_can_do_single_step): New function.
1885 (init_remote_ops): Install it to to_can_do_single_step.
1886 (_initialize_remote): Call add_packet_config_cmd.
1887 * target.h (struct target_ops) <to_can_do_single_step>: New field.
1888 (target_can_do_single_step): New macro.
1889 * target-delegates.c: Re-generated.
1890
ade90bde
YQ
18912015-09-15 Yao Qi <yao.qi@linaro.org>
1892
1893 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
1894 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
1895 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
1896 New function.
1897 (aarch64_siginfo_from_compat_siginfo): New function.
1898 * nat/aarch64-linux.h: Include signal.h.
1899 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
1900 (compat_timer_t, compat_clock_t): Likewise.
1901 (struct compat_timeval): New.
1902 (union compat_sigval): New.
1903 (struct compat_siginfo): New.
1904 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
1905 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
1906 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
1907 (cpt_si_band, cpt_si_fd): Likewise.
1908
4c2f2a79
PA
19092015-09-14 Pedro Alves <palves@redhat.com>
1910
1911 * infrun.c (current_stop_id): New global.
1912 (get_stop_id, new_stop_id): New functions.
1913 (fetch_inferior_event): Handle normal_stop proceeding the target.
1914 (struct stop_context): New.
1915 (save_stop_context, release_stop_context_cleanup)
1916 (stop_context_changed): New functions.
1917 (normal_stop): Return true if the hook-stop changes the stop
1918 context.
1919 * infrun.h (get_stop_id): Declare.
1920 (normal_stop): Now returns int. Add documentation.
1921
919e6dbe
PMR
19222015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
1923
1924 * ada-lang.c (ada_value_ptr_subscript): Update the heading
1925 comment. Handle packed arrays.
1926
b027a8fa
PA
19272015-09-14 Pedro Alves <palves@redhat.com>
1928
1929 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
1930 mention of maint set/show target-non-stop.
1931
b459a59b
DB
19322015-09-11 Don Breazeal <donb@codesourcery.com>
1933
1934 * NEWS: Announce new remote packets for the exec-events
1935 feature and the exec-events feature and associated commands.
1936
d46addbb
DB
19372015-09-11 Don Breazeal <donb@codesourcery.com>
1938
1939 * remote.c (remote_exec_event_p): New function.
1940 (remote_insert_exec_catchpoint): New function.
1941 (remote_remove_exec_catchpoint): New function.
1942 (init_extended_remote_ops): Initialize extended_remote_ops
1943 members to_insert_exec_catchpoint and
1944 to_remove_exec_catchpoint.
1945
94585166
DB
19462015-09-11 Don Breazeal <donb@codesourcery.com>
1947 Luis Machado <lgustavo@codesourcery.com>
1948
1949 * infrun.c (follow_exec): Use process-style ptid for
1950 exec message. Call add_inferior_with_spaces and
1951 target_follow_exec.
1952 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
1953 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
1954 * remote.c (remote_pspace_data): New static variable.
1955 (remote_pspace_data_cleanup): New function.
1956 (get_remote_exec_file): New function.
1957 (set_remote_exec_file_1): New function.
1958 (set_remote_exec_file): New function.
1959 (show_remote_exec_file): New function.
1960 (remote_exec_file): Delete static variable.
1961 (anonymous enum) <PACKET_exec_event_feature>: New
1962 enumeration constant.
1963 (remote_protocol_features): Add entry for exec-events feature.
1964 (remote_query_supported): Add client side of qSupported query
1965 for exec-events feature.
1966 (remote_follow_exec): New function.
1967 (remote_parse_stop_reply): Handle 'exec' stop reason.
1968 (extended_remote_run, extended_remote_create_inferior): Call
1969 get_remote_exec_file and set_remote_exec_file_1.
1970 (init_extended_remote_ops) <to_follow_exec>: Initialize new
1971 member.
1972 (_initialize_remote): Call
1973 register_program_space_data_with_cleanup. Call
1974 add_packet_config_cmd for remote exec-events feature.
1975 Modify call to add_setshow_string_noescape_cmd for exec-file
1976 to use new functions set_remote_exec_file and
1977 show_remote_exec_file.
1978 * target-debug.h, target-delegates.c: Regenerated.
1979 * target.c (target_follow_exec): New function.
1980 * target.h (struct target_ops) <to_follow_exec>: New member.
1981 (target_follow_exec): Declare new function.
1982
669e74e8
PL
19832015-09-11 Pierre Langlois <pierre.langlois@arm.com>
1984
1985 * aarch64-tdep.c (decode_cb): Move up comment describing the
1986 encoding.
1987 (decode_tb): Fix a typo in comment above the function. Move up
1988 comment describing the encoding.
1989
4d50586d
PL
19902015-09-11 Pierre Langlois <pierre.langlois@arm.com>
1991
1992 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
1993
6dcaef99
MMN
19942015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
1995
1996 PR gdb/18947
1997 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
1998 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
1999
5da1a4d3
SM
20002015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2001
2002 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2003 operations.
2004
108d56a4
SM
20052015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2006
2007 * ada-lang.c (ada_search_struct_field): Constify parameters
2008 and/or variables..
2009 (xget_renaming_scope): Likewise.
2010 (ada_is_redundant_range_encoding): Likewise.
2011 (scan_discrim_bound): Likewise.
2012 (to_fixed_range_type): Likewise.
2013
dd2e65cc
YQ
20142015-09-10 Yao Qi <yao.qi@linaro.org>
2015
2016 * breakpoint.c (download_tracepoint_locations): New local
2017 can_download_tracepoint. Check the result of
2018 target_can_download_tracepoint and save it in
2019 can_download_tracepoint if there are tracepoints to download.
2020 * linux-nat.h (enum tribool): Move it to ...
2021 * common/common-types.h: ... here.
2022
cfe75703
PA
20232015-09-09 Pedro Alves <palves@redhat.com>
2024
2025 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2026 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2027
a85a3079
PA
20282015-09-09 Pedro Alves <palves@redhat.com>
2029
2030 * continuations.c (add_continuation, restore_thread_cleanup)
2031 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2032 (do_all_continuations_thread, do_all_continuations)
2033 (discard_all_continuations_thread_callback)
2034 (discard_all_continuations_thread, discard_all_continuations)
2035 (add_intermediate_continuation)
2036 (do_all_intermediate_continuations_thread_callback)
2037 (do_all_intermediate_continuations_thread)
2038 (do_all_intermediate_continuations)
2039 (discard_all_intermediate_continuations_thread_callback)
2040 (discard_all_intermediate_continuations_thread)
2041 (discard_all_intermediate_continuations): Delete.
2042 * continuations.h (add_continuation, do_all_continuations)
2043 (do_all_continuations_thread, discard_all_continuations)
2044 (discard_all_continuations_thread, add_intermediate_continuation)
2045 (do_all_intermediate_continuations)
2046 (do_all_intermediate_continuations_thread)
2047 (discard_all_intermediate_continuations)
2048 (discard_all_intermediate_continuations_thread): Delete
2049 declarations.
2050 * event-top.c (stdin_event_handler): Delete references to
2051 continuations.
2052 * gdbthread.h (struct thread_info): Delete continuations and
2053 intermediate_continuations fields.
2054 * inf-loop.c (inferior_event_handler): Remove references to
2055 continuations.
2056 * infrun.c (infrun_thread_stop_requested_callback): Remove
2057 references to continuations.
2058 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2059 * thread.c: Don't include "continuations.h".
2060 (clear_thread_inferior_resources): Remove references to
2061 continuations.
2062
0700e23e
PA
20632015-09-09 Pedro Alves <palves@redhat.com>
2064
2065 * infcall.c (struct dummy_frame_context_saver): Delete.
2066 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2067 (dummy_frame_context_saver_drop)
2068 (dummy_frame_context_saver_cleanup)
2069 (dummy_frame_context_saver_get_regs)
2070 (dummy_frame_context_saver_setup): Delete.
2071 * infcall.h (dummy_frame_context_saver_drop)
2072 (dummy_frame_context_saver_cleanup)
2073 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2074 Delete.
2075 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2076 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2077 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2078
cfc31633
PA
20792015-09-09 Pedro Alves <palves@redhat.com>
2080
2081 * breakpoint.c: Include "thread-fsm.h".
2082 (struct until_break_command_continuation_args): Delete.
2083 (struct until_break_fsm): New.
2084 (until_break_fsm_ops): New global.
2085 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2086 (until_break_command_continuation): Delete.
2087 (until_break_fsm_clean_up): New function.
2088 (until_break_fsm_async_reply_reason): New function.
2089 (until_break_command): Adjust to create an until_break_fsm instead
2090 of a continuation.
2091 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2092 here.
2093 * infcmd.c (struct until_next_fsm): New.
2094 (until_next_fsm_ops): New global.
2095 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2096 (until_next_continuation): Delete.
2097 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2098 functions.
2099 (until_next_command): Adjust to create a new until_next_fsm
2100 instead of a continuation.
2101
388a7084
PA
21022015-09-09 Pedro Alves <palves@redhat.com>
2103
2104 * infcall.c: Include thread_fsm.h.
2105 (struct call_return_meta_info): New.
2106 (get_call_return_value): New function, factored out from
2107 call_function_by_hand_dummy.
2108 (struct call_thread_fsm): New.
2109 (call_thread_fsm_ops): New global.
2110 (new_call_thread_fsm, call_thread_fsm_should_stop)
2111 (call_thread_fsm_should_notify_stop): New functions.
2112 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2113 the thread.
2114 (call_function_by_hand_dummy): Create a new call_thread_fsm
2115 instance, associate it with the thread, and wait for the FSM to
2116 finish. If finished successfully, fetch the function's result
2117 value out of the FSM.
2118 * infrun.c (fetch_inferior_event): If the FSM says the stop
2119 shouldn't be notified, don't call normal_stop.
2120 (maybe_remove_breakpoints): New function, factored out from ...
2121 (normal_stop): ... here. Simplify.
2122 * infrun.h (maybe_remove_breakpoints): Declare.
2123 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2124 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2125 (thread_fsm_should_notify_stop): Declare.
2126
243a9253
PA
21272015-09-09 Pedro Alves <palves@redhat.com>
2128
2129 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2130 * breakpoint.c (handle_jit_event): Print debug output.
2131 (bpstat_what): Split event callback handling to ...
2132 (bpstat_run_callbacks): ... this new function.
2133 (momentary_bkpt_print_it): No longer handle bp_finish here.
2134 * breakpoint.h (bpstat_run_callbacks): Declare.
2135 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2136 <thread_fsm>: New field.
2137 (thread_cancel_execution_command): Declare.
2138 * infcmd.c: Include thread-fsm.h.
2139 (struct step_command_fsm): New.
2140 (step_command_fsm_ops): New global.
2141 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2142 (step_1): Adjust to use step_command_fsm_prepare and
2143 prepare_one_step.
2144 (struct step_1_continuation_args): Delete.
2145 (step_1_continuation): Delete.
2146 (step_command_fsm_should_stop): New function.
2147 (step_once): Delete.
2148 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2149 (prepare_one_step): New function, based on step_once.
2150 (until_next_command): Remove step_multi reference.
2151 (struct return_value_info): New.
2152 (print_return_value): Rename to ...
2153 (print_return_value_1): ... this. New struct return_value_info
2154 parameter. Adjust.
2155 (print_return_value): Reimplement as wrapper around
2156 print_return_value_1.
2157 (struct finish_command_fsm): New.
2158 (finish_command_continuation): Delete.
2159 (finish_command_fsm_ops): New global.
2160 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2161 functions.
2162 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2163 New.
2164 (finish_command_continuation_free_arg): Delete.
2165 (finish_command_fsm_async_reply_reason): New.
2166 (finish_backward, finish_forward): Change symbol parameter to a
2167 finish_command_fsm. Adjust.
2168 (finish_command): Create a finish_command_fsm. Adjust.
2169 * infrun.c: Include "thread-fsm.h".
2170 (clear_proceed_status_thread): Delete the thread's FSM.
2171 (infrun_thread_stop_requested_callback): Cancel the thread's
2172 execution command.
2173 (clean_up_just_stopped_threads_fsms): New function.
2174 (fetch_inferior_event): Handle the event_thread's should_stop
2175 method saying the command isn't done yet.
2176 (process_event_stop_test): Run breakpoint callbacks here.
2177 (print_stop_event): Rename to ...
2178 (print_stop_location): ... this.
2179 (restore_current_uiout_cleanup): New function.
2180 (print_stop_event): Reimplement.
2181 (normal_stop): No longer notify the end_stepping_range observers
2182 here handle "step N" nor "finish" here. No longer call
2183 print_stop_event here.
2184 * infrun.h (struct return_value_info): Forward declare.
2185 (print_return_value): Declare.
2186 (print_stop_event): Change prototype.
2187 * thread-fsm.c: New file.
2188 * thread-fsm.h: New file.
2189 * thread.c: Include "thread-fsm.h".
2190 (thread_cancel_execution_command): New function.
2191 (clear_thread_inferior_resources): Call it.
2192 * cli/cli-interp.c (cli_on_normal_stop): New function.
2193 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2194 observer.
2195 * mi/mi-interp.c: Include "thread-fsm.h".
2196 (restore_current_uiout_cleanup): Delete.
2197 (mi_on_normal_stop): If the thread has an FSM associated, and it
2198 finished, ask it for the async-reply-reason to print. Always call
2199 print_stop_event here, regardless of the top-level interpreter.
2200 Check bpstat_what to tell whether an asynchronous breakpoint hit
2201 triggered.
2202 * tui/tui-interp.c (tui_on_normal_stop): New function.
2203 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2204
0b333c5e
PA
22052015-09-09 Pedro Alves <palves@redhat.com>
2206
2207 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2208 check whether the target can async.
2209 * inf-loop.c (inferior_event_handler): Only call target_async if
2210 the target can async.
2211 * infcall.c: Include top.h and interps.h.
2212 (run_inferior_call): For the interpreter to sync mode while
2213 running the infcall. Call wait_sync_command_done instead of
2214 wait_for_inferior plus normal_stop.
2215 * infcmd.c (prepare_execution_command): Don't check whether the
2216 target can async when running in the foreground.
2217 (step_1): Delete synchronous case handling.
2218 (step_once): Always install a continuation, even in sync mode.
2219 (until_next_command, finish_forward): Don't check whether the
2220 target can async.
2221 (attach_command_post_wait, notice_new_inferior): Always install a
2222 continuation, even in sync mode.
2223 * infrun.c (mark_infrun_async_event_handler): New function.
2224 (proceed): In sync mode, mark infrun's event source instead of
2225 waiting for events here.
2226 (fetch_inferior_event): If the target can't async, do a blocking
2227 wait.
2228 (prepare_to_wait): In sync mode, mark infrun's event source.
2229 (infrun_async_inferior_event_handler): No longer bail out if the
2230 target can't async.
2231 * infrun.h (mark_infrun_async_event_handler): New declaration.
2232 * linux-nat.c (linux_nat_wait_1): Remove calls to
2233 set_sigint_trap/clear_sigint_trap.
2234 (linux_nat_terminal_inferior): No longer check whether the target
2235 can async.
2236 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2237 comment.
2238 (mi_execute_command_input_handler): No longer check whether the
2239 target is async. Update and simplify comment.
2240 * target.c (default_target_wait): New function.
2241 * target.h (struct target_ops) <to_wait>: Now defaults to
2242 default_target_wait.
2243 (default_target_wait): Declare.
2244 * top.c (wait_sync_command_done): New function, factored out from
2245 ...
2246 (maybe_wait_sync_command_done): ... this.
2247 * top.h (wait_sync_command_done): Declare.
2248 * target-delegates.c: Regenerate.
2249
0568462b
MM
22502015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2251
2252 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2253 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2254 Remove include of sys/utsname.h.
2255 (linux_determine_kernel_ptr_bits): Remove.
2256 (linux_determine_kernel_start): New.
2257 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2258 Update check.
2259 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2260 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2261 initialization.
2262 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2263 assignment.
2264
72e02483
PA
22652015-09-07 Pedro Alves <palves@redhat.com>
2266
2267 * guile/guile-internal.h (as_a_scm_t_subr): New.
2268 * guile/guile.c (misc_guile_functions): Use it.
2269 * guile/scm-arch.c (arch_functions): Use it.
2270 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2271 Use it.
2272 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2273 * guile/scm-cmd.c (command_functions): Use it.
2274 * guile/scm-disasm.c (disasm_functions): Use it.
2275 * guile/scm-exception.c (exception_functions)
2276 (private_exception_functions): Use it.
2277 * guile/scm-frame.c (frame_functions)
2278 * guile/scm-gsmob.c (gsmob_functions): Use it.
2279 * guile/scm-iterator.c (iterator_functions): Use it.
2280 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2281 * guile/scm-math.c (math_functions): Use it.
2282 * guile/scm-objfile.c (objfile_functions): Use it.
2283 * guile/scm-param.c (parameter_functions): Use it.
2284 * guile/scm-ports.c (port_functions, private_port_functions): Use
2285 it.
2286 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2287 * guile/scm-progspace.c (pspace_functions): Use it.
2288 * guile/scm-string.c (string_functions): Use it.
2289 * guile/scm-symbol.c (symbol_functions): Use it.
2290 * guile/scm-symtab.c (symtab_functions): Use it.
2291 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2292 it.
2293 * guile/scm-value.c (value_functions): Use it.
2294
e65b5245
AB
22952015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2296
2297 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2298 (tui_next_win): Likewise.
2299 (tui_prev_win): Likewise.
2300 (tui_partial_win_by_name): Likewise.
2301 (tui_init_generic_part): Likewise.
2302 (init_content_element): Likewise.
2303 (tui_del_window): Likewise.
2304 (tui_free_window): Likewise.
2305 (tui_del_data_windows): Likewise.
2306 (tui_free_data_content): Likewise.
2307 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2308 * tui/tui-regs.c (tui_show_register_group): Likewise.
2309 * tui/tui-win.c (tui_resize_all): Likewise.
2310 (tui_set_focus): Likewise.
2311 (tui_set_win_height): Likewise.
2312 (make_invisible_and_set_new_height): Likewise.
2313 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2314 * tui/tui-wingeneral.c (make_visible): Likewise.
2315
b03e6ad9
AB
23162015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2317
2318 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2319
be903358
AB
23202015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2321
2322 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2323 pointer.
2324 * dbxread.c (dbx_end_psymtab): Likewise.
2325 * gnu-nat.c (gnu_write_inferior): Likewise.
2326 * mdebugread.c (cross_ref): Likewise.
2327 * p-valprint.c (pascal_val_print): Likewise.
2328 * xcoffread.c (xcoff_end_psymtab): Likewise.
2329
02f024f9
YQ
23302015-09-04 Yao Qi <yao.qi@linaro.org>
2331
2332 * NEWS: Mention the aarch64 multi-arch debugging support.
2333
cd7c1778
PMR
23342015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2335
2336 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2337 type instead of a TYPE_CODE_INT one for the string_char_type
2338 and the ada_primitive_type_char types.
2339
39edd165
YQ
23402015-09-03 Yao Qi <yao.qi@linaro.org>
2341
2342 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2343 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2344 aarch64_linux_region_ok_for_watchpoint.
2345 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2346 New function.
2347 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2348 Declare it.
2349
6c214e7c
PP
23502015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2351
2352 * gdb_obstack.h (obstack_strdup): Declare.
2353 * gdb_obstack.c (obstack_strdup): Define.
2354 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2355 * gdbarch.c: Regenerate.
2356 * gdbarch.h: Regenerate.
2357 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2358
eed8b28a
PP
23592015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2360
2361 * gdbtypes.c (copy_type_recursive): Update documentation.
2362
73c6b475
SDJ
23632015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2364
2365 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2366 as zero.
2367
ad1c917a
SDJ
23682015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2369
2370 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2371
3bd7e5b7
SDJ
23722015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2373
2374 * solib-svr4.c (solib_event_probe_action): Call
2375 get_probe_argument_count using TRY...CATCH.
2376 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2377
f469e8ce
SDJ
23782015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2379
2380 * probe.h (struct probe_ops) <get_probe_argument_count,
2381 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2382 the comment that the function can throw an exception.
2383 (get_probe_argument_count): Likewise.
2384 (evaluate_probe_argument): Likewise.
2385 * stap-probe.c (stap_get_opcode): Call error instead of
2386 internal_error.
2387 (stap_get_expected_argument_type): Likewise. Add argument
2388 'probe'. Improve error message by mentioning the probe's name.
2389 (stap_parse_probe_arguments): Adjust call to
2390 stap_get_expected_argument_type.
2391 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2392 not zero. Call internal_error if GDB requests an argument but the
2393 probe has no arguments.
2394
dc5c8746
PMR
23952015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2396
2397 * ada-lang.c (ada_resolve_function): Do not ask the user what
2398 match to use when in completion mode.
2399
136765ea
AB
24002015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2401
2402 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2403 cast of NULL.
2404
90b81c5f
MF
24052015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2406
2407 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2408 call_abi using XSHAL_ABI macro.
2409
1cd36e54
DE
24102015-08-29 Doug Evans <xdje42@gmail.com>
2411
2412 * symtab.h (struct symbol): Tweak comment.
2413
8f57eec2
PP
24142015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2415
2416 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2417 gdbarch obstack instead of on the heap. Update commentary
2418 accordingly.
2419
38eebd71
JB
24202015-08-28 Joel Brobecker <brobecker@adacore.com>
2421
2422 GDB 7.10 released.
2423
d63dd61e
SM
24242015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2425
2426 * NEWS: Update entry about non-8-bits addressable memory.
2427
6f059256
UW
24282015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2429
2430 Revert:
2431 2014-11-06 Doug Evans <xdje42@gmail.com>
2432 * solib.c (solib_global_lookup): Fetch arch from objfile,
2433 not target_gdbarch.
2434
70987a92 24352015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
2436
2437 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2438 attempt to relocate a TLS variable offset.
2439
70987a92 24402015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
2441
2442 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2443 registered yet. Set inferior_ptid while calling target_read_memory.
2444
70987a92 24452015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
2446
2447 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2448 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2449 * linux-nat.c (check_stopped_by_breakpoint): Use
2450 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2451
70987a92 24522015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
2453
2454 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2455 thread was not yet discovered, use thread_from_lwp instead of
2456 calling thread_db_find_new_threads_1.
2457
f5cdf498
SM
24582015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2459
2460 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2461 statements.
2462
fd2ae5d6
SM
24632015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2464
2465 * NEWS: Document support for non-8-bits addressable memory.
2466
14d88147
PA
24672015-08-27 Pedro Alves <palves@redhat.com>
2468
2469 * configure.ac: Remove AC_TYPE_SIGNAL call.
2470 * configure, config.in: Regenerate.
2471
a40805d4
PA
24722015-08-27 Pedro Alves <palves@redhat.com>
2473
2474 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2475 * extension-priv.h: Include signal.h.
2476 (struct signal_handler) <handler>: Change type to sighandler_t.
2477 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2478 * inflow.c (sigint_ours, sigquit_ours): Change type to
2479 sighandler_t.
2480 (child_terminal_inferior): Remove casts.
2481 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2482 (osig): Change type to sighandler_t.
2483 * nto-procfs.c (ofunc): Change type to sighandler_t.
2484 (procfs_wait): Remove casts.
2485 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2486 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2487 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2488
0750520d
PA
24892015-08-27 Pedro Alves <palves@redhat.com>
2490
2491 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2492 * gnulib/aclocal.m4: Renegerate.
2493 * gnulib/config.in: Renegerate.
2494 * gnulib/configure: Renegerate.
2495 * gnulib/import/Makefile.am: Update.
2496 * gnulib/import/Makefile.in: Regenerate.
2497 * gnulib/import/m4/gnulib-cache.m4: Update.
2498 * gnulib/import/m4/gnulib-comp.m4: Update.
2499 * gnulib/import/m4/signal_h.m4: New file.
2500 * gnulib/import/signal.in.h: New file.
2501
a5c0808e
PA
25022015-08-27 Pedro Alves <palves@redhat.com>
2503
2504 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2505 (MIN_MEMORY_PACKET_SIZE): New.
2506 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2507 (get_memory_packet_size): Adjust. No longer limit the max packet
2508 size.
2509 (set_memory_packet_size): Adjust, and remove dead code.
2510 (remote_check_symbols): Use xmalloc and a cleanup instead of
2511 alloca.
2512 (remote_packet_size): No longer cap the packet size.
2513 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2514
cdaec3f3
LM
25152015-08-26 Luis Machado <lgustavo@codesourcery.com>
2516
2517 * compile/compile.c (compile_to_object): Mention language in
2518 error message.
2519
e9756d52
PP
25202015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2521
2522 * target.c (target_pre_inferior): Unset attach_flag.
2523
1dc7a623
SM
25242015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2525
2526 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2527 * gdbarch.c: Re-generate.
2528
8d749320
SM
25292015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2530
6711b7f8
SM
2531 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2532 function with the XNEW-family equivalent.
8d749320
SM
2533 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2534 * ada-exp.y (write_ambiguous_var): Likewise.
2535 * ada-lang.c (resolve_subexp): Likewise.
2536 (user_select_syms): Likewise.
2537 (assign_aggregate): Likewise.
2538 (ada_evaluate_subexp): Likewise.
2539 (cache_symbol): Likewise.
2540 * addrmap.c (allocate_key): Likewise.
2541 (addrmap_create_mutable): Likewise.
2542 * aix-thread.c (sync_threadlists): Likewise.
2543 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2544 (alpha_gdbarch_init): Likewise.
2545 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2546 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2547 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2548 * arm-tdep.c (push_stack_item): Likewise.
2549 (arm_displaced_step_copy_insn): Likewise.
2550 (arm_gdbarch_init): Likewise.
2551 (_initialize_arm_tdep): Likewise.
2552 * avr-tdep.c (push_stack_item): Likewise.
2553 * ax-general.c (new_agent_expr): Likewise.
2554 * block.c (block_initialize_namespace): Likewise.
2555 * breakpoint.c (alloc_counted_command_line): Likewise.
2556 (update_dprintf_command_list): Likewise.
2557 (parse_breakpoint_sals): Likewise.
2558 (decode_static_tracepoint_spec): Likewise.
2559 (until_break_command): Likewise.
2560 (clear_command): Likewise.
2561 (update_global_location_list): Likewise.
2562 (get_breakpoint_objfile_data) Likewise.
2563 * btrace.c (ftrace_new_function): Likewise.
2564 (btrace_set_insn_history): Likewise.
2565 (btrace_set_call_history): Likewise.
2566 * buildsym.c (add_symbol_to_list): Likewise.
2567 (record_pending_block): Likewise.
2568 (start_subfile): Likewise.
2569 (start_buildsym_compunit): Likewise.
2570 (push_subfile): Likewise.
2571 (end_symtab_get_static_block): Likewise.
2572 (buildsym_init): Likewise.
2573 * cli/cli-cmds.c (source_command): Likewise.
2574 * cli/cli-decode.c (add_cmd): Likewise.
2575 * cli/cli-script.c (build_command_line): Likewise.
2576 (setup_user_args): Likewise.
2577 (realloc_body_list): Likewise.
2578 (process_next_line): Likewise.
2579 (copy_command_lines): Likewise.
2580 * cli/cli-setshow.c (do_set_command): Likewise.
2581 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2582 * coffread.c (coff_locate_sections): Likewise.
2583 (coff_symtab_read): Likewise.
2584 (coff_read_struct_type): Likewise.
2585 * common/cleanups.c (make_my_cleanup2): Likewise.
2586 * common/common-exceptions.c (throw_it): Likewise.
2587 * common/filestuff.c (make_cleanup_close): Likewise.
2588 * common/format.c (parse_format_string): Likewise.
2589 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2590 * compile/compile-object-load.c (munmap_list_add): Likewise.
2591 (compile_object_load): Likewise.
2592 * compile/compile-object-run.c (compile_object_run): Likewise.
2593 * compile/compile.c (append_args): Likewise.
2594 * corefile.c (specify_exec_file_hook): Likewise.
2595 * cp-support.c (make_symbol_overload_list): Likewise.
2596 * cris-tdep.c (push_stack_item): Likewise.
2597 (cris_gdbarch_init): Likewise.
2598 * ctf.c (ctf_trace_file_writer_new): Likewise.
2599 * dbxread.c (init_header_files): Likewise.
2600 (add_new_header_file): Likewise.
2601 (init_bincl_list): Likewise.
2602 (dbx_end_psymtab): Likewise.
2603 (start_psymtab): Likewise.
2604 (dbx_end_psymtab): Likewise.
2605 * dcache.c (dcache_init): Likewise.
2606 * dictionary.c (dict_create_hashed): Likewise.
2607 (dict_create_hashed_expandable): Likewise.
2608 (dict_create_linear): Likewise.
2609 (dict_create_linear_expandable): Likewise.
2610 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2611 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2612 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2613 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2614 (decode_frame_entry_1): Likewise.
2615 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2616 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2617 * dwarf2read.c (dwarf2_has_info): Likewise.
2618 (create_signatured_type_table_from_index): Likewise.
2619 (dwarf2_read_index): Likewise.
2620 (dw2_get_file_names_reader): Likewise.
2621 (create_all_type_units): Likewise.
2622 (read_cutu_die_from_dwo): Likewise.
2623 (init_tu_and_read_dwo_dies): Likewise.
2624 (init_cutu_and_read_dies): Likewise.
2625 (create_all_comp_units): Likewise.
2626 (queue_comp_unit): Likewise.
2627 (inherit_abstract_dies): Likewise.
2628 (read_call_site_scope): Likewise.
2629 (dwarf2_add_field): Likewise.
2630 (dwarf2_add_typedef): Likewise.
2631 (dwarf2_add_member_fn): Likewise.
2632 (attr_to_dynamic_prop): Likewise.
2633 (abbrev_table_alloc_abbrev): Likewise.
2634 (abbrev_table_read_table): Likewise.
2635 (add_include_dir): Likewise.
2636 (add_file_name): Likewise.
2637 (dwarf_decode_line_header): Likewise.
2638 (dwarf2_const_value_attr): Likewise.
2639 (dwarf_alloc_block): Likewise.
2640 (parse_macro_definition): Likewise.
2641 (set_die_type): Likewise.
2642 (write_psymtabs_to_index): Likewise.
2643 (create_cus_from_index): Likewise.
2644 (dwarf2_create_include_psymtab): Likewise.
2645 (process_psymtab_comp_unit_reader): Likewise.
2646 (build_type_psymtab_dependencies): Likewise.
2647 (read_comp_units_from_section): Likewise.
2648 (compute_compunit_symtab_includes): Likewise.
2649 (create_dwo_unit_in_dwp_v1): Likewise.
2650 (create_dwo_unit_in_dwp_v2): Likewise.
2651 (read_func_scope): Likewise.
2652 (process_structure_scope): Likewise.
2653 (mark_common_block_symbol_computed): Likewise.
2654 (load_partial_dies): Likewise.
2655 (dwarf2_symbol_mark_computed): Likewise.
2656 * elfread.c (elf_symfile_segments): Likewise.
2657 (elf_read_minimal_symbols): Likewise.
2658 * environ.c (make_environ): Likewise.
2659 * eval.c (evaluate_subexp_standard): Likewise.
2660 * event-loop.c (create_file_handler): Likewise.
2661 (create_async_signal_handler): Likewise.
2662 (create_async_event_handler): Likewise.
2663 (create_timer): Likewise.
2664 * exec.c (build_section_table): Likewise.
2665 * fbsd-nat.c (fbsd_remember_child): Likewise.
2666 * fork-child.c (fork_inferior): Likewise.
2667 * frv-tdep.c (new_variant): Likewise.
2668 * gdbarch.sh (gdbarch_alloc): Likewise.
2669 (append_name): Likewise.
2670 * gdbtypes.c (rank_function): Likewise.
2671 (copy_type_recursive): Likewise.
2672 (add_dyn_prop): Likewise.
2673 * gnu-nat.c (make_proc): Likewise.
2674 (make_inf): Likewise.
2675 (gnu_write_inferior): Likewise.
2676 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2677 (build_std_type_info_type): Likewise.
2678 * guile/scm-param.c (compute_enum_list): Likewise.
2679 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2680 * guile/scm-value.c (gdbscm_value_call): Likewise.
2681 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2682 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2683 (read_unwind_info): Likewise.
2684 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2685 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2686 (call_function_by_hand_dummy): Likewise.
2687 * infcmd.c (step_once): Likewise.
2688 (finish_forward): Likewise.
2689 (attach_command): Likewise.
2690 (notice_new_inferior): Likewise.
2691 * inferior.c (add_inferior_silent): Likewise.
2692 * infrun.c (add_displaced_stepping_state): Likewise.
2693 (save_infcall_control_state): Likewise.
2694 (save_inferior_ptid): Likewise.
2695 (_initialize_infrun): Likewise.
2696 * jit.c (bfd_open_from_target_memory): Likewise.
2697 (jit_gdbarch_data_init): Likewise.
2698 * language.c (add_language): Likewise.
2699 * linespec.c (decode_line_2): Likewise.
2700 * linux-nat.c (add_to_pid_list): Likewise.
2701 (add_initial_lwp): Likewise.
2702 * linux-thread-db.c (add_thread_db_info): Likewise.
2703 (record_thread): Likewise.
2704 (info_auto_load_libthread_db): Likewise.
2705 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2707 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2708 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2709 * macrocmd.c (macro_define_command): Likewise.
2710 * macroexp.c (gather_arguments): Likewise.
2711 * macroscope.c (sal_macro_scope): Likewise.
2712 * macrotab.c (new_macro_table): Likewise.
2713 * mdebugread.c (push_parse_stack): Likewise.
2714 (parse_partial_symbols): Likewise.
2715 (parse_symbol): Likewise.
2716 (psymtab_to_symtab_1): Likewise.
2717 (new_block): Likewise.
2718 (new_psymtab): Likewise.
2719 (mdebug_build_psymtabs): Likewise.
2720 (add_pending): Likewise.
2721 (elfmdebug_build_psymtabs): Likewise.
2722 * mep-tdep.c (mep_gdbarch_init): Likewise.
2723 * mi/mi-main.c (mi_execute_command): Likewise.
2724 * mi/mi-parse.c (mi_parse_argv): Likewise.
2725 * minidebug.c (lzma_open): Likewise.
2726 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2727 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2728 * mips-tdep.c (mips_gdbarch_init): Likewise.
2729 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2730 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2731 * mt-tdep.c (mt_registers_info): Likewise.
2732 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2733 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2734 (linux_enable_pt): Likewise.
2735 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2736 (linux_xfer_osdata_processgroups): Likewise.
2737 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2738 * nto-procfs.c (procfs_meminfo): Likewise.
2739 * objc-lang.c (start_msglist): Likewise.
2740 (selectors_info): Likewise.
2741 (classes_info): Likewise.
2742 (find_methods): Likewise.
2743 * objfiles.c (allocate_objfile): Likewise.
2744 (update_section_map): Likewise.
2745 * osabi.c (gdbarch_register_osabi): Likewise.
2746 (gdbarch_register_osabi_sniffer): Likewise.
2747 * parse.c (start_arglist): Likewise.
2748 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2749 (hwdebug_insert_point): Likewise.
2750 * printcmd.c (display_command): Likewise.
2751 (ui_printf): Likewise.
2752 * procfs.c (create_procinfo): Likewise.
2753 (load_syscalls): Likewise.
2754 (proc_get_LDT_entry): Likewise.
2755 (proc_update_threads): Likewise.
2756 * prologue-value.c (make_pv_area): Likewise.
2757 (pv_area_store): Likewise.
2758 * psymtab.c (extend_psymbol_list): Likewise.
2759 (init_psymbol_list): Likewise.
2760 (allocate_psymtab): Likewise.
2761 * python/py-inferior.c (add_thread_object): Likewise.
2762 * python/py-param.c (compute_enum_values): Likewise.
2763 * python/py-value.c (valpy_call): Likewise.
2764 * python/py-varobj.c (py_varobj_iter_next): Likewise.
2765 * python/python.c (ensure_python_env): Likewise.
2766 * record-btrace.c (record_btrace_start_replaying): Likewise.
2767 * record-full.c (record_full_reg_alloc): Likewise.
2768 (record_full_mem_alloc): Likewise.
2769 (record_full_end_alloc): Likewise.
2770 (record_full_core_xfer_partial): Likewise.
2771 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2772 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2773 * remote-notif.c (remote_notif_state_allocate): Likewise.
2774 * remote.c (demand_private_info): Likewise.
2775 (remote_notif_stop_alloc_reply): Likewise.
2776 (remote_enable_btrace): Likewise.
2777 * reverse.c (save_bookmark_command): Likewise.
2778 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2779 * rx-tdep.c (rx_gdbarch_init): Likewise.
2780 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2781 * ser-go32.c (dos_get_tty_state): Likewise.
2782 (dos_copy_tty_state): Likewise.
2783 * ser-mingw.c (ser_windows_open): Likewise.
2784 (ser_console_wait_handle): Likewise.
2785 (ser_console_get_tty_state): Likewise.
2786 (make_pipe_state): Likewise.
2787 (net_windows_open): Likewise.
2788 * ser-unix.c (hardwire_get_tty_state): Likewise.
2789 (hardwire_copy_tty_state): Likewise.
2790 * solib-aix.c (solib_aix_new_lm_info): Likewise.
2791 * solib-dsbt.c (dsbt_current_sos): Likewise.
2792 (dsbt_relocate_main_executable): Likewise.
2793 * solib-frv.c (frv_current_sos): Likewise.
2794 (frv_relocate_main_executable): Likewise.
2795 * solib-spu.c (spu_bfd_fopen): Likewise.
2796 * solib-svr4.c (lm_info_read): Likewise.
2797 (svr4_copy_library_list): Likewise.
2798 (svr4_default_sos): Likewise.
2799 * source.c (find_source_lines): Likewise.
2800 (line_info): Likewise.
2801 (add_substitute_path_rule): Likewise.
2802 * spu-linux-nat.c (spu_bfd_open): Likewise.
2803 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2804 * stabsread.c (dbx_lookup_type): Likewise.
2805 (read_type): Likewise.
2806 (read_member_functions): Likewise.
2807 (read_struct_fields): Likewise.
2808 (read_baseclasses): Likewise.
2809 (read_args): Likewise.
2810 (_initialize_stabsread): Likewise.
2811 * stack.c (func_command): Likewise.
2812 * stap-probe.c (handle_stap_probe): Likewise.
2813 * symfile.c (addrs_section_sort): Likewise.
2814 (addr_info_make_relative): Likewise.
2815 (load_section_callback): Likewise.
2816 (add_symbol_file_command): Likewise.
2817 (init_filename_language_table): Likewise.
2818 * symtab.c (create_filename_seen_cache): Likewise.
2819 (sort_search_symbols_remove_dups): Likewise.
2820 (search_symbols): Likewise.
2821 * target.c (make_cleanup_restore_target_terminal): Likewise.
2822 * thread.c (new_thread): Likewise.
2823 (enable_thread_stack_temporaries): Likewise.
2824 (make_cleanup_restore_current_thread): Likewise.
2825 (thread_apply_all_command): Likewise.
2826 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2827 * top.c (gdb_readline_wrapper): Likewise.
2828 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2829 * tracepoint.c (trace_find_line_command): Likewise.
2830 (all_tracepoint_actions_and_cleanup): Likewise.
2831 (make_cleanup_restore_current_traceframe): Likewise.
2832 (get_uploaded_tp): Likewise.
2833 (get_uploaded_tsv): Likewise.
2834 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2835 (tui_alloc_win_info): Likewise.
2836 (tui_alloc_content): Likewise.
2837 (tui_add_content_elements): Likewise.
2838 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
2839 (tui_set_disassem_content): Likewise.
2840 * ui-file.c (ui_file_new): Likewise.
2841 (stdio_file_new): Likewise.
2842 (tee_file_new): Likewise.
2843 * utils.c (make_cleanup_restore_integer): Likewise.
2844 (add_internal_problem_command): Likewise.
2845 * v850-tdep.c (v850_gdbarch_init): Likewise.
2846 * valops.c (find_oload_champ): Likewise.
2847 * value.c (allocate_value_lazy): Likewise.
2848 (record_latest_value): Likewise.
2849 (create_internalvar): Likewise.
2850 * varobj.c (install_variable): Likewise.
2851 (new_variable): Likewise.
2852 (new_root_variable): Likewise.
2853 (cppush): Likewise.
2854 (_initialize_varobj): Likewise.
2855 * windows-nat.c (windows_make_so): Likewise.
2856 * x86-nat.c (x86_add_process): Likewise.
2857 * xcoffread.c (arrange_linetable): Likewise.
2858 (allocate_include_entry): Likewise.
2859 (process_linenos): Likewise.
2860 (SYMBOL_DUP): Likewise.
2861 (xcoff_start_psymtab): Likewise.
2862 (xcoff_end_psymtab): Likewise.
2863 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
2864 * xtensa-tdep.c (xtensa_register_type): Likewise.
2865 * gdbarch.c: Regenerate.
2866 * gdbarch.h: Regenerate.
2867
17d8546e
DB
28682015-08-25 Don Breazeal <donb@codesourcery.com>
2869
2870 * infrun.c (follow_exec): Re-order operations for
2871 handling follow-exec-mode "new".
2872 (handle_inferior_event_1): Assign ecs->event_thread
2873 to the current thread.
2874 * remote.c (get_remote_arch_state): Add an assertion.
2875
ba49e44b
PA
28762015-08-26 Pedro Alves <palves@redhat.com>
2877
2878 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
2879
7541ab03 28802015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 2881
7541ab03 2882 PR gdb/18804
abc56d60
PA
2883 * defs.h (maybe_quit): Declare.
2884 (QUIT): Now calls maybe_quit.
2885 * event-loop.c (clear_async_signal_handler)
2886 (async_signal_handler_is_marked): New functions.
2887 * event-loop.h (async_signal_handler_is_marked)
2888 (clear_async_signal_handler): New declarations.
2889 * remote.c (remote_check_pending_interrupt): New function.
2890 (interrupt_query): Use make_cleanup_restore_target_terminal. No
2891 longer check whether the target is async. If waiting for a stop
2892 reply, and a Ctrl-C as been sent to the target, offer to
2893 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
2894 Otherwise do not disconnect and throw a quit.
2895 (_initialize_remote): Install remote_check_pending_interrupt as
2896 to_check_pending_interrupt.
2897 * target.c (target_check_pending_interrupt): New function.
2898 * target.h (struct target_ops) <to_check_pending_interrupt>: New
2899 field.
2900 (target_check_pending_interrupt): New declaration.
2901 * utils.c (maybe_quit): New function.
2902 * target-delegates.c: Regenerate.
2903
dfe7f77c
YQ
29042015-08-25 Yao Qi <yao.qi@linaro.org>
2905
2906 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
2907 Rename local variable pid to tid, and get lwpid of lwp. Update
2908 debug output.
2909
63e43d3a
PMR
29102015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
2911
2912 * ada-lang.c (ada_read_var_value): Add a var_block argument
2913 and pass it to default_read_var_value.
2914 * block.c (block_static_link): New accessor.
2915 * block.h (block_static_link): Declare it.
2916 * buildsym.c (finish_block_internal): Add a static_link
2917 argument. If there is a static link, associate it to the new
2918 block.
2919 (finish_block): Add a static link argument and pass it to
2920 finish_block_internal.
2921 (end_symtab_get_static_block): Update calls to finish_block and
2922 to finish_block_internal.
2923 (end_symtab_with_blockvector): Update call to
2924 finish_block_internal.
2925 * buildsym.h: Forward-declare struct dynamic_prop.
2926 (struct context_stack): Add a static_link field.
2927 (finish_block): Add a static link argument.
2928 * c-exp.y: Remove an obsolete comment (evaluation of variables
2929 already start from the selected frame, and now they climb *up*
2930 the call stack) and propagate the block information to the
2931 produced expression.
2932 * d-exp.y: Likewise.
2933 * f-exp.y: Likewise.
2934 * go-exp.y: Likewise.
2935 * jv-exp.y: Likewise.
2936 * m2-exp.y: Likewise.
2937 * p-exp.y: Likewise.
2938 * coffread.c (coff_symtab_read): Update calls to finish_block.
2939 * dbxread.c (process_one_symbol): Likewise.
2940 * xcoffread.c (read_xcoff_symtab): Likewise.
2941 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
2942 "sym" parameter to struct block_symbol, update its uses and pass
2943 its block to calls to read_var_value.
2944 (convert_symbol_sym): Update the calls to convert_one_symbol.
2945 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
2946 call to read_var_value.
2947 * dwarf2loc.c (block_op_get_frame_base): New.
2948 (dwarf2_block_frame_base_locexpr_funcs): Implement the
2949 get_frame_base method.
2950 (dwarf2_block_frame_base_loclist_funcs): Likewise.
2951 (dwarf2locexpr_baton_eval): Add a frame argument and use it
2952 instead of the selected frame in order to evaluate the
2953 expression.
2954 (dwarf2_evaluate_property): Add a frame argument. Update call
2955 to dwarf2_locexpr_baton_eval to provide a frame in available and
2956 to handle the absence of address stack.
2957 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
2958 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
2959 declaration.
2960 (read_func_scope): Record any available static link description.
2961 Update call to finish_block.
2962 (read_lexical_block_scope): Update call to finish_block.
2963 * findvar.c (follow_static_link): New.
2964 (get_hosting_frame): New.
2965 (default_read_var_value): Add a var_block argument. Use
2966 get_hosting_frame to handle non-local references.
2967 (read_var_value): Add a var_block argument and pass it to the
2968 LA_READ_VAR_VALUE method.
2969 * gdbtypes.c (resolve_dynamic_range): Update calls to
2970 dwarf2_evaluate_property.
2971 (resolve_dynamic_type_internal): Likewise.
2972 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
2973 read_var_value, passing it the block coming from symbol lookup.
2974 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
2975 read_var_value (TODO).
2976 * infcmd.c (finish_command_continuation): Update call to
2977 read_var_value, passing it the block coming from symbol lookup.
2978 * infrun.c (insert_exception_resume_breakpoint): Likewise.
2979 * language.h (struct language_defn): Add a var_block argument to
2980 the LA_READ_VAR_VALUE method.
2981 * objfiles.c (struct static_link_htab_entry): New.
2982 (static_link_htab_entry_hash): New.
2983 (static_link_htab_entry_eq): New.
2984 (objfile_register_static_link): New.
2985 (objfile_lookup_static_link): New.
2986 (free_objfile): Free the STATIC_LINKS hashed map if needed.
2987 * objfiles.h: Include hashtab.h.
2988 (struct objfile): Add a static_links field.
2989 (objfile_register_static_link): New.
2990 (objfile_lookup_static_link): New.
2991 * printcmd.c (print_variable_and_value): Update call to
2992 read_var_value.
2993 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2994 * python/py-frame.c (frapy_read_var): Update call to
2995 read_var_value, passing it the block coming from symbol lookup.
2996 * python/py-framefilter.c (extract_sym): Add a sym_block
2997 parameter and set the pointed value to NULL (TODO).
2998 (enumerate_args): Update call to extract_sym.
2999 (enumerate_locals): Update calls to extract_sym and to
3000 read_var_value.
3001 * python/py-symbol.c (sympy_value): Update call to
3002 read_var_value (TODO).
3003 * stack.c (read_frame_local): Update call to read_var_value.
3004 (read_frame_arg): Likewise.
3005 (return_command): Likewise.
3006 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3007 method.
3008 (struct symbol): Add a block field.
3009 (SYMBOL_BLOCK): New accessor.
3010 * valops.c (value_of_variable): Remove frame/block handling and
3011 pass the block argument to read_var_value, which does this job
3012 now.
3013 (value_struct_elt_for_reference): Update calls to
3014 read_var_value.
3015 (value_of_this): Pass the block found to read_var_value.
3016 * value.h (read_var_value): Add a var_block argument.
3017 (default_read_var_value): Likewise.
3018
ed8b7b42
YQ
30192015-08-25 Yao Qi <yao.qi@linaro.org>
3020
3021 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3022 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3023 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3024
db3cb7cb
YQ
30252015-08-25 Yao Qi <yao.qi@linaro.org>
3026
3027 * Makefile.in (aarch64-liunx.o): New rule.
3028 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3029 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3030 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3031 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3032 extern.
3033 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3034 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3035 * nat/aarch64-linux.c: New file.
3036 * nat/aarch64-linux.h: New file.
3037
f6011a1c
YQ
30382015-08-25 Yao Qi <yao.qi@linaro.org>
3039
3040 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3041 lwp_arch_private_info and ptid_of_lwp.
3042
5e35436e
YQ
30432015-08-25 Yao Qi <yao.qi@linaro.org>
3044
3045 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3046 Move it to nat/aarch64-linux-hw-point.c.
3047 (debug_reg_change_callback): Likewise.
3048 (aarch64_notify_debug_reg_change): :Likewise.
3049 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3050 (aarch64_dr_update_callback_param): New.
3051 (debug_reg_change_callback): New function.
3052 (aarch64_notify_debug_reg_change): Likewise.
3053 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3054 Remove the declaration.
3055
4a8a7965
YQ
30562015-08-25 Yao Qi <yao.qi@linaro.org>
3057
3058 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3059 Call current_lwp_ptid.
3060
32a271ee
YQ
30612015-08-25 Yao Qi <yao.qi@linaro.org>
3062
3063 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3064 debug_printf.
3065
5e137137
YQ
30662015-08-25 Yao Qi <yao.qi@linaro.org>
3067
3068 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3069 ptid_get_pid rather than ptid_get_lwp.
3070
73b8c1fd
PA
30712015-08-24 Pedro Alves <palves@redhat.com>
3072
3073 * NEWS (New commands): Mention set/show remote
3074 multiprocess-extensions-packet.
3075 * remote.c (remote_query_supported): Only tell the server to use
3076 the multiprocess extensions if the user hasn't force-disabled them
3077 with "set remote multiprocess-extensions-packet off".
3078
4a626d0a
PA
30792015-08-24 Pedro Alves <palves@redhat.com>
3080
3081 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3082 1029a8112290f6eee9d7878a391c49db42c999bd.
3083 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3084 Regenerate.
3085 * gnulib/import/Makefile.am: Update.
3086 * gnulib/import/Makefile.in: Update.
3087 * gnulib/import/alloca.in.h: Update.
3088 * gnulib/import/basename-lgpl.c: Update.
3089 * gnulib/import/canonicalize-lgpl.c: Update.
3090 * gnulib/import/config.charset: Update.
3091 * gnulib/import/dirent.in.h: Update.
3092 * gnulib/import/dirfd.c: Update.
3093 * gnulib/import/dirname-lgpl.c: Update.
3094 * gnulib/import/dirname.h: Update.
3095 * gnulib/import/dosname.h: Update.
3096 * gnulib/import/errno.in.h: Update.
3097 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3098 * gnulib/import/extra/snippet/c++defs.h: Update.
3099 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3100 * gnulib/import/extra/update-copyright: Update.
3101 * gnulib/import/float+.h: Update.
3102 * gnulib/import/float.c: Update.
3103 * gnulib/import/float.in.h: Update.
3104 * gnulib/import/fnmatch.c: Update.
3105 * gnulib/import/fnmatch.in.h: Update.
3106 * gnulib/import/fnmatch_loop.c: Update.
3107 * gnulib/import/fpucw.h: Update.
3108 * gnulib/import/frexp.c: Update.
3109 * gnulib/import/frexpl.c: Update.
3110 * gnulib/import/gettimeofday.c: Update.
3111 * gnulib/import/inttypes.in.h: Update.
3112 * gnulib/import/isnan.c: Update.
3113 * gnulib/import/isnand-nolibm.h: Update.
3114 * gnulib/import/isnand.c: Update.
3115 * gnulib/import/isnanl-nolibm.h: Update.
3116 * gnulib/import/isnanl.c: Update.
3117 * gnulib/import/itold.c: Update.
3118 * gnulib/import/localcharset.c: Update.
3119 * gnulib/import/localcharset.h: Update.
3120 * gnulib/import/lstat.c: Update.
3121 * gnulib/import/m4/00gnulib.m4: Update.
3122 * gnulib/import/m4/absolute-header.m4: Update.
3123 * gnulib/import/m4/alloca.m4: Update.
3124 * gnulib/import/m4/canonicalize.m4: Update.
3125 * gnulib/import/m4/codeset.m4: Update.
3126 * gnulib/import/m4/configmake.m4: Update.
3127 * gnulib/import/m4/dirent_h.m4: Update.
3128 * gnulib/import/m4/dirfd.m4: Update.
3129 * gnulib/import/m4/dirname.m4: Update.
3130 * gnulib/import/m4/double-slash-root.m4: Update.
3131 * gnulib/import/m4/eealloc.m4: Update.
3132 * gnulib/import/m4/errno_h.m4: Update.
3133 * gnulib/import/m4/exponentd.m4: Update.
3134 * gnulib/import/m4/exponentl.m4: Update.
3135 * gnulib/import/m4/extensions.m4: Update.
3136 * gnulib/import/m4/extern-inline.m4: Update.
3137 * gnulib/import/m4/fcntl-o.m4: Update.
3138 * gnulib/import/m4/float_h.m4: Update.
3139 * gnulib/import/m4/fnmatch.m4: Update.
3140 * gnulib/import/m4/fpieee.m4: Update.
3141 * gnulib/import/m4/frexp.m4: Update.
3142 * gnulib/import/m4/frexpl.m4: Update.
3143 * gnulib/import/m4/gettimeofday.m4: Update.
3144 * gnulib/import/m4/glibc21.m4: Update.
3145 * gnulib/import/m4/gnulib-cache.m4: Update.
3146 * gnulib/import/m4/gnulib-common.m4: Update.
3147 * gnulib/import/m4/gnulib-comp.m4: Update.
3148 * gnulib/import/m4/gnulib-tool.m4: Update.
3149 * gnulib/import/m4/include_next.m4: Update.
3150 * gnulib/import/m4/inttypes-pri.m4: Update.
3151 * gnulib/import/m4/inttypes.m4: Update.
3152 * gnulib/import/m4/isnand.m4: Update.
3153 * gnulib/import/m4/isnanl.m4: Update.
3154 * gnulib/import/m4/largefile.m4: Update.
3155 * gnulib/import/m4/localcharset.m4: Update.
3156 * gnulib/import/m4/locale-fr.m4: Update.
3157 * gnulib/import/m4/locale-ja.m4: Update.
3158 * gnulib/import/m4/locale-zh.m4: Update.
3159 * gnulib/import/m4/longlong.m4: Update.
3160 * gnulib/import/m4/lstat.m4: Update.
3161 * gnulib/import/m4/malloc.m4: Update.
3162 * gnulib/import/m4/malloca.m4: Update.
3163 * gnulib/import/m4/math_h.m4: Update.
3164 * gnulib/import/m4/mbrtowc.m4: Update.
3165 * gnulib/import/m4/mbsinit.m4: Update.
3166 * gnulib/import/m4/mbsrtowcs.m4: Update.
3167 * gnulib/import/m4/mbstate_t.m4: Update.
3168 * gnulib/import/m4/memchr.m4: Update.
3169 * gnulib/import/m4/memmem.m4: Update.
3170 * gnulib/import/m4/mmap-anon.m4: Update.
3171 * gnulib/import/m4/multiarch.m4: Update.
3172 * gnulib/import/m4/nocrash.m4: Update.
3173 * gnulib/import/m4/off_t.m4: Update.
3174 * gnulib/import/m4/pathmax.m4: Update.
3175 * gnulib/import/m4/readlink.m4: Update.
3176 * gnulib/import/m4/rename.m4: Update.
3177 * gnulib/import/m4/rmdir.m4: Update.
3178 * gnulib/import/m4/ssize_t.m4: Update.
3179 * gnulib/import/m4/stat.m4: Update.
3180 * gnulib/import/m4/stdbool.m4: Update.
3181 * gnulib/import/m4/stddef_h.m4: Update.
3182 * gnulib/import/m4/stdint.m4: Update.
3183 * gnulib/import/m4/stdio_h.m4: Update.
3184 * gnulib/import/m4/stdlib_h.m4: Update.
3185 * gnulib/import/m4/string_h.m4: Update.
3186 * gnulib/import/m4/strstr.m4: Update.
3187 * gnulib/import/m4/strtok_r.m4: Update.
3188 * gnulib/import/m4/sys_socket_h.m4: Update.
3189 * gnulib/import/m4/sys_stat_h.m4: Update.
3190 * gnulib/import/m4/sys_time_h.m4: Update.
3191 * gnulib/import/m4/sys_types_h.m4: Update.
3192 * gnulib/import/m4/time_h.m4: Update.
3193 * gnulib/import/m4/unistd_h.m4: Update.
3194 * gnulib/import/m4/warn-on-use.m4: Update.
3195 * gnulib/import/m4/wchar_h.m4: Update.
3196 * gnulib/import/m4/wchar_t.m4: Update.
3197 * gnulib/import/m4/wctype_h.m4: Update.
3198 * gnulib/import/m4/wint_t.m4: Update.
3199 * gnulib/import/malloc.c: Update.
3200 * gnulib/import/malloca.c: Update.
3201 * gnulib/import/malloca.h: Update.
3202 * gnulib/import/math.in.h: Update.
3203 * gnulib/import/mbrtowc.c: Update.
3204 * gnulib/import/mbsinit.c: Update.
3205 * gnulib/import/mbsrtowcs-impl.h: Update.
3206 * gnulib/import/mbsrtowcs-state.c: Update.
3207 * gnulib/import/mbsrtowcs.c: Update.
3208 * gnulib/import/memchr.c: Update.
3209 * gnulib/import/memmem.c: Update.
3210 * gnulib/import/pathmax.h: Update.
3211 * gnulib/import/readlink.c: Update.
3212 * gnulib/import/ref-add.sin: Update.
3213 * gnulib/import/ref-del.sin: Update.
3214 * gnulib/import/rename.c: Update.
3215 * gnulib/import/rmdir.c: Update.
3216 * gnulib/import/same-inode.h: Update.
3217 * gnulib/import/stat.c: Update.
3218 * gnulib/import/stdbool.in.h: Update.
3219 * gnulib/import/stddef.in.h: Update.
3220 * gnulib/import/stdint.in.h: Update.
3221 * gnulib/import/stdio.c: Update.
3222 * gnulib/import/stdio.in.h: Update.
3223 * gnulib/import/stdlib.in.h: Update.
3224 * gnulib/import/str-two-way.h: Update.
3225 * gnulib/import/streq.h: Update.
3226 * gnulib/import/string.in.h: Update.
3227 * gnulib/import/stripslash.c: Update.
3228 * gnulib/import/strnlen1.c: Update.
3229 * gnulib/import/strnlen1.h: Update.
3230 * gnulib/import/strstr.c: Update.
3231 * gnulib/import/strtok_r.c: Update.
3232 * gnulib/import/sys_stat.in.h: Update.
3233 * gnulib/import/sys_time.in.h: Update.
3234 * gnulib/import/sys_types.in.h: Update.
3235 * gnulib/import/time.in.h: Update.
3236 * gnulib/import/unistd.in.h: Update.
3237 * gnulib/import/verify.h: Update.
3238 * gnulib/import/wchar.in.h: Update.
3239 * gnulib/import/wctype.in.h: Update.
3240 * gnulib/import/gettimeofday.c: New file.
3241 * gnulib/import/m4/absolute-header.m4: New file.
3242 * gnulib/import/m4/gettimeofday.m4: New file.
3243 * gnulib/import/m4/sys_socket_h.m4: New file.
3244 * gnulib/import/m4/sys_time_h.m4: New file.
3245 * gnulib/import/stdio.c: Delete file.
3246 * gnulib/import/sys_time.in.h: New file.
3247
438e1e42
PA
32482015-08-24 Pedro Alves <palves@redhat.com>
3249
3250 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3251 * common/gdb_sys_time.h: New file.
3252 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3253 * gdb_select.h: Likewise.
3254 * gdb_usleep.c: Likewise.
3255 * maint.c: Likewise.
3256 * mi/mi-main.c: Likewise.
3257 * mi/mi-parse.h: Likewise.
3258 * remote-fileio.c: Likewise.
3259 * remote-m32r-sdi.c: Likewise.
3260 * remote.c: Likewise.
3261 * ser-base.c: Likewise.
3262 * ser-pipe.c: Likewise.
3263 * ser-tcp.c: Likewise.
3264 * ser-unix.c: Likewise.
3265 * symfile.c: Likewise.
3266 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3267 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3268 * utils.c: Likewise.
3269
40e0b271
PA
32702015-08-24 Pedro Alves <palves@redhat.com>
3271
3272 * NEWS: Mention removed support for the various ROM monitors.
3273 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3274 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3275 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3276 gdb_target_obs.
3277 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3278 gdb_target_obs.
3279 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3280 dsrec.o from gdb_target_obs.
3281 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3282 from gdb_target_obs.
3283 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3284 gdb_target_obs.
3285 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3286 dink32-rom.o from gdb_target_obs.
3287 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3288 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3289 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3290 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3291
f8904751
PA
32922015-08-21 Pedro Alves <palves@redhat.com>
3293
3294 * frame.c (null_frame_id): Explicitly zero-initialize.
3295
049412e3
TT
32962015-08-21 Tom Tromey <tromey@redhat.com>
3297
3298 * dwarf2read.c (struct dwarf2_section_info): Rename field
3299 'asection' to 'section'.
3300 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3301 (dwarf2_locate_sections, dwarf2_locate_sections)
3302 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3303 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3304 (dwarf2_locate_v2_dwp_sections): Adjust.
3305
948578a9
PP
33062015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3307
3308 * top.h (gdb_in_secondary_prompt_p): Declare.
3309 * top.c (gdb_secondary_prompt_depth): Define.
3310 (gdb_in_secondary_prompt_p): Define.
3311 (gdb_readline_wrapper_cleanup): Decrement
3312 gdb_secondary_prompt_depth.
3313 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3314 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3315 are in a secondary prompt.
3316
7a8bcb88
PP
33172015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3318
3319 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3320 emit the newline.
3321
2d7711a3
GB
33222015-08-21 Gary Benson <gbenson@redhat.com>
3323
3324 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3325
4313b8c0
GB
33262015-08-21 Gary Benson <gbenson@redhat.com>
3327
3328 * target.h (struct target_ops) <to_fileio_open>: New argument
3329 warn_if_slow. Update comment. All implementations updated.
3330 (target_fileio_open_warn_if_slow): New declaration.
3331 * target.c (target_fileio_open): Renamed as...
3332 (target_fileio_open_1): ...this. New argument warn_if_slow.
3333 Pass warn_if_slow to implementation. Update debug printing.
3334 (target_fileio_open): New function.
3335 (target_fileio_open_warn_if_slow): Likewise.
3336 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3337 target_fileio_open_warn_if_slow.
3338
f36b8719
GB
33392015-08-21 Gary Benson <gbenson@redhat.com>
3340
3341 * nat/linux-namespaces.c (linux_mntns_access_fs):
3342 Do not overwrite old_chain.
3343
40045d91
MF
33442015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3345
3346 * arch/xtensa.h: New file.
3347 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3348 (ps_get_thread_area): New function.
3349 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3350 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3351 * xtensa-tdep.c (osabi.h): New #include.
3352 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3353 xtensa-specific hooks.
3354 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3355 member and move the structure to arch/xtensa.h.
3356
80152258
PA
33572015-08-21 Pedro Alves <palves@redhat.com>
3358
3359 * remote.c (struct readahead_cache): New.
3360 (struct remote_state) <readahead_cache>: New field.
3361 (remote_open_1): Invalidate the cache.
3362 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3363 functions.
3364 (remote_hostio_pwrite): Invalidate the readahead cache.
3365 (remote_hostio_pread): Rename to ...
3366 (remote_hostio_pread_vFile): ... this.
3367 (remote_hostio_pread_from_cache): New function.
3368 (remote_hostio_pread): Reimplement.
3369 (remote_hostio_close): Invalidate the readahead cache.
3370
88fc5eb7
MC
33712015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3372
3373 PR build/18843
3374 * procfs.c: Include "filestuff.h".
3375
6f1cb6ea
PP
33762015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3377
3378 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3379 curch.
3380 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3381 cur_line or curch, instead call wmove().
3382 (init_win_info) [CMD_WIN]: Likewise.
3383 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3384 instead call getcury().
3385 (tui_redisplay_readline): Don't set cur_line or curch.
3386 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3387 getcury().
3388 (tui_cont_sig): Remove call to wmove.
3389 (tui_getc): Don't read cur_line or curch, instead call getcury()
3390 or getyx(). Don't set curch.
3391 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3392 set cur_line or curch. Always move cursor to (0,0).
3393
221e1a37
PA
33942015-08-20 Pedro Alves <palves@redhat.com>
3395
3396 * infrun.c (print_target_wait_results): Make extern.
3397 * infrun.h (print_target_wait_results): Declare.
3398 * remote.c (set_stop_requested_callback): Delete.
3399 (process_initial_stop_replies): New function.
3400 (remote_start_remote): Use it.
3401 (stop_reply_queue_length): New function.
3402
40e3ad0e
PA
34032015-08-20 Pedro Alves <palves@redhat.com>
3404
3405 * dwarf2read.c (process_full_comp_unit): To tell whether
3406 start_subfile managed to deduce a language, test for
3407 language_unknown instead of language_c.
3408
af39b327
PMR
34092015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3410
3411 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3412 matches attributes.
3413
7d45c7c3
KB
34142015-08-19 Kevin Buettner <kevinb@redhat.com>
3415
3416 * dwarf2read.c (dwarf2_string_attr): New function.
3417 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3418 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3419 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3420 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3421 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3422
4d6cceb4
DE
34232015-08-18 Doug Evans <dje@google.com>
3424 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3425
3426 PR mi/18833
3427 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3428 if MI-like.
3429 * mi/mi-out.c: #include "vec.h".
3430 (ui_filep): New type.
3431 (DEV_VEC_P (ui_filep)): New type.
3432 (struct ui_out_data) <buffer, original_buffer>: Delete.
3433 (struct ui_out_data) <streams>: New member.
3434 (mi_ui_out_impl): Add data_destroy field.
3435 (mi_field_string, mi_field_fmt): Update.
3436 (mi_flush, mi_redirect, field_separator): Update.
3437 (mi_open, mi_close): Update.
3438 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3439 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3440 (mi_out_new): Call mi_out_data_ctor.
3441
26d56a93
SL
34422015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3443
3444 * remote.c (strprefix): New.
3445 (remote_parse_stop_reply): Use strprefix instead of strncmp
3446 to ensure exact match of keyword.
3447
566f5e3b
AB
34482015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3449
3450 * gdb_bfd.c (debug_bfd_cache): New variable.
3451 (show_bfd_cache_debug): New function.
3452 (gdb_bfd_open): Add debug logging.
3453 (gdb_bfd_ref): Likewise.
3454 (gdb_bfd_unref): Likewise.
3455 (_initialize_gdb_bfd): Add new set/show command.
3456 * NEWS: Mention new command.
3457
18989b3c
AB
34582015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3459
3460 * gdb_bfd.c (bfd_sharing): New variable.
3461 (show_bfd_sharing): New function.
3462 (gdb_bfd_open): Check bfd_sharing variable.
3463 (_initialize_gdb_bfd): Add new set/show command.
3464 * NEWS: Mention new command.
3465
c04fe68f
AB
34662015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3467
3468 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3469 field.
3470 (struct gdb_bfd_cache_search): Likewise.
3471 (eq_bfd): Compare the size, inode, and device id fields.
3472 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3473 (gdb_bfd_ref): Likewise.
3474 (gdb_bfd_unref): Likewise.
3475
b2a33439
PA
34762015-08-18 Pedro Alves <palves@redhat.com>
3477
3478 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3479 target implements to_always_non_stop_p, call it.
3480 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3481 (x86_linux_create_target): Install it as to_always_non_stop_p
3482 method.
3483
71b57e37
DE
34842015-08-17 Doug Evans <dje@google.com>
3485
3486 * ui-out.c (default_ui_out_impl): Add comment.
3487
7f3706eb
IB
34882015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3489
3490 * d-exp.y (type_aggregate_p): New function.
3491 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3492 (classify_inner_name): Likewise.
3493 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3494
1762568f
DE
34952015-08-15 Doug Evans <xdje42@gmail.com>
3496
3497 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3498 updated.
3499 (add_psymbol_to_list): Ditto.
3500
8763cede
DE
35012015-08-15 Doug Evans <xdje42@gmail.com>
3502
3503 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3504 updated. Call end_psymtab_common.
3505 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3506 end_psymtab_common.
3507 (build_type_psymtabs_reader): Ditto.
3508 * psympriv.h (sort_pst_symbols): Delete.
3509 (end_psymtab_common): Declare.
3510 * psymtab.c (sort_pst_symbols): Make static.
3511 (end_psymtab_common): New function.
3512 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3513
51cdc993
DE
35142015-08-15 Doug Evans <xdje42@gmail.com>
3515
3516 * defs.h (LANGUAGE_BITS): Define.
3517 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3518 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3519 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3520 (minimal_symbol_type): Add nr_minsym_types.
3521 (MINSYM_TYPE_BITS): Define.
3522 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3523 (domain_enum_tag): Add NR_DOMAINS.
3524 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3525 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3526
95cf5869
DE
35272015-08-15 Doug Evans <xdje42@gmail.com>
3528
3529 * objfiles.h: Whitespace cleanup.
3530 * psympriv.h: Whitespace cleanup.
3531 * psymtab.c: Whitespace/coding convention cleanup.
3532
e3ae3c43
PP
35332015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3534
3535 * inferior.c (detach_inferior_command): Don't call
3536 any_thread_of_process when pid is 0.
3537 (kill_inferior_command): Likewise.
3538
6ff0ba5f
DE
35392015-08-14 Doug Evans <xdje42@gmail.com>
3540
3541 PR gdb/11833
3542 * NEWS: Document new /s modifier for the disassemble command.
3543 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3544 (_initialize_cli_cmds): Update online docs of disassemble command.
3545 * disasm.c: #include "source.h".
3546 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3547 All uses updated.
3548 (dis_line_entry): New struct.
3549 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3550 (allocate_dis_line_table): New functions.
3551 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3552 (dump_insns): New arg end_pc. All callers updated.
3553 (do_mixed_source_and_assembly_deprecated): Renamed from
3554 do_mixed_source_and_assembly. All callers updated.
3555 (do_mixed_source_and_assembly): New function.
3556 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3557 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3558 DISASSEMBLY_SOURCE. All uses updated.
3559 (DISASSEMBLY_SOURCE): New macro.
3560 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3561
b56ccc20
KS
35622015-08-14 Keith Seitz <keiths@redhat.com>
3563
3564 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3565 `typename' to `type_name' to avoid C++ reserved word.
3566
ebdad8fc
KS
35672015-08-14 Keith Seitz <keiths@redhat.com>
3568
3569 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3570 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3571 silence ARI errors.
3572
c0fe2ae7
IB
35732015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3574
3575 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3576 xstrprintf instead of malloc and sprintf.
3577 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3578 (lex_one_token): Likewise.
3579
a738da3a
MF
35802015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3581
3582 * solib-svr4.c (read_program_header): Add base_addr argument to
3583 report the runtime address of the segment.
3584 (find_program_interpreter): Update read_program_header call to pass
3585 a NULL pointer for the new argument.
3586 (scan_dyntag): Add ptr_addr argument to report the runtime address
3587 of the tag payload.
3588 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3589 read_program_header to get the base address of the dynamic segment.
3590 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3591 read_program_header.
3592 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3593
f8edc4ff
MF
35942015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3595
3596 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3597
444c1ed8
IB
35982015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3599
3600 * d-exp.y (%union): Add voidval.
3601 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3602 name in the lexing stage.
3603 (PostfixExpression): Move symbol completion handling in grammar here
3604 from PrimaryExpression.
3605 (PrimaryExpression): Move routines to handle resolving identifier
3606 tokens in the grammar here from push_expression_name.
3607 (IdentifierExp): Remove the handling of alternating '.' and identifier
3608 tokens.
3609 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3610 (BasicType): Remove C-style typename rules.
3611 (d_type_from_name, d_module_from_name, push_variable)
3612 (push_fieldnames, push_type_name, push_module_name)
3613 (push_expression_name): Remove.
3614 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3615 (token_and_value): New type.
3616 (token_fifo, popping, name_obstack): New globals.
3617 (classify_name): New function.
3618 (classify_inner_name): Likewise.
3619 (yylex): Likewise.
3620 (d_parse): Initialize token_fifo, popping and name_obstack.
3621
bc7c9fab
IB
36222015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3623
3624 * Makefile.in (SFILES): Add d-namespace.c.
3625 (COMMON_OBS): Add d-namespace.o.
3626 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3627 la_lookup_symbol_nonlocal callback function pointer.
3628 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3629 (d_lookup_nested_symbol): New declaration.
3630 * d-namespace.c: New file.
3631
3207396b
PA
36322015-08-13 Pedro Alves <palves@redhat.com>
3633
3634 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3635 cleanup after the decref cleanup, not before.
3636
5d8c3ed3
PMR
36372015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3638
3639 * ada-lang.c: Include namespace.h
3640 (aux_add_nonlocal_symbols): Fix a function name in comment.
3641 (ada_add_block_renamings): New.
3642 (add_nonlocal_symbols): Add global renamings handling.
3643 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3644 to...
3645 (ada_add_all_symbols): ... this new function.
3646 (ada_add_block_symbols): Try to match the input name against the
3647 "using directives list", perform a recursive symbol lookup on
3648 the matched declarations.
3649 * block.h (struct block): Move the_namespace to top-level as
3650 namespace_info. Remove the language_specific field.
3651 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3652 * buildsym.h (using_directives): Rename into...
3653 (local_using_directives): ... this.
3654 (global_using_directives): New.
3655 (struct context_stack): Rename the using_directives field into
3656 local_using_directives.
3657 * buildsym.c (finish_block_internal): Deal with the proper
3658 using directives repository (local or global).
3659 (prepare_for_building): Reset local_using_directives. Assert
3660 that there is no pending global using directive.
3661 (reset_symtab_globals): Reset global_using_directives and
3662 local_using_directives.
3663 (end_symtab_get_static_block): Don't ignore symtabs that have
3664 only using directives.
3665 (push_context): Update references to local_using_directives.
3666 (buildsym_init): Do not reset using_directives.
3667 * cp-support.c: Include namespace.h.
3668 * cp-support.h (struct using_direct): Move to namespace.h.
3669 (cp_add_using_directives): Move to namespace.h.
3670 * cp-namespace.c: Include namespace.h
3671 (cp_add_using_directive): Move to namespace.c, rename it to
3672 add_using_directive, add a "using_directives" argument and use
3673 it as the pending using directives repository. All callers
3674 updated.
3675 * dwarf2read.c (using_directives): New.
3676 (read_import_statement): Call using_directives.
3677 (read_func_scope): Update references to local_using_directives.
3678 (read_lexical_block_scope): Likewise.
3679 (read_namespace): Update the heading comment, call
3680 using_directives.
3681 * namespace.h: New file.
3682 * namespace.c: New file.
3683 * Makefile.in (SFILES): Add namespace.c.
3684 (COMMON_OBS): Add namespace.o
3685
4dafcdeb
JB
36862015-08-12 Joel Brobecker <brobecker@adacore.com>
3687
3688 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3689 compute RETADDR.
3690
67994074
KS
36912015-08-12 Keith Seitz <keiths@redhat.com>
3692
3693 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3694 reserved C++ keyword "explicit" to "explicit_loc".
3695 * breakpoint.c (create_overlay_event_breakpoint)
3696 (create_longjmp_master_breakpoint)
3697 (create_std_terminate_master_breakpoint)
3698 (create_exception_master_breakpoint, update_static_tracepoint):
3699 Rename reserved C++ keyword "explicit" to "explicit_loc".
3700 * completer.c (collect_explicit_location_matches)
3701 (explicit_location_completer): Rename reserved C++ keyword
3702 "explicit" to "explicit_loc".
3703 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3704 (canonicalize_linespec, create_sals_line_offset)
3705 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3706 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3707 "explicit" to "explicit_loc".
3708 * location.c (struct event_location) <explicit>: Rename to
3709 "explicit_loc".
3710 (initialize_explicit_location, new_explicit_location)
3711 (explicit_location_to_string_internal, explicit_location_to_linespec):
3712 Rename reserved C++ keyword "explicit" to "explicit_loc".
3713 * location.h (explicit_location_to_string)
3714 (explicit_location_to_linespec, initialize_explicit_location)
3715 (new_explicit_location): Rename reserved C++ keyword "explicit"
3716 to "explicit_loc".
3717 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3718 keyword "explicit" to "explicit_loc".
3719
59ecaff3
KS
37202015-08-12 Keith Seitz <keiths@redhat.com>
3721
3722 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3723 and only call decode_line_1 when it is non-NULL.
3724
244558af
LM
37252015-08-12 Luis Machado <lgustavo@codesourcery.com>
3726
3727 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3728 location address is not meaningful.
3729 (breakpoint_address_is_meaningful): Update comment.
3730
629500fa
KS
37312015-08-11 Keith Seitz <keiths@redhat.com>
3732
3733 * NEWS: Mention explicit locations.
3734 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3735 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3736 (_initialize_breakpoint): Update documentation for
3737 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3738
eb8c4e2e
KS
37392015-08-11 Keith Seitz <keiths@redhat.com>
3740
3741 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3742 explicit locations, options "--source", "--function",
3743 "--label", and "--line".
3744
87f0e720
KS
37452015-08-11 Keith Seitz <keiths@redhat.com>
3746
3747 * completer.c: Include location.h.
3748 (enum match_type): New enum.
3749 (location_completer): Rename to ...
3750 (linespec_completer): ... this.
3751 (collect_explicit_location_matches, backup_text_ptr)
3752 (explicit_location_completer): New functions.
3753 (location_completer): "New" function; handle linespec
3754 and explicit location completions.
3755 (complete_line_internal): Remove all location completer-specific
3756 handling.
3757 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3758 (find_toplevel_char): Export.
3759 (linespec_parse_line_offset): Export.
3760 Issue error if STRING is not numerical.
3761 (gdb_get_linespec_parser_quote_characters): New function.
3762 * linespec.h (linespec_parse_line_offset): Declare.
3763 (get_gdb_linespec_parser_quote_characters): Declare.
3764 (is_ada_operator): Declare.
3765 (find_toplevel_char): Declare.
3766 (linespec_lexer_lex_keyword): Declare.
3767 * location.c (explicit_to_event_location): New function.
3768 (explicit_location_lex_one): New function.
3769 (string_to_explicit_location): New function.
3770 (string_to_event_location): Handle explicit locations.
3771 * location.h (explicit_to_event_location): Declare.
3772 (string_to_explicit_location): Declare.
3773
00e52e53
KS
37742015-08-11 Keith Seitz <keiths@redhat.com>
3775
3776 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3777 linespec into explicit location.
3778 * breakpoint.c (create_overlay_breakpoint)
3779 (create_longjmp_master_breakpoint)
3780 (create_std_terminate_master_breakpoint)
3781 (create_exception_master_breakpoint): Convert linespec into explicit
3782 location.
3783 (update_static_tracepoint): Convert linespec into explicit location.
3784 * linespec.c (enum offset_relative_sign, struct line_offset): Move
3785 location.h.
3786 (struct linespec) <expression, expr_pc, source_filename>
3787 <function_name, label_name, line_offset>: Replace with ...
3788 <explicit>: ... this.
3789 <is_linespec>: New member.
3790 (PARSER_EXPLICIT): New accessor macro.
3791 (undefined_label_error): New function.
3792 (source_file_not_found_error): New function.
3793 (linespec_parse_basic): The parser result is now an explicit location.
3794 Use PARSER_EXPLICIT to access it.
3795 Use undefined_label_error.
3796 (canonicalize_linespec): Convert canonical linespec into explicit
3797 location.
3798 Move string representation of location to explicit_location_to_linespec
3799 and use it and explicit_location_to_string to save string
3800 representations of the canonical location.
3801 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3802 explicit location. Update all references.
3803 (convert_explicit_location_to_sals): New function.
3804 (parse_linespec): Use PARSER_EXPLICIT to access the parser
3805 result's explicit location.
3806 (linespec_state_constructor): Initialize is_linespec.
3807 Use PARSER_EXPLICIT.
3808 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3809 result.
3810 (event_location_to_sals): For linespec locations, set is_linespec.
3811 Handle explicit locations.
3812 (decode_objc): 'ls' contains an explicit location now. Update all
3813 references.
3814 (symtabs_from_filename): Use source_file_not_found_error.
3815 * location.c (struct event_location.u) <explicit>: New member.
3816 (initialize_explicit_location): New function.
3817 (initialize_event_location): Initialize explicit locations.
3818 (new_explicit_location, get_explicit_location)
3819 (get_explicit_location_const): New functions.
3820 (explicit_to_string_internal): New function; most of contents moved
3821 from canonicalize_linespec.
3822 (explicit_location_to_string): New function.
3823 (explicit_location_to_linespec): New function.
3824 (copy_event_location, delete_event_location)
3825 (event_location_to_string_const, event_location_empty_p): Handle
3826 explicit locations.
3827 * location.h (enum offset_relative_sign, struct line_offset): Move
3828 here from linespec.h.
3829 (enum event_location_type): Add EXPLICIT_LOCATION.
3830 (struct explicit_location): New structure.
3831 (explicit_location_to_string): Declare.
3832 (explicit_location_to_linespec): Declare.
3833 (new_explicit_location, get_explicit_locationp
3834 (get_explicit_location_const, initialize_explicit_location): Declare.
3835
5b56227b
KS
38362015-08-11 Keith Seitz <keiths@redhat.com>
3837
3838 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3839 linespec for stap probe to probe location.
3840 * breakpoint.c (create_longjmp_master_breakpoint)
3841 (create_exception_master_breakpoint): Likewise.
3842 (break_command_1): Remove local variable `arg_cp'.
3843 Check location type to set appropriate breakpoint ops methods.
3844 (trace_command): Likewise.
3845 * linespec.c (event_location_to_sals): Assert on probe locations.
3846 * location.c (EL_PROBE): Add macro definition.
3847 (new_probe_location, get_probe_location): New functions.
3848 (copy_event_location, delete_event_location, event_location_to_string)
3849 (string_to_event_location, event_location_empty_p): Handle probe
3850 locations.
3851 * location.h (enum event_location_type): Add PROBE_LOCATION.
3852 (new_probe_location, get_probe_location): Declare.
3853 * probe.c (parse_probes): Assert that LOCATION is a probe location.
3854 Convert linespec into probe location.
3855
a06efdd6
KS
38562015-08-11 Keith Seitz <keiths@redhat.com>
3857
3858 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
3859 Convert linespec to address location.
3860 * linespec.c (canonicalize_linespec): Do not handle address
3861 locations here.
3862 (convert_address_location_to_sals): New function; contents moved
3863 from ...
3864 (convert_linespc_to_sals): ... here.
3865 (parse_linespec): Remove address locations from linespec grammar.
3866 Remove handling of address locations.
3867 (linespec_lex_to_end): Remove handling of address linespecs.
3868 (event_location_to_sals): Handle ADDRESS_LOCATION.
3869 (linespec_expression_to_pc): Export.
3870 * linespec.h (linespec_expression_to_pc): Add declaration.
3871 * location.c (struct event_location.u) <address>: New member.
3872 (new_address_location, get_address_location): New functions.
3873 (copy_event_location, delete_event_location, event_location_to_string)
3874 (string_to_event_location, event_location_empty_p): Handle address
3875 locations.
3876 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
3877 (new_address_location, get_address_location): Declare.
3878 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
3879 to address location.
3880 * spu-tdep.c (spu_catch_start): Likewise.
3881
f00aae0f
KS
38822015-08-11 Keith Seitz <keiths@redhat.com>
3883
3884 * ax-gdb.c: Include location.h.
3885 (agent_command_1) Use linespec location instead of address
3886 string.
3887 * break-catch-throw.c: Include location.h.
3888 (re_set_exception_catchpoint): Use linespec locations instead
3889 of address strings.
3890 * breakpoint.c: Include location.h.
3891 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
3892 (create_std_terminate_master_breakpoint)
3893 (create_exception_master_breakpoint, update_breakpoints_after_exec):
3894 Use linespec location instead of address string.
3895 (print_breakpoint_location): Use locations and
3896 event_location_to_string.
3897 Print extra_string for pending locations for non-MI streams.
3898 (print_one_breakpoint_location): Use locations and
3899 event_location_to_string.
3900 (init_raw_breakpoint_without_location): Initialize b->location.
3901 (create_thread_event_breakpoint): Use linespec location instead of
3902 address string.
3903 (init_breakpoint_sal): Likewise.
3904 Only save extra_string if it is non-NULL and not the empty string.
3905 Use event_location_to_string instead of `addr_string'.
3906 Constify `p' and `endp'.
3907 Use skip_spaces_const/skip_space_const instead of non-const versions.
3908 Copy the location into the breakpoint.
3909 If LOCATION is NULL, save the breakpoint address as a linespec location
3910 instead of an address string.
3911 (create_breakpoint_sal): Change `addr_string' parameter to a struct
3912 event_location. All uses updated.
3913 (create_breakpoints_sal): Likewise for local variable `addr_string'.
3914 (parse_breakpoint_sals): Use locations instead of address strings.
3915 Remove check for empty linespec with conditional.
3916 Refactor.
3917 (decode_static_tracepoint_spec): Make argument const and update
3918 function.
3919 (create_breakpoint): Change `arg' to a struct event_location and
3920 rename.
3921 Remove `copy_arg' and `addr_start'.
3922 If EXTRA_STRING is empty, set it to NULL.
3923 Don't populate `canonical' for pending breakpoints.
3924 Pass `extra_string' to find_condition_and_thread.
3925 Clear `extra_string' if `rest' was NULL.
3926 Do not error with "garbage after location" if setting a dprintf
3927 breakpoint.
3928 Copy the location into the breakpoint instead of an address string.
3929 (break_command_1): Use string_to_event_location and pass this to
3930 create_breakpoint instead of an address string.
3931 Check against `arg_cp' for a probe linespec.
3932 (dprintf_command): Use string_to_event_location and pass this to
3933 create_breakpoint instead of an address string.
3934 Throw an exception if no format string was specified.
3935 (print_recreate_ranged_breakpoint): Use event_location_to_string
3936 instead of address strings.
3937 (break_range_command, until_break_command)
3938 (init_ada_exception_breakpoint): Use locations instead
3939 of address strings.
3940 (say_where): Print out extra_string for pending locations.
3941 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
3942 the breakpoint.
3943 (base_breakpoint_create_sals_from_location): Use struct event_location
3944 instead of address string.
3945 Remove `addr_start' and `copy_arg' parameters.
3946 (base_breakpoint_decode_location): Use struct event_location instead of
3947 address string.
3948 (bkpt_re_set): Use locations instead of address strings.
3949 Use event_location_empty_p to check for unset location.
3950 (bkpt_print_recreate): Use event_location_to_string instead of
3951 an address string.
3952 Print out extra_string for pending locations.
3953 (bkpt_create_sals_from_location, bkpt_decode_location)
3954 (bkpt_probe_create_sals_from_location): Use struct event_location
3955 instead of address string.
3956 (bkpt_probe_decode_location): Use struct event_location instead of
3957 address string.
3958 (tracepoint_print_recreate): Use event_location_to_string to
3959 recreate the tracepoint.
3960 (tracepoint_create_sals_from_location, tracepoint_decode_location)
3961 (tracepoint_probe_create_sals_from_location)
3962 (tracepoint_probe_decode_location): Use struct event_location
3963 instead of address string.
3964 (dprintf_print_recreate): Use event_location_to_string to recreate
3965 the dprintf.
3966 (dprintf_re_set): Remove check for valid/missing format string.
3967 (strace_marker_create_sals_from_location)
3968 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
3969 (update_static_tracepoint): Use struct event_location instead of
3970 address string.
3971 (location_to_sals): Likewise.
3972 Pass `extra_string' to find_condition_and_thread.
3973 For newly resolved pending breakpoint locations, clear the location's
3974 string representation.
3975 Assert that the breakpoint's condition string is NULL when
3976 condition_not_parsed.
3977 (breakpoint_re_set_default, create_sals_from_location_default)
3978 (decode_location_default, trace_command, ftrace_command)
3979 (strace_command, create_tracepoint_from_upload): Use locations
3980 instead of address strings.
3981 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
3982 Use struct event_location instead of address string.
3983 Update all uses.
3984 <decode_location>: Likewise.
3985 (struct breakpoint) <addr_string>: Change to struct event_location
3986 and rename `location'.
3987 <addr_string_range_end>: Change to struct event_location and rename
3988 `location_range_end'.
3989 (create_breakpoint): Use struct event_location instead of address
3990 string.
3991 * cli/cli-cmds.c: Include location.h.
3992 (edit_command, list_command): Use locations instead of address strings.
3993 * elfread.c: Include location.h.
3994 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
3995 * guile/scm-breakpoint.c: Include location.h.
3996 (bpscm_print_breakpoint_smob): Use event_location_to_string.
3997 (gdbscm_register_breakpoint): Use locations instead of address
3998 strings.
3999 * linespec.c: Include location.h.
4000 (struct ls_parser) <stream>: Change to const char *.
4001 (PARSER_STREAM): Update.
4002 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4003 keywords must be followed by whitespace.
4004 (canonicalize_linespec): Save a linespec location into `canonical'.
4005 Save a canonical linespec into `canonical'.
4006 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4007 All uses updated.
4008 Update function description.
4009 (linespec_parser_new): Initialize `parser'.
4010 Update initialization of parsing stream.
4011 (event_location_to_sals): New function.
4012 (decode_line_full): Change `argptr' to a struct event_location and
4013 rename it `location'.
4014 Use locations instead of address strings.
4015 Call event_location_to_sals instead of parse_linespec.
4016 (decode_line_1): Likewise.
4017 (decode_line_with_current_source, decode_line_with_last_displayed)
4018 Use locations instead of address strings.
4019 (decode_objc): Likewise.
4020 Change `argptr' to const char * and rename `arg'.
4021 (destroy_linespec_result): Delete the linespec result's location
4022 instead of freeing the address string.
4023 * linespec.h (struct linespec_result) <addr_string>: Change to
4024 struct event_location and rename to ...
4025 <location>: ... this.
4026 (decode_line_1, decode_line_full): Change `argptr' to struct
4027 event_location. All callers updated.
4028 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4029 (mi_cmd_break_insert_1): Use locations instead of address strings.
4030 Throw an error if there was "garbage" at the end of the specified
4031 linespec.
4032 * probe.c: Include location.h.
4033 (parse_probes): Change `argptr' to struct event_location.
4034 Use event locations instead of address strings.
4035 * probe.h (parse_probes): Change `argptr' to struct event_location.
4036 * python/py-breakpoint.c: Include location.h.
4037 (bppy_get_location): Constify local variable `str'.
4038 Use event_location_to_string.
4039 (bppy_init): Use locations instead of address strings.
4040 * python/py-finishbreakpoint.c: Include location.h.
4041 (bpfinishpy_init): Remove local variable `addr_str'.
4042 Use locations instead of address strings.
4043 * python/python.c: Include location.h.
4044 (gdbpy_decode_line): Use locations instead of address strings.
4045 * remote.c: Include location.h.
4046 (remote_download_tracepoint): Use locations instead of address
4047 strings.
4048 * spu-tdep.c: Include location.h.
4049 (spu_catch_start): Remove local variable `buf'.
4050 Use locations instead of address strings.
4051 * tracepoint.c: Include location.h.
4052 (scope_info): Use locations instead of address strings.
4053 (encode_source_string): Constify parameter `src'.
4054 * tracepoint.h (encode_source_string): Likewise.
4055
c7c1b3e9
KS
40562015-08-11 Keith Seitz <keiths@redhat.com>
4057
4058 * Makefile.in (SFILES): Add location.c.
4059 (HFILES_NO_SRCDIR): Add location.h.
4060 (COMMON_OBS): Add location.o.
4061 * linespec.c (linespec_lex_to_end): New function.
4062 * linespec.h (linespec_lex_to_end): Declare.
4063 * location.c: New file.
4064 * location.h: New file.
4065
5f700d83
KS
40662015-08-11 Keith Seitz <keiths@redhat.com>
4067
4068 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4069 Renamed to create_sals_from_location.
4070 <decode_linespec>: Renamed to decode_location.
4071 Update all callers.
4072 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4073 (create_sals_from_location_default): ... this.
4074 (addr_string_to_sals): Renamed to ...
4075 (location_to_sals): ... this.
4076 (decode_linespec_default): Renamed to ...
4077 (decode_location_default): ... this.
4078 (base_breakpoint_create_sals_from_address): Renamed to ...
4079 (base_breakpoint_create_sals_from_location): ... this.
4080 (bkpt_create_sals_from_address): Renamed to ...
4081 (bkpt_create_sals_from_location): ... this.
4082 (bkpt_decode_linespec): Renamed to ...
4083 (bkpt_decode_location): ... this.
4084 (bkpt_probe_create_sals_from_address): Renamed to ...
4085 (bkpt_probe_create_sals_from_location): ... this.
4086 (tracepoint_create_sals_from_address): Renamed to ...
4087 (tracepoint_create_sals_from_location): ... this.
4088 (tracepoint_decode_linespec): Renamed to ...
4089 (tracepoint_decode_location): ... this.
4090 (tracepoint_probe_create_sals_from_address): Renamed to ...
4091 (tracepoint_probe_create_sals_from_location): ... this.
4092 (tracepoint_probe_decode_linespec): Renamed to ...
4093 (tracepoint_probe_decode_location): ... this.
4094 (strace_marker_create_sals_from_address): Renamed to ...
4095 (strace_marker_create_sals_from_location): ... this.
4096 (decode_linespec_default): Renamed to ...
4097 (decode_location_default): ... this.
4098
e27852be
DE
40992015-08-10 Doug Evans <dje@google.com>
4100 Keith Seitz <keiths@redhat.com>
4101
4102 PR gdb/17960
4103 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4104 make_file_symbol_completion_list and made static.
4105 (make_file_symbol_completion_list): New function.
80af41e0 4106
fd7dcb94
JB
41072015-08-10 Joel Brobecker <brobecker@adacore.com>
4108
4109 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4110 trailing new-line at end of warning message.
4111 (proceed): Add i18n marker to error messages.
4112
f12899e9
PA
41132015-08-07 Pedro Alves <palves@redhat.com>
4114
4115 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4116
5ac21343
PA
41172015-08-07 Pedro Alves <palves@redhat.com>
4118
4119 * s390-linux-tdep.c (is_non_branch_ril)
4120 (s390_displaced_step_copy_insn): New functions.
4121 (s390_displaced_step_fixup): Update comment.
4122 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4123 gdbarch_displaced_step_copy_insn hook.
4124
7f03bd92
PA
41252015-08-07 Pedro Alves <palves@redhat.com>
4126
4127 * infrun.c (displaced_step_prepare_throw): Return -1 if
4128 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4129 comment.
4130 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4131 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4132 in file.
4133 (ppc_displaced_step_copy_insn): New function.
4134 (ppc_displaced_step_fixup): Update comment.
4135 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4136 gdbarch_displaced_step_copy_insn hook.
4137 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4138 NULL return.
4139 * gdbarch.h: Regenerate.
4140
3fc8eb30
PA
41412015-08-07 Pedro Alves <palves@redhat.com>
4142
4143 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4144 field.
4145 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4146 Return false if dispaced stepping failed before.
4147 (resume): Pass the current inferior to
4148 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4149 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4150 displaced_stepping_failed flag, and fall back to an in-line
4151 step-over.
4152
bfedc46a
PA
41532015-08-07 Pedro Alves <palves@redhat.com>
4154
4155 * darwin-nat.c (darwin_stop): Rename to ...
4156 (darwin_interrupt): ... this.
4157 (_initialize_darwin_inferior): Adjust.
4158 * gnu-nat.c (gnu_stop): Delete.
4159 (gnu_target): Don't install gnu_stop.
4160 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4161 (inf_ptrace_interrupt): ... this.
4162 (inf_ptrace_target): Adjust.
4163 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4164 target_stop.
4165 * linux-nat (linux_nat_stop): Rename to ...
4166 (linux_nat_interrupt): ... this.
4167 (linux_nat_stop): Reimplement.
4168 (linux_nat_add_target): Install linux_nat_interrupt.
4169 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4170 (nto_handle_sigint_twice): ... this.
4171 (nto_interrupt): Rename to ...
4172 (nto_handle_sigint): ... this. Call target_interrupt instead of
4173 target_stop.
4174 (procfs_wait): Adjust.
4175 (procfs_stop): Rename to ...
4176 (procfs_interrupt): ... this.
4177 (init_procfs_targets): Adjust.
4178 * procfs.c (procfs_stop): Rename to ...
4179 (procfs_interrupt): ... this.
4180 (procfs_target): Adjust.
4181 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4182 (m32r_interrupt): ... this.
4183 (init_m32r_ops): Adjust.
4184 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4185 (gdbsim_interrupt_inferior): ... this.
4186 (gdbsim_stop): Rename to ...
4187 (gdbsim_interrupt): ... this.
4188 (gdbsim_cntrl_c): Adjust.
4189 (init_gdbsim_ops): Adjust.
4190 * remote.c (sync_remote_interrupt): Adjust comments.
4191 (remote_stop_as): Rename to ...
4192 (remote_interrupt_as): ... this.
4193 (remote_stop): Adjust comment.
4194 (remote_interrupt): New function.
4195 (init_remote_ops): Install remote_interrupt.
4196 * target.c (target_interrupt): New function.
4197 * target.h (struct target_ops) <to_interrupt>: New field.
4198 (target_interrupt): New declaration.
4199 * windows-nat.c (windows_stop): Rename to ...
4200 (windows_interrupt): ... this.
4201 * target-delegates.c: Regenerate.
4202
d55007b5
PA
42032015-08-07 Pedro Alves <palves@redhat.com>
4204
4205 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4206 threads" as alternative to "switching back to stepped thread".
4207
fbea99ea
PA
42082015-08-07 Pedro Alves <palves@redhat.com>
4209
4210 * NEWS: Mention "maint set/show target-non-stop".
4211 * breakpoint.c (update_global_location_list): Check
4212 target_is_non_stop_p instead of non_stop.
4213 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4214 * infrun.c (show_can_use_displaced_stepping)
4215 (can_use_displaced_stepping_p, start_step_over_inferior):
4216 Likewise.
4217 (internal_resume_ptid): New function.
4218 (resume): Use it.
4219 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4220 all-stop mode but the target is always in non-stop mode, start all
4221 the other threads that are implicitly resumed too.
4222 (for_each_just_stopped_thread, fetch_inferior_event)
4223 (adjust_pc_after_break, stop_all_threads): Check
4224 target_is_non_stop_p instead of non_stop.
4225 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4226 with the target always in non-stop mode.
4227 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4228 instead of non_stop.
4229 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4230 instead of non_stop.
4231 (keep_going_stepped_thread): Use internal_resume_ptid.
4232 (stop_waiting): If in all-stop mode, and the target is in non-stop
4233 mode, stop all threads.
4234 (keep_going_pass): Likewise, when starting a new in-line step-over
4235 sequence.
4236 * linux-nat.c (get_pending_status, select_event_lwp)
4237 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4238 target_is_non_stop_p instead of non_stop.
4239 (linux_nat_always_non_stop_p): New function.
4240 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4241 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4242 * target-delegates.c: Regenerate.
4243 * target.c (target_is_non_stop_p): New function.
4244 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4245 (maint_set_target_non_stop_command)
4246 (maint_show_target_non_stop_command): New functions.
4247 (_initilize_target): Install "maint set/show target-non-stop"
4248 commands.
4249 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4250 (target_non_stop_enabled): New declaration.
4251 (target_is_non_stop_p): New declaration.
4252
372316f1
PA
42532015-08-07 Pedro Alves <pedro@codesourcery.com>
4254
4255 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4256 has a pending status, return true.
4257 * gdbthread.h: Include target/waitstatus.h.
4258 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4259 stop_pc>: New fields.
4260 (struct thread_info) <resumed>: New field.
4261 (set_resumed): Declare.
4262 * infrun.c: Include "event-loop.h".
4263 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4264 (infrun_async): New function.
4265 (clear_step_over_info): Add debug output.
4266 (displaced_step_in_progress_any_inferior): New function.
4267 (displaced_step_fixup): New returns int.
4268 (start_step_over): Handle in-line step-overs too. Assert the
4269 thread is marked resumed.
4270 (resume_cleanups): Clear the thread's resumed flag.
4271 (resume): Set the thread's resumed flag. Return early if the
4272 thread has a pending status. Allow stepping a breakpoint with no
4273 signal.
4274 (proceed): Adjust to check 'resumed' instead of 'executing'.
4275 (clear_proceed_status_thread): If the thread has a pending status,
4276 and that status is a finished step, discard the pending status.
4277 (clear_proceed_status): Don't clear step_over_info here.
4278 (random_pending_event_thread, do_target_wait): New functions.
4279 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4280 do_target_wait.
4281 (wait_one): New function.
4282 (THREAD_STOPPED_BY): New macro.
4283 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4284 (thread_stopped_by_hw_breakpoint): New functions.
4285 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4286 functions.
4287 (handle_inferior_event): Also call set_resumed(false) on all
4288 threads implicitly stopped by the event.
4289 (restart_threads, resumed_thread_with_pending_status): New
4290 functions.
4291 (finish_step_over): If we were doing an in-line step-over before,
4292 and no longer are after trying to start a new step-over, restart
4293 all threads. If we have multiple threads with pending events,
4294 save the current event and go through the event loop again.
4295 (handle_signal_stop): Return early if finish_step_over returns
4296 false.
4297 <random signal>: If we get a signal while stepping over a
4298 breakpoint in-line in non-stop mode, restart all threads. Clear
4299 step_over_info before delivering the signal.
4300 (keep_going_stepped_thread): Use internal_error instead of
4301 gdb_assert. Mark the thread as resumed.
4302 (keep_going_pass_signal): Assert the thread isn't already resumed.
4303 If some other thread is doing an in-line step-over, defer the
4304 resume. If we just started a new in-line step-over, stop all
4305 threads. Don't clear step_over_info.
4306 (infrun_async_inferior_event_handler): New function.
4307 (_initialize_infrun): Create async event handler with
4308 infrun_async_inferior_event_handler as callback.
4309 (infrun_async): New declaration.
4310 * target.c (target_async): New function.
4311 * target.h (target_async): Declare macro and readd as function
4312 declaration.
4313 * target/waitstatus.h (enum target_stop_reason)
4314 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4315 * thread.c (new_thread): Clear the new waitstatus field.
4316 (set_resumed): New function.
4317
2ac7589c
PA
43182015-08-07 Pedro Alves <palves@redhat.com>
4319
4320 * infrun.c (keep_going_stepped_thread): New function, factored out
4321 from ...
4322 (switch_back_to_stepped_thread): ... here.
4323
8b061563
PA
43242015-08-07 Pedro Alves <palves@redhat.com>
4325
4326 * infrun.c (currently_stepping): Extend intro comment.
4327 * target.h (target_resume): Extend intro comment.
4328
1afd5965
PA
43292015-08-07 Pedro Alves <palves@redhat.com>
4330
4331 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4332 of inferior_ptid. If the stepped thread vanished, return 0
4333 instead of resuming here. Use reset_ecs. Print the prev_pc and
4334 the current stop_pc in log message. Clear trap_expected if the
4335 thread advanced. Don't pass currently_stepping to
4336 do_target_resume.
4337
4d9d9d04
PA
43382015-08-07 Pedro Alves <palves@redhat.com>
4339
4340 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4341 * infrun.c (struct execution_control_state): Move higher up in the
4342 file.
4343 (reset_ecs): New function.
4344 (start_step_over): Now returns int. Rewrite to use
4345 keep_going_pass_signal instead of manually starting a displaced step.
4346 (resume): Don't call set_running here. If displaced stepping
4347 can't start now, clear trap_expected.
4348 (find_thread_needs_step_over): Delete function.
4349 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4350 If the current thread needs a step over, push it in the step-over
4351 chain. Don't set insert breakpoints nor call resume directly
4352 here. Instead rewrite to use start_step_over and
4353 keep_going_pass_signal.
4354 (finish_step_over): New function.
4355 (handle_signal_stop): Call finish_step_over instead of
4356 start_step_over.
4357 (switch_back_to_stepped_thread): If the event thread needs another
4358 step-over do that first. Use start_step_over.
4359 (keep_going_pass_signal): New function, factored out from ...
4360 (keep_going): ... here.
4361 (_initialize_infrun): Comment moved here.
4362 * thread.c (set_running_thread): New function.
4363 (set_running, finish_thread_state): Use set_running_thread.
4364
c2829269
PA
43652015-08-07 Pedro Alves <palves@redhat.com>
4366
4367 * gdbthread.h (struct thread_info) <step_over_prev,
4368 step_over_next>: New fields.
4369 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4370 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4371 declarations.
4372 * infrun.c (struct displaced_step_request): Delete.
4373 (struct displaced_step_inferior_state) <step_request_queue>:
4374 Delete field.
4375 (displaced_step_prepare): Assert that trap_expected is set. Use
4376 thread_step_over_chain_enqueue. Split starting a new displaced
4377 step to ...
4378 (start_step_over): ... this new function.
4379 (resume): Assert the thread isn't waiting for a step over already.
4380 (proceed): Assert the thread isn't waiting for a step over
4381 already.
4382 (infrun_thread_stop_requested): Adjust to remove threads from the
4383 embedded step-over chain.
4384 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4385 displaced_step_fixup.
4386 (handle_signal_stop): Call start_step_over after
4387 displaced_step_fixup.
4388 * infrun.h (step_over_queue_head): New declaration.
4389 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4390 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4391 (thread_step_over_chain_enqueue)
4392 (thread_step_over_chain_remove): New functions.
4393 (delete_thread_1): Remove thread from the step-over chain.
4394
6c4cfb24
PA
43952015-08-07 Pedro Alves <palves@redhat.com>
4396
4397 * infrun.c (thread_still_needs_step_over): Rename to ...
4398 (thread_still_needs_step_over_bp): ... this.
4399 (enum step_over_what): New.
4400 (thread_still_needs_step_over): Reimplement.
4401
567420d1
PA
44022015-08-07 Pedro Alves <palves@redhat.com>
4403
4404 * remote.c (remote_wait_as): If not waiting for a stop reply,
4405 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4406 requested, don't block waiting forever.
4407
d8dd4d5f
PA
44082015-08-07 Pedro Alves <pedro@codesourcery.com>
4409
4410 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4411 waitstatus pointers instead of an ecs. Adjust.
4412 (handle_inferior_event): Adjust caller.
4413
e1316e60
PA
44142015-08-07 Pedro Alves <palves@redhat.com>
4415
4416 * infrun.c (handle_inferior_event): If we get
4417 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4418 mode, mark all threads of the exiting process as not-executing.
4419 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4420 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4421 exiting process, if inferior_ptid still points at a process.
4422 * thread.c (struct current_thread_cleanup) <next>: New field.
4423 (current_thread_cleanup_chain): New global.
4424 (restore_current_thread_ptid_changed): New function.
4425 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4426 current_thread_cleanup_chain list.
4427 (make_cleanup_restore_current_thread): Add the cleanup data to the
4428 current_thread_cleanup_chain list.
4429 (_initialize_thread): Install restore_current_thread_ptid_changed
4430 as thread_ptid_changed observer.
4431
47e9c225
JB
44322015-08-07 Joel Brobecker <brobecker@adacore.com>
4433
4434 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4435 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4436 smaller than expected.
4437
06096720
AB
44382015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4439
4440 * stack.c (get_frame_language): Moved ...
4441 * frame.c (get_frame_language): ... to here.
4442 * language.h (get_frame_language): Declaration moved to frame.h.
4443 * frame.h: Add language.h include, for language enum.
4444 (get_frame_language): Declaration moved from language.h.
4445 * language.c: Add frame.h include.
4446 * top.c: Add frame.h include.
4447 * symtab.h (struct obj_section): Declare.
4448 (struct cmd_list_element): Declare.
4449
7ff38b1c
AB
44502015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4451
4452 * language.c (show_language_command): Find selected frame before
4453 asking for the language of that frame.
4454 (set_language_command): Likewise.
4455 * language.h (get_frame_language): Add frame parameter.
4456 * stack.c (get_frame_language): Add frame parameter, assert
4457 parameter is not NULL, update comment and reindent.
4458 * top.c (check_frame_language_change): Pass the selected frame
4459 into get_frame_language.
4460
da8c46d2
MM
44612015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4462
4463 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4464 (pt_btrace_insn_flags): New.
4465 (ftrace_add_pt): Call pt_btrace_insn_flags.
4466 * btrace.h (btrace_insn_flag): New.
4467 (btrace_insn) <flags>: New.
4468 * record-btrace.c (btrace_insn_history): Print insn prefix.
4469 * NEWS: Announce it.
4470
5599c404
MM
44712015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4472
4473 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4474 * configure: Regenerate.
4475
016a3251
DD
44762015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4477
4478 * Makefile.in (LIBICONV): Define.
4479 (CLIBS): Add LIBICONV.
4480 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4481 * configure: Regenerate.
4482
aead7601
SM
44832015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4484 Pedro Alves <palves@redhat.com>
4485
4486 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4487 (arm_set_abi): Likewise.
4488 * ax-general.c (ax_print): Likewise.
4489 * c-exp.y (exp : string_exp): Likewise.
4490 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4491 (do_compile_dwarf_expr_to_c): Likewise.
4492 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4493 Likewise.
4494 * dwarf2expr.c (execute_stack_op): Likewise.
4495 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4496 (disassemble_dwarf_expression): Likewise.
4497 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4498 (read_array_order): Likewise.
4499 (abbrev_table_read_table): Likewise.
4500 (read_attribute_value): Likewise.
4501 (skip_unknown_opcode): Likewise.
4502 (dwarf_decode_macro_bytes): Likewise.
4503 (dwarf_decode_macros): Likewise.
4504 * eval.c (value_f90_subarray): Likewise.
4505 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4506 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4507 * infrun.c (handle_command): Likewise.
4508 * memory-map.c (memory_map_start_memory): Likewise.
4509 * osabi.c (set_osabi): Likewise.
4510 * parse.c (operator_length_standard): Likewise.
4511 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4512 single return point.
4513 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4514 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4515 (gdbpy_lookup_global_symbol): Likewise.
4516 * record-full.c (record_full_restore): Likewise.
4517 * regcache.c (regcache_register_status): Likewise.
4518 (regcache_raw_read): Likewise.
4519 (regcache_cooked_read): Likewise.
4520 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4521 * symtab.c (initialize_ordinary_address_classes): Likewise.
4522 * target-debug.h (target_debug_print_signals): Likewise.
4523 * utils.c (do_restore_current_language): Likewise.
4524
ca0a5f0b
CD
45252015-08-06 Clem Dickey <clemd@acm.org>
4526
4527 PR python/17136
4528 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4529
05d999b0
SM
45302015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4531
4532 * complaints.c (enum complaint_series): Add newlines and remove
4533 out of date comment.
4534 (struct complaints) <series>: Change type to enum
4535 complaint_series and remove out of date comment.
4536 (symfile_complaint_hook): Use equivalent enum value
4537 ISOLATED_MESSAGE instead of 0.
4538
bf47e248
PA
45392015-08-06 Pedro Alves <palves@redhat.com>
4540
4541 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4542 returned > 0.
4543
b6b9ffcc
PL
45442015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4545
4546 * common/agent.c (symbol_list) <required>: Remove.
4547
863d01bd
PA
45482015-08-06 Pedro Alves <palves@redhat.com>
4549
4550 * target/waitstatus.h (enum target_stop_reason)
4551 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4552
0a39bb32
PA
45532015-08-05 Pedro Alves <palves@redhat.com>
4554 Joel Brobecker <brobecker@adacore.com>
4555
9d996aba 4556 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
4557 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4558 case where BS->STOP is not set.
4559
260439cb
UW
45602015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4561
4562 * nat/gdb_thread_db.h: Add copyright header.
4563 Protect against multiple inclusion.
4564
d89fa914
YQ
45652015-08-05 Yao Qi <yao.qi@linaro.org>
4566
4567 * aarch64-linux-nat.c (get_thread_id): Remove.
4568 (debug_reg_change_callback): Call ptid_get_lwp instead of
4569 get_thread_id.
4570 (fetch_gregs_from_thread): Likewise.
4571 (store_gregs_to_thread): Likewise.
4572 (fetch_fpregs_from_thread): Likewise.
4573 (store_fpregs_to_thread): Likewise.
4574 (aarch64_linux_get_debug_reg_capacity): Likewise.
4575 * arm-linux-nat.c (get_thread_id): Remove.
4576 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4577 * xtensa-linux-nat.c (get_thread_id): Remove.
4578 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4579 * arm-linux-nat.c (get_thread_id): Remove.
4580 (GET_THREAD_ID): Remove.
4581 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4582 (store_fpregs, fetch_regs, store_regs): Likewise.
4583 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4584 (fetch_vfp_regs, store_vfp_regs): Likewise.
4585 (arm_linux_read_description): Likewise.
4586 (arm_linux_get_hwbp_cap): Likewise.
4587 * xtensa-linux-nat.c (get_thread_id): Remove.
4588 (GET_THREAD_ID): Remove.
4589 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4590 GET_THREAD_ID.
4591
4efd80aa
CS
45922015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4593
4594 * python/py-linetable.c: Fix case of Linetable to LineTable
4595 in docstrings and code comments.
4596 * python/py-symtab.c: Same.
4597
c6343a91
JK
45982015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4599
4600 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4601
978b9495
JK
46022015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4603
4604 PR gdb/18767
4605 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4606 use.
4607
96e9210f
PA
46082015-08-04 Pedro Alves <palves@redhat.com>
4609
4610 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4611 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4612 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4613 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4614 (td_thr_validate_ftype, td_thr_get_info_ftype)
4615 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4616 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4617 New typedefs.
4618 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4619 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4620 local macros and use them instead of verbose_dlsym and dlsym
4621 calls.
4622
af60a1ef
SL
46232015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4624
4625 * nios2-tdep.h: Include opcode/nios2.h here.
4626 (NIOS2_CDX_OPCODE_SIZE): New.
4627 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4628 * nios2-tdep.c: Don't include opcode/nios2.h here.
4629 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4630 4-byte read fails.
4631 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4632 (nios2_match_addi, nios2_match_orhi): Likewise.
4633 (nios2_match_stw, nios2_match_ldw): Likewise.
4634 (nios2_match_rdctl): Likewise.
4635 (nios2_match_stwm, nios2_match_ldwm): New.
4636 (nios2_match_branch): Add cases for R2 encodings.
4637 (nios2_match_jmpi, nios2_match_calli): Likewise.
4638 (nios2_match_jmpr, nios2_match_callr): Likewise.
4639 (nios2_match_break, nios2_match_trap): Likewise.
4640 (nios2_in_epilogue_p): Add R2 support.
4641 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4642 prologues.
4643 (nios2_breakpoint_from_pc): Handle R2 instructions.
4644 (nios2_get_next_pc): Likewise. Adjust call to
4645 tdep->syscall_next_pc.
4646 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4647 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4648 instruction field macros instead of literal hex values.
4649 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4650 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4651 Use size field from OP instead of assuming all instructions
4652 are the same size.
4653 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4654
1da03605
UW
46552015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4656
4657 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4658 variable warning with some compilers.
4659
8156fe7f
YQ
46602015-08-03 Yao Qi <yao.qi@linaro.org>
4661
4662 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4663 in comment. Replace "rw" with "type".
4664 (arm_linux_remove_watchpoint): Change type of "rw" to
4665 "enum target_hw_bp_type".
4666
835a09d9
PMR
46672015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4668
4669 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4670 lookup_symbol.
4671 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4672 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4673 * mt-tdep.c (mt_skip_prologue): Likewise.
4674 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4675
d12307c1
PMR
46762015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4677
4678 * ada-exp.y (write_object_renaming): Replace struct
4679 ada_symbol_info with struct block_symbol. Update field
4680 references accordingly.
4681 (block_lookup, select_possible_type_sym): Likewise.
4682 (find_primitive_type): Likewise. Also update call to
4683 ada_lookup_symbol to extract the symbol itself.
4684 (write_var_or_type, write_name_assoc): Likewise.
4685 * ada-lang.h (struct ada_symbol_info): Remove.
4686 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4687 struct block_symbol.
4688 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4689 (ada_lookup_symbol): Return struct block_symbol instead of a
4690 mere symbol.
4691 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4692 with struct block_symbol.
4693 (resolve_subexp, ada_resolve_function, sort_choices,
4694 user_select_syms, is_nonfunction, add_defn_to_vec,
4695 num_defns_collected, defns_collected,
4696 symbols_are_identical_enums, remove_extra_symbols,
4697 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4698 ada_lookup_symbol_list, ada_iterate_over_symbols,
4699 ada_lookup_encoded_symbol, get_var_value): Likewise.
4700 (ada_lookup_symbol): Return a block_symbol instead of a mere
4701 symbol. Replace struct ada_symbol_info with struct
4702 block_symbol.
4703 (ada_lookup_symbol_nonlocal): Likewise.
4704 (standard_lookup): Make block passing explicit through
4705 lookup_symbol_in_language.
4706 * ada-tasks.c (get_tcb_types_info): Update the calls to
4707 lookup_symbol_in_language to extract the mere symbol out of the
4708 returned value.
4709 (ada_tasks_inferior_data_sniffer): Likewise.
4710 * ax-gdb.c (gen_static_field): Likewise for the call to
4711 lookup_symbol.
a5fdf78a 4712 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
4713 lookup functions.
4714 (gen_expr): Likewise.
4715 * c-exp.y: Likewise. Remove uses of block_found.
4716 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4717 (classify_name): Likewise. Rename the "sym" local variable to
4718 "bsym".
4719 * c-valprint.c (print_unpacked_pointer): Likewise.
4720 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4721 "sym" parameter from struct symbol * to struct block_symbol.
4722 Use it to remove uses of block_found. Deal with struct
a5fdf78a 4723 block_symbol from lookup functions.
d12307c1
PMR
4724 (gcc_convert_symbol): Likewise. Update the call to
4725 convert_symbol_sym.
4726 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 4727 struct block_symbol from lookup functions.
d12307c1
PMR
4728 * cp-namespace.c (cp_lookup_nested_symbol_1,
4729 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4730 cp_search_static_and_baseclasses,
4731 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4732 cp_lookup_symbol_imports_or_template,
4733 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4734 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
4735 find_symbol_in_baseclass): Return struct block_symbol instead of
4736 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
4737 functions.
4738 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 4739 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
4740 lookup functions.
4741 * cp-support.h (cp_lookup_symbol_nonlocal,
4742 cp_lookup_symbol_from_namespace,
4743 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 4744 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
4745 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4746 push_module_name):
a5fdf78a 4747 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
4748 uses of block_found.
4749 * eval.c (evaluate_subexp_standard): Update call to
4750 cp_lookup_symbol_namespace.
a5fdf78a
PMR
4751 * f-exp.y: Deal with struct block_symbol from lookup functions.
4752 Remove uses of block_found.
d12307c1
PMR
4753 (yylex): Likewise.
4754 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4755 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 4756 struct block_symbol from lookup functions.
d12307c1
PMR
4757 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4758 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4759 (gdbscm_lookup_global_symbol): Likewise.
4760 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4761 * go-exp.y: Likewise. Remove uses of block_found.
4762 (package_name_p, classify_packaged_name, classify_name):
4763 Likewise.
4764 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4765 * jv-exp.y (push_variable): Likewise.
4766 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4767 * language.c (language_bool_type): Likewise.
4768 * language.h (struct language_defn): Update
a5fdf78a
PMR
4769 la_lookup_symbol_nonlocal to return a struct block_symbol rather
4770 than a mere symbol.
4771 * linespec.c (find_label_symbols): Deal with struct block_symbol
4772 from lookup functions.
d12307c1
PMR
4773 * m2-exp.y: Likewise. Remove uses of block_found.
4774 (yylex): Likewise.
4775 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4776 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4777 * p-exp.y: Likewise. Remove uses of block_found.
4778 (yylex): Likewise.
4779 * p-valprint.c (pascal_val_print): Likewise.
4780 * parse.c (write_dollar_variable): Likewise. Remove uses of
4781 block_found.
4782 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
4783 struct block_symbol.
4784 * printcmd.c (address_info): Deal with struct block_symbol from
4785 lookup functions.
d12307c1
PMR
4786 * python/py-frame.c (frapy_read_var): Likewise.
4787 * python/py-symbol.c (gdbpy_lookup_symbol,
4788 gdbpy_lookup_global_symbol): Likewise.
4789 * skip.c (skip_function_command): Likewise.
4790 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 4791 block_symbol instead of a mere symbol.
d12307c1
PMR
4792 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4793 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4794 * solib.c (solib_global_lookup): Likewise.
4795 * solist.h (solib_global_lookup): Likewise.
4796 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
4797 return a struct block_symbol rather than a mere symbol.
4798 * source.c (select_source_symtab): Deal with struct block_symbol
4799 from lookup functions.
d12307c1
PMR
4800 * stack.c (print_frame_args, iterate_over_block_arg_vars):
4801 Likewise.
4802 * symfile.c (set_initial_language): Likewise.
4803 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 4804 block_symbol.
d12307c1
PMR
4805 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4806 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 4807 block_symbol.
d12307c1 4808 (block_found): Remove.
a5fdf78a 4809 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 4810 cache slots.
a5fdf78a
PMR
4811 (symbol_cache_lookup): Return a struct block_symbol rather than
4812 a mere symbol.
d12307c1
PMR
4813 (symbol_cache_mark_found): Add a BLOCK parameter to fill
4814 appropriately the cache slots. Update callers.
4815 (symbol_cache_dump): Update cache slots handling to the type
4816 change.
4817 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4818 lookup_symbol_aux, lookup_local_symbol,
4819 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4820 lookup_symbol_in_objfile_symtabs,
4821 lookup_symbol_in_objfile_from_linkage_name,
4822 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4823 lookup_symbol_in_static_block, lookup_static_symbol,
4824 lookup_global_symbol):
a5fdf78a
PMR
4825 Return a struct block_symbol rather than a mere symbol. Deal
4826 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
4827 uses of block_found.
4828 (lookup_symbol_in_block): Remove uses of block_found.
4829 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 4830 struct block_symbol.
d12307c1
PMR
4831 (lookup_symbol_global_iterator_cb): Update references to the
4832 RESULT field.
a5fdf78a 4833 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 4834 functions.
a5fdf78a 4835 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
4836 (block_found): Remove.
4837 (lookup_symbol_in_language, lookup_symbol,
4838 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
4839 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
4840 lookup_global_symbol_from_objfile): Return a struct block_symbol
4841 rather than just a mere symbol. Update comments to remove
4842 mentions of block_found.
d12307c1
PMR
4843 * valops.c (find_function_in_inferior,
4844 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 4845 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
4846 functions.
4847 * value.c (value_static_field, value_fn_field): Likewise.
4848
b1c59ddc
SM
48492015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4850
4851 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
4852 instead of integer.
4853
f486487f 48542015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 4855 Pedro Alves <palves@redhat.com>
f486487f
SM
4856
4857 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
4858 type or value instead of integer.
4859 (aarch64_linux_insert_watchpoint): Likewise.
4860 (aarch64_linux_remove_watchpoint): Likewise.
4861 * ada-lang.c (ada_op_print_tab): Likewise.
4862 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
4863 (amd64_linux_syscall_record_common): Likewise.
4864 * arch-utils.c (target_byte_order_user): Likewise.
4865 (default_byte_order): Likewise.
4866 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
4867 (arm_linux_get_hwbp_type): Likewise.
4868 (arm_linux_hw_watchpoint_initialize): Likewise.
4869 (arm_linux_insert_watchpoint): Likewise.
4870 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
4871 (arm_linux_syscall_record): Likewise.
4872 * breakpoint.c (update_watchpoint): Likewise.
4873 (breakpoint_here_p): Likewise.
4874 (bpstat_print): Likewise.
4875 (enable_breakpoint_disp): Likewise.
4876 * c-lang.c (c_op_print_tab): Likewise.
4877 * cli/cli-decode.c (add_info_alias): Likewise.
4878 * d-lang.c (d_op_print_tab): Likewise.
4879 * eval.c (evaluate_subexp_standard): Likewise.
4880 * f-exp.y (dot_ops): Likewise.
4881 (f77_keywords): Likewise.
4882 * f-lang.c (f_op_print_tab): Likewise.
4883 * go-lang.c (go_op_print_tab): Likewise.
4884 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
4885 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
4886 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4887 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
4888 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
4889 (struct scm_from_stringn_data): Likewise.
4890 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4891 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4892 (ia64_linux_remove_watchpoint): Likewise.
4893 (ia64_linux_can_use_hw_breakpoint): Likewise.
4894 * infrun.c (print_stop_event): Likewise.
4895 * jv-lang.c (java_op_print_tab): Likewise.
4896 * linux-nat.c (linux_proc_xfer_partial): Likewise.
4897 * linux-nat.h (struct lwp_info): Likewise.
4898 * linux-thread-db.c (enable_thread_event): Likewise.
4899 * m2-lang.c (m2_op_print_tab): Likewise.
4900 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4901 (mi_cmd_stack_list_variables): Likewise.
4902 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
4903 * mi/mi-out.c (mi_table_begin): Likewise.
4904 (mi_table_header): Likewise.
4905 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
4906 (mips_linux_insert_watchpoint): Likewise.
4907 (mips_linux_remove_watchpoint): Likewise.
4908 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
4909 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
4910 (mips_linux_watch_type_to_irw): Likewise.
4911 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4912 (procfs_insert_hw_watchpoint): Likewise.
4913 (procfs_remove_hw_watchpoint): Likewise.
4914 (procfs_hw_watchpoint): Likewise.
4915 (procfs_can_use_hw_breakpoint): Likewise.
4916 (procfs_remove_hw_watchpoint): Likewise.
4917 (procfs_insert_hw_watchpoint): Likewise.
4918 * p-lang.c (pascal_op_print_tab): Likewise.
4919 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
4920 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
4921 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
4922 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4923 (procfs_insert_watchpoint): Likewise.
4924 (procfs_remove_watchpoint): Likewise.
4925 * psymtab.c (recursively_search_psymtabs): Likewise.
4926 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
4927 (m32r_insert_watchpoint): Likewise.
4928 * remote-mips.c (mips_can_use_watchpoint): Likewise.
4929 (mips_insert_watchpoint): Likewise.
4930 (mips_remove_watchpoint): Likewise.
4931 * remote.c (watchpoint_to_Z_packet): Likewise.
4932 (remote_insert_watchpoint): Likewise.
4933 (remote_remove_watchpoint): Likewise.
4934 (remote_check_watch_resources): Likewise.
4935 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4936 (s390_remove_watchpoint): Likewise.
4937 (s390_can_use_hw_breakpoint): Likewise.
4938 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4939 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
4940 * target.h (struct target_ops): Likewise.
4941 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4942 * ui-out.c (struct ui_out_hdr): Likewise.
4943 (append_header_to_list): Likewise.
4944 (get_next_header): Likewise.
4945 (verify_field): Likewise.
4946 (ui_out_begin): Likewise.
4947 (ui_out_field_int): Likewise.
4948 (ui_out_field_fmt_int): Likewise.
4949 (ui_out_field_skip): Likewise.
4950 (ui_out_field_string): Likewise.
4951 (ui_out_field_fmt): Likewise.
4952 * varobj.c (new_variable): Likewise.
4953 * x86-nat.c (x86_insert_watchpoint): Likewise.
4954 (x86_remove_watchpoint): Likewise.
4955 (x86_can_use_hw_breakpoint): Likewise.
4956 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
4957 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
4958 previously anonymous enumeration type..
4959 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
4960 value.
4961 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
4962 (target_debug_print_enum_bptype): New.
4963 * target-delegates.c: Regenerate.
4964
e1b5381f
SL
49652015-07-30 Sandra Loosemore <sandra@codesourcery.com>
4966
4967 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
4968 already says and disallow non-stack memory writes in the prologue.
4969
9aaf8e3a
SL
49702015-07-30 Sandra Loosemore <sandra@codesourcery.com>
4971
4972 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
4973 reflect how current GCC emits stack overflow checks. Match
4974 both trap and break instructions for backward compatbility.
4975 Disallow other trap and break instructions in the prologue.
4976
69dde7dc
PA
49772015-07-30 Pedro Alves <palves@redhat.com>
4978
4979 PR threads/18600
4980 * linux-nat.c (wait_lwp): Report to the core when thread group
4981 leader exits.
4982
4dd63d48
PA
49832015-07-30 Pedro Alves <palves@redhat.com>
4984 Simon Marchi <simon.marchi@ericsson.com>
4985
4986 PR threads/18600
4987 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
4988 mark the new thread as resumed. Remove STOPPING parameter.
4989 (wait_lwp): Adjust call to linux_handle_extended_wait.
4990 (linux_nat_filter_event): Adjust call to
4991 linux_handle_extended_wait.
4992 (resume_stopped_resumed_lwps): Add debug output.
4993
6b940e6a
PL
49942015-07-30 Pierre Langlois <pierre.langlois@arm.com>
4995
4996 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
4997 isize argument.
4998 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
4999 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5000 gdbarch_fast_tracepoint_valid_at.
5001 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5002 * gdbarch.h: Regenerate.
5003 * gdbarch.c: Regenerate.
5004 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5005 argument. Do not set it.
5006 * remote.c (remote_download_tracepoint): Adjust call to
5007 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5008 the instruction length.
5009
ec741292
YQ
50102015-07-30 Yao Qi <yao.qi@linaro.org>
5011
5012 * arm-tdep.h (enum gdb_regnum): Move it to ...
5013 * arch/arm.h: ... here. New file.
5014 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5015
0ea6402e
PL
50162015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5017
5018 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5019 Change its type to int *.
5020 (decode_br): Rename link argument to is_blr. Change its type to
5021 int *.
5022 (decode_cb): Rename op argument to is_cbnz. Change its type to
5023 int *.
5024 (decode_tb): Rename op argument to is_tbnz. Change its type to
5025 int *. Set is_tbnz to either 1 or 0.
5026 (aarch64_analyze_prologue): Change type of is_link to int. Add
5027 new variables is_cbnz and is_tbnz. Adjust call to
5028 aarch64_decode_cb and aarch64_decode_tb.
5029
aa58a496
SM
50302015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5031
5032 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5033 parameter.
5034 (mips_linux_new_thread): Likewise.
5035 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5036
18206ca3
PP
50372015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5038
5039 * top.c: Include "tui/tui.h".
5040 (undo_terminal_modifications_before_exit): New static function.
5041 (quit_force): Use it.
5042
7afa63c6
PP
50432015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5044
5045 * target.c (terminal_state): Initialize to terminal_is_ours.
5046
cc9f16aa
YQ
50472015-07-29 Yao Qi <yao.qi@linaro.org>
5048
5049 PR record/18691
5050 * dcache.c (dcache_read_memory_partial): Call
5051 raw_memory_xfer_partial.
5052 * target.c (raw_memory_xfer_partial): Make it non-static.
5053 * target.h (raw_memory_xfer_partial): Declare.
5054
3ae385af
SM
50552015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5056
5057 * c-valprint.c (c_val_print_array): Consider addressable memory
5058 unit size.
5059 (c_val_print_ptr): Likewise.
5060 (c_val_print_int): Likewise.
5061 * findvar.c (read_frame_register_value): Likewise.
5062 * valarith.c (find_size_for_pointer_math): Likewise.
5063 (value_ptrdiff): Likewise.
5064 (value_subscripted_rvalue): Likewise.
5065 * valops.c (read_value_memory): Likewise (and rename variables).
5066 (value_assign): Likewise.
5067 (value_repeat): Likewise.
5068 (value_array): Likewise.
5069 (value_slice): Likewise.
5070 * valprint.c (generic_val_print_ptr): Likewise.
5071 (generic_val_print_enum): Likewise.
5072 (generic_val_print_bool): Likewise.
5073 (generic_val_print_int): Likewise.
5074 (generic_val_print_char): Likewise.
5075 (generic_val_print_float): Likewise.
5076 (generic_val_print_decfloat): Likewise.
5077 (generic_val_print_complex): Likewise.
5078 (val_print_scalar_formatted): Likewise.
5079 (val_print_array_elements): Likewise.
5080 * value.c (set_value_parent): Likewise.
5081 (value_contents_copy_raw): Likewise.
5082 (set_internalvar_component): Likewise.
5083 (value_primitive_field): Likewise.
5084 (value_fetch_lazy): Likewise.
5085 * value.h (read_value_memory): Update comment.
5086
e512cdbd
SM
50872015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5088
5089 * value.c (get_value_arch): New function.
5090 * value.h (get_value_arch): New declaration.
5091
3723fda8
SM
50922015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5093
5094 * value.c (struct value): Update comments.
5095
2e056931
SM
50962015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5097
5098 * gdbtypes.c (type_length_units): New function.
5099 * gdbtypes.h (type_length_units): New declaration.
5100 (struct type) <length>: Update comment.
5101
0c87c0bf
SM
51022015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5103
5104 * valprint.c (generic_val_print): Factor out complex
5105 printing code to ...
5106 (generic_val_print_complex): ... this new function.
5107
9550ae5e
SM
51082015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5109
5110 * valprint.c (generic_val_print): Factor out decfloat
5111 printing code to ...
5112 (generic_val_print_decfloat): ... this new function.
5113
7784724b
SM
51142015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5115
5116 * valprint.c (generic_val_print): Factor out float
5117 printing code to ...
5118 (generic_val_print_float): ... this new function.
5119
385f5aff
SM
51202015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5121
5122 * valprint.c (generic_val_print): Factor out char
5123 printing code to ...
5124 (generic_val_print_char): ... this new function.
5125
b21b6342
SM
51262015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5127
5128 * valprint.c (generic_val_print): Factor out integer
5129 printing code to ...
5130 (generic_val_print_int): ... this new function.
5131
e5bead4b
SM
51322015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5133
5134 * valprint.c (generic_val_print): Factor out bool
5135 printing code to ...
5136 (generic_val_print_bool): ... this new function.
5137
4a8c372f
SM
51382015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5139
5140 * valprint.c (generic_val_print): Factor out function/method
5141 printing code to ...
5142 (generic_val_print_func): ... this new function.
5143
d93880bd
SM
51442015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5145
5146 * valprint.c (generic_val_print): Factor out flags
5147 printing code to ...
5148 (generic_val_print_flags): ... this new function.
5149
ef0bc0dd
SM
51502015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5151
5152 * valprint.c (generic_val_print): Factor out enum
5153 printing code to ...
5154 (generic_val_print_enum): ... this new function.
5155
fe43fede
SM
51562015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5157
5158 * valprint.c (generic_val_print): Factor out reference
5159 printing code to ...
5160 (generic_val_print_ref): ... this new function.
5161
45000ea2
SM
51622015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5163
5164 * valprint.c (generic_val_print): Factor out memberptr
5165 printing code to ...
5166 (generic_val_print_memberptr): ... this new function.
5167
81eb921a
SM
51682015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5169
5170 * valprint.c (generic_val_print): Factor out pointer
5171 printing code to ...
5172 (generic_val_print_ptr): ... this new function.
5173
557dbe8a
SM
51742015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5175
5176 * valprint.c (generic_val_print): Factor out array
5177 printing code to ...
5178 (generic_val_print_array): ... this new function.
5179
9f436164
SM
51802015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5181
5182 * valprint.c (generic_val_print): Factor out
5183 print_unpacked_pointer code to ...
5184 (print_unpacked_pointer): ... this new function.
5185
077836f7
PP
51862015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5187
5188 * event-top.c (handle_sigterm): Don't inspect
5189 target_can_async_p. Always set the quit flag and always mark
5190 the async signal handler.
5191
3a60804f
YQ
51922015-07-27 Yao Qi <yao.qi@linaro.org>
5193
5194 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5195
c9f35b34
KB
51962015-07-25 Kevin Buettner <kevinb@redhat.com>
5197
5198 * remote.c (read_ptid): Return null_ptid when no thread id
5199 is found.
5200 (remote_current_thread): Add log warning for malformed
5201 qC reply.
5202 (remote_start_remote): Add log warning when current thread
5203 not found.
5204
2b4cab86
PA
52052015-07-24 Pedro Alves <palves@redhat.com>
5206
5207 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5208 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5209 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5210
77598427
PA
52112015-07-24 Pedro Alves <palves@redhat.com>
5212
5213 PR gdb/18717
5214 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5215 is resumed, and extend the debug log.
5216
fe23c31f
PA
52172015-07-24 Pedro Alves <palves@redhat.com>
5218
5219 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5220
5826e159
PA
52212015-07-24 Pedro Alves <palves@redhat.com>
5222
5223 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5224 sys/ptrace.h.
5225 * alpha-linux-nat.c: Likewise.
5226 * amd64-linux-nat.c: Likewise.
5227 * arm-linux-nat.c: Likewise.
5228 * hppa-linux-nat.c: Likewise.
5229 * i386-linux-nat.c: Likewise.
5230 * ia64-linux-nat.c: Likewise.
5231 * linux-fork.c: Likewise.
5232 * linux-nat.c: Likewise.
5233 * m32r-linux-nat.c: Likewise.
5234 * m68klinux-nat.c: Likewise.
5235 * mips-linux-nat.c: Likewise.
5236 * nat/linux-btrace.c: Likewise.
5237 * nat/linux-ptrace.c: Likewise.
5238 * nat/linux-ptrace.h
5239 * nat/mips-linux-watch.c: Likewise.
5240 * nat/x86-linux-dregs.c: Likewise.
5241 * ppc-linux-nat.c: Likewise.
5242 * s390-linux-nat.c: Likewise.
5243 * spu-linux-nat.c: Likewise.
5244 * tilegx-linux-nat.c: Likewise.
5245 * x86-linux-nat.c: Likewise.
5246 * xtensa-linux-nat.c: Likewise.
5247
54019719
PA
52482015-07-24 Pedro Alves <palves@redhat.com>
5249
5250 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5251 __ptrace_request as first parameter type instead of int.
5252 (PTRACE_TYPE_ARG1): Define.
5253 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5254 that casts first argument to PTRACE_TYPE_ARG1.
5255 * config.in: Regenerate.
5256 * configure: Regenerate.
5257
e3790375
PA
52582015-07-24 Pedro Alves <palves@redhat.com>
5259
5260 * gdb_ptrace.h: Move ...
5261 * nat/gdb_ptrace.h: ... here.
5262 * inf-ptrace.c: Adjust.
5263
eb7aa561
PA
52642015-07-24 Pedro Alves <palves@redhat.com>
5265
5266 * acinclude.m4: Include ptrace.m4.
5267 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5268 * ptrace.m4: ... to this new file.
5269
cc12ce38
DE
52702015-07-23 Doug Evans <dje@google.com>
5271
5272 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5273 (load_cu): Handle dummy CUs.
5274 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5275 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5276
7b849db4
CS
52772015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5278
5279 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5280 documentation to say that it returns a list rather than
5281 a FrozenSet.
5282 (linetable_object_methods): Update the docstring of the
5283 "source_line" entry.
5284
d0d84780
PMR
52852015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5286
5287 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5288 type to the recursive call instead of the original (maybe
5289 TYPE_CODE_TYPEDEF) type.
5290
c2fbdc59
YQ
52912015-07-23 Yao Qi <yao.qi@linaro.org>
5292
5293 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5294 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5295 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5296
af1b22f3
YQ
52972015-07-21 Yao Qi <yao.qi@linaro.org>
5298
5299 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5300 Move it to nat/aarch64-linux-hw-point.c.
5301 (aarch64_linux_child_post_startup_inferior): Update.
5302 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5303 New function.
5304 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5305 Declare it.
5306
40e050d2
MM
53072015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5308
5309 * common/btrace-common.c (btrace_data_append): Change case label.
5310
3675a06a
YQ
53112015-07-20 Yao Qi <yao.qi@linaro.org>
5312
5313 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5314 Re-indent the code.
5315 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5316 "unsigned long long".
5317
b4e1fd61
KB
53182015-07-18 Kevin Buettner <kevinb@redhat.com>
5319
5320 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5321 to be set for SEC_ALLOC sections too.
5322
554717a3
YQ
53232015-07-17 Yao Qi <yao.qi@linaro.org>
5324
5325 * Makefile.in (HFILES_NO_SRCDIR): Add
5326 nat/aarch64-linux-hw-point.h.
5327 (aarch64-linux-hw-point.o): New rule.
5328 * nat/aarch64-linux-hw-point.h: New file.
5329 * nat/aarch64-linux-hw-point.c: New file.
5330 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5331 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5332 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5333 (AARCH64_HWP_ALIGNMENT): Likewise.
5334 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5335 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5336 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5337 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5338 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5339 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5340 (struct aarch64_debug_reg_state): Likewise.
5341 (struct arch_lwp_info): Likewise.
5342 (aarch64_linux_set_debug_regs): Likewise.
5343 (aarch64_notify_debug_reg_change): Remove static.
5344 (aarch64_align_watchpoint): Likewise.
5345 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5346 (aarch64_watchpoint_length): Likewise.
5347 (aarch64_point_encode_ctrl_reg): Likewise
5348 (aarch64_point_is_aligned): Likewise.
5349 (aarch64_dr_state_insert_one_point): Likewise.
5350 (aarch64_dr_state_remove_one_point): Likewise.
5351 (aarch64_handle_breakpoint): Likewise.
5352 (aarch64_handle_aligned_watchpoint): Likewise.
5353 (aarch64_handle_unaligned_watchpoint): Likewise.
5354 (aarch64_handle_watchpoint): Likewise.
5355 * config/aarch64/linux.mh (NAT_FILE): Add
5356 aarch64-linux-hw-point.o.
5357
c67ca4de
YQ
53582015-07-17 Yao Qi <yao.qi@linaro.org>
5359
5360 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5361 state and don't call aarch64_get_debug_reg_state. All callers
5362 update.
5363 (aarch64_linux_insert_hw_breakpoint): Call
5364 aarch64_get_debug_reg_state earlier.
5365 (aarch64_linux_remove_hw_breakpoint): Likewise.
5366 (aarch64_handle_aligned_watchpoint): Add argument state and
5367 don't call aarch64_get_debug_reg_state. All callers update.
5368 (aarch64_handle_unaligned_watchpoint): Likewise.
5369 (aarch64_handle_watchpoint): Add argument state.
5370 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5371 earlier.
5372 (aarch64_linux_remove_watchpoint): Likewise.
5373
25abf979
YQ
53742015-07-17 Yao Qi <yao.qi@linaro.org>
5375
5376 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5377 debug_printf.
5378 (aarch64_handle_unaligned_watchpoint): Likewise.
5379
2ecd81c2
YQ
53802015-07-17 Yao Qi <yao.qi@linaro.org>
5381
5382 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5383 argument type's type to 'enum target_hw_bp_type'.
5384 (aarch64_dr_state_remove_one_point): Likewise.
5385 (aarch64_handle_breakpoint): Likewise.
5386 (aarch64_linux_insert_hw_breakpoint): Likewise.
5387 (aarch64_linux_remove_hw_breakpoint): Likewise.
5388 (aarch64_handle_aligned_watchpoint): Likewise.
5389
e53b6938
YQ
53902015-07-17 Yao Qi <yao.qi@linaro.org>
5391
5392 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5393 ptid_get_pid instead of get_thread_id.
5394
6a49a997
YQ
53952015-07-17 Yao Qi <yao.qi@linaro.org>
5396
5397 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5398 (add_current_inferior_and_thread): Don't initialise ptid.
5399
4bcddace
PL
54002015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5401
5402 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5403 unavailable if invalid.
5404
db1ff28b
JK
54052015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5406
5407 Revert the previous 6 commits:
5408 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5409 Move gdb_regex* to common/
5410 Prepare linux_find_memory_regions_full & co. for move
5411 Move linux_find_memory_regions_full & co.
5412 gdbserver build-id attribute generator
5413 Validate symbol file using build-id
5414
ca5268b6
JK
54152015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5416 Jan Kratochvil <jan.kratochvil@redhat.com>
5417
5418 Validate symbol file using build-id.
5419 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5420 and 'show validate-build-id'. Add build-id attribute.
5421 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5422 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5423 * solib-frv.c (_initialize_frv_solib): Ditto.
5424 * solib-spu.c (set_spu_solib_ops): Ditto.
5425 * solib-svr4.c: Include rsp-low.h.
5426 (NOTE_GNU_BUILD_ID_NAME): New define.
5427 (svr4_validate): New function.
5428 (svr4_copy_library_list): Duplicate field build_id.
5429 (library_list_start_library): Parse 'build-id' attribute.
5430 (svr4_library_attributes): Add 'build-id' attribute.
5431 (_initialize_svr4_solib): Assign validate value.
5432 * solib-target.c (solib.h): Include.
5433 (_initialize_solib_target): Assign validate value.
5434 * solib.c (validate_build_id, show_validate_build_id): New.
5435 (solib_map_sections): Use ops->validate.
5436 (clear_so): Free build_id.
5437 (default_solib_validate): New function.
5438 (_initialize_solib): Add "validate-build-id".
5439 * solib.h (default_solib_validate): New declaration.
5440 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5441 (target_so_ops): New field 'validate'.
5442
700ca40f
JK
54432015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5444 Jan Kratochvil <jan.kratochvil@redhat.com>
5445
5446 gdbserver build-id attribute generator.
5447 * features/library-list-svr4.dtd (library-list-svr4): New
5448 'build-id' attribute.
5449
9904185c
JK
54502015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5451 Jan Kratochvil <jan.kratochvil@redhat.com>
5452
5453 Move linux_find_memory_regions_full & co.
5454 * linux-tdep.c (nat/linux-maps.h): Include.
5455 (gdb_regex.h): Remove the include.
5456 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5457 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5458 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5459 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5460 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5461 and target/target.h.
5462 (struct smaps_vmflags, read_mapping, decode_vmflags)
5463 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5464 (linux_find_memory_regions_full): Move from linux-tdep.c.
5465 * nat/linux-maps.h (read_mapping): New declaration.
5466 (linux_find_memory_region_ftype, enum filterflags): Moved from
5467 linux-tdep.c.
5468 (linux_find_memory_regions_full): New declaration.
5469 * target.c (target/target-utils.h): Include.
5470 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5471 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5472 definitions to target/target-utils.c.
5473 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5474 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5475 from target.c.
5476 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5477 (read_alloc): New declaration.
5478 (read_stralloc_func_ftype): New typedef.
5479 (read_stralloc): New declaration.
5480 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5481
f7af1fcd
JK
54822015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5483 Jan Kratochvil <jan.kratochvil@redhat.com>
5484
5485 Prepare linux_find_memory_regions_full & co. for move.
5486 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5487 (linux_find_memory_regions_full): Change signature and prepare
5488 for moving to linux-maps.
5489 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5490 (linux_find_memory_regions_thunk): New.
5491 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5492 (linux_find_memory_regions_gdb): New.
5493 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5494 (linux_make_mappings_corefile_notes): Use
5495 linux_find_memory_regions_gdb.
5496 * target.c (read_alloc_pread_ftype): New typedef.
5497 (target_fileio_read_alloc_1_pread): New function.
5498 (read_alloc): Refactor from target_fileio_read_alloc_1.
5499 (read_stralloc_func_ftype): New typedef.
5500 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5501 (read_stralloc): Refactored from target_fileio_read_stralloc.
5502 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5503
6e5b4429
JK
55042015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5505
5506 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5507 common/gdb_regex.h.
5508 (COMMON_OBS): Add gdb_regex.o.
5509 (gdb_regex.o): New.
5510 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5511 --without-included-regex and USE_INCLUDED_REGEX.
5512 * common/gdb_regex.c: New file from utils.c functions.
5513 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5514 file wrapping define name.
5515 * configure: Rebuilt.
5516 * configure.ac (gdb_use_included_regex, --without-included-regex)
5517 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5518 * gdb_regex.h: Move it to common/gdb_regex.h.
5519 * utils.c: Remove include gdb_regex.h.
5520 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5521 (compile_rx_or_error): Move them to common/gdb_regex.c.
5522
ddc98fbf
JK
55232015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5524 Jan Kratochvil <jan.kratochvil@redhat.com>
5525
5526 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5527 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5528 common/target-utils.h.
5529 (COMMON_OBS): Add target-utils.o.
5530 (linux-maps.o, target-utils.o): New.
5531 * target/target-utils.c: New file.
5532 * target/target-utils.h: New file.
5533 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5534 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5535 * nat/linux-maps.c: New file.
5536 * nat/linux-maps.h: New file.
5537
e7b01ce0
MM
55382015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5539 Pedro Alves <palves@redhat.com>
5540
5541 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5542 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5543 (perf_event_read_bts): Change the type of SIZE and READ.
5544 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5545 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5546 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5547 mmap page.
5548 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5549 buffer size to UINT_MAX.
5550 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5551 DATA_TAIL.
5552 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5553 <last_head>: Change type.
5554 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5555 * common/btrace-common.c (btrace_data_append): Change the type of
5556 SIZE.
5557 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5558 check.
5559
f168693b
SM
55602015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5561
5562 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5563 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5564 with check_typedef.
5565 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5566 (ada_array_length): Likewise.
5567 (find_parallel_type_by_descriptive_type): Likewise.
5568 (ada_check_typedef): Likewise.
5569 * arm-tdep.c (arm_return_in_memory): Likewise.
5570 * ax-gdb.c (gen_trace_static_fields): Likewise.
5571 (gen_struct_ref_recursive): Likewise.
5572 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5573 (variable: block COLONCOLON name): Likewise.
5574 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5575 * c-lang.c (classify_type): Likewise.
5576 * c-typeprint.c (c_print_type): Likewise.
5577 (c_print_typedef): Likewise.
5578 (c_type_print_base): Likewise.
5579 * c-valprint.c (c_val_print): Likewise.
5580 * compile/compile-c-types.c (convert_type): Likewise.
5581 * compile/compile-object-load.c (get_out_value_type): Likewise.
5582 * completer.c (add_struct_fields): Likewise.
5583 (expression_completer): Likewise.
5584 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5585 (cp_lookup_nested_symbol_1): Likewise.
5586 (cp_lookup_nested_symbol): Likewise.
5587 * cp-valprint.c (cp_print_value_fields): Likewise.
5588 (cp_print_static_field): Likewise.
5589 * d-valprint.c (d_val_print): Likewise.
5590 * eval.c (evaluate_subexp_standard): Likewise.
5591 (evaluate_subexp_for_sizeof): Likewise.
5592 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5593 * f-typeprint.c (f_type_print_base): Likewise.
5594 * f-valprint.c (f_val_print): Likewise.
5595 * gdbtypes.c (get_discrete_bounds): Likewise.
5596 (create_array_type_with_stride): Likewise.
5597 (type_name_no_tag_or_error): Likewise.
5598 (lookup_struct_elt_type): Likewise.
5599 (get_unsigned_type_max): Likewise.
5600 (internal_type_vptr_fieldno): Likewise.
5601 (set_type_vptr_fieldno): Likewise.
5602 (internal_type_vptr_basetype): Likewise.
5603 (set_type_vptr_basetype): Likewise.
5604 (get_vptr_fieldno): Likewise.
5605 (is_integral_type): Likewise.
5606 (is_scalar_type): Likewise.
5607 (is_scalar_type_recursive): Likewise.
5608 (distance_to_ancestor): Likewise.
5609 (is_unique_ancestor_worker): Likewise.
5610 (check_types_equal): Likewise.
5611 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5612
45280282
IB
56132015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5614
5615 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5616 also test for language_d.
5617 (dwarf2_compute_name): Likewise.
5618 (read_func_scope): Likewise.
5619 (read_structure_type): Likewise.
5620 (new_symbol_full): Likewise.
5621 (determine_prefix): Likewise.
5622 (read_import_statement): Use dot as the separator for language_d.
5623 (typename_concat): Likewise, but don't prefix the D main function.
5624
99fe86f7
PB
56252015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5626
5627 * nat/linux-namespaces.c (setns): Rename from this ...
5628 (do_setns): ... to this. Support calling setns if it exists.
5629 (mnsh_handle_setns): Call do_setns.
5630
d5131498
YQ
56312015-07-13 Yao Qi <yao.qi@linaro.org>
5632
5633 * exec.c (exec_file_attach): Add period at the end of error
5634 message.
5635
97605e61
AB
56362015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5637
5638 * tui/tui-win.c (window_name_completer): New function.
5639 (focus_completer): Call window_name_completer. All old content
5640 moved into window_name_completer.
5641 (winheight_completer): New function.
5642 (_initialize_tui_win): Rename variable. Add completer to
5643 winheight command. Update doc string on winheight.
5644
8d6dbeb4
SL
56452015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5646
5647 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5648 all nios2 mach variants.
5649
a0e28e54
KB
56502015-07-10 Kevin Buettner <kevinb@redhat.com>
5651
5652 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5653 of target_read_memory.
5654
c101f28f
AB
56552015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5656
5657 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5658 string copy.
5659 (parse_scrolling_args): Likewise.
5660
150375dc
AB
56612015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5662
5663 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5664 names in this function.
5665
6dce28e4
AB
56662015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5667
5668 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5669 (CMD_NAME): Likewise.
5670 (DATA_NAME): Likewise.
5671 (DISASSEM_NAME): Likewise.
5672 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5673 (tui_set_win_height): Likewise.
5674 (parse_scrolling_args): Likewise.
5675
485668e5
MM
56762015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5677
5678 * record-btrace.c (record_btrace_goto_begin)
5679 (record_btrace_goto_end, record_btrace_goto): Move call to
5680 print_stack_frame ...
5681 (record_btrace_set_replay): ... here. Set stop_pc.
5682 * record-full.c (record_full_goto_entry): Set stop_pc.
5683
58d2eda5
PL
56842015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5685
5686 * NEWS: Mention support for tracepoints on aarch64-linux.
5687
7671bf47
PL
56882015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5689
5690 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5691 function. Return 1.
5692 (the_low_target): Install it.
5693
7890fb45
PL
56942015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5695
5696 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5697 * gdb.trace/collection.exp: Likewise.
5698 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5699 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5700 * gdb.trace/report.exp: Likewise.
5701 * gdb.trace/trace-break.exp: Likewise.
5702 * gdb.trace/unavailable.exp: Likewise.
5703 * gdb.trace/while-dyn.exp: Likewise.
5704
ea873d8e
PL
57052015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5706
5707 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5708 (aarch64_gen_return_address): New function.
5709 (aarch64_gdbarch_init): Hook it.
5710
02a2a705
PL
57112015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5712
5713 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5714 swallow NOT_AVAILABLE_ERROR.
5715 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5716 available_p is not set.
5717 (aarch64_stub_frame_unwind_stop_reason): New function.
5718 (aarch64_stub_unwind): Install it.
5719
7dfa3edc
PL
57202015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5721
5722 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5723 field.
5724 (aarch64_make_prologue_cache_1): New function, factored out from
5725 aarch64_make_prologue_cache. Do not allocate cache. Set
5726 available_p.
5727 (aarch64_make_prologue_cache): Reimplement wrapping
5728 aarch64_make_prologue_cache_1, and swallowing
5729 NOT_AVAILABLE_ERROR.
5730 (aarch64_prologue_frame_unwind_stop_reason): New function.
5731 Return UNWIND_UNAVAILABLE if available_p is not set.
5732 (aarch64_prologue_unwind): Install it.
5733 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5734 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5735 frame_id_build_unavailable_stack if available_p is not set.
5736
db634143
PL
57372015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5738
5739 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5740 fields.
5741 (aarch64_scan_prologue): Set prev_pc.
5742 (aarch64_make_prologue_cache): Set func.
5743 (aarch64_make_stub_cache): Set prev_pc.
5744 (aarch64_prologue_this_id): Remove local variables id, pc and
5745 func. Read prev_pc and func from cache.
5746 (aarch64_stub_this_id): Read prev_pc from cache.
5747
8b61f75d
PL
57482015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5749
5750 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5751 argument this_cache. Remove unused local variables reg and
5752 unwound_fp. Return early if this_cache is already set. Set
5753 this_cache.
5754 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5755
7c8edfae
PL
57562015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5757
5758 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5759 New argument this_cache. Return early if this_cache is already
5760 set. Set this_cache.
5761 (aarch64_prologue_this_id): Update call to
5762 aarch64_make_prologue_cache.
5763 (aarch64_prologue_prev_register): Likewise.
5764 (aarch64_normal_frame_base): Likewise.
5765
938c69a1
SM
57662015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5767
5768 * c-valprint.c (c_val_print): Factor out memberptr printing code
5769 from c_val_print to ...
5770 (c_val_print_memberptr): ... this new function.
5771
49f7fe28
SM
57722015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5773
5774 * c-valprint.c (c_val_print): Factor out int printing code to ...
5775 (c_val_print_int): ... this new function.
5776
9e4f353c
SM
57772015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5778
5779 * c-valprint.c (c_val_print): Factor out struct and union
5780 printing code to ...
5781 (c_val_print_struct): ... this new function ...
5782 (c_val_print_union): ... and this new function.
5783
1c67f032
SM
57842015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5785
5786 * c-valprint.c (c_val_print): Factor out pointer printing code
5787 to ...
5788 (c_val_print_ptr): ... this new function.
5789
0b6ef777
SM
57902015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5791
5792 * c-valprint.c (c_valprint): Factor our array printing code from
5793 c_val_print to ...
5794 (c_val_print_array): ... this new function.
5795
1033c33c
SM
57962015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5797
5798 * c-valprint.c (c_val_print): Factor out pointer printing code
5799 to ...
5800 (print_unpacked_pointer): ... this new function.
5801
f6b93c34
SM
58022015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5803
5804 * c-valprint.c (c_val_print): Remove an assignment to i and move
5805 its declaration.
5806
0f4576e3
YQ
58072015-07-09 Yao Qi <yao.qi@linaro.org>
5808
5809 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5810 argument ptid. Update comments. Caller update.
5811
37fdfe4c
MM
58122015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5813
5814 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5815 mnt packets.
5816
80a2b330
MM
58172015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5818
5819 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5820
4ab31498
SM
58212015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5822
5823 * progspace.c (delete_program_space): Add missing spaces.
5824
7a41607e
SM
58252015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5826
5827 * inferior.c (delete_inferior_1): Rename to ...
5828 (delete_inferior): ..., remove 'silent' parameter, delete
5829 program space when unused and remove call to prune_program_spaces.
5830 Remove the old, unused, delete_inferior.
5831 (delete_inferior_silent): Remove.
5832 (prune_inferiors): Change call from delete_inferior_1 to
5833 delete_inferior and remove 'silent' parameter. Remove call to
5834 prune_program_spaces.
5835 (remove_inferior_command): Idem.
5836 * inferior.h (delete_inferior_1): Rename to...
5837 (delete_inferior): ..., remove 'silent' parameter and remove the
5838 original delete_inferior.
5839 (delete_inferior_silent): Remove.
5840 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
5841 delete_inferior_1 to delete_inferior and remove 'silent'
5842 parameter.
5843 * progspace.c (prune_program_spaces): Remove.
5844 (pspace_empty_p): Rename to...
5845 (program_space_empty_p): ... and make non-static.
5846 (delete_program_space): New.
5847 * progspace.h (prune_program_spaces): Remove declaration.
5848 (program_space_empty_p): New declaration.
5849 (delete_program_space): New declaration.
5850 * monitor.c (monitor_close): Replace call to
5851 delete_thread_silent and delete_inferior_silent with
5852 discard_all_inferiors.
5853
a9bd710f
PP
58542015-07-08 Patrick Palka <patrick@parcs.ath.cx>
5855
5856 * defs.h (deprecated_register_changed_hook): Remove prototype.
5857 * interps.c (clear_iterpreter_hooks): Remove reference to
5858 deprecated_register_changed_hook.
5859 * top.c (deprecated_register_changed_hook): Remove prototype.
5860 * valops.c (value_assign): Remove reference to
5861 deprecated_register_changed_hook.
5862 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
5863 Add comment documenting the function.
5864 (tui_register_changed_observer): Define.
5865 (tui_install_hooks): Remove reference to
5866 deprecated_register_changed_hook. Set
5867 tui_register_changed_observer.
5868 (tui_remove_hooks): Remove reference to
5869 deprecated_register_changed_hook. Unset
5870 tui_register_changed_observer.
5871
08464196
JK
58722015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5873
5874 PR compile/18484
5875 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
5876
bcf5c1d9
RC
58772015-07-08 Robert O'Callahan <robert@ocallahan.org>
5878
5879 PR exp/18617
5880 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
5881
e8643a45
MM
58822015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5883
5884 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
5885
76fb6829
MM
58862015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5887
5888 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
5889 Use safe_strerror() instead of strerror().
5890
82c40d4b
YQ
58912015-07-07 Yao Qi <yao.qi@linaro.org>
5892
5893 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
5894 * features/arm-with-m-fpa-layout.c: Regenerated.
5895 * features/arm-with-m-vfp-d16.xml: Likewise.
5896 * features/arm-with-m-vfp-d16.c: Regenerated.
5897 * features/arm-with-m.xml: Likewise.
5898 * features/arm-with-m.c: Regenerated.
5899 * features/arm-with-neon.xml: Likewise.
5900 * features/arm-with-neon.c: Regenerated.
5901 * features/arm-with-vfpv2.xml: Likewise.
5902 * features/arm-with-vfpv2.c: Regenerated.
5903 * features/arm-with-vfpv3.xml: Likewise.
5904 * features/arm-with-vfpv3.c: Regenerated.
5905
607685ec
YQ
59062015-07-07 Yao Qi <yao.qi@linaro.org>
5907
5908 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
5909 arm-linux-nat.c.
5910 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
5911 elf/external.h.
5912 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
5913 if target is 32-bit.
5914 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
5915 if target is 32-bit.
5916 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
5917 if target is 32-bit.
5918 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
5919 if target is 32-bit.
5920 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
5921 (aarch64_linux_read_description): Return the right target
5922 description.
5923 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
5924 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5925 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
5926 arm-linux-tdep.o.
5927
f1b67888
YQ
59282015-07-07 Yao Qi <yao.qi@linaro.org>
5929
5930 * aarch32-linux-nat.c: New file.
5931 * aarch32-linux-nat.h: New file.
5932 * arm-linux-nat.c: Include aarch32-linux-nat.h.
5933 (fetch_regs): Move code to aarch32-linux-nat.c. Call
5934 aarch32_gp_regcache_supply.
5935 (store_regs): Move code to aarch32-linux-nat.c. Call
5936 aarch32_gp_regcache_collect.
5937 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
5938 aarch32_vfp_regcache_supply.
5939 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
5940 aarch32_vfp_regcache_collect.
5941 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5942
179bfe82
YQ
59432015-07-07 Yao Qi <yao.qi@linaro.org>
5944
5945 * arm-linux-nat.c (store_fpregister): Remove.
5946 (store_register): Likewise.
5947 (fetch_fpregister): Likewise.
5948 (fetch_register): Likewise.
5949 (arm_linux_store_inferior_registers): Call store_regs and
5950 store_fpregs instead.
5951 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
5952 fetch_regs instead.
5953
6008fc5f
AB
59542015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5955
5956 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
5957 and focus commands.
5958
7c79d316
JB
59592015-07-06 Joel Brobecker <brobecker@adacore.com>
5960
5961 * NEWS: Create a new section for the next release branch.
5962 Rename the section of the current branch, now that it has
5963 been cut.
5964
f2232bea
JB
59652015-07-06 Joel Brobecker <brobecker@adacore.com>
5966
5967 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
5968 * version.in: Bump version to 7.10.50.DATE-cvs.
5969
66c4b3e8
LM
59702015-07-06 Luis Machado <lgustavo@codesourcery.com>
5971
5972 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
5973 breakpoints in a special way.
5974 (remove_breakpoint): Likewise.
5975 (mark_breakpoints_out): Likewise.
5976
bcd8537c
AB
59772015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5978
5979 * doc/gdb.texinfo (TUI): Add comma after @xref.
5980
10e9aaa3
AB
59812015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5982
5983 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
5984 instead of casting the structure type.
5985
8a13d42d
SM
59862015-07-06 Simon Marchi <simon.marchi@ericsson.com>
5987
5988 * valops.c (search_struct_field): Remove OFFSET parameter.
5989 (value_cast_structs): Adjust calls to search_struct_field.
5990 (value_struct_elt): Same.
5991 (find_overload_match): Same.
5992
a844296a
SM
59932015-07-06 Simon Marchi <simon.marchi@ericsson.com>
5994
5995 * value.c (value_fetch_lazy): Update comment, change return
5996 value to void.
5997 * value.h (value_fetch_lazy): Change return value to void.
5998
f41cbf58
AB
59992015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6000
6001 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6002 (tui_win_name): Make parameter and result const.
6003 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6004
118ca224
PP
60052015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6006
6007 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6008 use printf_unfiltered.
6009 (set_mpx_cmd): Add missing trailing space to command string
6010 literal.
6011 (_initialize_i386_tdep): Give the "mpx" prefix command its
6012 correct name.
6013
1b485e67
KB
60142015-07-02 Kevin Buettner <kevinb@redhat.com>
6015
6016 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6017 (enum rx_frame_type): New.
6018 (struct rx_prologue): Add new field `frame_type'.
6019 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6020 parameter in the prologue struct. Add code for recording
6021 locations of PC and PSW for fast interrupt and exception frames.
6022 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6023 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6024 (rx_frame_type): New function.
6025 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6026 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6027 `this_cache'.
6028 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6029 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6030 RX_FRAME_TYPE_FAST_INTERRUPT.
6031 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6032 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6033 (rx_frame_unwind): Use rx_frame_sniffer instead of
6034 default_frame_sniffer.
6035 (rx_frame_unwind): New unwinder.
6036 (rx_gdbarch_init): Register new unwinder.
6037
0561fea4
KB
60382015-07-02 Kevin Buettner <kevinb@redhat.com>
6039
6040 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6041 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6042 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6043 and RX_FPSW_REGNUM.
6044 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6045
decf8d9a
JK
60462015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6047
6048 Fix GCC false warning.
6049 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6050
2fd0f80d
YQ
60512015-07-02 Yao Qi <yao.qi@linaro.org>
6052
6053 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6054 typo in the debugging message.
6055
b0627500
MM
60562015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6057
6058 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6059 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6060 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6061 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6062 (btrace_maint_clear): New.
6063 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6064 (pt_print_packet, btrace_maint_decode_pt)
6065 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6066 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6067 (maint_btrace_packet_history_cmd)
6068 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6069 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6070 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6071 (maint_info_btrace_cmd, _initialize_btrace): New.
6072 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6073 (btrace_maint_packet_history, btrace_maint_info): New.
6074 (btrace_thread_info) <maint>: New.
6075 * NEWS: Announce it.
6076
9be54cae
MM
60772015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6078
6079 * btrace.c (btrace_fetch): Append the new trace data.
6080 (btrace_clear): Clear the stored trace data.
6081 * btrace.h (btrace_thread_info) <data>: New.
6082 * common/btrace-common.h (btrace_data_clear)
6083 (btrace_data_append): New.
6084 * common/btrace-common.c (btrace_data_clear)
6085 (btrace_data_append): New.
6086
010a18a1
MM
60872015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6088
6089 * nat/linux-btrace.c (linux_enable_bts): Check for
6090 PERF_ATTR_SIZE_VER5.
6091 Check for data_offset and data_size fields. Use them.
6092
b20a6524
MM
60932015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6094
6095 * NEWS: Announce new commands "record btrace pt" and "record pt".
6096 Announce new options "set|show record btrace pt buffer-size".
6097 * btrace.c: Include "rsp-low.h".
6098 Include "inttypes.h".
6099 (btrace_add_pc): Add forward declaration.
6100 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6101 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6102 (btrace_compute_ftrace_pt): New.
6103 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6104 (check_xml_btrace_version): Update version check.
6105 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6106 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6107 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6108 (btrace_pt_children): New.
6109 (btrace_children): Add support for "pt".
6110 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6111 (btrace_conf_children): Add support for "pt".
6112 * btrace.h: Include "intel-pt.h".
6113 (btrace_pt_error): New.
6114 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6115 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6116 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6117 (struct btrace_config_pt): New.
6118 (struct btrace_config)<pt>: New.
6119 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6120 (struct btrace_data)<pt>: New.
6121 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6122 (pt): New.
6123 * features/btrace.dtd (btrace)<pt>: New.
6124 (pt, pt-config, cpu): New.
6125 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6126 (perf_event_pt_event_type, kernel_supports_pt)
6127 (linux_supports_pt): New.
6128 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6129 (linux_enable_bts): Free tinfo on error.
6130 (linux_enable_pt): New.
6131 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6132 (linux_disable_pt): New.
6133 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6134 (linux_fill_btrace_pt_config, linux_read_pt): New.
6135 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6136 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6137 (struct btrace_target_info)<pt>: New.
6138 * record-btrace.c (set_record_btrace_pt_cmdlist)
6139 (show_record_btrace_pt_cmdlist): New.
6140 (record_btrace_print_pt_conf): New.
6141 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6142 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6143 (cmd_record_btrace_pt_start): New.
6144 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6145 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6146 (_initialize_record_btrace): Add new commands.
6147 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6148 (remote_protocol_features): Add "Qbtrace:pt".
6149 Add "Qbtrace-conf:pt:size".
6150 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6151 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6152 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6153 (_initialize_remote): Add new commands.
6154
58bfce93
MM
61552015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6156
6157 * configure.ac: check for libipt
6158 * configure: Regenerate.
6159 * config.in: Regenerate.
6160 * Makefile.in (LIBIPT): New.
6161 (CLIBS): Add $LIBIPT.
6162 * NEWS: document new configure options
6163
b0fd6b30
JK
61642015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6165
6166 * compile/compile-object-load.c (compile_object_load): Replace debug
6167 message "lookup undefined ELF symbol" by 3 more specific messages.
6168
e6280369
KB
61692015-07-01 Kevin Buettner <kevinb@redhat.com>
6170
6171 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6172 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6173 (rl78_gdbarch_init): Initialize rl78_psw_type.
6174
bbcbf914
PP
61752015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6176
6177 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6178 Update commentary. Always refresh the registers when frame
6179 information has changed.
6180 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6181 Change return type to int. Return 1 if frame information has
6182 changed, 0 otherwise.
6183 (tui_before_prompt): Update commentary.
6184 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6185 int.
6186
0986c744
PP
61872015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6188
6189 PR tui/13378
6190 * frame.c (select_frame): Remove reference to
6191 deprecated_selected_frame_level_changed_hook.
6192 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6193 declaration.
6194 * stack.c (deprecated_selected_frame_level_changed_hook):
6195 Likewise.
6196 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6197 Rename to ...
6198 (tui_refresh_frame_and_register_information): ... this. Bail
6199 out if there is no stack. Don't update register information
6200 unless registers_too_p is true.
6201 (tui_print_frame_info_listing_hook): Rename to ...
6202 (tui_dummy_print_frame_info_listing_hook): ... this.
6203 (tui_before_prompt): New function.
6204 (tui_normal_stop): New function.
6205 (tui_before_prompt_observer): New observer.
6206 (tui_normal_stop_observer): New observer.
6207 (tui_install_hooks): Set
6208 deprecated_print_frame_info_listing_hook to
6209 tui_dummy_print_frame_info_listing_hook. Register
6210 tui_before_prompt_observer to call tui_before_prompt and
6211 tui_normal_stop_observer to call tui_normal_stop. Remove
6212 reference to deprecated_selected_frame_level_changed_hook.
6213 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6214 and tui_normal_stop_observer. Remove reference to
6215 deprecated_selected_frame_level_changed_hook.
6216
b5fca6d7
PP
62172015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6218
6219 PR tui/13378
6220 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6221 return an int instead of void. Return whether the locator
6222 window has changed.
6223 (tui_show_frame_info): If the locator info has not changed, then
6224 bail out early to avoid refreshing the windows.
6225
c45613e3
PP
62262015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6227
6228 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6229 LOCATOR_WIN to tui_alloc_content.
6230
7b9be803
YQ
62312015-06-30 Yao Qi <yao.qi@linaro.org>
6232
6233 PR tdep/18605
6234 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6235 instructions.
6236
fd6e021d
KB
62372015-06-29 Kevin Buettner <kevinb@redhat.com>
6238
78ab7e9d
KB
6239 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6240 (rx_dwarf_reg_to_regnum): New function.
6241 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6242 unwinding.
fd6e021d 6243
28bf096c
PA
62442015-06-29 Pedro Alves <palves@redhat.com>
6245
6246 PR threads/18127
6247 * infcall.c (run_inferior_call): On infcall success, if the thread
6248 was marked stopped before, reset it back to stopped.
6249 * infrun.c (resume): Don't suppress the set_running calls when
6250 doing an infcall.
6251 (normal_stop): Only discard the finish_thread_state cleanup if the
6252 infcall succeeded.
6253
2880b51c 62542015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6255
6256 * MAINTAINERS (Write After Approval): Update my email address.
6257
ee93cd5e
KS
62582015-06-26 Keith Seitz <keiths@redhat.com>
6259 Doug Evans <dje@google.com>
6260
6261 PR 16253
6262 * block.c (block_lookup_symbol): For non-function blocks,
6263 continue to search for a symbol with an exact domain match
6264 Otherwise, return any previously found "best domain" symbol.
6265 (block_lookup_symbol_primary): Likewise.
6266
fc637f04
PP
62672015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6268
6269 * NEWS: Mention the new option "history remove-duplicates".
6270 * top.c (history_remove_duplicates): New static variable.
6271 (show_history_remove_duplicates): New static function.
6272 (gdb_add_history): Conditionally remove duplicate history
6273 entries.
6274 (init_main): Add "history remove-duplicates" option.
6275
2e52ae68
PP
62762015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6277
6278 * tui/tui-win.c (focus_completer): New static function.
6279 (_initialize_tui_win): Set the completion function of the
6280 "focus" command to focus_completer.
6281
6e22494e
JK
62822015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6283
6284 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6285 and language_asm..
6286 * symtab.c (find_function_start_sal): Likewise.
6287
f8773be1
GB
62882015-06-25 Gary Benson <gbenson@redhat.com>
6289
6290 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6291 it is the empty string after trailing slashes have been stripped.
6292
a3be80c3
GB
62932015-06-25 Gary Benson <gbenson@redhat.com>
6294
6295 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6296 * infrun.c (follow_exec): Likewise.
6297 * remote.c (remote_filesystem_is_local): Likewise.
6298 * solib.c (solib_find_1): Likewise.
6299
32fad71f
KS
63002015-06-24 Keith Seitz <keiths@redhat.com>
6301
6302 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6303 return value from lrealpath.
6304
87d1b309
MF
63052015-06-24 Mike Frysinger <vapier@gentoo.org>
6306
6307 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6308
23bf70af
MF
63092015-06-24 Mike Frysinger <vapier@gentoo.org>
6310
6311 * remote-sim.c: Include gdb_bfd.h.
6312 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6313 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6314
5cd867b4
YQ
63152015-06-24 Yao Qi <yao.qi@linaro.org>
6316
6317 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6318 set_gdbarch_get_siginfo_type.
6319 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6320 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6321 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6322 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6323 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6324 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6325 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6326 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6327 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6328 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6329
dc06243f
GB
63302015-06-24 Gary Benson <gbenson@redhat.com>
6331
6332 * common/buffer.c (stdint.h): Do not include.
6333 * common/print-utils.c (stdint.h): Likewise.
6334 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6335 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6336 * ft32-tdep.c (gdb_assert.h): Likewise.
6337 * guile/scm-utils.c (stdint.h): Likewise.
6338 * i386-linux-tdep.c (stdint.h): Likewise.
6339 * i386-tdep.c (stdint.h): Likewise.
6340 * nat/linux-btrace.c (stdint.h): Likewise.
6341 * nat/linux-btrace.h (stdint.h): Likewise.
6342 * nat/linux-ptrace.c (stdint.h): Likewise.
6343 * nat/mips-linux-watch.h (stdint.h): Likewise.
6344 * ppc-linux-nat.c (stdint.h): Likewise.
6345 * python/python-internal.h (stdint.h): Likewise.
6346 * stub-termcap.c (stdlib.h): Likewise.
6347 * target/target.h (stdint.h): Likewise.
6348 * xtensa-linux-nat.c (stdint.h): Likewise.
6349
0fc26caf
PP
63502015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6351
6352 * top.c (init_history): Look at errno after calling strtol to
6353 properly map large GDBHISTSIZE values to infinity.
6354
a38fe4fe
DE
63552015-06-23 Doug Evans <dje@google.com>
6356
6357 * inferior.h (struct inferior_suspend_state): Delete, unused.
6358 All references deleted.
6359
7564fe45
MF
63602015-06-23 Mike Frysinger <vapier@gentoo.org>
6361
6362 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6363 (microblaze_push_dummy_call): Likewise.
6364 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6365 and set_gdbarch_push_dummy_call.
6366
0bdb2f78
YQ
63672015-06-23 Yao Qi <yao.qi@linaro.org>
6368
6369 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6370 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6371 (amd64_linux_store_inferior_registers): Likewise.
6372 * arm-linux-nat.c (fetch_fpregister): Likewise.
6373 (fetch_fpregs, store_fpregister): Likewise.
6374 (store_fpregister, store_fpregs): Likewise.
6375 (fetch_register, fetch_regs): Likewise.
6376 (store_register, store_regs): Likewise.
6377 (fetch_vfp_regs, store_vfp_regs): Likewise.
6378 (arm_linux_read_description): Check have_ptrace_getregset is
6379 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6380 or TRIBOOL_FALSE.
6381 * i386-linux-nat.c (fetch_xstateregs): Check
6382 have_ptrace_getregset is not TRIBOOL_TRUE.
6383 (store_xstateregs): Likewise.
6384 * linux-nat.c (have_ptrace_getregset): Change its type to
6385 enum tribool.
6386 * linux-nat.h (tribool): New enum.
6387 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6388 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6389
18a94d75
DE
63902015-06-19 Doug Evans <dje@google.com>
6391
6392 * NEWS: Mention Sun's version of stabs is no longer supported.
6393 * elfread.c (free_elfinfo): Delete. All uses updated.
6394 (elfstab_offset_sections): Delete. All uses updated.
6395 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6396 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6397 All uses updated.
6398 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6399 All callers updated.
6400
124e13d9
SM
64012015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6402
6403 * common/rsp-low.c (needs_escaping): New.
6404 (remote_escape_output): Add unit_size parameter. Refactor to
6405 support multi-byte addressable units. Rename parameters.
6406 * common/rsp-low.h (remote_escape_output): Add unit_size
6407 parameter and rename others. Update doc.
6408 * remote.c (align_for_efficient_write): New.
6409 (remote_write_bytes_aux): Add unit_size parameter and use it.
6410 Rename some variables. Update doc.
6411 (remote_xfer_partial): Get unit size and use it.
6412 (remote_read_bytes_1): Add unit_size parameter and use it.
6413 Rename some variables. Update doc.
6414 (remote_write_bytes): Same.
6415 (remote_xfer_live_readonly_partial): Same.
6416 (remote_read_bytes): Same.
6417 (remote_flash_write): Update call to remote_write_bytes_aux.
6418 (remote_write_qxfer): Update call to remote_escape_output.
6419 (remote_search_memory): Same.
6420 (remote_hostio_pwrite): Same.
6421
6ae88661
LM
64222015-06-17 Luis Machado <lgustavo@codesourcery.com>
6423
6424 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6425 locations as inserted.
6426 Update and expand comment about permanent locations.
6427 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6428 Move comment to add_location_to_breakpoint.
6429 (update_global_location_list): Don't error out if a permanent
6430 breakpoint is not marked inserted.
6431 Don't error out if a non-permanent breakpoint location is inserted on
6432 top of a permanent breakpoint.
6433
da4616f6
LM
64342015-06-17 Luis Machado <lgustavo@codesourcery.com>
6435
6436 * breakpoint.c (make_breakpoint_permanent): Remove unused
6437 function.
6438 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6439
bc460514
PP
64402015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6441
6442 PR gdb/16999
6443 * NEWS: Mention new GDBHISTSIZE behavior.
6444 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6445 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6446
b58c513b
PP
64472015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6448
6449 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6450 * top.c (init_history): Read from GDBHISTSIZE instead of
6451 HISTSIZE.
6452 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6453
2093d2d3
PP
64542015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6455
6456 * top.c (gdb_safe_append_history): Do not call
6457 history_truncate_file if the history is not stifled.
6458
fc248485
AA
64592015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6460
6461 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6462 * syscalls/s390x-linux.xml: Likewise.
6463
4da680ad
ME
64642015-06-16 Michael Eager <eager@eagercon.com>
6465
6466 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6467
0a75489f
PP
64682015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6469
6470 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6471 target_terminal_ours_for_output() before calling
6472 tui_show_frame_info(), and restore the original terminal
6473 settings afterwards.
6474
95855ca8
MS
64752015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6476
6477 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6478
cfc32360
SM
64792015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6480
6481 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6482 memory unit size.
6483 (mi_cmd_data_write_memory_bytes): Same.
6484
cb6f16cf
SM
64852015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6486
6487 * corefile.c (write_memory): Update doc.
6488 * gdbcore.h (write_memory): Same.
6489
31b7833d
JK
64902015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6491
6492 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6493 (dump_mapping_p): Use it for parameter filterflags.
6494 (linux_find_memory_regions_full): Use it for variable filterflags.
6495
909c2cda
JK
64962015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6497 Jan Kratochvil <jan.kratochvil@redhat.com>
6498
6499 Merge multiple hex conversions.
6500 * monitor.c: Include rsp-low.h.
6501 (fromhex): Remove definition.
6502
03aef70f
JK
65032015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6504 Jan Kratochvil <jan.kratochvil@redhat.com>
6505
6506 Move utility functions to common/.
6507 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6508 Move defs to common/common-utils.c.
6509 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6510 (skip_to_space_const): Move decls to common/common-utils.h.
6511 * common/common-defs.h: Move include of common-types.h before
6512 common-utils.h.
6513 * common/common-utils.c: Include host-defs.h and ctype.h.
6514 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6515 from utils.c.
6516 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6517 cli/cli-utils.c.
6518 * common/common-utils.h (strtoulst): Move decl from utils.h.
6519 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6520 Move from cli/cli-utils.h.
6521 * common/host-defs.h: Include limits.h.
6522 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6523 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6524 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6525 common/common-utils.h.
6526 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6527 (strtoulst): Move to common/common-utils.c.
6528 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6529
d1168cc1
YQ
65302015-06-15 Yao Qi <yao.qi@linaro.org>
6531
6532 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6533
c74f7d1c
JT
65342015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6535
6536 * build-id.c: Don't include elf-bfd.h.
6537 (build_id_bfd_get): Use bfd_build_id.
6538 (build_id_verify): Ditto.
6539 * build-id.h: Ditto.
6540 (find_separate_debug_file_by_buildid): Ditto.
6541 * python/py-objfile.c: Don't include elf-bfd.h.
6542 (objfpy_get_build_id) Use bfd_build_id.
6543 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6544 * coffread.c: Include build-id.h.
6545 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6546
f20c58f5
JT
65472015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6548
6549 * windows-nat.c (do_windows_fetch_inferior_registers)
6550 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6551 conditional with __CYGWIN__.
6552
51f0e40d
AB
65532015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6554
6555 * completer.c: Add arch-utils.h include.
6556 (enum reg_completer_targets): New enum.
6557 (reg_or_group_completer_1): New function containing old
6558 reg_or_group_completer, add and use new parameter to control what
6559 is completed on. Use get_current_arch rather than architecture of
6560 currently selected frame.
6561 (reg_or_group_completer): Call new reg_or_group_completer_1.
6562 (reggroup_completer): Call new reg_or_group_completer_1.
6563 * completer.h (reggroup_completer): Add declaration.
6564 * tui/tui-regs.c: Add 'completer.h' include.
6565 (tui_reg_next_command): Renamed to...
6566 (tui_reg_next): ...this. Adjust parameters and return rather than
6567 display new group.
6568 (tui_reg_prev_command): Renamed to...
6569 (tui_reg_prev): ...this. Adjust parameters and return rather than
6570 display new group.
6571 (tui_reg_float_command): Delete.
6572 (tui_reg_general_command): Delete.
6573 (tui_reg_system_command): Delete.
6574 (tui_reg_command): Rewrite to perform switching of register group.
6575 Add header comment.
6576 (tuireglist): Remove.
6577 (tui_reggroup_completer): New function.
6578 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6579 creation of 'tui reg' command.
6580 * NEWS: Add comment about 'tui reg' changes.
6581
d309493c
SM
65822015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6583
6584 * target.c (target_read): Consider addressable unit size when
6585 reading from a memory object.
6586 (read_memory_robust): Same.
6587 (read_whatever_is_readable): Same.
6588 (target_write_with_progress): Consider addressable unit size
6589 when writing to a memory object.
6590 * target.h (target_read): Update documentation.
6591 (target_write): Add documentation.
6592
3374165f
SM
65932015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6594
6595 * arch-utils.h (default_addressable_memory_unit_size): New.
6596 * arch-utils.c (default_addressable_memory_unit_size): New.
6597 * gdbarch.sh (addressable_memory_unit_size): New.
6598 * gdbarch.h: Re-generate.
6599 * gdbarch.c: Re-generate.
6600
279a6fed
SM
66012015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6602
6603 * target.c (target_read): Rename variables and use
6604 TARGET_XFER_E_IO.
6605 (target_read_with_progress): Same.
6606 (read_memory_robust): Constify parameters and rename
6607 variables.
6608 (read_whatever_is_readable): Constify parameters,
6609 rename variables, adjust formatting.
6610 * target.h (read_memory_robust): Constify parameters.
6611
1e5338b6 66122015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
6613
6614 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6615 synthetic (non-AltiVec) vector types.
6616 (ppc64_sysv_abi_return_value): Likewise.
6617
98aa42ee
AT
66182015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6619
6620 PR breakpoints/16465
6621 * breakpoint.c (create_breakpoint): Save extra_string for
6622 pending breakpoints.
6623
966f0aef
WT
66242015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6625
6626 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6627 and bt_mask to CORE_ADDR.
6628
6449ed0d
GB
66292015-06-11 Gary Benson <gbenson@redhat.com>
6630
6631 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6632 (mnsh_recv_message): Likewise.
6633
34f8ac9f
WT
66342015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6635
6636 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6637 long long int and plongest instead of %ll.
6638
198c808c
GB
66392015-06-11 Gary Benson <gbenson@redhat.com>
6640
6641 * nat/linux-namespaces.c (gdb_wait.h): New include.
6642 (sys/wait.h): Do not include.
6643
e815d2d2
SM
66442015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6645
6646 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6647 end_sequence is true.
6648
8847cac2
JK
66492015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6650
6651 Code cleanup.
6652 * solib-target.c (library_list_start_list): Use explicit NULL
6653 comparison.
6654
24c05f46
JK
66552015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6656
6657 * solib-target.c (library_list_start_list): Do not dereference
6658 variable version in its initialization. Make the VERSION check handle
6659 NULL.
6660 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6661
51aad7cc
GB
66622015-06-10 Gary Benson <gbenson@redhat.com>
6663
6664 * NEWS: Announce support for direct access of executable and
6665 shared library files when attaching to inferiors in containers
6666 on GNU/Linux systems.
6667
15a201c8
GB
66682015-06-10 Gary Benson <gbenson@redhat.com>
6669
6670 * remote.c (struct remote_state) <fs_pid>: New field.
6671 (new_remote_state): Initialize the above.
6672 (PACKET_vFile_setfs): New enum value.
6673 (remote_hostio_set_filesystem): New function.
6674 (remote_hostio_open): Call the above.
6675 (remote_hostio_unlink): Likewise.
6676 (remote_hostio_readlink): Likewise.
6677 (_initialize_remote): Register new "set/show remote
6678 hostio-setfs-packet" command.
6679 * NEWS: Announce new vFile:setfs packet.
6680
7a6a1731
GB
66812015-06-10 Gary Benson <gbenson@redhat.com>
6682
6683 * linux-nat.c (nat/linux-namespaces.h): New include.
6684 (fileio.h): Likewise.
6685 (linux_nat_filesystem_is_local): New function.
6686 (linux_nat_fileio_pid_of): Likewise.
6687 (linux_nat_fileio_open): Likewise.
6688 (linux_nat_fileio_readlink): Likewise.
6689 (linux_nat_fileio_unlink): Likewise.
6690 (linux_nat_add_target): Initialize to_filesystem_is_local,
6691 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6692 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6693 commands.
6694 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6695
07c138c8
GB
66962015-06-10 Gary Benson <gbenson@redhat.com>
6697
6698 * target.h (struct inferior): New forward declaration.
6699 (struct target_ops) <to_filesystem_is_local>: Update comment.
6700 (struct target_ops) <to_fileio_open>: New argument inf.
6701 Update comment. All implementations updated.
6702 (struct target_ops) <to_fileio_unlink>: Likewise.
6703 (struct target_ops) <to_fileio_readlink>: Likewise.
6704 (target_filesystem_is_local): Update comment.
6705 (target_fileio_open): New argument inf. Update comment.
6706 (target_fileio_unlink): Likewise.
6707 (target_fileio_readlink): Likewise.
6708 (target_fileio_read_alloc): Likewise.
6709 (target_fileio_read_stralloc): Likewise.
6710 * target.c (target_fileio_open): New argument inf.
6711 Pass inf to implementation. Update debug printing.
6712 (target_fileio_unlink): Likewise.
6713 (target_fileio_readlink): Likewise.
6714 (target_fileio_read_alloc_1): New argument inf. Pass inf
6715 to target_fileio_open.
6716 (target_fileio_read_alloc): New argument inf. Pass inf to
6717 target_fileio_read_alloc_1.
6718 (target_fileio_read_stralloc): Likewise.
6719 * gdb_bfd.c (inferior.h): New include.
6720 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6721 argument with new argument "inferior". Pass inferior to
6722 target_fileio_open.
6723 (gdb_bfd_open): Supply inferior argument to
6724 gdb_bfd_iovec_fileio_open.
6725 * linux-tdep.c (linux_info_proc): Supply inf argument to
6726 relevant target_fileio calls.
6727 (linux_find_memory_regions_full): Likewise.
6728 (linux_fill_prpsinfo): Likewise.
6729 * remote.c (remote_filesystem_is_local): Supply inf
6730 argument to remote_hostio_open.
6731 (remote_file_put): Likewise.
6732 (remote_file_get): Likewise.
6733 (remote_file_delete): Supply inf argument to
6734 remote_hostio_unlink.
6735
12e2a5fd
GB
67362015-06-10 Gary Benson <gbenson@redhat.com>
6737
6738 * inf-child.c (inf_child_fileio_open): Replace comment.
6739 (inf_child_fileio_pwrite): Likewise.
6740 (inf_child_fileio_pread): Likewise.
6741 (inf_child_fileio_fstat): Insert blank line before comment.
6742 (inf_child_fileio_close): Replace comment.
6743 (inf_child_fileio_unlink): Likewise.
6744 (inf_child_fileio_readlink): Likewise.
6745 * remote.c (remote_hostio_open): Likewise.
6746 (remote_hostio_pread): Likewise.
6747 (remote_hostio_pwrite): Likewise.
6748 (remote_hostio_close): Likewise.
6749 (remote_hostio_unlink): Likewise.
6750 (remote_hostio_readlink): Likewise.
6751 (remote_hostio_fstat): Likewise.
6752 (remote_filesystem_is_local): Likewise.
6753 * target.c (target_fileio_open): Likewise.
6754 (target_fileio_pwrite): Likewise.
6755 (target_fileio_pread): Likewise.
6756 (target_fileio_fstat): Insert blank line before comment.
6757 (target_fileio_close): Replace comment.
6758 (target_fileio_unlink): Likewise.
6759 (target_fileio_readlink): Likewise.
6760 (target_fileio_read_alloc): Likewise.
6761 (target_fileio_read_stralloc): Likewise.
6762
9bc3a976
GB
67632015-06-10 Gary Benson <gbenson@redhat.com>
6764
6765 * linux-thread-db.c (nat/linux-namespaces.h): New include.
6766 (check_pid_namespace_match): Use linux_ns_same rather than
6767 linux_proc_pid_get_ns to spot PID namespace mismatches.
6768 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6769 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6770
4b8b5e72
GB
67712015-06-10 Gary Benson <gbenson@redhat.com>
6772
6773 * configure.ac (AC_CHECK_FUNCS): Add setns.
6774 * config.in: Regenerate.
6775 * configure: Likewise.
6776 * nat/linux-namespaces.h: New file.
6777 * nat/linux-namespaces.c: Likewise.
6778 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6779 (linux-namespaces.o): New rule.
6780 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6781 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6782 * config/arm/linux.mh (NATDEPFILES): Likewise.
6783 * config/i386/linux.mh (NATDEPFILES): Likewise.
6784 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6785 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6786 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6787 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6788 * config/mips/linux.mh (NATDEPFILES): Likewise.
6789 * config/pa/linux.mh (NATDEPFILES): Likewise.
6790 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6791 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6792 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6793 * config/s390/linux.mh (NATDEPFILES): Likewise.
6794 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6795 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6796 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6797 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6798
ca095836
GB
67992015-06-10 Gary Benson <gbenson@redhat.com>
6800
6801 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6802 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6803 (make_cleanup_close): Likewise.
6804 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6805 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6806 (make_cleanup_close): Likewise.
6807
5d9c55d3
JT
68082015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6809
6810 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6811 from SuspendThread().
6812
040ea00b
JT
68132015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6814
6815 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6816 from OutputDebugString.
6817
7d73c23c
WT
68182015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6819 Mircea Gherzan <mircea.gherzan@intel.com>
6820
6821 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6822 MPX_BT_MASK_32): New macros.
6823 (i386_mpx_set_bounds): New function that implements
6824 the command "set-mpx-bound".
6825 (i386_mpx_enabled): Helper function to test MPX availability.
6826 (i386_mpx_bd_base): Helper function to calculate the base directory
6827 address.
6828 (i386_mpx_get_bt_entry): Helper function to access a bound
6829 table entry.
6830 (i386_mpx_print_bounds): Effectively display bound information.
6831 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6832 "show mpx".
6833 (_initialize_i386_tdep):
6834 Add "bound" to the commands "show mpx" and "set mpx" commands.
6835 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
6836 and "show mpx" commands.
6837 * NEWS: List new commands for MPX support.
6838
3ac2e371
GB
68392015-06-09 Gary Benson <gbenson@redhat.com>
6840
6841 * common/fileio.h (fileio_to_host_mode): New declaration.
6842 * common/fileio.c (fileio_to_host_mode): New Function.
6843 * inf-child.c (inf_child_fileio_open): Process mode argument
6844 with fileio_to_host_mode.
6845
ecef18c5
GB
68462015-06-09 Gary Benson <gbenson@redhat.com>
6847
6848 * common/fileio.c (fileio_mode_pack): Fix preprocessor
6849 conditional.
6850
e3dd7556
GB
68512015-06-05 Gary Benson <gbenson@redhat.com>
6852
6853 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
6854 * remote.c (remote_filesystem_is_local): ...here.
6855
5b74bf7d
YQ
68562015-06-04 Yao Qi <yao.qi@linaro.org>
6857
6858 * gdbarch.c: Regenerate it.
6859
7f361056
JK
68602015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6861
6862 * arch-utils.c (default_infcall_munmap): New.
6863 * arch-utils.h (default_infcall_munmap): New declaration.
6864 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
6865 (munmap_list_free, munmap_listp_free_cleanup): New.
6866 (struct setup_sections_data): Add field munmap_list_headp.
6867 (setup_sections): Call munmap_list_add.
6868 (compile_object_load): New variable munmap_list_head, initialize
6869 setup_sections_data.munmap_list_headp, return munmap_list_head.
6870 * compile/compile-object-load.h (struct munmap_list): New declaration.
6871 (struct compile_module): Add field munmap_list_head.
6872 (munmap_list_free): New declaration.
6873 * compile/compile-object-run.c (struct do_module_cleanup): Add field
6874 munmap_list_head.
6875 (do_module_cleanup): Call munmap_list_free.
6876 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
6877 * gdbarch.c: Regenerate.
6878 * gdbarch.h: Regenerate.
6879 * gdbarch.sh (infcall_munmap): New.
6880 * linux-tdep.c (linux_infcall_munmap): New.
6881 (linux_init_abi): Install it.
6882
3b462ec2
SM
68832015-06-02 Simon Marchi <simon.marchi@ericsson.com>
6884
6885 PR gdb/15564
6886 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
6887
8d683210
YQ
68882015-06-02 Yao Qi <yao.qi@linaro.org>
6889
6890 * i386-linux-nat.c: Include linux-nat.h.
6891
e0619de6
JK
68922015-06-01 Andreas Schwab <schwab@linux-m68k.org>
6893 Jan Kratochvil <jan.kratochvil@redhat.com>
6894
6895 PR symtab/18392
6896 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
6897 assertion.
6898 * dwarf2loc.c (chain_candidate): Likewise.
6899
bd16da51
YQ
69002015-06-01 Yao Qi <yao.qi@linaro.org>
6901
6902 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
6903 (store_vfp_regs): Use PTRACE_SETREGSET.
6904
df9d7ec9
YQ
69052015-06-01 Yao Qi <yao.qi@linaro.org>
6906
6907 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
6908 (fetch_fpregs): Likewise.
6909 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
6910 (store_fpregs): Likewise.
6911
10766686
YQ
69122015-06-01 Yao Qi <yao.qi@linaro.org>
6913
6914 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
6915 (fetch_regs): Likewise.
6916 (store_regs): Use PTRACE_SETREGSET.
6917 (store_register): Likewise.
6918
7efe48d1
YQ
69192015-06-01 Yao Qi <yao.qi@linaro.org>
6920
6921 * arm-linux-nat.c (arm_linux_read_description): Check whether
6922 kernel supports PTRACE_GETREGSET.
6923
433bbbf8
YQ
69242015-06-01 Yao Qi <yao.qi@linaro.org>
6925
6926 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
6927 * linux-nat.c: ... here.
6928 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
6929 to ...
6930 * linux-nat.h: ... here.
6931
ca9b78ce
YQ
69322015-06-01 Yao Qi <yao.qi@linaro.org>
6933
6934 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
6935 * i386-linux-nat.c: Likewise.
6936 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
6937 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
6938 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6939 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
6940 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6941
99cee7b7
EZ
69422015-05-30 Eli Zaretskii <eliz@gnu.org>
6943
6944 * go32-nat.c (go32_xfer_memory): Fix the return value to be
6945 compatible to what read_child and write_child return. This
6946 unbreaks that DJGPP build of GDB which was broken since v7.7.
6947
2147f5bd
MG
69482015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
6949
6950 * MAINTAINERS (Write After Approval): Add Martin Galvan.
6951
c8f6c93c
RM
69522015-05-29 Roland McGrath <mcgrathr@google.com>
6953
6954 PR gdb/18464
6955 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
6956 rather than internal_error for an unrecognized value.
6957
8c6a948d
MF
69582015-05-29 Max Filippov <jcmvbkbc@gmail.com>
6959
6960 * xtensa-tdep.c (xtensa_pseudo_register_read)
6961 (xtensa_pseudo_register_write): Don't alias last pseudo register
6962 to a1.
6963
8dd06f7a
DB
69642015-05-28 Don Breazeal <donb@codesourcery.com>
6965
6966 * infrun.c (follow_fork_inferior): Ensure the use of
6967 process-style ptids (pid,0,0) in verbose/debug "Detaching"
6968 messages.
6969
a051152b
DE
69702015-05-28 Doug Evans <dje@google.com>
6971
6972 * dwarf2read.c (record_line_ftype): Remove, duplicate.
6973
a56cc1ce
YQ
69742015-05-28 Yao Qi <yao.qi@linaro.org>
6975
6976 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
6977 (arm_linux_fetch_inferior_registers): Use
6978 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
6979 (arm_linux_store_inferior_registers): Likewise.
6980 (arm_linux_read_description): Don't set
6981 arm_linux_has_wmmx_registers.
6982 * arm-tdep.c (arm_gdbarch_init): Set
6983 tdep->have_wmmx_registers according target descriptions.
6984 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
6985 field.
6986
330c6ca9
YQ
69872015-05-28 Yao Qi <yao.qi@linaro.org>
6988
6989 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
6990 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
6991 instead of arm_linux_vfp_register_count.
6992 (store_vfp_regs): Likewise.
6993 (arm_linux_fetch_inferior_registers): Likewise.
6994 (arm_linux_store_inferior_registers): Likewise.
6995 (arm_linux_read_description): Don't set
6996 arm_linux_vfp_register_count.
6997 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
6998 Adjust.
6999 * arm-tdep.c (arm_gdbarch_init): Add assert on
7000 vfp_register_count.
7001 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7002 field to vfp_register_count. All users updated.
7003
d403db27
KH
70042015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7005
7006 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7007 ELFOSABI_GNU binaries.
7008
d9b3de22
DE
70092015-05-27 Doug Evans <dje@google.com>
7010
7011 * dwarf2read.c (lnp_state_machine): New typedef.
7012 (lnp_reader_state): New typedef.
7013 (dwarf_record_line_1): Renamed from dwarf_record_line.
7014 All callers updated.
7015 (dwarf_record_line): New function.
7016 (init_lnp_state_machine): New function.
7017 (check_line_address): Replace p_record_line parameter with state.
7018 All callers updated.
7019 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7020 Update to record state in lnp_state_machine.
7021
924c2928
DE
70222015-05-27 Doug Evans <dje@google.com>
7023
7024 * dwarf2read.c (record_line_ftype): New typedef.
7025 (check_line_address): New function.
7026 (dwarf_decode_lines_1): Call it.
7027
27e0867f
DE
70282015-05-27 Doug Evans <dje@google.com>
7029
7030 * NEWS: Mention "set debug dwarf-line".
7031 * dwarf2read.c (dwarf_line_debug): New static global.
7032 (add_include_dir): Add debug dwarf-line support.
7033 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7034 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7035
4dcabcc2
DE
70362015-05-27 Doug Evans <dje@google.com>
7037
7038 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7039 All callers updated.
7040 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7041 * cp-support.h (cp_lookup_nested_symbol): Update.
7042
b2e2f908
DE
70432015-05-27 Doug Evans <dje@google.com>
7044
7045 PR symtab/18258
7046 * block.c (block_find_symbol): New function.
7047 (block_find_non_opaque_type): Ditto.
7048 (block_find_non_opaque_type_preferred): Ditto.
7049 * block.h (block_symbol_matcher_ftype): New typedef.
7050 (block_find_symbol): Declare.
7051 (block_find_non_opaque_type): Ditto.
7052 (block_find_non_opaque_type_preferred): Ditto.
7053 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7054 * psymtab.c (psym_lookup_symbol): Ditto.
7055 * symtab.c (basic_lookup_transparent_type_1): New function.
7056 (basic_lookup_transparent_type): Call it.
7057
f62fce35
YQ
70582015-05-27 Yao Qi <yao.qi@linaro.org>
7059
7060 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7061 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7062
5d98d3cd
YQ
70632015-05-27 Yao Qi <yao.qi@linaro.org>
7064
7065 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7066 before operator &&.
7067 (aarch64_record_load_store): Likewise.
7068
82c7be31
DE
70692015-05-26 Doug Evans <dje@google.com>
7070
7071 PR c++/18141, c++/18417.
7072 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7073 a typedef.
7074
b4f54984
DE
70752015-05-26 Doug Evans <dje@google.com>
7076
7077 * NEWS: Add entries for command renamings.
7078 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7079 All uses updated.
7080 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7081 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7082 All uses updated.
7083 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7084 All callers updated. Fix spelling of DWARF in help text.
7085 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7086 All uses updated.
7087 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7088 All uses updated.
7089 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7090 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7091 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7092 All uses updated.
7093 (show_dwarf_always_disassemble): Renamed from
7094 show_dwarf2_always_disassemble. All callers updated.
7095 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7096 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7097 "set/show dwarf max-cache-age". Rename
7098 "set/show dwarf2 always-disassemble" to
7099 "set/show dwarf always-disassemble". Rename
7100 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7101 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7102
4ea6efe9
DE
71032015-05-26 Doug Evans <dje@google.com>
7104
7105 PR python/18438
7106 * python/py-lazy-string.c (stpy_convert_to_value): Use
7107 gdbpy_gdb_memory_error not PyExc_MemoryError.
7108 (gdbpy_create_lazy_string_object): Ditto.
7109
b93fd21d
AB
71102015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7111
7112 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7113
55b40027
AB
71142015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7115
7116 * tui/tui-regs.c (tui_reg_prev_command): New function.
7117 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7118 * reggroups.c (reggroup_prev): New function.
7119 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7120
99afc88b
OJ
71212015-05-26 Omair Javaid <omair.javaid@linaro.org>
7122 Yao Qi <yao.qi@linaro.org>
7123
7124 * aarch64-linux-tdep.c: Include linux-record.h and
7125 record-full.h.
7126 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7127 (aarch64_syscall): New enum.
7128 (aarch64_canonicalize_syscall): New function.
7129 (aarch64_all_but_pc_registers_record): New function.
7130 (aarch64_linux_syscall_record): New function.
7131 (aarch64_linux_init_abi): Install AArch64 process record
7132 handler. Update to handle syscall recording.
7133 * aarch64-tdep.c: Include record.h and record-full.h.
7134 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7135 (struct aarch64_mem_r): Define.
7136 (aarch64_record_result): New enum.
7137 (struct insn_decode_record): Define.
7138 (insn_decode_record): New typedef.
7139 (aarch64_record_data_proc_reg): New function.
7140 (aarch64_record_data_proc_imm): New function.
7141 (aarch64_record_branch_except_sys): New function.
7142 (aarch64_record_load_store): New function.
7143 (aarch64_record_data_proc_simd_fp): New function.
7144 (aarch64_record_asimd_load_store): New function.
7145 (aarch64_record_decode_insn_handler): New function.
7146 (deallocate_reg_mem): New function.
7147 (aarch64_process_record): New function.
7148 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7149 New field.
7150 (aarch64_process_record): New extern declaration.
7151 * configure.tgt: Add linux-record.o to gdb_target_obs.
7152 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7153
c16a3f52
OJ
71542015-05-26 Omair Javaid <omair.javaid@linaro.org>
7155
7156 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7157 targets.
7158
c9cf6e20
MG
71592015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7160
7161 * amd64-tdep.c: Replace in_function_epilogue_p with
7162 stack_frame_destroyed_p throughout.
7163 * arch-utils.c: Ditto.
7164 * arch-utils.h: Ditto.
7165 * arm-tdep.c: Ditto.
7166 * breakpoint.c: Ditto.
7167 * gdbarch.sh: Ditto.
7168 * hppa-tdep.c: Ditto.
7169 * i386-tdep.c: Ditto.
7170 * mips-tdep.c: Ditto.
7171 * nios2-tdep.c: Ditto.
7172 * rs6000-tdep.c: Ditto.
7173 * s390-linux-tdep.c: Ditto.
7174 * score-tdep.c: Ditto.
7175 * sh-tdep.c: Ditto.
7176 * sparc-tdep.c: Ditto.
7177 * sparc-tdep.h: Ditto.
7178 * sparc64-tdep.c: Ditto.
7179 * spu-tdep.c: Ditto.
7180 * tic6x-tdep.c: Ditto.
7181 * tilegx-tdep.c: Ditto.
7182 * xstormy16-tdep.c: Ditto.
7183 * gdbarch.c, gdbarch.h: Re-generated.
7184
a4ea0946
AB
71852015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7186
7187 * NEWS: Mention 'tui enable' and 'tui disable'.
7188 * tui/tui.c (tui_enable_command): New function.
7189 (tui_disable_command): New function.
7190 (_initialize_tui): New function.
7191
b75c69bb
AB
71922015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7193
7194 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7195
c1b009ee
AB
71962015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7197
7198 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7199 buf_ptr is freed.
7200
880d1e40
AB
72012015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7202
7203 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7204 into ...
7205 (tui_set_layout_for_display_command): ...here, before calling
7206 tui_set_layout. Only set the layout if gdb has not already
7207 entered the TUI_FAILURE state.
7208
a0145030
AB
72092015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7210
7211 * tui/tui-layout.c (layout_completer): New function.
7212 (_initialize_tui_layout): Set completer on layout command.
7213
7bd0be3a
AB
72142015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7215
7216 * tui/tui-layout.c (tui_set_layout): Remove
7217 tui_register_display_type parameter. Remove all checking of this
7218 parameter, and reindent function. Update header comment.
7219 (tui_set_layout_for_display_command): Rename to...
7220 (tui_set_layout_by_name): ...this, and don't check for different
7221 register class types, don't pass a tui_register_display_type to
7222 tui_set_layout. Update header comment.
7223 (layout_names): Remove register set specific names.
7224 * tui/tui-layout.h (tui_set_layout): Remove
7225 tui_register_display_type parameter.
7226 * tui/tui.c (tui_rl_change_windows): Don't pass a
7227 tui_register_display_type to tui_set_layout.
7228 (tui_rl_delete_other_windows): Likewise.
7229 (tui_enable): Likewise.
7230 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7231 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7232 (TUI_GENERAL_REGS_NAME): Remove.
7233 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7234 (TUI_SPECIAL_REGS_NAME): Remove.
7235 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7236 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7237 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7238 (enum tui_register_display_type): Remove.
7239 (struct tui_layout_def): Remove regs_display_type and
7240 float_regs_display_type fields.
7241 (struct tui_data_info): Remove regs_display_type field.
7242 (tui_layout_command): Use new name for
7243 tui_set_layout_for_display_command.
7244 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7245 (tui_clear_win_detail): Don't initialise removed fields of
7246 win_info.
7247 * tui/tui-regs.c (tui_show_registers): Use new name for
7248 tui_set_layout_for_display_command.
7249 * tui/tui.h (tui_set_layout_for_display_command): Rename
7250 declaration to...
7251 (tui_set_layout_by_name): ...this.
7252 * printcmd.c (display_command): Remove tui related layout call,
7253 and reindent.
7254
0b6e5e10
JB
72552015-05-20 Joel Brobecker <brobecker@adacore.com>
7256
7257 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7258 (handle_inferior_event): New function.
7259
1da0522e
JB
72602015-05-20 Joel Brobecker <brobecker@adacore.com>
7261
7262 * ada-lang.c (to_fixed_array_type): Rename local variable
7263 typename into type_name.
7264
5fe75eec
JK
72652015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7266
7267 Fix ASAN crash for gdb.compile/compile.exp.
7268 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7269
a4063588
JK
72702015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7271
7272 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7273 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7274 * compile/compile-object-load.c (setup_sections, compile_object_load):
7275 Likewise.
7276 * compile/compile.c (compile_to_object): Likewise.
7277
37442ce1
DE
72782015-05-16 Doug Evans <xdje42@gmail.com>
7279
7280 * NEWS: Mention support for unbuffered Guile memory ports.
7281 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7282 (ioscm_lseek_address): Improve overflow calculation.
7283 (gdbscm_memory_port_fill_input): Add assert.
7284 (gdbscm_memory_port_write): Handle unbuffered ports.
7285 Handle large writes identical to Guile's fport_write.
7286 (gdbscm_memory_port_seek): Fix seeking past end check.
7287 (gdbscm_memory_port_close): Handle closing unbuffered port.
7288 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7289 (ioscm_init_memory_port): Handle unbuffered ports.
7290 (ioscm_reinit_memory_port): Ditto.
7291 (ioscm_init_memory_port): Update size calculation.
7292 (gdbscm_open_memory): Support zero sized ports.
7293
d976bace
JK
72942015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7295
7296 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7297 variable compiler warnings.
7298
4d18dfad
JK
72992015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7300
7301 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7302
36de76f9
JK
73032015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7304 Phil Muldoon <pmuldoon@redhat.com>
7305
7306 * NEWS (Changes since GDB 7.9): Add compile print.
7307 * compile/compile-c-support.c (add_code_header, add_code_footer)
7308 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7309 COMPILE_I_PRINT_VALUE_SCOPE.
7310 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7311 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7312 New.
7313 * compile/compile-object-load.c: Include block.h.
7314 (get_out_value_type): New function.
7315 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7316 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7317 OUT_VALUE_TYPE.
7318 * compile/compile-object-load.h (struct compile_module): Add fields
7319 out_value_addr and out_value_type.
7320 * compile/compile-object-run.c: Include valprint.h and compile.h.
7321 (struct do_module_cleanup): Add fields out_value_addr and
7322 out_value_type.
7323 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7324 COMPILE_I_PRINT_VALUE_SCOPE.
7325 (compile_object_run): Propagate out_value_addr and out_value_type.
7326 Pass OUT_VALUE_ADDR.
7327 * compile/compile.c: Include valprint.h.
7328 (compile_print_value, compile_print_command): New functions.
7329 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7330 (_initialize_compile): Update compile code help text. Install
7331 compile_print_command.
7332 * compile/compile.h (compile_print_value): New prototype.
7333 * defs.h (enum compile_i_scope_types): Add
7334 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7335
83d3415e
JK
73362015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7337
7338 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7339 Rely on its parameter count.
7340 (compile_object_load): Replace lookup_minimal_symbol_text by
7341 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7342 return value.
7343 * compile/compile-object-load.h (struct compile_module): Replace
7344 func_addr by func_sym.
7345 * compile/compile-object-run.c: Include block.h.
7346 (compile_object_run): Reset module variable after it is freed. Use
7347 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7348
3a9558c4
JK
73492015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7350
7351 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7352 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7353 (c_compute_program): Call generate_register_struct after typedefs.
7354 * compile/compile-loc2c.c (push, pushf_register_address)
7355 (pushf_register): Cast to GCC_UINTPTR.
7356 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7357 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7358 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7359 * compile/compile.c (_initialize_compile): Enable warnings for
7360 COMPILE_ARGS.
7361
5c65b58a
JK
73622015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7363
7364 * cli/cli-script.c (execute_control_command): Update
7365 eval_compile_command caller.
7366 * compile/compile-object-load.c (compile_object_load): Add parameters
7367 scope and scope_data. Set them.
7368 * compile/compile-object-load.h (struct compile_module): Add fields
7369 scope and scope_data.
7370 (compile_object_load): Add parameters scope and scope_data.
7371 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7372 scope and scope_data.
7373 (compile_object_run): Propagate the fields scope and scope_data.
7374 * compile/compile.c (compile_file_command, compile_code_command):
7375 Update eval_compile_command callers.
7376 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7377 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7378 * defs.h (struct command_line): Add field scope_data.
7379
1c88ceb1
JK
73802015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7381
7382 * printcmd.c (struct format_data): Move it to valprint.h.
7383 (print_command_parse_format, print_value): New functions from ...
7384 (print_command_1): ... here. Call them.
7385 * valprint.h (struct format_data): Move it here from printcmd.c.
7386 (print_command_parse_format, print_value): New declarations.
7387
0b738f27
JK
73882015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7389
7390 * compile/compile-object-load.c (compile_object_load): Add
7391 COMPILE_DEBUG message.
7392
aa715135
JG
73932015-05-15 Jerome Guitton <guitton@adacore.com>
7394
7395 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7396 index to get element instead of enum value.
7397 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7398 of index to compute length, but enum values to compute bounds.
7399 (ada_array_length): Use enum position of index instead of enum value.
7400 (pos_atr): Move position computation to...
7401 (ada_evaluate_subexp): Use enum values to compute bounds.
7402 * gdbtypes.c (discrete_position): ...this new function.
7403 * gdbtypes.h (discrete_position): New function declaration.
7404 * valprint.c (val_print_array_elements): Call discrete_position
7405 to handle array indexed by non-contiguous enumeration types.
7406
931e5bc3
JG
74072015-05-15 Jerome Guitton <guitton@adacore.com>
7408
7409 * ada-lang.c (find_parallel_type_by_descriptive_type):
7410 Go through typedefs during lookup.
7411 (to_fixed_array_type): Add support for non-bit packed arrays
7412 as variable-length fields.
7413
4e63d0ac
PA
74142015-05-15 Pedro Alves <palves@redhat.com>
7415 Simon Marchi <simon.marchi@ericsson.com>
7416
7417 * event-loop.c (gdb_notifier) <next_file_handler,
7418 next_poll_fds_index>: New fields.
7419 (get_next_file_handler_to_handle_and_advance): New function.
7420 (delete_file_handler): If deleting the next file handler to
7421 handle, advance to the next file handler.
7422 (gdb_wait_for_event): Bail early if no event fired. Poll file
7423 handlers in round-robin fashion.
7424
52e48b36
PA
74252015-05-15 Pedro Alves <palves@redhat.com>
7426
7427 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7428 'private' to 'priv'.
7429
2465e12e
PA
74302015-05-15 Pedro Alves <palves@redhat.com>
7431
7432 * nat/linux-nat.h: Include "target/waitstatus.h".
7433
13fa0398
YZ
74342015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7435
7436 * python/py-unwind.c (struct reg_info): Move out of ...
7437 (struct cached_frame_info): ... this scope.
7438 (pending_frame_object_type, unwind_info_object_type): Make extern.
7439
9cd4d857
JB
74402015-05-15 Joel Brobecker <brobecker@adacore.com>
7441
7442 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7443 accumSize is never negative.
7444
e3555239
PP
74452015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7446
7447 * tui/tui-command.c: Remove include of <ctype.h>.
7448 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7449
08a76f8a
MG
74502015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7451
7452 * dwarf2read.c (die_needs_namespace): Return 1 for
7453 DW_TAG_inlined_subroutine.
7454
bd49952b
JK
74552015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7456
7457 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7458 (regcache_cpy_no_passthrough): Make it static, add function comment.
7459 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7460 (regcache_cpy_no_passthrough): Remove declaration.
7461
46c03469
JK
74622015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7463
7464 * gdbthread.h (struct thread_control_state): Update comment for
7465 proceed_to_finish.
7466 * infcall.c (run_inferior_call): Update comment about
7467 proceed_to_finish.
7468 * infcmd.c (get_return_value): Update comment about stop_registers.
7469 (finish_forward): Update comment about proceed_to_finish.
7470 * infrun.c (stop_registers): Remove.
7471 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7472 * infrun.h (stop_registers): Remove.
7473
8a6c4031
JK
74742015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7475
7476 * infcall.c (struct dummy_frame_context_saver)
7477 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7478 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7479 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7480 New.
7481 (call_function_by_hand_dummy): Move discard_cleanups of
7482 inf_status_cleanup before dummy_frame_push. Call
7483 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7484 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7485 * infcall.h (struct dummy_frame_context_saver)
7486 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7487 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7488 New declarations.
7489 * infcmd.c: Include infcall.h.
7490 (get_return_value): Add parameter ctx_saver, use it instead of
7491 stop_registers.
7492 (print_return_value): Add parameter ctx_saver, pass it.
7493 (struct finish_command_continuation_args): Add field ctx_saver.
7494 (finish_command_continuation): Update print_return_value caller.
7495 (finish_command_continuation_free_arg): Free also ctx_saver.
7496 (finish_forward): Call dummy_frame_context_saver_setup.
7497 * inferior.h (struct dummy_frame_context_saver): New declaration.
7498 (get_return_value): Add parameter ctx_saver.
7499 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7500 get_return_value caller.
7501
10989690
JK
75022015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7503
7504 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7505 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7506 (remove_dummy_frame): Process dtor_list.
7507 (pop_dummy_frame): Process dtor_list.
7508 (register_dummy_frame_dtor): Maintain dtor_list.
7509 (find_dummy_frame_dtor): Handle dtor_list.
7510 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7511 Update comments.
7512
5e970501
JK
75132015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7514
7515 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7516 registers_valid.
7517 (compile_object_run): Update do_module_cleanup caller.
7518 * dummy-frame.c: Include infcall.h.
7519 (struct dummy_frame): Update dtor comment.
7520 (remove_dummy_frame): Call dtor.
7521 (pop_dummy_frame): Update dtor caller.
7522 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7523 registers_valid.
7524
1c4eb778
JB
75252015-05-13 Joel Brobecker <brobecker@adacore.com>
7526
7527 GDB 7.9.1 released.
7528
f5f85ab9
JB
75292015-05-13 Joel Brobecker <brobecker@adacore.com>
7530
7531 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7532 Xmethods now being able to specify a result type to that new
7533 sectioin.
7534
242cd84c
PP
75352015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7536
7537 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7538 first before resizing the window.
e3555239 7539 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
7540
75412015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
7542
7543 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7544 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7545 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7546 dummy_dtor parameter.
7547 * infcall.h: Include dummy-frame.h.
7548 (call_function_by_hand_dummy_dtor_ftype): Remove.
7549 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7550 parameter.
7551
ebfd00d2
PP
75522015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7553
7554 PR gdb/17820
7555 * top.c (history_size_setshow_var): Change type to signed.
7556 Initialize to -2. Update documentation.
7557 (set_readline_history_size): Define.
7558 (set_history_size_command): Use it. Remove logic for handling
7559 out-of-range sizes.
7560 (init_history): Use set_readline_history_size(). Test for a
7561 value of -2 instead of 0 when determining whether to set a
7562 default history size.
7563 (init_main): Decode the argument of the "size" command as a
7564 zuinteger_unlimited.
7565
83769d0b
DE
75662015-05-12 Doug Evans <dje@google.com>
7567
7568 * dwarf2read.c (struct file_entry): Tweak comments.
7569 (get_debug_line_section): Tweak comments.
7570
0d71eef5
DB
75712015-05-12 Don Breazeal <donb@codesourcery.com>
7572
7573 * NEWS: Announce fork support in the RSP and support
7574 for fork debugging in extended mode.
7575
cbb8991c
DB
75762015-05-12 Don Breazeal <donb@codesourcery.com>
7577
7578 * remote.c (remote_insert_fork_catchpoint): New function.
7579 (remote_remove_fork_catchpoint): New function.
7580 (remote_insert_vfork_catchpoint): New function.
7581 (remote_remove_vfork_catchpoint): New function.
7582 (pending_fork_parent_callback): New function.
7583 (remove_new_fork_child): New function.
7584 (remote_update_thread_list): Call remote_notif_get_pending_events
7585 and remove_new_fork_child.
7586 (extended_remote_kill): Kill fork child when killing the
7587 parent before follow_fork completes.
7588 (init_extended_remote_ops): Initialize target vector with
7589 new fork catchpoint functions.
7590
c269dbdb
DB
75912015-05-12 Don Breazeal <donb@codesourcery.com>
7592
7593 * remote.c (remove_vfork_event_p): New function.
7594 (remote_follow_fork): Add vfork event type to event checking.
7595 (remote_parse_stop_reply): New stop reasons "vfork" and
7596 "vforkdone" for RSP 'T' Stop Reply Packet.
7597
de0d863e
DB
75982015-05-12 Don Breazeal <donb@codesourcery.com>
7599
7600 * linux-nat.c (linux_nat_ptrace_options): New function.
7601 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7602 Call linux_nat_ptrace_options and use different argument to
7603 linux_enable_event_reporting.
7604 (_initialize_linux_nat): Delete call to
7605 linux_ptrace_set_additional_flags.
c8f6c93c 7606 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
7607 supported_ptrace_options.
7608 (additional_flags): Delete variable.
7609 (linux_check_ptrace_features): Use supported_ptrace_options.
7610 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7611 Likewise, and remove additional_flags check.
7612 (linux_enable_event_reporting): Change 'attached' argument to
7613 'options'. Use supported_ptrace_options.
c8f6c93c 7614 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
7615 supported_ptrace_options.
7616 (linux_ptrace_set_additional_flags): Delete function.
7617 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7618 Delete function prototype.
7619 * remote.c (remote_fork_event_p): New function.
7620 (remote_detach_pid): New function.
7621 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7622 if doing detach-on-fork.
7623 (remote_follow_fork): New function.
7624 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7625 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7626 (init_extended_remote_ops): Initialize to_follow_fork.
7627
89245bc0
DB
76282015-05-12 Don Breazeal <donb@codesourcery.com>
7629
7630 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7631 from static to extern.
7632 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7633 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7634 * PACKET_vfork_event_feature>: New enumeration constants.
7635 (remote_protocol_features): Add table entries for new packets.
7636 (remote_query_supported): Add new feature queries to qSupported
7637 packet.
7638
835205d0
GB
76392015-05-12 Gary Benson <gbenson@redhat.com>
7640
7641 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7642 for fake PIDs as well as real ones.
7643 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7644
4c082a81
SC
76452015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7646
7647 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7648 * python/py-value.c (valpy_reference_value): New function.
7649 (valpy_const_value): Likewise.
7650 (value_object_methods): Add new methods.
7651 * value.c (make_cv_value): New function.
7652 * value.h (make_cv_value): Declare.
7653
afa6c9ab
SL
76542015-05-08 Yao Qi <yao@codesourcery.com>
7655 Sandra Loosemore <sandra@codesourcery.com>
7656
7657 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7658 to 'lh->include_dirs' before accessing to it.
7659 (psymtab_include_file_name): Likewise.
7660 (dwarf_decode_lines_1): Likewise.
7661 (dwarf_decode_lines): Likewise.
7662 (file_file_name): Likewise.
7663
35d54293
SL
76642015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7665
7666 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7667 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7668 (nios2_linux_rt_sigreturn_init): Adjust base address of
7669 register save area.
7670
b73c49b7
SL
76712015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7672
7673 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7674 "trap 31" as the breakpoint instruction on all targets.
7675
dd9f02a0
JK
76762015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7677
7678 * infcmd.c (print_return_value): Remove unused declaration.
7679
6ad395a7
JB
76802015-05-08 Joel Brobecker <brobecker@adacore.com>
7681
7682 * dwarf2read.c (attr_to_dynamic_prop)
7683 <DW_AT_data_member_location>: Use read_type_die isntead of
7684 get_die_type.
7685
8344af1e
JB
76862015-05-08 Joel Brobecker <brobecker@adacore.com>
7687
7688 * ada-lang.c (ada_convert_actual): Add handling of formals
7689 passed inside an aligner type.
7690
80b0912b
JB
76912015-05-08 Joel Brobecker <brobecker@adacore.com>
7692
7693 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7694
df2eb078
SC
76952015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7696
7697 PR python/18291
7698 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7699 Print xmethod matcher status.
7700
2492f0d0
AA
77012015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7702
7703 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7704 register in the regcache when treating the PSWM register, and vice
7705 versa.
7706
1c56a84d
GB
77072015-05-07 Gary Benson <gbenson@redhat.com>
7708
7709 * linux-thread-db.c (struct thread_db_info)
7710 <td_ta_map_id2thr_p>: Remove field.
7711 (try_thread_db_load_1): Remove initialization for the above.
7712
74850322
GB
77132015-05-07 Gary Benson <gbenson@redhat.com>
7714
7715 * linux-thread-db.c (struct thread_db_info)
7716 <td_thr_validate_p>: Remove field.
7717 (try_thread_db_load_1): Remove initialization for the above.
7718
e26efa40
JK
77192015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7720
7721 * compile/compile-object-load.c (compile_object_load): Support
7722 mst_text_gnu_ifunc.
7723
851c9091
JK
77242015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7725
7726 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7727 const. Use new variables for the const compatibility.
7728 (eval_compile_command): Make the cmd_string parameter const.
7729 * compile/compile.h (eval_compile_command): Make the cmd_string
7730 parameter const.
7731
f218b647
JB
77322015-05-06 Joel Brobecker <brobecker@adacore.com>
7733
7734 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7735 comment.
7736 * top.c (deprecated_init_ui_hook): Delete.
7737 (gdb_init): Remove handling of deprecated_init_ui_hook.
7738 * interps.c (clear_interpreter_hooks): Remove handling of
7739 deprecated_init_ui_hook.
7740 * main.c (captured_main): Update comment.
7741
b30a0bc3
JB
77422015-05-06 Joel Brobecker <brobecker@adacore.com>
7743
7744 * solib.c (_initialize_solib): Add "info dll" alias creation.
7745 * windows-nat.c (set_windows_aliases): Delete.
7746 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7747 assignment.
7748 * NEWS: Add news entry about "info dll" now being available
7749 on all platforms.
7750
7c512744
JB
77512015-05-05 Joel Brobecker <brobecker@adacore.com>
7752
7753 * ada-lang.c (value_assign_to_component): Reformat and improve
7754 documentation. Remove all trailing spaces.
7755
0fa7fe50
JB
77562015-05-05 Joel Brobecker <brobecker@adacore.com>
7757
7758 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7759 Stop counting inlined frames as soon as an out-of-line function
7760 is found.
7761
3ea89b92
PMR
77622014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
7763
7764 * dwarf2read.c (inherit_abstract_dies): Skip
7765 DW_TAG_GNU_call_site dies while inheriting children of an
7766 abstract DIE into a scope.
7767 (read_lexical_block_scope): Inherit abstract DIE's for
7768 lexical scopes.
7769
2478d075
JB
77702015-05-05 Joel Brobecker <brobecker@adacore.com>
7771
7772 * ada-valprint.c (val_print_packed_array_elements): Delete
7773 variable "len". Add a type-length check when comparing two
7774 consecutive elements of the array. Use the element's actual
7775 length in call to value_contents_eq.
7776 * ada-lang.c (ada_value_primitive_packed_val): Always return
7777 a value whose type has been resolved.
7778
fc958966
JB
77792015-05-05 Joel Brobecker <brobecker@adacore.com>
7780
7781 * ada-lang.c (ada_value_primitive_packed_val): Recompute
7782 BIT_SIZE and LEN if the size of the resolved type is smaller
7783 than BIT_SIZE * HOST_CHAR_BIT.
7784
ca34b84f
JB
77852015-05-05 Joel Brobecker <brobecker@adacore.com>
7786
7787 * ada-lang.c (ada_value_primitive_packed_val): Use a more
7788 correct address in call to value_at. Adjust call to
7789 value_address accordingly.
7790
62c67f3c
JB
77912015-05-05 Joel Brobecker <brobecker@adacore.com>
7792
7793 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7794 to print it.
7795
c3345124
JB
77962015-05-05 Joel Brobecker <brobecker@adacore.com>
7797
7798 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7799 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7800 pinfo->valaddr.
7801 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7802 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7803 (resolve_dynamic_type_internal): Set pinfo.valaddr.
7804 Add handling of addr_stack->valaddr.
7805 (resolve_dynamic_type): Add "valaddr" parameter.
7806 Set pinfo.valaddr field.
7807 * ada-lang.c (ada_discrete_type_high_bound): Update call to
7808 resolve_dynamic_type.
7809 (ada_discrete_type_low_bound): Likewise.
7810 * findvar.c (default_read_var_value): Likewise.
7811 * value.c (value_from_contents_and_address): Likewise.
7812
75ea5859
JB
78132015-05-05 Joel Brobecker <brobecker@adacore.com>
7814
7815 * gdbtypes.c (resolve_dynamic_array): Use
7816 create_array_type_with_stride instead of create_array_type.
7817
0952813b
DD
78182015-04-30 DJ Delorie <dj@redhat.com>
7819
7820 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7821 rl78_decode_opcode
7822
2ce1cdbf
DE
78232015-04-29 Doug Evans <dje@google.com>
7824
7825 PR python/18285
7826 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7827 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7828 EVAL_AVOID_SIDE_EFFECTS for xmethods.
7829 * extension-priv.h (struct extension_language_ops)
7830 <get_xmethod_result_type>: New member.
7831 * extension.c (get_xmethod_result_type): New function.
7832 * extension.h (get_xmethod_result_type): Declare.
7833 * python/py-xmethods.c (get_result_type_method_name): New static
7834 global.
7835 (py_get_result_type_method_name): Ditto.
7836 (gdbpy_get_xmethod_result_type): New function.
7837 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
7838 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
7839 * python/python.c (python_extension_ops): Add
7840 gdbpy_get_xmethod_result_type.
7841 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
7842 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
7843 xmethods.
7844 (value_x_unop): Ditto.
7845 * value.c (result_type_of_xmethod): New function.
7846 * value.h (result_type_of_xmethod): Declare.
7847
998d2a3e
GB
78482015-04-29 Gary Benson <gbenson@redhat.com>
7849
7850 * solib.c (solib_find_1): Allow fd argument to be NULL.
7851 (exec_file_find): Update comment.
7852 (solib_find): Likewise.
7853 * exec.c (exec_file_locate_attach): Use NULL as fd
7854 argument to exec_file_find to avoid having to close
7855 the opened file.
7856 * infrun.c (follow_exec): Likewise.
7857
34f5f757
DE
78582015-04-28 Doug Evans <dje@google.com>
7859
7860 PR python/18299
7861 * python/lib/gdb/printing.py (register_pretty_printer): Handle
7862 name or __name__ attributes. Handle gdb module as first argument.
7863
69b4374a
DE
78642015-04-28 Doug Evans <dje@google.com>
7865
7866 PR python/18089
7867 * python/py-prettyprint.c (print_children): Verify result of children
7868 iterator. Provide better error message.
7869 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
7870 * python/python.c (gdbpy_print_python_errors_p): New function.
7871
5e7cf078
DE
78722015-04-28 Doug Evans <dje@google.com>
7873
7874 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
7875
59fb7612
SS
78762015-04-28 Sasha Smundak <asmundak@google.com>
7877
7878 * NEWS: Mention gdb.Type.optimized_out method.
7879 * python/py-type.c (typy_optimized_out): New function.
7880
cea6e4f1
JB
78812015-04-28 John Baldwin <jhb@FreeBSD.org>
7882
7883 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7884
24b73f8e
PP
78852015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7886
7887 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
7888 (initialize_utils): Move call of init_page_info() to ...
7889 * top.c (gdb_init): ... here.
7890
a88d0bb3
PP
78912015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7892
7893 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
7894 (tui_sigwinch_handler): Still update our idea of
7895 the terminal's width and height even when TUI is not active.
7896
d6e5e7f7
PP
78972015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7898
7899 * utils.h (set_screen_width_and_height): Declare.
7900 * utils.c (set_screen_width_and_height): Define.
7901 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
7902
ff862be4
GB
79032015-04-28 Gary Benson <gbenson@redhat.com>
7904
7905 * infrun.c (solist.h): New include.
7906 (follow_exec): Use exec_file_find to prefix execd_pathname
7907 with gdb_sysroot.
7908
2eb639cb
PP
79092015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7910
7911 * tui/tui-source.c (tui_set_source_content): Avoid calling
7912 strcpy() when offset is 0.
7913
97206799
PP
79142015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7915
7916 PR gdb/18155
7917 * tui/tui-data.c (tui_free_window): Don't free the locator
7918 window when passed an SRC_WIN or a DISASSEM_WIN.
7919
63ed8182
PP
79202015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7921
7922 * tui/tui-data.h (struct tui_win_element): Forward-declare.
7923 (tui_win_content): Move declaration.
7924 (struct tui_gen_win_info): Give 'content' field the
7925 type tui_win_content.
7926 * tui/tui-data.c (init_content_element): Remove redundant and
7927 erroneous casts.
7928 (tui_add_content_elements): Remove erroneous cast.
7929 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
7930 casts.
7931 (tui_get_begin_asm_address): Likewise.
7932 * tui/tui-regs.c (tui_show_registers): Likewise.
7933 (tui_show_register_group): Likewise.
7934 (tui_display_registers_from): Likewise.
7935 (tui_check_register_values): Likewise.
7936 * tui/tui-source.c (tui_set_source_content): Likewise.
7937 (tui_set_source_content_nil): Likewise.
7938 (tui_source_is_displayed): Likewise.
7939 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7940 (tui_set_locator_fullname): Likewise.
7941 (tui_set_locator_info): Likewise.
7942 (tui_show_frame_info): Likewise.
7943 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
7944 (tui_show_source_line): Likewise.
7945 (tui_horizontal_source_scroll): Likewise.
7946 (tui_update_breakpoint_info): Likewise.
7947 (tui_set_exec_info_content): Likewise.
7948 (tui_show_exec_info_content): Likewise.
7949 (tui_alloc_source_buffer): Likewise.
7950 (tui_line_is_displayed): Likewise.
7951 (tui_addr_is_displayed): Likewise.
7952
d2b41ca0
JB
79532015-04-27 John Baldwin <jhb@FreeBSD.org>
7954
7955 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
7956 event if PL_FLAG_EXEC is set.
7957 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
7958 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
7959 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
7960 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
7961 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
7962
e58e05d6
JB
79632015-04-27 John Baldwin <jhb@FreeBSD.org>
7964
7965 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
7966 [TDP_RFPPWAIT] New variable fbsd_pending_children.
7967 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
7968 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
7969 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
7970 [PT_LWPINFO] (fbsd_wait): New function.
7971 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
7972 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
7973 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
7974 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
7975 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
7976 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
7977 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
7978 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
7979 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
7980 "fbsd_wait".
7981 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
7982 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
7983 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
7984 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
7985 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
7986 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
7987 Set "to_post_attach" to "fbsd_post_attach".
7988
8f60fe01
JB
79892015-04-27 John Baldwin <jhb@FreeBSD.org>
7990
7991 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
7992 (fbsd_find_memory_regions): Mark static.
7993 (fbsd_nat_add_target): New function.
7994 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
7995 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
7996 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
7997 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
7998 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
7999 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8000
5fbae7d1
GB
80012015-04-27 Gary Benson <gbenson@redhat.com>
8002
8003 * objfiles.c (allocate_objfile): Do not attempt to expand name
8004 if name is a "target:" filename.
8005 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8006 to load auto-load scripts for objfiles with "target:" filenames.
8007
417c80f9
AA
80082015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8009
8010 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8011 (enum s390_vector_abi_kind): New enum.
8012 (struct gdbarch_tdep)<vector_abi>: New field.
8013 (s390_effective_inner_type): Add parameter min_size. Stop
8014 unwrapping if the inner type is smaller than min_size.
8015 (s390_function_arg_float): Adjust call to
8016 s390_effective_inner_type.
8017 (s390_function_arg_vector): New function.
8018 (s390_function_arg_integer): Adjust comment.
8019 (struct s390_arg_state)<vr>: New field.
8020 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8021 arguments according to vector ABI when appropriate.
8022 (s390_push_dummy_call): Initialize the argument state's field
8023 'vr'. Adjust calls to s390_handle_arg.
8024 (s390_register_return_value): Handle vector return values.
8025 (s390_return_value): Apply the "register" return value convention
8026 to a vector when appropriate.
8027 (s390_gdbarch_init): Initialize tdep->vector_abi.
8028 * NEWS: Announce S390 vector ABI support.
8029
4e65a17e
AA
80302015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8031
8032 * s390-linux-tdep.c (s390_return_value_convention): Remove
8033 function. Inline its logic...
8034 (s390_return_value): ...here. Instead, move the handling of the
8035 "register" return value convention...
8036 (s390_register_return_value): ...here. New function.
8037
80f75320
AA
80382015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8039
8040 * s390-linux-tdep.c
8041 (is_float_singleton): Remove function. Move the "singleton" part
8042 of the logic...
8043 (s390_effective_inner_type): ...here. New function.
8044 (is_float_like): Remove function. Inline its logic...
8045 (s390_function_arg_float): ...here.
8046 (is_pointer_like, is_integer_like, is_struct_like): Remove
8047 functions. Inline their logic...
8048 (s390_function_arg_integer): ...here.
8049 (s390_function_arg_pass_by_reference): Remove function.
8050 (extend_simple_arg): Remove function.
8051 (alignment_of): Remove function.
8052 (struct s390_arg_state): New structure.
8053 (s390_handle_arg): New function.
8054 (s390_push_dummy_call): Move parameter placement logic to the new
8055 function s390_handle_arg. Call it for calculating the stack area
8056 sizes first, and again for actually writing the parameters.
8057
6dbc9c04
AA
80582015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8059
8060 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8061 false if the argument is zero.
8062
9e195661
PMR
80632015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8064
8065 * ada-lang.c (template_to_static_fixed_type): Return input type
8066 when it is already fixed. Cache the input type itself when not
8067 creating a static fixed copy. Make it explicit that we never
8068 molestate the input type.
8069 * gdbtypes.c (resolve_dynamic_struct): Reset the
8070 TYPE_TARGET_TYPE field for resolved copies.
8071
460efde1
JB
80722015-04-27 Joel Brobecker <brobecker@adacore.com>
8073
8074 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8075 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8076 (template_to_static_fixed_type): Call ada_check_typedef only
8077 when necessary.
8078
6faec16b
AB
80792015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8080
8081 * cli/cli-dump.c (srec_dump_command): Add internationalization
8082 mark ups.
8083 (ihex_dump_command): Likewise.
8084 (tekhex_dump_command): Likewise.
8085 (binary_dump_command): Likewise.
8086 (binary_append_command): Likewise.
8087
cf75d6c3
AB
80882015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8089
8090 * cli/cli-dump.c (verilog_cmdlist): New variable.
8091 (dump_verilog_memory): New function.
8092 (dump_verilog_value): New function.
8093 (verilog_dump_command): New function.
8094 (_initialize_cli_dump): Add new commands to support verilog dump
8095 format.
8096 * NEWS: Add entry for "dump verilog".
8097
8cd00c59
PMR
80982015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8099
8100 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8101 descriptive type when there is none.
8102
8900d71e
PP
81032015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8104
8105 * tui/tui-win.c (tui_async_resize_screen): Call
8106 rl_resize_terminal().
8107
f16eab5f
JT
81082015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8109
8110 * windows-nat.c (handle_output_debug_string): Don't change
8111 current_event.dwThreadId.
8112 (get_windows_debug_event): Use thread_id, rather than relying on
8113 current_event.dwThreadId being changed.
8114
68ffc902
JT
81152015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8116
8117 * windows-nat.c (windows_continue): Report an error if
8118 ContinueDebugEvent() fails.
8119
23942819
JT
81202015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8121
8122 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8123
e6ad66bd
JT
81242015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8125
8126 * windows-nat.c (get_windows_debug_event): Replace retval with
8127 thread_id throughout. Update stale comment.
8128
776704b9
JT
81292015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8130
8131 * windows-nat.c (get_windows_debug_event): Don't use ternary
8132 conditional operator.
8133
8aae4344
PM
81342015-04-21 Pierre Muller <muller@sourceware.org>
8135
8136 PR pascal/17815
8137 p-exp.y (yylex): Reorganize code to return the matched pattern
8138 for a field of this.
8139
819843c7
GB
81402015-04-21 Gary Benson <gbenson@redhat.com>
8141
8142 * common/fileio.h (fileio_to_host_openflags): New declaration.
8143 * common/fileio.c (fcntl.h): New include.
8144 (fileio_to_host_openflags): New function, factored out from...
8145 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8146 Single use updated.
8147
0bca7f99
KB
81482015-04-21 Kevin Buettner <kevinb@redhat.com>
8149
8150 * rl78-tdep.c (RL78_SP_ADDR): Define.
8151 (opc_reg_to_gdb_regnum): New static function.
8152 (rl78_analyze_prologue): Recognize instructions forming slightly
8153 more interesting prologues.
8154
e771e4be
PMR
81552015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8156
8157 Revert:
8158 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8159 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8160 TYPE_CODE_REF types so that they are not considered as dynamic
8161 depending on the referenced type.
8162 (resolve_dynamic_type_internal): Likewise.
8163
ee715b5a
PMR
81642015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8165
8166 Revert:
8167 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8168 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8169 "top_level" parameter.
8170 (resolve_dynamic_type_internal): Remove the unused "top_level"
8171 parameter. Update call to is_dynamic_type_internal.
8172 (is_dynamic_type): Update call to is_dynamic_type_internal.
8173 (resolve_dynamic_range): Update call to
8174 resolve_dynamic_type_internal.
8175 (resolve_dynamic_union): Likewise.
8176 (resolve_dynamic_struct): Likewise.
8177 (resolve_dynamic_type): Likewise.
8178
e31d7699
GKB
81792015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8180
8181 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8182 xmalloc.
8183
d214e5e7
TS
81842015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8185
110f9112
TS
8186 * reply_mig_hack.awk: Robustify parsing.
8187
d214e5e7
TS
8188 * reply_mig_hack.awk: Don't bother to declare an intermediate
8189 function pointer variable.
8190
8f61baf8
DE
81912015-04-17 Doug Evans <dje@google.com>
8192
8193 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8194 to "exec_displacement" to avoid confusion with inner use of the name.
8195
dbbf180a
YQ
81962015-04-17 Pedro Alves <palves@redhat.com>
8197
8198 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8199 if HW point of TYPE isn't supported.
8200
059790a0
YQ
82012015-04-17 Yao Qi <yao.qi@linaro.org>
8202 Pedro Alves <palves@redhat.com>
8203
8204 * target.h (target_can_use_hardware_watchpoint): Update comments.
8205 Remove trailing ";".
8206
1b6e6f5c
GB
82072015-04-17 Gary Benson <gbenson@redhat.com>
8208
8209 * remote.c (remote_add_inferior): New argument try_open_exec.
8210 If nonzero, attempt to open the inferior's executable file as
8211 the main executable if no main executable is open already.
8212 All callers updated.
8213 * NEWS: Mention that GDB now supports automatic location and
8214 retrieval of executable + files from remote targets.
8215
c78fa86a
GB
82162015-04-17 Gary Benson <gbenson@redhat.com>
8217
8218 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8219 * remote.c (PACKET_qXfer_exec_file): Likewise.
8220 (remote_protocol_features): Register the
8221 "qXfer:exec-file:read" feature.
8222 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8223 (remote_pid_to_exec_file): New function.
8224 (init_remote_ops): Initialize to_pid_to_exec_file.
8225 (_initialize_remote): Register new "set/show remote
8226 pid-to-exec-file-packet" command.
8227 * NEWS: Announce new qXfer:exec-file:read packet.
8228
e0d86d2c
GB
82292015-04-17 Gary Benson <gbenson@redhat.com>
8230
8231 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8232 New declaration.
8233 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8234 New function, factored out from...
8235 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8236
a9a5a3d1
GB
82372015-04-17 Gary Benson <gbenson@redhat.com>
8238
8239 * exec.c (solist.h): New include.
8240 (exec_file_locate_attach): Prefix absolute executable
8241 paths with gdb_sysroot if set.
8242 * NEWS: Mention that executable paths may be prepended
8243 with sysroot.
8244
af1900b0
GB
82452015-04-17 Gary Benson <gbenson@redhat.com>
8246
8247 * solist.h (exec_file_find): New declaration.
8248 * solib.c (solib_find_1): New function, factored out from...
8249 (solib_find): ...here.
8250 (exec_file_find): New function.
8251
a10de604
GB
82522015-04-17 Gary Benson <gbenson@redhat.com>
8253
8254 * gdbcore.h (exec_file_locate_attach): New declaration.
8255 * exec.c (exec_file_locate_attach): New function, factored
8256 out from...
8257 * infcmd.c (attach_command_post_wait): ...here.
8258
92209ddf
MF
82592015-04-17 Mike Frysinger <vapier@gentoo.org>
8260
8261 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8262
8550d3b3
YQ
82632015-04-16 Yao Qi <yao.qi@linaro.org>
8264
8265 * infrun.c (maybe_software_singlestep): Declare.
8266 (displaced_step_fixup): Call maybe_software_singlestep.
8267
30b3dd9d
DE
82682015-04-15 Doug Evans <dje@google.com>
8269
8270 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8271
61d96d7e
DE
82722015-04-15 Doug Evans <dje@google.com>
8273
8274 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8275
40d2f8d6
SM
82762015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8277
8278 * python/lib/gdb/command/unwinders.py: Add parentheses.
8279
6bbbba9b
YQ
82802015-04-15 Yao Qi <yao.qi@linaro.org>
8281
8282 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8283
2bb2dcab
YQ
82842015-04-15 Yao Qi <yao.qi@linaro.org>
8285
8286 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8287
41f071ef
YQ
82882015-04-15 Yao Qi <yao.qi@linaro.org>
8289
8290 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8291 dsc->insn_size instead of 4.
8292
326a5c7e
GB
82932015-04-14 Gary Benson <gbenson@redhat.com>
8294
8295 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8296 * minidebug.c (lzma_stat): Likewise.
8297 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8298 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8299
dd177e81
SS
83002015-04-13 Stan Shebs <stanshebs@google.com>
8301
8302 * MAINTAINERS: Update my email address.
8303
97de3545
JB
83042015-04-13 John Baldwin <jhb@FreeBSD.org>
8305
8306 * amd64-tdep.c (amd64_target_description): New function.
8307 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8308 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8309 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8310 x86 extended save area.
8311 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8312 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8313 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8314 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8315 "amd64fbsd_read_description".
8316 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8317 (amd64fbsd_supply_xstateregset): New function.
8318 (amd64fbsd_collect_xstateregset): New function.
8319 Add "amd64fbsd_xstateregset".
8320 (amd64fbsd_iterate_over_regset_sections): New function.
8321 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8322 "I386_FBSD_XSAVE_XCR0_OFFSET".
8323 Add "iterate_over_regset_sections" gdbarch method.
8324 Add "core_read_description" gdbarch method.
8325 * i386-tdep.c (i386_target_description): New function.
8326 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8327 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8328 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8329 x86 extended save area.
8330 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8331 * i386bsd-nat.h: Export i386bsd_xsave_len.
8332 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8333 (_initialize_i386fbsd_nat): Set "to_read_description" to
8334 "i386fbsd_read_description".
8335 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8336 (i386fbsd_core_read_description): New function.
8337 (i386fbsd_supply_xstateregset): New function.
8338 (i386fbsd_collect_xstateregset): New function.
8339 Add "i386fbsd_xstateregset".
8340 (i386fbsd_iterate_over_regset_sections): New function.
8341 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8342 "I386_FBSD_XSAVE_XCR0_OFFSET".
8343 Add "iterate_over_regset_sections" gdbarch method.
8344 Add "core_read_description" gdbarch method.
8345 * i386fbsd-tdep.h: New file.
8346
4f45d445
JK
83472015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8348
8349 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8350 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8351 conditional.
8352 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8353 and lb.
8354 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8355 va.
8356 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8357 conditional.
8358 * defs.h (xdb_commands): Remove declaration.
8359 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8360 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8361 * infcmd.c (run_no_args_command, go_command): Remove.
8362 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8363 * infrun.c (xdb_handle_command): Remove.
8364 (_initialize_infrun): Remove xdb_commands for lz and z.
8365 * main.c (xdb_commands): Remove variable.
8366 (captured_main): Remove "xdb" from long_options.
8367 (print_gdb_help): Remove --xdb from help.
8368 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8369 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8370 * stack.c (backtrace_full_command, args_plus_locals_info)
8371 (current_frame_command): Remove.
8372 (_initialize_stack): Remove xdb_commands for t, T and l.
8373 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8374 * thread.c (_initialize_thread): Remove xdb_commands condition.
8375 * tui/tui-layout.c (tui_toggle_layout_command)
8376 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8377 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8378 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8379 (tui_scroll_regs_backward_command): Remove.
8380 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8381 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8382 (_initialize_tui_win): Remove xdb_commands for U and w.
8383 * utils.c (pagination_on_command, pagination_off_command): Remove.
8384 (initialize_utils): Remove xdb_commands for am and sm.
8385
cb71640d
PA
83862015-04-10 Pedro Alves <palves@redhat.com>
8387
8388 * infrun.c (displaced_step_fixup): Switch to the event ptid
8389 earlier. If the thread stopped for a watchpoint and the
8390 target/arch has non-continuable watchpoints, cancel the displaced
8391 step.
8392 (resume): Don't start a displaced step if in-line step-over info
8393 is valid.
8394
8f572e5c
PA
83952015-04-10 Pedro Alves <palves@redhat.com>
8396
8397 * infrun.c (displaced_step_in_progress): New function.
8398 (do_target_resume): Advise target to report all signals if
8399 displaced stepping.
8400
8d707a12
PA
84012015-04-10 Pedro Alves <palves@redhat.com>
8402
8403 PR gdb/18216
8404 * infrun.c (process_event_stop_test): Don't assume a step-resume
8405 is set if tp->stepped_breakpoint is true.
8406
ef713951
YQ
84072015-04-10 Yao Qi <yao.qi@linaro.org>
8408
8409 * arm-tdep.c (install_alu_reg): Update comment.
8410 (thumb_copy_alu_reg): Remove local variable rn. Update
8411 debugging message. Use r2 instead of r1 in the modified
8412 instruction.
8413
906d60cf
PA
84142015-04-10 Pedro Alves <palves@redhat.com>
8415
8416 PR gdb/13858
8417 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8418 linux_displaced_step_location as gdbarch_displaced_step_location
8419 hook.
8420 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8421 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8422 * linux-tdep.c (linux_displaced_step_location): New function,
8423 based on ppc_linux_displaced_step_location.
8424 * linux-tdep.h (linux_displaced_step_location): New declaration.
8425 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8426 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8427 Delete.
8428 (ppc_linux_init_abi): Install linux_displaced_step_location as
8429 gdbarch_displaced_step_location hook, even without Cell/B.E..
8430 (_initialize_ppc_linux_tdep): Don't install
8431 ppc_linux_inferior_created as inferior_created observer.
8432 * s390-linux-tdep.c (s390_gdbarch_init): Install
8433 linux_displaced_step_location as gdbarch_displaced_step_location
8434 hook.
8435
7823a941
GB
84362015-04-09 Gary Benson <gbenson@redhat.com>
8437
8438 * common/common-remote-fileio.h: Rename to...
8439 * common/fileio.h: ...this. Update all references.
8440 (remote_fileio_to_fio_error): Rename to...
8441 (host_to_fileio_error): ...this.
8442 (remote_fileio_to_be): Rename to...
8443 (host_to_bigendian): ...this. Update all callers.
8444 (remote_fileio_to_fio_uint): Rename to...
8445 (host_to_fileio_uint): ...this. Update all callers.
8446 (remote_fileio_to_fio_time): Rename to...
8447 (host_to_fileio_time): ...this. Update all callers.
8448 (remote_fileio_to_fio_stat): Rename to...
8449 (host_to_fileio_stat): ...this.
8450 Update all references.
8451 * common/common-remote-fileio.c: Rename to...
8452 * common/fileio.c: ...this. Update all references.
8453 (remote_fileio_to_fio_error): Rename to...
8454 (host_to_fileio_error): ...this. Update all callers.
8455 (remote_fileio_mode_to_target): Rename to...
8456 (fileio_mode_pack): ...this. Update all callers.
8457 (remote_fileio_to_fio_mode): Rename to...
8458 (host_to_fileio_mode): ...this. Update all callers.
8459 (remote_fileio_to_fio_ulong): Rename to...
8460 (host_to_fileio_ulong): ...this. Update all callers.
8461 (remote_fileio_to_fio_stat): Rename to...
8462 (host_to_fileio_stat): ...this. Update all callers.
8463
f2983cc3
AW
84642015-04-09 Andy Wingo <wingo@igalia.com>
8465
8466 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8467 (frame_functions): Bind gdbscm_frame_read_register to
8468 frame-read-register.
8469 * guile/lib/gdb.scm (frame-read-register): Export.
8470
b88bb450
GB
84712015-04-09 Gary Benson <gbenson@redhat.com>
8472
8473 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8474 New declaration.
8475 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8476 New function, factored out the named functions below.
8477 * inf-child.c (gdb/fileio.h): Remove include.
8478 (common-remote-fileio.h): New include.
8479 (inf_child_errno_to_fileio_error): Remove function. Update
8480 all callers to use remote_fileio_to_fio_error.
8481 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8482
2f2680f3
AW
84832015-04-09 Andy Wingo <wingo@igalia.com>
8484
8485 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8486
5a2d4533
L
84872015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8488
8489 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8490 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8491 * configure: Regenerated.
8492
421693b0
PA
84932015-04-09 Pedro Alves <palves@redhat.com>
8494
8495 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8496 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8497 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8498 * gnulib/import/Makefile.am: Update.
8499 * gnulib/import/Makefile.in: Update.
8500 * gnulib/import/m4/gnulib-cache.m4: Update.
8501 * gnulib/import/m4/gnulib-comp.m4: Update.
8502 * gnulib/import/m4/strtok_r.m4: New file.
8503 * gnulib/import/strtok_r.c: New file.
8504
f543dc83
PA
85052015-04-09 Pedro Alves <palves@redhat.com>
8506
8507 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8508 "called too early to check prototype".
8509
6d62641c
SDJ
85102015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8511
8512 PR python/16699
8513 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8514 use a caching mechanism. Adjust comments and code to reflect
8515 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8516 (cmdpy_completer_handle_brkchars): Adjust call to
8517 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8518 (cmdpy_completer): Likewise.
8519
85558555
YQ
85202015-04-08 Yao Qi <yao.qi@linaro.org>
8521
8522 * spu-tdep.c (spu_gdbarch_init): Don't call
8523 set_gdbarch_cannot_step_breakpoint.
8524
d249a14a
SDJ
85252015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8526
8527 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8528
8a06aea7
PA
85292015-04-07 Pedro Alves <palves@redhat.com>
8530
8531 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8532 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8533 (delete_exited_threads): New declaration.
8534 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8535 * linux-nat.c (linux_nat_update_thread_list): New function.
8536 (linux_nat_add_target): Install it.
8537 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8538 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8539 (delete_exited_threads): New function.
8540
d9b67d9f
PA
85412015-04-07 Pedro Alves <pedro@codesourcery.com>
8542
8543 * infrun.c (resume) <displaced stepping debug output>: Get the
8544 leader thread's regcache, not resume_ptid's.
8545
2c26b84f
DE
85462015-04-06 Doug Evans <xdje42@gmail.com>
8547
8548 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8549 VAR_DOMAIN.
8550 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8551 Include symbol domain in debugging output.
8552
7a85168d
PA
85532015-04-06 Pedro Alves <palves@redhat.com>
8554 Bernd Edlinger <bernd.edlinger@hotmail.de>
8555
8556 * configure.ac: Remove the mingw32-specific stub-termcap.o
8557 fallback, and instead fallback to the stub termcap on all hosts.
8558 * configure: Regenerate.
8559 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8560 symbols.
8561
25755e2b
PMR
85622015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8563
8564 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8565 "top_level" parameter.
8566 (resolve_dynamic_type_internal): Remove the unused "top_level"
8567 parameter. Update call to is_dynamic_type_internal.
8568 (is_dynamic_type): Update call to is_dynamic_type_internal.
8569 (resolve_dynamic_range): Update call to
8570 resolve_dynamic_type_internal.
8571 (resolve_dynamic_union): Likewise.
8572 (resolve_dynamic_struct): Likewise.
8573 (resolve_dynamic_type): Likewise.
8574
961f4160
PMR
85752015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8576
8577 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8578 TYPE_CODE_REF types so that they are not considered as dynamic
8579 depending on the referenced type.
8580 (resolve_dynamic_type_internal): Likewise.
8581
39f3de7c
L
85822015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8583
8584 * Makefile.in (top_srcdir): New.
8585 * configure: Regenerated.
8586
599bd15c
GB
85872015-04-02 Gary Benson <gbenson@redhat.com>
8588
8589 * NEWS: Announce the new default sysroot of "target:".
8590
fed040c6
GB
85912015-04-02 Gary Benson <gbenson@redhat.com>
8592
8593 * main.c (captured_main): Set gdb_sysroot to "target:"
8594 if not otherwise set.
8595
64c0b5de
GB
85962015-04-02 Gary Benson <gbenson@redhat.com>
8597
8598 * exec.c (exec_file_attach): Support "target:" filenames.
8599
b57fbfba
GB
86002015-04-02 Gary Benson <gbenson@redhat.com>
8601
8602 * solib.c (solib_find): Strip "target:" prefix from sysroot
8603 if accessing local files.
8604
97a41605
GB
86052015-04-02 Gary Benson <gbenson@redhat.com>
8606
8607 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8608 checks and error messages.
8609
2938e6cf
GB
86102015-04-02 Gary Benson <gbenson@redhat.com>
8611
8612 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8613 (remote_filename_p): Remove declaration.
8614 (remote_bfd_open): Likewise.
8615 * remote.c (remote_bfd_iovec_open): Remove function.
8616 (remote_bfd_iovec_close): Likewise.
8617 (remote_bfd_iovec_pread): Likewise.
8618 (remote_bfd_iovec_stat): Likewise.
8619 (remote_filename_p): Likewise.
8620 (remote_bfd_open): Likewise.
8621 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8622 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8623 (gdb_bfd_open_maybe_remote): Remove function.
8624 (symfile_bfd_open): Replace remote filename check with
8625 target filename check.
8626 (reread_symbols): Use gdb_bfd_open.
8627 * build-id.c (gdbcore.h): New include.
8628 (build_id_to_debug_bfd): Use gdb_bfd_open.
8629 * infcmd.c (attach_command_post_wait): Remove remote filename
8630 check.
8631 * solib.c (solib_find): Replace remote-specific handling with
8632 target-specific handling. Update comments where necessary.
8633 (solib_bfd_open): Replace remote-specific handling with
8634 target-specific handling.
8635 (gdb_sysroot_changed): New function.
8636 (_initialize_solib): Call the above when gdb_sysroot changes.
8637 * windows-tdep.c (gdbcore.h): New include.
8638 (windows_xfer_shared_library): Use gdb_bfd_open.
8639
f08e97fe
GB
86402015-04-02 Gary Benson <gbenson@redhat.com>
8641
8642 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8643 (is_target_filename): New declaration.
8644 (gdb_bfd_has_target_filename): Likewise.
8645 (gdb_bfd_open): Update documentation comment.
8646 * gdb_bfd.c (target.h): New include.
8647 (gdb/fileio.h): Likewise.
8648 (is_target_filename): New function.
8649 (gdb_bfd_has_target_filename): Likewise.
8650 (fileio_errno_to_host): Likewise.
8651 (gdb_bfd_iovec_fileio_open): Likewise.
8652 (gdb_bfd_iovec_fileio_pread): Likewise.
8653 (gdb_bfd_iovec_fileio_close): Likewise.
8654 (gdb_bfd_iovec_fileio_fstat): Likewise.
8655 (gdb_bfd_open): Use target fileio to access paths prefixed
8656 with "target:" where necessary.
8657
4bd7dc42
GB
86582015-04-02 Gary Benson <gbenson@redhat.com>
8659
8660 * target.h (struct target_ops) <to_filesystem_is_local>:
8661 New field.
8662 (target_filesystem_is_local): New macro.
8663 * target-delegates.c: Regenerate.
8664 * remote.c (remote_filesystem_is_local): New function.
8665 (init_remote_ops): Initialize to_filesystem_is_local.
8666
9b15c1f0
GB
86672015-04-02 Gary Benson <gbenson@redhat.com>
8668
8669 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8670 (target_fileio_fstat): New declaration.
8671 * target.c (target_fileio_fstat): New function.
8672 * inf-child.c (inf_child_fileio_fstat): Likewise.
8673 (inf_child_target): Initialize to_fileio_fstat.
8674 * remote.c (init_remote_ops): Likewise.
8675
d11916aa
SS
86762015-04-01 Sasha Smundak <asmundak@google.com>
8677
8678 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8679 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8680 (py-unwind.o): New recipe.
8681 * NEWS: mention Python frame unwinding.
8682 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8683 gdb/unwinder.py and gdb/command/unwinder.py
8684 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8685 list.
8686 (execute_unwinders): New function.
8687 * python/lib/gdb/command/unwinders.py: New file.
8688 * python/lib/gdb/unwinder.py: New file.
8689 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8690 (objfpy_dealloc): Decrement frame_unwinders reference count.
8691 (objfpy_initialize): Create frame_unwinders list.
8692 (objfpy_get_frame_unwinders): New function.
8693 (objfpy_set_frame_unwinders): Ditto.
8694 (objfile_getset): Add frame_unwinders attribute to Objfile.
8695 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8696 (pspy_dealloc): Decrement frame_unwinders reference count.
8697 (pspy_initialize): Create frame_unwinders list.
8698 (pspy_get_frame_unwinders): New function.
8699 (pspy_set_frame_unwinders): Ditto.
8700 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8701 * python/py-unwind.c: New file.
8702 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8703 (objpy_get_frame_unwinders): New prototype.
8704 (gdbpy_initialize_unwind): New prototype.
8705 * python/python.c (gdbpy_apply_type_printers): Call
8706 gdbpy_initialize_unwind.
8707
6b403daa
PA
87082015-04-01 Pedro Alves <palves@redhat.com>
8709
8710 * infrun.c (resume): Check currently_stepping after clearing
8711 stepped_breakpoint, not before.
8712
1176ecec
PA
87132015-04-01 Pedro Alves <palves@redhat.com>
8714
8715 * infrun.c (print_target_wait_results): Print all the ptid
8716 elements.
8717
de1fe8c8
PA
87182015-04-01 Pedro Alves <palves@redhat.com>
8719
8720 * infrun.c (keep_going): Also discard cleanups if inserting
8721 breakpoints fails.
8722
e6f5c25b
PA
87232015-04-01 Pedro Alves <palves@redhat.com>
8724
8725 * infrun.c (wait_for_inferior): Install the
8726 finish_thread_state_cleanup cleanup across the whole function, not
8727 just around handle_inferior_event.
8728
1ac806b8
PA
87292015-04-01 Pedro Alves <palves@redhat.com>
8730
8731 * infrun.c (resume) <step past permanent breakpoint>: Use
8732 do_target_resume.
8733
2ee52aa4
PA
87342015-04-01 Pedro Alves <palves@redhat.com>
8735
8736 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8737
5445da1b
PMR
87382015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8739
8740 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8741
4eec2deb
PA
87422015-04-01 Pedro Alves <palves@redhat.com>
8743
8744 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8745 list if it was marked exited.
8746
afa59b79
L
87472015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8748
8749 * configure: Regenerated.
8750
df8411da
SDJ
87512015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8752 Jan Kratochvil <jan.kratochvil@redhat.com>
8753 Oleg Nesterov <oleg@redhat.com>
8754
8755 PR corefiles/16092
8756 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8757 New enum identifying the various options of the coredump_filter
8758 file.
8759 (struct smaps_vmflags): New struct.
8760 (use_coredump_filter): New variable.
8761 (decode_vmflags): New function.
8762 (mapping_is_anonymous_p): Likewise.
8763 (dump_mapping_p): Likewise.
8764 (linux_find_memory_regions_full): New variables
8765 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8766 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
8767 parsing of its information. Implement memory mapping filtering
8768 based on its contents.
8769 (show_use_coredump_filter): New function.
8770 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8771 * NEWS: Mention the possibility of using the
8772 '/proc/PID/coredump_filter' file when generating a corefile.
8773 Mention new command 'set use-coredump-filter'.
8774
416f679e
SDJ
87752015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8776
8777 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8778 read_memory_unsigned_integer.
8779
711a72d3
L
87802015-03-31 H.J. Lu <hongjiu.lu@intel.com>
8781
8782 * Makefile.in (ZLIB): New.
8783 (ZLIBINC): Likewise.
8784 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8785 (CLIBS): Add $(ZLIB).
8786 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8787 Add -lz to LIBS.
8788 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8789 * top.c (print_gdb_configuration): Remove --with-zlib and
8790 --without-zlib.
8791 * config.in: Regenerated.
8792 * configure: Likewise.
8793
d33279b3
AT
87942015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8795
8796 * NEWS: Mention info os cpus support.
8797 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8798 (struct osdata_type): Add cpus entry, reorder the entries in
8799 alphabetical order.
8800
71b30f27
MK
88012015-03-31 Matthias Klose <doko@ubuntu.com>
8802
8803 * compile/compile.c (compile_to_object): Allow triplets with or
8804 without vendor set.
8805
13ce9222
DE
88062015-03-30 Doug Evans <dje@google.com>
8807
8808 PR c++/18141
8809 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8810 klass in VAR_DOMAIN.
8811
20f796c9
GB
88122015-03-30 Gary Benson <gbenson@redhat.com>
8813
8814 * remote.c (remote_mourn_1): Remove function. Update all callers
8815 to use remote_mourn.
8816 (extended_remote_mourn_1): Remove function. Update all callers
8817 to use extended_remote_mourn.
8818 (extended_remote_attach_1): Remove function. Update all callers
8819 to use extended_remote_attach.
8820
49d45b20
JB
88212015-03-28 James Bowman <james.bowman@ftdichip.com>
8822
8823 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8824 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8825 (ALLDEPFILES): Add ft32-tdep.c.
8826 * configure.tgt: Add FT32 entry.
8827 * ft32-tdep.c: New file, FT32 target-dependent code.
8828 * ft32-tdep.h: New file, FT32 target-dependent code.
8829
1c4ff080
JK
88302015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8831
8832 Revert:
8833 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8834 Code cleanup.
8835 * printcmd.c (print_command_1): Move expr variable scope.
8836
79498702
JB
88372015-03-27 Joel Brobecker <brobecker@adacore.com>
8838
8839 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
8840
ce9c0ca1
AK
88412015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
8842
8843 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
8844 sections.
8845
429e1e81
JB
88462015-03-26 Joel Brobecker <brobecker@adacore.com>
8847
8848 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
8849 exception raised while parsing the probe arguments.
8850 Force parsing to be done using the C language parser.
8851 * expression.h (parse_expression_with_language): Declare.
8852 * parse.c (parse_expression_with_language): New function.
8853
4593441b
JT
88542015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
8855
8856 * MAINTAINERS (Write After Approval): Add "Jon Turney".
8857
ff908ebf
AW
88582015-03-26 Andy Wingo <wingo@igalia.com>
8859
8860 PR symtab/18148
8861 * dwarf2read.c (struct partial_die_info): Add has_const_value
8862 member.
8863 (add_partial_symbol): Don't punt on symbols that have const_value
8864 attributes.
8865 (read_partial_die): Detect DW_AT_const_value.
8866
f30d5c78
JK
88672015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8868
8869 Code cleanup.
8870 * printcmd.c (print_command_1): Move expr variable scope.
8871
8d89f51a
JK
88722015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8873
8874 Code cleanup.
8875 * printcmd.c (validate_format): Make the parameter cmdname const.
8876
0b736949
DB
88772015-03-26 Don Breazeal <donb@codesourcery.com>
8878
8879 * remote.c (_initialize_remote): Update comment.
8880
20d35291
PA
88812015-03-26 Pedro Alves <palves@redhat.com>
8882 Jon TURNEY <jon.turney@dronecode.org.uk>
8883
8884 * coffread.c (coff_symfile_read): When constructing the name of an
8885 import stub symbol from import symbol for amd64, only skip the
8886 char after _imp_ if the target is underscored (like i386) and the
8887 char is indeed the target's leading char.
8888
6a3753b3
PA
88892015-03-25 Pedro Alves <palves@redhat.com>
8890
8891 * target.h <to_async>: Replace 'callback' and 'context' parameters
8892 with boolean 'enable' parameter.
8893 (target_async): Replace CALLBACK and CONTEXT parameters with
8894 boolean ENABLE parameter.
8895 * inf-loop.c (inferior_event_handler): Adjust.
8896 * linux-nat.c (linux_nat_attach, linux_nat_resume)
8897 (linux_nat_resume): Adjust.
8898 (async_client_callback, async_client_context): Delete.
8899 (handle_target_event): Call inferior_event_handler directly.
8900 (linux_nat_async): Replace 'callback' and 'context' parameters
8901 with boolean 'enable' parameter. Adjust. Remove references to
8902 async_client_callback and async_client_context.
8903 (linux_nat_close): Adjust.
8904 * record-btrace.c (record_btrace_async): Replace 'callback' and
8905 'context' parameters with boolean 'enable' parameter. Adjust.
8906 (record_btrace_resume): Adjust.
8907 * record-full.c (record_full_async): Replace 'callback' and
8908 'context' parameters with boolean 'enable' parameter. Adjust.
8909 (record_full_resume, record_full_core_resume): Adjust.
8910 * remote.c (struct remote_state) <async_client_callback,
8911 async_client_context>: Delete fields.
8912 (remote_start_remote, extended_remote_attach_1, remote_resume)
8913 (extended_remote_create_inferior): Adjust.
8914 (remote_async_serial_handler): Call inferior_event_handler
8915 directly.
8916 (remote_async): Replace 'callback' and 'context' parameters with
8917 boolean 'enable' parameter. Adjust.
8918 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
8919 Adjust.
8920 * target-delegates.c: Regenerate.
8921
1c4b552b
GB
89222015-03-25 Gary Benson <gbenson@redhat.com>
8923 Pedro Alves <palves@redhat.com>
8924
8925 * target.c (fileio_ft_t): New typedef, define object vector.
8926 (fileio_fhandles): New static variable.
8927 (is_closed_fileio_fh): New macro.
8928 (lowest_closed_fd): New static variable.
8929 (acquire_fileio_fd): New function.
8930 (release_fileio_fd): Likewise.
8931 (fileio_fd_to_fh): New macro.
8932 (target_fileio_open): Wrap the file descriptor on success.
8933 (target_fileio_pwrite): Updated to use wrapped file descriptor.
8934 (target_fileio_pread): Likewise.
8935 (target_fileio_close): Likewise.
8936
a25d8bf9
PA
89372015-03-24 Pedro Alves <palves@redhat.com>
8938
8939 * thread.c (thread_apply_all_command): Take exited threads into
8940 account.
8941
44a1ee51
PA
89422015-03-24 Pedro Alves <palves@redhat.com>
8943
8944 * infrun.c (resume, proceed): Mention
8945 switch_back_to_stepped_thread, not switch_back_to_stepping.
8946
f3263aa4
PA
89472015-03-24 Pedro Alves <palves@redhat.com>
8948
8949 * infrun.c (user_visible_resume_ptid): Rewrite going from
8950 most-locked to unlocked instead of the opposite. Move comment ...
8951 * infrun.h (user_visible_resume_ptid): ... here.
8952
2bf6fb9d
PA
89532015-03-24 Pedro Alves <palves@redhat.com>
8954
8955 * linux-nat.c (linux_nat_resume): Output debug logs before trying
8956 to resume the event lwp. Use the lwp's ptid instead of the passed
8957 in (maybe wildcard) ptid.
8958 (stop_wait_callback): Tweak debug log output.
8959 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
8960 TRAP_TRACE.
8961 (linux_nat_filter_event): In debug output, distinguish a
8962 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
8963 before trying to resume the lwp.
8964
283a9958
JB
89652015-03-24 Joel Brobecker <brobecker@adacore.com>
8966
8967 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
8968 pointer indirection.
8969 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
8970 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
8971
93a8e227
JB
89722015-03-24 Joel Brobecker <brobecker@adacore.com>
8973
8974 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
8975 Renames DYN_ATTR_DATA_LOCATION.
8976 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
8977 DYN_ATTR_DATA_LOCATION.
8978 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
8979 instead of DYN_ATTR_DATA_LOCATION.
8980
64ce06e4
PA
89812015-03-24 Pedro Alves <palves@redhat.com>
8982
8983 * breakpoint.c (until_break_command): Adjust call to proceed.
8984 * gdbthread.h (struct thread_control_state) <stepping_command>:
8985 New field.
8986 * infcall.c (run_inferior_call): Adjust call to proceed.
8987 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
8988 Adjust calls to proceed.
8989 (set_step_frame): Set the current thread's step_start_function
8990 here.
8991 (step_once): Adjust calls to proceed.
8992 (jump_command, signal_command, until_next_command)
8993 (finish_backward, finish_forward, proceed_after_attach_callback)
8994 (attach_command_post_wait): Adjust calls to proceed.
8995 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
8996 (do_target_resume): New function, factored out from ...
8997 (resume): ... here. Remove 'step' parameter. Instead, check
8998 currently_stepping to determine whether the thread should be
8999 single-stepped.
9000 (proceed): Remove 'step' parameter and don't set the thread's
9001 step_start_function here. Adjust call to 'resume'.
9002 (handle_inferior_event): Adjust calls to 'resume'.
9003 (switch_back_to_stepped_thread): Use do_target_resume instead of
9004 'resume'.
9005 (keep_going): Adjust calls to 'resume'.
9006 * infrun.h (proceed): Remove 'step' parameter.
9007 (resume): Likewise.
9008 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9009 'resume'.
9010 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9011
856e7dd6
PA
90122015-03-24 Pedro Alves <palves@redhat.com>
9013
9014 * gdbthread.h (struct thread_control_state) <stepping_command>:
9015 New field.
9016 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9017 the thread's stepping_command field.
9018 * infrun.c (resume): Check the thread's stepping_command flag to
9019 determine which threads should be resumed. Rename 'entry_step'
9020 local to user_step.
9021 (clear_proceed_status_thread): Clear 'stepping_command'.
9022 (schedlock_applies): Change parameter type to struct thread_info
9023 pointer. Adjust.
9024 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9025 (switch_back_to_stepped_thread): Adjust calls to
9026 'schedlock_applies'.
9027 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9028
885eeb5b
PA
90292015-03-24 Pedro Alves <palves@redhat.com>
9030
9031 * infrun.c (step_start_function): Delete and ...
9032 * gdbthread.h (struct thread_control_state) <step_start_function>:
9033 ... now a field here.
9034 * infrun.c (clear_proceed_status_thread): Clear the thread's
9035 step_start_function.
9036 (proceed, process_event_stop_test, print_stop_event): Adjust.
9037
3333f03a
PA
90382015-03-24 Pedro Alves <palves@redhat.com>
9039
9040 * infrun.c (proceed): No longer handle negative step.
9041
369f6daa
GB
90422015-03-24 Gary Benson <gbenson@redhat.com>
9043
9044 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9045 (x86_linux_prepare_to_resume): Likewise.
9046 * x86-linux-nat.c (x86_linux_new_thread):
9047 Moved to nat/x86-linux.c.
9048 (x86_linux_prepare_to_resume): Likewise.
9049 * nat/x86-linux.c (x86_linux_new_thread): New function.
9050 (x86_linux_prepare_to_resume): Likewise.
9051
8e5d4070
GB
90522015-03-24 Gary Benson <gbenson@redhat.com>
9053
9054 * nat/x86-linux-dregs.h: New file.
9055 * nat/x86-linux-dregs.c: Likewise.
9056 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9057 (x86-linux-dregs.o): New rule.
9058 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9059 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9060 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9061 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9062 (x86_linux_dr_get): Likewise.
9063 (x86_linux_dr_set): Likewise.
9064 (x86_linux_dr_get_addr): Likewise.
9065 (x86_linux_dr_get_control): Likewise.
9066 (x86_linux_dr_get_status): Likewise.
9067 (update_debug_registers_callback): Likewise.
9068 (x86_linux_dr_set_control): Likewise.
9069 (x86_linux_dr_set_addr): Likewise.
9070 (x86_linux_update_debug_registers): Likewise.
9071
2b95d440
GB
90722015-03-24 Gary Benson <gbenson@redhat.com>
9073
9074 * x86-linux-nat.c (x86_linux_update_debug_registers):
9075 New function, factored out from...
9076 (x86_linux_prepare_to_resume): ...this.
9077
14b0bc68
GB
90782015-03-24 Gary Benson <gbenson@redhat.com>
9079
9080 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9081 (x86_linux_dr_set): Likewise.
9082 (x86_linux_dr_get_addr): Likewise.
9083 (x86_linux_dr_get_control): Likewise.
9084 (x86_linux_dr_get_status): Likewise.
9085 (update_debug_registers_callback): Likewise.
9086 (x86_linux_dr_set_control): Likewise.
9087 (x86_linux_dr_set_addr): Likewise.
9088 (x86_linux_prepare_to_resume): Likewise.
9089 (x86_linux_new_thread): Likewise.
9090
5dfe6ca8
GB
90912015-03-24 Gary Benson <gbenson@redhat.com>
9092
9093 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9094 (x86_linux_new_thread): Rename argument.
9095
4b134ca1
GB
90962015-03-24 Gary Benson <gbenson@redhat.com>
9097
9098 * nat/x86-linux.h: New file.
9099 * nat/x86-linux.c: Likewise.
9100 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9101 (x86-linux.o): New rule.
9102 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9103 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9104 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9105 (lwp_set_arch_private_info): New declaration.
9106 (lwp_arch_private_info): Likewise.
9107 * linux-nat.c (lwp_set_arch_private_info): New function.
9108 (lwp_arch_private_info): Likewise.
9109 * x86-linux-nat.c: Include nat/x86-linux.h.
9110 (arch_lwp_info): Removed structure.
9111 (update_debug_registers_callback):
9112 Use lwp_set_debug_registers_changed.
9113 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9114 and lwp_set_debug_registers_changed.
9115 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9116
cff068da
GB
91172015-03-24 Gary Benson <gbenson@redhat.com>
9118
9119 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9120 (lwp_is_stopped): Likewise.
9121 (lwp_stop_reason): Likewise.
9122 * linux-nat.c (ptid_of_lwp): New function.
9123 (lwp_is_stopped): Likewise.
9124 (lwp_is_stopped_by_watchpoint): Likewise.
9125 * x86-linux-nat.c (update_debug_registers_callback):
9126 Use lwp_is_stopped.
9127 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9128 lwp_stop_reason.
9129
b2f7c7e8
GB
91302015-03-24 Gary Benson <gbenson@redhat.com>
9131
9132 * linux-nat.h (linux_stop_lwp): Move declaration to...
9133 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9134
6d4ee8c6
GB
91352015-03-24 Gary Benson <gbenson@redhat.com>
9136
9137 * linux-nat.h: Include nat/linux-nat.h.
9138 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9139 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9140 (iterate_over_lwps_ftype): New typedef.
9141 (iterate_over_lwps): New declaration.
9142 * linux-nat.h (iterate_over_lwps): Update comment. Use
9143 iterate_over_lwps_ftype. Update callback return value check.
9144
70a0bb6b
GB
91452015-03-24 Gary Benson <gbenson@redhat.com>
9146
9147 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9148 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9149
7b669087
GB
91502015-03-24 Gary Benson <gbenson@redhat.com>
9151
9152 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9153 * linux-nat.c (current_lwp_ptid): New function.
9154 * x86-linux-nat.c: Include nat/linux-nat.h.
9155 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9156 (x86_linux_dr_get_control): Likewise.
9157 (x86_linux_dr_get_status): Likewise.
9158 (x86_linux_dr_set_control): Likewise.
9159 (x86_linux_dr_set_addr): Likewise.
9160
15630549
AT
91612015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9162
9163 PR breakpoints/16466
9164 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9165
8a4506c0
JB
91662015-03-23 Joel Brobecker <brobecker@adacore.com>
9167
9168 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9169 * ser-unix.c (hardwire_setparity): Likewise.
9170
236af5e3
YG
91712015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9172
9173 * NEWS: Mention set/show serial parity command.
9174 * monitor.c (monitor_open): Call serial_setparity.
9175 * remote.c (remote_open_1): Likewise.
9176 * ser-base.c (ser_base_serparity): New function.
9177 * ser-base.h (ser_base_setparity): Add declaration.
9178 * ser-go32.c (dos_ops): Set "setparity" field.
9179 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9180 state.Parity.
9181 (ser_windows_setparity): New function.
9182 (hardwire_ops): Add ser_windows_setparity.
9183 (tty_ops): Add NULL for setparity field.
9184 (pipe_ops): Add ser_base_setparity.
9185 (tcp_ops): Likewise.
9186 * ser-pipe.c (pipe_ops): Likewise.
9187 * ser-tcp.c (tcp_ops): Likewise.
9188 * ser-unix.c (hardwire_setparity): Add declaration.
9189 (hardwire_raw): Don't reset PARENB flag.
9190 (hardwire_setparity): New function.
9191 (hardwire_ops): Add hardwire_setparity.
9192 * serial.c (serial_setparity): New function.
9193 (serial_parity): New global.
9194 (parity_none, parity_odd, parity_even, parity_enums, parity):
9195 New static globals.
9196 (set_parity): New function.
9197 (_initialize_serial): Add set/show serial parity commands.
9198 * serial.h (GDBPARITY_NONE): Define.
9199 (GDBPARITY_ODD): Define.
9200 (GDBPARITY_EVEN): Define.
9201 (serial_setparity) Add declaration.
9202 (struct serial_ops): Add setparity field.
9203 * target.h (serial_parity): Add declaration.
9204
32b40af9
KS
92052015-03-23 Keith Seitz <keiths@redhat.com>
9206
9207 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9208
693dca06
KS
92092015-03-23 Keith Seitz <keiths@redhat.com>
9210
9211 * breakpoint.c (parse_breakpoint_sals): Use
9212 linespec_lexer_lex_keyword to ascertain if the user specified
9213 a NULL location.
9214 * linespec.c [IF_KEYWORD_INDEX]: Define.
9215 (linespec_lexer_lex_keyword): Export.
9216 (struct ls_parser) <keyword_ok>: Remove.
9217 A keyword is only a keyword if not followed by another keyword.
9218 (linespec_lexer_lex_one): Remove keyword_ok handling.
9219 Add comment explaining why the parsing stream is not advanced
9220 when a keyword is seen.
9221 (parse_linespec): Remove parser->keyword_ok.
9222 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9223
7e993ebf
KS
92242015-03-23 Keith Seitz <keiths@redhat.com>
9225
9226 PR gdb/18021
9227 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9228 if we find a static method with DW_AT_vtable_elem_location.
9229
b1a0f704
EZ
92302015-03-21 Eli Zaretskii <eliz@gnu.org>
9231
9232 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9233 before the second loop, to avoid undefined behavior. Reported by
9234 Anton Blanchard <anton@samba.org>.
9235
d9823cbb
KB
92362015-03-20 Keven Boell <keven.boell@intel.com>
9237
9238 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9239 data_location usage to linked list.
9240 (resolve_dynamic_type_internal): Adapt data_location to
9241 linked list.
9242 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9243 (copy_type_recursive, copy_type): Add copy of linked list.
9244 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9245 (struct dynamic_prop_list): New struct.
9246 * dwarf2read.c (set_die_type): Set data_location data.
9247
2e7bf1d7
PA
92482015-03-20 Pedro Alves <palves@redhat.com>
9249
9250 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9251 inner block and make it const.
9252 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9253
7a26bd4d
PA
92542015-03-20 Pedro Alves <palves@redhat.com>
9255
9256 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9257 * breakpoint.h (set_breakpoint_condition): Update declaration.
9258
cd46431b
PA
92592015-03-20 Pedro Alves <palves@redhat.com>
9260
9261 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9262
e28566f7
PA
92632015-03-20 Pedro Alves <palves@redhat.com>
9264
9265 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9266
f6fc92f6
PA
92672015-03-20 Pedro Alves <palves@redhat.com>
9268
9269 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9270
c32ed3ef
PA
92712015-03-20 Pedro Alves <palves@redhat.com>
9272
9273 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9274 (nto_init_solib_absolute_prefix): Likewise.
9275
53e78085
PA
92762015-03-20 Pedro Alves <palves@redhat.com>
9277
9278 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9279 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9280
bc23328c
JK
92812015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9282
9283 * config/djgpp/README: Remove gdb.hp.
9284
e8ffc436
YQ
92852015-03-20 Yao Qi <yao.qi@linaro.org>
9286
9287 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9288 set_gdbarch_cannot_step_breakpoint.
9289
23f238d3
PA
92902015-03-19 Pedro Alves <palves@redhat.com>
9291
9292 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9293 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9294 instead call perror_with_name.
9295 (check_ptrace_stopped_lwp_gone): New function.
9296 (linux_resume_one_lwp): Reimplement as wrapper around
9297 linux_resume_one_lwp_throw that swallows errors if the LWP is
9298 gone.
9299 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9300 swallows errors if the LWP is gone. Use
9301 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9302
eb54c8bf
PA
93032015-03-19 Pedro Alves <palves@redhat.com>
9304
9305 * linux-nat.c (status_callback): Return early if the LWP has no
9306 status pending.
9307
b90fc188
PA
93082015-03-19 Pedro Alves <palves@redhat.com>
9309
9310 * linux-nat.c (select_event_lwp_callback): Update comment to no
9311 longer mention SIGTRAP.
9312
670f82d4
TG
93132015-03-18 Tristan Gingold <gingold@adacore.com>
9314
72f4393d
L
9315 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9316 redirection code to ...
9317 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9318 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9319
464b0089
GB
93202015-03-18 Gary Benson <gbenson@redhat.com>
9321
9322 (remote_protocol_features): Remove the "vFile:fstat" feature.
9323 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9324
f68f11b7
YQ
93252015-03-11 Yao Qi <yao.qi@linaro.org>
9326
9327 PR tdep/18107
9328 * aarch64-linux-tdep.c: Include xml-syscall.h
9329 (aarch64_linux_get_syscall_number): New function.
9330 (aarch64_linux_init_abi): Call
9331 set_gdbarch_get_syscall_number.
9332 * syscalls/aarch64-linux.xml: New file.
9333
393bd0c0
YG
93342015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9335
9336 * ser-base.h (ser_base_setstopbits): Change second argument name
9337 from "rate" to "num".
9338
7f3647e2
GB
93392015-03-17 Gary Benson <gbenson@redhat.com>
9340 Luke Allardyce <lukeallardyce@gmail.com>
9341
9342 PR gdb/18131
9343 * common/common-remote-fileio.h (sys/stat.h): New include.
9344 (stuct stat): Remove forward declaration.
9345
3ce5b6e2
JB
93462015-03-16 John Baldwin <jhb@FreeBSD.org>
9347
9348 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9349 before writing core register notes.
9350
d053f6be
YZ
93512015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9352 Pedro Alves <palves@redhat.com>
9353
9354 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9355 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9356 (tgoto): Wrap with extern "C".
9357
b1a921c8
PA
93582015-03-16 Pedro Alves <palves@redhat.com>
9359 Yuanhui Zhang <asmwarrior@gmail.com>
9360
9361 * stub-termcap.c (tputs): Change prototype.
9362
876d1cd7
YZ
93632015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9364 Pedro Alves <palves@redhat.com>
9365
9366 * windows-nat.c (struct thread_info_struct): Rename to ...
9367 (struct windows_thread_info_struct): ... this.
9368 (thread_info): Rename to ...
9369 (windows_thread_info): ... this.
9370 All users updated.
9371
0800b440
JK
93722015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9373 Pedro Alves <palves@redhat.com>
9374
9375 * NEWS: New Removed targets and native configurations.
9376
93772015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
9378
9379 Remove HPUX.
9380 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9381 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9382 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9383 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9384 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9385 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9386 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9387 hppa-hpux-tdep.c.
9388 * config/ia64/hpux.mh: Remove file.
9389 * config/pa/hpux.mh: Remove file.
9390 * configure: Rebuilt.
9391 * configure.ac (dlgetmodinfo, somread.o): Remove.
9392 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9393 (ia64-*-hpux*): Remove its float format exception.
9394 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9395 * hppa-hpux-nat.c: Remove file.
9396 * hppa-hpux-tdep.c: Remove file.
9397 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9398 Move them here from hppa-tdep.h
9399 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9400 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9401 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9402 Move them to hppa-tdep.c.
9403 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9404 declarations.
9405 * ia64-hpux-nat.c: Remove file.
9406 * ia64-hpux-tdep.c: Remove file.
9407 * ia64-hpux-tdep.h: Remove file.
9408 * inf-ttrace.c: Remove file.
9409 * inf-ttrace.h: Remove file.
9410 * solib-ia64-hpux.c: Remove file.
9411 * solib-ia64-hpux.h: Remove file.
9412 * solib-pa64.c: Remove file.
9413 * solib-pa64.h: Remove file.
9414 * solib-som.c: Remove file.
9415 * solib-som.h: Remove file.
9416 * somread.c: Remove file.
9417
25268153
JB
94182015-03-13 John Baldwin <jhb@FreeBSD.org>
9419
9420 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9421 * config.in: Regenerate.
9422 * configure: Regenerate.
9423 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 9424 define.
25268153
JB
9425 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9426 enumerate memory regions if present.
9427
773eacf5
JB
94282015-03-13 John Baldwin <jhb@FreeBSD.org>
9429
9430 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9431 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9432 expressions.
9433 (i386fbsd_sigtramp_p): Likewise.
9434
01b6bdb0
JB
94352015-03-12 John Baldwin <jhb@FreeBSD.org>
9436
9437 * MAINTAINERS (Write After Approval): Add John Baldwin.
9438
811a659a
GB
94392015-03-12 Gary Benson <gbenson@redhat.com>
9440
9441 * solib.c (_initialize_solib): Make "set/show sysroot" use
9442 add_setshow_optional_filename_cmd so it can be restored to
9443 empty after being set.
9444
10304ef3
SDJ
94452015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9446
9447 * Makefile.in (SFILES): New source break-catch-syscall.c.
9448 (COMMON_OBS): New object break-catch-syscall.o.
9449 * break-catch-syscall.c: New file.
9450 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9451 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9452 (struct syscall_catchpoint): Likewise.
9453 (dtor_catch_syscall): Likewise.
9454 (catch_syscall_inferior_data): Likewise.
9455 (struct catch_syscall_inferior_data): Likewise.
9456 (get_catch_syscall_inferior_data): Likewise.
9457 (catch_syscall_inferior_data_cleanup): Likewise.
9458 (insert_catch_syscall): Likewise.
9459 (remove_catch_syscall): Likewise.
9460 (breakpoint_hit_catch_syscall): Likewise.
9461 (print_it_catch_syscall): Likewise.
9462 (print_one_catch_syscall): Likewise.
9463 (print_mention_catch_syscall): Likewise.
9464 (print_recreate_catch_syscall): Likewise.
9465 (catch_syscall_breakpoint_ops): Likewise.
9466 (syscall_catchpoint_p): Likewise.
9467 (create_syscall_event_catchpoint): Likewise.
9468 (catch_syscall_split_args): Likewise.
9469 (catch_syscall_command_1): Likewise.
9470 (is_syscall_catchpoint_enabled): Likewise.
9471 (catch_syscall_enabled): Likewise.
9472 (catching_syscall_number): Likewise.
9473 (catch_syscall_completer): Likewise.
9474 (clear_syscall_counts): Likewise.
9475 (initialize_breakpoint_ops): Move initialization of syscall
9476 catchpoints to break-catch-syscall.c.
9477 (_initialize_breakpoint): Move code related to syscall catchpoints
9478 to break-catch-syscall.c.
9479
badd37ce
SDJ
94802015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9481
9482 * breakpoint.c (breakpoint_find_if): New function.
9483 * breakpoint.h (breakpoint_find_if): New prototype.
9484
0a93529c
GB
94852015-03-11 Gary Benson <gbenson@redhat.com>
9486
9487 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9488 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9489 (remote_fileio_to_host_ulong): Likewise.
9490 (remote_fileio_to_host_mode): Likewise.
9491 (remote_fileio_to_host_time): Likewise.
9492 (remote_fileio_to_host_stat): Likewise.
9493 * remote.c (PACKET_vFile_fstat): New enum value.
9494 (remote_protocol_features): Register the "vFile:fstat" feature.
9495 (remote_hostio_fstat): New function.
9496 (remote_bfd_iovec_stat): Use the above.
9497 (_initialize_remote): Register new "set/show remote
9498 hostio-fstat-packet" command.
9499 * symfile.c (separate_debug_file_exists): Update comment.
9500 * NEWS: Announce new vFile:fstat packet.
9501
791c0056
GB
95022015-03-11 Gary Benson <gbenson@redhat.com>
9503
9504 * common/common-remote-fileio.h: New file.
9505 * common/common-remote-fileio.c: Likewise.
9506 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9507 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9508 (COMMON_OBS): Add common-remote-fileio.o.
9509 (common-remote-fileio.o): New rule.
9510 * remote-fileio.h (common-remote-fileio.h): New include.
9511 * remote-fileio.c (gdb/fileio.h): Do not include.
9512 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9513 (remote_fileio_to_fio_uint): Likewise.
9514 (remote_fileio_to_fio_time): Likewise.
9515 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9516 (remote_fileio_to_fio_mode): Likewise.
9517 (remote_fileio_to_fio_ulong): Likewise.
9518 (remote_fileio_to_fio_stat): Likewise.
9519
1390d0ef
AW
95202015-03-11 Andy Wingo <wingo@igalia.com>
9521
9522 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9523 we were checking the cached type, not the cached dynamic type.
9524
84a4591a
AW
95252015-03-11 Andy Wingo <wingo@igalia.com>
9526
9527 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9528 other strings, as these are on the GC'd heap, and will be
9529 collected along with the smob.
9530
85642ba0
AW
95312015-03-11 Andy Wingo <wingo@igalia.com>
9532
9533 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9534 (objfile_functions): Bind gdbscm_objfile_progspace to
9535 objfile-progspace.
9536 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9537
92fab5a6
AW
95382015-03-11 Andy Wingo <wingo@igalia.com>
9539
9540 * guile/guile.c (_initialize_guile): Disable automatic
9541 finalization, if Guile offers us that possibility.
9542 * guile/guile.c (call_initialize_gdb_module):
9543 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9544 finalizers in appropriate places.
9545 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9546 scm_set_automatic_finalization_enabled.
9547 * configure: Regenerated.
9548
f054145e
AA
95492015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9550
9551 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9552 SAL, if possible.
9553
18396193
AA
95542015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9555
9556 * s390-linux-nat.c (struct arch_lwp_info): New.
9557 (s390_fix_watch_points): Rename to...
9558 (s390_prepare_to_resume): ...this. Skip the PER info update
9559 unless the watch points have changed.
9560 (s390_refresh_per_info, s390_new_thread): New functions.
9561 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9562 s390_fix_watch_points.
9563 (s390_remove_watchpoint): Likewise.
9564 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9565 Register s390_prepare_to_resume.
9566
9eb1356e
PA
95672015-03-09 Pedro Alves <palves@redhat.com>
9568
9569 Revert:
9570 2015-03-07 Pedro Alves <palves@redhat.com>
9571 * common/gdb_socket.h: New file.
9572 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9573 sys/socket.h.
9574 (net_open): Use union gdb_sockaddr_u.
9575
aac331e4
PA
95762015-03-07 Pedro Alves <palves@redhat.com>
9577
9578 * configure.ac (build_warnings): Move -Wmissing-prototypes
9579 -Wdeclaration-after-statement -Wmissing-parameter-type
9580 -Wold-style-declaration -Wold-style-definition to the C-specific
9581 set.
9582 * configure: Regenerate.
9583
366c75fc
PA
95842015-03-07 Pedro Alves <palves@redhat.com>
9585
9586 * common/gdb_socket.h: New file.
9587 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9588 sys/socket.h.
9589 (net_open): Use union gdb_sockaddr_u.
9590
72df25b2
PA
95912015-03-07 Pedro Alves <palves@redhat.com>
9592
9593 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9594 (exceptions_state_mc_action_iter)
9595 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9596 Don't define.
9597 [__cplusplus] (try_scope_depth): New global.
9598 [__cplusplus] (exception_try_scope_entry)
9599 (exception_try_scope_exit, gdb_exception_sliced_copy)
9600 (exception_rethrow): New functions.
9601 (throw_exception): In C++ mode, throw
9602 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9603 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9604 (throw_it): In C++ mode, use try_scope_depth.
9605 * common/common-exceptions.h [!__cplusplus]
9606 (exceptions_state_mc_action_iter)
9607 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9608 Don't declare.
9609 [__cplusplus] (exception_try_scope_entry)
9610 (exception_try_scope_exit, exception_rethrow): Declare.
9611 [__cplusplus] (struct exception_try_scope): New struct.
9612 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9613 C++ exceptions.
9614 (struct gdb_exception_RETURN_MASK_ALL)
9615 (struct gdb_exception_RETURN_MASK_ERROR)
9616 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9617
284e6217
PA
96182015-03-07 Pedro Alves <palves@redhat.com>
9619
9620 * main.c (handle_command_errors): Remove volatile qualifier from
9621 parameter.
9622
6c63c96a
PA
96232015-03-07 Pedro Alves <palves@redhat.com>
9624
9625 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9626 TRY and CATCH.
9627 * gdbtypes.c (safe_parse_type): Remove empty line.
9628 (types_deeply_equal):
9629 * guile/scm-frame.c (gdbscm_frame_name):
9630 * linux-thread-db.c (find_new_threads_once):
9631 * python/py-breakpoint.c (bppy_get_commands):
9632 * record-btrace.c (record_btrace_insert_breakpoint)
9633 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9634 (record_btrace_start_replaying): Adjust to avoid code between TRY
9635 and CATCH.
9636
492d29ea
PA
96372015-03-07 Pedro Alves <palves@redhat.com>
9638
9639 * common/common-exceptions.c (struct catcher) <exception>: No
9640 longer a pointer to volatile exception. Now an exception value.
9641 <mask>: Delete field.
9642 (exceptions_state_mc_init): Remove all parameters. Adjust.
9643 (exceptions_state_mc): No longer pop the catcher here.
9644 (exceptions_state_mc_catch): New function.
9645 (throw_exception): Adjust.
9646 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9647 all parameters.
9648 (exceptions_state_mc_catch): Declare.
9649 (TRY_CATCH): Rename to ...
9650 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9651 (CATCH, END_CATCH): New.
9652 All callers adjusted.
9653
ece957c8
TT
96542015-03-07 Tom Tromey <tromey@redhat.com>
9655
9656 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9657
7556d4a4
PA
96582015-03-07 Pedro Alves <palves@redhat.com>
9659
9660 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9661 (amd64_epilogue_frame_cache): Normal exception handling code.
9662 * break-catch-throw.c (check_status_exception_catchpoint)
9663 (re_set_exception_catchpoint): Ditto.
9664 * cli/cli-interp.c (safe_execute_command):
9665 * cli/cli-script.c (script_from_file): Ditto.
9666 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9667 Ditto.
9668 * compile/compile-object-run.c (compile_object_run): Ditto.
9669 * cp-abi.c (baseclass_offset): Ditto.
9670 * cp-valprint.c (cp_print_value): Ditto.
9671 * exceptions.c (catch_exceptions_with_msg):
9672 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9673 * frame.c (get_frame_address_in_block_if_available): Ditto.
9674 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9675 (i386_sigtramp_frame_cache): Ditto.
9676 * infcmd.c (post_create_inferior): Ditto.
9677 * linespec.c (parse_linespec, find_linespec_symbols):
9678 * p-valprint.c (pascal_object_print_value): Ditto.
9679 * parse.c (parse_expression_for_completion): Ditto.
9680 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9681 * remote.c (remote_get_noisy_reply): Ditto.
9682 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9683 * solib-svr4.c (solib_svr4_r_map): Ditto.
9684
f873665f 96852015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
9686
9687 * common/common-utils.h (startswith): New inline function.
9688 All places where this logic was used updated to use the above.
9689
68901c4d
PA
96902015-03-05 Pedro Alves <palves@redhat.com>
9691
9692 PR gdb/18002
9693 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9694 after reading the breakpoint's shadow memory.
9695
2dcb2b1a
MK
96962015-03-05 Mark Kettenis <kettenis@gnu.org>
9697
9698 * hppabsd-nat.c: Remove file.
9699 * hppaobsd-nat.c: New file.
9700 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9701 hppaobsd-nat.c.
9702 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9703 hppaobsd-nat.o.
9704
527a273a
PA
97052015-03-04 Pedro Alves <palves@redhat.com>
9706
9707 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9708 (target_decr_pc_after_break): Delete declaration.
9709 * target.c (default_target_decr_pc_after_break)
9710 (target_decr_pc_after_break): Delete.
9711 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9712 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9713 * linux-thread-db.c (check_event): Likewise.
9714 * infrun.c (adjust_pc_after_break): Likewise.
9715 * darwin-nat.c (cancel_breakpoint): Likewise.
9716 * aix-thread.c (aix_thread_wait): Likewise.
9717 * target-delegates.c: Regenerate.
9718
faf09f01
PA
97192015-03-04 Pedro Alves <palves@redhat.com>
9720
9721 * linux-nat.c (save_sigtrap): Check for breakpoints before
9722 checking watchpoints.
9723 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9724 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9725 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9726 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9727 (linux_nat_stopped_by_sw_breakpoint)
9728 (linux_nat_supports_stopped_by_sw_breakpoint)
9729 (linux_nat_stopped_by_hw_breakpoint)
9730 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9731 (linux_nat_wait_1): Don't re-increment the PC if relying on
9732 SIGTRAP's siginfo->si_code.
9733 (linux_nat_add_target): Install new target methods.
9734 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9735 offset if the target already adjusted the PC.
9736 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9737 (GDB_ARCH_TRAP_BRKPT): New.
9738 (TRAP_HWBKPT): Define if not already defined.
9739
f7e6eed5
PA
97402015-03-04 Pedro Alves <palves@redhat.com>
9741
9742 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9743 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9744 Delete field.
9745 <stop_reason>: New field.
9746 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9747 (packet_set_cmd_state): New function.
9748 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9749 features.
9750 (remote_query_supported): If not disabled with the corresponding
9751 "set remote foo-packet" command, report support for the swbreak
9752 and hwbreak features.
9753 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9754 field.
9755 <stop_reason>: New field.
9756 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9757 (remote_wait_as): Adjust.
9758 (remote_stopped_by_sw_breakpoint)
9759 (remote_supports_stopped_by_sw_breakpoint)
9760 (remote_stopped_by_hw_breakpoint)
9761 (remote_supports_stopped_by_hw_breakpoint): New functions.
9762 (remote_stopped_by_watchpoint): New function.
9763 (init_remote_ops): Install them.
9764 (_initialize_remote): Register new "set/show remote
9765 swbreak-feature-packet" and "set/show remote
9766 swbreak-feature-packet" commands.
9767
9e8915c6
PA
97682015-03-04 Pedro Alves <palves@redhat.com>
9769
9770 * btrace.h: Include target/waitstatus.h.
9771 (struct btrace_thread_info) <stop_reason>: New field.
9772 * record-btrace.c (record_btrace_step_thread): Use
9773 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9774 (record_btrace_decr_pc_after_break): Delete.
9775 (record_btrace_stopped_by_sw_breakpoint)
9776 (record_btrace_supports_stopped_by_sw_breakpoint)
9777 (record_btrace_stopped_by_hw_breakpoint)
9778 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9779 (init_record_btrace_ops): Install them.
9780 * record-full.c (record_full_hw_watchpoint): Delete and replace
9781 with ...
9782 (record_full_stop_reason): ... this throughout.
9783 (record_full_exec_insn): Adjust.
9784 (record_full_wait_1): Adjust. No longer re-increment the PC.
9785 (record_full_wait_1): Adjust. Use
9786 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9787 (record_full_stopped_by_watchpoint): Adjust.
9788 (record_full_stopped_by_sw_breakpoint)
9789 (record_full_supports_stopped_by_sw_breakpoint)
9790 (record_full_supports_stopped_by_sw_breakpoint)
9791 (record_full_stopped_by_hw_breakpoint)
9792 (record_full_supports_stopped_by_hw_breakpoint): New functions.
9793 (init_record_full_ops, init_record_full_core_ops): Install them.
9794 * record.c (record_check_stopped_by_breakpoint): New function.
9795 * record.h: Include target/waitstatus.h.
9796 (record_check_stopped_by_breakpoint): New declaration.
9797
15c66dd6
PA
97982015-03-04 Pedro Alves <palves@redhat.com>
9799
9800 enum lwp_stop_reason -> enum target_stop_reason
9801 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9802 (linux_nat_stopped_by_watchpoint, status_callback)
9803 (linux_nat_wait_1): Adjust.
9804 * linux-nat.h (enum lwp_stop_reason): Delete.
9805 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9806 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9807 * target/waitstatus.h (enum target_stop_reason): New.
9808
1cf4d951
PA
98092015-03-04 Pedro Alves <palves@redhat.com>
9810
9811 * breakpoint.c (need_moribund_for_location_type): New function.
9812 (bpstat_stop_status): Don't skipping checking moribund locations
9813 of breakpoint types which the target tell caused a stop.
9814 (program_breakpoint_here_p): New function, factored out from ...
9815 (bp_loc_is_permanent): ... this.
9816 (update_global_location_list): Don't create a moribund location if
9817 the target supports reporting stops of the type of the removed
9818 breakpoint.
9819 * breakpoint.h (program_breakpoint_here_p): New declaration.
9820 * infrun.c (adjust_pc_after_break): Return early if the target has
9821 already adjusted the PC. Add comments.
9822 (handle_signal_stop): If nothing explains a signal, and the target
9823 tells us the stop was caused by a software breakpoint, check if
9824 there's a breakpoint instruction in the memory. If so, adjust the
9825 PC before presenting the stop to the user. Otherwise, ignore the
9826 trap. If nothing explains a signal, and the target tells us the
9827 stop was caused by a hardware breakpoint, ignore the trap.
9828 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9829 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9830 to_supports_stopped_by_hw_breakpoint>: New fields.
9831 (target_stopped_by_sw_breakpoint)
9832 (target_supports_stopped_by_sw_breakpoint)
9833 (target_stopped_by_hw_breakpoint)
9834 (target_supports_stopped_by_hw_breakpoint): Define.
9835 * target-delegates.c: Regenerate.
9836
79639e11
PA
98372015-03-04 Pedro Alves <palves@redhat.com>
9838
9839 * infrun.c (follow_fork_inferior): Use the whole of the
9840 inferior_ptid and pending_follow.related_pid ptids instead of
9841 building ptids from the process components. Adjust verbose output
9842 to use target_pid_to_str.
9843 * linux-nat.c (linux_child_follow_fork): Use the whole of the
9844 inferior_ptid and pending_follow.related_pid ptids instead of
9845 building ptids from the process components.
9846
e85e8e5e
MK
98472015-03-04 Mark Kettenis <kettenis@gnu.org>
9848
9849 * inf-ptrace.c [PT_GET_PROCESS_STATE]
9850 (inf_ptrace_insert_fork_catchpoint): New function.
9851 (inf_ptrace_remove_fork_catchpoint): New function.
9852 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
9853
87de11c0
AA
98542015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9855
9856 * s390-linux-tdep.c (s390_register_name): Return empty string
9857 instead of NULL for registers that shouldn't be visible.
9858
d851a69a
AA
98592015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9860
9861 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
9862 XML file for 64-bit targets.
9863
b072f6c1
SM
98642015-03-03 Simon Marchi <simon.marchi@ericsson.com>
9865
9866 * target.h (find_default_create_inferior): Remove declaration.
9867 (find_default_attach): Likewise.
9868
c1593e4f
PA
98692015-03-03 Pedro Alves <palves@redhat.com>
9870
9871 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
9872 Use ptid_get_pid to get the overall process id when resuming all
9873 threads.
9874
90ad5e1d
PA
98752015-03-03 Pedro Alves <palves@redhat.com>
9876
9877 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
9878 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
9879 * inf-ptrace.c (get_ptrace_pid): New function.
9880 (inf_ptrace_resume): Use it.
9881 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
9882 to the lower layer.
9883
d68e53f4
MM
98842015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9885
9886 * nat/linux-btrace.c: Include sys/utsname.h.
9887 (linux_determine_kernel_ptr_bits): New.
9888 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
9889 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
9890 ptr_bits.
9891
986b6601
MM
98922015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9893
9894 * btrace.c (ftrace_update_function): Treat return as tailcall for
9895 "_dl_runtime_resolve".
9896
ce0dfbea
MM
98972015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9898
9899 * btrace.h (btrace_function) <lbegin, lend>: Remove.
9900 * btrace.c (ftrace_debug): Do not print the line range.
9901 (ftrace_skip_file, ftrace_update_lines): Remove.
9902 (ftrace_new_function): Remove lbegin and lend initialization.
9903 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
9904 * record-btrace.c (btrace_compute_src_line_range): New.
9905 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
9906
95e50b27
PA
99072015-03-02 Pedro Alves <palves@redhat.com>
9908
9909 * infrun.c (follow_exec): Delete all threads of the process except
9910 the event thread. Extended comments.
9911
00e474c2
JB
99122015-03-02 Joel Brobecker <brobecker@adacore.com>
9913
9914 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
9915
cc7039d3
JB
99162015-03-02 Joel Brobecker <brobecker@adacore.com>
9917
9918 * utils.h: Remove <stdbool.h> #include.
9919 (producer_is_gcc): Change return type to "int".
9920 * utils.c (producer_is_gcc): Change return type to int.
9921 Return 1 instead of true, and 0 instead of false.
9922 Adjust function documentation accordingly.
9923
550bdf96
AA
99242015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9925
9926 * s390-linux-nat.c (have_regset_vxrs): New static variable.
9927 (s390_linux_fetch_inferior_registers): Handle vector registers, if
9928 present.
9929 (s390_linux_store_inferior_registers): Likewise.
9930 (s390_get_hwcap): Remove function. Embed its logic...
9931 (s390_read_description): ...here. Yield a target description with
9932 vector registers if applicable.
9933 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
9934 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
9935 "features/s390x-tevx-linux64.c".
9936 (struct gdbarch_tdep) <v0_full_regnum>: New field.
9937 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
9938 for "GNU/Linux-specific registers".
9939 (s390_dwarf_reg_r0l): New enum value.
9940 (s390_dwarf_reg_to_regnum): Support vector registers.
9941 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
9942 of GPR lower halves.
9943 (regnum_is_vxr_full): New function.
9944 (s390_register_name): New function.
9945 (s390_pseudo_register_name): Handle v0-v15, which are composed of
9946 f0-f15 and v0l-v15l.
9947 (s390_pseudo_register_type): Likewise.
9948 (s390_pseudo_register_read): Likewise.
9949 (s390_pseudo_register_write): Likewise.
9950 (s390_value_from_register): Account for the fact that values are
9951 placed left-justified in vector registers.
9952 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
9953 the vector reggroup and omit them from the general reggroup.
9954 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
9955 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
9956 (s390_iterate_over_regset_sections): Add iterations for the two
9957 new vector regsets.
9958 (s390_core_read_description): Yield a target description with
9959 vector registers if applicable.
9960 (s390_gdbarch_init): Handle target descriptions with vector
9961 registers. Add "register_name" gdbarch method.
9962 (_initialize_s390_tdep): Call new tdesc initialization functions.
9963 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
9964 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
9965 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
9966 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
9967 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
9968 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
9969 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
9970 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
9971 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
9972 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
9973 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
9974 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
9975 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
9976 (S390_NUM_REGS): Adjust value.
9977 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
9978 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9979 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
9980 * NEWS: Announce S/390 vector register support.
9981
446899e4
AA
99822015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9983
9984 * features/s390-tevx-linux64.xml: New file.
9985 * features/s390-vx-linux64.xml: New file.
9986 * features/s390-vx.xml: New file.
9987 * features/s390x-tevx-linux64.xml: New file.
9988 * features/s390x-vx-linux64.xml: New file.
9989 * features/Makefile (WHICH): Add s390-vx-linux64,
9990 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
9991 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
9992 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
9993 macros.
9994 * features/s390-tevx-linux64.c: New generated file.
9995 * features/s390-vx-linux64.c: Likewise.
9996 * features/s390x-tevx-linux64.c: Likewise.
9997 * features/s390x-vx-linux64.c: Likewise.
9998 * regformats/s390-tevx-linux64.dat: Likewise.
9999 * regformats/s390-vx-linux64.dat: Likewise.
10000 * regformats/s390x-tevx-linux64.dat: Likewise.
10001 * regformats/s390x-vx-linux64.dat: Likewise.
10002
b7236fbe
DE
100032015-02-28 Doug Evans <xdje42@gmail.com>
10004
10005 * symtab.h (struct symtab) <next>: Fix comment.
10006
02e62830
SM
100072015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10008
10009 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10010 python_GdbMethods.
10011
bf36a1e7
PA
100122015-02-27 Pedro Alves <palves@redhat.com>
10013
10014 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10015
ad6aff7d
PA
100162015-02-27 Pedro Alves <palves@redhat.com>
10017
10018 * common/common-exceptions.h (exception_none): Declare.
10019 * common/common-exceptions.c (exception_none): Moved from
10020 exceptions.c.
10021 (exceptions_state_mc_init): Use exception_none.
10022 * exceptions.c (exception_none): Move to
10023 common/common-exceptions.c.
10024 * exceptions.h (exception_none): Move to
10025 common/common-exceptions.h.
10026
97c18565
PA
100272015-02-27 Pedro Alves <palves@redhat.com>
10028
10029 * main.c (catch_command_errors, catch_command_errors_const):
10030 Remove 'mask' argument. Adjust.
10031 (captured_main): Adjust callers.
10032
e992c591
PA
100332015-02-27 Pedro Alves <palves@redhat.com>
10034
10035 * python/python-internal.h: Include "extension-priv.h".
10036
64166036
PA
100372015-02-27 Pedro Alves <palves@redhat.com>
10038
10039 * breakpoint.h (enum print_stop_action): Move further up in the
10040 file.
10041
8a526fa6
PA
100422015-02-27 Pedro Alves <palves@redhat.com>
10043
10044 * gdbarch.sh: Include regcache.h.
10045 * gdbarch.h: Regenerate.
10046
0fa9c223
PA
100472015-02-27 Pedro Alves <palves@redhat.com>
10048
10049 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10050 Remove duplicate const.
10051 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10052 duplicate const.
10053
7cf99fb1
PA
100542015-02-27 Pedro Alves <palves@redhat.com>
10055
10056 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10057 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10058 * features/feature_to_c.sh: Tag the generated xml_builtin array
10059 with extern const in C++ mode.
10060
1424c16e
TT
100612015-02-27 Tom Tromey <tromey@redhat.com>
10062
10063 * minidebug.c (struct lzma_stream): Rename to ...
10064 (struct gdb_lzma_stream): ... this.
10065 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10066
10367c7c
PA
100672015-02-27 Pedro Alves <palves@redhat.com>
10068
10069 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10070 function.
10071 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10072 (mi_cmd_stack_list_variables): Use it.
10073
4180215b
PA
100742015-02-27 Pedro Alves <palves@redhat.com>
10075
10076 * x86-linux-nat.c (u_debugreg_offset): New function.
10077 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10078
2f56f7c3
PA
100792015-02-27 Pedro Alves <palves@redhat.com>
10080
10081 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10082 declaration.
10083 Include break-common.h.
10084
570dc176
TT
100852015-02-27 Tom Tromey <tromey@redhat.com>
10086 Pedro Alves <palves@redhat.com>
10087
10088 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10089 local used to iterate over enums.
10090 * completer.c (signal_completer): Likewise.
10091 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10092 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10093 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10094 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10095 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10096 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10097 * tui-wingeneral.c (tui_refresh_all): Likewise.
10098
68c14faa
PA
100992015-02-27 Pedro Alves <palves@redhat.com>
10100
10101 * target.h: Include "infrun.h".
10102
749bab01
PA
101032015-02-27 Pedro Alves <palves@redhat.com>
10104
10105 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10106
3c14e5a3
PA
101072015-02-27 Pedro Alves <palves@redhat.com>
10108
10109 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10110 (IPA_SYM): Use it.
10111 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10112
56000a98
PA
101132015-02-27 Pedro Alves <palves@redhat.com>
10114
10115 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10116 cli_mld_erase_entire_line, and make it extern "C".
10117 * common/common-defs.h (EXTERN_C): New.
10118 * completer.c (_rl_completion_prefix_display_length)
10119 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10120 out of gdb_display_match_list_1.
10121 (_rl_qsort_string_compare): Move declaration out of
10122 gdb_display_match_list_1, and make it extern "C".
10123 * defs.h (re_comp): Use EXTERN_C.
10124 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10125 and make it extern "C".
10126 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10127 and make it extern "C".
10128 (main): Move declaration out of maintenance_set_profile_cmd.
10129 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10130 EXTERN_C.
10131
bcabf420
PA
101322015-02-27 Pedro Alves <palves@redhat.com>
10133
10134 * python/python.c (GdbMethods): Rename to ...
10135 (python_GdbMethods): ... this and make extern.
10136 (GdbModuleDef): Rename to ...
10137 (python_GdbModuleDef): ... this and make extern.
10138
928dbe07
PA
101392015-02-27 Pedro Alves <palves@redhat.com>
10140
10141 * record-btrace.c (set_record_btrace_cmdlist)
10142 (show_record_btrace_cmdlist): Remove redefinitions.
10143
52059ffd
TT
101442015-02-27 Tom Tromey <tromey@redhat.com>
10145 Pedro Alves <palves@redhat.com>
10146
10147 * dwarf2-frame.c (enum cfa_how_kind, struct
10148 dwarf2_frame_state_reg_info): Move out of struct
10149 dwarf2_frame_state.
10150 * dwarf2read.c (struct tu_stats): Move out of struct
10151 dwarf2_per_objfile.
10152 (struct file_entry): Move out of struct line_header.
10153 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10154 typedef_field_list): Move out of struct field_info.
10155 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10156 Move out of struct dynamic_prop.
10157 (union type_owner, union field_location, struct field, struct
10158 range_bounds, union type_specific): Move out of struct main_type.
10159 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10160 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10161 (struct call_site_target, union call_site_parameter_u, struct
10162 call_site_parameter): Move out of struct call_site.
10163 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10164 m32c_prologue.
10165 (enum srcdest_kind): Move out of struct srcdest.
10166 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10167 * prologue-value.h (enum prologue_value_kind): Move out of struct
10168 prologue_value.
10169 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10170 gdbarch_tdep.
10171 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10172 out of struct field_info.
10173 * symfile.h (struct other_sections): Move out of struct
10174 section_addr_info.
10175 * symtab.c (struct symbol_cache_slot): Move out struct
10176 block_symbol_cache.
10177 * target-descriptions.c (enum tdesc_type_kind): Move out of
10178 typedef struct tdesc_type.
10179 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10180 struct tui_line_or_address.
10181 * value.c (enum internalvar_kind, union internalvar_data): Move
10182 out of struct internalvar.
10183 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10184 gdbarch_tdep.
10185
fe978cb0
PA
101862015-02-27 Tom Tromey <tromey@redhat.com>
10187 Pedro Alves <palves@redhat.com>
10188
10189 Rename symbols whose names are reserved C++ keywords throughout.
10190
3bc3d82a
PA
101912015-02-27 Pedro Alves <palves@redhat.com>
10192
10193 * Makefile.in (COMPILER): New, get it from autoconf.
10194 (COMPILE.pre, CC_LD): Use COMPILER.
10195 (CXX): Get from autoconf instead.
10196 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10197 * acinclude.m4: Include build-with-cxx.m4.
10198 * build-with-cxx.m4: New file.
10199 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10200 Disable -Werror by default if building in C++ mode.
10201 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10202 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10203 Run supported-warning-flags tests with the C++ compiler.
10204 Save/restore CXXFLAGS too.
10205 * configure: Regenerate.
10206
07697489
PA
102072015-02-27 Pedro Alves <palves@redhat.com>
10208
10209 * libiberty.m4: New file.
10210 * acinclude.m4: Include libiberty.m4.
10211 * configure.ac: Call libiberty_INIT.
10212 * config.in, configure: Regenerate.
10213
60abeae4
AA
102142015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10215
10216 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10217 31-bit targets, but 64-bit targets as well.
10218 (s390_gnu_triplet_regexp): New function.
10219 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10220 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10221 method.
10222
f44466fb 102232015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10224
10225 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10226 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10227 from CONTEXT_DEBUGGER.
10228
0def5aaa
DE
102292015-02-26 Doug Evans <dje@google.com>
10230
10231 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10232 CHECK_TYPEDEF.
10233 (set_type_vptr_fieldno): Ditto.
10234 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10235 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10236
77b64a49
PA
102372015-02-26 Pedro Alves <palves@redhat.com>
10238
10239 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10240 * complaints.c (vcomplaint): Pass argument FMT directly to
10241 printf-like functions instead of complaint->fmt.
10242 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10243 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10244 * compile/compile-loc2c.c (pushf, unary, binary): Add
10245 ATTRIBUTE_PRINTF.
10246 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10247 to pushf.
10248 (BINARY): Pass string literal as format string to 'binary'.
10249 * compile/compile-object-load.c (link_callbacks_einfo): Add
10250 ATTRIBUTE_PRINTF.
10251 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10252
532f44ed
PA
102532015-02-26 Pedro Alves <palves@redhat.com>
10254
10255 * windows-termcap.c: Rename to ...
10256 * stub-termcap.c: ... this. Adjust header line.
10257 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10258 windows-termcap.c.
10259 * configure: Regenerate.
10260 * configure.ac: Refer to stub-termcap.o instead of
10261 windows-termcap.o.
10262 * gdb_curses.h: Mention stub-termcap.c instead of
10263 windows-termcap.c.
10264
081a1c2c
JK
102652015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10266
10267 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10268 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10269
2f41223f
AT
102702015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10271
10272 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10273
80c57053
JK
102742015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10275
10276 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10277 bfd_canonicalize_symtab.
10278
cf424aef
JB
102792015-02-25 John Baldwin <jhb@FreeBSD.org>
10280
10281 * amd64fbsd-nat.c: Include sys/user.h.
10282 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10283 instead of KERN_PS_STRINGS to locate the signal trampoline.
10284 * i386fbsd-nat.c: Include sys/user.h.
10285 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10286 instead of KERN_PS_STRINGS to locate the signal trampoline.
10287 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10288 (amd64fbsd_sigtramp_p): New.
10289 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10290 longer set default values.
10291 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10292 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10293 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10294 (i386fbsd_freebsd4_sigtramp_start)
10295 (i386fbsd_freebsd4_sigtramp_middle)
10296 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10297 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10298 (i386fbsd_sigtramp_p): New.
10299 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10300 longer set default values.
10301 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10302
c5cb74ee
JB
103032015-02-25 John Baldwin <jhb@freebsd.org>
10304
10305 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10306 get_frame_register instead of frame_unwind_register_unsigned.
10307
17487d85
JK
103082015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10309
10310 PR build/18033
10311 * compile/compile-c-support.c (c_compute_program): Change // comment.
10312 * compile/compile-object-load.c (setup_sections): Change // comment.
10313
9357a9e6
JB
103142015-02-26 Joel Brobecker <brobecker@adacore.com>
10315
10316 PR build/18033:
10317 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10318
1f10ba14
PA
103192015-02-23 Pedro Alves <palves@redhat.com>
10320
10321 * remote.c (skip_to_semicolon): New function.
10322 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10323 special case the stop reasons that look like hex numbers
10324 upfront. Instead handle real register numbers after matching
10325 all the known stop reasons.
10326
96553a0c
DE
103272015-02-21 Doug Evans <dje@google.com>
10328
10329 PR c++/17976, symtab/17821
10330 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10331 is_in_anonymous. All callers updated.
10332 (find_symbol_in_baseclass): Ditto.
10333 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10334 for symbols in an anonymous namespace.
10335 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10336 DW_AT_name directly.
10337 (dwarf2_name): Convert missing namespace name to
10338 CP_ANONYMOUS_NAMESPACE_STR.
10339
2db9a427
PA
103402015-02-20 Pedro Alves <palves@redhat.com>
10341
10342 * linux-nat.c (linux_handle_extended_wait): Call
10343 thread_db_notice_clone whenever a new clone LWP is detected.
10344 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10345 functions.
10346 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10347 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10348 (linux_unstop_all_lwps): Declare.
10349 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10350 (thread_get_info_callback): Delete.
10351 (thread_from_lwp): Use td_thr_get_info and record_thread.
10352 (thread_db_attach_lwp): Delete.
10353 (thread_db_notice_clone): New function.
10354 (try_thread_db_load_1): If /proc is mounted and shows the
10355 process'es task list, walk over all LWPs and call thread_from_lwp
10356 instead of relying on td_ta_thr_iter.
10357 (attach_thread): Don't call check_thread_signals here. Split the
10358 tail part of the function (which adds the thread to the core GDB
10359 thread list) to ...
10360 (record_thread): ... this function. Call check_thread_signals
10361 here.
10362 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10363 call thread_from_lwp.
10364 (thread_db_update_thread_list): Rename to ...
10365 (thread_db_update_thread_list_org): ... this.
10366 (thread_db_update_thread_list): New function.
10367 (thread_db_find_thread_from_tid): Delete.
10368 (thread_db_get_ada_task_ptid): Simplify.
10369 * nat/linux-procfs.c: Include <sys/stat.h>.
10370 (linux_proc_task_list_dir_exists): New function.
10371 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10372
3b27ef47
PA
103732015-02-20 Pedro Alves <palves@redhat.com>
10374
10375 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10376 main LWP. Handle the case of waitpid returning 0 if we're already
10377 attached to the LWP. Don't set the LWP's last_resume_kind to
10378 resume_stop if we already knew about the LWP.
10379 (linux_nat_filter_event): Add debug logs.
10380
1cc28231
PA
103812015-02-20 Pedro Alves <palves@redhat.com>
10382
10383 * target.h (forward_target_decr_pc_after_break): Delete
10384 declaration.
10385
5c5019c2
PA
103862015-02-20 Pedro Alves <palves@redhat.com>
10387
10388 PR threads/18006
10389 * linux-thread-db.c (thread_get_info_callback): Return early if
10390 the thread's lwp id is -1.
10391
f3978e91
JB
103922015-02-20 Joel Brobecker <brobecker@adacore.com>
10393
10394 GDB 7.9 released.
10395
ffdf88ec
SE
103962015-02-19 Steve Ellcey <sellcey@imgtec.com>
10397
10398 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10399 (dtrace_get_probes) Change type of variable 'dof'.
10400
c9587f88
AT
104012015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10402
10403 PR breakpoints/16812
10404 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10405 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10406 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10407
53cf2ee0
DT
104082015-02-19 David Taylor <dtaylor@emc.com>
10409
10410 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10411
acfe0940
PP
104122015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10413
10414 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10415 function.
10416 (tui_putc): Don't call tui_handle_resize_during_io.
10417 (tui_getc): Likewise.
10418 (tui_mld_getc): Likewise.
10419 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10420 (tui_sigwinch_token): New static variable.
10421 (tui_initialize_win): Adjust documentation. Set
10422 tui_sigwinch_token.
10423 (tui_async_resize_screen): New asynchronous callback.
10424 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10425 invoke tui_async_resize_screen.
10426
f6a88844
JM
104272015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10428
10429 * configure: Regenerated.
10430 * configure.ac: Use GDB_AC_TRANSFORM.
10431 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10432 * acinclude.m4: sinclude transform.m4.
10433 * transform.m4: New file.
10434 (GDB_AC_TRANSFORM): New macro.
10435
b05e3b0d
JM
104362015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10437
10438 * NEWS: Announce the support for DTrace SDT probes.
10439
c3e3045e
JM
104402015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10441
10442 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10443 (amd64_dtrace_parse_probe_argument): New function.
10444 (amd64_dtrace_probe_is_enabled): Likewise.
10445 (amd64_dtrace_enable_probe): Likewise.
10446 (amd64_dtrace_disable_probe): Likewise.
10447 (amd64_linux_init_abi): Register the
10448 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10449 `gdbarch_dtrace_disable_probe' and
10450 `gdbarch_dtrace_probe_is_enabled' hooks.
10451 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10452 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10453 (amd64_dtrace_enable_probe_sequence): Likewise.
10454 (amd64_dtrace_disable_probe_sequence): Likewise.
10455
d4777acb
JM
104562015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10457
10458 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10459 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10460 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10461 handle ELF files.
10462 * Makefile.in (SFILES): dtrace-probe.c added.
10463 * configure: Regenerate.
10464 * dtrace-probe.c: New file.
10465 (SHT_SUNW_dof): New constant.
10466 (dtrace_probe_type): New enum.
10467 (dtrace_probe_arg): New struct.
10468 (dtrace_probe_arg_s): New typedef.
10469 (struct dtrace_probe_enabler): New struct.
10470 (dtrace_probe_enabler_s): New typedef.
10471 (dtrace_probe): New struct.
10472 (dtrace_probe_is_linespec): New function.
10473 (dtrace_dof_sect_type): New enum.
10474 (dtrace_dof_dofh_ident): Likewise.
10475 (dtrace_dof_encoding): Likewise.
10476 (DTRACE_DOF_ENCODE_LSB): Likewise.
10477 (DTRACE_DOF_ENCODE_MSB): Likewise.
10478 (dtrace_dof_hdr): New struct.
10479 (dtrace_dof_sect): Likewise.
10480 (dtrace_dof_provider): Likewise.
10481 (dtrace_dof_probe): Likewise.
10482 (DOF_UINT): New macro.
10483 (DTRACE_DOF_PTR): Likewise.
10484 (DTRACE_DOF_SECT): Likewise.
10485 (dtrace_process_dof_probe): New function.
10486 (dtrace_process_dof): Likewise.
10487 (dtrace_build_arg_exprs): Likewise.
10488 (dtrace_get_arg): Likewise.
10489 (dtrace_get_probes): Likewise.
10490 (dtrace_get_probe_argument_count): Likewise.
10491 (dtrace_can_evaluate_probe_arguments): Likewise.
10492 (dtrace_evaluate_probe_argument): Likewise.
10493 (dtrace_compile_to_ax): Likewise.
10494 (dtrace_probe_destroy): Likewise.
10495 (dtrace_gen_info_probes_table_header): Likewise.
10496 (dtrace_gen_info_probes_table_values): Likewise.
10497 (dtrace_probe_is_enabled): Likewise.
10498 (dtrace_probe_ops): New variable.
10499 (info_probes_dtrace_command): New function.
10500 (_initialize_dtrace_probe): Likewise.
10501 (dtrace_type_name): Likewise.
10502
8b367e17
JM
105032015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10504
10505 * gdbarch.sh (dtrace_parse_probe_argument): New.
10506 (dtrace_probe_is_enabled): Likewise.
10507 (dtrace_enable_probe): Likewise.
10508 (dtrace_disable_probe): Likewise.
10509 * gdbarch.c: Regenerate.
10510 * gdbarch.h: Regenerate.
10511
9aca2ff8
JM
105122015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10513
10514 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10515 stap_probe_ops for `enable_probe' and `disable_probe'.
10516 * probe.c (enable_probes_command): New function.
10517 (disable_probes_command): Likewise.
10518 (_initialize_probe): Define the cli commands `enable probe' and
10519 `disable probe'.
10520 (parse_probe_linespec): New function.
10521 (info_probes_for_ops): Use parse_probe_linespec.
10522 * probe.h (probe_ops): New hooks `enable_probe' and
10523 `disable_probe'.
10524
03e98035
JM
105252015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10526
10527 * probe.c (compute_probe_arg): Moved from stap-probe.c
10528 (compile_probe_arg): Likewise.
10529 (probe_funcs): Likewise.
10530 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10531 (compile_probe_arg): Likewise.
10532 (probe_funcs): Likewise.
10533
6f9b8491
JM
105342015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10535
10536 * probe.c (print_ui_out_not_applicables): New function.
10537 (exists_probe_with_pops): Likewise.
10538 (info_probes_for_ops): Do not include column headers for probe
10539 types for which no probe has been actually found on any object.
10540 Also invoke `print_ui_out_not_applicables' in order to match the
10541 column rows with the header when probes of several types are
10542 listed.
10543 Print the "Type" column.
10544 * probe.h (probe_ops): Added a new probe operation `type_name'.
10545 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10546 (stap_type_name): New function.
10547
69efdff1
PP
105482015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10549
10550 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10551 (key_is_command_char): Delete.
10552
f8e5e23e
PA
105532015-02-17 Pedro Alves <palves@redhat.com>
10554
10555 * tui/tui.c (tui_enable): Resize windows before anything
10556 might show a window.
10557
9f2e0721
MO
105582015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10559
10560 PR gdb/17984
10561 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10562 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10563 call.
10564 * aarch64-tdep.h (tdesc_aarch64): Declare.
10565
171e6b1c
MW
105662015-02-12 Mark Wielaard <mjw@redhat.com>
10567
10568 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10569
d5ff0482
DE
105702015-02-13 Doug Evans <dje@google.com>
10571
10572 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10573 anonymous_namespace to is_in_anonymous for consistency with the rest
10574 of the file.
10575 (cp_lookup_bare_symbol): Fix typo in comment.
10576 (cp_search_static_and_baseclasses): Ditto.
10577 (search_symbol_list): Use vertical space in comment better.
10578 (reset_directive_searched): Ditto. Fix typo.
10579 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10580
9f04ac5f
YQ
105812015-02-13 Yao Qi <yao.qi@arm.com>
10582
10583 * MAINTAINERS: Update my email address.
10584
013d0319
DE
105852015-02-12 Doug Evans <dje@google.com>
10586
b615dd20 10587 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 10588
9a7e538e
DE
105892015-02-12 Doug Evans <dje@google.com>
10590
10591 * completer.c (complete_line): Remove incorrect comment.
10592
e1fcd575
JK
105932015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10594
10595 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10596 (py_print_frame): Use RETURN_MASK_ERROR.
10597
b99bf4e3
JK
105982015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10599
10600 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10601 function comment. Wrap all function that can throw in cleanups.
10602 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10603 cleanups.
10604
800eb1ce
JK
106052015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10606
10607 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10608 Remove the error label.
10609
34019068
JK
106102015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10611
10612 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10613 with goto first, indent the former else codepath left. Put variable
10614 'elided' to a new inner block.
10615
8d4a54e2
JK
106162015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10617
10618 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10619
18ad82c1
PA
106202015-02-11 Pedro Alves <palves@redhat.com>
10621
10622 * xcoffread.c (within_function): Delete.
10623
e36122e9
TT
106242015-02-11 Tom Tromey <tromey@redhat.com>
10625 Pedro Alves <palves@redhat.com>
10626
10627 * breakpoint.c (base_breakpoint_ops): Delete.
10628 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10629 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10630 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10631 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10632 * python/py-arch.c (arch_object_type): Make extern.
10633 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10634 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10635 * python/py-cmd.c (cmdpy_object_type): Make extern.
10636 * python/py-continueevent.c (continue_event_object_type)
10637 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10638 parameter. Update all callers.
10639 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10640 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10641 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10642 * python/py-function.c (fnpy_object_type): Make extern.
10643 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10644 * python/py-infevents.c (call_pre_event_object_type)
10645 (inferior_call_post_event_object_type).
10646 (memory_changed_event_object_type): Make extern.
10647 * python/py-infthread.c (thread_object_type): Make extern.
10648 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10649 * python/py-linetable.c (linetable_entry_object_type)
10650 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10651 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10652 (clear_objfiles_event_object_type): Make extern.
10653 * python/py-objfile.c (objfile_object_type): Make extern.
10654 * python/py-param.c (parmpy_object_type): Make extern.
10655 * python/py-progspace.c (pspace_object_type): Make extern.
10656 * python/py-signalevent.c (signal_event_object_type): Make extern.
10657 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10658 * python/py-type.c (type_object_type, field_object_type)
10659 (type_iterator_object_type): Make extern.
10660 * python/python.c (python_extension_script_ops)
10661 (python_extension_ops): Make extern.
10662 * stap-probe.c (stap_probe_ops): Make extern.
10663
0703599a
PA
106642015-02-11 Pedro Alves <pedro@codesourcery.com>
10665
10666 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10667 because the event thread is not the current thread.
10668
eaaf76ab
DE
106692015-02-11 Doug Evans <xdje42@gmail.com>
10670
10671 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10672 been initialized yet, return NULL.
10673
e7d52ed3
DE
106742015-02-11 Doug Evans <dje@google.com>
10675
10676 * symfile.h (new_symfile_objfile): Delete.
10677 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10678 All callers updated.
10679
fc6b1256
PP
106802015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10681
10682 * tui/tui-io.c (tui_handle_resize_during_io): Call
10683 tui_update_gdb_sizes() after resizing the screen.
10684 * tui/tui.c (tui_enable): Resize the terminal before
10685 calling tui_update_gdb_sizes().
10686
d9080678
PP
106872015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10688
10689 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10690 line before printing a newline.
10691
9f615e3a
MW
106922015-02-11 Mark Wielaard <mjw@redhat.com>
10693
10694 * utils.c (producer_is_gcc): Return true or false.
10695
d9080678 106962015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
10697
10698 * utils.h (producer_is_gcc): Change return type to bool. Add major
10699 argument.
10700 * utils.c (producer_is_gcc): Likewise.
10701 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10702 * dwarf2read.c (check_producer): Likewise.
10703
b052c4fb
PA
107042015-02-10 Pedro Alves <palves@redhat.com>
10705
10706 * infrun.c (displaced_step_fixup): Switch to the event thread
10707 before calling gdbarch_displaced_step_fixup.
10708
3ac240d4
AT
107092015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10710
10711 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10712
c1cc6152
SM
107132015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10714
10715 * ada-varobj.c (ada_name_of_child): Constify parent.
10716 (ada_path_expr_of_child): Same.
10717 (ada_value_of_child): Same.
10718 (ada_type_of_child): Same.
10719 * c-varobj.c (c_is_path_expr_parent): Same.
10720 (c_describe_child): Same.
10721 (c_name_of_child): Same.
10722 (c_value_of_child): Same.
10723 (c_type_of_child): Same.
10724 (cplus_number_of_children): Same.
10725 (cplus_describe_child): Constify var.
10726 (cplus_name_of_child): Constify parent.
10727 (cplus_value_of_child): Same.
10728 (cplus_type_of_child): Same.
10729 * jv-varobj.c (java_name_of_child): Same.
10730 (java_value_of_child): Same.
10731 (java_type_of_child): Same.
10732 * varobj.c (value_of_child): Same.
10733 (varobj_default_is_path_expr_parent): Constify var, parent and return
10734 value.
10735 (varobj_get_path_expr): Constify var, modify path_expr through
10736 mutable_var.
10737 (install_new_value): Constify parent.
10738 (value_of_child): Constify parent.
10739 * varobj.h (struct varobj): Constify parent.
10740 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10741 type_of_child.
10742 (varobj_get_path_expr): Constify var.
10743 (varobj_get_path_expr_parent): Constify var and return value.
10744
c1ee9414
LM
107452015-02-10 Luis Machado <lgustavo@codesourcery.com>
10746
10747 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10748 (arm_prologue_this_id): Move PC and SP limit checks to
10749 arm_prologue_unwind_stop_reason.
10750 (arm_prologue_unwind) <stop_reason> : Set to
10751 arm_prologue_unwind_stop_reason.
10752
f7de9aab
MW
107532015-02-09 Mark Wielaard <mjw@redhat.com>
10754
10755 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10756 DW_LANG_Fortran08 as language_fortran.
10757
0b24eb2d
SDJ
107582015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10759
10760 PR remote/17946
10761 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10762 of pointer against char.
10763
a2c2acaf
MW
107642015-02-09 Mark Wielaard <mjw@redhat.com>
10765
10766 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10767 (c_type_print_modifier): Likewise.
10768 * dwarf2read.c (read_tag_atomic_type): New function.
10769 (read_type_die_1): Handle DW_TAG_atomic_type.
10770 * gdbtypes.c (make_atomic_type): New function.
10771 (recursive_dump_type): Handle TYPE_ATOMIC.
10772 * gdbtypes.h (enum type_flag_values): Renumber.
10773 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10774 (TYPE_ATOMIC): New macro.
10775 (make_atomic_type): Declare.
10776
31fd9caa
MM
107772015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10778
10779 * btrace.c (ftrace_find_call): Skip gaps.
10780 (ftrace_new_function): Initialize level.
10781 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10782 (ftrace_new_switch): Update
10783 level computation.
10784 (ftrace_new_gap): New.
10785 (ftrace_update_function): Create new function after gap.
10786 (btrace_compute_ftrace_bts): Create gap on error.
10787 (btrace_stitch_bts): Update parameters. Clear trace if it
10788 becomes empty.
10789 (btrace_stitch_trace): Update parameters. Update callers.
10790 (btrace_clear): Reset the number of gaps.
10791 (btrace_insn_get): Return NULL if the iterator points to a gap.
10792 (btrace_insn_number): Return zero if the iterator points to a gap.
10793 (btrace_insn_end): Allow gaps at the end.
10794 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10795 (btrace_find_insn_by_number): Assert that the found iterator does
10796 not point to a gap.
10797 (btrace_call_next, btrace_call_prev): Assert that the last function
10798 is not a gap.
10799 * btrace.h (btrace_bts_error): New.
10800 (btrace_function): Update comment.
10801 (btrace_function) <insn, insn_offset, number>: Update comment.
10802 (btrace_function) <errcode>: New.
10803 (btrace_thread_info) <ngaps>: New.
10804 (btrace_thread_info) <replay>: Update comment.
10805 (btrace_insn_get): Update comment.
10806 * record-btrace.c (btrace_ui_out_decode_error): New.
10807 (record_btrace_info): Print number of gaps.
10808 (btrace_insn_history, btrace_call_history): Call
10809 btrace_ui_out_decode_error for gaps.
10810 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10811
afb778a2
MM
108122015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10813
10814 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10815 * nat/linux-btrace.c: (btrace_this_cpu): New.
10816 (cpu_supports_bts): Call btrace_this_cpu.
10817 (intel_supports_bts): Add cpu parameter.
10818
7d5c24b3
MM
108192015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10820
10821 * btrace.h (btrace_insn_class): New.
10822 (btrace_insn) <size, iclass>: New.
10823 * btrace.c (ftrace_find_call): Update parameters. Update users.
10824 Use instruction classification.
10825 (ftrace_new_return): Update parameters. Update users.
10826 (ftrace_update_function): Update parameters. Update users. Use
10827 instruction classification.
10828 (ftrace_update_insns): Update parameters. Update users.
10829 (ftrace_classify_insn): New.
10830 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
10831 TRY_CATCH around call to gdb_insn_length.
10832
76235df1
MM
108332015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10834
10835 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
10836 Update parameters. Update users.
10837
d33501a5
MM
108382015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10839
10840 * btrace.c (parse_xml_btrace_conf_bts): Add size.
10841 (btrace_conf_bts_attributes): New.
10842 (btrace_conf_children): Add attributes.
10843 * common/btrace-common.h (btrace_config_bts): New.
10844 (btrace_config)<bts>: New.
10845 (btrace_config): Update comment.
10846 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
10847 Use config.
10848 * features/btrace-conf.dtd: Increment version. Add size
10849 attribute to bts element.
10850 * record-btrace.c (set_record_btrace_bts_cmdlist,
10851 show_record_btrace_bts_cmdlist): New.
10852 (record_btrace_adjust_size, record_btrace_print_bts_conf,
10853 record_btrace_print_conf, cmd_set_record_btrace_bts,
10854 cmd_show_record_btrace_bts): New.
10855 (record_btrace_info): Call record_btrace_print_conf.
10856 (_initialize_record_btrace): Add commands.
10857 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
10858 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
10859 (btrace_sync_conf): Synchronize bts size.
10860 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
10861 * NEWS: Announce new commands and new packets.
10862
f4abbc16
MM
108632015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10864
10865 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
10866 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
10867 (x86_linux_btrace_conf): New.
10868 (x86_linux_create_target): Initialize to_btrace_conf.
10869 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
10870 Check format. Split into this and ...
10871 (linux_enable_bts): ... this.
10872 (linux_btrace_conf): New.
10873 (perf_event_skip_record): Renamed into ...
10874 (perf_event_skip_bts_record): ... this. Updated users.
10875 (linux_disable_btrace): Split into this and ...
10876 (linux_disable_bts): ... this.
10877 (linux_read_btrace): Check format.
10878 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
10879 (linux_btrace_conf): New.
10880 (btrace_target_info)<ptid>: Moved.
10881 (btrace_target_info)<conf>: New.
10882 (btrace_target_info): Split into this and ...
10883 (btrace_tinfo_bts): ... this. Updated users.
10884 * btrace.c (btrace_enable): Update parameters.
10885 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
10886 (btrace_conf_children, btrace_conf_attributes)
10887 (btrace_conf_elements): New.
10888 * btrace.h (btrace_enable): Update parameters.
10889 (btrace_conf, parse_xml_btrace_conf): New.
10890 * common/btrace-common.h (btrace_config): New.
10891 * feature/btrace-conf.dtd: New.
10892 * record-btrace.c (record_btrace_conf): New.
10893 (record_btrace_cmdlist): New.
10894 (record_btrace_enable_warn, record_btrace_open): Pass
10895 &record_btrace_conf.
10896 (record_btrace_info): Print recording format.
10897 (cmd_record_btrace_bts_start): New.
10898 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
10899 (_initialize_record_btrace): Add "record btrace bts" subcommand.
10900 Add "record bts" alias command.
10901 * remote.c (remote_state)<btrace_config>: New.
10902 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
10903 (remote_protocol_features): Add qXfer:btrace-conf:read.
10904 (remote_open_1): Call remote_btrace_reset.
10905 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
10906 (btrace_target_info)<conf>: New.
10907 (btrace_sync_conf, btrace_read_config): New.
10908 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
10909 btrace_read_conf.
10910 (remote_btrace_conf): New.
10911 (init_remote_ops): Initialize to_btrace_conf.
10912 (_initialize_remote): Add qXfer:btrace-conf packet.
10913 * target.c (target_enable_btrace): Update parameters.
10914 (target_btrace_conf): New.
10915 * target.h (target_enable_btrace): Update parameters.
10916 (target_btrace_conf): New.
10917 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
10918 (target_ops)<to_enable_btrace>: Update parameters and comment.
10919 (target_ops)<to_btrace_conf>: New.
10920 * target-delegates: Regenerate.
10921 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
10922 (target_debug_print_const_struct_btrace_target_info_p): New.
10923 * NEWS: Announce new command and new packet.
10924
aadf7753
MM
109252015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10926
10927 * nat/linux-btrace.h (perf_event_buffer): New.
10928 (btrace_target_info) <buffer, size, data_head>: Replace with ...
10929 <bts>: ... this.
10930 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
10931 (perf_event_buffer_size, perf_event_buffer_begin)
10932 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
10933 Updated users.
10934 (perf_event_new_data): New.
10935
043c3577
MM
109362015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10937
10938 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
10939 * record-btrace.c (record_btrace_open): Remove call to
10940 target_supports_btrace.
10941 * remote.c (remote_supports_btrace): Update parameters.
10942 * target.c (target_supports_btrace): Update parameters.
10943 * target.h (to_supports_btrace, target_supports_btrace): Update
10944 parameters.
10945 * target-delegates.c: Regenerate.
10946 * target-debug.h (target_debug_print_enum_btrace_format): New.
10947 * nat/linux-btrace.c
10948 (kernel_supports_btrace): Rename into ...
10949 (kernel_supports_bts): ... this. Update users. Update warning text.
10950 (intel_supports_btrace): Rename into ...
10951 (intel_supports_bts): ... this. Update users.
10952 (cpu_supports_btrace): Rename into ...
10953 (cpu_supports_bts): ... this. Update users.
10954 (linux_supports_btrace): Update parameters. Split into this and ...
10955 (linux_supports_bts): ... this.
10956 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
10957
734b0e4b
MM
109582015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10959
10960 * Makefile.in (SFILES): Add common/btrace-common.c.
10961 (COMMON_OBS): Add common/btrace-common.o.
10962 (btrace-common.o): Add build rules.
10963 * btrace.c (parse_xml_btrace): Update parameters.
10964 (parse_xml_btrace_block): Set format field.
10965 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
10966 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
10967 (btrace_compute_ftrace): Split into this and...
10968 (btrace_compute_ftrace_bts): ...this.
10969 (btrace_stitch_trace): Split into this and...
10970 (btrace_stitch_bts): ...this.
10971 * btrace.h (parse_xml_btrace): Update parameters.
10972 (make_cleanup_btrace_data): New.
10973 * common/btrace-common.c: New.
10974 * common/btrace-common.h: Include common-defs.h.
10975 (btrace_block_s): Update comment.
10976 (btrace_format): New.
10977 (btrace_format_string): New.
10978 (btrace_data_bts): New.
10979 (btrace_data): New.
10980 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
10981 * remote.c (remote_read_btrace): Update parameters.
10982 * target.c (target_read_btrace): Update parameters.
10983 * target.h (target_read_btrace): Update parameters.
10984 (target_ops)<to_read_btrace>: Update parameters.
10985 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
10986 * target-delegates.c: Regenerate.
10987 * target-debug (target_debug_print_struct_btrace_data_p): New.
10988 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
10989 (linux_read_bts): ...this.
10990 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
10991
bd2e0e9e
DE
109922015-02-06 Doug Evans <dje@google.com>
10993
10994 * remote-m32r-sdi.c: Include symfile.h.
10995
f176c4b5
DE
109962015-02-06 Doug Evans <dje@google.com>
10997
10998 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
10999 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11000 to here.
11001
d6c146e9
PA
110022015-02-06 Pedro Alves <palves@redhat.com>
11003
11004 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11005
b9d61307
SM
110062015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11007
11008 PR gdb/15678
11009 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11010 (enable_count_command): Check args for NULL value.
11011
e9fbd043
DE
110122015-02-05 Doug Evans <xdje42@gmail.com>
11013
11014 * guile/scm-frame.c: Fix spelling errors in a comment.
11015
881d5d5d
JK
110162015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11017
11018 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11019 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11020 return type.
11021
20ba1ce6
PA
110222015-02-04 Pedro Alves <palves@redhat.com>
11023
11024 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11025 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11026 returns true.
11027 (resume_stopped_resumed_lwps): Don't check whether the thread is
11028 marked as executing.
11029 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11030
f962539a
AA
110312015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11032
11033 * regset.h (struct regset): Add flags field.
11034 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11035 * corelow.c (get_core_register_section): Add warning if the size
11036 exceeds the requested size and the regset does not have the
11037 REGSET_VARIABLE_SIZE flag set.
11038 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11039 flag.
11040 * armbsd-tdep.c (armbsd_gregset): Likewise.
11041 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11042 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11043 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11044 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11045
dde9acd6
AA
110462015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11047
11048 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11049 For ".reg-xstate", explicitly specify the requested section size
11050 via X86_XSTATE_SIZE instead of just 0 on input and
11051 X86_XSTATE_MAX_SIZE on output.
11052 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11053 Likewise.
11054
1528345d
AA
110552015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11056
11057 PR corefiles/17808:
11058 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11059 function type, particularly its SIZE parameter.
11060 * gdbarch.h: Regenerate.
11061 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11062 actual against required size using ">=" instead of "==".
11063 (amd64_collect_fpregset): Likewise.
11064 * i386-tdep.c (i386_supply_gregset): Likewise.
11065 (i386_collect_gregset): Likewise.
11066 (i386_supply_fpregset): Likewise.
11067 (i386_collect_fpregset): Likewise.
11068 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11069 (mips_fill_gregset_wrapper): Likewise.
11070 (mips_supply_fpregset_wrapper): Likewise.
11071 (mips_fill_fpregset_wrapper): Likewise.
11072 (mips64_supply_gregset_wrapper): Likewise.
11073 (mips64_fill_gregset_wrapper): Likewise.
11074 (mips64_supply_fpregset_wrapper): Likewise.
11075 (mips64_fill_fpregset_wrapper): Likewise.
11076 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11077 (am33_supply_fpregset_method): Likewise.
11078 (am33_collect_gregset_method): Likewise.
11079 (am33_collect_fpregset_method): Likewise.
11080
518be979
DE
110812015-02-04 Doug Evans <dje@google.com>
11082 Pedro Alves <palves@redhat.com>
11083 Eli Zaretskii <eliz@gnu.org>
11084
11085 PR tui/17810
11086 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11087 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11088 * tui/tui-file.c: #include tui/tui-command.h.
11089 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11090 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11091 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11092
80bd5fab
PA
110932015-02-04 Pedro Alves <palves@redhat.com>
11094
11095 Fix build breakage.
11096 * event-loop.c (gdb_do_one_event): Add default switch case.
11097
a7606d80
JK
110982015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11099
11100 Filter out inferior gcc option -fpreprocessed.
11101 * compile/compile.c (filter_args): New function.
11102 (get_args): Use it.
11103
70b66289
PA
111042015-02-03 Pedro Alves <palves@redhat.com>
11105
11106 * event-loop.c: Don't declare nor define a queue type for
11107 gdb_event_p.
11108 (event_queue): Delete.
11109 (create_event, create_file_event, gdb_event_xfree)
11110 (initialize_event_loop, process_event): Delete.
11111 (gdb_do_one_event): Return as soon as one event is handled.
11112 (handle_file_event): Change prototype. Used the passed in
11113 file_handler pointer and ready_mask instead of looping over all
11114 file handlers.
11115 (gdb_wait_for_event): Update the poll/select timeouts before
11116 blocking. Run event handlers directly instead of queueing events.
11117 Return as soon as one event is handled.
11118 (struct async_event_handler_data): Delete.
11119 (invoke_async_event_handler): Delete.
11120 (check_async_event_handlers): Change return type to int. Run
11121 event handlers directly instead of queueing events. Return as
11122 soon as one event is handled.
11123 (handle_timer_event): Delete.
11124 (update_wait_timeout): New function, factored out from
11125 poll_timers.
11126 (poll_timers): Reimplement.
11127 * event-loop.h (initialize_event_loop): Delete declaration.
11128 * top.c (gdb_init): Don't call initialize_event_loop.
11129
b7d2e916
PA
111302015-02-03 Pedro Alves <palves@redhat.com>
11131
11132 * event-loop.c (clear_async_event_handler): New function.
11133 * event-loop.h (clear_async_event_handler): New declaration.
11134 * record-btrace.c (record_btrace_async): New function.
11135 (init_record_btrace_ops): Install record_btrace_async.
11136 * record-full.c (record_full_async): New function.
11137 (record_full_resume): Don't mark the async event source here.
11138 (init_record_full_ops): Install record_full_async.
11139 (record_full_core_resume): Don't mark the async event source here.
11140 (init_record_full_core_ops): Install record_full_async.
11141 * remote.c (remote_async): Mark and clear the async stop reply
11142 queue event-loop token as appropriate.
11143
d9d41e78
PA
111442015-02-03 Pedro Alves <palves@redhat.com>
11145
11146 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11147 target_is_async_p instead of target_can_async.
11148 (linux_nat_wait): Use target_is_async_p instead of
11149 target_can_async. Don't enable async here.
11150 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11151 target_is_async_p instead of target_can_async.
11152
aa3de267
SM
111532015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11154
11155 * varobj.h (lang_varobj_ops): Mention which return values need
11156 to be freed.
11157
2c811c0f
JB
111582015-02-02 Joel Brobecker <brobecker@adacore.com>
11159
11160 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11161
b1eedac9
JB
111622015-02-02 Joel Brobecker <brobecker@adacore.com>
11163
11164 PR gdb/17856:
11165 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11166 results found in the cache.
11167
66c168ae
JB
111682015-02-02 Joel Brobecker <brobecker@adacore.com>
11169
11170 PR gdb/17854:
11171 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11172 when allocating a new one.
11173
4bdc02b2
TT
111742015-02-01 Tom Tromey <tom@tromey.com>
11175
11176 * MAINTAINERS: Remove myself.
11177
ae6ae975
DE
111782015-01-31 Doug Evans <xdje42@gmail.com>
11179
11180 * dwarf2read.c (process_structure_scope): Update setting of
11181 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11182 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11183 (set_type_vptr_fieldno): New function.
11184 (internal_type_vptr_basetype): New function.
11185 (set_type_vptr_basetype): New function.
11186 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11187 TYPE_VPTR_BASETYPE.
11188 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11189 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11190 (print_cplus_stuff): ... moved here.
11191 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11192 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11193 moved to ...
11194 (struct cplus_struct_type): ... here. All uses updated.
11195 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11196 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11197 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11198 * stabsread.c (read_tilde_fields): Update setting of
11199 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11200
09e2d7c7
DE
112012015-01-31 Doug Evans <xdje42@gmail.com>
11202
11203 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11204 to self_p.
11205 (cp_print_class_member): Rename local domain to self_type.
11206 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11207 domain_type to self_type.
11208 (set_die_type) <need_gnat_info>: Handle
11209 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11210 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11211 TYPE_SPECIFIC_SELF_TYPE.
11212 * gdbtypes.c (internal_type_self_type): New function.
11213 (set_type_self_type): New function.
11214 (smash_to_memberptr_type): Rename parameter domain to self_type.
11215 Update setting of TYPE_SELF_TYPE.
11216 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11217 (smash_to_method_type): Rename parameter domain to self_type.
11218 Update setting of TYPE_SELF_TYPE.
11219 (check_stub_method): Call smash_to_method_type.
11220 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11221 (copy_type_recursive): Ditto.
11222 * gdbtypes.h (enum type_specific_kind): New value
11223 TYPE_SPECIFIC_SELF_TYPE.
11224 (struct main_type) <type_specific>: New member self_type.
11225 (struct cplus_struct_type) <fn_field.type>: Update comment.
11226 (TYPE_SELF_TYPE): Rewrite.
11227 (internal_type_self_type, set_type_self_type): Declare.
11228 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11229 self_type.
11230 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11231 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11232 TYPE_TARGET_TYPE.
11233 * stabsread.c (read_member_functions): Mark methods with
11234 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11235 TYPE_SELF_TYPE.
11236
4bfb94b8
DE
112372015-01-31 Doug Evans <xdje42@gmail.com>
11238
11239 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11240 All uses updated.
11241
5f4ce105
DE
112422015-01-31 Doug Evans <xdje42@gmail.com>
11243
11244 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11245 or unions. Return zero if union.
11246 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11247 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11248 gnuv3_get_vtable.
11249 (compute_vtable_size): Assert only passed structs.
11250 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11251
f6b3afbf
DE
112522015-01-31 Doug Evans <xdje42@gmail.com>
11253
11254 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11255 kinds.
11256
cfb069a8
GB
112572015-01-31 Gary Benson <gbenson@redhat.com>
11258 Doug Evans <dje@google.com>
11259
11260 PR cli/9007
11261 PR cli/11920
11262 PR cli/15548
11263 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11264 reached.
11265 * common/common-exceptions.h (enum errors)
11266 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11267 * completer.h (get_max_completions_reached_message): New declaration.
11268 (max_completions): Likewise.
11269 (completion_tracker_t): New typedef.
11270 (new_completion_tracker): New declaration.
11271 (make_cleanup_free_completion_tracker): Likewise.
11272 (maybe_add_completion_enum): New enum.
11273 (maybe_add_completion): New declaration.
11274 (throw_max_completions_reached_error): Likewise.
11275 * completer.c (max_completions): New global variable.
11276 (new_completion_tracker): New function.
11277 (free_completion_tracker): Likewise.
11278 (make_cleanup_free_completion_tracker): Likewise.
11279 (maybe_add_completions): Likewise.
11280 (throw_max_completions_reached_error): Likewise.
11281 (complete_line): Remove duplicates and limit result to max_completions
11282 entries.
11283 (get_max_completions_reached_message): New function.
11284 (gdb_display_match_list): Handle max_completions.
11285 (_initialize_completer): New declaration and function.
11286 * symtab.c: Include completer.h.
11287 (completion_tracker): New static variable.
11288 (completion_list_add_name): Call maybe_add_completion.
11289 (default_make_symbol_completion_list_break_on_1): Renamed from
11290 default_make_symbol_completion_list_break_on. Maintain
11291 completion_tracker across calls to completion_list_add_name.
11292 (default_make_symbol_completion_list_break_on): New function.
11293 * top.c (init_main): Set rl_completion_display_matches_hook.
11294 * tui/tui-io.c: Include completer.h.
11295 (tui_old_rl_display_matches_hook): New static global.
11296 (tui_rl_display_match_list): Notify user if max-completions reached.
11297 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11298 * NEWS (New Options): Mention set/show max-completions.
11299
e11c72c7
GB
113002015-01-31 Gary Benson <gbenson@redhat.com>
11301
11302 * symtab.c (struct add_name_data) <code>: New field.
11303 Updated comments.
11304 (add_symtab_completions): New function.
11305 (symtab_expansion_callback): Likewise.
11306 (default_make_symbol_completion_list_break_on): Set datum.code.
11307 Move minimal symbol scan before calling expand_symtabs_matching.
11308 Scan known primary symtabs for externs and statics before calling
11309 expand_symtabs_matching. Pass symtab_expansion_callback as
11310 expansion_notify argument to expand_symtabs_matching. Do not scan
11311 primary symtabs for externs and statics after calling
11312 expand_symtabs_matching.
11313
276d885b
GB
113142015-01-31 Gary Benson <gbenson@redhat.com>
11315
11316 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11317 (struct quick_symbol_functions) <expand_symtabs_matching>:
11318 New argument expansion_notify. All uses updated.
11319 (expand_symtabs_matching): New argument expansion_notify.
11320 All uses updated.
11321 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11322 Also print expansion notify.
11323 * symtab.c (expand_symtabs_matching_via_partial): Call
11324 expansion_notify whenever a partial symbol table is expanded.
11325 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11326 expansion_notify whenever a symbol table is instantiated.
11327
82083d6d
DE
113282015-01-31 Doug Evans <xdje42@gmail.com>
11329
11330 * cli-out.c: #include completer.h, readline/readline.h.
11331 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11332 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11333 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11334 * cli-out.h (cli_display_match_list): Declare.
11335 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11336 (ELLIPSIS_LEN): Ditto.
11337 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11338 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11339 (gdb_fnprint, gdb_print_filename): Ditto.
11340 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11341 (gdb_display_match_list): Ditto.
11342 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11343 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11344 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11345 (match_list_displayer): New struct.
11346 (gdb_display_match_list): Declare.
11347 * top.c (init_main): Set rl_completion_display_matches_hook.
11348 * tui/tui-io.c: #include completer.h.
11349 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11350 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11351 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11352 (tui_mld_getc, tui_mld_read_key): Ditto.
11353 (tui_rl_display_match_list): Rewrite.
11354 (tui_handle_resize_during_io): New arg for_completion. All callers
11355 updated.
11356
f57d2163
DE
113572015-01-31 Doug Evans <xdje42@gmail.com>
11358
11359 Add symbol lookup cache.
11360 * NEWS: Document new options and commands.
11361 * symtab.c (symbol_cache_key): New static global.
11362 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11363 (SYMBOL_LOOKUP_FAILED): New macro.
11364 (symbol_cache_slot_state): New enum.
11365 (block_symbol_cache): New struct.
11366 (symbol_cache): New struct.
11367 (new_symbol_cache_size, symbol_cache_size): New static globals.
11368 (hash_symbol_entry, eq_symbol_entry): New functions.
11369 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11370 (make_symbol_cache, free_symbol_cache): New functions.
11371 (get_symbol_cache, symbol_cache_cleanup): New function.
11372 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11373 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11374 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11375 (symbol_cache_flush, symbol_cache_dump): New functions.
11376 (maintenance_print_symbol_cache): New function.
11377 (maintenance_flush_symbol_cache): New function.
11378 (symbol_cache_stats): New function.
11379 (maintenance_print_symbol_cache_statistics): New function.
11380 (symtab_new_objfile_observer): New function.
11381 (symtab_free_objfile_observer): New function.
11382 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11383 (_initialize_symtab): Init symbol_cache_key. New parameter
11384 maint symbol-cache-size. New maint commands print symbol-cache,
11385 print symbol-cache-statistics, flush-symbol-cache.
11386 Install new_objfile, free_objfile observers.
11387
e700d1b2
JB
113882015-01-31 Joel Brobecker <brobecker@adacore.com>
11389
11390 PR symtab/17855
11391 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11392 to end.
11393
9f050062
DE
113942015-01-31 Doug Evans <xdje42@gmail.com>
11395
11396 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11397 * auto-load.c: #include ctype.h.
11398 (struct auto_load_pspace_info): Replace member loaded_scripts with
11399 new members loaded_script_files, loaded_script_texts.
11400 (auto_load_pspace_data_cleanup): Update.
11401 (init_loaded_scripts_info): Update.
11402 (get_auto_load_pspace_data_for_loading): Update.
11403 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11404 updated.
11405 (maybe_add_script_text): New function.
11406 (clear_section_scripts): Update.
11407 (source_script_file, execute_script_contents): New functions.
11408 (source_section_scripts): Add support for
11409 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11410 (print_scripts): New function.
11411 (auto_load_info_scripts): Also print inlined scripts.
11412 (maybe_print_unsupported_script_warning): Renamed from
11413 unsupported_script_warning_print. All callers updated.
11414 (maybe_print_script_not_found_warning): Renamed from
11415 script_not_found_warning_print. All callers updated.
11416 * extension-priv.h (struct extension_language_script_ops): New member
11417 objfile_script_executor.
11418 * extension.c (ext_lang_objfile_script_executor): New function.
11419 * extension.h (objfile_script_executor_func): New typedef.
11420 (ext_lang_objfile_script_executor): Declare.
11421 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11422 * guile/guile.c (guile_extension_script_ops): Update.
11423 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11424 * python/python.c (python_extension_script_ops): Update.
11425 (gdbpy_execute_objfile_script): New function.
11426
312809f8
EZ
114272015-01-31 Eli Zaretskii <eliz@gnu.org>
11428
11429 * tui/tui-io.c (tui_expand_tabs): New function.
11430 (tui_puts, tui_redisplay_readline): Expand TABs into the
11431 appropriate number of spaces.
11432 * tui/tui-regs.c: Include tui-io.h.
11433 (tui_register_format): Call tui_expand_tabs to expand TABs into
11434 the appropriate number of spaces.
11435 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11436
b6577aab
DE
114372015-01-30 Doug Evans <dje@google.com>
11438
11439 * NEWS: "info source" command now display producer string if present.
11440 * source.c (source_info): Print producer string if present.
11441
6da58d3e
SM
114422015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11443
11444 * varobj.c (varobj_delete): Fix comment.
11445
837ce252
SM
114462015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11447
11448 * varobj.c (create_child): Modify comment.
11449
b09e2c59
SM
114502015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11451
11452 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11453 parameter.
11454 (ada_name_of_variable): Same.
11455 (ada_path_expr_of_child): Same.
11456 (ada_value_of_variable): Same.
11457 (ada_value_is_changeable_p): Same.
11458 (ada_value_has_mutated): Same.
11459 * c-varobj.c (varobj_is_anonymous_child): Same.
11460 (c_is_path_expr_parent): Same.
11461 (c_number_of_children): Same.
11462 (c_name_of_variable): Same.
11463 (c_path_expr_of_child): Same.
11464 (get_type): Same.
11465 (c_value_of_variable): Same.
11466 (cplus_number_of_children): Same.
11467 (cplus_name_of_variable): Same.
11468 (cplus_path_expr_of_child): Same.
11469 (cplus_value_of_variable): Same.
11470 * jv-varobj.c (java_number_of_children): Same.
11471 (java_name_of_variable): Same.
11472 (java_path_expr_of_child): Same.
11473 (java_value_of_variable): Same.
11474 * varobj.c (number_of_children): Same.
11475 (name_of_variable): Same.
11476 (is_root_p): Same.
11477 (varobj_ensure_python_env): Same.
11478 (varobj_get_objname): Same.
11479 (varobj_get_expression): Same.
11480 (varobj_get_display_format): Same.
11481 (varobj_get_display_hint): Same.
11482 (varobj_has_more): Same.
11483 (varobj_get_thread_id): Same.
11484 (varobj_get_frozen): Same.
11485 (dynamic_varobj_has_child_method): Same.
11486 (varobj_get_gdb_type): Same.
11487 (is_path_expr_parent): Same.
11488 (varobj_default_is_path_expr_parent): Same.
11489 (varobj_get_language): Same.
11490 (varobj_get_attributes): Same.
11491 (varobj_is_dynamic_p): Same.
11492 (varobj_get_child_range): Same.
11493 (varobj_value_has_mutated): Same.
11494 (varobj_get_value_type): Same.
11495 (number_of_children): Same.
11496 (name_of_variable): Same.
11497 (check_scope): Same.
11498 (varobj_editable_p): Same.
11499 (varobj_value_is_changeable_p): Same.
11500 (varobj_floating_p): Same.
11501 (varobj_default_value_is_changeable_p): Same.
11502
2568868e
SM
115032015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11504
11505 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11506 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11507 child->path_expr.
11508 (cplus_path_expr_of_child): Same.
11509
ca83fa81
SM
115102015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11511
11512 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11513 result.
11514 (mi_cmd_var_info_expression): Same.
11515 * varobj.c (varobj_get_expression): Mention in the comment that
11516 the result must by freed by the caller.
11517
afa269ae
SM
115182015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11519
11520 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11521 varobj_get_type.
11522 (varobj_update_one): Same.
11523 * varobj.c (update_type_if_necessary): Free curr_type_str and
11524 new_type_str.
11525 (varobj_get_type): Specify in comment that the result needs to be
11526 freed by the caller.
11527
cd366ee8
DE
115282015-01-29 Doug Evans <dje@google.com>
11529
11530 PR symtab/17890
11531 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11532
38360086
MW
115332015-01-25 Mark Wielaard <mjw@redhat.com>
11534
11535 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11536 * utils.c (producer_is_gcc_ge_4): Likewise.
11537 (producer_is_gcc): New function.
11538 * utils.h (producer_is_gcc): New declaration.
11539
df25ebbd
JB
115402015-01-29 Joel Brobecker <brobecker@adacore.com>
11541
11542 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11543 kind.
11544 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11545 parameter by "addr_stack" parameter.
11546 (resolve_dynamic_range): Replace "addr" parameter by
11547 "stack_addr" parameter. Update function documentation.
11548 Update code accordingly.
11549 (resolve_dynamic_array, resolve_dynamic_union)
11550 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11551 (resolve_dynamic_type): Update code, following the changes made
11552 to resolve_dynamic_type_internal's interface.
11553 * dwarf2loc.h (struct property_addr_info): New.
11554 (dwarf2_evaluate_property): Replace "address" parameter
11555 by "addr_stack" parameter. Adjust function documentation.
11556 (struct dwarf2_offset_baton): New.
11557 (struct dwarf2_property_baton): Update documentation of
11558 field "referenced_type" to be more general. New field
11559 "offset_info" in union data field.
11560 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11561 parameter by "addr_stack" parameter. Adjust code accordingly.
11562 Add support for PROP_ADDR_OFFSET properties.
11563 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11564 DW_AT_data_member_location attributes as well. Use case
11565 statements instead of if/else condition.
11566
4a0ca9ec
JB
115672015-01-29 Joel Brobecker <brobecker@adacore.com>
11568
11569 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11570 Return zero if PARENT_VALUE is NULL and parent_type's
11571 range type is dynamic.
11572
ddb87a81
JB
115732015-01-29 Joel Brobecker <brobecker@adacore.com>
11574
11575 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11576 nonzero if the type's subtype is dynamic.
11577 (resolve_dynamic_range): Also resolve the range's subtype.
11578
3d7ad9b4 115792015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 11580
3d7ad9b4 11581 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
11582 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11583
3a8b707a
DE
115842015-01-27 Doug Evans <dje@google.com>
11585
11586 * NEWS: Mention gdb.Objfile.username.
11587 * python/py-objfile.c (objfpy_get_username): New function.
11588 (objfile_getset): Add "username".
11589
d35b90fb
MW
115902015-01-24 Mark Wielaard <mjw@redhat.com>
11591
11592 * stack.c (return_command): Markup warning message with _.
11593
734ae125
DE
115942015-01-24 Doug Evans <xdje42@gmail.com>
11595
11596 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11597
527f3840
JK
115982015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11599
11600 Fix 100x slowdown regression on DWZ files.
11601 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11602 (struct line_header): Add offset and offset_in_dwz.
11603 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11604 (free_line_header_voidp): New declaration.
11605 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11606 functions.
11607 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11608 (handle_DW_AT_stmt_list): Use line_header_hash.
11609 (free_line_header_voidp): New function.
11610 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11611 (dwarf_decode_lines): New parameter decode_mapping, use it.
11612 (dwarf2_free_objfile): Free line_header_hash.
11613
f7e5394d
SM
116142015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11615
11616 PR gdb/17416
11617 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11618 value_ind.
11619
743649fd
MW
116202015-01-15 Mark Wielaard <mjw@redhat.com>
11621
11622 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11623 DW_AT_noreturn.
11624 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11625 calling_convention an 8 bit bit field.
11626 (TYPE_NO_RETURN): New macro.
11627 * infcmd.c (finish_command): Query if function does not return
11628 normally.
11629 * stack.c (return_command): Likewise.
11630
198297aa
PA
116312015-01-23 Pedro Alves <palves@redhat.com>
11632
11633 * linux-nat.c (linux_is_async_p): New macro.
11634 (linux_nat_is_async_p):
11635 (linux_nat_terminal_inferior): Check whether the target can async
11636 instead of whether it is already async.
11637 (linux_nat_terminal_ours): Don't check whether the target is
11638 async.
11639 (linux_async_pipe): Use linux_is_async_p.
11640
253828f1
JK
116412015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11642
11643 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11644 '-ascending'.
11645 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11646 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11647 Sort tp_array using tp_array_compar.
11648 (_initialize_thread): Extend thread_apply_all_command help.
11649
f0e8c4c5
JK
116502015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11651
11652 * corelow.c (core_open): Call also thread_command.
11653 * gdbthread.h (thread_command): New prototype moved from ...
11654 * thread.c (thread_command): ... here.
11655 (thread_command): Make it global.
11656
03b79603
PA
116572015-01-22 Pedro Alves <palves@redhat.com>
11658
11659 * configure.ac [*mingw32*]: Check $curses_found instead of
11660 $prefer_curses.
11661 * configure: Regenerate.
11662 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11663 HAVE_NCURSES_NCURSES_H checks.
11664
6b8a872f
EZ
116652015-01-22 Eli Zaretskii <eliz@gnu.org>
11666
bbbbffbb 11667 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
11668 fails with the 1st arg NULL, try again with "unknown". Don't test
11669 the "cup" capability: it isn't supported by the Windows port of
11670 ncurses, but the Windows console driver is still capable of
11671 supporting TUI.
11672
4b62a76e
JK
116732015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11674
11675 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11676
82a864f9
EZ
116772015-01-22 Eli Zaretskii <eliz@gnu.org>
11678
11679 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11680 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11681 reason that "make TAGS" is broken.
11682
b35018fd
CG
116832015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11684
11685 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11686 and check additional store instructions.
11687
ffbc4646
WW
116882015-01-21 Wei-cheng Wang <cole945@gmail.com>
11689
11690 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11691
ddeca1df
WW
116922015-01-21 Wei-cheng Wang <cole945@gmail.com>
11693
11694 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11695 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11696 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11697 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11698 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11699 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11700 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11701 ppc_process_record_op19, ppc_process_record_op31,
11702 ppc_process_record_op59, ppc_process_record_op60,
11703 ppc_process_record_op63): Likewise.
11704
049bb5de
JB
117052015-01-20 Joel Brobecker <brobecker@adacore.com>
11706
11707 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11708 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11709 strerror.
11710
42b87c63 117112015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
11712
11713 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11714 ppc_process_record_op31, ppc_process_record_op59,
11715 ppc_process_record_op60, ppc_process_record_op63,
11716 ppc_process_record): Fix -Wformat warning.
11717 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11718 Remove unused variables.
11719
569340fc
CG
117202015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11721
11722 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11723
63413d85
EZ
117242015-01-19 Eli Zaretskii <eliz@gnu.org>
11725
11726 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11727 CONFIG_OBS if not building with a curses library.
11728 * configure: Regenerate.
11729
11730 * windows-termcap.c: Include defs.h. Make the whole body empty if
11731 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11732 HAVE_NCURSES_NCURSES_H is defined.
11733
16d8013c
JB
117342015-01-19 Joel Brobecker <brobecker@adacore.com>
11735
11736 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11737 from end of line to start of next line.
11738
cf90fd9a
WW
117392015-01-17 Wei-cheng Wang <cole945@gmail.com>
11740
11741 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11742 Scan PLT stub backward for reverse debugging.
11743 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11744
b4cdae6f
WW
117452015-01-17 Wei-cheng Wang <cole945@gmail.com>
11746 Ulrich Weigand <uweigand@de.ibm.com>
11747
11748 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11749 gdb_target_obs.
11750 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11751 record.
11752 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11753 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11754 (ppc_linux_init_abi): Set process_record, process_record_signal.
11755 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11756 ppc_linux_record_tdep to gdbarch_tdep.
11757 (ppc_process_record): New declaration.
11758 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11759 ppc_process_record_op19, ppc_process_record_op31,
11760 ppc_process_record_op59, ppc_process_record_op60,
11761 ppc_process_record_op63, ppc_process_record): New functions.
11762
2608dbf8
WW
117632015-01-17 Wei-cheng Wang <cole945@gmail.com>
11764
11765 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11766 rs6000_in_function_epilogue_frame_p and add an argument
11767 for frame_info.
11768 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11769 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11770 New functions.
11771 (rs6000_epilogue_frame_unwind): New.
11772 (rs6000_gdbarch_init): Append epilogue unwinder.
11773
4c347be6
SDJ
117742015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11775
11776 * nat/linux-personality.c: Replace "#ifndef
11777 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11778 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11779 systems.
11780
9f2850ba
EZ
117812015-01-16 Eli Zaretskii <eliz@gnu.org>
11782
6cdb25f4
EZ
11783 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11784 functions.
11785 (_initialize_tui_win) <border-kind, border-mode>:
11786 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
11787 (tui_set_tab_width_command): Fix the commentary.
11788
6cdb25f4
EZ
11789 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11790
bf555842
EZ
11791 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11792 Doc fix.
cb86fcc1
EZ
11793 (tui_set_tab_width_command): Delete and recreate the source and
11794 the disassembly windows, to show the effect of the changed tab
11795 size immediately.
bf555842 11796
9f2850ba
EZ
11797 * tui/tui-data.h (LINE_PREFIX): Make shorter
11798 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11799 "Thread NNNNN.XXXX" thread ID notation on Windows.
11800
95761b2d
JK
118012015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11802
11803 Fix gcc-5 compilation.
11804 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11805
8cc73a39
SDJ
118062015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11807
11808 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11809 (linux-personality.o): New rule.
11810 * common/common-defs.h: Include <stdint.h>.
11811 * config/aarch64/linux.mh (NATDEPFILES): Include
11812 linux-personality.o.
11813 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11814 * config/arm/linux.mh (NATDEPFILES): Likewise.
11815 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11816 * config/i386/linux.mh (NATDEPFILES): Likewise.
11817 * config/ia64/linux.mh (NATDEPFILES): Likewise.
11818 * config/m32r/linux.mh (NATDEPFILES): Likewise.
11819 * config/m68k/linux.mh (NATDEPFILES): Likewise.
11820 * config/mips/linux.mh (NATDEPFILES): Likewise.
11821 * config/pa/linux.mh (NATDEPFILES): Likewise.
11822 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11823 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11824 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11825 * config/s390/linux.mh (NATDEPFILES): Likewise.
11826 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11827 * config/sparc/linux.mh (NATDEPFILES): Likewise.
11828 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11829 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11830 * defs.h: Remove #include <stdint.h> (moved to
11831 common/common-defs.h).
11832 * linux-nat.c: Include nat/linux-personality.h. Remove #include
11833 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11834 nat/linux-personality.c).
11835 (linux_nat_create_inferior): Remove code to disable address space
11836 randomization (moved to nat/linux-personality.c). Create cleanup
11837 to disable address space randomization.
11838 * nat/linux-personality.c: New file.
11839 * nat/linux-personality.h: Likewise.
11840
fb23d554
SDJ
118412015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11842
11843 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
11844 common/posix-strerror.c.
11845 (posix-strerror.o): New rule.
11846 (mingw-strerror.o): Likewise.
11847 * common/common-utils.h (safe_strerror): Move prototype to here,
11848 from utils.h.
11849 * common/common.host: New file.
11850 * common/mingw-strerror.c: Likewise.
11851 * common/posix-strerror.c: Likewise.
11852 * configure: Regenerated.
11853 * configure.ac: Source common/common.host. Add variable
11854 common_host_obs to gdb_host_obs.
11855 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
11856 gdb/common/posix-strerror.c when warning about the use of
11857 strerror.
11858 * mingw-hdep.c (safe_strerror): Remove definition; move it to
11859 common/mingw-strerror.c.
11860 * posix-hdep.c (safe_strerror): Remove definition; move it to
11861 common/posix-hdep.c.
11862 * utils.h (safe_strerror): Remove prototype; move to
11863 common/common-utils.h.
11864
3af8af43
JB
118652015-01-15 Joel Brobecker <brobecker@adacore.com>
11866
11867 GDB 7.8.2 released.
11868
bafffb51
JB
118692015-01-15 Joel Brobecker <brobecker@adacore.com>
11870
11871 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
11872 ___XA type if the array has already been fixed.
11873
cdf43629
YQ
118742015-01-14 Yao Qi <yao@codesourcery.com>
11875
11876 * Makefile.in (ppc-linux.o): New rule.
11877 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
11878 * configure.ac: AC_CHECK_FUNCS(getauxval).
11879 * config.in: Re-generated.
11880 * configure: Re-generated.
11881 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
11882 Declare.
11883 * nat/ppc-linux.c: New file.
11884 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
11885 Call ppc64_64bit_inferior_p.
11886
514c5338
YQ
118872015-01-14 Yao Qi <yao@codesourcery.com>
11888
11889 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
11890 nat/ppc-linux.h.
11891 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
11892 (PPC_FEATURE_HAS_DFP): Likewise.
11893 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11894 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11895 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11896 Include "nat/ppc-linux.h".
11897 * nat/ppc-linux.h: New file.
11898 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
11899
5589af0e
PA
119002015-01-14 Pedro Alves <palves@redhat.com>
11901
11902 PR gdb/17525
11903 * breakpoint.c: Include "interps.h".
11904 (bpstat_do_actions_1): Also check whether the interpreter is
11905 async.
11906
6c400b59
PA
119072015-01-14 Pedro Alves <palves@redhat.com>
11908
11909 PR cli/17828
11910 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
11911 reinstall if the interpreter is sync.
11912
e02c96a7
DE
119132015-01-13 Doug Evans <dje@google.com>
11914
11915 * objfiles.c (objfile_filename): New function.
11916 * objfiles.h (objfile_filename): Declare it.
11917 (objfile_name): Add function comment.
11918 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
11919 bfd file name (which may be realpath'd), and the original name.
11920
3b2f13ff
JB
119212015-01-13 Joel Brobecker <brobecker@adacore.com>
11922
11923 * NEWS: Create a new section for the next release branch.
11924 Rename the section of the current branch, now that it has
11925 been cut.
11926
b4cfe7f8
JB
119272015-01-13 Joel Brobecker <brobecker@adacore.com>
11928
11929 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
11930 * version.in: Bump version to 7.9.50.DATE-cvs.
11931
92fc2e69
JB
119322015-01-13 Joel Brobecker <brobecker@adacore.com>
11933
11934 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
11935 Remove trailing new-line in argument of call to warning.
11936
f71f0b0d
JB
119372015-01-13 Joel Brobecker <brobecker@adacore.com>
11938
11939 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
11940 new-line in argument of call to "warning".
11941
04dccad0
JB
119422015-01-13 Joel Brobecker <brobecker@adacore.com>
11943
11944 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
11945 in static block, then try searching for primitive types.
11946
08b13bdd
PP
119472015-01-12 Patrick Palka <patrick@parcs.ath.cx>
11948
11949 * top.h (gdb_add_history): Declare.
11950 * top.c (command_count): New variable.
11951 (gdb_add_history): New function.
11952 (gdb_safe_append_history): New static function.
11953 (quit_force): Call it.
11954 (command_line_input): Use gdb_add_history instead of
11955 add_history.
11956 * event-top.c (command_line_handler): Likewise.
11957
4ac15b59
JC
119582015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
11959
11960 PR gdb/17046
11961 * darwin-nat.c: Replace <machine/setjmp.h> #include by
11962 <setjmp.h> #include.
11963
005e54bb
DE
119642015-01-11 Doug Evans <xdje42@gmail.com>
11965
11966 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
11967
439250fb
DE
119682015-01-11 Doug Evans <xdje42@gmail.com>
11969
11970 PR gdb/15830
11971 * NEWS: The "maint demangle" command is renamed as "demangle".
11972 * demangle.c: #include cli/cli-utils.h, language.h.
11973 (demangle_command): New function.
11974 (_initialize_demangle): Add new command "demangle".
11975 * maint.c (maintenance_demangle): Stub out.
11976 (_initialize_maint_cmds): Update help text for "maint demangle",
11977 and mark as deprecated.
11978
ebf3aa72
MK
119792015-01-11 Mark Kettenis <kettenis@gnu.org>
11980
11981 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
11982 inferior_thread is a function.
11983
6bf045cd
PP
119842015-01-09 Patrick Palka <patrick@parcs.ath.cx>
11985
11986 * Makefile.in (.y.c): Don't munge yacc's #line
11987 directives.
11988
588dcc3e
PP
119892015-01-09 Patrick Palka <patrick@parcs.ath.cx>
11990
11991 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
11992 to prompt for input.
11993 * tui/tui-hooks.c (tui_query_hook): Remove.
11994 (tui_install_hooks): Don't set deprecated_query_hook.
11995 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
11996 height calculation. Always update the command window's cur_line.
11997
9c02b525
PA
119982015-01-09 Pedro Alves <palves@redhat.com>
11999
12000 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12001 function.
12002 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12003 declaration.
12004 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12005 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12006 stop_reason.
12007 (check_stopped_by_watchpoint): New function.
12008 (save_sigtrap): Reimplement.
12009 (linux_nat_stopped_by_watchpoint): Adjust.
12010 (linux_nat_lp_status_is_event): Delete.
12011 (stop_wait_callback): Only call save_sigtrap after storing the
12012 pending status.
12013 (status_callback): If the thread had been stopped for a breakpoint
12014 that has since been removed, discard the event and resume the LWP.
12015 (count_events_callback, select_event_lwp_callback): Use
12016 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12017 (cancel_breakpoint): Rename to ...
12018 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12019 stopped for a software breakpoint or hardware breakpoint.
12020 (select_event_lwp): Only give preference to the stepping LWP in
12021 all-stop mode. Adjust comments.
12022 (stop_and_resume_callback): Remove references to new_pending_p.
12023 (linux_nat_filter_event): Likewise. Leave exit events of the
12024 leader thread pending here. Handle signal short circuiting here.
12025 Only call save_sigtrap after storing the pending waitstatus.
12026 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12027 new_pending. Don't handle leaving events the caller is not
12028 interested in pending here, nor handle signal short-circuiting
12029 here. Also give equal priority to all LWPs that have had events
12030 in non-stop mode. If reporting a software breakpoint event,
12031 unadjust the LWP's PC.
12032 * linux-nat.h (enum lwp_stop_reason): New.
12033 (struct lwp_info) <stop_pc>: New field.
12034 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12035 (struct lwp_info) <stop_reason>: New field.
12036 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12037
8af756ef
PA
120382015-01-09 Pedro Alves <palves@redhat.com>
12039
12040 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12041 Set the LWP's 'resumed' flag.
12042
8a99810d
PA
120432015-01-09 Pedro Alves <palves@redhat.com>
12044
12045 * linux-nat.c (linux_resume_one_lwp): New function.
12046 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12047 (linux_nat_resume): Use lwp_status_pending_p and
12048 linux_resume_one_lwp.
12049 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12050 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12051 (status_callback, running_callback): Use lwp_status_pending_p.
12052 (lwp_status_pending_p): New function.
12053 (stop_and_resume_callback): Use lwp_status_pending_p.
12054 (linux_nat_filter_event): Use linux_resume_one_lwp.
12055 (linux_nat_wait_1): Always use status_callback to look for an LWP
12056 with a pending status. Use linux_resume_one_lwp.
12057 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12058 linux_resume_one_lwp.
12059
f7ce857f
PA
120602015-01-09 Pedro Alves <palves@redhat.com>
12061
12062 * breakpoint.c (bp_location_inserted_here_p): New function,
12063 factored out from ...
12064 (breakpoint_inserted_here_p): ... here. Use
12065 ALL_BP_LOCATIONS_AT_ADDR.
12066 (software_breakpoint_inserted_here_p): Use
12067 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12068
c1a747c1
PA
120692014-01-09 Pedro Alves <palves@redhat.com>
12070
12071 Skip enabling event reporting if the kernel supports
12072 PTRACE_EVENT_CLONE.
12073 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12074 (thread_db_use_events): New function.
12075 (try_thread_db_load_1): Check thread_db_use_events before enabling
12076 event reporting.
12077 (update_thread_state): New function.
12078 (attach_thread): Use it. Check thread_db_use_events before
12079 enabling event reporting.
12080 (thread_db_detach): Check thread_db_use_events before disabling
12081 event reporting.
12082 (find_new_threads_callback): Check thread_db_use_events before
12083 enabling event reporting. Update the thread's state if not using
12084 libthread_db events.
12085
a33e3959
PA
120862015-01-09 Pedro Alves <palves@redhat.com>
12087
12088 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12089 about to wait for is > 0.
12090 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12091 the kernel thread ID is -1.
12092
8784d563
PA
120932015-01-09 Pedro Alves <palves@redhat.com>
12094
12095 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12096 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12097 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12098 ptrace option flags.
12099 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12100 field.
12101 * nat/linux-procfs.c: Include <dirent.h>.
12102 (linux_proc_get_int): New parameter "warn". Handle it.
12103 (linux_proc_get_tgid): Adjust.
12104 (linux_proc_get_tracerpid): Rename to ...
12105 (linux_proc_get_tracerpid_nowarn): ... this.
12106 (linux_proc_pid_get_state): New function, factored out from
12107 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12108 and handle it.
12109 (linux_proc_pid_is_gone): New function.
12110 (linux_proc_pid_is_stopped): Adjust.
12111 (linux_proc_pid_is_zombie_maybe_warn)
12112 (linux_proc_pid_is_zombie_nowarn): New functions.
12113 (linux_proc_pid_is_zombie): Use
12114 linux_proc_pid_is_zombie_maybe_warn.
12115 (linux_proc_attach_tgid_threads): New function.
12116 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12117 (linux_proc_get_tracerpid): Rename to ...
12118 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12119 (linux_proc_pid_is_gone): New declaration.
12120 (linux_proc_pid_is_zombie): Update comment.
12121 (linux_proc_pid_is_zombie_nowarn): New declaration.
12122 (linux_proc_attach_lwp_func): New typedef.
12123 (linux_proc_attach_tgid_threads): New declaration.
12124 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12125 use nowarn functions.
12126 (linux_ptrace_attach_fail_reason_string): Move here from
12127 gdbserver/linux-low.c and rename.
12128 (ptrace_supports_feature): If the current ptrace options are not
12129 known yet, check them now, instead of asserting.
12130 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12131 Declare.
12132
883ed13e
PA
121332015-01-09 Pedro Alves <palves@redhat.com>
12134
12135 * linux-thread-db.c (thread_db_find_new_threads_silently)
12136 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12137 (find_new_threads_once): Print debug output on gdb_stdlog.
12138
1710aab8
CG
121392015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12140 Pedro Alves <palves@redhat.com>
12141
12142 * compile/compile.c: Include "gdb_wait.h".
12143 (do_rmdir): Check return value, and free 'zap'.
12144
b597c318
YQ
121452015-01-08 Pedro Alves <palves@redhat.com>
12146 Yao Qi <yao@codesourcery.com>
12147
12148 * dwarf2loc.c (indirect_pieced_value): Don't call
12149 gdb_sign_extend. Call extract_signed_integer instead.
12150 * utils.c (gdb_sign_extend): Remove.
12151 * utils.h (gdb_sign_extend): Remove declaration.
12152
025ac414
PM
121532015-01-07 Pierre Muller <muller@sourceware.org>
12154
12155 PR symtab/17811
12156 * stabsread.c (define_symbol): Set language for C++ special symbols.
12157
fa5af12a
PP
121582015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12159
12160 * inflow.c (initial_gdb_ttystate): Tweak comment.
12161
ea42d6f8
JB
121622015-01-07 Joel Brobecker <brobecker@adacore.com>
12163
12164 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12165 comment documenting function.
12166
6a06d660
PP
121672015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12168
12169 * terminal.h (set_initial_gdb_ttystate): Declare.
12170 * inflow.c (initial_gdb_ttystate): New static variable.
12171 (set_initial_gdb_ttystate): New setter.
12172 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12173 instead of our current terminal state.
12174 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12175
e810d75b
JB
121762015-01-07 Joel Brobecker <brobecker@adacore.com>
12177
12178 * guile/scm-type.c (tyscm_array_1): Add comment.
12179 * python/py-type.c (typy_array_1): Add comment.
12180
fce10a84
JB
121812015-01-06 Joel Brobecker <brobecker@adacore.com>
12182
12183 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12184 error if N2 is equal to N1 - 1.
12185
8503d6e1
JB
121862015-01-06 Joel Brobecker <brobecker@adacore.com>
12187
12188 * python/py-type.c (typy_array_1): Do not raise negative-length
12189 exception if N2 is equal to N1 - 1.
12190
4d29c0a8
DE
121912015-01-03 Doug Evans <xdje42@gmail.com>
12192
12193 * c-exp.y: Whitespace cleanup.
12194 (classify_inner_name): Remove extra ;.
12195
eaa6a9a4
MR
121962015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12197
12198 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12199 offset signed.
12200
02fe9972
DE
122012015-01-02 Doug Evans <dje@google.com>
12202
12203 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12204
e2ada9cb
DE
122052015-01-02 Doug Evans <dje@google.com>
12206
12207 * symtab.h (struct symbol): Fix typo in comment.
12208
32d0add0
JB
122092015-01-01 Joel Brobecker <brobecker@adacore.com>
12210
12211 Update year range in copyright notice of all files.
12212
76f2b779
JB
122132015-01-01 Joel Brobecker <brobecker@adacore.com>
12214
12215 * top.c (print_gdb_version): Update copyright year to 2015.
12216
077309e2 122172015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12218
077309e2 12219 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12220
077309e2 12221For older changes see ChangeLog-2014.
c906108c
SS
12222\f
12223Local Variables:
12224mode: change-log
12225left-margin: 8
12226fill-column: 74
12227version-control: never
57da7796 12228coding: utf-8
c906108c 12229End:
This page took 2.862141 seconds and 4 git commands to generate.