vec.h: Add casts for C++ compat
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
2
3 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
4
5 2015-09-30 Doug Evans <dje@google.com>
6
7 * dwarf2read.c (setup_type_unit_groups): Add comment.
8
9 2015-09-30 Pedro Alves <palves@redhat.com>
10
11 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
12 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
13 (x86_linux_create_target): Don't install
14 x86_linux_always_non_stop_p.
15
16 2015-09-30 Don Breazeal <donb@codesourcery.com>
17
18 * remote.c (remote_parse_stop_reply): Call strprefix instead
19 of strncmp.
20
21 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
22
23 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
24 * gdbarch.h: Regenerate.
25 * i386-tdep.c (i386_gdbarch_init): Remove cast to
26 struct gdbarch_tdep_info *.
27 * mips-tdep.c (mips_gdbarch_init): Likewise.
28 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
29 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
30 * spu-multiarch.c (spu_gdbarch): Likewise.
31
32 2015-09-30 Kevin Buettner <kevinb@redhat.com>
33
34 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
35 record a NULL value.
36
37 2015-09-29 Kevin Buettner <kevinb@redhat.com>
38
39 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
40 and union arguments the same as pointer arguments when determining
41 size of argument.
42
43 2015-09-29 James Bowman <james.bowman@ftdichip.com>
44
45 * ft32-tdep.c: #include "opcode/ft32.h".
46 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
47 (ft32_analyze_prologue): Use FT32_* macros.
48
49 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
50
51 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
52 comment.
53
54 2015-09-28 Doug Evans <dje@google.com>
55
56 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
57
58 2015-09-28 Doug Evans <dje@google.com>
59
60 * common/filestuff.c (make_cleanup_close): Update comment.
61
62 2015-09-26 Simon Marchi <simark@nova.polymtl.ca>
63
64 * btrace.c (parse_xml_btrace_block): Fix cast of
65 xml_find_attribute's return value.
66 * memory-map.c (memory_map_start_memory): Likewise.
67 * solib-svr4.c (library_list_start_library): Likewise.
68 * solib-target.c (library_list_start_segment): Likewise.
69 (library_list_start_section): Likewise.
70 * tracepoint.c (traceframe_info_start_memory): Likewise.
71
72 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
73
74 * d-namespace.c (d_lookup_symbol): New arg langdef.
75 All callers updated. Support looking up symbol as a primitive type.
76 (lookup_module_scope): New arg langdef. All callers updated.
77 Call d_lookup_symbol directly for simple bare symbols.
78
79 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
80
81 * macrocmd.c (print_macro_callback): Add cast(s).
82 * macrotab.c (macro_bcache_str): Likewise.
83 (new_macro_definition): Likewise.
84 * main.c (captured_main): Likewise.
85 * maint.c (print_bfd_section_info): Likewise.
86 * mdebugread.c (mdebug_build_psymtabs): Likewise.
87 (basic_type): Likewise.
88 * memattr.c (mem_region_cmp): Likewise.
89 * memory-map.c (memory_map_start_memory): Likewise.
90 (memory_map_end_memory): Likewise.
91 (memory_map_start_property): Likewise.
92 (memory_map_end_property): Likewise.
93 (clear_result): Likewise.
94 * memrange.c (compare_mem_ranges): Likewise.
95 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
96 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
97 * mi/mi-console.c (mi_console_file_delete): Likewise.
98 (mi_console_file_fputs): Likewise.
99 (mi_console_raw_packet): Likewise.
100 (mi_console_file_flush): Likewise.
101 (mi_console_set_raw): Likewise.
102 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
103 (mi_new_thread): Likewise.
104 (mi_thread_exit): Likewise.
105 (mi_record_changed): Likewise.
106 (mi_inferior_added): Likewise.
107 (mi_inferior_appeared): Likewise.
108 (mi_inferior_exit): Likewise.
109 (mi_inferior_removed): Likewise.
110 (mi_interp_data): Likewise.
111 (mi_on_normal_stop): Likewise.
112 (mi_traceframe_changed): Likewise.
113 (mi_tsv_created): Likewise.
114 (mi_tsv_deleted): Likewise.
115 (mi_tsv_modified): Likewise.
116 (mi_breakpoint_created): Likewise.
117 (mi_breakpoint_deleted): Likewise.
118 (mi_breakpoint_modified): Likewise.
119 (mi_output_running_pid): Likewise.
120 (mi_inferior_count): Likewise.
121 (mi_solib_loaded): Likewise.
122 (mi_solib_unloaded): Likewise.
123 (mi_command_param_changed): Likewise.
124 (mi_memory_changed): Likewise.
125 (report_initial_inferior): Likewise.
126 (mi_ui_out): Likewise.
127 (mi_set_logging): Likewise.
128 * mi/mi-main.c (collect_cores): Likewise.
129 (print_one_inferior): Likewise.
130 (free_vector_of_ints): Likewise.
131 (free_splay_tree): Likewise.
132 (mi_execute_command): Likewise.
133 * mi/mi-out.c (mi_table_body): Likewise.
134 (mi_table_end): Likewise.
135 (mi_table_header): Likewise.
136 (mi_begin): Likewise.
137 (mi_end): Likewise.
138 (mi_field_int): Likewise.
139 (mi_field_string): Likewise.
140 (mi_field_fmt): Likewise.
141 (mi_flush): Likewise.
142 (mi_redirect): Likewise.
143 (field_separator): Likewise.
144 (mi_open): Likewise.
145 (mi_close): Likewise.
146 (mi_out_buffered): Likewise.
147 (mi_out_rewind): Likewise.
148 (mi_out_put): Likewise.
149 (mi_version): Likewise.
150 (mi_out_data_dtor): Likewise.
151 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
152 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
153 * minidebug.c (lzma_open): Likewise.
154 (lzma_pread): Likewise.
155 (lzma_close): Likewise.
156 (lzma_stat): Likewise.
157 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
158 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
159 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
160 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
161 (mips_micro_frame_cache): Likewise.
162 (mips_insn32_frame_cache): Likewise.
163 (mips_stub_frame_cache): Likewise.
164 (gdb_print_insn_mips): Likewise.
165 (value_of_mips_user_reg): Likewise.
166 (mips_gdbarch_init): Likewise.
167 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
168 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
169 (mipsnbsd_supply_gregset): Likewise.
170 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
171 (am33_collect_gregset_method): Likewise.
172 (am33_collect_fpregset_method): Likewise.
173 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
174 * moxie-tdep.c (moxie_frame_cache): Likewise.
175 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
176 (msp430_analyze_frame_prologue): Likewise.
177 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
178 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
179 (nios2_collect_gregset): Likewise.
180 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
181 (nios2_stub_frame_cache): Likewise.
182 * objc-lang.c (find_methods): Likewise.
183 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
184 (get_objfile_pspace_data): Likewise.
185 (get_objfile_bfd_data): Likewise.
186 (objfile_bfd_data_free): Likewise.
187 (add_to_objfile_sections): Likewise.
188 (do_free_objfile_cleanup): Likewise.
189 (resume_section_map_updates_cleanup): Likewise.
190 * opencl-lang.c (builtin_opencl_type): Likewise.
191 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
192 * osdata.c (osdata_start_osdata): Likewise.
193 (osdata_start_item): Likewise.
194 (osdata_start_column): Likewise.
195 (osdata_end_column): Likewise.
196 (clear_parsing_data): Likewise.
197 (osdata_free_cleanup): Likewise.
198 * parse.c (type_stack_cleanup): Likewise.
199 (exp_uses_objfile_iter): Likewise.
200 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
201 (ppc_linux_collect_gregset): Likewise.
202 (ppu2spu_prev_arch): Likewise.
203 (ppu2spu_this_id): Likewise.
204 (ppu2spu_prev_register): Likewise.
205 (ppu2spu_unwind_register): Likewise.
206 (ppu2spu_sniffer): Likewise.
207 (ppu2spu_dealloc_cache): Likewise.
208 (ppc_linux_init_abi): Likewise.
209 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
210 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
211 * progspace.c (restore_program_space): Likewise.
212 * psymtab.c (find_pc_sect_psymtab): Likewise.
213 (compare_psymbols): Likewise.
214 (psymbol_bcache_full): Likewise.
215 (allocate_psymtab): Likewise.
216 (discard_psymtabs_upto): Likewise.
217 * python/py-block.c (set_block): Likewise.
218 (del_objfile_blocks): Likewise.
219 * python/py-breakpoint.c (build_bp_list): Likewise.
220 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
221 (build_inferior_list): Likewise.
222 (py_free_inferior): Likewise.
223 * python/py-objfile.c (py_free_objfile): Likewise.
224 (objfile_to_objfile_object): Likewise.
225 * python/py-prettyprint.c (py_restore_tstate): Likewise.
226 * python/py-progspace.c (py_free_pspace): Likewise.
227 (pspace_to_pspace_object): Likewise.
228 * python/py-symbol.c (set_symbol): Likewise.
229 (del_objfile_symbols): Likewise.
230 * python/py-symtab.c (set_sal): Likewise.
231 (set_symtab): Likewise.
232 (del_objfile_symtab): Likewise.
233 (del_objfile_sal): Likewise.
234 * python/py-type.c (save_objfile_types): Likewise.
235 (set_type): Likewise.
236 * python/py-unwind.c (pyuw_prev_register): Likewise.
237 (pyuw_on_new_gdbarch): Likewise.
238 * python/py-utils.c (py_decref): Likewise.
239 (py_xdecref): Likewise.
240 (gdb_py_generic_dict): Likewise.
241 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
242 (gdbpy_clone_xmethod_worker_data): Likewise.
243 (gdbpy_get_xmethod_arg_types): Likewise.
244 (gdbpy_get_xmethod_result_type): Likewise.
245 (gdbpy_invoke_xmethod): Likewise.
246 * python/python.c (gdbpy_apply_type_printers): Likewise.
247 (gdbpy_free_type_printers): Likewise.
248 * record-btrace.c (record_btrace_disable_callback): Likewise.
249 (bfcache_hash): Likewise.
250 (bfcache_eq): Likewise.
251 (btrace_get_frame_function): Likewise.
252 (record_btrace_frame_unwind_stop_reason): Likewise.
253 (record_btrace_frame_this_id): Likewise.
254 (record_btrace_frame_prev_register): Likewise.
255 (record_btrace_frame_dealloc_cache): Likewise.
256 * record-full.c (record_full_message_wrapper): Likewise.
257 (record_full_save_cleanups): Likewise.
258 * regcache.c (regcache_descr): Likewise.
259 (do_regcache_xfree): Likewise.
260 (do_regcache_invalidate): Likewise.
261 (do_cooked_read): Likewise.
262 (regcache_transfer_regset): Likewise.
263 * reggroups.c (reggroup_add): Likewise.
264 (reggroup_next): Likewise.
265 (reggroup_prev): Likewise.
266 * remote-fileio.c (do_remote_fileio_request): Likewise.
267 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
268 (do_notif_event_xfree): Likewise.
269 * remote.c (get_remote_arch_state): Likewise.
270 (remote_pspace_data_cleanup): Likewise.
271 (get_remote_exec_file): Likewise.
272 (set_pspace_remote_exec_file): Likewise.
273 (compare_pnums): Likewise.
274 (clear_threads_listing_context): Likewise.
275 (remote_newthread_step): Likewise.
276 (start_thread): Likewise.
277 (end_thread): Likewise.
278 (remove_child_of_pending_fork): Likewise.
279 (remove_stop_reply_for_inferior): Likewise.
280 (remove_stop_reply_of_remote_state): Likewise.
281 (remote_notif_remove_once_on_match): Likewise.
282 (stop_reply_match_ptid_and_ws): Likewise.
283 (kill_child_of_pending_fork): Likewise.
284 (register_remote_g_packet_guess): Likewise.
285 (remote_read_description_p): Likewise.
286 (remote_read_description): Likewise.
287 (free_actions_list_cleanup_wrapper): Likewise.
288 (remote_async_serial_handler): Likewise.
289 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
290 (rl78_analyze_frame_prologue): Likewise.
291 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
292 (ppc_supply_fpregset): Likewise.
293 (ppc_supply_vsxregset): Likewise.
294 (ppc_supply_vrregset): Likewise.
295 (ppc_collect_gregset): Likewise.
296 (ppc_collect_fpregset): Likewise.
297 (ppc_collect_vsxregset): Likewise.
298 (ppc_collect_vrregset): Likewise.
299 (e500_move_ev_register): Likewise.
300 (do_regcache_raw_write): Likewise.
301 (rs6000_frame_cache): Likewise.
302 (rs6000_epilogue_frame_cache): Likewise.
303 (rs6000_gdbarch_init): Likewise.
304 * rx-tdep.c (rx_get_opcode_byte): Likewise.
305 (rx_analyze_frame_prologue): Likewise.
306 (rx_frame_type): Likewise.
307 (rx_frame_sniffer_common): Likewise.
308 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
309 (s390_frame_unwind_cache): Likewise.
310 (s390_stub_frame_unwind_cache): Likewise.
311 (s390_sigtramp_frame_unwind_cache): Likewise.
312 * score-tdep.c (score_make_prologue_cache): Likewise.
313 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
314 (sentinel_frame_prev_arch): Likewise.
315 * ser-base.c (fd_event): Likewise.
316 (push_event): Likewise.
317 (ser_base_write): Likewise.
318 * ser-pipe.c (pipe_close): Likewise.
319 * serial.c (serial_write): Likewise.
320 * sh-tdep.c (sh_frame_cache): Likewise.
321 (sh_stub_this_id): Likewise.
322 * sh64-tdep.c (sh64_frame_cache): Likewise.
323 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
324 (library_list_start_library): Likewise.
325 (library_list_start_list): Likewise.
326 (solib_aix_free_library_list): Likewise.
327 * solib-darwin.c (get_darwin_info): Likewise.
328 * solib-dsbt.c (get_dsbt_info): Likewise.
329 * solib-spu.c (append_ocl_sos): Likewise.
330 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
331 (get_svr4_info): Likewise.
332 (library_list_start_library): Likewise.
333 (svr4_library_list_start_list): Likewise.
334 (hash_probe_and_action): Likewise.
335 (equal_probe_and_action): Likewise.
336 (svr4_update_solib_event_breakpoint): Likewise.
337 (set_solib_svr4_fetch_link_map_offsets): Likewise.
338 (svr4_fetch_link_map_offsets): Likewise.
339 (svr4_have_link_map_offsets): Likewise.
340 * solib-target.c (library_list_start_segment): Likewise.
341 (library_list_start_section): Likewise.
342 (library_list_start_library): Likewise.
343 (library_list_end_library): Likewise.
344 (library_list_start_list): Likewise.
345 (solib_target_free_library_list): Likewise.
346 * solib.c (solib_ops): Likewise.
347 (set_solib_ops): Likewise.
348 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
349 * sparc-tdep.c (sparc_frame_cache): Likewise.
350 (sparc32_frame_cache): Likewise.
351 (sparc32_supply_gregset): Likewise.
352 (sparc32_collect_gregset): Likewise.
353 (sparc32_supply_fpregset): Likewise.
354 (sparc32_collect_fpregset): Likewise.
355 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
356 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
357 (sparc64_collect_gregset): Likewise.
358 (sparc64_supply_fpregset): Likewise.
359 (sparc64_collect_fpregset): Likewise.
360 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
361 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
362 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
363 (sparc64obsd_trapframe_cache): Likewise.
364 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
365 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
366 * spu-multiarch.c (spu_gdbarch): Likewise.
367 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
368 (spu2ppu_prev_arch): Likewise.
369 (spu2ppu_this_id): Likewise.
370 (spu2ppu_prev_register): Likewise.
371 (spu2ppu_dealloc_cache): Likewise.
372 (spu_dis_asm_print_address): Likewise.
373 (gdb_print_insn_spu): Likewise.
374 (spu_get_overlay_table): Likewise.
375 * stabsread.c (rs6000_builtin_type): Likewise.
376 * stack.c (do_print_variable_and_value): Likewise.
377 * stap-probe.c (get_stap_base_address_1): Likewise.
378 * symfile-debug.c (debug_qf_has_symbols): Likewise.
379 (debug_qf_find_last_source_symtab): Likewise.
380 (debug_qf_forget_cached_source_info): Likewise.
381 (debug_qf_map_symtabs_matching_filename): Likewise.
382 (debug_qf_lookup_symbol): Likewise.
383 (debug_qf_print_stats): Likewise.
384 (debug_qf_dump): Likewise.
385 (debug_qf_relocate): Likewise.
386 (debug_qf_expand_symtabs_for_function): Likewise.
387 (debug_qf_expand_all_symtabs): Likewise.
388 (debug_qf_expand_symtabs_with_fullname): Likewise.
389 (debug_qf_map_matching_symbols): Likewise.
390 (debug_qf_expand_symtabs_matching): Likewise.
391 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
392 (debug_qf_map_symbol_filenames): Likewise.
393 (debug_sym_get_probes): Likewise.
394 (debug_sym_new_init): Likewise.
395 (debug_sym_init): Likewise.
396 (debug_sym_read): Likewise.
397 (debug_sym_read_psymbols): Likewise.
398 (debug_sym_finish): Likewise.
399 (debug_sym_offsets): Likewise.
400 (debug_sym_read_linetable): Likewise.
401 (debug_sym_relocate): Likewise.
402 (uninstall_symfile_debug_logging): Likewise.
403 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
404 * symfile.c (place_section): Likewise.
405 (add_section_size_callback): Likewise.
406 (load_progress): Likewise.
407 (load_section_callback): Likewise.
408 (clear_memory_write_data): Likewise.
409 (allocate_symtab): Likewise.
410 * symmisc.c (maintenance_expand_file_matcher): Likewise.
411 * symtab.c (lookup_symtab_callback): Likewise.
412 (hash_demangled_name_entry): Likewise.
413 (eq_demangled_name_entry): Likewise.
414 (get_symbol_cache): Likewise.
415 (symbol_cache_cleanup): Likewise.
416 (set_symbol_cache_size): Likewise.
417 (symbol_cache_flush): Likewise.
418 (maintenance_print_symbol_cache): Likewise.
419 (maintenance_print_symbol_cache_statistics): Likewise.
420 (delete_filename_seen_cache): Likewise.
421 (output_partial_symbol_filename): Likewise.
422 (search_symbols_file_matches): Likewise.
423 (search_symbols_name_matches): Likewise.
424 (do_free_completion_list): Likewise.
425 (maybe_add_partial_symtab_filename): Likewise.
426 (get_main_info): Likewise.
427 (main_info_cleanup): Likewise.
428 * target-dcache.c (target_dcache_cleanup): Likewise.
429 (target_dcache_init_p): Likewise.
430 (target_dcache_invalidate): Likewise.
431 (target_dcache_get): Likewise.
432 (target_dcache_get_or_init): Likewise.
433 * target-descriptions.c (target_find_description): Likewise.
434 (tdesc_find_type): Likewise.
435 (tdesc_data_cleanup): Likewise.
436 (tdesc_find_arch_register): Likewise.
437 (tdesc_register_name): Likewise.
438 (tdesc_register_type): Likewise.
439 (tdesc_register_reggroup_p): Likewise.
440 (set_tdesc_pseudo_register_name): Likewise.
441 (set_tdesc_pseudo_register_type): Likewise.
442 (set_tdesc_pseudo_register_reggroup_p): Likewise.
443 (tdesc_use_registers): Likewise.
444 (free_target_description): Likewise.
445 * target-memory.c (compare_block_starting_address): Likewise.
446 (cleanup_request_data): Likewise.
447 (cleanup_write_requests_vector): Likewise.
448 * target.c (open_target): Likewise.
449 (cleanup_restore_target_terminal): Likewise.
450 (free_memory_read_result_vector): Likewise.
451 * thread.c (disable_thread_stack_temporaries): Likewise.
452 (finish_thread_state_cleanup): Likewise.
453 (do_restore_current_thread_cleanup): Likewise.
454 (restore_current_thread_cleanup_dtor): Likewise.
455 (set_thread_refcount): Likewise.
456 (tp_array_compar): Likewise.
457 (do_captured_thread_select): Likewise.
458 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
459 (tic6x_stub_this_id): Likewise.
460 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
461 * top.c (do_restore_instream_cleanup): Likewise.
462 (gdb_readline_wrapper_cleanup): Likewise.
463 (kill_or_detach): Likewise.
464 (print_inferior_quit_action): Likewise.
465 * tracefile-tfile.c (match_blocktype): Likewise.
466 (build_traceframe_info): Likewise.
467 * tracefile.c (trace_file_writer_xfree): Likewise.
468 * tracepoint.c (memrange_cmp): Likewise.
469 (do_collect_symbol): Likewise.
470 (do_clear_collection_list): Likewise.
471 (do_restore_current_traceframe_cleanup): Likewise.
472 (restore_current_traceframe_cleanup_dtor): Likewise.
473 (free_current_marker): Likewise.
474 (traceframe_info_start_memory): Likewise.
475 (traceframe_info_start_tvar): Likewise.
476 (free_result): Likewise.
477 * tramp-frame.c (tramp_frame_cache): Likewise.
478 * tui/tui-file.c (tui_file_delete): Likewise.
479 (tui_fileopen): Likewise.
480 (tui_sfileopen): Likewise.
481 (tui_file_isatty): Likewise.
482 (tui_file_rewind): Likewise.
483 (tui_file_put): Likewise.
484 (tui_file_fputs): Likewise.
485 (tui_file_get_strbuf): Likewise.
486 (tui_file_adjust_strbuf): Likewise.
487 (tui_file_flush): Likewise.
488 * tui/tui-layout.c (make_command_window): Likewise.
489 (make_data_window): Likewise.
490 (show_source_disasm_command): Likewise.
491 (show_data): Likewise.
492 (make_source_or_disasm_window): Likewise.
493 (show_source_or_disasm_and_command): Likewise.
494 * tui/tui-out.c (tui_field_int): Likewise.
495 (tui_field_string): Likewise.
496 (tui_field_fmt): Likewise.
497 (tui_text): Likewise.
498 * typeprint.c (hash_typedef_field): Likewise.
499 (eq_typedef_field): Likewise.
500 (do_free_typedef_hash): Likewise.
501 (copy_typedef_hash_element): Likewise.
502 (do_free_global_table): Likewise.
503 (find_global_typedef): Likewise.
504 (find_typedef_in_hash): Likewise.
505 * ui-file.c (ui_file_write_for_put): Likewise.
506 (do_ui_file_xstrdup): Likewise.
507 (mem_file_delete): Likewise.
508 (mem_file_rewind): Likewise.
509 (mem_file_put): Likewise.
510 (mem_file_write): Likewise.
511 (stdio_file_delete): Likewise.
512 (stdio_file_flush): Likewise.
513 (stdio_file_read): Likewise.
514 (stdio_file_write): Likewise.
515 (stdio_file_write_async_safe): Likewise.
516 (stdio_file_fputs): Likewise.
517 (stdio_file_isatty): Likewise.
518 (stdio_file_fseek): Likewise.
519 (tee_file_delete): Likewise.
520 (tee_file_flush): Likewise.
521 (tee_file_write): Likewise.
522 (tee_file_fputs): Likewise.
523 (tee_file_isatty): Likewise.
524 * ui-out.c (do_cleanup_table_end): Likewise.
525 (do_cleanup_end): Likewise.
526 * user-regs.c (user_reg_add): Likewise.
527 (user_reg_map_name_to_regnum): Likewise.
528 (usernum_to_user_reg): Likewise.
529 (maintenance_print_user_registers): Likewise.
530 * utils.c (do_bfd_close_cleanup): Likewise.
531 (do_fclose_cleanup): Likewise.
532 (do_obstack_free): Likewise.
533 (do_ui_file_delete): Likewise.
534 (do_ui_out_redirect_pop): Likewise.
535 (do_free_section_addr_info): Likewise.
536 (restore_integer): Likewise.
537 (do_unpush_target): Likewise.
538 (do_htab_delete_cleanup): Likewise.
539 (do_restore_ui_file): Likewise.
540 (do_value_free): Likewise.
541 (do_free_so): Likewise.
542 (free_current_contents): Likewise.
543 (do_regfree_cleanup): Likewise.
544 (core_addr_hash): Likewise.
545 (core_addr_eq): Likewise.
546 (do_free_char_ptr_vec): Likewise.
547 * v850-tdep.c (v850_frame_cache): Likewise.
548 * varobj.c (do_free_variable_cleanup): Likewise.
549 * vax-tdep.c (vax_supply_gregset): Likewise.
550 (vax_frame_cache): Likewise.
551 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
552 * xml-support.c (gdb_xml_body_text): Likewise.
553 (gdb_xml_values_cleanup): Likewise.
554 (gdb_xml_start_element): Likewise.
555 (gdb_xml_start_element_wrapper): Likewise.
556 (gdb_xml_end_element): Likewise.
557 (gdb_xml_end_element_wrapper): Likewise.
558 (gdb_xml_cleanup): Likewise.
559 (gdb_xml_fetch_external_entity): Likewise.
560 (gdb_xml_parse_attr_enum): Likewise.
561 (xinclude_start_include): Likewise.
562 (xinclude_end_include): Likewise.
563 (xml_xinclude_default): Likewise.
564 (xml_xinclude_start_doctype): Likewise.
565 (xml_xinclude_end_doctype): Likewise.
566 (xml_xinclude_cleanup): Likewise.
567 (xml_fetch_content_from_file): Likewise.
568 * xml-syscall.c (free_syscalls_info): Likewise.
569 (syscall_start_syscall): Likewise.
570 * xml-tdesc.c (tdesc_end_arch): Likewise.
571 (tdesc_end_osabi): Likewise.
572 (tdesc_end_compatible): Likewise.
573 (tdesc_start_target): Likewise.
574 (tdesc_start_feature): Likewise.
575 (tdesc_start_reg): Likewise.
576 (tdesc_start_union): Likewise.
577 (tdesc_start_struct): Likewise.
578 (tdesc_start_flags): Likewise.
579 (tdesc_start_field): Likewise.
580 (tdesc_start_vector): Likewise.
581 (fetch_available_features_from_target): Likewise.
582 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
583 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
584 (xtensa_frame_cache): Likewise.
585 (xtensa_frame_prev_register): Likewise.
586 (xtensa_extract_return_value): Likewise.
587
588 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
589
590 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
591 (aarch64_make_stub_cache): Likewise.
592 (value_of_aarch64_user_reg): Likewise.
593 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
594 (get_ada_inferior_data): Likewise.
595 (get_ada_pspace_data): Likewise.
596 (ada_pspace_data_cleanup): Likewise.
597 (ada_complete_symbol_matcher): Likewise.
598 (ada_exc_search_name_matches): Likewise.
599 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
600 (get_ada_tasks_inferior_data): Likewise.
601 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
602 (splay_obstack_alloc): Likewise.
603 (splay_obstack_free): Likewise.
604 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
605 (alpha_linux_collect_gregset): Likewise.
606 (alpha_linux_supply_fpregset): Likewise.
607 (alpha_linux_collect_fpregset): Likewise.
608 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
609 * alpha-tdep.c (alpha_lds): Likewise.
610 (alpha_sts): Likewise.
611 (alpha_sigtramp_frame_unwind_cache): Likewise.
612 (alpha_heuristic_frame_unwind_cache): Likewise.
613 (alpha_supply_int_regs): Likewise.
614 (alpha_fill_int_regs): Likewise.
615 (alpha_supply_fp_regs): Likewise.
616 (alpha_fill_fp_regs): Likewise.
617 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
618 (alphanbsd_aout_supply_gregset): Likewise.
619 (alphanbsd_supply_gregset): Likewise.
620 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
621 (amd64_x32_linux_init_abi): Likewise.
622 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
623 (amd64_collect_native_gregset): Likewise.
624 * amd64-tdep.c (amd64_frame_cache): Likewise.
625 (amd64_sigtramp_frame_cache): Likewise.
626 (amd64_epilogue_frame_cache): Likewise.
627 (amd64_supply_fxsave): Likewise.
628 (amd64_supply_xsave): Likewise.
629 (amd64_collect_fxsave): Likewise.
630 (amd64_collect_xsave): Likewise.
631 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
632 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
633 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
634 (arm_linux_collect_gregset): Likewise.
635 (arm_linux_supply_nwfpe): Likewise.
636 (arm_linux_collect_nwfpe): Likewise.
637 (arm_linux_supply_vfp): Likewise.
638 (arm_linux_collect_vfp): Likewise.
639 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
640 (arm_prologue_unwind_stop_reason): Likewise.
641 (arm_prologue_this_id): Likewise.
642 (arm_prologue_prev_register): Likewise.
643 (arm_exidx_data_free): Likewise.
644 (arm_find_exidx_entry): Likewise.
645 (arm_stub_this_id): Likewise.
646 (arm_m_exception_this_id): Likewise.
647 (arm_m_exception_prev_register): Likewise.
648 (arm_normal_frame_base): Likewise.
649 (gdb_print_insn_arm): Likewise.
650 (arm_objfile_data_free): Likewise.
651 (arm_record_special_symbol): Likewise.
652 (value_of_arm_user_reg): Likewise.
653 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
654 (armbsd_supply_gregset): Likewise.
655 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
656 (get_auto_load_pspace_data): Likewise.
657 (hash_loaded_script_entry): Likewise.
658 (eq_loaded_script_entry): Likewise.
659 (clear_section_scripts): Likewise.
660 (collect_matching_scripts): Likewise.
661 * auxv.c (auxv_inferior_data_cleanup): Likewise.
662 (get_auxv_inferior_data): Likewise.
663 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
664 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
665 * bfd-target.c (target_bfd_xfer_partial): Likewise.
666 (target_bfd_xclose): Likewise.
667 (target_bfd_get_section_table): Likewise.
668 * bfin-tdep.c (bfin_frame_cache): Likewise.
669 * block.c (find_block_in_blockvector): Likewise.
670 (call_site_for_pc): Likewise.
671 (block_find_non_opaque_type_preferred): Likewise.
672 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
673 (signal_catchpoint_remove_location): Likewise.
674 (signal_catchpoint_breakpoint_hit): Likewise.
675 (signal_catchpoint_print_one): Likewise.
676 (signal_catchpoint_print_mention): Likewise.
677 (signal_catchpoint_print_recreate): Likewise.
678 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
679 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
680 (bp_location_compare_addrs): Likewise.
681 (get_first_locp_gte_addr): Likewise.
682 (check_tracepoint_command): Likewise.
683 (do_map_commands_command): Likewise.
684 (get_breakpoint_objfile_data): Likewise.
685 (free_breakpoint_probes): Likewise.
686 (do_captured_breakpoint_query): Likewise.
687 (compare_breakpoints): Likewise.
688 (bp_location_compare): Likewise.
689 (bpstat_remove_breakpoint_callback): Likewise.
690 (do_delete_breakpoint_cleanup): Likewise.
691 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
692 (bsd_uthread_set_collect_uthread): Likewise.
693 (bsd_uthread_activate): Likewise.
694 (bsd_uthread_fetch_registers): Likewise.
695 (bsd_uthread_store_registers): Likewise.
696 * btrace.c (check_xml_btrace_version): Likewise.
697 (parse_xml_btrace_block): Likewise.
698 (parse_xml_btrace_pt_config_cpu): Likewise.
699 (parse_xml_btrace_pt_raw): Likewise.
700 (parse_xml_btrace_pt): Likewise.
701 (parse_xml_btrace_conf_bts): Likewise.
702 (parse_xml_btrace_conf_pt): Likewise.
703 (do_btrace_data_cleanup): Likewise.
704 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
705 * charset.c (cleanup_iconv): Likewise.
706 (do_cleanup_iterator): Likewise.
707 * cli-out.c (cli_uiout_dtor): Likewise.
708 (cli_table_begin): Likewise.
709 (cli_table_body): Likewise.
710 (cli_table_end): Likewise.
711 (cli_table_header): Likewise.
712 (cli_begin): Likewise.
713 (cli_end): Likewise.
714 (cli_field_int): Likewise.
715 (cli_field_skip): Likewise.
716 (cli_field_string): Likewise.
717 (cli_field_fmt): Likewise.
718 (cli_spaces): Likewise.
719 (cli_text): Likewise.
720 (cli_message): Likewise.
721 (cli_wrap_hint): Likewise.
722 (cli_flush): Likewise.
723 (cli_redirect): Likewise.
724 (out_field_fmt): Likewise.
725 (field_separator): Likewise.
726 (cli_out_set_stream): Likewise.
727 * cli/cli-cmds.c (compare_symtabs): Likewise.
728 * cli/cli-dump.c (call_dump_func): Likewise.
729 (restore_section_callback): Likewise.
730 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
731 (do_restore_user_call_depth): Likewise.
732 (do_free_command_lines_cleanup): Likewise.
733 * coff-pe-read.c (get_section_vmas): Likewise.
734 (pe_as16): Likewise.
735 (pe_as32): Likewise.
736 * coffread.c (coff_symfile_read): Likewise.
737 * common/agent.c (agent_look_up_symbols): Likewise.
738 * common/filestuff.c (do_close_cleanup): Likewise.
739 * common/format.c (free_format_pieces_cleanup): Likewise.
740 * common/vec.c (vec_o_reserve): Likewise.
741 * compile/compile-c-support.c (print_one_macro): Likewise.
742 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
743 (eq_symbol_error): Likewise.
744 (del_symbol_error): Likewise.
745 (error_symbol_once): Likewise.
746 (gcc_convert_symbol): Likewise.
747 (gcc_symbol_address): Likewise.
748 (hash_symname): Likewise.
749 (eq_symname): Likewise.
750 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
751 (eq_type_map_instance): Likewise.
752 (insert_type): Likewise.
753 (convert_type): Likewise.
754 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
755 (setup_sections): Likewise.
756 (link_hash_table_free): Likewise.
757 (copy_sections): Likewise.
758 * compile/compile-object-run.c (do_module_cleanup): Likewise.
759 * compile/compile.c (compile_print_value): Likewise.
760 (do_rmdir): Likewise.
761 (cleanup_compile_instance): Likewise.
762 (cleanup_unlink_file): Likewise.
763 * completer.c (free_completion_tracker): Likewise.
764 * corelow.c (add_to_spuid_list): Likewise.
765 * cp-namespace.c (reset_directive_searched): Likewise.
766 * cp-support.c (reset_directive_searched): Likewise.
767 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
768 (cris_frame_unwind_cache): Likewise.
769 * d-lang.c (builtin_d_type): Likewise.
770 * d-namespace.c (reset_directive_searched): Likewise.
771 * dbxread.c (dbx_free_symfile_info): Likewise.
772 (do_free_bincl_list_cleanup): Likewise.
773 * disasm.c (hash_dis_line_entry): Likewise.
774 (eq_dis_line_entry): Likewise.
775 (dis_asm_print_address): Likewise.
776 (fprintf_disasm): Likewise.
777 (do_ui_file_delete): Likewise.
778 * doublest.c (convert_floatformat_to_doublest): Likewise.
779 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
780 (dummy_frame_prev_register): Likewise.
781 (dummy_frame_this_id): Likewise.
782 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
783 (cache_eq): Likewise.
784 (cache_find): Likewise.
785 (tailcall_frame_this_id): Likewise.
786 (dwarf2_tailcall_prev_register_first): Likewise.
787 (tailcall_frame_prev_register): Likewise.
788 (tailcall_frame_dealloc_cache): Likewise.
789 (tailcall_frame_prev_arch): Likewise.
790 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
791 (dwarf2_frame_set_init_reg): Likewise.
792 (dwarf2_frame_init_reg): Likewise.
793 (dwarf2_frame_set_signal_frame_p): Likewise.
794 (dwarf2_frame_signal_frame_p): Likewise.
795 (dwarf2_frame_set_adjust_regnum): Likewise.
796 (dwarf2_frame_adjust_regnum): Likewise.
797 (clear_pointer_cleanup): Likewise.
798 (dwarf2_frame_cache): Likewise.
799 (find_cie): Likewise.
800 (dwarf2_frame_find_fde): Likewise.
801 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
802 (free_dwarf_expr_context_cleanup): Likewise.
803 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
804 (locexpr_get_frame_base): Likewise.
805 (loclist_find_frame_base_location): Likewise.
806 (loclist_get_frame_base): Likewise.
807 (dwarf_expr_dwarf_call): Likewise.
808 (dwarf_expr_get_base_type): Likewise.
809 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
810 (dwarf_expr_get_obj_addr): Likewise.
811 (entry_data_value_coerce_ref): Likewise.
812 (entry_data_value_copy_closure): Likewise.
813 (entry_data_value_free_closure): Likewise.
814 (get_frame_address_in_block_wrapper): Likewise.
815 (dwarf2_evaluate_property): Likewise.
816 (dwarf2_compile_property_to_c): Likewise.
817 (needs_frame_read_addr_from_reg): Likewise.
818 (needs_frame_get_reg_value): Likewise.
819 (needs_frame_frame_base): Likewise.
820 (needs_frame_frame_cfa): Likewise.
821 (needs_frame_tls_address): Likewise.
822 (needs_frame_dwarf_call): Likewise.
823 (needs_dwarf_reg_entry_value): Likewise.
824 (get_ax_pc): Likewise.
825 (locexpr_read_variable): Likewise.
826 (locexpr_read_variable_at_entry): Likewise.
827 (locexpr_read_needs_frame): Likewise.
828 (locexpr_describe_location): Likewise.
829 (locexpr_tracepoint_var_ref): Likewise.
830 (locexpr_generate_c_location): Likewise.
831 (loclist_read_variable): Likewise.
832 (loclist_read_variable_at_entry): Likewise.
833 (loclist_describe_location): Likewise.
834 (loclist_tracepoint_var_ref): Likewise.
835 (loclist_generate_c_location): Likewise.
836 * dwarf2read.c (line_header_hash_voidp): Likewise.
837 (line_header_eq_voidp): Likewise.
838 (dwarf2_has_info): Likewise.
839 (dwarf2_get_section_info): Likewise.
840 (locate_dwz_sections): Likewise.
841 (hash_file_name_entry): Likewise.
842 (eq_file_name_entry): Likewise.
843 (delete_file_name_entry): Likewise.
844 (dw2_setup): Likewise.
845 (dw2_get_file_names_reader): Likewise.
846 (dw2_find_pc_sect_compunit_symtab): Likewise.
847 (hash_signatured_type): Likewise.
848 (eq_signatured_type): Likewise.
849 (add_signatured_type_cu_to_table): Likewise.
850 (create_debug_types_hash_table): Likewise.
851 (lookup_dwo_signatured_type): Likewise.
852 (lookup_dwp_signatured_type): Likewise.
853 (lookup_signatured_type): Likewise.
854 (hash_type_unit_group): Likewise.
855 (eq_type_unit_group): Likewise.
856 (get_type_unit_group): Likewise.
857 (process_psymtab_comp_unit_reader): Likewise.
858 (sort_tu_by_abbrev_offset): Likewise.
859 (process_skeletonless_type_unit): Likewise.
860 (psymtabs_addrmap_cleanup): Likewise.
861 (dwarf2_read_symtab): Likewise.
862 (psymtab_to_symtab_1): Likewise.
863 (die_hash): Likewise.
864 (die_eq): Likewise.
865 (load_full_comp_unit_reader): Likewise.
866 (reset_die_in_process): Likewise.
867 (free_cu_line_header): Likewise.
868 (handle_DW_AT_stmt_list): Likewise.
869 (hash_dwo_file): Likewise.
870 (eq_dwo_file): Likewise.
871 (hash_dwo_unit): Likewise.
872 (eq_dwo_unit): Likewise.
873 (create_dwo_cu_reader): Likewise.
874 (create_dwo_unit_in_dwp_v1): Likewise.
875 (create_dwo_unit_in_dwp_v2): Likewise.
876 (lookup_dwo_unit_in_dwp): Likewise.
877 (dwarf2_locate_dwo_sections): Likewise.
878 (dwarf2_locate_common_dwp_sections): Likewise.
879 (dwarf2_locate_v2_dwp_sections): Likewise.
880 (hash_dwp_loaded_cutus): Likewise.
881 (eq_dwp_loaded_cutus): Likewise.
882 (lookup_dwo_cutu): Likewise.
883 (abbrev_table_free_cleanup): Likewise.
884 (dwarf2_free_abbrev_table): Likewise.
885 (find_partial_die_in_comp_unit): Likewise.
886 (free_line_header_voidp): Likewise.
887 (follow_die_offset): Likewise.
888 (follow_die_sig_1): Likewise.
889 (free_heap_comp_unit): Likewise.
890 (free_stack_comp_unit): Likewise.
891 (dwarf2_free_objfile): Likewise.
892 (per_cu_offset_and_type_hash): Likewise.
893 (per_cu_offset_and_type_eq): Likewise.
894 (get_die_type_at_offset): Likewise.
895 (partial_die_hash): Likewise.
896 (partial_die_eq): Likewise.
897 (dwarf2_per_objfile_free): Likewise.
898 (hash_strtab_entry): Likewise.
899 (eq_strtab_entry): Likewise.
900 (add_string): Likewise.
901 (hash_symtab_entry): Likewise.
902 (eq_symtab_entry): Likewise.
903 (delete_symtab_entry): Likewise.
904 (cleanup_mapped_symtab): Likewise.
905 (add_indices_to_cpool): Likewise.
906 (hash_psymtab_cu_index): Likewise.
907 (eq_psymtab_cu_index): Likewise.
908 (add_address_entry_worker): Likewise.
909 (unlink_if_set): Likewise.
910 (write_one_signatured_type): Likewise.
911 (save_gdb_index_command): Likewise.
912 * elfread.c (elf_symtab_read): Likewise.
913 (elf_gnu_ifunc_cache_hash): Likewise.
914 (elf_gnu_ifunc_cache_eq): Likewise.
915 (elf_gnu_ifunc_record_cache): Likewise.
916 (elf_gnu_ifunc_resolve_by_cache): Likewise.
917 (elf_get_probes): Likewise.
918 (probe_key_free): Likewise.
919 * f-lang.c (builtin_f_type): Likewise.
920 * frame-base.c (frame_base_append_sniffer): Likewise.
921 (frame_base_set_default): Likewise.
922 (frame_base_find_by_frame): Likewise.
923 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
924 (frame_unwind_append_unwinder): Likewise.
925 (frame_unwind_find_by_frame): Likewise.
926 * frame.c (frame_addr_hash): Likewise.
927 (frame_addr_hash_eq): Likewise.
928 (frame_stash_find): Likewise.
929 (do_frame_register_read): Likewise.
930 (unwind_to_current_frame): Likewise.
931 (frame_cleanup_after_sniffer): Likewise.
932 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
933 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
934 * ft32-tdep.c (ft32_frame_cache): Likewise.
935 * gcore.c (do_bfd_delete_cleanup): Likewise.
936 (gcore_create_callback): Likewise.
937 * gdb_bfd.c (hash_bfd): Likewise.
938 (eq_bfd): Likewise.
939 (gdb_bfd_open): Likewise.
940 (free_one_bfd_section): Likewise.
941 (gdb_bfd_ref): Likewise.
942 (gdb_bfd_unref): Likewise.
943 (get_section_descriptor): Likewise.
944 (gdb_bfd_map_section): Likewise.
945 (gdb_bfd_crc): Likewise.
946 (gdb_bfd_mark_parent): Likewise.
947 (gdb_bfd_record_inclusion): Likewise.
948 (gdb_bfd_requires_relocations): Likewise.
949 (print_one_bfd): Likewise.
950 * gdbtypes.c (type_pair_hash): Likewise.
951 (type_pair_eq): Likewise.
952 (builtin_type): Likewise.
953 (objfile_type): Likewise.
954 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
955 (vtable_address_point_offset): Likewise.
956 (gnuv3_get_vtable): Likewise.
957 (hash_value_and_voffset): Likewise.
958 (eq_value_and_voffset): Likewise.
959 (compare_value_and_voffset): Likewise.
960 (compute_vtable_size): Likewise.
961 (gnuv3_get_typeid_type): Likewise.
962 * go-lang.c (builtin_go_type): Likewise.
963 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
964 (bkscm_eq_block_smob): Likewise.
965 (bkscm_objfile_block_map): Likewise.
966 (bkscm_del_objfile_blocks): Likewise.
967 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
968 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
969 (gdbscm_disasm_print_address): Likewise.
970 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
971 (frscm_eq_frame_smob): Likewise.
972 (frscm_inferior_frame_map): Likewise.
973 (frscm_del_inferior_frames): Likewise.
974 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
975 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
976 (ofscm_objfile_smob_from_objfile): Likewise.
977 * guile/scm-ports.c (ioscm_write): Likewise.
978 (ioscm_file_port_delete): Likewise.
979 (ioscm_file_port_rewind): Likewise.
980 (ioscm_file_port_put): Likewise.
981 (ioscm_file_port_write): Likewise.
982 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
983 (psscm_pspace_smob_from_pspace): Likewise.
984 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
985 (scscm_recording_unwind_handler): Likewise.
986 (gdbscm_with_catch): Likewise.
987 (scscm_call_0_body): Likewise.
988 (scscm_call_1_body): Likewise.
989 (scscm_call_2_body): Likewise.
990 (scscm_call_3_body): Likewise.
991 (scscm_call_4_body): Likewise.
992 (scscm_apply_1_body): Likewise.
993 (scscm_eval_scheme_string): Likewise.
994 (gdbscm_safe_eval_string): Likewise.
995 (scscm_source_scheme_script): Likewise.
996 (gdbscm_safe_source_script): Likewise.
997 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
998 (gdbscm_call_scm_from_stringn): Likewise.
999 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1000 (syscm_eq_symbol_smob): Likewise.
1001 (syscm_get_symbol_map): Likewise.
1002 (syscm_del_objfile_symbols): Likewise.
1003 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1004 (stscm_eq_symtab_smob): Likewise.
1005 (stscm_objfile_symtab_map): Likewise.
1006 (stscm_del_objfile_symtabs): Likewise.
1007 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1008 (tyscm_eq_type_smob): Likewise.
1009 (tyscm_type_map): Likewise.
1010 (tyscm_copy_type_recursive): Likewise.
1011 (save_objfile_types): Likewise.
1012 * guile/scm-utils.c (extract_arg): Likewise.
1013 * h8300-tdep.c (h8300_frame_cache): Likewise.
1014 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1015 * hppa-tdep.c (compare_unwind_entries): Likewise.
1016 (find_unwind_entry): Likewise.
1017 (hppa_frame_cache): Likewise.
1018 (hppa_stub_frame_unwind_cache): Likewise.
1019 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1020 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1021 (hppaobsd_supply_fpregset): Likewise.
1022 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1023 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1024 * i386-tdep.c (i386_frame_cache): Likewise.
1025 (i386_epilogue_frame_cache): Likewise.
1026 (i386_sigtramp_frame_cache): Likewise.
1027 (i386_supply_gregset): Likewise.
1028 (i386_collect_gregset): Likewise.
1029 (i386_gdbarch_init): Likewise.
1030 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1031 (i386obsd_trapframe_cache): Likewise.
1032 * i387-tdep.c (i387_supply_fsave): Likewise.
1033 (i387_collect_fsave): Likewise.
1034 (i387_supply_fxsave): Likewise.
1035 (i387_collect_fxsave): Likewise.
1036 (i387_supply_xsave): Likewise.
1037 (i387_collect_xsave): Likewise.
1038 * ia64-tdep.c (ia64_frame_cache): Likewise.
1039 (ia64_sigtramp_frame_cache): Likewise.
1040 * infcmd.c (attach_command_continuation): Likewise.
1041 (attach_command_continuation_free_args): Likewise.
1042 * inferior.c (restore_inferior): Likewise.
1043 (delete_thread_of_inferior): Likewise.
1044 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1045 (get_inflow_inferior_data): Likewise.
1046 (inflow_inferior_exit): Likewise.
1047 * infrun.c (displaced_step_clear_cleanup): Likewise.
1048 (restore_current_uiout_cleanup): Likewise.
1049 (release_stop_context_cleanup): Likewise.
1050 (do_restore_infcall_suspend_state_cleanup): Likewise.
1051 (do_restore_infcall_control_state_cleanup): Likewise.
1052 (restore_inferior_ptid): Likewise.
1053 * inline-frame.c (block_starting_point_at): Likewise.
1054 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1055 * jit.c (get_jit_objfile_data): Likewise.
1056 (get_jit_program_space_data): Likewise.
1057 (jit_object_close_impl): Likewise.
1058 (jit_find_objf_with_entry_addr): Likewise.
1059 (jit_breakpoint_deleted): Likewise.
1060 (jit_unwind_reg_set_impl): Likewise.
1061 (jit_unwind_reg_get_impl): Likewise.
1062 (jit_dealloc_cache): Likewise.
1063 (jit_frame_sniffer): Likewise.
1064 (jit_frame_prev_register): Likewise.
1065 (jit_prepend_unwinder): Likewise.
1066 (jit_inferior_exit_hook): Likewise.
1067 (free_objfile_data): Likewise.
1068 * jv-lang.c (jv_per_objfile_free): Likewise.
1069 (get_dynamics_objfile): Likewise.
1070 (get_java_class_symtab): Likewise.
1071 (builtin_java_type): Likewise.
1072 * language.c (language_string_char_type): Likewise.
1073 (language_bool_type): Likewise.
1074 (language_lookup_primitive_type): Likewise.
1075 (language_lookup_primitive_type_as_symbol): Likewise.
1076 * linespec.c (hash_address_entry): Likewise.
1077 (eq_address_entry): Likewise.
1078 (iterate_inline_only): Likewise.
1079 (iterate_name_matcher): Likewise.
1080 (decode_line_2_compare_items): Likewise.
1081 (collect_one_symbol): Likewise.
1082 (compare_symbols): Likewise.
1083 (compare_msymbols): Likewise.
1084 (add_symtabs_to_list): Likewise.
1085 (collect_symbols): Likewise.
1086 (compare_msyms): Likewise.
1087 (add_minsym): Likewise.
1088 (cleanup_linespec_result): Likewise.
1089 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1090 * linux-nat.c (delete_lwp_cleanup): Likewise.
1091 (count_events_callback): Likewise.
1092 (select_event_lwp_callback): Likewise.
1093 (resume_stopped_resumed_lwps): Likewise.
1094 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1095 (invalidate_linux_cache_inf): Likewise.
1096 (get_linux_inferior_data): Likewise.
1097 (linux_find_memory_regions_thunk): Likewise.
1098 (linux_make_mappings_callback): Likewise.
1099 (linux_corefile_thread_callback): Likewise.
1100 (find_mapping_size): Likewise.
1101 * linux-thread-db.c (find_new_threads_callback): Likewise.
1102 * lm32-tdep.c (lm32_frame_cache): Likewise.
1103 * m2-lang.c (builtin_m2_type): Likewise.
1104 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1105 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1106 (m32r_linux_supply_gregset): Likewise.
1107 (m32r_linux_collect_gregset): Likewise.
1108 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1109 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1110 * m68k-tdep.c (m68k_frame_cache): Likewise.
1111 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1112 (m68kbsd_supply_gregset): Likewise.
1113 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1114 * m88k-tdep.c (m88k_frame_cache): Likewise.
1115 (m88k_supply_gregset): Likewise.
1116
1117 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1118
1119 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1120 to allocation result assignment.
1121 * ada-exp.y (write_object_renaming): Likewise.
1122 (write_ambiguous_var): Likewise.
1123 (ada_nget_field_index): Likewise.
1124 (write_var_or_type): Likewise.
1125 * ada-lang.c (ada_decode_symbol): Likewise.
1126 (ada_value_assign): Likewise.
1127 (value_pointer): Likewise.
1128 (cache_symbol): Likewise.
1129 (add_nonlocal_symbols): Likewise.
1130 (ada_name_for_lookup): Likewise.
1131 (symbol_completion_add): Likewise.
1132 (ada_to_fixed_type_1): Likewise.
1133 (ada_get_next_arg): Likewise.
1134 (defns_collected): Likewise.
1135 * ada-lex.l (processId): Likewise.
1136 (processString): Likewise.
1137 * ada-tasks.c (read_known_tasks_array): Likewise.
1138 (read_known_tasks_list): Likewise.
1139 * ada-typeprint.c (decoded_type_name): Likewise.
1140 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1141 * amd64-tdep.c (amd64_push_arguments): Likewise.
1142 (amd64_displaced_step_copy_insn): Likewise.
1143 (amd64_classify_insn_at): Likewise.
1144 (amd64_relocate_instruction): Likewise.
1145 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1146 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1147 (initialize_current_architecture): Likewise.
1148 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1149 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1150 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1151 (arm_push_dummy_call): Likewise.
1152 (extend_buffer_earlier): Likewise.
1153 (arm_adjust_breakpoint_address): Likewise.
1154 (arm_skip_stub): Likewise.
1155 * auto-load.c (filename_is_in_pattern): Likewise.
1156 (maybe_add_script_file): Likewise.
1157 (maybe_add_script_text): Likewise.
1158 (auto_load_objfile_script_1): Likewise.
1159 * auxv.c (ld_so_xfer_auxv): Likewise.
1160 * ax-general.c (new_agent_expr): Likewise.
1161 (grow_expr): Likewise.
1162 (ax_reg_mask): Likewise.
1163 * bcache.c (bcache_full): Likewise.
1164 * breakpoint.c (program_breakpoint_here_p): Likewise.
1165 * btrace.c (parse_xml_raw): Likewise.
1166 * build-id.c (build_id_to_debug_bfd): Likewise.
1167 * buildsym.c (end_symtab_with_blockvector): Likewise.
1168 * c-exp.y (string_exp): Likewise.
1169 (qualified_name): Likewise.
1170 (write_destructor_name): Likewise.
1171 (operator_stoken): Likewise.
1172 (parse_number): Likewise.
1173 (scan_macro_expansion): Likewise.
1174 (yylex): Likewise.
1175 (c_print_token): Likewise.
1176 * c-lang.c (c_get_string): Likewise.
1177 (emit_numeric_character): Likewise.
1178 * charset.c (wchar_iterate): Likewise.
1179 * cli/cli-cmds.c (complete_command): Likewise.
1180 (make_command): Likewise.
1181 * cli/cli-dump.c (restore_section_callback): Likewise.
1182 (restore_binary_file): Likewise.
1183 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1184 * cli/cli-script.c (execute_control_command): Likewise.
1185 * cli/cli-setshow.c (do_set_command): Likewise.
1186 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1187 (read_pe_exported_syms): Likewise.
1188 * coffread.c (coff_read_struct_type): Likewise.
1189 (coff_read_enum_type): Likewise.
1190 * common/btrace-common.c (btrace_data_append): Likewise.
1191 * common/buffer.c (buffer_grow): Likewise.
1192 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1193 * common/format.c (parse_format_string): Likewise.
1194 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1195 * common/xml-utils.c (xml_escape_text): Likewise.
1196 * compile/compile-object-load.c (copy_sections): Likewise.
1197 (compile_object_load): Likewise.
1198 * compile/compile-object-run.c (compile_object_run): Likewise.
1199 * completer.c (filename_completer): Likewise.
1200 * corefile.c (read_memory_typed_address): Likewise.
1201 (write_memory_unsigned_integer): Likewise.
1202 (write_memory_signed_integer): Likewise.
1203 (complete_set_gnutarget): Likewise.
1204 * corelow.c (get_core_register_section): Likewise.
1205 * cp-name-parser.y (d_grab): Likewise.
1206 (allocate_info): Likewise.
1207 (cp_new_demangle_parse_info): Likewise.
1208 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1209 (cp_lookup_symbol_in_namespace): Likewise.
1210 (lookup_namespace_scope): Likewise.
1211 (find_symbol_in_baseclass): Likewise.
1212 (cp_lookup_nested_symbol): Likewise.
1213 (cp_lookup_transparent_type_loop): Likewise.
1214 * cp-support.c (copy_string_to_obstack): Likewise.
1215 (make_symbol_overload_list): Likewise.
1216 (make_symbol_overload_list_namespace): Likewise.
1217 (make_symbol_overload_list_adl_namespace): Likewise.
1218 (first_component_command): Likewise.
1219 * cp-valprint.c (cp_print_value): Likewise.
1220 * ctf.c (ctf_xfer_partial): Likewise.
1221 * d-exp.y (StringExp): Likewise.
1222 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1223 (lookup_module_scope): Likewise.
1224 (find_symbol_in_baseclass): Likewise.
1225 (d_lookup_nested_symbol): Likewise.
1226 * dbxread.c (find_stab_function_addr): Likewise.
1227 (read_dbx_symtab): Likewise.
1228 (dbx_end_psymtab): Likewise.
1229 (cp_set_block_scope): Likewise.
1230 * dcache.c (dcache_alloc): Likewise.
1231 * demangle.c (_initialize_demangler): Likewise.
1232 * dicos-tdep.c (dicos_load_module_p): Likewise.
1233 * dictionary.c (dict_create_hashed_expandable): Likewise.
1234 (dict_create_linear_expandable): Likewise.
1235 (expand_hashtable): Likewise.
1236 (add_symbol_linear_expandable): Likewise.
1237 * dwarf2-frame.c (add_cie): Likewise.
1238 (add_fde): Likewise.
1239 (dwarf2_build_frame_info): Likewise.
1240 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1241 (dwarf_expr_fetch_address): Likewise.
1242 (add_piece): Likewise.
1243 (execute_stack_op): Likewise.
1244 * dwarf2loc.c (chain_candidate): Likewise.
1245 (dwarf_entry_parameter_to_value): Likewise.
1246 (read_pieced_value): Likewise.
1247 (write_pieced_value): Likewise.
1248 * dwarf2read.c (dwarf2_read_section): Likewise.
1249 (add_type_unit): Likewise.
1250 (read_comp_units_from_section): Likewise.
1251 (fixup_go_packaging): Likewise.
1252 (dwarf2_compute_name): Likewise.
1253 (dwarf2_physname): Likewise.
1254 (create_dwo_unit_in_dwp_v1): Likewise.
1255 (create_dwo_unit_in_dwp_v2): Likewise.
1256 (read_func_scope): Likewise.
1257 (read_call_site_scope): Likewise.
1258 (dwarf2_attach_fields_to_type): Likewise.
1259 (process_structure_scope): Likewise.
1260 (mark_common_block_symbol_computed): Likewise.
1261 (read_common_block): Likewise.
1262 (abbrev_table_read_table): Likewise.
1263 (guess_partial_die_structure_name): Likewise.
1264 (fixup_partial_die): Likewise.
1265 (add_file_name): Likewise.
1266 (dwarf2_const_value_data): Likewise.
1267 (dwarf2_const_value_attr): Likewise.
1268 (build_error_marker_type): Likewise.
1269 (guess_full_die_structure_name): Likewise.
1270 (anonymous_struct_prefix): Likewise.
1271 (typename_concat): Likewise.
1272 (dwarf2_canonicalize_name): Likewise.
1273 (dwarf2_name): Likewise.
1274 (write_constant_as_bytes): Likewise.
1275 (dwarf2_fetch_constant_bytes): Likewise.
1276 (copy_string): Likewise.
1277 (parse_macro_definition): Likewise.
1278 * elfread.c (elf_symfile_segments): Likewise.
1279 (elf_rel_plt_read): Likewise.
1280 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1281 (elf_gnu_ifunc_resolve_by_got): Likewise.
1282 (elf_read_minimal_symbols): Likewise.
1283 (elf_gnu_ifunc_record_cache): Likewise.
1284 * event-top.c (top_level_prompt): Likewise.
1285 (command_line_handler): Likewise.
1286 * exec.c (resize_section_table): Likewise.
1287 * expprint.c (print_subexp_standard): Likewise.
1288 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1289 * findcmd.c (parse_find_args): Likewise.
1290 * findvar.c (address_from_register): Likewise.
1291 * frame.c (get_prev_frame_always): Likewise.
1292 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1293 (get_section_descriptor): Likewise.
1294 * gdb_obstack.c (obconcat): Likewise.
1295 (obstack_strdup): Likewise.
1296 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1297 (create_set_type): Likewise.
1298 (lookup_unsigned_typename): Likewise.
1299 (lookup_signed_typename): Likewise.
1300 (resolve_dynamic_union): Likewise.
1301 (resolve_dynamic_struct): Likewise.
1302 (add_dyn_prop): Likewise.
1303 (copy_dynamic_prop_list): Likewise.
1304 (arch_flags_type): Likewise.
1305 (append_composite_type_field_raw): Likewise.
1306 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1307 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1308 * go-exp.y (string_exp): Likewise.
1309 * go-lang.c (go_demangle): Likewise.
1310 * guile/guile.c (compute_scheme_string): Likewise.
1311 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1312 (gdbscm_canonicalize_command_name): Likewise.
1313 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1314 (ioscm_init_memory_port): Likewise.
1315 (ioscm_reinit_memory_port): Likewise.
1316 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1317 (gdbscm_gc_dup_argv): Likewise.
1318 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1319 * hppa-tdep.c (internalize_unwinds): Likewise.
1320 (read_unwind_info): Likewise.
1321 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1322 (windows_core_xfer_shared_libraries): Likewise.
1323 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1324 (i386_stap_parse_special_token_triplet): Likewise.
1325 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1326 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1327 * inf-child.c (inf_child_fileio_readlink): Likewise.
1328 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1329 (inf_ptrace_store_register): Likewise.
1330 * infrun.c (follow_exec): Likewise.
1331 (displaced_step_prepare_throw): Likewise.
1332 (save_stop_context): Likewise.
1333 (save_infcall_suspend_state): Likewise.
1334 * jit.c (jit_read_descriptor): Likewise.
1335 (jit_read_code_entry): Likewise.
1336 (jit_symtab_line_mapping_add_impl): Likewise.
1337 (finalize_symtab): Likewise.
1338 (jit_unwind_reg_get_impl): Likewise.
1339 * jv-exp.y (QualifiedName): Likewise.
1340 * jv-lang.c (get_java_utf8_name): Likewise.
1341 (type_from_class): Likewise.
1342 (java_demangle_type_signature): Likewise.
1343 (java_class_name_from_physname): Likewise.
1344 * jv-typeprint.c (java_type_print_base): Likewise.
1345 * jv-valprint.c (java_value_print): Likewise.
1346 * language.c (add_language): Likewise.
1347 * linespec.c (add_sal_to_sals_basic): Likewise.
1348 (add_sal_to_sals): Likewise.
1349 (decode_objc): Likewise.
1350 (find_linespec_symbols): Likewise.
1351 * linux-fork.c (fork_save_infrun_state): Likewise.
1352 * linux-nat.c (linux_nat_detach): Likewise.
1353 (linux_nat_fileio_readlink): Likewise.
1354 * linux-record.c (record_linux_sockaddr): Likewise.
1355 (record_linux_msghdr): Likewise.
1356 (Do): Likewise.
1357 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1358 (linux_collect_regset_section_cb): Likewise.
1359 (linux_get_siginfo_data): Likewise.
1360 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1361 (try_thread_db_load_from_dir): Likewise.
1362 (thread_db_load_search): Likewise.
1363 (info_auto_load_libthread_db): Likewise.
1364 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1365 (m32c_m16c_pointer_to_address): Likewise.
1366 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1367 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1368 * machoread.c (macho_check_dsym): Likewise.
1369 * macroexp.c (resize_buffer): Likewise.
1370 (gather_arguments): Likewise.
1371 (maybe_expand): Likewise.
1372 * macrotab.c (new_macro_key): Likewise.
1373 (new_source_file): Likewise.
1374 (new_macro_definition): Likewise.
1375 * mdebugread.c (parse_symbol): Likewise.
1376 (parse_type): Likewise.
1377 (parse_partial_symbols): Likewise.
1378 (psymtab_to_symtab_1): Likewise.
1379 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1380 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1381 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1382 (mi_cmd_data_read_memory_bytes): Likewise.
1383 (mi_cmd_data_write_memory_bytes): Likewise.
1384 (mi_cmd_trace_frame_collected): Likewise.
1385 * mi/mi-parse.c (mi_parse_argv): Likewise.
1386 (mi_parse): Likewise.
1387 * minidebug.c (lzma_open): Likewise.
1388 (lzma_pread): Likewise.
1389 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1390 (mips_print_fp_register): Likewise.
1391 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1392 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1393 * mt-tdep.c (mt_register_name): Likewise.
1394 (mt_registers_info): Likewise.
1395 (mt_push_dummy_call): Likewise.
1396 * namespace.c (add_using_directive): Likewise.
1397 * nat/linux-btrace.c (perf_event_read): Likewise.
1398 (linux_enable_bts): Likewise.
1399 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1400 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1401 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1402 (nto_parse_redirection): Likewise.
1403 * objc-lang.c (objc_demangle): Likewise.
1404 (find_methods): Likewise.
1405 * objfiles.c (get_objfile_bfd_data): Likewise.
1406 (set_objfile_main_name): Likewise.
1407 (allocate_objfile): Likewise.
1408 (objfile_relocate): Likewise.
1409 (update_section_map): Likewise.
1410 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1411 * p-exp.y (exp): Likewise.
1412 (yylex): Likewise.
1413 * p-valprint.c (pascal_object_print_value): Likewise.
1414 * parse.c (initialize_expout): Likewise.
1415 (mark_completion_tag): Likewise.
1416 (copy_name): Likewise.
1417 (parse_float): Likewise.
1418 (type_stack_reserve): Likewise.
1419 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1420 (ppu2spu_prev_register): Likewise.
1421 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1422 * printcmd.c (printf_wide_c_string): Likewise.
1423 (printf_pointer): Likewise.
1424 * probe.c (parse_probes): Likewise.
1425 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1426 (cmdpy_init): Likewise.
1427 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1428 * python/py-symtab.c (set_sal): Likewise.
1429 * python/py-unwind.c (pyuw_sniffer): Likewise.
1430 * python/python.c (python_interactive_command): Likewise.
1431 (compute_python_string): Likewise.
1432 * ravenscar-thread.c (get_running_thread_id): Likewise.
1433 * record-full.c (record_full_exec_insn): Likewise.
1434 (record_full_core_open_1): Likewise.
1435 * regcache.c (regcache_raw_read_signed): Likewise.
1436 (regcache_raw_read_unsigned): Likewise.
1437 (regcache_cooked_read_signed): Likewise.
1438 (regcache_cooked_read_unsigned): Likewise.
1439 * remote-fileio.c (remote_fileio_func_open): Likewise.
1440 (remote_fileio_func_rename): Likewise.
1441 (remote_fileio_func_unlink): Likewise.
1442 (remote_fileio_func_stat): Likewise.
1443 (remote_fileio_func_system): Likewise.
1444 * remote-mips.c (mips_xfer_memory): Likewise.
1445 (mips_load_srec): Likewise.
1446 (pmon_end_download): Likewise.
1447 * remote.c (new_remote_state): Likewise.
1448 (map_regcache_remote_table): Likewise.
1449 (remote_register_number_and_offset): Likewise.
1450 (init_remote_state): Likewise.
1451 (get_memory_packet_size): Likewise.
1452 (remote_pass_signals): Likewise.
1453 (remote_program_signals): Likewise.
1454 (remote_start_remote): Likewise.
1455 (remote_check_symbols): Likewise.
1456 (remote_query_supported): Likewise.
1457 (extended_remote_attach): Likewise.
1458 (process_g_packet): Likewise.
1459 (store_registers_using_G): Likewise.
1460 (putpkt_binary): Likewise.
1461 (read_frame): Likewise.
1462 (compare_sections_command): Likewise.
1463 (remote_hostio_pread): Likewise.
1464 (remote_hostio_readlink): Likewise.
1465 (remote_file_put): Likewise.
1466 (remote_file_get): Likewise.
1467 (remote_pid_to_exec_file): Likewise.
1468 (_initialize_remote): Likewise.
1469 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1470 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1471 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1472 (bfd_uses_spe_extensions): Likewise.
1473 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1474 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1475 * solib-dsbt.c (decode_loadmap): Likewise.
1476 (fetch_loadmap): Likewise.
1477 (scan_dyntag): Likewise.
1478 (enable_break): Likewise.
1479 (dsbt_relocate_main_executable): Likewise.
1480 * solib-frv.c (fetch_loadmap): Likewise.
1481 (enable_break2): Likewise.
1482 (frv_relocate_main_executable): Likewise.
1483 * solib-spu.c (spu_relocate_main_executable): Likewise.
1484 (spu_bfd_open): Likewise.
1485 * solib-svr4.c (lm_info_read): Likewise.
1486 (read_program_header): Likewise.
1487 (find_program_interpreter): Likewise.
1488 (scan_dyntag): Likewise.
1489 (elf_locate_base): Likewise.
1490 (open_symbol_file_object): Likewise.
1491 (read_program_headers_from_bfd): Likewise.
1492 (svr4_relocate_main_executable): Likewise.
1493 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1494 * solib.c (solib_find_1): Likewise.
1495 (exec_file_find): Likewise.
1496 (solib_find): Likewise.
1497 * source.c (openp): Likewise.
1498 (print_source_lines_base): Likewise.
1499 (forward_search_command): Likewise.
1500 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1501 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1502 (spu_get_overlay_table): Likewise.
1503 * stabsread.c (patch_block_stabs): Likewise.
1504 (define_symbol): Likewise.
1505 (again:): Likewise.
1506 (read_member_functions): Likewise.
1507 (read_one_struct_field): Likewise.
1508 (read_enum_type): Likewise.
1509 (common_block_start): Likewise.
1510 * stack.c (read_frame_arg): Likewise.
1511 (backtrace_command): Likewise.
1512 * stap-probe.c (stap_parse_register_operand): Likewise.
1513 * symfile.c (syms_from_objfile_1): Likewise.
1514 (find_separate_debug_file): Likewise.
1515 (load_command): Likewise.
1516 (load_progress): Likewise.
1517 (load_section_callback): Likewise.
1518 (reread_symbols): Likewise.
1519 (add_filename_language): Likewise.
1520 (allocate_compunit_symtab): Likewise.
1521 (read_target_long_array): Likewise.
1522 (simple_read_overlay_table): Likewise.
1523 * symtab.c (symbol_set_names): Likewise.
1524 (resize_symbol_cache): Likewise.
1525 (rbreak_command): Likewise.
1526 (completion_list_add_name): Likewise.
1527 (completion_list_objc_symbol): Likewise.
1528 (add_filename_to_list): Likewise.
1529 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1530 * target-memory.c (target_write_memory_blocks): Likewise.
1531 * target.c (target_read_string): Likewise.
1532 (read_whatever_is_readable): Likewise.
1533 (target_read_alloc_1): Likewise.
1534 (simple_search_memory): Likewise.
1535 (target_fileio_read_alloc_1): Likewise.
1536 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1537 * top.c (command_line_input): Likewise.
1538 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1539 * tracefile.c (tracefile_fetch_registers): Likewise.
1540 * tracepoint.c (add_memrange): Likewise.
1541 (init_collection_list): Likewise.
1542 (add_aexpr): Likewise.
1543 (trace_dump_actions): Likewise.
1544 (parse_trace_status): Likewise.
1545 (parse_tracepoint_definition): Likewise.
1546 (parse_tsv_definition): Likewise.
1547 (parse_static_tracepoint_marker_definition): Likewise.
1548 * tui/tui-file.c (tui_sfileopen): Likewise.
1549 (tui_file_adjust_strbuf): Likewise.
1550 * tui/tui-io.c (tui_expand_tabs): Likewise.
1551 * tui/tui-source.c (tui_set_source_content): Likewise.
1552 * typeprint.c (find_global_typedef): Likewise.
1553 * ui-file.c (do_ui_file_xstrdup): Likewise.
1554 (ui_file_obsavestring): Likewise.
1555 (mem_file_write): Likewise.
1556 * utils.c (make_hex_string): Likewise.
1557 (get_regcomp_error): Likewise.
1558 (puts_filtered_tabular): Likewise.
1559 (gdb_realpath_keepfile): Likewise.
1560 (ldirname): Likewise.
1561 (gdb_bfd_errmsg): Likewise.
1562 (substitute_path_component): Likewise.
1563 * valops.c (search_struct_method): Likewise.
1564 (find_oload_champ_namespace_loop): Likewise.
1565 * valprint.c (print_decimal_chars): Likewise.
1566 (read_string): Likewise.
1567 (generic_emit_char): Likewise.
1568 * varobj.c (varobj_delete): Likewise.
1569 (varobj_value_get_print_value): Likewise.
1570 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1571 * windows-tdep.c (display_one_tib): Likewise.
1572 * xcoffread.c (read_xcoff_symtab): Likewise.
1573 (process_xcoff_symbol): Likewise.
1574 (swap_sym): Likewise.
1575 (scan_xcoff_symtab): Likewise.
1576 (xcoff_initial_scan): Likewise.
1577 * xml-support.c (gdb_xml_end_element): Likewise.
1578 (xml_process_xincludes): Likewise.
1579 (xml_fetch_content_from_file): Likewise.
1580 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1581 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1582
1583 2015-09-23 James Bowman <james.bowman@ftdichip.com>
1584
1585 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1586 instead of builtin_func_ptr.
1587 (ft32_pointer_to_address): New function.
1588 (ft32_address_class_type_flags): New function.
1589 (ft32_address_class_type_flags_to_name): New function.
1590 (ft32_address_class_name_to_type_flags): New function.
1591 (ft32_gdbarch_init): Set tdep->pc_type. Call
1592 set_gdbarch_pointer_to_address,
1593 set_gdbarch_address_class_type_flags
1594 set_gdbarch_address_class_name_to_type_flags,
1595 and set_gdbarch_address_class_type_flags_to_name.
1596 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1597
1598 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1599
1600 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1601 value is a reference, actually dereference it in order to get
1602 the underlying value.
1603
1604 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1605
1606 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1607
1608 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1609
1610 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1611 * linespec.c (linespec_lexer_lex_string): Same.
1612
1613 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1614
1615 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1616
1617 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1618
1619 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1620 variable. Call aarch64_decode_adr instead of
1621 aarch64_decode_adrp.
1622 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1623 (aarch64_decode_adr): New function declaration.
1624 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1625 (aarch64_decode_adr): New function, factored out from
1626 aarch64_decode_adrp to decode both adr and adrp instructions.
1627
1628 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1629
1630 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1631 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1632 (aarch64-insn.o): New rule.
1633 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1634 (aarch64*-*-linux*): Likewise.
1635 * arch/aarch64-insn.c: New file.
1636 * arch/aarch64-insn.h: New file.
1637 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1638 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1639 arch/aarch64-insn.h.
1640 (decode_add_sub_imm): Rename to ...
1641 (aarch64_decode_add_sub_imm): ... this.
1642 (decode_adrp): Rename to ...
1643 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1644 Declare in arch/aarch64-insn.h.
1645 (decode_b): Rename to ...
1646 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1647 Declare in arch/aarch64-insn.h.
1648 (decode_bcond): Rename to ...
1649 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1650 Declare in arch/aarch64-insn.h.
1651 (decode_br): Rename to ...
1652 (aarch64_decode_br): ... this.
1653 (decode_cb): Rename to ...
1654 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1655 Declare in arch/aarch64-insn.h.
1656 (decode_eret): Rename to ...
1657 (aarch64_decode_eret): ... this.
1658 (decode_movz): Rename to ...
1659 (aarch64_decode_movz): ... this.
1660 (decode_orr_shifted_register_x): Rename to ...
1661 (aarch64_decode_orr_shifted_register_x): ... this.
1662 (decode_ret): Rename to ...
1663 (aarch64_decode_ret): ... this.
1664 (decode_stp_offset): Rename to ...
1665 (aarch64_decode_stp_offset): ... this.
1666 (decode_stp_offset_wb): Rename to ...
1667 (aarch64_decode_stp_offset_wb): ... this.
1668 (decode_stur): Rename to ...
1669 (aarch64_decode_stur): ... this.
1670 (decode_tb): Rename to ...
1671 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1672 Declare in arch/aarch64-insn.h.
1673 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1674
1675 2015-09-20 Doug Evans <xdje42@gmail.com>
1676
1677 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1678
1679 2015-09-20 Doug Evans <xdje42@gmail.com>
1680
1681 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1682 variable name that collides with a parameter.
1683
1684 2015-09-20 Joel Brobecker <brobecker@adacore.com>
1685
1686 * dwarf2loc.c (locexpr_get_frame_base): Renames
1687 block_op_get_frame_base.
1688 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1689 block_op_get_frame_base by reference to locexpr_get_frame_base.
1690 (loclist_get_frame_base): New function, near identical copy of
1691 locexpr_get_frame_base.
1692 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1693 block_op_get_frame_base by reference to loclist_get_frame_base.
1694
1695 2015-09-19 Doug Evans <xdje42@gmail.com>
1696
1697 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1698 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1699
1700 2015-09-18 Doug Evans <xdje42@gmail.com>
1701
1702 * linux-thread-db.c (record_thread): Return the created thread.
1703 (thread_from_lwp): Likewise.
1704 (thread_db_get_thread_local_address): Update.
1705
1706 2015-09-18 Doug Evans <xdje42@gmail.com>
1707
1708 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1709 move only member demangled_name up. All uses updated.
1710
1711 2015-09-18 Doug Evans <xdje42@gmail.com>
1712
1713 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1714 kind of minimal symbol in the error message.
1715 * objfiles.c (objfile_flavour_name): New function.
1716 * objfiles.h (objfile_flavour_name): Declare.
1717
1718 2015-09-18 Yao Qi <yao.qi@linaro.org>
1719
1720 * nat/aarch64-linux.c: Include elf/common.h,
1721 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1722 (aarch64_ps_get_thread_area): New function.
1723 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1724 (aarch64_ps_get_thread_area): Declare.
1725 * aarch64-linux-nat.c (ps_get_thread_area): Call
1726 aarch64_ps_get_thread_area.
1727
1728 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1729
1730 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1731
1732 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1733
1734 * NEWS: Announce new scheduler-locking mode.
1735 * infrun.c (schedlock_replay): New.
1736 (scheduler_enums): Add schedlock_replay.
1737 (scheduler_mode): Change default to schedlock_replay.
1738 (user_visible_resume_ptid): Handle schedlock_replay.
1739 (clear_proceed_status_thread): Stop replaying if resumed thread is
1740 not replaying.
1741 (schedlock_applies): Handle schedlock_replay.
1742 (_initialize_infrun): Document new scheduler-locking mode.
1743 * record-btrace.c (record_btrace_resume): Remove code to stop other
1744 threads when not replaying the resumed thread.
1745
1746 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1747
1748 * record-btrace.c ((record_btrace_will_replay): New.
1749 (init_record_btrace_ops): Initialize to_record_will_replay.
1750 * record-full.c ((record_full_will_replay): New.
1751 (init_record_full_ops): Initialize to_record_will_replay.
1752 * target-delegates.c: Regenerated.
1753 * target.c (target_record_will_replay): New.
1754 * target.h (struct target_ops) <to_record_will_replay>: New.
1755 (target_record_will_replay): New.
1756
1757 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1758
1759 * record-btrace.c (record_btrace_resume): Call
1760 target_record_stop_replaying.
1761 (record_btrace_stop_replaying_all): New.
1762 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1763 * record-full.c (record_full_stop_replaying): New.
1764 (init_record_full_ops ): Initialize to_record_stop_replaying.
1765 * target-delegates.c: Regenerated.
1766 * target.c (target_record_stop_replaying): New.
1767 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1768 (target_record_stop_replaying): New.
1769
1770 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1771
1772 * record-btrace.c (record_btrace_xfer_partial)
1773 (record_btrace_store_registers, record_btrace_prepare_to_store):
1774 Call record_btrace_is_replaying with inferior_ptid instead of
1775 minus_one_ptid.
1776 (record_btrace_store_registers): Change error message.
1777
1778 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1779
1780 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1781 Update users to pass minus_one_ptid.
1782 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1783 * record.c (cmd_record_delete): Pass inferior_ptid to
1784 target_record_is_replaying.
1785 * target-delegates.c: Regenerated.
1786 * target.c (target_record_is_replaying): Add ptid argument.
1787 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1788 argument.
1789 (target_record_is_replaying): Add ptid argument.
1790
1791 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1792
1793 * record-btrace.c (record_btrace_open): Remove non_stop check.
1794 * NEWS: Announce that record btrace supports non-stop mode.
1795
1796 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1797
1798 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1799 in the TARKET_WAITKIND_NO_HISTORY case.
1800
1801 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1802
1803 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1804 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1805
1806 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1807
1808 * record-btrace.c (get_thread_current_frame): New.
1809 (record_btrace_start_replaying): Call get_thread_current_frame.
1810
1811 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1812
1813 * record-btrace.c (record_btrace_resume_thread): A move request
1814 overwrites a previous move request.
1815 (record_btrace_find_resume_thread): Removed.
1816 (record_btrace_resume): Resume all requested threads.
1817
1818 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1819
1820 * record-btrace.c: Include vec.h.
1821 (record_btrace_find_thread_to_move): Removed.
1822 (btrace_step_no_resumed, btrace_step_again)
1823 (record_btrace_stop_replaying_at_end): New.
1824 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1825 (record_btrace_single_step_forward): Remove calls to
1826 record_btrace_stop_replaying.
1827 (record_btrace_step_thread): Do only one step for BTHR_CONT and
1828 BTHR_RCONT. Keep threads at the end of their history moving.
1829 (record_btrace_wait): Call record_btrace_step_thread for all threads
1830 until one reports an event. Call record_btrace_stop_replaying_at_end
1831 for the eventing thread.
1832
1833 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1834
1835 * record-btrace.c (record_btrace_single_step_forward): Return
1836 NO_HISTORY if a step brings us to the end of the execution history.
1837
1838 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1839
1840 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1841 to ...
1842 (record_btrace_single_step_forward): ... here and
1843 (record_btrace_single_step_backward): ... here.
1844
1845 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1846
1847 * record-btrace.c (btrace_step_spurious)
1848 (record_btrace_single_step_forward)
1849 (record_btrace_single_step_backward): New.
1850 (record_btrace_step_thread): Call record_btrace_single_step_forward
1851 and record_btrace_single_step_backward.
1852
1853 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1854
1855 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1856 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1857
1858 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1859
1860 * record-btrace.c (btrace_thread_flag_to_str)
1861 (record_btrace_cancel_resume): New.
1862 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1863 (record_btrace_resume): Print execution direction.
1864 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1865 (record_btrace_wait): Call record_btrace_cancel_resume.
1866
1867 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1868
1869 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1870 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1871 (record_btrace_find_thread_to_move): Also accept threads that have
1872 BTHR_STOP set.
1873 (btrace_step_stopped_on_request, record_btrace_stop): New.
1874 (record_btrace_step_thread): Support BTHR_STOP.
1875 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1876 (init_record_btrace_ops): Initialize to_stop.
1877
1878 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1879
1880 * record-btrace.c (record_btrace_wait): Replace non_stop check with
1881 target_is_non_stop_p ().
1882
1883 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
1884
1885 * ada-typeprint.c (print_array_type): Do not describe arrays as
1886 packed when they embed dynamic elements.
1887
1888 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1889
1890 * symtab.h (address_class): Document that TLS variables
1891 are handled by LOC_UNRESOLVED.
1892 * findvar.c (default_read_var_value): Don't relocate TLS variables.
1893 * printcmd.c (address_info): Don't relocate TLS variables.
1894
1895 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
1896
1897 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
1898 (decode_adrp): Likewise.
1899 (decode_b): Likewise.
1900 (decode_bcond): Likewise.
1901 (decode_br): Likewise.
1902 (decode_cb): Likewise.
1903 (decode_eret): Likewise.
1904 (decode_movz): Likewise.
1905 (decode_orr_shifted_register_x): Likewise.
1906 (decode_ret): Likewise.
1907 (decode_stp_offset): Likewise.
1908 (decode_stp_offset_wb): Likewise.
1909 (decode_stur): Likewise.
1910 (decode_tb): Likewise.
1911 (aarch64_analyze_prologue): Likewise.
1912 (pass_in_x): Likewise.
1913 (pass_in_v): Likewise.
1914 (pass_on_stack): Likewise.
1915 (aarch64_push_dummy_call): Likewise.
1916 (aarch64_extract_return_value): Likewise.
1917 (aarch64_store_return_value): Likewise.
1918 (aarch64_return_value): Likewise.
1919 (aarch64_record_asimd_load_store): Likewise.
1920 (aarch64_record_load_store): Likewise.
1921 (aarch64_record_data_proc_simd_fp): Likewise.
1922
1923 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1924
1925 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
1926 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
1927 (ppc64_skip_trampoline_code_1): ... here.
1928 (ppc64_skip_trampoline_code): New wrapper function.
1929 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
1930
1931 2015-09-15 Yao Qi <yao.qi@linaro.org>
1932
1933 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
1934 function.
1935 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
1936 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
1937 if target_can_do_single_step returns 1.
1938 * remote.c (struct vCont_action_support) <s, S>: New fields.
1939 (PACKET_vContSupported): New enum.
1940 (remote_protocol_features): New element for vContSupported.
1941 (remote_query_supported): Append "vContSupported+".
1942 (remote_vcont_probe): Remove support_s and support_S, use
1943 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
1944 vCont packet if c and C actions are not supported.
1945 (remote_can_do_single_step): New function.
1946 (init_remote_ops): Install it to to_can_do_single_step.
1947 (_initialize_remote): Call add_packet_config_cmd.
1948 * target.h (struct target_ops) <to_can_do_single_step>: New field.
1949 (target_can_do_single_step): New macro.
1950 * target-delegates.c: Re-generated.
1951
1952 2015-09-15 Yao Qi <yao.qi@linaro.org>
1953
1954 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
1955 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
1956 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
1957 New function.
1958 (aarch64_siginfo_from_compat_siginfo): New function.
1959 * nat/aarch64-linux.h: Include signal.h.
1960 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
1961 (compat_timer_t, compat_clock_t): Likewise.
1962 (struct compat_timeval): New.
1963 (union compat_sigval): New.
1964 (struct compat_siginfo): New.
1965 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
1966 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
1967 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
1968 (cpt_si_band, cpt_si_fd): Likewise.
1969
1970 2015-09-14 Pedro Alves <palves@redhat.com>
1971
1972 * infrun.c (current_stop_id): New global.
1973 (get_stop_id, new_stop_id): New functions.
1974 (fetch_inferior_event): Handle normal_stop proceeding the target.
1975 (struct stop_context): New.
1976 (save_stop_context, release_stop_context_cleanup)
1977 (stop_context_changed): New functions.
1978 (normal_stop): Return true if the hook-stop changes the stop
1979 context.
1980 * infrun.h (get_stop_id): Declare.
1981 (normal_stop): Now returns int. Add documentation.
1982
1983 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
1984
1985 * ada-lang.c (ada_value_ptr_subscript): Update the heading
1986 comment. Handle packed arrays.
1987
1988 2015-09-14 Pedro Alves <palves@redhat.com>
1989
1990 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
1991 mention of maint set/show target-non-stop.
1992
1993 2015-09-11 Don Breazeal <donb@codesourcery.com>
1994
1995 * NEWS: Announce new remote packets for the exec-events
1996 feature and the exec-events feature and associated commands.
1997
1998 2015-09-11 Don Breazeal <donb@codesourcery.com>
1999
2000 * remote.c (remote_exec_event_p): New function.
2001 (remote_insert_exec_catchpoint): New function.
2002 (remote_remove_exec_catchpoint): New function.
2003 (init_extended_remote_ops): Initialize extended_remote_ops
2004 members to_insert_exec_catchpoint and
2005 to_remove_exec_catchpoint.
2006
2007 2015-09-11 Don Breazeal <donb@codesourcery.com>
2008 Luis Machado <lgustavo@codesourcery.com>
2009
2010 * infrun.c (follow_exec): Use process-style ptid for
2011 exec message. Call add_inferior_with_spaces and
2012 target_follow_exec.
2013 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2014 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2015 * remote.c (remote_pspace_data): New static variable.
2016 (remote_pspace_data_cleanup): New function.
2017 (get_remote_exec_file): New function.
2018 (set_remote_exec_file_1): New function.
2019 (set_remote_exec_file): New function.
2020 (show_remote_exec_file): New function.
2021 (remote_exec_file): Delete static variable.
2022 (anonymous enum) <PACKET_exec_event_feature>: New
2023 enumeration constant.
2024 (remote_protocol_features): Add entry for exec-events feature.
2025 (remote_query_supported): Add client side of qSupported query
2026 for exec-events feature.
2027 (remote_follow_exec): New function.
2028 (remote_parse_stop_reply): Handle 'exec' stop reason.
2029 (extended_remote_run, extended_remote_create_inferior): Call
2030 get_remote_exec_file and set_remote_exec_file_1.
2031 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2032 member.
2033 (_initialize_remote): Call
2034 register_program_space_data_with_cleanup. Call
2035 add_packet_config_cmd for remote exec-events feature.
2036 Modify call to add_setshow_string_noescape_cmd for exec-file
2037 to use new functions set_remote_exec_file and
2038 show_remote_exec_file.
2039 * target-debug.h, target-delegates.c: Regenerated.
2040 * target.c (target_follow_exec): New function.
2041 * target.h (struct target_ops) <to_follow_exec>: New member.
2042 (target_follow_exec): Declare new function.
2043
2044 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2045
2046 * aarch64-tdep.c (decode_cb): Move up comment describing the
2047 encoding.
2048 (decode_tb): Fix a typo in comment above the function. Move up
2049 comment describing the encoding.
2050
2051 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2052
2053 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2054
2055 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2056
2057 PR gdb/18947
2058 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2059 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2060
2061 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2062
2063 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2064 operations.
2065
2066 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2067
2068 * ada-lang.c (ada_search_struct_field): Constify parameters
2069 and/or variables..
2070 (xget_renaming_scope): Likewise.
2071 (ada_is_redundant_range_encoding): Likewise.
2072 (scan_discrim_bound): Likewise.
2073 (to_fixed_range_type): Likewise.
2074
2075 2015-09-10 Yao Qi <yao.qi@linaro.org>
2076
2077 * breakpoint.c (download_tracepoint_locations): New local
2078 can_download_tracepoint. Check the result of
2079 target_can_download_tracepoint and save it in
2080 can_download_tracepoint if there are tracepoints to download.
2081 * linux-nat.h (enum tribool): Move it to ...
2082 * common/common-types.h: ... here.
2083
2084 2015-09-09 Pedro Alves <palves@redhat.com>
2085
2086 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2087 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2088
2089 2015-09-09 Pedro Alves <palves@redhat.com>
2090
2091 * continuations.c (add_continuation, restore_thread_cleanup)
2092 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2093 (do_all_continuations_thread, do_all_continuations)
2094 (discard_all_continuations_thread_callback)
2095 (discard_all_continuations_thread, discard_all_continuations)
2096 (add_intermediate_continuation)
2097 (do_all_intermediate_continuations_thread_callback)
2098 (do_all_intermediate_continuations_thread)
2099 (do_all_intermediate_continuations)
2100 (discard_all_intermediate_continuations_thread_callback)
2101 (discard_all_intermediate_continuations_thread)
2102 (discard_all_intermediate_continuations): Delete.
2103 * continuations.h (add_continuation, do_all_continuations)
2104 (do_all_continuations_thread, discard_all_continuations)
2105 (discard_all_continuations_thread, add_intermediate_continuation)
2106 (do_all_intermediate_continuations)
2107 (do_all_intermediate_continuations_thread)
2108 (discard_all_intermediate_continuations)
2109 (discard_all_intermediate_continuations_thread): Delete
2110 declarations.
2111 * event-top.c (stdin_event_handler): Delete references to
2112 continuations.
2113 * gdbthread.h (struct thread_info): Delete continuations and
2114 intermediate_continuations fields.
2115 * inf-loop.c (inferior_event_handler): Remove references to
2116 continuations.
2117 * infrun.c (infrun_thread_stop_requested_callback): Remove
2118 references to continuations.
2119 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2120 * thread.c: Don't include "continuations.h".
2121 (clear_thread_inferior_resources): Remove references to
2122 continuations.
2123
2124 2015-09-09 Pedro Alves <palves@redhat.com>
2125
2126 * infcall.c (struct dummy_frame_context_saver): Delete.
2127 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2128 (dummy_frame_context_saver_drop)
2129 (dummy_frame_context_saver_cleanup)
2130 (dummy_frame_context_saver_get_regs)
2131 (dummy_frame_context_saver_setup): Delete.
2132 * infcall.h (dummy_frame_context_saver_drop)
2133 (dummy_frame_context_saver_cleanup)
2134 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2135 Delete.
2136 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2137 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2138 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2139
2140 2015-09-09 Pedro Alves <palves@redhat.com>
2141
2142 * breakpoint.c: Include "thread-fsm.h".
2143 (struct until_break_command_continuation_args): Delete.
2144 (struct until_break_fsm): New.
2145 (until_break_fsm_ops): New global.
2146 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2147 (until_break_command_continuation): Delete.
2148 (until_break_fsm_clean_up): New function.
2149 (until_break_fsm_async_reply_reason): New function.
2150 (until_break_command): Adjust to create an until_break_fsm instead
2151 of a continuation.
2152 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2153 here.
2154 * infcmd.c (struct until_next_fsm): New.
2155 (until_next_fsm_ops): New global.
2156 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2157 (until_next_continuation): Delete.
2158 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2159 functions.
2160 (until_next_command): Adjust to create a new until_next_fsm
2161 instead of a continuation.
2162
2163 2015-09-09 Pedro Alves <palves@redhat.com>
2164
2165 * infcall.c: Include thread_fsm.h.
2166 (struct call_return_meta_info): New.
2167 (get_call_return_value): New function, factored out from
2168 call_function_by_hand_dummy.
2169 (struct call_thread_fsm): New.
2170 (call_thread_fsm_ops): New global.
2171 (new_call_thread_fsm, call_thread_fsm_should_stop)
2172 (call_thread_fsm_should_notify_stop): New functions.
2173 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2174 the thread.
2175 (call_function_by_hand_dummy): Create a new call_thread_fsm
2176 instance, associate it with the thread, and wait for the FSM to
2177 finish. If finished successfully, fetch the function's result
2178 value out of the FSM.
2179 * infrun.c (fetch_inferior_event): If the FSM says the stop
2180 shouldn't be notified, don't call normal_stop.
2181 (maybe_remove_breakpoints): New function, factored out from ...
2182 (normal_stop): ... here. Simplify.
2183 * infrun.h (maybe_remove_breakpoints): Declare.
2184 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2185 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2186 (thread_fsm_should_notify_stop): Declare.
2187
2188 2015-09-09 Pedro Alves <palves@redhat.com>
2189
2190 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2191 * breakpoint.c (handle_jit_event): Print debug output.
2192 (bpstat_what): Split event callback handling to ...
2193 (bpstat_run_callbacks): ... this new function.
2194 (momentary_bkpt_print_it): No longer handle bp_finish here.
2195 * breakpoint.h (bpstat_run_callbacks): Declare.
2196 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2197 <thread_fsm>: New field.
2198 (thread_cancel_execution_command): Declare.
2199 * infcmd.c: Include thread-fsm.h.
2200 (struct step_command_fsm): New.
2201 (step_command_fsm_ops): New global.
2202 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2203 (step_1): Adjust to use step_command_fsm_prepare and
2204 prepare_one_step.
2205 (struct step_1_continuation_args): Delete.
2206 (step_1_continuation): Delete.
2207 (step_command_fsm_should_stop): New function.
2208 (step_once): Delete.
2209 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2210 (prepare_one_step): New function, based on step_once.
2211 (until_next_command): Remove step_multi reference.
2212 (struct return_value_info): New.
2213 (print_return_value): Rename to ...
2214 (print_return_value_1): ... this. New struct return_value_info
2215 parameter. Adjust.
2216 (print_return_value): Reimplement as wrapper around
2217 print_return_value_1.
2218 (struct finish_command_fsm): New.
2219 (finish_command_continuation): Delete.
2220 (finish_command_fsm_ops): New global.
2221 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2222 functions.
2223 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2224 New.
2225 (finish_command_continuation_free_arg): Delete.
2226 (finish_command_fsm_async_reply_reason): New.
2227 (finish_backward, finish_forward): Change symbol parameter to a
2228 finish_command_fsm. Adjust.
2229 (finish_command): Create a finish_command_fsm. Adjust.
2230 * infrun.c: Include "thread-fsm.h".
2231 (clear_proceed_status_thread): Delete the thread's FSM.
2232 (infrun_thread_stop_requested_callback): Cancel the thread's
2233 execution command.
2234 (clean_up_just_stopped_threads_fsms): New function.
2235 (fetch_inferior_event): Handle the event_thread's should_stop
2236 method saying the command isn't done yet.
2237 (process_event_stop_test): Run breakpoint callbacks here.
2238 (print_stop_event): Rename to ...
2239 (print_stop_location): ... this.
2240 (restore_current_uiout_cleanup): New function.
2241 (print_stop_event): Reimplement.
2242 (normal_stop): No longer notify the end_stepping_range observers
2243 here handle "step N" nor "finish" here. No longer call
2244 print_stop_event here.
2245 * infrun.h (struct return_value_info): Forward declare.
2246 (print_return_value): Declare.
2247 (print_stop_event): Change prototype.
2248 * thread-fsm.c: New file.
2249 * thread-fsm.h: New file.
2250 * thread.c: Include "thread-fsm.h".
2251 (thread_cancel_execution_command): New function.
2252 (clear_thread_inferior_resources): Call it.
2253 * cli/cli-interp.c (cli_on_normal_stop): New function.
2254 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2255 observer.
2256 * mi/mi-interp.c: Include "thread-fsm.h".
2257 (restore_current_uiout_cleanup): Delete.
2258 (mi_on_normal_stop): If the thread has an FSM associated, and it
2259 finished, ask it for the async-reply-reason to print. Always call
2260 print_stop_event here, regardless of the top-level interpreter.
2261 Check bpstat_what to tell whether an asynchronous breakpoint hit
2262 triggered.
2263 * tui/tui-interp.c (tui_on_normal_stop): New function.
2264 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2265
2266 2015-09-09 Pedro Alves <palves@redhat.com>
2267
2268 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2269 check whether the target can async.
2270 * inf-loop.c (inferior_event_handler): Only call target_async if
2271 the target can async.
2272 * infcall.c: Include top.h and interps.h.
2273 (run_inferior_call): For the interpreter to sync mode while
2274 running the infcall. Call wait_sync_command_done instead of
2275 wait_for_inferior plus normal_stop.
2276 * infcmd.c (prepare_execution_command): Don't check whether the
2277 target can async when running in the foreground.
2278 (step_1): Delete synchronous case handling.
2279 (step_once): Always install a continuation, even in sync mode.
2280 (until_next_command, finish_forward): Don't check whether the
2281 target can async.
2282 (attach_command_post_wait, notice_new_inferior): Always install a
2283 continuation, even in sync mode.
2284 * infrun.c (mark_infrun_async_event_handler): New function.
2285 (proceed): In sync mode, mark infrun's event source instead of
2286 waiting for events here.
2287 (fetch_inferior_event): If the target can't async, do a blocking
2288 wait.
2289 (prepare_to_wait): In sync mode, mark infrun's event source.
2290 (infrun_async_inferior_event_handler): No longer bail out if the
2291 target can't async.
2292 * infrun.h (mark_infrun_async_event_handler): New declaration.
2293 * linux-nat.c (linux_nat_wait_1): Remove calls to
2294 set_sigint_trap/clear_sigint_trap.
2295 (linux_nat_terminal_inferior): No longer check whether the target
2296 can async.
2297 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2298 comment.
2299 (mi_execute_command_input_handler): No longer check whether the
2300 target is async. Update and simplify comment.
2301 * target.c (default_target_wait): New function.
2302 * target.h (struct target_ops) <to_wait>: Now defaults to
2303 default_target_wait.
2304 (default_target_wait): Declare.
2305 * top.c (wait_sync_command_done): New function, factored out from
2306 ...
2307 (maybe_wait_sync_command_done): ... this.
2308 * top.h (wait_sync_command_done): Declare.
2309 * target-delegates.c: Regenerate.
2310
2311 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2312
2313 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2314 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2315 Remove include of sys/utsname.h.
2316 (linux_determine_kernel_ptr_bits): Remove.
2317 (linux_determine_kernel_start): New.
2318 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2319 Update check.
2320 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2321 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2322 initialization.
2323 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2324 assignment.
2325
2326 2015-09-07 Pedro Alves <palves@redhat.com>
2327
2328 * guile/guile-internal.h (as_a_scm_t_subr): New.
2329 * guile/guile.c (misc_guile_functions): Use it.
2330 * guile/scm-arch.c (arch_functions): Use it.
2331 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2332 Use it.
2333 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2334 * guile/scm-cmd.c (command_functions): Use it.
2335 * guile/scm-disasm.c (disasm_functions): Use it.
2336 * guile/scm-exception.c (exception_functions)
2337 (private_exception_functions): Use it.
2338 * guile/scm-frame.c (frame_functions)
2339 * guile/scm-gsmob.c (gsmob_functions): Use it.
2340 * guile/scm-iterator.c (iterator_functions): Use it.
2341 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2342 * guile/scm-math.c (math_functions): Use it.
2343 * guile/scm-objfile.c (objfile_functions): Use it.
2344 * guile/scm-param.c (parameter_functions): Use it.
2345 * guile/scm-ports.c (port_functions, private_port_functions): Use
2346 it.
2347 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2348 * guile/scm-progspace.c (pspace_functions): Use it.
2349 * guile/scm-string.c (string_functions): Use it.
2350 * guile/scm-symbol.c (symbol_functions): Use it.
2351 * guile/scm-symtab.c (symtab_functions): Use it.
2352 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2353 it.
2354 * guile/scm-value.c (value_functions): Use it.
2355
2356 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2357
2358 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2359 (tui_next_win): Likewise.
2360 (tui_prev_win): Likewise.
2361 (tui_partial_win_by_name): Likewise.
2362 (tui_init_generic_part): Likewise.
2363 (init_content_element): Likewise.
2364 (tui_del_window): Likewise.
2365 (tui_free_window): Likewise.
2366 (tui_del_data_windows): Likewise.
2367 (tui_free_data_content): Likewise.
2368 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2369 * tui/tui-regs.c (tui_show_register_group): Likewise.
2370 * tui/tui-win.c (tui_resize_all): Likewise.
2371 (tui_set_focus): Likewise.
2372 (tui_set_win_height): Likewise.
2373 (make_invisible_and_set_new_height): Likewise.
2374 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2375 * tui/tui-wingeneral.c (make_visible): Likewise.
2376
2377 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2378
2379 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2380
2381 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2382
2383 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2384 pointer.
2385 * dbxread.c (dbx_end_psymtab): Likewise.
2386 * gnu-nat.c (gnu_write_inferior): Likewise.
2387 * mdebugread.c (cross_ref): Likewise.
2388 * p-valprint.c (pascal_val_print): Likewise.
2389 * xcoffread.c (xcoff_end_psymtab): Likewise.
2390
2391 2015-09-04 Yao Qi <yao.qi@linaro.org>
2392
2393 * NEWS: Mention the aarch64 multi-arch debugging support.
2394
2395 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2396
2397 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2398 type instead of a TYPE_CODE_INT one for the string_char_type
2399 and the ada_primitive_type_char types.
2400
2401 2015-09-03 Yao Qi <yao.qi@linaro.org>
2402
2403 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2404 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2405 aarch64_linux_region_ok_for_watchpoint.
2406 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2407 New function.
2408 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2409 Declare it.
2410
2411 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2412
2413 * gdb_obstack.h (obstack_strdup): Declare.
2414 * gdb_obstack.c (obstack_strdup): Define.
2415 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2416 * gdbarch.c: Regenerate.
2417 * gdbarch.h: Regenerate.
2418 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2419
2420 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2421
2422 * gdbtypes.c (copy_type_recursive): Update documentation.
2423
2424 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2425
2426 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2427 as zero.
2428
2429 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2430
2431 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2432
2433 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2434
2435 * solib-svr4.c (solib_event_probe_action): Call
2436 get_probe_argument_count using TRY...CATCH.
2437 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2438
2439 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2440
2441 * probe.h (struct probe_ops) <get_probe_argument_count,
2442 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2443 the comment that the function can throw an exception.
2444 (get_probe_argument_count): Likewise.
2445 (evaluate_probe_argument): Likewise.
2446 * stap-probe.c (stap_get_opcode): Call error instead of
2447 internal_error.
2448 (stap_get_expected_argument_type): Likewise. Add argument
2449 'probe'. Improve error message by mentioning the probe's name.
2450 (stap_parse_probe_arguments): Adjust call to
2451 stap_get_expected_argument_type.
2452 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2453 not zero. Call internal_error if GDB requests an argument but the
2454 probe has no arguments.
2455
2456 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2457
2458 * ada-lang.c (ada_resolve_function): Do not ask the user what
2459 match to use when in completion mode.
2460
2461 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2462
2463 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2464 cast of NULL.
2465
2466 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2467
2468 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2469 call_abi using XSHAL_ABI macro.
2470
2471 2015-08-29 Doug Evans <xdje42@gmail.com>
2472
2473 * symtab.h (struct symbol): Tweak comment.
2474
2475 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2476
2477 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2478 gdbarch obstack instead of on the heap. Update commentary
2479 accordingly.
2480
2481 2015-08-28 Joel Brobecker <brobecker@adacore.com>
2482
2483 GDB 7.10 released.
2484
2485 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2486
2487 * NEWS: Update entry about non-8-bits addressable memory.
2488
2489 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2490
2491 Revert:
2492 2014-11-06 Doug Evans <xdje42@gmail.com>
2493 * solib.c (solib_global_lookup): Fetch arch from objfile,
2494 not target_gdbarch.
2495
2496 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2497
2498 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2499 attempt to relocate a TLS variable offset.
2500
2501 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2502
2503 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2504 registered yet. Set inferior_ptid while calling target_read_memory.
2505
2506 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2507
2508 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2509 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2510 * linux-nat.c (check_stopped_by_breakpoint): Use
2511 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2512
2513 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2514
2515 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2516 thread was not yet discovered, use thread_from_lwp instead of
2517 calling thread_db_find_new_threads_1.
2518
2519 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2520
2521 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2522 statements.
2523
2524 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2525
2526 * NEWS: Document support for non-8-bits addressable memory.
2527
2528 2015-08-27 Pedro Alves <palves@redhat.com>
2529
2530 * configure.ac: Remove AC_TYPE_SIGNAL call.
2531 * configure, config.in: Regenerate.
2532
2533 2015-08-27 Pedro Alves <palves@redhat.com>
2534
2535 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2536 * extension-priv.h: Include signal.h.
2537 (struct signal_handler) <handler>: Change type to sighandler_t.
2538 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2539 * inflow.c (sigint_ours, sigquit_ours): Change type to
2540 sighandler_t.
2541 (child_terminal_inferior): Remove casts.
2542 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2543 (osig): Change type to sighandler_t.
2544 * nto-procfs.c (ofunc): Change type to sighandler_t.
2545 (procfs_wait): Remove casts.
2546 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2547 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2548 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2549
2550 2015-08-27 Pedro Alves <palves@redhat.com>
2551
2552 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2553 * gnulib/aclocal.m4: Renegerate.
2554 * gnulib/config.in: Renegerate.
2555 * gnulib/configure: Renegerate.
2556 * gnulib/import/Makefile.am: Update.
2557 * gnulib/import/Makefile.in: Regenerate.
2558 * gnulib/import/m4/gnulib-cache.m4: Update.
2559 * gnulib/import/m4/gnulib-comp.m4: Update.
2560 * gnulib/import/m4/signal_h.m4: New file.
2561 * gnulib/import/signal.in.h: New file.
2562
2563 2015-08-27 Pedro Alves <palves@redhat.com>
2564
2565 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2566 (MIN_MEMORY_PACKET_SIZE): New.
2567 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2568 (get_memory_packet_size): Adjust. No longer limit the max packet
2569 size.
2570 (set_memory_packet_size): Adjust, and remove dead code.
2571 (remote_check_symbols): Use xmalloc and a cleanup instead of
2572 alloca.
2573 (remote_packet_size): No longer cap the packet size.
2574 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2575
2576 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
2577
2578 * compile/compile.c (compile_to_object): Mention language in
2579 error message.
2580
2581 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2582
2583 * target.c (target_pre_inferior): Unset attach_flag.
2584
2585 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2586
2587 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2588 * gdbarch.c: Re-generate.
2589
2590 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2591
2592 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2593 function with the XNEW-family equivalent.
2594 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2595 * ada-exp.y (write_ambiguous_var): Likewise.
2596 * ada-lang.c (resolve_subexp): Likewise.
2597 (user_select_syms): Likewise.
2598 (assign_aggregate): Likewise.
2599 (ada_evaluate_subexp): Likewise.
2600 (cache_symbol): Likewise.
2601 * addrmap.c (allocate_key): Likewise.
2602 (addrmap_create_mutable): Likewise.
2603 * aix-thread.c (sync_threadlists): Likewise.
2604 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2605 (alpha_gdbarch_init): Likewise.
2606 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2607 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2608 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2609 * arm-tdep.c (push_stack_item): Likewise.
2610 (arm_displaced_step_copy_insn): Likewise.
2611 (arm_gdbarch_init): Likewise.
2612 (_initialize_arm_tdep): Likewise.
2613 * avr-tdep.c (push_stack_item): Likewise.
2614 * ax-general.c (new_agent_expr): Likewise.
2615 * block.c (block_initialize_namespace): Likewise.
2616 * breakpoint.c (alloc_counted_command_line): Likewise.
2617 (update_dprintf_command_list): Likewise.
2618 (parse_breakpoint_sals): Likewise.
2619 (decode_static_tracepoint_spec): Likewise.
2620 (until_break_command): Likewise.
2621 (clear_command): Likewise.
2622 (update_global_location_list): Likewise.
2623 (get_breakpoint_objfile_data) Likewise.
2624 * btrace.c (ftrace_new_function): Likewise.
2625 (btrace_set_insn_history): Likewise.
2626 (btrace_set_call_history): Likewise.
2627 * buildsym.c (add_symbol_to_list): Likewise.
2628 (record_pending_block): Likewise.
2629 (start_subfile): Likewise.
2630 (start_buildsym_compunit): Likewise.
2631 (push_subfile): Likewise.
2632 (end_symtab_get_static_block): Likewise.
2633 (buildsym_init): Likewise.
2634 * cli/cli-cmds.c (source_command): Likewise.
2635 * cli/cli-decode.c (add_cmd): Likewise.
2636 * cli/cli-script.c (build_command_line): Likewise.
2637 (setup_user_args): Likewise.
2638 (realloc_body_list): Likewise.
2639 (process_next_line): Likewise.
2640 (copy_command_lines): Likewise.
2641 * cli/cli-setshow.c (do_set_command): Likewise.
2642 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2643 * coffread.c (coff_locate_sections): Likewise.
2644 (coff_symtab_read): Likewise.
2645 (coff_read_struct_type): Likewise.
2646 * common/cleanups.c (make_my_cleanup2): Likewise.
2647 * common/common-exceptions.c (throw_it): Likewise.
2648 * common/filestuff.c (make_cleanup_close): Likewise.
2649 * common/format.c (parse_format_string): Likewise.
2650 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2651 * compile/compile-object-load.c (munmap_list_add): Likewise.
2652 (compile_object_load): Likewise.
2653 * compile/compile-object-run.c (compile_object_run): Likewise.
2654 * compile/compile.c (append_args): Likewise.
2655 * corefile.c (specify_exec_file_hook): Likewise.
2656 * cp-support.c (make_symbol_overload_list): Likewise.
2657 * cris-tdep.c (push_stack_item): Likewise.
2658 (cris_gdbarch_init): Likewise.
2659 * ctf.c (ctf_trace_file_writer_new): Likewise.
2660 * dbxread.c (init_header_files): Likewise.
2661 (add_new_header_file): Likewise.
2662 (init_bincl_list): Likewise.
2663 (dbx_end_psymtab): Likewise.
2664 (start_psymtab): Likewise.
2665 (dbx_end_psymtab): Likewise.
2666 * dcache.c (dcache_init): Likewise.
2667 * dictionary.c (dict_create_hashed): Likewise.
2668 (dict_create_hashed_expandable): Likewise.
2669 (dict_create_linear): Likewise.
2670 (dict_create_linear_expandable): Likewise.
2671 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2672 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2673 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2674 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2675 (decode_frame_entry_1): Likewise.
2676 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2677 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2678 * dwarf2read.c (dwarf2_has_info): Likewise.
2679 (create_signatured_type_table_from_index): Likewise.
2680 (dwarf2_read_index): Likewise.
2681 (dw2_get_file_names_reader): Likewise.
2682 (create_all_type_units): Likewise.
2683 (read_cutu_die_from_dwo): Likewise.
2684 (init_tu_and_read_dwo_dies): Likewise.
2685 (init_cutu_and_read_dies): Likewise.
2686 (create_all_comp_units): Likewise.
2687 (queue_comp_unit): Likewise.
2688 (inherit_abstract_dies): Likewise.
2689 (read_call_site_scope): Likewise.
2690 (dwarf2_add_field): Likewise.
2691 (dwarf2_add_typedef): Likewise.
2692 (dwarf2_add_member_fn): Likewise.
2693 (attr_to_dynamic_prop): Likewise.
2694 (abbrev_table_alloc_abbrev): Likewise.
2695 (abbrev_table_read_table): Likewise.
2696 (add_include_dir): Likewise.
2697 (add_file_name): Likewise.
2698 (dwarf_decode_line_header): Likewise.
2699 (dwarf2_const_value_attr): Likewise.
2700 (dwarf_alloc_block): Likewise.
2701 (parse_macro_definition): Likewise.
2702 (set_die_type): Likewise.
2703 (write_psymtabs_to_index): Likewise.
2704 (create_cus_from_index): Likewise.
2705 (dwarf2_create_include_psymtab): Likewise.
2706 (process_psymtab_comp_unit_reader): Likewise.
2707 (build_type_psymtab_dependencies): Likewise.
2708 (read_comp_units_from_section): Likewise.
2709 (compute_compunit_symtab_includes): Likewise.
2710 (create_dwo_unit_in_dwp_v1): Likewise.
2711 (create_dwo_unit_in_dwp_v2): Likewise.
2712 (read_func_scope): Likewise.
2713 (process_structure_scope): Likewise.
2714 (mark_common_block_symbol_computed): Likewise.
2715 (load_partial_dies): Likewise.
2716 (dwarf2_symbol_mark_computed): Likewise.
2717 * elfread.c (elf_symfile_segments): Likewise.
2718 (elf_read_minimal_symbols): Likewise.
2719 * environ.c (make_environ): Likewise.
2720 * eval.c (evaluate_subexp_standard): Likewise.
2721 * event-loop.c (create_file_handler): Likewise.
2722 (create_async_signal_handler): Likewise.
2723 (create_async_event_handler): Likewise.
2724 (create_timer): Likewise.
2725 * exec.c (build_section_table): Likewise.
2726 * fbsd-nat.c (fbsd_remember_child): Likewise.
2727 * fork-child.c (fork_inferior): Likewise.
2728 * frv-tdep.c (new_variant): Likewise.
2729 * gdbarch.sh (gdbarch_alloc): Likewise.
2730 (append_name): Likewise.
2731 * gdbtypes.c (rank_function): Likewise.
2732 (copy_type_recursive): Likewise.
2733 (add_dyn_prop): Likewise.
2734 * gnu-nat.c (make_proc): Likewise.
2735 (make_inf): Likewise.
2736 (gnu_write_inferior): Likewise.
2737 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2738 (build_std_type_info_type): Likewise.
2739 * guile/scm-param.c (compute_enum_list): Likewise.
2740 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2741 * guile/scm-value.c (gdbscm_value_call): Likewise.
2742 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2743 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2744 (read_unwind_info): Likewise.
2745 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2746 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2747 (call_function_by_hand_dummy): Likewise.
2748 * infcmd.c (step_once): Likewise.
2749 (finish_forward): Likewise.
2750 (attach_command): Likewise.
2751 (notice_new_inferior): Likewise.
2752 * inferior.c (add_inferior_silent): Likewise.
2753 * infrun.c (add_displaced_stepping_state): Likewise.
2754 (save_infcall_control_state): Likewise.
2755 (save_inferior_ptid): Likewise.
2756 (_initialize_infrun): Likewise.
2757 * jit.c (bfd_open_from_target_memory): Likewise.
2758 (jit_gdbarch_data_init): Likewise.
2759 * language.c (add_language): Likewise.
2760 * linespec.c (decode_line_2): Likewise.
2761 * linux-nat.c (add_to_pid_list): Likewise.
2762 (add_initial_lwp): Likewise.
2763 * linux-thread-db.c (add_thread_db_info): Likewise.
2764 (record_thread): Likewise.
2765 (info_auto_load_libthread_db): Likewise.
2766 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2767 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2768 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2769 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2770 * macrocmd.c (macro_define_command): Likewise.
2771 * macroexp.c (gather_arguments): Likewise.
2772 * macroscope.c (sal_macro_scope): Likewise.
2773 * macrotab.c (new_macro_table): Likewise.
2774 * mdebugread.c (push_parse_stack): Likewise.
2775 (parse_partial_symbols): Likewise.
2776 (parse_symbol): Likewise.
2777 (psymtab_to_symtab_1): Likewise.
2778 (new_block): Likewise.
2779 (new_psymtab): Likewise.
2780 (mdebug_build_psymtabs): Likewise.
2781 (add_pending): Likewise.
2782 (elfmdebug_build_psymtabs): Likewise.
2783 * mep-tdep.c (mep_gdbarch_init): Likewise.
2784 * mi/mi-main.c (mi_execute_command): Likewise.
2785 * mi/mi-parse.c (mi_parse_argv): Likewise.
2786 * minidebug.c (lzma_open): Likewise.
2787 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2788 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2789 * mips-tdep.c (mips_gdbarch_init): Likewise.
2790 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2791 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2792 * mt-tdep.c (mt_registers_info): Likewise.
2793 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2794 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2795 (linux_enable_pt): Likewise.
2796 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2797 (linux_xfer_osdata_processgroups): Likewise.
2798 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2799 * nto-procfs.c (procfs_meminfo): Likewise.
2800 * objc-lang.c (start_msglist): Likewise.
2801 (selectors_info): Likewise.
2802 (classes_info): Likewise.
2803 (find_methods): Likewise.
2804 * objfiles.c (allocate_objfile): Likewise.
2805 (update_section_map): Likewise.
2806 * osabi.c (gdbarch_register_osabi): Likewise.
2807 (gdbarch_register_osabi_sniffer): Likewise.
2808 * parse.c (start_arglist): Likewise.
2809 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2810 (hwdebug_insert_point): Likewise.
2811 * printcmd.c (display_command): Likewise.
2812 (ui_printf): Likewise.
2813 * procfs.c (create_procinfo): Likewise.
2814 (load_syscalls): Likewise.
2815 (proc_get_LDT_entry): Likewise.
2816 (proc_update_threads): Likewise.
2817 * prologue-value.c (make_pv_area): Likewise.
2818 (pv_area_store): Likewise.
2819 * psymtab.c (extend_psymbol_list): Likewise.
2820 (init_psymbol_list): Likewise.
2821 (allocate_psymtab): Likewise.
2822 * python/py-inferior.c (add_thread_object): Likewise.
2823 * python/py-param.c (compute_enum_values): Likewise.
2824 * python/py-value.c (valpy_call): Likewise.
2825 * python/py-varobj.c (py_varobj_iter_next): Likewise.
2826 * python/python.c (ensure_python_env): Likewise.
2827 * record-btrace.c (record_btrace_start_replaying): Likewise.
2828 * record-full.c (record_full_reg_alloc): Likewise.
2829 (record_full_mem_alloc): Likewise.
2830 (record_full_end_alloc): Likewise.
2831 (record_full_core_xfer_partial): Likewise.
2832 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2833 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2834 * remote-notif.c (remote_notif_state_allocate): Likewise.
2835 * remote.c (demand_private_info): Likewise.
2836 (remote_notif_stop_alloc_reply): Likewise.
2837 (remote_enable_btrace): Likewise.
2838 * reverse.c (save_bookmark_command): Likewise.
2839 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2840 * rx-tdep.c (rx_gdbarch_init): Likewise.
2841 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2842 * ser-go32.c (dos_get_tty_state): Likewise.
2843 (dos_copy_tty_state): Likewise.
2844 * ser-mingw.c (ser_windows_open): Likewise.
2845 (ser_console_wait_handle): Likewise.
2846 (ser_console_get_tty_state): Likewise.
2847 (make_pipe_state): Likewise.
2848 (net_windows_open): Likewise.
2849 * ser-unix.c (hardwire_get_tty_state): Likewise.
2850 (hardwire_copy_tty_state): Likewise.
2851 * solib-aix.c (solib_aix_new_lm_info): Likewise.
2852 * solib-dsbt.c (dsbt_current_sos): Likewise.
2853 (dsbt_relocate_main_executable): Likewise.
2854 * solib-frv.c (frv_current_sos): Likewise.
2855 (frv_relocate_main_executable): Likewise.
2856 * solib-spu.c (spu_bfd_fopen): Likewise.
2857 * solib-svr4.c (lm_info_read): Likewise.
2858 (svr4_copy_library_list): Likewise.
2859 (svr4_default_sos): Likewise.
2860 * source.c (find_source_lines): Likewise.
2861 (line_info): Likewise.
2862 (add_substitute_path_rule): Likewise.
2863 * spu-linux-nat.c (spu_bfd_open): Likewise.
2864 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2865 * stabsread.c (dbx_lookup_type): Likewise.
2866 (read_type): Likewise.
2867 (read_member_functions): Likewise.
2868 (read_struct_fields): Likewise.
2869 (read_baseclasses): Likewise.
2870 (read_args): Likewise.
2871 (_initialize_stabsread): Likewise.
2872 * stack.c (func_command): Likewise.
2873 * stap-probe.c (handle_stap_probe): Likewise.
2874 * symfile.c (addrs_section_sort): Likewise.
2875 (addr_info_make_relative): Likewise.
2876 (load_section_callback): Likewise.
2877 (add_symbol_file_command): Likewise.
2878 (init_filename_language_table): Likewise.
2879 * symtab.c (create_filename_seen_cache): Likewise.
2880 (sort_search_symbols_remove_dups): Likewise.
2881 (search_symbols): Likewise.
2882 * target.c (make_cleanup_restore_target_terminal): Likewise.
2883 * thread.c (new_thread): Likewise.
2884 (enable_thread_stack_temporaries): Likewise.
2885 (make_cleanup_restore_current_thread): Likewise.
2886 (thread_apply_all_command): Likewise.
2887 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2888 * top.c (gdb_readline_wrapper): Likewise.
2889 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2890 * tracepoint.c (trace_find_line_command): Likewise.
2891 (all_tracepoint_actions_and_cleanup): Likewise.
2892 (make_cleanup_restore_current_traceframe): Likewise.
2893 (get_uploaded_tp): Likewise.
2894 (get_uploaded_tsv): Likewise.
2895 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2896 (tui_alloc_win_info): Likewise.
2897 (tui_alloc_content): Likewise.
2898 (tui_add_content_elements): Likewise.
2899 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
2900 (tui_set_disassem_content): Likewise.
2901 * ui-file.c (ui_file_new): Likewise.
2902 (stdio_file_new): Likewise.
2903 (tee_file_new): Likewise.
2904 * utils.c (make_cleanup_restore_integer): Likewise.
2905 (add_internal_problem_command): Likewise.
2906 * v850-tdep.c (v850_gdbarch_init): Likewise.
2907 * valops.c (find_oload_champ): Likewise.
2908 * value.c (allocate_value_lazy): Likewise.
2909 (record_latest_value): Likewise.
2910 (create_internalvar): Likewise.
2911 * varobj.c (install_variable): Likewise.
2912 (new_variable): Likewise.
2913 (new_root_variable): Likewise.
2914 (cppush): Likewise.
2915 (_initialize_varobj): Likewise.
2916 * windows-nat.c (windows_make_so): Likewise.
2917 * x86-nat.c (x86_add_process): Likewise.
2918 * xcoffread.c (arrange_linetable): Likewise.
2919 (allocate_include_entry): Likewise.
2920 (process_linenos): Likewise.
2921 (SYMBOL_DUP): Likewise.
2922 (xcoff_start_psymtab): Likewise.
2923 (xcoff_end_psymtab): Likewise.
2924 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
2925 * xtensa-tdep.c (xtensa_register_type): Likewise.
2926 * gdbarch.c: Regenerate.
2927 * gdbarch.h: Regenerate.
2928
2929 2015-08-25 Don Breazeal <donb@codesourcery.com>
2930
2931 * infrun.c (follow_exec): Re-order operations for
2932 handling follow-exec-mode "new".
2933 (handle_inferior_event_1): Assign ecs->event_thread
2934 to the current thread.
2935 * remote.c (get_remote_arch_state): Add an assertion.
2936
2937 2015-08-26 Pedro Alves <palves@redhat.com>
2938
2939 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
2940
2941 2015-08-25 Pedro Alves <palves@redhat.com>
2942
2943 PR gdb/18804
2944 * defs.h (maybe_quit): Declare.
2945 (QUIT): Now calls maybe_quit.
2946 * event-loop.c (clear_async_signal_handler)
2947 (async_signal_handler_is_marked): New functions.
2948 * event-loop.h (async_signal_handler_is_marked)
2949 (clear_async_signal_handler): New declarations.
2950 * remote.c (remote_check_pending_interrupt): New function.
2951 (interrupt_query): Use make_cleanup_restore_target_terminal. No
2952 longer check whether the target is async. If waiting for a stop
2953 reply, and a Ctrl-C as been sent to the target, offer to
2954 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
2955 Otherwise do not disconnect and throw a quit.
2956 (_initialize_remote): Install remote_check_pending_interrupt as
2957 to_check_pending_interrupt.
2958 * target.c (target_check_pending_interrupt): New function.
2959 * target.h (struct target_ops) <to_check_pending_interrupt>: New
2960 field.
2961 (target_check_pending_interrupt): New declaration.
2962 * utils.c (maybe_quit): New function.
2963 * target-delegates.c: Regenerate.
2964
2965 2015-08-25 Yao Qi <yao.qi@linaro.org>
2966
2967 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
2968 Rename local variable pid to tid, and get lwpid of lwp. Update
2969 debug output.
2970
2971 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
2972
2973 * ada-lang.c (ada_read_var_value): Add a var_block argument
2974 and pass it to default_read_var_value.
2975 * block.c (block_static_link): New accessor.
2976 * block.h (block_static_link): Declare it.
2977 * buildsym.c (finish_block_internal): Add a static_link
2978 argument. If there is a static link, associate it to the new
2979 block.
2980 (finish_block): Add a static link argument and pass it to
2981 finish_block_internal.
2982 (end_symtab_get_static_block): Update calls to finish_block and
2983 to finish_block_internal.
2984 (end_symtab_with_blockvector): Update call to
2985 finish_block_internal.
2986 * buildsym.h: Forward-declare struct dynamic_prop.
2987 (struct context_stack): Add a static_link field.
2988 (finish_block): Add a static link argument.
2989 * c-exp.y: Remove an obsolete comment (evaluation of variables
2990 already start from the selected frame, and now they climb *up*
2991 the call stack) and propagate the block information to the
2992 produced expression.
2993 * d-exp.y: Likewise.
2994 * f-exp.y: Likewise.
2995 * go-exp.y: Likewise.
2996 * jv-exp.y: Likewise.
2997 * m2-exp.y: Likewise.
2998 * p-exp.y: Likewise.
2999 * coffread.c (coff_symtab_read): Update calls to finish_block.
3000 * dbxread.c (process_one_symbol): Likewise.
3001 * xcoffread.c (read_xcoff_symtab): Likewise.
3002 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3003 "sym" parameter to struct block_symbol, update its uses and pass
3004 its block to calls to read_var_value.
3005 (convert_symbol_sym): Update the calls to convert_one_symbol.
3006 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3007 call to read_var_value.
3008 * dwarf2loc.c (block_op_get_frame_base): New.
3009 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3010 get_frame_base method.
3011 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3012 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3013 instead of the selected frame in order to evaluate the
3014 expression.
3015 (dwarf2_evaluate_property): Add a frame argument. Update call
3016 to dwarf2_locexpr_baton_eval to provide a frame in available and
3017 to handle the absence of address stack.
3018 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3019 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3020 declaration.
3021 (read_func_scope): Record any available static link description.
3022 Update call to finish_block.
3023 (read_lexical_block_scope): Update call to finish_block.
3024 * findvar.c (follow_static_link): New.
3025 (get_hosting_frame): New.
3026 (default_read_var_value): Add a var_block argument. Use
3027 get_hosting_frame to handle non-local references.
3028 (read_var_value): Add a var_block argument and pass it to the
3029 LA_READ_VAR_VALUE method.
3030 * gdbtypes.c (resolve_dynamic_range): Update calls to
3031 dwarf2_evaluate_property.
3032 (resolve_dynamic_type_internal): Likewise.
3033 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3034 read_var_value, passing it the block coming from symbol lookup.
3035 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3036 read_var_value (TODO).
3037 * infcmd.c (finish_command_continuation): Update call to
3038 read_var_value, passing it the block coming from symbol lookup.
3039 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3040 * language.h (struct language_defn): Add a var_block argument to
3041 the LA_READ_VAR_VALUE method.
3042 * objfiles.c (struct static_link_htab_entry): New.
3043 (static_link_htab_entry_hash): New.
3044 (static_link_htab_entry_eq): New.
3045 (objfile_register_static_link): New.
3046 (objfile_lookup_static_link): New.
3047 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3048 * objfiles.h: Include hashtab.h.
3049 (struct objfile): Add a static_links field.
3050 (objfile_register_static_link): New.
3051 (objfile_lookup_static_link): New.
3052 * printcmd.c (print_variable_and_value): Update call to
3053 read_var_value.
3054 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3055 * python/py-frame.c (frapy_read_var): Update call to
3056 read_var_value, passing it the block coming from symbol lookup.
3057 * python/py-framefilter.c (extract_sym): Add a sym_block
3058 parameter and set the pointed value to NULL (TODO).
3059 (enumerate_args): Update call to extract_sym.
3060 (enumerate_locals): Update calls to extract_sym and to
3061 read_var_value.
3062 * python/py-symbol.c (sympy_value): Update call to
3063 read_var_value (TODO).
3064 * stack.c (read_frame_local): Update call to read_var_value.
3065 (read_frame_arg): Likewise.
3066 (return_command): Likewise.
3067 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3068 method.
3069 (struct symbol): Add a block field.
3070 (SYMBOL_BLOCK): New accessor.
3071 * valops.c (value_of_variable): Remove frame/block handling and
3072 pass the block argument to read_var_value, which does this job
3073 now.
3074 (value_struct_elt_for_reference): Update calls to
3075 read_var_value.
3076 (value_of_this): Pass the block found to read_var_value.
3077 * value.h (read_var_value): Add a var_block argument.
3078 (default_read_var_value): Likewise.
3079
3080 2015-08-25 Yao Qi <yao.qi@linaro.org>
3081
3082 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3083 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3084 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3085
3086 2015-08-25 Yao Qi <yao.qi@linaro.org>
3087
3088 * Makefile.in (aarch64-liunx.o): New rule.
3089 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3090 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3091 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3092 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3093 extern.
3094 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3095 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3096 * nat/aarch64-linux.c: New file.
3097 * nat/aarch64-linux.h: New file.
3098
3099 2015-08-25 Yao Qi <yao.qi@linaro.org>
3100
3101 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3102 lwp_arch_private_info and ptid_of_lwp.
3103
3104 2015-08-25 Yao Qi <yao.qi@linaro.org>
3105
3106 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3107 Move it to nat/aarch64-linux-hw-point.c.
3108 (debug_reg_change_callback): Likewise.
3109 (aarch64_notify_debug_reg_change): :Likewise.
3110 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3111 (aarch64_dr_update_callback_param): New.
3112 (debug_reg_change_callback): New function.
3113 (aarch64_notify_debug_reg_change): Likewise.
3114 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3115 Remove the declaration.
3116
3117 2015-08-25 Yao Qi <yao.qi@linaro.org>
3118
3119 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3120 Call current_lwp_ptid.
3121
3122 2015-08-25 Yao Qi <yao.qi@linaro.org>
3123
3124 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3125 debug_printf.
3126
3127 2015-08-25 Yao Qi <yao.qi@linaro.org>
3128
3129 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3130 ptid_get_pid rather than ptid_get_lwp.
3131
3132 2015-08-24 Pedro Alves <palves@redhat.com>
3133
3134 * NEWS (New commands): Mention set/show remote
3135 multiprocess-extensions-packet.
3136 * remote.c (remote_query_supported): Only tell the server to use
3137 the multiprocess extensions if the user hasn't force-disabled them
3138 with "set remote multiprocess-extensions-packet off".
3139
3140 2015-08-24 Pedro Alves <palves@redhat.com>
3141
3142 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3143 1029a8112290f6eee9d7878a391c49db42c999bd.
3144 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3145 Regenerate.
3146 * gnulib/import/Makefile.am: Update.
3147 * gnulib/import/Makefile.in: Update.
3148 * gnulib/import/alloca.in.h: Update.
3149 * gnulib/import/basename-lgpl.c: Update.
3150 * gnulib/import/canonicalize-lgpl.c: Update.
3151 * gnulib/import/config.charset: Update.
3152 * gnulib/import/dirent.in.h: Update.
3153 * gnulib/import/dirfd.c: Update.
3154 * gnulib/import/dirname-lgpl.c: Update.
3155 * gnulib/import/dirname.h: Update.
3156 * gnulib/import/dosname.h: Update.
3157 * gnulib/import/errno.in.h: Update.
3158 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3159 * gnulib/import/extra/snippet/c++defs.h: Update.
3160 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3161 * gnulib/import/extra/update-copyright: Update.
3162 * gnulib/import/float+.h: Update.
3163 * gnulib/import/float.c: Update.
3164 * gnulib/import/float.in.h: Update.
3165 * gnulib/import/fnmatch.c: Update.
3166 * gnulib/import/fnmatch.in.h: Update.
3167 * gnulib/import/fnmatch_loop.c: Update.
3168 * gnulib/import/fpucw.h: Update.
3169 * gnulib/import/frexp.c: Update.
3170 * gnulib/import/frexpl.c: Update.
3171 * gnulib/import/gettimeofday.c: Update.
3172 * gnulib/import/inttypes.in.h: Update.
3173 * gnulib/import/isnan.c: Update.
3174 * gnulib/import/isnand-nolibm.h: Update.
3175 * gnulib/import/isnand.c: Update.
3176 * gnulib/import/isnanl-nolibm.h: Update.
3177 * gnulib/import/isnanl.c: Update.
3178 * gnulib/import/itold.c: Update.
3179 * gnulib/import/localcharset.c: Update.
3180 * gnulib/import/localcharset.h: Update.
3181 * gnulib/import/lstat.c: Update.
3182 * gnulib/import/m4/00gnulib.m4: Update.
3183 * gnulib/import/m4/absolute-header.m4: Update.
3184 * gnulib/import/m4/alloca.m4: Update.
3185 * gnulib/import/m4/canonicalize.m4: Update.
3186 * gnulib/import/m4/codeset.m4: Update.
3187 * gnulib/import/m4/configmake.m4: Update.
3188 * gnulib/import/m4/dirent_h.m4: Update.
3189 * gnulib/import/m4/dirfd.m4: Update.
3190 * gnulib/import/m4/dirname.m4: Update.
3191 * gnulib/import/m4/double-slash-root.m4: Update.
3192 * gnulib/import/m4/eealloc.m4: Update.
3193 * gnulib/import/m4/errno_h.m4: Update.
3194 * gnulib/import/m4/exponentd.m4: Update.
3195 * gnulib/import/m4/exponentl.m4: Update.
3196 * gnulib/import/m4/extensions.m4: Update.
3197 * gnulib/import/m4/extern-inline.m4: Update.
3198 * gnulib/import/m4/fcntl-o.m4: Update.
3199 * gnulib/import/m4/float_h.m4: Update.
3200 * gnulib/import/m4/fnmatch.m4: Update.
3201 * gnulib/import/m4/fpieee.m4: Update.
3202 * gnulib/import/m4/frexp.m4: Update.
3203 * gnulib/import/m4/frexpl.m4: Update.
3204 * gnulib/import/m4/gettimeofday.m4: Update.
3205 * gnulib/import/m4/glibc21.m4: Update.
3206 * gnulib/import/m4/gnulib-cache.m4: Update.
3207 * gnulib/import/m4/gnulib-common.m4: Update.
3208 * gnulib/import/m4/gnulib-comp.m4: Update.
3209 * gnulib/import/m4/gnulib-tool.m4: Update.
3210 * gnulib/import/m4/include_next.m4: Update.
3211 * gnulib/import/m4/inttypes-pri.m4: Update.
3212 * gnulib/import/m4/inttypes.m4: Update.
3213 * gnulib/import/m4/isnand.m4: Update.
3214 * gnulib/import/m4/isnanl.m4: Update.
3215 * gnulib/import/m4/largefile.m4: Update.
3216 * gnulib/import/m4/localcharset.m4: Update.
3217 * gnulib/import/m4/locale-fr.m4: Update.
3218 * gnulib/import/m4/locale-ja.m4: Update.
3219 * gnulib/import/m4/locale-zh.m4: Update.
3220 * gnulib/import/m4/longlong.m4: Update.
3221 * gnulib/import/m4/lstat.m4: Update.
3222 * gnulib/import/m4/malloc.m4: Update.
3223 * gnulib/import/m4/malloca.m4: Update.
3224 * gnulib/import/m4/math_h.m4: Update.
3225 * gnulib/import/m4/mbrtowc.m4: Update.
3226 * gnulib/import/m4/mbsinit.m4: Update.
3227 * gnulib/import/m4/mbsrtowcs.m4: Update.
3228 * gnulib/import/m4/mbstate_t.m4: Update.
3229 * gnulib/import/m4/memchr.m4: Update.
3230 * gnulib/import/m4/memmem.m4: Update.
3231 * gnulib/import/m4/mmap-anon.m4: Update.
3232 * gnulib/import/m4/multiarch.m4: Update.
3233 * gnulib/import/m4/nocrash.m4: Update.
3234 * gnulib/import/m4/off_t.m4: Update.
3235 * gnulib/import/m4/pathmax.m4: Update.
3236 * gnulib/import/m4/readlink.m4: Update.
3237 * gnulib/import/m4/rename.m4: Update.
3238 * gnulib/import/m4/rmdir.m4: Update.
3239 * gnulib/import/m4/ssize_t.m4: Update.
3240 * gnulib/import/m4/stat.m4: Update.
3241 * gnulib/import/m4/stdbool.m4: Update.
3242 * gnulib/import/m4/stddef_h.m4: Update.
3243 * gnulib/import/m4/stdint.m4: Update.
3244 * gnulib/import/m4/stdio_h.m4: Update.
3245 * gnulib/import/m4/stdlib_h.m4: Update.
3246 * gnulib/import/m4/string_h.m4: Update.
3247 * gnulib/import/m4/strstr.m4: Update.
3248 * gnulib/import/m4/strtok_r.m4: Update.
3249 * gnulib/import/m4/sys_socket_h.m4: Update.
3250 * gnulib/import/m4/sys_stat_h.m4: Update.
3251 * gnulib/import/m4/sys_time_h.m4: Update.
3252 * gnulib/import/m4/sys_types_h.m4: Update.
3253 * gnulib/import/m4/time_h.m4: Update.
3254 * gnulib/import/m4/unistd_h.m4: Update.
3255 * gnulib/import/m4/warn-on-use.m4: Update.
3256 * gnulib/import/m4/wchar_h.m4: Update.
3257 * gnulib/import/m4/wchar_t.m4: Update.
3258 * gnulib/import/m4/wctype_h.m4: Update.
3259 * gnulib/import/m4/wint_t.m4: Update.
3260 * gnulib/import/malloc.c: Update.
3261 * gnulib/import/malloca.c: Update.
3262 * gnulib/import/malloca.h: Update.
3263 * gnulib/import/math.in.h: Update.
3264 * gnulib/import/mbrtowc.c: Update.
3265 * gnulib/import/mbsinit.c: Update.
3266 * gnulib/import/mbsrtowcs-impl.h: Update.
3267 * gnulib/import/mbsrtowcs-state.c: Update.
3268 * gnulib/import/mbsrtowcs.c: Update.
3269 * gnulib/import/memchr.c: Update.
3270 * gnulib/import/memmem.c: Update.
3271 * gnulib/import/pathmax.h: Update.
3272 * gnulib/import/readlink.c: Update.
3273 * gnulib/import/ref-add.sin: Update.
3274 * gnulib/import/ref-del.sin: Update.
3275 * gnulib/import/rename.c: Update.
3276 * gnulib/import/rmdir.c: Update.
3277 * gnulib/import/same-inode.h: Update.
3278 * gnulib/import/stat.c: Update.
3279 * gnulib/import/stdbool.in.h: Update.
3280 * gnulib/import/stddef.in.h: Update.
3281 * gnulib/import/stdint.in.h: Update.
3282 * gnulib/import/stdio.c: Update.
3283 * gnulib/import/stdio.in.h: Update.
3284 * gnulib/import/stdlib.in.h: Update.
3285 * gnulib/import/str-two-way.h: Update.
3286 * gnulib/import/streq.h: Update.
3287 * gnulib/import/string.in.h: Update.
3288 * gnulib/import/stripslash.c: Update.
3289 * gnulib/import/strnlen1.c: Update.
3290 * gnulib/import/strnlen1.h: Update.
3291 * gnulib/import/strstr.c: Update.
3292 * gnulib/import/strtok_r.c: Update.
3293 * gnulib/import/sys_stat.in.h: Update.
3294 * gnulib/import/sys_time.in.h: Update.
3295 * gnulib/import/sys_types.in.h: Update.
3296 * gnulib/import/time.in.h: Update.
3297 * gnulib/import/unistd.in.h: Update.
3298 * gnulib/import/verify.h: Update.
3299 * gnulib/import/wchar.in.h: Update.
3300 * gnulib/import/wctype.in.h: Update.
3301 * gnulib/import/gettimeofday.c: New file.
3302 * gnulib/import/m4/absolute-header.m4: New file.
3303 * gnulib/import/m4/gettimeofday.m4: New file.
3304 * gnulib/import/m4/sys_socket_h.m4: New file.
3305 * gnulib/import/m4/sys_time_h.m4: New file.
3306 * gnulib/import/stdio.c: Delete file.
3307 * gnulib/import/sys_time.in.h: New file.
3308
3309 2015-08-24 Pedro Alves <palves@redhat.com>
3310
3311 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3312 * common/gdb_sys_time.h: New file.
3313 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3314 * gdb_select.h: Likewise.
3315 * gdb_usleep.c: Likewise.
3316 * maint.c: Likewise.
3317 * mi/mi-main.c: Likewise.
3318 * mi/mi-parse.h: Likewise.
3319 * remote-fileio.c: Likewise.
3320 * remote-m32r-sdi.c: Likewise.
3321 * remote.c: Likewise.
3322 * ser-base.c: Likewise.
3323 * ser-pipe.c: Likewise.
3324 * ser-tcp.c: Likewise.
3325 * ser-unix.c: Likewise.
3326 * symfile.c: Likewise.
3327 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3328 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3329 * utils.c: Likewise.
3330
3331 2015-08-24 Pedro Alves <palves@redhat.com>
3332
3333 * NEWS: Mention removed support for the various ROM monitors.
3334 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3335 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3336 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3337 gdb_target_obs.
3338 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3339 gdb_target_obs.
3340 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3341 dsrec.o from gdb_target_obs.
3342 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3343 from gdb_target_obs.
3344 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3345 gdb_target_obs.
3346 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3347 dink32-rom.o from gdb_target_obs.
3348 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3349 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3350 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3351 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3352
3353 2015-08-21 Pedro Alves <palves@redhat.com>
3354
3355 * frame.c (null_frame_id): Explicitly zero-initialize.
3356
3357 2015-08-21 Tom Tromey <tromey@redhat.com>
3358
3359 * dwarf2read.c (struct dwarf2_section_info): Rename field
3360 'asection' to 'section'.
3361 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3362 (dwarf2_locate_sections, dwarf2_locate_sections)
3363 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3364 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3365 (dwarf2_locate_v2_dwp_sections): Adjust.
3366
3367 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3368
3369 * top.h (gdb_in_secondary_prompt_p): Declare.
3370 * top.c (gdb_secondary_prompt_depth): Define.
3371 (gdb_in_secondary_prompt_p): Define.
3372 (gdb_readline_wrapper_cleanup): Decrement
3373 gdb_secondary_prompt_depth.
3374 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3375 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3376 are in a secondary prompt.
3377
3378 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3379
3380 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3381 emit the newline.
3382
3383 2015-08-21 Gary Benson <gbenson@redhat.com>
3384
3385 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3386
3387 2015-08-21 Gary Benson <gbenson@redhat.com>
3388
3389 * target.h (struct target_ops) <to_fileio_open>: New argument
3390 warn_if_slow. Update comment. All implementations updated.
3391 (target_fileio_open_warn_if_slow): New declaration.
3392 * target.c (target_fileio_open): Renamed as...
3393 (target_fileio_open_1): ...this. New argument warn_if_slow.
3394 Pass warn_if_slow to implementation. Update debug printing.
3395 (target_fileio_open): New function.
3396 (target_fileio_open_warn_if_slow): Likewise.
3397 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3398 target_fileio_open_warn_if_slow.
3399
3400 2015-08-21 Gary Benson <gbenson@redhat.com>
3401
3402 * nat/linux-namespaces.c (linux_mntns_access_fs):
3403 Do not overwrite old_chain.
3404
3405 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3406
3407 * arch/xtensa.h: New file.
3408 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3409 (ps_get_thread_area): New function.
3410 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3411 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3412 * xtensa-tdep.c (osabi.h): New #include.
3413 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3414 xtensa-specific hooks.
3415 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3416 member and move the structure to arch/xtensa.h.
3417
3418 2015-08-21 Pedro Alves <palves@redhat.com>
3419
3420 * remote.c (struct readahead_cache): New.
3421 (struct remote_state) <readahead_cache>: New field.
3422 (remote_open_1): Invalidate the cache.
3423 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3424 functions.
3425 (remote_hostio_pwrite): Invalidate the readahead cache.
3426 (remote_hostio_pread): Rename to ...
3427 (remote_hostio_pread_vFile): ... this.
3428 (remote_hostio_pread_from_cache): New function.
3429 (remote_hostio_pread): Reimplement.
3430 (remote_hostio_close): Invalidate the readahead cache.
3431
3432 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3433
3434 PR build/18843
3435 * procfs.c: Include "filestuff.h".
3436
3437 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3438
3439 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3440 curch.
3441 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3442 cur_line or curch, instead call wmove().
3443 (init_win_info) [CMD_WIN]: Likewise.
3444 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3445 instead call getcury().
3446 (tui_redisplay_readline): Don't set cur_line or curch.
3447 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3448 getcury().
3449 (tui_cont_sig): Remove call to wmove.
3450 (tui_getc): Don't read cur_line or curch, instead call getcury()
3451 or getyx(). Don't set curch.
3452 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3453 set cur_line or curch. Always move cursor to (0,0).
3454
3455 2015-08-20 Pedro Alves <palves@redhat.com>
3456
3457 * infrun.c (print_target_wait_results): Make extern.
3458 * infrun.h (print_target_wait_results): Declare.
3459 * remote.c (set_stop_requested_callback): Delete.
3460 (process_initial_stop_replies): New function.
3461 (remote_start_remote): Use it.
3462 (stop_reply_queue_length): New function.
3463
3464 2015-08-20 Pedro Alves <palves@redhat.com>
3465
3466 * dwarf2read.c (process_full_comp_unit): To tell whether
3467 start_subfile managed to deduce a language, test for
3468 language_unknown instead of language_c.
3469
3470 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3471
3472 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3473 matches attributes.
3474
3475 2015-08-19 Kevin Buettner <kevinb@redhat.com>
3476
3477 * dwarf2read.c (dwarf2_string_attr): New function.
3478 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3479 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3480 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3481 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3482 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3483
3484 2015-08-18 Doug Evans <dje@google.com>
3485 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3486
3487 PR mi/18833
3488 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3489 if MI-like.
3490 * mi/mi-out.c: #include "vec.h".
3491 (ui_filep): New type.
3492 (DEV_VEC_P (ui_filep)): New type.
3493 (struct ui_out_data) <buffer, original_buffer>: Delete.
3494 (struct ui_out_data) <streams>: New member.
3495 (mi_ui_out_impl): Add data_destroy field.
3496 (mi_field_string, mi_field_fmt): Update.
3497 (mi_flush, mi_redirect, field_separator): Update.
3498 (mi_open, mi_close): Update.
3499 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3500 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3501 (mi_out_new): Call mi_out_data_ctor.
3502
3503 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3504
3505 * remote.c (strprefix): New.
3506 (remote_parse_stop_reply): Use strprefix instead of strncmp
3507 to ensure exact match of keyword.
3508
3509 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3510
3511 * gdb_bfd.c (debug_bfd_cache): New variable.
3512 (show_bfd_cache_debug): New function.
3513 (gdb_bfd_open): Add debug logging.
3514 (gdb_bfd_ref): Likewise.
3515 (gdb_bfd_unref): Likewise.
3516 (_initialize_gdb_bfd): Add new set/show command.
3517 * NEWS: Mention new command.
3518
3519 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3520
3521 * gdb_bfd.c (bfd_sharing): New variable.
3522 (show_bfd_sharing): New function.
3523 (gdb_bfd_open): Check bfd_sharing variable.
3524 (_initialize_gdb_bfd): Add new set/show command.
3525 * NEWS: Mention new command.
3526
3527 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3530 field.
3531 (struct gdb_bfd_cache_search): Likewise.
3532 (eq_bfd): Compare the size, inode, and device id fields.
3533 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3534 (gdb_bfd_ref): Likewise.
3535 (gdb_bfd_unref): Likewise.
3536
3537 2015-08-18 Pedro Alves <palves@redhat.com>
3538
3539 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3540 target implements to_always_non_stop_p, call it.
3541 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3542 (x86_linux_create_target): Install it as to_always_non_stop_p
3543 method.
3544
3545 2015-08-17 Doug Evans <dje@google.com>
3546
3547 * ui-out.c (default_ui_out_impl): Add comment.
3548
3549 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3550
3551 * d-exp.y (type_aggregate_p): New function.
3552 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3553 (classify_inner_name): Likewise.
3554 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3555
3556 2015-08-15 Doug Evans <xdje42@gmail.com>
3557
3558 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3559 updated.
3560 (add_psymbol_to_list): Ditto.
3561
3562 2015-08-15 Doug Evans <xdje42@gmail.com>
3563
3564 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3565 updated. Call end_psymtab_common.
3566 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3567 end_psymtab_common.
3568 (build_type_psymtabs_reader): Ditto.
3569 * psympriv.h (sort_pst_symbols): Delete.
3570 (end_psymtab_common): Declare.
3571 * psymtab.c (sort_pst_symbols): Make static.
3572 (end_psymtab_common): New function.
3573 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3574
3575 2015-08-15 Doug Evans <xdje42@gmail.com>
3576
3577 * defs.h (LANGUAGE_BITS): Define.
3578 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3579 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3580 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3581 (minimal_symbol_type): Add nr_minsym_types.
3582 (MINSYM_TYPE_BITS): Define.
3583 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3584 (domain_enum_tag): Add NR_DOMAINS.
3585 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3586 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3587
3588 2015-08-15 Doug Evans <xdje42@gmail.com>
3589
3590 * objfiles.h: Whitespace cleanup.
3591 * psympriv.h: Whitespace cleanup.
3592 * psymtab.c: Whitespace/coding convention cleanup.
3593
3594 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3595
3596 * inferior.c (detach_inferior_command): Don't call
3597 any_thread_of_process when pid is 0.
3598 (kill_inferior_command): Likewise.
3599
3600 2015-08-14 Doug Evans <xdje42@gmail.com>
3601
3602 PR gdb/11833
3603 * NEWS: Document new /s modifier for the disassemble command.
3604 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3605 (_initialize_cli_cmds): Update online docs of disassemble command.
3606 * disasm.c: #include "source.h".
3607 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3608 All uses updated.
3609 (dis_line_entry): New struct.
3610 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3611 (allocate_dis_line_table): New functions.
3612 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3613 (dump_insns): New arg end_pc. All callers updated.
3614 (do_mixed_source_and_assembly_deprecated): Renamed from
3615 do_mixed_source_and_assembly. All callers updated.
3616 (do_mixed_source_and_assembly): New function.
3617 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3618 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3619 DISASSEMBLY_SOURCE. All uses updated.
3620 (DISASSEMBLY_SOURCE): New macro.
3621 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3622
3623 2015-08-14 Keith Seitz <keiths@redhat.com>
3624
3625 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3626 `typename' to `type_name' to avoid C++ reserved word.
3627
3628 2015-08-14 Keith Seitz <keiths@redhat.com>
3629
3630 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3631 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3632 silence ARI errors.
3633
3634 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3635
3636 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3637 xstrprintf instead of malloc and sprintf.
3638 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3639 (lex_one_token): Likewise.
3640
3641 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3642
3643 * solib-svr4.c (read_program_header): Add base_addr argument to
3644 report the runtime address of the segment.
3645 (find_program_interpreter): Update read_program_header call to pass
3646 a NULL pointer for the new argument.
3647 (scan_dyntag): Add ptr_addr argument to report the runtime address
3648 of the tag payload.
3649 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3650 read_program_header to get the base address of the dynamic segment.
3651 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3652 read_program_header.
3653 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3654
3655 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3656
3657 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3658
3659 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3660
3661 * d-exp.y (%union): Add voidval.
3662 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3663 name in the lexing stage.
3664 (PostfixExpression): Move symbol completion handling in grammar here
3665 from PrimaryExpression.
3666 (PrimaryExpression): Move routines to handle resolving identifier
3667 tokens in the grammar here from push_expression_name.
3668 (IdentifierExp): Remove the handling of alternating '.' and identifier
3669 tokens.
3670 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3671 (BasicType): Remove C-style typename rules.
3672 (d_type_from_name, d_module_from_name, push_variable)
3673 (push_fieldnames, push_type_name, push_module_name)
3674 (push_expression_name): Remove.
3675 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3676 (token_and_value): New type.
3677 (token_fifo, popping, name_obstack): New globals.
3678 (classify_name): New function.
3679 (classify_inner_name): Likewise.
3680 (yylex): Likewise.
3681 (d_parse): Initialize token_fifo, popping and name_obstack.
3682
3683 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3684
3685 * Makefile.in (SFILES): Add d-namespace.c.
3686 (COMMON_OBS): Add d-namespace.o.
3687 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3688 la_lookup_symbol_nonlocal callback function pointer.
3689 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3690 (d_lookup_nested_symbol): New declaration.
3691 * d-namespace.c: New file.
3692
3693 2015-08-13 Pedro Alves <palves@redhat.com>
3694
3695 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3696 cleanup after the decref cleanup, not before.
3697
3698 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3699
3700 * ada-lang.c: Include namespace.h
3701 (aux_add_nonlocal_symbols): Fix a function name in comment.
3702 (ada_add_block_renamings): New.
3703 (add_nonlocal_symbols): Add global renamings handling.
3704 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3705 to...
3706 (ada_add_all_symbols): ... this new function.
3707 (ada_add_block_symbols): Try to match the input name against the
3708 "using directives list", perform a recursive symbol lookup on
3709 the matched declarations.
3710 * block.h (struct block): Move the_namespace to top-level as
3711 namespace_info. Remove the language_specific field.
3712 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3713 * buildsym.h (using_directives): Rename into...
3714 (local_using_directives): ... this.
3715 (global_using_directives): New.
3716 (struct context_stack): Rename the using_directives field into
3717 local_using_directives.
3718 * buildsym.c (finish_block_internal): Deal with the proper
3719 using directives repository (local or global).
3720 (prepare_for_building): Reset local_using_directives. Assert
3721 that there is no pending global using directive.
3722 (reset_symtab_globals): Reset global_using_directives and
3723 local_using_directives.
3724 (end_symtab_get_static_block): Don't ignore symtabs that have
3725 only using directives.
3726 (push_context): Update references to local_using_directives.
3727 (buildsym_init): Do not reset using_directives.
3728 * cp-support.c: Include namespace.h.
3729 * cp-support.h (struct using_direct): Move to namespace.h.
3730 (cp_add_using_directives): Move to namespace.h.
3731 * cp-namespace.c: Include namespace.h
3732 (cp_add_using_directive): Move to namespace.c, rename it to
3733 add_using_directive, add a "using_directives" argument and use
3734 it as the pending using directives repository. All callers
3735 updated.
3736 * dwarf2read.c (using_directives): New.
3737 (read_import_statement): Call using_directives.
3738 (read_func_scope): Update references to local_using_directives.
3739 (read_lexical_block_scope): Likewise.
3740 (read_namespace): Update the heading comment, call
3741 using_directives.
3742 * namespace.h: New file.
3743 * namespace.c: New file.
3744 * Makefile.in (SFILES): Add namespace.c.
3745 (COMMON_OBS): Add namespace.o
3746
3747 2015-08-12 Joel Brobecker <brobecker@adacore.com>
3748
3749 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3750 compute RETADDR.
3751
3752 2015-08-12 Keith Seitz <keiths@redhat.com>
3753
3754 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3755 reserved C++ keyword "explicit" to "explicit_loc".
3756 * breakpoint.c (create_overlay_event_breakpoint)
3757 (create_longjmp_master_breakpoint)
3758 (create_std_terminate_master_breakpoint)
3759 (create_exception_master_breakpoint, update_static_tracepoint):
3760 Rename reserved C++ keyword "explicit" to "explicit_loc".
3761 * completer.c (collect_explicit_location_matches)
3762 (explicit_location_completer): Rename reserved C++ keyword
3763 "explicit" to "explicit_loc".
3764 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3765 (canonicalize_linespec, create_sals_line_offset)
3766 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3767 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3768 "explicit" to "explicit_loc".
3769 * location.c (struct event_location) <explicit>: Rename to
3770 "explicit_loc".
3771 (initialize_explicit_location, new_explicit_location)
3772 (explicit_location_to_string_internal, explicit_location_to_linespec):
3773 Rename reserved C++ keyword "explicit" to "explicit_loc".
3774 * location.h (explicit_location_to_string)
3775 (explicit_location_to_linespec, initialize_explicit_location)
3776 (new_explicit_location): Rename reserved C++ keyword "explicit"
3777 to "explicit_loc".
3778 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3779 keyword "explicit" to "explicit_loc".
3780
3781 2015-08-12 Keith Seitz <keiths@redhat.com>
3782
3783 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3784 and only call decode_line_1 when it is non-NULL.
3785
3786 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
3787
3788 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3789 location address is not meaningful.
3790 (breakpoint_address_is_meaningful): Update comment.
3791
3792 2015-08-11 Keith Seitz <keiths@redhat.com>
3793
3794 * NEWS: Mention explicit locations.
3795 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3796 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3797 (_initialize_breakpoint): Update documentation for
3798 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3799
3800 2015-08-11 Keith Seitz <keiths@redhat.com>
3801
3802 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3803 explicit locations, options "--source", "--function",
3804 "--label", and "--line".
3805
3806 2015-08-11 Keith Seitz <keiths@redhat.com>
3807
3808 * completer.c: Include location.h.
3809 (enum match_type): New enum.
3810 (location_completer): Rename to ...
3811 (linespec_completer): ... this.
3812 (collect_explicit_location_matches, backup_text_ptr)
3813 (explicit_location_completer): New functions.
3814 (location_completer): "New" function; handle linespec
3815 and explicit location completions.
3816 (complete_line_internal): Remove all location completer-specific
3817 handling.
3818 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3819 (find_toplevel_char): Export.
3820 (linespec_parse_line_offset): Export.
3821 Issue error if STRING is not numerical.
3822 (gdb_get_linespec_parser_quote_characters): New function.
3823 * linespec.h (linespec_parse_line_offset): Declare.
3824 (get_gdb_linespec_parser_quote_characters): Declare.
3825 (is_ada_operator): Declare.
3826 (find_toplevel_char): Declare.
3827 (linespec_lexer_lex_keyword): Declare.
3828 * location.c (explicit_to_event_location): New function.
3829 (explicit_location_lex_one): New function.
3830 (string_to_explicit_location): New function.
3831 (string_to_event_location): Handle explicit locations.
3832 * location.h (explicit_to_event_location): Declare.
3833 (string_to_explicit_location): Declare.
3834
3835 2015-08-11 Keith Seitz <keiths@redhat.com>
3836
3837 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3838 linespec into explicit location.
3839 * breakpoint.c (create_overlay_breakpoint)
3840 (create_longjmp_master_breakpoint)
3841 (create_std_terminate_master_breakpoint)
3842 (create_exception_master_breakpoint): Convert linespec into explicit
3843 location.
3844 (update_static_tracepoint): Convert linespec into explicit location.
3845 * linespec.c (enum offset_relative_sign, struct line_offset): Move
3846 location.h.
3847 (struct linespec) <expression, expr_pc, source_filename>
3848 <function_name, label_name, line_offset>: Replace with ...
3849 <explicit>: ... this.
3850 <is_linespec>: New member.
3851 (PARSER_EXPLICIT): New accessor macro.
3852 (undefined_label_error): New function.
3853 (source_file_not_found_error): New function.
3854 (linespec_parse_basic): The parser result is now an explicit location.
3855 Use PARSER_EXPLICIT to access it.
3856 Use undefined_label_error.
3857 (canonicalize_linespec): Convert canonical linespec into explicit
3858 location.
3859 Move string representation of location to explicit_location_to_linespec
3860 and use it and explicit_location_to_string to save string
3861 representations of the canonical location.
3862 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3863 explicit location. Update all references.
3864 (convert_explicit_location_to_sals): New function.
3865 (parse_linespec): Use PARSER_EXPLICIT to access the parser
3866 result's explicit location.
3867 (linespec_state_constructor): Initialize is_linespec.
3868 Use PARSER_EXPLICIT.
3869 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3870 result.
3871 (event_location_to_sals): For linespec locations, set is_linespec.
3872 Handle explicit locations.
3873 (decode_objc): 'ls' contains an explicit location now. Update all
3874 references.
3875 (symtabs_from_filename): Use source_file_not_found_error.
3876 * location.c (struct event_location.u) <explicit>: New member.
3877 (initialize_explicit_location): New function.
3878 (initialize_event_location): Initialize explicit locations.
3879 (new_explicit_location, get_explicit_location)
3880 (get_explicit_location_const): New functions.
3881 (explicit_to_string_internal): New function; most of contents moved
3882 from canonicalize_linespec.
3883 (explicit_location_to_string): New function.
3884 (explicit_location_to_linespec): New function.
3885 (copy_event_location, delete_event_location)
3886 (event_location_to_string_const, event_location_empty_p): Handle
3887 explicit locations.
3888 * location.h (enum offset_relative_sign, struct line_offset): Move
3889 here from linespec.h.
3890 (enum event_location_type): Add EXPLICIT_LOCATION.
3891 (struct explicit_location): New structure.
3892 (explicit_location_to_string): Declare.
3893 (explicit_location_to_linespec): Declare.
3894 (new_explicit_location, get_explicit_locationp
3895 (get_explicit_location_const, initialize_explicit_location): Declare.
3896
3897 2015-08-11 Keith Seitz <keiths@redhat.com>
3898
3899 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3900 linespec for stap probe to probe location.
3901 * breakpoint.c (create_longjmp_master_breakpoint)
3902 (create_exception_master_breakpoint): Likewise.
3903 (break_command_1): Remove local variable `arg_cp'.
3904 Check location type to set appropriate breakpoint ops methods.
3905 (trace_command): Likewise.
3906 * linespec.c (event_location_to_sals): Assert on probe locations.
3907 * location.c (EL_PROBE): Add macro definition.
3908 (new_probe_location, get_probe_location): New functions.
3909 (copy_event_location, delete_event_location, event_location_to_string)
3910 (string_to_event_location, event_location_empty_p): Handle probe
3911 locations.
3912 * location.h (enum event_location_type): Add PROBE_LOCATION.
3913 (new_probe_location, get_probe_location): Declare.
3914 * probe.c (parse_probes): Assert that LOCATION is a probe location.
3915 Convert linespec into probe location.
3916
3917 2015-08-11 Keith Seitz <keiths@redhat.com>
3918
3919 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
3920 Convert linespec to address location.
3921 * linespec.c (canonicalize_linespec): Do not handle address
3922 locations here.
3923 (convert_address_location_to_sals): New function; contents moved
3924 from ...
3925 (convert_linespc_to_sals): ... here.
3926 (parse_linespec): Remove address locations from linespec grammar.
3927 Remove handling of address locations.
3928 (linespec_lex_to_end): Remove handling of address linespecs.
3929 (event_location_to_sals): Handle ADDRESS_LOCATION.
3930 (linespec_expression_to_pc): Export.
3931 * linespec.h (linespec_expression_to_pc): Add declaration.
3932 * location.c (struct event_location.u) <address>: New member.
3933 (new_address_location, get_address_location): New functions.
3934 (copy_event_location, delete_event_location, event_location_to_string)
3935 (string_to_event_location, event_location_empty_p): Handle address
3936 locations.
3937 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
3938 (new_address_location, get_address_location): Declare.
3939 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
3940 to address location.
3941 * spu-tdep.c (spu_catch_start): Likewise.
3942
3943 2015-08-11 Keith Seitz <keiths@redhat.com>
3944
3945 * ax-gdb.c: Include location.h.
3946 (agent_command_1) Use linespec location instead of address
3947 string.
3948 * break-catch-throw.c: Include location.h.
3949 (re_set_exception_catchpoint): Use linespec locations instead
3950 of address strings.
3951 * breakpoint.c: Include location.h.
3952 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
3953 (create_std_terminate_master_breakpoint)
3954 (create_exception_master_breakpoint, update_breakpoints_after_exec):
3955 Use linespec location instead of address string.
3956 (print_breakpoint_location): Use locations and
3957 event_location_to_string.
3958 Print extra_string for pending locations for non-MI streams.
3959 (print_one_breakpoint_location): Use locations and
3960 event_location_to_string.
3961 (init_raw_breakpoint_without_location): Initialize b->location.
3962 (create_thread_event_breakpoint): Use linespec location instead of
3963 address string.
3964 (init_breakpoint_sal): Likewise.
3965 Only save extra_string if it is non-NULL and not the empty string.
3966 Use event_location_to_string instead of `addr_string'.
3967 Constify `p' and `endp'.
3968 Use skip_spaces_const/skip_space_const instead of non-const versions.
3969 Copy the location into the breakpoint.
3970 If LOCATION is NULL, save the breakpoint address as a linespec location
3971 instead of an address string.
3972 (create_breakpoint_sal): Change `addr_string' parameter to a struct
3973 event_location. All uses updated.
3974 (create_breakpoints_sal): Likewise for local variable `addr_string'.
3975 (parse_breakpoint_sals): Use locations instead of address strings.
3976 Remove check for empty linespec with conditional.
3977 Refactor.
3978 (decode_static_tracepoint_spec): Make argument const and update
3979 function.
3980 (create_breakpoint): Change `arg' to a struct event_location and
3981 rename.
3982 Remove `copy_arg' and `addr_start'.
3983 If EXTRA_STRING is empty, set it to NULL.
3984 Don't populate `canonical' for pending breakpoints.
3985 Pass `extra_string' to find_condition_and_thread.
3986 Clear `extra_string' if `rest' was NULL.
3987 Do not error with "garbage after location" if setting a dprintf
3988 breakpoint.
3989 Copy the location into the breakpoint instead of an address string.
3990 (break_command_1): Use string_to_event_location and pass this to
3991 create_breakpoint instead of an address string.
3992 Check against `arg_cp' for a probe linespec.
3993 (dprintf_command): Use string_to_event_location and pass this to
3994 create_breakpoint instead of an address string.
3995 Throw an exception if no format string was specified.
3996 (print_recreate_ranged_breakpoint): Use event_location_to_string
3997 instead of address strings.
3998 (break_range_command, until_break_command)
3999 (init_ada_exception_breakpoint): Use locations instead
4000 of address strings.
4001 (say_where): Print out extra_string for pending locations.
4002 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4003 the breakpoint.
4004 (base_breakpoint_create_sals_from_location): Use struct event_location
4005 instead of address string.
4006 Remove `addr_start' and `copy_arg' parameters.
4007 (base_breakpoint_decode_location): Use struct event_location instead of
4008 address string.
4009 (bkpt_re_set): Use locations instead of address strings.
4010 Use event_location_empty_p to check for unset location.
4011 (bkpt_print_recreate): Use event_location_to_string instead of
4012 an address string.
4013 Print out extra_string for pending locations.
4014 (bkpt_create_sals_from_location, bkpt_decode_location)
4015 (bkpt_probe_create_sals_from_location): Use struct event_location
4016 instead of address string.
4017 (bkpt_probe_decode_location): Use struct event_location instead of
4018 address string.
4019 (tracepoint_print_recreate): Use event_location_to_string to
4020 recreate the tracepoint.
4021 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4022 (tracepoint_probe_create_sals_from_location)
4023 (tracepoint_probe_decode_location): Use struct event_location
4024 instead of address string.
4025 (dprintf_print_recreate): Use event_location_to_string to recreate
4026 the dprintf.
4027 (dprintf_re_set): Remove check for valid/missing format string.
4028 (strace_marker_create_sals_from_location)
4029 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4030 (update_static_tracepoint): Use struct event_location instead of
4031 address string.
4032 (location_to_sals): Likewise.
4033 Pass `extra_string' to find_condition_and_thread.
4034 For newly resolved pending breakpoint locations, clear the location's
4035 string representation.
4036 Assert that the breakpoint's condition string is NULL when
4037 condition_not_parsed.
4038 (breakpoint_re_set_default, create_sals_from_location_default)
4039 (decode_location_default, trace_command, ftrace_command)
4040 (strace_command, create_tracepoint_from_upload): Use locations
4041 instead of address strings.
4042 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4043 Use struct event_location instead of address string.
4044 Update all uses.
4045 <decode_location>: Likewise.
4046 (struct breakpoint) <addr_string>: Change to struct event_location
4047 and rename `location'.
4048 <addr_string_range_end>: Change to struct event_location and rename
4049 `location_range_end'.
4050 (create_breakpoint): Use struct event_location instead of address
4051 string.
4052 * cli/cli-cmds.c: Include location.h.
4053 (edit_command, list_command): Use locations instead of address strings.
4054 * elfread.c: Include location.h.
4055 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4056 * guile/scm-breakpoint.c: Include location.h.
4057 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4058 (gdbscm_register_breakpoint): Use locations instead of address
4059 strings.
4060 * linespec.c: Include location.h.
4061 (struct ls_parser) <stream>: Change to const char *.
4062 (PARSER_STREAM): Update.
4063 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4064 keywords must be followed by whitespace.
4065 (canonicalize_linespec): Save a linespec location into `canonical'.
4066 Save a canonical linespec into `canonical'.
4067 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4068 All uses updated.
4069 Update function description.
4070 (linespec_parser_new): Initialize `parser'.
4071 Update initialization of parsing stream.
4072 (event_location_to_sals): New function.
4073 (decode_line_full): Change `argptr' to a struct event_location and
4074 rename it `location'.
4075 Use locations instead of address strings.
4076 Call event_location_to_sals instead of parse_linespec.
4077 (decode_line_1): Likewise.
4078 (decode_line_with_current_source, decode_line_with_last_displayed)
4079 Use locations instead of address strings.
4080 (decode_objc): Likewise.
4081 Change `argptr' to const char * and rename `arg'.
4082 (destroy_linespec_result): Delete the linespec result's location
4083 instead of freeing the address string.
4084 * linespec.h (struct linespec_result) <addr_string>: Change to
4085 struct event_location and rename to ...
4086 <location>: ... this.
4087 (decode_line_1, decode_line_full): Change `argptr' to struct
4088 event_location. All callers updated.
4089 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4090 (mi_cmd_break_insert_1): Use locations instead of address strings.
4091 Throw an error if there was "garbage" at the end of the specified
4092 linespec.
4093 * probe.c: Include location.h.
4094 (parse_probes): Change `argptr' to struct event_location.
4095 Use event locations instead of address strings.
4096 * probe.h (parse_probes): Change `argptr' to struct event_location.
4097 * python/py-breakpoint.c: Include location.h.
4098 (bppy_get_location): Constify local variable `str'.
4099 Use event_location_to_string.
4100 (bppy_init): Use locations instead of address strings.
4101 * python/py-finishbreakpoint.c: Include location.h.
4102 (bpfinishpy_init): Remove local variable `addr_str'.
4103 Use locations instead of address strings.
4104 * python/python.c: Include location.h.
4105 (gdbpy_decode_line): Use locations instead of address strings.
4106 * remote.c: Include location.h.
4107 (remote_download_tracepoint): Use locations instead of address
4108 strings.
4109 * spu-tdep.c: Include location.h.
4110 (spu_catch_start): Remove local variable `buf'.
4111 Use locations instead of address strings.
4112 * tracepoint.c: Include location.h.
4113 (scope_info): Use locations instead of address strings.
4114 (encode_source_string): Constify parameter `src'.
4115 * tracepoint.h (encode_source_string): Likewise.
4116
4117 2015-08-11 Keith Seitz <keiths@redhat.com>
4118
4119 * Makefile.in (SFILES): Add location.c.
4120 (HFILES_NO_SRCDIR): Add location.h.
4121 (COMMON_OBS): Add location.o.
4122 * linespec.c (linespec_lex_to_end): New function.
4123 * linespec.h (linespec_lex_to_end): Declare.
4124 * location.c: New file.
4125 * location.h: New file.
4126
4127 2015-08-11 Keith Seitz <keiths@redhat.com>
4128
4129 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4130 Renamed to create_sals_from_location.
4131 <decode_linespec>: Renamed to decode_location.
4132 Update all callers.
4133 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4134 (create_sals_from_location_default): ... this.
4135 (addr_string_to_sals): Renamed to ...
4136 (location_to_sals): ... this.
4137 (decode_linespec_default): Renamed to ...
4138 (decode_location_default): ... this.
4139 (base_breakpoint_create_sals_from_address): Renamed to ...
4140 (base_breakpoint_create_sals_from_location): ... this.
4141 (bkpt_create_sals_from_address): Renamed to ...
4142 (bkpt_create_sals_from_location): ... this.
4143 (bkpt_decode_linespec): Renamed to ...
4144 (bkpt_decode_location): ... this.
4145 (bkpt_probe_create_sals_from_address): Renamed to ...
4146 (bkpt_probe_create_sals_from_location): ... this.
4147 (tracepoint_create_sals_from_address): Renamed to ...
4148 (tracepoint_create_sals_from_location): ... this.
4149 (tracepoint_decode_linespec): Renamed to ...
4150 (tracepoint_decode_location): ... this.
4151 (tracepoint_probe_create_sals_from_address): Renamed to ...
4152 (tracepoint_probe_create_sals_from_location): ... this.
4153 (tracepoint_probe_decode_linespec): Renamed to ...
4154 (tracepoint_probe_decode_location): ... this.
4155 (strace_marker_create_sals_from_address): Renamed to ...
4156 (strace_marker_create_sals_from_location): ... this.
4157 (decode_linespec_default): Renamed to ...
4158 (decode_location_default): ... this.
4159
4160 2015-08-10 Doug Evans <dje@google.com>
4161 Keith Seitz <keiths@redhat.com>
4162
4163 PR gdb/17960
4164 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4165 make_file_symbol_completion_list and made static.
4166 (make_file_symbol_completion_list): New function.
4167
4168 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4169
4170 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4171 trailing new-line at end of warning message.
4172 (proceed): Add i18n marker to error messages.
4173
4174 2015-08-07 Pedro Alves <palves@redhat.com>
4175
4176 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4177
4178 2015-08-07 Pedro Alves <palves@redhat.com>
4179
4180 * s390-linux-tdep.c (is_non_branch_ril)
4181 (s390_displaced_step_copy_insn): New functions.
4182 (s390_displaced_step_fixup): Update comment.
4183 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4184 gdbarch_displaced_step_copy_insn hook.
4185
4186 2015-08-07 Pedro Alves <palves@redhat.com>
4187
4188 * infrun.c (displaced_step_prepare_throw): Return -1 if
4189 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4190 comment.
4191 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4192 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4193 in file.
4194 (ppc_displaced_step_copy_insn): New function.
4195 (ppc_displaced_step_fixup): Update comment.
4196 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4197 gdbarch_displaced_step_copy_insn hook.
4198 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4199 NULL return.
4200 * gdbarch.h: Regenerate.
4201
4202 2015-08-07 Pedro Alves <palves@redhat.com>
4203
4204 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4205 field.
4206 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4207 Return false if dispaced stepping failed before.
4208 (resume): Pass the current inferior to
4209 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4210 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4211 displaced_stepping_failed flag, and fall back to an in-line
4212 step-over.
4213
4214 2015-08-07 Pedro Alves <palves@redhat.com>
4215
4216 * darwin-nat.c (darwin_stop): Rename to ...
4217 (darwin_interrupt): ... this.
4218 (_initialize_darwin_inferior): Adjust.
4219 * gnu-nat.c (gnu_stop): Delete.
4220 (gnu_target): Don't install gnu_stop.
4221 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4222 (inf_ptrace_interrupt): ... this.
4223 (inf_ptrace_target): Adjust.
4224 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4225 target_stop.
4226 * linux-nat (linux_nat_stop): Rename to ...
4227 (linux_nat_interrupt): ... this.
4228 (linux_nat_stop): Reimplement.
4229 (linux_nat_add_target): Install linux_nat_interrupt.
4230 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4231 (nto_handle_sigint_twice): ... this.
4232 (nto_interrupt): Rename to ...
4233 (nto_handle_sigint): ... this. Call target_interrupt instead of
4234 target_stop.
4235 (procfs_wait): Adjust.
4236 (procfs_stop): Rename to ...
4237 (procfs_interrupt): ... this.
4238 (init_procfs_targets): Adjust.
4239 * procfs.c (procfs_stop): Rename to ...
4240 (procfs_interrupt): ... this.
4241 (procfs_target): Adjust.
4242 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4243 (m32r_interrupt): ... this.
4244 (init_m32r_ops): Adjust.
4245 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4246 (gdbsim_interrupt_inferior): ... this.
4247 (gdbsim_stop): Rename to ...
4248 (gdbsim_interrupt): ... this.
4249 (gdbsim_cntrl_c): Adjust.
4250 (init_gdbsim_ops): Adjust.
4251 * remote.c (sync_remote_interrupt): Adjust comments.
4252 (remote_stop_as): Rename to ...
4253 (remote_interrupt_as): ... this.
4254 (remote_stop): Adjust comment.
4255 (remote_interrupt): New function.
4256 (init_remote_ops): Install remote_interrupt.
4257 * target.c (target_interrupt): New function.
4258 * target.h (struct target_ops) <to_interrupt>: New field.
4259 (target_interrupt): New declaration.
4260 * windows-nat.c (windows_stop): Rename to ...
4261 (windows_interrupt): ... this.
4262 * target-delegates.c: Regenerate.
4263
4264 2015-08-07 Pedro Alves <palves@redhat.com>
4265
4266 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4267 threads" as alternative to "switching back to stepped thread".
4268
4269 2015-08-07 Pedro Alves <palves@redhat.com>
4270
4271 * NEWS: Mention "maint set/show target-non-stop".
4272 * breakpoint.c (update_global_location_list): Check
4273 target_is_non_stop_p instead of non_stop.
4274 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4275 * infrun.c (show_can_use_displaced_stepping)
4276 (can_use_displaced_stepping_p, start_step_over_inferior):
4277 Likewise.
4278 (internal_resume_ptid): New function.
4279 (resume): Use it.
4280 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4281 all-stop mode but the target is always in non-stop mode, start all
4282 the other threads that are implicitly resumed too.
4283 (for_each_just_stopped_thread, fetch_inferior_event)
4284 (adjust_pc_after_break, stop_all_threads): Check
4285 target_is_non_stop_p instead of non_stop.
4286 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4287 with the target always in non-stop mode.
4288 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4289 instead of non_stop.
4290 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4291 instead of non_stop.
4292 (keep_going_stepped_thread): Use internal_resume_ptid.
4293 (stop_waiting): If in all-stop mode, and the target is in non-stop
4294 mode, stop all threads.
4295 (keep_going_pass): Likewise, when starting a new in-line step-over
4296 sequence.
4297 * linux-nat.c (get_pending_status, select_event_lwp)
4298 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4299 target_is_non_stop_p instead of non_stop.
4300 (linux_nat_always_non_stop_p): New function.
4301 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4302 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4303 * target-delegates.c: Regenerate.
4304 * target.c (target_is_non_stop_p): New function.
4305 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4306 (maint_set_target_non_stop_command)
4307 (maint_show_target_non_stop_command): New functions.
4308 (_initilize_target): Install "maint set/show target-non-stop"
4309 commands.
4310 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4311 (target_non_stop_enabled): New declaration.
4312 (target_is_non_stop_p): New declaration.
4313
4314 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4315
4316 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4317 has a pending status, return true.
4318 * gdbthread.h: Include target/waitstatus.h.
4319 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4320 stop_pc>: New fields.
4321 (struct thread_info) <resumed>: New field.
4322 (set_resumed): Declare.
4323 * infrun.c: Include "event-loop.h".
4324 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4325 (infrun_async): New function.
4326 (clear_step_over_info): Add debug output.
4327 (displaced_step_in_progress_any_inferior): New function.
4328 (displaced_step_fixup): New returns int.
4329 (start_step_over): Handle in-line step-overs too. Assert the
4330 thread is marked resumed.
4331 (resume_cleanups): Clear the thread's resumed flag.
4332 (resume): Set the thread's resumed flag. Return early if the
4333 thread has a pending status. Allow stepping a breakpoint with no
4334 signal.
4335 (proceed): Adjust to check 'resumed' instead of 'executing'.
4336 (clear_proceed_status_thread): If the thread has a pending status,
4337 and that status is a finished step, discard the pending status.
4338 (clear_proceed_status): Don't clear step_over_info here.
4339 (random_pending_event_thread, do_target_wait): New functions.
4340 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4341 do_target_wait.
4342 (wait_one): New function.
4343 (THREAD_STOPPED_BY): New macro.
4344 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4345 (thread_stopped_by_hw_breakpoint): New functions.
4346 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4347 functions.
4348 (handle_inferior_event): Also call set_resumed(false) on all
4349 threads implicitly stopped by the event.
4350 (restart_threads, resumed_thread_with_pending_status): New
4351 functions.
4352 (finish_step_over): If we were doing an in-line step-over before,
4353 and no longer are after trying to start a new step-over, restart
4354 all threads. If we have multiple threads with pending events,
4355 save the current event and go through the event loop again.
4356 (handle_signal_stop): Return early if finish_step_over returns
4357 false.
4358 <random signal>: If we get a signal while stepping over a
4359 breakpoint in-line in non-stop mode, restart all threads. Clear
4360 step_over_info before delivering the signal.
4361 (keep_going_stepped_thread): Use internal_error instead of
4362 gdb_assert. Mark the thread as resumed.
4363 (keep_going_pass_signal): Assert the thread isn't already resumed.
4364 If some other thread is doing an in-line step-over, defer the
4365 resume. If we just started a new in-line step-over, stop all
4366 threads. Don't clear step_over_info.
4367 (infrun_async_inferior_event_handler): New function.
4368 (_initialize_infrun): Create async event handler with
4369 infrun_async_inferior_event_handler as callback.
4370 (infrun_async): New declaration.
4371 * target.c (target_async): New function.
4372 * target.h (target_async): Declare macro and readd as function
4373 declaration.
4374 * target/waitstatus.h (enum target_stop_reason)
4375 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4376 * thread.c (new_thread): Clear the new waitstatus field.
4377 (set_resumed): New function.
4378
4379 2015-08-07 Pedro Alves <palves@redhat.com>
4380
4381 * infrun.c (keep_going_stepped_thread): New function, factored out
4382 from ...
4383 (switch_back_to_stepped_thread): ... here.
4384
4385 2015-08-07 Pedro Alves <palves@redhat.com>
4386
4387 * infrun.c (currently_stepping): Extend intro comment.
4388 * target.h (target_resume): Extend intro comment.
4389
4390 2015-08-07 Pedro Alves <palves@redhat.com>
4391
4392 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4393 of inferior_ptid. If the stepped thread vanished, return 0
4394 instead of resuming here. Use reset_ecs. Print the prev_pc and
4395 the current stop_pc in log message. Clear trap_expected if the
4396 thread advanced. Don't pass currently_stepping to
4397 do_target_resume.
4398
4399 2015-08-07 Pedro Alves <palves@redhat.com>
4400
4401 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4402 * infrun.c (struct execution_control_state): Move higher up in the
4403 file.
4404 (reset_ecs): New function.
4405 (start_step_over): Now returns int. Rewrite to use
4406 keep_going_pass_signal instead of manually starting a displaced step.
4407 (resume): Don't call set_running here. If displaced stepping
4408 can't start now, clear trap_expected.
4409 (find_thread_needs_step_over): Delete function.
4410 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4411 If the current thread needs a step over, push it in the step-over
4412 chain. Don't set insert breakpoints nor call resume directly
4413 here. Instead rewrite to use start_step_over and
4414 keep_going_pass_signal.
4415 (finish_step_over): New function.
4416 (handle_signal_stop): Call finish_step_over instead of
4417 start_step_over.
4418 (switch_back_to_stepped_thread): If the event thread needs another
4419 step-over do that first. Use start_step_over.
4420 (keep_going_pass_signal): New function, factored out from ...
4421 (keep_going): ... here.
4422 (_initialize_infrun): Comment moved here.
4423 * thread.c (set_running_thread): New function.
4424 (set_running, finish_thread_state): Use set_running_thread.
4425
4426 2015-08-07 Pedro Alves <palves@redhat.com>
4427
4428 * gdbthread.h (struct thread_info) <step_over_prev,
4429 step_over_next>: New fields.
4430 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4431 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4432 declarations.
4433 * infrun.c (struct displaced_step_request): Delete.
4434 (struct displaced_step_inferior_state) <step_request_queue>:
4435 Delete field.
4436 (displaced_step_prepare): Assert that trap_expected is set. Use
4437 thread_step_over_chain_enqueue. Split starting a new displaced
4438 step to ...
4439 (start_step_over): ... this new function.
4440 (resume): Assert the thread isn't waiting for a step over already.
4441 (proceed): Assert the thread isn't waiting for a step over
4442 already.
4443 (infrun_thread_stop_requested): Adjust to remove threads from the
4444 embedded step-over chain.
4445 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4446 displaced_step_fixup.
4447 (handle_signal_stop): Call start_step_over after
4448 displaced_step_fixup.
4449 * infrun.h (step_over_queue_head): New declaration.
4450 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4451 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4452 (thread_step_over_chain_enqueue)
4453 (thread_step_over_chain_remove): New functions.
4454 (delete_thread_1): Remove thread from the step-over chain.
4455
4456 2015-08-07 Pedro Alves <palves@redhat.com>
4457
4458 * infrun.c (thread_still_needs_step_over): Rename to ...
4459 (thread_still_needs_step_over_bp): ... this.
4460 (enum step_over_what): New.
4461 (thread_still_needs_step_over): Reimplement.
4462
4463 2015-08-07 Pedro Alves <palves@redhat.com>
4464
4465 * remote.c (remote_wait_as): If not waiting for a stop reply,
4466 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4467 requested, don't block waiting forever.
4468
4469 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4470
4471 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4472 waitstatus pointers instead of an ecs. Adjust.
4473 (handle_inferior_event): Adjust caller.
4474
4475 2015-08-07 Pedro Alves <palves@redhat.com>
4476
4477 * infrun.c (handle_inferior_event): If we get
4478 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4479 mode, mark all threads of the exiting process as not-executing.
4480 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4481 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4482 exiting process, if inferior_ptid still points at a process.
4483 * thread.c (struct current_thread_cleanup) <next>: New field.
4484 (current_thread_cleanup_chain): New global.
4485 (restore_current_thread_ptid_changed): New function.
4486 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4487 current_thread_cleanup_chain list.
4488 (make_cleanup_restore_current_thread): Add the cleanup data to the
4489 current_thread_cleanup_chain list.
4490 (_initialize_thread): Install restore_current_thread_ptid_changed
4491 as thread_ptid_changed observer.
4492
4493 2015-08-07 Joel Brobecker <brobecker@adacore.com>
4494
4495 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4496 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4497 smaller than expected.
4498
4499 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4500
4501 * stack.c (get_frame_language): Moved ...
4502 * frame.c (get_frame_language): ... to here.
4503 * language.h (get_frame_language): Declaration moved to frame.h.
4504 * frame.h: Add language.h include, for language enum.
4505 (get_frame_language): Declaration moved from language.h.
4506 * language.c: Add frame.h include.
4507 * top.c: Add frame.h include.
4508 * symtab.h (struct obj_section): Declare.
4509 (struct cmd_list_element): Declare.
4510
4511 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4512
4513 * language.c (show_language_command): Find selected frame before
4514 asking for the language of that frame.
4515 (set_language_command): Likewise.
4516 * language.h (get_frame_language): Add frame parameter.
4517 * stack.c (get_frame_language): Add frame parameter, assert
4518 parameter is not NULL, update comment and reindent.
4519 * top.c (check_frame_language_change): Pass the selected frame
4520 into get_frame_language.
4521
4522 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4523
4524 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4525 (pt_btrace_insn_flags): New.
4526 (ftrace_add_pt): Call pt_btrace_insn_flags.
4527 * btrace.h (btrace_insn_flag): New.
4528 (btrace_insn) <flags>: New.
4529 * record-btrace.c (btrace_insn_history): Print insn prefix.
4530 * NEWS: Announce it.
4531
4532 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4533
4534 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4535 * configure: Regenerate.
4536
4537 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4538
4539 * Makefile.in (LIBICONV): Define.
4540 (CLIBS): Add LIBICONV.
4541 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4542 * configure: Regenerate.
4543
4544 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4545 Pedro Alves <palves@redhat.com>
4546
4547 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4548 (arm_set_abi): Likewise.
4549 * ax-general.c (ax_print): Likewise.
4550 * c-exp.y (exp : string_exp): Likewise.
4551 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4552 (do_compile_dwarf_expr_to_c): Likewise.
4553 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4554 Likewise.
4555 * dwarf2expr.c (execute_stack_op): Likewise.
4556 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4557 (disassemble_dwarf_expression): Likewise.
4558 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4559 (read_array_order): Likewise.
4560 (abbrev_table_read_table): Likewise.
4561 (read_attribute_value): Likewise.
4562 (skip_unknown_opcode): Likewise.
4563 (dwarf_decode_macro_bytes): Likewise.
4564 (dwarf_decode_macros): Likewise.
4565 * eval.c (value_f90_subarray): Likewise.
4566 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4567 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4568 * infrun.c (handle_command): Likewise.
4569 * memory-map.c (memory_map_start_memory): Likewise.
4570 * osabi.c (set_osabi): Likewise.
4571 * parse.c (operator_length_standard): Likewise.
4572 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4573 single return point.
4574 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4575 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4576 (gdbpy_lookup_global_symbol): Likewise.
4577 * record-full.c (record_full_restore): Likewise.
4578 * regcache.c (regcache_register_status): Likewise.
4579 (regcache_raw_read): Likewise.
4580 (regcache_cooked_read): Likewise.
4581 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4582 * symtab.c (initialize_ordinary_address_classes): Likewise.
4583 * target-debug.h (target_debug_print_signals): Likewise.
4584 * utils.c (do_restore_current_language): Likewise.
4585
4586 2015-08-06 Clem Dickey <clemd@acm.org>
4587
4588 PR python/17136
4589 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4590
4591 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4592
4593 * complaints.c (enum complaint_series): Add newlines and remove
4594 out of date comment.
4595 (struct complaints) <series>: Change type to enum
4596 complaint_series and remove out of date comment.
4597 (symfile_complaint_hook): Use equivalent enum value
4598 ISOLATED_MESSAGE instead of 0.
4599
4600 2015-08-06 Pedro Alves <palves@redhat.com>
4601
4602 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4603 returned > 0.
4604
4605 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4606
4607 * common/agent.c (symbol_list) <required>: Remove.
4608
4609 2015-08-06 Pedro Alves <palves@redhat.com>
4610
4611 * target/waitstatus.h (enum target_stop_reason)
4612 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4613
4614 2015-08-05 Pedro Alves <palves@redhat.com>
4615 Joel Brobecker <brobecker@adacore.com>
4616
4617 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4618 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4619 case where BS->STOP is not set.
4620
4621 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4622
4623 * nat/gdb_thread_db.h: Add copyright header.
4624 Protect against multiple inclusion.
4625
4626 2015-08-05 Yao Qi <yao.qi@linaro.org>
4627
4628 * aarch64-linux-nat.c (get_thread_id): Remove.
4629 (debug_reg_change_callback): Call ptid_get_lwp instead of
4630 get_thread_id.
4631 (fetch_gregs_from_thread): Likewise.
4632 (store_gregs_to_thread): Likewise.
4633 (fetch_fpregs_from_thread): Likewise.
4634 (store_fpregs_to_thread): Likewise.
4635 (aarch64_linux_get_debug_reg_capacity): Likewise.
4636 * arm-linux-nat.c (get_thread_id): Remove.
4637 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4638 * xtensa-linux-nat.c (get_thread_id): Remove.
4639 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4640 * arm-linux-nat.c (get_thread_id): Remove.
4641 (GET_THREAD_ID): Remove.
4642 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4643 (store_fpregs, fetch_regs, store_regs): Likewise.
4644 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4645 (fetch_vfp_regs, store_vfp_regs): Likewise.
4646 (arm_linux_read_description): Likewise.
4647 (arm_linux_get_hwbp_cap): Likewise.
4648 * xtensa-linux-nat.c (get_thread_id): Remove.
4649 (GET_THREAD_ID): Remove.
4650 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4651 GET_THREAD_ID.
4652
4653 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4654
4655 * python/py-linetable.c: Fix case of Linetable to LineTable
4656 in docstrings and code comments.
4657 * python/py-symtab.c: Same.
4658
4659 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4660
4661 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4662
4663 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4664
4665 PR gdb/18767
4666 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4667 use.
4668
4669 2015-08-04 Pedro Alves <palves@redhat.com>
4670
4671 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4672 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4673 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4674 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4675 (td_thr_validate_ftype, td_thr_get_info_ftype)
4676 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4677 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4678 New typedefs.
4679 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4680 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4681 local macros and use them instead of verbose_dlsym and dlsym
4682 calls.
4683
4684 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4685
4686 * nios2-tdep.h: Include opcode/nios2.h here.
4687 (NIOS2_CDX_OPCODE_SIZE): New.
4688 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4689 * nios2-tdep.c: Don't include opcode/nios2.h here.
4690 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4691 4-byte read fails.
4692 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4693 (nios2_match_addi, nios2_match_orhi): Likewise.
4694 (nios2_match_stw, nios2_match_ldw): Likewise.
4695 (nios2_match_rdctl): Likewise.
4696 (nios2_match_stwm, nios2_match_ldwm): New.
4697 (nios2_match_branch): Add cases for R2 encodings.
4698 (nios2_match_jmpi, nios2_match_calli): Likewise.
4699 (nios2_match_jmpr, nios2_match_callr): Likewise.
4700 (nios2_match_break, nios2_match_trap): Likewise.
4701 (nios2_in_epilogue_p): Add R2 support.
4702 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4703 prologues.
4704 (nios2_breakpoint_from_pc): Handle R2 instructions.
4705 (nios2_get_next_pc): Likewise. Adjust call to
4706 tdep->syscall_next_pc.
4707 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4708 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4709 instruction field macros instead of literal hex values.
4710 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4711 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4712 Use size field from OP instead of assuming all instructions
4713 are the same size.
4714 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4715
4716 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4717
4718 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4719 variable warning with some compilers.
4720
4721 2015-08-03 Yao Qi <yao.qi@linaro.org>
4722
4723 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4724 in comment. Replace "rw" with "type".
4725 (arm_linux_remove_watchpoint): Change type of "rw" to
4726 "enum target_hw_bp_type".
4727
4728 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4729
4730 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4731 lookup_symbol.
4732 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4733 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4734 * mt-tdep.c (mt_skip_prologue): Likewise.
4735 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4736
4737 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4738
4739 * ada-exp.y (write_object_renaming): Replace struct
4740 ada_symbol_info with struct block_symbol. Update field
4741 references accordingly.
4742 (block_lookup, select_possible_type_sym): Likewise.
4743 (find_primitive_type): Likewise. Also update call to
4744 ada_lookup_symbol to extract the symbol itself.
4745 (write_var_or_type, write_name_assoc): Likewise.
4746 * ada-lang.h (struct ada_symbol_info): Remove.
4747 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4748 struct block_symbol.
4749 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4750 (ada_lookup_symbol): Return struct block_symbol instead of a
4751 mere symbol.
4752 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4753 with struct block_symbol.
4754 (resolve_subexp, ada_resolve_function, sort_choices,
4755 user_select_syms, is_nonfunction, add_defn_to_vec,
4756 num_defns_collected, defns_collected,
4757 symbols_are_identical_enums, remove_extra_symbols,
4758 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4759 ada_lookup_symbol_list, ada_iterate_over_symbols,
4760 ada_lookup_encoded_symbol, get_var_value): Likewise.
4761 (ada_lookup_symbol): Return a block_symbol instead of a mere
4762 symbol. Replace struct ada_symbol_info with struct
4763 block_symbol.
4764 (ada_lookup_symbol_nonlocal): Likewise.
4765 (standard_lookup): Make block passing explicit through
4766 lookup_symbol_in_language.
4767 * ada-tasks.c (get_tcb_types_info): Update the calls to
4768 lookup_symbol_in_language to extract the mere symbol out of the
4769 returned value.
4770 (ada_tasks_inferior_data_sniffer): Likewise.
4771 * ax-gdb.c (gen_static_field): Likewise for the call to
4772 lookup_symbol.
4773 (gen_maybe_namespace_elt): Deal with struct block_symbol from
4774 lookup functions.
4775 (gen_expr): Likewise.
4776 * c-exp.y: Likewise. Remove uses of block_found.
4777 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4778 (classify_name): Likewise. Rename the "sym" local variable to
4779 "bsym".
4780 * c-valprint.c (print_unpacked_pointer): Likewise.
4781 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4782 "sym" parameter from struct symbol * to struct block_symbol.
4783 Use it to remove uses of block_found. Deal with struct
4784 block_symbol from lookup functions.
4785 (gcc_convert_symbol): Likewise. Update the call to
4786 convert_symbol_sym.
4787 * compile/compile-object-load.c (compile_object_load): Deal with
4788 struct block_symbol from lookup functions.
4789 * cp-namespace.c (cp_lookup_nested_symbol_1,
4790 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4791 cp_search_static_and_baseclasses,
4792 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4793 cp_lookup_symbol_imports_or_template,
4794 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4795 lookup_namespace_scope, cp_lookup_nonlocal,
4796 find_symbol_in_baseclass): Return struct block_symbol instead of
4797 mere symbols and deal with struct block_symbol from lookup
4798 functions.
4799 * cp-support.c (inspect_type, replace_typedefs,
4800 cp_lookup_rtti_type): Deal with struct block_symbol from
4801 lookup functions.
4802 * cp-support.h (cp_lookup_symbol_nonlocal,
4803 cp_lookup_symbol_from_namespace,
4804 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4805 Return struct block_symbol instead of mere symbols.
4806 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4807 push_module_name):
4808 Deal with struct block_symbol from lookup functions. Remove
4809 uses of block_found.
4810 * eval.c (evaluate_subexp_standard): Update call to
4811 cp_lookup_symbol_namespace.
4812 * f-exp.y: Deal with struct block_symbol from lookup functions.
4813 Remove uses of block_found.
4814 (yylex): Likewise.
4815 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4816 lookup_enum, lookup_template_type, check_typedef): Deal with
4817 struct block_symbol from lookup functions.
4818 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4819 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4820 (gdbscm_lookup_global_symbol): Likewise.
4821 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4822 * go-exp.y: Likewise. Remove uses of block_found.
4823 (package_name_p, classify_packaged_name, classify_name):
4824 Likewise.
4825 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4826 * jv-exp.y (push_variable): Likewise.
4827 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4828 * language.c (language_bool_type): Likewise.
4829 * language.h (struct language_defn): Update
4830 la_lookup_symbol_nonlocal to return a struct block_symbol rather
4831 than a mere symbol.
4832 * linespec.c (find_label_symbols): Deal with struct block_symbol
4833 from lookup functions.
4834 * m2-exp.y: Likewise. Remove uses of block_found.
4835 (yylex): Likewise.
4836 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4837 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4838 * p-exp.y: Likewise. Remove uses of block_found.
4839 (yylex): Likewise.
4840 * p-valprint.c (pascal_val_print): Likewise.
4841 * parse.c (write_dollar_variable): Likewise. Remove uses of
4842 block_found.
4843 * parser-defs.h (struct symtoken): Turn the SYM field into a
4844 struct block_symbol.
4845 * printcmd.c (address_info): Deal with struct block_symbol from
4846 lookup functions.
4847 * python/py-frame.c (frapy_read_var): Likewise.
4848 * python/py-symbol.c (gdbpy_lookup_symbol,
4849 gdbpy_lookup_global_symbol): Likewise.
4850 * skip.c (skip_function_command): Likewise.
4851 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
4852 block_symbol instead of a mere symbol.
4853 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4854 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4855 * solib.c (solib_global_lookup): Likewise.
4856 * solist.h (solib_global_lookup): Likewise.
4857 (struct target_so_ops): Update lookup_lib_global_symbol to
4858 return a struct block_symbol rather than a mere symbol.
4859 * source.c (select_source_symtab): Deal with struct block_symbol
4860 from lookup functions.
4861 * stack.c (print_frame_args, iterate_over_block_arg_vars):
4862 Likewise.
4863 * symfile.c (set_initial_language): Likewise.
4864 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
4865 block_symbol.
4866 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4867 (struct symbol_cache_slot): Turn the FOUND field into a struct
4868 block_symbol.
4869 (block_found): Remove.
4870 (eq_symbol_entry): Update to deal with struct block_symbol in
4871 cache slots.
4872 (symbol_cache_lookup): Return a struct block_symbol rather than
4873 a mere symbol.
4874 (symbol_cache_mark_found): Add a BLOCK parameter to fill
4875 appropriately the cache slots. Update callers.
4876 (symbol_cache_dump): Update cache slots handling to the type
4877 change.
4878 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4879 lookup_symbol_aux, lookup_local_symbol,
4880 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4881 lookup_symbol_in_objfile_symtabs,
4882 lookup_symbol_in_objfile_from_linkage_name,
4883 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4884 lookup_symbol_in_static_block, lookup_static_symbol,
4885 lookup_global_symbol):
4886 Return a struct block_symbol rather than a mere symbol. Deal
4887 with struct block_symbol from other lookup functions. Remove
4888 uses of block_found.
4889 (lookup_symbol_in_block): Remove uses of block_found.
4890 (struct global_sym_lookup_data): Turn the RESULT field into a
4891 struct block_symbol.
4892 (lookup_symbol_global_iterator_cb): Update references to the
4893 RESULT field.
4894 (search_symbols): Deal with struct block_symbol from lookup
4895 functions.
4896 * symtab.h (struct block_symbol): New structure.
4897 (block_found): Remove.
4898 (lookup_symbol_in_language, lookup_symbol,
4899 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
4900 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
4901 lookup_global_symbol_from_objfile): Return a struct block_symbol
4902 rather than just a mere symbol. Update comments to remove
4903 mentions of block_found.
4904 * valops.c (find_function_in_inferior,
4905 value_struct_elt_for_reference, value_maybe_namespace_elt,
4906 value_of_this): Deal with struct block_symbol from lookup
4907 functions.
4908 * value.c (value_static_field, value_fn_field): Likewise.
4909
4910 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4911
4912 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
4913 instead of integer.
4914
4915 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4916 Pedro Alves <palves@redhat.com>
4917
4918 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
4919 type or value instead of integer.
4920 (aarch64_linux_insert_watchpoint): Likewise.
4921 (aarch64_linux_remove_watchpoint): Likewise.
4922 * ada-lang.c (ada_op_print_tab): Likewise.
4923 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
4924 (amd64_linux_syscall_record_common): Likewise.
4925 * arch-utils.c (target_byte_order_user): Likewise.
4926 (default_byte_order): Likewise.
4927 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
4928 (arm_linux_get_hwbp_type): Likewise.
4929 (arm_linux_hw_watchpoint_initialize): Likewise.
4930 (arm_linux_insert_watchpoint): Likewise.
4931 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
4932 (arm_linux_syscall_record): Likewise.
4933 * breakpoint.c (update_watchpoint): Likewise.
4934 (breakpoint_here_p): Likewise.
4935 (bpstat_print): Likewise.
4936 (enable_breakpoint_disp): Likewise.
4937 * c-lang.c (c_op_print_tab): Likewise.
4938 * cli/cli-decode.c (add_info_alias): Likewise.
4939 * d-lang.c (d_op_print_tab): Likewise.
4940 * eval.c (evaluate_subexp_standard): Likewise.
4941 * f-exp.y (dot_ops): Likewise.
4942 (f77_keywords): Likewise.
4943 * f-lang.c (f_op_print_tab): Likewise.
4944 * go-lang.c (go_op_print_tab): Likewise.
4945 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
4946 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
4947 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4948 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
4949 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
4950 (struct scm_from_stringn_data): Likewise.
4951 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4952 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4953 (ia64_linux_remove_watchpoint): Likewise.
4954 (ia64_linux_can_use_hw_breakpoint): Likewise.
4955 * infrun.c (print_stop_event): Likewise.
4956 * jv-lang.c (java_op_print_tab): Likewise.
4957 * linux-nat.c (linux_proc_xfer_partial): Likewise.
4958 * linux-nat.h (struct lwp_info): Likewise.
4959 * linux-thread-db.c (enable_thread_event): Likewise.
4960 * m2-lang.c (m2_op_print_tab): Likewise.
4961 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4962 (mi_cmd_stack_list_variables): Likewise.
4963 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
4964 * mi/mi-out.c (mi_table_begin): Likewise.
4965 (mi_table_header): Likewise.
4966 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
4967 (mips_linux_insert_watchpoint): Likewise.
4968 (mips_linux_remove_watchpoint): Likewise.
4969 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
4970 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
4971 (mips_linux_watch_type_to_irw): Likewise.
4972 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4973 (procfs_insert_hw_watchpoint): Likewise.
4974 (procfs_remove_hw_watchpoint): Likewise.
4975 (procfs_hw_watchpoint): Likewise.
4976 (procfs_can_use_hw_breakpoint): Likewise.
4977 (procfs_remove_hw_watchpoint): Likewise.
4978 (procfs_insert_hw_watchpoint): Likewise.
4979 * p-lang.c (pascal_op_print_tab): Likewise.
4980 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
4981 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
4982 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
4983 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4984 (procfs_insert_watchpoint): Likewise.
4985 (procfs_remove_watchpoint): Likewise.
4986 * psymtab.c (recursively_search_psymtabs): Likewise.
4987 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
4988 (m32r_insert_watchpoint): Likewise.
4989 * remote-mips.c (mips_can_use_watchpoint): Likewise.
4990 (mips_insert_watchpoint): Likewise.
4991 (mips_remove_watchpoint): Likewise.
4992 * remote.c (watchpoint_to_Z_packet): Likewise.
4993 (remote_insert_watchpoint): Likewise.
4994 (remote_remove_watchpoint): Likewise.
4995 (remote_check_watch_resources): Likewise.
4996 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4997 (s390_remove_watchpoint): Likewise.
4998 (s390_can_use_hw_breakpoint): Likewise.
4999 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5000 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5001 * target.h (struct target_ops): Likewise.
5002 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5003 * ui-out.c (struct ui_out_hdr): Likewise.
5004 (append_header_to_list): Likewise.
5005 (get_next_header): Likewise.
5006 (verify_field): Likewise.
5007 (ui_out_begin): Likewise.
5008 (ui_out_field_int): Likewise.
5009 (ui_out_field_fmt_int): Likewise.
5010 (ui_out_field_skip): Likewise.
5011 (ui_out_field_string): Likewise.
5012 (ui_out_field_fmt): Likewise.
5013 * varobj.c (new_variable): Likewise.
5014 * x86-nat.c (x86_insert_watchpoint): Likewise.
5015 (x86_remove_watchpoint): Likewise.
5016 (x86_can_use_hw_breakpoint): Likewise.
5017 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5018 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5019 previously anonymous enumeration type..
5020 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5021 value.
5022 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5023 (target_debug_print_enum_bptype): New.
5024 * target-delegates.c: Regenerate.
5025
5026 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5027
5028 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5029 already says and disallow non-stack memory writes in the prologue.
5030
5031 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5032
5033 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5034 reflect how current GCC emits stack overflow checks. Match
5035 both trap and break instructions for backward compatbility.
5036 Disallow other trap and break instructions in the prologue.
5037
5038 2015-07-30 Pedro Alves <palves@redhat.com>
5039
5040 PR threads/18600
5041 * linux-nat.c (wait_lwp): Report to the core when thread group
5042 leader exits.
5043
5044 2015-07-30 Pedro Alves <palves@redhat.com>
5045 Simon Marchi <simon.marchi@ericsson.com>
5046
5047 PR threads/18600
5048 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5049 mark the new thread as resumed. Remove STOPPING parameter.
5050 (wait_lwp): Adjust call to linux_handle_extended_wait.
5051 (linux_nat_filter_event): Adjust call to
5052 linux_handle_extended_wait.
5053 (resume_stopped_resumed_lwps): Add debug output.
5054
5055 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5056
5057 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5058 isize argument.
5059 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5060 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5061 gdbarch_fast_tracepoint_valid_at.
5062 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5063 * gdbarch.h: Regenerate.
5064 * gdbarch.c: Regenerate.
5065 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5066 argument. Do not set it.
5067 * remote.c (remote_download_tracepoint): Adjust call to
5068 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5069 the instruction length.
5070
5071 2015-07-30 Yao Qi <yao.qi@linaro.org>
5072
5073 * arm-tdep.h (enum gdb_regnum): Move it to ...
5074 * arch/arm.h: ... here. New file.
5075 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5076
5077 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5078
5079 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5080 Change its type to int *.
5081 (decode_br): Rename link argument to is_blr. Change its type to
5082 int *.
5083 (decode_cb): Rename op argument to is_cbnz. Change its type to
5084 int *.
5085 (decode_tb): Rename op argument to is_tbnz. Change its type to
5086 int *. Set is_tbnz to either 1 or 0.
5087 (aarch64_analyze_prologue): Change type of is_link to int. Add
5088 new variables is_cbnz and is_tbnz. Adjust call to
5089 aarch64_decode_cb and aarch64_decode_tb.
5090
5091 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5092
5093 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5094 parameter.
5095 (mips_linux_new_thread): Likewise.
5096 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5097
5098 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5099
5100 * top.c: Include "tui/tui.h".
5101 (undo_terminal_modifications_before_exit): New static function.
5102 (quit_force): Use it.
5103
5104 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5105
5106 * target.c (terminal_state): Initialize to terminal_is_ours.
5107
5108 2015-07-29 Yao Qi <yao.qi@linaro.org>
5109
5110 PR record/18691
5111 * dcache.c (dcache_read_memory_partial): Call
5112 raw_memory_xfer_partial.
5113 * target.c (raw_memory_xfer_partial): Make it non-static.
5114 * target.h (raw_memory_xfer_partial): Declare.
5115
5116 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5117
5118 * c-valprint.c (c_val_print_array): Consider addressable memory
5119 unit size.
5120 (c_val_print_ptr): Likewise.
5121 (c_val_print_int): Likewise.
5122 * findvar.c (read_frame_register_value): Likewise.
5123 * valarith.c (find_size_for_pointer_math): Likewise.
5124 (value_ptrdiff): Likewise.
5125 (value_subscripted_rvalue): Likewise.
5126 * valops.c (read_value_memory): Likewise (and rename variables).
5127 (value_assign): Likewise.
5128 (value_repeat): Likewise.
5129 (value_array): Likewise.
5130 (value_slice): Likewise.
5131 * valprint.c (generic_val_print_ptr): Likewise.
5132 (generic_val_print_enum): Likewise.
5133 (generic_val_print_bool): Likewise.
5134 (generic_val_print_int): Likewise.
5135 (generic_val_print_char): Likewise.
5136 (generic_val_print_float): Likewise.
5137 (generic_val_print_decfloat): Likewise.
5138 (generic_val_print_complex): Likewise.
5139 (val_print_scalar_formatted): Likewise.
5140 (val_print_array_elements): Likewise.
5141 * value.c (set_value_parent): Likewise.
5142 (value_contents_copy_raw): Likewise.
5143 (set_internalvar_component): Likewise.
5144 (value_primitive_field): Likewise.
5145 (value_fetch_lazy): Likewise.
5146 * value.h (read_value_memory): Update comment.
5147
5148 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5149
5150 * value.c (get_value_arch): New function.
5151 * value.h (get_value_arch): New declaration.
5152
5153 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5154
5155 * value.c (struct value): Update comments.
5156
5157 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5158
5159 * gdbtypes.c (type_length_units): New function.
5160 * gdbtypes.h (type_length_units): New declaration.
5161 (struct type) <length>: Update comment.
5162
5163 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5164
5165 * valprint.c (generic_val_print): Factor out complex
5166 printing code to ...
5167 (generic_val_print_complex): ... this new function.
5168
5169 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5170
5171 * valprint.c (generic_val_print): Factor out decfloat
5172 printing code to ...
5173 (generic_val_print_decfloat): ... this new function.
5174
5175 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5176
5177 * valprint.c (generic_val_print): Factor out float
5178 printing code to ...
5179 (generic_val_print_float): ... this new function.
5180
5181 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5182
5183 * valprint.c (generic_val_print): Factor out char
5184 printing code to ...
5185 (generic_val_print_char): ... this new function.
5186
5187 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5188
5189 * valprint.c (generic_val_print): Factor out integer
5190 printing code to ...
5191 (generic_val_print_int): ... this new function.
5192
5193 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5194
5195 * valprint.c (generic_val_print): Factor out bool
5196 printing code to ...
5197 (generic_val_print_bool): ... this new function.
5198
5199 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5200
5201 * valprint.c (generic_val_print): Factor out function/method
5202 printing code to ...
5203 (generic_val_print_func): ... this new function.
5204
5205 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5206
5207 * valprint.c (generic_val_print): Factor out flags
5208 printing code to ...
5209 (generic_val_print_flags): ... this new function.
5210
5211 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5212
5213 * valprint.c (generic_val_print): Factor out enum
5214 printing code to ...
5215 (generic_val_print_enum): ... this new function.
5216
5217 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5218
5219 * valprint.c (generic_val_print): Factor out reference
5220 printing code to ...
5221 (generic_val_print_ref): ... this new function.
5222
5223 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5224
5225 * valprint.c (generic_val_print): Factor out memberptr
5226 printing code to ...
5227 (generic_val_print_memberptr): ... this new function.
5228
5229 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5230
5231 * valprint.c (generic_val_print): Factor out pointer
5232 printing code to ...
5233 (generic_val_print_ptr): ... this new function.
5234
5235 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5236
5237 * valprint.c (generic_val_print): Factor out array
5238 printing code to ...
5239 (generic_val_print_array): ... this new function.
5240
5241 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5242
5243 * valprint.c (generic_val_print): Factor out
5244 print_unpacked_pointer code to ...
5245 (print_unpacked_pointer): ... this new function.
5246
5247 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5248
5249 * event-top.c (handle_sigterm): Don't inspect
5250 target_can_async_p. Always set the quit flag and always mark
5251 the async signal handler.
5252
5253 2015-07-27 Yao Qi <yao.qi@linaro.org>
5254
5255 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5256
5257 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5258
5259 * remote.c (read_ptid): Return null_ptid when no thread id
5260 is found.
5261 (remote_current_thread): Add log warning for malformed
5262 qC reply.
5263 (remote_start_remote): Add log warning when current thread
5264 not found.
5265
5266 2015-07-24 Pedro Alves <palves@redhat.com>
5267
5268 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5269 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5270 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5271
5272 2015-07-24 Pedro Alves <palves@redhat.com>
5273
5274 PR gdb/18717
5275 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5276 is resumed, and extend the debug log.
5277
5278 2015-07-24 Pedro Alves <palves@redhat.com>
5279
5280 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5281
5282 2015-07-24 Pedro Alves <palves@redhat.com>
5283
5284 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5285 sys/ptrace.h.
5286 * alpha-linux-nat.c: Likewise.
5287 * amd64-linux-nat.c: Likewise.
5288 * arm-linux-nat.c: Likewise.
5289 * hppa-linux-nat.c: Likewise.
5290 * i386-linux-nat.c: Likewise.
5291 * ia64-linux-nat.c: Likewise.
5292 * linux-fork.c: Likewise.
5293 * linux-nat.c: Likewise.
5294 * m32r-linux-nat.c: Likewise.
5295 * m68klinux-nat.c: Likewise.
5296 * mips-linux-nat.c: Likewise.
5297 * nat/linux-btrace.c: Likewise.
5298 * nat/linux-ptrace.c: Likewise.
5299 * nat/linux-ptrace.h
5300 * nat/mips-linux-watch.c: Likewise.
5301 * nat/x86-linux-dregs.c: Likewise.
5302 * ppc-linux-nat.c: Likewise.
5303 * s390-linux-nat.c: Likewise.
5304 * spu-linux-nat.c: Likewise.
5305 * tilegx-linux-nat.c: Likewise.
5306 * x86-linux-nat.c: Likewise.
5307 * xtensa-linux-nat.c: Likewise.
5308
5309 2015-07-24 Pedro Alves <palves@redhat.com>
5310
5311 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5312 __ptrace_request as first parameter type instead of int.
5313 (PTRACE_TYPE_ARG1): Define.
5314 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5315 that casts first argument to PTRACE_TYPE_ARG1.
5316 * config.in: Regenerate.
5317 * configure: Regenerate.
5318
5319 2015-07-24 Pedro Alves <palves@redhat.com>
5320
5321 * gdb_ptrace.h: Move ...
5322 * nat/gdb_ptrace.h: ... here.
5323 * inf-ptrace.c: Adjust.
5324
5325 2015-07-24 Pedro Alves <palves@redhat.com>
5326
5327 * acinclude.m4: Include ptrace.m4.
5328 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5329 * ptrace.m4: ... to this new file.
5330
5331 2015-07-23 Doug Evans <dje@google.com>
5332
5333 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5334 (load_cu): Handle dummy CUs.
5335 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5336 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5337
5338 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5339
5340 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5341 documentation to say that it returns a list rather than
5342 a FrozenSet.
5343 (linetable_object_methods): Update the docstring of the
5344 "source_line" entry.
5345
5346 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5347
5348 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5349 type to the recursive call instead of the original (maybe
5350 TYPE_CODE_TYPEDEF) type.
5351
5352 2015-07-23 Yao Qi <yao.qi@linaro.org>
5353
5354 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5355 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5356 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5357
5358 2015-07-21 Yao Qi <yao.qi@linaro.org>
5359
5360 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5361 Move it to nat/aarch64-linux-hw-point.c.
5362 (aarch64_linux_child_post_startup_inferior): Update.
5363 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5364 New function.
5365 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5366 Declare it.
5367
5368 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5369
5370 * common/btrace-common.c (btrace_data_append): Change case label.
5371
5372 2015-07-20 Yao Qi <yao.qi@linaro.org>
5373
5374 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5375 Re-indent the code.
5376 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5377 "unsigned long long".
5378
5379 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5380
5381 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5382 to be set for SEC_ALLOC sections too.
5383
5384 2015-07-17 Yao Qi <yao.qi@linaro.org>
5385
5386 * Makefile.in (HFILES_NO_SRCDIR): Add
5387 nat/aarch64-linux-hw-point.h.
5388 (aarch64-linux-hw-point.o): New rule.
5389 * nat/aarch64-linux-hw-point.h: New file.
5390 * nat/aarch64-linux-hw-point.c: New file.
5391 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5392 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5393 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5394 (AARCH64_HWP_ALIGNMENT): Likewise.
5395 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5396 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5397 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5398 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5399 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5400 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5401 (struct aarch64_debug_reg_state): Likewise.
5402 (struct arch_lwp_info): Likewise.
5403 (aarch64_linux_set_debug_regs): Likewise.
5404 (aarch64_notify_debug_reg_change): Remove static.
5405 (aarch64_align_watchpoint): Likewise.
5406 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5407 (aarch64_watchpoint_length): Likewise.
5408 (aarch64_point_encode_ctrl_reg): Likewise
5409 (aarch64_point_is_aligned): Likewise.
5410 (aarch64_dr_state_insert_one_point): Likewise.
5411 (aarch64_dr_state_remove_one_point): Likewise.
5412 (aarch64_handle_breakpoint): Likewise.
5413 (aarch64_handle_aligned_watchpoint): Likewise.
5414 (aarch64_handle_unaligned_watchpoint): Likewise.
5415 (aarch64_handle_watchpoint): Likewise.
5416 * config/aarch64/linux.mh (NAT_FILE): Add
5417 aarch64-linux-hw-point.o.
5418
5419 2015-07-17 Yao Qi <yao.qi@linaro.org>
5420
5421 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5422 state and don't call aarch64_get_debug_reg_state. All callers
5423 update.
5424 (aarch64_linux_insert_hw_breakpoint): Call
5425 aarch64_get_debug_reg_state earlier.
5426 (aarch64_linux_remove_hw_breakpoint): Likewise.
5427 (aarch64_handle_aligned_watchpoint): Add argument state and
5428 don't call aarch64_get_debug_reg_state. All callers update.
5429 (aarch64_handle_unaligned_watchpoint): Likewise.
5430 (aarch64_handle_watchpoint): Add argument state.
5431 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5432 earlier.
5433 (aarch64_linux_remove_watchpoint): Likewise.
5434
5435 2015-07-17 Yao Qi <yao.qi@linaro.org>
5436
5437 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5438 debug_printf.
5439 (aarch64_handle_unaligned_watchpoint): Likewise.
5440
5441 2015-07-17 Yao Qi <yao.qi@linaro.org>
5442
5443 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5444 argument type's type to 'enum target_hw_bp_type'.
5445 (aarch64_dr_state_remove_one_point): Likewise.
5446 (aarch64_handle_breakpoint): Likewise.
5447 (aarch64_linux_insert_hw_breakpoint): Likewise.
5448 (aarch64_linux_remove_hw_breakpoint): Likewise.
5449 (aarch64_handle_aligned_watchpoint): Likewise.
5450
5451 2015-07-17 Yao Qi <yao.qi@linaro.org>
5452
5453 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5454 ptid_get_pid instead of get_thread_id.
5455
5456 2015-07-17 Yao Qi <yao.qi@linaro.org>
5457
5458 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5459 (add_current_inferior_and_thread): Don't initialise ptid.
5460
5461 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5462
5463 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5464 unavailable if invalid.
5465
5466 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5467
5468 Revert the previous 6 commits:
5469 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5470 Move gdb_regex* to common/
5471 Prepare linux_find_memory_regions_full & co. for move
5472 Move linux_find_memory_regions_full & co.
5473 gdbserver build-id attribute generator
5474 Validate symbol file using build-id
5475
5476 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5477 Jan Kratochvil <jan.kratochvil@redhat.com>
5478
5479 Validate symbol file using build-id.
5480 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5481 and 'show validate-build-id'. Add build-id attribute.
5482 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5483 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5484 * solib-frv.c (_initialize_frv_solib): Ditto.
5485 * solib-spu.c (set_spu_solib_ops): Ditto.
5486 * solib-svr4.c: Include rsp-low.h.
5487 (NOTE_GNU_BUILD_ID_NAME): New define.
5488 (svr4_validate): New function.
5489 (svr4_copy_library_list): Duplicate field build_id.
5490 (library_list_start_library): Parse 'build-id' attribute.
5491 (svr4_library_attributes): Add 'build-id' attribute.
5492 (_initialize_svr4_solib): Assign validate value.
5493 * solib-target.c (solib.h): Include.
5494 (_initialize_solib_target): Assign validate value.
5495 * solib.c (validate_build_id, show_validate_build_id): New.
5496 (solib_map_sections): Use ops->validate.
5497 (clear_so): Free build_id.
5498 (default_solib_validate): New function.
5499 (_initialize_solib): Add "validate-build-id".
5500 * solib.h (default_solib_validate): New declaration.
5501 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5502 (target_so_ops): New field 'validate'.
5503
5504 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5505 Jan Kratochvil <jan.kratochvil@redhat.com>
5506
5507 gdbserver build-id attribute generator.
5508 * features/library-list-svr4.dtd (library-list-svr4): New
5509 'build-id' attribute.
5510
5511 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5512 Jan Kratochvil <jan.kratochvil@redhat.com>
5513
5514 Move linux_find_memory_regions_full & co.
5515 * linux-tdep.c (nat/linux-maps.h): Include.
5516 (gdb_regex.h): Remove the include.
5517 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5518 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5519 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5520 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5521 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5522 and target/target.h.
5523 (struct smaps_vmflags, read_mapping, decode_vmflags)
5524 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5525 (linux_find_memory_regions_full): Move from linux-tdep.c.
5526 * nat/linux-maps.h (read_mapping): New declaration.
5527 (linux_find_memory_region_ftype, enum filterflags): Moved from
5528 linux-tdep.c.
5529 (linux_find_memory_regions_full): New declaration.
5530 * target.c (target/target-utils.h): Include.
5531 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5532 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5533 definitions to target/target-utils.c.
5534 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5535 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5536 from target.c.
5537 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5538 (read_alloc): New declaration.
5539 (read_stralloc_func_ftype): New typedef.
5540 (read_stralloc): New declaration.
5541 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5542
5543 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5544 Jan Kratochvil <jan.kratochvil@redhat.com>
5545
5546 Prepare linux_find_memory_regions_full & co. for move.
5547 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5548 (linux_find_memory_regions_full): Change signature and prepare
5549 for moving to linux-maps.
5550 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5551 (linux_find_memory_regions_thunk): New.
5552 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5553 (linux_find_memory_regions_gdb): New.
5554 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5555 (linux_make_mappings_corefile_notes): Use
5556 linux_find_memory_regions_gdb.
5557 * target.c (read_alloc_pread_ftype): New typedef.
5558 (target_fileio_read_alloc_1_pread): New function.
5559 (read_alloc): Refactor from target_fileio_read_alloc_1.
5560 (read_stralloc_func_ftype): New typedef.
5561 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5562 (read_stralloc): Refactored from target_fileio_read_stralloc.
5563 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5564
5565 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5566
5567 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5568 common/gdb_regex.h.
5569 (COMMON_OBS): Add gdb_regex.o.
5570 (gdb_regex.o): New.
5571 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5572 --without-included-regex and USE_INCLUDED_REGEX.
5573 * common/gdb_regex.c: New file from utils.c functions.
5574 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5575 file wrapping define name.
5576 * configure: Rebuilt.
5577 * configure.ac (gdb_use_included_regex, --without-included-regex)
5578 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5579 * gdb_regex.h: Move it to common/gdb_regex.h.
5580 * utils.c: Remove include gdb_regex.h.
5581 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5582 (compile_rx_or_error): Move them to common/gdb_regex.c.
5583
5584 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5585 Jan Kratochvil <jan.kratochvil@redhat.com>
5586
5587 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5588 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5589 common/target-utils.h.
5590 (COMMON_OBS): Add target-utils.o.
5591 (linux-maps.o, target-utils.o): New.
5592 * target/target-utils.c: New file.
5593 * target/target-utils.h: New file.
5594 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5595 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5596 * nat/linux-maps.c: New file.
5597 * nat/linux-maps.h: New file.
5598
5599 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5600 Pedro Alves <palves@redhat.com>
5601
5602 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5603 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5604 (perf_event_read_bts): Change the type of SIZE and READ.
5605 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5606 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5607 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5608 mmap page.
5609 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5610 buffer size to UINT_MAX.
5611 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5612 DATA_TAIL.
5613 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5614 <last_head>: Change type.
5615 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5616 * common/btrace-common.c (btrace_data_append): Change the type of
5617 SIZE.
5618 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5619 check.
5620
5621 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5622
5623 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5624 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5625 with check_typedef.
5626 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5627 (ada_array_length): Likewise.
5628 (find_parallel_type_by_descriptive_type): Likewise.
5629 (ada_check_typedef): Likewise.
5630 * arm-tdep.c (arm_return_in_memory): Likewise.
5631 * ax-gdb.c (gen_trace_static_fields): Likewise.
5632 (gen_struct_ref_recursive): Likewise.
5633 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5634 (variable: block COLONCOLON name): Likewise.
5635 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5636 * c-lang.c (classify_type): Likewise.
5637 * c-typeprint.c (c_print_type): Likewise.
5638 (c_print_typedef): Likewise.
5639 (c_type_print_base): Likewise.
5640 * c-valprint.c (c_val_print): Likewise.
5641 * compile/compile-c-types.c (convert_type): Likewise.
5642 * compile/compile-object-load.c (get_out_value_type): Likewise.
5643 * completer.c (add_struct_fields): Likewise.
5644 (expression_completer): Likewise.
5645 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5646 (cp_lookup_nested_symbol_1): Likewise.
5647 (cp_lookup_nested_symbol): Likewise.
5648 * cp-valprint.c (cp_print_value_fields): Likewise.
5649 (cp_print_static_field): Likewise.
5650 * d-valprint.c (d_val_print): Likewise.
5651 * eval.c (evaluate_subexp_standard): Likewise.
5652 (evaluate_subexp_for_sizeof): Likewise.
5653 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5654 * f-typeprint.c (f_type_print_base): Likewise.
5655 * f-valprint.c (f_val_print): Likewise.
5656 * gdbtypes.c (get_discrete_bounds): Likewise.
5657 (create_array_type_with_stride): Likewise.
5658 (type_name_no_tag_or_error): Likewise.
5659 (lookup_struct_elt_type): Likewise.
5660 (get_unsigned_type_max): Likewise.
5661 (internal_type_vptr_fieldno): Likewise.
5662 (set_type_vptr_fieldno): Likewise.
5663 (internal_type_vptr_basetype): Likewise.
5664 (set_type_vptr_basetype): Likewise.
5665 (get_vptr_fieldno): Likewise.
5666 (is_integral_type): Likewise.
5667 (is_scalar_type): Likewise.
5668 (is_scalar_type_recursive): Likewise.
5669 (distance_to_ancestor): Likewise.
5670 (is_unique_ancestor_worker): Likewise.
5671 (check_types_equal): Likewise.
5672 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5673
5674 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5675
5676 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5677 also test for language_d.
5678 (dwarf2_compute_name): Likewise.
5679 (read_func_scope): Likewise.
5680 (read_structure_type): Likewise.
5681 (new_symbol_full): Likewise.
5682 (determine_prefix): Likewise.
5683 (read_import_statement): Use dot as the separator for language_d.
5684 (typename_concat): Likewise, but don't prefix the D main function.
5685
5686 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5687
5688 * nat/linux-namespaces.c (setns): Rename from this ...
5689 (do_setns): ... to this. Support calling setns if it exists.
5690 (mnsh_handle_setns): Call do_setns.
5691
5692 2015-07-13 Yao Qi <yao.qi@linaro.org>
5693
5694 * exec.c (exec_file_attach): Add period at the end of error
5695 message.
5696
5697 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5698
5699 * tui/tui-win.c (window_name_completer): New function.
5700 (focus_completer): Call window_name_completer. All old content
5701 moved into window_name_completer.
5702 (winheight_completer): New function.
5703 (_initialize_tui_win): Rename variable. Add completer to
5704 winheight command. Update doc string on winheight.
5705
5706 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5707
5708 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5709 all nios2 mach variants.
5710
5711 2015-07-10 Kevin Buettner <kevinb@redhat.com>
5712
5713 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5714 of target_read_memory.
5715
5716 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5717
5718 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5719 string copy.
5720 (parse_scrolling_args): Likewise.
5721
5722 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5723
5724 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5725 names in this function.
5726
5727 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5728
5729 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5730 (CMD_NAME): Likewise.
5731 (DATA_NAME): Likewise.
5732 (DISASSEM_NAME): Likewise.
5733 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5734 (tui_set_win_height): Likewise.
5735 (parse_scrolling_args): Likewise.
5736
5737 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5738
5739 * record-btrace.c (record_btrace_goto_begin)
5740 (record_btrace_goto_end, record_btrace_goto): Move call to
5741 print_stack_frame ...
5742 (record_btrace_set_replay): ... here. Set stop_pc.
5743 * record-full.c (record_full_goto_entry): Set stop_pc.
5744
5745 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5746
5747 * NEWS: Mention support for tracepoints on aarch64-linux.
5748
5749 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5750
5751 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5752 function. Return 1.
5753 (the_low_target): Install it.
5754
5755 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5756
5757 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5758 * gdb.trace/collection.exp: Likewise.
5759 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5760 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5761 * gdb.trace/report.exp: Likewise.
5762 * gdb.trace/trace-break.exp: Likewise.
5763 * gdb.trace/unavailable.exp: Likewise.
5764 * gdb.trace/while-dyn.exp: Likewise.
5765
5766 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5767
5768 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5769 (aarch64_gen_return_address): New function.
5770 (aarch64_gdbarch_init): Hook it.
5771
5772 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5773
5774 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5775 swallow NOT_AVAILABLE_ERROR.
5776 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5777 available_p is not set.
5778 (aarch64_stub_frame_unwind_stop_reason): New function.
5779 (aarch64_stub_unwind): Install it.
5780
5781 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5782
5783 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5784 field.
5785 (aarch64_make_prologue_cache_1): New function, factored out from
5786 aarch64_make_prologue_cache. Do not allocate cache. Set
5787 available_p.
5788 (aarch64_make_prologue_cache): Reimplement wrapping
5789 aarch64_make_prologue_cache_1, and swallowing
5790 NOT_AVAILABLE_ERROR.
5791 (aarch64_prologue_frame_unwind_stop_reason): New function.
5792 Return UNWIND_UNAVAILABLE if available_p is not set.
5793 (aarch64_prologue_unwind): Install it.
5794 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5795 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5796 frame_id_build_unavailable_stack if available_p is not set.
5797
5798 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5799
5800 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5801 fields.
5802 (aarch64_scan_prologue): Set prev_pc.
5803 (aarch64_make_prologue_cache): Set func.
5804 (aarch64_make_stub_cache): Set prev_pc.
5805 (aarch64_prologue_this_id): Remove local variables id, pc and
5806 func. Read prev_pc and func from cache.
5807 (aarch64_stub_this_id): Read prev_pc from cache.
5808
5809 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5810
5811 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5812 argument this_cache. Remove unused local variables reg and
5813 unwound_fp. Return early if this_cache is already set. Set
5814 this_cache.
5815 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5816
5817 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5818
5819 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5820 New argument this_cache. Return early if this_cache is already
5821 set. Set this_cache.
5822 (aarch64_prologue_this_id): Update call to
5823 aarch64_make_prologue_cache.
5824 (aarch64_prologue_prev_register): Likewise.
5825 (aarch64_normal_frame_base): Likewise.
5826
5827 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5828
5829 * c-valprint.c (c_val_print): Factor out memberptr printing code
5830 from c_val_print to ...
5831 (c_val_print_memberptr): ... this new function.
5832
5833 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5834
5835 * c-valprint.c (c_val_print): Factor out int printing code to ...
5836 (c_val_print_int): ... this new function.
5837
5838 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5839
5840 * c-valprint.c (c_val_print): Factor out struct and union
5841 printing code to ...
5842 (c_val_print_struct): ... this new function ...
5843 (c_val_print_union): ... and this new function.
5844
5845 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5846
5847 * c-valprint.c (c_val_print): Factor out pointer printing code
5848 to ...
5849 (c_val_print_ptr): ... this new function.
5850
5851 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5852
5853 * c-valprint.c (c_valprint): Factor our array printing code from
5854 c_val_print to ...
5855 (c_val_print_array): ... this new function.
5856
5857 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5858
5859 * c-valprint.c (c_val_print): Factor out pointer printing code
5860 to ...
5861 (print_unpacked_pointer): ... this new function.
5862
5863 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5864
5865 * c-valprint.c (c_val_print): Remove an assignment to i and move
5866 its declaration.
5867
5868 2015-07-09 Yao Qi <yao.qi@linaro.org>
5869
5870 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5871 argument ptid. Update comments. Caller update.
5872
5873 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5874
5875 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5876 mnt packets.
5877
5878 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5879
5880 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5881
5882 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5883
5884 * progspace.c (delete_program_space): Add missing spaces.
5885
5886 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5887
5888 * inferior.c (delete_inferior_1): Rename to ...
5889 (delete_inferior): ..., remove 'silent' parameter, delete
5890 program space when unused and remove call to prune_program_spaces.
5891 Remove the old, unused, delete_inferior.
5892 (delete_inferior_silent): Remove.
5893 (prune_inferiors): Change call from delete_inferior_1 to
5894 delete_inferior and remove 'silent' parameter. Remove call to
5895 prune_program_spaces.
5896 (remove_inferior_command): Idem.
5897 * inferior.h (delete_inferior_1): Rename to...
5898 (delete_inferior): ..., remove 'silent' parameter and remove the
5899 original delete_inferior.
5900 (delete_inferior_silent): Remove.
5901 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
5902 delete_inferior_1 to delete_inferior and remove 'silent'
5903 parameter.
5904 * progspace.c (prune_program_spaces): Remove.
5905 (pspace_empty_p): Rename to...
5906 (program_space_empty_p): ... and make non-static.
5907 (delete_program_space): New.
5908 * progspace.h (prune_program_spaces): Remove declaration.
5909 (program_space_empty_p): New declaration.
5910 (delete_program_space): New declaration.
5911 * monitor.c (monitor_close): Replace call to
5912 delete_thread_silent and delete_inferior_silent with
5913 discard_all_inferiors.
5914
5915 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
5916
5917 * defs.h (deprecated_register_changed_hook): Remove prototype.
5918 * interps.c (clear_iterpreter_hooks): Remove reference to
5919 deprecated_register_changed_hook.
5920 * top.c (deprecated_register_changed_hook): Remove prototype.
5921 * valops.c (value_assign): Remove reference to
5922 deprecated_register_changed_hook.
5923 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
5924 Add comment documenting the function.
5925 (tui_register_changed_observer): Define.
5926 (tui_install_hooks): Remove reference to
5927 deprecated_register_changed_hook. Set
5928 tui_register_changed_observer.
5929 (tui_remove_hooks): Remove reference to
5930 deprecated_register_changed_hook. Unset
5931 tui_register_changed_observer.
5932
5933 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5934
5935 PR compile/18484
5936 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
5937
5938 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
5939
5940 PR exp/18617
5941 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
5942
5943 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5944
5945 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
5946
5947 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5948
5949 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
5950 Use safe_strerror() instead of strerror().
5951
5952 2015-07-07 Yao Qi <yao.qi@linaro.org>
5953
5954 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
5955 * features/arm-with-m-fpa-layout.c: Regenerated.
5956 * features/arm-with-m-vfp-d16.xml: Likewise.
5957 * features/arm-with-m-vfp-d16.c: Regenerated.
5958 * features/arm-with-m.xml: Likewise.
5959 * features/arm-with-m.c: Regenerated.
5960 * features/arm-with-neon.xml: Likewise.
5961 * features/arm-with-neon.c: Regenerated.
5962 * features/arm-with-vfpv2.xml: Likewise.
5963 * features/arm-with-vfpv2.c: Regenerated.
5964 * features/arm-with-vfpv3.xml: Likewise.
5965 * features/arm-with-vfpv3.c: Regenerated.
5966
5967 2015-07-07 Yao Qi <yao.qi@linaro.org>
5968
5969 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
5970 arm-linux-nat.c.
5971 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
5972 elf/external.h.
5973 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
5974 if target is 32-bit.
5975 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
5976 if target is 32-bit.
5977 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
5978 if target is 32-bit.
5979 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
5980 if target is 32-bit.
5981 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
5982 (aarch64_linux_read_description): Return the right target
5983 description.
5984 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
5985 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5986 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
5987 arm-linux-tdep.o.
5988
5989 2015-07-07 Yao Qi <yao.qi@linaro.org>
5990
5991 * aarch32-linux-nat.c: New file.
5992 * aarch32-linux-nat.h: New file.
5993 * arm-linux-nat.c: Include aarch32-linux-nat.h.
5994 (fetch_regs): Move code to aarch32-linux-nat.c. Call
5995 aarch32_gp_regcache_supply.
5996 (store_regs): Move code to aarch32-linux-nat.c. Call
5997 aarch32_gp_regcache_collect.
5998 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
5999 aarch32_vfp_regcache_supply.
6000 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6001 aarch32_vfp_regcache_collect.
6002 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6003
6004 2015-07-07 Yao Qi <yao.qi@linaro.org>
6005
6006 * arm-linux-nat.c (store_fpregister): Remove.
6007 (store_register): Likewise.
6008 (fetch_fpregister): Likewise.
6009 (fetch_register): Likewise.
6010 (arm_linux_store_inferior_registers): Call store_regs and
6011 store_fpregs instead.
6012 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6013 fetch_regs instead.
6014
6015 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6016
6017 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6018 and focus commands.
6019
6020 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6021
6022 * NEWS: Create a new section for the next release branch.
6023 Rename the section of the current branch, now that it has
6024 been cut.
6025
6026 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6027
6028 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6029 * version.in: Bump version to 7.10.50.DATE-cvs.
6030
6031 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6032
6033 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6034 breakpoints in a special way.
6035 (remove_breakpoint): Likewise.
6036 (mark_breakpoints_out): Likewise.
6037
6038 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6039
6040 * doc/gdb.texinfo (TUI): Add comma after @xref.
6041
6042 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6043
6044 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6045 instead of casting the structure type.
6046
6047 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6048
6049 * valops.c (search_struct_field): Remove OFFSET parameter.
6050 (value_cast_structs): Adjust calls to search_struct_field.
6051 (value_struct_elt): Same.
6052 (find_overload_match): Same.
6053
6054 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6055
6056 * value.c (value_fetch_lazy): Update comment, change return
6057 value to void.
6058 * value.h (value_fetch_lazy): Change return value to void.
6059
6060 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6061
6062 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6063 (tui_win_name): Make parameter and result const.
6064 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6065
6066 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6067
6068 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6069 use printf_unfiltered.
6070 (set_mpx_cmd): Add missing trailing space to command string
6071 literal.
6072 (_initialize_i386_tdep): Give the "mpx" prefix command its
6073 correct name.
6074
6075 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6076
6077 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6078 (enum rx_frame_type): New.
6079 (struct rx_prologue): Add new field `frame_type'.
6080 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6081 parameter in the prologue struct. Add code for recording
6082 locations of PC and PSW for fast interrupt and exception frames.
6083 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6084 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6085 (rx_frame_type): New function.
6086 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6087 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6088 `this_cache'.
6089 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6090 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6091 RX_FRAME_TYPE_FAST_INTERRUPT.
6092 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6093 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6094 (rx_frame_unwind): Use rx_frame_sniffer instead of
6095 default_frame_sniffer.
6096 (rx_frame_unwind): New unwinder.
6097 (rx_gdbarch_init): Register new unwinder.
6098
6099 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6100
6101 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6102 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6103 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6104 and RX_FPSW_REGNUM.
6105 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6106
6107 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6108
6109 Fix GCC false warning.
6110 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6111
6112 2015-07-02 Yao Qi <yao.qi@linaro.org>
6113
6114 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6115 typo in the debugging message.
6116
6117 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6118
6119 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6120 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6121 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6122 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6123 (btrace_maint_clear): New.
6124 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6125 (pt_print_packet, btrace_maint_decode_pt)
6126 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6127 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6128 (maint_btrace_packet_history_cmd)
6129 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6130 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6131 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6132 (maint_info_btrace_cmd, _initialize_btrace): New.
6133 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6134 (btrace_maint_packet_history, btrace_maint_info): New.
6135 (btrace_thread_info) <maint>: New.
6136 * NEWS: Announce it.
6137
6138 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6139
6140 * btrace.c (btrace_fetch): Append the new trace data.
6141 (btrace_clear): Clear the stored trace data.
6142 * btrace.h (btrace_thread_info) <data>: New.
6143 * common/btrace-common.h (btrace_data_clear)
6144 (btrace_data_append): New.
6145 * common/btrace-common.c (btrace_data_clear)
6146 (btrace_data_append): New.
6147
6148 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6149
6150 * nat/linux-btrace.c (linux_enable_bts): Check for
6151 PERF_ATTR_SIZE_VER5.
6152 Check for data_offset and data_size fields. Use them.
6153
6154 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6155
6156 * NEWS: Announce new commands "record btrace pt" and "record pt".
6157 Announce new options "set|show record btrace pt buffer-size".
6158 * btrace.c: Include "rsp-low.h".
6159 Include "inttypes.h".
6160 (btrace_add_pc): Add forward declaration.
6161 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6162 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6163 (btrace_compute_ftrace_pt): New.
6164 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6165 (check_xml_btrace_version): Update version check.
6166 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6167 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6168 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6169 (btrace_pt_children): New.
6170 (btrace_children): Add support for "pt".
6171 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6172 (btrace_conf_children): Add support for "pt".
6173 * btrace.h: Include "intel-pt.h".
6174 (btrace_pt_error): New.
6175 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6176 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6177 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6178 (struct btrace_config_pt): New.
6179 (struct btrace_config)<pt>: New.
6180 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6181 (struct btrace_data)<pt>: New.
6182 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6183 (pt): New.
6184 * features/btrace.dtd (btrace)<pt>: New.
6185 (pt, pt-config, cpu): New.
6186 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6187 (perf_event_pt_event_type, kernel_supports_pt)
6188 (linux_supports_pt): New.
6189 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6190 (linux_enable_bts): Free tinfo on error.
6191 (linux_enable_pt): New.
6192 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6193 (linux_disable_pt): New.
6194 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6195 (linux_fill_btrace_pt_config, linux_read_pt): New.
6196 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6197 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6198 (struct btrace_target_info)<pt>: New.
6199 * record-btrace.c (set_record_btrace_pt_cmdlist)
6200 (show_record_btrace_pt_cmdlist): New.
6201 (record_btrace_print_pt_conf): New.
6202 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6203 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6204 (cmd_record_btrace_pt_start): New.
6205 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6206 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6207 (_initialize_record_btrace): Add new commands.
6208 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6209 (remote_protocol_features): Add "Qbtrace:pt".
6210 Add "Qbtrace-conf:pt:size".
6211 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6212 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6213 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6214 (_initialize_remote): Add new commands.
6215
6216 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6217
6218 * configure.ac: check for libipt
6219 * configure: Regenerate.
6220 * config.in: Regenerate.
6221 * Makefile.in (LIBIPT): New.
6222 (CLIBS): Add $LIBIPT.
6223 * NEWS: document new configure options
6224
6225 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6226
6227 * compile/compile-object-load.c (compile_object_load): Replace debug
6228 message "lookup undefined ELF symbol" by 3 more specific messages.
6229
6230 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6231
6232 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6233 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6234 (rl78_gdbarch_init): Initialize rl78_psw_type.
6235
6236 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6237
6238 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6239 Update commentary. Always refresh the registers when frame
6240 information has changed.
6241 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6242 Change return type to int. Return 1 if frame information has
6243 changed, 0 otherwise.
6244 (tui_before_prompt): Update commentary.
6245 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6246 int.
6247
6248 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6249
6250 PR tui/13378
6251 * frame.c (select_frame): Remove reference to
6252 deprecated_selected_frame_level_changed_hook.
6253 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6254 declaration.
6255 * stack.c (deprecated_selected_frame_level_changed_hook):
6256 Likewise.
6257 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6258 Rename to ...
6259 (tui_refresh_frame_and_register_information): ... this. Bail
6260 out if there is no stack. Don't update register information
6261 unless registers_too_p is true.
6262 (tui_print_frame_info_listing_hook): Rename to ...
6263 (tui_dummy_print_frame_info_listing_hook): ... this.
6264 (tui_before_prompt): New function.
6265 (tui_normal_stop): New function.
6266 (tui_before_prompt_observer): New observer.
6267 (tui_normal_stop_observer): New observer.
6268 (tui_install_hooks): Set
6269 deprecated_print_frame_info_listing_hook to
6270 tui_dummy_print_frame_info_listing_hook. Register
6271 tui_before_prompt_observer to call tui_before_prompt and
6272 tui_normal_stop_observer to call tui_normal_stop. Remove
6273 reference to deprecated_selected_frame_level_changed_hook.
6274 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6275 and tui_normal_stop_observer. Remove reference to
6276 deprecated_selected_frame_level_changed_hook.
6277
6278 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6279
6280 PR tui/13378
6281 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6282 return an int instead of void. Return whether the locator
6283 window has changed.
6284 (tui_show_frame_info): If the locator info has not changed, then
6285 bail out early to avoid refreshing the windows.
6286
6287 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6288
6289 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6290 LOCATOR_WIN to tui_alloc_content.
6291
6292 2015-06-30 Yao Qi <yao.qi@linaro.org>
6293
6294 PR tdep/18605
6295 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6296 instructions.
6297
6298 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6299
6300 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6301 (rx_dwarf_reg_to_regnum): New function.
6302 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6303 unwinding.
6304
6305 2015-06-29 Pedro Alves <palves@redhat.com>
6306
6307 PR threads/18127
6308 * infcall.c (run_inferior_call): On infcall success, if the thread
6309 was marked stopped before, reset it back to stopped.
6310 * infrun.c (resume): Don't suppress the set_running calls when
6311 doing an infcall.
6312 (normal_stop): Only discard the finish_thread_state cleanup if the
6313 infcall succeeded.
6314
6315 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6316
6317 * MAINTAINERS (Write After Approval): Update my email address.
6318
6319 2015-06-26 Keith Seitz <keiths@redhat.com>
6320 Doug Evans <dje@google.com>
6321
6322 PR 16253
6323 * block.c (block_lookup_symbol): For non-function blocks,
6324 continue to search for a symbol with an exact domain match
6325 Otherwise, return any previously found "best domain" symbol.
6326 (block_lookup_symbol_primary): Likewise.
6327
6328 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6329
6330 * NEWS: Mention the new option "history remove-duplicates".
6331 * top.c (history_remove_duplicates): New static variable.
6332 (show_history_remove_duplicates): New static function.
6333 (gdb_add_history): Conditionally remove duplicate history
6334 entries.
6335 (init_main): Add "history remove-duplicates" option.
6336
6337 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6338
6339 * tui/tui-win.c (focus_completer): New static function.
6340 (_initialize_tui_win): Set the completion function of the
6341 "focus" command to focus_completer.
6342
6343 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6344
6345 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6346 and language_asm..
6347 * symtab.c (find_function_start_sal): Likewise.
6348
6349 2015-06-25 Gary Benson <gbenson@redhat.com>
6350
6351 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6352 it is the empty string after trailing slashes have been stripped.
6353
6354 2015-06-25 Gary Benson <gbenson@redhat.com>
6355
6356 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6357 * infrun.c (follow_exec): Likewise.
6358 * remote.c (remote_filesystem_is_local): Likewise.
6359 * solib.c (solib_find_1): Likewise.
6360
6361 2015-06-24 Keith Seitz <keiths@redhat.com>
6362
6363 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6364 return value from lrealpath.
6365
6366 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6367
6368 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6369
6370 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6371
6372 * remote-sim.c: Include gdb_bfd.h.
6373 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6374 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6375
6376 2015-06-24 Yao Qi <yao.qi@linaro.org>
6377
6378 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6379 set_gdbarch_get_siginfo_type.
6380 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6381 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6382 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6383 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6384 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6385 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6386 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6387 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6388 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6389 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6390
6391 2015-06-24 Gary Benson <gbenson@redhat.com>
6392
6393 * common/buffer.c (stdint.h): Do not include.
6394 * common/print-utils.c (stdint.h): Likewise.
6395 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6396 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6397 * ft32-tdep.c (gdb_assert.h): Likewise.
6398 * guile/scm-utils.c (stdint.h): Likewise.
6399 * i386-linux-tdep.c (stdint.h): Likewise.
6400 * i386-tdep.c (stdint.h): Likewise.
6401 * nat/linux-btrace.c (stdint.h): Likewise.
6402 * nat/linux-btrace.h (stdint.h): Likewise.
6403 * nat/linux-ptrace.c (stdint.h): Likewise.
6404 * nat/mips-linux-watch.h (stdint.h): Likewise.
6405 * ppc-linux-nat.c (stdint.h): Likewise.
6406 * python/python-internal.h (stdint.h): Likewise.
6407 * stub-termcap.c (stdlib.h): Likewise.
6408 * target/target.h (stdint.h): Likewise.
6409 * xtensa-linux-nat.c (stdint.h): Likewise.
6410
6411 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6412
6413 * top.c (init_history): Look at errno after calling strtol to
6414 properly map large GDBHISTSIZE values to infinity.
6415
6416 2015-06-23 Doug Evans <dje@google.com>
6417
6418 * inferior.h (struct inferior_suspend_state): Delete, unused.
6419 All references deleted.
6420
6421 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6422
6423 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6424 (microblaze_push_dummy_call): Likewise.
6425 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6426 and set_gdbarch_push_dummy_call.
6427
6428 2015-06-23 Yao Qi <yao.qi@linaro.org>
6429
6430 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6431 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6432 (amd64_linux_store_inferior_registers): Likewise.
6433 * arm-linux-nat.c (fetch_fpregister): Likewise.
6434 (fetch_fpregs, store_fpregister): Likewise.
6435 (store_fpregister, store_fpregs): Likewise.
6436 (fetch_register, fetch_regs): Likewise.
6437 (store_register, store_regs): Likewise.
6438 (fetch_vfp_regs, store_vfp_regs): Likewise.
6439 (arm_linux_read_description): Check have_ptrace_getregset is
6440 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6441 or TRIBOOL_FALSE.
6442 * i386-linux-nat.c (fetch_xstateregs): Check
6443 have_ptrace_getregset is not TRIBOOL_TRUE.
6444 (store_xstateregs): Likewise.
6445 * linux-nat.c (have_ptrace_getregset): Change its type to
6446 enum tribool.
6447 * linux-nat.h (tribool): New enum.
6448 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6449 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6450
6451 2015-06-19 Doug Evans <dje@google.com>
6452
6453 * NEWS: Mention Sun's version of stabs is no longer supported.
6454 * elfread.c (free_elfinfo): Delete. All uses updated.
6455 (elfstab_offset_sections): Delete. All uses updated.
6456 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6457 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6458 All uses updated.
6459 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6460 All callers updated.
6461
6462 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6463
6464 * common/rsp-low.c (needs_escaping): New.
6465 (remote_escape_output): Add unit_size parameter. Refactor to
6466 support multi-byte addressable units. Rename parameters.
6467 * common/rsp-low.h (remote_escape_output): Add unit_size
6468 parameter and rename others. Update doc.
6469 * remote.c (align_for_efficient_write): New.
6470 (remote_write_bytes_aux): Add unit_size parameter and use it.
6471 Rename some variables. Update doc.
6472 (remote_xfer_partial): Get unit size and use it.
6473 (remote_read_bytes_1): Add unit_size parameter and use it.
6474 Rename some variables. Update doc.
6475 (remote_write_bytes): Same.
6476 (remote_xfer_live_readonly_partial): Same.
6477 (remote_read_bytes): Same.
6478 (remote_flash_write): Update call to remote_write_bytes_aux.
6479 (remote_write_qxfer): Update call to remote_escape_output.
6480 (remote_search_memory): Same.
6481 (remote_hostio_pwrite): Same.
6482
6483 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6484
6485 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6486 locations as inserted.
6487 Update and expand comment about permanent locations.
6488 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6489 Move comment to add_location_to_breakpoint.
6490 (update_global_location_list): Don't error out if a permanent
6491 breakpoint is not marked inserted.
6492 Don't error out if a non-permanent breakpoint location is inserted on
6493 top of a permanent breakpoint.
6494
6495 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6496
6497 * breakpoint.c (make_breakpoint_permanent): Remove unused
6498 function.
6499 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6500
6501 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6502
6503 PR gdb/16999
6504 * NEWS: Mention new GDBHISTSIZE behavior.
6505 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6506 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6507
6508 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6509
6510 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6511 * top.c (init_history): Read from GDBHISTSIZE instead of
6512 HISTSIZE.
6513 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6514
6515 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6516
6517 * top.c (gdb_safe_append_history): Do not call
6518 history_truncate_file if the history is not stifled.
6519
6520 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6521
6522 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6523 * syscalls/s390x-linux.xml: Likewise.
6524
6525 2015-06-16 Michael Eager <eager@eagercon.com>
6526
6527 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6528
6529 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6530
6531 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6532 target_terminal_ours_for_output() before calling
6533 tui_show_frame_info(), and restore the original terminal
6534 settings afterwards.
6535
6536 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6537
6538 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6539
6540 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6541
6542 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6543 memory unit size.
6544 (mi_cmd_data_write_memory_bytes): Same.
6545
6546 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6547
6548 * corefile.c (write_memory): Update doc.
6549 * gdbcore.h (write_memory): Same.
6550
6551 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6552
6553 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6554 (dump_mapping_p): Use it for parameter filterflags.
6555 (linux_find_memory_regions_full): Use it for variable filterflags.
6556
6557 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6558 Jan Kratochvil <jan.kratochvil@redhat.com>
6559
6560 Merge multiple hex conversions.
6561 * monitor.c: Include rsp-low.h.
6562 (fromhex): Remove definition.
6563
6564 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6565 Jan Kratochvil <jan.kratochvil@redhat.com>
6566
6567 Move utility functions to common/.
6568 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6569 Move defs to common/common-utils.c.
6570 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6571 (skip_to_space_const): Move decls to common/common-utils.h.
6572 * common/common-defs.h: Move include of common-types.h before
6573 common-utils.h.
6574 * common/common-utils.c: Include host-defs.h and ctype.h.
6575 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6576 from utils.c.
6577 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6578 cli/cli-utils.c.
6579 * common/common-utils.h (strtoulst): Move decl from utils.h.
6580 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6581 Move from cli/cli-utils.h.
6582 * common/host-defs.h: Include limits.h.
6583 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6584 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6585 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6586 common/common-utils.h.
6587 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6588 (strtoulst): Move to common/common-utils.c.
6589 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6590
6591 2015-06-15 Yao Qi <yao.qi@linaro.org>
6592
6593 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6594
6595 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6596
6597 * build-id.c: Don't include elf-bfd.h.
6598 (build_id_bfd_get): Use bfd_build_id.
6599 (build_id_verify): Ditto.
6600 * build-id.h: Ditto.
6601 (find_separate_debug_file_by_buildid): Ditto.
6602 * python/py-objfile.c: Don't include elf-bfd.h.
6603 (objfpy_get_build_id) Use bfd_build_id.
6604 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6605 * coffread.c: Include build-id.h.
6606 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6607
6608 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6609
6610 * windows-nat.c (do_windows_fetch_inferior_registers)
6611 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6612 conditional with __CYGWIN__.
6613
6614 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6615
6616 * completer.c: Add arch-utils.h include.
6617 (enum reg_completer_targets): New enum.
6618 (reg_or_group_completer_1): New function containing old
6619 reg_or_group_completer, add and use new parameter to control what
6620 is completed on. Use get_current_arch rather than architecture of
6621 currently selected frame.
6622 (reg_or_group_completer): Call new reg_or_group_completer_1.
6623 (reggroup_completer): Call new reg_or_group_completer_1.
6624 * completer.h (reggroup_completer): Add declaration.
6625 * tui/tui-regs.c: Add 'completer.h' include.
6626 (tui_reg_next_command): Renamed to...
6627 (tui_reg_next): ...this. Adjust parameters and return rather than
6628 display new group.
6629 (tui_reg_prev_command): Renamed to...
6630 (tui_reg_prev): ...this. Adjust parameters and return rather than
6631 display new group.
6632 (tui_reg_float_command): Delete.
6633 (tui_reg_general_command): Delete.
6634 (tui_reg_system_command): Delete.
6635 (tui_reg_command): Rewrite to perform switching of register group.
6636 Add header comment.
6637 (tuireglist): Remove.
6638 (tui_reggroup_completer): New function.
6639 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6640 creation of 'tui reg' command.
6641 * NEWS: Add comment about 'tui reg' changes.
6642
6643 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6644
6645 * target.c (target_read): Consider addressable unit size when
6646 reading from a memory object.
6647 (read_memory_robust): Same.
6648 (read_whatever_is_readable): Same.
6649 (target_write_with_progress): Consider addressable unit size
6650 when writing to a memory object.
6651 * target.h (target_read): Update documentation.
6652 (target_write): Add documentation.
6653
6654 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6655
6656 * arch-utils.h (default_addressable_memory_unit_size): New.
6657 * arch-utils.c (default_addressable_memory_unit_size): New.
6658 * gdbarch.sh (addressable_memory_unit_size): New.
6659 * gdbarch.h: Re-generate.
6660 * gdbarch.c: Re-generate.
6661
6662 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6663
6664 * target.c (target_read): Rename variables and use
6665 TARGET_XFER_E_IO.
6666 (target_read_with_progress): Same.
6667 (read_memory_robust): Constify parameters and rename
6668 variables.
6669 (read_whatever_is_readable): Constify parameters,
6670 rename variables, adjust formatting.
6671 * target.h (read_memory_robust): Constify parameters.
6672
6673 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6674
6675 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6676 synthetic (non-AltiVec) vector types.
6677 (ppc64_sysv_abi_return_value): Likewise.
6678
6679 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6680
6681 PR breakpoints/16465
6682 * breakpoint.c (create_breakpoint): Save extra_string for
6683 pending breakpoints.
6684
6685 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6686
6687 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6688 and bt_mask to CORE_ADDR.
6689
6690 2015-06-11 Gary Benson <gbenson@redhat.com>
6691
6692 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6693 (mnsh_recv_message): Likewise.
6694
6695 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6696
6697 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6698 long long int and plongest instead of %ll.
6699
6700 2015-06-11 Gary Benson <gbenson@redhat.com>
6701
6702 * nat/linux-namespaces.c (gdb_wait.h): New include.
6703 (sys/wait.h): Do not include.
6704
6705 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6706
6707 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6708 end_sequence is true.
6709
6710 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6711
6712 Code cleanup.
6713 * solib-target.c (library_list_start_list): Use explicit NULL
6714 comparison.
6715
6716 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6717
6718 * solib-target.c (library_list_start_list): Do not dereference
6719 variable version in its initialization. Make the VERSION check handle
6720 NULL.
6721 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6722
6723 2015-06-10 Gary Benson <gbenson@redhat.com>
6724
6725 * NEWS: Announce support for direct access of executable and
6726 shared library files when attaching to inferiors in containers
6727 on GNU/Linux systems.
6728
6729 2015-06-10 Gary Benson <gbenson@redhat.com>
6730
6731 * remote.c (struct remote_state) <fs_pid>: New field.
6732 (new_remote_state): Initialize the above.
6733 (PACKET_vFile_setfs): New enum value.
6734 (remote_hostio_set_filesystem): New function.
6735 (remote_hostio_open): Call the above.
6736 (remote_hostio_unlink): Likewise.
6737 (remote_hostio_readlink): Likewise.
6738 (_initialize_remote): Register new "set/show remote
6739 hostio-setfs-packet" command.
6740 * NEWS: Announce new vFile:setfs packet.
6741
6742 2015-06-10 Gary Benson <gbenson@redhat.com>
6743
6744 * linux-nat.c (nat/linux-namespaces.h): New include.
6745 (fileio.h): Likewise.
6746 (linux_nat_filesystem_is_local): New function.
6747 (linux_nat_fileio_pid_of): Likewise.
6748 (linux_nat_fileio_open): Likewise.
6749 (linux_nat_fileio_readlink): Likewise.
6750 (linux_nat_fileio_unlink): Likewise.
6751 (linux_nat_add_target): Initialize to_filesystem_is_local,
6752 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6753 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6754 commands.
6755 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6756
6757 2015-06-10 Gary Benson <gbenson@redhat.com>
6758
6759 * target.h (struct inferior): New forward declaration.
6760 (struct target_ops) <to_filesystem_is_local>: Update comment.
6761 (struct target_ops) <to_fileio_open>: New argument inf.
6762 Update comment. All implementations updated.
6763 (struct target_ops) <to_fileio_unlink>: Likewise.
6764 (struct target_ops) <to_fileio_readlink>: Likewise.
6765 (target_filesystem_is_local): Update comment.
6766 (target_fileio_open): New argument inf. Update comment.
6767 (target_fileio_unlink): Likewise.
6768 (target_fileio_readlink): Likewise.
6769 (target_fileio_read_alloc): Likewise.
6770 (target_fileio_read_stralloc): Likewise.
6771 * target.c (target_fileio_open): New argument inf.
6772 Pass inf to implementation. Update debug printing.
6773 (target_fileio_unlink): Likewise.
6774 (target_fileio_readlink): Likewise.
6775 (target_fileio_read_alloc_1): New argument inf. Pass inf
6776 to target_fileio_open.
6777 (target_fileio_read_alloc): New argument inf. Pass inf to
6778 target_fileio_read_alloc_1.
6779 (target_fileio_read_stralloc): Likewise.
6780 * gdb_bfd.c (inferior.h): New include.
6781 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6782 argument with new argument "inferior". Pass inferior to
6783 target_fileio_open.
6784 (gdb_bfd_open): Supply inferior argument to
6785 gdb_bfd_iovec_fileio_open.
6786 * linux-tdep.c (linux_info_proc): Supply inf argument to
6787 relevant target_fileio calls.
6788 (linux_find_memory_regions_full): Likewise.
6789 (linux_fill_prpsinfo): Likewise.
6790 * remote.c (remote_filesystem_is_local): Supply inf
6791 argument to remote_hostio_open.
6792 (remote_file_put): Likewise.
6793 (remote_file_get): Likewise.
6794 (remote_file_delete): Supply inf argument to
6795 remote_hostio_unlink.
6796
6797 2015-06-10 Gary Benson <gbenson@redhat.com>
6798
6799 * inf-child.c (inf_child_fileio_open): Replace comment.
6800 (inf_child_fileio_pwrite): Likewise.
6801 (inf_child_fileio_pread): Likewise.
6802 (inf_child_fileio_fstat): Insert blank line before comment.
6803 (inf_child_fileio_close): Replace comment.
6804 (inf_child_fileio_unlink): Likewise.
6805 (inf_child_fileio_readlink): Likewise.
6806 * remote.c (remote_hostio_open): Likewise.
6807 (remote_hostio_pread): Likewise.
6808 (remote_hostio_pwrite): Likewise.
6809 (remote_hostio_close): Likewise.
6810 (remote_hostio_unlink): Likewise.
6811 (remote_hostio_readlink): Likewise.
6812 (remote_hostio_fstat): Likewise.
6813 (remote_filesystem_is_local): Likewise.
6814 * target.c (target_fileio_open): Likewise.
6815 (target_fileio_pwrite): Likewise.
6816 (target_fileio_pread): Likewise.
6817 (target_fileio_fstat): Insert blank line before comment.
6818 (target_fileio_close): Replace comment.
6819 (target_fileio_unlink): Likewise.
6820 (target_fileio_readlink): Likewise.
6821 (target_fileio_read_alloc): Likewise.
6822 (target_fileio_read_stralloc): Likewise.
6823
6824 2015-06-10 Gary Benson <gbenson@redhat.com>
6825
6826 * linux-thread-db.c (nat/linux-namespaces.h): New include.
6827 (check_pid_namespace_match): Use linux_ns_same rather than
6828 linux_proc_pid_get_ns to spot PID namespace mismatches.
6829 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6830 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6831
6832 2015-06-10 Gary Benson <gbenson@redhat.com>
6833
6834 * configure.ac (AC_CHECK_FUNCS): Add setns.
6835 * config.in: Regenerate.
6836 * configure: Likewise.
6837 * nat/linux-namespaces.h: New file.
6838 * nat/linux-namespaces.c: Likewise.
6839 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6840 (linux-namespaces.o): New rule.
6841 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6842 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6843 * config/arm/linux.mh (NATDEPFILES): Likewise.
6844 * config/i386/linux.mh (NATDEPFILES): Likewise.
6845 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6846 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6847 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6848 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6849 * config/mips/linux.mh (NATDEPFILES): Likewise.
6850 * config/pa/linux.mh (NATDEPFILES): Likewise.
6851 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6852 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6853 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6854 * config/s390/linux.mh (NATDEPFILES): Likewise.
6855 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6856 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6857 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6858 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6859
6860 2015-06-10 Gary Benson <gbenson@redhat.com>
6861
6862 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6863 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6864 (make_cleanup_close): Likewise.
6865 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6866 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6867 (make_cleanup_close): Likewise.
6868
6869 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6870
6871 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6872 from SuspendThread().
6873
6874 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6875
6876 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6877 from OutputDebugString.
6878
6879 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6880 Mircea Gherzan <mircea.gherzan@intel.com>
6881
6882 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6883 MPX_BT_MASK_32): New macros.
6884 (i386_mpx_set_bounds): New function that implements
6885 the command "set-mpx-bound".
6886 (i386_mpx_enabled): Helper function to test MPX availability.
6887 (i386_mpx_bd_base): Helper function to calculate the base directory
6888 address.
6889 (i386_mpx_get_bt_entry): Helper function to access a bound
6890 table entry.
6891 (i386_mpx_print_bounds): Effectively display bound information.
6892 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6893 "show mpx".
6894 (_initialize_i386_tdep):
6895 Add "bound" to the commands "show mpx" and "set mpx" commands.
6896 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
6897 and "show mpx" commands.
6898 * NEWS: List new commands for MPX support.
6899
6900 2015-06-09 Gary Benson <gbenson@redhat.com>
6901
6902 * common/fileio.h (fileio_to_host_mode): New declaration.
6903 * common/fileio.c (fileio_to_host_mode): New Function.
6904 * inf-child.c (inf_child_fileio_open): Process mode argument
6905 with fileio_to_host_mode.
6906
6907 2015-06-09 Gary Benson <gbenson@redhat.com>
6908
6909 * common/fileio.c (fileio_mode_pack): Fix preprocessor
6910 conditional.
6911
6912 2015-06-05 Gary Benson <gbenson@redhat.com>
6913
6914 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
6915 * remote.c (remote_filesystem_is_local): ...here.
6916
6917 2015-06-04 Yao Qi <yao.qi@linaro.org>
6918
6919 * gdbarch.c: Regenerate it.
6920
6921 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6922
6923 * arch-utils.c (default_infcall_munmap): New.
6924 * arch-utils.h (default_infcall_munmap): New declaration.
6925 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
6926 (munmap_list_free, munmap_listp_free_cleanup): New.
6927 (struct setup_sections_data): Add field munmap_list_headp.
6928 (setup_sections): Call munmap_list_add.
6929 (compile_object_load): New variable munmap_list_head, initialize
6930 setup_sections_data.munmap_list_headp, return munmap_list_head.
6931 * compile/compile-object-load.h (struct munmap_list): New declaration.
6932 (struct compile_module): Add field munmap_list_head.
6933 (munmap_list_free): New declaration.
6934 * compile/compile-object-run.c (struct do_module_cleanup): Add field
6935 munmap_list_head.
6936 (do_module_cleanup): Call munmap_list_free.
6937 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
6938 * gdbarch.c: Regenerate.
6939 * gdbarch.h: Regenerate.
6940 * gdbarch.sh (infcall_munmap): New.
6941 * linux-tdep.c (linux_infcall_munmap): New.
6942 (linux_init_abi): Install it.
6943
6944 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
6945
6946 PR gdb/15564
6947 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
6948
6949 2015-06-02 Yao Qi <yao.qi@linaro.org>
6950
6951 * i386-linux-nat.c: Include linux-nat.h.
6952
6953 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
6954 Jan Kratochvil <jan.kratochvil@redhat.com>
6955
6956 PR symtab/18392
6957 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
6958 assertion.
6959 * dwarf2loc.c (chain_candidate): Likewise.
6960
6961 2015-06-01 Yao Qi <yao.qi@linaro.org>
6962
6963 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
6964 (store_vfp_regs): Use PTRACE_SETREGSET.
6965
6966 2015-06-01 Yao Qi <yao.qi@linaro.org>
6967
6968 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
6969 (fetch_fpregs): Likewise.
6970 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
6971 (store_fpregs): Likewise.
6972
6973 2015-06-01 Yao Qi <yao.qi@linaro.org>
6974
6975 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
6976 (fetch_regs): Likewise.
6977 (store_regs): Use PTRACE_SETREGSET.
6978 (store_register): Likewise.
6979
6980 2015-06-01 Yao Qi <yao.qi@linaro.org>
6981
6982 * arm-linux-nat.c (arm_linux_read_description): Check whether
6983 kernel supports PTRACE_GETREGSET.
6984
6985 2015-06-01 Yao Qi <yao.qi@linaro.org>
6986
6987 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
6988 * linux-nat.c: ... here.
6989 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
6990 to ...
6991 * linux-nat.h: ... here.
6992
6993 2015-06-01 Yao Qi <yao.qi@linaro.org>
6994
6995 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
6996 * i386-linux-nat.c: Likewise.
6997 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
6998 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
6999 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7000 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7001 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7002
7003 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7004
7005 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7006 compatible to what read_child and write_child return. This
7007 unbreaks that DJGPP build of GDB which was broken since v7.7.
7008
7009 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7010
7011 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7012
7013 2015-05-29 Roland McGrath <mcgrathr@google.com>
7014
7015 PR gdb/18464
7016 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7017 rather than internal_error for an unrecognized value.
7018
7019 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7020
7021 * xtensa-tdep.c (xtensa_pseudo_register_read)
7022 (xtensa_pseudo_register_write): Don't alias last pseudo register
7023 to a1.
7024
7025 2015-05-28 Don Breazeal <donb@codesourcery.com>
7026
7027 * infrun.c (follow_fork_inferior): Ensure the use of
7028 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7029 messages.
7030
7031 2015-05-28 Doug Evans <dje@google.com>
7032
7033 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7034
7035 2015-05-28 Yao Qi <yao.qi@linaro.org>
7036
7037 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7038 (arm_linux_fetch_inferior_registers): Use
7039 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7040 (arm_linux_store_inferior_registers): Likewise.
7041 (arm_linux_read_description): Don't set
7042 arm_linux_has_wmmx_registers.
7043 * arm-tdep.c (arm_gdbarch_init): Set
7044 tdep->have_wmmx_registers according target descriptions.
7045 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7046 field.
7047
7048 2015-05-28 Yao Qi <yao.qi@linaro.org>
7049
7050 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7051 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7052 instead of arm_linux_vfp_register_count.
7053 (store_vfp_regs): Likewise.
7054 (arm_linux_fetch_inferior_registers): Likewise.
7055 (arm_linux_store_inferior_registers): Likewise.
7056 (arm_linux_read_description): Don't set
7057 arm_linux_vfp_register_count.
7058 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7059 Adjust.
7060 * arm-tdep.c (arm_gdbarch_init): Add assert on
7061 vfp_register_count.
7062 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7063 field to vfp_register_count. All users updated.
7064
7065 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7066
7067 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7068 ELFOSABI_GNU binaries.
7069
7070 2015-05-27 Doug Evans <dje@google.com>
7071
7072 * dwarf2read.c (lnp_state_machine): New typedef.
7073 (lnp_reader_state): New typedef.
7074 (dwarf_record_line_1): Renamed from dwarf_record_line.
7075 All callers updated.
7076 (dwarf_record_line): New function.
7077 (init_lnp_state_machine): New function.
7078 (check_line_address): Replace p_record_line parameter with state.
7079 All callers updated.
7080 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7081 Update to record state in lnp_state_machine.
7082
7083 2015-05-27 Doug Evans <dje@google.com>
7084
7085 * dwarf2read.c (record_line_ftype): New typedef.
7086 (check_line_address): New function.
7087 (dwarf_decode_lines_1): Call it.
7088
7089 2015-05-27 Doug Evans <dje@google.com>
7090
7091 * NEWS: Mention "set debug dwarf-line".
7092 * dwarf2read.c (dwarf_line_debug): New static global.
7093 (add_include_dir): Add debug dwarf-line support.
7094 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7095 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7096
7097 2015-05-27 Doug Evans <dje@google.com>
7098
7099 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7100 All callers updated.
7101 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7102 * cp-support.h (cp_lookup_nested_symbol): Update.
7103
7104 2015-05-27 Doug Evans <dje@google.com>
7105
7106 PR symtab/18258
7107 * block.c (block_find_symbol): New function.
7108 (block_find_non_opaque_type): Ditto.
7109 (block_find_non_opaque_type_preferred): Ditto.
7110 * block.h (block_symbol_matcher_ftype): New typedef.
7111 (block_find_symbol): Declare.
7112 (block_find_non_opaque_type): Ditto.
7113 (block_find_non_opaque_type_preferred): Ditto.
7114 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7115 * psymtab.c (psym_lookup_symbol): Ditto.
7116 * symtab.c (basic_lookup_transparent_type_1): New function.
7117 (basic_lookup_transparent_type): Call it.
7118
7119 2015-05-27 Yao Qi <yao.qi@linaro.org>
7120
7121 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7122 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7123
7124 2015-05-27 Yao Qi <yao.qi@linaro.org>
7125
7126 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7127 before operator &&.
7128 (aarch64_record_load_store): Likewise.
7129
7130 2015-05-26 Doug Evans <dje@google.com>
7131
7132 PR c++/18141, c++/18417.
7133 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7134 a typedef.
7135
7136 2015-05-26 Doug Evans <dje@google.com>
7137
7138 * NEWS: Add entries for command renamings.
7139 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7140 All uses updated.
7141 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7142 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7143 All uses updated.
7144 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7145 All callers updated. Fix spelling of DWARF in help text.
7146 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7147 All uses updated.
7148 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7149 All uses updated.
7150 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7151 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7152 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7153 All uses updated.
7154 (show_dwarf_always_disassemble): Renamed from
7155 show_dwarf2_always_disassemble. All callers updated.
7156 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7157 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7158 "set/show dwarf max-cache-age". Rename
7159 "set/show dwarf2 always-disassemble" to
7160 "set/show dwarf always-disassemble". Rename
7161 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7162 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7163
7164 2015-05-26 Doug Evans <dje@google.com>
7165
7166 PR python/18438
7167 * python/py-lazy-string.c (stpy_convert_to_value): Use
7168 gdbpy_gdb_memory_error not PyExc_MemoryError.
7169 (gdbpy_create_lazy_string_object): Ditto.
7170
7171 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7172
7173 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7174
7175 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7176
7177 * tui/tui-regs.c (tui_reg_prev_command): New function.
7178 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7179 * reggroups.c (reggroup_prev): New function.
7180 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7181
7182 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7183 Yao Qi <yao.qi@linaro.org>
7184
7185 * aarch64-linux-tdep.c: Include linux-record.h and
7186 record-full.h.
7187 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7188 (aarch64_syscall): New enum.
7189 (aarch64_canonicalize_syscall): New function.
7190 (aarch64_all_but_pc_registers_record): New function.
7191 (aarch64_linux_syscall_record): New function.
7192 (aarch64_linux_init_abi): Install AArch64 process record
7193 handler. Update to handle syscall recording.
7194 * aarch64-tdep.c: Include record.h and record-full.h.
7195 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7196 (struct aarch64_mem_r): Define.
7197 (aarch64_record_result): New enum.
7198 (struct insn_decode_record): Define.
7199 (insn_decode_record): New typedef.
7200 (aarch64_record_data_proc_reg): New function.
7201 (aarch64_record_data_proc_imm): New function.
7202 (aarch64_record_branch_except_sys): New function.
7203 (aarch64_record_load_store): New function.
7204 (aarch64_record_data_proc_simd_fp): New function.
7205 (aarch64_record_asimd_load_store): New function.
7206 (aarch64_record_decode_insn_handler): New function.
7207 (deallocate_reg_mem): New function.
7208 (aarch64_process_record): New function.
7209 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7210 New field.
7211 (aarch64_process_record): New extern declaration.
7212 * configure.tgt: Add linux-record.o to gdb_target_obs.
7213 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7214
7215 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7216
7217 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7218 targets.
7219
7220 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7221
7222 * amd64-tdep.c: Replace in_function_epilogue_p with
7223 stack_frame_destroyed_p throughout.
7224 * arch-utils.c: Ditto.
7225 * arch-utils.h: Ditto.
7226 * arm-tdep.c: Ditto.
7227 * breakpoint.c: Ditto.
7228 * gdbarch.sh: Ditto.
7229 * hppa-tdep.c: Ditto.
7230 * i386-tdep.c: Ditto.
7231 * mips-tdep.c: Ditto.
7232 * nios2-tdep.c: Ditto.
7233 * rs6000-tdep.c: Ditto.
7234 * s390-linux-tdep.c: Ditto.
7235 * score-tdep.c: Ditto.
7236 * sh-tdep.c: Ditto.
7237 * sparc-tdep.c: Ditto.
7238 * sparc-tdep.h: Ditto.
7239 * sparc64-tdep.c: Ditto.
7240 * spu-tdep.c: Ditto.
7241 * tic6x-tdep.c: Ditto.
7242 * tilegx-tdep.c: Ditto.
7243 * xstormy16-tdep.c: Ditto.
7244 * gdbarch.c, gdbarch.h: Re-generated.
7245
7246 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7247
7248 * NEWS: Mention 'tui enable' and 'tui disable'.
7249 * tui/tui.c (tui_enable_command): New function.
7250 (tui_disable_command): New function.
7251 (_initialize_tui): New function.
7252
7253 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7254
7255 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7256
7257 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7258
7259 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7260 buf_ptr is freed.
7261
7262 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7265 into ...
7266 (tui_set_layout_for_display_command): ...here, before calling
7267 tui_set_layout. Only set the layout if gdb has not already
7268 entered the TUI_FAILURE state.
7269
7270 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7271
7272 * tui/tui-layout.c (layout_completer): New function.
7273 (_initialize_tui_layout): Set completer on layout command.
7274
7275 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7276
7277 * tui/tui-layout.c (tui_set_layout): Remove
7278 tui_register_display_type parameter. Remove all checking of this
7279 parameter, and reindent function. Update header comment.
7280 (tui_set_layout_for_display_command): Rename to...
7281 (tui_set_layout_by_name): ...this, and don't check for different
7282 register class types, don't pass a tui_register_display_type to
7283 tui_set_layout. Update header comment.
7284 (layout_names): Remove register set specific names.
7285 * tui/tui-layout.h (tui_set_layout): Remove
7286 tui_register_display_type parameter.
7287 * tui/tui.c (tui_rl_change_windows): Don't pass a
7288 tui_register_display_type to tui_set_layout.
7289 (tui_rl_delete_other_windows): Likewise.
7290 (tui_enable): Likewise.
7291 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7292 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7293 (TUI_GENERAL_REGS_NAME): Remove.
7294 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7295 (TUI_SPECIAL_REGS_NAME): Remove.
7296 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7297 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7298 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7299 (enum tui_register_display_type): Remove.
7300 (struct tui_layout_def): Remove regs_display_type and
7301 float_regs_display_type fields.
7302 (struct tui_data_info): Remove regs_display_type field.
7303 (tui_layout_command): Use new name for
7304 tui_set_layout_for_display_command.
7305 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7306 (tui_clear_win_detail): Don't initialise removed fields of
7307 win_info.
7308 * tui/tui-regs.c (tui_show_registers): Use new name for
7309 tui_set_layout_for_display_command.
7310 * tui/tui.h (tui_set_layout_for_display_command): Rename
7311 declaration to...
7312 (tui_set_layout_by_name): ...this.
7313 * printcmd.c (display_command): Remove tui related layout call,
7314 and reindent.
7315
7316 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7317
7318 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7319 (handle_inferior_event): New function.
7320
7321 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7322
7323 * ada-lang.c (to_fixed_array_type): Rename local variable
7324 typename into type_name.
7325
7326 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7327
7328 Fix ASAN crash for gdb.compile/compile.exp.
7329 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7330
7331 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7332
7333 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7334 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7335 * compile/compile-object-load.c (setup_sections, compile_object_load):
7336 Likewise.
7337 * compile/compile.c (compile_to_object): Likewise.
7338
7339 2015-05-16 Doug Evans <xdje42@gmail.com>
7340
7341 * NEWS: Mention support for unbuffered Guile memory ports.
7342 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7343 (ioscm_lseek_address): Improve overflow calculation.
7344 (gdbscm_memory_port_fill_input): Add assert.
7345 (gdbscm_memory_port_write): Handle unbuffered ports.
7346 Handle large writes identical to Guile's fport_write.
7347 (gdbscm_memory_port_seek): Fix seeking past end check.
7348 (gdbscm_memory_port_close): Handle closing unbuffered port.
7349 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7350 (ioscm_init_memory_port): Handle unbuffered ports.
7351 (ioscm_reinit_memory_port): Ditto.
7352 (ioscm_init_memory_port): Update size calculation.
7353 (gdbscm_open_memory): Support zero sized ports.
7354
7355 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7356
7357 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7358 variable compiler warnings.
7359
7360 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7361
7362 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7363
7364 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7365 Phil Muldoon <pmuldoon@redhat.com>
7366
7367 * NEWS (Changes since GDB 7.9): Add compile print.
7368 * compile/compile-c-support.c (add_code_header, add_code_footer)
7369 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7370 COMPILE_I_PRINT_VALUE_SCOPE.
7371 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7372 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7373 New.
7374 * compile/compile-object-load.c: Include block.h.
7375 (get_out_value_type): New function.
7376 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7377 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7378 OUT_VALUE_TYPE.
7379 * compile/compile-object-load.h (struct compile_module): Add fields
7380 out_value_addr and out_value_type.
7381 * compile/compile-object-run.c: Include valprint.h and compile.h.
7382 (struct do_module_cleanup): Add fields out_value_addr and
7383 out_value_type.
7384 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7385 COMPILE_I_PRINT_VALUE_SCOPE.
7386 (compile_object_run): Propagate out_value_addr and out_value_type.
7387 Pass OUT_VALUE_ADDR.
7388 * compile/compile.c: Include valprint.h.
7389 (compile_print_value, compile_print_command): New functions.
7390 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7391 (_initialize_compile): Update compile code help text. Install
7392 compile_print_command.
7393 * compile/compile.h (compile_print_value): New prototype.
7394 * defs.h (enum compile_i_scope_types): Add
7395 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7396
7397 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7398
7399 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7400 Rely on its parameter count.
7401 (compile_object_load): Replace lookup_minimal_symbol_text by
7402 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7403 return value.
7404 * compile/compile-object-load.h (struct compile_module): Replace
7405 func_addr by func_sym.
7406 * compile/compile-object-run.c: Include block.h.
7407 (compile_object_run): Reset module variable after it is freed. Use
7408 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7409
7410 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7411
7412 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7413 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7414 (c_compute_program): Call generate_register_struct after typedefs.
7415 * compile/compile-loc2c.c (push, pushf_register_address)
7416 (pushf_register): Cast to GCC_UINTPTR.
7417 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7418 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7419 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7420 * compile/compile.c (_initialize_compile): Enable warnings for
7421 COMPILE_ARGS.
7422
7423 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7424
7425 * cli/cli-script.c (execute_control_command): Update
7426 eval_compile_command caller.
7427 * compile/compile-object-load.c (compile_object_load): Add parameters
7428 scope and scope_data. Set them.
7429 * compile/compile-object-load.h (struct compile_module): Add fields
7430 scope and scope_data.
7431 (compile_object_load): Add parameters scope and scope_data.
7432 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7433 scope and scope_data.
7434 (compile_object_run): Propagate the fields scope and scope_data.
7435 * compile/compile.c (compile_file_command, compile_code_command):
7436 Update eval_compile_command callers.
7437 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7438 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7439 * defs.h (struct command_line): Add field scope_data.
7440
7441 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7442
7443 * printcmd.c (struct format_data): Move it to valprint.h.
7444 (print_command_parse_format, print_value): New functions from ...
7445 (print_command_1): ... here. Call them.
7446 * valprint.h (struct format_data): Move it here from printcmd.c.
7447 (print_command_parse_format, print_value): New declarations.
7448
7449 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7450
7451 * compile/compile-object-load.c (compile_object_load): Add
7452 COMPILE_DEBUG message.
7453
7454 2015-05-15 Jerome Guitton <guitton@adacore.com>
7455
7456 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7457 index to get element instead of enum value.
7458 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7459 of index to compute length, but enum values to compute bounds.
7460 (ada_array_length): Use enum position of index instead of enum value.
7461 (pos_atr): Move position computation to...
7462 (ada_evaluate_subexp): Use enum values to compute bounds.
7463 * gdbtypes.c (discrete_position): ...this new function.
7464 * gdbtypes.h (discrete_position): New function declaration.
7465 * valprint.c (val_print_array_elements): Call discrete_position
7466 to handle array indexed by non-contiguous enumeration types.
7467
7468 2015-05-15 Jerome Guitton <guitton@adacore.com>
7469
7470 * ada-lang.c (find_parallel_type_by_descriptive_type):
7471 Go through typedefs during lookup.
7472 (to_fixed_array_type): Add support for non-bit packed arrays
7473 as variable-length fields.
7474
7475 2015-05-15 Pedro Alves <palves@redhat.com>
7476 Simon Marchi <simon.marchi@ericsson.com>
7477
7478 * event-loop.c (gdb_notifier) <next_file_handler,
7479 next_poll_fds_index>: New fields.
7480 (get_next_file_handler_to_handle_and_advance): New function.
7481 (delete_file_handler): If deleting the next file handler to
7482 handle, advance to the next file handler.
7483 (gdb_wait_for_event): Bail early if no event fired. Poll file
7484 handlers in round-robin fashion.
7485
7486 2015-05-15 Pedro Alves <palves@redhat.com>
7487
7488 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7489 'private' to 'priv'.
7490
7491 2015-05-15 Pedro Alves <palves@redhat.com>
7492
7493 * nat/linux-nat.h: Include "target/waitstatus.h".
7494
7495 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7496
7497 * python/py-unwind.c (struct reg_info): Move out of ...
7498 (struct cached_frame_info): ... this scope.
7499 (pending_frame_object_type, unwind_info_object_type): Make extern.
7500
7501 2015-05-15 Joel Brobecker <brobecker@adacore.com>
7502
7503 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7504 accumSize is never negative.
7505
7506 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7507
7508 * tui/tui-command.c: Remove include of <ctype.h>.
7509 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7510
7511 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7512
7513 * dwarf2read.c (die_needs_namespace): Return 1 for
7514 DW_TAG_inlined_subroutine.
7515
7516 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7517
7518 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7519 (regcache_cpy_no_passthrough): Make it static, add function comment.
7520 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7521 (regcache_cpy_no_passthrough): Remove declaration.
7522
7523 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7524
7525 * gdbthread.h (struct thread_control_state): Update comment for
7526 proceed_to_finish.
7527 * infcall.c (run_inferior_call): Update comment about
7528 proceed_to_finish.
7529 * infcmd.c (get_return_value): Update comment about stop_registers.
7530 (finish_forward): Update comment about proceed_to_finish.
7531 * infrun.c (stop_registers): Remove.
7532 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7533 * infrun.h (stop_registers): Remove.
7534
7535 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7536
7537 * infcall.c (struct dummy_frame_context_saver)
7538 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7539 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7540 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7541 New.
7542 (call_function_by_hand_dummy): Move discard_cleanups of
7543 inf_status_cleanup before dummy_frame_push. Call
7544 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7545 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7546 * infcall.h (struct dummy_frame_context_saver)
7547 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7548 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7549 New declarations.
7550 * infcmd.c: Include infcall.h.
7551 (get_return_value): Add parameter ctx_saver, use it instead of
7552 stop_registers.
7553 (print_return_value): Add parameter ctx_saver, pass it.
7554 (struct finish_command_continuation_args): Add field ctx_saver.
7555 (finish_command_continuation): Update print_return_value caller.
7556 (finish_command_continuation_free_arg): Free also ctx_saver.
7557 (finish_forward): Call dummy_frame_context_saver_setup.
7558 * inferior.h (struct dummy_frame_context_saver): New declaration.
7559 (get_return_value): Add parameter ctx_saver.
7560 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7561 get_return_value caller.
7562
7563 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7564
7565 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7566 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7567 (remove_dummy_frame): Process dtor_list.
7568 (pop_dummy_frame): Process dtor_list.
7569 (register_dummy_frame_dtor): Maintain dtor_list.
7570 (find_dummy_frame_dtor): Handle dtor_list.
7571 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7572 Update comments.
7573
7574 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7575
7576 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7577 registers_valid.
7578 (compile_object_run): Update do_module_cleanup caller.
7579 * dummy-frame.c: Include infcall.h.
7580 (struct dummy_frame): Update dtor comment.
7581 (remove_dummy_frame): Call dtor.
7582 (pop_dummy_frame): Update dtor caller.
7583 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7584 registers_valid.
7585
7586 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7587
7588 GDB 7.9.1 released.
7589
7590 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7591
7592 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7593 Xmethods now being able to specify a result type to that new
7594 sectioin.
7595
7596 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7597
7598 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7599 first before resizing the window.
7600 * tui/tui.c (tui_enable): Likewise.
7601
7602 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7603
7604 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7605 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7606 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7607 dummy_dtor parameter.
7608 * infcall.h: Include dummy-frame.h.
7609 (call_function_by_hand_dummy_dtor_ftype): Remove.
7610 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7611 parameter.
7612
7613 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7614
7615 PR gdb/17820
7616 * top.c (history_size_setshow_var): Change type to signed.
7617 Initialize to -2. Update documentation.
7618 (set_readline_history_size): Define.
7619 (set_history_size_command): Use it. Remove logic for handling
7620 out-of-range sizes.
7621 (init_history): Use set_readline_history_size(). Test for a
7622 value of -2 instead of 0 when determining whether to set a
7623 default history size.
7624 (init_main): Decode the argument of the "size" command as a
7625 zuinteger_unlimited.
7626
7627 2015-05-12 Doug Evans <dje@google.com>
7628
7629 * dwarf2read.c (struct file_entry): Tweak comments.
7630 (get_debug_line_section): Tweak comments.
7631
7632 2015-05-12 Don Breazeal <donb@codesourcery.com>
7633
7634 * NEWS: Announce fork support in the RSP and support
7635 for fork debugging in extended mode.
7636
7637 2015-05-12 Don Breazeal <donb@codesourcery.com>
7638
7639 * remote.c (remote_insert_fork_catchpoint): New function.
7640 (remote_remove_fork_catchpoint): New function.
7641 (remote_insert_vfork_catchpoint): New function.
7642 (remote_remove_vfork_catchpoint): New function.
7643 (pending_fork_parent_callback): New function.
7644 (remove_new_fork_child): New function.
7645 (remote_update_thread_list): Call remote_notif_get_pending_events
7646 and remove_new_fork_child.
7647 (extended_remote_kill): Kill fork child when killing the
7648 parent before follow_fork completes.
7649 (init_extended_remote_ops): Initialize target vector with
7650 new fork catchpoint functions.
7651
7652 2015-05-12 Don Breazeal <donb@codesourcery.com>
7653
7654 * remote.c (remove_vfork_event_p): New function.
7655 (remote_follow_fork): Add vfork event type to event checking.
7656 (remote_parse_stop_reply): New stop reasons "vfork" and
7657 "vforkdone" for RSP 'T' Stop Reply Packet.
7658
7659 2015-05-12 Don Breazeal <donb@codesourcery.com>
7660
7661 * linux-nat.c (linux_nat_ptrace_options): New function.
7662 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7663 Call linux_nat_ptrace_options and use different argument to
7664 linux_enable_event_reporting.
7665 (_initialize_linux_nat): Delete call to
7666 linux_ptrace_set_additional_flags.
7667 * nat/linux-ptrace.c (current_ptrace_options): Rename to
7668 supported_ptrace_options.
7669 (additional_flags): Delete variable.
7670 (linux_check_ptrace_features): Use supported_ptrace_options.
7671 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7672 Likewise, and remove additional_flags check.
7673 (linux_enable_event_reporting): Change 'attached' argument to
7674 'options'. Use supported_ptrace_options.
7675 (ptrace_supports_feature): Change comment. Use
7676 supported_ptrace_options.
7677 (linux_ptrace_set_additional_flags): Delete function.
7678 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7679 Delete function prototype.
7680 * remote.c (remote_fork_event_p): New function.
7681 (remote_detach_pid): New function.
7682 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7683 if doing detach-on-fork.
7684 (remote_follow_fork): New function.
7685 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7686 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7687 (init_extended_remote_ops): Initialize to_follow_fork.
7688
7689 2015-05-12 Don Breazeal <donb@codesourcery.com>
7690
7691 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7692 from static to extern.
7693 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7694 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7695 * PACKET_vfork_event_feature>: New enumeration constants.
7696 (remote_protocol_features): Add table entries for new packets.
7697 (remote_query_supported): Add new feature queries to qSupported
7698 packet.
7699
7700 2015-05-12 Gary Benson <gbenson@redhat.com>
7701
7702 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7703 for fake PIDs as well as real ones.
7704 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7705
7706 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7707
7708 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7709 * python/py-value.c (valpy_reference_value): New function.
7710 (valpy_const_value): Likewise.
7711 (value_object_methods): Add new methods.
7712 * value.c (make_cv_value): New function.
7713 * value.h (make_cv_value): Declare.
7714
7715 2015-05-08 Yao Qi <yao@codesourcery.com>
7716 Sandra Loosemore <sandra@codesourcery.com>
7717
7718 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7719 to 'lh->include_dirs' before accessing to it.
7720 (psymtab_include_file_name): Likewise.
7721 (dwarf_decode_lines_1): Likewise.
7722 (dwarf_decode_lines): Likewise.
7723 (file_file_name): Likewise.
7724
7725 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7726
7727 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7728 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7729 (nios2_linux_rt_sigreturn_init): Adjust base address of
7730 register save area.
7731
7732 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7733
7734 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7735 "trap 31" as the breakpoint instruction on all targets.
7736
7737 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7738
7739 * infcmd.c (print_return_value): Remove unused declaration.
7740
7741 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7742
7743 * dwarf2read.c (attr_to_dynamic_prop)
7744 <DW_AT_data_member_location>: Use read_type_die isntead of
7745 get_die_type.
7746
7747 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7748
7749 * ada-lang.c (ada_convert_actual): Add handling of formals
7750 passed inside an aligner type.
7751
7752 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7753
7754 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7755
7756 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7757
7758 PR python/18291
7759 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7760 Print xmethod matcher status.
7761
7762 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7763
7764 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7765 register in the regcache when treating the PSWM register, and vice
7766 versa.
7767
7768 2015-05-07 Gary Benson <gbenson@redhat.com>
7769
7770 * linux-thread-db.c (struct thread_db_info)
7771 <td_ta_map_id2thr_p>: Remove field.
7772 (try_thread_db_load_1): Remove initialization for the above.
7773
7774 2015-05-07 Gary Benson <gbenson@redhat.com>
7775
7776 * linux-thread-db.c (struct thread_db_info)
7777 <td_thr_validate_p>: Remove field.
7778 (try_thread_db_load_1): Remove initialization for the above.
7779
7780 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7781
7782 * compile/compile-object-load.c (compile_object_load): Support
7783 mst_text_gnu_ifunc.
7784
7785 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7786
7787 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7788 const. Use new variables for the const compatibility.
7789 (eval_compile_command): Make the cmd_string parameter const.
7790 * compile/compile.h (eval_compile_command): Make the cmd_string
7791 parameter const.
7792
7793 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7794
7795 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7796 comment.
7797 * top.c (deprecated_init_ui_hook): Delete.
7798 (gdb_init): Remove handling of deprecated_init_ui_hook.
7799 * interps.c (clear_interpreter_hooks): Remove handling of
7800 deprecated_init_ui_hook.
7801 * main.c (captured_main): Update comment.
7802
7803 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7804
7805 * solib.c (_initialize_solib): Add "info dll" alias creation.
7806 * windows-nat.c (set_windows_aliases): Delete.
7807 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7808 assignment.
7809 * NEWS: Add news entry about "info dll" now being available
7810 on all platforms.
7811
7812 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7813
7814 * ada-lang.c (value_assign_to_component): Reformat and improve
7815 documentation. Remove all trailing spaces.
7816
7817 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7818
7819 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7820 Stop counting inlined frames as soon as an out-of-line function
7821 is found.
7822
7823 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
7824
7825 * dwarf2read.c (inherit_abstract_dies): Skip
7826 DW_TAG_GNU_call_site dies while inheriting children of an
7827 abstract DIE into a scope.
7828 (read_lexical_block_scope): Inherit abstract DIE's for
7829 lexical scopes.
7830
7831 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7832
7833 * ada-valprint.c (val_print_packed_array_elements): Delete
7834 variable "len". Add a type-length check when comparing two
7835 consecutive elements of the array. Use the element's actual
7836 length in call to value_contents_eq.
7837 * ada-lang.c (ada_value_primitive_packed_val): Always return
7838 a value whose type has been resolved.
7839
7840 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7841
7842 * ada-lang.c (ada_value_primitive_packed_val): Recompute
7843 BIT_SIZE and LEN if the size of the resolved type is smaller
7844 than BIT_SIZE * HOST_CHAR_BIT.
7845
7846 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7847
7848 * ada-lang.c (ada_value_primitive_packed_val): Use a more
7849 correct address in call to value_at. Adjust call to
7850 value_address accordingly.
7851
7852 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7853
7854 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7855 to print it.
7856
7857 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7858
7859 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7860 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7861 pinfo->valaddr.
7862 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7863 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7864 (resolve_dynamic_type_internal): Set pinfo.valaddr.
7865 Add handling of addr_stack->valaddr.
7866 (resolve_dynamic_type): Add "valaddr" parameter.
7867 Set pinfo.valaddr field.
7868 * ada-lang.c (ada_discrete_type_high_bound): Update call to
7869 resolve_dynamic_type.
7870 (ada_discrete_type_low_bound): Likewise.
7871 * findvar.c (default_read_var_value): Likewise.
7872 * value.c (value_from_contents_and_address): Likewise.
7873
7874 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7875
7876 * gdbtypes.c (resolve_dynamic_array): Use
7877 create_array_type_with_stride instead of create_array_type.
7878
7879 2015-04-30 DJ Delorie <dj@redhat.com>
7880
7881 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7882 rl78_decode_opcode
7883
7884 2015-04-29 Doug Evans <dje@google.com>
7885
7886 PR python/18285
7887 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7888 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7889 EVAL_AVOID_SIDE_EFFECTS for xmethods.
7890 * extension-priv.h (struct extension_language_ops)
7891 <get_xmethod_result_type>: New member.
7892 * extension.c (get_xmethod_result_type): New function.
7893 * extension.h (get_xmethod_result_type): Declare.
7894 * python/py-xmethods.c (get_result_type_method_name): New static
7895 global.
7896 (py_get_result_type_method_name): Ditto.
7897 (gdbpy_get_xmethod_result_type): New function.
7898 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
7899 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
7900 * python/python.c (python_extension_ops): Add
7901 gdbpy_get_xmethod_result_type.
7902 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
7903 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
7904 xmethods.
7905 (value_x_unop): Ditto.
7906 * value.c (result_type_of_xmethod): New function.
7907 * value.h (result_type_of_xmethod): Declare.
7908
7909 2015-04-29 Gary Benson <gbenson@redhat.com>
7910
7911 * solib.c (solib_find_1): Allow fd argument to be NULL.
7912 (exec_file_find): Update comment.
7913 (solib_find): Likewise.
7914 * exec.c (exec_file_locate_attach): Use NULL as fd
7915 argument to exec_file_find to avoid having to close
7916 the opened file.
7917 * infrun.c (follow_exec): Likewise.
7918
7919 2015-04-28 Doug Evans <dje@google.com>
7920
7921 PR python/18299
7922 * python/lib/gdb/printing.py (register_pretty_printer): Handle
7923 name or __name__ attributes. Handle gdb module as first argument.
7924
7925 2015-04-28 Doug Evans <dje@google.com>
7926
7927 PR python/18089
7928 * python/py-prettyprint.c (print_children): Verify result of children
7929 iterator. Provide better error message.
7930 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
7931 * python/python.c (gdbpy_print_python_errors_p): New function.
7932
7933 2015-04-28 Doug Evans <dje@google.com>
7934
7935 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
7936
7937 2015-04-28 Sasha Smundak <asmundak@google.com>
7938
7939 * NEWS: Mention gdb.Type.optimized_out method.
7940 * python/py-type.c (typy_optimized_out): New function.
7941
7942 2015-04-28 John Baldwin <jhb@FreeBSD.org>
7943
7944 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7945
7946 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7947
7948 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
7949 (initialize_utils): Move call of init_page_info() to ...
7950 * top.c (gdb_init): ... here.
7951
7952 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7953
7954 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
7955 (tui_sigwinch_handler): Still update our idea of
7956 the terminal's width and height even when TUI is not active.
7957
7958 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7959
7960 * utils.h (set_screen_width_and_height): Declare.
7961 * utils.c (set_screen_width_and_height): Define.
7962 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
7963
7964 2015-04-28 Gary Benson <gbenson@redhat.com>
7965
7966 * infrun.c (solist.h): New include.
7967 (follow_exec): Use exec_file_find to prefix execd_pathname
7968 with gdb_sysroot.
7969
7970 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7971
7972 * tui/tui-source.c (tui_set_source_content): Avoid calling
7973 strcpy() when offset is 0.
7974
7975 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7976
7977 PR gdb/18155
7978 * tui/tui-data.c (tui_free_window): Don't free the locator
7979 window when passed an SRC_WIN or a DISASSEM_WIN.
7980
7981 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7982
7983 * tui/tui-data.h (struct tui_win_element): Forward-declare.
7984 (tui_win_content): Move declaration.
7985 (struct tui_gen_win_info): Give 'content' field the
7986 type tui_win_content.
7987 * tui/tui-data.c (init_content_element): Remove redundant and
7988 erroneous casts.
7989 (tui_add_content_elements): Remove erroneous cast.
7990 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
7991 casts.
7992 (tui_get_begin_asm_address): Likewise.
7993 * tui/tui-regs.c (tui_show_registers): Likewise.
7994 (tui_show_register_group): Likewise.
7995 (tui_display_registers_from): Likewise.
7996 (tui_check_register_values): Likewise.
7997 * tui/tui-source.c (tui_set_source_content): Likewise.
7998 (tui_set_source_content_nil): Likewise.
7999 (tui_source_is_displayed): Likewise.
8000 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8001 (tui_set_locator_fullname): Likewise.
8002 (tui_set_locator_info): Likewise.
8003 (tui_show_frame_info): Likewise.
8004 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8005 (tui_show_source_line): Likewise.
8006 (tui_horizontal_source_scroll): Likewise.
8007 (tui_update_breakpoint_info): Likewise.
8008 (tui_set_exec_info_content): Likewise.
8009 (tui_show_exec_info_content): Likewise.
8010 (tui_alloc_source_buffer): Likewise.
8011 (tui_line_is_displayed): Likewise.
8012 (tui_addr_is_displayed): Likewise.
8013
8014 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8015
8016 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8017 event if PL_FLAG_EXEC is set.
8018 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8019 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8020 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8021 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8022 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8023
8024 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8025
8026 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8027 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8028 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8029 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8030 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8031 [PT_LWPINFO] (fbsd_wait): New function.
8032 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8033 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8034 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8035 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8036 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8037 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8038 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8039 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8040 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8041 "fbsd_wait".
8042 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8043 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8044 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8045 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8046 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8047 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8048 Set "to_post_attach" to "fbsd_post_attach".
8049
8050 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8051
8052 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8053 (fbsd_find_memory_regions): Mark static.
8054 (fbsd_nat_add_target): New function.
8055 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8056 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8057 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8058 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8059 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8060 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8061
8062 2015-04-27 Gary Benson <gbenson@redhat.com>
8063
8064 * objfiles.c (allocate_objfile): Do not attempt to expand name
8065 if name is a "target:" filename.
8066 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8067 to load auto-load scripts for objfiles with "target:" filenames.
8068
8069 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8070
8071 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8072 (enum s390_vector_abi_kind): New enum.
8073 (struct gdbarch_tdep)<vector_abi>: New field.
8074 (s390_effective_inner_type): Add parameter min_size. Stop
8075 unwrapping if the inner type is smaller than min_size.
8076 (s390_function_arg_float): Adjust call to
8077 s390_effective_inner_type.
8078 (s390_function_arg_vector): New function.
8079 (s390_function_arg_integer): Adjust comment.
8080 (struct s390_arg_state)<vr>: New field.
8081 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8082 arguments according to vector ABI when appropriate.
8083 (s390_push_dummy_call): Initialize the argument state's field
8084 'vr'. Adjust calls to s390_handle_arg.
8085 (s390_register_return_value): Handle vector return values.
8086 (s390_return_value): Apply the "register" return value convention
8087 to a vector when appropriate.
8088 (s390_gdbarch_init): Initialize tdep->vector_abi.
8089 * NEWS: Announce S390 vector ABI support.
8090
8091 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8092
8093 * s390-linux-tdep.c (s390_return_value_convention): Remove
8094 function. Inline its logic...
8095 (s390_return_value): ...here. Instead, move the handling of the
8096 "register" return value convention...
8097 (s390_register_return_value): ...here. New function.
8098
8099 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8100
8101 * s390-linux-tdep.c
8102 (is_float_singleton): Remove function. Move the "singleton" part
8103 of the logic...
8104 (s390_effective_inner_type): ...here. New function.
8105 (is_float_like): Remove function. Inline its logic...
8106 (s390_function_arg_float): ...here.
8107 (is_pointer_like, is_integer_like, is_struct_like): Remove
8108 functions. Inline their logic...
8109 (s390_function_arg_integer): ...here.
8110 (s390_function_arg_pass_by_reference): Remove function.
8111 (extend_simple_arg): Remove function.
8112 (alignment_of): Remove function.
8113 (struct s390_arg_state): New structure.
8114 (s390_handle_arg): New function.
8115 (s390_push_dummy_call): Move parameter placement logic to the new
8116 function s390_handle_arg. Call it for calculating the stack area
8117 sizes first, and again for actually writing the parameters.
8118
8119 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8120
8121 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8122 false if the argument is zero.
8123
8124 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8125
8126 * ada-lang.c (template_to_static_fixed_type): Return input type
8127 when it is already fixed. Cache the input type itself when not
8128 creating a static fixed copy. Make it explicit that we never
8129 molestate the input type.
8130 * gdbtypes.c (resolve_dynamic_struct): Reset the
8131 TYPE_TARGET_TYPE field for resolved copies.
8132
8133 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8134
8135 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8136 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8137 (template_to_static_fixed_type): Call ada_check_typedef only
8138 when necessary.
8139
8140 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8141
8142 * cli/cli-dump.c (srec_dump_command): Add internationalization
8143 mark ups.
8144 (ihex_dump_command): Likewise.
8145 (tekhex_dump_command): Likewise.
8146 (binary_dump_command): Likewise.
8147 (binary_append_command): Likewise.
8148
8149 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8150
8151 * cli/cli-dump.c (verilog_cmdlist): New variable.
8152 (dump_verilog_memory): New function.
8153 (dump_verilog_value): New function.
8154 (verilog_dump_command): New function.
8155 (_initialize_cli_dump): Add new commands to support verilog dump
8156 format.
8157 * NEWS: Add entry for "dump verilog".
8158
8159 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8160
8161 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8162 descriptive type when there is none.
8163
8164 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8165
8166 * tui/tui-win.c (tui_async_resize_screen): Call
8167 rl_resize_terminal().
8168
8169 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8170
8171 * windows-nat.c (handle_output_debug_string): Don't change
8172 current_event.dwThreadId.
8173 (get_windows_debug_event): Use thread_id, rather than relying on
8174 current_event.dwThreadId being changed.
8175
8176 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8177
8178 * windows-nat.c (windows_continue): Report an error if
8179 ContinueDebugEvent() fails.
8180
8181 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8182
8183 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8184
8185 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8186
8187 * windows-nat.c (get_windows_debug_event): Replace retval with
8188 thread_id throughout. Update stale comment.
8189
8190 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8191
8192 * windows-nat.c (get_windows_debug_event): Don't use ternary
8193 conditional operator.
8194
8195 2015-04-21 Pierre Muller <muller@sourceware.org>
8196
8197 PR pascal/17815
8198 p-exp.y (yylex): Reorganize code to return the matched pattern
8199 for a field of this.
8200
8201 2015-04-21 Gary Benson <gbenson@redhat.com>
8202
8203 * common/fileio.h (fileio_to_host_openflags): New declaration.
8204 * common/fileio.c (fcntl.h): New include.
8205 (fileio_to_host_openflags): New function, factored out from...
8206 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8207 Single use updated.
8208
8209 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8210
8211 * rl78-tdep.c (RL78_SP_ADDR): Define.
8212 (opc_reg_to_gdb_regnum): New static function.
8213 (rl78_analyze_prologue): Recognize instructions forming slightly
8214 more interesting prologues.
8215
8216 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8217
8218 Revert:
8219 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8220 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8221 TYPE_CODE_REF types so that they are not considered as dynamic
8222 depending on the referenced type.
8223 (resolve_dynamic_type_internal): Likewise.
8224
8225 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8226
8227 Revert:
8228 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8229 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8230 "top_level" parameter.
8231 (resolve_dynamic_type_internal): Remove the unused "top_level"
8232 parameter. Update call to is_dynamic_type_internal.
8233 (is_dynamic_type): Update call to is_dynamic_type_internal.
8234 (resolve_dynamic_range): Update call to
8235 resolve_dynamic_type_internal.
8236 (resolve_dynamic_union): Likewise.
8237 (resolve_dynamic_struct): Likewise.
8238 (resolve_dynamic_type): Likewise.
8239
8240 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8241
8242 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8243 xmalloc.
8244
8245 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8246
8247 * reply_mig_hack.awk: Robustify parsing.
8248
8249 * reply_mig_hack.awk: Don't bother to declare an intermediate
8250 function pointer variable.
8251
8252 2015-04-17 Doug Evans <dje@google.com>
8253
8254 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8255 to "exec_displacement" to avoid confusion with inner use of the name.
8256
8257 2015-04-17 Pedro Alves <palves@redhat.com>
8258
8259 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8260 if HW point of TYPE isn't supported.
8261
8262 2015-04-17 Yao Qi <yao.qi@linaro.org>
8263 Pedro Alves <palves@redhat.com>
8264
8265 * target.h (target_can_use_hardware_watchpoint): Update comments.
8266 Remove trailing ";".
8267
8268 2015-04-17 Gary Benson <gbenson@redhat.com>
8269
8270 * remote.c (remote_add_inferior): New argument try_open_exec.
8271 If nonzero, attempt to open the inferior's executable file as
8272 the main executable if no main executable is open already.
8273 All callers updated.
8274 * NEWS: Mention that GDB now supports automatic location and
8275 retrieval of executable + files from remote targets.
8276
8277 2015-04-17 Gary Benson <gbenson@redhat.com>
8278
8279 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8280 * remote.c (PACKET_qXfer_exec_file): Likewise.
8281 (remote_protocol_features): Register the
8282 "qXfer:exec-file:read" feature.
8283 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8284 (remote_pid_to_exec_file): New function.
8285 (init_remote_ops): Initialize to_pid_to_exec_file.
8286 (_initialize_remote): Register new "set/show remote
8287 pid-to-exec-file-packet" command.
8288 * NEWS: Announce new qXfer:exec-file:read packet.
8289
8290 2015-04-17 Gary Benson <gbenson@redhat.com>
8291
8292 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8293 New declaration.
8294 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8295 New function, factored out from...
8296 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8297
8298 2015-04-17 Gary Benson <gbenson@redhat.com>
8299
8300 * exec.c (solist.h): New include.
8301 (exec_file_locate_attach): Prefix absolute executable
8302 paths with gdb_sysroot if set.
8303 * NEWS: Mention that executable paths may be prepended
8304 with sysroot.
8305
8306 2015-04-17 Gary Benson <gbenson@redhat.com>
8307
8308 * solist.h (exec_file_find): New declaration.
8309 * solib.c (solib_find_1): New function, factored out from...
8310 (solib_find): ...here.
8311 (exec_file_find): New function.
8312
8313 2015-04-17 Gary Benson <gbenson@redhat.com>
8314
8315 * gdbcore.h (exec_file_locate_attach): New declaration.
8316 * exec.c (exec_file_locate_attach): New function, factored
8317 out from...
8318 * infcmd.c (attach_command_post_wait): ...here.
8319
8320 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8321
8322 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8323
8324 2015-04-16 Yao Qi <yao.qi@linaro.org>
8325
8326 * infrun.c (maybe_software_singlestep): Declare.
8327 (displaced_step_fixup): Call maybe_software_singlestep.
8328
8329 2015-04-15 Doug Evans <dje@google.com>
8330
8331 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8332
8333 2015-04-15 Doug Evans <dje@google.com>
8334
8335 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8336
8337 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8338
8339 * python/lib/gdb/command/unwinders.py: Add parentheses.
8340
8341 2015-04-15 Yao Qi <yao.qi@linaro.org>
8342
8343 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8344
8345 2015-04-15 Yao Qi <yao.qi@linaro.org>
8346
8347 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8348
8349 2015-04-15 Yao Qi <yao.qi@linaro.org>
8350
8351 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8352 dsc->insn_size instead of 4.
8353
8354 2015-04-14 Gary Benson <gbenson@redhat.com>
8355
8356 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8357 * minidebug.c (lzma_stat): Likewise.
8358 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8359 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8360
8361 2015-04-13 Stan Shebs <stanshebs@google.com>
8362
8363 * MAINTAINERS: Update my email address.
8364
8365 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8366
8367 * amd64-tdep.c (amd64_target_description): New function.
8368 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8369 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8370 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8371 x86 extended save area.
8372 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8373 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8374 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8375 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8376 "amd64fbsd_read_description".
8377 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8378 (amd64fbsd_supply_xstateregset): New function.
8379 (amd64fbsd_collect_xstateregset): New function.
8380 Add "amd64fbsd_xstateregset".
8381 (amd64fbsd_iterate_over_regset_sections): New function.
8382 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8383 "I386_FBSD_XSAVE_XCR0_OFFSET".
8384 Add "iterate_over_regset_sections" gdbarch method.
8385 Add "core_read_description" gdbarch method.
8386 * i386-tdep.c (i386_target_description): New function.
8387 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8388 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8389 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8390 x86 extended save area.
8391 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8392 * i386bsd-nat.h: Export i386bsd_xsave_len.
8393 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8394 (_initialize_i386fbsd_nat): Set "to_read_description" to
8395 "i386fbsd_read_description".
8396 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8397 (i386fbsd_core_read_description): New function.
8398 (i386fbsd_supply_xstateregset): New function.
8399 (i386fbsd_collect_xstateregset): New function.
8400 Add "i386fbsd_xstateregset".
8401 (i386fbsd_iterate_over_regset_sections): New function.
8402 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8403 "I386_FBSD_XSAVE_XCR0_OFFSET".
8404 Add "iterate_over_regset_sections" gdbarch method.
8405 Add "core_read_description" gdbarch method.
8406 * i386fbsd-tdep.h: New file.
8407
8408 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8409
8410 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8411 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8412 conditional.
8413 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8414 and lb.
8415 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8416 va.
8417 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8418 conditional.
8419 * defs.h (xdb_commands): Remove declaration.
8420 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8421 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8422 * infcmd.c (run_no_args_command, go_command): Remove.
8423 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8424 * infrun.c (xdb_handle_command): Remove.
8425 (_initialize_infrun): Remove xdb_commands for lz and z.
8426 * main.c (xdb_commands): Remove variable.
8427 (captured_main): Remove "xdb" from long_options.
8428 (print_gdb_help): Remove --xdb from help.
8429 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8430 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8431 * stack.c (backtrace_full_command, args_plus_locals_info)
8432 (current_frame_command): Remove.
8433 (_initialize_stack): Remove xdb_commands for t, T and l.
8434 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8435 * thread.c (_initialize_thread): Remove xdb_commands condition.
8436 * tui/tui-layout.c (tui_toggle_layout_command)
8437 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8438 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8439 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8440 (tui_scroll_regs_backward_command): Remove.
8441 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8442 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8443 (_initialize_tui_win): Remove xdb_commands for U and w.
8444 * utils.c (pagination_on_command, pagination_off_command): Remove.
8445 (initialize_utils): Remove xdb_commands for am and sm.
8446
8447 2015-04-10 Pedro Alves <palves@redhat.com>
8448
8449 * infrun.c (displaced_step_fixup): Switch to the event ptid
8450 earlier. If the thread stopped for a watchpoint and the
8451 target/arch has non-continuable watchpoints, cancel the displaced
8452 step.
8453 (resume): Don't start a displaced step if in-line step-over info
8454 is valid.
8455
8456 2015-04-10 Pedro Alves <palves@redhat.com>
8457
8458 * infrun.c (displaced_step_in_progress): New function.
8459 (do_target_resume): Advise target to report all signals if
8460 displaced stepping.
8461
8462 2015-04-10 Pedro Alves <palves@redhat.com>
8463
8464 PR gdb/18216
8465 * infrun.c (process_event_stop_test): Don't assume a step-resume
8466 is set if tp->stepped_breakpoint is true.
8467
8468 2015-04-10 Yao Qi <yao.qi@linaro.org>
8469
8470 * arm-tdep.c (install_alu_reg): Update comment.
8471 (thumb_copy_alu_reg): Remove local variable rn. Update
8472 debugging message. Use r2 instead of r1 in the modified
8473 instruction.
8474
8475 2015-04-10 Pedro Alves <palves@redhat.com>
8476
8477 PR gdb/13858
8478 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8479 linux_displaced_step_location as gdbarch_displaced_step_location
8480 hook.
8481 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8482 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8483 * linux-tdep.c (linux_displaced_step_location): New function,
8484 based on ppc_linux_displaced_step_location.
8485 * linux-tdep.h (linux_displaced_step_location): New declaration.
8486 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8487 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8488 Delete.
8489 (ppc_linux_init_abi): Install linux_displaced_step_location as
8490 gdbarch_displaced_step_location hook, even without Cell/B.E..
8491 (_initialize_ppc_linux_tdep): Don't install
8492 ppc_linux_inferior_created as inferior_created observer.
8493 * s390-linux-tdep.c (s390_gdbarch_init): Install
8494 linux_displaced_step_location as gdbarch_displaced_step_location
8495 hook.
8496
8497 2015-04-09 Gary Benson <gbenson@redhat.com>
8498
8499 * common/common-remote-fileio.h: Rename to...
8500 * common/fileio.h: ...this. Update all references.
8501 (remote_fileio_to_fio_error): Rename to...
8502 (host_to_fileio_error): ...this.
8503 (remote_fileio_to_be): Rename to...
8504 (host_to_bigendian): ...this. Update all callers.
8505 (remote_fileio_to_fio_uint): Rename to...
8506 (host_to_fileio_uint): ...this. Update all callers.
8507 (remote_fileio_to_fio_time): Rename to...
8508 (host_to_fileio_time): ...this. Update all callers.
8509 (remote_fileio_to_fio_stat): Rename to...
8510 (host_to_fileio_stat): ...this.
8511 Update all references.
8512 * common/common-remote-fileio.c: Rename to...
8513 * common/fileio.c: ...this. Update all references.
8514 (remote_fileio_to_fio_error): Rename to...
8515 (host_to_fileio_error): ...this. Update all callers.
8516 (remote_fileio_mode_to_target): Rename to...
8517 (fileio_mode_pack): ...this. Update all callers.
8518 (remote_fileio_to_fio_mode): Rename to...
8519 (host_to_fileio_mode): ...this. Update all callers.
8520 (remote_fileio_to_fio_ulong): Rename to...
8521 (host_to_fileio_ulong): ...this. Update all callers.
8522 (remote_fileio_to_fio_stat): Rename to...
8523 (host_to_fileio_stat): ...this. Update all callers.
8524
8525 2015-04-09 Andy Wingo <wingo@igalia.com>
8526
8527 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8528 (frame_functions): Bind gdbscm_frame_read_register to
8529 frame-read-register.
8530 * guile/lib/gdb.scm (frame-read-register): Export.
8531
8532 2015-04-09 Gary Benson <gbenson@redhat.com>
8533
8534 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8535 New declaration.
8536 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8537 New function, factored out the named functions below.
8538 * inf-child.c (gdb/fileio.h): Remove include.
8539 (common-remote-fileio.h): New include.
8540 (inf_child_errno_to_fileio_error): Remove function. Update
8541 all callers to use remote_fileio_to_fio_error.
8542 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8543
8544 2015-04-09 Andy Wingo <wingo@igalia.com>
8545
8546 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8547
8548 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8549
8550 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8551 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8552 * configure: Regenerated.
8553
8554 2015-04-09 Pedro Alves <palves@redhat.com>
8555
8556 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8557 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8558 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8559 * gnulib/import/Makefile.am: Update.
8560 * gnulib/import/Makefile.in: Update.
8561 * gnulib/import/m4/gnulib-cache.m4: Update.
8562 * gnulib/import/m4/gnulib-comp.m4: Update.
8563 * gnulib/import/m4/strtok_r.m4: New file.
8564 * gnulib/import/strtok_r.c: New file.
8565
8566 2015-04-09 Pedro Alves <palves@redhat.com>
8567
8568 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8569 "called too early to check prototype".
8570
8571 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8572
8573 PR python/16699
8574 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8575 use a caching mechanism. Adjust comments and code to reflect
8576 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8577 (cmdpy_completer_handle_brkchars): Adjust call to
8578 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8579 (cmdpy_completer): Likewise.
8580
8581 2015-04-08 Yao Qi <yao.qi@linaro.org>
8582
8583 * spu-tdep.c (spu_gdbarch_init): Don't call
8584 set_gdbarch_cannot_step_breakpoint.
8585
8586 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8587
8588 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8589
8590 2015-04-07 Pedro Alves <palves@redhat.com>
8591
8592 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8593 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8594 (delete_exited_threads): New declaration.
8595 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8596 * linux-nat.c (linux_nat_update_thread_list): New function.
8597 (linux_nat_add_target): Install it.
8598 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8599 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8600 (delete_exited_threads): New function.
8601
8602 2015-04-07 Pedro Alves <pedro@codesourcery.com>
8603
8604 * infrun.c (resume) <displaced stepping debug output>: Get the
8605 leader thread's regcache, not resume_ptid's.
8606
8607 2015-04-06 Doug Evans <xdje42@gmail.com>
8608
8609 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8610 VAR_DOMAIN.
8611 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8612 Include symbol domain in debugging output.
8613
8614 2015-04-06 Pedro Alves <palves@redhat.com>
8615 Bernd Edlinger <bernd.edlinger@hotmail.de>
8616
8617 * configure.ac: Remove the mingw32-specific stub-termcap.o
8618 fallback, and instead fallback to the stub termcap on all hosts.
8619 * configure: Regenerate.
8620 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8621 symbols.
8622
8623 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8624
8625 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8626 "top_level" parameter.
8627 (resolve_dynamic_type_internal): Remove the unused "top_level"
8628 parameter. Update call to is_dynamic_type_internal.
8629 (is_dynamic_type): Update call to is_dynamic_type_internal.
8630 (resolve_dynamic_range): Update call to
8631 resolve_dynamic_type_internal.
8632 (resolve_dynamic_union): Likewise.
8633 (resolve_dynamic_struct): Likewise.
8634 (resolve_dynamic_type): Likewise.
8635
8636 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8637
8638 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8639 TYPE_CODE_REF types so that they are not considered as dynamic
8640 depending on the referenced type.
8641 (resolve_dynamic_type_internal): Likewise.
8642
8643 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8644
8645 * Makefile.in (top_srcdir): New.
8646 * configure: Regenerated.
8647
8648 2015-04-02 Gary Benson <gbenson@redhat.com>
8649
8650 * NEWS: Announce the new default sysroot of "target:".
8651
8652 2015-04-02 Gary Benson <gbenson@redhat.com>
8653
8654 * main.c (captured_main): Set gdb_sysroot to "target:"
8655 if not otherwise set.
8656
8657 2015-04-02 Gary Benson <gbenson@redhat.com>
8658
8659 * exec.c (exec_file_attach): Support "target:" filenames.
8660
8661 2015-04-02 Gary Benson <gbenson@redhat.com>
8662
8663 * solib.c (solib_find): Strip "target:" prefix from sysroot
8664 if accessing local files.
8665
8666 2015-04-02 Gary Benson <gbenson@redhat.com>
8667
8668 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8669 checks and error messages.
8670
8671 2015-04-02 Gary Benson <gbenson@redhat.com>
8672
8673 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8674 (remote_filename_p): Remove declaration.
8675 (remote_bfd_open): Likewise.
8676 * remote.c (remote_bfd_iovec_open): Remove function.
8677 (remote_bfd_iovec_close): Likewise.
8678 (remote_bfd_iovec_pread): Likewise.
8679 (remote_bfd_iovec_stat): Likewise.
8680 (remote_filename_p): Likewise.
8681 (remote_bfd_open): Likewise.
8682 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8683 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8684 (gdb_bfd_open_maybe_remote): Remove function.
8685 (symfile_bfd_open): Replace remote filename check with
8686 target filename check.
8687 (reread_symbols): Use gdb_bfd_open.
8688 * build-id.c (gdbcore.h): New include.
8689 (build_id_to_debug_bfd): Use gdb_bfd_open.
8690 * infcmd.c (attach_command_post_wait): Remove remote filename
8691 check.
8692 * solib.c (solib_find): Replace remote-specific handling with
8693 target-specific handling. Update comments where necessary.
8694 (solib_bfd_open): Replace remote-specific handling with
8695 target-specific handling.
8696 (gdb_sysroot_changed): New function.
8697 (_initialize_solib): Call the above when gdb_sysroot changes.
8698 * windows-tdep.c (gdbcore.h): New include.
8699 (windows_xfer_shared_library): Use gdb_bfd_open.
8700
8701 2015-04-02 Gary Benson <gbenson@redhat.com>
8702
8703 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8704 (is_target_filename): New declaration.
8705 (gdb_bfd_has_target_filename): Likewise.
8706 (gdb_bfd_open): Update documentation comment.
8707 * gdb_bfd.c (target.h): New include.
8708 (gdb/fileio.h): Likewise.
8709 (is_target_filename): New function.
8710 (gdb_bfd_has_target_filename): Likewise.
8711 (fileio_errno_to_host): Likewise.
8712 (gdb_bfd_iovec_fileio_open): Likewise.
8713 (gdb_bfd_iovec_fileio_pread): Likewise.
8714 (gdb_bfd_iovec_fileio_close): Likewise.
8715 (gdb_bfd_iovec_fileio_fstat): Likewise.
8716 (gdb_bfd_open): Use target fileio to access paths prefixed
8717 with "target:" where necessary.
8718
8719 2015-04-02 Gary Benson <gbenson@redhat.com>
8720
8721 * target.h (struct target_ops) <to_filesystem_is_local>:
8722 New field.
8723 (target_filesystem_is_local): New macro.
8724 * target-delegates.c: Regenerate.
8725 * remote.c (remote_filesystem_is_local): New function.
8726 (init_remote_ops): Initialize to_filesystem_is_local.
8727
8728 2015-04-02 Gary Benson <gbenson@redhat.com>
8729
8730 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8731 (target_fileio_fstat): New declaration.
8732 * target.c (target_fileio_fstat): New function.
8733 * inf-child.c (inf_child_fileio_fstat): Likewise.
8734 (inf_child_target): Initialize to_fileio_fstat.
8735 * remote.c (init_remote_ops): Likewise.
8736
8737 2015-04-01 Sasha Smundak <asmundak@google.com>
8738
8739 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8740 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8741 (py-unwind.o): New recipe.
8742 * NEWS: mention Python frame unwinding.
8743 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8744 gdb/unwinder.py and gdb/command/unwinder.py
8745 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8746 list.
8747 (execute_unwinders): New function.
8748 * python/lib/gdb/command/unwinders.py: New file.
8749 * python/lib/gdb/unwinder.py: New file.
8750 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8751 (objfpy_dealloc): Decrement frame_unwinders reference count.
8752 (objfpy_initialize): Create frame_unwinders list.
8753 (objfpy_get_frame_unwinders): New function.
8754 (objfpy_set_frame_unwinders): Ditto.
8755 (objfile_getset): Add frame_unwinders attribute to Objfile.
8756 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8757 (pspy_dealloc): Decrement frame_unwinders reference count.
8758 (pspy_initialize): Create frame_unwinders list.
8759 (pspy_get_frame_unwinders): New function.
8760 (pspy_set_frame_unwinders): Ditto.
8761 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8762 * python/py-unwind.c: New file.
8763 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8764 (objpy_get_frame_unwinders): New prototype.
8765 (gdbpy_initialize_unwind): New prototype.
8766 * python/python.c (gdbpy_apply_type_printers): Call
8767 gdbpy_initialize_unwind.
8768
8769 2015-04-01 Pedro Alves <palves@redhat.com>
8770
8771 * infrun.c (resume): Check currently_stepping after clearing
8772 stepped_breakpoint, not before.
8773
8774 2015-04-01 Pedro Alves <palves@redhat.com>
8775
8776 * infrun.c (print_target_wait_results): Print all the ptid
8777 elements.
8778
8779 2015-04-01 Pedro Alves <palves@redhat.com>
8780
8781 * infrun.c (keep_going): Also discard cleanups if inserting
8782 breakpoints fails.
8783
8784 2015-04-01 Pedro Alves <palves@redhat.com>
8785
8786 * infrun.c (wait_for_inferior): Install the
8787 finish_thread_state_cleanup cleanup across the whole function, not
8788 just around handle_inferior_event.
8789
8790 2015-04-01 Pedro Alves <palves@redhat.com>
8791
8792 * infrun.c (resume) <step past permanent breakpoint>: Use
8793 do_target_resume.
8794
8795 2015-04-01 Pedro Alves <palves@redhat.com>
8796
8797 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8798
8799 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8800
8801 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8802
8803 2015-04-01 Pedro Alves <palves@redhat.com>
8804
8805 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8806 list if it was marked exited.
8807
8808 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8809
8810 * configure: Regenerated.
8811
8812 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8813 Jan Kratochvil <jan.kratochvil@redhat.com>
8814 Oleg Nesterov <oleg@redhat.com>
8815
8816 PR corefiles/16092
8817 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8818 New enum identifying the various options of the coredump_filter
8819 file.
8820 (struct smaps_vmflags): New struct.
8821 (use_coredump_filter): New variable.
8822 (decode_vmflags): New function.
8823 (mapping_is_anonymous_p): Likewise.
8824 (dump_mapping_p): Likewise.
8825 (linux_find_memory_regions_full): New variables
8826 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8827 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
8828 parsing of its information. Implement memory mapping filtering
8829 based on its contents.
8830 (show_use_coredump_filter): New function.
8831 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8832 * NEWS: Mention the possibility of using the
8833 '/proc/PID/coredump_filter' file when generating a corefile.
8834 Mention new command 'set use-coredump-filter'.
8835
8836 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8837
8838 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8839 read_memory_unsigned_integer.
8840
8841 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
8842
8843 * Makefile.in (ZLIB): New.
8844 (ZLIBINC): Likewise.
8845 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8846 (CLIBS): Add $(ZLIB).
8847 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8848 Add -lz to LIBS.
8849 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8850 * top.c (print_gdb_configuration): Remove --with-zlib and
8851 --without-zlib.
8852 * config.in: Regenerated.
8853 * configure: Likewise.
8854
8855 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8856
8857 * NEWS: Mention info os cpus support.
8858 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8859 (struct osdata_type): Add cpus entry, reorder the entries in
8860 alphabetical order.
8861
8862 2015-03-31 Matthias Klose <doko@ubuntu.com>
8863
8864 * compile/compile.c (compile_to_object): Allow triplets with or
8865 without vendor set.
8866
8867 2015-03-30 Doug Evans <dje@google.com>
8868
8869 PR c++/18141
8870 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8871 klass in VAR_DOMAIN.
8872
8873 2015-03-30 Gary Benson <gbenson@redhat.com>
8874
8875 * remote.c (remote_mourn_1): Remove function. Update all callers
8876 to use remote_mourn.
8877 (extended_remote_mourn_1): Remove function. Update all callers
8878 to use extended_remote_mourn.
8879 (extended_remote_attach_1): Remove function. Update all callers
8880 to use extended_remote_attach.
8881
8882 2015-03-28 James Bowman <james.bowman@ftdichip.com>
8883
8884 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8885 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8886 (ALLDEPFILES): Add ft32-tdep.c.
8887 * configure.tgt: Add FT32 entry.
8888 * ft32-tdep.c: New file, FT32 target-dependent code.
8889 * ft32-tdep.h: New file, FT32 target-dependent code.
8890
8891 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8892
8893 Revert:
8894 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8895 Code cleanup.
8896 * printcmd.c (print_command_1): Move expr variable scope.
8897
8898 2015-03-27 Joel Brobecker <brobecker@adacore.com>
8899
8900 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
8901
8902 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
8903
8904 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
8905 sections.
8906
8907 2015-03-26 Joel Brobecker <brobecker@adacore.com>
8908
8909 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
8910 exception raised while parsing the probe arguments.
8911 Force parsing to be done using the C language parser.
8912 * expression.h (parse_expression_with_language): Declare.
8913 * parse.c (parse_expression_with_language): New function.
8914
8915 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
8916
8917 * MAINTAINERS (Write After Approval): Add "Jon Turney".
8918
8919 2015-03-26 Andy Wingo <wingo@igalia.com>
8920
8921 PR symtab/18148
8922 * dwarf2read.c (struct partial_die_info): Add has_const_value
8923 member.
8924 (add_partial_symbol): Don't punt on symbols that have const_value
8925 attributes.
8926 (read_partial_die): Detect DW_AT_const_value.
8927
8928 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8929
8930 Code cleanup.
8931 * printcmd.c (print_command_1): Move expr variable scope.
8932
8933 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8934
8935 Code cleanup.
8936 * printcmd.c (validate_format): Make the parameter cmdname const.
8937
8938 2015-03-26 Don Breazeal <donb@codesourcery.com>
8939
8940 * remote.c (_initialize_remote): Update comment.
8941
8942 2015-03-26 Pedro Alves <palves@redhat.com>
8943 Jon TURNEY <jon.turney@dronecode.org.uk>
8944
8945 * coffread.c (coff_symfile_read): When constructing the name of an
8946 import stub symbol from import symbol for amd64, only skip the
8947 char after _imp_ if the target is underscored (like i386) and the
8948 char is indeed the target's leading char.
8949
8950 2015-03-25 Pedro Alves <palves@redhat.com>
8951
8952 * target.h <to_async>: Replace 'callback' and 'context' parameters
8953 with boolean 'enable' parameter.
8954 (target_async): Replace CALLBACK and CONTEXT parameters with
8955 boolean ENABLE parameter.
8956 * inf-loop.c (inferior_event_handler): Adjust.
8957 * linux-nat.c (linux_nat_attach, linux_nat_resume)
8958 (linux_nat_resume): Adjust.
8959 (async_client_callback, async_client_context): Delete.
8960 (handle_target_event): Call inferior_event_handler directly.
8961 (linux_nat_async): Replace 'callback' and 'context' parameters
8962 with boolean 'enable' parameter. Adjust. Remove references to
8963 async_client_callback and async_client_context.
8964 (linux_nat_close): Adjust.
8965 * record-btrace.c (record_btrace_async): Replace 'callback' and
8966 'context' parameters with boolean 'enable' parameter. Adjust.
8967 (record_btrace_resume): Adjust.
8968 * record-full.c (record_full_async): Replace 'callback' and
8969 'context' parameters with boolean 'enable' parameter. Adjust.
8970 (record_full_resume, record_full_core_resume): Adjust.
8971 * remote.c (struct remote_state) <async_client_callback,
8972 async_client_context>: Delete fields.
8973 (remote_start_remote, extended_remote_attach_1, remote_resume)
8974 (extended_remote_create_inferior): Adjust.
8975 (remote_async_serial_handler): Call inferior_event_handler
8976 directly.
8977 (remote_async): Replace 'callback' and 'context' parameters with
8978 boolean 'enable' parameter. Adjust.
8979 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
8980 Adjust.
8981 * target-delegates.c: Regenerate.
8982
8983 2015-03-25 Gary Benson <gbenson@redhat.com>
8984 Pedro Alves <palves@redhat.com>
8985
8986 * target.c (fileio_ft_t): New typedef, define object vector.
8987 (fileio_fhandles): New static variable.
8988 (is_closed_fileio_fh): New macro.
8989 (lowest_closed_fd): New static variable.
8990 (acquire_fileio_fd): New function.
8991 (release_fileio_fd): Likewise.
8992 (fileio_fd_to_fh): New macro.
8993 (target_fileio_open): Wrap the file descriptor on success.
8994 (target_fileio_pwrite): Updated to use wrapped file descriptor.
8995 (target_fileio_pread): Likewise.
8996 (target_fileio_close): Likewise.
8997
8998 2015-03-24 Pedro Alves <palves@redhat.com>
8999
9000 * thread.c (thread_apply_all_command): Take exited threads into
9001 account.
9002
9003 2015-03-24 Pedro Alves <palves@redhat.com>
9004
9005 * infrun.c (resume, proceed): Mention
9006 switch_back_to_stepped_thread, not switch_back_to_stepping.
9007
9008 2015-03-24 Pedro Alves <palves@redhat.com>
9009
9010 * infrun.c (user_visible_resume_ptid): Rewrite going from
9011 most-locked to unlocked instead of the opposite. Move comment ...
9012 * infrun.h (user_visible_resume_ptid): ... here.
9013
9014 2015-03-24 Pedro Alves <palves@redhat.com>
9015
9016 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9017 to resume the event lwp. Use the lwp's ptid instead of the passed
9018 in (maybe wildcard) ptid.
9019 (stop_wait_callback): Tweak debug log output.
9020 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9021 TRAP_TRACE.
9022 (linux_nat_filter_event): In debug output, distinguish a
9023 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9024 before trying to resume the lwp.
9025
9026 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9027
9028 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9029 pointer indirection.
9030 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9031 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9032
9033 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9034
9035 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9036 Renames DYN_ATTR_DATA_LOCATION.
9037 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9038 DYN_ATTR_DATA_LOCATION.
9039 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9040 instead of DYN_ATTR_DATA_LOCATION.
9041
9042 2015-03-24 Pedro Alves <palves@redhat.com>
9043
9044 * breakpoint.c (until_break_command): Adjust call to proceed.
9045 * gdbthread.h (struct thread_control_state) <stepping_command>:
9046 New field.
9047 * infcall.c (run_inferior_call): Adjust call to proceed.
9048 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9049 Adjust calls to proceed.
9050 (set_step_frame): Set the current thread's step_start_function
9051 here.
9052 (step_once): Adjust calls to proceed.
9053 (jump_command, signal_command, until_next_command)
9054 (finish_backward, finish_forward, proceed_after_attach_callback)
9055 (attach_command_post_wait): Adjust calls to proceed.
9056 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9057 (do_target_resume): New function, factored out from ...
9058 (resume): ... here. Remove 'step' parameter. Instead, check
9059 currently_stepping to determine whether the thread should be
9060 single-stepped.
9061 (proceed): Remove 'step' parameter and don't set the thread's
9062 step_start_function here. Adjust call to 'resume'.
9063 (handle_inferior_event): Adjust calls to 'resume'.
9064 (switch_back_to_stepped_thread): Use do_target_resume instead of
9065 'resume'.
9066 (keep_going): Adjust calls to 'resume'.
9067 * infrun.h (proceed): Remove 'step' parameter.
9068 (resume): Likewise.
9069 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9070 'resume'.
9071 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9072
9073 2015-03-24 Pedro Alves <palves@redhat.com>
9074
9075 * gdbthread.h (struct thread_control_state) <stepping_command>:
9076 New field.
9077 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9078 the thread's stepping_command field.
9079 * infrun.c (resume): Check the thread's stepping_command flag to
9080 determine which threads should be resumed. Rename 'entry_step'
9081 local to user_step.
9082 (clear_proceed_status_thread): Clear 'stepping_command'.
9083 (schedlock_applies): Change parameter type to struct thread_info
9084 pointer. Adjust.
9085 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9086 (switch_back_to_stepped_thread): Adjust calls to
9087 'schedlock_applies'.
9088 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9089
9090 2015-03-24 Pedro Alves <palves@redhat.com>
9091
9092 * infrun.c (step_start_function): Delete and ...
9093 * gdbthread.h (struct thread_control_state) <step_start_function>:
9094 ... now a field here.
9095 * infrun.c (clear_proceed_status_thread): Clear the thread's
9096 step_start_function.
9097 (proceed, process_event_stop_test, print_stop_event): Adjust.
9098
9099 2015-03-24 Pedro Alves <palves@redhat.com>
9100
9101 * infrun.c (proceed): No longer handle negative step.
9102
9103 2015-03-24 Gary Benson <gbenson@redhat.com>
9104
9105 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9106 (x86_linux_prepare_to_resume): Likewise.
9107 * x86-linux-nat.c (x86_linux_new_thread):
9108 Moved to nat/x86-linux.c.
9109 (x86_linux_prepare_to_resume): Likewise.
9110 * nat/x86-linux.c (x86_linux_new_thread): New function.
9111 (x86_linux_prepare_to_resume): Likewise.
9112
9113 2015-03-24 Gary Benson <gbenson@redhat.com>
9114
9115 * nat/x86-linux-dregs.h: New file.
9116 * nat/x86-linux-dregs.c: Likewise.
9117 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9118 (x86-linux-dregs.o): New rule.
9119 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9120 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9121 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9122 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9123 (x86_linux_dr_get): Likewise.
9124 (x86_linux_dr_set): Likewise.
9125 (x86_linux_dr_get_addr): Likewise.
9126 (x86_linux_dr_get_control): Likewise.
9127 (x86_linux_dr_get_status): Likewise.
9128 (update_debug_registers_callback): Likewise.
9129 (x86_linux_dr_set_control): Likewise.
9130 (x86_linux_dr_set_addr): Likewise.
9131 (x86_linux_update_debug_registers): Likewise.
9132
9133 2015-03-24 Gary Benson <gbenson@redhat.com>
9134
9135 * x86-linux-nat.c (x86_linux_update_debug_registers):
9136 New function, factored out from...
9137 (x86_linux_prepare_to_resume): ...this.
9138
9139 2015-03-24 Gary Benson <gbenson@redhat.com>
9140
9141 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9142 (x86_linux_dr_set): Likewise.
9143 (x86_linux_dr_get_addr): Likewise.
9144 (x86_linux_dr_get_control): Likewise.
9145 (x86_linux_dr_get_status): Likewise.
9146 (update_debug_registers_callback): Likewise.
9147 (x86_linux_dr_set_control): Likewise.
9148 (x86_linux_dr_set_addr): Likewise.
9149 (x86_linux_prepare_to_resume): Likewise.
9150 (x86_linux_new_thread): Likewise.
9151
9152 2015-03-24 Gary Benson <gbenson@redhat.com>
9153
9154 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9155 (x86_linux_new_thread): Rename argument.
9156
9157 2015-03-24 Gary Benson <gbenson@redhat.com>
9158
9159 * nat/x86-linux.h: New file.
9160 * nat/x86-linux.c: Likewise.
9161 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9162 (x86-linux.o): New rule.
9163 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9164 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9165 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9166 (lwp_set_arch_private_info): New declaration.
9167 (lwp_arch_private_info): Likewise.
9168 * linux-nat.c (lwp_set_arch_private_info): New function.
9169 (lwp_arch_private_info): Likewise.
9170 * x86-linux-nat.c: Include nat/x86-linux.h.
9171 (arch_lwp_info): Removed structure.
9172 (update_debug_registers_callback):
9173 Use lwp_set_debug_registers_changed.
9174 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9175 and lwp_set_debug_registers_changed.
9176 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9177
9178 2015-03-24 Gary Benson <gbenson@redhat.com>
9179
9180 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9181 (lwp_is_stopped): Likewise.
9182 (lwp_stop_reason): Likewise.
9183 * linux-nat.c (ptid_of_lwp): New function.
9184 (lwp_is_stopped): Likewise.
9185 (lwp_is_stopped_by_watchpoint): Likewise.
9186 * x86-linux-nat.c (update_debug_registers_callback):
9187 Use lwp_is_stopped.
9188 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9189 lwp_stop_reason.
9190
9191 2015-03-24 Gary Benson <gbenson@redhat.com>
9192
9193 * linux-nat.h (linux_stop_lwp): Move declaration to...
9194 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9195
9196 2015-03-24 Gary Benson <gbenson@redhat.com>
9197
9198 * linux-nat.h: Include nat/linux-nat.h.
9199 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9200 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9201 (iterate_over_lwps_ftype): New typedef.
9202 (iterate_over_lwps): New declaration.
9203 * linux-nat.h (iterate_over_lwps): Update comment. Use
9204 iterate_over_lwps_ftype. Update callback return value check.
9205
9206 2015-03-24 Gary Benson <gbenson@redhat.com>
9207
9208 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9209 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9210
9211 2015-03-24 Gary Benson <gbenson@redhat.com>
9212
9213 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9214 * linux-nat.c (current_lwp_ptid): New function.
9215 * x86-linux-nat.c: Include nat/linux-nat.h.
9216 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9217 (x86_linux_dr_get_control): Likewise.
9218 (x86_linux_dr_get_status): Likewise.
9219 (x86_linux_dr_set_control): Likewise.
9220 (x86_linux_dr_set_addr): Likewise.
9221
9222 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9223
9224 PR breakpoints/16466
9225 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9226
9227 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9228
9229 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9230 * ser-unix.c (hardwire_setparity): Likewise.
9231
9232 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9233
9234 * NEWS: Mention set/show serial parity command.
9235 * monitor.c (monitor_open): Call serial_setparity.
9236 * remote.c (remote_open_1): Likewise.
9237 * ser-base.c (ser_base_serparity): New function.
9238 * ser-base.h (ser_base_setparity): Add declaration.
9239 * ser-go32.c (dos_ops): Set "setparity" field.
9240 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9241 state.Parity.
9242 (ser_windows_setparity): New function.
9243 (hardwire_ops): Add ser_windows_setparity.
9244 (tty_ops): Add NULL for setparity field.
9245 (pipe_ops): Add ser_base_setparity.
9246 (tcp_ops): Likewise.
9247 * ser-pipe.c (pipe_ops): Likewise.
9248 * ser-tcp.c (tcp_ops): Likewise.
9249 * ser-unix.c (hardwire_setparity): Add declaration.
9250 (hardwire_raw): Don't reset PARENB flag.
9251 (hardwire_setparity): New function.
9252 (hardwire_ops): Add hardwire_setparity.
9253 * serial.c (serial_setparity): New function.
9254 (serial_parity): New global.
9255 (parity_none, parity_odd, parity_even, parity_enums, parity):
9256 New static globals.
9257 (set_parity): New function.
9258 (_initialize_serial): Add set/show serial parity commands.
9259 * serial.h (GDBPARITY_NONE): Define.
9260 (GDBPARITY_ODD): Define.
9261 (GDBPARITY_EVEN): Define.
9262 (serial_setparity) Add declaration.
9263 (struct serial_ops): Add setparity field.
9264 * target.h (serial_parity): Add declaration.
9265
9266 2015-03-23 Keith Seitz <keiths@redhat.com>
9267
9268 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9269
9270 2015-03-23 Keith Seitz <keiths@redhat.com>
9271
9272 * breakpoint.c (parse_breakpoint_sals): Use
9273 linespec_lexer_lex_keyword to ascertain if the user specified
9274 a NULL location.
9275 * linespec.c [IF_KEYWORD_INDEX]: Define.
9276 (linespec_lexer_lex_keyword): Export.
9277 (struct ls_parser) <keyword_ok>: Remove.
9278 A keyword is only a keyword if not followed by another keyword.
9279 (linespec_lexer_lex_one): Remove keyword_ok handling.
9280 Add comment explaining why the parsing stream is not advanced
9281 when a keyword is seen.
9282 (parse_linespec): Remove parser->keyword_ok.
9283 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9284
9285 2015-03-23 Keith Seitz <keiths@redhat.com>
9286
9287 PR gdb/18021
9288 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9289 if we find a static method with DW_AT_vtable_elem_location.
9290
9291 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9292
9293 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9294 before the second loop, to avoid undefined behavior. Reported by
9295 Anton Blanchard <anton@samba.org>.
9296
9297 2015-03-20 Keven Boell <keven.boell@intel.com>
9298
9299 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9300 data_location usage to linked list.
9301 (resolve_dynamic_type_internal): Adapt data_location to
9302 linked list.
9303 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9304 (copy_type_recursive, copy_type): Add copy of linked list.
9305 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9306 (struct dynamic_prop_list): New struct.
9307 * dwarf2read.c (set_die_type): Set data_location data.
9308
9309 2015-03-20 Pedro Alves <palves@redhat.com>
9310
9311 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9312 inner block and make it const.
9313 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9314
9315 2015-03-20 Pedro Alves <palves@redhat.com>
9316
9317 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9318 * breakpoint.h (set_breakpoint_condition): Update declaration.
9319
9320 2015-03-20 Pedro Alves <palves@redhat.com>
9321
9322 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9323
9324 2015-03-20 Pedro Alves <palves@redhat.com>
9325
9326 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9327
9328 2015-03-20 Pedro Alves <palves@redhat.com>
9329
9330 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9331
9332 2015-03-20 Pedro Alves <palves@redhat.com>
9333
9334 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9335 (nto_init_solib_absolute_prefix): Likewise.
9336
9337 2015-03-20 Pedro Alves <palves@redhat.com>
9338
9339 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9340 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9341
9342 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9343
9344 * config/djgpp/README: Remove gdb.hp.
9345
9346 2015-03-20 Yao Qi <yao.qi@linaro.org>
9347
9348 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9349 set_gdbarch_cannot_step_breakpoint.
9350
9351 2015-03-19 Pedro Alves <palves@redhat.com>
9352
9353 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9354 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9355 instead call perror_with_name.
9356 (check_ptrace_stopped_lwp_gone): New function.
9357 (linux_resume_one_lwp): Reimplement as wrapper around
9358 linux_resume_one_lwp_throw that swallows errors if the LWP is
9359 gone.
9360 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9361 swallows errors if the LWP is gone. Use
9362 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9363
9364 2015-03-19 Pedro Alves <palves@redhat.com>
9365
9366 * linux-nat.c (status_callback): Return early if the LWP has no
9367 status pending.
9368
9369 2015-03-19 Pedro Alves <palves@redhat.com>
9370
9371 * linux-nat.c (select_event_lwp_callback): Update comment to no
9372 longer mention SIGTRAP.
9373
9374 2015-03-18 Tristan Gingold <gingold@adacore.com>
9375
9376 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9377 redirection code to ...
9378 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9379 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9380
9381 2015-03-18 Gary Benson <gbenson@redhat.com>
9382
9383 (remote_protocol_features): Remove the "vFile:fstat" feature.
9384 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9385
9386 2015-03-11 Yao Qi <yao.qi@linaro.org>
9387
9388 PR tdep/18107
9389 * aarch64-linux-tdep.c: Include xml-syscall.h
9390 (aarch64_linux_get_syscall_number): New function.
9391 (aarch64_linux_init_abi): Call
9392 set_gdbarch_get_syscall_number.
9393 * syscalls/aarch64-linux.xml: New file.
9394
9395 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9396
9397 * ser-base.h (ser_base_setstopbits): Change second argument name
9398 from "rate" to "num".
9399
9400 2015-03-17 Gary Benson <gbenson@redhat.com>
9401 Luke Allardyce <lukeallardyce@gmail.com>
9402
9403 PR gdb/18131
9404 * common/common-remote-fileio.h (sys/stat.h): New include.
9405 (stuct stat): Remove forward declaration.
9406
9407 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9408
9409 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9410 before writing core register notes.
9411
9412 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9413 Pedro Alves <palves@redhat.com>
9414
9415 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9416 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9417 (tgoto): Wrap with extern "C".
9418
9419 2015-03-16 Pedro Alves <palves@redhat.com>
9420 Yuanhui Zhang <asmwarrior@gmail.com>
9421
9422 * stub-termcap.c (tputs): Change prototype.
9423
9424 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9425 Pedro Alves <palves@redhat.com>
9426
9427 * windows-nat.c (struct thread_info_struct): Rename to ...
9428 (struct windows_thread_info_struct): ... this.
9429 (thread_info): Rename to ...
9430 (windows_thread_info): ... this.
9431 All users updated.
9432
9433 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9434 Pedro Alves <palves@redhat.com>
9435
9436 * NEWS: New Removed targets and native configurations.
9437
9438 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9439
9440 Remove HPUX.
9441 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9442 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9443 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9444 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9445 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9446 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9447 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9448 hppa-hpux-tdep.c.
9449 * config/ia64/hpux.mh: Remove file.
9450 * config/pa/hpux.mh: Remove file.
9451 * configure: Rebuilt.
9452 * configure.ac (dlgetmodinfo, somread.o): Remove.
9453 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9454 (ia64-*-hpux*): Remove its float format exception.
9455 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9456 * hppa-hpux-nat.c: Remove file.
9457 * hppa-hpux-tdep.c: Remove file.
9458 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9459 Move them here from hppa-tdep.h
9460 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9461 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9462 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9463 Move them to hppa-tdep.c.
9464 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9465 declarations.
9466 * ia64-hpux-nat.c: Remove file.
9467 * ia64-hpux-tdep.c: Remove file.
9468 * ia64-hpux-tdep.h: Remove file.
9469 * inf-ttrace.c: Remove file.
9470 * inf-ttrace.h: Remove file.
9471 * solib-ia64-hpux.c: Remove file.
9472 * solib-ia64-hpux.h: Remove file.
9473 * solib-pa64.c: Remove file.
9474 * solib-pa64.h: Remove file.
9475 * solib-som.c: Remove file.
9476 * solib-som.h: Remove file.
9477 * somread.c: Remove file.
9478
9479 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9480
9481 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9482 * config.in: Regenerate.
9483 * configure: Regenerate.
9484 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9485 define.
9486 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9487 enumerate memory regions if present.
9488
9489 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9490
9491 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9492 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9493 expressions.
9494 (i386fbsd_sigtramp_p): Likewise.
9495
9496 2015-03-12 John Baldwin <jhb@FreeBSD.org>
9497
9498 * MAINTAINERS (Write After Approval): Add John Baldwin.
9499
9500 2015-03-12 Gary Benson <gbenson@redhat.com>
9501
9502 * solib.c (_initialize_solib): Make "set/show sysroot" use
9503 add_setshow_optional_filename_cmd so it can be restored to
9504 empty after being set.
9505
9506 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9507
9508 * Makefile.in (SFILES): New source break-catch-syscall.c.
9509 (COMMON_OBS): New object break-catch-syscall.o.
9510 * break-catch-syscall.c: New file.
9511 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9512 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9513 (struct syscall_catchpoint): Likewise.
9514 (dtor_catch_syscall): Likewise.
9515 (catch_syscall_inferior_data): Likewise.
9516 (struct catch_syscall_inferior_data): Likewise.
9517 (get_catch_syscall_inferior_data): Likewise.
9518 (catch_syscall_inferior_data_cleanup): Likewise.
9519 (insert_catch_syscall): Likewise.
9520 (remove_catch_syscall): Likewise.
9521 (breakpoint_hit_catch_syscall): Likewise.
9522 (print_it_catch_syscall): Likewise.
9523 (print_one_catch_syscall): Likewise.
9524 (print_mention_catch_syscall): Likewise.
9525 (print_recreate_catch_syscall): Likewise.
9526 (catch_syscall_breakpoint_ops): Likewise.
9527 (syscall_catchpoint_p): Likewise.
9528 (create_syscall_event_catchpoint): Likewise.
9529 (catch_syscall_split_args): Likewise.
9530 (catch_syscall_command_1): Likewise.
9531 (is_syscall_catchpoint_enabled): Likewise.
9532 (catch_syscall_enabled): Likewise.
9533 (catching_syscall_number): Likewise.
9534 (catch_syscall_completer): Likewise.
9535 (clear_syscall_counts): Likewise.
9536 (initialize_breakpoint_ops): Move initialization of syscall
9537 catchpoints to break-catch-syscall.c.
9538 (_initialize_breakpoint): Move code related to syscall catchpoints
9539 to break-catch-syscall.c.
9540
9541 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9542
9543 * breakpoint.c (breakpoint_find_if): New function.
9544 * breakpoint.h (breakpoint_find_if): New prototype.
9545
9546 2015-03-11 Gary Benson <gbenson@redhat.com>
9547
9548 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9549 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9550 (remote_fileio_to_host_ulong): Likewise.
9551 (remote_fileio_to_host_mode): Likewise.
9552 (remote_fileio_to_host_time): Likewise.
9553 (remote_fileio_to_host_stat): Likewise.
9554 * remote.c (PACKET_vFile_fstat): New enum value.
9555 (remote_protocol_features): Register the "vFile:fstat" feature.
9556 (remote_hostio_fstat): New function.
9557 (remote_bfd_iovec_stat): Use the above.
9558 (_initialize_remote): Register new "set/show remote
9559 hostio-fstat-packet" command.
9560 * symfile.c (separate_debug_file_exists): Update comment.
9561 * NEWS: Announce new vFile:fstat packet.
9562
9563 2015-03-11 Gary Benson <gbenson@redhat.com>
9564
9565 * common/common-remote-fileio.h: New file.
9566 * common/common-remote-fileio.c: Likewise.
9567 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9568 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9569 (COMMON_OBS): Add common-remote-fileio.o.
9570 (common-remote-fileio.o): New rule.
9571 * remote-fileio.h (common-remote-fileio.h): New include.
9572 * remote-fileio.c (gdb/fileio.h): Do not include.
9573 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9574 (remote_fileio_to_fio_uint): Likewise.
9575 (remote_fileio_to_fio_time): Likewise.
9576 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9577 (remote_fileio_to_fio_mode): Likewise.
9578 (remote_fileio_to_fio_ulong): Likewise.
9579 (remote_fileio_to_fio_stat): Likewise.
9580
9581 2015-03-11 Andy Wingo <wingo@igalia.com>
9582
9583 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9584 we were checking the cached type, not the cached dynamic type.
9585
9586 2015-03-11 Andy Wingo <wingo@igalia.com>
9587
9588 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9589 other strings, as these are on the GC'd heap, and will be
9590 collected along with the smob.
9591
9592 2015-03-11 Andy Wingo <wingo@igalia.com>
9593
9594 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9595 (objfile_functions): Bind gdbscm_objfile_progspace to
9596 objfile-progspace.
9597 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9598
9599 2015-03-11 Andy Wingo <wingo@igalia.com>
9600
9601 * guile/guile.c (_initialize_guile): Disable automatic
9602 finalization, if Guile offers us that possibility.
9603 * guile/guile.c (call_initialize_gdb_module):
9604 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9605 finalizers in appropriate places.
9606 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9607 scm_set_automatic_finalization_enabled.
9608 * configure: Regenerated.
9609
9610 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9611
9612 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9613 SAL, if possible.
9614
9615 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9616
9617 * s390-linux-nat.c (struct arch_lwp_info): New.
9618 (s390_fix_watch_points): Rename to...
9619 (s390_prepare_to_resume): ...this. Skip the PER info update
9620 unless the watch points have changed.
9621 (s390_refresh_per_info, s390_new_thread): New functions.
9622 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9623 s390_fix_watch_points.
9624 (s390_remove_watchpoint): Likewise.
9625 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9626 Register s390_prepare_to_resume.
9627
9628 2015-03-09 Pedro Alves <palves@redhat.com>
9629
9630 Revert:
9631 2015-03-07 Pedro Alves <palves@redhat.com>
9632 * common/gdb_socket.h: New file.
9633 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9634 sys/socket.h.
9635 (net_open): Use union gdb_sockaddr_u.
9636
9637 2015-03-07 Pedro Alves <palves@redhat.com>
9638
9639 * configure.ac (build_warnings): Move -Wmissing-prototypes
9640 -Wdeclaration-after-statement -Wmissing-parameter-type
9641 -Wold-style-declaration -Wold-style-definition to the C-specific
9642 set.
9643 * configure: Regenerate.
9644
9645 2015-03-07 Pedro Alves <palves@redhat.com>
9646
9647 * common/gdb_socket.h: New file.
9648 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9649 sys/socket.h.
9650 (net_open): Use union gdb_sockaddr_u.
9651
9652 2015-03-07 Pedro Alves <palves@redhat.com>
9653
9654 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9655 (exceptions_state_mc_action_iter)
9656 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9657 Don't define.
9658 [__cplusplus] (try_scope_depth): New global.
9659 [__cplusplus] (exception_try_scope_entry)
9660 (exception_try_scope_exit, gdb_exception_sliced_copy)
9661 (exception_rethrow): New functions.
9662 (throw_exception): In C++ mode, throw
9663 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9664 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9665 (throw_it): In C++ mode, use try_scope_depth.
9666 * common/common-exceptions.h [!__cplusplus]
9667 (exceptions_state_mc_action_iter)
9668 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9669 Don't declare.
9670 [__cplusplus] (exception_try_scope_entry)
9671 (exception_try_scope_exit, exception_rethrow): Declare.
9672 [__cplusplus] (struct exception_try_scope): New struct.
9673 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9674 C++ exceptions.
9675 (struct gdb_exception_RETURN_MASK_ALL)
9676 (struct gdb_exception_RETURN_MASK_ERROR)
9677 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9678
9679 2015-03-07 Pedro Alves <palves@redhat.com>
9680
9681 * main.c (handle_command_errors): Remove volatile qualifier from
9682 parameter.
9683
9684 2015-03-07 Pedro Alves <palves@redhat.com>
9685
9686 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9687 TRY and CATCH.
9688 * gdbtypes.c (safe_parse_type): Remove empty line.
9689 (types_deeply_equal):
9690 * guile/scm-frame.c (gdbscm_frame_name):
9691 * linux-thread-db.c (find_new_threads_once):
9692 * python/py-breakpoint.c (bppy_get_commands):
9693 * record-btrace.c (record_btrace_insert_breakpoint)
9694 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9695 (record_btrace_start_replaying): Adjust to avoid code between TRY
9696 and CATCH.
9697
9698 2015-03-07 Pedro Alves <palves@redhat.com>
9699
9700 * common/common-exceptions.c (struct catcher) <exception>: No
9701 longer a pointer to volatile exception. Now an exception value.
9702 <mask>: Delete field.
9703 (exceptions_state_mc_init): Remove all parameters. Adjust.
9704 (exceptions_state_mc): No longer pop the catcher here.
9705 (exceptions_state_mc_catch): New function.
9706 (throw_exception): Adjust.
9707 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9708 all parameters.
9709 (exceptions_state_mc_catch): Declare.
9710 (TRY_CATCH): Rename to ...
9711 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9712 (CATCH, END_CATCH): New.
9713 All callers adjusted.
9714
9715 2015-03-07 Tom Tromey <tromey@redhat.com>
9716
9717 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9718
9719 2015-03-07 Pedro Alves <palves@redhat.com>
9720
9721 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9722 (amd64_epilogue_frame_cache): Normal exception handling code.
9723 * break-catch-throw.c (check_status_exception_catchpoint)
9724 (re_set_exception_catchpoint): Ditto.
9725 * cli/cli-interp.c (safe_execute_command):
9726 * cli/cli-script.c (script_from_file): Ditto.
9727 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9728 Ditto.
9729 * compile/compile-object-run.c (compile_object_run): Ditto.
9730 * cp-abi.c (baseclass_offset): Ditto.
9731 * cp-valprint.c (cp_print_value): Ditto.
9732 * exceptions.c (catch_exceptions_with_msg):
9733 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9734 * frame.c (get_frame_address_in_block_if_available): Ditto.
9735 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9736 (i386_sigtramp_frame_cache): Ditto.
9737 * infcmd.c (post_create_inferior): Ditto.
9738 * linespec.c (parse_linespec, find_linespec_symbols):
9739 * p-valprint.c (pascal_object_print_value): Ditto.
9740 * parse.c (parse_expression_for_completion): Ditto.
9741 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9742 * remote.c (remote_get_noisy_reply): Ditto.
9743 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9744 * solib-svr4.c (solib_svr4_r_map): Ditto.
9745
9746 2015-03-06 Gary Benson <gbenson@redhat.com>
9747
9748 * common/common-utils.h (startswith): New inline function.
9749 All places where this logic was used updated to use the above.
9750
9751 2015-03-05 Pedro Alves <palves@redhat.com>
9752
9753 PR gdb/18002
9754 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9755 after reading the breakpoint's shadow memory.
9756
9757 2015-03-05 Mark Kettenis <kettenis@gnu.org>
9758
9759 * hppabsd-nat.c: Remove file.
9760 * hppaobsd-nat.c: New file.
9761 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9762 hppaobsd-nat.c.
9763 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9764 hppaobsd-nat.o.
9765
9766 2015-03-04 Pedro Alves <palves@redhat.com>
9767
9768 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9769 (target_decr_pc_after_break): Delete declaration.
9770 * target.c (default_target_decr_pc_after_break)
9771 (target_decr_pc_after_break): Delete.
9772 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9773 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9774 * linux-thread-db.c (check_event): Likewise.
9775 * infrun.c (adjust_pc_after_break): Likewise.
9776 * darwin-nat.c (cancel_breakpoint): Likewise.
9777 * aix-thread.c (aix_thread_wait): Likewise.
9778 * target-delegates.c: Regenerate.
9779
9780 2015-03-04 Pedro Alves <palves@redhat.com>
9781
9782 * linux-nat.c (save_sigtrap): Check for breakpoints before
9783 checking watchpoints.
9784 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9785 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9786 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9787 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9788 (linux_nat_stopped_by_sw_breakpoint)
9789 (linux_nat_supports_stopped_by_sw_breakpoint)
9790 (linux_nat_stopped_by_hw_breakpoint)
9791 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9792 (linux_nat_wait_1): Don't re-increment the PC if relying on
9793 SIGTRAP's siginfo->si_code.
9794 (linux_nat_add_target): Install new target methods.
9795 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9796 offset if the target already adjusted the PC.
9797 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9798 (GDB_ARCH_TRAP_BRKPT): New.
9799 (TRAP_HWBKPT): Define if not already defined.
9800
9801 2015-03-04 Pedro Alves <palves@redhat.com>
9802
9803 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9804 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9805 Delete field.
9806 <stop_reason>: New field.
9807 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9808 (packet_set_cmd_state): New function.
9809 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9810 features.
9811 (remote_query_supported): If not disabled with the corresponding
9812 "set remote foo-packet" command, report support for the swbreak
9813 and hwbreak features.
9814 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9815 field.
9816 <stop_reason>: New field.
9817 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9818 (remote_wait_as): Adjust.
9819 (remote_stopped_by_sw_breakpoint)
9820 (remote_supports_stopped_by_sw_breakpoint)
9821 (remote_stopped_by_hw_breakpoint)
9822 (remote_supports_stopped_by_hw_breakpoint): New functions.
9823 (remote_stopped_by_watchpoint): New function.
9824 (init_remote_ops): Install them.
9825 (_initialize_remote): Register new "set/show remote
9826 swbreak-feature-packet" and "set/show remote
9827 swbreak-feature-packet" commands.
9828
9829 2015-03-04 Pedro Alves <palves@redhat.com>
9830
9831 * btrace.h: Include target/waitstatus.h.
9832 (struct btrace_thread_info) <stop_reason>: New field.
9833 * record-btrace.c (record_btrace_step_thread): Use
9834 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9835 (record_btrace_decr_pc_after_break): Delete.
9836 (record_btrace_stopped_by_sw_breakpoint)
9837 (record_btrace_supports_stopped_by_sw_breakpoint)
9838 (record_btrace_stopped_by_hw_breakpoint)
9839 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9840 (init_record_btrace_ops): Install them.
9841 * record-full.c (record_full_hw_watchpoint): Delete and replace
9842 with ...
9843 (record_full_stop_reason): ... this throughout.
9844 (record_full_exec_insn): Adjust.
9845 (record_full_wait_1): Adjust. No longer re-increment the PC.
9846 (record_full_wait_1): Adjust. Use
9847 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9848 (record_full_stopped_by_watchpoint): Adjust.
9849 (record_full_stopped_by_sw_breakpoint)
9850 (record_full_supports_stopped_by_sw_breakpoint)
9851 (record_full_supports_stopped_by_sw_breakpoint)
9852 (record_full_stopped_by_hw_breakpoint)
9853 (record_full_supports_stopped_by_hw_breakpoint): New functions.
9854 (init_record_full_ops, init_record_full_core_ops): Install them.
9855 * record.c (record_check_stopped_by_breakpoint): New function.
9856 * record.h: Include target/waitstatus.h.
9857 (record_check_stopped_by_breakpoint): New declaration.
9858
9859 2015-03-04 Pedro Alves <palves@redhat.com>
9860
9861 enum lwp_stop_reason -> enum target_stop_reason
9862 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9863 (linux_nat_stopped_by_watchpoint, status_callback)
9864 (linux_nat_wait_1): Adjust.
9865 * linux-nat.h (enum lwp_stop_reason): Delete.
9866 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9867 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9868 * target/waitstatus.h (enum target_stop_reason): New.
9869
9870 2015-03-04 Pedro Alves <palves@redhat.com>
9871
9872 * breakpoint.c (need_moribund_for_location_type): New function.
9873 (bpstat_stop_status): Don't skipping checking moribund locations
9874 of breakpoint types which the target tell caused a stop.
9875 (program_breakpoint_here_p): New function, factored out from ...
9876 (bp_loc_is_permanent): ... this.
9877 (update_global_location_list): Don't create a moribund location if
9878 the target supports reporting stops of the type of the removed
9879 breakpoint.
9880 * breakpoint.h (program_breakpoint_here_p): New declaration.
9881 * infrun.c (adjust_pc_after_break): Return early if the target has
9882 already adjusted the PC. Add comments.
9883 (handle_signal_stop): If nothing explains a signal, and the target
9884 tells us the stop was caused by a software breakpoint, check if
9885 there's a breakpoint instruction in the memory. If so, adjust the
9886 PC before presenting the stop to the user. Otherwise, ignore the
9887 trap. If nothing explains a signal, and the target tells us the
9888 stop was caused by a hardware breakpoint, ignore the trap.
9889 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9890 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9891 to_supports_stopped_by_hw_breakpoint>: New fields.
9892 (target_stopped_by_sw_breakpoint)
9893 (target_supports_stopped_by_sw_breakpoint)
9894 (target_stopped_by_hw_breakpoint)
9895 (target_supports_stopped_by_hw_breakpoint): Define.
9896 * target-delegates.c: Regenerate.
9897
9898 2015-03-04 Pedro Alves <palves@redhat.com>
9899
9900 * infrun.c (follow_fork_inferior): Use the whole of the
9901 inferior_ptid and pending_follow.related_pid ptids instead of
9902 building ptids from the process components. Adjust verbose output
9903 to use target_pid_to_str.
9904 * linux-nat.c (linux_child_follow_fork): Use the whole of the
9905 inferior_ptid and pending_follow.related_pid ptids instead of
9906 building ptids from the process components.
9907
9908 2015-03-04 Mark Kettenis <kettenis@gnu.org>
9909
9910 * inf-ptrace.c [PT_GET_PROCESS_STATE]
9911 (inf_ptrace_insert_fork_catchpoint): New function.
9912 (inf_ptrace_remove_fork_catchpoint): New function.
9913 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
9914
9915 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9916
9917 * s390-linux-tdep.c (s390_register_name): Return empty string
9918 instead of NULL for registers that shouldn't be visible.
9919
9920 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9921
9922 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
9923 XML file for 64-bit targets.
9924
9925 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
9926
9927 * target.h (find_default_create_inferior): Remove declaration.
9928 (find_default_attach): Likewise.
9929
9930 2015-03-03 Pedro Alves <palves@redhat.com>
9931
9932 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
9933 Use ptid_get_pid to get the overall process id when resuming all
9934 threads.
9935
9936 2015-03-03 Pedro Alves <palves@redhat.com>
9937
9938 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
9939 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
9940 * inf-ptrace.c (get_ptrace_pid): New function.
9941 (inf_ptrace_resume): Use it.
9942 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
9943 to the lower layer.
9944
9945 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9946
9947 * nat/linux-btrace.c: Include sys/utsname.h.
9948 (linux_determine_kernel_ptr_bits): New.
9949 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
9950 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
9951 ptr_bits.
9952
9953 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9954
9955 * btrace.c (ftrace_update_function): Treat return as tailcall for
9956 "_dl_runtime_resolve".
9957
9958 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9959
9960 * btrace.h (btrace_function) <lbegin, lend>: Remove.
9961 * btrace.c (ftrace_debug): Do not print the line range.
9962 (ftrace_skip_file, ftrace_update_lines): Remove.
9963 (ftrace_new_function): Remove lbegin and lend initialization.
9964 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
9965 * record-btrace.c (btrace_compute_src_line_range): New.
9966 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
9967
9968 2015-03-02 Pedro Alves <palves@redhat.com>
9969
9970 * infrun.c (follow_exec): Delete all threads of the process except
9971 the event thread. Extended comments.
9972
9973 2015-03-02 Joel Brobecker <brobecker@adacore.com>
9974
9975 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
9976
9977 2015-03-02 Joel Brobecker <brobecker@adacore.com>
9978
9979 * utils.h: Remove <stdbool.h> #include.
9980 (producer_is_gcc): Change return type to "int".
9981 * utils.c (producer_is_gcc): Change return type to int.
9982 Return 1 instead of true, and 0 instead of false.
9983 Adjust function documentation accordingly.
9984
9985 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9986
9987 * s390-linux-nat.c (have_regset_vxrs): New static variable.
9988 (s390_linux_fetch_inferior_registers): Handle vector registers, if
9989 present.
9990 (s390_linux_store_inferior_registers): Likewise.
9991 (s390_get_hwcap): Remove function. Embed its logic...
9992 (s390_read_description): ...here. Yield a target description with
9993 vector registers if applicable.
9994 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
9995 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
9996 "features/s390x-tevx-linux64.c".
9997 (struct gdbarch_tdep) <v0_full_regnum>: New field.
9998 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
9999 for "GNU/Linux-specific registers".
10000 (s390_dwarf_reg_r0l): New enum value.
10001 (s390_dwarf_reg_to_regnum): Support vector registers.
10002 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10003 of GPR lower halves.
10004 (regnum_is_vxr_full): New function.
10005 (s390_register_name): New function.
10006 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10007 f0-f15 and v0l-v15l.
10008 (s390_pseudo_register_type): Likewise.
10009 (s390_pseudo_register_read): Likewise.
10010 (s390_pseudo_register_write): Likewise.
10011 (s390_value_from_register): Account for the fact that values are
10012 placed left-justified in vector registers.
10013 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10014 the vector reggroup and omit them from the general reggroup.
10015 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10016 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10017 (s390_iterate_over_regset_sections): Add iterations for the two
10018 new vector regsets.
10019 (s390_core_read_description): Yield a target description with
10020 vector registers if applicable.
10021 (s390_gdbarch_init): Handle target descriptions with vector
10022 registers. Add "register_name" gdbarch method.
10023 (_initialize_s390_tdep): Call new tdesc initialization functions.
10024 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10025 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10026 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10027 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10028 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10029 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10030 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10031 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10032 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10033 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10034 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10035 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10036 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10037 (S390_NUM_REGS): Adjust value.
10038 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10039 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10040 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10041 * NEWS: Announce S/390 vector register support.
10042
10043 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10044
10045 * features/s390-tevx-linux64.xml: New file.
10046 * features/s390-vx-linux64.xml: New file.
10047 * features/s390-vx.xml: New file.
10048 * features/s390x-tevx-linux64.xml: New file.
10049 * features/s390x-vx-linux64.xml: New file.
10050 * features/Makefile (WHICH): Add s390-vx-linux64,
10051 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10052 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10053 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10054 macros.
10055 * features/s390-tevx-linux64.c: New generated file.
10056 * features/s390-vx-linux64.c: Likewise.
10057 * features/s390x-tevx-linux64.c: Likewise.
10058 * features/s390x-vx-linux64.c: Likewise.
10059 * regformats/s390-tevx-linux64.dat: Likewise.
10060 * regformats/s390-vx-linux64.dat: Likewise.
10061 * regformats/s390x-tevx-linux64.dat: Likewise.
10062 * regformats/s390x-vx-linux64.dat: Likewise.
10063
10064 2015-02-28 Doug Evans <xdje42@gmail.com>
10065
10066 * symtab.h (struct symtab) <next>: Fix comment.
10067
10068 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10069
10070 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10071 python_GdbMethods.
10072
10073 2015-02-27 Pedro Alves <palves@redhat.com>
10074
10075 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10076
10077 2015-02-27 Pedro Alves <palves@redhat.com>
10078
10079 * common/common-exceptions.h (exception_none): Declare.
10080 * common/common-exceptions.c (exception_none): Moved from
10081 exceptions.c.
10082 (exceptions_state_mc_init): Use exception_none.
10083 * exceptions.c (exception_none): Move to
10084 common/common-exceptions.c.
10085 * exceptions.h (exception_none): Move to
10086 common/common-exceptions.h.
10087
10088 2015-02-27 Pedro Alves <palves@redhat.com>
10089
10090 * main.c (catch_command_errors, catch_command_errors_const):
10091 Remove 'mask' argument. Adjust.
10092 (captured_main): Adjust callers.
10093
10094 2015-02-27 Pedro Alves <palves@redhat.com>
10095
10096 * python/python-internal.h: Include "extension-priv.h".
10097
10098 2015-02-27 Pedro Alves <palves@redhat.com>
10099
10100 * breakpoint.h (enum print_stop_action): Move further up in the
10101 file.
10102
10103 2015-02-27 Pedro Alves <palves@redhat.com>
10104
10105 * gdbarch.sh: Include regcache.h.
10106 * gdbarch.h: Regenerate.
10107
10108 2015-02-27 Pedro Alves <palves@redhat.com>
10109
10110 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10111 Remove duplicate const.
10112 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10113 duplicate const.
10114
10115 2015-02-27 Pedro Alves <palves@redhat.com>
10116
10117 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10118 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10119 * features/feature_to_c.sh: Tag the generated xml_builtin array
10120 with extern const in C++ mode.
10121
10122 2015-02-27 Tom Tromey <tromey@redhat.com>
10123
10124 * minidebug.c (struct lzma_stream): Rename to ...
10125 (struct gdb_lzma_stream): ... this.
10126 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10127
10128 2015-02-27 Pedro Alves <palves@redhat.com>
10129
10130 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10131 function.
10132 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10133 (mi_cmd_stack_list_variables): Use it.
10134
10135 2015-02-27 Pedro Alves <palves@redhat.com>
10136
10137 * x86-linux-nat.c (u_debugreg_offset): New function.
10138 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10139
10140 2015-02-27 Pedro Alves <palves@redhat.com>
10141
10142 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10143 declaration.
10144 Include break-common.h.
10145
10146 2015-02-27 Tom Tromey <tromey@redhat.com>
10147 Pedro Alves <palves@redhat.com>
10148
10149 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10150 local used to iterate over enums.
10151 * completer.c (signal_completer): Likewise.
10152 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10153 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10154 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10155 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10156 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10157 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10158 * tui-wingeneral.c (tui_refresh_all): Likewise.
10159
10160 2015-02-27 Pedro Alves <palves@redhat.com>
10161
10162 * target.h: Include "infrun.h".
10163
10164 2015-02-27 Pedro Alves <palves@redhat.com>
10165
10166 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10167
10168 2015-02-27 Pedro Alves <palves@redhat.com>
10169
10170 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10171 (IPA_SYM): Use it.
10172 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10173
10174 2015-02-27 Pedro Alves <palves@redhat.com>
10175
10176 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10177 cli_mld_erase_entire_line, and make it extern "C".
10178 * common/common-defs.h (EXTERN_C): New.
10179 * completer.c (_rl_completion_prefix_display_length)
10180 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10181 out of gdb_display_match_list_1.
10182 (_rl_qsort_string_compare): Move declaration out of
10183 gdb_display_match_list_1, and make it extern "C".
10184 * defs.h (re_comp): Use EXTERN_C.
10185 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10186 and make it extern "C".
10187 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10188 and make it extern "C".
10189 (main): Move declaration out of maintenance_set_profile_cmd.
10190 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10191 EXTERN_C.
10192
10193 2015-02-27 Pedro Alves <palves@redhat.com>
10194
10195 * python/python.c (GdbMethods): Rename to ...
10196 (python_GdbMethods): ... this and make extern.
10197 (GdbModuleDef): Rename to ...
10198 (python_GdbModuleDef): ... this and make extern.
10199
10200 2015-02-27 Pedro Alves <palves@redhat.com>
10201
10202 * record-btrace.c (set_record_btrace_cmdlist)
10203 (show_record_btrace_cmdlist): Remove redefinitions.
10204
10205 2015-02-27 Tom Tromey <tromey@redhat.com>
10206 Pedro Alves <palves@redhat.com>
10207
10208 * dwarf2-frame.c (enum cfa_how_kind, struct
10209 dwarf2_frame_state_reg_info): Move out of struct
10210 dwarf2_frame_state.
10211 * dwarf2read.c (struct tu_stats): Move out of struct
10212 dwarf2_per_objfile.
10213 (struct file_entry): Move out of struct line_header.
10214 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10215 typedef_field_list): Move out of struct field_info.
10216 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10217 Move out of struct dynamic_prop.
10218 (union type_owner, union field_location, struct field, struct
10219 range_bounds, union type_specific): Move out of struct main_type.
10220 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10221 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10222 (struct call_site_target, union call_site_parameter_u, struct
10223 call_site_parameter): Move out of struct call_site.
10224 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10225 m32c_prologue.
10226 (enum srcdest_kind): Move out of struct srcdest.
10227 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10228 * prologue-value.h (enum prologue_value_kind): Move out of struct
10229 prologue_value.
10230 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10231 gdbarch_tdep.
10232 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10233 out of struct field_info.
10234 * symfile.h (struct other_sections): Move out of struct
10235 section_addr_info.
10236 * symtab.c (struct symbol_cache_slot): Move out struct
10237 block_symbol_cache.
10238 * target-descriptions.c (enum tdesc_type_kind): Move out of
10239 typedef struct tdesc_type.
10240 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10241 struct tui_line_or_address.
10242 * value.c (enum internalvar_kind, union internalvar_data): Move
10243 out of struct internalvar.
10244 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10245 gdbarch_tdep.
10246
10247 2015-02-27 Tom Tromey <tromey@redhat.com>
10248 Pedro Alves <palves@redhat.com>
10249
10250 Rename symbols whose names are reserved C++ keywords throughout.
10251
10252 2015-02-27 Pedro Alves <palves@redhat.com>
10253
10254 * Makefile.in (COMPILER): New, get it from autoconf.
10255 (COMPILE.pre, CC_LD): Use COMPILER.
10256 (CXX): Get from autoconf instead.
10257 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10258 * acinclude.m4: Include build-with-cxx.m4.
10259 * build-with-cxx.m4: New file.
10260 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10261 Disable -Werror by default if building in C++ mode.
10262 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10263 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10264 Run supported-warning-flags tests with the C++ compiler.
10265 Save/restore CXXFLAGS too.
10266 * configure: Regenerate.
10267
10268 2015-02-27 Pedro Alves <palves@redhat.com>
10269
10270 * libiberty.m4: New file.
10271 * acinclude.m4: Include libiberty.m4.
10272 * configure.ac: Call libiberty_INIT.
10273 * config.in, configure: Regenerate.
10274
10275 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10276
10277 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10278 31-bit targets, but 64-bit targets as well.
10279 (s390_gnu_triplet_regexp): New function.
10280 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10281 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10282 method.
10283
10284 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10285
10286 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10287 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10288 from CONTEXT_DEBUGGER.
10289
10290 2015-02-26 Doug Evans <dje@google.com>
10291
10292 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10293 CHECK_TYPEDEF.
10294 (set_type_vptr_fieldno): Ditto.
10295 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10296 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10297
10298 2015-02-26 Pedro Alves <palves@redhat.com>
10299
10300 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10301 * complaints.c (vcomplaint): Pass argument FMT directly to
10302 printf-like functions instead of complaint->fmt.
10303 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10304 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10305 * compile/compile-loc2c.c (pushf, unary, binary): Add
10306 ATTRIBUTE_PRINTF.
10307 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10308 to pushf.
10309 (BINARY): Pass string literal as format string to 'binary'.
10310 * compile/compile-object-load.c (link_callbacks_einfo): Add
10311 ATTRIBUTE_PRINTF.
10312 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10313
10314 2015-02-26 Pedro Alves <palves@redhat.com>
10315
10316 * windows-termcap.c: Rename to ...
10317 * stub-termcap.c: ... this. Adjust header line.
10318 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10319 windows-termcap.c.
10320 * configure: Regenerate.
10321 * configure.ac: Refer to stub-termcap.o instead of
10322 windows-termcap.o.
10323 * gdb_curses.h: Mention stub-termcap.c instead of
10324 windows-termcap.c.
10325
10326 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10327
10328 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10329 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10330
10331 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10332
10333 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10334
10335 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10336
10337 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10338 bfd_canonicalize_symtab.
10339
10340 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10341
10342 * amd64fbsd-nat.c: Include sys/user.h.
10343 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10344 instead of KERN_PS_STRINGS to locate the signal trampoline.
10345 * i386fbsd-nat.c: Include sys/user.h.
10346 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10347 instead of KERN_PS_STRINGS to locate the signal trampoline.
10348 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10349 (amd64fbsd_sigtramp_p): New.
10350 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10351 longer set default values.
10352 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10353 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10354 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10355 (i386fbsd_freebsd4_sigtramp_start)
10356 (i386fbsd_freebsd4_sigtramp_middle)
10357 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10358 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10359 (i386fbsd_sigtramp_p): New.
10360 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10361 longer set default values.
10362 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10363
10364 2015-02-25 John Baldwin <jhb@freebsd.org>
10365
10366 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10367 get_frame_register instead of frame_unwind_register_unsigned.
10368
10369 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10370
10371 PR build/18033
10372 * compile/compile-c-support.c (c_compute_program): Change // comment.
10373 * compile/compile-object-load.c (setup_sections): Change // comment.
10374
10375 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10376
10377 PR build/18033:
10378 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10379
10380 2015-02-23 Pedro Alves <palves@redhat.com>
10381
10382 * remote.c (skip_to_semicolon): New function.
10383 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10384 special case the stop reasons that look like hex numbers
10385 upfront. Instead handle real register numbers after matching
10386 all the known stop reasons.
10387
10388 2015-02-21 Doug Evans <dje@google.com>
10389
10390 PR c++/17976, symtab/17821
10391 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10392 is_in_anonymous. All callers updated.
10393 (find_symbol_in_baseclass): Ditto.
10394 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10395 for symbols in an anonymous namespace.
10396 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10397 DW_AT_name directly.
10398 (dwarf2_name): Convert missing namespace name to
10399 CP_ANONYMOUS_NAMESPACE_STR.
10400
10401 2015-02-20 Pedro Alves <palves@redhat.com>
10402
10403 * linux-nat.c (linux_handle_extended_wait): Call
10404 thread_db_notice_clone whenever a new clone LWP is detected.
10405 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10406 functions.
10407 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10408 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10409 (linux_unstop_all_lwps): Declare.
10410 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10411 (thread_get_info_callback): Delete.
10412 (thread_from_lwp): Use td_thr_get_info and record_thread.
10413 (thread_db_attach_lwp): Delete.
10414 (thread_db_notice_clone): New function.
10415 (try_thread_db_load_1): If /proc is mounted and shows the
10416 process'es task list, walk over all LWPs and call thread_from_lwp
10417 instead of relying on td_ta_thr_iter.
10418 (attach_thread): Don't call check_thread_signals here. Split the
10419 tail part of the function (which adds the thread to the core GDB
10420 thread list) to ...
10421 (record_thread): ... this function. Call check_thread_signals
10422 here.
10423 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10424 call thread_from_lwp.
10425 (thread_db_update_thread_list): Rename to ...
10426 (thread_db_update_thread_list_org): ... this.
10427 (thread_db_update_thread_list): New function.
10428 (thread_db_find_thread_from_tid): Delete.
10429 (thread_db_get_ada_task_ptid): Simplify.
10430 * nat/linux-procfs.c: Include <sys/stat.h>.
10431 (linux_proc_task_list_dir_exists): New function.
10432 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10433
10434 2015-02-20 Pedro Alves <palves@redhat.com>
10435
10436 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10437 main LWP. Handle the case of waitpid returning 0 if we're already
10438 attached to the LWP. Don't set the LWP's last_resume_kind to
10439 resume_stop if we already knew about the LWP.
10440 (linux_nat_filter_event): Add debug logs.
10441
10442 2015-02-20 Pedro Alves <palves@redhat.com>
10443
10444 * target.h (forward_target_decr_pc_after_break): Delete
10445 declaration.
10446
10447 2015-02-20 Pedro Alves <palves@redhat.com>
10448
10449 PR threads/18006
10450 * linux-thread-db.c (thread_get_info_callback): Return early if
10451 the thread's lwp id is -1.
10452
10453 2015-02-20 Joel Brobecker <brobecker@adacore.com>
10454
10455 GDB 7.9 released.
10456
10457 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
10458
10459 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10460 (dtrace_get_probes) Change type of variable 'dof'.
10461
10462 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10463
10464 PR breakpoints/16812
10465 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10466 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10467 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10468
10469 2015-02-19 David Taylor <dtaylor@emc.com>
10470
10471 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10472
10473 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10474
10475 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10476 function.
10477 (tui_putc): Don't call tui_handle_resize_during_io.
10478 (tui_getc): Likewise.
10479 (tui_mld_getc): Likewise.
10480 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10481 (tui_sigwinch_token): New static variable.
10482 (tui_initialize_win): Adjust documentation. Set
10483 tui_sigwinch_token.
10484 (tui_async_resize_screen): New asynchronous callback.
10485 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10486 invoke tui_async_resize_screen.
10487
10488 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10489
10490 * configure: Regenerated.
10491 * configure.ac: Use GDB_AC_TRANSFORM.
10492 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10493 * acinclude.m4: sinclude transform.m4.
10494 * transform.m4: New file.
10495 (GDB_AC_TRANSFORM): New macro.
10496
10497 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10498
10499 * NEWS: Announce the support for DTrace SDT probes.
10500
10501 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10502
10503 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10504 (amd64_dtrace_parse_probe_argument): New function.
10505 (amd64_dtrace_probe_is_enabled): Likewise.
10506 (amd64_dtrace_enable_probe): Likewise.
10507 (amd64_dtrace_disable_probe): Likewise.
10508 (amd64_linux_init_abi): Register the
10509 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10510 `gdbarch_dtrace_disable_probe' and
10511 `gdbarch_dtrace_probe_is_enabled' hooks.
10512 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10513 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10514 (amd64_dtrace_enable_probe_sequence): Likewise.
10515 (amd64_dtrace_disable_probe_sequence): Likewise.
10516
10517 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10518
10519 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10520 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10521 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10522 handle ELF files.
10523 * Makefile.in (SFILES): dtrace-probe.c added.
10524 * configure: Regenerate.
10525 * dtrace-probe.c: New file.
10526 (SHT_SUNW_dof): New constant.
10527 (dtrace_probe_type): New enum.
10528 (dtrace_probe_arg): New struct.
10529 (dtrace_probe_arg_s): New typedef.
10530 (struct dtrace_probe_enabler): New struct.
10531 (dtrace_probe_enabler_s): New typedef.
10532 (dtrace_probe): New struct.
10533 (dtrace_probe_is_linespec): New function.
10534 (dtrace_dof_sect_type): New enum.
10535 (dtrace_dof_dofh_ident): Likewise.
10536 (dtrace_dof_encoding): Likewise.
10537 (DTRACE_DOF_ENCODE_LSB): Likewise.
10538 (DTRACE_DOF_ENCODE_MSB): Likewise.
10539 (dtrace_dof_hdr): New struct.
10540 (dtrace_dof_sect): Likewise.
10541 (dtrace_dof_provider): Likewise.
10542 (dtrace_dof_probe): Likewise.
10543 (DOF_UINT): New macro.
10544 (DTRACE_DOF_PTR): Likewise.
10545 (DTRACE_DOF_SECT): Likewise.
10546 (dtrace_process_dof_probe): New function.
10547 (dtrace_process_dof): Likewise.
10548 (dtrace_build_arg_exprs): Likewise.
10549 (dtrace_get_arg): Likewise.
10550 (dtrace_get_probes): Likewise.
10551 (dtrace_get_probe_argument_count): Likewise.
10552 (dtrace_can_evaluate_probe_arguments): Likewise.
10553 (dtrace_evaluate_probe_argument): Likewise.
10554 (dtrace_compile_to_ax): Likewise.
10555 (dtrace_probe_destroy): Likewise.
10556 (dtrace_gen_info_probes_table_header): Likewise.
10557 (dtrace_gen_info_probes_table_values): Likewise.
10558 (dtrace_probe_is_enabled): Likewise.
10559 (dtrace_probe_ops): New variable.
10560 (info_probes_dtrace_command): New function.
10561 (_initialize_dtrace_probe): Likewise.
10562 (dtrace_type_name): Likewise.
10563
10564 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10565
10566 * gdbarch.sh (dtrace_parse_probe_argument): New.
10567 (dtrace_probe_is_enabled): Likewise.
10568 (dtrace_enable_probe): Likewise.
10569 (dtrace_disable_probe): Likewise.
10570 * gdbarch.c: Regenerate.
10571 * gdbarch.h: Regenerate.
10572
10573 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10574
10575 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10576 stap_probe_ops for `enable_probe' and `disable_probe'.
10577 * probe.c (enable_probes_command): New function.
10578 (disable_probes_command): Likewise.
10579 (_initialize_probe): Define the cli commands `enable probe' and
10580 `disable probe'.
10581 (parse_probe_linespec): New function.
10582 (info_probes_for_ops): Use parse_probe_linespec.
10583 * probe.h (probe_ops): New hooks `enable_probe' and
10584 `disable_probe'.
10585
10586 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10587
10588 * probe.c (compute_probe_arg): Moved from stap-probe.c
10589 (compile_probe_arg): Likewise.
10590 (probe_funcs): Likewise.
10591 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10592 (compile_probe_arg): Likewise.
10593 (probe_funcs): Likewise.
10594
10595 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10596
10597 * probe.c (print_ui_out_not_applicables): New function.
10598 (exists_probe_with_pops): Likewise.
10599 (info_probes_for_ops): Do not include column headers for probe
10600 types for which no probe has been actually found on any object.
10601 Also invoke `print_ui_out_not_applicables' in order to match the
10602 column rows with the header when probes of several types are
10603 listed.
10604 Print the "Type" column.
10605 * probe.h (probe_ops): Added a new probe operation `type_name'.
10606 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10607 (stap_type_name): New function.
10608
10609 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10610
10611 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10612 (key_is_command_char): Delete.
10613
10614 2015-02-17 Pedro Alves <palves@redhat.com>
10615
10616 * tui/tui.c (tui_enable): Resize windows before anything
10617 might show a window.
10618
10619 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10620
10621 PR gdb/17984
10622 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10623 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10624 call.
10625 * aarch64-tdep.h (tdesc_aarch64): Declare.
10626
10627 2015-02-12 Mark Wielaard <mjw@redhat.com>
10628
10629 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10630
10631 2015-02-13 Doug Evans <dje@google.com>
10632
10633 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10634 anonymous_namespace to is_in_anonymous for consistency with the rest
10635 of the file.
10636 (cp_lookup_bare_symbol): Fix typo in comment.
10637 (cp_search_static_and_baseclasses): Ditto.
10638 (search_symbol_list): Use vertical space in comment better.
10639 (reset_directive_searched): Ditto. Fix typo.
10640 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10641
10642 2015-02-13 Yao Qi <yao.qi@arm.com>
10643
10644 * MAINTAINERS: Update my email address.
10645
10646 2015-02-12 Doug Evans <dje@google.com>
10647
10648 * symtab.c (completion_list_add_name): Fix memory leak.
10649
10650 2015-02-12 Doug Evans <dje@google.com>
10651
10652 * completer.c (complete_line): Remove incorrect comment.
10653
10654 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10655
10656 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10657 (py_print_frame): Use RETURN_MASK_ERROR.
10658
10659 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10660
10661 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10662 function comment. Wrap all function that can throw in cleanups.
10663 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10664 cleanups.
10665
10666 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10667
10668 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10669 Remove the error label.
10670
10671 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10672
10673 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10674 with goto first, indent the former else codepath left. Put variable
10675 'elided' to a new inner block.
10676
10677 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10678
10679 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10680
10681 2015-02-11 Pedro Alves <palves@redhat.com>
10682
10683 * xcoffread.c (within_function): Delete.
10684
10685 2015-02-11 Tom Tromey <tromey@redhat.com>
10686 Pedro Alves <palves@redhat.com>
10687
10688 * breakpoint.c (base_breakpoint_ops): Delete.
10689 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10690 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10691 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10692 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10693 * python/py-arch.c (arch_object_type): Make extern.
10694 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10695 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10696 * python/py-cmd.c (cmdpy_object_type): Make extern.
10697 * python/py-continueevent.c (continue_event_object_type)
10698 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10699 parameter. Update all callers.
10700 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10701 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10702 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10703 * python/py-function.c (fnpy_object_type): Make extern.
10704 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10705 * python/py-infevents.c (call_pre_event_object_type)
10706 (inferior_call_post_event_object_type).
10707 (memory_changed_event_object_type): Make extern.
10708 * python/py-infthread.c (thread_object_type): Make extern.
10709 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10710 * python/py-linetable.c (linetable_entry_object_type)
10711 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10712 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10713 (clear_objfiles_event_object_type): Make extern.
10714 * python/py-objfile.c (objfile_object_type): Make extern.
10715 * python/py-param.c (parmpy_object_type): Make extern.
10716 * python/py-progspace.c (pspace_object_type): Make extern.
10717 * python/py-signalevent.c (signal_event_object_type): Make extern.
10718 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10719 * python/py-type.c (type_object_type, field_object_type)
10720 (type_iterator_object_type): Make extern.
10721 * python/python.c (python_extension_script_ops)
10722 (python_extension_ops): Make extern.
10723 * stap-probe.c (stap_probe_ops): Make extern.
10724
10725 2015-02-11 Pedro Alves <pedro@codesourcery.com>
10726
10727 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10728 because the event thread is not the current thread.
10729
10730 2015-02-11 Doug Evans <xdje42@gmail.com>
10731
10732 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10733 been initialized yet, return NULL.
10734
10735 2015-02-11 Doug Evans <dje@google.com>
10736
10737 * symfile.h (new_symfile_objfile): Delete.
10738 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10739 All callers updated.
10740
10741 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10742
10743 * tui/tui-io.c (tui_handle_resize_during_io): Call
10744 tui_update_gdb_sizes() after resizing the screen.
10745 * tui/tui.c (tui_enable): Resize the terminal before
10746 calling tui_update_gdb_sizes().
10747
10748 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10749
10750 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10751 line before printing a newline.
10752
10753 2015-02-11 Mark Wielaard <mjw@redhat.com>
10754
10755 * utils.c (producer_is_gcc): Return true or false.
10756
10757 2015-02-10 Mark Wielaard <mjw@redhat.com>
10758
10759 * utils.h (producer_is_gcc): Change return type to bool. Add major
10760 argument.
10761 * utils.c (producer_is_gcc): Likewise.
10762 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10763 * dwarf2read.c (check_producer): Likewise.
10764
10765 2015-02-10 Pedro Alves <palves@redhat.com>
10766
10767 * infrun.c (displaced_step_fixup): Switch to the event thread
10768 before calling gdbarch_displaced_step_fixup.
10769
10770 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10771
10772 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10773
10774 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10775
10776 * ada-varobj.c (ada_name_of_child): Constify parent.
10777 (ada_path_expr_of_child): Same.
10778 (ada_value_of_child): Same.
10779 (ada_type_of_child): Same.
10780 * c-varobj.c (c_is_path_expr_parent): Same.
10781 (c_describe_child): Same.
10782 (c_name_of_child): Same.
10783 (c_value_of_child): Same.
10784 (c_type_of_child): Same.
10785 (cplus_number_of_children): Same.
10786 (cplus_describe_child): Constify var.
10787 (cplus_name_of_child): Constify parent.
10788 (cplus_value_of_child): Same.
10789 (cplus_type_of_child): Same.
10790 * jv-varobj.c (java_name_of_child): Same.
10791 (java_value_of_child): Same.
10792 (java_type_of_child): Same.
10793 * varobj.c (value_of_child): Same.
10794 (varobj_default_is_path_expr_parent): Constify var, parent and return
10795 value.
10796 (varobj_get_path_expr): Constify var, modify path_expr through
10797 mutable_var.
10798 (install_new_value): Constify parent.
10799 (value_of_child): Constify parent.
10800 * varobj.h (struct varobj): Constify parent.
10801 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10802 type_of_child.
10803 (varobj_get_path_expr): Constify var.
10804 (varobj_get_path_expr_parent): Constify var and return value.
10805
10806 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
10807
10808 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10809 (arm_prologue_this_id): Move PC and SP limit checks to
10810 arm_prologue_unwind_stop_reason.
10811 (arm_prologue_unwind) <stop_reason> : Set to
10812 arm_prologue_unwind_stop_reason.
10813
10814 2015-02-09 Mark Wielaard <mjw@redhat.com>
10815
10816 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10817 DW_LANG_Fortran08 as language_fortran.
10818
10819 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10820
10821 PR remote/17946
10822 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10823 of pointer against char.
10824
10825 2015-02-09 Mark Wielaard <mjw@redhat.com>
10826
10827 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10828 (c_type_print_modifier): Likewise.
10829 * dwarf2read.c (read_tag_atomic_type): New function.
10830 (read_type_die_1): Handle DW_TAG_atomic_type.
10831 * gdbtypes.c (make_atomic_type): New function.
10832 (recursive_dump_type): Handle TYPE_ATOMIC.
10833 * gdbtypes.h (enum type_flag_values): Renumber.
10834 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10835 (TYPE_ATOMIC): New macro.
10836 (make_atomic_type): Declare.
10837
10838 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10839
10840 * btrace.c (ftrace_find_call): Skip gaps.
10841 (ftrace_new_function): Initialize level.
10842 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10843 (ftrace_new_switch): Update
10844 level computation.
10845 (ftrace_new_gap): New.
10846 (ftrace_update_function): Create new function after gap.
10847 (btrace_compute_ftrace_bts): Create gap on error.
10848 (btrace_stitch_bts): Update parameters. Clear trace if it
10849 becomes empty.
10850 (btrace_stitch_trace): Update parameters. Update callers.
10851 (btrace_clear): Reset the number of gaps.
10852 (btrace_insn_get): Return NULL if the iterator points to a gap.
10853 (btrace_insn_number): Return zero if the iterator points to a gap.
10854 (btrace_insn_end): Allow gaps at the end.
10855 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10856 (btrace_find_insn_by_number): Assert that the found iterator does
10857 not point to a gap.
10858 (btrace_call_next, btrace_call_prev): Assert that the last function
10859 is not a gap.
10860 * btrace.h (btrace_bts_error): New.
10861 (btrace_function): Update comment.
10862 (btrace_function) <insn, insn_offset, number>: Update comment.
10863 (btrace_function) <errcode>: New.
10864 (btrace_thread_info) <ngaps>: New.
10865 (btrace_thread_info) <replay>: Update comment.
10866 (btrace_insn_get): Update comment.
10867 * record-btrace.c (btrace_ui_out_decode_error): New.
10868 (record_btrace_info): Print number of gaps.
10869 (btrace_insn_history, btrace_call_history): Call
10870 btrace_ui_out_decode_error for gaps.
10871 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10872
10873 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10874
10875 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10876 * nat/linux-btrace.c: (btrace_this_cpu): New.
10877 (cpu_supports_bts): Call btrace_this_cpu.
10878 (intel_supports_bts): Add cpu parameter.
10879
10880 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10881
10882 * btrace.h (btrace_insn_class): New.
10883 (btrace_insn) <size, iclass>: New.
10884 * btrace.c (ftrace_find_call): Update parameters. Update users.
10885 Use instruction classification.
10886 (ftrace_new_return): Update parameters. Update users.
10887 (ftrace_update_function): Update parameters. Update users. Use
10888 instruction classification.
10889 (ftrace_update_insns): Update parameters. Update users.
10890 (ftrace_classify_insn): New.
10891 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
10892 TRY_CATCH around call to gdb_insn_length.
10893
10894 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10895
10896 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
10897 Update parameters. Update users.
10898
10899 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10900
10901 * btrace.c (parse_xml_btrace_conf_bts): Add size.
10902 (btrace_conf_bts_attributes): New.
10903 (btrace_conf_children): Add attributes.
10904 * common/btrace-common.h (btrace_config_bts): New.
10905 (btrace_config)<bts>: New.
10906 (btrace_config): Update comment.
10907 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
10908 Use config.
10909 * features/btrace-conf.dtd: Increment version. Add size
10910 attribute to bts element.
10911 * record-btrace.c (set_record_btrace_bts_cmdlist,
10912 show_record_btrace_bts_cmdlist): New.
10913 (record_btrace_adjust_size, record_btrace_print_bts_conf,
10914 record_btrace_print_conf, cmd_set_record_btrace_bts,
10915 cmd_show_record_btrace_bts): New.
10916 (record_btrace_info): Call record_btrace_print_conf.
10917 (_initialize_record_btrace): Add commands.
10918 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
10919 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
10920 (btrace_sync_conf): Synchronize bts size.
10921 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
10922 * NEWS: Announce new commands and new packets.
10923
10924 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10925
10926 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
10927 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
10928 (x86_linux_btrace_conf): New.
10929 (x86_linux_create_target): Initialize to_btrace_conf.
10930 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
10931 Check format. Split into this and ...
10932 (linux_enable_bts): ... this.
10933 (linux_btrace_conf): New.
10934 (perf_event_skip_record): Renamed into ...
10935 (perf_event_skip_bts_record): ... this. Updated users.
10936 (linux_disable_btrace): Split into this and ...
10937 (linux_disable_bts): ... this.
10938 (linux_read_btrace): Check format.
10939 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
10940 (linux_btrace_conf): New.
10941 (btrace_target_info)<ptid>: Moved.
10942 (btrace_target_info)<conf>: New.
10943 (btrace_target_info): Split into this and ...
10944 (btrace_tinfo_bts): ... this. Updated users.
10945 * btrace.c (btrace_enable): Update parameters.
10946 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
10947 (btrace_conf_children, btrace_conf_attributes)
10948 (btrace_conf_elements): New.
10949 * btrace.h (btrace_enable): Update parameters.
10950 (btrace_conf, parse_xml_btrace_conf): New.
10951 * common/btrace-common.h (btrace_config): New.
10952 * feature/btrace-conf.dtd: New.
10953 * record-btrace.c (record_btrace_conf): New.
10954 (record_btrace_cmdlist): New.
10955 (record_btrace_enable_warn, record_btrace_open): Pass
10956 &record_btrace_conf.
10957 (record_btrace_info): Print recording format.
10958 (cmd_record_btrace_bts_start): New.
10959 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
10960 (_initialize_record_btrace): Add "record btrace bts" subcommand.
10961 Add "record bts" alias command.
10962 * remote.c (remote_state)<btrace_config>: New.
10963 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
10964 (remote_protocol_features): Add qXfer:btrace-conf:read.
10965 (remote_open_1): Call remote_btrace_reset.
10966 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
10967 (btrace_target_info)<conf>: New.
10968 (btrace_sync_conf, btrace_read_config): New.
10969 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
10970 btrace_read_conf.
10971 (remote_btrace_conf): New.
10972 (init_remote_ops): Initialize to_btrace_conf.
10973 (_initialize_remote): Add qXfer:btrace-conf packet.
10974 * target.c (target_enable_btrace): Update parameters.
10975 (target_btrace_conf): New.
10976 * target.h (target_enable_btrace): Update parameters.
10977 (target_btrace_conf): New.
10978 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
10979 (target_ops)<to_enable_btrace>: Update parameters and comment.
10980 (target_ops)<to_btrace_conf>: New.
10981 * target-delegates: Regenerate.
10982 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
10983 (target_debug_print_const_struct_btrace_target_info_p): New.
10984 * NEWS: Announce new command and new packet.
10985
10986 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10987
10988 * nat/linux-btrace.h (perf_event_buffer): New.
10989 (btrace_target_info) <buffer, size, data_head>: Replace with ...
10990 <bts>: ... this.
10991 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
10992 (perf_event_buffer_size, perf_event_buffer_begin)
10993 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
10994 Updated users.
10995 (perf_event_new_data): New.
10996
10997 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10998
10999 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11000 * record-btrace.c (record_btrace_open): Remove call to
11001 target_supports_btrace.
11002 * remote.c (remote_supports_btrace): Update parameters.
11003 * target.c (target_supports_btrace): Update parameters.
11004 * target.h (to_supports_btrace, target_supports_btrace): Update
11005 parameters.
11006 * target-delegates.c: Regenerate.
11007 * target-debug.h (target_debug_print_enum_btrace_format): New.
11008 * nat/linux-btrace.c
11009 (kernel_supports_btrace): Rename into ...
11010 (kernel_supports_bts): ... this. Update users. Update warning text.
11011 (intel_supports_btrace): Rename into ...
11012 (intel_supports_bts): ... this. Update users.
11013 (cpu_supports_btrace): Rename into ...
11014 (cpu_supports_bts): ... this. Update users.
11015 (linux_supports_btrace): Update parameters. Split into this and ...
11016 (linux_supports_bts): ... this.
11017 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11018
11019 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11020
11021 * Makefile.in (SFILES): Add common/btrace-common.c.
11022 (COMMON_OBS): Add common/btrace-common.o.
11023 (btrace-common.o): Add build rules.
11024 * btrace.c (parse_xml_btrace): Update parameters.
11025 (parse_xml_btrace_block): Set format field.
11026 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11027 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11028 (btrace_compute_ftrace): Split into this and...
11029 (btrace_compute_ftrace_bts): ...this.
11030 (btrace_stitch_trace): Split into this and...
11031 (btrace_stitch_bts): ...this.
11032 * btrace.h (parse_xml_btrace): Update parameters.
11033 (make_cleanup_btrace_data): New.
11034 * common/btrace-common.c: New.
11035 * common/btrace-common.h: Include common-defs.h.
11036 (btrace_block_s): Update comment.
11037 (btrace_format): New.
11038 (btrace_format_string): New.
11039 (btrace_data_bts): New.
11040 (btrace_data): New.
11041 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11042 * remote.c (remote_read_btrace): Update parameters.
11043 * target.c (target_read_btrace): Update parameters.
11044 * target.h (target_read_btrace): Update parameters.
11045 (target_ops)<to_read_btrace>: Update parameters.
11046 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11047 * target-delegates.c: Regenerate.
11048 * target-debug (target_debug_print_struct_btrace_data_p): New.
11049 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11050 (linux_read_bts): ...this.
11051 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11052
11053 2015-02-06 Doug Evans <dje@google.com>
11054
11055 * remote-m32r-sdi.c: Include symfile.h.
11056
11057 2015-02-06 Doug Evans <dje@google.com>
11058
11059 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11060 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11061 to here.
11062
11063 2015-02-06 Pedro Alves <palves@redhat.com>
11064
11065 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11066
11067 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11068
11069 PR gdb/15678
11070 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11071 (enable_count_command): Check args for NULL value.
11072
11073 2015-02-05 Doug Evans <xdje42@gmail.com>
11074
11075 * guile/scm-frame.c: Fix spelling errors in a comment.
11076
11077 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11078
11079 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11080 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11081 return type.
11082
11083 2015-02-04 Pedro Alves <palves@redhat.com>
11084
11085 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11086 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11087 returns true.
11088 (resume_stopped_resumed_lwps): Don't check whether the thread is
11089 marked as executing.
11090 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11091
11092 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11093
11094 * regset.h (struct regset): Add flags field.
11095 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11096 * corelow.c (get_core_register_section): Add warning if the size
11097 exceeds the requested size and the regset does not have the
11098 REGSET_VARIABLE_SIZE flag set.
11099 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11100 flag.
11101 * armbsd-tdep.c (armbsd_gregset): Likewise.
11102 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11103 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11104 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11105 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11106
11107 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11108
11109 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11110 For ".reg-xstate", explicitly specify the requested section size
11111 via X86_XSTATE_SIZE instead of just 0 on input and
11112 X86_XSTATE_MAX_SIZE on output.
11113 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11114 Likewise.
11115
11116 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11117
11118 PR corefiles/17808:
11119 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11120 function type, particularly its SIZE parameter.
11121 * gdbarch.h: Regenerate.
11122 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11123 actual against required size using ">=" instead of "==".
11124 (amd64_collect_fpregset): Likewise.
11125 * i386-tdep.c (i386_supply_gregset): Likewise.
11126 (i386_collect_gregset): Likewise.
11127 (i386_supply_fpregset): Likewise.
11128 (i386_collect_fpregset): Likewise.
11129 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11130 (mips_fill_gregset_wrapper): Likewise.
11131 (mips_supply_fpregset_wrapper): Likewise.
11132 (mips_fill_fpregset_wrapper): Likewise.
11133 (mips64_supply_gregset_wrapper): Likewise.
11134 (mips64_fill_gregset_wrapper): Likewise.
11135 (mips64_supply_fpregset_wrapper): Likewise.
11136 (mips64_fill_fpregset_wrapper): Likewise.
11137 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11138 (am33_supply_fpregset_method): Likewise.
11139 (am33_collect_gregset_method): Likewise.
11140 (am33_collect_fpregset_method): Likewise.
11141
11142 2015-02-04 Doug Evans <dje@google.com>
11143 Pedro Alves <palves@redhat.com>
11144 Eli Zaretskii <eliz@gnu.org>
11145
11146 PR tui/17810
11147 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11148 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11149 * tui/tui-file.c: #include tui/tui-command.h.
11150 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11151 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11152 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11153
11154 2015-02-04 Pedro Alves <palves@redhat.com>
11155
11156 Fix build breakage.
11157 * event-loop.c (gdb_do_one_event): Add default switch case.
11158
11159 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11160
11161 Filter out inferior gcc option -fpreprocessed.
11162 * compile/compile.c (filter_args): New function.
11163 (get_args): Use it.
11164
11165 2015-02-03 Pedro Alves <palves@redhat.com>
11166
11167 * event-loop.c: Don't declare nor define a queue type for
11168 gdb_event_p.
11169 (event_queue): Delete.
11170 (create_event, create_file_event, gdb_event_xfree)
11171 (initialize_event_loop, process_event): Delete.
11172 (gdb_do_one_event): Return as soon as one event is handled.
11173 (handle_file_event): Change prototype. Used the passed in
11174 file_handler pointer and ready_mask instead of looping over all
11175 file handlers.
11176 (gdb_wait_for_event): Update the poll/select timeouts before
11177 blocking. Run event handlers directly instead of queueing events.
11178 Return as soon as one event is handled.
11179 (struct async_event_handler_data): Delete.
11180 (invoke_async_event_handler): Delete.
11181 (check_async_event_handlers): Change return type to int. Run
11182 event handlers directly instead of queueing events. Return as
11183 soon as one event is handled.
11184 (handle_timer_event): Delete.
11185 (update_wait_timeout): New function, factored out from
11186 poll_timers.
11187 (poll_timers): Reimplement.
11188 * event-loop.h (initialize_event_loop): Delete declaration.
11189 * top.c (gdb_init): Don't call initialize_event_loop.
11190
11191 2015-02-03 Pedro Alves <palves@redhat.com>
11192
11193 * event-loop.c (clear_async_event_handler): New function.
11194 * event-loop.h (clear_async_event_handler): New declaration.
11195 * record-btrace.c (record_btrace_async): New function.
11196 (init_record_btrace_ops): Install record_btrace_async.
11197 * record-full.c (record_full_async): New function.
11198 (record_full_resume): Don't mark the async event source here.
11199 (init_record_full_ops): Install record_full_async.
11200 (record_full_core_resume): Don't mark the async event source here.
11201 (init_record_full_core_ops): Install record_full_async.
11202 * remote.c (remote_async): Mark and clear the async stop reply
11203 queue event-loop token as appropriate.
11204
11205 2015-02-03 Pedro Alves <palves@redhat.com>
11206
11207 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11208 target_is_async_p instead of target_can_async.
11209 (linux_nat_wait): Use target_is_async_p instead of
11210 target_can_async. Don't enable async here.
11211 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11212 target_is_async_p instead of target_can_async.
11213
11214 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11215
11216 * varobj.h (lang_varobj_ops): Mention which return values need
11217 to be freed.
11218
11219 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11220
11221 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11222
11223 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11224
11225 PR gdb/17856:
11226 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11227 results found in the cache.
11228
11229 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11230
11231 PR gdb/17854:
11232 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11233 when allocating a new one.
11234
11235 2015-02-01 Tom Tromey <tom@tromey.com>
11236
11237 * MAINTAINERS: Remove myself.
11238
11239 2015-01-31 Doug Evans <xdje42@gmail.com>
11240
11241 * dwarf2read.c (process_structure_scope): Update setting of
11242 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11243 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11244 (set_type_vptr_fieldno): New function.
11245 (internal_type_vptr_basetype): New function.
11246 (set_type_vptr_basetype): New function.
11247 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11248 TYPE_VPTR_BASETYPE.
11249 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11250 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11251 (print_cplus_stuff): ... moved here.
11252 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11253 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11254 moved to ...
11255 (struct cplus_struct_type): ... here. All uses updated.
11256 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11257 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11258 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11259 * stabsread.c (read_tilde_fields): Update setting of
11260 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11261
11262 2015-01-31 Doug Evans <xdje42@gmail.com>
11263
11264 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11265 to self_p.
11266 (cp_print_class_member): Rename local domain to self_type.
11267 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11268 domain_type to self_type.
11269 (set_die_type) <need_gnat_info>: Handle
11270 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11271 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11272 TYPE_SPECIFIC_SELF_TYPE.
11273 * gdbtypes.c (internal_type_self_type): New function.
11274 (set_type_self_type): New function.
11275 (smash_to_memberptr_type): Rename parameter domain to self_type.
11276 Update setting of TYPE_SELF_TYPE.
11277 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11278 (smash_to_method_type): Rename parameter domain to self_type.
11279 Update setting of TYPE_SELF_TYPE.
11280 (check_stub_method): Call smash_to_method_type.
11281 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11282 (copy_type_recursive): Ditto.
11283 * gdbtypes.h (enum type_specific_kind): New value
11284 TYPE_SPECIFIC_SELF_TYPE.
11285 (struct main_type) <type_specific>: New member self_type.
11286 (struct cplus_struct_type) <fn_field.type>: Update comment.
11287 (TYPE_SELF_TYPE): Rewrite.
11288 (internal_type_self_type, set_type_self_type): Declare.
11289 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11290 self_type.
11291 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11292 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11293 TYPE_TARGET_TYPE.
11294 * stabsread.c (read_member_functions): Mark methods with
11295 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11296 TYPE_SELF_TYPE.
11297
11298 2015-01-31 Doug Evans <xdje42@gmail.com>
11299
11300 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11301 All uses updated.
11302
11303 2015-01-31 Doug Evans <xdje42@gmail.com>
11304
11305 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11306 or unions. Return zero if union.
11307 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11308 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11309 gnuv3_get_vtable.
11310 (compute_vtable_size): Assert only passed structs.
11311 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11312
11313 2015-01-31 Doug Evans <xdje42@gmail.com>
11314
11315 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11316 kinds.
11317
11318 2015-01-31 Gary Benson <gbenson@redhat.com>
11319 Doug Evans <dje@google.com>
11320
11321 PR cli/9007
11322 PR cli/11920
11323 PR cli/15548
11324 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11325 reached.
11326 * common/common-exceptions.h (enum errors)
11327 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11328 * completer.h (get_max_completions_reached_message): New declaration.
11329 (max_completions): Likewise.
11330 (completion_tracker_t): New typedef.
11331 (new_completion_tracker): New declaration.
11332 (make_cleanup_free_completion_tracker): Likewise.
11333 (maybe_add_completion_enum): New enum.
11334 (maybe_add_completion): New declaration.
11335 (throw_max_completions_reached_error): Likewise.
11336 * completer.c (max_completions): New global variable.
11337 (new_completion_tracker): New function.
11338 (free_completion_tracker): Likewise.
11339 (make_cleanup_free_completion_tracker): Likewise.
11340 (maybe_add_completions): Likewise.
11341 (throw_max_completions_reached_error): Likewise.
11342 (complete_line): Remove duplicates and limit result to max_completions
11343 entries.
11344 (get_max_completions_reached_message): New function.
11345 (gdb_display_match_list): Handle max_completions.
11346 (_initialize_completer): New declaration and function.
11347 * symtab.c: Include completer.h.
11348 (completion_tracker): New static variable.
11349 (completion_list_add_name): Call maybe_add_completion.
11350 (default_make_symbol_completion_list_break_on_1): Renamed from
11351 default_make_symbol_completion_list_break_on. Maintain
11352 completion_tracker across calls to completion_list_add_name.
11353 (default_make_symbol_completion_list_break_on): New function.
11354 * top.c (init_main): Set rl_completion_display_matches_hook.
11355 * tui/tui-io.c: Include completer.h.
11356 (tui_old_rl_display_matches_hook): New static global.
11357 (tui_rl_display_match_list): Notify user if max-completions reached.
11358 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11359 * NEWS (New Options): Mention set/show max-completions.
11360
11361 2015-01-31 Gary Benson <gbenson@redhat.com>
11362
11363 * symtab.c (struct add_name_data) <code>: New field.
11364 Updated comments.
11365 (add_symtab_completions): New function.
11366 (symtab_expansion_callback): Likewise.
11367 (default_make_symbol_completion_list_break_on): Set datum.code.
11368 Move minimal symbol scan before calling expand_symtabs_matching.
11369 Scan known primary symtabs for externs and statics before calling
11370 expand_symtabs_matching. Pass symtab_expansion_callback as
11371 expansion_notify argument to expand_symtabs_matching. Do not scan
11372 primary symtabs for externs and statics after calling
11373 expand_symtabs_matching.
11374
11375 2015-01-31 Gary Benson <gbenson@redhat.com>
11376
11377 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11378 (struct quick_symbol_functions) <expand_symtabs_matching>:
11379 New argument expansion_notify. All uses updated.
11380 (expand_symtabs_matching): New argument expansion_notify.
11381 All uses updated.
11382 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11383 Also print expansion notify.
11384 * symtab.c (expand_symtabs_matching_via_partial): Call
11385 expansion_notify whenever a partial symbol table is expanded.
11386 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11387 expansion_notify whenever a symbol table is instantiated.
11388
11389 2015-01-31 Doug Evans <xdje42@gmail.com>
11390
11391 * cli-out.c: #include completer.h, readline/readline.h.
11392 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11393 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11394 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11395 * cli-out.h (cli_display_match_list): Declare.
11396 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11397 (ELLIPSIS_LEN): Ditto.
11398 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11399 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11400 (gdb_fnprint, gdb_print_filename): Ditto.
11401 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11402 (gdb_display_match_list): Ditto.
11403 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11404 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11405 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11406 (match_list_displayer): New struct.
11407 (gdb_display_match_list): Declare.
11408 * top.c (init_main): Set rl_completion_display_matches_hook.
11409 * tui/tui-io.c: #include completer.h.
11410 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11411 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11412 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11413 (tui_mld_getc, tui_mld_read_key): Ditto.
11414 (tui_rl_display_match_list): Rewrite.
11415 (tui_handle_resize_during_io): New arg for_completion. All callers
11416 updated.
11417
11418 2015-01-31 Doug Evans <xdje42@gmail.com>
11419
11420 Add symbol lookup cache.
11421 * NEWS: Document new options and commands.
11422 * symtab.c (symbol_cache_key): New static global.
11423 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11424 (SYMBOL_LOOKUP_FAILED): New macro.
11425 (symbol_cache_slot_state): New enum.
11426 (block_symbol_cache): New struct.
11427 (symbol_cache): New struct.
11428 (new_symbol_cache_size, symbol_cache_size): New static globals.
11429 (hash_symbol_entry, eq_symbol_entry): New functions.
11430 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11431 (make_symbol_cache, free_symbol_cache): New functions.
11432 (get_symbol_cache, symbol_cache_cleanup): New function.
11433 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11434 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11435 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11436 (symbol_cache_flush, symbol_cache_dump): New functions.
11437 (maintenance_print_symbol_cache): New function.
11438 (maintenance_flush_symbol_cache): New function.
11439 (symbol_cache_stats): New function.
11440 (maintenance_print_symbol_cache_statistics): New function.
11441 (symtab_new_objfile_observer): New function.
11442 (symtab_free_objfile_observer): New function.
11443 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11444 (_initialize_symtab): Init symbol_cache_key. New parameter
11445 maint symbol-cache-size. New maint commands print symbol-cache,
11446 print symbol-cache-statistics, flush-symbol-cache.
11447 Install new_objfile, free_objfile observers.
11448
11449 2015-01-31 Joel Brobecker <brobecker@adacore.com>
11450
11451 PR symtab/17855
11452 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11453 to end.
11454
11455 2015-01-31 Doug Evans <xdje42@gmail.com>
11456
11457 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11458 * auto-load.c: #include ctype.h.
11459 (struct auto_load_pspace_info): Replace member loaded_scripts with
11460 new members loaded_script_files, loaded_script_texts.
11461 (auto_load_pspace_data_cleanup): Update.
11462 (init_loaded_scripts_info): Update.
11463 (get_auto_load_pspace_data_for_loading): Update.
11464 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11465 updated.
11466 (maybe_add_script_text): New function.
11467 (clear_section_scripts): Update.
11468 (source_script_file, execute_script_contents): New functions.
11469 (source_section_scripts): Add support for
11470 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11471 (print_scripts): New function.
11472 (auto_load_info_scripts): Also print inlined scripts.
11473 (maybe_print_unsupported_script_warning): Renamed from
11474 unsupported_script_warning_print. All callers updated.
11475 (maybe_print_script_not_found_warning): Renamed from
11476 script_not_found_warning_print. All callers updated.
11477 * extension-priv.h (struct extension_language_script_ops): New member
11478 objfile_script_executor.
11479 * extension.c (ext_lang_objfile_script_executor): New function.
11480 * extension.h (objfile_script_executor_func): New typedef.
11481 (ext_lang_objfile_script_executor): Declare.
11482 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11483 * guile/guile.c (guile_extension_script_ops): Update.
11484 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11485 * python/python.c (python_extension_script_ops): Update.
11486 (gdbpy_execute_objfile_script): New function.
11487
11488 2015-01-31 Eli Zaretskii <eliz@gnu.org>
11489
11490 * tui/tui-io.c (tui_expand_tabs): New function.
11491 (tui_puts, tui_redisplay_readline): Expand TABs into the
11492 appropriate number of spaces.
11493 * tui/tui-regs.c: Include tui-io.h.
11494 (tui_register_format): Call tui_expand_tabs to expand TABs into
11495 the appropriate number of spaces.
11496 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11497
11498 2015-01-30 Doug Evans <dje@google.com>
11499
11500 * NEWS: "info source" command now display producer string if present.
11501 * source.c (source_info): Print producer string if present.
11502
11503 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11504
11505 * varobj.c (varobj_delete): Fix comment.
11506
11507 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11508
11509 * varobj.c (create_child): Modify comment.
11510
11511 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11512
11513 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11514 parameter.
11515 (ada_name_of_variable): Same.
11516 (ada_path_expr_of_child): Same.
11517 (ada_value_of_variable): Same.
11518 (ada_value_is_changeable_p): Same.
11519 (ada_value_has_mutated): Same.
11520 * c-varobj.c (varobj_is_anonymous_child): Same.
11521 (c_is_path_expr_parent): Same.
11522 (c_number_of_children): Same.
11523 (c_name_of_variable): Same.
11524 (c_path_expr_of_child): Same.
11525 (get_type): Same.
11526 (c_value_of_variable): Same.
11527 (cplus_number_of_children): Same.
11528 (cplus_name_of_variable): Same.
11529 (cplus_path_expr_of_child): Same.
11530 (cplus_value_of_variable): Same.
11531 * jv-varobj.c (java_number_of_children): Same.
11532 (java_name_of_variable): Same.
11533 (java_path_expr_of_child): Same.
11534 (java_value_of_variable): Same.
11535 * varobj.c (number_of_children): Same.
11536 (name_of_variable): Same.
11537 (is_root_p): Same.
11538 (varobj_ensure_python_env): Same.
11539 (varobj_get_objname): Same.
11540 (varobj_get_expression): Same.
11541 (varobj_get_display_format): Same.
11542 (varobj_get_display_hint): Same.
11543 (varobj_has_more): Same.
11544 (varobj_get_thread_id): Same.
11545 (varobj_get_frozen): Same.
11546 (dynamic_varobj_has_child_method): Same.
11547 (varobj_get_gdb_type): Same.
11548 (is_path_expr_parent): Same.
11549 (varobj_default_is_path_expr_parent): Same.
11550 (varobj_get_language): Same.
11551 (varobj_get_attributes): Same.
11552 (varobj_is_dynamic_p): Same.
11553 (varobj_get_child_range): Same.
11554 (varobj_value_has_mutated): Same.
11555 (varobj_get_value_type): Same.
11556 (number_of_children): Same.
11557 (name_of_variable): Same.
11558 (check_scope): Same.
11559 (varobj_editable_p): Same.
11560 (varobj_value_is_changeable_p): Same.
11561 (varobj_floating_p): Same.
11562 (varobj_default_value_is_changeable_p): Same.
11563
11564 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11565
11566 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11567 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11568 child->path_expr.
11569 (cplus_path_expr_of_child): Same.
11570
11571 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11572
11573 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11574 result.
11575 (mi_cmd_var_info_expression): Same.
11576 * varobj.c (varobj_get_expression): Mention in the comment that
11577 the result must by freed by the caller.
11578
11579 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11580
11581 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11582 varobj_get_type.
11583 (varobj_update_one): Same.
11584 * varobj.c (update_type_if_necessary): Free curr_type_str and
11585 new_type_str.
11586 (varobj_get_type): Specify in comment that the result needs to be
11587 freed by the caller.
11588
11589 2015-01-29 Doug Evans <dje@google.com>
11590
11591 PR symtab/17890
11592 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11593
11594 2015-01-25 Mark Wielaard <mjw@redhat.com>
11595
11596 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11597 * utils.c (producer_is_gcc_ge_4): Likewise.
11598 (producer_is_gcc): New function.
11599 * utils.h (producer_is_gcc): New declaration.
11600
11601 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11602
11603 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11604 kind.
11605 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11606 parameter by "addr_stack" parameter.
11607 (resolve_dynamic_range): Replace "addr" parameter by
11608 "stack_addr" parameter. Update function documentation.
11609 Update code accordingly.
11610 (resolve_dynamic_array, resolve_dynamic_union)
11611 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11612 (resolve_dynamic_type): Update code, following the changes made
11613 to resolve_dynamic_type_internal's interface.
11614 * dwarf2loc.h (struct property_addr_info): New.
11615 (dwarf2_evaluate_property): Replace "address" parameter
11616 by "addr_stack" parameter. Adjust function documentation.
11617 (struct dwarf2_offset_baton): New.
11618 (struct dwarf2_property_baton): Update documentation of
11619 field "referenced_type" to be more general. New field
11620 "offset_info" in union data field.
11621 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11622 parameter by "addr_stack" parameter. Adjust code accordingly.
11623 Add support for PROP_ADDR_OFFSET properties.
11624 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11625 DW_AT_data_member_location attributes as well. Use case
11626 statements instead of if/else condition.
11627
11628 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11629
11630 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11631 Return zero if PARENT_VALUE is NULL and parent_type's
11632 range type is dynamic.
11633
11634 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11635
11636 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11637 nonzero if the type's subtype is dynamic.
11638 (resolve_dynamic_range): Also resolve the range's subtype.
11639
11640 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
11641
11642 Pushed by Joel Brobecker <brobecker@adacore.com>.
11643 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11644
11645 2015-01-27 Doug Evans <dje@google.com>
11646
11647 * NEWS: Mention gdb.Objfile.username.
11648 * python/py-objfile.c (objfpy_get_username): New function.
11649 (objfile_getset): Add "username".
11650
11651 2015-01-24 Mark Wielaard <mjw@redhat.com>
11652
11653 * stack.c (return_command): Markup warning message with _.
11654
11655 2015-01-24 Doug Evans <xdje42@gmail.com>
11656
11657 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11658
11659 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11660
11661 Fix 100x slowdown regression on DWZ files.
11662 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11663 (struct line_header): Add offset and offset_in_dwz.
11664 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11665 (free_line_header_voidp): New declaration.
11666 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11667 functions.
11668 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11669 (handle_DW_AT_stmt_list): Use line_header_hash.
11670 (free_line_header_voidp): New function.
11671 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11672 (dwarf_decode_lines): New parameter decode_mapping, use it.
11673 (dwarf2_free_objfile): Free line_header_hash.
11674
11675 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11676
11677 PR gdb/17416
11678 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11679 value_ind.
11680
11681 2015-01-15 Mark Wielaard <mjw@redhat.com>
11682
11683 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11684 DW_AT_noreturn.
11685 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11686 calling_convention an 8 bit bit field.
11687 (TYPE_NO_RETURN): New macro.
11688 * infcmd.c (finish_command): Query if function does not return
11689 normally.
11690 * stack.c (return_command): Likewise.
11691
11692 2015-01-23 Pedro Alves <palves@redhat.com>
11693
11694 * linux-nat.c (linux_is_async_p): New macro.
11695 (linux_nat_is_async_p):
11696 (linux_nat_terminal_inferior): Check whether the target can async
11697 instead of whether it is already async.
11698 (linux_nat_terminal_ours): Don't check whether the target is
11699 async.
11700 (linux_async_pipe): Use linux_is_async_p.
11701
11702 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11703
11704 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11705 '-ascending'.
11706 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11707 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11708 Sort tp_array using tp_array_compar.
11709 (_initialize_thread): Extend thread_apply_all_command help.
11710
11711 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11712
11713 * corelow.c (core_open): Call also thread_command.
11714 * gdbthread.h (thread_command): New prototype moved from ...
11715 * thread.c (thread_command): ... here.
11716 (thread_command): Make it global.
11717
11718 2015-01-22 Pedro Alves <palves@redhat.com>
11719
11720 * configure.ac [*mingw32*]: Check $curses_found instead of
11721 $prefer_curses.
11722 * configure: Regenerate.
11723 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11724 HAVE_NCURSES_NCURSES_H checks.
11725
11726 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11727
11728 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11729 fails with the 1st arg NULL, try again with "unknown". Don't test
11730 the "cup" capability: it isn't supported by the Windows port of
11731 ncurses, but the Windows console driver is still capable of
11732 supporting TUI.
11733
11734 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11735
11736 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11737
11738 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11739
11740 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11741 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11742 reason that "make TAGS" is broken.
11743
11744 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11745
11746 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11747 and check additional store instructions.
11748
11749 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11750
11751 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11752
11753 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11754
11755 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11756 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11757 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11758 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11759 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11760 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11761 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11762 ppc_process_record_op19, ppc_process_record_op31,
11763 ppc_process_record_op59, ppc_process_record_op60,
11764 ppc_process_record_op63): Likewise.
11765
11766 2015-01-20 Joel Brobecker <brobecker@adacore.com>
11767
11768 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11769 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11770 strerror.
11771
11772 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
11773
11774 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11775 ppc_process_record_op31, ppc_process_record_op59,
11776 ppc_process_record_op60, ppc_process_record_op63,
11777 ppc_process_record): Fix -Wformat warning.
11778 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11779 Remove unused variables.
11780
11781 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11782
11783 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11784
11785 2015-01-19 Eli Zaretskii <eliz@gnu.org>
11786
11787 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11788 CONFIG_OBS if not building with a curses library.
11789 * configure: Regenerate.
11790
11791 * windows-termcap.c: Include defs.h. Make the whole body empty if
11792 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11793 HAVE_NCURSES_NCURSES_H is defined.
11794
11795 2015-01-19 Joel Brobecker <brobecker@adacore.com>
11796
11797 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11798 from end of line to start of next line.
11799
11800 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11801
11802 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11803 Scan PLT stub backward for reverse debugging.
11804 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11805
11806 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11807 Ulrich Weigand <uweigand@de.ibm.com>
11808
11809 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11810 gdb_target_obs.
11811 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11812 record.
11813 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11814 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11815 (ppc_linux_init_abi): Set process_record, process_record_signal.
11816 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11817 ppc_linux_record_tdep to gdbarch_tdep.
11818 (ppc_process_record): New declaration.
11819 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11820 ppc_process_record_op19, ppc_process_record_op31,
11821 ppc_process_record_op59, ppc_process_record_op60,
11822 ppc_process_record_op63, ppc_process_record): New functions.
11823
11824 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11825
11826 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11827 rs6000_in_function_epilogue_frame_p and add an argument
11828 for frame_info.
11829 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11830 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11831 New functions.
11832 (rs6000_epilogue_frame_unwind): New.
11833 (rs6000_gdbarch_init): Append epilogue unwinder.
11834
11835 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11836
11837 * nat/linux-personality.c: Replace "#ifndef
11838 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11839 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11840 systems.
11841
11842 2015-01-16 Eli Zaretskii <eliz@gnu.org>
11843
11844 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11845 functions.
11846 (_initialize_tui_win) <border-kind, border-mode>:
11847 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
11848 (tui_set_tab_width_command): Fix the commentary.
11849
11850 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11851
11852 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11853 Doc fix.
11854 (tui_set_tab_width_command): Delete and recreate the source and
11855 the disassembly windows, to show the effect of the changed tab
11856 size immediately.
11857
11858 * tui/tui-data.h (LINE_PREFIX): Make shorter
11859 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11860 "Thread NNNNN.XXXX" thread ID notation on Windows.
11861
11862 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11863
11864 Fix gcc-5 compilation.
11865 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11866
11867 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11868
11869 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11870 (linux-personality.o): New rule.
11871 * common/common-defs.h: Include <stdint.h>.
11872 * config/aarch64/linux.mh (NATDEPFILES): Include
11873 linux-personality.o.
11874 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11875 * config/arm/linux.mh (NATDEPFILES): Likewise.
11876 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11877 * config/i386/linux.mh (NATDEPFILES): Likewise.
11878 * config/ia64/linux.mh (NATDEPFILES): Likewise.
11879 * config/m32r/linux.mh (NATDEPFILES): Likewise.
11880 * config/m68k/linux.mh (NATDEPFILES): Likewise.
11881 * config/mips/linux.mh (NATDEPFILES): Likewise.
11882 * config/pa/linux.mh (NATDEPFILES): Likewise.
11883 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11884 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11885 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11886 * config/s390/linux.mh (NATDEPFILES): Likewise.
11887 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11888 * config/sparc/linux.mh (NATDEPFILES): Likewise.
11889 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11890 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11891 * defs.h: Remove #include <stdint.h> (moved to
11892 common/common-defs.h).
11893 * linux-nat.c: Include nat/linux-personality.h. Remove #include
11894 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11895 nat/linux-personality.c).
11896 (linux_nat_create_inferior): Remove code to disable address space
11897 randomization (moved to nat/linux-personality.c). Create cleanup
11898 to disable address space randomization.
11899 * nat/linux-personality.c: New file.
11900 * nat/linux-personality.h: Likewise.
11901
11902 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11903
11904 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
11905 common/posix-strerror.c.
11906 (posix-strerror.o): New rule.
11907 (mingw-strerror.o): Likewise.
11908 * common/common-utils.h (safe_strerror): Move prototype to here,
11909 from utils.h.
11910 * common/common.host: New file.
11911 * common/mingw-strerror.c: Likewise.
11912 * common/posix-strerror.c: Likewise.
11913 * configure: Regenerated.
11914 * configure.ac: Source common/common.host. Add variable
11915 common_host_obs to gdb_host_obs.
11916 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
11917 gdb/common/posix-strerror.c when warning about the use of
11918 strerror.
11919 * mingw-hdep.c (safe_strerror): Remove definition; move it to
11920 common/mingw-strerror.c.
11921 * posix-hdep.c (safe_strerror): Remove definition; move it to
11922 common/posix-hdep.c.
11923 * utils.h (safe_strerror): Remove prototype; move to
11924 common/common-utils.h.
11925
11926 2015-01-15 Joel Brobecker <brobecker@adacore.com>
11927
11928 GDB 7.8.2 released.
11929
11930 2015-01-15 Joel Brobecker <brobecker@adacore.com>
11931
11932 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
11933 ___XA type if the array has already been fixed.
11934
11935 2015-01-14 Yao Qi <yao@codesourcery.com>
11936
11937 * Makefile.in (ppc-linux.o): New rule.
11938 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
11939 * configure.ac: AC_CHECK_FUNCS(getauxval).
11940 * config.in: Re-generated.
11941 * configure: Re-generated.
11942 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
11943 Declare.
11944 * nat/ppc-linux.c: New file.
11945 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
11946 Call ppc64_64bit_inferior_p.
11947
11948 2015-01-14 Yao Qi <yao@codesourcery.com>
11949
11950 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
11951 nat/ppc-linux.h.
11952 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
11953 (PPC_FEATURE_HAS_DFP): Likewise.
11954 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11955 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11956 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11957 Include "nat/ppc-linux.h".
11958 * nat/ppc-linux.h: New file.
11959 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
11960
11961 2015-01-14 Pedro Alves <palves@redhat.com>
11962
11963 PR gdb/17525
11964 * breakpoint.c: Include "interps.h".
11965 (bpstat_do_actions_1): Also check whether the interpreter is
11966 async.
11967
11968 2015-01-14 Pedro Alves <palves@redhat.com>
11969
11970 PR cli/17828
11971 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
11972 reinstall if the interpreter is sync.
11973
11974 2015-01-13 Doug Evans <dje@google.com>
11975
11976 * objfiles.c (objfile_filename): New function.
11977 * objfiles.h (objfile_filename): Declare it.
11978 (objfile_name): Add function comment.
11979 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
11980 bfd file name (which may be realpath'd), and the original name.
11981
11982 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11983
11984 * NEWS: Create a new section for the next release branch.
11985 Rename the section of the current branch, now that it has
11986 been cut.
11987
11988 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11989
11990 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
11991 * version.in: Bump version to 7.9.50.DATE-cvs.
11992
11993 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11994
11995 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
11996 Remove trailing new-line in argument of call to warning.
11997
11998 2015-01-13 Joel Brobecker <brobecker@adacore.com>
11999
12000 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12001 new-line in argument of call to "warning".
12002
12003 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12004
12005 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12006 in static block, then try searching for primitive types.
12007
12008 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12009
12010 * top.h (gdb_add_history): Declare.
12011 * top.c (command_count): New variable.
12012 (gdb_add_history): New function.
12013 (gdb_safe_append_history): New static function.
12014 (quit_force): Call it.
12015 (command_line_input): Use gdb_add_history instead of
12016 add_history.
12017 * event-top.c (command_line_handler): Likewise.
12018
12019 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12020
12021 PR gdb/17046
12022 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12023 <setjmp.h> #include.
12024
12025 2015-01-11 Doug Evans <xdje42@gmail.com>
12026
12027 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12028
12029 2015-01-11 Doug Evans <xdje42@gmail.com>
12030
12031 PR gdb/15830
12032 * NEWS: The "maint demangle" command is renamed as "demangle".
12033 * demangle.c: #include cli/cli-utils.h, language.h.
12034 (demangle_command): New function.
12035 (_initialize_demangle): Add new command "demangle".
12036 * maint.c (maintenance_demangle): Stub out.
12037 (_initialize_maint_cmds): Update help text for "maint demangle",
12038 and mark as deprecated.
12039
12040 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12041
12042 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12043 inferior_thread is a function.
12044
12045 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12046
12047 * Makefile.in (.y.c): Don't munge yacc's #line
12048 directives.
12049
12050 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12051
12052 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12053 to prompt for input.
12054 * tui/tui-hooks.c (tui_query_hook): Remove.
12055 (tui_install_hooks): Don't set deprecated_query_hook.
12056 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12057 height calculation. Always update the command window's cur_line.
12058
12059 2015-01-09 Pedro Alves <palves@redhat.com>
12060
12061 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12062 function.
12063 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12064 declaration.
12065 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12066 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12067 stop_reason.
12068 (check_stopped_by_watchpoint): New function.
12069 (save_sigtrap): Reimplement.
12070 (linux_nat_stopped_by_watchpoint): Adjust.
12071 (linux_nat_lp_status_is_event): Delete.
12072 (stop_wait_callback): Only call save_sigtrap after storing the
12073 pending status.
12074 (status_callback): If the thread had been stopped for a breakpoint
12075 that has since been removed, discard the event and resume the LWP.
12076 (count_events_callback, select_event_lwp_callback): Use
12077 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12078 (cancel_breakpoint): Rename to ...
12079 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12080 stopped for a software breakpoint or hardware breakpoint.
12081 (select_event_lwp): Only give preference to the stepping LWP in
12082 all-stop mode. Adjust comments.
12083 (stop_and_resume_callback): Remove references to new_pending_p.
12084 (linux_nat_filter_event): Likewise. Leave exit events of the
12085 leader thread pending here. Handle signal short circuiting here.
12086 Only call save_sigtrap after storing the pending waitstatus.
12087 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12088 new_pending. Don't handle leaving events the caller is not
12089 interested in pending here, nor handle signal short-circuiting
12090 here. Also give equal priority to all LWPs that have had events
12091 in non-stop mode. If reporting a software breakpoint event,
12092 unadjust the LWP's PC.
12093 * linux-nat.h (enum lwp_stop_reason): New.
12094 (struct lwp_info) <stop_pc>: New field.
12095 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12096 (struct lwp_info) <stop_reason>: New field.
12097 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12098
12099 2015-01-09 Pedro Alves <palves@redhat.com>
12100
12101 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12102 Set the LWP's 'resumed' flag.
12103
12104 2015-01-09 Pedro Alves <palves@redhat.com>
12105
12106 * linux-nat.c (linux_resume_one_lwp): New function.
12107 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12108 (linux_nat_resume): Use lwp_status_pending_p and
12109 linux_resume_one_lwp.
12110 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12111 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12112 (status_callback, running_callback): Use lwp_status_pending_p.
12113 (lwp_status_pending_p): New function.
12114 (stop_and_resume_callback): Use lwp_status_pending_p.
12115 (linux_nat_filter_event): Use linux_resume_one_lwp.
12116 (linux_nat_wait_1): Always use status_callback to look for an LWP
12117 with a pending status. Use linux_resume_one_lwp.
12118 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12119 linux_resume_one_lwp.
12120
12121 2015-01-09 Pedro Alves <palves@redhat.com>
12122
12123 * breakpoint.c (bp_location_inserted_here_p): New function,
12124 factored out from ...
12125 (breakpoint_inserted_here_p): ... here. Use
12126 ALL_BP_LOCATIONS_AT_ADDR.
12127 (software_breakpoint_inserted_here_p): Use
12128 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12129
12130 2014-01-09 Pedro Alves <palves@redhat.com>
12131
12132 Skip enabling event reporting if the kernel supports
12133 PTRACE_EVENT_CLONE.
12134 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12135 (thread_db_use_events): New function.
12136 (try_thread_db_load_1): Check thread_db_use_events before enabling
12137 event reporting.
12138 (update_thread_state): New function.
12139 (attach_thread): Use it. Check thread_db_use_events before
12140 enabling event reporting.
12141 (thread_db_detach): Check thread_db_use_events before disabling
12142 event reporting.
12143 (find_new_threads_callback): Check thread_db_use_events before
12144 enabling event reporting. Update the thread's state if not using
12145 libthread_db events.
12146
12147 2015-01-09 Pedro Alves <palves@redhat.com>
12148
12149 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12150 about to wait for is > 0.
12151 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12152 the kernel thread ID is -1.
12153
12154 2015-01-09 Pedro Alves <palves@redhat.com>
12155
12156 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12157 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12158 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12159 ptrace option flags.
12160 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12161 field.
12162 * nat/linux-procfs.c: Include <dirent.h>.
12163 (linux_proc_get_int): New parameter "warn". Handle it.
12164 (linux_proc_get_tgid): Adjust.
12165 (linux_proc_get_tracerpid): Rename to ...
12166 (linux_proc_get_tracerpid_nowarn): ... this.
12167 (linux_proc_pid_get_state): New function, factored out from
12168 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12169 and handle it.
12170 (linux_proc_pid_is_gone): New function.
12171 (linux_proc_pid_is_stopped): Adjust.
12172 (linux_proc_pid_is_zombie_maybe_warn)
12173 (linux_proc_pid_is_zombie_nowarn): New functions.
12174 (linux_proc_pid_is_zombie): Use
12175 linux_proc_pid_is_zombie_maybe_warn.
12176 (linux_proc_attach_tgid_threads): New function.
12177 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12178 (linux_proc_get_tracerpid): Rename to ...
12179 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12180 (linux_proc_pid_is_gone): New declaration.
12181 (linux_proc_pid_is_zombie): Update comment.
12182 (linux_proc_pid_is_zombie_nowarn): New declaration.
12183 (linux_proc_attach_lwp_func): New typedef.
12184 (linux_proc_attach_tgid_threads): New declaration.
12185 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12186 use nowarn functions.
12187 (linux_ptrace_attach_fail_reason_string): Move here from
12188 gdbserver/linux-low.c and rename.
12189 (ptrace_supports_feature): If the current ptrace options are not
12190 known yet, check them now, instead of asserting.
12191 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12192 Declare.
12193
12194 2015-01-09 Pedro Alves <palves@redhat.com>
12195
12196 * linux-thread-db.c (thread_db_find_new_threads_silently)
12197 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12198 (find_new_threads_once): Print debug output on gdb_stdlog.
12199
12200 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12201 Pedro Alves <palves@redhat.com>
12202
12203 * compile/compile.c: Include "gdb_wait.h".
12204 (do_rmdir): Check return value, and free 'zap'.
12205
12206 2015-01-08 Pedro Alves <palves@redhat.com>
12207 Yao Qi <yao@codesourcery.com>
12208
12209 * dwarf2loc.c (indirect_pieced_value): Don't call
12210 gdb_sign_extend. Call extract_signed_integer instead.
12211 * utils.c (gdb_sign_extend): Remove.
12212 * utils.h (gdb_sign_extend): Remove declaration.
12213
12214 2015-01-07 Pierre Muller <muller@sourceware.org>
12215
12216 PR symtab/17811
12217 * stabsread.c (define_symbol): Set language for C++ special symbols.
12218
12219 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12220
12221 * inflow.c (initial_gdb_ttystate): Tweak comment.
12222
12223 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12224
12225 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12226 comment documenting function.
12227
12228 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12229
12230 * terminal.h (set_initial_gdb_ttystate): Declare.
12231 * inflow.c (initial_gdb_ttystate): New static variable.
12232 (set_initial_gdb_ttystate): New setter.
12233 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12234 instead of our current terminal state.
12235 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12236
12237 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12238
12239 * guile/scm-type.c (tyscm_array_1): Add comment.
12240 * python/py-type.c (typy_array_1): Add comment.
12241
12242 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12243
12244 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12245 error if N2 is equal to N1 - 1.
12246
12247 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12248
12249 * python/py-type.c (typy_array_1): Do not raise negative-length
12250 exception if N2 is equal to N1 - 1.
12251
12252 2015-01-03 Doug Evans <xdje42@gmail.com>
12253
12254 * c-exp.y: Whitespace cleanup.
12255 (classify_inner_name): Remove extra ;.
12256
12257 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12258
12259 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12260 offset signed.
12261
12262 2015-01-02 Doug Evans <dje@google.com>
12263
12264 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12265
12266 2015-01-02 Doug Evans <dje@google.com>
12267
12268 * symtab.h (struct symbol): Fix typo in comment.
12269
12270 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12271
12272 Update year range in copyright notice of all files.
12273
12274 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12275
12276 * top.c (print_gdb_version): Update copyright year to 2015.
12277
12278 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12279
12280 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12281
12282 For older changes see ChangeLog-2014.
12283 \f
12284 Local Variables:
12285 mode: change-log
12286 left-margin: 8
12287 fill-column: 74
12288 version-control: never
12289 coding: utf-8
12290 End:
This page took 0.264187 seconds and 5 git commands to generate.