1 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
3 * d-namespace.c (d_lookup_symbol): New arg langdef.
4 All callers updated. Support looking up symbol as a primitive type.
5 (lookup_module_scope): New arg langdef. All callers updated.
6 Call d_lookup_symbol directly for simple bare symbols.
8 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
10 * macrocmd.c (print_macro_callback): Add cast(s).
11 * macrotab.c (macro_bcache_str): Likewise.
12 (new_macro_definition): Likewise.
13 * main.c (captured_main): Likewise.
14 * maint.c (print_bfd_section_info): Likewise.
15 * mdebugread.c (mdebug_build_psymtabs): Likewise.
16 (basic_type): Likewise.
17 * memattr.c (mem_region_cmp): Likewise.
18 * memory-map.c (memory_map_start_memory): Likewise.
19 (memory_map_end_memory): Likewise.
20 (memory_map_start_property): Likewise.
21 (memory_map_end_property): Likewise.
22 (clear_result): Likewise.
23 * memrange.c (compare_mem_ranges): Likewise.
24 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
25 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
26 * mi/mi-console.c (mi_console_file_delete): Likewise.
27 (mi_console_file_fputs): Likewise.
28 (mi_console_raw_packet): Likewise.
29 (mi_console_file_flush): Likewise.
30 (mi_console_set_raw): Likewise.
31 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
32 (mi_new_thread): Likewise.
33 (mi_thread_exit): Likewise.
34 (mi_record_changed): Likewise.
35 (mi_inferior_added): Likewise.
36 (mi_inferior_appeared): Likewise.
37 (mi_inferior_exit): Likewise.
38 (mi_inferior_removed): Likewise.
39 (mi_interp_data): Likewise.
40 (mi_on_normal_stop): Likewise.
41 (mi_traceframe_changed): Likewise.
42 (mi_tsv_created): Likewise.
43 (mi_tsv_deleted): Likewise.
44 (mi_tsv_modified): Likewise.
45 (mi_breakpoint_created): Likewise.
46 (mi_breakpoint_deleted): Likewise.
47 (mi_breakpoint_modified): Likewise.
48 (mi_output_running_pid): Likewise.
49 (mi_inferior_count): Likewise.
50 (mi_solib_loaded): Likewise.
51 (mi_solib_unloaded): Likewise.
52 (mi_command_param_changed): Likewise.
53 (mi_memory_changed): Likewise.
54 (report_initial_inferior): Likewise.
55 (mi_ui_out): Likewise.
56 (mi_set_logging): Likewise.
57 * mi/mi-main.c (collect_cores): Likewise.
58 (print_one_inferior): Likewise.
59 (free_vector_of_ints): Likewise.
60 (free_splay_tree): Likewise.
61 (mi_execute_command): Likewise.
62 * mi/mi-out.c (mi_table_body): Likewise.
63 (mi_table_end): Likewise.
64 (mi_table_header): Likewise.
67 (mi_field_int): Likewise.
68 (mi_field_string): Likewise.
69 (mi_field_fmt): Likewise.
71 (mi_redirect): Likewise.
72 (field_separator): Likewise.
75 (mi_out_buffered): Likewise.
76 (mi_out_rewind): Likewise.
77 (mi_out_put): Likewise.
78 (mi_version): Likewise.
79 (mi_out_data_dtor): Likewise.
80 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
81 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
82 * minidebug.c (lzma_open): Likewise.
83 (lzma_pread): Likewise.
84 (lzma_close): Likewise.
85 (lzma_stat): Likewise.
86 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
87 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
88 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
89 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
90 (mips_micro_frame_cache): Likewise.
91 (mips_insn32_frame_cache): Likewise.
92 (mips_stub_frame_cache): Likewise.
93 (gdb_print_insn_mips): Likewise.
94 (value_of_mips_user_reg): Likewise.
95 (mips_gdbarch_init): Likewise.
96 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
97 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
98 (mipsnbsd_supply_gregset): Likewise.
99 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
100 (am33_collect_gregset_method): Likewise.
101 (am33_collect_fpregset_method): Likewise.
102 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
103 * moxie-tdep.c (moxie_frame_cache): Likewise.
104 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
105 (msp430_analyze_frame_prologue): Likewise.
106 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
107 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
108 (nios2_collect_gregset): Likewise.
109 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
110 (nios2_stub_frame_cache): Likewise.
111 * objc-lang.c (find_methods): Likewise.
112 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
113 (get_objfile_pspace_data): Likewise.
114 (get_objfile_bfd_data): Likewise.
115 (objfile_bfd_data_free): Likewise.
116 (add_to_objfile_sections): Likewise.
117 (do_free_objfile_cleanup): Likewise.
118 (resume_section_map_updates_cleanup): Likewise.
119 * opencl-lang.c (builtin_opencl_type): Likewise.
120 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
121 * osdata.c (osdata_start_osdata): Likewise.
122 (osdata_start_item): Likewise.
123 (osdata_start_column): Likewise.
124 (osdata_end_column): Likewise.
125 (clear_parsing_data): Likewise.
126 (osdata_free_cleanup): Likewise.
127 * parse.c (type_stack_cleanup): Likewise.
128 (exp_uses_objfile_iter): Likewise.
129 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
130 (ppc_linux_collect_gregset): Likewise.
131 (ppu2spu_prev_arch): Likewise.
132 (ppu2spu_this_id): Likewise.
133 (ppu2spu_prev_register): Likewise.
134 (ppu2spu_unwind_register): Likewise.
135 (ppu2spu_sniffer): Likewise.
136 (ppu2spu_dealloc_cache): Likewise.
137 (ppc_linux_init_abi): Likewise.
138 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
139 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
140 * progspace.c (restore_program_space): Likewise.
141 * psymtab.c (find_pc_sect_psymtab): Likewise.
142 (compare_psymbols): Likewise.
143 (psymbol_bcache_full): Likewise.
144 (allocate_psymtab): Likewise.
145 (discard_psymtabs_upto): Likewise.
146 * python/py-block.c (set_block): Likewise.
147 (del_objfile_blocks): Likewise.
148 * python/py-breakpoint.c (build_bp_list): Likewise.
149 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
150 (build_inferior_list): Likewise.
151 (py_free_inferior): Likewise.
152 * python/py-objfile.c (py_free_objfile): Likewise.
153 (objfile_to_objfile_object): Likewise.
154 * python/py-prettyprint.c (py_restore_tstate): Likewise.
155 * python/py-progspace.c (py_free_pspace): Likewise.
156 (pspace_to_pspace_object): Likewise.
157 * python/py-symbol.c (set_symbol): Likewise.
158 (del_objfile_symbols): Likewise.
159 * python/py-symtab.c (set_sal): Likewise.
160 (set_symtab): Likewise.
161 (del_objfile_symtab): Likewise.
162 (del_objfile_sal): Likewise.
163 * python/py-type.c (save_objfile_types): Likewise.
164 (set_type): Likewise.
165 * python/py-unwind.c (pyuw_prev_register): Likewise.
166 (pyuw_on_new_gdbarch): Likewise.
167 * python/py-utils.c (py_decref): Likewise.
168 (py_xdecref): Likewise.
169 (gdb_py_generic_dict): Likewise.
170 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
171 (gdbpy_clone_xmethod_worker_data): Likewise.
172 (gdbpy_get_xmethod_arg_types): Likewise.
173 (gdbpy_get_xmethod_result_type): Likewise.
174 (gdbpy_invoke_xmethod): Likewise.
175 * python/python.c (gdbpy_apply_type_printers): Likewise.
176 (gdbpy_free_type_printers): Likewise.
177 * record-btrace.c (record_btrace_disable_callback): Likewise.
178 (bfcache_hash): Likewise.
179 (bfcache_eq): Likewise.
180 (btrace_get_frame_function): Likewise.
181 (record_btrace_frame_unwind_stop_reason): Likewise.
182 (record_btrace_frame_this_id): Likewise.
183 (record_btrace_frame_prev_register): Likewise.
184 (record_btrace_frame_dealloc_cache): Likewise.
185 * record-full.c (record_full_message_wrapper): Likewise.
186 (record_full_save_cleanups): Likewise.
187 * regcache.c (regcache_descr): Likewise.
188 (do_regcache_xfree): Likewise.
189 (do_regcache_invalidate): Likewise.
190 (do_cooked_read): Likewise.
191 (regcache_transfer_regset): Likewise.
192 * reggroups.c (reggroup_add): Likewise.
193 (reggroup_next): Likewise.
194 (reggroup_prev): Likewise.
195 * remote-fileio.c (do_remote_fileio_request): Likewise.
196 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
197 (do_notif_event_xfree): Likewise.
198 * remote.c (get_remote_arch_state): Likewise.
199 (remote_pspace_data_cleanup): Likewise.
200 (get_remote_exec_file): Likewise.
201 (set_pspace_remote_exec_file): Likewise.
202 (compare_pnums): Likewise.
203 (clear_threads_listing_context): Likewise.
204 (remote_newthread_step): Likewise.
205 (start_thread): Likewise.
206 (end_thread): Likewise.
207 (remove_child_of_pending_fork): Likewise.
208 (remove_stop_reply_for_inferior): Likewise.
209 (remove_stop_reply_of_remote_state): Likewise.
210 (remote_notif_remove_once_on_match): Likewise.
211 (stop_reply_match_ptid_and_ws): Likewise.
212 (kill_child_of_pending_fork): Likewise.
213 (register_remote_g_packet_guess): Likewise.
214 (remote_read_description_p): Likewise.
215 (remote_read_description): Likewise.
216 (free_actions_list_cleanup_wrapper): Likewise.
217 (remote_async_serial_handler): Likewise.
218 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
219 (rl78_analyze_frame_prologue): Likewise.
220 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
221 (ppc_supply_fpregset): Likewise.
222 (ppc_supply_vsxregset): Likewise.
223 (ppc_supply_vrregset): Likewise.
224 (ppc_collect_gregset): Likewise.
225 (ppc_collect_fpregset): Likewise.
226 (ppc_collect_vsxregset): Likewise.
227 (ppc_collect_vrregset): Likewise.
228 (e500_move_ev_register): Likewise.
229 (do_regcache_raw_write): Likewise.
230 (rs6000_frame_cache): Likewise.
231 (rs6000_epilogue_frame_cache): Likewise.
232 (rs6000_gdbarch_init): Likewise.
233 * rx-tdep.c (rx_get_opcode_byte): Likewise.
234 (rx_analyze_frame_prologue): Likewise.
235 (rx_frame_type): Likewise.
236 (rx_frame_sniffer_common): Likewise.
237 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
238 (s390_frame_unwind_cache): Likewise.
239 (s390_stub_frame_unwind_cache): Likewise.
240 (s390_sigtramp_frame_unwind_cache): Likewise.
241 * score-tdep.c (score_make_prologue_cache): Likewise.
242 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
243 (sentinel_frame_prev_arch): Likewise.
244 * ser-base.c (fd_event): Likewise.
245 (push_event): Likewise.
246 (ser_base_write): Likewise.
247 * ser-pipe.c (pipe_close): Likewise.
248 * serial.c (serial_write): Likewise.
249 * sh-tdep.c (sh_frame_cache): Likewise.
250 (sh_stub_this_id): Likewise.
251 * sh64-tdep.c (sh64_frame_cache): Likewise.
252 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
253 (library_list_start_library): Likewise.
254 (library_list_start_list): Likewise.
255 (solib_aix_free_library_list): Likewise.
256 * solib-darwin.c (get_darwin_info): Likewise.
257 * solib-dsbt.c (get_dsbt_info): Likewise.
258 * solib-spu.c (append_ocl_sos): Likewise.
259 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
260 (get_svr4_info): Likewise.
261 (library_list_start_library): Likewise.
262 (svr4_library_list_start_list): Likewise.
263 (hash_probe_and_action): Likewise.
264 (equal_probe_and_action): Likewise.
265 (svr4_update_solib_event_breakpoint): Likewise.
266 (set_solib_svr4_fetch_link_map_offsets): Likewise.
267 (svr4_fetch_link_map_offsets): Likewise.
268 (svr4_have_link_map_offsets): Likewise.
269 * solib-target.c (library_list_start_segment): Likewise.
270 (library_list_start_section): Likewise.
271 (library_list_start_library): Likewise.
272 (library_list_end_library): Likewise.
273 (library_list_start_list): Likewise.
274 (solib_target_free_library_list): Likewise.
275 * solib.c (solib_ops): Likewise.
276 (set_solib_ops): Likewise.
277 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
278 * sparc-tdep.c (sparc_frame_cache): Likewise.
279 (sparc32_frame_cache): Likewise.
280 (sparc32_supply_gregset): Likewise.
281 (sparc32_collect_gregset): Likewise.
282 (sparc32_supply_fpregset): Likewise.
283 (sparc32_collect_fpregset): Likewise.
284 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
285 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
286 (sparc64_collect_gregset): Likewise.
287 (sparc64_supply_fpregset): Likewise.
288 (sparc64_collect_fpregset): Likewise.
289 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
290 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
291 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
292 (sparc64obsd_trapframe_cache): Likewise.
293 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
294 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
295 * spu-multiarch.c (spu_gdbarch): Likewise.
296 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
297 (spu2ppu_prev_arch): Likewise.
298 (spu2ppu_this_id): Likewise.
299 (spu2ppu_prev_register): Likewise.
300 (spu2ppu_dealloc_cache): Likewise.
301 (spu_dis_asm_print_address): Likewise.
302 (gdb_print_insn_spu): Likewise.
303 (spu_get_overlay_table): Likewise.
304 * stabsread.c (rs6000_builtin_type): Likewise.
305 * stack.c (do_print_variable_and_value): Likewise.
306 * stap-probe.c (get_stap_base_address_1): Likewise.
307 * symfile-debug.c (debug_qf_has_symbols): Likewise.
308 (debug_qf_find_last_source_symtab): Likewise.
309 (debug_qf_forget_cached_source_info): Likewise.
310 (debug_qf_map_symtabs_matching_filename): Likewise.
311 (debug_qf_lookup_symbol): Likewise.
312 (debug_qf_print_stats): Likewise.
313 (debug_qf_dump): Likewise.
314 (debug_qf_relocate): Likewise.
315 (debug_qf_expand_symtabs_for_function): Likewise.
316 (debug_qf_expand_all_symtabs): Likewise.
317 (debug_qf_expand_symtabs_with_fullname): Likewise.
318 (debug_qf_map_matching_symbols): Likewise.
319 (debug_qf_expand_symtabs_matching): Likewise.
320 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
321 (debug_qf_map_symbol_filenames): Likewise.
322 (debug_sym_get_probes): Likewise.
323 (debug_sym_new_init): Likewise.
324 (debug_sym_init): Likewise.
325 (debug_sym_read): Likewise.
326 (debug_sym_read_psymbols): Likewise.
327 (debug_sym_finish): Likewise.
328 (debug_sym_offsets): Likewise.
329 (debug_sym_read_linetable): Likewise.
330 (debug_sym_relocate): Likewise.
331 (uninstall_symfile_debug_logging): Likewise.
332 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
333 * symfile.c (place_section): Likewise.
334 (add_section_size_callback): Likewise.
335 (load_progress): Likewise.
336 (load_section_callback): Likewise.
337 (clear_memory_write_data): Likewise.
338 (allocate_symtab): Likewise.
339 * symmisc.c (maintenance_expand_file_matcher): Likewise.
340 * symtab.c (lookup_symtab_callback): Likewise.
341 (hash_demangled_name_entry): Likewise.
342 (eq_demangled_name_entry): Likewise.
343 (get_symbol_cache): Likewise.
344 (symbol_cache_cleanup): Likewise.
345 (set_symbol_cache_size): Likewise.
346 (symbol_cache_flush): Likewise.
347 (maintenance_print_symbol_cache): Likewise.
348 (maintenance_print_symbol_cache_statistics): Likewise.
349 (delete_filename_seen_cache): Likewise.
350 (output_partial_symbol_filename): Likewise.
351 (search_symbols_file_matches): Likewise.
352 (search_symbols_name_matches): Likewise.
353 (do_free_completion_list): Likewise.
354 (maybe_add_partial_symtab_filename): Likewise.
355 (get_main_info): Likewise.
356 (main_info_cleanup): Likewise.
357 * target-dcache.c (target_dcache_cleanup): Likewise.
358 (target_dcache_init_p): Likewise.
359 (target_dcache_invalidate): Likewise.
360 (target_dcache_get): Likewise.
361 (target_dcache_get_or_init): Likewise.
362 * target-descriptions.c (target_find_description): Likewise.
363 (tdesc_find_type): Likewise.
364 (tdesc_data_cleanup): Likewise.
365 (tdesc_find_arch_register): Likewise.
366 (tdesc_register_name): Likewise.
367 (tdesc_register_type): Likewise.
368 (tdesc_register_reggroup_p): Likewise.
369 (set_tdesc_pseudo_register_name): Likewise.
370 (set_tdesc_pseudo_register_type): Likewise.
371 (set_tdesc_pseudo_register_reggroup_p): Likewise.
372 (tdesc_use_registers): Likewise.
373 (free_target_description): Likewise.
374 * target-memory.c (compare_block_starting_address): Likewise.
375 (cleanup_request_data): Likewise.
376 (cleanup_write_requests_vector): Likewise.
377 * target.c (open_target): Likewise.
378 (cleanup_restore_target_terminal): Likewise.
379 (free_memory_read_result_vector): Likewise.
380 * thread.c (disable_thread_stack_temporaries): Likewise.
381 (finish_thread_state_cleanup): Likewise.
382 (do_restore_current_thread_cleanup): Likewise.
383 (restore_current_thread_cleanup_dtor): Likewise.
384 (set_thread_refcount): Likewise.
385 (tp_array_compar): Likewise.
386 (do_captured_thread_select): Likewise.
387 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
388 (tic6x_stub_this_id): Likewise.
389 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
390 * top.c (do_restore_instream_cleanup): Likewise.
391 (gdb_readline_wrapper_cleanup): Likewise.
392 (kill_or_detach): Likewise.
393 (print_inferior_quit_action): Likewise.
394 * tracefile-tfile.c (match_blocktype): Likewise.
395 (build_traceframe_info): Likewise.
396 * tracefile.c (trace_file_writer_xfree): Likewise.
397 * tracepoint.c (memrange_cmp): Likewise.
398 (do_collect_symbol): Likewise.
399 (do_clear_collection_list): Likewise.
400 (do_restore_current_traceframe_cleanup): Likewise.
401 (restore_current_traceframe_cleanup_dtor): Likewise.
402 (free_current_marker): Likewise.
403 (traceframe_info_start_memory): Likewise.
404 (traceframe_info_start_tvar): Likewise.
405 (free_result): Likewise.
406 * tramp-frame.c (tramp_frame_cache): Likewise.
407 * tui/tui-file.c (tui_file_delete): Likewise.
408 (tui_fileopen): Likewise.
409 (tui_sfileopen): Likewise.
410 (tui_file_isatty): Likewise.
411 (tui_file_rewind): Likewise.
412 (tui_file_put): Likewise.
413 (tui_file_fputs): Likewise.
414 (tui_file_get_strbuf): Likewise.
415 (tui_file_adjust_strbuf): Likewise.
416 (tui_file_flush): Likewise.
417 * tui/tui-layout.c (make_command_window): Likewise.
418 (make_data_window): Likewise.
419 (show_source_disasm_command): Likewise.
420 (show_data): Likewise.
421 (make_source_or_disasm_window): Likewise.
422 (show_source_or_disasm_and_command): Likewise.
423 * tui/tui-out.c (tui_field_int): Likewise.
424 (tui_field_string): Likewise.
425 (tui_field_fmt): Likewise.
426 (tui_text): Likewise.
427 * typeprint.c (hash_typedef_field): Likewise.
428 (eq_typedef_field): Likewise.
429 (do_free_typedef_hash): Likewise.
430 (copy_typedef_hash_element): Likewise.
431 (do_free_global_table): Likewise.
432 (find_global_typedef): Likewise.
433 (find_typedef_in_hash): Likewise.
434 * ui-file.c (ui_file_write_for_put): Likewise.
435 (do_ui_file_xstrdup): Likewise.
436 (mem_file_delete): Likewise.
437 (mem_file_rewind): Likewise.
438 (mem_file_put): Likewise.
439 (mem_file_write): Likewise.
440 (stdio_file_delete): Likewise.
441 (stdio_file_flush): Likewise.
442 (stdio_file_read): Likewise.
443 (stdio_file_write): Likewise.
444 (stdio_file_write_async_safe): Likewise.
445 (stdio_file_fputs): Likewise.
446 (stdio_file_isatty): Likewise.
447 (stdio_file_fseek): Likewise.
448 (tee_file_delete): Likewise.
449 (tee_file_flush): Likewise.
450 (tee_file_write): Likewise.
451 (tee_file_fputs): Likewise.
452 (tee_file_isatty): Likewise.
453 * ui-out.c (do_cleanup_table_end): Likewise.
454 (do_cleanup_end): Likewise.
455 * user-regs.c (user_reg_add): Likewise.
456 (user_reg_map_name_to_regnum): Likewise.
457 (usernum_to_user_reg): Likewise.
458 (maintenance_print_user_registers): Likewise.
459 * utils.c (do_bfd_close_cleanup): Likewise.
460 (do_fclose_cleanup): Likewise.
461 (do_obstack_free): Likewise.
462 (do_ui_file_delete): Likewise.
463 (do_ui_out_redirect_pop): Likewise.
464 (do_free_section_addr_info): Likewise.
465 (restore_integer): Likewise.
466 (do_unpush_target): Likewise.
467 (do_htab_delete_cleanup): Likewise.
468 (do_restore_ui_file): Likewise.
469 (do_value_free): Likewise.
470 (do_free_so): Likewise.
471 (free_current_contents): Likewise.
472 (do_regfree_cleanup): Likewise.
473 (core_addr_hash): Likewise.
474 (core_addr_eq): Likewise.
475 (do_free_char_ptr_vec): Likewise.
476 * v850-tdep.c (v850_frame_cache): Likewise.
477 * varobj.c (do_free_variable_cleanup): Likewise.
478 * vax-tdep.c (vax_supply_gregset): Likewise.
479 (vax_frame_cache): Likewise.
480 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
481 * xml-support.c (gdb_xml_body_text): Likewise.
482 (gdb_xml_values_cleanup): Likewise.
483 (gdb_xml_start_element): Likewise.
484 (gdb_xml_start_element_wrapper): Likewise.
485 (gdb_xml_end_element): Likewise.
486 (gdb_xml_end_element_wrapper): Likewise.
487 (gdb_xml_cleanup): Likewise.
488 (gdb_xml_fetch_external_entity): Likewise.
489 (gdb_xml_parse_attr_enum): Likewise.
490 (xinclude_start_include): Likewise.
491 (xinclude_end_include): Likewise.
492 (xml_xinclude_default): Likewise.
493 (xml_xinclude_start_doctype): Likewise.
494 (xml_xinclude_end_doctype): Likewise.
495 (xml_xinclude_cleanup): Likewise.
496 (xml_fetch_content_from_file): Likewise.
497 * xml-syscall.c (free_syscalls_info): Likewise.
498 (syscall_start_syscall): Likewise.
499 * xml-tdesc.c (tdesc_end_arch): Likewise.
500 (tdesc_end_osabi): Likewise.
501 (tdesc_end_compatible): Likewise.
502 (tdesc_start_target): Likewise.
503 (tdesc_start_feature): Likewise.
504 (tdesc_start_reg): Likewise.
505 (tdesc_start_union): Likewise.
506 (tdesc_start_struct): Likewise.
507 (tdesc_start_flags): Likewise.
508 (tdesc_start_field): Likewise.
509 (tdesc_start_vector): Likewise.
510 (fetch_available_features_from_target): Likewise.
511 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
512 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
513 (xtensa_frame_cache): Likewise.
514 (xtensa_frame_prev_register): Likewise.
515 (xtensa_extract_return_value): Likewise.
517 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
519 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
520 (aarch64_make_stub_cache): Likewise.
521 (value_of_aarch64_user_reg): Likewise.
522 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
523 (get_ada_inferior_data): Likewise.
524 (get_ada_pspace_data): Likewise.
525 (ada_pspace_data_cleanup): Likewise.
526 (ada_complete_symbol_matcher): Likewise.
527 (ada_exc_search_name_matches): Likewise.
528 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
529 (get_ada_tasks_inferior_data): Likewise.
530 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
531 (splay_obstack_alloc): Likewise.
532 (splay_obstack_free): Likewise.
533 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
534 (alpha_linux_collect_gregset): Likewise.
535 (alpha_linux_supply_fpregset): Likewise.
536 (alpha_linux_collect_fpregset): Likewise.
537 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
538 * alpha-tdep.c (alpha_lds): Likewise.
539 (alpha_sts): Likewise.
540 (alpha_sigtramp_frame_unwind_cache): Likewise.
541 (alpha_heuristic_frame_unwind_cache): Likewise.
542 (alpha_supply_int_regs): Likewise.
543 (alpha_fill_int_regs): Likewise.
544 (alpha_supply_fp_regs): Likewise.
545 (alpha_fill_fp_regs): Likewise.
546 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
547 (alphanbsd_aout_supply_gregset): Likewise.
548 (alphanbsd_supply_gregset): Likewise.
549 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
550 (amd64_x32_linux_init_abi): Likewise.
551 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
552 (amd64_collect_native_gregset): Likewise.
553 * amd64-tdep.c (amd64_frame_cache): Likewise.
554 (amd64_sigtramp_frame_cache): Likewise.
555 (amd64_epilogue_frame_cache): Likewise.
556 (amd64_supply_fxsave): Likewise.
557 (amd64_supply_xsave): Likewise.
558 (amd64_collect_fxsave): Likewise.
559 (amd64_collect_xsave): Likewise.
560 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
561 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
562 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
563 (arm_linux_collect_gregset): Likewise.
564 (arm_linux_supply_nwfpe): Likewise.
565 (arm_linux_collect_nwfpe): Likewise.
566 (arm_linux_supply_vfp): Likewise.
567 (arm_linux_collect_vfp): Likewise.
568 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
569 (arm_prologue_unwind_stop_reason): Likewise.
570 (arm_prologue_this_id): Likewise.
571 (arm_prologue_prev_register): Likewise.
572 (arm_exidx_data_free): Likewise.
573 (arm_find_exidx_entry): Likewise.
574 (arm_stub_this_id): Likewise.
575 (arm_m_exception_this_id): Likewise.
576 (arm_m_exception_prev_register): Likewise.
577 (arm_normal_frame_base): Likewise.
578 (gdb_print_insn_arm): Likewise.
579 (arm_objfile_data_free): Likewise.
580 (arm_record_special_symbol): Likewise.
581 (value_of_arm_user_reg): Likewise.
582 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
583 (armbsd_supply_gregset): Likewise.
584 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
585 (get_auto_load_pspace_data): Likewise.
586 (hash_loaded_script_entry): Likewise.
587 (eq_loaded_script_entry): Likewise.
588 (clear_section_scripts): Likewise.
589 (collect_matching_scripts): Likewise.
590 * auxv.c (auxv_inferior_data_cleanup): Likewise.
591 (get_auxv_inferior_data): Likewise.
592 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
593 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
594 * bfd-target.c (target_bfd_xfer_partial): Likewise.
595 (target_bfd_xclose): Likewise.
596 (target_bfd_get_section_table): Likewise.
597 * bfin-tdep.c (bfin_frame_cache): Likewise.
598 * block.c (find_block_in_blockvector): Likewise.
599 (call_site_for_pc): Likewise.
600 (block_find_non_opaque_type_preferred): Likewise.
601 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
602 (signal_catchpoint_remove_location): Likewise.
603 (signal_catchpoint_breakpoint_hit): Likewise.
604 (signal_catchpoint_print_one): Likewise.
605 (signal_catchpoint_print_mention): Likewise.
606 (signal_catchpoint_print_recreate): Likewise.
607 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
608 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
609 (bp_location_compare_addrs): Likewise.
610 (get_first_locp_gte_addr): Likewise.
611 (check_tracepoint_command): Likewise.
612 (do_map_commands_command): Likewise.
613 (get_breakpoint_objfile_data): Likewise.
614 (free_breakpoint_probes): Likewise.
615 (do_captured_breakpoint_query): Likewise.
616 (compare_breakpoints): Likewise.
617 (bp_location_compare): Likewise.
618 (bpstat_remove_breakpoint_callback): Likewise.
619 (do_delete_breakpoint_cleanup): Likewise.
620 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
621 (bsd_uthread_set_collect_uthread): Likewise.
622 (bsd_uthread_activate): Likewise.
623 (bsd_uthread_fetch_registers): Likewise.
624 (bsd_uthread_store_registers): Likewise.
625 * btrace.c (check_xml_btrace_version): Likewise.
626 (parse_xml_btrace_block): Likewise.
627 (parse_xml_btrace_pt_config_cpu): Likewise.
628 (parse_xml_btrace_pt_raw): Likewise.
629 (parse_xml_btrace_pt): Likewise.
630 (parse_xml_btrace_conf_bts): Likewise.
631 (parse_xml_btrace_conf_pt): Likewise.
632 (do_btrace_data_cleanup): Likewise.
633 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
634 * charset.c (cleanup_iconv): Likewise.
635 (do_cleanup_iterator): Likewise.
636 * cli-out.c (cli_uiout_dtor): Likewise.
637 (cli_table_begin): Likewise.
638 (cli_table_body): Likewise.
639 (cli_table_end): Likewise.
640 (cli_table_header): Likewise.
641 (cli_begin): Likewise.
643 (cli_field_int): Likewise.
644 (cli_field_skip): Likewise.
645 (cli_field_string): Likewise.
646 (cli_field_fmt): Likewise.
647 (cli_spaces): Likewise.
648 (cli_text): Likewise.
649 (cli_message): Likewise.
650 (cli_wrap_hint): Likewise.
651 (cli_flush): Likewise.
652 (cli_redirect): Likewise.
653 (out_field_fmt): Likewise.
654 (field_separator): Likewise.
655 (cli_out_set_stream): Likewise.
656 * cli/cli-cmds.c (compare_symtabs): Likewise.
657 * cli/cli-dump.c (call_dump_func): Likewise.
658 (restore_section_callback): Likewise.
659 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
660 (do_restore_user_call_depth): Likewise.
661 (do_free_command_lines_cleanup): Likewise.
662 * coff-pe-read.c (get_section_vmas): Likewise.
665 * coffread.c (coff_symfile_read): Likewise.
666 * common/agent.c (agent_look_up_symbols): Likewise.
667 * common/filestuff.c (do_close_cleanup): Likewise.
668 * common/format.c (free_format_pieces_cleanup): Likewise.
669 * common/vec.c (vec_o_reserve): Likewise.
670 * compile/compile-c-support.c (print_one_macro): Likewise.
671 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
672 (eq_symbol_error): Likewise.
673 (del_symbol_error): Likewise.
674 (error_symbol_once): Likewise.
675 (gcc_convert_symbol): Likewise.
676 (gcc_symbol_address): Likewise.
677 (hash_symname): Likewise.
678 (eq_symname): Likewise.
679 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
680 (eq_type_map_instance): Likewise.
681 (insert_type): Likewise.
682 (convert_type): Likewise.
683 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
684 (setup_sections): Likewise.
685 (link_hash_table_free): Likewise.
686 (copy_sections): Likewise.
687 * compile/compile-object-run.c (do_module_cleanup): Likewise.
688 * compile/compile.c (compile_print_value): Likewise.
689 (do_rmdir): Likewise.
690 (cleanup_compile_instance): Likewise.
691 (cleanup_unlink_file): Likewise.
692 * completer.c (free_completion_tracker): Likewise.
693 * corelow.c (add_to_spuid_list): Likewise.
694 * cp-namespace.c (reset_directive_searched): Likewise.
695 * cp-support.c (reset_directive_searched): Likewise.
696 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
697 (cris_frame_unwind_cache): Likewise.
698 * d-lang.c (builtin_d_type): Likewise.
699 * d-namespace.c (reset_directive_searched): Likewise.
700 * dbxread.c (dbx_free_symfile_info): Likewise.
701 (do_free_bincl_list_cleanup): Likewise.
702 * disasm.c (hash_dis_line_entry): Likewise.
703 (eq_dis_line_entry): Likewise.
704 (dis_asm_print_address): Likewise.
705 (fprintf_disasm): Likewise.
706 (do_ui_file_delete): Likewise.
707 * doublest.c (convert_floatformat_to_doublest): Likewise.
708 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
709 (dummy_frame_prev_register): Likewise.
710 (dummy_frame_this_id): Likewise.
711 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
712 (cache_eq): Likewise.
713 (cache_find): Likewise.
714 (tailcall_frame_this_id): Likewise.
715 (dwarf2_tailcall_prev_register_first): Likewise.
716 (tailcall_frame_prev_register): Likewise.
717 (tailcall_frame_dealloc_cache): Likewise.
718 (tailcall_frame_prev_arch): Likewise.
719 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
720 (dwarf2_frame_set_init_reg): Likewise.
721 (dwarf2_frame_init_reg): Likewise.
722 (dwarf2_frame_set_signal_frame_p): Likewise.
723 (dwarf2_frame_signal_frame_p): Likewise.
724 (dwarf2_frame_set_adjust_regnum): Likewise.
725 (dwarf2_frame_adjust_regnum): Likewise.
726 (clear_pointer_cleanup): Likewise.
727 (dwarf2_frame_cache): Likewise.
728 (find_cie): Likewise.
729 (dwarf2_frame_find_fde): Likewise.
730 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
731 (free_dwarf_expr_context_cleanup): Likewise.
732 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
733 (locexpr_get_frame_base): Likewise.
734 (loclist_find_frame_base_location): Likewise.
735 (loclist_get_frame_base): Likewise.
736 (dwarf_expr_dwarf_call): Likewise.
737 (dwarf_expr_get_base_type): Likewise.
738 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
739 (dwarf_expr_get_obj_addr): Likewise.
740 (entry_data_value_coerce_ref): Likewise.
741 (entry_data_value_copy_closure): Likewise.
742 (entry_data_value_free_closure): Likewise.
743 (get_frame_address_in_block_wrapper): Likewise.
744 (dwarf2_evaluate_property): Likewise.
745 (dwarf2_compile_property_to_c): Likewise.
746 (needs_frame_read_addr_from_reg): Likewise.
747 (needs_frame_get_reg_value): Likewise.
748 (needs_frame_frame_base): Likewise.
749 (needs_frame_frame_cfa): Likewise.
750 (needs_frame_tls_address): Likewise.
751 (needs_frame_dwarf_call): Likewise.
752 (needs_dwarf_reg_entry_value): Likewise.
753 (get_ax_pc): Likewise.
754 (locexpr_read_variable): Likewise.
755 (locexpr_read_variable_at_entry): Likewise.
756 (locexpr_read_needs_frame): Likewise.
757 (locexpr_describe_location): Likewise.
758 (locexpr_tracepoint_var_ref): Likewise.
759 (locexpr_generate_c_location): Likewise.
760 (loclist_read_variable): Likewise.
761 (loclist_read_variable_at_entry): Likewise.
762 (loclist_describe_location): Likewise.
763 (loclist_tracepoint_var_ref): Likewise.
764 (loclist_generate_c_location): Likewise.
765 * dwarf2read.c (line_header_hash_voidp): Likewise.
766 (line_header_eq_voidp): Likewise.
767 (dwarf2_has_info): Likewise.
768 (dwarf2_get_section_info): Likewise.
769 (locate_dwz_sections): Likewise.
770 (hash_file_name_entry): Likewise.
771 (eq_file_name_entry): Likewise.
772 (delete_file_name_entry): Likewise.
773 (dw2_setup): Likewise.
774 (dw2_get_file_names_reader): Likewise.
775 (dw2_find_pc_sect_compunit_symtab): Likewise.
776 (hash_signatured_type): Likewise.
777 (eq_signatured_type): Likewise.
778 (add_signatured_type_cu_to_table): Likewise.
779 (create_debug_types_hash_table): Likewise.
780 (lookup_dwo_signatured_type): Likewise.
781 (lookup_dwp_signatured_type): Likewise.
782 (lookup_signatured_type): Likewise.
783 (hash_type_unit_group): Likewise.
784 (eq_type_unit_group): Likewise.
785 (get_type_unit_group): Likewise.
786 (process_psymtab_comp_unit_reader): Likewise.
787 (sort_tu_by_abbrev_offset): Likewise.
788 (process_skeletonless_type_unit): Likewise.
789 (psymtabs_addrmap_cleanup): Likewise.
790 (dwarf2_read_symtab): Likewise.
791 (psymtab_to_symtab_1): Likewise.
792 (die_hash): Likewise.
794 (load_full_comp_unit_reader): Likewise.
795 (reset_die_in_process): Likewise.
796 (free_cu_line_header): Likewise.
797 (handle_DW_AT_stmt_list): Likewise.
798 (hash_dwo_file): Likewise.
799 (eq_dwo_file): Likewise.
800 (hash_dwo_unit): Likewise.
801 (eq_dwo_unit): Likewise.
802 (create_dwo_cu_reader): Likewise.
803 (create_dwo_unit_in_dwp_v1): Likewise.
804 (create_dwo_unit_in_dwp_v2): Likewise.
805 (lookup_dwo_unit_in_dwp): Likewise.
806 (dwarf2_locate_dwo_sections): Likewise.
807 (dwarf2_locate_common_dwp_sections): Likewise.
808 (dwarf2_locate_v2_dwp_sections): Likewise.
809 (hash_dwp_loaded_cutus): Likewise.
810 (eq_dwp_loaded_cutus): Likewise.
811 (lookup_dwo_cutu): Likewise.
812 (abbrev_table_free_cleanup): Likewise.
813 (dwarf2_free_abbrev_table): Likewise.
814 (find_partial_die_in_comp_unit): Likewise.
815 (free_line_header_voidp): Likewise.
816 (follow_die_offset): Likewise.
817 (follow_die_sig_1): Likewise.
818 (free_heap_comp_unit): Likewise.
819 (free_stack_comp_unit): Likewise.
820 (dwarf2_free_objfile): Likewise.
821 (per_cu_offset_and_type_hash): Likewise.
822 (per_cu_offset_and_type_eq): Likewise.
823 (get_die_type_at_offset): Likewise.
824 (partial_die_hash): Likewise.
825 (partial_die_eq): Likewise.
826 (dwarf2_per_objfile_free): Likewise.
827 (hash_strtab_entry): Likewise.
828 (eq_strtab_entry): Likewise.
829 (add_string): Likewise.
830 (hash_symtab_entry): Likewise.
831 (eq_symtab_entry): Likewise.
832 (delete_symtab_entry): Likewise.
833 (cleanup_mapped_symtab): Likewise.
834 (add_indices_to_cpool): Likewise.
835 (hash_psymtab_cu_index): Likewise.
836 (eq_psymtab_cu_index): Likewise.
837 (add_address_entry_worker): Likewise.
838 (unlink_if_set): Likewise.
839 (write_one_signatured_type): Likewise.
840 (save_gdb_index_command): Likewise.
841 * elfread.c (elf_symtab_read): Likewise.
842 (elf_gnu_ifunc_cache_hash): Likewise.
843 (elf_gnu_ifunc_cache_eq): Likewise.
844 (elf_gnu_ifunc_record_cache): Likewise.
845 (elf_gnu_ifunc_resolve_by_cache): Likewise.
846 (elf_get_probes): Likewise.
847 (probe_key_free): Likewise.
848 * f-lang.c (builtin_f_type): Likewise.
849 * frame-base.c (frame_base_append_sniffer): Likewise.
850 (frame_base_set_default): Likewise.
851 (frame_base_find_by_frame): Likewise.
852 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
853 (frame_unwind_append_unwinder): Likewise.
854 (frame_unwind_find_by_frame): Likewise.
855 * frame.c (frame_addr_hash): Likewise.
856 (frame_addr_hash_eq): Likewise.
857 (frame_stash_find): Likewise.
858 (do_frame_register_read): Likewise.
859 (unwind_to_current_frame): Likewise.
860 (frame_cleanup_after_sniffer): Likewise.
861 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
862 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
863 * ft32-tdep.c (ft32_frame_cache): Likewise.
864 * gcore.c (do_bfd_delete_cleanup): Likewise.
865 (gcore_create_callback): Likewise.
866 * gdb_bfd.c (hash_bfd): Likewise.
868 (gdb_bfd_open): Likewise.
869 (free_one_bfd_section): Likewise.
870 (gdb_bfd_ref): Likewise.
871 (gdb_bfd_unref): Likewise.
872 (get_section_descriptor): Likewise.
873 (gdb_bfd_map_section): Likewise.
874 (gdb_bfd_crc): Likewise.
875 (gdb_bfd_mark_parent): Likewise.
876 (gdb_bfd_record_inclusion): Likewise.
877 (gdb_bfd_requires_relocations): Likewise.
878 (print_one_bfd): Likewise.
879 * gdbtypes.c (type_pair_hash): Likewise.
880 (type_pair_eq): Likewise.
881 (builtin_type): Likewise.
882 (objfile_type): Likewise.
883 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
884 (vtable_address_point_offset): Likewise.
885 (gnuv3_get_vtable): Likewise.
886 (hash_value_and_voffset): Likewise.
887 (eq_value_and_voffset): Likewise.
888 (compare_value_and_voffset): Likewise.
889 (compute_vtable_size): Likewise.
890 (gnuv3_get_typeid_type): Likewise.
891 * go-lang.c (builtin_go_type): Likewise.
892 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
893 (bkscm_eq_block_smob): Likewise.
894 (bkscm_objfile_block_map): Likewise.
895 (bkscm_del_objfile_blocks): Likewise.
896 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
897 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
898 (gdbscm_disasm_print_address): Likewise.
899 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
900 (frscm_eq_frame_smob): Likewise.
901 (frscm_inferior_frame_map): Likewise.
902 (frscm_del_inferior_frames): Likewise.
903 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
904 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
905 (ofscm_objfile_smob_from_objfile): Likewise.
906 * guile/scm-ports.c (ioscm_write): Likewise.
907 (ioscm_file_port_delete): Likewise.
908 (ioscm_file_port_rewind): Likewise.
909 (ioscm_file_port_put): Likewise.
910 (ioscm_file_port_write): Likewise.
911 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
912 (psscm_pspace_smob_from_pspace): Likewise.
913 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
914 (scscm_recording_unwind_handler): Likewise.
915 (gdbscm_with_catch): Likewise.
916 (scscm_call_0_body): Likewise.
917 (scscm_call_1_body): Likewise.
918 (scscm_call_2_body): Likewise.
919 (scscm_call_3_body): Likewise.
920 (scscm_call_4_body): Likewise.
921 (scscm_apply_1_body): Likewise.
922 (scscm_eval_scheme_string): Likewise.
923 (gdbscm_safe_eval_string): Likewise.
924 (scscm_source_scheme_script): Likewise.
925 (gdbscm_safe_source_script): Likewise.
926 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
927 (gdbscm_call_scm_from_stringn): Likewise.
928 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
929 (syscm_eq_symbol_smob): Likewise.
930 (syscm_get_symbol_map): Likewise.
931 (syscm_del_objfile_symbols): Likewise.
932 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
933 (stscm_eq_symtab_smob): Likewise.
934 (stscm_objfile_symtab_map): Likewise.
935 (stscm_del_objfile_symtabs): Likewise.
936 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
937 (tyscm_eq_type_smob): Likewise.
938 (tyscm_type_map): Likewise.
939 (tyscm_copy_type_recursive): Likewise.
940 (save_objfile_types): Likewise.
941 * guile/scm-utils.c (extract_arg): Likewise.
942 * h8300-tdep.c (h8300_frame_cache): Likewise.
943 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
944 * hppa-tdep.c (compare_unwind_entries): Likewise.
945 (find_unwind_entry): Likewise.
946 (hppa_frame_cache): Likewise.
947 (hppa_stub_frame_unwind_cache): Likewise.
948 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
949 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
950 (hppaobsd_supply_fpregset): Likewise.
951 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
952 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
953 * i386-tdep.c (i386_frame_cache): Likewise.
954 (i386_epilogue_frame_cache): Likewise.
955 (i386_sigtramp_frame_cache): Likewise.
956 (i386_supply_gregset): Likewise.
957 (i386_collect_gregset): Likewise.
958 (i386_gdbarch_init): Likewise.
959 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
960 (i386obsd_trapframe_cache): Likewise.
961 * i387-tdep.c (i387_supply_fsave): Likewise.
962 (i387_collect_fsave): Likewise.
963 (i387_supply_fxsave): Likewise.
964 (i387_collect_fxsave): Likewise.
965 (i387_supply_xsave): Likewise.
966 (i387_collect_xsave): Likewise.
967 * ia64-tdep.c (ia64_frame_cache): Likewise.
968 (ia64_sigtramp_frame_cache): Likewise.
969 * infcmd.c (attach_command_continuation): Likewise.
970 (attach_command_continuation_free_args): Likewise.
971 * inferior.c (restore_inferior): Likewise.
972 (delete_thread_of_inferior): Likewise.
973 * inflow.c (inflow_inferior_data_cleanup): Likewise.
974 (get_inflow_inferior_data): Likewise.
975 (inflow_inferior_exit): Likewise.
976 * infrun.c (displaced_step_clear_cleanup): Likewise.
977 (restore_current_uiout_cleanup): Likewise.
978 (release_stop_context_cleanup): Likewise.
979 (do_restore_infcall_suspend_state_cleanup): Likewise.
980 (do_restore_infcall_control_state_cleanup): Likewise.
981 (restore_inferior_ptid): Likewise.
982 * inline-frame.c (block_starting_point_at): Likewise.
983 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
984 * jit.c (get_jit_objfile_data): Likewise.
985 (get_jit_program_space_data): Likewise.
986 (jit_object_close_impl): Likewise.
987 (jit_find_objf_with_entry_addr): Likewise.
988 (jit_breakpoint_deleted): Likewise.
989 (jit_unwind_reg_set_impl): Likewise.
990 (jit_unwind_reg_get_impl): Likewise.
991 (jit_dealloc_cache): Likewise.
992 (jit_frame_sniffer): Likewise.
993 (jit_frame_prev_register): Likewise.
994 (jit_prepend_unwinder): Likewise.
995 (jit_inferior_exit_hook): Likewise.
996 (free_objfile_data): Likewise.
997 * jv-lang.c (jv_per_objfile_free): Likewise.
998 (get_dynamics_objfile): Likewise.
999 (get_java_class_symtab): Likewise.
1000 (builtin_java_type): Likewise.
1001 * language.c (language_string_char_type): Likewise.
1002 (language_bool_type): Likewise.
1003 (language_lookup_primitive_type): Likewise.
1004 (language_lookup_primitive_type_as_symbol): Likewise.
1005 * linespec.c (hash_address_entry): Likewise.
1006 (eq_address_entry): Likewise.
1007 (iterate_inline_only): Likewise.
1008 (iterate_name_matcher): Likewise.
1009 (decode_line_2_compare_items): Likewise.
1010 (collect_one_symbol): Likewise.
1011 (compare_symbols): Likewise.
1012 (compare_msymbols): Likewise.
1013 (add_symtabs_to_list): Likewise.
1014 (collect_symbols): Likewise.
1015 (compare_msyms): Likewise.
1016 (add_minsym): Likewise.
1017 (cleanup_linespec_result): Likewise.
1018 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1019 * linux-nat.c (delete_lwp_cleanup): Likewise.
1020 (count_events_callback): Likewise.
1021 (select_event_lwp_callback): Likewise.
1022 (resume_stopped_resumed_lwps): Likewise.
1023 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1024 (invalidate_linux_cache_inf): Likewise.
1025 (get_linux_inferior_data): Likewise.
1026 (linux_find_memory_regions_thunk): Likewise.
1027 (linux_make_mappings_callback): Likewise.
1028 (linux_corefile_thread_callback): Likewise.
1029 (find_mapping_size): Likewise.
1030 * linux-thread-db.c (find_new_threads_callback): Likewise.
1031 * lm32-tdep.c (lm32_frame_cache): Likewise.
1032 * m2-lang.c (builtin_m2_type): Likewise.
1033 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1034 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1035 (m32r_linux_supply_gregset): Likewise.
1036 (m32r_linux_collect_gregset): Likewise.
1037 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1038 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1039 * m68k-tdep.c (m68k_frame_cache): Likewise.
1040 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1041 (m68kbsd_supply_gregset): Likewise.
1042 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1043 * m88k-tdep.c (m88k_frame_cache): Likewise.
1044 (m88k_supply_gregset): Likewise.
1046 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1048 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1049 to allocation result assignment.
1050 * ada-exp.y (write_object_renaming): Likewise.
1051 (write_ambiguous_var): Likewise.
1052 (ada_nget_field_index): Likewise.
1053 (write_var_or_type): Likewise.
1054 * ada-lang.c (ada_decode_symbol): Likewise.
1055 (ada_value_assign): Likewise.
1056 (value_pointer): Likewise.
1057 (cache_symbol): Likewise.
1058 (add_nonlocal_symbols): Likewise.
1059 (ada_name_for_lookup): Likewise.
1060 (symbol_completion_add): Likewise.
1061 (ada_to_fixed_type_1): Likewise.
1062 (ada_get_next_arg): Likewise.
1063 (defns_collected): Likewise.
1064 * ada-lex.l (processId): Likewise.
1065 (processString): Likewise.
1066 * ada-tasks.c (read_known_tasks_array): Likewise.
1067 (read_known_tasks_list): Likewise.
1068 * ada-typeprint.c (decoded_type_name): Likewise.
1069 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1070 * amd64-tdep.c (amd64_push_arguments): Likewise.
1071 (amd64_displaced_step_copy_insn): Likewise.
1072 (amd64_classify_insn_at): Likewise.
1073 (amd64_relocate_instruction): Likewise.
1074 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1075 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1076 (initialize_current_architecture): Likewise.
1077 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1078 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1079 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1080 (arm_push_dummy_call): Likewise.
1081 (extend_buffer_earlier): Likewise.
1082 (arm_adjust_breakpoint_address): Likewise.
1083 (arm_skip_stub): Likewise.
1084 * auto-load.c (filename_is_in_pattern): Likewise.
1085 (maybe_add_script_file): Likewise.
1086 (maybe_add_script_text): Likewise.
1087 (auto_load_objfile_script_1): Likewise.
1088 * auxv.c (ld_so_xfer_auxv): Likewise.
1089 * ax-general.c (new_agent_expr): Likewise.
1090 (grow_expr): Likewise.
1091 (ax_reg_mask): Likewise.
1092 * bcache.c (bcache_full): Likewise.
1093 * breakpoint.c (program_breakpoint_here_p): Likewise.
1094 * btrace.c (parse_xml_raw): Likewise.
1095 * build-id.c (build_id_to_debug_bfd): Likewise.
1096 * buildsym.c (end_symtab_with_blockvector): Likewise.
1097 * c-exp.y (string_exp): Likewise.
1098 (qualified_name): Likewise.
1099 (write_destructor_name): Likewise.
1100 (operator_stoken): Likewise.
1101 (parse_number): Likewise.
1102 (scan_macro_expansion): Likewise.
1104 (c_print_token): Likewise.
1105 * c-lang.c (c_get_string): Likewise.
1106 (emit_numeric_character): Likewise.
1107 * charset.c (wchar_iterate): Likewise.
1108 * cli/cli-cmds.c (complete_command): Likewise.
1109 (make_command): Likewise.
1110 * cli/cli-dump.c (restore_section_callback): Likewise.
1111 (restore_binary_file): Likewise.
1112 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1113 * cli/cli-script.c (execute_control_command): Likewise.
1114 * cli/cli-setshow.c (do_set_command): Likewise.
1115 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1116 (read_pe_exported_syms): Likewise.
1117 * coffread.c (coff_read_struct_type): Likewise.
1118 (coff_read_enum_type): Likewise.
1119 * common/btrace-common.c (btrace_data_append): Likewise.
1120 * common/buffer.c (buffer_grow): Likewise.
1121 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1122 * common/format.c (parse_format_string): Likewise.
1123 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1124 * common/xml-utils.c (xml_escape_text): Likewise.
1125 * compile/compile-object-load.c (copy_sections): Likewise.
1126 (compile_object_load): Likewise.
1127 * compile/compile-object-run.c (compile_object_run): Likewise.
1128 * completer.c (filename_completer): Likewise.
1129 * corefile.c (read_memory_typed_address): Likewise.
1130 (write_memory_unsigned_integer): Likewise.
1131 (write_memory_signed_integer): Likewise.
1132 (complete_set_gnutarget): Likewise.
1133 * corelow.c (get_core_register_section): Likewise.
1134 * cp-name-parser.y (d_grab): Likewise.
1135 (allocate_info): Likewise.
1136 (cp_new_demangle_parse_info): Likewise.
1137 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1138 (cp_lookup_symbol_in_namespace): Likewise.
1139 (lookup_namespace_scope): Likewise.
1140 (find_symbol_in_baseclass): Likewise.
1141 (cp_lookup_nested_symbol): Likewise.
1142 (cp_lookup_transparent_type_loop): Likewise.
1143 * cp-support.c (copy_string_to_obstack): Likewise.
1144 (make_symbol_overload_list): Likewise.
1145 (make_symbol_overload_list_namespace): Likewise.
1146 (make_symbol_overload_list_adl_namespace): Likewise.
1147 (first_component_command): Likewise.
1148 * cp-valprint.c (cp_print_value): Likewise.
1149 * ctf.c (ctf_xfer_partial): Likewise.
1150 * d-exp.y (StringExp): Likewise.
1151 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1152 (lookup_module_scope): Likewise.
1153 (find_symbol_in_baseclass): Likewise.
1154 (d_lookup_nested_symbol): Likewise.
1155 * dbxread.c (find_stab_function_addr): Likewise.
1156 (read_dbx_symtab): Likewise.
1157 (dbx_end_psymtab): Likewise.
1158 (cp_set_block_scope): Likewise.
1159 * dcache.c (dcache_alloc): Likewise.
1160 * demangle.c (_initialize_demangler): Likewise.
1161 * dicos-tdep.c (dicos_load_module_p): Likewise.
1162 * dictionary.c (dict_create_hashed_expandable): Likewise.
1163 (dict_create_linear_expandable): Likewise.
1164 (expand_hashtable): Likewise.
1165 (add_symbol_linear_expandable): Likewise.
1166 * dwarf2-frame.c (add_cie): Likewise.
1167 (add_fde): Likewise.
1168 (dwarf2_build_frame_info): Likewise.
1169 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1170 (dwarf_expr_fetch_address): Likewise.
1171 (add_piece): Likewise.
1172 (execute_stack_op): Likewise.
1173 * dwarf2loc.c (chain_candidate): Likewise.
1174 (dwarf_entry_parameter_to_value): Likewise.
1175 (read_pieced_value): Likewise.
1176 (write_pieced_value): Likewise.
1177 * dwarf2read.c (dwarf2_read_section): Likewise.
1178 (add_type_unit): Likewise.
1179 (read_comp_units_from_section): Likewise.
1180 (fixup_go_packaging): Likewise.
1181 (dwarf2_compute_name): Likewise.
1182 (dwarf2_physname): Likewise.
1183 (create_dwo_unit_in_dwp_v1): Likewise.
1184 (create_dwo_unit_in_dwp_v2): Likewise.
1185 (read_func_scope): Likewise.
1186 (read_call_site_scope): Likewise.
1187 (dwarf2_attach_fields_to_type): Likewise.
1188 (process_structure_scope): Likewise.
1189 (mark_common_block_symbol_computed): Likewise.
1190 (read_common_block): Likewise.
1191 (abbrev_table_read_table): Likewise.
1192 (guess_partial_die_structure_name): Likewise.
1193 (fixup_partial_die): Likewise.
1194 (add_file_name): Likewise.
1195 (dwarf2_const_value_data): Likewise.
1196 (dwarf2_const_value_attr): Likewise.
1197 (build_error_marker_type): Likewise.
1198 (guess_full_die_structure_name): Likewise.
1199 (anonymous_struct_prefix): Likewise.
1200 (typename_concat): Likewise.
1201 (dwarf2_canonicalize_name): Likewise.
1202 (dwarf2_name): Likewise.
1203 (write_constant_as_bytes): Likewise.
1204 (dwarf2_fetch_constant_bytes): Likewise.
1205 (copy_string): Likewise.
1206 (parse_macro_definition): Likewise.
1207 * elfread.c (elf_symfile_segments): Likewise.
1208 (elf_rel_plt_read): Likewise.
1209 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1210 (elf_gnu_ifunc_resolve_by_got): Likewise.
1211 (elf_read_minimal_symbols): Likewise.
1212 (elf_gnu_ifunc_record_cache): Likewise.
1213 * event-top.c (top_level_prompt): Likewise.
1214 (command_line_handler): Likewise.
1215 * exec.c (resize_section_table): Likewise.
1216 * expprint.c (print_subexp_standard): Likewise.
1217 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1218 * findcmd.c (parse_find_args): Likewise.
1219 * findvar.c (address_from_register): Likewise.
1220 * frame.c (get_prev_frame_always): Likewise.
1221 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1222 (get_section_descriptor): Likewise.
1223 * gdb_obstack.c (obconcat): Likewise.
1224 (obstack_strdup): Likewise.
1225 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1226 (create_set_type): Likewise.
1227 (lookup_unsigned_typename): Likewise.
1228 (lookup_signed_typename): Likewise.
1229 (resolve_dynamic_union): Likewise.
1230 (resolve_dynamic_struct): Likewise.
1231 (add_dyn_prop): Likewise.
1232 (copy_dynamic_prop_list): Likewise.
1233 (arch_flags_type): Likewise.
1234 (append_composite_type_field_raw): Likewise.
1235 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1236 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1237 * go-exp.y (string_exp): Likewise.
1238 * go-lang.c (go_demangle): Likewise.
1239 * guile/guile.c (compute_scheme_string): Likewise.
1240 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1241 (gdbscm_canonicalize_command_name): Likewise.
1242 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1243 (ioscm_init_memory_port): Likewise.
1244 (ioscm_reinit_memory_port): Likewise.
1245 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1246 (gdbscm_gc_dup_argv): Likewise.
1247 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1248 * hppa-tdep.c (internalize_unwinds): Likewise.
1249 (read_unwind_info): Likewise.
1250 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1251 (windows_core_xfer_shared_libraries): Likewise.
1252 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1253 (i386_stap_parse_special_token_triplet): Likewise.
1254 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1255 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1256 * inf-child.c (inf_child_fileio_readlink): Likewise.
1257 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1258 (inf_ptrace_store_register): Likewise.
1259 * infrun.c (follow_exec): Likewise.
1260 (displaced_step_prepare_throw): Likewise.
1261 (save_stop_context): Likewise.
1262 (save_infcall_suspend_state): Likewise.
1263 * jit.c (jit_read_descriptor): Likewise.
1264 (jit_read_code_entry): Likewise.
1265 (jit_symtab_line_mapping_add_impl): Likewise.
1266 (finalize_symtab): Likewise.
1267 (jit_unwind_reg_get_impl): Likewise.
1268 * jv-exp.y (QualifiedName): Likewise.
1269 * jv-lang.c (get_java_utf8_name): Likewise.
1270 (type_from_class): Likewise.
1271 (java_demangle_type_signature): Likewise.
1272 (java_class_name_from_physname): Likewise.
1273 * jv-typeprint.c (java_type_print_base): Likewise.
1274 * jv-valprint.c (java_value_print): Likewise.
1275 * language.c (add_language): Likewise.
1276 * linespec.c (add_sal_to_sals_basic): Likewise.
1277 (add_sal_to_sals): Likewise.
1278 (decode_objc): Likewise.
1279 (find_linespec_symbols): Likewise.
1280 * linux-fork.c (fork_save_infrun_state): Likewise.
1281 * linux-nat.c (linux_nat_detach): Likewise.
1282 (linux_nat_fileio_readlink): Likewise.
1283 * linux-record.c (record_linux_sockaddr): Likewise.
1284 (record_linux_msghdr): Likewise.
1286 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1287 (linux_collect_regset_section_cb): Likewise.
1288 (linux_get_siginfo_data): Likewise.
1289 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1290 (try_thread_db_load_from_dir): Likewise.
1291 (thread_db_load_search): Likewise.
1292 (info_auto_load_libthread_db): Likewise.
1293 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1294 (m32c_m16c_pointer_to_address): Likewise.
1295 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1296 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1297 * machoread.c (macho_check_dsym): Likewise.
1298 * macroexp.c (resize_buffer): Likewise.
1299 (gather_arguments): Likewise.
1300 (maybe_expand): Likewise.
1301 * macrotab.c (new_macro_key): Likewise.
1302 (new_source_file): Likewise.
1303 (new_macro_definition): Likewise.
1304 * mdebugread.c (parse_symbol): Likewise.
1305 (parse_type): Likewise.
1306 (parse_partial_symbols): Likewise.
1307 (psymtab_to_symtab_1): Likewise.
1308 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1309 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1310 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1311 (mi_cmd_data_read_memory_bytes): Likewise.
1312 (mi_cmd_data_write_memory_bytes): Likewise.
1313 (mi_cmd_trace_frame_collected): Likewise.
1314 * mi/mi-parse.c (mi_parse_argv): Likewise.
1315 (mi_parse): Likewise.
1316 * minidebug.c (lzma_open): Likewise.
1317 (lzma_pread): Likewise.
1318 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1319 (mips_print_fp_register): Likewise.
1320 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1321 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1322 * mt-tdep.c (mt_register_name): Likewise.
1323 (mt_registers_info): Likewise.
1324 (mt_push_dummy_call): Likewise.
1325 * namespace.c (add_using_directive): Likewise.
1326 * nat/linux-btrace.c (perf_event_read): Likewise.
1327 (linux_enable_bts): Likewise.
1328 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1329 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1330 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1331 (nto_parse_redirection): Likewise.
1332 * objc-lang.c (objc_demangle): Likewise.
1333 (find_methods): Likewise.
1334 * objfiles.c (get_objfile_bfd_data): Likewise.
1335 (set_objfile_main_name): Likewise.
1336 (allocate_objfile): Likewise.
1337 (objfile_relocate): Likewise.
1338 (update_section_map): Likewise.
1339 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1340 * p-exp.y (exp): Likewise.
1342 * p-valprint.c (pascal_object_print_value): Likewise.
1343 * parse.c (initialize_expout): Likewise.
1344 (mark_completion_tag): Likewise.
1345 (copy_name): Likewise.
1346 (parse_float): Likewise.
1347 (type_stack_reserve): Likewise.
1348 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1349 (ppu2spu_prev_register): Likewise.
1350 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1351 * printcmd.c (printf_wide_c_string): Likewise.
1352 (printf_pointer): Likewise.
1353 * probe.c (parse_probes): Likewise.
1354 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1355 (cmdpy_init): Likewise.
1356 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1357 * python/py-symtab.c (set_sal): Likewise.
1358 * python/py-unwind.c (pyuw_sniffer): Likewise.
1359 * python/python.c (python_interactive_command): Likewise.
1360 (compute_python_string): Likewise.
1361 * ravenscar-thread.c (get_running_thread_id): Likewise.
1362 * record-full.c (record_full_exec_insn): Likewise.
1363 (record_full_core_open_1): Likewise.
1364 * regcache.c (regcache_raw_read_signed): Likewise.
1365 (regcache_raw_read_unsigned): Likewise.
1366 (regcache_cooked_read_signed): Likewise.
1367 (regcache_cooked_read_unsigned): Likewise.
1368 * remote-fileio.c (remote_fileio_func_open): Likewise.
1369 (remote_fileio_func_rename): Likewise.
1370 (remote_fileio_func_unlink): Likewise.
1371 (remote_fileio_func_stat): Likewise.
1372 (remote_fileio_func_system): Likewise.
1373 * remote-mips.c (mips_xfer_memory): Likewise.
1374 (mips_load_srec): Likewise.
1375 (pmon_end_download): Likewise.
1376 * remote.c (new_remote_state): Likewise.
1377 (map_regcache_remote_table): Likewise.
1378 (remote_register_number_and_offset): Likewise.
1379 (init_remote_state): Likewise.
1380 (get_memory_packet_size): Likewise.
1381 (remote_pass_signals): Likewise.
1382 (remote_program_signals): Likewise.
1383 (remote_start_remote): Likewise.
1384 (remote_check_symbols): Likewise.
1385 (remote_query_supported): Likewise.
1386 (extended_remote_attach): Likewise.
1387 (process_g_packet): Likewise.
1388 (store_registers_using_G): Likewise.
1389 (putpkt_binary): Likewise.
1390 (read_frame): Likewise.
1391 (compare_sections_command): Likewise.
1392 (remote_hostio_pread): Likewise.
1393 (remote_hostio_readlink): Likewise.
1394 (remote_file_put): Likewise.
1395 (remote_file_get): Likewise.
1396 (remote_pid_to_exec_file): Likewise.
1397 (_initialize_remote): Likewise.
1398 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1399 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1400 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1401 (bfd_uses_spe_extensions): Likewise.
1402 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1403 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1404 * solib-dsbt.c (decode_loadmap): Likewise.
1405 (fetch_loadmap): Likewise.
1406 (scan_dyntag): Likewise.
1407 (enable_break): Likewise.
1408 (dsbt_relocate_main_executable): Likewise.
1409 * solib-frv.c (fetch_loadmap): Likewise.
1410 (enable_break2): Likewise.
1411 (frv_relocate_main_executable): Likewise.
1412 * solib-spu.c (spu_relocate_main_executable): Likewise.
1413 (spu_bfd_open): Likewise.
1414 * solib-svr4.c (lm_info_read): Likewise.
1415 (read_program_header): Likewise.
1416 (find_program_interpreter): Likewise.
1417 (scan_dyntag): Likewise.
1418 (elf_locate_base): Likewise.
1419 (open_symbol_file_object): Likewise.
1420 (read_program_headers_from_bfd): Likewise.
1421 (svr4_relocate_main_executable): Likewise.
1422 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1423 * solib.c (solib_find_1): Likewise.
1424 (exec_file_find): Likewise.
1425 (solib_find): Likewise.
1426 * source.c (openp): Likewise.
1427 (print_source_lines_base): Likewise.
1428 (forward_search_command): Likewise.
1429 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1430 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1431 (spu_get_overlay_table): Likewise.
1432 * stabsread.c (patch_block_stabs): Likewise.
1433 (define_symbol): Likewise.
1435 (read_member_functions): Likewise.
1436 (read_one_struct_field): Likewise.
1437 (read_enum_type): Likewise.
1438 (common_block_start): Likewise.
1439 * stack.c (read_frame_arg): Likewise.
1440 (backtrace_command): Likewise.
1441 * stap-probe.c (stap_parse_register_operand): Likewise.
1442 * symfile.c (syms_from_objfile_1): Likewise.
1443 (find_separate_debug_file): Likewise.
1444 (load_command): Likewise.
1445 (load_progress): Likewise.
1446 (load_section_callback): Likewise.
1447 (reread_symbols): Likewise.
1448 (add_filename_language): Likewise.
1449 (allocate_compunit_symtab): Likewise.
1450 (read_target_long_array): Likewise.
1451 (simple_read_overlay_table): Likewise.
1452 * symtab.c (symbol_set_names): Likewise.
1453 (resize_symbol_cache): Likewise.
1454 (rbreak_command): Likewise.
1455 (completion_list_add_name): Likewise.
1456 (completion_list_objc_symbol): Likewise.
1457 (add_filename_to_list): Likewise.
1458 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1459 * target-memory.c (target_write_memory_blocks): Likewise.
1460 * target.c (target_read_string): Likewise.
1461 (read_whatever_is_readable): Likewise.
1462 (target_read_alloc_1): Likewise.
1463 (simple_search_memory): Likewise.
1464 (target_fileio_read_alloc_1): Likewise.
1465 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1466 * top.c (command_line_input): Likewise.
1467 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1468 * tracefile.c (tracefile_fetch_registers): Likewise.
1469 * tracepoint.c (add_memrange): Likewise.
1470 (init_collection_list): Likewise.
1471 (add_aexpr): Likewise.
1472 (trace_dump_actions): Likewise.
1473 (parse_trace_status): Likewise.
1474 (parse_tracepoint_definition): Likewise.
1475 (parse_tsv_definition): Likewise.
1476 (parse_static_tracepoint_marker_definition): Likewise.
1477 * tui/tui-file.c (tui_sfileopen): Likewise.
1478 (tui_file_adjust_strbuf): Likewise.
1479 * tui/tui-io.c (tui_expand_tabs): Likewise.
1480 * tui/tui-source.c (tui_set_source_content): Likewise.
1481 * typeprint.c (find_global_typedef): Likewise.
1482 * ui-file.c (do_ui_file_xstrdup): Likewise.
1483 (ui_file_obsavestring): Likewise.
1484 (mem_file_write): Likewise.
1485 * utils.c (make_hex_string): Likewise.
1486 (get_regcomp_error): Likewise.
1487 (puts_filtered_tabular): Likewise.
1488 (gdb_realpath_keepfile): Likewise.
1489 (ldirname): Likewise.
1490 (gdb_bfd_errmsg): Likewise.
1491 (substitute_path_component): Likewise.
1492 * valops.c (search_struct_method): Likewise.
1493 (find_oload_champ_namespace_loop): Likewise.
1494 * valprint.c (print_decimal_chars): Likewise.
1495 (read_string): Likewise.
1496 (generic_emit_char): Likewise.
1497 * varobj.c (varobj_delete): Likewise.
1498 (varobj_value_get_print_value): Likewise.
1499 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1500 * windows-tdep.c (display_one_tib): Likewise.
1501 * xcoffread.c (read_xcoff_symtab): Likewise.
1502 (process_xcoff_symbol): Likewise.
1503 (swap_sym): Likewise.
1504 (scan_xcoff_symtab): Likewise.
1505 (xcoff_initial_scan): Likewise.
1506 * xml-support.c (gdb_xml_end_element): Likewise.
1507 (xml_process_xincludes): Likewise.
1508 (xml_fetch_content_from_file): Likewise.
1509 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1510 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1512 2015-09-23 James Bowman <james.bowman@ftdichip.com>
1514 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1515 instead of builtin_func_ptr.
1516 (ft32_pointer_to_address): New function.
1517 (ft32_address_class_type_flags): New function.
1518 (ft32_address_class_type_flags_to_name): New function.
1519 (ft32_address_class_name_to_type_flags): New function.
1520 (ft32_gdbarch_init): Set tdep->pc_type. Call
1521 set_gdbarch_pointer_to_address,
1522 set_gdbarch_address_class_type_flags
1523 set_gdbarch_address_class_name_to_type_flags,
1524 and set_gdbarch_address_class_type_flags_to_name.
1525 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1527 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1529 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1530 value is a reference, actually dereference it in order to get
1531 the underlying value.
1533 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1535 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1537 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1539 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1540 * linespec.c (linespec_lexer_lex_string): Same.
1542 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1544 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1546 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1548 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1549 variable. Call aarch64_decode_adr instead of
1550 aarch64_decode_adrp.
1551 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1552 (aarch64_decode_adr): New function declaration.
1553 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1554 (aarch64_decode_adr): New function, factored out from
1555 aarch64_decode_adrp to decode both adr and adrp instructions.
1557 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1559 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1560 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1561 (aarch64-insn.o): New rule.
1562 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1563 (aarch64*-*-linux*): Likewise.
1564 * arch/aarch64-insn.c: New file.
1565 * arch/aarch64-insn.h: New file.
1566 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1567 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1568 arch/aarch64-insn.h.
1569 (decode_add_sub_imm): Rename to ...
1570 (aarch64_decode_add_sub_imm): ... this.
1571 (decode_adrp): Rename to ...
1572 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1573 Declare in arch/aarch64-insn.h.
1574 (decode_b): Rename to ...
1575 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1576 Declare in arch/aarch64-insn.h.
1577 (decode_bcond): Rename to ...
1578 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1579 Declare in arch/aarch64-insn.h.
1580 (decode_br): Rename to ...
1581 (aarch64_decode_br): ... this.
1582 (decode_cb): Rename to ...
1583 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1584 Declare in arch/aarch64-insn.h.
1585 (decode_eret): Rename to ...
1586 (aarch64_decode_eret): ... this.
1587 (decode_movz): Rename to ...
1588 (aarch64_decode_movz): ... this.
1589 (decode_orr_shifted_register_x): Rename to ...
1590 (aarch64_decode_orr_shifted_register_x): ... this.
1591 (decode_ret): Rename to ...
1592 (aarch64_decode_ret): ... this.
1593 (decode_stp_offset): Rename to ...
1594 (aarch64_decode_stp_offset): ... this.
1595 (decode_stp_offset_wb): Rename to ...
1596 (aarch64_decode_stp_offset_wb): ... this.
1597 (decode_stur): Rename to ...
1598 (aarch64_decode_stur): ... this.
1599 (decode_tb): Rename to ...
1600 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1601 Declare in arch/aarch64-insn.h.
1602 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1604 2015-09-20 Doug Evans <xdje42@gmail.com>
1606 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1608 2015-09-20 Doug Evans <xdje42@gmail.com>
1610 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1611 variable name that collides with a parameter.
1613 2015-09-20 Joel Brobecker <brobecker@adacore.com>
1615 * dwarf2loc.c (locexpr_get_frame_base): Renames
1616 block_op_get_frame_base.
1617 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1618 block_op_get_frame_base by reference to locexpr_get_frame_base.
1619 (loclist_get_frame_base): New function, near identical copy of
1620 locexpr_get_frame_base.
1621 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1622 block_op_get_frame_base by reference to loclist_get_frame_base.
1624 2015-09-19 Doug Evans <xdje42@gmail.com>
1626 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1627 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1629 2015-09-18 Doug Evans <xdje42@gmail.com>
1631 * linux-thread-db.c (record_thread): Return the created thread.
1632 (thread_from_lwp): Likewise.
1633 (thread_db_get_thread_local_address): Update.
1635 2015-09-18 Doug Evans <xdje42@gmail.com>
1637 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1638 move only member demangled_name up. All uses updated.
1640 2015-09-18 Doug Evans <xdje42@gmail.com>
1642 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1643 kind of minimal symbol in the error message.
1644 * objfiles.c (objfile_flavour_name): New function.
1645 * objfiles.h (objfile_flavour_name): Declare.
1647 2015-09-18 Yao Qi <yao.qi@linaro.org>
1649 * nat/aarch64-linux.c: Include elf/common.h,
1650 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1651 (aarch64_ps_get_thread_area): New function.
1652 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1653 (aarch64_ps_get_thread_area): Declare.
1654 * aarch64-linux-nat.c (ps_get_thread_area): Call
1655 aarch64_ps_get_thread_area.
1657 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1659 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1661 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1663 * NEWS: Announce new scheduler-locking mode.
1664 * infrun.c (schedlock_replay): New.
1665 (scheduler_enums): Add schedlock_replay.
1666 (scheduler_mode): Change default to schedlock_replay.
1667 (user_visible_resume_ptid): Handle schedlock_replay.
1668 (clear_proceed_status_thread): Stop replaying if resumed thread is
1670 (schedlock_applies): Handle schedlock_replay.
1671 (_initialize_infrun): Document new scheduler-locking mode.
1672 * record-btrace.c (record_btrace_resume): Remove code to stop other
1673 threads when not replaying the resumed thread.
1675 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1677 * record-btrace.c ((record_btrace_will_replay): New.
1678 (init_record_btrace_ops): Initialize to_record_will_replay.
1679 * record-full.c ((record_full_will_replay): New.
1680 (init_record_full_ops): Initialize to_record_will_replay.
1681 * target-delegates.c: Regenerated.
1682 * target.c (target_record_will_replay): New.
1683 * target.h (struct target_ops) <to_record_will_replay>: New.
1684 (target_record_will_replay): New.
1686 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1688 * record-btrace.c (record_btrace_resume): Call
1689 target_record_stop_replaying.
1690 (record_btrace_stop_replaying_all): New.
1691 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1692 * record-full.c (record_full_stop_replaying): New.
1693 (init_record_full_ops ): Initialize to_record_stop_replaying.
1694 * target-delegates.c: Regenerated.
1695 * target.c (target_record_stop_replaying): New.
1696 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1697 (target_record_stop_replaying): New.
1699 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1701 * record-btrace.c (record_btrace_xfer_partial)
1702 (record_btrace_store_registers, record_btrace_prepare_to_store):
1703 Call record_btrace_is_replaying with inferior_ptid instead of
1705 (record_btrace_store_registers): Change error message.
1707 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1709 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1710 Update users to pass minus_one_ptid.
1711 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1712 * record.c (cmd_record_delete): Pass inferior_ptid to
1713 target_record_is_replaying.
1714 * target-delegates.c: Regenerated.
1715 * target.c (target_record_is_replaying): Add ptid argument.
1716 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1718 (target_record_is_replaying): Add ptid argument.
1720 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1722 * record-btrace.c (record_btrace_open): Remove non_stop check.
1723 * NEWS: Announce that record btrace supports non-stop mode.
1725 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1727 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1728 in the TARKET_WAITKIND_NO_HISTORY case.
1730 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1732 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1733 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1735 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1737 * record-btrace.c (get_thread_current_frame): New.
1738 (record_btrace_start_replaying): Call get_thread_current_frame.
1740 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1742 * record-btrace.c (record_btrace_resume_thread): A move request
1743 overwrites a previous move request.
1744 (record_btrace_find_resume_thread): Removed.
1745 (record_btrace_resume): Resume all requested threads.
1747 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1749 * record-btrace.c: Include vec.h.
1750 (record_btrace_find_thread_to_move): Removed.
1751 (btrace_step_no_resumed, btrace_step_again)
1752 (record_btrace_stop_replaying_at_end): New.
1753 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1754 (record_btrace_single_step_forward): Remove calls to
1755 record_btrace_stop_replaying.
1756 (record_btrace_step_thread): Do only one step for BTHR_CONT and
1757 BTHR_RCONT. Keep threads at the end of their history moving.
1758 (record_btrace_wait): Call record_btrace_step_thread for all threads
1759 until one reports an event. Call record_btrace_stop_replaying_at_end
1760 for the eventing thread.
1762 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1764 * record-btrace.c (record_btrace_single_step_forward): Return
1765 NO_HISTORY if a step brings us to the end of the execution history.
1767 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1769 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1771 (record_btrace_single_step_forward): ... here and
1772 (record_btrace_single_step_backward): ... here.
1774 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1776 * record-btrace.c (btrace_step_spurious)
1777 (record_btrace_single_step_forward)
1778 (record_btrace_single_step_backward): New.
1779 (record_btrace_step_thread): Call record_btrace_single_step_forward
1780 and record_btrace_single_step_backward.
1782 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1784 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1785 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1787 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1789 * record-btrace.c (btrace_thread_flag_to_str)
1790 (record_btrace_cancel_resume): New.
1791 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1792 (record_btrace_resume): Print execution direction.
1793 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1794 (record_btrace_wait): Call record_btrace_cancel_resume.
1796 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1798 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1799 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1800 (record_btrace_find_thread_to_move): Also accept threads that have
1802 (btrace_step_stopped_on_request, record_btrace_stop): New.
1803 (record_btrace_step_thread): Support BTHR_STOP.
1804 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1805 (init_record_btrace_ops): Initialize to_stop.
1807 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1809 * record-btrace.c (record_btrace_wait): Replace non_stop check with
1810 target_is_non_stop_p ().
1812 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
1814 * ada-typeprint.c (print_array_type): Do not describe arrays as
1815 packed when they embed dynamic elements.
1817 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1819 * symtab.h (address_class): Document that TLS variables
1820 are handled by LOC_UNRESOLVED.
1821 * findvar.c (default_read_var_value): Don't relocate TLS variables.
1822 * printcmd.c (address_info): Don't relocate TLS variables.
1824 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
1826 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
1827 (decode_adrp): Likewise.
1828 (decode_b): Likewise.
1829 (decode_bcond): Likewise.
1830 (decode_br): Likewise.
1831 (decode_cb): Likewise.
1832 (decode_eret): Likewise.
1833 (decode_movz): Likewise.
1834 (decode_orr_shifted_register_x): Likewise.
1835 (decode_ret): Likewise.
1836 (decode_stp_offset): Likewise.
1837 (decode_stp_offset_wb): Likewise.
1838 (decode_stur): Likewise.
1839 (decode_tb): Likewise.
1840 (aarch64_analyze_prologue): Likewise.
1841 (pass_in_x): Likewise.
1842 (pass_in_v): Likewise.
1843 (pass_on_stack): Likewise.
1844 (aarch64_push_dummy_call): Likewise.
1845 (aarch64_extract_return_value): Likewise.
1846 (aarch64_store_return_value): Likewise.
1847 (aarch64_return_value): Likewise.
1848 (aarch64_record_asimd_load_store): Likewise.
1849 (aarch64_record_load_store): Likewise.
1850 (aarch64_record_data_proc_simd_fp): Likewise.
1852 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1854 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
1855 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
1856 (ppc64_skip_trampoline_code_1): ... here.
1857 (ppc64_skip_trampoline_code): New wrapper function.
1858 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
1860 2015-09-15 Yao Qi <yao.qi@linaro.org>
1862 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
1864 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
1865 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
1866 if target_can_do_single_step returns 1.
1867 * remote.c (struct vCont_action_support) <s, S>: New fields.
1868 (PACKET_vContSupported): New enum.
1869 (remote_protocol_features): New element for vContSupported.
1870 (remote_query_supported): Append "vContSupported+".
1871 (remote_vcont_probe): Remove support_s and support_S, use
1872 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
1873 vCont packet if c and C actions are not supported.
1874 (remote_can_do_single_step): New function.
1875 (init_remote_ops): Install it to to_can_do_single_step.
1876 (_initialize_remote): Call add_packet_config_cmd.
1877 * target.h (struct target_ops) <to_can_do_single_step>: New field.
1878 (target_can_do_single_step): New macro.
1879 * target-delegates.c: Re-generated.
1881 2015-09-15 Yao Qi <yao.qi@linaro.org>
1883 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
1884 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
1885 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
1887 (aarch64_siginfo_from_compat_siginfo): New function.
1888 * nat/aarch64-linux.h: Include signal.h.
1889 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
1890 (compat_timer_t, compat_clock_t): Likewise.
1891 (struct compat_timeval): New.
1892 (union compat_sigval): New.
1893 (struct compat_siginfo): New.
1894 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
1895 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
1896 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
1897 (cpt_si_band, cpt_si_fd): Likewise.
1899 2015-09-14 Pedro Alves <palves@redhat.com>
1901 * infrun.c (current_stop_id): New global.
1902 (get_stop_id, new_stop_id): New functions.
1903 (fetch_inferior_event): Handle normal_stop proceeding the target.
1904 (struct stop_context): New.
1905 (save_stop_context, release_stop_context_cleanup)
1906 (stop_context_changed): New functions.
1907 (normal_stop): Return true if the hook-stop changes the stop
1909 * infrun.h (get_stop_id): Declare.
1910 (normal_stop): Now returns int. Add documentation.
1912 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
1914 * ada-lang.c (ada_value_ptr_subscript): Update the heading
1915 comment. Handle packed arrays.
1917 2015-09-14 Pedro Alves <palves@redhat.com>
1919 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
1920 mention of maint set/show target-non-stop.
1922 2015-09-11 Don Breazeal <donb@codesourcery.com>
1924 * NEWS: Announce new remote packets for the exec-events
1925 feature and the exec-events feature and associated commands.
1927 2015-09-11 Don Breazeal <donb@codesourcery.com>
1929 * remote.c (remote_exec_event_p): New function.
1930 (remote_insert_exec_catchpoint): New function.
1931 (remote_remove_exec_catchpoint): New function.
1932 (init_extended_remote_ops): Initialize extended_remote_ops
1933 members to_insert_exec_catchpoint and
1934 to_remove_exec_catchpoint.
1936 2015-09-11 Don Breazeal <donb@codesourcery.com>
1937 Luis Machado <lgustavo@codesourcery.com>
1939 * infrun.c (follow_exec): Use process-style ptid for
1940 exec message. Call add_inferior_with_spaces and
1942 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
1943 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
1944 * remote.c (remote_pspace_data): New static variable.
1945 (remote_pspace_data_cleanup): New function.
1946 (get_remote_exec_file): New function.
1947 (set_remote_exec_file_1): New function.
1948 (set_remote_exec_file): New function.
1949 (show_remote_exec_file): New function.
1950 (remote_exec_file): Delete static variable.
1951 (anonymous enum) <PACKET_exec_event_feature>: New
1952 enumeration constant.
1953 (remote_protocol_features): Add entry for exec-events feature.
1954 (remote_query_supported): Add client side of qSupported query
1955 for exec-events feature.
1956 (remote_follow_exec): New function.
1957 (remote_parse_stop_reply): Handle 'exec' stop reason.
1958 (extended_remote_run, extended_remote_create_inferior): Call
1959 get_remote_exec_file and set_remote_exec_file_1.
1960 (init_extended_remote_ops) <to_follow_exec>: Initialize new
1962 (_initialize_remote): Call
1963 register_program_space_data_with_cleanup. Call
1964 add_packet_config_cmd for remote exec-events feature.
1965 Modify call to add_setshow_string_noescape_cmd for exec-file
1966 to use new functions set_remote_exec_file and
1967 show_remote_exec_file.
1968 * target-debug.h, target-delegates.c: Regenerated.
1969 * target.c (target_follow_exec): New function.
1970 * target.h (struct target_ops) <to_follow_exec>: New member.
1971 (target_follow_exec): Declare new function.
1973 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
1975 * aarch64-tdep.c (decode_cb): Move up comment describing the
1977 (decode_tb): Fix a typo in comment above the function. Move up
1978 comment describing the encoding.
1980 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
1982 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
1984 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
1987 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
1988 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
1990 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
1992 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
1995 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
1997 * ada-lang.c (ada_search_struct_field): Constify parameters
1999 (xget_renaming_scope): Likewise.
2000 (ada_is_redundant_range_encoding): Likewise.
2001 (scan_discrim_bound): Likewise.
2002 (to_fixed_range_type): Likewise.
2004 2015-09-10 Yao Qi <yao.qi@linaro.org>
2006 * breakpoint.c (download_tracepoint_locations): New local
2007 can_download_tracepoint. Check the result of
2008 target_can_download_tracepoint and save it in
2009 can_download_tracepoint if there are tracepoints to download.
2010 * linux-nat.h (enum tribool): Move it to ...
2011 * common/common-types.h: ... here.
2013 2015-09-09 Pedro Alves <palves@redhat.com>
2015 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2016 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2018 2015-09-09 Pedro Alves <palves@redhat.com>
2020 * continuations.c (add_continuation, restore_thread_cleanup)
2021 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2022 (do_all_continuations_thread, do_all_continuations)
2023 (discard_all_continuations_thread_callback)
2024 (discard_all_continuations_thread, discard_all_continuations)
2025 (add_intermediate_continuation)
2026 (do_all_intermediate_continuations_thread_callback)
2027 (do_all_intermediate_continuations_thread)
2028 (do_all_intermediate_continuations)
2029 (discard_all_intermediate_continuations_thread_callback)
2030 (discard_all_intermediate_continuations_thread)
2031 (discard_all_intermediate_continuations): Delete.
2032 * continuations.h (add_continuation, do_all_continuations)
2033 (do_all_continuations_thread, discard_all_continuations)
2034 (discard_all_continuations_thread, add_intermediate_continuation)
2035 (do_all_intermediate_continuations)
2036 (do_all_intermediate_continuations_thread)
2037 (discard_all_intermediate_continuations)
2038 (discard_all_intermediate_continuations_thread): Delete
2040 * event-top.c (stdin_event_handler): Delete references to
2042 * gdbthread.h (struct thread_info): Delete continuations and
2043 intermediate_continuations fields.
2044 * inf-loop.c (inferior_event_handler): Remove references to
2046 * infrun.c (infrun_thread_stop_requested_callback): Remove
2047 references to continuations.
2048 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2049 * thread.c: Don't include "continuations.h".
2050 (clear_thread_inferior_resources): Remove references to
2053 2015-09-09 Pedro Alves <palves@redhat.com>
2055 * infcall.c (struct dummy_frame_context_saver): Delete.
2056 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2057 (dummy_frame_context_saver_drop)
2058 (dummy_frame_context_saver_cleanup)
2059 (dummy_frame_context_saver_get_regs)
2060 (dummy_frame_context_saver_setup): Delete.
2061 * infcall.h (dummy_frame_context_saver_drop)
2062 (dummy_frame_context_saver_cleanup)
2063 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2065 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2066 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2067 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2069 2015-09-09 Pedro Alves <palves@redhat.com>
2071 * breakpoint.c: Include "thread-fsm.h".
2072 (struct until_break_command_continuation_args): Delete.
2073 (struct until_break_fsm): New.
2074 (until_break_fsm_ops): New global.
2075 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2076 (until_break_command_continuation): Delete.
2077 (until_break_fsm_clean_up): New function.
2078 (until_break_fsm_async_reply_reason): New function.
2079 (until_break_command): Adjust to create an until_break_fsm instead
2081 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2083 * infcmd.c (struct until_next_fsm): New.
2084 (until_next_fsm_ops): New global.
2085 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2086 (until_next_continuation): Delete.
2087 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2089 (until_next_command): Adjust to create a new until_next_fsm
2090 instead of a continuation.
2092 2015-09-09 Pedro Alves <palves@redhat.com>
2094 * infcall.c: Include thread_fsm.h.
2095 (struct call_return_meta_info): New.
2096 (get_call_return_value): New function, factored out from
2097 call_function_by_hand_dummy.
2098 (struct call_thread_fsm): New.
2099 (call_thread_fsm_ops): New global.
2100 (new_call_thread_fsm, call_thread_fsm_should_stop)
2101 (call_thread_fsm_should_notify_stop): New functions.
2102 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2104 (call_function_by_hand_dummy): Create a new call_thread_fsm
2105 instance, associate it with the thread, and wait for the FSM to
2106 finish. If finished successfully, fetch the function's result
2107 value out of the FSM.
2108 * infrun.c (fetch_inferior_event): If the FSM says the stop
2109 shouldn't be notified, don't call normal_stop.
2110 (maybe_remove_breakpoints): New function, factored out from ...
2111 (normal_stop): ... here. Simplify.
2112 * infrun.h (maybe_remove_breakpoints): Declare.
2113 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2114 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2115 (thread_fsm_should_notify_stop): Declare.
2117 2015-09-09 Pedro Alves <palves@redhat.com>
2119 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2120 * breakpoint.c (handle_jit_event): Print debug output.
2121 (bpstat_what): Split event callback handling to ...
2122 (bpstat_run_callbacks): ... this new function.
2123 (momentary_bkpt_print_it): No longer handle bp_finish here.
2124 * breakpoint.h (bpstat_run_callbacks): Declare.
2125 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2126 <thread_fsm>: New field.
2127 (thread_cancel_execution_command): Declare.
2128 * infcmd.c: Include thread-fsm.h.
2129 (struct step_command_fsm): New.
2130 (step_command_fsm_ops): New global.
2131 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2132 (step_1): Adjust to use step_command_fsm_prepare and
2134 (struct step_1_continuation_args): Delete.
2135 (step_1_continuation): Delete.
2136 (step_command_fsm_should_stop): New function.
2137 (step_once): Delete.
2138 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2139 (prepare_one_step): New function, based on step_once.
2140 (until_next_command): Remove step_multi reference.
2141 (struct return_value_info): New.
2142 (print_return_value): Rename to ...
2143 (print_return_value_1): ... this. New struct return_value_info
2145 (print_return_value): Reimplement as wrapper around
2146 print_return_value_1.
2147 (struct finish_command_fsm): New.
2148 (finish_command_continuation): Delete.
2149 (finish_command_fsm_ops): New global.
2150 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2152 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2154 (finish_command_continuation_free_arg): Delete.
2155 (finish_command_fsm_async_reply_reason): New.
2156 (finish_backward, finish_forward): Change symbol parameter to a
2157 finish_command_fsm. Adjust.
2158 (finish_command): Create a finish_command_fsm. Adjust.
2159 * infrun.c: Include "thread-fsm.h".
2160 (clear_proceed_status_thread): Delete the thread's FSM.
2161 (infrun_thread_stop_requested_callback): Cancel the thread's
2163 (clean_up_just_stopped_threads_fsms): New function.
2164 (fetch_inferior_event): Handle the event_thread's should_stop
2165 method saying the command isn't done yet.
2166 (process_event_stop_test): Run breakpoint callbacks here.
2167 (print_stop_event): Rename to ...
2168 (print_stop_location): ... this.
2169 (restore_current_uiout_cleanup): New function.
2170 (print_stop_event): Reimplement.
2171 (normal_stop): No longer notify the end_stepping_range observers
2172 here handle "step N" nor "finish" here. No longer call
2173 print_stop_event here.
2174 * infrun.h (struct return_value_info): Forward declare.
2175 (print_return_value): Declare.
2176 (print_stop_event): Change prototype.
2177 * thread-fsm.c: New file.
2178 * thread-fsm.h: New file.
2179 * thread.c: Include "thread-fsm.h".
2180 (thread_cancel_execution_command): New function.
2181 (clear_thread_inferior_resources): Call it.
2182 * cli/cli-interp.c (cli_on_normal_stop): New function.
2183 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2185 * mi/mi-interp.c: Include "thread-fsm.h".
2186 (restore_current_uiout_cleanup): Delete.
2187 (mi_on_normal_stop): If the thread has an FSM associated, and it
2188 finished, ask it for the async-reply-reason to print. Always call
2189 print_stop_event here, regardless of the top-level interpreter.
2190 Check bpstat_what to tell whether an asynchronous breakpoint hit
2192 * tui/tui-interp.c (tui_on_normal_stop): New function.
2193 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2195 2015-09-09 Pedro Alves <palves@redhat.com>
2197 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2198 check whether the target can async.
2199 * inf-loop.c (inferior_event_handler): Only call target_async if
2200 the target can async.
2201 * infcall.c: Include top.h and interps.h.
2202 (run_inferior_call): For the interpreter to sync mode while
2203 running the infcall. Call wait_sync_command_done instead of
2204 wait_for_inferior plus normal_stop.
2205 * infcmd.c (prepare_execution_command): Don't check whether the
2206 target can async when running in the foreground.
2207 (step_1): Delete synchronous case handling.
2208 (step_once): Always install a continuation, even in sync mode.
2209 (until_next_command, finish_forward): Don't check whether the
2211 (attach_command_post_wait, notice_new_inferior): Always install a
2212 continuation, even in sync mode.
2213 * infrun.c (mark_infrun_async_event_handler): New function.
2214 (proceed): In sync mode, mark infrun's event source instead of
2215 waiting for events here.
2216 (fetch_inferior_event): If the target can't async, do a blocking
2218 (prepare_to_wait): In sync mode, mark infrun's event source.
2219 (infrun_async_inferior_event_handler): No longer bail out if the
2221 * infrun.h (mark_infrun_async_event_handler): New declaration.
2222 * linux-nat.c (linux_nat_wait_1): Remove calls to
2223 set_sigint_trap/clear_sigint_trap.
2224 (linux_nat_terminal_inferior): No longer check whether the target
2226 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2228 (mi_execute_command_input_handler): No longer check whether the
2229 target is async. Update and simplify comment.
2230 * target.c (default_target_wait): New function.
2231 * target.h (struct target_ops) <to_wait>: Now defaults to
2232 default_target_wait.
2233 (default_target_wait): Declare.
2234 * top.c (wait_sync_command_done): New function, factored out from
2236 (maybe_wait_sync_command_done): ... this.
2237 * top.h (wait_sync_command_done): Declare.
2238 * target-delegates.c: Regenerate.
2240 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2242 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2243 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2244 Remove include of sys/utsname.h.
2245 (linux_determine_kernel_ptr_bits): Remove.
2246 (linux_determine_kernel_start): New.
2247 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2249 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2250 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2252 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2255 2015-09-07 Pedro Alves <palves@redhat.com>
2257 * guile/guile-internal.h (as_a_scm_t_subr): New.
2258 * guile/guile.c (misc_guile_functions): Use it.
2259 * guile/scm-arch.c (arch_functions): Use it.
2260 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2262 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2263 * guile/scm-cmd.c (command_functions): Use it.
2264 * guile/scm-disasm.c (disasm_functions): Use it.
2265 * guile/scm-exception.c (exception_functions)
2266 (private_exception_functions): Use it.
2267 * guile/scm-frame.c (frame_functions)
2268 * guile/scm-gsmob.c (gsmob_functions): Use it.
2269 * guile/scm-iterator.c (iterator_functions): Use it.
2270 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2271 * guile/scm-math.c (math_functions): Use it.
2272 * guile/scm-objfile.c (objfile_functions): Use it.
2273 * guile/scm-param.c (parameter_functions): Use it.
2274 * guile/scm-ports.c (port_functions, private_port_functions): Use
2276 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2277 * guile/scm-progspace.c (pspace_functions): Use it.
2278 * guile/scm-string.c (string_functions): Use it.
2279 * guile/scm-symbol.c (symbol_functions): Use it.
2280 * guile/scm-symtab.c (symtab_functions): Use it.
2281 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2283 * guile/scm-value.c (value_functions): Use it.
2285 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2287 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2288 (tui_next_win): Likewise.
2289 (tui_prev_win): Likewise.
2290 (tui_partial_win_by_name): Likewise.
2291 (tui_init_generic_part): Likewise.
2292 (init_content_element): Likewise.
2293 (tui_del_window): Likewise.
2294 (tui_free_window): Likewise.
2295 (tui_del_data_windows): Likewise.
2296 (tui_free_data_content): Likewise.
2297 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2298 * tui/tui-regs.c (tui_show_register_group): Likewise.
2299 * tui/tui-win.c (tui_resize_all): Likewise.
2300 (tui_set_focus): Likewise.
2301 (tui_set_win_height): Likewise.
2302 (make_invisible_and_set_new_height): Likewise.
2303 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2304 * tui/tui-wingeneral.c (make_visible): Likewise.
2306 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2308 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2310 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2312 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2314 * dbxread.c (dbx_end_psymtab): Likewise.
2315 * gnu-nat.c (gnu_write_inferior): Likewise.
2316 * mdebugread.c (cross_ref): Likewise.
2317 * p-valprint.c (pascal_val_print): Likewise.
2318 * xcoffread.c (xcoff_end_psymtab): Likewise.
2320 2015-09-04 Yao Qi <yao.qi@linaro.org>
2322 * NEWS: Mention the aarch64 multi-arch debugging support.
2324 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2326 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2327 type instead of a TYPE_CODE_INT one for the string_char_type
2328 and the ada_primitive_type_char types.
2330 2015-09-03 Yao Qi <yao.qi@linaro.org>
2332 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2333 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2334 aarch64_linux_region_ok_for_watchpoint.
2335 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2337 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2340 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2342 * gdb_obstack.h (obstack_strdup): Declare.
2343 * gdb_obstack.c (obstack_strdup): Define.
2344 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2345 * gdbarch.c: Regenerate.
2346 * gdbarch.h: Regenerate.
2347 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2349 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2351 * gdbtypes.c (copy_type_recursive): Update documentation.
2353 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2355 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2358 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2360 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2362 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2364 * solib-svr4.c (solib_event_probe_action): Call
2365 get_probe_argument_count using TRY...CATCH.
2366 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2368 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2370 * probe.h (struct probe_ops) <get_probe_argument_count,
2371 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2372 the comment that the function can throw an exception.
2373 (get_probe_argument_count): Likewise.
2374 (evaluate_probe_argument): Likewise.
2375 * stap-probe.c (stap_get_opcode): Call error instead of
2377 (stap_get_expected_argument_type): Likewise. Add argument
2378 'probe'. Improve error message by mentioning the probe's name.
2379 (stap_parse_probe_arguments): Adjust call to
2380 stap_get_expected_argument_type.
2381 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2382 not zero. Call internal_error if GDB requests an argument but the
2383 probe has no arguments.
2385 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2387 * ada-lang.c (ada_resolve_function): Do not ask the user what
2388 match to use when in completion mode.
2390 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2392 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2395 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2397 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2398 call_abi using XSHAL_ABI macro.
2400 2015-08-29 Doug Evans <xdje42@gmail.com>
2402 * symtab.h (struct symbol): Tweak comment.
2404 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2406 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2407 gdbarch obstack instead of on the heap. Update commentary
2410 2015-08-28 Joel Brobecker <brobecker@adacore.com>
2414 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2416 * NEWS: Update entry about non-8-bits addressable memory.
2418 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2421 2014-11-06 Doug Evans <xdje42@gmail.com>
2422 * solib.c (solib_global_lookup): Fetch arch from objfile,
2425 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2427 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2428 attempt to relocate a TLS variable offset.
2430 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2432 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2433 registered yet. Set inferior_ptid while calling target_read_memory.
2435 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2437 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2438 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2439 * linux-nat.c (check_stopped_by_breakpoint): Use
2440 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2442 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2444 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2445 thread was not yet discovered, use thread_from_lwp instead of
2446 calling thread_db_find_new_threads_1.
2448 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2450 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2453 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2455 * NEWS: Document support for non-8-bits addressable memory.
2457 2015-08-27 Pedro Alves <palves@redhat.com>
2459 * configure.ac: Remove AC_TYPE_SIGNAL call.
2460 * configure, config.in: Regenerate.
2462 2015-08-27 Pedro Alves <palves@redhat.com>
2464 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2465 * extension-priv.h: Include signal.h.
2466 (struct signal_handler) <handler>: Change type to sighandler_t.
2467 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2468 * inflow.c (sigint_ours, sigquit_ours): Change type to
2470 (child_terminal_inferior): Remove casts.
2471 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2472 (osig): Change type to sighandler_t.
2473 * nto-procfs.c (ofunc): Change type to sighandler_t.
2474 (procfs_wait): Remove casts.
2475 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2476 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2477 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2479 2015-08-27 Pedro Alves <palves@redhat.com>
2481 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2482 * gnulib/aclocal.m4: Renegerate.
2483 * gnulib/config.in: Renegerate.
2484 * gnulib/configure: Renegerate.
2485 * gnulib/import/Makefile.am: Update.
2486 * gnulib/import/Makefile.in: Regenerate.
2487 * gnulib/import/m4/gnulib-cache.m4: Update.
2488 * gnulib/import/m4/gnulib-comp.m4: Update.
2489 * gnulib/import/m4/signal_h.m4: New file.
2490 * gnulib/import/signal.in.h: New file.
2492 2015-08-27 Pedro Alves <palves@redhat.com>
2494 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2495 (MIN_MEMORY_PACKET_SIZE): New.
2496 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2497 (get_memory_packet_size): Adjust. No longer limit the max packet
2499 (set_memory_packet_size): Adjust, and remove dead code.
2500 (remote_check_symbols): Use xmalloc and a cleanup instead of
2502 (remote_packet_size): No longer cap the packet size.
2503 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2505 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
2507 * compile/compile.c (compile_to_object): Mention language in
2510 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2512 * target.c (target_pre_inferior): Unset attach_flag.
2514 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2516 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2517 * gdbarch.c: Re-generate.
2519 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2521 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2522 function with the XNEW-family equivalent.
2523 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2524 * ada-exp.y (write_ambiguous_var): Likewise.
2525 * ada-lang.c (resolve_subexp): Likewise.
2526 (user_select_syms): Likewise.
2527 (assign_aggregate): Likewise.
2528 (ada_evaluate_subexp): Likewise.
2529 (cache_symbol): Likewise.
2530 * addrmap.c (allocate_key): Likewise.
2531 (addrmap_create_mutable): Likewise.
2532 * aix-thread.c (sync_threadlists): Likewise.
2533 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2534 (alpha_gdbarch_init): Likewise.
2535 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2536 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2537 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2538 * arm-tdep.c (push_stack_item): Likewise.
2539 (arm_displaced_step_copy_insn): Likewise.
2540 (arm_gdbarch_init): Likewise.
2541 (_initialize_arm_tdep): Likewise.
2542 * avr-tdep.c (push_stack_item): Likewise.
2543 * ax-general.c (new_agent_expr): Likewise.
2544 * block.c (block_initialize_namespace): Likewise.
2545 * breakpoint.c (alloc_counted_command_line): Likewise.
2546 (update_dprintf_command_list): Likewise.
2547 (parse_breakpoint_sals): Likewise.
2548 (decode_static_tracepoint_spec): Likewise.
2549 (until_break_command): Likewise.
2550 (clear_command): Likewise.
2551 (update_global_location_list): Likewise.
2552 (get_breakpoint_objfile_data) Likewise.
2553 * btrace.c (ftrace_new_function): Likewise.
2554 (btrace_set_insn_history): Likewise.
2555 (btrace_set_call_history): Likewise.
2556 * buildsym.c (add_symbol_to_list): Likewise.
2557 (record_pending_block): Likewise.
2558 (start_subfile): Likewise.
2559 (start_buildsym_compunit): Likewise.
2560 (push_subfile): Likewise.
2561 (end_symtab_get_static_block): Likewise.
2562 (buildsym_init): Likewise.
2563 * cli/cli-cmds.c (source_command): Likewise.
2564 * cli/cli-decode.c (add_cmd): Likewise.
2565 * cli/cli-script.c (build_command_line): Likewise.
2566 (setup_user_args): Likewise.
2567 (realloc_body_list): Likewise.
2568 (process_next_line): Likewise.
2569 (copy_command_lines): Likewise.
2570 * cli/cli-setshow.c (do_set_command): Likewise.
2571 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2572 * coffread.c (coff_locate_sections): Likewise.
2573 (coff_symtab_read): Likewise.
2574 (coff_read_struct_type): Likewise.
2575 * common/cleanups.c (make_my_cleanup2): Likewise.
2576 * common/common-exceptions.c (throw_it): Likewise.
2577 * common/filestuff.c (make_cleanup_close): Likewise.
2578 * common/format.c (parse_format_string): Likewise.
2579 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2580 * compile/compile-object-load.c (munmap_list_add): Likewise.
2581 (compile_object_load): Likewise.
2582 * compile/compile-object-run.c (compile_object_run): Likewise.
2583 * compile/compile.c (append_args): Likewise.
2584 * corefile.c (specify_exec_file_hook): Likewise.
2585 * cp-support.c (make_symbol_overload_list): Likewise.
2586 * cris-tdep.c (push_stack_item): Likewise.
2587 (cris_gdbarch_init): Likewise.
2588 * ctf.c (ctf_trace_file_writer_new): Likewise.
2589 * dbxread.c (init_header_files): Likewise.
2590 (add_new_header_file): Likewise.
2591 (init_bincl_list): Likewise.
2592 (dbx_end_psymtab): Likewise.
2593 (start_psymtab): Likewise.
2594 (dbx_end_psymtab): Likewise.
2595 * dcache.c (dcache_init): Likewise.
2596 * dictionary.c (dict_create_hashed): Likewise.
2597 (dict_create_hashed_expandable): Likewise.
2598 (dict_create_linear): Likewise.
2599 (dict_create_linear_expandable): Likewise.
2600 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2601 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2602 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2603 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2604 (decode_frame_entry_1): Likewise.
2605 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2606 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2607 * dwarf2read.c (dwarf2_has_info): Likewise.
2608 (create_signatured_type_table_from_index): Likewise.
2609 (dwarf2_read_index): Likewise.
2610 (dw2_get_file_names_reader): Likewise.
2611 (create_all_type_units): Likewise.
2612 (read_cutu_die_from_dwo): Likewise.
2613 (init_tu_and_read_dwo_dies): Likewise.
2614 (init_cutu_and_read_dies): Likewise.
2615 (create_all_comp_units): Likewise.
2616 (queue_comp_unit): Likewise.
2617 (inherit_abstract_dies): Likewise.
2618 (read_call_site_scope): Likewise.
2619 (dwarf2_add_field): Likewise.
2620 (dwarf2_add_typedef): Likewise.
2621 (dwarf2_add_member_fn): Likewise.
2622 (attr_to_dynamic_prop): Likewise.
2623 (abbrev_table_alloc_abbrev): Likewise.
2624 (abbrev_table_read_table): Likewise.
2625 (add_include_dir): Likewise.
2626 (add_file_name): Likewise.
2627 (dwarf_decode_line_header): Likewise.
2628 (dwarf2_const_value_attr): Likewise.
2629 (dwarf_alloc_block): Likewise.
2630 (parse_macro_definition): Likewise.
2631 (set_die_type): Likewise.
2632 (write_psymtabs_to_index): Likewise.
2633 (create_cus_from_index): Likewise.
2634 (dwarf2_create_include_psymtab): Likewise.
2635 (process_psymtab_comp_unit_reader): Likewise.
2636 (build_type_psymtab_dependencies): Likewise.
2637 (read_comp_units_from_section): Likewise.
2638 (compute_compunit_symtab_includes): Likewise.
2639 (create_dwo_unit_in_dwp_v1): Likewise.
2640 (create_dwo_unit_in_dwp_v2): Likewise.
2641 (read_func_scope): Likewise.
2642 (process_structure_scope): Likewise.
2643 (mark_common_block_symbol_computed): Likewise.
2644 (load_partial_dies): Likewise.
2645 (dwarf2_symbol_mark_computed): Likewise.
2646 * elfread.c (elf_symfile_segments): Likewise.
2647 (elf_read_minimal_symbols): Likewise.
2648 * environ.c (make_environ): Likewise.
2649 * eval.c (evaluate_subexp_standard): Likewise.
2650 * event-loop.c (create_file_handler): Likewise.
2651 (create_async_signal_handler): Likewise.
2652 (create_async_event_handler): Likewise.
2653 (create_timer): Likewise.
2654 * exec.c (build_section_table): Likewise.
2655 * fbsd-nat.c (fbsd_remember_child): Likewise.
2656 * fork-child.c (fork_inferior): Likewise.
2657 * frv-tdep.c (new_variant): Likewise.
2658 * gdbarch.sh (gdbarch_alloc): Likewise.
2659 (append_name): Likewise.
2660 * gdbtypes.c (rank_function): Likewise.
2661 (copy_type_recursive): Likewise.
2662 (add_dyn_prop): Likewise.
2663 * gnu-nat.c (make_proc): Likewise.
2664 (make_inf): Likewise.
2665 (gnu_write_inferior): Likewise.
2666 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2667 (build_std_type_info_type): Likewise.
2668 * guile/scm-param.c (compute_enum_list): Likewise.
2669 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2670 * guile/scm-value.c (gdbscm_value_call): Likewise.
2671 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2672 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2673 (read_unwind_info): Likewise.
2674 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2675 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2676 (call_function_by_hand_dummy): Likewise.
2677 * infcmd.c (step_once): Likewise.
2678 (finish_forward): Likewise.
2679 (attach_command): Likewise.
2680 (notice_new_inferior): Likewise.
2681 * inferior.c (add_inferior_silent): Likewise.
2682 * infrun.c (add_displaced_stepping_state): Likewise.
2683 (save_infcall_control_state): Likewise.
2684 (save_inferior_ptid): Likewise.
2685 (_initialize_infrun): Likewise.
2686 * jit.c (bfd_open_from_target_memory): Likewise.
2687 (jit_gdbarch_data_init): Likewise.
2688 * language.c (add_language): Likewise.
2689 * linespec.c (decode_line_2): Likewise.
2690 * linux-nat.c (add_to_pid_list): Likewise.
2691 (add_initial_lwp): Likewise.
2692 * linux-thread-db.c (add_thread_db_info): Likewise.
2693 (record_thread): Likewise.
2694 (info_auto_load_libthread_db): Likewise.
2695 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2696 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2697 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2698 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2699 * macrocmd.c (macro_define_command): Likewise.
2700 * macroexp.c (gather_arguments): Likewise.
2701 * macroscope.c (sal_macro_scope): Likewise.
2702 * macrotab.c (new_macro_table): Likewise.
2703 * mdebugread.c (push_parse_stack): Likewise.
2704 (parse_partial_symbols): Likewise.
2705 (parse_symbol): Likewise.
2706 (psymtab_to_symtab_1): Likewise.
2707 (new_block): Likewise.
2708 (new_psymtab): Likewise.
2709 (mdebug_build_psymtabs): Likewise.
2710 (add_pending): Likewise.
2711 (elfmdebug_build_psymtabs): Likewise.
2712 * mep-tdep.c (mep_gdbarch_init): Likewise.
2713 * mi/mi-main.c (mi_execute_command): Likewise.
2714 * mi/mi-parse.c (mi_parse_argv): Likewise.
2715 * minidebug.c (lzma_open): Likewise.
2716 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2717 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2718 * mips-tdep.c (mips_gdbarch_init): Likewise.
2719 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2720 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2721 * mt-tdep.c (mt_registers_info): Likewise.
2722 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2723 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2724 (linux_enable_pt): Likewise.
2725 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2726 (linux_xfer_osdata_processgroups): Likewise.
2727 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2728 * nto-procfs.c (procfs_meminfo): Likewise.
2729 * objc-lang.c (start_msglist): Likewise.
2730 (selectors_info): Likewise.
2731 (classes_info): Likewise.
2732 (find_methods): Likewise.
2733 * objfiles.c (allocate_objfile): Likewise.
2734 (update_section_map): Likewise.
2735 * osabi.c (gdbarch_register_osabi): Likewise.
2736 (gdbarch_register_osabi_sniffer): Likewise.
2737 * parse.c (start_arglist): Likewise.
2738 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2739 (hwdebug_insert_point): Likewise.
2740 * printcmd.c (display_command): Likewise.
2741 (ui_printf): Likewise.
2742 * procfs.c (create_procinfo): Likewise.
2743 (load_syscalls): Likewise.
2744 (proc_get_LDT_entry): Likewise.
2745 (proc_update_threads): Likewise.
2746 * prologue-value.c (make_pv_area): Likewise.
2747 (pv_area_store): Likewise.
2748 * psymtab.c (extend_psymbol_list): Likewise.
2749 (init_psymbol_list): Likewise.
2750 (allocate_psymtab): Likewise.
2751 * python/py-inferior.c (add_thread_object): Likewise.
2752 * python/py-param.c (compute_enum_values): Likewise.
2753 * python/py-value.c (valpy_call): Likewise.
2754 * python/py-varobj.c (py_varobj_iter_next): Likewise.
2755 * python/python.c (ensure_python_env): Likewise.
2756 * record-btrace.c (record_btrace_start_replaying): Likewise.
2757 * record-full.c (record_full_reg_alloc): Likewise.
2758 (record_full_mem_alloc): Likewise.
2759 (record_full_end_alloc): Likewise.
2760 (record_full_core_xfer_partial): Likewise.
2761 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2762 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2763 * remote-notif.c (remote_notif_state_allocate): Likewise.
2764 * remote.c (demand_private_info): Likewise.
2765 (remote_notif_stop_alloc_reply): Likewise.
2766 (remote_enable_btrace): Likewise.
2767 * reverse.c (save_bookmark_command): Likewise.
2768 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2769 * rx-tdep.c (rx_gdbarch_init): Likewise.
2770 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2771 * ser-go32.c (dos_get_tty_state): Likewise.
2772 (dos_copy_tty_state): Likewise.
2773 * ser-mingw.c (ser_windows_open): Likewise.
2774 (ser_console_wait_handle): Likewise.
2775 (ser_console_get_tty_state): Likewise.
2776 (make_pipe_state): Likewise.
2777 (net_windows_open): Likewise.
2778 * ser-unix.c (hardwire_get_tty_state): Likewise.
2779 (hardwire_copy_tty_state): Likewise.
2780 * solib-aix.c (solib_aix_new_lm_info): Likewise.
2781 * solib-dsbt.c (dsbt_current_sos): Likewise.
2782 (dsbt_relocate_main_executable): Likewise.
2783 * solib-frv.c (frv_current_sos): Likewise.
2784 (frv_relocate_main_executable): Likewise.
2785 * solib-spu.c (spu_bfd_fopen): Likewise.
2786 * solib-svr4.c (lm_info_read): Likewise.
2787 (svr4_copy_library_list): Likewise.
2788 (svr4_default_sos): Likewise.
2789 * source.c (find_source_lines): Likewise.
2790 (line_info): Likewise.
2791 (add_substitute_path_rule): Likewise.
2792 * spu-linux-nat.c (spu_bfd_open): Likewise.
2793 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2794 * stabsread.c (dbx_lookup_type): Likewise.
2795 (read_type): Likewise.
2796 (read_member_functions): Likewise.
2797 (read_struct_fields): Likewise.
2798 (read_baseclasses): Likewise.
2799 (read_args): Likewise.
2800 (_initialize_stabsread): Likewise.
2801 * stack.c (func_command): Likewise.
2802 * stap-probe.c (handle_stap_probe): Likewise.
2803 * symfile.c (addrs_section_sort): Likewise.
2804 (addr_info_make_relative): Likewise.
2805 (load_section_callback): Likewise.
2806 (add_symbol_file_command): Likewise.
2807 (init_filename_language_table): Likewise.
2808 * symtab.c (create_filename_seen_cache): Likewise.
2809 (sort_search_symbols_remove_dups): Likewise.
2810 (search_symbols): Likewise.
2811 * target.c (make_cleanup_restore_target_terminal): Likewise.
2812 * thread.c (new_thread): Likewise.
2813 (enable_thread_stack_temporaries): Likewise.
2814 (make_cleanup_restore_current_thread): Likewise.
2815 (thread_apply_all_command): Likewise.
2816 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2817 * top.c (gdb_readline_wrapper): Likewise.
2818 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2819 * tracepoint.c (trace_find_line_command): Likewise.
2820 (all_tracepoint_actions_and_cleanup): Likewise.
2821 (make_cleanup_restore_current_traceframe): Likewise.
2822 (get_uploaded_tp): Likewise.
2823 (get_uploaded_tsv): Likewise.
2824 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2825 (tui_alloc_win_info): Likewise.
2826 (tui_alloc_content): Likewise.
2827 (tui_add_content_elements): Likewise.
2828 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
2829 (tui_set_disassem_content): Likewise.
2830 * ui-file.c (ui_file_new): Likewise.
2831 (stdio_file_new): Likewise.
2832 (tee_file_new): Likewise.
2833 * utils.c (make_cleanup_restore_integer): Likewise.
2834 (add_internal_problem_command): Likewise.
2835 * v850-tdep.c (v850_gdbarch_init): Likewise.
2836 * valops.c (find_oload_champ): Likewise.
2837 * value.c (allocate_value_lazy): Likewise.
2838 (record_latest_value): Likewise.
2839 (create_internalvar): Likewise.
2840 * varobj.c (install_variable): Likewise.
2841 (new_variable): Likewise.
2842 (new_root_variable): Likewise.
2844 (_initialize_varobj): Likewise.
2845 * windows-nat.c (windows_make_so): Likewise.
2846 * x86-nat.c (x86_add_process): Likewise.
2847 * xcoffread.c (arrange_linetable): Likewise.
2848 (allocate_include_entry): Likewise.
2849 (process_linenos): Likewise.
2850 (SYMBOL_DUP): Likewise.
2851 (xcoff_start_psymtab): Likewise.
2852 (xcoff_end_psymtab): Likewise.
2853 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
2854 * xtensa-tdep.c (xtensa_register_type): Likewise.
2855 * gdbarch.c: Regenerate.
2856 * gdbarch.h: Regenerate.
2858 2015-08-25 Don Breazeal <donb@codesourcery.com>
2860 * infrun.c (follow_exec): Re-order operations for
2861 handling follow-exec-mode "new".
2862 (handle_inferior_event_1): Assign ecs->event_thread
2863 to the current thread.
2864 * remote.c (get_remote_arch_state): Add an assertion.
2866 2015-08-26 Pedro Alves <palves@redhat.com>
2868 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
2870 2015-08-25 Pedro Alves <palves@redhat.com>
2873 * defs.h (maybe_quit): Declare.
2874 (QUIT): Now calls maybe_quit.
2875 * event-loop.c (clear_async_signal_handler)
2876 (async_signal_handler_is_marked): New functions.
2877 * event-loop.h (async_signal_handler_is_marked)
2878 (clear_async_signal_handler): New declarations.
2879 * remote.c (remote_check_pending_interrupt): New function.
2880 (interrupt_query): Use make_cleanup_restore_target_terminal. No
2881 longer check whether the target is async. If waiting for a stop
2882 reply, and a Ctrl-C as been sent to the target, offer to
2883 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
2884 Otherwise do not disconnect and throw a quit.
2885 (_initialize_remote): Install remote_check_pending_interrupt as
2886 to_check_pending_interrupt.
2887 * target.c (target_check_pending_interrupt): New function.
2888 * target.h (struct target_ops) <to_check_pending_interrupt>: New
2890 (target_check_pending_interrupt): New declaration.
2891 * utils.c (maybe_quit): New function.
2892 * target-delegates.c: Regenerate.
2894 2015-08-25 Yao Qi <yao.qi@linaro.org>
2896 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
2897 Rename local variable pid to tid, and get lwpid of lwp. Update
2900 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
2902 * ada-lang.c (ada_read_var_value): Add a var_block argument
2903 and pass it to default_read_var_value.
2904 * block.c (block_static_link): New accessor.
2905 * block.h (block_static_link): Declare it.
2906 * buildsym.c (finish_block_internal): Add a static_link
2907 argument. If there is a static link, associate it to the new
2909 (finish_block): Add a static link argument and pass it to
2910 finish_block_internal.
2911 (end_symtab_get_static_block): Update calls to finish_block and
2912 to finish_block_internal.
2913 (end_symtab_with_blockvector): Update call to
2914 finish_block_internal.
2915 * buildsym.h: Forward-declare struct dynamic_prop.
2916 (struct context_stack): Add a static_link field.
2917 (finish_block): Add a static link argument.
2918 * c-exp.y: Remove an obsolete comment (evaluation of variables
2919 already start from the selected frame, and now they climb *up*
2920 the call stack) and propagate the block information to the
2921 produced expression.
2922 * d-exp.y: Likewise.
2923 * f-exp.y: Likewise.
2924 * go-exp.y: Likewise.
2925 * jv-exp.y: Likewise.
2926 * m2-exp.y: Likewise.
2927 * p-exp.y: Likewise.
2928 * coffread.c (coff_symtab_read): Update calls to finish_block.
2929 * dbxread.c (process_one_symbol): Likewise.
2930 * xcoffread.c (read_xcoff_symtab): Likewise.
2931 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
2932 "sym" parameter to struct block_symbol, update its uses and pass
2933 its block to calls to read_var_value.
2934 (convert_symbol_sym): Update the calls to convert_one_symbol.
2935 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
2936 call to read_var_value.
2937 * dwarf2loc.c (block_op_get_frame_base): New.
2938 (dwarf2_block_frame_base_locexpr_funcs): Implement the
2939 get_frame_base method.
2940 (dwarf2_block_frame_base_loclist_funcs): Likewise.
2941 (dwarf2locexpr_baton_eval): Add a frame argument and use it
2942 instead of the selected frame in order to evaluate the
2944 (dwarf2_evaluate_property): Add a frame argument. Update call
2945 to dwarf2_locexpr_baton_eval to provide a frame in available and
2946 to handle the absence of address stack.
2947 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
2948 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
2950 (read_func_scope): Record any available static link description.
2951 Update call to finish_block.
2952 (read_lexical_block_scope): Update call to finish_block.
2953 * findvar.c (follow_static_link): New.
2954 (get_hosting_frame): New.
2955 (default_read_var_value): Add a var_block argument. Use
2956 get_hosting_frame to handle non-local references.
2957 (read_var_value): Add a var_block argument and pass it to the
2958 LA_READ_VAR_VALUE method.
2959 * gdbtypes.c (resolve_dynamic_range): Update calls to
2960 dwarf2_evaluate_property.
2961 (resolve_dynamic_type_internal): Likewise.
2962 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
2963 read_var_value, passing it the block coming from symbol lookup.
2964 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
2965 read_var_value (TODO).
2966 * infcmd.c (finish_command_continuation): Update call to
2967 read_var_value, passing it the block coming from symbol lookup.
2968 * infrun.c (insert_exception_resume_breakpoint): Likewise.
2969 * language.h (struct language_defn): Add a var_block argument to
2970 the LA_READ_VAR_VALUE method.
2971 * objfiles.c (struct static_link_htab_entry): New.
2972 (static_link_htab_entry_hash): New.
2973 (static_link_htab_entry_eq): New.
2974 (objfile_register_static_link): New.
2975 (objfile_lookup_static_link): New.
2976 (free_objfile): Free the STATIC_LINKS hashed map if needed.
2977 * objfiles.h: Include hashtab.h.
2978 (struct objfile): Add a static_links field.
2979 (objfile_register_static_link): New.
2980 (objfile_lookup_static_link): New.
2981 * printcmd.c (print_variable_and_value): Update call to
2983 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
2984 * python/py-frame.c (frapy_read_var): Update call to
2985 read_var_value, passing it the block coming from symbol lookup.
2986 * python/py-framefilter.c (extract_sym): Add a sym_block
2987 parameter and set the pointed value to NULL (TODO).
2988 (enumerate_args): Update call to extract_sym.
2989 (enumerate_locals): Update calls to extract_sym and to
2991 * python/py-symbol.c (sympy_value): Update call to
2992 read_var_value (TODO).
2993 * stack.c (read_frame_local): Update call to read_var_value.
2994 (read_frame_arg): Likewise.
2995 (return_command): Likewise.
2996 * symtab.h (struct symbol_block_ops): Add a get_frame_base
2998 (struct symbol): Add a block field.
2999 (SYMBOL_BLOCK): New accessor.
3000 * valops.c (value_of_variable): Remove frame/block handling and
3001 pass the block argument to read_var_value, which does this job
3003 (value_struct_elt_for_reference): Update calls to
3005 (value_of_this): Pass the block found to read_var_value.
3006 * value.h (read_var_value): Add a var_block argument.
3007 (default_read_var_value): Likewise.
3009 2015-08-25 Yao Qi <yao.qi@linaro.org>
3011 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3012 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3013 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3015 2015-08-25 Yao Qi <yao.qi@linaro.org>
3017 * Makefile.in (aarch64-liunx.o): New rule.
3018 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3019 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3020 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3021 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3023 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3024 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3025 * nat/aarch64-linux.c: New file.
3026 * nat/aarch64-linux.h: New file.
3028 2015-08-25 Yao Qi <yao.qi@linaro.org>
3030 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3031 lwp_arch_private_info and ptid_of_lwp.
3033 2015-08-25 Yao Qi <yao.qi@linaro.org>
3035 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3036 Move it to nat/aarch64-linux-hw-point.c.
3037 (debug_reg_change_callback): Likewise.
3038 (aarch64_notify_debug_reg_change): :Likewise.
3039 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3040 (aarch64_dr_update_callback_param): New.
3041 (debug_reg_change_callback): New function.
3042 (aarch64_notify_debug_reg_change): Likewise.
3043 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3044 Remove the declaration.
3046 2015-08-25 Yao Qi <yao.qi@linaro.org>
3048 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3049 Call current_lwp_ptid.
3051 2015-08-25 Yao Qi <yao.qi@linaro.org>
3053 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3056 2015-08-25 Yao Qi <yao.qi@linaro.org>
3058 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3059 ptid_get_pid rather than ptid_get_lwp.
3061 2015-08-24 Pedro Alves <palves@redhat.com>
3063 * NEWS (New commands): Mention set/show remote
3064 multiprocess-extensions-packet.
3065 * remote.c (remote_query_supported): Only tell the server to use
3066 the multiprocess extensions if the user hasn't force-disabled them
3067 with "set remote multiprocess-extensions-packet off".
3069 2015-08-24 Pedro Alves <palves@redhat.com>
3071 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3072 1029a8112290f6eee9d7878a391c49db42c999bd.
3073 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3075 * gnulib/import/Makefile.am: Update.
3076 * gnulib/import/Makefile.in: Update.
3077 * gnulib/import/alloca.in.h: Update.
3078 * gnulib/import/basename-lgpl.c: Update.
3079 * gnulib/import/canonicalize-lgpl.c: Update.
3080 * gnulib/import/config.charset: Update.
3081 * gnulib/import/dirent.in.h: Update.
3082 * gnulib/import/dirfd.c: Update.
3083 * gnulib/import/dirname-lgpl.c: Update.
3084 * gnulib/import/dirname.h: Update.
3085 * gnulib/import/dosname.h: Update.
3086 * gnulib/import/errno.in.h: Update.
3087 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3088 * gnulib/import/extra/snippet/c++defs.h: Update.
3089 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3090 * gnulib/import/extra/update-copyright: Update.
3091 * gnulib/import/float+.h: Update.
3092 * gnulib/import/float.c: Update.
3093 * gnulib/import/float.in.h: Update.
3094 * gnulib/import/fnmatch.c: Update.
3095 * gnulib/import/fnmatch.in.h: Update.
3096 * gnulib/import/fnmatch_loop.c: Update.
3097 * gnulib/import/fpucw.h: Update.
3098 * gnulib/import/frexp.c: Update.
3099 * gnulib/import/frexpl.c: Update.
3100 * gnulib/import/gettimeofday.c: Update.
3101 * gnulib/import/inttypes.in.h: Update.
3102 * gnulib/import/isnan.c: Update.
3103 * gnulib/import/isnand-nolibm.h: Update.
3104 * gnulib/import/isnand.c: Update.
3105 * gnulib/import/isnanl-nolibm.h: Update.
3106 * gnulib/import/isnanl.c: Update.
3107 * gnulib/import/itold.c: Update.
3108 * gnulib/import/localcharset.c: Update.
3109 * gnulib/import/localcharset.h: Update.
3110 * gnulib/import/lstat.c: Update.
3111 * gnulib/import/m4/00gnulib.m4: Update.
3112 * gnulib/import/m4/absolute-header.m4: Update.
3113 * gnulib/import/m4/alloca.m4: Update.
3114 * gnulib/import/m4/canonicalize.m4: Update.
3115 * gnulib/import/m4/codeset.m4: Update.
3116 * gnulib/import/m4/configmake.m4: Update.
3117 * gnulib/import/m4/dirent_h.m4: Update.
3118 * gnulib/import/m4/dirfd.m4: Update.
3119 * gnulib/import/m4/dirname.m4: Update.
3120 * gnulib/import/m4/double-slash-root.m4: Update.
3121 * gnulib/import/m4/eealloc.m4: Update.
3122 * gnulib/import/m4/errno_h.m4: Update.
3123 * gnulib/import/m4/exponentd.m4: Update.
3124 * gnulib/import/m4/exponentl.m4: Update.
3125 * gnulib/import/m4/extensions.m4: Update.
3126 * gnulib/import/m4/extern-inline.m4: Update.
3127 * gnulib/import/m4/fcntl-o.m4: Update.
3128 * gnulib/import/m4/float_h.m4: Update.
3129 * gnulib/import/m4/fnmatch.m4: Update.
3130 * gnulib/import/m4/fpieee.m4: Update.
3131 * gnulib/import/m4/frexp.m4: Update.
3132 * gnulib/import/m4/frexpl.m4: Update.
3133 * gnulib/import/m4/gettimeofday.m4: Update.
3134 * gnulib/import/m4/glibc21.m4: Update.
3135 * gnulib/import/m4/gnulib-cache.m4: Update.
3136 * gnulib/import/m4/gnulib-common.m4: Update.
3137 * gnulib/import/m4/gnulib-comp.m4: Update.
3138 * gnulib/import/m4/gnulib-tool.m4: Update.
3139 * gnulib/import/m4/include_next.m4: Update.
3140 * gnulib/import/m4/inttypes-pri.m4: Update.
3141 * gnulib/import/m4/inttypes.m4: Update.
3142 * gnulib/import/m4/isnand.m4: Update.
3143 * gnulib/import/m4/isnanl.m4: Update.
3144 * gnulib/import/m4/largefile.m4: Update.
3145 * gnulib/import/m4/localcharset.m4: Update.
3146 * gnulib/import/m4/locale-fr.m4: Update.
3147 * gnulib/import/m4/locale-ja.m4: Update.
3148 * gnulib/import/m4/locale-zh.m4: Update.
3149 * gnulib/import/m4/longlong.m4: Update.
3150 * gnulib/import/m4/lstat.m4: Update.
3151 * gnulib/import/m4/malloc.m4: Update.
3152 * gnulib/import/m4/malloca.m4: Update.
3153 * gnulib/import/m4/math_h.m4: Update.
3154 * gnulib/import/m4/mbrtowc.m4: Update.
3155 * gnulib/import/m4/mbsinit.m4: Update.
3156 * gnulib/import/m4/mbsrtowcs.m4: Update.
3157 * gnulib/import/m4/mbstate_t.m4: Update.
3158 * gnulib/import/m4/memchr.m4: Update.
3159 * gnulib/import/m4/memmem.m4: Update.
3160 * gnulib/import/m4/mmap-anon.m4: Update.
3161 * gnulib/import/m4/multiarch.m4: Update.
3162 * gnulib/import/m4/nocrash.m4: Update.
3163 * gnulib/import/m4/off_t.m4: Update.
3164 * gnulib/import/m4/pathmax.m4: Update.
3165 * gnulib/import/m4/readlink.m4: Update.
3166 * gnulib/import/m4/rename.m4: Update.
3167 * gnulib/import/m4/rmdir.m4: Update.
3168 * gnulib/import/m4/ssize_t.m4: Update.
3169 * gnulib/import/m4/stat.m4: Update.
3170 * gnulib/import/m4/stdbool.m4: Update.
3171 * gnulib/import/m4/stddef_h.m4: Update.
3172 * gnulib/import/m4/stdint.m4: Update.
3173 * gnulib/import/m4/stdio_h.m4: Update.
3174 * gnulib/import/m4/stdlib_h.m4: Update.
3175 * gnulib/import/m4/string_h.m4: Update.
3176 * gnulib/import/m4/strstr.m4: Update.
3177 * gnulib/import/m4/strtok_r.m4: Update.
3178 * gnulib/import/m4/sys_socket_h.m4: Update.
3179 * gnulib/import/m4/sys_stat_h.m4: Update.
3180 * gnulib/import/m4/sys_time_h.m4: Update.
3181 * gnulib/import/m4/sys_types_h.m4: Update.
3182 * gnulib/import/m4/time_h.m4: Update.
3183 * gnulib/import/m4/unistd_h.m4: Update.
3184 * gnulib/import/m4/warn-on-use.m4: Update.
3185 * gnulib/import/m4/wchar_h.m4: Update.
3186 * gnulib/import/m4/wchar_t.m4: Update.
3187 * gnulib/import/m4/wctype_h.m4: Update.
3188 * gnulib/import/m4/wint_t.m4: Update.
3189 * gnulib/import/malloc.c: Update.
3190 * gnulib/import/malloca.c: Update.
3191 * gnulib/import/malloca.h: Update.
3192 * gnulib/import/math.in.h: Update.
3193 * gnulib/import/mbrtowc.c: Update.
3194 * gnulib/import/mbsinit.c: Update.
3195 * gnulib/import/mbsrtowcs-impl.h: Update.
3196 * gnulib/import/mbsrtowcs-state.c: Update.
3197 * gnulib/import/mbsrtowcs.c: Update.
3198 * gnulib/import/memchr.c: Update.
3199 * gnulib/import/memmem.c: Update.
3200 * gnulib/import/pathmax.h: Update.
3201 * gnulib/import/readlink.c: Update.
3202 * gnulib/import/ref-add.sin: Update.
3203 * gnulib/import/ref-del.sin: Update.
3204 * gnulib/import/rename.c: Update.
3205 * gnulib/import/rmdir.c: Update.
3206 * gnulib/import/same-inode.h: Update.
3207 * gnulib/import/stat.c: Update.
3208 * gnulib/import/stdbool.in.h: Update.
3209 * gnulib/import/stddef.in.h: Update.
3210 * gnulib/import/stdint.in.h: Update.
3211 * gnulib/import/stdio.c: Update.
3212 * gnulib/import/stdio.in.h: Update.
3213 * gnulib/import/stdlib.in.h: Update.
3214 * gnulib/import/str-two-way.h: Update.
3215 * gnulib/import/streq.h: Update.
3216 * gnulib/import/string.in.h: Update.
3217 * gnulib/import/stripslash.c: Update.
3218 * gnulib/import/strnlen1.c: Update.
3219 * gnulib/import/strnlen1.h: Update.
3220 * gnulib/import/strstr.c: Update.
3221 * gnulib/import/strtok_r.c: Update.
3222 * gnulib/import/sys_stat.in.h: Update.
3223 * gnulib/import/sys_time.in.h: Update.
3224 * gnulib/import/sys_types.in.h: Update.
3225 * gnulib/import/time.in.h: Update.
3226 * gnulib/import/unistd.in.h: Update.
3227 * gnulib/import/verify.h: Update.
3228 * gnulib/import/wchar.in.h: Update.
3229 * gnulib/import/wctype.in.h: Update.
3230 * gnulib/import/gettimeofday.c: New file.
3231 * gnulib/import/m4/absolute-header.m4: New file.
3232 * gnulib/import/m4/gettimeofday.m4: New file.
3233 * gnulib/import/m4/sys_socket_h.m4: New file.
3234 * gnulib/import/m4/sys_time_h.m4: New file.
3235 * gnulib/import/stdio.c: Delete file.
3236 * gnulib/import/sys_time.in.h: New file.
3238 2015-08-24 Pedro Alves <palves@redhat.com>
3240 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3241 * common/gdb_sys_time.h: New file.
3242 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3243 * gdb_select.h: Likewise.
3244 * gdb_usleep.c: Likewise.
3245 * maint.c: Likewise.
3246 * mi/mi-main.c: Likewise.
3247 * mi/mi-parse.h: Likewise.
3248 * remote-fileio.c: Likewise.
3249 * remote-m32r-sdi.c: Likewise.
3250 * remote.c: Likewise.
3251 * ser-base.c: Likewise.
3252 * ser-pipe.c: Likewise.
3253 * ser-tcp.c: Likewise.
3254 * ser-unix.c: Likewise.
3255 * symfile.c: Likewise.
3256 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3257 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3258 * utils.c: Likewise.
3260 2015-08-24 Pedro Alves <palves@redhat.com>
3262 * NEWS: Mention removed support for the various ROM monitors.
3263 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3264 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3265 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3267 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3269 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3270 dsrec.o from gdb_target_obs.
3271 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3272 from gdb_target_obs.
3273 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3275 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3276 dink32-rom.o from gdb_target_obs.
3277 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3278 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3279 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3280 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3282 2015-08-21 Pedro Alves <palves@redhat.com>
3284 * frame.c (null_frame_id): Explicitly zero-initialize.
3286 2015-08-21 Tom Tromey <tromey@redhat.com>
3288 * dwarf2read.c (struct dwarf2_section_info): Rename field
3289 'asection' to 'section'.
3290 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3291 (dwarf2_locate_sections, dwarf2_locate_sections)
3292 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3293 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3294 (dwarf2_locate_v2_dwp_sections): Adjust.
3296 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3298 * top.h (gdb_in_secondary_prompt_p): Declare.
3299 * top.c (gdb_secondary_prompt_depth): Define.
3300 (gdb_in_secondary_prompt_p): Define.
3301 (gdb_readline_wrapper_cleanup): Decrement
3302 gdb_secondary_prompt_depth.
3303 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3304 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3305 are in a secondary prompt.
3307 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3309 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3312 2015-08-21 Gary Benson <gbenson@redhat.com>
3314 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3316 2015-08-21 Gary Benson <gbenson@redhat.com>
3318 * target.h (struct target_ops) <to_fileio_open>: New argument
3319 warn_if_slow. Update comment. All implementations updated.
3320 (target_fileio_open_warn_if_slow): New declaration.
3321 * target.c (target_fileio_open): Renamed as...
3322 (target_fileio_open_1): ...this. New argument warn_if_slow.
3323 Pass warn_if_slow to implementation. Update debug printing.
3324 (target_fileio_open): New function.
3325 (target_fileio_open_warn_if_slow): Likewise.
3326 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3327 target_fileio_open_warn_if_slow.
3329 2015-08-21 Gary Benson <gbenson@redhat.com>
3331 * nat/linux-namespaces.c (linux_mntns_access_fs):
3332 Do not overwrite old_chain.
3334 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3336 * arch/xtensa.h: New file.
3337 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3338 (ps_get_thread_area): New function.
3339 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3340 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3341 * xtensa-tdep.c (osabi.h): New #include.
3342 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3343 xtensa-specific hooks.
3344 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3345 member and move the structure to arch/xtensa.h.
3347 2015-08-21 Pedro Alves <palves@redhat.com>
3349 * remote.c (struct readahead_cache): New.
3350 (struct remote_state) <readahead_cache>: New field.
3351 (remote_open_1): Invalidate the cache.
3352 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3354 (remote_hostio_pwrite): Invalidate the readahead cache.
3355 (remote_hostio_pread): Rename to ...
3356 (remote_hostio_pread_vFile): ... this.
3357 (remote_hostio_pread_from_cache): New function.
3358 (remote_hostio_pread): Reimplement.
3359 (remote_hostio_close): Invalidate the readahead cache.
3361 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3364 * procfs.c: Include "filestuff.h".
3366 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3368 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3370 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3371 cur_line or curch, instead call wmove().
3372 (init_win_info) [CMD_WIN]: Likewise.
3373 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3374 instead call getcury().
3375 (tui_redisplay_readline): Don't set cur_line or curch.
3376 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3378 (tui_cont_sig): Remove call to wmove.
3379 (tui_getc): Don't read cur_line or curch, instead call getcury()
3380 or getyx(). Don't set curch.
3381 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3382 set cur_line or curch. Always move cursor to (0,0).
3384 2015-08-20 Pedro Alves <palves@redhat.com>
3386 * infrun.c (print_target_wait_results): Make extern.
3387 * infrun.h (print_target_wait_results): Declare.
3388 * remote.c (set_stop_requested_callback): Delete.
3389 (process_initial_stop_replies): New function.
3390 (remote_start_remote): Use it.
3391 (stop_reply_queue_length): New function.
3393 2015-08-20 Pedro Alves <palves@redhat.com>
3395 * dwarf2read.c (process_full_comp_unit): To tell whether
3396 start_subfile managed to deduce a language, test for
3397 language_unknown instead of language_c.
3399 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3401 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3404 2015-08-19 Kevin Buettner <kevinb@redhat.com>
3406 * dwarf2read.c (dwarf2_string_attr): New function.
3407 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3408 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3409 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3410 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3411 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3413 2015-08-18 Doug Evans <dje@google.com>
3414 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3417 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3419 * mi/mi-out.c: #include "vec.h".
3420 (ui_filep): New type.
3421 (DEV_VEC_P (ui_filep)): New type.
3422 (struct ui_out_data) <buffer, original_buffer>: Delete.
3423 (struct ui_out_data) <streams>: New member.
3424 (mi_ui_out_impl): Add data_destroy field.
3425 (mi_field_string, mi_field_fmt): Update.
3426 (mi_flush, mi_redirect, field_separator): Update.
3427 (mi_open, mi_close): Update.
3428 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3429 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3430 (mi_out_new): Call mi_out_data_ctor.
3432 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3434 * remote.c (strprefix): New.
3435 (remote_parse_stop_reply): Use strprefix instead of strncmp
3436 to ensure exact match of keyword.
3438 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3440 * gdb_bfd.c (debug_bfd_cache): New variable.
3441 (show_bfd_cache_debug): New function.
3442 (gdb_bfd_open): Add debug logging.
3443 (gdb_bfd_ref): Likewise.
3444 (gdb_bfd_unref): Likewise.
3445 (_initialize_gdb_bfd): Add new set/show command.
3446 * NEWS: Mention new command.
3448 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3450 * gdb_bfd.c (bfd_sharing): New variable.
3451 (show_bfd_sharing): New function.
3452 (gdb_bfd_open): Check bfd_sharing variable.
3453 (_initialize_gdb_bfd): Add new set/show command.
3454 * NEWS: Mention new command.
3456 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3458 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3460 (struct gdb_bfd_cache_search): Likewise.
3461 (eq_bfd): Compare the size, inode, and device id fields.
3462 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3463 (gdb_bfd_ref): Likewise.
3464 (gdb_bfd_unref): Likewise.
3466 2015-08-18 Pedro Alves <palves@redhat.com>
3468 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3469 target implements to_always_non_stop_p, call it.
3470 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3471 (x86_linux_create_target): Install it as to_always_non_stop_p
3474 2015-08-17 Doug Evans <dje@google.com>
3476 * ui-out.c (default_ui_out_impl): Add comment.
3478 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3480 * d-exp.y (type_aggregate_p): New function.
3481 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3482 (classify_inner_name): Likewise.
3483 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3485 2015-08-15 Doug Evans <xdje42@gmail.com>
3487 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3489 (add_psymbol_to_list): Ditto.
3491 2015-08-15 Doug Evans <xdje42@gmail.com>
3493 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3494 updated. Call end_psymtab_common.
3495 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3497 (build_type_psymtabs_reader): Ditto.
3498 * psympriv.h (sort_pst_symbols): Delete.
3499 (end_psymtab_common): Declare.
3500 * psymtab.c (sort_pst_symbols): Make static.
3501 (end_psymtab_common): New function.
3502 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3504 2015-08-15 Doug Evans <xdje42@gmail.com>
3506 * defs.h (LANGUAGE_BITS): Define.
3507 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3508 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3509 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3510 (minimal_symbol_type): Add nr_minsym_types.
3511 (MINSYM_TYPE_BITS): Define.
3512 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3513 (domain_enum_tag): Add NR_DOMAINS.
3514 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3515 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3517 2015-08-15 Doug Evans <xdje42@gmail.com>
3519 * objfiles.h: Whitespace cleanup.
3520 * psympriv.h: Whitespace cleanup.
3521 * psymtab.c: Whitespace/coding convention cleanup.
3523 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3525 * inferior.c (detach_inferior_command): Don't call
3526 any_thread_of_process when pid is 0.
3527 (kill_inferior_command): Likewise.
3529 2015-08-14 Doug Evans <xdje42@gmail.com>
3532 * NEWS: Document new /s modifier for the disassemble command.
3533 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3534 (_initialize_cli_cmds): Update online docs of disassemble command.
3535 * disasm.c: #include "source.h".
3536 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3538 (dis_line_entry): New struct.
3539 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3540 (allocate_dis_line_table): New functions.
3541 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3542 (dump_insns): New arg end_pc. All callers updated.
3543 (do_mixed_source_and_assembly_deprecated): Renamed from
3544 do_mixed_source_and_assembly. All callers updated.
3545 (do_mixed_source_and_assembly): New function.
3546 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3547 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3548 DISASSEMBLY_SOURCE. All uses updated.
3549 (DISASSEMBLY_SOURCE): New macro.
3550 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3552 2015-08-14 Keith Seitz <keiths@redhat.com>
3554 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3555 `typename' to `type_name' to avoid C++ reserved word.
3557 2015-08-14 Keith Seitz <keiths@redhat.com>
3559 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3560 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3563 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3565 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3566 xstrprintf instead of malloc and sprintf.
3567 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3568 (lex_one_token): Likewise.
3570 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3572 * solib-svr4.c (read_program_header): Add base_addr argument to
3573 report the runtime address of the segment.
3574 (find_program_interpreter): Update read_program_header call to pass
3575 a NULL pointer for the new argument.
3576 (scan_dyntag): Add ptr_addr argument to report the runtime address
3578 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3579 read_program_header to get the base address of the dynamic segment.
3580 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3581 read_program_header.
3582 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3584 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3586 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3588 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3590 * d-exp.y (%union): Add voidval.
3591 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3592 name in the lexing stage.
3593 (PostfixExpression): Move symbol completion handling in grammar here
3594 from PrimaryExpression.
3595 (PrimaryExpression): Move routines to handle resolving identifier
3596 tokens in the grammar here from push_expression_name.
3597 (IdentifierExp): Remove the handling of alternating '.' and identifier
3599 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3600 (BasicType): Remove C-style typename rules.
3601 (d_type_from_name, d_module_from_name, push_variable)
3602 (push_fieldnames, push_type_name, push_module_name)
3603 (push_expression_name): Remove.
3604 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3605 (token_and_value): New type.
3606 (token_fifo, popping, name_obstack): New globals.
3607 (classify_name): New function.
3608 (classify_inner_name): Likewise.
3610 (d_parse): Initialize token_fifo, popping and name_obstack.
3612 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3614 * Makefile.in (SFILES): Add d-namespace.c.
3615 (COMMON_OBS): Add d-namespace.o.
3616 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3617 la_lookup_symbol_nonlocal callback function pointer.
3618 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3619 (d_lookup_nested_symbol): New declaration.
3620 * d-namespace.c: New file.
3622 2015-08-13 Pedro Alves <palves@redhat.com>
3624 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3625 cleanup after the decref cleanup, not before.
3627 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3629 * ada-lang.c: Include namespace.h
3630 (aux_add_nonlocal_symbols): Fix a function name in comment.
3631 (ada_add_block_renamings): New.
3632 (add_nonlocal_symbols): Add global renamings handling.
3633 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3635 (ada_add_all_symbols): ... this new function.
3636 (ada_add_block_symbols): Try to match the input name against the
3637 "using directives list", perform a recursive symbol lookup on
3638 the matched declarations.
3639 * block.h (struct block): Move the_namespace to top-level as
3640 namespace_info. Remove the language_specific field.
3641 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3642 * buildsym.h (using_directives): Rename into...
3643 (local_using_directives): ... this.
3644 (global_using_directives): New.
3645 (struct context_stack): Rename the using_directives field into
3646 local_using_directives.
3647 * buildsym.c (finish_block_internal): Deal with the proper
3648 using directives repository (local or global).
3649 (prepare_for_building): Reset local_using_directives. Assert
3650 that there is no pending global using directive.
3651 (reset_symtab_globals): Reset global_using_directives and
3652 local_using_directives.
3653 (end_symtab_get_static_block): Don't ignore symtabs that have
3654 only using directives.
3655 (push_context): Update references to local_using_directives.
3656 (buildsym_init): Do not reset using_directives.
3657 * cp-support.c: Include namespace.h.
3658 * cp-support.h (struct using_direct): Move to namespace.h.
3659 (cp_add_using_directives): Move to namespace.h.
3660 * cp-namespace.c: Include namespace.h
3661 (cp_add_using_directive): Move to namespace.c, rename it to
3662 add_using_directive, add a "using_directives" argument and use
3663 it as the pending using directives repository. All callers
3665 * dwarf2read.c (using_directives): New.
3666 (read_import_statement): Call using_directives.
3667 (read_func_scope): Update references to local_using_directives.
3668 (read_lexical_block_scope): Likewise.
3669 (read_namespace): Update the heading comment, call
3671 * namespace.h: New file.
3672 * namespace.c: New file.
3673 * Makefile.in (SFILES): Add namespace.c.
3674 (COMMON_OBS): Add namespace.o
3676 2015-08-12 Joel Brobecker <brobecker@adacore.com>
3678 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3681 2015-08-12 Keith Seitz <keiths@redhat.com>
3683 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3684 reserved C++ keyword "explicit" to "explicit_loc".
3685 * breakpoint.c (create_overlay_event_breakpoint)
3686 (create_longjmp_master_breakpoint)
3687 (create_std_terminate_master_breakpoint)
3688 (create_exception_master_breakpoint, update_static_tracepoint):
3689 Rename reserved C++ keyword "explicit" to "explicit_loc".
3690 * completer.c (collect_explicit_location_matches)
3691 (explicit_location_completer): Rename reserved C++ keyword
3692 "explicit" to "explicit_loc".
3693 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3694 (canonicalize_linespec, create_sals_line_offset)
3695 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3696 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3697 "explicit" to "explicit_loc".
3698 * location.c (struct event_location) <explicit>: Rename to
3700 (initialize_explicit_location, new_explicit_location)
3701 (explicit_location_to_string_internal, explicit_location_to_linespec):
3702 Rename reserved C++ keyword "explicit" to "explicit_loc".
3703 * location.h (explicit_location_to_string)
3704 (explicit_location_to_linespec, initialize_explicit_location)
3705 (new_explicit_location): Rename reserved C++ keyword "explicit"
3707 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3708 keyword "explicit" to "explicit_loc".
3710 2015-08-12 Keith Seitz <keiths@redhat.com>
3712 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3713 and only call decode_line_1 when it is non-NULL.
3715 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
3717 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3718 location address is not meaningful.
3719 (breakpoint_address_is_meaningful): Update comment.
3721 2015-08-11 Keith Seitz <keiths@redhat.com>
3723 * NEWS: Mention explicit locations.
3724 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3725 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3726 (_initialize_breakpoint): Update documentation for
3727 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3729 2015-08-11 Keith Seitz <keiths@redhat.com>
3731 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3732 explicit locations, options "--source", "--function",
3733 "--label", and "--line".
3735 2015-08-11 Keith Seitz <keiths@redhat.com>
3737 * completer.c: Include location.h.
3738 (enum match_type): New enum.
3739 (location_completer): Rename to ...
3740 (linespec_completer): ... this.
3741 (collect_explicit_location_matches, backup_text_ptr)
3742 (explicit_location_completer): New functions.
3743 (location_completer): "New" function; handle linespec
3744 and explicit location completions.
3745 (complete_line_internal): Remove all location completer-specific
3747 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3748 (find_toplevel_char): Export.
3749 (linespec_parse_line_offset): Export.
3750 Issue error if STRING is not numerical.
3751 (gdb_get_linespec_parser_quote_characters): New function.
3752 * linespec.h (linespec_parse_line_offset): Declare.
3753 (get_gdb_linespec_parser_quote_characters): Declare.
3754 (is_ada_operator): Declare.
3755 (find_toplevel_char): Declare.
3756 (linespec_lexer_lex_keyword): Declare.
3757 * location.c (explicit_to_event_location): New function.
3758 (explicit_location_lex_one): New function.
3759 (string_to_explicit_location): New function.
3760 (string_to_event_location): Handle explicit locations.
3761 * location.h (explicit_to_event_location): Declare.
3762 (string_to_explicit_location): Declare.
3764 2015-08-11 Keith Seitz <keiths@redhat.com>
3766 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3767 linespec into explicit location.
3768 * breakpoint.c (create_overlay_breakpoint)
3769 (create_longjmp_master_breakpoint)
3770 (create_std_terminate_master_breakpoint)
3771 (create_exception_master_breakpoint): Convert linespec into explicit
3773 (update_static_tracepoint): Convert linespec into explicit location.
3774 * linespec.c (enum offset_relative_sign, struct line_offset): Move
3776 (struct linespec) <expression, expr_pc, source_filename>
3777 <function_name, label_name, line_offset>: Replace with ...
3778 <explicit>: ... this.
3779 <is_linespec>: New member.
3780 (PARSER_EXPLICIT): New accessor macro.
3781 (undefined_label_error): New function.
3782 (source_file_not_found_error): New function.
3783 (linespec_parse_basic): The parser result is now an explicit location.
3784 Use PARSER_EXPLICIT to access it.
3785 Use undefined_label_error.
3786 (canonicalize_linespec): Convert canonical linespec into explicit
3788 Move string representation of location to explicit_location_to_linespec
3789 and use it and explicit_location_to_string to save string
3790 representations of the canonical location.
3791 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3792 explicit location. Update all references.
3793 (convert_explicit_location_to_sals): New function.
3794 (parse_linespec): Use PARSER_EXPLICIT to access the parser
3795 result's explicit location.
3796 (linespec_state_constructor): Initialize is_linespec.
3797 Use PARSER_EXPLICIT.
3798 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3800 (event_location_to_sals): For linespec locations, set is_linespec.
3801 Handle explicit locations.
3802 (decode_objc): 'ls' contains an explicit location now. Update all
3804 (symtabs_from_filename): Use source_file_not_found_error.
3805 * location.c (struct event_location.u) <explicit>: New member.
3806 (initialize_explicit_location): New function.
3807 (initialize_event_location): Initialize explicit locations.
3808 (new_explicit_location, get_explicit_location)
3809 (get_explicit_location_const): New functions.
3810 (explicit_to_string_internal): New function; most of contents moved
3811 from canonicalize_linespec.
3812 (explicit_location_to_string): New function.
3813 (explicit_location_to_linespec): New function.
3814 (copy_event_location, delete_event_location)
3815 (event_location_to_string_const, event_location_empty_p): Handle
3817 * location.h (enum offset_relative_sign, struct line_offset): Move
3818 here from linespec.h.
3819 (enum event_location_type): Add EXPLICIT_LOCATION.
3820 (struct explicit_location): New structure.
3821 (explicit_location_to_string): Declare.
3822 (explicit_location_to_linespec): Declare.
3823 (new_explicit_location, get_explicit_locationp
3824 (get_explicit_location_const, initialize_explicit_location): Declare.
3826 2015-08-11 Keith Seitz <keiths@redhat.com>
3828 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3829 linespec for stap probe to probe location.
3830 * breakpoint.c (create_longjmp_master_breakpoint)
3831 (create_exception_master_breakpoint): Likewise.
3832 (break_command_1): Remove local variable `arg_cp'.
3833 Check location type to set appropriate breakpoint ops methods.
3834 (trace_command): Likewise.
3835 * linespec.c (event_location_to_sals): Assert on probe locations.
3836 * location.c (EL_PROBE): Add macro definition.
3837 (new_probe_location, get_probe_location): New functions.
3838 (copy_event_location, delete_event_location, event_location_to_string)
3839 (string_to_event_location, event_location_empty_p): Handle probe
3841 * location.h (enum event_location_type): Add PROBE_LOCATION.
3842 (new_probe_location, get_probe_location): Declare.
3843 * probe.c (parse_probes): Assert that LOCATION is a probe location.
3844 Convert linespec into probe location.
3846 2015-08-11 Keith Seitz <keiths@redhat.com>
3848 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
3849 Convert linespec to address location.
3850 * linespec.c (canonicalize_linespec): Do not handle address
3852 (convert_address_location_to_sals): New function; contents moved
3854 (convert_linespc_to_sals): ... here.
3855 (parse_linespec): Remove address locations from linespec grammar.
3856 Remove handling of address locations.
3857 (linespec_lex_to_end): Remove handling of address linespecs.
3858 (event_location_to_sals): Handle ADDRESS_LOCATION.
3859 (linespec_expression_to_pc): Export.
3860 * linespec.h (linespec_expression_to_pc): Add declaration.
3861 * location.c (struct event_location.u) <address>: New member.
3862 (new_address_location, get_address_location): New functions.
3863 (copy_event_location, delete_event_location, event_location_to_string)
3864 (string_to_event_location, event_location_empty_p): Handle address
3866 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
3867 (new_address_location, get_address_location): Declare.
3868 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
3869 to address location.
3870 * spu-tdep.c (spu_catch_start): Likewise.
3872 2015-08-11 Keith Seitz <keiths@redhat.com>
3874 * ax-gdb.c: Include location.h.
3875 (agent_command_1) Use linespec location instead of address
3877 * break-catch-throw.c: Include location.h.
3878 (re_set_exception_catchpoint): Use linespec locations instead
3880 * breakpoint.c: Include location.h.
3881 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
3882 (create_std_terminate_master_breakpoint)
3883 (create_exception_master_breakpoint, update_breakpoints_after_exec):
3884 Use linespec location instead of address string.
3885 (print_breakpoint_location): Use locations and
3886 event_location_to_string.
3887 Print extra_string for pending locations for non-MI streams.
3888 (print_one_breakpoint_location): Use locations and
3889 event_location_to_string.
3890 (init_raw_breakpoint_without_location): Initialize b->location.
3891 (create_thread_event_breakpoint): Use linespec location instead of
3893 (init_breakpoint_sal): Likewise.
3894 Only save extra_string if it is non-NULL and not the empty string.
3895 Use event_location_to_string instead of `addr_string'.
3896 Constify `p' and `endp'.
3897 Use skip_spaces_const/skip_space_const instead of non-const versions.
3898 Copy the location into the breakpoint.
3899 If LOCATION is NULL, save the breakpoint address as a linespec location
3900 instead of an address string.
3901 (create_breakpoint_sal): Change `addr_string' parameter to a struct
3902 event_location. All uses updated.
3903 (create_breakpoints_sal): Likewise for local variable `addr_string'.
3904 (parse_breakpoint_sals): Use locations instead of address strings.
3905 Remove check for empty linespec with conditional.
3907 (decode_static_tracepoint_spec): Make argument const and update
3909 (create_breakpoint): Change `arg' to a struct event_location and
3911 Remove `copy_arg' and `addr_start'.
3912 If EXTRA_STRING is empty, set it to NULL.
3913 Don't populate `canonical' for pending breakpoints.
3914 Pass `extra_string' to find_condition_and_thread.
3915 Clear `extra_string' if `rest' was NULL.
3916 Do not error with "garbage after location" if setting a dprintf
3918 Copy the location into the breakpoint instead of an address string.
3919 (break_command_1): Use string_to_event_location and pass this to
3920 create_breakpoint instead of an address string.
3921 Check against `arg_cp' for a probe linespec.
3922 (dprintf_command): Use string_to_event_location and pass this to
3923 create_breakpoint instead of an address string.
3924 Throw an exception if no format string was specified.
3925 (print_recreate_ranged_breakpoint): Use event_location_to_string
3926 instead of address strings.
3927 (break_range_command, until_break_command)
3928 (init_ada_exception_breakpoint): Use locations instead
3930 (say_where): Print out extra_string for pending locations.
3931 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
3933 (base_breakpoint_create_sals_from_location): Use struct event_location
3934 instead of address string.
3935 Remove `addr_start' and `copy_arg' parameters.
3936 (base_breakpoint_decode_location): Use struct event_location instead of
3938 (bkpt_re_set): Use locations instead of address strings.
3939 Use event_location_empty_p to check for unset location.
3940 (bkpt_print_recreate): Use event_location_to_string instead of
3942 Print out extra_string for pending locations.
3943 (bkpt_create_sals_from_location, bkpt_decode_location)
3944 (bkpt_probe_create_sals_from_location): Use struct event_location
3945 instead of address string.
3946 (bkpt_probe_decode_location): Use struct event_location instead of
3948 (tracepoint_print_recreate): Use event_location_to_string to
3949 recreate the tracepoint.
3950 (tracepoint_create_sals_from_location, tracepoint_decode_location)
3951 (tracepoint_probe_create_sals_from_location)
3952 (tracepoint_probe_decode_location): Use struct event_location
3953 instead of address string.
3954 (dprintf_print_recreate): Use event_location_to_string to recreate
3956 (dprintf_re_set): Remove check for valid/missing format string.
3957 (strace_marker_create_sals_from_location)
3958 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
3959 (update_static_tracepoint): Use struct event_location instead of
3961 (location_to_sals): Likewise.
3962 Pass `extra_string' to find_condition_and_thread.
3963 For newly resolved pending breakpoint locations, clear the location's
3964 string representation.
3965 Assert that the breakpoint's condition string is NULL when
3966 condition_not_parsed.
3967 (breakpoint_re_set_default, create_sals_from_location_default)
3968 (decode_location_default, trace_command, ftrace_command)
3969 (strace_command, create_tracepoint_from_upload): Use locations
3970 instead of address strings.
3971 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
3972 Use struct event_location instead of address string.
3974 <decode_location>: Likewise.
3975 (struct breakpoint) <addr_string>: Change to struct event_location
3976 and rename `location'.
3977 <addr_string_range_end>: Change to struct event_location and rename
3978 `location_range_end'.
3979 (create_breakpoint): Use struct event_location instead of address
3981 * cli/cli-cmds.c: Include location.h.
3982 (edit_command, list_command): Use locations instead of address strings.
3983 * elfread.c: Include location.h.
3984 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
3985 * guile/scm-breakpoint.c: Include location.h.
3986 (bpscm_print_breakpoint_smob): Use event_location_to_string.
3987 (gdbscm_register_breakpoint): Use locations instead of address
3989 * linespec.c: Include location.h.
3990 (struct ls_parser) <stream>: Change to const char *.
3991 (PARSER_STREAM): Update.
3992 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
3993 keywords must be followed by whitespace.
3994 (canonicalize_linespec): Save a linespec location into `canonical'.
3995 Save a canonical linespec into `canonical'.
3996 (parse_linespec): Change `argptr' to const char * and rename `arg'.
3998 Update function description.
3999 (linespec_parser_new): Initialize `parser'.
4000 Update initialization of parsing stream.
4001 (event_location_to_sals): New function.
4002 (decode_line_full): Change `argptr' to a struct event_location and
4003 rename it `location'.
4004 Use locations instead of address strings.
4005 Call event_location_to_sals instead of parse_linespec.
4006 (decode_line_1): Likewise.
4007 (decode_line_with_current_source, decode_line_with_last_displayed)
4008 Use locations instead of address strings.
4009 (decode_objc): Likewise.
4010 Change `argptr' to const char * and rename `arg'.
4011 (destroy_linespec_result): Delete the linespec result's location
4012 instead of freeing the address string.
4013 * linespec.h (struct linespec_result) <addr_string>: Change to
4014 struct event_location and rename to ...
4015 <location>: ... this.
4016 (decode_line_1, decode_line_full): Change `argptr' to struct
4017 event_location. All callers updated.
4018 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4019 (mi_cmd_break_insert_1): Use locations instead of address strings.
4020 Throw an error if there was "garbage" at the end of the specified
4022 * probe.c: Include location.h.
4023 (parse_probes): Change `argptr' to struct event_location.
4024 Use event locations instead of address strings.
4025 * probe.h (parse_probes): Change `argptr' to struct event_location.
4026 * python/py-breakpoint.c: Include location.h.
4027 (bppy_get_location): Constify local variable `str'.
4028 Use event_location_to_string.
4029 (bppy_init): Use locations instead of address strings.
4030 * python/py-finishbreakpoint.c: Include location.h.
4031 (bpfinishpy_init): Remove local variable `addr_str'.
4032 Use locations instead of address strings.
4033 * python/python.c: Include location.h.
4034 (gdbpy_decode_line): Use locations instead of address strings.
4035 * remote.c: Include location.h.
4036 (remote_download_tracepoint): Use locations instead of address
4038 * spu-tdep.c: Include location.h.
4039 (spu_catch_start): Remove local variable `buf'.
4040 Use locations instead of address strings.
4041 * tracepoint.c: Include location.h.
4042 (scope_info): Use locations instead of address strings.
4043 (encode_source_string): Constify parameter `src'.
4044 * tracepoint.h (encode_source_string): Likewise.
4046 2015-08-11 Keith Seitz <keiths@redhat.com>
4048 * Makefile.in (SFILES): Add location.c.
4049 (HFILES_NO_SRCDIR): Add location.h.
4050 (COMMON_OBS): Add location.o.
4051 * linespec.c (linespec_lex_to_end): New function.
4052 * linespec.h (linespec_lex_to_end): Declare.
4053 * location.c: New file.
4054 * location.h: New file.
4056 2015-08-11 Keith Seitz <keiths@redhat.com>
4058 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4059 Renamed to create_sals_from_location.
4060 <decode_linespec>: Renamed to decode_location.
4062 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4063 (create_sals_from_location_default): ... this.
4064 (addr_string_to_sals): Renamed to ...
4065 (location_to_sals): ... this.
4066 (decode_linespec_default): Renamed to ...
4067 (decode_location_default): ... this.
4068 (base_breakpoint_create_sals_from_address): Renamed to ...
4069 (base_breakpoint_create_sals_from_location): ... this.
4070 (bkpt_create_sals_from_address): Renamed to ...
4071 (bkpt_create_sals_from_location): ... this.
4072 (bkpt_decode_linespec): Renamed to ...
4073 (bkpt_decode_location): ... this.
4074 (bkpt_probe_create_sals_from_address): Renamed to ...
4075 (bkpt_probe_create_sals_from_location): ... this.
4076 (tracepoint_create_sals_from_address): Renamed to ...
4077 (tracepoint_create_sals_from_location): ... this.
4078 (tracepoint_decode_linespec): Renamed to ...
4079 (tracepoint_decode_location): ... this.
4080 (tracepoint_probe_create_sals_from_address): Renamed to ...
4081 (tracepoint_probe_create_sals_from_location): ... this.
4082 (tracepoint_probe_decode_linespec): Renamed to ...
4083 (tracepoint_probe_decode_location): ... this.
4084 (strace_marker_create_sals_from_address): Renamed to ...
4085 (strace_marker_create_sals_from_location): ... this.
4086 (decode_linespec_default): Renamed to ...
4087 (decode_location_default): ... this.
4089 2015-08-10 Doug Evans <dje@google.com>
4090 Keith Seitz <keiths@redhat.com>
4093 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4094 make_file_symbol_completion_list and made static.
4095 (make_file_symbol_completion_list): New function.
4097 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4099 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4100 trailing new-line at end of warning message.
4101 (proceed): Add i18n marker to error messages.
4103 2015-08-07 Pedro Alves <palves@redhat.com>
4105 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4107 2015-08-07 Pedro Alves <palves@redhat.com>
4109 * s390-linux-tdep.c (is_non_branch_ril)
4110 (s390_displaced_step_copy_insn): New functions.
4111 (s390_displaced_step_fixup): Update comment.
4112 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4113 gdbarch_displaced_step_copy_insn hook.
4115 2015-08-07 Pedro Alves <palves@redhat.com>
4117 * infrun.c (displaced_step_prepare_throw): Return -1 if
4118 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4120 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4121 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4123 (ppc_displaced_step_copy_insn): New function.
4124 (ppc_displaced_step_fixup): Update comment.
4125 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4126 gdbarch_displaced_step_copy_insn hook.
4127 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4129 * gdbarch.h: Regenerate.
4131 2015-08-07 Pedro Alves <palves@redhat.com>
4133 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4135 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4136 Return false if dispaced stepping failed before.
4137 (resume): Pass the current inferior to
4138 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4139 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4140 displaced_stepping_failed flag, and fall back to an in-line
4143 2015-08-07 Pedro Alves <palves@redhat.com>
4145 * darwin-nat.c (darwin_stop): Rename to ...
4146 (darwin_interrupt): ... this.
4147 (_initialize_darwin_inferior): Adjust.
4148 * gnu-nat.c (gnu_stop): Delete.
4149 (gnu_target): Don't install gnu_stop.
4150 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4151 (inf_ptrace_interrupt): ... this.
4152 (inf_ptrace_target): Adjust.
4153 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4155 * linux-nat (linux_nat_stop): Rename to ...
4156 (linux_nat_interrupt): ... this.
4157 (linux_nat_stop): Reimplement.
4158 (linux_nat_add_target): Install linux_nat_interrupt.
4159 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4160 (nto_handle_sigint_twice): ... this.
4161 (nto_interrupt): Rename to ...
4162 (nto_handle_sigint): ... this. Call target_interrupt instead of
4164 (procfs_wait): Adjust.
4165 (procfs_stop): Rename to ...
4166 (procfs_interrupt): ... this.
4167 (init_procfs_targets): Adjust.
4168 * procfs.c (procfs_stop): Rename to ...
4169 (procfs_interrupt): ... this.
4170 (procfs_target): Adjust.
4171 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4172 (m32r_interrupt): ... this.
4173 (init_m32r_ops): Adjust.
4174 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4175 (gdbsim_interrupt_inferior): ... this.
4176 (gdbsim_stop): Rename to ...
4177 (gdbsim_interrupt): ... this.
4178 (gdbsim_cntrl_c): Adjust.
4179 (init_gdbsim_ops): Adjust.
4180 * remote.c (sync_remote_interrupt): Adjust comments.
4181 (remote_stop_as): Rename to ...
4182 (remote_interrupt_as): ... this.
4183 (remote_stop): Adjust comment.
4184 (remote_interrupt): New function.
4185 (init_remote_ops): Install remote_interrupt.
4186 * target.c (target_interrupt): New function.
4187 * target.h (struct target_ops) <to_interrupt>: New field.
4188 (target_interrupt): New declaration.
4189 * windows-nat.c (windows_stop): Rename to ...
4190 (windows_interrupt): ... this.
4191 * target-delegates.c: Regenerate.
4193 2015-08-07 Pedro Alves <palves@redhat.com>
4195 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4196 threads" as alternative to "switching back to stepped thread".
4198 2015-08-07 Pedro Alves <palves@redhat.com>
4200 * NEWS: Mention "maint set/show target-non-stop".
4201 * breakpoint.c (update_global_location_list): Check
4202 target_is_non_stop_p instead of non_stop.
4203 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4204 * infrun.c (show_can_use_displaced_stepping)
4205 (can_use_displaced_stepping_p, start_step_over_inferior):
4207 (internal_resume_ptid): New function.
4209 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4210 all-stop mode but the target is always in non-stop mode, start all
4211 the other threads that are implicitly resumed too.
4212 (for_each_just_stopped_thread, fetch_inferior_event)
4213 (adjust_pc_after_break, stop_all_threads): Check
4214 target_is_non_stop_p instead of non_stop.
4215 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4216 with the target always in non-stop mode.
4217 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4218 instead of non_stop.
4219 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4220 instead of non_stop.
4221 (keep_going_stepped_thread): Use internal_resume_ptid.
4222 (stop_waiting): If in all-stop mode, and the target is in non-stop
4223 mode, stop all threads.
4224 (keep_going_pass): Likewise, when starting a new in-line step-over
4226 * linux-nat.c (get_pending_status, select_event_lwp)
4227 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4228 target_is_non_stop_p instead of non_stop.
4229 (linux_nat_always_non_stop_p): New function.
4230 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4231 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4232 * target-delegates.c: Regenerate.
4233 * target.c (target_is_non_stop_p): New function.
4234 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4235 (maint_set_target_non_stop_command)
4236 (maint_show_target_non_stop_command): New functions.
4237 (_initilize_target): Install "maint set/show target-non-stop"
4239 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4240 (target_non_stop_enabled): New declaration.
4241 (target_is_non_stop_p): New declaration.
4243 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4245 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4246 has a pending status, return true.
4247 * gdbthread.h: Include target/waitstatus.h.
4248 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4249 stop_pc>: New fields.
4250 (struct thread_info) <resumed>: New field.
4251 (set_resumed): Declare.
4252 * infrun.c: Include "event-loop.h".
4253 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4254 (infrun_async): New function.
4255 (clear_step_over_info): Add debug output.
4256 (displaced_step_in_progress_any_inferior): New function.
4257 (displaced_step_fixup): New returns int.
4258 (start_step_over): Handle in-line step-overs too. Assert the
4259 thread is marked resumed.
4260 (resume_cleanups): Clear the thread's resumed flag.
4261 (resume): Set the thread's resumed flag. Return early if the
4262 thread has a pending status. Allow stepping a breakpoint with no
4264 (proceed): Adjust to check 'resumed' instead of 'executing'.
4265 (clear_proceed_status_thread): If the thread has a pending status,
4266 and that status is a finished step, discard the pending status.
4267 (clear_proceed_status): Don't clear step_over_info here.
4268 (random_pending_event_thread, do_target_wait): New functions.
4269 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4271 (wait_one): New function.
4272 (THREAD_STOPPED_BY): New macro.
4273 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4274 (thread_stopped_by_hw_breakpoint): New functions.
4275 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4277 (handle_inferior_event): Also call set_resumed(false) on all
4278 threads implicitly stopped by the event.
4279 (restart_threads, resumed_thread_with_pending_status): New
4281 (finish_step_over): If we were doing an in-line step-over before,
4282 and no longer are after trying to start a new step-over, restart
4283 all threads. If we have multiple threads with pending events,
4284 save the current event and go through the event loop again.
4285 (handle_signal_stop): Return early if finish_step_over returns
4287 <random signal>: If we get a signal while stepping over a
4288 breakpoint in-line in non-stop mode, restart all threads. Clear
4289 step_over_info before delivering the signal.
4290 (keep_going_stepped_thread): Use internal_error instead of
4291 gdb_assert. Mark the thread as resumed.
4292 (keep_going_pass_signal): Assert the thread isn't already resumed.
4293 If some other thread is doing an in-line step-over, defer the
4294 resume. If we just started a new in-line step-over, stop all
4295 threads. Don't clear step_over_info.
4296 (infrun_async_inferior_event_handler): New function.
4297 (_initialize_infrun): Create async event handler with
4298 infrun_async_inferior_event_handler as callback.
4299 (infrun_async): New declaration.
4300 * target.c (target_async): New function.
4301 * target.h (target_async): Declare macro and readd as function
4303 * target/waitstatus.h (enum target_stop_reason)
4304 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4305 * thread.c (new_thread): Clear the new waitstatus field.
4306 (set_resumed): New function.
4308 2015-08-07 Pedro Alves <palves@redhat.com>
4310 * infrun.c (keep_going_stepped_thread): New function, factored out
4312 (switch_back_to_stepped_thread): ... here.
4314 2015-08-07 Pedro Alves <palves@redhat.com>
4316 * infrun.c (currently_stepping): Extend intro comment.
4317 * target.h (target_resume): Extend intro comment.
4319 2015-08-07 Pedro Alves <palves@redhat.com>
4321 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4322 of inferior_ptid. If the stepped thread vanished, return 0
4323 instead of resuming here. Use reset_ecs. Print the prev_pc and
4324 the current stop_pc in log message. Clear trap_expected if the
4325 thread advanced. Don't pass currently_stepping to
4328 2015-08-07 Pedro Alves <palves@redhat.com>
4330 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4331 * infrun.c (struct execution_control_state): Move higher up in the
4333 (reset_ecs): New function.
4334 (start_step_over): Now returns int. Rewrite to use
4335 keep_going_pass_signal instead of manually starting a displaced step.
4336 (resume): Don't call set_running here. If displaced stepping
4337 can't start now, clear trap_expected.
4338 (find_thread_needs_step_over): Delete function.
4339 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4340 If the current thread needs a step over, push it in the step-over
4341 chain. Don't set insert breakpoints nor call resume directly
4342 here. Instead rewrite to use start_step_over and
4343 keep_going_pass_signal.
4344 (finish_step_over): New function.
4345 (handle_signal_stop): Call finish_step_over instead of
4347 (switch_back_to_stepped_thread): If the event thread needs another
4348 step-over do that first. Use start_step_over.
4349 (keep_going_pass_signal): New function, factored out from ...
4350 (keep_going): ... here.
4351 (_initialize_infrun): Comment moved here.
4352 * thread.c (set_running_thread): New function.
4353 (set_running, finish_thread_state): Use set_running_thread.
4355 2015-08-07 Pedro Alves <palves@redhat.com>
4357 * gdbthread.h (struct thread_info) <step_over_prev,
4358 step_over_next>: New fields.
4359 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4360 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4362 * infrun.c (struct displaced_step_request): Delete.
4363 (struct displaced_step_inferior_state) <step_request_queue>:
4365 (displaced_step_prepare): Assert that trap_expected is set. Use
4366 thread_step_over_chain_enqueue. Split starting a new displaced
4368 (start_step_over): ... this new function.
4369 (resume): Assert the thread isn't waiting for a step over already.
4370 (proceed): Assert the thread isn't waiting for a step over
4372 (infrun_thread_stop_requested): Adjust to remove threads from the
4373 embedded step-over chain.
4374 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4375 displaced_step_fixup.
4376 (handle_signal_stop): Call start_step_over after
4377 displaced_step_fixup.
4378 * infrun.h (step_over_queue_head): New declaration.
4379 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4380 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4381 (thread_step_over_chain_enqueue)
4382 (thread_step_over_chain_remove): New functions.
4383 (delete_thread_1): Remove thread from the step-over chain.
4385 2015-08-07 Pedro Alves <palves@redhat.com>
4387 * infrun.c (thread_still_needs_step_over): Rename to ...
4388 (thread_still_needs_step_over_bp): ... this.
4389 (enum step_over_what): New.
4390 (thread_still_needs_step_over): Reimplement.
4392 2015-08-07 Pedro Alves <palves@redhat.com>
4394 * remote.c (remote_wait_as): If not waiting for a stop reply,
4395 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4396 requested, don't block waiting forever.
4398 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4400 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4401 waitstatus pointers instead of an ecs. Adjust.
4402 (handle_inferior_event): Adjust caller.
4404 2015-08-07 Pedro Alves <palves@redhat.com>
4406 * infrun.c (handle_inferior_event): If we get
4407 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4408 mode, mark all threads of the exiting process as not-executing.
4409 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4410 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4411 exiting process, if inferior_ptid still points at a process.
4412 * thread.c (struct current_thread_cleanup) <next>: New field.
4413 (current_thread_cleanup_chain): New global.
4414 (restore_current_thread_ptid_changed): New function.
4415 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4416 current_thread_cleanup_chain list.
4417 (make_cleanup_restore_current_thread): Add the cleanup data to the
4418 current_thread_cleanup_chain list.
4419 (_initialize_thread): Install restore_current_thread_ptid_changed
4420 as thread_ptid_changed observer.
4422 2015-08-07 Joel Brobecker <brobecker@adacore.com>
4424 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4425 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4426 smaller than expected.
4428 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4430 * stack.c (get_frame_language): Moved ...
4431 * frame.c (get_frame_language): ... to here.
4432 * language.h (get_frame_language): Declaration moved to frame.h.
4433 * frame.h: Add language.h include, for language enum.
4434 (get_frame_language): Declaration moved from language.h.
4435 * language.c: Add frame.h include.
4436 * top.c: Add frame.h include.
4437 * symtab.h (struct obj_section): Declare.
4438 (struct cmd_list_element): Declare.
4440 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4442 * language.c (show_language_command): Find selected frame before
4443 asking for the language of that frame.
4444 (set_language_command): Likewise.
4445 * language.h (get_frame_language): Add frame parameter.
4446 * stack.c (get_frame_language): Add frame parameter, assert
4447 parameter is not NULL, update comment and reindent.
4448 * top.c (check_frame_language_change): Pass the selected frame
4449 into get_frame_language.
4451 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4453 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4454 (pt_btrace_insn_flags): New.
4455 (ftrace_add_pt): Call pt_btrace_insn_flags.
4456 * btrace.h (btrace_insn_flag): New.
4457 (btrace_insn) <flags>: New.
4458 * record-btrace.c (btrace_insn_history): Print insn prefix.
4459 * NEWS: Announce it.
4461 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4463 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4464 * configure: Regenerate.
4466 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4468 * Makefile.in (LIBICONV): Define.
4469 (CLIBS): Add LIBICONV.
4470 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4471 * configure: Regenerate.
4473 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4474 Pedro Alves <palves@redhat.com>
4476 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4477 (arm_set_abi): Likewise.
4478 * ax-general.c (ax_print): Likewise.
4479 * c-exp.y (exp : string_exp): Likewise.
4480 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4481 (do_compile_dwarf_expr_to_c): Likewise.
4482 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4484 * dwarf2expr.c (execute_stack_op): Likewise.
4485 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4486 (disassemble_dwarf_expression): Likewise.
4487 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4488 (read_array_order): Likewise.
4489 (abbrev_table_read_table): Likewise.
4490 (read_attribute_value): Likewise.
4491 (skip_unknown_opcode): Likewise.
4492 (dwarf_decode_macro_bytes): Likewise.
4493 (dwarf_decode_macros): Likewise.
4494 * eval.c (value_f90_subarray): Likewise.
4495 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4496 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4497 * infrun.c (handle_command): Likewise.
4498 * memory-map.c (memory_map_start_memory): Likewise.
4499 * osabi.c (set_osabi): Likewise.
4500 * parse.c (operator_length_standard): Likewise.
4501 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4502 single return point.
4503 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4504 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4505 (gdbpy_lookup_global_symbol): Likewise.
4506 * record-full.c (record_full_restore): Likewise.
4507 * regcache.c (regcache_register_status): Likewise.
4508 (regcache_raw_read): Likewise.
4509 (regcache_cooked_read): Likewise.
4510 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4511 * symtab.c (initialize_ordinary_address_classes): Likewise.
4512 * target-debug.h (target_debug_print_signals): Likewise.
4513 * utils.c (do_restore_current_language): Likewise.
4515 2015-08-06 Clem Dickey <clemd@acm.org>
4518 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4520 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4522 * complaints.c (enum complaint_series): Add newlines and remove
4523 out of date comment.
4524 (struct complaints) <series>: Change type to enum
4525 complaint_series and remove out of date comment.
4526 (symfile_complaint_hook): Use equivalent enum value
4527 ISOLATED_MESSAGE instead of 0.
4529 2015-08-06 Pedro Alves <palves@redhat.com>
4531 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4534 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4536 * common/agent.c (symbol_list) <required>: Remove.
4538 2015-08-06 Pedro Alves <palves@redhat.com>
4540 * target/waitstatus.h (enum target_stop_reason)
4541 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4543 2015-08-05 Pedro Alves <palves@redhat.com>
4544 Joel Brobecker <brobecker@adacore.com>
4546 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4547 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4548 case where BS->STOP is not set.
4550 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4552 * nat/gdb_thread_db.h: Add copyright header.
4553 Protect against multiple inclusion.
4555 2015-08-05 Yao Qi <yao.qi@linaro.org>
4557 * aarch64-linux-nat.c (get_thread_id): Remove.
4558 (debug_reg_change_callback): Call ptid_get_lwp instead of
4560 (fetch_gregs_from_thread): Likewise.
4561 (store_gregs_to_thread): Likewise.
4562 (fetch_fpregs_from_thread): Likewise.
4563 (store_fpregs_to_thread): Likewise.
4564 (aarch64_linux_get_debug_reg_capacity): Likewise.
4565 * arm-linux-nat.c (get_thread_id): Remove.
4566 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4567 * xtensa-linux-nat.c (get_thread_id): Remove.
4568 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4569 * arm-linux-nat.c (get_thread_id): Remove.
4570 (GET_THREAD_ID): Remove.
4571 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4572 (store_fpregs, fetch_regs, store_regs): Likewise.
4573 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4574 (fetch_vfp_regs, store_vfp_regs): Likewise.
4575 (arm_linux_read_description): Likewise.
4576 (arm_linux_get_hwbp_cap): Likewise.
4577 * xtensa-linux-nat.c (get_thread_id): Remove.
4578 (GET_THREAD_ID): Remove.
4579 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4582 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4584 * python/py-linetable.c: Fix case of Linetable to LineTable
4585 in docstrings and code comments.
4586 * python/py-symtab.c: Same.
4588 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4590 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4592 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4595 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4598 2015-08-04 Pedro Alves <palves@redhat.com>
4600 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4601 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4602 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4603 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4604 (td_thr_validate_ftype, td_thr_get_info_ftype)
4605 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4606 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4608 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4609 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4610 local macros and use them instead of verbose_dlsym and dlsym
4613 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4615 * nios2-tdep.h: Include opcode/nios2.h here.
4616 (NIOS2_CDX_OPCODE_SIZE): New.
4617 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4618 * nios2-tdep.c: Don't include opcode/nios2.h here.
4619 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4621 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4622 (nios2_match_addi, nios2_match_orhi): Likewise.
4623 (nios2_match_stw, nios2_match_ldw): Likewise.
4624 (nios2_match_rdctl): Likewise.
4625 (nios2_match_stwm, nios2_match_ldwm): New.
4626 (nios2_match_branch): Add cases for R2 encodings.
4627 (nios2_match_jmpi, nios2_match_calli): Likewise.
4628 (nios2_match_jmpr, nios2_match_callr): Likewise.
4629 (nios2_match_break, nios2_match_trap): Likewise.
4630 (nios2_in_epilogue_p): Add R2 support.
4631 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4633 (nios2_breakpoint_from_pc): Handle R2 instructions.
4634 (nios2_get_next_pc): Likewise. Adjust call to
4635 tdep->syscall_next_pc.
4636 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4637 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4638 instruction field macros instead of literal hex values.
4639 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4640 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4641 Use size field from OP instead of assuming all instructions
4643 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4645 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4647 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4648 variable warning with some compilers.
4650 2015-08-03 Yao Qi <yao.qi@linaro.org>
4652 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4653 in comment. Replace "rw" with "type".
4654 (arm_linux_remove_watchpoint): Change type of "rw" to
4655 "enum target_hw_bp_type".
4657 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4659 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4661 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4662 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4663 * mt-tdep.c (mt_skip_prologue): Likewise.
4664 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4666 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4668 * ada-exp.y (write_object_renaming): Replace struct
4669 ada_symbol_info with struct block_symbol. Update field
4670 references accordingly.
4671 (block_lookup, select_possible_type_sym): Likewise.
4672 (find_primitive_type): Likewise. Also update call to
4673 ada_lookup_symbol to extract the symbol itself.
4674 (write_var_or_type, write_name_assoc): Likewise.
4675 * ada-lang.h (struct ada_symbol_info): Remove.
4676 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4677 struct block_symbol.
4678 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4679 (ada_lookup_symbol): Return struct block_symbol instead of a
4681 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4682 with struct block_symbol.
4683 (resolve_subexp, ada_resolve_function, sort_choices,
4684 user_select_syms, is_nonfunction, add_defn_to_vec,
4685 num_defns_collected, defns_collected,
4686 symbols_are_identical_enums, remove_extra_symbols,
4687 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4688 ada_lookup_symbol_list, ada_iterate_over_symbols,
4689 ada_lookup_encoded_symbol, get_var_value): Likewise.
4690 (ada_lookup_symbol): Return a block_symbol instead of a mere
4691 symbol. Replace struct ada_symbol_info with struct
4693 (ada_lookup_symbol_nonlocal): Likewise.
4694 (standard_lookup): Make block passing explicit through
4695 lookup_symbol_in_language.
4696 * ada-tasks.c (get_tcb_types_info): Update the calls to
4697 lookup_symbol_in_language to extract the mere symbol out of the
4699 (ada_tasks_inferior_data_sniffer): Likewise.
4700 * ax-gdb.c (gen_static_field): Likewise for the call to
4702 (gen_maybe_namespace_elt): Deal with struct block_symbol from
4704 (gen_expr): Likewise.
4705 * c-exp.y: Likewise. Remove uses of block_found.
4706 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4707 (classify_name): Likewise. Rename the "sym" local variable to
4709 * c-valprint.c (print_unpacked_pointer): Likewise.
4710 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4711 "sym" parameter from struct symbol * to struct block_symbol.
4712 Use it to remove uses of block_found. Deal with struct
4713 block_symbol from lookup functions.
4714 (gcc_convert_symbol): Likewise. Update the call to
4716 * compile/compile-object-load.c (compile_object_load): Deal with
4717 struct block_symbol from lookup functions.
4718 * cp-namespace.c (cp_lookup_nested_symbol_1,
4719 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4720 cp_search_static_and_baseclasses,
4721 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4722 cp_lookup_symbol_imports_or_template,
4723 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4724 lookup_namespace_scope, cp_lookup_nonlocal,
4725 find_symbol_in_baseclass): Return struct block_symbol instead of
4726 mere symbols and deal with struct block_symbol from lookup
4728 * cp-support.c (inspect_type, replace_typedefs,
4729 cp_lookup_rtti_type): Deal with struct block_symbol from
4731 * cp-support.h (cp_lookup_symbol_nonlocal,
4732 cp_lookup_symbol_from_namespace,
4733 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4734 Return struct block_symbol instead of mere symbols.
4735 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4737 Deal with struct block_symbol from lookup functions. Remove
4738 uses of block_found.
4739 * eval.c (evaluate_subexp_standard): Update call to
4740 cp_lookup_symbol_namespace.
4741 * f-exp.y: Deal with struct block_symbol from lookup functions.
4742 Remove uses of block_found.
4744 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4745 lookup_enum, lookup_template_type, check_typedef): Deal with
4746 struct block_symbol from lookup functions.
4747 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4748 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4749 (gdbscm_lookup_global_symbol): Likewise.
4750 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4751 * go-exp.y: Likewise. Remove uses of block_found.
4752 (package_name_p, classify_packaged_name, classify_name):
4754 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4755 * jv-exp.y (push_variable): Likewise.
4756 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4757 * language.c (language_bool_type): Likewise.
4758 * language.h (struct language_defn): Update
4759 la_lookup_symbol_nonlocal to return a struct block_symbol rather
4761 * linespec.c (find_label_symbols): Deal with struct block_symbol
4762 from lookup functions.
4763 * m2-exp.y: Likewise. Remove uses of block_found.
4765 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4766 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4767 * p-exp.y: Likewise. Remove uses of block_found.
4769 * p-valprint.c (pascal_val_print): Likewise.
4770 * parse.c (write_dollar_variable): Likewise. Remove uses of
4772 * parser-defs.h (struct symtoken): Turn the SYM field into a
4773 struct block_symbol.
4774 * printcmd.c (address_info): Deal with struct block_symbol from
4776 * python/py-frame.c (frapy_read_var): Likewise.
4777 * python/py-symbol.c (gdbpy_lookup_symbol,
4778 gdbpy_lookup_global_symbol): Likewise.
4779 * skip.c (skip_function_command): Likewise.
4780 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
4781 block_symbol instead of a mere symbol.
4782 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4783 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4784 * solib.c (solib_global_lookup): Likewise.
4785 * solist.h (solib_global_lookup): Likewise.
4786 (struct target_so_ops): Update lookup_lib_global_symbol to
4787 return a struct block_symbol rather than a mere symbol.
4788 * source.c (select_source_symtab): Deal with struct block_symbol
4789 from lookup functions.
4790 * stack.c (print_frame_args, iterate_over_block_arg_vars):
4792 * symfile.c (set_initial_language): Likewise.
4793 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
4795 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4796 (struct symbol_cache_slot): Turn the FOUND field into a struct
4798 (block_found): Remove.
4799 (eq_symbol_entry): Update to deal with struct block_symbol in
4801 (symbol_cache_lookup): Return a struct block_symbol rather than
4803 (symbol_cache_mark_found): Add a BLOCK parameter to fill
4804 appropriately the cache slots. Update callers.
4805 (symbol_cache_dump): Update cache slots handling to the type
4807 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4808 lookup_symbol_aux, lookup_local_symbol,
4809 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4810 lookup_symbol_in_objfile_symtabs,
4811 lookup_symbol_in_objfile_from_linkage_name,
4812 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4813 lookup_symbol_in_static_block, lookup_static_symbol,
4814 lookup_global_symbol):
4815 Return a struct block_symbol rather than a mere symbol. Deal
4816 with struct block_symbol from other lookup functions. Remove
4817 uses of block_found.
4818 (lookup_symbol_in_block): Remove uses of block_found.
4819 (struct global_sym_lookup_data): Turn the RESULT field into a
4820 struct block_symbol.
4821 (lookup_symbol_global_iterator_cb): Update references to the
4823 (search_symbols): Deal with struct block_symbol from lookup
4825 * symtab.h (struct block_symbol): New structure.
4826 (block_found): Remove.
4827 (lookup_symbol_in_language, lookup_symbol,
4828 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
4829 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
4830 lookup_global_symbol_from_objfile): Return a struct block_symbol
4831 rather than just a mere symbol. Update comments to remove
4832 mentions of block_found.
4833 * valops.c (find_function_in_inferior,
4834 value_struct_elt_for_reference, value_maybe_namespace_elt,
4835 value_of_this): Deal with struct block_symbol from lookup
4837 * value.c (value_static_field, value_fn_field): Likewise.
4839 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4841 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
4844 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4845 Pedro Alves <palves@redhat.com>
4847 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
4848 type or value instead of integer.
4849 (aarch64_linux_insert_watchpoint): Likewise.
4850 (aarch64_linux_remove_watchpoint): Likewise.
4851 * ada-lang.c (ada_op_print_tab): Likewise.
4852 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
4853 (amd64_linux_syscall_record_common): Likewise.
4854 * arch-utils.c (target_byte_order_user): Likewise.
4855 (default_byte_order): Likewise.
4856 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
4857 (arm_linux_get_hwbp_type): Likewise.
4858 (arm_linux_hw_watchpoint_initialize): Likewise.
4859 (arm_linux_insert_watchpoint): Likewise.
4860 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
4861 (arm_linux_syscall_record): Likewise.
4862 * breakpoint.c (update_watchpoint): Likewise.
4863 (breakpoint_here_p): Likewise.
4864 (bpstat_print): Likewise.
4865 (enable_breakpoint_disp): Likewise.
4866 * c-lang.c (c_op_print_tab): Likewise.
4867 * cli/cli-decode.c (add_info_alias): Likewise.
4868 * d-lang.c (d_op_print_tab): Likewise.
4869 * eval.c (evaluate_subexp_standard): Likewise.
4870 * f-exp.y (dot_ops): Likewise.
4871 (f77_keywords): Likewise.
4872 * f-lang.c (f_op_print_tab): Likewise.
4873 * go-lang.c (go_op_print_tab): Likewise.
4874 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
4875 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
4876 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4877 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
4878 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
4879 (struct scm_from_stringn_data): Likewise.
4880 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4881 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4882 (ia64_linux_remove_watchpoint): Likewise.
4883 (ia64_linux_can_use_hw_breakpoint): Likewise.
4884 * infrun.c (print_stop_event): Likewise.
4885 * jv-lang.c (java_op_print_tab): Likewise.
4886 * linux-nat.c (linux_proc_xfer_partial): Likewise.
4887 * linux-nat.h (struct lwp_info): Likewise.
4888 * linux-thread-db.c (enable_thread_event): Likewise.
4889 * m2-lang.c (m2_op_print_tab): Likewise.
4890 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4891 (mi_cmd_stack_list_variables): Likewise.
4892 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
4893 * mi/mi-out.c (mi_table_begin): Likewise.
4894 (mi_table_header): Likewise.
4895 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
4896 (mips_linux_insert_watchpoint): Likewise.
4897 (mips_linux_remove_watchpoint): Likewise.
4898 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
4899 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
4900 (mips_linux_watch_type_to_irw): Likewise.
4901 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4902 (procfs_insert_hw_watchpoint): Likewise.
4903 (procfs_remove_hw_watchpoint): Likewise.
4904 (procfs_hw_watchpoint): Likewise.
4905 (procfs_can_use_hw_breakpoint): Likewise.
4906 (procfs_remove_hw_watchpoint): Likewise.
4907 (procfs_insert_hw_watchpoint): Likewise.
4908 * p-lang.c (pascal_op_print_tab): Likewise.
4909 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
4910 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
4911 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
4912 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4913 (procfs_insert_watchpoint): Likewise.
4914 (procfs_remove_watchpoint): Likewise.
4915 * psymtab.c (recursively_search_psymtabs): Likewise.
4916 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
4917 (m32r_insert_watchpoint): Likewise.
4918 * remote-mips.c (mips_can_use_watchpoint): Likewise.
4919 (mips_insert_watchpoint): Likewise.
4920 (mips_remove_watchpoint): Likewise.
4921 * remote.c (watchpoint_to_Z_packet): Likewise.
4922 (remote_insert_watchpoint): Likewise.
4923 (remote_remove_watchpoint): Likewise.
4924 (remote_check_watch_resources): Likewise.
4925 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4926 (s390_remove_watchpoint): Likewise.
4927 (s390_can_use_hw_breakpoint): Likewise.
4928 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4929 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
4930 * target.h (struct target_ops): Likewise.
4931 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4932 * ui-out.c (struct ui_out_hdr): Likewise.
4933 (append_header_to_list): Likewise.
4934 (get_next_header): Likewise.
4935 (verify_field): Likewise.
4936 (ui_out_begin): Likewise.
4937 (ui_out_field_int): Likewise.
4938 (ui_out_field_fmt_int): Likewise.
4939 (ui_out_field_skip): Likewise.
4940 (ui_out_field_string): Likewise.
4941 (ui_out_field_fmt): Likewise.
4942 * varobj.c (new_variable): Likewise.
4943 * x86-nat.c (x86_insert_watchpoint): Likewise.
4944 (x86_remove_watchpoint): Likewise.
4945 (x86_can_use_hw_breakpoint): Likewise.
4946 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
4947 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
4948 previously anonymous enumeration type..
4949 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
4951 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
4952 (target_debug_print_enum_bptype): New.
4953 * target-delegates.c: Regenerate.
4955 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
4957 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
4958 already says and disallow non-stack memory writes in the prologue.
4960 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
4962 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
4963 reflect how current GCC emits stack overflow checks. Match
4964 both trap and break instructions for backward compatbility.
4965 Disallow other trap and break instructions in the prologue.
4967 2015-07-30 Pedro Alves <palves@redhat.com>
4970 * linux-nat.c (wait_lwp): Report to the core when thread group
4973 2015-07-30 Pedro Alves <palves@redhat.com>
4974 Simon Marchi <simon.marchi@ericsson.com>
4977 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
4978 mark the new thread as resumed. Remove STOPPING parameter.
4979 (wait_lwp): Adjust call to linux_handle_extended_wait.
4980 (linux_nat_filter_event): Adjust call to
4981 linux_handle_extended_wait.
4982 (resume_stopped_resumed_lwps): Add debug output.
4984 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
4986 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
4988 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
4989 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
4990 gdbarch_fast_tracepoint_valid_at.
4991 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
4992 * gdbarch.h: Regenerate.
4993 * gdbarch.c: Regenerate.
4994 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
4995 argument. Do not set it.
4996 * remote.c (remote_download_tracepoint): Adjust call to
4997 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
4998 the instruction length.
5000 2015-07-30 Yao Qi <yao.qi@linaro.org>
5002 * arm-tdep.h (enum gdb_regnum): Move it to ...
5003 * arch/arm.h: ... here. New file.
5004 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5006 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5008 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5009 Change its type to int *.
5010 (decode_br): Rename link argument to is_blr. Change its type to
5012 (decode_cb): Rename op argument to is_cbnz. Change its type to
5014 (decode_tb): Rename op argument to is_tbnz. Change its type to
5015 int *. Set is_tbnz to either 1 or 0.
5016 (aarch64_analyze_prologue): Change type of is_link to int. Add
5017 new variables is_cbnz and is_tbnz. Adjust call to
5018 aarch64_decode_cb and aarch64_decode_tb.
5020 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5022 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5024 (mips_linux_new_thread): Likewise.
5025 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5027 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5029 * top.c: Include "tui/tui.h".
5030 (undo_terminal_modifications_before_exit): New static function.
5031 (quit_force): Use it.
5033 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5035 * target.c (terminal_state): Initialize to terminal_is_ours.
5037 2015-07-29 Yao Qi <yao.qi@linaro.org>
5040 * dcache.c (dcache_read_memory_partial): Call
5041 raw_memory_xfer_partial.
5042 * target.c (raw_memory_xfer_partial): Make it non-static.
5043 * target.h (raw_memory_xfer_partial): Declare.
5045 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5047 * c-valprint.c (c_val_print_array): Consider addressable memory
5049 (c_val_print_ptr): Likewise.
5050 (c_val_print_int): Likewise.
5051 * findvar.c (read_frame_register_value): Likewise.
5052 * valarith.c (find_size_for_pointer_math): Likewise.
5053 (value_ptrdiff): Likewise.
5054 (value_subscripted_rvalue): Likewise.
5055 * valops.c (read_value_memory): Likewise (and rename variables).
5056 (value_assign): Likewise.
5057 (value_repeat): Likewise.
5058 (value_array): Likewise.
5059 (value_slice): Likewise.
5060 * valprint.c (generic_val_print_ptr): Likewise.
5061 (generic_val_print_enum): Likewise.
5062 (generic_val_print_bool): Likewise.
5063 (generic_val_print_int): Likewise.
5064 (generic_val_print_char): Likewise.
5065 (generic_val_print_float): Likewise.
5066 (generic_val_print_decfloat): Likewise.
5067 (generic_val_print_complex): Likewise.
5068 (val_print_scalar_formatted): Likewise.
5069 (val_print_array_elements): Likewise.
5070 * value.c (set_value_parent): Likewise.
5071 (value_contents_copy_raw): Likewise.
5072 (set_internalvar_component): Likewise.
5073 (value_primitive_field): Likewise.
5074 (value_fetch_lazy): Likewise.
5075 * value.h (read_value_memory): Update comment.
5077 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5079 * value.c (get_value_arch): New function.
5080 * value.h (get_value_arch): New declaration.
5082 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5084 * value.c (struct value): Update comments.
5086 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5088 * gdbtypes.c (type_length_units): New function.
5089 * gdbtypes.h (type_length_units): New declaration.
5090 (struct type) <length>: Update comment.
5092 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5094 * valprint.c (generic_val_print): Factor out complex
5095 printing code to ...
5096 (generic_val_print_complex): ... this new function.
5098 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5100 * valprint.c (generic_val_print): Factor out decfloat
5101 printing code to ...
5102 (generic_val_print_decfloat): ... this new function.
5104 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5106 * valprint.c (generic_val_print): Factor out float
5107 printing code to ...
5108 (generic_val_print_float): ... this new function.
5110 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5112 * valprint.c (generic_val_print): Factor out char
5113 printing code to ...
5114 (generic_val_print_char): ... this new function.
5116 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5118 * valprint.c (generic_val_print): Factor out integer
5119 printing code to ...
5120 (generic_val_print_int): ... this new function.
5122 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5124 * valprint.c (generic_val_print): Factor out bool
5125 printing code to ...
5126 (generic_val_print_bool): ... this new function.
5128 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5130 * valprint.c (generic_val_print): Factor out function/method
5131 printing code to ...
5132 (generic_val_print_func): ... this new function.
5134 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5136 * valprint.c (generic_val_print): Factor out flags
5137 printing code to ...
5138 (generic_val_print_flags): ... this new function.
5140 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5142 * valprint.c (generic_val_print): Factor out enum
5143 printing code to ...
5144 (generic_val_print_enum): ... this new function.
5146 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5148 * valprint.c (generic_val_print): Factor out reference
5149 printing code to ...
5150 (generic_val_print_ref): ... this new function.
5152 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5154 * valprint.c (generic_val_print): Factor out memberptr
5155 printing code to ...
5156 (generic_val_print_memberptr): ... this new function.
5158 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5160 * valprint.c (generic_val_print): Factor out pointer
5161 printing code to ...
5162 (generic_val_print_ptr): ... this new function.
5164 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5166 * valprint.c (generic_val_print): Factor out array
5167 printing code to ...
5168 (generic_val_print_array): ... this new function.
5170 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5172 * valprint.c (generic_val_print): Factor out
5173 print_unpacked_pointer code to ...
5174 (print_unpacked_pointer): ... this new function.
5176 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5178 * event-top.c (handle_sigterm): Don't inspect
5179 target_can_async_p. Always set the quit flag and always mark
5180 the async signal handler.
5182 2015-07-27 Yao Qi <yao.qi@linaro.org>
5184 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5186 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5188 * remote.c (read_ptid): Return null_ptid when no thread id
5190 (remote_current_thread): Add log warning for malformed
5192 (remote_start_remote): Add log warning when current thread
5195 2015-07-24 Pedro Alves <palves@redhat.com>
5197 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5198 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5199 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5201 2015-07-24 Pedro Alves <palves@redhat.com>
5204 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5205 is resumed, and extend the debug log.
5207 2015-07-24 Pedro Alves <palves@redhat.com>
5209 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5211 2015-07-24 Pedro Alves <palves@redhat.com>
5213 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5215 * alpha-linux-nat.c: Likewise.
5216 * amd64-linux-nat.c: Likewise.
5217 * arm-linux-nat.c: Likewise.
5218 * hppa-linux-nat.c: Likewise.
5219 * i386-linux-nat.c: Likewise.
5220 * ia64-linux-nat.c: Likewise.
5221 * linux-fork.c: Likewise.
5222 * linux-nat.c: Likewise.
5223 * m32r-linux-nat.c: Likewise.
5224 * m68klinux-nat.c: Likewise.
5225 * mips-linux-nat.c: Likewise.
5226 * nat/linux-btrace.c: Likewise.
5227 * nat/linux-ptrace.c: Likewise.
5228 * nat/linux-ptrace.h
5229 * nat/mips-linux-watch.c: Likewise.
5230 * nat/x86-linux-dregs.c: Likewise.
5231 * ppc-linux-nat.c: Likewise.
5232 * s390-linux-nat.c: Likewise.
5233 * spu-linux-nat.c: Likewise.
5234 * tilegx-linux-nat.c: Likewise.
5235 * x86-linux-nat.c: Likewise.
5236 * xtensa-linux-nat.c: Likewise.
5238 2015-07-24 Pedro Alves <palves@redhat.com>
5240 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5241 __ptrace_request as first parameter type instead of int.
5242 (PTRACE_TYPE_ARG1): Define.
5243 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5244 that casts first argument to PTRACE_TYPE_ARG1.
5245 * config.in: Regenerate.
5246 * configure: Regenerate.
5248 2015-07-24 Pedro Alves <palves@redhat.com>
5250 * gdb_ptrace.h: Move ...
5251 * nat/gdb_ptrace.h: ... here.
5252 * inf-ptrace.c: Adjust.
5254 2015-07-24 Pedro Alves <palves@redhat.com>
5256 * acinclude.m4: Include ptrace.m4.
5257 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5258 * ptrace.m4: ... to this new file.
5260 2015-07-23 Doug Evans <dje@google.com>
5262 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5263 (load_cu): Handle dummy CUs.
5264 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5265 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5267 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5269 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5270 documentation to say that it returns a list rather than
5272 (linetable_object_methods): Update the docstring of the
5273 "source_line" entry.
5275 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5277 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5278 type to the recursive call instead of the original (maybe
5279 TYPE_CODE_TYPEDEF) type.
5281 2015-07-23 Yao Qi <yao.qi@linaro.org>
5283 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5284 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5285 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5287 2015-07-21 Yao Qi <yao.qi@linaro.org>
5289 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5290 Move it to nat/aarch64-linux-hw-point.c.
5291 (aarch64_linux_child_post_startup_inferior): Update.
5292 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5294 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5297 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5299 * common/btrace-common.c (btrace_data_append): Change case label.
5301 2015-07-20 Yao Qi <yao.qi@linaro.org>
5303 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5305 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5306 "unsigned long long".
5308 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5310 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5311 to be set for SEC_ALLOC sections too.
5313 2015-07-17 Yao Qi <yao.qi@linaro.org>
5315 * Makefile.in (HFILES_NO_SRCDIR): Add
5316 nat/aarch64-linux-hw-point.h.
5317 (aarch64-linux-hw-point.o): New rule.
5318 * nat/aarch64-linux-hw-point.h: New file.
5319 * nat/aarch64-linux-hw-point.c: New file.
5320 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5321 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5322 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5323 (AARCH64_HWP_ALIGNMENT): Likewise.
5324 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5325 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5326 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5327 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5328 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5329 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5330 (struct aarch64_debug_reg_state): Likewise.
5331 (struct arch_lwp_info): Likewise.
5332 (aarch64_linux_set_debug_regs): Likewise.
5333 (aarch64_notify_debug_reg_change): Remove static.
5334 (aarch64_align_watchpoint): Likewise.
5335 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5336 (aarch64_watchpoint_length): Likewise.
5337 (aarch64_point_encode_ctrl_reg): Likewise
5338 (aarch64_point_is_aligned): Likewise.
5339 (aarch64_dr_state_insert_one_point): Likewise.
5340 (aarch64_dr_state_remove_one_point): Likewise.
5341 (aarch64_handle_breakpoint): Likewise.
5342 (aarch64_handle_aligned_watchpoint): Likewise.
5343 (aarch64_handle_unaligned_watchpoint): Likewise.
5344 (aarch64_handle_watchpoint): Likewise.
5345 * config/aarch64/linux.mh (NAT_FILE): Add
5346 aarch64-linux-hw-point.o.
5348 2015-07-17 Yao Qi <yao.qi@linaro.org>
5350 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5351 state and don't call aarch64_get_debug_reg_state. All callers
5353 (aarch64_linux_insert_hw_breakpoint): Call
5354 aarch64_get_debug_reg_state earlier.
5355 (aarch64_linux_remove_hw_breakpoint): Likewise.
5356 (aarch64_handle_aligned_watchpoint): Add argument state and
5357 don't call aarch64_get_debug_reg_state. All callers update.
5358 (aarch64_handle_unaligned_watchpoint): Likewise.
5359 (aarch64_handle_watchpoint): Add argument state.
5360 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5362 (aarch64_linux_remove_watchpoint): Likewise.
5364 2015-07-17 Yao Qi <yao.qi@linaro.org>
5366 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5368 (aarch64_handle_unaligned_watchpoint): Likewise.
5370 2015-07-17 Yao Qi <yao.qi@linaro.org>
5372 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5373 argument type's type to 'enum target_hw_bp_type'.
5374 (aarch64_dr_state_remove_one_point): Likewise.
5375 (aarch64_handle_breakpoint): Likewise.
5376 (aarch64_linux_insert_hw_breakpoint): Likewise.
5377 (aarch64_linux_remove_hw_breakpoint): Likewise.
5378 (aarch64_handle_aligned_watchpoint): Likewise.
5380 2015-07-17 Yao Qi <yao.qi@linaro.org>
5382 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5383 ptid_get_pid instead of get_thread_id.
5385 2015-07-17 Yao Qi <yao.qi@linaro.org>
5387 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5388 (add_current_inferior_and_thread): Don't initialise ptid.
5390 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5392 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5393 unavailable if invalid.
5395 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5397 Revert the previous 6 commits:
5398 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5399 Move gdb_regex* to common/
5400 Prepare linux_find_memory_regions_full & co. for move
5401 Move linux_find_memory_regions_full & co.
5402 gdbserver build-id attribute generator
5403 Validate symbol file using build-id
5405 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5406 Jan Kratochvil <jan.kratochvil@redhat.com>
5408 Validate symbol file using build-id.
5409 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5410 and 'show validate-build-id'. Add build-id attribute.
5411 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5412 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5413 * solib-frv.c (_initialize_frv_solib): Ditto.
5414 * solib-spu.c (set_spu_solib_ops): Ditto.
5415 * solib-svr4.c: Include rsp-low.h.
5416 (NOTE_GNU_BUILD_ID_NAME): New define.
5417 (svr4_validate): New function.
5418 (svr4_copy_library_list): Duplicate field build_id.
5419 (library_list_start_library): Parse 'build-id' attribute.
5420 (svr4_library_attributes): Add 'build-id' attribute.
5421 (_initialize_svr4_solib): Assign validate value.
5422 * solib-target.c (solib.h): Include.
5423 (_initialize_solib_target): Assign validate value.
5424 * solib.c (validate_build_id, show_validate_build_id): New.
5425 (solib_map_sections): Use ops->validate.
5426 (clear_so): Free build_id.
5427 (default_solib_validate): New function.
5428 (_initialize_solib): Add "validate-build-id".
5429 * solib.h (default_solib_validate): New declaration.
5430 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5431 (target_so_ops): New field 'validate'.
5433 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5434 Jan Kratochvil <jan.kratochvil@redhat.com>
5436 gdbserver build-id attribute generator.
5437 * features/library-list-svr4.dtd (library-list-svr4): New
5438 'build-id' attribute.
5440 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5441 Jan Kratochvil <jan.kratochvil@redhat.com>
5443 Move linux_find_memory_regions_full & co.
5444 * linux-tdep.c (nat/linux-maps.h): Include.
5445 (gdb_regex.h): Remove the include.
5446 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5447 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5448 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5449 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5450 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5451 and target/target.h.
5452 (struct smaps_vmflags, read_mapping, decode_vmflags)
5453 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5454 (linux_find_memory_regions_full): Move from linux-tdep.c.
5455 * nat/linux-maps.h (read_mapping): New declaration.
5456 (linux_find_memory_region_ftype, enum filterflags): Moved from
5458 (linux_find_memory_regions_full): New declaration.
5459 * target.c (target/target-utils.h): Include.
5460 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5461 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5462 definitions to target/target-utils.c.
5463 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5464 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5466 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5467 (read_alloc): New declaration.
5468 (read_stralloc_func_ftype): New typedef.
5469 (read_stralloc): New declaration.
5470 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5472 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5473 Jan Kratochvil <jan.kratochvil@redhat.com>
5475 Prepare linux_find_memory_regions_full & co. for move.
5476 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5477 (linux_find_memory_regions_full): Change signature and prepare
5478 for moving to linux-maps.
5479 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5480 (linux_find_memory_regions_thunk): New.
5481 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5482 (linux_find_memory_regions_gdb): New.
5483 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5484 (linux_make_mappings_corefile_notes): Use
5485 linux_find_memory_regions_gdb.
5486 * target.c (read_alloc_pread_ftype): New typedef.
5487 (target_fileio_read_alloc_1_pread): New function.
5488 (read_alloc): Refactor from target_fileio_read_alloc_1.
5489 (read_stralloc_func_ftype): New typedef.
5490 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5491 (read_stralloc): Refactored from target_fileio_read_stralloc.
5492 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5494 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5496 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5498 (COMMON_OBS): Add gdb_regex.o.
5500 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5501 --without-included-regex and USE_INCLUDED_REGEX.
5502 * common/gdb_regex.c: New file from utils.c functions.
5503 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5504 file wrapping define name.
5505 * configure: Rebuilt.
5506 * configure.ac (gdb_use_included_regex, --without-included-regex)
5507 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5508 * gdb_regex.h: Move it to common/gdb_regex.h.
5509 * utils.c: Remove include gdb_regex.h.
5510 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5511 (compile_rx_or_error): Move them to common/gdb_regex.c.
5513 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5514 Jan Kratochvil <jan.kratochvil@redhat.com>
5516 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5517 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5518 common/target-utils.h.
5519 (COMMON_OBS): Add target-utils.o.
5520 (linux-maps.o, target-utils.o): New.
5521 * target/target-utils.c: New file.
5522 * target/target-utils.h: New file.
5523 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5524 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5525 * nat/linux-maps.c: New file.
5526 * nat/linux-maps.h: New file.
5528 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5529 Pedro Alves <palves@redhat.com>
5531 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5532 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5533 (perf_event_read_bts): Change the type of SIZE and READ.
5534 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5535 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5536 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5538 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5539 buffer size to UINT_MAX.
5540 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5542 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5543 <last_head>: Change type.
5544 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5545 * common/btrace-common.c (btrace_data_append): Change the type of
5547 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5550 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5552 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5553 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5555 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5556 (ada_array_length): Likewise.
5557 (find_parallel_type_by_descriptive_type): Likewise.
5558 (ada_check_typedef): Likewise.
5559 * arm-tdep.c (arm_return_in_memory): Likewise.
5560 * ax-gdb.c (gen_trace_static_fields): Likewise.
5561 (gen_struct_ref_recursive): Likewise.
5562 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5563 (variable: block COLONCOLON name): Likewise.
5564 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5565 * c-lang.c (classify_type): Likewise.
5566 * c-typeprint.c (c_print_type): Likewise.
5567 (c_print_typedef): Likewise.
5568 (c_type_print_base): Likewise.
5569 * c-valprint.c (c_val_print): Likewise.
5570 * compile/compile-c-types.c (convert_type): Likewise.
5571 * compile/compile-object-load.c (get_out_value_type): Likewise.
5572 * completer.c (add_struct_fields): Likewise.
5573 (expression_completer): Likewise.
5574 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5575 (cp_lookup_nested_symbol_1): Likewise.
5576 (cp_lookup_nested_symbol): Likewise.
5577 * cp-valprint.c (cp_print_value_fields): Likewise.
5578 (cp_print_static_field): Likewise.
5579 * d-valprint.c (d_val_print): Likewise.
5580 * eval.c (evaluate_subexp_standard): Likewise.
5581 (evaluate_subexp_for_sizeof): Likewise.
5582 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5583 * f-typeprint.c (f_type_print_base): Likewise.
5584 * f-valprint.c (f_val_print): Likewise.
5585 * gdbtypes.c (get_discrete_bounds): Likewise.
5586 (create_array_type_with_stride): Likewise.
5587 (type_name_no_tag_or_error): Likewise.
5588 (lookup_struct_elt_type): Likewise.
5589 (get_unsigned_type_max): Likewise.
5590 (internal_type_vptr_fieldno): Likewise.
5591 (set_type_vptr_fieldno): Likewise.
5592 (internal_type_vptr_basetype): Likewise.
5593 (set_type_vptr_basetype): Likewise.
5594 (get_vptr_fieldno): Likewise.
5595 (is_integral_type): Likewise.
5596 (is_scalar_type): Likewise.
5597 (is_scalar_type_recursive): Likewise.
5598 (distance_to_ancestor): Likewise.
5599 (is_unique_ancestor_worker): Likewise.
5600 (check_types_equal): Likewise.
5601 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5603 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5605 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5606 also test for language_d.
5607 (dwarf2_compute_name): Likewise.
5608 (read_func_scope): Likewise.
5609 (read_structure_type): Likewise.
5610 (new_symbol_full): Likewise.
5611 (determine_prefix): Likewise.
5612 (read_import_statement): Use dot as the separator for language_d.
5613 (typename_concat): Likewise, but don't prefix the D main function.
5615 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5617 * nat/linux-namespaces.c (setns): Rename from this ...
5618 (do_setns): ... to this. Support calling setns if it exists.
5619 (mnsh_handle_setns): Call do_setns.
5621 2015-07-13 Yao Qi <yao.qi@linaro.org>
5623 * exec.c (exec_file_attach): Add period at the end of error
5626 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5628 * tui/tui-win.c (window_name_completer): New function.
5629 (focus_completer): Call window_name_completer. All old content
5630 moved into window_name_completer.
5631 (winheight_completer): New function.
5632 (_initialize_tui_win): Rename variable. Add completer to
5633 winheight command. Update doc string on winheight.
5635 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5637 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5638 all nios2 mach variants.
5640 2015-07-10 Kevin Buettner <kevinb@redhat.com>
5642 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5643 of target_read_memory.
5645 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5647 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5649 (parse_scrolling_args): Likewise.
5651 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5653 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5654 names in this function.
5656 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5658 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5659 (CMD_NAME): Likewise.
5660 (DATA_NAME): Likewise.
5661 (DISASSEM_NAME): Likewise.
5662 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5663 (tui_set_win_height): Likewise.
5664 (parse_scrolling_args): Likewise.
5666 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5668 * record-btrace.c (record_btrace_goto_begin)
5669 (record_btrace_goto_end, record_btrace_goto): Move call to
5670 print_stack_frame ...
5671 (record_btrace_set_replay): ... here. Set stop_pc.
5672 * record-full.c (record_full_goto_entry): Set stop_pc.
5674 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5676 * NEWS: Mention support for tracepoints on aarch64-linux.
5678 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5680 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5682 (the_low_target): Install it.
5684 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5686 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5687 * gdb.trace/collection.exp: Likewise.
5688 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5689 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5690 * gdb.trace/report.exp: Likewise.
5691 * gdb.trace/trace-break.exp: Likewise.
5692 * gdb.trace/unavailable.exp: Likewise.
5693 * gdb.trace/while-dyn.exp: Likewise.
5695 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5697 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5698 (aarch64_gen_return_address): New function.
5699 (aarch64_gdbarch_init): Hook it.
5701 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5703 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5704 swallow NOT_AVAILABLE_ERROR.
5705 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5706 available_p is not set.
5707 (aarch64_stub_frame_unwind_stop_reason): New function.
5708 (aarch64_stub_unwind): Install it.
5710 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5712 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5714 (aarch64_make_prologue_cache_1): New function, factored out from
5715 aarch64_make_prologue_cache. Do not allocate cache. Set
5717 (aarch64_make_prologue_cache): Reimplement wrapping
5718 aarch64_make_prologue_cache_1, and swallowing
5719 NOT_AVAILABLE_ERROR.
5720 (aarch64_prologue_frame_unwind_stop_reason): New function.
5721 Return UNWIND_UNAVAILABLE if available_p is not set.
5722 (aarch64_prologue_unwind): Install it.
5723 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5724 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5725 frame_id_build_unavailable_stack if available_p is not set.
5727 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5729 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5731 (aarch64_scan_prologue): Set prev_pc.
5732 (aarch64_make_prologue_cache): Set func.
5733 (aarch64_make_stub_cache): Set prev_pc.
5734 (aarch64_prologue_this_id): Remove local variables id, pc and
5735 func. Read prev_pc and func from cache.
5736 (aarch64_stub_this_id): Read prev_pc from cache.
5738 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5740 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5741 argument this_cache. Remove unused local variables reg and
5742 unwound_fp. Return early if this_cache is already set. Set
5744 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5746 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5748 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5749 New argument this_cache. Return early if this_cache is already
5750 set. Set this_cache.
5751 (aarch64_prologue_this_id): Update call to
5752 aarch64_make_prologue_cache.
5753 (aarch64_prologue_prev_register): Likewise.
5754 (aarch64_normal_frame_base): Likewise.
5756 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5758 * c-valprint.c (c_val_print): Factor out memberptr printing code
5759 from c_val_print to ...
5760 (c_val_print_memberptr): ... this new function.
5762 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5764 * c-valprint.c (c_val_print): Factor out int printing code to ...
5765 (c_val_print_int): ... this new function.
5767 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5769 * c-valprint.c (c_val_print): Factor out struct and union
5770 printing code to ...
5771 (c_val_print_struct): ... this new function ...
5772 (c_val_print_union): ... and this new function.
5774 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5776 * c-valprint.c (c_val_print): Factor out pointer printing code
5778 (c_val_print_ptr): ... this new function.
5780 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5782 * c-valprint.c (c_valprint): Factor our array printing code from
5784 (c_val_print_array): ... this new function.
5786 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5788 * c-valprint.c (c_val_print): Factor out pointer printing code
5790 (print_unpacked_pointer): ... this new function.
5792 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5794 * c-valprint.c (c_val_print): Remove an assignment to i and move
5797 2015-07-09 Yao Qi <yao.qi@linaro.org>
5799 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5800 argument ptid. Update comments. Caller update.
5802 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5804 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5807 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5809 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5811 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5813 * progspace.c (delete_program_space): Add missing spaces.
5815 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5817 * inferior.c (delete_inferior_1): Rename to ...
5818 (delete_inferior): ..., remove 'silent' parameter, delete
5819 program space when unused and remove call to prune_program_spaces.
5820 Remove the old, unused, delete_inferior.
5821 (delete_inferior_silent): Remove.
5822 (prune_inferiors): Change call from delete_inferior_1 to
5823 delete_inferior and remove 'silent' parameter. Remove call to
5824 prune_program_spaces.
5825 (remove_inferior_command): Idem.
5826 * inferior.h (delete_inferior_1): Rename to...
5827 (delete_inferior): ..., remove 'silent' parameter and remove the
5828 original delete_inferior.
5829 (delete_inferior_silent): Remove.
5830 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
5831 delete_inferior_1 to delete_inferior and remove 'silent'
5833 * progspace.c (prune_program_spaces): Remove.
5834 (pspace_empty_p): Rename to...
5835 (program_space_empty_p): ... and make non-static.
5836 (delete_program_space): New.
5837 * progspace.h (prune_program_spaces): Remove declaration.
5838 (program_space_empty_p): New declaration.
5839 (delete_program_space): New declaration.
5840 * monitor.c (monitor_close): Replace call to
5841 delete_thread_silent and delete_inferior_silent with
5842 discard_all_inferiors.
5844 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
5846 * defs.h (deprecated_register_changed_hook): Remove prototype.
5847 * interps.c (clear_iterpreter_hooks): Remove reference to
5848 deprecated_register_changed_hook.
5849 * top.c (deprecated_register_changed_hook): Remove prototype.
5850 * valops.c (value_assign): Remove reference to
5851 deprecated_register_changed_hook.
5852 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
5853 Add comment documenting the function.
5854 (tui_register_changed_observer): Define.
5855 (tui_install_hooks): Remove reference to
5856 deprecated_register_changed_hook. Set
5857 tui_register_changed_observer.
5858 (tui_remove_hooks): Remove reference to
5859 deprecated_register_changed_hook. Unset
5860 tui_register_changed_observer.
5862 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5865 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
5867 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
5870 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
5872 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5874 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
5876 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5878 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
5879 Use safe_strerror() instead of strerror().
5881 2015-07-07 Yao Qi <yao.qi@linaro.org>
5883 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
5884 * features/arm-with-m-fpa-layout.c: Regenerated.
5885 * features/arm-with-m-vfp-d16.xml: Likewise.
5886 * features/arm-with-m-vfp-d16.c: Regenerated.
5887 * features/arm-with-m.xml: Likewise.
5888 * features/arm-with-m.c: Regenerated.
5889 * features/arm-with-neon.xml: Likewise.
5890 * features/arm-with-neon.c: Regenerated.
5891 * features/arm-with-vfpv2.xml: Likewise.
5892 * features/arm-with-vfpv2.c: Regenerated.
5893 * features/arm-with-vfpv3.xml: Likewise.
5894 * features/arm-with-vfpv3.c: Regenerated.
5896 2015-07-07 Yao Qi <yao.qi@linaro.org>
5898 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
5900 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
5902 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
5903 if target is 32-bit.
5904 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
5905 if target is 32-bit.
5906 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
5907 if target is 32-bit.
5908 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
5909 if target is 32-bit.
5910 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
5911 (aarch64_linux_read_description): Return the right target
5913 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
5914 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5915 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
5918 2015-07-07 Yao Qi <yao.qi@linaro.org>
5920 * aarch32-linux-nat.c: New file.
5921 * aarch32-linux-nat.h: New file.
5922 * arm-linux-nat.c: Include aarch32-linux-nat.h.
5923 (fetch_regs): Move code to aarch32-linux-nat.c. Call
5924 aarch32_gp_regcache_supply.
5925 (store_regs): Move code to aarch32-linux-nat.c. Call
5926 aarch32_gp_regcache_collect.
5927 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
5928 aarch32_vfp_regcache_supply.
5929 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
5930 aarch32_vfp_regcache_collect.
5931 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5933 2015-07-07 Yao Qi <yao.qi@linaro.org>
5935 * arm-linux-nat.c (store_fpregister): Remove.
5936 (store_register): Likewise.
5937 (fetch_fpregister): Likewise.
5938 (fetch_register): Likewise.
5939 (arm_linux_store_inferior_registers): Call store_regs and
5940 store_fpregs instead.
5941 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
5944 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5946 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
5949 2015-07-06 Joel Brobecker <brobecker@adacore.com>
5951 * NEWS: Create a new section for the next release branch.
5952 Rename the section of the current branch, now that it has
5955 2015-07-06 Joel Brobecker <brobecker@adacore.com>
5957 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
5958 * version.in: Bump version to 7.10.50.DATE-cvs.
5960 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
5962 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
5963 breakpoints in a special way.
5964 (remove_breakpoint): Likewise.
5965 (mark_breakpoints_out): Likewise.
5967 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5969 * doc/gdb.texinfo (TUI): Add comma after @xref.
5971 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5973 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
5974 instead of casting the structure type.
5976 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
5978 * valops.c (search_struct_field): Remove OFFSET parameter.
5979 (value_cast_structs): Adjust calls to search_struct_field.
5980 (value_struct_elt): Same.
5981 (find_overload_match): Same.
5983 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
5985 * value.c (value_fetch_lazy): Update comment, change return
5987 * value.h (value_fetch_lazy): Change return value to void.
5989 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
5991 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
5992 (tui_win_name): Make parameter and result const.
5993 * tui/tui-data.h (tui_win_name): Make parameter and result const.
5995 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
5997 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
5998 use printf_unfiltered.
5999 (set_mpx_cmd): Add missing trailing space to command string
6001 (_initialize_i386_tdep): Give the "mpx" prefix command its
6004 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6006 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6007 (enum rx_frame_type): New.
6008 (struct rx_prologue): Add new field `frame_type'.
6009 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6010 parameter in the prologue struct. Add code for recording
6011 locations of PC and PSW for fast interrupt and exception frames.
6012 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6013 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6014 (rx_frame_type): New function.
6015 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6016 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6018 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6019 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6020 RX_FRAME_TYPE_FAST_INTERRUPT.
6021 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6022 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6023 (rx_frame_unwind): Use rx_frame_sniffer instead of
6024 default_frame_sniffer.
6025 (rx_frame_unwind): New unwinder.
6026 (rx_gdbarch_init): Register new unwinder.
6028 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6030 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6031 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6032 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6034 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6036 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6038 Fix GCC false warning.
6039 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6041 2015-07-02 Yao Qi <yao.qi@linaro.org>
6043 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6044 typo in the debugging message.
6046 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6048 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6049 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6050 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6051 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6052 (btrace_maint_clear): New.
6053 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6054 (pt_print_packet, btrace_maint_decode_pt)
6055 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6056 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6057 (maint_btrace_packet_history_cmd)
6058 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6059 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6060 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6061 (maint_info_btrace_cmd, _initialize_btrace): New.
6062 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6063 (btrace_maint_packet_history, btrace_maint_info): New.
6064 (btrace_thread_info) <maint>: New.
6065 * NEWS: Announce it.
6067 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6069 * btrace.c (btrace_fetch): Append the new trace data.
6070 (btrace_clear): Clear the stored trace data.
6071 * btrace.h (btrace_thread_info) <data>: New.
6072 * common/btrace-common.h (btrace_data_clear)
6073 (btrace_data_append): New.
6074 * common/btrace-common.c (btrace_data_clear)
6075 (btrace_data_append): New.
6077 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6079 * nat/linux-btrace.c (linux_enable_bts): Check for
6080 PERF_ATTR_SIZE_VER5.
6081 Check for data_offset and data_size fields. Use them.
6083 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6085 * NEWS: Announce new commands "record btrace pt" and "record pt".
6086 Announce new options "set|show record btrace pt buffer-size".
6087 * btrace.c: Include "rsp-low.h".
6088 Include "inttypes.h".
6089 (btrace_add_pc): Add forward declaration.
6090 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6091 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6092 (btrace_compute_ftrace_pt): New.
6093 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6094 (check_xml_btrace_version): Update version check.
6095 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6096 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6097 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6098 (btrace_pt_children): New.
6099 (btrace_children): Add support for "pt".
6100 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6101 (btrace_conf_children): Add support for "pt".
6102 * btrace.h: Include "intel-pt.h".
6103 (btrace_pt_error): New.
6104 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6105 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6106 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6107 (struct btrace_config_pt): New.
6108 (struct btrace_config)<pt>: New.
6109 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6110 (struct btrace_data)<pt>: New.
6111 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6113 * features/btrace.dtd (btrace)<pt>: New.
6114 (pt, pt-config, cpu): New.
6115 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6116 (perf_event_pt_event_type, kernel_supports_pt)
6117 (linux_supports_pt): New.
6118 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6119 (linux_enable_bts): Free tinfo on error.
6120 (linux_enable_pt): New.
6121 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6122 (linux_disable_pt): New.
6123 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6124 (linux_fill_btrace_pt_config, linux_read_pt): New.
6125 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6126 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6127 (struct btrace_target_info)<pt>: New.
6128 * record-btrace.c (set_record_btrace_pt_cmdlist)
6129 (show_record_btrace_pt_cmdlist): New.
6130 (record_btrace_print_pt_conf): New.
6131 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6132 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6133 (cmd_record_btrace_pt_start): New.
6134 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6135 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6136 (_initialize_record_btrace): Add new commands.
6137 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6138 (remote_protocol_features): Add "Qbtrace:pt".
6139 Add "Qbtrace-conf:pt:size".
6140 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6141 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6142 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6143 (_initialize_remote): Add new commands.
6145 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6147 * configure.ac: check for libipt
6148 * configure: Regenerate.
6149 * config.in: Regenerate.
6150 * Makefile.in (LIBIPT): New.
6151 (CLIBS): Add $LIBIPT.
6152 * NEWS: document new configure options
6154 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6156 * compile/compile-object-load.c (compile_object_load): Replace debug
6157 message "lookup undefined ELF symbol" by 3 more specific messages.
6159 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6161 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6162 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6163 (rl78_gdbarch_init): Initialize rl78_psw_type.
6165 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6167 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6168 Update commentary. Always refresh the registers when frame
6169 information has changed.
6170 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6171 Change return type to int. Return 1 if frame information has
6172 changed, 0 otherwise.
6173 (tui_before_prompt): Update commentary.
6174 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6177 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6180 * frame.c (select_frame): Remove reference to
6181 deprecated_selected_frame_level_changed_hook.
6182 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6184 * stack.c (deprecated_selected_frame_level_changed_hook):
6186 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6188 (tui_refresh_frame_and_register_information): ... this. Bail
6189 out if there is no stack. Don't update register information
6190 unless registers_too_p is true.
6191 (tui_print_frame_info_listing_hook): Rename to ...
6192 (tui_dummy_print_frame_info_listing_hook): ... this.
6193 (tui_before_prompt): New function.
6194 (tui_normal_stop): New function.
6195 (tui_before_prompt_observer): New observer.
6196 (tui_normal_stop_observer): New observer.
6197 (tui_install_hooks): Set
6198 deprecated_print_frame_info_listing_hook to
6199 tui_dummy_print_frame_info_listing_hook. Register
6200 tui_before_prompt_observer to call tui_before_prompt and
6201 tui_normal_stop_observer to call tui_normal_stop. Remove
6202 reference to deprecated_selected_frame_level_changed_hook.
6203 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6204 and tui_normal_stop_observer. Remove reference to
6205 deprecated_selected_frame_level_changed_hook.
6207 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6210 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6211 return an int instead of void. Return whether the locator
6213 (tui_show_frame_info): If the locator info has not changed, then
6214 bail out early to avoid refreshing the windows.
6216 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6218 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6219 LOCATOR_WIN to tui_alloc_content.
6221 2015-06-30 Yao Qi <yao.qi@linaro.org>
6224 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6227 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6229 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6230 (rx_dwarf_reg_to_regnum): New function.
6231 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6234 2015-06-29 Pedro Alves <palves@redhat.com>
6237 * infcall.c (run_inferior_call): On infcall success, if the thread
6238 was marked stopped before, reset it back to stopped.
6239 * infrun.c (resume): Don't suppress the set_running calls when
6241 (normal_stop): Only discard the finish_thread_state cleanup if the
6244 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6246 * MAINTAINERS (Write After Approval): Update my email address.
6248 2015-06-26 Keith Seitz <keiths@redhat.com>
6249 Doug Evans <dje@google.com>
6252 * block.c (block_lookup_symbol): For non-function blocks,
6253 continue to search for a symbol with an exact domain match
6254 Otherwise, return any previously found "best domain" symbol.
6255 (block_lookup_symbol_primary): Likewise.
6257 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6259 * NEWS: Mention the new option "history remove-duplicates".
6260 * top.c (history_remove_duplicates): New static variable.
6261 (show_history_remove_duplicates): New static function.
6262 (gdb_add_history): Conditionally remove duplicate history
6264 (init_main): Add "history remove-duplicates" option.
6266 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6268 * tui/tui-win.c (focus_completer): New static function.
6269 (_initialize_tui_win): Set the completion function of the
6270 "focus" command to focus_completer.
6272 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6274 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6276 * symtab.c (find_function_start_sal): Likewise.
6278 2015-06-25 Gary Benson <gbenson@redhat.com>
6280 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6281 it is the empty string after trailing slashes have been stripped.
6283 2015-06-25 Gary Benson <gbenson@redhat.com>
6285 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6286 * infrun.c (follow_exec): Likewise.
6287 * remote.c (remote_filesystem_is_local): Likewise.
6288 * solib.c (solib_find_1): Likewise.
6290 2015-06-24 Keith Seitz <keiths@redhat.com>
6292 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6293 return value from lrealpath.
6295 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6297 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6299 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6301 * remote-sim.c: Include gdb_bfd.h.
6302 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6303 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6305 2015-06-24 Yao Qi <yao.qi@linaro.org>
6307 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6308 set_gdbarch_get_siginfo_type.
6309 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6310 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6311 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6312 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6313 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6314 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6315 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6316 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6317 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6318 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6320 2015-06-24 Gary Benson <gbenson@redhat.com>
6322 * common/buffer.c (stdint.h): Do not include.
6323 * common/print-utils.c (stdint.h): Likewise.
6324 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6325 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6326 * ft32-tdep.c (gdb_assert.h): Likewise.
6327 * guile/scm-utils.c (stdint.h): Likewise.
6328 * i386-linux-tdep.c (stdint.h): Likewise.
6329 * i386-tdep.c (stdint.h): Likewise.
6330 * nat/linux-btrace.c (stdint.h): Likewise.
6331 * nat/linux-btrace.h (stdint.h): Likewise.
6332 * nat/linux-ptrace.c (stdint.h): Likewise.
6333 * nat/mips-linux-watch.h (stdint.h): Likewise.
6334 * ppc-linux-nat.c (stdint.h): Likewise.
6335 * python/python-internal.h (stdint.h): Likewise.
6336 * stub-termcap.c (stdlib.h): Likewise.
6337 * target/target.h (stdint.h): Likewise.
6338 * xtensa-linux-nat.c (stdint.h): Likewise.
6340 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6342 * top.c (init_history): Look at errno after calling strtol to
6343 properly map large GDBHISTSIZE values to infinity.
6345 2015-06-23 Doug Evans <dje@google.com>
6347 * inferior.h (struct inferior_suspend_state): Delete, unused.
6348 All references deleted.
6350 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6352 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6353 (microblaze_push_dummy_call): Likewise.
6354 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6355 and set_gdbarch_push_dummy_call.
6357 2015-06-23 Yao Qi <yao.qi@linaro.org>
6359 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6360 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6361 (amd64_linux_store_inferior_registers): Likewise.
6362 * arm-linux-nat.c (fetch_fpregister): Likewise.
6363 (fetch_fpregs, store_fpregister): Likewise.
6364 (store_fpregister, store_fpregs): Likewise.
6365 (fetch_register, fetch_regs): Likewise.
6366 (store_register, store_regs): Likewise.
6367 (fetch_vfp_regs, store_vfp_regs): Likewise.
6368 (arm_linux_read_description): Check have_ptrace_getregset is
6369 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6371 * i386-linux-nat.c (fetch_xstateregs): Check
6372 have_ptrace_getregset is not TRIBOOL_TRUE.
6373 (store_xstateregs): Likewise.
6374 * linux-nat.c (have_ptrace_getregset): Change its type to
6376 * linux-nat.h (tribool): New enum.
6377 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6378 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6380 2015-06-19 Doug Evans <dje@google.com>
6382 * NEWS: Mention Sun's version of stabs is no longer supported.
6383 * elfread.c (free_elfinfo): Delete. All uses updated.
6384 (elfstab_offset_sections): Delete. All uses updated.
6385 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6386 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6388 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6389 All callers updated.
6391 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6393 * common/rsp-low.c (needs_escaping): New.
6394 (remote_escape_output): Add unit_size parameter. Refactor to
6395 support multi-byte addressable units. Rename parameters.
6396 * common/rsp-low.h (remote_escape_output): Add unit_size
6397 parameter and rename others. Update doc.
6398 * remote.c (align_for_efficient_write): New.
6399 (remote_write_bytes_aux): Add unit_size parameter and use it.
6400 Rename some variables. Update doc.
6401 (remote_xfer_partial): Get unit size and use it.
6402 (remote_read_bytes_1): Add unit_size parameter and use it.
6403 Rename some variables. Update doc.
6404 (remote_write_bytes): Same.
6405 (remote_xfer_live_readonly_partial): Same.
6406 (remote_read_bytes): Same.
6407 (remote_flash_write): Update call to remote_write_bytes_aux.
6408 (remote_write_qxfer): Update call to remote_escape_output.
6409 (remote_search_memory): Same.
6410 (remote_hostio_pwrite): Same.
6412 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6414 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6415 locations as inserted.
6416 Update and expand comment about permanent locations.
6417 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6418 Move comment to add_location_to_breakpoint.
6419 (update_global_location_list): Don't error out if a permanent
6420 breakpoint is not marked inserted.
6421 Don't error out if a non-permanent breakpoint location is inserted on
6422 top of a permanent breakpoint.
6424 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6426 * breakpoint.c (make_breakpoint_permanent): Remove unused
6428 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6430 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6433 * NEWS: Mention new GDBHISTSIZE behavior.
6434 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6435 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6437 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6439 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6440 * top.c (init_history): Read from GDBHISTSIZE instead of
6442 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6444 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6446 * top.c (gdb_safe_append_history): Do not call
6447 history_truncate_file if the history is not stifled.
6449 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6451 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6452 * syscalls/s390x-linux.xml: Likewise.
6454 2015-06-16 Michael Eager <eager@eagercon.com>
6456 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6458 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6460 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6461 target_terminal_ours_for_output() before calling
6462 tui_show_frame_info(), and restore the original terminal
6463 settings afterwards.
6465 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6467 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6469 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6471 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6473 (mi_cmd_data_write_memory_bytes): Same.
6475 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6477 * corefile.c (write_memory): Update doc.
6478 * gdbcore.h (write_memory): Same.
6480 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6482 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6483 (dump_mapping_p): Use it for parameter filterflags.
6484 (linux_find_memory_regions_full): Use it for variable filterflags.
6486 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6487 Jan Kratochvil <jan.kratochvil@redhat.com>
6489 Merge multiple hex conversions.
6490 * monitor.c: Include rsp-low.h.
6491 (fromhex): Remove definition.
6493 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6494 Jan Kratochvil <jan.kratochvil@redhat.com>
6496 Move utility functions to common/.
6497 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6498 Move defs to common/common-utils.c.
6499 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6500 (skip_to_space_const): Move decls to common/common-utils.h.
6501 * common/common-defs.h: Move include of common-types.h before
6503 * common/common-utils.c: Include host-defs.h and ctype.h.
6504 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6506 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6508 * common/common-utils.h (strtoulst): Move decl from utils.h.
6509 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6510 Move from cli/cli-utils.h.
6511 * common/host-defs.h: Include limits.h.
6512 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6513 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6514 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6515 common/common-utils.h.
6516 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6517 (strtoulst): Move to common/common-utils.c.
6518 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6520 2015-06-15 Yao Qi <yao.qi@linaro.org>
6522 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6524 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6526 * build-id.c: Don't include elf-bfd.h.
6527 (build_id_bfd_get): Use bfd_build_id.
6528 (build_id_verify): Ditto.
6529 * build-id.h: Ditto.
6530 (find_separate_debug_file_by_buildid): Ditto.
6531 * python/py-objfile.c: Don't include elf-bfd.h.
6532 (objfpy_get_build_id) Use bfd_build_id.
6533 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6534 * coffread.c: Include build-id.h.
6535 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6537 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6539 * windows-nat.c (do_windows_fetch_inferior_registers)
6540 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6541 conditional with __CYGWIN__.
6543 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6545 * completer.c: Add arch-utils.h include.
6546 (enum reg_completer_targets): New enum.
6547 (reg_or_group_completer_1): New function containing old
6548 reg_or_group_completer, add and use new parameter to control what
6549 is completed on. Use get_current_arch rather than architecture of
6550 currently selected frame.
6551 (reg_or_group_completer): Call new reg_or_group_completer_1.
6552 (reggroup_completer): Call new reg_or_group_completer_1.
6553 * completer.h (reggroup_completer): Add declaration.
6554 * tui/tui-regs.c: Add 'completer.h' include.
6555 (tui_reg_next_command): Renamed to...
6556 (tui_reg_next): ...this. Adjust parameters and return rather than
6558 (tui_reg_prev_command): Renamed to...
6559 (tui_reg_prev): ...this. Adjust parameters and return rather than
6561 (tui_reg_float_command): Delete.
6562 (tui_reg_general_command): Delete.
6563 (tui_reg_system_command): Delete.
6564 (tui_reg_command): Rewrite to perform switching of register group.
6566 (tuireglist): Remove.
6567 (tui_reggroup_completer): New function.
6568 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6569 creation of 'tui reg' command.
6570 * NEWS: Add comment about 'tui reg' changes.
6572 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6574 * target.c (target_read): Consider addressable unit size when
6575 reading from a memory object.
6576 (read_memory_robust): Same.
6577 (read_whatever_is_readable): Same.
6578 (target_write_with_progress): Consider addressable unit size
6579 when writing to a memory object.
6580 * target.h (target_read): Update documentation.
6581 (target_write): Add documentation.
6583 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6585 * arch-utils.h (default_addressable_memory_unit_size): New.
6586 * arch-utils.c (default_addressable_memory_unit_size): New.
6587 * gdbarch.sh (addressable_memory_unit_size): New.
6588 * gdbarch.h: Re-generate.
6589 * gdbarch.c: Re-generate.
6591 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6593 * target.c (target_read): Rename variables and use
6595 (target_read_with_progress): Same.
6596 (read_memory_robust): Constify parameters and rename
6598 (read_whatever_is_readable): Constify parameters,
6599 rename variables, adjust formatting.
6600 * target.h (read_memory_robust): Constify parameters.
6602 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6604 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6605 synthetic (non-AltiVec) vector types.
6606 (ppc64_sysv_abi_return_value): Likewise.
6608 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6610 PR breakpoints/16465
6611 * breakpoint.c (create_breakpoint): Save extra_string for
6612 pending breakpoints.
6614 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6616 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6617 and bt_mask to CORE_ADDR.
6619 2015-06-11 Gary Benson <gbenson@redhat.com>
6621 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6622 (mnsh_recv_message): Likewise.
6624 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6626 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6627 long long int and plongest instead of %ll.
6629 2015-06-11 Gary Benson <gbenson@redhat.com>
6631 * nat/linux-namespaces.c (gdb_wait.h): New include.
6632 (sys/wait.h): Do not include.
6634 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6636 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6637 end_sequence is true.
6639 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6642 * solib-target.c (library_list_start_list): Use explicit NULL
6645 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6647 * solib-target.c (library_list_start_list): Do not dereference
6648 variable version in its initialization. Make the VERSION check handle
6650 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6652 2015-06-10 Gary Benson <gbenson@redhat.com>
6654 * NEWS: Announce support for direct access of executable and
6655 shared library files when attaching to inferiors in containers
6656 on GNU/Linux systems.
6658 2015-06-10 Gary Benson <gbenson@redhat.com>
6660 * remote.c (struct remote_state) <fs_pid>: New field.
6661 (new_remote_state): Initialize the above.
6662 (PACKET_vFile_setfs): New enum value.
6663 (remote_hostio_set_filesystem): New function.
6664 (remote_hostio_open): Call the above.
6665 (remote_hostio_unlink): Likewise.
6666 (remote_hostio_readlink): Likewise.
6667 (_initialize_remote): Register new "set/show remote
6668 hostio-setfs-packet" command.
6669 * NEWS: Announce new vFile:setfs packet.
6671 2015-06-10 Gary Benson <gbenson@redhat.com>
6673 * linux-nat.c (nat/linux-namespaces.h): New include.
6674 (fileio.h): Likewise.
6675 (linux_nat_filesystem_is_local): New function.
6676 (linux_nat_fileio_pid_of): Likewise.
6677 (linux_nat_fileio_open): Likewise.
6678 (linux_nat_fileio_readlink): Likewise.
6679 (linux_nat_fileio_unlink): Likewise.
6680 (linux_nat_add_target): Initialize to_filesystem_is_local,
6681 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6682 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6684 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6686 2015-06-10 Gary Benson <gbenson@redhat.com>
6688 * target.h (struct inferior): New forward declaration.
6689 (struct target_ops) <to_filesystem_is_local>: Update comment.
6690 (struct target_ops) <to_fileio_open>: New argument inf.
6691 Update comment. All implementations updated.
6692 (struct target_ops) <to_fileio_unlink>: Likewise.
6693 (struct target_ops) <to_fileio_readlink>: Likewise.
6694 (target_filesystem_is_local): Update comment.
6695 (target_fileio_open): New argument inf. Update comment.
6696 (target_fileio_unlink): Likewise.
6697 (target_fileio_readlink): Likewise.
6698 (target_fileio_read_alloc): Likewise.
6699 (target_fileio_read_stralloc): Likewise.
6700 * target.c (target_fileio_open): New argument inf.
6701 Pass inf to implementation. Update debug printing.
6702 (target_fileio_unlink): Likewise.
6703 (target_fileio_readlink): Likewise.
6704 (target_fileio_read_alloc_1): New argument inf. Pass inf
6705 to target_fileio_open.
6706 (target_fileio_read_alloc): New argument inf. Pass inf to
6707 target_fileio_read_alloc_1.
6708 (target_fileio_read_stralloc): Likewise.
6709 * gdb_bfd.c (inferior.h): New include.
6710 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6711 argument with new argument "inferior". Pass inferior to
6713 (gdb_bfd_open): Supply inferior argument to
6714 gdb_bfd_iovec_fileio_open.
6715 * linux-tdep.c (linux_info_proc): Supply inf argument to
6716 relevant target_fileio calls.
6717 (linux_find_memory_regions_full): Likewise.
6718 (linux_fill_prpsinfo): Likewise.
6719 * remote.c (remote_filesystem_is_local): Supply inf
6720 argument to remote_hostio_open.
6721 (remote_file_put): Likewise.
6722 (remote_file_get): Likewise.
6723 (remote_file_delete): Supply inf argument to
6724 remote_hostio_unlink.
6726 2015-06-10 Gary Benson <gbenson@redhat.com>
6728 * inf-child.c (inf_child_fileio_open): Replace comment.
6729 (inf_child_fileio_pwrite): Likewise.
6730 (inf_child_fileio_pread): Likewise.
6731 (inf_child_fileio_fstat): Insert blank line before comment.
6732 (inf_child_fileio_close): Replace comment.
6733 (inf_child_fileio_unlink): Likewise.
6734 (inf_child_fileio_readlink): Likewise.
6735 * remote.c (remote_hostio_open): Likewise.
6736 (remote_hostio_pread): Likewise.
6737 (remote_hostio_pwrite): Likewise.
6738 (remote_hostio_close): Likewise.
6739 (remote_hostio_unlink): Likewise.
6740 (remote_hostio_readlink): Likewise.
6741 (remote_hostio_fstat): Likewise.
6742 (remote_filesystem_is_local): Likewise.
6743 * target.c (target_fileio_open): Likewise.
6744 (target_fileio_pwrite): Likewise.
6745 (target_fileio_pread): Likewise.
6746 (target_fileio_fstat): Insert blank line before comment.
6747 (target_fileio_close): Replace comment.
6748 (target_fileio_unlink): Likewise.
6749 (target_fileio_readlink): Likewise.
6750 (target_fileio_read_alloc): Likewise.
6751 (target_fileio_read_stralloc): Likewise.
6753 2015-06-10 Gary Benson <gbenson@redhat.com>
6755 * linux-thread-db.c (nat/linux-namespaces.h): New include.
6756 (check_pid_namespace_match): Use linux_ns_same rather than
6757 linux_proc_pid_get_ns to spot PID namespace mismatches.
6758 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6759 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6761 2015-06-10 Gary Benson <gbenson@redhat.com>
6763 * configure.ac (AC_CHECK_FUNCS): Add setns.
6764 * config.in: Regenerate.
6765 * configure: Likewise.
6766 * nat/linux-namespaces.h: New file.
6767 * nat/linux-namespaces.c: Likewise.
6768 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6769 (linux-namespaces.o): New rule.
6770 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6771 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6772 * config/arm/linux.mh (NATDEPFILES): Likewise.
6773 * config/i386/linux.mh (NATDEPFILES): Likewise.
6774 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6775 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6776 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6777 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6778 * config/mips/linux.mh (NATDEPFILES): Likewise.
6779 * config/pa/linux.mh (NATDEPFILES): Likewise.
6780 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6781 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6782 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6783 * config/s390/linux.mh (NATDEPFILES): Likewise.
6784 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6785 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6786 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6787 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6789 2015-06-10 Gary Benson <gbenson@redhat.com>
6791 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6792 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6793 (make_cleanup_close): Likewise.
6794 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6795 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6796 (make_cleanup_close): Likewise.
6798 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6800 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6801 from SuspendThread().
6803 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6805 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6806 from OutputDebugString.
6808 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6809 Mircea Gherzan <mircea.gherzan@intel.com>
6811 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6812 MPX_BT_MASK_32): New macros.
6813 (i386_mpx_set_bounds): New function that implements
6814 the command "set-mpx-bound".
6815 (i386_mpx_enabled): Helper function to test MPX availability.
6816 (i386_mpx_bd_base): Helper function to calculate the base directory
6818 (i386_mpx_get_bt_entry): Helper function to access a bound
6820 (i386_mpx_print_bounds): Effectively display bound information.
6821 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6823 (_initialize_i386_tdep):
6824 Add "bound" to the commands "show mpx" and "set mpx" commands.
6825 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
6826 and "show mpx" commands.
6827 * NEWS: List new commands for MPX support.
6829 2015-06-09 Gary Benson <gbenson@redhat.com>
6831 * common/fileio.h (fileio_to_host_mode): New declaration.
6832 * common/fileio.c (fileio_to_host_mode): New Function.
6833 * inf-child.c (inf_child_fileio_open): Process mode argument
6834 with fileio_to_host_mode.
6836 2015-06-09 Gary Benson <gbenson@redhat.com>
6838 * common/fileio.c (fileio_mode_pack): Fix preprocessor
6841 2015-06-05 Gary Benson <gbenson@redhat.com>
6843 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
6844 * remote.c (remote_filesystem_is_local): ...here.
6846 2015-06-04 Yao Qi <yao.qi@linaro.org>
6848 * gdbarch.c: Regenerate it.
6850 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6852 * arch-utils.c (default_infcall_munmap): New.
6853 * arch-utils.h (default_infcall_munmap): New declaration.
6854 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
6855 (munmap_list_free, munmap_listp_free_cleanup): New.
6856 (struct setup_sections_data): Add field munmap_list_headp.
6857 (setup_sections): Call munmap_list_add.
6858 (compile_object_load): New variable munmap_list_head, initialize
6859 setup_sections_data.munmap_list_headp, return munmap_list_head.
6860 * compile/compile-object-load.h (struct munmap_list): New declaration.
6861 (struct compile_module): Add field munmap_list_head.
6862 (munmap_list_free): New declaration.
6863 * compile/compile-object-run.c (struct do_module_cleanup): Add field
6865 (do_module_cleanup): Call munmap_list_free.
6866 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
6867 * gdbarch.c: Regenerate.
6868 * gdbarch.h: Regenerate.
6869 * gdbarch.sh (infcall_munmap): New.
6870 * linux-tdep.c (linux_infcall_munmap): New.
6871 (linux_init_abi): Install it.
6873 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
6876 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
6878 2015-06-02 Yao Qi <yao.qi@linaro.org>
6880 * i386-linux-nat.c: Include linux-nat.h.
6882 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
6883 Jan Kratochvil <jan.kratochvil@redhat.com>
6886 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
6888 * dwarf2loc.c (chain_candidate): Likewise.
6890 2015-06-01 Yao Qi <yao.qi@linaro.org>
6892 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
6893 (store_vfp_regs): Use PTRACE_SETREGSET.
6895 2015-06-01 Yao Qi <yao.qi@linaro.org>
6897 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
6898 (fetch_fpregs): Likewise.
6899 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
6900 (store_fpregs): Likewise.
6902 2015-06-01 Yao Qi <yao.qi@linaro.org>
6904 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
6905 (fetch_regs): Likewise.
6906 (store_regs): Use PTRACE_SETREGSET.
6907 (store_register): Likewise.
6909 2015-06-01 Yao Qi <yao.qi@linaro.org>
6911 * arm-linux-nat.c (arm_linux_read_description): Check whether
6912 kernel supports PTRACE_GETREGSET.
6914 2015-06-01 Yao Qi <yao.qi@linaro.org>
6916 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
6917 * linux-nat.c: ... here.
6918 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
6920 * linux-nat.h: ... here.
6922 2015-06-01 Yao Qi <yao.qi@linaro.org>
6924 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
6925 * i386-linux-nat.c: Likewise.
6926 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
6927 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
6928 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6929 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
6930 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6932 2015-05-30 Eli Zaretskii <eliz@gnu.org>
6934 * go32-nat.c (go32_xfer_memory): Fix the return value to be
6935 compatible to what read_child and write_child return. This
6936 unbreaks that DJGPP build of GDB which was broken since v7.7.
6938 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
6940 * MAINTAINERS (Write After Approval): Add Martin Galvan.
6942 2015-05-29 Roland McGrath <mcgrathr@google.com>
6945 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
6946 rather than internal_error for an unrecognized value.
6948 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
6950 * xtensa-tdep.c (xtensa_pseudo_register_read)
6951 (xtensa_pseudo_register_write): Don't alias last pseudo register
6954 2015-05-28 Don Breazeal <donb@codesourcery.com>
6956 * infrun.c (follow_fork_inferior): Ensure the use of
6957 process-style ptids (pid,0,0) in verbose/debug "Detaching"
6960 2015-05-28 Doug Evans <dje@google.com>
6962 * dwarf2read.c (record_line_ftype): Remove, duplicate.
6964 2015-05-28 Yao Qi <yao.qi@linaro.org>
6966 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
6967 (arm_linux_fetch_inferior_registers): Use
6968 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
6969 (arm_linux_store_inferior_registers): Likewise.
6970 (arm_linux_read_description): Don't set
6971 arm_linux_has_wmmx_registers.
6972 * arm-tdep.c (arm_gdbarch_init): Set
6973 tdep->have_wmmx_registers according target descriptions.
6974 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
6977 2015-05-28 Yao Qi <yao.qi@linaro.org>
6979 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
6980 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
6981 instead of arm_linux_vfp_register_count.
6982 (store_vfp_regs): Likewise.
6983 (arm_linux_fetch_inferior_registers): Likewise.
6984 (arm_linux_store_inferior_registers): Likewise.
6985 (arm_linux_read_description): Don't set
6986 arm_linux_vfp_register_count.
6987 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
6989 * arm-tdep.c (arm_gdbarch_init): Add assert on
6991 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
6992 field to vfp_register_count. All users updated.
6994 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
6996 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
6997 ELFOSABI_GNU binaries.
6999 2015-05-27 Doug Evans <dje@google.com>
7001 * dwarf2read.c (lnp_state_machine): New typedef.
7002 (lnp_reader_state): New typedef.
7003 (dwarf_record_line_1): Renamed from dwarf_record_line.
7004 All callers updated.
7005 (dwarf_record_line): New function.
7006 (init_lnp_state_machine): New function.
7007 (check_line_address): Replace p_record_line parameter with state.
7008 All callers updated.
7009 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7010 Update to record state in lnp_state_machine.
7012 2015-05-27 Doug Evans <dje@google.com>
7014 * dwarf2read.c (record_line_ftype): New typedef.
7015 (check_line_address): New function.
7016 (dwarf_decode_lines_1): Call it.
7018 2015-05-27 Doug Evans <dje@google.com>
7020 * NEWS: Mention "set debug dwarf-line".
7021 * dwarf2read.c (dwarf_line_debug): New static global.
7022 (add_include_dir): Add debug dwarf-line support.
7023 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7024 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7026 2015-05-27 Doug Evans <dje@google.com>
7028 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7029 All callers updated.
7030 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7031 * cp-support.h (cp_lookup_nested_symbol): Update.
7033 2015-05-27 Doug Evans <dje@google.com>
7036 * block.c (block_find_symbol): New function.
7037 (block_find_non_opaque_type): Ditto.
7038 (block_find_non_opaque_type_preferred): Ditto.
7039 * block.h (block_symbol_matcher_ftype): New typedef.
7040 (block_find_symbol): Declare.
7041 (block_find_non_opaque_type): Ditto.
7042 (block_find_non_opaque_type_preferred): Ditto.
7043 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7044 * psymtab.c (psym_lookup_symbol): Ditto.
7045 * symtab.c (basic_lookup_transparent_type_1): New function.
7046 (basic_lookup_transparent_type): Call it.
7048 2015-05-27 Yao Qi <yao.qi@linaro.org>
7050 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7051 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7053 2015-05-27 Yao Qi <yao.qi@linaro.org>
7055 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7057 (aarch64_record_load_store): Likewise.
7059 2015-05-26 Doug Evans <dje@google.com>
7061 PR c++/18141, c++/18417.
7062 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7065 2015-05-26 Doug Evans <dje@google.com>
7067 * NEWS: Add entries for command renamings.
7068 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7070 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7071 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7073 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7074 All callers updated. Fix spelling of DWARF in help text.
7075 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7077 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7079 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7080 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7081 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7083 (show_dwarf_always_disassemble): Renamed from
7084 show_dwarf2_always_disassemble. All callers updated.
7085 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7086 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7087 "set/show dwarf max-cache-age". Rename
7088 "set/show dwarf2 always-disassemble" to
7089 "set/show dwarf always-disassemble". Rename
7090 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7091 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7093 2015-05-26 Doug Evans <dje@google.com>
7096 * python/py-lazy-string.c (stpy_convert_to_value): Use
7097 gdbpy_gdb_memory_error not PyExc_MemoryError.
7098 (gdbpy_create_lazy_string_object): Ditto.
7100 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7102 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7104 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7106 * tui/tui-regs.c (tui_reg_prev_command): New function.
7107 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7108 * reggroups.c (reggroup_prev): New function.
7109 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7111 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7112 Yao Qi <yao.qi@linaro.org>
7114 * aarch64-linux-tdep.c: Include linux-record.h and
7116 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7117 (aarch64_syscall): New enum.
7118 (aarch64_canonicalize_syscall): New function.
7119 (aarch64_all_but_pc_registers_record): New function.
7120 (aarch64_linux_syscall_record): New function.
7121 (aarch64_linux_init_abi): Install AArch64 process record
7122 handler. Update to handle syscall recording.
7123 * aarch64-tdep.c: Include record.h and record-full.h.
7124 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7125 (struct aarch64_mem_r): Define.
7126 (aarch64_record_result): New enum.
7127 (struct insn_decode_record): Define.
7128 (insn_decode_record): New typedef.
7129 (aarch64_record_data_proc_reg): New function.
7130 (aarch64_record_data_proc_imm): New function.
7131 (aarch64_record_branch_except_sys): New function.
7132 (aarch64_record_load_store): New function.
7133 (aarch64_record_data_proc_simd_fp): New function.
7134 (aarch64_record_asimd_load_store): New function.
7135 (aarch64_record_decode_insn_handler): New function.
7136 (deallocate_reg_mem): New function.
7137 (aarch64_process_record): New function.
7138 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7140 (aarch64_process_record): New extern declaration.
7141 * configure.tgt: Add linux-record.o to gdb_target_obs.
7142 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7144 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7146 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7149 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7151 * amd64-tdep.c: Replace in_function_epilogue_p with
7152 stack_frame_destroyed_p throughout.
7153 * arch-utils.c: Ditto.
7154 * arch-utils.h: Ditto.
7155 * arm-tdep.c: Ditto.
7156 * breakpoint.c: Ditto.
7157 * gdbarch.sh: Ditto.
7158 * hppa-tdep.c: Ditto.
7159 * i386-tdep.c: Ditto.
7160 * mips-tdep.c: Ditto.
7161 * nios2-tdep.c: Ditto.
7162 * rs6000-tdep.c: Ditto.
7163 * s390-linux-tdep.c: Ditto.
7164 * score-tdep.c: Ditto.
7166 * sparc-tdep.c: Ditto.
7167 * sparc-tdep.h: Ditto.
7168 * sparc64-tdep.c: Ditto.
7169 * spu-tdep.c: Ditto.
7170 * tic6x-tdep.c: Ditto.
7171 * tilegx-tdep.c: Ditto.
7172 * xstormy16-tdep.c: Ditto.
7173 * gdbarch.c, gdbarch.h: Re-generated.
7175 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7177 * NEWS: Mention 'tui enable' and 'tui disable'.
7178 * tui/tui.c (tui_enable_command): New function.
7179 (tui_disable_command): New function.
7180 (_initialize_tui): New function.
7182 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7184 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7186 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7188 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7191 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7193 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7195 (tui_set_layout_for_display_command): ...here, before calling
7196 tui_set_layout. Only set the layout if gdb has not already
7197 entered the TUI_FAILURE state.
7199 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7201 * tui/tui-layout.c (layout_completer): New function.
7202 (_initialize_tui_layout): Set completer on layout command.
7204 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7206 * tui/tui-layout.c (tui_set_layout): Remove
7207 tui_register_display_type parameter. Remove all checking of this
7208 parameter, and reindent function. Update header comment.
7209 (tui_set_layout_for_display_command): Rename to...
7210 (tui_set_layout_by_name): ...this, and don't check for different
7211 register class types, don't pass a tui_register_display_type to
7212 tui_set_layout. Update header comment.
7213 (layout_names): Remove register set specific names.
7214 * tui/tui-layout.h (tui_set_layout): Remove
7215 tui_register_display_type parameter.
7216 * tui/tui.c (tui_rl_change_windows): Don't pass a
7217 tui_register_display_type to tui_set_layout.
7218 (tui_rl_delete_other_windows): Likewise.
7219 (tui_enable): Likewise.
7220 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7221 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7222 (TUI_GENERAL_REGS_NAME): Remove.
7223 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7224 (TUI_SPECIAL_REGS_NAME): Remove.
7225 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7226 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7227 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7228 (enum tui_register_display_type): Remove.
7229 (struct tui_layout_def): Remove regs_display_type and
7230 float_regs_display_type fields.
7231 (struct tui_data_info): Remove regs_display_type field.
7232 (tui_layout_command): Use new name for
7233 tui_set_layout_for_display_command.
7234 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7235 (tui_clear_win_detail): Don't initialise removed fields of
7237 * tui/tui-regs.c (tui_show_registers): Use new name for
7238 tui_set_layout_for_display_command.
7239 * tui/tui.h (tui_set_layout_for_display_command): Rename
7241 (tui_set_layout_by_name): ...this.
7242 * printcmd.c (display_command): Remove tui related layout call,
7245 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7247 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7248 (handle_inferior_event): New function.
7250 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7252 * ada-lang.c (to_fixed_array_type): Rename local variable
7253 typename into type_name.
7255 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7257 Fix ASAN crash for gdb.compile/compile.exp.
7258 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7260 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7262 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7263 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7264 * compile/compile-object-load.c (setup_sections, compile_object_load):
7266 * compile/compile.c (compile_to_object): Likewise.
7268 2015-05-16 Doug Evans <xdje42@gmail.com>
7270 * NEWS: Mention support for unbuffered Guile memory ports.
7271 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7272 (ioscm_lseek_address): Improve overflow calculation.
7273 (gdbscm_memory_port_fill_input): Add assert.
7274 (gdbscm_memory_port_write): Handle unbuffered ports.
7275 Handle large writes identical to Guile's fport_write.
7276 (gdbscm_memory_port_seek): Fix seeking past end check.
7277 (gdbscm_memory_port_close): Handle closing unbuffered port.
7278 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7279 (ioscm_init_memory_port): Handle unbuffered ports.
7280 (ioscm_reinit_memory_port): Ditto.
7281 (ioscm_init_memory_port): Update size calculation.
7282 (gdbscm_open_memory): Support zero sized ports.
7284 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7286 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7287 variable compiler warnings.
7289 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7291 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7293 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7294 Phil Muldoon <pmuldoon@redhat.com>
7296 * NEWS (Changes since GDB 7.9): Add compile print.
7297 * compile/compile-c-support.c (add_code_header, add_code_footer)
7298 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7299 COMPILE_I_PRINT_VALUE_SCOPE.
7300 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7301 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7303 * compile/compile-object-load.c: Include block.h.
7304 (get_out_value_type): New function.
7305 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7306 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7308 * compile/compile-object-load.h (struct compile_module): Add fields
7309 out_value_addr and out_value_type.
7310 * compile/compile-object-run.c: Include valprint.h and compile.h.
7311 (struct do_module_cleanup): Add fields out_value_addr and
7313 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7314 COMPILE_I_PRINT_VALUE_SCOPE.
7315 (compile_object_run): Propagate out_value_addr and out_value_type.
7316 Pass OUT_VALUE_ADDR.
7317 * compile/compile.c: Include valprint.h.
7318 (compile_print_value, compile_print_command): New functions.
7319 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7320 (_initialize_compile): Update compile code help text. Install
7321 compile_print_command.
7322 * compile/compile.h (compile_print_value): New prototype.
7323 * defs.h (enum compile_i_scope_types): Add
7324 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7326 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7328 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7329 Rely on its parameter count.
7330 (compile_object_load): Replace lookup_minimal_symbol_text by
7331 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7333 * compile/compile-object-load.h (struct compile_module): Replace
7334 func_addr by func_sym.
7335 * compile/compile-object-run.c: Include block.h.
7336 (compile_object_run): Reset module variable after it is freed. Use
7337 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7339 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7341 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7342 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7343 (c_compute_program): Call generate_register_struct after typedefs.
7344 * compile/compile-loc2c.c (push, pushf_register_address)
7345 (pushf_register): Cast to GCC_UINTPTR.
7346 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7347 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7348 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7349 * compile/compile.c (_initialize_compile): Enable warnings for
7352 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7354 * cli/cli-script.c (execute_control_command): Update
7355 eval_compile_command caller.
7356 * compile/compile-object-load.c (compile_object_load): Add parameters
7357 scope and scope_data. Set them.
7358 * compile/compile-object-load.h (struct compile_module): Add fields
7359 scope and scope_data.
7360 (compile_object_load): Add parameters scope and scope_data.
7361 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7362 scope and scope_data.
7363 (compile_object_run): Propagate the fields scope and scope_data.
7364 * compile/compile.c (compile_file_command, compile_code_command):
7365 Update eval_compile_command callers.
7366 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7367 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7368 * defs.h (struct command_line): Add field scope_data.
7370 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7372 * printcmd.c (struct format_data): Move it to valprint.h.
7373 (print_command_parse_format, print_value): New functions from ...
7374 (print_command_1): ... here. Call them.
7375 * valprint.h (struct format_data): Move it here from printcmd.c.
7376 (print_command_parse_format, print_value): New declarations.
7378 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7380 * compile/compile-object-load.c (compile_object_load): Add
7381 COMPILE_DEBUG message.
7383 2015-05-15 Jerome Guitton <guitton@adacore.com>
7385 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7386 index to get element instead of enum value.
7387 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7388 of index to compute length, but enum values to compute bounds.
7389 (ada_array_length): Use enum position of index instead of enum value.
7390 (pos_atr): Move position computation to...
7391 (ada_evaluate_subexp): Use enum values to compute bounds.
7392 * gdbtypes.c (discrete_position): ...this new function.
7393 * gdbtypes.h (discrete_position): New function declaration.
7394 * valprint.c (val_print_array_elements): Call discrete_position
7395 to handle array indexed by non-contiguous enumeration types.
7397 2015-05-15 Jerome Guitton <guitton@adacore.com>
7399 * ada-lang.c (find_parallel_type_by_descriptive_type):
7400 Go through typedefs during lookup.
7401 (to_fixed_array_type): Add support for non-bit packed arrays
7402 as variable-length fields.
7404 2015-05-15 Pedro Alves <palves@redhat.com>
7405 Simon Marchi <simon.marchi@ericsson.com>
7407 * event-loop.c (gdb_notifier) <next_file_handler,
7408 next_poll_fds_index>: New fields.
7409 (get_next_file_handler_to_handle_and_advance): New function.
7410 (delete_file_handler): If deleting the next file handler to
7411 handle, advance to the next file handler.
7412 (gdb_wait_for_event): Bail early if no event fired. Poll file
7413 handlers in round-robin fashion.
7415 2015-05-15 Pedro Alves <palves@redhat.com>
7417 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7418 'private' to 'priv'.
7420 2015-05-15 Pedro Alves <palves@redhat.com>
7422 * nat/linux-nat.h: Include "target/waitstatus.h".
7424 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7426 * python/py-unwind.c (struct reg_info): Move out of ...
7427 (struct cached_frame_info): ... this scope.
7428 (pending_frame_object_type, unwind_info_object_type): Make extern.
7430 2015-05-15 Joel Brobecker <brobecker@adacore.com>
7432 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7433 accumSize is never negative.
7435 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7437 * tui/tui-command.c: Remove include of <ctype.h>.
7438 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7440 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7442 * dwarf2read.c (die_needs_namespace): Return 1 for
7443 DW_TAG_inlined_subroutine.
7445 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7447 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7448 (regcache_cpy_no_passthrough): Make it static, add function comment.
7449 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7450 (regcache_cpy_no_passthrough): Remove declaration.
7452 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7454 * gdbthread.h (struct thread_control_state): Update comment for
7456 * infcall.c (run_inferior_call): Update comment about
7458 * infcmd.c (get_return_value): Update comment about stop_registers.
7459 (finish_forward): Update comment about proceed_to_finish.
7460 * infrun.c (stop_registers): Remove.
7461 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7462 * infrun.h (stop_registers): Remove.
7464 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7466 * infcall.c (struct dummy_frame_context_saver)
7467 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7468 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7469 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7471 (call_function_by_hand_dummy): Move discard_cleanups of
7472 inf_status_cleanup before dummy_frame_push. Call
7473 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7474 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7475 * infcall.h (struct dummy_frame_context_saver)
7476 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7477 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7479 * infcmd.c: Include infcall.h.
7480 (get_return_value): Add parameter ctx_saver, use it instead of
7482 (print_return_value): Add parameter ctx_saver, pass it.
7483 (struct finish_command_continuation_args): Add field ctx_saver.
7484 (finish_command_continuation): Update print_return_value caller.
7485 (finish_command_continuation_free_arg): Free also ctx_saver.
7486 (finish_forward): Call dummy_frame_context_saver_setup.
7487 * inferior.h (struct dummy_frame_context_saver): New declaration.
7488 (get_return_value): Add parameter ctx_saver.
7489 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7490 get_return_value caller.
7492 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7494 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7495 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7496 (remove_dummy_frame): Process dtor_list.
7497 (pop_dummy_frame): Process dtor_list.
7498 (register_dummy_frame_dtor): Maintain dtor_list.
7499 (find_dummy_frame_dtor): Handle dtor_list.
7500 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7503 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7505 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7507 (compile_object_run): Update do_module_cleanup caller.
7508 * dummy-frame.c: Include infcall.h.
7509 (struct dummy_frame): Update dtor comment.
7510 (remove_dummy_frame): Call dtor.
7511 (pop_dummy_frame): Update dtor caller.
7512 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7515 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7519 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7521 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7522 Xmethods now being able to specify a result type to that new
7525 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7527 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7528 first before resizing the window.
7529 * tui/tui.c (tui_enable): Likewise.
7531 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7533 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7534 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7535 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7536 dummy_dtor parameter.
7537 * infcall.h: Include dummy-frame.h.
7538 (call_function_by_hand_dummy_dtor_ftype): Remove.
7539 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7542 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7545 * top.c (history_size_setshow_var): Change type to signed.
7546 Initialize to -2. Update documentation.
7547 (set_readline_history_size): Define.
7548 (set_history_size_command): Use it. Remove logic for handling
7550 (init_history): Use set_readline_history_size(). Test for a
7551 value of -2 instead of 0 when determining whether to set a
7552 default history size.
7553 (init_main): Decode the argument of the "size" command as a
7554 zuinteger_unlimited.
7556 2015-05-12 Doug Evans <dje@google.com>
7558 * dwarf2read.c (struct file_entry): Tweak comments.
7559 (get_debug_line_section): Tweak comments.
7561 2015-05-12 Don Breazeal <donb@codesourcery.com>
7563 * NEWS: Announce fork support in the RSP and support
7564 for fork debugging in extended mode.
7566 2015-05-12 Don Breazeal <donb@codesourcery.com>
7568 * remote.c (remote_insert_fork_catchpoint): New function.
7569 (remote_remove_fork_catchpoint): New function.
7570 (remote_insert_vfork_catchpoint): New function.
7571 (remote_remove_vfork_catchpoint): New function.
7572 (pending_fork_parent_callback): New function.
7573 (remove_new_fork_child): New function.
7574 (remote_update_thread_list): Call remote_notif_get_pending_events
7575 and remove_new_fork_child.
7576 (extended_remote_kill): Kill fork child when killing the
7577 parent before follow_fork completes.
7578 (init_extended_remote_ops): Initialize target vector with
7579 new fork catchpoint functions.
7581 2015-05-12 Don Breazeal <donb@codesourcery.com>
7583 * remote.c (remove_vfork_event_p): New function.
7584 (remote_follow_fork): Add vfork event type to event checking.
7585 (remote_parse_stop_reply): New stop reasons "vfork" and
7586 "vforkdone" for RSP 'T' Stop Reply Packet.
7588 2015-05-12 Don Breazeal <donb@codesourcery.com>
7590 * linux-nat.c (linux_nat_ptrace_options): New function.
7591 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7592 Call linux_nat_ptrace_options and use different argument to
7593 linux_enable_event_reporting.
7594 (_initialize_linux_nat): Delete call to
7595 linux_ptrace_set_additional_flags.
7596 * nat/linux-ptrace.c (current_ptrace_options): Rename to
7597 supported_ptrace_options.
7598 (additional_flags): Delete variable.
7599 (linux_check_ptrace_features): Use supported_ptrace_options.
7600 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7601 Likewise, and remove additional_flags check.
7602 (linux_enable_event_reporting): Change 'attached' argument to
7603 'options'. Use supported_ptrace_options.
7604 (ptrace_supports_feature): Change comment. Use
7605 supported_ptrace_options.
7606 (linux_ptrace_set_additional_flags): Delete function.
7607 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7608 Delete function prototype.
7609 * remote.c (remote_fork_event_p): New function.
7610 (remote_detach_pid): New function.
7611 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7612 if doing detach-on-fork.
7613 (remote_follow_fork): New function.
7614 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7615 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7616 (init_extended_remote_ops): Initialize to_follow_fork.
7618 2015-05-12 Don Breazeal <donb@codesourcery.com>
7620 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7621 from static to extern.
7622 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7623 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7624 * PACKET_vfork_event_feature>: New enumeration constants.
7625 (remote_protocol_features): Add table entries for new packets.
7626 (remote_query_supported): Add new feature queries to qSupported
7629 2015-05-12 Gary Benson <gbenson@redhat.com>
7631 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7632 for fake PIDs as well as real ones.
7633 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7635 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7637 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7638 * python/py-value.c (valpy_reference_value): New function.
7639 (valpy_const_value): Likewise.
7640 (value_object_methods): Add new methods.
7641 * value.c (make_cv_value): New function.
7642 * value.h (make_cv_value): Declare.
7644 2015-05-08 Yao Qi <yao@codesourcery.com>
7645 Sandra Loosemore <sandra@codesourcery.com>
7647 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7648 to 'lh->include_dirs' before accessing to it.
7649 (psymtab_include_file_name): Likewise.
7650 (dwarf_decode_lines_1): Likewise.
7651 (dwarf_decode_lines): Likewise.
7652 (file_file_name): Likewise.
7654 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7656 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7657 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7658 (nios2_linux_rt_sigreturn_init): Adjust base address of
7661 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7663 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7664 "trap 31" as the breakpoint instruction on all targets.
7666 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7668 * infcmd.c (print_return_value): Remove unused declaration.
7670 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7672 * dwarf2read.c (attr_to_dynamic_prop)
7673 <DW_AT_data_member_location>: Use read_type_die isntead of
7676 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7678 * ada-lang.c (ada_convert_actual): Add handling of formals
7679 passed inside an aligner type.
7681 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7683 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7685 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7688 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7689 Print xmethod matcher status.
7691 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7693 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7694 register in the regcache when treating the PSWM register, and vice
7697 2015-05-07 Gary Benson <gbenson@redhat.com>
7699 * linux-thread-db.c (struct thread_db_info)
7700 <td_ta_map_id2thr_p>: Remove field.
7701 (try_thread_db_load_1): Remove initialization for the above.
7703 2015-05-07 Gary Benson <gbenson@redhat.com>
7705 * linux-thread-db.c (struct thread_db_info)
7706 <td_thr_validate_p>: Remove field.
7707 (try_thread_db_load_1): Remove initialization for the above.
7709 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7711 * compile/compile-object-load.c (compile_object_load): Support
7714 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7716 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7717 const. Use new variables for the const compatibility.
7718 (eval_compile_command): Make the cmd_string parameter const.
7719 * compile/compile.h (eval_compile_command): Make the cmd_string
7722 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7724 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7726 * top.c (deprecated_init_ui_hook): Delete.
7727 (gdb_init): Remove handling of deprecated_init_ui_hook.
7728 * interps.c (clear_interpreter_hooks): Remove handling of
7729 deprecated_init_ui_hook.
7730 * main.c (captured_main): Update comment.
7732 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7734 * solib.c (_initialize_solib): Add "info dll" alias creation.
7735 * windows-nat.c (set_windows_aliases): Delete.
7736 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7738 * NEWS: Add news entry about "info dll" now being available
7741 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7743 * ada-lang.c (value_assign_to_component): Reformat and improve
7744 documentation. Remove all trailing spaces.
7746 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7748 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7749 Stop counting inlined frames as soon as an out-of-line function
7752 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
7754 * dwarf2read.c (inherit_abstract_dies): Skip
7755 DW_TAG_GNU_call_site dies while inheriting children of an
7756 abstract DIE into a scope.
7757 (read_lexical_block_scope): Inherit abstract DIE's for
7760 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7762 * ada-valprint.c (val_print_packed_array_elements): Delete
7763 variable "len". Add a type-length check when comparing two
7764 consecutive elements of the array. Use the element's actual
7765 length in call to value_contents_eq.
7766 * ada-lang.c (ada_value_primitive_packed_val): Always return
7767 a value whose type has been resolved.
7769 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7771 * ada-lang.c (ada_value_primitive_packed_val): Recompute
7772 BIT_SIZE and LEN if the size of the resolved type is smaller
7773 than BIT_SIZE * HOST_CHAR_BIT.
7775 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7777 * ada-lang.c (ada_value_primitive_packed_val): Use a more
7778 correct address in call to value_at. Adjust call to
7779 value_address accordingly.
7781 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7783 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7786 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7788 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7789 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7791 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7792 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7793 (resolve_dynamic_type_internal): Set pinfo.valaddr.
7794 Add handling of addr_stack->valaddr.
7795 (resolve_dynamic_type): Add "valaddr" parameter.
7796 Set pinfo.valaddr field.
7797 * ada-lang.c (ada_discrete_type_high_bound): Update call to
7798 resolve_dynamic_type.
7799 (ada_discrete_type_low_bound): Likewise.
7800 * findvar.c (default_read_var_value): Likewise.
7801 * value.c (value_from_contents_and_address): Likewise.
7803 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7805 * gdbtypes.c (resolve_dynamic_array): Use
7806 create_array_type_with_stride instead of create_array_type.
7808 2015-04-30 DJ Delorie <dj@redhat.com>
7810 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7813 2015-04-29 Doug Evans <dje@google.com>
7816 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7817 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7818 EVAL_AVOID_SIDE_EFFECTS for xmethods.
7819 * extension-priv.h (struct extension_language_ops)
7820 <get_xmethod_result_type>: New member.
7821 * extension.c (get_xmethod_result_type): New function.
7822 * extension.h (get_xmethod_result_type): Declare.
7823 * python/py-xmethods.c (get_result_type_method_name): New static
7825 (py_get_result_type_method_name): Ditto.
7826 (gdbpy_get_xmethod_result_type): New function.
7827 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
7828 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
7829 * python/python.c (python_extension_ops): Add
7830 gdbpy_get_xmethod_result_type.
7831 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
7832 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
7834 (value_x_unop): Ditto.
7835 * value.c (result_type_of_xmethod): New function.
7836 * value.h (result_type_of_xmethod): Declare.
7838 2015-04-29 Gary Benson <gbenson@redhat.com>
7840 * solib.c (solib_find_1): Allow fd argument to be NULL.
7841 (exec_file_find): Update comment.
7842 (solib_find): Likewise.
7843 * exec.c (exec_file_locate_attach): Use NULL as fd
7844 argument to exec_file_find to avoid having to close
7846 * infrun.c (follow_exec): Likewise.
7848 2015-04-28 Doug Evans <dje@google.com>
7851 * python/lib/gdb/printing.py (register_pretty_printer): Handle
7852 name or __name__ attributes. Handle gdb module as first argument.
7854 2015-04-28 Doug Evans <dje@google.com>
7857 * python/py-prettyprint.c (print_children): Verify result of children
7858 iterator. Provide better error message.
7859 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
7860 * python/python.c (gdbpy_print_python_errors_p): New function.
7862 2015-04-28 Doug Evans <dje@google.com>
7864 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
7866 2015-04-28 Sasha Smundak <asmundak@google.com>
7868 * NEWS: Mention gdb.Type.optimized_out method.
7869 * python/py-type.c (typy_optimized_out): New function.
7871 2015-04-28 John Baldwin <jhb@FreeBSD.org>
7873 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7875 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7877 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
7878 (initialize_utils): Move call of init_page_info() to ...
7879 * top.c (gdb_init): ... here.
7881 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7883 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
7884 (tui_sigwinch_handler): Still update our idea of
7885 the terminal's width and height even when TUI is not active.
7887 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7889 * utils.h (set_screen_width_and_height): Declare.
7890 * utils.c (set_screen_width_and_height): Define.
7891 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
7893 2015-04-28 Gary Benson <gbenson@redhat.com>
7895 * infrun.c (solist.h): New include.
7896 (follow_exec): Use exec_file_find to prefix execd_pathname
7899 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7901 * tui/tui-source.c (tui_set_source_content): Avoid calling
7902 strcpy() when offset is 0.
7904 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7907 * tui/tui-data.c (tui_free_window): Don't free the locator
7908 window when passed an SRC_WIN or a DISASSEM_WIN.
7910 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7912 * tui/tui-data.h (struct tui_win_element): Forward-declare.
7913 (tui_win_content): Move declaration.
7914 (struct tui_gen_win_info): Give 'content' field the
7915 type tui_win_content.
7916 * tui/tui-data.c (init_content_element): Remove redundant and
7918 (tui_add_content_elements): Remove erroneous cast.
7919 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
7921 (tui_get_begin_asm_address): Likewise.
7922 * tui/tui-regs.c (tui_show_registers): Likewise.
7923 (tui_show_register_group): Likewise.
7924 (tui_display_registers_from): Likewise.
7925 (tui_check_register_values): Likewise.
7926 * tui/tui-source.c (tui_set_source_content): Likewise.
7927 (tui_set_source_content_nil): Likewise.
7928 (tui_source_is_displayed): Likewise.
7929 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7930 (tui_set_locator_fullname): Likewise.
7931 (tui_set_locator_info): Likewise.
7932 (tui_show_frame_info): Likewise.
7933 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
7934 (tui_show_source_line): Likewise.
7935 (tui_horizontal_source_scroll): Likewise.
7936 (tui_update_breakpoint_info): Likewise.
7937 (tui_set_exec_info_content): Likewise.
7938 (tui_show_exec_info_content): Likewise.
7939 (tui_alloc_source_buffer): Likewise.
7940 (tui_line_is_displayed): Likewise.
7941 (tui_addr_is_displayed): Likewise.
7943 2015-04-27 John Baldwin <jhb@FreeBSD.org>
7945 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
7946 event if PL_FLAG_EXEC is set.
7947 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
7948 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
7949 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
7950 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
7951 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
7953 2015-04-27 John Baldwin <jhb@FreeBSD.org>
7955 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
7956 [TDP_RFPPWAIT] New variable fbsd_pending_children.
7957 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
7958 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
7959 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
7960 [PT_LWPINFO] (fbsd_wait): New function.
7961 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
7962 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
7963 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
7964 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
7965 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
7966 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
7967 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
7968 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
7969 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
7971 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
7972 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
7973 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
7974 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
7975 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
7976 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
7977 Set "to_post_attach" to "fbsd_post_attach".
7979 2015-04-27 John Baldwin <jhb@FreeBSD.org>
7981 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
7982 (fbsd_find_memory_regions): Mark static.
7983 (fbsd_nat_add_target): New function.
7984 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
7985 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
7986 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
7987 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
7988 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
7989 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
7991 2015-04-27 Gary Benson <gbenson@redhat.com>
7993 * objfiles.c (allocate_objfile): Do not attempt to expand name
7994 if name is a "target:" filename.
7995 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
7996 to load auto-load scripts for objfiles with "target:" filenames.
7998 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8000 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8001 (enum s390_vector_abi_kind): New enum.
8002 (struct gdbarch_tdep)<vector_abi>: New field.
8003 (s390_effective_inner_type): Add parameter min_size. Stop
8004 unwrapping if the inner type is smaller than min_size.
8005 (s390_function_arg_float): Adjust call to
8006 s390_effective_inner_type.
8007 (s390_function_arg_vector): New function.
8008 (s390_function_arg_integer): Adjust comment.
8009 (struct s390_arg_state)<vr>: New field.
8010 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8011 arguments according to vector ABI when appropriate.
8012 (s390_push_dummy_call): Initialize the argument state's field
8013 'vr'. Adjust calls to s390_handle_arg.
8014 (s390_register_return_value): Handle vector return values.
8015 (s390_return_value): Apply the "register" return value convention
8016 to a vector when appropriate.
8017 (s390_gdbarch_init): Initialize tdep->vector_abi.
8018 * NEWS: Announce S390 vector ABI support.
8020 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8022 * s390-linux-tdep.c (s390_return_value_convention): Remove
8023 function. Inline its logic...
8024 (s390_return_value): ...here. Instead, move the handling of the
8025 "register" return value convention...
8026 (s390_register_return_value): ...here. New function.
8028 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8031 (is_float_singleton): Remove function. Move the "singleton" part
8033 (s390_effective_inner_type): ...here. New function.
8034 (is_float_like): Remove function. Inline its logic...
8035 (s390_function_arg_float): ...here.
8036 (is_pointer_like, is_integer_like, is_struct_like): Remove
8037 functions. Inline their logic...
8038 (s390_function_arg_integer): ...here.
8039 (s390_function_arg_pass_by_reference): Remove function.
8040 (extend_simple_arg): Remove function.
8041 (alignment_of): Remove function.
8042 (struct s390_arg_state): New structure.
8043 (s390_handle_arg): New function.
8044 (s390_push_dummy_call): Move parameter placement logic to the new
8045 function s390_handle_arg. Call it for calculating the stack area
8046 sizes first, and again for actually writing the parameters.
8048 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8050 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8051 false if the argument is zero.
8053 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8055 * ada-lang.c (template_to_static_fixed_type): Return input type
8056 when it is already fixed. Cache the input type itself when not
8057 creating a static fixed copy. Make it explicit that we never
8058 molestate the input type.
8059 * gdbtypes.c (resolve_dynamic_struct): Reset the
8060 TYPE_TARGET_TYPE field for resolved copies.
8062 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8064 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8065 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8066 (template_to_static_fixed_type): Call ada_check_typedef only
8069 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8071 * cli/cli-dump.c (srec_dump_command): Add internationalization
8073 (ihex_dump_command): Likewise.
8074 (tekhex_dump_command): Likewise.
8075 (binary_dump_command): Likewise.
8076 (binary_append_command): Likewise.
8078 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8080 * cli/cli-dump.c (verilog_cmdlist): New variable.
8081 (dump_verilog_memory): New function.
8082 (dump_verilog_value): New function.
8083 (verilog_dump_command): New function.
8084 (_initialize_cli_dump): Add new commands to support verilog dump
8086 * NEWS: Add entry for "dump verilog".
8088 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8090 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8091 descriptive type when there is none.
8093 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8095 * tui/tui-win.c (tui_async_resize_screen): Call
8096 rl_resize_terminal().
8098 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8100 * windows-nat.c (handle_output_debug_string): Don't change
8101 current_event.dwThreadId.
8102 (get_windows_debug_event): Use thread_id, rather than relying on
8103 current_event.dwThreadId being changed.
8105 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8107 * windows-nat.c (windows_continue): Report an error if
8108 ContinueDebugEvent() fails.
8110 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8112 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8114 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8116 * windows-nat.c (get_windows_debug_event): Replace retval with
8117 thread_id throughout. Update stale comment.
8119 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8121 * windows-nat.c (get_windows_debug_event): Don't use ternary
8122 conditional operator.
8124 2015-04-21 Pierre Muller <muller@sourceware.org>
8127 p-exp.y (yylex): Reorganize code to return the matched pattern
8128 for a field of this.
8130 2015-04-21 Gary Benson <gbenson@redhat.com>
8132 * common/fileio.h (fileio_to_host_openflags): New declaration.
8133 * common/fileio.c (fcntl.h): New include.
8134 (fileio_to_host_openflags): New function, factored out from...
8135 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8138 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8140 * rl78-tdep.c (RL78_SP_ADDR): Define.
8141 (opc_reg_to_gdb_regnum): New static function.
8142 (rl78_analyze_prologue): Recognize instructions forming slightly
8143 more interesting prologues.
8145 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8148 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8149 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8150 TYPE_CODE_REF types so that they are not considered as dynamic
8151 depending on the referenced type.
8152 (resolve_dynamic_type_internal): Likewise.
8154 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8157 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8158 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8159 "top_level" parameter.
8160 (resolve_dynamic_type_internal): Remove the unused "top_level"
8161 parameter. Update call to is_dynamic_type_internal.
8162 (is_dynamic_type): Update call to is_dynamic_type_internal.
8163 (resolve_dynamic_range): Update call to
8164 resolve_dynamic_type_internal.
8165 (resolve_dynamic_union): Likewise.
8166 (resolve_dynamic_struct): Likewise.
8167 (resolve_dynamic_type): Likewise.
8169 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8171 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8174 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8176 * reply_mig_hack.awk: Robustify parsing.
8178 * reply_mig_hack.awk: Don't bother to declare an intermediate
8179 function pointer variable.
8181 2015-04-17 Doug Evans <dje@google.com>
8183 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8184 to "exec_displacement" to avoid confusion with inner use of the name.
8186 2015-04-17 Pedro Alves <palves@redhat.com>
8188 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8189 if HW point of TYPE isn't supported.
8191 2015-04-17 Yao Qi <yao.qi@linaro.org>
8192 Pedro Alves <palves@redhat.com>
8194 * target.h (target_can_use_hardware_watchpoint): Update comments.
8195 Remove trailing ";".
8197 2015-04-17 Gary Benson <gbenson@redhat.com>
8199 * remote.c (remote_add_inferior): New argument try_open_exec.
8200 If nonzero, attempt to open the inferior's executable file as
8201 the main executable if no main executable is open already.
8202 All callers updated.
8203 * NEWS: Mention that GDB now supports automatic location and
8204 retrieval of executable + files from remote targets.
8206 2015-04-17 Gary Benson <gbenson@redhat.com>
8208 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8209 * remote.c (PACKET_qXfer_exec_file): Likewise.
8210 (remote_protocol_features): Register the
8211 "qXfer:exec-file:read" feature.
8212 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8213 (remote_pid_to_exec_file): New function.
8214 (init_remote_ops): Initialize to_pid_to_exec_file.
8215 (_initialize_remote): Register new "set/show remote
8216 pid-to-exec-file-packet" command.
8217 * NEWS: Announce new qXfer:exec-file:read packet.
8219 2015-04-17 Gary Benson <gbenson@redhat.com>
8221 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8223 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8224 New function, factored out from...
8225 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8227 2015-04-17 Gary Benson <gbenson@redhat.com>
8229 * exec.c (solist.h): New include.
8230 (exec_file_locate_attach): Prefix absolute executable
8231 paths with gdb_sysroot if set.
8232 * NEWS: Mention that executable paths may be prepended
8235 2015-04-17 Gary Benson <gbenson@redhat.com>
8237 * solist.h (exec_file_find): New declaration.
8238 * solib.c (solib_find_1): New function, factored out from...
8239 (solib_find): ...here.
8240 (exec_file_find): New function.
8242 2015-04-17 Gary Benson <gbenson@redhat.com>
8244 * gdbcore.h (exec_file_locate_attach): New declaration.
8245 * exec.c (exec_file_locate_attach): New function, factored
8247 * infcmd.c (attach_command_post_wait): ...here.
8249 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8251 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8253 2015-04-16 Yao Qi <yao.qi@linaro.org>
8255 * infrun.c (maybe_software_singlestep): Declare.
8256 (displaced_step_fixup): Call maybe_software_singlestep.
8258 2015-04-15 Doug Evans <dje@google.com>
8260 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8262 2015-04-15 Doug Evans <dje@google.com>
8264 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8266 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8268 * python/lib/gdb/command/unwinders.py: Add parentheses.
8270 2015-04-15 Yao Qi <yao.qi@linaro.org>
8272 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8274 2015-04-15 Yao Qi <yao.qi@linaro.org>
8276 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8278 2015-04-15 Yao Qi <yao.qi@linaro.org>
8280 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8281 dsc->insn_size instead of 4.
8283 2015-04-14 Gary Benson <gbenson@redhat.com>
8285 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8286 * minidebug.c (lzma_stat): Likewise.
8287 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8288 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8290 2015-04-13 Stan Shebs <stanshebs@google.com>
8292 * MAINTAINERS: Update my email address.
8294 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8296 * amd64-tdep.c (amd64_target_description): New function.
8297 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8298 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8299 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8300 x86 extended save area.
8301 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8302 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8303 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8304 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8305 "amd64fbsd_read_description".
8306 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8307 (amd64fbsd_supply_xstateregset): New function.
8308 (amd64fbsd_collect_xstateregset): New function.
8309 Add "amd64fbsd_xstateregset".
8310 (amd64fbsd_iterate_over_regset_sections): New function.
8311 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8312 "I386_FBSD_XSAVE_XCR0_OFFSET".
8313 Add "iterate_over_regset_sections" gdbarch method.
8314 Add "core_read_description" gdbarch method.
8315 * i386-tdep.c (i386_target_description): New function.
8316 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8317 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8318 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8319 x86 extended save area.
8320 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8321 * i386bsd-nat.h: Export i386bsd_xsave_len.
8322 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8323 (_initialize_i386fbsd_nat): Set "to_read_description" to
8324 "i386fbsd_read_description".
8325 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8326 (i386fbsd_core_read_description): New function.
8327 (i386fbsd_supply_xstateregset): New function.
8328 (i386fbsd_collect_xstateregset): New function.
8329 Add "i386fbsd_xstateregset".
8330 (i386fbsd_iterate_over_regset_sections): New function.
8331 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8332 "I386_FBSD_XSAVE_XCR0_OFFSET".
8333 Add "iterate_over_regset_sections" gdbarch method.
8334 Add "core_read_description" gdbarch method.
8335 * i386fbsd-tdep.h: New file.
8337 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8339 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8340 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8342 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8344 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8346 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8348 * defs.h (xdb_commands): Remove declaration.
8349 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8350 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8351 * infcmd.c (run_no_args_command, go_command): Remove.
8352 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8353 * infrun.c (xdb_handle_command): Remove.
8354 (_initialize_infrun): Remove xdb_commands for lz and z.
8355 * main.c (xdb_commands): Remove variable.
8356 (captured_main): Remove "xdb" from long_options.
8357 (print_gdb_help): Remove --xdb from help.
8358 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8359 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8360 * stack.c (backtrace_full_command, args_plus_locals_info)
8361 (current_frame_command): Remove.
8362 (_initialize_stack): Remove xdb_commands for t, T and l.
8363 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8364 * thread.c (_initialize_thread): Remove xdb_commands condition.
8365 * tui/tui-layout.c (tui_toggle_layout_command)
8366 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8367 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8368 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8369 (tui_scroll_regs_backward_command): Remove.
8370 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8371 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8372 (_initialize_tui_win): Remove xdb_commands for U and w.
8373 * utils.c (pagination_on_command, pagination_off_command): Remove.
8374 (initialize_utils): Remove xdb_commands for am and sm.
8376 2015-04-10 Pedro Alves <palves@redhat.com>
8378 * infrun.c (displaced_step_fixup): Switch to the event ptid
8379 earlier. If the thread stopped for a watchpoint and the
8380 target/arch has non-continuable watchpoints, cancel the displaced
8382 (resume): Don't start a displaced step if in-line step-over info
8385 2015-04-10 Pedro Alves <palves@redhat.com>
8387 * infrun.c (displaced_step_in_progress): New function.
8388 (do_target_resume): Advise target to report all signals if
8391 2015-04-10 Pedro Alves <palves@redhat.com>
8394 * infrun.c (process_event_stop_test): Don't assume a step-resume
8395 is set if tp->stepped_breakpoint is true.
8397 2015-04-10 Yao Qi <yao.qi@linaro.org>
8399 * arm-tdep.c (install_alu_reg): Update comment.
8400 (thumb_copy_alu_reg): Remove local variable rn. Update
8401 debugging message. Use r2 instead of r1 in the modified
8404 2015-04-10 Pedro Alves <palves@redhat.com>
8407 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8408 linux_displaced_step_location as gdbarch_displaced_step_location
8410 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8411 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8412 * linux-tdep.c (linux_displaced_step_location): New function,
8413 based on ppc_linux_displaced_step_location.
8414 * linux-tdep.h (linux_displaced_step_location): New declaration.
8415 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8416 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8418 (ppc_linux_init_abi): Install linux_displaced_step_location as
8419 gdbarch_displaced_step_location hook, even without Cell/B.E..
8420 (_initialize_ppc_linux_tdep): Don't install
8421 ppc_linux_inferior_created as inferior_created observer.
8422 * s390-linux-tdep.c (s390_gdbarch_init): Install
8423 linux_displaced_step_location as gdbarch_displaced_step_location
8426 2015-04-09 Gary Benson <gbenson@redhat.com>
8428 * common/common-remote-fileio.h: Rename to...
8429 * common/fileio.h: ...this. Update all references.
8430 (remote_fileio_to_fio_error): Rename to...
8431 (host_to_fileio_error): ...this.
8432 (remote_fileio_to_be): Rename to...
8433 (host_to_bigendian): ...this. Update all callers.
8434 (remote_fileio_to_fio_uint): Rename to...
8435 (host_to_fileio_uint): ...this. Update all callers.
8436 (remote_fileio_to_fio_time): Rename to...
8437 (host_to_fileio_time): ...this. Update all callers.
8438 (remote_fileio_to_fio_stat): Rename to...
8439 (host_to_fileio_stat): ...this.
8440 Update all references.
8441 * common/common-remote-fileio.c: Rename to...
8442 * common/fileio.c: ...this. Update all references.
8443 (remote_fileio_to_fio_error): Rename to...
8444 (host_to_fileio_error): ...this. Update all callers.
8445 (remote_fileio_mode_to_target): Rename to...
8446 (fileio_mode_pack): ...this. Update all callers.
8447 (remote_fileio_to_fio_mode): Rename to...
8448 (host_to_fileio_mode): ...this. Update all callers.
8449 (remote_fileio_to_fio_ulong): Rename to...
8450 (host_to_fileio_ulong): ...this. Update all callers.
8451 (remote_fileio_to_fio_stat): Rename to...
8452 (host_to_fileio_stat): ...this. Update all callers.
8454 2015-04-09 Andy Wingo <wingo@igalia.com>
8456 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8457 (frame_functions): Bind gdbscm_frame_read_register to
8458 frame-read-register.
8459 * guile/lib/gdb.scm (frame-read-register): Export.
8461 2015-04-09 Gary Benson <gbenson@redhat.com>
8463 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8465 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8466 New function, factored out the named functions below.
8467 * inf-child.c (gdb/fileio.h): Remove include.
8468 (common-remote-fileio.h): New include.
8469 (inf_child_errno_to_fileio_error): Remove function. Update
8470 all callers to use remote_fileio_to_fio_error.
8471 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8473 2015-04-09 Andy Wingo <wingo@igalia.com>
8475 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8477 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8479 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8480 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8481 * configure: Regenerated.
8483 2015-04-09 Pedro Alves <palves@redhat.com>
8485 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8486 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8487 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8488 * gnulib/import/Makefile.am: Update.
8489 * gnulib/import/Makefile.in: Update.
8490 * gnulib/import/m4/gnulib-cache.m4: Update.
8491 * gnulib/import/m4/gnulib-comp.m4: Update.
8492 * gnulib/import/m4/strtok_r.m4: New file.
8493 * gnulib/import/strtok_r.c: New file.
8495 2015-04-09 Pedro Alves <palves@redhat.com>
8497 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8498 "called too early to check prototype".
8500 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8503 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8504 use a caching mechanism. Adjust comments and code to reflect
8505 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8506 (cmdpy_completer_handle_brkchars): Adjust call to
8507 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8508 (cmdpy_completer): Likewise.
8510 2015-04-08 Yao Qi <yao.qi@linaro.org>
8512 * spu-tdep.c (spu_gdbarch_init): Don't call
8513 set_gdbarch_cannot_step_breakpoint.
8515 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8517 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8519 2015-04-07 Pedro Alves <palves@redhat.com>
8521 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8522 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8523 (delete_exited_threads): New declaration.
8524 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8525 * linux-nat.c (linux_nat_update_thread_list): New function.
8526 (linux_nat_add_target): Install it.
8527 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8528 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8529 (delete_exited_threads): New function.
8531 2015-04-07 Pedro Alves <pedro@codesourcery.com>
8533 * infrun.c (resume) <displaced stepping debug output>: Get the
8534 leader thread's regcache, not resume_ptid's.
8536 2015-04-06 Doug Evans <xdje42@gmail.com>
8538 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8540 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8541 Include symbol domain in debugging output.
8543 2015-04-06 Pedro Alves <palves@redhat.com>
8544 Bernd Edlinger <bernd.edlinger@hotmail.de>
8546 * configure.ac: Remove the mingw32-specific stub-termcap.o
8547 fallback, and instead fallback to the stub termcap on all hosts.
8548 * configure: Regenerate.
8549 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8552 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8554 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8555 "top_level" parameter.
8556 (resolve_dynamic_type_internal): Remove the unused "top_level"
8557 parameter. Update call to is_dynamic_type_internal.
8558 (is_dynamic_type): Update call to is_dynamic_type_internal.
8559 (resolve_dynamic_range): Update call to
8560 resolve_dynamic_type_internal.
8561 (resolve_dynamic_union): Likewise.
8562 (resolve_dynamic_struct): Likewise.
8563 (resolve_dynamic_type): Likewise.
8565 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8567 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8568 TYPE_CODE_REF types so that they are not considered as dynamic
8569 depending on the referenced type.
8570 (resolve_dynamic_type_internal): Likewise.
8572 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8574 * Makefile.in (top_srcdir): New.
8575 * configure: Regenerated.
8577 2015-04-02 Gary Benson <gbenson@redhat.com>
8579 * NEWS: Announce the new default sysroot of "target:".
8581 2015-04-02 Gary Benson <gbenson@redhat.com>
8583 * main.c (captured_main): Set gdb_sysroot to "target:"
8584 if not otherwise set.
8586 2015-04-02 Gary Benson <gbenson@redhat.com>
8588 * exec.c (exec_file_attach): Support "target:" filenames.
8590 2015-04-02 Gary Benson <gbenson@redhat.com>
8592 * solib.c (solib_find): Strip "target:" prefix from sysroot
8593 if accessing local files.
8595 2015-04-02 Gary Benson <gbenson@redhat.com>
8597 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8598 checks and error messages.
8600 2015-04-02 Gary Benson <gbenson@redhat.com>
8602 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8603 (remote_filename_p): Remove declaration.
8604 (remote_bfd_open): Likewise.
8605 * remote.c (remote_bfd_iovec_open): Remove function.
8606 (remote_bfd_iovec_close): Likewise.
8607 (remote_bfd_iovec_pread): Likewise.
8608 (remote_bfd_iovec_stat): Likewise.
8609 (remote_filename_p): Likewise.
8610 (remote_bfd_open): Likewise.
8611 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8612 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8613 (gdb_bfd_open_maybe_remote): Remove function.
8614 (symfile_bfd_open): Replace remote filename check with
8615 target filename check.
8616 (reread_symbols): Use gdb_bfd_open.
8617 * build-id.c (gdbcore.h): New include.
8618 (build_id_to_debug_bfd): Use gdb_bfd_open.
8619 * infcmd.c (attach_command_post_wait): Remove remote filename
8621 * solib.c (solib_find): Replace remote-specific handling with
8622 target-specific handling. Update comments where necessary.
8623 (solib_bfd_open): Replace remote-specific handling with
8624 target-specific handling.
8625 (gdb_sysroot_changed): New function.
8626 (_initialize_solib): Call the above when gdb_sysroot changes.
8627 * windows-tdep.c (gdbcore.h): New include.
8628 (windows_xfer_shared_library): Use gdb_bfd_open.
8630 2015-04-02 Gary Benson <gbenson@redhat.com>
8632 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8633 (is_target_filename): New declaration.
8634 (gdb_bfd_has_target_filename): Likewise.
8635 (gdb_bfd_open): Update documentation comment.
8636 * gdb_bfd.c (target.h): New include.
8637 (gdb/fileio.h): Likewise.
8638 (is_target_filename): New function.
8639 (gdb_bfd_has_target_filename): Likewise.
8640 (fileio_errno_to_host): Likewise.
8641 (gdb_bfd_iovec_fileio_open): Likewise.
8642 (gdb_bfd_iovec_fileio_pread): Likewise.
8643 (gdb_bfd_iovec_fileio_close): Likewise.
8644 (gdb_bfd_iovec_fileio_fstat): Likewise.
8645 (gdb_bfd_open): Use target fileio to access paths prefixed
8646 with "target:" where necessary.
8648 2015-04-02 Gary Benson <gbenson@redhat.com>
8650 * target.h (struct target_ops) <to_filesystem_is_local>:
8652 (target_filesystem_is_local): New macro.
8653 * target-delegates.c: Regenerate.
8654 * remote.c (remote_filesystem_is_local): New function.
8655 (init_remote_ops): Initialize to_filesystem_is_local.
8657 2015-04-02 Gary Benson <gbenson@redhat.com>
8659 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8660 (target_fileio_fstat): New declaration.
8661 * target.c (target_fileio_fstat): New function.
8662 * inf-child.c (inf_child_fileio_fstat): Likewise.
8663 (inf_child_target): Initialize to_fileio_fstat.
8664 * remote.c (init_remote_ops): Likewise.
8666 2015-04-01 Sasha Smundak <asmundak@google.com>
8668 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8669 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8670 (py-unwind.o): New recipe.
8671 * NEWS: mention Python frame unwinding.
8672 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8673 gdb/unwinder.py and gdb/command/unwinder.py
8674 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8676 (execute_unwinders): New function.
8677 * python/lib/gdb/command/unwinders.py: New file.
8678 * python/lib/gdb/unwinder.py: New file.
8679 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8680 (objfpy_dealloc): Decrement frame_unwinders reference count.
8681 (objfpy_initialize): Create frame_unwinders list.
8682 (objfpy_get_frame_unwinders): New function.
8683 (objfpy_set_frame_unwinders): Ditto.
8684 (objfile_getset): Add frame_unwinders attribute to Objfile.
8685 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8686 (pspy_dealloc): Decrement frame_unwinders reference count.
8687 (pspy_initialize): Create frame_unwinders list.
8688 (pspy_get_frame_unwinders): New function.
8689 (pspy_set_frame_unwinders): Ditto.
8690 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8691 * python/py-unwind.c: New file.
8692 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8693 (objpy_get_frame_unwinders): New prototype.
8694 (gdbpy_initialize_unwind): New prototype.
8695 * python/python.c (gdbpy_apply_type_printers): Call
8696 gdbpy_initialize_unwind.
8698 2015-04-01 Pedro Alves <palves@redhat.com>
8700 * infrun.c (resume): Check currently_stepping after clearing
8701 stepped_breakpoint, not before.
8703 2015-04-01 Pedro Alves <palves@redhat.com>
8705 * infrun.c (print_target_wait_results): Print all the ptid
8708 2015-04-01 Pedro Alves <palves@redhat.com>
8710 * infrun.c (keep_going): Also discard cleanups if inserting
8713 2015-04-01 Pedro Alves <palves@redhat.com>
8715 * infrun.c (wait_for_inferior): Install the
8716 finish_thread_state_cleanup cleanup across the whole function, not
8717 just around handle_inferior_event.
8719 2015-04-01 Pedro Alves <palves@redhat.com>
8721 * infrun.c (resume) <step past permanent breakpoint>: Use
8724 2015-04-01 Pedro Alves <palves@redhat.com>
8726 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8728 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8730 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8732 2015-04-01 Pedro Alves <palves@redhat.com>
8734 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8735 list if it was marked exited.
8737 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8739 * configure: Regenerated.
8741 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8742 Jan Kratochvil <jan.kratochvil@redhat.com>
8743 Oleg Nesterov <oleg@redhat.com>
8746 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8747 New enum identifying the various options of the coredump_filter
8749 (struct smaps_vmflags): New struct.
8750 (use_coredump_filter): New variable.
8751 (decode_vmflags): New function.
8752 (mapping_is_anonymous_p): Likewise.
8753 (dump_mapping_p): Likewise.
8754 (linux_find_memory_regions_full): New variables
8755 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8756 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
8757 parsing of its information. Implement memory mapping filtering
8758 based on its contents.
8759 (show_use_coredump_filter): New function.
8760 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8761 * NEWS: Mention the possibility of using the
8762 '/proc/PID/coredump_filter' file when generating a corefile.
8763 Mention new command 'set use-coredump-filter'.
8765 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8767 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8768 read_memory_unsigned_integer.
8770 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
8772 * Makefile.in (ZLIB): New.
8773 (ZLIBINC): Likewise.
8774 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8775 (CLIBS): Add $(ZLIB).
8776 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8778 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8779 * top.c (print_gdb_configuration): Remove --with-zlib and
8781 * config.in: Regenerated.
8782 * configure: Likewise.
8784 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8786 * NEWS: Mention info os cpus support.
8787 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8788 (struct osdata_type): Add cpus entry, reorder the entries in
8791 2015-03-31 Matthias Klose <doko@ubuntu.com>
8793 * compile/compile.c (compile_to_object): Allow triplets with or
8796 2015-03-30 Doug Evans <dje@google.com>
8799 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8800 klass in VAR_DOMAIN.
8802 2015-03-30 Gary Benson <gbenson@redhat.com>
8804 * remote.c (remote_mourn_1): Remove function. Update all callers
8805 to use remote_mourn.
8806 (extended_remote_mourn_1): Remove function. Update all callers
8807 to use extended_remote_mourn.
8808 (extended_remote_attach_1): Remove function. Update all callers
8809 to use extended_remote_attach.
8811 2015-03-28 James Bowman <james.bowman@ftdichip.com>
8813 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8814 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8815 (ALLDEPFILES): Add ft32-tdep.c.
8816 * configure.tgt: Add FT32 entry.
8817 * ft32-tdep.c: New file, FT32 target-dependent code.
8818 * ft32-tdep.h: New file, FT32 target-dependent code.
8820 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8823 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8825 * printcmd.c (print_command_1): Move expr variable scope.
8827 2015-03-27 Joel Brobecker <brobecker@adacore.com>
8829 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
8831 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
8833 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
8836 2015-03-26 Joel Brobecker <brobecker@adacore.com>
8838 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
8839 exception raised while parsing the probe arguments.
8840 Force parsing to be done using the C language parser.
8841 * expression.h (parse_expression_with_language): Declare.
8842 * parse.c (parse_expression_with_language): New function.
8844 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
8846 * MAINTAINERS (Write After Approval): Add "Jon Turney".
8848 2015-03-26 Andy Wingo <wingo@igalia.com>
8851 * dwarf2read.c (struct partial_die_info): Add has_const_value
8853 (add_partial_symbol): Don't punt on symbols that have const_value
8855 (read_partial_die): Detect DW_AT_const_value.
8857 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8860 * printcmd.c (print_command_1): Move expr variable scope.
8862 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8865 * printcmd.c (validate_format): Make the parameter cmdname const.
8867 2015-03-26 Don Breazeal <donb@codesourcery.com>
8869 * remote.c (_initialize_remote): Update comment.
8871 2015-03-26 Pedro Alves <palves@redhat.com>
8872 Jon TURNEY <jon.turney@dronecode.org.uk>
8874 * coffread.c (coff_symfile_read): When constructing the name of an
8875 import stub symbol from import symbol for amd64, only skip the
8876 char after _imp_ if the target is underscored (like i386) and the
8877 char is indeed the target's leading char.
8879 2015-03-25 Pedro Alves <palves@redhat.com>
8881 * target.h <to_async>: Replace 'callback' and 'context' parameters
8882 with boolean 'enable' parameter.
8883 (target_async): Replace CALLBACK and CONTEXT parameters with
8884 boolean ENABLE parameter.
8885 * inf-loop.c (inferior_event_handler): Adjust.
8886 * linux-nat.c (linux_nat_attach, linux_nat_resume)
8887 (linux_nat_resume): Adjust.
8888 (async_client_callback, async_client_context): Delete.
8889 (handle_target_event): Call inferior_event_handler directly.
8890 (linux_nat_async): Replace 'callback' and 'context' parameters
8891 with boolean 'enable' parameter. Adjust. Remove references to
8892 async_client_callback and async_client_context.
8893 (linux_nat_close): Adjust.
8894 * record-btrace.c (record_btrace_async): Replace 'callback' and
8895 'context' parameters with boolean 'enable' parameter. Adjust.
8896 (record_btrace_resume): Adjust.
8897 * record-full.c (record_full_async): Replace 'callback' and
8898 'context' parameters with boolean 'enable' parameter. Adjust.
8899 (record_full_resume, record_full_core_resume): Adjust.
8900 * remote.c (struct remote_state) <async_client_callback,
8901 async_client_context>: Delete fields.
8902 (remote_start_remote, extended_remote_attach_1, remote_resume)
8903 (extended_remote_create_inferior): Adjust.
8904 (remote_async_serial_handler): Call inferior_event_handler
8906 (remote_async): Replace 'callback' and 'context' parameters with
8907 boolean 'enable' parameter. Adjust.
8908 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
8910 * target-delegates.c: Regenerate.
8912 2015-03-25 Gary Benson <gbenson@redhat.com>
8913 Pedro Alves <palves@redhat.com>
8915 * target.c (fileio_ft_t): New typedef, define object vector.
8916 (fileio_fhandles): New static variable.
8917 (is_closed_fileio_fh): New macro.
8918 (lowest_closed_fd): New static variable.
8919 (acquire_fileio_fd): New function.
8920 (release_fileio_fd): Likewise.
8921 (fileio_fd_to_fh): New macro.
8922 (target_fileio_open): Wrap the file descriptor on success.
8923 (target_fileio_pwrite): Updated to use wrapped file descriptor.
8924 (target_fileio_pread): Likewise.
8925 (target_fileio_close): Likewise.
8927 2015-03-24 Pedro Alves <palves@redhat.com>
8929 * thread.c (thread_apply_all_command): Take exited threads into
8932 2015-03-24 Pedro Alves <palves@redhat.com>
8934 * infrun.c (resume, proceed): Mention
8935 switch_back_to_stepped_thread, not switch_back_to_stepping.
8937 2015-03-24 Pedro Alves <palves@redhat.com>
8939 * infrun.c (user_visible_resume_ptid): Rewrite going from
8940 most-locked to unlocked instead of the opposite. Move comment ...
8941 * infrun.h (user_visible_resume_ptid): ... here.
8943 2015-03-24 Pedro Alves <palves@redhat.com>
8945 * linux-nat.c (linux_nat_resume): Output debug logs before trying
8946 to resume the event lwp. Use the lwp's ptid instead of the passed
8947 in (maybe wildcard) ptid.
8948 (stop_wait_callback): Tweak debug log output.
8949 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
8951 (linux_nat_filter_event): In debug output, distinguish a
8952 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
8953 before trying to resume the lwp.
8955 2015-03-24 Joel Brobecker <brobecker@adacore.com>
8957 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
8958 pointer indirection.
8959 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
8960 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
8962 2015-03-24 Joel Brobecker <brobecker@adacore.com>
8964 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
8965 Renames DYN_ATTR_DATA_LOCATION.
8966 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
8967 DYN_ATTR_DATA_LOCATION.
8968 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
8969 instead of DYN_ATTR_DATA_LOCATION.
8971 2015-03-24 Pedro Alves <palves@redhat.com>
8973 * breakpoint.c (until_break_command): Adjust call to proceed.
8974 * gdbthread.h (struct thread_control_state) <stepping_command>:
8976 * infcall.c (run_inferior_call): Adjust call to proceed.
8977 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
8978 Adjust calls to proceed.
8979 (set_step_frame): Set the current thread's step_start_function
8981 (step_once): Adjust calls to proceed.
8982 (jump_command, signal_command, until_next_command)
8983 (finish_backward, finish_forward, proceed_after_attach_callback)
8984 (attach_command_post_wait): Adjust calls to proceed.
8985 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
8986 (do_target_resume): New function, factored out from ...
8987 (resume): ... here. Remove 'step' parameter. Instead, check
8988 currently_stepping to determine whether the thread should be
8990 (proceed): Remove 'step' parameter and don't set the thread's
8991 step_start_function here. Adjust call to 'resume'.
8992 (handle_inferior_event): Adjust calls to 'resume'.
8993 (switch_back_to_stepped_thread): Use do_target_resume instead of
8995 (keep_going): Adjust calls to 'resume'.
8996 * infrun.h (proceed): Remove 'step' parameter.
8998 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9000 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9002 2015-03-24 Pedro Alves <palves@redhat.com>
9004 * gdbthread.h (struct thread_control_state) <stepping_command>:
9006 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9007 the thread's stepping_command field.
9008 * infrun.c (resume): Check the thread's stepping_command flag to
9009 determine which threads should be resumed. Rename 'entry_step'
9011 (clear_proceed_status_thread): Clear 'stepping_command'.
9012 (schedlock_applies): Change parameter type to struct thread_info
9014 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9015 (switch_back_to_stepped_thread): Adjust calls to
9016 'schedlock_applies'.
9017 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9019 2015-03-24 Pedro Alves <palves@redhat.com>
9021 * infrun.c (step_start_function): Delete and ...
9022 * gdbthread.h (struct thread_control_state) <step_start_function>:
9023 ... now a field here.
9024 * infrun.c (clear_proceed_status_thread): Clear the thread's
9025 step_start_function.
9026 (proceed, process_event_stop_test, print_stop_event): Adjust.
9028 2015-03-24 Pedro Alves <palves@redhat.com>
9030 * infrun.c (proceed): No longer handle negative step.
9032 2015-03-24 Gary Benson <gbenson@redhat.com>
9034 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9035 (x86_linux_prepare_to_resume): Likewise.
9036 * x86-linux-nat.c (x86_linux_new_thread):
9037 Moved to nat/x86-linux.c.
9038 (x86_linux_prepare_to_resume): Likewise.
9039 * nat/x86-linux.c (x86_linux_new_thread): New function.
9040 (x86_linux_prepare_to_resume): Likewise.
9042 2015-03-24 Gary Benson <gbenson@redhat.com>
9044 * nat/x86-linux-dregs.h: New file.
9045 * nat/x86-linux-dregs.c: Likewise.
9046 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9047 (x86-linux-dregs.o): New rule.
9048 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9049 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9050 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9051 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9052 (x86_linux_dr_get): Likewise.
9053 (x86_linux_dr_set): Likewise.
9054 (x86_linux_dr_get_addr): Likewise.
9055 (x86_linux_dr_get_control): Likewise.
9056 (x86_linux_dr_get_status): Likewise.
9057 (update_debug_registers_callback): Likewise.
9058 (x86_linux_dr_set_control): Likewise.
9059 (x86_linux_dr_set_addr): Likewise.
9060 (x86_linux_update_debug_registers): Likewise.
9062 2015-03-24 Gary Benson <gbenson@redhat.com>
9064 * x86-linux-nat.c (x86_linux_update_debug_registers):
9065 New function, factored out from...
9066 (x86_linux_prepare_to_resume): ...this.
9068 2015-03-24 Gary Benson <gbenson@redhat.com>
9070 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9071 (x86_linux_dr_set): Likewise.
9072 (x86_linux_dr_get_addr): Likewise.
9073 (x86_linux_dr_get_control): Likewise.
9074 (x86_linux_dr_get_status): Likewise.
9075 (update_debug_registers_callback): Likewise.
9076 (x86_linux_dr_set_control): Likewise.
9077 (x86_linux_dr_set_addr): Likewise.
9078 (x86_linux_prepare_to_resume): Likewise.
9079 (x86_linux_new_thread): Likewise.
9081 2015-03-24 Gary Benson <gbenson@redhat.com>
9083 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9084 (x86_linux_new_thread): Rename argument.
9086 2015-03-24 Gary Benson <gbenson@redhat.com>
9088 * nat/x86-linux.h: New file.
9089 * nat/x86-linux.c: Likewise.
9090 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9091 (x86-linux.o): New rule.
9092 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9093 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9094 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9095 (lwp_set_arch_private_info): New declaration.
9096 (lwp_arch_private_info): Likewise.
9097 * linux-nat.c (lwp_set_arch_private_info): New function.
9098 (lwp_arch_private_info): Likewise.
9099 * x86-linux-nat.c: Include nat/x86-linux.h.
9100 (arch_lwp_info): Removed structure.
9101 (update_debug_registers_callback):
9102 Use lwp_set_debug_registers_changed.
9103 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9104 and lwp_set_debug_registers_changed.
9105 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9107 2015-03-24 Gary Benson <gbenson@redhat.com>
9109 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9110 (lwp_is_stopped): Likewise.
9111 (lwp_stop_reason): Likewise.
9112 * linux-nat.c (ptid_of_lwp): New function.
9113 (lwp_is_stopped): Likewise.
9114 (lwp_is_stopped_by_watchpoint): Likewise.
9115 * x86-linux-nat.c (update_debug_registers_callback):
9117 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9120 2015-03-24 Gary Benson <gbenson@redhat.com>
9122 * linux-nat.h (linux_stop_lwp): Move declaration to...
9123 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9125 2015-03-24 Gary Benson <gbenson@redhat.com>
9127 * linux-nat.h: Include nat/linux-nat.h.
9128 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9129 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9130 (iterate_over_lwps_ftype): New typedef.
9131 (iterate_over_lwps): New declaration.
9132 * linux-nat.h (iterate_over_lwps): Update comment. Use
9133 iterate_over_lwps_ftype. Update callback return value check.
9135 2015-03-24 Gary Benson <gbenson@redhat.com>
9137 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9138 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9140 2015-03-24 Gary Benson <gbenson@redhat.com>
9142 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9143 * linux-nat.c (current_lwp_ptid): New function.
9144 * x86-linux-nat.c: Include nat/linux-nat.h.
9145 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9146 (x86_linux_dr_get_control): Likewise.
9147 (x86_linux_dr_get_status): Likewise.
9148 (x86_linux_dr_set_control): Likewise.
9149 (x86_linux_dr_set_addr): Likewise.
9151 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9153 PR breakpoints/16466
9154 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9156 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9158 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9159 * ser-unix.c (hardwire_setparity): Likewise.
9161 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9163 * NEWS: Mention set/show serial parity command.
9164 * monitor.c (monitor_open): Call serial_setparity.
9165 * remote.c (remote_open_1): Likewise.
9166 * ser-base.c (ser_base_serparity): New function.
9167 * ser-base.h (ser_base_setparity): Add declaration.
9168 * ser-go32.c (dos_ops): Set "setparity" field.
9169 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9171 (ser_windows_setparity): New function.
9172 (hardwire_ops): Add ser_windows_setparity.
9173 (tty_ops): Add NULL for setparity field.
9174 (pipe_ops): Add ser_base_setparity.
9175 (tcp_ops): Likewise.
9176 * ser-pipe.c (pipe_ops): Likewise.
9177 * ser-tcp.c (tcp_ops): Likewise.
9178 * ser-unix.c (hardwire_setparity): Add declaration.
9179 (hardwire_raw): Don't reset PARENB flag.
9180 (hardwire_setparity): New function.
9181 (hardwire_ops): Add hardwire_setparity.
9182 * serial.c (serial_setparity): New function.
9183 (serial_parity): New global.
9184 (parity_none, parity_odd, parity_even, parity_enums, parity):
9186 (set_parity): New function.
9187 (_initialize_serial): Add set/show serial parity commands.
9188 * serial.h (GDBPARITY_NONE): Define.
9189 (GDBPARITY_ODD): Define.
9190 (GDBPARITY_EVEN): Define.
9191 (serial_setparity) Add declaration.
9192 (struct serial_ops): Add setparity field.
9193 * target.h (serial_parity): Add declaration.
9195 2015-03-23 Keith Seitz <keiths@redhat.com>
9197 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9199 2015-03-23 Keith Seitz <keiths@redhat.com>
9201 * breakpoint.c (parse_breakpoint_sals): Use
9202 linespec_lexer_lex_keyword to ascertain if the user specified
9204 * linespec.c [IF_KEYWORD_INDEX]: Define.
9205 (linespec_lexer_lex_keyword): Export.
9206 (struct ls_parser) <keyword_ok>: Remove.
9207 A keyword is only a keyword if not followed by another keyword.
9208 (linespec_lexer_lex_one): Remove keyword_ok handling.
9209 Add comment explaining why the parsing stream is not advanced
9210 when a keyword is seen.
9211 (parse_linespec): Remove parser->keyword_ok.
9212 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9214 2015-03-23 Keith Seitz <keiths@redhat.com>
9217 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9218 if we find a static method with DW_AT_vtable_elem_location.
9220 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9222 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9223 before the second loop, to avoid undefined behavior. Reported by
9224 Anton Blanchard <anton@samba.org>.
9226 2015-03-20 Keven Boell <keven.boell@intel.com>
9228 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9229 data_location usage to linked list.
9230 (resolve_dynamic_type_internal): Adapt data_location to
9232 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9233 (copy_type_recursive, copy_type): Add copy of linked list.
9234 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9235 (struct dynamic_prop_list): New struct.
9236 * dwarf2read.c (set_die_type): Set data_location data.
9238 2015-03-20 Pedro Alves <palves@redhat.com>
9240 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9241 inner block and make it const.
9242 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9244 2015-03-20 Pedro Alves <palves@redhat.com>
9246 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9247 * breakpoint.h (set_breakpoint_condition): Update declaration.
9249 2015-03-20 Pedro Alves <palves@redhat.com>
9251 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9253 2015-03-20 Pedro Alves <palves@redhat.com>
9255 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9257 2015-03-20 Pedro Alves <palves@redhat.com>
9259 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9261 2015-03-20 Pedro Alves <palves@redhat.com>
9263 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9264 (nto_init_solib_absolute_prefix): Likewise.
9266 2015-03-20 Pedro Alves <palves@redhat.com>
9268 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9269 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9271 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9273 * config/djgpp/README: Remove gdb.hp.
9275 2015-03-20 Yao Qi <yao.qi@linaro.org>
9277 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9278 set_gdbarch_cannot_step_breakpoint.
9280 2015-03-19 Pedro Alves <palves@redhat.com>
9282 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9283 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9284 instead call perror_with_name.
9285 (check_ptrace_stopped_lwp_gone): New function.
9286 (linux_resume_one_lwp): Reimplement as wrapper around
9287 linux_resume_one_lwp_throw that swallows errors if the LWP is
9289 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9290 swallows errors if the LWP is gone. Use
9291 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9293 2015-03-19 Pedro Alves <palves@redhat.com>
9295 * linux-nat.c (status_callback): Return early if the LWP has no
9298 2015-03-19 Pedro Alves <palves@redhat.com>
9300 * linux-nat.c (select_event_lwp_callback): Update comment to no
9301 longer mention SIGTRAP.
9303 2015-03-18 Tristan Gingold <gingold@adacore.com>
9305 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9306 redirection code to ...
9307 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9308 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9310 2015-03-18 Gary Benson <gbenson@redhat.com>
9312 (remote_protocol_features): Remove the "vFile:fstat" feature.
9313 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9315 2015-03-11 Yao Qi <yao.qi@linaro.org>
9318 * aarch64-linux-tdep.c: Include xml-syscall.h
9319 (aarch64_linux_get_syscall_number): New function.
9320 (aarch64_linux_init_abi): Call
9321 set_gdbarch_get_syscall_number.
9322 * syscalls/aarch64-linux.xml: New file.
9324 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9326 * ser-base.h (ser_base_setstopbits): Change second argument name
9327 from "rate" to "num".
9329 2015-03-17 Gary Benson <gbenson@redhat.com>
9330 Luke Allardyce <lukeallardyce@gmail.com>
9333 * common/common-remote-fileio.h (sys/stat.h): New include.
9334 (stuct stat): Remove forward declaration.
9336 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9338 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9339 before writing core register notes.
9341 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9342 Pedro Alves <palves@redhat.com>
9344 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9345 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9346 (tgoto): Wrap with extern "C".
9348 2015-03-16 Pedro Alves <palves@redhat.com>
9349 Yuanhui Zhang <asmwarrior@gmail.com>
9351 * stub-termcap.c (tputs): Change prototype.
9353 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9354 Pedro Alves <palves@redhat.com>
9356 * windows-nat.c (struct thread_info_struct): Rename to ...
9357 (struct windows_thread_info_struct): ... this.
9358 (thread_info): Rename to ...
9359 (windows_thread_info): ... this.
9362 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9363 Pedro Alves <palves@redhat.com>
9365 * NEWS: New Removed targets and native configurations.
9367 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9370 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9371 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9372 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9373 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9374 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9375 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9376 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9378 * config/ia64/hpux.mh: Remove file.
9379 * config/pa/hpux.mh: Remove file.
9380 * configure: Rebuilt.
9381 * configure.ac (dlgetmodinfo, somread.o): Remove.
9382 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9383 (ia64-*-hpux*): Remove its float format exception.
9384 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9385 * hppa-hpux-nat.c: Remove file.
9386 * hppa-hpux-tdep.c: Remove file.
9387 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9388 Move them here from hppa-tdep.h
9389 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9390 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9391 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9392 Move them to hppa-tdep.c.
9393 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9395 * ia64-hpux-nat.c: Remove file.
9396 * ia64-hpux-tdep.c: Remove file.
9397 * ia64-hpux-tdep.h: Remove file.
9398 * inf-ttrace.c: Remove file.
9399 * inf-ttrace.h: Remove file.
9400 * solib-ia64-hpux.c: Remove file.
9401 * solib-ia64-hpux.h: Remove file.
9402 * solib-pa64.c: Remove file.
9403 * solib-pa64.h: Remove file.
9404 * solib-som.c: Remove file.
9405 * solib-som.h: Remove file.
9406 * somread.c: Remove file.
9408 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9410 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9411 * config.in: Regenerate.
9412 * configure: Regenerate.
9413 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9415 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9416 enumerate memory regions if present.
9418 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9420 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9421 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9423 (i386fbsd_sigtramp_p): Likewise.
9425 2015-03-12 John Baldwin <jhb@FreeBSD.org>
9427 * MAINTAINERS (Write After Approval): Add John Baldwin.
9429 2015-03-12 Gary Benson <gbenson@redhat.com>
9431 * solib.c (_initialize_solib): Make "set/show sysroot" use
9432 add_setshow_optional_filename_cmd so it can be restored to
9433 empty after being set.
9435 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9437 * Makefile.in (SFILES): New source break-catch-syscall.c.
9438 (COMMON_OBS): New object break-catch-syscall.o.
9439 * break-catch-syscall.c: New file.
9440 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9441 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9442 (struct syscall_catchpoint): Likewise.
9443 (dtor_catch_syscall): Likewise.
9444 (catch_syscall_inferior_data): Likewise.
9445 (struct catch_syscall_inferior_data): Likewise.
9446 (get_catch_syscall_inferior_data): Likewise.
9447 (catch_syscall_inferior_data_cleanup): Likewise.
9448 (insert_catch_syscall): Likewise.
9449 (remove_catch_syscall): Likewise.
9450 (breakpoint_hit_catch_syscall): Likewise.
9451 (print_it_catch_syscall): Likewise.
9452 (print_one_catch_syscall): Likewise.
9453 (print_mention_catch_syscall): Likewise.
9454 (print_recreate_catch_syscall): Likewise.
9455 (catch_syscall_breakpoint_ops): Likewise.
9456 (syscall_catchpoint_p): Likewise.
9457 (create_syscall_event_catchpoint): Likewise.
9458 (catch_syscall_split_args): Likewise.
9459 (catch_syscall_command_1): Likewise.
9460 (is_syscall_catchpoint_enabled): Likewise.
9461 (catch_syscall_enabled): Likewise.
9462 (catching_syscall_number): Likewise.
9463 (catch_syscall_completer): Likewise.
9464 (clear_syscall_counts): Likewise.
9465 (initialize_breakpoint_ops): Move initialization of syscall
9466 catchpoints to break-catch-syscall.c.
9467 (_initialize_breakpoint): Move code related to syscall catchpoints
9468 to break-catch-syscall.c.
9470 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9472 * breakpoint.c (breakpoint_find_if): New function.
9473 * breakpoint.h (breakpoint_find_if): New prototype.
9475 2015-03-11 Gary Benson <gbenson@redhat.com>
9477 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9478 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9479 (remote_fileio_to_host_ulong): Likewise.
9480 (remote_fileio_to_host_mode): Likewise.
9481 (remote_fileio_to_host_time): Likewise.
9482 (remote_fileio_to_host_stat): Likewise.
9483 * remote.c (PACKET_vFile_fstat): New enum value.
9484 (remote_protocol_features): Register the "vFile:fstat" feature.
9485 (remote_hostio_fstat): New function.
9486 (remote_bfd_iovec_stat): Use the above.
9487 (_initialize_remote): Register new "set/show remote
9488 hostio-fstat-packet" command.
9489 * symfile.c (separate_debug_file_exists): Update comment.
9490 * NEWS: Announce new vFile:fstat packet.
9492 2015-03-11 Gary Benson <gbenson@redhat.com>
9494 * common/common-remote-fileio.h: New file.
9495 * common/common-remote-fileio.c: Likewise.
9496 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9497 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9498 (COMMON_OBS): Add common-remote-fileio.o.
9499 (common-remote-fileio.o): New rule.
9500 * remote-fileio.h (common-remote-fileio.h): New include.
9501 * remote-fileio.c (gdb/fileio.h): Do not include.
9502 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9503 (remote_fileio_to_fio_uint): Likewise.
9504 (remote_fileio_to_fio_time): Likewise.
9505 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9506 (remote_fileio_to_fio_mode): Likewise.
9507 (remote_fileio_to_fio_ulong): Likewise.
9508 (remote_fileio_to_fio_stat): Likewise.
9510 2015-03-11 Andy Wingo <wingo@igalia.com>
9512 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9513 we were checking the cached type, not the cached dynamic type.
9515 2015-03-11 Andy Wingo <wingo@igalia.com>
9517 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9518 other strings, as these are on the GC'd heap, and will be
9519 collected along with the smob.
9521 2015-03-11 Andy Wingo <wingo@igalia.com>
9523 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9524 (objfile_functions): Bind gdbscm_objfile_progspace to
9526 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9528 2015-03-11 Andy Wingo <wingo@igalia.com>
9530 * guile/guile.c (_initialize_guile): Disable automatic
9531 finalization, if Guile offers us that possibility.
9532 * guile/guile.c (call_initialize_gdb_module):
9533 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9534 finalizers in appropriate places.
9535 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9536 scm_set_automatic_finalization_enabled.
9537 * configure: Regenerated.
9539 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9541 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9544 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9546 * s390-linux-nat.c (struct arch_lwp_info): New.
9547 (s390_fix_watch_points): Rename to...
9548 (s390_prepare_to_resume): ...this. Skip the PER info update
9549 unless the watch points have changed.
9550 (s390_refresh_per_info, s390_new_thread): New functions.
9551 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9552 s390_fix_watch_points.
9553 (s390_remove_watchpoint): Likewise.
9554 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9555 Register s390_prepare_to_resume.
9557 2015-03-09 Pedro Alves <palves@redhat.com>
9560 2015-03-07 Pedro Alves <palves@redhat.com>
9561 * common/gdb_socket.h: New file.
9562 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9564 (net_open): Use union gdb_sockaddr_u.
9566 2015-03-07 Pedro Alves <palves@redhat.com>
9568 * configure.ac (build_warnings): Move -Wmissing-prototypes
9569 -Wdeclaration-after-statement -Wmissing-parameter-type
9570 -Wold-style-declaration -Wold-style-definition to the C-specific
9572 * configure: Regenerate.
9574 2015-03-07 Pedro Alves <palves@redhat.com>
9576 * common/gdb_socket.h: New file.
9577 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9579 (net_open): Use union gdb_sockaddr_u.
9581 2015-03-07 Pedro Alves <palves@redhat.com>
9583 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9584 (exceptions_state_mc_action_iter)
9585 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9587 [__cplusplus] (try_scope_depth): New global.
9588 [__cplusplus] (exception_try_scope_entry)
9589 (exception_try_scope_exit, gdb_exception_sliced_copy)
9590 (exception_rethrow): New functions.
9591 (throw_exception): In C++ mode, throw
9592 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9593 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9594 (throw_it): In C++ mode, use try_scope_depth.
9595 * common/common-exceptions.h [!__cplusplus]
9596 (exceptions_state_mc_action_iter)
9597 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9599 [__cplusplus] (exception_try_scope_entry)
9600 (exception_try_scope_exit, exception_rethrow): Declare.
9601 [__cplusplus] (struct exception_try_scope): New struct.
9602 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9604 (struct gdb_exception_RETURN_MASK_ALL)
9605 (struct gdb_exception_RETURN_MASK_ERROR)
9606 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9608 2015-03-07 Pedro Alves <palves@redhat.com>
9610 * main.c (handle_command_errors): Remove volatile qualifier from
9613 2015-03-07 Pedro Alves <palves@redhat.com>
9615 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9617 * gdbtypes.c (safe_parse_type): Remove empty line.
9618 (types_deeply_equal):
9619 * guile/scm-frame.c (gdbscm_frame_name):
9620 * linux-thread-db.c (find_new_threads_once):
9621 * python/py-breakpoint.c (bppy_get_commands):
9622 * record-btrace.c (record_btrace_insert_breakpoint)
9623 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9624 (record_btrace_start_replaying): Adjust to avoid code between TRY
9627 2015-03-07 Pedro Alves <palves@redhat.com>
9629 * common/common-exceptions.c (struct catcher) <exception>: No
9630 longer a pointer to volatile exception. Now an exception value.
9631 <mask>: Delete field.
9632 (exceptions_state_mc_init): Remove all parameters. Adjust.
9633 (exceptions_state_mc): No longer pop the catcher here.
9634 (exceptions_state_mc_catch): New function.
9635 (throw_exception): Adjust.
9636 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9638 (exceptions_state_mc_catch): Declare.
9639 (TRY_CATCH): Rename to ...
9640 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9641 (CATCH, END_CATCH): New.
9642 All callers adjusted.
9644 2015-03-07 Tom Tromey <tromey@redhat.com>
9646 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9648 2015-03-07 Pedro Alves <palves@redhat.com>
9650 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9651 (amd64_epilogue_frame_cache): Normal exception handling code.
9652 * break-catch-throw.c (check_status_exception_catchpoint)
9653 (re_set_exception_catchpoint): Ditto.
9654 * cli/cli-interp.c (safe_execute_command):
9655 * cli/cli-script.c (script_from_file): Ditto.
9656 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9658 * compile/compile-object-run.c (compile_object_run): Ditto.
9659 * cp-abi.c (baseclass_offset): Ditto.
9660 * cp-valprint.c (cp_print_value): Ditto.
9661 * exceptions.c (catch_exceptions_with_msg):
9662 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9663 * frame.c (get_frame_address_in_block_if_available): Ditto.
9664 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9665 (i386_sigtramp_frame_cache): Ditto.
9666 * infcmd.c (post_create_inferior): Ditto.
9667 * linespec.c (parse_linespec, find_linespec_symbols):
9668 * p-valprint.c (pascal_object_print_value): Ditto.
9669 * parse.c (parse_expression_for_completion): Ditto.
9670 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9671 * remote.c (remote_get_noisy_reply): Ditto.
9672 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9673 * solib-svr4.c (solib_svr4_r_map): Ditto.
9675 2015-03-06 Gary Benson <gbenson@redhat.com>
9677 * common/common-utils.h (startswith): New inline function.
9678 All places where this logic was used updated to use the above.
9680 2015-03-05 Pedro Alves <palves@redhat.com>
9683 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9684 after reading the breakpoint's shadow memory.
9686 2015-03-05 Mark Kettenis <kettenis@gnu.org>
9688 * hppabsd-nat.c: Remove file.
9689 * hppaobsd-nat.c: New file.
9690 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9692 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9695 2015-03-04 Pedro Alves <palves@redhat.com>
9697 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9698 (target_decr_pc_after_break): Delete declaration.
9699 * target.c (default_target_decr_pc_after_break)
9700 (target_decr_pc_after_break): Delete.
9701 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9702 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9703 * linux-thread-db.c (check_event): Likewise.
9704 * infrun.c (adjust_pc_after_break): Likewise.
9705 * darwin-nat.c (cancel_breakpoint): Likewise.
9706 * aix-thread.c (aix_thread_wait): Likewise.
9707 * target-delegates.c: Regenerate.
9709 2015-03-04 Pedro Alves <palves@redhat.com>
9711 * linux-nat.c (save_sigtrap): Check for breakpoints before
9712 checking watchpoints.
9713 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9714 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9715 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9716 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9717 (linux_nat_stopped_by_sw_breakpoint)
9718 (linux_nat_supports_stopped_by_sw_breakpoint)
9719 (linux_nat_stopped_by_hw_breakpoint)
9720 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9721 (linux_nat_wait_1): Don't re-increment the PC if relying on
9722 SIGTRAP's siginfo->si_code.
9723 (linux_nat_add_target): Install new target methods.
9724 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9725 offset if the target already adjusted the PC.
9726 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9727 (GDB_ARCH_TRAP_BRKPT): New.
9728 (TRAP_HWBKPT): Define if not already defined.
9730 2015-03-04 Pedro Alves <palves@redhat.com>
9732 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9733 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9735 <stop_reason>: New field.
9736 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9737 (packet_set_cmd_state): New function.
9738 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9740 (remote_query_supported): If not disabled with the corresponding
9741 "set remote foo-packet" command, report support for the swbreak
9742 and hwbreak features.
9743 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9745 <stop_reason>: New field.
9746 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9747 (remote_wait_as): Adjust.
9748 (remote_stopped_by_sw_breakpoint)
9749 (remote_supports_stopped_by_sw_breakpoint)
9750 (remote_stopped_by_hw_breakpoint)
9751 (remote_supports_stopped_by_hw_breakpoint): New functions.
9752 (remote_stopped_by_watchpoint): New function.
9753 (init_remote_ops): Install them.
9754 (_initialize_remote): Register new "set/show remote
9755 swbreak-feature-packet" and "set/show remote
9756 swbreak-feature-packet" commands.
9758 2015-03-04 Pedro Alves <palves@redhat.com>
9760 * btrace.h: Include target/waitstatus.h.
9761 (struct btrace_thread_info) <stop_reason>: New field.
9762 * record-btrace.c (record_btrace_step_thread): Use
9763 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9764 (record_btrace_decr_pc_after_break): Delete.
9765 (record_btrace_stopped_by_sw_breakpoint)
9766 (record_btrace_supports_stopped_by_sw_breakpoint)
9767 (record_btrace_stopped_by_hw_breakpoint)
9768 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9769 (init_record_btrace_ops): Install them.
9770 * record-full.c (record_full_hw_watchpoint): Delete and replace
9772 (record_full_stop_reason): ... this throughout.
9773 (record_full_exec_insn): Adjust.
9774 (record_full_wait_1): Adjust. No longer re-increment the PC.
9775 (record_full_wait_1): Adjust. Use
9776 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9777 (record_full_stopped_by_watchpoint): Adjust.
9778 (record_full_stopped_by_sw_breakpoint)
9779 (record_full_supports_stopped_by_sw_breakpoint)
9780 (record_full_supports_stopped_by_sw_breakpoint)
9781 (record_full_stopped_by_hw_breakpoint)
9782 (record_full_supports_stopped_by_hw_breakpoint): New functions.
9783 (init_record_full_ops, init_record_full_core_ops): Install them.
9784 * record.c (record_check_stopped_by_breakpoint): New function.
9785 * record.h: Include target/waitstatus.h.
9786 (record_check_stopped_by_breakpoint): New declaration.
9788 2015-03-04 Pedro Alves <palves@redhat.com>
9790 enum lwp_stop_reason -> enum target_stop_reason
9791 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9792 (linux_nat_stopped_by_watchpoint, status_callback)
9793 (linux_nat_wait_1): Adjust.
9794 * linux-nat.h (enum lwp_stop_reason): Delete.
9795 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9796 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9797 * target/waitstatus.h (enum target_stop_reason): New.
9799 2015-03-04 Pedro Alves <palves@redhat.com>
9801 * breakpoint.c (need_moribund_for_location_type): New function.
9802 (bpstat_stop_status): Don't skipping checking moribund locations
9803 of breakpoint types which the target tell caused a stop.
9804 (program_breakpoint_here_p): New function, factored out from ...
9805 (bp_loc_is_permanent): ... this.
9806 (update_global_location_list): Don't create a moribund location if
9807 the target supports reporting stops of the type of the removed
9809 * breakpoint.h (program_breakpoint_here_p): New declaration.
9810 * infrun.c (adjust_pc_after_break): Return early if the target has
9811 already adjusted the PC. Add comments.
9812 (handle_signal_stop): If nothing explains a signal, and the target
9813 tells us the stop was caused by a software breakpoint, check if
9814 there's a breakpoint instruction in the memory. If so, adjust the
9815 PC before presenting the stop to the user. Otherwise, ignore the
9816 trap. If nothing explains a signal, and the target tells us the
9817 stop was caused by a hardware breakpoint, ignore the trap.
9818 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9819 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9820 to_supports_stopped_by_hw_breakpoint>: New fields.
9821 (target_stopped_by_sw_breakpoint)
9822 (target_supports_stopped_by_sw_breakpoint)
9823 (target_stopped_by_hw_breakpoint)
9824 (target_supports_stopped_by_hw_breakpoint): Define.
9825 * target-delegates.c: Regenerate.
9827 2015-03-04 Pedro Alves <palves@redhat.com>
9829 * infrun.c (follow_fork_inferior): Use the whole of the
9830 inferior_ptid and pending_follow.related_pid ptids instead of
9831 building ptids from the process components. Adjust verbose output
9832 to use target_pid_to_str.
9833 * linux-nat.c (linux_child_follow_fork): Use the whole of the
9834 inferior_ptid and pending_follow.related_pid ptids instead of
9835 building ptids from the process components.
9837 2015-03-04 Mark Kettenis <kettenis@gnu.org>
9839 * inf-ptrace.c [PT_GET_PROCESS_STATE]
9840 (inf_ptrace_insert_fork_catchpoint): New function.
9841 (inf_ptrace_remove_fork_catchpoint): New function.
9842 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
9844 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9846 * s390-linux-tdep.c (s390_register_name): Return empty string
9847 instead of NULL for registers that shouldn't be visible.
9849 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9851 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
9852 XML file for 64-bit targets.
9854 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
9856 * target.h (find_default_create_inferior): Remove declaration.
9857 (find_default_attach): Likewise.
9859 2015-03-03 Pedro Alves <palves@redhat.com>
9861 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
9862 Use ptid_get_pid to get the overall process id when resuming all
9865 2015-03-03 Pedro Alves <palves@redhat.com>
9867 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
9868 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
9869 * inf-ptrace.c (get_ptrace_pid): New function.
9870 (inf_ptrace_resume): Use it.
9871 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
9874 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9876 * nat/linux-btrace.c: Include sys/utsname.h.
9877 (linux_determine_kernel_ptr_bits): New.
9878 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
9879 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
9882 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9884 * btrace.c (ftrace_update_function): Treat return as tailcall for
9885 "_dl_runtime_resolve".
9887 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9889 * btrace.h (btrace_function) <lbegin, lend>: Remove.
9890 * btrace.c (ftrace_debug): Do not print the line range.
9891 (ftrace_skip_file, ftrace_update_lines): Remove.
9892 (ftrace_new_function): Remove lbegin and lend initialization.
9893 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
9894 * record-btrace.c (btrace_compute_src_line_range): New.
9895 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
9897 2015-03-02 Pedro Alves <palves@redhat.com>
9899 * infrun.c (follow_exec): Delete all threads of the process except
9900 the event thread. Extended comments.
9902 2015-03-02 Joel Brobecker <brobecker@adacore.com>
9904 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
9906 2015-03-02 Joel Brobecker <brobecker@adacore.com>
9908 * utils.h: Remove <stdbool.h> #include.
9909 (producer_is_gcc): Change return type to "int".
9910 * utils.c (producer_is_gcc): Change return type to int.
9911 Return 1 instead of true, and 0 instead of false.
9912 Adjust function documentation accordingly.
9914 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9916 * s390-linux-nat.c (have_regset_vxrs): New static variable.
9917 (s390_linux_fetch_inferior_registers): Handle vector registers, if
9919 (s390_linux_store_inferior_registers): Likewise.
9920 (s390_get_hwcap): Remove function. Embed its logic...
9921 (s390_read_description): ...here. Yield a target description with
9922 vector registers if applicable.
9923 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
9924 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
9925 "features/s390x-tevx-linux64.c".
9926 (struct gdbarch_tdep) <v0_full_regnum>: New field.
9927 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
9928 for "GNU/Linux-specific registers".
9929 (s390_dwarf_reg_r0l): New enum value.
9930 (s390_dwarf_reg_to_regnum): Support vector registers.
9931 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
9932 of GPR lower halves.
9933 (regnum_is_vxr_full): New function.
9934 (s390_register_name): New function.
9935 (s390_pseudo_register_name): Handle v0-v15, which are composed of
9936 f0-f15 and v0l-v15l.
9937 (s390_pseudo_register_type): Likewise.
9938 (s390_pseudo_register_read): Likewise.
9939 (s390_pseudo_register_write): Likewise.
9940 (s390_value_from_register): Account for the fact that values are
9941 placed left-justified in vector registers.
9942 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
9943 the vector reggroup and omit them from the general reggroup.
9944 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
9945 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
9946 (s390_iterate_over_regset_sections): Add iterations for the two
9948 (s390_core_read_description): Yield a target description with
9949 vector registers if applicable.
9950 (s390_gdbarch_init): Handle target descriptions with vector
9951 registers. Add "register_name" gdbarch method.
9952 (_initialize_s390_tdep): Call new tdesc initialization functions.
9953 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
9954 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
9955 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
9956 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
9957 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
9958 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
9959 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
9960 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
9961 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
9962 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
9963 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
9964 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
9965 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
9966 (S390_NUM_REGS): Adjust value.
9967 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
9968 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
9969 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
9970 * NEWS: Announce S/390 vector register support.
9972 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9974 * features/s390-tevx-linux64.xml: New file.
9975 * features/s390-vx-linux64.xml: New file.
9976 * features/s390-vx.xml: New file.
9977 * features/s390x-tevx-linux64.xml: New file.
9978 * features/s390x-vx-linux64.xml: New file.
9979 * features/Makefile (WHICH): Add s390-vx-linux64,
9980 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
9981 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
9982 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
9984 * features/s390-tevx-linux64.c: New generated file.
9985 * features/s390-vx-linux64.c: Likewise.
9986 * features/s390x-tevx-linux64.c: Likewise.
9987 * features/s390x-vx-linux64.c: Likewise.
9988 * regformats/s390-tevx-linux64.dat: Likewise.
9989 * regformats/s390-vx-linux64.dat: Likewise.
9990 * regformats/s390x-tevx-linux64.dat: Likewise.
9991 * regformats/s390x-vx-linux64.dat: Likewise.
9993 2015-02-28 Doug Evans <xdje42@gmail.com>
9995 * symtab.h (struct symtab) <next>: Fix comment.
9997 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
9999 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10002 2015-02-27 Pedro Alves <palves@redhat.com>
10004 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10006 2015-02-27 Pedro Alves <palves@redhat.com>
10008 * common/common-exceptions.h (exception_none): Declare.
10009 * common/common-exceptions.c (exception_none): Moved from
10011 (exceptions_state_mc_init): Use exception_none.
10012 * exceptions.c (exception_none): Move to
10013 common/common-exceptions.c.
10014 * exceptions.h (exception_none): Move to
10015 common/common-exceptions.h.
10017 2015-02-27 Pedro Alves <palves@redhat.com>
10019 * main.c (catch_command_errors, catch_command_errors_const):
10020 Remove 'mask' argument. Adjust.
10021 (captured_main): Adjust callers.
10023 2015-02-27 Pedro Alves <palves@redhat.com>
10025 * python/python-internal.h: Include "extension-priv.h".
10027 2015-02-27 Pedro Alves <palves@redhat.com>
10029 * breakpoint.h (enum print_stop_action): Move further up in the
10032 2015-02-27 Pedro Alves <palves@redhat.com>
10034 * gdbarch.sh: Include regcache.h.
10035 * gdbarch.h: Regenerate.
10037 2015-02-27 Pedro Alves <palves@redhat.com>
10039 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10040 Remove duplicate const.
10041 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10044 2015-02-27 Pedro Alves <palves@redhat.com>
10046 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10047 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10048 * features/feature_to_c.sh: Tag the generated xml_builtin array
10049 with extern const in C++ mode.
10051 2015-02-27 Tom Tromey <tromey@redhat.com>
10053 * minidebug.c (struct lzma_stream): Rename to ...
10054 (struct gdb_lzma_stream): ... this.
10055 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10057 2015-02-27 Pedro Alves <palves@redhat.com>
10059 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10061 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10062 (mi_cmd_stack_list_variables): Use it.
10064 2015-02-27 Pedro Alves <palves@redhat.com>
10066 * x86-linux-nat.c (u_debugreg_offset): New function.
10067 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10069 2015-02-27 Pedro Alves <palves@redhat.com>
10071 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10073 Include break-common.h.
10075 2015-02-27 Tom Tromey <tromey@redhat.com>
10076 Pedro Alves <palves@redhat.com>
10078 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10079 local used to iterate over enums.
10080 * completer.c (signal_completer): Likewise.
10081 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10082 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10083 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10084 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10085 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10086 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10087 * tui-wingeneral.c (tui_refresh_all): Likewise.
10089 2015-02-27 Pedro Alves <palves@redhat.com>
10091 * target.h: Include "infrun.h".
10093 2015-02-27 Pedro Alves <palves@redhat.com>
10095 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10097 2015-02-27 Pedro Alves <palves@redhat.com>
10099 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10101 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10103 2015-02-27 Pedro Alves <palves@redhat.com>
10105 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10106 cli_mld_erase_entire_line, and make it extern "C".
10107 * common/common-defs.h (EXTERN_C): New.
10108 * completer.c (_rl_completion_prefix_display_length)
10109 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10110 out of gdb_display_match_list_1.
10111 (_rl_qsort_string_compare): Move declaration out of
10112 gdb_display_match_list_1, and make it extern "C".
10113 * defs.h (re_comp): Use EXTERN_C.
10114 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10115 and make it extern "C".
10116 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10117 and make it extern "C".
10118 (main): Move declaration out of maintenance_set_profile_cmd.
10119 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10122 2015-02-27 Pedro Alves <palves@redhat.com>
10124 * python/python.c (GdbMethods): Rename to ...
10125 (python_GdbMethods): ... this and make extern.
10126 (GdbModuleDef): Rename to ...
10127 (python_GdbModuleDef): ... this and make extern.
10129 2015-02-27 Pedro Alves <palves@redhat.com>
10131 * record-btrace.c (set_record_btrace_cmdlist)
10132 (show_record_btrace_cmdlist): Remove redefinitions.
10134 2015-02-27 Tom Tromey <tromey@redhat.com>
10135 Pedro Alves <palves@redhat.com>
10137 * dwarf2-frame.c (enum cfa_how_kind, struct
10138 dwarf2_frame_state_reg_info): Move out of struct
10139 dwarf2_frame_state.
10140 * dwarf2read.c (struct tu_stats): Move out of struct
10141 dwarf2_per_objfile.
10142 (struct file_entry): Move out of struct line_header.
10143 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10144 typedef_field_list): Move out of struct field_info.
10145 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10146 Move out of struct dynamic_prop.
10147 (union type_owner, union field_location, struct field, struct
10148 range_bounds, union type_specific): Move out of struct main_type.
10149 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10150 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10151 (struct call_site_target, union call_site_parameter_u, struct
10152 call_site_parameter): Move out of struct call_site.
10153 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10155 (enum srcdest_kind): Move out of struct srcdest.
10156 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10157 * prologue-value.h (enum prologue_value_kind): Move out of struct
10159 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10161 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10162 out of struct field_info.
10163 * symfile.h (struct other_sections): Move out of struct
10165 * symtab.c (struct symbol_cache_slot): Move out struct
10166 block_symbol_cache.
10167 * target-descriptions.c (enum tdesc_type_kind): Move out of
10168 typedef struct tdesc_type.
10169 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10170 struct tui_line_or_address.
10171 * value.c (enum internalvar_kind, union internalvar_data): Move
10172 out of struct internalvar.
10173 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10176 2015-02-27 Tom Tromey <tromey@redhat.com>
10177 Pedro Alves <palves@redhat.com>
10179 Rename symbols whose names are reserved C++ keywords throughout.
10181 2015-02-27 Pedro Alves <palves@redhat.com>
10183 * Makefile.in (COMPILER): New, get it from autoconf.
10184 (COMPILE.pre, CC_LD): Use COMPILER.
10185 (CXX): Get from autoconf instead.
10186 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10187 * acinclude.m4: Include build-with-cxx.m4.
10188 * build-with-cxx.m4: New file.
10189 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10190 Disable -Werror by default if building in C++ mode.
10191 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10192 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10193 Run supported-warning-flags tests with the C++ compiler.
10194 Save/restore CXXFLAGS too.
10195 * configure: Regenerate.
10197 2015-02-27 Pedro Alves <palves@redhat.com>
10199 * libiberty.m4: New file.
10200 * acinclude.m4: Include libiberty.m4.
10201 * configure.ac: Call libiberty_INIT.
10202 * config.in, configure: Regenerate.
10204 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10206 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10207 31-bit targets, but 64-bit targets as well.
10208 (s390_gnu_triplet_regexp): New function.
10209 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10210 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10213 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10215 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10216 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10217 from CONTEXT_DEBUGGER.
10219 2015-02-26 Doug Evans <dje@google.com>
10221 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10223 (set_type_vptr_fieldno): Ditto.
10224 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10225 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10227 2015-02-26 Pedro Alves <palves@redhat.com>
10229 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10230 * complaints.c (vcomplaint): Pass argument FMT directly to
10231 printf-like functions instead of complaint->fmt.
10232 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10233 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10234 * compile/compile-loc2c.c (pushf, unary, binary): Add
10236 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10238 (BINARY): Pass string literal as format string to 'binary'.
10239 * compile/compile-object-load.c (link_callbacks_einfo): Add
10241 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10243 2015-02-26 Pedro Alves <palves@redhat.com>
10245 * windows-termcap.c: Rename to ...
10246 * stub-termcap.c: ... this. Adjust header line.
10247 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10249 * configure: Regenerate.
10250 * configure.ac: Refer to stub-termcap.o instead of
10252 * gdb_curses.h: Mention stub-termcap.c instead of
10255 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10257 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10258 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10260 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10262 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10264 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10266 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10267 bfd_canonicalize_symtab.
10269 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10271 * amd64fbsd-nat.c: Include sys/user.h.
10272 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10273 instead of KERN_PS_STRINGS to locate the signal trampoline.
10274 * i386fbsd-nat.c: Include sys/user.h.
10275 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10276 instead of KERN_PS_STRINGS to locate the signal trampoline.
10277 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10278 (amd64fbsd_sigtramp_p): New.
10279 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10280 longer set default values.
10281 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10282 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10283 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10284 (i386fbsd_freebsd4_sigtramp_start)
10285 (i386fbsd_freebsd4_sigtramp_middle)
10286 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10287 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10288 (i386fbsd_sigtramp_p): New.
10289 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10290 longer set default values.
10291 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10293 2015-02-25 John Baldwin <jhb@freebsd.org>
10295 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10296 get_frame_register instead of frame_unwind_register_unsigned.
10298 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10301 * compile/compile-c-support.c (c_compute_program): Change // comment.
10302 * compile/compile-object-load.c (setup_sections): Change // comment.
10304 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10307 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10309 2015-02-23 Pedro Alves <palves@redhat.com>
10311 * remote.c (skip_to_semicolon): New function.
10312 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10313 special case the stop reasons that look like hex numbers
10314 upfront. Instead handle real register numbers after matching
10315 all the known stop reasons.
10317 2015-02-21 Doug Evans <dje@google.com>
10319 PR c++/17976, symtab/17821
10320 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10321 is_in_anonymous. All callers updated.
10322 (find_symbol_in_baseclass): Ditto.
10323 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10324 for symbols in an anonymous namespace.
10325 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10326 DW_AT_name directly.
10327 (dwarf2_name): Convert missing namespace name to
10328 CP_ANONYMOUS_NAMESPACE_STR.
10330 2015-02-20 Pedro Alves <palves@redhat.com>
10332 * linux-nat.c (linux_handle_extended_wait): Call
10333 thread_db_notice_clone whenever a new clone LWP is detected.
10334 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10336 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10337 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10338 (linux_unstop_all_lwps): Declare.
10339 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10340 (thread_get_info_callback): Delete.
10341 (thread_from_lwp): Use td_thr_get_info and record_thread.
10342 (thread_db_attach_lwp): Delete.
10343 (thread_db_notice_clone): New function.
10344 (try_thread_db_load_1): If /proc is mounted and shows the
10345 process'es task list, walk over all LWPs and call thread_from_lwp
10346 instead of relying on td_ta_thr_iter.
10347 (attach_thread): Don't call check_thread_signals here. Split the
10348 tail part of the function (which adds the thread to the core GDB
10349 thread list) to ...
10350 (record_thread): ... this function. Call check_thread_signals
10352 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10353 call thread_from_lwp.
10354 (thread_db_update_thread_list): Rename to ...
10355 (thread_db_update_thread_list_org): ... this.
10356 (thread_db_update_thread_list): New function.
10357 (thread_db_find_thread_from_tid): Delete.
10358 (thread_db_get_ada_task_ptid): Simplify.
10359 * nat/linux-procfs.c: Include <sys/stat.h>.
10360 (linux_proc_task_list_dir_exists): New function.
10361 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10363 2015-02-20 Pedro Alves <palves@redhat.com>
10365 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10366 main LWP. Handle the case of waitpid returning 0 if we're already
10367 attached to the LWP. Don't set the LWP's last_resume_kind to
10368 resume_stop if we already knew about the LWP.
10369 (linux_nat_filter_event): Add debug logs.
10371 2015-02-20 Pedro Alves <palves@redhat.com>
10373 * target.h (forward_target_decr_pc_after_break): Delete
10376 2015-02-20 Pedro Alves <palves@redhat.com>
10379 * linux-thread-db.c (thread_get_info_callback): Return early if
10380 the thread's lwp id is -1.
10382 2015-02-20 Joel Brobecker <brobecker@adacore.com>
10386 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
10388 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10389 (dtrace_get_probes) Change type of variable 'dof'.
10391 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10393 PR breakpoints/16812
10394 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10395 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10396 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10398 2015-02-19 David Taylor <dtaylor@emc.com>
10400 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10402 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10404 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10406 (tui_putc): Don't call tui_handle_resize_during_io.
10407 (tui_getc): Likewise.
10408 (tui_mld_getc): Likewise.
10409 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10410 (tui_sigwinch_token): New static variable.
10411 (tui_initialize_win): Adjust documentation. Set
10412 tui_sigwinch_token.
10413 (tui_async_resize_screen): New asynchronous callback.
10414 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10415 invoke tui_async_resize_screen.
10417 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10419 * configure: Regenerated.
10420 * configure.ac: Use GDB_AC_TRANSFORM.
10421 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10422 * acinclude.m4: sinclude transform.m4.
10423 * transform.m4: New file.
10424 (GDB_AC_TRANSFORM): New macro.
10426 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10428 * NEWS: Announce the support for DTrace SDT probes.
10430 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10432 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10433 (amd64_dtrace_parse_probe_argument): New function.
10434 (amd64_dtrace_probe_is_enabled): Likewise.
10435 (amd64_dtrace_enable_probe): Likewise.
10436 (amd64_dtrace_disable_probe): Likewise.
10437 (amd64_linux_init_abi): Register the
10438 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10439 `gdbarch_dtrace_disable_probe' and
10440 `gdbarch_dtrace_probe_is_enabled' hooks.
10441 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10442 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10443 (amd64_dtrace_enable_probe_sequence): Likewise.
10444 (amd64_dtrace_disable_probe_sequence): Likewise.
10446 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10448 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10449 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10450 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10452 * Makefile.in (SFILES): dtrace-probe.c added.
10453 * configure: Regenerate.
10454 * dtrace-probe.c: New file.
10455 (SHT_SUNW_dof): New constant.
10456 (dtrace_probe_type): New enum.
10457 (dtrace_probe_arg): New struct.
10458 (dtrace_probe_arg_s): New typedef.
10459 (struct dtrace_probe_enabler): New struct.
10460 (dtrace_probe_enabler_s): New typedef.
10461 (dtrace_probe): New struct.
10462 (dtrace_probe_is_linespec): New function.
10463 (dtrace_dof_sect_type): New enum.
10464 (dtrace_dof_dofh_ident): Likewise.
10465 (dtrace_dof_encoding): Likewise.
10466 (DTRACE_DOF_ENCODE_LSB): Likewise.
10467 (DTRACE_DOF_ENCODE_MSB): Likewise.
10468 (dtrace_dof_hdr): New struct.
10469 (dtrace_dof_sect): Likewise.
10470 (dtrace_dof_provider): Likewise.
10471 (dtrace_dof_probe): Likewise.
10472 (DOF_UINT): New macro.
10473 (DTRACE_DOF_PTR): Likewise.
10474 (DTRACE_DOF_SECT): Likewise.
10475 (dtrace_process_dof_probe): New function.
10476 (dtrace_process_dof): Likewise.
10477 (dtrace_build_arg_exprs): Likewise.
10478 (dtrace_get_arg): Likewise.
10479 (dtrace_get_probes): Likewise.
10480 (dtrace_get_probe_argument_count): Likewise.
10481 (dtrace_can_evaluate_probe_arguments): Likewise.
10482 (dtrace_evaluate_probe_argument): Likewise.
10483 (dtrace_compile_to_ax): Likewise.
10484 (dtrace_probe_destroy): Likewise.
10485 (dtrace_gen_info_probes_table_header): Likewise.
10486 (dtrace_gen_info_probes_table_values): Likewise.
10487 (dtrace_probe_is_enabled): Likewise.
10488 (dtrace_probe_ops): New variable.
10489 (info_probes_dtrace_command): New function.
10490 (_initialize_dtrace_probe): Likewise.
10491 (dtrace_type_name): Likewise.
10493 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10495 * gdbarch.sh (dtrace_parse_probe_argument): New.
10496 (dtrace_probe_is_enabled): Likewise.
10497 (dtrace_enable_probe): Likewise.
10498 (dtrace_disable_probe): Likewise.
10499 * gdbarch.c: Regenerate.
10500 * gdbarch.h: Regenerate.
10502 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10504 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10505 stap_probe_ops for `enable_probe' and `disable_probe'.
10506 * probe.c (enable_probes_command): New function.
10507 (disable_probes_command): Likewise.
10508 (_initialize_probe): Define the cli commands `enable probe' and
10510 (parse_probe_linespec): New function.
10511 (info_probes_for_ops): Use parse_probe_linespec.
10512 * probe.h (probe_ops): New hooks `enable_probe' and
10515 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10517 * probe.c (compute_probe_arg): Moved from stap-probe.c
10518 (compile_probe_arg): Likewise.
10519 (probe_funcs): Likewise.
10520 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10521 (compile_probe_arg): Likewise.
10522 (probe_funcs): Likewise.
10524 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10526 * probe.c (print_ui_out_not_applicables): New function.
10527 (exists_probe_with_pops): Likewise.
10528 (info_probes_for_ops): Do not include column headers for probe
10529 types for which no probe has been actually found on any object.
10530 Also invoke `print_ui_out_not_applicables' in order to match the
10531 column rows with the header when probes of several types are
10533 Print the "Type" column.
10534 * probe.h (probe_ops): Added a new probe operation `type_name'.
10535 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10536 (stap_type_name): New function.
10538 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10540 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10541 (key_is_command_char): Delete.
10543 2015-02-17 Pedro Alves <palves@redhat.com>
10545 * tui/tui.c (tui_enable): Resize windows before anything
10546 might show a window.
10548 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10551 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10552 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10554 * aarch64-tdep.h (tdesc_aarch64): Declare.
10556 2015-02-12 Mark Wielaard <mjw@redhat.com>
10558 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10560 2015-02-13 Doug Evans <dje@google.com>
10562 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10563 anonymous_namespace to is_in_anonymous for consistency with the rest
10565 (cp_lookup_bare_symbol): Fix typo in comment.
10566 (cp_search_static_and_baseclasses): Ditto.
10567 (search_symbol_list): Use vertical space in comment better.
10568 (reset_directive_searched): Ditto. Fix typo.
10569 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10571 2015-02-13 Yao Qi <yao.qi@arm.com>
10573 * MAINTAINERS: Update my email address.
10575 2015-02-12 Doug Evans <dje@google.com>
10577 * symtab.c (completion_list_add_name): Fix memory leak.
10579 2015-02-12 Doug Evans <dje@google.com>
10581 * completer.c (complete_line): Remove incorrect comment.
10583 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10585 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10586 (py_print_frame): Use RETURN_MASK_ERROR.
10588 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10590 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10591 function comment. Wrap all function that can throw in cleanups.
10592 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10595 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10597 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10598 Remove the error label.
10600 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10602 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10603 with goto first, indent the former else codepath left. Put variable
10604 'elided' to a new inner block.
10606 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10608 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10610 2015-02-11 Pedro Alves <palves@redhat.com>
10612 * xcoffread.c (within_function): Delete.
10614 2015-02-11 Tom Tromey <tromey@redhat.com>
10615 Pedro Alves <palves@redhat.com>
10617 * breakpoint.c (base_breakpoint_ops): Delete.
10618 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10619 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10620 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10621 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10622 * python/py-arch.c (arch_object_type): Make extern.
10623 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10624 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10625 * python/py-cmd.c (cmdpy_object_type): Make extern.
10626 * python/py-continueevent.c (continue_event_object_type)
10627 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10628 parameter. Update all callers.
10629 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10630 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10631 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10632 * python/py-function.c (fnpy_object_type): Make extern.
10633 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10634 * python/py-infevents.c (call_pre_event_object_type)
10635 (inferior_call_post_event_object_type).
10636 (memory_changed_event_object_type): Make extern.
10637 * python/py-infthread.c (thread_object_type): Make extern.
10638 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10639 * python/py-linetable.c (linetable_entry_object_type)
10640 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10641 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10642 (clear_objfiles_event_object_type): Make extern.
10643 * python/py-objfile.c (objfile_object_type): Make extern.
10644 * python/py-param.c (parmpy_object_type): Make extern.
10645 * python/py-progspace.c (pspace_object_type): Make extern.
10646 * python/py-signalevent.c (signal_event_object_type): Make extern.
10647 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10648 * python/py-type.c (type_object_type, field_object_type)
10649 (type_iterator_object_type): Make extern.
10650 * python/python.c (python_extension_script_ops)
10651 (python_extension_ops): Make extern.
10652 * stap-probe.c (stap_probe_ops): Make extern.
10654 2015-02-11 Pedro Alves <pedro@codesourcery.com>
10656 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10657 because the event thread is not the current thread.
10659 2015-02-11 Doug Evans <xdje42@gmail.com>
10661 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10662 been initialized yet, return NULL.
10664 2015-02-11 Doug Evans <dje@google.com>
10666 * symfile.h (new_symfile_objfile): Delete.
10667 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10668 All callers updated.
10670 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10672 * tui/tui-io.c (tui_handle_resize_during_io): Call
10673 tui_update_gdb_sizes() after resizing the screen.
10674 * tui/tui.c (tui_enable): Resize the terminal before
10675 calling tui_update_gdb_sizes().
10677 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10679 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10680 line before printing a newline.
10682 2015-02-11 Mark Wielaard <mjw@redhat.com>
10684 * utils.c (producer_is_gcc): Return true or false.
10686 2015-02-10 Mark Wielaard <mjw@redhat.com>
10688 * utils.h (producer_is_gcc): Change return type to bool. Add major
10690 * utils.c (producer_is_gcc): Likewise.
10691 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10692 * dwarf2read.c (check_producer): Likewise.
10694 2015-02-10 Pedro Alves <palves@redhat.com>
10696 * infrun.c (displaced_step_fixup): Switch to the event thread
10697 before calling gdbarch_displaced_step_fixup.
10699 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10701 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10703 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10705 * ada-varobj.c (ada_name_of_child): Constify parent.
10706 (ada_path_expr_of_child): Same.
10707 (ada_value_of_child): Same.
10708 (ada_type_of_child): Same.
10709 * c-varobj.c (c_is_path_expr_parent): Same.
10710 (c_describe_child): Same.
10711 (c_name_of_child): Same.
10712 (c_value_of_child): Same.
10713 (c_type_of_child): Same.
10714 (cplus_number_of_children): Same.
10715 (cplus_describe_child): Constify var.
10716 (cplus_name_of_child): Constify parent.
10717 (cplus_value_of_child): Same.
10718 (cplus_type_of_child): Same.
10719 * jv-varobj.c (java_name_of_child): Same.
10720 (java_value_of_child): Same.
10721 (java_type_of_child): Same.
10722 * varobj.c (value_of_child): Same.
10723 (varobj_default_is_path_expr_parent): Constify var, parent and return
10725 (varobj_get_path_expr): Constify var, modify path_expr through
10727 (install_new_value): Constify parent.
10728 (value_of_child): Constify parent.
10729 * varobj.h (struct varobj): Constify parent.
10730 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10732 (varobj_get_path_expr): Constify var.
10733 (varobj_get_path_expr_parent): Constify var and return value.
10735 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
10737 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10738 (arm_prologue_this_id): Move PC and SP limit checks to
10739 arm_prologue_unwind_stop_reason.
10740 (arm_prologue_unwind) <stop_reason> : Set to
10741 arm_prologue_unwind_stop_reason.
10743 2015-02-09 Mark Wielaard <mjw@redhat.com>
10745 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10746 DW_LANG_Fortran08 as language_fortran.
10748 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10751 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10752 of pointer against char.
10754 2015-02-09 Mark Wielaard <mjw@redhat.com>
10756 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10757 (c_type_print_modifier): Likewise.
10758 * dwarf2read.c (read_tag_atomic_type): New function.
10759 (read_type_die_1): Handle DW_TAG_atomic_type.
10760 * gdbtypes.c (make_atomic_type): New function.
10761 (recursive_dump_type): Handle TYPE_ATOMIC.
10762 * gdbtypes.h (enum type_flag_values): Renumber.
10763 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10764 (TYPE_ATOMIC): New macro.
10765 (make_atomic_type): Declare.
10767 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10769 * btrace.c (ftrace_find_call): Skip gaps.
10770 (ftrace_new_function): Initialize level.
10771 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10772 (ftrace_new_switch): Update
10774 (ftrace_new_gap): New.
10775 (ftrace_update_function): Create new function after gap.
10776 (btrace_compute_ftrace_bts): Create gap on error.
10777 (btrace_stitch_bts): Update parameters. Clear trace if it
10779 (btrace_stitch_trace): Update parameters. Update callers.
10780 (btrace_clear): Reset the number of gaps.
10781 (btrace_insn_get): Return NULL if the iterator points to a gap.
10782 (btrace_insn_number): Return zero if the iterator points to a gap.
10783 (btrace_insn_end): Allow gaps at the end.
10784 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10785 (btrace_find_insn_by_number): Assert that the found iterator does
10786 not point to a gap.
10787 (btrace_call_next, btrace_call_prev): Assert that the last function
10789 * btrace.h (btrace_bts_error): New.
10790 (btrace_function): Update comment.
10791 (btrace_function) <insn, insn_offset, number>: Update comment.
10792 (btrace_function) <errcode>: New.
10793 (btrace_thread_info) <ngaps>: New.
10794 (btrace_thread_info) <replay>: Update comment.
10795 (btrace_insn_get): Update comment.
10796 * record-btrace.c (btrace_ui_out_decode_error): New.
10797 (record_btrace_info): Print number of gaps.
10798 (btrace_insn_history, btrace_call_history): Call
10799 btrace_ui_out_decode_error for gaps.
10800 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10802 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10804 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10805 * nat/linux-btrace.c: (btrace_this_cpu): New.
10806 (cpu_supports_bts): Call btrace_this_cpu.
10807 (intel_supports_bts): Add cpu parameter.
10809 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10811 * btrace.h (btrace_insn_class): New.
10812 (btrace_insn) <size, iclass>: New.
10813 * btrace.c (ftrace_find_call): Update parameters. Update users.
10814 Use instruction classification.
10815 (ftrace_new_return): Update parameters. Update users.
10816 (ftrace_update_function): Update parameters. Update users. Use
10817 instruction classification.
10818 (ftrace_update_insns): Update parameters. Update users.
10819 (ftrace_classify_insn): New.
10820 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
10821 TRY_CATCH around call to gdb_insn_length.
10823 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10825 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
10826 Update parameters. Update users.
10828 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10830 * btrace.c (parse_xml_btrace_conf_bts): Add size.
10831 (btrace_conf_bts_attributes): New.
10832 (btrace_conf_children): Add attributes.
10833 * common/btrace-common.h (btrace_config_bts): New.
10834 (btrace_config)<bts>: New.
10835 (btrace_config): Update comment.
10836 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
10838 * features/btrace-conf.dtd: Increment version. Add size
10839 attribute to bts element.
10840 * record-btrace.c (set_record_btrace_bts_cmdlist,
10841 show_record_btrace_bts_cmdlist): New.
10842 (record_btrace_adjust_size, record_btrace_print_bts_conf,
10843 record_btrace_print_conf, cmd_set_record_btrace_bts,
10844 cmd_show_record_btrace_bts): New.
10845 (record_btrace_info): Call record_btrace_print_conf.
10846 (_initialize_record_btrace): Add commands.
10847 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
10848 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
10849 (btrace_sync_conf): Synchronize bts size.
10850 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
10851 * NEWS: Announce new commands and new packets.
10853 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10855 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
10856 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
10857 (x86_linux_btrace_conf): New.
10858 (x86_linux_create_target): Initialize to_btrace_conf.
10859 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
10860 Check format. Split into this and ...
10861 (linux_enable_bts): ... this.
10862 (linux_btrace_conf): New.
10863 (perf_event_skip_record): Renamed into ...
10864 (perf_event_skip_bts_record): ... this. Updated users.
10865 (linux_disable_btrace): Split into this and ...
10866 (linux_disable_bts): ... this.
10867 (linux_read_btrace): Check format.
10868 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
10869 (linux_btrace_conf): New.
10870 (btrace_target_info)<ptid>: Moved.
10871 (btrace_target_info)<conf>: New.
10872 (btrace_target_info): Split into this and ...
10873 (btrace_tinfo_bts): ... this. Updated users.
10874 * btrace.c (btrace_enable): Update parameters.
10875 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
10876 (btrace_conf_children, btrace_conf_attributes)
10877 (btrace_conf_elements): New.
10878 * btrace.h (btrace_enable): Update parameters.
10879 (btrace_conf, parse_xml_btrace_conf): New.
10880 * common/btrace-common.h (btrace_config): New.
10881 * feature/btrace-conf.dtd: New.
10882 * record-btrace.c (record_btrace_conf): New.
10883 (record_btrace_cmdlist): New.
10884 (record_btrace_enable_warn, record_btrace_open): Pass
10885 &record_btrace_conf.
10886 (record_btrace_info): Print recording format.
10887 (cmd_record_btrace_bts_start): New.
10888 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
10889 (_initialize_record_btrace): Add "record btrace bts" subcommand.
10890 Add "record bts" alias command.
10891 * remote.c (remote_state)<btrace_config>: New.
10892 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
10893 (remote_protocol_features): Add qXfer:btrace-conf:read.
10894 (remote_open_1): Call remote_btrace_reset.
10895 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
10896 (btrace_target_info)<conf>: New.
10897 (btrace_sync_conf, btrace_read_config): New.
10898 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
10900 (remote_btrace_conf): New.
10901 (init_remote_ops): Initialize to_btrace_conf.
10902 (_initialize_remote): Add qXfer:btrace-conf packet.
10903 * target.c (target_enable_btrace): Update parameters.
10904 (target_btrace_conf): New.
10905 * target.h (target_enable_btrace): Update parameters.
10906 (target_btrace_conf): New.
10907 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
10908 (target_ops)<to_enable_btrace>: Update parameters and comment.
10909 (target_ops)<to_btrace_conf>: New.
10910 * target-delegates: Regenerate.
10911 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
10912 (target_debug_print_const_struct_btrace_target_info_p): New.
10913 * NEWS: Announce new command and new packet.
10915 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10917 * nat/linux-btrace.h (perf_event_buffer): New.
10918 (btrace_target_info) <buffer, size, data_head>: Replace with ...
10920 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
10921 (perf_event_buffer_size, perf_event_buffer_begin)
10922 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
10924 (perf_event_new_data): New.
10926 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10928 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
10929 * record-btrace.c (record_btrace_open): Remove call to
10930 target_supports_btrace.
10931 * remote.c (remote_supports_btrace): Update parameters.
10932 * target.c (target_supports_btrace): Update parameters.
10933 * target.h (to_supports_btrace, target_supports_btrace): Update
10935 * target-delegates.c: Regenerate.
10936 * target-debug.h (target_debug_print_enum_btrace_format): New.
10937 * nat/linux-btrace.c
10938 (kernel_supports_btrace): Rename into ...
10939 (kernel_supports_bts): ... this. Update users. Update warning text.
10940 (intel_supports_btrace): Rename into ...
10941 (intel_supports_bts): ... this. Update users.
10942 (cpu_supports_btrace): Rename into ...
10943 (cpu_supports_bts): ... this. Update users.
10944 (linux_supports_btrace): Update parameters. Split into this and ...
10945 (linux_supports_bts): ... this.
10946 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
10948 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10950 * Makefile.in (SFILES): Add common/btrace-common.c.
10951 (COMMON_OBS): Add common/btrace-common.o.
10952 (btrace-common.o): Add build rules.
10953 * btrace.c (parse_xml_btrace): Update parameters.
10954 (parse_xml_btrace_block): Set format field.
10955 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
10956 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
10957 (btrace_compute_ftrace): Split into this and...
10958 (btrace_compute_ftrace_bts): ...this.
10959 (btrace_stitch_trace): Split into this and...
10960 (btrace_stitch_bts): ...this.
10961 * btrace.h (parse_xml_btrace): Update parameters.
10962 (make_cleanup_btrace_data): New.
10963 * common/btrace-common.c: New.
10964 * common/btrace-common.h: Include common-defs.h.
10965 (btrace_block_s): Update comment.
10966 (btrace_format): New.
10967 (btrace_format_string): New.
10968 (btrace_data_bts): New.
10969 (btrace_data): New.
10970 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
10971 * remote.c (remote_read_btrace): Update parameters.
10972 * target.c (target_read_btrace): Update parameters.
10973 * target.h (target_read_btrace): Update parameters.
10974 (target_ops)<to_read_btrace>: Update parameters.
10975 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
10976 * target-delegates.c: Regenerate.
10977 * target-debug (target_debug_print_struct_btrace_data_p): New.
10978 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
10979 (linux_read_bts): ...this.
10980 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
10982 2015-02-06 Doug Evans <dje@google.com>
10984 * remote-m32r-sdi.c: Include symfile.h.
10986 2015-02-06 Doug Evans <dje@google.com>
10988 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
10989 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
10992 2015-02-06 Pedro Alves <palves@redhat.com>
10994 * linux-thread-db.c (find_new_threads_callback): Add debug output.
10996 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
10999 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11000 (enable_count_command): Check args for NULL value.
11002 2015-02-05 Doug Evans <xdje42@gmail.com>
11004 * guile/scm-frame.c: Fix spelling errors in a comment.
11006 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11008 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11009 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11012 2015-02-04 Pedro Alves <palves@redhat.com>
11014 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11015 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11017 (resume_stopped_resumed_lwps): Don't check whether the thread is
11018 marked as executing.
11019 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11021 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11023 * regset.h (struct regset): Add flags field.
11024 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11025 * corelow.c (get_core_register_section): Add warning if the size
11026 exceeds the requested size and the regset does not have the
11027 REGSET_VARIABLE_SIZE flag set.
11028 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11030 * armbsd-tdep.c (armbsd_gregset): Likewise.
11031 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11032 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11033 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11034 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11036 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11038 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11039 For ".reg-xstate", explicitly specify the requested section size
11040 via X86_XSTATE_SIZE instead of just 0 on input and
11041 X86_XSTATE_MAX_SIZE on output.
11042 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11045 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11047 PR corefiles/17808:
11048 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11049 function type, particularly its SIZE parameter.
11050 * gdbarch.h: Regenerate.
11051 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11052 actual against required size using ">=" instead of "==".
11053 (amd64_collect_fpregset): Likewise.
11054 * i386-tdep.c (i386_supply_gregset): Likewise.
11055 (i386_collect_gregset): Likewise.
11056 (i386_supply_fpregset): Likewise.
11057 (i386_collect_fpregset): Likewise.
11058 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11059 (mips_fill_gregset_wrapper): Likewise.
11060 (mips_supply_fpregset_wrapper): Likewise.
11061 (mips_fill_fpregset_wrapper): Likewise.
11062 (mips64_supply_gregset_wrapper): Likewise.
11063 (mips64_fill_gregset_wrapper): Likewise.
11064 (mips64_supply_fpregset_wrapper): Likewise.
11065 (mips64_fill_fpregset_wrapper): Likewise.
11066 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11067 (am33_supply_fpregset_method): Likewise.
11068 (am33_collect_gregset_method): Likewise.
11069 (am33_collect_fpregset_method): Likewise.
11071 2015-02-04 Doug Evans <dje@google.com>
11072 Pedro Alves <palves@redhat.com>
11073 Eli Zaretskii <eliz@gnu.org>
11076 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11077 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11078 * tui/tui-file.c: #include tui/tui-command.h.
11079 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11080 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11081 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11083 2015-02-04 Pedro Alves <palves@redhat.com>
11085 Fix build breakage.
11086 * event-loop.c (gdb_do_one_event): Add default switch case.
11088 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11090 Filter out inferior gcc option -fpreprocessed.
11091 * compile/compile.c (filter_args): New function.
11092 (get_args): Use it.
11094 2015-02-03 Pedro Alves <palves@redhat.com>
11096 * event-loop.c: Don't declare nor define a queue type for
11098 (event_queue): Delete.
11099 (create_event, create_file_event, gdb_event_xfree)
11100 (initialize_event_loop, process_event): Delete.
11101 (gdb_do_one_event): Return as soon as one event is handled.
11102 (handle_file_event): Change prototype. Used the passed in
11103 file_handler pointer and ready_mask instead of looping over all
11105 (gdb_wait_for_event): Update the poll/select timeouts before
11106 blocking. Run event handlers directly instead of queueing events.
11107 Return as soon as one event is handled.
11108 (struct async_event_handler_data): Delete.
11109 (invoke_async_event_handler): Delete.
11110 (check_async_event_handlers): Change return type to int. Run
11111 event handlers directly instead of queueing events. Return as
11112 soon as one event is handled.
11113 (handle_timer_event): Delete.
11114 (update_wait_timeout): New function, factored out from
11116 (poll_timers): Reimplement.
11117 * event-loop.h (initialize_event_loop): Delete declaration.
11118 * top.c (gdb_init): Don't call initialize_event_loop.
11120 2015-02-03 Pedro Alves <palves@redhat.com>
11122 * event-loop.c (clear_async_event_handler): New function.
11123 * event-loop.h (clear_async_event_handler): New declaration.
11124 * record-btrace.c (record_btrace_async): New function.
11125 (init_record_btrace_ops): Install record_btrace_async.
11126 * record-full.c (record_full_async): New function.
11127 (record_full_resume): Don't mark the async event source here.
11128 (init_record_full_ops): Install record_full_async.
11129 (record_full_core_resume): Don't mark the async event source here.
11130 (init_record_full_core_ops): Install record_full_async.
11131 * remote.c (remote_async): Mark and clear the async stop reply
11132 queue event-loop token as appropriate.
11134 2015-02-03 Pedro Alves <palves@redhat.com>
11136 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11137 target_is_async_p instead of target_can_async.
11138 (linux_nat_wait): Use target_is_async_p instead of
11139 target_can_async. Don't enable async here.
11140 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11141 target_is_async_p instead of target_can_async.
11143 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11145 * varobj.h (lang_varobj_ops): Mention which return values need
11148 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11150 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11152 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11155 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11156 results found in the cache.
11158 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11161 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11162 when allocating a new one.
11164 2015-02-01 Tom Tromey <tom@tromey.com>
11166 * MAINTAINERS: Remove myself.
11168 2015-01-31 Doug Evans <xdje42@gmail.com>
11170 * dwarf2read.c (process_structure_scope): Update setting of
11171 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11172 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11173 (set_type_vptr_fieldno): New function.
11174 (internal_type_vptr_basetype): New function.
11175 (set_type_vptr_basetype): New function.
11176 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11177 TYPE_VPTR_BASETYPE.
11178 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11179 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11180 (print_cplus_stuff): ... moved here.
11181 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11182 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11184 (struct cplus_struct_type): ... here. All uses updated.
11185 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11186 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11187 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11188 * stabsread.c (read_tilde_fields): Update setting of
11189 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11191 2015-01-31 Doug Evans <xdje42@gmail.com>
11193 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11195 (cp_print_class_member): Rename local domain to self_type.
11196 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11197 domain_type to self_type.
11198 (set_die_type) <need_gnat_info>: Handle
11199 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11200 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11201 TYPE_SPECIFIC_SELF_TYPE.
11202 * gdbtypes.c (internal_type_self_type): New function.
11203 (set_type_self_type): New function.
11204 (smash_to_memberptr_type): Rename parameter domain to self_type.
11205 Update setting of TYPE_SELF_TYPE.
11206 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11207 (smash_to_method_type): Rename parameter domain to self_type.
11208 Update setting of TYPE_SELF_TYPE.
11209 (check_stub_method): Call smash_to_method_type.
11210 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11211 (copy_type_recursive): Ditto.
11212 * gdbtypes.h (enum type_specific_kind): New value
11213 TYPE_SPECIFIC_SELF_TYPE.
11214 (struct main_type) <type_specific>: New member self_type.
11215 (struct cplus_struct_type) <fn_field.type>: Update comment.
11216 (TYPE_SELF_TYPE): Rewrite.
11217 (internal_type_self_type, set_type_self_type): Declare.
11218 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11220 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11221 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11223 * stabsread.c (read_member_functions): Mark methods with
11224 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11227 2015-01-31 Doug Evans <xdje42@gmail.com>
11229 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11232 2015-01-31 Doug Evans <xdje42@gmail.com>
11234 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11235 or unions. Return zero if union.
11236 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11237 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11239 (compute_vtable_size): Assert only passed structs.
11240 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11242 2015-01-31 Doug Evans <xdje42@gmail.com>
11244 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11247 2015-01-31 Gary Benson <gbenson@redhat.com>
11248 Doug Evans <dje@google.com>
11253 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11255 * common/common-exceptions.h (enum errors)
11256 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11257 * completer.h (get_max_completions_reached_message): New declaration.
11258 (max_completions): Likewise.
11259 (completion_tracker_t): New typedef.
11260 (new_completion_tracker): New declaration.
11261 (make_cleanup_free_completion_tracker): Likewise.
11262 (maybe_add_completion_enum): New enum.
11263 (maybe_add_completion): New declaration.
11264 (throw_max_completions_reached_error): Likewise.
11265 * completer.c (max_completions): New global variable.
11266 (new_completion_tracker): New function.
11267 (free_completion_tracker): Likewise.
11268 (make_cleanup_free_completion_tracker): Likewise.
11269 (maybe_add_completions): Likewise.
11270 (throw_max_completions_reached_error): Likewise.
11271 (complete_line): Remove duplicates and limit result to max_completions
11273 (get_max_completions_reached_message): New function.
11274 (gdb_display_match_list): Handle max_completions.
11275 (_initialize_completer): New declaration and function.
11276 * symtab.c: Include completer.h.
11277 (completion_tracker): New static variable.
11278 (completion_list_add_name): Call maybe_add_completion.
11279 (default_make_symbol_completion_list_break_on_1): Renamed from
11280 default_make_symbol_completion_list_break_on. Maintain
11281 completion_tracker across calls to completion_list_add_name.
11282 (default_make_symbol_completion_list_break_on): New function.
11283 * top.c (init_main): Set rl_completion_display_matches_hook.
11284 * tui/tui-io.c: Include completer.h.
11285 (tui_old_rl_display_matches_hook): New static global.
11286 (tui_rl_display_match_list): Notify user if max-completions reached.
11287 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11288 * NEWS (New Options): Mention set/show max-completions.
11290 2015-01-31 Gary Benson <gbenson@redhat.com>
11292 * symtab.c (struct add_name_data) <code>: New field.
11294 (add_symtab_completions): New function.
11295 (symtab_expansion_callback): Likewise.
11296 (default_make_symbol_completion_list_break_on): Set datum.code.
11297 Move minimal symbol scan before calling expand_symtabs_matching.
11298 Scan known primary symtabs for externs and statics before calling
11299 expand_symtabs_matching. Pass symtab_expansion_callback as
11300 expansion_notify argument to expand_symtabs_matching. Do not scan
11301 primary symtabs for externs and statics after calling
11302 expand_symtabs_matching.
11304 2015-01-31 Gary Benson <gbenson@redhat.com>
11306 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11307 (struct quick_symbol_functions) <expand_symtabs_matching>:
11308 New argument expansion_notify. All uses updated.
11309 (expand_symtabs_matching): New argument expansion_notify.
11311 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11312 Also print expansion notify.
11313 * symtab.c (expand_symtabs_matching_via_partial): Call
11314 expansion_notify whenever a partial symbol table is expanded.
11315 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11316 expansion_notify whenever a symbol table is instantiated.
11318 2015-01-31 Doug Evans <xdje42@gmail.com>
11320 * cli-out.c: #include completer.h, readline/readline.h.
11321 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11322 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11323 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11324 * cli-out.h (cli_display_match_list): Declare.
11325 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11326 (ELLIPSIS_LEN): Ditto.
11327 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11328 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11329 (gdb_fnprint, gdb_print_filename): Ditto.
11330 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11331 (gdb_display_match_list): Ditto.
11332 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11333 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11334 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11335 (match_list_displayer): New struct.
11336 (gdb_display_match_list): Declare.
11337 * top.c (init_main): Set rl_completion_display_matches_hook.
11338 * tui/tui-io.c: #include completer.h.
11339 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11340 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11341 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11342 (tui_mld_getc, tui_mld_read_key): Ditto.
11343 (tui_rl_display_match_list): Rewrite.
11344 (tui_handle_resize_during_io): New arg for_completion. All callers
11347 2015-01-31 Doug Evans <xdje42@gmail.com>
11349 Add symbol lookup cache.
11350 * NEWS: Document new options and commands.
11351 * symtab.c (symbol_cache_key): New static global.
11352 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11353 (SYMBOL_LOOKUP_FAILED): New macro.
11354 (symbol_cache_slot_state): New enum.
11355 (block_symbol_cache): New struct.
11356 (symbol_cache): New struct.
11357 (new_symbol_cache_size, symbol_cache_size): New static globals.
11358 (hash_symbol_entry, eq_symbol_entry): New functions.
11359 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11360 (make_symbol_cache, free_symbol_cache): New functions.
11361 (get_symbol_cache, symbol_cache_cleanup): New function.
11362 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11363 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11364 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11365 (symbol_cache_flush, symbol_cache_dump): New functions.
11366 (maintenance_print_symbol_cache): New function.
11367 (maintenance_flush_symbol_cache): New function.
11368 (symbol_cache_stats): New function.
11369 (maintenance_print_symbol_cache_statistics): New function.
11370 (symtab_new_objfile_observer): New function.
11371 (symtab_free_objfile_observer): New function.
11372 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11373 (_initialize_symtab): Init symbol_cache_key. New parameter
11374 maint symbol-cache-size. New maint commands print symbol-cache,
11375 print symbol-cache-statistics, flush-symbol-cache.
11376 Install new_objfile, free_objfile observers.
11378 2015-01-31 Joel Brobecker <brobecker@adacore.com>
11381 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11384 2015-01-31 Doug Evans <xdje42@gmail.com>
11386 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11387 * auto-load.c: #include ctype.h.
11388 (struct auto_load_pspace_info): Replace member loaded_scripts with
11389 new members loaded_script_files, loaded_script_texts.
11390 (auto_load_pspace_data_cleanup): Update.
11391 (init_loaded_scripts_info): Update.
11392 (get_auto_load_pspace_data_for_loading): Update.
11393 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11395 (maybe_add_script_text): New function.
11396 (clear_section_scripts): Update.
11397 (source_script_file, execute_script_contents): New functions.
11398 (source_section_scripts): Add support for
11399 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11400 (print_scripts): New function.
11401 (auto_load_info_scripts): Also print inlined scripts.
11402 (maybe_print_unsupported_script_warning): Renamed from
11403 unsupported_script_warning_print. All callers updated.
11404 (maybe_print_script_not_found_warning): Renamed from
11405 script_not_found_warning_print. All callers updated.
11406 * extension-priv.h (struct extension_language_script_ops): New member
11407 objfile_script_executor.
11408 * extension.c (ext_lang_objfile_script_executor): New function.
11409 * extension.h (objfile_script_executor_func): New typedef.
11410 (ext_lang_objfile_script_executor): Declare.
11411 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11412 * guile/guile.c (guile_extension_script_ops): Update.
11413 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11414 * python/python.c (python_extension_script_ops): Update.
11415 (gdbpy_execute_objfile_script): New function.
11417 2015-01-31 Eli Zaretskii <eliz@gnu.org>
11419 * tui/tui-io.c (tui_expand_tabs): New function.
11420 (tui_puts, tui_redisplay_readline): Expand TABs into the
11421 appropriate number of spaces.
11422 * tui/tui-regs.c: Include tui-io.h.
11423 (tui_register_format): Call tui_expand_tabs to expand TABs into
11424 the appropriate number of spaces.
11425 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11427 2015-01-30 Doug Evans <dje@google.com>
11429 * NEWS: "info source" command now display producer string if present.
11430 * source.c (source_info): Print producer string if present.
11432 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11434 * varobj.c (varobj_delete): Fix comment.
11436 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11438 * varobj.c (create_child): Modify comment.
11440 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11442 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11444 (ada_name_of_variable): Same.
11445 (ada_path_expr_of_child): Same.
11446 (ada_value_of_variable): Same.
11447 (ada_value_is_changeable_p): Same.
11448 (ada_value_has_mutated): Same.
11449 * c-varobj.c (varobj_is_anonymous_child): Same.
11450 (c_is_path_expr_parent): Same.
11451 (c_number_of_children): Same.
11452 (c_name_of_variable): Same.
11453 (c_path_expr_of_child): Same.
11455 (c_value_of_variable): Same.
11456 (cplus_number_of_children): Same.
11457 (cplus_name_of_variable): Same.
11458 (cplus_path_expr_of_child): Same.
11459 (cplus_value_of_variable): Same.
11460 * jv-varobj.c (java_number_of_children): Same.
11461 (java_name_of_variable): Same.
11462 (java_path_expr_of_child): Same.
11463 (java_value_of_variable): Same.
11464 * varobj.c (number_of_children): Same.
11465 (name_of_variable): Same.
11467 (varobj_ensure_python_env): Same.
11468 (varobj_get_objname): Same.
11469 (varobj_get_expression): Same.
11470 (varobj_get_display_format): Same.
11471 (varobj_get_display_hint): Same.
11472 (varobj_has_more): Same.
11473 (varobj_get_thread_id): Same.
11474 (varobj_get_frozen): Same.
11475 (dynamic_varobj_has_child_method): Same.
11476 (varobj_get_gdb_type): Same.
11477 (is_path_expr_parent): Same.
11478 (varobj_default_is_path_expr_parent): Same.
11479 (varobj_get_language): Same.
11480 (varobj_get_attributes): Same.
11481 (varobj_is_dynamic_p): Same.
11482 (varobj_get_child_range): Same.
11483 (varobj_value_has_mutated): Same.
11484 (varobj_get_value_type): Same.
11485 (number_of_children): Same.
11486 (name_of_variable): Same.
11487 (check_scope): Same.
11488 (varobj_editable_p): Same.
11489 (varobj_value_is_changeable_p): Same.
11490 (varobj_floating_p): Same.
11491 (varobj_default_value_is_changeable_p): Same.
11493 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11495 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11496 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11498 (cplus_path_expr_of_child): Same.
11500 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11502 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11504 (mi_cmd_var_info_expression): Same.
11505 * varobj.c (varobj_get_expression): Mention in the comment that
11506 the result must by freed by the caller.
11508 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11510 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11512 (varobj_update_one): Same.
11513 * varobj.c (update_type_if_necessary): Free curr_type_str and
11515 (varobj_get_type): Specify in comment that the result needs to be
11516 freed by the caller.
11518 2015-01-29 Doug Evans <dje@google.com>
11521 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11523 2015-01-25 Mark Wielaard <mjw@redhat.com>
11525 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11526 * utils.c (producer_is_gcc_ge_4): Likewise.
11527 (producer_is_gcc): New function.
11528 * utils.h (producer_is_gcc): New declaration.
11530 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11532 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11534 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11535 parameter by "addr_stack" parameter.
11536 (resolve_dynamic_range): Replace "addr" parameter by
11537 "stack_addr" parameter. Update function documentation.
11538 Update code accordingly.
11539 (resolve_dynamic_array, resolve_dynamic_union)
11540 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11541 (resolve_dynamic_type): Update code, following the changes made
11542 to resolve_dynamic_type_internal's interface.
11543 * dwarf2loc.h (struct property_addr_info): New.
11544 (dwarf2_evaluate_property): Replace "address" parameter
11545 by "addr_stack" parameter. Adjust function documentation.
11546 (struct dwarf2_offset_baton): New.
11547 (struct dwarf2_property_baton): Update documentation of
11548 field "referenced_type" to be more general. New field
11549 "offset_info" in union data field.
11550 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11551 parameter by "addr_stack" parameter. Adjust code accordingly.
11552 Add support for PROP_ADDR_OFFSET properties.
11553 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11554 DW_AT_data_member_location attributes as well. Use case
11555 statements instead of if/else condition.
11557 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11559 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11560 Return zero if PARENT_VALUE is NULL and parent_type's
11561 range type is dynamic.
11563 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11565 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11566 nonzero if the type's subtype is dynamic.
11567 (resolve_dynamic_range): Also resolve the range's subtype.
11569 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
11571 Pushed by Joel Brobecker <brobecker@adacore.com>.
11572 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11574 2015-01-27 Doug Evans <dje@google.com>
11576 * NEWS: Mention gdb.Objfile.username.
11577 * python/py-objfile.c (objfpy_get_username): New function.
11578 (objfile_getset): Add "username".
11580 2015-01-24 Mark Wielaard <mjw@redhat.com>
11582 * stack.c (return_command): Markup warning message with _.
11584 2015-01-24 Doug Evans <xdje42@gmail.com>
11586 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11588 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11590 Fix 100x slowdown regression on DWZ files.
11591 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11592 (struct line_header): Add offset and offset_in_dwz.
11593 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11594 (free_line_header_voidp): New declaration.
11595 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11597 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11598 (handle_DW_AT_stmt_list): Use line_header_hash.
11599 (free_line_header_voidp): New function.
11600 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11601 (dwarf_decode_lines): New parameter decode_mapping, use it.
11602 (dwarf2_free_objfile): Free line_header_hash.
11604 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11607 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11610 2015-01-15 Mark Wielaard <mjw@redhat.com>
11612 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11614 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11615 calling_convention an 8 bit bit field.
11616 (TYPE_NO_RETURN): New macro.
11617 * infcmd.c (finish_command): Query if function does not return
11619 * stack.c (return_command): Likewise.
11621 2015-01-23 Pedro Alves <palves@redhat.com>
11623 * linux-nat.c (linux_is_async_p): New macro.
11624 (linux_nat_is_async_p):
11625 (linux_nat_terminal_inferior): Check whether the target can async
11626 instead of whether it is already async.
11627 (linux_nat_terminal_ours): Don't check whether the target is
11629 (linux_async_pipe): Use linux_is_async_p.
11631 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11633 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11635 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11636 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11637 Sort tp_array using tp_array_compar.
11638 (_initialize_thread): Extend thread_apply_all_command help.
11640 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11642 * corelow.c (core_open): Call also thread_command.
11643 * gdbthread.h (thread_command): New prototype moved from ...
11644 * thread.c (thread_command): ... here.
11645 (thread_command): Make it global.
11647 2015-01-22 Pedro Alves <palves@redhat.com>
11649 * configure.ac [*mingw32*]: Check $curses_found instead of
11651 * configure: Regenerate.
11652 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11653 HAVE_NCURSES_NCURSES_H checks.
11655 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11657 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11658 fails with the 1st arg NULL, try again with "unknown". Don't test
11659 the "cup" capability: it isn't supported by the Windows port of
11660 ncurses, but the Windows console driver is still capable of
11663 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11665 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11667 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11669 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11670 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11671 reason that "make TAGS" is broken.
11673 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11675 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11676 and check additional store instructions.
11678 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11680 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11682 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11684 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11685 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11686 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11687 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11688 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11689 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11690 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11691 ppc_process_record_op19, ppc_process_record_op31,
11692 ppc_process_record_op59, ppc_process_record_op60,
11693 ppc_process_record_op63): Likewise.
11695 2015-01-20 Joel Brobecker <brobecker@adacore.com>
11697 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11698 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11701 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
11703 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11704 ppc_process_record_op31, ppc_process_record_op59,
11705 ppc_process_record_op60, ppc_process_record_op63,
11706 ppc_process_record): Fix -Wformat warning.
11707 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11708 Remove unused variables.
11710 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11712 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11714 2015-01-19 Eli Zaretskii <eliz@gnu.org>
11716 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11717 CONFIG_OBS if not building with a curses library.
11718 * configure: Regenerate.
11720 * windows-termcap.c: Include defs.h. Make the whole body empty if
11721 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11722 HAVE_NCURSES_NCURSES_H is defined.
11724 2015-01-19 Joel Brobecker <brobecker@adacore.com>
11726 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11727 from end of line to start of next line.
11729 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11731 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11732 Scan PLT stub backward for reverse debugging.
11733 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11735 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11736 Ulrich Weigand <uweigand@de.ibm.com>
11738 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11740 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11742 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11743 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11744 (ppc_linux_init_abi): Set process_record, process_record_signal.
11745 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11746 ppc_linux_record_tdep to gdbarch_tdep.
11747 (ppc_process_record): New declaration.
11748 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11749 ppc_process_record_op19, ppc_process_record_op31,
11750 ppc_process_record_op59, ppc_process_record_op60,
11751 ppc_process_record_op63, ppc_process_record): New functions.
11753 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11755 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11756 rs6000_in_function_epilogue_frame_p and add an argument
11758 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11759 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11761 (rs6000_epilogue_frame_unwind): New.
11762 (rs6000_gdbarch_init): Append epilogue unwinder.
11764 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11766 * nat/linux-personality.c: Replace "#ifndef
11767 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11768 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11771 2015-01-16 Eli Zaretskii <eliz@gnu.org>
11773 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11775 (_initialize_tui_win) <border-kind, border-mode>:
11776 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
11777 (tui_set_tab_width_command): Fix the commentary.
11779 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11781 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11783 (tui_set_tab_width_command): Delete and recreate the source and
11784 the disassembly windows, to show the effect of the changed tab
11787 * tui/tui-data.h (LINE_PREFIX): Make shorter
11788 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11789 "Thread NNNNN.XXXX" thread ID notation on Windows.
11791 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11793 Fix gcc-5 compilation.
11794 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11796 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11798 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11799 (linux-personality.o): New rule.
11800 * common/common-defs.h: Include <stdint.h>.
11801 * config/aarch64/linux.mh (NATDEPFILES): Include
11802 linux-personality.o.
11803 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11804 * config/arm/linux.mh (NATDEPFILES): Likewise.
11805 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11806 * config/i386/linux.mh (NATDEPFILES): Likewise.
11807 * config/ia64/linux.mh (NATDEPFILES): Likewise.
11808 * config/m32r/linux.mh (NATDEPFILES): Likewise.
11809 * config/m68k/linux.mh (NATDEPFILES): Likewise.
11810 * config/mips/linux.mh (NATDEPFILES): Likewise.
11811 * config/pa/linux.mh (NATDEPFILES): Likewise.
11812 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11813 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11814 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11815 * config/s390/linux.mh (NATDEPFILES): Likewise.
11816 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11817 * config/sparc/linux.mh (NATDEPFILES): Likewise.
11818 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11819 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11820 * defs.h: Remove #include <stdint.h> (moved to
11821 common/common-defs.h).
11822 * linux-nat.c: Include nat/linux-personality.h. Remove #include
11823 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11824 nat/linux-personality.c).
11825 (linux_nat_create_inferior): Remove code to disable address space
11826 randomization (moved to nat/linux-personality.c). Create cleanup
11827 to disable address space randomization.
11828 * nat/linux-personality.c: New file.
11829 * nat/linux-personality.h: Likewise.
11831 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11833 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
11834 common/posix-strerror.c.
11835 (posix-strerror.o): New rule.
11836 (mingw-strerror.o): Likewise.
11837 * common/common-utils.h (safe_strerror): Move prototype to here,
11839 * common/common.host: New file.
11840 * common/mingw-strerror.c: Likewise.
11841 * common/posix-strerror.c: Likewise.
11842 * configure: Regenerated.
11843 * configure.ac: Source common/common.host. Add variable
11844 common_host_obs to gdb_host_obs.
11845 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
11846 gdb/common/posix-strerror.c when warning about the use of
11848 * mingw-hdep.c (safe_strerror): Remove definition; move it to
11849 common/mingw-strerror.c.
11850 * posix-hdep.c (safe_strerror): Remove definition; move it to
11851 common/posix-hdep.c.
11852 * utils.h (safe_strerror): Remove prototype; move to
11853 common/common-utils.h.
11855 2015-01-15 Joel Brobecker <brobecker@adacore.com>
11857 GDB 7.8.2 released.
11859 2015-01-15 Joel Brobecker <brobecker@adacore.com>
11861 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
11862 ___XA type if the array has already been fixed.
11864 2015-01-14 Yao Qi <yao@codesourcery.com>
11866 * Makefile.in (ppc-linux.o): New rule.
11867 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
11868 * configure.ac: AC_CHECK_FUNCS(getauxval).
11869 * config.in: Re-generated.
11870 * configure: Re-generated.
11871 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
11873 * nat/ppc-linux.c: New file.
11874 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
11875 Call ppc64_64bit_inferior_p.
11877 2015-01-14 Yao Qi <yao@codesourcery.com>
11879 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
11881 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
11882 (PPC_FEATURE_HAS_DFP): Likewise.
11883 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11884 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11885 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11886 Include "nat/ppc-linux.h".
11887 * nat/ppc-linux.h: New file.
11888 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
11890 2015-01-14 Pedro Alves <palves@redhat.com>
11893 * breakpoint.c: Include "interps.h".
11894 (bpstat_do_actions_1): Also check whether the interpreter is
11897 2015-01-14 Pedro Alves <palves@redhat.com>
11900 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
11901 reinstall if the interpreter is sync.
11903 2015-01-13 Doug Evans <dje@google.com>
11905 * objfiles.c (objfile_filename): New function.
11906 * objfiles.h (objfile_filename): Declare it.
11907 (objfile_name): Add function comment.
11908 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
11909 bfd file name (which may be realpath'd), and the original name.
11911 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11913 * NEWS: Create a new section for the next release branch.
11914 Rename the section of the current branch, now that it has
11917 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11919 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
11920 * version.in: Bump version to 7.9.50.DATE-cvs.
11922 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11924 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
11925 Remove trailing new-line in argument of call to warning.
11927 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11929 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
11930 new-line in argument of call to "warning".
11932 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11934 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
11935 in static block, then try searching for primitive types.
11937 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
11939 * top.h (gdb_add_history): Declare.
11940 * top.c (command_count): New variable.
11941 (gdb_add_history): New function.
11942 (gdb_safe_append_history): New static function.
11943 (quit_force): Call it.
11944 (command_line_input): Use gdb_add_history instead of
11946 * event-top.c (command_line_handler): Likewise.
11948 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
11951 * darwin-nat.c: Replace <machine/setjmp.h> #include by
11952 <setjmp.h> #include.
11954 2015-01-11 Doug Evans <xdje42@gmail.com>
11956 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
11958 2015-01-11 Doug Evans <xdje42@gmail.com>
11961 * NEWS: The "maint demangle" command is renamed as "demangle".
11962 * demangle.c: #include cli/cli-utils.h, language.h.
11963 (demangle_command): New function.
11964 (_initialize_demangle): Add new command "demangle".
11965 * maint.c (maintenance_demangle): Stub out.
11966 (_initialize_maint_cmds): Update help text for "maint demangle",
11967 and mark as deprecated.
11969 2015-01-11 Mark Kettenis <kettenis@gnu.org>
11971 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
11972 inferior_thread is a function.
11974 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
11976 * Makefile.in (.y.c): Don't munge yacc's #line
11979 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
11981 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
11982 to prompt for input.
11983 * tui/tui-hooks.c (tui_query_hook): Remove.
11984 (tui_install_hooks): Don't set deprecated_query_hook.
11985 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
11986 height calculation. Always update the command window's cur_line.
11988 2015-01-09 Pedro Alves <palves@redhat.com>
11990 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
11992 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
11994 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
11995 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
11997 (check_stopped_by_watchpoint): New function.
11998 (save_sigtrap): Reimplement.
11999 (linux_nat_stopped_by_watchpoint): Adjust.
12000 (linux_nat_lp_status_is_event): Delete.
12001 (stop_wait_callback): Only call save_sigtrap after storing the
12003 (status_callback): If the thread had been stopped for a breakpoint
12004 that has since been removed, discard the event and resume the LWP.
12005 (count_events_callback, select_event_lwp_callback): Use
12006 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12007 (cancel_breakpoint): Rename to ...
12008 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12009 stopped for a software breakpoint or hardware breakpoint.
12010 (select_event_lwp): Only give preference to the stepping LWP in
12011 all-stop mode. Adjust comments.
12012 (stop_and_resume_callback): Remove references to new_pending_p.
12013 (linux_nat_filter_event): Likewise. Leave exit events of the
12014 leader thread pending here. Handle signal short circuiting here.
12015 Only call save_sigtrap after storing the pending waitstatus.
12016 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12017 new_pending. Don't handle leaving events the caller is not
12018 interested in pending here, nor handle signal short-circuiting
12019 here. Also give equal priority to all LWPs that have had events
12020 in non-stop mode. If reporting a software breakpoint event,
12021 unadjust the LWP's PC.
12022 * linux-nat.h (enum lwp_stop_reason): New.
12023 (struct lwp_info) <stop_pc>: New field.
12024 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12025 (struct lwp_info) <stop_reason>: New field.
12026 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12028 2015-01-09 Pedro Alves <palves@redhat.com>
12030 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12031 Set the LWP's 'resumed' flag.
12033 2015-01-09 Pedro Alves <palves@redhat.com>
12035 * linux-nat.c (linux_resume_one_lwp): New function.
12036 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12037 (linux_nat_resume): Use lwp_status_pending_p and
12038 linux_resume_one_lwp.
12039 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12040 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12041 (status_callback, running_callback): Use lwp_status_pending_p.
12042 (lwp_status_pending_p): New function.
12043 (stop_and_resume_callback): Use lwp_status_pending_p.
12044 (linux_nat_filter_event): Use linux_resume_one_lwp.
12045 (linux_nat_wait_1): Always use status_callback to look for an LWP
12046 with a pending status. Use linux_resume_one_lwp.
12047 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12048 linux_resume_one_lwp.
12050 2015-01-09 Pedro Alves <palves@redhat.com>
12052 * breakpoint.c (bp_location_inserted_here_p): New function,
12053 factored out from ...
12054 (breakpoint_inserted_here_p): ... here. Use
12055 ALL_BP_LOCATIONS_AT_ADDR.
12056 (software_breakpoint_inserted_here_p): Use
12057 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12059 2014-01-09 Pedro Alves <palves@redhat.com>
12061 Skip enabling event reporting if the kernel supports
12062 PTRACE_EVENT_CLONE.
12063 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12064 (thread_db_use_events): New function.
12065 (try_thread_db_load_1): Check thread_db_use_events before enabling
12067 (update_thread_state): New function.
12068 (attach_thread): Use it. Check thread_db_use_events before
12069 enabling event reporting.
12070 (thread_db_detach): Check thread_db_use_events before disabling
12072 (find_new_threads_callback): Check thread_db_use_events before
12073 enabling event reporting. Update the thread's state if not using
12074 libthread_db events.
12076 2015-01-09 Pedro Alves <palves@redhat.com>
12078 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12079 about to wait for is > 0.
12080 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12081 the kernel thread ID is -1.
12083 2015-01-09 Pedro Alves <palves@redhat.com>
12085 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12086 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12087 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12088 ptrace option flags.
12089 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12091 * nat/linux-procfs.c: Include <dirent.h>.
12092 (linux_proc_get_int): New parameter "warn". Handle it.
12093 (linux_proc_get_tgid): Adjust.
12094 (linux_proc_get_tracerpid): Rename to ...
12095 (linux_proc_get_tracerpid_nowarn): ... this.
12096 (linux_proc_pid_get_state): New function, factored out from
12097 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12099 (linux_proc_pid_is_gone): New function.
12100 (linux_proc_pid_is_stopped): Adjust.
12101 (linux_proc_pid_is_zombie_maybe_warn)
12102 (linux_proc_pid_is_zombie_nowarn): New functions.
12103 (linux_proc_pid_is_zombie): Use
12104 linux_proc_pid_is_zombie_maybe_warn.
12105 (linux_proc_attach_tgid_threads): New function.
12106 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12107 (linux_proc_get_tracerpid): Rename to ...
12108 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12109 (linux_proc_pid_is_gone): New declaration.
12110 (linux_proc_pid_is_zombie): Update comment.
12111 (linux_proc_pid_is_zombie_nowarn): New declaration.
12112 (linux_proc_attach_lwp_func): New typedef.
12113 (linux_proc_attach_tgid_threads): New declaration.
12114 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12115 use nowarn functions.
12116 (linux_ptrace_attach_fail_reason_string): Move here from
12117 gdbserver/linux-low.c and rename.
12118 (ptrace_supports_feature): If the current ptrace options are not
12119 known yet, check them now, instead of asserting.
12120 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12123 2015-01-09 Pedro Alves <palves@redhat.com>
12125 * linux-thread-db.c (thread_db_find_new_threads_silently)
12126 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12127 (find_new_threads_once): Print debug output on gdb_stdlog.
12129 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12130 Pedro Alves <palves@redhat.com>
12132 * compile/compile.c: Include "gdb_wait.h".
12133 (do_rmdir): Check return value, and free 'zap'.
12135 2015-01-08 Pedro Alves <palves@redhat.com>
12136 Yao Qi <yao@codesourcery.com>
12138 * dwarf2loc.c (indirect_pieced_value): Don't call
12139 gdb_sign_extend. Call extract_signed_integer instead.
12140 * utils.c (gdb_sign_extend): Remove.
12141 * utils.h (gdb_sign_extend): Remove declaration.
12143 2015-01-07 Pierre Muller <muller@sourceware.org>
12146 * stabsread.c (define_symbol): Set language for C++ special symbols.
12148 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12150 * inflow.c (initial_gdb_ttystate): Tweak comment.
12152 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12154 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12155 comment documenting function.
12157 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12159 * terminal.h (set_initial_gdb_ttystate): Declare.
12160 * inflow.c (initial_gdb_ttystate): New static variable.
12161 (set_initial_gdb_ttystate): New setter.
12162 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12163 instead of our current terminal state.
12164 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12166 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12168 * guile/scm-type.c (tyscm_array_1): Add comment.
12169 * python/py-type.c (typy_array_1): Add comment.
12171 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12173 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12174 error if N2 is equal to N1 - 1.
12176 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12178 * python/py-type.c (typy_array_1): Do not raise negative-length
12179 exception if N2 is equal to N1 - 1.
12181 2015-01-03 Doug Evans <xdje42@gmail.com>
12183 * c-exp.y: Whitespace cleanup.
12184 (classify_inner_name): Remove extra ;.
12186 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12188 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12191 2015-01-02 Doug Evans <dje@google.com>
12193 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12195 2015-01-02 Doug Evans <dje@google.com>
12197 * symtab.h (struct symbol): Fix typo in comment.
12199 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12201 Update year range in copyright notice of all files.
12203 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12205 * top.c (print_gdb_version): Update copyright year to 2015.
12207 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12209 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12211 For older changes see ChangeLog-2014.
12217 version-control: never