Enable IAMCU and PEI for Solaris2/x86
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-10-02 James Bowman <james.bowman@ftdichip.com>
2
3 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
4 subroutine handling.
5
6 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
7
8 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
9
10 2015-09-30 Doug Evans <dje@google.com>
11
12 * dwarf2read.c (setup_type_unit_groups): Add comment.
13
14 2015-09-30 Pedro Alves <palves@redhat.com>
15
16 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
17 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
18 (x86_linux_create_target): Don't install
19 x86_linux_always_non_stop_p.
20
21 2015-09-30 Don Breazeal <donb@codesourcery.com>
22
23 * remote.c (remote_parse_stop_reply): Call strprefix instead
24 of strncmp.
25
26 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
27
28 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
29 * gdbarch.h: Regenerate.
30 * i386-tdep.c (i386_gdbarch_init): Remove cast to
31 struct gdbarch_tdep_info *.
32 * mips-tdep.c (mips_gdbarch_init): Likewise.
33 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
34 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
35 * spu-multiarch.c (spu_gdbarch): Likewise.
36
37 2015-09-30 Kevin Buettner <kevinb@redhat.com>
38
39 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
40 record a NULL value.
41
42 2015-09-29 Kevin Buettner <kevinb@redhat.com>
43
44 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
45 and union arguments the same as pointer arguments when determining
46 size of argument.
47
48 2015-09-29 James Bowman <james.bowman@ftdichip.com>
49
50 * ft32-tdep.c: #include "opcode/ft32.h".
51 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
52 (ft32_analyze_prologue): Use FT32_* macros.
53
54 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
55
56 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
57 comment.
58
59 2015-09-28 Doug Evans <dje@google.com>
60
61 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
62
63 2015-09-28 Doug Evans <dje@google.com>
64
65 * common/filestuff.c (make_cleanup_close): Update comment.
66
67 2015-09-26 Simon Marchi <simark@nova.polymtl.ca>
68
69 * btrace.c (parse_xml_btrace_block): Fix cast of
70 xml_find_attribute's return value.
71 * memory-map.c (memory_map_start_memory): Likewise.
72 * solib-svr4.c (library_list_start_library): Likewise.
73 * solib-target.c (library_list_start_segment): Likewise.
74 (library_list_start_section): Likewise.
75 * tracepoint.c (traceframe_info_start_memory): Likewise.
76
77 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
78
79 * d-namespace.c (d_lookup_symbol): New arg langdef.
80 All callers updated. Support looking up symbol as a primitive type.
81 (lookup_module_scope): New arg langdef. All callers updated.
82 Call d_lookup_symbol directly for simple bare symbols.
83
84 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
85
86 * macrocmd.c (print_macro_callback): Add cast(s).
87 * macrotab.c (macro_bcache_str): Likewise.
88 (new_macro_definition): Likewise.
89 * main.c (captured_main): Likewise.
90 * maint.c (print_bfd_section_info): Likewise.
91 * mdebugread.c (mdebug_build_psymtabs): Likewise.
92 (basic_type): Likewise.
93 * memattr.c (mem_region_cmp): Likewise.
94 * memory-map.c (memory_map_start_memory): Likewise.
95 (memory_map_end_memory): Likewise.
96 (memory_map_start_property): Likewise.
97 (memory_map_end_property): Likewise.
98 (clear_result): Likewise.
99 * memrange.c (compare_mem_ranges): Likewise.
100 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
101 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
102 * mi/mi-console.c (mi_console_file_delete): Likewise.
103 (mi_console_file_fputs): Likewise.
104 (mi_console_raw_packet): Likewise.
105 (mi_console_file_flush): Likewise.
106 (mi_console_set_raw): Likewise.
107 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
108 (mi_new_thread): Likewise.
109 (mi_thread_exit): Likewise.
110 (mi_record_changed): Likewise.
111 (mi_inferior_added): Likewise.
112 (mi_inferior_appeared): Likewise.
113 (mi_inferior_exit): Likewise.
114 (mi_inferior_removed): Likewise.
115 (mi_interp_data): Likewise.
116 (mi_on_normal_stop): Likewise.
117 (mi_traceframe_changed): Likewise.
118 (mi_tsv_created): Likewise.
119 (mi_tsv_deleted): Likewise.
120 (mi_tsv_modified): Likewise.
121 (mi_breakpoint_created): Likewise.
122 (mi_breakpoint_deleted): Likewise.
123 (mi_breakpoint_modified): Likewise.
124 (mi_output_running_pid): Likewise.
125 (mi_inferior_count): Likewise.
126 (mi_solib_loaded): Likewise.
127 (mi_solib_unloaded): Likewise.
128 (mi_command_param_changed): Likewise.
129 (mi_memory_changed): Likewise.
130 (report_initial_inferior): Likewise.
131 (mi_ui_out): Likewise.
132 (mi_set_logging): Likewise.
133 * mi/mi-main.c (collect_cores): Likewise.
134 (print_one_inferior): Likewise.
135 (free_vector_of_ints): Likewise.
136 (free_splay_tree): Likewise.
137 (mi_execute_command): Likewise.
138 * mi/mi-out.c (mi_table_body): Likewise.
139 (mi_table_end): Likewise.
140 (mi_table_header): Likewise.
141 (mi_begin): Likewise.
142 (mi_end): Likewise.
143 (mi_field_int): Likewise.
144 (mi_field_string): Likewise.
145 (mi_field_fmt): Likewise.
146 (mi_flush): Likewise.
147 (mi_redirect): Likewise.
148 (field_separator): Likewise.
149 (mi_open): Likewise.
150 (mi_close): Likewise.
151 (mi_out_buffered): Likewise.
152 (mi_out_rewind): Likewise.
153 (mi_out_put): Likewise.
154 (mi_version): Likewise.
155 (mi_out_data_dtor): Likewise.
156 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
157 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
158 * minidebug.c (lzma_open): Likewise.
159 (lzma_pread): Likewise.
160 (lzma_close): Likewise.
161 (lzma_stat): Likewise.
162 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
163 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
164 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
165 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
166 (mips_micro_frame_cache): Likewise.
167 (mips_insn32_frame_cache): Likewise.
168 (mips_stub_frame_cache): Likewise.
169 (gdb_print_insn_mips): Likewise.
170 (value_of_mips_user_reg): Likewise.
171 (mips_gdbarch_init): Likewise.
172 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
173 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
174 (mipsnbsd_supply_gregset): Likewise.
175 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
176 (am33_collect_gregset_method): Likewise.
177 (am33_collect_fpregset_method): Likewise.
178 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
179 * moxie-tdep.c (moxie_frame_cache): Likewise.
180 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
181 (msp430_analyze_frame_prologue): Likewise.
182 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
183 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
184 (nios2_collect_gregset): Likewise.
185 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
186 (nios2_stub_frame_cache): Likewise.
187 * objc-lang.c (find_methods): Likewise.
188 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
189 (get_objfile_pspace_data): Likewise.
190 (get_objfile_bfd_data): Likewise.
191 (objfile_bfd_data_free): Likewise.
192 (add_to_objfile_sections): Likewise.
193 (do_free_objfile_cleanup): Likewise.
194 (resume_section_map_updates_cleanup): Likewise.
195 * opencl-lang.c (builtin_opencl_type): Likewise.
196 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
197 * osdata.c (osdata_start_osdata): Likewise.
198 (osdata_start_item): Likewise.
199 (osdata_start_column): Likewise.
200 (osdata_end_column): Likewise.
201 (clear_parsing_data): Likewise.
202 (osdata_free_cleanup): Likewise.
203 * parse.c (type_stack_cleanup): Likewise.
204 (exp_uses_objfile_iter): Likewise.
205 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
206 (ppc_linux_collect_gregset): Likewise.
207 (ppu2spu_prev_arch): Likewise.
208 (ppu2spu_this_id): Likewise.
209 (ppu2spu_prev_register): Likewise.
210 (ppu2spu_unwind_register): Likewise.
211 (ppu2spu_sniffer): Likewise.
212 (ppu2spu_dealloc_cache): Likewise.
213 (ppc_linux_init_abi): Likewise.
214 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
215 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
216 * progspace.c (restore_program_space): Likewise.
217 * psymtab.c (find_pc_sect_psymtab): Likewise.
218 (compare_psymbols): Likewise.
219 (psymbol_bcache_full): Likewise.
220 (allocate_psymtab): Likewise.
221 (discard_psymtabs_upto): Likewise.
222 * python/py-block.c (set_block): Likewise.
223 (del_objfile_blocks): Likewise.
224 * python/py-breakpoint.c (build_bp_list): Likewise.
225 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
226 (build_inferior_list): Likewise.
227 (py_free_inferior): Likewise.
228 * python/py-objfile.c (py_free_objfile): Likewise.
229 (objfile_to_objfile_object): Likewise.
230 * python/py-prettyprint.c (py_restore_tstate): Likewise.
231 * python/py-progspace.c (py_free_pspace): Likewise.
232 (pspace_to_pspace_object): Likewise.
233 * python/py-symbol.c (set_symbol): Likewise.
234 (del_objfile_symbols): Likewise.
235 * python/py-symtab.c (set_sal): Likewise.
236 (set_symtab): Likewise.
237 (del_objfile_symtab): Likewise.
238 (del_objfile_sal): Likewise.
239 * python/py-type.c (save_objfile_types): Likewise.
240 (set_type): Likewise.
241 * python/py-unwind.c (pyuw_prev_register): Likewise.
242 (pyuw_on_new_gdbarch): Likewise.
243 * python/py-utils.c (py_decref): Likewise.
244 (py_xdecref): Likewise.
245 (gdb_py_generic_dict): Likewise.
246 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
247 (gdbpy_clone_xmethod_worker_data): Likewise.
248 (gdbpy_get_xmethod_arg_types): Likewise.
249 (gdbpy_get_xmethod_result_type): Likewise.
250 (gdbpy_invoke_xmethod): Likewise.
251 * python/python.c (gdbpy_apply_type_printers): Likewise.
252 (gdbpy_free_type_printers): Likewise.
253 * record-btrace.c (record_btrace_disable_callback): Likewise.
254 (bfcache_hash): Likewise.
255 (bfcache_eq): Likewise.
256 (btrace_get_frame_function): Likewise.
257 (record_btrace_frame_unwind_stop_reason): Likewise.
258 (record_btrace_frame_this_id): Likewise.
259 (record_btrace_frame_prev_register): Likewise.
260 (record_btrace_frame_dealloc_cache): Likewise.
261 * record-full.c (record_full_message_wrapper): Likewise.
262 (record_full_save_cleanups): Likewise.
263 * regcache.c (regcache_descr): Likewise.
264 (do_regcache_xfree): Likewise.
265 (do_regcache_invalidate): Likewise.
266 (do_cooked_read): Likewise.
267 (regcache_transfer_regset): Likewise.
268 * reggroups.c (reggroup_add): Likewise.
269 (reggroup_next): Likewise.
270 (reggroup_prev): Likewise.
271 * remote-fileio.c (do_remote_fileio_request): Likewise.
272 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
273 (do_notif_event_xfree): Likewise.
274 * remote.c (get_remote_arch_state): Likewise.
275 (remote_pspace_data_cleanup): Likewise.
276 (get_remote_exec_file): Likewise.
277 (set_pspace_remote_exec_file): Likewise.
278 (compare_pnums): Likewise.
279 (clear_threads_listing_context): Likewise.
280 (remote_newthread_step): Likewise.
281 (start_thread): Likewise.
282 (end_thread): Likewise.
283 (remove_child_of_pending_fork): Likewise.
284 (remove_stop_reply_for_inferior): Likewise.
285 (remove_stop_reply_of_remote_state): Likewise.
286 (remote_notif_remove_once_on_match): Likewise.
287 (stop_reply_match_ptid_and_ws): Likewise.
288 (kill_child_of_pending_fork): Likewise.
289 (register_remote_g_packet_guess): Likewise.
290 (remote_read_description_p): Likewise.
291 (remote_read_description): Likewise.
292 (free_actions_list_cleanup_wrapper): Likewise.
293 (remote_async_serial_handler): Likewise.
294 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
295 (rl78_analyze_frame_prologue): Likewise.
296 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
297 (ppc_supply_fpregset): Likewise.
298 (ppc_supply_vsxregset): Likewise.
299 (ppc_supply_vrregset): Likewise.
300 (ppc_collect_gregset): Likewise.
301 (ppc_collect_fpregset): Likewise.
302 (ppc_collect_vsxregset): Likewise.
303 (ppc_collect_vrregset): Likewise.
304 (e500_move_ev_register): Likewise.
305 (do_regcache_raw_write): Likewise.
306 (rs6000_frame_cache): Likewise.
307 (rs6000_epilogue_frame_cache): Likewise.
308 (rs6000_gdbarch_init): Likewise.
309 * rx-tdep.c (rx_get_opcode_byte): Likewise.
310 (rx_analyze_frame_prologue): Likewise.
311 (rx_frame_type): Likewise.
312 (rx_frame_sniffer_common): Likewise.
313 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
314 (s390_frame_unwind_cache): Likewise.
315 (s390_stub_frame_unwind_cache): Likewise.
316 (s390_sigtramp_frame_unwind_cache): Likewise.
317 * score-tdep.c (score_make_prologue_cache): Likewise.
318 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
319 (sentinel_frame_prev_arch): Likewise.
320 * ser-base.c (fd_event): Likewise.
321 (push_event): Likewise.
322 (ser_base_write): Likewise.
323 * ser-pipe.c (pipe_close): Likewise.
324 * serial.c (serial_write): Likewise.
325 * sh-tdep.c (sh_frame_cache): Likewise.
326 (sh_stub_this_id): Likewise.
327 * sh64-tdep.c (sh64_frame_cache): Likewise.
328 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
329 (library_list_start_library): Likewise.
330 (library_list_start_list): Likewise.
331 (solib_aix_free_library_list): Likewise.
332 * solib-darwin.c (get_darwin_info): Likewise.
333 * solib-dsbt.c (get_dsbt_info): Likewise.
334 * solib-spu.c (append_ocl_sos): Likewise.
335 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
336 (get_svr4_info): Likewise.
337 (library_list_start_library): Likewise.
338 (svr4_library_list_start_list): Likewise.
339 (hash_probe_and_action): Likewise.
340 (equal_probe_and_action): Likewise.
341 (svr4_update_solib_event_breakpoint): Likewise.
342 (set_solib_svr4_fetch_link_map_offsets): Likewise.
343 (svr4_fetch_link_map_offsets): Likewise.
344 (svr4_have_link_map_offsets): Likewise.
345 * solib-target.c (library_list_start_segment): Likewise.
346 (library_list_start_section): Likewise.
347 (library_list_start_library): Likewise.
348 (library_list_end_library): Likewise.
349 (library_list_start_list): Likewise.
350 (solib_target_free_library_list): Likewise.
351 * solib.c (solib_ops): Likewise.
352 (set_solib_ops): Likewise.
353 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
354 * sparc-tdep.c (sparc_frame_cache): Likewise.
355 (sparc32_frame_cache): Likewise.
356 (sparc32_supply_gregset): Likewise.
357 (sparc32_collect_gregset): Likewise.
358 (sparc32_supply_fpregset): Likewise.
359 (sparc32_collect_fpregset): Likewise.
360 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
361 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
362 (sparc64_collect_gregset): Likewise.
363 (sparc64_supply_fpregset): Likewise.
364 (sparc64_collect_fpregset): Likewise.
365 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
366 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
367 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
368 (sparc64obsd_trapframe_cache): Likewise.
369 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
370 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
371 * spu-multiarch.c (spu_gdbarch): Likewise.
372 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
373 (spu2ppu_prev_arch): Likewise.
374 (spu2ppu_this_id): Likewise.
375 (spu2ppu_prev_register): Likewise.
376 (spu2ppu_dealloc_cache): Likewise.
377 (spu_dis_asm_print_address): Likewise.
378 (gdb_print_insn_spu): Likewise.
379 (spu_get_overlay_table): Likewise.
380 * stabsread.c (rs6000_builtin_type): Likewise.
381 * stack.c (do_print_variable_and_value): Likewise.
382 * stap-probe.c (get_stap_base_address_1): Likewise.
383 * symfile-debug.c (debug_qf_has_symbols): Likewise.
384 (debug_qf_find_last_source_symtab): Likewise.
385 (debug_qf_forget_cached_source_info): Likewise.
386 (debug_qf_map_symtabs_matching_filename): Likewise.
387 (debug_qf_lookup_symbol): Likewise.
388 (debug_qf_print_stats): Likewise.
389 (debug_qf_dump): Likewise.
390 (debug_qf_relocate): Likewise.
391 (debug_qf_expand_symtabs_for_function): Likewise.
392 (debug_qf_expand_all_symtabs): Likewise.
393 (debug_qf_expand_symtabs_with_fullname): Likewise.
394 (debug_qf_map_matching_symbols): Likewise.
395 (debug_qf_expand_symtabs_matching): Likewise.
396 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
397 (debug_qf_map_symbol_filenames): Likewise.
398 (debug_sym_get_probes): Likewise.
399 (debug_sym_new_init): Likewise.
400 (debug_sym_init): Likewise.
401 (debug_sym_read): Likewise.
402 (debug_sym_read_psymbols): Likewise.
403 (debug_sym_finish): Likewise.
404 (debug_sym_offsets): Likewise.
405 (debug_sym_read_linetable): Likewise.
406 (debug_sym_relocate): Likewise.
407 (uninstall_symfile_debug_logging): Likewise.
408 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
409 * symfile.c (place_section): Likewise.
410 (add_section_size_callback): Likewise.
411 (load_progress): Likewise.
412 (load_section_callback): Likewise.
413 (clear_memory_write_data): Likewise.
414 (allocate_symtab): Likewise.
415 * symmisc.c (maintenance_expand_file_matcher): Likewise.
416 * symtab.c (lookup_symtab_callback): Likewise.
417 (hash_demangled_name_entry): Likewise.
418 (eq_demangled_name_entry): Likewise.
419 (get_symbol_cache): Likewise.
420 (symbol_cache_cleanup): Likewise.
421 (set_symbol_cache_size): Likewise.
422 (symbol_cache_flush): Likewise.
423 (maintenance_print_symbol_cache): Likewise.
424 (maintenance_print_symbol_cache_statistics): Likewise.
425 (delete_filename_seen_cache): Likewise.
426 (output_partial_symbol_filename): Likewise.
427 (search_symbols_file_matches): Likewise.
428 (search_symbols_name_matches): Likewise.
429 (do_free_completion_list): Likewise.
430 (maybe_add_partial_symtab_filename): Likewise.
431 (get_main_info): Likewise.
432 (main_info_cleanup): Likewise.
433 * target-dcache.c (target_dcache_cleanup): Likewise.
434 (target_dcache_init_p): Likewise.
435 (target_dcache_invalidate): Likewise.
436 (target_dcache_get): Likewise.
437 (target_dcache_get_or_init): Likewise.
438 * target-descriptions.c (target_find_description): Likewise.
439 (tdesc_find_type): Likewise.
440 (tdesc_data_cleanup): Likewise.
441 (tdesc_find_arch_register): Likewise.
442 (tdesc_register_name): Likewise.
443 (tdesc_register_type): Likewise.
444 (tdesc_register_reggroup_p): Likewise.
445 (set_tdesc_pseudo_register_name): Likewise.
446 (set_tdesc_pseudo_register_type): Likewise.
447 (set_tdesc_pseudo_register_reggroup_p): Likewise.
448 (tdesc_use_registers): Likewise.
449 (free_target_description): Likewise.
450 * target-memory.c (compare_block_starting_address): Likewise.
451 (cleanup_request_data): Likewise.
452 (cleanup_write_requests_vector): Likewise.
453 * target.c (open_target): Likewise.
454 (cleanup_restore_target_terminal): Likewise.
455 (free_memory_read_result_vector): Likewise.
456 * thread.c (disable_thread_stack_temporaries): Likewise.
457 (finish_thread_state_cleanup): Likewise.
458 (do_restore_current_thread_cleanup): Likewise.
459 (restore_current_thread_cleanup_dtor): Likewise.
460 (set_thread_refcount): Likewise.
461 (tp_array_compar): Likewise.
462 (do_captured_thread_select): Likewise.
463 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
464 (tic6x_stub_this_id): Likewise.
465 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
466 * top.c (do_restore_instream_cleanup): Likewise.
467 (gdb_readline_wrapper_cleanup): Likewise.
468 (kill_or_detach): Likewise.
469 (print_inferior_quit_action): Likewise.
470 * tracefile-tfile.c (match_blocktype): Likewise.
471 (build_traceframe_info): Likewise.
472 * tracefile.c (trace_file_writer_xfree): Likewise.
473 * tracepoint.c (memrange_cmp): Likewise.
474 (do_collect_symbol): Likewise.
475 (do_clear_collection_list): Likewise.
476 (do_restore_current_traceframe_cleanup): Likewise.
477 (restore_current_traceframe_cleanup_dtor): Likewise.
478 (free_current_marker): Likewise.
479 (traceframe_info_start_memory): Likewise.
480 (traceframe_info_start_tvar): Likewise.
481 (free_result): Likewise.
482 * tramp-frame.c (tramp_frame_cache): Likewise.
483 * tui/tui-file.c (tui_file_delete): Likewise.
484 (tui_fileopen): Likewise.
485 (tui_sfileopen): Likewise.
486 (tui_file_isatty): Likewise.
487 (tui_file_rewind): Likewise.
488 (tui_file_put): Likewise.
489 (tui_file_fputs): Likewise.
490 (tui_file_get_strbuf): Likewise.
491 (tui_file_adjust_strbuf): Likewise.
492 (tui_file_flush): Likewise.
493 * tui/tui-layout.c (make_command_window): Likewise.
494 (make_data_window): Likewise.
495 (show_source_disasm_command): Likewise.
496 (show_data): Likewise.
497 (make_source_or_disasm_window): Likewise.
498 (show_source_or_disasm_and_command): Likewise.
499 * tui/tui-out.c (tui_field_int): Likewise.
500 (tui_field_string): Likewise.
501 (tui_field_fmt): Likewise.
502 (tui_text): Likewise.
503 * typeprint.c (hash_typedef_field): Likewise.
504 (eq_typedef_field): Likewise.
505 (do_free_typedef_hash): Likewise.
506 (copy_typedef_hash_element): Likewise.
507 (do_free_global_table): Likewise.
508 (find_global_typedef): Likewise.
509 (find_typedef_in_hash): Likewise.
510 * ui-file.c (ui_file_write_for_put): Likewise.
511 (do_ui_file_xstrdup): Likewise.
512 (mem_file_delete): Likewise.
513 (mem_file_rewind): Likewise.
514 (mem_file_put): Likewise.
515 (mem_file_write): Likewise.
516 (stdio_file_delete): Likewise.
517 (stdio_file_flush): Likewise.
518 (stdio_file_read): Likewise.
519 (stdio_file_write): Likewise.
520 (stdio_file_write_async_safe): Likewise.
521 (stdio_file_fputs): Likewise.
522 (stdio_file_isatty): Likewise.
523 (stdio_file_fseek): Likewise.
524 (tee_file_delete): Likewise.
525 (tee_file_flush): Likewise.
526 (tee_file_write): Likewise.
527 (tee_file_fputs): Likewise.
528 (tee_file_isatty): Likewise.
529 * ui-out.c (do_cleanup_table_end): Likewise.
530 (do_cleanup_end): Likewise.
531 * user-regs.c (user_reg_add): Likewise.
532 (user_reg_map_name_to_regnum): Likewise.
533 (usernum_to_user_reg): Likewise.
534 (maintenance_print_user_registers): Likewise.
535 * utils.c (do_bfd_close_cleanup): Likewise.
536 (do_fclose_cleanup): Likewise.
537 (do_obstack_free): Likewise.
538 (do_ui_file_delete): Likewise.
539 (do_ui_out_redirect_pop): Likewise.
540 (do_free_section_addr_info): Likewise.
541 (restore_integer): Likewise.
542 (do_unpush_target): Likewise.
543 (do_htab_delete_cleanup): Likewise.
544 (do_restore_ui_file): Likewise.
545 (do_value_free): Likewise.
546 (do_free_so): Likewise.
547 (free_current_contents): Likewise.
548 (do_regfree_cleanup): Likewise.
549 (core_addr_hash): Likewise.
550 (core_addr_eq): Likewise.
551 (do_free_char_ptr_vec): Likewise.
552 * v850-tdep.c (v850_frame_cache): Likewise.
553 * varobj.c (do_free_variable_cleanup): Likewise.
554 * vax-tdep.c (vax_supply_gregset): Likewise.
555 (vax_frame_cache): Likewise.
556 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
557 * xml-support.c (gdb_xml_body_text): Likewise.
558 (gdb_xml_values_cleanup): Likewise.
559 (gdb_xml_start_element): Likewise.
560 (gdb_xml_start_element_wrapper): Likewise.
561 (gdb_xml_end_element): Likewise.
562 (gdb_xml_end_element_wrapper): Likewise.
563 (gdb_xml_cleanup): Likewise.
564 (gdb_xml_fetch_external_entity): Likewise.
565 (gdb_xml_parse_attr_enum): Likewise.
566 (xinclude_start_include): Likewise.
567 (xinclude_end_include): Likewise.
568 (xml_xinclude_default): Likewise.
569 (xml_xinclude_start_doctype): Likewise.
570 (xml_xinclude_end_doctype): Likewise.
571 (xml_xinclude_cleanup): Likewise.
572 (xml_fetch_content_from_file): Likewise.
573 * xml-syscall.c (free_syscalls_info): Likewise.
574 (syscall_start_syscall): Likewise.
575 * xml-tdesc.c (tdesc_end_arch): Likewise.
576 (tdesc_end_osabi): Likewise.
577 (tdesc_end_compatible): Likewise.
578 (tdesc_start_target): Likewise.
579 (tdesc_start_feature): Likewise.
580 (tdesc_start_reg): Likewise.
581 (tdesc_start_union): Likewise.
582 (tdesc_start_struct): Likewise.
583 (tdesc_start_flags): Likewise.
584 (tdesc_start_field): Likewise.
585 (tdesc_start_vector): Likewise.
586 (fetch_available_features_from_target): Likewise.
587 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
588 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
589 (xtensa_frame_cache): Likewise.
590 (xtensa_frame_prev_register): Likewise.
591 (xtensa_extract_return_value): Likewise.
592
593 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
594
595 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
596 (aarch64_make_stub_cache): Likewise.
597 (value_of_aarch64_user_reg): Likewise.
598 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
599 (get_ada_inferior_data): Likewise.
600 (get_ada_pspace_data): Likewise.
601 (ada_pspace_data_cleanup): Likewise.
602 (ada_complete_symbol_matcher): Likewise.
603 (ada_exc_search_name_matches): Likewise.
604 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
605 (get_ada_tasks_inferior_data): Likewise.
606 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
607 (splay_obstack_alloc): Likewise.
608 (splay_obstack_free): Likewise.
609 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
610 (alpha_linux_collect_gregset): Likewise.
611 (alpha_linux_supply_fpregset): Likewise.
612 (alpha_linux_collect_fpregset): Likewise.
613 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
614 * alpha-tdep.c (alpha_lds): Likewise.
615 (alpha_sts): Likewise.
616 (alpha_sigtramp_frame_unwind_cache): Likewise.
617 (alpha_heuristic_frame_unwind_cache): Likewise.
618 (alpha_supply_int_regs): Likewise.
619 (alpha_fill_int_regs): Likewise.
620 (alpha_supply_fp_regs): Likewise.
621 (alpha_fill_fp_regs): Likewise.
622 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
623 (alphanbsd_aout_supply_gregset): Likewise.
624 (alphanbsd_supply_gregset): Likewise.
625 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
626 (amd64_x32_linux_init_abi): Likewise.
627 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
628 (amd64_collect_native_gregset): Likewise.
629 * amd64-tdep.c (amd64_frame_cache): Likewise.
630 (amd64_sigtramp_frame_cache): Likewise.
631 (amd64_epilogue_frame_cache): Likewise.
632 (amd64_supply_fxsave): Likewise.
633 (amd64_supply_xsave): Likewise.
634 (amd64_collect_fxsave): Likewise.
635 (amd64_collect_xsave): Likewise.
636 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
637 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
638 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
639 (arm_linux_collect_gregset): Likewise.
640 (arm_linux_supply_nwfpe): Likewise.
641 (arm_linux_collect_nwfpe): Likewise.
642 (arm_linux_supply_vfp): Likewise.
643 (arm_linux_collect_vfp): Likewise.
644 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
645 (arm_prologue_unwind_stop_reason): Likewise.
646 (arm_prologue_this_id): Likewise.
647 (arm_prologue_prev_register): Likewise.
648 (arm_exidx_data_free): Likewise.
649 (arm_find_exidx_entry): Likewise.
650 (arm_stub_this_id): Likewise.
651 (arm_m_exception_this_id): Likewise.
652 (arm_m_exception_prev_register): Likewise.
653 (arm_normal_frame_base): Likewise.
654 (gdb_print_insn_arm): Likewise.
655 (arm_objfile_data_free): Likewise.
656 (arm_record_special_symbol): Likewise.
657 (value_of_arm_user_reg): Likewise.
658 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
659 (armbsd_supply_gregset): Likewise.
660 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
661 (get_auto_load_pspace_data): Likewise.
662 (hash_loaded_script_entry): Likewise.
663 (eq_loaded_script_entry): Likewise.
664 (clear_section_scripts): Likewise.
665 (collect_matching_scripts): Likewise.
666 * auxv.c (auxv_inferior_data_cleanup): Likewise.
667 (get_auxv_inferior_data): Likewise.
668 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
669 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
670 * bfd-target.c (target_bfd_xfer_partial): Likewise.
671 (target_bfd_xclose): Likewise.
672 (target_bfd_get_section_table): Likewise.
673 * bfin-tdep.c (bfin_frame_cache): Likewise.
674 * block.c (find_block_in_blockvector): Likewise.
675 (call_site_for_pc): Likewise.
676 (block_find_non_opaque_type_preferred): Likewise.
677 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
678 (signal_catchpoint_remove_location): Likewise.
679 (signal_catchpoint_breakpoint_hit): Likewise.
680 (signal_catchpoint_print_one): Likewise.
681 (signal_catchpoint_print_mention): Likewise.
682 (signal_catchpoint_print_recreate): Likewise.
683 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
684 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
685 (bp_location_compare_addrs): Likewise.
686 (get_first_locp_gte_addr): Likewise.
687 (check_tracepoint_command): Likewise.
688 (do_map_commands_command): Likewise.
689 (get_breakpoint_objfile_data): Likewise.
690 (free_breakpoint_probes): Likewise.
691 (do_captured_breakpoint_query): Likewise.
692 (compare_breakpoints): Likewise.
693 (bp_location_compare): Likewise.
694 (bpstat_remove_breakpoint_callback): Likewise.
695 (do_delete_breakpoint_cleanup): Likewise.
696 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
697 (bsd_uthread_set_collect_uthread): Likewise.
698 (bsd_uthread_activate): Likewise.
699 (bsd_uthread_fetch_registers): Likewise.
700 (bsd_uthread_store_registers): Likewise.
701 * btrace.c (check_xml_btrace_version): Likewise.
702 (parse_xml_btrace_block): Likewise.
703 (parse_xml_btrace_pt_config_cpu): Likewise.
704 (parse_xml_btrace_pt_raw): Likewise.
705 (parse_xml_btrace_pt): Likewise.
706 (parse_xml_btrace_conf_bts): Likewise.
707 (parse_xml_btrace_conf_pt): Likewise.
708 (do_btrace_data_cleanup): Likewise.
709 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
710 * charset.c (cleanup_iconv): Likewise.
711 (do_cleanup_iterator): Likewise.
712 * cli-out.c (cli_uiout_dtor): Likewise.
713 (cli_table_begin): Likewise.
714 (cli_table_body): Likewise.
715 (cli_table_end): Likewise.
716 (cli_table_header): Likewise.
717 (cli_begin): Likewise.
718 (cli_end): Likewise.
719 (cli_field_int): Likewise.
720 (cli_field_skip): Likewise.
721 (cli_field_string): Likewise.
722 (cli_field_fmt): Likewise.
723 (cli_spaces): Likewise.
724 (cli_text): Likewise.
725 (cli_message): Likewise.
726 (cli_wrap_hint): Likewise.
727 (cli_flush): Likewise.
728 (cli_redirect): Likewise.
729 (out_field_fmt): Likewise.
730 (field_separator): Likewise.
731 (cli_out_set_stream): Likewise.
732 * cli/cli-cmds.c (compare_symtabs): Likewise.
733 * cli/cli-dump.c (call_dump_func): Likewise.
734 (restore_section_callback): Likewise.
735 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
736 (do_restore_user_call_depth): Likewise.
737 (do_free_command_lines_cleanup): Likewise.
738 * coff-pe-read.c (get_section_vmas): Likewise.
739 (pe_as16): Likewise.
740 (pe_as32): Likewise.
741 * coffread.c (coff_symfile_read): Likewise.
742 * common/agent.c (agent_look_up_symbols): Likewise.
743 * common/filestuff.c (do_close_cleanup): Likewise.
744 * common/format.c (free_format_pieces_cleanup): Likewise.
745 * common/vec.c (vec_o_reserve): Likewise.
746 * compile/compile-c-support.c (print_one_macro): Likewise.
747 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
748 (eq_symbol_error): Likewise.
749 (del_symbol_error): Likewise.
750 (error_symbol_once): Likewise.
751 (gcc_convert_symbol): Likewise.
752 (gcc_symbol_address): Likewise.
753 (hash_symname): Likewise.
754 (eq_symname): Likewise.
755 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
756 (eq_type_map_instance): Likewise.
757 (insert_type): Likewise.
758 (convert_type): Likewise.
759 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
760 (setup_sections): Likewise.
761 (link_hash_table_free): Likewise.
762 (copy_sections): Likewise.
763 * compile/compile-object-run.c (do_module_cleanup): Likewise.
764 * compile/compile.c (compile_print_value): Likewise.
765 (do_rmdir): Likewise.
766 (cleanup_compile_instance): Likewise.
767 (cleanup_unlink_file): Likewise.
768 * completer.c (free_completion_tracker): Likewise.
769 * corelow.c (add_to_spuid_list): Likewise.
770 * cp-namespace.c (reset_directive_searched): Likewise.
771 * cp-support.c (reset_directive_searched): Likewise.
772 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
773 (cris_frame_unwind_cache): Likewise.
774 * d-lang.c (builtin_d_type): Likewise.
775 * d-namespace.c (reset_directive_searched): Likewise.
776 * dbxread.c (dbx_free_symfile_info): Likewise.
777 (do_free_bincl_list_cleanup): Likewise.
778 * disasm.c (hash_dis_line_entry): Likewise.
779 (eq_dis_line_entry): Likewise.
780 (dis_asm_print_address): Likewise.
781 (fprintf_disasm): Likewise.
782 (do_ui_file_delete): Likewise.
783 * doublest.c (convert_floatformat_to_doublest): Likewise.
784 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
785 (dummy_frame_prev_register): Likewise.
786 (dummy_frame_this_id): Likewise.
787 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
788 (cache_eq): Likewise.
789 (cache_find): Likewise.
790 (tailcall_frame_this_id): Likewise.
791 (dwarf2_tailcall_prev_register_first): Likewise.
792 (tailcall_frame_prev_register): Likewise.
793 (tailcall_frame_dealloc_cache): Likewise.
794 (tailcall_frame_prev_arch): Likewise.
795 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
796 (dwarf2_frame_set_init_reg): Likewise.
797 (dwarf2_frame_init_reg): Likewise.
798 (dwarf2_frame_set_signal_frame_p): Likewise.
799 (dwarf2_frame_signal_frame_p): Likewise.
800 (dwarf2_frame_set_adjust_regnum): Likewise.
801 (dwarf2_frame_adjust_regnum): Likewise.
802 (clear_pointer_cleanup): Likewise.
803 (dwarf2_frame_cache): Likewise.
804 (find_cie): Likewise.
805 (dwarf2_frame_find_fde): Likewise.
806 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
807 (free_dwarf_expr_context_cleanup): Likewise.
808 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
809 (locexpr_get_frame_base): Likewise.
810 (loclist_find_frame_base_location): Likewise.
811 (loclist_get_frame_base): Likewise.
812 (dwarf_expr_dwarf_call): Likewise.
813 (dwarf_expr_get_base_type): Likewise.
814 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
815 (dwarf_expr_get_obj_addr): Likewise.
816 (entry_data_value_coerce_ref): Likewise.
817 (entry_data_value_copy_closure): Likewise.
818 (entry_data_value_free_closure): Likewise.
819 (get_frame_address_in_block_wrapper): Likewise.
820 (dwarf2_evaluate_property): Likewise.
821 (dwarf2_compile_property_to_c): Likewise.
822 (needs_frame_read_addr_from_reg): Likewise.
823 (needs_frame_get_reg_value): Likewise.
824 (needs_frame_frame_base): Likewise.
825 (needs_frame_frame_cfa): Likewise.
826 (needs_frame_tls_address): Likewise.
827 (needs_frame_dwarf_call): Likewise.
828 (needs_dwarf_reg_entry_value): Likewise.
829 (get_ax_pc): Likewise.
830 (locexpr_read_variable): Likewise.
831 (locexpr_read_variable_at_entry): Likewise.
832 (locexpr_read_needs_frame): Likewise.
833 (locexpr_describe_location): Likewise.
834 (locexpr_tracepoint_var_ref): Likewise.
835 (locexpr_generate_c_location): Likewise.
836 (loclist_read_variable): Likewise.
837 (loclist_read_variable_at_entry): Likewise.
838 (loclist_describe_location): Likewise.
839 (loclist_tracepoint_var_ref): Likewise.
840 (loclist_generate_c_location): Likewise.
841 * dwarf2read.c (line_header_hash_voidp): Likewise.
842 (line_header_eq_voidp): Likewise.
843 (dwarf2_has_info): Likewise.
844 (dwarf2_get_section_info): Likewise.
845 (locate_dwz_sections): Likewise.
846 (hash_file_name_entry): Likewise.
847 (eq_file_name_entry): Likewise.
848 (delete_file_name_entry): Likewise.
849 (dw2_setup): Likewise.
850 (dw2_get_file_names_reader): Likewise.
851 (dw2_find_pc_sect_compunit_symtab): Likewise.
852 (hash_signatured_type): Likewise.
853 (eq_signatured_type): Likewise.
854 (add_signatured_type_cu_to_table): Likewise.
855 (create_debug_types_hash_table): Likewise.
856 (lookup_dwo_signatured_type): Likewise.
857 (lookup_dwp_signatured_type): Likewise.
858 (lookup_signatured_type): Likewise.
859 (hash_type_unit_group): Likewise.
860 (eq_type_unit_group): Likewise.
861 (get_type_unit_group): Likewise.
862 (process_psymtab_comp_unit_reader): Likewise.
863 (sort_tu_by_abbrev_offset): Likewise.
864 (process_skeletonless_type_unit): Likewise.
865 (psymtabs_addrmap_cleanup): Likewise.
866 (dwarf2_read_symtab): Likewise.
867 (psymtab_to_symtab_1): Likewise.
868 (die_hash): Likewise.
869 (die_eq): Likewise.
870 (load_full_comp_unit_reader): Likewise.
871 (reset_die_in_process): Likewise.
872 (free_cu_line_header): Likewise.
873 (handle_DW_AT_stmt_list): Likewise.
874 (hash_dwo_file): Likewise.
875 (eq_dwo_file): Likewise.
876 (hash_dwo_unit): Likewise.
877 (eq_dwo_unit): Likewise.
878 (create_dwo_cu_reader): Likewise.
879 (create_dwo_unit_in_dwp_v1): Likewise.
880 (create_dwo_unit_in_dwp_v2): Likewise.
881 (lookup_dwo_unit_in_dwp): Likewise.
882 (dwarf2_locate_dwo_sections): Likewise.
883 (dwarf2_locate_common_dwp_sections): Likewise.
884 (dwarf2_locate_v2_dwp_sections): Likewise.
885 (hash_dwp_loaded_cutus): Likewise.
886 (eq_dwp_loaded_cutus): Likewise.
887 (lookup_dwo_cutu): Likewise.
888 (abbrev_table_free_cleanup): Likewise.
889 (dwarf2_free_abbrev_table): Likewise.
890 (find_partial_die_in_comp_unit): Likewise.
891 (free_line_header_voidp): Likewise.
892 (follow_die_offset): Likewise.
893 (follow_die_sig_1): Likewise.
894 (free_heap_comp_unit): Likewise.
895 (free_stack_comp_unit): Likewise.
896 (dwarf2_free_objfile): Likewise.
897 (per_cu_offset_and_type_hash): Likewise.
898 (per_cu_offset_and_type_eq): Likewise.
899 (get_die_type_at_offset): Likewise.
900 (partial_die_hash): Likewise.
901 (partial_die_eq): Likewise.
902 (dwarf2_per_objfile_free): Likewise.
903 (hash_strtab_entry): Likewise.
904 (eq_strtab_entry): Likewise.
905 (add_string): Likewise.
906 (hash_symtab_entry): Likewise.
907 (eq_symtab_entry): Likewise.
908 (delete_symtab_entry): Likewise.
909 (cleanup_mapped_symtab): Likewise.
910 (add_indices_to_cpool): Likewise.
911 (hash_psymtab_cu_index): Likewise.
912 (eq_psymtab_cu_index): Likewise.
913 (add_address_entry_worker): Likewise.
914 (unlink_if_set): Likewise.
915 (write_one_signatured_type): Likewise.
916 (save_gdb_index_command): Likewise.
917 * elfread.c (elf_symtab_read): Likewise.
918 (elf_gnu_ifunc_cache_hash): Likewise.
919 (elf_gnu_ifunc_cache_eq): Likewise.
920 (elf_gnu_ifunc_record_cache): Likewise.
921 (elf_gnu_ifunc_resolve_by_cache): Likewise.
922 (elf_get_probes): Likewise.
923 (probe_key_free): Likewise.
924 * f-lang.c (builtin_f_type): Likewise.
925 * frame-base.c (frame_base_append_sniffer): Likewise.
926 (frame_base_set_default): Likewise.
927 (frame_base_find_by_frame): Likewise.
928 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
929 (frame_unwind_append_unwinder): Likewise.
930 (frame_unwind_find_by_frame): Likewise.
931 * frame.c (frame_addr_hash): Likewise.
932 (frame_addr_hash_eq): Likewise.
933 (frame_stash_find): Likewise.
934 (do_frame_register_read): Likewise.
935 (unwind_to_current_frame): Likewise.
936 (frame_cleanup_after_sniffer): Likewise.
937 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
938 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
939 * ft32-tdep.c (ft32_frame_cache): Likewise.
940 * gcore.c (do_bfd_delete_cleanup): Likewise.
941 (gcore_create_callback): Likewise.
942 * gdb_bfd.c (hash_bfd): Likewise.
943 (eq_bfd): Likewise.
944 (gdb_bfd_open): Likewise.
945 (free_one_bfd_section): Likewise.
946 (gdb_bfd_ref): Likewise.
947 (gdb_bfd_unref): Likewise.
948 (get_section_descriptor): Likewise.
949 (gdb_bfd_map_section): Likewise.
950 (gdb_bfd_crc): Likewise.
951 (gdb_bfd_mark_parent): Likewise.
952 (gdb_bfd_record_inclusion): Likewise.
953 (gdb_bfd_requires_relocations): Likewise.
954 (print_one_bfd): Likewise.
955 * gdbtypes.c (type_pair_hash): Likewise.
956 (type_pair_eq): Likewise.
957 (builtin_type): Likewise.
958 (objfile_type): Likewise.
959 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
960 (vtable_address_point_offset): Likewise.
961 (gnuv3_get_vtable): Likewise.
962 (hash_value_and_voffset): Likewise.
963 (eq_value_and_voffset): Likewise.
964 (compare_value_and_voffset): Likewise.
965 (compute_vtable_size): Likewise.
966 (gnuv3_get_typeid_type): Likewise.
967 * go-lang.c (builtin_go_type): Likewise.
968 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
969 (bkscm_eq_block_smob): Likewise.
970 (bkscm_objfile_block_map): Likewise.
971 (bkscm_del_objfile_blocks): Likewise.
972 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
973 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
974 (gdbscm_disasm_print_address): Likewise.
975 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
976 (frscm_eq_frame_smob): Likewise.
977 (frscm_inferior_frame_map): Likewise.
978 (frscm_del_inferior_frames): Likewise.
979 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
980 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
981 (ofscm_objfile_smob_from_objfile): Likewise.
982 * guile/scm-ports.c (ioscm_write): Likewise.
983 (ioscm_file_port_delete): Likewise.
984 (ioscm_file_port_rewind): Likewise.
985 (ioscm_file_port_put): Likewise.
986 (ioscm_file_port_write): Likewise.
987 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
988 (psscm_pspace_smob_from_pspace): Likewise.
989 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
990 (scscm_recording_unwind_handler): Likewise.
991 (gdbscm_with_catch): Likewise.
992 (scscm_call_0_body): Likewise.
993 (scscm_call_1_body): Likewise.
994 (scscm_call_2_body): Likewise.
995 (scscm_call_3_body): Likewise.
996 (scscm_call_4_body): Likewise.
997 (scscm_apply_1_body): Likewise.
998 (scscm_eval_scheme_string): Likewise.
999 (gdbscm_safe_eval_string): Likewise.
1000 (scscm_source_scheme_script): Likewise.
1001 (gdbscm_safe_source_script): Likewise.
1002 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1003 (gdbscm_call_scm_from_stringn): Likewise.
1004 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1005 (syscm_eq_symbol_smob): Likewise.
1006 (syscm_get_symbol_map): Likewise.
1007 (syscm_del_objfile_symbols): Likewise.
1008 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1009 (stscm_eq_symtab_smob): Likewise.
1010 (stscm_objfile_symtab_map): Likewise.
1011 (stscm_del_objfile_symtabs): Likewise.
1012 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1013 (tyscm_eq_type_smob): Likewise.
1014 (tyscm_type_map): Likewise.
1015 (tyscm_copy_type_recursive): Likewise.
1016 (save_objfile_types): Likewise.
1017 * guile/scm-utils.c (extract_arg): Likewise.
1018 * h8300-tdep.c (h8300_frame_cache): Likewise.
1019 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1020 * hppa-tdep.c (compare_unwind_entries): Likewise.
1021 (find_unwind_entry): Likewise.
1022 (hppa_frame_cache): Likewise.
1023 (hppa_stub_frame_unwind_cache): Likewise.
1024 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1025 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1026 (hppaobsd_supply_fpregset): Likewise.
1027 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1028 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1029 * i386-tdep.c (i386_frame_cache): Likewise.
1030 (i386_epilogue_frame_cache): Likewise.
1031 (i386_sigtramp_frame_cache): Likewise.
1032 (i386_supply_gregset): Likewise.
1033 (i386_collect_gregset): Likewise.
1034 (i386_gdbarch_init): Likewise.
1035 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1036 (i386obsd_trapframe_cache): Likewise.
1037 * i387-tdep.c (i387_supply_fsave): Likewise.
1038 (i387_collect_fsave): Likewise.
1039 (i387_supply_fxsave): Likewise.
1040 (i387_collect_fxsave): Likewise.
1041 (i387_supply_xsave): Likewise.
1042 (i387_collect_xsave): Likewise.
1043 * ia64-tdep.c (ia64_frame_cache): Likewise.
1044 (ia64_sigtramp_frame_cache): Likewise.
1045 * infcmd.c (attach_command_continuation): Likewise.
1046 (attach_command_continuation_free_args): Likewise.
1047 * inferior.c (restore_inferior): Likewise.
1048 (delete_thread_of_inferior): Likewise.
1049 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1050 (get_inflow_inferior_data): Likewise.
1051 (inflow_inferior_exit): Likewise.
1052 * infrun.c (displaced_step_clear_cleanup): Likewise.
1053 (restore_current_uiout_cleanup): Likewise.
1054 (release_stop_context_cleanup): Likewise.
1055 (do_restore_infcall_suspend_state_cleanup): Likewise.
1056 (do_restore_infcall_control_state_cleanup): Likewise.
1057 (restore_inferior_ptid): Likewise.
1058 * inline-frame.c (block_starting_point_at): Likewise.
1059 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1060 * jit.c (get_jit_objfile_data): Likewise.
1061 (get_jit_program_space_data): Likewise.
1062 (jit_object_close_impl): Likewise.
1063 (jit_find_objf_with_entry_addr): Likewise.
1064 (jit_breakpoint_deleted): Likewise.
1065 (jit_unwind_reg_set_impl): Likewise.
1066 (jit_unwind_reg_get_impl): Likewise.
1067 (jit_dealloc_cache): Likewise.
1068 (jit_frame_sniffer): Likewise.
1069 (jit_frame_prev_register): Likewise.
1070 (jit_prepend_unwinder): Likewise.
1071 (jit_inferior_exit_hook): Likewise.
1072 (free_objfile_data): Likewise.
1073 * jv-lang.c (jv_per_objfile_free): Likewise.
1074 (get_dynamics_objfile): Likewise.
1075 (get_java_class_symtab): Likewise.
1076 (builtin_java_type): Likewise.
1077 * language.c (language_string_char_type): Likewise.
1078 (language_bool_type): Likewise.
1079 (language_lookup_primitive_type): Likewise.
1080 (language_lookup_primitive_type_as_symbol): Likewise.
1081 * linespec.c (hash_address_entry): Likewise.
1082 (eq_address_entry): Likewise.
1083 (iterate_inline_only): Likewise.
1084 (iterate_name_matcher): Likewise.
1085 (decode_line_2_compare_items): Likewise.
1086 (collect_one_symbol): Likewise.
1087 (compare_symbols): Likewise.
1088 (compare_msymbols): Likewise.
1089 (add_symtabs_to_list): Likewise.
1090 (collect_symbols): Likewise.
1091 (compare_msyms): Likewise.
1092 (add_minsym): Likewise.
1093 (cleanup_linespec_result): Likewise.
1094 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1095 * linux-nat.c (delete_lwp_cleanup): Likewise.
1096 (count_events_callback): Likewise.
1097 (select_event_lwp_callback): Likewise.
1098 (resume_stopped_resumed_lwps): Likewise.
1099 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1100 (invalidate_linux_cache_inf): Likewise.
1101 (get_linux_inferior_data): Likewise.
1102 (linux_find_memory_regions_thunk): Likewise.
1103 (linux_make_mappings_callback): Likewise.
1104 (linux_corefile_thread_callback): Likewise.
1105 (find_mapping_size): Likewise.
1106 * linux-thread-db.c (find_new_threads_callback): Likewise.
1107 * lm32-tdep.c (lm32_frame_cache): Likewise.
1108 * m2-lang.c (builtin_m2_type): Likewise.
1109 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1110 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1111 (m32r_linux_supply_gregset): Likewise.
1112 (m32r_linux_collect_gregset): Likewise.
1113 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1114 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1115 * m68k-tdep.c (m68k_frame_cache): Likewise.
1116 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1117 (m68kbsd_supply_gregset): Likewise.
1118 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1119 * m88k-tdep.c (m88k_frame_cache): Likewise.
1120 (m88k_supply_gregset): Likewise.
1121
1122 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1123
1124 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1125 to allocation result assignment.
1126 * ada-exp.y (write_object_renaming): Likewise.
1127 (write_ambiguous_var): Likewise.
1128 (ada_nget_field_index): Likewise.
1129 (write_var_or_type): Likewise.
1130 * ada-lang.c (ada_decode_symbol): Likewise.
1131 (ada_value_assign): Likewise.
1132 (value_pointer): Likewise.
1133 (cache_symbol): Likewise.
1134 (add_nonlocal_symbols): Likewise.
1135 (ada_name_for_lookup): Likewise.
1136 (symbol_completion_add): Likewise.
1137 (ada_to_fixed_type_1): Likewise.
1138 (ada_get_next_arg): Likewise.
1139 (defns_collected): Likewise.
1140 * ada-lex.l (processId): Likewise.
1141 (processString): Likewise.
1142 * ada-tasks.c (read_known_tasks_array): Likewise.
1143 (read_known_tasks_list): Likewise.
1144 * ada-typeprint.c (decoded_type_name): Likewise.
1145 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1146 * amd64-tdep.c (amd64_push_arguments): Likewise.
1147 (amd64_displaced_step_copy_insn): Likewise.
1148 (amd64_classify_insn_at): Likewise.
1149 (amd64_relocate_instruction): Likewise.
1150 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1151 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1152 (initialize_current_architecture): Likewise.
1153 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1154 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1155 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1156 (arm_push_dummy_call): Likewise.
1157 (extend_buffer_earlier): Likewise.
1158 (arm_adjust_breakpoint_address): Likewise.
1159 (arm_skip_stub): Likewise.
1160 * auto-load.c (filename_is_in_pattern): Likewise.
1161 (maybe_add_script_file): Likewise.
1162 (maybe_add_script_text): Likewise.
1163 (auto_load_objfile_script_1): Likewise.
1164 * auxv.c (ld_so_xfer_auxv): Likewise.
1165 * ax-general.c (new_agent_expr): Likewise.
1166 (grow_expr): Likewise.
1167 (ax_reg_mask): Likewise.
1168 * bcache.c (bcache_full): Likewise.
1169 * breakpoint.c (program_breakpoint_here_p): Likewise.
1170 * btrace.c (parse_xml_raw): Likewise.
1171 * build-id.c (build_id_to_debug_bfd): Likewise.
1172 * buildsym.c (end_symtab_with_blockvector): Likewise.
1173 * c-exp.y (string_exp): Likewise.
1174 (qualified_name): Likewise.
1175 (write_destructor_name): Likewise.
1176 (operator_stoken): Likewise.
1177 (parse_number): Likewise.
1178 (scan_macro_expansion): Likewise.
1179 (yylex): Likewise.
1180 (c_print_token): Likewise.
1181 * c-lang.c (c_get_string): Likewise.
1182 (emit_numeric_character): Likewise.
1183 * charset.c (wchar_iterate): Likewise.
1184 * cli/cli-cmds.c (complete_command): Likewise.
1185 (make_command): Likewise.
1186 * cli/cli-dump.c (restore_section_callback): Likewise.
1187 (restore_binary_file): Likewise.
1188 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1189 * cli/cli-script.c (execute_control_command): Likewise.
1190 * cli/cli-setshow.c (do_set_command): Likewise.
1191 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1192 (read_pe_exported_syms): Likewise.
1193 * coffread.c (coff_read_struct_type): Likewise.
1194 (coff_read_enum_type): Likewise.
1195 * common/btrace-common.c (btrace_data_append): Likewise.
1196 * common/buffer.c (buffer_grow): Likewise.
1197 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1198 * common/format.c (parse_format_string): Likewise.
1199 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1200 * common/xml-utils.c (xml_escape_text): Likewise.
1201 * compile/compile-object-load.c (copy_sections): Likewise.
1202 (compile_object_load): Likewise.
1203 * compile/compile-object-run.c (compile_object_run): Likewise.
1204 * completer.c (filename_completer): Likewise.
1205 * corefile.c (read_memory_typed_address): Likewise.
1206 (write_memory_unsigned_integer): Likewise.
1207 (write_memory_signed_integer): Likewise.
1208 (complete_set_gnutarget): Likewise.
1209 * corelow.c (get_core_register_section): Likewise.
1210 * cp-name-parser.y (d_grab): Likewise.
1211 (allocate_info): Likewise.
1212 (cp_new_demangle_parse_info): Likewise.
1213 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1214 (cp_lookup_symbol_in_namespace): Likewise.
1215 (lookup_namespace_scope): Likewise.
1216 (find_symbol_in_baseclass): Likewise.
1217 (cp_lookup_nested_symbol): Likewise.
1218 (cp_lookup_transparent_type_loop): Likewise.
1219 * cp-support.c (copy_string_to_obstack): Likewise.
1220 (make_symbol_overload_list): Likewise.
1221 (make_symbol_overload_list_namespace): Likewise.
1222 (make_symbol_overload_list_adl_namespace): Likewise.
1223 (first_component_command): Likewise.
1224 * cp-valprint.c (cp_print_value): Likewise.
1225 * ctf.c (ctf_xfer_partial): Likewise.
1226 * d-exp.y (StringExp): Likewise.
1227 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1228 (lookup_module_scope): Likewise.
1229 (find_symbol_in_baseclass): Likewise.
1230 (d_lookup_nested_symbol): Likewise.
1231 * dbxread.c (find_stab_function_addr): Likewise.
1232 (read_dbx_symtab): Likewise.
1233 (dbx_end_psymtab): Likewise.
1234 (cp_set_block_scope): Likewise.
1235 * dcache.c (dcache_alloc): Likewise.
1236 * demangle.c (_initialize_demangler): Likewise.
1237 * dicos-tdep.c (dicos_load_module_p): Likewise.
1238 * dictionary.c (dict_create_hashed_expandable): Likewise.
1239 (dict_create_linear_expandable): Likewise.
1240 (expand_hashtable): Likewise.
1241 (add_symbol_linear_expandable): Likewise.
1242 * dwarf2-frame.c (add_cie): Likewise.
1243 (add_fde): Likewise.
1244 (dwarf2_build_frame_info): Likewise.
1245 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1246 (dwarf_expr_fetch_address): Likewise.
1247 (add_piece): Likewise.
1248 (execute_stack_op): Likewise.
1249 * dwarf2loc.c (chain_candidate): Likewise.
1250 (dwarf_entry_parameter_to_value): Likewise.
1251 (read_pieced_value): Likewise.
1252 (write_pieced_value): Likewise.
1253 * dwarf2read.c (dwarf2_read_section): Likewise.
1254 (add_type_unit): Likewise.
1255 (read_comp_units_from_section): Likewise.
1256 (fixup_go_packaging): Likewise.
1257 (dwarf2_compute_name): Likewise.
1258 (dwarf2_physname): Likewise.
1259 (create_dwo_unit_in_dwp_v1): Likewise.
1260 (create_dwo_unit_in_dwp_v2): Likewise.
1261 (read_func_scope): Likewise.
1262 (read_call_site_scope): Likewise.
1263 (dwarf2_attach_fields_to_type): Likewise.
1264 (process_structure_scope): Likewise.
1265 (mark_common_block_symbol_computed): Likewise.
1266 (read_common_block): Likewise.
1267 (abbrev_table_read_table): Likewise.
1268 (guess_partial_die_structure_name): Likewise.
1269 (fixup_partial_die): Likewise.
1270 (add_file_name): Likewise.
1271 (dwarf2_const_value_data): Likewise.
1272 (dwarf2_const_value_attr): Likewise.
1273 (build_error_marker_type): Likewise.
1274 (guess_full_die_structure_name): Likewise.
1275 (anonymous_struct_prefix): Likewise.
1276 (typename_concat): Likewise.
1277 (dwarf2_canonicalize_name): Likewise.
1278 (dwarf2_name): Likewise.
1279 (write_constant_as_bytes): Likewise.
1280 (dwarf2_fetch_constant_bytes): Likewise.
1281 (copy_string): Likewise.
1282 (parse_macro_definition): Likewise.
1283 * elfread.c (elf_symfile_segments): Likewise.
1284 (elf_rel_plt_read): Likewise.
1285 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1286 (elf_gnu_ifunc_resolve_by_got): Likewise.
1287 (elf_read_minimal_symbols): Likewise.
1288 (elf_gnu_ifunc_record_cache): Likewise.
1289 * event-top.c (top_level_prompt): Likewise.
1290 (command_line_handler): Likewise.
1291 * exec.c (resize_section_table): Likewise.
1292 * expprint.c (print_subexp_standard): Likewise.
1293 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1294 * findcmd.c (parse_find_args): Likewise.
1295 * findvar.c (address_from_register): Likewise.
1296 * frame.c (get_prev_frame_always): Likewise.
1297 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1298 (get_section_descriptor): Likewise.
1299 * gdb_obstack.c (obconcat): Likewise.
1300 (obstack_strdup): Likewise.
1301 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1302 (create_set_type): Likewise.
1303 (lookup_unsigned_typename): Likewise.
1304 (lookup_signed_typename): Likewise.
1305 (resolve_dynamic_union): Likewise.
1306 (resolve_dynamic_struct): Likewise.
1307 (add_dyn_prop): Likewise.
1308 (copy_dynamic_prop_list): Likewise.
1309 (arch_flags_type): Likewise.
1310 (append_composite_type_field_raw): Likewise.
1311 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1312 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1313 * go-exp.y (string_exp): Likewise.
1314 * go-lang.c (go_demangle): Likewise.
1315 * guile/guile.c (compute_scheme_string): Likewise.
1316 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1317 (gdbscm_canonicalize_command_name): Likewise.
1318 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1319 (ioscm_init_memory_port): Likewise.
1320 (ioscm_reinit_memory_port): Likewise.
1321 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1322 (gdbscm_gc_dup_argv): Likewise.
1323 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1324 * hppa-tdep.c (internalize_unwinds): Likewise.
1325 (read_unwind_info): Likewise.
1326 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1327 (windows_core_xfer_shared_libraries): Likewise.
1328 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1329 (i386_stap_parse_special_token_triplet): Likewise.
1330 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1331 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1332 * inf-child.c (inf_child_fileio_readlink): Likewise.
1333 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1334 (inf_ptrace_store_register): Likewise.
1335 * infrun.c (follow_exec): Likewise.
1336 (displaced_step_prepare_throw): Likewise.
1337 (save_stop_context): Likewise.
1338 (save_infcall_suspend_state): Likewise.
1339 * jit.c (jit_read_descriptor): Likewise.
1340 (jit_read_code_entry): Likewise.
1341 (jit_symtab_line_mapping_add_impl): Likewise.
1342 (finalize_symtab): Likewise.
1343 (jit_unwind_reg_get_impl): Likewise.
1344 * jv-exp.y (QualifiedName): Likewise.
1345 * jv-lang.c (get_java_utf8_name): Likewise.
1346 (type_from_class): Likewise.
1347 (java_demangle_type_signature): Likewise.
1348 (java_class_name_from_physname): Likewise.
1349 * jv-typeprint.c (java_type_print_base): Likewise.
1350 * jv-valprint.c (java_value_print): Likewise.
1351 * language.c (add_language): Likewise.
1352 * linespec.c (add_sal_to_sals_basic): Likewise.
1353 (add_sal_to_sals): Likewise.
1354 (decode_objc): Likewise.
1355 (find_linespec_symbols): Likewise.
1356 * linux-fork.c (fork_save_infrun_state): Likewise.
1357 * linux-nat.c (linux_nat_detach): Likewise.
1358 (linux_nat_fileio_readlink): Likewise.
1359 * linux-record.c (record_linux_sockaddr): Likewise.
1360 (record_linux_msghdr): Likewise.
1361 (Do): Likewise.
1362 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1363 (linux_collect_regset_section_cb): Likewise.
1364 (linux_get_siginfo_data): Likewise.
1365 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1366 (try_thread_db_load_from_dir): Likewise.
1367 (thread_db_load_search): Likewise.
1368 (info_auto_load_libthread_db): Likewise.
1369 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1370 (m32c_m16c_pointer_to_address): Likewise.
1371 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1372 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1373 * machoread.c (macho_check_dsym): Likewise.
1374 * macroexp.c (resize_buffer): Likewise.
1375 (gather_arguments): Likewise.
1376 (maybe_expand): Likewise.
1377 * macrotab.c (new_macro_key): Likewise.
1378 (new_source_file): Likewise.
1379 (new_macro_definition): Likewise.
1380 * mdebugread.c (parse_symbol): Likewise.
1381 (parse_type): Likewise.
1382 (parse_partial_symbols): Likewise.
1383 (psymtab_to_symtab_1): Likewise.
1384 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1385 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1386 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1387 (mi_cmd_data_read_memory_bytes): Likewise.
1388 (mi_cmd_data_write_memory_bytes): Likewise.
1389 (mi_cmd_trace_frame_collected): Likewise.
1390 * mi/mi-parse.c (mi_parse_argv): Likewise.
1391 (mi_parse): Likewise.
1392 * minidebug.c (lzma_open): Likewise.
1393 (lzma_pread): Likewise.
1394 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1395 (mips_print_fp_register): Likewise.
1396 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1397 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1398 * mt-tdep.c (mt_register_name): Likewise.
1399 (mt_registers_info): Likewise.
1400 (mt_push_dummy_call): Likewise.
1401 * namespace.c (add_using_directive): Likewise.
1402 * nat/linux-btrace.c (perf_event_read): Likewise.
1403 (linux_enable_bts): Likewise.
1404 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1405 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1406 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1407 (nto_parse_redirection): Likewise.
1408 * objc-lang.c (objc_demangle): Likewise.
1409 (find_methods): Likewise.
1410 * objfiles.c (get_objfile_bfd_data): Likewise.
1411 (set_objfile_main_name): Likewise.
1412 (allocate_objfile): Likewise.
1413 (objfile_relocate): Likewise.
1414 (update_section_map): Likewise.
1415 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1416 * p-exp.y (exp): Likewise.
1417 (yylex): Likewise.
1418 * p-valprint.c (pascal_object_print_value): Likewise.
1419 * parse.c (initialize_expout): Likewise.
1420 (mark_completion_tag): Likewise.
1421 (copy_name): Likewise.
1422 (parse_float): Likewise.
1423 (type_stack_reserve): Likewise.
1424 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1425 (ppu2spu_prev_register): Likewise.
1426 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1427 * printcmd.c (printf_wide_c_string): Likewise.
1428 (printf_pointer): Likewise.
1429 * probe.c (parse_probes): Likewise.
1430 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1431 (cmdpy_init): Likewise.
1432 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1433 * python/py-symtab.c (set_sal): Likewise.
1434 * python/py-unwind.c (pyuw_sniffer): Likewise.
1435 * python/python.c (python_interactive_command): Likewise.
1436 (compute_python_string): Likewise.
1437 * ravenscar-thread.c (get_running_thread_id): Likewise.
1438 * record-full.c (record_full_exec_insn): Likewise.
1439 (record_full_core_open_1): Likewise.
1440 * regcache.c (regcache_raw_read_signed): Likewise.
1441 (regcache_raw_read_unsigned): Likewise.
1442 (regcache_cooked_read_signed): Likewise.
1443 (regcache_cooked_read_unsigned): Likewise.
1444 * remote-fileio.c (remote_fileio_func_open): Likewise.
1445 (remote_fileio_func_rename): Likewise.
1446 (remote_fileio_func_unlink): Likewise.
1447 (remote_fileio_func_stat): Likewise.
1448 (remote_fileio_func_system): Likewise.
1449 * remote-mips.c (mips_xfer_memory): Likewise.
1450 (mips_load_srec): Likewise.
1451 (pmon_end_download): Likewise.
1452 * remote.c (new_remote_state): Likewise.
1453 (map_regcache_remote_table): Likewise.
1454 (remote_register_number_and_offset): Likewise.
1455 (init_remote_state): Likewise.
1456 (get_memory_packet_size): Likewise.
1457 (remote_pass_signals): Likewise.
1458 (remote_program_signals): Likewise.
1459 (remote_start_remote): Likewise.
1460 (remote_check_symbols): Likewise.
1461 (remote_query_supported): Likewise.
1462 (extended_remote_attach): Likewise.
1463 (process_g_packet): Likewise.
1464 (store_registers_using_G): Likewise.
1465 (putpkt_binary): Likewise.
1466 (read_frame): Likewise.
1467 (compare_sections_command): Likewise.
1468 (remote_hostio_pread): Likewise.
1469 (remote_hostio_readlink): Likewise.
1470 (remote_file_put): Likewise.
1471 (remote_file_get): Likewise.
1472 (remote_pid_to_exec_file): Likewise.
1473 (_initialize_remote): Likewise.
1474 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1475 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1476 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1477 (bfd_uses_spe_extensions): Likewise.
1478 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1479 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1480 * solib-dsbt.c (decode_loadmap): Likewise.
1481 (fetch_loadmap): Likewise.
1482 (scan_dyntag): Likewise.
1483 (enable_break): Likewise.
1484 (dsbt_relocate_main_executable): Likewise.
1485 * solib-frv.c (fetch_loadmap): Likewise.
1486 (enable_break2): Likewise.
1487 (frv_relocate_main_executable): Likewise.
1488 * solib-spu.c (spu_relocate_main_executable): Likewise.
1489 (spu_bfd_open): Likewise.
1490 * solib-svr4.c (lm_info_read): Likewise.
1491 (read_program_header): Likewise.
1492 (find_program_interpreter): Likewise.
1493 (scan_dyntag): Likewise.
1494 (elf_locate_base): Likewise.
1495 (open_symbol_file_object): Likewise.
1496 (read_program_headers_from_bfd): Likewise.
1497 (svr4_relocate_main_executable): Likewise.
1498 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1499 * solib.c (solib_find_1): Likewise.
1500 (exec_file_find): Likewise.
1501 (solib_find): Likewise.
1502 * source.c (openp): Likewise.
1503 (print_source_lines_base): Likewise.
1504 (forward_search_command): Likewise.
1505 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1506 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1507 (spu_get_overlay_table): Likewise.
1508 * stabsread.c (patch_block_stabs): Likewise.
1509 (define_symbol): Likewise.
1510 (again:): Likewise.
1511 (read_member_functions): Likewise.
1512 (read_one_struct_field): Likewise.
1513 (read_enum_type): Likewise.
1514 (common_block_start): Likewise.
1515 * stack.c (read_frame_arg): Likewise.
1516 (backtrace_command): Likewise.
1517 * stap-probe.c (stap_parse_register_operand): Likewise.
1518 * symfile.c (syms_from_objfile_1): Likewise.
1519 (find_separate_debug_file): Likewise.
1520 (load_command): Likewise.
1521 (load_progress): Likewise.
1522 (load_section_callback): Likewise.
1523 (reread_symbols): Likewise.
1524 (add_filename_language): Likewise.
1525 (allocate_compunit_symtab): Likewise.
1526 (read_target_long_array): Likewise.
1527 (simple_read_overlay_table): Likewise.
1528 * symtab.c (symbol_set_names): Likewise.
1529 (resize_symbol_cache): Likewise.
1530 (rbreak_command): Likewise.
1531 (completion_list_add_name): Likewise.
1532 (completion_list_objc_symbol): Likewise.
1533 (add_filename_to_list): Likewise.
1534 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1535 * target-memory.c (target_write_memory_blocks): Likewise.
1536 * target.c (target_read_string): Likewise.
1537 (read_whatever_is_readable): Likewise.
1538 (target_read_alloc_1): Likewise.
1539 (simple_search_memory): Likewise.
1540 (target_fileio_read_alloc_1): Likewise.
1541 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1542 * top.c (command_line_input): Likewise.
1543 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1544 * tracefile.c (tracefile_fetch_registers): Likewise.
1545 * tracepoint.c (add_memrange): Likewise.
1546 (init_collection_list): Likewise.
1547 (add_aexpr): Likewise.
1548 (trace_dump_actions): Likewise.
1549 (parse_trace_status): Likewise.
1550 (parse_tracepoint_definition): Likewise.
1551 (parse_tsv_definition): Likewise.
1552 (parse_static_tracepoint_marker_definition): Likewise.
1553 * tui/tui-file.c (tui_sfileopen): Likewise.
1554 (tui_file_adjust_strbuf): Likewise.
1555 * tui/tui-io.c (tui_expand_tabs): Likewise.
1556 * tui/tui-source.c (tui_set_source_content): Likewise.
1557 * typeprint.c (find_global_typedef): Likewise.
1558 * ui-file.c (do_ui_file_xstrdup): Likewise.
1559 (ui_file_obsavestring): Likewise.
1560 (mem_file_write): Likewise.
1561 * utils.c (make_hex_string): Likewise.
1562 (get_regcomp_error): Likewise.
1563 (puts_filtered_tabular): Likewise.
1564 (gdb_realpath_keepfile): Likewise.
1565 (ldirname): Likewise.
1566 (gdb_bfd_errmsg): Likewise.
1567 (substitute_path_component): Likewise.
1568 * valops.c (search_struct_method): Likewise.
1569 (find_oload_champ_namespace_loop): Likewise.
1570 * valprint.c (print_decimal_chars): Likewise.
1571 (read_string): Likewise.
1572 (generic_emit_char): Likewise.
1573 * varobj.c (varobj_delete): Likewise.
1574 (varobj_value_get_print_value): Likewise.
1575 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1576 * windows-tdep.c (display_one_tib): Likewise.
1577 * xcoffread.c (read_xcoff_symtab): Likewise.
1578 (process_xcoff_symbol): Likewise.
1579 (swap_sym): Likewise.
1580 (scan_xcoff_symtab): Likewise.
1581 (xcoff_initial_scan): Likewise.
1582 * xml-support.c (gdb_xml_end_element): Likewise.
1583 (xml_process_xincludes): Likewise.
1584 (xml_fetch_content_from_file): Likewise.
1585 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1586 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1587
1588 2015-09-23 James Bowman <james.bowman@ftdichip.com>
1589
1590 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1591 instead of builtin_func_ptr.
1592 (ft32_pointer_to_address): New function.
1593 (ft32_address_class_type_flags): New function.
1594 (ft32_address_class_type_flags_to_name): New function.
1595 (ft32_address_class_name_to_type_flags): New function.
1596 (ft32_gdbarch_init): Set tdep->pc_type. Call
1597 set_gdbarch_pointer_to_address,
1598 set_gdbarch_address_class_type_flags
1599 set_gdbarch_address_class_name_to_type_flags,
1600 and set_gdbarch_address_class_type_flags_to_name.
1601 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1602
1603 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1604
1605 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1606 value is a reference, actually dereference it in order to get
1607 the underlying value.
1608
1609 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1610
1611 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1612
1613 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1614
1615 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1616 * linespec.c (linespec_lexer_lex_string): Same.
1617
1618 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1619
1620 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1621
1622 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1623
1624 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1625 variable. Call aarch64_decode_adr instead of
1626 aarch64_decode_adrp.
1627 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1628 (aarch64_decode_adr): New function declaration.
1629 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1630 (aarch64_decode_adr): New function, factored out from
1631 aarch64_decode_adrp to decode both adr and adrp instructions.
1632
1633 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1634
1635 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1636 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1637 (aarch64-insn.o): New rule.
1638 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1639 (aarch64*-*-linux*): Likewise.
1640 * arch/aarch64-insn.c: New file.
1641 * arch/aarch64-insn.h: New file.
1642 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1643 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1644 arch/aarch64-insn.h.
1645 (decode_add_sub_imm): Rename to ...
1646 (aarch64_decode_add_sub_imm): ... this.
1647 (decode_adrp): Rename to ...
1648 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1649 Declare in arch/aarch64-insn.h.
1650 (decode_b): Rename to ...
1651 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1652 Declare in arch/aarch64-insn.h.
1653 (decode_bcond): Rename to ...
1654 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1655 Declare in arch/aarch64-insn.h.
1656 (decode_br): Rename to ...
1657 (aarch64_decode_br): ... this.
1658 (decode_cb): Rename to ...
1659 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1660 Declare in arch/aarch64-insn.h.
1661 (decode_eret): Rename to ...
1662 (aarch64_decode_eret): ... this.
1663 (decode_movz): Rename to ...
1664 (aarch64_decode_movz): ... this.
1665 (decode_orr_shifted_register_x): Rename to ...
1666 (aarch64_decode_orr_shifted_register_x): ... this.
1667 (decode_ret): Rename to ...
1668 (aarch64_decode_ret): ... this.
1669 (decode_stp_offset): Rename to ...
1670 (aarch64_decode_stp_offset): ... this.
1671 (decode_stp_offset_wb): Rename to ...
1672 (aarch64_decode_stp_offset_wb): ... this.
1673 (decode_stur): Rename to ...
1674 (aarch64_decode_stur): ... this.
1675 (decode_tb): Rename to ...
1676 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1677 Declare in arch/aarch64-insn.h.
1678 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1679
1680 2015-09-20 Doug Evans <xdje42@gmail.com>
1681
1682 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1683
1684 2015-09-20 Doug Evans <xdje42@gmail.com>
1685
1686 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1687 variable name that collides with a parameter.
1688
1689 2015-09-20 Joel Brobecker <brobecker@adacore.com>
1690
1691 * dwarf2loc.c (locexpr_get_frame_base): Renames
1692 block_op_get_frame_base.
1693 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1694 block_op_get_frame_base by reference to locexpr_get_frame_base.
1695 (loclist_get_frame_base): New function, near identical copy of
1696 locexpr_get_frame_base.
1697 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1698 block_op_get_frame_base by reference to loclist_get_frame_base.
1699
1700 2015-09-19 Doug Evans <xdje42@gmail.com>
1701
1702 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1703 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1704
1705 2015-09-18 Doug Evans <xdje42@gmail.com>
1706
1707 * linux-thread-db.c (record_thread): Return the created thread.
1708 (thread_from_lwp): Likewise.
1709 (thread_db_get_thread_local_address): Update.
1710
1711 2015-09-18 Doug Evans <xdje42@gmail.com>
1712
1713 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1714 move only member demangled_name up. All uses updated.
1715
1716 2015-09-18 Doug Evans <xdje42@gmail.com>
1717
1718 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1719 kind of minimal symbol in the error message.
1720 * objfiles.c (objfile_flavour_name): New function.
1721 * objfiles.h (objfile_flavour_name): Declare.
1722
1723 2015-09-18 Yao Qi <yao.qi@linaro.org>
1724
1725 * nat/aarch64-linux.c: Include elf/common.h,
1726 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1727 (aarch64_ps_get_thread_area): New function.
1728 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1729 (aarch64_ps_get_thread_area): Declare.
1730 * aarch64-linux-nat.c (ps_get_thread_area): Call
1731 aarch64_ps_get_thread_area.
1732
1733 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1734
1735 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1736
1737 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1738
1739 * NEWS: Announce new scheduler-locking mode.
1740 * infrun.c (schedlock_replay): New.
1741 (scheduler_enums): Add schedlock_replay.
1742 (scheduler_mode): Change default to schedlock_replay.
1743 (user_visible_resume_ptid): Handle schedlock_replay.
1744 (clear_proceed_status_thread): Stop replaying if resumed thread is
1745 not replaying.
1746 (schedlock_applies): Handle schedlock_replay.
1747 (_initialize_infrun): Document new scheduler-locking mode.
1748 * record-btrace.c (record_btrace_resume): Remove code to stop other
1749 threads when not replaying the resumed thread.
1750
1751 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1752
1753 * record-btrace.c ((record_btrace_will_replay): New.
1754 (init_record_btrace_ops): Initialize to_record_will_replay.
1755 * record-full.c ((record_full_will_replay): New.
1756 (init_record_full_ops): Initialize to_record_will_replay.
1757 * target-delegates.c: Regenerated.
1758 * target.c (target_record_will_replay): New.
1759 * target.h (struct target_ops) <to_record_will_replay>: New.
1760 (target_record_will_replay): New.
1761
1762 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1763
1764 * record-btrace.c (record_btrace_resume): Call
1765 target_record_stop_replaying.
1766 (record_btrace_stop_replaying_all): New.
1767 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1768 * record-full.c (record_full_stop_replaying): New.
1769 (init_record_full_ops ): Initialize to_record_stop_replaying.
1770 * target-delegates.c: Regenerated.
1771 * target.c (target_record_stop_replaying): New.
1772 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1773 (target_record_stop_replaying): New.
1774
1775 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1776
1777 * record-btrace.c (record_btrace_xfer_partial)
1778 (record_btrace_store_registers, record_btrace_prepare_to_store):
1779 Call record_btrace_is_replaying with inferior_ptid instead of
1780 minus_one_ptid.
1781 (record_btrace_store_registers): Change error message.
1782
1783 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1784
1785 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1786 Update users to pass minus_one_ptid.
1787 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1788 * record.c (cmd_record_delete): Pass inferior_ptid to
1789 target_record_is_replaying.
1790 * target-delegates.c: Regenerated.
1791 * target.c (target_record_is_replaying): Add ptid argument.
1792 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1793 argument.
1794 (target_record_is_replaying): Add ptid argument.
1795
1796 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1797
1798 * record-btrace.c (record_btrace_open): Remove non_stop check.
1799 * NEWS: Announce that record btrace supports non-stop mode.
1800
1801 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1802
1803 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1804 in the TARKET_WAITKIND_NO_HISTORY case.
1805
1806 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1807
1808 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1809 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1810
1811 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1812
1813 * record-btrace.c (get_thread_current_frame): New.
1814 (record_btrace_start_replaying): Call get_thread_current_frame.
1815
1816 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1817
1818 * record-btrace.c (record_btrace_resume_thread): A move request
1819 overwrites a previous move request.
1820 (record_btrace_find_resume_thread): Removed.
1821 (record_btrace_resume): Resume all requested threads.
1822
1823 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1824
1825 * record-btrace.c: Include vec.h.
1826 (record_btrace_find_thread_to_move): Removed.
1827 (btrace_step_no_resumed, btrace_step_again)
1828 (record_btrace_stop_replaying_at_end): New.
1829 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1830 (record_btrace_single_step_forward): Remove calls to
1831 record_btrace_stop_replaying.
1832 (record_btrace_step_thread): Do only one step for BTHR_CONT and
1833 BTHR_RCONT. Keep threads at the end of their history moving.
1834 (record_btrace_wait): Call record_btrace_step_thread for all threads
1835 until one reports an event. Call record_btrace_stop_replaying_at_end
1836 for the eventing thread.
1837
1838 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1839
1840 * record-btrace.c (record_btrace_single_step_forward): Return
1841 NO_HISTORY if a step brings us to the end of the execution history.
1842
1843 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1844
1845 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1846 to ...
1847 (record_btrace_single_step_forward): ... here and
1848 (record_btrace_single_step_backward): ... here.
1849
1850 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1851
1852 * record-btrace.c (btrace_step_spurious)
1853 (record_btrace_single_step_forward)
1854 (record_btrace_single_step_backward): New.
1855 (record_btrace_step_thread): Call record_btrace_single_step_forward
1856 and record_btrace_single_step_backward.
1857
1858 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1859
1860 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1861 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1862
1863 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1864
1865 * record-btrace.c (btrace_thread_flag_to_str)
1866 (record_btrace_cancel_resume): New.
1867 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1868 (record_btrace_resume): Print execution direction.
1869 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1870 (record_btrace_wait): Call record_btrace_cancel_resume.
1871
1872 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1873
1874 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1875 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1876 (record_btrace_find_thread_to_move): Also accept threads that have
1877 BTHR_STOP set.
1878 (btrace_step_stopped_on_request, record_btrace_stop): New.
1879 (record_btrace_step_thread): Support BTHR_STOP.
1880 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1881 (init_record_btrace_ops): Initialize to_stop.
1882
1883 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1884
1885 * record-btrace.c (record_btrace_wait): Replace non_stop check with
1886 target_is_non_stop_p ().
1887
1888 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
1889
1890 * ada-typeprint.c (print_array_type): Do not describe arrays as
1891 packed when they embed dynamic elements.
1892
1893 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1894
1895 * symtab.h (address_class): Document that TLS variables
1896 are handled by LOC_UNRESOLVED.
1897 * findvar.c (default_read_var_value): Don't relocate TLS variables.
1898 * printcmd.c (address_info): Don't relocate TLS variables.
1899
1900 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
1901
1902 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
1903 (decode_adrp): Likewise.
1904 (decode_b): Likewise.
1905 (decode_bcond): Likewise.
1906 (decode_br): Likewise.
1907 (decode_cb): Likewise.
1908 (decode_eret): Likewise.
1909 (decode_movz): Likewise.
1910 (decode_orr_shifted_register_x): Likewise.
1911 (decode_ret): Likewise.
1912 (decode_stp_offset): Likewise.
1913 (decode_stp_offset_wb): Likewise.
1914 (decode_stur): Likewise.
1915 (decode_tb): Likewise.
1916 (aarch64_analyze_prologue): Likewise.
1917 (pass_in_x): Likewise.
1918 (pass_in_v): Likewise.
1919 (pass_on_stack): Likewise.
1920 (aarch64_push_dummy_call): Likewise.
1921 (aarch64_extract_return_value): Likewise.
1922 (aarch64_store_return_value): Likewise.
1923 (aarch64_return_value): Likewise.
1924 (aarch64_record_asimd_load_store): Likewise.
1925 (aarch64_record_load_store): Likewise.
1926 (aarch64_record_data_proc_simd_fp): Likewise.
1927
1928 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1929
1930 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
1931 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
1932 (ppc64_skip_trampoline_code_1): ... here.
1933 (ppc64_skip_trampoline_code): New wrapper function.
1934 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
1935
1936 2015-09-15 Yao Qi <yao.qi@linaro.org>
1937
1938 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
1939 function.
1940 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
1941 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
1942 if target_can_do_single_step returns 1.
1943 * remote.c (struct vCont_action_support) <s, S>: New fields.
1944 (PACKET_vContSupported): New enum.
1945 (remote_protocol_features): New element for vContSupported.
1946 (remote_query_supported): Append "vContSupported+".
1947 (remote_vcont_probe): Remove support_s and support_S, use
1948 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
1949 vCont packet if c and C actions are not supported.
1950 (remote_can_do_single_step): New function.
1951 (init_remote_ops): Install it to to_can_do_single_step.
1952 (_initialize_remote): Call add_packet_config_cmd.
1953 * target.h (struct target_ops) <to_can_do_single_step>: New field.
1954 (target_can_do_single_step): New macro.
1955 * target-delegates.c: Re-generated.
1956
1957 2015-09-15 Yao Qi <yao.qi@linaro.org>
1958
1959 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
1960 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
1961 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
1962 New function.
1963 (aarch64_siginfo_from_compat_siginfo): New function.
1964 * nat/aarch64-linux.h: Include signal.h.
1965 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
1966 (compat_timer_t, compat_clock_t): Likewise.
1967 (struct compat_timeval): New.
1968 (union compat_sigval): New.
1969 (struct compat_siginfo): New.
1970 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
1971 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
1972 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
1973 (cpt_si_band, cpt_si_fd): Likewise.
1974
1975 2015-09-14 Pedro Alves <palves@redhat.com>
1976
1977 * infrun.c (current_stop_id): New global.
1978 (get_stop_id, new_stop_id): New functions.
1979 (fetch_inferior_event): Handle normal_stop proceeding the target.
1980 (struct stop_context): New.
1981 (save_stop_context, release_stop_context_cleanup)
1982 (stop_context_changed): New functions.
1983 (normal_stop): Return true if the hook-stop changes the stop
1984 context.
1985 * infrun.h (get_stop_id): Declare.
1986 (normal_stop): Now returns int. Add documentation.
1987
1988 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
1989
1990 * ada-lang.c (ada_value_ptr_subscript): Update the heading
1991 comment. Handle packed arrays.
1992
1993 2015-09-14 Pedro Alves <palves@redhat.com>
1994
1995 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
1996 mention of maint set/show target-non-stop.
1997
1998 2015-09-11 Don Breazeal <donb@codesourcery.com>
1999
2000 * NEWS: Announce new remote packets for the exec-events
2001 feature and the exec-events feature and associated commands.
2002
2003 2015-09-11 Don Breazeal <donb@codesourcery.com>
2004
2005 * remote.c (remote_exec_event_p): New function.
2006 (remote_insert_exec_catchpoint): New function.
2007 (remote_remove_exec_catchpoint): New function.
2008 (init_extended_remote_ops): Initialize extended_remote_ops
2009 members to_insert_exec_catchpoint and
2010 to_remove_exec_catchpoint.
2011
2012 2015-09-11 Don Breazeal <donb@codesourcery.com>
2013 Luis Machado <lgustavo@codesourcery.com>
2014
2015 * infrun.c (follow_exec): Use process-style ptid for
2016 exec message. Call add_inferior_with_spaces and
2017 target_follow_exec.
2018 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2019 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2020 * remote.c (remote_pspace_data): New static variable.
2021 (remote_pspace_data_cleanup): New function.
2022 (get_remote_exec_file): New function.
2023 (set_remote_exec_file_1): New function.
2024 (set_remote_exec_file): New function.
2025 (show_remote_exec_file): New function.
2026 (remote_exec_file): Delete static variable.
2027 (anonymous enum) <PACKET_exec_event_feature>: New
2028 enumeration constant.
2029 (remote_protocol_features): Add entry for exec-events feature.
2030 (remote_query_supported): Add client side of qSupported query
2031 for exec-events feature.
2032 (remote_follow_exec): New function.
2033 (remote_parse_stop_reply): Handle 'exec' stop reason.
2034 (extended_remote_run, extended_remote_create_inferior): Call
2035 get_remote_exec_file and set_remote_exec_file_1.
2036 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2037 member.
2038 (_initialize_remote): Call
2039 register_program_space_data_with_cleanup. Call
2040 add_packet_config_cmd for remote exec-events feature.
2041 Modify call to add_setshow_string_noescape_cmd for exec-file
2042 to use new functions set_remote_exec_file and
2043 show_remote_exec_file.
2044 * target-debug.h, target-delegates.c: Regenerated.
2045 * target.c (target_follow_exec): New function.
2046 * target.h (struct target_ops) <to_follow_exec>: New member.
2047 (target_follow_exec): Declare new function.
2048
2049 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2050
2051 * aarch64-tdep.c (decode_cb): Move up comment describing the
2052 encoding.
2053 (decode_tb): Fix a typo in comment above the function. Move up
2054 comment describing the encoding.
2055
2056 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2057
2058 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2059
2060 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2061
2062 PR gdb/18947
2063 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2064 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2065
2066 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2067
2068 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2069 operations.
2070
2071 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2072
2073 * ada-lang.c (ada_search_struct_field): Constify parameters
2074 and/or variables..
2075 (xget_renaming_scope): Likewise.
2076 (ada_is_redundant_range_encoding): Likewise.
2077 (scan_discrim_bound): Likewise.
2078 (to_fixed_range_type): Likewise.
2079
2080 2015-09-10 Yao Qi <yao.qi@linaro.org>
2081
2082 * breakpoint.c (download_tracepoint_locations): New local
2083 can_download_tracepoint. Check the result of
2084 target_can_download_tracepoint and save it in
2085 can_download_tracepoint if there are tracepoints to download.
2086 * linux-nat.h (enum tribool): Move it to ...
2087 * common/common-types.h: ... here.
2088
2089 2015-09-09 Pedro Alves <palves@redhat.com>
2090
2091 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2092 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2093
2094 2015-09-09 Pedro Alves <palves@redhat.com>
2095
2096 * continuations.c (add_continuation, restore_thread_cleanup)
2097 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2098 (do_all_continuations_thread, do_all_continuations)
2099 (discard_all_continuations_thread_callback)
2100 (discard_all_continuations_thread, discard_all_continuations)
2101 (add_intermediate_continuation)
2102 (do_all_intermediate_continuations_thread_callback)
2103 (do_all_intermediate_continuations_thread)
2104 (do_all_intermediate_continuations)
2105 (discard_all_intermediate_continuations_thread_callback)
2106 (discard_all_intermediate_continuations_thread)
2107 (discard_all_intermediate_continuations): Delete.
2108 * continuations.h (add_continuation, do_all_continuations)
2109 (do_all_continuations_thread, discard_all_continuations)
2110 (discard_all_continuations_thread, add_intermediate_continuation)
2111 (do_all_intermediate_continuations)
2112 (do_all_intermediate_continuations_thread)
2113 (discard_all_intermediate_continuations)
2114 (discard_all_intermediate_continuations_thread): Delete
2115 declarations.
2116 * event-top.c (stdin_event_handler): Delete references to
2117 continuations.
2118 * gdbthread.h (struct thread_info): Delete continuations and
2119 intermediate_continuations fields.
2120 * inf-loop.c (inferior_event_handler): Remove references to
2121 continuations.
2122 * infrun.c (infrun_thread_stop_requested_callback): Remove
2123 references to continuations.
2124 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2125 * thread.c: Don't include "continuations.h".
2126 (clear_thread_inferior_resources): Remove references to
2127 continuations.
2128
2129 2015-09-09 Pedro Alves <palves@redhat.com>
2130
2131 * infcall.c (struct dummy_frame_context_saver): Delete.
2132 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2133 (dummy_frame_context_saver_drop)
2134 (dummy_frame_context_saver_cleanup)
2135 (dummy_frame_context_saver_get_regs)
2136 (dummy_frame_context_saver_setup): Delete.
2137 * infcall.h (dummy_frame_context_saver_drop)
2138 (dummy_frame_context_saver_cleanup)
2139 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2140 Delete.
2141 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2142 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2143 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2144
2145 2015-09-09 Pedro Alves <palves@redhat.com>
2146
2147 * breakpoint.c: Include "thread-fsm.h".
2148 (struct until_break_command_continuation_args): Delete.
2149 (struct until_break_fsm): New.
2150 (until_break_fsm_ops): New global.
2151 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2152 (until_break_command_continuation): Delete.
2153 (until_break_fsm_clean_up): New function.
2154 (until_break_fsm_async_reply_reason): New function.
2155 (until_break_command): Adjust to create an until_break_fsm instead
2156 of a continuation.
2157 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2158 here.
2159 * infcmd.c (struct until_next_fsm): New.
2160 (until_next_fsm_ops): New global.
2161 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2162 (until_next_continuation): Delete.
2163 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2164 functions.
2165 (until_next_command): Adjust to create a new until_next_fsm
2166 instead of a continuation.
2167
2168 2015-09-09 Pedro Alves <palves@redhat.com>
2169
2170 * infcall.c: Include thread_fsm.h.
2171 (struct call_return_meta_info): New.
2172 (get_call_return_value): New function, factored out from
2173 call_function_by_hand_dummy.
2174 (struct call_thread_fsm): New.
2175 (call_thread_fsm_ops): New global.
2176 (new_call_thread_fsm, call_thread_fsm_should_stop)
2177 (call_thread_fsm_should_notify_stop): New functions.
2178 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2179 the thread.
2180 (call_function_by_hand_dummy): Create a new call_thread_fsm
2181 instance, associate it with the thread, and wait for the FSM to
2182 finish. If finished successfully, fetch the function's result
2183 value out of the FSM.
2184 * infrun.c (fetch_inferior_event): If the FSM says the stop
2185 shouldn't be notified, don't call normal_stop.
2186 (maybe_remove_breakpoints): New function, factored out from ...
2187 (normal_stop): ... here. Simplify.
2188 * infrun.h (maybe_remove_breakpoints): Declare.
2189 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2190 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2191 (thread_fsm_should_notify_stop): Declare.
2192
2193 2015-09-09 Pedro Alves <palves@redhat.com>
2194
2195 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2196 * breakpoint.c (handle_jit_event): Print debug output.
2197 (bpstat_what): Split event callback handling to ...
2198 (bpstat_run_callbacks): ... this new function.
2199 (momentary_bkpt_print_it): No longer handle bp_finish here.
2200 * breakpoint.h (bpstat_run_callbacks): Declare.
2201 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2202 <thread_fsm>: New field.
2203 (thread_cancel_execution_command): Declare.
2204 * infcmd.c: Include thread-fsm.h.
2205 (struct step_command_fsm): New.
2206 (step_command_fsm_ops): New global.
2207 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2208 (step_1): Adjust to use step_command_fsm_prepare and
2209 prepare_one_step.
2210 (struct step_1_continuation_args): Delete.
2211 (step_1_continuation): Delete.
2212 (step_command_fsm_should_stop): New function.
2213 (step_once): Delete.
2214 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2215 (prepare_one_step): New function, based on step_once.
2216 (until_next_command): Remove step_multi reference.
2217 (struct return_value_info): New.
2218 (print_return_value): Rename to ...
2219 (print_return_value_1): ... this. New struct return_value_info
2220 parameter. Adjust.
2221 (print_return_value): Reimplement as wrapper around
2222 print_return_value_1.
2223 (struct finish_command_fsm): New.
2224 (finish_command_continuation): Delete.
2225 (finish_command_fsm_ops): New global.
2226 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2227 functions.
2228 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2229 New.
2230 (finish_command_continuation_free_arg): Delete.
2231 (finish_command_fsm_async_reply_reason): New.
2232 (finish_backward, finish_forward): Change symbol parameter to a
2233 finish_command_fsm. Adjust.
2234 (finish_command): Create a finish_command_fsm. Adjust.
2235 * infrun.c: Include "thread-fsm.h".
2236 (clear_proceed_status_thread): Delete the thread's FSM.
2237 (infrun_thread_stop_requested_callback): Cancel the thread's
2238 execution command.
2239 (clean_up_just_stopped_threads_fsms): New function.
2240 (fetch_inferior_event): Handle the event_thread's should_stop
2241 method saying the command isn't done yet.
2242 (process_event_stop_test): Run breakpoint callbacks here.
2243 (print_stop_event): Rename to ...
2244 (print_stop_location): ... this.
2245 (restore_current_uiout_cleanup): New function.
2246 (print_stop_event): Reimplement.
2247 (normal_stop): No longer notify the end_stepping_range observers
2248 here handle "step N" nor "finish" here. No longer call
2249 print_stop_event here.
2250 * infrun.h (struct return_value_info): Forward declare.
2251 (print_return_value): Declare.
2252 (print_stop_event): Change prototype.
2253 * thread-fsm.c: New file.
2254 * thread-fsm.h: New file.
2255 * thread.c: Include "thread-fsm.h".
2256 (thread_cancel_execution_command): New function.
2257 (clear_thread_inferior_resources): Call it.
2258 * cli/cli-interp.c (cli_on_normal_stop): New function.
2259 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2260 observer.
2261 * mi/mi-interp.c: Include "thread-fsm.h".
2262 (restore_current_uiout_cleanup): Delete.
2263 (mi_on_normal_stop): If the thread has an FSM associated, and it
2264 finished, ask it for the async-reply-reason to print. Always call
2265 print_stop_event here, regardless of the top-level interpreter.
2266 Check bpstat_what to tell whether an asynchronous breakpoint hit
2267 triggered.
2268 * tui/tui-interp.c (tui_on_normal_stop): New function.
2269 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2270
2271 2015-09-09 Pedro Alves <palves@redhat.com>
2272
2273 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2274 check whether the target can async.
2275 * inf-loop.c (inferior_event_handler): Only call target_async if
2276 the target can async.
2277 * infcall.c: Include top.h and interps.h.
2278 (run_inferior_call): For the interpreter to sync mode while
2279 running the infcall. Call wait_sync_command_done instead of
2280 wait_for_inferior plus normal_stop.
2281 * infcmd.c (prepare_execution_command): Don't check whether the
2282 target can async when running in the foreground.
2283 (step_1): Delete synchronous case handling.
2284 (step_once): Always install a continuation, even in sync mode.
2285 (until_next_command, finish_forward): Don't check whether the
2286 target can async.
2287 (attach_command_post_wait, notice_new_inferior): Always install a
2288 continuation, even in sync mode.
2289 * infrun.c (mark_infrun_async_event_handler): New function.
2290 (proceed): In sync mode, mark infrun's event source instead of
2291 waiting for events here.
2292 (fetch_inferior_event): If the target can't async, do a blocking
2293 wait.
2294 (prepare_to_wait): In sync mode, mark infrun's event source.
2295 (infrun_async_inferior_event_handler): No longer bail out if the
2296 target can't async.
2297 * infrun.h (mark_infrun_async_event_handler): New declaration.
2298 * linux-nat.c (linux_nat_wait_1): Remove calls to
2299 set_sigint_trap/clear_sigint_trap.
2300 (linux_nat_terminal_inferior): No longer check whether the target
2301 can async.
2302 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2303 comment.
2304 (mi_execute_command_input_handler): No longer check whether the
2305 target is async. Update and simplify comment.
2306 * target.c (default_target_wait): New function.
2307 * target.h (struct target_ops) <to_wait>: Now defaults to
2308 default_target_wait.
2309 (default_target_wait): Declare.
2310 * top.c (wait_sync_command_done): New function, factored out from
2311 ...
2312 (maybe_wait_sync_command_done): ... this.
2313 * top.h (wait_sync_command_done): Declare.
2314 * target-delegates.c: Regenerate.
2315
2316 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2317
2318 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2319 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2320 Remove include of sys/utsname.h.
2321 (linux_determine_kernel_ptr_bits): Remove.
2322 (linux_determine_kernel_start): New.
2323 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2324 Update check.
2325 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2326 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2327 initialization.
2328 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2329 assignment.
2330
2331 2015-09-07 Pedro Alves <palves@redhat.com>
2332
2333 * guile/guile-internal.h (as_a_scm_t_subr): New.
2334 * guile/guile.c (misc_guile_functions): Use it.
2335 * guile/scm-arch.c (arch_functions): Use it.
2336 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2337 Use it.
2338 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2339 * guile/scm-cmd.c (command_functions): Use it.
2340 * guile/scm-disasm.c (disasm_functions): Use it.
2341 * guile/scm-exception.c (exception_functions)
2342 (private_exception_functions): Use it.
2343 * guile/scm-frame.c (frame_functions)
2344 * guile/scm-gsmob.c (gsmob_functions): Use it.
2345 * guile/scm-iterator.c (iterator_functions): Use it.
2346 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2347 * guile/scm-math.c (math_functions): Use it.
2348 * guile/scm-objfile.c (objfile_functions): Use it.
2349 * guile/scm-param.c (parameter_functions): Use it.
2350 * guile/scm-ports.c (port_functions, private_port_functions): Use
2351 it.
2352 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2353 * guile/scm-progspace.c (pspace_functions): Use it.
2354 * guile/scm-string.c (string_functions): Use it.
2355 * guile/scm-symbol.c (symbol_functions): Use it.
2356 * guile/scm-symtab.c (symtab_functions): Use it.
2357 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2358 it.
2359 * guile/scm-value.c (value_functions): Use it.
2360
2361 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2362
2363 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2364 (tui_next_win): Likewise.
2365 (tui_prev_win): Likewise.
2366 (tui_partial_win_by_name): Likewise.
2367 (tui_init_generic_part): Likewise.
2368 (init_content_element): Likewise.
2369 (tui_del_window): Likewise.
2370 (tui_free_window): Likewise.
2371 (tui_del_data_windows): Likewise.
2372 (tui_free_data_content): Likewise.
2373 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2374 * tui/tui-regs.c (tui_show_register_group): Likewise.
2375 * tui/tui-win.c (tui_resize_all): Likewise.
2376 (tui_set_focus): Likewise.
2377 (tui_set_win_height): Likewise.
2378 (make_invisible_and_set_new_height): Likewise.
2379 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2380 * tui/tui-wingeneral.c (make_visible): Likewise.
2381
2382 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2383
2384 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2385
2386 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2387
2388 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2389 pointer.
2390 * dbxread.c (dbx_end_psymtab): Likewise.
2391 * gnu-nat.c (gnu_write_inferior): Likewise.
2392 * mdebugread.c (cross_ref): Likewise.
2393 * p-valprint.c (pascal_val_print): Likewise.
2394 * xcoffread.c (xcoff_end_psymtab): Likewise.
2395
2396 2015-09-04 Yao Qi <yao.qi@linaro.org>
2397
2398 * NEWS: Mention the aarch64 multi-arch debugging support.
2399
2400 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2401
2402 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2403 type instead of a TYPE_CODE_INT one for the string_char_type
2404 and the ada_primitive_type_char types.
2405
2406 2015-09-03 Yao Qi <yao.qi@linaro.org>
2407
2408 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2409 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2410 aarch64_linux_region_ok_for_watchpoint.
2411 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2412 New function.
2413 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2414 Declare it.
2415
2416 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2417
2418 * gdb_obstack.h (obstack_strdup): Declare.
2419 * gdb_obstack.c (obstack_strdup): Define.
2420 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2421 * gdbarch.c: Regenerate.
2422 * gdbarch.h: Regenerate.
2423 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2424
2425 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2426
2427 * gdbtypes.c (copy_type_recursive): Update documentation.
2428
2429 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2430
2431 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2432 as zero.
2433
2434 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2435
2436 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2437
2438 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2439
2440 * solib-svr4.c (solib_event_probe_action): Call
2441 get_probe_argument_count using TRY...CATCH.
2442 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2443
2444 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2445
2446 * probe.h (struct probe_ops) <get_probe_argument_count,
2447 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2448 the comment that the function can throw an exception.
2449 (get_probe_argument_count): Likewise.
2450 (evaluate_probe_argument): Likewise.
2451 * stap-probe.c (stap_get_opcode): Call error instead of
2452 internal_error.
2453 (stap_get_expected_argument_type): Likewise. Add argument
2454 'probe'. Improve error message by mentioning the probe's name.
2455 (stap_parse_probe_arguments): Adjust call to
2456 stap_get_expected_argument_type.
2457 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2458 not zero. Call internal_error if GDB requests an argument but the
2459 probe has no arguments.
2460
2461 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2462
2463 * ada-lang.c (ada_resolve_function): Do not ask the user what
2464 match to use when in completion mode.
2465
2466 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2467
2468 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2469 cast of NULL.
2470
2471 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2472
2473 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2474 call_abi using XSHAL_ABI macro.
2475
2476 2015-08-29 Doug Evans <xdje42@gmail.com>
2477
2478 * symtab.h (struct symbol): Tweak comment.
2479
2480 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2481
2482 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2483 gdbarch obstack instead of on the heap. Update commentary
2484 accordingly.
2485
2486 2015-08-28 Joel Brobecker <brobecker@adacore.com>
2487
2488 GDB 7.10 released.
2489
2490 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2491
2492 * NEWS: Update entry about non-8-bits addressable memory.
2493
2494 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2495
2496 Revert:
2497 2014-11-06 Doug Evans <xdje42@gmail.com>
2498 * solib.c (solib_global_lookup): Fetch arch from objfile,
2499 not target_gdbarch.
2500
2501 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2502
2503 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2504 attempt to relocate a TLS variable offset.
2505
2506 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2507
2508 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2509 registered yet. Set inferior_ptid while calling target_read_memory.
2510
2511 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2512
2513 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2514 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2515 * linux-nat.c (check_stopped_by_breakpoint): Use
2516 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2517
2518 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2519
2520 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2521 thread was not yet discovered, use thread_from_lwp instead of
2522 calling thread_db_find_new_threads_1.
2523
2524 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2525
2526 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2527 statements.
2528
2529 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2530
2531 * NEWS: Document support for non-8-bits addressable memory.
2532
2533 2015-08-27 Pedro Alves <palves@redhat.com>
2534
2535 * configure.ac: Remove AC_TYPE_SIGNAL call.
2536 * configure, config.in: Regenerate.
2537
2538 2015-08-27 Pedro Alves <palves@redhat.com>
2539
2540 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2541 * extension-priv.h: Include signal.h.
2542 (struct signal_handler) <handler>: Change type to sighandler_t.
2543 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2544 * inflow.c (sigint_ours, sigquit_ours): Change type to
2545 sighandler_t.
2546 (child_terminal_inferior): Remove casts.
2547 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2548 (osig): Change type to sighandler_t.
2549 * nto-procfs.c (ofunc): Change type to sighandler_t.
2550 (procfs_wait): Remove casts.
2551 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2552 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2553 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2554
2555 2015-08-27 Pedro Alves <palves@redhat.com>
2556
2557 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2558 * gnulib/aclocal.m4: Renegerate.
2559 * gnulib/config.in: Renegerate.
2560 * gnulib/configure: Renegerate.
2561 * gnulib/import/Makefile.am: Update.
2562 * gnulib/import/Makefile.in: Regenerate.
2563 * gnulib/import/m4/gnulib-cache.m4: Update.
2564 * gnulib/import/m4/gnulib-comp.m4: Update.
2565 * gnulib/import/m4/signal_h.m4: New file.
2566 * gnulib/import/signal.in.h: New file.
2567
2568 2015-08-27 Pedro Alves <palves@redhat.com>
2569
2570 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2571 (MIN_MEMORY_PACKET_SIZE): New.
2572 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2573 (get_memory_packet_size): Adjust. No longer limit the max packet
2574 size.
2575 (set_memory_packet_size): Adjust, and remove dead code.
2576 (remote_check_symbols): Use xmalloc and a cleanup instead of
2577 alloca.
2578 (remote_packet_size): No longer cap the packet size.
2579 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2580
2581 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
2582
2583 * compile/compile.c (compile_to_object): Mention language in
2584 error message.
2585
2586 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2587
2588 * target.c (target_pre_inferior): Unset attach_flag.
2589
2590 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2591
2592 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2593 * gdbarch.c: Re-generate.
2594
2595 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2596
2597 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2598 function with the XNEW-family equivalent.
2599 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2600 * ada-exp.y (write_ambiguous_var): Likewise.
2601 * ada-lang.c (resolve_subexp): Likewise.
2602 (user_select_syms): Likewise.
2603 (assign_aggregate): Likewise.
2604 (ada_evaluate_subexp): Likewise.
2605 (cache_symbol): Likewise.
2606 * addrmap.c (allocate_key): Likewise.
2607 (addrmap_create_mutable): Likewise.
2608 * aix-thread.c (sync_threadlists): Likewise.
2609 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2610 (alpha_gdbarch_init): Likewise.
2611 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2612 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2613 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2614 * arm-tdep.c (push_stack_item): Likewise.
2615 (arm_displaced_step_copy_insn): Likewise.
2616 (arm_gdbarch_init): Likewise.
2617 (_initialize_arm_tdep): Likewise.
2618 * avr-tdep.c (push_stack_item): Likewise.
2619 * ax-general.c (new_agent_expr): Likewise.
2620 * block.c (block_initialize_namespace): Likewise.
2621 * breakpoint.c (alloc_counted_command_line): Likewise.
2622 (update_dprintf_command_list): Likewise.
2623 (parse_breakpoint_sals): Likewise.
2624 (decode_static_tracepoint_spec): Likewise.
2625 (until_break_command): Likewise.
2626 (clear_command): Likewise.
2627 (update_global_location_list): Likewise.
2628 (get_breakpoint_objfile_data) Likewise.
2629 * btrace.c (ftrace_new_function): Likewise.
2630 (btrace_set_insn_history): Likewise.
2631 (btrace_set_call_history): Likewise.
2632 * buildsym.c (add_symbol_to_list): Likewise.
2633 (record_pending_block): Likewise.
2634 (start_subfile): Likewise.
2635 (start_buildsym_compunit): Likewise.
2636 (push_subfile): Likewise.
2637 (end_symtab_get_static_block): Likewise.
2638 (buildsym_init): Likewise.
2639 * cli/cli-cmds.c (source_command): Likewise.
2640 * cli/cli-decode.c (add_cmd): Likewise.
2641 * cli/cli-script.c (build_command_line): Likewise.
2642 (setup_user_args): Likewise.
2643 (realloc_body_list): Likewise.
2644 (process_next_line): Likewise.
2645 (copy_command_lines): Likewise.
2646 * cli/cli-setshow.c (do_set_command): Likewise.
2647 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2648 * coffread.c (coff_locate_sections): Likewise.
2649 (coff_symtab_read): Likewise.
2650 (coff_read_struct_type): Likewise.
2651 * common/cleanups.c (make_my_cleanup2): Likewise.
2652 * common/common-exceptions.c (throw_it): Likewise.
2653 * common/filestuff.c (make_cleanup_close): Likewise.
2654 * common/format.c (parse_format_string): Likewise.
2655 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2656 * compile/compile-object-load.c (munmap_list_add): Likewise.
2657 (compile_object_load): Likewise.
2658 * compile/compile-object-run.c (compile_object_run): Likewise.
2659 * compile/compile.c (append_args): Likewise.
2660 * corefile.c (specify_exec_file_hook): Likewise.
2661 * cp-support.c (make_symbol_overload_list): Likewise.
2662 * cris-tdep.c (push_stack_item): Likewise.
2663 (cris_gdbarch_init): Likewise.
2664 * ctf.c (ctf_trace_file_writer_new): Likewise.
2665 * dbxread.c (init_header_files): Likewise.
2666 (add_new_header_file): Likewise.
2667 (init_bincl_list): Likewise.
2668 (dbx_end_psymtab): Likewise.
2669 (start_psymtab): Likewise.
2670 (dbx_end_psymtab): Likewise.
2671 * dcache.c (dcache_init): Likewise.
2672 * dictionary.c (dict_create_hashed): Likewise.
2673 (dict_create_hashed_expandable): Likewise.
2674 (dict_create_linear): Likewise.
2675 (dict_create_linear_expandable): Likewise.
2676 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2677 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2678 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2679 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2680 (decode_frame_entry_1): Likewise.
2681 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2682 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2683 * dwarf2read.c (dwarf2_has_info): Likewise.
2684 (create_signatured_type_table_from_index): Likewise.
2685 (dwarf2_read_index): Likewise.
2686 (dw2_get_file_names_reader): Likewise.
2687 (create_all_type_units): Likewise.
2688 (read_cutu_die_from_dwo): Likewise.
2689 (init_tu_and_read_dwo_dies): Likewise.
2690 (init_cutu_and_read_dies): Likewise.
2691 (create_all_comp_units): Likewise.
2692 (queue_comp_unit): Likewise.
2693 (inherit_abstract_dies): Likewise.
2694 (read_call_site_scope): Likewise.
2695 (dwarf2_add_field): Likewise.
2696 (dwarf2_add_typedef): Likewise.
2697 (dwarf2_add_member_fn): Likewise.
2698 (attr_to_dynamic_prop): Likewise.
2699 (abbrev_table_alloc_abbrev): Likewise.
2700 (abbrev_table_read_table): Likewise.
2701 (add_include_dir): Likewise.
2702 (add_file_name): Likewise.
2703 (dwarf_decode_line_header): Likewise.
2704 (dwarf2_const_value_attr): Likewise.
2705 (dwarf_alloc_block): Likewise.
2706 (parse_macro_definition): Likewise.
2707 (set_die_type): Likewise.
2708 (write_psymtabs_to_index): Likewise.
2709 (create_cus_from_index): Likewise.
2710 (dwarf2_create_include_psymtab): Likewise.
2711 (process_psymtab_comp_unit_reader): Likewise.
2712 (build_type_psymtab_dependencies): Likewise.
2713 (read_comp_units_from_section): Likewise.
2714 (compute_compunit_symtab_includes): Likewise.
2715 (create_dwo_unit_in_dwp_v1): Likewise.
2716 (create_dwo_unit_in_dwp_v2): Likewise.
2717 (read_func_scope): Likewise.
2718 (process_structure_scope): Likewise.
2719 (mark_common_block_symbol_computed): Likewise.
2720 (load_partial_dies): Likewise.
2721 (dwarf2_symbol_mark_computed): Likewise.
2722 * elfread.c (elf_symfile_segments): Likewise.
2723 (elf_read_minimal_symbols): Likewise.
2724 * environ.c (make_environ): Likewise.
2725 * eval.c (evaluate_subexp_standard): Likewise.
2726 * event-loop.c (create_file_handler): Likewise.
2727 (create_async_signal_handler): Likewise.
2728 (create_async_event_handler): Likewise.
2729 (create_timer): Likewise.
2730 * exec.c (build_section_table): Likewise.
2731 * fbsd-nat.c (fbsd_remember_child): Likewise.
2732 * fork-child.c (fork_inferior): Likewise.
2733 * frv-tdep.c (new_variant): Likewise.
2734 * gdbarch.sh (gdbarch_alloc): Likewise.
2735 (append_name): Likewise.
2736 * gdbtypes.c (rank_function): Likewise.
2737 (copy_type_recursive): Likewise.
2738 (add_dyn_prop): Likewise.
2739 * gnu-nat.c (make_proc): Likewise.
2740 (make_inf): Likewise.
2741 (gnu_write_inferior): Likewise.
2742 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2743 (build_std_type_info_type): Likewise.
2744 * guile/scm-param.c (compute_enum_list): Likewise.
2745 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2746 * guile/scm-value.c (gdbscm_value_call): Likewise.
2747 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2748 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2749 (read_unwind_info): Likewise.
2750 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2751 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2752 (call_function_by_hand_dummy): Likewise.
2753 * infcmd.c (step_once): Likewise.
2754 (finish_forward): Likewise.
2755 (attach_command): Likewise.
2756 (notice_new_inferior): Likewise.
2757 * inferior.c (add_inferior_silent): Likewise.
2758 * infrun.c (add_displaced_stepping_state): Likewise.
2759 (save_infcall_control_state): Likewise.
2760 (save_inferior_ptid): Likewise.
2761 (_initialize_infrun): Likewise.
2762 * jit.c (bfd_open_from_target_memory): Likewise.
2763 (jit_gdbarch_data_init): Likewise.
2764 * language.c (add_language): Likewise.
2765 * linespec.c (decode_line_2): Likewise.
2766 * linux-nat.c (add_to_pid_list): Likewise.
2767 (add_initial_lwp): Likewise.
2768 * linux-thread-db.c (add_thread_db_info): Likewise.
2769 (record_thread): Likewise.
2770 (info_auto_load_libthread_db): Likewise.
2771 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2772 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2773 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2774 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2775 * macrocmd.c (macro_define_command): Likewise.
2776 * macroexp.c (gather_arguments): Likewise.
2777 * macroscope.c (sal_macro_scope): Likewise.
2778 * macrotab.c (new_macro_table): Likewise.
2779 * mdebugread.c (push_parse_stack): Likewise.
2780 (parse_partial_symbols): Likewise.
2781 (parse_symbol): Likewise.
2782 (psymtab_to_symtab_1): Likewise.
2783 (new_block): Likewise.
2784 (new_psymtab): Likewise.
2785 (mdebug_build_psymtabs): Likewise.
2786 (add_pending): Likewise.
2787 (elfmdebug_build_psymtabs): Likewise.
2788 * mep-tdep.c (mep_gdbarch_init): Likewise.
2789 * mi/mi-main.c (mi_execute_command): Likewise.
2790 * mi/mi-parse.c (mi_parse_argv): Likewise.
2791 * minidebug.c (lzma_open): Likewise.
2792 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2793 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2794 * mips-tdep.c (mips_gdbarch_init): Likewise.
2795 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2796 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2797 * mt-tdep.c (mt_registers_info): Likewise.
2798 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2799 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2800 (linux_enable_pt): Likewise.
2801 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2802 (linux_xfer_osdata_processgroups): Likewise.
2803 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2804 * nto-procfs.c (procfs_meminfo): Likewise.
2805 * objc-lang.c (start_msglist): Likewise.
2806 (selectors_info): Likewise.
2807 (classes_info): Likewise.
2808 (find_methods): Likewise.
2809 * objfiles.c (allocate_objfile): Likewise.
2810 (update_section_map): Likewise.
2811 * osabi.c (gdbarch_register_osabi): Likewise.
2812 (gdbarch_register_osabi_sniffer): Likewise.
2813 * parse.c (start_arglist): Likewise.
2814 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2815 (hwdebug_insert_point): Likewise.
2816 * printcmd.c (display_command): Likewise.
2817 (ui_printf): Likewise.
2818 * procfs.c (create_procinfo): Likewise.
2819 (load_syscalls): Likewise.
2820 (proc_get_LDT_entry): Likewise.
2821 (proc_update_threads): Likewise.
2822 * prologue-value.c (make_pv_area): Likewise.
2823 (pv_area_store): Likewise.
2824 * psymtab.c (extend_psymbol_list): Likewise.
2825 (init_psymbol_list): Likewise.
2826 (allocate_psymtab): Likewise.
2827 * python/py-inferior.c (add_thread_object): Likewise.
2828 * python/py-param.c (compute_enum_values): Likewise.
2829 * python/py-value.c (valpy_call): Likewise.
2830 * python/py-varobj.c (py_varobj_iter_next): Likewise.
2831 * python/python.c (ensure_python_env): Likewise.
2832 * record-btrace.c (record_btrace_start_replaying): Likewise.
2833 * record-full.c (record_full_reg_alloc): Likewise.
2834 (record_full_mem_alloc): Likewise.
2835 (record_full_end_alloc): Likewise.
2836 (record_full_core_xfer_partial): Likewise.
2837 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2838 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2839 * remote-notif.c (remote_notif_state_allocate): Likewise.
2840 * remote.c (demand_private_info): Likewise.
2841 (remote_notif_stop_alloc_reply): Likewise.
2842 (remote_enable_btrace): Likewise.
2843 * reverse.c (save_bookmark_command): Likewise.
2844 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2845 * rx-tdep.c (rx_gdbarch_init): Likewise.
2846 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2847 * ser-go32.c (dos_get_tty_state): Likewise.
2848 (dos_copy_tty_state): Likewise.
2849 * ser-mingw.c (ser_windows_open): Likewise.
2850 (ser_console_wait_handle): Likewise.
2851 (ser_console_get_tty_state): Likewise.
2852 (make_pipe_state): Likewise.
2853 (net_windows_open): Likewise.
2854 * ser-unix.c (hardwire_get_tty_state): Likewise.
2855 (hardwire_copy_tty_state): Likewise.
2856 * solib-aix.c (solib_aix_new_lm_info): Likewise.
2857 * solib-dsbt.c (dsbt_current_sos): Likewise.
2858 (dsbt_relocate_main_executable): Likewise.
2859 * solib-frv.c (frv_current_sos): Likewise.
2860 (frv_relocate_main_executable): Likewise.
2861 * solib-spu.c (spu_bfd_fopen): Likewise.
2862 * solib-svr4.c (lm_info_read): Likewise.
2863 (svr4_copy_library_list): Likewise.
2864 (svr4_default_sos): Likewise.
2865 * source.c (find_source_lines): Likewise.
2866 (line_info): Likewise.
2867 (add_substitute_path_rule): Likewise.
2868 * spu-linux-nat.c (spu_bfd_open): Likewise.
2869 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2870 * stabsread.c (dbx_lookup_type): Likewise.
2871 (read_type): Likewise.
2872 (read_member_functions): Likewise.
2873 (read_struct_fields): Likewise.
2874 (read_baseclasses): Likewise.
2875 (read_args): Likewise.
2876 (_initialize_stabsread): Likewise.
2877 * stack.c (func_command): Likewise.
2878 * stap-probe.c (handle_stap_probe): Likewise.
2879 * symfile.c (addrs_section_sort): Likewise.
2880 (addr_info_make_relative): Likewise.
2881 (load_section_callback): Likewise.
2882 (add_symbol_file_command): Likewise.
2883 (init_filename_language_table): Likewise.
2884 * symtab.c (create_filename_seen_cache): Likewise.
2885 (sort_search_symbols_remove_dups): Likewise.
2886 (search_symbols): Likewise.
2887 * target.c (make_cleanup_restore_target_terminal): Likewise.
2888 * thread.c (new_thread): Likewise.
2889 (enable_thread_stack_temporaries): Likewise.
2890 (make_cleanup_restore_current_thread): Likewise.
2891 (thread_apply_all_command): Likewise.
2892 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2893 * top.c (gdb_readline_wrapper): Likewise.
2894 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2895 * tracepoint.c (trace_find_line_command): Likewise.
2896 (all_tracepoint_actions_and_cleanup): Likewise.
2897 (make_cleanup_restore_current_traceframe): Likewise.
2898 (get_uploaded_tp): Likewise.
2899 (get_uploaded_tsv): Likewise.
2900 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2901 (tui_alloc_win_info): Likewise.
2902 (tui_alloc_content): Likewise.
2903 (tui_add_content_elements): Likewise.
2904 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
2905 (tui_set_disassem_content): Likewise.
2906 * ui-file.c (ui_file_new): Likewise.
2907 (stdio_file_new): Likewise.
2908 (tee_file_new): Likewise.
2909 * utils.c (make_cleanup_restore_integer): Likewise.
2910 (add_internal_problem_command): Likewise.
2911 * v850-tdep.c (v850_gdbarch_init): Likewise.
2912 * valops.c (find_oload_champ): Likewise.
2913 * value.c (allocate_value_lazy): Likewise.
2914 (record_latest_value): Likewise.
2915 (create_internalvar): Likewise.
2916 * varobj.c (install_variable): Likewise.
2917 (new_variable): Likewise.
2918 (new_root_variable): Likewise.
2919 (cppush): Likewise.
2920 (_initialize_varobj): Likewise.
2921 * windows-nat.c (windows_make_so): Likewise.
2922 * x86-nat.c (x86_add_process): Likewise.
2923 * xcoffread.c (arrange_linetable): Likewise.
2924 (allocate_include_entry): Likewise.
2925 (process_linenos): Likewise.
2926 (SYMBOL_DUP): Likewise.
2927 (xcoff_start_psymtab): Likewise.
2928 (xcoff_end_psymtab): Likewise.
2929 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
2930 * xtensa-tdep.c (xtensa_register_type): Likewise.
2931 * gdbarch.c: Regenerate.
2932 * gdbarch.h: Regenerate.
2933
2934 2015-08-25 Don Breazeal <donb@codesourcery.com>
2935
2936 * infrun.c (follow_exec): Re-order operations for
2937 handling follow-exec-mode "new".
2938 (handle_inferior_event_1): Assign ecs->event_thread
2939 to the current thread.
2940 * remote.c (get_remote_arch_state): Add an assertion.
2941
2942 2015-08-26 Pedro Alves <palves@redhat.com>
2943
2944 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
2945
2946 2015-08-25 Pedro Alves <palves@redhat.com>
2947
2948 PR gdb/18804
2949 * defs.h (maybe_quit): Declare.
2950 (QUIT): Now calls maybe_quit.
2951 * event-loop.c (clear_async_signal_handler)
2952 (async_signal_handler_is_marked): New functions.
2953 * event-loop.h (async_signal_handler_is_marked)
2954 (clear_async_signal_handler): New declarations.
2955 * remote.c (remote_check_pending_interrupt): New function.
2956 (interrupt_query): Use make_cleanup_restore_target_terminal. No
2957 longer check whether the target is async. If waiting for a stop
2958 reply, and a Ctrl-C as been sent to the target, offer to
2959 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
2960 Otherwise do not disconnect and throw a quit.
2961 (_initialize_remote): Install remote_check_pending_interrupt as
2962 to_check_pending_interrupt.
2963 * target.c (target_check_pending_interrupt): New function.
2964 * target.h (struct target_ops) <to_check_pending_interrupt>: New
2965 field.
2966 (target_check_pending_interrupt): New declaration.
2967 * utils.c (maybe_quit): New function.
2968 * target-delegates.c: Regenerate.
2969
2970 2015-08-25 Yao Qi <yao.qi@linaro.org>
2971
2972 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
2973 Rename local variable pid to tid, and get lwpid of lwp. Update
2974 debug output.
2975
2976 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
2977
2978 * ada-lang.c (ada_read_var_value): Add a var_block argument
2979 and pass it to default_read_var_value.
2980 * block.c (block_static_link): New accessor.
2981 * block.h (block_static_link): Declare it.
2982 * buildsym.c (finish_block_internal): Add a static_link
2983 argument. If there is a static link, associate it to the new
2984 block.
2985 (finish_block): Add a static link argument and pass it to
2986 finish_block_internal.
2987 (end_symtab_get_static_block): Update calls to finish_block and
2988 to finish_block_internal.
2989 (end_symtab_with_blockvector): Update call to
2990 finish_block_internal.
2991 * buildsym.h: Forward-declare struct dynamic_prop.
2992 (struct context_stack): Add a static_link field.
2993 (finish_block): Add a static link argument.
2994 * c-exp.y: Remove an obsolete comment (evaluation of variables
2995 already start from the selected frame, and now they climb *up*
2996 the call stack) and propagate the block information to the
2997 produced expression.
2998 * d-exp.y: Likewise.
2999 * f-exp.y: Likewise.
3000 * go-exp.y: Likewise.
3001 * jv-exp.y: Likewise.
3002 * m2-exp.y: Likewise.
3003 * p-exp.y: Likewise.
3004 * coffread.c (coff_symtab_read): Update calls to finish_block.
3005 * dbxread.c (process_one_symbol): Likewise.
3006 * xcoffread.c (read_xcoff_symtab): Likewise.
3007 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3008 "sym" parameter to struct block_symbol, update its uses and pass
3009 its block to calls to read_var_value.
3010 (convert_symbol_sym): Update the calls to convert_one_symbol.
3011 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3012 call to read_var_value.
3013 * dwarf2loc.c (block_op_get_frame_base): New.
3014 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3015 get_frame_base method.
3016 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3017 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3018 instead of the selected frame in order to evaluate the
3019 expression.
3020 (dwarf2_evaluate_property): Add a frame argument. Update call
3021 to dwarf2_locexpr_baton_eval to provide a frame in available and
3022 to handle the absence of address stack.
3023 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3024 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3025 declaration.
3026 (read_func_scope): Record any available static link description.
3027 Update call to finish_block.
3028 (read_lexical_block_scope): Update call to finish_block.
3029 * findvar.c (follow_static_link): New.
3030 (get_hosting_frame): New.
3031 (default_read_var_value): Add a var_block argument. Use
3032 get_hosting_frame to handle non-local references.
3033 (read_var_value): Add a var_block argument and pass it to the
3034 LA_READ_VAR_VALUE method.
3035 * gdbtypes.c (resolve_dynamic_range): Update calls to
3036 dwarf2_evaluate_property.
3037 (resolve_dynamic_type_internal): Likewise.
3038 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3039 read_var_value, passing it the block coming from symbol lookup.
3040 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3041 read_var_value (TODO).
3042 * infcmd.c (finish_command_continuation): Update call to
3043 read_var_value, passing it the block coming from symbol lookup.
3044 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3045 * language.h (struct language_defn): Add a var_block argument to
3046 the LA_READ_VAR_VALUE method.
3047 * objfiles.c (struct static_link_htab_entry): New.
3048 (static_link_htab_entry_hash): New.
3049 (static_link_htab_entry_eq): New.
3050 (objfile_register_static_link): New.
3051 (objfile_lookup_static_link): New.
3052 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3053 * objfiles.h: Include hashtab.h.
3054 (struct objfile): Add a static_links field.
3055 (objfile_register_static_link): New.
3056 (objfile_lookup_static_link): New.
3057 * printcmd.c (print_variable_and_value): Update call to
3058 read_var_value.
3059 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3060 * python/py-frame.c (frapy_read_var): Update call to
3061 read_var_value, passing it the block coming from symbol lookup.
3062 * python/py-framefilter.c (extract_sym): Add a sym_block
3063 parameter and set the pointed value to NULL (TODO).
3064 (enumerate_args): Update call to extract_sym.
3065 (enumerate_locals): Update calls to extract_sym and to
3066 read_var_value.
3067 * python/py-symbol.c (sympy_value): Update call to
3068 read_var_value (TODO).
3069 * stack.c (read_frame_local): Update call to read_var_value.
3070 (read_frame_arg): Likewise.
3071 (return_command): Likewise.
3072 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3073 method.
3074 (struct symbol): Add a block field.
3075 (SYMBOL_BLOCK): New accessor.
3076 * valops.c (value_of_variable): Remove frame/block handling and
3077 pass the block argument to read_var_value, which does this job
3078 now.
3079 (value_struct_elt_for_reference): Update calls to
3080 read_var_value.
3081 (value_of_this): Pass the block found to read_var_value.
3082 * value.h (read_var_value): Add a var_block argument.
3083 (default_read_var_value): Likewise.
3084
3085 2015-08-25 Yao Qi <yao.qi@linaro.org>
3086
3087 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3088 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3089 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3090
3091 2015-08-25 Yao Qi <yao.qi@linaro.org>
3092
3093 * Makefile.in (aarch64-liunx.o): New rule.
3094 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3095 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3096 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3097 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3098 extern.
3099 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3100 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3101 * nat/aarch64-linux.c: New file.
3102 * nat/aarch64-linux.h: New file.
3103
3104 2015-08-25 Yao Qi <yao.qi@linaro.org>
3105
3106 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3107 lwp_arch_private_info and ptid_of_lwp.
3108
3109 2015-08-25 Yao Qi <yao.qi@linaro.org>
3110
3111 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3112 Move it to nat/aarch64-linux-hw-point.c.
3113 (debug_reg_change_callback): Likewise.
3114 (aarch64_notify_debug_reg_change): :Likewise.
3115 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3116 (aarch64_dr_update_callback_param): New.
3117 (debug_reg_change_callback): New function.
3118 (aarch64_notify_debug_reg_change): Likewise.
3119 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3120 Remove the declaration.
3121
3122 2015-08-25 Yao Qi <yao.qi@linaro.org>
3123
3124 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3125 Call current_lwp_ptid.
3126
3127 2015-08-25 Yao Qi <yao.qi@linaro.org>
3128
3129 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3130 debug_printf.
3131
3132 2015-08-25 Yao Qi <yao.qi@linaro.org>
3133
3134 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3135 ptid_get_pid rather than ptid_get_lwp.
3136
3137 2015-08-24 Pedro Alves <palves@redhat.com>
3138
3139 * NEWS (New commands): Mention set/show remote
3140 multiprocess-extensions-packet.
3141 * remote.c (remote_query_supported): Only tell the server to use
3142 the multiprocess extensions if the user hasn't force-disabled them
3143 with "set remote multiprocess-extensions-packet off".
3144
3145 2015-08-24 Pedro Alves <palves@redhat.com>
3146
3147 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3148 1029a8112290f6eee9d7878a391c49db42c999bd.
3149 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3150 Regenerate.
3151 * gnulib/import/Makefile.am: Update.
3152 * gnulib/import/Makefile.in: Update.
3153 * gnulib/import/alloca.in.h: Update.
3154 * gnulib/import/basename-lgpl.c: Update.
3155 * gnulib/import/canonicalize-lgpl.c: Update.
3156 * gnulib/import/config.charset: Update.
3157 * gnulib/import/dirent.in.h: Update.
3158 * gnulib/import/dirfd.c: Update.
3159 * gnulib/import/dirname-lgpl.c: Update.
3160 * gnulib/import/dirname.h: Update.
3161 * gnulib/import/dosname.h: Update.
3162 * gnulib/import/errno.in.h: Update.
3163 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3164 * gnulib/import/extra/snippet/c++defs.h: Update.
3165 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3166 * gnulib/import/extra/update-copyright: Update.
3167 * gnulib/import/float+.h: Update.
3168 * gnulib/import/float.c: Update.
3169 * gnulib/import/float.in.h: Update.
3170 * gnulib/import/fnmatch.c: Update.
3171 * gnulib/import/fnmatch.in.h: Update.
3172 * gnulib/import/fnmatch_loop.c: Update.
3173 * gnulib/import/fpucw.h: Update.
3174 * gnulib/import/frexp.c: Update.
3175 * gnulib/import/frexpl.c: Update.
3176 * gnulib/import/gettimeofday.c: Update.
3177 * gnulib/import/inttypes.in.h: Update.
3178 * gnulib/import/isnan.c: Update.
3179 * gnulib/import/isnand-nolibm.h: Update.
3180 * gnulib/import/isnand.c: Update.
3181 * gnulib/import/isnanl-nolibm.h: Update.
3182 * gnulib/import/isnanl.c: Update.
3183 * gnulib/import/itold.c: Update.
3184 * gnulib/import/localcharset.c: Update.
3185 * gnulib/import/localcharset.h: Update.
3186 * gnulib/import/lstat.c: Update.
3187 * gnulib/import/m4/00gnulib.m4: Update.
3188 * gnulib/import/m4/absolute-header.m4: Update.
3189 * gnulib/import/m4/alloca.m4: Update.
3190 * gnulib/import/m4/canonicalize.m4: Update.
3191 * gnulib/import/m4/codeset.m4: Update.
3192 * gnulib/import/m4/configmake.m4: Update.
3193 * gnulib/import/m4/dirent_h.m4: Update.
3194 * gnulib/import/m4/dirfd.m4: Update.
3195 * gnulib/import/m4/dirname.m4: Update.
3196 * gnulib/import/m4/double-slash-root.m4: Update.
3197 * gnulib/import/m4/eealloc.m4: Update.
3198 * gnulib/import/m4/errno_h.m4: Update.
3199 * gnulib/import/m4/exponentd.m4: Update.
3200 * gnulib/import/m4/exponentl.m4: Update.
3201 * gnulib/import/m4/extensions.m4: Update.
3202 * gnulib/import/m4/extern-inline.m4: Update.
3203 * gnulib/import/m4/fcntl-o.m4: Update.
3204 * gnulib/import/m4/float_h.m4: Update.
3205 * gnulib/import/m4/fnmatch.m4: Update.
3206 * gnulib/import/m4/fpieee.m4: Update.
3207 * gnulib/import/m4/frexp.m4: Update.
3208 * gnulib/import/m4/frexpl.m4: Update.
3209 * gnulib/import/m4/gettimeofday.m4: Update.
3210 * gnulib/import/m4/glibc21.m4: Update.
3211 * gnulib/import/m4/gnulib-cache.m4: Update.
3212 * gnulib/import/m4/gnulib-common.m4: Update.
3213 * gnulib/import/m4/gnulib-comp.m4: Update.
3214 * gnulib/import/m4/gnulib-tool.m4: Update.
3215 * gnulib/import/m4/include_next.m4: Update.
3216 * gnulib/import/m4/inttypes-pri.m4: Update.
3217 * gnulib/import/m4/inttypes.m4: Update.
3218 * gnulib/import/m4/isnand.m4: Update.
3219 * gnulib/import/m4/isnanl.m4: Update.
3220 * gnulib/import/m4/largefile.m4: Update.
3221 * gnulib/import/m4/localcharset.m4: Update.
3222 * gnulib/import/m4/locale-fr.m4: Update.
3223 * gnulib/import/m4/locale-ja.m4: Update.
3224 * gnulib/import/m4/locale-zh.m4: Update.
3225 * gnulib/import/m4/longlong.m4: Update.
3226 * gnulib/import/m4/lstat.m4: Update.
3227 * gnulib/import/m4/malloc.m4: Update.
3228 * gnulib/import/m4/malloca.m4: Update.
3229 * gnulib/import/m4/math_h.m4: Update.
3230 * gnulib/import/m4/mbrtowc.m4: Update.
3231 * gnulib/import/m4/mbsinit.m4: Update.
3232 * gnulib/import/m4/mbsrtowcs.m4: Update.
3233 * gnulib/import/m4/mbstate_t.m4: Update.
3234 * gnulib/import/m4/memchr.m4: Update.
3235 * gnulib/import/m4/memmem.m4: Update.
3236 * gnulib/import/m4/mmap-anon.m4: Update.
3237 * gnulib/import/m4/multiarch.m4: Update.
3238 * gnulib/import/m4/nocrash.m4: Update.
3239 * gnulib/import/m4/off_t.m4: Update.
3240 * gnulib/import/m4/pathmax.m4: Update.
3241 * gnulib/import/m4/readlink.m4: Update.
3242 * gnulib/import/m4/rename.m4: Update.
3243 * gnulib/import/m4/rmdir.m4: Update.
3244 * gnulib/import/m4/ssize_t.m4: Update.
3245 * gnulib/import/m4/stat.m4: Update.
3246 * gnulib/import/m4/stdbool.m4: Update.
3247 * gnulib/import/m4/stddef_h.m4: Update.
3248 * gnulib/import/m4/stdint.m4: Update.
3249 * gnulib/import/m4/stdio_h.m4: Update.
3250 * gnulib/import/m4/stdlib_h.m4: Update.
3251 * gnulib/import/m4/string_h.m4: Update.
3252 * gnulib/import/m4/strstr.m4: Update.
3253 * gnulib/import/m4/strtok_r.m4: Update.
3254 * gnulib/import/m4/sys_socket_h.m4: Update.
3255 * gnulib/import/m4/sys_stat_h.m4: Update.
3256 * gnulib/import/m4/sys_time_h.m4: Update.
3257 * gnulib/import/m4/sys_types_h.m4: Update.
3258 * gnulib/import/m4/time_h.m4: Update.
3259 * gnulib/import/m4/unistd_h.m4: Update.
3260 * gnulib/import/m4/warn-on-use.m4: Update.
3261 * gnulib/import/m4/wchar_h.m4: Update.
3262 * gnulib/import/m4/wchar_t.m4: Update.
3263 * gnulib/import/m4/wctype_h.m4: Update.
3264 * gnulib/import/m4/wint_t.m4: Update.
3265 * gnulib/import/malloc.c: Update.
3266 * gnulib/import/malloca.c: Update.
3267 * gnulib/import/malloca.h: Update.
3268 * gnulib/import/math.in.h: Update.
3269 * gnulib/import/mbrtowc.c: Update.
3270 * gnulib/import/mbsinit.c: Update.
3271 * gnulib/import/mbsrtowcs-impl.h: Update.
3272 * gnulib/import/mbsrtowcs-state.c: Update.
3273 * gnulib/import/mbsrtowcs.c: Update.
3274 * gnulib/import/memchr.c: Update.
3275 * gnulib/import/memmem.c: Update.
3276 * gnulib/import/pathmax.h: Update.
3277 * gnulib/import/readlink.c: Update.
3278 * gnulib/import/ref-add.sin: Update.
3279 * gnulib/import/ref-del.sin: Update.
3280 * gnulib/import/rename.c: Update.
3281 * gnulib/import/rmdir.c: Update.
3282 * gnulib/import/same-inode.h: Update.
3283 * gnulib/import/stat.c: Update.
3284 * gnulib/import/stdbool.in.h: Update.
3285 * gnulib/import/stddef.in.h: Update.
3286 * gnulib/import/stdint.in.h: Update.
3287 * gnulib/import/stdio.c: Update.
3288 * gnulib/import/stdio.in.h: Update.
3289 * gnulib/import/stdlib.in.h: Update.
3290 * gnulib/import/str-two-way.h: Update.
3291 * gnulib/import/streq.h: Update.
3292 * gnulib/import/string.in.h: Update.
3293 * gnulib/import/stripslash.c: Update.
3294 * gnulib/import/strnlen1.c: Update.
3295 * gnulib/import/strnlen1.h: Update.
3296 * gnulib/import/strstr.c: Update.
3297 * gnulib/import/strtok_r.c: Update.
3298 * gnulib/import/sys_stat.in.h: Update.
3299 * gnulib/import/sys_time.in.h: Update.
3300 * gnulib/import/sys_types.in.h: Update.
3301 * gnulib/import/time.in.h: Update.
3302 * gnulib/import/unistd.in.h: Update.
3303 * gnulib/import/verify.h: Update.
3304 * gnulib/import/wchar.in.h: Update.
3305 * gnulib/import/wctype.in.h: Update.
3306 * gnulib/import/gettimeofday.c: New file.
3307 * gnulib/import/m4/absolute-header.m4: New file.
3308 * gnulib/import/m4/gettimeofday.m4: New file.
3309 * gnulib/import/m4/sys_socket_h.m4: New file.
3310 * gnulib/import/m4/sys_time_h.m4: New file.
3311 * gnulib/import/stdio.c: Delete file.
3312 * gnulib/import/sys_time.in.h: New file.
3313
3314 2015-08-24 Pedro Alves <palves@redhat.com>
3315
3316 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3317 * common/gdb_sys_time.h: New file.
3318 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3319 * gdb_select.h: Likewise.
3320 * gdb_usleep.c: Likewise.
3321 * maint.c: Likewise.
3322 * mi/mi-main.c: Likewise.
3323 * mi/mi-parse.h: Likewise.
3324 * remote-fileio.c: Likewise.
3325 * remote-m32r-sdi.c: Likewise.
3326 * remote.c: Likewise.
3327 * ser-base.c: Likewise.
3328 * ser-pipe.c: Likewise.
3329 * ser-tcp.c: Likewise.
3330 * ser-unix.c: Likewise.
3331 * symfile.c: Likewise.
3332 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3333 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3334 * utils.c: Likewise.
3335
3336 2015-08-24 Pedro Alves <palves@redhat.com>
3337
3338 * NEWS: Mention removed support for the various ROM monitors.
3339 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3340 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3341 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3342 gdb_target_obs.
3343 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3344 gdb_target_obs.
3345 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3346 dsrec.o from gdb_target_obs.
3347 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3348 from gdb_target_obs.
3349 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3350 gdb_target_obs.
3351 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3352 dink32-rom.o from gdb_target_obs.
3353 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3354 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3355 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3356 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3357
3358 2015-08-21 Pedro Alves <palves@redhat.com>
3359
3360 * frame.c (null_frame_id): Explicitly zero-initialize.
3361
3362 2015-08-21 Tom Tromey <tromey@redhat.com>
3363
3364 * dwarf2read.c (struct dwarf2_section_info): Rename field
3365 'asection' to 'section'.
3366 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3367 (dwarf2_locate_sections, dwarf2_locate_sections)
3368 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3369 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3370 (dwarf2_locate_v2_dwp_sections): Adjust.
3371
3372 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3373
3374 * top.h (gdb_in_secondary_prompt_p): Declare.
3375 * top.c (gdb_secondary_prompt_depth): Define.
3376 (gdb_in_secondary_prompt_p): Define.
3377 (gdb_readline_wrapper_cleanup): Decrement
3378 gdb_secondary_prompt_depth.
3379 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3380 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3381 are in a secondary prompt.
3382
3383 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3384
3385 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3386 emit the newline.
3387
3388 2015-08-21 Gary Benson <gbenson@redhat.com>
3389
3390 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3391
3392 2015-08-21 Gary Benson <gbenson@redhat.com>
3393
3394 * target.h (struct target_ops) <to_fileio_open>: New argument
3395 warn_if_slow. Update comment. All implementations updated.
3396 (target_fileio_open_warn_if_slow): New declaration.
3397 * target.c (target_fileio_open): Renamed as...
3398 (target_fileio_open_1): ...this. New argument warn_if_slow.
3399 Pass warn_if_slow to implementation. Update debug printing.
3400 (target_fileio_open): New function.
3401 (target_fileio_open_warn_if_slow): Likewise.
3402 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3403 target_fileio_open_warn_if_slow.
3404
3405 2015-08-21 Gary Benson <gbenson@redhat.com>
3406
3407 * nat/linux-namespaces.c (linux_mntns_access_fs):
3408 Do not overwrite old_chain.
3409
3410 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3411
3412 * arch/xtensa.h: New file.
3413 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3414 (ps_get_thread_area): New function.
3415 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3416 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3417 * xtensa-tdep.c (osabi.h): New #include.
3418 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3419 xtensa-specific hooks.
3420 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3421 member and move the structure to arch/xtensa.h.
3422
3423 2015-08-21 Pedro Alves <palves@redhat.com>
3424
3425 * remote.c (struct readahead_cache): New.
3426 (struct remote_state) <readahead_cache>: New field.
3427 (remote_open_1): Invalidate the cache.
3428 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3429 functions.
3430 (remote_hostio_pwrite): Invalidate the readahead cache.
3431 (remote_hostio_pread): Rename to ...
3432 (remote_hostio_pread_vFile): ... this.
3433 (remote_hostio_pread_from_cache): New function.
3434 (remote_hostio_pread): Reimplement.
3435 (remote_hostio_close): Invalidate the readahead cache.
3436
3437 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3438
3439 PR build/18843
3440 * procfs.c: Include "filestuff.h".
3441
3442 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3443
3444 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3445 curch.
3446 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3447 cur_line or curch, instead call wmove().
3448 (init_win_info) [CMD_WIN]: Likewise.
3449 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3450 instead call getcury().
3451 (tui_redisplay_readline): Don't set cur_line or curch.
3452 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3453 getcury().
3454 (tui_cont_sig): Remove call to wmove.
3455 (tui_getc): Don't read cur_line or curch, instead call getcury()
3456 or getyx(). Don't set curch.
3457 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3458 set cur_line or curch. Always move cursor to (0,0).
3459
3460 2015-08-20 Pedro Alves <palves@redhat.com>
3461
3462 * infrun.c (print_target_wait_results): Make extern.
3463 * infrun.h (print_target_wait_results): Declare.
3464 * remote.c (set_stop_requested_callback): Delete.
3465 (process_initial_stop_replies): New function.
3466 (remote_start_remote): Use it.
3467 (stop_reply_queue_length): New function.
3468
3469 2015-08-20 Pedro Alves <palves@redhat.com>
3470
3471 * dwarf2read.c (process_full_comp_unit): To tell whether
3472 start_subfile managed to deduce a language, test for
3473 language_unknown instead of language_c.
3474
3475 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3476
3477 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3478 matches attributes.
3479
3480 2015-08-19 Kevin Buettner <kevinb@redhat.com>
3481
3482 * dwarf2read.c (dwarf2_string_attr): New function.
3483 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3484 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3485 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3486 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3487 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3488
3489 2015-08-18 Doug Evans <dje@google.com>
3490 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3491
3492 PR mi/18833
3493 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3494 if MI-like.
3495 * mi/mi-out.c: #include "vec.h".
3496 (ui_filep): New type.
3497 (DEV_VEC_P (ui_filep)): New type.
3498 (struct ui_out_data) <buffer, original_buffer>: Delete.
3499 (struct ui_out_data) <streams>: New member.
3500 (mi_ui_out_impl): Add data_destroy field.
3501 (mi_field_string, mi_field_fmt): Update.
3502 (mi_flush, mi_redirect, field_separator): Update.
3503 (mi_open, mi_close): Update.
3504 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3505 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3506 (mi_out_new): Call mi_out_data_ctor.
3507
3508 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3509
3510 * remote.c (strprefix): New.
3511 (remote_parse_stop_reply): Use strprefix instead of strncmp
3512 to ensure exact match of keyword.
3513
3514 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3515
3516 * gdb_bfd.c (debug_bfd_cache): New variable.
3517 (show_bfd_cache_debug): New function.
3518 (gdb_bfd_open): Add debug logging.
3519 (gdb_bfd_ref): Likewise.
3520 (gdb_bfd_unref): Likewise.
3521 (_initialize_gdb_bfd): Add new set/show command.
3522 * NEWS: Mention new command.
3523
3524 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3525
3526 * gdb_bfd.c (bfd_sharing): New variable.
3527 (show_bfd_sharing): New function.
3528 (gdb_bfd_open): Check bfd_sharing variable.
3529 (_initialize_gdb_bfd): Add new set/show command.
3530 * NEWS: Mention new command.
3531
3532 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3533
3534 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3535 field.
3536 (struct gdb_bfd_cache_search): Likewise.
3537 (eq_bfd): Compare the size, inode, and device id fields.
3538 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3539 (gdb_bfd_ref): Likewise.
3540 (gdb_bfd_unref): Likewise.
3541
3542 2015-08-18 Pedro Alves <palves@redhat.com>
3543
3544 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3545 target implements to_always_non_stop_p, call it.
3546 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3547 (x86_linux_create_target): Install it as to_always_non_stop_p
3548 method.
3549
3550 2015-08-17 Doug Evans <dje@google.com>
3551
3552 * ui-out.c (default_ui_out_impl): Add comment.
3553
3554 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3555
3556 * d-exp.y (type_aggregate_p): New function.
3557 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3558 (classify_inner_name): Likewise.
3559 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3560
3561 2015-08-15 Doug Evans <xdje42@gmail.com>
3562
3563 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3564 updated.
3565 (add_psymbol_to_list): Ditto.
3566
3567 2015-08-15 Doug Evans <xdje42@gmail.com>
3568
3569 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3570 updated. Call end_psymtab_common.
3571 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3572 end_psymtab_common.
3573 (build_type_psymtabs_reader): Ditto.
3574 * psympriv.h (sort_pst_symbols): Delete.
3575 (end_psymtab_common): Declare.
3576 * psymtab.c (sort_pst_symbols): Make static.
3577 (end_psymtab_common): New function.
3578 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3579
3580 2015-08-15 Doug Evans <xdje42@gmail.com>
3581
3582 * defs.h (LANGUAGE_BITS): Define.
3583 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3584 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3585 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3586 (minimal_symbol_type): Add nr_minsym_types.
3587 (MINSYM_TYPE_BITS): Define.
3588 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3589 (domain_enum_tag): Add NR_DOMAINS.
3590 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3591 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3592
3593 2015-08-15 Doug Evans <xdje42@gmail.com>
3594
3595 * objfiles.h: Whitespace cleanup.
3596 * psympriv.h: Whitespace cleanup.
3597 * psymtab.c: Whitespace/coding convention cleanup.
3598
3599 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3600
3601 * inferior.c (detach_inferior_command): Don't call
3602 any_thread_of_process when pid is 0.
3603 (kill_inferior_command): Likewise.
3604
3605 2015-08-14 Doug Evans <xdje42@gmail.com>
3606
3607 PR gdb/11833
3608 * NEWS: Document new /s modifier for the disassemble command.
3609 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3610 (_initialize_cli_cmds): Update online docs of disassemble command.
3611 * disasm.c: #include "source.h".
3612 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3613 All uses updated.
3614 (dis_line_entry): New struct.
3615 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3616 (allocate_dis_line_table): New functions.
3617 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3618 (dump_insns): New arg end_pc. All callers updated.
3619 (do_mixed_source_and_assembly_deprecated): Renamed from
3620 do_mixed_source_and_assembly. All callers updated.
3621 (do_mixed_source_and_assembly): New function.
3622 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3623 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3624 DISASSEMBLY_SOURCE. All uses updated.
3625 (DISASSEMBLY_SOURCE): New macro.
3626 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3627
3628 2015-08-14 Keith Seitz <keiths@redhat.com>
3629
3630 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3631 `typename' to `type_name' to avoid C++ reserved word.
3632
3633 2015-08-14 Keith Seitz <keiths@redhat.com>
3634
3635 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3636 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3637 silence ARI errors.
3638
3639 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3640
3641 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3642 xstrprintf instead of malloc and sprintf.
3643 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3644 (lex_one_token): Likewise.
3645
3646 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3647
3648 * solib-svr4.c (read_program_header): Add base_addr argument to
3649 report the runtime address of the segment.
3650 (find_program_interpreter): Update read_program_header call to pass
3651 a NULL pointer for the new argument.
3652 (scan_dyntag): Add ptr_addr argument to report the runtime address
3653 of the tag payload.
3654 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3655 read_program_header to get the base address of the dynamic segment.
3656 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3657 read_program_header.
3658 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3659
3660 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3661
3662 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3663
3664 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3665
3666 * d-exp.y (%union): Add voidval.
3667 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3668 name in the lexing stage.
3669 (PostfixExpression): Move symbol completion handling in grammar here
3670 from PrimaryExpression.
3671 (PrimaryExpression): Move routines to handle resolving identifier
3672 tokens in the grammar here from push_expression_name.
3673 (IdentifierExp): Remove the handling of alternating '.' and identifier
3674 tokens.
3675 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3676 (BasicType): Remove C-style typename rules.
3677 (d_type_from_name, d_module_from_name, push_variable)
3678 (push_fieldnames, push_type_name, push_module_name)
3679 (push_expression_name): Remove.
3680 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3681 (token_and_value): New type.
3682 (token_fifo, popping, name_obstack): New globals.
3683 (classify_name): New function.
3684 (classify_inner_name): Likewise.
3685 (yylex): Likewise.
3686 (d_parse): Initialize token_fifo, popping and name_obstack.
3687
3688 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3689
3690 * Makefile.in (SFILES): Add d-namespace.c.
3691 (COMMON_OBS): Add d-namespace.o.
3692 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3693 la_lookup_symbol_nonlocal callback function pointer.
3694 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3695 (d_lookup_nested_symbol): New declaration.
3696 * d-namespace.c: New file.
3697
3698 2015-08-13 Pedro Alves <palves@redhat.com>
3699
3700 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3701 cleanup after the decref cleanup, not before.
3702
3703 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3704
3705 * ada-lang.c: Include namespace.h
3706 (aux_add_nonlocal_symbols): Fix a function name in comment.
3707 (ada_add_block_renamings): New.
3708 (add_nonlocal_symbols): Add global renamings handling.
3709 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3710 to...
3711 (ada_add_all_symbols): ... this new function.
3712 (ada_add_block_symbols): Try to match the input name against the
3713 "using directives list", perform a recursive symbol lookup on
3714 the matched declarations.
3715 * block.h (struct block): Move the_namespace to top-level as
3716 namespace_info. Remove the language_specific field.
3717 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3718 * buildsym.h (using_directives): Rename into...
3719 (local_using_directives): ... this.
3720 (global_using_directives): New.
3721 (struct context_stack): Rename the using_directives field into
3722 local_using_directives.
3723 * buildsym.c (finish_block_internal): Deal with the proper
3724 using directives repository (local or global).
3725 (prepare_for_building): Reset local_using_directives. Assert
3726 that there is no pending global using directive.
3727 (reset_symtab_globals): Reset global_using_directives and
3728 local_using_directives.
3729 (end_symtab_get_static_block): Don't ignore symtabs that have
3730 only using directives.
3731 (push_context): Update references to local_using_directives.
3732 (buildsym_init): Do not reset using_directives.
3733 * cp-support.c: Include namespace.h.
3734 * cp-support.h (struct using_direct): Move to namespace.h.
3735 (cp_add_using_directives): Move to namespace.h.
3736 * cp-namespace.c: Include namespace.h
3737 (cp_add_using_directive): Move to namespace.c, rename it to
3738 add_using_directive, add a "using_directives" argument and use
3739 it as the pending using directives repository. All callers
3740 updated.
3741 * dwarf2read.c (using_directives): New.
3742 (read_import_statement): Call using_directives.
3743 (read_func_scope): Update references to local_using_directives.
3744 (read_lexical_block_scope): Likewise.
3745 (read_namespace): Update the heading comment, call
3746 using_directives.
3747 * namespace.h: New file.
3748 * namespace.c: New file.
3749 * Makefile.in (SFILES): Add namespace.c.
3750 (COMMON_OBS): Add namespace.o
3751
3752 2015-08-12 Joel Brobecker <brobecker@adacore.com>
3753
3754 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3755 compute RETADDR.
3756
3757 2015-08-12 Keith Seitz <keiths@redhat.com>
3758
3759 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3760 reserved C++ keyword "explicit" to "explicit_loc".
3761 * breakpoint.c (create_overlay_event_breakpoint)
3762 (create_longjmp_master_breakpoint)
3763 (create_std_terminate_master_breakpoint)
3764 (create_exception_master_breakpoint, update_static_tracepoint):
3765 Rename reserved C++ keyword "explicit" to "explicit_loc".
3766 * completer.c (collect_explicit_location_matches)
3767 (explicit_location_completer): Rename reserved C++ keyword
3768 "explicit" to "explicit_loc".
3769 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3770 (canonicalize_linespec, create_sals_line_offset)
3771 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3772 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3773 "explicit" to "explicit_loc".
3774 * location.c (struct event_location) <explicit>: Rename to
3775 "explicit_loc".
3776 (initialize_explicit_location, new_explicit_location)
3777 (explicit_location_to_string_internal, explicit_location_to_linespec):
3778 Rename reserved C++ keyword "explicit" to "explicit_loc".
3779 * location.h (explicit_location_to_string)
3780 (explicit_location_to_linespec, initialize_explicit_location)
3781 (new_explicit_location): Rename reserved C++ keyword "explicit"
3782 to "explicit_loc".
3783 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3784 keyword "explicit" to "explicit_loc".
3785
3786 2015-08-12 Keith Seitz <keiths@redhat.com>
3787
3788 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3789 and only call decode_line_1 when it is non-NULL.
3790
3791 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
3792
3793 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3794 location address is not meaningful.
3795 (breakpoint_address_is_meaningful): Update comment.
3796
3797 2015-08-11 Keith Seitz <keiths@redhat.com>
3798
3799 * NEWS: Mention explicit locations.
3800 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3801 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3802 (_initialize_breakpoint): Update documentation for
3803 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3804
3805 2015-08-11 Keith Seitz <keiths@redhat.com>
3806
3807 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3808 explicit locations, options "--source", "--function",
3809 "--label", and "--line".
3810
3811 2015-08-11 Keith Seitz <keiths@redhat.com>
3812
3813 * completer.c: Include location.h.
3814 (enum match_type): New enum.
3815 (location_completer): Rename to ...
3816 (linespec_completer): ... this.
3817 (collect_explicit_location_matches, backup_text_ptr)
3818 (explicit_location_completer): New functions.
3819 (location_completer): "New" function; handle linespec
3820 and explicit location completions.
3821 (complete_line_internal): Remove all location completer-specific
3822 handling.
3823 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3824 (find_toplevel_char): Export.
3825 (linespec_parse_line_offset): Export.
3826 Issue error if STRING is not numerical.
3827 (gdb_get_linespec_parser_quote_characters): New function.
3828 * linespec.h (linespec_parse_line_offset): Declare.
3829 (get_gdb_linespec_parser_quote_characters): Declare.
3830 (is_ada_operator): Declare.
3831 (find_toplevel_char): Declare.
3832 (linespec_lexer_lex_keyword): Declare.
3833 * location.c (explicit_to_event_location): New function.
3834 (explicit_location_lex_one): New function.
3835 (string_to_explicit_location): New function.
3836 (string_to_event_location): Handle explicit locations.
3837 * location.h (explicit_to_event_location): Declare.
3838 (string_to_explicit_location): Declare.
3839
3840 2015-08-11 Keith Seitz <keiths@redhat.com>
3841
3842 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3843 linespec into explicit location.
3844 * breakpoint.c (create_overlay_breakpoint)
3845 (create_longjmp_master_breakpoint)
3846 (create_std_terminate_master_breakpoint)
3847 (create_exception_master_breakpoint): Convert linespec into explicit
3848 location.
3849 (update_static_tracepoint): Convert linespec into explicit location.
3850 * linespec.c (enum offset_relative_sign, struct line_offset): Move
3851 location.h.
3852 (struct linespec) <expression, expr_pc, source_filename>
3853 <function_name, label_name, line_offset>: Replace with ...
3854 <explicit>: ... this.
3855 <is_linespec>: New member.
3856 (PARSER_EXPLICIT): New accessor macro.
3857 (undefined_label_error): New function.
3858 (source_file_not_found_error): New function.
3859 (linespec_parse_basic): The parser result is now an explicit location.
3860 Use PARSER_EXPLICIT to access it.
3861 Use undefined_label_error.
3862 (canonicalize_linespec): Convert canonical linespec into explicit
3863 location.
3864 Move string representation of location to explicit_location_to_linespec
3865 and use it and explicit_location_to_string to save string
3866 representations of the canonical location.
3867 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3868 explicit location. Update all references.
3869 (convert_explicit_location_to_sals): New function.
3870 (parse_linespec): Use PARSER_EXPLICIT to access the parser
3871 result's explicit location.
3872 (linespec_state_constructor): Initialize is_linespec.
3873 Use PARSER_EXPLICIT.
3874 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3875 result.
3876 (event_location_to_sals): For linespec locations, set is_linespec.
3877 Handle explicit locations.
3878 (decode_objc): 'ls' contains an explicit location now. Update all
3879 references.
3880 (symtabs_from_filename): Use source_file_not_found_error.
3881 * location.c (struct event_location.u) <explicit>: New member.
3882 (initialize_explicit_location): New function.
3883 (initialize_event_location): Initialize explicit locations.
3884 (new_explicit_location, get_explicit_location)
3885 (get_explicit_location_const): New functions.
3886 (explicit_to_string_internal): New function; most of contents moved
3887 from canonicalize_linespec.
3888 (explicit_location_to_string): New function.
3889 (explicit_location_to_linespec): New function.
3890 (copy_event_location, delete_event_location)
3891 (event_location_to_string_const, event_location_empty_p): Handle
3892 explicit locations.
3893 * location.h (enum offset_relative_sign, struct line_offset): Move
3894 here from linespec.h.
3895 (enum event_location_type): Add EXPLICIT_LOCATION.
3896 (struct explicit_location): New structure.
3897 (explicit_location_to_string): Declare.
3898 (explicit_location_to_linespec): Declare.
3899 (new_explicit_location, get_explicit_locationp
3900 (get_explicit_location_const, initialize_explicit_location): Declare.
3901
3902 2015-08-11 Keith Seitz <keiths@redhat.com>
3903
3904 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3905 linespec for stap probe to probe location.
3906 * breakpoint.c (create_longjmp_master_breakpoint)
3907 (create_exception_master_breakpoint): Likewise.
3908 (break_command_1): Remove local variable `arg_cp'.
3909 Check location type to set appropriate breakpoint ops methods.
3910 (trace_command): Likewise.
3911 * linespec.c (event_location_to_sals): Assert on probe locations.
3912 * location.c (EL_PROBE): Add macro definition.
3913 (new_probe_location, get_probe_location): New functions.
3914 (copy_event_location, delete_event_location, event_location_to_string)
3915 (string_to_event_location, event_location_empty_p): Handle probe
3916 locations.
3917 * location.h (enum event_location_type): Add PROBE_LOCATION.
3918 (new_probe_location, get_probe_location): Declare.
3919 * probe.c (parse_probes): Assert that LOCATION is a probe location.
3920 Convert linespec into probe location.
3921
3922 2015-08-11 Keith Seitz <keiths@redhat.com>
3923
3924 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
3925 Convert linespec to address location.
3926 * linespec.c (canonicalize_linespec): Do not handle address
3927 locations here.
3928 (convert_address_location_to_sals): New function; contents moved
3929 from ...
3930 (convert_linespc_to_sals): ... here.
3931 (parse_linespec): Remove address locations from linespec grammar.
3932 Remove handling of address locations.
3933 (linespec_lex_to_end): Remove handling of address linespecs.
3934 (event_location_to_sals): Handle ADDRESS_LOCATION.
3935 (linespec_expression_to_pc): Export.
3936 * linespec.h (linespec_expression_to_pc): Add declaration.
3937 * location.c (struct event_location.u) <address>: New member.
3938 (new_address_location, get_address_location): New functions.
3939 (copy_event_location, delete_event_location, event_location_to_string)
3940 (string_to_event_location, event_location_empty_p): Handle address
3941 locations.
3942 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
3943 (new_address_location, get_address_location): Declare.
3944 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
3945 to address location.
3946 * spu-tdep.c (spu_catch_start): Likewise.
3947
3948 2015-08-11 Keith Seitz <keiths@redhat.com>
3949
3950 * ax-gdb.c: Include location.h.
3951 (agent_command_1) Use linespec location instead of address
3952 string.
3953 * break-catch-throw.c: Include location.h.
3954 (re_set_exception_catchpoint): Use linespec locations instead
3955 of address strings.
3956 * breakpoint.c: Include location.h.
3957 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
3958 (create_std_terminate_master_breakpoint)
3959 (create_exception_master_breakpoint, update_breakpoints_after_exec):
3960 Use linespec location instead of address string.
3961 (print_breakpoint_location): Use locations and
3962 event_location_to_string.
3963 Print extra_string for pending locations for non-MI streams.
3964 (print_one_breakpoint_location): Use locations and
3965 event_location_to_string.
3966 (init_raw_breakpoint_without_location): Initialize b->location.
3967 (create_thread_event_breakpoint): Use linespec location instead of
3968 address string.
3969 (init_breakpoint_sal): Likewise.
3970 Only save extra_string if it is non-NULL and not the empty string.
3971 Use event_location_to_string instead of `addr_string'.
3972 Constify `p' and `endp'.
3973 Use skip_spaces_const/skip_space_const instead of non-const versions.
3974 Copy the location into the breakpoint.
3975 If LOCATION is NULL, save the breakpoint address as a linespec location
3976 instead of an address string.
3977 (create_breakpoint_sal): Change `addr_string' parameter to a struct
3978 event_location. All uses updated.
3979 (create_breakpoints_sal): Likewise for local variable `addr_string'.
3980 (parse_breakpoint_sals): Use locations instead of address strings.
3981 Remove check for empty linespec with conditional.
3982 Refactor.
3983 (decode_static_tracepoint_spec): Make argument const and update
3984 function.
3985 (create_breakpoint): Change `arg' to a struct event_location and
3986 rename.
3987 Remove `copy_arg' and `addr_start'.
3988 If EXTRA_STRING is empty, set it to NULL.
3989 Don't populate `canonical' for pending breakpoints.
3990 Pass `extra_string' to find_condition_and_thread.
3991 Clear `extra_string' if `rest' was NULL.
3992 Do not error with "garbage after location" if setting a dprintf
3993 breakpoint.
3994 Copy the location into the breakpoint instead of an address string.
3995 (break_command_1): Use string_to_event_location and pass this to
3996 create_breakpoint instead of an address string.
3997 Check against `arg_cp' for a probe linespec.
3998 (dprintf_command): Use string_to_event_location and pass this to
3999 create_breakpoint instead of an address string.
4000 Throw an exception if no format string was specified.
4001 (print_recreate_ranged_breakpoint): Use event_location_to_string
4002 instead of address strings.
4003 (break_range_command, until_break_command)
4004 (init_ada_exception_breakpoint): Use locations instead
4005 of address strings.
4006 (say_where): Print out extra_string for pending locations.
4007 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4008 the breakpoint.
4009 (base_breakpoint_create_sals_from_location): Use struct event_location
4010 instead of address string.
4011 Remove `addr_start' and `copy_arg' parameters.
4012 (base_breakpoint_decode_location): Use struct event_location instead of
4013 address string.
4014 (bkpt_re_set): Use locations instead of address strings.
4015 Use event_location_empty_p to check for unset location.
4016 (bkpt_print_recreate): Use event_location_to_string instead of
4017 an address string.
4018 Print out extra_string for pending locations.
4019 (bkpt_create_sals_from_location, bkpt_decode_location)
4020 (bkpt_probe_create_sals_from_location): Use struct event_location
4021 instead of address string.
4022 (bkpt_probe_decode_location): Use struct event_location instead of
4023 address string.
4024 (tracepoint_print_recreate): Use event_location_to_string to
4025 recreate the tracepoint.
4026 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4027 (tracepoint_probe_create_sals_from_location)
4028 (tracepoint_probe_decode_location): Use struct event_location
4029 instead of address string.
4030 (dprintf_print_recreate): Use event_location_to_string to recreate
4031 the dprintf.
4032 (dprintf_re_set): Remove check for valid/missing format string.
4033 (strace_marker_create_sals_from_location)
4034 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4035 (update_static_tracepoint): Use struct event_location instead of
4036 address string.
4037 (location_to_sals): Likewise.
4038 Pass `extra_string' to find_condition_and_thread.
4039 For newly resolved pending breakpoint locations, clear the location's
4040 string representation.
4041 Assert that the breakpoint's condition string is NULL when
4042 condition_not_parsed.
4043 (breakpoint_re_set_default, create_sals_from_location_default)
4044 (decode_location_default, trace_command, ftrace_command)
4045 (strace_command, create_tracepoint_from_upload): Use locations
4046 instead of address strings.
4047 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4048 Use struct event_location instead of address string.
4049 Update all uses.
4050 <decode_location>: Likewise.
4051 (struct breakpoint) <addr_string>: Change to struct event_location
4052 and rename `location'.
4053 <addr_string_range_end>: Change to struct event_location and rename
4054 `location_range_end'.
4055 (create_breakpoint): Use struct event_location instead of address
4056 string.
4057 * cli/cli-cmds.c: Include location.h.
4058 (edit_command, list_command): Use locations instead of address strings.
4059 * elfread.c: Include location.h.
4060 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4061 * guile/scm-breakpoint.c: Include location.h.
4062 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4063 (gdbscm_register_breakpoint): Use locations instead of address
4064 strings.
4065 * linespec.c: Include location.h.
4066 (struct ls_parser) <stream>: Change to const char *.
4067 (PARSER_STREAM): Update.
4068 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4069 keywords must be followed by whitespace.
4070 (canonicalize_linespec): Save a linespec location into `canonical'.
4071 Save a canonical linespec into `canonical'.
4072 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4073 All uses updated.
4074 Update function description.
4075 (linespec_parser_new): Initialize `parser'.
4076 Update initialization of parsing stream.
4077 (event_location_to_sals): New function.
4078 (decode_line_full): Change `argptr' to a struct event_location and
4079 rename it `location'.
4080 Use locations instead of address strings.
4081 Call event_location_to_sals instead of parse_linespec.
4082 (decode_line_1): Likewise.
4083 (decode_line_with_current_source, decode_line_with_last_displayed)
4084 Use locations instead of address strings.
4085 (decode_objc): Likewise.
4086 Change `argptr' to const char * and rename `arg'.
4087 (destroy_linespec_result): Delete the linespec result's location
4088 instead of freeing the address string.
4089 * linespec.h (struct linespec_result) <addr_string>: Change to
4090 struct event_location and rename to ...
4091 <location>: ... this.
4092 (decode_line_1, decode_line_full): Change `argptr' to struct
4093 event_location. All callers updated.
4094 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4095 (mi_cmd_break_insert_1): Use locations instead of address strings.
4096 Throw an error if there was "garbage" at the end of the specified
4097 linespec.
4098 * probe.c: Include location.h.
4099 (parse_probes): Change `argptr' to struct event_location.
4100 Use event locations instead of address strings.
4101 * probe.h (parse_probes): Change `argptr' to struct event_location.
4102 * python/py-breakpoint.c: Include location.h.
4103 (bppy_get_location): Constify local variable `str'.
4104 Use event_location_to_string.
4105 (bppy_init): Use locations instead of address strings.
4106 * python/py-finishbreakpoint.c: Include location.h.
4107 (bpfinishpy_init): Remove local variable `addr_str'.
4108 Use locations instead of address strings.
4109 * python/python.c: Include location.h.
4110 (gdbpy_decode_line): Use locations instead of address strings.
4111 * remote.c: Include location.h.
4112 (remote_download_tracepoint): Use locations instead of address
4113 strings.
4114 * spu-tdep.c: Include location.h.
4115 (spu_catch_start): Remove local variable `buf'.
4116 Use locations instead of address strings.
4117 * tracepoint.c: Include location.h.
4118 (scope_info): Use locations instead of address strings.
4119 (encode_source_string): Constify parameter `src'.
4120 * tracepoint.h (encode_source_string): Likewise.
4121
4122 2015-08-11 Keith Seitz <keiths@redhat.com>
4123
4124 * Makefile.in (SFILES): Add location.c.
4125 (HFILES_NO_SRCDIR): Add location.h.
4126 (COMMON_OBS): Add location.o.
4127 * linespec.c (linespec_lex_to_end): New function.
4128 * linespec.h (linespec_lex_to_end): Declare.
4129 * location.c: New file.
4130 * location.h: New file.
4131
4132 2015-08-11 Keith Seitz <keiths@redhat.com>
4133
4134 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4135 Renamed to create_sals_from_location.
4136 <decode_linespec>: Renamed to decode_location.
4137 Update all callers.
4138 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4139 (create_sals_from_location_default): ... this.
4140 (addr_string_to_sals): Renamed to ...
4141 (location_to_sals): ... this.
4142 (decode_linespec_default): Renamed to ...
4143 (decode_location_default): ... this.
4144 (base_breakpoint_create_sals_from_address): Renamed to ...
4145 (base_breakpoint_create_sals_from_location): ... this.
4146 (bkpt_create_sals_from_address): Renamed to ...
4147 (bkpt_create_sals_from_location): ... this.
4148 (bkpt_decode_linespec): Renamed to ...
4149 (bkpt_decode_location): ... this.
4150 (bkpt_probe_create_sals_from_address): Renamed to ...
4151 (bkpt_probe_create_sals_from_location): ... this.
4152 (tracepoint_create_sals_from_address): Renamed to ...
4153 (tracepoint_create_sals_from_location): ... this.
4154 (tracepoint_decode_linespec): Renamed to ...
4155 (tracepoint_decode_location): ... this.
4156 (tracepoint_probe_create_sals_from_address): Renamed to ...
4157 (tracepoint_probe_create_sals_from_location): ... this.
4158 (tracepoint_probe_decode_linespec): Renamed to ...
4159 (tracepoint_probe_decode_location): ... this.
4160 (strace_marker_create_sals_from_address): Renamed to ...
4161 (strace_marker_create_sals_from_location): ... this.
4162 (decode_linespec_default): Renamed to ...
4163 (decode_location_default): ... this.
4164
4165 2015-08-10 Doug Evans <dje@google.com>
4166 Keith Seitz <keiths@redhat.com>
4167
4168 PR gdb/17960
4169 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4170 make_file_symbol_completion_list and made static.
4171 (make_file_symbol_completion_list): New function.
4172
4173 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4174
4175 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4176 trailing new-line at end of warning message.
4177 (proceed): Add i18n marker to error messages.
4178
4179 2015-08-07 Pedro Alves <palves@redhat.com>
4180
4181 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4182
4183 2015-08-07 Pedro Alves <palves@redhat.com>
4184
4185 * s390-linux-tdep.c (is_non_branch_ril)
4186 (s390_displaced_step_copy_insn): New functions.
4187 (s390_displaced_step_fixup): Update comment.
4188 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4189 gdbarch_displaced_step_copy_insn hook.
4190
4191 2015-08-07 Pedro Alves <palves@redhat.com>
4192
4193 * infrun.c (displaced_step_prepare_throw): Return -1 if
4194 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4195 comment.
4196 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4197 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4198 in file.
4199 (ppc_displaced_step_copy_insn): New function.
4200 (ppc_displaced_step_fixup): Update comment.
4201 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4202 gdbarch_displaced_step_copy_insn hook.
4203 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4204 NULL return.
4205 * gdbarch.h: Regenerate.
4206
4207 2015-08-07 Pedro Alves <palves@redhat.com>
4208
4209 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4210 field.
4211 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4212 Return false if dispaced stepping failed before.
4213 (resume): Pass the current inferior to
4214 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4215 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4216 displaced_stepping_failed flag, and fall back to an in-line
4217 step-over.
4218
4219 2015-08-07 Pedro Alves <palves@redhat.com>
4220
4221 * darwin-nat.c (darwin_stop): Rename to ...
4222 (darwin_interrupt): ... this.
4223 (_initialize_darwin_inferior): Adjust.
4224 * gnu-nat.c (gnu_stop): Delete.
4225 (gnu_target): Don't install gnu_stop.
4226 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4227 (inf_ptrace_interrupt): ... this.
4228 (inf_ptrace_target): Adjust.
4229 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4230 target_stop.
4231 * linux-nat (linux_nat_stop): Rename to ...
4232 (linux_nat_interrupt): ... this.
4233 (linux_nat_stop): Reimplement.
4234 (linux_nat_add_target): Install linux_nat_interrupt.
4235 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4236 (nto_handle_sigint_twice): ... this.
4237 (nto_interrupt): Rename to ...
4238 (nto_handle_sigint): ... this. Call target_interrupt instead of
4239 target_stop.
4240 (procfs_wait): Adjust.
4241 (procfs_stop): Rename to ...
4242 (procfs_interrupt): ... this.
4243 (init_procfs_targets): Adjust.
4244 * procfs.c (procfs_stop): Rename to ...
4245 (procfs_interrupt): ... this.
4246 (procfs_target): Adjust.
4247 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4248 (m32r_interrupt): ... this.
4249 (init_m32r_ops): Adjust.
4250 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4251 (gdbsim_interrupt_inferior): ... this.
4252 (gdbsim_stop): Rename to ...
4253 (gdbsim_interrupt): ... this.
4254 (gdbsim_cntrl_c): Adjust.
4255 (init_gdbsim_ops): Adjust.
4256 * remote.c (sync_remote_interrupt): Adjust comments.
4257 (remote_stop_as): Rename to ...
4258 (remote_interrupt_as): ... this.
4259 (remote_stop): Adjust comment.
4260 (remote_interrupt): New function.
4261 (init_remote_ops): Install remote_interrupt.
4262 * target.c (target_interrupt): New function.
4263 * target.h (struct target_ops) <to_interrupt>: New field.
4264 (target_interrupt): New declaration.
4265 * windows-nat.c (windows_stop): Rename to ...
4266 (windows_interrupt): ... this.
4267 * target-delegates.c: Regenerate.
4268
4269 2015-08-07 Pedro Alves <palves@redhat.com>
4270
4271 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4272 threads" as alternative to "switching back to stepped thread".
4273
4274 2015-08-07 Pedro Alves <palves@redhat.com>
4275
4276 * NEWS: Mention "maint set/show target-non-stop".
4277 * breakpoint.c (update_global_location_list): Check
4278 target_is_non_stop_p instead of non_stop.
4279 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4280 * infrun.c (show_can_use_displaced_stepping)
4281 (can_use_displaced_stepping_p, start_step_over_inferior):
4282 Likewise.
4283 (internal_resume_ptid): New function.
4284 (resume): Use it.
4285 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4286 all-stop mode but the target is always in non-stop mode, start all
4287 the other threads that are implicitly resumed too.
4288 (for_each_just_stopped_thread, fetch_inferior_event)
4289 (adjust_pc_after_break, stop_all_threads): Check
4290 target_is_non_stop_p instead of non_stop.
4291 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4292 with the target always in non-stop mode.
4293 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4294 instead of non_stop.
4295 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4296 instead of non_stop.
4297 (keep_going_stepped_thread): Use internal_resume_ptid.
4298 (stop_waiting): If in all-stop mode, and the target is in non-stop
4299 mode, stop all threads.
4300 (keep_going_pass): Likewise, when starting a new in-line step-over
4301 sequence.
4302 * linux-nat.c (get_pending_status, select_event_lwp)
4303 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4304 target_is_non_stop_p instead of non_stop.
4305 (linux_nat_always_non_stop_p): New function.
4306 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4307 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4308 * target-delegates.c: Regenerate.
4309 * target.c (target_is_non_stop_p): New function.
4310 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4311 (maint_set_target_non_stop_command)
4312 (maint_show_target_non_stop_command): New functions.
4313 (_initilize_target): Install "maint set/show target-non-stop"
4314 commands.
4315 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4316 (target_non_stop_enabled): New declaration.
4317 (target_is_non_stop_p): New declaration.
4318
4319 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4320
4321 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4322 has a pending status, return true.
4323 * gdbthread.h: Include target/waitstatus.h.
4324 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4325 stop_pc>: New fields.
4326 (struct thread_info) <resumed>: New field.
4327 (set_resumed): Declare.
4328 * infrun.c: Include "event-loop.h".
4329 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4330 (infrun_async): New function.
4331 (clear_step_over_info): Add debug output.
4332 (displaced_step_in_progress_any_inferior): New function.
4333 (displaced_step_fixup): New returns int.
4334 (start_step_over): Handle in-line step-overs too. Assert the
4335 thread is marked resumed.
4336 (resume_cleanups): Clear the thread's resumed flag.
4337 (resume): Set the thread's resumed flag. Return early if the
4338 thread has a pending status. Allow stepping a breakpoint with no
4339 signal.
4340 (proceed): Adjust to check 'resumed' instead of 'executing'.
4341 (clear_proceed_status_thread): If the thread has a pending status,
4342 and that status is a finished step, discard the pending status.
4343 (clear_proceed_status): Don't clear step_over_info here.
4344 (random_pending_event_thread, do_target_wait): New functions.
4345 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4346 do_target_wait.
4347 (wait_one): New function.
4348 (THREAD_STOPPED_BY): New macro.
4349 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4350 (thread_stopped_by_hw_breakpoint): New functions.
4351 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4352 functions.
4353 (handle_inferior_event): Also call set_resumed(false) on all
4354 threads implicitly stopped by the event.
4355 (restart_threads, resumed_thread_with_pending_status): New
4356 functions.
4357 (finish_step_over): If we were doing an in-line step-over before,
4358 and no longer are after trying to start a new step-over, restart
4359 all threads. If we have multiple threads with pending events,
4360 save the current event and go through the event loop again.
4361 (handle_signal_stop): Return early if finish_step_over returns
4362 false.
4363 <random signal>: If we get a signal while stepping over a
4364 breakpoint in-line in non-stop mode, restart all threads. Clear
4365 step_over_info before delivering the signal.
4366 (keep_going_stepped_thread): Use internal_error instead of
4367 gdb_assert. Mark the thread as resumed.
4368 (keep_going_pass_signal): Assert the thread isn't already resumed.
4369 If some other thread is doing an in-line step-over, defer the
4370 resume. If we just started a new in-line step-over, stop all
4371 threads. Don't clear step_over_info.
4372 (infrun_async_inferior_event_handler): New function.
4373 (_initialize_infrun): Create async event handler with
4374 infrun_async_inferior_event_handler as callback.
4375 (infrun_async): New declaration.
4376 * target.c (target_async): New function.
4377 * target.h (target_async): Declare macro and readd as function
4378 declaration.
4379 * target/waitstatus.h (enum target_stop_reason)
4380 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4381 * thread.c (new_thread): Clear the new waitstatus field.
4382 (set_resumed): New function.
4383
4384 2015-08-07 Pedro Alves <palves@redhat.com>
4385
4386 * infrun.c (keep_going_stepped_thread): New function, factored out
4387 from ...
4388 (switch_back_to_stepped_thread): ... here.
4389
4390 2015-08-07 Pedro Alves <palves@redhat.com>
4391
4392 * infrun.c (currently_stepping): Extend intro comment.
4393 * target.h (target_resume): Extend intro comment.
4394
4395 2015-08-07 Pedro Alves <palves@redhat.com>
4396
4397 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4398 of inferior_ptid. If the stepped thread vanished, return 0
4399 instead of resuming here. Use reset_ecs. Print the prev_pc and
4400 the current stop_pc in log message. Clear trap_expected if the
4401 thread advanced. Don't pass currently_stepping to
4402 do_target_resume.
4403
4404 2015-08-07 Pedro Alves <palves@redhat.com>
4405
4406 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4407 * infrun.c (struct execution_control_state): Move higher up in the
4408 file.
4409 (reset_ecs): New function.
4410 (start_step_over): Now returns int. Rewrite to use
4411 keep_going_pass_signal instead of manually starting a displaced step.
4412 (resume): Don't call set_running here. If displaced stepping
4413 can't start now, clear trap_expected.
4414 (find_thread_needs_step_over): Delete function.
4415 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4416 If the current thread needs a step over, push it in the step-over
4417 chain. Don't set insert breakpoints nor call resume directly
4418 here. Instead rewrite to use start_step_over and
4419 keep_going_pass_signal.
4420 (finish_step_over): New function.
4421 (handle_signal_stop): Call finish_step_over instead of
4422 start_step_over.
4423 (switch_back_to_stepped_thread): If the event thread needs another
4424 step-over do that first. Use start_step_over.
4425 (keep_going_pass_signal): New function, factored out from ...
4426 (keep_going): ... here.
4427 (_initialize_infrun): Comment moved here.
4428 * thread.c (set_running_thread): New function.
4429 (set_running, finish_thread_state): Use set_running_thread.
4430
4431 2015-08-07 Pedro Alves <palves@redhat.com>
4432
4433 * gdbthread.h (struct thread_info) <step_over_prev,
4434 step_over_next>: New fields.
4435 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4436 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4437 declarations.
4438 * infrun.c (struct displaced_step_request): Delete.
4439 (struct displaced_step_inferior_state) <step_request_queue>:
4440 Delete field.
4441 (displaced_step_prepare): Assert that trap_expected is set. Use
4442 thread_step_over_chain_enqueue. Split starting a new displaced
4443 step to ...
4444 (start_step_over): ... this new function.
4445 (resume): Assert the thread isn't waiting for a step over already.
4446 (proceed): Assert the thread isn't waiting for a step over
4447 already.
4448 (infrun_thread_stop_requested): Adjust to remove threads from the
4449 embedded step-over chain.
4450 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4451 displaced_step_fixup.
4452 (handle_signal_stop): Call start_step_over after
4453 displaced_step_fixup.
4454 * infrun.h (step_over_queue_head): New declaration.
4455 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4456 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4457 (thread_step_over_chain_enqueue)
4458 (thread_step_over_chain_remove): New functions.
4459 (delete_thread_1): Remove thread from the step-over chain.
4460
4461 2015-08-07 Pedro Alves <palves@redhat.com>
4462
4463 * infrun.c (thread_still_needs_step_over): Rename to ...
4464 (thread_still_needs_step_over_bp): ... this.
4465 (enum step_over_what): New.
4466 (thread_still_needs_step_over): Reimplement.
4467
4468 2015-08-07 Pedro Alves <palves@redhat.com>
4469
4470 * remote.c (remote_wait_as): If not waiting for a stop reply,
4471 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4472 requested, don't block waiting forever.
4473
4474 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4475
4476 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4477 waitstatus pointers instead of an ecs. Adjust.
4478 (handle_inferior_event): Adjust caller.
4479
4480 2015-08-07 Pedro Alves <palves@redhat.com>
4481
4482 * infrun.c (handle_inferior_event): If we get
4483 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4484 mode, mark all threads of the exiting process as not-executing.
4485 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4486 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4487 exiting process, if inferior_ptid still points at a process.
4488 * thread.c (struct current_thread_cleanup) <next>: New field.
4489 (current_thread_cleanup_chain): New global.
4490 (restore_current_thread_ptid_changed): New function.
4491 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4492 current_thread_cleanup_chain list.
4493 (make_cleanup_restore_current_thread): Add the cleanup data to the
4494 current_thread_cleanup_chain list.
4495 (_initialize_thread): Install restore_current_thread_ptid_changed
4496 as thread_ptid_changed observer.
4497
4498 2015-08-07 Joel Brobecker <brobecker@adacore.com>
4499
4500 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4501 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4502 smaller than expected.
4503
4504 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4505
4506 * stack.c (get_frame_language): Moved ...
4507 * frame.c (get_frame_language): ... to here.
4508 * language.h (get_frame_language): Declaration moved to frame.h.
4509 * frame.h: Add language.h include, for language enum.
4510 (get_frame_language): Declaration moved from language.h.
4511 * language.c: Add frame.h include.
4512 * top.c: Add frame.h include.
4513 * symtab.h (struct obj_section): Declare.
4514 (struct cmd_list_element): Declare.
4515
4516 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4517
4518 * language.c (show_language_command): Find selected frame before
4519 asking for the language of that frame.
4520 (set_language_command): Likewise.
4521 * language.h (get_frame_language): Add frame parameter.
4522 * stack.c (get_frame_language): Add frame parameter, assert
4523 parameter is not NULL, update comment and reindent.
4524 * top.c (check_frame_language_change): Pass the selected frame
4525 into get_frame_language.
4526
4527 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4528
4529 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4530 (pt_btrace_insn_flags): New.
4531 (ftrace_add_pt): Call pt_btrace_insn_flags.
4532 * btrace.h (btrace_insn_flag): New.
4533 (btrace_insn) <flags>: New.
4534 * record-btrace.c (btrace_insn_history): Print insn prefix.
4535 * NEWS: Announce it.
4536
4537 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4538
4539 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4540 * configure: Regenerate.
4541
4542 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4543
4544 * Makefile.in (LIBICONV): Define.
4545 (CLIBS): Add LIBICONV.
4546 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4547 * configure: Regenerate.
4548
4549 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4550 Pedro Alves <palves@redhat.com>
4551
4552 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4553 (arm_set_abi): Likewise.
4554 * ax-general.c (ax_print): Likewise.
4555 * c-exp.y (exp : string_exp): Likewise.
4556 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4557 (do_compile_dwarf_expr_to_c): Likewise.
4558 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4559 Likewise.
4560 * dwarf2expr.c (execute_stack_op): Likewise.
4561 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4562 (disassemble_dwarf_expression): Likewise.
4563 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4564 (read_array_order): Likewise.
4565 (abbrev_table_read_table): Likewise.
4566 (read_attribute_value): Likewise.
4567 (skip_unknown_opcode): Likewise.
4568 (dwarf_decode_macro_bytes): Likewise.
4569 (dwarf_decode_macros): Likewise.
4570 * eval.c (value_f90_subarray): Likewise.
4571 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4572 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4573 * infrun.c (handle_command): Likewise.
4574 * memory-map.c (memory_map_start_memory): Likewise.
4575 * osabi.c (set_osabi): Likewise.
4576 * parse.c (operator_length_standard): Likewise.
4577 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4578 single return point.
4579 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4580 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4581 (gdbpy_lookup_global_symbol): Likewise.
4582 * record-full.c (record_full_restore): Likewise.
4583 * regcache.c (regcache_register_status): Likewise.
4584 (regcache_raw_read): Likewise.
4585 (regcache_cooked_read): Likewise.
4586 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4587 * symtab.c (initialize_ordinary_address_classes): Likewise.
4588 * target-debug.h (target_debug_print_signals): Likewise.
4589 * utils.c (do_restore_current_language): Likewise.
4590
4591 2015-08-06 Clem Dickey <clemd@acm.org>
4592
4593 PR python/17136
4594 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4595
4596 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4597
4598 * complaints.c (enum complaint_series): Add newlines and remove
4599 out of date comment.
4600 (struct complaints) <series>: Change type to enum
4601 complaint_series and remove out of date comment.
4602 (symfile_complaint_hook): Use equivalent enum value
4603 ISOLATED_MESSAGE instead of 0.
4604
4605 2015-08-06 Pedro Alves <palves@redhat.com>
4606
4607 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4608 returned > 0.
4609
4610 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4611
4612 * common/agent.c (symbol_list) <required>: Remove.
4613
4614 2015-08-06 Pedro Alves <palves@redhat.com>
4615
4616 * target/waitstatus.h (enum target_stop_reason)
4617 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4618
4619 2015-08-05 Pedro Alves <palves@redhat.com>
4620 Joel Brobecker <brobecker@adacore.com>
4621
4622 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4623 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4624 case where BS->STOP is not set.
4625
4626 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4627
4628 * nat/gdb_thread_db.h: Add copyright header.
4629 Protect against multiple inclusion.
4630
4631 2015-08-05 Yao Qi <yao.qi@linaro.org>
4632
4633 * aarch64-linux-nat.c (get_thread_id): Remove.
4634 (debug_reg_change_callback): Call ptid_get_lwp instead of
4635 get_thread_id.
4636 (fetch_gregs_from_thread): Likewise.
4637 (store_gregs_to_thread): Likewise.
4638 (fetch_fpregs_from_thread): Likewise.
4639 (store_fpregs_to_thread): Likewise.
4640 (aarch64_linux_get_debug_reg_capacity): Likewise.
4641 * arm-linux-nat.c (get_thread_id): Remove.
4642 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4643 * xtensa-linux-nat.c (get_thread_id): Remove.
4644 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4645 * arm-linux-nat.c (get_thread_id): Remove.
4646 (GET_THREAD_ID): Remove.
4647 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4648 (store_fpregs, fetch_regs, store_regs): Likewise.
4649 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4650 (fetch_vfp_regs, store_vfp_regs): Likewise.
4651 (arm_linux_read_description): Likewise.
4652 (arm_linux_get_hwbp_cap): Likewise.
4653 * xtensa-linux-nat.c (get_thread_id): Remove.
4654 (GET_THREAD_ID): Remove.
4655 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4656 GET_THREAD_ID.
4657
4658 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4659
4660 * python/py-linetable.c: Fix case of Linetable to LineTable
4661 in docstrings and code comments.
4662 * python/py-symtab.c: Same.
4663
4664 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4665
4666 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4667
4668 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4669
4670 PR gdb/18767
4671 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4672 use.
4673
4674 2015-08-04 Pedro Alves <palves@redhat.com>
4675
4676 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4677 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4678 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4679 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4680 (td_thr_validate_ftype, td_thr_get_info_ftype)
4681 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4682 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4683 New typedefs.
4684 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4685 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4686 local macros and use them instead of verbose_dlsym and dlsym
4687 calls.
4688
4689 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4690
4691 * nios2-tdep.h: Include opcode/nios2.h here.
4692 (NIOS2_CDX_OPCODE_SIZE): New.
4693 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4694 * nios2-tdep.c: Don't include opcode/nios2.h here.
4695 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4696 4-byte read fails.
4697 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4698 (nios2_match_addi, nios2_match_orhi): Likewise.
4699 (nios2_match_stw, nios2_match_ldw): Likewise.
4700 (nios2_match_rdctl): Likewise.
4701 (nios2_match_stwm, nios2_match_ldwm): New.
4702 (nios2_match_branch): Add cases for R2 encodings.
4703 (nios2_match_jmpi, nios2_match_calli): Likewise.
4704 (nios2_match_jmpr, nios2_match_callr): Likewise.
4705 (nios2_match_break, nios2_match_trap): Likewise.
4706 (nios2_in_epilogue_p): Add R2 support.
4707 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4708 prologues.
4709 (nios2_breakpoint_from_pc): Handle R2 instructions.
4710 (nios2_get_next_pc): Likewise. Adjust call to
4711 tdep->syscall_next_pc.
4712 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4713 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4714 instruction field macros instead of literal hex values.
4715 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4716 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4717 Use size field from OP instead of assuming all instructions
4718 are the same size.
4719 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4720
4721 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4722
4723 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4724 variable warning with some compilers.
4725
4726 2015-08-03 Yao Qi <yao.qi@linaro.org>
4727
4728 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4729 in comment. Replace "rw" with "type".
4730 (arm_linux_remove_watchpoint): Change type of "rw" to
4731 "enum target_hw_bp_type".
4732
4733 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4734
4735 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4736 lookup_symbol.
4737 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4738 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4739 * mt-tdep.c (mt_skip_prologue): Likewise.
4740 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4741
4742 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4743
4744 * ada-exp.y (write_object_renaming): Replace struct
4745 ada_symbol_info with struct block_symbol. Update field
4746 references accordingly.
4747 (block_lookup, select_possible_type_sym): Likewise.
4748 (find_primitive_type): Likewise. Also update call to
4749 ada_lookup_symbol to extract the symbol itself.
4750 (write_var_or_type, write_name_assoc): Likewise.
4751 * ada-lang.h (struct ada_symbol_info): Remove.
4752 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4753 struct block_symbol.
4754 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4755 (ada_lookup_symbol): Return struct block_symbol instead of a
4756 mere symbol.
4757 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4758 with struct block_symbol.
4759 (resolve_subexp, ada_resolve_function, sort_choices,
4760 user_select_syms, is_nonfunction, add_defn_to_vec,
4761 num_defns_collected, defns_collected,
4762 symbols_are_identical_enums, remove_extra_symbols,
4763 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4764 ada_lookup_symbol_list, ada_iterate_over_symbols,
4765 ada_lookup_encoded_symbol, get_var_value): Likewise.
4766 (ada_lookup_symbol): Return a block_symbol instead of a mere
4767 symbol. Replace struct ada_symbol_info with struct
4768 block_symbol.
4769 (ada_lookup_symbol_nonlocal): Likewise.
4770 (standard_lookup): Make block passing explicit through
4771 lookup_symbol_in_language.
4772 * ada-tasks.c (get_tcb_types_info): Update the calls to
4773 lookup_symbol_in_language to extract the mere symbol out of the
4774 returned value.
4775 (ada_tasks_inferior_data_sniffer): Likewise.
4776 * ax-gdb.c (gen_static_field): Likewise for the call to
4777 lookup_symbol.
4778 (gen_maybe_namespace_elt): Deal with struct block_symbol from
4779 lookup functions.
4780 (gen_expr): Likewise.
4781 * c-exp.y: Likewise. Remove uses of block_found.
4782 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4783 (classify_name): Likewise. Rename the "sym" local variable to
4784 "bsym".
4785 * c-valprint.c (print_unpacked_pointer): Likewise.
4786 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4787 "sym" parameter from struct symbol * to struct block_symbol.
4788 Use it to remove uses of block_found. Deal with struct
4789 block_symbol from lookup functions.
4790 (gcc_convert_symbol): Likewise. Update the call to
4791 convert_symbol_sym.
4792 * compile/compile-object-load.c (compile_object_load): Deal with
4793 struct block_symbol from lookup functions.
4794 * cp-namespace.c (cp_lookup_nested_symbol_1,
4795 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4796 cp_search_static_and_baseclasses,
4797 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4798 cp_lookup_symbol_imports_or_template,
4799 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4800 lookup_namespace_scope, cp_lookup_nonlocal,
4801 find_symbol_in_baseclass): Return struct block_symbol instead of
4802 mere symbols and deal with struct block_symbol from lookup
4803 functions.
4804 * cp-support.c (inspect_type, replace_typedefs,
4805 cp_lookup_rtti_type): Deal with struct block_symbol from
4806 lookup functions.
4807 * cp-support.h (cp_lookup_symbol_nonlocal,
4808 cp_lookup_symbol_from_namespace,
4809 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4810 Return struct block_symbol instead of mere symbols.
4811 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4812 push_module_name):
4813 Deal with struct block_symbol from lookup functions. Remove
4814 uses of block_found.
4815 * eval.c (evaluate_subexp_standard): Update call to
4816 cp_lookup_symbol_namespace.
4817 * f-exp.y: Deal with struct block_symbol from lookup functions.
4818 Remove uses of block_found.
4819 (yylex): Likewise.
4820 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4821 lookup_enum, lookup_template_type, check_typedef): Deal with
4822 struct block_symbol from lookup functions.
4823 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4824 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4825 (gdbscm_lookup_global_symbol): Likewise.
4826 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4827 * go-exp.y: Likewise. Remove uses of block_found.
4828 (package_name_p, classify_packaged_name, classify_name):
4829 Likewise.
4830 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4831 * jv-exp.y (push_variable): Likewise.
4832 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4833 * language.c (language_bool_type): Likewise.
4834 * language.h (struct language_defn): Update
4835 la_lookup_symbol_nonlocal to return a struct block_symbol rather
4836 than a mere symbol.
4837 * linespec.c (find_label_symbols): Deal with struct block_symbol
4838 from lookup functions.
4839 * m2-exp.y: Likewise. Remove uses of block_found.
4840 (yylex): Likewise.
4841 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4842 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4843 * p-exp.y: Likewise. Remove uses of block_found.
4844 (yylex): Likewise.
4845 * p-valprint.c (pascal_val_print): Likewise.
4846 * parse.c (write_dollar_variable): Likewise. Remove uses of
4847 block_found.
4848 * parser-defs.h (struct symtoken): Turn the SYM field into a
4849 struct block_symbol.
4850 * printcmd.c (address_info): Deal with struct block_symbol from
4851 lookup functions.
4852 * python/py-frame.c (frapy_read_var): Likewise.
4853 * python/py-symbol.c (gdbpy_lookup_symbol,
4854 gdbpy_lookup_global_symbol): Likewise.
4855 * skip.c (skip_function_command): Likewise.
4856 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
4857 block_symbol instead of a mere symbol.
4858 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4859 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4860 * solib.c (solib_global_lookup): Likewise.
4861 * solist.h (solib_global_lookup): Likewise.
4862 (struct target_so_ops): Update lookup_lib_global_symbol to
4863 return a struct block_symbol rather than a mere symbol.
4864 * source.c (select_source_symtab): Deal with struct block_symbol
4865 from lookup functions.
4866 * stack.c (print_frame_args, iterate_over_block_arg_vars):
4867 Likewise.
4868 * symfile.c (set_initial_language): Likewise.
4869 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
4870 block_symbol.
4871 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4872 (struct symbol_cache_slot): Turn the FOUND field into a struct
4873 block_symbol.
4874 (block_found): Remove.
4875 (eq_symbol_entry): Update to deal with struct block_symbol in
4876 cache slots.
4877 (symbol_cache_lookup): Return a struct block_symbol rather than
4878 a mere symbol.
4879 (symbol_cache_mark_found): Add a BLOCK parameter to fill
4880 appropriately the cache slots. Update callers.
4881 (symbol_cache_dump): Update cache slots handling to the type
4882 change.
4883 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4884 lookup_symbol_aux, lookup_local_symbol,
4885 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4886 lookup_symbol_in_objfile_symtabs,
4887 lookup_symbol_in_objfile_from_linkage_name,
4888 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4889 lookup_symbol_in_static_block, lookup_static_symbol,
4890 lookup_global_symbol):
4891 Return a struct block_symbol rather than a mere symbol. Deal
4892 with struct block_symbol from other lookup functions. Remove
4893 uses of block_found.
4894 (lookup_symbol_in_block): Remove uses of block_found.
4895 (struct global_sym_lookup_data): Turn the RESULT field into a
4896 struct block_symbol.
4897 (lookup_symbol_global_iterator_cb): Update references to the
4898 RESULT field.
4899 (search_symbols): Deal with struct block_symbol from lookup
4900 functions.
4901 * symtab.h (struct block_symbol): New structure.
4902 (block_found): Remove.
4903 (lookup_symbol_in_language, lookup_symbol,
4904 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
4905 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
4906 lookup_global_symbol_from_objfile): Return a struct block_symbol
4907 rather than just a mere symbol. Update comments to remove
4908 mentions of block_found.
4909 * valops.c (find_function_in_inferior,
4910 value_struct_elt_for_reference, value_maybe_namespace_elt,
4911 value_of_this): Deal with struct block_symbol from lookup
4912 functions.
4913 * value.c (value_static_field, value_fn_field): Likewise.
4914
4915 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4916
4917 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
4918 instead of integer.
4919
4920 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4921 Pedro Alves <palves@redhat.com>
4922
4923 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
4924 type or value instead of integer.
4925 (aarch64_linux_insert_watchpoint): Likewise.
4926 (aarch64_linux_remove_watchpoint): Likewise.
4927 * ada-lang.c (ada_op_print_tab): Likewise.
4928 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
4929 (amd64_linux_syscall_record_common): Likewise.
4930 * arch-utils.c (target_byte_order_user): Likewise.
4931 (default_byte_order): Likewise.
4932 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
4933 (arm_linux_get_hwbp_type): Likewise.
4934 (arm_linux_hw_watchpoint_initialize): Likewise.
4935 (arm_linux_insert_watchpoint): Likewise.
4936 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
4937 (arm_linux_syscall_record): Likewise.
4938 * breakpoint.c (update_watchpoint): Likewise.
4939 (breakpoint_here_p): Likewise.
4940 (bpstat_print): Likewise.
4941 (enable_breakpoint_disp): Likewise.
4942 * c-lang.c (c_op_print_tab): Likewise.
4943 * cli/cli-decode.c (add_info_alias): Likewise.
4944 * d-lang.c (d_op_print_tab): Likewise.
4945 * eval.c (evaluate_subexp_standard): Likewise.
4946 * f-exp.y (dot_ops): Likewise.
4947 (f77_keywords): Likewise.
4948 * f-lang.c (f_op_print_tab): Likewise.
4949 * go-lang.c (go_op_print_tab): Likewise.
4950 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
4951 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
4952 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4953 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
4954 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
4955 (struct scm_from_stringn_data): Likewise.
4956 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4957 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4958 (ia64_linux_remove_watchpoint): Likewise.
4959 (ia64_linux_can_use_hw_breakpoint): Likewise.
4960 * infrun.c (print_stop_event): Likewise.
4961 * jv-lang.c (java_op_print_tab): Likewise.
4962 * linux-nat.c (linux_proc_xfer_partial): Likewise.
4963 * linux-nat.h (struct lwp_info): Likewise.
4964 * linux-thread-db.c (enable_thread_event): Likewise.
4965 * m2-lang.c (m2_op_print_tab): Likewise.
4966 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4967 (mi_cmd_stack_list_variables): Likewise.
4968 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
4969 * mi/mi-out.c (mi_table_begin): Likewise.
4970 (mi_table_header): Likewise.
4971 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
4972 (mips_linux_insert_watchpoint): Likewise.
4973 (mips_linux_remove_watchpoint): Likewise.
4974 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
4975 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
4976 (mips_linux_watch_type_to_irw): Likewise.
4977 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4978 (procfs_insert_hw_watchpoint): Likewise.
4979 (procfs_remove_hw_watchpoint): Likewise.
4980 (procfs_hw_watchpoint): Likewise.
4981 (procfs_can_use_hw_breakpoint): Likewise.
4982 (procfs_remove_hw_watchpoint): Likewise.
4983 (procfs_insert_hw_watchpoint): Likewise.
4984 * p-lang.c (pascal_op_print_tab): Likewise.
4985 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
4986 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
4987 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
4988 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4989 (procfs_insert_watchpoint): Likewise.
4990 (procfs_remove_watchpoint): Likewise.
4991 * psymtab.c (recursively_search_psymtabs): Likewise.
4992 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
4993 (m32r_insert_watchpoint): Likewise.
4994 * remote-mips.c (mips_can_use_watchpoint): Likewise.
4995 (mips_insert_watchpoint): Likewise.
4996 (mips_remove_watchpoint): Likewise.
4997 * remote.c (watchpoint_to_Z_packet): Likewise.
4998 (remote_insert_watchpoint): Likewise.
4999 (remote_remove_watchpoint): Likewise.
5000 (remote_check_watch_resources): Likewise.
5001 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5002 (s390_remove_watchpoint): Likewise.
5003 (s390_can_use_hw_breakpoint): Likewise.
5004 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5005 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5006 * target.h (struct target_ops): Likewise.
5007 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5008 * ui-out.c (struct ui_out_hdr): Likewise.
5009 (append_header_to_list): Likewise.
5010 (get_next_header): Likewise.
5011 (verify_field): Likewise.
5012 (ui_out_begin): Likewise.
5013 (ui_out_field_int): Likewise.
5014 (ui_out_field_fmt_int): Likewise.
5015 (ui_out_field_skip): Likewise.
5016 (ui_out_field_string): Likewise.
5017 (ui_out_field_fmt): Likewise.
5018 * varobj.c (new_variable): Likewise.
5019 * x86-nat.c (x86_insert_watchpoint): Likewise.
5020 (x86_remove_watchpoint): Likewise.
5021 (x86_can_use_hw_breakpoint): Likewise.
5022 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5023 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5024 previously anonymous enumeration type..
5025 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5026 value.
5027 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5028 (target_debug_print_enum_bptype): New.
5029 * target-delegates.c: Regenerate.
5030
5031 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5032
5033 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5034 already says and disallow non-stack memory writes in the prologue.
5035
5036 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5037
5038 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5039 reflect how current GCC emits stack overflow checks. Match
5040 both trap and break instructions for backward compatbility.
5041 Disallow other trap and break instructions in the prologue.
5042
5043 2015-07-30 Pedro Alves <palves@redhat.com>
5044
5045 PR threads/18600
5046 * linux-nat.c (wait_lwp): Report to the core when thread group
5047 leader exits.
5048
5049 2015-07-30 Pedro Alves <palves@redhat.com>
5050 Simon Marchi <simon.marchi@ericsson.com>
5051
5052 PR threads/18600
5053 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5054 mark the new thread as resumed. Remove STOPPING parameter.
5055 (wait_lwp): Adjust call to linux_handle_extended_wait.
5056 (linux_nat_filter_event): Adjust call to
5057 linux_handle_extended_wait.
5058 (resume_stopped_resumed_lwps): Add debug output.
5059
5060 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5061
5062 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5063 isize argument.
5064 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5065 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5066 gdbarch_fast_tracepoint_valid_at.
5067 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5068 * gdbarch.h: Regenerate.
5069 * gdbarch.c: Regenerate.
5070 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5071 argument. Do not set it.
5072 * remote.c (remote_download_tracepoint): Adjust call to
5073 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5074 the instruction length.
5075
5076 2015-07-30 Yao Qi <yao.qi@linaro.org>
5077
5078 * arm-tdep.h (enum gdb_regnum): Move it to ...
5079 * arch/arm.h: ... here. New file.
5080 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5081
5082 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5083
5084 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5085 Change its type to int *.
5086 (decode_br): Rename link argument to is_blr. Change its type to
5087 int *.
5088 (decode_cb): Rename op argument to is_cbnz. Change its type to
5089 int *.
5090 (decode_tb): Rename op argument to is_tbnz. Change its type to
5091 int *. Set is_tbnz to either 1 or 0.
5092 (aarch64_analyze_prologue): Change type of is_link to int. Add
5093 new variables is_cbnz and is_tbnz. Adjust call to
5094 aarch64_decode_cb and aarch64_decode_tb.
5095
5096 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5097
5098 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5099 parameter.
5100 (mips_linux_new_thread): Likewise.
5101 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5102
5103 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5104
5105 * top.c: Include "tui/tui.h".
5106 (undo_terminal_modifications_before_exit): New static function.
5107 (quit_force): Use it.
5108
5109 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5110
5111 * target.c (terminal_state): Initialize to terminal_is_ours.
5112
5113 2015-07-29 Yao Qi <yao.qi@linaro.org>
5114
5115 PR record/18691
5116 * dcache.c (dcache_read_memory_partial): Call
5117 raw_memory_xfer_partial.
5118 * target.c (raw_memory_xfer_partial): Make it non-static.
5119 * target.h (raw_memory_xfer_partial): Declare.
5120
5121 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5122
5123 * c-valprint.c (c_val_print_array): Consider addressable memory
5124 unit size.
5125 (c_val_print_ptr): Likewise.
5126 (c_val_print_int): Likewise.
5127 * findvar.c (read_frame_register_value): Likewise.
5128 * valarith.c (find_size_for_pointer_math): Likewise.
5129 (value_ptrdiff): Likewise.
5130 (value_subscripted_rvalue): Likewise.
5131 * valops.c (read_value_memory): Likewise (and rename variables).
5132 (value_assign): Likewise.
5133 (value_repeat): Likewise.
5134 (value_array): Likewise.
5135 (value_slice): Likewise.
5136 * valprint.c (generic_val_print_ptr): Likewise.
5137 (generic_val_print_enum): Likewise.
5138 (generic_val_print_bool): Likewise.
5139 (generic_val_print_int): Likewise.
5140 (generic_val_print_char): Likewise.
5141 (generic_val_print_float): Likewise.
5142 (generic_val_print_decfloat): Likewise.
5143 (generic_val_print_complex): Likewise.
5144 (val_print_scalar_formatted): Likewise.
5145 (val_print_array_elements): Likewise.
5146 * value.c (set_value_parent): Likewise.
5147 (value_contents_copy_raw): Likewise.
5148 (set_internalvar_component): Likewise.
5149 (value_primitive_field): Likewise.
5150 (value_fetch_lazy): Likewise.
5151 * value.h (read_value_memory): Update comment.
5152
5153 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5154
5155 * value.c (get_value_arch): New function.
5156 * value.h (get_value_arch): New declaration.
5157
5158 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5159
5160 * value.c (struct value): Update comments.
5161
5162 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5163
5164 * gdbtypes.c (type_length_units): New function.
5165 * gdbtypes.h (type_length_units): New declaration.
5166 (struct type) <length>: Update comment.
5167
5168 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5169
5170 * valprint.c (generic_val_print): Factor out complex
5171 printing code to ...
5172 (generic_val_print_complex): ... this new function.
5173
5174 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5175
5176 * valprint.c (generic_val_print): Factor out decfloat
5177 printing code to ...
5178 (generic_val_print_decfloat): ... this new function.
5179
5180 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5181
5182 * valprint.c (generic_val_print): Factor out float
5183 printing code to ...
5184 (generic_val_print_float): ... this new function.
5185
5186 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5187
5188 * valprint.c (generic_val_print): Factor out char
5189 printing code to ...
5190 (generic_val_print_char): ... this new function.
5191
5192 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5193
5194 * valprint.c (generic_val_print): Factor out integer
5195 printing code to ...
5196 (generic_val_print_int): ... this new function.
5197
5198 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5199
5200 * valprint.c (generic_val_print): Factor out bool
5201 printing code to ...
5202 (generic_val_print_bool): ... this new function.
5203
5204 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5205
5206 * valprint.c (generic_val_print): Factor out function/method
5207 printing code to ...
5208 (generic_val_print_func): ... this new function.
5209
5210 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5211
5212 * valprint.c (generic_val_print): Factor out flags
5213 printing code to ...
5214 (generic_val_print_flags): ... this new function.
5215
5216 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5217
5218 * valprint.c (generic_val_print): Factor out enum
5219 printing code to ...
5220 (generic_val_print_enum): ... this new function.
5221
5222 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5223
5224 * valprint.c (generic_val_print): Factor out reference
5225 printing code to ...
5226 (generic_val_print_ref): ... this new function.
5227
5228 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5229
5230 * valprint.c (generic_val_print): Factor out memberptr
5231 printing code to ...
5232 (generic_val_print_memberptr): ... this new function.
5233
5234 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5235
5236 * valprint.c (generic_val_print): Factor out pointer
5237 printing code to ...
5238 (generic_val_print_ptr): ... this new function.
5239
5240 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5241
5242 * valprint.c (generic_val_print): Factor out array
5243 printing code to ...
5244 (generic_val_print_array): ... this new function.
5245
5246 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5247
5248 * valprint.c (generic_val_print): Factor out
5249 print_unpacked_pointer code to ...
5250 (print_unpacked_pointer): ... this new function.
5251
5252 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5253
5254 * event-top.c (handle_sigterm): Don't inspect
5255 target_can_async_p. Always set the quit flag and always mark
5256 the async signal handler.
5257
5258 2015-07-27 Yao Qi <yao.qi@linaro.org>
5259
5260 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5261
5262 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5263
5264 * remote.c (read_ptid): Return null_ptid when no thread id
5265 is found.
5266 (remote_current_thread): Add log warning for malformed
5267 qC reply.
5268 (remote_start_remote): Add log warning when current thread
5269 not found.
5270
5271 2015-07-24 Pedro Alves <palves@redhat.com>
5272
5273 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5274 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5275 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5276
5277 2015-07-24 Pedro Alves <palves@redhat.com>
5278
5279 PR gdb/18717
5280 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5281 is resumed, and extend the debug log.
5282
5283 2015-07-24 Pedro Alves <palves@redhat.com>
5284
5285 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5286
5287 2015-07-24 Pedro Alves <palves@redhat.com>
5288
5289 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5290 sys/ptrace.h.
5291 * alpha-linux-nat.c: Likewise.
5292 * amd64-linux-nat.c: Likewise.
5293 * arm-linux-nat.c: Likewise.
5294 * hppa-linux-nat.c: Likewise.
5295 * i386-linux-nat.c: Likewise.
5296 * ia64-linux-nat.c: Likewise.
5297 * linux-fork.c: Likewise.
5298 * linux-nat.c: Likewise.
5299 * m32r-linux-nat.c: Likewise.
5300 * m68klinux-nat.c: Likewise.
5301 * mips-linux-nat.c: Likewise.
5302 * nat/linux-btrace.c: Likewise.
5303 * nat/linux-ptrace.c: Likewise.
5304 * nat/linux-ptrace.h
5305 * nat/mips-linux-watch.c: Likewise.
5306 * nat/x86-linux-dregs.c: Likewise.
5307 * ppc-linux-nat.c: Likewise.
5308 * s390-linux-nat.c: Likewise.
5309 * spu-linux-nat.c: Likewise.
5310 * tilegx-linux-nat.c: Likewise.
5311 * x86-linux-nat.c: Likewise.
5312 * xtensa-linux-nat.c: Likewise.
5313
5314 2015-07-24 Pedro Alves <palves@redhat.com>
5315
5316 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5317 __ptrace_request as first parameter type instead of int.
5318 (PTRACE_TYPE_ARG1): Define.
5319 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5320 that casts first argument to PTRACE_TYPE_ARG1.
5321 * config.in: Regenerate.
5322 * configure: Regenerate.
5323
5324 2015-07-24 Pedro Alves <palves@redhat.com>
5325
5326 * gdb_ptrace.h: Move ...
5327 * nat/gdb_ptrace.h: ... here.
5328 * inf-ptrace.c: Adjust.
5329
5330 2015-07-24 Pedro Alves <palves@redhat.com>
5331
5332 * acinclude.m4: Include ptrace.m4.
5333 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5334 * ptrace.m4: ... to this new file.
5335
5336 2015-07-23 Doug Evans <dje@google.com>
5337
5338 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5339 (load_cu): Handle dummy CUs.
5340 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5341 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5342
5343 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5344
5345 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5346 documentation to say that it returns a list rather than
5347 a FrozenSet.
5348 (linetable_object_methods): Update the docstring of the
5349 "source_line" entry.
5350
5351 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5352
5353 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5354 type to the recursive call instead of the original (maybe
5355 TYPE_CODE_TYPEDEF) type.
5356
5357 2015-07-23 Yao Qi <yao.qi@linaro.org>
5358
5359 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5360 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5361 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5362
5363 2015-07-21 Yao Qi <yao.qi@linaro.org>
5364
5365 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5366 Move it to nat/aarch64-linux-hw-point.c.
5367 (aarch64_linux_child_post_startup_inferior): Update.
5368 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5369 New function.
5370 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5371 Declare it.
5372
5373 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5374
5375 * common/btrace-common.c (btrace_data_append): Change case label.
5376
5377 2015-07-20 Yao Qi <yao.qi@linaro.org>
5378
5379 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5380 Re-indent the code.
5381 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5382 "unsigned long long".
5383
5384 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5385
5386 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5387 to be set for SEC_ALLOC sections too.
5388
5389 2015-07-17 Yao Qi <yao.qi@linaro.org>
5390
5391 * Makefile.in (HFILES_NO_SRCDIR): Add
5392 nat/aarch64-linux-hw-point.h.
5393 (aarch64-linux-hw-point.o): New rule.
5394 * nat/aarch64-linux-hw-point.h: New file.
5395 * nat/aarch64-linux-hw-point.c: New file.
5396 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5397 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5398 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5399 (AARCH64_HWP_ALIGNMENT): Likewise.
5400 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5401 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5402 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5403 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5404 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5405 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5406 (struct aarch64_debug_reg_state): Likewise.
5407 (struct arch_lwp_info): Likewise.
5408 (aarch64_linux_set_debug_regs): Likewise.
5409 (aarch64_notify_debug_reg_change): Remove static.
5410 (aarch64_align_watchpoint): Likewise.
5411 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5412 (aarch64_watchpoint_length): Likewise.
5413 (aarch64_point_encode_ctrl_reg): Likewise
5414 (aarch64_point_is_aligned): Likewise.
5415 (aarch64_dr_state_insert_one_point): Likewise.
5416 (aarch64_dr_state_remove_one_point): Likewise.
5417 (aarch64_handle_breakpoint): Likewise.
5418 (aarch64_handle_aligned_watchpoint): Likewise.
5419 (aarch64_handle_unaligned_watchpoint): Likewise.
5420 (aarch64_handle_watchpoint): Likewise.
5421 * config/aarch64/linux.mh (NAT_FILE): Add
5422 aarch64-linux-hw-point.o.
5423
5424 2015-07-17 Yao Qi <yao.qi@linaro.org>
5425
5426 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5427 state and don't call aarch64_get_debug_reg_state. All callers
5428 update.
5429 (aarch64_linux_insert_hw_breakpoint): Call
5430 aarch64_get_debug_reg_state earlier.
5431 (aarch64_linux_remove_hw_breakpoint): Likewise.
5432 (aarch64_handle_aligned_watchpoint): Add argument state and
5433 don't call aarch64_get_debug_reg_state. All callers update.
5434 (aarch64_handle_unaligned_watchpoint): Likewise.
5435 (aarch64_handle_watchpoint): Add argument state.
5436 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5437 earlier.
5438 (aarch64_linux_remove_watchpoint): Likewise.
5439
5440 2015-07-17 Yao Qi <yao.qi@linaro.org>
5441
5442 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5443 debug_printf.
5444 (aarch64_handle_unaligned_watchpoint): Likewise.
5445
5446 2015-07-17 Yao Qi <yao.qi@linaro.org>
5447
5448 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5449 argument type's type to 'enum target_hw_bp_type'.
5450 (aarch64_dr_state_remove_one_point): Likewise.
5451 (aarch64_handle_breakpoint): Likewise.
5452 (aarch64_linux_insert_hw_breakpoint): Likewise.
5453 (aarch64_linux_remove_hw_breakpoint): Likewise.
5454 (aarch64_handle_aligned_watchpoint): Likewise.
5455
5456 2015-07-17 Yao Qi <yao.qi@linaro.org>
5457
5458 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5459 ptid_get_pid instead of get_thread_id.
5460
5461 2015-07-17 Yao Qi <yao.qi@linaro.org>
5462
5463 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5464 (add_current_inferior_and_thread): Don't initialise ptid.
5465
5466 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5467
5468 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5469 unavailable if invalid.
5470
5471 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5472
5473 Revert the previous 6 commits:
5474 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5475 Move gdb_regex* to common/
5476 Prepare linux_find_memory_regions_full & co. for move
5477 Move linux_find_memory_regions_full & co.
5478 gdbserver build-id attribute generator
5479 Validate symbol file using build-id
5480
5481 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5482 Jan Kratochvil <jan.kratochvil@redhat.com>
5483
5484 Validate symbol file using build-id.
5485 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5486 and 'show validate-build-id'. Add build-id attribute.
5487 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5488 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5489 * solib-frv.c (_initialize_frv_solib): Ditto.
5490 * solib-spu.c (set_spu_solib_ops): Ditto.
5491 * solib-svr4.c: Include rsp-low.h.
5492 (NOTE_GNU_BUILD_ID_NAME): New define.
5493 (svr4_validate): New function.
5494 (svr4_copy_library_list): Duplicate field build_id.
5495 (library_list_start_library): Parse 'build-id' attribute.
5496 (svr4_library_attributes): Add 'build-id' attribute.
5497 (_initialize_svr4_solib): Assign validate value.
5498 * solib-target.c (solib.h): Include.
5499 (_initialize_solib_target): Assign validate value.
5500 * solib.c (validate_build_id, show_validate_build_id): New.
5501 (solib_map_sections): Use ops->validate.
5502 (clear_so): Free build_id.
5503 (default_solib_validate): New function.
5504 (_initialize_solib): Add "validate-build-id".
5505 * solib.h (default_solib_validate): New declaration.
5506 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5507 (target_so_ops): New field 'validate'.
5508
5509 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5510 Jan Kratochvil <jan.kratochvil@redhat.com>
5511
5512 gdbserver build-id attribute generator.
5513 * features/library-list-svr4.dtd (library-list-svr4): New
5514 'build-id' attribute.
5515
5516 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5517 Jan Kratochvil <jan.kratochvil@redhat.com>
5518
5519 Move linux_find_memory_regions_full & co.
5520 * linux-tdep.c (nat/linux-maps.h): Include.
5521 (gdb_regex.h): Remove the include.
5522 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5523 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5524 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5525 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5526 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5527 and target/target.h.
5528 (struct smaps_vmflags, read_mapping, decode_vmflags)
5529 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5530 (linux_find_memory_regions_full): Move from linux-tdep.c.
5531 * nat/linux-maps.h (read_mapping): New declaration.
5532 (linux_find_memory_region_ftype, enum filterflags): Moved from
5533 linux-tdep.c.
5534 (linux_find_memory_regions_full): New declaration.
5535 * target.c (target/target-utils.h): Include.
5536 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5537 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5538 definitions to target/target-utils.c.
5539 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5540 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5541 from target.c.
5542 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5543 (read_alloc): New declaration.
5544 (read_stralloc_func_ftype): New typedef.
5545 (read_stralloc): New declaration.
5546 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5547
5548 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5549 Jan Kratochvil <jan.kratochvil@redhat.com>
5550
5551 Prepare linux_find_memory_regions_full & co. for move.
5552 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5553 (linux_find_memory_regions_full): Change signature and prepare
5554 for moving to linux-maps.
5555 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5556 (linux_find_memory_regions_thunk): New.
5557 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5558 (linux_find_memory_regions_gdb): New.
5559 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5560 (linux_make_mappings_corefile_notes): Use
5561 linux_find_memory_regions_gdb.
5562 * target.c (read_alloc_pread_ftype): New typedef.
5563 (target_fileio_read_alloc_1_pread): New function.
5564 (read_alloc): Refactor from target_fileio_read_alloc_1.
5565 (read_stralloc_func_ftype): New typedef.
5566 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5567 (read_stralloc): Refactored from target_fileio_read_stralloc.
5568 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5569
5570 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5571
5572 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5573 common/gdb_regex.h.
5574 (COMMON_OBS): Add gdb_regex.o.
5575 (gdb_regex.o): New.
5576 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5577 --without-included-regex and USE_INCLUDED_REGEX.
5578 * common/gdb_regex.c: New file from utils.c functions.
5579 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5580 file wrapping define name.
5581 * configure: Rebuilt.
5582 * configure.ac (gdb_use_included_regex, --without-included-regex)
5583 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5584 * gdb_regex.h: Move it to common/gdb_regex.h.
5585 * utils.c: Remove include gdb_regex.h.
5586 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5587 (compile_rx_or_error): Move them to common/gdb_regex.c.
5588
5589 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5590 Jan Kratochvil <jan.kratochvil@redhat.com>
5591
5592 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5593 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5594 common/target-utils.h.
5595 (COMMON_OBS): Add target-utils.o.
5596 (linux-maps.o, target-utils.o): New.
5597 * target/target-utils.c: New file.
5598 * target/target-utils.h: New file.
5599 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5600 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5601 * nat/linux-maps.c: New file.
5602 * nat/linux-maps.h: New file.
5603
5604 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5605 Pedro Alves <palves@redhat.com>
5606
5607 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5608 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5609 (perf_event_read_bts): Change the type of SIZE and READ.
5610 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5611 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5612 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5613 mmap page.
5614 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5615 buffer size to UINT_MAX.
5616 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5617 DATA_TAIL.
5618 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5619 <last_head>: Change type.
5620 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5621 * common/btrace-common.c (btrace_data_append): Change the type of
5622 SIZE.
5623 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5624 check.
5625
5626 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5627
5628 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5629 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5630 with check_typedef.
5631 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5632 (ada_array_length): Likewise.
5633 (find_parallel_type_by_descriptive_type): Likewise.
5634 (ada_check_typedef): Likewise.
5635 * arm-tdep.c (arm_return_in_memory): Likewise.
5636 * ax-gdb.c (gen_trace_static_fields): Likewise.
5637 (gen_struct_ref_recursive): Likewise.
5638 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5639 (variable: block COLONCOLON name): Likewise.
5640 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5641 * c-lang.c (classify_type): Likewise.
5642 * c-typeprint.c (c_print_type): Likewise.
5643 (c_print_typedef): Likewise.
5644 (c_type_print_base): Likewise.
5645 * c-valprint.c (c_val_print): Likewise.
5646 * compile/compile-c-types.c (convert_type): Likewise.
5647 * compile/compile-object-load.c (get_out_value_type): Likewise.
5648 * completer.c (add_struct_fields): Likewise.
5649 (expression_completer): Likewise.
5650 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5651 (cp_lookup_nested_symbol_1): Likewise.
5652 (cp_lookup_nested_symbol): Likewise.
5653 * cp-valprint.c (cp_print_value_fields): Likewise.
5654 (cp_print_static_field): Likewise.
5655 * d-valprint.c (d_val_print): Likewise.
5656 * eval.c (evaluate_subexp_standard): Likewise.
5657 (evaluate_subexp_for_sizeof): Likewise.
5658 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5659 * f-typeprint.c (f_type_print_base): Likewise.
5660 * f-valprint.c (f_val_print): Likewise.
5661 * gdbtypes.c (get_discrete_bounds): Likewise.
5662 (create_array_type_with_stride): Likewise.
5663 (type_name_no_tag_or_error): Likewise.
5664 (lookup_struct_elt_type): Likewise.
5665 (get_unsigned_type_max): Likewise.
5666 (internal_type_vptr_fieldno): Likewise.
5667 (set_type_vptr_fieldno): Likewise.
5668 (internal_type_vptr_basetype): Likewise.
5669 (set_type_vptr_basetype): Likewise.
5670 (get_vptr_fieldno): Likewise.
5671 (is_integral_type): Likewise.
5672 (is_scalar_type): Likewise.
5673 (is_scalar_type_recursive): Likewise.
5674 (distance_to_ancestor): Likewise.
5675 (is_unique_ancestor_worker): Likewise.
5676 (check_types_equal): Likewise.
5677 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5678
5679 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5680
5681 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5682 also test for language_d.
5683 (dwarf2_compute_name): Likewise.
5684 (read_func_scope): Likewise.
5685 (read_structure_type): Likewise.
5686 (new_symbol_full): Likewise.
5687 (determine_prefix): Likewise.
5688 (read_import_statement): Use dot as the separator for language_d.
5689 (typename_concat): Likewise, but don't prefix the D main function.
5690
5691 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5692
5693 * nat/linux-namespaces.c (setns): Rename from this ...
5694 (do_setns): ... to this. Support calling setns if it exists.
5695 (mnsh_handle_setns): Call do_setns.
5696
5697 2015-07-13 Yao Qi <yao.qi@linaro.org>
5698
5699 * exec.c (exec_file_attach): Add period at the end of error
5700 message.
5701
5702 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5703
5704 * tui/tui-win.c (window_name_completer): New function.
5705 (focus_completer): Call window_name_completer. All old content
5706 moved into window_name_completer.
5707 (winheight_completer): New function.
5708 (_initialize_tui_win): Rename variable. Add completer to
5709 winheight command. Update doc string on winheight.
5710
5711 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5712
5713 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5714 all nios2 mach variants.
5715
5716 2015-07-10 Kevin Buettner <kevinb@redhat.com>
5717
5718 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5719 of target_read_memory.
5720
5721 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5722
5723 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5724 string copy.
5725 (parse_scrolling_args): Likewise.
5726
5727 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5728
5729 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5730 names in this function.
5731
5732 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5733
5734 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5735 (CMD_NAME): Likewise.
5736 (DATA_NAME): Likewise.
5737 (DISASSEM_NAME): Likewise.
5738 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5739 (tui_set_win_height): Likewise.
5740 (parse_scrolling_args): Likewise.
5741
5742 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5743
5744 * record-btrace.c (record_btrace_goto_begin)
5745 (record_btrace_goto_end, record_btrace_goto): Move call to
5746 print_stack_frame ...
5747 (record_btrace_set_replay): ... here. Set stop_pc.
5748 * record-full.c (record_full_goto_entry): Set stop_pc.
5749
5750 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5751
5752 * NEWS: Mention support for tracepoints on aarch64-linux.
5753
5754 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5755
5756 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5757 function. Return 1.
5758 (the_low_target): Install it.
5759
5760 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5761
5762 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5763 * gdb.trace/collection.exp: Likewise.
5764 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5765 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5766 * gdb.trace/report.exp: Likewise.
5767 * gdb.trace/trace-break.exp: Likewise.
5768 * gdb.trace/unavailable.exp: Likewise.
5769 * gdb.trace/while-dyn.exp: Likewise.
5770
5771 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5772
5773 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5774 (aarch64_gen_return_address): New function.
5775 (aarch64_gdbarch_init): Hook it.
5776
5777 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5778
5779 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5780 swallow NOT_AVAILABLE_ERROR.
5781 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5782 available_p is not set.
5783 (aarch64_stub_frame_unwind_stop_reason): New function.
5784 (aarch64_stub_unwind): Install it.
5785
5786 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5787
5788 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5789 field.
5790 (aarch64_make_prologue_cache_1): New function, factored out from
5791 aarch64_make_prologue_cache. Do not allocate cache. Set
5792 available_p.
5793 (aarch64_make_prologue_cache): Reimplement wrapping
5794 aarch64_make_prologue_cache_1, and swallowing
5795 NOT_AVAILABLE_ERROR.
5796 (aarch64_prologue_frame_unwind_stop_reason): New function.
5797 Return UNWIND_UNAVAILABLE if available_p is not set.
5798 (aarch64_prologue_unwind): Install it.
5799 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5800 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5801 frame_id_build_unavailable_stack if available_p is not set.
5802
5803 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5804
5805 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5806 fields.
5807 (aarch64_scan_prologue): Set prev_pc.
5808 (aarch64_make_prologue_cache): Set func.
5809 (aarch64_make_stub_cache): Set prev_pc.
5810 (aarch64_prologue_this_id): Remove local variables id, pc and
5811 func. Read prev_pc and func from cache.
5812 (aarch64_stub_this_id): Read prev_pc from cache.
5813
5814 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5815
5816 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5817 argument this_cache. Remove unused local variables reg and
5818 unwound_fp. Return early if this_cache is already set. Set
5819 this_cache.
5820 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5821
5822 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5823
5824 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5825 New argument this_cache. Return early if this_cache is already
5826 set. Set this_cache.
5827 (aarch64_prologue_this_id): Update call to
5828 aarch64_make_prologue_cache.
5829 (aarch64_prologue_prev_register): Likewise.
5830 (aarch64_normal_frame_base): Likewise.
5831
5832 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5833
5834 * c-valprint.c (c_val_print): Factor out memberptr printing code
5835 from c_val_print to ...
5836 (c_val_print_memberptr): ... this new function.
5837
5838 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5839
5840 * c-valprint.c (c_val_print): Factor out int printing code to ...
5841 (c_val_print_int): ... this new function.
5842
5843 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5844
5845 * c-valprint.c (c_val_print): Factor out struct and union
5846 printing code to ...
5847 (c_val_print_struct): ... this new function ...
5848 (c_val_print_union): ... and this new function.
5849
5850 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5851
5852 * c-valprint.c (c_val_print): Factor out pointer printing code
5853 to ...
5854 (c_val_print_ptr): ... this new function.
5855
5856 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5857
5858 * c-valprint.c (c_valprint): Factor our array printing code from
5859 c_val_print to ...
5860 (c_val_print_array): ... this new function.
5861
5862 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5863
5864 * c-valprint.c (c_val_print): Factor out pointer printing code
5865 to ...
5866 (print_unpacked_pointer): ... this new function.
5867
5868 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5869
5870 * c-valprint.c (c_val_print): Remove an assignment to i and move
5871 its declaration.
5872
5873 2015-07-09 Yao Qi <yao.qi@linaro.org>
5874
5875 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5876 argument ptid. Update comments. Caller update.
5877
5878 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5879
5880 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5881 mnt packets.
5882
5883 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5884
5885 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5886
5887 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5888
5889 * progspace.c (delete_program_space): Add missing spaces.
5890
5891 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5892
5893 * inferior.c (delete_inferior_1): Rename to ...
5894 (delete_inferior): ..., remove 'silent' parameter, delete
5895 program space when unused and remove call to prune_program_spaces.
5896 Remove the old, unused, delete_inferior.
5897 (delete_inferior_silent): Remove.
5898 (prune_inferiors): Change call from delete_inferior_1 to
5899 delete_inferior and remove 'silent' parameter. Remove call to
5900 prune_program_spaces.
5901 (remove_inferior_command): Idem.
5902 * inferior.h (delete_inferior_1): Rename to...
5903 (delete_inferior): ..., remove 'silent' parameter and remove the
5904 original delete_inferior.
5905 (delete_inferior_silent): Remove.
5906 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
5907 delete_inferior_1 to delete_inferior and remove 'silent'
5908 parameter.
5909 * progspace.c (prune_program_spaces): Remove.
5910 (pspace_empty_p): Rename to...
5911 (program_space_empty_p): ... and make non-static.
5912 (delete_program_space): New.
5913 * progspace.h (prune_program_spaces): Remove declaration.
5914 (program_space_empty_p): New declaration.
5915 (delete_program_space): New declaration.
5916 * monitor.c (monitor_close): Replace call to
5917 delete_thread_silent and delete_inferior_silent with
5918 discard_all_inferiors.
5919
5920 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
5921
5922 * defs.h (deprecated_register_changed_hook): Remove prototype.
5923 * interps.c (clear_iterpreter_hooks): Remove reference to
5924 deprecated_register_changed_hook.
5925 * top.c (deprecated_register_changed_hook): Remove prototype.
5926 * valops.c (value_assign): Remove reference to
5927 deprecated_register_changed_hook.
5928 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
5929 Add comment documenting the function.
5930 (tui_register_changed_observer): Define.
5931 (tui_install_hooks): Remove reference to
5932 deprecated_register_changed_hook. Set
5933 tui_register_changed_observer.
5934 (tui_remove_hooks): Remove reference to
5935 deprecated_register_changed_hook. Unset
5936 tui_register_changed_observer.
5937
5938 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5939
5940 PR compile/18484
5941 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
5942
5943 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
5944
5945 PR exp/18617
5946 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
5947
5948 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5949
5950 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
5951
5952 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5953
5954 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
5955 Use safe_strerror() instead of strerror().
5956
5957 2015-07-07 Yao Qi <yao.qi@linaro.org>
5958
5959 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
5960 * features/arm-with-m-fpa-layout.c: Regenerated.
5961 * features/arm-with-m-vfp-d16.xml: Likewise.
5962 * features/arm-with-m-vfp-d16.c: Regenerated.
5963 * features/arm-with-m.xml: Likewise.
5964 * features/arm-with-m.c: Regenerated.
5965 * features/arm-with-neon.xml: Likewise.
5966 * features/arm-with-neon.c: Regenerated.
5967 * features/arm-with-vfpv2.xml: Likewise.
5968 * features/arm-with-vfpv2.c: Regenerated.
5969 * features/arm-with-vfpv3.xml: Likewise.
5970 * features/arm-with-vfpv3.c: Regenerated.
5971
5972 2015-07-07 Yao Qi <yao.qi@linaro.org>
5973
5974 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
5975 arm-linux-nat.c.
5976 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
5977 elf/external.h.
5978 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
5979 if target is 32-bit.
5980 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
5981 if target is 32-bit.
5982 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
5983 if target is 32-bit.
5984 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
5985 if target is 32-bit.
5986 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
5987 (aarch64_linux_read_description): Return the right target
5988 description.
5989 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
5990 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5991 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
5992 arm-linux-tdep.o.
5993
5994 2015-07-07 Yao Qi <yao.qi@linaro.org>
5995
5996 * aarch32-linux-nat.c: New file.
5997 * aarch32-linux-nat.h: New file.
5998 * arm-linux-nat.c: Include aarch32-linux-nat.h.
5999 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6000 aarch32_gp_regcache_supply.
6001 (store_regs): Move code to aarch32-linux-nat.c. Call
6002 aarch32_gp_regcache_collect.
6003 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6004 aarch32_vfp_regcache_supply.
6005 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6006 aarch32_vfp_regcache_collect.
6007 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6008
6009 2015-07-07 Yao Qi <yao.qi@linaro.org>
6010
6011 * arm-linux-nat.c (store_fpregister): Remove.
6012 (store_register): Likewise.
6013 (fetch_fpregister): Likewise.
6014 (fetch_register): Likewise.
6015 (arm_linux_store_inferior_registers): Call store_regs and
6016 store_fpregs instead.
6017 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6018 fetch_regs instead.
6019
6020 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6021
6022 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6023 and focus commands.
6024
6025 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6026
6027 * NEWS: Create a new section for the next release branch.
6028 Rename the section of the current branch, now that it has
6029 been cut.
6030
6031 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6032
6033 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6034 * version.in: Bump version to 7.10.50.DATE-cvs.
6035
6036 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6037
6038 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6039 breakpoints in a special way.
6040 (remove_breakpoint): Likewise.
6041 (mark_breakpoints_out): Likewise.
6042
6043 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6044
6045 * doc/gdb.texinfo (TUI): Add comma after @xref.
6046
6047 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6048
6049 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6050 instead of casting the structure type.
6051
6052 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6053
6054 * valops.c (search_struct_field): Remove OFFSET parameter.
6055 (value_cast_structs): Adjust calls to search_struct_field.
6056 (value_struct_elt): Same.
6057 (find_overload_match): Same.
6058
6059 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6060
6061 * value.c (value_fetch_lazy): Update comment, change return
6062 value to void.
6063 * value.h (value_fetch_lazy): Change return value to void.
6064
6065 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6066
6067 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6068 (tui_win_name): Make parameter and result const.
6069 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6070
6071 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6072
6073 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6074 use printf_unfiltered.
6075 (set_mpx_cmd): Add missing trailing space to command string
6076 literal.
6077 (_initialize_i386_tdep): Give the "mpx" prefix command its
6078 correct name.
6079
6080 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6081
6082 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6083 (enum rx_frame_type): New.
6084 (struct rx_prologue): Add new field `frame_type'.
6085 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6086 parameter in the prologue struct. Add code for recording
6087 locations of PC and PSW for fast interrupt and exception frames.
6088 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6089 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6090 (rx_frame_type): New function.
6091 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6092 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6093 `this_cache'.
6094 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6095 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6096 RX_FRAME_TYPE_FAST_INTERRUPT.
6097 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6098 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6099 (rx_frame_unwind): Use rx_frame_sniffer instead of
6100 default_frame_sniffer.
6101 (rx_frame_unwind): New unwinder.
6102 (rx_gdbarch_init): Register new unwinder.
6103
6104 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6105
6106 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6107 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6108 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6109 and RX_FPSW_REGNUM.
6110 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6111
6112 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6113
6114 Fix GCC false warning.
6115 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6116
6117 2015-07-02 Yao Qi <yao.qi@linaro.org>
6118
6119 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6120 typo in the debugging message.
6121
6122 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6123
6124 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6125 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6126 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6127 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6128 (btrace_maint_clear): New.
6129 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6130 (pt_print_packet, btrace_maint_decode_pt)
6131 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6132 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6133 (maint_btrace_packet_history_cmd)
6134 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6135 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6136 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6137 (maint_info_btrace_cmd, _initialize_btrace): New.
6138 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6139 (btrace_maint_packet_history, btrace_maint_info): New.
6140 (btrace_thread_info) <maint>: New.
6141 * NEWS: Announce it.
6142
6143 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6144
6145 * btrace.c (btrace_fetch): Append the new trace data.
6146 (btrace_clear): Clear the stored trace data.
6147 * btrace.h (btrace_thread_info) <data>: New.
6148 * common/btrace-common.h (btrace_data_clear)
6149 (btrace_data_append): New.
6150 * common/btrace-common.c (btrace_data_clear)
6151 (btrace_data_append): New.
6152
6153 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6154
6155 * nat/linux-btrace.c (linux_enable_bts): Check for
6156 PERF_ATTR_SIZE_VER5.
6157 Check for data_offset and data_size fields. Use them.
6158
6159 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6160
6161 * NEWS: Announce new commands "record btrace pt" and "record pt".
6162 Announce new options "set|show record btrace pt buffer-size".
6163 * btrace.c: Include "rsp-low.h".
6164 Include "inttypes.h".
6165 (btrace_add_pc): Add forward declaration.
6166 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6167 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6168 (btrace_compute_ftrace_pt): New.
6169 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6170 (check_xml_btrace_version): Update version check.
6171 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6172 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6173 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6174 (btrace_pt_children): New.
6175 (btrace_children): Add support for "pt".
6176 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6177 (btrace_conf_children): Add support for "pt".
6178 * btrace.h: Include "intel-pt.h".
6179 (btrace_pt_error): New.
6180 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6181 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6182 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6183 (struct btrace_config_pt): New.
6184 (struct btrace_config)<pt>: New.
6185 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6186 (struct btrace_data)<pt>: New.
6187 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6188 (pt): New.
6189 * features/btrace.dtd (btrace)<pt>: New.
6190 (pt, pt-config, cpu): New.
6191 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6192 (perf_event_pt_event_type, kernel_supports_pt)
6193 (linux_supports_pt): New.
6194 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6195 (linux_enable_bts): Free tinfo on error.
6196 (linux_enable_pt): New.
6197 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6198 (linux_disable_pt): New.
6199 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6200 (linux_fill_btrace_pt_config, linux_read_pt): New.
6201 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6202 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6203 (struct btrace_target_info)<pt>: New.
6204 * record-btrace.c (set_record_btrace_pt_cmdlist)
6205 (show_record_btrace_pt_cmdlist): New.
6206 (record_btrace_print_pt_conf): New.
6207 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6208 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6209 (cmd_record_btrace_pt_start): New.
6210 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6211 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6212 (_initialize_record_btrace): Add new commands.
6213 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6214 (remote_protocol_features): Add "Qbtrace:pt".
6215 Add "Qbtrace-conf:pt:size".
6216 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6217 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6218 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6219 (_initialize_remote): Add new commands.
6220
6221 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6222
6223 * configure.ac: check for libipt
6224 * configure: Regenerate.
6225 * config.in: Regenerate.
6226 * Makefile.in (LIBIPT): New.
6227 (CLIBS): Add $LIBIPT.
6228 * NEWS: document new configure options
6229
6230 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6231
6232 * compile/compile-object-load.c (compile_object_load): Replace debug
6233 message "lookup undefined ELF symbol" by 3 more specific messages.
6234
6235 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6236
6237 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6238 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6239 (rl78_gdbarch_init): Initialize rl78_psw_type.
6240
6241 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6242
6243 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6244 Update commentary. Always refresh the registers when frame
6245 information has changed.
6246 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6247 Change return type to int. Return 1 if frame information has
6248 changed, 0 otherwise.
6249 (tui_before_prompt): Update commentary.
6250 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6251 int.
6252
6253 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6254
6255 PR tui/13378
6256 * frame.c (select_frame): Remove reference to
6257 deprecated_selected_frame_level_changed_hook.
6258 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6259 declaration.
6260 * stack.c (deprecated_selected_frame_level_changed_hook):
6261 Likewise.
6262 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6263 Rename to ...
6264 (tui_refresh_frame_and_register_information): ... this. Bail
6265 out if there is no stack. Don't update register information
6266 unless registers_too_p is true.
6267 (tui_print_frame_info_listing_hook): Rename to ...
6268 (tui_dummy_print_frame_info_listing_hook): ... this.
6269 (tui_before_prompt): New function.
6270 (tui_normal_stop): New function.
6271 (tui_before_prompt_observer): New observer.
6272 (tui_normal_stop_observer): New observer.
6273 (tui_install_hooks): Set
6274 deprecated_print_frame_info_listing_hook to
6275 tui_dummy_print_frame_info_listing_hook. Register
6276 tui_before_prompt_observer to call tui_before_prompt and
6277 tui_normal_stop_observer to call tui_normal_stop. Remove
6278 reference to deprecated_selected_frame_level_changed_hook.
6279 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6280 and tui_normal_stop_observer. Remove reference to
6281 deprecated_selected_frame_level_changed_hook.
6282
6283 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6284
6285 PR tui/13378
6286 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6287 return an int instead of void. Return whether the locator
6288 window has changed.
6289 (tui_show_frame_info): If the locator info has not changed, then
6290 bail out early to avoid refreshing the windows.
6291
6292 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6293
6294 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6295 LOCATOR_WIN to tui_alloc_content.
6296
6297 2015-06-30 Yao Qi <yao.qi@linaro.org>
6298
6299 PR tdep/18605
6300 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6301 instructions.
6302
6303 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6304
6305 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6306 (rx_dwarf_reg_to_regnum): New function.
6307 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6308 unwinding.
6309
6310 2015-06-29 Pedro Alves <palves@redhat.com>
6311
6312 PR threads/18127
6313 * infcall.c (run_inferior_call): On infcall success, if the thread
6314 was marked stopped before, reset it back to stopped.
6315 * infrun.c (resume): Don't suppress the set_running calls when
6316 doing an infcall.
6317 (normal_stop): Only discard the finish_thread_state cleanup if the
6318 infcall succeeded.
6319
6320 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6321
6322 * MAINTAINERS (Write After Approval): Update my email address.
6323
6324 2015-06-26 Keith Seitz <keiths@redhat.com>
6325 Doug Evans <dje@google.com>
6326
6327 PR 16253
6328 * block.c (block_lookup_symbol): For non-function blocks,
6329 continue to search for a symbol with an exact domain match
6330 Otherwise, return any previously found "best domain" symbol.
6331 (block_lookup_symbol_primary): Likewise.
6332
6333 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6334
6335 * NEWS: Mention the new option "history remove-duplicates".
6336 * top.c (history_remove_duplicates): New static variable.
6337 (show_history_remove_duplicates): New static function.
6338 (gdb_add_history): Conditionally remove duplicate history
6339 entries.
6340 (init_main): Add "history remove-duplicates" option.
6341
6342 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6343
6344 * tui/tui-win.c (focus_completer): New static function.
6345 (_initialize_tui_win): Set the completion function of the
6346 "focus" command to focus_completer.
6347
6348 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6349
6350 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6351 and language_asm..
6352 * symtab.c (find_function_start_sal): Likewise.
6353
6354 2015-06-25 Gary Benson <gbenson@redhat.com>
6355
6356 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6357 it is the empty string after trailing slashes have been stripped.
6358
6359 2015-06-25 Gary Benson <gbenson@redhat.com>
6360
6361 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6362 * infrun.c (follow_exec): Likewise.
6363 * remote.c (remote_filesystem_is_local): Likewise.
6364 * solib.c (solib_find_1): Likewise.
6365
6366 2015-06-24 Keith Seitz <keiths@redhat.com>
6367
6368 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6369 return value from lrealpath.
6370
6371 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6372
6373 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6374
6375 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6376
6377 * remote-sim.c: Include gdb_bfd.h.
6378 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6379 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6380
6381 2015-06-24 Yao Qi <yao.qi@linaro.org>
6382
6383 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6384 set_gdbarch_get_siginfo_type.
6385 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6386 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6387 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6388 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6389 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6390 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6391 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6392 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6393 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6394 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6395
6396 2015-06-24 Gary Benson <gbenson@redhat.com>
6397
6398 * common/buffer.c (stdint.h): Do not include.
6399 * common/print-utils.c (stdint.h): Likewise.
6400 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6401 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6402 * ft32-tdep.c (gdb_assert.h): Likewise.
6403 * guile/scm-utils.c (stdint.h): Likewise.
6404 * i386-linux-tdep.c (stdint.h): Likewise.
6405 * i386-tdep.c (stdint.h): Likewise.
6406 * nat/linux-btrace.c (stdint.h): Likewise.
6407 * nat/linux-btrace.h (stdint.h): Likewise.
6408 * nat/linux-ptrace.c (stdint.h): Likewise.
6409 * nat/mips-linux-watch.h (stdint.h): Likewise.
6410 * ppc-linux-nat.c (stdint.h): Likewise.
6411 * python/python-internal.h (stdint.h): Likewise.
6412 * stub-termcap.c (stdlib.h): Likewise.
6413 * target/target.h (stdint.h): Likewise.
6414 * xtensa-linux-nat.c (stdint.h): Likewise.
6415
6416 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6417
6418 * top.c (init_history): Look at errno after calling strtol to
6419 properly map large GDBHISTSIZE values to infinity.
6420
6421 2015-06-23 Doug Evans <dje@google.com>
6422
6423 * inferior.h (struct inferior_suspend_state): Delete, unused.
6424 All references deleted.
6425
6426 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6427
6428 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6429 (microblaze_push_dummy_call): Likewise.
6430 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6431 and set_gdbarch_push_dummy_call.
6432
6433 2015-06-23 Yao Qi <yao.qi@linaro.org>
6434
6435 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6436 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6437 (amd64_linux_store_inferior_registers): Likewise.
6438 * arm-linux-nat.c (fetch_fpregister): Likewise.
6439 (fetch_fpregs, store_fpregister): Likewise.
6440 (store_fpregister, store_fpregs): Likewise.
6441 (fetch_register, fetch_regs): Likewise.
6442 (store_register, store_regs): Likewise.
6443 (fetch_vfp_regs, store_vfp_regs): Likewise.
6444 (arm_linux_read_description): Check have_ptrace_getregset is
6445 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6446 or TRIBOOL_FALSE.
6447 * i386-linux-nat.c (fetch_xstateregs): Check
6448 have_ptrace_getregset is not TRIBOOL_TRUE.
6449 (store_xstateregs): Likewise.
6450 * linux-nat.c (have_ptrace_getregset): Change its type to
6451 enum tribool.
6452 * linux-nat.h (tribool): New enum.
6453 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6454 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6455
6456 2015-06-19 Doug Evans <dje@google.com>
6457
6458 * NEWS: Mention Sun's version of stabs is no longer supported.
6459 * elfread.c (free_elfinfo): Delete. All uses updated.
6460 (elfstab_offset_sections): Delete. All uses updated.
6461 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6462 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6463 All uses updated.
6464 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6465 All callers updated.
6466
6467 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6468
6469 * common/rsp-low.c (needs_escaping): New.
6470 (remote_escape_output): Add unit_size parameter. Refactor to
6471 support multi-byte addressable units. Rename parameters.
6472 * common/rsp-low.h (remote_escape_output): Add unit_size
6473 parameter and rename others. Update doc.
6474 * remote.c (align_for_efficient_write): New.
6475 (remote_write_bytes_aux): Add unit_size parameter and use it.
6476 Rename some variables. Update doc.
6477 (remote_xfer_partial): Get unit size and use it.
6478 (remote_read_bytes_1): Add unit_size parameter and use it.
6479 Rename some variables. Update doc.
6480 (remote_write_bytes): Same.
6481 (remote_xfer_live_readonly_partial): Same.
6482 (remote_read_bytes): Same.
6483 (remote_flash_write): Update call to remote_write_bytes_aux.
6484 (remote_write_qxfer): Update call to remote_escape_output.
6485 (remote_search_memory): Same.
6486 (remote_hostio_pwrite): Same.
6487
6488 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6489
6490 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6491 locations as inserted.
6492 Update and expand comment about permanent locations.
6493 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6494 Move comment to add_location_to_breakpoint.
6495 (update_global_location_list): Don't error out if a permanent
6496 breakpoint is not marked inserted.
6497 Don't error out if a non-permanent breakpoint location is inserted on
6498 top of a permanent breakpoint.
6499
6500 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6501
6502 * breakpoint.c (make_breakpoint_permanent): Remove unused
6503 function.
6504 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6505
6506 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6507
6508 PR gdb/16999
6509 * NEWS: Mention new GDBHISTSIZE behavior.
6510 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6511 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6512
6513 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6514
6515 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6516 * top.c (init_history): Read from GDBHISTSIZE instead of
6517 HISTSIZE.
6518 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6519
6520 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6521
6522 * top.c (gdb_safe_append_history): Do not call
6523 history_truncate_file if the history is not stifled.
6524
6525 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6526
6527 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6528 * syscalls/s390x-linux.xml: Likewise.
6529
6530 2015-06-16 Michael Eager <eager@eagercon.com>
6531
6532 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6533
6534 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6535
6536 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6537 target_terminal_ours_for_output() before calling
6538 tui_show_frame_info(), and restore the original terminal
6539 settings afterwards.
6540
6541 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6542
6543 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6544
6545 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6546
6547 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6548 memory unit size.
6549 (mi_cmd_data_write_memory_bytes): Same.
6550
6551 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6552
6553 * corefile.c (write_memory): Update doc.
6554 * gdbcore.h (write_memory): Same.
6555
6556 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6557
6558 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6559 (dump_mapping_p): Use it for parameter filterflags.
6560 (linux_find_memory_regions_full): Use it for variable filterflags.
6561
6562 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6563 Jan Kratochvil <jan.kratochvil@redhat.com>
6564
6565 Merge multiple hex conversions.
6566 * monitor.c: Include rsp-low.h.
6567 (fromhex): Remove definition.
6568
6569 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6570 Jan Kratochvil <jan.kratochvil@redhat.com>
6571
6572 Move utility functions to common/.
6573 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6574 Move defs to common/common-utils.c.
6575 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6576 (skip_to_space_const): Move decls to common/common-utils.h.
6577 * common/common-defs.h: Move include of common-types.h before
6578 common-utils.h.
6579 * common/common-utils.c: Include host-defs.h and ctype.h.
6580 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6581 from utils.c.
6582 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6583 cli/cli-utils.c.
6584 * common/common-utils.h (strtoulst): Move decl from utils.h.
6585 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6586 Move from cli/cli-utils.h.
6587 * common/host-defs.h: Include limits.h.
6588 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6589 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6590 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6591 common/common-utils.h.
6592 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6593 (strtoulst): Move to common/common-utils.c.
6594 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6595
6596 2015-06-15 Yao Qi <yao.qi@linaro.org>
6597
6598 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6599
6600 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6601
6602 * build-id.c: Don't include elf-bfd.h.
6603 (build_id_bfd_get): Use bfd_build_id.
6604 (build_id_verify): Ditto.
6605 * build-id.h: Ditto.
6606 (find_separate_debug_file_by_buildid): Ditto.
6607 * python/py-objfile.c: Don't include elf-bfd.h.
6608 (objfpy_get_build_id) Use bfd_build_id.
6609 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6610 * coffread.c: Include build-id.h.
6611 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6612
6613 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6614
6615 * windows-nat.c (do_windows_fetch_inferior_registers)
6616 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6617 conditional with __CYGWIN__.
6618
6619 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6620
6621 * completer.c: Add arch-utils.h include.
6622 (enum reg_completer_targets): New enum.
6623 (reg_or_group_completer_1): New function containing old
6624 reg_or_group_completer, add and use new parameter to control what
6625 is completed on. Use get_current_arch rather than architecture of
6626 currently selected frame.
6627 (reg_or_group_completer): Call new reg_or_group_completer_1.
6628 (reggroup_completer): Call new reg_or_group_completer_1.
6629 * completer.h (reggroup_completer): Add declaration.
6630 * tui/tui-regs.c: Add 'completer.h' include.
6631 (tui_reg_next_command): Renamed to...
6632 (tui_reg_next): ...this. Adjust parameters and return rather than
6633 display new group.
6634 (tui_reg_prev_command): Renamed to...
6635 (tui_reg_prev): ...this. Adjust parameters and return rather than
6636 display new group.
6637 (tui_reg_float_command): Delete.
6638 (tui_reg_general_command): Delete.
6639 (tui_reg_system_command): Delete.
6640 (tui_reg_command): Rewrite to perform switching of register group.
6641 Add header comment.
6642 (tuireglist): Remove.
6643 (tui_reggroup_completer): New function.
6644 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6645 creation of 'tui reg' command.
6646 * NEWS: Add comment about 'tui reg' changes.
6647
6648 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6649
6650 * target.c (target_read): Consider addressable unit size when
6651 reading from a memory object.
6652 (read_memory_robust): Same.
6653 (read_whatever_is_readable): Same.
6654 (target_write_with_progress): Consider addressable unit size
6655 when writing to a memory object.
6656 * target.h (target_read): Update documentation.
6657 (target_write): Add documentation.
6658
6659 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6660
6661 * arch-utils.h (default_addressable_memory_unit_size): New.
6662 * arch-utils.c (default_addressable_memory_unit_size): New.
6663 * gdbarch.sh (addressable_memory_unit_size): New.
6664 * gdbarch.h: Re-generate.
6665 * gdbarch.c: Re-generate.
6666
6667 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6668
6669 * target.c (target_read): Rename variables and use
6670 TARGET_XFER_E_IO.
6671 (target_read_with_progress): Same.
6672 (read_memory_robust): Constify parameters and rename
6673 variables.
6674 (read_whatever_is_readable): Constify parameters,
6675 rename variables, adjust formatting.
6676 * target.h (read_memory_robust): Constify parameters.
6677
6678 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6679
6680 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6681 synthetic (non-AltiVec) vector types.
6682 (ppc64_sysv_abi_return_value): Likewise.
6683
6684 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6685
6686 PR breakpoints/16465
6687 * breakpoint.c (create_breakpoint): Save extra_string for
6688 pending breakpoints.
6689
6690 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6691
6692 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6693 and bt_mask to CORE_ADDR.
6694
6695 2015-06-11 Gary Benson <gbenson@redhat.com>
6696
6697 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6698 (mnsh_recv_message): Likewise.
6699
6700 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6701
6702 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6703 long long int and plongest instead of %ll.
6704
6705 2015-06-11 Gary Benson <gbenson@redhat.com>
6706
6707 * nat/linux-namespaces.c (gdb_wait.h): New include.
6708 (sys/wait.h): Do not include.
6709
6710 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6711
6712 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6713 end_sequence is true.
6714
6715 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6716
6717 Code cleanup.
6718 * solib-target.c (library_list_start_list): Use explicit NULL
6719 comparison.
6720
6721 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6722
6723 * solib-target.c (library_list_start_list): Do not dereference
6724 variable version in its initialization. Make the VERSION check handle
6725 NULL.
6726 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6727
6728 2015-06-10 Gary Benson <gbenson@redhat.com>
6729
6730 * NEWS: Announce support for direct access of executable and
6731 shared library files when attaching to inferiors in containers
6732 on GNU/Linux systems.
6733
6734 2015-06-10 Gary Benson <gbenson@redhat.com>
6735
6736 * remote.c (struct remote_state) <fs_pid>: New field.
6737 (new_remote_state): Initialize the above.
6738 (PACKET_vFile_setfs): New enum value.
6739 (remote_hostio_set_filesystem): New function.
6740 (remote_hostio_open): Call the above.
6741 (remote_hostio_unlink): Likewise.
6742 (remote_hostio_readlink): Likewise.
6743 (_initialize_remote): Register new "set/show remote
6744 hostio-setfs-packet" command.
6745 * NEWS: Announce new vFile:setfs packet.
6746
6747 2015-06-10 Gary Benson <gbenson@redhat.com>
6748
6749 * linux-nat.c (nat/linux-namespaces.h): New include.
6750 (fileio.h): Likewise.
6751 (linux_nat_filesystem_is_local): New function.
6752 (linux_nat_fileio_pid_of): Likewise.
6753 (linux_nat_fileio_open): Likewise.
6754 (linux_nat_fileio_readlink): Likewise.
6755 (linux_nat_fileio_unlink): Likewise.
6756 (linux_nat_add_target): Initialize to_filesystem_is_local,
6757 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6758 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6759 commands.
6760 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6761
6762 2015-06-10 Gary Benson <gbenson@redhat.com>
6763
6764 * target.h (struct inferior): New forward declaration.
6765 (struct target_ops) <to_filesystem_is_local>: Update comment.
6766 (struct target_ops) <to_fileio_open>: New argument inf.
6767 Update comment. All implementations updated.
6768 (struct target_ops) <to_fileio_unlink>: Likewise.
6769 (struct target_ops) <to_fileio_readlink>: Likewise.
6770 (target_filesystem_is_local): Update comment.
6771 (target_fileio_open): New argument inf. Update comment.
6772 (target_fileio_unlink): Likewise.
6773 (target_fileio_readlink): Likewise.
6774 (target_fileio_read_alloc): Likewise.
6775 (target_fileio_read_stralloc): Likewise.
6776 * target.c (target_fileio_open): New argument inf.
6777 Pass inf to implementation. Update debug printing.
6778 (target_fileio_unlink): Likewise.
6779 (target_fileio_readlink): Likewise.
6780 (target_fileio_read_alloc_1): New argument inf. Pass inf
6781 to target_fileio_open.
6782 (target_fileio_read_alloc): New argument inf. Pass inf to
6783 target_fileio_read_alloc_1.
6784 (target_fileio_read_stralloc): Likewise.
6785 * gdb_bfd.c (inferior.h): New include.
6786 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6787 argument with new argument "inferior". Pass inferior to
6788 target_fileio_open.
6789 (gdb_bfd_open): Supply inferior argument to
6790 gdb_bfd_iovec_fileio_open.
6791 * linux-tdep.c (linux_info_proc): Supply inf argument to
6792 relevant target_fileio calls.
6793 (linux_find_memory_regions_full): Likewise.
6794 (linux_fill_prpsinfo): Likewise.
6795 * remote.c (remote_filesystem_is_local): Supply inf
6796 argument to remote_hostio_open.
6797 (remote_file_put): Likewise.
6798 (remote_file_get): Likewise.
6799 (remote_file_delete): Supply inf argument to
6800 remote_hostio_unlink.
6801
6802 2015-06-10 Gary Benson <gbenson@redhat.com>
6803
6804 * inf-child.c (inf_child_fileio_open): Replace comment.
6805 (inf_child_fileio_pwrite): Likewise.
6806 (inf_child_fileio_pread): Likewise.
6807 (inf_child_fileio_fstat): Insert blank line before comment.
6808 (inf_child_fileio_close): Replace comment.
6809 (inf_child_fileio_unlink): Likewise.
6810 (inf_child_fileio_readlink): Likewise.
6811 * remote.c (remote_hostio_open): Likewise.
6812 (remote_hostio_pread): Likewise.
6813 (remote_hostio_pwrite): Likewise.
6814 (remote_hostio_close): Likewise.
6815 (remote_hostio_unlink): Likewise.
6816 (remote_hostio_readlink): Likewise.
6817 (remote_hostio_fstat): Likewise.
6818 (remote_filesystem_is_local): Likewise.
6819 * target.c (target_fileio_open): Likewise.
6820 (target_fileio_pwrite): Likewise.
6821 (target_fileio_pread): Likewise.
6822 (target_fileio_fstat): Insert blank line before comment.
6823 (target_fileio_close): Replace comment.
6824 (target_fileio_unlink): Likewise.
6825 (target_fileio_readlink): Likewise.
6826 (target_fileio_read_alloc): Likewise.
6827 (target_fileio_read_stralloc): Likewise.
6828
6829 2015-06-10 Gary Benson <gbenson@redhat.com>
6830
6831 * linux-thread-db.c (nat/linux-namespaces.h): New include.
6832 (check_pid_namespace_match): Use linux_ns_same rather than
6833 linux_proc_pid_get_ns to spot PID namespace mismatches.
6834 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6835 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6836
6837 2015-06-10 Gary Benson <gbenson@redhat.com>
6838
6839 * configure.ac (AC_CHECK_FUNCS): Add setns.
6840 * config.in: Regenerate.
6841 * configure: Likewise.
6842 * nat/linux-namespaces.h: New file.
6843 * nat/linux-namespaces.c: Likewise.
6844 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6845 (linux-namespaces.o): New rule.
6846 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6847 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6848 * config/arm/linux.mh (NATDEPFILES): Likewise.
6849 * config/i386/linux.mh (NATDEPFILES): Likewise.
6850 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6851 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6852 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6853 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6854 * config/mips/linux.mh (NATDEPFILES): Likewise.
6855 * config/pa/linux.mh (NATDEPFILES): Likewise.
6856 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6857 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6858 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6859 * config/s390/linux.mh (NATDEPFILES): Likewise.
6860 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6861 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6862 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6863 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6864
6865 2015-06-10 Gary Benson <gbenson@redhat.com>
6866
6867 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6868 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6869 (make_cleanup_close): Likewise.
6870 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6871 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6872 (make_cleanup_close): Likewise.
6873
6874 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6875
6876 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6877 from SuspendThread().
6878
6879 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6880
6881 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6882 from OutputDebugString.
6883
6884 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6885 Mircea Gherzan <mircea.gherzan@intel.com>
6886
6887 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6888 MPX_BT_MASK_32): New macros.
6889 (i386_mpx_set_bounds): New function that implements
6890 the command "set-mpx-bound".
6891 (i386_mpx_enabled): Helper function to test MPX availability.
6892 (i386_mpx_bd_base): Helper function to calculate the base directory
6893 address.
6894 (i386_mpx_get_bt_entry): Helper function to access a bound
6895 table entry.
6896 (i386_mpx_print_bounds): Effectively display bound information.
6897 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6898 "show mpx".
6899 (_initialize_i386_tdep):
6900 Add "bound" to the commands "show mpx" and "set mpx" commands.
6901 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
6902 and "show mpx" commands.
6903 * NEWS: List new commands for MPX support.
6904
6905 2015-06-09 Gary Benson <gbenson@redhat.com>
6906
6907 * common/fileio.h (fileio_to_host_mode): New declaration.
6908 * common/fileio.c (fileio_to_host_mode): New Function.
6909 * inf-child.c (inf_child_fileio_open): Process mode argument
6910 with fileio_to_host_mode.
6911
6912 2015-06-09 Gary Benson <gbenson@redhat.com>
6913
6914 * common/fileio.c (fileio_mode_pack): Fix preprocessor
6915 conditional.
6916
6917 2015-06-05 Gary Benson <gbenson@redhat.com>
6918
6919 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
6920 * remote.c (remote_filesystem_is_local): ...here.
6921
6922 2015-06-04 Yao Qi <yao.qi@linaro.org>
6923
6924 * gdbarch.c: Regenerate it.
6925
6926 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6927
6928 * arch-utils.c (default_infcall_munmap): New.
6929 * arch-utils.h (default_infcall_munmap): New declaration.
6930 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
6931 (munmap_list_free, munmap_listp_free_cleanup): New.
6932 (struct setup_sections_data): Add field munmap_list_headp.
6933 (setup_sections): Call munmap_list_add.
6934 (compile_object_load): New variable munmap_list_head, initialize
6935 setup_sections_data.munmap_list_headp, return munmap_list_head.
6936 * compile/compile-object-load.h (struct munmap_list): New declaration.
6937 (struct compile_module): Add field munmap_list_head.
6938 (munmap_list_free): New declaration.
6939 * compile/compile-object-run.c (struct do_module_cleanup): Add field
6940 munmap_list_head.
6941 (do_module_cleanup): Call munmap_list_free.
6942 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
6943 * gdbarch.c: Regenerate.
6944 * gdbarch.h: Regenerate.
6945 * gdbarch.sh (infcall_munmap): New.
6946 * linux-tdep.c (linux_infcall_munmap): New.
6947 (linux_init_abi): Install it.
6948
6949 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
6950
6951 PR gdb/15564
6952 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
6953
6954 2015-06-02 Yao Qi <yao.qi@linaro.org>
6955
6956 * i386-linux-nat.c: Include linux-nat.h.
6957
6958 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
6959 Jan Kratochvil <jan.kratochvil@redhat.com>
6960
6961 PR symtab/18392
6962 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
6963 assertion.
6964 * dwarf2loc.c (chain_candidate): Likewise.
6965
6966 2015-06-01 Yao Qi <yao.qi@linaro.org>
6967
6968 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
6969 (store_vfp_regs): Use PTRACE_SETREGSET.
6970
6971 2015-06-01 Yao Qi <yao.qi@linaro.org>
6972
6973 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
6974 (fetch_fpregs): Likewise.
6975 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
6976 (store_fpregs): Likewise.
6977
6978 2015-06-01 Yao Qi <yao.qi@linaro.org>
6979
6980 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
6981 (fetch_regs): Likewise.
6982 (store_regs): Use PTRACE_SETREGSET.
6983 (store_register): Likewise.
6984
6985 2015-06-01 Yao Qi <yao.qi@linaro.org>
6986
6987 * arm-linux-nat.c (arm_linux_read_description): Check whether
6988 kernel supports PTRACE_GETREGSET.
6989
6990 2015-06-01 Yao Qi <yao.qi@linaro.org>
6991
6992 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
6993 * linux-nat.c: ... here.
6994 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
6995 to ...
6996 * linux-nat.h: ... here.
6997
6998 2015-06-01 Yao Qi <yao.qi@linaro.org>
6999
7000 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7001 * i386-linux-nat.c: Likewise.
7002 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7003 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7004 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7005 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7006 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7007
7008 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7009
7010 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7011 compatible to what read_child and write_child return. This
7012 unbreaks that DJGPP build of GDB which was broken since v7.7.
7013
7014 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7015
7016 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7017
7018 2015-05-29 Roland McGrath <mcgrathr@google.com>
7019
7020 PR gdb/18464
7021 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7022 rather than internal_error for an unrecognized value.
7023
7024 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7025
7026 * xtensa-tdep.c (xtensa_pseudo_register_read)
7027 (xtensa_pseudo_register_write): Don't alias last pseudo register
7028 to a1.
7029
7030 2015-05-28 Don Breazeal <donb@codesourcery.com>
7031
7032 * infrun.c (follow_fork_inferior): Ensure the use of
7033 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7034 messages.
7035
7036 2015-05-28 Doug Evans <dje@google.com>
7037
7038 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7039
7040 2015-05-28 Yao Qi <yao.qi@linaro.org>
7041
7042 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7043 (arm_linux_fetch_inferior_registers): Use
7044 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7045 (arm_linux_store_inferior_registers): Likewise.
7046 (arm_linux_read_description): Don't set
7047 arm_linux_has_wmmx_registers.
7048 * arm-tdep.c (arm_gdbarch_init): Set
7049 tdep->have_wmmx_registers according target descriptions.
7050 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7051 field.
7052
7053 2015-05-28 Yao Qi <yao.qi@linaro.org>
7054
7055 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7056 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7057 instead of arm_linux_vfp_register_count.
7058 (store_vfp_regs): Likewise.
7059 (arm_linux_fetch_inferior_registers): Likewise.
7060 (arm_linux_store_inferior_registers): Likewise.
7061 (arm_linux_read_description): Don't set
7062 arm_linux_vfp_register_count.
7063 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7064 Adjust.
7065 * arm-tdep.c (arm_gdbarch_init): Add assert on
7066 vfp_register_count.
7067 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7068 field to vfp_register_count. All users updated.
7069
7070 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7071
7072 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7073 ELFOSABI_GNU binaries.
7074
7075 2015-05-27 Doug Evans <dje@google.com>
7076
7077 * dwarf2read.c (lnp_state_machine): New typedef.
7078 (lnp_reader_state): New typedef.
7079 (dwarf_record_line_1): Renamed from dwarf_record_line.
7080 All callers updated.
7081 (dwarf_record_line): New function.
7082 (init_lnp_state_machine): New function.
7083 (check_line_address): Replace p_record_line parameter with state.
7084 All callers updated.
7085 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7086 Update to record state in lnp_state_machine.
7087
7088 2015-05-27 Doug Evans <dje@google.com>
7089
7090 * dwarf2read.c (record_line_ftype): New typedef.
7091 (check_line_address): New function.
7092 (dwarf_decode_lines_1): Call it.
7093
7094 2015-05-27 Doug Evans <dje@google.com>
7095
7096 * NEWS: Mention "set debug dwarf-line".
7097 * dwarf2read.c (dwarf_line_debug): New static global.
7098 (add_include_dir): Add debug dwarf-line support.
7099 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7100 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7101
7102 2015-05-27 Doug Evans <dje@google.com>
7103
7104 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7105 All callers updated.
7106 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7107 * cp-support.h (cp_lookup_nested_symbol): Update.
7108
7109 2015-05-27 Doug Evans <dje@google.com>
7110
7111 PR symtab/18258
7112 * block.c (block_find_symbol): New function.
7113 (block_find_non_opaque_type): Ditto.
7114 (block_find_non_opaque_type_preferred): Ditto.
7115 * block.h (block_symbol_matcher_ftype): New typedef.
7116 (block_find_symbol): Declare.
7117 (block_find_non_opaque_type): Ditto.
7118 (block_find_non_opaque_type_preferred): Ditto.
7119 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7120 * psymtab.c (psym_lookup_symbol): Ditto.
7121 * symtab.c (basic_lookup_transparent_type_1): New function.
7122 (basic_lookup_transparent_type): Call it.
7123
7124 2015-05-27 Yao Qi <yao.qi@linaro.org>
7125
7126 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7127 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7128
7129 2015-05-27 Yao Qi <yao.qi@linaro.org>
7130
7131 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7132 before operator &&.
7133 (aarch64_record_load_store): Likewise.
7134
7135 2015-05-26 Doug Evans <dje@google.com>
7136
7137 PR c++/18141, c++/18417.
7138 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7139 a typedef.
7140
7141 2015-05-26 Doug Evans <dje@google.com>
7142
7143 * NEWS: Add entries for command renamings.
7144 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7145 All uses updated.
7146 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7147 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7148 All uses updated.
7149 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7150 All callers updated. Fix spelling of DWARF in help text.
7151 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7152 All uses updated.
7153 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7154 All uses updated.
7155 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7156 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7157 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7158 All uses updated.
7159 (show_dwarf_always_disassemble): Renamed from
7160 show_dwarf2_always_disassemble. All callers updated.
7161 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7162 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7163 "set/show dwarf max-cache-age". Rename
7164 "set/show dwarf2 always-disassemble" to
7165 "set/show dwarf always-disassemble". Rename
7166 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7167 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7168
7169 2015-05-26 Doug Evans <dje@google.com>
7170
7171 PR python/18438
7172 * python/py-lazy-string.c (stpy_convert_to_value): Use
7173 gdbpy_gdb_memory_error not PyExc_MemoryError.
7174 (gdbpy_create_lazy_string_object): Ditto.
7175
7176 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7177
7178 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7179
7180 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7181
7182 * tui/tui-regs.c (tui_reg_prev_command): New function.
7183 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7184 * reggroups.c (reggroup_prev): New function.
7185 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7186
7187 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7188 Yao Qi <yao.qi@linaro.org>
7189
7190 * aarch64-linux-tdep.c: Include linux-record.h and
7191 record-full.h.
7192 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7193 (aarch64_syscall): New enum.
7194 (aarch64_canonicalize_syscall): New function.
7195 (aarch64_all_but_pc_registers_record): New function.
7196 (aarch64_linux_syscall_record): New function.
7197 (aarch64_linux_init_abi): Install AArch64 process record
7198 handler. Update to handle syscall recording.
7199 * aarch64-tdep.c: Include record.h and record-full.h.
7200 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7201 (struct aarch64_mem_r): Define.
7202 (aarch64_record_result): New enum.
7203 (struct insn_decode_record): Define.
7204 (insn_decode_record): New typedef.
7205 (aarch64_record_data_proc_reg): New function.
7206 (aarch64_record_data_proc_imm): New function.
7207 (aarch64_record_branch_except_sys): New function.
7208 (aarch64_record_load_store): New function.
7209 (aarch64_record_data_proc_simd_fp): New function.
7210 (aarch64_record_asimd_load_store): New function.
7211 (aarch64_record_decode_insn_handler): New function.
7212 (deallocate_reg_mem): New function.
7213 (aarch64_process_record): New function.
7214 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7215 New field.
7216 (aarch64_process_record): New extern declaration.
7217 * configure.tgt: Add linux-record.o to gdb_target_obs.
7218 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7219
7220 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7221
7222 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7223 targets.
7224
7225 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7226
7227 * amd64-tdep.c: Replace in_function_epilogue_p with
7228 stack_frame_destroyed_p throughout.
7229 * arch-utils.c: Ditto.
7230 * arch-utils.h: Ditto.
7231 * arm-tdep.c: Ditto.
7232 * breakpoint.c: Ditto.
7233 * gdbarch.sh: Ditto.
7234 * hppa-tdep.c: Ditto.
7235 * i386-tdep.c: Ditto.
7236 * mips-tdep.c: Ditto.
7237 * nios2-tdep.c: Ditto.
7238 * rs6000-tdep.c: Ditto.
7239 * s390-linux-tdep.c: Ditto.
7240 * score-tdep.c: Ditto.
7241 * sh-tdep.c: Ditto.
7242 * sparc-tdep.c: Ditto.
7243 * sparc-tdep.h: Ditto.
7244 * sparc64-tdep.c: Ditto.
7245 * spu-tdep.c: Ditto.
7246 * tic6x-tdep.c: Ditto.
7247 * tilegx-tdep.c: Ditto.
7248 * xstormy16-tdep.c: Ditto.
7249 * gdbarch.c, gdbarch.h: Re-generated.
7250
7251 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7252
7253 * NEWS: Mention 'tui enable' and 'tui disable'.
7254 * tui/tui.c (tui_enable_command): New function.
7255 (tui_disable_command): New function.
7256 (_initialize_tui): New function.
7257
7258 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7259
7260 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7261
7262 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7265 buf_ptr is freed.
7266
7267 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7268
7269 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7270 into ...
7271 (tui_set_layout_for_display_command): ...here, before calling
7272 tui_set_layout. Only set the layout if gdb has not already
7273 entered the TUI_FAILURE state.
7274
7275 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7276
7277 * tui/tui-layout.c (layout_completer): New function.
7278 (_initialize_tui_layout): Set completer on layout command.
7279
7280 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7281
7282 * tui/tui-layout.c (tui_set_layout): Remove
7283 tui_register_display_type parameter. Remove all checking of this
7284 parameter, and reindent function. Update header comment.
7285 (tui_set_layout_for_display_command): Rename to...
7286 (tui_set_layout_by_name): ...this, and don't check for different
7287 register class types, don't pass a tui_register_display_type to
7288 tui_set_layout. Update header comment.
7289 (layout_names): Remove register set specific names.
7290 * tui/tui-layout.h (tui_set_layout): Remove
7291 tui_register_display_type parameter.
7292 * tui/tui.c (tui_rl_change_windows): Don't pass a
7293 tui_register_display_type to tui_set_layout.
7294 (tui_rl_delete_other_windows): Likewise.
7295 (tui_enable): Likewise.
7296 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7297 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7298 (TUI_GENERAL_REGS_NAME): Remove.
7299 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7300 (TUI_SPECIAL_REGS_NAME): Remove.
7301 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7302 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7303 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7304 (enum tui_register_display_type): Remove.
7305 (struct tui_layout_def): Remove regs_display_type and
7306 float_regs_display_type fields.
7307 (struct tui_data_info): Remove regs_display_type field.
7308 (tui_layout_command): Use new name for
7309 tui_set_layout_for_display_command.
7310 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7311 (tui_clear_win_detail): Don't initialise removed fields of
7312 win_info.
7313 * tui/tui-regs.c (tui_show_registers): Use new name for
7314 tui_set_layout_for_display_command.
7315 * tui/tui.h (tui_set_layout_for_display_command): Rename
7316 declaration to...
7317 (tui_set_layout_by_name): ...this.
7318 * printcmd.c (display_command): Remove tui related layout call,
7319 and reindent.
7320
7321 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7322
7323 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7324 (handle_inferior_event): New function.
7325
7326 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7327
7328 * ada-lang.c (to_fixed_array_type): Rename local variable
7329 typename into type_name.
7330
7331 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7332
7333 Fix ASAN crash for gdb.compile/compile.exp.
7334 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7335
7336 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7337
7338 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7339 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7340 * compile/compile-object-load.c (setup_sections, compile_object_load):
7341 Likewise.
7342 * compile/compile.c (compile_to_object): Likewise.
7343
7344 2015-05-16 Doug Evans <xdje42@gmail.com>
7345
7346 * NEWS: Mention support for unbuffered Guile memory ports.
7347 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7348 (ioscm_lseek_address): Improve overflow calculation.
7349 (gdbscm_memory_port_fill_input): Add assert.
7350 (gdbscm_memory_port_write): Handle unbuffered ports.
7351 Handle large writes identical to Guile's fport_write.
7352 (gdbscm_memory_port_seek): Fix seeking past end check.
7353 (gdbscm_memory_port_close): Handle closing unbuffered port.
7354 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7355 (ioscm_init_memory_port): Handle unbuffered ports.
7356 (ioscm_reinit_memory_port): Ditto.
7357 (ioscm_init_memory_port): Update size calculation.
7358 (gdbscm_open_memory): Support zero sized ports.
7359
7360 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7361
7362 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7363 variable compiler warnings.
7364
7365 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7366
7367 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7368
7369 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7370 Phil Muldoon <pmuldoon@redhat.com>
7371
7372 * NEWS (Changes since GDB 7.9): Add compile print.
7373 * compile/compile-c-support.c (add_code_header, add_code_footer)
7374 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7375 COMPILE_I_PRINT_VALUE_SCOPE.
7376 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7377 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7378 New.
7379 * compile/compile-object-load.c: Include block.h.
7380 (get_out_value_type): New function.
7381 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7382 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7383 OUT_VALUE_TYPE.
7384 * compile/compile-object-load.h (struct compile_module): Add fields
7385 out_value_addr and out_value_type.
7386 * compile/compile-object-run.c: Include valprint.h and compile.h.
7387 (struct do_module_cleanup): Add fields out_value_addr and
7388 out_value_type.
7389 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7390 COMPILE_I_PRINT_VALUE_SCOPE.
7391 (compile_object_run): Propagate out_value_addr and out_value_type.
7392 Pass OUT_VALUE_ADDR.
7393 * compile/compile.c: Include valprint.h.
7394 (compile_print_value, compile_print_command): New functions.
7395 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7396 (_initialize_compile): Update compile code help text. Install
7397 compile_print_command.
7398 * compile/compile.h (compile_print_value): New prototype.
7399 * defs.h (enum compile_i_scope_types): Add
7400 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7401
7402 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7403
7404 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7405 Rely on its parameter count.
7406 (compile_object_load): Replace lookup_minimal_symbol_text by
7407 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7408 return value.
7409 * compile/compile-object-load.h (struct compile_module): Replace
7410 func_addr by func_sym.
7411 * compile/compile-object-run.c: Include block.h.
7412 (compile_object_run): Reset module variable after it is freed. Use
7413 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7414
7415 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7416
7417 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7418 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7419 (c_compute_program): Call generate_register_struct after typedefs.
7420 * compile/compile-loc2c.c (push, pushf_register_address)
7421 (pushf_register): Cast to GCC_UINTPTR.
7422 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7423 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7424 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7425 * compile/compile.c (_initialize_compile): Enable warnings for
7426 COMPILE_ARGS.
7427
7428 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7429
7430 * cli/cli-script.c (execute_control_command): Update
7431 eval_compile_command caller.
7432 * compile/compile-object-load.c (compile_object_load): Add parameters
7433 scope and scope_data. Set them.
7434 * compile/compile-object-load.h (struct compile_module): Add fields
7435 scope and scope_data.
7436 (compile_object_load): Add parameters scope and scope_data.
7437 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7438 scope and scope_data.
7439 (compile_object_run): Propagate the fields scope and scope_data.
7440 * compile/compile.c (compile_file_command, compile_code_command):
7441 Update eval_compile_command callers.
7442 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7443 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7444 * defs.h (struct command_line): Add field scope_data.
7445
7446 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7447
7448 * printcmd.c (struct format_data): Move it to valprint.h.
7449 (print_command_parse_format, print_value): New functions from ...
7450 (print_command_1): ... here. Call them.
7451 * valprint.h (struct format_data): Move it here from printcmd.c.
7452 (print_command_parse_format, print_value): New declarations.
7453
7454 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7455
7456 * compile/compile-object-load.c (compile_object_load): Add
7457 COMPILE_DEBUG message.
7458
7459 2015-05-15 Jerome Guitton <guitton@adacore.com>
7460
7461 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7462 index to get element instead of enum value.
7463 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7464 of index to compute length, but enum values to compute bounds.
7465 (ada_array_length): Use enum position of index instead of enum value.
7466 (pos_atr): Move position computation to...
7467 (ada_evaluate_subexp): Use enum values to compute bounds.
7468 * gdbtypes.c (discrete_position): ...this new function.
7469 * gdbtypes.h (discrete_position): New function declaration.
7470 * valprint.c (val_print_array_elements): Call discrete_position
7471 to handle array indexed by non-contiguous enumeration types.
7472
7473 2015-05-15 Jerome Guitton <guitton@adacore.com>
7474
7475 * ada-lang.c (find_parallel_type_by_descriptive_type):
7476 Go through typedefs during lookup.
7477 (to_fixed_array_type): Add support for non-bit packed arrays
7478 as variable-length fields.
7479
7480 2015-05-15 Pedro Alves <palves@redhat.com>
7481 Simon Marchi <simon.marchi@ericsson.com>
7482
7483 * event-loop.c (gdb_notifier) <next_file_handler,
7484 next_poll_fds_index>: New fields.
7485 (get_next_file_handler_to_handle_and_advance): New function.
7486 (delete_file_handler): If deleting the next file handler to
7487 handle, advance to the next file handler.
7488 (gdb_wait_for_event): Bail early if no event fired. Poll file
7489 handlers in round-robin fashion.
7490
7491 2015-05-15 Pedro Alves <palves@redhat.com>
7492
7493 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7494 'private' to 'priv'.
7495
7496 2015-05-15 Pedro Alves <palves@redhat.com>
7497
7498 * nat/linux-nat.h: Include "target/waitstatus.h".
7499
7500 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7501
7502 * python/py-unwind.c (struct reg_info): Move out of ...
7503 (struct cached_frame_info): ... this scope.
7504 (pending_frame_object_type, unwind_info_object_type): Make extern.
7505
7506 2015-05-15 Joel Brobecker <brobecker@adacore.com>
7507
7508 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7509 accumSize is never negative.
7510
7511 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7512
7513 * tui/tui-command.c: Remove include of <ctype.h>.
7514 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7515
7516 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7517
7518 * dwarf2read.c (die_needs_namespace): Return 1 for
7519 DW_TAG_inlined_subroutine.
7520
7521 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7522
7523 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7524 (regcache_cpy_no_passthrough): Make it static, add function comment.
7525 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7526 (regcache_cpy_no_passthrough): Remove declaration.
7527
7528 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7529
7530 * gdbthread.h (struct thread_control_state): Update comment for
7531 proceed_to_finish.
7532 * infcall.c (run_inferior_call): Update comment about
7533 proceed_to_finish.
7534 * infcmd.c (get_return_value): Update comment about stop_registers.
7535 (finish_forward): Update comment about proceed_to_finish.
7536 * infrun.c (stop_registers): Remove.
7537 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7538 * infrun.h (stop_registers): Remove.
7539
7540 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7541
7542 * infcall.c (struct dummy_frame_context_saver)
7543 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7544 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7545 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7546 New.
7547 (call_function_by_hand_dummy): Move discard_cleanups of
7548 inf_status_cleanup before dummy_frame_push. Call
7549 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7550 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7551 * infcall.h (struct dummy_frame_context_saver)
7552 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7553 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7554 New declarations.
7555 * infcmd.c: Include infcall.h.
7556 (get_return_value): Add parameter ctx_saver, use it instead of
7557 stop_registers.
7558 (print_return_value): Add parameter ctx_saver, pass it.
7559 (struct finish_command_continuation_args): Add field ctx_saver.
7560 (finish_command_continuation): Update print_return_value caller.
7561 (finish_command_continuation_free_arg): Free also ctx_saver.
7562 (finish_forward): Call dummy_frame_context_saver_setup.
7563 * inferior.h (struct dummy_frame_context_saver): New declaration.
7564 (get_return_value): Add parameter ctx_saver.
7565 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7566 get_return_value caller.
7567
7568 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7569
7570 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7571 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7572 (remove_dummy_frame): Process dtor_list.
7573 (pop_dummy_frame): Process dtor_list.
7574 (register_dummy_frame_dtor): Maintain dtor_list.
7575 (find_dummy_frame_dtor): Handle dtor_list.
7576 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7577 Update comments.
7578
7579 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7580
7581 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7582 registers_valid.
7583 (compile_object_run): Update do_module_cleanup caller.
7584 * dummy-frame.c: Include infcall.h.
7585 (struct dummy_frame): Update dtor comment.
7586 (remove_dummy_frame): Call dtor.
7587 (pop_dummy_frame): Update dtor caller.
7588 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7589 registers_valid.
7590
7591 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7592
7593 GDB 7.9.1 released.
7594
7595 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7596
7597 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7598 Xmethods now being able to specify a result type to that new
7599 sectioin.
7600
7601 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7602
7603 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7604 first before resizing the window.
7605 * tui/tui.c (tui_enable): Likewise.
7606
7607 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7608
7609 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7610 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7611 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7612 dummy_dtor parameter.
7613 * infcall.h: Include dummy-frame.h.
7614 (call_function_by_hand_dummy_dtor_ftype): Remove.
7615 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7616 parameter.
7617
7618 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7619
7620 PR gdb/17820
7621 * top.c (history_size_setshow_var): Change type to signed.
7622 Initialize to -2. Update documentation.
7623 (set_readline_history_size): Define.
7624 (set_history_size_command): Use it. Remove logic for handling
7625 out-of-range sizes.
7626 (init_history): Use set_readline_history_size(). Test for a
7627 value of -2 instead of 0 when determining whether to set a
7628 default history size.
7629 (init_main): Decode the argument of the "size" command as a
7630 zuinteger_unlimited.
7631
7632 2015-05-12 Doug Evans <dje@google.com>
7633
7634 * dwarf2read.c (struct file_entry): Tweak comments.
7635 (get_debug_line_section): Tweak comments.
7636
7637 2015-05-12 Don Breazeal <donb@codesourcery.com>
7638
7639 * NEWS: Announce fork support in the RSP and support
7640 for fork debugging in extended mode.
7641
7642 2015-05-12 Don Breazeal <donb@codesourcery.com>
7643
7644 * remote.c (remote_insert_fork_catchpoint): New function.
7645 (remote_remove_fork_catchpoint): New function.
7646 (remote_insert_vfork_catchpoint): New function.
7647 (remote_remove_vfork_catchpoint): New function.
7648 (pending_fork_parent_callback): New function.
7649 (remove_new_fork_child): New function.
7650 (remote_update_thread_list): Call remote_notif_get_pending_events
7651 and remove_new_fork_child.
7652 (extended_remote_kill): Kill fork child when killing the
7653 parent before follow_fork completes.
7654 (init_extended_remote_ops): Initialize target vector with
7655 new fork catchpoint functions.
7656
7657 2015-05-12 Don Breazeal <donb@codesourcery.com>
7658
7659 * remote.c (remove_vfork_event_p): New function.
7660 (remote_follow_fork): Add vfork event type to event checking.
7661 (remote_parse_stop_reply): New stop reasons "vfork" and
7662 "vforkdone" for RSP 'T' Stop Reply Packet.
7663
7664 2015-05-12 Don Breazeal <donb@codesourcery.com>
7665
7666 * linux-nat.c (linux_nat_ptrace_options): New function.
7667 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7668 Call linux_nat_ptrace_options and use different argument to
7669 linux_enable_event_reporting.
7670 (_initialize_linux_nat): Delete call to
7671 linux_ptrace_set_additional_flags.
7672 * nat/linux-ptrace.c (current_ptrace_options): Rename to
7673 supported_ptrace_options.
7674 (additional_flags): Delete variable.
7675 (linux_check_ptrace_features): Use supported_ptrace_options.
7676 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7677 Likewise, and remove additional_flags check.
7678 (linux_enable_event_reporting): Change 'attached' argument to
7679 'options'. Use supported_ptrace_options.
7680 (ptrace_supports_feature): Change comment. Use
7681 supported_ptrace_options.
7682 (linux_ptrace_set_additional_flags): Delete function.
7683 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7684 Delete function prototype.
7685 * remote.c (remote_fork_event_p): New function.
7686 (remote_detach_pid): New function.
7687 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7688 if doing detach-on-fork.
7689 (remote_follow_fork): New function.
7690 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7691 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7692 (init_extended_remote_ops): Initialize to_follow_fork.
7693
7694 2015-05-12 Don Breazeal <donb@codesourcery.com>
7695
7696 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7697 from static to extern.
7698 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7699 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7700 * PACKET_vfork_event_feature>: New enumeration constants.
7701 (remote_protocol_features): Add table entries for new packets.
7702 (remote_query_supported): Add new feature queries to qSupported
7703 packet.
7704
7705 2015-05-12 Gary Benson <gbenson@redhat.com>
7706
7707 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7708 for fake PIDs as well as real ones.
7709 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7710
7711 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7712
7713 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7714 * python/py-value.c (valpy_reference_value): New function.
7715 (valpy_const_value): Likewise.
7716 (value_object_methods): Add new methods.
7717 * value.c (make_cv_value): New function.
7718 * value.h (make_cv_value): Declare.
7719
7720 2015-05-08 Yao Qi <yao@codesourcery.com>
7721 Sandra Loosemore <sandra@codesourcery.com>
7722
7723 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7724 to 'lh->include_dirs' before accessing to it.
7725 (psymtab_include_file_name): Likewise.
7726 (dwarf_decode_lines_1): Likewise.
7727 (dwarf_decode_lines): Likewise.
7728 (file_file_name): Likewise.
7729
7730 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7731
7732 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7733 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7734 (nios2_linux_rt_sigreturn_init): Adjust base address of
7735 register save area.
7736
7737 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7738
7739 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7740 "trap 31" as the breakpoint instruction on all targets.
7741
7742 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7743
7744 * infcmd.c (print_return_value): Remove unused declaration.
7745
7746 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7747
7748 * dwarf2read.c (attr_to_dynamic_prop)
7749 <DW_AT_data_member_location>: Use read_type_die isntead of
7750 get_die_type.
7751
7752 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7753
7754 * ada-lang.c (ada_convert_actual): Add handling of formals
7755 passed inside an aligner type.
7756
7757 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7758
7759 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7760
7761 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7762
7763 PR python/18291
7764 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7765 Print xmethod matcher status.
7766
7767 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7768
7769 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7770 register in the regcache when treating the PSWM register, and vice
7771 versa.
7772
7773 2015-05-07 Gary Benson <gbenson@redhat.com>
7774
7775 * linux-thread-db.c (struct thread_db_info)
7776 <td_ta_map_id2thr_p>: Remove field.
7777 (try_thread_db_load_1): Remove initialization for the above.
7778
7779 2015-05-07 Gary Benson <gbenson@redhat.com>
7780
7781 * linux-thread-db.c (struct thread_db_info)
7782 <td_thr_validate_p>: Remove field.
7783 (try_thread_db_load_1): Remove initialization for the above.
7784
7785 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7786
7787 * compile/compile-object-load.c (compile_object_load): Support
7788 mst_text_gnu_ifunc.
7789
7790 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7791
7792 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7793 const. Use new variables for the const compatibility.
7794 (eval_compile_command): Make the cmd_string parameter const.
7795 * compile/compile.h (eval_compile_command): Make the cmd_string
7796 parameter const.
7797
7798 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7799
7800 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7801 comment.
7802 * top.c (deprecated_init_ui_hook): Delete.
7803 (gdb_init): Remove handling of deprecated_init_ui_hook.
7804 * interps.c (clear_interpreter_hooks): Remove handling of
7805 deprecated_init_ui_hook.
7806 * main.c (captured_main): Update comment.
7807
7808 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7809
7810 * solib.c (_initialize_solib): Add "info dll" alias creation.
7811 * windows-nat.c (set_windows_aliases): Delete.
7812 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7813 assignment.
7814 * NEWS: Add news entry about "info dll" now being available
7815 on all platforms.
7816
7817 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7818
7819 * ada-lang.c (value_assign_to_component): Reformat and improve
7820 documentation. Remove all trailing spaces.
7821
7822 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7823
7824 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7825 Stop counting inlined frames as soon as an out-of-line function
7826 is found.
7827
7828 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
7829
7830 * dwarf2read.c (inherit_abstract_dies): Skip
7831 DW_TAG_GNU_call_site dies while inheriting children of an
7832 abstract DIE into a scope.
7833 (read_lexical_block_scope): Inherit abstract DIE's for
7834 lexical scopes.
7835
7836 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7837
7838 * ada-valprint.c (val_print_packed_array_elements): Delete
7839 variable "len". Add a type-length check when comparing two
7840 consecutive elements of the array. Use the element's actual
7841 length in call to value_contents_eq.
7842 * ada-lang.c (ada_value_primitive_packed_val): Always return
7843 a value whose type has been resolved.
7844
7845 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7846
7847 * ada-lang.c (ada_value_primitive_packed_val): Recompute
7848 BIT_SIZE and LEN if the size of the resolved type is smaller
7849 than BIT_SIZE * HOST_CHAR_BIT.
7850
7851 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7852
7853 * ada-lang.c (ada_value_primitive_packed_val): Use a more
7854 correct address in call to value_at. Adjust call to
7855 value_address accordingly.
7856
7857 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7858
7859 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7860 to print it.
7861
7862 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7863
7864 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7865 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7866 pinfo->valaddr.
7867 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7868 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7869 (resolve_dynamic_type_internal): Set pinfo.valaddr.
7870 Add handling of addr_stack->valaddr.
7871 (resolve_dynamic_type): Add "valaddr" parameter.
7872 Set pinfo.valaddr field.
7873 * ada-lang.c (ada_discrete_type_high_bound): Update call to
7874 resolve_dynamic_type.
7875 (ada_discrete_type_low_bound): Likewise.
7876 * findvar.c (default_read_var_value): Likewise.
7877 * value.c (value_from_contents_and_address): Likewise.
7878
7879 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7880
7881 * gdbtypes.c (resolve_dynamic_array): Use
7882 create_array_type_with_stride instead of create_array_type.
7883
7884 2015-04-30 DJ Delorie <dj@redhat.com>
7885
7886 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7887 rl78_decode_opcode
7888
7889 2015-04-29 Doug Evans <dje@google.com>
7890
7891 PR python/18285
7892 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7893 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7894 EVAL_AVOID_SIDE_EFFECTS for xmethods.
7895 * extension-priv.h (struct extension_language_ops)
7896 <get_xmethod_result_type>: New member.
7897 * extension.c (get_xmethod_result_type): New function.
7898 * extension.h (get_xmethod_result_type): Declare.
7899 * python/py-xmethods.c (get_result_type_method_name): New static
7900 global.
7901 (py_get_result_type_method_name): Ditto.
7902 (gdbpy_get_xmethod_result_type): New function.
7903 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
7904 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
7905 * python/python.c (python_extension_ops): Add
7906 gdbpy_get_xmethod_result_type.
7907 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
7908 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
7909 xmethods.
7910 (value_x_unop): Ditto.
7911 * value.c (result_type_of_xmethod): New function.
7912 * value.h (result_type_of_xmethod): Declare.
7913
7914 2015-04-29 Gary Benson <gbenson@redhat.com>
7915
7916 * solib.c (solib_find_1): Allow fd argument to be NULL.
7917 (exec_file_find): Update comment.
7918 (solib_find): Likewise.
7919 * exec.c (exec_file_locate_attach): Use NULL as fd
7920 argument to exec_file_find to avoid having to close
7921 the opened file.
7922 * infrun.c (follow_exec): Likewise.
7923
7924 2015-04-28 Doug Evans <dje@google.com>
7925
7926 PR python/18299
7927 * python/lib/gdb/printing.py (register_pretty_printer): Handle
7928 name or __name__ attributes. Handle gdb module as first argument.
7929
7930 2015-04-28 Doug Evans <dje@google.com>
7931
7932 PR python/18089
7933 * python/py-prettyprint.c (print_children): Verify result of children
7934 iterator. Provide better error message.
7935 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
7936 * python/python.c (gdbpy_print_python_errors_p): New function.
7937
7938 2015-04-28 Doug Evans <dje@google.com>
7939
7940 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
7941
7942 2015-04-28 Sasha Smundak <asmundak@google.com>
7943
7944 * NEWS: Mention gdb.Type.optimized_out method.
7945 * python/py-type.c (typy_optimized_out): New function.
7946
7947 2015-04-28 John Baldwin <jhb@FreeBSD.org>
7948
7949 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7950
7951 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7952
7953 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
7954 (initialize_utils): Move call of init_page_info() to ...
7955 * top.c (gdb_init): ... here.
7956
7957 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7958
7959 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
7960 (tui_sigwinch_handler): Still update our idea of
7961 the terminal's width and height even when TUI is not active.
7962
7963 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7964
7965 * utils.h (set_screen_width_and_height): Declare.
7966 * utils.c (set_screen_width_and_height): Define.
7967 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
7968
7969 2015-04-28 Gary Benson <gbenson@redhat.com>
7970
7971 * infrun.c (solist.h): New include.
7972 (follow_exec): Use exec_file_find to prefix execd_pathname
7973 with gdb_sysroot.
7974
7975 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7976
7977 * tui/tui-source.c (tui_set_source_content): Avoid calling
7978 strcpy() when offset is 0.
7979
7980 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7981
7982 PR gdb/18155
7983 * tui/tui-data.c (tui_free_window): Don't free the locator
7984 window when passed an SRC_WIN or a DISASSEM_WIN.
7985
7986 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7987
7988 * tui/tui-data.h (struct tui_win_element): Forward-declare.
7989 (tui_win_content): Move declaration.
7990 (struct tui_gen_win_info): Give 'content' field the
7991 type tui_win_content.
7992 * tui/tui-data.c (init_content_element): Remove redundant and
7993 erroneous casts.
7994 (tui_add_content_elements): Remove erroneous cast.
7995 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
7996 casts.
7997 (tui_get_begin_asm_address): Likewise.
7998 * tui/tui-regs.c (tui_show_registers): Likewise.
7999 (tui_show_register_group): Likewise.
8000 (tui_display_registers_from): Likewise.
8001 (tui_check_register_values): Likewise.
8002 * tui/tui-source.c (tui_set_source_content): Likewise.
8003 (tui_set_source_content_nil): Likewise.
8004 (tui_source_is_displayed): Likewise.
8005 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8006 (tui_set_locator_fullname): Likewise.
8007 (tui_set_locator_info): Likewise.
8008 (tui_show_frame_info): Likewise.
8009 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8010 (tui_show_source_line): Likewise.
8011 (tui_horizontal_source_scroll): Likewise.
8012 (tui_update_breakpoint_info): Likewise.
8013 (tui_set_exec_info_content): Likewise.
8014 (tui_show_exec_info_content): Likewise.
8015 (tui_alloc_source_buffer): Likewise.
8016 (tui_line_is_displayed): Likewise.
8017 (tui_addr_is_displayed): Likewise.
8018
8019 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8020
8021 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8022 event if PL_FLAG_EXEC is set.
8023 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8024 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8025 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8026 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8027 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8028
8029 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8030
8031 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8032 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8033 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8034 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8035 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8036 [PT_LWPINFO] (fbsd_wait): New function.
8037 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8038 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8039 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8040 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8041 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8042 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8043 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8044 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8045 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8046 "fbsd_wait".
8047 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8048 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8049 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8050 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8051 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8052 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8053 Set "to_post_attach" to "fbsd_post_attach".
8054
8055 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8056
8057 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8058 (fbsd_find_memory_regions): Mark static.
8059 (fbsd_nat_add_target): New function.
8060 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8061 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8062 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8063 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8064 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8065 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8066
8067 2015-04-27 Gary Benson <gbenson@redhat.com>
8068
8069 * objfiles.c (allocate_objfile): Do not attempt to expand name
8070 if name is a "target:" filename.
8071 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8072 to load auto-load scripts for objfiles with "target:" filenames.
8073
8074 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8075
8076 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8077 (enum s390_vector_abi_kind): New enum.
8078 (struct gdbarch_tdep)<vector_abi>: New field.
8079 (s390_effective_inner_type): Add parameter min_size. Stop
8080 unwrapping if the inner type is smaller than min_size.
8081 (s390_function_arg_float): Adjust call to
8082 s390_effective_inner_type.
8083 (s390_function_arg_vector): New function.
8084 (s390_function_arg_integer): Adjust comment.
8085 (struct s390_arg_state)<vr>: New field.
8086 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8087 arguments according to vector ABI when appropriate.
8088 (s390_push_dummy_call): Initialize the argument state's field
8089 'vr'. Adjust calls to s390_handle_arg.
8090 (s390_register_return_value): Handle vector return values.
8091 (s390_return_value): Apply the "register" return value convention
8092 to a vector when appropriate.
8093 (s390_gdbarch_init): Initialize tdep->vector_abi.
8094 * NEWS: Announce S390 vector ABI support.
8095
8096 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8097
8098 * s390-linux-tdep.c (s390_return_value_convention): Remove
8099 function. Inline its logic...
8100 (s390_return_value): ...here. Instead, move the handling of the
8101 "register" return value convention...
8102 (s390_register_return_value): ...here. New function.
8103
8104 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8105
8106 * s390-linux-tdep.c
8107 (is_float_singleton): Remove function. Move the "singleton" part
8108 of the logic...
8109 (s390_effective_inner_type): ...here. New function.
8110 (is_float_like): Remove function. Inline its logic...
8111 (s390_function_arg_float): ...here.
8112 (is_pointer_like, is_integer_like, is_struct_like): Remove
8113 functions. Inline their logic...
8114 (s390_function_arg_integer): ...here.
8115 (s390_function_arg_pass_by_reference): Remove function.
8116 (extend_simple_arg): Remove function.
8117 (alignment_of): Remove function.
8118 (struct s390_arg_state): New structure.
8119 (s390_handle_arg): New function.
8120 (s390_push_dummy_call): Move parameter placement logic to the new
8121 function s390_handle_arg. Call it for calculating the stack area
8122 sizes first, and again for actually writing the parameters.
8123
8124 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8125
8126 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8127 false if the argument is zero.
8128
8129 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8130
8131 * ada-lang.c (template_to_static_fixed_type): Return input type
8132 when it is already fixed. Cache the input type itself when not
8133 creating a static fixed copy. Make it explicit that we never
8134 molestate the input type.
8135 * gdbtypes.c (resolve_dynamic_struct): Reset the
8136 TYPE_TARGET_TYPE field for resolved copies.
8137
8138 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8139
8140 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8141 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8142 (template_to_static_fixed_type): Call ada_check_typedef only
8143 when necessary.
8144
8145 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8146
8147 * cli/cli-dump.c (srec_dump_command): Add internationalization
8148 mark ups.
8149 (ihex_dump_command): Likewise.
8150 (tekhex_dump_command): Likewise.
8151 (binary_dump_command): Likewise.
8152 (binary_append_command): Likewise.
8153
8154 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8155
8156 * cli/cli-dump.c (verilog_cmdlist): New variable.
8157 (dump_verilog_memory): New function.
8158 (dump_verilog_value): New function.
8159 (verilog_dump_command): New function.
8160 (_initialize_cli_dump): Add new commands to support verilog dump
8161 format.
8162 * NEWS: Add entry for "dump verilog".
8163
8164 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8165
8166 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8167 descriptive type when there is none.
8168
8169 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8170
8171 * tui/tui-win.c (tui_async_resize_screen): Call
8172 rl_resize_terminal().
8173
8174 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8175
8176 * windows-nat.c (handle_output_debug_string): Don't change
8177 current_event.dwThreadId.
8178 (get_windows_debug_event): Use thread_id, rather than relying on
8179 current_event.dwThreadId being changed.
8180
8181 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8182
8183 * windows-nat.c (windows_continue): Report an error if
8184 ContinueDebugEvent() fails.
8185
8186 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8187
8188 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8189
8190 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8191
8192 * windows-nat.c (get_windows_debug_event): Replace retval with
8193 thread_id throughout. Update stale comment.
8194
8195 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8196
8197 * windows-nat.c (get_windows_debug_event): Don't use ternary
8198 conditional operator.
8199
8200 2015-04-21 Pierre Muller <muller@sourceware.org>
8201
8202 PR pascal/17815
8203 p-exp.y (yylex): Reorganize code to return the matched pattern
8204 for a field of this.
8205
8206 2015-04-21 Gary Benson <gbenson@redhat.com>
8207
8208 * common/fileio.h (fileio_to_host_openflags): New declaration.
8209 * common/fileio.c (fcntl.h): New include.
8210 (fileio_to_host_openflags): New function, factored out from...
8211 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8212 Single use updated.
8213
8214 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8215
8216 * rl78-tdep.c (RL78_SP_ADDR): Define.
8217 (opc_reg_to_gdb_regnum): New static function.
8218 (rl78_analyze_prologue): Recognize instructions forming slightly
8219 more interesting prologues.
8220
8221 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8222
8223 Revert:
8224 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8225 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8226 TYPE_CODE_REF types so that they are not considered as dynamic
8227 depending on the referenced type.
8228 (resolve_dynamic_type_internal): Likewise.
8229
8230 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8231
8232 Revert:
8233 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8234 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8235 "top_level" parameter.
8236 (resolve_dynamic_type_internal): Remove the unused "top_level"
8237 parameter. Update call to is_dynamic_type_internal.
8238 (is_dynamic_type): Update call to is_dynamic_type_internal.
8239 (resolve_dynamic_range): Update call to
8240 resolve_dynamic_type_internal.
8241 (resolve_dynamic_union): Likewise.
8242 (resolve_dynamic_struct): Likewise.
8243 (resolve_dynamic_type): Likewise.
8244
8245 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8246
8247 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8248 xmalloc.
8249
8250 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8251
8252 * reply_mig_hack.awk: Robustify parsing.
8253
8254 * reply_mig_hack.awk: Don't bother to declare an intermediate
8255 function pointer variable.
8256
8257 2015-04-17 Doug Evans <dje@google.com>
8258
8259 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8260 to "exec_displacement" to avoid confusion with inner use of the name.
8261
8262 2015-04-17 Pedro Alves <palves@redhat.com>
8263
8264 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8265 if HW point of TYPE isn't supported.
8266
8267 2015-04-17 Yao Qi <yao.qi@linaro.org>
8268 Pedro Alves <palves@redhat.com>
8269
8270 * target.h (target_can_use_hardware_watchpoint): Update comments.
8271 Remove trailing ";".
8272
8273 2015-04-17 Gary Benson <gbenson@redhat.com>
8274
8275 * remote.c (remote_add_inferior): New argument try_open_exec.
8276 If nonzero, attempt to open the inferior's executable file as
8277 the main executable if no main executable is open already.
8278 All callers updated.
8279 * NEWS: Mention that GDB now supports automatic location and
8280 retrieval of executable + files from remote targets.
8281
8282 2015-04-17 Gary Benson <gbenson@redhat.com>
8283
8284 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8285 * remote.c (PACKET_qXfer_exec_file): Likewise.
8286 (remote_protocol_features): Register the
8287 "qXfer:exec-file:read" feature.
8288 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8289 (remote_pid_to_exec_file): New function.
8290 (init_remote_ops): Initialize to_pid_to_exec_file.
8291 (_initialize_remote): Register new "set/show remote
8292 pid-to-exec-file-packet" command.
8293 * NEWS: Announce new qXfer:exec-file:read packet.
8294
8295 2015-04-17 Gary Benson <gbenson@redhat.com>
8296
8297 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8298 New declaration.
8299 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8300 New function, factored out from...
8301 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8302
8303 2015-04-17 Gary Benson <gbenson@redhat.com>
8304
8305 * exec.c (solist.h): New include.
8306 (exec_file_locate_attach): Prefix absolute executable
8307 paths with gdb_sysroot if set.
8308 * NEWS: Mention that executable paths may be prepended
8309 with sysroot.
8310
8311 2015-04-17 Gary Benson <gbenson@redhat.com>
8312
8313 * solist.h (exec_file_find): New declaration.
8314 * solib.c (solib_find_1): New function, factored out from...
8315 (solib_find): ...here.
8316 (exec_file_find): New function.
8317
8318 2015-04-17 Gary Benson <gbenson@redhat.com>
8319
8320 * gdbcore.h (exec_file_locate_attach): New declaration.
8321 * exec.c (exec_file_locate_attach): New function, factored
8322 out from...
8323 * infcmd.c (attach_command_post_wait): ...here.
8324
8325 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8326
8327 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8328
8329 2015-04-16 Yao Qi <yao.qi@linaro.org>
8330
8331 * infrun.c (maybe_software_singlestep): Declare.
8332 (displaced_step_fixup): Call maybe_software_singlestep.
8333
8334 2015-04-15 Doug Evans <dje@google.com>
8335
8336 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8337
8338 2015-04-15 Doug Evans <dje@google.com>
8339
8340 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8341
8342 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8343
8344 * python/lib/gdb/command/unwinders.py: Add parentheses.
8345
8346 2015-04-15 Yao Qi <yao.qi@linaro.org>
8347
8348 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8349
8350 2015-04-15 Yao Qi <yao.qi@linaro.org>
8351
8352 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8353
8354 2015-04-15 Yao Qi <yao.qi@linaro.org>
8355
8356 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8357 dsc->insn_size instead of 4.
8358
8359 2015-04-14 Gary Benson <gbenson@redhat.com>
8360
8361 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8362 * minidebug.c (lzma_stat): Likewise.
8363 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8364 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8365
8366 2015-04-13 Stan Shebs <stanshebs@google.com>
8367
8368 * MAINTAINERS: Update my email address.
8369
8370 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8371
8372 * amd64-tdep.c (amd64_target_description): New function.
8373 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8374 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8375 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8376 x86 extended save area.
8377 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8378 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8379 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8380 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8381 "amd64fbsd_read_description".
8382 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8383 (amd64fbsd_supply_xstateregset): New function.
8384 (amd64fbsd_collect_xstateregset): New function.
8385 Add "amd64fbsd_xstateregset".
8386 (amd64fbsd_iterate_over_regset_sections): New function.
8387 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8388 "I386_FBSD_XSAVE_XCR0_OFFSET".
8389 Add "iterate_over_regset_sections" gdbarch method.
8390 Add "core_read_description" gdbarch method.
8391 * i386-tdep.c (i386_target_description): New function.
8392 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8393 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8394 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8395 x86 extended save area.
8396 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8397 * i386bsd-nat.h: Export i386bsd_xsave_len.
8398 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8399 (_initialize_i386fbsd_nat): Set "to_read_description" to
8400 "i386fbsd_read_description".
8401 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8402 (i386fbsd_core_read_description): New function.
8403 (i386fbsd_supply_xstateregset): New function.
8404 (i386fbsd_collect_xstateregset): New function.
8405 Add "i386fbsd_xstateregset".
8406 (i386fbsd_iterate_over_regset_sections): New function.
8407 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8408 "I386_FBSD_XSAVE_XCR0_OFFSET".
8409 Add "iterate_over_regset_sections" gdbarch method.
8410 Add "core_read_description" gdbarch method.
8411 * i386fbsd-tdep.h: New file.
8412
8413 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8414
8415 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8416 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8417 conditional.
8418 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8419 and lb.
8420 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8421 va.
8422 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8423 conditional.
8424 * defs.h (xdb_commands): Remove declaration.
8425 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8426 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8427 * infcmd.c (run_no_args_command, go_command): Remove.
8428 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8429 * infrun.c (xdb_handle_command): Remove.
8430 (_initialize_infrun): Remove xdb_commands for lz and z.
8431 * main.c (xdb_commands): Remove variable.
8432 (captured_main): Remove "xdb" from long_options.
8433 (print_gdb_help): Remove --xdb from help.
8434 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8435 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8436 * stack.c (backtrace_full_command, args_plus_locals_info)
8437 (current_frame_command): Remove.
8438 (_initialize_stack): Remove xdb_commands for t, T and l.
8439 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8440 * thread.c (_initialize_thread): Remove xdb_commands condition.
8441 * tui/tui-layout.c (tui_toggle_layout_command)
8442 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8443 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8444 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8445 (tui_scroll_regs_backward_command): Remove.
8446 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8447 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8448 (_initialize_tui_win): Remove xdb_commands for U and w.
8449 * utils.c (pagination_on_command, pagination_off_command): Remove.
8450 (initialize_utils): Remove xdb_commands for am and sm.
8451
8452 2015-04-10 Pedro Alves <palves@redhat.com>
8453
8454 * infrun.c (displaced_step_fixup): Switch to the event ptid
8455 earlier. If the thread stopped for a watchpoint and the
8456 target/arch has non-continuable watchpoints, cancel the displaced
8457 step.
8458 (resume): Don't start a displaced step if in-line step-over info
8459 is valid.
8460
8461 2015-04-10 Pedro Alves <palves@redhat.com>
8462
8463 * infrun.c (displaced_step_in_progress): New function.
8464 (do_target_resume): Advise target to report all signals if
8465 displaced stepping.
8466
8467 2015-04-10 Pedro Alves <palves@redhat.com>
8468
8469 PR gdb/18216
8470 * infrun.c (process_event_stop_test): Don't assume a step-resume
8471 is set if tp->stepped_breakpoint is true.
8472
8473 2015-04-10 Yao Qi <yao.qi@linaro.org>
8474
8475 * arm-tdep.c (install_alu_reg): Update comment.
8476 (thumb_copy_alu_reg): Remove local variable rn. Update
8477 debugging message. Use r2 instead of r1 in the modified
8478 instruction.
8479
8480 2015-04-10 Pedro Alves <palves@redhat.com>
8481
8482 PR gdb/13858
8483 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8484 linux_displaced_step_location as gdbarch_displaced_step_location
8485 hook.
8486 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8487 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8488 * linux-tdep.c (linux_displaced_step_location): New function,
8489 based on ppc_linux_displaced_step_location.
8490 * linux-tdep.h (linux_displaced_step_location): New declaration.
8491 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8492 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8493 Delete.
8494 (ppc_linux_init_abi): Install linux_displaced_step_location as
8495 gdbarch_displaced_step_location hook, even without Cell/B.E..
8496 (_initialize_ppc_linux_tdep): Don't install
8497 ppc_linux_inferior_created as inferior_created observer.
8498 * s390-linux-tdep.c (s390_gdbarch_init): Install
8499 linux_displaced_step_location as gdbarch_displaced_step_location
8500 hook.
8501
8502 2015-04-09 Gary Benson <gbenson@redhat.com>
8503
8504 * common/common-remote-fileio.h: Rename to...
8505 * common/fileio.h: ...this. Update all references.
8506 (remote_fileio_to_fio_error): Rename to...
8507 (host_to_fileio_error): ...this.
8508 (remote_fileio_to_be): Rename to...
8509 (host_to_bigendian): ...this. Update all callers.
8510 (remote_fileio_to_fio_uint): Rename to...
8511 (host_to_fileio_uint): ...this. Update all callers.
8512 (remote_fileio_to_fio_time): Rename to...
8513 (host_to_fileio_time): ...this. Update all callers.
8514 (remote_fileio_to_fio_stat): Rename to...
8515 (host_to_fileio_stat): ...this.
8516 Update all references.
8517 * common/common-remote-fileio.c: Rename to...
8518 * common/fileio.c: ...this. Update all references.
8519 (remote_fileio_to_fio_error): Rename to...
8520 (host_to_fileio_error): ...this. Update all callers.
8521 (remote_fileio_mode_to_target): Rename to...
8522 (fileio_mode_pack): ...this. Update all callers.
8523 (remote_fileio_to_fio_mode): Rename to...
8524 (host_to_fileio_mode): ...this. Update all callers.
8525 (remote_fileio_to_fio_ulong): Rename to...
8526 (host_to_fileio_ulong): ...this. Update all callers.
8527 (remote_fileio_to_fio_stat): Rename to...
8528 (host_to_fileio_stat): ...this. Update all callers.
8529
8530 2015-04-09 Andy Wingo <wingo@igalia.com>
8531
8532 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8533 (frame_functions): Bind gdbscm_frame_read_register to
8534 frame-read-register.
8535 * guile/lib/gdb.scm (frame-read-register): Export.
8536
8537 2015-04-09 Gary Benson <gbenson@redhat.com>
8538
8539 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8540 New declaration.
8541 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8542 New function, factored out the named functions below.
8543 * inf-child.c (gdb/fileio.h): Remove include.
8544 (common-remote-fileio.h): New include.
8545 (inf_child_errno_to_fileio_error): Remove function. Update
8546 all callers to use remote_fileio_to_fio_error.
8547 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8548
8549 2015-04-09 Andy Wingo <wingo@igalia.com>
8550
8551 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8552
8553 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8554
8555 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8556 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8557 * configure: Regenerated.
8558
8559 2015-04-09 Pedro Alves <palves@redhat.com>
8560
8561 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8562 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8563 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8564 * gnulib/import/Makefile.am: Update.
8565 * gnulib/import/Makefile.in: Update.
8566 * gnulib/import/m4/gnulib-cache.m4: Update.
8567 * gnulib/import/m4/gnulib-comp.m4: Update.
8568 * gnulib/import/m4/strtok_r.m4: New file.
8569 * gnulib/import/strtok_r.c: New file.
8570
8571 2015-04-09 Pedro Alves <palves@redhat.com>
8572
8573 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8574 "called too early to check prototype".
8575
8576 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8577
8578 PR python/16699
8579 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8580 use a caching mechanism. Adjust comments and code to reflect
8581 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8582 (cmdpy_completer_handle_brkchars): Adjust call to
8583 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8584 (cmdpy_completer): Likewise.
8585
8586 2015-04-08 Yao Qi <yao.qi@linaro.org>
8587
8588 * spu-tdep.c (spu_gdbarch_init): Don't call
8589 set_gdbarch_cannot_step_breakpoint.
8590
8591 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8592
8593 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8594
8595 2015-04-07 Pedro Alves <palves@redhat.com>
8596
8597 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8598 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8599 (delete_exited_threads): New declaration.
8600 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8601 * linux-nat.c (linux_nat_update_thread_list): New function.
8602 (linux_nat_add_target): Install it.
8603 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8604 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8605 (delete_exited_threads): New function.
8606
8607 2015-04-07 Pedro Alves <pedro@codesourcery.com>
8608
8609 * infrun.c (resume) <displaced stepping debug output>: Get the
8610 leader thread's regcache, not resume_ptid's.
8611
8612 2015-04-06 Doug Evans <xdje42@gmail.com>
8613
8614 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8615 VAR_DOMAIN.
8616 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8617 Include symbol domain in debugging output.
8618
8619 2015-04-06 Pedro Alves <palves@redhat.com>
8620 Bernd Edlinger <bernd.edlinger@hotmail.de>
8621
8622 * configure.ac: Remove the mingw32-specific stub-termcap.o
8623 fallback, and instead fallback to the stub termcap on all hosts.
8624 * configure: Regenerate.
8625 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8626 symbols.
8627
8628 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8629
8630 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8631 "top_level" parameter.
8632 (resolve_dynamic_type_internal): Remove the unused "top_level"
8633 parameter. Update call to is_dynamic_type_internal.
8634 (is_dynamic_type): Update call to is_dynamic_type_internal.
8635 (resolve_dynamic_range): Update call to
8636 resolve_dynamic_type_internal.
8637 (resolve_dynamic_union): Likewise.
8638 (resolve_dynamic_struct): Likewise.
8639 (resolve_dynamic_type): Likewise.
8640
8641 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8642
8643 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8644 TYPE_CODE_REF types so that they are not considered as dynamic
8645 depending on the referenced type.
8646 (resolve_dynamic_type_internal): Likewise.
8647
8648 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8649
8650 * Makefile.in (top_srcdir): New.
8651 * configure: Regenerated.
8652
8653 2015-04-02 Gary Benson <gbenson@redhat.com>
8654
8655 * NEWS: Announce the new default sysroot of "target:".
8656
8657 2015-04-02 Gary Benson <gbenson@redhat.com>
8658
8659 * main.c (captured_main): Set gdb_sysroot to "target:"
8660 if not otherwise set.
8661
8662 2015-04-02 Gary Benson <gbenson@redhat.com>
8663
8664 * exec.c (exec_file_attach): Support "target:" filenames.
8665
8666 2015-04-02 Gary Benson <gbenson@redhat.com>
8667
8668 * solib.c (solib_find): Strip "target:" prefix from sysroot
8669 if accessing local files.
8670
8671 2015-04-02 Gary Benson <gbenson@redhat.com>
8672
8673 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8674 checks and error messages.
8675
8676 2015-04-02 Gary Benson <gbenson@redhat.com>
8677
8678 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8679 (remote_filename_p): Remove declaration.
8680 (remote_bfd_open): Likewise.
8681 * remote.c (remote_bfd_iovec_open): Remove function.
8682 (remote_bfd_iovec_close): Likewise.
8683 (remote_bfd_iovec_pread): Likewise.
8684 (remote_bfd_iovec_stat): Likewise.
8685 (remote_filename_p): Likewise.
8686 (remote_bfd_open): Likewise.
8687 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8688 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8689 (gdb_bfd_open_maybe_remote): Remove function.
8690 (symfile_bfd_open): Replace remote filename check with
8691 target filename check.
8692 (reread_symbols): Use gdb_bfd_open.
8693 * build-id.c (gdbcore.h): New include.
8694 (build_id_to_debug_bfd): Use gdb_bfd_open.
8695 * infcmd.c (attach_command_post_wait): Remove remote filename
8696 check.
8697 * solib.c (solib_find): Replace remote-specific handling with
8698 target-specific handling. Update comments where necessary.
8699 (solib_bfd_open): Replace remote-specific handling with
8700 target-specific handling.
8701 (gdb_sysroot_changed): New function.
8702 (_initialize_solib): Call the above when gdb_sysroot changes.
8703 * windows-tdep.c (gdbcore.h): New include.
8704 (windows_xfer_shared_library): Use gdb_bfd_open.
8705
8706 2015-04-02 Gary Benson <gbenson@redhat.com>
8707
8708 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8709 (is_target_filename): New declaration.
8710 (gdb_bfd_has_target_filename): Likewise.
8711 (gdb_bfd_open): Update documentation comment.
8712 * gdb_bfd.c (target.h): New include.
8713 (gdb/fileio.h): Likewise.
8714 (is_target_filename): New function.
8715 (gdb_bfd_has_target_filename): Likewise.
8716 (fileio_errno_to_host): Likewise.
8717 (gdb_bfd_iovec_fileio_open): Likewise.
8718 (gdb_bfd_iovec_fileio_pread): Likewise.
8719 (gdb_bfd_iovec_fileio_close): Likewise.
8720 (gdb_bfd_iovec_fileio_fstat): Likewise.
8721 (gdb_bfd_open): Use target fileio to access paths prefixed
8722 with "target:" where necessary.
8723
8724 2015-04-02 Gary Benson <gbenson@redhat.com>
8725
8726 * target.h (struct target_ops) <to_filesystem_is_local>:
8727 New field.
8728 (target_filesystem_is_local): New macro.
8729 * target-delegates.c: Regenerate.
8730 * remote.c (remote_filesystem_is_local): New function.
8731 (init_remote_ops): Initialize to_filesystem_is_local.
8732
8733 2015-04-02 Gary Benson <gbenson@redhat.com>
8734
8735 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8736 (target_fileio_fstat): New declaration.
8737 * target.c (target_fileio_fstat): New function.
8738 * inf-child.c (inf_child_fileio_fstat): Likewise.
8739 (inf_child_target): Initialize to_fileio_fstat.
8740 * remote.c (init_remote_ops): Likewise.
8741
8742 2015-04-01 Sasha Smundak <asmundak@google.com>
8743
8744 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8745 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8746 (py-unwind.o): New recipe.
8747 * NEWS: mention Python frame unwinding.
8748 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8749 gdb/unwinder.py and gdb/command/unwinder.py
8750 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8751 list.
8752 (execute_unwinders): New function.
8753 * python/lib/gdb/command/unwinders.py: New file.
8754 * python/lib/gdb/unwinder.py: New file.
8755 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8756 (objfpy_dealloc): Decrement frame_unwinders reference count.
8757 (objfpy_initialize): Create frame_unwinders list.
8758 (objfpy_get_frame_unwinders): New function.
8759 (objfpy_set_frame_unwinders): Ditto.
8760 (objfile_getset): Add frame_unwinders attribute to Objfile.
8761 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8762 (pspy_dealloc): Decrement frame_unwinders reference count.
8763 (pspy_initialize): Create frame_unwinders list.
8764 (pspy_get_frame_unwinders): New function.
8765 (pspy_set_frame_unwinders): Ditto.
8766 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8767 * python/py-unwind.c: New file.
8768 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8769 (objpy_get_frame_unwinders): New prototype.
8770 (gdbpy_initialize_unwind): New prototype.
8771 * python/python.c (gdbpy_apply_type_printers): Call
8772 gdbpy_initialize_unwind.
8773
8774 2015-04-01 Pedro Alves <palves@redhat.com>
8775
8776 * infrun.c (resume): Check currently_stepping after clearing
8777 stepped_breakpoint, not before.
8778
8779 2015-04-01 Pedro Alves <palves@redhat.com>
8780
8781 * infrun.c (print_target_wait_results): Print all the ptid
8782 elements.
8783
8784 2015-04-01 Pedro Alves <palves@redhat.com>
8785
8786 * infrun.c (keep_going): Also discard cleanups if inserting
8787 breakpoints fails.
8788
8789 2015-04-01 Pedro Alves <palves@redhat.com>
8790
8791 * infrun.c (wait_for_inferior): Install the
8792 finish_thread_state_cleanup cleanup across the whole function, not
8793 just around handle_inferior_event.
8794
8795 2015-04-01 Pedro Alves <palves@redhat.com>
8796
8797 * infrun.c (resume) <step past permanent breakpoint>: Use
8798 do_target_resume.
8799
8800 2015-04-01 Pedro Alves <palves@redhat.com>
8801
8802 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8803
8804 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8805
8806 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8807
8808 2015-04-01 Pedro Alves <palves@redhat.com>
8809
8810 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8811 list if it was marked exited.
8812
8813 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8814
8815 * configure: Regenerated.
8816
8817 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8818 Jan Kratochvil <jan.kratochvil@redhat.com>
8819 Oleg Nesterov <oleg@redhat.com>
8820
8821 PR corefiles/16092
8822 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8823 New enum identifying the various options of the coredump_filter
8824 file.
8825 (struct smaps_vmflags): New struct.
8826 (use_coredump_filter): New variable.
8827 (decode_vmflags): New function.
8828 (mapping_is_anonymous_p): Likewise.
8829 (dump_mapping_p): Likewise.
8830 (linux_find_memory_regions_full): New variables
8831 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8832 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
8833 parsing of its information. Implement memory mapping filtering
8834 based on its contents.
8835 (show_use_coredump_filter): New function.
8836 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8837 * NEWS: Mention the possibility of using the
8838 '/proc/PID/coredump_filter' file when generating a corefile.
8839 Mention new command 'set use-coredump-filter'.
8840
8841 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8842
8843 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8844 read_memory_unsigned_integer.
8845
8846 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
8847
8848 * Makefile.in (ZLIB): New.
8849 (ZLIBINC): Likewise.
8850 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8851 (CLIBS): Add $(ZLIB).
8852 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8853 Add -lz to LIBS.
8854 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8855 * top.c (print_gdb_configuration): Remove --with-zlib and
8856 --without-zlib.
8857 * config.in: Regenerated.
8858 * configure: Likewise.
8859
8860 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8861
8862 * NEWS: Mention info os cpus support.
8863 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8864 (struct osdata_type): Add cpus entry, reorder the entries in
8865 alphabetical order.
8866
8867 2015-03-31 Matthias Klose <doko@ubuntu.com>
8868
8869 * compile/compile.c (compile_to_object): Allow triplets with or
8870 without vendor set.
8871
8872 2015-03-30 Doug Evans <dje@google.com>
8873
8874 PR c++/18141
8875 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8876 klass in VAR_DOMAIN.
8877
8878 2015-03-30 Gary Benson <gbenson@redhat.com>
8879
8880 * remote.c (remote_mourn_1): Remove function. Update all callers
8881 to use remote_mourn.
8882 (extended_remote_mourn_1): Remove function. Update all callers
8883 to use extended_remote_mourn.
8884 (extended_remote_attach_1): Remove function. Update all callers
8885 to use extended_remote_attach.
8886
8887 2015-03-28 James Bowman <james.bowman@ftdichip.com>
8888
8889 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8890 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8891 (ALLDEPFILES): Add ft32-tdep.c.
8892 * configure.tgt: Add FT32 entry.
8893 * ft32-tdep.c: New file, FT32 target-dependent code.
8894 * ft32-tdep.h: New file, FT32 target-dependent code.
8895
8896 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8897
8898 Revert:
8899 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8900 Code cleanup.
8901 * printcmd.c (print_command_1): Move expr variable scope.
8902
8903 2015-03-27 Joel Brobecker <brobecker@adacore.com>
8904
8905 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
8906
8907 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
8908
8909 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
8910 sections.
8911
8912 2015-03-26 Joel Brobecker <brobecker@adacore.com>
8913
8914 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
8915 exception raised while parsing the probe arguments.
8916 Force parsing to be done using the C language parser.
8917 * expression.h (parse_expression_with_language): Declare.
8918 * parse.c (parse_expression_with_language): New function.
8919
8920 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
8921
8922 * MAINTAINERS (Write After Approval): Add "Jon Turney".
8923
8924 2015-03-26 Andy Wingo <wingo@igalia.com>
8925
8926 PR symtab/18148
8927 * dwarf2read.c (struct partial_die_info): Add has_const_value
8928 member.
8929 (add_partial_symbol): Don't punt on symbols that have const_value
8930 attributes.
8931 (read_partial_die): Detect DW_AT_const_value.
8932
8933 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8934
8935 Code cleanup.
8936 * printcmd.c (print_command_1): Move expr variable scope.
8937
8938 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8939
8940 Code cleanup.
8941 * printcmd.c (validate_format): Make the parameter cmdname const.
8942
8943 2015-03-26 Don Breazeal <donb@codesourcery.com>
8944
8945 * remote.c (_initialize_remote): Update comment.
8946
8947 2015-03-26 Pedro Alves <palves@redhat.com>
8948 Jon TURNEY <jon.turney@dronecode.org.uk>
8949
8950 * coffread.c (coff_symfile_read): When constructing the name of an
8951 import stub symbol from import symbol for amd64, only skip the
8952 char after _imp_ if the target is underscored (like i386) and the
8953 char is indeed the target's leading char.
8954
8955 2015-03-25 Pedro Alves <palves@redhat.com>
8956
8957 * target.h <to_async>: Replace 'callback' and 'context' parameters
8958 with boolean 'enable' parameter.
8959 (target_async): Replace CALLBACK and CONTEXT parameters with
8960 boolean ENABLE parameter.
8961 * inf-loop.c (inferior_event_handler): Adjust.
8962 * linux-nat.c (linux_nat_attach, linux_nat_resume)
8963 (linux_nat_resume): Adjust.
8964 (async_client_callback, async_client_context): Delete.
8965 (handle_target_event): Call inferior_event_handler directly.
8966 (linux_nat_async): Replace 'callback' and 'context' parameters
8967 with boolean 'enable' parameter. Adjust. Remove references to
8968 async_client_callback and async_client_context.
8969 (linux_nat_close): Adjust.
8970 * record-btrace.c (record_btrace_async): Replace 'callback' and
8971 'context' parameters with boolean 'enable' parameter. Adjust.
8972 (record_btrace_resume): Adjust.
8973 * record-full.c (record_full_async): Replace 'callback' and
8974 'context' parameters with boolean 'enable' parameter. Adjust.
8975 (record_full_resume, record_full_core_resume): Adjust.
8976 * remote.c (struct remote_state) <async_client_callback,
8977 async_client_context>: Delete fields.
8978 (remote_start_remote, extended_remote_attach_1, remote_resume)
8979 (extended_remote_create_inferior): Adjust.
8980 (remote_async_serial_handler): Call inferior_event_handler
8981 directly.
8982 (remote_async): Replace 'callback' and 'context' parameters with
8983 boolean 'enable' parameter. Adjust.
8984 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
8985 Adjust.
8986 * target-delegates.c: Regenerate.
8987
8988 2015-03-25 Gary Benson <gbenson@redhat.com>
8989 Pedro Alves <palves@redhat.com>
8990
8991 * target.c (fileio_ft_t): New typedef, define object vector.
8992 (fileio_fhandles): New static variable.
8993 (is_closed_fileio_fh): New macro.
8994 (lowest_closed_fd): New static variable.
8995 (acquire_fileio_fd): New function.
8996 (release_fileio_fd): Likewise.
8997 (fileio_fd_to_fh): New macro.
8998 (target_fileio_open): Wrap the file descriptor on success.
8999 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9000 (target_fileio_pread): Likewise.
9001 (target_fileio_close): Likewise.
9002
9003 2015-03-24 Pedro Alves <palves@redhat.com>
9004
9005 * thread.c (thread_apply_all_command): Take exited threads into
9006 account.
9007
9008 2015-03-24 Pedro Alves <palves@redhat.com>
9009
9010 * infrun.c (resume, proceed): Mention
9011 switch_back_to_stepped_thread, not switch_back_to_stepping.
9012
9013 2015-03-24 Pedro Alves <palves@redhat.com>
9014
9015 * infrun.c (user_visible_resume_ptid): Rewrite going from
9016 most-locked to unlocked instead of the opposite. Move comment ...
9017 * infrun.h (user_visible_resume_ptid): ... here.
9018
9019 2015-03-24 Pedro Alves <palves@redhat.com>
9020
9021 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9022 to resume the event lwp. Use the lwp's ptid instead of the passed
9023 in (maybe wildcard) ptid.
9024 (stop_wait_callback): Tweak debug log output.
9025 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9026 TRAP_TRACE.
9027 (linux_nat_filter_event): In debug output, distinguish a
9028 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9029 before trying to resume the lwp.
9030
9031 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9032
9033 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9034 pointer indirection.
9035 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9036 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9037
9038 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9039
9040 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9041 Renames DYN_ATTR_DATA_LOCATION.
9042 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9043 DYN_ATTR_DATA_LOCATION.
9044 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9045 instead of DYN_ATTR_DATA_LOCATION.
9046
9047 2015-03-24 Pedro Alves <palves@redhat.com>
9048
9049 * breakpoint.c (until_break_command): Adjust call to proceed.
9050 * gdbthread.h (struct thread_control_state) <stepping_command>:
9051 New field.
9052 * infcall.c (run_inferior_call): Adjust call to proceed.
9053 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9054 Adjust calls to proceed.
9055 (set_step_frame): Set the current thread's step_start_function
9056 here.
9057 (step_once): Adjust calls to proceed.
9058 (jump_command, signal_command, until_next_command)
9059 (finish_backward, finish_forward, proceed_after_attach_callback)
9060 (attach_command_post_wait): Adjust calls to proceed.
9061 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9062 (do_target_resume): New function, factored out from ...
9063 (resume): ... here. Remove 'step' parameter. Instead, check
9064 currently_stepping to determine whether the thread should be
9065 single-stepped.
9066 (proceed): Remove 'step' parameter and don't set the thread's
9067 step_start_function here. Adjust call to 'resume'.
9068 (handle_inferior_event): Adjust calls to 'resume'.
9069 (switch_back_to_stepped_thread): Use do_target_resume instead of
9070 'resume'.
9071 (keep_going): Adjust calls to 'resume'.
9072 * infrun.h (proceed): Remove 'step' parameter.
9073 (resume): Likewise.
9074 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9075 'resume'.
9076 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9077
9078 2015-03-24 Pedro Alves <palves@redhat.com>
9079
9080 * gdbthread.h (struct thread_control_state) <stepping_command>:
9081 New field.
9082 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9083 the thread's stepping_command field.
9084 * infrun.c (resume): Check the thread's stepping_command flag to
9085 determine which threads should be resumed. Rename 'entry_step'
9086 local to user_step.
9087 (clear_proceed_status_thread): Clear 'stepping_command'.
9088 (schedlock_applies): Change parameter type to struct thread_info
9089 pointer. Adjust.
9090 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9091 (switch_back_to_stepped_thread): Adjust calls to
9092 'schedlock_applies'.
9093 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9094
9095 2015-03-24 Pedro Alves <palves@redhat.com>
9096
9097 * infrun.c (step_start_function): Delete and ...
9098 * gdbthread.h (struct thread_control_state) <step_start_function>:
9099 ... now a field here.
9100 * infrun.c (clear_proceed_status_thread): Clear the thread's
9101 step_start_function.
9102 (proceed, process_event_stop_test, print_stop_event): Adjust.
9103
9104 2015-03-24 Pedro Alves <palves@redhat.com>
9105
9106 * infrun.c (proceed): No longer handle negative step.
9107
9108 2015-03-24 Gary Benson <gbenson@redhat.com>
9109
9110 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9111 (x86_linux_prepare_to_resume): Likewise.
9112 * x86-linux-nat.c (x86_linux_new_thread):
9113 Moved to nat/x86-linux.c.
9114 (x86_linux_prepare_to_resume): Likewise.
9115 * nat/x86-linux.c (x86_linux_new_thread): New function.
9116 (x86_linux_prepare_to_resume): Likewise.
9117
9118 2015-03-24 Gary Benson <gbenson@redhat.com>
9119
9120 * nat/x86-linux-dregs.h: New file.
9121 * nat/x86-linux-dregs.c: Likewise.
9122 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9123 (x86-linux-dregs.o): New rule.
9124 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9125 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9126 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9127 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9128 (x86_linux_dr_get): Likewise.
9129 (x86_linux_dr_set): Likewise.
9130 (x86_linux_dr_get_addr): Likewise.
9131 (x86_linux_dr_get_control): Likewise.
9132 (x86_linux_dr_get_status): Likewise.
9133 (update_debug_registers_callback): Likewise.
9134 (x86_linux_dr_set_control): Likewise.
9135 (x86_linux_dr_set_addr): Likewise.
9136 (x86_linux_update_debug_registers): Likewise.
9137
9138 2015-03-24 Gary Benson <gbenson@redhat.com>
9139
9140 * x86-linux-nat.c (x86_linux_update_debug_registers):
9141 New function, factored out from...
9142 (x86_linux_prepare_to_resume): ...this.
9143
9144 2015-03-24 Gary Benson <gbenson@redhat.com>
9145
9146 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9147 (x86_linux_dr_set): Likewise.
9148 (x86_linux_dr_get_addr): Likewise.
9149 (x86_linux_dr_get_control): Likewise.
9150 (x86_linux_dr_get_status): Likewise.
9151 (update_debug_registers_callback): Likewise.
9152 (x86_linux_dr_set_control): Likewise.
9153 (x86_linux_dr_set_addr): Likewise.
9154 (x86_linux_prepare_to_resume): Likewise.
9155 (x86_linux_new_thread): Likewise.
9156
9157 2015-03-24 Gary Benson <gbenson@redhat.com>
9158
9159 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9160 (x86_linux_new_thread): Rename argument.
9161
9162 2015-03-24 Gary Benson <gbenson@redhat.com>
9163
9164 * nat/x86-linux.h: New file.
9165 * nat/x86-linux.c: Likewise.
9166 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9167 (x86-linux.o): New rule.
9168 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9169 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9170 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9171 (lwp_set_arch_private_info): New declaration.
9172 (lwp_arch_private_info): Likewise.
9173 * linux-nat.c (lwp_set_arch_private_info): New function.
9174 (lwp_arch_private_info): Likewise.
9175 * x86-linux-nat.c: Include nat/x86-linux.h.
9176 (arch_lwp_info): Removed structure.
9177 (update_debug_registers_callback):
9178 Use lwp_set_debug_registers_changed.
9179 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9180 and lwp_set_debug_registers_changed.
9181 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9182
9183 2015-03-24 Gary Benson <gbenson@redhat.com>
9184
9185 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9186 (lwp_is_stopped): Likewise.
9187 (lwp_stop_reason): Likewise.
9188 * linux-nat.c (ptid_of_lwp): New function.
9189 (lwp_is_stopped): Likewise.
9190 (lwp_is_stopped_by_watchpoint): Likewise.
9191 * x86-linux-nat.c (update_debug_registers_callback):
9192 Use lwp_is_stopped.
9193 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9194 lwp_stop_reason.
9195
9196 2015-03-24 Gary Benson <gbenson@redhat.com>
9197
9198 * linux-nat.h (linux_stop_lwp): Move declaration to...
9199 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9200
9201 2015-03-24 Gary Benson <gbenson@redhat.com>
9202
9203 * linux-nat.h: Include nat/linux-nat.h.
9204 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9205 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9206 (iterate_over_lwps_ftype): New typedef.
9207 (iterate_over_lwps): New declaration.
9208 * linux-nat.h (iterate_over_lwps): Update comment. Use
9209 iterate_over_lwps_ftype. Update callback return value check.
9210
9211 2015-03-24 Gary Benson <gbenson@redhat.com>
9212
9213 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9214 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9215
9216 2015-03-24 Gary Benson <gbenson@redhat.com>
9217
9218 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9219 * linux-nat.c (current_lwp_ptid): New function.
9220 * x86-linux-nat.c: Include nat/linux-nat.h.
9221 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9222 (x86_linux_dr_get_control): Likewise.
9223 (x86_linux_dr_get_status): Likewise.
9224 (x86_linux_dr_set_control): Likewise.
9225 (x86_linux_dr_set_addr): Likewise.
9226
9227 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9228
9229 PR breakpoints/16466
9230 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9231
9232 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9233
9234 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9235 * ser-unix.c (hardwire_setparity): Likewise.
9236
9237 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9238
9239 * NEWS: Mention set/show serial parity command.
9240 * monitor.c (monitor_open): Call serial_setparity.
9241 * remote.c (remote_open_1): Likewise.
9242 * ser-base.c (ser_base_serparity): New function.
9243 * ser-base.h (ser_base_setparity): Add declaration.
9244 * ser-go32.c (dos_ops): Set "setparity" field.
9245 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9246 state.Parity.
9247 (ser_windows_setparity): New function.
9248 (hardwire_ops): Add ser_windows_setparity.
9249 (tty_ops): Add NULL for setparity field.
9250 (pipe_ops): Add ser_base_setparity.
9251 (tcp_ops): Likewise.
9252 * ser-pipe.c (pipe_ops): Likewise.
9253 * ser-tcp.c (tcp_ops): Likewise.
9254 * ser-unix.c (hardwire_setparity): Add declaration.
9255 (hardwire_raw): Don't reset PARENB flag.
9256 (hardwire_setparity): New function.
9257 (hardwire_ops): Add hardwire_setparity.
9258 * serial.c (serial_setparity): New function.
9259 (serial_parity): New global.
9260 (parity_none, parity_odd, parity_even, parity_enums, parity):
9261 New static globals.
9262 (set_parity): New function.
9263 (_initialize_serial): Add set/show serial parity commands.
9264 * serial.h (GDBPARITY_NONE): Define.
9265 (GDBPARITY_ODD): Define.
9266 (GDBPARITY_EVEN): Define.
9267 (serial_setparity) Add declaration.
9268 (struct serial_ops): Add setparity field.
9269 * target.h (serial_parity): Add declaration.
9270
9271 2015-03-23 Keith Seitz <keiths@redhat.com>
9272
9273 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9274
9275 2015-03-23 Keith Seitz <keiths@redhat.com>
9276
9277 * breakpoint.c (parse_breakpoint_sals): Use
9278 linespec_lexer_lex_keyword to ascertain if the user specified
9279 a NULL location.
9280 * linespec.c [IF_KEYWORD_INDEX]: Define.
9281 (linespec_lexer_lex_keyword): Export.
9282 (struct ls_parser) <keyword_ok>: Remove.
9283 A keyword is only a keyword if not followed by another keyword.
9284 (linespec_lexer_lex_one): Remove keyword_ok handling.
9285 Add comment explaining why the parsing stream is not advanced
9286 when a keyword is seen.
9287 (parse_linespec): Remove parser->keyword_ok.
9288 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9289
9290 2015-03-23 Keith Seitz <keiths@redhat.com>
9291
9292 PR gdb/18021
9293 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9294 if we find a static method with DW_AT_vtable_elem_location.
9295
9296 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9297
9298 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9299 before the second loop, to avoid undefined behavior. Reported by
9300 Anton Blanchard <anton@samba.org>.
9301
9302 2015-03-20 Keven Boell <keven.boell@intel.com>
9303
9304 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9305 data_location usage to linked list.
9306 (resolve_dynamic_type_internal): Adapt data_location to
9307 linked list.
9308 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9309 (copy_type_recursive, copy_type): Add copy of linked list.
9310 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9311 (struct dynamic_prop_list): New struct.
9312 * dwarf2read.c (set_die_type): Set data_location data.
9313
9314 2015-03-20 Pedro Alves <palves@redhat.com>
9315
9316 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9317 inner block and make it const.
9318 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9319
9320 2015-03-20 Pedro Alves <palves@redhat.com>
9321
9322 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9323 * breakpoint.h (set_breakpoint_condition): Update declaration.
9324
9325 2015-03-20 Pedro Alves <palves@redhat.com>
9326
9327 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9328
9329 2015-03-20 Pedro Alves <palves@redhat.com>
9330
9331 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9332
9333 2015-03-20 Pedro Alves <palves@redhat.com>
9334
9335 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9336
9337 2015-03-20 Pedro Alves <palves@redhat.com>
9338
9339 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9340 (nto_init_solib_absolute_prefix): Likewise.
9341
9342 2015-03-20 Pedro Alves <palves@redhat.com>
9343
9344 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9345 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9346
9347 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9348
9349 * config/djgpp/README: Remove gdb.hp.
9350
9351 2015-03-20 Yao Qi <yao.qi@linaro.org>
9352
9353 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9354 set_gdbarch_cannot_step_breakpoint.
9355
9356 2015-03-19 Pedro Alves <palves@redhat.com>
9357
9358 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9359 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9360 instead call perror_with_name.
9361 (check_ptrace_stopped_lwp_gone): New function.
9362 (linux_resume_one_lwp): Reimplement as wrapper around
9363 linux_resume_one_lwp_throw that swallows errors if the LWP is
9364 gone.
9365 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9366 swallows errors if the LWP is gone. Use
9367 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9368
9369 2015-03-19 Pedro Alves <palves@redhat.com>
9370
9371 * linux-nat.c (status_callback): Return early if the LWP has no
9372 status pending.
9373
9374 2015-03-19 Pedro Alves <palves@redhat.com>
9375
9376 * linux-nat.c (select_event_lwp_callback): Update comment to no
9377 longer mention SIGTRAP.
9378
9379 2015-03-18 Tristan Gingold <gingold@adacore.com>
9380
9381 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9382 redirection code to ...
9383 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9384 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9385
9386 2015-03-18 Gary Benson <gbenson@redhat.com>
9387
9388 (remote_protocol_features): Remove the "vFile:fstat" feature.
9389 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9390
9391 2015-03-11 Yao Qi <yao.qi@linaro.org>
9392
9393 PR tdep/18107
9394 * aarch64-linux-tdep.c: Include xml-syscall.h
9395 (aarch64_linux_get_syscall_number): New function.
9396 (aarch64_linux_init_abi): Call
9397 set_gdbarch_get_syscall_number.
9398 * syscalls/aarch64-linux.xml: New file.
9399
9400 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9401
9402 * ser-base.h (ser_base_setstopbits): Change second argument name
9403 from "rate" to "num".
9404
9405 2015-03-17 Gary Benson <gbenson@redhat.com>
9406 Luke Allardyce <lukeallardyce@gmail.com>
9407
9408 PR gdb/18131
9409 * common/common-remote-fileio.h (sys/stat.h): New include.
9410 (stuct stat): Remove forward declaration.
9411
9412 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9413
9414 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9415 before writing core register notes.
9416
9417 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9418 Pedro Alves <palves@redhat.com>
9419
9420 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9421 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9422 (tgoto): Wrap with extern "C".
9423
9424 2015-03-16 Pedro Alves <palves@redhat.com>
9425 Yuanhui Zhang <asmwarrior@gmail.com>
9426
9427 * stub-termcap.c (tputs): Change prototype.
9428
9429 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9430 Pedro Alves <palves@redhat.com>
9431
9432 * windows-nat.c (struct thread_info_struct): Rename to ...
9433 (struct windows_thread_info_struct): ... this.
9434 (thread_info): Rename to ...
9435 (windows_thread_info): ... this.
9436 All users updated.
9437
9438 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9439 Pedro Alves <palves@redhat.com>
9440
9441 * NEWS: New Removed targets and native configurations.
9442
9443 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9444
9445 Remove HPUX.
9446 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9447 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9448 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9449 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9450 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9451 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9452 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9453 hppa-hpux-tdep.c.
9454 * config/ia64/hpux.mh: Remove file.
9455 * config/pa/hpux.mh: Remove file.
9456 * configure: Rebuilt.
9457 * configure.ac (dlgetmodinfo, somread.o): Remove.
9458 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9459 (ia64-*-hpux*): Remove its float format exception.
9460 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9461 * hppa-hpux-nat.c: Remove file.
9462 * hppa-hpux-tdep.c: Remove file.
9463 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9464 Move them here from hppa-tdep.h
9465 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9466 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9467 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9468 Move them to hppa-tdep.c.
9469 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9470 declarations.
9471 * ia64-hpux-nat.c: Remove file.
9472 * ia64-hpux-tdep.c: Remove file.
9473 * ia64-hpux-tdep.h: Remove file.
9474 * inf-ttrace.c: Remove file.
9475 * inf-ttrace.h: Remove file.
9476 * solib-ia64-hpux.c: Remove file.
9477 * solib-ia64-hpux.h: Remove file.
9478 * solib-pa64.c: Remove file.
9479 * solib-pa64.h: Remove file.
9480 * solib-som.c: Remove file.
9481 * solib-som.h: Remove file.
9482 * somread.c: Remove file.
9483
9484 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9485
9486 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9487 * config.in: Regenerate.
9488 * configure: Regenerate.
9489 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9490 define.
9491 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9492 enumerate memory regions if present.
9493
9494 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9495
9496 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9497 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9498 expressions.
9499 (i386fbsd_sigtramp_p): Likewise.
9500
9501 2015-03-12 John Baldwin <jhb@FreeBSD.org>
9502
9503 * MAINTAINERS (Write After Approval): Add John Baldwin.
9504
9505 2015-03-12 Gary Benson <gbenson@redhat.com>
9506
9507 * solib.c (_initialize_solib): Make "set/show sysroot" use
9508 add_setshow_optional_filename_cmd so it can be restored to
9509 empty after being set.
9510
9511 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9512
9513 * Makefile.in (SFILES): New source break-catch-syscall.c.
9514 (COMMON_OBS): New object break-catch-syscall.o.
9515 * break-catch-syscall.c: New file.
9516 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9517 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9518 (struct syscall_catchpoint): Likewise.
9519 (dtor_catch_syscall): Likewise.
9520 (catch_syscall_inferior_data): Likewise.
9521 (struct catch_syscall_inferior_data): Likewise.
9522 (get_catch_syscall_inferior_data): Likewise.
9523 (catch_syscall_inferior_data_cleanup): Likewise.
9524 (insert_catch_syscall): Likewise.
9525 (remove_catch_syscall): Likewise.
9526 (breakpoint_hit_catch_syscall): Likewise.
9527 (print_it_catch_syscall): Likewise.
9528 (print_one_catch_syscall): Likewise.
9529 (print_mention_catch_syscall): Likewise.
9530 (print_recreate_catch_syscall): Likewise.
9531 (catch_syscall_breakpoint_ops): Likewise.
9532 (syscall_catchpoint_p): Likewise.
9533 (create_syscall_event_catchpoint): Likewise.
9534 (catch_syscall_split_args): Likewise.
9535 (catch_syscall_command_1): Likewise.
9536 (is_syscall_catchpoint_enabled): Likewise.
9537 (catch_syscall_enabled): Likewise.
9538 (catching_syscall_number): Likewise.
9539 (catch_syscall_completer): Likewise.
9540 (clear_syscall_counts): Likewise.
9541 (initialize_breakpoint_ops): Move initialization of syscall
9542 catchpoints to break-catch-syscall.c.
9543 (_initialize_breakpoint): Move code related to syscall catchpoints
9544 to break-catch-syscall.c.
9545
9546 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9547
9548 * breakpoint.c (breakpoint_find_if): New function.
9549 * breakpoint.h (breakpoint_find_if): New prototype.
9550
9551 2015-03-11 Gary Benson <gbenson@redhat.com>
9552
9553 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9554 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9555 (remote_fileio_to_host_ulong): Likewise.
9556 (remote_fileio_to_host_mode): Likewise.
9557 (remote_fileio_to_host_time): Likewise.
9558 (remote_fileio_to_host_stat): Likewise.
9559 * remote.c (PACKET_vFile_fstat): New enum value.
9560 (remote_protocol_features): Register the "vFile:fstat" feature.
9561 (remote_hostio_fstat): New function.
9562 (remote_bfd_iovec_stat): Use the above.
9563 (_initialize_remote): Register new "set/show remote
9564 hostio-fstat-packet" command.
9565 * symfile.c (separate_debug_file_exists): Update comment.
9566 * NEWS: Announce new vFile:fstat packet.
9567
9568 2015-03-11 Gary Benson <gbenson@redhat.com>
9569
9570 * common/common-remote-fileio.h: New file.
9571 * common/common-remote-fileio.c: Likewise.
9572 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9573 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9574 (COMMON_OBS): Add common-remote-fileio.o.
9575 (common-remote-fileio.o): New rule.
9576 * remote-fileio.h (common-remote-fileio.h): New include.
9577 * remote-fileio.c (gdb/fileio.h): Do not include.
9578 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9579 (remote_fileio_to_fio_uint): Likewise.
9580 (remote_fileio_to_fio_time): Likewise.
9581 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9582 (remote_fileio_to_fio_mode): Likewise.
9583 (remote_fileio_to_fio_ulong): Likewise.
9584 (remote_fileio_to_fio_stat): Likewise.
9585
9586 2015-03-11 Andy Wingo <wingo@igalia.com>
9587
9588 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9589 we were checking the cached type, not the cached dynamic type.
9590
9591 2015-03-11 Andy Wingo <wingo@igalia.com>
9592
9593 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9594 other strings, as these are on the GC'd heap, and will be
9595 collected along with the smob.
9596
9597 2015-03-11 Andy Wingo <wingo@igalia.com>
9598
9599 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9600 (objfile_functions): Bind gdbscm_objfile_progspace to
9601 objfile-progspace.
9602 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9603
9604 2015-03-11 Andy Wingo <wingo@igalia.com>
9605
9606 * guile/guile.c (_initialize_guile): Disable automatic
9607 finalization, if Guile offers us that possibility.
9608 * guile/guile.c (call_initialize_gdb_module):
9609 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9610 finalizers in appropriate places.
9611 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9612 scm_set_automatic_finalization_enabled.
9613 * configure: Regenerated.
9614
9615 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9616
9617 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9618 SAL, if possible.
9619
9620 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9621
9622 * s390-linux-nat.c (struct arch_lwp_info): New.
9623 (s390_fix_watch_points): Rename to...
9624 (s390_prepare_to_resume): ...this. Skip the PER info update
9625 unless the watch points have changed.
9626 (s390_refresh_per_info, s390_new_thread): New functions.
9627 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9628 s390_fix_watch_points.
9629 (s390_remove_watchpoint): Likewise.
9630 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9631 Register s390_prepare_to_resume.
9632
9633 2015-03-09 Pedro Alves <palves@redhat.com>
9634
9635 Revert:
9636 2015-03-07 Pedro Alves <palves@redhat.com>
9637 * common/gdb_socket.h: New file.
9638 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9639 sys/socket.h.
9640 (net_open): Use union gdb_sockaddr_u.
9641
9642 2015-03-07 Pedro Alves <palves@redhat.com>
9643
9644 * configure.ac (build_warnings): Move -Wmissing-prototypes
9645 -Wdeclaration-after-statement -Wmissing-parameter-type
9646 -Wold-style-declaration -Wold-style-definition to the C-specific
9647 set.
9648 * configure: Regenerate.
9649
9650 2015-03-07 Pedro Alves <palves@redhat.com>
9651
9652 * common/gdb_socket.h: New file.
9653 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9654 sys/socket.h.
9655 (net_open): Use union gdb_sockaddr_u.
9656
9657 2015-03-07 Pedro Alves <palves@redhat.com>
9658
9659 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9660 (exceptions_state_mc_action_iter)
9661 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9662 Don't define.
9663 [__cplusplus] (try_scope_depth): New global.
9664 [__cplusplus] (exception_try_scope_entry)
9665 (exception_try_scope_exit, gdb_exception_sliced_copy)
9666 (exception_rethrow): New functions.
9667 (throw_exception): In C++ mode, throw
9668 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9669 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9670 (throw_it): In C++ mode, use try_scope_depth.
9671 * common/common-exceptions.h [!__cplusplus]
9672 (exceptions_state_mc_action_iter)
9673 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9674 Don't declare.
9675 [__cplusplus] (exception_try_scope_entry)
9676 (exception_try_scope_exit, exception_rethrow): Declare.
9677 [__cplusplus] (struct exception_try_scope): New struct.
9678 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9679 C++ exceptions.
9680 (struct gdb_exception_RETURN_MASK_ALL)
9681 (struct gdb_exception_RETURN_MASK_ERROR)
9682 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9683
9684 2015-03-07 Pedro Alves <palves@redhat.com>
9685
9686 * main.c (handle_command_errors): Remove volatile qualifier from
9687 parameter.
9688
9689 2015-03-07 Pedro Alves <palves@redhat.com>
9690
9691 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9692 TRY and CATCH.
9693 * gdbtypes.c (safe_parse_type): Remove empty line.
9694 (types_deeply_equal):
9695 * guile/scm-frame.c (gdbscm_frame_name):
9696 * linux-thread-db.c (find_new_threads_once):
9697 * python/py-breakpoint.c (bppy_get_commands):
9698 * record-btrace.c (record_btrace_insert_breakpoint)
9699 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9700 (record_btrace_start_replaying): Adjust to avoid code between TRY
9701 and CATCH.
9702
9703 2015-03-07 Pedro Alves <palves@redhat.com>
9704
9705 * common/common-exceptions.c (struct catcher) <exception>: No
9706 longer a pointer to volatile exception. Now an exception value.
9707 <mask>: Delete field.
9708 (exceptions_state_mc_init): Remove all parameters. Adjust.
9709 (exceptions_state_mc): No longer pop the catcher here.
9710 (exceptions_state_mc_catch): New function.
9711 (throw_exception): Adjust.
9712 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9713 all parameters.
9714 (exceptions_state_mc_catch): Declare.
9715 (TRY_CATCH): Rename to ...
9716 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9717 (CATCH, END_CATCH): New.
9718 All callers adjusted.
9719
9720 2015-03-07 Tom Tromey <tromey@redhat.com>
9721
9722 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9723
9724 2015-03-07 Pedro Alves <palves@redhat.com>
9725
9726 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9727 (amd64_epilogue_frame_cache): Normal exception handling code.
9728 * break-catch-throw.c (check_status_exception_catchpoint)
9729 (re_set_exception_catchpoint): Ditto.
9730 * cli/cli-interp.c (safe_execute_command):
9731 * cli/cli-script.c (script_from_file): Ditto.
9732 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9733 Ditto.
9734 * compile/compile-object-run.c (compile_object_run): Ditto.
9735 * cp-abi.c (baseclass_offset): Ditto.
9736 * cp-valprint.c (cp_print_value): Ditto.
9737 * exceptions.c (catch_exceptions_with_msg):
9738 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9739 * frame.c (get_frame_address_in_block_if_available): Ditto.
9740 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9741 (i386_sigtramp_frame_cache): Ditto.
9742 * infcmd.c (post_create_inferior): Ditto.
9743 * linespec.c (parse_linespec, find_linespec_symbols):
9744 * p-valprint.c (pascal_object_print_value): Ditto.
9745 * parse.c (parse_expression_for_completion): Ditto.
9746 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9747 * remote.c (remote_get_noisy_reply): Ditto.
9748 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9749 * solib-svr4.c (solib_svr4_r_map): Ditto.
9750
9751 2015-03-06 Gary Benson <gbenson@redhat.com>
9752
9753 * common/common-utils.h (startswith): New inline function.
9754 All places where this logic was used updated to use the above.
9755
9756 2015-03-05 Pedro Alves <palves@redhat.com>
9757
9758 PR gdb/18002
9759 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9760 after reading the breakpoint's shadow memory.
9761
9762 2015-03-05 Mark Kettenis <kettenis@gnu.org>
9763
9764 * hppabsd-nat.c: Remove file.
9765 * hppaobsd-nat.c: New file.
9766 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9767 hppaobsd-nat.c.
9768 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9769 hppaobsd-nat.o.
9770
9771 2015-03-04 Pedro Alves <palves@redhat.com>
9772
9773 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9774 (target_decr_pc_after_break): Delete declaration.
9775 * target.c (default_target_decr_pc_after_break)
9776 (target_decr_pc_after_break): Delete.
9777 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9778 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9779 * linux-thread-db.c (check_event): Likewise.
9780 * infrun.c (adjust_pc_after_break): Likewise.
9781 * darwin-nat.c (cancel_breakpoint): Likewise.
9782 * aix-thread.c (aix_thread_wait): Likewise.
9783 * target-delegates.c: Regenerate.
9784
9785 2015-03-04 Pedro Alves <palves@redhat.com>
9786
9787 * linux-nat.c (save_sigtrap): Check for breakpoints before
9788 checking watchpoints.
9789 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9790 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9791 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9792 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9793 (linux_nat_stopped_by_sw_breakpoint)
9794 (linux_nat_supports_stopped_by_sw_breakpoint)
9795 (linux_nat_stopped_by_hw_breakpoint)
9796 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9797 (linux_nat_wait_1): Don't re-increment the PC if relying on
9798 SIGTRAP's siginfo->si_code.
9799 (linux_nat_add_target): Install new target methods.
9800 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9801 offset if the target already adjusted the PC.
9802 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9803 (GDB_ARCH_TRAP_BRKPT): New.
9804 (TRAP_HWBKPT): Define if not already defined.
9805
9806 2015-03-04 Pedro Alves <palves@redhat.com>
9807
9808 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9809 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9810 Delete field.
9811 <stop_reason>: New field.
9812 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9813 (packet_set_cmd_state): New function.
9814 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9815 features.
9816 (remote_query_supported): If not disabled with the corresponding
9817 "set remote foo-packet" command, report support for the swbreak
9818 and hwbreak features.
9819 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9820 field.
9821 <stop_reason>: New field.
9822 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9823 (remote_wait_as): Adjust.
9824 (remote_stopped_by_sw_breakpoint)
9825 (remote_supports_stopped_by_sw_breakpoint)
9826 (remote_stopped_by_hw_breakpoint)
9827 (remote_supports_stopped_by_hw_breakpoint): New functions.
9828 (remote_stopped_by_watchpoint): New function.
9829 (init_remote_ops): Install them.
9830 (_initialize_remote): Register new "set/show remote
9831 swbreak-feature-packet" and "set/show remote
9832 swbreak-feature-packet" commands.
9833
9834 2015-03-04 Pedro Alves <palves@redhat.com>
9835
9836 * btrace.h: Include target/waitstatus.h.
9837 (struct btrace_thread_info) <stop_reason>: New field.
9838 * record-btrace.c (record_btrace_step_thread): Use
9839 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9840 (record_btrace_decr_pc_after_break): Delete.
9841 (record_btrace_stopped_by_sw_breakpoint)
9842 (record_btrace_supports_stopped_by_sw_breakpoint)
9843 (record_btrace_stopped_by_hw_breakpoint)
9844 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9845 (init_record_btrace_ops): Install them.
9846 * record-full.c (record_full_hw_watchpoint): Delete and replace
9847 with ...
9848 (record_full_stop_reason): ... this throughout.
9849 (record_full_exec_insn): Adjust.
9850 (record_full_wait_1): Adjust. No longer re-increment the PC.
9851 (record_full_wait_1): Adjust. Use
9852 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9853 (record_full_stopped_by_watchpoint): Adjust.
9854 (record_full_stopped_by_sw_breakpoint)
9855 (record_full_supports_stopped_by_sw_breakpoint)
9856 (record_full_supports_stopped_by_sw_breakpoint)
9857 (record_full_stopped_by_hw_breakpoint)
9858 (record_full_supports_stopped_by_hw_breakpoint): New functions.
9859 (init_record_full_ops, init_record_full_core_ops): Install them.
9860 * record.c (record_check_stopped_by_breakpoint): New function.
9861 * record.h: Include target/waitstatus.h.
9862 (record_check_stopped_by_breakpoint): New declaration.
9863
9864 2015-03-04 Pedro Alves <palves@redhat.com>
9865
9866 enum lwp_stop_reason -> enum target_stop_reason
9867 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9868 (linux_nat_stopped_by_watchpoint, status_callback)
9869 (linux_nat_wait_1): Adjust.
9870 * linux-nat.h (enum lwp_stop_reason): Delete.
9871 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9872 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9873 * target/waitstatus.h (enum target_stop_reason): New.
9874
9875 2015-03-04 Pedro Alves <palves@redhat.com>
9876
9877 * breakpoint.c (need_moribund_for_location_type): New function.
9878 (bpstat_stop_status): Don't skipping checking moribund locations
9879 of breakpoint types which the target tell caused a stop.
9880 (program_breakpoint_here_p): New function, factored out from ...
9881 (bp_loc_is_permanent): ... this.
9882 (update_global_location_list): Don't create a moribund location if
9883 the target supports reporting stops of the type of the removed
9884 breakpoint.
9885 * breakpoint.h (program_breakpoint_here_p): New declaration.
9886 * infrun.c (adjust_pc_after_break): Return early if the target has
9887 already adjusted the PC. Add comments.
9888 (handle_signal_stop): If nothing explains a signal, and the target
9889 tells us the stop was caused by a software breakpoint, check if
9890 there's a breakpoint instruction in the memory. If so, adjust the
9891 PC before presenting the stop to the user. Otherwise, ignore the
9892 trap. If nothing explains a signal, and the target tells us the
9893 stop was caused by a hardware breakpoint, ignore the trap.
9894 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9895 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9896 to_supports_stopped_by_hw_breakpoint>: New fields.
9897 (target_stopped_by_sw_breakpoint)
9898 (target_supports_stopped_by_sw_breakpoint)
9899 (target_stopped_by_hw_breakpoint)
9900 (target_supports_stopped_by_hw_breakpoint): Define.
9901 * target-delegates.c: Regenerate.
9902
9903 2015-03-04 Pedro Alves <palves@redhat.com>
9904
9905 * infrun.c (follow_fork_inferior): Use the whole of the
9906 inferior_ptid and pending_follow.related_pid ptids instead of
9907 building ptids from the process components. Adjust verbose output
9908 to use target_pid_to_str.
9909 * linux-nat.c (linux_child_follow_fork): Use the whole of the
9910 inferior_ptid and pending_follow.related_pid ptids instead of
9911 building ptids from the process components.
9912
9913 2015-03-04 Mark Kettenis <kettenis@gnu.org>
9914
9915 * inf-ptrace.c [PT_GET_PROCESS_STATE]
9916 (inf_ptrace_insert_fork_catchpoint): New function.
9917 (inf_ptrace_remove_fork_catchpoint): New function.
9918 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
9919
9920 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9921
9922 * s390-linux-tdep.c (s390_register_name): Return empty string
9923 instead of NULL for registers that shouldn't be visible.
9924
9925 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9926
9927 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
9928 XML file for 64-bit targets.
9929
9930 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
9931
9932 * target.h (find_default_create_inferior): Remove declaration.
9933 (find_default_attach): Likewise.
9934
9935 2015-03-03 Pedro Alves <palves@redhat.com>
9936
9937 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
9938 Use ptid_get_pid to get the overall process id when resuming all
9939 threads.
9940
9941 2015-03-03 Pedro Alves <palves@redhat.com>
9942
9943 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
9944 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
9945 * inf-ptrace.c (get_ptrace_pid): New function.
9946 (inf_ptrace_resume): Use it.
9947 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
9948 to the lower layer.
9949
9950 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9951
9952 * nat/linux-btrace.c: Include sys/utsname.h.
9953 (linux_determine_kernel_ptr_bits): New.
9954 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
9955 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
9956 ptr_bits.
9957
9958 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9959
9960 * btrace.c (ftrace_update_function): Treat return as tailcall for
9961 "_dl_runtime_resolve".
9962
9963 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9964
9965 * btrace.h (btrace_function) <lbegin, lend>: Remove.
9966 * btrace.c (ftrace_debug): Do not print the line range.
9967 (ftrace_skip_file, ftrace_update_lines): Remove.
9968 (ftrace_new_function): Remove lbegin and lend initialization.
9969 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
9970 * record-btrace.c (btrace_compute_src_line_range): New.
9971 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
9972
9973 2015-03-02 Pedro Alves <palves@redhat.com>
9974
9975 * infrun.c (follow_exec): Delete all threads of the process except
9976 the event thread. Extended comments.
9977
9978 2015-03-02 Joel Brobecker <brobecker@adacore.com>
9979
9980 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
9981
9982 2015-03-02 Joel Brobecker <brobecker@adacore.com>
9983
9984 * utils.h: Remove <stdbool.h> #include.
9985 (producer_is_gcc): Change return type to "int".
9986 * utils.c (producer_is_gcc): Change return type to int.
9987 Return 1 instead of true, and 0 instead of false.
9988 Adjust function documentation accordingly.
9989
9990 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9991
9992 * s390-linux-nat.c (have_regset_vxrs): New static variable.
9993 (s390_linux_fetch_inferior_registers): Handle vector registers, if
9994 present.
9995 (s390_linux_store_inferior_registers): Likewise.
9996 (s390_get_hwcap): Remove function. Embed its logic...
9997 (s390_read_description): ...here. Yield a target description with
9998 vector registers if applicable.
9999 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10000 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10001 "features/s390x-tevx-linux64.c".
10002 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10003 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10004 for "GNU/Linux-specific registers".
10005 (s390_dwarf_reg_r0l): New enum value.
10006 (s390_dwarf_reg_to_regnum): Support vector registers.
10007 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10008 of GPR lower halves.
10009 (regnum_is_vxr_full): New function.
10010 (s390_register_name): New function.
10011 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10012 f0-f15 and v0l-v15l.
10013 (s390_pseudo_register_type): Likewise.
10014 (s390_pseudo_register_read): Likewise.
10015 (s390_pseudo_register_write): Likewise.
10016 (s390_value_from_register): Account for the fact that values are
10017 placed left-justified in vector registers.
10018 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10019 the vector reggroup and omit them from the general reggroup.
10020 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10021 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10022 (s390_iterate_over_regset_sections): Add iterations for the two
10023 new vector regsets.
10024 (s390_core_read_description): Yield a target description with
10025 vector registers if applicable.
10026 (s390_gdbarch_init): Handle target descriptions with vector
10027 registers. Add "register_name" gdbarch method.
10028 (_initialize_s390_tdep): Call new tdesc initialization functions.
10029 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10030 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10031 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10032 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10033 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10034 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10035 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10036 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10037 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10038 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10039 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10040 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10041 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10042 (S390_NUM_REGS): Adjust value.
10043 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10044 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10045 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10046 * NEWS: Announce S/390 vector register support.
10047
10048 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10049
10050 * features/s390-tevx-linux64.xml: New file.
10051 * features/s390-vx-linux64.xml: New file.
10052 * features/s390-vx.xml: New file.
10053 * features/s390x-tevx-linux64.xml: New file.
10054 * features/s390x-vx-linux64.xml: New file.
10055 * features/Makefile (WHICH): Add s390-vx-linux64,
10056 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10057 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10058 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10059 macros.
10060 * features/s390-tevx-linux64.c: New generated file.
10061 * features/s390-vx-linux64.c: Likewise.
10062 * features/s390x-tevx-linux64.c: Likewise.
10063 * features/s390x-vx-linux64.c: Likewise.
10064 * regformats/s390-tevx-linux64.dat: Likewise.
10065 * regformats/s390-vx-linux64.dat: Likewise.
10066 * regformats/s390x-tevx-linux64.dat: Likewise.
10067 * regformats/s390x-vx-linux64.dat: Likewise.
10068
10069 2015-02-28 Doug Evans <xdje42@gmail.com>
10070
10071 * symtab.h (struct symtab) <next>: Fix comment.
10072
10073 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10074
10075 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10076 python_GdbMethods.
10077
10078 2015-02-27 Pedro Alves <palves@redhat.com>
10079
10080 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10081
10082 2015-02-27 Pedro Alves <palves@redhat.com>
10083
10084 * common/common-exceptions.h (exception_none): Declare.
10085 * common/common-exceptions.c (exception_none): Moved from
10086 exceptions.c.
10087 (exceptions_state_mc_init): Use exception_none.
10088 * exceptions.c (exception_none): Move to
10089 common/common-exceptions.c.
10090 * exceptions.h (exception_none): Move to
10091 common/common-exceptions.h.
10092
10093 2015-02-27 Pedro Alves <palves@redhat.com>
10094
10095 * main.c (catch_command_errors, catch_command_errors_const):
10096 Remove 'mask' argument. Adjust.
10097 (captured_main): Adjust callers.
10098
10099 2015-02-27 Pedro Alves <palves@redhat.com>
10100
10101 * python/python-internal.h: Include "extension-priv.h".
10102
10103 2015-02-27 Pedro Alves <palves@redhat.com>
10104
10105 * breakpoint.h (enum print_stop_action): Move further up in the
10106 file.
10107
10108 2015-02-27 Pedro Alves <palves@redhat.com>
10109
10110 * gdbarch.sh: Include regcache.h.
10111 * gdbarch.h: Regenerate.
10112
10113 2015-02-27 Pedro Alves <palves@redhat.com>
10114
10115 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10116 Remove duplicate const.
10117 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10118 duplicate const.
10119
10120 2015-02-27 Pedro Alves <palves@redhat.com>
10121
10122 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10123 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10124 * features/feature_to_c.sh: Tag the generated xml_builtin array
10125 with extern const in C++ mode.
10126
10127 2015-02-27 Tom Tromey <tromey@redhat.com>
10128
10129 * minidebug.c (struct lzma_stream): Rename to ...
10130 (struct gdb_lzma_stream): ... this.
10131 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10132
10133 2015-02-27 Pedro Alves <palves@redhat.com>
10134
10135 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10136 function.
10137 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10138 (mi_cmd_stack_list_variables): Use it.
10139
10140 2015-02-27 Pedro Alves <palves@redhat.com>
10141
10142 * x86-linux-nat.c (u_debugreg_offset): New function.
10143 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10144
10145 2015-02-27 Pedro Alves <palves@redhat.com>
10146
10147 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10148 declaration.
10149 Include break-common.h.
10150
10151 2015-02-27 Tom Tromey <tromey@redhat.com>
10152 Pedro Alves <palves@redhat.com>
10153
10154 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10155 local used to iterate over enums.
10156 * completer.c (signal_completer): Likewise.
10157 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10158 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10159 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10160 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10161 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10162 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10163 * tui-wingeneral.c (tui_refresh_all): Likewise.
10164
10165 2015-02-27 Pedro Alves <palves@redhat.com>
10166
10167 * target.h: Include "infrun.h".
10168
10169 2015-02-27 Pedro Alves <palves@redhat.com>
10170
10171 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10172
10173 2015-02-27 Pedro Alves <palves@redhat.com>
10174
10175 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10176 (IPA_SYM): Use it.
10177 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10178
10179 2015-02-27 Pedro Alves <palves@redhat.com>
10180
10181 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10182 cli_mld_erase_entire_line, and make it extern "C".
10183 * common/common-defs.h (EXTERN_C): New.
10184 * completer.c (_rl_completion_prefix_display_length)
10185 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10186 out of gdb_display_match_list_1.
10187 (_rl_qsort_string_compare): Move declaration out of
10188 gdb_display_match_list_1, and make it extern "C".
10189 * defs.h (re_comp): Use EXTERN_C.
10190 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10191 and make it extern "C".
10192 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10193 and make it extern "C".
10194 (main): Move declaration out of maintenance_set_profile_cmd.
10195 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10196 EXTERN_C.
10197
10198 2015-02-27 Pedro Alves <palves@redhat.com>
10199
10200 * python/python.c (GdbMethods): Rename to ...
10201 (python_GdbMethods): ... this and make extern.
10202 (GdbModuleDef): Rename to ...
10203 (python_GdbModuleDef): ... this and make extern.
10204
10205 2015-02-27 Pedro Alves <palves@redhat.com>
10206
10207 * record-btrace.c (set_record_btrace_cmdlist)
10208 (show_record_btrace_cmdlist): Remove redefinitions.
10209
10210 2015-02-27 Tom Tromey <tromey@redhat.com>
10211 Pedro Alves <palves@redhat.com>
10212
10213 * dwarf2-frame.c (enum cfa_how_kind, struct
10214 dwarf2_frame_state_reg_info): Move out of struct
10215 dwarf2_frame_state.
10216 * dwarf2read.c (struct tu_stats): Move out of struct
10217 dwarf2_per_objfile.
10218 (struct file_entry): Move out of struct line_header.
10219 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10220 typedef_field_list): Move out of struct field_info.
10221 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10222 Move out of struct dynamic_prop.
10223 (union type_owner, union field_location, struct field, struct
10224 range_bounds, union type_specific): Move out of struct main_type.
10225 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10226 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10227 (struct call_site_target, union call_site_parameter_u, struct
10228 call_site_parameter): Move out of struct call_site.
10229 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10230 m32c_prologue.
10231 (enum srcdest_kind): Move out of struct srcdest.
10232 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10233 * prologue-value.h (enum prologue_value_kind): Move out of struct
10234 prologue_value.
10235 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10236 gdbarch_tdep.
10237 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10238 out of struct field_info.
10239 * symfile.h (struct other_sections): Move out of struct
10240 section_addr_info.
10241 * symtab.c (struct symbol_cache_slot): Move out struct
10242 block_symbol_cache.
10243 * target-descriptions.c (enum tdesc_type_kind): Move out of
10244 typedef struct tdesc_type.
10245 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10246 struct tui_line_or_address.
10247 * value.c (enum internalvar_kind, union internalvar_data): Move
10248 out of struct internalvar.
10249 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10250 gdbarch_tdep.
10251
10252 2015-02-27 Tom Tromey <tromey@redhat.com>
10253 Pedro Alves <palves@redhat.com>
10254
10255 Rename symbols whose names are reserved C++ keywords throughout.
10256
10257 2015-02-27 Pedro Alves <palves@redhat.com>
10258
10259 * Makefile.in (COMPILER): New, get it from autoconf.
10260 (COMPILE.pre, CC_LD): Use COMPILER.
10261 (CXX): Get from autoconf instead.
10262 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10263 * acinclude.m4: Include build-with-cxx.m4.
10264 * build-with-cxx.m4: New file.
10265 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10266 Disable -Werror by default if building in C++ mode.
10267 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10268 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10269 Run supported-warning-flags tests with the C++ compiler.
10270 Save/restore CXXFLAGS too.
10271 * configure: Regenerate.
10272
10273 2015-02-27 Pedro Alves <palves@redhat.com>
10274
10275 * libiberty.m4: New file.
10276 * acinclude.m4: Include libiberty.m4.
10277 * configure.ac: Call libiberty_INIT.
10278 * config.in, configure: Regenerate.
10279
10280 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10281
10282 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10283 31-bit targets, but 64-bit targets as well.
10284 (s390_gnu_triplet_regexp): New function.
10285 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10286 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10287 method.
10288
10289 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10290
10291 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10292 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10293 from CONTEXT_DEBUGGER.
10294
10295 2015-02-26 Doug Evans <dje@google.com>
10296
10297 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10298 CHECK_TYPEDEF.
10299 (set_type_vptr_fieldno): Ditto.
10300 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10301 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10302
10303 2015-02-26 Pedro Alves <palves@redhat.com>
10304
10305 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10306 * complaints.c (vcomplaint): Pass argument FMT directly to
10307 printf-like functions instead of complaint->fmt.
10308 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10309 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10310 * compile/compile-loc2c.c (pushf, unary, binary): Add
10311 ATTRIBUTE_PRINTF.
10312 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10313 to pushf.
10314 (BINARY): Pass string literal as format string to 'binary'.
10315 * compile/compile-object-load.c (link_callbacks_einfo): Add
10316 ATTRIBUTE_PRINTF.
10317 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10318
10319 2015-02-26 Pedro Alves <palves@redhat.com>
10320
10321 * windows-termcap.c: Rename to ...
10322 * stub-termcap.c: ... this. Adjust header line.
10323 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10324 windows-termcap.c.
10325 * configure: Regenerate.
10326 * configure.ac: Refer to stub-termcap.o instead of
10327 windows-termcap.o.
10328 * gdb_curses.h: Mention stub-termcap.c instead of
10329 windows-termcap.c.
10330
10331 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10332
10333 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10334 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10335
10336 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10337
10338 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10339
10340 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10341
10342 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10343 bfd_canonicalize_symtab.
10344
10345 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10346
10347 * amd64fbsd-nat.c: Include sys/user.h.
10348 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10349 instead of KERN_PS_STRINGS to locate the signal trampoline.
10350 * i386fbsd-nat.c: Include sys/user.h.
10351 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10352 instead of KERN_PS_STRINGS to locate the signal trampoline.
10353 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10354 (amd64fbsd_sigtramp_p): New.
10355 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10356 longer set default values.
10357 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10358 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10359 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10360 (i386fbsd_freebsd4_sigtramp_start)
10361 (i386fbsd_freebsd4_sigtramp_middle)
10362 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10363 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10364 (i386fbsd_sigtramp_p): New.
10365 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10366 longer set default values.
10367 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10368
10369 2015-02-25 John Baldwin <jhb@freebsd.org>
10370
10371 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10372 get_frame_register instead of frame_unwind_register_unsigned.
10373
10374 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10375
10376 PR build/18033
10377 * compile/compile-c-support.c (c_compute_program): Change // comment.
10378 * compile/compile-object-load.c (setup_sections): Change // comment.
10379
10380 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10381
10382 PR build/18033:
10383 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10384
10385 2015-02-23 Pedro Alves <palves@redhat.com>
10386
10387 * remote.c (skip_to_semicolon): New function.
10388 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10389 special case the stop reasons that look like hex numbers
10390 upfront. Instead handle real register numbers after matching
10391 all the known stop reasons.
10392
10393 2015-02-21 Doug Evans <dje@google.com>
10394
10395 PR c++/17976, symtab/17821
10396 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10397 is_in_anonymous. All callers updated.
10398 (find_symbol_in_baseclass): Ditto.
10399 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10400 for symbols in an anonymous namespace.
10401 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10402 DW_AT_name directly.
10403 (dwarf2_name): Convert missing namespace name to
10404 CP_ANONYMOUS_NAMESPACE_STR.
10405
10406 2015-02-20 Pedro Alves <palves@redhat.com>
10407
10408 * linux-nat.c (linux_handle_extended_wait): Call
10409 thread_db_notice_clone whenever a new clone LWP is detected.
10410 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10411 functions.
10412 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10413 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10414 (linux_unstop_all_lwps): Declare.
10415 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10416 (thread_get_info_callback): Delete.
10417 (thread_from_lwp): Use td_thr_get_info and record_thread.
10418 (thread_db_attach_lwp): Delete.
10419 (thread_db_notice_clone): New function.
10420 (try_thread_db_load_1): If /proc is mounted and shows the
10421 process'es task list, walk over all LWPs and call thread_from_lwp
10422 instead of relying on td_ta_thr_iter.
10423 (attach_thread): Don't call check_thread_signals here. Split the
10424 tail part of the function (which adds the thread to the core GDB
10425 thread list) to ...
10426 (record_thread): ... this function. Call check_thread_signals
10427 here.
10428 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10429 call thread_from_lwp.
10430 (thread_db_update_thread_list): Rename to ...
10431 (thread_db_update_thread_list_org): ... this.
10432 (thread_db_update_thread_list): New function.
10433 (thread_db_find_thread_from_tid): Delete.
10434 (thread_db_get_ada_task_ptid): Simplify.
10435 * nat/linux-procfs.c: Include <sys/stat.h>.
10436 (linux_proc_task_list_dir_exists): New function.
10437 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10438
10439 2015-02-20 Pedro Alves <palves@redhat.com>
10440
10441 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10442 main LWP. Handle the case of waitpid returning 0 if we're already
10443 attached to the LWP. Don't set the LWP's last_resume_kind to
10444 resume_stop if we already knew about the LWP.
10445 (linux_nat_filter_event): Add debug logs.
10446
10447 2015-02-20 Pedro Alves <palves@redhat.com>
10448
10449 * target.h (forward_target_decr_pc_after_break): Delete
10450 declaration.
10451
10452 2015-02-20 Pedro Alves <palves@redhat.com>
10453
10454 PR threads/18006
10455 * linux-thread-db.c (thread_get_info_callback): Return early if
10456 the thread's lwp id is -1.
10457
10458 2015-02-20 Joel Brobecker <brobecker@adacore.com>
10459
10460 GDB 7.9 released.
10461
10462 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
10463
10464 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10465 (dtrace_get_probes) Change type of variable 'dof'.
10466
10467 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10468
10469 PR breakpoints/16812
10470 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10471 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10472 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10473
10474 2015-02-19 David Taylor <dtaylor@emc.com>
10475
10476 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10477
10478 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10479
10480 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10481 function.
10482 (tui_putc): Don't call tui_handle_resize_during_io.
10483 (tui_getc): Likewise.
10484 (tui_mld_getc): Likewise.
10485 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10486 (tui_sigwinch_token): New static variable.
10487 (tui_initialize_win): Adjust documentation. Set
10488 tui_sigwinch_token.
10489 (tui_async_resize_screen): New asynchronous callback.
10490 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10491 invoke tui_async_resize_screen.
10492
10493 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10494
10495 * configure: Regenerated.
10496 * configure.ac: Use GDB_AC_TRANSFORM.
10497 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10498 * acinclude.m4: sinclude transform.m4.
10499 * transform.m4: New file.
10500 (GDB_AC_TRANSFORM): New macro.
10501
10502 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10503
10504 * NEWS: Announce the support for DTrace SDT probes.
10505
10506 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10507
10508 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10509 (amd64_dtrace_parse_probe_argument): New function.
10510 (amd64_dtrace_probe_is_enabled): Likewise.
10511 (amd64_dtrace_enable_probe): Likewise.
10512 (amd64_dtrace_disable_probe): Likewise.
10513 (amd64_linux_init_abi): Register the
10514 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10515 `gdbarch_dtrace_disable_probe' and
10516 `gdbarch_dtrace_probe_is_enabled' hooks.
10517 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10518 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10519 (amd64_dtrace_enable_probe_sequence): Likewise.
10520 (amd64_dtrace_disable_probe_sequence): Likewise.
10521
10522 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10523
10524 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10525 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10526 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10527 handle ELF files.
10528 * Makefile.in (SFILES): dtrace-probe.c added.
10529 * configure: Regenerate.
10530 * dtrace-probe.c: New file.
10531 (SHT_SUNW_dof): New constant.
10532 (dtrace_probe_type): New enum.
10533 (dtrace_probe_arg): New struct.
10534 (dtrace_probe_arg_s): New typedef.
10535 (struct dtrace_probe_enabler): New struct.
10536 (dtrace_probe_enabler_s): New typedef.
10537 (dtrace_probe): New struct.
10538 (dtrace_probe_is_linespec): New function.
10539 (dtrace_dof_sect_type): New enum.
10540 (dtrace_dof_dofh_ident): Likewise.
10541 (dtrace_dof_encoding): Likewise.
10542 (DTRACE_DOF_ENCODE_LSB): Likewise.
10543 (DTRACE_DOF_ENCODE_MSB): Likewise.
10544 (dtrace_dof_hdr): New struct.
10545 (dtrace_dof_sect): Likewise.
10546 (dtrace_dof_provider): Likewise.
10547 (dtrace_dof_probe): Likewise.
10548 (DOF_UINT): New macro.
10549 (DTRACE_DOF_PTR): Likewise.
10550 (DTRACE_DOF_SECT): Likewise.
10551 (dtrace_process_dof_probe): New function.
10552 (dtrace_process_dof): Likewise.
10553 (dtrace_build_arg_exprs): Likewise.
10554 (dtrace_get_arg): Likewise.
10555 (dtrace_get_probes): Likewise.
10556 (dtrace_get_probe_argument_count): Likewise.
10557 (dtrace_can_evaluate_probe_arguments): Likewise.
10558 (dtrace_evaluate_probe_argument): Likewise.
10559 (dtrace_compile_to_ax): Likewise.
10560 (dtrace_probe_destroy): Likewise.
10561 (dtrace_gen_info_probes_table_header): Likewise.
10562 (dtrace_gen_info_probes_table_values): Likewise.
10563 (dtrace_probe_is_enabled): Likewise.
10564 (dtrace_probe_ops): New variable.
10565 (info_probes_dtrace_command): New function.
10566 (_initialize_dtrace_probe): Likewise.
10567 (dtrace_type_name): Likewise.
10568
10569 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10570
10571 * gdbarch.sh (dtrace_parse_probe_argument): New.
10572 (dtrace_probe_is_enabled): Likewise.
10573 (dtrace_enable_probe): Likewise.
10574 (dtrace_disable_probe): Likewise.
10575 * gdbarch.c: Regenerate.
10576 * gdbarch.h: Regenerate.
10577
10578 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10579
10580 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10581 stap_probe_ops for `enable_probe' and `disable_probe'.
10582 * probe.c (enable_probes_command): New function.
10583 (disable_probes_command): Likewise.
10584 (_initialize_probe): Define the cli commands `enable probe' and
10585 `disable probe'.
10586 (parse_probe_linespec): New function.
10587 (info_probes_for_ops): Use parse_probe_linespec.
10588 * probe.h (probe_ops): New hooks `enable_probe' and
10589 `disable_probe'.
10590
10591 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10592
10593 * probe.c (compute_probe_arg): Moved from stap-probe.c
10594 (compile_probe_arg): Likewise.
10595 (probe_funcs): Likewise.
10596 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10597 (compile_probe_arg): Likewise.
10598 (probe_funcs): Likewise.
10599
10600 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10601
10602 * probe.c (print_ui_out_not_applicables): New function.
10603 (exists_probe_with_pops): Likewise.
10604 (info_probes_for_ops): Do not include column headers for probe
10605 types for which no probe has been actually found on any object.
10606 Also invoke `print_ui_out_not_applicables' in order to match the
10607 column rows with the header when probes of several types are
10608 listed.
10609 Print the "Type" column.
10610 * probe.h (probe_ops): Added a new probe operation `type_name'.
10611 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10612 (stap_type_name): New function.
10613
10614 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10615
10616 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10617 (key_is_command_char): Delete.
10618
10619 2015-02-17 Pedro Alves <palves@redhat.com>
10620
10621 * tui/tui.c (tui_enable): Resize windows before anything
10622 might show a window.
10623
10624 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10625
10626 PR gdb/17984
10627 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10628 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10629 call.
10630 * aarch64-tdep.h (tdesc_aarch64): Declare.
10631
10632 2015-02-12 Mark Wielaard <mjw@redhat.com>
10633
10634 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10635
10636 2015-02-13 Doug Evans <dje@google.com>
10637
10638 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10639 anonymous_namespace to is_in_anonymous for consistency with the rest
10640 of the file.
10641 (cp_lookup_bare_symbol): Fix typo in comment.
10642 (cp_search_static_and_baseclasses): Ditto.
10643 (search_symbol_list): Use vertical space in comment better.
10644 (reset_directive_searched): Ditto. Fix typo.
10645 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10646
10647 2015-02-13 Yao Qi <yao.qi@arm.com>
10648
10649 * MAINTAINERS: Update my email address.
10650
10651 2015-02-12 Doug Evans <dje@google.com>
10652
10653 * symtab.c (completion_list_add_name): Fix memory leak.
10654
10655 2015-02-12 Doug Evans <dje@google.com>
10656
10657 * completer.c (complete_line): Remove incorrect comment.
10658
10659 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10660
10661 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10662 (py_print_frame): Use RETURN_MASK_ERROR.
10663
10664 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10665
10666 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10667 function comment. Wrap all function that can throw in cleanups.
10668 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10669 cleanups.
10670
10671 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10672
10673 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10674 Remove the error label.
10675
10676 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10677
10678 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10679 with goto first, indent the former else codepath left. Put variable
10680 'elided' to a new inner block.
10681
10682 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10683
10684 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10685
10686 2015-02-11 Pedro Alves <palves@redhat.com>
10687
10688 * xcoffread.c (within_function): Delete.
10689
10690 2015-02-11 Tom Tromey <tromey@redhat.com>
10691 Pedro Alves <palves@redhat.com>
10692
10693 * breakpoint.c (base_breakpoint_ops): Delete.
10694 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10695 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10696 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10697 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10698 * python/py-arch.c (arch_object_type): Make extern.
10699 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10700 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10701 * python/py-cmd.c (cmdpy_object_type): Make extern.
10702 * python/py-continueevent.c (continue_event_object_type)
10703 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10704 parameter. Update all callers.
10705 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10706 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10707 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10708 * python/py-function.c (fnpy_object_type): Make extern.
10709 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10710 * python/py-infevents.c (call_pre_event_object_type)
10711 (inferior_call_post_event_object_type).
10712 (memory_changed_event_object_type): Make extern.
10713 * python/py-infthread.c (thread_object_type): Make extern.
10714 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10715 * python/py-linetable.c (linetable_entry_object_type)
10716 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10717 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10718 (clear_objfiles_event_object_type): Make extern.
10719 * python/py-objfile.c (objfile_object_type): Make extern.
10720 * python/py-param.c (parmpy_object_type): Make extern.
10721 * python/py-progspace.c (pspace_object_type): Make extern.
10722 * python/py-signalevent.c (signal_event_object_type): Make extern.
10723 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10724 * python/py-type.c (type_object_type, field_object_type)
10725 (type_iterator_object_type): Make extern.
10726 * python/python.c (python_extension_script_ops)
10727 (python_extension_ops): Make extern.
10728 * stap-probe.c (stap_probe_ops): Make extern.
10729
10730 2015-02-11 Pedro Alves <pedro@codesourcery.com>
10731
10732 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10733 because the event thread is not the current thread.
10734
10735 2015-02-11 Doug Evans <xdje42@gmail.com>
10736
10737 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10738 been initialized yet, return NULL.
10739
10740 2015-02-11 Doug Evans <dje@google.com>
10741
10742 * symfile.h (new_symfile_objfile): Delete.
10743 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10744 All callers updated.
10745
10746 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10747
10748 * tui/tui-io.c (tui_handle_resize_during_io): Call
10749 tui_update_gdb_sizes() after resizing the screen.
10750 * tui/tui.c (tui_enable): Resize the terminal before
10751 calling tui_update_gdb_sizes().
10752
10753 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10754
10755 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10756 line before printing a newline.
10757
10758 2015-02-11 Mark Wielaard <mjw@redhat.com>
10759
10760 * utils.c (producer_is_gcc): Return true or false.
10761
10762 2015-02-10 Mark Wielaard <mjw@redhat.com>
10763
10764 * utils.h (producer_is_gcc): Change return type to bool. Add major
10765 argument.
10766 * utils.c (producer_is_gcc): Likewise.
10767 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10768 * dwarf2read.c (check_producer): Likewise.
10769
10770 2015-02-10 Pedro Alves <palves@redhat.com>
10771
10772 * infrun.c (displaced_step_fixup): Switch to the event thread
10773 before calling gdbarch_displaced_step_fixup.
10774
10775 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10776
10777 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10778
10779 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10780
10781 * ada-varobj.c (ada_name_of_child): Constify parent.
10782 (ada_path_expr_of_child): Same.
10783 (ada_value_of_child): Same.
10784 (ada_type_of_child): Same.
10785 * c-varobj.c (c_is_path_expr_parent): Same.
10786 (c_describe_child): Same.
10787 (c_name_of_child): Same.
10788 (c_value_of_child): Same.
10789 (c_type_of_child): Same.
10790 (cplus_number_of_children): Same.
10791 (cplus_describe_child): Constify var.
10792 (cplus_name_of_child): Constify parent.
10793 (cplus_value_of_child): Same.
10794 (cplus_type_of_child): Same.
10795 * jv-varobj.c (java_name_of_child): Same.
10796 (java_value_of_child): Same.
10797 (java_type_of_child): Same.
10798 * varobj.c (value_of_child): Same.
10799 (varobj_default_is_path_expr_parent): Constify var, parent and return
10800 value.
10801 (varobj_get_path_expr): Constify var, modify path_expr through
10802 mutable_var.
10803 (install_new_value): Constify parent.
10804 (value_of_child): Constify parent.
10805 * varobj.h (struct varobj): Constify parent.
10806 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10807 type_of_child.
10808 (varobj_get_path_expr): Constify var.
10809 (varobj_get_path_expr_parent): Constify var and return value.
10810
10811 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
10812
10813 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10814 (arm_prologue_this_id): Move PC and SP limit checks to
10815 arm_prologue_unwind_stop_reason.
10816 (arm_prologue_unwind) <stop_reason> : Set to
10817 arm_prologue_unwind_stop_reason.
10818
10819 2015-02-09 Mark Wielaard <mjw@redhat.com>
10820
10821 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10822 DW_LANG_Fortran08 as language_fortran.
10823
10824 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10825
10826 PR remote/17946
10827 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10828 of pointer against char.
10829
10830 2015-02-09 Mark Wielaard <mjw@redhat.com>
10831
10832 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10833 (c_type_print_modifier): Likewise.
10834 * dwarf2read.c (read_tag_atomic_type): New function.
10835 (read_type_die_1): Handle DW_TAG_atomic_type.
10836 * gdbtypes.c (make_atomic_type): New function.
10837 (recursive_dump_type): Handle TYPE_ATOMIC.
10838 * gdbtypes.h (enum type_flag_values): Renumber.
10839 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10840 (TYPE_ATOMIC): New macro.
10841 (make_atomic_type): Declare.
10842
10843 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10844
10845 * btrace.c (ftrace_find_call): Skip gaps.
10846 (ftrace_new_function): Initialize level.
10847 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10848 (ftrace_new_switch): Update
10849 level computation.
10850 (ftrace_new_gap): New.
10851 (ftrace_update_function): Create new function after gap.
10852 (btrace_compute_ftrace_bts): Create gap on error.
10853 (btrace_stitch_bts): Update parameters. Clear trace if it
10854 becomes empty.
10855 (btrace_stitch_trace): Update parameters. Update callers.
10856 (btrace_clear): Reset the number of gaps.
10857 (btrace_insn_get): Return NULL if the iterator points to a gap.
10858 (btrace_insn_number): Return zero if the iterator points to a gap.
10859 (btrace_insn_end): Allow gaps at the end.
10860 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10861 (btrace_find_insn_by_number): Assert that the found iterator does
10862 not point to a gap.
10863 (btrace_call_next, btrace_call_prev): Assert that the last function
10864 is not a gap.
10865 * btrace.h (btrace_bts_error): New.
10866 (btrace_function): Update comment.
10867 (btrace_function) <insn, insn_offset, number>: Update comment.
10868 (btrace_function) <errcode>: New.
10869 (btrace_thread_info) <ngaps>: New.
10870 (btrace_thread_info) <replay>: Update comment.
10871 (btrace_insn_get): Update comment.
10872 * record-btrace.c (btrace_ui_out_decode_error): New.
10873 (record_btrace_info): Print number of gaps.
10874 (btrace_insn_history, btrace_call_history): Call
10875 btrace_ui_out_decode_error for gaps.
10876 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10877
10878 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10879
10880 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10881 * nat/linux-btrace.c: (btrace_this_cpu): New.
10882 (cpu_supports_bts): Call btrace_this_cpu.
10883 (intel_supports_bts): Add cpu parameter.
10884
10885 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10886
10887 * btrace.h (btrace_insn_class): New.
10888 (btrace_insn) <size, iclass>: New.
10889 * btrace.c (ftrace_find_call): Update parameters. Update users.
10890 Use instruction classification.
10891 (ftrace_new_return): Update parameters. Update users.
10892 (ftrace_update_function): Update parameters. Update users. Use
10893 instruction classification.
10894 (ftrace_update_insns): Update parameters. Update users.
10895 (ftrace_classify_insn): New.
10896 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
10897 TRY_CATCH around call to gdb_insn_length.
10898
10899 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10900
10901 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
10902 Update parameters. Update users.
10903
10904 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10905
10906 * btrace.c (parse_xml_btrace_conf_bts): Add size.
10907 (btrace_conf_bts_attributes): New.
10908 (btrace_conf_children): Add attributes.
10909 * common/btrace-common.h (btrace_config_bts): New.
10910 (btrace_config)<bts>: New.
10911 (btrace_config): Update comment.
10912 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
10913 Use config.
10914 * features/btrace-conf.dtd: Increment version. Add size
10915 attribute to bts element.
10916 * record-btrace.c (set_record_btrace_bts_cmdlist,
10917 show_record_btrace_bts_cmdlist): New.
10918 (record_btrace_adjust_size, record_btrace_print_bts_conf,
10919 record_btrace_print_conf, cmd_set_record_btrace_bts,
10920 cmd_show_record_btrace_bts): New.
10921 (record_btrace_info): Call record_btrace_print_conf.
10922 (_initialize_record_btrace): Add commands.
10923 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
10924 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
10925 (btrace_sync_conf): Synchronize bts size.
10926 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
10927 * NEWS: Announce new commands and new packets.
10928
10929 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10930
10931 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
10932 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
10933 (x86_linux_btrace_conf): New.
10934 (x86_linux_create_target): Initialize to_btrace_conf.
10935 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
10936 Check format. Split into this and ...
10937 (linux_enable_bts): ... this.
10938 (linux_btrace_conf): New.
10939 (perf_event_skip_record): Renamed into ...
10940 (perf_event_skip_bts_record): ... this. Updated users.
10941 (linux_disable_btrace): Split into this and ...
10942 (linux_disable_bts): ... this.
10943 (linux_read_btrace): Check format.
10944 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
10945 (linux_btrace_conf): New.
10946 (btrace_target_info)<ptid>: Moved.
10947 (btrace_target_info)<conf>: New.
10948 (btrace_target_info): Split into this and ...
10949 (btrace_tinfo_bts): ... this. Updated users.
10950 * btrace.c (btrace_enable): Update parameters.
10951 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
10952 (btrace_conf_children, btrace_conf_attributes)
10953 (btrace_conf_elements): New.
10954 * btrace.h (btrace_enable): Update parameters.
10955 (btrace_conf, parse_xml_btrace_conf): New.
10956 * common/btrace-common.h (btrace_config): New.
10957 * feature/btrace-conf.dtd: New.
10958 * record-btrace.c (record_btrace_conf): New.
10959 (record_btrace_cmdlist): New.
10960 (record_btrace_enable_warn, record_btrace_open): Pass
10961 &record_btrace_conf.
10962 (record_btrace_info): Print recording format.
10963 (cmd_record_btrace_bts_start): New.
10964 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
10965 (_initialize_record_btrace): Add "record btrace bts" subcommand.
10966 Add "record bts" alias command.
10967 * remote.c (remote_state)<btrace_config>: New.
10968 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
10969 (remote_protocol_features): Add qXfer:btrace-conf:read.
10970 (remote_open_1): Call remote_btrace_reset.
10971 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
10972 (btrace_target_info)<conf>: New.
10973 (btrace_sync_conf, btrace_read_config): New.
10974 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
10975 btrace_read_conf.
10976 (remote_btrace_conf): New.
10977 (init_remote_ops): Initialize to_btrace_conf.
10978 (_initialize_remote): Add qXfer:btrace-conf packet.
10979 * target.c (target_enable_btrace): Update parameters.
10980 (target_btrace_conf): New.
10981 * target.h (target_enable_btrace): Update parameters.
10982 (target_btrace_conf): New.
10983 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
10984 (target_ops)<to_enable_btrace>: Update parameters and comment.
10985 (target_ops)<to_btrace_conf>: New.
10986 * target-delegates: Regenerate.
10987 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
10988 (target_debug_print_const_struct_btrace_target_info_p): New.
10989 * NEWS: Announce new command and new packet.
10990
10991 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10992
10993 * nat/linux-btrace.h (perf_event_buffer): New.
10994 (btrace_target_info) <buffer, size, data_head>: Replace with ...
10995 <bts>: ... this.
10996 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
10997 (perf_event_buffer_size, perf_event_buffer_begin)
10998 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
10999 Updated users.
11000 (perf_event_new_data): New.
11001
11002 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11003
11004 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11005 * record-btrace.c (record_btrace_open): Remove call to
11006 target_supports_btrace.
11007 * remote.c (remote_supports_btrace): Update parameters.
11008 * target.c (target_supports_btrace): Update parameters.
11009 * target.h (to_supports_btrace, target_supports_btrace): Update
11010 parameters.
11011 * target-delegates.c: Regenerate.
11012 * target-debug.h (target_debug_print_enum_btrace_format): New.
11013 * nat/linux-btrace.c
11014 (kernel_supports_btrace): Rename into ...
11015 (kernel_supports_bts): ... this. Update users. Update warning text.
11016 (intel_supports_btrace): Rename into ...
11017 (intel_supports_bts): ... this. Update users.
11018 (cpu_supports_btrace): Rename into ...
11019 (cpu_supports_bts): ... this. Update users.
11020 (linux_supports_btrace): Update parameters. Split into this and ...
11021 (linux_supports_bts): ... this.
11022 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11023
11024 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11025
11026 * Makefile.in (SFILES): Add common/btrace-common.c.
11027 (COMMON_OBS): Add common/btrace-common.o.
11028 (btrace-common.o): Add build rules.
11029 * btrace.c (parse_xml_btrace): Update parameters.
11030 (parse_xml_btrace_block): Set format field.
11031 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11032 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11033 (btrace_compute_ftrace): Split into this and...
11034 (btrace_compute_ftrace_bts): ...this.
11035 (btrace_stitch_trace): Split into this and...
11036 (btrace_stitch_bts): ...this.
11037 * btrace.h (parse_xml_btrace): Update parameters.
11038 (make_cleanup_btrace_data): New.
11039 * common/btrace-common.c: New.
11040 * common/btrace-common.h: Include common-defs.h.
11041 (btrace_block_s): Update comment.
11042 (btrace_format): New.
11043 (btrace_format_string): New.
11044 (btrace_data_bts): New.
11045 (btrace_data): New.
11046 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11047 * remote.c (remote_read_btrace): Update parameters.
11048 * target.c (target_read_btrace): Update parameters.
11049 * target.h (target_read_btrace): Update parameters.
11050 (target_ops)<to_read_btrace>: Update parameters.
11051 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11052 * target-delegates.c: Regenerate.
11053 * target-debug (target_debug_print_struct_btrace_data_p): New.
11054 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11055 (linux_read_bts): ...this.
11056 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11057
11058 2015-02-06 Doug Evans <dje@google.com>
11059
11060 * remote-m32r-sdi.c: Include symfile.h.
11061
11062 2015-02-06 Doug Evans <dje@google.com>
11063
11064 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11065 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11066 to here.
11067
11068 2015-02-06 Pedro Alves <palves@redhat.com>
11069
11070 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11071
11072 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11073
11074 PR gdb/15678
11075 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11076 (enable_count_command): Check args for NULL value.
11077
11078 2015-02-05 Doug Evans <xdje42@gmail.com>
11079
11080 * guile/scm-frame.c: Fix spelling errors in a comment.
11081
11082 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11083
11084 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11085 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11086 return type.
11087
11088 2015-02-04 Pedro Alves <palves@redhat.com>
11089
11090 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11091 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11092 returns true.
11093 (resume_stopped_resumed_lwps): Don't check whether the thread is
11094 marked as executing.
11095 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11096
11097 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11098
11099 * regset.h (struct regset): Add flags field.
11100 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11101 * corelow.c (get_core_register_section): Add warning if the size
11102 exceeds the requested size and the regset does not have the
11103 REGSET_VARIABLE_SIZE flag set.
11104 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11105 flag.
11106 * armbsd-tdep.c (armbsd_gregset): Likewise.
11107 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11108 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11109 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11110 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11111
11112 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11113
11114 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11115 For ".reg-xstate", explicitly specify the requested section size
11116 via X86_XSTATE_SIZE instead of just 0 on input and
11117 X86_XSTATE_MAX_SIZE on output.
11118 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11119 Likewise.
11120
11121 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11122
11123 PR corefiles/17808:
11124 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11125 function type, particularly its SIZE parameter.
11126 * gdbarch.h: Regenerate.
11127 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11128 actual against required size using ">=" instead of "==".
11129 (amd64_collect_fpregset): Likewise.
11130 * i386-tdep.c (i386_supply_gregset): Likewise.
11131 (i386_collect_gregset): Likewise.
11132 (i386_supply_fpregset): Likewise.
11133 (i386_collect_fpregset): Likewise.
11134 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11135 (mips_fill_gregset_wrapper): Likewise.
11136 (mips_supply_fpregset_wrapper): Likewise.
11137 (mips_fill_fpregset_wrapper): Likewise.
11138 (mips64_supply_gregset_wrapper): Likewise.
11139 (mips64_fill_gregset_wrapper): Likewise.
11140 (mips64_supply_fpregset_wrapper): Likewise.
11141 (mips64_fill_fpregset_wrapper): Likewise.
11142 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11143 (am33_supply_fpregset_method): Likewise.
11144 (am33_collect_gregset_method): Likewise.
11145 (am33_collect_fpregset_method): Likewise.
11146
11147 2015-02-04 Doug Evans <dje@google.com>
11148 Pedro Alves <palves@redhat.com>
11149 Eli Zaretskii <eliz@gnu.org>
11150
11151 PR tui/17810
11152 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11153 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11154 * tui/tui-file.c: #include tui/tui-command.h.
11155 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11156 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11157 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11158
11159 2015-02-04 Pedro Alves <palves@redhat.com>
11160
11161 Fix build breakage.
11162 * event-loop.c (gdb_do_one_event): Add default switch case.
11163
11164 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11165
11166 Filter out inferior gcc option -fpreprocessed.
11167 * compile/compile.c (filter_args): New function.
11168 (get_args): Use it.
11169
11170 2015-02-03 Pedro Alves <palves@redhat.com>
11171
11172 * event-loop.c: Don't declare nor define a queue type for
11173 gdb_event_p.
11174 (event_queue): Delete.
11175 (create_event, create_file_event, gdb_event_xfree)
11176 (initialize_event_loop, process_event): Delete.
11177 (gdb_do_one_event): Return as soon as one event is handled.
11178 (handle_file_event): Change prototype. Used the passed in
11179 file_handler pointer and ready_mask instead of looping over all
11180 file handlers.
11181 (gdb_wait_for_event): Update the poll/select timeouts before
11182 blocking. Run event handlers directly instead of queueing events.
11183 Return as soon as one event is handled.
11184 (struct async_event_handler_data): Delete.
11185 (invoke_async_event_handler): Delete.
11186 (check_async_event_handlers): Change return type to int. Run
11187 event handlers directly instead of queueing events. Return as
11188 soon as one event is handled.
11189 (handle_timer_event): Delete.
11190 (update_wait_timeout): New function, factored out from
11191 poll_timers.
11192 (poll_timers): Reimplement.
11193 * event-loop.h (initialize_event_loop): Delete declaration.
11194 * top.c (gdb_init): Don't call initialize_event_loop.
11195
11196 2015-02-03 Pedro Alves <palves@redhat.com>
11197
11198 * event-loop.c (clear_async_event_handler): New function.
11199 * event-loop.h (clear_async_event_handler): New declaration.
11200 * record-btrace.c (record_btrace_async): New function.
11201 (init_record_btrace_ops): Install record_btrace_async.
11202 * record-full.c (record_full_async): New function.
11203 (record_full_resume): Don't mark the async event source here.
11204 (init_record_full_ops): Install record_full_async.
11205 (record_full_core_resume): Don't mark the async event source here.
11206 (init_record_full_core_ops): Install record_full_async.
11207 * remote.c (remote_async): Mark and clear the async stop reply
11208 queue event-loop token as appropriate.
11209
11210 2015-02-03 Pedro Alves <palves@redhat.com>
11211
11212 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11213 target_is_async_p instead of target_can_async.
11214 (linux_nat_wait): Use target_is_async_p instead of
11215 target_can_async. Don't enable async here.
11216 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11217 target_is_async_p instead of target_can_async.
11218
11219 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11220
11221 * varobj.h (lang_varobj_ops): Mention which return values need
11222 to be freed.
11223
11224 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11225
11226 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11227
11228 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11229
11230 PR gdb/17856:
11231 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11232 results found in the cache.
11233
11234 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11235
11236 PR gdb/17854:
11237 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11238 when allocating a new one.
11239
11240 2015-02-01 Tom Tromey <tom@tromey.com>
11241
11242 * MAINTAINERS: Remove myself.
11243
11244 2015-01-31 Doug Evans <xdje42@gmail.com>
11245
11246 * dwarf2read.c (process_structure_scope): Update setting of
11247 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11248 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11249 (set_type_vptr_fieldno): New function.
11250 (internal_type_vptr_basetype): New function.
11251 (set_type_vptr_basetype): New function.
11252 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11253 TYPE_VPTR_BASETYPE.
11254 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11255 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11256 (print_cplus_stuff): ... moved here.
11257 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11258 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11259 moved to ...
11260 (struct cplus_struct_type): ... here. All uses updated.
11261 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11262 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11263 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11264 * stabsread.c (read_tilde_fields): Update setting of
11265 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11266
11267 2015-01-31 Doug Evans <xdje42@gmail.com>
11268
11269 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11270 to self_p.
11271 (cp_print_class_member): Rename local domain to self_type.
11272 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11273 domain_type to self_type.
11274 (set_die_type) <need_gnat_info>: Handle
11275 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11276 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11277 TYPE_SPECIFIC_SELF_TYPE.
11278 * gdbtypes.c (internal_type_self_type): New function.
11279 (set_type_self_type): New function.
11280 (smash_to_memberptr_type): Rename parameter domain to self_type.
11281 Update setting of TYPE_SELF_TYPE.
11282 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11283 (smash_to_method_type): Rename parameter domain to self_type.
11284 Update setting of TYPE_SELF_TYPE.
11285 (check_stub_method): Call smash_to_method_type.
11286 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11287 (copy_type_recursive): Ditto.
11288 * gdbtypes.h (enum type_specific_kind): New value
11289 TYPE_SPECIFIC_SELF_TYPE.
11290 (struct main_type) <type_specific>: New member self_type.
11291 (struct cplus_struct_type) <fn_field.type>: Update comment.
11292 (TYPE_SELF_TYPE): Rewrite.
11293 (internal_type_self_type, set_type_self_type): Declare.
11294 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11295 self_type.
11296 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11297 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11298 TYPE_TARGET_TYPE.
11299 * stabsread.c (read_member_functions): Mark methods with
11300 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11301 TYPE_SELF_TYPE.
11302
11303 2015-01-31 Doug Evans <xdje42@gmail.com>
11304
11305 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11306 All uses updated.
11307
11308 2015-01-31 Doug Evans <xdje42@gmail.com>
11309
11310 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11311 or unions. Return zero if union.
11312 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11313 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11314 gnuv3_get_vtable.
11315 (compute_vtable_size): Assert only passed structs.
11316 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11317
11318 2015-01-31 Doug Evans <xdje42@gmail.com>
11319
11320 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11321 kinds.
11322
11323 2015-01-31 Gary Benson <gbenson@redhat.com>
11324 Doug Evans <dje@google.com>
11325
11326 PR cli/9007
11327 PR cli/11920
11328 PR cli/15548
11329 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11330 reached.
11331 * common/common-exceptions.h (enum errors)
11332 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11333 * completer.h (get_max_completions_reached_message): New declaration.
11334 (max_completions): Likewise.
11335 (completion_tracker_t): New typedef.
11336 (new_completion_tracker): New declaration.
11337 (make_cleanup_free_completion_tracker): Likewise.
11338 (maybe_add_completion_enum): New enum.
11339 (maybe_add_completion): New declaration.
11340 (throw_max_completions_reached_error): Likewise.
11341 * completer.c (max_completions): New global variable.
11342 (new_completion_tracker): New function.
11343 (free_completion_tracker): Likewise.
11344 (make_cleanup_free_completion_tracker): Likewise.
11345 (maybe_add_completions): Likewise.
11346 (throw_max_completions_reached_error): Likewise.
11347 (complete_line): Remove duplicates and limit result to max_completions
11348 entries.
11349 (get_max_completions_reached_message): New function.
11350 (gdb_display_match_list): Handle max_completions.
11351 (_initialize_completer): New declaration and function.
11352 * symtab.c: Include completer.h.
11353 (completion_tracker): New static variable.
11354 (completion_list_add_name): Call maybe_add_completion.
11355 (default_make_symbol_completion_list_break_on_1): Renamed from
11356 default_make_symbol_completion_list_break_on. Maintain
11357 completion_tracker across calls to completion_list_add_name.
11358 (default_make_symbol_completion_list_break_on): New function.
11359 * top.c (init_main): Set rl_completion_display_matches_hook.
11360 * tui/tui-io.c: Include completer.h.
11361 (tui_old_rl_display_matches_hook): New static global.
11362 (tui_rl_display_match_list): Notify user if max-completions reached.
11363 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11364 * NEWS (New Options): Mention set/show max-completions.
11365
11366 2015-01-31 Gary Benson <gbenson@redhat.com>
11367
11368 * symtab.c (struct add_name_data) <code>: New field.
11369 Updated comments.
11370 (add_symtab_completions): New function.
11371 (symtab_expansion_callback): Likewise.
11372 (default_make_symbol_completion_list_break_on): Set datum.code.
11373 Move minimal symbol scan before calling expand_symtabs_matching.
11374 Scan known primary symtabs for externs and statics before calling
11375 expand_symtabs_matching. Pass symtab_expansion_callback as
11376 expansion_notify argument to expand_symtabs_matching. Do not scan
11377 primary symtabs for externs and statics after calling
11378 expand_symtabs_matching.
11379
11380 2015-01-31 Gary Benson <gbenson@redhat.com>
11381
11382 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11383 (struct quick_symbol_functions) <expand_symtabs_matching>:
11384 New argument expansion_notify. All uses updated.
11385 (expand_symtabs_matching): New argument expansion_notify.
11386 All uses updated.
11387 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11388 Also print expansion notify.
11389 * symtab.c (expand_symtabs_matching_via_partial): Call
11390 expansion_notify whenever a partial symbol table is expanded.
11391 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11392 expansion_notify whenever a symbol table is instantiated.
11393
11394 2015-01-31 Doug Evans <xdje42@gmail.com>
11395
11396 * cli-out.c: #include completer.h, readline/readline.h.
11397 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11398 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11399 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11400 * cli-out.h (cli_display_match_list): Declare.
11401 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11402 (ELLIPSIS_LEN): Ditto.
11403 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11404 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11405 (gdb_fnprint, gdb_print_filename): Ditto.
11406 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11407 (gdb_display_match_list): Ditto.
11408 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11409 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11410 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11411 (match_list_displayer): New struct.
11412 (gdb_display_match_list): Declare.
11413 * top.c (init_main): Set rl_completion_display_matches_hook.
11414 * tui/tui-io.c: #include completer.h.
11415 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11416 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11417 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11418 (tui_mld_getc, tui_mld_read_key): Ditto.
11419 (tui_rl_display_match_list): Rewrite.
11420 (tui_handle_resize_during_io): New arg for_completion. All callers
11421 updated.
11422
11423 2015-01-31 Doug Evans <xdje42@gmail.com>
11424
11425 Add symbol lookup cache.
11426 * NEWS: Document new options and commands.
11427 * symtab.c (symbol_cache_key): New static global.
11428 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11429 (SYMBOL_LOOKUP_FAILED): New macro.
11430 (symbol_cache_slot_state): New enum.
11431 (block_symbol_cache): New struct.
11432 (symbol_cache): New struct.
11433 (new_symbol_cache_size, symbol_cache_size): New static globals.
11434 (hash_symbol_entry, eq_symbol_entry): New functions.
11435 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11436 (make_symbol_cache, free_symbol_cache): New functions.
11437 (get_symbol_cache, symbol_cache_cleanup): New function.
11438 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11439 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11440 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11441 (symbol_cache_flush, symbol_cache_dump): New functions.
11442 (maintenance_print_symbol_cache): New function.
11443 (maintenance_flush_symbol_cache): New function.
11444 (symbol_cache_stats): New function.
11445 (maintenance_print_symbol_cache_statistics): New function.
11446 (symtab_new_objfile_observer): New function.
11447 (symtab_free_objfile_observer): New function.
11448 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11449 (_initialize_symtab): Init symbol_cache_key. New parameter
11450 maint symbol-cache-size. New maint commands print symbol-cache,
11451 print symbol-cache-statistics, flush-symbol-cache.
11452 Install new_objfile, free_objfile observers.
11453
11454 2015-01-31 Joel Brobecker <brobecker@adacore.com>
11455
11456 PR symtab/17855
11457 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11458 to end.
11459
11460 2015-01-31 Doug Evans <xdje42@gmail.com>
11461
11462 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11463 * auto-load.c: #include ctype.h.
11464 (struct auto_load_pspace_info): Replace member loaded_scripts with
11465 new members loaded_script_files, loaded_script_texts.
11466 (auto_load_pspace_data_cleanup): Update.
11467 (init_loaded_scripts_info): Update.
11468 (get_auto_load_pspace_data_for_loading): Update.
11469 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11470 updated.
11471 (maybe_add_script_text): New function.
11472 (clear_section_scripts): Update.
11473 (source_script_file, execute_script_contents): New functions.
11474 (source_section_scripts): Add support for
11475 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11476 (print_scripts): New function.
11477 (auto_load_info_scripts): Also print inlined scripts.
11478 (maybe_print_unsupported_script_warning): Renamed from
11479 unsupported_script_warning_print. All callers updated.
11480 (maybe_print_script_not_found_warning): Renamed from
11481 script_not_found_warning_print. All callers updated.
11482 * extension-priv.h (struct extension_language_script_ops): New member
11483 objfile_script_executor.
11484 * extension.c (ext_lang_objfile_script_executor): New function.
11485 * extension.h (objfile_script_executor_func): New typedef.
11486 (ext_lang_objfile_script_executor): Declare.
11487 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11488 * guile/guile.c (guile_extension_script_ops): Update.
11489 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11490 * python/python.c (python_extension_script_ops): Update.
11491 (gdbpy_execute_objfile_script): New function.
11492
11493 2015-01-31 Eli Zaretskii <eliz@gnu.org>
11494
11495 * tui/tui-io.c (tui_expand_tabs): New function.
11496 (tui_puts, tui_redisplay_readline): Expand TABs into the
11497 appropriate number of spaces.
11498 * tui/tui-regs.c: Include tui-io.h.
11499 (tui_register_format): Call tui_expand_tabs to expand TABs into
11500 the appropriate number of spaces.
11501 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11502
11503 2015-01-30 Doug Evans <dje@google.com>
11504
11505 * NEWS: "info source" command now display producer string if present.
11506 * source.c (source_info): Print producer string if present.
11507
11508 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11509
11510 * varobj.c (varobj_delete): Fix comment.
11511
11512 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11513
11514 * varobj.c (create_child): Modify comment.
11515
11516 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11517
11518 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11519 parameter.
11520 (ada_name_of_variable): Same.
11521 (ada_path_expr_of_child): Same.
11522 (ada_value_of_variable): Same.
11523 (ada_value_is_changeable_p): Same.
11524 (ada_value_has_mutated): Same.
11525 * c-varobj.c (varobj_is_anonymous_child): Same.
11526 (c_is_path_expr_parent): Same.
11527 (c_number_of_children): Same.
11528 (c_name_of_variable): Same.
11529 (c_path_expr_of_child): Same.
11530 (get_type): Same.
11531 (c_value_of_variable): Same.
11532 (cplus_number_of_children): Same.
11533 (cplus_name_of_variable): Same.
11534 (cplus_path_expr_of_child): Same.
11535 (cplus_value_of_variable): Same.
11536 * jv-varobj.c (java_number_of_children): Same.
11537 (java_name_of_variable): Same.
11538 (java_path_expr_of_child): Same.
11539 (java_value_of_variable): Same.
11540 * varobj.c (number_of_children): Same.
11541 (name_of_variable): Same.
11542 (is_root_p): Same.
11543 (varobj_ensure_python_env): Same.
11544 (varobj_get_objname): Same.
11545 (varobj_get_expression): Same.
11546 (varobj_get_display_format): Same.
11547 (varobj_get_display_hint): Same.
11548 (varobj_has_more): Same.
11549 (varobj_get_thread_id): Same.
11550 (varobj_get_frozen): Same.
11551 (dynamic_varobj_has_child_method): Same.
11552 (varobj_get_gdb_type): Same.
11553 (is_path_expr_parent): Same.
11554 (varobj_default_is_path_expr_parent): Same.
11555 (varobj_get_language): Same.
11556 (varobj_get_attributes): Same.
11557 (varobj_is_dynamic_p): Same.
11558 (varobj_get_child_range): Same.
11559 (varobj_value_has_mutated): Same.
11560 (varobj_get_value_type): Same.
11561 (number_of_children): Same.
11562 (name_of_variable): Same.
11563 (check_scope): Same.
11564 (varobj_editable_p): Same.
11565 (varobj_value_is_changeable_p): Same.
11566 (varobj_floating_p): Same.
11567 (varobj_default_value_is_changeable_p): Same.
11568
11569 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11570
11571 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11572 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11573 child->path_expr.
11574 (cplus_path_expr_of_child): Same.
11575
11576 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11577
11578 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11579 result.
11580 (mi_cmd_var_info_expression): Same.
11581 * varobj.c (varobj_get_expression): Mention in the comment that
11582 the result must by freed by the caller.
11583
11584 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11585
11586 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11587 varobj_get_type.
11588 (varobj_update_one): Same.
11589 * varobj.c (update_type_if_necessary): Free curr_type_str and
11590 new_type_str.
11591 (varobj_get_type): Specify in comment that the result needs to be
11592 freed by the caller.
11593
11594 2015-01-29 Doug Evans <dje@google.com>
11595
11596 PR symtab/17890
11597 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11598
11599 2015-01-25 Mark Wielaard <mjw@redhat.com>
11600
11601 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11602 * utils.c (producer_is_gcc_ge_4): Likewise.
11603 (producer_is_gcc): New function.
11604 * utils.h (producer_is_gcc): New declaration.
11605
11606 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11607
11608 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11609 kind.
11610 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11611 parameter by "addr_stack" parameter.
11612 (resolve_dynamic_range): Replace "addr" parameter by
11613 "stack_addr" parameter. Update function documentation.
11614 Update code accordingly.
11615 (resolve_dynamic_array, resolve_dynamic_union)
11616 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11617 (resolve_dynamic_type): Update code, following the changes made
11618 to resolve_dynamic_type_internal's interface.
11619 * dwarf2loc.h (struct property_addr_info): New.
11620 (dwarf2_evaluate_property): Replace "address" parameter
11621 by "addr_stack" parameter. Adjust function documentation.
11622 (struct dwarf2_offset_baton): New.
11623 (struct dwarf2_property_baton): Update documentation of
11624 field "referenced_type" to be more general. New field
11625 "offset_info" in union data field.
11626 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11627 parameter by "addr_stack" parameter. Adjust code accordingly.
11628 Add support for PROP_ADDR_OFFSET properties.
11629 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11630 DW_AT_data_member_location attributes as well. Use case
11631 statements instead of if/else condition.
11632
11633 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11634
11635 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11636 Return zero if PARENT_VALUE is NULL and parent_type's
11637 range type is dynamic.
11638
11639 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11640
11641 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11642 nonzero if the type's subtype is dynamic.
11643 (resolve_dynamic_range): Also resolve the range's subtype.
11644
11645 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
11646
11647 Pushed by Joel Brobecker <brobecker@adacore.com>.
11648 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11649
11650 2015-01-27 Doug Evans <dje@google.com>
11651
11652 * NEWS: Mention gdb.Objfile.username.
11653 * python/py-objfile.c (objfpy_get_username): New function.
11654 (objfile_getset): Add "username".
11655
11656 2015-01-24 Mark Wielaard <mjw@redhat.com>
11657
11658 * stack.c (return_command): Markup warning message with _.
11659
11660 2015-01-24 Doug Evans <xdje42@gmail.com>
11661
11662 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11663
11664 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11665
11666 Fix 100x slowdown regression on DWZ files.
11667 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11668 (struct line_header): Add offset and offset_in_dwz.
11669 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11670 (free_line_header_voidp): New declaration.
11671 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11672 functions.
11673 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11674 (handle_DW_AT_stmt_list): Use line_header_hash.
11675 (free_line_header_voidp): New function.
11676 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11677 (dwarf_decode_lines): New parameter decode_mapping, use it.
11678 (dwarf2_free_objfile): Free line_header_hash.
11679
11680 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11681
11682 PR gdb/17416
11683 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11684 value_ind.
11685
11686 2015-01-15 Mark Wielaard <mjw@redhat.com>
11687
11688 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11689 DW_AT_noreturn.
11690 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11691 calling_convention an 8 bit bit field.
11692 (TYPE_NO_RETURN): New macro.
11693 * infcmd.c (finish_command): Query if function does not return
11694 normally.
11695 * stack.c (return_command): Likewise.
11696
11697 2015-01-23 Pedro Alves <palves@redhat.com>
11698
11699 * linux-nat.c (linux_is_async_p): New macro.
11700 (linux_nat_is_async_p):
11701 (linux_nat_terminal_inferior): Check whether the target can async
11702 instead of whether it is already async.
11703 (linux_nat_terminal_ours): Don't check whether the target is
11704 async.
11705 (linux_async_pipe): Use linux_is_async_p.
11706
11707 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11708
11709 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11710 '-ascending'.
11711 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11712 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11713 Sort tp_array using tp_array_compar.
11714 (_initialize_thread): Extend thread_apply_all_command help.
11715
11716 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11717
11718 * corelow.c (core_open): Call also thread_command.
11719 * gdbthread.h (thread_command): New prototype moved from ...
11720 * thread.c (thread_command): ... here.
11721 (thread_command): Make it global.
11722
11723 2015-01-22 Pedro Alves <palves@redhat.com>
11724
11725 * configure.ac [*mingw32*]: Check $curses_found instead of
11726 $prefer_curses.
11727 * configure: Regenerate.
11728 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11729 HAVE_NCURSES_NCURSES_H checks.
11730
11731 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11732
11733 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11734 fails with the 1st arg NULL, try again with "unknown". Don't test
11735 the "cup" capability: it isn't supported by the Windows port of
11736 ncurses, but the Windows console driver is still capable of
11737 supporting TUI.
11738
11739 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11740
11741 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11742
11743 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11744
11745 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11746 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11747 reason that "make TAGS" is broken.
11748
11749 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11750
11751 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11752 and check additional store instructions.
11753
11754 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11755
11756 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11757
11758 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11759
11760 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11761 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11762 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11763 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11764 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11765 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11766 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11767 ppc_process_record_op19, ppc_process_record_op31,
11768 ppc_process_record_op59, ppc_process_record_op60,
11769 ppc_process_record_op63): Likewise.
11770
11771 2015-01-20 Joel Brobecker <brobecker@adacore.com>
11772
11773 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11774 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11775 strerror.
11776
11777 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
11778
11779 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11780 ppc_process_record_op31, ppc_process_record_op59,
11781 ppc_process_record_op60, ppc_process_record_op63,
11782 ppc_process_record): Fix -Wformat warning.
11783 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11784 Remove unused variables.
11785
11786 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11787
11788 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11789
11790 2015-01-19 Eli Zaretskii <eliz@gnu.org>
11791
11792 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11793 CONFIG_OBS if not building with a curses library.
11794 * configure: Regenerate.
11795
11796 * windows-termcap.c: Include defs.h. Make the whole body empty if
11797 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11798 HAVE_NCURSES_NCURSES_H is defined.
11799
11800 2015-01-19 Joel Brobecker <brobecker@adacore.com>
11801
11802 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11803 from end of line to start of next line.
11804
11805 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11806
11807 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11808 Scan PLT stub backward for reverse debugging.
11809 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11810
11811 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11812 Ulrich Weigand <uweigand@de.ibm.com>
11813
11814 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11815 gdb_target_obs.
11816 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11817 record.
11818 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11819 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11820 (ppc_linux_init_abi): Set process_record, process_record_signal.
11821 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11822 ppc_linux_record_tdep to gdbarch_tdep.
11823 (ppc_process_record): New declaration.
11824 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11825 ppc_process_record_op19, ppc_process_record_op31,
11826 ppc_process_record_op59, ppc_process_record_op60,
11827 ppc_process_record_op63, ppc_process_record): New functions.
11828
11829 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11830
11831 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11832 rs6000_in_function_epilogue_frame_p and add an argument
11833 for frame_info.
11834 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11835 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11836 New functions.
11837 (rs6000_epilogue_frame_unwind): New.
11838 (rs6000_gdbarch_init): Append epilogue unwinder.
11839
11840 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11841
11842 * nat/linux-personality.c: Replace "#ifndef
11843 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11844 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11845 systems.
11846
11847 2015-01-16 Eli Zaretskii <eliz@gnu.org>
11848
11849 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11850 functions.
11851 (_initialize_tui_win) <border-kind, border-mode>:
11852 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
11853 (tui_set_tab_width_command): Fix the commentary.
11854
11855 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11856
11857 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11858 Doc fix.
11859 (tui_set_tab_width_command): Delete and recreate the source and
11860 the disassembly windows, to show the effect of the changed tab
11861 size immediately.
11862
11863 * tui/tui-data.h (LINE_PREFIX): Make shorter
11864 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11865 "Thread NNNNN.XXXX" thread ID notation on Windows.
11866
11867 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11868
11869 Fix gcc-5 compilation.
11870 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11871
11872 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11873
11874 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11875 (linux-personality.o): New rule.
11876 * common/common-defs.h: Include <stdint.h>.
11877 * config/aarch64/linux.mh (NATDEPFILES): Include
11878 linux-personality.o.
11879 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11880 * config/arm/linux.mh (NATDEPFILES): Likewise.
11881 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11882 * config/i386/linux.mh (NATDEPFILES): Likewise.
11883 * config/ia64/linux.mh (NATDEPFILES): Likewise.
11884 * config/m32r/linux.mh (NATDEPFILES): Likewise.
11885 * config/m68k/linux.mh (NATDEPFILES): Likewise.
11886 * config/mips/linux.mh (NATDEPFILES): Likewise.
11887 * config/pa/linux.mh (NATDEPFILES): Likewise.
11888 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11889 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11890 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11891 * config/s390/linux.mh (NATDEPFILES): Likewise.
11892 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11893 * config/sparc/linux.mh (NATDEPFILES): Likewise.
11894 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11895 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11896 * defs.h: Remove #include <stdint.h> (moved to
11897 common/common-defs.h).
11898 * linux-nat.c: Include nat/linux-personality.h. Remove #include
11899 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11900 nat/linux-personality.c).
11901 (linux_nat_create_inferior): Remove code to disable address space
11902 randomization (moved to nat/linux-personality.c). Create cleanup
11903 to disable address space randomization.
11904 * nat/linux-personality.c: New file.
11905 * nat/linux-personality.h: Likewise.
11906
11907 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11908
11909 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
11910 common/posix-strerror.c.
11911 (posix-strerror.o): New rule.
11912 (mingw-strerror.o): Likewise.
11913 * common/common-utils.h (safe_strerror): Move prototype to here,
11914 from utils.h.
11915 * common/common.host: New file.
11916 * common/mingw-strerror.c: Likewise.
11917 * common/posix-strerror.c: Likewise.
11918 * configure: Regenerated.
11919 * configure.ac: Source common/common.host. Add variable
11920 common_host_obs to gdb_host_obs.
11921 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
11922 gdb/common/posix-strerror.c when warning about the use of
11923 strerror.
11924 * mingw-hdep.c (safe_strerror): Remove definition; move it to
11925 common/mingw-strerror.c.
11926 * posix-hdep.c (safe_strerror): Remove definition; move it to
11927 common/posix-hdep.c.
11928 * utils.h (safe_strerror): Remove prototype; move to
11929 common/common-utils.h.
11930
11931 2015-01-15 Joel Brobecker <brobecker@adacore.com>
11932
11933 GDB 7.8.2 released.
11934
11935 2015-01-15 Joel Brobecker <brobecker@adacore.com>
11936
11937 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
11938 ___XA type if the array has already been fixed.
11939
11940 2015-01-14 Yao Qi <yao@codesourcery.com>
11941
11942 * Makefile.in (ppc-linux.o): New rule.
11943 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
11944 * configure.ac: AC_CHECK_FUNCS(getauxval).
11945 * config.in: Re-generated.
11946 * configure: Re-generated.
11947 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
11948 Declare.
11949 * nat/ppc-linux.c: New file.
11950 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
11951 Call ppc64_64bit_inferior_p.
11952
11953 2015-01-14 Yao Qi <yao@codesourcery.com>
11954
11955 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
11956 nat/ppc-linux.h.
11957 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
11958 (PPC_FEATURE_HAS_DFP): Likewise.
11959 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11960 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11961 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11962 Include "nat/ppc-linux.h".
11963 * nat/ppc-linux.h: New file.
11964 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
11965
11966 2015-01-14 Pedro Alves <palves@redhat.com>
11967
11968 PR gdb/17525
11969 * breakpoint.c: Include "interps.h".
11970 (bpstat_do_actions_1): Also check whether the interpreter is
11971 async.
11972
11973 2015-01-14 Pedro Alves <palves@redhat.com>
11974
11975 PR cli/17828
11976 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
11977 reinstall if the interpreter is sync.
11978
11979 2015-01-13 Doug Evans <dje@google.com>
11980
11981 * objfiles.c (objfile_filename): New function.
11982 * objfiles.h (objfile_filename): Declare it.
11983 (objfile_name): Add function comment.
11984 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
11985 bfd file name (which may be realpath'd), and the original name.
11986
11987 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11988
11989 * NEWS: Create a new section for the next release branch.
11990 Rename the section of the current branch, now that it has
11991 been cut.
11992
11993 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11994
11995 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
11996 * version.in: Bump version to 7.9.50.DATE-cvs.
11997
11998 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11999
12000 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12001 Remove trailing new-line in argument of call to warning.
12002
12003 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12004
12005 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12006 new-line in argument of call to "warning".
12007
12008 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12009
12010 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12011 in static block, then try searching for primitive types.
12012
12013 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12014
12015 * top.h (gdb_add_history): Declare.
12016 * top.c (command_count): New variable.
12017 (gdb_add_history): New function.
12018 (gdb_safe_append_history): New static function.
12019 (quit_force): Call it.
12020 (command_line_input): Use gdb_add_history instead of
12021 add_history.
12022 * event-top.c (command_line_handler): Likewise.
12023
12024 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12025
12026 PR gdb/17046
12027 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12028 <setjmp.h> #include.
12029
12030 2015-01-11 Doug Evans <xdje42@gmail.com>
12031
12032 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12033
12034 2015-01-11 Doug Evans <xdje42@gmail.com>
12035
12036 PR gdb/15830
12037 * NEWS: The "maint demangle" command is renamed as "demangle".
12038 * demangle.c: #include cli/cli-utils.h, language.h.
12039 (demangle_command): New function.
12040 (_initialize_demangle): Add new command "demangle".
12041 * maint.c (maintenance_demangle): Stub out.
12042 (_initialize_maint_cmds): Update help text for "maint demangle",
12043 and mark as deprecated.
12044
12045 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12046
12047 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12048 inferior_thread is a function.
12049
12050 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12051
12052 * Makefile.in (.y.c): Don't munge yacc's #line
12053 directives.
12054
12055 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12056
12057 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12058 to prompt for input.
12059 * tui/tui-hooks.c (tui_query_hook): Remove.
12060 (tui_install_hooks): Don't set deprecated_query_hook.
12061 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12062 height calculation. Always update the command window's cur_line.
12063
12064 2015-01-09 Pedro Alves <palves@redhat.com>
12065
12066 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12067 function.
12068 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12069 declaration.
12070 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12071 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12072 stop_reason.
12073 (check_stopped_by_watchpoint): New function.
12074 (save_sigtrap): Reimplement.
12075 (linux_nat_stopped_by_watchpoint): Adjust.
12076 (linux_nat_lp_status_is_event): Delete.
12077 (stop_wait_callback): Only call save_sigtrap after storing the
12078 pending status.
12079 (status_callback): If the thread had been stopped for a breakpoint
12080 that has since been removed, discard the event and resume the LWP.
12081 (count_events_callback, select_event_lwp_callback): Use
12082 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12083 (cancel_breakpoint): Rename to ...
12084 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12085 stopped for a software breakpoint or hardware breakpoint.
12086 (select_event_lwp): Only give preference to the stepping LWP in
12087 all-stop mode. Adjust comments.
12088 (stop_and_resume_callback): Remove references to new_pending_p.
12089 (linux_nat_filter_event): Likewise. Leave exit events of the
12090 leader thread pending here. Handle signal short circuiting here.
12091 Only call save_sigtrap after storing the pending waitstatus.
12092 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12093 new_pending. Don't handle leaving events the caller is not
12094 interested in pending here, nor handle signal short-circuiting
12095 here. Also give equal priority to all LWPs that have had events
12096 in non-stop mode. If reporting a software breakpoint event,
12097 unadjust the LWP's PC.
12098 * linux-nat.h (enum lwp_stop_reason): New.
12099 (struct lwp_info) <stop_pc>: New field.
12100 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12101 (struct lwp_info) <stop_reason>: New field.
12102 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12103
12104 2015-01-09 Pedro Alves <palves@redhat.com>
12105
12106 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12107 Set the LWP's 'resumed' flag.
12108
12109 2015-01-09 Pedro Alves <palves@redhat.com>
12110
12111 * linux-nat.c (linux_resume_one_lwp): New function.
12112 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12113 (linux_nat_resume): Use lwp_status_pending_p and
12114 linux_resume_one_lwp.
12115 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12116 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12117 (status_callback, running_callback): Use lwp_status_pending_p.
12118 (lwp_status_pending_p): New function.
12119 (stop_and_resume_callback): Use lwp_status_pending_p.
12120 (linux_nat_filter_event): Use linux_resume_one_lwp.
12121 (linux_nat_wait_1): Always use status_callback to look for an LWP
12122 with a pending status. Use linux_resume_one_lwp.
12123 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12124 linux_resume_one_lwp.
12125
12126 2015-01-09 Pedro Alves <palves@redhat.com>
12127
12128 * breakpoint.c (bp_location_inserted_here_p): New function,
12129 factored out from ...
12130 (breakpoint_inserted_here_p): ... here. Use
12131 ALL_BP_LOCATIONS_AT_ADDR.
12132 (software_breakpoint_inserted_here_p): Use
12133 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12134
12135 2014-01-09 Pedro Alves <palves@redhat.com>
12136
12137 Skip enabling event reporting if the kernel supports
12138 PTRACE_EVENT_CLONE.
12139 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12140 (thread_db_use_events): New function.
12141 (try_thread_db_load_1): Check thread_db_use_events before enabling
12142 event reporting.
12143 (update_thread_state): New function.
12144 (attach_thread): Use it. Check thread_db_use_events before
12145 enabling event reporting.
12146 (thread_db_detach): Check thread_db_use_events before disabling
12147 event reporting.
12148 (find_new_threads_callback): Check thread_db_use_events before
12149 enabling event reporting. Update the thread's state if not using
12150 libthread_db events.
12151
12152 2015-01-09 Pedro Alves <palves@redhat.com>
12153
12154 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12155 about to wait for is > 0.
12156 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12157 the kernel thread ID is -1.
12158
12159 2015-01-09 Pedro Alves <palves@redhat.com>
12160
12161 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12162 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12163 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12164 ptrace option flags.
12165 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12166 field.
12167 * nat/linux-procfs.c: Include <dirent.h>.
12168 (linux_proc_get_int): New parameter "warn". Handle it.
12169 (linux_proc_get_tgid): Adjust.
12170 (linux_proc_get_tracerpid): Rename to ...
12171 (linux_proc_get_tracerpid_nowarn): ... this.
12172 (linux_proc_pid_get_state): New function, factored out from
12173 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12174 and handle it.
12175 (linux_proc_pid_is_gone): New function.
12176 (linux_proc_pid_is_stopped): Adjust.
12177 (linux_proc_pid_is_zombie_maybe_warn)
12178 (linux_proc_pid_is_zombie_nowarn): New functions.
12179 (linux_proc_pid_is_zombie): Use
12180 linux_proc_pid_is_zombie_maybe_warn.
12181 (linux_proc_attach_tgid_threads): New function.
12182 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12183 (linux_proc_get_tracerpid): Rename to ...
12184 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12185 (linux_proc_pid_is_gone): New declaration.
12186 (linux_proc_pid_is_zombie): Update comment.
12187 (linux_proc_pid_is_zombie_nowarn): New declaration.
12188 (linux_proc_attach_lwp_func): New typedef.
12189 (linux_proc_attach_tgid_threads): New declaration.
12190 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12191 use nowarn functions.
12192 (linux_ptrace_attach_fail_reason_string): Move here from
12193 gdbserver/linux-low.c and rename.
12194 (ptrace_supports_feature): If the current ptrace options are not
12195 known yet, check them now, instead of asserting.
12196 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12197 Declare.
12198
12199 2015-01-09 Pedro Alves <palves@redhat.com>
12200
12201 * linux-thread-db.c (thread_db_find_new_threads_silently)
12202 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12203 (find_new_threads_once): Print debug output on gdb_stdlog.
12204
12205 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12206 Pedro Alves <palves@redhat.com>
12207
12208 * compile/compile.c: Include "gdb_wait.h".
12209 (do_rmdir): Check return value, and free 'zap'.
12210
12211 2015-01-08 Pedro Alves <palves@redhat.com>
12212 Yao Qi <yao@codesourcery.com>
12213
12214 * dwarf2loc.c (indirect_pieced_value): Don't call
12215 gdb_sign_extend. Call extract_signed_integer instead.
12216 * utils.c (gdb_sign_extend): Remove.
12217 * utils.h (gdb_sign_extend): Remove declaration.
12218
12219 2015-01-07 Pierre Muller <muller@sourceware.org>
12220
12221 PR symtab/17811
12222 * stabsread.c (define_symbol): Set language for C++ special symbols.
12223
12224 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12225
12226 * inflow.c (initial_gdb_ttystate): Tweak comment.
12227
12228 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12229
12230 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12231 comment documenting function.
12232
12233 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12234
12235 * terminal.h (set_initial_gdb_ttystate): Declare.
12236 * inflow.c (initial_gdb_ttystate): New static variable.
12237 (set_initial_gdb_ttystate): New setter.
12238 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12239 instead of our current terminal state.
12240 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12241
12242 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12243
12244 * guile/scm-type.c (tyscm_array_1): Add comment.
12245 * python/py-type.c (typy_array_1): Add comment.
12246
12247 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12248
12249 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12250 error if N2 is equal to N1 - 1.
12251
12252 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12253
12254 * python/py-type.c (typy_array_1): Do not raise negative-length
12255 exception if N2 is equal to N1 - 1.
12256
12257 2015-01-03 Doug Evans <xdje42@gmail.com>
12258
12259 * c-exp.y: Whitespace cleanup.
12260 (classify_inner_name): Remove extra ;.
12261
12262 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12263
12264 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12265 offset signed.
12266
12267 2015-01-02 Doug Evans <dje@google.com>
12268
12269 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12270
12271 2015-01-02 Doug Evans <dje@google.com>
12272
12273 * symtab.h (struct symbol): Fix typo in comment.
12274
12275 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12276
12277 Update year range in copyright notice of all files.
12278
12279 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12280
12281 * top.c (print_gdb_version): Update copyright year to 2015.
12282
12283 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12284
12285 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12286
12287 For older changes see ChangeLog-2014.
12288 \f
12289 Local Variables:
12290 mode: change-log
12291 left-margin: 8
12292 fill-column: 74
12293 version-control: never
12294 coding: utf-8
12295 End:
This page took 0.292986 seconds and 4 git commands to generate.