1 2015-10-09 Eli Zaretskii <eliz@gnu.org>
3 * stack.c (print_stack_frame):
4 * utils.c (printchar): Fix typos in commentary.
6 2015-10-08 Iain Buclaw <ibuclaw@gdcproject.org>
8 * d-exp.y: (UnaryExpression): Support `type.sizeof' expressions.
9 (PostfixExpression): Support `expr.sizeof' expressions.
10 (PrimaryExpression): Support `typeof(expr)' expressions.
12 2015-10-08 Maciej W. Rozycki <macro@imgtec.com>
14 * MAINTAINERS: Update my email address.
16 2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
18 * record-btrace.c (record_btrace_resume): Fix void return.
20 2015-10-07 Yao Qi <yao.qi@linaro.org>
22 * aarch64-tdep.c: Include opcode/aarch64.h.
23 (submask): Move it above.
26 (aarch64_software_single_step): Call aarch64_decode_insn.
27 Decode instruction by aarch64_inst instead of using
28 aarch64_decode_bcond and decode_masked_match.
30 2015-10-06 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
32 * cli/cli-dump.c (restore_command): Parse load_offset (bias) as address
33 only when the file is binary.
35 2015-10-02 James Bowman <james.bowman@ftdichip.com>
37 * ft32-tdep.c (ft32_analyze_prologue): Add function prolog
40 2015-10-01 Simon Marchi <simon.marchi@ericsson.com>
42 * common/vec.h (VEC_OP (T,cleanup)): Add pointer cast.
44 2015-09-30 Doug Evans <dje@google.com>
46 * dwarf2read.c (setup_type_unit_groups): Add comment.
48 2015-09-30 Pedro Alves <palves@redhat.com>
50 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
51 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
52 (x86_linux_create_target): Don't install
53 x86_linux_always_non_stop_p.
55 2015-09-30 Don Breazeal <donb@codesourcery.com>
57 * remote.c (remote_parse_stop_reply): Call strprefix instead
60 2015-09-30 Simon Marchi <simon.marchi@ericsson.com>
62 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
63 * gdbarch.h: Regenerate.
64 * i386-tdep.c (i386_gdbarch_init): Remove cast to
65 struct gdbarch_tdep_info *.
66 * mips-tdep.c (mips_gdbarch_init): Likewise.
67 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
68 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
69 * spu-multiarch.c (spu_gdbarch): Likewise.
71 2015-09-30 Kevin Buettner <kevinb@redhat.com>
73 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
76 2015-09-29 Kevin Buettner <kevinb@redhat.com>
78 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
79 and union arguments the same as pointer arguments when determining
82 2015-09-29 James Bowman <james.bowman@ftdichip.com>
84 * ft32-tdep.c: #include "opcode/ft32.h".
85 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
86 (ft32_analyze_prologue): Use FT32_* macros.
88 2015-09-28 Simon Marchi <simon.marchi@ericsson.com>
90 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
93 2015-09-28 Doug Evans <dje@google.com>
95 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
97 2015-09-28 Doug Evans <dje@google.com>
99 * common/filestuff.c (make_cleanup_close): Update comment.
101 2015-09-26 Simon Marchi <simark@nova.polymtl.ca>
103 * btrace.c (parse_xml_btrace_block): Fix cast of
104 xml_find_attribute's return value.
105 * memory-map.c (memory_map_start_memory): Likewise.
106 * solib-svr4.c (library_list_start_library): Likewise.
107 * solib-target.c (library_list_start_segment): Likewise.
108 (library_list_start_section): Likewise.
109 * tracepoint.c (traceframe_info_start_memory): Likewise.
111 2015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
113 * d-namespace.c (d_lookup_symbol): New arg langdef.
114 All callers updated. Support looking up symbol as a primitive type.
115 (lookup_module_scope): New arg langdef. All callers updated.
116 Call d_lookup_symbol directly for simple bare symbols.
118 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
120 * macrocmd.c (print_macro_callback): Add cast(s).
121 * macrotab.c (macro_bcache_str): Likewise.
122 (new_macro_definition): Likewise.
123 * main.c (captured_main): Likewise.
124 * maint.c (print_bfd_section_info): Likewise.
125 * mdebugread.c (mdebug_build_psymtabs): Likewise.
126 (basic_type): Likewise.
127 * memattr.c (mem_region_cmp): Likewise.
128 * memory-map.c (memory_map_start_memory): Likewise.
129 (memory_map_end_memory): Likewise.
130 (memory_map_start_property): Likewise.
131 (memory_map_end_property): Likewise.
132 (clear_result): Likewise.
133 * memrange.c (compare_mem_ranges): Likewise.
134 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
135 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
136 * mi/mi-console.c (mi_console_file_delete): Likewise.
137 (mi_console_file_fputs): Likewise.
138 (mi_console_raw_packet): Likewise.
139 (mi_console_file_flush): Likewise.
140 (mi_console_set_raw): Likewise.
141 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
142 (mi_new_thread): Likewise.
143 (mi_thread_exit): Likewise.
144 (mi_record_changed): Likewise.
145 (mi_inferior_added): Likewise.
146 (mi_inferior_appeared): Likewise.
147 (mi_inferior_exit): Likewise.
148 (mi_inferior_removed): Likewise.
149 (mi_interp_data): Likewise.
150 (mi_on_normal_stop): Likewise.
151 (mi_traceframe_changed): Likewise.
152 (mi_tsv_created): Likewise.
153 (mi_tsv_deleted): Likewise.
154 (mi_tsv_modified): Likewise.
155 (mi_breakpoint_created): Likewise.
156 (mi_breakpoint_deleted): Likewise.
157 (mi_breakpoint_modified): Likewise.
158 (mi_output_running_pid): Likewise.
159 (mi_inferior_count): Likewise.
160 (mi_solib_loaded): Likewise.
161 (mi_solib_unloaded): Likewise.
162 (mi_command_param_changed): Likewise.
163 (mi_memory_changed): Likewise.
164 (report_initial_inferior): Likewise.
165 (mi_ui_out): Likewise.
166 (mi_set_logging): Likewise.
167 * mi/mi-main.c (collect_cores): Likewise.
168 (print_one_inferior): Likewise.
169 (free_vector_of_ints): Likewise.
170 (free_splay_tree): Likewise.
171 (mi_execute_command): Likewise.
172 * mi/mi-out.c (mi_table_body): Likewise.
173 (mi_table_end): Likewise.
174 (mi_table_header): Likewise.
175 (mi_begin): Likewise.
177 (mi_field_int): Likewise.
178 (mi_field_string): Likewise.
179 (mi_field_fmt): Likewise.
180 (mi_flush): Likewise.
181 (mi_redirect): Likewise.
182 (field_separator): Likewise.
184 (mi_close): Likewise.
185 (mi_out_buffered): Likewise.
186 (mi_out_rewind): Likewise.
187 (mi_out_put): Likewise.
188 (mi_version): Likewise.
189 (mi_out_data_dtor): Likewise.
190 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
191 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
192 * minidebug.c (lzma_open): Likewise.
193 (lzma_pread): Likewise.
194 (lzma_close): Likewise.
195 (lzma_stat): Likewise.
196 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
197 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
198 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
199 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
200 (mips_micro_frame_cache): Likewise.
201 (mips_insn32_frame_cache): Likewise.
202 (mips_stub_frame_cache): Likewise.
203 (gdb_print_insn_mips): Likewise.
204 (value_of_mips_user_reg): Likewise.
205 (mips_gdbarch_init): Likewise.
206 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
207 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
208 (mipsnbsd_supply_gregset): Likewise.
209 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
210 (am33_collect_gregset_method): Likewise.
211 (am33_collect_fpregset_method): Likewise.
212 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
213 * moxie-tdep.c (moxie_frame_cache): Likewise.
214 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
215 (msp430_analyze_frame_prologue): Likewise.
216 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
217 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
218 (nios2_collect_gregset): Likewise.
219 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
220 (nios2_stub_frame_cache): Likewise.
221 * objc-lang.c (find_methods): Likewise.
222 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
223 (get_objfile_pspace_data): Likewise.
224 (get_objfile_bfd_data): Likewise.
225 (objfile_bfd_data_free): Likewise.
226 (add_to_objfile_sections): Likewise.
227 (do_free_objfile_cleanup): Likewise.
228 (resume_section_map_updates_cleanup): Likewise.
229 * opencl-lang.c (builtin_opencl_type): Likewise.
230 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
231 * osdata.c (osdata_start_osdata): Likewise.
232 (osdata_start_item): Likewise.
233 (osdata_start_column): Likewise.
234 (osdata_end_column): Likewise.
235 (clear_parsing_data): Likewise.
236 (osdata_free_cleanup): Likewise.
237 * parse.c (type_stack_cleanup): Likewise.
238 (exp_uses_objfile_iter): Likewise.
239 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
240 (ppc_linux_collect_gregset): Likewise.
241 (ppu2spu_prev_arch): Likewise.
242 (ppu2spu_this_id): Likewise.
243 (ppu2spu_prev_register): Likewise.
244 (ppu2spu_unwind_register): Likewise.
245 (ppu2spu_sniffer): Likewise.
246 (ppu2spu_dealloc_cache): Likewise.
247 (ppc_linux_init_abi): Likewise.
248 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
249 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
250 * progspace.c (restore_program_space): Likewise.
251 * psymtab.c (find_pc_sect_psymtab): Likewise.
252 (compare_psymbols): Likewise.
253 (psymbol_bcache_full): Likewise.
254 (allocate_psymtab): Likewise.
255 (discard_psymtabs_upto): Likewise.
256 * python/py-block.c (set_block): Likewise.
257 (del_objfile_blocks): Likewise.
258 * python/py-breakpoint.c (build_bp_list): Likewise.
259 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
260 (build_inferior_list): Likewise.
261 (py_free_inferior): Likewise.
262 * python/py-objfile.c (py_free_objfile): Likewise.
263 (objfile_to_objfile_object): Likewise.
264 * python/py-prettyprint.c (py_restore_tstate): Likewise.
265 * python/py-progspace.c (py_free_pspace): Likewise.
266 (pspace_to_pspace_object): Likewise.
267 * python/py-symbol.c (set_symbol): Likewise.
268 (del_objfile_symbols): Likewise.
269 * python/py-symtab.c (set_sal): Likewise.
270 (set_symtab): Likewise.
271 (del_objfile_symtab): Likewise.
272 (del_objfile_sal): Likewise.
273 * python/py-type.c (save_objfile_types): Likewise.
274 (set_type): Likewise.
275 * python/py-unwind.c (pyuw_prev_register): Likewise.
276 (pyuw_on_new_gdbarch): Likewise.
277 * python/py-utils.c (py_decref): Likewise.
278 (py_xdecref): Likewise.
279 (gdb_py_generic_dict): Likewise.
280 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
281 (gdbpy_clone_xmethod_worker_data): Likewise.
282 (gdbpy_get_xmethod_arg_types): Likewise.
283 (gdbpy_get_xmethod_result_type): Likewise.
284 (gdbpy_invoke_xmethod): Likewise.
285 * python/python.c (gdbpy_apply_type_printers): Likewise.
286 (gdbpy_free_type_printers): Likewise.
287 * record-btrace.c (record_btrace_disable_callback): Likewise.
288 (bfcache_hash): Likewise.
289 (bfcache_eq): Likewise.
290 (btrace_get_frame_function): Likewise.
291 (record_btrace_frame_unwind_stop_reason): Likewise.
292 (record_btrace_frame_this_id): Likewise.
293 (record_btrace_frame_prev_register): Likewise.
294 (record_btrace_frame_dealloc_cache): Likewise.
295 * record-full.c (record_full_message_wrapper): Likewise.
296 (record_full_save_cleanups): Likewise.
297 * regcache.c (regcache_descr): Likewise.
298 (do_regcache_xfree): Likewise.
299 (do_regcache_invalidate): Likewise.
300 (do_cooked_read): Likewise.
301 (regcache_transfer_regset): Likewise.
302 * reggroups.c (reggroup_add): Likewise.
303 (reggroup_next): Likewise.
304 (reggroup_prev): Likewise.
305 * remote-fileio.c (do_remote_fileio_request): Likewise.
306 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
307 (do_notif_event_xfree): Likewise.
308 * remote.c (get_remote_arch_state): Likewise.
309 (remote_pspace_data_cleanup): Likewise.
310 (get_remote_exec_file): Likewise.
311 (set_pspace_remote_exec_file): Likewise.
312 (compare_pnums): Likewise.
313 (clear_threads_listing_context): Likewise.
314 (remote_newthread_step): Likewise.
315 (start_thread): Likewise.
316 (end_thread): Likewise.
317 (remove_child_of_pending_fork): Likewise.
318 (remove_stop_reply_for_inferior): Likewise.
319 (remove_stop_reply_of_remote_state): Likewise.
320 (remote_notif_remove_once_on_match): Likewise.
321 (stop_reply_match_ptid_and_ws): Likewise.
322 (kill_child_of_pending_fork): Likewise.
323 (register_remote_g_packet_guess): Likewise.
324 (remote_read_description_p): Likewise.
325 (remote_read_description): Likewise.
326 (free_actions_list_cleanup_wrapper): Likewise.
327 (remote_async_serial_handler): Likewise.
328 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
329 (rl78_analyze_frame_prologue): Likewise.
330 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
331 (ppc_supply_fpregset): Likewise.
332 (ppc_supply_vsxregset): Likewise.
333 (ppc_supply_vrregset): Likewise.
334 (ppc_collect_gregset): Likewise.
335 (ppc_collect_fpregset): Likewise.
336 (ppc_collect_vsxregset): Likewise.
337 (ppc_collect_vrregset): Likewise.
338 (e500_move_ev_register): Likewise.
339 (do_regcache_raw_write): Likewise.
340 (rs6000_frame_cache): Likewise.
341 (rs6000_epilogue_frame_cache): Likewise.
342 (rs6000_gdbarch_init): Likewise.
343 * rx-tdep.c (rx_get_opcode_byte): Likewise.
344 (rx_analyze_frame_prologue): Likewise.
345 (rx_frame_type): Likewise.
346 (rx_frame_sniffer_common): Likewise.
347 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
348 (s390_frame_unwind_cache): Likewise.
349 (s390_stub_frame_unwind_cache): Likewise.
350 (s390_sigtramp_frame_unwind_cache): Likewise.
351 * score-tdep.c (score_make_prologue_cache): Likewise.
352 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
353 (sentinel_frame_prev_arch): Likewise.
354 * ser-base.c (fd_event): Likewise.
355 (push_event): Likewise.
356 (ser_base_write): Likewise.
357 * ser-pipe.c (pipe_close): Likewise.
358 * serial.c (serial_write): Likewise.
359 * sh-tdep.c (sh_frame_cache): Likewise.
360 (sh_stub_this_id): Likewise.
361 * sh64-tdep.c (sh64_frame_cache): Likewise.
362 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
363 (library_list_start_library): Likewise.
364 (library_list_start_list): Likewise.
365 (solib_aix_free_library_list): Likewise.
366 * solib-darwin.c (get_darwin_info): Likewise.
367 * solib-dsbt.c (get_dsbt_info): Likewise.
368 * solib-spu.c (append_ocl_sos): Likewise.
369 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
370 (get_svr4_info): Likewise.
371 (library_list_start_library): Likewise.
372 (svr4_library_list_start_list): Likewise.
373 (hash_probe_and_action): Likewise.
374 (equal_probe_and_action): Likewise.
375 (svr4_update_solib_event_breakpoint): Likewise.
376 (set_solib_svr4_fetch_link_map_offsets): Likewise.
377 (svr4_fetch_link_map_offsets): Likewise.
378 (svr4_have_link_map_offsets): Likewise.
379 * solib-target.c (library_list_start_segment): Likewise.
380 (library_list_start_section): Likewise.
381 (library_list_start_library): Likewise.
382 (library_list_end_library): Likewise.
383 (library_list_start_list): Likewise.
384 (solib_target_free_library_list): Likewise.
385 * solib.c (solib_ops): Likewise.
386 (set_solib_ops): Likewise.
387 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
388 * sparc-tdep.c (sparc_frame_cache): Likewise.
389 (sparc32_frame_cache): Likewise.
390 (sparc32_supply_gregset): Likewise.
391 (sparc32_collect_gregset): Likewise.
392 (sparc32_supply_fpregset): Likewise.
393 (sparc32_collect_fpregset): Likewise.
394 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
395 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
396 (sparc64_collect_gregset): Likewise.
397 (sparc64_supply_fpregset): Likewise.
398 (sparc64_collect_fpregset): Likewise.
399 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
400 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
401 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
402 (sparc64obsd_trapframe_cache): Likewise.
403 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
404 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
405 * spu-multiarch.c (spu_gdbarch): Likewise.
406 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
407 (spu2ppu_prev_arch): Likewise.
408 (spu2ppu_this_id): Likewise.
409 (spu2ppu_prev_register): Likewise.
410 (spu2ppu_dealloc_cache): Likewise.
411 (spu_dis_asm_print_address): Likewise.
412 (gdb_print_insn_spu): Likewise.
413 (spu_get_overlay_table): Likewise.
414 * stabsread.c (rs6000_builtin_type): Likewise.
415 * stack.c (do_print_variable_and_value): Likewise.
416 * stap-probe.c (get_stap_base_address_1): Likewise.
417 * symfile-debug.c (debug_qf_has_symbols): Likewise.
418 (debug_qf_find_last_source_symtab): Likewise.
419 (debug_qf_forget_cached_source_info): Likewise.
420 (debug_qf_map_symtabs_matching_filename): Likewise.
421 (debug_qf_lookup_symbol): Likewise.
422 (debug_qf_print_stats): Likewise.
423 (debug_qf_dump): Likewise.
424 (debug_qf_relocate): Likewise.
425 (debug_qf_expand_symtabs_for_function): Likewise.
426 (debug_qf_expand_all_symtabs): Likewise.
427 (debug_qf_expand_symtabs_with_fullname): Likewise.
428 (debug_qf_map_matching_symbols): Likewise.
429 (debug_qf_expand_symtabs_matching): Likewise.
430 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
431 (debug_qf_map_symbol_filenames): Likewise.
432 (debug_sym_get_probes): Likewise.
433 (debug_sym_new_init): Likewise.
434 (debug_sym_init): Likewise.
435 (debug_sym_read): Likewise.
436 (debug_sym_read_psymbols): Likewise.
437 (debug_sym_finish): Likewise.
438 (debug_sym_offsets): Likewise.
439 (debug_sym_read_linetable): Likewise.
440 (debug_sym_relocate): Likewise.
441 (uninstall_symfile_debug_logging): Likewise.
442 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
443 * symfile.c (place_section): Likewise.
444 (add_section_size_callback): Likewise.
445 (load_progress): Likewise.
446 (load_section_callback): Likewise.
447 (clear_memory_write_data): Likewise.
448 (allocate_symtab): Likewise.
449 * symmisc.c (maintenance_expand_file_matcher): Likewise.
450 * symtab.c (lookup_symtab_callback): Likewise.
451 (hash_demangled_name_entry): Likewise.
452 (eq_demangled_name_entry): Likewise.
453 (get_symbol_cache): Likewise.
454 (symbol_cache_cleanup): Likewise.
455 (set_symbol_cache_size): Likewise.
456 (symbol_cache_flush): Likewise.
457 (maintenance_print_symbol_cache): Likewise.
458 (maintenance_print_symbol_cache_statistics): Likewise.
459 (delete_filename_seen_cache): Likewise.
460 (output_partial_symbol_filename): Likewise.
461 (search_symbols_file_matches): Likewise.
462 (search_symbols_name_matches): Likewise.
463 (do_free_completion_list): Likewise.
464 (maybe_add_partial_symtab_filename): Likewise.
465 (get_main_info): Likewise.
466 (main_info_cleanup): Likewise.
467 * target-dcache.c (target_dcache_cleanup): Likewise.
468 (target_dcache_init_p): Likewise.
469 (target_dcache_invalidate): Likewise.
470 (target_dcache_get): Likewise.
471 (target_dcache_get_or_init): Likewise.
472 * target-descriptions.c (target_find_description): Likewise.
473 (tdesc_find_type): Likewise.
474 (tdesc_data_cleanup): Likewise.
475 (tdesc_find_arch_register): Likewise.
476 (tdesc_register_name): Likewise.
477 (tdesc_register_type): Likewise.
478 (tdesc_register_reggroup_p): Likewise.
479 (set_tdesc_pseudo_register_name): Likewise.
480 (set_tdesc_pseudo_register_type): Likewise.
481 (set_tdesc_pseudo_register_reggroup_p): Likewise.
482 (tdesc_use_registers): Likewise.
483 (free_target_description): Likewise.
484 * target-memory.c (compare_block_starting_address): Likewise.
485 (cleanup_request_data): Likewise.
486 (cleanup_write_requests_vector): Likewise.
487 * target.c (open_target): Likewise.
488 (cleanup_restore_target_terminal): Likewise.
489 (free_memory_read_result_vector): Likewise.
490 * thread.c (disable_thread_stack_temporaries): Likewise.
491 (finish_thread_state_cleanup): Likewise.
492 (do_restore_current_thread_cleanup): Likewise.
493 (restore_current_thread_cleanup_dtor): Likewise.
494 (set_thread_refcount): Likewise.
495 (tp_array_compar): Likewise.
496 (do_captured_thread_select): Likewise.
497 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
498 (tic6x_stub_this_id): Likewise.
499 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
500 * top.c (do_restore_instream_cleanup): Likewise.
501 (gdb_readline_wrapper_cleanup): Likewise.
502 (kill_or_detach): Likewise.
503 (print_inferior_quit_action): Likewise.
504 * tracefile-tfile.c (match_blocktype): Likewise.
505 (build_traceframe_info): Likewise.
506 * tracefile.c (trace_file_writer_xfree): Likewise.
507 * tracepoint.c (memrange_cmp): Likewise.
508 (do_collect_symbol): Likewise.
509 (do_clear_collection_list): Likewise.
510 (do_restore_current_traceframe_cleanup): Likewise.
511 (restore_current_traceframe_cleanup_dtor): Likewise.
512 (free_current_marker): Likewise.
513 (traceframe_info_start_memory): Likewise.
514 (traceframe_info_start_tvar): Likewise.
515 (free_result): Likewise.
516 * tramp-frame.c (tramp_frame_cache): Likewise.
517 * tui/tui-file.c (tui_file_delete): Likewise.
518 (tui_fileopen): Likewise.
519 (tui_sfileopen): Likewise.
520 (tui_file_isatty): Likewise.
521 (tui_file_rewind): Likewise.
522 (tui_file_put): Likewise.
523 (tui_file_fputs): Likewise.
524 (tui_file_get_strbuf): Likewise.
525 (tui_file_adjust_strbuf): Likewise.
526 (tui_file_flush): Likewise.
527 * tui/tui-layout.c (make_command_window): Likewise.
528 (make_data_window): Likewise.
529 (show_source_disasm_command): Likewise.
530 (show_data): Likewise.
531 (make_source_or_disasm_window): Likewise.
532 (show_source_or_disasm_and_command): Likewise.
533 * tui/tui-out.c (tui_field_int): Likewise.
534 (tui_field_string): Likewise.
535 (tui_field_fmt): Likewise.
536 (tui_text): Likewise.
537 * typeprint.c (hash_typedef_field): Likewise.
538 (eq_typedef_field): Likewise.
539 (do_free_typedef_hash): Likewise.
540 (copy_typedef_hash_element): Likewise.
541 (do_free_global_table): Likewise.
542 (find_global_typedef): Likewise.
543 (find_typedef_in_hash): Likewise.
544 * ui-file.c (ui_file_write_for_put): Likewise.
545 (do_ui_file_xstrdup): Likewise.
546 (mem_file_delete): Likewise.
547 (mem_file_rewind): Likewise.
548 (mem_file_put): Likewise.
549 (mem_file_write): Likewise.
550 (stdio_file_delete): Likewise.
551 (stdio_file_flush): Likewise.
552 (stdio_file_read): Likewise.
553 (stdio_file_write): Likewise.
554 (stdio_file_write_async_safe): Likewise.
555 (stdio_file_fputs): Likewise.
556 (stdio_file_isatty): Likewise.
557 (stdio_file_fseek): Likewise.
558 (tee_file_delete): Likewise.
559 (tee_file_flush): Likewise.
560 (tee_file_write): Likewise.
561 (tee_file_fputs): Likewise.
562 (tee_file_isatty): Likewise.
563 * ui-out.c (do_cleanup_table_end): Likewise.
564 (do_cleanup_end): Likewise.
565 * user-regs.c (user_reg_add): Likewise.
566 (user_reg_map_name_to_regnum): Likewise.
567 (usernum_to_user_reg): Likewise.
568 (maintenance_print_user_registers): Likewise.
569 * utils.c (do_bfd_close_cleanup): Likewise.
570 (do_fclose_cleanup): Likewise.
571 (do_obstack_free): Likewise.
572 (do_ui_file_delete): Likewise.
573 (do_ui_out_redirect_pop): Likewise.
574 (do_free_section_addr_info): Likewise.
575 (restore_integer): Likewise.
576 (do_unpush_target): Likewise.
577 (do_htab_delete_cleanup): Likewise.
578 (do_restore_ui_file): Likewise.
579 (do_value_free): Likewise.
580 (do_free_so): Likewise.
581 (free_current_contents): Likewise.
582 (do_regfree_cleanup): Likewise.
583 (core_addr_hash): Likewise.
584 (core_addr_eq): Likewise.
585 (do_free_char_ptr_vec): Likewise.
586 * v850-tdep.c (v850_frame_cache): Likewise.
587 * varobj.c (do_free_variable_cleanup): Likewise.
588 * vax-tdep.c (vax_supply_gregset): Likewise.
589 (vax_frame_cache): Likewise.
590 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
591 * xml-support.c (gdb_xml_body_text): Likewise.
592 (gdb_xml_values_cleanup): Likewise.
593 (gdb_xml_start_element): Likewise.
594 (gdb_xml_start_element_wrapper): Likewise.
595 (gdb_xml_end_element): Likewise.
596 (gdb_xml_end_element_wrapper): Likewise.
597 (gdb_xml_cleanup): Likewise.
598 (gdb_xml_fetch_external_entity): Likewise.
599 (gdb_xml_parse_attr_enum): Likewise.
600 (xinclude_start_include): Likewise.
601 (xinclude_end_include): Likewise.
602 (xml_xinclude_default): Likewise.
603 (xml_xinclude_start_doctype): Likewise.
604 (xml_xinclude_end_doctype): Likewise.
605 (xml_xinclude_cleanup): Likewise.
606 (xml_fetch_content_from_file): Likewise.
607 * xml-syscall.c (free_syscalls_info): Likewise.
608 (syscall_start_syscall): Likewise.
609 * xml-tdesc.c (tdesc_end_arch): Likewise.
610 (tdesc_end_osabi): Likewise.
611 (tdesc_end_compatible): Likewise.
612 (tdesc_start_target): Likewise.
613 (tdesc_start_feature): Likewise.
614 (tdesc_start_reg): Likewise.
615 (tdesc_start_union): Likewise.
616 (tdesc_start_struct): Likewise.
617 (tdesc_start_flags): Likewise.
618 (tdesc_start_field): Likewise.
619 (tdesc_start_vector): Likewise.
620 (fetch_available_features_from_target): Likewise.
621 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
622 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
623 (xtensa_frame_cache): Likewise.
624 (xtensa_frame_prev_register): Likewise.
625 (xtensa_extract_return_value): Likewise.
627 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
629 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
630 (aarch64_make_stub_cache): Likewise.
631 (value_of_aarch64_user_reg): Likewise.
632 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
633 (get_ada_inferior_data): Likewise.
634 (get_ada_pspace_data): Likewise.
635 (ada_pspace_data_cleanup): Likewise.
636 (ada_complete_symbol_matcher): Likewise.
637 (ada_exc_search_name_matches): Likewise.
638 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
639 (get_ada_tasks_inferior_data): Likewise.
640 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
641 (splay_obstack_alloc): Likewise.
642 (splay_obstack_free): Likewise.
643 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
644 (alpha_linux_collect_gregset): Likewise.
645 (alpha_linux_supply_fpregset): Likewise.
646 (alpha_linux_collect_fpregset): Likewise.
647 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
648 * alpha-tdep.c (alpha_lds): Likewise.
649 (alpha_sts): Likewise.
650 (alpha_sigtramp_frame_unwind_cache): Likewise.
651 (alpha_heuristic_frame_unwind_cache): Likewise.
652 (alpha_supply_int_regs): Likewise.
653 (alpha_fill_int_regs): Likewise.
654 (alpha_supply_fp_regs): Likewise.
655 (alpha_fill_fp_regs): Likewise.
656 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
657 (alphanbsd_aout_supply_gregset): Likewise.
658 (alphanbsd_supply_gregset): Likewise.
659 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
660 (amd64_x32_linux_init_abi): Likewise.
661 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
662 (amd64_collect_native_gregset): Likewise.
663 * amd64-tdep.c (amd64_frame_cache): Likewise.
664 (amd64_sigtramp_frame_cache): Likewise.
665 (amd64_epilogue_frame_cache): Likewise.
666 (amd64_supply_fxsave): Likewise.
667 (amd64_supply_xsave): Likewise.
668 (amd64_collect_fxsave): Likewise.
669 (amd64_collect_xsave): Likewise.
670 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
671 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
672 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
673 (arm_linux_collect_gregset): Likewise.
674 (arm_linux_supply_nwfpe): Likewise.
675 (arm_linux_collect_nwfpe): Likewise.
676 (arm_linux_supply_vfp): Likewise.
677 (arm_linux_collect_vfp): Likewise.
678 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
679 (arm_prologue_unwind_stop_reason): Likewise.
680 (arm_prologue_this_id): Likewise.
681 (arm_prologue_prev_register): Likewise.
682 (arm_exidx_data_free): Likewise.
683 (arm_find_exidx_entry): Likewise.
684 (arm_stub_this_id): Likewise.
685 (arm_m_exception_this_id): Likewise.
686 (arm_m_exception_prev_register): Likewise.
687 (arm_normal_frame_base): Likewise.
688 (gdb_print_insn_arm): Likewise.
689 (arm_objfile_data_free): Likewise.
690 (arm_record_special_symbol): Likewise.
691 (value_of_arm_user_reg): Likewise.
692 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
693 (armbsd_supply_gregset): Likewise.
694 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
695 (get_auto_load_pspace_data): Likewise.
696 (hash_loaded_script_entry): Likewise.
697 (eq_loaded_script_entry): Likewise.
698 (clear_section_scripts): Likewise.
699 (collect_matching_scripts): Likewise.
700 * auxv.c (auxv_inferior_data_cleanup): Likewise.
701 (get_auxv_inferior_data): Likewise.
702 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
703 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
704 * bfd-target.c (target_bfd_xfer_partial): Likewise.
705 (target_bfd_xclose): Likewise.
706 (target_bfd_get_section_table): Likewise.
707 * bfin-tdep.c (bfin_frame_cache): Likewise.
708 * block.c (find_block_in_blockvector): Likewise.
709 (call_site_for_pc): Likewise.
710 (block_find_non_opaque_type_preferred): Likewise.
711 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
712 (signal_catchpoint_remove_location): Likewise.
713 (signal_catchpoint_breakpoint_hit): Likewise.
714 (signal_catchpoint_print_one): Likewise.
715 (signal_catchpoint_print_mention): Likewise.
716 (signal_catchpoint_print_recreate): Likewise.
717 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
718 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
719 (bp_location_compare_addrs): Likewise.
720 (get_first_locp_gte_addr): Likewise.
721 (check_tracepoint_command): Likewise.
722 (do_map_commands_command): Likewise.
723 (get_breakpoint_objfile_data): Likewise.
724 (free_breakpoint_probes): Likewise.
725 (do_captured_breakpoint_query): Likewise.
726 (compare_breakpoints): Likewise.
727 (bp_location_compare): Likewise.
728 (bpstat_remove_breakpoint_callback): Likewise.
729 (do_delete_breakpoint_cleanup): Likewise.
730 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
731 (bsd_uthread_set_collect_uthread): Likewise.
732 (bsd_uthread_activate): Likewise.
733 (bsd_uthread_fetch_registers): Likewise.
734 (bsd_uthread_store_registers): Likewise.
735 * btrace.c (check_xml_btrace_version): Likewise.
736 (parse_xml_btrace_block): Likewise.
737 (parse_xml_btrace_pt_config_cpu): Likewise.
738 (parse_xml_btrace_pt_raw): Likewise.
739 (parse_xml_btrace_pt): Likewise.
740 (parse_xml_btrace_conf_bts): Likewise.
741 (parse_xml_btrace_conf_pt): Likewise.
742 (do_btrace_data_cleanup): Likewise.
743 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
744 * charset.c (cleanup_iconv): Likewise.
745 (do_cleanup_iterator): Likewise.
746 * cli-out.c (cli_uiout_dtor): Likewise.
747 (cli_table_begin): Likewise.
748 (cli_table_body): Likewise.
749 (cli_table_end): Likewise.
750 (cli_table_header): Likewise.
751 (cli_begin): Likewise.
753 (cli_field_int): Likewise.
754 (cli_field_skip): Likewise.
755 (cli_field_string): Likewise.
756 (cli_field_fmt): Likewise.
757 (cli_spaces): Likewise.
758 (cli_text): Likewise.
759 (cli_message): Likewise.
760 (cli_wrap_hint): Likewise.
761 (cli_flush): Likewise.
762 (cli_redirect): Likewise.
763 (out_field_fmt): Likewise.
764 (field_separator): Likewise.
765 (cli_out_set_stream): Likewise.
766 * cli/cli-cmds.c (compare_symtabs): Likewise.
767 * cli/cli-dump.c (call_dump_func): Likewise.
768 (restore_section_callback): Likewise.
769 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
770 (do_restore_user_call_depth): Likewise.
771 (do_free_command_lines_cleanup): Likewise.
772 * coff-pe-read.c (get_section_vmas): Likewise.
775 * coffread.c (coff_symfile_read): Likewise.
776 * common/agent.c (agent_look_up_symbols): Likewise.
777 * common/filestuff.c (do_close_cleanup): Likewise.
778 * common/format.c (free_format_pieces_cleanup): Likewise.
779 * common/vec.c (vec_o_reserve): Likewise.
780 * compile/compile-c-support.c (print_one_macro): Likewise.
781 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
782 (eq_symbol_error): Likewise.
783 (del_symbol_error): Likewise.
784 (error_symbol_once): Likewise.
785 (gcc_convert_symbol): Likewise.
786 (gcc_symbol_address): Likewise.
787 (hash_symname): Likewise.
788 (eq_symname): Likewise.
789 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
790 (eq_type_map_instance): Likewise.
791 (insert_type): Likewise.
792 (convert_type): Likewise.
793 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
794 (setup_sections): Likewise.
795 (link_hash_table_free): Likewise.
796 (copy_sections): Likewise.
797 * compile/compile-object-run.c (do_module_cleanup): Likewise.
798 * compile/compile.c (compile_print_value): Likewise.
799 (do_rmdir): Likewise.
800 (cleanup_compile_instance): Likewise.
801 (cleanup_unlink_file): Likewise.
802 * completer.c (free_completion_tracker): Likewise.
803 * corelow.c (add_to_spuid_list): Likewise.
804 * cp-namespace.c (reset_directive_searched): Likewise.
805 * cp-support.c (reset_directive_searched): Likewise.
806 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
807 (cris_frame_unwind_cache): Likewise.
808 * d-lang.c (builtin_d_type): Likewise.
809 * d-namespace.c (reset_directive_searched): Likewise.
810 * dbxread.c (dbx_free_symfile_info): Likewise.
811 (do_free_bincl_list_cleanup): Likewise.
812 * disasm.c (hash_dis_line_entry): Likewise.
813 (eq_dis_line_entry): Likewise.
814 (dis_asm_print_address): Likewise.
815 (fprintf_disasm): Likewise.
816 (do_ui_file_delete): Likewise.
817 * doublest.c (convert_floatformat_to_doublest): Likewise.
818 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
819 (dummy_frame_prev_register): Likewise.
820 (dummy_frame_this_id): Likewise.
821 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
822 (cache_eq): Likewise.
823 (cache_find): Likewise.
824 (tailcall_frame_this_id): Likewise.
825 (dwarf2_tailcall_prev_register_first): Likewise.
826 (tailcall_frame_prev_register): Likewise.
827 (tailcall_frame_dealloc_cache): Likewise.
828 (tailcall_frame_prev_arch): Likewise.
829 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
830 (dwarf2_frame_set_init_reg): Likewise.
831 (dwarf2_frame_init_reg): Likewise.
832 (dwarf2_frame_set_signal_frame_p): Likewise.
833 (dwarf2_frame_signal_frame_p): Likewise.
834 (dwarf2_frame_set_adjust_regnum): Likewise.
835 (dwarf2_frame_adjust_regnum): Likewise.
836 (clear_pointer_cleanup): Likewise.
837 (dwarf2_frame_cache): Likewise.
838 (find_cie): Likewise.
839 (dwarf2_frame_find_fde): Likewise.
840 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
841 (free_dwarf_expr_context_cleanup): Likewise.
842 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
843 (locexpr_get_frame_base): Likewise.
844 (loclist_find_frame_base_location): Likewise.
845 (loclist_get_frame_base): Likewise.
846 (dwarf_expr_dwarf_call): Likewise.
847 (dwarf_expr_get_base_type): Likewise.
848 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
849 (dwarf_expr_get_obj_addr): Likewise.
850 (entry_data_value_coerce_ref): Likewise.
851 (entry_data_value_copy_closure): Likewise.
852 (entry_data_value_free_closure): Likewise.
853 (get_frame_address_in_block_wrapper): Likewise.
854 (dwarf2_evaluate_property): Likewise.
855 (dwarf2_compile_property_to_c): Likewise.
856 (needs_frame_read_addr_from_reg): Likewise.
857 (needs_frame_get_reg_value): Likewise.
858 (needs_frame_frame_base): Likewise.
859 (needs_frame_frame_cfa): Likewise.
860 (needs_frame_tls_address): Likewise.
861 (needs_frame_dwarf_call): Likewise.
862 (needs_dwarf_reg_entry_value): Likewise.
863 (get_ax_pc): Likewise.
864 (locexpr_read_variable): Likewise.
865 (locexpr_read_variable_at_entry): Likewise.
866 (locexpr_read_needs_frame): Likewise.
867 (locexpr_describe_location): Likewise.
868 (locexpr_tracepoint_var_ref): Likewise.
869 (locexpr_generate_c_location): Likewise.
870 (loclist_read_variable): Likewise.
871 (loclist_read_variable_at_entry): Likewise.
872 (loclist_describe_location): Likewise.
873 (loclist_tracepoint_var_ref): Likewise.
874 (loclist_generate_c_location): Likewise.
875 * dwarf2read.c (line_header_hash_voidp): Likewise.
876 (line_header_eq_voidp): Likewise.
877 (dwarf2_has_info): Likewise.
878 (dwarf2_get_section_info): Likewise.
879 (locate_dwz_sections): Likewise.
880 (hash_file_name_entry): Likewise.
881 (eq_file_name_entry): Likewise.
882 (delete_file_name_entry): Likewise.
883 (dw2_setup): Likewise.
884 (dw2_get_file_names_reader): Likewise.
885 (dw2_find_pc_sect_compunit_symtab): Likewise.
886 (hash_signatured_type): Likewise.
887 (eq_signatured_type): Likewise.
888 (add_signatured_type_cu_to_table): Likewise.
889 (create_debug_types_hash_table): Likewise.
890 (lookup_dwo_signatured_type): Likewise.
891 (lookup_dwp_signatured_type): Likewise.
892 (lookup_signatured_type): Likewise.
893 (hash_type_unit_group): Likewise.
894 (eq_type_unit_group): Likewise.
895 (get_type_unit_group): Likewise.
896 (process_psymtab_comp_unit_reader): Likewise.
897 (sort_tu_by_abbrev_offset): Likewise.
898 (process_skeletonless_type_unit): Likewise.
899 (psymtabs_addrmap_cleanup): Likewise.
900 (dwarf2_read_symtab): Likewise.
901 (psymtab_to_symtab_1): Likewise.
902 (die_hash): Likewise.
904 (load_full_comp_unit_reader): Likewise.
905 (reset_die_in_process): Likewise.
906 (free_cu_line_header): Likewise.
907 (handle_DW_AT_stmt_list): Likewise.
908 (hash_dwo_file): Likewise.
909 (eq_dwo_file): Likewise.
910 (hash_dwo_unit): Likewise.
911 (eq_dwo_unit): Likewise.
912 (create_dwo_cu_reader): Likewise.
913 (create_dwo_unit_in_dwp_v1): Likewise.
914 (create_dwo_unit_in_dwp_v2): Likewise.
915 (lookup_dwo_unit_in_dwp): Likewise.
916 (dwarf2_locate_dwo_sections): Likewise.
917 (dwarf2_locate_common_dwp_sections): Likewise.
918 (dwarf2_locate_v2_dwp_sections): Likewise.
919 (hash_dwp_loaded_cutus): Likewise.
920 (eq_dwp_loaded_cutus): Likewise.
921 (lookup_dwo_cutu): Likewise.
922 (abbrev_table_free_cleanup): Likewise.
923 (dwarf2_free_abbrev_table): Likewise.
924 (find_partial_die_in_comp_unit): Likewise.
925 (free_line_header_voidp): Likewise.
926 (follow_die_offset): Likewise.
927 (follow_die_sig_1): Likewise.
928 (free_heap_comp_unit): Likewise.
929 (free_stack_comp_unit): Likewise.
930 (dwarf2_free_objfile): Likewise.
931 (per_cu_offset_and_type_hash): Likewise.
932 (per_cu_offset_and_type_eq): Likewise.
933 (get_die_type_at_offset): Likewise.
934 (partial_die_hash): Likewise.
935 (partial_die_eq): Likewise.
936 (dwarf2_per_objfile_free): Likewise.
937 (hash_strtab_entry): Likewise.
938 (eq_strtab_entry): Likewise.
939 (add_string): Likewise.
940 (hash_symtab_entry): Likewise.
941 (eq_symtab_entry): Likewise.
942 (delete_symtab_entry): Likewise.
943 (cleanup_mapped_symtab): Likewise.
944 (add_indices_to_cpool): Likewise.
945 (hash_psymtab_cu_index): Likewise.
946 (eq_psymtab_cu_index): Likewise.
947 (add_address_entry_worker): Likewise.
948 (unlink_if_set): Likewise.
949 (write_one_signatured_type): Likewise.
950 (save_gdb_index_command): Likewise.
951 * elfread.c (elf_symtab_read): Likewise.
952 (elf_gnu_ifunc_cache_hash): Likewise.
953 (elf_gnu_ifunc_cache_eq): Likewise.
954 (elf_gnu_ifunc_record_cache): Likewise.
955 (elf_gnu_ifunc_resolve_by_cache): Likewise.
956 (elf_get_probes): Likewise.
957 (probe_key_free): Likewise.
958 * f-lang.c (builtin_f_type): Likewise.
959 * frame-base.c (frame_base_append_sniffer): Likewise.
960 (frame_base_set_default): Likewise.
961 (frame_base_find_by_frame): Likewise.
962 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
963 (frame_unwind_append_unwinder): Likewise.
964 (frame_unwind_find_by_frame): Likewise.
965 * frame.c (frame_addr_hash): Likewise.
966 (frame_addr_hash_eq): Likewise.
967 (frame_stash_find): Likewise.
968 (do_frame_register_read): Likewise.
969 (unwind_to_current_frame): Likewise.
970 (frame_cleanup_after_sniffer): Likewise.
971 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
972 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
973 * ft32-tdep.c (ft32_frame_cache): Likewise.
974 * gcore.c (do_bfd_delete_cleanup): Likewise.
975 (gcore_create_callback): Likewise.
976 * gdb_bfd.c (hash_bfd): Likewise.
978 (gdb_bfd_open): Likewise.
979 (free_one_bfd_section): Likewise.
980 (gdb_bfd_ref): Likewise.
981 (gdb_bfd_unref): Likewise.
982 (get_section_descriptor): Likewise.
983 (gdb_bfd_map_section): Likewise.
984 (gdb_bfd_crc): Likewise.
985 (gdb_bfd_mark_parent): Likewise.
986 (gdb_bfd_record_inclusion): Likewise.
987 (gdb_bfd_requires_relocations): Likewise.
988 (print_one_bfd): Likewise.
989 * gdbtypes.c (type_pair_hash): Likewise.
990 (type_pair_eq): Likewise.
991 (builtin_type): Likewise.
992 (objfile_type): Likewise.
993 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
994 (vtable_address_point_offset): Likewise.
995 (gnuv3_get_vtable): Likewise.
996 (hash_value_and_voffset): Likewise.
997 (eq_value_and_voffset): Likewise.
998 (compare_value_and_voffset): Likewise.
999 (compute_vtable_size): Likewise.
1000 (gnuv3_get_typeid_type): Likewise.
1001 * go-lang.c (builtin_go_type): Likewise.
1002 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
1003 (bkscm_eq_block_smob): Likewise.
1004 (bkscm_objfile_block_map): Likewise.
1005 (bkscm_del_objfile_blocks): Likewise.
1006 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
1007 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
1008 (gdbscm_disasm_print_address): Likewise.
1009 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
1010 (frscm_eq_frame_smob): Likewise.
1011 (frscm_inferior_frame_map): Likewise.
1012 (frscm_del_inferior_frames): Likewise.
1013 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
1014 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
1015 (ofscm_objfile_smob_from_objfile): Likewise.
1016 * guile/scm-ports.c (ioscm_write): Likewise.
1017 (ioscm_file_port_delete): Likewise.
1018 (ioscm_file_port_rewind): Likewise.
1019 (ioscm_file_port_put): Likewise.
1020 (ioscm_file_port_write): Likewise.
1021 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
1022 (psscm_pspace_smob_from_pspace): Likewise.
1023 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
1024 (scscm_recording_unwind_handler): Likewise.
1025 (gdbscm_with_catch): Likewise.
1026 (scscm_call_0_body): Likewise.
1027 (scscm_call_1_body): Likewise.
1028 (scscm_call_2_body): Likewise.
1029 (scscm_call_3_body): Likewise.
1030 (scscm_call_4_body): Likewise.
1031 (scscm_apply_1_body): Likewise.
1032 (scscm_eval_scheme_string): Likewise.
1033 (gdbscm_safe_eval_string): Likewise.
1034 (scscm_source_scheme_script): Likewise.
1035 (gdbscm_safe_source_script): Likewise.
1036 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
1037 (gdbscm_call_scm_from_stringn): Likewise.
1038 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
1039 (syscm_eq_symbol_smob): Likewise.
1040 (syscm_get_symbol_map): Likewise.
1041 (syscm_del_objfile_symbols): Likewise.
1042 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
1043 (stscm_eq_symtab_smob): Likewise.
1044 (stscm_objfile_symtab_map): Likewise.
1045 (stscm_del_objfile_symtabs): Likewise.
1046 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1047 (tyscm_eq_type_smob): Likewise.
1048 (tyscm_type_map): Likewise.
1049 (tyscm_copy_type_recursive): Likewise.
1050 (save_objfile_types): Likewise.
1051 * guile/scm-utils.c (extract_arg): Likewise.
1052 * h8300-tdep.c (h8300_frame_cache): Likewise.
1053 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1054 * hppa-tdep.c (compare_unwind_entries): Likewise.
1055 (find_unwind_entry): Likewise.
1056 (hppa_frame_cache): Likewise.
1057 (hppa_stub_frame_unwind_cache): Likewise.
1058 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1059 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1060 (hppaobsd_supply_fpregset): Likewise.
1061 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1062 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1063 * i386-tdep.c (i386_frame_cache): Likewise.
1064 (i386_epilogue_frame_cache): Likewise.
1065 (i386_sigtramp_frame_cache): Likewise.
1066 (i386_supply_gregset): Likewise.
1067 (i386_collect_gregset): Likewise.
1068 (i386_gdbarch_init): Likewise.
1069 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1070 (i386obsd_trapframe_cache): Likewise.
1071 * i387-tdep.c (i387_supply_fsave): Likewise.
1072 (i387_collect_fsave): Likewise.
1073 (i387_supply_fxsave): Likewise.
1074 (i387_collect_fxsave): Likewise.
1075 (i387_supply_xsave): Likewise.
1076 (i387_collect_xsave): Likewise.
1077 * ia64-tdep.c (ia64_frame_cache): Likewise.
1078 (ia64_sigtramp_frame_cache): Likewise.
1079 * infcmd.c (attach_command_continuation): Likewise.
1080 (attach_command_continuation_free_args): Likewise.
1081 * inferior.c (restore_inferior): Likewise.
1082 (delete_thread_of_inferior): Likewise.
1083 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1084 (get_inflow_inferior_data): Likewise.
1085 (inflow_inferior_exit): Likewise.
1086 * infrun.c (displaced_step_clear_cleanup): Likewise.
1087 (restore_current_uiout_cleanup): Likewise.
1088 (release_stop_context_cleanup): Likewise.
1089 (do_restore_infcall_suspend_state_cleanup): Likewise.
1090 (do_restore_infcall_control_state_cleanup): Likewise.
1091 (restore_inferior_ptid): Likewise.
1092 * inline-frame.c (block_starting_point_at): Likewise.
1093 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1094 * jit.c (get_jit_objfile_data): Likewise.
1095 (get_jit_program_space_data): Likewise.
1096 (jit_object_close_impl): Likewise.
1097 (jit_find_objf_with_entry_addr): Likewise.
1098 (jit_breakpoint_deleted): Likewise.
1099 (jit_unwind_reg_set_impl): Likewise.
1100 (jit_unwind_reg_get_impl): Likewise.
1101 (jit_dealloc_cache): Likewise.
1102 (jit_frame_sniffer): Likewise.
1103 (jit_frame_prev_register): Likewise.
1104 (jit_prepend_unwinder): Likewise.
1105 (jit_inferior_exit_hook): Likewise.
1106 (free_objfile_data): Likewise.
1107 * jv-lang.c (jv_per_objfile_free): Likewise.
1108 (get_dynamics_objfile): Likewise.
1109 (get_java_class_symtab): Likewise.
1110 (builtin_java_type): Likewise.
1111 * language.c (language_string_char_type): Likewise.
1112 (language_bool_type): Likewise.
1113 (language_lookup_primitive_type): Likewise.
1114 (language_lookup_primitive_type_as_symbol): Likewise.
1115 * linespec.c (hash_address_entry): Likewise.
1116 (eq_address_entry): Likewise.
1117 (iterate_inline_only): Likewise.
1118 (iterate_name_matcher): Likewise.
1119 (decode_line_2_compare_items): Likewise.
1120 (collect_one_symbol): Likewise.
1121 (compare_symbols): Likewise.
1122 (compare_msymbols): Likewise.
1123 (add_symtabs_to_list): Likewise.
1124 (collect_symbols): Likewise.
1125 (compare_msyms): Likewise.
1126 (add_minsym): Likewise.
1127 (cleanup_linespec_result): Likewise.
1128 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1129 * linux-nat.c (delete_lwp_cleanup): Likewise.
1130 (count_events_callback): Likewise.
1131 (select_event_lwp_callback): Likewise.
1132 (resume_stopped_resumed_lwps): Likewise.
1133 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1134 (invalidate_linux_cache_inf): Likewise.
1135 (get_linux_inferior_data): Likewise.
1136 (linux_find_memory_regions_thunk): Likewise.
1137 (linux_make_mappings_callback): Likewise.
1138 (linux_corefile_thread_callback): Likewise.
1139 (find_mapping_size): Likewise.
1140 * linux-thread-db.c (find_new_threads_callback): Likewise.
1141 * lm32-tdep.c (lm32_frame_cache): Likewise.
1142 * m2-lang.c (builtin_m2_type): Likewise.
1143 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1144 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1145 (m32r_linux_supply_gregset): Likewise.
1146 (m32r_linux_collect_gregset): Likewise.
1147 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1148 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1149 * m68k-tdep.c (m68k_frame_cache): Likewise.
1150 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1151 (m68kbsd_supply_gregset): Likewise.
1152 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1153 * m88k-tdep.c (m88k_frame_cache): Likewise.
1154 (m88k_supply_gregset): Likewise.
1156 2015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1158 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1159 to allocation result assignment.
1160 * ada-exp.y (write_object_renaming): Likewise.
1161 (write_ambiguous_var): Likewise.
1162 (ada_nget_field_index): Likewise.
1163 (write_var_or_type): Likewise.
1164 * ada-lang.c (ada_decode_symbol): Likewise.
1165 (ada_value_assign): Likewise.
1166 (value_pointer): Likewise.
1167 (cache_symbol): Likewise.
1168 (add_nonlocal_symbols): Likewise.
1169 (ada_name_for_lookup): Likewise.
1170 (symbol_completion_add): Likewise.
1171 (ada_to_fixed_type_1): Likewise.
1172 (ada_get_next_arg): Likewise.
1173 (defns_collected): Likewise.
1174 * ada-lex.l (processId): Likewise.
1175 (processString): Likewise.
1176 * ada-tasks.c (read_known_tasks_array): Likewise.
1177 (read_known_tasks_list): Likewise.
1178 * ada-typeprint.c (decoded_type_name): Likewise.
1179 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1180 * amd64-tdep.c (amd64_push_arguments): Likewise.
1181 (amd64_displaced_step_copy_insn): Likewise.
1182 (amd64_classify_insn_at): Likewise.
1183 (amd64_relocate_instruction): Likewise.
1184 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1185 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1186 (initialize_current_architecture): Likewise.
1187 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1188 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1189 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1190 (arm_push_dummy_call): Likewise.
1191 (extend_buffer_earlier): Likewise.
1192 (arm_adjust_breakpoint_address): Likewise.
1193 (arm_skip_stub): Likewise.
1194 * auto-load.c (filename_is_in_pattern): Likewise.
1195 (maybe_add_script_file): Likewise.
1196 (maybe_add_script_text): Likewise.
1197 (auto_load_objfile_script_1): Likewise.
1198 * auxv.c (ld_so_xfer_auxv): Likewise.
1199 * ax-general.c (new_agent_expr): Likewise.
1200 (grow_expr): Likewise.
1201 (ax_reg_mask): Likewise.
1202 * bcache.c (bcache_full): Likewise.
1203 * breakpoint.c (program_breakpoint_here_p): Likewise.
1204 * btrace.c (parse_xml_raw): Likewise.
1205 * build-id.c (build_id_to_debug_bfd): Likewise.
1206 * buildsym.c (end_symtab_with_blockvector): Likewise.
1207 * c-exp.y (string_exp): Likewise.
1208 (qualified_name): Likewise.
1209 (write_destructor_name): Likewise.
1210 (operator_stoken): Likewise.
1211 (parse_number): Likewise.
1212 (scan_macro_expansion): Likewise.
1214 (c_print_token): Likewise.
1215 * c-lang.c (c_get_string): Likewise.
1216 (emit_numeric_character): Likewise.
1217 * charset.c (wchar_iterate): Likewise.
1218 * cli/cli-cmds.c (complete_command): Likewise.
1219 (make_command): Likewise.
1220 * cli/cli-dump.c (restore_section_callback): Likewise.
1221 (restore_binary_file): Likewise.
1222 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1223 * cli/cli-script.c (execute_control_command): Likewise.
1224 * cli/cli-setshow.c (do_set_command): Likewise.
1225 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1226 (read_pe_exported_syms): Likewise.
1227 * coffread.c (coff_read_struct_type): Likewise.
1228 (coff_read_enum_type): Likewise.
1229 * common/btrace-common.c (btrace_data_append): Likewise.
1230 * common/buffer.c (buffer_grow): Likewise.
1231 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1232 * common/format.c (parse_format_string): Likewise.
1233 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1234 * common/xml-utils.c (xml_escape_text): Likewise.
1235 * compile/compile-object-load.c (copy_sections): Likewise.
1236 (compile_object_load): Likewise.
1237 * compile/compile-object-run.c (compile_object_run): Likewise.
1238 * completer.c (filename_completer): Likewise.
1239 * corefile.c (read_memory_typed_address): Likewise.
1240 (write_memory_unsigned_integer): Likewise.
1241 (write_memory_signed_integer): Likewise.
1242 (complete_set_gnutarget): Likewise.
1243 * corelow.c (get_core_register_section): Likewise.
1244 * cp-name-parser.y (d_grab): Likewise.
1245 (allocate_info): Likewise.
1246 (cp_new_demangle_parse_info): Likewise.
1247 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1248 (cp_lookup_symbol_in_namespace): Likewise.
1249 (lookup_namespace_scope): Likewise.
1250 (find_symbol_in_baseclass): Likewise.
1251 (cp_lookup_nested_symbol): Likewise.
1252 (cp_lookup_transparent_type_loop): Likewise.
1253 * cp-support.c (copy_string_to_obstack): Likewise.
1254 (make_symbol_overload_list): Likewise.
1255 (make_symbol_overload_list_namespace): Likewise.
1256 (make_symbol_overload_list_adl_namespace): Likewise.
1257 (first_component_command): Likewise.
1258 * cp-valprint.c (cp_print_value): Likewise.
1259 * ctf.c (ctf_xfer_partial): Likewise.
1260 * d-exp.y (StringExp): Likewise.
1261 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1262 (lookup_module_scope): Likewise.
1263 (find_symbol_in_baseclass): Likewise.
1264 (d_lookup_nested_symbol): Likewise.
1265 * dbxread.c (find_stab_function_addr): Likewise.
1266 (read_dbx_symtab): Likewise.
1267 (dbx_end_psymtab): Likewise.
1268 (cp_set_block_scope): Likewise.
1269 * dcache.c (dcache_alloc): Likewise.
1270 * demangle.c (_initialize_demangler): Likewise.
1271 * dicos-tdep.c (dicos_load_module_p): Likewise.
1272 * dictionary.c (dict_create_hashed_expandable): Likewise.
1273 (dict_create_linear_expandable): Likewise.
1274 (expand_hashtable): Likewise.
1275 (add_symbol_linear_expandable): Likewise.
1276 * dwarf2-frame.c (add_cie): Likewise.
1277 (add_fde): Likewise.
1278 (dwarf2_build_frame_info): Likewise.
1279 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1280 (dwarf_expr_fetch_address): Likewise.
1281 (add_piece): Likewise.
1282 (execute_stack_op): Likewise.
1283 * dwarf2loc.c (chain_candidate): Likewise.
1284 (dwarf_entry_parameter_to_value): Likewise.
1285 (read_pieced_value): Likewise.
1286 (write_pieced_value): Likewise.
1287 * dwarf2read.c (dwarf2_read_section): Likewise.
1288 (add_type_unit): Likewise.
1289 (read_comp_units_from_section): Likewise.
1290 (fixup_go_packaging): Likewise.
1291 (dwarf2_compute_name): Likewise.
1292 (dwarf2_physname): Likewise.
1293 (create_dwo_unit_in_dwp_v1): Likewise.
1294 (create_dwo_unit_in_dwp_v2): Likewise.
1295 (read_func_scope): Likewise.
1296 (read_call_site_scope): Likewise.
1297 (dwarf2_attach_fields_to_type): Likewise.
1298 (process_structure_scope): Likewise.
1299 (mark_common_block_symbol_computed): Likewise.
1300 (read_common_block): Likewise.
1301 (abbrev_table_read_table): Likewise.
1302 (guess_partial_die_structure_name): Likewise.
1303 (fixup_partial_die): Likewise.
1304 (add_file_name): Likewise.
1305 (dwarf2_const_value_data): Likewise.
1306 (dwarf2_const_value_attr): Likewise.
1307 (build_error_marker_type): Likewise.
1308 (guess_full_die_structure_name): Likewise.
1309 (anonymous_struct_prefix): Likewise.
1310 (typename_concat): Likewise.
1311 (dwarf2_canonicalize_name): Likewise.
1312 (dwarf2_name): Likewise.
1313 (write_constant_as_bytes): Likewise.
1314 (dwarf2_fetch_constant_bytes): Likewise.
1315 (copy_string): Likewise.
1316 (parse_macro_definition): Likewise.
1317 * elfread.c (elf_symfile_segments): Likewise.
1318 (elf_rel_plt_read): Likewise.
1319 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1320 (elf_gnu_ifunc_resolve_by_got): Likewise.
1321 (elf_read_minimal_symbols): Likewise.
1322 (elf_gnu_ifunc_record_cache): Likewise.
1323 * event-top.c (top_level_prompt): Likewise.
1324 (command_line_handler): Likewise.
1325 * exec.c (resize_section_table): Likewise.
1326 * expprint.c (print_subexp_standard): Likewise.
1327 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1328 * findcmd.c (parse_find_args): Likewise.
1329 * findvar.c (address_from_register): Likewise.
1330 * frame.c (get_prev_frame_always): Likewise.
1331 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1332 (get_section_descriptor): Likewise.
1333 * gdb_obstack.c (obconcat): Likewise.
1334 (obstack_strdup): Likewise.
1335 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1336 (create_set_type): Likewise.
1337 (lookup_unsigned_typename): Likewise.
1338 (lookup_signed_typename): Likewise.
1339 (resolve_dynamic_union): Likewise.
1340 (resolve_dynamic_struct): Likewise.
1341 (add_dyn_prop): Likewise.
1342 (copy_dynamic_prop_list): Likewise.
1343 (arch_flags_type): Likewise.
1344 (append_composite_type_field_raw): Likewise.
1345 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1346 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1347 * go-exp.y (string_exp): Likewise.
1348 * go-lang.c (go_demangle): Likewise.
1349 * guile/guile.c (compute_scheme_string): Likewise.
1350 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1351 (gdbscm_canonicalize_command_name): Likewise.
1352 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1353 (ioscm_init_memory_port): Likewise.
1354 (ioscm_reinit_memory_port): Likewise.
1355 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1356 (gdbscm_gc_dup_argv): Likewise.
1357 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1358 * hppa-tdep.c (internalize_unwinds): Likewise.
1359 (read_unwind_info): Likewise.
1360 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1361 (windows_core_xfer_shared_libraries): Likewise.
1362 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1363 (i386_stap_parse_special_token_triplet): Likewise.
1364 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1365 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1366 * inf-child.c (inf_child_fileio_readlink): Likewise.
1367 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1368 (inf_ptrace_store_register): Likewise.
1369 * infrun.c (follow_exec): Likewise.
1370 (displaced_step_prepare_throw): Likewise.
1371 (save_stop_context): Likewise.
1372 (save_infcall_suspend_state): Likewise.
1373 * jit.c (jit_read_descriptor): Likewise.
1374 (jit_read_code_entry): Likewise.
1375 (jit_symtab_line_mapping_add_impl): Likewise.
1376 (finalize_symtab): Likewise.
1377 (jit_unwind_reg_get_impl): Likewise.
1378 * jv-exp.y (QualifiedName): Likewise.
1379 * jv-lang.c (get_java_utf8_name): Likewise.
1380 (type_from_class): Likewise.
1381 (java_demangle_type_signature): Likewise.
1382 (java_class_name_from_physname): Likewise.
1383 * jv-typeprint.c (java_type_print_base): Likewise.
1384 * jv-valprint.c (java_value_print): Likewise.
1385 * language.c (add_language): Likewise.
1386 * linespec.c (add_sal_to_sals_basic): Likewise.
1387 (add_sal_to_sals): Likewise.
1388 (decode_objc): Likewise.
1389 (find_linespec_symbols): Likewise.
1390 * linux-fork.c (fork_save_infrun_state): Likewise.
1391 * linux-nat.c (linux_nat_detach): Likewise.
1392 (linux_nat_fileio_readlink): Likewise.
1393 * linux-record.c (record_linux_sockaddr): Likewise.
1394 (record_linux_msghdr): Likewise.
1396 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1397 (linux_collect_regset_section_cb): Likewise.
1398 (linux_get_siginfo_data): Likewise.
1399 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1400 (try_thread_db_load_from_dir): Likewise.
1401 (thread_db_load_search): Likewise.
1402 (info_auto_load_libthread_db): Likewise.
1403 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1404 (m32c_m16c_pointer_to_address): Likewise.
1405 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1406 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1407 * machoread.c (macho_check_dsym): Likewise.
1408 * macroexp.c (resize_buffer): Likewise.
1409 (gather_arguments): Likewise.
1410 (maybe_expand): Likewise.
1411 * macrotab.c (new_macro_key): Likewise.
1412 (new_source_file): Likewise.
1413 (new_macro_definition): Likewise.
1414 * mdebugread.c (parse_symbol): Likewise.
1415 (parse_type): Likewise.
1416 (parse_partial_symbols): Likewise.
1417 (psymtab_to_symtab_1): Likewise.
1418 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1419 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1420 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1421 (mi_cmd_data_read_memory_bytes): Likewise.
1422 (mi_cmd_data_write_memory_bytes): Likewise.
1423 (mi_cmd_trace_frame_collected): Likewise.
1424 * mi/mi-parse.c (mi_parse_argv): Likewise.
1425 (mi_parse): Likewise.
1426 * minidebug.c (lzma_open): Likewise.
1427 (lzma_pread): Likewise.
1428 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1429 (mips_print_fp_register): Likewise.
1430 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1431 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1432 * mt-tdep.c (mt_register_name): Likewise.
1433 (mt_registers_info): Likewise.
1434 (mt_push_dummy_call): Likewise.
1435 * namespace.c (add_using_directive): Likewise.
1436 * nat/linux-btrace.c (perf_event_read): Likewise.
1437 (linux_enable_bts): Likewise.
1438 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1439 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1440 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1441 (nto_parse_redirection): Likewise.
1442 * objc-lang.c (objc_demangle): Likewise.
1443 (find_methods): Likewise.
1444 * objfiles.c (get_objfile_bfd_data): Likewise.
1445 (set_objfile_main_name): Likewise.
1446 (allocate_objfile): Likewise.
1447 (objfile_relocate): Likewise.
1448 (update_section_map): Likewise.
1449 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1450 * p-exp.y (exp): Likewise.
1452 * p-valprint.c (pascal_object_print_value): Likewise.
1453 * parse.c (initialize_expout): Likewise.
1454 (mark_completion_tag): Likewise.
1455 (copy_name): Likewise.
1456 (parse_float): Likewise.
1457 (type_stack_reserve): Likewise.
1458 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1459 (ppu2spu_prev_register): Likewise.
1460 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1461 * printcmd.c (printf_wide_c_string): Likewise.
1462 (printf_pointer): Likewise.
1463 * probe.c (parse_probes): Likewise.
1464 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1465 (cmdpy_init): Likewise.
1466 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1467 * python/py-symtab.c (set_sal): Likewise.
1468 * python/py-unwind.c (pyuw_sniffer): Likewise.
1469 * python/python.c (python_interactive_command): Likewise.
1470 (compute_python_string): Likewise.
1471 * ravenscar-thread.c (get_running_thread_id): Likewise.
1472 * record-full.c (record_full_exec_insn): Likewise.
1473 (record_full_core_open_1): Likewise.
1474 * regcache.c (regcache_raw_read_signed): Likewise.
1475 (regcache_raw_read_unsigned): Likewise.
1476 (regcache_cooked_read_signed): Likewise.
1477 (regcache_cooked_read_unsigned): Likewise.
1478 * remote-fileio.c (remote_fileio_func_open): Likewise.
1479 (remote_fileio_func_rename): Likewise.
1480 (remote_fileio_func_unlink): Likewise.
1481 (remote_fileio_func_stat): Likewise.
1482 (remote_fileio_func_system): Likewise.
1483 * remote-mips.c (mips_xfer_memory): Likewise.
1484 (mips_load_srec): Likewise.
1485 (pmon_end_download): Likewise.
1486 * remote.c (new_remote_state): Likewise.
1487 (map_regcache_remote_table): Likewise.
1488 (remote_register_number_and_offset): Likewise.
1489 (init_remote_state): Likewise.
1490 (get_memory_packet_size): Likewise.
1491 (remote_pass_signals): Likewise.
1492 (remote_program_signals): Likewise.
1493 (remote_start_remote): Likewise.
1494 (remote_check_symbols): Likewise.
1495 (remote_query_supported): Likewise.
1496 (extended_remote_attach): Likewise.
1497 (process_g_packet): Likewise.
1498 (store_registers_using_G): Likewise.
1499 (putpkt_binary): Likewise.
1500 (read_frame): Likewise.
1501 (compare_sections_command): Likewise.
1502 (remote_hostio_pread): Likewise.
1503 (remote_hostio_readlink): Likewise.
1504 (remote_file_put): Likewise.
1505 (remote_file_get): Likewise.
1506 (remote_pid_to_exec_file): Likewise.
1507 (_initialize_remote): Likewise.
1508 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1509 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1510 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1511 (bfd_uses_spe_extensions): Likewise.
1512 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1513 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1514 * solib-dsbt.c (decode_loadmap): Likewise.
1515 (fetch_loadmap): Likewise.
1516 (scan_dyntag): Likewise.
1517 (enable_break): Likewise.
1518 (dsbt_relocate_main_executable): Likewise.
1519 * solib-frv.c (fetch_loadmap): Likewise.
1520 (enable_break2): Likewise.
1521 (frv_relocate_main_executable): Likewise.
1522 * solib-spu.c (spu_relocate_main_executable): Likewise.
1523 (spu_bfd_open): Likewise.
1524 * solib-svr4.c (lm_info_read): Likewise.
1525 (read_program_header): Likewise.
1526 (find_program_interpreter): Likewise.
1527 (scan_dyntag): Likewise.
1528 (elf_locate_base): Likewise.
1529 (open_symbol_file_object): Likewise.
1530 (read_program_headers_from_bfd): Likewise.
1531 (svr4_relocate_main_executable): Likewise.
1532 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1533 * solib.c (solib_find_1): Likewise.
1534 (exec_file_find): Likewise.
1535 (solib_find): Likewise.
1536 * source.c (openp): Likewise.
1537 (print_source_lines_base): Likewise.
1538 (forward_search_command): Likewise.
1539 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1540 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1541 (spu_get_overlay_table): Likewise.
1542 * stabsread.c (patch_block_stabs): Likewise.
1543 (define_symbol): Likewise.
1545 (read_member_functions): Likewise.
1546 (read_one_struct_field): Likewise.
1547 (read_enum_type): Likewise.
1548 (common_block_start): Likewise.
1549 * stack.c (read_frame_arg): Likewise.
1550 (backtrace_command): Likewise.
1551 * stap-probe.c (stap_parse_register_operand): Likewise.
1552 * symfile.c (syms_from_objfile_1): Likewise.
1553 (find_separate_debug_file): Likewise.
1554 (load_command): Likewise.
1555 (load_progress): Likewise.
1556 (load_section_callback): Likewise.
1557 (reread_symbols): Likewise.
1558 (add_filename_language): Likewise.
1559 (allocate_compunit_symtab): Likewise.
1560 (read_target_long_array): Likewise.
1561 (simple_read_overlay_table): Likewise.
1562 * symtab.c (symbol_set_names): Likewise.
1563 (resize_symbol_cache): Likewise.
1564 (rbreak_command): Likewise.
1565 (completion_list_add_name): Likewise.
1566 (completion_list_objc_symbol): Likewise.
1567 (add_filename_to_list): Likewise.
1568 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1569 * target-memory.c (target_write_memory_blocks): Likewise.
1570 * target.c (target_read_string): Likewise.
1571 (read_whatever_is_readable): Likewise.
1572 (target_read_alloc_1): Likewise.
1573 (simple_search_memory): Likewise.
1574 (target_fileio_read_alloc_1): Likewise.
1575 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1576 * top.c (command_line_input): Likewise.
1577 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1578 * tracefile.c (tracefile_fetch_registers): Likewise.
1579 * tracepoint.c (add_memrange): Likewise.
1580 (init_collection_list): Likewise.
1581 (add_aexpr): Likewise.
1582 (trace_dump_actions): Likewise.
1583 (parse_trace_status): Likewise.
1584 (parse_tracepoint_definition): Likewise.
1585 (parse_tsv_definition): Likewise.
1586 (parse_static_tracepoint_marker_definition): Likewise.
1587 * tui/tui-file.c (tui_sfileopen): Likewise.
1588 (tui_file_adjust_strbuf): Likewise.
1589 * tui/tui-io.c (tui_expand_tabs): Likewise.
1590 * tui/tui-source.c (tui_set_source_content): Likewise.
1591 * typeprint.c (find_global_typedef): Likewise.
1592 * ui-file.c (do_ui_file_xstrdup): Likewise.
1593 (ui_file_obsavestring): Likewise.
1594 (mem_file_write): Likewise.
1595 * utils.c (make_hex_string): Likewise.
1596 (get_regcomp_error): Likewise.
1597 (puts_filtered_tabular): Likewise.
1598 (gdb_realpath_keepfile): Likewise.
1599 (ldirname): Likewise.
1600 (gdb_bfd_errmsg): Likewise.
1601 (substitute_path_component): Likewise.
1602 * valops.c (search_struct_method): Likewise.
1603 (find_oload_champ_namespace_loop): Likewise.
1604 * valprint.c (print_decimal_chars): Likewise.
1605 (read_string): Likewise.
1606 (generic_emit_char): Likewise.
1607 * varobj.c (varobj_delete): Likewise.
1608 (varobj_value_get_print_value): Likewise.
1609 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1610 * windows-tdep.c (display_one_tib): Likewise.
1611 * xcoffread.c (read_xcoff_symtab): Likewise.
1612 (process_xcoff_symbol): Likewise.
1613 (swap_sym): Likewise.
1614 (scan_xcoff_symtab): Likewise.
1615 (xcoff_initial_scan): Likewise.
1616 * xml-support.c (gdb_xml_end_element): Likewise.
1617 (xml_process_xincludes): Likewise.
1618 (xml_fetch_content_from_file): Likewise.
1619 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1620 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1622 2015-09-23 James Bowman <james.bowman@ftdichip.com>
1624 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1625 instead of builtin_func_ptr.
1626 (ft32_pointer_to_address): New function.
1627 (ft32_address_class_type_flags): New function.
1628 (ft32_address_class_type_flags_to_name): New function.
1629 (ft32_address_class_name_to_type_flags): New function.
1630 (ft32_gdbarch_init): Set tdep->pc_type. Call
1631 set_gdbarch_pointer_to_address,
1632 set_gdbarch_address_class_type_flags
1633 set_gdbarch_address_class_name_to_type_flags,
1634 and set_gdbarch_address_class_type_flags_to_name.
1635 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1637 2015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1639 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1640 value is a reference, actually dereference it in order to get
1641 the underlying value.
1643 2015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1645 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1647 2015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1649 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1650 * linespec.c (linespec_lexer_lex_string): Same.
1652 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1654 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1656 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1658 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1659 variable. Call aarch64_decode_adr instead of
1660 aarch64_decode_adrp.
1661 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1662 (aarch64_decode_adr): New function declaration.
1663 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1664 (aarch64_decode_adr): New function, factored out from
1665 aarch64_decode_adrp to decode both adr and adrp instructions.
1667 2015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1669 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1670 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1671 (aarch64-insn.o): New rule.
1672 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1673 (aarch64*-*-linux*): Likewise.
1674 * arch/aarch64-insn.c: New file.
1675 * arch/aarch64-insn.h: New file.
1676 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1677 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1678 arch/aarch64-insn.h.
1679 (decode_add_sub_imm): Rename to ...
1680 (aarch64_decode_add_sub_imm): ... this.
1681 (decode_adrp): Rename to ...
1682 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1683 Declare in arch/aarch64-insn.h.
1684 (decode_b): Rename to ...
1685 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1686 Declare in arch/aarch64-insn.h.
1687 (decode_bcond): Rename to ...
1688 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1689 Declare in arch/aarch64-insn.h.
1690 (decode_br): Rename to ...
1691 (aarch64_decode_br): ... this.
1692 (decode_cb): Rename to ...
1693 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1694 Declare in arch/aarch64-insn.h.
1695 (decode_eret): Rename to ...
1696 (aarch64_decode_eret): ... this.
1697 (decode_movz): Rename to ...
1698 (aarch64_decode_movz): ... this.
1699 (decode_orr_shifted_register_x): Rename to ...
1700 (aarch64_decode_orr_shifted_register_x): ... this.
1701 (decode_ret): Rename to ...
1702 (aarch64_decode_ret): ... this.
1703 (decode_stp_offset): Rename to ...
1704 (aarch64_decode_stp_offset): ... this.
1705 (decode_stp_offset_wb): Rename to ...
1706 (aarch64_decode_stp_offset_wb): ... this.
1707 (decode_stur): Rename to ...
1708 (aarch64_decode_stur): ... this.
1709 (decode_tb): Rename to ...
1710 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1711 Declare in arch/aarch64-insn.h.
1712 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1714 2015-09-20 Doug Evans <xdje42@gmail.com>
1716 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1718 2015-09-20 Doug Evans <xdje42@gmail.com>
1720 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1721 variable name that collides with a parameter.
1723 2015-09-20 Joel Brobecker <brobecker@adacore.com>
1725 * dwarf2loc.c (locexpr_get_frame_base): Renames
1726 block_op_get_frame_base.
1727 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1728 block_op_get_frame_base by reference to locexpr_get_frame_base.
1729 (loclist_get_frame_base): New function, near identical copy of
1730 locexpr_get_frame_base.
1731 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1732 block_op_get_frame_base by reference to loclist_get_frame_base.
1734 2015-09-19 Doug Evans <xdje42@gmail.com>
1736 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1737 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1739 2015-09-18 Doug Evans <xdje42@gmail.com>
1741 * linux-thread-db.c (record_thread): Return the created thread.
1742 (thread_from_lwp): Likewise.
1743 (thread_db_get_thread_local_address): Update.
1745 2015-09-18 Doug Evans <xdje42@gmail.com>
1747 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1748 move only member demangled_name up. All uses updated.
1750 2015-09-18 Doug Evans <xdje42@gmail.com>
1752 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1753 kind of minimal symbol in the error message.
1754 * objfiles.c (objfile_flavour_name): New function.
1755 * objfiles.h (objfile_flavour_name): Declare.
1757 2015-09-18 Yao Qi <yao.qi@linaro.org>
1759 * nat/aarch64-linux.c: Include elf/common.h,
1760 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1761 (aarch64_ps_get_thread_area): New function.
1762 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1763 (aarch64_ps_get_thread_area): Declare.
1764 * aarch64-linux-nat.c (ps_get_thread_area): Call
1765 aarch64_ps_get_thread_area.
1767 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1769 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1771 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1773 * NEWS: Announce new scheduler-locking mode.
1774 * infrun.c (schedlock_replay): New.
1775 (scheduler_enums): Add schedlock_replay.
1776 (scheduler_mode): Change default to schedlock_replay.
1777 (user_visible_resume_ptid): Handle schedlock_replay.
1778 (clear_proceed_status_thread): Stop replaying if resumed thread is
1780 (schedlock_applies): Handle schedlock_replay.
1781 (_initialize_infrun): Document new scheduler-locking mode.
1782 * record-btrace.c (record_btrace_resume): Remove code to stop other
1783 threads when not replaying the resumed thread.
1785 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1787 * record-btrace.c ((record_btrace_will_replay): New.
1788 (init_record_btrace_ops): Initialize to_record_will_replay.
1789 * record-full.c ((record_full_will_replay): New.
1790 (init_record_full_ops): Initialize to_record_will_replay.
1791 * target-delegates.c: Regenerated.
1792 * target.c (target_record_will_replay): New.
1793 * target.h (struct target_ops) <to_record_will_replay>: New.
1794 (target_record_will_replay): New.
1796 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1798 * record-btrace.c (record_btrace_resume): Call
1799 target_record_stop_replaying.
1800 (record_btrace_stop_replaying_all): New.
1801 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1802 * record-full.c (record_full_stop_replaying): New.
1803 (init_record_full_ops ): Initialize to_record_stop_replaying.
1804 * target-delegates.c: Regenerated.
1805 * target.c (target_record_stop_replaying): New.
1806 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1807 (target_record_stop_replaying): New.
1809 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1811 * record-btrace.c (record_btrace_xfer_partial)
1812 (record_btrace_store_registers, record_btrace_prepare_to_store):
1813 Call record_btrace_is_replaying with inferior_ptid instead of
1815 (record_btrace_store_registers): Change error message.
1817 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1819 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1820 Update users to pass minus_one_ptid.
1821 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1822 * record.c (cmd_record_delete): Pass inferior_ptid to
1823 target_record_is_replaying.
1824 * target-delegates.c: Regenerated.
1825 * target.c (target_record_is_replaying): Add ptid argument.
1826 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1828 (target_record_is_replaying): Add ptid argument.
1830 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1832 * record-btrace.c (record_btrace_open): Remove non_stop check.
1833 * NEWS: Announce that record btrace supports non-stop mode.
1835 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1837 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1838 in the TARKET_WAITKIND_NO_HISTORY case.
1840 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1842 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1843 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1845 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1847 * record-btrace.c (get_thread_current_frame): New.
1848 (record_btrace_start_replaying): Call get_thread_current_frame.
1850 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1852 * record-btrace.c (record_btrace_resume_thread): A move request
1853 overwrites a previous move request.
1854 (record_btrace_find_resume_thread): Removed.
1855 (record_btrace_resume): Resume all requested threads.
1857 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1859 * record-btrace.c: Include vec.h.
1860 (record_btrace_find_thread_to_move): Removed.
1861 (btrace_step_no_resumed, btrace_step_again)
1862 (record_btrace_stop_replaying_at_end): New.
1863 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1864 (record_btrace_single_step_forward): Remove calls to
1865 record_btrace_stop_replaying.
1866 (record_btrace_step_thread): Do only one step for BTHR_CONT and
1867 BTHR_RCONT. Keep threads at the end of their history moving.
1868 (record_btrace_wait): Call record_btrace_step_thread for all threads
1869 until one reports an event. Call record_btrace_stop_replaying_at_end
1870 for the eventing thread.
1872 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1874 * record-btrace.c (record_btrace_single_step_forward): Return
1875 NO_HISTORY if a step brings us to the end of the execution history.
1877 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1879 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1881 (record_btrace_single_step_forward): ... here and
1882 (record_btrace_single_step_backward): ... here.
1884 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1886 * record-btrace.c (btrace_step_spurious)
1887 (record_btrace_single_step_forward)
1888 (record_btrace_single_step_backward): New.
1889 (record_btrace_step_thread): Call record_btrace_single_step_forward
1890 and record_btrace_single_step_backward.
1892 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1894 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1895 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1897 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1899 * record-btrace.c (btrace_thread_flag_to_str)
1900 (record_btrace_cancel_resume): New.
1901 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1902 (record_btrace_resume): Print execution direction.
1903 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1904 (record_btrace_wait): Call record_btrace_cancel_resume.
1906 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1908 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1909 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1910 (record_btrace_find_thread_to_move): Also accept threads that have
1912 (btrace_step_stopped_on_request, record_btrace_stop): New.
1913 (record_btrace_step_thread): Support BTHR_STOP.
1914 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1915 (init_record_btrace_ops): Initialize to_stop.
1917 2015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1919 * record-btrace.c (record_btrace_wait): Replace non_stop check with
1920 target_is_non_stop_p ().
1922 2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
1924 * ada-typeprint.c (print_array_type): Do not describe arrays as
1925 packed when they embed dynamic elements.
1927 2015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1929 * symtab.h (address_class): Document that TLS variables
1930 are handled by LOC_UNRESOLVED.
1931 * findvar.c (default_read_var_value): Don't relocate TLS variables.
1932 * printcmd.c (address_info): Don't relocate TLS variables.
1934 2015-09-15 Pierre Langlois <pierre.langlois@arm.com>
1936 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
1937 (decode_adrp): Likewise.
1938 (decode_b): Likewise.
1939 (decode_bcond): Likewise.
1940 (decode_br): Likewise.
1941 (decode_cb): Likewise.
1942 (decode_eret): Likewise.
1943 (decode_movz): Likewise.
1944 (decode_orr_shifted_register_x): Likewise.
1945 (decode_ret): Likewise.
1946 (decode_stp_offset): Likewise.
1947 (decode_stp_offset_wb): Likewise.
1948 (decode_stur): Likewise.
1949 (decode_tb): Likewise.
1950 (aarch64_analyze_prologue): Likewise.
1951 (pass_in_x): Likewise.
1952 (pass_in_v): Likewise.
1953 (pass_on_stack): Likewise.
1954 (aarch64_push_dummy_call): Likewise.
1955 (aarch64_extract_return_value): Likewise.
1956 (aarch64_store_return_value): Likewise.
1957 (aarch64_return_value): Likewise.
1958 (aarch64_record_asimd_load_store): Likewise.
1959 (aarch64_record_load_store): Likewise.
1960 (aarch64_record_data_proc_simd_fp): Likewise.
1962 2015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1964 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
1965 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
1966 (ppc64_skip_trampoline_code_1): ... here.
1967 (ppc64_skip_trampoline_code): New wrapper function.
1968 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
1970 2015-09-15 Yao Qi <yao.qi@linaro.org>
1972 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
1974 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
1975 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
1976 if target_can_do_single_step returns 1.
1977 * remote.c (struct vCont_action_support) <s, S>: New fields.
1978 (PACKET_vContSupported): New enum.
1979 (remote_protocol_features): New element for vContSupported.
1980 (remote_query_supported): Append "vContSupported+".
1981 (remote_vcont_probe): Remove support_s and support_S, use
1982 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
1983 vCont packet if c and C actions are not supported.
1984 (remote_can_do_single_step): New function.
1985 (init_remote_ops): Install it to to_can_do_single_step.
1986 (_initialize_remote): Call add_packet_config_cmd.
1987 * target.h (struct target_ops) <to_can_do_single_step>: New field.
1988 (target_can_do_single_step): New macro.
1989 * target-delegates.c: Re-generated.
1991 2015-09-15 Yao Qi <yao.qi@linaro.org>
1993 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
1994 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
1995 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
1997 (aarch64_siginfo_from_compat_siginfo): New function.
1998 * nat/aarch64-linux.h: Include signal.h.
1999 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
2000 (compat_timer_t, compat_clock_t): Likewise.
2001 (struct compat_timeval): New.
2002 (union compat_sigval): New.
2003 (struct compat_siginfo): New.
2004 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
2005 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
2006 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
2007 (cpt_si_band, cpt_si_fd): Likewise.
2009 2015-09-14 Pedro Alves <palves@redhat.com>
2011 * infrun.c (current_stop_id): New global.
2012 (get_stop_id, new_stop_id): New functions.
2013 (fetch_inferior_event): Handle normal_stop proceeding the target.
2014 (struct stop_context): New.
2015 (save_stop_context, release_stop_context_cleanup)
2016 (stop_context_changed): New functions.
2017 (normal_stop): Return true if the hook-stop changes the stop
2019 * infrun.h (get_stop_id): Declare.
2020 (normal_stop): Now returns int. Add documentation.
2022 2015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
2024 * ada-lang.c (ada_value_ptr_subscript): Update the heading
2025 comment. Handle packed arrays.
2027 2015-09-14 Pedro Alves <palves@redhat.com>
2029 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
2030 mention of maint set/show target-non-stop.
2032 2015-09-11 Don Breazeal <donb@codesourcery.com>
2034 * NEWS: Announce new remote packets for the exec-events
2035 feature and the exec-events feature and associated commands.
2037 2015-09-11 Don Breazeal <donb@codesourcery.com>
2039 * remote.c (remote_exec_event_p): New function.
2040 (remote_insert_exec_catchpoint): New function.
2041 (remote_remove_exec_catchpoint): New function.
2042 (init_extended_remote_ops): Initialize extended_remote_ops
2043 members to_insert_exec_catchpoint and
2044 to_remove_exec_catchpoint.
2046 2015-09-11 Don Breazeal <donb@codesourcery.com>
2047 Luis Machado <lgustavo@codesourcery.com>
2049 * infrun.c (follow_exec): Use process-style ptid for
2050 exec message. Call add_inferior_with_spaces and
2052 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2053 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2054 * remote.c (remote_pspace_data): New static variable.
2055 (remote_pspace_data_cleanup): New function.
2056 (get_remote_exec_file): New function.
2057 (set_remote_exec_file_1): New function.
2058 (set_remote_exec_file): New function.
2059 (show_remote_exec_file): New function.
2060 (remote_exec_file): Delete static variable.
2061 (anonymous enum) <PACKET_exec_event_feature>: New
2062 enumeration constant.
2063 (remote_protocol_features): Add entry for exec-events feature.
2064 (remote_query_supported): Add client side of qSupported query
2065 for exec-events feature.
2066 (remote_follow_exec): New function.
2067 (remote_parse_stop_reply): Handle 'exec' stop reason.
2068 (extended_remote_run, extended_remote_create_inferior): Call
2069 get_remote_exec_file and set_remote_exec_file_1.
2070 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2072 (_initialize_remote): Call
2073 register_program_space_data_with_cleanup. Call
2074 add_packet_config_cmd for remote exec-events feature.
2075 Modify call to add_setshow_string_noescape_cmd for exec-file
2076 to use new functions set_remote_exec_file and
2077 show_remote_exec_file.
2078 * target-debug.h, target-delegates.c: Regenerated.
2079 * target.c (target_follow_exec): New function.
2080 * target.h (struct target_ops) <to_follow_exec>: New member.
2081 (target_follow_exec): Declare new function.
2083 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2085 * aarch64-tdep.c (decode_cb): Move up comment describing the
2087 (decode_tb): Fix a typo in comment above the function. Move up
2088 comment describing the encoding.
2090 2015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2092 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2094 2015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2097 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2098 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2100 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2102 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2105 2015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2107 * ada-lang.c (ada_search_struct_field): Constify parameters
2109 (xget_renaming_scope): Likewise.
2110 (ada_is_redundant_range_encoding): Likewise.
2111 (scan_discrim_bound): Likewise.
2112 (to_fixed_range_type): Likewise.
2114 2015-09-10 Yao Qi <yao.qi@linaro.org>
2116 * breakpoint.c (download_tracepoint_locations): New local
2117 can_download_tracepoint. Check the result of
2118 target_can_download_tracepoint and save it in
2119 can_download_tracepoint if there are tracepoints to download.
2120 * linux-nat.h (enum tribool): Move it to ...
2121 * common/common-types.h: ... here.
2123 2015-09-09 Pedro Alves <palves@redhat.com>
2125 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2126 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2128 2015-09-09 Pedro Alves <palves@redhat.com>
2130 * continuations.c (add_continuation, restore_thread_cleanup)
2131 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2132 (do_all_continuations_thread, do_all_continuations)
2133 (discard_all_continuations_thread_callback)
2134 (discard_all_continuations_thread, discard_all_continuations)
2135 (add_intermediate_continuation)
2136 (do_all_intermediate_continuations_thread_callback)
2137 (do_all_intermediate_continuations_thread)
2138 (do_all_intermediate_continuations)
2139 (discard_all_intermediate_continuations_thread_callback)
2140 (discard_all_intermediate_continuations_thread)
2141 (discard_all_intermediate_continuations): Delete.
2142 * continuations.h (add_continuation, do_all_continuations)
2143 (do_all_continuations_thread, discard_all_continuations)
2144 (discard_all_continuations_thread, add_intermediate_continuation)
2145 (do_all_intermediate_continuations)
2146 (do_all_intermediate_continuations_thread)
2147 (discard_all_intermediate_continuations)
2148 (discard_all_intermediate_continuations_thread): Delete
2150 * event-top.c (stdin_event_handler): Delete references to
2152 * gdbthread.h (struct thread_info): Delete continuations and
2153 intermediate_continuations fields.
2154 * inf-loop.c (inferior_event_handler): Remove references to
2156 * infrun.c (infrun_thread_stop_requested_callback): Remove
2157 references to continuations.
2158 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2159 * thread.c: Don't include "continuations.h".
2160 (clear_thread_inferior_resources): Remove references to
2163 2015-09-09 Pedro Alves <palves@redhat.com>
2165 * infcall.c (struct dummy_frame_context_saver): Delete.
2166 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2167 (dummy_frame_context_saver_drop)
2168 (dummy_frame_context_saver_cleanup)
2169 (dummy_frame_context_saver_get_regs)
2170 (dummy_frame_context_saver_setup): Delete.
2171 * infcall.h (dummy_frame_context_saver_drop)
2172 (dummy_frame_context_saver_cleanup)
2173 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2175 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2176 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2177 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2179 2015-09-09 Pedro Alves <palves@redhat.com>
2181 * breakpoint.c: Include "thread-fsm.h".
2182 (struct until_break_command_continuation_args): Delete.
2183 (struct until_break_fsm): New.
2184 (until_break_fsm_ops): New global.
2185 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2186 (until_break_command_continuation): Delete.
2187 (until_break_fsm_clean_up): New function.
2188 (until_break_fsm_async_reply_reason): New function.
2189 (until_break_command): Adjust to create an until_break_fsm instead
2191 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2193 * infcmd.c (struct until_next_fsm): New.
2194 (until_next_fsm_ops): New global.
2195 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2196 (until_next_continuation): Delete.
2197 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2199 (until_next_command): Adjust to create a new until_next_fsm
2200 instead of a continuation.
2202 2015-09-09 Pedro Alves <palves@redhat.com>
2204 * infcall.c: Include thread_fsm.h.
2205 (struct call_return_meta_info): New.
2206 (get_call_return_value): New function, factored out from
2207 call_function_by_hand_dummy.
2208 (struct call_thread_fsm): New.
2209 (call_thread_fsm_ops): New global.
2210 (new_call_thread_fsm, call_thread_fsm_should_stop)
2211 (call_thread_fsm_should_notify_stop): New functions.
2212 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2214 (call_function_by_hand_dummy): Create a new call_thread_fsm
2215 instance, associate it with the thread, and wait for the FSM to
2216 finish. If finished successfully, fetch the function's result
2217 value out of the FSM.
2218 * infrun.c (fetch_inferior_event): If the FSM says the stop
2219 shouldn't be notified, don't call normal_stop.
2220 (maybe_remove_breakpoints): New function, factored out from ...
2221 (normal_stop): ... here. Simplify.
2222 * infrun.h (maybe_remove_breakpoints): Declare.
2223 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2224 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2225 (thread_fsm_should_notify_stop): Declare.
2227 2015-09-09 Pedro Alves <palves@redhat.com>
2229 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2230 * breakpoint.c (handle_jit_event): Print debug output.
2231 (bpstat_what): Split event callback handling to ...
2232 (bpstat_run_callbacks): ... this new function.
2233 (momentary_bkpt_print_it): No longer handle bp_finish here.
2234 * breakpoint.h (bpstat_run_callbacks): Declare.
2235 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2236 <thread_fsm>: New field.
2237 (thread_cancel_execution_command): Declare.
2238 * infcmd.c: Include thread-fsm.h.
2239 (struct step_command_fsm): New.
2240 (step_command_fsm_ops): New global.
2241 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2242 (step_1): Adjust to use step_command_fsm_prepare and
2244 (struct step_1_continuation_args): Delete.
2245 (step_1_continuation): Delete.
2246 (step_command_fsm_should_stop): New function.
2247 (step_once): Delete.
2248 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2249 (prepare_one_step): New function, based on step_once.
2250 (until_next_command): Remove step_multi reference.
2251 (struct return_value_info): New.
2252 (print_return_value): Rename to ...
2253 (print_return_value_1): ... this. New struct return_value_info
2255 (print_return_value): Reimplement as wrapper around
2256 print_return_value_1.
2257 (struct finish_command_fsm): New.
2258 (finish_command_continuation): Delete.
2259 (finish_command_fsm_ops): New global.
2260 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2262 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2264 (finish_command_continuation_free_arg): Delete.
2265 (finish_command_fsm_async_reply_reason): New.
2266 (finish_backward, finish_forward): Change symbol parameter to a
2267 finish_command_fsm. Adjust.
2268 (finish_command): Create a finish_command_fsm. Adjust.
2269 * infrun.c: Include "thread-fsm.h".
2270 (clear_proceed_status_thread): Delete the thread's FSM.
2271 (infrun_thread_stop_requested_callback): Cancel the thread's
2273 (clean_up_just_stopped_threads_fsms): New function.
2274 (fetch_inferior_event): Handle the event_thread's should_stop
2275 method saying the command isn't done yet.
2276 (process_event_stop_test): Run breakpoint callbacks here.
2277 (print_stop_event): Rename to ...
2278 (print_stop_location): ... this.
2279 (restore_current_uiout_cleanup): New function.
2280 (print_stop_event): Reimplement.
2281 (normal_stop): No longer notify the end_stepping_range observers
2282 here handle "step N" nor "finish" here. No longer call
2283 print_stop_event here.
2284 * infrun.h (struct return_value_info): Forward declare.
2285 (print_return_value): Declare.
2286 (print_stop_event): Change prototype.
2287 * thread-fsm.c: New file.
2288 * thread-fsm.h: New file.
2289 * thread.c: Include "thread-fsm.h".
2290 (thread_cancel_execution_command): New function.
2291 (clear_thread_inferior_resources): Call it.
2292 * cli/cli-interp.c (cli_on_normal_stop): New function.
2293 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2295 * mi/mi-interp.c: Include "thread-fsm.h".
2296 (restore_current_uiout_cleanup): Delete.
2297 (mi_on_normal_stop): If the thread has an FSM associated, and it
2298 finished, ask it for the async-reply-reason to print. Always call
2299 print_stop_event here, regardless of the top-level interpreter.
2300 Check bpstat_what to tell whether an asynchronous breakpoint hit
2302 * tui/tui-interp.c (tui_on_normal_stop): New function.
2303 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2305 2015-09-09 Pedro Alves <palves@redhat.com>
2307 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2308 check whether the target can async.
2309 * inf-loop.c (inferior_event_handler): Only call target_async if
2310 the target can async.
2311 * infcall.c: Include top.h and interps.h.
2312 (run_inferior_call): For the interpreter to sync mode while
2313 running the infcall. Call wait_sync_command_done instead of
2314 wait_for_inferior plus normal_stop.
2315 * infcmd.c (prepare_execution_command): Don't check whether the
2316 target can async when running in the foreground.
2317 (step_1): Delete synchronous case handling.
2318 (step_once): Always install a continuation, even in sync mode.
2319 (until_next_command, finish_forward): Don't check whether the
2321 (attach_command_post_wait, notice_new_inferior): Always install a
2322 continuation, even in sync mode.
2323 * infrun.c (mark_infrun_async_event_handler): New function.
2324 (proceed): In sync mode, mark infrun's event source instead of
2325 waiting for events here.
2326 (fetch_inferior_event): If the target can't async, do a blocking
2328 (prepare_to_wait): In sync mode, mark infrun's event source.
2329 (infrun_async_inferior_event_handler): No longer bail out if the
2331 * infrun.h (mark_infrun_async_event_handler): New declaration.
2332 * linux-nat.c (linux_nat_wait_1): Remove calls to
2333 set_sigint_trap/clear_sigint_trap.
2334 (linux_nat_terminal_inferior): No longer check whether the target
2336 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2338 (mi_execute_command_input_handler): No longer check whether the
2339 target is async. Update and simplify comment.
2340 * target.c (default_target_wait): New function.
2341 * target.h (struct target_ops) <to_wait>: Now defaults to
2342 default_target_wait.
2343 (default_target_wait): Declare.
2344 * top.c (wait_sync_command_done): New function, factored out from
2346 (maybe_wait_sync_command_done): ... this.
2347 * top.h (wait_sync_command_done): Declare.
2348 * target-delegates.c: Regenerate.
2350 2015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2352 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2353 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2354 Remove include of sys/utsname.h.
2355 (linux_determine_kernel_ptr_bits): Remove.
2356 (linux_determine_kernel_start): New.
2357 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2359 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2360 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2362 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2365 2015-09-07 Pedro Alves <palves@redhat.com>
2367 * guile/guile-internal.h (as_a_scm_t_subr): New.
2368 * guile/guile.c (misc_guile_functions): Use it.
2369 * guile/scm-arch.c (arch_functions): Use it.
2370 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2372 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2373 * guile/scm-cmd.c (command_functions): Use it.
2374 * guile/scm-disasm.c (disasm_functions): Use it.
2375 * guile/scm-exception.c (exception_functions)
2376 (private_exception_functions): Use it.
2377 * guile/scm-frame.c (frame_functions)
2378 * guile/scm-gsmob.c (gsmob_functions): Use it.
2379 * guile/scm-iterator.c (iterator_functions): Use it.
2380 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2381 * guile/scm-math.c (math_functions): Use it.
2382 * guile/scm-objfile.c (objfile_functions): Use it.
2383 * guile/scm-param.c (parameter_functions): Use it.
2384 * guile/scm-ports.c (port_functions, private_port_functions): Use
2386 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2387 * guile/scm-progspace.c (pspace_functions): Use it.
2388 * guile/scm-string.c (string_functions): Use it.
2389 * guile/scm-symbol.c (symbol_functions): Use it.
2390 * guile/scm-symtab.c (symtab_functions): Use it.
2391 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2393 * guile/scm-value.c (value_functions): Use it.
2395 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2397 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2398 (tui_next_win): Likewise.
2399 (tui_prev_win): Likewise.
2400 (tui_partial_win_by_name): Likewise.
2401 (tui_init_generic_part): Likewise.
2402 (init_content_element): Likewise.
2403 (tui_del_window): Likewise.
2404 (tui_free_window): Likewise.
2405 (tui_del_data_windows): Likewise.
2406 (tui_free_data_content): Likewise.
2407 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2408 * tui/tui-regs.c (tui_show_register_group): Likewise.
2409 * tui/tui-win.c (tui_resize_all): Likewise.
2410 (tui_set_focus): Likewise.
2411 (tui_set_win_height): Likewise.
2412 (make_invisible_and_set_new_height): Likewise.
2413 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2414 * tui/tui-wingeneral.c (make_visible): Likewise.
2416 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2418 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2420 2015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2422 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2424 * dbxread.c (dbx_end_psymtab): Likewise.
2425 * gnu-nat.c (gnu_write_inferior): Likewise.
2426 * mdebugread.c (cross_ref): Likewise.
2427 * p-valprint.c (pascal_val_print): Likewise.
2428 * xcoffread.c (xcoff_end_psymtab): Likewise.
2430 2015-09-04 Yao Qi <yao.qi@linaro.org>
2432 * NEWS: Mention the aarch64 multi-arch debugging support.
2434 2015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2436 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2437 type instead of a TYPE_CODE_INT one for the string_char_type
2438 and the ada_primitive_type_char types.
2440 2015-09-03 Yao Qi <yao.qi@linaro.org>
2442 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2443 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2444 aarch64_linux_region_ok_for_watchpoint.
2445 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2447 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2450 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2452 * gdb_obstack.h (obstack_strdup): Declare.
2453 * gdb_obstack.c (obstack_strdup): Define.
2454 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2455 * gdbarch.c: Regenerate.
2456 * gdbarch.h: Regenerate.
2457 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2459 2015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2461 * gdbtypes.c (copy_type_recursive): Update documentation.
2463 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2465 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2468 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2470 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2472 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2474 * solib-svr4.c (solib_event_probe_action): Call
2475 get_probe_argument_count using TRY...CATCH.
2476 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2478 2015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2480 * probe.h (struct probe_ops) <get_probe_argument_count,
2481 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2482 the comment that the function can throw an exception.
2483 (get_probe_argument_count): Likewise.
2484 (evaluate_probe_argument): Likewise.
2485 * stap-probe.c (stap_get_opcode): Call error instead of
2487 (stap_get_expected_argument_type): Likewise. Add argument
2488 'probe'. Improve error message by mentioning the probe's name.
2489 (stap_parse_probe_arguments): Adjust call to
2490 stap_get_expected_argument_type.
2491 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2492 not zero. Call internal_error if GDB requests an argument but the
2493 probe has no arguments.
2495 2015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2497 * ada-lang.c (ada_resolve_function): Do not ask the user what
2498 match to use when in completion mode.
2500 2015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2502 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2505 2015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2507 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2508 call_abi using XSHAL_ABI macro.
2510 2015-08-29 Doug Evans <xdje42@gmail.com>
2512 * symtab.h (struct symbol): Tweak comment.
2514 2015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2516 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2517 gdbarch obstack instead of on the heap. Update commentary
2520 2015-08-28 Joel Brobecker <brobecker@adacore.com>
2524 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2526 * NEWS: Update entry about non-8-bits addressable memory.
2528 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2531 2014-11-06 Doug Evans <xdje42@gmail.com>
2532 * solib.c (solib_global_lookup): Fetch arch from objfile,
2535 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2537 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2538 attempt to relocate a TLS variable offset.
2540 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2542 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2543 registered yet. Set inferior_ptid while calling target_read_memory.
2545 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2547 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2548 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2549 * linux-nat.c (check_stopped_by_breakpoint): Use
2550 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2552 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
2554 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2555 thread was not yet discovered, use thread_from_lwp instead of
2556 calling thread_db_find_new_threads_1.
2558 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2560 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2563 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2565 * NEWS: Document support for non-8-bits addressable memory.
2567 2015-08-27 Pedro Alves <palves@redhat.com>
2569 * configure.ac: Remove AC_TYPE_SIGNAL call.
2570 * configure, config.in: Regenerate.
2572 2015-08-27 Pedro Alves <palves@redhat.com>
2574 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2575 * extension-priv.h: Include signal.h.
2576 (struct signal_handler) <handler>: Change type to sighandler_t.
2577 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2578 * inflow.c (sigint_ours, sigquit_ours): Change type to
2580 (child_terminal_inferior): Remove casts.
2581 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2582 (osig): Change type to sighandler_t.
2583 * nto-procfs.c (ofunc): Change type to sighandler_t.
2584 (procfs_wait): Remove casts.
2585 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2586 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2587 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2589 2015-08-27 Pedro Alves <palves@redhat.com>
2591 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2592 * gnulib/aclocal.m4: Renegerate.
2593 * gnulib/config.in: Renegerate.
2594 * gnulib/configure: Renegerate.
2595 * gnulib/import/Makefile.am: Update.
2596 * gnulib/import/Makefile.in: Regenerate.
2597 * gnulib/import/m4/gnulib-cache.m4: Update.
2598 * gnulib/import/m4/gnulib-comp.m4: Update.
2599 * gnulib/import/m4/signal_h.m4: New file.
2600 * gnulib/import/signal.in.h: New file.
2602 2015-08-27 Pedro Alves <palves@redhat.com>
2604 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2605 (MIN_MEMORY_PACKET_SIZE): New.
2606 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2607 (get_memory_packet_size): Adjust. No longer limit the max packet
2609 (set_memory_packet_size): Adjust, and remove dead code.
2610 (remote_check_symbols): Use xmalloc and a cleanup instead of
2612 (remote_packet_size): No longer cap the packet size.
2613 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2615 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
2617 * compile/compile.c (compile_to_object): Mention language in
2620 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2622 * target.c (target_pre_inferior): Unset attach_flag.
2624 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2626 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2627 * gdbarch.c: Re-generate.
2629 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2631 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2632 function with the XNEW-family equivalent.
2633 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2634 * ada-exp.y (write_ambiguous_var): Likewise.
2635 * ada-lang.c (resolve_subexp): Likewise.
2636 (user_select_syms): Likewise.
2637 (assign_aggregate): Likewise.
2638 (ada_evaluate_subexp): Likewise.
2639 (cache_symbol): Likewise.
2640 * addrmap.c (allocate_key): Likewise.
2641 (addrmap_create_mutable): Likewise.
2642 * aix-thread.c (sync_threadlists): Likewise.
2643 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2644 (alpha_gdbarch_init): Likewise.
2645 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2646 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2647 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2648 * arm-tdep.c (push_stack_item): Likewise.
2649 (arm_displaced_step_copy_insn): Likewise.
2650 (arm_gdbarch_init): Likewise.
2651 (_initialize_arm_tdep): Likewise.
2652 * avr-tdep.c (push_stack_item): Likewise.
2653 * ax-general.c (new_agent_expr): Likewise.
2654 * block.c (block_initialize_namespace): Likewise.
2655 * breakpoint.c (alloc_counted_command_line): Likewise.
2656 (update_dprintf_command_list): Likewise.
2657 (parse_breakpoint_sals): Likewise.
2658 (decode_static_tracepoint_spec): Likewise.
2659 (until_break_command): Likewise.
2660 (clear_command): Likewise.
2661 (update_global_location_list): Likewise.
2662 (get_breakpoint_objfile_data) Likewise.
2663 * btrace.c (ftrace_new_function): Likewise.
2664 (btrace_set_insn_history): Likewise.
2665 (btrace_set_call_history): Likewise.
2666 * buildsym.c (add_symbol_to_list): Likewise.
2667 (record_pending_block): Likewise.
2668 (start_subfile): Likewise.
2669 (start_buildsym_compunit): Likewise.
2670 (push_subfile): Likewise.
2671 (end_symtab_get_static_block): Likewise.
2672 (buildsym_init): Likewise.
2673 * cli/cli-cmds.c (source_command): Likewise.
2674 * cli/cli-decode.c (add_cmd): Likewise.
2675 * cli/cli-script.c (build_command_line): Likewise.
2676 (setup_user_args): Likewise.
2677 (realloc_body_list): Likewise.
2678 (process_next_line): Likewise.
2679 (copy_command_lines): Likewise.
2680 * cli/cli-setshow.c (do_set_command): Likewise.
2681 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2682 * coffread.c (coff_locate_sections): Likewise.
2683 (coff_symtab_read): Likewise.
2684 (coff_read_struct_type): Likewise.
2685 * common/cleanups.c (make_my_cleanup2): Likewise.
2686 * common/common-exceptions.c (throw_it): Likewise.
2687 * common/filestuff.c (make_cleanup_close): Likewise.
2688 * common/format.c (parse_format_string): Likewise.
2689 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2690 * compile/compile-object-load.c (munmap_list_add): Likewise.
2691 (compile_object_load): Likewise.
2692 * compile/compile-object-run.c (compile_object_run): Likewise.
2693 * compile/compile.c (append_args): Likewise.
2694 * corefile.c (specify_exec_file_hook): Likewise.
2695 * cp-support.c (make_symbol_overload_list): Likewise.
2696 * cris-tdep.c (push_stack_item): Likewise.
2697 (cris_gdbarch_init): Likewise.
2698 * ctf.c (ctf_trace_file_writer_new): Likewise.
2699 * dbxread.c (init_header_files): Likewise.
2700 (add_new_header_file): Likewise.
2701 (init_bincl_list): Likewise.
2702 (dbx_end_psymtab): Likewise.
2703 (start_psymtab): Likewise.
2704 (dbx_end_psymtab): Likewise.
2705 * dcache.c (dcache_init): Likewise.
2706 * dictionary.c (dict_create_hashed): Likewise.
2707 (dict_create_hashed_expandable): Likewise.
2708 (dict_create_linear): Likewise.
2709 (dict_create_linear_expandable): Likewise.
2710 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2711 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2712 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2713 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2714 (decode_frame_entry_1): Likewise.
2715 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2716 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2717 * dwarf2read.c (dwarf2_has_info): Likewise.
2718 (create_signatured_type_table_from_index): Likewise.
2719 (dwarf2_read_index): Likewise.
2720 (dw2_get_file_names_reader): Likewise.
2721 (create_all_type_units): Likewise.
2722 (read_cutu_die_from_dwo): Likewise.
2723 (init_tu_and_read_dwo_dies): Likewise.
2724 (init_cutu_and_read_dies): Likewise.
2725 (create_all_comp_units): Likewise.
2726 (queue_comp_unit): Likewise.
2727 (inherit_abstract_dies): Likewise.
2728 (read_call_site_scope): Likewise.
2729 (dwarf2_add_field): Likewise.
2730 (dwarf2_add_typedef): Likewise.
2731 (dwarf2_add_member_fn): Likewise.
2732 (attr_to_dynamic_prop): Likewise.
2733 (abbrev_table_alloc_abbrev): Likewise.
2734 (abbrev_table_read_table): Likewise.
2735 (add_include_dir): Likewise.
2736 (add_file_name): Likewise.
2737 (dwarf_decode_line_header): Likewise.
2738 (dwarf2_const_value_attr): Likewise.
2739 (dwarf_alloc_block): Likewise.
2740 (parse_macro_definition): Likewise.
2741 (set_die_type): Likewise.
2742 (write_psymtabs_to_index): Likewise.
2743 (create_cus_from_index): Likewise.
2744 (dwarf2_create_include_psymtab): Likewise.
2745 (process_psymtab_comp_unit_reader): Likewise.
2746 (build_type_psymtab_dependencies): Likewise.
2747 (read_comp_units_from_section): Likewise.
2748 (compute_compunit_symtab_includes): Likewise.
2749 (create_dwo_unit_in_dwp_v1): Likewise.
2750 (create_dwo_unit_in_dwp_v2): Likewise.
2751 (read_func_scope): Likewise.
2752 (process_structure_scope): Likewise.
2753 (mark_common_block_symbol_computed): Likewise.
2754 (load_partial_dies): Likewise.
2755 (dwarf2_symbol_mark_computed): Likewise.
2756 * elfread.c (elf_symfile_segments): Likewise.
2757 (elf_read_minimal_symbols): Likewise.
2758 * environ.c (make_environ): Likewise.
2759 * eval.c (evaluate_subexp_standard): Likewise.
2760 * event-loop.c (create_file_handler): Likewise.
2761 (create_async_signal_handler): Likewise.
2762 (create_async_event_handler): Likewise.
2763 (create_timer): Likewise.
2764 * exec.c (build_section_table): Likewise.
2765 * fbsd-nat.c (fbsd_remember_child): Likewise.
2766 * fork-child.c (fork_inferior): Likewise.
2767 * frv-tdep.c (new_variant): Likewise.
2768 * gdbarch.sh (gdbarch_alloc): Likewise.
2769 (append_name): Likewise.
2770 * gdbtypes.c (rank_function): Likewise.
2771 (copy_type_recursive): Likewise.
2772 (add_dyn_prop): Likewise.
2773 * gnu-nat.c (make_proc): Likewise.
2774 (make_inf): Likewise.
2775 (gnu_write_inferior): Likewise.
2776 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2777 (build_std_type_info_type): Likewise.
2778 * guile/scm-param.c (compute_enum_list): Likewise.
2779 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2780 * guile/scm-value.c (gdbscm_value_call): Likewise.
2781 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2782 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2783 (read_unwind_info): Likewise.
2784 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2785 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2786 (call_function_by_hand_dummy): Likewise.
2787 * infcmd.c (step_once): Likewise.
2788 (finish_forward): Likewise.
2789 (attach_command): Likewise.
2790 (notice_new_inferior): Likewise.
2791 * inferior.c (add_inferior_silent): Likewise.
2792 * infrun.c (add_displaced_stepping_state): Likewise.
2793 (save_infcall_control_state): Likewise.
2794 (save_inferior_ptid): Likewise.
2795 (_initialize_infrun): Likewise.
2796 * jit.c (bfd_open_from_target_memory): Likewise.
2797 (jit_gdbarch_data_init): Likewise.
2798 * language.c (add_language): Likewise.
2799 * linespec.c (decode_line_2): Likewise.
2800 * linux-nat.c (add_to_pid_list): Likewise.
2801 (add_initial_lwp): Likewise.
2802 * linux-thread-db.c (add_thread_db_info): Likewise.
2803 (record_thread): Likewise.
2804 (info_auto_load_libthread_db): Likewise.
2805 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2806 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2807 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2808 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2809 * macrocmd.c (macro_define_command): Likewise.
2810 * macroexp.c (gather_arguments): Likewise.
2811 * macroscope.c (sal_macro_scope): Likewise.
2812 * macrotab.c (new_macro_table): Likewise.
2813 * mdebugread.c (push_parse_stack): Likewise.
2814 (parse_partial_symbols): Likewise.
2815 (parse_symbol): Likewise.
2816 (psymtab_to_symtab_1): Likewise.
2817 (new_block): Likewise.
2818 (new_psymtab): Likewise.
2819 (mdebug_build_psymtabs): Likewise.
2820 (add_pending): Likewise.
2821 (elfmdebug_build_psymtabs): Likewise.
2822 * mep-tdep.c (mep_gdbarch_init): Likewise.
2823 * mi/mi-main.c (mi_execute_command): Likewise.
2824 * mi/mi-parse.c (mi_parse_argv): Likewise.
2825 * minidebug.c (lzma_open): Likewise.
2826 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2827 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2828 * mips-tdep.c (mips_gdbarch_init): Likewise.
2829 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2830 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2831 * mt-tdep.c (mt_registers_info): Likewise.
2832 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2833 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2834 (linux_enable_pt): Likewise.
2835 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2836 (linux_xfer_osdata_processgroups): Likewise.
2837 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2838 * nto-procfs.c (procfs_meminfo): Likewise.
2839 * objc-lang.c (start_msglist): Likewise.
2840 (selectors_info): Likewise.
2841 (classes_info): Likewise.
2842 (find_methods): Likewise.
2843 * objfiles.c (allocate_objfile): Likewise.
2844 (update_section_map): Likewise.
2845 * osabi.c (gdbarch_register_osabi): Likewise.
2846 (gdbarch_register_osabi_sniffer): Likewise.
2847 * parse.c (start_arglist): Likewise.
2848 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2849 (hwdebug_insert_point): Likewise.
2850 * printcmd.c (display_command): Likewise.
2851 (ui_printf): Likewise.
2852 * procfs.c (create_procinfo): Likewise.
2853 (load_syscalls): Likewise.
2854 (proc_get_LDT_entry): Likewise.
2855 (proc_update_threads): Likewise.
2856 * prologue-value.c (make_pv_area): Likewise.
2857 (pv_area_store): Likewise.
2858 * psymtab.c (extend_psymbol_list): Likewise.
2859 (init_psymbol_list): Likewise.
2860 (allocate_psymtab): Likewise.
2861 * python/py-inferior.c (add_thread_object): Likewise.
2862 * python/py-param.c (compute_enum_values): Likewise.
2863 * python/py-value.c (valpy_call): Likewise.
2864 * python/py-varobj.c (py_varobj_iter_next): Likewise.
2865 * python/python.c (ensure_python_env): Likewise.
2866 * record-btrace.c (record_btrace_start_replaying): Likewise.
2867 * record-full.c (record_full_reg_alloc): Likewise.
2868 (record_full_mem_alloc): Likewise.
2869 (record_full_end_alloc): Likewise.
2870 (record_full_core_xfer_partial): Likewise.
2871 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2872 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2873 * remote-notif.c (remote_notif_state_allocate): Likewise.
2874 * remote.c (demand_private_info): Likewise.
2875 (remote_notif_stop_alloc_reply): Likewise.
2876 (remote_enable_btrace): Likewise.
2877 * reverse.c (save_bookmark_command): Likewise.
2878 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2879 * rx-tdep.c (rx_gdbarch_init): Likewise.
2880 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2881 * ser-go32.c (dos_get_tty_state): Likewise.
2882 (dos_copy_tty_state): Likewise.
2883 * ser-mingw.c (ser_windows_open): Likewise.
2884 (ser_console_wait_handle): Likewise.
2885 (ser_console_get_tty_state): Likewise.
2886 (make_pipe_state): Likewise.
2887 (net_windows_open): Likewise.
2888 * ser-unix.c (hardwire_get_tty_state): Likewise.
2889 (hardwire_copy_tty_state): Likewise.
2890 * solib-aix.c (solib_aix_new_lm_info): Likewise.
2891 * solib-dsbt.c (dsbt_current_sos): Likewise.
2892 (dsbt_relocate_main_executable): Likewise.
2893 * solib-frv.c (frv_current_sos): Likewise.
2894 (frv_relocate_main_executable): Likewise.
2895 * solib-spu.c (spu_bfd_fopen): Likewise.
2896 * solib-svr4.c (lm_info_read): Likewise.
2897 (svr4_copy_library_list): Likewise.
2898 (svr4_default_sos): Likewise.
2899 * source.c (find_source_lines): Likewise.
2900 (line_info): Likewise.
2901 (add_substitute_path_rule): Likewise.
2902 * spu-linux-nat.c (spu_bfd_open): Likewise.
2903 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2904 * stabsread.c (dbx_lookup_type): Likewise.
2905 (read_type): Likewise.
2906 (read_member_functions): Likewise.
2907 (read_struct_fields): Likewise.
2908 (read_baseclasses): Likewise.
2909 (read_args): Likewise.
2910 (_initialize_stabsread): Likewise.
2911 * stack.c (func_command): Likewise.
2912 * stap-probe.c (handle_stap_probe): Likewise.
2913 * symfile.c (addrs_section_sort): Likewise.
2914 (addr_info_make_relative): Likewise.
2915 (load_section_callback): Likewise.
2916 (add_symbol_file_command): Likewise.
2917 (init_filename_language_table): Likewise.
2918 * symtab.c (create_filename_seen_cache): Likewise.
2919 (sort_search_symbols_remove_dups): Likewise.
2920 (search_symbols): Likewise.
2921 * target.c (make_cleanup_restore_target_terminal): Likewise.
2922 * thread.c (new_thread): Likewise.
2923 (enable_thread_stack_temporaries): Likewise.
2924 (make_cleanup_restore_current_thread): Likewise.
2925 (thread_apply_all_command): Likewise.
2926 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2927 * top.c (gdb_readline_wrapper): Likewise.
2928 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2929 * tracepoint.c (trace_find_line_command): Likewise.
2930 (all_tracepoint_actions_and_cleanup): Likewise.
2931 (make_cleanup_restore_current_traceframe): Likewise.
2932 (get_uploaded_tp): Likewise.
2933 (get_uploaded_tsv): Likewise.
2934 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2935 (tui_alloc_win_info): Likewise.
2936 (tui_alloc_content): Likewise.
2937 (tui_add_content_elements): Likewise.
2938 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
2939 (tui_set_disassem_content): Likewise.
2940 * ui-file.c (ui_file_new): Likewise.
2941 (stdio_file_new): Likewise.
2942 (tee_file_new): Likewise.
2943 * utils.c (make_cleanup_restore_integer): Likewise.
2944 (add_internal_problem_command): Likewise.
2945 * v850-tdep.c (v850_gdbarch_init): Likewise.
2946 * valops.c (find_oload_champ): Likewise.
2947 * value.c (allocate_value_lazy): Likewise.
2948 (record_latest_value): Likewise.
2949 (create_internalvar): Likewise.
2950 * varobj.c (install_variable): Likewise.
2951 (new_variable): Likewise.
2952 (new_root_variable): Likewise.
2954 (_initialize_varobj): Likewise.
2955 * windows-nat.c (windows_make_so): Likewise.
2956 * x86-nat.c (x86_add_process): Likewise.
2957 * xcoffread.c (arrange_linetable): Likewise.
2958 (allocate_include_entry): Likewise.
2959 (process_linenos): Likewise.
2960 (SYMBOL_DUP): Likewise.
2961 (xcoff_start_psymtab): Likewise.
2962 (xcoff_end_psymtab): Likewise.
2963 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
2964 * xtensa-tdep.c (xtensa_register_type): Likewise.
2965 * gdbarch.c: Regenerate.
2966 * gdbarch.h: Regenerate.
2968 2015-08-25 Don Breazeal <donb@codesourcery.com>
2970 * infrun.c (follow_exec): Re-order operations for
2971 handling follow-exec-mode "new".
2972 (handle_inferior_event_1): Assign ecs->event_thread
2973 to the current thread.
2974 * remote.c (get_remote_arch_state): Add an assertion.
2976 2015-08-26 Pedro Alves <palves@redhat.com>
2978 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
2980 2015-08-25 Pedro Alves <palves@redhat.com>
2983 * defs.h (maybe_quit): Declare.
2984 (QUIT): Now calls maybe_quit.
2985 * event-loop.c (clear_async_signal_handler)
2986 (async_signal_handler_is_marked): New functions.
2987 * event-loop.h (async_signal_handler_is_marked)
2988 (clear_async_signal_handler): New declarations.
2989 * remote.c (remote_check_pending_interrupt): New function.
2990 (interrupt_query): Use make_cleanup_restore_target_terminal. No
2991 longer check whether the target is async. If waiting for a stop
2992 reply, and a Ctrl-C as been sent to the target, offer to
2993 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
2994 Otherwise do not disconnect and throw a quit.
2995 (_initialize_remote): Install remote_check_pending_interrupt as
2996 to_check_pending_interrupt.
2997 * target.c (target_check_pending_interrupt): New function.
2998 * target.h (struct target_ops) <to_check_pending_interrupt>: New
3000 (target_check_pending_interrupt): New declaration.
3001 * utils.c (maybe_quit): New function.
3002 * target-delegates.c: Regenerate.
3004 2015-08-25 Yao Qi <yao.qi@linaro.org>
3006 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
3007 Rename local variable pid to tid, and get lwpid of lwp. Update
3010 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
3012 * ada-lang.c (ada_read_var_value): Add a var_block argument
3013 and pass it to default_read_var_value.
3014 * block.c (block_static_link): New accessor.
3015 * block.h (block_static_link): Declare it.
3016 * buildsym.c (finish_block_internal): Add a static_link
3017 argument. If there is a static link, associate it to the new
3019 (finish_block): Add a static link argument and pass it to
3020 finish_block_internal.
3021 (end_symtab_get_static_block): Update calls to finish_block and
3022 to finish_block_internal.
3023 (end_symtab_with_blockvector): Update call to
3024 finish_block_internal.
3025 * buildsym.h: Forward-declare struct dynamic_prop.
3026 (struct context_stack): Add a static_link field.
3027 (finish_block): Add a static link argument.
3028 * c-exp.y: Remove an obsolete comment (evaluation of variables
3029 already start from the selected frame, and now they climb *up*
3030 the call stack) and propagate the block information to the
3031 produced expression.
3032 * d-exp.y: Likewise.
3033 * f-exp.y: Likewise.
3034 * go-exp.y: Likewise.
3035 * jv-exp.y: Likewise.
3036 * m2-exp.y: Likewise.
3037 * p-exp.y: Likewise.
3038 * coffread.c (coff_symtab_read): Update calls to finish_block.
3039 * dbxread.c (process_one_symbol): Likewise.
3040 * xcoffread.c (read_xcoff_symtab): Likewise.
3041 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
3042 "sym" parameter to struct block_symbol, update its uses and pass
3043 its block to calls to read_var_value.
3044 (convert_symbol_sym): Update the calls to convert_one_symbol.
3045 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
3046 call to read_var_value.
3047 * dwarf2loc.c (block_op_get_frame_base): New.
3048 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3049 get_frame_base method.
3050 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3051 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3052 instead of the selected frame in order to evaluate the
3054 (dwarf2_evaluate_property): Add a frame argument. Update call
3055 to dwarf2_locexpr_baton_eval to provide a frame in available and
3056 to handle the absence of address stack.
3057 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3058 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3060 (read_func_scope): Record any available static link description.
3061 Update call to finish_block.
3062 (read_lexical_block_scope): Update call to finish_block.
3063 * findvar.c (follow_static_link): New.
3064 (get_hosting_frame): New.
3065 (default_read_var_value): Add a var_block argument. Use
3066 get_hosting_frame to handle non-local references.
3067 (read_var_value): Add a var_block argument and pass it to the
3068 LA_READ_VAR_VALUE method.
3069 * gdbtypes.c (resolve_dynamic_range): Update calls to
3070 dwarf2_evaluate_property.
3071 (resolve_dynamic_type_internal): Likewise.
3072 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3073 read_var_value, passing it the block coming from symbol lookup.
3074 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3075 read_var_value (TODO).
3076 * infcmd.c (finish_command_continuation): Update call to
3077 read_var_value, passing it the block coming from symbol lookup.
3078 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3079 * language.h (struct language_defn): Add a var_block argument to
3080 the LA_READ_VAR_VALUE method.
3081 * objfiles.c (struct static_link_htab_entry): New.
3082 (static_link_htab_entry_hash): New.
3083 (static_link_htab_entry_eq): New.
3084 (objfile_register_static_link): New.
3085 (objfile_lookup_static_link): New.
3086 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3087 * objfiles.h: Include hashtab.h.
3088 (struct objfile): Add a static_links field.
3089 (objfile_register_static_link): New.
3090 (objfile_lookup_static_link): New.
3091 * printcmd.c (print_variable_and_value): Update call to
3093 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3094 * python/py-frame.c (frapy_read_var): Update call to
3095 read_var_value, passing it the block coming from symbol lookup.
3096 * python/py-framefilter.c (extract_sym): Add a sym_block
3097 parameter and set the pointed value to NULL (TODO).
3098 (enumerate_args): Update call to extract_sym.
3099 (enumerate_locals): Update calls to extract_sym and to
3101 * python/py-symbol.c (sympy_value): Update call to
3102 read_var_value (TODO).
3103 * stack.c (read_frame_local): Update call to read_var_value.
3104 (read_frame_arg): Likewise.
3105 (return_command): Likewise.
3106 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3108 (struct symbol): Add a block field.
3109 (SYMBOL_BLOCK): New accessor.
3110 * valops.c (value_of_variable): Remove frame/block handling and
3111 pass the block argument to read_var_value, which does this job
3113 (value_struct_elt_for_reference): Update calls to
3115 (value_of_this): Pass the block found to read_var_value.
3116 * value.h (read_var_value): Add a var_block argument.
3117 (default_read_var_value): Likewise.
3119 2015-08-25 Yao Qi <yao.qi@linaro.org>
3121 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3122 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3123 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3125 2015-08-25 Yao Qi <yao.qi@linaro.org>
3127 * Makefile.in (aarch64-liunx.o): New rule.
3128 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3129 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3130 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3131 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3133 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3134 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3135 * nat/aarch64-linux.c: New file.
3136 * nat/aarch64-linux.h: New file.
3138 2015-08-25 Yao Qi <yao.qi@linaro.org>
3140 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3141 lwp_arch_private_info and ptid_of_lwp.
3143 2015-08-25 Yao Qi <yao.qi@linaro.org>
3145 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3146 Move it to nat/aarch64-linux-hw-point.c.
3147 (debug_reg_change_callback): Likewise.
3148 (aarch64_notify_debug_reg_change): :Likewise.
3149 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3150 (aarch64_dr_update_callback_param): New.
3151 (debug_reg_change_callback): New function.
3152 (aarch64_notify_debug_reg_change): Likewise.
3153 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3154 Remove the declaration.
3156 2015-08-25 Yao Qi <yao.qi@linaro.org>
3158 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3159 Call current_lwp_ptid.
3161 2015-08-25 Yao Qi <yao.qi@linaro.org>
3163 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3166 2015-08-25 Yao Qi <yao.qi@linaro.org>
3168 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3169 ptid_get_pid rather than ptid_get_lwp.
3171 2015-08-24 Pedro Alves <palves@redhat.com>
3173 * NEWS (New commands): Mention set/show remote
3174 multiprocess-extensions-packet.
3175 * remote.c (remote_query_supported): Only tell the server to use
3176 the multiprocess extensions if the user hasn't force-disabled them
3177 with "set remote multiprocess-extensions-packet off".
3179 2015-08-24 Pedro Alves <palves@redhat.com>
3181 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3182 1029a8112290f6eee9d7878a391c49db42c999bd.
3183 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3185 * gnulib/import/Makefile.am: Update.
3186 * gnulib/import/Makefile.in: Update.
3187 * gnulib/import/alloca.in.h: Update.
3188 * gnulib/import/basename-lgpl.c: Update.
3189 * gnulib/import/canonicalize-lgpl.c: Update.
3190 * gnulib/import/config.charset: Update.
3191 * gnulib/import/dirent.in.h: Update.
3192 * gnulib/import/dirfd.c: Update.
3193 * gnulib/import/dirname-lgpl.c: Update.
3194 * gnulib/import/dirname.h: Update.
3195 * gnulib/import/dosname.h: Update.
3196 * gnulib/import/errno.in.h: Update.
3197 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3198 * gnulib/import/extra/snippet/c++defs.h: Update.
3199 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3200 * gnulib/import/extra/update-copyright: Update.
3201 * gnulib/import/float+.h: Update.
3202 * gnulib/import/float.c: Update.
3203 * gnulib/import/float.in.h: Update.
3204 * gnulib/import/fnmatch.c: Update.
3205 * gnulib/import/fnmatch.in.h: Update.
3206 * gnulib/import/fnmatch_loop.c: Update.
3207 * gnulib/import/fpucw.h: Update.
3208 * gnulib/import/frexp.c: Update.
3209 * gnulib/import/frexpl.c: Update.
3210 * gnulib/import/gettimeofday.c: Update.
3211 * gnulib/import/inttypes.in.h: Update.
3212 * gnulib/import/isnan.c: Update.
3213 * gnulib/import/isnand-nolibm.h: Update.
3214 * gnulib/import/isnand.c: Update.
3215 * gnulib/import/isnanl-nolibm.h: Update.
3216 * gnulib/import/isnanl.c: Update.
3217 * gnulib/import/itold.c: Update.
3218 * gnulib/import/localcharset.c: Update.
3219 * gnulib/import/localcharset.h: Update.
3220 * gnulib/import/lstat.c: Update.
3221 * gnulib/import/m4/00gnulib.m4: Update.
3222 * gnulib/import/m4/absolute-header.m4: Update.
3223 * gnulib/import/m4/alloca.m4: Update.
3224 * gnulib/import/m4/canonicalize.m4: Update.
3225 * gnulib/import/m4/codeset.m4: Update.
3226 * gnulib/import/m4/configmake.m4: Update.
3227 * gnulib/import/m4/dirent_h.m4: Update.
3228 * gnulib/import/m4/dirfd.m4: Update.
3229 * gnulib/import/m4/dirname.m4: Update.
3230 * gnulib/import/m4/double-slash-root.m4: Update.
3231 * gnulib/import/m4/eealloc.m4: Update.
3232 * gnulib/import/m4/errno_h.m4: Update.
3233 * gnulib/import/m4/exponentd.m4: Update.
3234 * gnulib/import/m4/exponentl.m4: Update.
3235 * gnulib/import/m4/extensions.m4: Update.
3236 * gnulib/import/m4/extern-inline.m4: Update.
3237 * gnulib/import/m4/fcntl-o.m4: Update.
3238 * gnulib/import/m4/float_h.m4: Update.
3239 * gnulib/import/m4/fnmatch.m4: Update.
3240 * gnulib/import/m4/fpieee.m4: Update.
3241 * gnulib/import/m4/frexp.m4: Update.
3242 * gnulib/import/m4/frexpl.m4: Update.
3243 * gnulib/import/m4/gettimeofday.m4: Update.
3244 * gnulib/import/m4/glibc21.m4: Update.
3245 * gnulib/import/m4/gnulib-cache.m4: Update.
3246 * gnulib/import/m4/gnulib-common.m4: Update.
3247 * gnulib/import/m4/gnulib-comp.m4: Update.
3248 * gnulib/import/m4/gnulib-tool.m4: Update.
3249 * gnulib/import/m4/include_next.m4: Update.
3250 * gnulib/import/m4/inttypes-pri.m4: Update.
3251 * gnulib/import/m4/inttypes.m4: Update.
3252 * gnulib/import/m4/isnand.m4: Update.
3253 * gnulib/import/m4/isnanl.m4: Update.
3254 * gnulib/import/m4/largefile.m4: Update.
3255 * gnulib/import/m4/localcharset.m4: Update.
3256 * gnulib/import/m4/locale-fr.m4: Update.
3257 * gnulib/import/m4/locale-ja.m4: Update.
3258 * gnulib/import/m4/locale-zh.m4: Update.
3259 * gnulib/import/m4/longlong.m4: Update.
3260 * gnulib/import/m4/lstat.m4: Update.
3261 * gnulib/import/m4/malloc.m4: Update.
3262 * gnulib/import/m4/malloca.m4: Update.
3263 * gnulib/import/m4/math_h.m4: Update.
3264 * gnulib/import/m4/mbrtowc.m4: Update.
3265 * gnulib/import/m4/mbsinit.m4: Update.
3266 * gnulib/import/m4/mbsrtowcs.m4: Update.
3267 * gnulib/import/m4/mbstate_t.m4: Update.
3268 * gnulib/import/m4/memchr.m4: Update.
3269 * gnulib/import/m4/memmem.m4: Update.
3270 * gnulib/import/m4/mmap-anon.m4: Update.
3271 * gnulib/import/m4/multiarch.m4: Update.
3272 * gnulib/import/m4/nocrash.m4: Update.
3273 * gnulib/import/m4/off_t.m4: Update.
3274 * gnulib/import/m4/pathmax.m4: Update.
3275 * gnulib/import/m4/readlink.m4: Update.
3276 * gnulib/import/m4/rename.m4: Update.
3277 * gnulib/import/m4/rmdir.m4: Update.
3278 * gnulib/import/m4/ssize_t.m4: Update.
3279 * gnulib/import/m4/stat.m4: Update.
3280 * gnulib/import/m4/stdbool.m4: Update.
3281 * gnulib/import/m4/stddef_h.m4: Update.
3282 * gnulib/import/m4/stdint.m4: Update.
3283 * gnulib/import/m4/stdio_h.m4: Update.
3284 * gnulib/import/m4/stdlib_h.m4: Update.
3285 * gnulib/import/m4/string_h.m4: Update.
3286 * gnulib/import/m4/strstr.m4: Update.
3287 * gnulib/import/m4/strtok_r.m4: Update.
3288 * gnulib/import/m4/sys_socket_h.m4: Update.
3289 * gnulib/import/m4/sys_stat_h.m4: Update.
3290 * gnulib/import/m4/sys_time_h.m4: Update.
3291 * gnulib/import/m4/sys_types_h.m4: Update.
3292 * gnulib/import/m4/time_h.m4: Update.
3293 * gnulib/import/m4/unistd_h.m4: Update.
3294 * gnulib/import/m4/warn-on-use.m4: Update.
3295 * gnulib/import/m4/wchar_h.m4: Update.
3296 * gnulib/import/m4/wchar_t.m4: Update.
3297 * gnulib/import/m4/wctype_h.m4: Update.
3298 * gnulib/import/m4/wint_t.m4: Update.
3299 * gnulib/import/malloc.c: Update.
3300 * gnulib/import/malloca.c: Update.
3301 * gnulib/import/malloca.h: Update.
3302 * gnulib/import/math.in.h: Update.
3303 * gnulib/import/mbrtowc.c: Update.
3304 * gnulib/import/mbsinit.c: Update.
3305 * gnulib/import/mbsrtowcs-impl.h: Update.
3306 * gnulib/import/mbsrtowcs-state.c: Update.
3307 * gnulib/import/mbsrtowcs.c: Update.
3308 * gnulib/import/memchr.c: Update.
3309 * gnulib/import/memmem.c: Update.
3310 * gnulib/import/pathmax.h: Update.
3311 * gnulib/import/readlink.c: Update.
3312 * gnulib/import/ref-add.sin: Update.
3313 * gnulib/import/ref-del.sin: Update.
3314 * gnulib/import/rename.c: Update.
3315 * gnulib/import/rmdir.c: Update.
3316 * gnulib/import/same-inode.h: Update.
3317 * gnulib/import/stat.c: Update.
3318 * gnulib/import/stdbool.in.h: Update.
3319 * gnulib/import/stddef.in.h: Update.
3320 * gnulib/import/stdint.in.h: Update.
3321 * gnulib/import/stdio.c: Update.
3322 * gnulib/import/stdio.in.h: Update.
3323 * gnulib/import/stdlib.in.h: Update.
3324 * gnulib/import/str-two-way.h: Update.
3325 * gnulib/import/streq.h: Update.
3326 * gnulib/import/string.in.h: Update.
3327 * gnulib/import/stripslash.c: Update.
3328 * gnulib/import/strnlen1.c: Update.
3329 * gnulib/import/strnlen1.h: Update.
3330 * gnulib/import/strstr.c: Update.
3331 * gnulib/import/strtok_r.c: Update.
3332 * gnulib/import/sys_stat.in.h: Update.
3333 * gnulib/import/sys_time.in.h: Update.
3334 * gnulib/import/sys_types.in.h: Update.
3335 * gnulib/import/time.in.h: Update.
3336 * gnulib/import/unistd.in.h: Update.
3337 * gnulib/import/verify.h: Update.
3338 * gnulib/import/wchar.in.h: Update.
3339 * gnulib/import/wctype.in.h: Update.
3340 * gnulib/import/gettimeofday.c: New file.
3341 * gnulib/import/m4/absolute-header.m4: New file.
3342 * gnulib/import/m4/gettimeofday.m4: New file.
3343 * gnulib/import/m4/sys_socket_h.m4: New file.
3344 * gnulib/import/m4/sys_time_h.m4: New file.
3345 * gnulib/import/stdio.c: Delete file.
3346 * gnulib/import/sys_time.in.h: New file.
3348 2015-08-24 Pedro Alves <palves@redhat.com>
3350 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3351 * common/gdb_sys_time.h: New file.
3352 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3353 * gdb_select.h: Likewise.
3354 * gdb_usleep.c: Likewise.
3355 * maint.c: Likewise.
3356 * mi/mi-main.c: Likewise.
3357 * mi/mi-parse.h: Likewise.
3358 * remote-fileio.c: Likewise.
3359 * remote-m32r-sdi.c: Likewise.
3360 * remote.c: Likewise.
3361 * ser-base.c: Likewise.
3362 * ser-pipe.c: Likewise.
3363 * ser-tcp.c: Likewise.
3364 * ser-unix.c: Likewise.
3365 * symfile.c: Likewise.
3366 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3367 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3368 * utils.c: Likewise.
3370 2015-08-24 Pedro Alves <palves@redhat.com>
3372 * NEWS: Mention removed support for the various ROM monitors.
3373 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3374 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3375 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3377 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3379 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3380 dsrec.o from gdb_target_obs.
3381 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3382 from gdb_target_obs.
3383 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3385 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3386 dink32-rom.o from gdb_target_obs.
3387 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3388 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3389 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3390 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3392 2015-08-21 Pedro Alves <palves@redhat.com>
3394 * frame.c (null_frame_id): Explicitly zero-initialize.
3396 2015-08-21 Tom Tromey <tromey@redhat.com>
3398 * dwarf2read.c (struct dwarf2_section_info): Rename field
3399 'asection' to 'section'.
3400 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3401 (dwarf2_locate_sections, dwarf2_locate_sections)
3402 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3403 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3404 (dwarf2_locate_v2_dwp_sections): Adjust.
3406 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3408 * top.h (gdb_in_secondary_prompt_p): Declare.
3409 * top.c (gdb_secondary_prompt_depth): Define.
3410 (gdb_in_secondary_prompt_p): Define.
3411 (gdb_readline_wrapper_cleanup): Decrement
3412 gdb_secondary_prompt_depth.
3413 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3414 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3415 are in a secondary prompt.
3417 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3419 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3422 2015-08-21 Gary Benson <gbenson@redhat.com>
3424 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3426 2015-08-21 Gary Benson <gbenson@redhat.com>
3428 * target.h (struct target_ops) <to_fileio_open>: New argument
3429 warn_if_slow. Update comment. All implementations updated.
3430 (target_fileio_open_warn_if_slow): New declaration.
3431 * target.c (target_fileio_open): Renamed as...
3432 (target_fileio_open_1): ...this. New argument warn_if_slow.
3433 Pass warn_if_slow to implementation. Update debug printing.
3434 (target_fileio_open): New function.
3435 (target_fileio_open_warn_if_slow): Likewise.
3436 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3437 target_fileio_open_warn_if_slow.
3439 2015-08-21 Gary Benson <gbenson@redhat.com>
3441 * nat/linux-namespaces.c (linux_mntns_access_fs):
3442 Do not overwrite old_chain.
3444 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3446 * arch/xtensa.h: New file.
3447 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3448 (ps_get_thread_area): New function.
3449 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3450 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3451 * xtensa-tdep.c (osabi.h): New #include.
3452 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3453 xtensa-specific hooks.
3454 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3455 member and move the structure to arch/xtensa.h.
3457 2015-08-21 Pedro Alves <palves@redhat.com>
3459 * remote.c (struct readahead_cache): New.
3460 (struct remote_state) <readahead_cache>: New field.
3461 (remote_open_1): Invalidate the cache.
3462 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3464 (remote_hostio_pwrite): Invalidate the readahead cache.
3465 (remote_hostio_pread): Rename to ...
3466 (remote_hostio_pread_vFile): ... this.
3467 (remote_hostio_pread_from_cache): New function.
3468 (remote_hostio_pread): Reimplement.
3469 (remote_hostio_close): Invalidate the readahead cache.
3471 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3474 * procfs.c: Include "filestuff.h".
3476 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3478 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3480 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3481 cur_line or curch, instead call wmove().
3482 (init_win_info) [CMD_WIN]: Likewise.
3483 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3484 instead call getcury().
3485 (tui_redisplay_readline): Don't set cur_line or curch.
3486 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3488 (tui_cont_sig): Remove call to wmove.
3489 (tui_getc): Don't read cur_line or curch, instead call getcury()
3490 or getyx(). Don't set curch.
3491 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3492 set cur_line or curch. Always move cursor to (0,0).
3494 2015-08-20 Pedro Alves <palves@redhat.com>
3496 * infrun.c (print_target_wait_results): Make extern.
3497 * infrun.h (print_target_wait_results): Declare.
3498 * remote.c (set_stop_requested_callback): Delete.
3499 (process_initial_stop_replies): New function.
3500 (remote_start_remote): Use it.
3501 (stop_reply_queue_length): New function.
3503 2015-08-20 Pedro Alves <palves@redhat.com>
3505 * dwarf2read.c (process_full_comp_unit): To tell whether
3506 start_subfile managed to deduce a language, test for
3507 language_unknown instead of language_c.
3509 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3511 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3514 2015-08-19 Kevin Buettner <kevinb@redhat.com>
3516 * dwarf2read.c (dwarf2_string_attr): New function.
3517 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3518 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3519 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3520 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3521 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3523 2015-08-18 Doug Evans <dje@google.com>
3524 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3527 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3529 * mi/mi-out.c: #include "vec.h".
3530 (ui_filep): New type.
3531 (DEV_VEC_P (ui_filep)): New type.
3532 (struct ui_out_data) <buffer, original_buffer>: Delete.
3533 (struct ui_out_data) <streams>: New member.
3534 (mi_ui_out_impl): Add data_destroy field.
3535 (mi_field_string, mi_field_fmt): Update.
3536 (mi_flush, mi_redirect, field_separator): Update.
3537 (mi_open, mi_close): Update.
3538 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3539 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3540 (mi_out_new): Call mi_out_data_ctor.
3542 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3544 * remote.c (strprefix): New.
3545 (remote_parse_stop_reply): Use strprefix instead of strncmp
3546 to ensure exact match of keyword.
3548 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3550 * gdb_bfd.c (debug_bfd_cache): New variable.
3551 (show_bfd_cache_debug): New function.
3552 (gdb_bfd_open): Add debug logging.
3553 (gdb_bfd_ref): Likewise.
3554 (gdb_bfd_unref): Likewise.
3555 (_initialize_gdb_bfd): Add new set/show command.
3556 * NEWS: Mention new command.
3558 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3560 * gdb_bfd.c (bfd_sharing): New variable.
3561 (show_bfd_sharing): New function.
3562 (gdb_bfd_open): Check bfd_sharing variable.
3563 (_initialize_gdb_bfd): Add new set/show command.
3564 * NEWS: Mention new command.
3566 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3568 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3570 (struct gdb_bfd_cache_search): Likewise.
3571 (eq_bfd): Compare the size, inode, and device id fields.
3572 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3573 (gdb_bfd_ref): Likewise.
3574 (gdb_bfd_unref): Likewise.
3576 2015-08-18 Pedro Alves <palves@redhat.com>
3578 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3579 target implements to_always_non_stop_p, call it.
3580 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3581 (x86_linux_create_target): Install it as to_always_non_stop_p
3584 2015-08-17 Doug Evans <dje@google.com>
3586 * ui-out.c (default_ui_out_impl): Add comment.
3588 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3590 * d-exp.y (type_aggregate_p): New function.
3591 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3592 (classify_inner_name): Likewise.
3593 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3595 2015-08-15 Doug Evans <xdje42@gmail.com>
3597 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3599 (add_psymbol_to_list): Ditto.
3601 2015-08-15 Doug Evans <xdje42@gmail.com>
3603 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3604 updated. Call end_psymtab_common.
3605 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3607 (build_type_psymtabs_reader): Ditto.
3608 * psympriv.h (sort_pst_symbols): Delete.
3609 (end_psymtab_common): Declare.
3610 * psymtab.c (sort_pst_symbols): Make static.
3611 (end_psymtab_common): New function.
3612 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3614 2015-08-15 Doug Evans <xdje42@gmail.com>
3616 * defs.h (LANGUAGE_BITS): Define.
3617 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3618 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3619 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3620 (minimal_symbol_type): Add nr_minsym_types.
3621 (MINSYM_TYPE_BITS): Define.
3622 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3623 (domain_enum_tag): Add NR_DOMAINS.
3624 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3625 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3627 2015-08-15 Doug Evans <xdje42@gmail.com>
3629 * objfiles.h: Whitespace cleanup.
3630 * psympriv.h: Whitespace cleanup.
3631 * psymtab.c: Whitespace/coding convention cleanup.
3633 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3635 * inferior.c (detach_inferior_command): Don't call
3636 any_thread_of_process when pid is 0.
3637 (kill_inferior_command): Likewise.
3639 2015-08-14 Doug Evans <xdje42@gmail.com>
3642 * NEWS: Document new /s modifier for the disassemble command.
3643 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3644 (_initialize_cli_cmds): Update online docs of disassemble command.
3645 * disasm.c: #include "source.h".
3646 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3648 (dis_line_entry): New struct.
3649 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3650 (allocate_dis_line_table): New functions.
3651 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3652 (dump_insns): New arg end_pc. All callers updated.
3653 (do_mixed_source_and_assembly_deprecated): Renamed from
3654 do_mixed_source_and_assembly. All callers updated.
3655 (do_mixed_source_and_assembly): New function.
3656 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3657 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3658 DISASSEMBLY_SOURCE. All uses updated.
3659 (DISASSEMBLY_SOURCE): New macro.
3660 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3662 2015-08-14 Keith Seitz <keiths@redhat.com>
3664 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3665 `typename' to `type_name' to avoid C++ reserved word.
3667 2015-08-14 Keith Seitz <keiths@redhat.com>
3669 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3670 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3673 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3675 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3676 xstrprintf instead of malloc and sprintf.
3677 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3678 (lex_one_token): Likewise.
3680 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3682 * solib-svr4.c (read_program_header): Add base_addr argument to
3683 report the runtime address of the segment.
3684 (find_program_interpreter): Update read_program_header call to pass
3685 a NULL pointer for the new argument.
3686 (scan_dyntag): Add ptr_addr argument to report the runtime address
3688 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3689 read_program_header to get the base address of the dynamic segment.
3690 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3691 read_program_header.
3692 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3694 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3696 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3698 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3700 * d-exp.y (%union): Add voidval.
3701 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3702 name in the lexing stage.
3703 (PostfixExpression): Move symbol completion handling in grammar here
3704 from PrimaryExpression.
3705 (PrimaryExpression): Move routines to handle resolving identifier
3706 tokens in the grammar here from push_expression_name.
3707 (IdentifierExp): Remove the handling of alternating '.' and identifier
3709 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3710 (BasicType): Remove C-style typename rules.
3711 (d_type_from_name, d_module_from_name, push_variable)
3712 (push_fieldnames, push_type_name, push_module_name)
3713 (push_expression_name): Remove.
3714 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3715 (token_and_value): New type.
3716 (token_fifo, popping, name_obstack): New globals.
3717 (classify_name): New function.
3718 (classify_inner_name): Likewise.
3720 (d_parse): Initialize token_fifo, popping and name_obstack.
3722 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3724 * Makefile.in (SFILES): Add d-namespace.c.
3725 (COMMON_OBS): Add d-namespace.o.
3726 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3727 la_lookup_symbol_nonlocal callback function pointer.
3728 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3729 (d_lookup_nested_symbol): New declaration.
3730 * d-namespace.c: New file.
3732 2015-08-13 Pedro Alves <palves@redhat.com>
3734 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3735 cleanup after the decref cleanup, not before.
3737 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3739 * ada-lang.c: Include namespace.h
3740 (aux_add_nonlocal_symbols): Fix a function name in comment.
3741 (ada_add_block_renamings): New.
3742 (add_nonlocal_symbols): Add global renamings handling.
3743 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3745 (ada_add_all_symbols): ... this new function.
3746 (ada_add_block_symbols): Try to match the input name against the
3747 "using directives list", perform a recursive symbol lookup on
3748 the matched declarations.
3749 * block.h (struct block): Move the_namespace to top-level as
3750 namespace_info. Remove the language_specific field.
3751 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3752 * buildsym.h (using_directives): Rename into...
3753 (local_using_directives): ... this.
3754 (global_using_directives): New.
3755 (struct context_stack): Rename the using_directives field into
3756 local_using_directives.
3757 * buildsym.c (finish_block_internal): Deal with the proper
3758 using directives repository (local or global).
3759 (prepare_for_building): Reset local_using_directives. Assert
3760 that there is no pending global using directive.
3761 (reset_symtab_globals): Reset global_using_directives and
3762 local_using_directives.
3763 (end_symtab_get_static_block): Don't ignore symtabs that have
3764 only using directives.
3765 (push_context): Update references to local_using_directives.
3766 (buildsym_init): Do not reset using_directives.
3767 * cp-support.c: Include namespace.h.
3768 * cp-support.h (struct using_direct): Move to namespace.h.
3769 (cp_add_using_directives): Move to namespace.h.
3770 * cp-namespace.c: Include namespace.h
3771 (cp_add_using_directive): Move to namespace.c, rename it to
3772 add_using_directive, add a "using_directives" argument and use
3773 it as the pending using directives repository. All callers
3775 * dwarf2read.c (using_directives): New.
3776 (read_import_statement): Call using_directives.
3777 (read_func_scope): Update references to local_using_directives.
3778 (read_lexical_block_scope): Likewise.
3779 (read_namespace): Update the heading comment, call
3781 * namespace.h: New file.
3782 * namespace.c: New file.
3783 * Makefile.in (SFILES): Add namespace.c.
3784 (COMMON_OBS): Add namespace.o
3786 2015-08-12 Joel Brobecker <brobecker@adacore.com>
3788 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3791 2015-08-12 Keith Seitz <keiths@redhat.com>
3793 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3794 reserved C++ keyword "explicit" to "explicit_loc".
3795 * breakpoint.c (create_overlay_event_breakpoint)
3796 (create_longjmp_master_breakpoint)
3797 (create_std_terminate_master_breakpoint)
3798 (create_exception_master_breakpoint, update_static_tracepoint):
3799 Rename reserved C++ keyword "explicit" to "explicit_loc".
3800 * completer.c (collect_explicit_location_matches)
3801 (explicit_location_completer): Rename reserved C++ keyword
3802 "explicit" to "explicit_loc".
3803 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3804 (canonicalize_linespec, create_sals_line_offset)
3805 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3806 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3807 "explicit" to "explicit_loc".
3808 * location.c (struct event_location) <explicit>: Rename to
3810 (initialize_explicit_location, new_explicit_location)
3811 (explicit_location_to_string_internal, explicit_location_to_linespec):
3812 Rename reserved C++ keyword "explicit" to "explicit_loc".
3813 * location.h (explicit_location_to_string)
3814 (explicit_location_to_linespec, initialize_explicit_location)
3815 (new_explicit_location): Rename reserved C++ keyword "explicit"
3817 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3818 keyword "explicit" to "explicit_loc".
3820 2015-08-12 Keith Seitz <keiths@redhat.com>
3822 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3823 and only call decode_line_1 when it is non-NULL.
3825 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
3827 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3828 location address is not meaningful.
3829 (breakpoint_address_is_meaningful): Update comment.
3831 2015-08-11 Keith Seitz <keiths@redhat.com>
3833 * NEWS: Mention explicit locations.
3834 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3835 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3836 (_initialize_breakpoint): Update documentation for
3837 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3839 2015-08-11 Keith Seitz <keiths@redhat.com>
3841 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3842 explicit locations, options "--source", "--function",
3843 "--label", and "--line".
3845 2015-08-11 Keith Seitz <keiths@redhat.com>
3847 * completer.c: Include location.h.
3848 (enum match_type): New enum.
3849 (location_completer): Rename to ...
3850 (linespec_completer): ... this.
3851 (collect_explicit_location_matches, backup_text_ptr)
3852 (explicit_location_completer): New functions.
3853 (location_completer): "New" function; handle linespec
3854 and explicit location completions.
3855 (complete_line_internal): Remove all location completer-specific
3857 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3858 (find_toplevel_char): Export.
3859 (linespec_parse_line_offset): Export.
3860 Issue error if STRING is not numerical.
3861 (gdb_get_linespec_parser_quote_characters): New function.
3862 * linespec.h (linespec_parse_line_offset): Declare.
3863 (get_gdb_linespec_parser_quote_characters): Declare.
3864 (is_ada_operator): Declare.
3865 (find_toplevel_char): Declare.
3866 (linespec_lexer_lex_keyword): Declare.
3867 * location.c (explicit_to_event_location): New function.
3868 (explicit_location_lex_one): New function.
3869 (string_to_explicit_location): New function.
3870 (string_to_event_location): Handle explicit locations.
3871 * location.h (explicit_to_event_location): Declare.
3872 (string_to_explicit_location): Declare.
3874 2015-08-11 Keith Seitz <keiths@redhat.com>
3876 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3877 linespec into explicit location.
3878 * breakpoint.c (create_overlay_breakpoint)
3879 (create_longjmp_master_breakpoint)
3880 (create_std_terminate_master_breakpoint)
3881 (create_exception_master_breakpoint): Convert linespec into explicit
3883 (update_static_tracepoint): Convert linespec into explicit location.
3884 * linespec.c (enum offset_relative_sign, struct line_offset): Move
3886 (struct linespec) <expression, expr_pc, source_filename>
3887 <function_name, label_name, line_offset>: Replace with ...
3888 <explicit>: ... this.
3889 <is_linespec>: New member.
3890 (PARSER_EXPLICIT): New accessor macro.
3891 (undefined_label_error): New function.
3892 (source_file_not_found_error): New function.
3893 (linespec_parse_basic): The parser result is now an explicit location.
3894 Use PARSER_EXPLICIT to access it.
3895 Use undefined_label_error.
3896 (canonicalize_linespec): Convert canonical linespec into explicit
3898 Move string representation of location to explicit_location_to_linespec
3899 and use it and explicit_location_to_string to save string
3900 representations of the canonical location.
3901 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3902 explicit location. Update all references.
3903 (convert_explicit_location_to_sals): New function.
3904 (parse_linespec): Use PARSER_EXPLICIT to access the parser
3905 result's explicit location.
3906 (linespec_state_constructor): Initialize is_linespec.
3907 Use PARSER_EXPLICIT.
3908 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3910 (event_location_to_sals): For linespec locations, set is_linespec.
3911 Handle explicit locations.
3912 (decode_objc): 'ls' contains an explicit location now. Update all
3914 (symtabs_from_filename): Use source_file_not_found_error.
3915 * location.c (struct event_location.u) <explicit>: New member.
3916 (initialize_explicit_location): New function.
3917 (initialize_event_location): Initialize explicit locations.
3918 (new_explicit_location, get_explicit_location)
3919 (get_explicit_location_const): New functions.
3920 (explicit_to_string_internal): New function; most of contents moved
3921 from canonicalize_linespec.
3922 (explicit_location_to_string): New function.
3923 (explicit_location_to_linespec): New function.
3924 (copy_event_location, delete_event_location)
3925 (event_location_to_string_const, event_location_empty_p): Handle
3927 * location.h (enum offset_relative_sign, struct line_offset): Move
3928 here from linespec.h.
3929 (enum event_location_type): Add EXPLICIT_LOCATION.
3930 (struct explicit_location): New structure.
3931 (explicit_location_to_string): Declare.
3932 (explicit_location_to_linespec): Declare.
3933 (new_explicit_location, get_explicit_locationp
3934 (get_explicit_location_const, initialize_explicit_location): Declare.
3936 2015-08-11 Keith Seitz <keiths@redhat.com>
3938 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3939 linespec for stap probe to probe location.
3940 * breakpoint.c (create_longjmp_master_breakpoint)
3941 (create_exception_master_breakpoint): Likewise.
3942 (break_command_1): Remove local variable `arg_cp'.
3943 Check location type to set appropriate breakpoint ops methods.
3944 (trace_command): Likewise.
3945 * linespec.c (event_location_to_sals): Assert on probe locations.
3946 * location.c (EL_PROBE): Add macro definition.
3947 (new_probe_location, get_probe_location): New functions.
3948 (copy_event_location, delete_event_location, event_location_to_string)
3949 (string_to_event_location, event_location_empty_p): Handle probe
3951 * location.h (enum event_location_type): Add PROBE_LOCATION.
3952 (new_probe_location, get_probe_location): Declare.
3953 * probe.c (parse_probes): Assert that LOCATION is a probe location.
3954 Convert linespec into probe location.
3956 2015-08-11 Keith Seitz <keiths@redhat.com>
3958 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
3959 Convert linespec to address location.
3960 * linespec.c (canonicalize_linespec): Do not handle address
3962 (convert_address_location_to_sals): New function; contents moved
3964 (convert_linespc_to_sals): ... here.
3965 (parse_linespec): Remove address locations from linespec grammar.
3966 Remove handling of address locations.
3967 (linespec_lex_to_end): Remove handling of address linespecs.
3968 (event_location_to_sals): Handle ADDRESS_LOCATION.
3969 (linespec_expression_to_pc): Export.
3970 * linespec.h (linespec_expression_to_pc): Add declaration.
3971 * location.c (struct event_location.u) <address>: New member.
3972 (new_address_location, get_address_location): New functions.
3973 (copy_event_location, delete_event_location, event_location_to_string)
3974 (string_to_event_location, event_location_empty_p): Handle address
3976 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
3977 (new_address_location, get_address_location): Declare.
3978 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
3979 to address location.
3980 * spu-tdep.c (spu_catch_start): Likewise.
3982 2015-08-11 Keith Seitz <keiths@redhat.com>
3984 * ax-gdb.c: Include location.h.
3985 (agent_command_1) Use linespec location instead of address
3987 * break-catch-throw.c: Include location.h.
3988 (re_set_exception_catchpoint): Use linespec locations instead
3990 * breakpoint.c: Include location.h.
3991 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
3992 (create_std_terminate_master_breakpoint)
3993 (create_exception_master_breakpoint, update_breakpoints_after_exec):
3994 Use linespec location instead of address string.
3995 (print_breakpoint_location): Use locations and
3996 event_location_to_string.
3997 Print extra_string for pending locations for non-MI streams.
3998 (print_one_breakpoint_location): Use locations and
3999 event_location_to_string.
4000 (init_raw_breakpoint_without_location): Initialize b->location.
4001 (create_thread_event_breakpoint): Use linespec location instead of
4003 (init_breakpoint_sal): Likewise.
4004 Only save extra_string if it is non-NULL and not the empty string.
4005 Use event_location_to_string instead of `addr_string'.
4006 Constify `p' and `endp'.
4007 Use skip_spaces_const/skip_space_const instead of non-const versions.
4008 Copy the location into the breakpoint.
4009 If LOCATION is NULL, save the breakpoint address as a linespec location
4010 instead of an address string.
4011 (create_breakpoint_sal): Change `addr_string' parameter to a struct
4012 event_location. All uses updated.
4013 (create_breakpoints_sal): Likewise for local variable `addr_string'.
4014 (parse_breakpoint_sals): Use locations instead of address strings.
4015 Remove check for empty linespec with conditional.
4017 (decode_static_tracepoint_spec): Make argument const and update
4019 (create_breakpoint): Change `arg' to a struct event_location and
4021 Remove `copy_arg' and `addr_start'.
4022 If EXTRA_STRING is empty, set it to NULL.
4023 Don't populate `canonical' for pending breakpoints.
4024 Pass `extra_string' to find_condition_and_thread.
4025 Clear `extra_string' if `rest' was NULL.
4026 Do not error with "garbage after location" if setting a dprintf
4028 Copy the location into the breakpoint instead of an address string.
4029 (break_command_1): Use string_to_event_location and pass this to
4030 create_breakpoint instead of an address string.
4031 Check against `arg_cp' for a probe linespec.
4032 (dprintf_command): Use string_to_event_location and pass this to
4033 create_breakpoint instead of an address string.
4034 Throw an exception if no format string was specified.
4035 (print_recreate_ranged_breakpoint): Use event_location_to_string
4036 instead of address strings.
4037 (break_range_command, until_break_command)
4038 (init_ada_exception_breakpoint): Use locations instead
4040 (say_where): Print out extra_string for pending locations.
4041 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
4043 (base_breakpoint_create_sals_from_location): Use struct event_location
4044 instead of address string.
4045 Remove `addr_start' and `copy_arg' parameters.
4046 (base_breakpoint_decode_location): Use struct event_location instead of
4048 (bkpt_re_set): Use locations instead of address strings.
4049 Use event_location_empty_p to check for unset location.
4050 (bkpt_print_recreate): Use event_location_to_string instead of
4052 Print out extra_string for pending locations.
4053 (bkpt_create_sals_from_location, bkpt_decode_location)
4054 (bkpt_probe_create_sals_from_location): Use struct event_location
4055 instead of address string.
4056 (bkpt_probe_decode_location): Use struct event_location instead of
4058 (tracepoint_print_recreate): Use event_location_to_string to
4059 recreate the tracepoint.
4060 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4061 (tracepoint_probe_create_sals_from_location)
4062 (tracepoint_probe_decode_location): Use struct event_location
4063 instead of address string.
4064 (dprintf_print_recreate): Use event_location_to_string to recreate
4066 (dprintf_re_set): Remove check for valid/missing format string.
4067 (strace_marker_create_sals_from_location)
4068 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4069 (update_static_tracepoint): Use struct event_location instead of
4071 (location_to_sals): Likewise.
4072 Pass `extra_string' to find_condition_and_thread.
4073 For newly resolved pending breakpoint locations, clear the location's
4074 string representation.
4075 Assert that the breakpoint's condition string is NULL when
4076 condition_not_parsed.
4077 (breakpoint_re_set_default, create_sals_from_location_default)
4078 (decode_location_default, trace_command, ftrace_command)
4079 (strace_command, create_tracepoint_from_upload): Use locations
4080 instead of address strings.
4081 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4082 Use struct event_location instead of address string.
4084 <decode_location>: Likewise.
4085 (struct breakpoint) <addr_string>: Change to struct event_location
4086 and rename `location'.
4087 <addr_string_range_end>: Change to struct event_location and rename
4088 `location_range_end'.
4089 (create_breakpoint): Use struct event_location instead of address
4091 * cli/cli-cmds.c: Include location.h.
4092 (edit_command, list_command): Use locations instead of address strings.
4093 * elfread.c: Include location.h.
4094 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4095 * guile/scm-breakpoint.c: Include location.h.
4096 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4097 (gdbscm_register_breakpoint): Use locations instead of address
4099 * linespec.c: Include location.h.
4100 (struct ls_parser) <stream>: Change to const char *.
4101 (PARSER_STREAM): Update.
4102 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4103 keywords must be followed by whitespace.
4104 (canonicalize_linespec): Save a linespec location into `canonical'.
4105 Save a canonical linespec into `canonical'.
4106 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4108 Update function description.
4109 (linespec_parser_new): Initialize `parser'.
4110 Update initialization of parsing stream.
4111 (event_location_to_sals): New function.
4112 (decode_line_full): Change `argptr' to a struct event_location and
4113 rename it `location'.
4114 Use locations instead of address strings.
4115 Call event_location_to_sals instead of parse_linespec.
4116 (decode_line_1): Likewise.
4117 (decode_line_with_current_source, decode_line_with_last_displayed)
4118 Use locations instead of address strings.
4119 (decode_objc): Likewise.
4120 Change `argptr' to const char * and rename `arg'.
4121 (destroy_linespec_result): Delete the linespec result's location
4122 instead of freeing the address string.
4123 * linespec.h (struct linespec_result) <addr_string>: Change to
4124 struct event_location and rename to ...
4125 <location>: ... this.
4126 (decode_line_1, decode_line_full): Change `argptr' to struct
4127 event_location. All callers updated.
4128 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4129 (mi_cmd_break_insert_1): Use locations instead of address strings.
4130 Throw an error if there was "garbage" at the end of the specified
4132 * probe.c: Include location.h.
4133 (parse_probes): Change `argptr' to struct event_location.
4134 Use event locations instead of address strings.
4135 * probe.h (parse_probes): Change `argptr' to struct event_location.
4136 * python/py-breakpoint.c: Include location.h.
4137 (bppy_get_location): Constify local variable `str'.
4138 Use event_location_to_string.
4139 (bppy_init): Use locations instead of address strings.
4140 * python/py-finishbreakpoint.c: Include location.h.
4141 (bpfinishpy_init): Remove local variable `addr_str'.
4142 Use locations instead of address strings.
4143 * python/python.c: Include location.h.
4144 (gdbpy_decode_line): Use locations instead of address strings.
4145 * remote.c: Include location.h.
4146 (remote_download_tracepoint): Use locations instead of address
4148 * spu-tdep.c: Include location.h.
4149 (spu_catch_start): Remove local variable `buf'.
4150 Use locations instead of address strings.
4151 * tracepoint.c: Include location.h.
4152 (scope_info): Use locations instead of address strings.
4153 (encode_source_string): Constify parameter `src'.
4154 * tracepoint.h (encode_source_string): Likewise.
4156 2015-08-11 Keith Seitz <keiths@redhat.com>
4158 * Makefile.in (SFILES): Add location.c.
4159 (HFILES_NO_SRCDIR): Add location.h.
4160 (COMMON_OBS): Add location.o.
4161 * linespec.c (linespec_lex_to_end): New function.
4162 * linespec.h (linespec_lex_to_end): Declare.
4163 * location.c: New file.
4164 * location.h: New file.
4166 2015-08-11 Keith Seitz <keiths@redhat.com>
4168 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4169 Renamed to create_sals_from_location.
4170 <decode_linespec>: Renamed to decode_location.
4172 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4173 (create_sals_from_location_default): ... this.
4174 (addr_string_to_sals): Renamed to ...
4175 (location_to_sals): ... this.
4176 (decode_linespec_default): Renamed to ...
4177 (decode_location_default): ... this.
4178 (base_breakpoint_create_sals_from_address): Renamed to ...
4179 (base_breakpoint_create_sals_from_location): ... this.
4180 (bkpt_create_sals_from_address): Renamed to ...
4181 (bkpt_create_sals_from_location): ... this.
4182 (bkpt_decode_linespec): Renamed to ...
4183 (bkpt_decode_location): ... this.
4184 (bkpt_probe_create_sals_from_address): Renamed to ...
4185 (bkpt_probe_create_sals_from_location): ... this.
4186 (tracepoint_create_sals_from_address): Renamed to ...
4187 (tracepoint_create_sals_from_location): ... this.
4188 (tracepoint_decode_linespec): Renamed to ...
4189 (tracepoint_decode_location): ... this.
4190 (tracepoint_probe_create_sals_from_address): Renamed to ...
4191 (tracepoint_probe_create_sals_from_location): ... this.
4192 (tracepoint_probe_decode_linespec): Renamed to ...
4193 (tracepoint_probe_decode_location): ... this.
4194 (strace_marker_create_sals_from_address): Renamed to ...
4195 (strace_marker_create_sals_from_location): ... this.
4196 (decode_linespec_default): Renamed to ...
4197 (decode_location_default): ... this.
4199 2015-08-10 Doug Evans <dje@google.com>
4200 Keith Seitz <keiths@redhat.com>
4203 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4204 make_file_symbol_completion_list and made static.
4205 (make_file_symbol_completion_list): New function.
4207 2015-08-10 Joel Brobecker <brobecker@adacore.com>
4209 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4210 trailing new-line at end of warning message.
4211 (proceed): Add i18n marker to error messages.
4213 2015-08-07 Pedro Alves <palves@redhat.com>
4215 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4217 2015-08-07 Pedro Alves <palves@redhat.com>
4219 * s390-linux-tdep.c (is_non_branch_ril)
4220 (s390_displaced_step_copy_insn): New functions.
4221 (s390_displaced_step_fixup): Update comment.
4222 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4223 gdbarch_displaced_step_copy_insn hook.
4225 2015-08-07 Pedro Alves <palves@redhat.com>
4227 * infrun.c (displaced_step_prepare_throw): Return -1 if
4228 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4230 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4231 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4233 (ppc_displaced_step_copy_insn): New function.
4234 (ppc_displaced_step_fixup): Update comment.
4235 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4236 gdbarch_displaced_step_copy_insn hook.
4237 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4239 * gdbarch.h: Regenerate.
4241 2015-08-07 Pedro Alves <palves@redhat.com>
4243 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4245 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4246 Return false if dispaced stepping failed before.
4247 (resume): Pass the current inferior to
4248 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4249 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4250 displaced_stepping_failed flag, and fall back to an in-line
4253 2015-08-07 Pedro Alves <palves@redhat.com>
4255 * darwin-nat.c (darwin_stop): Rename to ...
4256 (darwin_interrupt): ... this.
4257 (_initialize_darwin_inferior): Adjust.
4258 * gnu-nat.c (gnu_stop): Delete.
4259 (gnu_target): Don't install gnu_stop.
4260 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4261 (inf_ptrace_interrupt): ... this.
4262 (inf_ptrace_target): Adjust.
4263 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4265 * linux-nat (linux_nat_stop): Rename to ...
4266 (linux_nat_interrupt): ... this.
4267 (linux_nat_stop): Reimplement.
4268 (linux_nat_add_target): Install linux_nat_interrupt.
4269 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4270 (nto_handle_sigint_twice): ... this.
4271 (nto_interrupt): Rename to ...
4272 (nto_handle_sigint): ... this. Call target_interrupt instead of
4274 (procfs_wait): Adjust.
4275 (procfs_stop): Rename to ...
4276 (procfs_interrupt): ... this.
4277 (init_procfs_targets): Adjust.
4278 * procfs.c (procfs_stop): Rename to ...
4279 (procfs_interrupt): ... this.
4280 (procfs_target): Adjust.
4281 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4282 (m32r_interrupt): ... this.
4283 (init_m32r_ops): Adjust.
4284 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4285 (gdbsim_interrupt_inferior): ... this.
4286 (gdbsim_stop): Rename to ...
4287 (gdbsim_interrupt): ... this.
4288 (gdbsim_cntrl_c): Adjust.
4289 (init_gdbsim_ops): Adjust.
4290 * remote.c (sync_remote_interrupt): Adjust comments.
4291 (remote_stop_as): Rename to ...
4292 (remote_interrupt_as): ... this.
4293 (remote_stop): Adjust comment.
4294 (remote_interrupt): New function.
4295 (init_remote_ops): Install remote_interrupt.
4296 * target.c (target_interrupt): New function.
4297 * target.h (struct target_ops) <to_interrupt>: New field.
4298 (target_interrupt): New declaration.
4299 * windows-nat.c (windows_stop): Rename to ...
4300 (windows_interrupt): ... this.
4301 * target-delegates.c: Regenerate.
4303 2015-08-07 Pedro Alves <palves@redhat.com>
4305 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4306 threads" as alternative to "switching back to stepped thread".
4308 2015-08-07 Pedro Alves <palves@redhat.com>
4310 * NEWS: Mention "maint set/show target-non-stop".
4311 * breakpoint.c (update_global_location_list): Check
4312 target_is_non_stop_p instead of non_stop.
4313 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4314 * infrun.c (show_can_use_displaced_stepping)
4315 (can_use_displaced_stepping_p, start_step_over_inferior):
4317 (internal_resume_ptid): New function.
4319 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4320 all-stop mode but the target is always in non-stop mode, start all
4321 the other threads that are implicitly resumed too.
4322 (for_each_just_stopped_thread, fetch_inferior_event)
4323 (adjust_pc_after_break, stop_all_threads): Check
4324 target_is_non_stop_p instead of non_stop.
4325 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4326 with the target always in non-stop mode.
4327 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4328 instead of non_stop.
4329 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4330 instead of non_stop.
4331 (keep_going_stepped_thread): Use internal_resume_ptid.
4332 (stop_waiting): If in all-stop mode, and the target is in non-stop
4333 mode, stop all threads.
4334 (keep_going_pass): Likewise, when starting a new in-line step-over
4336 * linux-nat.c (get_pending_status, select_event_lwp)
4337 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4338 target_is_non_stop_p instead of non_stop.
4339 (linux_nat_always_non_stop_p): New function.
4340 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4341 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4342 * target-delegates.c: Regenerate.
4343 * target.c (target_is_non_stop_p): New function.
4344 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4345 (maint_set_target_non_stop_command)
4346 (maint_show_target_non_stop_command): New functions.
4347 (_initilize_target): Install "maint set/show target-non-stop"
4349 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4350 (target_non_stop_enabled): New declaration.
4351 (target_is_non_stop_p): New declaration.
4353 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4355 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4356 has a pending status, return true.
4357 * gdbthread.h: Include target/waitstatus.h.
4358 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4359 stop_pc>: New fields.
4360 (struct thread_info) <resumed>: New field.
4361 (set_resumed): Declare.
4362 * infrun.c: Include "event-loop.h".
4363 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4364 (infrun_async): New function.
4365 (clear_step_over_info): Add debug output.
4366 (displaced_step_in_progress_any_inferior): New function.
4367 (displaced_step_fixup): New returns int.
4368 (start_step_over): Handle in-line step-overs too. Assert the
4369 thread is marked resumed.
4370 (resume_cleanups): Clear the thread's resumed flag.
4371 (resume): Set the thread's resumed flag. Return early if the
4372 thread has a pending status. Allow stepping a breakpoint with no
4374 (proceed): Adjust to check 'resumed' instead of 'executing'.
4375 (clear_proceed_status_thread): If the thread has a pending status,
4376 and that status is a finished step, discard the pending status.
4377 (clear_proceed_status): Don't clear step_over_info here.
4378 (random_pending_event_thread, do_target_wait): New functions.
4379 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4381 (wait_one): New function.
4382 (THREAD_STOPPED_BY): New macro.
4383 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4384 (thread_stopped_by_hw_breakpoint): New functions.
4385 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4387 (handle_inferior_event): Also call set_resumed(false) on all
4388 threads implicitly stopped by the event.
4389 (restart_threads, resumed_thread_with_pending_status): New
4391 (finish_step_over): If we were doing an in-line step-over before,
4392 and no longer are after trying to start a new step-over, restart
4393 all threads. If we have multiple threads with pending events,
4394 save the current event and go through the event loop again.
4395 (handle_signal_stop): Return early if finish_step_over returns
4397 <random signal>: If we get a signal while stepping over a
4398 breakpoint in-line in non-stop mode, restart all threads. Clear
4399 step_over_info before delivering the signal.
4400 (keep_going_stepped_thread): Use internal_error instead of
4401 gdb_assert. Mark the thread as resumed.
4402 (keep_going_pass_signal): Assert the thread isn't already resumed.
4403 If some other thread is doing an in-line step-over, defer the
4404 resume. If we just started a new in-line step-over, stop all
4405 threads. Don't clear step_over_info.
4406 (infrun_async_inferior_event_handler): New function.
4407 (_initialize_infrun): Create async event handler with
4408 infrun_async_inferior_event_handler as callback.
4409 (infrun_async): New declaration.
4410 * target.c (target_async): New function.
4411 * target.h (target_async): Declare macro and readd as function
4413 * target/waitstatus.h (enum target_stop_reason)
4414 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4415 * thread.c (new_thread): Clear the new waitstatus field.
4416 (set_resumed): New function.
4418 2015-08-07 Pedro Alves <palves@redhat.com>
4420 * infrun.c (keep_going_stepped_thread): New function, factored out
4422 (switch_back_to_stepped_thread): ... here.
4424 2015-08-07 Pedro Alves <palves@redhat.com>
4426 * infrun.c (currently_stepping): Extend intro comment.
4427 * target.h (target_resume): Extend intro comment.
4429 2015-08-07 Pedro Alves <palves@redhat.com>
4431 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4432 of inferior_ptid. If the stepped thread vanished, return 0
4433 instead of resuming here. Use reset_ecs. Print the prev_pc and
4434 the current stop_pc in log message. Clear trap_expected if the
4435 thread advanced. Don't pass currently_stepping to
4438 2015-08-07 Pedro Alves <palves@redhat.com>
4440 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4441 * infrun.c (struct execution_control_state): Move higher up in the
4443 (reset_ecs): New function.
4444 (start_step_over): Now returns int. Rewrite to use
4445 keep_going_pass_signal instead of manually starting a displaced step.
4446 (resume): Don't call set_running here. If displaced stepping
4447 can't start now, clear trap_expected.
4448 (find_thread_needs_step_over): Delete function.
4449 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4450 If the current thread needs a step over, push it in the step-over
4451 chain. Don't set insert breakpoints nor call resume directly
4452 here. Instead rewrite to use start_step_over and
4453 keep_going_pass_signal.
4454 (finish_step_over): New function.
4455 (handle_signal_stop): Call finish_step_over instead of
4457 (switch_back_to_stepped_thread): If the event thread needs another
4458 step-over do that first. Use start_step_over.
4459 (keep_going_pass_signal): New function, factored out from ...
4460 (keep_going): ... here.
4461 (_initialize_infrun): Comment moved here.
4462 * thread.c (set_running_thread): New function.
4463 (set_running, finish_thread_state): Use set_running_thread.
4465 2015-08-07 Pedro Alves <palves@redhat.com>
4467 * gdbthread.h (struct thread_info) <step_over_prev,
4468 step_over_next>: New fields.
4469 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4470 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4472 * infrun.c (struct displaced_step_request): Delete.
4473 (struct displaced_step_inferior_state) <step_request_queue>:
4475 (displaced_step_prepare): Assert that trap_expected is set. Use
4476 thread_step_over_chain_enqueue. Split starting a new displaced
4478 (start_step_over): ... this new function.
4479 (resume): Assert the thread isn't waiting for a step over already.
4480 (proceed): Assert the thread isn't waiting for a step over
4482 (infrun_thread_stop_requested): Adjust to remove threads from the
4483 embedded step-over chain.
4484 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4485 displaced_step_fixup.
4486 (handle_signal_stop): Call start_step_over after
4487 displaced_step_fixup.
4488 * infrun.h (step_over_queue_head): New declaration.
4489 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4490 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4491 (thread_step_over_chain_enqueue)
4492 (thread_step_over_chain_remove): New functions.
4493 (delete_thread_1): Remove thread from the step-over chain.
4495 2015-08-07 Pedro Alves <palves@redhat.com>
4497 * infrun.c (thread_still_needs_step_over): Rename to ...
4498 (thread_still_needs_step_over_bp): ... this.
4499 (enum step_over_what): New.
4500 (thread_still_needs_step_over): Reimplement.
4502 2015-08-07 Pedro Alves <palves@redhat.com>
4504 * remote.c (remote_wait_as): If not waiting for a stop reply,
4505 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4506 requested, don't block waiting forever.
4508 2015-08-07 Pedro Alves <pedro@codesourcery.com>
4510 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4511 waitstatus pointers instead of an ecs. Adjust.
4512 (handle_inferior_event): Adjust caller.
4514 2015-08-07 Pedro Alves <palves@redhat.com>
4516 * infrun.c (handle_inferior_event): If we get
4517 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4518 mode, mark all threads of the exiting process as not-executing.
4519 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4520 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4521 exiting process, if inferior_ptid still points at a process.
4522 * thread.c (struct current_thread_cleanup) <next>: New field.
4523 (current_thread_cleanup_chain): New global.
4524 (restore_current_thread_ptid_changed): New function.
4525 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4526 current_thread_cleanup_chain list.
4527 (make_cleanup_restore_current_thread): Add the cleanup data to the
4528 current_thread_cleanup_chain list.
4529 (_initialize_thread): Install restore_current_thread_ptid_changed
4530 as thread_ptid_changed observer.
4532 2015-08-07 Joel Brobecker <brobecker@adacore.com>
4534 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4535 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4536 smaller than expected.
4538 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4540 * stack.c (get_frame_language): Moved ...
4541 * frame.c (get_frame_language): ... to here.
4542 * language.h (get_frame_language): Declaration moved to frame.h.
4543 * frame.h: Add language.h include, for language enum.
4544 (get_frame_language): Declaration moved from language.h.
4545 * language.c: Add frame.h include.
4546 * top.c: Add frame.h include.
4547 * symtab.h (struct obj_section): Declare.
4548 (struct cmd_list_element): Declare.
4550 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4552 * language.c (show_language_command): Find selected frame before
4553 asking for the language of that frame.
4554 (set_language_command): Likewise.
4555 * language.h (get_frame_language): Add frame parameter.
4556 * stack.c (get_frame_language): Add frame parameter, assert
4557 parameter is not NULL, update comment and reindent.
4558 * top.c (check_frame_language_change): Pass the selected frame
4559 into get_frame_language.
4561 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4563 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4564 (pt_btrace_insn_flags): New.
4565 (ftrace_add_pt): Call pt_btrace_insn_flags.
4566 * btrace.h (btrace_insn_flag): New.
4567 (btrace_insn) <flags>: New.
4568 * record-btrace.c (btrace_insn_history): Print insn prefix.
4569 * NEWS: Announce it.
4571 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4573 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4574 * configure: Regenerate.
4576 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4578 * Makefile.in (LIBICONV): Define.
4579 (CLIBS): Add LIBICONV.
4580 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4581 * configure: Regenerate.
4583 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4584 Pedro Alves <palves@redhat.com>
4586 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4587 (arm_set_abi): Likewise.
4588 * ax-general.c (ax_print): Likewise.
4589 * c-exp.y (exp : string_exp): Likewise.
4590 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4591 (do_compile_dwarf_expr_to_c): Likewise.
4592 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4594 * dwarf2expr.c (execute_stack_op): Likewise.
4595 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4596 (disassemble_dwarf_expression): Likewise.
4597 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4598 (read_array_order): Likewise.
4599 (abbrev_table_read_table): Likewise.
4600 (read_attribute_value): Likewise.
4601 (skip_unknown_opcode): Likewise.
4602 (dwarf_decode_macro_bytes): Likewise.
4603 (dwarf_decode_macros): Likewise.
4604 * eval.c (value_f90_subarray): Likewise.
4605 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4606 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4607 * infrun.c (handle_command): Likewise.
4608 * memory-map.c (memory_map_start_memory): Likewise.
4609 * osabi.c (set_osabi): Likewise.
4610 * parse.c (operator_length_standard): Likewise.
4611 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4612 single return point.
4613 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4614 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4615 (gdbpy_lookup_global_symbol): Likewise.
4616 * record-full.c (record_full_restore): Likewise.
4617 * regcache.c (regcache_register_status): Likewise.
4618 (regcache_raw_read): Likewise.
4619 (regcache_cooked_read): Likewise.
4620 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4621 * symtab.c (initialize_ordinary_address_classes): Likewise.
4622 * target-debug.h (target_debug_print_signals): Likewise.
4623 * utils.c (do_restore_current_language): Likewise.
4625 2015-08-06 Clem Dickey <clemd@acm.org>
4628 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4630 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4632 * complaints.c (enum complaint_series): Add newlines and remove
4633 out of date comment.
4634 (struct complaints) <series>: Change type to enum
4635 complaint_series and remove out of date comment.
4636 (symfile_complaint_hook): Use equivalent enum value
4637 ISOLATED_MESSAGE instead of 0.
4639 2015-08-06 Pedro Alves <palves@redhat.com>
4641 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4644 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4646 * common/agent.c (symbol_list) <required>: Remove.
4648 2015-08-06 Pedro Alves <palves@redhat.com>
4650 * target/waitstatus.h (enum target_stop_reason)
4651 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4653 2015-08-05 Pedro Alves <palves@redhat.com>
4654 Joel Brobecker <brobecker@adacore.com>
4656 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
4657 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4658 case where BS->STOP is not set.
4660 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4662 * nat/gdb_thread_db.h: Add copyright header.
4663 Protect against multiple inclusion.
4665 2015-08-05 Yao Qi <yao.qi@linaro.org>
4667 * aarch64-linux-nat.c (get_thread_id): Remove.
4668 (debug_reg_change_callback): Call ptid_get_lwp instead of
4670 (fetch_gregs_from_thread): Likewise.
4671 (store_gregs_to_thread): Likewise.
4672 (fetch_fpregs_from_thread): Likewise.
4673 (store_fpregs_to_thread): Likewise.
4674 (aarch64_linux_get_debug_reg_capacity): Likewise.
4675 * arm-linux-nat.c (get_thread_id): Remove.
4676 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4677 * xtensa-linux-nat.c (get_thread_id): Remove.
4678 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4679 * arm-linux-nat.c (get_thread_id): Remove.
4680 (GET_THREAD_ID): Remove.
4681 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4682 (store_fpregs, fetch_regs, store_regs): Likewise.
4683 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4684 (fetch_vfp_regs, store_vfp_regs): Likewise.
4685 (arm_linux_read_description): Likewise.
4686 (arm_linux_get_hwbp_cap): Likewise.
4687 * xtensa-linux-nat.c (get_thread_id): Remove.
4688 (GET_THREAD_ID): Remove.
4689 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4692 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4694 * python/py-linetable.c: Fix case of Linetable to LineTable
4695 in docstrings and code comments.
4696 * python/py-symtab.c: Same.
4698 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4700 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4702 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4705 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4708 2015-08-04 Pedro Alves <palves@redhat.com>
4710 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4711 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4712 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4713 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4714 (td_thr_validate_ftype, td_thr_get_info_ftype)
4715 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4716 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4718 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4719 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4720 local macros and use them instead of verbose_dlsym and dlsym
4723 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4725 * nios2-tdep.h: Include opcode/nios2.h here.
4726 (NIOS2_CDX_OPCODE_SIZE): New.
4727 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4728 * nios2-tdep.c: Don't include opcode/nios2.h here.
4729 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4731 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4732 (nios2_match_addi, nios2_match_orhi): Likewise.
4733 (nios2_match_stw, nios2_match_ldw): Likewise.
4734 (nios2_match_rdctl): Likewise.
4735 (nios2_match_stwm, nios2_match_ldwm): New.
4736 (nios2_match_branch): Add cases for R2 encodings.
4737 (nios2_match_jmpi, nios2_match_calli): Likewise.
4738 (nios2_match_jmpr, nios2_match_callr): Likewise.
4739 (nios2_match_break, nios2_match_trap): Likewise.
4740 (nios2_in_epilogue_p): Add R2 support.
4741 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4743 (nios2_breakpoint_from_pc): Handle R2 instructions.
4744 (nios2_get_next_pc): Likewise. Adjust call to
4745 tdep->syscall_next_pc.
4746 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4747 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4748 instruction field macros instead of literal hex values.
4749 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4750 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4751 Use size field from OP instead of assuming all instructions
4753 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4755 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4757 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4758 variable warning with some compilers.
4760 2015-08-03 Yao Qi <yao.qi@linaro.org>
4762 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4763 in comment. Replace "rw" with "type".
4764 (arm_linux_remove_watchpoint): Change type of "rw" to
4765 "enum target_hw_bp_type".
4767 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4769 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4771 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4772 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4773 * mt-tdep.c (mt_skip_prologue): Likewise.
4774 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4776 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4778 * ada-exp.y (write_object_renaming): Replace struct
4779 ada_symbol_info with struct block_symbol. Update field
4780 references accordingly.
4781 (block_lookup, select_possible_type_sym): Likewise.
4782 (find_primitive_type): Likewise. Also update call to
4783 ada_lookup_symbol to extract the symbol itself.
4784 (write_var_or_type, write_name_assoc): Likewise.
4785 * ada-lang.h (struct ada_symbol_info): Remove.
4786 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4787 struct block_symbol.
4788 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4789 (ada_lookup_symbol): Return struct block_symbol instead of a
4791 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4792 with struct block_symbol.
4793 (resolve_subexp, ada_resolve_function, sort_choices,
4794 user_select_syms, is_nonfunction, add_defn_to_vec,
4795 num_defns_collected, defns_collected,
4796 symbols_are_identical_enums, remove_extra_symbols,
4797 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4798 ada_lookup_symbol_list, ada_iterate_over_symbols,
4799 ada_lookup_encoded_symbol, get_var_value): Likewise.
4800 (ada_lookup_symbol): Return a block_symbol instead of a mere
4801 symbol. Replace struct ada_symbol_info with struct
4803 (ada_lookup_symbol_nonlocal): Likewise.
4804 (standard_lookup): Make block passing explicit through
4805 lookup_symbol_in_language.
4806 * ada-tasks.c (get_tcb_types_info): Update the calls to
4807 lookup_symbol_in_language to extract the mere symbol out of the
4809 (ada_tasks_inferior_data_sniffer): Likewise.
4810 * ax-gdb.c (gen_static_field): Likewise for the call to
4812 (gen_maybe_namespace_elt): Deal with struct block_symbol from
4814 (gen_expr): Likewise.
4815 * c-exp.y: Likewise. Remove uses of block_found.
4816 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4817 (classify_name): Likewise. Rename the "sym" local variable to
4819 * c-valprint.c (print_unpacked_pointer): Likewise.
4820 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4821 "sym" parameter from struct symbol * to struct block_symbol.
4822 Use it to remove uses of block_found. Deal with struct
4823 block_symbol from lookup functions.
4824 (gcc_convert_symbol): Likewise. Update the call to
4826 * compile/compile-object-load.c (compile_object_load): Deal with
4827 struct block_symbol from lookup functions.
4828 * cp-namespace.c (cp_lookup_nested_symbol_1,
4829 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4830 cp_search_static_and_baseclasses,
4831 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4832 cp_lookup_symbol_imports_or_template,
4833 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4834 lookup_namespace_scope, cp_lookup_nonlocal,
4835 find_symbol_in_baseclass): Return struct block_symbol instead of
4836 mere symbols and deal with struct block_symbol from lookup
4838 * cp-support.c (inspect_type, replace_typedefs,
4839 cp_lookup_rtti_type): Deal with struct block_symbol from
4841 * cp-support.h (cp_lookup_symbol_nonlocal,
4842 cp_lookup_symbol_from_namespace,
4843 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
4844 Return struct block_symbol instead of mere symbols.
4845 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4847 Deal with struct block_symbol from lookup functions. Remove
4848 uses of block_found.
4849 * eval.c (evaluate_subexp_standard): Update call to
4850 cp_lookup_symbol_namespace.
4851 * f-exp.y: Deal with struct block_symbol from lookup functions.
4852 Remove uses of block_found.
4854 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4855 lookup_enum, lookup_template_type, check_typedef): Deal with
4856 struct block_symbol from lookup functions.
4857 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4858 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4859 (gdbscm_lookup_global_symbol): Likewise.
4860 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4861 * go-exp.y: Likewise. Remove uses of block_found.
4862 (package_name_p, classify_packaged_name, classify_name):
4864 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4865 * jv-exp.y (push_variable): Likewise.
4866 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4867 * language.c (language_bool_type): Likewise.
4868 * language.h (struct language_defn): Update
4869 la_lookup_symbol_nonlocal to return a struct block_symbol rather
4871 * linespec.c (find_label_symbols): Deal with struct block_symbol
4872 from lookup functions.
4873 * m2-exp.y: Likewise. Remove uses of block_found.
4875 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4876 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4877 * p-exp.y: Likewise. Remove uses of block_found.
4879 * p-valprint.c (pascal_val_print): Likewise.
4880 * parse.c (write_dollar_variable): Likewise. Remove uses of
4882 * parser-defs.h (struct symtoken): Turn the SYM field into a
4883 struct block_symbol.
4884 * printcmd.c (address_info): Deal with struct block_symbol from
4886 * python/py-frame.c (frapy_read_var): Likewise.
4887 * python/py-symbol.c (gdbpy_lookup_symbol,
4888 gdbpy_lookup_global_symbol): Likewise.
4889 * skip.c (skip_function_command): Likewise.
4890 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
4891 block_symbol instead of a mere symbol.
4892 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4893 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4894 * solib.c (solib_global_lookup): Likewise.
4895 * solist.h (solib_global_lookup): Likewise.
4896 (struct target_so_ops): Update lookup_lib_global_symbol to
4897 return a struct block_symbol rather than a mere symbol.
4898 * source.c (select_source_symtab): Deal with struct block_symbol
4899 from lookup functions.
4900 * stack.c (print_frame_args, iterate_over_block_arg_vars):
4902 * symfile.c (set_initial_language): Likewise.
4903 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
4905 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4906 (struct symbol_cache_slot): Turn the FOUND field into a struct
4908 (block_found): Remove.
4909 (eq_symbol_entry): Update to deal with struct block_symbol in
4911 (symbol_cache_lookup): Return a struct block_symbol rather than
4913 (symbol_cache_mark_found): Add a BLOCK parameter to fill
4914 appropriately the cache slots. Update callers.
4915 (symbol_cache_dump): Update cache slots handling to the type
4917 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4918 lookup_symbol_aux, lookup_local_symbol,
4919 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4920 lookup_symbol_in_objfile_symtabs,
4921 lookup_symbol_in_objfile_from_linkage_name,
4922 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4923 lookup_symbol_in_static_block, lookup_static_symbol,
4924 lookup_global_symbol):
4925 Return a struct block_symbol rather than a mere symbol. Deal
4926 with struct block_symbol from other lookup functions. Remove
4927 uses of block_found.
4928 (lookup_symbol_in_block): Remove uses of block_found.
4929 (struct global_sym_lookup_data): Turn the RESULT field into a
4930 struct block_symbol.
4931 (lookup_symbol_global_iterator_cb): Update references to the
4933 (search_symbols): Deal with struct block_symbol from lookup
4935 * symtab.h (struct block_symbol): New structure.
4936 (block_found): Remove.
4937 (lookup_symbol_in_language, lookup_symbol,
4938 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
4939 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
4940 lookup_global_symbol_from_objfile): Return a struct block_symbol
4941 rather than just a mere symbol. Update comments to remove
4942 mentions of block_found.
4943 * valops.c (find_function_in_inferior,
4944 value_struct_elt_for_reference, value_maybe_namespace_elt,
4945 value_of_this): Deal with struct block_symbol from lookup
4947 * value.c (value_static_field, value_fn_field): Likewise.
4949 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4951 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
4954 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4955 Pedro Alves <palves@redhat.com>
4957 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
4958 type or value instead of integer.
4959 (aarch64_linux_insert_watchpoint): Likewise.
4960 (aarch64_linux_remove_watchpoint): Likewise.
4961 * ada-lang.c (ada_op_print_tab): Likewise.
4962 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
4963 (amd64_linux_syscall_record_common): Likewise.
4964 * arch-utils.c (target_byte_order_user): Likewise.
4965 (default_byte_order): Likewise.
4966 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
4967 (arm_linux_get_hwbp_type): Likewise.
4968 (arm_linux_hw_watchpoint_initialize): Likewise.
4969 (arm_linux_insert_watchpoint): Likewise.
4970 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
4971 (arm_linux_syscall_record): Likewise.
4972 * breakpoint.c (update_watchpoint): Likewise.
4973 (breakpoint_here_p): Likewise.
4974 (bpstat_print): Likewise.
4975 (enable_breakpoint_disp): Likewise.
4976 * c-lang.c (c_op_print_tab): Likewise.
4977 * cli/cli-decode.c (add_info_alias): Likewise.
4978 * d-lang.c (d_op_print_tab): Likewise.
4979 * eval.c (evaluate_subexp_standard): Likewise.
4980 * f-exp.y (dot_ops): Likewise.
4981 (f77_keywords): Likewise.
4982 * f-lang.c (f_op_print_tab): Likewise.
4983 * go-lang.c (go_op_print_tab): Likewise.
4984 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
4985 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
4986 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4987 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
4988 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
4989 (struct scm_from_stringn_data): Likewise.
4990 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4991 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4992 (ia64_linux_remove_watchpoint): Likewise.
4993 (ia64_linux_can_use_hw_breakpoint): Likewise.
4994 * infrun.c (print_stop_event): Likewise.
4995 * jv-lang.c (java_op_print_tab): Likewise.
4996 * linux-nat.c (linux_proc_xfer_partial): Likewise.
4997 * linux-nat.h (struct lwp_info): Likewise.
4998 * linux-thread-db.c (enable_thread_event): Likewise.
4999 * m2-lang.c (m2_op_print_tab): Likewise.
5000 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
5001 (mi_cmd_stack_list_variables): Likewise.
5002 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
5003 * mi/mi-out.c (mi_table_begin): Likewise.
5004 (mi_table_header): Likewise.
5005 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
5006 (mips_linux_insert_watchpoint): Likewise.
5007 (mips_linux_remove_watchpoint): Likewise.
5008 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
5009 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
5010 (mips_linux_watch_type_to_irw): Likewise.
5011 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5012 (procfs_insert_hw_watchpoint): Likewise.
5013 (procfs_remove_hw_watchpoint): Likewise.
5014 (procfs_hw_watchpoint): Likewise.
5015 (procfs_can_use_hw_breakpoint): Likewise.
5016 (procfs_remove_hw_watchpoint): Likewise.
5017 (procfs_insert_hw_watchpoint): Likewise.
5018 * p-lang.c (pascal_op_print_tab): Likewise.
5019 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
5020 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
5021 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
5022 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
5023 (procfs_insert_watchpoint): Likewise.
5024 (procfs_remove_watchpoint): Likewise.
5025 * psymtab.c (recursively_search_psymtabs): Likewise.
5026 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
5027 (m32r_insert_watchpoint): Likewise.
5028 * remote-mips.c (mips_can_use_watchpoint): Likewise.
5029 (mips_insert_watchpoint): Likewise.
5030 (mips_remove_watchpoint): Likewise.
5031 * remote.c (watchpoint_to_Z_packet): Likewise.
5032 (remote_insert_watchpoint): Likewise.
5033 (remote_remove_watchpoint): Likewise.
5034 (remote_check_watch_resources): Likewise.
5035 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
5036 (s390_remove_watchpoint): Likewise.
5037 (s390_can_use_hw_breakpoint): Likewise.
5038 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
5039 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
5040 * target.h (struct target_ops): Likewise.
5041 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5042 * ui-out.c (struct ui_out_hdr): Likewise.
5043 (append_header_to_list): Likewise.
5044 (get_next_header): Likewise.
5045 (verify_field): Likewise.
5046 (ui_out_begin): Likewise.
5047 (ui_out_field_int): Likewise.
5048 (ui_out_field_fmt_int): Likewise.
5049 (ui_out_field_skip): Likewise.
5050 (ui_out_field_string): Likewise.
5051 (ui_out_field_fmt): Likewise.
5052 * varobj.c (new_variable): Likewise.
5053 * x86-nat.c (x86_insert_watchpoint): Likewise.
5054 (x86_remove_watchpoint): Likewise.
5055 (x86_can_use_hw_breakpoint): Likewise.
5056 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5057 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5058 previously anonymous enumeration type..
5059 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5061 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5062 (target_debug_print_enum_bptype): New.
5063 * target-delegates.c: Regenerate.
5065 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5067 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5068 already says and disallow non-stack memory writes in the prologue.
5070 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5072 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5073 reflect how current GCC emits stack overflow checks. Match
5074 both trap and break instructions for backward compatbility.
5075 Disallow other trap and break instructions in the prologue.
5077 2015-07-30 Pedro Alves <palves@redhat.com>
5080 * linux-nat.c (wait_lwp): Report to the core when thread group
5083 2015-07-30 Pedro Alves <palves@redhat.com>
5084 Simon Marchi <simon.marchi@ericsson.com>
5087 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5088 mark the new thread as resumed. Remove STOPPING parameter.
5089 (wait_lwp): Adjust call to linux_handle_extended_wait.
5090 (linux_nat_filter_event): Adjust call to
5091 linux_handle_extended_wait.
5092 (resume_stopped_resumed_lwps): Add debug output.
5094 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5096 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5098 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5099 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5100 gdbarch_fast_tracepoint_valid_at.
5101 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5102 * gdbarch.h: Regenerate.
5103 * gdbarch.c: Regenerate.
5104 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5105 argument. Do not set it.
5106 * remote.c (remote_download_tracepoint): Adjust call to
5107 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5108 the instruction length.
5110 2015-07-30 Yao Qi <yao.qi@linaro.org>
5112 * arm-tdep.h (enum gdb_regnum): Move it to ...
5113 * arch/arm.h: ... here. New file.
5114 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5116 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5118 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5119 Change its type to int *.
5120 (decode_br): Rename link argument to is_blr. Change its type to
5122 (decode_cb): Rename op argument to is_cbnz. Change its type to
5124 (decode_tb): Rename op argument to is_tbnz. Change its type to
5125 int *. Set is_tbnz to either 1 or 0.
5126 (aarch64_analyze_prologue): Change type of is_link to int. Add
5127 new variables is_cbnz and is_tbnz. Adjust call to
5128 aarch64_decode_cb and aarch64_decode_tb.
5130 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5132 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5134 (mips_linux_new_thread): Likewise.
5135 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5137 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5139 * top.c: Include "tui/tui.h".
5140 (undo_terminal_modifications_before_exit): New static function.
5141 (quit_force): Use it.
5143 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5145 * target.c (terminal_state): Initialize to terminal_is_ours.
5147 2015-07-29 Yao Qi <yao.qi@linaro.org>
5150 * dcache.c (dcache_read_memory_partial): Call
5151 raw_memory_xfer_partial.
5152 * target.c (raw_memory_xfer_partial): Make it non-static.
5153 * target.h (raw_memory_xfer_partial): Declare.
5155 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5157 * c-valprint.c (c_val_print_array): Consider addressable memory
5159 (c_val_print_ptr): Likewise.
5160 (c_val_print_int): Likewise.
5161 * findvar.c (read_frame_register_value): Likewise.
5162 * valarith.c (find_size_for_pointer_math): Likewise.
5163 (value_ptrdiff): Likewise.
5164 (value_subscripted_rvalue): Likewise.
5165 * valops.c (read_value_memory): Likewise (and rename variables).
5166 (value_assign): Likewise.
5167 (value_repeat): Likewise.
5168 (value_array): Likewise.
5169 (value_slice): Likewise.
5170 * valprint.c (generic_val_print_ptr): Likewise.
5171 (generic_val_print_enum): Likewise.
5172 (generic_val_print_bool): Likewise.
5173 (generic_val_print_int): Likewise.
5174 (generic_val_print_char): Likewise.
5175 (generic_val_print_float): Likewise.
5176 (generic_val_print_decfloat): Likewise.
5177 (generic_val_print_complex): Likewise.
5178 (val_print_scalar_formatted): Likewise.
5179 (val_print_array_elements): Likewise.
5180 * value.c (set_value_parent): Likewise.
5181 (value_contents_copy_raw): Likewise.
5182 (set_internalvar_component): Likewise.
5183 (value_primitive_field): Likewise.
5184 (value_fetch_lazy): Likewise.
5185 * value.h (read_value_memory): Update comment.
5187 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5189 * value.c (get_value_arch): New function.
5190 * value.h (get_value_arch): New declaration.
5192 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5194 * value.c (struct value): Update comments.
5196 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5198 * gdbtypes.c (type_length_units): New function.
5199 * gdbtypes.h (type_length_units): New declaration.
5200 (struct type) <length>: Update comment.
5202 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5204 * valprint.c (generic_val_print): Factor out complex
5205 printing code to ...
5206 (generic_val_print_complex): ... this new function.
5208 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5210 * valprint.c (generic_val_print): Factor out decfloat
5211 printing code to ...
5212 (generic_val_print_decfloat): ... this new function.
5214 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5216 * valprint.c (generic_val_print): Factor out float
5217 printing code to ...
5218 (generic_val_print_float): ... this new function.
5220 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5222 * valprint.c (generic_val_print): Factor out char
5223 printing code to ...
5224 (generic_val_print_char): ... this new function.
5226 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5228 * valprint.c (generic_val_print): Factor out integer
5229 printing code to ...
5230 (generic_val_print_int): ... this new function.
5232 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5234 * valprint.c (generic_val_print): Factor out bool
5235 printing code to ...
5236 (generic_val_print_bool): ... this new function.
5238 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5240 * valprint.c (generic_val_print): Factor out function/method
5241 printing code to ...
5242 (generic_val_print_func): ... this new function.
5244 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5246 * valprint.c (generic_val_print): Factor out flags
5247 printing code to ...
5248 (generic_val_print_flags): ... this new function.
5250 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5252 * valprint.c (generic_val_print): Factor out enum
5253 printing code to ...
5254 (generic_val_print_enum): ... this new function.
5256 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5258 * valprint.c (generic_val_print): Factor out reference
5259 printing code to ...
5260 (generic_val_print_ref): ... this new function.
5262 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5264 * valprint.c (generic_val_print): Factor out memberptr
5265 printing code to ...
5266 (generic_val_print_memberptr): ... this new function.
5268 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5270 * valprint.c (generic_val_print): Factor out pointer
5271 printing code to ...
5272 (generic_val_print_ptr): ... this new function.
5274 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5276 * valprint.c (generic_val_print): Factor out array
5277 printing code to ...
5278 (generic_val_print_array): ... this new function.
5280 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5282 * valprint.c (generic_val_print): Factor out
5283 print_unpacked_pointer code to ...
5284 (print_unpacked_pointer): ... this new function.
5286 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5288 * event-top.c (handle_sigterm): Don't inspect
5289 target_can_async_p. Always set the quit flag and always mark
5290 the async signal handler.
5292 2015-07-27 Yao Qi <yao.qi@linaro.org>
5294 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5296 2015-07-25 Kevin Buettner <kevinb@redhat.com>
5298 * remote.c (read_ptid): Return null_ptid when no thread id
5300 (remote_current_thread): Add log warning for malformed
5302 (remote_start_remote): Add log warning when current thread
5305 2015-07-24 Pedro Alves <palves@redhat.com>
5307 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5308 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5309 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5311 2015-07-24 Pedro Alves <palves@redhat.com>
5314 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5315 is resumed, and extend the debug log.
5317 2015-07-24 Pedro Alves <palves@redhat.com>
5319 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5321 2015-07-24 Pedro Alves <palves@redhat.com>
5323 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5325 * alpha-linux-nat.c: Likewise.
5326 * amd64-linux-nat.c: Likewise.
5327 * arm-linux-nat.c: Likewise.
5328 * hppa-linux-nat.c: Likewise.
5329 * i386-linux-nat.c: Likewise.
5330 * ia64-linux-nat.c: Likewise.
5331 * linux-fork.c: Likewise.
5332 * linux-nat.c: Likewise.
5333 * m32r-linux-nat.c: Likewise.
5334 * m68klinux-nat.c: Likewise.
5335 * mips-linux-nat.c: Likewise.
5336 * nat/linux-btrace.c: Likewise.
5337 * nat/linux-ptrace.c: Likewise.
5338 * nat/linux-ptrace.h
5339 * nat/mips-linux-watch.c: Likewise.
5340 * nat/x86-linux-dregs.c: Likewise.
5341 * ppc-linux-nat.c: Likewise.
5342 * s390-linux-nat.c: Likewise.
5343 * spu-linux-nat.c: Likewise.
5344 * tilegx-linux-nat.c: Likewise.
5345 * x86-linux-nat.c: Likewise.
5346 * xtensa-linux-nat.c: Likewise.
5348 2015-07-24 Pedro Alves <palves@redhat.com>
5350 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5351 __ptrace_request as first parameter type instead of int.
5352 (PTRACE_TYPE_ARG1): Define.
5353 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5354 that casts first argument to PTRACE_TYPE_ARG1.
5355 * config.in: Regenerate.
5356 * configure: Regenerate.
5358 2015-07-24 Pedro Alves <palves@redhat.com>
5360 * gdb_ptrace.h: Move ...
5361 * nat/gdb_ptrace.h: ... here.
5362 * inf-ptrace.c: Adjust.
5364 2015-07-24 Pedro Alves <palves@redhat.com>
5366 * acinclude.m4: Include ptrace.m4.
5367 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5368 * ptrace.m4: ... to this new file.
5370 2015-07-23 Doug Evans <dje@google.com>
5372 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5373 (load_cu): Handle dummy CUs.
5374 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5375 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5377 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5379 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5380 documentation to say that it returns a list rather than
5382 (linetable_object_methods): Update the docstring of the
5383 "source_line" entry.
5385 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5387 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5388 type to the recursive call instead of the original (maybe
5389 TYPE_CODE_TYPEDEF) type.
5391 2015-07-23 Yao Qi <yao.qi@linaro.org>
5393 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5394 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5395 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5397 2015-07-21 Yao Qi <yao.qi@linaro.org>
5399 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5400 Move it to nat/aarch64-linux-hw-point.c.
5401 (aarch64_linux_child_post_startup_inferior): Update.
5402 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5404 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5407 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5409 * common/btrace-common.c (btrace_data_append): Change case label.
5411 2015-07-20 Yao Qi <yao.qi@linaro.org>
5413 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5415 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5416 "unsigned long long".
5418 2015-07-18 Kevin Buettner <kevinb@redhat.com>
5420 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5421 to be set for SEC_ALLOC sections too.
5423 2015-07-17 Yao Qi <yao.qi@linaro.org>
5425 * Makefile.in (HFILES_NO_SRCDIR): Add
5426 nat/aarch64-linux-hw-point.h.
5427 (aarch64-linux-hw-point.o): New rule.
5428 * nat/aarch64-linux-hw-point.h: New file.
5429 * nat/aarch64-linux-hw-point.c: New file.
5430 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5431 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5432 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5433 (AARCH64_HWP_ALIGNMENT): Likewise.
5434 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5435 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5436 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5437 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5438 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5439 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5440 (struct aarch64_debug_reg_state): Likewise.
5441 (struct arch_lwp_info): Likewise.
5442 (aarch64_linux_set_debug_regs): Likewise.
5443 (aarch64_notify_debug_reg_change): Remove static.
5444 (aarch64_align_watchpoint): Likewise.
5445 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5446 (aarch64_watchpoint_length): Likewise.
5447 (aarch64_point_encode_ctrl_reg): Likewise
5448 (aarch64_point_is_aligned): Likewise.
5449 (aarch64_dr_state_insert_one_point): Likewise.
5450 (aarch64_dr_state_remove_one_point): Likewise.
5451 (aarch64_handle_breakpoint): Likewise.
5452 (aarch64_handle_aligned_watchpoint): Likewise.
5453 (aarch64_handle_unaligned_watchpoint): Likewise.
5454 (aarch64_handle_watchpoint): Likewise.
5455 * config/aarch64/linux.mh (NAT_FILE): Add
5456 aarch64-linux-hw-point.o.
5458 2015-07-17 Yao Qi <yao.qi@linaro.org>
5460 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5461 state and don't call aarch64_get_debug_reg_state. All callers
5463 (aarch64_linux_insert_hw_breakpoint): Call
5464 aarch64_get_debug_reg_state earlier.
5465 (aarch64_linux_remove_hw_breakpoint): Likewise.
5466 (aarch64_handle_aligned_watchpoint): Add argument state and
5467 don't call aarch64_get_debug_reg_state. All callers update.
5468 (aarch64_handle_unaligned_watchpoint): Likewise.
5469 (aarch64_handle_watchpoint): Add argument state.
5470 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5472 (aarch64_linux_remove_watchpoint): Likewise.
5474 2015-07-17 Yao Qi <yao.qi@linaro.org>
5476 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5478 (aarch64_handle_unaligned_watchpoint): Likewise.
5480 2015-07-17 Yao Qi <yao.qi@linaro.org>
5482 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5483 argument type's type to 'enum target_hw_bp_type'.
5484 (aarch64_dr_state_remove_one_point): Likewise.
5485 (aarch64_handle_breakpoint): Likewise.
5486 (aarch64_linux_insert_hw_breakpoint): Likewise.
5487 (aarch64_linux_remove_hw_breakpoint): Likewise.
5488 (aarch64_handle_aligned_watchpoint): Likewise.
5490 2015-07-17 Yao Qi <yao.qi@linaro.org>
5492 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5493 ptid_get_pid instead of get_thread_id.
5495 2015-07-17 Yao Qi <yao.qi@linaro.org>
5497 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5498 (add_current_inferior_and_thread): Don't initialise ptid.
5500 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5502 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5503 unavailable if invalid.
5505 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5507 Revert the previous 6 commits:
5508 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5509 Move gdb_regex* to common/
5510 Prepare linux_find_memory_regions_full & co. for move
5511 Move linux_find_memory_regions_full & co.
5512 gdbserver build-id attribute generator
5513 Validate symbol file using build-id
5515 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5516 Jan Kratochvil <jan.kratochvil@redhat.com>
5518 Validate symbol file using build-id.
5519 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5520 and 'show validate-build-id'. Add build-id attribute.
5521 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5522 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5523 * solib-frv.c (_initialize_frv_solib): Ditto.
5524 * solib-spu.c (set_spu_solib_ops): Ditto.
5525 * solib-svr4.c: Include rsp-low.h.
5526 (NOTE_GNU_BUILD_ID_NAME): New define.
5527 (svr4_validate): New function.
5528 (svr4_copy_library_list): Duplicate field build_id.
5529 (library_list_start_library): Parse 'build-id' attribute.
5530 (svr4_library_attributes): Add 'build-id' attribute.
5531 (_initialize_svr4_solib): Assign validate value.
5532 * solib-target.c (solib.h): Include.
5533 (_initialize_solib_target): Assign validate value.
5534 * solib.c (validate_build_id, show_validate_build_id): New.
5535 (solib_map_sections): Use ops->validate.
5536 (clear_so): Free build_id.
5537 (default_solib_validate): New function.
5538 (_initialize_solib): Add "validate-build-id".
5539 * solib.h (default_solib_validate): New declaration.
5540 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5541 (target_so_ops): New field 'validate'.
5543 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5544 Jan Kratochvil <jan.kratochvil@redhat.com>
5546 gdbserver build-id attribute generator.
5547 * features/library-list-svr4.dtd (library-list-svr4): New
5548 'build-id' attribute.
5550 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5551 Jan Kratochvil <jan.kratochvil@redhat.com>
5553 Move linux_find_memory_regions_full & co.
5554 * linux-tdep.c (nat/linux-maps.h): Include.
5555 (gdb_regex.h): Remove the include.
5556 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5557 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5558 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5559 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5560 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5561 and target/target.h.
5562 (struct smaps_vmflags, read_mapping, decode_vmflags)
5563 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5564 (linux_find_memory_regions_full): Move from linux-tdep.c.
5565 * nat/linux-maps.h (read_mapping): New declaration.
5566 (linux_find_memory_region_ftype, enum filterflags): Moved from
5568 (linux_find_memory_regions_full): New declaration.
5569 * target.c (target/target-utils.h): Include.
5570 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5571 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5572 definitions to target/target-utils.c.
5573 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5574 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5576 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5577 (read_alloc): New declaration.
5578 (read_stralloc_func_ftype): New typedef.
5579 (read_stralloc): New declaration.
5580 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5582 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5583 Jan Kratochvil <jan.kratochvil@redhat.com>
5585 Prepare linux_find_memory_regions_full & co. for move.
5586 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5587 (linux_find_memory_regions_full): Change signature and prepare
5588 for moving to linux-maps.
5589 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5590 (linux_find_memory_regions_thunk): New.
5591 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5592 (linux_find_memory_regions_gdb): New.
5593 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5594 (linux_make_mappings_corefile_notes): Use
5595 linux_find_memory_regions_gdb.
5596 * target.c (read_alloc_pread_ftype): New typedef.
5597 (target_fileio_read_alloc_1_pread): New function.
5598 (read_alloc): Refactor from target_fileio_read_alloc_1.
5599 (read_stralloc_func_ftype): New typedef.
5600 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5601 (read_stralloc): Refactored from target_fileio_read_stralloc.
5602 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5604 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5606 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5608 (COMMON_OBS): Add gdb_regex.o.
5610 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5611 --without-included-regex and USE_INCLUDED_REGEX.
5612 * common/gdb_regex.c: New file from utils.c functions.
5613 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5614 file wrapping define name.
5615 * configure: Rebuilt.
5616 * configure.ac (gdb_use_included_regex, --without-included-regex)
5617 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5618 * gdb_regex.h: Move it to common/gdb_regex.h.
5619 * utils.c: Remove include gdb_regex.h.
5620 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5621 (compile_rx_or_error): Move them to common/gdb_regex.c.
5623 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5624 Jan Kratochvil <jan.kratochvil@redhat.com>
5626 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5627 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5628 common/target-utils.h.
5629 (COMMON_OBS): Add target-utils.o.
5630 (linux-maps.o, target-utils.o): New.
5631 * target/target-utils.c: New file.
5632 * target/target-utils.h: New file.
5633 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5634 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5635 * nat/linux-maps.c: New file.
5636 * nat/linux-maps.h: New file.
5638 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5639 Pedro Alves <palves@redhat.com>
5641 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5642 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5643 (perf_event_read_bts): Change the type of SIZE and READ.
5644 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5645 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5646 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5648 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5649 buffer size to UINT_MAX.
5650 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5652 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5653 <last_head>: Change type.
5654 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5655 * common/btrace-common.c (btrace_data_append): Change the type of
5657 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5660 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5662 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5663 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5665 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5666 (ada_array_length): Likewise.
5667 (find_parallel_type_by_descriptive_type): Likewise.
5668 (ada_check_typedef): Likewise.
5669 * arm-tdep.c (arm_return_in_memory): Likewise.
5670 * ax-gdb.c (gen_trace_static_fields): Likewise.
5671 (gen_struct_ref_recursive): Likewise.
5672 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5673 (variable: block COLONCOLON name): Likewise.
5674 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5675 * c-lang.c (classify_type): Likewise.
5676 * c-typeprint.c (c_print_type): Likewise.
5677 (c_print_typedef): Likewise.
5678 (c_type_print_base): Likewise.
5679 * c-valprint.c (c_val_print): Likewise.
5680 * compile/compile-c-types.c (convert_type): Likewise.
5681 * compile/compile-object-load.c (get_out_value_type): Likewise.
5682 * completer.c (add_struct_fields): Likewise.
5683 (expression_completer): Likewise.
5684 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5685 (cp_lookup_nested_symbol_1): Likewise.
5686 (cp_lookup_nested_symbol): Likewise.
5687 * cp-valprint.c (cp_print_value_fields): Likewise.
5688 (cp_print_static_field): Likewise.
5689 * d-valprint.c (d_val_print): Likewise.
5690 * eval.c (evaluate_subexp_standard): Likewise.
5691 (evaluate_subexp_for_sizeof): Likewise.
5692 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5693 * f-typeprint.c (f_type_print_base): Likewise.
5694 * f-valprint.c (f_val_print): Likewise.
5695 * gdbtypes.c (get_discrete_bounds): Likewise.
5696 (create_array_type_with_stride): Likewise.
5697 (type_name_no_tag_or_error): Likewise.
5698 (lookup_struct_elt_type): Likewise.
5699 (get_unsigned_type_max): Likewise.
5700 (internal_type_vptr_fieldno): Likewise.
5701 (set_type_vptr_fieldno): Likewise.
5702 (internal_type_vptr_basetype): Likewise.
5703 (set_type_vptr_basetype): Likewise.
5704 (get_vptr_fieldno): Likewise.
5705 (is_integral_type): Likewise.
5706 (is_scalar_type): Likewise.
5707 (is_scalar_type_recursive): Likewise.
5708 (distance_to_ancestor): Likewise.
5709 (is_unique_ancestor_worker): Likewise.
5710 (check_types_equal): Likewise.
5711 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5713 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5715 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5716 also test for language_d.
5717 (dwarf2_compute_name): Likewise.
5718 (read_func_scope): Likewise.
5719 (read_structure_type): Likewise.
5720 (new_symbol_full): Likewise.
5721 (determine_prefix): Likewise.
5722 (read_import_statement): Use dot as the separator for language_d.
5723 (typename_concat): Likewise, but don't prefix the D main function.
5725 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5727 * nat/linux-namespaces.c (setns): Rename from this ...
5728 (do_setns): ... to this. Support calling setns if it exists.
5729 (mnsh_handle_setns): Call do_setns.
5731 2015-07-13 Yao Qi <yao.qi@linaro.org>
5733 * exec.c (exec_file_attach): Add period at the end of error
5736 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5738 * tui/tui-win.c (window_name_completer): New function.
5739 (focus_completer): Call window_name_completer. All old content
5740 moved into window_name_completer.
5741 (winheight_completer): New function.
5742 (_initialize_tui_win): Rename variable. Add completer to
5743 winheight command. Update doc string on winheight.
5745 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5747 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5748 all nios2 mach variants.
5750 2015-07-10 Kevin Buettner <kevinb@redhat.com>
5752 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5753 of target_read_memory.
5755 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5757 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5759 (parse_scrolling_args): Likewise.
5761 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5763 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5764 names in this function.
5766 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5768 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5769 (CMD_NAME): Likewise.
5770 (DATA_NAME): Likewise.
5771 (DISASSEM_NAME): Likewise.
5772 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5773 (tui_set_win_height): Likewise.
5774 (parse_scrolling_args): Likewise.
5776 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5778 * record-btrace.c (record_btrace_goto_begin)
5779 (record_btrace_goto_end, record_btrace_goto): Move call to
5780 print_stack_frame ...
5781 (record_btrace_set_replay): ... here. Set stop_pc.
5782 * record-full.c (record_full_goto_entry): Set stop_pc.
5784 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5786 * NEWS: Mention support for tracepoints on aarch64-linux.
5788 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5790 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5792 (the_low_target): Install it.
5794 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5796 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5797 * gdb.trace/collection.exp: Likewise.
5798 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5799 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5800 * gdb.trace/report.exp: Likewise.
5801 * gdb.trace/trace-break.exp: Likewise.
5802 * gdb.trace/unavailable.exp: Likewise.
5803 * gdb.trace/while-dyn.exp: Likewise.
5805 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5807 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5808 (aarch64_gen_return_address): New function.
5809 (aarch64_gdbarch_init): Hook it.
5811 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5813 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5814 swallow NOT_AVAILABLE_ERROR.
5815 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5816 available_p is not set.
5817 (aarch64_stub_frame_unwind_stop_reason): New function.
5818 (aarch64_stub_unwind): Install it.
5820 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5822 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5824 (aarch64_make_prologue_cache_1): New function, factored out from
5825 aarch64_make_prologue_cache. Do not allocate cache. Set
5827 (aarch64_make_prologue_cache): Reimplement wrapping
5828 aarch64_make_prologue_cache_1, and swallowing
5829 NOT_AVAILABLE_ERROR.
5830 (aarch64_prologue_frame_unwind_stop_reason): New function.
5831 Return UNWIND_UNAVAILABLE if available_p is not set.
5832 (aarch64_prologue_unwind): Install it.
5833 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5834 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5835 frame_id_build_unavailable_stack if available_p is not set.
5837 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5839 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5841 (aarch64_scan_prologue): Set prev_pc.
5842 (aarch64_make_prologue_cache): Set func.
5843 (aarch64_make_stub_cache): Set prev_pc.
5844 (aarch64_prologue_this_id): Remove local variables id, pc and
5845 func. Read prev_pc and func from cache.
5846 (aarch64_stub_this_id): Read prev_pc from cache.
5848 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5850 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5851 argument this_cache. Remove unused local variables reg and
5852 unwound_fp. Return early if this_cache is already set. Set
5854 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5856 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5858 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5859 New argument this_cache. Return early if this_cache is already
5860 set. Set this_cache.
5861 (aarch64_prologue_this_id): Update call to
5862 aarch64_make_prologue_cache.
5863 (aarch64_prologue_prev_register): Likewise.
5864 (aarch64_normal_frame_base): Likewise.
5866 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5868 * c-valprint.c (c_val_print): Factor out memberptr printing code
5869 from c_val_print to ...
5870 (c_val_print_memberptr): ... this new function.
5872 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5874 * c-valprint.c (c_val_print): Factor out int printing code to ...
5875 (c_val_print_int): ... this new function.
5877 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5879 * c-valprint.c (c_val_print): Factor out struct and union
5880 printing code to ...
5881 (c_val_print_struct): ... this new function ...
5882 (c_val_print_union): ... and this new function.
5884 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5886 * c-valprint.c (c_val_print): Factor out pointer printing code
5888 (c_val_print_ptr): ... this new function.
5890 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5892 * c-valprint.c (c_valprint): Factor our array printing code from
5894 (c_val_print_array): ... this new function.
5896 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5898 * c-valprint.c (c_val_print): Factor out pointer printing code
5900 (print_unpacked_pointer): ... this new function.
5902 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5904 * c-valprint.c (c_val_print): Remove an assignment to i and move
5907 2015-07-09 Yao Qi <yao.qi@linaro.org>
5909 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5910 argument ptid. Update comments. Caller update.
5912 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5914 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5917 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5919 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5921 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5923 * progspace.c (delete_program_space): Add missing spaces.
5925 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5927 * inferior.c (delete_inferior_1): Rename to ...
5928 (delete_inferior): ..., remove 'silent' parameter, delete
5929 program space when unused and remove call to prune_program_spaces.
5930 Remove the old, unused, delete_inferior.
5931 (delete_inferior_silent): Remove.
5932 (prune_inferiors): Change call from delete_inferior_1 to
5933 delete_inferior and remove 'silent' parameter. Remove call to
5934 prune_program_spaces.
5935 (remove_inferior_command): Idem.
5936 * inferior.h (delete_inferior_1): Rename to...
5937 (delete_inferior): ..., remove 'silent' parameter and remove the
5938 original delete_inferior.
5939 (delete_inferior_silent): Remove.
5940 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
5941 delete_inferior_1 to delete_inferior and remove 'silent'
5943 * progspace.c (prune_program_spaces): Remove.
5944 (pspace_empty_p): Rename to...
5945 (program_space_empty_p): ... and make non-static.
5946 (delete_program_space): New.
5947 * progspace.h (prune_program_spaces): Remove declaration.
5948 (program_space_empty_p): New declaration.
5949 (delete_program_space): New declaration.
5950 * monitor.c (monitor_close): Replace call to
5951 delete_thread_silent and delete_inferior_silent with
5952 discard_all_inferiors.
5954 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
5956 * defs.h (deprecated_register_changed_hook): Remove prototype.
5957 * interps.c (clear_iterpreter_hooks): Remove reference to
5958 deprecated_register_changed_hook.
5959 * top.c (deprecated_register_changed_hook): Remove prototype.
5960 * valops.c (value_assign): Remove reference to
5961 deprecated_register_changed_hook.
5962 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
5963 Add comment documenting the function.
5964 (tui_register_changed_observer): Define.
5965 (tui_install_hooks): Remove reference to
5966 deprecated_register_changed_hook. Set
5967 tui_register_changed_observer.
5968 (tui_remove_hooks): Remove reference to
5969 deprecated_register_changed_hook. Unset
5970 tui_register_changed_observer.
5972 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5975 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
5977 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
5980 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
5982 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5984 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
5986 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5988 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
5989 Use safe_strerror() instead of strerror().
5991 2015-07-07 Yao Qi <yao.qi@linaro.org>
5993 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
5994 * features/arm-with-m-fpa-layout.c: Regenerated.
5995 * features/arm-with-m-vfp-d16.xml: Likewise.
5996 * features/arm-with-m-vfp-d16.c: Regenerated.
5997 * features/arm-with-m.xml: Likewise.
5998 * features/arm-with-m.c: Regenerated.
5999 * features/arm-with-neon.xml: Likewise.
6000 * features/arm-with-neon.c: Regenerated.
6001 * features/arm-with-vfpv2.xml: Likewise.
6002 * features/arm-with-vfpv2.c: Regenerated.
6003 * features/arm-with-vfpv3.xml: Likewise.
6004 * features/arm-with-vfpv3.c: Regenerated.
6006 2015-07-07 Yao Qi <yao.qi@linaro.org>
6008 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
6010 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
6012 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
6013 if target is 32-bit.
6014 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
6015 if target is 32-bit.
6016 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
6017 if target is 32-bit.
6018 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
6019 if target is 32-bit.
6020 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
6021 (aarch64_linux_read_description): Return the right target
6023 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
6024 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6025 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
6028 2015-07-07 Yao Qi <yao.qi@linaro.org>
6030 * aarch32-linux-nat.c: New file.
6031 * aarch32-linux-nat.h: New file.
6032 * arm-linux-nat.c: Include aarch32-linux-nat.h.
6033 (fetch_regs): Move code to aarch32-linux-nat.c. Call
6034 aarch32_gp_regcache_supply.
6035 (store_regs): Move code to aarch32-linux-nat.c. Call
6036 aarch32_gp_regcache_collect.
6037 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
6038 aarch32_vfp_regcache_supply.
6039 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
6040 aarch32_vfp_regcache_collect.
6041 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
6043 2015-07-07 Yao Qi <yao.qi@linaro.org>
6045 * arm-linux-nat.c (store_fpregister): Remove.
6046 (store_register): Likewise.
6047 (fetch_fpregister): Likewise.
6048 (fetch_register): Likewise.
6049 (arm_linux_store_inferior_registers): Call store_regs and
6050 store_fpregs instead.
6051 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6054 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6056 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6059 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6061 * NEWS: Create a new section for the next release branch.
6062 Rename the section of the current branch, now that it has
6065 2015-07-06 Joel Brobecker <brobecker@adacore.com>
6067 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6068 * version.in: Bump version to 7.10.50.DATE-cvs.
6070 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
6072 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6073 breakpoints in a special way.
6074 (remove_breakpoint): Likewise.
6075 (mark_breakpoints_out): Likewise.
6077 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6079 * doc/gdb.texinfo (TUI): Add comma after @xref.
6081 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6083 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6084 instead of casting the structure type.
6086 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6088 * valops.c (search_struct_field): Remove OFFSET parameter.
6089 (value_cast_structs): Adjust calls to search_struct_field.
6090 (value_struct_elt): Same.
6091 (find_overload_match): Same.
6093 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6095 * value.c (value_fetch_lazy): Update comment, change return
6097 * value.h (value_fetch_lazy): Change return value to void.
6099 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6101 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6102 (tui_win_name): Make parameter and result const.
6103 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6105 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6107 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6108 use printf_unfiltered.
6109 (set_mpx_cmd): Add missing trailing space to command string
6111 (_initialize_i386_tdep): Give the "mpx" prefix command its
6114 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6116 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6117 (enum rx_frame_type): New.
6118 (struct rx_prologue): Add new field `frame_type'.
6119 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6120 parameter in the prologue struct. Add code for recording
6121 locations of PC and PSW for fast interrupt and exception frames.
6122 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6123 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6124 (rx_frame_type): New function.
6125 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6126 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6128 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
6129 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
6130 RX_FRAME_TYPE_FAST_INTERRUPT.
6131 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6132 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6133 (rx_frame_unwind): Use rx_frame_sniffer instead of
6134 default_frame_sniffer.
6135 (rx_frame_unwind): New unwinder.
6136 (rx_gdbarch_init): Register new unwinder.
6138 2015-07-02 Kevin Buettner <kevinb@redhat.com>
6140 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6141 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6142 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6144 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6146 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6148 Fix GCC false warning.
6149 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6151 2015-07-02 Yao Qi <yao.qi@linaro.org>
6153 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6154 typo in the debugging message.
6156 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6158 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6159 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6160 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6161 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6162 (btrace_maint_clear): New.
6163 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6164 (pt_print_packet, btrace_maint_decode_pt)
6165 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6166 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6167 (maint_btrace_packet_history_cmd)
6168 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6169 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6170 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6171 (maint_info_btrace_cmd, _initialize_btrace): New.
6172 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6173 (btrace_maint_packet_history, btrace_maint_info): New.
6174 (btrace_thread_info) <maint>: New.
6175 * NEWS: Announce it.
6177 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6179 * btrace.c (btrace_fetch): Append the new trace data.
6180 (btrace_clear): Clear the stored trace data.
6181 * btrace.h (btrace_thread_info) <data>: New.
6182 * common/btrace-common.h (btrace_data_clear)
6183 (btrace_data_append): New.
6184 * common/btrace-common.c (btrace_data_clear)
6185 (btrace_data_append): New.
6187 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6189 * nat/linux-btrace.c (linux_enable_bts): Check for
6190 PERF_ATTR_SIZE_VER5.
6191 Check for data_offset and data_size fields. Use them.
6193 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6195 * NEWS: Announce new commands "record btrace pt" and "record pt".
6196 Announce new options "set|show record btrace pt buffer-size".
6197 * btrace.c: Include "rsp-low.h".
6198 Include "inttypes.h".
6199 (btrace_add_pc): Add forward declaration.
6200 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6201 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6202 (btrace_compute_ftrace_pt): New.
6203 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6204 (check_xml_btrace_version): Update version check.
6205 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6206 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6207 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6208 (btrace_pt_children): New.
6209 (btrace_children): Add support for "pt".
6210 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6211 (btrace_conf_children): Add support for "pt".
6212 * btrace.h: Include "intel-pt.h".
6213 (btrace_pt_error): New.
6214 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6215 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6216 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6217 (struct btrace_config_pt): New.
6218 (struct btrace_config)<pt>: New.
6219 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6220 (struct btrace_data)<pt>: New.
6221 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6223 * features/btrace.dtd (btrace)<pt>: New.
6224 (pt, pt-config, cpu): New.
6225 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6226 (perf_event_pt_event_type, kernel_supports_pt)
6227 (linux_supports_pt): New.
6228 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6229 (linux_enable_bts): Free tinfo on error.
6230 (linux_enable_pt): New.
6231 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6232 (linux_disable_pt): New.
6233 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6234 (linux_fill_btrace_pt_config, linux_read_pt): New.
6235 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6236 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6237 (struct btrace_target_info)<pt>: New.
6238 * record-btrace.c (set_record_btrace_pt_cmdlist)
6239 (show_record_btrace_pt_cmdlist): New.
6240 (record_btrace_print_pt_conf): New.
6241 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6242 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6243 (cmd_record_btrace_pt_start): New.
6244 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6245 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6246 (_initialize_record_btrace): Add new commands.
6247 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6248 (remote_protocol_features): Add "Qbtrace:pt".
6249 Add "Qbtrace-conf:pt:size".
6250 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6251 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6252 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6253 (_initialize_remote): Add new commands.
6255 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6257 * configure.ac: check for libipt
6258 * configure: Regenerate.
6259 * config.in: Regenerate.
6260 * Makefile.in (LIBIPT): New.
6261 (CLIBS): Add $LIBIPT.
6262 * NEWS: document new configure options
6264 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6266 * compile/compile-object-load.c (compile_object_load): Replace debug
6267 message "lookup undefined ELF symbol" by 3 more specific messages.
6269 2015-07-01 Kevin Buettner <kevinb@redhat.com>
6271 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6272 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6273 (rl78_gdbarch_init): Initialize rl78_psw_type.
6275 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6277 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6278 Update commentary. Always refresh the registers when frame
6279 information has changed.
6280 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6281 Change return type to int. Return 1 if frame information has
6282 changed, 0 otherwise.
6283 (tui_before_prompt): Update commentary.
6284 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6287 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6290 * frame.c (select_frame): Remove reference to
6291 deprecated_selected_frame_level_changed_hook.
6292 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6294 * stack.c (deprecated_selected_frame_level_changed_hook):
6296 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6298 (tui_refresh_frame_and_register_information): ... this. Bail
6299 out if there is no stack. Don't update register information
6300 unless registers_too_p is true.
6301 (tui_print_frame_info_listing_hook): Rename to ...
6302 (tui_dummy_print_frame_info_listing_hook): ... this.
6303 (tui_before_prompt): New function.
6304 (tui_normal_stop): New function.
6305 (tui_before_prompt_observer): New observer.
6306 (tui_normal_stop_observer): New observer.
6307 (tui_install_hooks): Set
6308 deprecated_print_frame_info_listing_hook to
6309 tui_dummy_print_frame_info_listing_hook. Register
6310 tui_before_prompt_observer to call tui_before_prompt and
6311 tui_normal_stop_observer to call tui_normal_stop. Remove
6312 reference to deprecated_selected_frame_level_changed_hook.
6313 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6314 and tui_normal_stop_observer. Remove reference to
6315 deprecated_selected_frame_level_changed_hook.
6317 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6320 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6321 return an int instead of void. Return whether the locator
6323 (tui_show_frame_info): If the locator info has not changed, then
6324 bail out early to avoid refreshing the windows.
6326 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6328 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6329 LOCATOR_WIN to tui_alloc_content.
6331 2015-06-30 Yao Qi <yao.qi@linaro.org>
6334 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6337 2015-06-29 Kevin Buettner <kevinb@redhat.com>
6339 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6340 (rx_dwarf_reg_to_regnum): New function.
6341 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6344 2015-06-29 Pedro Alves <palves@redhat.com>
6347 * infcall.c (run_inferior_call): On infcall success, if the thread
6348 was marked stopped before, reset it back to stopped.
6349 * infrun.c (resume): Don't suppress the set_running calls when
6351 (normal_stop): Only discard the finish_thread_state cleanup if the
6354 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
6356 * MAINTAINERS (Write After Approval): Update my email address.
6358 2015-06-26 Keith Seitz <keiths@redhat.com>
6359 Doug Evans <dje@google.com>
6362 * block.c (block_lookup_symbol): For non-function blocks,
6363 continue to search for a symbol with an exact domain match
6364 Otherwise, return any previously found "best domain" symbol.
6365 (block_lookup_symbol_primary): Likewise.
6367 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6369 * NEWS: Mention the new option "history remove-duplicates".
6370 * top.c (history_remove_duplicates): New static variable.
6371 (show_history_remove_duplicates): New static function.
6372 (gdb_add_history): Conditionally remove duplicate history
6374 (init_main): Add "history remove-duplicates" option.
6376 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6378 * tui/tui-win.c (focus_completer): New static function.
6379 (_initialize_tui_win): Set the completion function of the
6380 "focus" command to focus_completer.
6382 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6384 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6386 * symtab.c (find_function_start_sal): Likewise.
6388 2015-06-25 Gary Benson <gbenson@redhat.com>
6390 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6391 it is the empty string after trailing slashes have been stripped.
6393 2015-06-25 Gary Benson <gbenson@redhat.com>
6395 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6396 * infrun.c (follow_exec): Likewise.
6397 * remote.c (remote_filesystem_is_local): Likewise.
6398 * solib.c (solib_find_1): Likewise.
6400 2015-06-24 Keith Seitz <keiths@redhat.com>
6402 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6403 return value from lrealpath.
6405 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6407 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6409 2015-06-24 Mike Frysinger <vapier@gentoo.org>
6411 * remote-sim.c: Include gdb_bfd.h.
6412 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6413 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6415 2015-06-24 Yao Qi <yao.qi@linaro.org>
6417 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6418 set_gdbarch_get_siginfo_type.
6419 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6420 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6421 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6422 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6423 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6424 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6425 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6426 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6427 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6428 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6430 2015-06-24 Gary Benson <gbenson@redhat.com>
6432 * common/buffer.c (stdint.h): Do not include.
6433 * common/print-utils.c (stdint.h): Likewise.
6434 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6435 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6436 * ft32-tdep.c (gdb_assert.h): Likewise.
6437 * guile/scm-utils.c (stdint.h): Likewise.
6438 * i386-linux-tdep.c (stdint.h): Likewise.
6439 * i386-tdep.c (stdint.h): Likewise.
6440 * nat/linux-btrace.c (stdint.h): Likewise.
6441 * nat/linux-btrace.h (stdint.h): Likewise.
6442 * nat/linux-ptrace.c (stdint.h): Likewise.
6443 * nat/mips-linux-watch.h (stdint.h): Likewise.
6444 * ppc-linux-nat.c (stdint.h): Likewise.
6445 * python/python-internal.h (stdint.h): Likewise.
6446 * stub-termcap.c (stdlib.h): Likewise.
6447 * target/target.h (stdint.h): Likewise.
6448 * xtensa-linux-nat.c (stdint.h): Likewise.
6450 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6452 * top.c (init_history): Look at errno after calling strtol to
6453 properly map large GDBHISTSIZE values to infinity.
6455 2015-06-23 Doug Evans <dje@google.com>
6457 * inferior.h (struct inferior_suspend_state): Delete, unused.
6458 All references deleted.
6460 2015-06-23 Mike Frysinger <vapier@gentoo.org>
6462 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6463 (microblaze_push_dummy_call): Likewise.
6464 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6465 and set_gdbarch_push_dummy_call.
6467 2015-06-23 Yao Qi <yao.qi@linaro.org>
6469 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6470 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6471 (amd64_linux_store_inferior_registers): Likewise.
6472 * arm-linux-nat.c (fetch_fpregister): Likewise.
6473 (fetch_fpregs, store_fpregister): Likewise.
6474 (store_fpregister, store_fpregs): Likewise.
6475 (fetch_register, fetch_regs): Likewise.
6476 (store_register, store_regs): Likewise.
6477 (fetch_vfp_regs, store_vfp_regs): Likewise.
6478 (arm_linux_read_description): Check have_ptrace_getregset is
6479 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6481 * i386-linux-nat.c (fetch_xstateregs): Check
6482 have_ptrace_getregset is not TRIBOOL_TRUE.
6483 (store_xstateregs): Likewise.
6484 * linux-nat.c (have_ptrace_getregset): Change its type to
6486 * linux-nat.h (tribool): New enum.
6487 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6488 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6490 2015-06-19 Doug Evans <dje@google.com>
6492 * NEWS: Mention Sun's version of stabs is no longer supported.
6493 * elfread.c (free_elfinfo): Delete. All uses updated.
6494 (elfstab_offset_sections): Delete. All uses updated.
6495 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6496 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6498 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6499 All callers updated.
6501 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6503 * common/rsp-low.c (needs_escaping): New.
6504 (remote_escape_output): Add unit_size parameter. Refactor to
6505 support multi-byte addressable units. Rename parameters.
6506 * common/rsp-low.h (remote_escape_output): Add unit_size
6507 parameter and rename others. Update doc.
6508 * remote.c (align_for_efficient_write): New.
6509 (remote_write_bytes_aux): Add unit_size parameter and use it.
6510 Rename some variables. Update doc.
6511 (remote_xfer_partial): Get unit size and use it.
6512 (remote_read_bytes_1): Add unit_size parameter and use it.
6513 Rename some variables. Update doc.
6514 (remote_write_bytes): Same.
6515 (remote_xfer_live_readonly_partial): Same.
6516 (remote_read_bytes): Same.
6517 (remote_flash_write): Update call to remote_write_bytes_aux.
6518 (remote_write_qxfer): Update call to remote_escape_output.
6519 (remote_search_memory): Same.
6520 (remote_hostio_pwrite): Same.
6522 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6524 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6525 locations as inserted.
6526 Update and expand comment about permanent locations.
6527 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6528 Move comment to add_location_to_breakpoint.
6529 (update_global_location_list): Don't error out if a permanent
6530 breakpoint is not marked inserted.
6531 Don't error out if a non-permanent breakpoint location is inserted on
6532 top of a permanent breakpoint.
6534 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
6536 * breakpoint.c (make_breakpoint_permanent): Remove unused
6538 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6540 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6543 * NEWS: Mention new GDBHISTSIZE behavior.
6544 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6545 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6547 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6549 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6550 * top.c (init_history): Read from GDBHISTSIZE instead of
6552 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6554 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6556 * top.c (gdb_safe_append_history): Do not call
6557 history_truncate_file if the history is not stifled.
6559 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6561 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6562 * syscalls/s390x-linux.xml: Likewise.
6564 2015-06-16 Michael Eager <eager@eagercon.com>
6566 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6568 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6570 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6571 target_terminal_ours_for_output() before calling
6572 tui_show_frame_info(), and restore the original terminal
6573 settings afterwards.
6575 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6577 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6579 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6581 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6583 (mi_cmd_data_write_memory_bytes): Same.
6585 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6587 * corefile.c (write_memory): Update doc.
6588 * gdbcore.h (write_memory): Same.
6590 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6592 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6593 (dump_mapping_p): Use it for parameter filterflags.
6594 (linux_find_memory_regions_full): Use it for variable filterflags.
6596 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6597 Jan Kratochvil <jan.kratochvil@redhat.com>
6599 Merge multiple hex conversions.
6600 * monitor.c: Include rsp-low.h.
6601 (fromhex): Remove definition.
6603 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6604 Jan Kratochvil <jan.kratochvil@redhat.com>
6606 Move utility functions to common/.
6607 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6608 Move defs to common/common-utils.c.
6609 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6610 (skip_to_space_const): Move decls to common/common-utils.h.
6611 * common/common-defs.h: Move include of common-types.h before
6613 * common/common-utils.c: Include host-defs.h and ctype.h.
6614 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6616 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6618 * common/common-utils.h (strtoulst): Move decl from utils.h.
6619 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6620 Move from cli/cli-utils.h.
6621 * common/host-defs.h: Include limits.h.
6622 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6623 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6624 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6625 common/common-utils.h.
6626 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6627 (strtoulst): Move to common/common-utils.c.
6628 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6630 2015-06-15 Yao Qi <yao.qi@linaro.org>
6632 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6634 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6636 * build-id.c: Don't include elf-bfd.h.
6637 (build_id_bfd_get): Use bfd_build_id.
6638 (build_id_verify): Ditto.
6639 * build-id.h: Ditto.
6640 (find_separate_debug_file_by_buildid): Ditto.
6641 * python/py-objfile.c: Don't include elf-bfd.h.
6642 (objfpy_get_build_id) Use bfd_build_id.
6643 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6644 * coffread.c: Include build-id.h.
6645 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6647 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6649 * windows-nat.c (do_windows_fetch_inferior_registers)
6650 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6651 conditional with __CYGWIN__.
6653 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6655 * completer.c: Add arch-utils.h include.
6656 (enum reg_completer_targets): New enum.
6657 (reg_or_group_completer_1): New function containing old
6658 reg_or_group_completer, add and use new parameter to control what
6659 is completed on. Use get_current_arch rather than architecture of
6660 currently selected frame.
6661 (reg_or_group_completer): Call new reg_or_group_completer_1.
6662 (reggroup_completer): Call new reg_or_group_completer_1.
6663 * completer.h (reggroup_completer): Add declaration.
6664 * tui/tui-regs.c: Add 'completer.h' include.
6665 (tui_reg_next_command): Renamed to...
6666 (tui_reg_next): ...this. Adjust parameters and return rather than
6668 (tui_reg_prev_command): Renamed to...
6669 (tui_reg_prev): ...this. Adjust parameters and return rather than
6671 (tui_reg_float_command): Delete.
6672 (tui_reg_general_command): Delete.
6673 (tui_reg_system_command): Delete.
6674 (tui_reg_command): Rewrite to perform switching of register group.
6676 (tuireglist): Remove.
6677 (tui_reggroup_completer): New function.
6678 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6679 creation of 'tui reg' command.
6680 * NEWS: Add comment about 'tui reg' changes.
6682 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6684 * target.c (target_read): Consider addressable unit size when
6685 reading from a memory object.
6686 (read_memory_robust): Same.
6687 (read_whatever_is_readable): Same.
6688 (target_write_with_progress): Consider addressable unit size
6689 when writing to a memory object.
6690 * target.h (target_read): Update documentation.
6691 (target_write): Add documentation.
6693 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6695 * arch-utils.h (default_addressable_memory_unit_size): New.
6696 * arch-utils.c (default_addressable_memory_unit_size): New.
6697 * gdbarch.sh (addressable_memory_unit_size): New.
6698 * gdbarch.h: Re-generate.
6699 * gdbarch.c: Re-generate.
6701 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6703 * target.c (target_read): Rename variables and use
6705 (target_read_with_progress): Same.
6706 (read_memory_robust): Constify parameters and rename
6708 (read_whatever_is_readable): Constify parameters,
6709 rename variables, adjust formatting.
6710 * target.h (read_memory_robust): Constify parameters.
6712 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
6714 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6715 synthetic (non-AltiVec) vector types.
6716 (ppc64_sysv_abi_return_value): Likewise.
6718 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6720 PR breakpoints/16465
6721 * breakpoint.c (create_breakpoint): Save extra_string for
6722 pending breakpoints.
6724 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6726 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6727 and bt_mask to CORE_ADDR.
6729 2015-06-11 Gary Benson <gbenson@redhat.com>
6731 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6732 (mnsh_recv_message): Likewise.
6734 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6736 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6737 long long int and plongest instead of %ll.
6739 2015-06-11 Gary Benson <gbenson@redhat.com>
6741 * nat/linux-namespaces.c (gdb_wait.h): New include.
6742 (sys/wait.h): Do not include.
6744 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6746 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6747 end_sequence is true.
6749 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6752 * solib-target.c (library_list_start_list): Use explicit NULL
6755 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6757 * solib-target.c (library_list_start_list): Do not dereference
6758 variable version in its initialization. Make the VERSION check handle
6760 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6762 2015-06-10 Gary Benson <gbenson@redhat.com>
6764 * NEWS: Announce support for direct access of executable and
6765 shared library files when attaching to inferiors in containers
6766 on GNU/Linux systems.
6768 2015-06-10 Gary Benson <gbenson@redhat.com>
6770 * remote.c (struct remote_state) <fs_pid>: New field.
6771 (new_remote_state): Initialize the above.
6772 (PACKET_vFile_setfs): New enum value.
6773 (remote_hostio_set_filesystem): New function.
6774 (remote_hostio_open): Call the above.
6775 (remote_hostio_unlink): Likewise.
6776 (remote_hostio_readlink): Likewise.
6777 (_initialize_remote): Register new "set/show remote
6778 hostio-setfs-packet" command.
6779 * NEWS: Announce new vFile:setfs packet.
6781 2015-06-10 Gary Benson <gbenson@redhat.com>
6783 * linux-nat.c (nat/linux-namespaces.h): New include.
6784 (fileio.h): Likewise.
6785 (linux_nat_filesystem_is_local): New function.
6786 (linux_nat_fileio_pid_of): Likewise.
6787 (linux_nat_fileio_open): Likewise.
6788 (linux_nat_fileio_readlink): Likewise.
6789 (linux_nat_fileio_unlink): Likewise.
6790 (linux_nat_add_target): Initialize to_filesystem_is_local,
6791 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6792 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6794 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6796 2015-06-10 Gary Benson <gbenson@redhat.com>
6798 * target.h (struct inferior): New forward declaration.
6799 (struct target_ops) <to_filesystem_is_local>: Update comment.
6800 (struct target_ops) <to_fileio_open>: New argument inf.
6801 Update comment. All implementations updated.
6802 (struct target_ops) <to_fileio_unlink>: Likewise.
6803 (struct target_ops) <to_fileio_readlink>: Likewise.
6804 (target_filesystem_is_local): Update comment.
6805 (target_fileio_open): New argument inf. Update comment.
6806 (target_fileio_unlink): Likewise.
6807 (target_fileio_readlink): Likewise.
6808 (target_fileio_read_alloc): Likewise.
6809 (target_fileio_read_stralloc): Likewise.
6810 * target.c (target_fileio_open): New argument inf.
6811 Pass inf to implementation. Update debug printing.
6812 (target_fileio_unlink): Likewise.
6813 (target_fileio_readlink): Likewise.
6814 (target_fileio_read_alloc_1): New argument inf. Pass inf
6815 to target_fileio_open.
6816 (target_fileio_read_alloc): New argument inf. Pass inf to
6817 target_fileio_read_alloc_1.
6818 (target_fileio_read_stralloc): Likewise.
6819 * gdb_bfd.c (inferior.h): New include.
6820 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6821 argument with new argument "inferior". Pass inferior to
6823 (gdb_bfd_open): Supply inferior argument to
6824 gdb_bfd_iovec_fileio_open.
6825 * linux-tdep.c (linux_info_proc): Supply inf argument to
6826 relevant target_fileio calls.
6827 (linux_find_memory_regions_full): Likewise.
6828 (linux_fill_prpsinfo): Likewise.
6829 * remote.c (remote_filesystem_is_local): Supply inf
6830 argument to remote_hostio_open.
6831 (remote_file_put): Likewise.
6832 (remote_file_get): Likewise.
6833 (remote_file_delete): Supply inf argument to
6834 remote_hostio_unlink.
6836 2015-06-10 Gary Benson <gbenson@redhat.com>
6838 * inf-child.c (inf_child_fileio_open): Replace comment.
6839 (inf_child_fileio_pwrite): Likewise.
6840 (inf_child_fileio_pread): Likewise.
6841 (inf_child_fileio_fstat): Insert blank line before comment.
6842 (inf_child_fileio_close): Replace comment.
6843 (inf_child_fileio_unlink): Likewise.
6844 (inf_child_fileio_readlink): Likewise.
6845 * remote.c (remote_hostio_open): Likewise.
6846 (remote_hostio_pread): Likewise.
6847 (remote_hostio_pwrite): Likewise.
6848 (remote_hostio_close): Likewise.
6849 (remote_hostio_unlink): Likewise.
6850 (remote_hostio_readlink): Likewise.
6851 (remote_hostio_fstat): Likewise.
6852 (remote_filesystem_is_local): Likewise.
6853 * target.c (target_fileio_open): Likewise.
6854 (target_fileio_pwrite): Likewise.
6855 (target_fileio_pread): Likewise.
6856 (target_fileio_fstat): Insert blank line before comment.
6857 (target_fileio_close): Replace comment.
6858 (target_fileio_unlink): Likewise.
6859 (target_fileio_readlink): Likewise.
6860 (target_fileio_read_alloc): Likewise.
6861 (target_fileio_read_stralloc): Likewise.
6863 2015-06-10 Gary Benson <gbenson@redhat.com>
6865 * linux-thread-db.c (nat/linux-namespaces.h): New include.
6866 (check_pid_namespace_match): Use linux_ns_same rather than
6867 linux_proc_pid_get_ns to spot PID namespace mismatches.
6868 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6869 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6871 2015-06-10 Gary Benson <gbenson@redhat.com>
6873 * configure.ac (AC_CHECK_FUNCS): Add setns.
6874 * config.in: Regenerate.
6875 * configure: Likewise.
6876 * nat/linux-namespaces.h: New file.
6877 * nat/linux-namespaces.c: Likewise.
6878 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6879 (linux-namespaces.o): New rule.
6880 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6881 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6882 * config/arm/linux.mh (NATDEPFILES): Likewise.
6883 * config/i386/linux.mh (NATDEPFILES): Likewise.
6884 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6885 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6886 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6887 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6888 * config/mips/linux.mh (NATDEPFILES): Likewise.
6889 * config/pa/linux.mh (NATDEPFILES): Likewise.
6890 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6891 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6892 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6893 * config/s390/linux.mh (NATDEPFILES): Likewise.
6894 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6895 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6896 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6897 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6899 2015-06-10 Gary Benson <gbenson@redhat.com>
6901 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6902 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6903 (make_cleanup_close): Likewise.
6904 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6905 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6906 (make_cleanup_close): Likewise.
6908 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6910 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6911 from SuspendThread().
6913 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6915 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6916 from OutputDebugString.
6918 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6919 Mircea Gherzan <mircea.gherzan@intel.com>
6921 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6922 MPX_BT_MASK_32): New macros.
6923 (i386_mpx_set_bounds): New function that implements
6924 the command "set-mpx-bound".
6925 (i386_mpx_enabled): Helper function to test MPX availability.
6926 (i386_mpx_bd_base): Helper function to calculate the base directory
6928 (i386_mpx_get_bt_entry): Helper function to access a bound
6930 (i386_mpx_print_bounds): Effectively display bound information.
6931 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6933 (_initialize_i386_tdep):
6934 Add "bound" to the commands "show mpx" and "set mpx" commands.
6935 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
6936 and "show mpx" commands.
6937 * NEWS: List new commands for MPX support.
6939 2015-06-09 Gary Benson <gbenson@redhat.com>
6941 * common/fileio.h (fileio_to_host_mode): New declaration.
6942 * common/fileio.c (fileio_to_host_mode): New Function.
6943 * inf-child.c (inf_child_fileio_open): Process mode argument
6944 with fileio_to_host_mode.
6946 2015-06-09 Gary Benson <gbenson@redhat.com>
6948 * common/fileio.c (fileio_mode_pack): Fix preprocessor
6951 2015-06-05 Gary Benson <gbenson@redhat.com>
6953 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
6954 * remote.c (remote_filesystem_is_local): ...here.
6956 2015-06-04 Yao Qi <yao.qi@linaro.org>
6958 * gdbarch.c: Regenerate it.
6960 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6962 * arch-utils.c (default_infcall_munmap): New.
6963 * arch-utils.h (default_infcall_munmap): New declaration.
6964 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
6965 (munmap_list_free, munmap_listp_free_cleanup): New.
6966 (struct setup_sections_data): Add field munmap_list_headp.
6967 (setup_sections): Call munmap_list_add.
6968 (compile_object_load): New variable munmap_list_head, initialize
6969 setup_sections_data.munmap_list_headp, return munmap_list_head.
6970 * compile/compile-object-load.h (struct munmap_list): New declaration.
6971 (struct compile_module): Add field munmap_list_head.
6972 (munmap_list_free): New declaration.
6973 * compile/compile-object-run.c (struct do_module_cleanup): Add field
6975 (do_module_cleanup): Call munmap_list_free.
6976 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
6977 * gdbarch.c: Regenerate.
6978 * gdbarch.h: Regenerate.
6979 * gdbarch.sh (infcall_munmap): New.
6980 * linux-tdep.c (linux_infcall_munmap): New.
6981 (linux_init_abi): Install it.
6983 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
6986 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
6988 2015-06-02 Yao Qi <yao.qi@linaro.org>
6990 * i386-linux-nat.c: Include linux-nat.h.
6992 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
6993 Jan Kratochvil <jan.kratochvil@redhat.com>
6996 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
6998 * dwarf2loc.c (chain_candidate): Likewise.
7000 2015-06-01 Yao Qi <yao.qi@linaro.org>
7002 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
7003 (store_vfp_regs): Use PTRACE_SETREGSET.
7005 2015-06-01 Yao Qi <yao.qi@linaro.org>
7007 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
7008 (fetch_fpregs): Likewise.
7009 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
7010 (store_fpregs): Likewise.
7012 2015-06-01 Yao Qi <yao.qi@linaro.org>
7014 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
7015 (fetch_regs): Likewise.
7016 (store_regs): Use PTRACE_SETREGSET.
7017 (store_register): Likewise.
7019 2015-06-01 Yao Qi <yao.qi@linaro.org>
7021 * arm-linux-nat.c (arm_linux_read_description): Check whether
7022 kernel supports PTRACE_GETREGSET.
7024 2015-06-01 Yao Qi <yao.qi@linaro.org>
7026 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
7027 * linux-nat.c: ... here.
7028 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
7030 * linux-nat.h: ... here.
7032 2015-06-01 Yao Qi <yao.qi@linaro.org>
7034 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
7035 * i386-linux-nat.c: Likewise.
7036 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
7037 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
7038 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7039 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
7040 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
7042 2015-05-30 Eli Zaretskii <eliz@gnu.org>
7044 * go32-nat.c (go32_xfer_memory): Fix the return value to be
7045 compatible to what read_child and write_child return. This
7046 unbreaks that DJGPP build of GDB which was broken since v7.7.
7048 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7050 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7052 2015-05-29 Roland McGrath <mcgrathr@google.com>
7055 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7056 rather than internal_error for an unrecognized value.
7058 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7060 * xtensa-tdep.c (xtensa_pseudo_register_read)
7061 (xtensa_pseudo_register_write): Don't alias last pseudo register
7064 2015-05-28 Don Breazeal <donb@codesourcery.com>
7066 * infrun.c (follow_fork_inferior): Ensure the use of
7067 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7070 2015-05-28 Doug Evans <dje@google.com>
7072 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7074 2015-05-28 Yao Qi <yao.qi@linaro.org>
7076 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7077 (arm_linux_fetch_inferior_registers): Use
7078 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7079 (arm_linux_store_inferior_registers): Likewise.
7080 (arm_linux_read_description): Don't set
7081 arm_linux_has_wmmx_registers.
7082 * arm-tdep.c (arm_gdbarch_init): Set
7083 tdep->have_wmmx_registers according target descriptions.
7084 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7087 2015-05-28 Yao Qi <yao.qi@linaro.org>
7089 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7090 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7091 instead of arm_linux_vfp_register_count.
7092 (store_vfp_regs): Likewise.
7093 (arm_linux_fetch_inferior_registers): Likewise.
7094 (arm_linux_store_inferior_registers): Likewise.
7095 (arm_linux_read_description): Don't set
7096 arm_linux_vfp_register_count.
7097 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7099 * arm-tdep.c (arm_gdbarch_init): Add assert on
7101 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7102 field to vfp_register_count. All users updated.
7104 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7106 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7107 ELFOSABI_GNU binaries.
7109 2015-05-27 Doug Evans <dje@google.com>
7111 * dwarf2read.c (lnp_state_machine): New typedef.
7112 (lnp_reader_state): New typedef.
7113 (dwarf_record_line_1): Renamed from dwarf_record_line.
7114 All callers updated.
7115 (dwarf_record_line): New function.
7116 (init_lnp_state_machine): New function.
7117 (check_line_address): Replace p_record_line parameter with state.
7118 All callers updated.
7119 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7120 Update to record state in lnp_state_machine.
7122 2015-05-27 Doug Evans <dje@google.com>
7124 * dwarf2read.c (record_line_ftype): New typedef.
7125 (check_line_address): New function.
7126 (dwarf_decode_lines_1): Call it.
7128 2015-05-27 Doug Evans <dje@google.com>
7130 * NEWS: Mention "set debug dwarf-line".
7131 * dwarf2read.c (dwarf_line_debug): New static global.
7132 (add_include_dir): Add debug dwarf-line support.
7133 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7134 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7136 2015-05-27 Doug Evans <dje@google.com>
7138 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7139 All callers updated.
7140 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7141 * cp-support.h (cp_lookup_nested_symbol): Update.
7143 2015-05-27 Doug Evans <dje@google.com>
7146 * block.c (block_find_symbol): New function.
7147 (block_find_non_opaque_type): Ditto.
7148 (block_find_non_opaque_type_preferred): Ditto.
7149 * block.h (block_symbol_matcher_ftype): New typedef.
7150 (block_find_symbol): Declare.
7151 (block_find_non_opaque_type): Ditto.
7152 (block_find_non_opaque_type_preferred): Ditto.
7153 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7154 * psymtab.c (psym_lookup_symbol): Ditto.
7155 * symtab.c (basic_lookup_transparent_type_1): New function.
7156 (basic_lookup_transparent_type): Call it.
7158 2015-05-27 Yao Qi <yao.qi@linaro.org>
7160 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7161 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7163 2015-05-27 Yao Qi <yao.qi@linaro.org>
7165 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7167 (aarch64_record_load_store): Likewise.
7169 2015-05-26 Doug Evans <dje@google.com>
7171 PR c++/18141, c++/18417.
7172 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7175 2015-05-26 Doug Evans <dje@google.com>
7177 * NEWS: Add entries for command renamings.
7178 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7180 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7181 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7183 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7184 All callers updated. Fix spelling of DWARF in help text.
7185 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7187 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7189 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7190 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7191 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7193 (show_dwarf_always_disassemble): Renamed from
7194 show_dwarf2_always_disassemble. All callers updated.
7195 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7196 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7197 "set/show dwarf max-cache-age". Rename
7198 "set/show dwarf2 always-disassemble" to
7199 "set/show dwarf always-disassemble". Rename
7200 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7201 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7203 2015-05-26 Doug Evans <dje@google.com>
7206 * python/py-lazy-string.c (stpy_convert_to_value): Use
7207 gdbpy_gdb_memory_error not PyExc_MemoryError.
7208 (gdbpy_create_lazy_string_object): Ditto.
7210 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7212 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7214 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7216 * tui/tui-regs.c (tui_reg_prev_command): New function.
7217 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7218 * reggroups.c (reggroup_prev): New function.
7219 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7221 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7222 Yao Qi <yao.qi@linaro.org>
7224 * aarch64-linux-tdep.c: Include linux-record.h and
7226 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7227 (aarch64_syscall): New enum.
7228 (aarch64_canonicalize_syscall): New function.
7229 (aarch64_all_but_pc_registers_record): New function.
7230 (aarch64_linux_syscall_record): New function.
7231 (aarch64_linux_init_abi): Install AArch64 process record
7232 handler. Update to handle syscall recording.
7233 * aarch64-tdep.c: Include record.h and record-full.h.
7234 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7235 (struct aarch64_mem_r): Define.
7236 (aarch64_record_result): New enum.
7237 (struct insn_decode_record): Define.
7238 (insn_decode_record): New typedef.
7239 (aarch64_record_data_proc_reg): New function.
7240 (aarch64_record_data_proc_imm): New function.
7241 (aarch64_record_branch_except_sys): New function.
7242 (aarch64_record_load_store): New function.
7243 (aarch64_record_data_proc_simd_fp): New function.
7244 (aarch64_record_asimd_load_store): New function.
7245 (aarch64_record_decode_insn_handler): New function.
7246 (deallocate_reg_mem): New function.
7247 (aarch64_process_record): New function.
7248 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7250 (aarch64_process_record): New extern declaration.
7251 * configure.tgt: Add linux-record.o to gdb_target_obs.
7252 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7254 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
7256 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7259 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7261 * amd64-tdep.c: Replace in_function_epilogue_p with
7262 stack_frame_destroyed_p throughout.
7263 * arch-utils.c: Ditto.
7264 * arch-utils.h: Ditto.
7265 * arm-tdep.c: Ditto.
7266 * breakpoint.c: Ditto.
7267 * gdbarch.sh: Ditto.
7268 * hppa-tdep.c: Ditto.
7269 * i386-tdep.c: Ditto.
7270 * mips-tdep.c: Ditto.
7271 * nios2-tdep.c: Ditto.
7272 * rs6000-tdep.c: Ditto.
7273 * s390-linux-tdep.c: Ditto.
7274 * score-tdep.c: Ditto.
7276 * sparc-tdep.c: Ditto.
7277 * sparc-tdep.h: Ditto.
7278 * sparc64-tdep.c: Ditto.
7279 * spu-tdep.c: Ditto.
7280 * tic6x-tdep.c: Ditto.
7281 * tilegx-tdep.c: Ditto.
7282 * xstormy16-tdep.c: Ditto.
7283 * gdbarch.c, gdbarch.h: Re-generated.
7285 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7287 * NEWS: Mention 'tui enable' and 'tui disable'.
7288 * tui/tui.c (tui_enable_command): New function.
7289 (tui_disable_command): New function.
7290 (_initialize_tui): New function.
7292 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7294 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7296 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7298 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7301 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7303 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7305 (tui_set_layout_for_display_command): ...here, before calling
7306 tui_set_layout. Only set the layout if gdb has not already
7307 entered the TUI_FAILURE state.
7309 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7311 * tui/tui-layout.c (layout_completer): New function.
7312 (_initialize_tui_layout): Set completer on layout command.
7314 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7316 * tui/tui-layout.c (tui_set_layout): Remove
7317 tui_register_display_type parameter. Remove all checking of this
7318 parameter, and reindent function. Update header comment.
7319 (tui_set_layout_for_display_command): Rename to...
7320 (tui_set_layout_by_name): ...this, and don't check for different
7321 register class types, don't pass a tui_register_display_type to
7322 tui_set_layout. Update header comment.
7323 (layout_names): Remove register set specific names.
7324 * tui/tui-layout.h (tui_set_layout): Remove
7325 tui_register_display_type parameter.
7326 * tui/tui.c (tui_rl_change_windows): Don't pass a
7327 tui_register_display_type to tui_set_layout.
7328 (tui_rl_delete_other_windows): Likewise.
7329 (tui_enable): Likewise.
7330 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7331 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7332 (TUI_GENERAL_REGS_NAME): Remove.
7333 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7334 (TUI_SPECIAL_REGS_NAME): Remove.
7335 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7336 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7337 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7338 (enum tui_register_display_type): Remove.
7339 (struct tui_layout_def): Remove regs_display_type and
7340 float_regs_display_type fields.
7341 (struct tui_data_info): Remove regs_display_type field.
7342 (tui_layout_command): Use new name for
7343 tui_set_layout_for_display_command.
7344 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7345 (tui_clear_win_detail): Don't initialise removed fields of
7347 * tui/tui-regs.c (tui_show_registers): Use new name for
7348 tui_set_layout_for_display_command.
7349 * tui/tui.h (tui_set_layout_for_display_command): Rename
7351 (tui_set_layout_by_name): ...this.
7352 * printcmd.c (display_command): Remove tui related layout call,
7355 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7357 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7358 (handle_inferior_event): New function.
7360 2015-05-20 Joel Brobecker <brobecker@adacore.com>
7362 * ada-lang.c (to_fixed_array_type): Rename local variable
7363 typename into type_name.
7365 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7367 Fix ASAN crash for gdb.compile/compile.exp.
7368 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7370 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7372 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7373 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7374 * compile/compile-object-load.c (setup_sections, compile_object_load):
7376 * compile/compile.c (compile_to_object): Likewise.
7378 2015-05-16 Doug Evans <xdje42@gmail.com>
7380 * NEWS: Mention support for unbuffered Guile memory ports.
7381 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7382 (ioscm_lseek_address): Improve overflow calculation.
7383 (gdbscm_memory_port_fill_input): Add assert.
7384 (gdbscm_memory_port_write): Handle unbuffered ports.
7385 Handle large writes identical to Guile's fport_write.
7386 (gdbscm_memory_port_seek): Fix seeking past end check.
7387 (gdbscm_memory_port_close): Handle closing unbuffered port.
7388 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7389 (ioscm_init_memory_port): Handle unbuffered ports.
7390 (ioscm_reinit_memory_port): Ditto.
7391 (ioscm_init_memory_port): Update size calculation.
7392 (gdbscm_open_memory): Support zero sized ports.
7394 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7396 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7397 variable compiler warnings.
7399 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7401 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7403 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7404 Phil Muldoon <pmuldoon@redhat.com>
7406 * NEWS (Changes since GDB 7.9): Add compile print.
7407 * compile/compile-c-support.c (add_code_header, add_code_footer)
7408 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7409 COMPILE_I_PRINT_VALUE_SCOPE.
7410 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7411 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7413 * compile/compile-object-load.c: Include block.h.
7414 (get_out_value_type): New function.
7415 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7416 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7418 * compile/compile-object-load.h (struct compile_module): Add fields
7419 out_value_addr and out_value_type.
7420 * compile/compile-object-run.c: Include valprint.h and compile.h.
7421 (struct do_module_cleanup): Add fields out_value_addr and
7423 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7424 COMPILE_I_PRINT_VALUE_SCOPE.
7425 (compile_object_run): Propagate out_value_addr and out_value_type.
7426 Pass OUT_VALUE_ADDR.
7427 * compile/compile.c: Include valprint.h.
7428 (compile_print_value, compile_print_command): New functions.
7429 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7430 (_initialize_compile): Update compile code help text. Install
7431 compile_print_command.
7432 * compile/compile.h (compile_print_value): New prototype.
7433 * defs.h (enum compile_i_scope_types): Add
7434 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7436 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7438 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7439 Rely on its parameter count.
7440 (compile_object_load): Replace lookup_minimal_symbol_text by
7441 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7443 * compile/compile-object-load.h (struct compile_module): Replace
7444 func_addr by func_sym.
7445 * compile/compile-object-run.c: Include block.h.
7446 (compile_object_run): Reset module variable after it is freed. Use
7447 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7449 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7451 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7452 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7453 (c_compute_program): Call generate_register_struct after typedefs.
7454 * compile/compile-loc2c.c (push, pushf_register_address)
7455 (pushf_register): Cast to GCC_UINTPTR.
7456 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7457 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7458 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7459 * compile/compile.c (_initialize_compile): Enable warnings for
7462 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7464 * cli/cli-script.c (execute_control_command): Update
7465 eval_compile_command caller.
7466 * compile/compile-object-load.c (compile_object_load): Add parameters
7467 scope and scope_data. Set them.
7468 * compile/compile-object-load.h (struct compile_module): Add fields
7469 scope and scope_data.
7470 (compile_object_load): Add parameters scope and scope_data.
7471 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7472 scope and scope_data.
7473 (compile_object_run): Propagate the fields scope and scope_data.
7474 * compile/compile.c (compile_file_command, compile_code_command):
7475 Update eval_compile_command callers.
7476 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7477 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7478 * defs.h (struct command_line): Add field scope_data.
7480 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7482 * printcmd.c (struct format_data): Move it to valprint.h.
7483 (print_command_parse_format, print_value): New functions from ...
7484 (print_command_1): ... here. Call them.
7485 * valprint.h (struct format_data): Move it here from printcmd.c.
7486 (print_command_parse_format, print_value): New declarations.
7488 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7490 * compile/compile-object-load.c (compile_object_load): Add
7491 COMPILE_DEBUG message.
7493 2015-05-15 Jerome Guitton <guitton@adacore.com>
7495 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7496 index to get element instead of enum value.
7497 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7498 of index to compute length, but enum values to compute bounds.
7499 (ada_array_length): Use enum position of index instead of enum value.
7500 (pos_atr): Move position computation to...
7501 (ada_evaluate_subexp): Use enum values to compute bounds.
7502 * gdbtypes.c (discrete_position): ...this new function.
7503 * gdbtypes.h (discrete_position): New function declaration.
7504 * valprint.c (val_print_array_elements): Call discrete_position
7505 to handle array indexed by non-contiguous enumeration types.
7507 2015-05-15 Jerome Guitton <guitton@adacore.com>
7509 * ada-lang.c (find_parallel_type_by_descriptive_type):
7510 Go through typedefs during lookup.
7511 (to_fixed_array_type): Add support for non-bit packed arrays
7512 as variable-length fields.
7514 2015-05-15 Pedro Alves <palves@redhat.com>
7515 Simon Marchi <simon.marchi@ericsson.com>
7517 * event-loop.c (gdb_notifier) <next_file_handler,
7518 next_poll_fds_index>: New fields.
7519 (get_next_file_handler_to_handle_and_advance): New function.
7520 (delete_file_handler): If deleting the next file handler to
7521 handle, advance to the next file handler.
7522 (gdb_wait_for_event): Bail early if no event fired. Poll file
7523 handlers in round-robin fashion.
7525 2015-05-15 Pedro Alves <palves@redhat.com>
7527 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7528 'private' to 'priv'.
7530 2015-05-15 Pedro Alves <palves@redhat.com>
7532 * nat/linux-nat.h: Include "target/waitstatus.h".
7534 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7536 * python/py-unwind.c (struct reg_info): Move out of ...
7537 (struct cached_frame_info): ... this scope.
7538 (pending_frame_object_type, unwind_info_object_type): Make extern.
7540 2015-05-15 Joel Brobecker <brobecker@adacore.com>
7542 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7543 accumSize is never negative.
7545 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7547 * tui/tui-command.c: Remove include of <ctype.h>.
7548 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7550 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7552 * dwarf2read.c (die_needs_namespace): Return 1 for
7553 DW_TAG_inlined_subroutine.
7555 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7557 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7558 (regcache_cpy_no_passthrough): Make it static, add function comment.
7559 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7560 (regcache_cpy_no_passthrough): Remove declaration.
7562 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7564 * gdbthread.h (struct thread_control_state): Update comment for
7566 * infcall.c (run_inferior_call): Update comment about
7568 * infcmd.c (get_return_value): Update comment about stop_registers.
7569 (finish_forward): Update comment about proceed_to_finish.
7570 * infrun.c (stop_registers): Remove.
7571 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7572 * infrun.h (stop_registers): Remove.
7574 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7576 * infcall.c (struct dummy_frame_context_saver)
7577 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7578 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7579 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7581 (call_function_by_hand_dummy): Move discard_cleanups of
7582 inf_status_cleanup before dummy_frame_push. Call
7583 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7584 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7585 * infcall.h (struct dummy_frame_context_saver)
7586 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7587 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7589 * infcmd.c: Include infcall.h.
7590 (get_return_value): Add parameter ctx_saver, use it instead of
7592 (print_return_value): Add parameter ctx_saver, pass it.
7593 (struct finish_command_continuation_args): Add field ctx_saver.
7594 (finish_command_continuation): Update print_return_value caller.
7595 (finish_command_continuation_free_arg): Free also ctx_saver.
7596 (finish_forward): Call dummy_frame_context_saver_setup.
7597 * inferior.h (struct dummy_frame_context_saver): New declaration.
7598 (get_return_value): Add parameter ctx_saver.
7599 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7600 get_return_value caller.
7602 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7604 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7605 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7606 (remove_dummy_frame): Process dtor_list.
7607 (pop_dummy_frame): Process dtor_list.
7608 (register_dummy_frame_dtor): Maintain dtor_list.
7609 (find_dummy_frame_dtor): Handle dtor_list.
7610 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7613 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7615 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7617 (compile_object_run): Update do_module_cleanup caller.
7618 * dummy-frame.c: Include infcall.h.
7619 (struct dummy_frame): Update dtor comment.
7620 (remove_dummy_frame): Call dtor.
7621 (pop_dummy_frame): Update dtor caller.
7622 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7625 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7629 2015-05-13 Joel Brobecker <brobecker@adacore.com>
7631 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7632 Xmethods now being able to specify a result type to that new
7635 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7637 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7638 first before resizing the window.
7639 * tui/tui.c (tui_enable): Likewise.
7641 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7643 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7644 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7645 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7646 dummy_dtor parameter.
7647 * infcall.h: Include dummy-frame.h.
7648 (call_function_by_hand_dummy_dtor_ftype): Remove.
7649 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7652 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7655 * top.c (history_size_setshow_var): Change type to signed.
7656 Initialize to -2. Update documentation.
7657 (set_readline_history_size): Define.
7658 (set_history_size_command): Use it. Remove logic for handling
7660 (init_history): Use set_readline_history_size(). Test for a
7661 value of -2 instead of 0 when determining whether to set a
7662 default history size.
7663 (init_main): Decode the argument of the "size" command as a
7664 zuinteger_unlimited.
7666 2015-05-12 Doug Evans <dje@google.com>
7668 * dwarf2read.c (struct file_entry): Tweak comments.
7669 (get_debug_line_section): Tweak comments.
7671 2015-05-12 Don Breazeal <donb@codesourcery.com>
7673 * NEWS: Announce fork support in the RSP and support
7674 for fork debugging in extended mode.
7676 2015-05-12 Don Breazeal <donb@codesourcery.com>
7678 * remote.c (remote_insert_fork_catchpoint): New function.
7679 (remote_remove_fork_catchpoint): New function.
7680 (remote_insert_vfork_catchpoint): New function.
7681 (remote_remove_vfork_catchpoint): New function.
7682 (pending_fork_parent_callback): New function.
7683 (remove_new_fork_child): New function.
7684 (remote_update_thread_list): Call remote_notif_get_pending_events
7685 and remove_new_fork_child.
7686 (extended_remote_kill): Kill fork child when killing the
7687 parent before follow_fork completes.
7688 (init_extended_remote_ops): Initialize target vector with
7689 new fork catchpoint functions.
7691 2015-05-12 Don Breazeal <donb@codesourcery.com>
7693 * remote.c (remove_vfork_event_p): New function.
7694 (remote_follow_fork): Add vfork event type to event checking.
7695 (remote_parse_stop_reply): New stop reasons "vfork" and
7696 "vforkdone" for RSP 'T' Stop Reply Packet.
7698 2015-05-12 Don Breazeal <donb@codesourcery.com>
7700 * linux-nat.c (linux_nat_ptrace_options): New function.
7701 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7702 Call linux_nat_ptrace_options and use different argument to
7703 linux_enable_event_reporting.
7704 (_initialize_linux_nat): Delete call to
7705 linux_ptrace_set_additional_flags.
7706 * nat/linux-ptrace.c (current_ptrace_options): Rename to
7707 supported_ptrace_options.
7708 (additional_flags): Delete variable.
7709 (linux_check_ptrace_features): Use supported_ptrace_options.
7710 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7711 Likewise, and remove additional_flags check.
7712 (linux_enable_event_reporting): Change 'attached' argument to
7713 'options'. Use supported_ptrace_options.
7714 (ptrace_supports_feature): Change comment. Use
7715 supported_ptrace_options.
7716 (linux_ptrace_set_additional_flags): Delete function.
7717 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7718 Delete function prototype.
7719 * remote.c (remote_fork_event_p): New function.
7720 (remote_detach_pid): New function.
7721 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7722 if doing detach-on-fork.
7723 (remote_follow_fork): New function.
7724 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7725 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7726 (init_extended_remote_ops): Initialize to_follow_fork.
7728 2015-05-12 Don Breazeal <donb@codesourcery.com>
7730 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7731 from static to extern.
7732 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7733 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7734 * PACKET_vfork_event_feature>: New enumeration constants.
7735 (remote_protocol_features): Add table entries for new packets.
7736 (remote_query_supported): Add new feature queries to qSupported
7739 2015-05-12 Gary Benson <gbenson@redhat.com>
7741 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7742 for fake PIDs as well as real ones.
7743 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7745 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7747 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7748 * python/py-value.c (valpy_reference_value): New function.
7749 (valpy_const_value): Likewise.
7750 (value_object_methods): Add new methods.
7751 * value.c (make_cv_value): New function.
7752 * value.h (make_cv_value): Declare.
7754 2015-05-08 Yao Qi <yao@codesourcery.com>
7755 Sandra Loosemore <sandra@codesourcery.com>
7757 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7758 to 'lh->include_dirs' before accessing to it.
7759 (psymtab_include_file_name): Likewise.
7760 (dwarf_decode_lines_1): Likewise.
7761 (dwarf_decode_lines): Likewise.
7762 (file_file_name): Likewise.
7764 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7766 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7767 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7768 (nios2_linux_rt_sigreturn_init): Adjust base address of
7771 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7773 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7774 "trap 31" as the breakpoint instruction on all targets.
7776 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7778 * infcmd.c (print_return_value): Remove unused declaration.
7780 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7782 * dwarf2read.c (attr_to_dynamic_prop)
7783 <DW_AT_data_member_location>: Use read_type_die isntead of
7786 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7788 * ada-lang.c (ada_convert_actual): Add handling of formals
7789 passed inside an aligner type.
7791 2015-05-08 Joel Brobecker <brobecker@adacore.com>
7793 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7795 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7798 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7799 Print xmethod matcher status.
7801 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7803 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7804 register in the regcache when treating the PSWM register, and vice
7807 2015-05-07 Gary Benson <gbenson@redhat.com>
7809 * linux-thread-db.c (struct thread_db_info)
7810 <td_ta_map_id2thr_p>: Remove field.
7811 (try_thread_db_load_1): Remove initialization for the above.
7813 2015-05-07 Gary Benson <gbenson@redhat.com>
7815 * linux-thread-db.c (struct thread_db_info)
7816 <td_thr_validate_p>: Remove field.
7817 (try_thread_db_load_1): Remove initialization for the above.
7819 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7821 * compile/compile-object-load.c (compile_object_load): Support
7824 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7826 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7827 const. Use new variables for the const compatibility.
7828 (eval_compile_command): Make the cmd_string parameter const.
7829 * compile/compile.h (eval_compile_command): Make the cmd_string
7832 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7834 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7836 * top.c (deprecated_init_ui_hook): Delete.
7837 (gdb_init): Remove handling of deprecated_init_ui_hook.
7838 * interps.c (clear_interpreter_hooks): Remove handling of
7839 deprecated_init_ui_hook.
7840 * main.c (captured_main): Update comment.
7842 2015-05-06 Joel Brobecker <brobecker@adacore.com>
7844 * solib.c (_initialize_solib): Add "info dll" alias creation.
7845 * windows-nat.c (set_windows_aliases): Delete.
7846 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7848 * NEWS: Add news entry about "info dll" now being available
7851 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7853 * ada-lang.c (value_assign_to_component): Reformat and improve
7854 documentation. Remove all trailing spaces.
7856 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7858 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7859 Stop counting inlined frames as soon as an out-of-line function
7862 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
7864 * dwarf2read.c (inherit_abstract_dies): Skip
7865 DW_TAG_GNU_call_site dies while inheriting children of an
7866 abstract DIE into a scope.
7867 (read_lexical_block_scope): Inherit abstract DIE's for
7870 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7872 * ada-valprint.c (val_print_packed_array_elements): Delete
7873 variable "len". Add a type-length check when comparing two
7874 consecutive elements of the array. Use the element's actual
7875 length in call to value_contents_eq.
7876 * ada-lang.c (ada_value_primitive_packed_val): Always return
7877 a value whose type has been resolved.
7879 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7881 * ada-lang.c (ada_value_primitive_packed_val): Recompute
7882 BIT_SIZE and LEN if the size of the resolved type is smaller
7883 than BIT_SIZE * HOST_CHAR_BIT.
7885 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7887 * ada-lang.c (ada_value_primitive_packed_val): Use a more
7888 correct address in call to value_at. Adjust call to
7889 value_address accordingly.
7891 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7893 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7896 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7898 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7899 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7901 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7902 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7903 (resolve_dynamic_type_internal): Set pinfo.valaddr.
7904 Add handling of addr_stack->valaddr.
7905 (resolve_dynamic_type): Add "valaddr" parameter.
7906 Set pinfo.valaddr field.
7907 * ada-lang.c (ada_discrete_type_high_bound): Update call to
7908 resolve_dynamic_type.
7909 (ada_discrete_type_low_bound): Likewise.
7910 * findvar.c (default_read_var_value): Likewise.
7911 * value.c (value_from_contents_and_address): Likewise.
7913 2015-05-05 Joel Brobecker <brobecker@adacore.com>
7915 * gdbtypes.c (resolve_dynamic_array): Use
7916 create_array_type_with_stride instead of create_array_type.
7918 2015-04-30 DJ Delorie <dj@redhat.com>
7920 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7923 2015-04-29 Doug Evans <dje@google.com>
7926 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7927 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7928 EVAL_AVOID_SIDE_EFFECTS for xmethods.
7929 * extension-priv.h (struct extension_language_ops)
7930 <get_xmethod_result_type>: New member.
7931 * extension.c (get_xmethod_result_type): New function.
7932 * extension.h (get_xmethod_result_type): Declare.
7933 * python/py-xmethods.c (get_result_type_method_name): New static
7935 (py_get_result_type_method_name): Ditto.
7936 (gdbpy_get_xmethod_result_type): New function.
7937 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
7938 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
7939 * python/python.c (python_extension_ops): Add
7940 gdbpy_get_xmethod_result_type.
7941 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
7942 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
7944 (value_x_unop): Ditto.
7945 * value.c (result_type_of_xmethod): New function.
7946 * value.h (result_type_of_xmethod): Declare.
7948 2015-04-29 Gary Benson <gbenson@redhat.com>
7950 * solib.c (solib_find_1): Allow fd argument to be NULL.
7951 (exec_file_find): Update comment.
7952 (solib_find): Likewise.
7953 * exec.c (exec_file_locate_attach): Use NULL as fd
7954 argument to exec_file_find to avoid having to close
7956 * infrun.c (follow_exec): Likewise.
7958 2015-04-28 Doug Evans <dje@google.com>
7961 * python/lib/gdb/printing.py (register_pretty_printer): Handle
7962 name or __name__ attributes. Handle gdb module as first argument.
7964 2015-04-28 Doug Evans <dje@google.com>
7967 * python/py-prettyprint.c (print_children): Verify result of children
7968 iterator. Provide better error message.
7969 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
7970 * python/python.c (gdbpy_print_python_errors_p): New function.
7972 2015-04-28 Doug Evans <dje@google.com>
7974 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
7976 2015-04-28 Sasha Smundak <asmundak@google.com>
7978 * NEWS: Mention gdb.Type.optimized_out method.
7979 * python/py-type.c (typy_optimized_out): New function.
7981 2015-04-28 John Baldwin <jhb@FreeBSD.org>
7983 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7985 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7987 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
7988 (initialize_utils): Move call of init_page_info() to ...
7989 * top.c (gdb_init): ... here.
7991 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7993 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
7994 (tui_sigwinch_handler): Still update our idea of
7995 the terminal's width and height even when TUI is not active.
7997 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7999 * utils.h (set_screen_width_and_height): Declare.
8000 * utils.c (set_screen_width_and_height): Define.
8001 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
8003 2015-04-28 Gary Benson <gbenson@redhat.com>
8005 * infrun.c (solist.h): New include.
8006 (follow_exec): Use exec_file_find to prefix execd_pathname
8009 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8011 * tui/tui-source.c (tui_set_source_content): Avoid calling
8012 strcpy() when offset is 0.
8014 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8017 * tui/tui-data.c (tui_free_window): Don't free the locator
8018 window when passed an SRC_WIN or a DISASSEM_WIN.
8020 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
8022 * tui/tui-data.h (struct tui_win_element): Forward-declare.
8023 (tui_win_content): Move declaration.
8024 (struct tui_gen_win_info): Give 'content' field the
8025 type tui_win_content.
8026 * tui/tui-data.c (init_content_element): Remove redundant and
8028 (tui_add_content_elements): Remove erroneous cast.
8029 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
8031 (tui_get_begin_asm_address): Likewise.
8032 * tui/tui-regs.c (tui_show_registers): Likewise.
8033 (tui_show_register_group): Likewise.
8034 (tui_display_registers_from): Likewise.
8035 (tui_check_register_values): Likewise.
8036 * tui/tui-source.c (tui_set_source_content): Likewise.
8037 (tui_set_source_content_nil): Likewise.
8038 (tui_source_is_displayed): Likewise.
8039 * tui/tui-stack.c (tui_show_locator_content): Likewise.
8040 (tui_set_locator_fullname): Likewise.
8041 (tui_set_locator_info): Likewise.
8042 (tui_show_frame_info): Likewise.
8043 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
8044 (tui_show_source_line): Likewise.
8045 (tui_horizontal_source_scroll): Likewise.
8046 (tui_update_breakpoint_info): Likewise.
8047 (tui_set_exec_info_content): Likewise.
8048 (tui_show_exec_info_content): Likewise.
8049 (tui_alloc_source_buffer): Likewise.
8050 (tui_line_is_displayed): Likewise.
8051 (tui_addr_is_displayed): Likewise.
8053 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8055 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8056 event if PL_FLAG_EXEC is set.
8057 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8058 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8059 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8060 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8061 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8063 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8065 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8066 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8067 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8068 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8069 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8070 [PT_LWPINFO] (fbsd_wait): New function.
8071 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8072 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8073 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8074 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8075 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8076 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8077 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8078 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8079 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8081 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8082 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8083 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8084 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8085 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8086 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8087 Set "to_post_attach" to "fbsd_post_attach".
8089 2015-04-27 John Baldwin <jhb@FreeBSD.org>
8091 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8092 (fbsd_find_memory_regions): Mark static.
8093 (fbsd_nat_add_target): New function.
8094 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8095 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8096 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8097 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8098 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8099 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8101 2015-04-27 Gary Benson <gbenson@redhat.com>
8103 * objfiles.c (allocate_objfile): Do not attempt to expand name
8104 if name is a "target:" filename.
8105 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8106 to load auto-load scripts for objfiles with "target:" filenames.
8108 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8110 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8111 (enum s390_vector_abi_kind): New enum.
8112 (struct gdbarch_tdep)<vector_abi>: New field.
8113 (s390_effective_inner_type): Add parameter min_size. Stop
8114 unwrapping if the inner type is smaller than min_size.
8115 (s390_function_arg_float): Adjust call to
8116 s390_effective_inner_type.
8117 (s390_function_arg_vector): New function.
8118 (s390_function_arg_integer): Adjust comment.
8119 (struct s390_arg_state)<vr>: New field.
8120 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8121 arguments according to vector ABI when appropriate.
8122 (s390_push_dummy_call): Initialize the argument state's field
8123 'vr'. Adjust calls to s390_handle_arg.
8124 (s390_register_return_value): Handle vector return values.
8125 (s390_return_value): Apply the "register" return value convention
8126 to a vector when appropriate.
8127 (s390_gdbarch_init): Initialize tdep->vector_abi.
8128 * NEWS: Announce S390 vector ABI support.
8130 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8132 * s390-linux-tdep.c (s390_return_value_convention): Remove
8133 function. Inline its logic...
8134 (s390_return_value): ...here. Instead, move the handling of the
8135 "register" return value convention...
8136 (s390_register_return_value): ...here. New function.
8138 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8141 (is_float_singleton): Remove function. Move the "singleton" part
8143 (s390_effective_inner_type): ...here. New function.
8144 (is_float_like): Remove function. Inline its logic...
8145 (s390_function_arg_float): ...here.
8146 (is_pointer_like, is_integer_like, is_struct_like): Remove
8147 functions. Inline their logic...
8148 (s390_function_arg_integer): ...here.
8149 (s390_function_arg_pass_by_reference): Remove function.
8150 (extend_simple_arg): Remove function.
8151 (alignment_of): Remove function.
8152 (struct s390_arg_state): New structure.
8153 (s390_handle_arg): New function.
8154 (s390_push_dummy_call): Move parameter placement logic to the new
8155 function s390_handle_arg. Call it for calculating the stack area
8156 sizes first, and again for actually writing the parameters.
8158 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8160 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8161 false if the argument is zero.
8163 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8165 * ada-lang.c (template_to_static_fixed_type): Return input type
8166 when it is already fixed. Cache the input type itself when not
8167 creating a static fixed copy. Make it explicit that we never
8168 molestate the input type.
8169 * gdbtypes.c (resolve_dynamic_struct): Reset the
8170 TYPE_TARGET_TYPE field for resolved copies.
8172 2015-04-27 Joel Brobecker <brobecker@adacore.com>
8174 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8175 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8176 (template_to_static_fixed_type): Call ada_check_typedef only
8179 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8181 * cli/cli-dump.c (srec_dump_command): Add internationalization
8183 (ihex_dump_command): Likewise.
8184 (tekhex_dump_command): Likewise.
8185 (binary_dump_command): Likewise.
8186 (binary_append_command): Likewise.
8188 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8190 * cli/cli-dump.c (verilog_cmdlist): New variable.
8191 (dump_verilog_memory): New function.
8192 (dump_verilog_value): New function.
8193 (verilog_dump_command): New function.
8194 (_initialize_cli_dump): Add new commands to support verilog dump
8196 * NEWS: Add entry for "dump verilog".
8198 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8200 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8201 descriptive type when there is none.
8203 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8205 * tui/tui-win.c (tui_async_resize_screen): Call
8206 rl_resize_terminal().
8208 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8210 * windows-nat.c (handle_output_debug_string): Don't change
8211 current_event.dwThreadId.
8212 (get_windows_debug_event): Use thread_id, rather than relying on
8213 current_event.dwThreadId being changed.
8215 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8217 * windows-nat.c (windows_continue): Report an error if
8218 ContinueDebugEvent() fails.
8220 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8222 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8224 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8226 * windows-nat.c (get_windows_debug_event): Replace retval with
8227 thread_id throughout. Update stale comment.
8229 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8231 * windows-nat.c (get_windows_debug_event): Don't use ternary
8232 conditional operator.
8234 2015-04-21 Pierre Muller <muller@sourceware.org>
8237 p-exp.y (yylex): Reorganize code to return the matched pattern
8238 for a field of this.
8240 2015-04-21 Gary Benson <gbenson@redhat.com>
8242 * common/fileio.h (fileio_to_host_openflags): New declaration.
8243 * common/fileio.c (fcntl.h): New include.
8244 (fileio_to_host_openflags): New function, factored out from...
8245 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8248 2015-04-21 Kevin Buettner <kevinb@redhat.com>
8250 * rl78-tdep.c (RL78_SP_ADDR): Define.
8251 (opc_reg_to_gdb_regnum): New static function.
8252 (rl78_analyze_prologue): Recognize instructions forming slightly
8253 more interesting prologues.
8255 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8258 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8259 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8260 TYPE_CODE_REF types so that they are not considered as dynamic
8261 depending on the referenced type.
8262 (resolve_dynamic_type_internal): Likewise.
8264 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8267 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8268 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8269 "top_level" parameter.
8270 (resolve_dynamic_type_internal): Remove the unused "top_level"
8271 parameter. Update call to is_dynamic_type_internal.
8272 (is_dynamic_type): Update call to is_dynamic_type_internal.
8273 (resolve_dynamic_range): Update call to
8274 resolve_dynamic_type_internal.
8275 (resolve_dynamic_union): Likewise.
8276 (resolve_dynamic_struct): Likewise.
8277 (resolve_dynamic_type): Likewise.
8279 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8281 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8284 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8286 * reply_mig_hack.awk: Robustify parsing.
8288 * reply_mig_hack.awk: Don't bother to declare an intermediate
8289 function pointer variable.
8291 2015-04-17 Doug Evans <dje@google.com>
8293 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8294 to "exec_displacement" to avoid confusion with inner use of the name.
8296 2015-04-17 Pedro Alves <palves@redhat.com>
8298 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8299 if HW point of TYPE isn't supported.
8301 2015-04-17 Yao Qi <yao.qi@linaro.org>
8302 Pedro Alves <palves@redhat.com>
8304 * target.h (target_can_use_hardware_watchpoint): Update comments.
8305 Remove trailing ";".
8307 2015-04-17 Gary Benson <gbenson@redhat.com>
8309 * remote.c (remote_add_inferior): New argument try_open_exec.
8310 If nonzero, attempt to open the inferior's executable file as
8311 the main executable if no main executable is open already.
8312 All callers updated.
8313 * NEWS: Mention that GDB now supports automatic location and
8314 retrieval of executable + files from remote targets.
8316 2015-04-17 Gary Benson <gbenson@redhat.com>
8318 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8319 * remote.c (PACKET_qXfer_exec_file): Likewise.
8320 (remote_protocol_features): Register the
8321 "qXfer:exec-file:read" feature.
8322 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8323 (remote_pid_to_exec_file): New function.
8324 (init_remote_ops): Initialize to_pid_to_exec_file.
8325 (_initialize_remote): Register new "set/show remote
8326 pid-to-exec-file-packet" command.
8327 * NEWS: Announce new qXfer:exec-file:read packet.
8329 2015-04-17 Gary Benson <gbenson@redhat.com>
8331 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8333 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8334 New function, factored out from...
8335 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8337 2015-04-17 Gary Benson <gbenson@redhat.com>
8339 * exec.c (solist.h): New include.
8340 (exec_file_locate_attach): Prefix absolute executable
8341 paths with gdb_sysroot if set.
8342 * NEWS: Mention that executable paths may be prepended
8345 2015-04-17 Gary Benson <gbenson@redhat.com>
8347 * solist.h (exec_file_find): New declaration.
8348 * solib.c (solib_find_1): New function, factored out from...
8349 (solib_find): ...here.
8350 (exec_file_find): New function.
8352 2015-04-17 Gary Benson <gbenson@redhat.com>
8354 * gdbcore.h (exec_file_locate_attach): New declaration.
8355 * exec.c (exec_file_locate_attach): New function, factored
8357 * infcmd.c (attach_command_post_wait): ...here.
8359 2015-04-17 Mike Frysinger <vapier@gentoo.org>
8361 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8363 2015-04-16 Yao Qi <yao.qi@linaro.org>
8365 * infrun.c (maybe_software_singlestep): Declare.
8366 (displaced_step_fixup): Call maybe_software_singlestep.
8368 2015-04-15 Doug Evans <dje@google.com>
8370 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8372 2015-04-15 Doug Evans <dje@google.com>
8374 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8376 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8378 * python/lib/gdb/command/unwinders.py: Add parentheses.
8380 2015-04-15 Yao Qi <yao.qi@linaro.org>
8382 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8384 2015-04-15 Yao Qi <yao.qi@linaro.org>
8386 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8388 2015-04-15 Yao Qi <yao.qi@linaro.org>
8390 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8391 dsc->insn_size instead of 4.
8393 2015-04-14 Gary Benson <gbenson@redhat.com>
8395 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8396 * minidebug.c (lzma_stat): Likewise.
8397 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8398 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8400 2015-04-13 Stan Shebs <stanshebs@google.com>
8402 * MAINTAINERS: Update my email address.
8404 2015-04-13 John Baldwin <jhb@FreeBSD.org>
8406 * amd64-tdep.c (amd64_target_description): New function.
8407 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8408 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8409 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8410 x86 extended save area.
8411 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8412 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8413 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8414 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8415 "amd64fbsd_read_description".
8416 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8417 (amd64fbsd_supply_xstateregset): New function.
8418 (amd64fbsd_collect_xstateregset): New function.
8419 Add "amd64fbsd_xstateregset".
8420 (amd64fbsd_iterate_over_regset_sections): New function.
8421 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8422 "I386_FBSD_XSAVE_XCR0_OFFSET".
8423 Add "iterate_over_regset_sections" gdbarch method.
8424 Add "core_read_description" gdbarch method.
8425 * i386-tdep.c (i386_target_description): New function.
8426 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8427 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8428 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8429 x86 extended save area.
8430 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8431 * i386bsd-nat.h: Export i386bsd_xsave_len.
8432 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8433 (_initialize_i386fbsd_nat): Set "to_read_description" to
8434 "i386fbsd_read_description".
8435 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8436 (i386fbsd_core_read_description): New function.
8437 (i386fbsd_supply_xstateregset): New function.
8438 (i386fbsd_collect_xstateregset): New function.
8439 Add "i386fbsd_xstateregset".
8440 (i386fbsd_iterate_over_regset_sections): New function.
8441 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8442 "I386_FBSD_XSAVE_XCR0_OFFSET".
8443 Add "iterate_over_regset_sections" gdbarch method.
8444 Add "core_read_description" gdbarch method.
8445 * i386fbsd-tdep.h: New file.
8447 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8449 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8450 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8452 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8454 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8456 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8458 * defs.h (xdb_commands): Remove declaration.
8459 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8460 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8461 * infcmd.c (run_no_args_command, go_command): Remove.
8462 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8463 * infrun.c (xdb_handle_command): Remove.
8464 (_initialize_infrun): Remove xdb_commands for lz and z.
8465 * main.c (xdb_commands): Remove variable.
8466 (captured_main): Remove "xdb" from long_options.
8467 (print_gdb_help): Remove --xdb from help.
8468 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8469 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8470 * stack.c (backtrace_full_command, args_plus_locals_info)
8471 (current_frame_command): Remove.
8472 (_initialize_stack): Remove xdb_commands for t, T and l.
8473 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8474 * thread.c (_initialize_thread): Remove xdb_commands condition.
8475 * tui/tui-layout.c (tui_toggle_layout_command)
8476 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8477 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8478 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8479 (tui_scroll_regs_backward_command): Remove.
8480 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8481 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8482 (_initialize_tui_win): Remove xdb_commands for U and w.
8483 * utils.c (pagination_on_command, pagination_off_command): Remove.
8484 (initialize_utils): Remove xdb_commands for am and sm.
8486 2015-04-10 Pedro Alves <palves@redhat.com>
8488 * infrun.c (displaced_step_fixup): Switch to the event ptid
8489 earlier. If the thread stopped for a watchpoint and the
8490 target/arch has non-continuable watchpoints, cancel the displaced
8492 (resume): Don't start a displaced step if in-line step-over info
8495 2015-04-10 Pedro Alves <palves@redhat.com>
8497 * infrun.c (displaced_step_in_progress): New function.
8498 (do_target_resume): Advise target to report all signals if
8501 2015-04-10 Pedro Alves <palves@redhat.com>
8504 * infrun.c (process_event_stop_test): Don't assume a step-resume
8505 is set if tp->stepped_breakpoint is true.
8507 2015-04-10 Yao Qi <yao.qi@linaro.org>
8509 * arm-tdep.c (install_alu_reg): Update comment.
8510 (thumb_copy_alu_reg): Remove local variable rn. Update
8511 debugging message. Use r2 instead of r1 in the modified
8514 2015-04-10 Pedro Alves <palves@redhat.com>
8517 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8518 linux_displaced_step_location as gdbarch_displaced_step_location
8520 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8521 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8522 * linux-tdep.c (linux_displaced_step_location): New function,
8523 based on ppc_linux_displaced_step_location.
8524 * linux-tdep.h (linux_displaced_step_location): New declaration.
8525 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8526 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8528 (ppc_linux_init_abi): Install linux_displaced_step_location as
8529 gdbarch_displaced_step_location hook, even without Cell/B.E..
8530 (_initialize_ppc_linux_tdep): Don't install
8531 ppc_linux_inferior_created as inferior_created observer.
8532 * s390-linux-tdep.c (s390_gdbarch_init): Install
8533 linux_displaced_step_location as gdbarch_displaced_step_location
8536 2015-04-09 Gary Benson <gbenson@redhat.com>
8538 * common/common-remote-fileio.h: Rename to...
8539 * common/fileio.h: ...this. Update all references.
8540 (remote_fileio_to_fio_error): Rename to...
8541 (host_to_fileio_error): ...this.
8542 (remote_fileio_to_be): Rename to...
8543 (host_to_bigendian): ...this. Update all callers.
8544 (remote_fileio_to_fio_uint): Rename to...
8545 (host_to_fileio_uint): ...this. Update all callers.
8546 (remote_fileio_to_fio_time): Rename to...
8547 (host_to_fileio_time): ...this. Update all callers.
8548 (remote_fileio_to_fio_stat): Rename to...
8549 (host_to_fileio_stat): ...this.
8550 Update all references.
8551 * common/common-remote-fileio.c: Rename to...
8552 * common/fileio.c: ...this. Update all references.
8553 (remote_fileio_to_fio_error): Rename to...
8554 (host_to_fileio_error): ...this. Update all callers.
8555 (remote_fileio_mode_to_target): Rename to...
8556 (fileio_mode_pack): ...this. Update all callers.
8557 (remote_fileio_to_fio_mode): Rename to...
8558 (host_to_fileio_mode): ...this. Update all callers.
8559 (remote_fileio_to_fio_ulong): Rename to...
8560 (host_to_fileio_ulong): ...this. Update all callers.
8561 (remote_fileio_to_fio_stat): Rename to...
8562 (host_to_fileio_stat): ...this. Update all callers.
8564 2015-04-09 Andy Wingo <wingo@igalia.com>
8566 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8567 (frame_functions): Bind gdbscm_frame_read_register to
8568 frame-read-register.
8569 * guile/lib/gdb.scm (frame-read-register): Export.
8571 2015-04-09 Gary Benson <gbenson@redhat.com>
8573 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8575 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8576 New function, factored out the named functions below.
8577 * inf-child.c (gdb/fileio.h): Remove include.
8578 (common-remote-fileio.h): New include.
8579 (inf_child_errno_to_fileio_error): Remove function. Update
8580 all callers to use remote_fileio_to_fio_error.
8581 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8583 2015-04-09 Andy Wingo <wingo@igalia.com>
8585 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8587 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8589 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8590 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8591 * configure: Regenerated.
8593 2015-04-09 Pedro Alves <palves@redhat.com>
8595 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8596 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8597 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8598 * gnulib/import/Makefile.am: Update.
8599 * gnulib/import/Makefile.in: Update.
8600 * gnulib/import/m4/gnulib-cache.m4: Update.
8601 * gnulib/import/m4/gnulib-comp.m4: Update.
8602 * gnulib/import/m4/strtok_r.m4: New file.
8603 * gnulib/import/strtok_r.c: New file.
8605 2015-04-09 Pedro Alves <palves@redhat.com>
8607 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8608 "called too early to check prototype".
8610 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8613 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8614 use a caching mechanism. Adjust comments and code to reflect
8615 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8616 (cmdpy_completer_handle_brkchars): Adjust call to
8617 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8618 (cmdpy_completer): Likewise.
8620 2015-04-08 Yao Qi <yao.qi@linaro.org>
8622 * spu-tdep.c (spu_gdbarch_init): Don't call
8623 set_gdbarch_cannot_step_breakpoint.
8625 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8627 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8629 2015-04-07 Pedro Alves <palves@redhat.com>
8631 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8632 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8633 (delete_exited_threads): New declaration.
8634 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8635 * linux-nat.c (linux_nat_update_thread_list): New function.
8636 (linux_nat_add_target): Install it.
8637 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8638 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8639 (delete_exited_threads): New function.
8641 2015-04-07 Pedro Alves <pedro@codesourcery.com>
8643 * infrun.c (resume) <displaced stepping debug output>: Get the
8644 leader thread's regcache, not resume_ptid's.
8646 2015-04-06 Doug Evans <xdje42@gmail.com>
8648 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8650 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8651 Include symbol domain in debugging output.
8653 2015-04-06 Pedro Alves <palves@redhat.com>
8654 Bernd Edlinger <bernd.edlinger@hotmail.de>
8656 * configure.ac: Remove the mingw32-specific stub-termcap.o
8657 fallback, and instead fallback to the stub termcap on all hosts.
8658 * configure: Regenerate.
8659 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8662 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8664 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8665 "top_level" parameter.
8666 (resolve_dynamic_type_internal): Remove the unused "top_level"
8667 parameter. Update call to is_dynamic_type_internal.
8668 (is_dynamic_type): Update call to is_dynamic_type_internal.
8669 (resolve_dynamic_range): Update call to
8670 resolve_dynamic_type_internal.
8671 (resolve_dynamic_union): Likewise.
8672 (resolve_dynamic_struct): Likewise.
8673 (resolve_dynamic_type): Likewise.
8675 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8677 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8678 TYPE_CODE_REF types so that they are not considered as dynamic
8679 depending on the referenced type.
8680 (resolve_dynamic_type_internal): Likewise.
8682 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8684 * Makefile.in (top_srcdir): New.
8685 * configure: Regenerated.
8687 2015-04-02 Gary Benson <gbenson@redhat.com>
8689 * NEWS: Announce the new default sysroot of "target:".
8691 2015-04-02 Gary Benson <gbenson@redhat.com>
8693 * main.c (captured_main): Set gdb_sysroot to "target:"
8694 if not otherwise set.
8696 2015-04-02 Gary Benson <gbenson@redhat.com>
8698 * exec.c (exec_file_attach): Support "target:" filenames.
8700 2015-04-02 Gary Benson <gbenson@redhat.com>
8702 * solib.c (solib_find): Strip "target:" prefix from sysroot
8703 if accessing local files.
8705 2015-04-02 Gary Benson <gbenson@redhat.com>
8707 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8708 checks and error messages.
8710 2015-04-02 Gary Benson <gbenson@redhat.com>
8712 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8713 (remote_filename_p): Remove declaration.
8714 (remote_bfd_open): Likewise.
8715 * remote.c (remote_bfd_iovec_open): Remove function.
8716 (remote_bfd_iovec_close): Likewise.
8717 (remote_bfd_iovec_pread): Likewise.
8718 (remote_bfd_iovec_stat): Likewise.
8719 (remote_filename_p): Likewise.
8720 (remote_bfd_open): Likewise.
8721 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8722 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8723 (gdb_bfd_open_maybe_remote): Remove function.
8724 (symfile_bfd_open): Replace remote filename check with
8725 target filename check.
8726 (reread_symbols): Use gdb_bfd_open.
8727 * build-id.c (gdbcore.h): New include.
8728 (build_id_to_debug_bfd): Use gdb_bfd_open.
8729 * infcmd.c (attach_command_post_wait): Remove remote filename
8731 * solib.c (solib_find): Replace remote-specific handling with
8732 target-specific handling. Update comments where necessary.
8733 (solib_bfd_open): Replace remote-specific handling with
8734 target-specific handling.
8735 (gdb_sysroot_changed): New function.
8736 (_initialize_solib): Call the above when gdb_sysroot changes.
8737 * windows-tdep.c (gdbcore.h): New include.
8738 (windows_xfer_shared_library): Use gdb_bfd_open.
8740 2015-04-02 Gary Benson <gbenson@redhat.com>
8742 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8743 (is_target_filename): New declaration.
8744 (gdb_bfd_has_target_filename): Likewise.
8745 (gdb_bfd_open): Update documentation comment.
8746 * gdb_bfd.c (target.h): New include.
8747 (gdb/fileio.h): Likewise.
8748 (is_target_filename): New function.
8749 (gdb_bfd_has_target_filename): Likewise.
8750 (fileio_errno_to_host): Likewise.
8751 (gdb_bfd_iovec_fileio_open): Likewise.
8752 (gdb_bfd_iovec_fileio_pread): Likewise.
8753 (gdb_bfd_iovec_fileio_close): Likewise.
8754 (gdb_bfd_iovec_fileio_fstat): Likewise.
8755 (gdb_bfd_open): Use target fileio to access paths prefixed
8756 with "target:" where necessary.
8758 2015-04-02 Gary Benson <gbenson@redhat.com>
8760 * target.h (struct target_ops) <to_filesystem_is_local>:
8762 (target_filesystem_is_local): New macro.
8763 * target-delegates.c: Regenerate.
8764 * remote.c (remote_filesystem_is_local): New function.
8765 (init_remote_ops): Initialize to_filesystem_is_local.
8767 2015-04-02 Gary Benson <gbenson@redhat.com>
8769 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8770 (target_fileio_fstat): New declaration.
8771 * target.c (target_fileio_fstat): New function.
8772 * inf-child.c (inf_child_fileio_fstat): Likewise.
8773 (inf_child_target): Initialize to_fileio_fstat.
8774 * remote.c (init_remote_ops): Likewise.
8776 2015-04-01 Sasha Smundak <asmundak@google.com>
8778 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8779 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8780 (py-unwind.o): New recipe.
8781 * NEWS: mention Python frame unwinding.
8782 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8783 gdb/unwinder.py and gdb/command/unwinder.py
8784 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8786 (execute_unwinders): New function.
8787 * python/lib/gdb/command/unwinders.py: New file.
8788 * python/lib/gdb/unwinder.py: New file.
8789 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8790 (objfpy_dealloc): Decrement frame_unwinders reference count.
8791 (objfpy_initialize): Create frame_unwinders list.
8792 (objfpy_get_frame_unwinders): New function.
8793 (objfpy_set_frame_unwinders): Ditto.
8794 (objfile_getset): Add frame_unwinders attribute to Objfile.
8795 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8796 (pspy_dealloc): Decrement frame_unwinders reference count.
8797 (pspy_initialize): Create frame_unwinders list.
8798 (pspy_get_frame_unwinders): New function.
8799 (pspy_set_frame_unwinders): Ditto.
8800 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8801 * python/py-unwind.c: New file.
8802 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8803 (objpy_get_frame_unwinders): New prototype.
8804 (gdbpy_initialize_unwind): New prototype.
8805 * python/python.c (gdbpy_apply_type_printers): Call
8806 gdbpy_initialize_unwind.
8808 2015-04-01 Pedro Alves <palves@redhat.com>
8810 * infrun.c (resume): Check currently_stepping after clearing
8811 stepped_breakpoint, not before.
8813 2015-04-01 Pedro Alves <palves@redhat.com>
8815 * infrun.c (print_target_wait_results): Print all the ptid
8818 2015-04-01 Pedro Alves <palves@redhat.com>
8820 * infrun.c (keep_going): Also discard cleanups if inserting
8823 2015-04-01 Pedro Alves <palves@redhat.com>
8825 * infrun.c (wait_for_inferior): Install the
8826 finish_thread_state_cleanup cleanup across the whole function, not
8827 just around handle_inferior_event.
8829 2015-04-01 Pedro Alves <palves@redhat.com>
8831 * infrun.c (resume) <step past permanent breakpoint>: Use
8834 2015-04-01 Pedro Alves <palves@redhat.com>
8836 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8838 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8840 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8842 2015-04-01 Pedro Alves <palves@redhat.com>
8844 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8845 list if it was marked exited.
8847 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8849 * configure: Regenerated.
8851 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8852 Jan Kratochvil <jan.kratochvil@redhat.com>
8853 Oleg Nesterov <oleg@redhat.com>
8856 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8857 New enum identifying the various options of the coredump_filter
8859 (struct smaps_vmflags): New struct.
8860 (use_coredump_filter): New variable.
8861 (decode_vmflags): New function.
8862 (mapping_is_anonymous_p): Likewise.
8863 (dump_mapping_p): Likewise.
8864 (linux_find_memory_regions_full): New variables
8865 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8866 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
8867 parsing of its information. Implement memory mapping filtering
8868 based on its contents.
8869 (show_use_coredump_filter): New function.
8870 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8871 * NEWS: Mention the possibility of using the
8872 '/proc/PID/coredump_filter' file when generating a corefile.
8873 Mention new command 'set use-coredump-filter'.
8875 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8877 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8878 read_memory_unsigned_integer.
8880 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
8882 * Makefile.in (ZLIB): New.
8883 (ZLIBINC): Likewise.
8884 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8885 (CLIBS): Add $(ZLIB).
8886 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8888 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8889 * top.c (print_gdb_configuration): Remove --with-zlib and
8891 * config.in: Regenerated.
8892 * configure: Likewise.
8894 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8896 * NEWS: Mention info os cpus support.
8897 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8898 (struct osdata_type): Add cpus entry, reorder the entries in
8901 2015-03-31 Matthias Klose <doko@ubuntu.com>
8903 * compile/compile.c (compile_to_object): Allow triplets with or
8906 2015-03-30 Doug Evans <dje@google.com>
8909 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8910 klass in VAR_DOMAIN.
8912 2015-03-30 Gary Benson <gbenson@redhat.com>
8914 * remote.c (remote_mourn_1): Remove function. Update all callers
8915 to use remote_mourn.
8916 (extended_remote_mourn_1): Remove function. Update all callers
8917 to use extended_remote_mourn.
8918 (extended_remote_attach_1): Remove function. Update all callers
8919 to use extended_remote_attach.
8921 2015-03-28 James Bowman <james.bowman@ftdichip.com>
8923 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8924 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8925 (ALLDEPFILES): Add ft32-tdep.c.
8926 * configure.tgt: Add FT32 entry.
8927 * ft32-tdep.c: New file, FT32 target-dependent code.
8928 * ft32-tdep.h: New file, FT32 target-dependent code.
8930 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8933 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8935 * printcmd.c (print_command_1): Move expr variable scope.
8937 2015-03-27 Joel Brobecker <brobecker@adacore.com>
8939 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
8941 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
8943 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
8946 2015-03-26 Joel Brobecker <brobecker@adacore.com>
8948 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
8949 exception raised while parsing the probe arguments.
8950 Force parsing to be done using the C language parser.
8951 * expression.h (parse_expression_with_language): Declare.
8952 * parse.c (parse_expression_with_language): New function.
8954 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
8956 * MAINTAINERS (Write After Approval): Add "Jon Turney".
8958 2015-03-26 Andy Wingo <wingo@igalia.com>
8961 * dwarf2read.c (struct partial_die_info): Add has_const_value
8963 (add_partial_symbol): Don't punt on symbols that have const_value
8965 (read_partial_die): Detect DW_AT_const_value.
8967 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8970 * printcmd.c (print_command_1): Move expr variable scope.
8972 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8975 * printcmd.c (validate_format): Make the parameter cmdname const.
8977 2015-03-26 Don Breazeal <donb@codesourcery.com>
8979 * remote.c (_initialize_remote): Update comment.
8981 2015-03-26 Pedro Alves <palves@redhat.com>
8982 Jon TURNEY <jon.turney@dronecode.org.uk>
8984 * coffread.c (coff_symfile_read): When constructing the name of an
8985 import stub symbol from import symbol for amd64, only skip the
8986 char after _imp_ if the target is underscored (like i386) and the
8987 char is indeed the target's leading char.
8989 2015-03-25 Pedro Alves <palves@redhat.com>
8991 * target.h <to_async>: Replace 'callback' and 'context' parameters
8992 with boolean 'enable' parameter.
8993 (target_async): Replace CALLBACK and CONTEXT parameters with
8994 boolean ENABLE parameter.
8995 * inf-loop.c (inferior_event_handler): Adjust.
8996 * linux-nat.c (linux_nat_attach, linux_nat_resume)
8997 (linux_nat_resume): Adjust.
8998 (async_client_callback, async_client_context): Delete.
8999 (handle_target_event): Call inferior_event_handler directly.
9000 (linux_nat_async): Replace 'callback' and 'context' parameters
9001 with boolean 'enable' parameter. Adjust. Remove references to
9002 async_client_callback and async_client_context.
9003 (linux_nat_close): Adjust.
9004 * record-btrace.c (record_btrace_async): Replace 'callback' and
9005 'context' parameters with boolean 'enable' parameter. Adjust.
9006 (record_btrace_resume): Adjust.
9007 * record-full.c (record_full_async): Replace 'callback' and
9008 'context' parameters with boolean 'enable' parameter. Adjust.
9009 (record_full_resume, record_full_core_resume): Adjust.
9010 * remote.c (struct remote_state) <async_client_callback,
9011 async_client_context>: Delete fields.
9012 (remote_start_remote, extended_remote_attach_1, remote_resume)
9013 (extended_remote_create_inferior): Adjust.
9014 (remote_async_serial_handler): Call inferior_event_handler
9016 (remote_async): Replace 'callback' and 'context' parameters with
9017 boolean 'enable' parameter. Adjust.
9018 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
9020 * target-delegates.c: Regenerate.
9022 2015-03-25 Gary Benson <gbenson@redhat.com>
9023 Pedro Alves <palves@redhat.com>
9025 * target.c (fileio_ft_t): New typedef, define object vector.
9026 (fileio_fhandles): New static variable.
9027 (is_closed_fileio_fh): New macro.
9028 (lowest_closed_fd): New static variable.
9029 (acquire_fileio_fd): New function.
9030 (release_fileio_fd): Likewise.
9031 (fileio_fd_to_fh): New macro.
9032 (target_fileio_open): Wrap the file descriptor on success.
9033 (target_fileio_pwrite): Updated to use wrapped file descriptor.
9034 (target_fileio_pread): Likewise.
9035 (target_fileio_close): Likewise.
9037 2015-03-24 Pedro Alves <palves@redhat.com>
9039 * thread.c (thread_apply_all_command): Take exited threads into
9042 2015-03-24 Pedro Alves <palves@redhat.com>
9044 * infrun.c (resume, proceed): Mention
9045 switch_back_to_stepped_thread, not switch_back_to_stepping.
9047 2015-03-24 Pedro Alves <palves@redhat.com>
9049 * infrun.c (user_visible_resume_ptid): Rewrite going from
9050 most-locked to unlocked instead of the opposite. Move comment ...
9051 * infrun.h (user_visible_resume_ptid): ... here.
9053 2015-03-24 Pedro Alves <palves@redhat.com>
9055 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9056 to resume the event lwp. Use the lwp's ptid instead of the passed
9057 in (maybe wildcard) ptid.
9058 (stop_wait_callback): Tweak debug log output.
9059 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9061 (linux_nat_filter_event): In debug output, distinguish a
9062 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9063 before trying to resume the lwp.
9065 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9067 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9068 pointer indirection.
9069 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9070 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9072 2015-03-24 Joel Brobecker <brobecker@adacore.com>
9074 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9075 Renames DYN_ATTR_DATA_LOCATION.
9076 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9077 DYN_ATTR_DATA_LOCATION.
9078 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9079 instead of DYN_ATTR_DATA_LOCATION.
9081 2015-03-24 Pedro Alves <palves@redhat.com>
9083 * breakpoint.c (until_break_command): Adjust call to proceed.
9084 * gdbthread.h (struct thread_control_state) <stepping_command>:
9086 * infcall.c (run_inferior_call): Adjust call to proceed.
9087 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9088 Adjust calls to proceed.
9089 (set_step_frame): Set the current thread's step_start_function
9091 (step_once): Adjust calls to proceed.
9092 (jump_command, signal_command, until_next_command)
9093 (finish_backward, finish_forward, proceed_after_attach_callback)
9094 (attach_command_post_wait): Adjust calls to proceed.
9095 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9096 (do_target_resume): New function, factored out from ...
9097 (resume): ... here. Remove 'step' parameter. Instead, check
9098 currently_stepping to determine whether the thread should be
9100 (proceed): Remove 'step' parameter and don't set the thread's
9101 step_start_function here. Adjust call to 'resume'.
9102 (handle_inferior_event): Adjust calls to 'resume'.
9103 (switch_back_to_stepped_thread): Use do_target_resume instead of
9105 (keep_going): Adjust calls to 'resume'.
9106 * infrun.h (proceed): Remove 'step' parameter.
9108 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9110 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9112 2015-03-24 Pedro Alves <palves@redhat.com>
9114 * gdbthread.h (struct thread_control_state) <stepping_command>:
9116 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9117 the thread's stepping_command field.
9118 * infrun.c (resume): Check the thread's stepping_command flag to
9119 determine which threads should be resumed. Rename 'entry_step'
9121 (clear_proceed_status_thread): Clear 'stepping_command'.
9122 (schedlock_applies): Change parameter type to struct thread_info
9124 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9125 (switch_back_to_stepped_thread): Adjust calls to
9126 'schedlock_applies'.
9127 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9129 2015-03-24 Pedro Alves <palves@redhat.com>
9131 * infrun.c (step_start_function): Delete and ...
9132 * gdbthread.h (struct thread_control_state) <step_start_function>:
9133 ... now a field here.
9134 * infrun.c (clear_proceed_status_thread): Clear the thread's
9135 step_start_function.
9136 (proceed, process_event_stop_test, print_stop_event): Adjust.
9138 2015-03-24 Pedro Alves <palves@redhat.com>
9140 * infrun.c (proceed): No longer handle negative step.
9142 2015-03-24 Gary Benson <gbenson@redhat.com>
9144 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9145 (x86_linux_prepare_to_resume): Likewise.
9146 * x86-linux-nat.c (x86_linux_new_thread):
9147 Moved to nat/x86-linux.c.
9148 (x86_linux_prepare_to_resume): Likewise.
9149 * nat/x86-linux.c (x86_linux_new_thread): New function.
9150 (x86_linux_prepare_to_resume): Likewise.
9152 2015-03-24 Gary Benson <gbenson@redhat.com>
9154 * nat/x86-linux-dregs.h: New file.
9155 * nat/x86-linux-dregs.c: Likewise.
9156 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9157 (x86-linux-dregs.o): New rule.
9158 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9159 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9160 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9161 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9162 (x86_linux_dr_get): Likewise.
9163 (x86_linux_dr_set): Likewise.
9164 (x86_linux_dr_get_addr): Likewise.
9165 (x86_linux_dr_get_control): Likewise.
9166 (x86_linux_dr_get_status): Likewise.
9167 (update_debug_registers_callback): Likewise.
9168 (x86_linux_dr_set_control): Likewise.
9169 (x86_linux_dr_set_addr): Likewise.
9170 (x86_linux_update_debug_registers): Likewise.
9172 2015-03-24 Gary Benson <gbenson@redhat.com>
9174 * x86-linux-nat.c (x86_linux_update_debug_registers):
9175 New function, factored out from...
9176 (x86_linux_prepare_to_resume): ...this.
9178 2015-03-24 Gary Benson <gbenson@redhat.com>
9180 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9181 (x86_linux_dr_set): Likewise.
9182 (x86_linux_dr_get_addr): Likewise.
9183 (x86_linux_dr_get_control): Likewise.
9184 (x86_linux_dr_get_status): Likewise.
9185 (update_debug_registers_callback): Likewise.
9186 (x86_linux_dr_set_control): Likewise.
9187 (x86_linux_dr_set_addr): Likewise.
9188 (x86_linux_prepare_to_resume): Likewise.
9189 (x86_linux_new_thread): Likewise.
9191 2015-03-24 Gary Benson <gbenson@redhat.com>
9193 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9194 (x86_linux_new_thread): Rename argument.
9196 2015-03-24 Gary Benson <gbenson@redhat.com>
9198 * nat/x86-linux.h: New file.
9199 * nat/x86-linux.c: Likewise.
9200 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9201 (x86-linux.o): New rule.
9202 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9203 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9204 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9205 (lwp_set_arch_private_info): New declaration.
9206 (lwp_arch_private_info): Likewise.
9207 * linux-nat.c (lwp_set_arch_private_info): New function.
9208 (lwp_arch_private_info): Likewise.
9209 * x86-linux-nat.c: Include nat/x86-linux.h.
9210 (arch_lwp_info): Removed structure.
9211 (update_debug_registers_callback):
9212 Use lwp_set_debug_registers_changed.
9213 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9214 and lwp_set_debug_registers_changed.
9215 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9217 2015-03-24 Gary Benson <gbenson@redhat.com>
9219 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9220 (lwp_is_stopped): Likewise.
9221 (lwp_stop_reason): Likewise.
9222 * linux-nat.c (ptid_of_lwp): New function.
9223 (lwp_is_stopped): Likewise.
9224 (lwp_is_stopped_by_watchpoint): Likewise.
9225 * x86-linux-nat.c (update_debug_registers_callback):
9227 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9230 2015-03-24 Gary Benson <gbenson@redhat.com>
9232 * linux-nat.h (linux_stop_lwp): Move declaration to...
9233 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9235 2015-03-24 Gary Benson <gbenson@redhat.com>
9237 * linux-nat.h: Include nat/linux-nat.h.
9238 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9239 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9240 (iterate_over_lwps_ftype): New typedef.
9241 (iterate_over_lwps): New declaration.
9242 * linux-nat.h (iterate_over_lwps): Update comment. Use
9243 iterate_over_lwps_ftype. Update callback return value check.
9245 2015-03-24 Gary Benson <gbenson@redhat.com>
9247 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9248 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9250 2015-03-24 Gary Benson <gbenson@redhat.com>
9252 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9253 * linux-nat.c (current_lwp_ptid): New function.
9254 * x86-linux-nat.c: Include nat/linux-nat.h.
9255 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9256 (x86_linux_dr_get_control): Likewise.
9257 (x86_linux_dr_get_status): Likewise.
9258 (x86_linux_dr_set_control): Likewise.
9259 (x86_linux_dr_set_addr): Likewise.
9261 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9263 PR breakpoints/16466
9264 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9266 2015-03-23 Joel Brobecker <brobecker@adacore.com>
9268 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9269 * ser-unix.c (hardwire_setparity): Likewise.
9271 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9273 * NEWS: Mention set/show serial parity command.
9274 * monitor.c (monitor_open): Call serial_setparity.
9275 * remote.c (remote_open_1): Likewise.
9276 * ser-base.c (ser_base_serparity): New function.
9277 * ser-base.h (ser_base_setparity): Add declaration.
9278 * ser-go32.c (dos_ops): Set "setparity" field.
9279 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9281 (ser_windows_setparity): New function.
9282 (hardwire_ops): Add ser_windows_setparity.
9283 (tty_ops): Add NULL for setparity field.
9284 (pipe_ops): Add ser_base_setparity.
9285 (tcp_ops): Likewise.
9286 * ser-pipe.c (pipe_ops): Likewise.
9287 * ser-tcp.c (tcp_ops): Likewise.
9288 * ser-unix.c (hardwire_setparity): Add declaration.
9289 (hardwire_raw): Don't reset PARENB flag.
9290 (hardwire_setparity): New function.
9291 (hardwire_ops): Add hardwire_setparity.
9292 * serial.c (serial_setparity): New function.
9293 (serial_parity): New global.
9294 (parity_none, parity_odd, parity_even, parity_enums, parity):
9296 (set_parity): New function.
9297 (_initialize_serial): Add set/show serial parity commands.
9298 * serial.h (GDBPARITY_NONE): Define.
9299 (GDBPARITY_ODD): Define.
9300 (GDBPARITY_EVEN): Define.
9301 (serial_setparity) Add declaration.
9302 (struct serial_ops): Add setparity field.
9303 * target.h (serial_parity): Add declaration.
9305 2015-03-23 Keith Seitz <keiths@redhat.com>
9307 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9309 2015-03-23 Keith Seitz <keiths@redhat.com>
9311 * breakpoint.c (parse_breakpoint_sals): Use
9312 linespec_lexer_lex_keyword to ascertain if the user specified
9314 * linespec.c [IF_KEYWORD_INDEX]: Define.
9315 (linespec_lexer_lex_keyword): Export.
9316 (struct ls_parser) <keyword_ok>: Remove.
9317 A keyword is only a keyword if not followed by another keyword.
9318 (linespec_lexer_lex_one): Remove keyword_ok handling.
9319 Add comment explaining why the parsing stream is not advanced
9320 when a keyword is seen.
9321 (parse_linespec): Remove parser->keyword_ok.
9322 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9324 2015-03-23 Keith Seitz <keiths@redhat.com>
9327 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9328 if we find a static method with DW_AT_vtable_elem_location.
9330 2015-03-21 Eli Zaretskii <eliz@gnu.org>
9332 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9333 before the second loop, to avoid undefined behavior. Reported by
9334 Anton Blanchard <anton@samba.org>.
9336 2015-03-20 Keven Boell <keven.boell@intel.com>
9338 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9339 data_location usage to linked list.
9340 (resolve_dynamic_type_internal): Adapt data_location to
9342 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9343 (copy_type_recursive, copy_type): Add copy of linked list.
9344 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9345 (struct dynamic_prop_list): New struct.
9346 * dwarf2read.c (set_die_type): Set data_location data.
9348 2015-03-20 Pedro Alves <palves@redhat.com>
9350 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9351 inner block and make it const.
9352 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9354 2015-03-20 Pedro Alves <palves@redhat.com>
9356 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9357 * breakpoint.h (set_breakpoint_condition): Update declaration.
9359 2015-03-20 Pedro Alves <palves@redhat.com>
9361 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9363 2015-03-20 Pedro Alves <palves@redhat.com>
9365 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9367 2015-03-20 Pedro Alves <palves@redhat.com>
9369 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9371 2015-03-20 Pedro Alves <palves@redhat.com>
9373 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9374 (nto_init_solib_absolute_prefix): Likewise.
9376 2015-03-20 Pedro Alves <palves@redhat.com>
9378 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9379 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9381 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9383 * config/djgpp/README: Remove gdb.hp.
9385 2015-03-20 Yao Qi <yao.qi@linaro.org>
9387 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9388 set_gdbarch_cannot_step_breakpoint.
9390 2015-03-19 Pedro Alves <palves@redhat.com>
9392 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9393 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9394 instead call perror_with_name.
9395 (check_ptrace_stopped_lwp_gone): New function.
9396 (linux_resume_one_lwp): Reimplement as wrapper around
9397 linux_resume_one_lwp_throw that swallows errors if the LWP is
9399 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9400 swallows errors if the LWP is gone. Use
9401 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9403 2015-03-19 Pedro Alves <palves@redhat.com>
9405 * linux-nat.c (status_callback): Return early if the LWP has no
9408 2015-03-19 Pedro Alves <palves@redhat.com>
9410 * linux-nat.c (select_event_lwp_callback): Update comment to no
9411 longer mention SIGTRAP.
9413 2015-03-18 Tristan Gingold <gingold@adacore.com>
9415 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9416 redirection code to ...
9417 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9418 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
9420 2015-03-18 Gary Benson <gbenson@redhat.com>
9422 (remote_protocol_features): Remove the "vFile:fstat" feature.
9423 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9425 2015-03-11 Yao Qi <yao.qi@linaro.org>
9428 * aarch64-linux-tdep.c: Include xml-syscall.h
9429 (aarch64_linux_get_syscall_number): New function.
9430 (aarch64_linux_init_abi): Call
9431 set_gdbarch_get_syscall_number.
9432 * syscalls/aarch64-linux.xml: New file.
9434 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9436 * ser-base.h (ser_base_setstopbits): Change second argument name
9437 from "rate" to "num".
9439 2015-03-17 Gary Benson <gbenson@redhat.com>
9440 Luke Allardyce <lukeallardyce@gmail.com>
9443 * common/common-remote-fileio.h (sys/stat.h): New include.
9444 (stuct stat): Remove forward declaration.
9446 2015-03-16 John Baldwin <jhb@FreeBSD.org>
9448 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9449 before writing core register notes.
9451 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9452 Pedro Alves <palves@redhat.com>
9454 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9455 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9456 (tgoto): Wrap with extern "C".
9458 2015-03-16 Pedro Alves <palves@redhat.com>
9459 Yuanhui Zhang <asmwarrior@gmail.com>
9461 * stub-termcap.c (tputs): Change prototype.
9463 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9464 Pedro Alves <palves@redhat.com>
9466 * windows-nat.c (struct thread_info_struct): Rename to ...
9467 (struct windows_thread_info_struct): ... this.
9468 (thread_info): Rename to ...
9469 (windows_thread_info): ... this.
9472 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9473 Pedro Alves <palves@redhat.com>
9475 * NEWS: New Removed targets and native configurations.
9477 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9480 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9481 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9482 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9483 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9484 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9485 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9486 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9488 * config/ia64/hpux.mh: Remove file.
9489 * config/pa/hpux.mh: Remove file.
9490 * configure: Rebuilt.
9491 * configure.ac (dlgetmodinfo, somread.o): Remove.
9492 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9493 (ia64-*-hpux*): Remove its float format exception.
9494 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9495 * hppa-hpux-nat.c: Remove file.
9496 * hppa-hpux-tdep.c: Remove file.
9497 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9498 Move them here from hppa-tdep.h
9499 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9500 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9501 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9502 Move them to hppa-tdep.c.
9503 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9505 * ia64-hpux-nat.c: Remove file.
9506 * ia64-hpux-tdep.c: Remove file.
9507 * ia64-hpux-tdep.h: Remove file.
9508 * inf-ttrace.c: Remove file.
9509 * inf-ttrace.h: Remove file.
9510 * solib-ia64-hpux.c: Remove file.
9511 * solib-ia64-hpux.h: Remove file.
9512 * solib-pa64.c: Remove file.
9513 * solib-pa64.h: Remove file.
9514 * solib-som.c: Remove file.
9515 * solib-som.h: Remove file.
9516 * somread.c: Remove file.
9518 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9520 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9521 * config.in: Regenerate.
9522 * configure: Regenerate.
9523 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
9525 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9526 enumerate memory regions if present.
9528 2015-03-13 John Baldwin <jhb@FreeBSD.org>
9530 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9531 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9533 (i386fbsd_sigtramp_p): Likewise.
9535 2015-03-12 John Baldwin <jhb@FreeBSD.org>
9537 * MAINTAINERS (Write After Approval): Add John Baldwin.
9539 2015-03-12 Gary Benson <gbenson@redhat.com>
9541 * solib.c (_initialize_solib): Make "set/show sysroot" use
9542 add_setshow_optional_filename_cmd so it can be restored to
9543 empty after being set.
9545 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9547 * Makefile.in (SFILES): New source break-catch-syscall.c.
9548 (COMMON_OBS): New object break-catch-syscall.o.
9549 * break-catch-syscall.c: New file.
9550 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9551 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9552 (struct syscall_catchpoint): Likewise.
9553 (dtor_catch_syscall): Likewise.
9554 (catch_syscall_inferior_data): Likewise.
9555 (struct catch_syscall_inferior_data): Likewise.
9556 (get_catch_syscall_inferior_data): Likewise.
9557 (catch_syscall_inferior_data_cleanup): Likewise.
9558 (insert_catch_syscall): Likewise.
9559 (remove_catch_syscall): Likewise.
9560 (breakpoint_hit_catch_syscall): Likewise.
9561 (print_it_catch_syscall): Likewise.
9562 (print_one_catch_syscall): Likewise.
9563 (print_mention_catch_syscall): Likewise.
9564 (print_recreate_catch_syscall): Likewise.
9565 (catch_syscall_breakpoint_ops): Likewise.
9566 (syscall_catchpoint_p): Likewise.
9567 (create_syscall_event_catchpoint): Likewise.
9568 (catch_syscall_split_args): Likewise.
9569 (catch_syscall_command_1): Likewise.
9570 (is_syscall_catchpoint_enabled): Likewise.
9571 (catch_syscall_enabled): Likewise.
9572 (catching_syscall_number): Likewise.
9573 (catch_syscall_completer): Likewise.
9574 (clear_syscall_counts): Likewise.
9575 (initialize_breakpoint_ops): Move initialization of syscall
9576 catchpoints to break-catch-syscall.c.
9577 (_initialize_breakpoint): Move code related to syscall catchpoints
9578 to break-catch-syscall.c.
9580 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9582 * breakpoint.c (breakpoint_find_if): New function.
9583 * breakpoint.h (breakpoint_find_if): New prototype.
9585 2015-03-11 Gary Benson <gbenson@redhat.com>
9587 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9588 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9589 (remote_fileio_to_host_ulong): Likewise.
9590 (remote_fileio_to_host_mode): Likewise.
9591 (remote_fileio_to_host_time): Likewise.
9592 (remote_fileio_to_host_stat): Likewise.
9593 * remote.c (PACKET_vFile_fstat): New enum value.
9594 (remote_protocol_features): Register the "vFile:fstat" feature.
9595 (remote_hostio_fstat): New function.
9596 (remote_bfd_iovec_stat): Use the above.
9597 (_initialize_remote): Register new "set/show remote
9598 hostio-fstat-packet" command.
9599 * symfile.c (separate_debug_file_exists): Update comment.
9600 * NEWS: Announce new vFile:fstat packet.
9602 2015-03-11 Gary Benson <gbenson@redhat.com>
9604 * common/common-remote-fileio.h: New file.
9605 * common/common-remote-fileio.c: Likewise.
9606 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9607 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9608 (COMMON_OBS): Add common-remote-fileio.o.
9609 (common-remote-fileio.o): New rule.
9610 * remote-fileio.h (common-remote-fileio.h): New include.
9611 * remote-fileio.c (gdb/fileio.h): Do not include.
9612 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9613 (remote_fileio_to_fio_uint): Likewise.
9614 (remote_fileio_to_fio_time): Likewise.
9615 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9616 (remote_fileio_to_fio_mode): Likewise.
9617 (remote_fileio_to_fio_ulong): Likewise.
9618 (remote_fileio_to_fio_stat): Likewise.
9620 2015-03-11 Andy Wingo <wingo@igalia.com>
9622 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9623 we were checking the cached type, not the cached dynamic type.
9625 2015-03-11 Andy Wingo <wingo@igalia.com>
9627 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9628 other strings, as these are on the GC'd heap, and will be
9629 collected along with the smob.
9631 2015-03-11 Andy Wingo <wingo@igalia.com>
9633 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9634 (objfile_functions): Bind gdbscm_objfile_progspace to
9636 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9638 2015-03-11 Andy Wingo <wingo@igalia.com>
9640 * guile/guile.c (_initialize_guile): Disable automatic
9641 finalization, if Guile offers us that possibility.
9642 * guile/guile.c (call_initialize_gdb_module):
9643 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9644 finalizers in appropriate places.
9645 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9646 scm_set_automatic_finalization_enabled.
9647 * configure: Regenerated.
9649 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9651 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9654 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9656 * s390-linux-nat.c (struct arch_lwp_info): New.
9657 (s390_fix_watch_points): Rename to...
9658 (s390_prepare_to_resume): ...this. Skip the PER info update
9659 unless the watch points have changed.
9660 (s390_refresh_per_info, s390_new_thread): New functions.
9661 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9662 s390_fix_watch_points.
9663 (s390_remove_watchpoint): Likewise.
9664 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9665 Register s390_prepare_to_resume.
9667 2015-03-09 Pedro Alves <palves@redhat.com>
9670 2015-03-07 Pedro Alves <palves@redhat.com>
9671 * common/gdb_socket.h: New file.
9672 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9674 (net_open): Use union gdb_sockaddr_u.
9676 2015-03-07 Pedro Alves <palves@redhat.com>
9678 * configure.ac (build_warnings): Move -Wmissing-prototypes
9679 -Wdeclaration-after-statement -Wmissing-parameter-type
9680 -Wold-style-declaration -Wold-style-definition to the C-specific
9682 * configure: Regenerate.
9684 2015-03-07 Pedro Alves <palves@redhat.com>
9686 * common/gdb_socket.h: New file.
9687 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9689 (net_open): Use union gdb_sockaddr_u.
9691 2015-03-07 Pedro Alves <palves@redhat.com>
9693 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9694 (exceptions_state_mc_action_iter)
9695 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9697 [__cplusplus] (try_scope_depth): New global.
9698 [__cplusplus] (exception_try_scope_entry)
9699 (exception_try_scope_exit, gdb_exception_sliced_copy)
9700 (exception_rethrow): New functions.
9701 (throw_exception): In C++ mode, throw
9702 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9703 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9704 (throw_it): In C++ mode, use try_scope_depth.
9705 * common/common-exceptions.h [!__cplusplus]
9706 (exceptions_state_mc_action_iter)
9707 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9709 [__cplusplus] (exception_try_scope_entry)
9710 (exception_try_scope_exit, exception_rethrow): Declare.
9711 [__cplusplus] (struct exception_try_scope): New struct.
9712 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9714 (struct gdb_exception_RETURN_MASK_ALL)
9715 (struct gdb_exception_RETURN_MASK_ERROR)
9716 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9718 2015-03-07 Pedro Alves <palves@redhat.com>
9720 * main.c (handle_command_errors): Remove volatile qualifier from
9723 2015-03-07 Pedro Alves <palves@redhat.com>
9725 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9727 * gdbtypes.c (safe_parse_type): Remove empty line.
9728 (types_deeply_equal):
9729 * guile/scm-frame.c (gdbscm_frame_name):
9730 * linux-thread-db.c (find_new_threads_once):
9731 * python/py-breakpoint.c (bppy_get_commands):
9732 * record-btrace.c (record_btrace_insert_breakpoint)
9733 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9734 (record_btrace_start_replaying): Adjust to avoid code between TRY
9737 2015-03-07 Pedro Alves <palves@redhat.com>
9739 * common/common-exceptions.c (struct catcher) <exception>: No
9740 longer a pointer to volatile exception. Now an exception value.
9741 <mask>: Delete field.
9742 (exceptions_state_mc_init): Remove all parameters. Adjust.
9743 (exceptions_state_mc): No longer pop the catcher here.
9744 (exceptions_state_mc_catch): New function.
9745 (throw_exception): Adjust.
9746 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9748 (exceptions_state_mc_catch): Declare.
9749 (TRY_CATCH): Rename to ...
9750 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9751 (CATCH, END_CATCH): New.
9752 All callers adjusted.
9754 2015-03-07 Tom Tromey <tromey@redhat.com>
9756 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9758 2015-03-07 Pedro Alves <palves@redhat.com>
9760 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9761 (amd64_epilogue_frame_cache): Normal exception handling code.
9762 * break-catch-throw.c (check_status_exception_catchpoint)
9763 (re_set_exception_catchpoint): Ditto.
9764 * cli/cli-interp.c (safe_execute_command):
9765 * cli/cli-script.c (script_from_file): Ditto.
9766 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9768 * compile/compile-object-run.c (compile_object_run): Ditto.
9769 * cp-abi.c (baseclass_offset): Ditto.
9770 * cp-valprint.c (cp_print_value): Ditto.
9771 * exceptions.c (catch_exceptions_with_msg):
9772 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9773 * frame.c (get_frame_address_in_block_if_available): Ditto.
9774 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9775 (i386_sigtramp_frame_cache): Ditto.
9776 * infcmd.c (post_create_inferior): Ditto.
9777 * linespec.c (parse_linespec, find_linespec_symbols):
9778 * p-valprint.c (pascal_object_print_value): Ditto.
9779 * parse.c (parse_expression_for_completion): Ditto.
9780 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9781 * remote.c (remote_get_noisy_reply): Ditto.
9782 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9783 * solib-svr4.c (solib_svr4_r_map): Ditto.
9785 2015-03-06 Gary Benson <gbenson@redhat.com>
9787 * common/common-utils.h (startswith): New inline function.
9788 All places where this logic was used updated to use the above.
9790 2015-03-05 Pedro Alves <palves@redhat.com>
9793 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9794 after reading the breakpoint's shadow memory.
9796 2015-03-05 Mark Kettenis <kettenis@gnu.org>
9798 * hppabsd-nat.c: Remove file.
9799 * hppaobsd-nat.c: New file.
9800 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9802 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9805 2015-03-04 Pedro Alves <palves@redhat.com>
9807 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9808 (target_decr_pc_after_break): Delete declaration.
9809 * target.c (default_target_decr_pc_after_break)
9810 (target_decr_pc_after_break): Delete.
9811 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9812 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9813 * linux-thread-db.c (check_event): Likewise.
9814 * infrun.c (adjust_pc_after_break): Likewise.
9815 * darwin-nat.c (cancel_breakpoint): Likewise.
9816 * aix-thread.c (aix_thread_wait): Likewise.
9817 * target-delegates.c: Regenerate.
9819 2015-03-04 Pedro Alves <palves@redhat.com>
9821 * linux-nat.c (save_sigtrap): Check for breakpoints before
9822 checking watchpoints.
9823 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9824 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9825 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9826 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9827 (linux_nat_stopped_by_sw_breakpoint)
9828 (linux_nat_supports_stopped_by_sw_breakpoint)
9829 (linux_nat_stopped_by_hw_breakpoint)
9830 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9831 (linux_nat_wait_1): Don't re-increment the PC if relying on
9832 SIGTRAP's siginfo->si_code.
9833 (linux_nat_add_target): Install new target methods.
9834 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9835 offset if the target already adjusted the PC.
9836 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9837 (GDB_ARCH_TRAP_BRKPT): New.
9838 (TRAP_HWBKPT): Define if not already defined.
9840 2015-03-04 Pedro Alves <palves@redhat.com>
9842 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9843 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9845 <stop_reason>: New field.
9846 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9847 (packet_set_cmd_state): New function.
9848 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9850 (remote_query_supported): If not disabled with the corresponding
9851 "set remote foo-packet" command, report support for the swbreak
9852 and hwbreak features.
9853 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9855 <stop_reason>: New field.
9856 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9857 (remote_wait_as): Adjust.
9858 (remote_stopped_by_sw_breakpoint)
9859 (remote_supports_stopped_by_sw_breakpoint)
9860 (remote_stopped_by_hw_breakpoint)
9861 (remote_supports_stopped_by_hw_breakpoint): New functions.
9862 (remote_stopped_by_watchpoint): New function.
9863 (init_remote_ops): Install them.
9864 (_initialize_remote): Register new "set/show remote
9865 swbreak-feature-packet" and "set/show remote
9866 swbreak-feature-packet" commands.
9868 2015-03-04 Pedro Alves <palves@redhat.com>
9870 * btrace.h: Include target/waitstatus.h.
9871 (struct btrace_thread_info) <stop_reason>: New field.
9872 * record-btrace.c (record_btrace_step_thread): Use
9873 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9874 (record_btrace_decr_pc_after_break): Delete.
9875 (record_btrace_stopped_by_sw_breakpoint)
9876 (record_btrace_supports_stopped_by_sw_breakpoint)
9877 (record_btrace_stopped_by_hw_breakpoint)
9878 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9879 (init_record_btrace_ops): Install them.
9880 * record-full.c (record_full_hw_watchpoint): Delete and replace
9882 (record_full_stop_reason): ... this throughout.
9883 (record_full_exec_insn): Adjust.
9884 (record_full_wait_1): Adjust. No longer re-increment the PC.
9885 (record_full_wait_1): Adjust. Use
9886 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9887 (record_full_stopped_by_watchpoint): Adjust.
9888 (record_full_stopped_by_sw_breakpoint)
9889 (record_full_supports_stopped_by_sw_breakpoint)
9890 (record_full_supports_stopped_by_sw_breakpoint)
9891 (record_full_stopped_by_hw_breakpoint)
9892 (record_full_supports_stopped_by_hw_breakpoint): New functions.
9893 (init_record_full_ops, init_record_full_core_ops): Install them.
9894 * record.c (record_check_stopped_by_breakpoint): New function.
9895 * record.h: Include target/waitstatus.h.
9896 (record_check_stopped_by_breakpoint): New declaration.
9898 2015-03-04 Pedro Alves <palves@redhat.com>
9900 enum lwp_stop_reason -> enum target_stop_reason
9901 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9902 (linux_nat_stopped_by_watchpoint, status_callback)
9903 (linux_nat_wait_1): Adjust.
9904 * linux-nat.h (enum lwp_stop_reason): Delete.
9905 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9906 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9907 * target/waitstatus.h (enum target_stop_reason): New.
9909 2015-03-04 Pedro Alves <palves@redhat.com>
9911 * breakpoint.c (need_moribund_for_location_type): New function.
9912 (bpstat_stop_status): Don't skipping checking moribund locations
9913 of breakpoint types which the target tell caused a stop.
9914 (program_breakpoint_here_p): New function, factored out from ...
9915 (bp_loc_is_permanent): ... this.
9916 (update_global_location_list): Don't create a moribund location if
9917 the target supports reporting stops of the type of the removed
9919 * breakpoint.h (program_breakpoint_here_p): New declaration.
9920 * infrun.c (adjust_pc_after_break): Return early if the target has
9921 already adjusted the PC. Add comments.
9922 (handle_signal_stop): If nothing explains a signal, and the target
9923 tells us the stop was caused by a software breakpoint, check if
9924 there's a breakpoint instruction in the memory. If so, adjust the
9925 PC before presenting the stop to the user. Otherwise, ignore the
9926 trap. If nothing explains a signal, and the target tells us the
9927 stop was caused by a hardware breakpoint, ignore the trap.
9928 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9929 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9930 to_supports_stopped_by_hw_breakpoint>: New fields.
9931 (target_stopped_by_sw_breakpoint)
9932 (target_supports_stopped_by_sw_breakpoint)
9933 (target_stopped_by_hw_breakpoint)
9934 (target_supports_stopped_by_hw_breakpoint): Define.
9935 * target-delegates.c: Regenerate.
9937 2015-03-04 Pedro Alves <palves@redhat.com>
9939 * infrun.c (follow_fork_inferior): Use the whole of the
9940 inferior_ptid and pending_follow.related_pid ptids instead of
9941 building ptids from the process components. Adjust verbose output
9942 to use target_pid_to_str.
9943 * linux-nat.c (linux_child_follow_fork): Use the whole of the
9944 inferior_ptid and pending_follow.related_pid ptids instead of
9945 building ptids from the process components.
9947 2015-03-04 Mark Kettenis <kettenis@gnu.org>
9949 * inf-ptrace.c [PT_GET_PROCESS_STATE]
9950 (inf_ptrace_insert_fork_catchpoint): New function.
9951 (inf_ptrace_remove_fork_catchpoint): New function.
9952 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
9954 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9956 * s390-linux-tdep.c (s390_register_name): Return empty string
9957 instead of NULL for registers that shouldn't be visible.
9959 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9961 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
9962 XML file for 64-bit targets.
9964 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
9966 * target.h (find_default_create_inferior): Remove declaration.
9967 (find_default_attach): Likewise.
9969 2015-03-03 Pedro Alves <palves@redhat.com>
9971 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
9972 Use ptid_get_pid to get the overall process id when resuming all
9975 2015-03-03 Pedro Alves <palves@redhat.com>
9977 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
9978 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
9979 * inf-ptrace.c (get_ptrace_pid): New function.
9980 (inf_ptrace_resume): Use it.
9981 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
9984 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9986 * nat/linux-btrace.c: Include sys/utsname.h.
9987 (linux_determine_kernel_ptr_bits): New.
9988 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
9989 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
9992 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9994 * btrace.c (ftrace_update_function): Treat return as tailcall for
9995 "_dl_runtime_resolve".
9997 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9999 * btrace.h (btrace_function) <lbegin, lend>: Remove.
10000 * btrace.c (ftrace_debug): Do not print the line range.
10001 (ftrace_skip_file, ftrace_update_lines): Remove.
10002 (ftrace_new_function): Remove lbegin and lend initialization.
10003 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
10004 * record-btrace.c (btrace_compute_src_line_range): New.
10005 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
10007 2015-03-02 Pedro Alves <palves@redhat.com>
10009 * infrun.c (follow_exec): Delete all threads of the process except
10010 the event thread. Extended comments.
10012 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10014 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
10016 2015-03-02 Joel Brobecker <brobecker@adacore.com>
10018 * utils.h: Remove <stdbool.h> #include.
10019 (producer_is_gcc): Change return type to "int".
10020 * utils.c (producer_is_gcc): Change return type to int.
10021 Return 1 instead of true, and 0 instead of false.
10022 Adjust function documentation accordingly.
10024 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10026 * s390-linux-nat.c (have_regset_vxrs): New static variable.
10027 (s390_linux_fetch_inferior_registers): Handle vector registers, if
10029 (s390_linux_store_inferior_registers): Likewise.
10030 (s390_get_hwcap): Remove function. Embed its logic...
10031 (s390_read_description): ...here. Yield a target description with
10032 vector registers if applicable.
10033 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
10034 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
10035 "features/s390x-tevx-linux64.c".
10036 (struct gdbarch_tdep) <v0_full_regnum>: New field.
10037 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
10038 for "GNU/Linux-specific registers".
10039 (s390_dwarf_reg_r0l): New enum value.
10040 (s390_dwarf_reg_to_regnum): Support vector registers.
10041 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
10042 of GPR lower halves.
10043 (regnum_is_vxr_full): New function.
10044 (s390_register_name): New function.
10045 (s390_pseudo_register_name): Handle v0-v15, which are composed of
10046 f0-f15 and v0l-v15l.
10047 (s390_pseudo_register_type): Likewise.
10048 (s390_pseudo_register_read): Likewise.
10049 (s390_pseudo_register_write): Likewise.
10050 (s390_value_from_register): Account for the fact that values are
10051 placed left-justified in vector registers.
10052 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10053 the vector reggroup and omit them from the general reggroup.
10054 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10055 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10056 (s390_iterate_over_regset_sections): Add iterations for the two
10057 new vector regsets.
10058 (s390_core_read_description): Yield a target description with
10059 vector registers if applicable.
10060 (s390_gdbarch_init): Handle target descriptions with vector
10061 registers. Add "register_name" gdbarch method.
10062 (_initialize_s390_tdep): Call new tdesc initialization functions.
10063 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10064 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10065 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10066 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10067 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10068 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10069 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10070 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10071 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10072 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10073 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10074 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10075 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10076 (S390_NUM_REGS): Adjust value.
10077 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10078 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10079 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10080 * NEWS: Announce S/390 vector register support.
10082 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10084 * features/s390-tevx-linux64.xml: New file.
10085 * features/s390-vx-linux64.xml: New file.
10086 * features/s390-vx.xml: New file.
10087 * features/s390x-tevx-linux64.xml: New file.
10088 * features/s390x-vx-linux64.xml: New file.
10089 * features/Makefile (WHICH): Add s390-vx-linux64,
10090 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10091 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10092 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10094 * features/s390-tevx-linux64.c: New generated file.
10095 * features/s390-vx-linux64.c: Likewise.
10096 * features/s390x-tevx-linux64.c: Likewise.
10097 * features/s390x-vx-linux64.c: Likewise.
10098 * regformats/s390-tevx-linux64.dat: Likewise.
10099 * regformats/s390-vx-linux64.dat: Likewise.
10100 * regformats/s390x-tevx-linux64.dat: Likewise.
10101 * regformats/s390x-vx-linux64.dat: Likewise.
10103 2015-02-28 Doug Evans <xdje42@gmail.com>
10105 * symtab.h (struct symtab) <next>: Fix comment.
10107 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10109 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10112 2015-02-27 Pedro Alves <palves@redhat.com>
10114 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10116 2015-02-27 Pedro Alves <palves@redhat.com>
10118 * common/common-exceptions.h (exception_none): Declare.
10119 * common/common-exceptions.c (exception_none): Moved from
10121 (exceptions_state_mc_init): Use exception_none.
10122 * exceptions.c (exception_none): Move to
10123 common/common-exceptions.c.
10124 * exceptions.h (exception_none): Move to
10125 common/common-exceptions.h.
10127 2015-02-27 Pedro Alves <palves@redhat.com>
10129 * main.c (catch_command_errors, catch_command_errors_const):
10130 Remove 'mask' argument. Adjust.
10131 (captured_main): Adjust callers.
10133 2015-02-27 Pedro Alves <palves@redhat.com>
10135 * python/python-internal.h: Include "extension-priv.h".
10137 2015-02-27 Pedro Alves <palves@redhat.com>
10139 * breakpoint.h (enum print_stop_action): Move further up in the
10142 2015-02-27 Pedro Alves <palves@redhat.com>
10144 * gdbarch.sh: Include regcache.h.
10145 * gdbarch.h: Regenerate.
10147 2015-02-27 Pedro Alves <palves@redhat.com>
10149 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10150 Remove duplicate const.
10151 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10154 2015-02-27 Pedro Alves <palves@redhat.com>
10156 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10157 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10158 * features/feature_to_c.sh: Tag the generated xml_builtin array
10159 with extern const in C++ mode.
10161 2015-02-27 Tom Tromey <tromey@redhat.com>
10163 * minidebug.c (struct lzma_stream): Rename to ...
10164 (struct gdb_lzma_stream): ... this.
10165 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10167 2015-02-27 Pedro Alves <palves@redhat.com>
10169 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10171 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10172 (mi_cmd_stack_list_variables): Use it.
10174 2015-02-27 Pedro Alves <palves@redhat.com>
10176 * x86-linux-nat.c (u_debugreg_offset): New function.
10177 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10179 2015-02-27 Pedro Alves <palves@redhat.com>
10181 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10183 Include break-common.h.
10185 2015-02-27 Tom Tromey <tromey@redhat.com>
10186 Pedro Alves <palves@redhat.com>
10188 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10189 local used to iterate over enums.
10190 * completer.c (signal_completer): Likewise.
10191 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10192 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10193 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10194 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10195 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10196 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10197 * tui-wingeneral.c (tui_refresh_all): Likewise.
10199 2015-02-27 Pedro Alves <palves@redhat.com>
10201 * target.h: Include "infrun.h".
10203 2015-02-27 Pedro Alves <palves@redhat.com>
10205 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10207 2015-02-27 Pedro Alves <palves@redhat.com>
10209 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10211 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10213 2015-02-27 Pedro Alves <palves@redhat.com>
10215 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10216 cli_mld_erase_entire_line, and make it extern "C".
10217 * common/common-defs.h (EXTERN_C): New.
10218 * completer.c (_rl_completion_prefix_display_length)
10219 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10220 out of gdb_display_match_list_1.
10221 (_rl_qsort_string_compare): Move declaration out of
10222 gdb_display_match_list_1, and make it extern "C".
10223 * defs.h (re_comp): Use EXTERN_C.
10224 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10225 and make it extern "C".
10226 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10227 and make it extern "C".
10228 (main): Move declaration out of maintenance_set_profile_cmd.
10229 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10232 2015-02-27 Pedro Alves <palves@redhat.com>
10234 * python/python.c (GdbMethods): Rename to ...
10235 (python_GdbMethods): ... this and make extern.
10236 (GdbModuleDef): Rename to ...
10237 (python_GdbModuleDef): ... this and make extern.
10239 2015-02-27 Pedro Alves <palves@redhat.com>
10241 * record-btrace.c (set_record_btrace_cmdlist)
10242 (show_record_btrace_cmdlist): Remove redefinitions.
10244 2015-02-27 Tom Tromey <tromey@redhat.com>
10245 Pedro Alves <palves@redhat.com>
10247 * dwarf2-frame.c (enum cfa_how_kind, struct
10248 dwarf2_frame_state_reg_info): Move out of struct
10249 dwarf2_frame_state.
10250 * dwarf2read.c (struct tu_stats): Move out of struct
10251 dwarf2_per_objfile.
10252 (struct file_entry): Move out of struct line_header.
10253 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10254 typedef_field_list): Move out of struct field_info.
10255 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10256 Move out of struct dynamic_prop.
10257 (union type_owner, union field_location, struct field, struct
10258 range_bounds, union type_specific): Move out of struct main_type.
10259 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10260 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10261 (struct call_site_target, union call_site_parameter_u, struct
10262 call_site_parameter): Move out of struct call_site.
10263 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10265 (enum srcdest_kind): Move out of struct srcdest.
10266 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10267 * prologue-value.h (enum prologue_value_kind): Move out of struct
10269 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10271 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10272 out of struct field_info.
10273 * symfile.h (struct other_sections): Move out of struct
10275 * symtab.c (struct symbol_cache_slot): Move out struct
10276 block_symbol_cache.
10277 * target-descriptions.c (enum tdesc_type_kind): Move out of
10278 typedef struct tdesc_type.
10279 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10280 struct tui_line_or_address.
10281 * value.c (enum internalvar_kind, union internalvar_data): Move
10282 out of struct internalvar.
10283 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10286 2015-02-27 Tom Tromey <tromey@redhat.com>
10287 Pedro Alves <palves@redhat.com>
10289 Rename symbols whose names are reserved C++ keywords throughout.
10291 2015-02-27 Pedro Alves <palves@redhat.com>
10293 * Makefile.in (COMPILER): New, get it from autoconf.
10294 (COMPILE.pre, CC_LD): Use COMPILER.
10295 (CXX): Get from autoconf instead.
10296 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10297 * acinclude.m4: Include build-with-cxx.m4.
10298 * build-with-cxx.m4: New file.
10299 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10300 Disable -Werror by default if building in C++ mode.
10301 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10302 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10303 Run supported-warning-flags tests with the C++ compiler.
10304 Save/restore CXXFLAGS too.
10305 * configure: Regenerate.
10307 2015-02-27 Pedro Alves <palves@redhat.com>
10309 * libiberty.m4: New file.
10310 * acinclude.m4: Include libiberty.m4.
10311 * configure.ac: Call libiberty_INIT.
10312 * config.in, configure: Regenerate.
10314 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10316 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10317 31-bit targets, but 64-bit targets as well.
10318 (s390_gnu_triplet_regexp): New function.
10319 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10320 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10323 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
10325 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10326 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10327 from CONTEXT_DEBUGGER.
10329 2015-02-26 Doug Evans <dje@google.com>
10331 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10333 (set_type_vptr_fieldno): Ditto.
10334 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10335 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10337 2015-02-26 Pedro Alves <palves@redhat.com>
10339 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10340 * complaints.c (vcomplaint): Pass argument FMT directly to
10341 printf-like functions instead of complaint->fmt.
10342 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10343 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10344 * compile/compile-loc2c.c (pushf, unary, binary): Add
10346 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10348 (BINARY): Pass string literal as format string to 'binary'.
10349 * compile/compile-object-load.c (link_callbacks_einfo): Add
10351 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10353 2015-02-26 Pedro Alves <palves@redhat.com>
10355 * windows-termcap.c: Rename to ...
10356 * stub-termcap.c: ... this. Adjust header line.
10357 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10359 * configure: Regenerate.
10360 * configure.ac: Refer to stub-termcap.o instead of
10362 * gdb_curses.h: Mention stub-termcap.c instead of
10365 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10367 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10368 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10370 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10372 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10374 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10376 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10377 bfd_canonicalize_symtab.
10379 2015-02-25 John Baldwin <jhb@FreeBSD.org>
10381 * amd64fbsd-nat.c: Include sys/user.h.
10382 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10383 instead of KERN_PS_STRINGS to locate the signal trampoline.
10384 * i386fbsd-nat.c: Include sys/user.h.
10385 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10386 instead of KERN_PS_STRINGS to locate the signal trampoline.
10387 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10388 (amd64fbsd_sigtramp_p): New.
10389 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10390 longer set default values.
10391 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10392 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10393 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10394 (i386fbsd_freebsd4_sigtramp_start)
10395 (i386fbsd_freebsd4_sigtramp_middle)
10396 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10397 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10398 (i386fbsd_sigtramp_p): New.
10399 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10400 longer set default values.
10401 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10403 2015-02-25 John Baldwin <jhb@freebsd.org>
10405 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10406 get_frame_register instead of frame_unwind_register_unsigned.
10408 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10411 * compile/compile-c-support.c (c_compute_program): Change // comment.
10412 * compile/compile-object-load.c (setup_sections): Change // comment.
10414 2015-02-26 Joel Brobecker <brobecker@adacore.com>
10417 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10419 2015-02-23 Pedro Alves <palves@redhat.com>
10421 * remote.c (skip_to_semicolon): New function.
10422 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10423 special case the stop reasons that look like hex numbers
10424 upfront. Instead handle real register numbers after matching
10425 all the known stop reasons.
10427 2015-02-21 Doug Evans <dje@google.com>
10429 PR c++/17976, symtab/17821
10430 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10431 is_in_anonymous. All callers updated.
10432 (find_symbol_in_baseclass): Ditto.
10433 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10434 for symbols in an anonymous namespace.
10435 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10436 DW_AT_name directly.
10437 (dwarf2_name): Convert missing namespace name to
10438 CP_ANONYMOUS_NAMESPACE_STR.
10440 2015-02-20 Pedro Alves <palves@redhat.com>
10442 * linux-nat.c (linux_handle_extended_wait): Call
10443 thread_db_notice_clone whenever a new clone LWP is detected.
10444 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10446 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10447 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10448 (linux_unstop_all_lwps): Declare.
10449 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10450 (thread_get_info_callback): Delete.
10451 (thread_from_lwp): Use td_thr_get_info and record_thread.
10452 (thread_db_attach_lwp): Delete.
10453 (thread_db_notice_clone): New function.
10454 (try_thread_db_load_1): If /proc is mounted and shows the
10455 process'es task list, walk over all LWPs and call thread_from_lwp
10456 instead of relying on td_ta_thr_iter.
10457 (attach_thread): Don't call check_thread_signals here. Split the
10458 tail part of the function (which adds the thread to the core GDB
10459 thread list) to ...
10460 (record_thread): ... this function. Call check_thread_signals
10462 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10463 call thread_from_lwp.
10464 (thread_db_update_thread_list): Rename to ...
10465 (thread_db_update_thread_list_org): ... this.
10466 (thread_db_update_thread_list): New function.
10467 (thread_db_find_thread_from_tid): Delete.
10468 (thread_db_get_ada_task_ptid): Simplify.
10469 * nat/linux-procfs.c: Include <sys/stat.h>.
10470 (linux_proc_task_list_dir_exists): New function.
10471 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10473 2015-02-20 Pedro Alves <palves@redhat.com>
10475 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10476 main LWP. Handle the case of waitpid returning 0 if we're already
10477 attached to the LWP. Don't set the LWP's last_resume_kind to
10478 resume_stop if we already knew about the LWP.
10479 (linux_nat_filter_event): Add debug logs.
10481 2015-02-20 Pedro Alves <palves@redhat.com>
10483 * target.h (forward_target_decr_pc_after_break): Delete
10486 2015-02-20 Pedro Alves <palves@redhat.com>
10489 * linux-thread-db.c (thread_get_info_callback): Return early if
10490 the thread's lwp id is -1.
10492 2015-02-20 Joel Brobecker <brobecker@adacore.com>
10496 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
10498 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10499 (dtrace_get_probes) Change type of variable 'dof'.
10501 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10503 PR breakpoints/16812
10504 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10505 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10506 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10508 2015-02-19 David Taylor <dtaylor@emc.com>
10510 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10512 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10514 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10516 (tui_putc): Don't call tui_handle_resize_during_io.
10517 (tui_getc): Likewise.
10518 (tui_mld_getc): Likewise.
10519 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10520 (tui_sigwinch_token): New static variable.
10521 (tui_initialize_win): Adjust documentation. Set
10522 tui_sigwinch_token.
10523 (tui_async_resize_screen): New asynchronous callback.
10524 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10525 invoke tui_async_resize_screen.
10527 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10529 * configure: Regenerated.
10530 * configure.ac: Use GDB_AC_TRANSFORM.
10531 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10532 * acinclude.m4: sinclude transform.m4.
10533 * transform.m4: New file.
10534 (GDB_AC_TRANSFORM): New macro.
10536 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10538 * NEWS: Announce the support for DTrace SDT probes.
10540 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10542 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10543 (amd64_dtrace_parse_probe_argument): New function.
10544 (amd64_dtrace_probe_is_enabled): Likewise.
10545 (amd64_dtrace_enable_probe): Likewise.
10546 (amd64_dtrace_disable_probe): Likewise.
10547 (amd64_linux_init_abi): Register the
10548 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10549 `gdbarch_dtrace_disable_probe' and
10550 `gdbarch_dtrace_probe_is_enabled' hooks.
10551 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10552 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10553 (amd64_dtrace_enable_probe_sequence): Likewise.
10554 (amd64_dtrace_disable_probe_sequence): Likewise.
10556 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10558 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10559 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10560 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10562 * Makefile.in (SFILES): dtrace-probe.c added.
10563 * configure: Regenerate.
10564 * dtrace-probe.c: New file.
10565 (SHT_SUNW_dof): New constant.
10566 (dtrace_probe_type): New enum.
10567 (dtrace_probe_arg): New struct.
10568 (dtrace_probe_arg_s): New typedef.
10569 (struct dtrace_probe_enabler): New struct.
10570 (dtrace_probe_enabler_s): New typedef.
10571 (dtrace_probe): New struct.
10572 (dtrace_probe_is_linespec): New function.
10573 (dtrace_dof_sect_type): New enum.
10574 (dtrace_dof_dofh_ident): Likewise.
10575 (dtrace_dof_encoding): Likewise.
10576 (DTRACE_DOF_ENCODE_LSB): Likewise.
10577 (DTRACE_DOF_ENCODE_MSB): Likewise.
10578 (dtrace_dof_hdr): New struct.
10579 (dtrace_dof_sect): Likewise.
10580 (dtrace_dof_provider): Likewise.
10581 (dtrace_dof_probe): Likewise.
10582 (DOF_UINT): New macro.
10583 (DTRACE_DOF_PTR): Likewise.
10584 (DTRACE_DOF_SECT): Likewise.
10585 (dtrace_process_dof_probe): New function.
10586 (dtrace_process_dof): Likewise.
10587 (dtrace_build_arg_exprs): Likewise.
10588 (dtrace_get_arg): Likewise.
10589 (dtrace_get_probes): Likewise.
10590 (dtrace_get_probe_argument_count): Likewise.
10591 (dtrace_can_evaluate_probe_arguments): Likewise.
10592 (dtrace_evaluate_probe_argument): Likewise.
10593 (dtrace_compile_to_ax): Likewise.
10594 (dtrace_probe_destroy): Likewise.
10595 (dtrace_gen_info_probes_table_header): Likewise.
10596 (dtrace_gen_info_probes_table_values): Likewise.
10597 (dtrace_probe_is_enabled): Likewise.
10598 (dtrace_probe_ops): New variable.
10599 (info_probes_dtrace_command): New function.
10600 (_initialize_dtrace_probe): Likewise.
10601 (dtrace_type_name): Likewise.
10603 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10605 * gdbarch.sh (dtrace_parse_probe_argument): New.
10606 (dtrace_probe_is_enabled): Likewise.
10607 (dtrace_enable_probe): Likewise.
10608 (dtrace_disable_probe): Likewise.
10609 * gdbarch.c: Regenerate.
10610 * gdbarch.h: Regenerate.
10612 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10614 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10615 stap_probe_ops for `enable_probe' and `disable_probe'.
10616 * probe.c (enable_probes_command): New function.
10617 (disable_probes_command): Likewise.
10618 (_initialize_probe): Define the cli commands `enable probe' and
10620 (parse_probe_linespec): New function.
10621 (info_probes_for_ops): Use parse_probe_linespec.
10622 * probe.h (probe_ops): New hooks `enable_probe' and
10625 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10627 * probe.c (compute_probe_arg): Moved from stap-probe.c
10628 (compile_probe_arg): Likewise.
10629 (probe_funcs): Likewise.
10630 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10631 (compile_probe_arg): Likewise.
10632 (probe_funcs): Likewise.
10634 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10636 * probe.c (print_ui_out_not_applicables): New function.
10637 (exists_probe_with_pops): Likewise.
10638 (info_probes_for_ops): Do not include column headers for probe
10639 types for which no probe has been actually found on any object.
10640 Also invoke `print_ui_out_not_applicables' in order to match the
10641 column rows with the header when probes of several types are
10643 Print the "Type" column.
10644 * probe.h (probe_ops): Added a new probe operation `type_name'.
10645 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10646 (stap_type_name): New function.
10648 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10650 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10651 (key_is_command_char): Delete.
10653 2015-02-17 Pedro Alves <palves@redhat.com>
10655 * tui/tui.c (tui_enable): Resize windows before anything
10656 might show a window.
10658 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10661 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10662 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10664 * aarch64-tdep.h (tdesc_aarch64): Declare.
10666 2015-02-12 Mark Wielaard <mjw@redhat.com>
10668 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10670 2015-02-13 Doug Evans <dje@google.com>
10672 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10673 anonymous_namespace to is_in_anonymous for consistency with the rest
10675 (cp_lookup_bare_symbol): Fix typo in comment.
10676 (cp_search_static_and_baseclasses): Ditto.
10677 (search_symbol_list): Use vertical space in comment better.
10678 (reset_directive_searched): Ditto. Fix typo.
10679 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10681 2015-02-13 Yao Qi <yao.qi@arm.com>
10683 * MAINTAINERS: Update my email address.
10685 2015-02-12 Doug Evans <dje@google.com>
10687 * symtab.c (completion_list_add_name): Fix memory leak.
10689 2015-02-12 Doug Evans <dje@google.com>
10691 * completer.c (complete_line): Remove incorrect comment.
10693 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10695 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10696 (py_print_frame): Use RETURN_MASK_ERROR.
10698 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10700 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10701 function comment. Wrap all function that can throw in cleanups.
10702 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10705 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10707 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10708 Remove the error label.
10710 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10712 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10713 with goto first, indent the former else codepath left. Put variable
10714 'elided' to a new inner block.
10716 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10718 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10720 2015-02-11 Pedro Alves <palves@redhat.com>
10722 * xcoffread.c (within_function): Delete.
10724 2015-02-11 Tom Tromey <tromey@redhat.com>
10725 Pedro Alves <palves@redhat.com>
10727 * breakpoint.c (base_breakpoint_ops): Delete.
10728 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10729 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10730 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10731 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10732 * python/py-arch.c (arch_object_type): Make extern.
10733 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10734 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10735 * python/py-cmd.c (cmdpy_object_type): Make extern.
10736 * python/py-continueevent.c (continue_event_object_type)
10737 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10738 parameter. Update all callers.
10739 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10740 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10741 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10742 * python/py-function.c (fnpy_object_type): Make extern.
10743 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10744 * python/py-infevents.c (call_pre_event_object_type)
10745 (inferior_call_post_event_object_type).
10746 (memory_changed_event_object_type): Make extern.
10747 * python/py-infthread.c (thread_object_type): Make extern.
10748 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10749 * python/py-linetable.c (linetable_entry_object_type)
10750 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10751 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10752 (clear_objfiles_event_object_type): Make extern.
10753 * python/py-objfile.c (objfile_object_type): Make extern.
10754 * python/py-param.c (parmpy_object_type): Make extern.
10755 * python/py-progspace.c (pspace_object_type): Make extern.
10756 * python/py-signalevent.c (signal_event_object_type): Make extern.
10757 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10758 * python/py-type.c (type_object_type, field_object_type)
10759 (type_iterator_object_type): Make extern.
10760 * python/python.c (python_extension_script_ops)
10761 (python_extension_ops): Make extern.
10762 * stap-probe.c (stap_probe_ops): Make extern.
10764 2015-02-11 Pedro Alves <pedro@codesourcery.com>
10766 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10767 because the event thread is not the current thread.
10769 2015-02-11 Doug Evans <xdje42@gmail.com>
10771 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10772 been initialized yet, return NULL.
10774 2015-02-11 Doug Evans <dje@google.com>
10776 * symfile.h (new_symfile_objfile): Delete.
10777 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10778 All callers updated.
10780 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10782 * tui/tui-io.c (tui_handle_resize_during_io): Call
10783 tui_update_gdb_sizes() after resizing the screen.
10784 * tui/tui.c (tui_enable): Resize the terminal before
10785 calling tui_update_gdb_sizes().
10787 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10789 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10790 line before printing a newline.
10792 2015-02-11 Mark Wielaard <mjw@redhat.com>
10794 * utils.c (producer_is_gcc): Return true or false.
10796 2015-02-10 Mark Wielaard <mjw@redhat.com>
10798 * utils.h (producer_is_gcc): Change return type to bool. Add major
10800 * utils.c (producer_is_gcc): Likewise.
10801 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10802 * dwarf2read.c (check_producer): Likewise.
10804 2015-02-10 Pedro Alves <palves@redhat.com>
10806 * infrun.c (displaced_step_fixup): Switch to the event thread
10807 before calling gdbarch_displaced_step_fixup.
10809 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10811 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10813 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10815 * ada-varobj.c (ada_name_of_child): Constify parent.
10816 (ada_path_expr_of_child): Same.
10817 (ada_value_of_child): Same.
10818 (ada_type_of_child): Same.
10819 * c-varobj.c (c_is_path_expr_parent): Same.
10820 (c_describe_child): Same.
10821 (c_name_of_child): Same.
10822 (c_value_of_child): Same.
10823 (c_type_of_child): Same.
10824 (cplus_number_of_children): Same.
10825 (cplus_describe_child): Constify var.
10826 (cplus_name_of_child): Constify parent.
10827 (cplus_value_of_child): Same.
10828 (cplus_type_of_child): Same.
10829 * jv-varobj.c (java_name_of_child): Same.
10830 (java_value_of_child): Same.
10831 (java_type_of_child): Same.
10832 * varobj.c (value_of_child): Same.
10833 (varobj_default_is_path_expr_parent): Constify var, parent and return
10835 (varobj_get_path_expr): Constify var, modify path_expr through
10837 (install_new_value): Constify parent.
10838 (value_of_child): Constify parent.
10839 * varobj.h (struct varobj): Constify parent.
10840 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10842 (varobj_get_path_expr): Constify var.
10843 (varobj_get_path_expr_parent): Constify var and return value.
10845 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
10847 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10848 (arm_prologue_this_id): Move PC and SP limit checks to
10849 arm_prologue_unwind_stop_reason.
10850 (arm_prologue_unwind) <stop_reason> : Set to
10851 arm_prologue_unwind_stop_reason.
10853 2015-02-09 Mark Wielaard <mjw@redhat.com>
10855 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10856 DW_LANG_Fortran08 as language_fortran.
10858 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10861 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10862 of pointer against char.
10864 2015-02-09 Mark Wielaard <mjw@redhat.com>
10866 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10867 (c_type_print_modifier): Likewise.
10868 * dwarf2read.c (read_tag_atomic_type): New function.
10869 (read_type_die_1): Handle DW_TAG_atomic_type.
10870 * gdbtypes.c (make_atomic_type): New function.
10871 (recursive_dump_type): Handle TYPE_ATOMIC.
10872 * gdbtypes.h (enum type_flag_values): Renumber.
10873 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10874 (TYPE_ATOMIC): New macro.
10875 (make_atomic_type): Declare.
10877 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10879 * btrace.c (ftrace_find_call): Skip gaps.
10880 (ftrace_new_function): Initialize level.
10881 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10882 (ftrace_new_switch): Update
10884 (ftrace_new_gap): New.
10885 (ftrace_update_function): Create new function after gap.
10886 (btrace_compute_ftrace_bts): Create gap on error.
10887 (btrace_stitch_bts): Update parameters. Clear trace if it
10889 (btrace_stitch_trace): Update parameters. Update callers.
10890 (btrace_clear): Reset the number of gaps.
10891 (btrace_insn_get): Return NULL if the iterator points to a gap.
10892 (btrace_insn_number): Return zero if the iterator points to a gap.
10893 (btrace_insn_end): Allow gaps at the end.
10894 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10895 (btrace_find_insn_by_number): Assert that the found iterator does
10896 not point to a gap.
10897 (btrace_call_next, btrace_call_prev): Assert that the last function
10899 * btrace.h (btrace_bts_error): New.
10900 (btrace_function): Update comment.
10901 (btrace_function) <insn, insn_offset, number>: Update comment.
10902 (btrace_function) <errcode>: New.
10903 (btrace_thread_info) <ngaps>: New.
10904 (btrace_thread_info) <replay>: Update comment.
10905 (btrace_insn_get): Update comment.
10906 * record-btrace.c (btrace_ui_out_decode_error): New.
10907 (record_btrace_info): Print number of gaps.
10908 (btrace_insn_history, btrace_call_history): Call
10909 btrace_ui_out_decode_error for gaps.
10910 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10912 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10914 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10915 * nat/linux-btrace.c: (btrace_this_cpu): New.
10916 (cpu_supports_bts): Call btrace_this_cpu.
10917 (intel_supports_bts): Add cpu parameter.
10919 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10921 * btrace.h (btrace_insn_class): New.
10922 (btrace_insn) <size, iclass>: New.
10923 * btrace.c (ftrace_find_call): Update parameters. Update users.
10924 Use instruction classification.
10925 (ftrace_new_return): Update parameters. Update users.
10926 (ftrace_update_function): Update parameters. Update users. Use
10927 instruction classification.
10928 (ftrace_update_insns): Update parameters. Update users.
10929 (ftrace_classify_insn): New.
10930 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
10931 TRY_CATCH around call to gdb_insn_length.
10933 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10935 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
10936 Update parameters. Update users.
10938 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10940 * btrace.c (parse_xml_btrace_conf_bts): Add size.
10941 (btrace_conf_bts_attributes): New.
10942 (btrace_conf_children): Add attributes.
10943 * common/btrace-common.h (btrace_config_bts): New.
10944 (btrace_config)<bts>: New.
10945 (btrace_config): Update comment.
10946 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
10948 * features/btrace-conf.dtd: Increment version. Add size
10949 attribute to bts element.
10950 * record-btrace.c (set_record_btrace_bts_cmdlist,
10951 show_record_btrace_bts_cmdlist): New.
10952 (record_btrace_adjust_size, record_btrace_print_bts_conf,
10953 record_btrace_print_conf, cmd_set_record_btrace_bts,
10954 cmd_show_record_btrace_bts): New.
10955 (record_btrace_info): Call record_btrace_print_conf.
10956 (_initialize_record_btrace): Add commands.
10957 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
10958 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
10959 (btrace_sync_conf): Synchronize bts size.
10960 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
10961 * NEWS: Announce new commands and new packets.
10963 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10965 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
10966 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
10967 (x86_linux_btrace_conf): New.
10968 (x86_linux_create_target): Initialize to_btrace_conf.
10969 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
10970 Check format. Split into this and ...
10971 (linux_enable_bts): ... this.
10972 (linux_btrace_conf): New.
10973 (perf_event_skip_record): Renamed into ...
10974 (perf_event_skip_bts_record): ... this. Updated users.
10975 (linux_disable_btrace): Split into this and ...
10976 (linux_disable_bts): ... this.
10977 (linux_read_btrace): Check format.
10978 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
10979 (linux_btrace_conf): New.
10980 (btrace_target_info)<ptid>: Moved.
10981 (btrace_target_info)<conf>: New.
10982 (btrace_target_info): Split into this and ...
10983 (btrace_tinfo_bts): ... this. Updated users.
10984 * btrace.c (btrace_enable): Update parameters.
10985 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
10986 (btrace_conf_children, btrace_conf_attributes)
10987 (btrace_conf_elements): New.
10988 * btrace.h (btrace_enable): Update parameters.
10989 (btrace_conf, parse_xml_btrace_conf): New.
10990 * common/btrace-common.h (btrace_config): New.
10991 * feature/btrace-conf.dtd: New.
10992 * record-btrace.c (record_btrace_conf): New.
10993 (record_btrace_cmdlist): New.
10994 (record_btrace_enable_warn, record_btrace_open): Pass
10995 &record_btrace_conf.
10996 (record_btrace_info): Print recording format.
10997 (cmd_record_btrace_bts_start): New.
10998 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
10999 (_initialize_record_btrace): Add "record btrace bts" subcommand.
11000 Add "record bts" alias command.
11001 * remote.c (remote_state)<btrace_config>: New.
11002 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
11003 (remote_protocol_features): Add qXfer:btrace-conf:read.
11004 (remote_open_1): Call remote_btrace_reset.
11005 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
11006 (btrace_target_info)<conf>: New.
11007 (btrace_sync_conf, btrace_read_config): New.
11008 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
11010 (remote_btrace_conf): New.
11011 (init_remote_ops): Initialize to_btrace_conf.
11012 (_initialize_remote): Add qXfer:btrace-conf packet.
11013 * target.c (target_enable_btrace): Update parameters.
11014 (target_btrace_conf): New.
11015 * target.h (target_enable_btrace): Update parameters.
11016 (target_btrace_conf): New.
11017 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
11018 (target_ops)<to_enable_btrace>: Update parameters and comment.
11019 (target_ops)<to_btrace_conf>: New.
11020 * target-delegates: Regenerate.
11021 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
11022 (target_debug_print_const_struct_btrace_target_info_p): New.
11023 * NEWS: Announce new command and new packet.
11025 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11027 * nat/linux-btrace.h (perf_event_buffer): New.
11028 (btrace_target_info) <buffer, size, data_head>: Replace with ...
11030 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
11031 (perf_event_buffer_size, perf_event_buffer_begin)
11032 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
11034 (perf_event_new_data): New.
11036 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11038 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
11039 * record-btrace.c (record_btrace_open): Remove call to
11040 target_supports_btrace.
11041 * remote.c (remote_supports_btrace): Update parameters.
11042 * target.c (target_supports_btrace): Update parameters.
11043 * target.h (to_supports_btrace, target_supports_btrace): Update
11045 * target-delegates.c: Regenerate.
11046 * target-debug.h (target_debug_print_enum_btrace_format): New.
11047 * nat/linux-btrace.c
11048 (kernel_supports_btrace): Rename into ...
11049 (kernel_supports_bts): ... this. Update users. Update warning text.
11050 (intel_supports_btrace): Rename into ...
11051 (intel_supports_bts): ... this. Update users.
11052 (cpu_supports_btrace): Rename into ...
11053 (cpu_supports_bts): ... this. Update users.
11054 (linux_supports_btrace): Update parameters. Split into this and ...
11055 (linux_supports_bts): ... this.
11056 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11058 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11060 * Makefile.in (SFILES): Add common/btrace-common.c.
11061 (COMMON_OBS): Add common/btrace-common.o.
11062 (btrace-common.o): Add build rules.
11063 * btrace.c (parse_xml_btrace): Update parameters.
11064 (parse_xml_btrace_block): Set format field.
11065 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11066 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11067 (btrace_compute_ftrace): Split into this and...
11068 (btrace_compute_ftrace_bts): ...this.
11069 (btrace_stitch_trace): Split into this and...
11070 (btrace_stitch_bts): ...this.
11071 * btrace.h (parse_xml_btrace): Update parameters.
11072 (make_cleanup_btrace_data): New.
11073 * common/btrace-common.c: New.
11074 * common/btrace-common.h: Include common-defs.h.
11075 (btrace_block_s): Update comment.
11076 (btrace_format): New.
11077 (btrace_format_string): New.
11078 (btrace_data_bts): New.
11079 (btrace_data): New.
11080 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11081 * remote.c (remote_read_btrace): Update parameters.
11082 * target.c (target_read_btrace): Update parameters.
11083 * target.h (target_read_btrace): Update parameters.
11084 (target_ops)<to_read_btrace>: Update parameters.
11085 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11086 * target-delegates.c: Regenerate.
11087 * target-debug (target_debug_print_struct_btrace_data_p): New.
11088 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11089 (linux_read_bts): ...this.
11090 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11092 2015-02-06 Doug Evans <dje@google.com>
11094 * remote-m32r-sdi.c: Include symfile.h.
11096 2015-02-06 Doug Evans <dje@google.com>
11098 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11099 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11102 2015-02-06 Pedro Alves <palves@redhat.com>
11104 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11106 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11109 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11110 (enable_count_command): Check args for NULL value.
11112 2015-02-05 Doug Evans <xdje42@gmail.com>
11114 * guile/scm-frame.c: Fix spelling errors in a comment.
11116 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11118 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11119 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11122 2015-02-04 Pedro Alves <palves@redhat.com>
11124 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11125 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11127 (resume_stopped_resumed_lwps): Don't check whether the thread is
11128 marked as executing.
11129 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11131 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11133 * regset.h (struct regset): Add flags field.
11134 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11135 * corelow.c (get_core_register_section): Add warning if the size
11136 exceeds the requested size and the regset does not have the
11137 REGSET_VARIABLE_SIZE flag set.
11138 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11140 * armbsd-tdep.c (armbsd_gregset): Likewise.
11141 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11142 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11143 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11144 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11146 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11148 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11149 For ".reg-xstate", explicitly specify the requested section size
11150 via X86_XSTATE_SIZE instead of just 0 on input and
11151 X86_XSTATE_MAX_SIZE on output.
11152 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11155 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11157 PR corefiles/17808:
11158 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11159 function type, particularly its SIZE parameter.
11160 * gdbarch.h: Regenerate.
11161 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11162 actual against required size using ">=" instead of "==".
11163 (amd64_collect_fpregset): Likewise.
11164 * i386-tdep.c (i386_supply_gregset): Likewise.
11165 (i386_collect_gregset): Likewise.
11166 (i386_supply_fpregset): Likewise.
11167 (i386_collect_fpregset): Likewise.
11168 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11169 (mips_fill_gregset_wrapper): Likewise.
11170 (mips_supply_fpregset_wrapper): Likewise.
11171 (mips_fill_fpregset_wrapper): Likewise.
11172 (mips64_supply_gregset_wrapper): Likewise.
11173 (mips64_fill_gregset_wrapper): Likewise.
11174 (mips64_supply_fpregset_wrapper): Likewise.
11175 (mips64_fill_fpregset_wrapper): Likewise.
11176 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11177 (am33_supply_fpregset_method): Likewise.
11178 (am33_collect_gregset_method): Likewise.
11179 (am33_collect_fpregset_method): Likewise.
11181 2015-02-04 Doug Evans <dje@google.com>
11182 Pedro Alves <palves@redhat.com>
11183 Eli Zaretskii <eliz@gnu.org>
11186 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11187 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11188 * tui/tui-file.c: #include tui/tui-command.h.
11189 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11190 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11191 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11193 2015-02-04 Pedro Alves <palves@redhat.com>
11195 Fix build breakage.
11196 * event-loop.c (gdb_do_one_event): Add default switch case.
11198 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11200 Filter out inferior gcc option -fpreprocessed.
11201 * compile/compile.c (filter_args): New function.
11202 (get_args): Use it.
11204 2015-02-03 Pedro Alves <palves@redhat.com>
11206 * event-loop.c: Don't declare nor define a queue type for
11208 (event_queue): Delete.
11209 (create_event, create_file_event, gdb_event_xfree)
11210 (initialize_event_loop, process_event): Delete.
11211 (gdb_do_one_event): Return as soon as one event is handled.
11212 (handle_file_event): Change prototype. Used the passed in
11213 file_handler pointer and ready_mask instead of looping over all
11215 (gdb_wait_for_event): Update the poll/select timeouts before
11216 blocking. Run event handlers directly instead of queueing events.
11217 Return as soon as one event is handled.
11218 (struct async_event_handler_data): Delete.
11219 (invoke_async_event_handler): Delete.
11220 (check_async_event_handlers): Change return type to int. Run
11221 event handlers directly instead of queueing events. Return as
11222 soon as one event is handled.
11223 (handle_timer_event): Delete.
11224 (update_wait_timeout): New function, factored out from
11226 (poll_timers): Reimplement.
11227 * event-loop.h (initialize_event_loop): Delete declaration.
11228 * top.c (gdb_init): Don't call initialize_event_loop.
11230 2015-02-03 Pedro Alves <palves@redhat.com>
11232 * event-loop.c (clear_async_event_handler): New function.
11233 * event-loop.h (clear_async_event_handler): New declaration.
11234 * record-btrace.c (record_btrace_async): New function.
11235 (init_record_btrace_ops): Install record_btrace_async.
11236 * record-full.c (record_full_async): New function.
11237 (record_full_resume): Don't mark the async event source here.
11238 (init_record_full_ops): Install record_full_async.
11239 (record_full_core_resume): Don't mark the async event source here.
11240 (init_record_full_core_ops): Install record_full_async.
11241 * remote.c (remote_async): Mark and clear the async stop reply
11242 queue event-loop token as appropriate.
11244 2015-02-03 Pedro Alves <palves@redhat.com>
11246 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11247 target_is_async_p instead of target_can_async.
11248 (linux_nat_wait): Use target_is_async_p instead of
11249 target_can_async. Don't enable async here.
11250 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11251 target_is_async_p instead of target_can_async.
11253 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11255 * varobj.h (lang_varobj_ops): Mention which return values need
11258 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11260 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11262 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11265 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11266 results found in the cache.
11268 2015-02-02 Joel Brobecker <brobecker@adacore.com>
11271 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11272 when allocating a new one.
11274 2015-02-01 Tom Tromey <tom@tromey.com>
11276 * MAINTAINERS: Remove myself.
11278 2015-01-31 Doug Evans <xdje42@gmail.com>
11280 * dwarf2read.c (process_structure_scope): Update setting of
11281 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11282 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11283 (set_type_vptr_fieldno): New function.
11284 (internal_type_vptr_basetype): New function.
11285 (set_type_vptr_basetype): New function.
11286 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11287 TYPE_VPTR_BASETYPE.
11288 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11289 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11290 (print_cplus_stuff): ... moved here.
11291 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11292 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11294 (struct cplus_struct_type): ... here. All uses updated.
11295 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11296 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11297 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11298 * stabsread.c (read_tilde_fields): Update setting of
11299 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11301 2015-01-31 Doug Evans <xdje42@gmail.com>
11303 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11305 (cp_print_class_member): Rename local domain to self_type.
11306 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11307 domain_type to self_type.
11308 (set_die_type) <need_gnat_info>: Handle
11309 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11310 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11311 TYPE_SPECIFIC_SELF_TYPE.
11312 * gdbtypes.c (internal_type_self_type): New function.
11313 (set_type_self_type): New function.
11314 (smash_to_memberptr_type): Rename parameter domain to self_type.
11315 Update setting of TYPE_SELF_TYPE.
11316 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11317 (smash_to_method_type): Rename parameter domain to self_type.
11318 Update setting of TYPE_SELF_TYPE.
11319 (check_stub_method): Call smash_to_method_type.
11320 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11321 (copy_type_recursive): Ditto.
11322 * gdbtypes.h (enum type_specific_kind): New value
11323 TYPE_SPECIFIC_SELF_TYPE.
11324 (struct main_type) <type_specific>: New member self_type.
11325 (struct cplus_struct_type) <fn_field.type>: Update comment.
11326 (TYPE_SELF_TYPE): Rewrite.
11327 (internal_type_self_type, set_type_self_type): Declare.
11328 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11330 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11331 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11333 * stabsread.c (read_member_functions): Mark methods with
11334 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11337 2015-01-31 Doug Evans <xdje42@gmail.com>
11339 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11342 2015-01-31 Doug Evans <xdje42@gmail.com>
11344 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11345 or unions. Return zero if union.
11346 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11347 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11349 (compute_vtable_size): Assert only passed structs.
11350 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11352 2015-01-31 Doug Evans <xdje42@gmail.com>
11354 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11357 2015-01-31 Gary Benson <gbenson@redhat.com>
11358 Doug Evans <dje@google.com>
11363 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11365 * common/common-exceptions.h (enum errors)
11366 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11367 * completer.h (get_max_completions_reached_message): New declaration.
11368 (max_completions): Likewise.
11369 (completion_tracker_t): New typedef.
11370 (new_completion_tracker): New declaration.
11371 (make_cleanup_free_completion_tracker): Likewise.
11372 (maybe_add_completion_enum): New enum.
11373 (maybe_add_completion): New declaration.
11374 (throw_max_completions_reached_error): Likewise.
11375 * completer.c (max_completions): New global variable.
11376 (new_completion_tracker): New function.
11377 (free_completion_tracker): Likewise.
11378 (make_cleanup_free_completion_tracker): Likewise.
11379 (maybe_add_completions): Likewise.
11380 (throw_max_completions_reached_error): Likewise.
11381 (complete_line): Remove duplicates and limit result to max_completions
11383 (get_max_completions_reached_message): New function.
11384 (gdb_display_match_list): Handle max_completions.
11385 (_initialize_completer): New declaration and function.
11386 * symtab.c: Include completer.h.
11387 (completion_tracker): New static variable.
11388 (completion_list_add_name): Call maybe_add_completion.
11389 (default_make_symbol_completion_list_break_on_1): Renamed from
11390 default_make_symbol_completion_list_break_on. Maintain
11391 completion_tracker across calls to completion_list_add_name.
11392 (default_make_symbol_completion_list_break_on): New function.
11393 * top.c (init_main): Set rl_completion_display_matches_hook.
11394 * tui/tui-io.c: Include completer.h.
11395 (tui_old_rl_display_matches_hook): New static global.
11396 (tui_rl_display_match_list): Notify user if max-completions reached.
11397 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11398 * NEWS (New Options): Mention set/show max-completions.
11400 2015-01-31 Gary Benson <gbenson@redhat.com>
11402 * symtab.c (struct add_name_data) <code>: New field.
11404 (add_symtab_completions): New function.
11405 (symtab_expansion_callback): Likewise.
11406 (default_make_symbol_completion_list_break_on): Set datum.code.
11407 Move minimal symbol scan before calling expand_symtabs_matching.
11408 Scan known primary symtabs for externs and statics before calling
11409 expand_symtabs_matching. Pass symtab_expansion_callback as
11410 expansion_notify argument to expand_symtabs_matching. Do not scan
11411 primary symtabs for externs and statics after calling
11412 expand_symtabs_matching.
11414 2015-01-31 Gary Benson <gbenson@redhat.com>
11416 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11417 (struct quick_symbol_functions) <expand_symtabs_matching>:
11418 New argument expansion_notify. All uses updated.
11419 (expand_symtabs_matching): New argument expansion_notify.
11421 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11422 Also print expansion notify.
11423 * symtab.c (expand_symtabs_matching_via_partial): Call
11424 expansion_notify whenever a partial symbol table is expanded.
11425 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11426 expansion_notify whenever a symbol table is instantiated.
11428 2015-01-31 Doug Evans <xdje42@gmail.com>
11430 * cli-out.c: #include completer.h, readline/readline.h.
11431 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11432 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11433 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11434 * cli-out.h (cli_display_match_list): Declare.
11435 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11436 (ELLIPSIS_LEN): Ditto.
11437 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11438 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11439 (gdb_fnprint, gdb_print_filename): Ditto.
11440 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11441 (gdb_display_match_list): Ditto.
11442 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11443 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11444 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11445 (match_list_displayer): New struct.
11446 (gdb_display_match_list): Declare.
11447 * top.c (init_main): Set rl_completion_display_matches_hook.
11448 * tui/tui-io.c: #include completer.h.
11449 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11450 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11451 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11452 (tui_mld_getc, tui_mld_read_key): Ditto.
11453 (tui_rl_display_match_list): Rewrite.
11454 (tui_handle_resize_during_io): New arg for_completion. All callers
11457 2015-01-31 Doug Evans <xdje42@gmail.com>
11459 Add symbol lookup cache.
11460 * NEWS: Document new options and commands.
11461 * symtab.c (symbol_cache_key): New static global.
11462 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11463 (SYMBOL_LOOKUP_FAILED): New macro.
11464 (symbol_cache_slot_state): New enum.
11465 (block_symbol_cache): New struct.
11466 (symbol_cache): New struct.
11467 (new_symbol_cache_size, symbol_cache_size): New static globals.
11468 (hash_symbol_entry, eq_symbol_entry): New functions.
11469 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11470 (make_symbol_cache, free_symbol_cache): New functions.
11471 (get_symbol_cache, symbol_cache_cleanup): New function.
11472 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11473 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11474 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11475 (symbol_cache_flush, symbol_cache_dump): New functions.
11476 (maintenance_print_symbol_cache): New function.
11477 (maintenance_flush_symbol_cache): New function.
11478 (symbol_cache_stats): New function.
11479 (maintenance_print_symbol_cache_statistics): New function.
11480 (symtab_new_objfile_observer): New function.
11481 (symtab_free_objfile_observer): New function.
11482 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11483 (_initialize_symtab): Init symbol_cache_key. New parameter
11484 maint symbol-cache-size. New maint commands print symbol-cache,
11485 print symbol-cache-statistics, flush-symbol-cache.
11486 Install new_objfile, free_objfile observers.
11488 2015-01-31 Joel Brobecker <brobecker@adacore.com>
11491 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11494 2015-01-31 Doug Evans <xdje42@gmail.com>
11496 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11497 * auto-load.c: #include ctype.h.
11498 (struct auto_load_pspace_info): Replace member loaded_scripts with
11499 new members loaded_script_files, loaded_script_texts.
11500 (auto_load_pspace_data_cleanup): Update.
11501 (init_loaded_scripts_info): Update.
11502 (get_auto_load_pspace_data_for_loading): Update.
11503 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11505 (maybe_add_script_text): New function.
11506 (clear_section_scripts): Update.
11507 (source_script_file, execute_script_contents): New functions.
11508 (source_section_scripts): Add support for
11509 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11510 (print_scripts): New function.
11511 (auto_load_info_scripts): Also print inlined scripts.
11512 (maybe_print_unsupported_script_warning): Renamed from
11513 unsupported_script_warning_print. All callers updated.
11514 (maybe_print_script_not_found_warning): Renamed from
11515 script_not_found_warning_print. All callers updated.
11516 * extension-priv.h (struct extension_language_script_ops): New member
11517 objfile_script_executor.
11518 * extension.c (ext_lang_objfile_script_executor): New function.
11519 * extension.h (objfile_script_executor_func): New typedef.
11520 (ext_lang_objfile_script_executor): Declare.
11521 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11522 * guile/guile.c (guile_extension_script_ops): Update.
11523 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11524 * python/python.c (python_extension_script_ops): Update.
11525 (gdbpy_execute_objfile_script): New function.
11527 2015-01-31 Eli Zaretskii <eliz@gnu.org>
11529 * tui/tui-io.c (tui_expand_tabs): New function.
11530 (tui_puts, tui_redisplay_readline): Expand TABs into the
11531 appropriate number of spaces.
11532 * tui/tui-regs.c: Include tui-io.h.
11533 (tui_register_format): Call tui_expand_tabs to expand TABs into
11534 the appropriate number of spaces.
11535 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11537 2015-01-30 Doug Evans <dje@google.com>
11539 * NEWS: "info source" command now display producer string if present.
11540 * source.c (source_info): Print producer string if present.
11542 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11544 * varobj.c (varobj_delete): Fix comment.
11546 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11548 * varobj.c (create_child): Modify comment.
11550 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11552 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11554 (ada_name_of_variable): Same.
11555 (ada_path_expr_of_child): Same.
11556 (ada_value_of_variable): Same.
11557 (ada_value_is_changeable_p): Same.
11558 (ada_value_has_mutated): Same.
11559 * c-varobj.c (varobj_is_anonymous_child): Same.
11560 (c_is_path_expr_parent): Same.
11561 (c_number_of_children): Same.
11562 (c_name_of_variable): Same.
11563 (c_path_expr_of_child): Same.
11565 (c_value_of_variable): Same.
11566 (cplus_number_of_children): Same.
11567 (cplus_name_of_variable): Same.
11568 (cplus_path_expr_of_child): Same.
11569 (cplus_value_of_variable): Same.
11570 * jv-varobj.c (java_number_of_children): Same.
11571 (java_name_of_variable): Same.
11572 (java_path_expr_of_child): Same.
11573 (java_value_of_variable): Same.
11574 * varobj.c (number_of_children): Same.
11575 (name_of_variable): Same.
11577 (varobj_ensure_python_env): Same.
11578 (varobj_get_objname): Same.
11579 (varobj_get_expression): Same.
11580 (varobj_get_display_format): Same.
11581 (varobj_get_display_hint): Same.
11582 (varobj_has_more): Same.
11583 (varobj_get_thread_id): Same.
11584 (varobj_get_frozen): Same.
11585 (dynamic_varobj_has_child_method): Same.
11586 (varobj_get_gdb_type): Same.
11587 (is_path_expr_parent): Same.
11588 (varobj_default_is_path_expr_parent): Same.
11589 (varobj_get_language): Same.
11590 (varobj_get_attributes): Same.
11591 (varobj_is_dynamic_p): Same.
11592 (varobj_get_child_range): Same.
11593 (varobj_value_has_mutated): Same.
11594 (varobj_get_value_type): Same.
11595 (number_of_children): Same.
11596 (name_of_variable): Same.
11597 (check_scope): Same.
11598 (varobj_editable_p): Same.
11599 (varobj_value_is_changeable_p): Same.
11600 (varobj_floating_p): Same.
11601 (varobj_default_value_is_changeable_p): Same.
11603 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11605 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11606 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11608 (cplus_path_expr_of_child): Same.
11610 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11612 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11614 (mi_cmd_var_info_expression): Same.
11615 * varobj.c (varobj_get_expression): Mention in the comment that
11616 the result must by freed by the caller.
11618 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11620 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11622 (varobj_update_one): Same.
11623 * varobj.c (update_type_if_necessary): Free curr_type_str and
11625 (varobj_get_type): Specify in comment that the result needs to be
11626 freed by the caller.
11628 2015-01-29 Doug Evans <dje@google.com>
11631 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11633 2015-01-25 Mark Wielaard <mjw@redhat.com>
11635 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11636 * utils.c (producer_is_gcc_ge_4): Likewise.
11637 (producer_is_gcc): New function.
11638 * utils.h (producer_is_gcc): New declaration.
11640 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11642 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11644 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11645 parameter by "addr_stack" parameter.
11646 (resolve_dynamic_range): Replace "addr" parameter by
11647 "stack_addr" parameter. Update function documentation.
11648 Update code accordingly.
11649 (resolve_dynamic_array, resolve_dynamic_union)
11650 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11651 (resolve_dynamic_type): Update code, following the changes made
11652 to resolve_dynamic_type_internal's interface.
11653 * dwarf2loc.h (struct property_addr_info): New.
11654 (dwarf2_evaluate_property): Replace "address" parameter
11655 by "addr_stack" parameter. Adjust function documentation.
11656 (struct dwarf2_offset_baton): New.
11657 (struct dwarf2_property_baton): Update documentation of
11658 field "referenced_type" to be more general. New field
11659 "offset_info" in union data field.
11660 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11661 parameter by "addr_stack" parameter. Adjust code accordingly.
11662 Add support for PROP_ADDR_OFFSET properties.
11663 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11664 DW_AT_data_member_location attributes as well. Use case
11665 statements instead of if/else condition.
11667 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11669 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11670 Return zero if PARENT_VALUE is NULL and parent_type's
11671 range type is dynamic.
11673 2015-01-29 Joel Brobecker <brobecker@adacore.com>
11675 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11676 nonzero if the type's subtype is dynamic.
11677 (resolve_dynamic_range): Also resolve the range's subtype.
11679 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
11681 Pushed by Joel Brobecker <brobecker@adacore.com>.
11682 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11684 2015-01-27 Doug Evans <dje@google.com>
11686 * NEWS: Mention gdb.Objfile.username.
11687 * python/py-objfile.c (objfpy_get_username): New function.
11688 (objfile_getset): Add "username".
11690 2015-01-24 Mark Wielaard <mjw@redhat.com>
11692 * stack.c (return_command): Markup warning message with _.
11694 2015-01-24 Doug Evans <xdje42@gmail.com>
11696 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11698 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11700 Fix 100x slowdown regression on DWZ files.
11701 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11702 (struct line_header): Add offset and offset_in_dwz.
11703 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11704 (free_line_header_voidp): New declaration.
11705 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11707 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11708 (handle_DW_AT_stmt_list): Use line_header_hash.
11709 (free_line_header_voidp): New function.
11710 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11711 (dwarf_decode_lines): New parameter decode_mapping, use it.
11712 (dwarf2_free_objfile): Free line_header_hash.
11714 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11717 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11720 2015-01-15 Mark Wielaard <mjw@redhat.com>
11722 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11724 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11725 calling_convention an 8 bit bit field.
11726 (TYPE_NO_RETURN): New macro.
11727 * infcmd.c (finish_command): Query if function does not return
11729 * stack.c (return_command): Likewise.
11731 2015-01-23 Pedro Alves <palves@redhat.com>
11733 * linux-nat.c (linux_is_async_p): New macro.
11734 (linux_nat_is_async_p):
11735 (linux_nat_terminal_inferior): Check whether the target can async
11736 instead of whether it is already async.
11737 (linux_nat_terminal_ours): Don't check whether the target is
11739 (linux_async_pipe): Use linux_is_async_p.
11741 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11743 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11745 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11746 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11747 Sort tp_array using tp_array_compar.
11748 (_initialize_thread): Extend thread_apply_all_command help.
11750 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11752 * corelow.c (core_open): Call also thread_command.
11753 * gdbthread.h (thread_command): New prototype moved from ...
11754 * thread.c (thread_command): ... here.
11755 (thread_command): Make it global.
11757 2015-01-22 Pedro Alves <palves@redhat.com>
11759 * configure.ac [*mingw32*]: Check $curses_found instead of
11761 * configure: Regenerate.
11762 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11763 HAVE_NCURSES_NCURSES_H checks.
11765 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11767 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
11768 fails with the 1st arg NULL, try again with "unknown". Don't test
11769 the "cup" capability: it isn't supported by the Windows port of
11770 ncurses, but the Windows console driver is still capable of
11773 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11775 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11777 2015-01-22 Eli Zaretskii <eliz@gnu.org>
11779 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11780 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11781 reason that "make TAGS" is broken.
11783 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11785 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11786 and check additional store instructions.
11788 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11790 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11792 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
11794 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11795 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11796 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11797 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11798 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11799 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11800 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11801 ppc_process_record_op19, ppc_process_record_op31,
11802 ppc_process_record_op59, ppc_process_record_op60,
11803 ppc_process_record_op63): Likewise.
11805 2015-01-20 Joel Brobecker <brobecker@adacore.com>
11807 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11808 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11811 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
11813 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11814 ppc_process_record_op31, ppc_process_record_op59,
11815 ppc_process_record_op60, ppc_process_record_op63,
11816 ppc_process_record): Fix -Wformat warning.
11817 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11818 Remove unused variables.
11820 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11822 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11824 2015-01-19 Eli Zaretskii <eliz@gnu.org>
11826 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11827 CONFIG_OBS if not building with a curses library.
11828 * configure: Regenerate.
11830 * windows-termcap.c: Include defs.h. Make the whole body empty if
11831 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11832 HAVE_NCURSES_NCURSES_H is defined.
11834 2015-01-19 Joel Brobecker <brobecker@adacore.com>
11836 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11837 from end of line to start of next line.
11839 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11841 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11842 Scan PLT stub backward for reverse debugging.
11843 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11845 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11846 Ulrich Weigand <uweigand@de.ibm.com>
11848 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11850 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11852 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11853 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11854 (ppc_linux_init_abi): Set process_record, process_record_signal.
11855 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11856 ppc_linux_record_tdep to gdbarch_tdep.
11857 (ppc_process_record): New declaration.
11858 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11859 ppc_process_record_op19, ppc_process_record_op31,
11860 ppc_process_record_op59, ppc_process_record_op60,
11861 ppc_process_record_op63, ppc_process_record): New functions.
11863 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
11865 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11866 rs6000_in_function_epilogue_frame_p and add an argument
11868 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11869 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11871 (rs6000_epilogue_frame_unwind): New.
11872 (rs6000_gdbarch_init): Append epilogue unwinder.
11874 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11876 * nat/linux-personality.c: Replace "#ifndef
11877 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11878 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11881 2015-01-16 Eli Zaretskii <eliz@gnu.org>
11883 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11885 (_initialize_tui_win) <border-kind, border-mode>:
11886 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
11887 (tui_set_tab_width_command): Fix the commentary.
11889 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11891 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11893 (tui_set_tab_width_command): Delete and recreate the source and
11894 the disassembly windows, to show the effect of the changed tab
11897 * tui/tui-data.h (LINE_PREFIX): Make shorter
11898 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11899 "Thread NNNNN.XXXX" thread ID notation on Windows.
11901 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11903 Fix gcc-5 compilation.
11904 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11906 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11908 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11909 (linux-personality.o): New rule.
11910 * common/common-defs.h: Include <stdint.h>.
11911 * config/aarch64/linux.mh (NATDEPFILES): Include
11912 linux-personality.o.
11913 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11914 * config/arm/linux.mh (NATDEPFILES): Likewise.
11915 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11916 * config/i386/linux.mh (NATDEPFILES): Likewise.
11917 * config/ia64/linux.mh (NATDEPFILES): Likewise.
11918 * config/m32r/linux.mh (NATDEPFILES): Likewise.
11919 * config/m68k/linux.mh (NATDEPFILES): Likewise.
11920 * config/mips/linux.mh (NATDEPFILES): Likewise.
11921 * config/pa/linux.mh (NATDEPFILES): Likewise.
11922 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11923 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11924 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11925 * config/s390/linux.mh (NATDEPFILES): Likewise.
11926 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11927 * config/sparc/linux.mh (NATDEPFILES): Likewise.
11928 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11929 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11930 * defs.h: Remove #include <stdint.h> (moved to
11931 common/common-defs.h).
11932 * linux-nat.c: Include nat/linux-personality.h. Remove #include
11933 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11934 nat/linux-personality.c).
11935 (linux_nat_create_inferior): Remove code to disable address space
11936 randomization (moved to nat/linux-personality.c). Create cleanup
11937 to disable address space randomization.
11938 * nat/linux-personality.c: New file.
11939 * nat/linux-personality.h: Likewise.
11941 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11943 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
11944 common/posix-strerror.c.
11945 (posix-strerror.o): New rule.
11946 (mingw-strerror.o): Likewise.
11947 * common/common-utils.h (safe_strerror): Move prototype to here,
11949 * common/common.host: New file.
11950 * common/mingw-strerror.c: Likewise.
11951 * common/posix-strerror.c: Likewise.
11952 * configure: Regenerated.
11953 * configure.ac: Source common/common.host. Add variable
11954 common_host_obs to gdb_host_obs.
11955 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
11956 gdb/common/posix-strerror.c when warning about the use of
11958 * mingw-hdep.c (safe_strerror): Remove definition; move it to
11959 common/mingw-strerror.c.
11960 * posix-hdep.c (safe_strerror): Remove definition; move it to
11961 common/posix-hdep.c.
11962 * utils.h (safe_strerror): Remove prototype; move to
11963 common/common-utils.h.
11965 2015-01-15 Joel Brobecker <brobecker@adacore.com>
11967 GDB 7.8.2 released.
11969 2015-01-15 Joel Brobecker <brobecker@adacore.com>
11971 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
11972 ___XA type if the array has already been fixed.
11974 2015-01-14 Yao Qi <yao@codesourcery.com>
11976 * Makefile.in (ppc-linux.o): New rule.
11977 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
11978 * configure.ac: AC_CHECK_FUNCS(getauxval).
11979 * config.in: Re-generated.
11980 * configure: Re-generated.
11981 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
11983 * nat/ppc-linux.c: New file.
11984 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
11985 Call ppc64_64bit_inferior_p.
11987 2015-01-14 Yao Qi <yao@codesourcery.com>
11989 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
11991 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
11992 (PPC_FEATURE_HAS_DFP): Likewise.
11993 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11994 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11995 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11996 Include "nat/ppc-linux.h".
11997 * nat/ppc-linux.h: New file.
11998 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
12000 2015-01-14 Pedro Alves <palves@redhat.com>
12003 * breakpoint.c: Include "interps.h".
12004 (bpstat_do_actions_1): Also check whether the interpreter is
12007 2015-01-14 Pedro Alves <palves@redhat.com>
12010 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
12011 reinstall if the interpreter is sync.
12013 2015-01-13 Doug Evans <dje@google.com>
12015 * objfiles.c (objfile_filename): New function.
12016 * objfiles.h (objfile_filename): Declare it.
12017 (objfile_name): Add function comment.
12018 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
12019 bfd file name (which may be realpath'd), and the original name.
12021 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12023 * NEWS: Create a new section for the next release branch.
12024 Rename the section of the current branch, now that it has
12027 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12029 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
12030 * version.in: Bump version to 7.9.50.DATE-cvs.
12032 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12034 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
12035 Remove trailing new-line in argument of call to warning.
12037 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12039 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
12040 new-line in argument of call to "warning".
12042 2015-01-13 Joel Brobecker <brobecker@adacore.com>
12044 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
12045 in static block, then try searching for primitive types.
12047 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12049 * top.h (gdb_add_history): Declare.
12050 * top.c (command_count): New variable.
12051 (gdb_add_history): New function.
12052 (gdb_safe_append_history): New static function.
12053 (quit_force): Call it.
12054 (command_line_input): Use gdb_add_history instead of
12056 * event-top.c (command_line_handler): Likewise.
12058 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12061 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12062 <setjmp.h> #include.
12064 2015-01-11 Doug Evans <xdje42@gmail.com>
12066 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12068 2015-01-11 Doug Evans <xdje42@gmail.com>
12071 * NEWS: The "maint demangle" command is renamed as "demangle".
12072 * demangle.c: #include cli/cli-utils.h, language.h.
12073 (demangle_command): New function.
12074 (_initialize_demangle): Add new command "demangle".
12075 * maint.c (maintenance_demangle): Stub out.
12076 (_initialize_maint_cmds): Update help text for "maint demangle",
12077 and mark as deprecated.
12079 2015-01-11 Mark Kettenis <kettenis@gnu.org>
12081 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12082 inferior_thread is a function.
12084 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12086 * Makefile.in (.y.c): Don't munge yacc's #line
12089 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12091 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12092 to prompt for input.
12093 * tui/tui-hooks.c (tui_query_hook): Remove.
12094 (tui_install_hooks): Don't set deprecated_query_hook.
12095 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12096 height calculation. Always update the command window's cur_line.
12098 2015-01-09 Pedro Alves <palves@redhat.com>
12100 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12102 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12104 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12105 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12107 (check_stopped_by_watchpoint): New function.
12108 (save_sigtrap): Reimplement.
12109 (linux_nat_stopped_by_watchpoint): Adjust.
12110 (linux_nat_lp_status_is_event): Delete.
12111 (stop_wait_callback): Only call save_sigtrap after storing the
12113 (status_callback): If the thread had been stopped for a breakpoint
12114 that has since been removed, discard the event and resume the LWP.
12115 (count_events_callback, select_event_lwp_callback): Use
12116 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12117 (cancel_breakpoint): Rename to ...
12118 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12119 stopped for a software breakpoint or hardware breakpoint.
12120 (select_event_lwp): Only give preference to the stepping LWP in
12121 all-stop mode. Adjust comments.
12122 (stop_and_resume_callback): Remove references to new_pending_p.
12123 (linux_nat_filter_event): Likewise. Leave exit events of the
12124 leader thread pending here. Handle signal short circuiting here.
12125 Only call save_sigtrap after storing the pending waitstatus.
12126 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12127 new_pending. Don't handle leaving events the caller is not
12128 interested in pending here, nor handle signal short-circuiting
12129 here. Also give equal priority to all LWPs that have had events
12130 in non-stop mode. If reporting a software breakpoint event,
12131 unadjust the LWP's PC.
12132 * linux-nat.h (enum lwp_stop_reason): New.
12133 (struct lwp_info) <stop_pc>: New field.
12134 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12135 (struct lwp_info) <stop_reason>: New field.
12136 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12138 2015-01-09 Pedro Alves <palves@redhat.com>
12140 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12141 Set the LWP's 'resumed' flag.
12143 2015-01-09 Pedro Alves <palves@redhat.com>
12145 * linux-nat.c (linux_resume_one_lwp): New function.
12146 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12147 (linux_nat_resume): Use lwp_status_pending_p and
12148 linux_resume_one_lwp.
12149 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12150 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12151 (status_callback, running_callback): Use lwp_status_pending_p.
12152 (lwp_status_pending_p): New function.
12153 (stop_and_resume_callback): Use lwp_status_pending_p.
12154 (linux_nat_filter_event): Use linux_resume_one_lwp.
12155 (linux_nat_wait_1): Always use status_callback to look for an LWP
12156 with a pending status. Use linux_resume_one_lwp.
12157 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12158 linux_resume_one_lwp.
12160 2015-01-09 Pedro Alves <palves@redhat.com>
12162 * breakpoint.c (bp_location_inserted_here_p): New function,
12163 factored out from ...
12164 (breakpoint_inserted_here_p): ... here. Use
12165 ALL_BP_LOCATIONS_AT_ADDR.
12166 (software_breakpoint_inserted_here_p): Use
12167 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12169 2014-01-09 Pedro Alves <palves@redhat.com>
12171 Skip enabling event reporting if the kernel supports
12172 PTRACE_EVENT_CLONE.
12173 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12174 (thread_db_use_events): New function.
12175 (try_thread_db_load_1): Check thread_db_use_events before enabling
12177 (update_thread_state): New function.
12178 (attach_thread): Use it. Check thread_db_use_events before
12179 enabling event reporting.
12180 (thread_db_detach): Check thread_db_use_events before disabling
12182 (find_new_threads_callback): Check thread_db_use_events before
12183 enabling event reporting. Update the thread's state if not using
12184 libthread_db events.
12186 2015-01-09 Pedro Alves <palves@redhat.com>
12188 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12189 about to wait for is > 0.
12190 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12191 the kernel thread ID is -1.
12193 2015-01-09 Pedro Alves <palves@redhat.com>
12195 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12196 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12197 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12198 ptrace option flags.
12199 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12201 * nat/linux-procfs.c: Include <dirent.h>.
12202 (linux_proc_get_int): New parameter "warn". Handle it.
12203 (linux_proc_get_tgid): Adjust.
12204 (linux_proc_get_tracerpid): Rename to ...
12205 (linux_proc_get_tracerpid_nowarn): ... this.
12206 (linux_proc_pid_get_state): New function, factored out from
12207 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12209 (linux_proc_pid_is_gone): New function.
12210 (linux_proc_pid_is_stopped): Adjust.
12211 (linux_proc_pid_is_zombie_maybe_warn)
12212 (linux_proc_pid_is_zombie_nowarn): New functions.
12213 (linux_proc_pid_is_zombie): Use
12214 linux_proc_pid_is_zombie_maybe_warn.
12215 (linux_proc_attach_tgid_threads): New function.
12216 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12217 (linux_proc_get_tracerpid): Rename to ...
12218 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12219 (linux_proc_pid_is_gone): New declaration.
12220 (linux_proc_pid_is_zombie): Update comment.
12221 (linux_proc_pid_is_zombie_nowarn): New declaration.
12222 (linux_proc_attach_lwp_func): New typedef.
12223 (linux_proc_attach_tgid_threads): New declaration.
12224 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12225 use nowarn functions.
12226 (linux_ptrace_attach_fail_reason_string): Move here from
12227 gdbserver/linux-low.c and rename.
12228 (ptrace_supports_feature): If the current ptrace options are not
12229 known yet, check them now, instead of asserting.
12230 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12233 2015-01-09 Pedro Alves <palves@redhat.com>
12235 * linux-thread-db.c (thread_db_find_new_threads_silently)
12236 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12237 (find_new_threads_once): Print debug output on gdb_stdlog.
12239 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12240 Pedro Alves <palves@redhat.com>
12242 * compile/compile.c: Include "gdb_wait.h".
12243 (do_rmdir): Check return value, and free 'zap'.
12245 2015-01-08 Pedro Alves <palves@redhat.com>
12246 Yao Qi <yao@codesourcery.com>
12248 * dwarf2loc.c (indirect_pieced_value): Don't call
12249 gdb_sign_extend. Call extract_signed_integer instead.
12250 * utils.c (gdb_sign_extend): Remove.
12251 * utils.h (gdb_sign_extend): Remove declaration.
12253 2015-01-07 Pierre Muller <muller@sourceware.org>
12256 * stabsread.c (define_symbol): Set language for C++ special symbols.
12258 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12260 * inflow.c (initial_gdb_ttystate): Tweak comment.
12262 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12264 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12265 comment documenting function.
12267 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12269 * terminal.h (set_initial_gdb_ttystate): Declare.
12270 * inflow.c (initial_gdb_ttystate): New static variable.
12271 (set_initial_gdb_ttystate): New setter.
12272 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12273 instead of our current terminal state.
12274 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12276 2015-01-07 Joel Brobecker <brobecker@adacore.com>
12278 * guile/scm-type.c (tyscm_array_1): Add comment.
12279 * python/py-type.c (typy_array_1): Add comment.
12281 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12283 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12284 error if N2 is equal to N1 - 1.
12286 2015-01-06 Joel Brobecker <brobecker@adacore.com>
12288 * python/py-type.c (typy_array_1): Do not raise negative-length
12289 exception if N2 is equal to N1 - 1.
12291 2015-01-03 Doug Evans <xdje42@gmail.com>
12293 * c-exp.y: Whitespace cleanup.
12294 (classify_inner_name): Remove extra ;.
12296 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12298 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12301 2015-01-02 Doug Evans <dje@google.com>
12303 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12305 2015-01-02 Doug Evans <dje@google.com>
12307 * symtab.h (struct symbol): Fix typo in comment.
12309 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12311 Update year range in copyright notice of all files.
12313 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12315 * top.c (print_gdb_version): Update copyright year to 2015.
12317 2015-01-01 Joel Brobecker <brobecker@adacore.com>
12319 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
12321 For older changes see ChangeLog-2014.
12327 version-control: never