Add some more casts (2/2)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
19ba03f4
SM
12015-09-25 Simon Marchi <simon.marchi@ericsson.com>
2
3 * macrocmd.c (print_macro_callback): Add cast(s).
4 * macrotab.c (macro_bcache_str): Likewise.
5 (new_macro_definition): Likewise.
6 * main.c (captured_main): Likewise.
7 * maint.c (print_bfd_section_info): Likewise.
8 * mdebugread.c (mdebug_build_psymtabs): Likewise.
9 (basic_type): Likewise.
10 * memattr.c (mem_region_cmp): Likewise.
11 * memory-map.c (memory_map_start_memory): Likewise.
12 (memory_map_end_memory): Likewise.
13 (memory_map_start_property): Likewise.
14 (memory_map_end_property): Likewise.
15 (clear_result): Likewise.
16 * memrange.c (compare_mem_ranges): Likewise.
17 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
18 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
19 * mi/mi-console.c (mi_console_file_delete): Likewise.
20 (mi_console_file_fputs): Likewise.
21 (mi_console_raw_packet): Likewise.
22 (mi_console_file_flush): Likewise.
23 (mi_console_set_raw): Likewise.
24 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
25 (mi_new_thread): Likewise.
26 (mi_thread_exit): Likewise.
27 (mi_record_changed): Likewise.
28 (mi_inferior_added): Likewise.
29 (mi_inferior_appeared): Likewise.
30 (mi_inferior_exit): Likewise.
31 (mi_inferior_removed): Likewise.
32 (mi_interp_data): Likewise.
33 (mi_on_normal_stop): Likewise.
34 (mi_traceframe_changed): Likewise.
35 (mi_tsv_created): Likewise.
36 (mi_tsv_deleted): Likewise.
37 (mi_tsv_modified): Likewise.
38 (mi_breakpoint_created): Likewise.
39 (mi_breakpoint_deleted): Likewise.
40 (mi_breakpoint_modified): Likewise.
41 (mi_output_running_pid): Likewise.
42 (mi_inferior_count): Likewise.
43 (mi_solib_loaded): Likewise.
44 (mi_solib_unloaded): Likewise.
45 (mi_command_param_changed): Likewise.
46 (mi_memory_changed): Likewise.
47 (report_initial_inferior): Likewise.
48 (mi_ui_out): Likewise.
49 (mi_set_logging): Likewise.
50 * mi/mi-main.c (collect_cores): Likewise.
51 (print_one_inferior): Likewise.
52 (free_vector_of_ints): Likewise.
53 (free_splay_tree): Likewise.
54 (mi_execute_command): Likewise.
55 * mi/mi-out.c (mi_table_body): Likewise.
56 (mi_table_end): Likewise.
57 (mi_table_header): Likewise.
58 (mi_begin): Likewise.
59 (mi_end): Likewise.
60 (mi_field_int): Likewise.
61 (mi_field_string): Likewise.
62 (mi_field_fmt): Likewise.
63 (mi_flush): Likewise.
64 (mi_redirect): Likewise.
65 (field_separator): Likewise.
66 (mi_open): Likewise.
67 (mi_close): Likewise.
68 (mi_out_buffered): Likewise.
69 (mi_out_rewind): Likewise.
70 (mi_out_put): Likewise.
71 (mi_version): Likewise.
72 (mi_out_data_dtor): Likewise.
73 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
74 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
75 * minidebug.c (lzma_open): Likewise.
76 (lzma_pread): Likewise.
77 (lzma_close): Likewise.
78 (lzma_stat): Likewise.
79 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
80 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
81 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
82 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
83 (mips_micro_frame_cache): Likewise.
84 (mips_insn32_frame_cache): Likewise.
85 (mips_stub_frame_cache): Likewise.
86 (gdb_print_insn_mips): Likewise.
87 (value_of_mips_user_reg): Likewise.
88 (mips_gdbarch_init): Likewise.
89 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
90 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
91 (mipsnbsd_supply_gregset): Likewise.
92 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
93 (am33_collect_gregset_method): Likewise.
94 (am33_collect_fpregset_method): Likewise.
95 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
96 * moxie-tdep.c (moxie_frame_cache): Likewise.
97 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
98 (msp430_analyze_frame_prologue): Likewise.
99 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
100 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
101 (nios2_collect_gregset): Likewise.
102 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
103 (nios2_stub_frame_cache): Likewise.
104 * objc-lang.c (find_methods): Likewise.
105 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
106 (get_objfile_pspace_data): Likewise.
107 (get_objfile_bfd_data): Likewise.
108 (objfile_bfd_data_free): Likewise.
109 (add_to_objfile_sections): Likewise.
110 (do_free_objfile_cleanup): Likewise.
111 (resume_section_map_updates_cleanup): Likewise.
112 * opencl-lang.c (builtin_opencl_type): Likewise.
113 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
114 * osdata.c (osdata_start_osdata): Likewise.
115 (osdata_start_item): Likewise.
116 (osdata_start_column): Likewise.
117 (osdata_end_column): Likewise.
118 (clear_parsing_data): Likewise.
119 (osdata_free_cleanup): Likewise.
120 * parse.c (type_stack_cleanup): Likewise.
121 (exp_uses_objfile_iter): Likewise.
122 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
123 (ppc_linux_collect_gregset): Likewise.
124 (ppu2spu_prev_arch): Likewise.
125 (ppu2spu_this_id): Likewise.
126 (ppu2spu_prev_register): Likewise.
127 (ppu2spu_unwind_register): Likewise.
128 (ppu2spu_sniffer): Likewise.
129 (ppu2spu_dealloc_cache): Likewise.
130 (ppc_linux_init_abi): Likewise.
131 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
132 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
133 * progspace.c (restore_program_space): Likewise.
134 * psymtab.c (find_pc_sect_psymtab): Likewise.
135 (compare_psymbols): Likewise.
136 (psymbol_bcache_full): Likewise.
137 (allocate_psymtab): Likewise.
138 (discard_psymtabs_upto): Likewise.
139 * python/py-block.c (set_block): Likewise.
140 (del_objfile_blocks): Likewise.
141 * python/py-breakpoint.c (build_bp_list): Likewise.
142 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
143 (build_inferior_list): Likewise.
144 (py_free_inferior): Likewise.
145 * python/py-objfile.c (py_free_objfile): Likewise.
146 (objfile_to_objfile_object): Likewise.
147 * python/py-prettyprint.c (py_restore_tstate): Likewise.
148 * python/py-progspace.c (py_free_pspace): Likewise.
149 (pspace_to_pspace_object): Likewise.
150 * python/py-symbol.c (set_symbol): Likewise.
151 (del_objfile_symbols): Likewise.
152 * python/py-symtab.c (set_sal): Likewise.
153 (set_symtab): Likewise.
154 (del_objfile_symtab): Likewise.
155 (del_objfile_sal): Likewise.
156 * python/py-type.c (save_objfile_types): Likewise.
157 (set_type): Likewise.
158 * python/py-unwind.c (pyuw_prev_register): Likewise.
159 (pyuw_on_new_gdbarch): Likewise.
160 * python/py-utils.c (py_decref): Likewise.
161 (py_xdecref): Likewise.
162 (gdb_py_generic_dict): Likewise.
163 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
164 (gdbpy_clone_xmethod_worker_data): Likewise.
165 (gdbpy_get_xmethod_arg_types): Likewise.
166 (gdbpy_get_xmethod_result_type): Likewise.
167 (gdbpy_invoke_xmethod): Likewise.
168 * python/python.c (gdbpy_apply_type_printers): Likewise.
169 (gdbpy_free_type_printers): Likewise.
170 * record-btrace.c (record_btrace_disable_callback): Likewise.
171 (bfcache_hash): Likewise.
172 (bfcache_eq): Likewise.
173 (btrace_get_frame_function): Likewise.
174 (record_btrace_frame_unwind_stop_reason): Likewise.
175 (record_btrace_frame_this_id): Likewise.
176 (record_btrace_frame_prev_register): Likewise.
177 (record_btrace_frame_dealloc_cache): Likewise.
178 * record-full.c (record_full_message_wrapper): Likewise.
179 (record_full_save_cleanups): Likewise.
180 * regcache.c (regcache_descr): Likewise.
181 (do_regcache_xfree): Likewise.
182 (do_regcache_invalidate): Likewise.
183 (do_cooked_read): Likewise.
184 (regcache_transfer_regset): Likewise.
185 * reggroups.c (reggroup_add): Likewise.
186 (reggroup_next): Likewise.
187 (reggroup_prev): Likewise.
188 * remote-fileio.c (do_remote_fileio_request): Likewise.
189 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
190 (do_notif_event_xfree): Likewise.
191 * remote.c (get_remote_arch_state): Likewise.
192 (remote_pspace_data_cleanup): Likewise.
193 (get_remote_exec_file): Likewise.
194 (set_pspace_remote_exec_file): Likewise.
195 (compare_pnums): Likewise.
196 (clear_threads_listing_context): Likewise.
197 (remote_newthread_step): Likewise.
198 (start_thread): Likewise.
199 (end_thread): Likewise.
200 (remove_child_of_pending_fork): Likewise.
201 (remove_stop_reply_for_inferior): Likewise.
202 (remove_stop_reply_of_remote_state): Likewise.
203 (remote_notif_remove_once_on_match): Likewise.
204 (stop_reply_match_ptid_and_ws): Likewise.
205 (kill_child_of_pending_fork): Likewise.
206 (register_remote_g_packet_guess): Likewise.
207 (remote_read_description_p): Likewise.
208 (remote_read_description): Likewise.
209 (free_actions_list_cleanup_wrapper): Likewise.
210 (remote_async_serial_handler): Likewise.
211 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
212 (rl78_analyze_frame_prologue): Likewise.
213 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
214 (ppc_supply_fpregset): Likewise.
215 (ppc_supply_vsxregset): Likewise.
216 (ppc_supply_vrregset): Likewise.
217 (ppc_collect_gregset): Likewise.
218 (ppc_collect_fpregset): Likewise.
219 (ppc_collect_vsxregset): Likewise.
220 (ppc_collect_vrregset): Likewise.
221 (e500_move_ev_register): Likewise.
222 (do_regcache_raw_write): Likewise.
223 (rs6000_frame_cache): Likewise.
224 (rs6000_epilogue_frame_cache): Likewise.
225 (rs6000_gdbarch_init): Likewise.
226 * rx-tdep.c (rx_get_opcode_byte): Likewise.
227 (rx_analyze_frame_prologue): Likewise.
228 (rx_frame_type): Likewise.
229 (rx_frame_sniffer_common): Likewise.
230 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
231 (s390_frame_unwind_cache): Likewise.
232 (s390_stub_frame_unwind_cache): Likewise.
233 (s390_sigtramp_frame_unwind_cache): Likewise.
234 * score-tdep.c (score_make_prologue_cache): Likewise.
235 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
236 (sentinel_frame_prev_arch): Likewise.
237 * ser-base.c (fd_event): Likewise.
238 (push_event): Likewise.
239 (ser_base_write): Likewise.
240 * ser-pipe.c (pipe_close): Likewise.
241 * serial.c (serial_write): Likewise.
242 * sh-tdep.c (sh_frame_cache): Likewise.
243 (sh_stub_this_id): Likewise.
244 * sh64-tdep.c (sh64_frame_cache): Likewise.
245 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
246 (library_list_start_library): Likewise.
247 (library_list_start_list): Likewise.
248 (solib_aix_free_library_list): Likewise.
249 * solib-darwin.c (get_darwin_info): Likewise.
250 * solib-dsbt.c (get_dsbt_info): Likewise.
251 * solib-spu.c (append_ocl_sos): Likewise.
252 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
253 (get_svr4_info): Likewise.
254 (library_list_start_library): Likewise.
255 (svr4_library_list_start_list): Likewise.
256 (hash_probe_and_action): Likewise.
257 (equal_probe_and_action): Likewise.
258 (svr4_update_solib_event_breakpoint): Likewise.
259 (set_solib_svr4_fetch_link_map_offsets): Likewise.
260 (svr4_fetch_link_map_offsets): Likewise.
261 (svr4_have_link_map_offsets): Likewise.
262 * solib-target.c (library_list_start_segment): Likewise.
263 (library_list_start_section): Likewise.
264 (library_list_start_library): Likewise.
265 (library_list_end_library): Likewise.
266 (library_list_start_list): Likewise.
267 (solib_target_free_library_list): Likewise.
268 * solib.c (solib_ops): Likewise.
269 (set_solib_ops): Likewise.
270 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
271 * sparc-tdep.c (sparc_frame_cache): Likewise.
272 (sparc32_frame_cache): Likewise.
273 (sparc32_supply_gregset): Likewise.
274 (sparc32_collect_gregset): Likewise.
275 (sparc32_supply_fpregset): Likewise.
276 (sparc32_collect_fpregset): Likewise.
277 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
278 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
279 (sparc64_collect_gregset): Likewise.
280 (sparc64_supply_fpregset): Likewise.
281 (sparc64_collect_fpregset): Likewise.
282 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
283 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
284 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
285 (sparc64obsd_trapframe_cache): Likewise.
286 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
287 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
288 * spu-multiarch.c (spu_gdbarch): Likewise.
289 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
290 (spu2ppu_prev_arch): Likewise.
291 (spu2ppu_this_id): Likewise.
292 (spu2ppu_prev_register): Likewise.
293 (spu2ppu_dealloc_cache): Likewise.
294 (spu_dis_asm_print_address): Likewise.
295 (gdb_print_insn_spu): Likewise.
296 (spu_get_overlay_table): Likewise.
297 * stabsread.c (rs6000_builtin_type): Likewise.
298 * stack.c (do_print_variable_and_value): Likewise.
299 * stap-probe.c (get_stap_base_address_1): Likewise.
300 * symfile-debug.c (debug_qf_has_symbols): Likewise.
301 (debug_qf_find_last_source_symtab): Likewise.
302 (debug_qf_forget_cached_source_info): Likewise.
303 (debug_qf_map_symtabs_matching_filename): Likewise.
304 (debug_qf_lookup_symbol): Likewise.
305 (debug_qf_print_stats): Likewise.
306 (debug_qf_dump): Likewise.
307 (debug_qf_relocate): Likewise.
308 (debug_qf_expand_symtabs_for_function): Likewise.
309 (debug_qf_expand_all_symtabs): Likewise.
310 (debug_qf_expand_symtabs_with_fullname): Likewise.
311 (debug_qf_map_matching_symbols): Likewise.
312 (debug_qf_expand_symtabs_matching): Likewise.
313 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
314 (debug_qf_map_symbol_filenames): Likewise.
315 (debug_sym_get_probes): Likewise.
316 (debug_sym_new_init): Likewise.
317 (debug_sym_init): Likewise.
318 (debug_sym_read): Likewise.
319 (debug_sym_read_psymbols): Likewise.
320 (debug_sym_finish): Likewise.
321 (debug_sym_offsets): Likewise.
322 (debug_sym_read_linetable): Likewise.
323 (debug_sym_relocate): Likewise.
324 (uninstall_symfile_debug_logging): Likewise.
325 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
326 * symfile.c (place_section): Likewise.
327 (add_section_size_callback): Likewise.
328 (load_progress): Likewise.
329 (load_section_callback): Likewise.
330 (clear_memory_write_data): Likewise.
331 (allocate_symtab): Likewise.
332 * symmisc.c (maintenance_expand_file_matcher): Likewise.
333 * symtab.c (lookup_symtab_callback): Likewise.
334 (hash_demangled_name_entry): Likewise.
335 (eq_demangled_name_entry): Likewise.
336 (get_symbol_cache): Likewise.
337 (symbol_cache_cleanup): Likewise.
338 (set_symbol_cache_size): Likewise.
339 (symbol_cache_flush): Likewise.
340 (maintenance_print_symbol_cache): Likewise.
341 (maintenance_print_symbol_cache_statistics): Likewise.
342 (delete_filename_seen_cache): Likewise.
343 (output_partial_symbol_filename): Likewise.
344 (search_symbols_file_matches): Likewise.
345 (search_symbols_name_matches): Likewise.
346 (do_free_completion_list): Likewise.
347 (maybe_add_partial_symtab_filename): Likewise.
348 (get_main_info): Likewise.
349 (main_info_cleanup): Likewise.
350 * target-dcache.c (target_dcache_cleanup): Likewise.
351 (target_dcache_init_p): Likewise.
352 (target_dcache_invalidate): Likewise.
353 (target_dcache_get): Likewise.
354 (target_dcache_get_or_init): Likewise.
355 * target-descriptions.c (target_find_description): Likewise.
356 (tdesc_find_type): Likewise.
357 (tdesc_data_cleanup): Likewise.
358 (tdesc_find_arch_register): Likewise.
359 (tdesc_register_name): Likewise.
360 (tdesc_register_type): Likewise.
361 (tdesc_register_reggroup_p): Likewise.
362 (set_tdesc_pseudo_register_name): Likewise.
363 (set_tdesc_pseudo_register_type): Likewise.
364 (set_tdesc_pseudo_register_reggroup_p): Likewise.
365 (tdesc_use_registers): Likewise.
366 (free_target_description): Likewise.
367 * target-memory.c (compare_block_starting_address): Likewise.
368 (cleanup_request_data): Likewise.
369 (cleanup_write_requests_vector): Likewise.
370 * target.c (open_target): Likewise.
371 (cleanup_restore_target_terminal): Likewise.
372 (free_memory_read_result_vector): Likewise.
373 * thread.c (disable_thread_stack_temporaries): Likewise.
374 (finish_thread_state_cleanup): Likewise.
375 (do_restore_current_thread_cleanup): Likewise.
376 (restore_current_thread_cleanup_dtor): Likewise.
377 (set_thread_refcount): Likewise.
378 (tp_array_compar): Likewise.
379 (do_captured_thread_select): Likewise.
380 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
381 (tic6x_stub_this_id): Likewise.
382 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
383 * top.c (do_restore_instream_cleanup): Likewise.
384 (gdb_readline_wrapper_cleanup): Likewise.
385 (kill_or_detach): Likewise.
386 (print_inferior_quit_action): Likewise.
387 * tracefile-tfile.c (match_blocktype): Likewise.
388 (build_traceframe_info): Likewise.
389 * tracefile.c (trace_file_writer_xfree): Likewise.
390 * tracepoint.c (memrange_cmp): Likewise.
391 (do_collect_symbol): Likewise.
392 (do_clear_collection_list): Likewise.
393 (do_restore_current_traceframe_cleanup): Likewise.
394 (restore_current_traceframe_cleanup_dtor): Likewise.
395 (free_current_marker): Likewise.
396 (traceframe_info_start_memory): Likewise.
397 (traceframe_info_start_tvar): Likewise.
398 (free_result): Likewise.
399 * tramp-frame.c (tramp_frame_cache): Likewise.
400 * tui/tui-file.c (tui_file_delete): Likewise.
401 (tui_fileopen): Likewise.
402 (tui_sfileopen): Likewise.
403 (tui_file_isatty): Likewise.
404 (tui_file_rewind): Likewise.
405 (tui_file_put): Likewise.
406 (tui_file_fputs): Likewise.
407 (tui_file_get_strbuf): Likewise.
408 (tui_file_adjust_strbuf): Likewise.
409 (tui_file_flush): Likewise.
410 * tui/tui-layout.c (make_command_window): Likewise.
411 (make_data_window): Likewise.
412 (show_source_disasm_command): Likewise.
413 (show_data): Likewise.
414 (make_source_or_disasm_window): Likewise.
415 (show_source_or_disasm_and_command): Likewise.
416 * tui/tui-out.c (tui_field_int): Likewise.
417 (tui_field_string): Likewise.
418 (tui_field_fmt): Likewise.
419 (tui_text): Likewise.
420 * typeprint.c (hash_typedef_field): Likewise.
421 (eq_typedef_field): Likewise.
422 (do_free_typedef_hash): Likewise.
423 (copy_typedef_hash_element): Likewise.
424 (do_free_global_table): Likewise.
425 (find_global_typedef): Likewise.
426 (find_typedef_in_hash): Likewise.
427 * ui-file.c (ui_file_write_for_put): Likewise.
428 (do_ui_file_xstrdup): Likewise.
429 (mem_file_delete): Likewise.
430 (mem_file_rewind): Likewise.
431 (mem_file_put): Likewise.
432 (mem_file_write): Likewise.
433 (stdio_file_delete): Likewise.
434 (stdio_file_flush): Likewise.
435 (stdio_file_read): Likewise.
436 (stdio_file_write): Likewise.
437 (stdio_file_write_async_safe): Likewise.
438 (stdio_file_fputs): Likewise.
439 (stdio_file_isatty): Likewise.
440 (stdio_file_fseek): Likewise.
441 (tee_file_delete): Likewise.
442 (tee_file_flush): Likewise.
443 (tee_file_write): Likewise.
444 (tee_file_fputs): Likewise.
445 (tee_file_isatty): Likewise.
446 * ui-out.c (do_cleanup_table_end): Likewise.
447 (do_cleanup_end): Likewise.
448 * user-regs.c (user_reg_add): Likewise.
449 (user_reg_map_name_to_regnum): Likewise.
450 (usernum_to_user_reg): Likewise.
451 (maintenance_print_user_registers): Likewise.
452 * utils.c (do_bfd_close_cleanup): Likewise.
453 (do_fclose_cleanup): Likewise.
454 (do_obstack_free): Likewise.
455 (do_ui_file_delete): Likewise.
456 (do_ui_out_redirect_pop): Likewise.
457 (do_free_section_addr_info): Likewise.
458 (restore_integer): Likewise.
459 (do_unpush_target): Likewise.
460 (do_htab_delete_cleanup): Likewise.
461 (do_restore_ui_file): Likewise.
462 (do_value_free): Likewise.
463 (do_free_so): Likewise.
464 (free_current_contents): Likewise.
465 (do_regfree_cleanup): Likewise.
466 (core_addr_hash): Likewise.
467 (core_addr_eq): Likewise.
468 (do_free_char_ptr_vec): Likewise.
469 * v850-tdep.c (v850_frame_cache): Likewise.
470 * varobj.c (do_free_variable_cleanup): Likewise.
471 * vax-tdep.c (vax_supply_gregset): Likewise.
472 (vax_frame_cache): Likewise.
473 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
474 * xml-support.c (gdb_xml_body_text): Likewise.
475 (gdb_xml_values_cleanup): Likewise.
476 (gdb_xml_start_element): Likewise.
477 (gdb_xml_start_element_wrapper): Likewise.
478 (gdb_xml_end_element): Likewise.
479 (gdb_xml_end_element_wrapper): Likewise.
480 (gdb_xml_cleanup): Likewise.
481 (gdb_xml_fetch_external_entity): Likewise.
482 (gdb_xml_parse_attr_enum): Likewise.
483 (xinclude_start_include): Likewise.
484 (xinclude_end_include): Likewise.
485 (xml_xinclude_default): Likewise.
486 (xml_xinclude_start_doctype): Likewise.
487 (xml_xinclude_end_doctype): Likewise.
488 (xml_xinclude_cleanup): Likewise.
489 (xml_fetch_content_from_file): Likewise.
490 * xml-syscall.c (free_syscalls_info): Likewise.
491 (syscall_start_syscall): Likewise.
492 * xml-tdesc.c (tdesc_end_arch): Likewise.
493 (tdesc_end_osabi): Likewise.
494 (tdesc_end_compatible): Likewise.
495 (tdesc_start_target): Likewise.
496 (tdesc_start_feature): Likewise.
497 (tdesc_start_reg): Likewise.
498 (tdesc_start_union): Likewise.
499 (tdesc_start_struct): Likewise.
500 (tdesc_start_flags): Likewise.
501 (tdesc_start_field): Likewise.
502 (tdesc_start_vector): Likewise.
503 (fetch_available_features_from_target): Likewise.
504 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
505 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
506 (xtensa_frame_cache): Likewise.
507 (xtensa_frame_prev_register): Likewise.
508 (xtensa_extract_return_value): Likewise.
509
9a3c8263
SM
5102015-09-25 Simon Marchi <simon.marchi@ericsson.com>
511
512 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
513 (aarch64_make_stub_cache): Likewise.
514 (value_of_aarch64_user_reg): Likewise.
515 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
516 (get_ada_inferior_data): Likewise.
517 (get_ada_pspace_data): Likewise.
518 (ada_pspace_data_cleanup): Likewise.
519 (ada_complete_symbol_matcher): Likewise.
520 (ada_exc_search_name_matches): Likewise.
521 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
522 (get_ada_tasks_inferior_data): Likewise.
523 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
524 (splay_obstack_alloc): Likewise.
525 (splay_obstack_free): Likewise.
526 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
527 (alpha_linux_collect_gregset): Likewise.
528 (alpha_linux_supply_fpregset): Likewise.
529 (alpha_linux_collect_fpregset): Likewise.
530 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
531 * alpha-tdep.c (alpha_lds): Likewise.
532 (alpha_sts): Likewise.
533 (alpha_sigtramp_frame_unwind_cache): Likewise.
534 (alpha_heuristic_frame_unwind_cache): Likewise.
535 (alpha_supply_int_regs): Likewise.
536 (alpha_fill_int_regs): Likewise.
537 (alpha_supply_fp_regs): Likewise.
538 (alpha_fill_fp_regs): Likewise.
539 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
540 (alphanbsd_aout_supply_gregset): Likewise.
541 (alphanbsd_supply_gregset): Likewise.
542 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
543 (amd64_x32_linux_init_abi): Likewise.
544 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
545 (amd64_collect_native_gregset): Likewise.
546 * amd64-tdep.c (amd64_frame_cache): Likewise.
547 (amd64_sigtramp_frame_cache): Likewise.
548 (amd64_epilogue_frame_cache): Likewise.
549 (amd64_supply_fxsave): Likewise.
550 (amd64_supply_xsave): Likewise.
551 (amd64_collect_fxsave): Likewise.
552 (amd64_collect_xsave): Likewise.
553 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
554 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
555 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
556 (arm_linux_collect_gregset): Likewise.
557 (arm_linux_supply_nwfpe): Likewise.
558 (arm_linux_collect_nwfpe): Likewise.
559 (arm_linux_supply_vfp): Likewise.
560 (arm_linux_collect_vfp): Likewise.
561 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
562 (arm_prologue_unwind_stop_reason): Likewise.
563 (arm_prologue_this_id): Likewise.
564 (arm_prologue_prev_register): Likewise.
565 (arm_exidx_data_free): Likewise.
566 (arm_find_exidx_entry): Likewise.
567 (arm_stub_this_id): Likewise.
568 (arm_m_exception_this_id): Likewise.
569 (arm_m_exception_prev_register): Likewise.
570 (arm_normal_frame_base): Likewise.
571 (gdb_print_insn_arm): Likewise.
572 (arm_objfile_data_free): Likewise.
573 (arm_record_special_symbol): Likewise.
574 (value_of_arm_user_reg): Likewise.
575 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
576 (armbsd_supply_gregset): Likewise.
577 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
578 (get_auto_load_pspace_data): Likewise.
579 (hash_loaded_script_entry): Likewise.
580 (eq_loaded_script_entry): Likewise.
581 (clear_section_scripts): Likewise.
582 (collect_matching_scripts): Likewise.
583 * auxv.c (auxv_inferior_data_cleanup): Likewise.
584 (get_auxv_inferior_data): Likewise.
585 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
586 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
587 * bfd-target.c (target_bfd_xfer_partial): Likewise.
588 (target_bfd_xclose): Likewise.
589 (target_bfd_get_section_table): Likewise.
590 * bfin-tdep.c (bfin_frame_cache): Likewise.
591 * block.c (find_block_in_blockvector): Likewise.
592 (call_site_for_pc): Likewise.
593 (block_find_non_opaque_type_preferred): Likewise.
594 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
595 (signal_catchpoint_remove_location): Likewise.
596 (signal_catchpoint_breakpoint_hit): Likewise.
597 (signal_catchpoint_print_one): Likewise.
598 (signal_catchpoint_print_mention): Likewise.
599 (signal_catchpoint_print_recreate): Likewise.
600 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
601 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
602 (bp_location_compare_addrs): Likewise.
603 (get_first_locp_gte_addr): Likewise.
604 (check_tracepoint_command): Likewise.
605 (do_map_commands_command): Likewise.
606 (get_breakpoint_objfile_data): Likewise.
607 (free_breakpoint_probes): Likewise.
608 (do_captured_breakpoint_query): Likewise.
609 (compare_breakpoints): Likewise.
610 (bp_location_compare): Likewise.
611 (bpstat_remove_breakpoint_callback): Likewise.
612 (do_delete_breakpoint_cleanup): Likewise.
613 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
614 (bsd_uthread_set_collect_uthread): Likewise.
615 (bsd_uthread_activate): Likewise.
616 (bsd_uthread_fetch_registers): Likewise.
617 (bsd_uthread_store_registers): Likewise.
618 * btrace.c (check_xml_btrace_version): Likewise.
619 (parse_xml_btrace_block): Likewise.
620 (parse_xml_btrace_pt_config_cpu): Likewise.
621 (parse_xml_btrace_pt_raw): Likewise.
622 (parse_xml_btrace_pt): Likewise.
623 (parse_xml_btrace_conf_bts): Likewise.
624 (parse_xml_btrace_conf_pt): Likewise.
625 (do_btrace_data_cleanup): Likewise.
626 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
627 * charset.c (cleanup_iconv): Likewise.
628 (do_cleanup_iterator): Likewise.
629 * cli-out.c (cli_uiout_dtor): Likewise.
630 (cli_table_begin): Likewise.
631 (cli_table_body): Likewise.
632 (cli_table_end): Likewise.
633 (cli_table_header): Likewise.
634 (cli_begin): Likewise.
635 (cli_end): Likewise.
636 (cli_field_int): Likewise.
637 (cli_field_skip): Likewise.
638 (cli_field_string): Likewise.
639 (cli_field_fmt): Likewise.
640 (cli_spaces): Likewise.
641 (cli_text): Likewise.
642 (cli_message): Likewise.
643 (cli_wrap_hint): Likewise.
644 (cli_flush): Likewise.
645 (cli_redirect): Likewise.
646 (out_field_fmt): Likewise.
647 (field_separator): Likewise.
648 (cli_out_set_stream): Likewise.
649 * cli/cli-cmds.c (compare_symtabs): Likewise.
650 * cli/cli-dump.c (call_dump_func): Likewise.
651 (restore_section_callback): Likewise.
652 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
653 (do_restore_user_call_depth): Likewise.
654 (do_free_command_lines_cleanup): Likewise.
655 * coff-pe-read.c (get_section_vmas): Likewise.
656 (pe_as16): Likewise.
657 (pe_as32): Likewise.
658 * coffread.c (coff_symfile_read): Likewise.
659 * common/agent.c (agent_look_up_symbols): Likewise.
660 * common/filestuff.c (do_close_cleanup): Likewise.
661 * common/format.c (free_format_pieces_cleanup): Likewise.
662 * common/vec.c (vec_o_reserve): Likewise.
663 * compile/compile-c-support.c (print_one_macro): Likewise.
664 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
665 (eq_symbol_error): Likewise.
666 (del_symbol_error): Likewise.
667 (error_symbol_once): Likewise.
668 (gcc_convert_symbol): Likewise.
669 (gcc_symbol_address): Likewise.
670 (hash_symname): Likewise.
671 (eq_symname): Likewise.
672 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
673 (eq_type_map_instance): Likewise.
674 (insert_type): Likewise.
675 (convert_type): Likewise.
676 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
677 (setup_sections): Likewise.
678 (link_hash_table_free): Likewise.
679 (copy_sections): Likewise.
680 * compile/compile-object-run.c (do_module_cleanup): Likewise.
681 * compile/compile.c (compile_print_value): Likewise.
682 (do_rmdir): Likewise.
683 (cleanup_compile_instance): Likewise.
684 (cleanup_unlink_file): Likewise.
685 * completer.c (free_completion_tracker): Likewise.
686 * corelow.c (add_to_spuid_list): Likewise.
687 * cp-namespace.c (reset_directive_searched): Likewise.
688 * cp-support.c (reset_directive_searched): Likewise.
689 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
690 (cris_frame_unwind_cache): Likewise.
691 * d-lang.c (builtin_d_type): Likewise.
692 * d-namespace.c (reset_directive_searched): Likewise.
693 * dbxread.c (dbx_free_symfile_info): Likewise.
694 (do_free_bincl_list_cleanup): Likewise.
695 * disasm.c (hash_dis_line_entry): Likewise.
696 (eq_dis_line_entry): Likewise.
697 (dis_asm_print_address): Likewise.
698 (fprintf_disasm): Likewise.
699 (do_ui_file_delete): Likewise.
700 * doublest.c (convert_floatformat_to_doublest): Likewise.
701 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
702 (dummy_frame_prev_register): Likewise.
703 (dummy_frame_this_id): Likewise.
704 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
705 (cache_eq): Likewise.
706 (cache_find): Likewise.
707 (tailcall_frame_this_id): Likewise.
708 (dwarf2_tailcall_prev_register_first): Likewise.
709 (tailcall_frame_prev_register): Likewise.
710 (tailcall_frame_dealloc_cache): Likewise.
711 (tailcall_frame_prev_arch): Likewise.
712 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
713 (dwarf2_frame_set_init_reg): Likewise.
714 (dwarf2_frame_init_reg): Likewise.
715 (dwarf2_frame_set_signal_frame_p): Likewise.
716 (dwarf2_frame_signal_frame_p): Likewise.
717 (dwarf2_frame_set_adjust_regnum): Likewise.
718 (dwarf2_frame_adjust_regnum): Likewise.
719 (clear_pointer_cleanup): Likewise.
720 (dwarf2_frame_cache): Likewise.
721 (find_cie): Likewise.
722 (dwarf2_frame_find_fde): Likewise.
723 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
724 (free_dwarf_expr_context_cleanup): Likewise.
725 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
726 (locexpr_get_frame_base): Likewise.
727 (loclist_find_frame_base_location): Likewise.
728 (loclist_get_frame_base): Likewise.
729 (dwarf_expr_dwarf_call): Likewise.
730 (dwarf_expr_get_base_type): Likewise.
731 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
732 (dwarf_expr_get_obj_addr): Likewise.
733 (entry_data_value_coerce_ref): Likewise.
734 (entry_data_value_copy_closure): Likewise.
735 (entry_data_value_free_closure): Likewise.
736 (get_frame_address_in_block_wrapper): Likewise.
737 (dwarf2_evaluate_property): Likewise.
738 (dwarf2_compile_property_to_c): Likewise.
739 (needs_frame_read_addr_from_reg): Likewise.
740 (needs_frame_get_reg_value): Likewise.
741 (needs_frame_frame_base): Likewise.
742 (needs_frame_frame_cfa): Likewise.
743 (needs_frame_tls_address): Likewise.
744 (needs_frame_dwarf_call): Likewise.
745 (needs_dwarf_reg_entry_value): Likewise.
746 (get_ax_pc): Likewise.
747 (locexpr_read_variable): Likewise.
748 (locexpr_read_variable_at_entry): Likewise.
749 (locexpr_read_needs_frame): Likewise.
750 (locexpr_describe_location): Likewise.
751 (locexpr_tracepoint_var_ref): Likewise.
752 (locexpr_generate_c_location): Likewise.
753 (loclist_read_variable): Likewise.
754 (loclist_read_variable_at_entry): Likewise.
755 (loclist_describe_location): Likewise.
756 (loclist_tracepoint_var_ref): Likewise.
757 (loclist_generate_c_location): Likewise.
758 * dwarf2read.c (line_header_hash_voidp): Likewise.
759 (line_header_eq_voidp): Likewise.
760 (dwarf2_has_info): Likewise.
761 (dwarf2_get_section_info): Likewise.
762 (locate_dwz_sections): Likewise.
763 (hash_file_name_entry): Likewise.
764 (eq_file_name_entry): Likewise.
765 (delete_file_name_entry): Likewise.
766 (dw2_setup): Likewise.
767 (dw2_get_file_names_reader): Likewise.
768 (dw2_find_pc_sect_compunit_symtab): Likewise.
769 (hash_signatured_type): Likewise.
770 (eq_signatured_type): Likewise.
771 (add_signatured_type_cu_to_table): Likewise.
772 (create_debug_types_hash_table): Likewise.
773 (lookup_dwo_signatured_type): Likewise.
774 (lookup_dwp_signatured_type): Likewise.
775 (lookup_signatured_type): Likewise.
776 (hash_type_unit_group): Likewise.
777 (eq_type_unit_group): Likewise.
778 (get_type_unit_group): Likewise.
779 (process_psymtab_comp_unit_reader): Likewise.
780 (sort_tu_by_abbrev_offset): Likewise.
781 (process_skeletonless_type_unit): Likewise.
782 (psymtabs_addrmap_cleanup): Likewise.
783 (dwarf2_read_symtab): Likewise.
784 (psymtab_to_symtab_1): Likewise.
785 (die_hash): Likewise.
786 (die_eq): Likewise.
787 (load_full_comp_unit_reader): Likewise.
788 (reset_die_in_process): Likewise.
789 (free_cu_line_header): Likewise.
790 (handle_DW_AT_stmt_list): Likewise.
791 (hash_dwo_file): Likewise.
792 (eq_dwo_file): Likewise.
793 (hash_dwo_unit): Likewise.
794 (eq_dwo_unit): Likewise.
795 (create_dwo_cu_reader): Likewise.
796 (create_dwo_unit_in_dwp_v1): Likewise.
797 (create_dwo_unit_in_dwp_v2): Likewise.
798 (lookup_dwo_unit_in_dwp): Likewise.
799 (dwarf2_locate_dwo_sections): Likewise.
800 (dwarf2_locate_common_dwp_sections): Likewise.
801 (dwarf2_locate_v2_dwp_sections): Likewise.
802 (hash_dwp_loaded_cutus): Likewise.
803 (eq_dwp_loaded_cutus): Likewise.
804 (lookup_dwo_cutu): Likewise.
805 (abbrev_table_free_cleanup): Likewise.
806 (dwarf2_free_abbrev_table): Likewise.
807 (find_partial_die_in_comp_unit): Likewise.
808 (free_line_header_voidp): Likewise.
809 (follow_die_offset): Likewise.
810 (follow_die_sig_1): Likewise.
811 (free_heap_comp_unit): Likewise.
812 (free_stack_comp_unit): Likewise.
813 (dwarf2_free_objfile): Likewise.
814 (per_cu_offset_and_type_hash): Likewise.
815 (per_cu_offset_and_type_eq): Likewise.
816 (get_die_type_at_offset): Likewise.
817 (partial_die_hash): Likewise.
818 (partial_die_eq): Likewise.
819 (dwarf2_per_objfile_free): Likewise.
820 (hash_strtab_entry): Likewise.
821 (eq_strtab_entry): Likewise.
822 (add_string): Likewise.
823 (hash_symtab_entry): Likewise.
824 (eq_symtab_entry): Likewise.
825 (delete_symtab_entry): Likewise.
826 (cleanup_mapped_symtab): Likewise.
827 (add_indices_to_cpool): Likewise.
828 (hash_psymtab_cu_index): Likewise.
829 (eq_psymtab_cu_index): Likewise.
830 (add_address_entry_worker): Likewise.
831 (unlink_if_set): Likewise.
832 (write_one_signatured_type): Likewise.
833 (save_gdb_index_command): Likewise.
834 * elfread.c (elf_symtab_read): Likewise.
835 (elf_gnu_ifunc_cache_hash): Likewise.
836 (elf_gnu_ifunc_cache_eq): Likewise.
837 (elf_gnu_ifunc_record_cache): Likewise.
838 (elf_gnu_ifunc_resolve_by_cache): Likewise.
839 (elf_get_probes): Likewise.
840 (probe_key_free): Likewise.
841 * f-lang.c (builtin_f_type): Likewise.
842 * frame-base.c (frame_base_append_sniffer): Likewise.
843 (frame_base_set_default): Likewise.
844 (frame_base_find_by_frame): Likewise.
845 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
846 (frame_unwind_append_unwinder): Likewise.
847 (frame_unwind_find_by_frame): Likewise.
848 * frame.c (frame_addr_hash): Likewise.
849 (frame_addr_hash_eq): Likewise.
850 (frame_stash_find): Likewise.
851 (do_frame_register_read): Likewise.
852 (unwind_to_current_frame): Likewise.
853 (frame_cleanup_after_sniffer): Likewise.
854 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
855 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
856 * ft32-tdep.c (ft32_frame_cache): Likewise.
857 * gcore.c (do_bfd_delete_cleanup): Likewise.
858 (gcore_create_callback): Likewise.
859 * gdb_bfd.c (hash_bfd): Likewise.
860 (eq_bfd): Likewise.
861 (gdb_bfd_open): Likewise.
862 (free_one_bfd_section): Likewise.
863 (gdb_bfd_ref): Likewise.
864 (gdb_bfd_unref): Likewise.
865 (get_section_descriptor): Likewise.
866 (gdb_bfd_map_section): Likewise.
867 (gdb_bfd_crc): Likewise.
868 (gdb_bfd_mark_parent): Likewise.
869 (gdb_bfd_record_inclusion): Likewise.
870 (gdb_bfd_requires_relocations): Likewise.
871 (print_one_bfd): Likewise.
872 * gdbtypes.c (type_pair_hash): Likewise.
873 (type_pair_eq): Likewise.
874 (builtin_type): Likewise.
875 (objfile_type): Likewise.
876 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
877 (vtable_address_point_offset): Likewise.
878 (gnuv3_get_vtable): Likewise.
879 (hash_value_and_voffset): Likewise.
880 (eq_value_and_voffset): Likewise.
881 (compare_value_and_voffset): Likewise.
882 (compute_vtable_size): Likewise.
883 (gnuv3_get_typeid_type): Likewise.
884 * go-lang.c (builtin_go_type): Likewise.
885 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
886 (bkscm_eq_block_smob): Likewise.
887 (bkscm_objfile_block_map): Likewise.
888 (bkscm_del_objfile_blocks): Likewise.
889 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
890 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
891 (gdbscm_disasm_print_address): Likewise.
892 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
893 (frscm_eq_frame_smob): Likewise.
894 (frscm_inferior_frame_map): Likewise.
895 (frscm_del_inferior_frames): Likewise.
896 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
897 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
898 (ofscm_objfile_smob_from_objfile): Likewise.
899 * guile/scm-ports.c (ioscm_write): Likewise.
900 (ioscm_file_port_delete): Likewise.
901 (ioscm_file_port_rewind): Likewise.
902 (ioscm_file_port_put): Likewise.
903 (ioscm_file_port_write): Likewise.
904 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
905 (psscm_pspace_smob_from_pspace): Likewise.
906 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
907 (scscm_recording_unwind_handler): Likewise.
908 (gdbscm_with_catch): Likewise.
909 (scscm_call_0_body): Likewise.
910 (scscm_call_1_body): Likewise.
911 (scscm_call_2_body): Likewise.
912 (scscm_call_3_body): Likewise.
913 (scscm_call_4_body): Likewise.
914 (scscm_apply_1_body): Likewise.
915 (scscm_eval_scheme_string): Likewise.
916 (gdbscm_safe_eval_string): Likewise.
917 (scscm_source_scheme_script): Likewise.
918 (gdbscm_safe_source_script): Likewise.
919 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
920 (gdbscm_call_scm_from_stringn): Likewise.
921 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
922 (syscm_eq_symbol_smob): Likewise.
923 (syscm_get_symbol_map): Likewise.
924 (syscm_del_objfile_symbols): Likewise.
925 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
926 (stscm_eq_symtab_smob): Likewise.
927 (stscm_objfile_symtab_map): Likewise.
928 (stscm_del_objfile_symtabs): Likewise.
929 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
930 (tyscm_eq_type_smob): Likewise.
931 (tyscm_type_map): Likewise.
932 (tyscm_copy_type_recursive): Likewise.
933 (save_objfile_types): Likewise.
934 * guile/scm-utils.c (extract_arg): Likewise.
935 * h8300-tdep.c (h8300_frame_cache): Likewise.
936 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
937 * hppa-tdep.c (compare_unwind_entries): Likewise.
938 (find_unwind_entry): Likewise.
939 (hppa_frame_cache): Likewise.
940 (hppa_stub_frame_unwind_cache): Likewise.
941 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
942 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
943 (hppaobsd_supply_fpregset): Likewise.
944 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
945 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
946 * i386-tdep.c (i386_frame_cache): Likewise.
947 (i386_epilogue_frame_cache): Likewise.
948 (i386_sigtramp_frame_cache): Likewise.
949 (i386_supply_gregset): Likewise.
950 (i386_collect_gregset): Likewise.
951 (i386_gdbarch_init): Likewise.
952 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
953 (i386obsd_trapframe_cache): Likewise.
954 * i387-tdep.c (i387_supply_fsave): Likewise.
955 (i387_collect_fsave): Likewise.
956 (i387_supply_fxsave): Likewise.
957 (i387_collect_fxsave): Likewise.
958 (i387_supply_xsave): Likewise.
959 (i387_collect_xsave): Likewise.
960 * ia64-tdep.c (ia64_frame_cache): Likewise.
961 (ia64_sigtramp_frame_cache): Likewise.
962 * infcmd.c (attach_command_continuation): Likewise.
963 (attach_command_continuation_free_args): Likewise.
964 * inferior.c (restore_inferior): Likewise.
965 (delete_thread_of_inferior): Likewise.
966 * inflow.c (inflow_inferior_data_cleanup): Likewise.
967 (get_inflow_inferior_data): Likewise.
968 (inflow_inferior_exit): Likewise.
969 * infrun.c (displaced_step_clear_cleanup): Likewise.
970 (restore_current_uiout_cleanup): Likewise.
971 (release_stop_context_cleanup): Likewise.
972 (do_restore_infcall_suspend_state_cleanup): Likewise.
973 (do_restore_infcall_control_state_cleanup): Likewise.
974 (restore_inferior_ptid): Likewise.
975 * inline-frame.c (block_starting_point_at): Likewise.
976 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
977 * jit.c (get_jit_objfile_data): Likewise.
978 (get_jit_program_space_data): Likewise.
979 (jit_object_close_impl): Likewise.
980 (jit_find_objf_with_entry_addr): Likewise.
981 (jit_breakpoint_deleted): Likewise.
982 (jit_unwind_reg_set_impl): Likewise.
983 (jit_unwind_reg_get_impl): Likewise.
984 (jit_dealloc_cache): Likewise.
985 (jit_frame_sniffer): Likewise.
986 (jit_frame_prev_register): Likewise.
987 (jit_prepend_unwinder): Likewise.
988 (jit_inferior_exit_hook): Likewise.
989 (free_objfile_data): Likewise.
990 * jv-lang.c (jv_per_objfile_free): Likewise.
991 (get_dynamics_objfile): Likewise.
992 (get_java_class_symtab): Likewise.
993 (builtin_java_type): Likewise.
994 * language.c (language_string_char_type): Likewise.
995 (language_bool_type): Likewise.
996 (language_lookup_primitive_type): Likewise.
997 (language_lookup_primitive_type_as_symbol): Likewise.
998 * linespec.c (hash_address_entry): Likewise.
999 (eq_address_entry): Likewise.
1000 (iterate_inline_only): Likewise.
1001 (iterate_name_matcher): Likewise.
1002 (decode_line_2_compare_items): Likewise.
1003 (collect_one_symbol): Likewise.
1004 (compare_symbols): Likewise.
1005 (compare_msymbols): Likewise.
1006 (add_symtabs_to_list): Likewise.
1007 (collect_symbols): Likewise.
1008 (compare_msyms): Likewise.
1009 (add_minsym): Likewise.
1010 (cleanup_linespec_result): Likewise.
1011 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1012 * linux-nat.c (delete_lwp_cleanup): Likewise.
1013 (count_events_callback): Likewise.
1014 (select_event_lwp_callback): Likewise.
1015 (resume_stopped_resumed_lwps): Likewise.
1016 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1017 (invalidate_linux_cache_inf): Likewise.
1018 (get_linux_inferior_data): Likewise.
1019 (linux_find_memory_regions_thunk): Likewise.
1020 (linux_make_mappings_callback): Likewise.
1021 (linux_corefile_thread_callback): Likewise.
1022 (find_mapping_size): Likewise.
1023 * linux-thread-db.c (find_new_threads_callback): Likewise.
1024 * lm32-tdep.c (lm32_frame_cache): Likewise.
1025 * m2-lang.c (builtin_m2_type): Likewise.
1026 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1027 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1028 (m32r_linux_supply_gregset): Likewise.
1029 (m32r_linux_collect_gregset): Likewise.
1030 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1031 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1032 * m68k-tdep.c (m68k_frame_cache): Likewise.
1033 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1034 (m68kbsd_supply_gregset): Likewise.
1035 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1036 * m88k-tdep.c (m88k_frame_cache): Likewise.
1037 (m88k_supply_gregset): Likewise.
1038
224c3ddb
SM
10392015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1040
1041 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1042 to allocation result assignment.
1043 * ada-exp.y (write_object_renaming): Likewise.
1044 (write_ambiguous_var): Likewise.
1045 (ada_nget_field_index): Likewise.
1046 (write_var_or_type): Likewise.
1047 * ada-lang.c (ada_decode_symbol): Likewise.
1048 (ada_value_assign): Likewise.
1049 (value_pointer): Likewise.
1050 (cache_symbol): Likewise.
1051 (add_nonlocal_symbols): Likewise.
1052 (ada_name_for_lookup): Likewise.
1053 (symbol_completion_add): Likewise.
1054 (ada_to_fixed_type_1): Likewise.
1055 (ada_get_next_arg): Likewise.
1056 (defns_collected): Likewise.
1057 * ada-lex.l (processId): Likewise.
1058 (processString): Likewise.
1059 * ada-tasks.c (read_known_tasks_array): Likewise.
1060 (read_known_tasks_list): Likewise.
1061 * ada-typeprint.c (decoded_type_name): Likewise.
1062 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1063 * amd64-tdep.c (amd64_push_arguments): Likewise.
1064 (amd64_displaced_step_copy_insn): Likewise.
1065 (amd64_classify_insn_at): Likewise.
1066 (amd64_relocate_instruction): Likewise.
1067 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1068 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1069 (initialize_current_architecture): Likewise.
1070 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1071 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1072 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1073 (arm_push_dummy_call): Likewise.
1074 (extend_buffer_earlier): Likewise.
1075 (arm_adjust_breakpoint_address): Likewise.
1076 (arm_skip_stub): Likewise.
1077 * auto-load.c (filename_is_in_pattern): Likewise.
1078 (maybe_add_script_file): Likewise.
1079 (maybe_add_script_text): Likewise.
1080 (auto_load_objfile_script_1): Likewise.
1081 * auxv.c (ld_so_xfer_auxv): Likewise.
1082 * ax-general.c (new_agent_expr): Likewise.
1083 (grow_expr): Likewise.
1084 (ax_reg_mask): Likewise.
1085 * bcache.c (bcache_full): Likewise.
1086 * breakpoint.c (program_breakpoint_here_p): Likewise.
1087 * btrace.c (parse_xml_raw): Likewise.
1088 * build-id.c (build_id_to_debug_bfd): Likewise.
1089 * buildsym.c (end_symtab_with_blockvector): Likewise.
1090 * c-exp.y (string_exp): Likewise.
1091 (qualified_name): Likewise.
1092 (write_destructor_name): Likewise.
1093 (operator_stoken): Likewise.
1094 (parse_number): Likewise.
1095 (scan_macro_expansion): Likewise.
1096 (yylex): Likewise.
1097 (c_print_token): Likewise.
1098 * c-lang.c (c_get_string): Likewise.
1099 (emit_numeric_character): Likewise.
1100 * charset.c (wchar_iterate): Likewise.
1101 * cli/cli-cmds.c (complete_command): Likewise.
1102 (make_command): Likewise.
1103 * cli/cli-dump.c (restore_section_callback): Likewise.
1104 (restore_binary_file): Likewise.
1105 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1106 * cli/cli-script.c (execute_control_command): Likewise.
1107 * cli/cli-setshow.c (do_set_command): Likewise.
1108 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1109 (read_pe_exported_syms): Likewise.
1110 * coffread.c (coff_read_struct_type): Likewise.
1111 (coff_read_enum_type): Likewise.
1112 * common/btrace-common.c (btrace_data_append): Likewise.
1113 * common/buffer.c (buffer_grow): Likewise.
1114 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1115 * common/format.c (parse_format_string): Likewise.
1116 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1117 * common/xml-utils.c (xml_escape_text): Likewise.
1118 * compile/compile-object-load.c (copy_sections): Likewise.
1119 (compile_object_load): Likewise.
1120 * compile/compile-object-run.c (compile_object_run): Likewise.
1121 * completer.c (filename_completer): Likewise.
1122 * corefile.c (read_memory_typed_address): Likewise.
1123 (write_memory_unsigned_integer): Likewise.
1124 (write_memory_signed_integer): Likewise.
1125 (complete_set_gnutarget): Likewise.
1126 * corelow.c (get_core_register_section): Likewise.
1127 * cp-name-parser.y (d_grab): Likewise.
1128 (allocate_info): Likewise.
1129 (cp_new_demangle_parse_info): Likewise.
1130 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1131 (cp_lookup_symbol_in_namespace): Likewise.
1132 (lookup_namespace_scope): Likewise.
1133 (find_symbol_in_baseclass): Likewise.
1134 (cp_lookup_nested_symbol): Likewise.
1135 (cp_lookup_transparent_type_loop): Likewise.
1136 * cp-support.c (copy_string_to_obstack): Likewise.
1137 (make_symbol_overload_list): Likewise.
1138 (make_symbol_overload_list_namespace): Likewise.
1139 (make_symbol_overload_list_adl_namespace): Likewise.
1140 (first_component_command): Likewise.
1141 * cp-valprint.c (cp_print_value): Likewise.
1142 * ctf.c (ctf_xfer_partial): Likewise.
1143 * d-exp.y (StringExp): Likewise.
1144 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1145 (lookup_module_scope): Likewise.
1146 (find_symbol_in_baseclass): Likewise.
1147 (d_lookup_nested_symbol): Likewise.
1148 * dbxread.c (find_stab_function_addr): Likewise.
1149 (read_dbx_symtab): Likewise.
1150 (dbx_end_psymtab): Likewise.
1151 (cp_set_block_scope): Likewise.
1152 * dcache.c (dcache_alloc): Likewise.
1153 * demangle.c (_initialize_demangler): Likewise.
1154 * dicos-tdep.c (dicos_load_module_p): Likewise.
1155 * dictionary.c (dict_create_hashed_expandable): Likewise.
1156 (dict_create_linear_expandable): Likewise.
1157 (expand_hashtable): Likewise.
1158 (add_symbol_linear_expandable): Likewise.
1159 * dwarf2-frame.c (add_cie): Likewise.
1160 (add_fde): Likewise.
1161 (dwarf2_build_frame_info): Likewise.
1162 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1163 (dwarf_expr_fetch_address): Likewise.
1164 (add_piece): Likewise.
1165 (execute_stack_op): Likewise.
1166 * dwarf2loc.c (chain_candidate): Likewise.
1167 (dwarf_entry_parameter_to_value): Likewise.
1168 (read_pieced_value): Likewise.
1169 (write_pieced_value): Likewise.
1170 * dwarf2read.c (dwarf2_read_section): Likewise.
1171 (add_type_unit): Likewise.
1172 (read_comp_units_from_section): Likewise.
1173 (fixup_go_packaging): Likewise.
1174 (dwarf2_compute_name): Likewise.
1175 (dwarf2_physname): Likewise.
1176 (create_dwo_unit_in_dwp_v1): Likewise.
1177 (create_dwo_unit_in_dwp_v2): Likewise.
1178 (read_func_scope): Likewise.
1179 (read_call_site_scope): Likewise.
1180 (dwarf2_attach_fields_to_type): Likewise.
1181 (process_structure_scope): Likewise.
1182 (mark_common_block_symbol_computed): Likewise.
1183 (read_common_block): Likewise.
1184 (abbrev_table_read_table): Likewise.
1185 (guess_partial_die_structure_name): Likewise.
1186 (fixup_partial_die): Likewise.
1187 (add_file_name): Likewise.
1188 (dwarf2_const_value_data): Likewise.
1189 (dwarf2_const_value_attr): Likewise.
1190 (build_error_marker_type): Likewise.
1191 (guess_full_die_structure_name): Likewise.
1192 (anonymous_struct_prefix): Likewise.
1193 (typename_concat): Likewise.
1194 (dwarf2_canonicalize_name): Likewise.
1195 (dwarf2_name): Likewise.
1196 (write_constant_as_bytes): Likewise.
1197 (dwarf2_fetch_constant_bytes): Likewise.
1198 (copy_string): Likewise.
1199 (parse_macro_definition): Likewise.
1200 * elfread.c (elf_symfile_segments): Likewise.
1201 (elf_rel_plt_read): Likewise.
1202 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1203 (elf_gnu_ifunc_resolve_by_got): Likewise.
1204 (elf_read_minimal_symbols): Likewise.
1205 (elf_gnu_ifunc_record_cache): Likewise.
1206 * event-top.c (top_level_prompt): Likewise.
1207 (command_line_handler): Likewise.
1208 * exec.c (resize_section_table): Likewise.
1209 * expprint.c (print_subexp_standard): Likewise.
1210 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1211 * findcmd.c (parse_find_args): Likewise.
1212 * findvar.c (address_from_register): Likewise.
1213 * frame.c (get_prev_frame_always): Likewise.
1214 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1215 (get_section_descriptor): Likewise.
1216 * gdb_obstack.c (obconcat): Likewise.
1217 (obstack_strdup): Likewise.
1218 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1219 (create_set_type): Likewise.
1220 (lookup_unsigned_typename): Likewise.
1221 (lookup_signed_typename): Likewise.
1222 (resolve_dynamic_union): Likewise.
1223 (resolve_dynamic_struct): Likewise.
1224 (add_dyn_prop): Likewise.
1225 (copy_dynamic_prop_list): Likewise.
1226 (arch_flags_type): Likewise.
1227 (append_composite_type_field_raw): Likewise.
1228 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1229 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1230 * go-exp.y (string_exp): Likewise.
1231 * go-lang.c (go_demangle): Likewise.
1232 * guile/guile.c (compute_scheme_string): Likewise.
1233 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1234 (gdbscm_canonicalize_command_name): Likewise.
1235 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1236 (ioscm_init_memory_port): Likewise.
1237 (ioscm_reinit_memory_port): Likewise.
1238 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1239 (gdbscm_gc_dup_argv): Likewise.
1240 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1241 * hppa-tdep.c (internalize_unwinds): Likewise.
1242 (read_unwind_info): Likewise.
1243 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1244 (windows_core_xfer_shared_libraries): Likewise.
1245 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1246 (i386_stap_parse_special_token_triplet): Likewise.
1247 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1248 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1249 * inf-child.c (inf_child_fileio_readlink): Likewise.
1250 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1251 (inf_ptrace_store_register): Likewise.
1252 * infrun.c (follow_exec): Likewise.
1253 (displaced_step_prepare_throw): Likewise.
1254 (save_stop_context): Likewise.
1255 (save_infcall_suspend_state): Likewise.
1256 * jit.c (jit_read_descriptor): Likewise.
1257 (jit_read_code_entry): Likewise.
1258 (jit_symtab_line_mapping_add_impl): Likewise.
1259 (finalize_symtab): Likewise.
1260 (jit_unwind_reg_get_impl): Likewise.
1261 * jv-exp.y (QualifiedName): Likewise.
1262 * jv-lang.c (get_java_utf8_name): Likewise.
1263 (type_from_class): Likewise.
1264 (java_demangle_type_signature): Likewise.
1265 (java_class_name_from_physname): Likewise.
1266 * jv-typeprint.c (java_type_print_base): Likewise.
1267 * jv-valprint.c (java_value_print): Likewise.
1268 * language.c (add_language): Likewise.
1269 * linespec.c (add_sal_to_sals_basic): Likewise.
1270 (add_sal_to_sals): Likewise.
1271 (decode_objc): Likewise.
1272 (find_linespec_symbols): Likewise.
1273 * linux-fork.c (fork_save_infrun_state): Likewise.
1274 * linux-nat.c (linux_nat_detach): Likewise.
1275 (linux_nat_fileio_readlink): Likewise.
1276 * linux-record.c (record_linux_sockaddr): Likewise.
1277 (record_linux_msghdr): Likewise.
1278 (Do): Likewise.
1279 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1280 (linux_collect_regset_section_cb): Likewise.
1281 (linux_get_siginfo_data): Likewise.
1282 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1283 (try_thread_db_load_from_dir): Likewise.
1284 (thread_db_load_search): Likewise.
1285 (info_auto_load_libthread_db): Likewise.
1286 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1287 (m32c_m16c_pointer_to_address): Likewise.
1288 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1289 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1290 * machoread.c (macho_check_dsym): Likewise.
1291 * macroexp.c (resize_buffer): Likewise.
1292 (gather_arguments): Likewise.
1293 (maybe_expand): Likewise.
1294 * macrotab.c (new_macro_key): Likewise.
1295 (new_source_file): Likewise.
1296 (new_macro_definition): Likewise.
1297 * mdebugread.c (parse_symbol): Likewise.
1298 (parse_type): Likewise.
1299 (parse_partial_symbols): Likewise.
1300 (psymtab_to_symtab_1): Likewise.
1301 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1302 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1303 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1304 (mi_cmd_data_read_memory_bytes): Likewise.
1305 (mi_cmd_data_write_memory_bytes): Likewise.
1306 (mi_cmd_trace_frame_collected): Likewise.
1307 * mi/mi-parse.c (mi_parse_argv): Likewise.
1308 (mi_parse): Likewise.
1309 * minidebug.c (lzma_open): Likewise.
1310 (lzma_pread): Likewise.
1311 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1312 (mips_print_fp_register): Likewise.
1313 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1314 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1315 * mt-tdep.c (mt_register_name): Likewise.
1316 (mt_registers_info): Likewise.
1317 (mt_push_dummy_call): Likewise.
1318 * namespace.c (add_using_directive): Likewise.
1319 * nat/linux-btrace.c (perf_event_read): Likewise.
1320 (linux_enable_bts): Likewise.
1321 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1322 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1323 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1324 (nto_parse_redirection): Likewise.
1325 * objc-lang.c (objc_demangle): Likewise.
1326 (find_methods): Likewise.
1327 * objfiles.c (get_objfile_bfd_data): Likewise.
1328 (set_objfile_main_name): Likewise.
1329 (allocate_objfile): Likewise.
1330 (objfile_relocate): Likewise.
1331 (update_section_map): Likewise.
1332 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1333 * p-exp.y (exp): Likewise.
1334 (yylex): Likewise.
1335 * p-valprint.c (pascal_object_print_value): Likewise.
1336 * parse.c (initialize_expout): Likewise.
1337 (mark_completion_tag): Likewise.
1338 (copy_name): Likewise.
1339 (parse_float): Likewise.
1340 (type_stack_reserve): Likewise.
1341 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1342 (ppu2spu_prev_register): Likewise.
1343 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1344 * printcmd.c (printf_wide_c_string): Likewise.
1345 (printf_pointer): Likewise.
1346 * probe.c (parse_probes): Likewise.
1347 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1348 (cmdpy_init): Likewise.
1349 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1350 * python/py-symtab.c (set_sal): Likewise.
1351 * python/py-unwind.c (pyuw_sniffer): Likewise.
1352 * python/python.c (python_interactive_command): Likewise.
1353 (compute_python_string): Likewise.
1354 * ravenscar-thread.c (get_running_thread_id): Likewise.
1355 * record-full.c (record_full_exec_insn): Likewise.
1356 (record_full_core_open_1): Likewise.
1357 * regcache.c (regcache_raw_read_signed): Likewise.
1358 (regcache_raw_read_unsigned): Likewise.
1359 (regcache_cooked_read_signed): Likewise.
1360 (regcache_cooked_read_unsigned): Likewise.
1361 * remote-fileio.c (remote_fileio_func_open): Likewise.
1362 (remote_fileio_func_rename): Likewise.
1363 (remote_fileio_func_unlink): Likewise.
1364 (remote_fileio_func_stat): Likewise.
1365 (remote_fileio_func_system): Likewise.
1366 * remote-mips.c (mips_xfer_memory): Likewise.
1367 (mips_load_srec): Likewise.
1368 (pmon_end_download): Likewise.
1369 * remote.c (new_remote_state): Likewise.
1370 (map_regcache_remote_table): Likewise.
1371 (remote_register_number_and_offset): Likewise.
1372 (init_remote_state): Likewise.
1373 (get_memory_packet_size): Likewise.
1374 (remote_pass_signals): Likewise.
1375 (remote_program_signals): Likewise.
1376 (remote_start_remote): Likewise.
1377 (remote_check_symbols): Likewise.
1378 (remote_query_supported): Likewise.
1379 (extended_remote_attach): Likewise.
1380 (process_g_packet): Likewise.
1381 (store_registers_using_G): Likewise.
1382 (putpkt_binary): Likewise.
1383 (read_frame): Likewise.
1384 (compare_sections_command): Likewise.
1385 (remote_hostio_pread): Likewise.
1386 (remote_hostio_readlink): Likewise.
1387 (remote_file_put): Likewise.
1388 (remote_file_get): Likewise.
1389 (remote_pid_to_exec_file): Likewise.
1390 (_initialize_remote): Likewise.
1391 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1392 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1393 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1394 (bfd_uses_spe_extensions): Likewise.
1395 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1396 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1397 * solib-dsbt.c (decode_loadmap): Likewise.
1398 (fetch_loadmap): Likewise.
1399 (scan_dyntag): Likewise.
1400 (enable_break): Likewise.
1401 (dsbt_relocate_main_executable): Likewise.
1402 * solib-frv.c (fetch_loadmap): Likewise.
1403 (enable_break2): Likewise.
1404 (frv_relocate_main_executable): Likewise.
1405 * solib-spu.c (spu_relocate_main_executable): Likewise.
1406 (spu_bfd_open): Likewise.
1407 * solib-svr4.c (lm_info_read): Likewise.
1408 (read_program_header): Likewise.
1409 (find_program_interpreter): Likewise.
1410 (scan_dyntag): Likewise.
1411 (elf_locate_base): Likewise.
1412 (open_symbol_file_object): Likewise.
1413 (read_program_headers_from_bfd): Likewise.
1414 (svr4_relocate_main_executable): Likewise.
1415 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1416 * solib.c (solib_find_1): Likewise.
1417 (exec_file_find): Likewise.
1418 (solib_find): Likewise.
1419 * source.c (openp): Likewise.
1420 (print_source_lines_base): Likewise.
1421 (forward_search_command): Likewise.
1422 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1423 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1424 (spu_get_overlay_table): Likewise.
1425 * stabsread.c (patch_block_stabs): Likewise.
1426 (define_symbol): Likewise.
1427 (again:): Likewise.
1428 (read_member_functions): Likewise.
1429 (read_one_struct_field): Likewise.
1430 (read_enum_type): Likewise.
1431 (common_block_start): Likewise.
1432 * stack.c (read_frame_arg): Likewise.
1433 (backtrace_command): Likewise.
1434 * stap-probe.c (stap_parse_register_operand): Likewise.
1435 * symfile.c (syms_from_objfile_1): Likewise.
1436 (find_separate_debug_file): Likewise.
1437 (load_command): Likewise.
1438 (load_progress): Likewise.
1439 (load_section_callback): Likewise.
1440 (reread_symbols): Likewise.
1441 (add_filename_language): Likewise.
1442 (allocate_compunit_symtab): Likewise.
1443 (read_target_long_array): Likewise.
1444 (simple_read_overlay_table): Likewise.
1445 * symtab.c (symbol_set_names): Likewise.
1446 (resize_symbol_cache): Likewise.
1447 (rbreak_command): Likewise.
1448 (completion_list_add_name): Likewise.
1449 (completion_list_objc_symbol): Likewise.
1450 (add_filename_to_list): Likewise.
1451 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1452 * target-memory.c (target_write_memory_blocks): Likewise.
1453 * target.c (target_read_string): Likewise.
1454 (read_whatever_is_readable): Likewise.
1455 (target_read_alloc_1): Likewise.
1456 (simple_search_memory): Likewise.
1457 (target_fileio_read_alloc_1): Likewise.
1458 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1459 * top.c (command_line_input): Likewise.
1460 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1461 * tracefile.c (tracefile_fetch_registers): Likewise.
1462 * tracepoint.c (add_memrange): Likewise.
1463 (init_collection_list): Likewise.
1464 (add_aexpr): Likewise.
1465 (trace_dump_actions): Likewise.
1466 (parse_trace_status): Likewise.
1467 (parse_tracepoint_definition): Likewise.
1468 (parse_tsv_definition): Likewise.
1469 (parse_static_tracepoint_marker_definition): Likewise.
1470 * tui/tui-file.c (tui_sfileopen): Likewise.
1471 (tui_file_adjust_strbuf): Likewise.
1472 * tui/tui-io.c (tui_expand_tabs): Likewise.
1473 * tui/tui-source.c (tui_set_source_content): Likewise.
1474 * typeprint.c (find_global_typedef): Likewise.
1475 * ui-file.c (do_ui_file_xstrdup): Likewise.
1476 (ui_file_obsavestring): Likewise.
1477 (mem_file_write): Likewise.
1478 * utils.c (make_hex_string): Likewise.
1479 (get_regcomp_error): Likewise.
1480 (puts_filtered_tabular): Likewise.
1481 (gdb_realpath_keepfile): Likewise.
1482 (ldirname): Likewise.
1483 (gdb_bfd_errmsg): Likewise.
1484 (substitute_path_component): Likewise.
1485 * valops.c (search_struct_method): Likewise.
1486 (find_oload_champ_namespace_loop): Likewise.
1487 * valprint.c (print_decimal_chars): Likewise.
1488 (read_string): Likewise.
1489 (generic_emit_char): Likewise.
1490 * varobj.c (varobj_delete): Likewise.
1491 (varobj_value_get_print_value): Likewise.
1492 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1493 * windows-tdep.c (display_one_tib): Likewise.
1494 * xcoffread.c (read_xcoff_symtab): Likewise.
1495 (process_xcoff_symbol): Likewise.
1496 (swap_sym): Likewise.
1497 (scan_xcoff_symtab): Likewise.
1498 (xcoff_initial_scan): Likewise.
1499 * xml-support.c (gdb_xml_end_element): Likewise.
1500 (xml_process_xincludes): Likewise.
1501 (xml_fetch_content_from_file): Likewise.
1502 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1503 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1504
623fb775 15052015-09-23 James Bowman <james.bowman@ftdichip.com>
1506
1507 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1508 instead of builtin_func_ptr.
1509 (ft32_pointer_to_address): New function.
1510 (ft32_address_class_type_flags): New function.
1511 (ft32_address_class_type_flags_to_name): New function.
1512 (ft32_address_class_name_to_type_flags): New function.
1513 (ft32_gdbarch_init): Set tdep->pc_type. Call
1514 set_gdbarch_pointer_to_address,
1515 set_gdbarch_address_class_type_flags
1516 set_gdbarch_address_class_name_to_type_flags,
1517 and set_gdbarch_address_class_type_flags_to_name.
1518 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1519
e6c2c623
PMR
15202015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1521
1522 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1523 value is a reference, actually dereference it in order to get
1524 the underlying value.
1525
bc1f8cda
SM
15262015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1527
1528 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1529
acaa662f
SM
15302015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1531
1532 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1533 * linespec.c (linespec_lexer_lex_string): Same.
1534
4d9d419e
PL
15352015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1536
1537 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1538
6ec5f4be
PL
15392015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1540
1541 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1542 variable. Call aarch64_decode_adr instead of
1543 aarch64_decode_adrp.
1544 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1545 (aarch64_decode_adr): New function declaration.
1546 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1547 (aarch64_decode_adr): New function, factored out from
1548 aarch64_decode_adrp to decode both adr and adrp instructions.
1549
787749ea
PL
15502015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1551
1552 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1553 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1554 (aarch64-insn.o): New rule.
1555 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1556 (aarch64*-*-linux*): Likewise.
1557 * arch/aarch64-insn.c: New file.
1558 * arch/aarch64-insn.h: New file.
1559 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1560 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1561 arch/aarch64-insn.h.
1562 (decode_add_sub_imm): Rename to ...
1563 (aarch64_decode_add_sub_imm): ... this.
1564 (decode_adrp): Rename to ...
1565 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1566 Declare in arch/aarch64-insn.h.
1567 (decode_b): Rename to ...
1568 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1569 Declare in arch/aarch64-insn.h.
1570 (decode_bcond): Rename to ...
1571 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1572 Declare in arch/aarch64-insn.h.
1573 (decode_br): Rename to ...
1574 (aarch64_decode_br): ... this.
1575 (decode_cb): Rename to ...
1576 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1577 Declare in arch/aarch64-insn.h.
1578 (decode_eret): Rename to ...
1579 (aarch64_decode_eret): ... this.
1580 (decode_movz): Rename to ...
1581 (aarch64_decode_movz): ... this.
1582 (decode_orr_shifted_register_x): Rename to ...
1583 (aarch64_decode_orr_shifted_register_x): ... this.
1584 (decode_ret): Rename to ...
1585 (aarch64_decode_ret): ... this.
1586 (decode_stp_offset): Rename to ...
1587 (aarch64_decode_stp_offset): ... this.
1588 (decode_stp_offset_wb): Rename to ...
1589 (aarch64_decode_stp_offset_wb): ... this.
1590 (decode_stur): Rename to ...
1591 (aarch64_decode_stur): ... this.
1592 (decode_tb): Rename to ...
1593 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1594 Declare in arch/aarch64-insn.h.
1595 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1596
183dc7ec
DE
15972015-09-20 Doug Evans <xdje42@gmail.com>
1598
1599 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1600
2ee7123e
DE
16012015-09-20 Doug Evans <xdje42@gmail.com>
1602
1603 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1604 variable name that collides with a parameter.
1605
7d1c9c9b
JB
16062015-09-20 Joel Brobecker <brobecker@adacore.com>
1607
1608 * dwarf2loc.c (locexpr_get_frame_base): Renames
1609 block_op_get_frame_base.
1610 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1611 block_op_get_frame_base by reference to locexpr_get_frame_base.
1612 (loclist_get_frame_base): New function, near identical copy of
1613 locexpr_get_frame_base.
1614 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1615 block_op_get_frame_base by reference to loclist_get_frame_base.
1616
7dc7c195
DE
16172015-09-19 Doug Evans <xdje42@gmail.com>
1618
1619 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1620 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1621
be550b6e
DE
16222015-09-18 Doug Evans <xdje42@gmail.com>
1623
1624 * linux-thread-db.c (record_thread): Return the created thread.
1625 (thread_from_lwp): Likewise.
1626 (thread_db_get_thread_local_address): Update.
1627
615b3f62
DE
16282015-09-18 Doug Evans <xdje42@gmail.com>
1629
1630 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1631 move only member demangled_name up. All uses updated.
1632
015d2e7e
DE
16332015-09-18 Doug Evans <xdje42@gmail.com>
1634
1635 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1636 kind of minimal symbol in the error message.
1637 * objfiles.c (objfile_flavour_name): New function.
1638 * objfiles.h (objfile_flavour_name): Declare.
1639
a0cc84cd
YQ
16402015-09-18 Yao Qi <yao.qi@linaro.org>
1641
1642 * nat/aarch64-linux.c: Include elf/common.h,
1643 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1644 (aarch64_ps_get_thread_area): New function.
1645 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1646 (aarch64_ps_get_thread_area): Declare.
1647 * aarch64-linux-nat.c (ps_get_thread_area): Call
1648 aarch64_ps_get_thread_area.
1649
d2939ba2
MM
16502015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1651
1652 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1653
f2665db5
MM
16542015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1655
1656 * NEWS: Announce new scheduler-locking mode.
1657 * infrun.c (schedlock_replay): New.
1658 (scheduler_enums): Add schedlock_replay.
1659 (scheduler_mode): Change default to schedlock_replay.
1660 (user_visible_resume_ptid): Handle schedlock_replay.
1661 (clear_proceed_status_thread): Stop replaying if resumed thread is
1662 not replaying.
1663 (schedlock_applies): Handle schedlock_replay.
1664 (_initialize_infrun): Document new scheduler-locking mode.
1665 * record-btrace.c (record_btrace_resume): Remove code to stop other
1666 threads when not replaying the resumed thread.
1667
7ff27e9b
MM
16682015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1669
1670 * record-btrace.c ((record_btrace_will_replay): New.
1671 (init_record_btrace_ops): Initialize to_record_will_replay.
1672 * record-full.c ((record_full_will_replay): New.
1673 (init_record_full_ops): Initialize to_record_will_replay.
1674 * target-delegates.c: Regenerated.
1675 * target.c (target_record_will_replay): New.
1676 * target.h (struct target_ops) <to_record_will_replay>: New.
1677 (target_record_will_replay): New.
1678
797094dd
MM
16792015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1680
1681 * record-btrace.c (record_btrace_resume): Call
1682 target_record_stop_replaying.
1683 (record_btrace_stop_replaying_all): New.
1684 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1685 * record-full.c (record_full_stop_replaying): New.
1686 (init_record_full_ops ): Initialize to_record_stop_replaying.
1687 * target-delegates.c: Regenerated.
1688 * target.c (target_record_stop_replaying): New.
1689 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1690 (target_record_stop_replaying): New.
1691
4d10e986
MM
16922015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1693
1694 * record-btrace.c (record_btrace_xfer_partial)
1695 (record_btrace_store_registers, record_btrace_prepare_to_store):
1696 Call record_btrace_is_replaying with inferior_ptid instead of
1697 minus_one_ptid.
1698 (record_btrace_store_registers): Change error message.
1699
a52eab48
MM
17002015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1701
1702 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1703 Update users to pass minus_one_ptid.
1704 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1705 * record.c (cmd_record_delete): Pass inferior_ptid to
1706 target_record_is_replaying.
1707 * target-delegates.c: Regenerated.
1708 * target.c (target_record_is_replaying): Add ptid argument.
1709 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1710 argument.
1711 (target_record_is_replaying): Add ptid argument.
1712
cbb55fa7
MM
17132015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1714
1715 * record-btrace.c (record_btrace_open): Remove non_stop check.
1716 * NEWS: Announce that record btrace supports non-stop mode.
1717
d1988021
MM
17182015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1719
1720 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1721 in the TARKET_WAITKIND_NO_HISTORY case.
1722
a6b5be76
MM
17232015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1724
1725 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1726 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1727
ec71cc2f
MM
17282015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1729
1730 * record-btrace.c (get_thread_current_frame): New.
1731 (record_btrace_start_replaying): Call get_thread_current_frame.
1732
0ca912df
MM
17332015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1734
1735 * record-btrace.c (record_btrace_resume_thread): A move request
1736 overwrites a previous move request.
1737 (record_btrace_find_resume_thread): Removed.
1738 (record_btrace_resume): Resume all requested threads.
1739
e3cfc1c7
MM
17402015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1741
1742 * record-btrace.c: Include vec.h.
1743 (record_btrace_find_thread_to_move): Removed.
1744 (btrace_step_no_resumed, btrace_step_again)
1745 (record_btrace_stop_replaying_at_end): New.
1746 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1747 (record_btrace_single_step_forward): Remove calls to
1748 record_btrace_stop_replaying.
1749 (record_btrace_step_thread): Do only one step for BTHR_CONT and
1750 BTHR_RCONT. Keep threads at the end of their history moving.
1751 (record_btrace_wait): Call record_btrace_step_thread for all threads
1752 until one reports an event. Call record_btrace_stop_replaying_at_end
1753 for the eventing thread.
1754
cf8f8f0c
MM
17552015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1756
1757 * record-btrace.c (record_btrace_single_step_forward): Return
1758 NO_HISTORY if a step brings us to the end of the execution history.
1759
011c71b6
MM
17602015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1761
1762 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1763 to ...
1764 (record_btrace_single_step_forward): ... here and
1765 (record_btrace_single_step_backward): ... here.
1766
d825d248
MM
17672015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1768
1769 * record-btrace.c (btrace_step_spurious)
1770 (record_btrace_single_step_forward)
1771 (record_btrace_single_step_backward): New.
1772 (record_btrace_step_thread): Call record_btrace_single_step_forward
1773 and record_btrace_single_step_backward.
1774
3c615f99
MM
17752015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1776
1777 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1778 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1779
987e68b1
MM
17802015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1781
1782 * record-btrace.c (btrace_thread_flag_to_str)
1783 (record_btrace_cancel_resume): New.
1784 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1785 (record_btrace_resume): Print execution direction.
1786 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1787 (record_btrace_wait): Call record_btrace_cancel_resume.
1788
6e4879f0
MM
17892015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1790
1791 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1792 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1793 (record_btrace_find_thread_to_move): Also accept threads that have
1794 BTHR_STOP set.
1795 (btrace_step_stopped_on_request, record_btrace_stop): New.
1796 (record_btrace_step_thread): Support BTHR_STOP.
1797 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1798 (init_record_btrace_ops): Initialize to_stop.
1799
5953356c
MM
18002015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1801
1802 * record-btrace.c (record_btrace_wait): Replace non_stop check with
1803 target_is_non_stop_p ().
1804
bfca584f
PMR
18052015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
1806
1807 * ada-typeprint.c (print_array_type): Do not describe arrays as
1808 packed when they embed dynamic elements.
1809
5382cfab
PW
18102015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1811
1812 * symtab.h (address_class): Document that TLS variables
1813 are handled by LOC_UNRESOLVED.
1814 * findvar.c (default_read_var_value): Don't relocate TLS variables.
1815 * printcmd.c (address_info): Don't relocate TLS variables.
1816
b277c936
PL
18172015-09-15 Pierre Langlois <pierre.langlois@arm.com>
1818
1819 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
1820 (decode_adrp): Likewise.
1821 (decode_b): Likewise.
1822 (decode_bcond): Likewise.
1823 (decode_br): Likewise.
1824 (decode_cb): Likewise.
1825 (decode_eret): Likewise.
1826 (decode_movz): Likewise.
1827 (decode_orr_shifted_register_x): Likewise.
1828 (decode_ret): Likewise.
1829 (decode_stp_offset): Likewise.
1830 (decode_stp_offset_wb): Likewise.
1831 (decode_stur): Likewise.
1832 (decode_tb): Likewise.
1833 (aarch64_analyze_prologue): Likewise.
1834 (pass_in_x): Likewise.
1835 (pass_in_v): Likewise.
1836 (pass_on_stack): Likewise.
1837 (aarch64_push_dummy_call): Likewise.
1838 (aarch64_extract_return_value): Likewise.
1839 (aarch64_store_return_value): Likewise.
1840 (aarch64_return_value): Likewise.
1841 (aarch64_record_asimd_load_store): Likewise.
1842 (aarch64_record_load_store): Likewise.
1843 (aarch64_record_data_proc_simd_fp): Likewise.
1844
141c5cc4
JK
18452015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1846
1847 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
1848 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
1849 (ppc64_skip_trampoline_code_1): ... here.
1850 (ppc64_skip_trampoline_code): New wrapper function.
1851 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
1852
750ce8d1
YQ
18532015-09-15 Yao Qi <yao.qi@linaro.org>
1854
1855 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
1856 function.
1857 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
1858 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
1859 if target_can_do_single_step returns 1.
1860 * remote.c (struct vCont_action_support) <s, S>: New fields.
1861 (PACKET_vContSupported): New enum.
1862 (remote_protocol_features): New element for vContSupported.
1863 (remote_query_supported): Append "vContSupported+".
1864 (remote_vcont_probe): Remove support_s and support_S, use
1865 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
1866 vCont packet if c and C actions are not supported.
1867 (remote_can_do_single_step): New function.
1868 (init_remote_ops): Install it to to_can_do_single_step.
1869 (_initialize_remote): Call add_packet_config_cmd.
1870 * target.h (struct target_ops) <to_can_do_single_step>: New field.
1871 (target_can_do_single_step): New macro.
1872 * target-delegates.c: Re-generated.
1873
ade90bde
YQ
18742015-09-15 Yao Qi <yao.qi@linaro.org>
1875
1876 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
1877 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
1878 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
1879 New function.
1880 (aarch64_siginfo_from_compat_siginfo): New function.
1881 * nat/aarch64-linux.h: Include signal.h.
1882 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
1883 (compat_timer_t, compat_clock_t): Likewise.
1884 (struct compat_timeval): New.
1885 (union compat_sigval): New.
1886 (struct compat_siginfo): New.
1887 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
1888 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
1889 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
1890 (cpt_si_band, cpt_si_fd): Likewise.
1891
4c2f2a79
PA
18922015-09-14 Pedro Alves <palves@redhat.com>
1893
1894 * infrun.c (current_stop_id): New global.
1895 (get_stop_id, new_stop_id): New functions.
1896 (fetch_inferior_event): Handle normal_stop proceeding the target.
1897 (struct stop_context): New.
1898 (save_stop_context, release_stop_context_cleanup)
1899 (stop_context_changed): New functions.
1900 (normal_stop): Return true if the hook-stop changes the stop
1901 context.
1902 * infrun.h (get_stop_id): Declare.
1903 (normal_stop): Now returns int. Add documentation.
1904
919e6dbe
PMR
19052015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
1906
1907 * ada-lang.c (ada_value_ptr_subscript): Update the heading
1908 comment. Handle packed arrays.
1909
b027a8fa
PA
19102015-09-14 Pedro Alves <palves@redhat.com>
1911
1912 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
1913 mention of maint set/show target-non-stop.
1914
b459a59b
DB
19152015-09-11 Don Breazeal <donb@codesourcery.com>
1916
1917 * NEWS: Announce new remote packets for the exec-events
1918 feature and the exec-events feature and associated commands.
1919
d46addbb
DB
19202015-09-11 Don Breazeal <donb@codesourcery.com>
1921
1922 * remote.c (remote_exec_event_p): New function.
1923 (remote_insert_exec_catchpoint): New function.
1924 (remote_remove_exec_catchpoint): New function.
1925 (init_extended_remote_ops): Initialize extended_remote_ops
1926 members to_insert_exec_catchpoint and
1927 to_remove_exec_catchpoint.
1928
94585166
DB
19292015-09-11 Don Breazeal <donb@codesourcery.com>
1930 Luis Machado <lgustavo@codesourcery.com>
1931
1932 * infrun.c (follow_exec): Use process-style ptid for
1933 exec message. Call add_inferior_with_spaces and
1934 target_follow_exec.
1935 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
1936 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
1937 * remote.c (remote_pspace_data): New static variable.
1938 (remote_pspace_data_cleanup): New function.
1939 (get_remote_exec_file): New function.
1940 (set_remote_exec_file_1): New function.
1941 (set_remote_exec_file): New function.
1942 (show_remote_exec_file): New function.
1943 (remote_exec_file): Delete static variable.
1944 (anonymous enum) <PACKET_exec_event_feature>: New
1945 enumeration constant.
1946 (remote_protocol_features): Add entry for exec-events feature.
1947 (remote_query_supported): Add client side of qSupported query
1948 for exec-events feature.
1949 (remote_follow_exec): New function.
1950 (remote_parse_stop_reply): Handle 'exec' stop reason.
1951 (extended_remote_run, extended_remote_create_inferior): Call
1952 get_remote_exec_file and set_remote_exec_file_1.
1953 (init_extended_remote_ops) <to_follow_exec>: Initialize new
1954 member.
1955 (_initialize_remote): Call
1956 register_program_space_data_with_cleanup. Call
1957 add_packet_config_cmd for remote exec-events feature.
1958 Modify call to add_setshow_string_noescape_cmd for exec-file
1959 to use new functions set_remote_exec_file and
1960 show_remote_exec_file.
1961 * target-debug.h, target-delegates.c: Regenerated.
1962 * target.c (target_follow_exec): New function.
1963 * target.h (struct target_ops) <to_follow_exec>: New member.
1964 (target_follow_exec): Declare new function.
1965
669e74e8
PL
19662015-09-11 Pierre Langlois <pierre.langlois@arm.com>
1967
1968 * aarch64-tdep.c (decode_cb): Move up comment describing the
1969 encoding.
1970 (decode_tb): Fix a typo in comment above the function. Move up
1971 comment describing the encoding.
1972
4d50586d
PL
19732015-09-11 Pierre Langlois <pierre.langlois@arm.com>
1974
1975 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
1976
6dcaef99
MMN
19772015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
1978
1979 PR gdb/18947
1980 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
1981 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
1982
5da1a4d3
SM
19832015-09-10 Simon Marchi <simon.marchi@ericsson.com>
1984
1985 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
1986 operations.
1987
108d56a4
SM
19882015-09-10 Simon Marchi <simon.marchi@ericsson.com>
1989
1990 * ada-lang.c (ada_search_struct_field): Constify parameters
1991 and/or variables..
1992 (xget_renaming_scope): Likewise.
1993 (ada_is_redundant_range_encoding): Likewise.
1994 (scan_discrim_bound): Likewise.
1995 (to_fixed_range_type): Likewise.
1996
dd2e65cc
YQ
19972015-09-10 Yao Qi <yao.qi@linaro.org>
1998
1999 * breakpoint.c (download_tracepoint_locations): New local
2000 can_download_tracepoint. Check the result of
2001 target_can_download_tracepoint and save it in
2002 can_download_tracepoint if there are tracepoints to download.
2003 * linux-nat.h (enum tribool): Move it to ...
2004 * common/common-types.h: ... here.
2005
cfe75703
PA
20062015-09-09 Pedro Alves <palves@redhat.com>
2007
2008 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2009 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2010
a85a3079
PA
20112015-09-09 Pedro Alves <palves@redhat.com>
2012
2013 * continuations.c (add_continuation, restore_thread_cleanup)
2014 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2015 (do_all_continuations_thread, do_all_continuations)
2016 (discard_all_continuations_thread_callback)
2017 (discard_all_continuations_thread, discard_all_continuations)
2018 (add_intermediate_continuation)
2019 (do_all_intermediate_continuations_thread_callback)
2020 (do_all_intermediate_continuations_thread)
2021 (do_all_intermediate_continuations)
2022 (discard_all_intermediate_continuations_thread_callback)
2023 (discard_all_intermediate_continuations_thread)
2024 (discard_all_intermediate_continuations): Delete.
2025 * continuations.h (add_continuation, do_all_continuations)
2026 (do_all_continuations_thread, discard_all_continuations)
2027 (discard_all_continuations_thread, add_intermediate_continuation)
2028 (do_all_intermediate_continuations)
2029 (do_all_intermediate_continuations_thread)
2030 (discard_all_intermediate_continuations)
2031 (discard_all_intermediate_continuations_thread): Delete
2032 declarations.
2033 * event-top.c (stdin_event_handler): Delete references to
2034 continuations.
2035 * gdbthread.h (struct thread_info): Delete continuations and
2036 intermediate_continuations fields.
2037 * inf-loop.c (inferior_event_handler): Remove references to
2038 continuations.
2039 * infrun.c (infrun_thread_stop_requested_callback): Remove
2040 references to continuations.
2041 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2042 * thread.c: Don't include "continuations.h".
2043 (clear_thread_inferior_resources): Remove references to
2044 continuations.
2045
0700e23e
PA
20462015-09-09 Pedro Alves <palves@redhat.com>
2047
2048 * infcall.c (struct dummy_frame_context_saver): Delete.
2049 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2050 (dummy_frame_context_saver_drop)
2051 (dummy_frame_context_saver_cleanup)
2052 (dummy_frame_context_saver_get_regs)
2053 (dummy_frame_context_saver_setup): Delete.
2054 * infcall.h (dummy_frame_context_saver_drop)
2055 (dummy_frame_context_saver_cleanup)
2056 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2057 Delete.
2058 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2059 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2060 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2061
cfc31633
PA
20622015-09-09 Pedro Alves <palves@redhat.com>
2063
2064 * breakpoint.c: Include "thread-fsm.h".
2065 (struct until_break_command_continuation_args): Delete.
2066 (struct until_break_fsm): New.
2067 (until_break_fsm_ops): New global.
2068 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2069 (until_break_command_continuation): Delete.
2070 (until_break_fsm_clean_up): New function.
2071 (until_break_fsm_async_reply_reason): New function.
2072 (until_break_command): Adjust to create an until_break_fsm instead
2073 of a continuation.
2074 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2075 here.
2076 * infcmd.c (struct until_next_fsm): New.
2077 (until_next_fsm_ops): New global.
2078 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2079 (until_next_continuation): Delete.
2080 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2081 functions.
2082 (until_next_command): Adjust to create a new until_next_fsm
2083 instead of a continuation.
2084
388a7084
PA
20852015-09-09 Pedro Alves <palves@redhat.com>
2086
2087 * infcall.c: Include thread_fsm.h.
2088 (struct call_return_meta_info): New.
2089 (get_call_return_value): New function, factored out from
2090 call_function_by_hand_dummy.
2091 (struct call_thread_fsm): New.
2092 (call_thread_fsm_ops): New global.
2093 (new_call_thread_fsm, call_thread_fsm_should_stop)
2094 (call_thread_fsm_should_notify_stop): New functions.
2095 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2096 the thread.
2097 (call_function_by_hand_dummy): Create a new call_thread_fsm
2098 instance, associate it with the thread, and wait for the FSM to
2099 finish. If finished successfully, fetch the function's result
2100 value out of the FSM.
2101 * infrun.c (fetch_inferior_event): If the FSM says the stop
2102 shouldn't be notified, don't call normal_stop.
2103 (maybe_remove_breakpoints): New function, factored out from ...
2104 (normal_stop): ... here. Simplify.
2105 * infrun.h (maybe_remove_breakpoints): Declare.
2106 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2107 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2108 (thread_fsm_should_notify_stop): Declare.
2109
243a9253
PA
21102015-09-09 Pedro Alves <palves@redhat.com>
2111
2112 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2113 * breakpoint.c (handle_jit_event): Print debug output.
2114 (bpstat_what): Split event callback handling to ...
2115 (bpstat_run_callbacks): ... this new function.
2116 (momentary_bkpt_print_it): No longer handle bp_finish here.
2117 * breakpoint.h (bpstat_run_callbacks): Declare.
2118 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2119 <thread_fsm>: New field.
2120 (thread_cancel_execution_command): Declare.
2121 * infcmd.c: Include thread-fsm.h.
2122 (struct step_command_fsm): New.
2123 (step_command_fsm_ops): New global.
2124 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2125 (step_1): Adjust to use step_command_fsm_prepare and
2126 prepare_one_step.
2127 (struct step_1_continuation_args): Delete.
2128 (step_1_continuation): Delete.
2129 (step_command_fsm_should_stop): New function.
2130 (step_once): Delete.
2131 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2132 (prepare_one_step): New function, based on step_once.
2133 (until_next_command): Remove step_multi reference.
2134 (struct return_value_info): New.
2135 (print_return_value): Rename to ...
2136 (print_return_value_1): ... this. New struct return_value_info
2137 parameter. Adjust.
2138 (print_return_value): Reimplement as wrapper around
2139 print_return_value_1.
2140 (struct finish_command_fsm): New.
2141 (finish_command_continuation): Delete.
2142 (finish_command_fsm_ops): New global.
2143 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2144 functions.
2145 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2146 New.
2147 (finish_command_continuation_free_arg): Delete.
2148 (finish_command_fsm_async_reply_reason): New.
2149 (finish_backward, finish_forward): Change symbol parameter to a
2150 finish_command_fsm. Adjust.
2151 (finish_command): Create a finish_command_fsm. Adjust.
2152 * infrun.c: Include "thread-fsm.h".
2153 (clear_proceed_status_thread): Delete the thread's FSM.
2154 (infrun_thread_stop_requested_callback): Cancel the thread's
2155 execution command.
2156 (clean_up_just_stopped_threads_fsms): New function.
2157 (fetch_inferior_event): Handle the event_thread's should_stop
2158 method saying the command isn't done yet.
2159 (process_event_stop_test): Run breakpoint callbacks here.
2160 (print_stop_event): Rename to ...
2161 (print_stop_location): ... this.
2162 (restore_current_uiout_cleanup): New function.
2163 (print_stop_event): Reimplement.
2164 (normal_stop): No longer notify the end_stepping_range observers
2165 here handle "step N" nor "finish" here. No longer call
2166 print_stop_event here.
2167 * infrun.h (struct return_value_info): Forward declare.
2168 (print_return_value): Declare.
2169 (print_stop_event): Change prototype.
2170 * thread-fsm.c: New file.
2171 * thread-fsm.h: New file.
2172 * thread.c: Include "thread-fsm.h".
2173 (thread_cancel_execution_command): New function.
2174 (clear_thread_inferior_resources): Call it.
2175 * cli/cli-interp.c (cli_on_normal_stop): New function.
2176 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2177 observer.
2178 * mi/mi-interp.c: Include "thread-fsm.h".
2179 (restore_current_uiout_cleanup): Delete.
2180 (mi_on_normal_stop): If the thread has an FSM associated, and it
2181 finished, ask it for the async-reply-reason to print. Always call
2182 print_stop_event here, regardless of the top-level interpreter.
2183 Check bpstat_what to tell whether an asynchronous breakpoint hit
2184 triggered.
2185 * tui/tui-interp.c (tui_on_normal_stop): New function.
2186 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2187
0b333c5e
PA
21882015-09-09 Pedro Alves <palves@redhat.com>
2189
2190 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2191 check whether the target can async.
2192 * inf-loop.c (inferior_event_handler): Only call target_async if
2193 the target can async.
2194 * infcall.c: Include top.h and interps.h.
2195 (run_inferior_call): For the interpreter to sync mode while
2196 running the infcall. Call wait_sync_command_done instead of
2197 wait_for_inferior plus normal_stop.
2198 * infcmd.c (prepare_execution_command): Don't check whether the
2199 target can async when running in the foreground.
2200 (step_1): Delete synchronous case handling.
2201 (step_once): Always install a continuation, even in sync mode.
2202 (until_next_command, finish_forward): Don't check whether the
2203 target can async.
2204 (attach_command_post_wait, notice_new_inferior): Always install a
2205 continuation, even in sync mode.
2206 * infrun.c (mark_infrun_async_event_handler): New function.
2207 (proceed): In sync mode, mark infrun's event source instead of
2208 waiting for events here.
2209 (fetch_inferior_event): If the target can't async, do a blocking
2210 wait.
2211 (prepare_to_wait): In sync mode, mark infrun's event source.
2212 (infrun_async_inferior_event_handler): No longer bail out if the
2213 target can't async.
2214 * infrun.h (mark_infrun_async_event_handler): New declaration.
2215 * linux-nat.c (linux_nat_wait_1): Remove calls to
2216 set_sigint_trap/clear_sigint_trap.
2217 (linux_nat_terminal_inferior): No longer check whether the target
2218 can async.
2219 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2220 comment.
2221 (mi_execute_command_input_handler): No longer check whether the
2222 target is async. Update and simplify comment.
2223 * target.c (default_target_wait): New function.
2224 * target.h (struct target_ops) <to_wait>: Now defaults to
2225 default_target_wait.
2226 (default_target_wait): Declare.
2227 * top.c (wait_sync_command_done): New function, factored out from
2228 ...
2229 (maybe_wait_sync_command_done): ... this.
2230 * top.h (wait_sync_command_done): Declare.
2231 * target-delegates.c: Regenerate.
2232
0568462b
MM
22332015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2234
2235 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2236 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2237 Remove include of sys/utsname.h.
2238 (linux_determine_kernel_ptr_bits): Remove.
2239 (linux_determine_kernel_start): New.
2240 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2241 Update check.
2242 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2243 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2244 initialization.
2245 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2246 assignment.
2247
72e02483
PA
22482015-09-07 Pedro Alves <palves@redhat.com>
2249
2250 * guile/guile-internal.h (as_a_scm_t_subr): New.
2251 * guile/guile.c (misc_guile_functions): Use it.
2252 * guile/scm-arch.c (arch_functions): Use it.
2253 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2254 Use it.
2255 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2256 * guile/scm-cmd.c (command_functions): Use it.
2257 * guile/scm-disasm.c (disasm_functions): Use it.
2258 * guile/scm-exception.c (exception_functions)
2259 (private_exception_functions): Use it.
2260 * guile/scm-frame.c (frame_functions)
2261 * guile/scm-gsmob.c (gsmob_functions): Use it.
2262 * guile/scm-iterator.c (iterator_functions): Use it.
2263 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2264 * guile/scm-math.c (math_functions): Use it.
2265 * guile/scm-objfile.c (objfile_functions): Use it.
2266 * guile/scm-param.c (parameter_functions): Use it.
2267 * guile/scm-ports.c (port_functions, private_port_functions): Use
2268 it.
2269 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2270 * guile/scm-progspace.c (pspace_functions): Use it.
2271 * guile/scm-string.c (string_functions): Use it.
2272 * guile/scm-symbol.c (symbol_functions): Use it.
2273 * guile/scm-symtab.c (symtab_functions): Use it.
2274 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2275 it.
2276 * guile/scm-value.c (value_functions): Use it.
2277
e65b5245
AB
22782015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2279
2280 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2281 (tui_next_win): Likewise.
2282 (tui_prev_win): Likewise.
2283 (tui_partial_win_by_name): Likewise.
2284 (tui_init_generic_part): Likewise.
2285 (init_content_element): Likewise.
2286 (tui_del_window): Likewise.
2287 (tui_free_window): Likewise.
2288 (tui_del_data_windows): Likewise.
2289 (tui_free_data_content): Likewise.
2290 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2291 * tui/tui-regs.c (tui_show_register_group): Likewise.
2292 * tui/tui-win.c (tui_resize_all): Likewise.
2293 (tui_set_focus): Likewise.
2294 (tui_set_win_height): Likewise.
2295 (make_invisible_and_set_new_height): Likewise.
2296 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2297 * tui/tui-wingeneral.c (make_visible): Likewise.
2298
b03e6ad9
AB
22992015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2300
2301 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2302
be903358
AB
23032015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2304
2305 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2306 pointer.
2307 * dbxread.c (dbx_end_psymtab): Likewise.
2308 * gnu-nat.c (gnu_write_inferior): Likewise.
2309 * mdebugread.c (cross_ref): Likewise.
2310 * p-valprint.c (pascal_val_print): Likewise.
2311 * xcoffread.c (xcoff_end_psymtab): Likewise.
2312
02f024f9
YQ
23132015-09-04 Yao Qi <yao.qi@linaro.org>
2314
2315 * NEWS: Mention the aarch64 multi-arch debugging support.
2316
cd7c1778
PMR
23172015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2318
2319 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2320 type instead of a TYPE_CODE_INT one for the string_char_type
2321 and the ada_primitive_type_char types.
2322
39edd165
YQ
23232015-09-03 Yao Qi <yao.qi@linaro.org>
2324
2325 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2326 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2327 aarch64_linux_region_ok_for_watchpoint.
2328 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2329 New function.
2330 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2331 Declare it.
2332
6c214e7c
PP
23332015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2334
2335 * gdb_obstack.h (obstack_strdup): Declare.
2336 * gdb_obstack.c (obstack_strdup): Define.
2337 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2338 * gdbarch.c: Regenerate.
2339 * gdbarch.h: Regenerate.
2340 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2341
eed8b28a
PP
23422015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2343
2344 * gdbtypes.c (copy_type_recursive): Update documentation.
2345
73c6b475
SDJ
23462015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2347
2348 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2349 as zero.
2350
ad1c917a
SDJ
23512015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2352
2353 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2354
3bd7e5b7
SDJ
23552015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2356
2357 * solib-svr4.c (solib_event_probe_action): Call
2358 get_probe_argument_count using TRY...CATCH.
2359 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2360
f469e8ce
SDJ
23612015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2362
2363 * probe.h (struct probe_ops) <get_probe_argument_count,
2364 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2365 the comment that the function can throw an exception.
2366 (get_probe_argument_count): Likewise.
2367 (evaluate_probe_argument): Likewise.
2368 * stap-probe.c (stap_get_opcode): Call error instead of
2369 internal_error.
2370 (stap_get_expected_argument_type): Likewise. Add argument
2371 'probe'. Improve error message by mentioning the probe's name.
2372 (stap_parse_probe_arguments): Adjust call to
2373 stap_get_expected_argument_type.
2374 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2375 not zero. Call internal_error if GDB requests an argument but the
2376 probe has no arguments.
2377
dc5c8746
PMR
23782015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2379
2380 * ada-lang.c (ada_resolve_function): Do not ask the user what
2381 match to use when in completion mode.
2382
136765ea
AB
23832015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2384
2385 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2386 cast of NULL.
2387
90b81c5f
MF
23882015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2389
2390 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2391 call_abi using XSHAL_ABI macro.
2392
1cd36e54
DE
23932015-08-29 Doug Evans <xdje42@gmail.com>
2394
2395 * symtab.h (struct symbol): Tweak comment.
2396
8f57eec2
PP
23972015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2398
2399 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2400 gdbarch obstack instead of on the heap. Update commentary
2401 accordingly.
2402
38eebd71
JB
24032015-08-28 Joel Brobecker <brobecker@adacore.com>
2404
2405 GDB 7.10 released.
2406
d63dd61e
SM
24072015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2408
2409 * NEWS: Update entry about non-8-bits addressable memory.
2410
6f059256
UW
24112015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2412
2413 Revert:
2414 2014-11-06 Doug Evans <xdje42@gmail.com>
2415 * solib.c (solib_global_lookup): Fetch arch from objfile,
2416 not target_gdbarch.
2417
70987a92 24182015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
2419
2420 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2421 attempt to relocate a TLS variable offset.
2422
70987a92 24232015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
2424
2425 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2426 registered yet. Set inferior_ptid while calling target_read_memory.
2427
70987a92 24282015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
2429
2430 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2431 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2432 * linux-nat.c (check_stopped_by_breakpoint): Use
2433 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2434
70987a92 24352015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
2436
2437 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2438 thread was not yet discovered, use thread_from_lwp instead of
2439 calling thread_db_find_new_threads_1.
2440
f5cdf498
SM
24412015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2442
2443 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2444 statements.
2445
fd2ae5d6
SM
24462015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2447
2448 * NEWS: Document support for non-8-bits addressable memory.
2449
14d88147
PA
24502015-08-27 Pedro Alves <palves@redhat.com>
2451
2452 * configure.ac: Remove AC_TYPE_SIGNAL call.
2453 * configure, config.in: Regenerate.
2454
a40805d4
PA
24552015-08-27 Pedro Alves <palves@redhat.com>
2456
2457 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2458 * extension-priv.h: Include signal.h.
2459 (struct signal_handler) <handler>: Change type to sighandler_t.
2460 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2461 * inflow.c (sigint_ours, sigquit_ours): Change type to
2462 sighandler_t.
2463 (child_terminal_inferior): Remove casts.
2464 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2465 (osig): Change type to sighandler_t.
2466 * nto-procfs.c (ofunc): Change type to sighandler_t.
2467 (procfs_wait): Remove casts.
2468 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2469 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2470 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2471
0750520d
PA
24722015-08-27 Pedro Alves <palves@redhat.com>
2473
2474 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2475 * gnulib/aclocal.m4: Renegerate.
2476 * gnulib/config.in: Renegerate.
2477 * gnulib/configure: Renegerate.
2478 * gnulib/import/Makefile.am: Update.
2479 * gnulib/import/Makefile.in: Regenerate.
2480 * gnulib/import/m4/gnulib-cache.m4: Update.
2481 * gnulib/import/m4/gnulib-comp.m4: Update.
2482 * gnulib/import/m4/signal_h.m4: New file.
2483 * gnulib/import/signal.in.h: New file.
2484
a5c0808e
PA
24852015-08-27 Pedro Alves <palves@redhat.com>
2486
2487 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2488 (MIN_MEMORY_PACKET_SIZE): New.
2489 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2490 (get_memory_packet_size): Adjust. No longer limit the max packet
2491 size.
2492 (set_memory_packet_size): Adjust, and remove dead code.
2493 (remote_check_symbols): Use xmalloc and a cleanup instead of
2494 alloca.
2495 (remote_packet_size): No longer cap the packet size.
2496 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2497
cdaec3f3
LM
24982015-08-26 Luis Machado <lgustavo@codesourcery.com>
2499
2500 * compile/compile.c (compile_to_object): Mention language in
2501 error message.
2502
e9756d52
PP
25032015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2504
2505 * target.c (target_pre_inferior): Unset attach_flag.
2506
1dc7a623
SM
25072015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2508
2509 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2510 * gdbarch.c: Re-generate.
2511
8d749320
SM
25122015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2513
6711b7f8
SM
2514 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2515 function with the XNEW-family equivalent.
8d749320
SM
2516 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2517 * ada-exp.y (write_ambiguous_var): Likewise.
2518 * ada-lang.c (resolve_subexp): Likewise.
2519 (user_select_syms): Likewise.
2520 (assign_aggregate): Likewise.
2521 (ada_evaluate_subexp): Likewise.
2522 (cache_symbol): Likewise.
2523 * addrmap.c (allocate_key): Likewise.
2524 (addrmap_create_mutable): Likewise.
2525 * aix-thread.c (sync_threadlists): Likewise.
2526 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2527 (alpha_gdbarch_init): Likewise.
2528 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2529 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2530 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2531 * arm-tdep.c (push_stack_item): Likewise.
2532 (arm_displaced_step_copy_insn): Likewise.
2533 (arm_gdbarch_init): Likewise.
2534 (_initialize_arm_tdep): Likewise.
2535 * avr-tdep.c (push_stack_item): Likewise.
2536 * ax-general.c (new_agent_expr): Likewise.
2537 * block.c (block_initialize_namespace): Likewise.
2538 * breakpoint.c (alloc_counted_command_line): Likewise.
2539 (update_dprintf_command_list): Likewise.
2540 (parse_breakpoint_sals): Likewise.
2541 (decode_static_tracepoint_spec): Likewise.
2542 (until_break_command): Likewise.
2543 (clear_command): Likewise.
2544 (update_global_location_list): Likewise.
2545 (get_breakpoint_objfile_data) Likewise.
2546 * btrace.c (ftrace_new_function): Likewise.
2547 (btrace_set_insn_history): Likewise.
2548 (btrace_set_call_history): Likewise.
2549 * buildsym.c (add_symbol_to_list): Likewise.
2550 (record_pending_block): Likewise.
2551 (start_subfile): Likewise.
2552 (start_buildsym_compunit): Likewise.
2553 (push_subfile): Likewise.
2554 (end_symtab_get_static_block): Likewise.
2555 (buildsym_init): Likewise.
2556 * cli/cli-cmds.c (source_command): Likewise.
2557 * cli/cli-decode.c (add_cmd): Likewise.
2558 * cli/cli-script.c (build_command_line): Likewise.
2559 (setup_user_args): Likewise.
2560 (realloc_body_list): Likewise.
2561 (process_next_line): Likewise.
2562 (copy_command_lines): Likewise.
2563 * cli/cli-setshow.c (do_set_command): Likewise.
2564 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2565 * coffread.c (coff_locate_sections): Likewise.
2566 (coff_symtab_read): Likewise.
2567 (coff_read_struct_type): Likewise.
2568 * common/cleanups.c (make_my_cleanup2): Likewise.
2569 * common/common-exceptions.c (throw_it): Likewise.
2570 * common/filestuff.c (make_cleanup_close): Likewise.
2571 * common/format.c (parse_format_string): Likewise.
2572 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2573 * compile/compile-object-load.c (munmap_list_add): Likewise.
2574 (compile_object_load): Likewise.
2575 * compile/compile-object-run.c (compile_object_run): Likewise.
2576 * compile/compile.c (append_args): Likewise.
2577 * corefile.c (specify_exec_file_hook): Likewise.
2578 * cp-support.c (make_symbol_overload_list): Likewise.
2579 * cris-tdep.c (push_stack_item): Likewise.
2580 (cris_gdbarch_init): Likewise.
2581 * ctf.c (ctf_trace_file_writer_new): Likewise.
2582 * dbxread.c (init_header_files): Likewise.
2583 (add_new_header_file): Likewise.
2584 (init_bincl_list): Likewise.
2585 (dbx_end_psymtab): Likewise.
2586 (start_psymtab): Likewise.
2587 (dbx_end_psymtab): Likewise.
2588 * dcache.c (dcache_init): Likewise.
2589 * dictionary.c (dict_create_hashed): Likewise.
2590 (dict_create_hashed_expandable): Likewise.
2591 (dict_create_linear): Likewise.
2592 (dict_create_linear_expandable): Likewise.
2593 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2594 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2595 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2596 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2597 (decode_frame_entry_1): Likewise.
2598 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2599 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2600 * dwarf2read.c (dwarf2_has_info): Likewise.
2601 (create_signatured_type_table_from_index): Likewise.
2602 (dwarf2_read_index): Likewise.
2603 (dw2_get_file_names_reader): Likewise.
2604 (create_all_type_units): Likewise.
2605 (read_cutu_die_from_dwo): Likewise.
2606 (init_tu_and_read_dwo_dies): Likewise.
2607 (init_cutu_and_read_dies): Likewise.
2608 (create_all_comp_units): Likewise.
2609 (queue_comp_unit): Likewise.
2610 (inherit_abstract_dies): Likewise.
2611 (read_call_site_scope): Likewise.
2612 (dwarf2_add_field): Likewise.
2613 (dwarf2_add_typedef): Likewise.
2614 (dwarf2_add_member_fn): Likewise.
2615 (attr_to_dynamic_prop): Likewise.
2616 (abbrev_table_alloc_abbrev): Likewise.
2617 (abbrev_table_read_table): Likewise.
2618 (add_include_dir): Likewise.
2619 (add_file_name): Likewise.
2620 (dwarf_decode_line_header): Likewise.
2621 (dwarf2_const_value_attr): Likewise.
2622 (dwarf_alloc_block): Likewise.
2623 (parse_macro_definition): Likewise.
2624 (set_die_type): Likewise.
2625 (write_psymtabs_to_index): Likewise.
2626 (create_cus_from_index): Likewise.
2627 (dwarf2_create_include_psymtab): Likewise.
2628 (process_psymtab_comp_unit_reader): Likewise.
2629 (build_type_psymtab_dependencies): Likewise.
2630 (read_comp_units_from_section): Likewise.
2631 (compute_compunit_symtab_includes): Likewise.
2632 (create_dwo_unit_in_dwp_v1): Likewise.
2633 (create_dwo_unit_in_dwp_v2): Likewise.
2634 (read_func_scope): Likewise.
2635 (process_structure_scope): Likewise.
2636 (mark_common_block_symbol_computed): Likewise.
2637 (load_partial_dies): Likewise.
2638 (dwarf2_symbol_mark_computed): Likewise.
2639 * elfread.c (elf_symfile_segments): Likewise.
2640 (elf_read_minimal_symbols): Likewise.
2641 * environ.c (make_environ): Likewise.
2642 * eval.c (evaluate_subexp_standard): Likewise.
2643 * event-loop.c (create_file_handler): Likewise.
2644 (create_async_signal_handler): Likewise.
2645 (create_async_event_handler): Likewise.
2646 (create_timer): Likewise.
2647 * exec.c (build_section_table): Likewise.
2648 * fbsd-nat.c (fbsd_remember_child): Likewise.
2649 * fork-child.c (fork_inferior): Likewise.
2650 * frv-tdep.c (new_variant): Likewise.
2651 * gdbarch.sh (gdbarch_alloc): Likewise.
2652 (append_name): Likewise.
2653 * gdbtypes.c (rank_function): Likewise.
2654 (copy_type_recursive): Likewise.
2655 (add_dyn_prop): Likewise.
2656 * gnu-nat.c (make_proc): Likewise.
2657 (make_inf): Likewise.
2658 (gnu_write_inferior): Likewise.
2659 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2660 (build_std_type_info_type): Likewise.
2661 * guile/scm-param.c (compute_enum_list): Likewise.
2662 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2663 * guile/scm-value.c (gdbscm_value_call): Likewise.
2664 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2665 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2666 (read_unwind_info): Likewise.
2667 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2668 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2669 (call_function_by_hand_dummy): Likewise.
2670 * infcmd.c (step_once): Likewise.
2671 (finish_forward): Likewise.
2672 (attach_command): Likewise.
2673 (notice_new_inferior): Likewise.
2674 * inferior.c (add_inferior_silent): Likewise.
2675 * infrun.c (add_displaced_stepping_state): Likewise.
2676 (save_infcall_control_state): Likewise.
2677 (save_inferior_ptid): Likewise.
2678 (_initialize_infrun): Likewise.
2679 * jit.c (bfd_open_from_target_memory): Likewise.
2680 (jit_gdbarch_data_init): Likewise.
2681 * language.c (add_language): Likewise.
2682 * linespec.c (decode_line_2): Likewise.
2683 * linux-nat.c (add_to_pid_list): Likewise.
2684 (add_initial_lwp): Likewise.
2685 * linux-thread-db.c (add_thread_db_info): Likewise.
2686 (record_thread): Likewise.
2687 (info_auto_load_libthread_db): Likewise.
2688 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2689 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2690 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2691 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2692 * macrocmd.c (macro_define_command): Likewise.
2693 * macroexp.c (gather_arguments): Likewise.
2694 * macroscope.c (sal_macro_scope): Likewise.
2695 * macrotab.c (new_macro_table): Likewise.
2696 * mdebugread.c (push_parse_stack): Likewise.
2697 (parse_partial_symbols): Likewise.
2698 (parse_symbol): Likewise.
2699 (psymtab_to_symtab_1): Likewise.
2700 (new_block): Likewise.
2701 (new_psymtab): Likewise.
2702 (mdebug_build_psymtabs): Likewise.
2703 (add_pending): Likewise.
2704 (elfmdebug_build_psymtabs): Likewise.
2705 * mep-tdep.c (mep_gdbarch_init): Likewise.
2706 * mi/mi-main.c (mi_execute_command): Likewise.
2707 * mi/mi-parse.c (mi_parse_argv): Likewise.
2708 * minidebug.c (lzma_open): Likewise.
2709 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2710 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2711 * mips-tdep.c (mips_gdbarch_init): Likewise.
2712 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2713 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2714 * mt-tdep.c (mt_registers_info): Likewise.
2715 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2716 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2717 (linux_enable_pt): Likewise.
2718 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2719 (linux_xfer_osdata_processgroups): Likewise.
2720 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2721 * nto-procfs.c (procfs_meminfo): Likewise.
2722 * objc-lang.c (start_msglist): Likewise.
2723 (selectors_info): Likewise.
2724 (classes_info): Likewise.
2725 (find_methods): Likewise.
2726 * objfiles.c (allocate_objfile): Likewise.
2727 (update_section_map): Likewise.
2728 * osabi.c (gdbarch_register_osabi): Likewise.
2729 (gdbarch_register_osabi_sniffer): Likewise.
2730 * parse.c (start_arglist): Likewise.
2731 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2732 (hwdebug_insert_point): Likewise.
2733 * printcmd.c (display_command): Likewise.
2734 (ui_printf): Likewise.
2735 * procfs.c (create_procinfo): Likewise.
2736 (load_syscalls): Likewise.
2737 (proc_get_LDT_entry): Likewise.
2738 (proc_update_threads): Likewise.
2739 * prologue-value.c (make_pv_area): Likewise.
2740 (pv_area_store): Likewise.
2741 * psymtab.c (extend_psymbol_list): Likewise.
2742 (init_psymbol_list): Likewise.
2743 (allocate_psymtab): Likewise.
2744 * python/py-inferior.c (add_thread_object): Likewise.
2745 * python/py-param.c (compute_enum_values): Likewise.
2746 * python/py-value.c (valpy_call): Likewise.
2747 * python/py-varobj.c (py_varobj_iter_next): Likewise.
2748 * python/python.c (ensure_python_env): Likewise.
2749 * record-btrace.c (record_btrace_start_replaying): Likewise.
2750 * record-full.c (record_full_reg_alloc): Likewise.
2751 (record_full_mem_alloc): Likewise.
2752 (record_full_end_alloc): Likewise.
2753 (record_full_core_xfer_partial): Likewise.
2754 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2755 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2756 * remote-notif.c (remote_notif_state_allocate): Likewise.
2757 * remote.c (demand_private_info): Likewise.
2758 (remote_notif_stop_alloc_reply): Likewise.
2759 (remote_enable_btrace): Likewise.
2760 * reverse.c (save_bookmark_command): Likewise.
2761 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2762 * rx-tdep.c (rx_gdbarch_init): Likewise.
2763 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2764 * ser-go32.c (dos_get_tty_state): Likewise.
2765 (dos_copy_tty_state): Likewise.
2766 * ser-mingw.c (ser_windows_open): Likewise.
2767 (ser_console_wait_handle): Likewise.
2768 (ser_console_get_tty_state): Likewise.
2769 (make_pipe_state): Likewise.
2770 (net_windows_open): Likewise.
2771 * ser-unix.c (hardwire_get_tty_state): Likewise.
2772 (hardwire_copy_tty_state): Likewise.
2773 * solib-aix.c (solib_aix_new_lm_info): Likewise.
2774 * solib-dsbt.c (dsbt_current_sos): Likewise.
2775 (dsbt_relocate_main_executable): Likewise.
2776 * solib-frv.c (frv_current_sos): Likewise.
2777 (frv_relocate_main_executable): Likewise.
2778 * solib-spu.c (spu_bfd_fopen): Likewise.
2779 * solib-svr4.c (lm_info_read): Likewise.
2780 (svr4_copy_library_list): Likewise.
2781 (svr4_default_sos): Likewise.
2782 * source.c (find_source_lines): Likewise.
2783 (line_info): Likewise.
2784 (add_substitute_path_rule): Likewise.
2785 * spu-linux-nat.c (spu_bfd_open): Likewise.
2786 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2787 * stabsread.c (dbx_lookup_type): Likewise.
2788 (read_type): Likewise.
2789 (read_member_functions): Likewise.
2790 (read_struct_fields): Likewise.
2791 (read_baseclasses): Likewise.
2792 (read_args): Likewise.
2793 (_initialize_stabsread): Likewise.
2794 * stack.c (func_command): Likewise.
2795 * stap-probe.c (handle_stap_probe): Likewise.
2796 * symfile.c (addrs_section_sort): Likewise.
2797 (addr_info_make_relative): Likewise.
2798 (load_section_callback): Likewise.
2799 (add_symbol_file_command): Likewise.
2800 (init_filename_language_table): Likewise.
2801 * symtab.c (create_filename_seen_cache): Likewise.
2802 (sort_search_symbols_remove_dups): Likewise.
2803 (search_symbols): Likewise.
2804 * target.c (make_cleanup_restore_target_terminal): Likewise.
2805 * thread.c (new_thread): Likewise.
2806 (enable_thread_stack_temporaries): Likewise.
2807 (make_cleanup_restore_current_thread): Likewise.
2808 (thread_apply_all_command): Likewise.
2809 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2810 * top.c (gdb_readline_wrapper): Likewise.
2811 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2812 * tracepoint.c (trace_find_line_command): Likewise.
2813 (all_tracepoint_actions_and_cleanup): Likewise.
2814 (make_cleanup_restore_current_traceframe): Likewise.
2815 (get_uploaded_tp): Likewise.
2816 (get_uploaded_tsv): Likewise.
2817 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2818 (tui_alloc_win_info): Likewise.
2819 (tui_alloc_content): Likewise.
2820 (tui_add_content_elements): Likewise.
2821 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
2822 (tui_set_disassem_content): Likewise.
2823 * ui-file.c (ui_file_new): Likewise.
2824 (stdio_file_new): Likewise.
2825 (tee_file_new): Likewise.
2826 * utils.c (make_cleanup_restore_integer): Likewise.
2827 (add_internal_problem_command): Likewise.
2828 * v850-tdep.c (v850_gdbarch_init): Likewise.
2829 * valops.c (find_oload_champ): Likewise.
2830 * value.c (allocate_value_lazy): Likewise.
2831 (record_latest_value): Likewise.
2832 (create_internalvar): Likewise.
2833 * varobj.c (install_variable): Likewise.
2834 (new_variable): Likewise.
2835 (new_root_variable): Likewise.
2836 (cppush): Likewise.
2837 (_initialize_varobj): Likewise.
2838 * windows-nat.c (windows_make_so): Likewise.
2839 * x86-nat.c (x86_add_process): Likewise.
2840 * xcoffread.c (arrange_linetable): Likewise.
2841 (allocate_include_entry): Likewise.
2842 (process_linenos): Likewise.
2843 (SYMBOL_DUP): Likewise.
2844 (xcoff_start_psymtab): Likewise.
2845 (xcoff_end_psymtab): Likewise.
2846 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
2847 * xtensa-tdep.c (xtensa_register_type): Likewise.
2848 * gdbarch.c: Regenerate.
2849 * gdbarch.h: Regenerate.
2850
17d8546e
DB
28512015-08-25 Don Breazeal <donb@codesourcery.com>
2852
2853 * infrun.c (follow_exec): Re-order operations for
2854 handling follow-exec-mode "new".
2855 (handle_inferior_event_1): Assign ecs->event_thread
2856 to the current thread.
2857 * remote.c (get_remote_arch_state): Add an assertion.
2858
ba49e44b
PA
28592015-08-26 Pedro Alves <palves@redhat.com>
2860
2861 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
2862
7541ab03 28632015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 2864
7541ab03 2865 PR gdb/18804
abc56d60
PA
2866 * defs.h (maybe_quit): Declare.
2867 (QUIT): Now calls maybe_quit.
2868 * event-loop.c (clear_async_signal_handler)
2869 (async_signal_handler_is_marked): New functions.
2870 * event-loop.h (async_signal_handler_is_marked)
2871 (clear_async_signal_handler): New declarations.
2872 * remote.c (remote_check_pending_interrupt): New function.
2873 (interrupt_query): Use make_cleanup_restore_target_terminal. No
2874 longer check whether the target is async. If waiting for a stop
2875 reply, and a Ctrl-C as been sent to the target, offer to
2876 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
2877 Otherwise do not disconnect and throw a quit.
2878 (_initialize_remote): Install remote_check_pending_interrupt as
2879 to_check_pending_interrupt.
2880 * target.c (target_check_pending_interrupt): New function.
2881 * target.h (struct target_ops) <to_check_pending_interrupt>: New
2882 field.
2883 (target_check_pending_interrupt): New declaration.
2884 * utils.c (maybe_quit): New function.
2885 * target-delegates.c: Regenerate.
2886
dfe7f77c
YQ
28872015-08-25 Yao Qi <yao.qi@linaro.org>
2888
2889 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
2890 Rename local variable pid to tid, and get lwpid of lwp. Update
2891 debug output.
2892
63e43d3a
PMR
28932015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
2894
2895 * ada-lang.c (ada_read_var_value): Add a var_block argument
2896 and pass it to default_read_var_value.
2897 * block.c (block_static_link): New accessor.
2898 * block.h (block_static_link): Declare it.
2899 * buildsym.c (finish_block_internal): Add a static_link
2900 argument. If there is a static link, associate it to the new
2901 block.
2902 (finish_block): Add a static link argument and pass it to
2903 finish_block_internal.
2904 (end_symtab_get_static_block): Update calls to finish_block and
2905 to finish_block_internal.
2906 (end_symtab_with_blockvector): Update call to
2907 finish_block_internal.
2908 * buildsym.h: Forward-declare struct dynamic_prop.
2909 (struct context_stack): Add a static_link field.
2910 (finish_block): Add a static link argument.
2911 * c-exp.y: Remove an obsolete comment (evaluation of variables
2912 already start from the selected frame, and now they climb *up*
2913 the call stack) and propagate the block information to the
2914 produced expression.
2915 * d-exp.y: Likewise.
2916 * f-exp.y: Likewise.
2917 * go-exp.y: Likewise.
2918 * jv-exp.y: Likewise.
2919 * m2-exp.y: Likewise.
2920 * p-exp.y: Likewise.
2921 * coffread.c (coff_symtab_read): Update calls to finish_block.
2922 * dbxread.c (process_one_symbol): Likewise.
2923 * xcoffread.c (read_xcoff_symtab): Likewise.
2924 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
2925 "sym" parameter to struct block_symbol, update its uses and pass
2926 its block to calls to read_var_value.
2927 (convert_symbol_sym): Update the calls to convert_one_symbol.
2928 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
2929 call to read_var_value.
2930 * dwarf2loc.c (block_op_get_frame_base): New.
2931 (dwarf2_block_frame_base_locexpr_funcs): Implement the
2932 get_frame_base method.
2933 (dwarf2_block_frame_base_loclist_funcs): Likewise.
2934 (dwarf2locexpr_baton_eval): Add a frame argument and use it
2935 instead of the selected frame in order to evaluate the
2936 expression.
2937 (dwarf2_evaluate_property): Add a frame argument. Update call
2938 to dwarf2_locexpr_baton_eval to provide a frame in available and
2939 to handle the absence of address stack.
2940 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
2941 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
2942 declaration.
2943 (read_func_scope): Record any available static link description.
2944 Update call to finish_block.
2945 (read_lexical_block_scope): Update call to finish_block.
2946 * findvar.c (follow_static_link): New.
2947 (get_hosting_frame): New.
2948 (default_read_var_value): Add a var_block argument. Use
2949 get_hosting_frame to handle non-local references.
2950 (read_var_value): Add a var_block argument and pass it to the
2951 LA_READ_VAR_VALUE method.
2952 * gdbtypes.c (resolve_dynamic_range): Update calls to
2953 dwarf2_evaluate_property.
2954 (resolve_dynamic_type_internal): Likewise.
2955 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
2956 read_var_value, passing it the block coming from symbol lookup.
2957 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
2958 read_var_value (TODO).
2959 * infcmd.c (finish_command_continuation): Update call to
2960 read_var_value, passing it the block coming from symbol lookup.
2961 * infrun.c (insert_exception_resume_breakpoint): Likewise.
2962 * language.h (struct language_defn): Add a var_block argument to
2963 the LA_READ_VAR_VALUE method.
2964 * objfiles.c (struct static_link_htab_entry): New.
2965 (static_link_htab_entry_hash): New.
2966 (static_link_htab_entry_eq): New.
2967 (objfile_register_static_link): New.
2968 (objfile_lookup_static_link): New.
2969 (free_objfile): Free the STATIC_LINKS hashed map if needed.
2970 * objfiles.h: Include hashtab.h.
2971 (struct objfile): Add a static_links field.
2972 (objfile_register_static_link): New.
2973 (objfile_lookup_static_link): New.
2974 * printcmd.c (print_variable_and_value): Update call to
2975 read_var_value.
2976 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2977 * python/py-frame.c (frapy_read_var): Update call to
2978 read_var_value, passing it the block coming from symbol lookup.
2979 * python/py-framefilter.c (extract_sym): Add a sym_block
2980 parameter and set the pointed value to NULL (TODO).
2981 (enumerate_args): Update call to extract_sym.
2982 (enumerate_locals): Update calls to extract_sym and to
2983 read_var_value.
2984 * python/py-symbol.c (sympy_value): Update call to
2985 read_var_value (TODO).
2986 * stack.c (read_frame_local): Update call to read_var_value.
2987 (read_frame_arg): Likewise.
2988 (return_command): Likewise.
2989 * symtab.h (struct symbol_block_ops): Add a get_frame_base
2990 method.
2991 (struct symbol): Add a block field.
2992 (SYMBOL_BLOCK): New accessor.
2993 * valops.c (value_of_variable): Remove frame/block handling and
2994 pass the block argument to read_var_value, which does this job
2995 now.
2996 (value_struct_elt_for_reference): Update calls to
2997 read_var_value.
2998 (value_of_this): Pass the block found to read_var_value.
2999 * value.h (read_var_value): Add a var_block argument.
3000 (default_read_var_value): Likewise.
3001
ed8b7b42
YQ
30022015-08-25 Yao Qi <yao.qi@linaro.org>
3003
3004 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3005 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3006 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3007
db3cb7cb
YQ
30082015-08-25 Yao Qi <yao.qi@linaro.org>
3009
3010 * Makefile.in (aarch64-liunx.o): New rule.
3011 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3012 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3013 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3014 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3015 extern.
3016 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3017 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3018 * nat/aarch64-linux.c: New file.
3019 * nat/aarch64-linux.h: New file.
3020
f6011a1c
YQ
30212015-08-25 Yao Qi <yao.qi@linaro.org>
3022
3023 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3024 lwp_arch_private_info and ptid_of_lwp.
3025
5e35436e
YQ
30262015-08-25 Yao Qi <yao.qi@linaro.org>
3027
3028 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3029 Move it to nat/aarch64-linux-hw-point.c.
3030 (debug_reg_change_callback): Likewise.
3031 (aarch64_notify_debug_reg_change): :Likewise.
3032 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3033 (aarch64_dr_update_callback_param): New.
3034 (debug_reg_change_callback): New function.
3035 (aarch64_notify_debug_reg_change): Likewise.
3036 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3037 Remove the declaration.
3038
4a8a7965
YQ
30392015-08-25 Yao Qi <yao.qi@linaro.org>
3040
3041 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3042 Call current_lwp_ptid.
3043
32a271ee
YQ
30442015-08-25 Yao Qi <yao.qi@linaro.org>
3045
3046 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3047 debug_printf.
3048
5e137137
YQ
30492015-08-25 Yao Qi <yao.qi@linaro.org>
3050
3051 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3052 ptid_get_pid rather than ptid_get_lwp.
3053
73b8c1fd
PA
30542015-08-24 Pedro Alves <palves@redhat.com>
3055
3056 * NEWS (New commands): Mention set/show remote
3057 multiprocess-extensions-packet.
3058 * remote.c (remote_query_supported): Only tell the server to use
3059 the multiprocess extensions if the user hasn't force-disabled them
3060 with "set remote multiprocess-extensions-packet off".
3061
4a626d0a
PA
30622015-08-24 Pedro Alves <palves@redhat.com>
3063
3064 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3065 1029a8112290f6eee9d7878a391c49db42c999bd.
3066 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3067 Regenerate.
3068 * gnulib/import/Makefile.am: Update.
3069 * gnulib/import/Makefile.in: Update.
3070 * gnulib/import/alloca.in.h: Update.
3071 * gnulib/import/basename-lgpl.c: Update.
3072 * gnulib/import/canonicalize-lgpl.c: Update.
3073 * gnulib/import/config.charset: Update.
3074 * gnulib/import/dirent.in.h: Update.
3075 * gnulib/import/dirfd.c: Update.
3076 * gnulib/import/dirname-lgpl.c: Update.
3077 * gnulib/import/dirname.h: Update.
3078 * gnulib/import/dosname.h: Update.
3079 * gnulib/import/errno.in.h: Update.
3080 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3081 * gnulib/import/extra/snippet/c++defs.h: Update.
3082 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3083 * gnulib/import/extra/update-copyright: Update.
3084 * gnulib/import/float+.h: Update.
3085 * gnulib/import/float.c: Update.
3086 * gnulib/import/float.in.h: Update.
3087 * gnulib/import/fnmatch.c: Update.
3088 * gnulib/import/fnmatch.in.h: Update.
3089 * gnulib/import/fnmatch_loop.c: Update.
3090 * gnulib/import/fpucw.h: Update.
3091 * gnulib/import/frexp.c: Update.
3092 * gnulib/import/frexpl.c: Update.
3093 * gnulib/import/gettimeofday.c: Update.
3094 * gnulib/import/inttypes.in.h: Update.
3095 * gnulib/import/isnan.c: Update.
3096 * gnulib/import/isnand-nolibm.h: Update.
3097 * gnulib/import/isnand.c: Update.
3098 * gnulib/import/isnanl-nolibm.h: Update.
3099 * gnulib/import/isnanl.c: Update.
3100 * gnulib/import/itold.c: Update.
3101 * gnulib/import/localcharset.c: Update.
3102 * gnulib/import/localcharset.h: Update.
3103 * gnulib/import/lstat.c: Update.
3104 * gnulib/import/m4/00gnulib.m4: Update.
3105 * gnulib/import/m4/absolute-header.m4: Update.
3106 * gnulib/import/m4/alloca.m4: Update.
3107 * gnulib/import/m4/canonicalize.m4: Update.
3108 * gnulib/import/m4/codeset.m4: Update.
3109 * gnulib/import/m4/configmake.m4: Update.
3110 * gnulib/import/m4/dirent_h.m4: Update.
3111 * gnulib/import/m4/dirfd.m4: Update.
3112 * gnulib/import/m4/dirname.m4: Update.
3113 * gnulib/import/m4/double-slash-root.m4: Update.
3114 * gnulib/import/m4/eealloc.m4: Update.
3115 * gnulib/import/m4/errno_h.m4: Update.
3116 * gnulib/import/m4/exponentd.m4: Update.
3117 * gnulib/import/m4/exponentl.m4: Update.
3118 * gnulib/import/m4/extensions.m4: Update.
3119 * gnulib/import/m4/extern-inline.m4: Update.
3120 * gnulib/import/m4/fcntl-o.m4: Update.
3121 * gnulib/import/m4/float_h.m4: Update.
3122 * gnulib/import/m4/fnmatch.m4: Update.
3123 * gnulib/import/m4/fpieee.m4: Update.
3124 * gnulib/import/m4/frexp.m4: Update.
3125 * gnulib/import/m4/frexpl.m4: Update.
3126 * gnulib/import/m4/gettimeofday.m4: Update.
3127 * gnulib/import/m4/glibc21.m4: Update.
3128 * gnulib/import/m4/gnulib-cache.m4: Update.
3129 * gnulib/import/m4/gnulib-common.m4: Update.
3130 * gnulib/import/m4/gnulib-comp.m4: Update.
3131 * gnulib/import/m4/gnulib-tool.m4: Update.
3132 * gnulib/import/m4/include_next.m4: Update.
3133 * gnulib/import/m4/inttypes-pri.m4: Update.
3134 * gnulib/import/m4/inttypes.m4: Update.
3135 * gnulib/import/m4/isnand.m4: Update.
3136 * gnulib/import/m4/isnanl.m4: Update.
3137 * gnulib/import/m4/largefile.m4: Update.
3138 * gnulib/import/m4/localcharset.m4: Update.
3139 * gnulib/import/m4/locale-fr.m4: Update.
3140 * gnulib/import/m4/locale-ja.m4: Update.
3141 * gnulib/import/m4/locale-zh.m4: Update.
3142 * gnulib/import/m4/longlong.m4: Update.
3143 * gnulib/import/m4/lstat.m4: Update.
3144 * gnulib/import/m4/malloc.m4: Update.
3145 * gnulib/import/m4/malloca.m4: Update.
3146 * gnulib/import/m4/math_h.m4: Update.
3147 * gnulib/import/m4/mbrtowc.m4: Update.
3148 * gnulib/import/m4/mbsinit.m4: Update.
3149 * gnulib/import/m4/mbsrtowcs.m4: Update.
3150 * gnulib/import/m4/mbstate_t.m4: Update.
3151 * gnulib/import/m4/memchr.m4: Update.
3152 * gnulib/import/m4/memmem.m4: Update.
3153 * gnulib/import/m4/mmap-anon.m4: Update.
3154 * gnulib/import/m4/multiarch.m4: Update.
3155 * gnulib/import/m4/nocrash.m4: Update.
3156 * gnulib/import/m4/off_t.m4: Update.
3157 * gnulib/import/m4/pathmax.m4: Update.
3158 * gnulib/import/m4/readlink.m4: Update.
3159 * gnulib/import/m4/rename.m4: Update.
3160 * gnulib/import/m4/rmdir.m4: Update.
3161 * gnulib/import/m4/ssize_t.m4: Update.
3162 * gnulib/import/m4/stat.m4: Update.
3163 * gnulib/import/m4/stdbool.m4: Update.
3164 * gnulib/import/m4/stddef_h.m4: Update.
3165 * gnulib/import/m4/stdint.m4: Update.
3166 * gnulib/import/m4/stdio_h.m4: Update.
3167 * gnulib/import/m4/stdlib_h.m4: Update.
3168 * gnulib/import/m4/string_h.m4: Update.
3169 * gnulib/import/m4/strstr.m4: Update.
3170 * gnulib/import/m4/strtok_r.m4: Update.
3171 * gnulib/import/m4/sys_socket_h.m4: Update.
3172 * gnulib/import/m4/sys_stat_h.m4: Update.
3173 * gnulib/import/m4/sys_time_h.m4: Update.
3174 * gnulib/import/m4/sys_types_h.m4: Update.
3175 * gnulib/import/m4/time_h.m4: Update.
3176 * gnulib/import/m4/unistd_h.m4: Update.
3177 * gnulib/import/m4/warn-on-use.m4: Update.
3178 * gnulib/import/m4/wchar_h.m4: Update.
3179 * gnulib/import/m4/wchar_t.m4: Update.
3180 * gnulib/import/m4/wctype_h.m4: Update.
3181 * gnulib/import/m4/wint_t.m4: Update.
3182 * gnulib/import/malloc.c: Update.
3183 * gnulib/import/malloca.c: Update.
3184 * gnulib/import/malloca.h: Update.
3185 * gnulib/import/math.in.h: Update.
3186 * gnulib/import/mbrtowc.c: Update.
3187 * gnulib/import/mbsinit.c: Update.
3188 * gnulib/import/mbsrtowcs-impl.h: Update.
3189 * gnulib/import/mbsrtowcs-state.c: Update.
3190 * gnulib/import/mbsrtowcs.c: Update.
3191 * gnulib/import/memchr.c: Update.
3192 * gnulib/import/memmem.c: Update.
3193 * gnulib/import/pathmax.h: Update.
3194 * gnulib/import/readlink.c: Update.
3195 * gnulib/import/ref-add.sin: Update.
3196 * gnulib/import/ref-del.sin: Update.
3197 * gnulib/import/rename.c: Update.
3198 * gnulib/import/rmdir.c: Update.
3199 * gnulib/import/same-inode.h: Update.
3200 * gnulib/import/stat.c: Update.
3201 * gnulib/import/stdbool.in.h: Update.
3202 * gnulib/import/stddef.in.h: Update.
3203 * gnulib/import/stdint.in.h: Update.
3204 * gnulib/import/stdio.c: Update.
3205 * gnulib/import/stdio.in.h: Update.
3206 * gnulib/import/stdlib.in.h: Update.
3207 * gnulib/import/str-two-way.h: Update.
3208 * gnulib/import/streq.h: Update.
3209 * gnulib/import/string.in.h: Update.
3210 * gnulib/import/stripslash.c: Update.
3211 * gnulib/import/strnlen1.c: Update.
3212 * gnulib/import/strnlen1.h: Update.
3213 * gnulib/import/strstr.c: Update.
3214 * gnulib/import/strtok_r.c: Update.
3215 * gnulib/import/sys_stat.in.h: Update.
3216 * gnulib/import/sys_time.in.h: Update.
3217 * gnulib/import/sys_types.in.h: Update.
3218 * gnulib/import/time.in.h: Update.
3219 * gnulib/import/unistd.in.h: Update.
3220 * gnulib/import/verify.h: Update.
3221 * gnulib/import/wchar.in.h: Update.
3222 * gnulib/import/wctype.in.h: Update.
3223 * gnulib/import/gettimeofday.c: New file.
3224 * gnulib/import/m4/absolute-header.m4: New file.
3225 * gnulib/import/m4/gettimeofday.m4: New file.
3226 * gnulib/import/m4/sys_socket_h.m4: New file.
3227 * gnulib/import/m4/sys_time_h.m4: New file.
3228 * gnulib/import/stdio.c: Delete file.
3229 * gnulib/import/sys_time.in.h: New file.
3230
438e1e42
PA
32312015-08-24 Pedro Alves <palves@redhat.com>
3232
3233 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3234 * common/gdb_sys_time.h: New file.
3235 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3236 * gdb_select.h: Likewise.
3237 * gdb_usleep.c: Likewise.
3238 * maint.c: Likewise.
3239 * mi/mi-main.c: Likewise.
3240 * mi/mi-parse.h: Likewise.
3241 * remote-fileio.c: Likewise.
3242 * remote-m32r-sdi.c: Likewise.
3243 * remote.c: Likewise.
3244 * ser-base.c: Likewise.
3245 * ser-pipe.c: Likewise.
3246 * ser-tcp.c: Likewise.
3247 * ser-unix.c: Likewise.
3248 * symfile.c: Likewise.
3249 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3250 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3251 * utils.c: Likewise.
3252
40e0b271
PA
32532015-08-24 Pedro Alves <palves@redhat.com>
3254
3255 * NEWS: Mention removed support for the various ROM monitors.
3256 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3257 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3258 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3259 gdb_target_obs.
3260 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3261 gdb_target_obs.
3262 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3263 dsrec.o from gdb_target_obs.
3264 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3265 from gdb_target_obs.
3266 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3267 gdb_target_obs.
3268 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3269 dink32-rom.o from gdb_target_obs.
3270 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3271 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3272 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3273 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3274
f8904751
PA
32752015-08-21 Pedro Alves <palves@redhat.com>
3276
3277 * frame.c (null_frame_id): Explicitly zero-initialize.
3278
049412e3
TT
32792015-08-21 Tom Tromey <tromey@redhat.com>
3280
3281 * dwarf2read.c (struct dwarf2_section_info): Rename field
3282 'asection' to 'section'.
3283 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3284 (dwarf2_locate_sections, dwarf2_locate_sections)
3285 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3286 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3287 (dwarf2_locate_v2_dwp_sections): Adjust.
3288
948578a9
PP
32892015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3290
3291 * top.h (gdb_in_secondary_prompt_p): Declare.
3292 * top.c (gdb_secondary_prompt_depth): Define.
3293 (gdb_in_secondary_prompt_p): Define.
3294 (gdb_readline_wrapper_cleanup): Decrement
3295 gdb_secondary_prompt_depth.
3296 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3297 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3298 are in a secondary prompt.
3299
7a8bcb88
PP
33002015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3301
3302 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3303 emit the newline.
3304
2d7711a3
GB
33052015-08-21 Gary Benson <gbenson@redhat.com>
3306
3307 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3308
4313b8c0
GB
33092015-08-21 Gary Benson <gbenson@redhat.com>
3310
3311 * target.h (struct target_ops) <to_fileio_open>: New argument
3312 warn_if_slow. Update comment. All implementations updated.
3313 (target_fileio_open_warn_if_slow): New declaration.
3314 * target.c (target_fileio_open): Renamed as...
3315 (target_fileio_open_1): ...this. New argument warn_if_slow.
3316 Pass warn_if_slow to implementation. Update debug printing.
3317 (target_fileio_open): New function.
3318 (target_fileio_open_warn_if_slow): Likewise.
3319 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3320 target_fileio_open_warn_if_slow.
3321
f36b8719
GB
33222015-08-21 Gary Benson <gbenson@redhat.com>
3323
3324 * nat/linux-namespaces.c (linux_mntns_access_fs):
3325 Do not overwrite old_chain.
3326
40045d91
MF
33272015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3328
3329 * arch/xtensa.h: New file.
3330 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3331 (ps_get_thread_area): New function.
3332 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3333 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3334 * xtensa-tdep.c (osabi.h): New #include.
3335 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3336 xtensa-specific hooks.
3337 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3338 member and move the structure to arch/xtensa.h.
3339
80152258
PA
33402015-08-21 Pedro Alves <palves@redhat.com>
3341
3342 * remote.c (struct readahead_cache): New.
3343 (struct remote_state) <readahead_cache>: New field.
3344 (remote_open_1): Invalidate the cache.
3345 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3346 functions.
3347 (remote_hostio_pwrite): Invalidate the readahead cache.
3348 (remote_hostio_pread): Rename to ...
3349 (remote_hostio_pread_vFile): ... this.
3350 (remote_hostio_pread_from_cache): New function.
3351 (remote_hostio_pread): Reimplement.
3352 (remote_hostio_close): Invalidate the readahead cache.
3353
88fc5eb7
MC
33542015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3355
3356 PR build/18843
3357 * procfs.c: Include "filestuff.h".
3358
6f1cb6ea
PP
33592015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3360
3361 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3362 curch.
3363 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3364 cur_line or curch, instead call wmove().
3365 (init_win_info) [CMD_WIN]: Likewise.
3366 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3367 instead call getcury().
3368 (tui_redisplay_readline): Don't set cur_line or curch.
3369 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3370 getcury().
3371 (tui_cont_sig): Remove call to wmove.
3372 (tui_getc): Don't read cur_line or curch, instead call getcury()
3373 or getyx(). Don't set curch.
3374 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3375 set cur_line or curch. Always move cursor to (0,0).
3376
221e1a37
PA
33772015-08-20 Pedro Alves <palves@redhat.com>
3378
3379 * infrun.c (print_target_wait_results): Make extern.
3380 * infrun.h (print_target_wait_results): Declare.
3381 * remote.c (set_stop_requested_callback): Delete.
3382 (process_initial_stop_replies): New function.
3383 (remote_start_remote): Use it.
3384 (stop_reply_queue_length): New function.
3385
40e3ad0e
PA
33862015-08-20 Pedro Alves <palves@redhat.com>
3387
3388 * dwarf2read.c (process_full_comp_unit): To tell whether
3389 start_subfile managed to deduce a language, test for
3390 language_unknown instead of language_c.
3391
af39b327
PMR
33922015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3393
3394 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3395 matches attributes.
3396
7d45c7c3
KB
33972015-08-19 Kevin Buettner <kevinb@redhat.com>
3398
3399 * dwarf2read.c (dwarf2_string_attr): New function.
3400 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3401 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3402 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3403 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3404 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3405
4d6cceb4
DE
34062015-08-18 Doug Evans <dje@google.com>
3407 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3408
3409 PR mi/18833
3410 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3411 if MI-like.
3412 * mi/mi-out.c: #include "vec.h".
3413 (ui_filep): New type.
3414 (DEV_VEC_P (ui_filep)): New type.
3415 (struct ui_out_data) <buffer, original_buffer>: Delete.
3416 (struct ui_out_data) <streams>: New member.
3417 (mi_ui_out_impl): Add data_destroy field.
3418 (mi_field_string, mi_field_fmt): Update.
3419 (mi_flush, mi_redirect, field_separator): Update.
3420 (mi_open, mi_close): Update.
3421 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3422 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3423 (mi_out_new): Call mi_out_data_ctor.
3424
26d56a93
SL
34252015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3426
3427 * remote.c (strprefix): New.
3428 (remote_parse_stop_reply): Use strprefix instead of strncmp
3429 to ensure exact match of keyword.
3430
566f5e3b
AB
34312015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3432
3433 * gdb_bfd.c (debug_bfd_cache): New variable.
3434 (show_bfd_cache_debug): New function.
3435 (gdb_bfd_open): Add debug logging.
3436 (gdb_bfd_ref): Likewise.
3437 (gdb_bfd_unref): Likewise.
3438 (_initialize_gdb_bfd): Add new set/show command.
3439 * NEWS: Mention new command.
3440
18989b3c
AB
34412015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3442
3443 * gdb_bfd.c (bfd_sharing): New variable.
3444 (show_bfd_sharing): New function.
3445 (gdb_bfd_open): Check bfd_sharing variable.
3446 (_initialize_gdb_bfd): Add new set/show command.
3447 * NEWS: Mention new command.
3448
c04fe68f
AB
34492015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3450
3451 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3452 field.
3453 (struct gdb_bfd_cache_search): Likewise.
3454 (eq_bfd): Compare the size, inode, and device id fields.
3455 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3456 (gdb_bfd_ref): Likewise.
3457 (gdb_bfd_unref): Likewise.
3458
b2a33439
PA
34592015-08-18 Pedro Alves <palves@redhat.com>
3460
3461 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3462 target implements to_always_non_stop_p, call it.
3463 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3464 (x86_linux_create_target): Install it as to_always_non_stop_p
3465 method.
3466
71b57e37
DE
34672015-08-17 Doug Evans <dje@google.com>
3468
3469 * ui-out.c (default_ui_out_impl): Add comment.
3470
7f3706eb
IB
34712015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3472
3473 * d-exp.y (type_aggregate_p): New function.
3474 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3475 (classify_inner_name): Likewise.
3476 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3477
1762568f
DE
34782015-08-15 Doug Evans <xdje42@gmail.com>
3479
3480 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3481 updated.
3482 (add_psymbol_to_list): Ditto.
3483
8763cede
DE
34842015-08-15 Doug Evans <xdje42@gmail.com>
3485
3486 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3487 updated. Call end_psymtab_common.
3488 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3489 end_psymtab_common.
3490 (build_type_psymtabs_reader): Ditto.
3491 * psympriv.h (sort_pst_symbols): Delete.
3492 (end_psymtab_common): Declare.
3493 * psymtab.c (sort_pst_symbols): Make static.
3494 (end_psymtab_common): New function.
3495 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3496
51cdc993
DE
34972015-08-15 Doug Evans <xdje42@gmail.com>
3498
3499 * defs.h (LANGUAGE_BITS): Define.
3500 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3501 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3502 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3503 (minimal_symbol_type): Add nr_minsym_types.
3504 (MINSYM_TYPE_BITS): Define.
3505 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3506 (domain_enum_tag): Add NR_DOMAINS.
3507 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3508 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3509
95cf5869
DE
35102015-08-15 Doug Evans <xdje42@gmail.com>
3511
3512 * objfiles.h: Whitespace cleanup.
3513 * psympriv.h: Whitespace cleanup.
3514 * psymtab.c: Whitespace/coding convention cleanup.
3515
e3ae3c43
PP
35162015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3517
3518 * inferior.c (detach_inferior_command): Don't call
3519 any_thread_of_process when pid is 0.
3520 (kill_inferior_command): Likewise.
3521
6ff0ba5f
DE
35222015-08-14 Doug Evans <xdje42@gmail.com>
3523
3524 PR gdb/11833
3525 * NEWS: Document new /s modifier for the disassemble command.
3526 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3527 (_initialize_cli_cmds): Update online docs of disassemble command.
3528 * disasm.c: #include "source.h".
3529 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3530 All uses updated.
3531 (dis_line_entry): New struct.
3532 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3533 (allocate_dis_line_table): New functions.
3534 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3535 (dump_insns): New arg end_pc. All callers updated.
3536 (do_mixed_source_and_assembly_deprecated): Renamed from
3537 do_mixed_source_and_assembly. All callers updated.
3538 (do_mixed_source_and_assembly): New function.
3539 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3540 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3541 DISASSEMBLY_SOURCE. All uses updated.
3542 (DISASSEMBLY_SOURCE): New macro.
3543 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3544
b56ccc20
KS
35452015-08-14 Keith Seitz <keiths@redhat.com>
3546
3547 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3548 `typename' to `type_name' to avoid C++ reserved word.
3549
ebdad8fc
KS
35502015-08-14 Keith Seitz <keiths@redhat.com>
3551
3552 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3553 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3554 silence ARI errors.
3555
c0fe2ae7
IB
35562015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3557
3558 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3559 xstrprintf instead of malloc and sprintf.
3560 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3561 (lex_one_token): Likewise.
3562
a738da3a
MF
35632015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3564
3565 * solib-svr4.c (read_program_header): Add base_addr argument to
3566 report the runtime address of the segment.
3567 (find_program_interpreter): Update read_program_header call to pass
3568 a NULL pointer for the new argument.
3569 (scan_dyntag): Add ptr_addr argument to report the runtime address
3570 of the tag payload.
3571 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3572 read_program_header to get the base address of the dynamic segment.
3573 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3574 read_program_header.
3575 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3576
f8edc4ff
MF
35772015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3578
3579 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3580
444c1ed8
IB
35812015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3582
3583 * d-exp.y (%union): Add voidval.
3584 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3585 name in the lexing stage.
3586 (PostfixExpression): Move symbol completion handling in grammar here
3587 from PrimaryExpression.
3588 (PrimaryExpression): Move routines to handle resolving identifier
3589 tokens in the grammar here from push_expression_name.
3590 (IdentifierExp): Remove the handling of alternating '.' and identifier
3591 tokens.
3592 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3593 (BasicType): Remove C-style typename rules.
3594 (d_type_from_name, d_module_from_name, push_variable)
3595 (push_fieldnames, push_type_name, push_module_name)
3596 (push_expression_name): Remove.
3597 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3598 (token_and_value): New type.
3599 (token_fifo, popping, name_obstack): New globals.
3600 (classify_name): New function.
3601 (classify_inner_name): Likewise.
3602 (yylex): Likewise.
3603 (d_parse): Initialize token_fifo, popping and name_obstack.
3604
bc7c9fab
IB
36052015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3606
3607 * Makefile.in (SFILES): Add d-namespace.c.
3608 (COMMON_OBS): Add d-namespace.o.
3609 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3610 la_lookup_symbol_nonlocal callback function pointer.
3611 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3612 (d_lookup_nested_symbol): New declaration.
3613 * d-namespace.c: New file.
3614
3207396b
PA
36152015-08-13 Pedro Alves <palves@redhat.com>
3616
3617 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3618 cleanup after the decref cleanup, not before.
3619
5d8c3ed3
PMR
36202015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3621
3622 * ada-lang.c: Include namespace.h
3623 (aux_add_nonlocal_symbols): Fix a function name in comment.
3624 (ada_add_block_renamings): New.
3625 (add_nonlocal_symbols): Add global renamings handling.
3626 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3627 to...
3628 (ada_add_all_symbols): ... this new function.
3629 (ada_add_block_symbols): Try to match the input name against the
3630 "using directives list", perform a recursive symbol lookup on
3631 the matched declarations.
3632 * block.h (struct block): Move the_namespace to top-level as
3633 namespace_info. Remove the language_specific field.
3634 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3635 * buildsym.h (using_directives): Rename into...
3636 (local_using_directives): ... this.
3637 (global_using_directives): New.
3638 (struct context_stack): Rename the using_directives field into
3639 local_using_directives.
3640 * buildsym.c (finish_block_internal): Deal with the proper
3641 using directives repository (local or global).
3642 (prepare_for_building): Reset local_using_directives. Assert
3643 that there is no pending global using directive.
3644 (reset_symtab_globals): Reset global_using_directives and
3645 local_using_directives.
3646 (end_symtab_get_static_block): Don't ignore symtabs that have
3647 only using directives.
3648 (push_context): Update references to local_using_directives.
3649 (buildsym_init): Do not reset using_directives.
3650 * cp-support.c: Include namespace.h.
3651 * cp-support.h (struct using_direct): Move to namespace.h.
3652 (cp_add_using_directives): Move to namespace.h.
3653 * cp-namespace.c: Include namespace.h
3654 (cp_add_using_directive): Move to namespace.c, rename it to
3655 add_using_directive, add a "using_directives" argument and use
3656 it as the pending using directives repository. All callers
3657 updated.
3658 * dwarf2read.c (using_directives): New.
3659 (read_import_statement): Call using_directives.
3660 (read_func_scope): Update references to local_using_directives.
3661 (read_lexical_block_scope): Likewise.
3662 (read_namespace): Update the heading comment, call
3663 using_directives.
3664 * namespace.h: New file.
3665 * namespace.c: New file.
3666 * Makefile.in (SFILES): Add namespace.c.
3667 (COMMON_OBS): Add namespace.o
3668
4dafcdeb
JB
36692015-08-12 Joel Brobecker <brobecker@adacore.com>
3670
3671 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3672 compute RETADDR.
3673
67994074
KS
36742015-08-12 Keith Seitz <keiths@redhat.com>
3675
3676 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3677 reserved C++ keyword "explicit" to "explicit_loc".
3678 * breakpoint.c (create_overlay_event_breakpoint)
3679 (create_longjmp_master_breakpoint)
3680 (create_std_terminate_master_breakpoint)
3681 (create_exception_master_breakpoint, update_static_tracepoint):
3682 Rename reserved C++ keyword "explicit" to "explicit_loc".
3683 * completer.c (collect_explicit_location_matches)
3684 (explicit_location_completer): Rename reserved C++ keyword
3685 "explicit" to "explicit_loc".
3686 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3687 (canonicalize_linespec, create_sals_line_offset)
3688 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3689 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3690 "explicit" to "explicit_loc".
3691 * location.c (struct event_location) <explicit>: Rename to
3692 "explicit_loc".
3693 (initialize_explicit_location, new_explicit_location)
3694 (explicit_location_to_string_internal, explicit_location_to_linespec):
3695 Rename reserved C++ keyword "explicit" to "explicit_loc".
3696 * location.h (explicit_location_to_string)
3697 (explicit_location_to_linespec, initialize_explicit_location)
3698 (new_explicit_location): Rename reserved C++ keyword "explicit"
3699 to "explicit_loc".
3700 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3701 keyword "explicit" to "explicit_loc".
3702
59ecaff3
KS
37032015-08-12 Keith Seitz <keiths@redhat.com>
3704
3705 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3706 and only call decode_line_1 when it is non-NULL.
3707
244558af
LM
37082015-08-12 Luis Machado <lgustavo@codesourcery.com>
3709
3710 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3711 location address is not meaningful.
3712 (breakpoint_address_is_meaningful): Update comment.
3713
629500fa
KS
37142015-08-11 Keith Seitz <keiths@redhat.com>
3715
3716 * NEWS: Mention explicit locations.
3717 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3718 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3719 (_initialize_breakpoint): Update documentation for
3720 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3721
eb8c4e2e
KS
37222015-08-11 Keith Seitz <keiths@redhat.com>
3723
3724 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3725 explicit locations, options "--source", "--function",
3726 "--label", and "--line".
3727
87f0e720
KS
37282015-08-11 Keith Seitz <keiths@redhat.com>
3729
3730 * completer.c: Include location.h.
3731 (enum match_type): New enum.
3732 (location_completer): Rename to ...
3733 (linespec_completer): ... this.
3734 (collect_explicit_location_matches, backup_text_ptr)
3735 (explicit_location_completer): New functions.
3736 (location_completer): "New" function; handle linespec
3737 and explicit location completions.
3738 (complete_line_internal): Remove all location completer-specific
3739 handling.
3740 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3741 (find_toplevel_char): Export.
3742 (linespec_parse_line_offset): Export.
3743 Issue error if STRING is not numerical.
3744 (gdb_get_linespec_parser_quote_characters): New function.
3745 * linespec.h (linespec_parse_line_offset): Declare.
3746 (get_gdb_linespec_parser_quote_characters): Declare.
3747 (is_ada_operator): Declare.
3748 (find_toplevel_char): Declare.
3749 (linespec_lexer_lex_keyword): Declare.
3750 * location.c (explicit_to_event_location): New function.
3751 (explicit_location_lex_one): New function.
3752 (string_to_explicit_location): New function.
3753 (string_to_event_location): Handle explicit locations.
3754 * location.h (explicit_to_event_location): Declare.
3755 (string_to_explicit_location): Declare.
3756
00e52e53
KS
37572015-08-11 Keith Seitz <keiths@redhat.com>
3758
3759 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3760 linespec into explicit location.
3761 * breakpoint.c (create_overlay_breakpoint)
3762 (create_longjmp_master_breakpoint)
3763 (create_std_terminate_master_breakpoint)
3764 (create_exception_master_breakpoint): Convert linespec into explicit
3765 location.
3766 (update_static_tracepoint): Convert linespec into explicit location.
3767 * linespec.c (enum offset_relative_sign, struct line_offset): Move
3768 location.h.
3769 (struct linespec) <expression, expr_pc, source_filename>
3770 <function_name, label_name, line_offset>: Replace with ...
3771 <explicit>: ... this.
3772 <is_linespec>: New member.
3773 (PARSER_EXPLICIT): New accessor macro.
3774 (undefined_label_error): New function.
3775 (source_file_not_found_error): New function.
3776 (linespec_parse_basic): The parser result is now an explicit location.
3777 Use PARSER_EXPLICIT to access it.
3778 Use undefined_label_error.
3779 (canonicalize_linespec): Convert canonical linespec into explicit
3780 location.
3781 Move string representation of location to explicit_location_to_linespec
3782 and use it and explicit_location_to_string to save string
3783 representations of the canonical location.
3784 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3785 explicit location. Update all references.
3786 (convert_explicit_location_to_sals): New function.
3787 (parse_linespec): Use PARSER_EXPLICIT to access the parser
3788 result's explicit location.
3789 (linespec_state_constructor): Initialize is_linespec.
3790 Use PARSER_EXPLICIT.
3791 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3792 result.
3793 (event_location_to_sals): For linespec locations, set is_linespec.
3794 Handle explicit locations.
3795 (decode_objc): 'ls' contains an explicit location now. Update all
3796 references.
3797 (symtabs_from_filename): Use source_file_not_found_error.
3798 * location.c (struct event_location.u) <explicit>: New member.
3799 (initialize_explicit_location): New function.
3800 (initialize_event_location): Initialize explicit locations.
3801 (new_explicit_location, get_explicit_location)
3802 (get_explicit_location_const): New functions.
3803 (explicit_to_string_internal): New function; most of contents moved
3804 from canonicalize_linespec.
3805 (explicit_location_to_string): New function.
3806 (explicit_location_to_linespec): New function.
3807 (copy_event_location, delete_event_location)
3808 (event_location_to_string_const, event_location_empty_p): Handle
3809 explicit locations.
3810 * location.h (enum offset_relative_sign, struct line_offset): Move
3811 here from linespec.h.
3812 (enum event_location_type): Add EXPLICIT_LOCATION.
3813 (struct explicit_location): New structure.
3814 (explicit_location_to_string): Declare.
3815 (explicit_location_to_linespec): Declare.
3816 (new_explicit_location, get_explicit_locationp
3817 (get_explicit_location_const, initialize_explicit_location): Declare.
3818
5b56227b
KS
38192015-08-11 Keith Seitz <keiths@redhat.com>
3820
3821 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3822 linespec for stap probe to probe location.
3823 * breakpoint.c (create_longjmp_master_breakpoint)
3824 (create_exception_master_breakpoint): Likewise.
3825 (break_command_1): Remove local variable `arg_cp'.
3826 Check location type to set appropriate breakpoint ops methods.
3827 (trace_command): Likewise.
3828 * linespec.c (event_location_to_sals): Assert on probe locations.
3829 * location.c (EL_PROBE): Add macro definition.
3830 (new_probe_location, get_probe_location): New functions.
3831 (copy_event_location, delete_event_location, event_location_to_string)
3832 (string_to_event_location, event_location_empty_p): Handle probe
3833 locations.
3834 * location.h (enum event_location_type): Add PROBE_LOCATION.
3835 (new_probe_location, get_probe_location): Declare.
3836 * probe.c (parse_probes): Assert that LOCATION is a probe location.
3837 Convert linespec into probe location.
3838
a06efdd6
KS
38392015-08-11 Keith Seitz <keiths@redhat.com>
3840
3841 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
3842 Convert linespec to address location.
3843 * linespec.c (canonicalize_linespec): Do not handle address
3844 locations here.
3845 (convert_address_location_to_sals): New function; contents moved
3846 from ...
3847 (convert_linespc_to_sals): ... here.
3848 (parse_linespec): Remove address locations from linespec grammar.
3849 Remove handling of address locations.
3850 (linespec_lex_to_end): Remove handling of address linespecs.
3851 (event_location_to_sals): Handle ADDRESS_LOCATION.
3852 (linespec_expression_to_pc): Export.
3853 * linespec.h (linespec_expression_to_pc): Add declaration.
3854 * location.c (struct event_location.u) <address>: New member.
3855 (new_address_location, get_address_location): New functions.
3856 (copy_event_location, delete_event_location, event_location_to_string)
3857 (string_to_event_location, event_location_empty_p): Handle address
3858 locations.
3859 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
3860 (new_address_location, get_address_location): Declare.
3861 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
3862 to address location.
3863 * spu-tdep.c (spu_catch_start): Likewise.
3864
f00aae0f
KS
38652015-08-11 Keith Seitz <keiths@redhat.com>
3866
3867 * ax-gdb.c: Include location.h.
3868 (agent_command_1) Use linespec location instead of address
3869 string.
3870 * break-catch-throw.c: Include location.h.
3871 (re_set_exception_catchpoint): Use linespec locations instead
3872 of address strings.
3873 * breakpoint.c: Include location.h.
3874 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
3875 (create_std_terminate_master_breakpoint)
3876 (create_exception_master_breakpoint, update_breakpoints_after_exec):
3877 Use linespec location instead of address string.
3878 (print_breakpoint_location): Use locations and
3879 event_location_to_string.
3880 Print extra_string for pending locations for non-MI streams.
3881 (print_one_breakpoint_location): Use locations and
3882 event_location_to_string.
3883 (init_raw_breakpoint_without_location): Initialize b->location.
3884 (create_thread_event_breakpoint): Use linespec location instead of
3885 address string.
3886 (init_breakpoint_sal): Likewise.
3887 Only save extra_string if it is non-NULL and not the empty string.
3888 Use event_location_to_string instead of `addr_string'.
3889 Constify `p' and `endp'.
3890 Use skip_spaces_const/skip_space_const instead of non-const versions.
3891 Copy the location into the breakpoint.
3892 If LOCATION is NULL, save the breakpoint address as a linespec location
3893 instead of an address string.
3894 (create_breakpoint_sal): Change `addr_string' parameter to a struct
3895 event_location. All uses updated.
3896 (create_breakpoints_sal): Likewise for local variable `addr_string'.
3897 (parse_breakpoint_sals): Use locations instead of address strings.
3898 Remove check for empty linespec with conditional.
3899 Refactor.
3900 (decode_static_tracepoint_spec): Make argument const and update
3901 function.
3902 (create_breakpoint): Change `arg' to a struct event_location and
3903 rename.
3904 Remove `copy_arg' and `addr_start'.
3905 If EXTRA_STRING is empty, set it to NULL.
3906 Don't populate `canonical' for pending breakpoints.
3907 Pass `extra_string' to find_condition_and_thread.
3908 Clear `extra_string' if `rest' was NULL.
3909 Do not error with "garbage after location" if setting a dprintf
3910 breakpoint.
3911 Copy the location into the breakpoint instead of an address string.
3912 (break_command_1): Use string_to_event_location and pass this to
3913 create_breakpoint instead of an address string.
3914 Check against `arg_cp' for a probe linespec.
3915 (dprintf_command): Use string_to_event_location and pass this to
3916 create_breakpoint instead of an address string.
3917 Throw an exception if no format string was specified.
3918 (print_recreate_ranged_breakpoint): Use event_location_to_string
3919 instead of address strings.
3920 (break_range_command, until_break_command)
3921 (init_ada_exception_breakpoint): Use locations instead
3922 of address strings.
3923 (say_where): Print out extra_string for pending locations.
3924 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
3925 the breakpoint.
3926 (base_breakpoint_create_sals_from_location): Use struct event_location
3927 instead of address string.
3928 Remove `addr_start' and `copy_arg' parameters.
3929 (base_breakpoint_decode_location): Use struct event_location instead of
3930 address string.
3931 (bkpt_re_set): Use locations instead of address strings.
3932 Use event_location_empty_p to check for unset location.
3933 (bkpt_print_recreate): Use event_location_to_string instead of
3934 an address string.
3935 Print out extra_string for pending locations.
3936 (bkpt_create_sals_from_location, bkpt_decode_location)
3937 (bkpt_probe_create_sals_from_location): Use struct event_location
3938 instead of address string.
3939 (bkpt_probe_decode_location): Use struct event_location instead of
3940 address string.
3941 (tracepoint_print_recreate): Use event_location_to_string to
3942 recreate the tracepoint.
3943 (tracepoint_create_sals_from_location, tracepoint_decode_location)
3944 (tracepoint_probe_create_sals_from_location)
3945 (tracepoint_probe_decode_location): Use struct event_location
3946 instead of address string.
3947 (dprintf_print_recreate): Use event_location_to_string to recreate
3948 the dprintf.
3949 (dprintf_re_set): Remove check for valid/missing format string.
3950 (strace_marker_create_sals_from_location)
3951 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
3952 (update_static_tracepoint): Use struct event_location instead of
3953 address string.
3954 (location_to_sals): Likewise.
3955 Pass `extra_string' to find_condition_and_thread.
3956 For newly resolved pending breakpoint locations, clear the location's
3957 string representation.
3958 Assert that the breakpoint's condition string is NULL when
3959 condition_not_parsed.
3960 (breakpoint_re_set_default, create_sals_from_location_default)
3961 (decode_location_default, trace_command, ftrace_command)
3962 (strace_command, create_tracepoint_from_upload): Use locations
3963 instead of address strings.
3964 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
3965 Use struct event_location instead of address string.
3966 Update all uses.
3967 <decode_location>: Likewise.
3968 (struct breakpoint) <addr_string>: Change to struct event_location
3969 and rename `location'.
3970 <addr_string_range_end>: Change to struct event_location and rename
3971 `location_range_end'.
3972 (create_breakpoint): Use struct event_location instead of address
3973 string.
3974 * cli/cli-cmds.c: Include location.h.
3975 (edit_command, list_command): Use locations instead of address strings.
3976 * elfread.c: Include location.h.
3977 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
3978 * guile/scm-breakpoint.c: Include location.h.
3979 (bpscm_print_breakpoint_smob): Use event_location_to_string.
3980 (gdbscm_register_breakpoint): Use locations instead of address
3981 strings.
3982 * linespec.c: Include location.h.
3983 (struct ls_parser) <stream>: Change to const char *.
3984 (PARSER_STREAM): Update.
3985 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
3986 keywords must be followed by whitespace.
3987 (canonicalize_linespec): Save a linespec location into `canonical'.
3988 Save a canonical linespec into `canonical'.
3989 (parse_linespec): Change `argptr' to const char * and rename `arg'.
3990 All uses updated.
3991 Update function description.
3992 (linespec_parser_new): Initialize `parser'.
3993 Update initialization of parsing stream.
3994 (event_location_to_sals): New function.
3995 (decode_line_full): Change `argptr' to a struct event_location and
3996 rename it `location'.
3997 Use locations instead of address strings.
3998 Call event_location_to_sals instead of parse_linespec.
3999 (decode_line_1): Likewise.
4000 (decode_line_with_current_source, decode_line_with_last_displayed)
4001 Use locations instead of address strings.
4002 (decode_objc): Likewise.
4003 Change `argptr' to const char * and rename `arg'.
4004 (destroy_linespec_result): Delete the linespec result's location
4005 instead of freeing the address string.
4006 * linespec.h (struct linespec_result) <addr_string>: Change to
4007 struct event_location and rename to ...
4008 <location>: ... this.
4009 (decode_line_1, decode_line_full): Change `argptr' to struct
4010 event_location. All callers updated.
4011 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4012 (mi_cmd_break_insert_1): Use locations instead of address strings.
4013 Throw an error if there was "garbage" at the end of the specified
4014 linespec.
4015 * probe.c: Include location.h.
4016 (parse_probes): Change `argptr' to struct event_location.
4017 Use event locations instead of address strings.
4018 * probe.h (parse_probes): Change `argptr' to struct event_location.
4019 * python/py-breakpoint.c: Include location.h.
4020 (bppy_get_location): Constify local variable `str'.
4021 Use event_location_to_string.
4022 (bppy_init): Use locations instead of address strings.
4023 * python/py-finishbreakpoint.c: Include location.h.
4024 (bpfinishpy_init): Remove local variable `addr_str'.
4025 Use locations instead of address strings.
4026 * python/python.c: Include location.h.
4027 (gdbpy_decode_line): Use locations instead of address strings.
4028 * remote.c: Include location.h.
4029 (remote_download_tracepoint): Use locations instead of address
4030 strings.
4031 * spu-tdep.c: Include location.h.
4032 (spu_catch_start): Remove local variable `buf'.
4033 Use locations instead of address strings.
4034 * tracepoint.c: Include location.h.
4035 (scope_info): Use locations instead of address strings.
4036 (encode_source_string): Constify parameter `src'.
4037 * tracepoint.h (encode_source_string): Likewise.
4038
c7c1b3e9
KS
40392015-08-11 Keith Seitz <keiths@redhat.com>
4040
4041 * Makefile.in (SFILES): Add location.c.
4042 (HFILES_NO_SRCDIR): Add location.h.
4043 (COMMON_OBS): Add location.o.
4044 * linespec.c (linespec_lex_to_end): New function.
4045 * linespec.h (linespec_lex_to_end): Declare.
4046 * location.c: New file.
4047 * location.h: New file.
4048
5f700d83
KS
40492015-08-11 Keith Seitz <keiths@redhat.com>
4050
4051 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4052 Renamed to create_sals_from_location.
4053 <decode_linespec>: Renamed to decode_location.
4054 Update all callers.
4055 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4056 (create_sals_from_location_default): ... this.
4057 (addr_string_to_sals): Renamed to ...
4058 (location_to_sals): ... this.
4059 (decode_linespec_default): Renamed to ...
4060 (decode_location_default): ... this.
4061 (base_breakpoint_create_sals_from_address): Renamed to ...
4062 (base_breakpoint_create_sals_from_location): ... this.
4063 (bkpt_create_sals_from_address): Renamed to ...
4064 (bkpt_create_sals_from_location): ... this.
4065 (bkpt_decode_linespec): Renamed to ...
4066 (bkpt_decode_location): ... this.
4067 (bkpt_probe_create_sals_from_address): Renamed to ...
4068 (bkpt_probe_create_sals_from_location): ... this.
4069 (tracepoint_create_sals_from_address): Renamed to ...
4070 (tracepoint_create_sals_from_location): ... this.
4071 (tracepoint_decode_linespec): Renamed to ...
4072 (tracepoint_decode_location): ... this.
4073 (tracepoint_probe_create_sals_from_address): Renamed to ...
4074 (tracepoint_probe_create_sals_from_location): ... this.
4075 (tracepoint_probe_decode_linespec): Renamed to ...
4076 (tracepoint_probe_decode_location): ... this.
4077 (strace_marker_create_sals_from_address): Renamed to ...
4078 (strace_marker_create_sals_from_location): ... this.
4079 (decode_linespec_default): Renamed to ...
4080 (decode_location_default): ... this.
4081
e27852be
DE
40822015-08-10 Doug Evans <dje@google.com>
4083 Keith Seitz <keiths@redhat.com>
4084
4085 PR gdb/17960
4086 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4087 make_file_symbol_completion_list and made static.
4088 (make_file_symbol_completion_list): New function.
80af41e0 4089
fd7dcb94
JB
40902015-08-10 Joel Brobecker <brobecker@adacore.com>
4091
4092 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4093 trailing new-line at end of warning message.
4094 (proceed): Add i18n marker to error messages.
4095
f12899e9
PA
40962015-08-07 Pedro Alves <palves@redhat.com>
4097
4098 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4099
5ac21343
PA
41002015-08-07 Pedro Alves <palves@redhat.com>
4101
4102 * s390-linux-tdep.c (is_non_branch_ril)
4103 (s390_displaced_step_copy_insn): New functions.
4104 (s390_displaced_step_fixup): Update comment.
4105 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4106 gdbarch_displaced_step_copy_insn hook.
4107
7f03bd92
PA
41082015-08-07 Pedro Alves <palves@redhat.com>
4109
4110 * infrun.c (displaced_step_prepare_throw): Return -1 if
4111 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4112 comment.
4113 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4114 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4115 in file.
4116 (ppc_displaced_step_copy_insn): New function.
4117 (ppc_displaced_step_fixup): Update comment.
4118 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4119 gdbarch_displaced_step_copy_insn hook.
4120 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4121 NULL return.
4122 * gdbarch.h: Regenerate.
4123
3fc8eb30
PA
41242015-08-07 Pedro Alves <palves@redhat.com>
4125
4126 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4127 field.
4128 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4129 Return false if dispaced stepping failed before.
4130 (resume): Pass the current inferior to
4131 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4132 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4133 displaced_stepping_failed flag, and fall back to an in-line
4134 step-over.
4135
bfedc46a
PA
41362015-08-07 Pedro Alves <palves@redhat.com>
4137
4138 * darwin-nat.c (darwin_stop): Rename to ...
4139 (darwin_interrupt): ... this.
4140 (_initialize_darwin_inferior): Adjust.
4141 * gnu-nat.c (gnu_stop): Delete.
4142 (gnu_target): Don't install gnu_stop.
4143 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4144 (inf_ptrace_interrupt): ... this.
4145 (inf_ptrace_target): Adjust.
4146 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4147 target_stop.
4148 * linux-nat (linux_nat_stop): Rename to ...
4149 (linux_nat_interrupt): ... this.
4150 (linux_nat_stop): Reimplement.
4151 (linux_nat_add_target): Install linux_nat_interrupt.
4152 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4153 (nto_handle_sigint_twice): ... this.
4154 (nto_interrupt): Rename to ...
4155 (nto_handle_sigint): ... this. Call target_interrupt instead of
4156 target_stop.
4157 (procfs_wait): Adjust.
4158 (procfs_stop): Rename to ...
4159 (procfs_interrupt): ... this.
4160 (init_procfs_targets): Adjust.
4161 * procfs.c (procfs_stop): Rename to ...
4162 (procfs_interrupt): ... this.
4163 (procfs_target): Adjust.
4164 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4165 (m32r_interrupt): ... this.
4166 (init_m32r_ops): Adjust.
4167 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4168 (gdbsim_interrupt_inferior): ... this.
4169 (gdbsim_stop): Rename to ...
4170 (gdbsim_interrupt): ... this.
4171 (gdbsim_cntrl_c): Adjust.
4172 (init_gdbsim_ops): Adjust.
4173 * remote.c (sync_remote_interrupt): Adjust comments.
4174 (remote_stop_as): Rename to ...
4175 (remote_interrupt_as): ... this.
4176 (remote_stop): Adjust comment.
4177 (remote_interrupt): New function.
4178 (init_remote_ops): Install remote_interrupt.
4179 * target.c (target_interrupt): New function.
4180 * target.h (struct target_ops) <to_interrupt>: New field.
4181 (target_interrupt): New declaration.
4182 * windows-nat.c (windows_stop): Rename to ...
4183 (windows_interrupt): ... this.
4184 * target-delegates.c: Regenerate.
4185
d55007b5
PA
41862015-08-07 Pedro Alves <palves@redhat.com>
4187
4188 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4189 threads" as alternative to "switching back to stepped thread".
4190
fbea99ea
PA
41912015-08-07 Pedro Alves <palves@redhat.com>
4192
4193 * NEWS: Mention "maint set/show target-non-stop".
4194 * breakpoint.c (update_global_location_list): Check
4195 target_is_non_stop_p instead of non_stop.
4196 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4197 * infrun.c (show_can_use_displaced_stepping)
4198 (can_use_displaced_stepping_p, start_step_over_inferior):
4199 Likewise.
4200 (internal_resume_ptid): New function.
4201 (resume): Use it.
4202 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4203 all-stop mode but the target is always in non-stop mode, start all
4204 the other threads that are implicitly resumed too.
4205 (for_each_just_stopped_thread, fetch_inferior_event)
4206 (adjust_pc_after_break, stop_all_threads): Check
4207 target_is_non_stop_p instead of non_stop.
4208 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4209 with the target always in non-stop mode.
4210 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4211 instead of non_stop.
4212 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4213 instead of non_stop.
4214 (keep_going_stepped_thread): Use internal_resume_ptid.
4215 (stop_waiting): If in all-stop mode, and the target is in non-stop
4216 mode, stop all threads.
4217 (keep_going_pass): Likewise, when starting a new in-line step-over
4218 sequence.
4219 * linux-nat.c (get_pending_status, select_event_lwp)
4220 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4221 target_is_non_stop_p instead of non_stop.
4222 (linux_nat_always_non_stop_p): New function.
4223 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4224 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4225 * target-delegates.c: Regenerate.
4226 * target.c (target_is_non_stop_p): New function.
4227 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4228 (maint_set_target_non_stop_command)
4229 (maint_show_target_non_stop_command): New functions.
4230 (_initilize_target): Install "maint set/show target-non-stop"
4231 commands.
4232 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4233 (target_non_stop_enabled): New declaration.
4234 (target_is_non_stop_p): New declaration.
4235
372316f1
PA
42362015-08-07 Pedro Alves <pedro@codesourcery.com>
4237
4238 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4239 has a pending status, return true.
4240 * gdbthread.h: Include target/waitstatus.h.
4241 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4242 stop_pc>: New fields.
4243 (struct thread_info) <resumed>: New field.
4244 (set_resumed): Declare.
4245 * infrun.c: Include "event-loop.h".
4246 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4247 (infrun_async): New function.
4248 (clear_step_over_info): Add debug output.
4249 (displaced_step_in_progress_any_inferior): New function.
4250 (displaced_step_fixup): New returns int.
4251 (start_step_over): Handle in-line step-overs too. Assert the
4252 thread is marked resumed.
4253 (resume_cleanups): Clear the thread's resumed flag.
4254 (resume): Set the thread's resumed flag. Return early if the
4255 thread has a pending status. Allow stepping a breakpoint with no
4256 signal.
4257 (proceed): Adjust to check 'resumed' instead of 'executing'.
4258 (clear_proceed_status_thread): If the thread has a pending status,
4259 and that status is a finished step, discard the pending status.
4260 (clear_proceed_status): Don't clear step_over_info here.
4261 (random_pending_event_thread, do_target_wait): New functions.
4262 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4263 do_target_wait.
4264 (wait_one): New function.
4265 (THREAD_STOPPED_BY): New macro.
4266 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4267 (thread_stopped_by_hw_breakpoint): New functions.
4268 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4269 functions.
4270 (handle_inferior_event): Also call set_resumed(false) on all
4271 threads implicitly stopped by the event.
4272 (restart_threads, resumed_thread_with_pending_status): New
4273 functions.
4274 (finish_step_over): If we were doing an in-line step-over before,
4275 and no longer are after trying to start a new step-over, restart
4276 all threads. If we have multiple threads with pending events,
4277 save the current event and go through the event loop again.
4278 (handle_signal_stop): Return early if finish_step_over returns
4279 false.
4280 <random signal>: If we get a signal while stepping over a
4281 breakpoint in-line in non-stop mode, restart all threads. Clear
4282 step_over_info before delivering the signal.
4283 (keep_going_stepped_thread): Use internal_error instead of
4284 gdb_assert. Mark the thread as resumed.
4285 (keep_going_pass_signal): Assert the thread isn't already resumed.
4286 If some other thread is doing an in-line step-over, defer the
4287 resume. If we just started a new in-line step-over, stop all
4288 threads. Don't clear step_over_info.
4289 (infrun_async_inferior_event_handler): New function.
4290 (_initialize_infrun): Create async event handler with
4291 infrun_async_inferior_event_handler as callback.
4292 (infrun_async): New declaration.
4293 * target.c (target_async): New function.
4294 * target.h (target_async): Declare macro and readd as function
4295 declaration.
4296 * target/waitstatus.h (enum target_stop_reason)
4297 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4298 * thread.c (new_thread): Clear the new waitstatus field.
4299 (set_resumed): New function.
4300
2ac7589c
PA
43012015-08-07 Pedro Alves <palves@redhat.com>
4302
4303 * infrun.c (keep_going_stepped_thread): New function, factored out
4304 from ...
4305 (switch_back_to_stepped_thread): ... here.
4306
8b061563
PA
43072015-08-07 Pedro Alves <palves@redhat.com>
4308
4309 * infrun.c (currently_stepping): Extend intro comment.
4310 * target.h (target_resume): Extend intro comment.
4311
1afd5965
PA
43122015-08-07 Pedro Alves <palves@redhat.com>
4313
4314 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4315 of inferior_ptid. If the stepped thread vanished, return 0
4316 instead of resuming here. Use reset_ecs. Print the prev_pc and
4317 the current stop_pc in log message. Clear trap_expected if the
4318 thread advanced. Don't pass currently_stepping to
4319 do_target_resume.
4320
4d9d9d04
PA
43212015-08-07 Pedro Alves <palves@redhat.com>
4322
4323 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4324 * infrun.c (struct execution_control_state): Move higher up in the
4325 file.
4326 (reset_ecs): New function.
4327 (start_step_over): Now returns int. Rewrite to use
4328 keep_going_pass_signal instead of manually starting a displaced step.
4329 (resume): Don't call set_running here. If displaced stepping
4330 can't start now, clear trap_expected.
4331 (find_thread_needs_step_over): Delete function.
4332 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4333 If the current thread needs a step over, push it in the step-over
4334 chain. Don't set insert breakpoints nor call resume directly
4335 here. Instead rewrite to use start_step_over and
4336 keep_going_pass_signal.
4337 (finish_step_over): New function.
4338 (handle_signal_stop): Call finish_step_over instead of
4339 start_step_over.
4340 (switch_back_to_stepped_thread): If the event thread needs another
4341 step-over do that first. Use start_step_over.
4342 (keep_going_pass_signal): New function, factored out from ...
4343 (keep_going): ... here.
4344 (_initialize_infrun): Comment moved here.
4345 * thread.c (set_running_thread): New function.
4346 (set_running, finish_thread_state): Use set_running_thread.
4347
c2829269
PA
43482015-08-07 Pedro Alves <palves@redhat.com>
4349
4350 * gdbthread.h (struct thread_info) <step_over_prev,
4351 step_over_next>: New fields.
4352 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4353 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4354 declarations.
4355 * infrun.c (struct displaced_step_request): Delete.
4356 (struct displaced_step_inferior_state) <step_request_queue>:
4357 Delete field.
4358 (displaced_step_prepare): Assert that trap_expected is set. Use
4359 thread_step_over_chain_enqueue. Split starting a new displaced
4360 step to ...
4361 (start_step_over): ... this new function.
4362 (resume): Assert the thread isn't waiting for a step over already.
4363 (proceed): Assert the thread isn't waiting for a step over
4364 already.
4365 (infrun_thread_stop_requested): Adjust to remove threads from the
4366 embedded step-over chain.
4367 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4368 displaced_step_fixup.
4369 (handle_signal_stop): Call start_step_over after
4370 displaced_step_fixup.
4371 * infrun.h (step_over_queue_head): New declaration.
4372 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4373 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4374 (thread_step_over_chain_enqueue)
4375 (thread_step_over_chain_remove): New functions.
4376 (delete_thread_1): Remove thread from the step-over chain.
4377
6c4cfb24
PA
43782015-08-07 Pedro Alves <palves@redhat.com>
4379
4380 * infrun.c (thread_still_needs_step_over): Rename to ...
4381 (thread_still_needs_step_over_bp): ... this.
4382 (enum step_over_what): New.
4383 (thread_still_needs_step_over): Reimplement.
4384
567420d1
PA
43852015-08-07 Pedro Alves <palves@redhat.com>
4386
4387 * remote.c (remote_wait_as): If not waiting for a stop reply,
4388 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4389 requested, don't block waiting forever.
4390
d8dd4d5f
PA
43912015-08-07 Pedro Alves <pedro@codesourcery.com>
4392
4393 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4394 waitstatus pointers instead of an ecs. Adjust.
4395 (handle_inferior_event): Adjust caller.
4396
e1316e60
PA
43972015-08-07 Pedro Alves <palves@redhat.com>
4398
4399 * infrun.c (handle_inferior_event): If we get
4400 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4401 mode, mark all threads of the exiting process as not-executing.
4402 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4403 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4404 exiting process, if inferior_ptid still points at a process.
4405 * thread.c (struct current_thread_cleanup) <next>: New field.
4406 (current_thread_cleanup_chain): New global.
4407 (restore_current_thread_ptid_changed): New function.
4408 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4409 current_thread_cleanup_chain list.
4410 (make_cleanup_restore_current_thread): Add the cleanup data to the
4411 current_thread_cleanup_chain list.
4412 (_initialize_thread): Install restore_current_thread_ptid_changed
4413 as thread_ptid_changed observer.
4414
47e9c225
JB
44152015-08-07 Joel Brobecker <brobecker@adacore.com>
4416
4417 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4418 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4419 smaller than expected.
4420
06096720
AB
44212015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4422
4423 * stack.c (get_frame_language): Moved ...
4424 * frame.c (get_frame_language): ... to here.
4425 * language.h (get_frame_language): Declaration moved to frame.h.
4426 * frame.h: Add language.h include, for language enum.
4427 (get_frame_language): Declaration moved from language.h.
4428 * language.c: Add frame.h include.
4429 * top.c: Add frame.h include.
4430 * symtab.h (struct obj_section): Declare.
4431 (struct cmd_list_element): Declare.
4432
7ff38b1c
AB
44332015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * language.c (show_language_command): Find selected frame before
4436 asking for the language of that frame.
4437 (set_language_command): Likewise.
4438 * language.h (get_frame_language): Add frame parameter.
4439 * stack.c (get_frame_language): Add frame parameter, assert
4440 parameter is not NULL, update comment and reindent.
4441 * top.c (check_frame_language_change): Pass the selected frame
4442 into get_frame_language.
4443
da8c46d2
MM
44442015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4445
4446 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4447 (pt_btrace_insn_flags): New.
4448 (ftrace_add_pt): Call pt_btrace_insn_flags.
4449 * btrace.h (btrace_insn_flag): New.
4450 (btrace_insn) <flags>: New.
4451 * record-btrace.c (btrace_insn_history): Print insn prefix.
4452 * NEWS: Announce it.
4453
5599c404
MM
44542015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4455
4456 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4457 * configure: Regenerate.
4458
016a3251
DD
44592015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4460
4461 * Makefile.in (LIBICONV): Define.
4462 (CLIBS): Add LIBICONV.
4463 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4464 * configure: Regenerate.
4465
aead7601
SM
44662015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4467 Pedro Alves <palves@redhat.com>
4468
4469 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4470 (arm_set_abi): Likewise.
4471 * ax-general.c (ax_print): Likewise.
4472 * c-exp.y (exp : string_exp): Likewise.
4473 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4474 (do_compile_dwarf_expr_to_c): Likewise.
4475 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4476 Likewise.
4477 * dwarf2expr.c (execute_stack_op): Likewise.
4478 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4479 (disassemble_dwarf_expression): Likewise.
4480 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4481 (read_array_order): Likewise.
4482 (abbrev_table_read_table): Likewise.
4483 (read_attribute_value): Likewise.
4484 (skip_unknown_opcode): Likewise.
4485 (dwarf_decode_macro_bytes): Likewise.
4486 (dwarf_decode_macros): Likewise.
4487 * eval.c (value_f90_subarray): Likewise.
4488 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4489 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4490 * infrun.c (handle_command): Likewise.
4491 * memory-map.c (memory_map_start_memory): Likewise.
4492 * osabi.c (set_osabi): Likewise.
4493 * parse.c (operator_length_standard): Likewise.
4494 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4495 single return point.
4496 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4497 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4498 (gdbpy_lookup_global_symbol): Likewise.
4499 * record-full.c (record_full_restore): Likewise.
4500 * regcache.c (regcache_register_status): Likewise.
4501 (regcache_raw_read): Likewise.
4502 (regcache_cooked_read): Likewise.
4503 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4504 * symtab.c (initialize_ordinary_address_classes): Likewise.
4505 * target-debug.h (target_debug_print_signals): Likewise.
4506 * utils.c (do_restore_current_language): Likewise.
4507
ca0a5f0b
CD
45082015-08-06 Clem Dickey <clemd@acm.org>
4509
4510 PR python/17136
4511 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4512
05d999b0
SM
45132015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4514
4515 * complaints.c (enum complaint_series): Add newlines and remove
4516 out of date comment.
4517 (struct complaints) <series>: Change type to enum
4518 complaint_series and remove out of date comment.
4519 (symfile_complaint_hook): Use equivalent enum value
4520 ISOLATED_MESSAGE instead of 0.
4521
bf47e248
PA
45222015-08-06 Pedro Alves <palves@redhat.com>
4523
4524 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4525 returned > 0.
4526
b6b9ffcc
PL
45272015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4528
4529 * common/agent.c (symbol_list) <required>: Remove.
4530
863d01bd
PA
45312015-08-06 Pedro Alves <palves@redhat.com>
4532
4533 * target/waitstatus.h (enum target_stop_reason)
4534 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4535
0a39bb32
PA
45362015-08-05 Pedro Alves <palves@redhat.com>
4537 Joel Brobecker <brobecker@adacore.com>
4538
9d996aba 4539 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
4540 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4541 case where BS->STOP is not set.
4542
260439cb
UW
45432015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4544
4545 * nat/gdb_thread_db.h: Add copyright header.
4546 Protect against multiple inclusion.
4547
d89fa914
YQ
45482015-08-05 Yao Qi <yao.qi@linaro.org>
4549
4550 * aarch64-linux-nat.c (get_thread_id): Remove.
4551 (debug_reg_change_callback): Call ptid_get_lwp instead of
4552 get_thread_id.
4553 (fetch_gregs_from_thread): Likewise.
4554 (store_gregs_to_thread): Likewise.
4555 (fetch_fpregs_from_thread): Likewise.
4556 (store_fpregs_to_thread): Likewise.
4557 (aarch64_linux_get_debug_reg_capacity): Likewise.
4558 * arm-linux-nat.c (get_thread_id): Remove.
4559 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4560 * xtensa-linux-nat.c (get_thread_id): Remove.
4561 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4562 * arm-linux-nat.c (get_thread_id): Remove.
4563 (GET_THREAD_ID): Remove.
4564 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4565 (store_fpregs, fetch_regs, store_regs): Likewise.
4566 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4567 (fetch_vfp_regs, store_vfp_regs): Likewise.
4568 (arm_linux_read_description): Likewise.
4569 (arm_linux_get_hwbp_cap): Likewise.
4570 * xtensa-linux-nat.c (get_thread_id): Remove.
4571 (GET_THREAD_ID): Remove.
4572 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4573 GET_THREAD_ID.
4574
4efd80aa
CS
45752015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4576
4577 * python/py-linetable.c: Fix case of Linetable to LineTable
4578 in docstrings and code comments.
4579 * python/py-symtab.c: Same.
4580
c6343a91
JK
45812015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4582
4583 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4584
978b9495
JK
45852015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4586
4587 PR gdb/18767
4588 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4589 use.
4590
96e9210f
PA
45912015-08-04 Pedro Alves <palves@redhat.com>
4592
4593 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4594 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4595 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4596 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4597 (td_thr_validate_ftype, td_thr_get_info_ftype)
4598 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4599 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4600 New typedefs.
4601 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4602 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4603 local macros and use them instead of verbose_dlsym and dlsym
4604 calls.
4605
af60a1ef
SL
46062015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4607
4608 * nios2-tdep.h: Include opcode/nios2.h here.
4609 (NIOS2_CDX_OPCODE_SIZE): New.
4610 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4611 * nios2-tdep.c: Don't include opcode/nios2.h here.
4612 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4613 4-byte read fails.
4614 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4615 (nios2_match_addi, nios2_match_orhi): Likewise.
4616 (nios2_match_stw, nios2_match_ldw): Likewise.
4617 (nios2_match_rdctl): Likewise.
4618 (nios2_match_stwm, nios2_match_ldwm): New.
4619 (nios2_match_branch): Add cases for R2 encodings.
4620 (nios2_match_jmpi, nios2_match_calli): Likewise.
4621 (nios2_match_jmpr, nios2_match_callr): Likewise.
4622 (nios2_match_break, nios2_match_trap): Likewise.
4623 (nios2_in_epilogue_p): Add R2 support.
4624 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4625 prologues.
4626 (nios2_breakpoint_from_pc): Handle R2 instructions.
4627 (nios2_get_next_pc): Likewise. Adjust call to
4628 tdep->syscall_next_pc.
4629 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4630 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4631 instruction field macros instead of literal hex values.
4632 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4633 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4634 Use size field from OP instead of assuming all instructions
4635 are the same size.
4636 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4637
1da03605
UW
46382015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4639
4640 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4641 variable warning with some compilers.
4642
8156fe7f
YQ
46432015-08-03 Yao Qi <yao.qi@linaro.org>
4644
4645 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4646 in comment. Replace "rw" with "type".
4647 (arm_linux_remove_watchpoint): Change type of "rw" to
4648 "enum target_hw_bp_type".
4649
835a09d9
PMR
46502015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4651
4652 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4653 lookup_symbol.
4654 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4655 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4656 * mt-tdep.c (mt_skip_prologue): Likewise.
4657 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4658
d12307c1
PMR
46592015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4660
4661 * ada-exp.y (write_object_renaming): Replace struct
4662 ada_symbol_info with struct block_symbol. Update field
4663 references accordingly.
4664 (block_lookup, select_possible_type_sym): Likewise.
4665 (find_primitive_type): Likewise. Also update call to
4666 ada_lookup_symbol to extract the symbol itself.
4667 (write_var_or_type, write_name_assoc): Likewise.
4668 * ada-lang.h (struct ada_symbol_info): Remove.
4669 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4670 struct block_symbol.
4671 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4672 (ada_lookup_symbol): Return struct block_symbol instead of a
4673 mere symbol.
4674 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4675 with struct block_symbol.
4676 (resolve_subexp, ada_resolve_function, sort_choices,
4677 user_select_syms, is_nonfunction, add_defn_to_vec,
4678 num_defns_collected, defns_collected,
4679 symbols_are_identical_enums, remove_extra_symbols,
4680 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4681 ada_lookup_symbol_list, ada_iterate_over_symbols,
4682 ada_lookup_encoded_symbol, get_var_value): Likewise.
4683 (ada_lookup_symbol): Return a block_symbol instead of a mere
4684 symbol. Replace struct ada_symbol_info with struct
4685 block_symbol.
4686 (ada_lookup_symbol_nonlocal): Likewise.
4687 (standard_lookup): Make block passing explicit through
4688 lookup_symbol_in_language.
4689 * ada-tasks.c (get_tcb_types_info): Update the calls to
4690 lookup_symbol_in_language to extract the mere symbol out of the
4691 returned value.
4692 (ada_tasks_inferior_data_sniffer): Likewise.
4693 * ax-gdb.c (gen_static_field): Likewise for the call to
4694 lookup_symbol.
a5fdf78a 4695 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
4696 lookup functions.
4697 (gen_expr): Likewise.
4698 * c-exp.y: Likewise. Remove uses of block_found.
4699 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4700 (classify_name): Likewise. Rename the "sym" local variable to
4701 "bsym".
4702 * c-valprint.c (print_unpacked_pointer): Likewise.
4703 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4704 "sym" parameter from struct symbol * to struct block_symbol.
4705 Use it to remove uses of block_found. Deal with struct
a5fdf78a 4706 block_symbol from lookup functions.
d12307c1
PMR
4707 (gcc_convert_symbol): Likewise. Update the call to
4708 convert_symbol_sym.
4709 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 4710 struct block_symbol from lookup functions.
d12307c1
PMR
4711 * cp-namespace.c (cp_lookup_nested_symbol_1,
4712 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4713 cp_search_static_and_baseclasses,
4714 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4715 cp_lookup_symbol_imports_or_template,
4716 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4717 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
4718 find_symbol_in_baseclass): Return struct block_symbol instead of
4719 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
4720 functions.
4721 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 4722 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
4723 lookup functions.
4724 * cp-support.h (cp_lookup_symbol_nonlocal,
4725 cp_lookup_symbol_from_namespace,
4726 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 4727 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
4728 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4729 push_module_name):
a5fdf78a 4730 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
4731 uses of block_found.
4732 * eval.c (evaluate_subexp_standard): Update call to
4733 cp_lookup_symbol_namespace.
a5fdf78a
PMR
4734 * f-exp.y: Deal with struct block_symbol from lookup functions.
4735 Remove uses of block_found.
d12307c1
PMR
4736 (yylex): Likewise.
4737 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4738 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 4739 struct block_symbol from lookup functions.
d12307c1
PMR
4740 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4741 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4742 (gdbscm_lookup_global_symbol): Likewise.
4743 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4744 * go-exp.y: Likewise. Remove uses of block_found.
4745 (package_name_p, classify_packaged_name, classify_name):
4746 Likewise.
4747 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4748 * jv-exp.y (push_variable): Likewise.
4749 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4750 * language.c (language_bool_type): Likewise.
4751 * language.h (struct language_defn): Update
a5fdf78a
PMR
4752 la_lookup_symbol_nonlocal to return a struct block_symbol rather
4753 than a mere symbol.
4754 * linespec.c (find_label_symbols): Deal with struct block_symbol
4755 from lookup functions.
d12307c1
PMR
4756 * m2-exp.y: Likewise. Remove uses of block_found.
4757 (yylex): Likewise.
4758 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4759 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4760 * p-exp.y: Likewise. Remove uses of block_found.
4761 (yylex): Likewise.
4762 * p-valprint.c (pascal_val_print): Likewise.
4763 * parse.c (write_dollar_variable): Likewise. Remove uses of
4764 block_found.
4765 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
4766 struct block_symbol.
4767 * printcmd.c (address_info): Deal with struct block_symbol from
4768 lookup functions.
d12307c1
PMR
4769 * python/py-frame.c (frapy_read_var): Likewise.
4770 * python/py-symbol.c (gdbpy_lookup_symbol,
4771 gdbpy_lookup_global_symbol): Likewise.
4772 * skip.c (skip_function_command): Likewise.
4773 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 4774 block_symbol instead of a mere symbol.
d12307c1
PMR
4775 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4776 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4777 * solib.c (solib_global_lookup): Likewise.
4778 * solist.h (solib_global_lookup): Likewise.
4779 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
4780 return a struct block_symbol rather than a mere symbol.
4781 * source.c (select_source_symtab): Deal with struct block_symbol
4782 from lookup functions.
d12307c1
PMR
4783 * stack.c (print_frame_args, iterate_over_block_arg_vars):
4784 Likewise.
4785 * symfile.c (set_initial_language): Likewise.
4786 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 4787 block_symbol.
d12307c1
PMR
4788 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4789 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 4790 block_symbol.
d12307c1 4791 (block_found): Remove.
a5fdf78a 4792 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 4793 cache slots.
a5fdf78a
PMR
4794 (symbol_cache_lookup): Return a struct block_symbol rather than
4795 a mere symbol.
d12307c1
PMR
4796 (symbol_cache_mark_found): Add a BLOCK parameter to fill
4797 appropriately the cache slots. Update callers.
4798 (symbol_cache_dump): Update cache slots handling to the type
4799 change.
4800 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4801 lookup_symbol_aux, lookup_local_symbol,
4802 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4803 lookup_symbol_in_objfile_symtabs,
4804 lookup_symbol_in_objfile_from_linkage_name,
4805 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4806 lookup_symbol_in_static_block, lookup_static_symbol,
4807 lookup_global_symbol):
a5fdf78a
PMR
4808 Return a struct block_symbol rather than a mere symbol. Deal
4809 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
4810 uses of block_found.
4811 (lookup_symbol_in_block): Remove uses of block_found.
4812 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 4813 struct block_symbol.
d12307c1
PMR
4814 (lookup_symbol_global_iterator_cb): Update references to the
4815 RESULT field.
a5fdf78a 4816 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 4817 functions.
a5fdf78a 4818 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
4819 (block_found): Remove.
4820 (lookup_symbol_in_language, lookup_symbol,
4821 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
4822 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
4823 lookup_global_symbol_from_objfile): Return a struct block_symbol
4824 rather than just a mere symbol. Update comments to remove
4825 mentions of block_found.
d12307c1
PMR
4826 * valops.c (find_function_in_inferior,
4827 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 4828 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
4829 functions.
4830 * value.c (value_static_field, value_fn_field): Likewise.
4831
b1c59ddc
SM
48322015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4833
4834 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
4835 instead of integer.
4836
f486487f 48372015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 4838 Pedro Alves <palves@redhat.com>
f486487f
SM
4839
4840 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
4841 type or value instead of integer.
4842 (aarch64_linux_insert_watchpoint): Likewise.
4843 (aarch64_linux_remove_watchpoint): Likewise.
4844 * ada-lang.c (ada_op_print_tab): Likewise.
4845 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
4846 (amd64_linux_syscall_record_common): Likewise.
4847 * arch-utils.c (target_byte_order_user): Likewise.
4848 (default_byte_order): Likewise.
4849 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
4850 (arm_linux_get_hwbp_type): Likewise.
4851 (arm_linux_hw_watchpoint_initialize): Likewise.
4852 (arm_linux_insert_watchpoint): Likewise.
4853 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
4854 (arm_linux_syscall_record): Likewise.
4855 * breakpoint.c (update_watchpoint): Likewise.
4856 (breakpoint_here_p): Likewise.
4857 (bpstat_print): Likewise.
4858 (enable_breakpoint_disp): Likewise.
4859 * c-lang.c (c_op_print_tab): Likewise.
4860 * cli/cli-decode.c (add_info_alias): Likewise.
4861 * d-lang.c (d_op_print_tab): Likewise.
4862 * eval.c (evaluate_subexp_standard): Likewise.
4863 * f-exp.y (dot_ops): Likewise.
4864 (f77_keywords): Likewise.
4865 * f-lang.c (f_op_print_tab): Likewise.
4866 * go-lang.c (go_op_print_tab): Likewise.
4867 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
4868 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
4869 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4870 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
4871 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
4872 (struct scm_from_stringn_data): Likewise.
4873 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4874 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4875 (ia64_linux_remove_watchpoint): Likewise.
4876 (ia64_linux_can_use_hw_breakpoint): Likewise.
4877 * infrun.c (print_stop_event): Likewise.
4878 * jv-lang.c (java_op_print_tab): Likewise.
4879 * linux-nat.c (linux_proc_xfer_partial): Likewise.
4880 * linux-nat.h (struct lwp_info): Likewise.
4881 * linux-thread-db.c (enable_thread_event): Likewise.
4882 * m2-lang.c (m2_op_print_tab): Likewise.
4883 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4884 (mi_cmd_stack_list_variables): Likewise.
4885 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
4886 * mi/mi-out.c (mi_table_begin): Likewise.
4887 (mi_table_header): Likewise.
4888 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
4889 (mips_linux_insert_watchpoint): Likewise.
4890 (mips_linux_remove_watchpoint): Likewise.
4891 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
4892 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
4893 (mips_linux_watch_type_to_irw): Likewise.
4894 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4895 (procfs_insert_hw_watchpoint): Likewise.
4896 (procfs_remove_hw_watchpoint): Likewise.
4897 (procfs_hw_watchpoint): Likewise.
4898 (procfs_can_use_hw_breakpoint): Likewise.
4899 (procfs_remove_hw_watchpoint): Likewise.
4900 (procfs_insert_hw_watchpoint): Likewise.
4901 * p-lang.c (pascal_op_print_tab): Likewise.
4902 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
4903 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
4904 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
4905 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4906 (procfs_insert_watchpoint): Likewise.
4907 (procfs_remove_watchpoint): Likewise.
4908 * psymtab.c (recursively_search_psymtabs): Likewise.
4909 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
4910 (m32r_insert_watchpoint): Likewise.
4911 * remote-mips.c (mips_can_use_watchpoint): Likewise.
4912 (mips_insert_watchpoint): Likewise.
4913 (mips_remove_watchpoint): Likewise.
4914 * remote.c (watchpoint_to_Z_packet): Likewise.
4915 (remote_insert_watchpoint): Likewise.
4916 (remote_remove_watchpoint): Likewise.
4917 (remote_check_watch_resources): Likewise.
4918 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4919 (s390_remove_watchpoint): Likewise.
4920 (s390_can_use_hw_breakpoint): Likewise.
4921 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4922 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
4923 * target.h (struct target_ops): Likewise.
4924 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4925 * ui-out.c (struct ui_out_hdr): Likewise.
4926 (append_header_to_list): Likewise.
4927 (get_next_header): Likewise.
4928 (verify_field): Likewise.
4929 (ui_out_begin): Likewise.
4930 (ui_out_field_int): Likewise.
4931 (ui_out_field_fmt_int): Likewise.
4932 (ui_out_field_skip): Likewise.
4933 (ui_out_field_string): Likewise.
4934 (ui_out_field_fmt): Likewise.
4935 * varobj.c (new_variable): Likewise.
4936 * x86-nat.c (x86_insert_watchpoint): Likewise.
4937 (x86_remove_watchpoint): Likewise.
4938 (x86_can_use_hw_breakpoint): Likewise.
4939 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
4940 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
4941 previously anonymous enumeration type..
4942 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
4943 value.
4944 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
4945 (target_debug_print_enum_bptype): New.
4946 * target-delegates.c: Regenerate.
4947
e1b5381f
SL
49482015-07-30 Sandra Loosemore <sandra@codesourcery.com>
4949
4950 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
4951 already says and disallow non-stack memory writes in the prologue.
4952
9aaf8e3a
SL
49532015-07-30 Sandra Loosemore <sandra@codesourcery.com>
4954
4955 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
4956 reflect how current GCC emits stack overflow checks. Match
4957 both trap and break instructions for backward compatbility.
4958 Disallow other trap and break instructions in the prologue.
4959
69dde7dc
PA
49602015-07-30 Pedro Alves <palves@redhat.com>
4961
4962 PR threads/18600
4963 * linux-nat.c (wait_lwp): Report to the core when thread group
4964 leader exits.
4965
4dd63d48
PA
49662015-07-30 Pedro Alves <palves@redhat.com>
4967 Simon Marchi <simon.marchi@ericsson.com>
4968
4969 PR threads/18600
4970 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
4971 mark the new thread as resumed. Remove STOPPING parameter.
4972 (wait_lwp): Adjust call to linux_handle_extended_wait.
4973 (linux_nat_filter_event): Adjust call to
4974 linux_handle_extended_wait.
4975 (resume_stopped_resumed_lwps): Add debug output.
4976
6b940e6a
PL
49772015-07-30 Pierre Langlois <pierre.langlois@arm.com>
4978
4979 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
4980 isize argument.
4981 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
4982 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
4983 gdbarch_fast_tracepoint_valid_at.
4984 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
4985 * gdbarch.h: Regenerate.
4986 * gdbarch.c: Regenerate.
4987 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
4988 argument. Do not set it.
4989 * remote.c (remote_download_tracepoint): Adjust call to
4990 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
4991 the instruction length.
4992
ec741292
YQ
49932015-07-30 Yao Qi <yao.qi@linaro.org>
4994
4995 * arm-tdep.h (enum gdb_regnum): Move it to ...
4996 * arch/arm.h: ... here. New file.
4997 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
4998
0ea6402e
PL
49992015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5000
5001 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5002 Change its type to int *.
5003 (decode_br): Rename link argument to is_blr. Change its type to
5004 int *.
5005 (decode_cb): Rename op argument to is_cbnz. Change its type to
5006 int *.
5007 (decode_tb): Rename op argument to is_tbnz. Change its type to
5008 int *. Set is_tbnz to either 1 or 0.
5009 (aarch64_analyze_prologue): Change type of is_link to int. Add
5010 new variables is_cbnz and is_tbnz. Adjust call to
5011 aarch64_decode_cb and aarch64_decode_tb.
5012
aa58a496
SM
50132015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5014
5015 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5016 parameter.
5017 (mips_linux_new_thread): Likewise.
5018 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5019
18206ca3
PP
50202015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5021
5022 * top.c: Include "tui/tui.h".
5023 (undo_terminal_modifications_before_exit): New static function.
5024 (quit_force): Use it.
5025
7afa63c6
PP
50262015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5027
5028 * target.c (terminal_state): Initialize to terminal_is_ours.
5029
cc9f16aa
YQ
50302015-07-29 Yao Qi <yao.qi@linaro.org>
5031
5032 PR record/18691
5033 * dcache.c (dcache_read_memory_partial): Call
5034 raw_memory_xfer_partial.
5035 * target.c (raw_memory_xfer_partial): Make it non-static.
5036 * target.h (raw_memory_xfer_partial): Declare.
5037
3ae385af
SM
50382015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5039
5040 * c-valprint.c (c_val_print_array): Consider addressable memory
5041 unit size.
5042 (c_val_print_ptr): Likewise.
5043 (c_val_print_int): Likewise.
5044 * findvar.c (read_frame_register_value): Likewise.
5045 * valarith.c (find_size_for_pointer_math): Likewise.
5046 (value_ptrdiff): Likewise.
5047 (value_subscripted_rvalue): Likewise.
5048 * valops.c (read_value_memory): Likewise (and rename variables).
5049 (value_assign): Likewise.
5050 (value_repeat): Likewise.
5051 (value_array): Likewise.
5052 (value_slice): Likewise.
5053 * valprint.c (generic_val_print_ptr): Likewise.
5054 (generic_val_print_enum): Likewise.
5055 (generic_val_print_bool): Likewise.
5056 (generic_val_print_int): Likewise.
5057 (generic_val_print_char): Likewise.
5058 (generic_val_print_float): Likewise.
5059 (generic_val_print_decfloat): Likewise.
5060 (generic_val_print_complex): Likewise.
5061 (val_print_scalar_formatted): Likewise.
5062 (val_print_array_elements): Likewise.
5063 * value.c (set_value_parent): Likewise.
5064 (value_contents_copy_raw): Likewise.
5065 (set_internalvar_component): Likewise.
5066 (value_primitive_field): Likewise.
5067 (value_fetch_lazy): Likewise.
5068 * value.h (read_value_memory): Update comment.
5069
e512cdbd
SM
50702015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5071
5072 * value.c (get_value_arch): New function.
5073 * value.h (get_value_arch): New declaration.
5074
3723fda8
SM
50752015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5076
5077 * value.c (struct value): Update comments.
5078
2e056931
SM
50792015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5080
5081 * gdbtypes.c (type_length_units): New function.
5082 * gdbtypes.h (type_length_units): New declaration.
5083 (struct type) <length>: Update comment.
5084
0c87c0bf
SM
50852015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5086
5087 * valprint.c (generic_val_print): Factor out complex
5088 printing code to ...
5089 (generic_val_print_complex): ... this new function.
5090
9550ae5e
SM
50912015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5092
5093 * valprint.c (generic_val_print): Factor out decfloat
5094 printing code to ...
5095 (generic_val_print_decfloat): ... this new function.
5096
7784724b
SM
50972015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5098
5099 * valprint.c (generic_val_print): Factor out float
5100 printing code to ...
5101 (generic_val_print_float): ... this new function.
5102
385f5aff
SM
51032015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5104
5105 * valprint.c (generic_val_print): Factor out char
5106 printing code to ...
5107 (generic_val_print_char): ... this new function.
5108
b21b6342
SM
51092015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5110
5111 * valprint.c (generic_val_print): Factor out integer
5112 printing code to ...
5113 (generic_val_print_int): ... this new function.
5114
e5bead4b
SM
51152015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5116
5117 * valprint.c (generic_val_print): Factor out bool
5118 printing code to ...
5119 (generic_val_print_bool): ... this new function.
5120
4a8c372f
SM
51212015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5122
5123 * valprint.c (generic_val_print): Factor out function/method
5124 printing code to ...
5125 (generic_val_print_func): ... this new function.
5126
d93880bd
SM
51272015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5128
5129 * valprint.c (generic_val_print): Factor out flags
5130 printing code to ...
5131 (generic_val_print_flags): ... this new function.
5132
ef0bc0dd
SM
51332015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5134
5135 * valprint.c (generic_val_print): Factor out enum
5136 printing code to ...
5137 (generic_val_print_enum): ... this new function.
5138
fe43fede
SM
51392015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5140
5141 * valprint.c (generic_val_print): Factor out reference
5142 printing code to ...
5143 (generic_val_print_ref): ... this new function.
5144
45000ea2
SM
51452015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5146
5147 * valprint.c (generic_val_print): Factor out memberptr
5148 printing code to ...
5149 (generic_val_print_memberptr): ... this new function.
5150
81eb921a
SM
51512015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5152
5153 * valprint.c (generic_val_print): Factor out pointer
5154 printing code to ...
5155 (generic_val_print_ptr): ... this new function.
5156
557dbe8a
SM
51572015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5158
5159 * valprint.c (generic_val_print): Factor out array
5160 printing code to ...
5161 (generic_val_print_array): ... this new function.
5162
9f436164
SM
51632015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5164
5165 * valprint.c (generic_val_print): Factor out
5166 print_unpacked_pointer code to ...
5167 (print_unpacked_pointer): ... this new function.
5168
077836f7
PP
51692015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5170
5171 * event-top.c (handle_sigterm): Don't inspect
5172 target_can_async_p. Always set the quit flag and always mark
5173 the async signal handler.
5174
3a60804f
YQ
51752015-07-27 Yao Qi <yao.qi@linaro.org>
5176
5177 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5178
c9f35b34
KB
51792015-07-25 Kevin Buettner <kevinb@redhat.com>
5180
5181 * remote.c (read_ptid): Return null_ptid when no thread id
5182 is found.
5183 (remote_current_thread): Add log warning for malformed
5184 qC reply.
5185 (remote_start_remote): Add log warning when current thread
5186 not found.
5187
2b4cab86
PA
51882015-07-24 Pedro Alves <palves@redhat.com>
5189
5190 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5191 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5192 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5193
77598427
PA
51942015-07-24 Pedro Alves <palves@redhat.com>
5195
5196 PR gdb/18717
5197 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5198 is resumed, and extend the debug log.
5199
fe23c31f
PA
52002015-07-24 Pedro Alves <palves@redhat.com>
5201
5202 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5203
5826e159
PA
52042015-07-24 Pedro Alves <palves@redhat.com>
5205
5206 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5207 sys/ptrace.h.
5208 * alpha-linux-nat.c: Likewise.
5209 * amd64-linux-nat.c: Likewise.
5210 * arm-linux-nat.c: Likewise.
5211 * hppa-linux-nat.c: Likewise.
5212 * i386-linux-nat.c: Likewise.
5213 * ia64-linux-nat.c: Likewise.
5214 * linux-fork.c: Likewise.
5215 * linux-nat.c: Likewise.
5216 * m32r-linux-nat.c: Likewise.
5217 * m68klinux-nat.c: Likewise.
5218 * mips-linux-nat.c: Likewise.
5219 * nat/linux-btrace.c: Likewise.
5220 * nat/linux-ptrace.c: Likewise.
5221 * nat/linux-ptrace.h
5222 * nat/mips-linux-watch.c: Likewise.
5223 * nat/x86-linux-dregs.c: Likewise.
5224 * ppc-linux-nat.c: Likewise.
5225 * s390-linux-nat.c: Likewise.
5226 * spu-linux-nat.c: Likewise.
5227 * tilegx-linux-nat.c: Likewise.
5228 * x86-linux-nat.c: Likewise.
5229 * xtensa-linux-nat.c: Likewise.
5230
54019719
PA
52312015-07-24 Pedro Alves <palves@redhat.com>
5232
5233 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5234 __ptrace_request as first parameter type instead of int.
5235 (PTRACE_TYPE_ARG1): Define.
5236 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5237 that casts first argument to PTRACE_TYPE_ARG1.
5238 * config.in: Regenerate.
5239 * configure: Regenerate.
5240
e3790375
PA
52412015-07-24 Pedro Alves <palves@redhat.com>
5242
5243 * gdb_ptrace.h: Move ...
5244 * nat/gdb_ptrace.h: ... here.
5245 * inf-ptrace.c: Adjust.
5246
eb7aa561
PA
52472015-07-24 Pedro Alves <palves@redhat.com>
5248
5249 * acinclude.m4: Include ptrace.m4.
5250 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5251 * ptrace.m4: ... to this new file.
5252
cc12ce38
DE
52532015-07-23 Doug Evans <dje@google.com>
5254
5255 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5256 (load_cu): Handle dummy CUs.
5257 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5258 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5259
7b849db4
CS
52602015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5261
5262 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5263 documentation to say that it returns a list rather than
5264 a FrozenSet.
5265 (linetable_object_methods): Update the docstring of the
5266 "source_line" entry.
5267
d0d84780
PMR
52682015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5269
5270 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5271 type to the recursive call instead of the original (maybe
5272 TYPE_CODE_TYPEDEF) type.
5273
c2fbdc59
YQ
52742015-07-23 Yao Qi <yao.qi@linaro.org>
5275
5276 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5277 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5278 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5279
af1b22f3
YQ
52802015-07-21 Yao Qi <yao.qi@linaro.org>
5281
5282 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5283 Move it to nat/aarch64-linux-hw-point.c.
5284 (aarch64_linux_child_post_startup_inferior): Update.
5285 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5286 New function.
5287 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5288 Declare it.
5289
40e050d2
MM
52902015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5291
5292 * common/btrace-common.c (btrace_data_append): Change case label.
5293
3675a06a
YQ
52942015-07-20 Yao Qi <yao.qi@linaro.org>
5295
5296 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5297 Re-indent the code.
5298 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5299 "unsigned long long".
5300
b4e1fd61
KB
53012015-07-18 Kevin Buettner <kevinb@redhat.com>
5302
5303 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5304 to be set for SEC_ALLOC sections too.
5305
554717a3
YQ
53062015-07-17 Yao Qi <yao.qi@linaro.org>
5307
5308 * Makefile.in (HFILES_NO_SRCDIR): Add
5309 nat/aarch64-linux-hw-point.h.
5310 (aarch64-linux-hw-point.o): New rule.
5311 * nat/aarch64-linux-hw-point.h: New file.
5312 * nat/aarch64-linux-hw-point.c: New file.
5313 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5314 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5315 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5316 (AARCH64_HWP_ALIGNMENT): Likewise.
5317 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5318 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5319 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5320 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5321 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5322 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5323 (struct aarch64_debug_reg_state): Likewise.
5324 (struct arch_lwp_info): Likewise.
5325 (aarch64_linux_set_debug_regs): Likewise.
5326 (aarch64_notify_debug_reg_change): Remove static.
5327 (aarch64_align_watchpoint): Likewise.
5328 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5329 (aarch64_watchpoint_length): Likewise.
5330 (aarch64_point_encode_ctrl_reg): Likewise
5331 (aarch64_point_is_aligned): Likewise.
5332 (aarch64_dr_state_insert_one_point): Likewise.
5333 (aarch64_dr_state_remove_one_point): Likewise.
5334 (aarch64_handle_breakpoint): Likewise.
5335 (aarch64_handle_aligned_watchpoint): Likewise.
5336 (aarch64_handle_unaligned_watchpoint): Likewise.
5337 (aarch64_handle_watchpoint): Likewise.
5338 * config/aarch64/linux.mh (NAT_FILE): Add
5339 aarch64-linux-hw-point.o.
5340
c67ca4de
YQ
53412015-07-17 Yao Qi <yao.qi@linaro.org>
5342
5343 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5344 state and don't call aarch64_get_debug_reg_state. All callers
5345 update.
5346 (aarch64_linux_insert_hw_breakpoint): Call
5347 aarch64_get_debug_reg_state earlier.
5348 (aarch64_linux_remove_hw_breakpoint): Likewise.
5349 (aarch64_handle_aligned_watchpoint): Add argument state and
5350 don't call aarch64_get_debug_reg_state. All callers update.
5351 (aarch64_handle_unaligned_watchpoint): Likewise.
5352 (aarch64_handle_watchpoint): Add argument state.
5353 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5354 earlier.
5355 (aarch64_linux_remove_watchpoint): Likewise.
5356
25abf979
YQ
53572015-07-17 Yao Qi <yao.qi@linaro.org>
5358
5359 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5360 debug_printf.
5361 (aarch64_handle_unaligned_watchpoint): Likewise.
5362
2ecd81c2
YQ
53632015-07-17 Yao Qi <yao.qi@linaro.org>
5364
5365 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5366 argument type's type to 'enum target_hw_bp_type'.
5367 (aarch64_dr_state_remove_one_point): Likewise.
5368 (aarch64_handle_breakpoint): Likewise.
5369 (aarch64_linux_insert_hw_breakpoint): Likewise.
5370 (aarch64_linux_remove_hw_breakpoint): Likewise.
5371 (aarch64_handle_aligned_watchpoint): Likewise.
5372
e53b6938
YQ
53732015-07-17 Yao Qi <yao.qi@linaro.org>
5374
5375 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5376 ptid_get_pid instead of get_thread_id.
5377
6a49a997
YQ
53782015-07-17 Yao Qi <yao.qi@linaro.org>
5379
5380 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5381 (add_current_inferior_and_thread): Don't initialise ptid.
5382
4bcddace
PL
53832015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5384
5385 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5386 unavailable if invalid.
5387
db1ff28b
JK
53882015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5389
5390 Revert the previous 6 commits:
5391 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5392 Move gdb_regex* to common/
5393 Prepare linux_find_memory_regions_full & co. for move
5394 Move linux_find_memory_regions_full & co.
5395 gdbserver build-id attribute generator
5396 Validate symbol file using build-id
5397
ca5268b6
JK
53982015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5399 Jan Kratochvil <jan.kratochvil@redhat.com>
5400
5401 Validate symbol file using build-id.
5402 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5403 and 'show validate-build-id'. Add build-id attribute.
5404 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5405 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5406 * solib-frv.c (_initialize_frv_solib): Ditto.
5407 * solib-spu.c (set_spu_solib_ops): Ditto.
5408 * solib-svr4.c: Include rsp-low.h.
5409 (NOTE_GNU_BUILD_ID_NAME): New define.
5410 (svr4_validate): New function.
5411 (svr4_copy_library_list): Duplicate field build_id.
5412 (library_list_start_library): Parse 'build-id' attribute.
5413 (svr4_library_attributes): Add 'build-id' attribute.
5414 (_initialize_svr4_solib): Assign validate value.
5415 * solib-target.c (solib.h): Include.
5416 (_initialize_solib_target): Assign validate value.
5417 * solib.c (validate_build_id, show_validate_build_id): New.
5418 (solib_map_sections): Use ops->validate.
5419 (clear_so): Free build_id.
5420 (default_solib_validate): New function.
5421 (_initialize_solib): Add "validate-build-id".
5422 * solib.h (default_solib_validate): New declaration.
5423 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5424 (target_so_ops): New field 'validate'.
5425
700ca40f
JK
54262015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5427 Jan Kratochvil <jan.kratochvil@redhat.com>
5428
5429 gdbserver build-id attribute generator.
5430 * features/library-list-svr4.dtd (library-list-svr4): New
5431 'build-id' attribute.
5432
9904185c
JK
54332015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5434 Jan Kratochvil <jan.kratochvil@redhat.com>
5435
5436 Move linux_find_memory_regions_full & co.
5437 * linux-tdep.c (nat/linux-maps.h): Include.
5438 (gdb_regex.h): Remove the include.
5439 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5440 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5441 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5442 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5443 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5444 and target/target.h.
5445 (struct smaps_vmflags, read_mapping, decode_vmflags)
5446 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5447 (linux_find_memory_regions_full): Move from linux-tdep.c.
5448 * nat/linux-maps.h (read_mapping): New declaration.
5449 (linux_find_memory_region_ftype, enum filterflags): Moved from
5450 linux-tdep.c.
5451 (linux_find_memory_regions_full): New declaration.
5452 * target.c (target/target-utils.h): Include.
5453 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5454 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5455 definitions to target/target-utils.c.
5456 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5457 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5458 from target.c.
5459 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5460 (read_alloc): New declaration.
5461 (read_stralloc_func_ftype): New typedef.
5462 (read_stralloc): New declaration.
5463 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5464
f7af1fcd
JK
54652015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5466 Jan Kratochvil <jan.kratochvil@redhat.com>
5467
5468 Prepare linux_find_memory_regions_full & co. for move.
5469 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5470 (linux_find_memory_regions_full): Change signature and prepare
5471 for moving to linux-maps.
5472 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5473 (linux_find_memory_regions_thunk): New.
5474 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5475 (linux_find_memory_regions_gdb): New.
5476 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5477 (linux_make_mappings_corefile_notes): Use
5478 linux_find_memory_regions_gdb.
5479 * target.c (read_alloc_pread_ftype): New typedef.
5480 (target_fileio_read_alloc_1_pread): New function.
5481 (read_alloc): Refactor from target_fileio_read_alloc_1.
5482 (read_stralloc_func_ftype): New typedef.
5483 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5484 (read_stralloc): Refactored from target_fileio_read_stralloc.
5485 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5486
6e5b4429
JK
54872015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5488
5489 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5490 common/gdb_regex.h.
5491 (COMMON_OBS): Add gdb_regex.o.
5492 (gdb_regex.o): New.
5493 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5494 --without-included-regex and USE_INCLUDED_REGEX.
5495 * common/gdb_regex.c: New file from utils.c functions.
5496 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5497 file wrapping define name.
5498 * configure: Rebuilt.
5499 * configure.ac (gdb_use_included_regex, --without-included-regex)
5500 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5501 * gdb_regex.h: Move it to common/gdb_regex.h.
5502 * utils.c: Remove include gdb_regex.h.
5503 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5504 (compile_rx_or_error): Move them to common/gdb_regex.c.
5505
ddc98fbf
JK
55062015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5507 Jan Kratochvil <jan.kratochvil@redhat.com>
5508
5509 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5510 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5511 common/target-utils.h.
5512 (COMMON_OBS): Add target-utils.o.
5513 (linux-maps.o, target-utils.o): New.
5514 * target/target-utils.c: New file.
5515 * target/target-utils.h: New file.
5516 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5517 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5518 * nat/linux-maps.c: New file.
5519 * nat/linux-maps.h: New file.
5520
e7b01ce0
MM
55212015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5522 Pedro Alves <palves@redhat.com>
5523
5524 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5525 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5526 (perf_event_read_bts): Change the type of SIZE and READ.
5527 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5528 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5529 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5530 mmap page.
5531 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5532 buffer size to UINT_MAX.
5533 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5534 DATA_TAIL.
5535 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5536 <last_head>: Change type.
5537 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5538 * common/btrace-common.c (btrace_data_append): Change the type of
5539 SIZE.
5540 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5541 check.
5542
f168693b
SM
55432015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5544
5545 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5546 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5547 with check_typedef.
5548 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5549 (ada_array_length): Likewise.
5550 (find_parallel_type_by_descriptive_type): Likewise.
5551 (ada_check_typedef): Likewise.
5552 * arm-tdep.c (arm_return_in_memory): Likewise.
5553 * ax-gdb.c (gen_trace_static_fields): Likewise.
5554 (gen_struct_ref_recursive): Likewise.
5555 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5556 (variable: block COLONCOLON name): Likewise.
5557 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5558 * c-lang.c (classify_type): Likewise.
5559 * c-typeprint.c (c_print_type): Likewise.
5560 (c_print_typedef): Likewise.
5561 (c_type_print_base): Likewise.
5562 * c-valprint.c (c_val_print): Likewise.
5563 * compile/compile-c-types.c (convert_type): Likewise.
5564 * compile/compile-object-load.c (get_out_value_type): Likewise.
5565 * completer.c (add_struct_fields): Likewise.
5566 (expression_completer): Likewise.
5567 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5568 (cp_lookup_nested_symbol_1): Likewise.
5569 (cp_lookup_nested_symbol): Likewise.
5570 * cp-valprint.c (cp_print_value_fields): Likewise.
5571 (cp_print_static_field): Likewise.
5572 * d-valprint.c (d_val_print): Likewise.
5573 * eval.c (evaluate_subexp_standard): Likewise.
5574 (evaluate_subexp_for_sizeof): Likewise.
5575 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5576 * f-typeprint.c (f_type_print_base): Likewise.
5577 * f-valprint.c (f_val_print): Likewise.
5578 * gdbtypes.c (get_discrete_bounds): Likewise.
5579 (create_array_type_with_stride): Likewise.
5580 (type_name_no_tag_or_error): Likewise.
5581 (lookup_struct_elt_type): Likewise.
5582 (get_unsigned_type_max): Likewise.
5583 (internal_type_vptr_fieldno): Likewise.
5584 (set_type_vptr_fieldno): Likewise.
5585 (internal_type_vptr_basetype): Likewise.
5586 (set_type_vptr_basetype): Likewise.
5587 (get_vptr_fieldno): Likewise.
5588 (is_integral_type): Likewise.
5589 (is_scalar_type): Likewise.
5590 (is_scalar_type_recursive): Likewise.
5591 (distance_to_ancestor): Likewise.
5592 (is_unique_ancestor_worker): Likewise.
5593 (check_types_equal): Likewise.
5594 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5595
45280282
IB
55962015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5597
5598 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5599 also test for language_d.
5600 (dwarf2_compute_name): Likewise.
5601 (read_func_scope): Likewise.
5602 (read_structure_type): Likewise.
5603 (new_symbol_full): Likewise.
5604 (determine_prefix): Likewise.
5605 (read_import_statement): Use dot as the separator for language_d.
5606 (typename_concat): Likewise, but don't prefix the D main function.
5607
99fe86f7
PB
56082015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5609
5610 * nat/linux-namespaces.c (setns): Rename from this ...
5611 (do_setns): ... to this. Support calling setns if it exists.
5612 (mnsh_handle_setns): Call do_setns.
5613
d5131498
YQ
56142015-07-13 Yao Qi <yao.qi@linaro.org>
5615
5616 * exec.c (exec_file_attach): Add period at the end of error
5617 message.
5618
97605e61
AB
56192015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5620
5621 * tui/tui-win.c (window_name_completer): New function.
5622 (focus_completer): Call window_name_completer. All old content
5623 moved into window_name_completer.
5624 (winheight_completer): New function.
5625 (_initialize_tui_win): Rename variable. Add completer to
5626 winheight command. Update doc string on winheight.
5627
8d6dbeb4
SL
56282015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5629
5630 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5631 all nios2 mach variants.
5632
a0e28e54
KB
56332015-07-10 Kevin Buettner <kevinb@redhat.com>
5634
5635 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5636 of target_read_memory.
5637
c101f28f
AB
56382015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5639
5640 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5641 string copy.
5642 (parse_scrolling_args): Likewise.
5643
150375dc
AB
56442015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5645
5646 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5647 names in this function.
5648
6dce28e4
AB
56492015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5650
5651 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5652 (CMD_NAME): Likewise.
5653 (DATA_NAME): Likewise.
5654 (DISASSEM_NAME): Likewise.
5655 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5656 (tui_set_win_height): Likewise.
5657 (parse_scrolling_args): Likewise.
5658
485668e5
MM
56592015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5660
5661 * record-btrace.c (record_btrace_goto_begin)
5662 (record_btrace_goto_end, record_btrace_goto): Move call to
5663 print_stack_frame ...
5664 (record_btrace_set_replay): ... here. Set stop_pc.
5665 * record-full.c (record_full_goto_entry): Set stop_pc.
5666
58d2eda5
PL
56672015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5668
5669 * NEWS: Mention support for tracepoints on aarch64-linux.
5670
7671bf47
PL
56712015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5672
5673 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5674 function. Return 1.
5675 (the_low_target): Install it.
5676
7890fb45
PL
56772015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5678
5679 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5680 * gdb.trace/collection.exp: Likewise.
5681 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5682 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5683 * gdb.trace/report.exp: Likewise.
5684 * gdb.trace/trace-break.exp: Likewise.
5685 * gdb.trace/unavailable.exp: Likewise.
5686 * gdb.trace/while-dyn.exp: Likewise.
5687
ea873d8e
PL
56882015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5689
5690 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5691 (aarch64_gen_return_address): New function.
5692 (aarch64_gdbarch_init): Hook it.
5693
02a2a705
PL
56942015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5695
5696 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5697 swallow NOT_AVAILABLE_ERROR.
5698 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5699 available_p is not set.
5700 (aarch64_stub_frame_unwind_stop_reason): New function.
5701 (aarch64_stub_unwind): Install it.
5702
7dfa3edc
PL
57032015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5704
5705 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5706 field.
5707 (aarch64_make_prologue_cache_1): New function, factored out from
5708 aarch64_make_prologue_cache. Do not allocate cache. Set
5709 available_p.
5710 (aarch64_make_prologue_cache): Reimplement wrapping
5711 aarch64_make_prologue_cache_1, and swallowing
5712 NOT_AVAILABLE_ERROR.
5713 (aarch64_prologue_frame_unwind_stop_reason): New function.
5714 Return UNWIND_UNAVAILABLE if available_p is not set.
5715 (aarch64_prologue_unwind): Install it.
5716 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5717 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5718 frame_id_build_unavailable_stack if available_p is not set.
5719
db634143
PL
57202015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5721
5722 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5723 fields.
5724 (aarch64_scan_prologue): Set prev_pc.
5725 (aarch64_make_prologue_cache): Set func.
5726 (aarch64_make_stub_cache): Set prev_pc.
5727 (aarch64_prologue_this_id): Remove local variables id, pc and
5728 func. Read prev_pc and func from cache.
5729 (aarch64_stub_this_id): Read prev_pc from cache.
5730
8b61f75d
PL
57312015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5732
5733 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5734 argument this_cache. Remove unused local variables reg and
5735 unwound_fp. Return early if this_cache is already set. Set
5736 this_cache.
5737 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5738
7c8edfae
PL
57392015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5740
5741 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5742 New argument this_cache. Return early if this_cache is already
5743 set. Set this_cache.
5744 (aarch64_prologue_this_id): Update call to
5745 aarch64_make_prologue_cache.
5746 (aarch64_prologue_prev_register): Likewise.
5747 (aarch64_normal_frame_base): Likewise.
5748
938c69a1
SM
57492015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5750
5751 * c-valprint.c (c_val_print): Factor out memberptr printing code
5752 from c_val_print to ...
5753 (c_val_print_memberptr): ... this new function.
5754
49f7fe28
SM
57552015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5756
5757 * c-valprint.c (c_val_print): Factor out int printing code to ...
5758 (c_val_print_int): ... this new function.
5759
9e4f353c
SM
57602015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5761
5762 * c-valprint.c (c_val_print): Factor out struct and union
5763 printing code to ...
5764 (c_val_print_struct): ... this new function ...
5765 (c_val_print_union): ... and this new function.
5766
1c67f032
SM
57672015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5768
5769 * c-valprint.c (c_val_print): Factor out pointer printing code
5770 to ...
5771 (c_val_print_ptr): ... this new function.
5772
0b6ef777
SM
57732015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5774
5775 * c-valprint.c (c_valprint): Factor our array printing code from
5776 c_val_print to ...
5777 (c_val_print_array): ... this new function.
5778
1033c33c
SM
57792015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5780
5781 * c-valprint.c (c_val_print): Factor out pointer printing code
5782 to ...
5783 (print_unpacked_pointer): ... this new function.
5784
f6b93c34
SM
57852015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5786
5787 * c-valprint.c (c_val_print): Remove an assignment to i and move
5788 its declaration.
5789
0f4576e3
YQ
57902015-07-09 Yao Qi <yao.qi@linaro.org>
5791
5792 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5793 argument ptid. Update comments. Caller update.
5794
37fdfe4c
MM
57952015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5796
5797 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5798 mnt packets.
5799
80a2b330
MM
58002015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5801
5802 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5803
4ab31498
SM
58042015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5805
5806 * progspace.c (delete_program_space): Add missing spaces.
5807
7a41607e
SM
58082015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5809
5810 * inferior.c (delete_inferior_1): Rename to ...
5811 (delete_inferior): ..., remove 'silent' parameter, delete
5812 program space when unused and remove call to prune_program_spaces.
5813 Remove the old, unused, delete_inferior.
5814 (delete_inferior_silent): Remove.
5815 (prune_inferiors): Change call from delete_inferior_1 to
5816 delete_inferior and remove 'silent' parameter. Remove call to
5817 prune_program_spaces.
5818 (remove_inferior_command): Idem.
5819 * inferior.h (delete_inferior_1): Rename to...
5820 (delete_inferior): ..., remove 'silent' parameter and remove the
5821 original delete_inferior.
5822 (delete_inferior_silent): Remove.
5823 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
5824 delete_inferior_1 to delete_inferior and remove 'silent'
5825 parameter.
5826 * progspace.c (prune_program_spaces): Remove.
5827 (pspace_empty_p): Rename to...
5828 (program_space_empty_p): ... and make non-static.
5829 (delete_program_space): New.
5830 * progspace.h (prune_program_spaces): Remove declaration.
5831 (program_space_empty_p): New declaration.
5832 (delete_program_space): New declaration.
5833 * monitor.c (monitor_close): Replace call to
5834 delete_thread_silent and delete_inferior_silent with
5835 discard_all_inferiors.
5836
a9bd710f
PP
58372015-07-08 Patrick Palka <patrick@parcs.ath.cx>
5838
5839 * defs.h (deprecated_register_changed_hook): Remove prototype.
5840 * interps.c (clear_iterpreter_hooks): Remove reference to
5841 deprecated_register_changed_hook.
5842 * top.c (deprecated_register_changed_hook): Remove prototype.
5843 * valops.c (value_assign): Remove reference to
5844 deprecated_register_changed_hook.
5845 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
5846 Add comment documenting the function.
5847 (tui_register_changed_observer): Define.
5848 (tui_install_hooks): Remove reference to
5849 deprecated_register_changed_hook. Set
5850 tui_register_changed_observer.
5851 (tui_remove_hooks): Remove reference to
5852 deprecated_register_changed_hook. Unset
5853 tui_register_changed_observer.
5854
08464196
JK
58552015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5856
5857 PR compile/18484
5858 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
5859
bcf5c1d9
RC
58602015-07-08 Robert O'Callahan <robert@ocallahan.org>
5861
5862 PR exp/18617
5863 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
5864
e8643a45
MM
58652015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5866
5867 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
5868
76fb6829
MM
58692015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5870
5871 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
5872 Use safe_strerror() instead of strerror().
5873
82c40d4b
YQ
58742015-07-07 Yao Qi <yao.qi@linaro.org>
5875
5876 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
5877 * features/arm-with-m-fpa-layout.c: Regenerated.
5878 * features/arm-with-m-vfp-d16.xml: Likewise.
5879 * features/arm-with-m-vfp-d16.c: Regenerated.
5880 * features/arm-with-m.xml: Likewise.
5881 * features/arm-with-m.c: Regenerated.
5882 * features/arm-with-neon.xml: Likewise.
5883 * features/arm-with-neon.c: Regenerated.
5884 * features/arm-with-vfpv2.xml: Likewise.
5885 * features/arm-with-vfpv2.c: Regenerated.
5886 * features/arm-with-vfpv3.xml: Likewise.
5887 * features/arm-with-vfpv3.c: Regenerated.
5888
607685ec
YQ
58892015-07-07 Yao Qi <yao.qi@linaro.org>
5890
5891 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
5892 arm-linux-nat.c.
5893 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
5894 elf/external.h.
5895 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
5896 if target is 32-bit.
5897 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
5898 if target is 32-bit.
5899 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
5900 if target is 32-bit.
5901 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
5902 if target is 32-bit.
5903 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
5904 (aarch64_linux_read_description): Return the right target
5905 description.
5906 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
5907 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5908 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
5909 arm-linux-tdep.o.
5910
f1b67888
YQ
59112015-07-07 Yao Qi <yao.qi@linaro.org>
5912
5913 * aarch32-linux-nat.c: New file.
5914 * aarch32-linux-nat.h: New file.
5915 * arm-linux-nat.c: Include aarch32-linux-nat.h.
5916 (fetch_regs): Move code to aarch32-linux-nat.c. Call
5917 aarch32_gp_regcache_supply.
5918 (store_regs): Move code to aarch32-linux-nat.c. Call
5919 aarch32_gp_regcache_collect.
5920 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
5921 aarch32_vfp_regcache_supply.
5922 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
5923 aarch32_vfp_regcache_collect.
5924 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5925
179bfe82
YQ
59262015-07-07 Yao Qi <yao.qi@linaro.org>
5927
5928 * arm-linux-nat.c (store_fpregister): Remove.
5929 (store_register): Likewise.
5930 (fetch_fpregister): Likewise.
5931 (fetch_register): Likewise.
5932 (arm_linux_store_inferior_registers): Call store_regs and
5933 store_fpregs instead.
5934 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
5935 fetch_regs instead.
5936
6008fc5f
AB
59372015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5938
5939 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
5940 and focus commands.
5941
7c79d316
JB
59422015-07-06 Joel Brobecker <brobecker@adacore.com>
5943
5944 * NEWS: Create a new section for the next release branch.
5945 Rename the section of the current branch, now that it has
5946 been cut.
5947
f2232bea
JB
59482015-07-06 Joel Brobecker <brobecker@adacore.com>
5949
5950 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
5951 * version.in: Bump version to 7.10.50.DATE-cvs.
5952
66c4b3e8
LM
59532015-07-06 Luis Machado <lgustavo@codesourcery.com>
5954
5955 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
5956 breakpoints in a special way.
5957 (remove_breakpoint): Likewise.
5958 (mark_breakpoints_out): Likewise.
5959
bcd8537c
AB
59602015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5961
5962 * doc/gdb.texinfo (TUI): Add comma after @xref.
5963
10e9aaa3
AB
59642015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5965
5966 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
5967 instead of casting the structure type.
5968
8a13d42d
SM
59692015-07-06 Simon Marchi <simon.marchi@ericsson.com>
5970
5971 * valops.c (search_struct_field): Remove OFFSET parameter.
5972 (value_cast_structs): Adjust calls to search_struct_field.
5973 (value_struct_elt): Same.
5974 (find_overload_match): Same.
5975
a844296a
SM
59762015-07-06 Simon Marchi <simon.marchi@ericsson.com>
5977
5978 * value.c (value_fetch_lazy): Update comment, change return
5979 value to void.
5980 * value.h (value_fetch_lazy): Change return value to void.
5981
f41cbf58
AB
59822015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5983
5984 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
5985 (tui_win_name): Make parameter and result const.
5986 * tui/tui-data.h (tui_win_name): Make parameter and result const.
5987
118ca224
PP
59882015-07-06 Patrick Palka <patrick@parcs.ath.cx>
5989
5990 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
5991 use printf_unfiltered.
5992 (set_mpx_cmd): Add missing trailing space to command string
5993 literal.
5994 (_initialize_i386_tdep): Give the "mpx" prefix command its
5995 correct name.
5996
1b485e67
KB
59972015-07-02 Kevin Buettner <kevinb@redhat.com>
5998
5999 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6000 (enum rx_frame_type): New.
6001 (struct rx_prologue): Add new field `frame_type'.
6002 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6003 parameter in the prologue struct. Add code for recording
6004 locations of PC and PSW for fast interrupt and exception frames.
6005 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6006 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6007 (rx_frame_type): New function.
6008 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6009 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6010 `this_cache'.
6011 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6012 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6013 RX_FRAME_TYPE_FAST_INTERRUPT.
6014 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6015 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6016 (rx_frame_unwind): Use rx_frame_sniffer instead of
6017 default_frame_sniffer.
6018 (rx_frame_unwind): New unwinder.
6019 (rx_gdbarch_init): Register new unwinder.
6020
0561fea4
KB
60212015-07-02 Kevin Buettner <kevinb@redhat.com>
6022
6023 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6024 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6025 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6026 and RX_FPSW_REGNUM.
6027 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6028
decf8d9a
JK
60292015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6030
6031 Fix GCC false warning.
6032 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6033
2fd0f80d
YQ
60342015-07-02 Yao Qi <yao.qi@linaro.org>
6035
6036 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6037 typo in the debugging message.
6038
b0627500
MM
60392015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6040
6041 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6042 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6043 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6044 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6045 (btrace_maint_clear): New.
6046 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6047 (pt_print_packet, btrace_maint_decode_pt)
6048 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6049 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6050 (maint_btrace_packet_history_cmd)
6051 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6052 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6053 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6054 (maint_info_btrace_cmd, _initialize_btrace): New.
6055 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6056 (btrace_maint_packet_history, btrace_maint_info): New.
6057 (btrace_thread_info) <maint>: New.
6058 * NEWS: Announce it.
6059
9be54cae
MM
60602015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6061
6062 * btrace.c (btrace_fetch): Append the new trace data.
6063 (btrace_clear): Clear the stored trace data.
6064 * btrace.h (btrace_thread_info) <data>: New.
6065 * common/btrace-common.h (btrace_data_clear)
6066 (btrace_data_append): New.
6067 * common/btrace-common.c (btrace_data_clear)
6068 (btrace_data_append): New.
6069
010a18a1
MM
60702015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6071
6072 * nat/linux-btrace.c (linux_enable_bts): Check for
6073 PERF_ATTR_SIZE_VER5.
6074 Check for data_offset and data_size fields. Use them.
6075
b20a6524
MM
60762015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6077
6078 * NEWS: Announce new commands "record btrace pt" and "record pt".
6079 Announce new options "set|show record btrace pt buffer-size".
6080 * btrace.c: Include "rsp-low.h".
6081 Include "inttypes.h".
6082 (btrace_add_pc): Add forward declaration.
6083 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6084 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6085 (btrace_compute_ftrace_pt): New.
6086 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6087 (check_xml_btrace_version): Update version check.
6088 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6089 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6090 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6091 (btrace_pt_children): New.
6092 (btrace_children): Add support for "pt".
6093 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6094 (btrace_conf_children): Add support for "pt".
6095 * btrace.h: Include "intel-pt.h".
6096 (btrace_pt_error): New.
6097 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6098 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6099 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6100 (struct btrace_config_pt): New.
6101 (struct btrace_config)<pt>: New.
6102 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6103 (struct btrace_data)<pt>: New.
6104 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6105 (pt): New.
6106 * features/btrace.dtd (btrace)<pt>: New.
6107 (pt, pt-config, cpu): New.
6108 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6109 (perf_event_pt_event_type, kernel_supports_pt)
6110 (linux_supports_pt): New.
6111 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6112 (linux_enable_bts): Free tinfo on error.
6113 (linux_enable_pt): New.
6114 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6115 (linux_disable_pt): New.
6116 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6117 (linux_fill_btrace_pt_config, linux_read_pt): New.
6118 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6119 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6120 (struct btrace_target_info)<pt>: New.
6121 * record-btrace.c (set_record_btrace_pt_cmdlist)
6122 (show_record_btrace_pt_cmdlist): New.
6123 (record_btrace_print_pt_conf): New.
6124 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6125 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6126 (cmd_record_btrace_pt_start): New.
6127 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6128 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6129 (_initialize_record_btrace): Add new commands.
6130 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6131 (remote_protocol_features): Add "Qbtrace:pt".
6132 Add "Qbtrace-conf:pt:size".
6133 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6134 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6135 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6136 (_initialize_remote): Add new commands.
6137
58bfce93
MM
61382015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6139
6140 * configure.ac: check for libipt
6141 * configure: Regenerate.
6142 * config.in: Regenerate.
6143 * Makefile.in (LIBIPT): New.
6144 (CLIBS): Add $LIBIPT.
6145 * NEWS: document new configure options
6146
b0fd6b30
JK
61472015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6148
6149 * compile/compile-object-load.c (compile_object_load): Replace debug
6150 message "lookup undefined ELF symbol" by 3 more specific messages.
6151
e6280369
KB
61522015-07-01 Kevin Buettner <kevinb@redhat.com>
6153
6154 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6155 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6156 (rl78_gdbarch_init): Initialize rl78_psw_type.
6157
bbcbf914
PP
61582015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6159
6160 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6161 Update commentary. Always refresh the registers when frame
6162 information has changed.
6163 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6164 Change return type to int. Return 1 if frame information has
6165 changed, 0 otherwise.
6166 (tui_before_prompt): Update commentary.
6167 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6168 int.
6169
0986c744
PP
61702015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6171
6172 PR tui/13378
6173 * frame.c (select_frame): Remove reference to
6174 deprecated_selected_frame_level_changed_hook.
6175 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6176 declaration.
6177 * stack.c (deprecated_selected_frame_level_changed_hook):
6178 Likewise.
6179 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6180 Rename to ...
6181 (tui_refresh_frame_and_register_information): ... this. Bail
6182 out if there is no stack. Don't update register information
6183 unless registers_too_p is true.
6184 (tui_print_frame_info_listing_hook): Rename to ...
6185 (tui_dummy_print_frame_info_listing_hook): ... this.
6186 (tui_before_prompt): New function.
6187 (tui_normal_stop): New function.
6188 (tui_before_prompt_observer): New observer.
6189 (tui_normal_stop_observer): New observer.
6190 (tui_install_hooks): Set
6191 deprecated_print_frame_info_listing_hook to
6192 tui_dummy_print_frame_info_listing_hook. Register
6193 tui_before_prompt_observer to call tui_before_prompt and
6194 tui_normal_stop_observer to call tui_normal_stop. Remove
6195 reference to deprecated_selected_frame_level_changed_hook.
6196 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6197 and tui_normal_stop_observer. Remove reference to
6198 deprecated_selected_frame_level_changed_hook.
6199
b5fca6d7
PP
62002015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6201
6202 PR tui/13378
6203 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6204 return an int instead of void. Return whether the locator
6205 window has changed.
6206 (tui_show_frame_info): If the locator info has not changed, then
6207 bail out early to avoid refreshing the windows.
6208
c45613e3
PP
62092015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6210
6211 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6212 LOCATOR_WIN to tui_alloc_content.
6213
7b9be803
YQ
62142015-06-30 Yao Qi <yao.qi@linaro.org>
6215
6216 PR tdep/18605
6217 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6218 instructions.
6219
fd6e021d
KB
62202015-06-29 Kevin Buettner <kevinb@redhat.com>
6221
78ab7e9d
KB
6222 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6223 (rx_dwarf_reg_to_regnum): New function.
6224 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6225 unwinding.
fd6e021d 6226
28bf096c
PA
62272015-06-29 Pedro Alves <palves@redhat.com>
6228
6229 PR threads/18127
6230 * infcall.c (run_inferior_call): On infcall success, if the thread
6231 was marked stopped before, reset it back to stopped.
6232 * infrun.c (resume): Don't suppress the set_running calls when
6233 doing an infcall.
6234 (normal_stop): Only discard the finish_thread_state cleanup if the
6235 infcall succeeded.
6236
2880b51c 62372015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6238
6239 * MAINTAINERS (Write After Approval): Update my email address.
6240
ee93cd5e
KS
62412015-06-26 Keith Seitz <keiths@redhat.com>
6242 Doug Evans <dje@google.com>
6243
6244 PR 16253
6245 * block.c (block_lookup_symbol): For non-function blocks,
6246 continue to search for a symbol with an exact domain match
6247 Otherwise, return any previously found "best domain" symbol.
6248 (block_lookup_symbol_primary): Likewise.
6249
fc637f04
PP
62502015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6251
6252 * NEWS: Mention the new option "history remove-duplicates".
6253 * top.c (history_remove_duplicates): New static variable.
6254 (show_history_remove_duplicates): New static function.
6255 (gdb_add_history): Conditionally remove duplicate history
6256 entries.
6257 (init_main): Add "history remove-duplicates" option.
6258
2e52ae68
PP
62592015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6260
6261 * tui/tui-win.c (focus_completer): New static function.
6262 (_initialize_tui_win): Set the completion function of the
6263 "focus" command to focus_completer.
6264
6e22494e
JK
62652015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6266
6267 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6268 and language_asm..
6269 * symtab.c (find_function_start_sal): Likewise.
6270
f8773be1
GB
62712015-06-25 Gary Benson <gbenson@redhat.com>
6272
6273 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6274 it is the empty string after trailing slashes have been stripped.
6275
a3be80c3
GB
62762015-06-25 Gary Benson <gbenson@redhat.com>
6277
6278 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6279 * infrun.c (follow_exec): Likewise.
6280 * remote.c (remote_filesystem_is_local): Likewise.
6281 * solib.c (solib_find_1): Likewise.
6282
32fad71f
KS
62832015-06-24 Keith Seitz <keiths@redhat.com>
6284
6285 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6286 return value from lrealpath.
6287
87d1b309
MF
62882015-06-24 Mike Frysinger <vapier@gentoo.org>
6289
6290 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6291
23bf70af
MF
62922015-06-24 Mike Frysinger <vapier@gentoo.org>
6293
6294 * remote-sim.c: Include gdb_bfd.h.
6295 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6296 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6297
5cd867b4
YQ
62982015-06-24 Yao Qi <yao.qi@linaro.org>
6299
6300 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6301 set_gdbarch_get_siginfo_type.
6302 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6303 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6304 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6305 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6306 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6307 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6308 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6309 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6310 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6311 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6312
dc06243f
GB
63132015-06-24 Gary Benson <gbenson@redhat.com>
6314
6315 * common/buffer.c (stdint.h): Do not include.
6316 * common/print-utils.c (stdint.h): Likewise.
6317 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6318 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6319 * ft32-tdep.c (gdb_assert.h): Likewise.
6320 * guile/scm-utils.c (stdint.h): Likewise.
6321 * i386-linux-tdep.c (stdint.h): Likewise.
6322 * i386-tdep.c (stdint.h): Likewise.
6323 * nat/linux-btrace.c (stdint.h): Likewise.
6324 * nat/linux-btrace.h (stdint.h): Likewise.
6325 * nat/linux-ptrace.c (stdint.h): Likewise.
6326 * nat/mips-linux-watch.h (stdint.h): Likewise.
6327 * ppc-linux-nat.c (stdint.h): Likewise.
6328 * python/python-internal.h (stdint.h): Likewise.
6329 * stub-termcap.c (stdlib.h): Likewise.
6330 * target/target.h (stdint.h): Likewise.
6331 * xtensa-linux-nat.c (stdint.h): Likewise.
6332
0fc26caf
PP
63332015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6334
6335 * top.c (init_history): Look at errno after calling strtol to
6336 properly map large GDBHISTSIZE values to infinity.
6337
a38fe4fe
DE
63382015-06-23 Doug Evans <dje@google.com>
6339
6340 * inferior.h (struct inferior_suspend_state): Delete, unused.
6341 All references deleted.
6342
7564fe45
MF
63432015-06-23 Mike Frysinger <vapier@gentoo.org>
6344
6345 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6346 (microblaze_push_dummy_call): Likewise.
6347 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6348 and set_gdbarch_push_dummy_call.
6349
0bdb2f78
YQ
63502015-06-23 Yao Qi <yao.qi@linaro.org>
6351
6352 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6353 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6354 (amd64_linux_store_inferior_registers): Likewise.
6355 * arm-linux-nat.c (fetch_fpregister): Likewise.
6356 (fetch_fpregs, store_fpregister): Likewise.
6357 (store_fpregister, store_fpregs): Likewise.
6358 (fetch_register, fetch_regs): Likewise.
6359 (store_register, store_regs): Likewise.
6360 (fetch_vfp_regs, store_vfp_regs): Likewise.
6361 (arm_linux_read_description): Check have_ptrace_getregset is
6362 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6363 or TRIBOOL_FALSE.
6364 * i386-linux-nat.c (fetch_xstateregs): Check
6365 have_ptrace_getregset is not TRIBOOL_TRUE.
6366 (store_xstateregs): Likewise.
6367 * linux-nat.c (have_ptrace_getregset): Change its type to
6368 enum tribool.
6369 * linux-nat.h (tribool): New enum.
6370 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6371 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6372
18a94d75
DE
63732015-06-19 Doug Evans <dje@google.com>
6374
6375 * NEWS: Mention Sun's version of stabs is no longer supported.
6376 * elfread.c (free_elfinfo): Delete. All uses updated.
6377 (elfstab_offset_sections): Delete. All uses updated.
6378 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6379 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6380 All uses updated.
6381 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6382 All callers updated.
6383
124e13d9
SM
63842015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6385
6386 * common/rsp-low.c (needs_escaping): New.
6387 (remote_escape_output): Add unit_size parameter. Refactor to
6388 support multi-byte addressable units. Rename parameters.
6389 * common/rsp-low.h (remote_escape_output): Add unit_size
6390 parameter and rename others. Update doc.
6391 * remote.c (align_for_efficient_write): New.
6392 (remote_write_bytes_aux): Add unit_size parameter and use it.
6393 Rename some variables. Update doc.
6394 (remote_xfer_partial): Get unit size and use it.
6395 (remote_read_bytes_1): Add unit_size parameter and use it.
6396 Rename some variables. Update doc.
6397 (remote_write_bytes): Same.
6398 (remote_xfer_live_readonly_partial): Same.
6399 (remote_read_bytes): Same.
6400 (remote_flash_write): Update call to remote_write_bytes_aux.
6401 (remote_write_qxfer): Update call to remote_escape_output.
6402 (remote_search_memory): Same.
6403 (remote_hostio_pwrite): Same.
6404
6ae88661
LM
64052015-06-17 Luis Machado <lgustavo@codesourcery.com>
6406
6407 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6408 locations as inserted.
6409 Update and expand comment about permanent locations.
6410 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6411 Move comment to add_location_to_breakpoint.
6412 (update_global_location_list): Don't error out if a permanent
6413 breakpoint is not marked inserted.
6414 Don't error out if a non-permanent breakpoint location is inserted on
6415 top of a permanent breakpoint.
6416
da4616f6
LM
64172015-06-17 Luis Machado <lgustavo@codesourcery.com>
6418
6419 * breakpoint.c (make_breakpoint_permanent): Remove unused
6420 function.
6421 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6422
bc460514
PP
64232015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6424
6425 PR gdb/16999
6426 * NEWS: Mention new GDBHISTSIZE behavior.
6427 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6428 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6429
b58c513b
PP
64302015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6431
6432 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6433 * top.c (init_history): Read from GDBHISTSIZE instead of
6434 HISTSIZE.
6435 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6436
2093d2d3
PP
64372015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6438
6439 * top.c (gdb_safe_append_history): Do not call
6440 history_truncate_file if the history is not stifled.
6441
fc248485
AA
64422015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6443
6444 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6445 * syscalls/s390x-linux.xml: Likewise.
6446
4da680ad
ME
64472015-06-16 Michael Eager <eager@eagercon.com>
6448
6449 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6450
0a75489f
PP
64512015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6452
6453 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6454 target_terminal_ours_for_output() before calling
6455 tui_show_frame_info(), and restore the original terminal
6456 settings afterwards.
6457
95855ca8
MS
64582015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6459
6460 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6461
cfc32360
SM
64622015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6463
6464 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6465 memory unit size.
6466 (mi_cmd_data_write_memory_bytes): Same.
6467
cb6f16cf
SM
64682015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6469
6470 * corefile.c (write_memory): Update doc.
6471 * gdbcore.h (write_memory): Same.
6472
31b7833d
JK
64732015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6474
6475 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6476 (dump_mapping_p): Use it for parameter filterflags.
6477 (linux_find_memory_regions_full): Use it for variable filterflags.
6478
909c2cda
JK
64792015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6480 Jan Kratochvil <jan.kratochvil@redhat.com>
6481
6482 Merge multiple hex conversions.
6483 * monitor.c: Include rsp-low.h.
6484 (fromhex): Remove definition.
6485
03aef70f
JK
64862015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6487 Jan Kratochvil <jan.kratochvil@redhat.com>
6488
6489 Move utility functions to common/.
6490 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6491 Move defs to common/common-utils.c.
6492 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6493 (skip_to_space_const): Move decls to common/common-utils.h.
6494 * common/common-defs.h: Move include of common-types.h before
6495 common-utils.h.
6496 * common/common-utils.c: Include host-defs.h and ctype.h.
6497 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6498 from utils.c.
6499 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6500 cli/cli-utils.c.
6501 * common/common-utils.h (strtoulst): Move decl from utils.h.
6502 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6503 Move from cli/cli-utils.h.
6504 * common/host-defs.h: Include limits.h.
6505 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6506 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6507 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6508 common/common-utils.h.
6509 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6510 (strtoulst): Move to common/common-utils.c.
6511 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6512
d1168cc1
YQ
65132015-06-15 Yao Qi <yao.qi@linaro.org>
6514
6515 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6516
c74f7d1c
JT
65172015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6518
6519 * build-id.c: Don't include elf-bfd.h.
6520 (build_id_bfd_get): Use bfd_build_id.
6521 (build_id_verify): Ditto.
6522 * build-id.h: Ditto.
6523 (find_separate_debug_file_by_buildid): Ditto.
6524 * python/py-objfile.c: Don't include elf-bfd.h.
6525 (objfpy_get_build_id) Use bfd_build_id.
6526 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6527 * coffread.c: Include build-id.h.
6528 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6529
f20c58f5
JT
65302015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6531
6532 * windows-nat.c (do_windows_fetch_inferior_registers)
6533 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6534 conditional with __CYGWIN__.
6535
51f0e40d
AB
65362015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6537
6538 * completer.c: Add arch-utils.h include.
6539 (enum reg_completer_targets): New enum.
6540 (reg_or_group_completer_1): New function containing old
6541 reg_or_group_completer, add and use new parameter to control what
6542 is completed on. Use get_current_arch rather than architecture of
6543 currently selected frame.
6544 (reg_or_group_completer): Call new reg_or_group_completer_1.
6545 (reggroup_completer): Call new reg_or_group_completer_1.
6546 * completer.h (reggroup_completer): Add declaration.
6547 * tui/tui-regs.c: Add 'completer.h' include.
6548 (tui_reg_next_command): Renamed to...
6549 (tui_reg_next): ...this. Adjust parameters and return rather than
6550 display new group.
6551 (tui_reg_prev_command): Renamed to...
6552 (tui_reg_prev): ...this. Adjust parameters and return rather than
6553 display new group.
6554 (tui_reg_float_command): Delete.
6555 (tui_reg_general_command): Delete.
6556 (tui_reg_system_command): Delete.
6557 (tui_reg_command): Rewrite to perform switching of register group.
6558 Add header comment.
6559 (tuireglist): Remove.
6560 (tui_reggroup_completer): New function.
6561 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6562 creation of 'tui reg' command.
6563 * NEWS: Add comment about 'tui reg' changes.
6564
d309493c
SM
65652015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6566
6567 * target.c (target_read): Consider addressable unit size when
6568 reading from a memory object.
6569 (read_memory_robust): Same.
6570 (read_whatever_is_readable): Same.
6571 (target_write_with_progress): Consider addressable unit size
6572 when writing to a memory object.
6573 * target.h (target_read): Update documentation.
6574 (target_write): Add documentation.
6575
3374165f
SM
65762015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6577
6578 * arch-utils.h (default_addressable_memory_unit_size): New.
6579 * arch-utils.c (default_addressable_memory_unit_size): New.
6580 * gdbarch.sh (addressable_memory_unit_size): New.
6581 * gdbarch.h: Re-generate.
6582 * gdbarch.c: Re-generate.
6583
279a6fed
SM
65842015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6585
6586 * target.c (target_read): Rename variables and use
6587 TARGET_XFER_E_IO.
6588 (target_read_with_progress): Same.
6589 (read_memory_robust): Constify parameters and rename
6590 variables.
6591 (read_whatever_is_readable): Constify parameters,
6592 rename variables, adjust formatting.
6593 * target.h (read_memory_robust): Constify parameters.
6594
1e5338b6 65952015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
6596
6597 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6598 synthetic (non-AltiVec) vector types.
6599 (ppc64_sysv_abi_return_value): Likewise.
6600
98aa42ee
AT
66012015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6602
6603 PR breakpoints/16465
6604 * breakpoint.c (create_breakpoint): Save extra_string for
6605 pending breakpoints.
6606
966f0aef
WT
66072015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6608
6609 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6610 and bt_mask to CORE_ADDR.
6611
6449ed0d
GB
66122015-06-11 Gary Benson <gbenson@redhat.com>
6613
6614 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6615 (mnsh_recv_message): Likewise.
6616
34f8ac9f
WT
66172015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6618
6619 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6620 long long int and plongest instead of %ll.
6621
198c808c
GB
66222015-06-11 Gary Benson <gbenson@redhat.com>
6623
6624 * nat/linux-namespaces.c (gdb_wait.h): New include.
6625 (sys/wait.h): Do not include.
6626
e815d2d2
SM
66272015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6628
6629 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6630 end_sequence is true.
6631
8847cac2
JK
66322015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6633
6634 Code cleanup.
6635 * solib-target.c (library_list_start_list): Use explicit NULL
6636 comparison.
6637
24c05f46
JK
66382015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6639
6640 * solib-target.c (library_list_start_list): Do not dereference
6641 variable version in its initialization. Make the VERSION check handle
6642 NULL.
6643 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6644
51aad7cc
GB
66452015-06-10 Gary Benson <gbenson@redhat.com>
6646
6647 * NEWS: Announce support for direct access of executable and
6648 shared library files when attaching to inferiors in containers
6649 on GNU/Linux systems.
6650
15a201c8
GB
66512015-06-10 Gary Benson <gbenson@redhat.com>
6652
6653 * remote.c (struct remote_state) <fs_pid>: New field.
6654 (new_remote_state): Initialize the above.
6655 (PACKET_vFile_setfs): New enum value.
6656 (remote_hostio_set_filesystem): New function.
6657 (remote_hostio_open): Call the above.
6658 (remote_hostio_unlink): Likewise.
6659 (remote_hostio_readlink): Likewise.
6660 (_initialize_remote): Register new "set/show remote
6661 hostio-setfs-packet" command.
6662 * NEWS: Announce new vFile:setfs packet.
6663
7a6a1731
GB
66642015-06-10 Gary Benson <gbenson@redhat.com>
6665
6666 * linux-nat.c (nat/linux-namespaces.h): New include.
6667 (fileio.h): Likewise.
6668 (linux_nat_filesystem_is_local): New function.
6669 (linux_nat_fileio_pid_of): Likewise.
6670 (linux_nat_fileio_open): Likewise.
6671 (linux_nat_fileio_readlink): Likewise.
6672 (linux_nat_fileio_unlink): Likewise.
6673 (linux_nat_add_target): Initialize to_filesystem_is_local,
6674 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6675 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6676 commands.
6677 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6678
07c138c8
GB
66792015-06-10 Gary Benson <gbenson@redhat.com>
6680
6681 * target.h (struct inferior): New forward declaration.
6682 (struct target_ops) <to_filesystem_is_local>: Update comment.
6683 (struct target_ops) <to_fileio_open>: New argument inf.
6684 Update comment. All implementations updated.
6685 (struct target_ops) <to_fileio_unlink>: Likewise.
6686 (struct target_ops) <to_fileio_readlink>: Likewise.
6687 (target_filesystem_is_local): Update comment.
6688 (target_fileio_open): New argument inf. Update comment.
6689 (target_fileio_unlink): Likewise.
6690 (target_fileio_readlink): Likewise.
6691 (target_fileio_read_alloc): Likewise.
6692 (target_fileio_read_stralloc): Likewise.
6693 * target.c (target_fileio_open): New argument inf.
6694 Pass inf to implementation. Update debug printing.
6695 (target_fileio_unlink): Likewise.
6696 (target_fileio_readlink): Likewise.
6697 (target_fileio_read_alloc_1): New argument inf. Pass inf
6698 to target_fileio_open.
6699 (target_fileio_read_alloc): New argument inf. Pass inf to
6700 target_fileio_read_alloc_1.
6701 (target_fileio_read_stralloc): Likewise.
6702 * gdb_bfd.c (inferior.h): New include.
6703 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6704 argument with new argument "inferior". Pass inferior to
6705 target_fileio_open.
6706 (gdb_bfd_open): Supply inferior argument to
6707 gdb_bfd_iovec_fileio_open.
6708 * linux-tdep.c (linux_info_proc): Supply inf argument to
6709 relevant target_fileio calls.
6710 (linux_find_memory_regions_full): Likewise.
6711 (linux_fill_prpsinfo): Likewise.
6712 * remote.c (remote_filesystem_is_local): Supply inf
6713 argument to remote_hostio_open.
6714 (remote_file_put): Likewise.
6715 (remote_file_get): Likewise.
6716 (remote_file_delete): Supply inf argument to
6717 remote_hostio_unlink.
6718
12e2a5fd
GB
67192015-06-10 Gary Benson <gbenson@redhat.com>
6720
6721 * inf-child.c (inf_child_fileio_open): Replace comment.
6722 (inf_child_fileio_pwrite): Likewise.
6723 (inf_child_fileio_pread): Likewise.
6724 (inf_child_fileio_fstat): Insert blank line before comment.
6725 (inf_child_fileio_close): Replace comment.
6726 (inf_child_fileio_unlink): Likewise.
6727 (inf_child_fileio_readlink): Likewise.
6728 * remote.c (remote_hostio_open): Likewise.
6729 (remote_hostio_pread): Likewise.
6730 (remote_hostio_pwrite): Likewise.
6731 (remote_hostio_close): Likewise.
6732 (remote_hostio_unlink): Likewise.
6733 (remote_hostio_readlink): Likewise.
6734 (remote_hostio_fstat): Likewise.
6735 (remote_filesystem_is_local): Likewise.
6736 * target.c (target_fileio_open): Likewise.
6737 (target_fileio_pwrite): Likewise.
6738 (target_fileio_pread): Likewise.
6739 (target_fileio_fstat): Insert blank line before comment.
6740 (target_fileio_close): Replace comment.
6741 (target_fileio_unlink): Likewise.
6742 (target_fileio_readlink): Likewise.
6743 (target_fileio_read_alloc): Likewise.
6744 (target_fileio_read_stralloc): Likewise.
6745
9bc3a976
GB
67462015-06-10 Gary Benson <gbenson@redhat.com>
6747
6748 * linux-thread-db.c (nat/linux-namespaces.h): New include.
6749 (check_pid_namespace_match): Use linux_ns_same rather than
6750 linux_proc_pid_get_ns to spot PID namespace mismatches.
6751 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6752 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6753
4b8b5e72
GB
67542015-06-10 Gary Benson <gbenson@redhat.com>
6755
6756 * configure.ac (AC_CHECK_FUNCS): Add setns.
6757 * config.in: Regenerate.
6758 * configure: Likewise.
6759 * nat/linux-namespaces.h: New file.
6760 * nat/linux-namespaces.c: Likewise.
6761 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6762 (linux-namespaces.o): New rule.
6763 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6764 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6765 * config/arm/linux.mh (NATDEPFILES): Likewise.
6766 * config/i386/linux.mh (NATDEPFILES): Likewise.
6767 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6768 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6769 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6770 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6771 * config/mips/linux.mh (NATDEPFILES): Likewise.
6772 * config/pa/linux.mh (NATDEPFILES): Likewise.
6773 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6774 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6775 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6776 * config/s390/linux.mh (NATDEPFILES): Likewise.
6777 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6778 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6779 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6780 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6781
ca095836
GB
67822015-06-10 Gary Benson <gbenson@redhat.com>
6783
6784 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6785 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6786 (make_cleanup_close): Likewise.
6787 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6788 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6789 (make_cleanup_close): Likewise.
6790
5d9c55d3
JT
67912015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6792
6793 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6794 from SuspendThread().
6795
040ea00b
JT
67962015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6797
6798 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6799 from OutputDebugString.
6800
7d73c23c
WT
68012015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6802 Mircea Gherzan <mircea.gherzan@intel.com>
6803
6804 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6805 MPX_BT_MASK_32): New macros.
6806 (i386_mpx_set_bounds): New function that implements
6807 the command "set-mpx-bound".
6808 (i386_mpx_enabled): Helper function to test MPX availability.
6809 (i386_mpx_bd_base): Helper function to calculate the base directory
6810 address.
6811 (i386_mpx_get_bt_entry): Helper function to access a bound
6812 table entry.
6813 (i386_mpx_print_bounds): Effectively display bound information.
6814 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6815 "show mpx".
6816 (_initialize_i386_tdep):
6817 Add "bound" to the commands "show mpx" and "set mpx" commands.
6818 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
6819 and "show mpx" commands.
6820 * NEWS: List new commands for MPX support.
6821
3ac2e371
GB
68222015-06-09 Gary Benson <gbenson@redhat.com>
6823
6824 * common/fileio.h (fileio_to_host_mode): New declaration.
6825 * common/fileio.c (fileio_to_host_mode): New Function.
6826 * inf-child.c (inf_child_fileio_open): Process mode argument
6827 with fileio_to_host_mode.
6828
ecef18c5
GB
68292015-06-09 Gary Benson <gbenson@redhat.com>
6830
6831 * common/fileio.c (fileio_mode_pack): Fix preprocessor
6832 conditional.
6833
e3dd7556
GB
68342015-06-05 Gary Benson <gbenson@redhat.com>
6835
6836 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
6837 * remote.c (remote_filesystem_is_local): ...here.
6838
5b74bf7d
YQ
68392015-06-04 Yao Qi <yao.qi@linaro.org>
6840
6841 * gdbarch.c: Regenerate it.
6842
7f361056
JK
68432015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6844
6845 * arch-utils.c (default_infcall_munmap): New.
6846 * arch-utils.h (default_infcall_munmap): New declaration.
6847 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
6848 (munmap_list_free, munmap_listp_free_cleanup): New.
6849 (struct setup_sections_data): Add field munmap_list_headp.
6850 (setup_sections): Call munmap_list_add.
6851 (compile_object_load): New variable munmap_list_head, initialize
6852 setup_sections_data.munmap_list_headp, return munmap_list_head.
6853 * compile/compile-object-load.h (struct munmap_list): New declaration.
6854 (struct compile_module): Add field munmap_list_head.
6855 (munmap_list_free): New declaration.
6856 * compile/compile-object-run.c (struct do_module_cleanup): Add field
6857 munmap_list_head.
6858 (do_module_cleanup): Call munmap_list_free.
6859 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
6860 * gdbarch.c: Regenerate.
6861 * gdbarch.h: Regenerate.
6862 * gdbarch.sh (infcall_munmap): New.
6863 * linux-tdep.c (linux_infcall_munmap): New.
6864 (linux_init_abi): Install it.
6865
3b462ec2
SM
68662015-06-02 Simon Marchi <simon.marchi@ericsson.com>
6867
6868 PR gdb/15564
6869 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
6870
8d683210
YQ
68712015-06-02 Yao Qi <yao.qi@linaro.org>
6872
6873 * i386-linux-nat.c: Include linux-nat.h.
6874
e0619de6
JK
68752015-06-01 Andreas Schwab <schwab@linux-m68k.org>
6876 Jan Kratochvil <jan.kratochvil@redhat.com>
6877
6878 PR symtab/18392
6879 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
6880 assertion.
6881 * dwarf2loc.c (chain_candidate): Likewise.
6882
bd16da51
YQ
68832015-06-01 Yao Qi <yao.qi@linaro.org>
6884
6885 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
6886 (store_vfp_regs): Use PTRACE_SETREGSET.
6887
df9d7ec9
YQ
68882015-06-01 Yao Qi <yao.qi@linaro.org>
6889
6890 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
6891 (fetch_fpregs): Likewise.
6892 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
6893 (store_fpregs): Likewise.
6894
10766686
YQ
68952015-06-01 Yao Qi <yao.qi@linaro.org>
6896
6897 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
6898 (fetch_regs): Likewise.
6899 (store_regs): Use PTRACE_SETREGSET.
6900 (store_register): Likewise.
6901
7efe48d1
YQ
69022015-06-01 Yao Qi <yao.qi@linaro.org>
6903
6904 * arm-linux-nat.c (arm_linux_read_description): Check whether
6905 kernel supports PTRACE_GETREGSET.
6906
433bbbf8
YQ
69072015-06-01 Yao Qi <yao.qi@linaro.org>
6908
6909 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
6910 * linux-nat.c: ... here.
6911 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
6912 to ...
6913 * linux-nat.h: ... here.
6914
ca9b78ce
YQ
69152015-06-01 Yao Qi <yao.qi@linaro.org>
6916
6917 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
6918 * i386-linux-nat.c: Likewise.
6919 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
6920 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
6921 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6922 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
6923 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6924
99cee7b7
EZ
69252015-05-30 Eli Zaretskii <eliz@gnu.org>
6926
6927 * go32-nat.c (go32_xfer_memory): Fix the return value to be
6928 compatible to what read_child and write_child return. This
6929 unbreaks that DJGPP build of GDB which was broken since v7.7.
6930
2147f5bd
MG
69312015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
6932
6933 * MAINTAINERS (Write After Approval): Add Martin Galvan.
6934
c8f6c93c
RM
69352015-05-29 Roland McGrath <mcgrathr@google.com>
6936
6937 PR gdb/18464
6938 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
6939 rather than internal_error for an unrecognized value.
6940
8c6a948d
MF
69412015-05-29 Max Filippov <jcmvbkbc@gmail.com>
6942
6943 * xtensa-tdep.c (xtensa_pseudo_register_read)
6944 (xtensa_pseudo_register_write): Don't alias last pseudo register
6945 to a1.
6946
8dd06f7a
DB
69472015-05-28 Don Breazeal <donb@codesourcery.com>
6948
6949 * infrun.c (follow_fork_inferior): Ensure the use of
6950 process-style ptids (pid,0,0) in verbose/debug "Detaching"
6951 messages.
6952
a051152b
DE
69532015-05-28 Doug Evans <dje@google.com>
6954
6955 * dwarf2read.c (record_line_ftype): Remove, duplicate.
6956
a56cc1ce
YQ
69572015-05-28 Yao Qi <yao.qi@linaro.org>
6958
6959 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
6960 (arm_linux_fetch_inferior_registers): Use
6961 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
6962 (arm_linux_store_inferior_registers): Likewise.
6963 (arm_linux_read_description): Don't set
6964 arm_linux_has_wmmx_registers.
6965 * arm-tdep.c (arm_gdbarch_init): Set
6966 tdep->have_wmmx_registers according target descriptions.
6967 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
6968 field.
6969
330c6ca9
YQ
69702015-05-28 Yao Qi <yao.qi@linaro.org>
6971
6972 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
6973 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
6974 instead of arm_linux_vfp_register_count.
6975 (store_vfp_regs): Likewise.
6976 (arm_linux_fetch_inferior_registers): Likewise.
6977 (arm_linux_store_inferior_registers): Likewise.
6978 (arm_linux_read_description): Don't set
6979 arm_linux_vfp_register_count.
6980 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
6981 Adjust.
6982 * arm-tdep.c (arm_gdbarch_init): Add assert on
6983 vfp_register_count.
6984 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
6985 field to vfp_register_count. All users updated.
6986
d403db27
KH
69872015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
6988
6989 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
6990 ELFOSABI_GNU binaries.
6991
d9b3de22
DE
69922015-05-27 Doug Evans <dje@google.com>
6993
6994 * dwarf2read.c (lnp_state_machine): New typedef.
6995 (lnp_reader_state): New typedef.
6996 (dwarf_record_line_1): Renamed from dwarf_record_line.
6997 All callers updated.
6998 (dwarf_record_line): New function.
6999 (init_lnp_state_machine): New function.
7000 (check_line_address): Replace p_record_line parameter with state.
7001 All callers updated.
7002 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7003 Update to record state in lnp_state_machine.
7004
924c2928
DE
70052015-05-27 Doug Evans <dje@google.com>
7006
7007 * dwarf2read.c (record_line_ftype): New typedef.
7008 (check_line_address): New function.
7009 (dwarf_decode_lines_1): Call it.
7010
27e0867f
DE
70112015-05-27 Doug Evans <dje@google.com>
7012
7013 * NEWS: Mention "set debug dwarf-line".
7014 * dwarf2read.c (dwarf_line_debug): New static global.
7015 (add_include_dir): Add debug dwarf-line support.
7016 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7017 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7018
4dcabcc2
DE
70192015-05-27 Doug Evans <dje@google.com>
7020
7021 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7022 All callers updated.
7023 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7024 * cp-support.h (cp_lookup_nested_symbol): Update.
7025
b2e2f908
DE
70262015-05-27 Doug Evans <dje@google.com>
7027
7028 PR symtab/18258
7029 * block.c (block_find_symbol): New function.
7030 (block_find_non_opaque_type): Ditto.
7031 (block_find_non_opaque_type_preferred): Ditto.
7032 * block.h (block_symbol_matcher_ftype): New typedef.
7033 (block_find_symbol): Declare.
7034 (block_find_non_opaque_type): Ditto.
7035 (block_find_non_opaque_type_preferred): Ditto.
7036 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7037 * psymtab.c (psym_lookup_symbol): Ditto.
7038 * symtab.c (basic_lookup_transparent_type_1): New function.
7039 (basic_lookup_transparent_type): Call it.
7040
f62fce35
YQ
70412015-05-27 Yao Qi <yao.qi@linaro.org>
7042
7043 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7044 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7045
5d98d3cd
YQ
70462015-05-27 Yao Qi <yao.qi@linaro.org>
7047
7048 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7049 before operator &&.
7050 (aarch64_record_load_store): Likewise.
7051
82c7be31
DE
70522015-05-26 Doug Evans <dje@google.com>
7053
7054 PR c++/18141, c++/18417.
7055 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7056 a typedef.
7057
b4f54984
DE
70582015-05-26 Doug Evans <dje@google.com>
7059
7060 * NEWS: Add entries for command renamings.
7061 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7062 All uses updated.
7063 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7064 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7065 All uses updated.
7066 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7067 All callers updated. Fix spelling of DWARF in help text.
7068 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7069 All uses updated.
7070 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7071 All uses updated.
7072 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7073 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7074 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7075 All uses updated.
7076 (show_dwarf_always_disassemble): Renamed from
7077 show_dwarf2_always_disassemble. All callers updated.
7078 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7079 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7080 "set/show dwarf max-cache-age". Rename
7081 "set/show dwarf2 always-disassemble" to
7082 "set/show dwarf always-disassemble". Rename
7083 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7084 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7085
4ea6efe9
DE
70862015-05-26 Doug Evans <dje@google.com>
7087
7088 PR python/18438
7089 * python/py-lazy-string.c (stpy_convert_to_value): Use
7090 gdbpy_gdb_memory_error not PyExc_MemoryError.
7091 (gdbpy_create_lazy_string_object): Ditto.
7092
b93fd21d
AB
70932015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7094
7095 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7096
55b40027
AB
70972015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 * tui/tui-regs.c (tui_reg_prev_command): New function.
7100 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7101 * reggroups.c (reggroup_prev): New function.
7102 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7103
99afc88b
OJ
71042015-05-26 Omair Javaid <omair.javaid@linaro.org>
7105 Yao Qi <yao.qi@linaro.org>
7106
7107 * aarch64-linux-tdep.c: Include linux-record.h and
7108 record-full.h.
7109 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7110 (aarch64_syscall): New enum.
7111 (aarch64_canonicalize_syscall): New function.
7112 (aarch64_all_but_pc_registers_record): New function.
7113 (aarch64_linux_syscall_record): New function.
7114 (aarch64_linux_init_abi): Install AArch64 process record
7115 handler. Update to handle syscall recording.
7116 * aarch64-tdep.c: Include record.h and record-full.h.
7117 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7118 (struct aarch64_mem_r): Define.
7119 (aarch64_record_result): New enum.
7120 (struct insn_decode_record): Define.
7121 (insn_decode_record): New typedef.
7122 (aarch64_record_data_proc_reg): New function.
7123 (aarch64_record_data_proc_imm): New function.
7124 (aarch64_record_branch_except_sys): New function.
7125 (aarch64_record_load_store): New function.
7126 (aarch64_record_data_proc_simd_fp): New function.
7127 (aarch64_record_asimd_load_store): New function.
7128 (aarch64_record_decode_insn_handler): New function.
7129 (deallocate_reg_mem): New function.
7130 (aarch64_process_record): New function.
7131 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7132 New field.
7133 (aarch64_process_record): New extern declaration.
7134 * configure.tgt: Add linux-record.o to gdb_target_obs.
7135 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7136
c16a3f52
OJ
71372015-05-26 Omair Javaid <omair.javaid@linaro.org>
7138
7139 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7140 targets.
7141
c9cf6e20
MG
71422015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7143
7144 * amd64-tdep.c: Replace in_function_epilogue_p with
7145 stack_frame_destroyed_p throughout.
7146 * arch-utils.c: Ditto.
7147 * arch-utils.h: Ditto.
7148 * arm-tdep.c: Ditto.
7149 * breakpoint.c: Ditto.
7150 * gdbarch.sh: Ditto.
7151 * hppa-tdep.c: Ditto.
7152 * i386-tdep.c: Ditto.
7153 * mips-tdep.c: Ditto.
7154 * nios2-tdep.c: Ditto.
7155 * rs6000-tdep.c: Ditto.
7156 * s390-linux-tdep.c: Ditto.
7157 * score-tdep.c: Ditto.
7158 * sh-tdep.c: Ditto.
7159 * sparc-tdep.c: Ditto.
7160 * sparc-tdep.h: Ditto.
7161 * sparc64-tdep.c: Ditto.
7162 * spu-tdep.c: Ditto.
7163 * tic6x-tdep.c: Ditto.
7164 * tilegx-tdep.c: Ditto.
7165 * xstormy16-tdep.c: Ditto.
7166 * gdbarch.c, gdbarch.h: Re-generated.
7167
a4ea0946
AB
71682015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7169
7170 * NEWS: Mention 'tui enable' and 'tui disable'.
7171 * tui/tui.c (tui_enable_command): New function.
7172 (tui_disable_command): New function.
7173 (_initialize_tui): New function.
7174
b75c69bb
AB
71752015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7176
7177 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7178
c1b009ee
AB
71792015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7180
7181 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7182 buf_ptr is freed.
7183
880d1e40
AB
71842015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7185
7186 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7187 into ...
7188 (tui_set_layout_for_display_command): ...here, before calling
7189 tui_set_layout. Only set the layout if gdb has not already
7190 entered the TUI_FAILURE state.
7191
a0145030
AB
71922015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7193
7194 * tui/tui-layout.c (layout_completer): New function.
7195 (_initialize_tui_layout): Set completer on layout command.
7196
7bd0be3a
AB
71972015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7198
7199 * tui/tui-layout.c (tui_set_layout): Remove
7200 tui_register_display_type parameter. Remove all checking of this
7201 parameter, and reindent function. Update header comment.
7202 (tui_set_layout_for_display_command): Rename to...
7203 (tui_set_layout_by_name): ...this, and don't check for different
7204 register class types, don't pass a tui_register_display_type to
7205 tui_set_layout. Update header comment.
7206 (layout_names): Remove register set specific names.
7207 * tui/tui-layout.h (tui_set_layout): Remove
7208 tui_register_display_type parameter.
7209 * tui/tui.c (tui_rl_change_windows): Don't pass a
7210 tui_register_display_type to tui_set_layout.
7211 (tui_rl_delete_other_windows): Likewise.
7212 (tui_enable): Likewise.
7213 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7214 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7215 (TUI_GENERAL_REGS_NAME): Remove.
7216 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7217 (TUI_SPECIAL_REGS_NAME): Remove.
7218 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7219 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7220 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7221 (enum tui_register_display_type): Remove.
7222 (struct tui_layout_def): Remove regs_display_type and
7223 float_regs_display_type fields.
7224 (struct tui_data_info): Remove regs_display_type field.
7225 (tui_layout_command): Use new name for
7226 tui_set_layout_for_display_command.
7227 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7228 (tui_clear_win_detail): Don't initialise removed fields of
7229 win_info.
7230 * tui/tui-regs.c (tui_show_registers): Use new name for
7231 tui_set_layout_for_display_command.
7232 * tui/tui.h (tui_set_layout_for_display_command): Rename
7233 declaration to...
7234 (tui_set_layout_by_name): ...this.
7235 * printcmd.c (display_command): Remove tui related layout call,
7236 and reindent.
7237
0b6e5e10
JB
72382015-05-20 Joel Brobecker <brobecker@adacore.com>
7239
7240 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7241 (handle_inferior_event): New function.
7242
1da0522e
JB
72432015-05-20 Joel Brobecker <brobecker@adacore.com>
7244
7245 * ada-lang.c (to_fixed_array_type): Rename local variable
7246 typename into type_name.
7247
5fe75eec
JK
72482015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7249
7250 Fix ASAN crash for gdb.compile/compile.exp.
7251 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7252
a4063588
JK
72532015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7254
7255 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7256 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7257 * compile/compile-object-load.c (setup_sections, compile_object_load):
7258 Likewise.
7259 * compile/compile.c (compile_to_object): Likewise.
7260
37442ce1
DE
72612015-05-16 Doug Evans <xdje42@gmail.com>
7262
7263 * NEWS: Mention support for unbuffered Guile memory ports.
7264 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7265 (ioscm_lseek_address): Improve overflow calculation.
7266 (gdbscm_memory_port_fill_input): Add assert.
7267 (gdbscm_memory_port_write): Handle unbuffered ports.
7268 Handle large writes identical to Guile's fport_write.
7269 (gdbscm_memory_port_seek): Fix seeking past end check.
7270 (gdbscm_memory_port_close): Handle closing unbuffered port.
7271 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7272 (ioscm_init_memory_port): Handle unbuffered ports.
7273 (ioscm_reinit_memory_port): Ditto.
7274 (ioscm_init_memory_port): Update size calculation.
7275 (gdbscm_open_memory): Support zero sized ports.
7276
d976bace
JK
72772015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7278
7279 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7280 variable compiler warnings.
7281
4d18dfad
JK
72822015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7283
7284 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7285
36de76f9
JK
72862015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7287 Phil Muldoon <pmuldoon@redhat.com>
7288
7289 * NEWS (Changes since GDB 7.9): Add compile print.
7290 * compile/compile-c-support.c (add_code_header, add_code_footer)
7291 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7292 COMPILE_I_PRINT_VALUE_SCOPE.
7293 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7294 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7295 New.
7296 * compile/compile-object-load.c: Include block.h.
7297 (get_out_value_type): New function.
7298 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7299 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7300 OUT_VALUE_TYPE.
7301 * compile/compile-object-load.h (struct compile_module): Add fields
7302 out_value_addr and out_value_type.
7303 * compile/compile-object-run.c: Include valprint.h and compile.h.
7304 (struct do_module_cleanup): Add fields out_value_addr and
7305 out_value_type.
7306 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7307 COMPILE_I_PRINT_VALUE_SCOPE.
7308 (compile_object_run): Propagate out_value_addr and out_value_type.
7309 Pass OUT_VALUE_ADDR.
7310 * compile/compile.c: Include valprint.h.
7311 (compile_print_value, compile_print_command): New functions.
7312 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7313 (_initialize_compile): Update compile code help text. Install
7314 compile_print_command.
7315 * compile/compile.h (compile_print_value): New prototype.
7316 * defs.h (enum compile_i_scope_types): Add
7317 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7318
83d3415e
JK
73192015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7320
7321 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7322 Rely on its parameter count.
7323 (compile_object_load): Replace lookup_minimal_symbol_text by
7324 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7325 return value.
7326 * compile/compile-object-load.h (struct compile_module): Replace
7327 func_addr by func_sym.
7328 * compile/compile-object-run.c: Include block.h.
7329 (compile_object_run): Reset module variable after it is freed. Use
7330 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7331
3a9558c4
JK
73322015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7333
7334 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7335 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7336 (c_compute_program): Call generate_register_struct after typedefs.
7337 * compile/compile-loc2c.c (push, pushf_register_address)
7338 (pushf_register): Cast to GCC_UINTPTR.
7339 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7340 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7341 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7342 * compile/compile.c (_initialize_compile): Enable warnings for
7343 COMPILE_ARGS.
7344
5c65b58a
JK
73452015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7346
7347 * cli/cli-script.c (execute_control_command): Update
7348 eval_compile_command caller.
7349 * compile/compile-object-load.c (compile_object_load): Add parameters
7350 scope and scope_data. Set them.
7351 * compile/compile-object-load.h (struct compile_module): Add fields
7352 scope and scope_data.
7353 (compile_object_load): Add parameters scope and scope_data.
7354 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7355 scope and scope_data.
7356 (compile_object_run): Propagate the fields scope and scope_data.
7357 * compile/compile.c (compile_file_command, compile_code_command):
7358 Update eval_compile_command callers.
7359 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7360 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7361 * defs.h (struct command_line): Add field scope_data.
7362
1c88ceb1
JK
73632015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7364
7365 * printcmd.c (struct format_data): Move it to valprint.h.
7366 (print_command_parse_format, print_value): New functions from ...
7367 (print_command_1): ... here. Call them.
7368 * valprint.h (struct format_data): Move it here from printcmd.c.
7369 (print_command_parse_format, print_value): New declarations.
7370
0b738f27
JK
73712015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7372
7373 * compile/compile-object-load.c (compile_object_load): Add
7374 COMPILE_DEBUG message.
7375
aa715135
JG
73762015-05-15 Jerome Guitton <guitton@adacore.com>
7377
7378 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7379 index to get element instead of enum value.
7380 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7381 of index to compute length, but enum values to compute bounds.
7382 (ada_array_length): Use enum position of index instead of enum value.
7383 (pos_atr): Move position computation to...
7384 (ada_evaluate_subexp): Use enum values to compute bounds.
7385 * gdbtypes.c (discrete_position): ...this new function.
7386 * gdbtypes.h (discrete_position): New function declaration.
7387 * valprint.c (val_print_array_elements): Call discrete_position
7388 to handle array indexed by non-contiguous enumeration types.
7389
931e5bc3
JG
73902015-05-15 Jerome Guitton <guitton@adacore.com>
7391
7392 * ada-lang.c (find_parallel_type_by_descriptive_type):
7393 Go through typedefs during lookup.
7394 (to_fixed_array_type): Add support for non-bit packed arrays
7395 as variable-length fields.
7396
4e63d0ac
PA
73972015-05-15 Pedro Alves <palves@redhat.com>
7398 Simon Marchi <simon.marchi@ericsson.com>
7399
7400 * event-loop.c (gdb_notifier) <next_file_handler,
7401 next_poll_fds_index>: New fields.
7402 (get_next_file_handler_to_handle_and_advance): New function.
7403 (delete_file_handler): If deleting the next file handler to
7404 handle, advance to the next file handler.
7405 (gdb_wait_for_event): Bail early if no event fired. Poll file
7406 handlers in round-robin fashion.
7407
52e48b36
PA
74082015-05-15 Pedro Alves <palves@redhat.com>
7409
7410 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7411 'private' to 'priv'.
7412
2465e12e
PA
74132015-05-15 Pedro Alves <palves@redhat.com>
7414
7415 * nat/linux-nat.h: Include "target/waitstatus.h".
7416
13fa0398
YZ
74172015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7418
7419 * python/py-unwind.c (struct reg_info): Move out of ...
7420 (struct cached_frame_info): ... this scope.
7421 (pending_frame_object_type, unwind_info_object_type): Make extern.
7422
9cd4d857
JB
74232015-05-15 Joel Brobecker <brobecker@adacore.com>
7424
7425 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7426 accumSize is never negative.
7427
e3555239
PP
74282015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7429
7430 * tui/tui-command.c: Remove include of <ctype.h>.
7431 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7432
08a76f8a
MG
74332015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7434
7435 * dwarf2read.c (die_needs_namespace): Return 1 for
7436 DW_TAG_inlined_subroutine.
7437
bd49952b
JK
74382015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7439
7440 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7441 (regcache_cpy_no_passthrough): Make it static, add function comment.
7442 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7443 (regcache_cpy_no_passthrough): Remove declaration.
7444
46c03469
JK
74452015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7446
7447 * gdbthread.h (struct thread_control_state): Update comment for
7448 proceed_to_finish.
7449 * infcall.c (run_inferior_call): Update comment about
7450 proceed_to_finish.
7451 * infcmd.c (get_return_value): Update comment about stop_registers.
7452 (finish_forward): Update comment about proceed_to_finish.
7453 * infrun.c (stop_registers): Remove.
7454 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7455 * infrun.h (stop_registers): Remove.
7456
8a6c4031
JK
74572015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7458
7459 * infcall.c (struct dummy_frame_context_saver)
7460 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7461 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7462 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7463 New.
7464 (call_function_by_hand_dummy): Move discard_cleanups of
7465 inf_status_cleanup before dummy_frame_push. Call
7466 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7467 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7468 * infcall.h (struct dummy_frame_context_saver)
7469 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7470 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7471 New declarations.
7472 * infcmd.c: Include infcall.h.
7473 (get_return_value): Add parameter ctx_saver, use it instead of
7474 stop_registers.
7475 (print_return_value): Add parameter ctx_saver, pass it.
7476 (struct finish_command_continuation_args): Add field ctx_saver.
7477 (finish_command_continuation): Update print_return_value caller.
7478 (finish_command_continuation_free_arg): Free also ctx_saver.
7479 (finish_forward): Call dummy_frame_context_saver_setup.
7480 * inferior.h (struct dummy_frame_context_saver): New declaration.
7481 (get_return_value): Add parameter ctx_saver.
7482 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7483 get_return_value caller.
7484
10989690
JK
74852015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7486
7487 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7488 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7489 (remove_dummy_frame): Process dtor_list.
7490 (pop_dummy_frame): Process dtor_list.
7491 (register_dummy_frame_dtor): Maintain dtor_list.
7492 (find_dummy_frame_dtor): Handle dtor_list.
7493 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7494 Update comments.
7495
5e970501
JK
74962015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7497
7498 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7499 registers_valid.
7500 (compile_object_run): Update do_module_cleanup caller.
7501 * dummy-frame.c: Include infcall.h.
7502 (struct dummy_frame): Update dtor comment.
7503 (remove_dummy_frame): Call dtor.
7504 (pop_dummy_frame): Update dtor caller.
7505 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7506 registers_valid.
7507
1c4eb778
JB
75082015-05-13 Joel Brobecker <brobecker@adacore.com>
7509
7510 GDB 7.9.1 released.
7511
f5f85ab9
JB
75122015-05-13 Joel Brobecker <brobecker@adacore.com>
7513
7514 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7515 Xmethods now being able to specify a result type to that new
7516 sectioin.
7517
242cd84c
PP
75182015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7519
7520 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7521 first before resizing the window.
e3555239 7522 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
7523
75242015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
7525
7526 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7527 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7528 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7529 dummy_dtor parameter.
7530 * infcall.h: Include dummy-frame.h.
7531 (call_function_by_hand_dummy_dtor_ftype): Remove.
7532 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7533 parameter.
7534
ebfd00d2
PP
75352015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7536
7537 PR gdb/17820
7538 * top.c (history_size_setshow_var): Change type to signed.
7539 Initialize to -2. Update documentation.
7540 (set_readline_history_size): Define.
7541 (set_history_size_command): Use it. Remove logic for handling
7542 out-of-range sizes.
7543 (init_history): Use set_readline_history_size(). Test for a
7544 value of -2 instead of 0 when determining whether to set a
7545 default history size.
7546 (init_main): Decode the argument of the "size" command as a
7547 zuinteger_unlimited.
7548
83769d0b
DE
75492015-05-12 Doug Evans <dje@google.com>
7550
7551 * dwarf2read.c (struct file_entry): Tweak comments.
7552 (get_debug_line_section): Tweak comments.
7553
0d71eef5
DB
75542015-05-12 Don Breazeal <donb@codesourcery.com>
7555
7556 * NEWS: Announce fork support in the RSP and support
7557 for fork debugging in extended mode.
7558
cbb8991c
DB
75592015-05-12 Don Breazeal <donb@codesourcery.com>
7560
7561 * remote.c (remote_insert_fork_catchpoint): New function.
7562 (remote_remove_fork_catchpoint): New function.
7563 (remote_insert_vfork_catchpoint): New function.
7564 (remote_remove_vfork_catchpoint): New function.
7565 (pending_fork_parent_callback): New function.
7566 (remove_new_fork_child): New function.
7567 (remote_update_thread_list): Call remote_notif_get_pending_events
7568 and remove_new_fork_child.
7569 (extended_remote_kill): Kill fork child when killing the
7570 parent before follow_fork completes.
7571 (init_extended_remote_ops): Initialize target vector with
7572 new fork catchpoint functions.
7573
c269dbdb
DB
75742015-05-12 Don Breazeal <donb@codesourcery.com>
7575
7576 * remote.c (remove_vfork_event_p): New function.
7577 (remote_follow_fork): Add vfork event type to event checking.
7578 (remote_parse_stop_reply): New stop reasons "vfork" and
7579 "vforkdone" for RSP 'T' Stop Reply Packet.
7580
de0d863e
DB
75812015-05-12 Don Breazeal <donb@codesourcery.com>
7582
7583 * linux-nat.c (linux_nat_ptrace_options): New function.
7584 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7585 Call linux_nat_ptrace_options and use different argument to
7586 linux_enable_event_reporting.
7587 (_initialize_linux_nat): Delete call to
7588 linux_ptrace_set_additional_flags.
c8f6c93c 7589 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
7590 supported_ptrace_options.
7591 (additional_flags): Delete variable.
7592 (linux_check_ptrace_features): Use supported_ptrace_options.
7593 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7594 Likewise, and remove additional_flags check.
7595 (linux_enable_event_reporting): Change 'attached' argument to
7596 'options'. Use supported_ptrace_options.
c8f6c93c 7597 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
7598 supported_ptrace_options.
7599 (linux_ptrace_set_additional_flags): Delete function.
7600 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7601 Delete function prototype.
7602 * remote.c (remote_fork_event_p): New function.
7603 (remote_detach_pid): New function.
7604 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7605 if doing detach-on-fork.
7606 (remote_follow_fork): New function.
7607 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7608 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7609 (init_extended_remote_ops): Initialize to_follow_fork.
7610
89245bc0
DB
76112015-05-12 Don Breazeal <donb@codesourcery.com>
7612
7613 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7614 from static to extern.
7615 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7616 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7617 * PACKET_vfork_event_feature>: New enumeration constants.
7618 (remote_protocol_features): Add table entries for new packets.
7619 (remote_query_supported): Add new feature queries to qSupported
7620 packet.
7621
835205d0
GB
76222015-05-12 Gary Benson <gbenson@redhat.com>
7623
7624 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7625 for fake PIDs as well as real ones.
7626 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7627
4c082a81
SC
76282015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7629
7630 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7631 * python/py-value.c (valpy_reference_value): New function.
7632 (valpy_const_value): Likewise.
7633 (value_object_methods): Add new methods.
7634 * value.c (make_cv_value): New function.
7635 * value.h (make_cv_value): Declare.
7636
afa6c9ab
SL
76372015-05-08 Yao Qi <yao@codesourcery.com>
7638 Sandra Loosemore <sandra@codesourcery.com>
7639
7640 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7641 to 'lh->include_dirs' before accessing to it.
7642 (psymtab_include_file_name): Likewise.
7643 (dwarf_decode_lines_1): Likewise.
7644 (dwarf_decode_lines): Likewise.
7645 (file_file_name): Likewise.
7646
35d54293
SL
76472015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7648
7649 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7650 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7651 (nios2_linux_rt_sigreturn_init): Adjust base address of
7652 register save area.
7653
b73c49b7
SL
76542015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7655
7656 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7657 "trap 31" as the breakpoint instruction on all targets.
7658
dd9f02a0
JK
76592015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7660
7661 * infcmd.c (print_return_value): Remove unused declaration.
7662
6ad395a7
JB
76632015-05-08 Joel Brobecker <brobecker@adacore.com>
7664
7665 * dwarf2read.c (attr_to_dynamic_prop)
7666 <DW_AT_data_member_location>: Use read_type_die isntead of
7667 get_die_type.
7668
8344af1e
JB
76692015-05-08 Joel Brobecker <brobecker@adacore.com>
7670
7671 * ada-lang.c (ada_convert_actual): Add handling of formals
7672 passed inside an aligner type.
7673
80b0912b
JB
76742015-05-08 Joel Brobecker <brobecker@adacore.com>
7675
7676 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7677
df2eb078
SC
76782015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7679
7680 PR python/18291
7681 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7682 Print xmethod matcher status.
7683
2492f0d0
AA
76842015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7685
7686 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7687 register in the regcache when treating the PSWM register, and vice
7688 versa.
7689
1c56a84d
GB
76902015-05-07 Gary Benson <gbenson@redhat.com>
7691
7692 * linux-thread-db.c (struct thread_db_info)
7693 <td_ta_map_id2thr_p>: Remove field.
7694 (try_thread_db_load_1): Remove initialization for the above.
7695
74850322
GB
76962015-05-07 Gary Benson <gbenson@redhat.com>
7697
7698 * linux-thread-db.c (struct thread_db_info)
7699 <td_thr_validate_p>: Remove field.
7700 (try_thread_db_load_1): Remove initialization for the above.
7701
e26efa40
JK
77022015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7703
7704 * compile/compile-object-load.c (compile_object_load): Support
7705 mst_text_gnu_ifunc.
7706
851c9091
JK
77072015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7708
7709 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7710 const. Use new variables for the const compatibility.
7711 (eval_compile_command): Make the cmd_string parameter const.
7712 * compile/compile.h (eval_compile_command): Make the cmd_string
7713 parameter const.
7714
f218b647
JB
77152015-05-06 Joel Brobecker <brobecker@adacore.com>
7716
7717 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7718 comment.
7719 * top.c (deprecated_init_ui_hook): Delete.
7720 (gdb_init): Remove handling of deprecated_init_ui_hook.
7721 * interps.c (clear_interpreter_hooks): Remove handling of
7722 deprecated_init_ui_hook.
7723 * main.c (captured_main): Update comment.
7724
b30a0bc3
JB
77252015-05-06 Joel Brobecker <brobecker@adacore.com>
7726
7727 * solib.c (_initialize_solib): Add "info dll" alias creation.
7728 * windows-nat.c (set_windows_aliases): Delete.
7729 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7730 assignment.
7731 * NEWS: Add news entry about "info dll" now being available
7732 on all platforms.
7733
7c512744
JB
77342015-05-05 Joel Brobecker <brobecker@adacore.com>
7735
7736 * ada-lang.c (value_assign_to_component): Reformat and improve
7737 documentation. Remove all trailing spaces.
7738
0fa7fe50
JB
77392015-05-05 Joel Brobecker <brobecker@adacore.com>
7740
7741 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7742 Stop counting inlined frames as soon as an out-of-line function
7743 is found.
7744
3ea89b92
PMR
77452014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
7746
7747 * dwarf2read.c (inherit_abstract_dies): Skip
7748 DW_TAG_GNU_call_site dies while inheriting children of an
7749 abstract DIE into a scope.
7750 (read_lexical_block_scope): Inherit abstract DIE's for
7751 lexical scopes.
7752
2478d075
JB
77532015-05-05 Joel Brobecker <brobecker@adacore.com>
7754
7755 * ada-valprint.c (val_print_packed_array_elements): Delete
7756 variable "len". Add a type-length check when comparing two
7757 consecutive elements of the array. Use the element's actual
7758 length in call to value_contents_eq.
7759 * ada-lang.c (ada_value_primitive_packed_val): Always return
7760 a value whose type has been resolved.
7761
fc958966
JB
77622015-05-05 Joel Brobecker <brobecker@adacore.com>
7763
7764 * ada-lang.c (ada_value_primitive_packed_val): Recompute
7765 BIT_SIZE and LEN if the size of the resolved type is smaller
7766 than BIT_SIZE * HOST_CHAR_BIT.
7767
ca34b84f
JB
77682015-05-05 Joel Brobecker <brobecker@adacore.com>
7769
7770 * ada-lang.c (ada_value_primitive_packed_val): Use a more
7771 correct address in call to value_at. Adjust call to
7772 value_address accordingly.
7773
62c67f3c
JB
77742015-05-05 Joel Brobecker <brobecker@adacore.com>
7775
7776 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7777 to print it.
7778
c3345124
JB
77792015-05-05 Joel Brobecker <brobecker@adacore.com>
7780
7781 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7782 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7783 pinfo->valaddr.
7784 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7785 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7786 (resolve_dynamic_type_internal): Set pinfo.valaddr.
7787 Add handling of addr_stack->valaddr.
7788 (resolve_dynamic_type): Add "valaddr" parameter.
7789 Set pinfo.valaddr field.
7790 * ada-lang.c (ada_discrete_type_high_bound): Update call to
7791 resolve_dynamic_type.
7792 (ada_discrete_type_low_bound): Likewise.
7793 * findvar.c (default_read_var_value): Likewise.
7794 * value.c (value_from_contents_and_address): Likewise.
7795
75ea5859
JB
77962015-05-05 Joel Brobecker <brobecker@adacore.com>
7797
7798 * gdbtypes.c (resolve_dynamic_array): Use
7799 create_array_type_with_stride instead of create_array_type.
7800
0952813b
DD
78012015-04-30 DJ Delorie <dj@redhat.com>
7802
7803 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7804 rl78_decode_opcode
7805
2ce1cdbf
DE
78062015-04-29 Doug Evans <dje@google.com>
7807
7808 PR python/18285
7809 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7810 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7811 EVAL_AVOID_SIDE_EFFECTS for xmethods.
7812 * extension-priv.h (struct extension_language_ops)
7813 <get_xmethod_result_type>: New member.
7814 * extension.c (get_xmethod_result_type): New function.
7815 * extension.h (get_xmethod_result_type): Declare.
7816 * python/py-xmethods.c (get_result_type_method_name): New static
7817 global.
7818 (py_get_result_type_method_name): Ditto.
7819 (gdbpy_get_xmethod_result_type): New function.
7820 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
7821 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
7822 * python/python.c (python_extension_ops): Add
7823 gdbpy_get_xmethod_result_type.
7824 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
7825 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
7826 xmethods.
7827 (value_x_unop): Ditto.
7828 * value.c (result_type_of_xmethod): New function.
7829 * value.h (result_type_of_xmethod): Declare.
7830
998d2a3e
GB
78312015-04-29 Gary Benson <gbenson@redhat.com>
7832
7833 * solib.c (solib_find_1): Allow fd argument to be NULL.
7834 (exec_file_find): Update comment.
7835 (solib_find): Likewise.
7836 * exec.c (exec_file_locate_attach): Use NULL as fd
7837 argument to exec_file_find to avoid having to close
7838 the opened file.
7839 * infrun.c (follow_exec): Likewise.
7840
34f5f757
DE
78412015-04-28 Doug Evans <dje@google.com>
7842
7843 PR python/18299
7844 * python/lib/gdb/printing.py (register_pretty_printer): Handle
7845 name or __name__ attributes. Handle gdb module as first argument.
7846
69b4374a
DE
78472015-04-28 Doug Evans <dje@google.com>
7848
7849 PR python/18089
7850 * python/py-prettyprint.c (print_children): Verify result of children
7851 iterator. Provide better error message.
7852 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
7853 * python/python.c (gdbpy_print_python_errors_p): New function.
7854
5e7cf078
DE
78552015-04-28 Doug Evans <dje@google.com>
7856
7857 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
7858
59fb7612
SS
78592015-04-28 Sasha Smundak <asmundak@google.com>
7860
7861 * NEWS: Mention gdb.Type.optimized_out method.
7862 * python/py-type.c (typy_optimized_out): New function.
7863
cea6e4f1
JB
78642015-04-28 John Baldwin <jhb@FreeBSD.org>
7865
7866 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7867
24b73f8e
PP
78682015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7869
7870 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
7871 (initialize_utils): Move call of init_page_info() to ...
7872 * top.c (gdb_init): ... here.
7873
a88d0bb3
PP
78742015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7875
7876 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
7877 (tui_sigwinch_handler): Still update our idea of
7878 the terminal's width and height even when TUI is not active.
7879
d6e5e7f7
PP
78802015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7881
7882 * utils.h (set_screen_width_and_height): Declare.
7883 * utils.c (set_screen_width_and_height): Define.
7884 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
7885
ff862be4
GB
78862015-04-28 Gary Benson <gbenson@redhat.com>
7887
7888 * infrun.c (solist.h): New include.
7889 (follow_exec): Use exec_file_find to prefix execd_pathname
7890 with gdb_sysroot.
7891
2eb639cb
PP
78922015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7893
7894 * tui/tui-source.c (tui_set_source_content): Avoid calling
7895 strcpy() when offset is 0.
7896
97206799
PP
78972015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7898
7899 PR gdb/18155
7900 * tui/tui-data.c (tui_free_window): Don't free the locator
7901 window when passed an SRC_WIN or a DISASSEM_WIN.
7902
63ed8182
PP
79032015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7904
7905 * tui/tui-data.h (struct tui_win_element): Forward-declare.
7906 (tui_win_content): Move declaration.
7907 (struct tui_gen_win_info): Give 'content' field the
7908 type tui_win_content.
7909 * tui/tui-data.c (init_content_element): Remove redundant and
7910 erroneous casts.
7911 (tui_add_content_elements): Remove erroneous cast.
7912 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
7913 casts.
7914 (tui_get_begin_asm_address): Likewise.
7915 * tui/tui-regs.c (tui_show_registers): Likewise.
7916 (tui_show_register_group): Likewise.
7917 (tui_display_registers_from): Likewise.
7918 (tui_check_register_values): Likewise.
7919 * tui/tui-source.c (tui_set_source_content): Likewise.
7920 (tui_set_source_content_nil): Likewise.
7921 (tui_source_is_displayed): Likewise.
7922 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7923 (tui_set_locator_fullname): Likewise.
7924 (tui_set_locator_info): Likewise.
7925 (tui_show_frame_info): Likewise.
7926 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
7927 (tui_show_source_line): Likewise.
7928 (tui_horizontal_source_scroll): Likewise.
7929 (tui_update_breakpoint_info): Likewise.
7930 (tui_set_exec_info_content): Likewise.
7931 (tui_show_exec_info_content): Likewise.
7932 (tui_alloc_source_buffer): Likewise.
7933 (tui_line_is_displayed): Likewise.
7934 (tui_addr_is_displayed): Likewise.
7935
d2b41ca0
JB
79362015-04-27 John Baldwin <jhb@FreeBSD.org>
7937
7938 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
7939 event if PL_FLAG_EXEC is set.
7940 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
7941 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
7942 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
7943 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
7944 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
7945
e58e05d6
JB
79462015-04-27 John Baldwin <jhb@FreeBSD.org>
7947
7948 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
7949 [TDP_RFPPWAIT] New variable fbsd_pending_children.
7950 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
7951 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
7952 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
7953 [PT_LWPINFO] (fbsd_wait): New function.
7954 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
7955 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
7956 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
7957 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
7958 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
7959 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
7960 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
7961 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
7962 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
7963 "fbsd_wait".
7964 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
7965 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
7966 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
7967 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
7968 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
7969 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
7970 Set "to_post_attach" to "fbsd_post_attach".
7971
8f60fe01
JB
79722015-04-27 John Baldwin <jhb@FreeBSD.org>
7973
7974 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
7975 (fbsd_find_memory_regions): Mark static.
7976 (fbsd_nat_add_target): New function.
7977 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
7978 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
7979 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
7980 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
7981 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
7982 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
7983
5fbae7d1
GB
79842015-04-27 Gary Benson <gbenson@redhat.com>
7985
7986 * objfiles.c (allocate_objfile): Do not attempt to expand name
7987 if name is a "target:" filename.
7988 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
7989 to load auto-load scripts for objfiles with "target:" filenames.
7990
417c80f9
AA
79912015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
7992
7993 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
7994 (enum s390_vector_abi_kind): New enum.
7995 (struct gdbarch_tdep)<vector_abi>: New field.
7996 (s390_effective_inner_type): Add parameter min_size. Stop
7997 unwrapping if the inner type is smaller than min_size.
7998 (s390_function_arg_float): Adjust call to
7999 s390_effective_inner_type.
8000 (s390_function_arg_vector): New function.
8001 (s390_function_arg_integer): Adjust comment.
8002 (struct s390_arg_state)<vr>: New field.
8003 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8004 arguments according to vector ABI when appropriate.
8005 (s390_push_dummy_call): Initialize the argument state's field
8006 'vr'. Adjust calls to s390_handle_arg.
8007 (s390_register_return_value): Handle vector return values.
8008 (s390_return_value): Apply the "register" return value convention
8009 to a vector when appropriate.
8010 (s390_gdbarch_init): Initialize tdep->vector_abi.
8011 * NEWS: Announce S390 vector ABI support.
8012
4e65a17e
AA
80132015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8014
8015 * s390-linux-tdep.c (s390_return_value_convention): Remove
8016 function. Inline its logic...
8017 (s390_return_value): ...here. Instead, move the handling of the
8018 "register" return value convention...
8019 (s390_register_return_value): ...here. New function.
8020
80f75320
AA
80212015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8022
8023 * s390-linux-tdep.c
8024 (is_float_singleton): Remove function. Move the "singleton" part
8025 of the logic...
8026 (s390_effective_inner_type): ...here. New function.
8027 (is_float_like): Remove function. Inline its logic...
8028 (s390_function_arg_float): ...here.
8029 (is_pointer_like, is_integer_like, is_struct_like): Remove
8030 functions. Inline their logic...
8031 (s390_function_arg_integer): ...here.
8032 (s390_function_arg_pass_by_reference): Remove function.
8033 (extend_simple_arg): Remove function.
8034 (alignment_of): Remove function.
8035 (struct s390_arg_state): New structure.
8036 (s390_handle_arg): New function.
8037 (s390_push_dummy_call): Move parameter placement logic to the new
8038 function s390_handle_arg. Call it for calculating the stack area
8039 sizes first, and again for actually writing the parameters.
8040
6dbc9c04
AA
80412015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8042
8043 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8044 false if the argument is zero.
8045
9e195661
PMR
80462015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8047
8048 * ada-lang.c (template_to_static_fixed_type): Return input type
8049 when it is already fixed. Cache the input type itself when not
8050 creating a static fixed copy. Make it explicit that we never
8051 molestate the input type.
8052 * gdbtypes.c (resolve_dynamic_struct): Reset the
8053 TYPE_TARGET_TYPE field for resolved copies.
8054
460efde1
JB
80552015-04-27 Joel Brobecker <brobecker@adacore.com>
8056
8057 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8058 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8059 (template_to_static_fixed_type): Call ada_check_typedef only
8060 when necessary.
8061
6faec16b
AB
80622015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8063
8064 * cli/cli-dump.c (srec_dump_command): Add internationalization
8065 mark ups.
8066 (ihex_dump_command): Likewise.
8067 (tekhex_dump_command): Likewise.
8068 (binary_dump_command): Likewise.
8069 (binary_append_command): Likewise.
8070
cf75d6c3
AB
80712015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8072
8073 * cli/cli-dump.c (verilog_cmdlist): New variable.
8074 (dump_verilog_memory): New function.
8075 (dump_verilog_value): New function.
8076 (verilog_dump_command): New function.
8077 (_initialize_cli_dump): Add new commands to support verilog dump
8078 format.
8079 * NEWS: Add entry for "dump verilog".
8080
8cd00c59
PMR
80812015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8082
8083 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8084 descriptive type when there is none.
8085
8900d71e
PP
80862015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8087
8088 * tui/tui-win.c (tui_async_resize_screen): Call
8089 rl_resize_terminal().
8090
f16eab5f
JT
80912015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8092
8093 * windows-nat.c (handle_output_debug_string): Don't change
8094 current_event.dwThreadId.
8095 (get_windows_debug_event): Use thread_id, rather than relying on
8096 current_event.dwThreadId being changed.
8097
68ffc902
JT
80982015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8099
8100 * windows-nat.c (windows_continue): Report an error if
8101 ContinueDebugEvent() fails.
8102
23942819
JT
81032015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8104
8105 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8106
e6ad66bd
JT
81072015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8108
8109 * windows-nat.c (get_windows_debug_event): Replace retval with
8110 thread_id throughout. Update stale comment.
8111
776704b9
JT
81122015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8113
8114 * windows-nat.c (get_windows_debug_event): Don't use ternary
8115 conditional operator.
8116
8aae4344
PM
81172015-04-21 Pierre Muller <muller@sourceware.org>
8118
8119 PR pascal/17815
8120 p-exp.y (yylex): Reorganize code to return the matched pattern
8121 for a field of this.
8122
819843c7
GB
81232015-04-21 Gary Benson <gbenson@redhat.com>
8124
8125 * common/fileio.h (fileio_to_host_openflags): New declaration.
8126 * common/fileio.c (fcntl.h): New include.
8127 (fileio_to_host_openflags): New function, factored out from...
8128 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8129 Single use updated.
8130
0bca7f99
KB
81312015-04-21 Kevin Buettner <kevinb@redhat.com>
8132
8133 * rl78-tdep.c (RL78_SP_ADDR): Define.
8134 (opc_reg_to_gdb_regnum): New static function.
8135 (rl78_analyze_prologue): Recognize instructions forming slightly
8136 more interesting prologues.
8137
e771e4be
PMR
81382015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8139
8140 Revert:
8141 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8142 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8143 TYPE_CODE_REF types so that they are not considered as dynamic
8144 depending on the referenced type.
8145 (resolve_dynamic_type_internal): Likewise.
8146
ee715b5a
PMR
81472015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8148
8149 Revert:
8150 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8151 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8152 "top_level" parameter.
8153 (resolve_dynamic_type_internal): Remove the unused "top_level"
8154 parameter. Update call to is_dynamic_type_internal.
8155 (is_dynamic_type): Update call to is_dynamic_type_internal.
8156 (resolve_dynamic_range): Update call to
8157 resolve_dynamic_type_internal.
8158 (resolve_dynamic_union): Likewise.
8159 (resolve_dynamic_struct): Likewise.
8160 (resolve_dynamic_type): Likewise.
8161
e31d7699
GKB
81622015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8163
8164 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8165 xmalloc.
8166
d214e5e7
TS
81672015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8168
110f9112
TS
8169 * reply_mig_hack.awk: Robustify parsing.
8170
d214e5e7
TS
8171 * reply_mig_hack.awk: Don't bother to declare an intermediate
8172 function pointer variable.
8173
8f61baf8
DE
81742015-04-17 Doug Evans <dje@google.com>
8175
8176 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8177 to "exec_displacement" to avoid confusion with inner use of the name.
8178
dbbf180a
YQ
81792015-04-17 Pedro Alves <palves@redhat.com>
8180
8181 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8182 if HW point of TYPE isn't supported.
8183
059790a0
YQ
81842015-04-17 Yao Qi <yao.qi@linaro.org>
8185 Pedro Alves <palves@redhat.com>
8186
8187 * target.h (target_can_use_hardware_watchpoint): Update comments.
8188 Remove trailing ";".
8189
1b6e6f5c
GB
81902015-04-17 Gary Benson <gbenson@redhat.com>
8191
8192 * remote.c (remote_add_inferior): New argument try_open_exec.
8193 If nonzero, attempt to open the inferior's executable file as
8194 the main executable if no main executable is open already.
8195 All callers updated.
8196 * NEWS: Mention that GDB now supports automatic location and
8197 retrieval of executable + files from remote targets.
8198
c78fa86a
GB
81992015-04-17 Gary Benson <gbenson@redhat.com>
8200
8201 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8202 * remote.c (PACKET_qXfer_exec_file): Likewise.
8203 (remote_protocol_features): Register the
8204 "qXfer:exec-file:read" feature.
8205 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8206 (remote_pid_to_exec_file): New function.
8207 (init_remote_ops): Initialize to_pid_to_exec_file.
8208 (_initialize_remote): Register new "set/show remote
8209 pid-to-exec-file-packet" command.
8210 * NEWS: Announce new qXfer:exec-file:read packet.
8211
e0d86d2c
GB
82122015-04-17 Gary Benson <gbenson@redhat.com>
8213
8214 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8215 New declaration.
8216 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8217 New function, factored out from...
8218 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8219
a9a5a3d1
GB
82202015-04-17 Gary Benson <gbenson@redhat.com>
8221
8222 * exec.c (solist.h): New include.
8223 (exec_file_locate_attach): Prefix absolute executable
8224 paths with gdb_sysroot if set.
8225 * NEWS: Mention that executable paths may be prepended
8226 with sysroot.
8227
af1900b0
GB
82282015-04-17 Gary Benson <gbenson@redhat.com>
8229
8230 * solist.h (exec_file_find): New declaration.
8231 * solib.c (solib_find_1): New function, factored out from...
8232 (solib_find): ...here.
8233 (exec_file_find): New function.
8234
a10de604
GB
82352015-04-17 Gary Benson <gbenson@redhat.com>
8236
8237 * gdbcore.h (exec_file_locate_attach): New declaration.
8238 * exec.c (exec_file_locate_attach): New function, factored
8239 out from...
8240 * infcmd.c (attach_command_post_wait): ...here.
8241
92209ddf
MF
82422015-04-17 Mike Frysinger <vapier@gentoo.org>
8243
8244 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8245
8550d3b3
YQ
82462015-04-16 Yao Qi <yao.qi@linaro.org>
8247
8248 * infrun.c (maybe_software_singlestep): Declare.
8249 (displaced_step_fixup): Call maybe_software_singlestep.
8250
30b3dd9d
DE
82512015-04-15 Doug Evans <dje@google.com>
8252
8253 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8254
61d96d7e
DE
82552015-04-15 Doug Evans <dje@google.com>
8256
8257 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8258
40d2f8d6
SM
82592015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8260
8261 * python/lib/gdb/command/unwinders.py: Add parentheses.
8262
6bbbba9b
YQ
82632015-04-15 Yao Qi <yao.qi@linaro.org>
8264
8265 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8266
2bb2dcab
YQ
82672015-04-15 Yao Qi <yao.qi@linaro.org>
8268
8269 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8270
41f071ef
YQ
82712015-04-15 Yao Qi <yao.qi@linaro.org>
8272
8273 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8274 dsc->insn_size instead of 4.
8275
326a5c7e
GB
82762015-04-14 Gary Benson <gbenson@redhat.com>
8277
8278 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8279 * minidebug.c (lzma_stat): Likewise.
8280 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8281 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8282
dd177e81
SS
82832015-04-13 Stan Shebs <stanshebs@google.com>
8284
8285 * MAINTAINERS: Update my email address.
8286
97de3545
JB
82872015-04-13 John Baldwin <jhb@FreeBSD.org>
8288
8289 * amd64-tdep.c (amd64_target_description): New function.
8290 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8291 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8292 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8293 x86 extended save area.
8294 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8295 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8296 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8297 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8298 "amd64fbsd_read_description".
8299 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8300 (amd64fbsd_supply_xstateregset): New function.
8301 (amd64fbsd_collect_xstateregset): New function.
8302 Add "amd64fbsd_xstateregset".
8303 (amd64fbsd_iterate_over_regset_sections): New function.
8304 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8305 "I386_FBSD_XSAVE_XCR0_OFFSET".
8306 Add "iterate_over_regset_sections" gdbarch method.
8307 Add "core_read_description" gdbarch method.
8308 * i386-tdep.c (i386_target_description): New function.
8309 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8310 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8311 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8312 x86 extended save area.
8313 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8314 * i386bsd-nat.h: Export i386bsd_xsave_len.
8315 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8316 (_initialize_i386fbsd_nat): Set "to_read_description" to
8317 "i386fbsd_read_description".
8318 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8319 (i386fbsd_core_read_description): New function.
8320 (i386fbsd_supply_xstateregset): New function.
8321 (i386fbsd_collect_xstateregset): New function.
8322 Add "i386fbsd_xstateregset".
8323 (i386fbsd_iterate_over_regset_sections): New function.
8324 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8325 "I386_FBSD_XSAVE_XCR0_OFFSET".
8326 Add "iterate_over_regset_sections" gdbarch method.
8327 Add "core_read_description" gdbarch method.
8328 * i386fbsd-tdep.h: New file.
8329
4f45d445
JK
83302015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8331
8332 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8333 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8334 conditional.
8335 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8336 and lb.
8337 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8338 va.
8339 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8340 conditional.
8341 * defs.h (xdb_commands): Remove declaration.
8342 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8343 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8344 * infcmd.c (run_no_args_command, go_command): Remove.
8345 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8346 * infrun.c (xdb_handle_command): Remove.
8347 (_initialize_infrun): Remove xdb_commands for lz and z.
8348 * main.c (xdb_commands): Remove variable.
8349 (captured_main): Remove "xdb" from long_options.
8350 (print_gdb_help): Remove --xdb from help.
8351 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8352 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8353 * stack.c (backtrace_full_command, args_plus_locals_info)
8354 (current_frame_command): Remove.
8355 (_initialize_stack): Remove xdb_commands for t, T and l.
8356 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8357 * thread.c (_initialize_thread): Remove xdb_commands condition.
8358 * tui/tui-layout.c (tui_toggle_layout_command)
8359 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8360 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8361 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8362 (tui_scroll_regs_backward_command): Remove.
8363 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8364 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8365 (_initialize_tui_win): Remove xdb_commands for U and w.
8366 * utils.c (pagination_on_command, pagination_off_command): Remove.
8367 (initialize_utils): Remove xdb_commands for am and sm.
8368
cb71640d
PA
83692015-04-10 Pedro Alves <palves@redhat.com>
8370
8371 * infrun.c (displaced_step_fixup): Switch to the event ptid
8372 earlier. If the thread stopped for a watchpoint and the
8373 target/arch has non-continuable watchpoints, cancel the displaced
8374 step.
8375 (resume): Don't start a displaced step if in-line step-over info
8376 is valid.
8377
8f572e5c
PA
83782015-04-10 Pedro Alves <palves@redhat.com>
8379
8380 * infrun.c (displaced_step_in_progress): New function.
8381 (do_target_resume): Advise target to report all signals if
8382 displaced stepping.
8383
8d707a12
PA
83842015-04-10 Pedro Alves <palves@redhat.com>
8385
8386 PR gdb/18216
8387 * infrun.c (process_event_stop_test): Don't assume a step-resume
8388 is set if tp->stepped_breakpoint is true.
8389
ef713951
YQ
83902015-04-10 Yao Qi <yao.qi@linaro.org>
8391
8392 * arm-tdep.c (install_alu_reg): Update comment.
8393 (thumb_copy_alu_reg): Remove local variable rn. Update
8394 debugging message. Use r2 instead of r1 in the modified
8395 instruction.
8396
906d60cf
PA
83972015-04-10 Pedro Alves <palves@redhat.com>
8398
8399 PR gdb/13858
8400 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8401 linux_displaced_step_location as gdbarch_displaced_step_location
8402 hook.
8403 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8404 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8405 * linux-tdep.c (linux_displaced_step_location): New function,
8406 based on ppc_linux_displaced_step_location.
8407 * linux-tdep.h (linux_displaced_step_location): New declaration.
8408 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8409 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8410 Delete.
8411 (ppc_linux_init_abi): Install linux_displaced_step_location as
8412 gdbarch_displaced_step_location hook, even without Cell/B.E..
8413 (_initialize_ppc_linux_tdep): Don't install
8414 ppc_linux_inferior_created as inferior_created observer.
8415 * s390-linux-tdep.c (s390_gdbarch_init): Install
8416 linux_displaced_step_location as gdbarch_displaced_step_location
8417 hook.
8418
7823a941
GB
84192015-04-09 Gary Benson <gbenson@redhat.com>
8420
8421 * common/common-remote-fileio.h: Rename to...
8422 * common/fileio.h: ...this. Update all references.
8423 (remote_fileio_to_fio_error): Rename to...
8424 (host_to_fileio_error): ...this.
8425 (remote_fileio_to_be): Rename to...
8426 (host_to_bigendian): ...this. Update all callers.
8427 (remote_fileio_to_fio_uint): Rename to...
8428 (host_to_fileio_uint): ...this. Update all callers.
8429 (remote_fileio_to_fio_time): Rename to...
8430 (host_to_fileio_time): ...this. Update all callers.
8431 (remote_fileio_to_fio_stat): Rename to...
8432 (host_to_fileio_stat): ...this.
8433 Update all references.
8434 * common/common-remote-fileio.c: Rename to...
8435 * common/fileio.c: ...this. Update all references.
8436 (remote_fileio_to_fio_error): Rename to...
8437 (host_to_fileio_error): ...this. Update all callers.
8438 (remote_fileio_mode_to_target): Rename to...
8439 (fileio_mode_pack): ...this. Update all callers.
8440 (remote_fileio_to_fio_mode): Rename to...
8441 (host_to_fileio_mode): ...this. Update all callers.
8442 (remote_fileio_to_fio_ulong): Rename to...
8443 (host_to_fileio_ulong): ...this. Update all callers.
8444 (remote_fileio_to_fio_stat): Rename to...
8445 (host_to_fileio_stat): ...this. Update all callers.
8446
f2983cc3
AW
84472015-04-09 Andy Wingo <wingo@igalia.com>
8448
8449 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8450 (frame_functions): Bind gdbscm_frame_read_register to
8451 frame-read-register.
8452 * guile/lib/gdb.scm (frame-read-register): Export.
8453
b88bb450
GB
84542015-04-09 Gary Benson <gbenson@redhat.com>
8455
8456 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8457 New declaration.
8458 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8459 New function, factored out the named functions below.
8460 * inf-child.c (gdb/fileio.h): Remove include.
8461 (common-remote-fileio.h): New include.
8462 (inf_child_errno_to_fileio_error): Remove function. Update
8463 all callers to use remote_fileio_to_fio_error.
8464 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8465
2f2680f3
AW
84662015-04-09 Andy Wingo <wingo@igalia.com>
8467
8468 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8469
5a2d4533
L
84702015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8471
8472 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8473 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8474 * configure: Regenerated.
8475
421693b0
PA
84762015-04-09 Pedro Alves <palves@redhat.com>
8477
8478 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8479 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8480 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8481 * gnulib/import/Makefile.am: Update.
8482 * gnulib/import/Makefile.in: Update.
8483 * gnulib/import/m4/gnulib-cache.m4: Update.
8484 * gnulib/import/m4/gnulib-comp.m4: Update.
8485 * gnulib/import/m4/strtok_r.m4: New file.
8486 * gnulib/import/strtok_r.c: New file.
8487
f543dc83
PA
84882015-04-09 Pedro Alves <palves@redhat.com>
8489
8490 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8491 "called too early to check prototype".
8492
6d62641c
SDJ
84932015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8494
8495 PR python/16699
8496 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8497 use a caching mechanism. Adjust comments and code to reflect
8498 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8499 (cmdpy_completer_handle_brkchars): Adjust call to
8500 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8501 (cmdpy_completer): Likewise.
8502
85558555
YQ
85032015-04-08 Yao Qi <yao.qi@linaro.org>
8504
8505 * spu-tdep.c (spu_gdbarch_init): Don't call
8506 set_gdbarch_cannot_step_breakpoint.
8507
d249a14a
SDJ
85082015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8509
8510 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8511
8a06aea7
PA
85122015-04-07 Pedro Alves <palves@redhat.com>
8513
8514 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8515 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8516 (delete_exited_threads): New declaration.
8517 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8518 * linux-nat.c (linux_nat_update_thread_list): New function.
8519 (linux_nat_add_target): Install it.
8520 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8521 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8522 (delete_exited_threads): New function.
8523
d9b67d9f
PA
85242015-04-07 Pedro Alves <pedro@codesourcery.com>
8525
8526 * infrun.c (resume) <displaced stepping debug output>: Get the
8527 leader thread's regcache, not resume_ptid's.
8528
2c26b84f
DE
85292015-04-06 Doug Evans <xdje42@gmail.com>
8530
8531 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8532 VAR_DOMAIN.
8533 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8534 Include symbol domain in debugging output.
8535
7a85168d
PA
85362015-04-06 Pedro Alves <palves@redhat.com>
8537 Bernd Edlinger <bernd.edlinger@hotmail.de>
8538
8539 * configure.ac: Remove the mingw32-specific stub-termcap.o
8540 fallback, and instead fallback to the stub termcap on all hosts.
8541 * configure: Regenerate.
8542 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8543 symbols.
8544
25755e2b
PMR
85452015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8546
8547 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8548 "top_level" parameter.
8549 (resolve_dynamic_type_internal): Remove the unused "top_level"
8550 parameter. Update call to is_dynamic_type_internal.
8551 (is_dynamic_type): Update call to is_dynamic_type_internal.
8552 (resolve_dynamic_range): Update call to
8553 resolve_dynamic_type_internal.
8554 (resolve_dynamic_union): Likewise.
8555 (resolve_dynamic_struct): Likewise.
8556 (resolve_dynamic_type): Likewise.
8557
961f4160
PMR
85582015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8559
8560 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8561 TYPE_CODE_REF types so that they are not considered as dynamic
8562 depending on the referenced type.
8563 (resolve_dynamic_type_internal): Likewise.
8564
39f3de7c
L
85652015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8566
8567 * Makefile.in (top_srcdir): New.
8568 * configure: Regenerated.
8569
599bd15c
GB
85702015-04-02 Gary Benson <gbenson@redhat.com>
8571
8572 * NEWS: Announce the new default sysroot of "target:".
8573
fed040c6
GB
85742015-04-02 Gary Benson <gbenson@redhat.com>
8575
8576 * main.c (captured_main): Set gdb_sysroot to "target:"
8577 if not otherwise set.
8578
64c0b5de
GB
85792015-04-02 Gary Benson <gbenson@redhat.com>
8580
8581 * exec.c (exec_file_attach): Support "target:" filenames.
8582
b57fbfba
GB
85832015-04-02 Gary Benson <gbenson@redhat.com>
8584
8585 * solib.c (solib_find): Strip "target:" prefix from sysroot
8586 if accessing local files.
8587
97a41605
GB
85882015-04-02 Gary Benson <gbenson@redhat.com>
8589
8590 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8591 checks and error messages.
8592
2938e6cf
GB
85932015-04-02 Gary Benson <gbenson@redhat.com>
8594
8595 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8596 (remote_filename_p): Remove declaration.
8597 (remote_bfd_open): Likewise.
8598 * remote.c (remote_bfd_iovec_open): Remove function.
8599 (remote_bfd_iovec_close): Likewise.
8600 (remote_bfd_iovec_pread): Likewise.
8601 (remote_bfd_iovec_stat): Likewise.
8602 (remote_filename_p): Likewise.
8603 (remote_bfd_open): Likewise.
8604 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8605 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8606 (gdb_bfd_open_maybe_remote): Remove function.
8607 (symfile_bfd_open): Replace remote filename check with
8608 target filename check.
8609 (reread_symbols): Use gdb_bfd_open.
8610 * build-id.c (gdbcore.h): New include.
8611 (build_id_to_debug_bfd): Use gdb_bfd_open.
8612 * infcmd.c (attach_command_post_wait): Remove remote filename
8613 check.
8614 * solib.c (solib_find): Replace remote-specific handling with
8615 target-specific handling. Update comments where necessary.
8616 (solib_bfd_open): Replace remote-specific handling with
8617 target-specific handling.
8618 (gdb_sysroot_changed): New function.
8619 (_initialize_solib): Call the above when gdb_sysroot changes.
8620 * windows-tdep.c (gdbcore.h): New include.
8621 (windows_xfer_shared_library): Use gdb_bfd_open.
8622
f08e97fe
GB
86232015-04-02 Gary Benson <gbenson@redhat.com>
8624
8625 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8626 (is_target_filename): New declaration.
8627 (gdb_bfd_has_target_filename): Likewise.
8628 (gdb_bfd_open): Update documentation comment.
8629 * gdb_bfd.c (target.h): New include.
8630 (gdb/fileio.h): Likewise.
8631 (is_target_filename): New function.
8632 (gdb_bfd_has_target_filename): Likewise.
8633 (fileio_errno_to_host): Likewise.
8634 (gdb_bfd_iovec_fileio_open): Likewise.
8635 (gdb_bfd_iovec_fileio_pread): Likewise.
8636 (gdb_bfd_iovec_fileio_close): Likewise.
8637 (gdb_bfd_iovec_fileio_fstat): Likewise.
8638 (gdb_bfd_open): Use target fileio to access paths prefixed
8639 with "target:" where necessary.
8640
4bd7dc42
GB
86412015-04-02 Gary Benson <gbenson@redhat.com>
8642
8643 * target.h (struct target_ops) <to_filesystem_is_local>:
8644 New field.
8645 (target_filesystem_is_local): New macro.
8646 * target-delegates.c: Regenerate.
8647 * remote.c (remote_filesystem_is_local): New function.
8648 (init_remote_ops): Initialize to_filesystem_is_local.
8649
9b15c1f0
GB
86502015-04-02 Gary Benson <gbenson@redhat.com>
8651
8652 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8653 (target_fileio_fstat): New declaration.
8654 * target.c (target_fileio_fstat): New function.
8655 * inf-child.c (inf_child_fileio_fstat): Likewise.
8656 (inf_child_target): Initialize to_fileio_fstat.
8657 * remote.c (init_remote_ops): Likewise.
8658
d11916aa
SS
86592015-04-01 Sasha Smundak <asmundak@google.com>
8660
8661 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8662 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8663 (py-unwind.o): New recipe.
8664 * NEWS: mention Python frame unwinding.
8665 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8666 gdb/unwinder.py and gdb/command/unwinder.py
8667 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8668 list.
8669 (execute_unwinders): New function.
8670 * python/lib/gdb/command/unwinders.py: New file.
8671 * python/lib/gdb/unwinder.py: New file.
8672 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8673 (objfpy_dealloc): Decrement frame_unwinders reference count.
8674 (objfpy_initialize): Create frame_unwinders list.
8675 (objfpy_get_frame_unwinders): New function.
8676 (objfpy_set_frame_unwinders): Ditto.
8677 (objfile_getset): Add frame_unwinders attribute to Objfile.
8678 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8679 (pspy_dealloc): Decrement frame_unwinders reference count.
8680 (pspy_initialize): Create frame_unwinders list.
8681 (pspy_get_frame_unwinders): New function.
8682 (pspy_set_frame_unwinders): Ditto.
8683 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8684 * python/py-unwind.c: New file.
8685 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8686 (objpy_get_frame_unwinders): New prototype.
8687 (gdbpy_initialize_unwind): New prototype.
8688 * python/python.c (gdbpy_apply_type_printers): Call
8689 gdbpy_initialize_unwind.
8690
6b403daa
PA
86912015-04-01 Pedro Alves <palves@redhat.com>
8692
8693 * infrun.c (resume): Check currently_stepping after clearing
8694 stepped_breakpoint, not before.
8695
1176ecec
PA
86962015-04-01 Pedro Alves <palves@redhat.com>
8697
8698 * infrun.c (print_target_wait_results): Print all the ptid
8699 elements.
8700
de1fe8c8
PA
87012015-04-01 Pedro Alves <palves@redhat.com>
8702
8703 * infrun.c (keep_going): Also discard cleanups if inserting
8704 breakpoints fails.
8705
e6f5c25b
PA
87062015-04-01 Pedro Alves <palves@redhat.com>
8707
8708 * infrun.c (wait_for_inferior): Install the
8709 finish_thread_state_cleanup cleanup across the whole function, not
8710 just around handle_inferior_event.
8711
1ac806b8
PA
87122015-04-01 Pedro Alves <palves@redhat.com>
8713
8714 * infrun.c (resume) <step past permanent breakpoint>: Use
8715 do_target_resume.
8716
2ee52aa4
PA
87172015-04-01 Pedro Alves <palves@redhat.com>
8718
8719 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8720
5445da1b
PMR
87212015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8722
8723 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8724
4eec2deb
PA
87252015-04-01 Pedro Alves <palves@redhat.com>
8726
8727 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8728 list if it was marked exited.
8729
afa59b79
L
87302015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8731
8732 * configure: Regenerated.
8733
df8411da
SDJ
87342015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8735 Jan Kratochvil <jan.kratochvil@redhat.com>
8736 Oleg Nesterov <oleg@redhat.com>
8737
8738 PR corefiles/16092
8739 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8740 New enum identifying the various options of the coredump_filter
8741 file.
8742 (struct smaps_vmflags): New struct.
8743 (use_coredump_filter): New variable.
8744 (decode_vmflags): New function.
8745 (mapping_is_anonymous_p): Likewise.
8746 (dump_mapping_p): Likewise.
8747 (linux_find_memory_regions_full): New variables
8748 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8749 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
8750 parsing of its information. Implement memory mapping filtering
8751 based on its contents.
8752 (show_use_coredump_filter): New function.
8753 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8754 * NEWS: Mention the possibility of using the
8755 '/proc/PID/coredump_filter' file when generating a corefile.
8756 Mention new command 'set use-coredump-filter'.
8757
416f679e
SDJ
87582015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8759
8760 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8761 read_memory_unsigned_integer.
8762
711a72d3
L
87632015-03-31 H.J. Lu <hongjiu.lu@intel.com>
8764
8765 * Makefile.in (ZLIB): New.
8766 (ZLIBINC): Likewise.
8767 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8768 (CLIBS): Add $(ZLIB).
8769 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8770 Add -lz to LIBS.
8771 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8772 * top.c (print_gdb_configuration): Remove --with-zlib and
8773 --without-zlib.
8774 * config.in: Regenerated.
8775 * configure: Likewise.
8776
d33279b3
AT
87772015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8778
8779 * NEWS: Mention info os cpus support.
8780 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8781 (struct osdata_type): Add cpus entry, reorder the entries in
8782 alphabetical order.
8783
71b30f27
MK
87842015-03-31 Matthias Klose <doko@ubuntu.com>
8785
8786 * compile/compile.c (compile_to_object): Allow triplets with or
8787 without vendor set.
8788
13ce9222
DE
87892015-03-30 Doug Evans <dje@google.com>
8790
8791 PR c++/18141
8792 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8793 klass in VAR_DOMAIN.
8794
20f796c9
GB
87952015-03-30 Gary Benson <gbenson@redhat.com>
8796
8797 * remote.c (remote_mourn_1): Remove function. Update all callers
8798 to use remote_mourn.
8799 (extended_remote_mourn_1): Remove function. Update all callers
8800 to use extended_remote_mourn.
8801 (extended_remote_attach_1): Remove function. Update all callers
8802 to use extended_remote_attach.
8803
49d45b20
JB
88042015-03-28 James Bowman <james.bowman@ftdichip.com>
8805
8806 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8807 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8808 (ALLDEPFILES): Add ft32-tdep.c.
8809 * configure.tgt: Add FT32 entry.
8810 * ft32-tdep.c: New file, FT32 target-dependent code.
8811 * ft32-tdep.h: New file, FT32 target-dependent code.
8812
1c4ff080
JK
88132015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8814
8815 Revert:
8816 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8817 Code cleanup.
8818 * printcmd.c (print_command_1): Move expr variable scope.
8819
79498702
JB
88202015-03-27 Joel Brobecker <brobecker@adacore.com>
8821
8822 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
8823
ce9c0ca1
AK
88242015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
8825
8826 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
8827 sections.
8828
429e1e81
JB
88292015-03-26 Joel Brobecker <brobecker@adacore.com>
8830
8831 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
8832 exception raised while parsing the probe arguments.
8833 Force parsing to be done using the C language parser.
8834 * expression.h (parse_expression_with_language): Declare.
8835 * parse.c (parse_expression_with_language): New function.
8836
4593441b
JT
88372015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
8838
8839 * MAINTAINERS (Write After Approval): Add "Jon Turney".
8840
ff908ebf
AW
88412015-03-26 Andy Wingo <wingo@igalia.com>
8842
8843 PR symtab/18148
8844 * dwarf2read.c (struct partial_die_info): Add has_const_value
8845 member.
8846 (add_partial_symbol): Don't punt on symbols that have const_value
8847 attributes.
8848 (read_partial_die): Detect DW_AT_const_value.
8849
f30d5c78
JK
88502015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8851
8852 Code cleanup.
8853 * printcmd.c (print_command_1): Move expr variable scope.
8854
8d89f51a
JK
88552015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8856
8857 Code cleanup.
8858 * printcmd.c (validate_format): Make the parameter cmdname const.
8859
0b736949
DB
88602015-03-26 Don Breazeal <donb@codesourcery.com>
8861
8862 * remote.c (_initialize_remote): Update comment.
8863
20d35291
PA
88642015-03-26 Pedro Alves <palves@redhat.com>
8865 Jon TURNEY <jon.turney@dronecode.org.uk>
8866
8867 * coffread.c (coff_symfile_read): When constructing the name of an
8868 import stub symbol from import symbol for amd64, only skip the
8869 char after _imp_ if the target is underscored (like i386) and the
8870 char is indeed the target's leading char.
8871
6a3753b3
PA
88722015-03-25 Pedro Alves <palves@redhat.com>
8873
8874 * target.h <to_async>: Replace 'callback' and 'context' parameters
8875 with boolean 'enable' parameter.
8876 (target_async): Replace CALLBACK and CONTEXT parameters with
8877 boolean ENABLE parameter.
8878 * inf-loop.c (inferior_event_handler): Adjust.
8879 * linux-nat.c (linux_nat_attach, linux_nat_resume)
8880 (linux_nat_resume): Adjust.
8881 (async_client_callback, async_client_context): Delete.
8882 (handle_target_event): Call inferior_event_handler directly.
8883 (linux_nat_async): Replace 'callback' and 'context' parameters
8884 with boolean 'enable' parameter. Adjust. Remove references to
8885 async_client_callback and async_client_context.
8886 (linux_nat_close): Adjust.
8887 * record-btrace.c (record_btrace_async): Replace 'callback' and
8888 'context' parameters with boolean 'enable' parameter. Adjust.
8889 (record_btrace_resume): Adjust.
8890 * record-full.c (record_full_async): Replace 'callback' and
8891 'context' parameters with boolean 'enable' parameter. Adjust.
8892 (record_full_resume, record_full_core_resume): Adjust.
8893 * remote.c (struct remote_state) <async_client_callback,
8894 async_client_context>: Delete fields.
8895 (remote_start_remote, extended_remote_attach_1, remote_resume)
8896 (extended_remote_create_inferior): Adjust.
8897 (remote_async_serial_handler): Call inferior_event_handler
8898 directly.
8899 (remote_async): Replace 'callback' and 'context' parameters with
8900 boolean 'enable' parameter. Adjust.
8901 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
8902 Adjust.
8903 * target-delegates.c: Regenerate.
8904
1c4b552b
GB
89052015-03-25 Gary Benson <gbenson@redhat.com>
8906 Pedro Alves <palves@redhat.com>
8907
8908 * target.c (fileio_ft_t): New typedef, define object vector.
8909 (fileio_fhandles): New static variable.
8910 (is_closed_fileio_fh): New macro.
8911 (lowest_closed_fd): New static variable.
8912 (acquire_fileio_fd): New function.
8913 (release_fileio_fd): Likewise.
8914 (fileio_fd_to_fh): New macro.
8915 (target_fileio_open): Wrap the file descriptor on success.
8916 (target_fileio_pwrite): Updated to use wrapped file descriptor.
8917 (target_fileio_pread): Likewise.
8918 (target_fileio_close): Likewise.
8919
a25d8bf9
PA
89202015-03-24 Pedro Alves <palves@redhat.com>
8921
8922 * thread.c (thread_apply_all_command): Take exited threads into
8923 account.
8924
44a1ee51
PA
89252015-03-24 Pedro Alves <palves@redhat.com>
8926
8927 * infrun.c (resume, proceed): Mention
8928 switch_back_to_stepped_thread, not switch_back_to_stepping.
8929
f3263aa4
PA
89302015-03-24 Pedro Alves <palves@redhat.com>
8931
8932 * infrun.c (user_visible_resume_ptid): Rewrite going from
8933 most-locked to unlocked instead of the opposite. Move comment ...
8934 * infrun.h (user_visible_resume_ptid): ... here.
8935
2bf6fb9d
PA
89362015-03-24 Pedro Alves <palves@redhat.com>
8937
8938 * linux-nat.c (linux_nat_resume): Output debug logs before trying
8939 to resume the event lwp. Use the lwp's ptid instead of the passed
8940 in (maybe wildcard) ptid.
8941 (stop_wait_callback): Tweak debug log output.
8942 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
8943 TRAP_TRACE.
8944 (linux_nat_filter_event): In debug output, distinguish a
8945 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
8946 before trying to resume the lwp.
8947
283a9958
JB
89482015-03-24 Joel Brobecker <brobecker@adacore.com>
8949
8950 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
8951 pointer indirection.
8952 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
8953 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
8954
93a8e227
JB
89552015-03-24 Joel Brobecker <brobecker@adacore.com>
8956
8957 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
8958 Renames DYN_ATTR_DATA_LOCATION.
8959 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
8960 DYN_ATTR_DATA_LOCATION.
8961 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
8962 instead of DYN_ATTR_DATA_LOCATION.
8963
64ce06e4
PA
89642015-03-24 Pedro Alves <palves@redhat.com>
8965
8966 * breakpoint.c (until_break_command): Adjust call to proceed.
8967 * gdbthread.h (struct thread_control_state) <stepping_command>:
8968 New field.
8969 * infcall.c (run_inferior_call): Adjust call to proceed.
8970 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
8971 Adjust calls to proceed.
8972 (set_step_frame): Set the current thread's step_start_function
8973 here.
8974 (step_once): Adjust calls to proceed.
8975 (jump_command, signal_command, until_next_command)
8976 (finish_backward, finish_forward, proceed_after_attach_callback)
8977 (attach_command_post_wait): Adjust calls to proceed.
8978 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
8979 (do_target_resume): New function, factored out from ...
8980 (resume): ... here. Remove 'step' parameter. Instead, check
8981 currently_stepping to determine whether the thread should be
8982 single-stepped.
8983 (proceed): Remove 'step' parameter and don't set the thread's
8984 step_start_function here. Adjust call to 'resume'.
8985 (handle_inferior_event): Adjust calls to 'resume'.
8986 (switch_back_to_stepped_thread): Use do_target_resume instead of
8987 'resume'.
8988 (keep_going): Adjust calls to 'resume'.
8989 * infrun.h (proceed): Remove 'step' parameter.
8990 (resume): Likewise.
8991 * windows-nat.c (do_initial_windows_stuff): Adjust call to
8992 'resume'.
8993 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
8994
856e7dd6
PA
89952015-03-24 Pedro Alves <palves@redhat.com>
8996
8997 * gdbthread.h (struct thread_control_state) <stepping_command>:
8998 New field.
8999 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9000 the thread's stepping_command field.
9001 * infrun.c (resume): Check the thread's stepping_command flag to
9002 determine which threads should be resumed. Rename 'entry_step'
9003 local to user_step.
9004 (clear_proceed_status_thread): Clear 'stepping_command'.
9005 (schedlock_applies): Change parameter type to struct thread_info
9006 pointer. Adjust.
9007 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9008 (switch_back_to_stepped_thread): Adjust calls to
9009 'schedlock_applies'.
9010 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9011
885eeb5b
PA
90122015-03-24 Pedro Alves <palves@redhat.com>
9013
9014 * infrun.c (step_start_function): Delete and ...
9015 * gdbthread.h (struct thread_control_state) <step_start_function>:
9016 ... now a field here.
9017 * infrun.c (clear_proceed_status_thread): Clear the thread's
9018 step_start_function.
9019 (proceed, process_event_stop_test, print_stop_event): Adjust.
9020
3333f03a
PA
90212015-03-24 Pedro Alves <palves@redhat.com>
9022
9023 * infrun.c (proceed): No longer handle negative step.
9024
369f6daa
GB
90252015-03-24 Gary Benson <gbenson@redhat.com>
9026
9027 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9028 (x86_linux_prepare_to_resume): Likewise.
9029 * x86-linux-nat.c (x86_linux_new_thread):
9030 Moved to nat/x86-linux.c.
9031 (x86_linux_prepare_to_resume): Likewise.
9032 * nat/x86-linux.c (x86_linux_new_thread): New function.
9033 (x86_linux_prepare_to_resume): Likewise.
9034
8e5d4070
GB
90352015-03-24 Gary Benson <gbenson@redhat.com>
9036
9037 * nat/x86-linux-dregs.h: New file.
9038 * nat/x86-linux-dregs.c: Likewise.
9039 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9040 (x86-linux-dregs.o): New rule.
9041 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9042 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9043 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9044 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9045 (x86_linux_dr_get): Likewise.
9046 (x86_linux_dr_set): Likewise.
9047 (x86_linux_dr_get_addr): Likewise.
9048 (x86_linux_dr_get_control): Likewise.
9049 (x86_linux_dr_get_status): Likewise.
9050 (update_debug_registers_callback): Likewise.
9051 (x86_linux_dr_set_control): Likewise.
9052 (x86_linux_dr_set_addr): Likewise.
9053 (x86_linux_update_debug_registers): Likewise.
9054
2b95d440
GB
90552015-03-24 Gary Benson <gbenson@redhat.com>
9056
9057 * x86-linux-nat.c (x86_linux_update_debug_registers):
9058 New function, factored out from...
9059 (x86_linux_prepare_to_resume): ...this.
9060
14b0bc68
GB
90612015-03-24 Gary Benson <gbenson@redhat.com>
9062
9063 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9064 (x86_linux_dr_set): Likewise.
9065 (x86_linux_dr_get_addr): Likewise.
9066 (x86_linux_dr_get_control): Likewise.
9067 (x86_linux_dr_get_status): Likewise.
9068 (update_debug_registers_callback): Likewise.
9069 (x86_linux_dr_set_control): Likewise.
9070 (x86_linux_dr_set_addr): Likewise.
9071 (x86_linux_prepare_to_resume): Likewise.
9072 (x86_linux_new_thread): Likewise.
9073
5dfe6ca8
GB
90742015-03-24 Gary Benson <gbenson@redhat.com>
9075
9076 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9077 (x86_linux_new_thread): Rename argument.
9078
4b134ca1
GB
90792015-03-24 Gary Benson <gbenson@redhat.com>
9080
9081 * nat/x86-linux.h: New file.
9082 * nat/x86-linux.c: Likewise.
9083 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9084 (x86-linux.o): New rule.
9085 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9086 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9087 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9088 (lwp_set_arch_private_info): New declaration.
9089 (lwp_arch_private_info): Likewise.
9090 * linux-nat.c (lwp_set_arch_private_info): New function.
9091 (lwp_arch_private_info): Likewise.
9092 * x86-linux-nat.c: Include nat/x86-linux.h.
9093 (arch_lwp_info): Removed structure.
9094 (update_debug_registers_callback):
9095 Use lwp_set_debug_registers_changed.
9096 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9097 and lwp_set_debug_registers_changed.
9098 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9099
cff068da
GB
91002015-03-24 Gary Benson <gbenson@redhat.com>
9101
9102 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9103 (lwp_is_stopped): Likewise.
9104 (lwp_stop_reason): Likewise.
9105 * linux-nat.c (ptid_of_lwp): New function.
9106 (lwp_is_stopped): Likewise.
9107 (lwp_is_stopped_by_watchpoint): Likewise.
9108 * x86-linux-nat.c (update_debug_registers_callback):
9109 Use lwp_is_stopped.
9110 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9111 lwp_stop_reason.
9112
b2f7c7e8
GB
91132015-03-24 Gary Benson <gbenson@redhat.com>
9114
9115 * linux-nat.h (linux_stop_lwp): Move declaration to...
9116 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9117
6d4ee8c6
GB
91182015-03-24 Gary Benson <gbenson@redhat.com>
9119
9120 * linux-nat.h: Include nat/linux-nat.h.
9121 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9122 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9123 (iterate_over_lwps_ftype): New typedef.
9124 (iterate_over_lwps): New declaration.
9125 * linux-nat.h (iterate_over_lwps): Update comment. Use
9126 iterate_over_lwps_ftype. Update callback return value check.
9127
70a0bb6b
GB
91282015-03-24 Gary Benson <gbenson@redhat.com>
9129
9130 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9131 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9132
7b669087
GB
91332015-03-24 Gary Benson <gbenson@redhat.com>
9134
9135 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9136 * linux-nat.c (current_lwp_ptid): New function.
9137 * x86-linux-nat.c: Include nat/linux-nat.h.
9138 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9139 (x86_linux_dr_get_control): Likewise.
9140 (x86_linux_dr_get_status): Likewise.
9141 (x86_linux_dr_set_control): Likewise.
9142 (x86_linux_dr_set_addr): Likewise.
9143
15630549
AT
91442015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9145
9146 PR breakpoints/16466
9147 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9148
8a4506c0
JB
91492015-03-23 Joel Brobecker <brobecker@adacore.com>
9150
9151 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9152 * ser-unix.c (hardwire_setparity): Likewise.
9153
236af5e3
YG
91542015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9155
9156 * NEWS: Mention set/show serial parity command.
9157 * monitor.c (monitor_open): Call serial_setparity.
9158 * remote.c (remote_open_1): Likewise.
9159 * ser-base.c (ser_base_serparity): New function.
9160 * ser-base.h (ser_base_setparity): Add declaration.
9161 * ser-go32.c (dos_ops): Set "setparity" field.
9162 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9163 state.Parity.
9164 (ser_windows_setparity): New function.
9165 (hardwire_ops): Add ser_windows_setparity.
9166 (tty_ops): Add NULL for setparity field.
9167 (pipe_ops): Add ser_base_setparity.
9168 (tcp_ops): Likewise.
9169 * ser-pipe.c (pipe_ops): Likewise.
9170 * ser-tcp.c (tcp_ops): Likewise.
9171 * ser-unix.c (hardwire_setparity): Add declaration.
9172 (hardwire_raw): Don't reset PARENB flag.
9173 (hardwire_setparity): New function.
9174 (hardwire_ops): Add hardwire_setparity.
9175 * serial.c (serial_setparity): New function.
9176 (serial_parity): New global.
9177 (parity_none, parity_odd, parity_even, parity_enums, parity):
9178 New static globals.
9179 (set_parity): New function.
9180 (_initialize_serial): Add set/show serial parity commands.
9181 * serial.h (GDBPARITY_NONE): Define.
9182 (GDBPARITY_ODD): Define.
9183 (GDBPARITY_EVEN): Define.
9184 (serial_setparity) Add declaration.
9185 (struct serial_ops): Add setparity field.
9186 * target.h (serial_parity): Add declaration.
9187
32b40af9
KS
91882015-03-23 Keith Seitz <keiths@redhat.com>
9189
9190 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9191
693dca06
KS
91922015-03-23 Keith Seitz <keiths@redhat.com>
9193
9194 * breakpoint.c (parse_breakpoint_sals): Use
9195 linespec_lexer_lex_keyword to ascertain if the user specified
9196 a NULL location.
9197 * linespec.c [IF_KEYWORD_INDEX]: Define.
9198 (linespec_lexer_lex_keyword): Export.
9199 (struct ls_parser) <keyword_ok>: Remove.
9200 A keyword is only a keyword if not followed by another keyword.
9201 (linespec_lexer_lex_one): Remove keyword_ok handling.
9202 Add comment explaining why the parsing stream is not advanced
9203 when a keyword is seen.
9204 (parse_linespec): Remove parser->keyword_ok.
9205 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9206
7e993ebf
KS
92072015-03-23 Keith Seitz <keiths@redhat.com>
9208
9209 PR gdb/18021
9210 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9211 if we find a static method with DW_AT_vtable_elem_location.
9212
b1a0f704
EZ
92132015-03-21 Eli Zaretskii <eliz@gnu.org>
9214
9215 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9216 before the second loop, to avoid undefined behavior. Reported by
9217 Anton Blanchard <anton@samba.org>.
9218
d9823cbb
KB
92192015-03-20 Keven Boell <keven.boell@intel.com>
9220
9221 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9222 data_location usage to linked list.
9223 (resolve_dynamic_type_internal): Adapt data_location to
9224 linked list.
9225 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9226 (copy_type_recursive, copy_type): Add copy of linked list.
9227 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9228 (struct dynamic_prop_list): New struct.
9229 * dwarf2read.c (set_die_type): Set data_location data.
9230
2e7bf1d7
PA
92312015-03-20 Pedro Alves <palves@redhat.com>
9232
9233 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9234 inner block and make it const.
9235 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9236
7a26bd4d
PA
92372015-03-20 Pedro Alves <palves@redhat.com>
9238
9239 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9240 * breakpoint.h (set_breakpoint_condition): Update declaration.
9241
cd46431b
PA
92422015-03-20 Pedro Alves <palves@redhat.com>
9243
9244 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9245
e28566f7
PA
92462015-03-20 Pedro Alves <palves@redhat.com>
9247
9248 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9249
f6fc92f6
PA
92502015-03-20 Pedro Alves <palves@redhat.com>
9251
9252 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9253
c32ed3ef
PA
92542015-03-20 Pedro Alves <palves@redhat.com>
9255
9256 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9257 (nto_init_solib_absolute_prefix): Likewise.
9258
53e78085
PA
92592015-03-20 Pedro Alves <palves@redhat.com>
9260
9261 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9262 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9263
bc23328c
JK
92642015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9265
9266 * config/djgpp/README: Remove gdb.hp.
9267
e8ffc436
YQ
92682015-03-20 Yao Qi <yao.qi@linaro.org>
9269
9270 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9271 set_gdbarch_cannot_step_breakpoint.
9272
23f238d3
PA
92732015-03-19 Pedro Alves <palves@redhat.com>
9274
9275 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9276 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9277 instead call perror_with_name.
9278 (check_ptrace_stopped_lwp_gone): New function.
9279 (linux_resume_one_lwp): Reimplement as wrapper around
9280 linux_resume_one_lwp_throw that swallows errors if the LWP is
9281 gone.
9282 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9283 swallows errors if the LWP is gone. Use
9284 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9285
eb54c8bf
PA
92862015-03-19 Pedro Alves <palves@redhat.com>
9287
9288 * linux-nat.c (status_callback): Return early if the LWP has no
9289 status pending.
9290
b90fc188
PA
92912015-03-19 Pedro Alves <palves@redhat.com>
9292
9293 * linux-nat.c (select_event_lwp_callback): Update comment to no
9294 longer mention SIGTRAP.
9295
670f82d4
TG
92962015-03-18 Tristan Gingold <gingold@adacore.com>
9297
72f4393d
L
9298 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9299 redirection code to ...
9300 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9301 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9302
464b0089
GB
93032015-03-18 Gary Benson <gbenson@redhat.com>
9304
9305 (remote_protocol_features): Remove the "vFile:fstat" feature.
9306 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9307
f68f11b7
YQ
93082015-03-11 Yao Qi <yao.qi@linaro.org>
9309
9310 PR tdep/18107
9311 * aarch64-linux-tdep.c: Include xml-syscall.h
9312 (aarch64_linux_get_syscall_number): New function.
9313 (aarch64_linux_init_abi): Call
9314 set_gdbarch_get_syscall_number.
9315 * syscalls/aarch64-linux.xml: New file.
9316
393bd0c0
YG
93172015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9318
9319 * ser-base.h (ser_base_setstopbits): Change second argument name
9320 from "rate" to "num".
9321
7f3647e2
GB
93222015-03-17 Gary Benson <gbenson@redhat.com>
9323 Luke Allardyce <lukeallardyce@gmail.com>
9324
9325 PR gdb/18131
9326 * common/common-remote-fileio.h (sys/stat.h): New include.
9327 (stuct stat): Remove forward declaration.
9328
3ce5b6e2
JB
93292015-03-16 John Baldwin <jhb@FreeBSD.org>
9330
9331 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9332 before writing core register notes.
9333
d053f6be
YZ
93342015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9335 Pedro Alves <palves@redhat.com>
9336
9337 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9338 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9339 (tgoto): Wrap with extern "C".
9340
b1a921c8
PA
93412015-03-16 Pedro Alves <palves@redhat.com>
9342 Yuanhui Zhang <asmwarrior@gmail.com>
9343
9344 * stub-termcap.c (tputs): Change prototype.
9345
876d1cd7
YZ
93462015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9347 Pedro Alves <palves@redhat.com>
9348
9349 * windows-nat.c (struct thread_info_struct): Rename to ...
9350 (struct windows_thread_info_struct): ... this.
9351 (thread_info): Rename to ...
9352 (windows_thread_info): ... this.
9353 All users updated.
9354
0800b440
JK
93552015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9356 Pedro Alves <palves@redhat.com>
9357
9358 * NEWS: New Removed targets and native configurations.
9359
93602015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
9361
9362 Remove HPUX.
9363 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9364 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9365 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9366 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9367 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9368 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9369 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9370 hppa-hpux-tdep.c.
9371 * config/ia64/hpux.mh: Remove file.
9372 * config/pa/hpux.mh: Remove file.
9373 * configure: Rebuilt.
9374 * configure.ac (dlgetmodinfo, somread.o): Remove.
9375 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9376 (ia64-*-hpux*): Remove its float format exception.
9377 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9378 * hppa-hpux-nat.c: Remove file.
9379 * hppa-hpux-tdep.c: Remove file.
9380 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9381 Move them here from hppa-tdep.h
9382 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9383 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9384 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9385 Move them to hppa-tdep.c.
9386 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9387 declarations.
9388 * ia64-hpux-nat.c: Remove file.
9389 * ia64-hpux-tdep.c: Remove file.
9390 * ia64-hpux-tdep.h: Remove file.
9391 * inf-ttrace.c: Remove file.
9392 * inf-ttrace.h: Remove file.
9393 * solib-ia64-hpux.c: Remove file.
9394 * solib-ia64-hpux.h: Remove file.
9395 * solib-pa64.c: Remove file.
9396 * solib-pa64.h: Remove file.
9397 * solib-som.c: Remove file.
9398 * solib-som.h: Remove file.
9399 * somread.c: Remove file.
9400
25268153
JB
94012015-03-13 John Baldwin <jhb@FreeBSD.org>
9402
9403 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9404 * config.in: Regenerate.
9405 * configure: Regenerate.
9406 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 9407 define.
25268153
JB
9408 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9409 enumerate memory regions if present.
9410
773eacf5
JB
94112015-03-13 John Baldwin <jhb@FreeBSD.org>
9412
9413 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9414 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9415 expressions.
9416 (i386fbsd_sigtramp_p): Likewise.
9417
01b6bdb0
JB
94182015-03-12 John Baldwin <jhb@FreeBSD.org>
9419
9420 * MAINTAINERS (Write After Approval): Add John Baldwin.
9421
811a659a
GB
94222015-03-12 Gary Benson <gbenson@redhat.com>
9423
9424 * solib.c (_initialize_solib): Make "set/show sysroot" use
9425 add_setshow_optional_filename_cmd so it can be restored to
9426 empty after being set.
9427
10304ef3
SDJ
94282015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9429
9430 * Makefile.in (SFILES): New source break-catch-syscall.c.
9431 (COMMON_OBS): New object break-catch-syscall.o.
9432 * break-catch-syscall.c: New file.
9433 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9434 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9435 (struct syscall_catchpoint): Likewise.
9436 (dtor_catch_syscall): Likewise.
9437 (catch_syscall_inferior_data): Likewise.
9438 (struct catch_syscall_inferior_data): Likewise.
9439 (get_catch_syscall_inferior_data): Likewise.
9440 (catch_syscall_inferior_data_cleanup): Likewise.
9441 (insert_catch_syscall): Likewise.
9442 (remove_catch_syscall): Likewise.
9443 (breakpoint_hit_catch_syscall): Likewise.
9444 (print_it_catch_syscall): Likewise.
9445 (print_one_catch_syscall): Likewise.
9446 (print_mention_catch_syscall): Likewise.
9447 (print_recreate_catch_syscall): Likewise.
9448 (catch_syscall_breakpoint_ops): Likewise.
9449 (syscall_catchpoint_p): Likewise.
9450 (create_syscall_event_catchpoint): Likewise.
9451 (catch_syscall_split_args): Likewise.
9452 (catch_syscall_command_1): Likewise.
9453 (is_syscall_catchpoint_enabled): Likewise.
9454 (catch_syscall_enabled): Likewise.
9455 (catching_syscall_number): Likewise.
9456 (catch_syscall_completer): Likewise.
9457 (clear_syscall_counts): Likewise.
9458 (initialize_breakpoint_ops): Move initialization of syscall
9459 catchpoints to break-catch-syscall.c.
9460 (_initialize_breakpoint): Move code related to syscall catchpoints
9461 to break-catch-syscall.c.
9462
badd37ce
SDJ
94632015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9464
9465 * breakpoint.c (breakpoint_find_if): New function.
9466 * breakpoint.h (breakpoint_find_if): New prototype.
9467
0a93529c
GB
94682015-03-11 Gary Benson <gbenson@redhat.com>
9469
9470 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9471 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9472 (remote_fileio_to_host_ulong): Likewise.
9473 (remote_fileio_to_host_mode): Likewise.
9474 (remote_fileio_to_host_time): Likewise.
9475 (remote_fileio_to_host_stat): Likewise.
9476 * remote.c (PACKET_vFile_fstat): New enum value.
9477 (remote_protocol_features): Register the "vFile:fstat" feature.
9478 (remote_hostio_fstat): New function.
9479 (remote_bfd_iovec_stat): Use the above.
9480 (_initialize_remote): Register new "set/show remote
9481 hostio-fstat-packet" command.
9482 * symfile.c (separate_debug_file_exists): Update comment.
9483 * NEWS: Announce new vFile:fstat packet.
9484
791c0056
GB
94852015-03-11 Gary Benson <gbenson@redhat.com>
9486
9487 * common/common-remote-fileio.h: New file.
9488 * common/common-remote-fileio.c: Likewise.
9489 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9490 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9491 (COMMON_OBS): Add common-remote-fileio.o.
9492 (common-remote-fileio.o): New rule.
9493 * remote-fileio.h (common-remote-fileio.h): New include.
9494 * remote-fileio.c (gdb/fileio.h): Do not include.
9495 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9496 (remote_fileio_to_fio_uint): Likewise.
9497 (remote_fileio_to_fio_time): Likewise.
9498 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9499 (remote_fileio_to_fio_mode): Likewise.
9500 (remote_fileio_to_fio_ulong): Likewise.
9501 (remote_fileio_to_fio_stat): Likewise.
9502
1390d0ef
AW
95032015-03-11 Andy Wingo <wingo@igalia.com>
9504
9505 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9506 we were checking the cached type, not the cached dynamic type.
9507
84a4591a
AW
95082015-03-11 Andy Wingo <wingo@igalia.com>
9509
9510 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9511 other strings, as these are on the GC'd heap, and will be
9512 collected along with the smob.
9513
85642ba0
AW
95142015-03-11 Andy Wingo <wingo@igalia.com>
9515
9516 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9517 (objfile_functions): Bind gdbscm_objfile_progspace to
9518 objfile-progspace.
9519 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9520
92fab5a6
AW
95212015-03-11 Andy Wingo <wingo@igalia.com>
9522
9523 * guile/guile.c (_initialize_guile): Disable automatic
9524 finalization, if Guile offers us that possibility.
9525 * guile/guile.c (call_initialize_gdb_module):
9526 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9527 finalizers in appropriate places.
9528 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9529 scm_set_automatic_finalization_enabled.
9530 * configure: Regenerated.
9531
f054145e
AA
95322015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9533
9534 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9535 SAL, if possible.
9536
18396193
AA
95372015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9538
9539 * s390-linux-nat.c (struct arch_lwp_info): New.
9540 (s390_fix_watch_points): Rename to...
9541 (s390_prepare_to_resume): ...this. Skip the PER info update
9542 unless the watch points have changed.
9543 (s390_refresh_per_info, s390_new_thread): New functions.
9544 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9545 s390_fix_watch_points.
9546 (s390_remove_watchpoint): Likewise.
9547 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9548 Register s390_prepare_to_resume.
9549
9eb1356e
PA
95502015-03-09 Pedro Alves <palves@redhat.com>
9551
9552 Revert:
9553 2015-03-07 Pedro Alves <palves@redhat.com>
9554 * common/gdb_socket.h: New file.
9555 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9556 sys/socket.h.
9557 (net_open): Use union gdb_sockaddr_u.
9558
aac331e4
PA
95592015-03-07 Pedro Alves <palves@redhat.com>
9560
9561 * configure.ac (build_warnings): Move -Wmissing-prototypes
9562 -Wdeclaration-after-statement -Wmissing-parameter-type
9563 -Wold-style-declaration -Wold-style-definition to the C-specific
9564 set.
9565 * configure: Regenerate.
9566
366c75fc
PA
95672015-03-07 Pedro Alves <palves@redhat.com>
9568
9569 * common/gdb_socket.h: New file.
9570 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9571 sys/socket.h.
9572 (net_open): Use union gdb_sockaddr_u.
9573
72df25b2
PA
95742015-03-07 Pedro Alves <palves@redhat.com>
9575
9576 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9577 (exceptions_state_mc_action_iter)
9578 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9579 Don't define.
9580 [__cplusplus] (try_scope_depth): New global.
9581 [__cplusplus] (exception_try_scope_entry)
9582 (exception_try_scope_exit, gdb_exception_sliced_copy)
9583 (exception_rethrow): New functions.
9584 (throw_exception): In C++ mode, throw
9585 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9586 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9587 (throw_it): In C++ mode, use try_scope_depth.
9588 * common/common-exceptions.h [!__cplusplus]
9589 (exceptions_state_mc_action_iter)
9590 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9591 Don't declare.
9592 [__cplusplus] (exception_try_scope_entry)
9593 (exception_try_scope_exit, exception_rethrow): Declare.
9594 [__cplusplus] (struct exception_try_scope): New struct.
9595 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9596 C++ exceptions.
9597 (struct gdb_exception_RETURN_MASK_ALL)
9598 (struct gdb_exception_RETURN_MASK_ERROR)
9599 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9600
284e6217
PA
96012015-03-07 Pedro Alves <palves@redhat.com>
9602
9603 * main.c (handle_command_errors): Remove volatile qualifier from
9604 parameter.
9605
6c63c96a
PA
96062015-03-07 Pedro Alves <palves@redhat.com>
9607
9608 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9609 TRY and CATCH.
9610 * gdbtypes.c (safe_parse_type): Remove empty line.
9611 (types_deeply_equal):
9612 * guile/scm-frame.c (gdbscm_frame_name):
9613 * linux-thread-db.c (find_new_threads_once):
9614 * python/py-breakpoint.c (bppy_get_commands):
9615 * record-btrace.c (record_btrace_insert_breakpoint)
9616 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9617 (record_btrace_start_replaying): Adjust to avoid code between TRY
9618 and CATCH.
9619
492d29ea
PA
96202015-03-07 Pedro Alves <palves@redhat.com>
9621
9622 * common/common-exceptions.c (struct catcher) <exception>: No
9623 longer a pointer to volatile exception. Now an exception value.
9624 <mask>: Delete field.
9625 (exceptions_state_mc_init): Remove all parameters. Adjust.
9626 (exceptions_state_mc): No longer pop the catcher here.
9627 (exceptions_state_mc_catch): New function.
9628 (throw_exception): Adjust.
9629 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9630 all parameters.
9631 (exceptions_state_mc_catch): Declare.
9632 (TRY_CATCH): Rename to ...
9633 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9634 (CATCH, END_CATCH): New.
9635 All callers adjusted.
9636
ece957c8
TT
96372015-03-07 Tom Tromey <tromey@redhat.com>
9638
9639 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9640
7556d4a4
PA
96412015-03-07 Pedro Alves <palves@redhat.com>
9642
9643 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9644 (amd64_epilogue_frame_cache): Normal exception handling code.
9645 * break-catch-throw.c (check_status_exception_catchpoint)
9646 (re_set_exception_catchpoint): Ditto.
9647 * cli/cli-interp.c (safe_execute_command):
9648 * cli/cli-script.c (script_from_file): Ditto.
9649 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9650 Ditto.
9651 * compile/compile-object-run.c (compile_object_run): Ditto.
9652 * cp-abi.c (baseclass_offset): Ditto.
9653 * cp-valprint.c (cp_print_value): Ditto.
9654 * exceptions.c (catch_exceptions_with_msg):
9655 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9656 * frame.c (get_frame_address_in_block_if_available): Ditto.
9657 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9658 (i386_sigtramp_frame_cache): Ditto.
9659 * infcmd.c (post_create_inferior): Ditto.
9660 * linespec.c (parse_linespec, find_linespec_symbols):
9661 * p-valprint.c (pascal_object_print_value): Ditto.
9662 * parse.c (parse_expression_for_completion): Ditto.
9663 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9664 * remote.c (remote_get_noisy_reply): Ditto.
9665 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9666 * solib-svr4.c (solib_svr4_r_map): Ditto.
9667
f873665f 96682015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
9669
9670 * common/common-utils.h (startswith): New inline function.
9671 All places where this logic was used updated to use the above.
9672
68901c4d
PA
96732015-03-05 Pedro Alves <palves@redhat.com>
9674
9675 PR gdb/18002
9676 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9677 after reading the breakpoint's shadow memory.
9678
2dcb2b1a
MK
96792015-03-05 Mark Kettenis <kettenis@gnu.org>
9680
9681 * hppabsd-nat.c: Remove file.
9682 * hppaobsd-nat.c: New file.
9683 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9684 hppaobsd-nat.c.
9685 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9686 hppaobsd-nat.o.
9687
527a273a
PA
96882015-03-04 Pedro Alves <palves@redhat.com>
9689
9690 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9691 (target_decr_pc_after_break): Delete declaration.
9692 * target.c (default_target_decr_pc_after_break)
9693 (target_decr_pc_after_break): Delete.
9694 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9695 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9696 * linux-thread-db.c (check_event): Likewise.
9697 * infrun.c (adjust_pc_after_break): Likewise.
9698 * darwin-nat.c (cancel_breakpoint): Likewise.
9699 * aix-thread.c (aix_thread_wait): Likewise.
9700 * target-delegates.c: Regenerate.
9701
faf09f01
PA
97022015-03-04 Pedro Alves <palves@redhat.com>
9703
9704 * linux-nat.c (save_sigtrap): Check for breakpoints before
9705 checking watchpoints.
9706 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9707 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9708 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9709 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9710 (linux_nat_stopped_by_sw_breakpoint)
9711 (linux_nat_supports_stopped_by_sw_breakpoint)
9712 (linux_nat_stopped_by_hw_breakpoint)
9713 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9714 (linux_nat_wait_1): Don't re-increment the PC if relying on
9715 SIGTRAP's siginfo->si_code.
9716 (linux_nat_add_target): Install new target methods.
9717 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9718 offset if the target already adjusted the PC.
9719 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9720 (GDB_ARCH_TRAP_BRKPT): New.
9721 (TRAP_HWBKPT): Define if not already defined.
9722
f7e6eed5
PA
97232015-03-04 Pedro Alves <palves@redhat.com>
9724
9725 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9726 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9727 Delete field.
9728 <stop_reason>: New field.
9729 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9730 (packet_set_cmd_state): New function.
9731 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9732 features.
9733 (remote_query_supported): If not disabled with the corresponding
9734 "set remote foo-packet" command, report support for the swbreak
9735 and hwbreak features.
9736 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9737 field.
9738 <stop_reason>: New field.
9739 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9740 (remote_wait_as): Adjust.
9741 (remote_stopped_by_sw_breakpoint)
9742 (remote_supports_stopped_by_sw_breakpoint)
9743 (remote_stopped_by_hw_breakpoint)
9744 (remote_supports_stopped_by_hw_breakpoint): New functions.
9745 (remote_stopped_by_watchpoint): New function.
9746 (init_remote_ops): Install them.
9747 (_initialize_remote): Register new "set/show remote
9748 swbreak-feature-packet" and "set/show remote
9749 swbreak-feature-packet" commands.
9750
9e8915c6
PA
97512015-03-04 Pedro Alves <palves@redhat.com>
9752
9753 * btrace.h: Include target/waitstatus.h.
9754 (struct btrace_thread_info) <stop_reason>: New field.
9755 * record-btrace.c (record_btrace_step_thread): Use
9756 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9757 (record_btrace_decr_pc_after_break): Delete.
9758 (record_btrace_stopped_by_sw_breakpoint)
9759 (record_btrace_supports_stopped_by_sw_breakpoint)
9760 (record_btrace_stopped_by_hw_breakpoint)
9761 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9762 (init_record_btrace_ops): Install them.
9763 * record-full.c (record_full_hw_watchpoint): Delete and replace
9764 with ...
9765 (record_full_stop_reason): ... this throughout.
9766 (record_full_exec_insn): Adjust.
9767 (record_full_wait_1): Adjust. No longer re-increment the PC.
9768 (record_full_wait_1): Adjust. Use
9769 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9770 (record_full_stopped_by_watchpoint): Adjust.
9771 (record_full_stopped_by_sw_breakpoint)
9772 (record_full_supports_stopped_by_sw_breakpoint)
9773 (record_full_supports_stopped_by_sw_breakpoint)
9774 (record_full_stopped_by_hw_breakpoint)
9775 (record_full_supports_stopped_by_hw_breakpoint): New functions.
9776 (init_record_full_ops, init_record_full_core_ops): Install them.
9777 * record.c (record_check_stopped_by_breakpoint): New function.
9778 * record.h: Include target/waitstatus.h.
9779 (record_check_stopped_by_breakpoint): New declaration.
9780
15c66dd6
PA
97812015-03-04 Pedro Alves <palves@redhat.com>
9782
9783 enum lwp_stop_reason -> enum target_stop_reason
9784 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9785 (linux_nat_stopped_by_watchpoint, status_callback)
9786 (linux_nat_wait_1): Adjust.
9787 * linux-nat.h (enum lwp_stop_reason): Delete.
9788 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9789 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9790 * target/waitstatus.h (enum target_stop_reason): New.
9791
1cf4d951
PA
97922015-03-04 Pedro Alves <palves@redhat.com>
9793
9794 * breakpoint.c (need_moribund_for_location_type): New function.
9795 (bpstat_stop_status): Don't skipping checking moribund locations
9796 of breakpoint types which the target tell caused a stop.
9797 (program_breakpoint_here_p): New function, factored out from ...
9798 (bp_loc_is_permanent): ... this.
9799 (update_global_location_list): Don't create a moribund location if
9800 the target supports reporting stops of the type of the removed
9801 breakpoint.
9802 * breakpoint.h (program_breakpoint_here_p): New declaration.
9803 * infrun.c (adjust_pc_after_break): Return early if the target has
9804 already adjusted the PC. Add comments.
9805 (handle_signal_stop): If nothing explains a signal, and the target
9806 tells us the stop was caused by a software breakpoint, check if
9807 there's a breakpoint instruction in the memory. If so, adjust the
9808 PC before presenting the stop to the user. Otherwise, ignore the
9809 trap. If nothing explains a signal, and the target tells us the
9810 stop was caused by a hardware breakpoint, ignore the trap.
9811 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9812 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9813 to_supports_stopped_by_hw_breakpoint>: New fields.
9814 (target_stopped_by_sw_breakpoint)
9815 (target_supports_stopped_by_sw_breakpoint)
9816 (target_stopped_by_hw_breakpoint)
9817 (target_supports_stopped_by_hw_breakpoint): Define.
9818 * target-delegates.c: Regenerate.
9819
79639e11
PA
98202015-03-04 Pedro Alves <palves@redhat.com>
9821
9822 * infrun.c (follow_fork_inferior): Use the whole of the
9823 inferior_ptid and pending_follow.related_pid ptids instead of
9824 building ptids from the process components. Adjust verbose output
9825 to use target_pid_to_str.
9826 * linux-nat.c (linux_child_follow_fork): Use the whole of the
9827 inferior_ptid and pending_follow.related_pid ptids instead of
9828 building ptids from the process components.
9829
e85e8e5e
MK
98302015-03-04 Mark Kettenis <kettenis@gnu.org>
9831
9832 * inf-ptrace.c [PT_GET_PROCESS_STATE]
9833 (inf_ptrace_insert_fork_catchpoint): New function.
9834 (inf_ptrace_remove_fork_catchpoint): New function.
9835 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
9836
87de11c0
AA
98372015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9838
9839 * s390-linux-tdep.c (s390_register_name): Return empty string
9840 instead of NULL for registers that shouldn't be visible.
9841
d851a69a
AA
98422015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9843
9844 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
9845 XML file for 64-bit targets.
9846
b072f6c1
SM
98472015-03-03 Simon Marchi <simon.marchi@ericsson.com>
9848
9849 * target.h (find_default_create_inferior): Remove declaration.
9850 (find_default_attach): Likewise.
9851
c1593e4f
PA
98522015-03-03 Pedro Alves <palves@redhat.com>
9853
9854 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
9855 Use ptid_get_pid to get the overall process id when resuming all
9856 threads.
9857
90ad5e1d
PA
98582015-03-03 Pedro Alves <palves@redhat.com>
9859
9860 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
9861 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
9862 * inf-ptrace.c (get_ptrace_pid): New function.
9863 (inf_ptrace_resume): Use it.
9864 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
9865 to the lower layer.
9866
d68e53f4
MM
98672015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9868
9869 * nat/linux-btrace.c: Include sys/utsname.h.
9870 (linux_determine_kernel_ptr_bits): New.
9871 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
9872 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
9873 ptr_bits.
9874
986b6601
MM
98752015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9876
9877 * btrace.c (ftrace_update_function): Treat return as tailcall for
9878 "_dl_runtime_resolve".
9879
ce0dfbea
MM
98802015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9881
9882 * btrace.h (btrace_function) <lbegin, lend>: Remove.
9883 * btrace.c (ftrace_debug): Do not print the line range.
9884 (ftrace_skip_file, ftrace_update_lines): Remove.
9885 (ftrace_new_function): Remove lbegin and lend initialization.
9886 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
9887 * record-btrace.c (btrace_compute_src_line_range): New.
9888 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
9889
95e50b27
PA
98902015-03-02 Pedro Alves <palves@redhat.com>
9891
9892 * infrun.c (follow_exec): Delete all threads of the process except
9893 the event thread. Extended comments.
9894
00e474c2
JB
98952015-03-02 Joel Brobecker <brobecker@adacore.com>
9896
9897 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
9898
cc7039d3
JB
98992015-03-02 Joel Brobecker <brobecker@adacore.com>
9900
9901 * utils.h: Remove <stdbool.h> #include.
9902 (producer_is_gcc): Change return type to "int".
9903 * utils.c (producer_is_gcc): Change return type to int.
9904 Return 1 instead of true, and 0 instead of false.
9905 Adjust function documentation accordingly.
9906
550bdf96
AA
99072015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9908
9909 * s390-linux-nat.c (have_regset_vxrs): New static variable.
9910 (s390_linux_fetch_inferior_registers): Handle vector registers, if
9911 present.
9912 (s390_linux_store_inferior_registers): Likewise.
9913 (s390_get_hwcap): Remove function. Embed its logic...
9914 (s390_read_description): ...here. Yield a target description with
9915 vector registers if applicable.
9916 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
9917 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
9918 "features/s390x-tevx-linux64.c".
9919 (struct gdbarch_tdep) <v0_full_regnum>: New field.
9920 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
9921 for "GNU/Linux-specific registers".
9922 (s390_dwarf_reg_r0l): New enum value.
9923 (s390_dwarf_reg_to_regnum): Support vector registers.
9924 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
9925 of GPR lower halves.
9926 (regnum_is_vxr_full): New function.
9927 (s390_register_name): New function.
9928 (s390_pseudo_register_name): Handle v0-v15, which are composed of
9929 f0-f15 and v0l-v15l.
9930 (s390_pseudo_register_type): Likewise.
9931 (s390_pseudo_register_read): Likewise.
9932 (s390_pseudo_register_write): Likewise.
9933 (s390_value_from_register): Account for the fact that values are
9934 placed left-justified in vector registers.
9935 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
9936 the vector reggroup and omit them from the general reggroup.
9937 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
9938 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
9939 (s390_iterate_over_regset_sections): Add iterations for the two
9940 new vector regsets.
9941 (s390_core_read_description): Yield a target description with
9942 vector registers if applicable.
9943 (s390_gdbarch_init): Handle target descriptions with vector
9944 registers. Add "register_name" gdbarch method.
9945 (_initialize_s390_tdep): Call new tdesc initialization functions.
9946 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
9947 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
9948 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
9949 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
9950 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
9951 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
9952 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
9953 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
9954 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
9955 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
9956 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
9957 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
9958 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
9959 (S390_NUM_REGS): Adjust value.
9960 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
9961 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9962 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
9963 * NEWS: Announce S/390 vector register support.
9964
446899e4
AA
99652015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9966
9967 * features/s390-tevx-linux64.xml: New file.
9968 * features/s390-vx-linux64.xml: New file.
9969 * features/s390-vx.xml: New file.
9970 * features/s390x-tevx-linux64.xml: New file.
9971 * features/s390x-vx-linux64.xml: New file.
9972 * features/Makefile (WHICH): Add s390-vx-linux64,
9973 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
9974 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
9975 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
9976 macros.
9977 * features/s390-tevx-linux64.c: New generated file.
9978 * features/s390-vx-linux64.c: Likewise.
9979 * features/s390x-tevx-linux64.c: Likewise.
9980 * features/s390x-vx-linux64.c: Likewise.
9981 * regformats/s390-tevx-linux64.dat: Likewise.
9982 * regformats/s390-vx-linux64.dat: Likewise.
9983 * regformats/s390x-tevx-linux64.dat: Likewise.
9984 * regformats/s390x-vx-linux64.dat: Likewise.
9985
b7236fbe
DE
99862015-02-28 Doug Evans <xdje42@gmail.com>
9987
9988 * symtab.h (struct symtab) <next>: Fix comment.
9989
02e62830
SM
99902015-02-27 Simon Marchi <simon.marchi@ericsson.com>
9991
9992 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
9993 python_GdbMethods.
9994
bf36a1e7
PA
99952015-02-27 Pedro Alves <palves@redhat.com>
9996
9997 * dtrace-probe.c (dtrace_probe_ops): Make extern.
9998
ad6aff7d
PA
99992015-02-27 Pedro Alves <palves@redhat.com>
10000
10001 * common/common-exceptions.h (exception_none): Declare.
10002 * common/common-exceptions.c (exception_none): Moved from
10003 exceptions.c.
10004 (exceptions_state_mc_init): Use exception_none.
10005 * exceptions.c (exception_none): Move to
10006 common/common-exceptions.c.
10007 * exceptions.h (exception_none): Move to
10008 common/common-exceptions.h.
10009
97c18565
PA
100102015-02-27 Pedro Alves <palves@redhat.com>
10011
10012 * main.c (catch_command_errors, catch_command_errors_const):
10013 Remove 'mask' argument. Adjust.
10014 (captured_main): Adjust callers.
10015
e992c591
PA
100162015-02-27 Pedro Alves <palves@redhat.com>
10017
10018 * python/python-internal.h: Include "extension-priv.h".
10019
64166036
PA
100202015-02-27 Pedro Alves <palves@redhat.com>
10021
10022 * breakpoint.h (enum print_stop_action): Move further up in the
10023 file.
10024
8a526fa6
PA
100252015-02-27 Pedro Alves <palves@redhat.com>
10026
10027 * gdbarch.sh: Include regcache.h.
10028 * gdbarch.h: Regenerate.
10029
0fa9c223
PA
100302015-02-27 Pedro Alves <palves@redhat.com>
10031
10032 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10033 Remove duplicate const.
10034 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10035 duplicate const.
10036
7cf99fb1
PA
100372015-02-27 Pedro Alves <palves@redhat.com>
10038
10039 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10040 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10041 * features/feature_to_c.sh: Tag the generated xml_builtin array
10042 with extern const in C++ mode.
10043
1424c16e
TT
100442015-02-27 Tom Tromey <tromey@redhat.com>
10045
10046 * minidebug.c (struct lzma_stream): Rename to ...
10047 (struct gdb_lzma_stream): ... this.
10048 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10049
10367c7c
PA
100502015-02-27 Pedro Alves <palves@redhat.com>
10051
10052 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10053 function.
10054 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10055 (mi_cmd_stack_list_variables): Use it.
10056
4180215b
PA
100572015-02-27 Pedro Alves <palves@redhat.com>
10058
10059 * x86-linux-nat.c (u_debugreg_offset): New function.
10060 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10061
2f56f7c3
PA
100622015-02-27 Pedro Alves <palves@redhat.com>
10063
10064 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10065 declaration.
10066 Include break-common.h.
10067
570dc176
TT
100682015-02-27 Tom Tromey <tromey@redhat.com>
10069 Pedro Alves <palves@redhat.com>
10070
10071 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10072 local used to iterate over enums.
10073 * completer.c (signal_completer): Likewise.
10074 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10075 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10076 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10077 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10078 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10079 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10080 * tui-wingeneral.c (tui_refresh_all): Likewise.
10081
68c14faa
PA
100822015-02-27 Pedro Alves <palves@redhat.com>
10083
10084 * target.h: Include "infrun.h".
10085
749bab01
PA
100862015-02-27 Pedro Alves <palves@redhat.com>
10087
10088 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10089
3c14e5a3
PA
100902015-02-27 Pedro Alves <palves@redhat.com>
10091
10092 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10093 (IPA_SYM): Use it.
10094 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10095
56000a98
PA
100962015-02-27 Pedro Alves <palves@redhat.com>
10097
10098 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10099 cli_mld_erase_entire_line, and make it extern "C".
10100 * common/common-defs.h (EXTERN_C): New.
10101 * completer.c (_rl_completion_prefix_display_length)
10102 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10103 out of gdb_display_match_list_1.
10104 (_rl_qsort_string_compare): Move declaration out of
10105 gdb_display_match_list_1, and make it extern "C".
10106 * defs.h (re_comp): Use EXTERN_C.
10107 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10108 and make it extern "C".
10109 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10110 and make it extern "C".
10111 (main): Move declaration out of maintenance_set_profile_cmd.
10112 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10113 EXTERN_C.
10114
bcabf420
PA
101152015-02-27 Pedro Alves <palves@redhat.com>
10116
10117 * python/python.c (GdbMethods): Rename to ...
10118 (python_GdbMethods): ... this and make extern.
10119 (GdbModuleDef): Rename to ...
10120 (python_GdbModuleDef): ... this and make extern.
10121
928dbe07
PA
101222015-02-27 Pedro Alves <palves@redhat.com>
10123
10124 * record-btrace.c (set_record_btrace_cmdlist)
10125 (show_record_btrace_cmdlist): Remove redefinitions.
10126
52059ffd
TT
101272015-02-27 Tom Tromey <tromey@redhat.com>
10128 Pedro Alves <palves@redhat.com>
10129
10130 * dwarf2-frame.c (enum cfa_how_kind, struct
10131 dwarf2_frame_state_reg_info): Move out of struct
10132 dwarf2_frame_state.
10133 * dwarf2read.c (struct tu_stats): Move out of struct
10134 dwarf2_per_objfile.
10135 (struct file_entry): Move out of struct line_header.
10136 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10137 typedef_field_list): Move out of struct field_info.
10138 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10139 Move out of struct dynamic_prop.
10140 (union type_owner, union field_location, struct field, struct
10141 range_bounds, union type_specific): Move out of struct main_type.
10142 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10143 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10144 (struct call_site_target, union call_site_parameter_u, struct
10145 call_site_parameter): Move out of struct call_site.
10146 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10147 m32c_prologue.
10148 (enum srcdest_kind): Move out of struct srcdest.
10149 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10150 * prologue-value.h (enum prologue_value_kind): Move out of struct
10151 prologue_value.
10152 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10153 gdbarch_tdep.
10154 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10155 out of struct field_info.
10156 * symfile.h (struct other_sections): Move out of struct
10157 section_addr_info.
10158 * symtab.c (struct symbol_cache_slot): Move out struct
10159 block_symbol_cache.
10160 * target-descriptions.c (enum tdesc_type_kind): Move out of
10161 typedef struct tdesc_type.
10162 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10163 struct tui_line_or_address.
10164 * value.c (enum internalvar_kind, union internalvar_data): Move
10165 out of struct internalvar.
10166 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10167 gdbarch_tdep.
10168
fe978cb0
PA
101692015-02-27 Tom Tromey <tromey@redhat.com>
10170 Pedro Alves <palves@redhat.com>
10171
10172 Rename symbols whose names are reserved C++ keywords throughout.
10173
3bc3d82a
PA
101742015-02-27 Pedro Alves <palves@redhat.com>
10175
10176 * Makefile.in (COMPILER): New, get it from autoconf.
10177 (COMPILE.pre, CC_LD): Use COMPILER.
10178 (CXX): Get from autoconf instead.
10179 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10180 * acinclude.m4: Include build-with-cxx.m4.
10181 * build-with-cxx.m4: New file.
10182 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10183 Disable -Werror by default if building in C++ mode.
10184 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10185 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10186 Run supported-warning-flags tests with the C++ compiler.
10187 Save/restore CXXFLAGS too.
10188 * configure: Regenerate.
10189
07697489
PA
101902015-02-27 Pedro Alves <palves@redhat.com>
10191
10192 * libiberty.m4: New file.
10193 * acinclude.m4: Include libiberty.m4.
10194 * configure.ac: Call libiberty_INIT.
10195 * config.in, configure: Regenerate.
10196
60abeae4
AA
101972015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10198
10199 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10200 31-bit targets, but 64-bit targets as well.
10201 (s390_gnu_triplet_regexp): New function.
10202 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10203 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10204 method.
10205
f44466fb 102062015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10207
10208 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10209 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10210 from CONTEXT_DEBUGGER.
10211
0def5aaa
DE
102122015-02-26 Doug Evans <dje@google.com>
10213
10214 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10215 CHECK_TYPEDEF.
10216 (set_type_vptr_fieldno): Ditto.
10217 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10218 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10219
77b64a49
PA
102202015-02-26 Pedro Alves <palves@redhat.com>
10221
10222 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10223 * complaints.c (vcomplaint): Pass argument FMT directly to
10224 printf-like functions instead of complaint->fmt.
10225 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10226 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10227 * compile/compile-loc2c.c (pushf, unary, binary): Add
10228 ATTRIBUTE_PRINTF.
10229 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10230 to pushf.
10231 (BINARY): Pass string literal as format string to 'binary'.
10232 * compile/compile-object-load.c (link_callbacks_einfo): Add
10233 ATTRIBUTE_PRINTF.
10234 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10235
532f44ed
PA
102362015-02-26 Pedro Alves <palves@redhat.com>
10237
10238 * windows-termcap.c: Rename to ...
10239 * stub-termcap.c: ... this. Adjust header line.
10240 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10241 windows-termcap.c.
10242 * configure: Regenerate.
10243 * configure.ac: Refer to stub-termcap.o instead of
10244 windows-termcap.o.
10245 * gdb_curses.h: Mention stub-termcap.c instead of
10246 windows-termcap.c.
10247
081a1c2c
JK
102482015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10249
10250 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10251 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10252
2f41223f
AT
102532015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10254
10255 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10256
80c57053
JK
102572015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10258
10259 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10260 bfd_canonicalize_symtab.
10261
cf424aef
JB
102622015-02-25 John Baldwin <jhb@FreeBSD.org>
10263
10264 * amd64fbsd-nat.c: Include sys/user.h.
10265 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10266 instead of KERN_PS_STRINGS to locate the signal trampoline.
10267 * i386fbsd-nat.c: Include sys/user.h.
10268 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10269 instead of KERN_PS_STRINGS to locate the signal trampoline.
10270 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10271 (amd64fbsd_sigtramp_p): New.
10272 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10273 longer set default values.
10274 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10275 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10276 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10277 (i386fbsd_freebsd4_sigtramp_start)
10278 (i386fbsd_freebsd4_sigtramp_middle)
10279 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10280 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10281 (i386fbsd_sigtramp_p): New.
10282 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10283 longer set default values.
10284 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10285
c5cb74ee
JB
102862015-02-25 John Baldwin <jhb@freebsd.org>
10287
10288 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10289 get_frame_register instead of frame_unwind_register_unsigned.
10290
17487d85
JK
102912015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10292
10293 PR build/18033
10294 * compile/compile-c-support.c (c_compute_program): Change // comment.
10295 * compile/compile-object-load.c (setup_sections): Change // comment.
10296
9357a9e6
JB
102972015-02-26 Joel Brobecker <brobecker@adacore.com>
10298
10299 PR build/18033:
10300 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10301
1f10ba14
PA
103022015-02-23 Pedro Alves <palves@redhat.com>
10303
10304 * remote.c (skip_to_semicolon): New function.
10305 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10306 special case the stop reasons that look like hex numbers
10307 upfront. Instead handle real register numbers after matching
10308 all the known stop reasons.
10309
96553a0c
DE
103102015-02-21 Doug Evans <dje@google.com>
10311
10312 PR c++/17976, symtab/17821
10313 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10314 is_in_anonymous. All callers updated.
10315 (find_symbol_in_baseclass): Ditto.
10316 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10317 for symbols in an anonymous namespace.
10318 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10319 DW_AT_name directly.
10320 (dwarf2_name): Convert missing namespace name to
10321 CP_ANONYMOUS_NAMESPACE_STR.
10322
2db9a427
PA
103232015-02-20 Pedro Alves <palves@redhat.com>
10324
10325 * linux-nat.c (linux_handle_extended_wait): Call
10326 thread_db_notice_clone whenever a new clone LWP is detected.
10327 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10328 functions.
10329 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10330 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10331 (linux_unstop_all_lwps): Declare.
10332 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10333 (thread_get_info_callback): Delete.
10334 (thread_from_lwp): Use td_thr_get_info and record_thread.
10335 (thread_db_attach_lwp): Delete.
10336 (thread_db_notice_clone): New function.
10337 (try_thread_db_load_1): If /proc is mounted and shows the
10338 process'es task list, walk over all LWPs and call thread_from_lwp
10339 instead of relying on td_ta_thr_iter.
10340 (attach_thread): Don't call check_thread_signals here. Split the
10341 tail part of the function (which adds the thread to the core GDB
10342 thread list) to ...
10343 (record_thread): ... this function. Call check_thread_signals
10344 here.
10345 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10346 call thread_from_lwp.
10347 (thread_db_update_thread_list): Rename to ...
10348 (thread_db_update_thread_list_org): ... this.
10349 (thread_db_update_thread_list): New function.
10350 (thread_db_find_thread_from_tid): Delete.
10351 (thread_db_get_ada_task_ptid): Simplify.
10352 * nat/linux-procfs.c: Include <sys/stat.h>.
10353 (linux_proc_task_list_dir_exists): New function.
10354 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10355
3b27ef47
PA
103562015-02-20 Pedro Alves <palves@redhat.com>
10357
10358 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10359 main LWP. Handle the case of waitpid returning 0 if we're already
10360 attached to the LWP. Don't set the LWP's last_resume_kind to
10361 resume_stop if we already knew about the LWP.
10362 (linux_nat_filter_event): Add debug logs.
10363
1cc28231
PA
103642015-02-20 Pedro Alves <palves@redhat.com>
10365
10366 * target.h (forward_target_decr_pc_after_break): Delete
10367 declaration.
10368
5c5019c2
PA
103692015-02-20 Pedro Alves <palves@redhat.com>
10370
10371 PR threads/18006
10372 * linux-thread-db.c (thread_get_info_callback): Return early if
10373 the thread's lwp id is -1.
10374
f3978e91
JB
103752015-02-20 Joel Brobecker <brobecker@adacore.com>
10376
10377 GDB 7.9 released.
10378
ffdf88ec
SE
103792015-02-19 Steve Ellcey <sellcey@imgtec.com>
10380
10381 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10382 (dtrace_get_probes) Change type of variable 'dof'.
10383
c9587f88
AT
103842015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10385
10386 PR breakpoints/16812
10387 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10388 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10389 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10390
53cf2ee0
DT
103912015-02-19 David Taylor <dtaylor@emc.com>
10392
10393 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10394
acfe0940
PP
103952015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10396
10397 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10398 function.
10399 (tui_putc): Don't call tui_handle_resize_during_io.
10400 (tui_getc): Likewise.
10401 (tui_mld_getc): Likewise.
10402 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10403 (tui_sigwinch_token): New static variable.
10404 (tui_initialize_win): Adjust documentation. Set
10405 tui_sigwinch_token.
10406 (tui_async_resize_screen): New asynchronous callback.
10407 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10408 invoke tui_async_resize_screen.
10409
f6a88844
JM
104102015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10411
10412 * configure: Regenerated.
10413 * configure.ac: Use GDB_AC_TRANSFORM.
10414 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10415 * acinclude.m4: sinclude transform.m4.
10416 * transform.m4: New file.
10417 (GDB_AC_TRANSFORM): New macro.
10418
b05e3b0d
JM
104192015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10420
10421 * NEWS: Announce the support for DTrace SDT probes.
10422
c3e3045e
JM
104232015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10424
10425 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10426 (amd64_dtrace_parse_probe_argument): New function.
10427 (amd64_dtrace_probe_is_enabled): Likewise.
10428 (amd64_dtrace_enable_probe): Likewise.
10429 (amd64_dtrace_disable_probe): Likewise.
10430 (amd64_linux_init_abi): Register the
10431 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10432 `gdbarch_dtrace_disable_probe' and
10433 `gdbarch_dtrace_probe_is_enabled' hooks.
10434 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10435 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10436 (amd64_dtrace_enable_probe_sequence): Likewise.
10437 (amd64_dtrace_disable_probe_sequence): Likewise.
10438
d4777acb
JM
104392015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10440
10441 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10442 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10443 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10444 handle ELF files.
10445 * Makefile.in (SFILES): dtrace-probe.c added.
10446 * configure: Regenerate.
10447 * dtrace-probe.c: New file.
10448 (SHT_SUNW_dof): New constant.
10449 (dtrace_probe_type): New enum.
10450 (dtrace_probe_arg): New struct.
10451 (dtrace_probe_arg_s): New typedef.
10452 (struct dtrace_probe_enabler): New struct.
10453 (dtrace_probe_enabler_s): New typedef.
10454 (dtrace_probe): New struct.
10455 (dtrace_probe_is_linespec): New function.
10456 (dtrace_dof_sect_type): New enum.
10457 (dtrace_dof_dofh_ident): Likewise.
10458 (dtrace_dof_encoding): Likewise.
10459 (DTRACE_DOF_ENCODE_LSB): Likewise.
10460 (DTRACE_DOF_ENCODE_MSB): Likewise.
10461 (dtrace_dof_hdr): New struct.
10462 (dtrace_dof_sect): Likewise.
10463 (dtrace_dof_provider): Likewise.
10464 (dtrace_dof_probe): Likewise.
10465 (DOF_UINT): New macro.
10466 (DTRACE_DOF_PTR): Likewise.
10467 (DTRACE_DOF_SECT): Likewise.
10468 (dtrace_process_dof_probe): New function.
10469 (dtrace_process_dof): Likewise.
10470 (dtrace_build_arg_exprs): Likewise.
10471 (dtrace_get_arg): Likewise.
10472 (dtrace_get_probes): Likewise.
10473 (dtrace_get_probe_argument_count): Likewise.
10474 (dtrace_can_evaluate_probe_arguments): Likewise.
10475 (dtrace_evaluate_probe_argument): Likewise.
10476 (dtrace_compile_to_ax): Likewise.
10477 (dtrace_probe_destroy): Likewise.
10478 (dtrace_gen_info_probes_table_header): Likewise.
10479 (dtrace_gen_info_probes_table_values): Likewise.
10480 (dtrace_probe_is_enabled): Likewise.
10481 (dtrace_probe_ops): New variable.
10482 (info_probes_dtrace_command): New function.
10483 (_initialize_dtrace_probe): Likewise.
10484 (dtrace_type_name): Likewise.
10485
8b367e17
JM
104862015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10487
10488 * gdbarch.sh (dtrace_parse_probe_argument): New.
10489 (dtrace_probe_is_enabled): Likewise.
10490 (dtrace_enable_probe): Likewise.
10491 (dtrace_disable_probe): Likewise.
10492 * gdbarch.c: Regenerate.
10493 * gdbarch.h: Regenerate.
10494
9aca2ff8
JM
104952015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10496
10497 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10498 stap_probe_ops for `enable_probe' and `disable_probe'.
10499 * probe.c (enable_probes_command): New function.
10500 (disable_probes_command): Likewise.
10501 (_initialize_probe): Define the cli commands `enable probe' and
10502 `disable probe'.
10503 (parse_probe_linespec): New function.
10504 (info_probes_for_ops): Use parse_probe_linespec.
10505 * probe.h (probe_ops): New hooks `enable_probe' and
10506 `disable_probe'.
10507
03e98035
JM
105082015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10509
10510 * probe.c (compute_probe_arg): Moved from stap-probe.c
10511 (compile_probe_arg): Likewise.
10512 (probe_funcs): Likewise.
10513 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10514 (compile_probe_arg): Likewise.
10515 (probe_funcs): Likewise.
10516
6f9b8491
JM
105172015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10518
10519 * probe.c (print_ui_out_not_applicables): New function.
10520 (exists_probe_with_pops): Likewise.
10521 (info_probes_for_ops): Do not include column headers for probe
10522 types for which no probe has been actually found on any object.
10523 Also invoke `print_ui_out_not_applicables' in order to match the
10524 column rows with the header when probes of several types are
10525 listed.
10526 Print the "Type" column.
10527 * probe.h (probe_ops): Added a new probe operation `type_name'.
10528 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10529 (stap_type_name): New function.
10530
69efdff1
PP
105312015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10532
10533 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10534 (key_is_command_char): Delete.
10535
f8e5e23e
PA
105362015-02-17 Pedro Alves <palves@redhat.com>
10537
10538 * tui/tui.c (tui_enable): Resize windows before anything
10539 might show a window.
10540
9f2e0721
MO
105412015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10542
10543 PR gdb/17984
10544 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10545 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10546 call.
10547 * aarch64-tdep.h (tdesc_aarch64): Declare.
10548
171e6b1c
MW
105492015-02-12 Mark Wielaard <mjw@redhat.com>
10550
10551 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10552
d5ff0482
DE
105532015-02-13 Doug Evans <dje@google.com>
10554
10555 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10556 anonymous_namespace to is_in_anonymous for consistency with the rest
10557 of the file.
10558 (cp_lookup_bare_symbol): Fix typo in comment.
10559 (cp_search_static_and_baseclasses): Ditto.
10560 (search_symbol_list): Use vertical space in comment better.
10561 (reset_directive_searched): Ditto. Fix typo.
10562 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10563
9f04ac5f
YQ
105642015-02-13 Yao Qi <yao.qi@arm.com>
10565
10566 * MAINTAINERS: Update my email address.
10567
013d0319
DE
105682015-02-12 Doug Evans <dje@google.com>
10569
b615dd20 10570 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 10571
9a7e538e
DE
105722015-02-12 Doug Evans <dje@google.com>
10573
10574 * completer.c (complete_line): Remove incorrect comment.
10575
e1fcd575
JK
105762015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10577
10578 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10579 (py_print_frame): Use RETURN_MASK_ERROR.
10580
b99bf4e3
JK
105812015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10582
10583 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10584 function comment. Wrap all function that can throw in cleanups.
10585 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10586 cleanups.
10587
800eb1ce
JK
105882015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10589
10590 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10591 Remove the error label.
10592
34019068
JK
105932015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10594
10595 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10596 with goto first, indent the former else codepath left. Put variable
10597 'elided' to a new inner block.
10598
8d4a54e2
JK
105992015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10600
10601 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10602
18ad82c1
PA
106032015-02-11 Pedro Alves <palves@redhat.com>
10604
10605 * xcoffread.c (within_function): Delete.
10606
e36122e9
TT
106072015-02-11 Tom Tromey <tromey@redhat.com>
10608 Pedro Alves <palves@redhat.com>
10609
10610 * breakpoint.c (base_breakpoint_ops): Delete.
10611 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10612 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10613 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10614 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10615 * python/py-arch.c (arch_object_type): Make extern.
10616 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10617 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10618 * python/py-cmd.c (cmdpy_object_type): Make extern.
10619 * python/py-continueevent.c (continue_event_object_type)
10620 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10621 parameter. Update all callers.
10622 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10623 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10624 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10625 * python/py-function.c (fnpy_object_type): Make extern.
10626 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10627 * python/py-infevents.c (call_pre_event_object_type)
10628 (inferior_call_post_event_object_type).
10629 (memory_changed_event_object_type): Make extern.
10630 * python/py-infthread.c (thread_object_type): Make extern.
10631 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10632 * python/py-linetable.c (linetable_entry_object_type)
10633 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10634 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10635 (clear_objfiles_event_object_type): Make extern.
10636 * python/py-objfile.c (objfile_object_type): Make extern.
10637 * python/py-param.c (parmpy_object_type): Make extern.
10638 * python/py-progspace.c (pspace_object_type): Make extern.
10639 * python/py-signalevent.c (signal_event_object_type): Make extern.
10640 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10641 * python/py-type.c (type_object_type, field_object_type)
10642 (type_iterator_object_type): Make extern.
10643 * python/python.c (python_extension_script_ops)
10644 (python_extension_ops): Make extern.
10645 * stap-probe.c (stap_probe_ops): Make extern.
10646
0703599a
PA
106472015-02-11 Pedro Alves <pedro@codesourcery.com>
10648
10649 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10650 because the event thread is not the current thread.
10651
eaaf76ab
DE
106522015-02-11 Doug Evans <xdje42@gmail.com>
10653
10654 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10655 been initialized yet, return NULL.
10656
e7d52ed3
DE
106572015-02-11 Doug Evans <dje@google.com>
10658
10659 * symfile.h (new_symfile_objfile): Delete.
10660 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10661 All callers updated.
10662
fc6b1256
PP
106632015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10664
10665 * tui/tui-io.c (tui_handle_resize_during_io): Call
10666 tui_update_gdb_sizes() after resizing the screen.
10667 * tui/tui.c (tui_enable): Resize the terminal before
10668 calling tui_update_gdb_sizes().
10669
d9080678
PP
106702015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10671
10672 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10673 line before printing a newline.
10674
9f615e3a
MW
106752015-02-11 Mark Wielaard <mjw@redhat.com>
10676
10677 * utils.c (producer_is_gcc): Return true or false.
10678
d9080678 106792015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
10680
10681 * utils.h (producer_is_gcc): Change return type to bool. Add major
10682 argument.
10683 * utils.c (producer_is_gcc): Likewise.
10684 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10685 * dwarf2read.c (check_producer): Likewise.
10686
b052c4fb
PA
106872015-02-10 Pedro Alves <palves@redhat.com>
10688
10689 * infrun.c (displaced_step_fixup): Switch to the event thread
10690 before calling gdbarch_displaced_step_fixup.
10691
3ac240d4
AT
106922015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10693
10694 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10695
c1cc6152
SM
106962015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10697
10698 * ada-varobj.c (ada_name_of_child): Constify parent.
10699 (ada_path_expr_of_child): Same.
10700 (ada_value_of_child): Same.
10701 (ada_type_of_child): Same.
10702 * c-varobj.c (c_is_path_expr_parent): Same.
10703 (c_describe_child): Same.
10704 (c_name_of_child): Same.
10705 (c_value_of_child): Same.
10706 (c_type_of_child): Same.
10707 (cplus_number_of_children): Same.
10708 (cplus_describe_child): Constify var.
10709 (cplus_name_of_child): Constify parent.
10710 (cplus_value_of_child): Same.
10711 (cplus_type_of_child): Same.
10712 * jv-varobj.c (java_name_of_child): Same.
10713 (java_value_of_child): Same.
10714 (java_type_of_child): Same.
10715 * varobj.c (value_of_child): Same.
10716 (varobj_default_is_path_expr_parent): Constify var, parent and return
10717 value.
10718 (varobj_get_path_expr): Constify var, modify path_expr through
10719 mutable_var.
10720 (install_new_value): Constify parent.
10721 (value_of_child): Constify parent.
10722 * varobj.h (struct varobj): Constify parent.
10723 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10724 type_of_child.
10725 (varobj_get_path_expr): Constify var.
10726 (varobj_get_path_expr_parent): Constify var and return value.
10727
c1ee9414
LM
107282015-02-10 Luis Machado <lgustavo@codesourcery.com>
10729
10730 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10731 (arm_prologue_this_id): Move PC and SP limit checks to
10732 arm_prologue_unwind_stop_reason.
10733 (arm_prologue_unwind) <stop_reason> : Set to
10734 arm_prologue_unwind_stop_reason.
10735
f7de9aab
MW
107362015-02-09 Mark Wielaard <mjw@redhat.com>
10737
10738 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10739 DW_LANG_Fortran08 as language_fortran.
10740
0b24eb2d
SDJ
107412015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10742
10743 PR remote/17946
10744 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10745 of pointer against char.
10746
a2c2acaf
MW
107472015-02-09 Mark Wielaard <mjw@redhat.com>
10748
10749 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10750 (c_type_print_modifier): Likewise.
10751 * dwarf2read.c (read_tag_atomic_type): New function.
10752 (read_type_die_1): Handle DW_TAG_atomic_type.
10753 * gdbtypes.c (make_atomic_type): New function.
10754 (recursive_dump_type): Handle TYPE_ATOMIC.
10755 * gdbtypes.h (enum type_flag_values): Renumber.
10756 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10757 (TYPE_ATOMIC): New macro.
10758 (make_atomic_type): Declare.
10759
31fd9caa
MM
107602015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10761
10762 * btrace.c (ftrace_find_call): Skip gaps.
10763 (ftrace_new_function): Initialize level.
10764 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10765 (ftrace_new_switch): Update
10766 level computation.
10767 (ftrace_new_gap): New.
10768 (ftrace_update_function): Create new function after gap.
10769 (btrace_compute_ftrace_bts): Create gap on error.
10770 (btrace_stitch_bts): Update parameters. Clear trace if it
10771 becomes empty.
10772 (btrace_stitch_trace): Update parameters. Update callers.
10773 (btrace_clear): Reset the number of gaps.
10774 (btrace_insn_get): Return NULL if the iterator points to a gap.
10775 (btrace_insn_number): Return zero if the iterator points to a gap.
10776 (btrace_insn_end): Allow gaps at the end.
10777 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10778 (btrace_find_insn_by_number): Assert that the found iterator does
10779 not point to a gap.
10780 (btrace_call_next, btrace_call_prev): Assert that the last function
10781 is not a gap.
10782 * btrace.h (btrace_bts_error): New.
10783 (btrace_function): Update comment.
10784 (btrace_function) <insn, insn_offset, number>: Update comment.
10785 (btrace_function) <errcode>: New.
10786 (btrace_thread_info) <ngaps>: New.
10787 (btrace_thread_info) <replay>: Update comment.
10788 (btrace_insn_get): Update comment.
10789 * record-btrace.c (btrace_ui_out_decode_error): New.
10790 (record_btrace_info): Print number of gaps.
10791 (btrace_insn_history, btrace_call_history): Call
10792 btrace_ui_out_decode_error for gaps.
10793 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10794
afb778a2
MM
107952015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10796
10797 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10798 * nat/linux-btrace.c: (btrace_this_cpu): New.
10799 (cpu_supports_bts): Call btrace_this_cpu.
10800 (intel_supports_bts): Add cpu parameter.
10801
7d5c24b3
MM
108022015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10803
10804 * btrace.h (btrace_insn_class): New.
10805 (btrace_insn) <size, iclass>: New.
10806 * btrace.c (ftrace_find_call): Update parameters. Update users.
10807 Use instruction classification.
10808 (ftrace_new_return): Update parameters. Update users.
10809 (ftrace_update_function): Update parameters. Update users. Use
10810 instruction classification.
10811 (ftrace_update_insns): Update parameters. Update users.
10812 (ftrace_classify_insn): New.
10813 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
10814 TRY_CATCH around call to gdb_insn_length.
10815
76235df1
MM
108162015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10817
10818 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
10819 Update parameters. Update users.
10820
d33501a5
MM
108212015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10822
10823 * btrace.c (parse_xml_btrace_conf_bts): Add size.
10824 (btrace_conf_bts_attributes): New.
10825 (btrace_conf_children): Add attributes.
10826 * common/btrace-common.h (btrace_config_bts): New.
10827 (btrace_config)<bts>: New.
10828 (btrace_config): Update comment.
10829 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
10830 Use config.
10831 * features/btrace-conf.dtd: Increment version. Add size
10832 attribute to bts element.
10833 * record-btrace.c (set_record_btrace_bts_cmdlist,
10834 show_record_btrace_bts_cmdlist): New.
10835 (record_btrace_adjust_size, record_btrace_print_bts_conf,
10836 record_btrace_print_conf, cmd_set_record_btrace_bts,
10837 cmd_show_record_btrace_bts): New.
10838 (record_btrace_info): Call record_btrace_print_conf.
10839 (_initialize_record_btrace): Add commands.
10840 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
10841 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
10842 (btrace_sync_conf): Synchronize bts size.
10843 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
10844 * NEWS: Announce new commands and new packets.
10845
f4abbc16
MM
108462015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10847
10848 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
10849 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
10850 (x86_linux_btrace_conf): New.
10851 (x86_linux_create_target): Initialize to_btrace_conf.
10852 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
10853 Check format. Split into this and ...
10854 (linux_enable_bts): ... this.
10855 (linux_btrace_conf): New.
10856 (perf_event_skip_record): Renamed into ...
10857 (perf_event_skip_bts_record): ... this. Updated users.
10858 (linux_disable_btrace): Split into this and ...
10859 (linux_disable_bts): ... this.
10860 (linux_read_btrace): Check format.
10861 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
10862 (linux_btrace_conf): New.
10863 (btrace_target_info)<ptid>: Moved.
10864 (btrace_target_info)<conf>: New.
10865 (btrace_target_info): Split into this and ...
10866 (btrace_tinfo_bts): ... this. Updated users.
10867 * btrace.c (btrace_enable): Update parameters.
10868 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
10869 (btrace_conf_children, btrace_conf_attributes)
10870 (btrace_conf_elements): New.
10871 * btrace.h (btrace_enable): Update parameters.
10872 (btrace_conf, parse_xml_btrace_conf): New.
10873 * common/btrace-common.h (btrace_config): New.
10874 * feature/btrace-conf.dtd: New.
10875 * record-btrace.c (record_btrace_conf): New.
10876 (record_btrace_cmdlist): New.
10877 (record_btrace_enable_warn, record_btrace_open): Pass
10878 &record_btrace_conf.
10879 (record_btrace_info): Print recording format.
10880 (cmd_record_btrace_bts_start): New.
10881 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
10882 (_initialize_record_btrace): Add "record btrace bts" subcommand.
10883 Add "record bts" alias command.
10884 * remote.c (remote_state)<btrace_config>: New.
10885 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
10886 (remote_protocol_features): Add qXfer:btrace-conf:read.
10887 (remote_open_1): Call remote_btrace_reset.
10888 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
10889 (btrace_target_info)<conf>: New.
10890 (btrace_sync_conf, btrace_read_config): New.
10891 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
10892 btrace_read_conf.
10893 (remote_btrace_conf): New.
10894 (init_remote_ops): Initialize to_btrace_conf.
10895 (_initialize_remote): Add qXfer:btrace-conf packet.
10896 * target.c (target_enable_btrace): Update parameters.
10897 (target_btrace_conf): New.
10898 * target.h (target_enable_btrace): Update parameters.
10899 (target_btrace_conf): New.
10900 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
10901 (target_ops)<to_enable_btrace>: Update parameters and comment.
10902 (target_ops)<to_btrace_conf>: New.
10903 * target-delegates: Regenerate.
10904 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
10905 (target_debug_print_const_struct_btrace_target_info_p): New.
10906 * NEWS: Announce new command and new packet.
10907
aadf7753
MM
109082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10909
10910 * nat/linux-btrace.h (perf_event_buffer): New.
10911 (btrace_target_info) <buffer, size, data_head>: Replace with ...
10912 <bts>: ... this.
10913 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
10914 (perf_event_buffer_size, perf_event_buffer_begin)
10915 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
10916 Updated users.
10917 (perf_event_new_data): New.
10918
043c3577
MM
109192015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10920
10921 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
10922 * record-btrace.c (record_btrace_open): Remove call to
10923 target_supports_btrace.
10924 * remote.c (remote_supports_btrace): Update parameters.
10925 * target.c (target_supports_btrace): Update parameters.
10926 * target.h (to_supports_btrace, target_supports_btrace): Update
10927 parameters.
10928 * target-delegates.c: Regenerate.
10929 * target-debug.h (target_debug_print_enum_btrace_format): New.
10930 * nat/linux-btrace.c
10931 (kernel_supports_btrace): Rename into ...
10932 (kernel_supports_bts): ... this. Update users. Update warning text.
10933 (intel_supports_btrace): Rename into ...
10934 (intel_supports_bts): ... this. Update users.
10935 (cpu_supports_btrace): Rename into ...
10936 (cpu_supports_bts): ... this. Update users.
10937 (linux_supports_btrace): Update parameters. Split into this and ...
10938 (linux_supports_bts): ... this.
10939 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
10940
734b0e4b
MM
109412015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10942
10943 * Makefile.in (SFILES): Add common/btrace-common.c.
10944 (COMMON_OBS): Add common/btrace-common.o.
10945 (btrace-common.o): Add build rules.
10946 * btrace.c (parse_xml_btrace): Update parameters.
10947 (parse_xml_btrace_block): Set format field.
10948 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
10949 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
10950 (btrace_compute_ftrace): Split into this and...
10951 (btrace_compute_ftrace_bts): ...this.
10952 (btrace_stitch_trace): Split into this and...
10953 (btrace_stitch_bts): ...this.
10954 * btrace.h (parse_xml_btrace): Update parameters.
10955 (make_cleanup_btrace_data): New.
10956 * common/btrace-common.c: New.
10957 * common/btrace-common.h: Include common-defs.h.
10958 (btrace_block_s): Update comment.
10959 (btrace_format): New.
10960 (btrace_format_string): New.
10961 (btrace_data_bts): New.
10962 (btrace_data): New.
10963 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
10964 * remote.c (remote_read_btrace): Update parameters.
10965 * target.c (target_read_btrace): Update parameters.
10966 * target.h (target_read_btrace): Update parameters.
10967 (target_ops)<to_read_btrace>: Update parameters.
10968 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
10969 * target-delegates.c: Regenerate.
10970 * target-debug (target_debug_print_struct_btrace_data_p): New.
10971 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
10972 (linux_read_bts): ...this.
10973 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
10974
bd2e0e9e
DE
109752015-02-06 Doug Evans <dje@google.com>
10976
10977 * remote-m32r-sdi.c: Include symfile.h.
10978
f176c4b5
DE
109792015-02-06 Doug Evans <dje@google.com>
10980
10981 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
10982 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
10983 to here.
10984
d6c146e9
PA
109852015-02-06 Pedro Alves <palves@redhat.com>
10986
10987 * linux-thread-db.c (find_new_threads_callback): Add debug output.
10988
b9d61307
SM
109892015-02-06 Simon Marchi <simon.marchi@ericsson.com>
10990
10991 PR gdb/15678
10992 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
10993 (enable_count_command): Check args for NULL value.
10994
e9fbd043
DE
109952015-02-05 Doug Evans <xdje42@gmail.com>
10996
10997 * guile/scm-frame.c: Fix spelling errors in a comment.
10998
881d5d5d
JK
109992015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11000
11001 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11002 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11003 return type.
11004
20ba1ce6
PA
110052015-02-04 Pedro Alves <palves@redhat.com>
11006
11007 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11008 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11009 returns true.
11010 (resume_stopped_resumed_lwps): Don't check whether the thread is
11011 marked as executing.
11012 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11013
f962539a
AA
110142015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11015
11016 * regset.h (struct regset): Add flags field.
11017 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11018 * corelow.c (get_core_register_section): Add warning if the size
11019 exceeds the requested size and the regset does not have the
11020 REGSET_VARIABLE_SIZE flag set.
11021 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11022 flag.
11023 * armbsd-tdep.c (armbsd_gregset): Likewise.
11024 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11025 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11026 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11027 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11028
dde9acd6
AA
110292015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11030
11031 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11032 For ".reg-xstate", explicitly specify the requested section size
11033 via X86_XSTATE_SIZE instead of just 0 on input and
11034 X86_XSTATE_MAX_SIZE on output.
11035 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11036 Likewise.
11037
1528345d
AA
110382015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11039
11040 PR corefiles/17808:
11041 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11042 function type, particularly its SIZE parameter.
11043 * gdbarch.h: Regenerate.
11044 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11045 actual against required size using ">=" instead of "==".
11046 (amd64_collect_fpregset): Likewise.
11047 * i386-tdep.c (i386_supply_gregset): Likewise.
11048 (i386_collect_gregset): Likewise.
11049 (i386_supply_fpregset): Likewise.
11050 (i386_collect_fpregset): Likewise.
11051 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11052 (mips_fill_gregset_wrapper): Likewise.
11053 (mips_supply_fpregset_wrapper): Likewise.
11054 (mips_fill_fpregset_wrapper): Likewise.
11055 (mips64_supply_gregset_wrapper): Likewise.
11056 (mips64_fill_gregset_wrapper): Likewise.
11057 (mips64_supply_fpregset_wrapper): Likewise.
11058 (mips64_fill_fpregset_wrapper): Likewise.
11059 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11060 (am33_supply_fpregset_method): Likewise.
11061 (am33_collect_gregset_method): Likewise.
11062 (am33_collect_fpregset_method): Likewise.
11063
518be979
DE
110642015-02-04 Doug Evans <dje@google.com>
11065 Pedro Alves <palves@redhat.com>
11066 Eli Zaretskii <eliz@gnu.org>
11067
11068 PR tui/17810
11069 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11070 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11071 * tui/tui-file.c: #include tui/tui-command.h.
11072 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11073 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11074 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11075
80bd5fab
PA
110762015-02-04 Pedro Alves <palves@redhat.com>
11077
11078 Fix build breakage.
11079 * event-loop.c (gdb_do_one_event): Add default switch case.
11080
a7606d80
JK
110812015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11082
11083 Filter out inferior gcc option -fpreprocessed.
11084 * compile/compile.c (filter_args): New function.
11085 (get_args): Use it.
11086
70b66289
PA
110872015-02-03 Pedro Alves <palves@redhat.com>
11088
11089 * event-loop.c: Don't declare nor define a queue type for
11090 gdb_event_p.
11091 (event_queue): Delete.
11092 (create_event, create_file_event, gdb_event_xfree)
11093 (initialize_event_loop, process_event): Delete.
11094 (gdb_do_one_event): Return as soon as one event is handled.
11095 (handle_file_event): Change prototype. Used the passed in
11096 file_handler pointer and ready_mask instead of looping over all
11097 file handlers.
11098 (gdb_wait_for_event): Update the poll/select timeouts before
11099 blocking. Run event handlers directly instead of queueing events.
11100 Return as soon as one event is handled.
11101 (struct async_event_handler_data): Delete.
11102 (invoke_async_event_handler): Delete.
11103 (check_async_event_handlers): Change return type to int. Run
11104 event handlers directly instead of queueing events. Return as
11105 soon as one event is handled.
11106 (handle_timer_event): Delete.
11107 (update_wait_timeout): New function, factored out from
11108 poll_timers.
11109 (poll_timers): Reimplement.
11110 * event-loop.h (initialize_event_loop): Delete declaration.
11111 * top.c (gdb_init): Don't call initialize_event_loop.
11112
b7d2e916
PA
111132015-02-03 Pedro Alves <palves@redhat.com>
11114
11115 * event-loop.c (clear_async_event_handler): New function.
11116 * event-loop.h (clear_async_event_handler): New declaration.
11117 * record-btrace.c (record_btrace_async): New function.
11118 (init_record_btrace_ops): Install record_btrace_async.
11119 * record-full.c (record_full_async): New function.
11120 (record_full_resume): Don't mark the async event source here.
11121 (init_record_full_ops): Install record_full_async.
11122 (record_full_core_resume): Don't mark the async event source here.
11123 (init_record_full_core_ops): Install record_full_async.
11124 * remote.c (remote_async): Mark and clear the async stop reply
11125 queue event-loop token as appropriate.
11126
d9d41e78
PA
111272015-02-03 Pedro Alves <palves@redhat.com>
11128
11129 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11130 target_is_async_p instead of target_can_async.
11131 (linux_nat_wait): Use target_is_async_p instead of
11132 target_can_async. Don't enable async here.
11133 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11134 target_is_async_p instead of target_can_async.
11135
aa3de267
SM
111362015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11137
11138 * varobj.h (lang_varobj_ops): Mention which return values need
11139 to be freed.
11140
2c811c0f
JB
111412015-02-02 Joel Brobecker <brobecker@adacore.com>
11142
11143 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11144
b1eedac9
JB
111452015-02-02 Joel Brobecker <brobecker@adacore.com>
11146
11147 PR gdb/17856:
11148 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11149 results found in the cache.
11150
66c168ae
JB
111512015-02-02 Joel Brobecker <brobecker@adacore.com>
11152
11153 PR gdb/17854:
11154 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11155 when allocating a new one.
11156
4bdc02b2
TT
111572015-02-01 Tom Tromey <tom@tromey.com>
11158
11159 * MAINTAINERS: Remove myself.
11160
ae6ae975
DE
111612015-01-31 Doug Evans <xdje42@gmail.com>
11162
11163 * dwarf2read.c (process_structure_scope): Update setting of
11164 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11165 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11166 (set_type_vptr_fieldno): New function.
11167 (internal_type_vptr_basetype): New function.
11168 (set_type_vptr_basetype): New function.
11169 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11170 TYPE_VPTR_BASETYPE.
11171 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11172 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11173 (print_cplus_stuff): ... moved here.
11174 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11175 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11176 moved to ...
11177 (struct cplus_struct_type): ... here. All uses updated.
11178 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11179 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11180 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11181 * stabsread.c (read_tilde_fields): Update setting of
11182 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11183
09e2d7c7
DE
111842015-01-31 Doug Evans <xdje42@gmail.com>
11185
11186 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11187 to self_p.
11188 (cp_print_class_member): Rename local domain to self_type.
11189 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11190 domain_type to self_type.
11191 (set_die_type) <need_gnat_info>: Handle
11192 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11193 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11194 TYPE_SPECIFIC_SELF_TYPE.
11195 * gdbtypes.c (internal_type_self_type): New function.
11196 (set_type_self_type): New function.
11197 (smash_to_memberptr_type): Rename parameter domain to self_type.
11198 Update setting of TYPE_SELF_TYPE.
11199 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11200 (smash_to_method_type): Rename parameter domain to self_type.
11201 Update setting of TYPE_SELF_TYPE.
11202 (check_stub_method): Call smash_to_method_type.
11203 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11204 (copy_type_recursive): Ditto.
11205 * gdbtypes.h (enum type_specific_kind): New value
11206 TYPE_SPECIFIC_SELF_TYPE.
11207 (struct main_type) <type_specific>: New member self_type.
11208 (struct cplus_struct_type) <fn_field.type>: Update comment.
11209 (TYPE_SELF_TYPE): Rewrite.
11210 (internal_type_self_type, set_type_self_type): Declare.
11211 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11212 self_type.
11213 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11214 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11215 TYPE_TARGET_TYPE.
11216 * stabsread.c (read_member_functions): Mark methods with
11217 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11218 TYPE_SELF_TYPE.
11219
4bfb94b8
DE
112202015-01-31 Doug Evans <xdje42@gmail.com>
11221
11222 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11223 All uses updated.
11224
5f4ce105
DE
112252015-01-31 Doug Evans <xdje42@gmail.com>
11226
11227 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11228 or unions. Return zero if union.
11229 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11230 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11231 gnuv3_get_vtable.
11232 (compute_vtable_size): Assert only passed structs.
11233 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11234
f6b3afbf
DE
112352015-01-31 Doug Evans <xdje42@gmail.com>
11236
11237 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11238 kinds.
11239
cfb069a8
GB
112402015-01-31 Gary Benson <gbenson@redhat.com>
11241 Doug Evans <dje@google.com>
11242
11243 PR cli/9007
11244 PR cli/11920
11245 PR cli/15548
11246 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11247 reached.
11248 * common/common-exceptions.h (enum errors)
11249 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11250 * completer.h (get_max_completions_reached_message): New declaration.
11251 (max_completions): Likewise.
11252 (completion_tracker_t): New typedef.
11253 (new_completion_tracker): New declaration.
11254 (make_cleanup_free_completion_tracker): Likewise.
11255 (maybe_add_completion_enum): New enum.
11256 (maybe_add_completion): New declaration.
11257 (throw_max_completions_reached_error): Likewise.
11258 * completer.c (max_completions): New global variable.
11259 (new_completion_tracker): New function.
11260 (free_completion_tracker): Likewise.
11261 (make_cleanup_free_completion_tracker): Likewise.
11262 (maybe_add_completions): Likewise.
11263 (throw_max_completions_reached_error): Likewise.
11264 (complete_line): Remove duplicates and limit result to max_completions
11265 entries.
11266 (get_max_completions_reached_message): New function.
11267 (gdb_display_match_list): Handle max_completions.
11268 (_initialize_completer): New declaration and function.
11269 * symtab.c: Include completer.h.
11270 (completion_tracker): New static variable.
11271 (completion_list_add_name): Call maybe_add_completion.
11272 (default_make_symbol_completion_list_break_on_1): Renamed from
11273 default_make_symbol_completion_list_break_on. Maintain
11274 completion_tracker across calls to completion_list_add_name.
11275 (default_make_symbol_completion_list_break_on): New function.
11276 * top.c (init_main): Set rl_completion_display_matches_hook.
11277 * tui/tui-io.c: Include completer.h.
11278 (tui_old_rl_display_matches_hook): New static global.
11279 (tui_rl_display_match_list): Notify user if max-completions reached.
11280 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11281 * NEWS (New Options): Mention set/show max-completions.
11282
e11c72c7
GB
112832015-01-31 Gary Benson <gbenson@redhat.com>
11284
11285 * symtab.c (struct add_name_data) <code>: New field.
11286 Updated comments.
11287 (add_symtab_completions): New function.
11288 (symtab_expansion_callback): Likewise.
11289 (default_make_symbol_completion_list_break_on): Set datum.code.
11290 Move minimal symbol scan before calling expand_symtabs_matching.
11291 Scan known primary symtabs for externs and statics before calling
11292 expand_symtabs_matching. Pass symtab_expansion_callback as
11293 expansion_notify argument to expand_symtabs_matching. Do not scan
11294 primary symtabs for externs and statics after calling
11295 expand_symtabs_matching.
11296
276d885b
GB
112972015-01-31 Gary Benson <gbenson@redhat.com>
11298
11299 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11300 (struct quick_symbol_functions) <expand_symtabs_matching>:
11301 New argument expansion_notify. All uses updated.
11302 (expand_symtabs_matching): New argument expansion_notify.
11303 All uses updated.
11304 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11305 Also print expansion notify.
11306 * symtab.c (expand_symtabs_matching_via_partial): Call
11307 expansion_notify whenever a partial symbol table is expanded.
11308 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11309 expansion_notify whenever a symbol table is instantiated.
11310
82083d6d
DE
113112015-01-31 Doug Evans <xdje42@gmail.com>
11312
11313 * cli-out.c: #include completer.h, readline/readline.h.
11314 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11315 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11316 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11317 * cli-out.h (cli_display_match_list): Declare.
11318 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11319 (ELLIPSIS_LEN): Ditto.
11320 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11321 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11322 (gdb_fnprint, gdb_print_filename): Ditto.
11323 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11324 (gdb_display_match_list): Ditto.
11325 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11326 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11327 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11328 (match_list_displayer): New struct.
11329 (gdb_display_match_list): Declare.
11330 * top.c (init_main): Set rl_completion_display_matches_hook.
11331 * tui/tui-io.c: #include completer.h.
11332 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11333 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11334 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11335 (tui_mld_getc, tui_mld_read_key): Ditto.
11336 (tui_rl_display_match_list): Rewrite.
11337 (tui_handle_resize_during_io): New arg for_completion. All callers
11338 updated.
11339
f57d2163
DE
113402015-01-31 Doug Evans <xdje42@gmail.com>
11341
11342 Add symbol lookup cache.
11343 * NEWS: Document new options and commands.
11344 * symtab.c (symbol_cache_key): New static global.
11345 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11346 (SYMBOL_LOOKUP_FAILED): New macro.
11347 (symbol_cache_slot_state): New enum.
11348 (block_symbol_cache): New struct.
11349 (symbol_cache): New struct.
11350 (new_symbol_cache_size, symbol_cache_size): New static globals.
11351 (hash_symbol_entry, eq_symbol_entry): New functions.
11352 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11353 (make_symbol_cache, free_symbol_cache): New functions.
11354 (get_symbol_cache, symbol_cache_cleanup): New function.
11355 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11356 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11357 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11358 (symbol_cache_flush, symbol_cache_dump): New functions.
11359 (maintenance_print_symbol_cache): New function.
11360 (maintenance_flush_symbol_cache): New function.
11361 (symbol_cache_stats): New function.
11362 (maintenance_print_symbol_cache_statistics): New function.
11363 (symtab_new_objfile_observer): New function.
11364 (symtab_free_objfile_observer): New function.
11365 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11366 (_initialize_symtab): Init symbol_cache_key. New parameter
11367 maint symbol-cache-size. New maint commands print symbol-cache,
11368 print symbol-cache-statistics, flush-symbol-cache.
11369 Install new_objfile, free_objfile observers.
11370
e700d1b2
JB
113712015-01-31 Joel Brobecker <brobecker@adacore.com>
11372
11373 PR symtab/17855
11374 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11375 to end.
11376
9f050062
DE
113772015-01-31 Doug Evans <xdje42@gmail.com>
11378
11379 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11380 * auto-load.c: #include ctype.h.
11381 (struct auto_load_pspace_info): Replace member loaded_scripts with
11382 new members loaded_script_files, loaded_script_texts.
11383 (auto_load_pspace_data_cleanup): Update.
11384 (init_loaded_scripts_info): Update.
11385 (get_auto_load_pspace_data_for_loading): Update.
11386 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11387 updated.
11388 (maybe_add_script_text): New function.
11389 (clear_section_scripts): Update.
11390 (source_script_file, execute_script_contents): New functions.
11391 (source_section_scripts): Add support for
11392 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11393 (print_scripts): New function.
11394 (auto_load_info_scripts): Also print inlined scripts.
11395 (maybe_print_unsupported_script_warning): Renamed from
11396 unsupported_script_warning_print. All callers updated.
11397 (maybe_print_script_not_found_warning): Renamed from
11398 script_not_found_warning_print. All callers updated.
11399 * extension-priv.h (struct extension_language_script_ops): New member
11400 objfile_script_executor.
11401 * extension.c (ext_lang_objfile_script_executor): New function.
11402 * extension.h (objfile_script_executor_func): New typedef.
11403 (ext_lang_objfile_script_executor): Declare.
11404 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11405 * guile/guile.c (guile_extension_script_ops): Update.
11406 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11407 * python/python.c (python_extension_script_ops): Update.
11408 (gdbpy_execute_objfile_script): New function.
11409
312809f8
EZ
114102015-01-31 Eli Zaretskii <eliz@gnu.org>
11411
11412 * tui/tui-io.c (tui_expand_tabs): New function.
11413 (tui_puts, tui_redisplay_readline): Expand TABs into the
11414 appropriate number of spaces.
11415 * tui/tui-regs.c: Include tui-io.h.
11416 (tui_register_format): Call tui_expand_tabs to expand TABs into
11417 the appropriate number of spaces.
11418 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11419
b6577aab
DE
114202015-01-30 Doug Evans <dje@google.com>
11421
11422 * NEWS: "info source" command now display producer string if present.
11423 * source.c (source_info): Print producer string if present.
11424
6da58d3e
SM
114252015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11426
11427 * varobj.c (varobj_delete): Fix comment.
11428
837ce252
SM
114292015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11430
11431 * varobj.c (create_child): Modify comment.
11432
b09e2c59
SM
114332015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11434
11435 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11436 parameter.
11437 (ada_name_of_variable): Same.
11438 (ada_path_expr_of_child): Same.
11439 (ada_value_of_variable): Same.
11440 (ada_value_is_changeable_p): Same.
11441 (ada_value_has_mutated): Same.
11442 * c-varobj.c (varobj_is_anonymous_child): Same.
11443 (c_is_path_expr_parent): Same.
11444 (c_number_of_children): Same.
11445 (c_name_of_variable): Same.
11446 (c_path_expr_of_child): Same.
11447 (get_type): Same.
11448 (c_value_of_variable): Same.
11449 (cplus_number_of_children): Same.
11450 (cplus_name_of_variable): Same.
11451 (cplus_path_expr_of_child): Same.
11452 (cplus_value_of_variable): Same.
11453 * jv-varobj.c (java_number_of_children): Same.
11454 (java_name_of_variable): Same.
11455 (java_path_expr_of_child): Same.
11456 (java_value_of_variable): Same.
11457 * varobj.c (number_of_children): Same.
11458 (name_of_variable): Same.
11459 (is_root_p): Same.
11460 (varobj_ensure_python_env): Same.
11461 (varobj_get_objname): Same.
11462 (varobj_get_expression): Same.
11463 (varobj_get_display_format): Same.
11464 (varobj_get_display_hint): Same.
11465 (varobj_has_more): Same.
11466 (varobj_get_thread_id): Same.
11467 (varobj_get_frozen): Same.
11468 (dynamic_varobj_has_child_method): Same.
11469 (varobj_get_gdb_type): Same.
11470 (is_path_expr_parent): Same.
11471 (varobj_default_is_path_expr_parent): Same.
11472 (varobj_get_language): Same.
11473 (varobj_get_attributes): Same.
11474 (varobj_is_dynamic_p): Same.
11475 (varobj_get_child_range): Same.
11476 (varobj_value_has_mutated): Same.
11477 (varobj_get_value_type): Same.
11478 (number_of_children): Same.
11479 (name_of_variable): Same.
11480 (check_scope): Same.
11481 (varobj_editable_p): Same.
11482 (varobj_value_is_changeable_p): Same.
11483 (varobj_floating_p): Same.
11484 (varobj_default_value_is_changeable_p): Same.
11485
2568868e
SM
114862015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11487
11488 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11489 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11490 child->path_expr.
11491 (cplus_path_expr_of_child): Same.
11492
ca83fa81
SM
114932015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11494
11495 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11496 result.
11497 (mi_cmd_var_info_expression): Same.
11498 * varobj.c (varobj_get_expression): Mention in the comment that
11499 the result must by freed by the caller.
11500
afa269ae
SM
115012015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11502
11503 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11504 varobj_get_type.
11505 (varobj_update_one): Same.
11506 * varobj.c (update_type_if_necessary): Free curr_type_str and
11507 new_type_str.
11508 (varobj_get_type): Specify in comment that the result needs to be
11509 freed by the caller.
11510
cd366ee8
DE
115112015-01-29 Doug Evans <dje@google.com>
11512
11513 PR symtab/17890
11514 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11515
38360086
MW
115162015-01-25 Mark Wielaard <mjw@redhat.com>
11517
11518 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11519 * utils.c (producer_is_gcc_ge_4): Likewise.
11520 (producer_is_gcc): New function.
11521 * utils.h (producer_is_gcc): New declaration.
11522
df25ebbd
JB
115232015-01-29 Joel Brobecker <brobecker@adacore.com>
11524
11525 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11526 kind.
11527 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11528 parameter by "addr_stack" parameter.
11529 (resolve_dynamic_range): Replace "addr" parameter by
11530 "stack_addr" parameter. Update function documentation.
11531 Update code accordingly.
11532 (resolve_dynamic_array, resolve_dynamic_union)
11533 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11534 (resolve_dynamic_type): Update code, following the changes made
11535 to resolve_dynamic_type_internal's interface.
11536 * dwarf2loc.h (struct property_addr_info): New.
11537 (dwarf2_evaluate_property): Replace "address" parameter
11538 by "addr_stack" parameter. Adjust function documentation.
11539 (struct dwarf2_offset_baton): New.
11540 (struct dwarf2_property_baton): Update documentation of
11541 field "referenced_type" to be more general. New field
11542 "offset_info" in union data field.
11543 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11544 parameter by "addr_stack" parameter. Adjust code accordingly.
11545 Add support for PROP_ADDR_OFFSET properties.
11546 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11547 DW_AT_data_member_location attributes as well. Use case
11548 statements instead of if/else condition.
11549
4a0ca9ec
JB
115502015-01-29 Joel Brobecker <brobecker@adacore.com>
11551
11552 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11553 Return zero if PARENT_VALUE is NULL and parent_type's
11554 range type is dynamic.
11555
ddb87a81
JB
115562015-01-29 Joel Brobecker <brobecker@adacore.com>
11557
11558 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11559 nonzero if the type's subtype is dynamic.
11560 (resolve_dynamic_range): Also resolve the range's subtype.
11561
3d7ad9b4 115622015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 11563
3d7ad9b4 11564 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
11565 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11566
3a8b707a
DE
115672015-01-27 Doug Evans <dje@google.com>
11568
11569 * NEWS: Mention gdb.Objfile.username.
11570 * python/py-objfile.c (objfpy_get_username): New function.
11571 (objfile_getset): Add "username".
11572
d35b90fb
MW
115732015-01-24 Mark Wielaard <mjw@redhat.com>
11574
11575 * stack.c (return_command): Markup warning message with _.
11576
734ae125
DE
115772015-01-24 Doug Evans <xdje42@gmail.com>
11578
11579 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11580
527f3840
JK
115812015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11582
11583 Fix 100x slowdown regression on DWZ files.
11584 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11585 (struct line_header): Add offset and offset_in_dwz.
11586 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11587 (free_line_header_voidp): New declaration.
11588 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11589 functions.
11590 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11591 (handle_DW_AT_stmt_list): Use line_header_hash.
11592 (free_line_header_voidp): New function.
11593 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11594 (dwarf_decode_lines): New parameter decode_mapping, use it.
11595 (dwarf2_free_objfile): Free line_header_hash.
11596
f7e5394d
SM
115972015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11598
11599 PR gdb/17416
11600 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11601 value_ind.
11602
743649fd
MW
116032015-01-15 Mark Wielaard <mjw@redhat.com>
11604
11605 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11606 DW_AT_noreturn.
11607 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11608 calling_convention an 8 bit bit field.
11609 (TYPE_NO_RETURN): New macro.
11610 * infcmd.c (finish_command): Query if function does not return
11611 normally.
11612 * stack.c (return_command): Likewise.
11613
198297aa
PA
116142015-01-23 Pedro Alves <palves@redhat.com>
11615
11616 * linux-nat.c (linux_is_async_p): New macro.
11617 (linux_nat_is_async_p):
11618 (linux_nat_terminal_inferior): Check whether the target can async
11619 instead of whether it is already async.
11620 (linux_nat_terminal_ours): Don't check whether the target is
11621 async.
11622 (linux_async_pipe): Use linux_is_async_p.
11623
253828f1
JK
116242015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11625
11626 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11627 '-ascending'.
11628 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11629 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11630 Sort tp_array using tp_array_compar.
11631 (_initialize_thread): Extend thread_apply_all_command help.
11632
f0e8c4c5
JK
116332015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11634
11635 * corelow.c (core_open): Call also thread_command.
11636 * gdbthread.h (thread_command): New prototype moved from ...
11637 * thread.c (thread_command): ... here.
11638 (thread_command): Make it global.
11639
03b79603
PA
116402015-01-22 Pedro Alves <palves@redhat.com>
11641
11642 * configure.ac [*mingw32*]: Check $curses_found instead of
11643 $prefer_curses.
11644 * configure: Regenerate.
11645 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11646 HAVE_NCURSES_NCURSES_H checks.
11647
6b8a872f
EZ
116482015-01-22 Eli Zaretskii <eliz@gnu.org>
11649
bbbbffbb 11650 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
11651 fails with the 1st arg NULL, try again with "unknown". Don't test
11652 the "cup" capability: it isn't supported by the Windows port of
11653 ncurses, but the Windows console driver is still capable of
11654 supporting TUI.
11655
4b62a76e
JK
116562015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11657
11658 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11659
82a864f9
EZ
116602015-01-22 Eli Zaretskii <eliz@gnu.org>
11661
11662 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11663 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11664 reason that "make TAGS" is broken.
11665
b35018fd
CG
116662015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11667
11668 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11669 and check additional store instructions.
11670
ffbc4646
WW
116712015-01-21 Wei-cheng Wang <cole945@gmail.com>
11672
11673 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11674
ddeca1df
WW
116752015-01-21 Wei-cheng Wang <cole945@gmail.com>
11676
11677 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11678 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11679 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11680 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11681 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11682 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11683 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11684 ppc_process_record_op19, ppc_process_record_op31,
11685 ppc_process_record_op59, ppc_process_record_op60,
11686 ppc_process_record_op63): Likewise.
11687
049bb5de
JB
116882015-01-20 Joel Brobecker <brobecker@adacore.com>
11689
11690 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11691 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11692 strerror.
11693
42b87c63 116942015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
11695
11696 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11697 ppc_process_record_op31, ppc_process_record_op59,
11698 ppc_process_record_op60, ppc_process_record_op63,
11699 ppc_process_record): Fix -Wformat warning.
11700 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11701 Remove unused variables.
11702
569340fc
CG
117032015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11704
11705 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11706
63413d85
EZ
117072015-01-19 Eli Zaretskii <eliz@gnu.org>
11708
11709 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11710 CONFIG_OBS if not building with a curses library.
11711 * configure: Regenerate.
11712
11713 * windows-termcap.c: Include defs.h. Make the whole body empty if
11714 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11715 HAVE_NCURSES_NCURSES_H is defined.
11716
16d8013c
JB
117172015-01-19 Joel Brobecker <brobecker@adacore.com>
11718
11719 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11720 from end of line to start of next line.
11721
cf90fd9a
WW
117222015-01-17 Wei-cheng Wang <cole945@gmail.com>
11723
11724 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11725 Scan PLT stub backward for reverse debugging.
11726 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11727
b4cdae6f
WW
117282015-01-17 Wei-cheng Wang <cole945@gmail.com>
11729 Ulrich Weigand <uweigand@de.ibm.com>
11730
11731 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11732 gdb_target_obs.
11733 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11734 record.
11735 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11736 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11737 (ppc_linux_init_abi): Set process_record, process_record_signal.
11738 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11739 ppc_linux_record_tdep to gdbarch_tdep.
11740 (ppc_process_record): New declaration.
11741 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11742 ppc_process_record_op19, ppc_process_record_op31,
11743 ppc_process_record_op59, ppc_process_record_op60,
11744 ppc_process_record_op63, ppc_process_record): New functions.
11745
2608dbf8
WW
117462015-01-17 Wei-cheng Wang <cole945@gmail.com>
11747
11748 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11749 rs6000_in_function_epilogue_frame_p and add an argument
11750 for frame_info.
11751 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11752 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11753 New functions.
11754 (rs6000_epilogue_frame_unwind): New.
11755 (rs6000_gdbarch_init): Append epilogue unwinder.
11756
4c347be6
SDJ
117572015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11758
11759 * nat/linux-personality.c: Replace "#ifndef
11760 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11761 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11762 systems.
11763
9f2850ba
EZ
117642015-01-16 Eli Zaretskii <eliz@gnu.org>
11765
6cdb25f4
EZ
11766 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11767 functions.
11768 (_initialize_tui_win) <border-kind, border-mode>:
11769 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
11770 (tui_set_tab_width_command): Fix the commentary.
11771
6cdb25f4
EZ
11772 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11773
bf555842
EZ
11774 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11775 Doc fix.
cb86fcc1
EZ
11776 (tui_set_tab_width_command): Delete and recreate the source and
11777 the disassembly windows, to show the effect of the changed tab
11778 size immediately.
bf555842 11779
9f2850ba
EZ
11780 * tui/tui-data.h (LINE_PREFIX): Make shorter
11781 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11782 "Thread NNNNN.XXXX" thread ID notation on Windows.
11783
95761b2d
JK
117842015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11785
11786 Fix gcc-5 compilation.
11787 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11788
8cc73a39
SDJ
117892015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11790
11791 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11792 (linux-personality.o): New rule.
11793 * common/common-defs.h: Include <stdint.h>.
11794 * config/aarch64/linux.mh (NATDEPFILES): Include
11795 linux-personality.o.
11796 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11797 * config/arm/linux.mh (NATDEPFILES): Likewise.
11798 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11799 * config/i386/linux.mh (NATDEPFILES): Likewise.
11800 * config/ia64/linux.mh (NATDEPFILES): Likewise.
11801 * config/m32r/linux.mh (NATDEPFILES): Likewise.
11802 * config/m68k/linux.mh (NATDEPFILES): Likewise.
11803 * config/mips/linux.mh (NATDEPFILES): Likewise.
11804 * config/pa/linux.mh (NATDEPFILES): Likewise.
11805 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11806 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11807 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11808 * config/s390/linux.mh (NATDEPFILES): Likewise.
11809 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11810 * config/sparc/linux.mh (NATDEPFILES): Likewise.
11811 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11812 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11813 * defs.h: Remove #include <stdint.h> (moved to
11814 common/common-defs.h).
11815 * linux-nat.c: Include nat/linux-personality.h. Remove #include
11816 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11817 nat/linux-personality.c).
11818 (linux_nat_create_inferior): Remove code to disable address space
11819 randomization (moved to nat/linux-personality.c). Create cleanup
11820 to disable address space randomization.
11821 * nat/linux-personality.c: New file.
11822 * nat/linux-personality.h: Likewise.
11823
fb23d554
SDJ
118242015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11825
11826 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
11827 common/posix-strerror.c.
11828 (posix-strerror.o): New rule.
11829 (mingw-strerror.o): Likewise.
11830 * common/common-utils.h (safe_strerror): Move prototype to here,
11831 from utils.h.
11832 * common/common.host: New file.
11833 * common/mingw-strerror.c: Likewise.
11834 * common/posix-strerror.c: Likewise.
11835 * configure: Regenerated.
11836 * configure.ac: Source common/common.host. Add variable
11837 common_host_obs to gdb_host_obs.
11838 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
11839 gdb/common/posix-strerror.c when warning about the use of
11840 strerror.
11841 * mingw-hdep.c (safe_strerror): Remove definition; move it to
11842 common/mingw-strerror.c.
11843 * posix-hdep.c (safe_strerror): Remove definition; move it to
11844 common/posix-hdep.c.
11845 * utils.h (safe_strerror): Remove prototype; move to
11846 common/common-utils.h.
11847
3af8af43
JB
118482015-01-15 Joel Brobecker <brobecker@adacore.com>
11849
11850 GDB 7.8.2 released.
11851
bafffb51
JB
118522015-01-15 Joel Brobecker <brobecker@adacore.com>
11853
11854 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
11855 ___XA type if the array has already been fixed.
11856
cdf43629
YQ
118572015-01-14 Yao Qi <yao@codesourcery.com>
11858
11859 * Makefile.in (ppc-linux.o): New rule.
11860 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
11861 * configure.ac: AC_CHECK_FUNCS(getauxval).
11862 * config.in: Re-generated.
11863 * configure: Re-generated.
11864 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
11865 Declare.
11866 * nat/ppc-linux.c: New file.
11867 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
11868 Call ppc64_64bit_inferior_p.
11869
514c5338
YQ
118702015-01-14 Yao Qi <yao@codesourcery.com>
11871
11872 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
11873 nat/ppc-linux.h.
11874 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
11875 (PPC_FEATURE_HAS_DFP): Likewise.
11876 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11877 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11878 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11879 Include "nat/ppc-linux.h".
11880 * nat/ppc-linux.h: New file.
11881 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
11882
5589af0e
PA
118832015-01-14 Pedro Alves <palves@redhat.com>
11884
11885 PR gdb/17525
11886 * breakpoint.c: Include "interps.h".
11887 (bpstat_do_actions_1): Also check whether the interpreter is
11888 async.
11889
6c400b59
PA
118902015-01-14 Pedro Alves <palves@redhat.com>
11891
11892 PR cli/17828
11893 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
11894 reinstall if the interpreter is sync.
11895
e02c96a7
DE
118962015-01-13 Doug Evans <dje@google.com>
11897
11898 * objfiles.c (objfile_filename): New function.
11899 * objfiles.h (objfile_filename): Declare it.
11900 (objfile_name): Add function comment.
11901 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
11902 bfd file name (which may be realpath'd), and the original name.
11903
3b2f13ff
JB
119042015-01-13 Joel Brobecker <brobecker@adacore.com>
11905
11906 * NEWS: Create a new section for the next release branch.
11907 Rename the section of the current branch, now that it has
11908 been cut.
11909
b4cfe7f8
JB
119102015-01-13 Joel Brobecker <brobecker@adacore.com>
11911
11912 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
11913 * version.in: Bump version to 7.9.50.DATE-cvs.
11914
92fc2e69
JB
119152015-01-13 Joel Brobecker <brobecker@adacore.com>
11916
11917 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
11918 Remove trailing new-line in argument of call to warning.
11919
f71f0b0d
JB
119202015-01-13 Joel Brobecker <brobecker@adacore.com>
11921
11922 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
11923 new-line in argument of call to "warning".
11924
04dccad0
JB
119252015-01-13 Joel Brobecker <brobecker@adacore.com>
11926
11927 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
11928 in static block, then try searching for primitive types.
11929
08b13bdd
PP
119302015-01-12 Patrick Palka <patrick@parcs.ath.cx>
11931
11932 * top.h (gdb_add_history): Declare.
11933 * top.c (command_count): New variable.
11934 (gdb_add_history): New function.
11935 (gdb_safe_append_history): New static function.
11936 (quit_force): Call it.
11937 (command_line_input): Use gdb_add_history instead of
11938 add_history.
11939 * event-top.c (command_line_handler): Likewise.
11940
4ac15b59
JC
119412015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
11942
11943 PR gdb/17046
11944 * darwin-nat.c: Replace <machine/setjmp.h> #include by
11945 <setjmp.h> #include.
11946
005e54bb
DE
119472015-01-11 Doug Evans <xdje42@gmail.com>
11948
11949 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
11950
439250fb
DE
119512015-01-11 Doug Evans <xdje42@gmail.com>
11952
11953 PR gdb/15830
11954 * NEWS: The "maint demangle" command is renamed as "demangle".
11955 * demangle.c: #include cli/cli-utils.h, language.h.
11956 (demangle_command): New function.
11957 (_initialize_demangle): Add new command "demangle".
11958 * maint.c (maintenance_demangle): Stub out.
11959 (_initialize_maint_cmds): Update help text for "maint demangle",
11960 and mark as deprecated.
11961
ebf3aa72
MK
119622015-01-11 Mark Kettenis <kettenis@gnu.org>
11963
11964 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
11965 inferior_thread is a function.
11966
6bf045cd
PP
119672015-01-09 Patrick Palka <patrick@parcs.ath.cx>
11968
11969 * Makefile.in (.y.c): Don't munge yacc's #line
11970 directives.
11971
588dcc3e
PP
119722015-01-09 Patrick Palka <patrick@parcs.ath.cx>
11973
11974 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
11975 to prompt for input.
11976 * tui/tui-hooks.c (tui_query_hook): Remove.
11977 (tui_install_hooks): Don't set deprecated_query_hook.
11978 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
11979 height calculation. Always update the command window's cur_line.
11980
9c02b525
PA
119812015-01-09 Pedro Alves <palves@redhat.com>
11982
11983 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
11984 function.
11985 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
11986 declaration.
11987 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
11988 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
11989 stop_reason.
11990 (check_stopped_by_watchpoint): New function.
11991 (save_sigtrap): Reimplement.
11992 (linux_nat_stopped_by_watchpoint): Adjust.
11993 (linux_nat_lp_status_is_event): Delete.
11994 (stop_wait_callback): Only call save_sigtrap after storing the
11995 pending status.
11996 (status_callback): If the thread had been stopped for a breakpoint
11997 that has since been removed, discard the event and resume the LWP.
11998 (count_events_callback, select_event_lwp_callback): Use
11999 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12000 (cancel_breakpoint): Rename to ...
12001 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12002 stopped for a software breakpoint or hardware breakpoint.
12003 (select_event_lwp): Only give preference to the stepping LWP in
12004 all-stop mode. Adjust comments.
12005 (stop_and_resume_callback): Remove references to new_pending_p.
12006 (linux_nat_filter_event): Likewise. Leave exit events of the
12007 leader thread pending here. Handle signal short circuiting here.
12008 Only call save_sigtrap after storing the pending waitstatus.
12009 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12010 new_pending. Don't handle leaving events the caller is not
12011 interested in pending here, nor handle signal short-circuiting
12012 here. Also give equal priority to all LWPs that have had events
12013 in non-stop mode. If reporting a software breakpoint event,
12014 unadjust the LWP's PC.
12015 * linux-nat.h (enum lwp_stop_reason): New.
12016 (struct lwp_info) <stop_pc>: New field.
12017 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12018 (struct lwp_info) <stop_reason>: New field.
12019 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12020
8af756ef
PA
120212015-01-09 Pedro Alves <palves@redhat.com>
12022
12023 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12024 Set the LWP's 'resumed' flag.
12025
8a99810d
PA
120262015-01-09 Pedro Alves <palves@redhat.com>
12027
12028 * linux-nat.c (linux_resume_one_lwp): New function.
12029 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12030 (linux_nat_resume): Use lwp_status_pending_p and
12031 linux_resume_one_lwp.
12032 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12033 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12034 (status_callback, running_callback): Use lwp_status_pending_p.
12035 (lwp_status_pending_p): New function.
12036 (stop_and_resume_callback): Use lwp_status_pending_p.
12037 (linux_nat_filter_event): Use linux_resume_one_lwp.
12038 (linux_nat_wait_1): Always use status_callback to look for an LWP
12039 with a pending status. Use linux_resume_one_lwp.
12040 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12041 linux_resume_one_lwp.
12042
f7ce857f
PA
120432015-01-09 Pedro Alves <palves@redhat.com>
12044
12045 * breakpoint.c (bp_location_inserted_here_p): New function,
12046 factored out from ...
12047 (breakpoint_inserted_here_p): ... here. Use
12048 ALL_BP_LOCATIONS_AT_ADDR.
12049 (software_breakpoint_inserted_here_p): Use
12050 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12051
c1a747c1
PA
120522014-01-09 Pedro Alves <palves@redhat.com>
12053
12054 Skip enabling event reporting if the kernel supports
12055 PTRACE_EVENT_CLONE.
12056 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12057 (thread_db_use_events): New function.
12058 (try_thread_db_load_1): Check thread_db_use_events before enabling
12059 event reporting.
12060 (update_thread_state): New function.
12061 (attach_thread): Use it. Check thread_db_use_events before
12062 enabling event reporting.
12063 (thread_db_detach): Check thread_db_use_events before disabling
12064 event reporting.
12065 (find_new_threads_callback): Check thread_db_use_events before
12066 enabling event reporting. Update the thread's state if not using
12067 libthread_db events.
12068
a33e3959
PA
120692015-01-09 Pedro Alves <palves@redhat.com>
12070
12071 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12072 about to wait for is > 0.
12073 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12074 the kernel thread ID is -1.
12075
8784d563
PA
120762015-01-09 Pedro Alves <palves@redhat.com>
12077
12078 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12079 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12080 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12081 ptrace option flags.
12082 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12083 field.
12084 * nat/linux-procfs.c: Include <dirent.h>.
12085 (linux_proc_get_int): New parameter "warn". Handle it.
12086 (linux_proc_get_tgid): Adjust.
12087 (linux_proc_get_tracerpid): Rename to ...
12088 (linux_proc_get_tracerpid_nowarn): ... this.
12089 (linux_proc_pid_get_state): New function, factored out from
12090 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12091 and handle it.
12092 (linux_proc_pid_is_gone): New function.
12093 (linux_proc_pid_is_stopped): Adjust.
12094 (linux_proc_pid_is_zombie_maybe_warn)
12095 (linux_proc_pid_is_zombie_nowarn): New functions.
12096 (linux_proc_pid_is_zombie): Use
12097 linux_proc_pid_is_zombie_maybe_warn.
12098 (linux_proc_attach_tgid_threads): New function.
12099 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12100 (linux_proc_get_tracerpid): Rename to ...
12101 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12102 (linux_proc_pid_is_gone): New declaration.
12103 (linux_proc_pid_is_zombie): Update comment.
12104 (linux_proc_pid_is_zombie_nowarn): New declaration.
12105 (linux_proc_attach_lwp_func): New typedef.
12106 (linux_proc_attach_tgid_threads): New declaration.
12107 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12108 use nowarn functions.
12109 (linux_ptrace_attach_fail_reason_string): Move here from
12110 gdbserver/linux-low.c and rename.
12111 (ptrace_supports_feature): If the current ptrace options are not
12112 known yet, check them now, instead of asserting.
12113 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12114 Declare.
12115
883ed13e
PA
121162015-01-09 Pedro Alves <palves@redhat.com>
12117
12118 * linux-thread-db.c (thread_db_find_new_threads_silently)
12119 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12120 (find_new_threads_once): Print debug output on gdb_stdlog.
12121
1710aab8
CG
121222015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12123 Pedro Alves <palves@redhat.com>
12124
12125 * compile/compile.c: Include "gdb_wait.h".
12126 (do_rmdir): Check return value, and free 'zap'.
12127
b597c318
YQ
121282015-01-08 Pedro Alves <palves@redhat.com>
12129 Yao Qi <yao@codesourcery.com>
12130
12131 * dwarf2loc.c (indirect_pieced_value): Don't call
12132 gdb_sign_extend. Call extract_signed_integer instead.
12133 * utils.c (gdb_sign_extend): Remove.
12134 * utils.h (gdb_sign_extend): Remove declaration.
12135
025ac414
PM
121362015-01-07 Pierre Muller <muller@sourceware.org>
12137
12138 PR symtab/17811
12139 * stabsread.c (define_symbol): Set language for C++ special symbols.
12140
fa5af12a
PP
121412015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12142
12143 * inflow.c (initial_gdb_ttystate): Tweak comment.
12144
ea42d6f8
JB
121452015-01-07 Joel Brobecker <brobecker@adacore.com>
12146
12147 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12148 comment documenting function.
12149
6a06d660
PP
121502015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12151
12152 * terminal.h (set_initial_gdb_ttystate): Declare.
12153 * inflow.c (initial_gdb_ttystate): New static variable.
12154 (set_initial_gdb_ttystate): New setter.
12155 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12156 instead of our current terminal state.
12157 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12158
e810d75b
JB
121592015-01-07 Joel Brobecker <brobecker@adacore.com>
12160
12161 * guile/scm-type.c (tyscm_array_1): Add comment.
12162 * python/py-type.c (typy_array_1): Add comment.
12163
fce10a84
JB
121642015-01-06 Joel Brobecker <brobecker@adacore.com>
12165
12166 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12167 error if N2 is equal to N1 - 1.
12168
8503d6e1
JB
121692015-01-06 Joel Brobecker <brobecker@adacore.com>
12170
12171 * python/py-type.c (typy_array_1): Do not raise negative-length
12172 exception if N2 is equal to N1 - 1.
12173
4d29c0a8
DE
121742015-01-03 Doug Evans <xdje42@gmail.com>
12175
12176 * c-exp.y: Whitespace cleanup.
12177 (classify_inner_name): Remove extra ;.
12178
eaa6a9a4
MR
121792015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12180
12181 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12182 offset signed.
12183
02fe9972
DE
121842015-01-02 Doug Evans <dje@google.com>
12185
12186 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12187
e2ada9cb
DE
121882015-01-02 Doug Evans <dje@google.com>
12189
12190 * symtab.h (struct symbol): Fix typo in comment.
12191
32d0add0
JB
121922015-01-01 Joel Brobecker <brobecker@adacore.com>
12193
12194 Update year range in copyright notice of all files.
12195
76f2b779
JB
121962015-01-01 Joel Brobecker <brobecker@adacore.com>
12197
12198 * top.c (print_gdb_version): Update copyright year to 2015.
12199
077309e2 122002015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12201
077309e2 12202 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12203
077309e2 12204For older changes see ChangeLog-2014.
c906108c
SS
12205\f
12206Local Variables:
12207mode: change-log
12208left-margin: 8
12209fill-column: 74
12210version-control: never
57da7796 12211coding: utf-8
c906108c 12212End:
This page took 2.719508 seconds and 4 git commands to generate.