x86/Linux: reenable all-stop on top of non-stop
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
398e0813
PA
12015-09-30 Pedro Alves <palves@redhat.com>
2
3 * linux-nat.c (linux_nat_always_non_stop_p): Always return 1.
4 * x86-linux-nat.c (x86_linux_always_non_stop_p): Delete.
5 (x86_linux_create_target): Don't install
6 x86_linux_always_non_stop_p.
7
6ab24463
DB
82015-09-30 Don Breazeal <donb@codesourcery.com>
9
10 * remote.c (remote_parse_stop_reply): Call strprefix instead
11 of strncmp.
12
ede5f151
SM
132015-09-30 Simon Marchi <simon.marchi@ericsson.com>
14
15 * gdbarch.sh (struct gdbarch_info): Change tdep_info's type to void *.
16 * gdbarch.h: Regenerate.
17 * i386-tdep.c (i386_gdbarch_init): Remove cast to
18 struct gdbarch_tdep_info *.
19 * mips-tdep.c (mips_gdbarch_init): Likewise.
20 * ppc-linux-tdep (ppu2spu_sniffer): Likewise.
21 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
22 * spu-multiarch.c (spu_gdbarch): Likewise.
23
51c935fa 242015-09-30 Kevin Buettner <kevinb@redhat.com>
aca20ec4
KB
25
26 * infcmd.c (finish_command_fsm_should_stop): Don't attempt to
27 record a NULL value.
28
3b1ad7d5
KB
292015-09-29 Kevin Buettner <kevinb@redhat.com>
30
31 * msp430-tdep.c (msp430_push_dummy_call): Treat reference, struct,
32 and union arguments the same as pointer arguments when determining
33 size of argument.
34
86feccb9 352015-09-29 James Bowman <james.bowman@ftdichip.com>
36
37 * ft32-tdep.c: #include "opcode/ft32.h".
38 Delete local macros IS_PUSH, PUSH_REG, IS_LINK, LINK_SIZE.
39 (ft32_analyze_prologue): Use FT32_* macros.
40
2181a6c6
SM
412015-09-28 Simon Marchi <simon.marchi@ericsson.com>
42
84d73afc 43 * cli/cli-script.c (read_next_line): Fix stdout -> stdin in
2181a6c6
SM
44 comment.
45
245af596
DE
462015-09-28 Doug Evans <dje@google.com>
47
48 * MAINTAINERS: Add Iain Buclaw as D language maintainer.
49
c402ef90
DE
502015-09-28 Doug Evans <dje@google.com>
51
52 * common/filestuff.c (make_cleanup_close): Update comment.
53
bc84451b
SM
542015-09-26 Simon Marchi <simark@nova.polymtl.ca>
55
56 * btrace.c (parse_xml_btrace_block): Fix cast of
57 xml_find_attribute's return value.
58 * memory-map.c (memory_map_start_memory): Likewise.
59 * solib-svr4.c (library_list_start_library): Likewise.
60 * solib-target.c (library_list_start_segment): Likewise.
61 (library_list_start_section): Likewise.
62 * tracepoint.c (traceframe_info_start_memory): Likewise.
63
ba587d55
IB
642015-09-26 Iain Buclaw <ibuclaw@gdcproject.org>
65
66 * d-namespace.c (d_lookup_symbol): New arg langdef.
67 All callers updated. Support looking up symbol as a primitive type.
68 (lookup_module_scope): New arg langdef. All callers updated.
69 Call d_lookup_symbol directly for simple bare symbols.
70
19ba03f4
SM
712015-09-25 Simon Marchi <simon.marchi@ericsson.com>
72
73 * macrocmd.c (print_macro_callback): Add cast(s).
74 * macrotab.c (macro_bcache_str): Likewise.
75 (new_macro_definition): Likewise.
76 * main.c (captured_main): Likewise.
77 * maint.c (print_bfd_section_info): Likewise.
78 * mdebugread.c (mdebug_build_psymtabs): Likewise.
79 (basic_type): Likewise.
80 * memattr.c (mem_region_cmp): Likewise.
81 * memory-map.c (memory_map_start_memory): Likewise.
82 (memory_map_end_memory): Likewise.
83 (memory_map_start_property): Likewise.
84 (memory_map_end_property): Likewise.
85 (clear_result): Likewise.
86 * memrange.c (compare_mem_ranges): Likewise.
87 * mep-tdep.c (mep_analyze_frame_prologue): Likewise.
88 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Likewise.
89 * mi/mi-console.c (mi_console_file_delete): Likewise.
90 (mi_console_file_fputs): Likewise.
91 (mi_console_raw_packet): Likewise.
92 (mi_console_file_flush): Likewise.
93 (mi_console_set_raw): Likewise.
94 * mi/mi-interp.c (mi_interpreter_resume): Likewise.
95 (mi_new_thread): Likewise.
96 (mi_thread_exit): Likewise.
97 (mi_record_changed): Likewise.
98 (mi_inferior_added): Likewise.
99 (mi_inferior_appeared): Likewise.
100 (mi_inferior_exit): Likewise.
101 (mi_inferior_removed): Likewise.
102 (mi_interp_data): Likewise.
103 (mi_on_normal_stop): Likewise.
104 (mi_traceframe_changed): Likewise.
105 (mi_tsv_created): Likewise.
106 (mi_tsv_deleted): Likewise.
107 (mi_tsv_modified): Likewise.
108 (mi_breakpoint_created): Likewise.
109 (mi_breakpoint_deleted): Likewise.
110 (mi_breakpoint_modified): Likewise.
111 (mi_output_running_pid): Likewise.
112 (mi_inferior_count): Likewise.
113 (mi_solib_loaded): Likewise.
114 (mi_solib_unloaded): Likewise.
115 (mi_command_param_changed): Likewise.
116 (mi_memory_changed): Likewise.
117 (report_initial_inferior): Likewise.
118 (mi_ui_out): Likewise.
119 (mi_set_logging): Likewise.
120 * mi/mi-main.c (collect_cores): Likewise.
121 (print_one_inferior): Likewise.
122 (free_vector_of_ints): Likewise.
123 (free_splay_tree): Likewise.
124 (mi_execute_command): Likewise.
125 * mi/mi-out.c (mi_table_body): Likewise.
126 (mi_table_end): Likewise.
127 (mi_table_header): Likewise.
128 (mi_begin): Likewise.
129 (mi_end): Likewise.
130 (mi_field_int): Likewise.
131 (mi_field_string): Likewise.
132 (mi_field_fmt): Likewise.
133 (mi_flush): Likewise.
134 (mi_redirect): Likewise.
135 (field_separator): Likewise.
136 (mi_open): Likewise.
137 (mi_close): Likewise.
138 (mi_out_buffered): Likewise.
139 (mi_out_rewind): Likewise.
140 (mi_out_put): Likewise.
141 (mi_version): Likewise.
142 (mi_out_data_dtor): Likewise.
143 * mi/mi-parse.c (mi_parse_cleanup): Likewise.
144 * microblaze-tdep.c (microblaze_frame_cache): Likewise.
145 * minidebug.c (lzma_open): Likewise.
146 (lzma_pread): Likewise.
147 (lzma_close): Likewise.
148 (lzma_stat): Likewise.
149 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
150 * mips-sde-tdep.c (mips_sde_frame_cache): Likewise.
151 (mips_sde_elf_osabi_sniff_abi_tag_sections): Likewise.
152 * mips-tdep.c (mips_insn16_frame_cache): Likewise.
153 (mips_micro_frame_cache): Likewise.
154 (mips_insn32_frame_cache): Likewise.
155 (mips_stub_frame_cache): Likewise.
156 (gdb_print_insn_mips): Likewise.
157 (value_of_mips_user_reg): Likewise.
158 (mips_gdbarch_init): Likewise.
159 * mips64obsd-tdep.c (mips64obsd_supply_gregset): Likewise.
160 * mipsnbsd-tdep.c (mipsnbsd_supply_fpregset): Likewise.
161 (mipsnbsd_supply_gregset): Likewise.
162 * mn10300-linux-tdep.c (am33_supply_fpregset_method): Likewise.
163 (am33_collect_gregset_method): Likewise.
164 (am33_collect_fpregset_method): Likewise.
165 * mn10300-tdep.c (mn10300_analyze_frame_prologue): Likewise.
166 * moxie-tdep.c (moxie_frame_cache): Likewise.
167 * msp430-tdep.c (msp430_get_opcode_byte): Likewise.
168 (msp430_analyze_frame_prologue): Likewise.
169 * mt-tdep.c (mt_frame_unwind_cache): Likewise.
170 * nios2-linux-tdep.c (nios2_supply_gregset): Likewise.
171 (nios2_collect_gregset): Likewise.
172 * nios2-tdep.c (nios2_frame_unwind_cache): Likewise.
173 (nios2_stub_frame_cache): Likewise.
174 * objc-lang.c (find_methods): Likewise.
175 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
176 (get_objfile_pspace_data): Likewise.
177 (get_objfile_bfd_data): Likewise.
178 (objfile_bfd_data_free): Likewise.
179 (add_to_objfile_sections): Likewise.
180 (do_free_objfile_cleanup): Likewise.
181 (resume_section_map_updates_cleanup): Likewise.
182 * opencl-lang.c (builtin_opencl_type): Likewise.
183 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
184 * osdata.c (osdata_start_osdata): Likewise.
185 (osdata_start_item): Likewise.
186 (osdata_start_column): Likewise.
187 (osdata_end_column): Likewise.
188 (clear_parsing_data): Likewise.
189 (osdata_free_cleanup): Likewise.
190 * parse.c (type_stack_cleanup): Likewise.
191 (exp_uses_objfile_iter): Likewise.
192 * ppc-linux-tdep.c (ppc_linux_supply_gregset): Likewise.
193 (ppc_linux_collect_gregset): Likewise.
194 (ppu2spu_prev_arch): Likewise.
195 (ppu2spu_this_id): Likewise.
196 (ppu2spu_prev_register): Likewise.
197 (ppu2spu_unwind_register): Likewise.
198 (ppu2spu_sniffer): Likewise.
199 (ppu2spu_dealloc_cache): Likewise.
200 (ppc_linux_init_abi): Likewise.
201 * ppcfbsd-tdep.c (ppcfbsd_sigtramp_frame_cache): Likewise.
202 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
203 * progspace.c (restore_program_space): Likewise.
204 * psymtab.c (find_pc_sect_psymtab): Likewise.
205 (compare_psymbols): Likewise.
206 (psymbol_bcache_full): Likewise.
207 (allocate_psymtab): Likewise.
208 (discard_psymtabs_upto): Likewise.
209 * python/py-block.c (set_block): Likewise.
210 (del_objfile_blocks): Likewise.
211 * python/py-breakpoint.c (build_bp_list): Likewise.
212 * python/py-inferior.c (inferior_to_inferior_object): Likewise.
213 (build_inferior_list): Likewise.
214 (py_free_inferior): Likewise.
215 * python/py-objfile.c (py_free_objfile): Likewise.
216 (objfile_to_objfile_object): Likewise.
217 * python/py-prettyprint.c (py_restore_tstate): Likewise.
218 * python/py-progspace.c (py_free_pspace): Likewise.
219 (pspace_to_pspace_object): Likewise.
220 * python/py-symbol.c (set_symbol): Likewise.
221 (del_objfile_symbols): Likewise.
222 * python/py-symtab.c (set_sal): Likewise.
223 (set_symtab): Likewise.
224 (del_objfile_symtab): Likewise.
225 (del_objfile_sal): Likewise.
226 * python/py-type.c (save_objfile_types): Likewise.
227 (set_type): Likewise.
228 * python/py-unwind.c (pyuw_prev_register): Likewise.
229 (pyuw_on_new_gdbarch): Likewise.
230 * python/py-utils.c (py_decref): Likewise.
231 (py_xdecref): Likewise.
232 (gdb_py_generic_dict): Likewise.
233 * python/py-xmethods.c (gdbpy_free_xmethod_worker_data): Likewise.
234 (gdbpy_clone_xmethod_worker_data): Likewise.
235 (gdbpy_get_xmethod_arg_types): Likewise.
236 (gdbpy_get_xmethod_result_type): Likewise.
237 (gdbpy_invoke_xmethod): Likewise.
238 * python/python.c (gdbpy_apply_type_printers): Likewise.
239 (gdbpy_free_type_printers): Likewise.
240 * record-btrace.c (record_btrace_disable_callback): Likewise.
241 (bfcache_hash): Likewise.
242 (bfcache_eq): Likewise.
243 (btrace_get_frame_function): Likewise.
244 (record_btrace_frame_unwind_stop_reason): Likewise.
245 (record_btrace_frame_this_id): Likewise.
246 (record_btrace_frame_prev_register): Likewise.
247 (record_btrace_frame_dealloc_cache): Likewise.
248 * record-full.c (record_full_message_wrapper): Likewise.
249 (record_full_save_cleanups): Likewise.
250 * regcache.c (regcache_descr): Likewise.
251 (do_regcache_xfree): Likewise.
252 (do_regcache_invalidate): Likewise.
253 (do_cooked_read): Likewise.
254 (regcache_transfer_regset): Likewise.
255 * reggroups.c (reggroup_add): Likewise.
256 (reggroup_next): Likewise.
257 (reggroup_prev): Likewise.
258 * remote-fileio.c (do_remote_fileio_request): Likewise.
259 * remote-notif.c (remote_async_get_pending_events_handler): Likewise.
260 (do_notif_event_xfree): Likewise.
261 * remote.c (get_remote_arch_state): Likewise.
262 (remote_pspace_data_cleanup): Likewise.
263 (get_remote_exec_file): Likewise.
264 (set_pspace_remote_exec_file): Likewise.
265 (compare_pnums): Likewise.
266 (clear_threads_listing_context): Likewise.
267 (remote_newthread_step): Likewise.
268 (start_thread): Likewise.
269 (end_thread): Likewise.
270 (remove_child_of_pending_fork): Likewise.
271 (remove_stop_reply_for_inferior): Likewise.
272 (remove_stop_reply_of_remote_state): Likewise.
273 (remote_notif_remove_once_on_match): Likewise.
274 (stop_reply_match_ptid_and_ws): Likewise.
275 (kill_child_of_pending_fork): Likewise.
276 (register_remote_g_packet_guess): Likewise.
277 (remote_read_description_p): Likewise.
278 (remote_read_description): Likewise.
279 (free_actions_list_cleanup_wrapper): Likewise.
280 (remote_async_serial_handler): Likewise.
281 * rl78-tdep.c (rl78_get_opcode_byte): Likewise.
282 (rl78_analyze_frame_prologue): Likewise.
283 * rs6000-tdep.c (ppc_supply_gregset): Likewise.
284 (ppc_supply_fpregset): Likewise.
285 (ppc_supply_vsxregset): Likewise.
286 (ppc_supply_vrregset): Likewise.
287 (ppc_collect_gregset): Likewise.
288 (ppc_collect_fpregset): Likewise.
289 (ppc_collect_vsxregset): Likewise.
290 (ppc_collect_vrregset): Likewise.
291 (e500_move_ev_register): Likewise.
292 (do_regcache_raw_write): Likewise.
293 (rs6000_frame_cache): Likewise.
294 (rs6000_epilogue_frame_cache): Likewise.
295 (rs6000_gdbarch_init): Likewise.
296 * rx-tdep.c (rx_get_opcode_byte): Likewise.
297 (rx_analyze_frame_prologue): Likewise.
298 (rx_frame_type): Likewise.
299 (rx_frame_sniffer_common): Likewise.
300 * s390-linux-tdep.c (s390_check_for_saved): Likewise.
301 (s390_frame_unwind_cache): Likewise.
302 (s390_stub_frame_unwind_cache): Likewise.
303 (s390_sigtramp_frame_unwind_cache): Likewise.
304 * score-tdep.c (score_make_prologue_cache): Likewise.
305 * sentinel-frame.c (sentinel_frame_prev_register): Likewise.
306 (sentinel_frame_prev_arch): Likewise.
307 * ser-base.c (fd_event): Likewise.
308 (push_event): Likewise.
309 (ser_base_write): Likewise.
310 * ser-pipe.c (pipe_close): Likewise.
311 * serial.c (serial_write): Likewise.
312 * sh-tdep.c (sh_frame_cache): Likewise.
313 (sh_stub_this_id): Likewise.
314 * sh64-tdep.c (sh64_frame_cache): Likewise.
315 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
316 (library_list_start_library): Likewise.
317 (library_list_start_list): Likewise.
318 (solib_aix_free_library_list): Likewise.
319 * solib-darwin.c (get_darwin_info): Likewise.
320 * solib-dsbt.c (get_dsbt_info): Likewise.
321 * solib-spu.c (append_ocl_sos): Likewise.
322 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
323 (get_svr4_info): Likewise.
324 (library_list_start_library): Likewise.
325 (svr4_library_list_start_list): Likewise.
326 (hash_probe_and_action): Likewise.
327 (equal_probe_and_action): Likewise.
328 (svr4_update_solib_event_breakpoint): Likewise.
329 (set_solib_svr4_fetch_link_map_offsets): Likewise.
330 (svr4_fetch_link_map_offsets): Likewise.
331 (svr4_have_link_map_offsets): Likewise.
332 * solib-target.c (library_list_start_segment): Likewise.
333 (library_list_start_section): Likewise.
334 (library_list_start_library): Likewise.
335 (library_list_end_library): Likewise.
336 (library_list_start_list): Likewise.
337 (solib_target_free_library_list): Likewise.
338 * solib.c (solib_ops): Likewise.
339 (set_solib_ops): Likewise.
340 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
341 * sparc-tdep.c (sparc_frame_cache): Likewise.
342 (sparc32_frame_cache): Likewise.
343 (sparc32_supply_gregset): Likewise.
344 (sparc32_collect_gregset): Likewise.
345 (sparc32_supply_fpregset): Likewise.
346 (sparc32_collect_fpregset): Likewise.
347 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
348 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
349 (sparc64_collect_gregset): Likewise.
350 (sparc64_supply_fpregset): Likewise.
351 (sparc64_collect_fpregset): Likewise.
352 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_cache): Likewise.
353 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
354 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
355 (sparc64obsd_trapframe_cache): Likewise.
356 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Likewise.
357 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
358 * spu-multiarch.c (spu_gdbarch): Likewise.
359 * spu-tdep.c (spu_frame_unwind_cache): Likewise.
360 (spu2ppu_prev_arch): Likewise.
361 (spu2ppu_this_id): Likewise.
362 (spu2ppu_prev_register): Likewise.
363 (spu2ppu_dealloc_cache): Likewise.
364 (spu_dis_asm_print_address): Likewise.
365 (gdb_print_insn_spu): Likewise.
366 (spu_get_overlay_table): Likewise.
367 * stabsread.c (rs6000_builtin_type): Likewise.
368 * stack.c (do_print_variable_and_value): Likewise.
369 * stap-probe.c (get_stap_base_address_1): Likewise.
370 * symfile-debug.c (debug_qf_has_symbols): Likewise.
371 (debug_qf_find_last_source_symtab): Likewise.
372 (debug_qf_forget_cached_source_info): Likewise.
373 (debug_qf_map_symtabs_matching_filename): Likewise.
374 (debug_qf_lookup_symbol): Likewise.
375 (debug_qf_print_stats): Likewise.
376 (debug_qf_dump): Likewise.
377 (debug_qf_relocate): Likewise.
378 (debug_qf_expand_symtabs_for_function): Likewise.
379 (debug_qf_expand_all_symtabs): Likewise.
380 (debug_qf_expand_symtabs_with_fullname): Likewise.
381 (debug_qf_map_matching_symbols): Likewise.
382 (debug_qf_expand_symtabs_matching): Likewise.
383 (debug_qf_find_pc_sect_compunit_symtab): Likewise.
384 (debug_qf_map_symbol_filenames): Likewise.
385 (debug_sym_get_probes): Likewise.
386 (debug_sym_new_init): Likewise.
387 (debug_sym_init): Likewise.
388 (debug_sym_read): Likewise.
389 (debug_sym_read_psymbols): Likewise.
390 (debug_sym_finish): Likewise.
391 (debug_sym_offsets): Likewise.
392 (debug_sym_read_linetable): Likewise.
393 (debug_sym_relocate): Likewise.
394 (uninstall_symfile_debug_logging): Likewise.
395 * symfile-mem.c (symbol_file_add_from_memory_wrapper): Likewise.
396 * symfile.c (place_section): Likewise.
397 (add_section_size_callback): Likewise.
398 (load_progress): Likewise.
399 (load_section_callback): Likewise.
400 (clear_memory_write_data): Likewise.
401 (allocate_symtab): Likewise.
402 * symmisc.c (maintenance_expand_file_matcher): Likewise.
403 * symtab.c (lookup_symtab_callback): Likewise.
404 (hash_demangled_name_entry): Likewise.
405 (eq_demangled_name_entry): Likewise.
406 (get_symbol_cache): Likewise.
407 (symbol_cache_cleanup): Likewise.
408 (set_symbol_cache_size): Likewise.
409 (symbol_cache_flush): Likewise.
410 (maintenance_print_symbol_cache): Likewise.
411 (maintenance_print_symbol_cache_statistics): Likewise.
412 (delete_filename_seen_cache): Likewise.
413 (output_partial_symbol_filename): Likewise.
414 (search_symbols_file_matches): Likewise.
415 (search_symbols_name_matches): Likewise.
416 (do_free_completion_list): Likewise.
417 (maybe_add_partial_symtab_filename): Likewise.
418 (get_main_info): Likewise.
419 (main_info_cleanup): Likewise.
420 * target-dcache.c (target_dcache_cleanup): Likewise.
421 (target_dcache_init_p): Likewise.
422 (target_dcache_invalidate): Likewise.
423 (target_dcache_get): Likewise.
424 (target_dcache_get_or_init): Likewise.
425 * target-descriptions.c (target_find_description): Likewise.
426 (tdesc_find_type): Likewise.
427 (tdesc_data_cleanup): Likewise.
428 (tdesc_find_arch_register): Likewise.
429 (tdesc_register_name): Likewise.
430 (tdesc_register_type): Likewise.
431 (tdesc_register_reggroup_p): Likewise.
432 (set_tdesc_pseudo_register_name): Likewise.
433 (set_tdesc_pseudo_register_type): Likewise.
434 (set_tdesc_pseudo_register_reggroup_p): Likewise.
435 (tdesc_use_registers): Likewise.
436 (free_target_description): Likewise.
437 * target-memory.c (compare_block_starting_address): Likewise.
438 (cleanup_request_data): Likewise.
439 (cleanup_write_requests_vector): Likewise.
440 * target.c (open_target): Likewise.
441 (cleanup_restore_target_terminal): Likewise.
442 (free_memory_read_result_vector): Likewise.
443 * thread.c (disable_thread_stack_temporaries): Likewise.
444 (finish_thread_state_cleanup): Likewise.
445 (do_restore_current_thread_cleanup): Likewise.
446 (restore_current_thread_cleanup_dtor): Likewise.
447 (set_thread_refcount): Likewise.
448 (tp_array_compar): Likewise.
449 (do_captured_thread_select): Likewise.
450 * tic6x-tdep.c (tic6x_frame_unwind_cache): Likewise.
451 (tic6x_stub_this_id): Likewise.
452 * tilegx-tdep.c (tilegx_frame_cache): Likewise.
453 * top.c (do_restore_instream_cleanup): Likewise.
454 (gdb_readline_wrapper_cleanup): Likewise.
455 (kill_or_detach): Likewise.
456 (print_inferior_quit_action): Likewise.
457 * tracefile-tfile.c (match_blocktype): Likewise.
458 (build_traceframe_info): Likewise.
459 * tracefile.c (trace_file_writer_xfree): Likewise.
460 * tracepoint.c (memrange_cmp): Likewise.
461 (do_collect_symbol): Likewise.
462 (do_clear_collection_list): Likewise.
463 (do_restore_current_traceframe_cleanup): Likewise.
464 (restore_current_traceframe_cleanup_dtor): Likewise.
465 (free_current_marker): Likewise.
466 (traceframe_info_start_memory): Likewise.
467 (traceframe_info_start_tvar): Likewise.
468 (free_result): Likewise.
469 * tramp-frame.c (tramp_frame_cache): Likewise.
470 * tui/tui-file.c (tui_file_delete): Likewise.
471 (tui_fileopen): Likewise.
472 (tui_sfileopen): Likewise.
473 (tui_file_isatty): Likewise.
474 (tui_file_rewind): Likewise.
475 (tui_file_put): Likewise.
476 (tui_file_fputs): Likewise.
477 (tui_file_get_strbuf): Likewise.
478 (tui_file_adjust_strbuf): Likewise.
479 (tui_file_flush): Likewise.
480 * tui/tui-layout.c (make_command_window): Likewise.
481 (make_data_window): Likewise.
482 (show_source_disasm_command): Likewise.
483 (show_data): Likewise.
484 (make_source_or_disasm_window): Likewise.
485 (show_source_or_disasm_and_command): Likewise.
486 * tui/tui-out.c (tui_field_int): Likewise.
487 (tui_field_string): Likewise.
488 (tui_field_fmt): Likewise.
489 (tui_text): Likewise.
490 * typeprint.c (hash_typedef_field): Likewise.
491 (eq_typedef_field): Likewise.
492 (do_free_typedef_hash): Likewise.
493 (copy_typedef_hash_element): Likewise.
494 (do_free_global_table): Likewise.
495 (find_global_typedef): Likewise.
496 (find_typedef_in_hash): Likewise.
497 * ui-file.c (ui_file_write_for_put): Likewise.
498 (do_ui_file_xstrdup): Likewise.
499 (mem_file_delete): Likewise.
500 (mem_file_rewind): Likewise.
501 (mem_file_put): Likewise.
502 (mem_file_write): Likewise.
503 (stdio_file_delete): Likewise.
504 (stdio_file_flush): Likewise.
505 (stdio_file_read): Likewise.
506 (stdio_file_write): Likewise.
507 (stdio_file_write_async_safe): Likewise.
508 (stdio_file_fputs): Likewise.
509 (stdio_file_isatty): Likewise.
510 (stdio_file_fseek): Likewise.
511 (tee_file_delete): Likewise.
512 (tee_file_flush): Likewise.
513 (tee_file_write): Likewise.
514 (tee_file_fputs): Likewise.
515 (tee_file_isatty): Likewise.
516 * ui-out.c (do_cleanup_table_end): Likewise.
517 (do_cleanup_end): Likewise.
518 * user-regs.c (user_reg_add): Likewise.
519 (user_reg_map_name_to_regnum): Likewise.
520 (usernum_to_user_reg): Likewise.
521 (maintenance_print_user_registers): Likewise.
522 * utils.c (do_bfd_close_cleanup): Likewise.
523 (do_fclose_cleanup): Likewise.
524 (do_obstack_free): Likewise.
525 (do_ui_file_delete): Likewise.
526 (do_ui_out_redirect_pop): Likewise.
527 (do_free_section_addr_info): Likewise.
528 (restore_integer): Likewise.
529 (do_unpush_target): Likewise.
530 (do_htab_delete_cleanup): Likewise.
531 (do_restore_ui_file): Likewise.
532 (do_value_free): Likewise.
533 (do_free_so): Likewise.
534 (free_current_contents): Likewise.
535 (do_regfree_cleanup): Likewise.
536 (core_addr_hash): Likewise.
537 (core_addr_eq): Likewise.
538 (do_free_char_ptr_vec): Likewise.
539 * v850-tdep.c (v850_frame_cache): Likewise.
540 * varobj.c (do_free_variable_cleanup): Likewise.
541 * vax-tdep.c (vax_supply_gregset): Likewise.
542 (vax_frame_cache): Likewise.
543 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_cache): Likewise.
544 * xml-support.c (gdb_xml_body_text): Likewise.
545 (gdb_xml_values_cleanup): Likewise.
546 (gdb_xml_start_element): Likewise.
547 (gdb_xml_start_element_wrapper): Likewise.
548 (gdb_xml_end_element): Likewise.
549 (gdb_xml_end_element_wrapper): Likewise.
550 (gdb_xml_cleanup): Likewise.
551 (gdb_xml_fetch_external_entity): Likewise.
552 (gdb_xml_parse_attr_enum): Likewise.
553 (xinclude_start_include): Likewise.
554 (xinclude_end_include): Likewise.
555 (xml_xinclude_default): Likewise.
556 (xml_xinclude_start_doctype): Likewise.
557 (xml_xinclude_end_doctype): Likewise.
558 (xml_xinclude_cleanup): Likewise.
559 (xml_fetch_content_from_file): Likewise.
560 * xml-syscall.c (free_syscalls_info): Likewise.
561 (syscall_start_syscall): Likewise.
562 * xml-tdesc.c (tdesc_end_arch): Likewise.
563 (tdesc_end_osabi): Likewise.
564 (tdesc_end_compatible): Likewise.
565 (tdesc_start_target): Likewise.
566 (tdesc_start_feature): Likewise.
567 (tdesc_start_reg): Likewise.
568 (tdesc_start_union): Likewise.
569 (tdesc_start_struct): Likewise.
570 (tdesc_start_flags): Likewise.
571 (tdesc_start_field): Likewise.
572 (tdesc_start_vector): Likewise.
573 (fetch_available_features_from_target): Likewise.
574 * xstormy16-tdep.c (xstormy16_frame_cache): Likewise.
575 * xtensa-tdep.c (xtensa_supply_gregset): Likewise.
576 (xtensa_frame_cache): Likewise.
577 (xtensa_frame_prev_register): Likewise.
578 (xtensa_extract_return_value): Likewise.
579
9a3c8263
SM
5802015-09-25 Simon Marchi <simon.marchi@ericsson.com>
581
582 * aarch64-tdep.c (aarch64_make_prologue_cache): Add cast(s).
583 (aarch64_make_stub_cache): Likewise.
584 (value_of_aarch64_user_reg): Likewise.
585 * ada-lang.c (ada_inferior_data_cleanup): Likewise.
586 (get_ada_inferior_data): Likewise.
587 (get_ada_pspace_data): Likewise.
588 (ada_pspace_data_cleanup): Likewise.
589 (ada_complete_symbol_matcher): Likewise.
590 (ada_exc_search_name_matches): Likewise.
591 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
592 (get_ada_tasks_inferior_data): Likewise.
593 * addrmap.c (addrmap_mutable_foreach_worker): Likewise.
594 (splay_obstack_alloc): Likewise.
595 (splay_obstack_free): Likewise.
596 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Likewise.
597 (alpha_linux_collect_gregset): Likewise.
598 (alpha_linux_supply_fpregset): Likewise.
599 (alpha_linux_collect_fpregset): Likewise.
600 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
601 * alpha-tdep.c (alpha_lds): Likewise.
602 (alpha_sts): Likewise.
603 (alpha_sigtramp_frame_unwind_cache): Likewise.
604 (alpha_heuristic_frame_unwind_cache): Likewise.
605 (alpha_supply_int_regs): Likewise.
606 (alpha_fill_int_regs): Likewise.
607 (alpha_supply_fp_regs): Likewise.
608 (alpha_fill_fp_regs): Likewise.
609 * alphanbsd-tdep.c (alphanbsd_supply_fpregset): Likewise.
610 (alphanbsd_aout_supply_gregset): Likewise.
611 (alphanbsd_supply_gregset): Likewise.
612 * amd64-linux-tdep.c (amd64_linux_init_abi): Likewise.
613 (amd64_x32_linux_init_abi): Likewise.
614 * amd64-nat.c (amd64_supply_native_gregset): Likewise.
615 (amd64_collect_native_gregset): Likewise.
616 * amd64-tdep.c (amd64_frame_cache): Likewise.
617 (amd64_sigtramp_frame_cache): Likewise.
618 (amd64_epilogue_frame_cache): Likewise.
619 (amd64_supply_fxsave): Likewise.
620 (amd64_supply_xsave): Likewise.
621 (amd64_collect_fxsave): Likewise.
622 (amd64_collect_xsave): Likewise.
623 * amd64-windows-tdep.c (amd64_windows_frame_cache): Likewise.
624 * amd64obsd-tdep.c (amd64obsd_trapframe_cache): Likewise.
625 * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
626 (arm_linux_collect_gregset): Likewise.
627 (arm_linux_supply_nwfpe): Likewise.
628 (arm_linux_collect_nwfpe): Likewise.
629 (arm_linux_supply_vfp): Likewise.
630 (arm_linux_collect_vfp): Likewise.
631 * arm-tdep.c (arm_find_mapping_symbol): Likewise.
632 (arm_prologue_unwind_stop_reason): Likewise.
633 (arm_prologue_this_id): Likewise.
634 (arm_prologue_prev_register): Likewise.
635 (arm_exidx_data_free): Likewise.
636 (arm_find_exidx_entry): Likewise.
637 (arm_stub_this_id): Likewise.
638 (arm_m_exception_this_id): Likewise.
639 (arm_m_exception_prev_register): Likewise.
640 (arm_normal_frame_base): Likewise.
641 (gdb_print_insn_arm): Likewise.
642 (arm_objfile_data_free): Likewise.
643 (arm_record_special_symbol): Likewise.
644 (value_of_arm_user_reg): Likewise.
645 * armbsd-tdep.c (armbsd_supply_fpregset): Likewise.
646 (armbsd_supply_gregset): Likewise.
647 * auto-load.c (auto_load_pspace_data_cleanup): Likewise.
648 (get_auto_load_pspace_data): Likewise.
649 (hash_loaded_script_entry): Likewise.
650 (eq_loaded_script_entry): Likewise.
651 (clear_section_scripts): Likewise.
652 (collect_matching_scripts): Likewise.
653 * auxv.c (auxv_inferior_data_cleanup): Likewise.
654 (get_auxv_inferior_data): Likewise.
655 * avr-tdep.c (avr_frame_unwind_cache): Likewise.
656 * ax-general.c (do_free_agent_expr_cleanup): Likewise.
657 * bfd-target.c (target_bfd_xfer_partial): Likewise.
658 (target_bfd_xclose): Likewise.
659 (target_bfd_get_section_table): Likewise.
660 * bfin-tdep.c (bfin_frame_cache): Likewise.
661 * block.c (find_block_in_blockvector): Likewise.
662 (call_site_for_pc): Likewise.
663 (block_find_non_opaque_type_preferred): Likewise.
664 * break-catch-sig.c (signal_catchpoint_insert_location): Likewise.
665 (signal_catchpoint_remove_location): Likewise.
666 (signal_catchpoint_breakpoint_hit): Likewise.
667 (signal_catchpoint_print_one): Likewise.
668 (signal_catchpoint_print_mention): Likewise.
669 (signal_catchpoint_print_recreate): Likewise.
670 * break-catch-syscall.c (get_catch_syscall_inferior_data): Likewise.
671 * breakpoint.c (do_cleanup_counted_command_line): Likewise.
672 (bp_location_compare_addrs): Likewise.
673 (get_first_locp_gte_addr): Likewise.
674 (check_tracepoint_command): Likewise.
675 (do_map_commands_command): Likewise.
676 (get_breakpoint_objfile_data): Likewise.
677 (free_breakpoint_probes): Likewise.
678 (do_captured_breakpoint_query): Likewise.
679 (compare_breakpoints): Likewise.
680 (bp_location_compare): Likewise.
681 (bpstat_remove_breakpoint_callback): Likewise.
682 (do_delete_breakpoint_cleanup): Likewise.
683 * bsd-uthread.c (bsd_uthread_set_supply_uthread): Likewise.
684 (bsd_uthread_set_collect_uthread): Likewise.
685 (bsd_uthread_activate): Likewise.
686 (bsd_uthread_fetch_registers): Likewise.
687 (bsd_uthread_store_registers): Likewise.
688 * btrace.c (check_xml_btrace_version): Likewise.
689 (parse_xml_btrace_block): Likewise.
690 (parse_xml_btrace_pt_config_cpu): Likewise.
691 (parse_xml_btrace_pt_raw): Likewise.
692 (parse_xml_btrace_pt): Likewise.
693 (parse_xml_btrace_conf_bts): Likewise.
694 (parse_xml_btrace_conf_pt): Likewise.
695 (do_btrace_data_cleanup): Likewise.
696 * c-typeprint.c (find_typedef_for_canonicalize): Likewise.
697 * charset.c (cleanup_iconv): Likewise.
698 (do_cleanup_iterator): Likewise.
699 * cli-out.c (cli_uiout_dtor): Likewise.
700 (cli_table_begin): Likewise.
701 (cli_table_body): Likewise.
702 (cli_table_end): Likewise.
703 (cli_table_header): Likewise.
704 (cli_begin): Likewise.
705 (cli_end): Likewise.
706 (cli_field_int): Likewise.
707 (cli_field_skip): Likewise.
708 (cli_field_string): Likewise.
709 (cli_field_fmt): Likewise.
710 (cli_spaces): Likewise.
711 (cli_text): Likewise.
712 (cli_message): Likewise.
713 (cli_wrap_hint): Likewise.
714 (cli_flush): Likewise.
715 (cli_redirect): Likewise.
716 (out_field_fmt): Likewise.
717 (field_separator): Likewise.
718 (cli_out_set_stream): Likewise.
719 * cli/cli-cmds.c (compare_symtabs): Likewise.
720 * cli/cli-dump.c (call_dump_func): Likewise.
721 (restore_section_callback): Likewise.
722 * cli/cli-script.c (clear_hook_in_cleanup): Likewise.
723 (do_restore_user_call_depth): Likewise.
724 (do_free_command_lines_cleanup): Likewise.
725 * coff-pe-read.c (get_section_vmas): Likewise.
726 (pe_as16): Likewise.
727 (pe_as32): Likewise.
728 * coffread.c (coff_symfile_read): Likewise.
729 * common/agent.c (agent_look_up_symbols): Likewise.
730 * common/filestuff.c (do_close_cleanup): Likewise.
731 * common/format.c (free_format_pieces_cleanup): Likewise.
732 * common/vec.c (vec_o_reserve): Likewise.
733 * compile/compile-c-support.c (print_one_macro): Likewise.
734 * compile/compile-c-symbols.c (hash_symbol_error): Likewise.
735 (eq_symbol_error): Likewise.
736 (del_symbol_error): Likewise.
737 (error_symbol_once): Likewise.
738 (gcc_convert_symbol): Likewise.
739 (gcc_symbol_address): Likewise.
740 (hash_symname): Likewise.
741 (eq_symname): Likewise.
742 * compile/compile-c-types.c (hash_type_map_instance): Likewise.
743 (eq_type_map_instance): Likewise.
744 (insert_type): Likewise.
745 (convert_type): Likewise.
746 * compile/compile-object-load.c (munmap_listp_free_cleanup): Likewise.
747 (setup_sections): Likewise.
748 (link_hash_table_free): Likewise.
749 (copy_sections): Likewise.
750 * compile/compile-object-run.c (do_module_cleanup): Likewise.
751 * compile/compile.c (compile_print_value): Likewise.
752 (do_rmdir): Likewise.
753 (cleanup_compile_instance): Likewise.
754 (cleanup_unlink_file): Likewise.
755 * completer.c (free_completion_tracker): Likewise.
756 * corelow.c (add_to_spuid_list): Likewise.
757 * cp-namespace.c (reset_directive_searched): Likewise.
758 * cp-support.c (reset_directive_searched): Likewise.
759 * cris-tdep.c (cris_sigtramp_frame_unwind_cache): Likewise.
760 (cris_frame_unwind_cache): Likewise.
761 * d-lang.c (builtin_d_type): Likewise.
762 * d-namespace.c (reset_directive_searched): Likewise.
763 * dbxread.c (dbx_free_symfile_info): Likewise.
764 (do_free_bincl_list_cleanup): Likewise.
765 * disasm.c (hash_dis_line_entry): Likewise.
766 (eq_dis_line_entry): Likewise.
767 (dis_asm_print_address): Likewise.
768 (fprintf_disasm): Likewise.
769 (do_ui_file_delete): Likewise.
770 * doublest.c (convert_floatformat_to_doublest): Likewise.
771 * dummy-frame.c (pop_dummy_frame_bpt): Likewise.
772 (dummy_frame_prev_register): Likewise.
773 (dummy_frame_this_id): Likewise.
774 * dwarf2-frame-tailcall.c (cache_hash): Likewise.
775 (cache_eq): Likewise.
776 (cache_find): Likewise.
777 (tailcall_frame_this_id): Likewise.
778 (dwarf2_tailcall_prev_register_first): Likewise.
779 (tailcall_frame_prev_register): Likewise.
780 (tailcall_frame_dealloc_cache): Likewise.
781 (tailcall_frame_prev_arch): Likewise.
782 * dwarf2-frame.c (dwarf2_frame_state_free): Likewise.
783 (dwarf2_frame_set_init_reg): Likewise.
784 (dwarf2_frame_init_reg): Likewise.
785 (dwarf2_frame_set_signal_frame_p): Likewise.
786 (dwarf2_frame_signal_frame_p): Likewise.
787 (dwarf2_frame_set_adjust_regnum): Likewise.
788 (dwarf2_frame_adjust_regnum): Likewise.
789 (clear_pointer_cleanup): Likewise.
790 (dwarf2_frame_cache): Likewise.
791 (find_cie): Likewise.
792 (dwarf2_frame_find_fde): Likewise.
793 * dwarf2expr.c (dwarf_expr_address_type): Likewise.
794 (free_dwarf_expr_context_cleanup): Likewise.
795 * dwarf2loc.c (locexpr_find_frame_base_location): Likewise.
796 (locexpr_get_frame_base): Likewise.
797 (loclist_find_frame_base_location): Likewise.
798 (loclist_get_frame_base): Likewise.
799 (dwarf_expr_dwarf_call): Likewise.
800 (dwarf_expr_get_base_type): Likewise.
801 (dwarf_expr_push_dwarf_reg_entry_value): Likewise.
802 (dwarf_expr_get_obj_addr): Likewise.
803 (entry_data_value_coerce_ref): Likewise.
804 (entry_data_value_copy_closure): Likewise.
805 (entry_data_value_free_closure): Likewise.
806 (get_frame_address_in_block_wrapper): Likewise.
807 (dwarf2_evaluate_property): Likewise.
808 (dwarf2_compile_property_to_c): Likewise.
809 (needs_frame_read_addr_from_reg): Likewise.
810 (needs_frame_get_reg_value): Likewise.
811 (needs_frame_frame_base): Likewise.
812 (needs_frame_frame_cfa): Likewise.
813 (needs_frame_tls_address): Likewise.
814 (needs_frame_dwarf_call): Likewise.
815 (needs_dwarf_reg_entry_value): Likewise.
816 (get_ax_pc): Likewise.
817 (locexpr_read_variable): Likewise.
818 (locexpr_read_variable_at_entry): Likewise.
819 (locexpr_read_needs_frame): Likewise.
820 (locexpr_describe_location): Likewise.
821 (locexpr_tracepoint_var_ref): Likewise.
822 (locexpr_generate_c_location): Likewise.
823 (loclist_read_variable): Likewise.
824 (loclist_read_variable_at_entry): Likewise.
825 (loclist_describe_location): Likewise.
826 (loclist_tracepoint_var_ref): Likewise.
827 (loclist_generate_c_location): Likewise.
828 * dwarf2read.c (line_header_hash_voidp): Likewise.
829 (line_header_eq_voidp): Likewise.
830 (dwarf2_has_info): Likewise.
831 (dwarf2_get_section_info): Likewise.
832 (locate_dwz_sections): Likewise.
833 (hash_file_name_entry): Likewise.
834 (eq_file_name_entry): Likewise.
835 (delete_file_name_entry): Likewise.
836 (dw2_setup): Likewise.
837 (dw2_get_file_names_reader): Likewise.
838 (dw2_find_pc_sect_compunit_symtab): Likewise.
839 (hash_signatured_type): Likewise.
840 (eq_signatured_type): Likewise.
841 (add_signatured_type_cu_to_table): Likewise.
842 (create_debug_types_hash_table): Likewise.
843 (lookup_dwo_signatured_type): Likewise.
844 (lookup_dwp_signatured_type): Likewise.
845 (lookup_signatured_type): Likewise.
846 (hash_type_unit_group): Likewise.
847 (eq_type_unit_group): Likewise.
848 (get_type_unit_group): Likewise.
849 (process_psymtab_comp_unit_reader): Likewise.
850 (sort_tu_by_abbrev_offset): Likewise.
851 (process_skeletonless_type_unit): Likewise.
852 (psymtabs_addrmap_cleanup): Likewise.
853 (dwarf2_read_symtab): Likewise.
854 (psymtab_to_symtab_1): Likewise.
855 (die_hash): Likewise.
856 (die_eq): Likewise.
857 (load_full_comp_unit_reader): Likewise.
858 (reset_die_in_process): Likewise.
859 (free_cu_line_header): Likewise.
860 (handle_DW_AT_stmt_list): Likewise.
861 (hash_dwo_file): Likewise.
862 (eq_dwo_file): Likewise.
863 (hash_dwo_unit): Likewise.
864 (eq_dwo_unit): Likewise.
865 (create_dwo_cu_reader): Likewise.
866 (create_dwo_unit_in_dwp_v1): Likewise.
867 (create_dwo_unit_in_dwp_v2): Likewise.
868 (lookup_dwo_unit_in_dwp): Likewise.
869 (dwarf2_locate_dwo_sections): Likewise.
870 (dwarf2_locate_common_dwp_sections): Likewise.
871 (dwarf2_locate_v2_dwp_sections): Likewise.
872 (hash_dwp_loaded_cutus): Likewise.
873 (eq_dwp_loaded_cutus): Likewise.
874 (lookup_dwo_cutu): Likewise.
875 (abbrev_table_free_cleanup): Likewise.
876 (dwarf2_free_abbrev_table): Likewise.
877 (find_partial_die_in_comp_unit): Likewise.
878 (free_line_header_voidp): Likewise.
879 (follow_die_offset): Likewise.
880 (follow_die_sig_1): Likewise.
881 (free_heap_comp_unit): Likewise.
882 (free_stack_comp_unit): Likewise.
883 (dwarf2_free_objfile): Likewise.
884 (per_cu_offset_and_type_hash): Likewise.
885 (per_cu_offset_and_type_eq): Likewise.
886 (get_die_type_at_offset): Likewise.
887 (partial_die_hash): Likewise.
888 (partial_die_eq): Likewise.
889 (dwarf2_per_objfile_free): Likewise.
890 (hash_strtab_entry): Likewise.
891 (eq_strtab_entry): Likewise.
892 (add_string): Likewise.
893 (hash_symtab_entry): Likewise.
894 (eq_symtab_entry): Likewise.
895 (delete_symtab_entry): Likewise.
896 (cleanup_mapped_symtab): Likewise.
897 (add_indices_to_cpool): Likewise.
898 (hash_psymtab_cu_index): Likewise.
899 (eq_psymtab_cu_index): Likewise.
900 (add_address_entry_worker): Likewise.
901 (unlink_if_set): Likewise.
902 (write_one_signatured_type): Likewise.
903 (save_gdb_index_command): Likewise.
904 * elfread.c (elf_symtab_read): Likewise.
905 (elf_gnu_ifunc_cache_hash): Likewise.
906 (elf_gnu_ifunc_cache_eq): Likewise.
907 (elf_gnu_ifunc_record_cache): Likewise.
908 (elf_gnu_ifunc_resolve_by_cache): Likewise.
909 (elf_get_probes): Likewise.
910 (probe_key_free): Likewise.
911 * f-lang.c (builtin_f_type): Likewise.
912 * frame-base.c (frame_base_append_sniffer): Likewise.
913 (frame_base_set_default): Likewise.
914 (frame_base_find_by_frame): Likewise.
915 * frame-unwind.c (frame_unwind_prepend_unwinder): Likewise.
916 (frame_unwind_append_unwinder): Likewise.
917 (frame_unwind_find_by_frame): Likewise.
918 * frame.c (frame_addr_hash): Likewise.
919 (frame_addr_hash_eq): Likewise.
920 (frame_stash_find): Likewise.
921 (do_frame_register_read): Likewise.
922 (unwind_to_current_frame): Likewise.
923 (frame_cleanup_after_sniffer): Likewise.
924 * frv-linux-tdep.c (frv_linux_sigtramp_frame_cache): Likewise.
925 * frv-tdep.c (frv_frame_unwind_cache): Likewise.
926 * ft32-tdep.c (ft32_frame_cache): Likewise.
927 * gcore.c (do_bfd_delete_cleanup): Likewise.
928 (gcore_create_callback): Likewise.
929 * gdb_bfd.c (hash_bfd): Likewise.
930 (eq_bfd): Likewise.
931 (gdb_bfd_open): Likewise.
932 (free_one_bfd_section): Likewise.
933 (gdb_bfd_ref): Likewise.
934 (gdb_bfd_unref): Likewise.
935 (get_section_descriptor): Likewise.
936 (gdb_bfd_map_section): Likewise.
937 (gdb_bfd_crc): Likewise.
938 (gdb_bfd_mark_parent): Likewise.
939 (gdb_bfd_record_inclusion): Likewise.
940 (gdb_bfd_requires_relocations): Likewise.
941 (print_one_bfd): Likewise.
942 * gdbtypes.c (type_pair_hash): Likewise.
943 (type_pair_eq): Likewise.
944 (builtin_type): Likewise.
945 (objfile_type): Likewise.
946 * gnu-v3-abi.c (vtable_ptrdiff_type): Likewise.
947 (vtable_address_point_offset): Likewise.
948 (gnuv3_get_vtable): Likewise.
949 (hash_value_and_voffset): Likewise.
950 (eq_value_and_voffset): Likewise.
951 (compare_value_and_voffset): Likewise.
952 (compute_vtable_size): Likewise.
953 (gnuv3_get_typeid_type): Likewise.
954 * go-lang.c (builtin_go_type): Likewise.
955 * guile/scm-block.c (bkscm_hash_block_smob): Likewise.
956 (bkscm_eq_block_smob): Likewise.
957 (bkscm_objfile_block_map): Likewise.
958 (bkscm_del_objfile_blocks): Likewise.
959 * guile/scm-breakpoint.c (bpscm_build_bp_list): Likewise.
960 * guile/scm-disasm.c (gdbscm_disasm_read_memory_worker): Likewise.
961 (gdbscm_disasm_print_address): Likewise.
962 * guile/scm-frame.c (frscm_hash_frame_smob): Likewise.
963 (frscm_eq_frame_smob): Likewise.
964 (frscm_inferior_frame_map): Likewise.
965 (frscm_del_inferior_frames): Likewise.
966 * guile/scm-gsmob.c (gdbscm_add_objfile_ref): Likewise.
967 * guile/scm-objfile.c (ofscm_handle_objfile_deleted): Likewise.
968 (ofscm_objfile_smob_from_objfile): Likewise.
969 * guile/scm-ports.c (ioscm_write): Likewise.
970 (ioscm_file_port_delete): Likewise.
971 (ioscm_file_port_rewind): Likewise.
972 (ioscm_file_port_put): Likewise.
973 (ioscm_file_port_write): Likewise.
974 * guile/scm-progspace.c (psscm_handle_pspace_deleted): Likewise.
975 (psscm_pspace_smob_from_pspace): Likewise.
976 * guile/scm-safe-call.c (scscm_recording_pre_unwind_handler): Likewise.
977 (scscm_recording_unwind_handler): Likewise.
978 (gdbscm_with_catch): Likewise.
979 (scscm_call_0_body): Likewise.
980 (scscm_call_1_body): Likewise.
981 (scscm_call_2_body): Likewise.
982 (scscm_call_3_body): Likewise.
983 (scscm_call_4_body): Likewise.
984 (scscm_apply_1_body): Likewise.
985 (scscm_eval_scheme_string): Likewise.
986 (gdbscm_safe_eval_string): Likewise.
987 (scscm_source_scheme_script): Likewise.
988 (gdbscm_safe_source_script): Likewise.
989 * guile/scm-string.c (gdbscm_call_scm_to_stringn): Likewise.
990 (gdbscm_call_scm_from_stringn): Likewise.
991 * guile/scm-symbol.c (syscm_hash_symbol_smob): Likewise.
992 (syscm_eq_symbol_smob): Likewise.
993 (syscm_get_symbol_map): Likewise.
994 (syscm_del_objfile_symbols): Likewise.
995 * guile/scm-symtab.c (stscm_hash_symtab_smob): Likewise.
996 (stscm_eq_symtab_smob): Likewise.
997 (stscm_objfile_symtab_map): Likewise.
998 (stscm_del_objfile_symtabs): Likewise.
999 * guile/scm-type.c (tyscm_hash_type_smob): Likewise.
1000 (tyscm_eq_type_smob): Likewise.
1001 (tyscm_type_map): Likewise.
1002 (tyscm_copy_type_recursive): Likewise.
1003 (save_objfile_types): Likewise.
1004 * guile/scm-utils.c (extract_arg): Likewise.
1005 * h8300-tdep.c (h8300_frame_cache): Likewise.
1006 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind_cache): Likewise.
1007 * hppa-tdep.c (compare_unwind_entries): Likewise.
1008 (find_unwind_entry): Likewise.
1009 (hppa_frame_cache): Likewise.
1010 (hppa_stub_frame_unwind_cache): Likewise.
1011 * hppanbsd-tdep.c (hppanbsd_supply_gregset): Likewise.
1012 * hppaobsd-tdep.c (hppaobsd_supply_gregset): Likewise.
1013 (hppaobsd_supply_fpregset): Likewise.
1014 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1015 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
1016 * i386-tdep.c (i386_frame_cache): Likewise.
1017 (i386_epilogue_frame_cache): Likewise.
1018 (i386_sigtramp_frame_cache): Likewise.
1019 (i386_supply_gregset): Likewise.
1020 (i386_collect_gregset): Likewise.
1021 (i386_gdbarch_init): Likewise.
1022 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Likewise.
1023 (i386obsd_trapframe_cache): Likewise.
1024 * i387-tdep.c (i387_supply_fsave): Likewise.
1025 (i387_collect_fsave): Likewise.
1026 (i387_supply_fxsave): Likewise.
1027 (i387_collect_fxsave): Likewise.
1028 (i387_supply_xsave): Likewise.
1029 (i387_collect_xsave): Likewise.
1030 * ia64-tdep.c (ia64_frame_cache): Likewise.
1031 (ia64_sigtramp_frame_cache): Likewise.
1032 * infcmd.c (attach_command_continuation): Likewise.
1033 (attach_command_continuation_free_args): Likewise.
1034 * inferior.c (restore_inferior): Likewise.
1035 (delete_thread_of_inferior): Likewise.
1036 * inflow.c (inflow_inferior_data_cleanup): Likewise.
1037 (get_inflow_inferior_data): Likewise.
1038 (inflow_inferior_exit): Likewise.
1039 * infrun.c (displaced_step_clear_cleanup): Likewise.
1040 (restore_current_uiout_cleanup): Likewise.
1041 (release_stop_context_cleanup): Likewise.
1042 (do_restore_infcall_suspend_state_cleanup): Likewise.
1043 (do_restore_infcall_control_state_cleanup): Likewise.
1044 (restore_inferior_ptid): Likewise.
1045 * inline-frame.c (block_starting_point_at): Likewise.
1046 * iq2000-tdep.c (iq2000_frame_cache): Likewise.
1047 * jit.c (get_jit_objfile_data): Likewise.
1048 (get_jit_program_space_data): Likewise.
1049 (jit_object_close_impl): Likewise.
1050 (jit_find_objf_with_entry_addr): Likewise.
1051 (jit_breakpoint_deleted): Likewise.
1052 (jit_unwind_reg_set_impl): Likewise.
1053 (jit_unwind_reg_get_impl): Likewise.
1054 (jit_dealloc_cache): Likewise.
1055 (jit_frame_sniffer): Likewise.
1056 (jit_frame_prev_register): Likewise.
1057 (jit_prepend_unwinder): Likewise.
1058 (jit_inferior_exit_hook): Likewise.
1059 (free_objfile_data): Likewise.
1060 * jv-lang.c (jv_per_objfile_free): Likewise.
1061 (get_dynamics_objfile): Likewise.
1062 (get_java_class_symtab): Likewise.
1063 (builtin_java_type): Likewise.
1064 * language.c (language_string_char_type): Likewise.
1065 (language_bool_type): Likewise.
1066 (language_lookup_primitive_type): Likewise.
1067 (language_lookup_primitive_type_as_symbol): Likewise.
1068 * linespec.c (hash_address_entry): Likewise.
1069 (eq_address_entry): Likewise.
1070 (iterate_inline_only): Likewise.
1071 (iterate_name_matcher): Likewise.
1072 (decode_line_2_compare_items): Likewise.
1073 (collect_one_symbol): Likewise.
1074 (compare_symbols): Likewise.
1075 (compare_msymbols): Likewise.
1076 (add_symtabs_to_list): Likewise.
1077 (collect_symbols): Likewise.
1078 (compare_msyms): Likewise.
1079 (add_minsym): Likewise.
1080 (cleanup_linespec_result): Likewise.
1081 * linux-fork.c (inferior_call_waitpid_cleanup): Likewise.
1082 * linux-nat.c (delete_lwp_cleanup): Likewise.
1083 (count_events_callback): Likewise.
1084 (select_event_lwp_callback): Likewise.
1085 (resume_stopped_resumed_lwps): Likewise.
1086 * linux-tdep.c (get_linux_gdbarch_data): Likewise.
1087 (invalidate_linux_cache_inf): Likewise.
1088 (get_linux_inferior_data): Likewise.
1089 (linux_find_memory_regions_thunk): Likewise.
1090 (linux_make_mappings_callback): Likewise.
1091 (linux_corefile_thread_callback): Likewise.
1092 (find_mapping_size): Likewise.
1093 * linux-thread-db.c (find_new_threads_callback): Likewise.
1094 * lm32-tdep.c (lm32_frame_cache): Likewise.
1095 * m2-lang.c (builtin_m2_type): Likewise.
1096 * m32c-tdep.c (m32c_analyze_frame_prologue): Likewise.
1097 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_cache): Likewise.
1098 (m32r_linux_supply_gregset): Likewise.
1099 (m32r_linux_collect_gregset): Likewise.
1100 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
1101 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
1102 * m68k-tdep.c (m68k_frame_cache): Likewise.
1103 * m68kbsd-tdep.c (m68kbsd_supply_fpregset): Likewise.
1104 (m68kbsd_supply_gregset): Likewise.
1105 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
1106 * m88k-tdep.c (m88k_frame_cache): Likewise.
1107 (m88k_supply_gregset): Likewise.
1108
224c3ddb
SM
11092015-09-25 Simon Marchi <simon.marchi@ericsson.com>
1110
1111 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Add cast
1112 to allocation result assignment.
1113 * ada-exp.y (write_object_renaming): Likewise.
1114 (write_ambiguous_var): Likewise.
1115 (ada_nget_field_index): Likewise.
1116 (write_var_or_type): Likewise.
1117 * ada-lang.c (ada_decode_symbol): Likewise.
1118 (ada_value_assign): Likewise.
1119 (value_pointer): Likewise.
1120 (cache_symbol): Likewise.
1121 (add_nonlocal_symbols): Likewise.
1122 (ada_name_for_lookup): Likewise.
1123 (symbol_completion_add): Likewise.
1124 (ada_to_fixed_type_1): Likewise.
1125 (ada_get_next_arg): Likewise.
1126 (defns_collected): Likewise.
1127 * ada-lex.l (processId): Likewise.
1128 (processString): Likewise.
1129 * ada-tasks.c (read_known_tasks_array): Likewise.
1130 (read_known_tasks_list): Likewise.
1131 * ada-typeprint.c (decoded_type_name): Likewise.
1132 * addrmap.c (addrmap_mutable_create_fixed): Likewise.
1133 * amd64-tdep.c (amd64_push_arguments): Likewise.
1134 (amd64_displaced_step_copy_insn): Likewise.
1135 (amd64_classify_insn_at): Likewise.
1136 (amd64_relocate_instruction): Likewise.
1137 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
1138 * arch-utils.c (simple_displaced_step_copy_insn): Likewise.
1139 (initialize_current_architecture): Likewise.
1140 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1141 * arm-symbian-tdep.c (arm_symbian_osabi_sniffer): Likewise.
1142 * arm-tdep.c (arm_exidx_new_objfile): Likewise.
1143 (arm_push_dummy_call): Likewise.
1144 (extend_buffer_earlier): Likewise.
1145 (arm_adjust_breakpoint_address): Likewise.
1146 (arm_skip_stub): Likewise.
1147 * auto-load.c (filename_is_in_pattern): Likewise.
1148 (maybe_add_script_file): Likewise.
1149 (maybe_add_script_text): Likewise.
1150 (auto_load_objfile_script_1): Likewise.
1151 * auxv.c (ld_so_xfer_auxv): Likewise.
1152 * ax-general.c (new_agent_expr): Likewise.
1153 (grow_expr): Likewise.
1154 (ax_reg_mask): Likewise.
1155 * bcache.c (bcache_full): Likewise.
1156 * breakpoint.c (program_breakpoint_here_p): Likewise.
1157 * btrace.c (parse_xml_raw): Likewise.
1158 * build-id.c (build_id_to_debug_bfd): Likewise.
1159 * buildsym.c (end_symtab_with_blockvector): Likewise.
1160 * c-exp.y (string_exp): Likewise.
1161 (qualified_name): Likewise.
1162 (write_destructor_name): Likewise.
1163 (operator_stoken): Likewise.
1164 (parse_number): Likewise.
1165 (scan_macro_expansion): Likewise.
1166 (yylex): Likewise.
1167 (c_print_token): Likewise.
1168 * c-lang.c (c_get_string): Likewise.
1169 (emit_numeric_character): Likewise.
1170 * charset.c (wchar_iterate): Likewise.
1171 * cli/cli-cmds.c (complete_command): Likewise.
1172 (make_command): Likewise.
1173 * cli/cli-dump.c (restore_section_callback): Likewise.
1174 (restore_binary_file): Likewise.
1175 * cli/cli-interp.c (cli_interpreter_exec): Likewise.
1176 * cli/cli-script.c (execute_control_command): Likewise.
1177 * cli/cli-setshow.c (do_set_command): Likewise.
1178 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
1179 (read_pe_exported_syms): Likewise.
1180 * coffread.c (coff_read_struct_type): Likewise.
1181 (coff_read_enum_type): Likewise.
1182 * common/btrace-common.c (btrace_data_append): Likewise.
1183 * common/buffer.c (buffer_grow): Likewise.
1184 * common/filestuff.c (gdb_fopen_cloexec): Likewise.
1185 * common/format.c (parse_format_string): Likewise.
1186 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): Likewise.
1187 * common/xml-utils.c (xml_escape_text): Likewise.
1188 * compile/compile-object-load.c (copy_sections): Likewise.
1189 (compile_object_load): Likewise.
1190 * compile/compile-object-run.c (compile_object_run): Likewise.
1191 * completer.c (filename_completer): Likewise.
1192 * corefile.c (read_memory_typed_address): Likewise.
1193 (write_memory_unsigned_integer): Likewise.
1194 (write_memory_signed_integer): Likewise.
1195 (complete_set_gnutarget): Likewise.
1196 * corelow.c (get_core_register_section): Likewise.
1197 * cp-name-parser.y (d_grab): Likewise.
1198 (allocate_info): Likewise.
1199 (cp_new_demangle_parse_info): Likewise.
1200 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Likewise.
1201 (cp_lookup_symbol_in_namespace): Likewise.
1202 (lookup_namespace_scope): Likewise.
1203 (find_symbol_in_baseclass): Likewise.
1204 (cp_lookup_nested_symbol): Likewise.
1205 (cp_lookup_transparent_type_loop): Likewise.
1206 * cp-support.c (copy_string_to_obstack): Likewise.
1207 (make_symbol_overload_list): Likewise.
1208 (make_symbol_overload_list_namespace): Likewise.
1209 (make_symbol_overload_list_adl_namespace): Likewise.
1210 (first_component_command): Likewise.
1211 * cp-valprint.c (cp_print_value): Likewise.
1212 * ctf.c (ctf_xfer_partial): Likewise.
1213 * d-exp.y (StringExp): Likewise.
1214 * d-namespace.c (d_lookup_symbol_in_module): Likewise.
1215 (lookup_module_scope): Likewise.
1216 (find_symbol_in_baseclass): Likewise.
1217 (d_lookup_nested_symbol): Likewise.
1218 * dbxread.c (find_stab_function_addr): Likewise.
1219 (read_dbx_symtab): Likewise.
1220 (dbx_end_psymtab): Likewise.
1221 (cp_set_block_scope): Likewise.
1222 * dcache.c (dcache_alloc): Likewise.
1223 * demangle.c (_initialize_demangler): Likewise.
1224 * dicos-tdep.c (dicos_load_module_p): Likewise.
1225 * dictionary.c (dict_create_hashed_expandable): Likewise.
1226 (dict_create_linear_expandable): Likewise.
1227 (expand_hashtable): Likewise.
1228 (add_symbol_linear_expandable): Likewise.
1229 * dwarf2-frame.c (add_cie): Likewise.
1230 (add_fde): Likewise.
1231 (dwarf2_build_frame_info): Likewise.
1232 * dwarf2expr.c (dwarf_expr_grow_stack): Likewise.
1233 (dwarf_expr_fetch_address): Likewise.
1234 (add_piece): Likewise.
1235 (execute_stack_op): Likewise.
1236 * dwarf2loc.c (chain_candidate): Likewise.
1237 (dwarf_entry_parameter_to_value): Likewise.
1238 (read_pieced_value): Likewise.
1239 (write_pieced_value): Likewise.
1240 * dwarf2read.c (dwarf2_read_section): Likewise.
1241 (add_type_unit): Likewise.
1242 (read_comp_units_from_section): Likewise.
1243 (fixup_go_packaging): Likewise.
1244 (dwarf2_compute_name): Likewise.
1245 (dwarf2_physname): Likewise.
1246 (create_dwo_unit_in_dwp_v1): Likewise.
1247 (create_dwo_unit_in_dwp_v2): Likewise.
1248 (read_func_scope): Likewise.
1249 (read_call_site_scope): Likewise.
1250 (dwarf2_attach_fields_to_type): Likewise.
1251 (process_structure_scope): Likewise.
1252 (mark_common_block_symbol_computed): Likewise.
1253 (read_common_block): Likewise.
1254 (abbrev_table_read_table): Likewise.
1255 (guess_partial_die_structure_name): Likewise.
1256 (fixup_partial_die): Likewise.
1257 (add_file_name): Likewise.
1258 (dwarf2_const_value_data): Likewise.
1259 (dwarf2_const_value_attr): Likewise.
1260 (build_error_marker_type): Likewise.
1261 (guess_full_die_structure_name): Likewise.
1262 (anonymous_struct_prefix): Likewise.
1263 (typename_concat): Likewise.
1264 (dwarf2_canonicalize_name): Likewise.
1265 (dwarf2_name): Likewise.
1266 (write_constant_as_bytes): Likewise.
1267 (dwarf2_fetch_constant_bytes): Likewise.
1268 (copy_string): Likewise.
1269 (parse_macro_definition): Likewise.
1270 * elfread.c (elf_symfile_segments): Likewise.
1271 (elf_rel_plt_read): Likewise.
1272 (elf_gnu_ifunc_resolve_by_cache): Likewise.
1273 (elf_gnu_ifunc_resolve_by_got): Likewise.
1274 (elf_read_minimal_symbols): Likewise.
1275 (elf_gnu_ifunc_record_cache): Likewise.
1276 * event-top.c (top_level_prompt): Likewise.
1277 (command_line_handler): Likewise.
1278 * exec.c (resize_section_table): Likewise.
1279 * expprint.c (print_subexp_standard): Likewise.
1280 * fbsd-tdep.c (fbsd_collect_regset_section_cb): Likewise.
1281 * findcmd.c (parse_find_args): Likewise.
1282 * findvar.c (address_from_register): Likewise.
1283 * frame.c (get_prev_frame_always): Likewise.
1284 * gdb_bfd.c (gdb_bfd_ref): Likewise.
1285 (get_section_descriptor): Likewise.
1286 * gdb_obstack.c (obconcat): Likewise.
1287 (obstack_strdup): Likewise.
1288 * gdbtypes.c (lookup_function_type_with_arguments): Likewise.
1289 (create_set_type): Likewise.
1290 (lookup_unsigned_typename): Likewise.
1291 (lookup_signed_typename): Likewise.
1292 (resolve_dynamic_union): Likewise.
1293 (resolve_dynamic_struct): Likewise.
1294 (add_dyn_prop): Likewise.
1295 (copy_dynamic_prop_list): Likewise.
1296 (arch_flags_type): Likewise.
1297 (append_composite_type_field_raw): Likewise.
1298 * gdbtypes.h (INIT_FUNC_SPECIFIC): Likewise.
1299 * gnu-v3-abi.c (gnuv3_rtti_type): Likewise.
1300 * go-exp.y (string_exp): Likewise.
1301 * go-lang.c (go_demangle): Likewise.
1302 * guile/guile.c (compute_scheme_string): Likewise.
1303 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
1304 (gdbscm_canonicalize_command_name): Likewise.
1305 * guile/scm-ports.c (ioscm_init_stdio_buffers): Likewise.
1306 (ioscm_init_memory_port): Likewise.
1307 (ioscm_reinit_memory_port): Likewise.
1308 * guile/scm-utils.c (gdbscm_gc_xstrdup): Likewise.
1309 (gdbscm_gc_dup_argv): Likewise.
1310 * h8300-tdep.c (h8300_push_dummy_call): Likewise.
1311 * hppa-tdep.c (internalize_unwinds): Likewise.
1312 (read_unwind_info): Likewise.
1313 * i386-cygwin-tdep.c (core_process_module_section): Likewise.
1314 (windows_core_xfer_shared_libraries): Likewise.
1315 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
1316 (i386_stap_parse_special_token_triplet): Likewise.
1317 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1318 * i386obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
1319 * inf-child.c (inf_child_fileio_readlink): Likewise.
1320 * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
1321 (inf_ptrace_store_register): Likewise.
1322 * infrun.c (follow_exec): Likewise.
1323 (displaced_step_prepare_throw): Likewise.
1324 (save_stop_context): Likewise.
1325 (save_infcall_suspend_state): Likewise.
1326 * jit.c (jit_read_descriptor): Likewise.
1327 (jit_read_code_entry): Likewise.
1328 (jit_symtab_line_mapping_add_impl): Likewise.
1329 (finalize_symtab): Likewise.
1330 (jit_unwind_reg_get_impl): Likewise.
1331 * jv-exp.y (QualifiedName): Likewise.
1332 * jv-lang.c (get_java_utf8_name): Likewise.
1333 (type_from_class): Likewise.
1334 (java_demangle_type_signature): Likewise.
1335 (java_class_name_from_physname): Likewise.
1336 * jv-typeprint.c (java_type_print_base): Likewise.
1337 * jv-valprint.c (java_value_print): Likewise.
1338 * language.c (add_language): Likewise.
1339 * linespec.c (add_sal_to_sals_basic): Likewise.
1340 (add_sal_to_sals): Likewise.
1341 (decode_objc): Likewise.
1342 (find_linespec_symbols): Likewise.
1343 * linux-fork.c (fork_save_infrun_state): Likewise.
1344 * linux-nat.c (linux_nat_detach): Likewise.
1345 (linux_nat_fileio_readlink): Likewise.
1346 * linux-record.c (record_linux_sockaddr): Likewise.
1347 (record_linux_msghdr): Likewise.
1348 (Do): Likewise.
1349 * linux-tdep.c (linux_core_info_proc_mappings): Likewise.
1350 (linux_collect_regset_section_cb): Likewise.
1351 (linux_get_siginfo_data): Likewise.
1352 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Likewise.
1353 (try_thread_db_load_from_dir): Likewise.
1354 (thread_db_load_search): Likewise.
1355 (info_auto_load_libthread_db): Likewise.
1356 * m32c-tdep.c (m32c_m16c_address_to_pointer): Likewise.
1357 (m32c_m16c_pointer_to_address): Likewise.
1358 * m68hc11-tdep.c (m68hc11_pseudo_register_write): Likewise.
1359 * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
1360 * machoread.c (macho_check_dsym): Likewise.
1361 * macroexp.c (resize_buffer): Likewise.
1362 (gather_arguments): Likewise.
1363 (maybe_expand): Likewise.
1364 * macrotab.c (new_macro_key): Likewise.
1365 (new_source_file): Likewise.
1366 (new_macro_definition): Likewise.
1367 * mdebugread.c (parse_symbol): Likewise.
1368 (parse_type): Likewise.
1369 (parse_partial_symbols): Likewise.
1370 (psymtab_to_symtab_1): Likewise.
1371 * mem-break.c (default_memory_insert_breakpoint): Likewise.
1372 * mi/mi-cmd-break.c (mi_argv_to_format): Likewise.
1373 * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
1374 (mi_cmd_data_read_memory_bytes): Likewise.
1375 (mi_cmd_data_write_memory_bytes): Likewise.
1376 (mi_cmd_trace_frame_collected): Likewise.
1377 * mi/mi-parse.c (mi_parse_argv): Likewise.
1378 (mi_parse): Likewise.
1379 * minidebug.c (lzma_open): Likewise.
1380 (lzma_pread): Likewise.
1381 * mips-tdep.c (mips_read_fp_register_single): Likewise.
1382 (mips_print_fp_register): Likewise.
1383 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
1384 * mipsread.c (read_alphacoff_dynamic_symtab): Likewise.
1385 * mt-tdep.c (mt_register_name): Likewise.
1386 (mt_registers_info): Likewise.
1387 (mt_push_dummy_call): Likewise.
1388 * namespace.c (add_using_directive): Likewise.
1389 * nat/linux-btrace.c (perf_event_read): Likewise.
1390 (linux_enable_bts): Likewise.
1391 * nat/linux-osdata.c (linux_common_core_of_thread): Likewise.
1392 * nat/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Likewise.
1393 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1394 (nto_parse_redirection): Likewise.
1395 * objc-lang.c (objc_demangle): Likewise.
1396 (find_methods): Likewise.
1397 * objfiles.c (get_objfile_bfd_data): Likewise.
1398 (set_objfile_main_name): Likewise.
1399 (allocate_objfile): Likewise.
1400 (objfile_relocate): Likewise.
1401 (update_section_map): Likewise.
1402 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Likewise.
1403 * p-exp.y (exp): Likewise.
1404 (yylex): Likewise.
1405 * p-valprint.c (pascal_object_print_value): Likewise.
1406 * parse.c (initialize_expout): Likewise.
1407 (mark_completion_tag): Likewise.
1408 (copy_name): Likewise.
1409 (parse_float): Likewise.
1410 (type_stack_reserve): Likewise.
1411 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1412 (ppu2spu_prev_register): Likewise.
1413 * ppc-ravenscar-thread.c (supply_register_at_address): Likewise.
1414 * printcmd.c (printf_wide_c_string): Likewise.
1415 (printf_pointer): Likewise.
1416 * probe.c (parse_probes): Likewise.
1417 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
1418 (cmdpy_init): Likewise.
1419 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Likewise.
1420 * python/py-symtab.c (set_sal): Likewise.
1421 * python/py-unwind.c (pyuw_sniffer): Likewise.
1422 * python/python.c (python_interactive_command): Likewise.
1423 (compute_python_string): Likewise.
1424 * ravenscar-thread.c (get_running_thread_id): Likewise.
1425 * record-full.c (record_full_exec_insn): Likewise.
1426 (record_full_core_open_1): Likewise.
1427 * regcache.c (regcache_raw_read_signed): Likewise.
1428 (regcache_raw_read_unsigned): Likewise.
1429 (regcache_cooked_read_signed): Likewise.
1430 (regcache_cooked_read_unsigned): Likewise.
1431 * remote-fileio.c (remote_fileio_func_open): Likewise.
1432 (remote_fileio_func_rename): Likewise.
1433 (remote_fileio_func_unlink): Likewise.
1434 (remote_fileio_func_stat): Likewise.
1435 (remote_fileio_func_system): Likewise.
1436 * remote-mips.c (mips_xfer_memory): Likewise.
1437 (mips_load_srec): Likewise.
1438 (pmon_end_download): Likewise.
1439 * remote.c (new_remote_state): Likewise.
1440 (map_regcache_remote_table): Likewise.
1441 (remote_register_number_and_offset): Likewise.
1442 (init_remote_state): Likewise.
1443 (get_memory_packet_size): Likewise.
1444 (remote_pass_signals): Likewise.
1445 (remote_program_signals): Likewise.
1446 (remote_start_remote): Likewise.
1447 (remote_check_symbols): Likewise.
1448 (remote_query_supported): Likewise.
1449 (extended_remote_attach): Likewise.
1450 (process_g_packet): Likewise.
1451 (store_registers_using_G): Likewise.
1452 (putpkt_binary): Likewise.
1453 (read_frame): Likewise.
1454 (compare_sections_command): Likewise.
1455 (remote_hostio_pread): Likewise.
1456 (remote_hostio_readlink): Likewise.
1457 (remote_file_put): Likewise.
1458 (remote_file_get): Likewise.
1459 (remote_pid_to_exec_file): Likewise.
1460 (_initialize_remote): Likewise.
1461 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
1462 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1463 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
1464 (bfd_uses_spe_extensions): Likewise.
1465 * s390-linux-tdep.c (s390_displaced_step_copy_insn): Likewise.
1466 * score-tdep.c (score7_malloc_and_get_memblock): Likewise.
1467 * solib-dsbt.c (decode_loadmap): Likewise.
1468 (fetch_loadmap): Likewise.
1469 (scan_dyntag): Likewise.
1470 (enable_break): Likewise.
1471 (dsbt_relocate_main_executable): Likewise.
1472 * solib-frv.c (fetch_loadmap): Likewise.
1473 (enable_break2): Likewise.
1474 (frv_relocate_main_executable): Likewise.
1475 * solib-spu.c (spu_relocate_main_executable): Likewise.
1476 (spu_bfd_open): Likewise.
1477 * solib-svr4.c (lm_info_read): Likewise.
1478 (read_program_header): Likewise.
1479 (find_program_interpreter): Likewise.
1480 (scan_dyntag): Likewise.
1481 (elf_locate_base): Likewise.
1482 (open_symbol_file_object): Likewise.
1483 (read_program_headers_from_bfd): Likewise.
1484 (svr4_relocate_main_executable): Likewise.
1485 * solib-target.c (solib_target_relocate_section_addresses): Likewise.
1486 * solib.c (solib_find_1): Likewise.
1487 (exec_file_find): Likewise.
1488 (solib_find): Likewise.
1489 * source.c (openp): Likewise.
1490 (print_source_lines_base): Likewise.
1491 (forward_search_command): Likewise.
1492 * sparc-ravenscar-thread.c (supply_register_at_address): Likewise.
1493 * spu-tdep.c (spu2ppu_prev_register): Likewise.
1494 (spu_get_overlay_table): Likewise.
1495 * stabsread.c (patch_block_stabs): Likewise.
1496 (define_symbol): Likewise.
1497 (again:): Likewise.
1498 (read_member_functions): Likewise.
1499 (read_one_struct_field): Likewise.
1500 (read_enum_type): Likewise.
1501 (common_block_start): Likewise.
1502 * stack.c (read_frame_arg): Likewise.
1503 (backtrace_command): Likewise.
1504 * stap-probe.c (stap_parse_register_operand): Likewise.
1505 * symfile.c (syms_from_objfile_1): Likewise.
1506 (find_separate_debug_file): Likewise.
1507 (load_command): Likewise.
1508 (load_progress): Likewise.
1509 (load_section_callback): Likewise.
1510 (reread_symbols): Likewise.
1511 (add_filename_language): Likewise.
1512 (allocate_compunit_symtab): Likewise.
1513 (read_target_long_array): Likewise.
1514 (simple_read_overlay_table): Likewise.
1515 * symtab.c (symbol_set_names): Likewise.
1516 (resize_symbol_cache): Likewise.
1517 (rbreak_command): Likewise.
1518 (completion_list_add_name): Likewise.
1519 (completion_list_objc_symbol): Likewise.
1520 (add_filename_to_list): Likewise.
1521 * target-descriptions.c (maint_print_c_tdesc_cmd): Likewise.
1522 * target-memory.c (target_write_memory_blocks): Likewise.
1523 * target.c (target_read_string): Likewise.
1524 (read_whatever_is_readable): Likewise.
1525 (target_read_alloc_1): Likewise.
1526 (simple_search_memory): Likewise.
1527 (target_fileio_read_alloc_1): Likewise.
1528 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1529 * top.c (command_line_input): Likewise.
1530 * tracefile-tfile.c (tfile_fetch_registers): Likewise.
1531 * tracefile.c (tracefile_fetch_registers): Likewise.
1532 * tracepoint.c (add_memrange): Likewise.
1533 (init_collection_list): Likewise.
1534 (add_aexpr): Likewise.
1535 (trace_dump_actions): Likewise.
1536 (parse_trace_status): Likewise.
1537 (parse_tracepoint_definition): Likewise.
1538 (parse_tsv_definition): Likewise.
1539 (parse_static_tracepoint_marker_definition): Likewise.
1540 * tui/tui-file.c (tui_sfileopen): Likewise.
1541 (tui_file_adjust_strbuf): Likewise.
1542 * tui/tui-io.c (tui_expand_tabs): Likewise.
1543 * tui/tui-source.c (tui_set_source_content): Likewise.
1544 * typeprint.c (find_global_typedef): Likewise.
1545 * ui-file.c (do_ui_file_xstrdup): Likewise.
1546 (ui_file_obsavestring): Likewise.
1547 (mem_file_write): Likewise.
1548 * utils.c (make_hex_string): Likewise.
1549 (get_regcomp_error): Likewise.
1550 (puts_filtered_tabular): Likewise.
1551 (gdb_realpath_keepfile): Likewise.
1552 (ldirname): Likewise.
1553 (gdb_bfd_errmsg): Likewise.
1554 (substitute_path_component): Likewise.
1555 * valops.c (search_struct_method): Likewise.
1556 (find_oload_champ_namespace_loop): Likewise.
1557 * valprint.c (print_decimal_chars): Likewise.
1558 (read_string): Likewise.
1559 (generic_emit_char): Likewise.
1560 * varobj.c (varobj_delete): Likewise.
1561 (varobj_value_get_print_value): Likewise.
1562 * vaxobsd-tdep.c (vaxobsd_sigtramp_sniffer): Likewise.
1563 * windows-tdep.c (display_one_tib): Likewise.
1564 * xcoffread.c (read_xcoff_symtab): Likewise.
1565 (process_xcoff_symbol): Likewise.
1566 (swap_sym): Likewise.
1567 (scan_xcoff_symtab): Likewise.
1568 (xcoff_initial_scan): Likewise.
1569 * xml-support.c (gdb_xml_end_element): Likewise.
1570 (xml_process_xincludes): Likewise.
1571 (xml_fetch_content_from_file): Likewise.
1572 * xml-syscall.c (xml_list_of_syscalls): Likewise.
1573 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1574
623fb775 15752015-09-23 James Bowman <james.bowman@ftdichip.com>
1576
1577 * ft32-tdep.c (ft32_register_type): Return gdbarch_tdep (gdbarch)->pc_type
1578 instead of builtin_func_ptr.
1579 (ft32_pointer_to_address): New function.
1580 (ft32_address_class_type_flags): New function.
1581 (ft32_address_class_type_flags_to_name): New function.
1582 (ft32_address_class_name_to_type_flags): New function.
1583 (ft32_gdbarch_init): Set tdep->pc_type. Call
1584 set_gdbarch_pointer_to_address,
1585 set_gdbarch_address_class_type_flags
1586 set_gdbarch_address_class_name_to_type_flags,
1587 and set_gdbarch_address_class_type_flags_to_name.
1588 * ft32-tdep.h (struct gdbarch_tdep) <pc_type>: New field.
1589
e6c2c623
PMR
15902015-09-23 Pierre-Marie de Rodat <derodat@adacore.com>
1591
1592 * ada-lang.c (ada_evaluate_subexp) <OP_FUNCALL>: When the input
1593 value is a reference, actually dereference it in order to get
1594 the underlying value.
1595
bc1f8cda
SM
15962015-09-22 Simon Marchi <simon.marchi@ericsson.com>
1597
1598 * stap-probe.c (handle_stap_probe): Remove unnecessary cast.
1599
acaa662f
SM
16002015-09-21 Simon Marchi <simon.marchi@ericsson.com>
1601
1602 * cli/cli-setshow.c (cmd_show_list): Constify a variable.
1603 * linespec.c (linespec_lexer_lex_string): Same.
1604
4d9d419e
PL
16052015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1606
1607 * NEWS: Mention support for fast tracepoints on aarch64-linux.
1608
6ec5f4be
PL
16092015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1610
1611 * aarch64-tdep.c (aarch64_analyze_prologue): New is_adrp
1612 variable. Call aarch64_decode_adr instead of
1613 aarch64_decode_adrp.
1614 * arch/aarch64-insn.h (aarch64_decode_adrp): Delete.
1615 (aarch64_decode_adr): New function declaration.
1616 * arch/aarch64-insn.c (aarch64_decode_adrp): Delete.
1617 (aarch64_decode_adr): New function, factored out from
1618 aarch64_decode_adrp to decode both adr and adrp instructions.
1619
787749ea
PL
16202015-09-21 Pierre Langlois <pierre.langlois@arm.com>
1621
1622 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-insn.o.
1623 (HFILES_NO_SRCDIR): Add arch/aarch64-insn.h.
1624 (aarch64-insn.o): New rule.
1625 * configure.tgt (aarch64*-*-elf): Add aarch64-insn.o.
1626 (aarch64*-*-linux*): Likewise.
1627 * arch/aarch64-insn.c: New file.
1628 * arch/aarch64-insn.h: New file.
1629 * aarch64-tdep.c: Include arch/aarch64-insn.h.
1630 (aarch64_debug): Move to arch/aarch64-insn.c. Declare in
1631 arch/aarch64-insn.h.
1632 (decode_add_sub_imm): Rename to ...
1633 (aarch64_decode_add_sub_imm): ... this.
1634 (decode_adrp): Rename to ...
1635 (aarch64_decode_adrp): ... this. Move to arch/aarch64-insn.c.
1636 Declare in arch/aarch64-insn.h.
1637 (decode_b): Rename to ...
1638 (aarch64_decode_b): ... this. Move to arch/aarch64-insn.c.
1639 Declare in arch/aarch64-insn.h.
1640 (decode_bcond): Rename to ...
1641 (aarch64_decode_bcond): ... this. Move to arch/aarch64-insn.c.
1642 Declare in arch/aarch64-insn.h.
1643 (decode_br): Rename to ...
1644 (aarch64_decode_br): ... this.
1645 (decode_cb): Rename to ...
1646 (aarch64_decode_cb): ... this. Move to arch/aarch64-insn.c.
1647 Declare in arch/aarch64-insn.h.
1648 (decode_eret): Rename to ...
1649 (aarch64_decode_eret): ... this.
1650 (decode_movz): Rename to ...
1651 (aarch64_decode_movz): ... this.
1652 (decode_orr_shifted_register_x): Rename to ...
1653 (aarch64_decode_orr_shifted_register_x): ... this.
1654 (decode_ret): Rename to ...
1655 (aarch64_decode_ret): ... this.
1656 (decode_stp_offset): Rename to ...
1657 (aarch64_decode_stp_offset): ... this.
1658 (decode_stp_offset_wb): Rename to ...
1659 (aarch64_decode_stp_offset_wb): ... this.
1660 (decode_stur): Rename to ...
1661 (aarch64_decode_stur): ... this.
1662 (decode_tb): Rename to ...
1663 (aarch64_decode_tb): ... this. Move to arch/aarch64-insn.c.
1664 Declare in arch/aarch64-insn.h.
1665 (aarch64_analyze_prologue): Adjust calls to renamed functions.
1666
183dc7ec
DE
16672015-09-20 Doug Evans <xdje42@gmail.com>
1668
1669 * dwarf2read.c (add_partial_symbol): Remove outdated comments.
1670
2ee7123e
DE
16712015-09-20 Doug Evans <xdje42@gmail.com>
1672
1673 * dwarf2read.c (dwarf2_compute_name): Add FIXME. Don't use a local
1674 variable name that collides with a parameter.
1675
7d1c9c9b
JB
16762015-09-20 Joel Brobecker <brobecker@adacore.com>
1677
1678 * dwarf2loc.c (locexpr_get_frame_base): Renames
1679 block_op_get_frame_base.
1680 (dwarf2_block_frame_base_locexpr_funcs): Replace reference to
1681 block_op_get_frame_base by reference to locexpr_get_frame_base.
1682 (loclist_get_frame_base): New function, near identical copy of
1683 locexpr_get_frame_base.
1684 (dwarf2_block_frame_base_loclist_funcs): Replace reference to
1685 block_op_get_frame_base by reference to loclist_get_frame_base.
1686
7dc7c195
DE
16872015-09-19 Doug Evans <xdje42@gmail.com>
1688
1689 * ravenscar-thread.c (ravenscar_inferior_created): Replace
1690 current_inferior ()->gdbarch with its wrapper target_gdbarch.
1691
be550b6e
DE
16922015-09-18 Doug Evans <xdje42@gmail.com>
1693
1694 * linux-thread-db.c (record_thread): Return the created thread.
1695 (thread_from_lwp): Likewise.
1696 (thread_db_get_thread_local_address): Update.
1697
615b3f62
DE
16982015-09-18 Doug Evans <xdje42@gmail.com>
1699
1700 * symtab.h (general_symbol_info) <mangled_lang>: Delete struct,
1701 move only member demangled_name up. All uses updated.
1702
015d2e7e
DE
17032015-09-18 Doug Evans <xdje42@gmail.com>
1704
1705 * findvar.c (default_read_var_value) <LOC_UNRESOLVED>: Include the
1706 kind of minimal symbol in the error message.
1707 * objfiles.c (objfile_flavour_name): New function.
1708 * objfiles.h (objfile_flavour_name): Declare.
1709
a0cc84cd
YQ
17102015-09-18 Yao Qi <yao.qi@linaro.org>
1711
1712 * nat/aarch64-linux.c: Include elf/common.h,
1713 nat/gdb_ptrace.h, asm/ptrace.h and sys/uio.h.
1714 (aarch64_ps_get_thread_area): New function.
1715 * nat/aarch64-linux.h: Include gdb_proc_service.h.
1716 (aarch64_ps_get_thread_area): Declare.
1717 * aarch64-linux-nat.c (ps_get_thread_area): Call
1718 aarch64_ps_get_thread_area.
1719
d2939ba2
MM
17202015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1721
1722 * record-btrace.c (record_btrace_resume): Honour scheduler-locking.
1723
f2665db5
MM
17242015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1725
1726 * NEWS: Announce new scheduler-locking mode.
1727 * infrun.c (schedlock_replay): New.
1728 (scheduler_enums): Add schedlock_replay.
1729 (scheduler_mode): Change default to schedlock_replay.
1730 (user_visible_resume_ptid): Handle schedlock_replay.
1731 (clear_proceed_status_thread): Stop replaying if resumed thread is
1732 not replaying.
1733 (schedlock_applies): Handle schedlock_replay.
1734 (_initialize_infrun): Document new scheduler-locking mode.
1735 * record-btrace.c (record_btrace_resume): Remove code to stop other
1736 threads when not replaying the resumed thread.
1737
7ff27e9b
MM
17382015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1739
1740 * record-btrace.c ((record_btrace_will_replay): New.
1741 (init_record_btrace_ops): Initialize to_record_will_replay.
1742 * record-full.c ((record_full_will_replay): New.
1743 (init_record_full_ops): Initialize to_record_will_replay.
1744 * target-delegates.c: Regenerated.
1745 * target.c (target_record_will_replay): New.
1746 * target.h (struct target_ops) <to_record_will_replay>: New.
1747 (target_record_will_replay): New.
1748
797094dd
MM
17492015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1750
1751 * record-btrace.c (record_btrace_resume): Call
1752 target_record_stop_replaying.
1753 (record_btrace_stop_replaying_all): New.
1754 (init_record_btrace_ops): Initialize to_record_stop_replaying.
1755 * record-full.c (record_full_stop_replaying): New.
1756 (init_record_full_ops ): Initialize to_record_stop_replaying.
1757 * target-delegates.c: Regenerated.
1758 * target.c (target_record_stop_replaying): New.
1759 * target.h (struct target_ops) <to_record_stop_replaying>: New.
1760 (target_record_stop_replaying): New.
1761
4d10e986
MM
17622015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1763
1764 * record-btrace.c (record_btrace_xfer_partial)
1765 (record_btrace_store_registers, record_btrace_prepare_to_store):
1766 Call record_btrace_is_replaying with inferior_ptid instead of
1767 minus_one_ptid.
1768 (record_btrace_store_registers): Change error message.
1769
a52eab48
MM
17702015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1771
1772 * record-btrace.c (record_btrace_is_replaying): Add ptid argument.
1773 Update users to pass minus_one_ptid.
1774 * record-full.c (record_full_is_replaying): Add ptid argument (ignored).
1775 * record.c (cmd_record_delete): Pass inferior_ptid to
1776 target_record_is_replaying.
1777 * target-delegates.c: Regenerated.
1778 * target.c (target_record_is_replaying): Add ptid argument.
1779 * target.h (struct target_ops) <to_record_is_replaying>: Add ptid
1780 argument.
1781 (target_record_is_replaying): Add ptid argument.
1782
cbb55fa7
MM
17832015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1784
1785 * record-btrace.c (record_btrace_open): Remove non_stop check.
1786 * NEWS: Announce that record btrace supports non-stop mode.
1787
d1988021
MM
17882015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1789
1790 * infrun.c (handle_inferior_event_1): Switch to the eventing thread
1791 in the TARKET_WAITKIND_NO_HISTORY case.
1792
a6b5be76
MM
17932015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1794
1795 * record-btrace.c (record_btrace_maybe_mark_async_event): New.
1796 (record_btrace_wait): Call record_btrace_maybe_mark_async_event.
1797
ec71cc2f
MM
17982015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1799
1800 * record-btrace.c (get_thread_current_frame): New.
1801 (record_btrace_start_replaying): Call get_thread_current_frame.
1802
0ca912df
MM
18032015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1804
1805 * record-btrace.c (record_btrace_resume_thread): A move request
1806 overwrites a previous move request.
1807 (record_btrace_find_resume_thread): Removed.
1808 (record_btrace_resume): Resume all requested threads.
1809
e3cfc1c7
MM
18102015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1811
1812 * record-btrace.c: Include vec.h.
1813 (record_btrace_find_thread_to_move): Removed.
1814 (btrace_step_no_resumed, btrace_step_again)
1815 (record_btrace_stop_replaying_at_end): New.
1816 (record_btrace_cancel_resume): Call record_btrace_stop_replaying_at_end.
1817 (record_btrace_single_step_forward): Remove calls to
1818 record_btrace_stop_replaying.
1819 (record_btrace_step_thread): Do only one step for BTHR_CONT and
1820 BTHR_RCONT. Keep threads at the end of their history moving.
1821 (record_btrace_wait): Call record_btrace_step_thread for all threads
1822 until one reports an event. Call record_btrace_stop_replaying_at_end
1823 for the eventing thread.
1824
cf8f8f0c
MM
18252015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1826
1827 * record-btrace.c (record_btrace_single_step_forward): Return
1828 NO_HISTORY if a step brings us to the end of the execution history.
1829
011c71b6
MM
18302015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1831
1832 * record-btrace.c (record_btrace_step_thread): Move breakpoint check
1833 to ...
1834 (record_btrace_single_step_forward): ... here and
1835 (record_btrace_single_step_backward): ... here.
1836
d825d248
MM
18372015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1838
1839 * record-btrace.c (btrace_step_spurious)
1840 (record_btrace_single_step_forward)
1841 (record_btrace_single_step_backward): New.
1842 (record_btrace_step_thread): Call record_btrace_single_step_forward
1843 and record_btrace_single_step_backward.
1844
3c615f99
MM
18452015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1846
1847 * record-btrace.c (record_btrace_replay_at_breakpoint): New.
1848 (record_btrace_step_thread): Call record_btrace_replay_at_breakpoint.
1849
987e68b1
MM
18502015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1851
1852 * record-btrace.c (btrace_thread_flag_to_str)
1853 (record_btrace_cancel_resume): New.
1854 (record_btrace_step_thread): Call btrace_thread_flag_to_str.
1855 (record_btrace_resume): Print execution direction.
1856 (record_btrace_resume_thread): Call btrace_thread_flag_to_str.
1857 (record_btrace_wait): Call record_btrace_cancel_resume.
1858
6e4879f0
MM
18592015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1860
1861 * btrace.h (enum btrace_thread_flag) <BTHR_STOP>: New.
1862 * record-btrace (record_btrace_resume_thread): Clear BTHR_STOP.
1863 (record_btrace_find_thread_to_move): Also accept threads that have
1864 BTHR_STOP set.
1865 (btrace_step_stopped_on_request, record_btrace_stop): New.
1866 (record_btrace_step_thread): Support BTHR_STOP.
1867 (record_btrace_wait): Also clear BTHR_STOP when stopping other threads.
1868 (init_record_btrace_ops): Initialize to_stop.
1869
5953356c
MM
18702015-09-18 Markus Metzger <markus.t.metzger@intel.com>
1871
1872 * record-btrace.c (record_btrace_wait): Replace non_stop check with
1873 target_is_non_stop_p ().
1874
bfca584f
PMR
18752015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
1876
1877 * ada-typeprint.c (print_array_type): Do not describe arrays as
1878 packed when they embed dynamic elements.
1879
5382cfab
PW
18802015-09-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1881
1882 * symtab.h (address_class): Document that TLS variables
1883 are handled by LOC_UNRESOLVED.
1884 * findvar.c (default_read_var_value): Don't relocate TLS variables.
1885 * printcmd.c (address_info): Don't relocate TLS variables.
1886
b277c936
PL
18872015-09-15 Pierre Langlois <pierre.langlois@arm.com>
1888
1889 * aarch64-tdep.c (decode_add_sub_imm): Use debug_printf.
1890 (decode_adrp): Likewise.
1891 (decode_b): Likewise.
1892 (decode_bcond): Likewise.
1893 (decode_br): Likewise.
1894 (decode_cb): Likewise.
1895 (decode_eret): Likewise.
1896 (decode_movz): Likewise.
1897 (decode_orr_shifted_register_x): Likewise.
1898 (decode_ret): Likewise.
1899 (decode_stp_offset): Likewise.
1900 (decode_stp_offset_wb): Likewise.
1901 (decode_stur): Likewise.
1902 (decode_tb): Likewise.
1903 (aarch64_analyze_prologue): Likewise.
1904 (pass_in_x): Likewise.
1905 (pass_in_v): Likewise.
1906 (pass_on_stack): Likewise.
1907 (aarch64_push_dummy_call): Likewise.
1908 (aarch64_extract_return_value): Likewise.
1909 (aarch64_store_return_value): Likewise.
1910 (aarch64_return_value): Likewise.
1911 (aarch64_record_asimd_load_store): Likewise.
1912 (aarch64_record_load_store): Likewise.
1913 (aarch64_record_data_proc_simd_fp): Likewise.
1914
141c5cc4
JK
19152015-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1916
1917 * linespec.c (minsym_found): Call gdbarch_skip_entrypoint.
1918 * ppc64-tdep.c (ppc64_skip_trampoline_code): Rename to ...
1919 (ppc64_skip_trampoline_code_1): ... here.
1920 (ppc64_skip_trampoline_code): New wrapper function.
1921 * symtab.c (find_function_start_sal): Call gdbarch_skip_entrypoint.
1922
750ce8d1
YQ
19232015-09-15 Yao Qi <yao.qi@linaro.org>
1924
1925 * aarch64-linux-nat.c (aarch64_linux_can_do_single_step): New
1926 function.
1927 (_initialize_aarch64_linux_nat): Install it to to_can_do_single_step.
1928 * arm-linux-tdep.c (arm_linux_software_single_step): Return 0
1929 if target_can_do_single_step returns 1.
1930 * remote.c (struct vCont_action_support) <s, S>: New fields.
1931 (PACKET_vContSupported): New enum.
1932 (remote_protocol_features): New element for vContSupported.
1933 (remote_query_supported): Append "vContSupported+".
1934 (remote_vcont_probe): Remove support_s and support_S, use
1935 rs->supports_vCont.s and rs->supports_vCont.S instead. Disable
1936 vCont packet if c and C actions are not supported.
1937 (remote_can_do_single_step): New function.
1938 (init_remote_ops): Install it to to_can_do_single_step.
1939 (_initialize_remote): Call add_packet_config_cmd.
1940 * target.h (struct target_ops) <to_can_do_single_step>: New field.
1941 (target_can_do_single_step): New macro.
1942 * target-delegates.c: Re-generated.
1943
ade90bde
YQ
19442015-09-15 Yao Qi <yao.qi@linaro.org>
1945
1946 * aarch64-linux-nat.c (aarch64_linux_siginfo_fixup): New function.
1947 (_initialize_aarch64_linux_nat): Call linux_nat_set_siginfo_fixup.
1948 * nat/aarch64-linux.c (aarch64_compat_siginfo_from_siginfo):
1949 New function.
1950 (aarch64_siginfo_from_compat_siginfo): New function.
1951 * nat/aarch64-linux.h: Include signal.h.
1952 (compat_int_t, compat_uptr_t, compat_time_t): Typedef.
1953 (compat_timer_t, compat_clock_t): Likewise.
1954 (struct compat_timeval): New.
1955 (union compat_sigval): New.
1956 (struct compat_siginfo): New.
1957 (cpt_si_pid, cpt_si_uid, cpt_si_timerid): New macros.
1958 (cpt_si_overrun, cpt_si_status, cpt_si_utime): Likewise.
1959 (cpt_si_stime, cpt_si_ptr, cpt_si_addr): Likewise.
1960 (cpt_si_band, cpt_si_fd): Likewise.
1961
4c2f2a79
PA
19622015-09-14 Pedro Alves <palves@redhat.com>
1963
1964 * infrun.c (current_stop_id): New global.
1965 (get_stop_id, new_stop_id): New functions.
1966 (fetch_inferior_event): Handle normal_stop proceeding the target.
1967 (struct stop_context): New.
1968 (save_stop_context, release_stop_context_cleanup)
1969 (stop_context_changed): New functions.
1970 (normal_stop): Return true if the hook-stop changes the stop
1971 context.
1972 * infrun.h (get_stop_id): Declare.
1973 (normal_stop): Now returns int. Add documentation.
1974
919e6dbe
PMR
19752015-09-14 Pierre-Marie de Rodat <derodat@adacore.com>
1976
1977 * ada-lang.c (ada_value_ptr_subscript): Update the heading
1978 comment. Handle packed arrays.
1979
b027a8fa
PA
19802015-09-14 Pedro Alves <palves@redhat.com>
1981
1982 * NEWS (Changes in GDB 7.10, New commands>: Remove duplicate
1983 mention of maint set/show target-non-stop.
1984
b459a59b
DB
19852015-09-11 Don Breazeal <donb@codesourcery.com>
1986
1987 * NEWS: Announce new remote packets for the exec-events
1988 feature and the exec-events feature and associated commands.
1989
d46addbb
DB
19902015-09-11 Don Breazeal <donb@codesourcery.com>
1991
1992 * remote.c (remote_exec_event_p): New function.
1993 (remote_insert_exec_catchpoint): New function.
1994 (remote_remove_exec_catchpoint): New function.
1995 (init_extended_remote_ops): Initialize extended_remote_ops
1996 members to_insert_exec_catchpoint and
1997 to_remove_exec_catchpoint.
1998
94585166
DB
19992015-09-11 Don Breazeal <donb@codesourcery.com>
2000 Luis Machado <lgustavo@codesourcery.com>
2001
2002 * infrun.c (follow_exec): Use process-style ptid for
2003 exec message. Call add_inferior_with_spaces and
2004 target_follow_exec.
2005 * nat/linux-ptrace.c (linux_supports_traceexec): New function.
2006 * nat/linux-ptrace.h (linux_supports_traceexec): Declare.
2007 * remote.c (remote_pspace_data): New static variable.
2008 (remote_pspace_data_cleanup): New function.
2009 (get_remote_exec_file): New function.
2010 (set_remote_exec_file_1): New function.
2011 (set_remote_exec_file): New function.
2012 (show_remote_exec_file): New function.
2013 (remote_exec_file): Delete static variable.
2014 (anonymous enum) <PACKET_exec_event_feature>: New
2015 enumeration constant.
2016 (remote_protocol_features): Add entry for exec-events feature.
2017 (remote_query_supported): Add client side of qSupported query
2018 for exec-events feature.
2019 (remote_follow_exec): New function.
2020 (remote_parse_stop_reply): Handle 'exec' stop reason.
2021 (extended_remote_run, extended_remote_create_inferior): Call
2022 get_remote_exec_file and set_remote_exec_file_1.
2023 (init_extended_remote_ops) <to_follow_exec>: Initialize new
2024 member.
2025 (_initialize_remote): Call
2026 register_program_space_data_with_cleanup. Call
2027 add_packet_config_cmd for remote exec-events feature.
2028 Modify call to add_setshow_string_noescape_cmd for exec-file
2029 to use new functions set_remote_exec_file and
2030 show_remote_exec_file.
2031 * target-debug.h, target-delegates.c: Regenerated.
2032 * target.c (target_follow_exec): New function.
2033 * target.h (struct target_ops) <to_follow_exec>: New member.
2034 (target_follow_exec): Declare new function.
2035
669e74e8
PL
20362015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2037
2038 * aarch64-tdep.c (decode_cb): Move up comment describing the
2039 encoding.
2040 (decode_tb): Fix a typo in comment above the function. Move up
2041 comment describing the encoding.
2042
4d50586d
PL
20432015-09-11 Pierre Langlois <pierre.langlois@arm.com>
2044
2045 * aarch64-tdep.c (decode_bcond): Fix incorrect mask.
2046
6dcaef99
MMN
20472015-09-11 Mihail-Marian Nistor <mihail.nistor@freescale.com>
2048
2049 PR gdb/18947
2050 * aarch64-linux-tdep.c: (aarch64_linux_init_abi): Install
2051 glibc_skip_solib_resolver as gdbarch_skip_solib_resolver callback.
2052
5da1a4d3
SM
20532015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2054
2055 * ada-lang.c (scan_discrim_bound): Factor out arithmetic
2056 operations.
2057
108d56a4
SM
20582015-09-10 Simon Marchi <simon.marchi@ericsson.com>
2059
2060 * ada-lang.c (ada_search_struct_field): Constify parameters
2061 and/or variables..
2062 (xget_renaming_scope): Likewise.
2063 (ada_is_redundant_range_encoding): Likewise.
2064 (scan_discrim_bound): Likewise.
2065 (to_fixed_range_type): Likewise.
2066
dd2e65cc
YQ
20672015-09-10 Yao Qi <yao.qi@linaro.org>
2068
2069 * breakpoint.c (download_tracepoint_locations): New local
2070 can_download_tracepoint. Check the result of
2071 target_can_download_tracepoint and save it in
2072 can_download_tracepoint if there are tracepoints to download.
2073 * linux-nat.h (enum tribool): Move it to ...
2074 * common/common-types.h: ... here.
2075
cfe75703
PA
20762015-09-09 Pedro Alves <palves@redhat.com>
2077
2078 * inf-loop.c (inferior_event_handler): Delete INF_TIMER case.
2079 * target.h (enum inferior_event_type) <INF_TIMER>: Delete.
2080
a85a3079
PA
20812015-09-09 Pedro Alves <palves@redhat.com>
2082
2083 * continuations.c (add_continuation, restore_thread_cleanup)
2084 (do_all_continuations_ptid, do_all_continuations_thread_callback)
2085 (do_all_continuations_thread, do_all_continuations)
2086 (discard_all_continuations_thread_callback)
2087 (discard_all_continuations_thread, discard_all_continuations)
2088 (add_intermediate_continuation)
2089 (do_all_intermediate_continuations_thread_callback)
2090 (do_all_intermediate_continuations_thread)
2091 (do_all_intermediate_continuations)
2092 (discard_all_intermediate_continuations_thread_callback)
2093 (discard_all_intermediate_continuations_thread)
2094 (discard_all_intermediate_continuations): Delete.
2095 * continuations.h (add_continuation, do_all_continuations)
2096 (do_all_continuations_thread, discard_all_continuations)
2097 (discard_all_continuations_thread, add_intermediate_continuation)
2098 (do_all_intermediate_continuations)
2099 (do_all_intermediate_continuations_thread)
2100 (discard_all_intermediate_continuations)
2101 (discard_all_intermediate_continuations_thread): Delete
2102 declarations.
2103 * event-top.c (stdin_event_handler): Delete references to
2104 continuations.
2105 * gdbthread.h (struct thread_info): Delete continuations and
2106 intermediate_continuations fields.
2107 * inf-loop.c (inferior_event_handler): Remove references to
2108 continuations.
2109 * infrun.c (infrun_thread_stop_requested_callback): Remove
2110 references to continuations.
2111 * target.h (enum inferior_event_type) <INF_EXEC_CONTINUE>: Delete.
2112 * thread.c: Don't include "continuations.h".
2113 (clear_thread_inferior_resources): Remove references to
2114 continuations.
2115
0700e23e
PA
21162015-09-09 Pedro Alves <palves@redhat.com>
2117
2118 * infcall.c (struct dummy_frame_context_saver): Delete.
2119 (dummy_frame_context_saver_free, dummy_frame_context_saver_dtor)
2120 (dummy_frame_context_saver_drop)
2121 (dummy_frame_context_saver_cleanup)
2122 (dummy_frame_context_saver_get_regs)
2123 (dummy_frame_context_saver_setup): Delete.
2124 * infcall.h (dummy_frame_context_saver_drop)
2125 (dummy_frame_context_saver_cleanup)
2126 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver):
2127 Delete.
2128 (get_return_value): Remove 'ctx_saver' paremeter. Adjust.
2129 * inferior.h (get_return_value): Remove 'ctx_saver' paremeter.
2130 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Adjust.
2131
cfc31633
PA
21322015-09-09 Pedro Alves <palves@redhat.com>
2133
2134 * breakpoint.c: Include "thread-fsm.h".
2135 (struct until_break_command_continuation_args): Delete.
2136 (struct until_break_fsm): New.
2137 (until_break_fsm_ops): New global.
2138 (new_until_break_fsm, until_break_fsm_should_stop): New functions.
2139 (until_break_command_continuation): Delete.
2140 (until_break_fsm_clean_up): New function.
2141 (until_break_fsm_async_reply_reason): New function.
2142 (until_break_command): Adjust to create an until_break_fsm instead
2143 of a continuation.
2144 (momentary_bkpt_print_it): No longer print MI's async-stop-reason
2145 here.
2146 * infcmd.c (struct until_next_fsm): New.
2147 (until_next_fsm_ops): New global.
2148 (new_until_next_fsm, until_next_fsm_should_stop): New function.
2149 (until_next_continuation): Delete.
2150 (until_next_fsm_clean_up, until_next_fsm_async_reply_reason): New
2151 functions.
2152 (until_next_command): Adjust to create a new until_next_fsm
2153 instead of a continuation.
2154
388a7084
PA
21552015-09-09 Pedro Alves <palves@redhat.com>
2156
2157 * infcall.c: Include thread_fsm.h.
2158 (struct call_return_meta_info): New.
2159 (get_call_return_value): New function, factored out from
2160 call_function_by_hand_dummy.
2161 (struct call_thread_fsm): New.
2162 (call_thread_fsm_ops): New global.
2163 (new_call_thread_fsm, call_thread_fsm_should_stop)
2164 (call_thread_fsm_should_notify_stop): New functions.
2165 (run_inferior_call): Add 'sm' parameter. Associate the FSM with
2166 the thread.
2167 (call_function_by_hand_dummy): Create a new call_thread_fsm
2168 instance, associate it with the thread, and wait for the FSM to
2169 finish. If finished successfully, fetch the function's result
2170 value out of the FSM.
2171 * infrun.c (fetch_inferior_event): If the FSM says the stop
2172 shouldn't be notified, don't call normal_stop.
2173 (maybe_remove_breakpoints): New function, factored out from ...
2174 (normal_stop): ... here. Simplify.
2175 * infrun.h (maybe_remove_breakpoints): Declare.
2176 * thread-fsm.c (thread_fsm_should_notify_stop): New function.
2177 (thread-fsm.h) <struct thread_fsm_ops>: New field.
2178 (thread_fsm_should_notify_stop): Declare.
2179
243a9253
PA
21802015-09-09 Pedro Alves <palves@redhat.com>
2181
2182 * Makefile.in (COMMON_OBS): Add thread-fsm.o.
2183 * breakpoint.c (handle_jit_event): Print debug output.
2184 (bpstat_what): Split event callback handling to ...
2185 (bpstat_run_callbacks): ... this new function.
2186 (momentary_bkpt_print_it): No longer handle bp_finish here.
2187 * breakpoint.h (bpstat_run_callbacks): Declare.
2188 * gdbthread.h (struct thread_info) <step_multi>: Delete field.
2189 <thread_fsm>: New field.
2190 (thread_cancel_execution_command): Declare.
2191 * infcmd.c: Include thread-fsm.h.
2192 (struct step_command_fsm): New.
2193 (step_command_fsm_ops): New global.
2194 (new_step_command_fsm, step_command_fsm_prepare): New functions.
2195 (step_1): Adjust to use step_command_fsm_prepare and
2196 prepare_one_step.
2197 (struct step_1_continuation_args): Delete.
2198 (step_1_continuation): Delete.
2199 (step_command_fsm_should_stop): New function.
2200 (step_once): Delete.
2201 (step_command_fsm_clean_up, step_command_fsm_async_reply_reason)
2202 (prepare_one_step): New function, based on step_once.
2203 (until_next_command): Remove step_multi reference.
2204 (struct return_value_info): New.
2205 (print_return_value): Rename to ...
2206 (print_return_value_1): ... this. New struct return_value_info
2207 parameter. Adjust.
2208 (print_return_value): Reimplement as wrapper around
2209 print_return_value_1.
2210 (struct finish_command_fsm): New.
2211 (finish_command_continuation): Delete.
2212 (finish_command_fsm_ops): New global.
2213 (new_finish_command_fsm, finish_command_fsm_should_stop): New
2214 functions.
2215 (finish_command_fsm_clean_up, finish_command_fsm_return_value):
2216 New.
2217 (finish_command_continuation_free_arg): Delete.
2218 (finish_command_fsm_async_reply_reason): New.
2219 (finish_backward, finish_forward): Change symbol parameter to a
2220 finish_command_fsm. Adjust.
2221 (finish_command): Create a finish_command_fsm. Adjust.
2222 * infrun.c: Include "thread-fsm.h".
2223 (clear_proceed_status_thread): Delete the thread's FSM.
2224 (infrun_thread_stop_requested_callback): Cancel the thread's
2225 execution command.
2226 (clean_up_just_stopped_threads_fsms): New function.
2227 (fetch_inferior_event): Handle the event_thread's should_stop
2228 method saying the command isn't done yet.
2229 (process_event_stop_test): Run breakpoint callbacks here.
2230 (print_stop_event): Rename to ...
2231 (print_stop_location): ... this.
2232 (restore_current_uiout_cleanup): New function.
2233 (print_stop_event): Reimplement.
2234 (normal_stop): No longer notify the end_stepping_range observers
2235 here handle "step N" nor "finish" here. No longer call
2236 print_stop_event here.
2237 * infrun.h (struct return_value_info): Forward declare.
2238 (print_return_value): Declare.
2239 (print_stop_event): Change prototype.
2240 * thread-fsm.c: New file.
2241 * thread-fsm.h: New file.
2242 * thread.c: Include "thread-fsm.h".
2243 (thread_cancel_execution_command): New function.
2244 (clear_thread_inferior_resources): Call it.
2245 * cli/cli-interp.c (cli_on_normal_stop): New function.
2246 (cli_interpreter_init): Install cli_on_normal_stop as normal_stop
2247 observer.
2248 * mi/mi-interp.c: Include "thread-fsm.h".
2249 (restore_current_uiout_cleanup): Delete.
2250 (mi_on_normal_stop): If the thread has an FSM associated, and it
2251 finished, ask it for the async-reply-reason to print. Always call
2252 print_stop_event here, regardless of the top-level interpreter.
2253 Check bpstat_what to tell whether an asynchronous breakpoint hit
2254 triggered.
2255 * tui/tui-interp.c (tui_on_normal_stop): New function.
2256 (tui_init): Install tui_on_normal_stop as normal_stop observer.
2257
0b333c5e
PA
22582015-09-09 Pedro Alves <palves@redhat.com>
2259
2260 * breakpoint.c (bpstat_do_actions_1, until_break_command): Don't
2261 check whether the target can async.
2262 * inf-loop.c (inferior_event_handler): Only call target_async if
2263 the target can async.
2264 * infcall.c: Include top.h and interps.h.
2265 (run_inferior_call): For the interpreter to sync mode while
2266 running the infcall. Call wait_sync_command_done instead of
2267 wait_for_inferior plus normal_stop.
2268 * infcmd.c (prepare_execution_command): Don't check whether the
2269 target can async when running in the foreground.
2270 (step_1): Delete synchronous case handling.
2271 (step_once): Always install a continuation, even in sync mode.
2272 (until_next_command, finish_forward): Don't check whether the
2273 target can async.
2274 (attach_command_post_wait, notice_new_inferior): Always install a
2275 continuation, even in sync mode.
2276 * infrun.c (mark_infrun_async_event_handler): New function.
2277 (proceed): In sync mode, mark infrun's event source instead of
2278 waiting for events here.
2279 (fetch_inferior_event): If the target can't async, do a blocking
2280 wait.
2281 (prepare_to_wait): In sync mode, mark infrun's event source.
2282 (infrun_async_inferior_event_handler): No longer bail out if the
2283 target can't async.
2284 * infrun.h (mark_infrun_async_event_handler): New declaration.
2285 * linux-nat.c (linux_nat_wait_1): Remove calls to
2286 set_sigint_trap/clear_sigint_trap.
2287 (linux_nat_terminal_inferior): No longer check whether the target
2288 can async.
2289 * mi/mi-interp.c (mi_on_sync_execution_done): Update and simplify
2290 comment.
2291 (mi_execute_command_input_handler): No longer check whether the
2292 target is async. Update and simplify comment.
2293 * target.c (default_target_wait): New function.
2294 * target.h (struct target_ops) <to_wait>: Now defaults to
2295 default_target_wait.
2296 (default_target_wait): Declare.
2297 * top.c (wait_sync_command_done): New function, factored out from
2298 ...
2299 (maybe_wait_sync_command_done): ... this.
2300 * top.h (wait_sync_command_done): Declare.
2301 * target-delegates.c: Regenerate.
2302
0568462b
MM
23032015-09-09 Markus Metzger <markus.t.metzger@intel.com>
2304
2305 * nat/linux-btrace.h (struct btrace_target_info) <ptr_bits>: Remove.
2306 * nat/linux-btrace.c: Include filestuff.h and inttypes.h.
2307 Remove include of sys/utsname.h.
2308 (linux_determine_kernel_ptr_bits): Remove.
2309 (linux_determine_kernel_start): New.
2310 (perf_event_is_kernel_addr): Remove tinfo argument. Update users.
2311 Update check.
2312 (perf_event_skip_bts_record): Remove tinfo argument. Update users.
2313 (linux_enable_bts, linux_enable_pt): Remove tinfo->ptr_bits
2314 initialization.
2315 * x86-linux-nat.c (x86_linux_enable_btrace): Remove ptr_bits
2316 assignment.
2317
72e02483
PA
23182015-09-07 Pedro Alves <palves@redhat.com>
2319
2320 * guile/guile-internal.h (as_a_scm_t_subr): New.
2321 * guile/guile.c (misc_guile_functions): Use it.
2322 * guile/scm-arch.c (arch_functions): Use it.
2323 * guile/scm-block.c (block_functions, gdbscm_initialize_blocks):
2324 Use it.
2325 * guile/scm-breakpoint.c (breakpoint_functions): Use it.
2326 * guile/scm-cmd.c (command_functions): Use it.
2327 * guile/scm-disasm.c (disasm_functions): Use it.
2328 * guile/scm-exception.c (exception_functions)
2329 (private_exception_functions): Use it.
2330 * guile/scm-frame.c (frame_functions)
2331 * guile/scm-gsmob.c (gsmob_functions): Use it.
2332 * guile/scm-iterator.c (iterator_functions): Use it.
2333 * guile/scm-lazy-string.c (lazy_string_functions): Use it.
2334 * guile/scm-math.c (math_functions): Use it.
2335 * guile/scm-objfile.c (objfile_functions): Use it.
2336 * guile/scm-param.c (parameter_functions): Use it.
2337 * guile/scm-ports.c (port_functions, private_port_functions): Use
2338 it.
2339 * guile/scm-pretty-print.c (pretty_printer_functions): Use it.
2340 * guile/scm-progspace.c (pspace_functions): Use it.
2341 * guile/scm-string.c (string_functions): Use it.
2342 * guile/scm-symbol.c (symbol_functions): Use it.
2343 * guile/scm-symtab.c (symtab_functions): Use it.
2344 * guile/scm-type.c (type_functions, gdbscm_initialize_types): Use
2345 it.
2346 * guile/scm-value.c (value_functions): Use it.
2347
e65b5245
AB
23482015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2349
2350 * tui/tui-data.c (win_with_focus): Remove cast of NULL pointer.
2351 (tui_next_win): Likewise.
2352 (tui_prev_win): Likewise.
2353 (tui_partial_win_by_name): Likewise.
2354 (tui_init_generic_part): Likewise.
2355 (init_content_element): Likewise.
2356 (tui_del_window): Likewise.
2357 (tui_free_window): Likewise.
2358 (tui_del_data_windows): Likewise.
2359 (tui_free_data_content): Likewise.
2360 * tui/tui-layout.c (make_source_or_disasm_window): Likewise.
2361 * tui/tui-regs.c (tui_show_register_group): Likewise.
2362 * tui/tui-win.c (tui_resize_all): Likewise.
2363 (tui_set_focus): Likewise.
2364 (tui_set_win_height): Likewise.
2365 (make_invisible_and_set_new_height): Likewise.
2366 * tui/tui-windata.c (tui_delete_data_content_windows): Likewise.
2367 * tui/tui-wingeneral.c (make_visible): Likewise.
2368
b03e6ad9
AB
23692015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2370
2371 * cli/cli-decode.c (find_cmd): Remove cast of NULL pointer.
2372
be903358
AB
23732015-09-04 Andrew Burgess <andrew.burgess@embecosm.com>
2374
2375 * c-valprint.c (print_unpacked_pointer): Remove cast of NULL
2376 pointer.
2377 * dbxread.c (dbx_end_psymtab): Likewise.
2378 * gnu-nat.c (gnu_write_inferior): Likewise.
2379 * mdebugread.c (cross_ref): Likewise.
2380 * p-valprint.c (pascal_val_print): Likewise.
2381 * xcoffread.c (xcoff_end_psymtab): Likewise.
2382
02f024f9
YQ
23832015-09-04 Yao Qi <yao.qi@linaro.org>
2384
2385 * NEWS: Mention the aarch64 multi-arch debugging support.
2386
cd7c1778
PMR
23872015-09-03 Pierre-Marie de Rodat <derodat@adacore.com>
2388
2389 * ada-lang.c (ada_language_arch_info): Create a TYPE_CODE_CHAR
2390 type instead of a TYPE_CODE_INT one for the string_char_type
2391 and the ada_primitive_type_char types.
2392
39edd165
YQ
23932015-09-03 Yao Qi <yao.qi@linaro.org>
2394
2395 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
2396 Move code to aarch64_linux_region_ok_for_watchpoint. Call
2397 aarch64_linux_region_ok_for_watchpoint.
2398 * nat/aarch64-linux-hw-point.c (aarch64_linux_region_ok_for_watchpoint):
2399 New function.
2400 * nat/aarch64-linux-hw-point.h (aarch64_linux_region_ok_for_watchpoint):
2401 Declare it.
2402
6c214e7c
PP
24032015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2404
2405 * gdb_obstack.h (obstack_strdup): Declare.
2406 * gdb_obstack.c (obstack_strdup): Define.
2407 * gdbarch.sh (gdbarch_obstack_strdup): Declare and define.
2408 * gdbarch.c: Regenerate.
2409 * gdbarch.h: Regenerate.
2410 * gdbtypes.c (arch_type): Use gdbarch_obstack_strdup.
2411
eed8b28a
PP
24122015-09-02 Patrick Palka <patrick@parcs.ath.cx>
2413
2414 * gdbtypes.c (copy_type_recursive): Update documentation.
2415
73c6b475
SDJ
24162015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2417
2418 * solib-svr4.c (solib_event_probe_action): Initialize 'probe_argc'
2419 as zero.
2420
ad1c917a
SDJ
24212015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2422
2423 * solib-svr4.c (svr4_handle_solib_event): Initialize 'val' as NULL
2424
3bd7e5b7
SDJ
24252015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2426
2427 * solib-svr4.c (solib_event_probe_action): Call
2428 get_probe_argument_count using TRY...CATCH.
2429 (svr4_handle_solib_event): Likewise, for evaluate_probe_argument.
2430
f469e8ce
SDJ
24312015-09-01 Sergio Durigan Junior <sergiodj@redhat.com>
2432
2433 * probe.h (struct probe_ops) <get_probe_argument_count,
2434 evaluate_probe_argument, enable_probe, disable_probe>: Mention in
2435 the comment that the function can throw an exception.
2436 (get_probe_argument_count): Likewise.
2437 (evaluate_probe_argument): Likewise.
2438 * stap-probe.c (stap_get_opcode): Call error instead of
2439 internal_error.
2440 (stap_get_expected_argument_type): Likewise. Add argument
2441 'probe'. Improve error message by mentioning the probe's name.
2442 (stap_parse_probe_arguments): Adjust call to
2443 stap_get_expected_argument_type.
2444 (stap_get_arg): Add comment. Assert that 'probe->args_parsed' is
2445 not zero. Call internal_error if GDB requests an argument but the
2446 probe has no arguments.
2447
dc5c8746
PMR
24482015-09-01 Pierre-Marie de Rodat <derodat@adacore.com>
2449
2450 * ada-lang.c (ada_resolve_function): Do not ask the user what
2451 match to use when in completion mode.
2452
136765ea
AB
24532015-08-31 Andrew Burgess <andrew.burgess@embecosm.com>
2454
2455 * tui/tui-data.c (tui_win_name): Make local variable const, remove
2456 cast of NULL.
2457
90b81c5f
MF
24582015-08-31 Max Filippov <jcmvbkbc@gmail.com>
2459
2460 * xtensa-tdep.h (XTENSA_GDBARCH_TDEP_INSTANTIATE): Initialize
2461 call_abi using XSHAL_ABI macro.
2462
1cd36e54
DE
24632015-08-29 Doug Evans <xdje42@gmail.com>
2464
2465 * symtab.h (struct symbol): Tweak comment.
2466
8f57eec2
PP
24672015-08-29 Patrick Palka <patrick@parcs.ath.cx>
2468
2469 * gdbtypes.c (alloc_type_arch): Allocate the type on the given
2470 gdbarch obstack instead of on the heap. Update commentary
2471 accordingly.
2472
38eebd71
JB
24732015-08-28 Joel Brobecker <brobecker@adacore.com>
2474
2475 GDB 7.10 released.
2476
d63dd61e
SM
24772015-08-28 Simon Marchi <simon.marchi@ericsson.com>
2478
2479 * NEWS: Update entry about non-8-bits addressable memory.
2480
6f059256
UW
24812015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2482
2483 Revert:
2484 2014-11-06 Doug Evans <xdje42@gmail.com>
2485 * solib.c (solib_global_lookup): Fetch arch from objfile,
2486 not target_gdbarch.
2487
70987a92 24882015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
ef36892e
UW
2489
2490 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
2491 attempt to relocate a TLS variable offset.
2492
70987a92 24932015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
791bb1f4
UW
2494
2495 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
2496 registered yet. Set inferior_ptid while calling target_read_memory.
2497
70987a92 24982015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1db33b5a
UW
2499
2500 * nat/linux-ptrace.h (GDB_ARCH_TRAP_BRKPT): Replace by ...
2501 (GDB_ARCH_IS_TRAP_BRKPT): ... this. Add __powerpc__ case.
2502 * linux-nat.c (check_stopped_by_breakpoint): Use
2503 GDB_ARCH_IS_TRAP_BRKPT instead of GDB_ARCH_TRAP_BRKPT.
2504
70987a92 25052015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
e0fd7c47
UW
2506
2507 * linux-thread-db.c (thread_db_get_thread_local_address): If the
2508 thread was not yet discovered, use thread_from_lwp instead of
2509 calling thread_db_find_new_threads_1.
2510
f5cdf498
SM
25112015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2512
2513 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
2514 statements.
2515
fd2ae5d6
SM
25162015-08-27 Simon Marchi <simon.marchi@ericsson.com>
2517
2518 * NEWS: Document support for non-8-bits addressable memory.
2519
14d88147
PA
25202015-08-27 Pedro Alves <palves@redhat.com>
2521
2522 * configure.ac: Remove AC_TYPE_SIGNAL call.
2523 * configure, config.in: Regenerate.
2524
a40805d4
PA
25252015-08-27 Pedro Alves <palves@redhat.com>
2526
2527 * cp-support.c (gdb_demangle): Use sighandler_t. Remove cast.
2528 * extension-priv.h: Include signal.h.
2529 (struct signal_handler) <handler>: Change type to sighandler_t.
2530 * extension.c (install_gdb_sigint_handler): Use sighandler_t.
2531 * inflow.c (sigint_ours, sigquit_ours): Change type to
2532 sighandler_t.
2533 (child_terminal_inferior): Remove casts.
2534 (child_terminal_ours_1, new_tty): Use sighandler_t. Remove casts.
2535 (osig): Change type to sighandler_t.
2536 * nto-procfs.c (ofunc): Change type to sighandler_t.
2537 (procfs_wait): Remove casts.
2538 * remote-m32r-sdi.c (m32r_wait, m32r_load): Use sighandler_t.
2539 * remote-sim.c (gdbsim_wait): Use sighandler_t.
2540 * utils.c (wait_to_die_with_timeout): Use sighandler_t.
2541
0750520d
PA
25422015-08-27 Pedro Alves <palves@redhat.com>
2543
2544 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add signal-h.
2545 * gnulib/aclocal.m4: Renegerate.
2546 * gnulib/config.in: Renegerate.
2547 * gnulib/configure: Renegerate.
2548 * gnulib/import/Makefile.am: Update.
2549 * gnulib/import/Makefile.in: Regenerate.
2550 * gnulib/import/m4/gnulib-cache.m4: Update.
2551 * gnulib/import/m4/gnulib-comp.m4: Update.
2552 * gnulib/import/m4/signal_h.m4: New file.
2553 * gnulib/import/signal.in.h: New file.
2554
a5c0808e
PA
25552015-08-27 Pedro Alves <palves@redhat.com>
2556
2557 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
2558 (MIN_MEMORY_PACKET_SIZE): New.
2559 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
2560 (get_memory_packet_size): Adjust. No longer limit the max packet
2561 size.
2562 (set_memory_packet_size): Adjust, and remove dead code.
2563 (remote_check_symbols): Use xmalloc and a cleanup instead of
2564 alloca.
2565 (remote_packet_size): No longer cap the packet size.
2566 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
2567
cdaec3f3
LM
25682015-08-26 Luis Machado <lgustavo@codesourcery.com>
2569
2570 * compile/compile.c (compile_to_object): Mention language in
2571 error message.
2572
e9756d52
PP
25732015-08-26 Patrick Palka <patrick@parcs.ath.cx>
2574
2575 * target.c (target_pre_inferior): Unset attach_flag.
2576
1dc7a623
SM
25772015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2578
2579 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
2580 * gdbarch.c: Re-generate.
2581
8d749320
SM
25822015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2583
6711b7f8
SM
2584 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
2585 function with the XNEW-family equivalent.
8d749320
SM
2586 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
2587 * ada-exp.y (write_ambiguous_var): Likewise.
2588 * ada-lang.c (resolve_subexp): Likewise.
2589 (user_select_syms): Likewise.
2590 (assign_aggregate): Likewise.
2591 (ada_evaluate_subexp): Likewise.
2592 (cache_symbol): Likewise.
2593 * addrmap.c (allocate_key): Likewise.
2594 (addrmap_create_mutable): Likewise.
2595 * aix-thread.c (sync_threadlists): Likewise.
2596 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
2597 (alpha_gdbarch_init): Likewise.
2598 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
2599 * arm-linux-nat.c (arm_linux_add_process): Likewise.
2600 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
2601 * arm-tdep.c (push_stack_item): Likewise.
2602 (arm_displaced_step_copy_insn): Likewise.
2603 (arm_gdbarch_init): Likewise.
2604 (_initialize_arm_tdep): Likewise.
2605 * avr-tdep.c (push_stack_item): Likewise.
2606 * ax-general.c (new_agent_expr): Likewise.
2607 * block.c (block_initialize_namespace): Likewise.
2608 * breakpoint.c (alloc_counted_command_line): Likewise.
2609 (update_dprintf_command_list): Likewise.
2610 (parse_breakpoint_sals): Likewise.
2611 (decode_static_tracepoint_spec): Likewise.
2612 (until_break_command): Likewise.
2613 (clear_command): Likewise.
2614 (update_global_location_list): Likewise.
2615 (get_breakpoint_objfile_data) Likewise.
2616 * btrace.c (ftrace_new_function): Likewise.
2617 (btrace_set_insn_history): Likewise.
2618 (btrace_set_call_history): Likewise.
2619 * buildsym.c (add_symbol_to_list): Likewise.
2620 (record_pending_block): Likewise.
2621 (start_subfile): Likewise.
2622 (start_buildsym_compunit): Likewise.
2623 (push_subfile): Likewise.
2624 (end_symtab_get_static_block): Likewise.
2625 (buildsym_init): Likewise.
2626 * cli/cli-cmds.c (source_command): Likewise.
2627 * cli/cli-decode.c (add_cmd): Likewise.
2628 * cli/cli-script.c (build_command_line): Likewise.
2629 (setup_user_args): Likewise.
2630 (realloc_body_list): Likewise.
2631 (process_next_line): Likewise.
2632 (copy_command_lines): Likewise.
2633 * cli/cli-setshow.c (do_set_command): Likewise.
2634 * coff-pe-read.c (read_pe_exported_syms): Likewise.
2635 * coffread.c (coff_locate_sections): Likewise.
2636 (coff_symtab_read): Likewise.
2637 (coff_read_struct_type): Likewise.
2638 * common/cleanups.c (make_my_cleanup2): Likewise.
2639 * common/common-exceptions.c (throw_it): Likewise.
2640 * common/filestuff.c (make_cleanup_close): Likewise.
2641 * common/format.c (parse_format_string): Likewise.
2642 * common/queue.h (DEFINE_QUEUE_P): Likewise.
2643 * compile/compile-object-load.c (munmap_list_add): Likewise.
2644 (compile_object_load): Likewise.
2645 * compile/compile-object-run.c (compile_object_run): Likewise.
2646 * compile/compile.c (append_args): Likewise.
2647 * corefile.c (specify_exec_file_hook): Likewise.
2648 * cp-support.c (make_symbol_overload_list): Likewise.
2649 * cris-tdep.c (push_stack_item): Likewise.
2650 (cris_gdbarch_init): Likewise.
2651 * ctf.c (ctf_trace_file_writer_new): Likewise.
2652 * dbxread.c (init_header_files): Likewise.
2653 (add_new_header_file): Likewise.
2654 (init_bincl_list): Likewise.
2655 (dbx_end_psymtab): Likewise.
2656 (start_psymtab): Likewise.
2657 (dbx_end_psymtab): Likewise.
2658 * dcache.c (dcache_init): Likewise.
2659 * dictionary.c (dict_create_hashed): Likewise.
2660 (dict_create_hashed_expandable): Likewise.
2661 (dict_create_linear): Likewise.
2662 (dict_create_linear_expandable): Likewise.
2663 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
2664 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
2665 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
2666 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
2667 (decode_frame_entry_1): Likewise.
2668 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
2669 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
2670 * dwarf2read.c (dwarf2_has_info): Likewise.
2671 (create_signatured_type_table_from_index): Likewise.
2672 (dwarf2_read_index): Likewise.
2673 (dw2_get_file_names_reader): Likewise.
2674 (create_all_type_units): Likewise.
2675 (read_cutu_die_from_dwo): Likewise.
2676 (init_tu_and_read_dwo_dies): Likewise.
2677 (init_cutu_and_read_dies): Likewise.
2678 (create_all_comp_units): Likewise.
2679 (queue_comp_unit): Likewise.
2680 (inherit_abstract_dies): Likewise.
2681 (read_call_site_scope): Likewise.
2682 (dwarf2_add_field): Likewise.
2683 (dwarf2_add_typedef): Likewise.
2684 (dwarf2_add_member_fn): Likewise.
2685 (attr_to_dynamic_prop): Likewise.
2686 (abbrev_table_alloc_abbrev): Likewise.
2687 (abbrev_table_read_table): Likewise.
2688 (add_include_dir): Likewise.
2689 (add_file_name): Likewise.
2690 (dwarf_decode_line_header): Likewise.
2691 (dwarf2_const_value_attr): Likewise.
2692 (dwarf_alloc_block): Likewise.
2693 (parse_macro_definition): Likewise.
2694 (set_die_type): Likewise.
2695 (write_psymtabs_to_index): Likewise.
2696 (create_cus_from_index): Likewise.
2697 (dwarf2_create_include_psymtab): Likewise.
2698 (process_psymtab_comp_unit_reader): Likewise.
2699 (build_type_psymtab_dependencies): Likewise.
2700 (read_comp_units_from_section): Likewise.
2701 (compute_compunit_symtab_includes): Likewise.
2702 (create_dwo_unit_in_dwp_v1): Likewise.
2703 (create_dwo_unit_in_dwp_v2): Likewise.
2704 (read_func_scope): Likewise.
2705 (process_structure_scope): Likewise.
2706 (mark_common_block_symbol_computed): Likewise.
2707 (load_partial_dies): Likewise.
2708 (dwarf2_symbol_mark_computed): Likewise.
2709 * elfread.c (elf_symfile_segments): Likewise.
2710 (elf_read_minimal_symbols): Likewise.
2711 * environ.c (make_environ): Likewise.
2712 * eval.c (evaluate_subexp_standard): Likewise.
2713 * event-loop.c (create_file_handler): Likewise.
2714 (create_async_signal_handler): Likewise.
2715 (create_async_event_handler): Likewise.
2716 (create_timer): Likewise.
2717 * exec.c (build_section_table): Likewise.
2718 * fbsd-nat.c (fbsd_remember_child): Likewise.
2719 * fork-child.c (fork_inferior): Likewise.
2720 * frv-tdep.c (new_variant): Likewise.
2721 * gdbarch.sh (gdbarch_alloc): Likewise.
2722 (append_name): Likewise.
2723 * gdbtypes.c (rank_function): Likewise.
2724 (copy_type_recursive): Likewise.
2725 (add_dyn_prop): Likewise.
2726 * gnu-nat.c (make_proc): Likewise.
2727 (make_inf): Likewise.
2728 (gnu_write_inferior): Likewise.
2729 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
2730 (build_std_type_info_type): Likewise.
2731 * guile/scm-param.c (compute_enum_list): Likewise.
2732 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
2733 * guile/scm-value.c (gdbscm_value_call): Likewise.
2734 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2735 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
2736 (read_unwind_info): Likewise.
2737 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2738 * infcall.c (dummy_frame_context_saver_setup): Likewise.
2739 (call_function_by_hand_dummy): Likewise.
2740 * infcmd.c (step_once): Likewise.
2741 (finish_forward): Likewise.
2742 (attach_command): Likewise.
2743 (notice_new_inferior): Likewise.
2744 * inferior.c (add_inferior_silent): Likewise.
2745 * infrun.c (add_displaced_stepping_state): Likewise.
2746 (save_infcall_control_state): Likewise.
2747 (save_inferior_ptid): Likewise.
2748 (_initialize_infrun): Likewise.
2749 * jit.c (bfd_open_from_target_memory): Likewise.
2750 (jit_gdbarch_data_init): Likewise.
2751 * language.c (add_language): Likewise.
2752 * linespec.c (decode_line_2): Likewise.
2753 * linux-nat.c (add_to_pid_list): Likewise.
2754 (add_initial_lwp): Likewise.
2755 * linux-thread-db.c (add_thread_db_info): Likewise.
2756 (record_thread): Likewise.
2757 (info_auto_load_libthread_db): Likewise.
2758 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
2759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2760 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2761 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
2762 * macrocmd.c (macro_define_command): Likewise.
2763 * macroexp.c (gather_arguments): Likewise.
2764 * macroscope.c (sal_macro_scope): Likewise.
2765 * macrotab.c (new_macro_table): Likewise.
2766 * mdebugread.c (push_parse_stack): Likewise.
2767 (parse_partial_symbols): Likewise.
2768 (parse_symbol): Likewise.
2769 (psymtab_to_symtab_1): Likewise.
2770 (new_block): Likewise.
2771 (new_psymtab): Likewise.
2772 (mdebug_build_psymtabs): Likewise.
2773 (add_pending): Likewise.
2774 (elfmdebug_build_psymtabs): Likewise.
2775 * mep-tdep.c (mep_gdbarch_init): Likewise.
2776 * mi/mi-main.c (mi_execute_command): Likewise.
2777 * mi/mi-parse.c (mi_parse_argv): Likewise.
2778 * minidebug.c (lzma_open): Likewise.
2779 * minsyms.c (terminate_minimal_symbol_table): Likewise.
2780 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
2781 * mips-tdep.c (mips_gdbarch_init): Likewise.
2782 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2783 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
2784 * mt-tdep.c (mt_registers_info): Likewise.
2785 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
2786 * nat/linux-btrace.c (linux_enable_bts): Likewise.
2787 (linux_enable_pt): Likewise.
2788 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
2789 (linux_xfer_osdata_processgroups): Likewise.
2790 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
2791 * nto-procfs.c (procfs_meminfo): Likewise.
2792 * objc-lang.c (start_msglist): Likewise.
2793 (selectors_info): Likewise.
2794 (classes_info): Likewise.
2795 (find_methods): Likewise.
2796 * objfiles.c (allocate_objfile): Likewise.
2797 (update_section_map): Likewise.
2798 * osabi.c (gdbarch_register_osabi): Likewise.
2799 (gdbarch_register_osabi_sniffer): Likewise.
2800 * parse.c (start_arglist): Likewise.
2801 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
2802 (hwdebug_insert_point): Likewise.
2803 * printcmd.c (display_command): Likewise.
2804 (ui_printf): Likewise.
2805 * procfs.c (create_procinfo): Likewise.
2806 (load_syscalls): Likewise.
2807 (proc_get_LDT_entry): Likewise.
2808 (proc_update_threads): Likewise.
2809 * prologue-value.c (make_pv_area): Likewise.
2810 (pv_area_store): Likewise.
2811 * psymtab.c (extend_psymbol_list): Likewise.
2812 (init_psymbol_list): Likewise.
2813 (allocate_psymtab): Likewise.
2814 * python/py-inferior.c (add_thread_object): Likewise.
2815 * python/py-param.c (compute_enum_values): Likewise.
2816 * python/py-value.c (valpy_call): Likewise.
2817 * python/py-varobj.c (py_varobj_iter_next): Likewise.
2818 * python/python.c (ensure_python_env): Likewise.
2819 * record-btrace.c (record_btrace_start_replaying): Likewise.
2820 * record-full.c (record_full_reg_alloc): Likewise.
2821 (record_full_mem_alloc): Likewise.
2822 (record_full_end_alloc): Likewise.
2823 (record_full_core_xfer_partial): Likewise.
2824 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
2825 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
2826 * remote-notif.c (remote_notif_state_allocate): Likewise.
2827 * remote.c (demand_private_info): Likewise.
2828 (remote_notif_stop_alloc_reply): Likewise.
2829 (remote_enable_btrace): Likewise.
2830 * reverse.c (save_bookmark_command): Likewise.
2831 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
2832 * rx-tdep.c (rx_gdbarch_init): Likewise.
2833 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2834 * ser-go32.c (dos_get_tty_state): Likewise.
2835 (dos_copy_tty_state): Likewise.
2836 * ser-mingw.c (ser_windows_open): Likewise.
2837 (ser_console_wait_handle): Likewise.
2838 (ser_console_get_tty_state): Likewise.
2839 (make_pipe_state): Likewise.
2840 (net_windows_open): Likewise.
2841 * ser-unix.c (hardwire_get_tty_state): Likewise.
2842 (hardwire_copy_tty_state): Likewise.
2843 * solib-aix.c (solib_aix_new_lm_info): Likewise.
2844 * solib-dsbt.c (dsbt_current_sos): Likewise.
2845 (dsbt_relocate_main_executable): Likewise.
2846 * solib-frv.c (frv_current_sos): Likewise.
2847 (frv_relocate_main_executable): Likewise.
2848 * solib-spu.c (spu_bfd_fopen): Likewise.
2849 * solib-svr4.c (lm_info_read): Likewise.
2850 (svr4_copy_library_list): Likewise.
2851 (svr4_default_sos): Likewise.
2852 * source.c (find_source_lines): Likewise.
2853 (line_info): Likewise.
2854 (add_substitute_path_rule): Likewise.
2855 * spu-linux-nat.c (spu_bfd_open): Likewise.
2856 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
2857 * stabsread.c (dbx_lookup_type): Likewise.
2858 (read_type): Likewise.
2859 (read_member_functions): Likewise.
2860 (read_struct_fields): Likewise.
2861 (read_baseclasses): Likewise.
2862 (read_args): Likewise.
2863 (_initialize_stabsread): Likewise.
2864 * stack.c (func_command): Likewise.
2865 * stap-probe.c (handle_stap_probe): Likewise.
2866 * symfile.c (addrs_section_sort): Likewise.
2867 (addr_info_make_relative): Likewise.
2868 (load_section_callback): Likewise.
2869 (add_symbol_file_command): Likewise.
2870 (init_filename_language_table): Likewise.
2871 * symtab.c (create_filename_seen_cache): Likewise.
2872 (sort_search_symbols_remove_dups): Likewise.
2873 (search_symbols): Likewise.
2874 * target.c (make_cleanup_restore_target_terminal): Likewise.
2875 * thread.c (new_thread): Likewise.
2876 (enable_thread_stack_temporaries): Likewise.
2877 (make_cleanup_restore_current_thread): Likewise.
2878 (thread_apply_all_command): Likewise.
2879 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
2880 * top.c (gdb_readline_wrapper): Likewise.
2881 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
2882 * tracepoint.c (trace_find_line_command): Likewise.
2883 (all_tracepoint_actions_and_cleanup): Likewise.
2884 (make_cleanup_restore_current_traceframe): Likewise.
2885 (get_uploaded_tp): Likewise.
2886 (get_uploaded_tsv): Likewise.
2887 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
2888 (tui_alloc_win_info): Likewise.
2889 (tui_alloc_content): Likewise.
2890 (tui_add_content_elements): Likewise.
2891 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
2892 (tui_set_disassem_content): Likewise.
2893 * ui-file.c (ui_file_new): Likewise.
2894 (stdio_file_new): Likewise.
2895 (tee_file_new): Likewise.
2896 * utils.c (make_cleanup_restore_integer): Likewise.
2897 (add_internal_problem_command): Likewise.
2898 * v850-tdep.c (v850_gdbarch_init): Likewise.
2899 * valops.c (find_oload_champ): Likewise.
2900 * value.c (allocate_value_lazy): Likewise.
2901 (record_latest_value): Likewise.
2902 (create_internalvar): Likewise.
2903 * varobj.c (install_variable): Likewise.
2904 (new_variable): Likewise.
2905 (new_root_variable): Likewise.
2906 (cppush): Likewise.
2907 (_initialize_varobj): Likewise.
2908 * windows-nat.c (windows_make_so): Likewise.
2909 * x86-nat.c (x86_add_process): Likewise.
2910 * xcoffread.c (arrange_linetable): Likewise.
2911 (allocate_include_entry): Likewise.
2912 (process_linenos): Likewise.
2913 (SYMBOL_DUP): Likewise.
2914 (xcoff_start_psymtab): Likewise.
2915 (xcoff_end_psymtab): Likewise.
2916 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
2917 * xtensa-tdep.c (xtensa_register_type): Likewise.
2918 * gdbarch.c: Regenerate.
2919 * gdbarch.h: Regenerate.
2920
17d8546e
DB
29212015-08-25 Don Breazeal <donb@codesourcery.com>
2922
2923 * infrun.c (follow_exec): Re-order operations for
2924 handling follow-exec-mode "new".
2925 (handle_inferior_event_1): Assign ecs->event_thread
2926 to the current thread.
2927 * remote.c (get_remote_arch_state): Add an assertion.
2928
ba49e44b
PA
29292015-08-26 Pedro Alves <palves@redhat.com>
2930
2931 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
2932
7541ab03 29332015-08-25 Pedro Alves <palves@redhat.com>
abc56d60 2934
7541ab03 2935 PR gdb/18804
abc56d60
PA
2936 * defs.h (maybe_quit): Declare.
2937 (QUIT): Now calls maybe_quit.
2938 * event-loop.c (clear_async_signal_handler)
2939 (async_signal_handler_is_marked): New functions.
2940 * event-loop.h (async_signal_handler_is_marked)
2941 (clear_async_signal_handler): New declarations.
2942 * remote.c (remote_check_pending_interrupt): New function.
2943 (interrupt_query): Use make_cleanup_restore_target_terminal. No
2944 longer check whether the target is async. If waiting for a stop
2945 reply, and a Ctrl-C as been sent to the target, offer to
2946 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
2947 Otherwise do not disconnect and throw a quit.
2948 (_initialize_remote): Install remote_check_pending_interrupt as
2949 to_check_pending_interrupt.
2950 * target.c (target_check_pending_interrupt): New function.
2951 * target.h (struct target_ops) <to_check_pending_interrupt>: New
2952 field.
2953 (target_check_pending_interrupt): New declaration.
2954 * utils.c (maybe_quit): New function.
2955 * target-delegates.c: Regenerate.
2956
dfe7f77c
YQ
29572015-08-25 Yao Qi <yao.qi@linaro.org>
2958
2959 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
2960 Rename local variable pid to tid, and get lwpid of lwp. Update
2961 debug output.
2962
63e43d3a
PMR
29632015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
2964
2965 * ada-lang.c (ada_read_var_value): Add a var_block argument
2966 and pass it to default_read_var_value.
2967 * block.c (block_static_link): New accessor.
2968 * block.h (block_static_link): Declare it.
2969 * buildsym.c (finish_block_internal): Add a static_link
2970 argument. If there is a static link, associate it to the new
2971 block.
2972 (finish_block): Add a static link argument and pass it to
2973 finish_block_internal.
2974 (end_symtab_get_static_block): Update calls to finish_block and
2975 to finish_block_internal.
2976 (end_symtab_with_blockvector): Update call to
2977 finish_block_internal.
2978 * buildsym.h: Forward-declare struct dynamic_prop.
2979 (struct context_stack): Add a static_link field.
2980 (finish_block): Add a static link argument.
2981 * c-exp.y: Remove an obsolete comment (evaluation of variables
2982 already start from the selected frame, and now they climb *up*
2983 the call stack) and propagate the block information to the
2984 produced expression.
2985 * d-exp.y: Likewise.
2986 * f-exp.y: Likewise.
2987 * go-exp.y: Likewise.
2988 * jv-exp.y: Likewise.
2989 * m2-exp.y: Likewise.
2990 * p-exp.y: Likewise.
2991 * coffread.c (coff_symtab_read): Update calls to finish_block.
2992 * dbxread.c (process_one_symbol): Likewise.
2993 * xcoffread.c (read_xcoff_symtab): Likewise.
2994 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
2995 "sym" parameter to struct block_symbol, update its uses and pass
2996 its block to calls to read_var_value.
2997 (convert_symbol_sym): Update the calls to convert_one_symbol.
2998 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
2999 call to read_var_value.
3000 * dwarf2loc.c (block_op_get_frame_base): New.
3001 (dwarf2_block_frame_base_locexpr_funcs): Implement the
3002 get_frame_base method.
3003 (dwarf2_block_frame_base_loclist_funcs): Likewise.
3004 (dwarf2locexpr_baton_eval): Add a frame argument and use it
3005 instead of the selected frame in order to evaluate the
3006 expression.
3007 (dwarf2_evaluate_property): Add a frame argument. Update call
3008 to dwarf2_locexpr_baton_eval to provide a frame in available and
3009 to handle the absence of address stack.
3010 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
3011 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
3012 declaration.
3013 (read_func_scope): Record any available static link description.
3014 Update call to finish_block.
3015 (read_lexical_block_scope): Update call to finish_block.
3016 * findvar.c (follow_static_link): New.
3017 (get_hosting_frame): New.
3018 (default_read_var_value): Add a var_block argument. Use
3019 get_hosting_frame to handle non-local references.
3020 (read_var_value): Add a var_block argument and pass it to the
3021 LA_READ_VAR_VALUE method.
3022 * gdbtypes.c (resolve_dynamic_range): Update calls to
3023 dwarf2_evaluate_property.
3024 (resolve_dynamic_type_internal): Likewise.
3025 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
3026 read_var_value, passing it the block coming from symbol lookup.
3027 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
3028 read_var_value (TODO).
3029 * infcmd.c (finish_command_continuation): Update call to
3030 read_var_value, passing it the block coming from symbol lookup.
3031 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3032 * language.h (struct language_defn): Add a var_block argument to
3033 the LA_READ_VAR_VALUE method.
3034 * objfiles.c (struct static_link_htab_entry): New.
3035 (static_link_htab_entry_hash): New.
3036 (static_link_htab_entry_eq): New.
3037 (objfile_register_static_link): New.
3038 (objfile_lookup_static_link): New.
3039 (free_objfile): Free the STATIC_LINKS hashed map if needed.
3040 * objfiles.h: Include hashtab.h.
3041 (struct objfile): Add a static_links field.
3042 (objfile_register_static_link): New.
3043 (objfile_lookup_static_link): New.
3044 * printcmd.c (print_variable_and_value): Update call to
3045 read_var_value.
3046 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
3047 * python/py-frame.c (frapy_read_var): Update call to
3048 read_var_value, passing it the block coming from symbol lookup.
3049 * python/py-framefilter.c (extract_sym): Add a sym_block
3050 parameter and set the pointed value to NULL (TODO).
3051 (enumerate_args): Update call to extract_sym.
3052 (enumerate_locals): Update calls to extract_sym and to
3053 read_var_value.
3054 * python/py-symbol.c (sympy_value): Update call to
3055 read_var_value (TODO).
3056 * stack.c (read_frame_local): Update call to read_var_value.
3057 (read_frame_arg): Likewise.
3058 (return_command): Likewise.
3059 * symtab.h (struct symbol_block_ops): Add a get_frame_base
3060 method.
3061 (struct symbol): Add a block field.
3062 (SYMBOL_BLOCK): New accessor.
3063 * valops.c (value_of_variable): Remove frame/block handling and
3064 pass the block argument to read_var_value, which does this job
3065 now.
3066 (value_struct_elt_for_reference): Update calls to
3067 read_var_value.
3068 (value_of_this): Pass the block found to read_var_value.
3069 * value.h (read_var_value): Add a var_block argument.
3070 (default_read_var_value): Likewise.
3071
ed8b7b42
YQ
30722015-08-25 Yao Qi <yao.qi@linaro.org>
3073
3074 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
3075 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
3076 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
3077
db3cb7cb
YQ
30782015-08-25 Yao Qi <yao.qi@linaro.org>
3079
3080 * Makefile.in (aarch64-liunx.o): New rule.
3081 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
3082 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
3083 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
3084 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
3085 extern.
3086 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
3087 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
3088 * nat/aarch64-linux.c: New file.
3089 * nat/aarch64-linux.h: New file.
3090
f6011a1c
YQ
30912015-08-25 Yao Qi <yao.qi@linaro.org>
3092
3093 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
3094 lwp_arch_private_info and ptid_of_lwp.
3095
5e35436e
YQ
30962015-08-25 Yao Qi <yao.qi@linaro.org>
3097
3098 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
3099 Move it to nat/aarch64-linux-hw-point.c.
3100 (debug_reg_change_callback): Likewise.
3101 (aarch64_notify_debug_reg_change): :Likewise.
3102 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
3103 (aarch64_dr_update_callback_param): New.
3104 (debug_reg_change_callback): New function.
3105 (aarch64_notify_debug_reg_change): Likewise.
3106 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
3107 Remove the declaration.
3108
4a8a7965
YQ
31092015-08-25 Yao Qi <yao.qi@linaro.org>
3110
3111 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
3112 Call current_lwp_ptid.
3113
32a271ee
YQ
31142015-08-25 Yao Qi <yao.qi@linaro.org>
3115
3116 * aarch64-linux-nat.c (debug_reg_change_callback): Use
3117 debug_printf.
3118
5e137137
YQ
31192015-08-25 Yao Qi <yao.qi@linaro.org>
3120
3121 * aarch64-linux-nat.c (debug_reg_change_callback): Call
3122 ptid_get_pid rather than ptid_get_lwp.
3123
73b8c1fd
PA
31242015-08-24 Pedro Alves <palves@redhat.com>
3125
3126 * NEWS (New commands): Mention set/show remote
3127 multiprocess-extensions-packet.
3128 * remote.c (remote_query_supported): Only tell the server to use
3129 the multiprocess extensions if the user hasn't force-disabled them
3130 with "set remote multiprocess-extensions-packet off".
3131
4a626d0a
PA
31322015-08-24 Pedro Alves <palves@redhat.com>
3133
3134 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
3135 1029a8112290f6eee9d7878a391c49db42c999bd.
3136 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
3137 Regenerate.
3138 * gnulib/import/Makefile.am: Update.
3139 * gnulib/import/Makefile.in: Update.
3140 * gnulib/import/alloca.in.h: Update.
3141 * gnulib/import/basename-lgpl.c: Update.
3142 * gnulib/import/canonicalize-lgpl.c: Update.
3143 * gnulib/import/config.charset: Update.
3144 * gnulib/import/dirent.in.h: Update.
3145 * gnulib/import/dirfd.c: Update.
3146 * gnulib/import/dirname-lgpl.c: Update.
3147 * gnulib/import/dirname.h: Update.
3148 * gnulib/import/dosname.h: Update.
3149 * gnulib/import/errno.in.h: Update.
3150 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
3151 * gnulib/import/extra/snippet/c++defs.h: Update.
3152 * gnulib/import/extra/snippet/warn-on-use.h: Update.
3153 * gnulib/import/extra/update-copyright: Update.
3154 * gnulib/import/float+.h: Update.
3155 * gnulib/import/float.c: Update.
3156 * gnulib/import/float.in.h: Update.
3157 * gnulib/import/fnmatch.c: Update.
3158 * gnulib/import/fnmatch.in.h: Update.
3159 * gnulib/import/fnmatch_loop.c: Update.
3160 * gnulib/import/fpucw.h: Update.
3161 * gnulib/import/frexp.c: Update.
3162 * gnulib/import/frexpl.c: Update.
3163 * gnulib/import/gettimeofday.c: Update.
3164 * gnulib/import/inttypes.in.h: Update.
3165 * gnulib/import/isnan.c: Update.
3166 * gnulib/import/isnand-nolibm.h: Update.
3167 * gnulib/import/isnand.c: Update.
3168 * gnulib/import/isnanl-nolibm.h: Update.
3169 * gnulib/import/isnanl.c: Update.
3170 * gnulib/import/itold.c: Update.
3171 * gnulib/import/localcharset.c: Update.
3172 * gnulib/import/localcharset.h: Update.
3173 * gnulib/import/lstat.c: Update.
3174 * gnulib/import/m4/00gnulib.m4: Update.
3175 * gnulib/import/m4/absolute-header.m4: Update.
3176 * gnulib/import/m4/alloca.m4: Update.
3177 * gnulib/import/m4/canonicalize.m4: Update.
3178 * gnulib/import/m4/codeset.m4: Update.
3179 * gnulib/import/m4/configmake.m4: Update.
3180 * gnulib/import/m4/dirent_h.m4: Update.
3181 * gnulib/import/m4/dirfd.m4: Update.
3182 * gnulib/import/m4/dirname.m4: Update.
3183 * gnulib/import/m4/double-slash-root.m4: Update.
3184 * gnulib/import/m4/eealloc.m4: Update.
3185 * gnulib/import/m4/errno_h.m4: Update.
3186 * gnulib/import/m4/exponentd.m4: Update.
3187 * gnulib/import/m4/exponentl.m4: Update.
3188 * gnulib/import/m4/extensions.m4: Update.
3189 * gnulib/import/m4/extern-inline.m4: Update.
3190 * gnulib/import/m4/fcntl-o.m4: Update.
3191 * gnulib/import/m4/float_h.m4: Update.
3192 * gnulib/import/m4/fnmatch.m4: Update.
3193 * gnulib/import/m4/fpieee.m4: Update.
3194 * gnulib/import/m4/frexp.m4: Update.
3195 * gnulib/import/m4/frexpl.m4: Update.
3196 * gnulib/import/m4/gettimeofday.m4: Update.
3197 * gnulib/import/m4/glibc21.m4: Update.
3198 * gnulib/import/m4/gnulib-cache.m4: Update.
3199 * gnulib/import/m4/gnulib-common.m4: Update.
3200 * gnulib/import/m4/gnulib-comp.m4: Update.
3201 * gnulib/import/m4/gnulib-tool.m4: Update.
3202 * gnulib/import/m4/include_next.m4: Update.
3203 * gnulib/import/m4/inttypes-pri.m4: Update.
3204 * gnulib/import/m4/inttypes.m4: Update.
3205 * gnulib/import/m4/isnand.m4: Update.
3206 * gnulib/import/m4/isnanl.m4: Update.
3207 * gnulib/import/m4/largefile.m4: Update.
3208 * gnulib/import/m4/localcharset.m4: Update.
3209 * gnulib/import/m4/locale-fr.m4: Update.
3210 * gnulib/import/m4/locale-ja.m4: Update.
3211 * gnulib/import/m4/locale-zh.m4: Update.
3212 * gnulib/import/m4/longlong.m4: Update.
3213 * gnulib/import/m4/lstat.m4: Update.
3214 * gnulib/import/m4/malloc.m4: Update.
3215 * gnulib/import/m4/malloca.m4: Update.
3216 * gnulib/import/m4/math_h.m4: Update.
3217 * gnulib/import/m4/mbrtowc.m4: Update.
3218 * gnulib/import/m4/mbsinit.m4: Update.
3219 * gnulib/import/m4/mbsrtowcs.m4: Update.
3220 * gnulib/import/m4/mbstate_t.m4: Update.
3221 * gnulib/import/m4/memchr.m4: Update.
3222 * gnulib/import/m4/memmem.m4: Update.
3223 * gnulib/import/m4/mmap-anon.m4: Update.
3224 * gnulib/import/m4/multiarch.m4: Update.
3225 * gnulib/import/m4/nocrash.m4: Update.
3226 * gnulib/import/m4/off_t.m4: Update.
3227 * gnulib/import/m4/pathmax.m4: Update.
3228 * gnulib/import/m4/readlink.m4: Update.
3229 * gnulib/import/m4/rename.m4: Update.
3230 * gnulib/import/m4/rmdir.m4: Update.
3231 * gnulib/import/m4/ssize_t.m4: Update.
3232 * gnulib/import/m4/stat.m4: Update.
3233 * gnulib/import/m4/stdbool.m4: Update.
3234 * gnulib/import/m4/stddef_h.m4: Update.
3235 * gnulib/import/m4/stdint.m4: Update.
3236 * gnulib/import/m4/stdio_h.m4: Update.
3237 * gnulib/import/m4/stdlib_h.m4: Update.
3238 * gnulib/import/m4/string_h.m4: Update.
3239 * gnulib/import/m4/strstr.m4: Update.
3240 * gnulib/import/m4/strtok_r.m4: Update.
3241 * gnulib/import/m4/sys_socket_h.m4: Update.
3242 * gnulib/import/m4/sys_stat_h.m4: Update.
3243 * gnulib/import/m4/sys_time_h.m4: Update.
3244 * gnulib/import/m4/sys_types_h.m4: Update.
3245 * gnulib/import/m4/time_h.m4: Update.
3246 * gnulib/import/m4/unistd_h.m4: Update.
3247 * gnulib/import/m4/warn-on-use.m4: Update.
3248 * gnulib/import/m4/wchar_h.m4: Update.
3249 * gnulib/import/m4/wchar_t.m4: Update.
3250 * gnulib/import/m4/wctype_h.m4: Update.
3251 * gnulib/import/m4/wint_t.m4: Update.
3252 * gnulib/import/malloc.c: Update.
3253 * gnulib/import/malloca.c: Update.
3254 * gnulib/import/malloca.h: Update.
3255 * gnulib/import/math.in.h: Update.
3256 * gnulib/import/mbrtowc.c: Update.
3257 * gnulib/import/mbsinit.c: Update.
3258 * gnulib/import/mbsrtowcs-impl.h: Update.
3259 * gnulib/import/mbsrtowcs-state.c: Update.
3260 * gnulib/import/mbsrtowcs.c: Update.
3261 * gnulib/import/memchr.c: Update.
3262 * gnulib/import/memmem.c: Update.
3263 * gnulib/import/pathmax.h: Update.
3264 * gnulib/import/readlink.c: Update.
3265 * gnulib/import/ref-add.sin: Update.
3266 * gnulib/import/ref-del.sin: Update.
3267 * gnulib/import/rename.c: Update.
3268 * gnulib/import/rmdir.c: Update.
3269 * gnulib/import/same-inode.h: Update.
3270 * gnulib/import/stat.c: Update.
3271 * gnulib/import/stdbool.in.h: Update.
3272 * gnulib/import/stddef.in.h: Update.
3273 * gnulib/import/stdint.in.h: Update.
3274 * gnulib/import/stdio.c: Update.
3275 * gnulib/import/stdio.in.h: Update.
3276 * gnulib/import/stdlib.in.h: Update.
3277 * gnulib/import/str-two-way.h: Update.
3278 * gnulib/import/streq.h: Update.
3279 * gnulib/import/string.in.h: Update.
3280 * gnulib/import/stripslash.c: Update.
3281 * gnulib/import/strnlen1.c: Update.
3282 * gnulib/import/strnlen1.h: Update.
3283 * gnulib/import/strstr.c: Update.
3284 * gnulib/import/strtok_r.c: Update.
3285 * gnulib/import/sys_stat.in.h: Update.
3286 * gnulib/import/sys_time.in.h: Update.
3287 * gnulib/import/sys_types.in.h: Update.
3288 * gnulib/import/time.in.h: Update.
3289 * gnulib/import/unistd.in.h: Update.
3290 * gnulib/import/verify.h: Update.
3291 * gnulib/import/wchar.in.h: Update.
3292 * gnulib/import/wctype.in.h: Update.
3293 * gnulib/import/gettimeofday.c: New file.
3294 * gnulib/import/m4/absolute-header.m4: New file.
3295 * gnulib/import/m4/gettimeofday.m4: New file.
3296 * gnulib/import/m4/sys_socket_h.m4: New file.
3297 * gnulib/import/m4/sys_time_h.m4: New file.
3298 * gnulib/import/stdio.c: Delete file.
3299 * gnulib/import/sys_time.in.h: New file.
3300
438e1e42
PA
33012015-08-24 Pedro Alves <palves@redhat.com>
3302
3303 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
3304 * common/gdb_sys_time.h: New file.
3305 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
3306 * gdb_select.h: Likewise.
3307 * gdb_usleep.c: Likewise.
3308 * maint.c: Likewise.
3309 * mi/mi-main.c: Likewise.
3310 * mi/mi-parse.h: Likewise.
3311 * remote-fileio.c: Likewise.
3312 * remote-m32r-sdi.c: Likewise.
3313 * remote.c: Likewise.
3314 * ser-base.c: Likewise.
3315 * ser-pipe.c: Likewise.
3316 * ser-tcp.c: Likewise.
3317 * ser-unix.c: Likewise.
3318 * symfile.c: Likewise.
3319 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
3320 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
3321 * utils.c: Likewise.
3322
40e0b271
PA
33232015-08-24 Pedro Alves <palves@redhat.com>
3324
3325 * NEWS: Mention removed support for the various ROM monitors.
3326 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
3327 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
3328 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
3329 gdb_target_obs.
3330 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
3331 gdb_target_obs.
3332 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
3333 dsrec.o from gdb_target_obs.
3334 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
3335 from gdb_target_obs.
3336 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
3337 gdb_target_obs.
3338 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
3339 dink32-rom.o from gdb_target_obs.
3340 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
3341 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
3342 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
3343 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
3344
f8904751
PA
33452015-08-21 Pedro Alves <palves@redhat.com>
3346
3347 * frame.c (null_frame_id): Explicitly zero-initialize.
3348
049412e3
TT
33492015-08-21 Tom Tromey <tromey@redhat.com>
3350
3351 * dwarf2read.c (struct dwarf2_section_info): Rename field
3352 'asection' to 'section'.
3353 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
3354 (dwarf2_locate_sections, dwarf2_locate_sections)
3355 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
3356 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
3357 (dwarf2_locate_v2_dwp_sections): Adjust.
3358
948578a9
PP
33592015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3360
3361 * top.h (gdb_in_secondary_prompt_p): Declare.
3362 * top.c (gdb_secondary_prompt_depth): Define.
3363 (gdb_in_secondary_prompt_p): Define.
3364 (gdb_readline_wrapper_cleanup): Decrement
3365 gdb_secondary_prompt_depth.
3366 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
3367 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
3368 are in a secondary prompt.
3369
7a8bcb88
PP
33702015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3371
3372 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
3373 emit the newline.
3374
2d7711a3
GB
33752015-08-21 Gary Benson <gbenson@redhat.com>
3376
3377 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
3378
4313b8c0
GB
33792015-08-21 Gary Benson <gbenson@redhat.com>
3380
3381 * target.h (struct target_ops) <to_fileio_open>: New argument
3382 warn_if_slow. Update comment. All implementations updated.
3383 (target_fileio_open_warn_if_slow): New declaration.
3384 * target.c (target_fileio_open): Renamed as...
3385 (target_fileio_open_1): ...this. New argument warn_if_slow.
3386 Pass warn_if_slow to implementation. Update debug printing.
3387 (target_fileio_open): New function.
3388 (target_fileio_open_warn_if_slow): Likewise.
3389 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
3390 target_fileio_open_warn_if_slow.
3391
f36b8719
GB
33922015-08-21 Gary Benson <gbenson@redhat.com>
3393
3394 * nat/linux-namespaces.c (linux_mntns_access_fs):
3395 Do not overwrite old_chain.
3396
40045d91
MF
33972015-08-20 Max Filippov <jcmvbkbc@gmail.com>
3398
3399 * arch/xtensa.h: New file.
3400 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
3401 (ps_get_thread_area): New function.
3402 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
3403 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
3404 * xtensa-tdep.c (osabi.h): New #include.
3405 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
3406 xtensa-specific hooks.
3407 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
3408 member and move the structure to arch/xtensa.h.
3409
80152258
PA
34102015-08-21 Pedro Alves <palves@redhat.com>
3411
3412 * remote.c (struct readahead_cache): New.
3413 (struct remote_state) <readahead_cache>: New field.
3414 (remote_open_1): Invalidate the cache.
3415 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
3416 functions.
3417 (remote_hostio_pwrite): Invalidate the readahead cache.
3418 (remote_hostio_pread): Rename to ...
3419 (remote_hostio_pread_vFile): ... this.
3420 (remote_hostio_pread_from_cache): New function.
3421 (remote_hostio_pread): Reimplement.
3422 (remote_hostio_close): Invalidate the readahead cache.
3423
88fc5eb7
MC
34242015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
3425
3426 PR build/18843
3427 * procfs.c: Include "filestuff.h".
3428
6f1cb6ea
PP
34292015-08-21 Patrick Palka <patrick@parcs.ath.cx>
3430
3431 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
3432 curch.
3433 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
3434 cur_line or curch, instead call wmove().
3435 (init_win_info) [CMD_WIN]: Likewise.
3436 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
3437 instead call getcury().
3438 (tui_redisplay_readline): Don't set cur_line or curch.
3439 (tui_mld_erase_entire_line): Don't read cur_line, instead call
3440 getcury().
3441 (tui_cont_sig): Remove call to wmove.
3442 (tui_getc): Don't read cur_line or curch, instead call getcury()
3443 or getyx(). Don't set curch.
3444 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
3445 set cur_line or curch. Always move cursor to (0,0).
3446
221e1a37
PA
34472015-08-20 Pedro Alves <palves@redhat.com>
3448
3449 * infrun.c (print_target_wait_results): Make extern.
3450 * infrun.h (print_target_wait_results): Declare.
3451 * remote.c (set_stop_requested_callback): Delete.
3452 (process_initial_stop_replies): New function.
3453 (remote_start_remote): Use it.
3454 (stop_reply_queue_length): New function.
3455
40e3ad0e
PA
34562015-08-20 Pedro Alves <palves@redhat.com>
3457
3458 * dwarf2read.c (process_full_comp_unit): To tell whether
3459 start_subfile managed to deduce a language, test for
3460 language_unknown instead of language_c.
3461
af39b327
PMR
34622015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
3463
3464 * ada-lex.l: Reset the start condition to INITIAL in the rule that
3465 matches attributes.
3466
7d45c7c3
KB
34672015-08-19 Kevin Buettner <kevinb@redhat.com>
3468
3469 * dwarf2read.c (dwarf2_string_attr): New function.
3470 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
3471 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
3472 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
3473 (anonymous_struct_prefix, prepare_one_comp_unit): Use
3474 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
3475
4d6cceb4
DE
34762015-08-18 Doug Evans <dje@google.com>
3477 Adrian Sendroiu <adrian.sendroiu@freescale.com>
3478
3479 PR mi/18833
3480 * cli/cli-logging.c (pop_output_files): Don't restore redirection
3481 if MI-like.
3482 * mi/mi-out.c: #include "vec.h".
3483 (ui_filep): New type.
3484 (DEV_VEC_P (ui_filep)): New type.
3485 (struct ui_out_data) <buffer, original_buffer>: Delete.
3486 (struct ui_out_data) <streams>: New member.
3487 (mi_ui_out_impl): Add data_destroy field.
3488 (mi_field_string, mi_field_fmt): Update.
3489 (mi_flush, mi_redirect, field_separator): Update.
3490 (mi_open, mi_close): Update.
3491 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
3492 (mi_out_data_ctor, mi_out_data_dtor): New functions.
3493 (mi_out_new): Call mi_out_data_ctor.
3494
26d56a93
SL
34952015-08-18 Sandra Loosemore <sandra@codesourcery.com>
3496
3497 * remote.c (strprefix): New.
3498 (remote_parse_stop_reply): Use strprefix instead of strncmp
3499 to ensure exact match of keyword.
3500
566f5e3b
AB
35012015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * gdb_bfd.c (debug_bfd_cache): New variable.
3504 (show_bfd_cache_debug): New function.
3505 (gdb_bfd_open): Add debug logging.
3506 (gdb_bfd_ref): Likewise.
3507 (gdb_bfd_unref): Likewise.
3508 (_initialize_gdb_bfd): Add new set/show command.
3509 * NEWS: Mention new command.
3510
18989b3c
AB
35112015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3512
3513 * gdb_bfd.c (bfd_sharing): New variable.
3514 (show_bfd_sharing): New function.
3515 (gdb_bfd_open): Check bfd_sharing variable.
3516 (_initialize_gdb_bfd): Add new set/show command.
3517 * NEWS: Mention new command.
3518
c04fe68f
AB
35192015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
3520
3521 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
3522 field.
3523 (struct gdb_bfd_cache_search): Likewise.
3524 (eq_bfd): Compare the size, inode, and device id fields.
3525 (gdb_bfd_open): Initialise the size, inode, and device id fields.
3526 (gdb_bfd_ref): Likewise.
3527 (gdb_bfd_unref): Likewise.
3528
b2a33439
PA
35292015-08-18 Pedro Alves <palves@redhat.com>
3530
3531 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
3532 target implements to_always_non_stop_p, call it.
3533 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
3534 (x86_linux_create_target): Install it as to_always_non_stop_p
3535 method.
3536
71b57e37
DE
35372015-08-17 Doug Evans <dje@google.com>
3538
3539 * ui-out.c (default_ui_out_impl): Add comment.
3540
7f3706eb
IB
35412015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
3542
3543 * d-exp.y (type_aggregate_p): New function.
3544 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
3545 (classify_inner_name): Likewise.
3546 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
3547
1762568f
DE
35482015-08-15 Doug Evans <xdje42@gmail.com>
3549
3550 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
3551 updated.
3552 (add_psymbol_to_list): Ditto.
3553
8763cede
DE
35542015-08-15 Doug Evans <xdje42@gmail.com>
3555
3556 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
3557 updated. Call end_psymtab_common.
3558 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
3559 end_psymtab_common.
3560 (build_type_psymtabs_reader): Ditto.
3561 * psympriv.h (sort_pst_symbols): Delete.
3562 (end_psymtab_common): Declare.
3563 * psymtab.c (sort_pst_symbols): Make static.
3564 (end_psymtab_common): New function.
3565 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
3566
51cdc993
DE
35672015-08-15 Doug Evans <xdje42@gmail.com>
3568
3569 * defs.h (LANGUAGE_BITS): Define.
3570 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
3571 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
3572 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
3573 (minimal_symbol_type): Add nr_minsym_types.
3574 (MINSYM_TYPE_BITS): Define.
3575 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
3576 (domain_enum_tag): Add NR_DOMAINS.
3577 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
3578 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
3579
95cf5869
DE
35802015-08-15 Doug Evans <xdje42@gmail.com>
3581
3582 * objfiles.h: Whitespace cleanup.
3583 * psympriv.h: Whitespace cleanup.
3584 * psymtab.c: Whitespace/coding convention cleanup.
3585
e3ae3c43
PP
35862015-08-15 Patrick Palka <patrick@parcs.ath.cx>
3587
3588 * inferior.c (detach_inferior_command): Don't call
3589 any_thread_of_process when pid is 0.
3590 (kill_inferior_command): Likewise.
3591
6ff0ba5f
DE
35922015-08-14 Doug Evans <xdje42@gmail.com>
3593
3594 PR gdb/11833
3595 * NEWS: Document new /s modifier for the disassemble command.
3596 * cli/cli-cmds.c (disassemble_command): Add support for /s.
3597 (_initialize_cli_cmds): Update online docs of disassemble command.
3598 * disasm.c: #include "source.h".
3599 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
3600 All uses updated.
3601 (dis_line_entry): New struct.
3602 (hash_dis_line_entry, eq_dis_line_entry): New functions.
3603 (allocate_dis_line_table): New functions.
3604 (maybe_add_dis_line_entry, line_has_code_p): New functions.
3605 (dump_insns): New arg end_pc. All callers updated.
3606 (do_mixed_source_and_assembly_deprecated): Renamed from
3607 do_mixed_source_and_assembly. All callers updated.
3608 (do_mixed_source_and_assembly): New function.
3609 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
3610 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
3611 DISASSEMBLY_SOURCE. All uses updated.
3612 (DISASSEMBLY_SOURCE): New macro.
3613 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
3614
b56ccc20
KS
36152015-08-14 Keith Seitz <keiths@redhat.com>
3616
3617 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
3618 `typename' to `type_name' to avoid C++ reserved word.
3619
ebdad8fc
KS
36202015-08-14 Keith Seitz <keiths@redhat.com>
3621
3622 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
3623 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
3624 silence ARI errors.
3625
c0fe2ae7
IB
36262015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
3627
3628 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
3629 xstrprintf instead of malloc and sprintf.
3630 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
3631 (lex_one_token): Likewise.
3632
a738da3a
MF
36332015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3634
3635 * solib-svr4.c (read_program_header): Add base_addr argument to
3636 report the runtime address of the segment.
3637 (find_program_interpreter): Update read_program_header call to pass
3638 a NULL pointer for the new argument.
3639 (scan_dyntag): Add ptr_addr argument to report the runtime address
3640 of the tag payload.
3641 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
3642 read_program_header to get the base address of the dynamic segment.
3643 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
3644 read_program_header.
3645 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
3646
f8edc4ff
MF
36472015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
3648
3649 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
3650
444c1ed8
IB
36512015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3652
3653 * d-exp.y (%union): Add voidval.
3654 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
3655 name in the lexing stage.
3656 (PostfixExpression): Move symbol completion handling in grammar here
3657 from PrimaryExpression.
3658 (PrimaryExpression): Move routines to handle resolving identifier
3659 tokens in the grammar here from push_expression_name.
3660 (IdentifierExp): Remove the handling of alternating '.' and identifier
3661 tokens.
3662 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
3663 (BasicType): Remove C-style typename rules.
3664 (d_type_from_name, d_module_from_name, push_variable)
3665 (push_fieldnames, push_type_name, push_module_name)
3666 (push_expression_name): Remove.
3667 (lex_one_token): Rename from yylex. Replace pstate with par_state.
3668 (token_and_value): New type.
3669 (token_fifo, popping, name_obstack): New globals.
3670 (classify_name): New function.
3671 (classify_inner_name): Likewise.
3672 (yylex): Likewise.
3673 (d_parse): Initialize token_fifo, popping and name_obstack.
3674
bc7c9fab
IB
36752015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
3676
3677 * Makefile.in (SFILES): Add d-namespace.c.
3678 (COMMON_OBS): Add d-namespace.o.
3679 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
3680 la_lookup_symbol_nonlocal callback function pointer.
3681 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
3682 (d_lookup_nested_symbol): New declaration.
3683 * d-namespace.c: New file.
3684
3207396b
PA
36852015-08-13 Pedro Alves <palves@redhat.com>
3686
3687 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
3688 cleanup after the decref cleanup, not before.
3689
5d8c3ed3
PMR
36902015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
3691
3692 * ada-lang.c: Include namespace.h
3693 (aux_add_nonlocal_symbols): Fix a function name in comment.
3694 (ada_add_block_renamings): New.
3695 (add_nonlocal_symbols): Add global renamings handling.
3696 (ada_lookup_symbol_list_worker): Move the symbol lookup part
3697 to...
3698 (ada_add_all_symbols): ... this new function.
3699 (ada_add_block_symbols): Try to match the input name against the
3700 "using directives list", perform a recursive symbol lookup on
3701 the matched declarations.
3702 * block.h (struct block): Move the_namespace to top-level as
3703 namespace_info. Remove the language_specific field.
3704 (BLOCK_NAMESPACE): Update access to the namespace_info field.
3705 * buildsym.h (using_directives): Rename into...
3706 (local_using_directives): ... this.
3707 (global_using_directives): New.
3708 (struct context_stack): Rename the using_directives field into
3709 local_using_directives.
3710 * buildsym.c (finish_block_internal): Deal with the proper
3711 using directives repository (local or global).
3712 (prepare_for_building): Reset local_using_directives. Assert
3713 that there is no pending global using directive.
3714 (reset_symtab_globals): Reset global_using_directives and
3715 local_using_directives.
3716 (end_symtab_get_static_block): Don't ignore symtabs that have
3717 only using directives.
3718 (push_context): Update references to local_using_directives.
3719 (buildsym_init): Do not reset using_directives.
3720 * cp-support.c: Include namespace.h.
3721 * cp-support.h (struct using_direct): Move to namespace.h.
3722 (cp_add_using_directives): Move to namespace.h.
3723 * cp-namespace.c: Include namespace.h
3724 (cp_add_using_directive): Move to namespace.c, rename it to
3725 add_using_directive, add a "using_directives" argument and use
3726 it as the pending using directives repository. All callers
3727 updated.
3728 * dwarf2read.c (using_directives): New.
3729 (read_import_statement): Call using_directives.
3730 (read_func_scope): Update references to local_using_directives.
3731 (read_lexical_block_scope): Likewise.
3732 (read_namespace): Update the heading comment, call
3733 using_directives.
3734 * namespace.h: New file.
3735 * namespace.c: New file.
3736 * Makefile.in (SFILES): Add namespace.c.
3737 (COMMON_OBS): Add namespace.o
3738
4dafcdeb
JB
37392015-08-12 Joel Brobecker <brobecker@adacore.com>
3740
3741 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
3742 compute RETADDR.
3743
67994074
KS
37442015-08-12 Keith Seitz <keiths@redhat.com>
3745
3746 * break-catch-throw.c (re_set_exception_catchpoint) Rename
3747 reserved C++ keyword "explicit" to "explicit_loc".
3748 * breakpoint.c (create_overlay_event_breakpoint)
3749 (create_longjmp_master_breakpoint)
3750 (create_std_terminate_master_breakpoint)
3751 (create_exception_master_breakpoint, update_static_tracepoint):
3752 Rename reserved C++ keyword "explicit" to "explicit_loc".
3753 * completer.c (collect_explicit_location_matches)
3754 (explicit_location_completer): Rename reserved C++ keyword
3755 "explicit" to "explicit_loc".
3756 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
3757 (canonicalize_linespec, create_sals_line_offset)
3758 (convert_linespec_to_sals, convert_explicit_location_to_sals)
3759 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
3760 "explicit" to "explicit_loc".
3761 * location.c (struct event_location) <explicit>: Rename to
3762 "explicit_loc".
3763 (initialize_explicit_location, new_explicit_location)
3764 (explicit_location_to_string_internal, explicit_location_to_linespec):
3765 Rename reserved C++ keyword "explicit" to "explicit_loc".
3766 * location.h (explicit_location_to_string)
3767 (explicit_location_to_linespec, initialize_explicit_location)
3768 (new_explicit_location): Rename reserved C++ keyword "explicit"
3769 to "explicit_loc".
3770 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
3771 keyword "explicit" to "explicit_loc".
3772
59ecaff3
KS
37732015-08-12 Keith Seitz <keiths@redhat.com>
3774
3775 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
3776 and only call decode_line_1 when it is non-NULL.
3777
244558af
LM
37782015-08-12 Luis Machado <lgustavo@codesourcery.com>
3779
3780 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
3781 location address is not meaningful.
3782 (breakpoint_address_is_meaningful): Update comment.
3783
629500fa
KS
37842015-08-11 Keith Seitz <keiths@redhat.com>
3785
3786 * NEWS: Mention explicit locations.
3787 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
3788 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
3789 (_initialize_breakpoint): Update documentation for
3790 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
3791
eb8c4e2e
KS
37922015-08-11 Keith Seitz <keiths@redhat.com>
3793
3794 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
3795 explicit locations, options "--source", "--function",
3796 "--label", and "--line".
3797
87f0e720
KS
37982015-08-11 Keith Seitz <keiths@redhat.com>
3799
3800 * completer.c: Include location.h.
3801 (enum match_type): New enum.
3802 (location_completer): Rename to ...
3803 (linespec_completer): ... this.
3804 (collect_explicit_location_matches, backup_text_ptr)
3805 (explicit_location_completer): New functions.
3806 (location_completer): "New" function; handle linespec
3807 and explicit location completions.
3808 (complete_line_internal): Remove all location completer-specific
3809 handling.
3810 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
3811 (find_toplevel_char): Export.
3812 (linespec_parse_line_offset): Export.
3813 Issue error if STRING is not numerical.
3814 (gdb_get_linespec_parser_quote_characters): New function.
3815 * linespec.h (linespec_parse_line_offset): Declare.
3816 (get_gdb_linespec_parser_quote_characters): Declare.
3817 (is_ada_operator): Declare.
3818 (find_toplevel_char): Declare.
3819 (linespec_lexer_lex_keyword): Declare.
3820 * location.c (explicit_to_event_location): New function.
3821 (explicit_location_lex_one): New function.
3822 (string_to_explicit_location): New function.
3823 (string_to_event_location): Handle explicit locations.
3824 * location.h (explicit_to_event_location): Declare.
3825 (string_to_explicit_location): Declare.
3826
00e52e53
KS
38272015-08-11 Keith Seitz <keiths@redhat.com>
3828
3829 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3830 linespec into explicit location.
3831 * breakpoint.c (create_overlay_breakpoint)
3832 (create_longjmp_master_breakpoint)
3833 (create_std_terminate_master_breakpoint)
3834 (create_exception_master_breakpoint): Convert linespec into explicit
3835 location.
3836 (update_static_tracepoint): Convert linespec into explicit location.
3837 * linespec.c (enum offset_relative_sign, struct line_offset): Move
3838 location.h.
3839 (struct linespec) <expression, expr_pc, source_filename>
3840 <function_name, label_name, line_offset>: Replace with ...
3841 <explicit>: ... this.
3842 <is_linespec>: New member.
3843 (PARSER_EXPLICIT): New accessor macro.
3844 (undefined_label_error): New function.
3845 (source_file_not_found_error): New function.
3846 (linespec_parse_basic): The parser result is now an explicit location.
3847 Use PARSER_EXPLICIT to access it.
3848 Use undefined_label_error.
3849 (canonicalize_linespec): Convert canonical linespec into explicit
3850 location.
3851 Move string representation of location to explicit_location_to_linespec
3852 and use it and explicit_location_to_string to save string
3853 representations of the canonical location.
3854 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
3855 explicit location. Update all references.
3856 (convert_explicit_location_to_sals): New function.
3857 (parse_linespec): Use PARSER_EXPLICIT to access the parser
3858 result's explicit location.
3859 (linespec_state_constructor): Initialize is_linespec.
3860 Use PARSER_EXPLICIT.
3861 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
3862 result.
3863 (event_location_to_sals): For linespec locations, set is_linespec.
3864 Handle explicit locations.
3865 (decode_objc): 'ls' contains an explicit location now. Update all
3866 references.
3867 (symtabs_from_filename): Use source_file_not_found_error.
3868 * location.c (struct event_location.u) <explicit>: New member.
3869 (initialize_explicit_location): New function.
3870 (initialize_event_location): Initialize explicit locations.
3871 (new_explicit_location, get_explicit_location)
3872 (get_explicit_location_const): New functions.
3873 (explicit_to_string_internal): New function; most of contents moved
3874 from canonicalize_linespec.
3875 (explicit_location_to_string): New function.
3876 (explicit_location_to_linespec): New function.
3877 (copy_event_location, delete_event_location)
3878 (event_location_to_string_const, event_location_empty_p): Handle
3879 explicit locations.
3880 * location.h (enum offset_relative_sign, struct line_offset): Move
3881 here from linespec.h.
3882 (enum event_location_type): Add EXPLICIT_LOCATION.
3883 (struct explicit_location): New structure.
3884 (explicit_location_to_string): Declare.
3885 (explicit_location_to_linespec): Declare.
3886 (new_explicit_location, get_explicit_locationp
3887 (get_explicit_location_const, initialize_explicit_location): Declare.
3888
5b56227b
KS
38892015-08-11 Keith Seitz <keiths@redhat.com>
3890
3891 * break-catch-throw.c (re_set_exception_catchpoint): Convert
3892 linespec for stap probe to probe location.
3893 * breakpoint.c (create_longjmp_master_breakpoint)
3894 (create_exception_master_breakpoint): Likewise.
3895 (break_command_1): Remove local variable `arg_cp'.
3896 Check location type to set appropriate breakpoint ops methods.
3897 (trace_command): Likewise.
3898 * linespec.c (event_location_to_sals): Assert on probe locations.
3899 * location.c (EL_PROBE): Add macro definition.
3900 (new_probe_location, get_probe_location): New functions.
3901 (copy_event_location, delete_event_location, event_location_to_string)
3902 (string_to_event_location, event_location_empty_p): Handle probe
3903 locations.
3904 * location.h (enum event_location_type): Add PROBE_LOCATION.
3905 (new_probe_location, get_probe_location): Declare.
3906 * probe.c (parse_probes): Assert that LOCATION is a probe location.
3907 Convert linespec into probe location.
3908
a06efdd6
KS
39092015-08-11 Keith Seitz <keiths@redhat.com>
3910
3911 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
3912 Convert linespec to address location.
3913 * linespec.c (canonicalize_linespec): Do not handle address
3914 locations here.
3915 (convert_address_location_to_sals): New function; contents moved
3916 from ...
3917 (convert_linespc_to_sals): ... here.
3918 (parse_linespec): Remove address locations from linespec grammar.
3919 Remove handling of address locations.
3920 (linespec_lex_to_end): Remove handling of address linespecs.
3921 (event_location_to_sals): Handle ADDRESS_LOCATION.
3922 (linespec_expression_to_pc): Export.
3923 * linespec.h (linespec_expression_to_pc): Add declaration.
3924 * location.c (struct event_location.u) <address>: New member.
3925 (new_address_location, get_address_location): New functions.
3926 (copy_event_location, delete_event_location, event_location_to_string)
3927 (string_to_event_location, event_location_empty_p): Handle address
3928 locations.
3929 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
3930 (new_address_location, get_address_location): Declare.
3931 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
3932 to address location.
3933 * spu-tdep.c (spu_catch_start): Likewise.
3934
f00aae0f
KS
39352015-08-11 Keith Seitz <keiths@redhat.com>
3936
3937 * ax-gdb.c: Include location.h.
3938 (agent_command_1) Use linespec location instead of address
3939 string.
3940 * break-catch-throw.c: Include location.h.
3941 (re_set_exception_catchpoint): Use linespec locations instead
3942 of address strings.
3943 * breakpoint.c: Include location.h.
3944 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
3945 (create_std_terminate_master_breakpoint)
3946 (create_exception_master_breakpoint, update_breakpoints_after_exec):
3947 Use linespec location instead of address string.
3948 (print_breakpoint_location): Use locations and
3949 event_location_to_string.
3950 Print extra_string for pending locations for non-MI streams.
3951 (print_one_breakpoint_location): Use locations and
3952 event_location_to_string.
3953 (init_raw_breakpoint_without_location): Initialize b->location.
3954 (create_thread_event_breakpoint): Use linespec location instead of
3955 address string.
3956 (init_breakpoint_sal): Likewise.
3957 Only save extra_string if it is non-NULL and not the empty string.
3958 Use event_location_to_string instead of `addr_string'.
3959 Constify `p' and `endp'.
3960 Use skip_spaces_const/skip_space_const instead of non-const versions.
3961 Copy the location into the breakpoint.
3962 If LOCATION is NULL, save the breakpoint address as a linespec location
3963 instead of an address string.
3964 (create_breakpoint_sal): Change `addr_string' parameter to a struct
3965 event_location. All uses updated.
3966 (create_breakpoints_sal): Likewise for local variable `addr_string'.
3967 (parse_breakpoint_sals): Use locations instead of address strings.
3968 Remove check for empty linespec with conditional.
3969 Refactor.
3970 (decode_static_tracepoint_spec): Make argument const and update
3971 function.
3972 (create_breakpoint): Change `arg' to a struct event_location and
3973 rename.
3974 Remove `copy_arg' and `addr_start'.
3975 If EXTRA_STRING is empty, set it to NULL.
3976 Don't populate `canonical' for pending breakpoints.
3977 Pass `extra_string' to find_condition_and_thread.
3978 Clear `extra_string' if `rest' was NULL.
3979 Do not error with "garbage after location" if setting a dprintf
3980 breakpoint.
3981 Copy the location into the breakpoint instead of an address string.
3982 (break_command_1): Use string_to_event_location and pass this to
3983 create_breakpoint instead of an address string.
3984 Check against `arg_cp' for a probe linespec.
3985 (dprintf_command): Use string_to_event_location and pass this to
3986 create_breakpoint instead of an address string.
3987 Throw an exception if no format string was specified.
3988 (print_recreate_ranged_breakpoint): Use event_location_to_string
3989 instead of address strings.
3990 (break_range_command, until_break_command)
3991 (init_ada_exception_breakpoint): Use locations instead
3992 of address strings.
3993 (say_where): Print out extra_string for pending locations.
3994 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
3995 the breakpoint.
3996 (base_breakpoint_create_sals_from_location): Use struct event_location
3997 instead of address string.
3998 Remove `addr_start' and `copy_arg' parameters.
3999 (base_breakpoint_decode_location): Use struct event_location instead of
4000 address string.
4001 (bkpt_re_set): Use locations instead of address strings.
4002 Use event_location_empty_p to check for unset location.
4003 (bkpt_print_recreate): Use event_location_to_string instead of
4004 an address string.
4005 Print out extra_string for pending locations.
4006 (bkpt_create_sals_from_location, bkpt_decode_location)
4007 (bkpt_probe_create_sals_from_location): Use struct event_location
4008 instead of address string.
4009 (bkpt_probe_decode_location): Use struct event_location instead of
4010 address string.
4011 (tracepoint_print_recreate): Use event_location_to_string to
4012 recreate the tracepoint.
4013 (tracepoint_create_sals_from_location, tracepoint_decode_location)
4014 (tracepoint_probe_create_sals_from_location)
4015 (tracepoint_probe_decode_location): Use struct event_location
4016 instead of address string.
4017 (dprintf_print_recreate): Use event_location_to_string to recreate
4018 the dprintf.
4019 (dprintf_re_set): Remove check for valid/missing format string.
4020 (strace_marker_create_sals_from_location)
4021 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
4022 (update_static_tracepoint): Use struct event_location instead of
4023 address string.
4024 (location_to_sals): Likewise.
4025 Pass `extra_string' to find_condition_and_thread.
4026 For newly resolved pending breakpoint locations, clear the location's
4027 string representation.
4028 Assert that the breakpoint's condition string is NULL when
4029 condition_not_parsed.
4030 (breakpoint_re_set_default, create_sals_from_location_default)
4031 (decode_location_default, trace_command, ftrace_command)
4032 (strace_command, create_tracepoint_from_upload): Use locations
4033 instead of address strings.
4034 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
4035 Use struct event_location instead of address string.
4036 Update all uses.
4037 <decode_location>: Likewise.
4038 (struct breakpoint) <addr_string>: Change to struct event_location
4039 and rename `location'.
4040 <addr_string_range_end>: Change to struct event_location and rename
4041 `location_range_end'.
4042 (create_breakpoint): Use struct event_location instead of address
4043 string.
4044 * cli/cli-cmds.c: Include location.h.
4045 (edit_command, list_command): Use locations instead of address strings.
4046 * elfread.c: Include location.h.
4047 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
4048 * guile/scm-breakpoint.c: Include location.h.
4049 (bpscm_print_breakpoint_smob): Use event_location_to_string.
4050 (gdbscm_register_breakpoint): Use locations instead of address
4051 strings.
4052 * linespec.c: Include location.h.
4053 (struct ls_parser) <stream>: Change to const char *.
4054 (PARSER_STREAM): Update.
4055 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
4056 keywords must be followed by whitespace.
4057 (canonicalize_linespec): Save a linespec location into `canonical'.
4058 Save a canonical linespec into `canonical'.
4059 (parse_linespec): Change `argptr' to const char * and rename `arg'.
4060 All uses updated.
4061 Update function description.
4062 (linespec_parser_new): Initialize `parser'.
4063 Update initialization of parsing stream.
4064 (event_location_to_sals): New function.
4065 (decode_line_full): Change `argptr' to a struct event_location and
4066 rename it `location'.
4067 Use locations instead of address strings.
4068 Call event_location_to_sals instead of parse_linespec.
4069 (decode_line_1): Likewise.
4070 (decode_line_with_current_source, decode_line_with_last_displayed)
4071 Use locations instead of address strings.
4072 (decode_objc): Likewise.
4073 Change `argptr' to const char * and rename `arg'.
4074 (destroy_linespec_result): Delete the linespec result's location
4075 instead of freeing the address string.
4076 * linespec.h (struct linespec_result) <addr_string>: Change to
4077 struct event_location and rename to ...
4078 <location>: ... this.
4079 (decode_line_1, decode_line_full): Change `argptr' to struct
4080 event_location. All callers updated.
4081 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
4082 (mi_cmd_break_insert_1): Use locations instead of address strings.
4083 Throw an error if there was "garbage" at the end of the specified
4084 linespec.
4085 * probe.c: Include location.h.
4086 (parse_probes): Change `argptr' to struct event_location.
4087 Use event locations instead of address strings.
4088 * probe.h (parse_probes): Change `argptr' to struct event_location.
4089 * python/py-breakpoint.c: Include location.h.
4090 (bppy_get_location): Constify local variable `str'.
4091 Use event_location_to_string.
4092 (bppy_init): Use locations instead of address strings.
4093 * python/py-finishbreakpoint.c: Include location.h.
4094 (bpfinishpy_init): Remove local variable `addr_str'.
4095 Use locations instead of address strings.
4096 * python/python.c: Include location.h.
4097 (gdbpy_decode_line): Use locations instead of address strings.
4098 * remote.c: Include location.h.
4099 (remote_download_tracepoint): Use locations instead of address
4100 strings.
4101 * spu-tdep.c: Include location.h.
4102 (spu_catch_start): Remove local variable `buf'.
4103 Use locations instead of address strings.
4104 * tracepoint.c: Include location.h.
4105 (scope_info): Use locations instead of address strings.
4106 (encode_source_string): Constify parameter `src'.
4107 * tracepoint.h (encode_source_string): Likewise.
4108
c7c1b3e9
KS
41092015-08-11 Keith Seitz <keiths@redhat.com>
4110
4111 * Makefile.in (SFILES): Add location.c.
4112 (HFILES_NO_SRCDIR): Add location.h.
4113 (COMMON_OBS): Add location.o.
4114 * linespec.c (linespec_lex_to_end): New function.
4115 * linespec.h (linespec_lex_to_end): Declare.
4116 * location.c: New file.
4117 * location.h: New file.
4118
5f700d83
KS
41192015-08-11 Keith Seitz <keiths@redhat.com>
4120
4121 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
4122 Renamed to create_sals_from_location.
4123 <decode_linespec>: Renamed to decode_location.
4124 Update all callers.
4125 * breakpoint.c (create_sals_from_address_default): Renamed to ...
4126 (create_sals_from_location_default): ... this.
4127 (addr_string_to_sals): Renamed to ...
4128 (location_to_sals): ... this.
4129 (decode_linespec_default): Renamed to ...
4130 (decode_location_default): ... this.
4131 (base_breakpoint_create_sals_from_address): Renamed to ...
4132 (base_breakpoint_create_sals_from_location): ... this.
4133 (bkpt_create_sals_from_address): Renamed to ...
4134 (bkpt_create_sals_from_location): ... this.
4135 (bkpt_decode_linespec): Renamed to ...
4136 (bkpt_decode_location): ... this.
4137 (bkpt_probe_create_sals_from_address): Renamed to ...
4138 (bkpt_probe_create_sals_from_location): ... this.
4139 (tracepoint_create_sals_from_address): Renamed to ...
4140 (tracepoint_create_sals_from_location): ... this.
4141 (tracepoint_decode_linespec): Renamed to ...
4142 (tracepoint_decode_location): ... this.
4143 (tracepoint_probe_create_sals_from_address): Renamed to ...
4144 (tracepoint_probe_create_sals_from_location): ... this.
4145 (tracepoint_probe_decode_linespec): Renamed to ...
4146 (tracepoint_probe_decode_location): ... this.
4147 (strace_marker_create_sals_from_address): Renamed to ...
4148 (strace_marker_create_sals_from_location): ... this.
4149 (decode_linespec_default): Renamed to ...
4150 (decode_location_default): ... this.
4151
e27852be
DE
41522015-08-10 Doug Evans <dje@google.com>
4153 Keith Seitz <keiths@redhat.com>
4154
4155 PR gdb/17960
4156 * symtab.c (make_file_symbol_completion_list_1): Renamed from
4157 make_file_symbol_completion_list and made static.
4158 (make_file_symbol_completion_list): New function.
80af41e0 4159
fd7dcb94
JB
41602015-08-10 Joel Brobecker <brobecker@adacore.com>
4161
4162 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
4163 trailing new-line at end of warning message.
4164 (proceed): Add i18n marker to error messages.
4165
f12899e9
PA
41662015-08-07 Pedro Alves <palves@redhat.com>
4167
4168 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
4169
5ac21343
PA
41702015-08-07 Pedro Alves <palves@redhat.com>
4171
4172 * s390-linux-tdep.c (is_non_branch_ril)
4173 (s390_displaced_step_copy_insn): New functions.
4174 (s390_displaced_step_fixup): Update comment.
4175 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
4176 gdbarch_displaced_step_copy_insn hook.
4177
7f03bd92
PA
41782015-08-07 Pedro Alves <palves@redhat.com>
4179
4180 * infrun.c (displaced_step_prepare_throw): Return -1 if
4181 gdbarch_displaced_step_copy_insn returns NULL. Update intro
4182 comment.
4183 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
4184 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
4185 in file.
4186 (ppc_displaced_step_copy_insn): New function.
4187 (ppc_displaced_step_fixup): Update comment.
4188 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
4189 gdbarch_displaced_step_copy_insn hook.
4190 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
4191 NULL return.
4192 * gdbarch.h: Regenerate.
4193
3fc8eb30
PA
41942015-08-07 Pedro Alves <palves@redhat.com>
4195
4196 * inferior.h (struct inferior) <displaced_stepping_failed>: New
4197 field.
4198 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
4199 Return false if dispaced stepping failed before.
4200 (resume): Pass the current inferior to
4201 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
4202 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
4203 displaced_stepping_failed flag, and fall back to an in-line
4204 step-over.
4205
bfedc46a
PA
42062015-08-07 Pedro Alves <palves@redhat.com>
4207
4208 * darwin-nat.c (darwin_stop): Rename to ...
4209 (darwin_interrupt): ... this.
4210 (_initialize_darwin_inferior): Adjust.
4211 * gnu-nat.c (gnu_stop): Delete.
4212 (gnu_target): Don't install gnu_stop.
4213 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
4214 (inf_ptrace_interrupt): ... this.
4215 (inf_ptrace_target): Adjust.
4216 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
4217 target_stop.
4218 * linux-nat (linux_nat_stop): Rename to ...
4219 (linux_nat_interrupt): ... this.
4220 (linux_nat_stop): Reimplement.
4221 (linux_nat_add_target): Install linux_nat_interrupt.
4222 * nto-procfs.c (nto_interrupt_twice): Rename to ...
4223 (nto_handle_sigint_twice): ... this.
4224 (nto_interrupt): Rename to ...
4225 (nto_handle_sigint): ... this. Call target_interrupt instead of
4226 target_stop.
4227 (procfs_wait): Adjust.
4228 (procfs_stop): Rename to ...
4229 (procfs_interrupt): ... this.
4230 (init_procfs_targets): Adjust.
4231 * procfs.c (procfs_stop): Rename to ...
4232 (procfs_interrupt): ... this.
4233 (procfs_target): Adjust.
4234 * remote-m32r-sdi.c (m32r_stop): Rename to ...
4235 (m32r_interrupt): ... this.
4236 (init_m32r_ops): Adjust.
4237 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
4238 (gdbsim_interrupt_inferior): ... this.
4239 (gdbsim_stop): Rename to ...
4240 (gdbsim_interrupt): ... this.
4241 (gdbsim_cntrl_c): Adjust.
4242 (init_gdbsim_ops): Adjust.
4243 * remote.c (sync_remote_interrupt): Adjust comments.
4244 (remote_stop_as): Rename to ...
4245 (remote_interrupt_as): ... this.
4246 (remote_stop): Adjust comment.
4247 (remote_interrupt): New function.
4248 (init_remote_ops): Install remote_interrupt.
4249 * target.c (target_interrupt): New function.
4250 * target.h (struct target_ops) <to_interrupt>: New field.
4251 (target_interrupt): New declaration.
4252 * windows-nat.c (windows_stop): Rename to ...
4253 (windows_interrupt): ... this.
4254 * target-delegates.c: Regenerate.
4255
d55007b5
PA
42562015-08-07 Pedro Alves <palves@redhat.com>
4257
4258 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
4259 threads" as alternative to "switching back to stepped thread".
4260
fbea99ea
PA
42612015-08-07 Pedro Alves <palves@redhat.com>
4262
4263 * NEWS: Mention "maint set/show target-non-stop".
4264 * breakpoint.c (update_global_location_list): Check
4265 target_is_non_stop_p instead of non_stop.
4266 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
4267 * infrun.c (show_can_use_displaced_stepping)
4268 (can_use_displaced_stepping_p, start_step_over_inferior):
4269 Likewise.
4270 (internal_resume_ptid): New function.
4271 (resume): Use it.
4272 (proceed): Check target_is_non_stop_p instead of non_stop. If in
4273 all-stop mode but the target is always in non-stop mode, start all
4274 the other threads that are implicitly resumed too.
4275 (for_each_just_stopped_thread, fetch_inferior_event)
4276 (adjust_pc_after_break, stop_all_threads): Check
4277 target_is_non_stop_p instead of non_stop.
4278 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
4279 with the target always in non-stop mode.
4280 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
4281 instead of non_stop.
4282 (switch_back_to_stepped_thread): Check target_is_non_stop_p
4283 instead of non_stop.
4284 (keep_going_stepped_thread): Use internal_resume_ptid.
4285 (stop_waiting): If in all-stop mode, and the target is in non-stop
4286 mode, stop all threads.
4287 (keep_going_pass): Likewise, when starting a new in-line step-over
4288 sequence.
4289 * linux-nat.c (get_pending_status, select_event_lwp)
4290 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
4291 target_is_non_stop_p instead of non_stop.
4292 (linux_nat_always_non_stop_p): New function.
4293 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
4294 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
4295 * target-delegates.c: Regenerate.
4296 * target.c (target_is_non_stop_p): New function.
4297 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
4298 (maint_set_target_non_stop_command)
4299 (maint_show_target_non_stop_command): New functions.
4300 (_initilize_target): Install "maint set/show target-non-stop"
4301 commands.
4302 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
4303 (target_non_stop_enabled): New declaration.
4304 (target_is_non_stop_p): New declaration.
4305
372316f1
PA
43062015-08-07 Pedro Alves <pedro@codesourcery.com>
4307
4308 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
4309 has a pending status, return true.
4310 * gdbthread.h: Include target/waitstatus.h.
4311 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
4312 stop_pc>: New fields.
4313 (struct thread_info) <resumed>: New field.
4314 (set_resumed): Declare.
4315 * infrun.c: Include "event-loop.h".
4316 (infrun_async_inferior_event_token, infrun_is_async): New globals.
4317 (infrun_async): New function.
4318 (clear_step_over_info): Add debug output.
4319 (displaced_step_in_progress_any_inferior): New function.
4320 (displaced_step_fixup): New returns int.
4321 (start_step_over): Handle in-line step-overs too. Assert the
4322 thread is marked resumed.
4323 (resume_cleanups): Clear the thread's resumed flag.
4324 (resume): Set the thread's resumed flag. Return early if the
4325 thread has a pending status. Allow stepping a breakpoint with no
4326 signal.
4327 (proceed): Adjust to check 'resumed' instead of 'executing'.
4328 (clear_proceed_status_thread): If the thread has a pending status,
4329 and that status is a finished step, discard the pending status.
4330 (clear_proceed_status): Don't clear step_over_info here.
4331 (random_pending_event_thread, do_target_wait): New functions.
4332 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
4333 do_target_wait.
4334 (wait_one): New function.
4335 (THREAD_STOPPED_BY): New macro.
4336 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
4337 (thread_stopped_by_hw_breakpoint): New functions.
4338 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
4339 functions.
4340 (handle_inferior_event): Also call set_resumed(false) on all
4341 threads implicitly stopped by the event.
4342 (restart_threads, resumed_thread_with_pending_status): New
4343 functions.
4344 (finish_step_over): If we were doing an in-line step-over before,
4345 and no longer are after trying to start a new step-over, restart
4346 all threads. If we have multiple threads with pending events,
4347 save the current event and go through the event loop again.
4348 (handle_signal_stop): Return early if finish_step_over returns
4349 false.
4350 <random signal>: If we get a signal while stepping over a
4351 breakpoint in-line in non-stop mode, restart all threads. Clear
4352 step_over_info before delivering the signal.
4353 (keep_going_stepped_thread): Use internal_error instead of
4354 gdb_assert. Mark the thread as resumed.
4355 (keep_going_pass_signal): Assert the thread isn't already resumed.
4356 If some other thread is doing an in-line step-over, defer the
4357 resume. If we just started a new in-line step-over, stop all
4358 threads. Don't clear step_over_info.
4359 (infrun_async_inferior_event_handler): New function.
4360 (_initialize_infrun): Create async event handler with
4361 infrun_async_inferior_event_handler as callback.
4362 (infrun_async): New declaration.
4363 * target.c (target_async): New function.
4364 * target.h (target_async): Declare macro and readd as function
4365 declaration.
4366 * target/waitstatus.h (enum target_stop_reason)
4367 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4368 * thread.c (new_thread): Clear the new waitstatus field.
4369 (set_resumed): New function.
4370
2ac7589c
PA
43712015-08-07 Pedro Alves <palves@redhat.com>
4372
4373 * infrun.c (keep_going_stepped_thread): New function, factored out
4374 from ...
4375 (switch_back_to_stepped_thread): ... here.
4376
8b061563
PA
43772015-08-07 Pedro Alves <palves@redhat.com>
4378
4379 * infrun.c (currently_stepping): Extend intro comment.
4380 * target.h (target_resume): Extend intro comment.
4381
1afd5965
PA
43822015-08-07 Pedro Alves <palves@redhat.com>
4383
4384 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
4385 of inferior_ptid. If the stepped thread vanished, return 0
4386 instead of resuming here. Use reset_ecs. Print the prev_pc and
4387 the current stop_pc in log message. Clear trap_expected if the
4388 thread advanced. Don't pass currently_stepping to
4389 do_target_resume.
4390
4d9d9d04
PA
43912015-08-07 Pedro Alves <palves@redhat.com>
4392
4393 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
4394 * infrun.c (struct execution_control_state): Move higher up in the
4395 file.
4396 (reset_ecs): New function.
4397 (start_step_over): Now returns int. Rewrite to use
4398 keep_going_pass_signal instead of manually starting a displaced step.
4399 (resume): Don't call set_running here. If displaced stepping
4400 can't start now, clear trap_expected.
4401 (find_thread_needs_step_over): Delete function.
4402 (proceed): Set up finish_thread_state_cleanup. Call set_running.
4403 If the current thread needs a step over, push it in the step-over
4404 chain. Don't set insert breakpoints nor call resume directly
4405 here. Instead rewrite to use start_step_over and
4406 keep_going_pass_signal.
4407 (finish_step_over): New function.
4408 (handle_signal_stop): Call finish_step_over instead of
4409 start_step_over.
4410 (switch_back_to_stepped_thread): If the event thread needs another
4411 step-over do that first. Use start_step_over.
4412 (keep_going_pass_signal): New function, factored out from ...
4413 (keep_going): ... here.
4414 (_initialize_infrun): Comment moved here.
4415 * thread.c (set_running_thread): New function.
4416 (set_running, finish_thread_state): Use set_running_thread.
4417
c2829269
PA
44182015-08-07 Pedro Alves <palves@redhat.com>
4419
4420 * gdbthread.h (struct thread_info) <step_over_prev,
4421 step_over_next>: New fields.
4422 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
4423 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
4424 declarations.
4425 * infrun.c (struct displaced_step_request): Delete.
4426 (struct displaced_step_inferior_state) <step_request_queue>:
4427 Delete field.
4428 (displaced_step_prepare): Assert that trap_expected is set. Use
4429 thread_step_over_chain_enqueue. Split starting a new displaced
4430 step to ...
4431 (start_step_over): ... this new function.
4432 (resume): Assert the thread isn't waiting for a step over already.
4433 (proceed): Assert the thread isn't waiting for a step over
4434 already.
4435 (infrun_thread_stop_requested): Adjust to remove threads from the
4436 embedded step-over chain.
4437 (handle_inferior_event) <fork/vfork>: Call start_step_over after
4438 displaced_step_fixup.
4439 (handle_signal_stop): Call start_step_over after
4440 displaced_step_fixup.
4441 * infrun.h (step_over_queue_head): New declaration.
4442 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
4443 (thread_step_over_chain_next, thread_is_in_step_over_chain)
4444 (thread_step_over_chain_enqueue)
4445 (thread_step_over_chain_remove): New functions.
4446 (delete_thread_1): Remove thread from the step-over chain.
4447
6c4cfb24
PA
44482015-08-07 Pedro Alves <palves@redhat.com>
4449
4450 * infrun.c (thread_still_needs_step_over): Rename to ...
4451 (thread_still_needs_step_over_bp): ... this.
4452 (enum step_over_what): New.
4453 (thread_still_needs_step_over): Reimplement.
4454
567420d1
PA
44552015-08-07 Pedro Alves <palves@redhat.com>
4456
4457 * remote.c (remote_wait_as): If not waiting for a stop reply,
4458 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
4459 requested, don't block waiting forever.
4460
d8dd4d5f
PA
44612015-08-07 Pedro Alves <pedro@codesourcery.com>
4462
4463 * infrun.c (adjust_pc_after_break): Now takes thread_info and
4464 waitstatus pointers instead of an ecs. Adjust.
4465 (handle_inferior_event): Adjust caller.
4466
e1316e60
PA
44672015-08-07 Pedro Alves <palves@redhat.com>
4468
4469 * infrun.c (handle_inferior_event): If we get
4470 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
4471 mode, mark all threads of the exiting process as not-executing.
4472 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
4473 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
4474 exiting process, if inferior_ptid still points at a process.
4475 * thread.c (struct current_thread_cleanup) <next>: New field.
4476 (current_thread_cleanup_chain): New global.
4477 (restore_current_thread_ptid_changed): New function.
4478 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
4479 current_thread_cleanup_chain list.
4480 (make_cleanup_restore_current_thread): Add the cleanup data to the
4481 current_thread_cleanup_chain list.
4482 (_initialize_thread): Install restore_current_thread_ptid_changed
4483 as thread_ptid_changed observer.
4484
47e9c225
JB
44852015-08-07 Joel Brobecker <brobecker@adacore.com>
4486
4487 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
4488 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
4489 smaller than expected.
4490
06096720
AB
44912015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4492
4493 * stack.c (get_frame_language): Moved ...
4494 * frame.c (get_frame_language): ... to here.
4495 * language.h (get_frame_language): Declaration moved to frame.h.
4496 * frame.h: Add language.h include, for language enum.
4497 (get_frame_language): Declaration moved from language.h.
4498 * language.c: Add frame.h include.
4499 * top.c: Add frame.h include.
4500 * symtab.h (struct obj_section): Declare.
4501 (struct cmd_list_element): Declare.
4502
7ff38b1c
AB
45032015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
4504
4505 * language.c (show_language_command): Find selected frame before
4506 asking for the language of that frame.
4507 (set_language_command): Likewise.
4508 * language.h (get_frame_language): Add frame parameter.
4509 * stack.c (get_frame_language): Add frame parameter, assert
4510 parameter is not NULL, update comment and reindent.
4511 * top.c (check_frame_language_change): Pass the selected frame
4512 into get_frame_language.
4513
da8c46d2
MM
45142015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4515
4516 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
4517 (pt_btrace_insn_flags): New.
4518 (ftrace_add_pt): Call pt_btrace_insn_flags.
4519 * btrace.h (btrace_insn_flag): New.
4520 (btrace_insn) <flags>: New.
4521 * record-btrace.c (btrace_insn_history): Print insn prefix.
4522 * NEWS: Announce it.
4523
5599c404
MM
45242015-08-07 Markus Metzger <markus.t.metzger@intel.com>
4525
4526 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
4527 * configure: Regenerate.
4528
016a3251
DD
45292015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
4530
4531 * Makefile.in (LIBICONV): Define.
4532 (CLIBS): Add LIBICONV.
4533 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
4534 * configure: Regenerate.
4535
aead7601
SM
45362015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4537 Pedro Alves <palves@redhat.com>
4538
4539 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
4540 (arm_set_abi): Likewise.
4541 * ax-general.c (ax_print): Likewise.
4542 * c-exp.y (exp : string_exp): Likewise.
4543 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
4544 (do_compile_dwarf_expr_to_c): Likewise.
4545 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
4546 Likewise.
4547 * dwarf2expr.c (execute_stack_op): Likewise.
4548 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
4549 (disassemble_dwarf_expression): Likewise.
4550 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
4551 (read_array_order): Likewise.
4552 (abbrev_table_read_table): Likewise.
4553 (read_attribute_value): Likewise.
4554 (skip_unknown_opcode): Likewise.
4555 (dwarf_decode_macro_bytes): Likewise.
4556 (dwarf_decode_macros): Likewise.
4557 * eval.c (value_f90_subarray): Likewise.
4558 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4559 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4560 * infrun.c (handle_command): Likewise.
4561 * memory-map.c (memory_map_start_memory): Likewise.
4562 * osabi.c (set_osabi): Likewise.
4563 * parse.c (operator_length_standard): Likewise.
4564 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
4565 single return point.
4566 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
4567 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
4568 (gdbpy_lookup_global_symbol): Likewise.
4569 * record-full.c (record_full_restore): Likewise.
4570 * regcache.c (regcache_register_status): Likewise.
4571 (regcache_raw_read): Likewise.
4572 (regcache_cooked_read): Likewise.
4573 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
4574 * symtab.c (initialize_ordinary_address_classes): Likewise.
4575 * target-debug.h (target_debug_print_signals): Likewise.
4576 * utils.c (do_restore_current_language): Likewise.
4577
ca0a5f0b
CD
45782015-08-06 Clem Dickey <clemd@acm.org>
4579
4580 PR python/17136
4581 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
4582
05d999b0
SM
45832015-08-06 Simon Marchi <simon.marchi@ericsson.com>
4584
4585 * complaints.c (enum complaint_series): Add newlines and remove
4586 out of date comment.
4587 (struct complaints) <series>: Change type to enum
4588 complaint_series and remove out of date comment.
4589 (symfile_complaint_hook): Use equivalent enum value
4590 ISOLATED_MESSAGE instead of 0.
4591
bf47e248
PA
45922015-08-06 Pedro Alves <palves@redhat.com>
4593
4594 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
4595 returned > 0.
4596
b6b9ffcc
PL
45972015-08-06 Pierre Langlois <pierre.langlois@arm.com>
4598
4599 * common/agent.c (symbol_list) <required>: Remove.
4600
863d01bd
PA
46012015-08-06 Pedro Alves <palves@redhat.com>
4602
4603 * target/waitstatus.h (enum target_stop_reason)
4604 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
4605
0a39bb32
PA
46062015-08-05 Pedro Alves <palves@redhat.com>
4607 Joel Brobecker <brobecker@adacore.com>
4608
9d996aba 4609 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
4610 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
4611 case where BS->STOP is not set.
4612
260439cb
UW
46132015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
4614
4615 * nat/gdb_thread_db.h: Add copyright header.
4616 Protect against multiple inclusion.
4617
d89fa914
YQ
46182015-08-05 Yao Qi <yao.qi@linaro.org>
4619
4620 * aarch64-linux-nat.c (get_thread_id): Remove.
4621 (debug_reg_change_callback): Call ptid_get_lwp instead of
4622 get_thread_id.
4623 (fetch_gregs_from_thread): Likewise.
4624 (store_gregs_to_thread): Likewise.
4625 (fetch_fpregs_from_thread): Likewise.
4626 (store_fpregs_to_thread): Likewise.
4627 (aarch64_linux_get_debug_reg_capacity): Likewise.
4628 * arm-linux-nat.c (get_thread_id): Remove.
4629 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4630 * xtensa-linux-nat.c (get_thread_id): Remove.
4631 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
4632 * arm-linux-nat.c (get_thread_id): Remove.
4633 (GET_THREAD_ID): Remove.
4634 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
4635 (store_fpregs, fetch_regs, store_regs): Likewise.
4636 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
4637 (fetch_vfp_regs, store_vfp_regs): Likewise.
4638 (arm_linux_read_description): Likewise.
4639 (arm_linux_get_hwbp_cap): Likewise.
4640 * xtensa-linux-nat.c (get_thread_id): Remove.
4641 (GET_THREAD_ID): Remove.
4642 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
4643 GET_THREAD_ID.
4644
4efd80aa
CS
46452015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
4646
4647 * python/py-linetable.c: Fix case of Linetable to LineTable
4648 in docstrings and code comments.
4649 * python/py-symtab.c: Same.
4650
c6343a91
JK
46512015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4652
4653 * infcmd.c (signal_command): Call do_cleanups for args_chain.
4654
978b9495
JK
46552015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4656
4657 PR gdb/18767
4658 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
4659 use.
4660
96e9210f
PA
46612015-08-04 Pedro Alves <palves@redhat.com>
4662
4663 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
4664 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
4665 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
4666 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
4667 (td_thr_validate_ftype, td_thr_get_info_ftype)
4668 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
4669 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
4670 New typedefs.
4671 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
4672 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
4673 local macros and use them instead of verbose_dlsym and dlsym
4674 calls.
4675
af60a1ef
SL
46762015-08-03 Sandra Loosemore <sandra@codesourcery.com>
4677
4678 * nios2-tdep.h: Include opcode/nios2.h here.
4679 (NIOS2_CDX_OPCODE_SIZE): New.
4680 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
4681 * nios2-tdep.c: Don't include opcode/nios2.h here.
4682 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
4683 4-byte read fails.
4684 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
4685 (nios2_match_addi, nios2_match_orhi): Likewise.
4686 (nios2_match_stw, nios2_match_ldw): Likewise.
4687 (nios2_match_rdctl): Likewise.
4688 (nios2_match_stwm, nios2_match_ldwm): New.
4689 (nios2_match_branch): Add cases for R2 encodings.
4690 (nios2_match_jmpi, nios2_match_calli): Likewise.
4691 (nios2_match_jmpr, nios2_match_callr): Likewise.
4692 (nios2_match_break, nios2_match_trap): Likewise.
4693 (nios2_in_epilogue_p): Add R2 support.
4694 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
4695 prologues.
4696 (nios2_breakpoint_from_pc): Handle R2 instructions.
4697 (nios2_get_next_pc): Likewise. Adjust call to
4698 tdep->syscall_next_pc.
4699 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
4700 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
4701 instruction field macros instead of literal hex values.
4702 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
4703 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
4704 Use size field from OP instead of assuming all instructions
4705 are the same size.
4706 (nios2_linux_init_abi): Register appropriate unwinder for mach.
4707
1da03605
UW
47082015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
4709
4710 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
4711 variable warning with some compilers.
4712
8156fe7f
YQ
47132015-08-03 Yao Qi <yao.qi@linaro.org>
4714
4715 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
4716 in comment. Replace "rw" with "type".
4717 (arm_linux_remove_watchpoint): Change type of "rw" to
4718 "enum target_hw_bp_type".
4719
835a09d9
PMR
47202015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
4721
4722 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
4723 lookup_symbol.
4724 * ft32-tdep.c (ft32_skip_prologue): Likewise.
4725 * moxie-tdep.c (moxie_skip_prologue): Likewise.
4726 * mt-tdep.c (mt_skip_prologue): Likewise.
4727 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
4728
d12307c1
PMR
47292015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
4730
4731 * ada-exp.y (write_object_renaming): Replace struct
4732 ada_symbol_info with struct block_symbol. Update field
4733 references accordingly.
4734 (block_lookup, select_possible_type_sym): Likewise.
4735 (find_primitive_type): Likewise. Also update call to
4736 ada_lookup_symbol to extract the symbol itself.
4737 (write_var_or_type, write_name_assoc): Likewise.
4738 * ada-lang.h (struct ada_symbol_info): Remove.
4739 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
4740 struct block_symbol.
4741 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
4742 (ada_lookup_symbol): Return struct block_symbol instead of a
4743 mere symbol.
4744 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
4745 with struct block_symbol.
4746 (resolve_subexp, ada_resolve_function, sort_choices,
4747 user_select_syms, is_nonfunction, add_defn_to_vec,
4748 num_defns_collected, defns_collected,
4749 symbols_are_identical_enums, remove_extra_symbols,
4750 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
4751 ada_lookup_symbol_list, ada_iterate_over_symbols,
4752 ada_lookup_encoded_symbol, get_var_value): Likewise.
4753 (ada_lookup_symbol): Return a block_symbol instead of a mere
4754 symbol. Replace struct ada_symbol_info with struct
4755 block_symbol.
4756 (ada_lookup_symbol_nonlocal): Likewise.
4757 (standard_lookup): Make block passing explicit through
4758 lookup_symbol_in_language.
4759 * ada-tasks.c (get_tcb_types_info): Update the calls to
4760 lookup_symbol_in_language to extract the mere symbol out of the
4761 returned value.
4762 (ada_tasks_inferior_data_sniffer): Likewise.
4763 * ax-gdb.c (gen_static_field): Likewise for the call to
4764 lookup_symbol.
a5fdf78a 4765 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
4766 lookup functions.
4767 (gen_expr): Likewise.
4768 * c-exp.y: Likewise. Remove uses of block_found.
4769 (lex_one_token, classify_inner_name, c_print_token): Likewise.
4770 (classify_name): Likewise. Rename the "sym" local variable to
4771 "bsym".
4772 * c-valprint.c (print_unpacked_pointer): Likewise.
4773 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
4774 "sym" parameter from struct symbol * to struct block_symbol.
4775 Use it to remove uses of block_found. Deal with struct
a5fdf78a 4776 block_symbol from lookup functions.
d12307c1
PMR
4777 (gcc_convert_symbol): Likewise. Update the call to
4778 convert_symbol_sym.
4779 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 4780 struct block_symbol from lookup functions.
d12307c1
PMR
4781 * cp-namespace.c (cp_lookup_nested_symbol_1,
4782 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
4783 cp_search_static_and_baseclasses,
4784 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
4785 cp_lookup_symbol_imports_or_template,
4786 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
4787 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
4788 find_symbol_in_baseclass): Return struct block_symbol instead of
4789 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
4790 functions.
4791 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 4792 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
4793 lookup functions.
4794 * cp-support.h (cp_lookup_symbol_nonlocal,
4795 cp_lookup_symbol_from_namespace,
4796 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 4797 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
4798 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
4799 push_module_name):
a5fdf78a 4800 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
4801 uses of block_found.
4802 * eval.c (evaluate_subexp_standard): Update call to
4803 cp_lookup_symbol_namespace.
a5fdf78a
PMR
4804 * f-exp.y: Deal with struct block_symbol from lookup functions.
4805 Remove uses of block_found.
d12307c1
PMR
4806 (yylex): Likewise.
4807 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
4808 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 4809 struct block_symbol from lookup functions.
d12307c1
PMR
4810 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
4811 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
4812 (gdbscm_lookup_global_symbol): Likewise.
4813 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
4814 * go-exp.y: Likewise. Remove uses of block_found.
4815 (package_name_p, classify_packaged_name, classify_name):
4816 Likewise.
4817 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4818 * jv-exp.y (push_variable): Likewise.
4819 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
4820 * language.c (language_bool_type): Likewise.
4821 * language.h (struct language_defn): Update
a5fdf78a
PMR
4822 la_lookup_symbol_nonlocal to return a struct block_symbol rather
4823 than a mere symbol.
4824 * linespec.c (find_label_symbols): Deal with struct block_symbol
4825 from lookup functions.
d12307c1
PMR
4826 * m2-exp.y: Likewise. Remove uses of block_found.
4827 (yylex): Likewise.
4828 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
4829 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
4830 * p-exp.y: Likewise. Remove uses of block_found.
4831 (yylex): Likewise.
4832 * p-valprint.c (pascal_val_print): Likewise.
4833 * parse.c (write_dollar_variable): Likewise. Remove uses of
4834 block_found.
4835 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
4836 struct block_symbol.
4837 * printcmd.c (address_info): Deal with struct block_symbol from
4838 lookup functions.
d12307c1
PMR
4839 * python/py-frame.c (frapy_read_var): Likewise.
4840 * python/py-symbol.c (gdbpy_lookup_symbol,
4841 gdbpy_lookup_global_symbol): Likewise.
4842 * skip.c (skip_function_command): Likewise.
4843 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 4844 block_symbol instead of a mere symbol.
d12307c1
PMR
4845 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
4846 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
4847 * solib.c (solib_global_lookup): Likewise.
4848 * solist.h (solib_global_lookup): Likewise.
4849 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
4850 return a struct block_symbol rather than a mere symbol.
4851 * source.c (select_source_symtab): Deal with struct block_symbol
4852 from lookup functions.
d12307c1
PMR
4853 * stack.c (print_frame_args, iterate_over_block_arg_vars):
4854 Likewise.
4855 * symfile.c (set_initial_language): Likewise.
4856 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 4857 block_symbol.
d12307c1
PMR
4858 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
4859 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 4860 block_symbol.
d12307c1 4861 (block_found): Remove.
a5fdf78a 4862 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 4863 cache slots.
a5fdf78a
PMR
4864 (symbol_cache_lookup): Return a struct block_symbol rather than
4865 a mere symbol.
d12307c1
PMR
4866 (symbol_cache_mark_found): Add a BLOCK parameter to fill
4867 appropriately the cache slots. Update callers.
4868 (symbol_cache_dump): Update cache slots handling to the type
4869 change.
4870 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
4871 lookup_symbol_aux, lookup_local_symbol,
4872 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
4873 lookup_symbol_in_objfile_symtabs,
4874 lookup_symbol_in_objfile_from_linkage_name,
4875 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
4876 lookup_symbol_in_static_block, lookup_static_symbol,
4877 lookup_global_symbol):
a5fdf78a
PMR
4878 Return a struct block_symbol rather than a mere symbol. Deal
4879 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
4880 uses of block_found.
4881 (lookup_symbol_in_block): Remove uses of block_found.
4882 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 4883 struct block_symbol.
d12307c1
PMR
4884 (lookup_symbol_global_iterator_cb): Update references to the
4885 RESULT field.
a5fdf78a 4886 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 4887 functions.
a5fdf78a 4888 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
4889 (block_found): Remove.
4890 (lookup_symbol_in_language, lookup_symbol,
4891 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
4892 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
4893 lookup_global_symbol_from_objfile): Return a struct block_symbol
4894 rather than just a mere symbol. Update comments to remove
4895 mentions of block_found.
d12307c1
PMR
4896 * valops.c (find_function_in_inferior,
4897 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 4898 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
4899 functions.
4900 * value.c (value_static_field, value_fn_field): Likewise.
4901
b1c59ddc
SM
49022015-07-31 Simon Marchi <simon.marchi@ericsson.com>
4903
4904 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
4905 instead of integer.
4906
f486487f 49072015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 4908 Pedro Alves <palves@redhat.com>
f486487f
SM
4909
4910 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
4911 type or value instead of integer.
4912 (aarch64_linux_insert_watchpoint): Likewise.
4913 (aarch64_linux_remove_watchpoint): Likewise.
4914 * ada-lang.c (ada_op_print_tab): Likewise.
4915 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
4916 (amd64_linux_syscall_record_common): Likewise.
4917 * arch-utils.c (target_byte_order_user): Likewise.
4918 (default_byte_order): Likewise.
4919 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
4920 (arm_linux_get_hwbp_type): Likewise.
4921 (arm_linux_hw_watchpoint_initialize): Likewise.
4922 (arm_linux_insert_watchpoint): Likewise.
4923 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
4924 (arm_linux_syscall_record): Likewise.
4925 * breakpoint.c (update_watchpoint): Likewise.
4926 (breakpoint_here_p): Likewise.
4927 (bpstat_print): Likewise.
4928 (enable_breakpoint_disp): Likewise.
4929 * c-lang.c (c_op_print_tab): Likewise.
4930 * cli/cli-decode.c (add_info_alias): Likewise.
4931 * d-lang.c (d_op_print_tab): Likewise.
4932 * eval.c (evaluate_subexp_standard): Likewise.
4933 * f-exp.y (dot_ops): Likewise.
4934 (f77_keywords): Likewise.
4935 * f-lang.c (f_op_print_tab): Likewise.
4936 * go-lang.c (go_op_print_tab): Likewise.
4937 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
4938 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
4939 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
4940 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
4941 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
4942 (struct scm_from_stringn_data): Likewise.
4943 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
4944 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
4945 (ia64_linux_remove_watchpoint): Likewise.
4946 (ia64_linux_can_use_hw_breakpoint): Likewise.
4947 * infrun.c (print_stop_event): Likewise.
4948 * jv-lang.c (java_op_print_tab): Likewise.
4949 * linux-nat.c (linux_proc_xfer_partial): Likewise.
4950 * linux-nat.h (struct lwp_info): Likewise.
4951 * linux-thread-db.c (enable_thread_event): Likewise.
4952 * m2-lang.c (m2_op_print_tab): Likewise.
4953 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
4954 (mi_cmd_stack_list_variables): Likewise.
4955 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
4956 * mi/mi-out.c (mi_table_begin): Likewise.
4957 (mi_table_header): Likewise.
4958 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
4959 (mips_linux_insert_watchpoint): Likewise.
4960 (mips_linux_remove_watchpoint): Likewise.
4961 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
4962 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
4963 (mips_linux_watch_type_to_irw): Likewise.
4964 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4965 (procfs_insert_hw_watchpoint): Likewise.
4966 (procfs_remove_hw_watchpoint): Likewise.
4967 (procfs_hw_watchpoint): Likewise.
4968 (procfs_can_use_hw_breakpoint): Likewise.
4969 (procfs_remove_hw_watchpoint): Likewise.
4970 (procfs_insert_hw_watchpoint): Likewise.
4971 * p-lang.c (pascal_op_print_tab): Likewise.
4972 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
4973 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
4974 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
4975 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
4976 (procfs_insert_watchpoint): Likewise.
4977 (procfs_remove_watchpoint): Likewise.
4978 * psymtab.c (recursively_search_psymtabs): Likewise.
4979 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
4980 (m32r_insert_watchpoint): Likewise.
4981 * remote-mips.c (mips_can_use_watchpoint): Likewise.
4982 (mips_insert_watchpoint): Likewise.
4983 (mips_remove_watchpoint): Likewise.
4984 * remote.c (watchpoint_to_Z_packet): Likewise.
4985 (remote_insert_watchpoint): Likewise.
4986 (remote_remove_watchpoint): Likewise.
4987 (remote_check_watch_resources): Likewise.
4988 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
4989 (s390_remove_watchpoint): Likewise.
4990 (s390_can_use_hw_breakpoint): Likewise.
4991 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
4992 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
4993 * target.h (struct target_ops): Likewise.
4994 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
4995 * ui-out.c (struct ui_out_hdr): Likewise.
4996 (append_header_to_list): Likewise.
4997 (get_next_header): Likewise.
4998 (verify_field): Likewise.
4999 (ui_out_begin): Likewise.
5000 (ui_out_field_int): Likewise.
5001 (ui_out_field_fmt_int): Likewise.
5002 (ui_out_field_skip): Likewise.
5003 (ui_out_field_string): Likewise.
5004 (ui_out_field_fmt): Likewise.
5005 * varobj.c (new_variable): Likewise.
5006 * x86-nat.c (x86_insert_watchpoint): Likewise.
5007 (x86_remove_watchpoint): Likewise.
5008 (x86_can_use_hw_breakpoint): Likewise.
5009 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
5010 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
5011 previously anonymous enumeration type..
5012 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
5013 value.
5014 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
5015 (target_debug_print_enum_bptype): New.
5016 * target-delegates.c: Regenerate.
5017
e1b5381f
SL
50182015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5019
5020 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
5021 already says and disallow non-stack memory writes in the prologue.
5022
9aaf8e3a
SL
50232015-07-30 Sandra Loosemore <sandra@codesourcery.com>
5024
5025 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
5026 reflect how current GCC emits stack overflow checks. Match
5027 both trap and break instructions for backward compatbility.
5028 Disallow other trap and break instructions in the prologue.
5029
69dde7dc
PA
50302015-07-30 Pedro Alves <palves@redhat.com>
5031
5032 PR threads/18600
5033 * linux-nat.c (wait_lwp): Report to the core when thread group
5034 leader exits.
5035
4dd63d48
PA
50362015-07-30 Pedro Alves <palves@redhat.com>
5037 Simon Marchi <simon.marchi@ericsson.com>
5038
5039 PR threads/18600
5040 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
5041 mark the new thread as resumed. Remove STOPPING parameter.
5042 (wait_lwp): Adjust call to linux_handle_extended_wait.
5043 (linux_nat_filter_event): Adjust call to
5044 linux_handle_extended_wait.
5045 (resume_stopped_resumed_lwps): Add debug output.
5046
6b940e6a
PL
50472015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5048
5049 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
5050 isize argument.
5051 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
5052 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
5053 gdbarch_fast_tracepoint_valid_at.
5054 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
5055 * gdbarch.h: Regenerate.
5056 * gdbarch.c: Regenerate.
5057 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
5058 argument. Do not set it.
5059 * remote.c (remote_download_tracepoint): Adjust call to
5060 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
5061 the instruction length.
5062
ec741292
YQ
50632015-07-30 Yao Qi <yao.qi@linaro.org>
5064
5065 * arm-tdep.h (enum gdb_regnum): Move it to ...
5066 * arch/arm.h: ... here. New file.
5067 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
5068
0ea6402e
PL
50692015-07-30 Pierre Langlois <pierre.langlois@arm.com>
5070
5071 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
5072 Change its type to int *.
5073 (decode_br): Rename link argument to is_blr. Change its type to
5074 int *.
5075 (decode_cb): Rename op argument to is_cbnz. Change its type to
5076 int *.
5077 (decode_tb): Rename op argument to is_tbnz. Change its type to
5078 int *. Set is_tbnz to either 1 or 0.
5079 (aarch64_analyze_prologue): Change type of is_link to int. Add
5080 new variables is_cbnz and is_tbnz. Adjust call to
5081 aarch64_decode_cb and aarch64_decode_tb.
5082
aa58a496
SM
50832015-07-29 Simon Marchi <simon.marchi@ericsson.com>
5084
5085 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
5086 parameter.
5087 (mips_linux_new_thread): Likewise.
5088 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
5089
18206ca3
PP
50902015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5091
5092 * top.c: Include "tui/tui.h".
5093 (undo_terminal_modifications_before_exit): New static function.
5094 (quit_force): Use it.
5095
7afa63c6
PP
50962015-07-29 Patrick Palka <patrick@parcs.ath.cx>
5097
5098 * target.c (terminal_state): Initialize to terminal_is_ours.
5099
cc9f16aa
YQ
51002015-07-29 Yao Qi <yao.qi@linaro.org>
5101
5102 PR record/18691
5103 * dcache.c (dcache_read_memory_partial): Call
5104 raw_memory_xfer_partial.
5105 * target.c (raw_memory_xfer_partial): Make it non-static.
5106 * target.h (raw_memory_xfer_partial): Declare.
5107
3ae385af
SM
51082015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5109
5110 * c-valprint.c (c_val_print_array): Consider addressable memory
5111 unit size.
5112 (c_val_print_ptr): Likewise.
5113 (c_val_print_int): Likewise.
5114 * findvar.c (read_frame_register_value): Likewise.
5115 * valarith.c (find_size_for_pointer_math): Likewise.
5116 (value_ptrdiff): Likewise.
5117 (value_subscripted_rvalue): Likewise.
5118 * valops.c (read_value_memory): Likewise (and rename variables).
5119 (value_assign): Likewise.
5120 (value_repeat): Likewise.
5121 (value_array): Likewise.
5122 (value_slice): Likewise.
5123 * valprint.c (generic_val_print_ptr): Likewise.
5124 (generic_val_print_enum): Likewise.
5125 (generic_val_print_bool): Likewise.
5126 (generic_val_print_int): Likewise.
5127 (generic_val_print_char): Likewise.
5128 (generic_val_print_float): Likewise.
5129 (generic_val_print_decfloat): Likewise.
5130 (generic_val_print_complex): Likewise.
5131 (val_print_scalar_formatted): Likewise.
5132 (val_print_array_elements): Likewise.
5133 * value.c (set_value_parent): Likewise.
5134 (value_contents_copy_raw): Likewise.
5135 (set_internalvar_component): Likewise.
5136 (value_primitive_field): Likewise.
5137 (value_fetch_lazy): Likewise.
5138 * value.h (read_value_memory): Update comment.
5139
e512cdbd
SM
51402015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5141
5142 * value.c (get_value_arch): New function.
5143 * value.h (get_value_arch): New declaration.
5144
3723fda8
SM
51452015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5146
5147 * value.c (struct value): Update comments.
5148
2e056931
SM
51492015-07-28 Simon Marchi <simon.marchi@ericsson.com>
5150
5151 * gdbtypes.c (type_length_units): New function.
5152 * gdbtypes.h (type_length_units): New declaration.
5153 (struct type) <length>: Update comment.
5154
0c87c0bf
SM
51552015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5156
5157 * valprint.c (generic_val_print): Factor out complex
5158 printing code to ...
5159 (generic_val_print_complex): ... this new function.
5160
9550ae5e
SM
51612015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5162
5163 * valprint.c (generic_val_print): Factor out decfloat
5164 printing code to ...
5165 (generic_val_print_decfloat): ... this new function.
5166
7784724b
SM
51672015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5168
5169 * valprint.c (generic_val_print): Factor out float
5170 printing code to ...
5171 (generic_val_print_float): ... this new function.
5172
385f5aff
SM
51732015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5174
5175 * valprint.c (generic_val_print): Factor out char
5176 printing code to ...
5177 (generic_val_print_char): ... this new function.
5178
b21b6342
SM
51792015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5180
5181 * valprint.c (generic_val_print): Factor out integer
5182 printing code to ...
5183 (generic_val_print_int): ... this new function.
5184
e5bead4b
SM
51852015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5186
5187 * valprint.c (generic_val_print): Factor out bool
5188 printing code to ...
5189 (generic_val_print_bool): ... this new function.
5190
4a8c372f
SM
51912015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5192
5193 * valprint.c (generic_val_print): Factor out function/method
5194 printing code to ...
5195 (generic_val_print_func): ... this new function.
5196
d93880bd
SM
51972015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5198
5199 * valprint.c (generic_val_print): Factor out flags
5200 printing code to ...
5201 (generic_val_print_flags): ... this new function.
5202
ef0bc0dd
SM
52032015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5204
5205 * valprint.c (generic_val_print): Factor out enum
5206 printing code to ...
5207 (generic_val_print_enum): ... this new function.
5208
fe43fede
SM
52092015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5210
5211 * valprint.c (generic_val_print): Factor out reference
5212 printing code to ...
5213 (generic_val_print_ref): ... this new function.
5214
45000ea2
SM
52152015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5216
5217 * valprint.c (generic_val_print): Factor out memberptr
5218 printing code to ...
5219 (generic_val_print_memberptr): ... this new function.
5220
81eb921a
SM
52212015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5222
5223 * valprint.c (generic_val_print): Factor out pointer
5224 printing code to ...
5225 (generic_val_print_ptr): ... this new function.
5226
557dbe8a
SM
52272015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5228
5229 * valprint.c (generic_val_print): Factor out array
5230 printing code to ...
5231 (generic_val_print_array): ... this new function.
5232
9f436164
SM
52332015-07-27 Simon Marchi <simon.marchi@ericsson.com>
5234
5235 * valprint.c (generic_val_print): Factor out
5236 print_unpacked_pointer code to ...
5237 (print_unpacked_pointer): ... this new function.
5238
077836f7
PP
52392015-07-27 Patrick Palka <patrick@parcs.ath.cx>
5240
5241 * event-top.c (handle_sigterm): Don't inspect
5242 target_can_async_p. Always set the quit flag and always mark
5243 the async signal handler.
5244
3a60804f
YQ
52452015-07-27 Yao Qi <yao.qi@linaro.org>
5246
5247 * Makefile.in (REMOTE_EXAMPLES): Remove it.
5248
c9f35b34
KB
52492015-07-25 Kevin Buettner <kevinb@redhat.com>
5250
5251 * remote.c (read_ptid): Return null_ptid when no thread id
5252 is found.
5253 (remote_current_thread): Add log warning for malformed
5254 qC reply.
5255 (remote_start_remote): Add log warning when current thread
5256 not found.
5257
2b4cab86
PA
52582015-07-24 Pedro Alves <palves@redhat.com>
5259
5260 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
5261 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
5262 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
5263
77598427
PA
52642015-07-24 Pedro Alves <palves@redhat.com>
5265
5266 PR gdb/18717
5267 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
5268 is resumed, and extend the debug log.
5269
fe23c31f
PA
52702015-07-24 Pedro Alves <palves@redhat.com>
5271
5272 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
5273
5826e159
PA
52742015-07-24 Pedro Alves <palves@redhat.com>
5275
5276 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
5277 sys/ptrace.h.
5278 * alpha-linux-nat.c: Likewise.
5279 * amd64-linux-nat.c: Likewise.
5280 * arm-linux-nat.c: Likewise.
5281 * hppa-linux-nat.c: Likewise.
5282 * i386-linux-nat.c: Likewise.
5283 * ia64-linux-nat.c: Likewise.
5284 * linux-fork.c: Likewise.
5285 * linux-nat.c: Likewise.
5286 * m32r-linux-nat.c: Likewise.
5287 * m68klinux-nat.c: Likewise.
5288 * mips-linux-nat.c: Likewise.
5289 * nat/linux-btrace.c: Likewise.
5290 * nat/linux-ptrace.c: Likewise.
5291 * nat/linux-ptrace.h
5292 * nat/mips-linux-watch.c: Likewise.
5293 * nat/x86-linux-dregs.c: Likewise.
5294 * ppc-linux-nat.c: Likewise.
5295 * s390-linux-nat.c: Likewise.
5296 * spu-linux-nat.c: Likewise.
5297 * tilegx-linux-nat.c: Likewise.
5298 * x86-linux-nat.c: Likewise.
5299 * xtensa-linux-nat.c: Likewise.
5300
54019719
PA
53012015-07-24 Pedro Alves <palves@redhat.com>
5302
5303 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
5304 __ptrace_request as first parameter type instead of int.
5305 (PTRACE_TYPE_ARG1): Define.
5306 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
5307 that casts first argument to PTRACE_TYPE_ARG1.
5308 * config.in: Regenerate.
5309 * configure: Regenerate.
5310
e3790375
PA
53112015-07-24 Pedro Alves <palves@redhat.com>
5312
5313 * gdb_ptrace.h: Move ...
5314 * nat/gdb_ptrace.h: ... here.
5315 * inf-ptrace.c: Adjust.
5316
eb7aa561
PA
53172015-07-24 Pedro Alves <palves@redhat.com>
5318
5319 * acinclude.m4: Include ptrace.m4.
5320 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
5321 * ptrace.m4: ... to this new file.
5322
cc12ce38
DE
53232015-07-23 Doug Evans <dje@google.com>
5324
5325 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
5326 (load_cu): Handle dummy CUs.
5327 (dw2_do_instantiate_symtab, process_queuef): Ditto.
5328 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
5329
7b849db4
CS
53302015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
5331
5332 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
5333 documentation to say that it returns a list rather than
5334 a FrozenSet.
5335 (linetable_object_methods): Update the docstring of the
5336 "source_line" entry.
5337
d0d84780
PMR
53382015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
5339
5340 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
5341 type to the recursive call instead of the original (maybe
5342 TYPE_CODE_TYPEDEF) type.
5343
c2fbdc59
YQ
53442015-07-23 Yao Qi <yao.qi@linaro.org>
5345
5346 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
5347 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
5348 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
5349
af1b22f3
YQ
53502015-07-21 Yao Qi <yao.qi@linaro.org>
5351
5352 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5353 Move it to nat/aarch64-linux-hw-point.c.
5354 (aarch64_linux_child_post_startup_inferior): Update.
5355 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
5356 New function.
5357 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
5358 Declare it.
5359
40e050d2
MM
53602015-07-21 Markus Metzger <markus.t.metzger@intel.com>
5361
5362 * common/btrace-common.c (btrace_data_append): Change case label.
5363
3675a06a
YQ
53642015-07-20 Yao Qi <yao.qi@linaro.org>
5365
5366 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
5367 Re-indent the code.
5368 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
5369 "unsigned long long".
5370
b4e1fd61
KB
53712015-07-18 Kevin Buettner <kevinb@redhat.com>
5372
5373 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
5374 to be set for SEC_ALLOC sections too.
5375
554717a3
YQ
53762015-07-17 Yao Qi <yao.qi@linaro.org>
5377
5378 * Makefile.in (HFILES_NO_SRCDIR): Add
5379 nat/aarch64-linux-hw-point.h.
5380 (aarch64-linux-hw-point.o): New rule.
5381 * nat/aarch64-linux-hw-point.h: New file.
5382 * nat/aarch64-linux-hw-point.c: New file.
5383 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
5384 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
5385 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
5386 (AARCH64_HWP_ALIGNMENT): Likewise.
5387 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
5388 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
5389 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
5390 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
5391 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
5392 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
5393 (struct aarch64_debug_reg_state): Likewise.
5394 (struct arch_lwp_info): Likewise.
5395 (aarch64_linux_set_debug_regs): Likewise.
5396 (aarch64_notify_debug_reg_change): Remove static.
5397 (aarch64_align_watchpoint): Likewise.
5398 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
5399 (aarch64_watchpoint_length): Likewise.
5400 (aarch64_point_encode_ctrl_reg): Likewise
5401 (aarch64_point_is_aligned): Likewise.
5402 (aarch64_dr_state_insert_one_point): Likewise.
5403 (aarch64_dr_state_remove_one_point): Likewise.
5404 (aarch64_handle_breakpoint): Likewise.
5405 (aarch64_handle_aligned_watchpoint): Likewise.
5406 (aarch64_handle_unaligned_watchpoint): Likewise.
5407 (aarch64_handle_watchpoint): Likewise.
5408 * config/aarch64/linux.mh (NAT_FILE): Add
5409 aarch64-linux-hw-point.o.
5410
c67ca4de
YQ
54112015-07-17 Yao Qi <yao.qi@linaro.org>
5412
5413 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
5414 state and don't call aarch64_get_debug_reg_state. All callers
5415 update.
5416 (aarch64_linux_insert_hw_breakpoint): Call
5417 aarch64_get_debug_reg_state earlier.
5418 (aarch64_linux_remove_hw_breakpoint): Likewise.
5419 (aarch64_handle_aligned_watchpoint): Add argument state and
5420 don't call aarch64_get_debug_reg_state. All callers update.
5421 (aarch64_handle_unaligned_watchpoint): Likewise.
5422 (aarch64_handle_watchpoint): Add argument state.
5423 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
5424 earlier.
5425 (aarch64_linux_remove_watchpoint): Likewise.
5426
25abf979
YQ
54272015-07-17 Yao Qi <yao.qi@linaro.org>
5428
5429 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
5430 debug_printf.
5431 (aarch64_handle_unaligned_watchpoint): Likewise.
5432
2ecd81c2
YQ
54332015-07-17 Yao Qi <yao.qi@linaro.org>
5434
5435 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
5436 argument type's type to 'enum target_hw_bp_type'.
5437 (aarch64_dr_state_remove_one_point): Likewise.
5438 (aarch64_handle_breakpoint): Likewise.
5439 (aarch64_linux_insert_hw_breakpoint): Likewise.
5440 (aarch64_linux_remove_hw_breakpoint): Likewise.
5441 (aarch64_handle_aligned_watchpoint): Likewise.
5442
e53b6938
YQ
54432015-07-17 Yao Qi <yao.qi@linaro.org>
5444
5445 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
5446 ptid_get_pid instead of get_thread_id.
5447
6a49a997
YQ
54482015-07-17 Yao Qi <yao.qi@linaro.org>
5449
5450 * remote.c (get_current_thread): Initialise ptid to null_ptid.
5451 (add_current_inferior_and_thread): Don't initialise ptid.
5452
4bcddace
PL
54532015-07-16 Pierre Langlois <pierre.langlois@arm.com>
5454
5455 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
5456 unavailable if invalid.
5457
db1ff28b
JK
54582015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5459
5460 Revert the previous 6 commits:
5461 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5462 Move gdb_regex* to common/
5463 Prepare linux_find_memory_regions_full & co. for move
5464 Move linux_find_memory_regions_full & co.
5465 gdbserver build-id attribute generator
5466 Validate symbol file using build-id
5467
ca5268b6
JK
54682015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5469 Jan Kratochvil <jan.kratochvil@redhat.com>
5470
5471 Validate symbol file using build-id.
5472 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
5473 and 'show validate-build-id'. Add build-id attribute.
5474 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
5475 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
5476 * solib-frv.c (_initialize_frv_solib): Ditto.
5477 * solib-spu.c (set_spu_solib_ops): Ditto.
5478 * solib-svr4.c: Include rsp-low.h.
5479 (NOTE_GNU_BUILD_ID_NAME): New define.
5480 (svr4_validate): New function.
5481 (svr4_copy_library_list): Duplicate field build_id.
5482 (library_list_start_library): Parse 'build-id' attribute.
5483 (svr4_library_attributes): Add 'build-id' attribute.
5484 (_initialize_svr4_solib): Assign validate value.
5485 * solib-target.c (solib.h): Include.
5486 (_initialize_solib_target): Assign validate value.
5487 * solib.c (validate_build_id, show_validate_build_id): New.
5488 (solib_map_sections): Use ops->validate.
5489 (clear_so): Free build_id.
5490 (default_solib_validate): New function.
5491 (_initialize_solib): Add "validate-build-id".
5492 * solib.h (default_solib_validate): New declaration.
5493 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
5494 (target_so_ops): New field 'validate'.
5495
700ca40f
JK
54962015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5497 Jan Kratochvil <jan.kratochvil@redhat.com>
5498
5499 gdbserver build-id attribute generator.
5500 * features/library-list-svr4.dtd (library-list-svr4): New
5501 'build-id' attribute.
5502
9904185c
JK
55032015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5504 Jan Kratochvil <jan.kratochvil@redhat.com>
5505
5506 Move linux_find_memory_regions_full & co.
5507 * linux-tdep.c (nat/linux-maps.h): Include.
5508 (gdb_regex.h): Remove the include.
5509 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
5510 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
5511 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
5512 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
5513 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
5514 and target/target.h.
5515 (struct smaps_vmflags, read_mapping, decode_vmflags)
5516 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
5517 (linux_find_memory_regions_full): Move from linux-tdep.c.
5518 * nat/linux-maps.h (read_mapping): New declaration.
5519 (linux_find_memory_region_ftype, enum filterflags): Moved from
5520 linux-tdep.c.
5521 (linux_find_memory_regions_full): New declaration.
5522 * target.c (target/target-utils.h): Include.
5523 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
5524 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
5525 definitions to target/target-utils.c.
5526 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
5527 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
5528 from target.c.
5529 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
5530 (read_alloc): New declaration.
5531 (read_stralloc_func_ftype): New typedef.
5532 (read_stralloc): New declaration.
5533 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
5534
f7af1fcd
JK
55352015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5536 Jan Kratochvil <jan.kratochvil@redhat.com>
5537
5538 Prepare linux_find_memory_regions_full & co. for move.
5539 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
5540 (linux_find_memory_regions_full): Change signature and prepare
5541 for moving to linux-maps.
5542 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
5543 (linux_find_memory_regions_thunk): New.
5544 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
5545 (linux_find_memory_regions_gdb): New.
5546 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
5547 (linux_make_mappings_corefile_notes): Use
5548 linux_find_memory_regions_gdb.
5549 * target.c (read_alloc_pread_ftype): New typedef.
5550 (target_fileio_read_alloc_1_pread): New function.
5551 (read_alloc): Refactor from target_fileio_read_alloc_1.
5552 (read_stralloc_func_ftype): New typedef.
5553 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
5554 (read_stralloc): Refactored from target_fileio_read_stralloc.
5555 (target_fileio_read_stralloc): New implementation, use read_stralloc.
5556
6e5b4429
JK
55572015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5558
5559 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
5560 common/gdb_regex.h.
5561 (COMMON_OBS): Add gdb_regex.o.
5562 (gdb_regex.o): New.
5563 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
5564 --without-included-regex and USE_INCLUDED_REGEX.
5565 * common/gdb_regex.c: New file from utils.c functions.
5566 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
5567 file wrapping define name.
5568 * configure: Rebuilt.
5569 * configure.ac (gdb_use_included_regex, --without-included-regex)
5570 (USE_INCLUDED_REGEX): Move them to common/common.m4.
5571 * gdb_regex.h: Move it to common/gdb_regex.h.
5572 * utils.c: Remove include gdb_regex.h.
5573 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
5574 (compile_rx_or_error): Move them to common/gdb_regex.c.
5575
ddc98fbf
JK
55762015-07-15 Aleksandar Ristovski <aristovski@qnx.com
5577 Jan Kratochvil <jan.kratochvil@redhat.com>
5578
5579 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
5580 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
5581 common/target-utils.h.
5582 (COMMON_OBS): Add target-utils.o.
5583 (linux-maps.o, target-utils.o): New.
5584 * target/target-utils.c: New file.
5585 * target/target-utils.h: New file.
5586 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
5587 * config/i386/linux64.mh (NATDEPFILES): Ditto.
5588 * nat/linux-maps.c: New file.
5589 * nat/linux-maps.h: New file.
5590
e7b01ce0
MM
55912015-07-15 Markus Metzger <markus.t.metzger@intel.com>
5592 Pedro Alves <palves@redhat.com>
5593
5594 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
5595 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
5596 (perf_event_read_bts): Change the type of SIZE and READ.
5597 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
5598 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
5599 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
5600 mmap page.
5601 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
5602 buffer size to UINT_MAX.
5603 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
5604 DATA_TAIL.
5605 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
5606 <last_head>: Change type.
5607 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
5608 * common/btrace-common.c (btrace_data_append): Change the type of
5609 SIZE.
5610 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
5611 check.
5612
f168693b
SM
56132015-07-14 Simon Marchi <simon.marchi@ericsson.com>
5614
5615 * gdbtypes.h (CHECK_TYPEDEF): Remove.
5616 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
5617 with check_typedef.
5618 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
5619 (ada_array_length): Likewise.
5620 (find_parallel_type_by_descriptive_type): Likewise.
5621 (ada_check_typedef): Likewise.
5622 * arm-tdep.c (arm_return_in_memory): Likewise.
5623 * ax-gdb.c (gen_trace_static_fields): Likewise.
5624 (gen_struct_ref_recursive): Likewise.
5625 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5626 (variable: block COLONCOLON name): Likewise.
5627 (qualified_name: TYPENAME COLONCOLON name): Likewise.
5628 * c-lang.c (classify_type): Likewise.
5629 * c-typeprint.c (c_print_type): Likewise.
5630 (c_print_typedef): Likewise.
5631 (c_type_print_base): Likewise.
5632 * c-valprint.c (c_val_print): Likewise.
5633 * compile/compile-c-types.c (convert_type): Likewise.
5634 * compile/compile-object-load.c (get_out_value_type): Likewise.
5635 * completer.c (add_struct_fields): Likewise.
5636 (expression_completer): Likewise.
5637 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
5638 (cp_lookup_nested_symbol_1): Likewise.
5639 (cp_lookup_nested_symbol): Likewise.
5640 * cp-valprint.c (cp_print_value_fields): Likewise.
5641 (cp_print_static_field): Likewise.
5642 * d-valprint.c (d_val_print): Likewise.
5643 * eval.c (evaluate_subexp_standard): Likewise.
5644 (evaluate_subexp_for_sizeof): Likewise.
5645 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
5646 * f-typeprint.c (f_type_print_base): Likewise.
5647 * f-valprint.c (f_val_print): Likewise.
5648 * gdbtypes.c (get_discrete_bounds): Likewise.
5649 (create_array_type_with_stride): Likewise.
5650 (type_name_no_tag_or_error): Likewise.
5651 (lookup_struct_elt_type): Likewise.
5652 (get_unsigned_type_max): Likewise.
5653 (internal_type_vptr_fieldno): Likewise.
5654 (set_type_vptr_fieldno): Likewise.
5655 (internal_type_vptr_basetype): Likewise.
5656 (set_type_vptr_basetype): Likewise.
5657 (get_vptr_fieldno): Likewise.
5658 (is_integral_type): Likewise.
5659 (is_scalar_type): Likewise.
5660 (is_scalar_type_recursive): Likewise.
5661 (distance_to_ancestor): Likewise.
5662 (is_unique_ancestor_worker): Likewise.
5663 (check_types_equal): Likewise.
5664 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
5665
45280282
IB
56662015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
5667
5668 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
5669 also test for language_d.
5670 (dwarf2_compute_name): Likewise.
5671 (read_func_scope): Likewise.
5672 (read_structure_type): Likewise.
5673 (new_symbol_full): Likewise.
5674 (determine_prefix): Likewise.
5675 (read_import_statement): Use dot as the separator for language_d.
5676 (typename_concat): Likewise, but don't prefix the D main function.
5677
99fe86f7
PB
56782015-07-14 Peter Bergner <bergner@vnet.ibm.com>
5679
5680 * nat/linux-namespaces.c (setns): Rename from this ...
5681 (do_setns): ... to this. Support calling setns if it exists.
5682 (mnsh_handle_setns): Call do_setns.
5683
d5131498
YQ
56842015-07-13 Yao Qi <yao.qi@linaro.org>
5685
5686 * exec.c (exec_file_attach): Add period at the end of error
5687 message.
5688
97605e61
AB
56892015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
5690
5691 * tui/tui-win.c (window_name_completer): New function.
5692 (focus_completer): Call window_name_completer. All old content
5693 moved into window_name_completer.
5694 (winheight_completer): New function.
5695 (_initialize_tui_win): Rename variable. Add completer to
5696 winheight command. Update doc string on winheight.
5697
8d6dbeb4
SL
56982015-07-12 Sandra Loosemore <sandra@codesourcery.com>
5699
5700 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
5701 all nios2 mach variants.
5702
a0e28e54
KB
57032015-07-10 Kevin Buettner <kevinb@redhat.com>
5704
5705 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
5706 of target_read_memory.
5707
c101f28f
AB
57082015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5709
5710 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
5711 string copy.
5712 (parse_scrolling_args): Likewise.
5713
150375dc
AB
57142015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5715
5716 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
5717 names in this function.
5718
6dce28e4
AB
57192015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * tui/tui-data.h (SRC_NAME): Convert to lower case.
5722 (CMD_NAME): Likewise.
5723 (DATA_NAME): Likewise.
5724 (DISASSEM_NAME): Likewise.
5725 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
5726 (tui_set_win_height): Likewise.
5727 (parse_scrolling_args): Likewise.
5728
485668e5
MM
57292015-07-10 Markus Metzger <markus.t.metzger@intel.com>
5730
5731 * record-btrace.c (record_btrace_goto_begin)
5732 (record_btrace_goto_end, record_btrace_goto): Move call to
5733 print_stack_frame ...
5734 (record_btrace_set_replay): ... here. Set stop_pc.
5735 * record-full.c (record_full_goto_entry): Set stop_pc.
5736
58d2eda5
PL
57372015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5738
5739 * NEWS: Mention support for tracepoints on aarch64-linux.
5740
7671bf47
PL
57412015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5742
5743 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
5744 function. Return 1.
5745 (the_low_target): Install it.
5746
7890fb45
PL
57472015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5748
5749 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
5750 * gdb.trace/collection.exp: Likewise.
5751 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
5752 * gdb.trace/mi-trace-unavailable.exp: Likewise.
5753 * gdb.trace/report.exp: Likewise.
5754 * gdb.trace/trace-break.exp: Likewise.
5755 * gdb.trace/unavailable.exp: Likewise.
5756 * gdb.trace/while-dyn.exp: Likewise.
5757
ea873d8e
PL
57582015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5759
5760 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
5761 (aarch64_gen_return_address): New function.
5762 (aarch64_gdbarch_init): Hook it.
5763
02a2a705
PL
57642015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5765
5766 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
5767 swallow NOT_AVAILABLE_ERROR.
5768 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
5769 available_p is not set.
5770 (aarch64_stub_frame_unwind_stop_reason): New function.
5771 (aarch64_stub_unwind): Install it.
5772
7dfa3edc
PL
57732015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5774
5775 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
5776 field.
5777 (aarch64_make_prologue_cache_1): New function, factored out from
5778 aarch64_make_prologue_cache. Do not allocate cache. Set
5779 available_p.
5780 (aarch64_make_prologue_cache): Reimplement wrapping
5781 aarch64_make_prologue_cache_1, and swallowing
5782 NOT_AVAILABLE_ERROR.
5783 (aarch64_prologue_frame_unwind_stop_reason): New function.
5784 Return UNWIND_UNAVAILABLE if available_p is not set.
5785 (aarch64_prologue_unwind): Install it.
5786 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
5787 checks into aarch64_prologue_frame_unwind_stop_reason. Call
5788 frame_id_build_unavailable_stack if available_p is not set.
5789
db634143
PL
57902015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5791
5792 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
5793 fields.
5794 (aarch64_scan_prologue): Set prev_pc.
5795 (aarch64_make_prologue_cache): Set func.
5796 (aarch64_make_stub_cache): Set prev_pc.
5797 (aarch64_prologue_this_id): Remove local variables id, pc and
5798 func. Read prev_pc and func from cache.
5799 (aarch64_stub_this_id): Read prev_pc from cache.
5800
8b61f75d
PL
58012015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5802
5803 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
5804 argument this_cache. Remove unused local variables reg and
5805 unwound_fp. Return early if this_cache is already set. Set
5806 this_cache.
5807 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
5808
7c8edfae
PL
58092015-07-09 Pierre Langlois <pierre.langlois@arm.com>
5810
5811 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
5812 New argument this_cache. Return early if this_cache is already
5813 set. Set this_cache.
5814 (aarch64_prologue_this_id): Update call to
5815 aarch64_make_prologue_cache.
5816 (aarch64_prologue_prev_register): Likewise.
5817 (aarch64_normal_frame_base): Likewise.
5818
938c69a1
SM
58192015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5820
5821 * c-valprint.c (c_val_print): Factor out memberptr printing code
5822 from c_val_print to ...
5823 (c_val_print_memberptr): ... this new function.
5824
49f7fe28
SM
58252015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5826
5827 * c-valprint.c (c_val_print): Factor out int printing code to ...
5828 (c_val_print_int): ... this new function.
5829
9e4f353c
SM
58302015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5831
5832 * c-valprint.c (c_val_print): Factor out struct and union
5833 printing code to ...
5834 (c_val_print_struct): ... this new function ...
5835 (c_val_print_union): ... and this new function.
5836
1c67f032
SM
58372015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5838
5839 * c-valprint.c (c_val_print): Factor out pointer printing code
5840 to ...
5841 (c_val_print_ptr): ... this new function.
5842
0b6ef777
SM
58432015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5844
5845 * c-valprint.c (c_valprint): Factor our array printing code from
5846 c_val_print to ...
5847 (c_val_print_array): ... this new function.
5848
1033c33c
SM
58492015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5850
5851 * c-valprint.c (c_val_print): Factor out pointer printing code
5852 to ...
5853 (print_unpacked_pointer): ... this new function.
5854
f6b93c34
SM
58552015-07-09 Simon Marchi <simon.marchi@ericsson.com>
5856
5857 * c-valprint.c (c_val_print): Remove an assignment to i and move
5858 its declaration.
5859
0f4576e3
YQ
58602015-07-09 Yao Qi <yao.qi@linaro.org>
5861
5862 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
5863 argument ptid. Update comments. Caller update.
5864
37fdfe4c
MM
58652015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5866
5867 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
5868 mnt packets.
5869
80a2b330
MM
58702015-07-09 Markus Metzger <markus.t.metzger@intel.com>
5871
5872 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
5873
4ab31498
SM
58742015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5875
5876 * progspace.c (delete_program_space): Add missing spaces.
5877
7a41607e
SM
58782015-07-08 Simon Marchi <simon.marchi@ericsson.com>
5879
5880 * inferior.c (delete_inferior_1): Rename to ...
5881 (delete_inferior): ..., remove 'silent' parameter, delete
5882 program space when unused and remove call to prune_program_spaces.
5883 Remove the old, unused, delete_inferior.
5884 (delete_inferior_silent): Remove.
5885 (prune_inferiors): Change call from delete_inferior_1 to
5886 delete_inferior and remove 'silent' parameter. Remove call to
5887 prune_program_spaces.
5888 (remove_inferior_command): Idem.
5889 * inferior.h (delete_inferior_1): Rename to...
5890 (delete_inferior): ..., remove 'silent' parameter and remove the
5891 original delete_inferior.
5892 (delete_inferior_silent): Remove.
5893 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
5894 delete_inferior_1 to delete_inferior and remove 'silent'
5895 parameter.
5896 * progspace.c (prune_program_spaces): Remove.
5897 (pspace_empty_p): Rename to...
5898 (program_space_empty_p): ... and make non-static.
5899 (delete_program_space): New.
5900 * progspace.h (prune_program_spaces): Remove declaration.
5901 (program_space_empty_p): New declaration.
5902 (delete_program_space): New declaration.
5903 * monitor.c (monitor_close): Replace call to
5904 delete_thread_silent and delete_inferior_silent with
5905 discard_all_inferiors.
5906
a9bd710f
PP
59072015-07-08 Patrick Palka <patrick@parcs.ath.cx>
5908
5909 * defs.h (deprecated_register_changed_hook): Remove prototype.
5910 * interps.c (clear_iterpreter_hooks): Remove reference to
5911 deprecated_register_changed_hook.
5912 * top.c (deprecated_register_changed_hook): Remove prototype.
5913 * valops.c (value_assign): Remove reference to
5914 deprecated_register_changed_hook.
5915 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
5916 Add comment documenting the function.
5917 (tui_register_changed_observer): Define.
5918 (tui_install_hooks): Remove reference to
5919 deprecated_register_changed_hook. Set
5920 tui_register_changed_observer.
5921 (tui_remove_hooks): Remove reference to
5922 deprecated_register_changed_hook. Unset
5923 tui_register_changed_observer.
5924
08464196
JK
59252015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5926
5927 PR compile/18484
5928 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
5929
bcf5c1d9
RC
59302015-07-08 Robert O'Callahan <robert@ocallahan.org>
5931
5932 PR exp/18617
5933 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
5934
e8643a45
MM
59352015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5936
5937 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
5938
76fb6829
MM
59392015-07-08 Markus Metzger <markus.t.metzger@intel.com>
5940
5941 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
5942 Use safe_strerror() instead of strerror().
5943
82c40d4b
YQ
59442015-07-07 Yao Qi <yao.qi@linaro.org>
5945
5946 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
5947 * features/arm-with-m-fpa-layout.c: Regenerated.
5948 * features/arm-with-m-vfp-d16.xml: Likewise.
5949 * features/arm-with-m-vfp-d16.c: Regenerated.
5950 * features/arm-with-m.xml: Likewise.
5951 * features/arm-with-m.c: Regenerated.
5952 * features/arm-with-neon.xml: Likewise.
5953 * features/arm-with-neon.c: Regenerated.
5954 * features/arm-with-vfpv2.xml: Likewise.
5955 * features/arm-with-vfpv2.c: Regenerated.
5956 * features/arm-with-vfpv3.xml: Likewise.
5957 * features/arm-with-vfpv3.c: Regenerated.
5958
607685ec
YQ
59592015-07-07 Yao Qi <yao.qi@linaro.org>
5960
5961 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
5962 arm-linux-nat.c.
5963 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
5964 elf/external.h.
5965 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
5966 if target is 32-bit.
5967 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
5968 if target is 32-bit.
5969 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
5970 if target is 32-bit.
5971 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
5972 if target is 32-bit.
5973 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
5974 (aarch64_linux_read_description): Return the right target
5975 description.
5976 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
5977 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5978 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
5979 arm-linux-tdep.o.
5980
f1b67888
YQ
59812015-07-07 Yao Qi <yao.qi@linaro.org>
5982
5983 * aarch32-linux-nat.c: New file.
5984 * aarch32-linux-nat.h: New file.
5985 * arm-linux-nat.c: Include aarch32-linux-nat.h.
5986 (fetch_regs): Move code to aarch32-linux-nat.c. Call
5987 aarch32_gp_regcache_supply.
5988 (store_regs): Move code to aarch32-linux-nat.c. Call
5989 aarch32_gp_regcache_collect.
5990 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
5991 aarch32_vfp_regcache_supply.
5992 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
5993 aarch32_vfp_regcache_collect.
5994 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
5995
179bfe82
YQ
59962015-07-07 Yao Qi <yao.qi@linaro.org>
5997
5998 * arm-linux-nat.c (store_fpregister): Remove.
5999 (store_register): Likewise.
6000 (fetch_fpregister): Likewise.
6001 (fetch_register): Likewise.
6002 (arm_linux_store_inferior_registers): Call store_regs and
6003 store_fpregs instead.
6004 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
6005 fetch_regs instead.
6006
6008fc5f
AB
60072015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6008
6009 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
6010 and focus commands.
6011
7c79d316
JB
60122015-07-06 Joel Brobecker <brobecker@adacore.com>
6013
6014 * NEWS: Create a new section for the next release branch.
6015 Rename the section of the current branch, now that it has
6016 been cut.
6017
f2232bea
JB
60182015-07-06 Joel Brobecker <brobecker@adacore.com>
6019
6020 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
6021 * version.in: Bump version to 7.10.50.DATE-cvs.
6022
66c4b3e8
LM
60232015-07-06 Luis Machado <lgustavo@codesourcery.com>
6024
6025 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
6026 breakpoints in a special way.
6027 (remove_breakpoint): Likewise.
6028 (mark_breakpoints_out): Likewise.
6029
bcd8537c
AB
60302015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * doc/gdb.texinfo (TUI): Add comma after @xref.
6033
10e9aaa3
AB
60342015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6035
6036 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
6037 instead of casting the structure type.
6038
8a13d42d
SM
60392015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6040
6041 * valops.c (search_struct_field): Remove OFFSET parameter.
6042 (value_cast_structs): Adjust calls to search_struct_field.
6043 (value_struct_elt): Same.
6044 (find_overload_match): Same.
6045
a844296a
SM
60462015-07-06 Simon Marchi <simon.marchi@ericsson.com>
6047
6048 * value.c (value_fetch_lazy): Update comment, change return
6049 value to void.
6050 * value.h (value_fetch_lazy): Change return value to void.
6051
f41cbf58
AB
60522015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6053
6054 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
6055 (tui_win_name): Make parameter and result const.
6056 * tui/tui-data.h (tui_win_name): Make parameter and result const.
6057
118ca224
PP
60582015-07-06 Patrick Palka <patrick@parcs.ath.cx>
6059
6060 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
6061 use printf_unfiltered.
6062 (set_mpx_cmd): Add missing trailing space to command string
6063 literal.
6064 (_initialize_i386_tdep): Give the "mpx" prefix command its
6065 correct name.
6066
1b485e67
KB
60672015-07-02 Kevin Buettner <kevinb@redhat.com>
6068
6069 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
6070 (enum rx_frame_type): New.
6071 (struct rx_prologue): Add new field `frame_type'.
6072 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
6073 parameter in the prologue struct. Add code for recording
6074 locations of PC and PSW for fast interrupt and exception frames.
6075 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
6076 (rx_analyze_frame_prologue): Add `frame_type' parameter.
6077 (rx_frame_type): New function.
6078 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
6079 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
6080 `this_cache'.
6081 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 6082 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
6083 RX_FRAME_TYPE_FAST_INTERRUPT.
6084 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
6085 (rx_frame_sniffer, rx_exception_sniffer): New functions.
6086 (rx_frame_unwind): Use rx_frame_sniffer instead of
6087 default_frame_sniffer.
6088 (rx_frame_unwind): New unwinder.
6089 (rx_gdbarch_init): Register new unwinder.
6090
0561fea4
KB
60912015-07-02 Kevin Buettner <kevinb@redhat.com>
6092
6093 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
6094 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
6095 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
6096 and RX_FPSW_REGNUM.
6097 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
6098
decf8d9a
JK
60992015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6100
6101 Fix GCC false warning.
6102 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
6103
2fd0f80d
YQ
61042015-07-02 Yao Qi <yao.qi@linaro.org>
6105
6106 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
6107 typo in the debugging message.
6108
b0627500
MM
61092015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6110
6111 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
6112 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
6113 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
6114 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
6115 (btrace_maint_clear): New.
6116 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
6117 (pt_print_packet, btrace_maint_decode_pt)
6118 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
6119 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
6120 (maint_btrace_packet_history_cmd)
6121 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
6122 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
6123 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
6124 (maint_info_btrace_cmd, _initialize_btrace): New.
6125 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
6126 (btrace_maint_packet_history, btrace_maint_info): New.
6127 (btrace_thread_info) <maint>: New.
6128 * NEWS: Announce it.
6129
9be54cae
MM
61302015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6131
6132 * btrace.c (btrace_fetch): Append the new trace data.
6133 (btrace_clear): Clear the stored trace data.
6134 * btrace.h (btrace_thread_info) <data>: New.
6135 * common/btrace-common.h (btrace_data_clear)
6136 (btrace_data_append): New.
6137 * common/btrace-common.c (btrace_data_clear)
6138 (btrace_data_append): New.
6139
010a18a1
MM
61402015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6141
6142 * nat/linux-btrace.c (linux_enable_bts): Check for
6143 PERF_ATTR_SIZE_VER5.
6144 Check for data_offset and data_size fields. Use them.
6145
b20a6524
MM
61462015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6147
6148 * NEWS: Announce new commands "record btrace pt" and "record pt".
6149 Announce new options "set|show record btrace pt buffer-size".
6150 * btrace.c: Include "rsp-low.h".
6151 Include "inttypes.h".
6152 (btrace_add_pc): Add forward declaration.
6153 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
6154 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
6155 (btrace_compute_ftrace_pt): New.
6156 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
6157 (check_xml_btrace_version): Update version check.
6158 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
6159 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
6160 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
6161 (btrace_pt_children): New.
6162 (btrace_children): Add support for "pt".
6163 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
6164 (btrace_conf_children): Add support for "pt".
6165 * btrace.h: Include "intel-pt.h".
6166 (btrace_pt_error): New.
6167 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
6168 (btrace_data_empty): Support BTRACE_FORMAT_PT.
6169 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
6170 (struct btrace_config_pt): New.
6171 (struct btrace_config)<pt>: New.
6172 (struct btrace_data_pt_config, struct btrace_data_pt): New.
6173 (struct btrace_data)<pt>: New.
6174 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
6175 (pt): New.
6176 * features/btrace.dtd (btrace)<pt>: New.
6177 (pt, pt-config, cpu): New.
6178 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
6179 (perf_event_pt_event_type, kernel_supports_pt)
6180 (linux_supports_pt): New.
6181 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
6182 (linux_enable_bts): Free tinfo on error.
6183 (linux_enable_pt): New.
6184 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
6185 (linux_disable_pt): New.
6186 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
6187 (linux_fill_btrace_pt_config, linux_read_pt): New.
6188 (linux_read_btrace): Support BTRACE_FORMAT_PT.
6189 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
6190 (struct btrace_target_info)<pt>: New.
6191 * record-btrace.c (set_record_btrace_pt_cmdlist)
6192 (show_record_btrace_pt_cmdlist): New.
6193 (record_btrace_print_pt_conf): New.
6194 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
6195 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
6196 (cmd_record_btrace_pt_start): New.
6197 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
6198 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
6199 (_initialize_record_btrace): Add new commands.
6200 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
6201 (remote_protocol_features): Add "Qbtrace:pt".
6202 Add "Qbtrace-conf:pt:size".
6203 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
6204 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
6205 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
6206 (_initialize_remote): Add new commands.
6207
58bfce93
MM
62082015-07-02 Markus Metzger <markus.t.metzger@intel.com>
6209
6210 * configure.ac: check for libipt
6211 * configure: Regenerate.
6212 * config.in: Regenerate.
6213 * Makefile.in (LIBIPT): New.
6214 (CLIBS): Add $LIBIPT.
6215 * NEWS: document new configure options
6216
b0fd6b30
JK
62172015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6218
6219 * compile/compile-object-load.c (compile_object_load): Replace debug
6220 message "lookup undefined ELF symbol" by 3 more specific messages.
6221
e6280369
KB
62222015-07-01 Kevin Buettner <kevinb@redhat.com>
6223
6224 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
6225 (rl78_register_type): Add case for RL78_PSW_REGNUM.
6226 (rl78_gdbarch_init): Initialize rl78_psw_type.
6227
bbcbf914
PP
62282015-07-01 Patrick Palka <patrick@parcs.ath.cx>
6229
6230 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
6231 Update commentary. Always refresh the registers when frame
6232 information has changed.
6233 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
6234 Change return type to int. Return 1 if frame information has
6235 changed, 0 otherwise.
6236 (tui_before_prompt): Update commentary.
6237 * tui/tui-stack.h (tui_show_frame_info): Change return type to
6238 int.
6239
0986c744
PP
62402015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6241
6242 PR tui/13378
6243 * frame.c (select_frame): Remove reference to
6244 deprecated_selected_frame_level_changed_hook.
6245 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
6246 declaration.
6247 * stack.c (deprecated_selected_frame_level_changed_hook):
6248 Likewise.
6249 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
6250 Rename to ...
6251 (tui_refresh_frame_and_register_information): ... this. Bail
6252 out if there is no stack. Don't update register information
6253 unless registers_too_p is true.
6254 (tui_print_frame_info_listing_hook): Rename to ...
6255 (tui_dummy_print_frame_info_listing_hook): ... this.
6256 (tui_before_prompt): New function.
6257 (tui_normal_stop): New function.
6258 (tui_before_prompt_observer): New observer.
6259 (tui_normal_stop_observer): New observer.
6260 (tui_install_hooks): Set
6261 deprecated_print_frame_info_listing_hook to
6262 tui_dummy_print_frame_info_listing_hook. Register
6263 tui_before_prompt_observer to call tui_before_prompt and
6264 tui_normal_stop_observer to call tui_normal_stop. Remove
6265 reference to deprecated_selected_frame_level_changed_hook.
6266 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
6267 and tui_normal_stop_observer. Remove reference to
6268 deprecated_selected_frame_level_changed_hook.
6269
b5fca6d7
PP
62702015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6271
6272 PR tui/13378
6273 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
6274 return an int instead of void. Return whether the locator
6275 window has changed.
6276 (tui_show_frame_info): If the locator info has not changed, then
6277 bail out early to avoid refreshing the windows.
6278
c45613e3
PP
62792015-06-30 Patrick Palka <patrick@parcs.ath.cx>
6280
6281 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
6282 LOCATOR_WIN to tui_alloc_content.
6283
7b9be803
YQ
62842015-06-30 Yao Qi <yao.qi@linaro.org>
6285
6286 PR tdep/18605
6287 * arm-tdep.c (arm_get_next_pc_raw): Break for media
6288 instructions.
6289
fd6e021d
KB
62902015-06-29 Kevin Buettner <kevinb@redhat.com>
6291
78ab7e9d
KB
6292 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
6293 (rx_dwarf_reg_to_regnum): New function.
6294 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
6295 unwinding.
fd6e021d 6296
28bf096c
PA
62972015-06-29 Pedro Alves <palves@redhat.com>
6298
6299 PR threads/18127
6300 * infcall.c (run_inferior_call): On infcall success, if the thread
6301 was marked stopped before, reset it back to stopped.
6302 * infrun.c (resume): Don't suppress the set_running calls when
6303 doing an infcall.
6304 (normal_stop): Only discard the finish_thread_state cleanup if the
6305 infcall succeeded.
6306
2880b51c 63072015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
6308
6309 * MAINTAINERS (Write After Approval): Update my email address.
6310
ee93cd5e
KS
63112015-06-26 Keith Seitz <keiths@redhat.com>
6312 Doug Evans <dje@google.com>
6313
6314 PR 16253
6315 * block.c (block_lookup_symbol): For non-function blocks,
6316 continue to search for a symbol with an exact domain match
6317 Otherwise, return any previously found "best domain" symbol.
6318 (block_lookup_symbol_primary): Likewise.
6319
fc637f04
PP
63202015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6321
6322 * NEWS: Mention the new option "history remove-duplicates".
6323 * top.c (history_remove_duplicates): New static variable.
6324 (show_history_remove_duplicates): New static function.
6325 (gdb_add_history): Conditionally remove duplicate history
6326 entries.
6327 (init_main): Add "history remove-duplicates" option.
6328
2e52ae68
PP
63292015-06-26 Patrick Palka <patrick@parcs.ath.cx>
6330
6331 * tui/tui-win.c (focus_completer): New static function.
6332 (_initialize_tui_win): Set the completion function of the
6333 "focus" command to focus_completer.
6334
6e22494e
JK
63352015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6336
6337 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
6338 and language_asm..
6339 * symtab.c (find_function_start_sal): Likewise.
6340
f8773be1
GB
63412015-06-25 Gary Benson <gbenson@redhat.com>
6342
6343 * solib.c (solib_find_1): Set local variable sysroot to NULL if
6344 it is the empty string after trailing slashes have been stripped.
6345
a3be80c3
GB
63462015-06-25 Gary Benson <gbenson@redhat.com>
6347
6348 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
6349 * infrun.c (follow_exec): Likewise.
6350 * remote.c (remote_filesystem_is_local): Likewise.
6351 * solib.c (solib_find_1): Likewise.
6352
32fad71f
KS
63532015-06-24 Keith Seitz <keiths@redhat.com>
6354
6355 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
6356 return value from lrealpath.
6357
87d1b309
MF
63582015-06-24 Mike Frysinger <vapier@gentoo.org>
6359
6360 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
6361
23bf70af
MF
63622015-06-24 Mike Frysinger <vapier@gentoo.org>
6363
6364 * remote-sim.c: Include gdb_bfd.h.
6365 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
6366 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
6367
5cd867b4
YQ
63682015-06-24 Yao Qi <yao.qi@linaro.org>
6369
6370 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
6371 set_gdbarch_get_siginfo_type.
6372 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
6373 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
6374 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
6375 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
6376 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
6377 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
6378 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
6379 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
6380 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
6381 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
6382
dc06243f
GB
63832015-06-24 Gary Benson <gbenson@redhat.com>
6384
6385 * common/buffer.c (stdint.h): Do not include.
6386 * common/print-utils.c (stdint.h): Likewise.
6387 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
6388 * compile/compile-c-types.c (gdb_assert.h): Likewise.
6389 * ft32-tdep.c (gdb_assert.h): Likewise.
6390 * guile/scm-utils.c (stdint.h): Likewise.
6391 * i386-linux-tdep.c (stdint.h): Likewise.
6392 * i386-tdep.c (stdint.h): Likewise.
6393 * nat/linux-btrace.c (stdint.h): Likewise.
6394 * nat/linux-btrace.h (stdint.h): Likewise.
6395 * nat/linux-ptrace.c (stdint.h): Likewise.
6396 * nat/mips-linux-watch.h (stdint.h): Likewise.
6397 * ppc-linux-nat.c (stdint.h): Likewise.
6398 * python/python-internal.h (stdint.h): Likewise.
6399 * stub-termcap.c (stdlib.h): Likewise.
6400 * target/target.h (stdint.h): Likewise.
6401 * xtensa-linux-nat.c (stdint.h): Likewise.
6402
0fc26caf
PP
64032015-06-23 Patrick Palka <patrick@parcs.ath.cx>
6404
6405 * top.c (init_history): Look at errno after calling strtol to
6406 properly map large GDBHISTSIZE values to infinity.
6407
a38fe4fe
DE
64082015-06-23 Doug Evans <dje@google.com>
6409
6410 * inferior.h (struct inferior_suspend_state): Delete, unused.
6411 All references deleted.
6412
7564fe45
MF
64132015-06-23 Mike Frysinger <vapier@gentoo.org>
6414
6415 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
6416 (microblaze_push_dummy_call): Likewise.
6417 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
6418 and set_gdbarch_push_dummy_call.
6419
0bdb2f78
YQ
64202015-06-23 Yao Qi <yao.qi@linaro.org>
6421
6422 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
6423 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
6424 (amd64_linux_store_inferior_registers): Likewise.
6425 * arm-linux-nat.c (fetch_fpregister): Likewise.
6426 (fetch_fpregs, store_fpregister): Likewise.
6427 (store_fpregister, store_fpregs): Likewise.
6428 (fetch_register, fetch_regs): Likewise.
6429 (store_register, store_regs): Likewise.
6430 (fetch_vfp_regs, store_vfp_regs): Likewise.
6431 (arm_linux_read_description): Check have_ptrace_getregset is
6432 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
6433 or TRIBOOL_FALSE.
6434 * i386-linux-nat.c (fetch_xstateregs): Check
6435 have_ptrace_getregset is not TRIBOOL_TRUE.
6436 (store_xstateregs): Likewise.
6437 * linux-nat.c (have_ptrace_getregset): Change its type to
6438 enum tribool.
6439 * linux-nat.h (tribool): New enum.
6440 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
6441 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
6442
18a94d75
DE
64432015-06-19 Doug Evans <dje@google.com>
6444
6445 * NEWS: Mention Sun's version of stabs is no longer supported.
6446 * elfread.c (free_elfinfo): Delete. All uses updated.
6447 (elfstab_offset_sections): Delete. All uses updated.
6448 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
6449 * psympriv.h (partial_symtab) <section_offsets>: Delete.
6450 All uses updated.
6451 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
6452 All callers updated.
6453
124e13d9
SM
64542015-06-18 Simon Marchi <simon.marchi@ericsson.com>
6455
6456 * common/rsp-low.c (needs_escaping): New.
6457 (remote_escape_output): Add unit_size parameter. Refactor to
6458 support multi-byte addressable units. Rename parameters.
6459 * common/rsp-low.h (remote_escape_output): Add unit_size
6460 parameter and rename others. Update doc.
6461 * remote.c (align_for_efficient_write): New.
6462 (remote_write_bytes_aux): Add unit_size parameter and use it.
6463 Rename some variables. Update doc.
6464 (remote_xfer_partial): Get unit size and use it.
6465 (remote_read_bytes_1): Add unit_size parameter and use it.
6466 Rename some variables. Update doc.
6467 (remote_write_bytes): Same.
6468 (remote_xfer_live_readonly_partial): Same.
6469 (remote_read_bytes): Same.
6470 (remote_flash_write): Update call to remote_write_bytes_aux.
6471 (remote_write_qxfer): Update call to remote_escape_output.
6472 (remote_search_memory): Same.
6473 (remote_hostio_pwrite): Same.
6474
6ae88661
LM
64752015-06-17 Luis Machado <lgustavo@codesourcery.com>
6476
6477 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
6478 locations as inserted.
6479 Update and expand comment about permanent locations.
6480 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
6481 Move comment to add_location_to_breakpoint.
6482 (update_global_location_list): Don't error out if a permanent
6483 breakpoint is not marked inserted.
6484 Don't error out if a non-permanent breakpoint location is inserted on
6485 top of a permanent breakpoint.
6486
da4616f6
LM
64872015-06-17 Luis Machado <lgustavo@codesourcery.com>
6488
6489 * breakpoint.c (make_breakpoint_permanent): Remove unused
6490 function.
6491 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
6492
bc460514
PP
64932015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6494
6495 PR gdb/16999
6496 * NEWS: Mention new GDBHISTSIZE behavior.
6497 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
6498 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
6499
b58c513b
PP
65002015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6501
6502 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
6503 * top.c (init_history): Read from GDBHISTSIZE instead of
6504 HISTSIZE.
6505 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
6506
2093d2d3
PP
65072015-06-17 Patrick Palka <patrick@parcs.ath.cx>
6508
6509 * top.c (gdb_safe_append_history): Do not call
6510 history_truncate_file if the history is not stifled.
6511
fc248485
AA
65122015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
6513
6514 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
6515 * syscalls/s390x-linux.xml: Likewise.
6516
4da680ad
ME
65172015-06-16 Michael Eager <eager@eagercon.com>
6518
6519 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
6520
0a75489f
PP
65212015-06-16 Patrick Palka <patrick@parcs.ath.cx>
6522
6523 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
6524 target_terminal_ours_for_output() before calling
6525 tui_show_frame_info(), and restore the original terminal
6526 settings afterwards.
6527
95855ca8
MS
65282015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
6529
6530 * arm-linux-nat.c: Include nat/linux-ptrace.h.
6531
cfc32360
SM
65322015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6533
6534 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
6535 memory unit size.
6536 (mi_cmd_data_write_memory_bytes): Same.
6537
cb6f16cf
SM
65382015-06-15 Simon Marchi <simon.marchi@ericsson.com>
6539
6540 * corefile.c (write_memory): Update doc.
6541 * gdbcore.h (write_memory): Same.
6542
31b7833d
JK
65432015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6544
6545 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
6546 (dump_mapping_p): Use it for parameter filterflags.
6547 (linux_find_memory_regions_full): Use it for variable filterflags.
6548
909c2cda
JK
65492015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6550 Jan Kratochvil <jan.kratochvil@redhat.com>
6551
6552 Merge multiple hex conversions.
6553 * monitor.c: Include rsp-low.h.
6554 (fromhex): Remove definition.
6555
03aef70f
JK
65562015-06-15 Aleksandar Ristovski <aristovski@qnx.com
6557 Jan Kratochvil <jan.kratochvil@redhat.com>
6558
6559 Move utility functions to common/.
6560 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
6561 Move defs to common/common-utils.c.
6562 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
6563 (skip_to_space_const): Move decls to common/common-utils.h.
6564 * common/common-defs.h: Move include of common-types.h before
6565 common-utils.h.
6566 * common/common-utils.c: Include host-defs.h and ctype.h.
6567 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
6568 from utils.c.
6569 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
6570 cli/cli-utils.c.
6571 * common/common-utils.h (strtoulst): Move decl from utils.h.
6572 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
6573 Move from cli/cli-utils.h.
6574 * common/host-defs.h: Include limits.h.
6575 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
6576 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
6577 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
6578 common/common-utils.h.
6579 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
6580 (strtoulst): Move to common/common-utils.c.
6581 * utils.h (strtoulst): Moved decl to common/common-utils.h.
6582
d1168cc1
YQ
65832015-06-15 Yao Qi <yao.qi@linaro.org>
6584
6585 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
6586
c74f7d1c
JT
65872015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
6588
6589 * build-id.c: Don't include elf-bfd.h.
6590 (build_id_bfd_get): Use bfd_build_id.
6591 (build_id_verify): Ditto.
6592 * build-id.h: Ditto.
6593 (find_separate_debug_file_by_buildid): Ditto.
6594 * python/py-objfile.c: Don't include elf-bfd.h.
6595 (objfpy_get_build_id) Use bfd_build_id.
6596 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
6597 * coffread.c: Include build-id.h.
6598 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
6599
f20c58f5
JT
66002015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6601
6602 * windows-nat.c (do_windows_fetch_inferior_registers)
6603 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
6604 conditional with __CYGWIN__.
6605
51f0e40d
AB
66062015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
6607
6608 * completer.c: Add arch-utils.h include.
6609 (enum reg_completer_targets): New enum.
6610 (reg_or_group_completer_1): New function containing old
6611 reg_or_group_completer, add and use new parameter to control what
6612 is completed on. Use get_current_arch rather than architecture of
6613 currently selected frame.
6614 (reg_or_group_completer): Call new reg_or_group_completer_1.
6615 (reggroup_completer): Call new reg_or_group_completer_1.
6616 * completer.h (reggroup_completer): Add declaration.
6617 * tui/tui-regs.c: Add 'completer.h' include.
6618 (tui_reg_next_command): Renamed to...
6619 (tui_reg_next): ...this. Adjust parameters and return rather than
6620 display new group.
6621 (tui_reg_prev_command): Renamed to...
6622 (tui_reg_prev): ...this. Adjust parameters and return rather than
6623 display new group.
6624 (tui_reg_float_command): Delete.
6625 (tui_reg_general_command): Delete.
6626 (tui_reg_system_command): Delete.
6627 (tui_reg_command): Rewrite to perform switching of register group.
6628 Add header comment.
6629 (tuireglist): Remove.
6630 (tui_reggroup_completer): New function.
6631 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
6632 creation of 'tui reg' command.
6633 * NEWS: Add comment about 'tui reg' changes.
6634
d309493c
SM
66352015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6636
6637 * target.c (target_read): Consider addressable unit size when
6638 reading from a memory object.
6639 (read_memory_robust): Same.
6640 (read_whatever_is_readable): Same.
6641 (target_write_with_progress): Consider addressable unit size
6642 when writing to a memory object.
6643 * target.h (target_read): Update documentation.
6644 (target_write): Add documentation.
6645
3374165f
SM
66462015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6647
6648 * arch-utils.h (default_addressable_memory_unit_size): New.
6649 * arch-utils.c (default_addressable_memory_unit_size): New.
6650 * gdbarch.sh (addressable_memory_unit_size): New.
6651 * gdbarch.h: Re-generate.
6652 * gdbarch.c: Re-generate.
6653
279a6fed
SM
66542015-06-12 Simon Marchi <simon.marchi@ericsson.com>
6655
6656 * target.c (target_read): Rename variables and use
6657 TARGET_XFER_E_IO.
6658 (target_read_with_progress): Same.
6659 (read_memory_robust): Constify parameters and rename
6660 variables.
6661 (read_whatever_is_readable): Constify parameters,
6662 rename variables, adjust formatting.
6663 * target.h (read_memory_robust): Constify parameters.
6664
1e5338b6 66652015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
6666
6667 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
6668 synthetic (non-AltiVec) vector types.
6669 (ppc64_sysv_abi_return_value): Likewise.
6670
98aa42ee
AT
66712015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
6672
6673 PR breakpoints/16465
6674 * breakpoint.c (create_breakpoint): Save extra_string for
6675 pending breakpoints.
6676
966f0aef
WT
66772015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6678
6679 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
6680 and bt_mask to CORE_ADDR.
6681
6449ed0d
GB
66822015-06-11 Gary Benson <gbenson@redhat.com>
6683
6684 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
6685 (mnsh_recv_message): Likewise.
6686
34f8ac9f
WT
66872015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
6688
6689 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
6690 long long int and plongest instead of %ll.
6691
198c808c
GB
66922015-06-11 Gary Benson <gbenson@redhat.com>
6693
6694 * nat/linux-namespaces.c (gdb_wait.h): New include.
6695 (sys/wait.h): Do not include.
6696
e815d2d2
SM
66972015-06-10 Simon Marchi <simon.marchi@ericsson.com>
6698
6699 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
6700 end_sequence is true.
6701
8847cac2
JK
67022015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6703
6704 Code cleanup.
6705 * solib-target.c (library_list_start_list): Use explicit NULL
6706 comparison.
6707
24c05f46
JK
67082015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6709
6710 * solib-target.c (library_list_start_list): Do not dereference
6711 variable version in its initialization. Make the VERSION check handle
6712 NULL.
6713 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
6714
51aad7cc
GB
67152015-06-10 Gary Benson <gbenson@redhat.com>
6716
6717 * NEWS: Announce support for direct access of executable and
6718 shared library files when attaching to inferiors in containers
6719 on GNU/Linux systems.
6720
15a201c8
GB
67212015-06-10 Gary Benson <gbenson@redhat.com>
6722
6723 * remote.c (struct remote_state) <fs_pid>: New field.
6724 (new_remote_state): Initialize the above.
6725 (PACKET_vFile_setfs): New enum value.
6726 (remote_hostio_set_filesystem): New function.
6727 (remote_hostio_open): Call the above.
6728 (remote_hostio_unlink): Likewise.
6729 (remote_hostio_readlink): Likewise.
6730 (_initialize_remote): Register new "set/show remote
6731 hostio-setfs-packet" command.
6732 * NEWS: Announce new vFile:setfs packet.
6733
7a6a1731
GB
67342015-06-10 Gary Benson <gbenson@redhat.com>
6735
6736 * linux-nat.c (nat/linux-namespaces.h): New include.
6737 (fileio.h): Likewise.
6738 (linux_nat_filesystem_is_local): New function.
6739 (linux_nat_fileio_pid_of): Likewise.
6740 (linux_nat_fileio_open): Likewise.
6741 (linux_nat_fileio_readlink): Likewise.
6742 (linux_nat_fileio_unlink): Likewise.
6743 (linux_nat_add_target): Initialize to_filesystem_is_local,
6744 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
6745 (_initialize_linux_nat): New "set/show debug linux-namespaces"
6746 commands.
6747 * NEWS: Mention new "set/show debug linux-namespaces" commands.
6748
07c138c8
GB
67492015-06-10 Gary Benson <gbenson@redhat.com>
6750
6751 * target.h (struct inferior): New forward declaration.
6752 (struct target_ops) <to_filesystem_is_local>: Update comment.
6753 (struct target_ops) <to_fileio_open>: New argument inf.
6754 Update comment. All implementations updated.
6755 (struct target_ops) <to_fileio_unlink>: Likewise.
6756 (struct target_ops) <to_fileio_readlink>: Likewise.
6757 (target_filesystem_is_local): Update comment.
6758 (target_fileio_open): New argument inf. Update comment.
6759 (target_fileio_unlink): Likewise.
6760 (target_fileio_readlink): Likewise.
6761 (target_fileio_read_alloc): Likewise.
6762 (target_fileio_read_stralloc): Likewise.
6763 * target.c (target_fileio_open): New argument inf.
6764 Pass inf to implementation. Update debug printing.
6765 (target_fileio_unlink): Likewise.
6766 (target_fileio_readlink): Likewise.
6767 (target_fileio_read_alloc_1): New argument inf. Pass inf
6768 to target_fileio_open.
6769 (target_fileio_read_alloc): New argument inf. Pass inf to
6770 target_fileio_read_alloc_1.
6771 (target_fileio_read_stralloc): Likewise.
6772 * gdb_bfd.c (inferior.h): New include.
6773 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
6774 argument with new argument "inferior". Pass inferior to
6775 target_fileio_open.
6776 (gdb_bfd_open): Supply inferior argument to
6777 gdb_bfd_iovec_fileio_open.
6778 * linux-tdep.c (linux_info_proc): Supply inf argument to
6779 relevant target_fileio calls.
6780 (linux_find_memory_regions_full): Likewise.
6781 (linux_fill_prpsinfo): Likewise.
6782 * remote.c (remote_filesystem_is_local): Supply inf
6783 argument to remote_hostio_open.
6784 (remote_file_put): Likewise.
6785 (remote_file_get): Likewise.
6786 (remote_file_delete): Supply inf argument to
6787 remote_hostio_unlink.
6788
12e2a5fd
GB
67892015-06-10 Gary Benson <gbenson@redhat.com>
6790
6791 * inf-child.c (inf_child_fileio_open): Replace comment.
6792 (inf_child_fileio_pwrite): Likewise.
6793 (inf_child_fileio_pread): Likewise.
6794 (inf_child_fileio_fstat): Insert blank line before comment.
6795 (inf_child_fileio_close): Replace comment.
6796 (inf_child_fileio_unlink): Likewise.
6797 (inf_child_fileio_readlink): Likewise.
6798 * remote.c (remote_hostio_open): Likewise.
6799 (remote_hostio_pread): Likewise.
6800 (remote_hostio_pwrite): Likewise.
6801 (remote_hostio_close): Likewise.
6802 (remote_hostio_unlink): Likewise.
6803 (remote_hostio_readlink): Likewise.
6804 (remote_hostio_fstat): Likewise.
6805 (remote_filesystem_is_local): Likewise.
6806 * target.c (target_fileio_open): Likewise.
6807 (target_fileio_pwrite): Likewise.
6808 (target_fileio_pread): Likewise.
6809 (target_fileio_fstat): Insert blank line before comment.
6810 (target_fileio_close): Replace comment.
6811 (target_fileio_unlink): Likewise.
6812 (target_fileio_readlink): Likewise.
6813 (target_fileio_read_alloc): Likewise.
6814 (target_fileio_read_stralloc): Likewise.
6815
9bc3a976
GB
68162015-06-10 Gary Benson <gbenson@redhat.com>
6817
6818 * linux-thread-db.c (nat/linux-namespaces.h): New include.
6819 (check_pid_namespace_match): Use linux_ns_same rather than
6820 linux_proc_pid_get_ns to spot PID namespace mismatches.
6821 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
6822 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
6823
4b8b5e72
GB
68242015-06-10 Gary Benson <gbenson@redhat.com>
6825
6826 * configure.ac (AC_CHECK_FUNCS): Add setns.
6827 * config.in: Regenerate.
6828 * configure: Likewise.
6829 * nat/linux-namespaces.h: New file.
6830 * nat/linux-namespaces.c: Likewise.
6831 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
6832 (linux-namespaces.o): New rule.
6833 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
6834 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
6835 * config/arm/linux.mh (NATDEPFILES): Likewise.
6836 * config/i386/linux.mh (NATDEPFILES): Likewise.
6837 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6838 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6839 * config/m32r/linux.mh (NATDEPFILES): Likewise.
6840 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6841 * config/mips/linux.mh (NATDEPFILES): Likewise.
6842 * config/pa/linux.mh (NATDEPFILES): Likewise.
6843 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6844 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
6845 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
6846 * config/s390/linux.mh (NATDEPFILES): Likewise.
6847 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6848 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
6849 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
6850 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
6851
ca095836
GB
68522015-06-10 Gary Benson <gbenson@redhat.com>
6853
6854 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
6855 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
6856 (make_cleanup_close): Likewise.
6857 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
6858 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
6859 (make_cleanup_close): Likewise.
6860
5d9c55d3
JT
68612015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6862
6863 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
6864 from SuspendThread().
6865
040ea00b
JT
68662015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
6867
6868 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
6869 from OutputDebugString.
6870
7d73c23c
WT
68712015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
6872 Mircea Gherzan <mircea.gherzan@intel.com>
6873
6874 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
6875 MPX_BT_MASK_32): New macros.
6876 (i386_mpx_set_bounds): New function that implements
6877 the command "set-mpx-bound".
6878 (i386_mpx_enabled): Helper function to test MPX availability.
6879 (i386_mpx_bd_base): Helper function to calculate the base directory
6880 address.
6881 (i386_mpx_get_bt_entry): Helper function to access a bound
6882 table entry.
6883 (i386_mpx_print_bounds): Effectively display bound information.
6884 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
6885 "show mpx".
6886 (_initialize_i386_tdep):
6887 Add "bound" to the commands "show mpx" and "set mpx" commands.
6888 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
6889 and "show mpx" commands.
6890 * NEWS: List new commands for MPX support.
6891
3ac2e371
GB
68922015-06-09 Gary Benson <gbenson@redhat.com>
6893
6894 * common/fileio.h (fileio_to_host_mode): New declaration.
6895 * common/fileio.c (fileio_to_host_mode): New Function.
6896 * inf-child.c (inf_child_fileio_open): Process mode argument
6897 with fileio_to_host_mode.
6898
ecef18c5
GB
68992015-06-09 Gary Benson <gbenson@redhat.com>
6900
6901 * common/fileio.c (fileio_mode_pack): Fix preprocessor
6902 conditional.
6903
e3dd7556
GB
69042015-06-05 Gary Benson <gbenson@redhat.com>
6905
6906 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
6907 * remote.c (remote_filesystem_is_local): ...here.
6908
5b74bf7d
YQ
69092015-06-04 Yao Qi <yao.qi@linaro.org>
6910
6911 * gdbarch.c: Regenerate it.
6912
7f361056
JK
69132015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6914
6915 * arch-utils.c (default_infcall_munmap): New.
6916 * arch-utils.h (default_infcall_munmap): New declaration.
6917 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
6918 (munmap_list_free, munmap_listp_free_cleanup): New.
6919 (struct setup_sections_data): Add field munmap_list_headp.
6920 (setup_sections): Call munmap_list_add.
6921 (compile_object_load): New variable munmap_list_head, initialize
6922 setup_sections_data.munmap_list_headp, return munmap_list_head.
6923 * compile/compile-object-load.h (struct munmap_list): New declaration.
6924 (struct compile_module): Add field munmap_list_head.
6925 (munmap_list_free): New declaration.
6926 * compile/compile-object-run.c (struct do_module_cleanup): Add field
6927 munmap_list_head.
6928 (do_module_cleanup): Call munmap_list_free.
6929 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
6930 * gdbarch.c: Regenerate.
6931 * gdbarch.h: Regenerate.
6932 * gdbarch.sh (infcall_munmap): New.
6933 * linux-tdep.c (linux_infcall_munmap): New.
6934 (linux_init_abi): Install it.
6935
3b462ec2
SM
69362015-06-02 Simon Marchi <simon.marchi@ericsson.com>
6937
6938 PR gdb/15564
6939 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
6940
8d683210
YQ
69412015-06-02 Yao Qi <yao.qi@linaro.org>
6942
6943 * i386-linux-nat.c: Include linux-nat.h.
6944
e0619de6
JK
69452015-06-01 Andreas Schwab <schwab@linux-m68k.org>
6946 Jan Kratochvil <jan.kratochvil@redhat.com>
6947
6948 PR symtab/18392
6949 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
6950 assertion.
6951 * dwarf2loc.c (chain_candidate): Likewise.
6952
bd16da51
YQ
69532015-06-01 Yao Qi <yao.qi@linaro.org>
6954
6955 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
6956 (store_vfp_regs): Use PTRACE_SETREGSET.
6957
df9d7ec9
YQ
69582015-06-01 Yao Qi <yao.qi@linaro.org>
6959
6960 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
6961 (fetch_fpregs): Likewise.
6962 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
6963 (store_fpregs): Likewise.
6964
10766686
YQ
69652015-06-01 Yao Qi <yao.qi@linaro.org>
6966
6967 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
6968 (fetch_regs): Likewise.
6969 (store_regs): Use PTRACE_SETREGSET.
6970 (store_register): Likewise.
6971
7efe48d1
YQ
69722015-06-01 Yao Qi <yao.qi@linaro.org>
6973
6974 * arm-linux-nat.c (arm_linux_read_description): Check whether
6975 kernel supports PTRACE_GETREGSET.
6976
433bbbf8
YQ
69772015-06-01 Yao Qi <yao.qi@linaro.org>
6978
6979 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
6980 * linux-nat.c: ... here.
6981 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
6982 to ...
6983 * linux-nat.h: ... here.
6984
ca9b78ce
YQ
69852015-06-01 Yao Qi <yao.qi@linaro.org>
6986
6987 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
6988 * i386-linux-nat.c: Likewise.
6989 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
6990 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
6991 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6992 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
6993 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
6994
99cee7b7
EZ
69952015-05-30 Eli Zaretskii <eliz@gnu.org>
6996
6997 * go32-nat.c (go32_xfer_memory): Fix the return value to be
6998 compatible to what read_child and write_child return. This
6999 unbreaks that DJGPP build of GDB which was broken since v7.7.
7000
2147f5bd
MG
70012015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
7002
7003 * MAINTAINERS (Write After Approval): Add Martin Galvan.
7004
c8f6c93c
RM
70052015-05-29 Roland McGrath <mcgrathr@google.com>
7006
7007 PR gdb/18464
7008 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
7009 rather than internal_error for an unrecognized value.
7010
8c6a948d
MF
70112015-05-29 Max Filippov <jcmvbkbc@gmail.com>
7012
7013 * xtensa-tdep.c (xtensa_pseudo_register_read)
7014 (xtensa_pseudo_register_write): Don't alias last pseudo register
7015 to a1.
7016
8dd06f7a
DB
70172015-05-28 Don Breazeal <donb@codesourcery.com>
7018
7019 * infrun.c (follow_fork_inferior): Ensure the use of
7020 process-style ptids (pid,0,0) in verbose/debug "Detaching"
7021 messages.
7022
a051152b
DE
70232015-05-28 Doug Evans <dje@google.com>
7024
7025 * dwarf2read.c (record_line_ftype): Remove, duplicate.
7026
a56cc1ce
YQ
70272015-05-28 Yao Qi <yao.qi@linaro.org>
7028
7029 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
7030 (arm_linux_fetch_inferior_registers): Use
7031 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
7032 (arm_linux_store_inferior_registers): Likewise.
7033 (arm_linux_read_description): Don't set
7034 arm_linux_has_wmmx_registers.
7035 * arm-tdep.c (arm_gdbarch_init): Set
7036 tdep->have_wmmx_registers according target descriptions.
7037 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
7038 field.
7039
330c6ca9
YQ
70402015-05-28 Yao Qi <yao.qi@linaro.org>
7041
7042 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
7043 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
7044 instead of arm_linux_vfp_register_count.
7045 (store_vfp_regs): Likewise.
7046 (arm_linux_fetch_inferior_registers): Likewise.
7047 (arm_linux_store_inferior_registers): Likewise.
7048 (arm_linux_read_description): Don't set
7049 arm_linux_vfp_register_count.
7050 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
7051 Adjust.
7052 * arm-tdep.c (arm_gdbarch_init): Add assert on
7053 vfp_register_count.
7054 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
7055 field to vfp_register_count. All users updated.
7056
d403db27
KH
70572015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
7058
7059 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
7060 ELFOSABI_GNU binaries.
7061
d9b3de22
DE
70622015-05-27 Doug Evans <dje@google.com>
7063
7064 * dwarf2read.c (lnp_state_machine): New typedef.
7065 (lnp_reader_state): New typedef.
7066 (dwarf_record_line_1): Renamed from dwarf_record_line.
7067 All callers updated.
7068 (dwarf_record_line): New function.
7069 (init_lnp_state_machine): New function.
7070 (check_line_address): Replace p_record_line parameter with state.
7071 All callers updated.
7072 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
7073 Update to record state in lnp_state_machine.
7074
924c2928
DE
70752015-05-27 Doug Evans <dje@google.com>
7076
7077 * dwarf2read.c (record_line_ftype): New typedef.
7078 (check_line_address): New function.
7079 (dwarf_decode_lines_1): Call it.
7080
27e0867f
DE
70812015-05-27 Doug Evans <dje@google.com>
7082
7083 * NEWS: Mention "set debug dwarf-line".
7084 * dwarf2read.c (dwarf_line_debug): New static global.
7085 (add_include_dir): Add debug dwarf-line support.
7086 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
7087 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
7088
4dcabcc2
DE
70892015-05-27 Doug Evans <dje@google.com>
7090
7091 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
7092 All callers updated.
7093 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
7094 * cp-support.h (cp_lookup_nested_symbol): Update.
7095
b2e2f908
DE
70962015-05-27 Doug Evans <dje@google.com>
7097
7098 PR symtab/18258
7099 * block.c (block_find_symbol): New function.
7100 (block_find_non_opaque_type): Ditto.
7101 (block_find_non_opaque_type_preferred): Ditto.
7102 * block.h (block_symbol_matcher_ftype): New typedef.
7103 (block_find_symbol): Declare.
7104 (block_find_non_opaque_type): Ditto.
7105 (block_find_non_opaque_type_preferred): Ditto.
7106 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
7107 * psymtab.c (psym_lookup_symbol): Ditto.
7108 * symtab.c (basic_lookup_transparent_type_1): New function.
7109 (basic_lookup_transparent_type): Call it.
7110
f62fce35
YQ
71112015-05-27 Yao Qi <yao.qi@linaro.org>
7112
7113 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
7114 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
7115
5d98d3cd
YQ
71162015-05-27 Yao Qi <yao.qi@linaro.org>
7117
7118 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
7119 before operator &&.
7120 (aarch64_record_load_store): Likewise.
7121
82c7be31
DE
71222015-05-26 Doug Evans <dje@google.com>
7123
7124 PR c++/18141, c++/18417.
7125 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
7126 a typedef.
7127
b4f54984
DE
71282015-05-26 Doug Evans <dje@google.com>
7129
7130 * NEWS: Add entries for command renamings.
7131 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
7132 All uses updated.
7133 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
7134 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
7135 All uses updated.
7136 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
7137 All callers updated. Fix spelling of DWARF in help text.
7138 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
7139 All uses updated.
7140 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
7141 All uses updated.
7142 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
7143 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
7144 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
7145 All uses updated.
7146 (show_dwarf_always_disassemble): Renamed from
7147 show_dwarf2_always_disassemble. All callers updated.
7148 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
7149 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
7150 "set/show dwarf max-cache-age". Rename
7151 "set/show dwarf2 always-disassemble" to
7152 "set/show dwarf always-disassemble". Rename
7153 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
7154 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
7155
4ea6efe9
DE
71562015-05-26 Doug Evans <dje@google.com>
7157
7158 PR python/18438
7159 * python/py-lazy-string.c (stpy_convert_to_value): Use
7160 gdbpy_gdb_memory_error not PyExc_MemoryError.
7161 (gdbpy_create_lazy_string_object): Ditto.
7162
b93fd21d
AB
71632015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7164
7165 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
7166
55b40027
AB
71672015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
7168
7169 * tui/tui-regs.c (tui_reg_prev_command): New function.
7170 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
7171 * reggroups.c (reggroup_prev): New function.
7172 * reggroups.h (reggroup_prev): Add declaration. Update comment.
7173
99afc88b
OJ
71742015-05-26 Omair Javaid <omair.javaid@linaro.org>
7175 Yao Qi <yao.qi@linaro.org>
7176
7177 * aarch64-linux-tdep.c: Include linux-record.h and
7178 record-full.h.
7179 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
7180 (aarch64_syscall): New enum.
7181 (aarch64_canonicalize_syscall): New function.
7182 (aarch64_all_but_pc_registers_record): New function.
7183 (aarch64_linux_syscall_record): New function.
7184 (aarch64_linux_init_abi): Install AArch64 process record
7185 handler. Update to handle syscall recording.
7186 * aarch64-tdep.c: Include record.h and record-full.h.
7187 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
7188 (struct aarch64_mem_r): Define.
7189 (aarch64_record_result): New enum.
7190 (struct insn_decode_record): Define.
7191 (insn_decode_record): New typedef.
7192 (aarch64_record_data_proc_reg): New function.
7193 (aarch64_record_data_proc_imm): New function.
7194 (aarch64_record_branch_except_sys): New function.
7195 (aarch64_record_load_store): New function.
7196 (aarch64_record_data_proc_simd_fp): New function.
7197 (aarch64_record_asimd_load_store): New function.
7198 (aarch64_record_decode_insn_handler): New function.
7199 (deallocate_reg_mem): New function.
7200 (aarch64_process_record): New function.
7201 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
7202 New field.
7203 (aarch64_process_record): New extern declaration.
7204 * configure.tgt: Add linux-record.o to gdb_target_obs.
7205 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
7206
c16a3f52
OJ
72072015-05-26 Omair Javaid <omair.javaid@linaro.org>
7208
7209 * NEWS: Add a note on process record-replay support on aarch64*-linux*
7210 targets.
7211
c9cf6e20
MG
72122015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
7213
7214 * amd64-tdep.c: Replace in_function_epilogue_p with
7215 stack_frame_destroyed_p throughout.
7216 * arch-utils.c: Ditto.
7217 * arch-utils.h: Ditto.
7218 * arm-tdep.c: Ditto.
7219 * breakpoint.c: Ditto.
7220 * gdbarch.sh: Ditto.
7221 * hppa-tdep.c: Ditto.
7222 * i386-tdep.c: Ditto.
7223 * mips-tdep.c: Ditto.
7224 * nios2-tdep.c: Ditto.
7225 * rs6000-tdep.c: Ditto.
7226 * s390-linux-tdep.c: Ditto.
7227 * score-tdep.c: Ditto.
7228 * sh-tdep.c: Ditto.
7229 * sparc-tdep.c: Ditto.
7230 * sparc-tdep.h: Ditto.
7231 * sparc64-tdep.c: Ditto.
7232 * spu-tdep.c: Ditto.
7233 * tic6x-tdep.c: Ditto.
7234 * tilegx-tdep.c: Ditto.
7235 * xstormy16-tdep.c: Ditto.
7236 * gdbarch.c, gdbarch.h: Re-generated.
7237
a4ea0946
AB
72382015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
7239
7240 * NEWS: Mention 'tui enable' and 'tui disable'.
7241 * tui/tui.c (tui_enable_command): New function.
7242 (tui_disable_command): New function.
7243 (_initialize_tui): New function.
7244
b75c69bb
AB
72452015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7246
7247 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
7248
c1b009ee
AB
72492015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7250
7251 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
7252 buf_ptr is freed.
7253
880d1e40
AB
72542015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7255
7256 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
7257 into ...
7258 (tui_set_layout_for_display_command): ...here, before calling
7259 tui_set_layout. Only set the layout if gdb has not already
7260 entered the TUI_FAILURE state.
7261
a0145030
AB
72622015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7263
7264 * tui/tui-layout.c (layout_completer): New function.
7265 (_initialize_tui_layout): Set completer on layout command.
7266
7bd0be3a
AB
72672015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7268
7269 * tui/tui-layout.c (tui_set_layout): Remove
7270 tui_register_display_type parameter. Remove all checking of this
7271 parameter, and reindent function. Update header comment.
7272 (tui_set_layout_for_display_command): Rename to...
7273 (tui_set_layout_by_name): ...this, and don't check for different
7274 register class types, don't pass a tui_register_display_type to
7275 tui_set_layout. Update header comment.
7276 (layout_names): Remove register set specific names.
7277 * tui/tui-layout.h (tui_set_layout): Remove
7278 tui_register_display_type parameter.
7279 * tui/tui.c (tui_rl_change_windows): Don't pass a
7280 tui_register_display_type to tui_set_layout.
7281 (tui_rl_delete_other_windows): Likewise.
7282 (tui_enable): Likewise.
7283 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
7284 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
7285 (TUI_GENERAL_REGS_NAME): Remove.
7286 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
7287 (TUI_SPECIAL_REGS_NAME): Remove.
7288 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
7289 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
7290 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
7291 (enum tui_register_display_type): Remove.
7292 (struct tui_layout_def): Remove regs_display_type and
7293 float_regs_display_type fields.
7294 (struct tui_data_info): Remove regs_display_type field.
7295 (tui_layout_command): Use new name for
7296 tui_set_layout_for_display_command.
7297 * tui/tui-data.c (layout_def): Don't initialise removed fields.
7298 (tui_clear_win_detail): Don't initialise removed fields of
7299 win_info.
7300 * tui/tui-regs.c (tui_show_registers): Use new name for
7301 tui_set_layout_for_display_command.
7302 * tui/tui.h (tui_set_layout_for_display_command): Rename
7303 declaration to...
7304 (tui_set_layout_by_name): ...this.
7305 * printcmd.c (display_command): Remove tui related layout call,
7306 and reindent.
7307
0b6e5e10
JB
73082015-05-20 Joel Brobecker <brobecker@adacore.com>
7309
7310 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
7311 (handle_inferior_event): New function.
7312
1da0522e
JB
73132015-05-20 Joel Brobecker <brobecker@adacore.com>
7314
7315 * ada-lang.c (to_fixed_array_type): Rename local variable
7316 typename into type_name.
7317
5fe75eec
JK
73182015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7319
7320 Fix ASAN crash for gdb.compile/compile.exp.
7321 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
7322
a4063588
JK
73232015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7324
7325 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
7326 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
7327 * compile/compile-object-load.c (setup_sections, compile_object_load):
7328 Likewise.
7329 * compile/compile.c (compile_to_object): Likewise.
7330
37442ce1
DE
73312015-05-16 Doug Evans <xdje42@gmail.com>
7332
7333 * NEWS: Mention support for unbuffered Guile memory ports.
7334 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
7335 (ioscm_lseek_address): Improve overflow calculation.
7336 (gdbscm_memory_port_fill_input): Add assert.
7337 (gdbscm_memory_port_write): Handle unbuffered ports.
7338 Handle large writes identical to Guile's fport_write.
7339 (gdbscm_memory_port_seek): Fix seeking past end check.
7340 (gdbscm_memory_port_close): Handle closing unbuffered port.
7341 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
7342 (ioscm_init_memory_port): Handle unbuffered ports.
7343 (ioscm_reinit_memory_port): Ditto.
7344 (ioscm_init_memory_port): Update size calculation.
7345 (gdbscm_open_memory): Support zero sized ports.
7346
d976bace
JK
73472015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7348
7349 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
7350 variable compiler warnings.
7351
4d18dfad
JK
73522015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7353
7354 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
7355
36de76f9
JK
73562015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7357 Phil Muldoon <pmuldoon@redhat.com>
7358
7359 * NEWS (Changes since GDB 7.9): Add compile print.
7360 * compile/compile-c-support.c (add_code_header, add_code_footer)
7361 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
7362 COMPILE_I_PRINT_VALUE_SCOPE.
7363 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
7364 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
7365 New.
7366 * compile/compile-object-load.c: Include block.h.
7367 (get_out_value_type): New function.
7368 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7369 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
7370 OUT_VALUE_TYPE.
7371 * compile/compile-object-load.h (struct compile_module): Add fields
7372 out_value_addr and out_value_type.
7373 * compile/compile-object-run.c: Include valprint.h and compile.h.
7374 (struct do_module_cleanup): Add fields out_value_addr and
7375 out_value_type.
7376 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
7377 COMPILE_I_PRINT_VALUE_SCOPE.
7378 (compile_object_run): Propagate out_value_addr and out_value_type.
7379 Pass OUT_VALUE_ADDR.
7380 * compile/compile.c: Include valprint.h.
7381 (compile_print_value, compile_print_command): New functions.
7382 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
7383 (_initialize_compile): Update compile code help text. Install
7384 compile_print_command.
7385 * compile/compile.h (compile_print_value): New prototype.
7386 * defs.h (enum compile_i_scope_types): Add
7387 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
7388
83d3415e
JK
73892015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7390
7391 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
7392 Rely on its parameter count.
7393 (compile_object_load): Replace lookup_minimal_symbol_text by
7394 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
7395 return value.
7396 * compile/compile-object-load.h (struct compile_module): Replace
7397 func_addr by func_sym.
7398 * compile/compile-object-run.c: Include block.h.
7399 (compile_object_run): Reset module variable after it is freed. Use
7400 FUNC_SYM instead of FUNC_ADDR. Rely on it.
7401
3a9558c4
JK
74022015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7403
7404 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
7405 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
7406 (c_compute_program): Call generate_register_struct after typedefs.
7407 * compile/compile-loc2c.c (push, pushf_register_address)
7408 (pushf_register): Cast to GCC_UINTPTR.
7409 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
7410 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
7411 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
7412 * compile/compile.c (_initialize_compile): Enable warnings for
7413 COMPILE_ARGS.
7414
5c65b58a
JK
74152015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7416
7417 * cli/cli-script.c (execute_control_command): Update
7418 eval_compile_command caller.
7419 * compile/compile-object-load.c (compile_object_load): Add parameters
7420 scope and scope_data. Set them.
7421 * compile/compile-object-load.h (struct compile_module): Add fields
7422 scope and scope_data.
7423 (compile_object_load): Add parameters scope and scope_data.
7424 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
7425 scope and scope_data.
7426 (compile_object_run): Propagate the fields scope and scope_data.
7427 * compile/compile.c (compile_file_command, compile_code_command):
7428 Update eval_compile_command callers.
7429 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
7430 * compile/compile.h (eval_compile_command): Add parameter scope_data.
7431 * defs.h (struct command_line): Add field scope_data.
7432
1c88ceb1
JK
74332015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7434
7435 * printcmd.c (struct format_data): Move it to valprint.h.
7436 (print_command_parse_format, print_value): New functions from ...
7437 (print_command_1): ... here. Call them.
7438 * valprint.h (struct format_data): Move it here from printcmd.c.
7439 (print_command_parse_format, print_value): New declarations.
7440
0b738f27
JK
74412015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7442
7443 * compile/compile-object-load.c (compile_object_load): Add
7444 COMPILE_DEBUG message.
7445
aa715135
JG
74462015-05-15 Jerome Guitton <guitton@adacore.com>
7447
7448 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
7449 index to get element instead of enum value.
7450 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
7451 of index to compute length, but enum values to compute bounds.
7452 (ada_array_length): Use enum position of index instead of enum value.
7453 (pos_atr): Move position computation to...
7454 (ada_evaluate_subexp): Use enum values to compute bounds.
7455 * gdbtypes.c (discrete_position): ...this new function.
7456 * gdbtypes.h (discrete_position): New function declaration.
7457 * valprint.c (val_print_array_elements): Call discrete_position
7458 to handle array indexed by non-contiguous enumeration types.
7459
931e5bc3
JG
74602015-05-15 Jerome Guitton <guitton@adacore.com>
7461
7462 * ada-lang.c (find_parallel_type_by_descriptive_type):
7463 Go through typedefs during lookup.
7464 (to_fixed_array_type): Add support for non-bit packed arrays
7465 as variable-length fields.
7466
4e63d0ac
PA
74672015-05-15 Pedro Alves <palves@redhat.com>
7468 Simon Marchi <simon.marchi@ericsson.com>
7469
7470 * event-loop.c (gdb_notifier) <next_file_handler,
7471 next_poll_fds_index>: New fields.
7472 (get_next_file_handler_to_handle_and_advance): New function.
7473 (delete_file_handler): If deleting the next file handler to
7474 handle, advance to the next file handler.
7475 (gdb_wait_for_event): Bail early if no event fired. Poll file
7476 handlers in round-robin fashion.
7477
52e48b36
PA
74782015-05-15 Pedro Alves <palves@redhat.com>
7479
7480 * linux-tdep.c (linux_find_memory_regions_full): Rename local
7481 'private' to 'priv'.
7482
2465e12e
PA
74832015-05-15 Pedro Alves <palves@redhat.com>
7484
7485 * nat/linux-nat.h: Include "target/waitstatus.h".
7486
13fa0398
YZ
74872015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
7488
7489 * python/py-unwind.c (struct reg_info): Move out of ...
7490 (struct cached_frame_info): ... this scope.
7491 (pending_frame_object_type, unwind_info_object_type): Make extern.
7492
9cd4d857
JB
74932015-05-15 Joel Brobecker <brobecker@adacore.com>
7494
7495 * ada-lang.c (ada_value_primitive_packed_val): Make sure
7496 accumSize is never negative.
7497
e3555239
PP
74982015-05-14 Patrick Palka <patrick@parcs.ath.cx>
7499
7500 * tui/tui-command.c: Remove include of <ctype.h>.
7501 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
7502
08a76f8a
MG
75032015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
7504
7505 * dwarf2read.c (die_needs_namespace): Return 1 for
7506 DW_TAG_inlined_subroutine.
7507
bd49952b
JK
75082015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7509
7510 * regcache.c (regcache_cpy_no_passthrough): New declaration.
7511 (regcache_cpy_no_passthrough): Make it static, add function comment.
7512 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
7513 (regcache_cpy_no_passthrough): Remove declaration.
7514
46c03469
JK
75152015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7516
7517 * gdbthread.h (struct thread_control_state): Update comment for
7518 proceed_to_finish.
7519 * infcall.c (run_inferior_call): Update comment about
7520 proceed_to_finish.
7521 * infcmd.c (get_return_value): Update comment about stop_registers.
7522 (finish_forward): Update comment about proceed_to_finish.
7523 * infrun.c (stop_registers): Remove.
7524 (clear_proceed_status, normal_stop): Remove stop_registers handling.
7525 * infrun.h (stop_registers): Remove.
7526
8a6c4031
JK
75272015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7528
7529 * infcall.c (struct dummy_frame_context_saver)
7530 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
7531 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7532 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7533 New.
7534 (call_function_by_hand_dummy): Move discard_cleanups of
7535 inf_status_cleanup before dummy_frame_push. Call
7536 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
7537 Use dummy_frame_context_saver_get_regs instead of stop_registers.
7538 * infcall.h (struct dummy_frame_context_saver)
7539 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
7540 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
7541 New declarations.
7542 * infcmd.c: Include infcall.h.
7543 (get_return_value): Add parameter ctx_saver, use it instead of
7544 stop_registers.
7545 (print_return_value): Add parameter ctx_saver, pass it.
7546 (struct finish_command_continuation_args): Add field ctx_saver.
7547 (finish_command_continuation): Update print_return_value caller.
7548 (finish_command_continuation_free_arg): Free also ctx_saver.
7549 (finish_forward): Call dummy_frame_context_saver_setup.
7550 * inferior.h (struct dummy_frame_context_saver): New declaration.
7551 (get_return_value): Add parameter ctx_saver.
7552 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
7553 get_return_value caller.
7554
10989690
JK
75552015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7556
7557 * dummy-frame.c (struct dummy_frame_dtor_list): New.
7558 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
7559 (remove_dummy_frame): Process dtor_list.
7560 (pop_dummy_frame): Process dtor_list.
7561 (register_dummy_frame_dtor): Maintain dtor_list.
7562 (find_dummy_frame_dtor): Handle dtor_list.
7563 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
7564 Update comments.
7565
5e970501
JK
75662015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7567
7568 * compile/compile-object-run.c (do_module_cleanup): Add parameter
7569 registers_valid.
7570 (compile_object_run): Update do_module_cleanup caller.
7571 * dummy-frame.c: Include infcall.h.
7572 (struct dummy_frame): Update dtor comment.
7573 (remove_dummy_frame): Call dtor.
7574 (pop_dummy_frame): Update dtor caller.
7575 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
7576 registers_valid.
7577
1c4eb778
JB
75782015-05-13 Joel Brobecker <brobecker@adacore.com>
7579
7580 GDB 7.9.1 released.
7581
f5f85ab9
JB
75822015-05-13 Joel Brobecker <brobecker@adacore.com>
7583
7584 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
7585 Xmethods now being able to specify a result type to that new
7586 sectioin.
7587
242cd84c
PP
75882015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7589
7590 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
7591 first before resizing the window.
e3555239 7592 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
7593
75942015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
7595
7596 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
7597 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
7598 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
7599 dummy_dtor parameter.
7600 * infcall.h: Include dummy-frame.h.
7601 (call_function_by_hand_dummy_dtor_ftype): Remove.
7602 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
7603 parameter.
7604
ebfd00d2
PP
76052015-05-13 Patrick Palka <patrick@parcs.ath.cx>
7606
7607 PR gdb/17820
7608 * top.c (history_size_setshow_var): Change type to signed.
7609 Initialize to -2. Update documentation.
7610 (set_readline_history_size): Define.
7611 (set_history_size_command): Use it. Remove logic for handling
7612 out-of-range sizes.
7613 (init_history): Use set_readline_history_size(). Test for a
7614 value of -2 instead of 0 when determining whether to set a
7615 default history size.
7616 (init_main): Decode the argument of the "size" command as a
7617 zuinteger_unlimited.
7618
83769d0b
DE
76192015-05-12 Doug Evans <dje@google.com>
7620
7621 * dwarf2read.c (struct file_entry): Tweak comments.
7622 (get_debug_line_section): Tweak comments.
7623
0d71eef5
DB
76242015-05-12 Don Breazeal <donb@codesourcery.com>
7625
7626 * NEWS: Announce fork support in the RSP and support
7627 for fork debugging in extended mode.
7628
cbb8991c
DB
76292015-05-12 Don Breazeal <donb@codesourcery.com>
7630
7631 * remote.c (remote_insert_fork_catchpoint): New function.
7632 (remote_remove_fork_catchpoint): New function.
7633 (remote_insert_vfork_catchpoint): New function.
7634 (remote_remove_vfork_catchpoint): New function.
7635 (pending_fork_parent_callback): New function.
7636 (remove_new_fork_child): New function.
7637 (remote_update_thread_list): Call remote_notif_get_pending_events
7638 and remove_new_fork_child.
7639 (extended_remote_kill): Kill fork child when killing the
7640 parent before follow_fork completes.
7641 (init_extended_remote_ops): Initialize target vector with
7642 new fork catchpoint functions.
7643
c269dbdb
DB
76442015-05-12 Don Breazeal <donb@codesourcery.com>
7645
7646 * remote.c (remove_vfork_event_p): New function.
7647 (remote_follow_fork): Add vfork event type to event checking.
7648 (remote_parse_stop_reply): New stop reasons "vfork" and
7649 "vforkdone" for RSP 'T' Stop Reply Packet.
7650
de0d863e
DB
76512015-05-12 Don Breazeal <donb@codesourcery.com>
7652
7653 * linux-nat.c (linux_nat_ptrace_options): New function.
7654 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
7655 Call linux_nat_ptrace_options and use different argument to
7656 linux_enable_event_reporting.
7657 (_initialize_linux_nat): Delete call to
7658 linux_ptrace_set_additional_flags.
c8f6c93c 7659 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
7660 supported_ptrace_options.
7661 (additional_flags): Delete variable.
7662 (linux_check_ptrace_features): Use supported_ptrace_options.
7663 (linux_test_for_tracesysgood, linux_test_for_tracefork):
7664 Likewise, and remove additional_flags check.
7665 (linux_enable_event_reporting): Change 'attached' argument to
7666 'options'. Use supported_ptrace_options.
c8f6c93c 7667 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
7668 supported_ptrace_options.
7669 (linux_ptrace_set_additional_flags): Delete function.
7670 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
7671 Delete function prototype.
7672 * remote.c (remote_fork_event_p): New function.
7673 (remote_detach_pid): New function.
7674 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
7675 if doing detach-on-fork.
7676 (remote_follow_fork): New function.
7677 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
7678 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
7679 (init_extended_remote_ops): Initialize to_follow_fork.
7680
89245bc0
DB
76812015-05-12 Don Breazeal <donb@codesourcery.com>
7682
7683 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
7684 from static to extern.
7685 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
7686 * remote.c (anonymous enum): <PACKET_fork_event_feature,
7687 * PACKET_vfork_event_feature>: New enumeration constants.
7688 (remote_protocol_features): Add table entries for new packets.
7689 (remote_query_supported): Add new feature queries to qSupported
7690 packet.
7691
835205d0
GB
76922015-05-12 Gary Benson <gbenson@redhat.com>
7693
7694 * remote.c (remote_add_inferior): Call exec_file_locate_attach
7695 for fake PIDs as well as real ones.
7696 (remote_pid_to_exec_file): Send empty annex if PID is fake.
7697
4c082a81
SC
76982015-05-09 Siva Chandra Reddy <sivachandra@google.com>
7699
7700 * NEWS (Python Scripting): Mention the new gdb.Value methods.
7701 * python/py-value.c (valpy_reference_value): New function.
7702 (valpy_const_value): Likewise.
7703 (value_object_methods): Add new methods.
7704 * value.c (make_cv_value): New function.
7705 * value.h (make_cv_value): Declare.
7706
afa6c9ab
SL
77072015-05-08 Yao Qi <yao@codesourcery.com>
7708 Sandra Loosemore <sandra@codesourcery.com>
7709
7710 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
7711 to 'lh->include_dirs' before accessing to it.
7712 (psymtab_include_file_name): Likewise.
7713 (dwarf_decode_lines_1): Likewise.
7714 (dwarf_decode_lines): Likewise.
7715 (file_file_name): Likewise.
7716
35d54293
SL
77172015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7718
7719 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
7720 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
7721 (nios2_linux_rt_sigreturn_init): Adjust base address of
7722 register save area.
7723
b73c49b7
SL
77242015-05-08 Sandra Loosemore <sandra@codesourcery.com>
7725
7726 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
7727 "trap 31" as the breakpoint instruction on all targets.
7728
dd9f02a0
JK
77292015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7730
7731 * infcmd.c (print_return_value): Remove unused declaration.
7732
6ad395a7
JB
77332015-05-08 Joel Brobecker <brobecker@adacore.com>
7734
7735 * dwarf2read.c (attr_to_dynamic_prop)
7736 <DW_AT_data_member_location>: Use read_type_die isntead of
7737 get_die_type.
7738
8344af1e
JB
77392015-05-08 Joel Brobecker <brobecker@adacore.com>
7740
7741 * ada-lang.c (ada_convert_actual): Add handling of formals
7742 passed inside an aligner type.
7743
80b0912b
JB
77442015-05-08 Joel Brobecker <brobecker@adacore.com>
7745
7746 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
7747
df2eb078
SC
77482015-05-08 Siva Chandra Reddy <sivachandra@google.com>
7749
7750 PR python/18291
7751 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
7752 Print xmethod matcher status.
7753
2492f0d0
AA
77542015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
7755
7756 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
7757 register in the regcache when treating the PSWM register, and vice
7758 versa.
7759
1c56a84d
GB
77602015-05-07 Gary Benson <gbenson@redhat.com>
7761
7762 * linux-thread-db.c (struct thread_db_info)
7763 <td_ta_map_id2thr_p>: Remove field.
7764 (try_thread_db_load_1): Remove initialization for the above.
7765
74850322
GB
77662015-05-07 Gary Benson <gbenson@redhat.com>
7767
7768 * linux-thread-db.c (struct thread_db_info)
7769 <td_thr_validate_p>: Remove field.
7770 (try_thread_db_load_1): Remove initialization for the above.
7771
e26efa40
JK
77722015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7773
7774 * compile/compile-object-load.c (compile_object_load): Support
7775 mst_text_gnu_ifunc.
7776
851c9091
JK
77772015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7778
7779 * compile/compile.c (compile_to_object): Make the cmd_string parameter
7780 const. Use new variables for the const compatibility.
7781 (eval_compile_command): Make the cmd_string parameter const.
7782 * compile/compile.h (eval_compile_command): Make the cmd_string
7783 parameter const.
7784
f218b647
JB
77852015-05-06 Joel Brobecker <brobecker@adacore.com>
7786
7787 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
7788 comment.
7789 * top.c (deprecated_init_ui_hook): Delete.
7790 (gdb_init): Remove handling of deprecated_init_ui_hook.
7791 * interps.c (clear_interpreter_hooks): Remove handling of
7792 deprecated_init_ui_hook.
7793 * main.c (captured_main): Update comment.
7794
b30a0bc3
JB
77952015-05-06 Joel Brobecker <brobecker@adacore.com>
7796
7797 * solib.c (_initialize_solib): Add "info dll" alias creation.
7798 * windows-nat.c (set_windows_aliases): Delete.
7799 (_initialize_windows_nat): Remove deprecated_init_ui_hook
7800 assignment.
7801 * NEWS: Add news entry about "info dll" now being available
7802 on all platforms.
7803
7c512744
JB
78042015-05-05 Joel Brobecker <brobecker@adacore.com>
7805
7806 * ada-lang.c (value_assign_to_component): Reformat and improve
7807 documentation. Remove all trailing spaces.
7808
0fa7fe50
JB
78092015-05-05 Joel Brobecker <brobecker@adacore.com>
7810
7811 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
7812 Stop counting inlined frames as soon as an out-of-line function
7813 is found.
7814
3ea89b92
PMR
78152014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
7816
7817 * dwarf2read.c (inherit_abstract_dies): Skip
7818 DW_TAG_GNU_call_site dies while inheriting children of an
7819 abstract DIE into a scope.
7820 (read_lexical_block_scope): Inherit abstract DIE's for
7821 lexical scopes.
7822
2478d075
JB
78232015-05-05 Joel Brobecker <brobecker@adacore.com>
7824
7825 * ada-valprint.c (val_print_packed_array_elements): Delete
7826 variable "len". Add a type-length check when comparing two
7827 consecutive elements of the array. Use the element's actual
7828 length in call to value_contents_eq.
7829 * ada-lang.c (ada_value_primitive_packed_val): Always return
7830 a value whose type has been resolved.
7831
fc958966
JB
78322015-05-05 Joel Brobecker <brobecker@adacore.com>
7833
7834 * ada-lang.c (ada_value_primitive_packed_val): Recompute
7835 BIT_SIZE and LEN if the size of the resolved type is smaller
7836 than BIT_SIZE * HOST_CHAR_BIT.
7837
ca34b84f
JB
78382015-05-05 Joel Brobecker <brobecker@adacore.com>
7839
7840 * ada-lang.c (ada_value_primitive_packed_val): Use a more
7841 correct address in call to value_at. Adjust call to
7842 value_address accordingly.
7843
62c67f3c
JB
78442015-05-05 Joel Brobecker <brobecker@adacore.com>
7845
7846 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
7847 to print it.
7848
c3345124
JB
78492015-05-05 Joel Brobecker <brobecker@adacore.com>
7850
7851 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
7852 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
7853 pinfo->valaddr.
7854 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
7855 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
7856 (resolve_dynamic_type_internal): Set pinfo.valaddr.
7857 Add handling of addr_stack->valaddr.
7858 (resolve_dynamic_type): Add "valaddr" parameter.
7859 Set pinfo.valaddr field.
7860 * ada-lang.c (ada_discrete_type_high_bound): Update call to
7861 resolve_dynamic_type.
7862 (ada_discrete_type_low_bound): Likewise.
7863 * findvar.c (default_read_var_value): Likewise.
7864 * value.c (value_from_contents_and_address): Likewise.
7865
75ea5859
JB
78662015-05-05 Joel Brobecker <brobecker@adacore.com>
7867
7868 * gdbtypes.c (resolve_dynamic_array): Use
7869 create_array_type_with_stride instead of create_array_type.
7870
0952813b
DD
78712015-04-30 DJ Delorie <dj@redhat.com>
7872
7873 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
7874 rl78_decode_opcode
7875
2ce1cdbf
DE
78762015-04-29 Doug Evans <dje@google.com>
7877
7878 PR python/18285
7879 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
7880 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
7881 EVAL_AVOID_SIDE_EFFECTS for xmethods.
7882 * extension-priv.h (struct extension_language_ops)
7883 <get_xmethod_result_type>: New member.
7884 * extension.c (get_xmethod_result_type): New function.
7885 * extension.h (get_xmethod_result_type): Declare.
7886 * python/py-xmethods.c (get_result_type_method_name): New static
7887 global.
7888 (py_get_result_type_method_name): Ditto.
7889 (gdbpy_get_xmethod_result_type): New function.
7890 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
7891 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
7892 * python/python.c (python_extension_ops): Add
7893 gdbpy_get_xmethod_result_type.
7894 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
7895 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
7896 xmethods.
7897 (value_x_unop): Ditto.
7898 * value.c (result_type_of_xmethod): New function.
7899 * value.h (result_type_of_xmethod): Declare.
7900
998d2a3e
GB
79012015-04-29 Gary Benson <gbenson@redhat.com>
7902
7903 * solib.c (solib_find_1): Allow fd argument to be NULL.
7904 (exec_file_find): Update comment.
7905 (solib_find): Likewise.
7906 * exec.c (exec_file_locate_attach): Use NULL as fd
7907 argument to exec_file_find to avoid having to close
7908 the opened file.
7909 * infrun.c (follow_exec): Likewise.
7910
34f5f757
DE
79112015-04-28 Doug Evans <dje@google.com>
7912
7913 PR python/18299
7914 * python/lib/gdb/printing.py (register_pretty_printer): Handle
7915 name or __name__ attributes. Handle gdb module as first argument.
7916
69b4374a
DE
79172015-04-28 Doug Evans <dje@google.com>
7918
7919 PR python/18089
7920 * python/py-prettyprint.c (print_children): Verify result of children
7921 iterator. Provide better error message.
7922 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
7923 * python/python.c (gdbpy_print_python_errors_p): New function.
7924
5e7cf078
DE
79252015-04-28 Doug Evans <dje@google.com>
7926
7927 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
7928
59fb7612
SS
79292015-04-28 Sasha Smundak <asmundak@google.com>
7930
7931 * NEWS: Mention gdb.Type.optimized_out method.
7932 * python/py-type.c (typy_optimized_out): New function.
7933
cea6e4f1
JB
79342015-04-28 John Baldwin <jhb@FreeBSD.org>
7935
7936 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
7937
24b73f8e
PP
79382015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7939
7940 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
7941 (initialize_utils): Move call of init_page_info() to ...
7942 * top.c (gdb_init): ... here.
7943
a88d0bb3
PP
79442015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7945
7946 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
7947 (tui_sigwinch_handler): Still update our idea of
7948 the terminal's width and height even when TUI is not active.
7949
d6e5e7f7
PP
79502015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7951
7952 * utils.h (set_screen_width_and_height): Declare.
7953 * utils.c (set_screen_width_and_height): Define.
7954 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
7955
ff862be4
GB
79562015-04-28 Gary Benson <gbenson@redhat.com>
7957
7958 * infrun.c (solist.h): New include.
7959 (follow_exec): Use exec_file_find to prefix execd_pathname
7960 with gdb_sysroot.
7961
2eb639cb
PP
79622015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7963
7964 * tui/tui-source.c (tui_set_source_content): Avoid calling
7965 strcpy() when offset is 0.
7966
97206799
PP
79672015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7968
7969 PR gdb/18155
7970 * tui/tui-data.c (tui_free_window): Don't free the locator
7971 window when passed an SRC_WIN or a DISASSEM_WIN.
7972
63ed8182
PP
79732015-04-28 Patrick Palka <patrick@parcs.ath.cx>
7974
7975 * tui/tui-data.h (struct tui_win_element): Forward-declare.
7976 (tui_win_content): Move declaration.
7977 (struct tui_gen_win_info): Give 'content' field the
7978 type tui_win_content.
7979 * tui/tui-data.c (init_content_element): Remove redundant and
7980 erroneous casts.
7981 (tui_add_content_elements): Remove erroneous cast.
7982 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
7983 casts.
7984 (tui_get_begin_asm_address): Likewise.
7985 * tui/tui-regs.c (tui_show_registers): Likewise.
7986 (tui_show_register_group): Likewise.
7987 (tui_display_registers_from): Likewise.
7988 (tui_check_register_values): Likewise.
7989 * tui/tui-source.c (tui_set_source_content): Likewise.
7990 (tui_set_source_content_nil): Likewise.
7991 (tui_source_is_displayed): Likewise.
7992 * tui/tui-stack.c (tui_show_locator_content): Likewise.
7993 (tui_set_locator_fullname): Likewise.
7994 (tui_set_locator_info): Likewise.
7995 (tui_show_frame_info): Likewise.
7996 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
7997 (tui_show_source_line): Likewise.
7998 (tui_horizontal_source_scroll): Likewise.
7999 (tui_update_breakpoint_info): Likewise.
8000 (tui_set_exec_info_content): Likewise.
8001 (tui_show_exec_info_content): Likewise.
8002 (tui_alloc_source_buffer): Likewise.
8003 (tui_line_is_displayed): Likewise.
8004 (tui_addr_is_displayed): Likewise.
8005
d2b41ca0
JB
80062015-04-27 John Baldwin <jhb@FreeBSD.org>
8007
8008 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
8009 event if PL_FLAG_EXEC is set.
8010 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
8011 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
8012 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
8013 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
8014 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
8015
e58e05d6
JB
80162015-04-27 John Baldwin <jhb@FreeBSD.org>
8017
8018 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
8019 [TDP_RFPPWAIT] New variable fbsd_pending_children.
8020 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
8021 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
8022 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
8023 [PT_LWPINFO] (fbsd_wait): New function.
8024 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
8025 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
8026 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
8027 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
8028 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
8029 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
8030 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
8031 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
8032 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
8033 "fbsd_wait".
8034 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
8035 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
8036 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
8037 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
8038 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
8039 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
8040 Set "to_post_attach" to "fbsd_post_attach".
8041
8f60fe01
JB
80422015-04-27 John Baldwin <jhb@FreeBSD.org>
8043
8044 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
8045 (fbsd_find_memory_regions): Mark static.
8046 (fbsd_nat_add_target): New function.
8047 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
8048 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
8049 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
8050 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
8051 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
8052 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
8053
5fbae7d1
GB
80542015-04-27 Gary Benson <gbenson@redhat.com>
8055
8056 * objfiles.c (allocate_objfile): Do not attempt to expand name
8057 if name is a "target:" filename.
8058 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
8059 to load auto-load scripts for objfiles with "target:" filenames.
8060
417c80f9
AA
80612015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8062
8063 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
8064 (enum s390_vector_abi_kind): New enum.
8065 (struct gdbarch_tdep)<vector_abi>: New field.
8066 (s390_effective_inner_type): Add parameter min_size. Stop
8067 unwrapping if the inner type is smaller than min_size.
8068 (s390_function_arg_float): Adjust call to
8069 s390_effective_inner_type.
8070 (s390_function_arg_vector): New function.
8071 (s390_function_arg_integer): Adjust comment.
8072 (struct s390_arg_state)<vr>: New field.
8073 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
8074 arguments according to vector ABI when appropriate.
8075 (s390_push_dummy_call): Initialize the argument state's field
8076 'vr'. Adjust calls to s390_handle_arg.
8077 (s390_register_return_value): Handle vector return values.
8078 (s390_return_value): Apply the "register" return value convention
8079 to a vector when appropriate.
8080 (s390_gdbarch_init): Initialize tdep->vector_abi.
8081 * NEWS: Announce S390 vector ABI support.
8082
4e65a17e
AA
80832015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8084
8085 * s390-linux-tdep.c (s390_return_value_convention): Remove
8086 function. Inline its logic...
8087 (s390_return_value): ...here. Instead, move the handling of the
8088 "register" return value convention...
8089 (s390_register_return_value): ...here. New function.
8090
80f75320
AA
80912015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8092
8093 * s390-linux-tdep.c
8094 (is_float_singleton): Remove function. Move the "singleton" part
8095 of the logic...
8096 (s390_effective_inner_type): ...here. New function.
8097 (is_float_like): Remove function. Inline its logic...
8098 (s390_function_arg_float): ...here.
8099 (is_pointer_like, is_integer_like, is_struct_like): Remove
8100 functions. Inline their logic...
8101 (s390_function_arg_integer): ...here.
8102 (s390_function_arg_pass_by_reference): Remove function.
8103 (extend_simple_arg): Remove function.
8104 (alignment_of): Remove function.
8105 (struct s390_arg_state): New structure.
8106 (s390_handle_arg): New function.
8107 (s390_push_dummy_call): Move parameter placement logic to the new
8108 function s390_handle_arg. Call it for calculating the stack area
8109 sizes first, and again for actually writing the parameters.
8110
6dbc9c04
AA
81112015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
8112
8113 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
8114 false if the argument is zero.
8115
9e195661
PMR
81162015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
8117
8118 * ada-lang.c (template_to_static_fixed_type): Return input type
8119 when it is already fixed. Cache the input type itself when not
8120 creating a static fixed copy. Make it explicit that we never
8121 molestate the input type.
8122 * gdbtypes.c (resolve_dynamic_struct): Reset the
8123 TYPE_TARGET_TYPE field for resolved copies.
8124
460efde1
JB
81252015-04-27 Joel Brobecker <brobecker@adacore.com>
8126
8127 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
8128 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
8129 (template_to_static_fixed_type): Call ada_check_typedef only
8130 when necessary.
8131
6faec16b
AB
81322015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8133
8134 * cli/cli-dump.c (srec_dump_command): Add internationalization
8135 mark ups.
8136 (ihex_dump_command): Likewise.
8137 (tekhex_dump_command): Likewise.
8138 (binary_dump_command): Likewise.
8139 (binary_append_command): Likewise.
8140
cf75d6c3
AB
81412015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
8142
8143 * cli/cli-dump.c (verilog_cmdlist): New variable.
8144 (dump_verilog_memory): New function.
8145 (dump_verilog_value): New function.
8146 (verilog_dump_command): New function.
8147 (_initialize_cli_dump): Add new commands to support verilog dump
8148 format.
8149 * NEWS: Add entry for "dump verilog".
8150
8cd00c59
PMR
81512015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
8152
8153 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
8154 descriptive type when there is none.
8155
8900d71e
PP
81562015-04-23 Patrick Palka <patrick@parcs.ath.cx>
8157
8158 * tui/tui-win.c (tui_async_resize_screen): Call
8159 rl_resize_terminal().
8160
f16eab5f
JT
81612015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8162
8163 * windows-nat.c (handle_output_debug_string): Don't change
8164 current_event.dwThreadId.
8165 (get_windows_debug_event): Use thread_id, rather than relying on
8166 current_event.dwThreadId being changed.
8167
68ffc902
JT
81682015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
8169
8170 * windows-nat.c (windows_continue): Report an error if
8171 ContinueDebugEvent() fails.
8172
23942819
JT
81732015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8174
8175 * windows-nat.c (windows_resume): Fix misspelling in debug output.
8176
e6ad66bd
JT
81772015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8178
8179 * windows-nat.c (get_windows_debug_event): Replace retval with
8180 thread_id throughout. Update stale comment.
8181
776704b9
JT
81822015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
8183
8184 * windows-nat.c (get_windows_debug_event): Don't use ternary
8185 conditional operator.
8186
8aae4344
PM
81872015-04-21 Pierre Muller <muller@sourceware.org>
8188
8189 PR pascal/17815
8190 p-exp.y (yylex): Reorganize code to return the matched pattern
8191 for a field of this.
8192
819843c7
GB
81932015-04-21 Gary Benson <gbenson@redhat.com>
8194
8195 * common/fileio.h (fileio_to_host_openflags): New declaration.
8196 * common/fileio.c (fcntl.h): New include.
8197 (fileio_to_host_openflags): New function, factored out from...
8198 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
8199 Single use updated.
8200
0bca7f99
KB
82012015-04-21 Kevin Buettner <kevinb@redhat.com>
8202
8203 * rl78-tdep.c (RL78_SP_ADDR): Define.
8204 (opc_reg_to_gdb_regnum): New static function.
8205 (rl78_analyze_prologue): Recognize instructions forming slightly
8206 more interesting prologues.
8207
e771e4be
PMR
82082015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8209
8210 Revert:
8211 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8212 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8213 TYPE_CODE_REF types so that they are not considered as dynamic
8214 depending on the referenced type.
8215 (resolve_dynamic_type_internal): Likewise.
8216
ee715b5a
PMR
82172015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
8218
8219 Revert:
8220 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8221 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8222 "top_level" parameter.
8223 (resolve_dynamic_type_internal): Remove the unused "top_level"
8224 parameter. Update call to is_dynamic_type_internal.
8225 (is_dynamic_type): Update call to is_dynamic_type_internal.
8226 (resolve_dynamic_range): Update call to
8227 resolve_dynamic_type_internal.
8228 (resolve_dynamic_union): Likewise.
8229 (resolve_dynamic_struct): Likewise.
8230 (resolve_dynamic_type): Likewise.
8231
e31d7699
GKB
82322015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
8233
8234 * breakpoint.c (update_dprintf_command_list): Remove duplicated
8235 xmalloc.
8236
d214e5e7
TS
82372015-04-20 Thomas Schwinge <thomas@codesourcery.com>
8238
110f9112
TS
8239 * reply_mig_hack.awk: Robustify parsing.
8240
d214e5e7
TS
8241 * reply_mig_hack.awk: Don't bother to declare an intermediate
8242 function pointer variable.
8243
8f61baf8
DE
82442015-04-17 Doug Evans <dje@google.com>
8245
8246 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
8247 to "exec_displacement" to avoid confusion with inner use of the name.
8248
dbbf180a
YQ
82492015-04-17 Pedro Alves <palves@redhat.com>
8250
8251 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
8252 if HW point of TYPE isn't supported.
8253
059790a0
YQ
82542015-04-17 Yao Qi <yao.qi@linaro.org>
8255 Pedro Alves <palves@redhat.com>
8256
8257 * target.h (target_can_use_hardware_watchpoint): Update comments.
8258 Remove trailing ";".
8259
1b6e6f5c
GB
82602015-04-17 Gary Benson <gbenson@redhat.com>
8261
8262 * remote.c (remote_add_inferior): New argument try_open_exec.
8263 If nonzero, attempt to open the inferior's executable file as
8264 the main executable if no main executable is open already.
8265 All callers updated.
8266 * NEWS: Mention that GDB now supports automatic location and
8267 retrieval of executable + files from remote targets.
8268
c78fa86a
GB
82692015-04-17 Gary Benson <gbenson@redhat.com>
8270
8271 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
8272 * remote.c (PACKET_qXfer_exec_file): Likewise.
8273 (remote_protocol_features): Register the
8274 "qXfer:exec-file:read" feature.
8275 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
8276 (remote_pid_to_exec_file): New function.
8277 (init_remote_ops): Initialize to_pid_to_exec_file.
8278 (_initialize_remote): Register new "set/show remote
8279 pid-to-exec-file-packet" command.
8280 * NEWS: Announce new qXfer:exec-file:read packet.
8281
e0d86d2c
GB
82822015-04-17 Gary Benson <gbenson@redhat.com>
8283
8284 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
8285 New declaration.
8286 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
8287 New function, factored out from...
8288 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
8289
a9a5a3d1
GB
82902015-04-17 Gary Benson <gbenson@redhat.com>
8291
8292 * exec.c (solist.h): New include.
8293 (exec_file_locate_attach): Prefix absolute executable
8294 paths with gdb_sysroot if set.
8295 * NEWS: Mention that executable paths may be prepended
8296 with sysroot.
8297
af1900b0
GB
82982015-04-17 Gary Benson <gbenson@redhat.com>
8299
8300 * solist.h (exec_file_find): New declaration.
8301 * solib.c (solib_find_1): New function, factored out from...
8302 (solib_find): ...here.
8303 (exec_file_find): New function.
8304
a10de604
GB
83052015-04-17 Gary Benson <gbenson@redhat.com>
8306
8307 * gdbcore.h (exec_file_locate_attach): New declaration.
8308 * exec.c (exec_file_locate_attach): New function, factored
8309 out from...
8310 * infcmd.c (attach_command_post_wait): ...here.
8311
92209ddf
MF
83122015-04-17 Mike Frysinger <vapier@gentoo.org>
8313
8314 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
8315
8550d3b3
YQ
83162015-04-16 Yao Qi <yao.qi@linaro.org>
8317
8318 * infrun.c (maybe_software_singlestep): Declare.
8319 (displaced_step_fixup): Call maybe_software_singlestep.
8320
30b3dd9d
DE
83212015-04-15 Doug Evans <dje@google.com>
8322
8323 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
8324
61d96d7e
DE
83252015-04-15 Doug Evans <dje@google.com>
8326
8327 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
8328
40d2f8d6
SM
83292015-04-15 Simon Marchi <simon.marchi@ericsson.com>
8330
8331 * python/lib/gdb/command/unwinders.py: Add parentheses.
8332
6bbbba9b
YQ
83332015-04-15 Yao Qi <yao.qi@linaro.org>
8334
8335 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
8336
2bb2dcab
YQ
83372015-04-15 Yao Qi <yao.qi@linaro.org>
8338
8339 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
8340
41f071ef
YQ
83412015-04-15 Yao Qi <yao.qi@linaro.org>
8342
8343 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
8344 dsc->insn_size instead of 4.
8345
326a5c7e
GB
83462015-04-14 Gary Benson <gbenson@redhat.com>
8347
8348 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
8349 * minidebug.c (lzma_stat): Likewise.
8350 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
8351 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
8352
dd177e81
SS
83532015-04-13 Stan Shebs <stanshebs@google.com>
8354
8355 * MAINTAINERS: Update my email address.
8356
97de3545
JB
83572015-04-13 John Baldwin <jhb@FreeBSD.org>
8358
8359 * amd64-tdep.c (amd64_target_description): New function.
8360 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
8361 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
8362 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8363 x86 extended save area.
8364 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8365 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
8366 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
8367 (_initialize_amd64fbsd_nat): Set "to_read_description" to
8368 "amd64fbsd_read_description".
8369 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
8370 (amd64fbsd_supply_xstateregset): New function.
8371 (amd64fbsd_collect_xstateregset): New function.
8372 Add "amd64fbsd_xstateregset".
8373 (amd64fbsd_iterate_over_regset_sections): New function.
8374 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
8375 "I386_FBSD_XSAVE_XCR0_OFFSET".
8376 Add "iterate_over_regset_sections" gdbarch method.
8377 Add "core_read_description" gdbarch method.
8378 * i386-tdep.c (i386_target_description): New function.
8379 * i386-tdep.h: Export i386_target_description and tdesc_i386.
8380 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
8381 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
8382 x86 extended save area.
8383 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
8384 * i386bsd-nat.h: Export i386bsd_xsave_len.
8385 * i386fbsd-nat.c (i386fbsd_read_description): New function.
8386 (_initialize_i386fbsd_nat): Set "to_read_description" to
8387 "i386fbsd_read_description".
8388 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
8389 (i386fbsd_core_read_description): New function.
8390 (i386fbsd_supply_xstateregset): New function.
8391 (i386fbsd_collect_xstateregset): New function.
8392 Add "i386fbsd_xstateregset".
8393 (i386fbsd_iterate_over_regset_sections): New function.
8394 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
8395 "I386_FBSD_XSAVE_XCR0_OFFSET".
8396 Add "iterate_over_regset_sections" gdbarch method.
8397 Add "core_read_description" gdbarch method.
8398 * i386fbsd-tdep.h: New file.
8399
4f45d445
JK
84002015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8401
8402 * NEWS (Changes since GDB 7.9): Add removed -xdb.
8403 * breakpoint.c (command_line_is_silent): Remove xdb_commands
8404 conditional.
8405 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
8406 and lb.
8407 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
8408 va.
8409 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
8410 conditional.
8411 * defs.h (xdb_commands): Remove declaration.
8412 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
8413 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
8414 * infcmd.c (run_no_args_command, go_command): Remove.
8415 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
8416 * infrun.c (xdb_handle_command): Remove.
8417 (_initialize_infrun): Remove xdb_commands for lz and z.
8418 * main.c (xdb_commands): Remove variable.
8419 (captured_main): Remove "xdb" from long_options.
8420 (print_gdb_help): Remove --xdb from help.
8421 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
8422 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
8423 * stack.c (backtrace_full_command, args_plus_locals_info)
8424 (current_frame_command): Remove.
8425 (_initialize_stack): Remove xdb_commands for t, T and l.
8426 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
8427 * thread.c (_initialize_thread): Remove xdb_commands condition.
8428 * tui/tui-layout.c (tui_toggle_layout_command)
8429 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
8430 (_initialize_tui_layout): Remove xdb_commands for td and ts.
8431 * tui/tui-regs.c (tui_scroll_regs_forward_command)
8432 (tui_scroll_regs_backward_command): Remove.
8433 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
8434 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
8435 (_initialize_tui_win): Remove xdb_commands for U and w.
8436 * utils.c (pagination_on_command, pagination_off_command): Remove.
8437 (initialize_utils): Remove xdb_commands for am and sm.
8438
cb71640d
PA
84392015-04-10 Pedro Alves <palves@redhat.com>
8440
8441 * infrun.c (displaced_step_fixup): Switch to the event ptid
8442 earlier. If the thread stopped for a watchpoint and the
8443 target/arch has non-continuable watchpoints, cancel the displaced
8444 step.
8445 (resume): Don't start a displaced step if in-line step-over info
8446 is valid.
8447
8f572e5c
PA
84482015-04-10 Pedro Alves <palves@redhat.com>
8449
8450 * infrun.c (displaced_step_in_progress): New function.
8451 (do_target_resume): Advise target to report all signals if
8452 displaced stepping.
8453
8d707a12
PA
84542015-04-10 Pedro Alves <palves@redhat.com>
8455
8456 PR gdb/18216
8457 * infrun.c (process_event_stop_test): Don't assume a step-resume
8458 is set if tp->stepped_breakpoint is true.
8459
ef713951
YQ
84602015-04-10 Yao Qi <yao.qi@linaro.org>
8461
8462 * arm-tdep.c (install_alu_reg): Update comment.
8463 (thumb_copy_alu_reg): Remove local variable rn. Update
8464 debugging message. Use r2 instead of r1 in the modified
8465 instruction.
8466
906d60cf
PA
84672015-04-10 Pedro Alves <palves@redhat.com>
8468
8469 PR gdb/13858
8470 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
8471 linux_displaced_step_location as gdbarch_displaced_step_location
8472 hook.
8473 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
8474 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
8475 * linux-tdep.c (linux_displaced_step_location): New function,
8476 based on ppc_linux_displaced_step_location.
8477 * linux-tdep.h (linux_displaced_step_location): New declaration.
8478 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
8479 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
8480 Delete.
8481 (ppc_linux_init_abi): Install linux_displaced_step_location as
8482 gdbarch_displaced_step_location hook, even without Cell/B.E..
8483 (_initialize_ppc_linux_tdep): Don't install
8484 ppc_linux_inferior_created as inferior_created observer.
8485 * s390-linux-tdep.c (s390_gdbarch_init): Install
8486 linux_displaced_step_location as gdbarch_displaced_step_location
8487 hook.
8488
7823a941
GB
84892015-04-09 Gary Benson <gbenson@redhat.com>
8490
8491 * common/common-remote-fileio.h: Rename to...
8492 * common/fileio.h: ...this. Update all references.
8493 (remote_fileio_to_fio_error): Rename to...
8494 (host_to_fileio_error): ...this.
8495 (remote_fileio_to_be): Rename to...
8496 (host_to_bigendian): ...this. Update all callers.
8497 (remote_fileio_to_fio_uint): Rename to...
8498 (host_to_fileio_uint): ...this. Update all callers.
8499 (remote_fileio_to_fio_time): Rename to...
8500 (host_to_fileio_time): ...this. Update all callers.
8501 (remote_fileio_to_fio_stat): Rename to...
8502 (host_to_fileio_stat): ...this.
8503 Update all references.
8504 * common/common-remote-fileio.c: Rename to...
8505 * common/fileio.c: ...this. Update all references.
8506 (remote_fileio_to_fio_error): Rename to...
8507 (host_to_fileio_error): ...this. Update all callers.
8508 (remote_fileio_mode_to_target): Rename to...
8509 (fileio_mode_pack): ...this. Update all callers.
8510 (remote_fileio_to_fio_mode): Rename to...
8511 (host_to_fileio_mode): ...this. Update all callers.
8512 (remote_fileio_to_fio_ulong): Rename to...
8513 (host_to_fileio_ulong): ...this. Update all callers.
8514 (remote_fileio_to_fio_stat): Rename to...
8515 (host_to_fileio_stat): ...this. Update all callers.
8516
f2983cc3
AW
85172015-04-09 Andy Wingo <wingo@igalia.com>
8518
8519 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
8520 (frame_functions): Bind gdbscm_frame_read_register to
8521 frame-read-register.
8522 * guile/lib/gdb.scm (frame-read-register): Export.
8523
b88bb450
GB
85242015-04-09 Gary Benson <gbenson@redhat.com>
8525
8526 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
8527 New declaration.
8528 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
8529 New function, factored out the named functions below.
8530 * inf-child.c (gdb/fileio.h): Remove include.
8531 (common-remote-fileio.h): New include.
8532 (inf_child_errno_to_fileio_error): Remove function. Update
8533 all callers to use remote_fileio_to_fio_error.
8534 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
8535
2f2680f3
AW
85362015-04-09 Andy Wingo <wingo@igalia.com>
8537
8538 * MAINTAINERS (Write After Approval): Add Andy Wingo.
8539
5a2d4533
L
85402015-04-09 H.J. Lu <hongjiu.lu@intel.com>
8541
8542 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
8543 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
8544 * configure: Regenerated.
8545
421693b0
PA
85462015-04-09 Pedro Alves <palves@redhat.com>
8547
8548 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
8549 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
8550 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
8551 * gnulib/import/Makefile.am: Update.
8552 * gnulib/import/Makefile.in: Update.
8553 * gnulib/import/m4/gnulib-cache.m4: Update.
8554 * gnulib/import/m4/gnulib-comp.m4: Update.
8555 * gnulib/import/m4/strtok_r.m4: New file.
8556 * gnulib/import/strtok_r.c: New file.
8557
f543dc83
PA
85582015-04-09 Pedro Alves <palves@redhat.com>
8559
8560 * gnulib/update-gnulib.sh (aclocal version check): Filter out
8561 "called too early to check prototype".
8562
6d62641c
SDJ
85632015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
8564
8565 PR python/16699
8566 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
8567 use a caching mechanism. Adjust comments and code to reflect
8568 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
8569 (cmdpy_completer_handle_brkchars): Adjust call to
8570 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
8571 (cmdpy_completer): Likewise.
8572
85558555
YQ
85732015-04-08 Yao Qi <yao.qi@linaro.org>
8574
8575 * spu-tdep.c (spu_gdbarch_init): Don't call
8576 set_gdbarch_cannot_step_breakpoint.
8577
d249a14a
SDJ
85782015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
8579
8580 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
8581
8a06aea7
PA
85822015-04-07 Pedro Alves <palves@redhat.com>
8583
8584 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
8585 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
8586 (delete_exited_threads): New declaration.
8587 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
8588 * linux-nat.c (linux_nat_update_thread_list): New function.
8589 (linux_nat_add_target): Install it.
8590 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
8591 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
8592 (delete_exited_threads): New function.
8593
d9b67d9f
PA
85942015-04-07 Pedro Alves <pedro@codesourcery.com>
8595
8596 * infrun.c (resume) <displaced stepping debug output>: Get the
8597 leader thread's regcache, not resume_ptid's.
8598
2c26b84f
DE
85992015-04-06 Doug Evans <xdje42@gmail.com>
8600
8601 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
8602 VAR_DOMAIN.
8603 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
8604 Include symbol domain in debugging output.
8605
7a85168d
PA
86062015-04-06 Pedro Alves <palves@redhat.com>
8607 Bernd Edlinger <bernd.edlinger@hotmail.de>
8608
8609 * configure.ac: Remove the mingw32-specific stub-termcap.o
8610 fallback, and instead fallback to the stub termcap on all hosts.
8611 * configure: Regenerate.
8612 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
8613 symbols.
8614
25755e2b
PMR
86152015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8616
8617 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
8618 "top_level" parameter.
8619 (resolve_dynamic_type_internal): Remove the unused "top_level"
8620 parameter. Update call to is_dynamic_type_internal.
8621 (is_dynamic_type): Update call to is_dynamic_type_internal.
8622 (resolve_dynamic_range): Update call to
8623 resolve_dynamic_type_internal.
8624 (resolve_dynamic_union): Likewise.
8625 (resolve_dynamic_struct): Likewise.
8626 (resolve_dynamic_type): Likewise.
8627
961f4160
PMR
86282015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
8629
8630 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
8631 TYPE_CODE_REF types so that they are not considered as dynamic
8632 depending on the referenced type.
8633 (resolve_dynamic_type_internal): Likewise.
8634
39f3de7c
L
86352015-04-02 H.J. Lu <hongjiu.lu@intel.com>
8636
8637 * Makefile.in (top_srcdir): New.
8638 * configure: Regenerated.
8639
599bd15c
GB
86402015-04-02 Gary Benson <gbenson@redhat.com>
8641
8642 * NEWS: Announce the new default sysroot of "target:".
8643
fed040c6
GB
86442015-04-02 Gary Benson <gbenson@redhat.com>
8645
8646 * main.c (captured_main): Set gdb_sysroot to "target:"
8647 if not otherwise set.
8648
64c0b5de
GB
86492015-04-02 Gary Benson <gbenson@redhat.com>
8650
8651 * exec.c (exec_file_attach): Support "target:" filenames.
8652
b57fbfba
GB
86532015-04-02 Gary Benson <gbenson@redhat.com>
8654
8655 * solib.c (solib_find): Strip "target:" prefix from sysroot
8656 if accessing local files.
8657
97a41605
GB
86582015-04-02 Gary Benson <gbenson@redhat.com>
8659
8660 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
8661 checks and error messages.
8662
2938e6cf
GB
86632015-04-02 Gary Benson <gbenson@redhat.com>
8664
8665 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
8666 (remote_filename_p): Remove declaration.
8667 (remote_bfd_open): Likewise.
8668 * remote.c (remote_bfd_iovec_open): Remove function.
8669 (remote_bfd_iovec_close): Likewise.
8670 (remote_bfd_iovec_pread): Likewise.
8671 (remote_bfd_iovec_stat): Likewise.
8672 (remote_filename_p): Likewise.
8673 (remote_bfd_open): Likewise.
8674 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
8675 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
8676 (gdb_bfd_open_maybe_remote): Remove function.
8677 (symfile_bfd_open): Replace remote filename check with
8678 target filename check.
8679 (reread_symbols): Use gdb_bfd_open.
8680 * build-id.c (gdbcore.h): New include.
8681 (build_id_to_debug_bfd): Use gdb_bfd_open.
8682 * infcmd.c (attach_command_post_wait): Remove remote filename
8683 check.
8684 * solib.c (solib_find): Replace remote-specific handling with
8685 target-specific handling. Update comments where necessary.
8686 (solib_bfd_open): Replace remote-specific handling with
8687 target-specific handling.
8688 (gdb_sysroot_changed): New function.
8689 (_initialize_solib): Call the above when gdb_sysroot changes.
8690 * windows-tdep.c (gdbcore.h): New include.
8691 (windows_xfer_shared_library): Use gdb_bfd_open.
8692
f08e97fe
GB
86932015-04-02 Gary Benson <gbenson@redhat.com>
8694
8695 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
8696 (is_target_filename): New declaration.
8697 (gdb_bfd_has_target_filename): Likewise.
8698 (gdb_bfd_open): Update documentation comment.
8699 * gdb_bfd.c (target.h): New include.
8700 (gdb/fileio.h): Likewise.
8701 (is_target_filename): New function.
8702 (gdb_bfd_has_target_filename): Likewise.
8703 (fileio_errno_to_host): Likewise.
8704 (gdb_bfd_iovec_fileio_open): Likewise.
8705 (gdb_bfd_iovec_fileio_pread): Likewise.
8706 (gdb_bfd_iovec_fileio_close): Likewise.
8707 (gdb_bfd_iovec_fileio_fstat): Likewise.
8708 (gdb_bfd_open): Use target fileio to access paths prefixed
8709 with "target:" where necessary.
8710
4bd7dc42
GB
87112015-04-02 Gary Benson <gbenson@redhat.com>
8712
8713 * target.h (struct target_ops) <to_filesystem_is_local>:
8714 New field.
8715 (target_filesystem_is_local): New macro.
8716 * target-delegates.c: Regenerate.
8717 * remote.c (remote_filesystem_is_local): New function.
8718 (init_remote_ops): Initialize to_filesystem_is_local.
8719
9b15c1f0
GB
87202015-04-02 Gary Benson <gbenson@redhat.com>
8721
8722 * target.h (struct target_ops) <to_fileio_fstat>: New field.
8723 (target_fileio_fstat): New declaration.
8724 * target.c (target_fileio_fstat): New function.
8725 * inf-child.c (inf_child_fileio_fstat): Likewise.
8726 (inf_child_target): Initialize to_fileio_fstat.
8727 * remote.c (init_remote_ops): Likewise.
8728
d11916aa
SS
87292015-04-01 Sasha Smundak <asmundak@google.com>
8730
8731 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
8732 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
8733 (py-unwind.o): New recipe.
8734 * NEWS: mention Python frame unwinding.
8735 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
8736 gdb/unwinder.py and gdb/command/unwinder.py
8737 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
8738 list.
8739 (execute_unwinders): New function.
8740 * python/lib/gdb/command/unwinders.py: New file.
8741 * python/lib/gdb/unwinder.py: New file.
8742 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
8743 (objfpy_dealloc): Decrement frame_unwinders reference count.
8744 (objfpy_initialize): Create frame_unwinders list.
8745 (objfpy_get_frame_unwinders): New function.
8746 (objfpy_set_frame_unwinders): Ditto.
8747 (objfile_getset): Add frame_unwinders attribute to Objfile.
8748 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
8749 (pspy_dealloc): Decrement frame_unwinders reference count.
8750 (pspy_initialize): Create frame_unwinders list.
8751 (pspy_get_frame_unwinders): New function.
8752 (pspy_set_frame_unwinders): Ditto.
8753 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
8754 * python/py-unwind.c: New file.
8755 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
8756 (objpy_get_frame_unwinders): New prototype.
8757 (gdbpy_initialize_unwind): New prototype.
8758 * python/python.c (gdbpy_apply_type_printers): Call
8759 gdbpy_initialize_unwind.
8760
6b403daa
PA
87612015-04-01 Pedro Alves <palves@redhat.com>
8762
8763 * infrun.c (resume): Check currently_stepping after clearing
8764 stepped_breakpoint, not before.
8765
1176ecec
PA
87662015-04-01 Pedro Alves <palves@redhat.com>
8767
8768 * infrun.c (print_target_wait_results): Print all the ptid
8769 elements.
8770
de1fe8c8
PA
87712015-04-01 Pedro Alves <palves@redhat.com>
8772
8773 * infrun.c (keep_going): Also discard cleanups if inserting
8774 breakpoints fails.
8775
e6f5c25b
PA
87762015-04-01 Pedro Alves <palves@redhat.com>
8777
8778 * infrun.c (wait_for_inferior): Install the
8779 finish_thread_state_cleanup cleanup across the whole function, not
8780 just around handle_inferior_event.
8781
1ac806b8
PA
87822015-04-01 Pedro Alves <palves@redhat.com>
8783
8784 * infrun.c (resume) <step past permanent breakpoint>: Use
8785 do_target_resume.
8786
2ee52aa4
PA
87872015-04-01 Pedro Alves <palves@redhat.com>
8788
8789 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
8790
5445da1b
PMR
87912015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
8792
8793 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
8794
4eec2deb
PA
87952015-04-01 Pedro Alves <palves@redhat.com>
8796
8797 * linux-thread-db.c (record_thread): Readd the thread to gdb's
8798 list if it was marked exited.
8799
afa59b79
L
88002015-04-01 H.J. Lu <hongjiu.lu@intel.com>
8801
8802 * configure: Regenerated.
8803
df8411da
SDJ
88042015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8805 Jan Kratochvil <jan.kratochvil@redhat.com>
8806 Oleg Nesterov <oleg@redhat.com>
8807
8808 PR corefiles/16092
8809 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
8810 New enum identifying the various options of the coredump_filter
8811 file.
8812 (struct smaps_vmflags): New struct.
8813 (use_coredump_filter): New variable.
8814 (decode_vmflags): New function.
8815 (mapping_is_anonymous_p): Likewise.
8816 (dump_mapping_p): Likewise.
8817 (linux_find_memory_regions_full): New variables
8818 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
8819 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
8820 parsing of its information. Implement memory mapping filtering
8821 based on its contents.
8822 (show_use_coredump_filter): New function.
8823 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
8824 * NEWS: Mention the possibility of using the
8825 '/proc/PID/coredump_filter' file when generating a corefile.
8826 Mention new command 'set use-coredump-filter'.
8827
416f679e
SDJ
88282015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
8829
8830 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
8831 read_memory_unsigned_integer.
8832
711a72d3
L
88332015-03-31 H.J. Lu <hongjiu.lu@intel.com>
8834
8835 * Makefile.in (ZLIB): New.
8836 (ZLIBINC): Likewise.
8837 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
8838 (CLIBS): Add $(ZLIB).
8839 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
8840 Add -lz to LIBS.
8841 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
8842 * top.c (print_gdb_configuration): Remove --with-zlib and
8843 --without-zlib.
8844 * config.in: Regenerated.
8845 * configure: Likewise.
8846
d33279b3
AT
88472015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
8848
8849 * NEWS: Mention info os cpus support.
8850 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
8851 (struct osdata_type): Add cpus entry, reorder the entries in
8852 alphabetical order.
8853
71b30f27
MK
88542015-03-31 Matthias Klose <doko@ubuntu.com>
8855
8856 * compile/compile.c (compile_to_object): Allow triplets with or
8857 without vendor set.
8858
13ce9222
DE
88592015-03-30 Doug Evans <dje@google.com>
8860
8861 PR c++/18141
8862 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
8863 klass in VAR_DOMAIN.
8864
20f796c9
GB
88652015-03-30 Gary Benson <gbenson@redhat.com>
8866
8867 * remote.c (remote_mourn_1): Remove function. Update all callers
8868 to use remote_mourn.
8869 (extended_remote_mourn_1): Remove function. Update all callers
8870 to use extended_remote_mourn.
8871 (extended_remote_attach_1): Remove function. Update all callers
8872 to use extended_remote_attach.
8873
49d45b20
JB
88742015-03-28 James Bowman <james.bowman@ftdichip.com>
8875
8876 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
8877 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
8878 (ALLDEPFILES): Add ft32-tdep.c.
8879 * configure.tgt: Add FT32 entry.
8880 * ft32-tdep.c: New file, FT32 target-dependent code.
8881 * ft32-tdep.h: New file, FT32 target-dependent code.
8882
1c4ff080
JK
88832015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8884
8885 Revert:
8886 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8887 Code cleanup.
8888 * printcmd.c (print_command_1): Move expr variable scope.
8889
79498702
JB
88902015-03-27 Joel Brobecker <brobecker@adacore.com>
8891
8892 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
8893
ce9c0ca1
AK
88942015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
8895
8896 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
8897 sections.
8898
429e1e81
JB
88992015-03-26 Joel Brobecker <brobecker@adacore.com>
8900
8901 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
8902 exception raised while parsing the probe arguments.
8903 Force parsing to be done using the C language parser.
8904 * expression.h (parse_expression_with_language): Declare.
8905 * parse.c (parse_expression_with_language): New function.
8906
4593441b
JT
89072015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
8908
8909 * MAINTAINERS (Write After Approval): Add "Jon Turney".
8910
ff908ebf
AW
89112015-03-26 Andy Wingo <wingo@igalia.com>
8912
8913 PR symtab/18148
8914 * dwarf2read.c (struct partial_die_info): Add has_const_value
8915 member.
8916 (add_partial_symbol): Don't punt on symbols that have const_value
8917 attributes.
8918 (read_partial_die): Detect DW_AT_const_value.
8919
f30d5c78
JK
89202015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8921
8922 Code cleanup.
8923 * printcmd.c (print_command_1): Move expr variable scope.
8924
8d89f51a
JK
89252015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8926
8927 Code cleanup.
8928 * printcmd.c (validate_format): Make the parameter cmdname const.
8929
0b736949
DB
89302015-03-26 Don Breazeal <donb@codesourcery.com>
8931
8932 * remote.c (_initialize_remote): Update comment.
8933
20d35291
PA
89342015-03-26 Pedro Alves <palves@redhat.com>
8935 Jon TURNEY <jon.turney@dronecode.org.uk>
8936
8937 * coffread.c (coff_symfile_read): When constructing the name of an
8938 import stub symbol from import symbol for amd64, only skip the
8939 char after _imp_ if the target is underscored (like i386) and the
8940 char is indeed the target's leading char.
8941
6a3753b3
PA
89422015-03-25 Pedro Alves <palves@redhat.com>
8943
8944 * target.h <to_async>: Replace 'callback' and 'context' parameters
8945 with boolean 'enable' parameter.
8946 (target_async): Replace CALLBACK and CONTEXT parameters with
8947 boolean ENABLE parameter.
8948 * inf-loop.c (inferior_event_handler): Adjust.
8949 * linux-nat.c (linux_nat_attach, linux_nat_resume)
8950 (linux_nat_resume): Adjust.
8951 (async_client_callback, async_client_context): Delete.
8952 (handle_target_event): Call inferior_event_handler directly.
8953 (linux_nat_async): Replace 'callback' and 'context' parameters
8954 with boolean 'enable' parameter. Adjust. Remove references to
8955 async_client_callback and async_client_context.
8956 (linux_nat_close): Adjust.
8957 * record-btrace.c (record_btrace_async): Replace 'callback' and
8958 'context' parameters with boolean 'enable' parameter. Adjust.
8959 (record_btrace_resume): Adjust.
8960 * record-full.c (record_full_async): Replace 'callback' and
8961 'context' parameters with boolean 'enable' parameter. Adjust.
8962 (record_full_resume, record_full_core_resume): Adjust.
8963 * remote.c (struct remote_state) <async_client_callback,
8964 async_client_context>: Delete fields.
8965 (remote_start_remote, extended_remote_attach_1, remote_resume)
8966 (extended_remote_create_inferior): Adjust.
8967 (remote_async_serial_handler): Call inferior_event_handler
8968 directly.
8969 (remote_async): Replace 'callback' and 'context' parameters with
8970 boolean 'enable' parameter. Adjust.
8971 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
8972 Adjust.
8973 * target-delegates.c: Regenerate.
8974
1c4b552b
GB
89752015-03-25 Gary Benson <gbenson@redhat.com>
8976 Pedro Alves <palves@redhat.com>
8977
8978 * target.c (fileio_ft_t): New typedef, define object vector.
8979 (fileio_fhandles): New static variable.
8980 (is_closed_fileio_fh): New macro.
8981 (lowest_closed_fd): New static variable.
8982 (acquire_fileio_fd): New function.
8983 (release_fileio_fd): Likewise.
8984 (fileio_fd_to_fh): New macro.
8985 (target_fileio_open): Wrap the file descriptor on success.
8986 (target_fileio_pwrite): Updated to use wrapped file descriptor.
8987 (target_fileio_pread): Likewise.
8988 (target_fileio_close): Likewise.
8989
a25d8bf9
PA
89902015-03-24 Pedro Alves <palves@redhat.com>
8991
8992 * thread.c (thread_apply_all_command): Take exited threads into
8993 account.
8994
44a1ee51
PA
89952015-03-24 Pedro Alves <palves@redhat.com>
8996
8997 * infrun.c (resume, proceed): Mention
8998 switch_back_to_stepped_thread, not switch_back_to_stepping.
8999
f3263aa4
PA
90002015-03-24 Pedro Alves <palves@redhat.com>
9001
9002 * infrun.c (user_visible_resume_ptid): Rewrite going from
9003 most-locked to unlocked instead of the opposite. Move comment ...
9004 * infrun.h (user_visible_resume_ptid): ... here.
9005
2bf6fb9d
PA
90062015-03-24 Pedro Alves <palves@redhat.com>
9007
9008 * linux-nat.c (linux_nat_resume): Output debug logs before trying
9009 to resume the event lwp. Use the lwp's ptid instead of the passed
9010 in (maybe wildcard) ptid.
9011 (stop_wait_callback): Tweak debug log output.
9012 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
9013 TRAP_TRACE.
9014 (linux_nat_filter_event): In debug output, distinguish a
9015 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
9016 before trying to resume the lwp.
9017
283a9958
JB
90182015-03-24 Joel Brobecker <brobecker@adacore.com>
9019
9020 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
9021 pointer indirection.
9022 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
9023 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
9024
93a8e227
JB
90252015-03-24 Joel Brobecker <brobecker@adacore.com>
9026
9027 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
9028 Renames DYN_ATTR_DATA_LOCATION.
9029 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
9030 DYN_ATTR_DATA_LOCATION.
9031 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
9032 instead of DYN_ATTR_DATA_LOCATION.
9033
64ce06e4
PA
90342015-03-24 Pedro Alves <palves@redhat.com>
9035
9036 * breakpoint.c (until_break_command): Adjust call to proceed.
9037 * gdbthread.h (struct thread_control_state) <stepping_command>:
9038 New field.
9039 * infcall.c (run_inferior_call): Adjust call to proceed.
9040 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
9041 Adjust calls to proceed.
9042 (set_step_frame): Set the current thread's step_start_function
9043 here.
9044 (step_once): Adjust calls to proceed.
9045 (jump_command, signal_command, until_next_command)
9046 (finish_backward, finish_forward, proceed_after_attach_callback)
9047 (attach_command_post_wait): Adjust calls to proceed.
9048 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
9049 (do_target_resume): New function, factored out from ...
9050 (resume): ... here. Remove 'step' parameter. Instead, check
9051 currently_stepping to determine whether the thread should be
9052 single-stepped.
9053 (proceed): Remove 'step' parameter and don't set the thread's
9054 step_start_function here. Adjust call to 'resume'.
9055 (handle_inferior_event): Adjust calls to 'resume'.
9056 (switch_back_to_stepped_thread): Use do_target_resume instead of
9057 'resume'.
9058 (keep_going): Adjust calls to 'resume'.
9059 * infrun.h (proceed): Remove 'step' parameter.
9060 (resume): Likewise.
9061 * windows-nat.c (do_initial_windows_stuff): Adjust call to
9062 'resume'.
9063 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
9064
856e7dd6
PA
90652015-03-24 Pedro Alves <palves@redhat.com>
9066
9067 * gdbthread.h (struct thread_control_state) <stepping_command>:
9068 New field.
9069 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
9070 the thread's stepping_command field.
9071 * infrun.c (resume): Check the thread's stepping_command flag to
9072 determine which threads should be resumed. Rename 'entry_step'
9073 local to user_step.
9074 (clear_proceed_status_thread): Clear 'stepping_command'.
9075 (schedlock_applies): Change parameter type to struct thread_info
9076 pointer. Adjust.
9077 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
9078 (switch_back_to_stepped_thread): Adjust calls to
9079 'schedlock_applies'.
9080 (_initialize_infrun): Adjust "set scheduler-locking step" help.
9081
885eeb5b
PA
90822015-03-24 Pedro Alves <palves@redhat.com>
9083
9084 * infrun.c (step_start_function): Delete and ...
9085 * gdbthread.h (struct thread_control_state) <step_start_function>:
9086 ... now a field here.
9087 * infrun.c (clear_proceed_status_thread): Clear the thread's
9088 step_start_function.
9089 (proceed, process_event_stop_test, print_stop_event): Adjust.
9090
3333f03a
PA
90912015-03-24 Pedro Alves <palves@redhat.com>
9092
9093 * infrun.c (proceed): No longer handle negative step.
9094
369f6daa
GB
90952015-03-24 Gary Benson <gbenson@redhat.com>
9096
9097 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
9098 (x86_linux_prepare_to_resume): Likewise.
9099 * x86-linux-nat.c (x86_linux_new_thread):
9100 Moved to nat/x86-linux.c.
9101 (x86_linux_prepare_to_resume): Likewise.
9102 * nat/x86-linux.c (x86_linux_new_thread): New function.
9103 (x86_linux_prepare_to_resume): Likewise.
9104
8e5d4070
GB
91052015-03-24 Gary Benson <gbenson@redhat.com>
9106
9107 * nat/x86-linux-dregs.h: New file.
9108 * nat/x86-linux-dregs.c: Likewise.
9109 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
9110 (x86-linux-dregs.o): New rule.
9111 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
9112 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9113 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
9114 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
9115 (x86_linux_dr_get): Likewise.
9116 (x86_linux_dr_set): Likewise.
9117 (x86_linux_dr_get_addr): Likewise.
9118 (x86_linux_dr_get_control): Likewise.
9119 (x86_linux_dr_get_status): Likewise.
9120 (update_debug_registers_callback): Likewise.
9121 (x86_linux_dr_set_control): Likewise.
9122 (x86_linux_dr_set_addr): Likewise.
9123 (x86_linux_update_debug_registers): Likewise.
9124
2b95d440
GB
91252015-03-24 Gary Benson <gbenson@redhat.com>
9126
9127 * x86-linux-nat.c (x86_linux_update_debug_registers):
9128 New function, factored out from...
9129 (x86_linux_prepare_to_resume): ...this.
9130
14b0bc68
GB
91312015-03-24 Gary Benson <gbenson@redhat.com>
9132
9133 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
9134 (x86_linux_dr_set): Likewise.
9135 (x86_linux_dr_get_addr): Likewise.
9136 (x86_linux_dr_get_control): Likewise.
9137 (x86_linux_dr_get_status): Likewise.
9138 (update_debug_registers_callback): Likewise.
9139 (x86_linux_dr_set_control): Likewise.
9140 (x86_linux_dr_set_addr): Likewise.
9141 (x86_linux_prepare_to_resume): Likewise.
9142 (x86_linux_new_thread): Likewise.
9143
5dfe6ca8
GB
91442015-03-24 Gary Benson <gbenson@redhat.com>
9145
9146 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
9147 (x86_linux_new_thread): Rename argument.
9148
4b134ca1
GB
91492015-03-24 Gary Benson <gbenson@redhat.com>
9150
9151 * nat/x86-linux.h: New file.
9152 * nat/x86-linux.c: Likewise.
9153 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
9154 (x86-linux.o): New rule.
9155 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
9156 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9157 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
9158 (lwp_set_arch_private_info): New declaration.
9159 (lwp_arch_private_info): Likewise.
9160 * linux-nat.c (lwp_set_arch_private_info): New function.
9161 (lwp_arch_private_info): Likewise.
9162 * x86-linux-nat.c: Include nat/x86-linux.h.
9163 (arch_lwp_info): Removed structure.
9164 (update_debug_registers_callback):
9165 Use lwp_set_debug_registers_changed.
9166 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
9167 and lwp_set_debug_registers_changed.
9168 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
9169
cff068da
GB
91702015-03-24 Gary Benson <gbenson@redhat.com>
9171
9172 * nat/linux-nat.h (ptid_of_lwp): New declaration.
9173 (lwp_is_stopped): Likewise.
9174 (lwp_stop_reason): Likewise.
9175 * linux-nat.c (ptid_of_lwp): New function.
9176 (lwp_is_stopped): Likewise.
9177 (lwp_is_stopped_by_watchpoint): Likewise.
9178 * x86-linux-nat.c (update_debug_registers_callback):
9179 Use lwp_is_stopped.
9180 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
9181 lwp_stop_reason.
9182
b2f7c7e8
GB
91832015-03-24 Gary Benson <gbenson@redhat.com>
9184
9185 * linux-nat.h (linux_stop_lwp): Move declaration to...
9186 * nat/linux-nat.h (linux_stop_lwp): New declaration.
9187
6d4ee8c6
GB
91882015-03-24 Gary Benson <gbenson@redhat.com>
9189
9190 * linux-nat.h: Include nat/linux-nat.h.
9191 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
9192 * nat/linux-nat.h (struct lwp_info): New forward declaration.
9193 (iterate_over_lwps_ftype): New typedef.
9194 (iterate_over_lwps): New declaration.
9195 * linux-nat.h (iterate_over_lwps): Update comment. Use
9196 iterate_over_lwps_ftype. Update callback return value check.
9197
70a0bb6b
GB
91982015-03-24 Gary Benson <gbenson@redhat.com>
9199
9200 * x86-nat.h (x86_debug_reg_state): Move declaration to...
9201 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
9202
7b669087
GB
92032015-03-24 Gary Benson <gbenson@redhat.com>
9204
9205 * nat/linux-nat.h (current_lwp_ptid): New declaration.
9206 * linux-nat.c (current_lwp_ptid): New function.
9207 * x86-linux-nat.c: Include nat/linux-nat.h.
9208 (x86_linux_dr_get_addr): Use current_lwp_ptid.
9209 (x86_linux_dr_get_control): Likewise.
9210 (x86_linux_dr_get_status): Likewise.
9211 (x86_linux_dr_set_control): Likewise.
9212 (x86_linux_dr_set_addr): Likewise.
9213
15630549
AT
92142015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
9215
9216 PR breakpoints/16466
9217 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
9218
8a4506c0
JB
92192015-03-23 Joel Brobecker <brobecker@adacore.com>
9220
9221 * ser-mingw.c (ser_windows_setparity): Fix indentation.
9222 * ser-unix.c (hardwire_setparity): Likewise.
9223
236af5e3
YG
92242015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9225
9226 * NEWS: Mention set/show serial parity command.
9227 * monitor.c (monitor_open): Call serial_setparity.
9228 * remote.c (remote_open_1): Likewise.
9229 * ser-base.c (ser_base_serparity): New function.
9230 * ser-base.h (ser_base_setparity): Add declaration.
9231 * ser-go32.c (dos_ops): Set "setparity" field.
9232 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
9233 state.Parity.
9234 (ser_windows_setparity): New function.
9235 (hardwire_ops): Add ser_windows_setparity.
9236 (tty_ops): Add NULL for setparity field.
9237 (pipe_ops): Add ser_base_setparity.
9238 (tcp_ops): Likewise.
9239 * ser-pipe.c (pipe_ops): Likewise.
9240 * ser-tcp.c (tcp_ops): Likewise.
9241 * ser-unix.c (hardwire_setparity): Add declaration.
9242 (hardwire_raw): Don't reset PARENB flag.
9243 (hardwire_setparity): New function.
9244 (hardwire_ops): Add hardwire_setparity.
9245 * serial.c (serial_setparity): New function.
9246 (serial_parity): New global.
9247 (parity_none, parity_odd, parity_even, parity_enums, parity):
9248 New static globals.
9249 (set_parity): New function.
9250 (_initialize_serial): Add set/show serial parity commands.
9251 * serial.h (GDBPARITY_NONE): Define.
9252 (GDBPARITY_ODD): Define.
9253 (GDBPARITY_EVEN): Define.
9254 (serial_setparity) Add declaration.
9255 (struct serial_ops): Add setparity field.
9256 * target.h (serial_parity): Add declaration.
9257
32b40af9
KS
92582015-03-23 Keith Seitz <keiths@redhat.com>
9259
9260 * linespec.c (linespec_lexer_lex_keyword): Update comment.
9261
693dca06
KS
92622015-03-23 Keith Seitz <keiths@redhat.com>
9263
9264 * breakpoint.c (parse_breakpoint_sals): Use
9265 linespec_lexer_lex_keyword to ascertain if the user specified
9266 a NULL location.
9267 * linespec.c [IF_KEYWORD_INDEX]: Define.
9268 (linespec_lexer_lex_keyword): Export.
9269 (struct ls_parser) <keyword_ok>: Remove.
9270 A keyword is only a keyword if not followed by another keyword.
9271 (linespec_lexer_lex_one): Remove keyword_ok handling.
9272 Add comment explaining why the parsing stream is not advanced
9273 when a keyword is seen.
9274 (parse_linespec): Remove parser->keyword_ok.
9275 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
9276
7e993ebf
KS
92772015-03-23 Keith Seitz <keiths@redhat.com>
9278
9279 PR gdb/18021
9280 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
9281 if we find a static method with DW_AT_vtable_elem_location.
9282
b1a0f704
EZ
92832015-03-21 Eli Zaretskii <eliz@gnu.org>
9284
9285 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
9286 before the second loop, to avoid undefined behavior. Reported by
9287 Anton Blanchard <anton@samba.org>.
9288
d9823cbb
KB
92892015-03-20 Keven Boell <keven.boell@intel.com>
9290
9291 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
9292 data_location usage to linked list.
9293 (resolve_dynamic_type_internal): Adapt data_location to
9294 linked list.
9295 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
9296 (copy_type_recursive, copy_type): Add copy of linked list.
9297 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
9298 (struct dynamic_prop_list): New struct.
9299 * dwarf2read.c (set_die_type): Set data_location data.
9300
2e7bf1d7
PA
93012015-03-20 Pedro Alves <palves@redhat.com>
9302
9303 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
9304 inner block and make it const.
9305 * machoread.c (get_archive_prefix_len): Make "lparen" const.
9306
7a26bd4d
PA
93072015-03-20 Pedro Alves <palves@redhat.com>
9308
9309 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
9310 * breakpoint.h (set_breakpoint_condition): Update declaration.
9311
cd46431b
PA
93122015-03-20 Pedro Alves <palves@redhat.com>
9313
9314 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
9315
e28566f7
PA
93162015-03-20 Pedro Alves <palves@redhat.com>
9317
9318 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
9319
f6fc92f6
PA
93202015-03-20 Pedro Alves <palves@redhat.com>
9321
9322 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
9323
c32ed3ef
PA
93242015-03-20 Pedro Alves <palves@redhat.com>
9325
9326 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
9327 (nto_init_solib_absolute_prefix): Likewise.
9328
53e78085
PA
93292015-03-20 Pedro Alves <palves@redhat.com>
9330
9331 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
9332 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
9333
bc23328c
JK
93342015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9335
9336 * config/djgpp/README: Remove gdb.hp.
9337
e8ffc436
YQ
93382015-03-20 Yao Qi <yao.qi@linaro.org>
9339
9340 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
9341 set_gdbarch_cannot_step_breakpoint.
9342
23f238d3
PA
93432015-03-19 Pedro Alves <palves@redhat.com>
9344
9345 * linux-nat.c (linux_resume_one_lwp): Rename to ...
9346 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
9347 instead call perror_with_name.
9348 (check_ptrace_stopped_lwp_gone): New function.
9349 (linux_resume_one_lwp): Reimplement as wrapper around
9350 linux_resume_one_lwp_throw that swallows errors if the LWP is
9351 gone.
9352 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
9353 swallows errors if the LWP is gone. Use
9354 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
9355
eb54c8bf
PA
93562015-03-19 Pedro Alves <palves@redhat.com>
9357
9358 * linux-nat.c (status_callback): Return early if the LWP has no
9359 status pending.
9360
b90fc188
PA
93612015-03-19 Pedro Alves <palves@redhat.com>
9362
9363 * linux-nat.c (select_event_lwp_callback): Update comment to no
9364 longer mention SIGTRAP.
9365
670f82d4
TG
93662015-03-18 Tristan Gingold <gingold@adacore.com>
9367
72f4393d
L
9368 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
9369 redirection code to ...
9370 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
9371 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 9372
464b0089
GB
93732015-03-18 Gary Benson <gbenson@redhat.com>
9374
9375 (remote_protocol_features): Remove the "vFile:fstat" feature.
9376 (remote_hostio_fstat): Probe for "vFile:fstat" support.
9377
f68f11b7
YQ
93782015-03-11 Yao Qi <yao.qi@linaro.org>
9379
9380 PR tdep/18107
9381 * aarch64-linux-tdep.c: Include xml-syscall.h
9382 (aarch64_linux_get_syscall_number): New function.
9383 (aarch64_linux_init_abi): Call
9384 set_gdbarch_get_syscall_number.
9385 * syscalls/aarch64-linux.xml: New file.
9386
393bd0c0
YG
93872015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
9388
9389 * ser-base.h (ser_base_setstopbits): Change second argument name
9390 from "rate" to "num".
9391
7f3647e2
GB
93922015-03-17 Gary Benson <gbenson@redhat.com>
9393 Luke Allardyce <lukeallardyce@gmail.com>
9394
9395 PR gdb/18131
9396 * common/common-remote-fileio.h (sys/stat.h): New include.
9397 (stuct stat): Remove forward declaration.
9398
3ce5b6e2
JB
93992015-03-16 John Baldwin <jhb@FreeBSD.org>
9400
9401 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
9402 before writing core register notes.
9403
d053f6be
YZ
94042015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9405 Pedro Alves <palves@redhat.com>
9406
9407 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
9408 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
9409 (tgoto): Wrap with extern "C".
9410
b1a921c8
PA
94112015-03-16 Pedro Alves <palves@redhat.com>
9412 Yuanhui Zhang <asmwarrior@gmail.com>
9413
9414 * stub-termcap.c (tputs): Change prototype.
9415
876d1cd7
YZ
94162015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
9417 Pedro Alves <palves@redhat.com>
9418
9419 * windows-nat.c (struct thread_info_struct): Rename to ...
9420 (struct windows_thread_info_struct): ... this.
9421 (thread_info): Rename to ...
9422 (windows_thread_info): ... this.
9423 All users updated.
9424
0800b440
JK
94252015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9426 Pedro Alves <palves@redhat.com>
9427
9428 * NEWS: New Removed targets and native configurations.
9429
94302015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
9431
9432 Remove HPUX.
9433 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
9434 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
9435 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
9436 ia64-hpux-tdep.h, solib-ia64-hpux.h.
9437 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
9438 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
9439 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
9440 hppa-hpux-tdep.c.
9441 * config/ia64/hpux.mh: Remove file.
9442 * config/pa/hpux.mh: Remove file.
9443 * configure: Rebuilt.
9444 * configure.ac (dlgetmodinfo, somread.o): Remove.
9445 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9446 (ia64-*-hpux*): Remove its float format exception.
9447 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
9448 * hppa-hpux-nat.c: Remove file.
9449 * hppa-hpux-tdep.c: Remove file.
9450 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
9451 Move them here from hppa-tdep.h
9452 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
9453 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
9454 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
9455 Move them to hppa-tdep.c.
9456 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
9457 declarations.
9458 * ia64-hpux-nat.c: Remove file.
9459 * ia64-hpux-tdep.c: Remove file.
9460 * ia64-hpux-tdep.h: Remove file.
9461 * inf-ttrace.c: Remove file.
9462 * inf-ttrace.h: Remove file.
9463 * solib-ia64-hpux.c: Remove file.
9464 * solib-ia64-hpux.h: Remove file.
9465 * solib-pa64.c: Remove file.
9466 * solib-pa64.h: Remove file.
9467 * solib-som.c: Remove file.
9468 * solib-som.h: Remove file.
9469 * somread.c: Remove file.
9470
25268153
JB
94712015-03-13 John Baldwin <jhb@FreeBSD.org>
9472
9473 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
9474 * config.in: Regenerate.
9475 * configure: Regenerate.
9476 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 9477 define.
25268153
JB
9478 (fbsd_find_memory_regions): Use kinfo_getvmmap to
9479 enumerate memory regions if present.
9480
773eacf5
JB
94812015-03-13 John Baldwin <jhb@FreeBSD.org>
9482
9483 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
9484 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
9485 expressions.
9486 (i386fbsd_sigtramp_p): Likewise.
9487
01b6bdb0
JB
94882015-03-12 John Baldwin <jhb@FreeBSD.org>
9489
9490 * MAINTAINERS (Write After Approval): Add John Baldwin.
9491
811a659a
GB
94922015-03-12 Gary Benson <gbenson@redhat.com>
9493
9494 * solib.c (_initialize_solib): Make "set/show sysroot" use
9495 add_setshow_optional_filename_cmd so it can be restored to
9496 empty after being set.
9497
10304ef3
SDJ
94982015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9499
9500 * Makefile.in (SFILES): New source break-catch-syscall.c.
9501 (COMMON_OBS): New object break-catch-syscall.o.
9502 * break-catch-syscall.c: New file.
9503 * breakpoint.c: Remove inclusion of "xml-syscall.h".
9504 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
9505 (struct syscall_catchpoint): Likewise.
9506 (dtor_catch_syscall): Likewise.
9507 (catch_syscall_inferior_data): Likewise.
9508 (struct catch_syscall_inferior_data): Likewise.
9509 (get_catch_syscall_inferior_data): Likewise.
9510 (catch_syscall_inferior_data_cleanup): Likewise.
9511 (insert_catch_syscall): Likewise.
9512 (remove_catch_syscall): Likewise.
9513 (breakpoint_hit_catch_syscall): Likewise.
9514 (print_it_catch_syscall): Likewise.
9515 (print_one_catch_syscall): Likewise.
9516 (print_mention_catch_syscall): Likewise.
9517 (print_recreate_catch_syscall): Likewise.
9518 (catch_syscall_breakpoint_ops): Likewise.
9519 (syscall_catchpoint_p): Likewise.
9520 (create_syscall_event_catchpoint): Likewise.
9521 (catch_syscall_split_args): Likewise.
9522 (catch_syscall_command_1): Likewise.
9523 (is_syscall_catchpoint_enabled): Likewise.
9524 (catch_syscall_enabled): Likewise.
9525 (catching_syscall_number): Likewise.
9526 (catch_syscall_completer): Likewise.
9527 (clear_syscall_counts): Likewise.
9528 (initialize_breakpoint_ops): Move initialization of syscall
9529 catchpoints to break-catch-syscall.c.
9530 (_initialize_breakpoint): Move code related to syscall catchpoints
9531 to break-catch-syscall.c.
9532
badd37ce
SDJ
95332015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
9534
9535 * breakpoint.c (breakpoint_find_if): New function.
9536 * breakpoint.h (breakpoint_find_if): New prototype.
9537
0a93529c
GB
95382015-03-11 Gary Benson <gbenson@redhat.com>
9539
9540 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
9541 * remote-fileio.c (remote_fileio_to_host_uint): New function.
9542 (remote_fileio_to_host_ulong): Likewise.
9543 (remote_fileio_to_host_mode): Likewise.
9544 (remote_fileio_to_host_time): Likewise.
9545 (remote_fileio_to_host_stat): Likewise.
9546 * remote.c (PACKET_vFile_fstat): New enum value.
9547 (remote_protocol_features): Register the "vFile:fstat" feature.
9548 (remote_hostio_fstat): New function.
9549 (remote_bfd_iovec_stat): Use the above.
9550 (_initialize_remote): Register new "set/show remote
9551 hostio-fstat-packet" command.
9552 * symfile.c (separate_debug_file_exists): Update comment.
9553 * NEWS: Announce new vFile:fstat packet.
9554
791c0056
GB
95552015-03-11 Gary Benson <gbenson@redhat.com>
9556
9557 * common/common-remote-fileio.h: New file.
9558 * common/common-remote-fileio.c: Likewise.
9559 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
9560 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
9561 (COMMON_OBS): Add common-remote-fileio.o.
9562 (common-remote-fileio.o): New rule.
9563 * remote-fileio.h (common-remote-fileio.h): New include.
9564 * remote-fileio.c (gdb/fileio.h): Do not include.
9565 (remote_fileio_to_be): Moved to common-remote-fileio.h.
9566 (remote_fileio_to_fio_uint): Likewise.
9567 (remote_fileio_to_fio_time): Likewise.
9568 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
9569 (remote_fileio_to_fio_mode): Likewise.
9570 (remote_fileio_to_fio_ulong): Likewise.
9571 (remote_fileio_to_fio_stat): Likewise.
9572
1390d0ef
AW
95732015-03-11 Andy Wingo <wingo@igalia.com>
9574
9575 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
9576 we were checking the cached type, not the cached dynamic type.
9577
84a4591a
AW
95782015-03-11 Andy Wingo <wingo@igalia.com>
9579
9580 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
9581 other strings, as these are on the GC'd heap, and will be
9582 collected along with the smob.
9583
85642ba0
AW
95842015-03-11 Andy Wingo <wingo@igalia.com>
9585
9586 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
9587 (objfile_functions): Bind gdbscm_objfile_progspace to
9588 objfile-progspace.
9589 * guile/lib/gdb.scm: Add objfile-progspace to exports.
9590
92fab5a6
AW
95912015-03-11 Andy Wingo <wingo@igalia.com>
9592
9593 * guile/guile.c (_initialize_guile): Disable automatic
9594 finalization, if Guile offers us that possibility.
9595 * guile/guile.c (call_initialize_gdb_module):
9596 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
9597 finalizers in appropriate places.
9598 * configure.ac (AC_TRY_LIBGUILE): Add a check for
9599 scm_set_automatic_finalization_enabled.
9600 * configure: Regenerated.
9601
f054145e
AA
96022015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9603
9604 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
9605 SAL, if possible.
9606
18396193
AA
96072015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
9608
9609 * s390-linux-nat.c (struct arch_lwp_info): New.
9610 (s390_fix_watch_points): Rename to...
9611 (s390_prepare_to_resume): ...this. Skip the PER info update
9612 unless the watch points have changed.
9613 (s390_refresh_per_info, s390_new_thread): New functions.
9614 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
9615 s390_fix_watch_points.
9616 (s390_remove_watchpoint): Likewise.
9617 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
9618 Register s390_prepare_to_resume.
9619
9eb1356e
PA
96202015-03-09 Pedro Alves <palves@redhat.com>
9621
9622 Revert:
9623 2015-03-07 Pedro Alves <palves@redhat.com>
9624 * common/gdb_socket.h: New file.
9625 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9626 sys/socket.h.
9627 (net_open): Use union gdb_sockaddr_u.
9628
aac331e4
PA
96292015-03-07 Pedro Alves <palves@redhat.com>
9630
9631 * configure.ac (build_warnings): Move -Wmissing-prototypes
9632 -Wdeclaration-after-statement -Wmissing-parameter-type
9633 -Wold-style-declaration -Wold-style-definition to the C-specific
9634 set.
9635 * configure: Regenerate.
9636
366c75fc
PA
96372015-03-07 Pedro Alves <palves@redhat.com>
9638
9639 * common/gdb_socket.h: New file.
9640 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
9641 sys/socket.h.
9642 (net_open): Use union gdb_sockaddr_u.
9643
72df25b2
PA
96442015-03-07 Pedro Alves <palves@redhat.com>
9645
9646 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
9647 (exceptions_state_mc_action_iter)
9648 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9649 Don't define.
9650 [__cplusplus] (try_scope_depth): New global.
9651 [__cplusplus] (exception_try_scope_entry)
9652 (exception_try_scope_exit, gdb_exception_sliced_copy)
9653 (exception_rethrow): New functions.
9654 (throw_exception): In C++ mode, throw
9655 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
9656 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
9657 (throw_it): In C++ mode, use try_scope_depth.
9658 * common/common-exceptions.h [!__cplusplus]
9659 (exceptions_state_mc_action_iter)
9660 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
9661 Don't declare.
9662 [__cplusplus] (exception_try_scope_entry)
9663 (exception_try_scope_exit, exception_rethrow): Declare.
9664 [__cplusplus] (struct exception_try_scope): New struct.
9665 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
9666 C++ exceptions.
9667 (struct gdb_exception_RETURN_MASK_ALL)
9668 (struct gdb_exception_RETURN_MASK_ERROR)
9669 (struct gdb_exception_RETURN_MASK_QUIT): New types.
9670
284e6217
PA
96712015-03-07 Pedro Alves <palves@redhat.com>
9672
9673 * main.c (handle_command_errors): Remove volatile qualifier from
9674 parameter.
9675
6c63c96a
PA
96762015-03-07 Pedro Alves <palves@redhat.com>
9677
9678 * breakpoint.c (save_breakpoints): Adjust to avoid code between
9679 TRY and CATCH.
9680 * gdbtypes.c (safe_parse_type): Remove empty line.
9681 (types_deeply_equal):
9682 * guile/scm-frame.c (gdbscm_frame_name):
9683 * linux-thread-db.c (find_new_threads_once):
9684 * python/py-breakpoint.c (bppy_get_commands):
9685 * record-btrace.c (record_btrace_insert_breakpoint)
9686 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
9687 (record_btrace_start_replaying): Adjust to avoid code between TRY
9688 and CATCH.
9689
492d29ea
PA
96902015-03-07 Pedro Alves <palves@redhat.com>
9691
9692 * common/common-exceptions.c (struct catcher) <exception>: No
9693 longer a pointer to volatile exception. Now an exception value.
9694 <mask>: Delete field.
9695 (exceptions_state_mc_init): Remove all parameters. Adjust.
9696 (exceptions_state_mc): No longer pop the catcher here.
9697 (exceptions_state_mc_catch): New function.
9698 (throw_exception): Adjust.
9699 * common/common-exceptions.h (exceptions_state_mc_init): Remove
9700 all parameters.
9701 (exceptions_state_mc_catch): Declare.
9702 (TRY_CATCH): Rename to ...
9703 (TRY): ... this. Remove EXCEPTION and MASK parameters.
9704 (CATCH, END_CATCH): New.
9705 All callers adjusted.
9706
ece957c8
TT
97072015-03-07 Tom Tromey <tromey@redhat.com>
9708
9709 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
9710
7556d4a4
PA
97112015-03-07 Pedro Alves <palves@redhat.com>
9712
9713 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9714 (amd64_epilogue_frame_cache): Normal exception handling code.
9715 * break-catch-throw.c (check_status_exception_catchpoint)
9716 (re_set_exception_catchpoint): Ditto.
9717 * cli/cli-interp.c (safe_execute_command):
9718 * cli/cli-script.c (script_from_file): Ditto.
9719 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
9720 Ditto.
9721 * compile/compile-object-run.c (compile_object_run): Ditto.
9722 * cp-abi.c (baseclass_offset): Ditto.
9723 * cp-valprint.c (cp_print_value): Ditto.
9724 * exceptions.c (catch_exceptions_with_msg):
9725 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
9726 * frame.c (get_frame_address_in_block_if_available): Ditto.
9727 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9728 (i386_sigtramp_frame_cache): Ditto.
9729 * infcmd.c (post_create_inferior): Ditto.
9730 * linespec.c (parse_linespec, find_linespec_symbols):
9731 * p-valprint.c (pascal_object_print_value): Ditto.
9732 * parse.c (parse_expression_for_completion): Ditto.
9733 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
9734 * remote.c (remote_get_noisy_reply): Ditto.
9735 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
9736 * solib-svr4.c (solib_svr4_r_map): Ditto.
9737
f873665f 97382015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
9739
9740 * common/common-utils.h (startswith): New inline function.
9741 All places where this logic was used updated to use the above.
9742
68901c4d
PA
97432015-03-05 Pedro Alves <palves@redhat.com>
9744
9745 PR gdb/18002
9746 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
9747 after reading the breakpoint's shadow memory.
9748
2dcb2b1a
MK
97492015-03-05 Mark Kettenis <kettenis@gnu.org>
9750
9751 * hppabsd-nat.c: Remove file.
9752 * hppaobsd-nat.c: New file.
9753 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
9754 hppaobsd-nat.c.
9755 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
9756 hppaobsd-nat.o.
9757
527a273a
PA
97582015-03-04 Pedro Alves <palves@redhat.com>
9759
9760 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
9761 (target_decr_pc_after_break): Delete declaration.
9762 * target.c (default_target_decr_pc_after_break)
9763 (target_decr_pc_after_break): Delete.
9764 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
9765 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
9766 * linux-thread-db.c (check_event): Likewise.
9767 * infrun.c (adjust_pc_after_break): Likewise.
9768 * darwin-nat.c (cancel_breakpoint): Likewise.
9769 * aix-thread.c (aix_thread_wait): Likewise.
9770 * target-delegates.c: Regenerate.
9771
faf09f01
PA
97722015-03-04 Pedro Alves <palves@redhat.com>
9773
9774 * linux-nat.c (save_sigtrap): Check for breakpoints before
9775 checking watchpoints.
9776 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
9777 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
9778 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
9779 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
9780 (linux_nat_stopped_by_sw_breakpoint)
9781 (linux_nat_supports_stopped_by_sw_breakpoint)
9782 (linux_nat_stopped_by_hw_breakpoint)
9783 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
9784 (linux_nat_wait_1): Don't re-increment the PC if relying on
9785 SIGTRAP's siginfo->si_code.
9786 (linux_nat_add_target): Install new target methods.
9787 * linux-thread-db.c (check_event): Don't account for breakpoint PC
9788 offset if the target already adjusted the PC.
9789 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
9790 (GDB_ARCH_TRAP_BRKPT): New.
9791 (TRAP_HWBKPT): Define if not already defined.
9792
f7e6eed5
PA
97932015-03-04 Pedro Alves <palves@redhat.com>
9794
9795 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
9796 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
9797 Delete field.
9798 <stop_reason>: New field.
9799 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
9800 (packet_set_cmd_state): New function.
9801 (remote_protocol_features): Register the "swbreak" and "hwbreak"
9802 features.
9803 (remote_query_supported): If not disabled with the corresponding
9804 "set remote foo-packet" command, report support for the swbreak
9805 and hwbreak features.
9806 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
9807 field.
9808 <stop_reason>: New field.
9809 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
9810 (remote_wait_as): Adjust.
9811 (remote_stopped_by_sw_breakpoint)
9812 (remote_supports_stopped_by_sw_breakpoint)
9813 (remote_stopped_by_hw_breakpoint)
9814 (remote_supports_stopped_by_hw_breakpoint): New functions.
9815 (remote_stopped_by_watchpoint): New function.
9816 (init_remote_ops): Install them.
9817 (_initialize_remote): Register new "set/show remote
9818 swbreak-feature-packet" and "set/show remote
9819 swbreak-feature-packet" commands.
9820
9e8915c6
PA
98212015-03-04 Pedro Alves <palves@redhat.com>
9822
9823 * btrace.h: Include target/waitstatus.h.
9824 (struct btrace_thread_info) <stop_reason>: New field.
9825 * record-btrace.c (record_btrace_step_thread): Use
9826 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9827 (record_btrace_decr_pc_after_break): Delete.
9828 (record_btrace_stopped_by_sw_breakpoint)
9829 (record_btrace_supports_stopped_by_sw_breakpoint)
9830 (record_btrace_stopped_by_hw_breakpoint)
9831 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
9832 (init_record_btrace_ops): Install them.
9833 * record-full.c (record_full_hw_watchpoint): Delete and replace
9834 with ...
9835 (record_full_stop_reason): ... this throughout.
9836 (record_full_exec_insn): Adjust.
9837 (record_full_wait_1): Adjust. No longer re-increment the PC.
9838 (record_full_wait_1): Adjust. Use
9839 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
9840 (record_full_stopped_by_watchpoint): Adjust.
9841 (record_full_stopped_by_sw_breakpoint)
9842 (record_full_supports_stopped_by_sw_breakpoint)
9843 (record_full_supports_stopped_by_sw_breakpoint)
9844 (record_full_stopped_by_hw_breakpoint)
9845 (record_full_supports_stopped_by_hw_breakpoint): New functions.
9846 (init_record_full_ops, init_record_full_core_ops): Install them.
9847 * record.c (record_check_stopped_by_breakpoint): New function.
9848 * record.h: Include target/waitstatus.h.
9849 (record_check_stopped_by_breakpoint): New declaration.
9850
15c66dd6
PA
98512015-03-04 Pedro Alves <palves@redhat.com>
9852
9853 enum lwp_stop_reason -> enum target_stop_reason
9854 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
9855 (linux_nat_stopped_by_watchpoint, status_callback)
9856 (linux_nat_wait_1): Adjust.
9857 * linux-nat.h (enum lwp_stop_reason): Delete.
9858 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
9859 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9860 * target/waitstatus.h (enum target_stop_reason): New.
9861
1cf4d951
PA
98622015-03-04 Pedro Alves <palves@redhat.com>
9863
9864 * breakpoint.c (need_moribund_for_location_type): New function.
9865 (bpstat_stop_status): Don't skipping checking moribund locations
9866 of breakpoint types which the target tell caused a stop.
9867 (program_breakpoint_here_p): New function, factored out from ...
9868 (bp_loc_is_permanent): ... this.
9869 (update_global_location_list): Don't create a moribund location if
9870 the target supports reporting stops of the type of the removed
9871 breakpoint.
9872 * breakpoint.h (program_breakpoint_here_p): New declaration.
9873 * infrun.c (adjust_pc_after_break): Return early if the target has
9874 already adjusted the PC. Add comments.
9875 (handle_signal_stop): If nothing explains a signal, and the target
9876 tells us the stop was caused by a software breakpoint, check if
9877 there's a breakpoint instruction in the memory. If so, adjust the
9878 PC before presenting the stop to the user. Otherwise, ignore the
9879 trap. If nothing explains a signal, and the target tells us the
9880 stop was caused by a hardware breakpoint, ignore the trap.
9881 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
9882 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
9883 to_supports_stopped_by_hw_breakpoint>: New fields.
9884 (target_stopped_by_sw_breakpoint)
9885 (target_supports_stopped_by_sw_breakpoint)
9886 (target_stopped_by_hw_breakpoint)
9887 (target_supports_stopped_by_hw_breakpoint): Define.
9888 * target-delegates.c: Regenerate.
9889
79639e11
PA
98902015-03-04 Pedro Alves <palves@redhat.com>
9891
9892 * infrun.c (follow_fork_inferior): Use the whole of the
9893 inferior_ptid and pending_follow.related_pid ptids instead of
9894 building ptids from the process components. Adjust verbose output
9895 to use target_pid_to_str.
9896 * linux-nat.c (linux_child_follow_fork): Use the whole of the
9897 inferior_ptid and pending_follow.related_pid ptids instead of
9898 building ptids from the process components.
9899
e85e8e5e
MK
99002015-03-04 Mark Kettenis <kettenis@gnu.org>
9901
9902 * inf-ptrace.c [PT_GET_PROCESS_STATE]
9903 (inf_ptrace_insert_fork_catchpoint): New function.
9904 (inf_ptrace_remove_fork_catchpoint): New function.
9905 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
9906
87de11c0
AA
99072015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9908
9909 * s390-linux-tdep.c (s390_register_name): Return empty string
9910 instead of NULL for registers that shouldn't be visible.
9911
d851a69a
AA
99122015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
9913
9914 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
9915 XML file for 64-bit targets.
9916
b072f6c1
SM
99172015-03-03 Simon Marchi <simon.marchi@ericsson.com>
9918
9919 * target.h (find_default_create_inferior): Remove declaration.
9920 (find_default_attach): Likewise.
9921
c1593e4f
PA
99222015-03-03 Pedro Alves <palves@redhat.com>
9923
9924 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
9925 Use ptid_get_pid to get the overall process id when resuming all
9926 threads.
9927
90ad5e1d
PA
99282015-03-03 Pedro Alves <palves@redhat.com>
9929
9930 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
9931 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
9932 * inf-ptrace.c (get_ptrace_pid): New function.
9933 (inf_ptrace_resume): Use it.
9934 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
9935 to the lower layer.
9936
d68e53f4
MM
99372015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9938
9939 * nat/linux-btrace.c: Include sys/utsname.h.
9940 (linux_determine_kernel_ptr_bits): New.
9941 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
9942 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
9943 ptr_bits.
9944
986b6601
MM
99452015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9946
9947 * btrace.c (ftrace_update_function): Treat return as tailcall for
9948 "_dl_runtime_resolve".
9949
ce0dfbea
MM
99502015-03-03 Markus Metzger <markus.t.metzger@intel.com>
9951
9952 * btrace.h (btrace_function) <lbegin, lend>: Remove.
9953 * btrace.c (ftrace_debug): Do not print the line range.
9954 (ftrace_skip_file, ftrace_update_lines): Remove.
9955 (ftrace_new_function): Remove lbegin and lend initialization.
9956 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
9957 * record-btrace.c (btrace_compute_src_line_range): New.
9958 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
9959
95e50b27
PA
99602015-03-02 Pedro Alves <palves@redhat.com>
9961
9962 * infrun.c (follow_exec): Delete all threads of the process except
9963 the event thread. Extended comments.
9964
00e474c2
JB
99652015-03-02 Joel Brobecker <brobecker@adacore.com>
9966
9967 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
9968
cc7039d3
JB
99692015-03-02 Joel Brobecker <brobecker@adacore.com>
9970
9971 * utils.h: Remove <stdbool.h> #include.
9972 (producer_is_gcc): Change return type to "int".
9973 * utils.c (producer_is_gcc): Change return type to int.
9974 Return 1 instead of true, and 0 instead of false.
9975 Adjust function documentation accordingly.
9976
550bdf96
AA
99772015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
9978
9979 * s390-linux-nat.c (have_regset_vxrs): New static variable.
9980 (s390_linux_fetch_inferior_registers): Handle vector registers, if
9981 present.
9982 (s390_linux_store_inferior_registers): Likewise.
9983 (s390_get_hwcap): Remove function. Embed its logic...
9984 (s390_read_description): ...here. Yield a target description with
9985 vector registers if applicable.
9986 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
9987 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
9988 "features/s390x-tevx-linux64.c".
9989 (struct gdbarch_tdep) <v0_full_regnum>: New field.
9990 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
9991 for "GNU/Linux-specific registers".
9992 (s390_dwarf_reg_r0l): New enum value.
9993 (s390_dwarf_reg_to_regnum): Support vector registers.
9994 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
9995 of GPR lower halves.
9996 (regnum_is_vxr_full): New function.
9997 (s390_register_name): New function.
9998 (s390_pseudo_register_name): Handle v0-v15, which are composed of
9999 f0-f15 and v0l-v15l.
10000 (s390_pseudo_register_type): Likewise.
10001 (s390_pseudo_register_read): Likewise.
10002 (s390_pseudo_register_write): Likewise.
10003 (s390_value_from_register): Account for the fact that values are
10004 placed left-justified in vector registers.
10005 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
10006 the vector reggroup and omit them from the general reggroup.
10007 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
10008 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
10009 (s390_iterate_over_regset_sections): Add iterations for the two
10010 new vector regsets.
10011 (s390_core_read_description): Yield a target description with
10012 vector registers if applicable.
10013 (s390_gdbarch_init): Handle target descriptions with vector
10014 registers. Add "register_name" gdbarch method.
10015 (_initialize_s390_tdep): Call new tdesc initialization functions.
10016 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
10017 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
10018 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
10019 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
10020 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
10021 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
10022 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
10023 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
10024 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
10025 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
10026 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
10027 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
10028 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
10029 (S390_NUM_REGS): Adjust value.
10030 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
10031 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
10032 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
10033 * NEWS: Announce S/390 vector register support.
10034
446899e4
AA
100352015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
10036
10037 * features/s390-tevx-linux64.xml: New file.
10038 * features/s390-vx-linux64.xml: New file.
10039 * features/s390-vx.xml: New file.
10040 * features/s390x-tevx-linux64.xml: New file.
10041 * features/s390x-vx-linux64.xml: New file.
10042 * features/Makefile (WHICH): Add s390-vx-linux64,
10043 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
10044 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
10045 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
10046 macros.
10047 * features/s390-tevx-linux64.c: New generated file.
10048 * features/s390-vx-linux64.c: Likewise.
10049 * features/s390x-tevx-linux64.c: Likewise.
10050 * features/s390x-vx-linux64.c: Likewise.
10051 * regformats/s390-tevx-linux64.dat: Likewise.
10052 * regformats/s390-vx-linux64.dat: Likewise.
10053 * regformats/s390x-tevx-linux64.dat: Likewise.
10054 * regformats/s390x-vx-linux64.dat: Likewise.
10055
b7236fbe
DE
100562015-02-28 Doug Evans <xdje42@gmail.com>
10057
10058 * symtab.h (struct symtab) <next>: Fix comment.
10059
02e62830
SM
100602015-02-27 Simon Marchi <simon.marchi@ericsson.com>
10061
10062 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
10063 python_GdbMethods.
10064
bf36a1e7
PA
100652015-02-27 Pedro Alves <palves@redhat.com>
10066
10067 * dtrace-probe.c (dtrace_probe_ops): Make extern.
10068
ad6aff7d
PA
100692015-02-27 Pedro Alves <palves@redhat.com>
10070
10071 * common/common-exceptions.h (exception_none): Declare.
10072 * common/common-exceptions.c (exception_none): Moved from
10073 exceptions.c.
10074 (exceptions_state_mc_init): Use exception_none.
10075 * exceptions.c (exception_none): Move to
10076 common/common-exceptions.c.
10077 * exceptions.h (exception_none): Move to
10078 common/common-exceptions.h.
10079
97c18565
PA
100802015-02-27 Pedro Alves <palves@redhat.com>
10081
10082 * main.c (catch_command_errors, catch_command_errors_const):
10083 Remove 'mask' argument. Adjust.
10084 (captured_main): Adjust callers.
10085
e992c591
PA
100862015-02-27 Pedro Alves <palves@redhat.com>
10087
10088 * python/python-internal.h: Include "extension-priv.h".
10089
64166036
PA
100902015-02-27 Pedro Alves <palves@redhat.com>
10091
10092 * breakpoint.h (enum print_stop_action): Move further up in the
10093 file.
10094
8a526fa6
PA
100952015-02-27 Pedro Alves <palves@redhat.com>
10096
10097 * gdbarch.sh: Include regcache.h.
10098 * gdbarch.h: Regenerate.
10099
0fa9c223
PA
101002015-02-27 Pedro Alves <palves@redhat.com>
10101
10102 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
10103 Remove duplicate const.
10104 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
10105 duplicate const.
10106
7cf99fb1
PA
101072015-02-27 Pedro Alves <palves@redhat.com>
10108
10109 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
10110 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
10111 * features/feature_to_c.sh: Tag the generated xml_builtin array
10112 with extern const in C++ mode.
10113
1424c16e
TT
101142015-02-27 Tom Tromey <tromey@redhat.com>
10115
10116 * minidebug.c (struct lzma_stream): Rename to ...
10117 (struct gdb_lzma_stream): ... this.
10118 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
10119
10367c7c
PA
101202015-02-27 Pedro Alves <palves@redhat.com>
10121
10122 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
10123 function.
10124 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
10125 (mi_cmd_stack_list_variables): Use it.
10126
4180215b
PA
101272015-02-27 Pedro Alves <palves@redhat.com>
10128
10129 * x86-linux-nat.c (u_debugreg_offset): New function.
10130 (x86_linux_dr_get, x86_linux_dr_set): Use it.
10131
2f56f7c3
PA
101322015-02-27 Pedro Alves <palves@redhat.com>
10133
10134 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
10135 declaration.
10136 Include break-common.h.
10137
570dc176
TT
101382015-02-27 Tom Tromey <tromey@redhat.com>
10139 Pedro Alves <palves@redhat.com>
10140
10141 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
10142 local used to iterate over enums.
10143 * completer.c (signal_completer): Likewise.
10144 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
10145 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
10146 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
10147 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
10148 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
10149 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
10150 * tui-wingeneral.c (tui_refresh_all): Likewise.
10151
68c14faa
PA
101522015-02-27 Pedro Alves <palves@redhat.com>
10153
10154 * target.h: Include "infrun.h".
10155
749bab01
PA
101562015-02-27 Pedro Alves <palves@redhat.com>
10157
10158 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
10159
3c14e5a3
PA
101602015-02-27 Pedro Alves <palves@redhat.com>
10161
10162 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
10163 (IPA_SYM): Use it.
10164 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
10165
56000a98
PA
101662015-02-27 Pedro Alves <palves@redhat.com>
10167
10168 * cli-out.c (_rl_erase_entire_line): Move declaration out of
10169 cli_mld_erase_entire_line, and make it extern "C".
10170 * common/common-defs.h (EXTERN_C): New.
10171 * completer.c (_rl_completion_prefix_display_length)
10172 (_rl_print_completions_horizontally, QSFUNC): Move declarations
10173 out of gdb_display_match_list_1.
10174 (_rl_qsort_string_compare): Move declaration out of
10175 gdb_display_match_list_1, and make it extern "C".
10176 * defs.h (re_comp): Use EXTERN_C.
10177 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
10178 and make it extern "C".
10179 (monstartup): Move declaration out of maintenance_set_profile_cmd,
10180 and make it extern "C".
10181 (main): Move declaration out of maintenance_set_profile_cmd.
10182 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
10183 EXTERN_C.
10184
bcabf420
PA
101852015-02-27 Pedro Alves <palves@redhat.com>
10186
10187 * python/python.c (GdbMethods): Rename to ...
10188 (python_GdbMethods): ... this and make extern.
10189 (GdbModuleDef): Rename to ...
10190 (python_GdbModuleDef): ... this and make extern.
10191
928dbe07
PA
101922015-02-27 Pedro Alves <palves@redhat.com>
10193
10194 * record-btrace.c (set_record_btrace_cmdlist)
10195 (show_record_btrace_cmdlist): Remove redefinitions.
10196
52059ffd
TT
101972015-02-27 Tom Tromey <tromey@redhat.com>
10198 Pedro Alves <palves@redhat.com>
10199
10200 * dwarf2-frame.c (enum cfa_how_kind, struct
10201 dwarf2_frame_state_reg_info): Move out of struct
10202 dwarf2_frame_state.
10203 * dwarf2read.c (struct tu_stats): Move out of struct
10204 dwarf2_per_objfile.
10205 (struct file_entry): Move out of struct line_header.
10206 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
10207 typedef_field_list): Move out of struct field_info.
10208 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
10209 Move out of struct dynamic_prop.
10210 (union type_owner, union field_location, struct field, struct
10211 range_bounds, union type_specific): Move out of struct main_type.
10212 (struct fn_fieldlist, struct fn_field, struct typedef_field)
10213 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
10214 (struct call_site_target, union call_site_parameter_u, struct
10215 call_site_parameter): Move out of struct call_site.
10216 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
10217 m32c_prologue.
10218 (enum srcdest_kind): Move out of struct srcdest.
10219 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
10220 * prologue-value.h (enum prologue_value_kind): Move out of struct
10221 prologue_value.
10222 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
10223 gdbarch_tdep.
10224 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
10225 out of struct field_info.
10226 * symfile.h (struct other_sections): Move out of struct
10227 section_addr_info.
10228 * symtab.c (struct symbol_cache_slot): Move out struct
10229 block_symbol_cache.
10230 * target-descriptions.c (enum tdesc_type_kind): Move out of
10231 typedef struct tdesc_type.
10232 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
10233 struct tui_line_or_address.
10234 * value.c (enum internalvar_kind, union internalvar_data): Move
10235 out of struct internalvar.
10236 * xtensa-tdep.h (struct ctype_cache): Move out of struct
10237 gdbarch_tdep.
10238
fe978cb0
PA
102392015-02-27 Tom Tromey <tromey@redhat.com>
10240 Pedro Alves <palves@redhat.com>
10241
10242 Rename symbols whose names are reserved C++ keywords throughout.
10243
3bc3d82a
PA
102442015-02-27 Pedro Alves <palves@redhat.com>
10245
10246 * Makefile.in (COMPILER): New, get it from autoconf.
10247 (COMPILE.pre, CC_LD): Use COMPILER.
10248 (CXX): Get from autoconf instead.
10249 (CXX_FOR_TARGET): Default to g++ instead of gcc.
10250 * acinclude.m4: Include build-with-cxx.m4.
10251 * build-with-cxx.m4: New file.
10252 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
10253 Disable -Werror by default if building in C++ mode.
10254 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
10255 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
10256 Run supported-warning-flags tests with the C++ compiler.
10257 Save/restore CXXFLAGS too.
10258 * configure: Regenerate.
10259
07697489
PA
102602015-02-27 Pedro Alves <palves@redhat.com>
10261
10262 * libiberty.m4: New file.
10263 * acinclude.m4: Include libiberty.m4.
10264 * configure.ac: Call libiberty_INIT.
10265 * config.in, configure: Regenerate.
10266
60abeae4
AA
102672015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
10268
10269 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
10270 31-bit targets, but 64-bit targets as well.
10271 (s390_gnu_triplet_regexp): New function.
10272 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
10273 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
10274 method.
10275
f44466fb 102762015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
10277
10278 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
10279 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
10280 from CONTEXT_DEBUGGER.
10281
0def5aaa
DE
102822015-02-26 Doug Evans <dje@google.com>
10283
10284 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
10285 CHECK_TYPEDEF.
10286 (set_type_vptr_fieldno): Ditto.
10287 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
10288 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
10289
77b64a49
PA
102902015-02-26 Pedro Alves <palves@redhat.com>
10291
10292 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
10293 * complaints.c (vcomplaint): Pass argument FMT directly to
10294 printf-like functions instead of complaint->fmt.
10295 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
10296 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
10297 * compile/compile-loc2c.c (pushf, unary, binary): Add
10298 ATTRIBUTE_PRINTF.
10299 (do_compile_dwarf_expr_to_c): Pass string literal as format string
10300 to pushf.
10301 (BINARY): Pass string literal as format string to 'binary'.
10302 * compile/compile-object-load.c (link_callbacks_einfo): Add
10303 ATTRIBUTE_PRINTF.
10304 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
10305
532f44ed
PA
103062015-02-26 Pedro Alves <palves@redhat.com>
10307
10308 * windows-termcap.c: Rename to ...
10309 * stub-termcap.c: ... this. Adjust header line.
10310 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
10311 windows-termcap.c.
10312 * configure: Regenerate.
10313 * configure.ac: Refer to stub-termcap.o instead of
10314 windows-termcap.o.
10315 * gdb_curses.h: Mention stub-termcap.c instead of
10316 windows-termcap.c.
10317
081a1c2c
JK
103182015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10319
10320 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
10321 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
10322
2f41223f
AT
103232015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
10324
10325 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
10326
80c57053
JK
103272015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10328
10329 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
10330 bfd_canonicalize_symtab.
10331
cf424aef
JB
103322015-02-25 John Baldwin <jhb@FreeBSD.org>
10333
10334 * amd64fbsd-nat.c: Include sys/user.h.
10335 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10336 instead of KERN_PS_STRINGS to locate the signal trampoline.
10337 * i386fbsd-nat.c: Include sys/user.h.
10338 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
10339 instead of KERN_PS_STRINGS to locate the signal trampoline.
10340 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
10341 (amd64fbsd_sigtramp_p): New.
10342 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
10343 longer set default values.
10344 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
10345 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
10346 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
10347 (i386fbsd_freebsd4_sigtramp_start)
10348 (i386fbsd_freebsd4_sigtramp_middle)
10349 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
10350 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
10351 (i386fbsd_sigtramp_p): New.
10352 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
10353 longer set default values.
10354 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
10355
c5cb74ee
JB
103562015-02-25 John Baldwin <jhb@freebsd.org>
10357
10358 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
10359 get_frame_register instead of frame_unwind_register_unsigned.
10360
17487d85
JK
103612015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10362
10363 PR build/18033
10364 * compile/compile-c-support.c (c_compute_program): Change // comment.
10365 * compile/compile-object-load.c (setup_sections): Change // comment.
10366
9357a9e6
JB
103672015-02-26 Joel Brobecker <brobecker@adacore.com>
10368
10369 PR build/18033:
10370 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
10371
1f10ba14
PA
103722015-02-23 Pedro Alves <palves@redhat.com>
10373
10374 * remote.c (skip_to_semicolon): New function.
10375 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
10376 special case the stop reasons that look like hex numbers
10377 upfront. Instead handle real register numbers after matching
10378 all the known stop reasons.
10379
96553a0c
DE
103802015-02-21 Doug Evans <dje@google.com>
10381
10382 PR c++/17976, symtab/17821
10383 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
10384 is_in_anonymous. All callers updated.
10385 (find_symbol_in_baseclass): Ditto.
10386 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
10387 for symbols in an anonymous namespace.
10388 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
10389 DW_AT_name directly.
10390 (dwarf2_name): Convert missing namespace name to
10391 CP_ANONYMOUS_NAMESPACE_STR.
10392
2db9a427
PA
103932015-02-20 Pedro Alves <palves@redhat.com>
10394
10395 * linux-nat.c (linux_handle_extended_wait): Call
10396 thread_db_notice_clone whenever a new clone LWP is detected.
10397 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
10398 functions.
10399 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
10400 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
10401 (linux_unstop_all_lwps): Declare.
10402 * linux-thread-db.c (struct thread_get_info_inout): Delete.
10403 (thread_get_info_callback): Delete.
10404 (thread_from_lwp): Use td_thr_get_info and record_thread.
10405 (thread_db_attach_lwp): Delete.
10406 (thread_db_notice_clone): New function.
10407 (try_thread_db_load_1): If /proc is mounted and shows the
10408 process'es task list, walk over all LWPs and call thread_from_lwp
10409 instead of relying on td_ta_thr_iter.
10410 (attach_thread): Don't call check_thread_signals here. Split the
10411 tail part of the function (which adds the thread to the core GDB
10412 thread list) to ...
10413 (record_thread): ... this function. Call check_thread_signals
10414 here.
10415 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
10416 call thread_from_lwp.
10417 (thread_db_update_thread_list): Rename to ...
10418 (thread_db_update_thread_list_org): ... this.
10419 (thread_db_update_thread_list): New function.
10420 (thread_db_find_thread_from_tid): Delete.
10421 (thread_db_get_ada_task_ptid): Simplify.
10422 * nat/linux-procfs.c: Include <sys/stat.h>.
10423 (linux_proc_task_list_dir_exists): New function.
10424 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
10425
3b27ef47
PA
104262015-02-20 Pedro Alves <palves@redhat.com>
10427
10428 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
10429 main LWP. Handle the case of waitpid returning 0 if we're already
10430 attached to the LWP. Don't set the LWP's last_resume_kind to
10431 resume_stop if we already knew about the LWP.
10432 (linux_nat_filter_event): Add debug logs.
10433
1cc28231
PA
104342015-02-20 Pedro Alves <palves@redhat.com>
10435
10436 * target.h (forward_target_decr_pc_after_break): Delete
10437 declaration.
10438
5c5019c2
PA
104392015-02-20 Pedro Alves <palves@redhat.com>
10440
10441 PR threads/18006
10442 * linux-thread-db.c (thread_get_info_callback): Return early if
10443 the thread's lwp id is -1.
10444
f3978e91
JB
104452015-02-20 Joel Brobecker <brobecker@adacore.com>
10446
10447 GDB 7.9 released.
10448
ffdf88ec
SE
104492015-02-19 Steve Ellcey <sellcey@imgtec.com>
10450
10451 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
10452 (dtrace_get_probes) Change type of variable 'dof'.
10453
c9587f88
AT
104542015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
10455
10456 PR breakpoints/16812
10457 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
10458 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
10459 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
10460
53cf2ee0
DT
104612015-02-19 David Taylor <dtaylor@emc.com>
10462
10463 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
10464
acfe0940
PP
104652015-02-18 Patrick Palka <patrick@parcs.ath.cx>
10466
10467 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
10468 function.
10469 (tui_putc): Don't call tui_handle_resize_during_io.
10470 (tui_getc): Likewise.
10471 (tui_mld_getc): Likewise.
10472 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
10473 (tui_sigwinch_token): New static variable.
10474 (tui_initialize_win): Adjust documentation. Set
10475 tui_sigwinch_token.
10476 (tui_async_resize_screen): New asynchronous callback.
10477 (tui_sigwinch_handler): Adjust documentation. Asynchronously
10478 invoke tui_async_resize_screen.
10479
f6a88844
JM
104802015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
10481
10482 * configure: Regenerated.
10483 * configure.ac: Use GDB_AC_TRANSFORM.
10484 * Makefile.in (aclocal_m4_deps): Added transform.m4.
10485 * acinclude.m4: sinclude transform.m4.
10486 * transform.m4: New file.
10487 (GDB_AC_TRANSFORM): New macro.
10488
b05e3b0d
JM
104892015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10490
10491 * NEWS: Announce the support for DTrace SDT probes.
10492
c3e3045e
JM
104932015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10494
10495 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
10496 (amd64_dtrace_parse_probe_argument): New function.
10497 (amd64_dtrace_probe_is_enabled): Likewise.
10498 (amd64_dtrace_enable_probe): Likewise.
10499 (amd64_dtrace_disable_probe): Likewise.
10500 (amd64_linux_init_abi): Register the
10501 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
10502 `gdbarch_dtrace_disable_probe' and
10503 `gdbarch_dtrace_probe_is_enabled' hooks.
10504 (amd64_dtrace_disabled_probe_sequence_1): New constant.
10505 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
10506 (amd64_dtrace_enable_probe_sequence): Likewise.
10507 (amd64_dtrace_disable_probe_sequence): Likewise.
10508
d4777acb
JM
105092015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10510
10511 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
10512 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
10513 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
10514 handle ELF files.
10515 * Makefile.in (SFILES): dtrace-probe.c added.
10516 * configure: Regenerate.
10517 * dtrace-probe.c: New file.
10518 (SHT_SUNW_dof): New constant.
10519 (dtrace_probe_type): New enum.
10520 (dtrace_probe_arg): New struct.
10521 (dtrace_probe_arg_s): New typedef.
10522 (struct dtrace_probe_enabler): New struct.
10523 (dtrace_probe_enabler_s): New typedef.
10524 (dtrace_probe): New struct.
10525 (dtrace_probe_is_linespec): New function.
10526 (dtrace_dof_sect_type): New enum.
10527 (dtrace_dof_dofh_ident): Likewise.
10528 (dtrace_dof_encoding): Likewise.
10529 (DTRACE_DOF_ENCODE_LSB): Likewise.
10530 (DTRACE_DOF_ENCODE_MSB): Likewise.
10531 (dtrace_dof_hdr): New struct.
10532 (dtrace_dof_sect): Likewise.
10533 (dtrace_dof_provider): Likewise.
10534 (dtrace_dof_probe): Likewise.
10535 (DOF_UINT): New macro.
10536 (DTRACE_DOF_PTR): Likewise.
10537 (DTRACE_DOF_SECT): Likewise.
10538 (dtrace_process_dof_probe): New function.
10539 (dtrace_process_dof): Likewise.
10540 (dtrace_build_arg_exprs): Likewise.
10541 (dtrace_get_arg): Likewise.
10542 (dtrace_get_probes): Likewise.
10543 (dtrace_get_probe_argument_count): Likewise.
10544 (dtrace_can_evaluate_probe_arguments): Likewise.
10545 (dtrace_evaluate_probe_argument): Likewise.
10546 (dtrace_compile_to_ax): Likewise.
10547 (dtrace_probe_destroy): Likewise.
10548 (dtrace_gen_info_probes_table_header): Likewise.
10549 (dtrace_gen_info_probes_table_values): Likewise.
10550 (dtrace_probe_is_enabled): Likewise.
10551 (dtrace_probe_ops): New variable.
10552 (info_probes_dtrace_command): New function.
10553 (_initialize_dtrace_probe): Likewise.
10554 (dtrace_type_name): Likewise.
10555
8b367e17
JM
105562015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10557
10558 * gdbarch.sh (dtrace_parse_probe_argument): New.
10559 (dtrace_probe_is_enabled): Likewise.
10560 (dtrace_enable_probe): Likewise.
10561 (dtrace_disable_probe): Likewise.
10562 * gdbarch.c: Regenerate.
10563 * gdbarch.h: Regenerate.
10564
9aca2ff8
JM
105652015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10566
10567 * stap-probe.c (stap_probe_ops): Add NULLs in the static
10568 stap_probe_ops for `enable_probe' and `disable_probe'.
10569 * probe.c (enable_probes_command): New function.
10570 (disable_probes_command): Likewise.
10571 (_initialize_probe): Define the cli commands `enable probe' and
10572 `disable probe'.
10573 (parse_probe_linespec): New function.
10574 (info_probes_for_ops): Use parse_probe_linespec.
10575 * probe.h (probe_ops): New hooks `enable_probe' and
10576 `disable_probe'.
10577
03e98035
JM
105782015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10579
10580 * probe.c (compute_probe_arg): Moved from stap-probe.c
10581 (compile_probe_arg): Likewise.
10582 (probe_funcs): Likewise.
10583 * stap-probe.c (compute_probe_arg): Moved to probe.c.
10584 (compile_probe_arg): Likewise.
10585 (probe_funcs): Likewise.
10586
6f9b8491
JM
105872015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
10588
10589 * probe.c (print_ui_out_not_applicables): New function.
10590 (exists_probe_with_pops): Likewise.
10591 (info_probes_for_ops): Do not include column headers for probe
10592 types for which no probe has been actually found on any object.
10593 Also invoke `print_ui_out_not_applicables' in order to match the
10594 column rows with the header when probes of several types are
10595 listed.
10596 Print the "Type" column.
10597 * probe.h (probe_ops): Added a new probe operation `type_name'.
10598 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
10599 (stap_type_name): New function.
10600
69efdff1
PP
106012015-02-17 Patrick Palka <patrick@parcs.ath.cx>
10602
10603 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
10604 (key_is_command_char): Delete.
10605
f8e5e23e
PA
106062015-02-17 Pedro Alves <palves@redhat.com>
10607
10608 * tui/tui.c (tui_enable): Resize windows before anything
10609 might show a window.
10610
9f2e0721
MO
106112015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
10612
10613 PR gdb/17984
10614 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
10615 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
10616 call.
10617 * aarch64-tdep.h (tdesc_aarch64): Declare.
10618
171e6b1c
MW
106192015-02-12 Mark Wielaard <mjw@redhat.com>
10620
10621 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
10622
d5ff0482
DE
106232015-02-13 Doug Evans <dje@google.com>
10624
10625 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
10626 anonymous_namespace to is_in_anonymous for consistency with the rest
10627 of the file.
10628 (cp_lookup_bare_symbol): Fix typo in comment.
10629 (cp_search_static_and_baseclasses): Ditto.
10630 (search_symbol_list): Use vertical space in comment better.
10631 (reset_directive_searched): Ditto. Fix typo.
10632 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
10633
9f04ac5f
YQ
106342015-02-13 Yao Qi <yao.qi@arm.com>
10635
10636 * MAINTAINERS: Update my email address.
10637
013d0319
DE
106382015-02-12 Doug Evans <dje@google.com>
10639
b615dd20 10640 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 10641
9a7e538e
DE
106422015-02-12 Doug Evans <dje@google.com>
10643
10644 * completer.c (complete_line): Remove incorrect comment.
10645
e1fcd575
JK
106462015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10647
10648 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
10649 (py_print_frame): Use RETURN_MASK_ERROR.
10650
b99bf4e3
JK
106512015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10652
10653 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
10654 function comment. Wrap all function that can throw in cleanups.
10655 (gdbpy_apply_frame_filter): Wrap all function that can throw in
10656 cleanups.
10657
800eb1ce
JK
106582015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10659
10660 * python/py-framefilter.c (py_print_frame): Substitute goto error.
10661 Remove the error label.
10662
34019068
JK
106632015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10664
10665 * python/py-framefilter.c (py_print_frame): Put conditional code paths
10666 with goto first, indent the former else codepath left. Put variable
10667 'elided' to a new inner block.
10668
8d4a54e2
JK
106692015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10670
10671 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
10672
18ad82c1
PA
106732015-02-11 Pedro Alves <palves@redhat.com>
10674
10675 * xcoffread.c (within_function): Delete.
10676
e36122e9
TT
106772015-02-11 Tom Tromey <tromey@redhat.com>
10678 Pedro Alves <palves@redhat.com>
10679
10680 * breakpoint.c (base_breakpoint_ops): Delete.
10681 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
10682 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
10683 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
10684 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
10685 * python/py-arch.c (arch_object_type): Make extern.
10686 * python/py-block.c (block_syms_iterator_object_type): Make extern.
10687 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
10688 * python/py-cmd.c (cmdpy_object_type): Make extern.
10689 * python/py-continueevent.c (continue_event_object_type)
10690 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
10691 parameter. Update all callers.
10692 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
10693 * python/py-exitedevent.c (exited_event_object_type): Make extern.
10694 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
10695 * python/py-function.c (fnpy_object_type): Make extern.
10696 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
10697 * python/py-infevents.c (call_pre_event_object_type)
10698 (inferior_call_post_event_object_type).
10699 (memory_changed_event_object_type): Make extern.
10700 * python/py-infthread.c (thread_object_type): Make extern.
10701 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
10702 * python/py-linetable.c (linetable_entry_object_type)
10703 (linetable_object_type, ltpy_iterator_object_type): Make extern.
10704 * python/py-newobjfileevent.c (new_objfile_event_object_type)
10705 (clear_objfiles_event_object_type): Make extern.
10706 * python/py-objfile.c (objfile_object_type): Make extern.
10707 * python/py-param.c (parmpy_object_type): Make extern.
10708 * python/py-progspace.c (pspace_object_type): Make extern.
10709 * python/py-signalevent.c (signal_event_object_type): Make extern.
10710 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
10711 * python/py-type.c (type_object_type, field_object_type)
10712 (type_iterator_object_type): Make extern.
10713 * python/python.c (python_extension_script_ops)
10714 (python_extension_ops): Make extern.
10715 * stap-probe.c (stap_probe_ops): Make extern.
10716
0703599a
PA
107172015-02-11 Pedro Alves <pedro@codesourcery.com>
10718
10719 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
10720 because the event thread is not the current thread.
10721
eaaf76ab
DE
107222015-02-11 Doug Evans <xdje42@gmail.com>
10723
10724 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
10725 been initialized yet, return NULL.
10726
e7d52ed3
DE
107272015-02-11 Doug Evans <dje@google.com>
10728
10729 * symfile.h (new_symfile_objfile): Delete.
10730 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
10731 All callers updated.
10732
fc6b1256
PP
107332015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10734
10735 * tui/tui-io.c (tui_handle_resize_during_io): Call
10736 tui_update_gdb_sizes() after resizing the screen.
10737 * tui/tui.c (tui_enable): Resize the terminal before
10738 calling tui_update_gdb_sizes().
10739
d9080678
PP
107402015-02-11 Patrick Palka <patrick@parcs.ath.cx>
10741
10742 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
10743 line before printing a newline.
10744
9f615e3a
MW
107452015-02-11 Mark Wielaard <mjw@redhat.com>
10746
10747 * utils.c (producer_is_gcc): Return true or false.
10748
d9080678 107492015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
10750
10751 * utils.h (producer_is_gcc): Change return type to bool. Add major
10752 argument.
10753 * utils.c (producer_is_gcc): Likewise.
10754 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
10755 * dwarf2read.c (check_producer): Likewise.
10756
b052c4fb
PA
107572015-02-10 Pedro Alves <palves@redhat.com>
10758
10759 * infrun.c (displaced_step_fixup): Switch to the event thread
10760 before calling gdbarch_displaced_step_fixup.
10761
3ac240d4
AT
107622015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
10763
10764 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
10765
c1cc6152
SM
107662015-02-10 Simon Marchi <simon.marchi@ericsson.com>
10767
10768 * ada-varobj.c (ada_name_of_child): Constify parent.
10769 (ada_path_expr_of_child): Same.
10770 (ada_value_of_child): Same.
10771 (ada_type_of_child): Same.
10772 * c-varobj.c (c_is_path_expr_parent): Same.
10773 (c_describe_child): Same.
10774 (c_name_of_child): Same.
10775 (c_value_of_child): Same.
10776 (c_type_of_child): Same.
10777 (cplus_number_of_children): Same.
10778 (cplus_describe_child): Constify var.
10779 (cplus_name_of_child): Constify parent.
10780 (cplus_value_of_child): Same.
10781 (cplus_type_of_child): Same.
10782 * jv-varobj.c (java_name_of_child): Same.
10783 (java_value_of_child): Same.
10784 (java_type_of_child): Same.
10785 * varobj.c (value_of_child): Same.
10786 (varobj_default_is_path_expr_parent): Constify var, parent and return
10787 value.
10788 (varobj_get_path_expr): Constify var, modify path_expr through
10789 mutable_var.
10790 (install_new_value): Constify parent.
10791 (value_of_child): Constify parent.
10792 * varobj.h (struct varobj): Constify parent.
10793 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
10794 type_of_child.
10795 (varobj_get_path_expr): Constify var.
10796 (varobj_get_path_expr_parent): Constify var and return value.
10797
c1ee9414
LM
107982015-02-10 Luis Machado <lgustavo@codesourcery.com>
10799
10800 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
10801 (arm_prologue_this_id): Move PC and SP limit checks to
10802 arm_prologue_unwind_stop_reason.
10803 (arm_prologue_unwind) <stop_reason> : Set to
10804 arm_prologue_unwind_stop_reason.
10805
f7de9aab
MW
108062015-02-09 Mark Wielaard <mjw@redhat.com>
10807
10808 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
10809 DW_LANG_Fortran08 as language_fortran.
10810
0b24eb2d
SDJ
108112015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
10812
10813 PR remote/17946
10814 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
10815 of pointer against char.
10816
a2c2acaf
MW
108172015-02-09 Mark Wielaard <mjw@redhat.com>
10818
10819 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
10820 (c_type_print_modifier): Likewise.
10821 * dwarf2read.c (read_tag_atomic_type): New function.
10822 (read_type_die_1): Handle DW_TAG_atomic_type.
10823 * gdbtypes.c (make_atomic_type): New function.
10824 (recursive_dump_type): Handle TYPE_ATOMIC.
10825 * gdbtypes.h (enum type_flag_values): Renumber.
10826 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
10827 (TYPE_ATOMIC): New macro.
10828 (make_atomic_type): Declare.
10829
31fd9caa
MM
108302015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10831
10832 * btrace.c (ftrace_find_call): Skip gaps.
10833 (ftrace_new_function): Initialize level.
10834 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
10835 (ftrace_new_switch): Update
10836 level computation.
10837 (ftrace_new_gap): New.
10838 (ftrace_update_function): Create new function after gap.
10839 (btrace_compute_ftrace_bts): Create gap on error.
10840 (btrace_stitch_bts): Update parameters. Clear trace if it
10841 becomes empty.
10842 (btrace_stitch_trace): Update parameters. Update callers.
10843 (btrace_clear): Reset the number of gaps.
10844 (btrace_insn_get): Return NULL if the iterator points to a gap.
10845 (btrace_insn_number): Return zero if the iterator points to a gap.
10846 (btrace_insn_end): Allow gaps at the end.
10847 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
10848 (btrace_find_insn_by_number): Assert that the found iterator does
10849 not point to a gap.
10850 (btrace_call_next, btrace_call_prev): Assert that the last function
10851 is not a gap.
10852 * btrace.h (btrace_bts_error): New.
10853 (btrace_function): Update comment.
10854 (btrace_function) <insn, insn_offset, number>: Update comment.
10855 (btrace_function) <errcode>: New.
10856 (btrace_thread_info) <ngaps>: New.
10857 (btrace_thread_info) <replay>: Update comment.
10858 (btrace_insn_get): Update comment.
10859 * record-btrace.c (btrace_ui_out_decode_error): New.
10860 (record_btrace_info): Print number of gaps.
10861 (btrace_insn_history, btrace_call_history): Call
10862 btrace_ui_out_decode_error for gaps.
10863 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
10864
afb778a2
MM
108652015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10866
10867 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
10868 * nat/linux-btrace.c: (btrace_this_cpu): New.
10869 (cpu_supports_bts): Call btrace_this_cpu.
10870 (intel_supports_bts): Add cpu parameter.
10871
7d5c24b3
MM
108722015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10873
10874 * btrace.h (btrace_insn_class): New.
10875 (btrace_insn) <size, iclass>: New.
10876 * btrace.c (ftrace_find_call): Update parameters. Update users.
10877 Use instruction classification.
10878 (ftrace_new_return): Update parameters. Update users.
10879 (ftrace_update_function): Update parameters. Update users. Use
10880 instruction classification.
10881 (ftrace_update_insns): Update parameters. Update users.
10882 (ftrace_classify_insn): New.
10883 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
10884 TRY_CATCH around call to gdb_insn_length.
10885
76235df1
MM
108862015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10887
10888 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
10889 Update parameters. Update users.
10890
d33501a5
MM
108912015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10892
10893 * btrace.c (parse_xml_btrace_conf_bts): Add size.
10894 (btrace_conf_bts_attributes): New.
10895 (btrace_conf_children): Add attributes.
10896 * common/btrace-common.h (btrace_config_bts): New.
10897 (btrace_config)<bts>: New.
10898 (btrace_config): Update comment.
10899 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
10900 Use config.
10901 * features/btrace-conf.dtd: Increment version. Add size
10902 attribute to bts element.
10903 * record-btrace.c (set_record_btrace_bts_cmdlist,
10904 show_record_btrace_bts_cmdlist): New.
10905 (record_btrace_adjust_size, record_btrace_print_bts_conf,
10906 record_btrace_print_conf, cmd_set_record_btrace_bts,
10907 cmd_show_record_btrace_bts): New.
10908 (record_btrace_info): Call record_btrace_print_conf.
10909 (_initialize_record_btrace): Add commands.
10910 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
10911 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
10912 (btrace_sync_conf): Synchronize bts size.
10913 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
10914 * NEWS: Announce new commands and new packets.
10915
f4abbc16
MM
109162015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10917
10918 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
10919 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
10920 (x86_linux_btrace_conf): New.
10921 (x86_linux_create_target): Initialize to_btrace_conf.
10922 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
10923 Check format. Split into this and ...
10924 (linux_enable_bts): ... this.
10925 (linux_btrace_conf): New.
10926 (perf_event_skip_record): Renamed into ...
10927 (perf_event_skip_bts_record): ... this. Updated users.
10928 (linux_disable_btrace): Split into this and ...
10929 (linux_disable_bts): ... this.
10930 (linux_read_btrace): Check format.
10931 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
10932 (linux_btrace_conf): New.
10933 (btrace_target_info)<ptid>: Moved.
10934 (btrace_target_info)<conf>: New.
10935 (btrace_target_info): Split into this and ...
10936 (btrace_tinfo_bts): ... this. Updated users.
10937 * btrace.c (btrace_enable): Update parameters.
10938 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
10939 (btrace_conf_children, btrace_conf_attributes)
10940 (btrace_conf_elements): New.
10941 * btrace.h (btrace_enable): Update parameters.
10942 (btrace_conf, parse_xml_btrace_conf): New.
10943 * common/btrace-common.h (btrace_config): New.
10944 * feature/btrace-conf.dtd: New.
10945 * record-btrace.c (record_btrace_conf): New.
10946 (record_btrace_cmdlist): New.
10947 (record_btrace_enable_warn, record_btrace_open): Pass
10948 &record_btrace_conf.
10949 (record_btrace_info): Print recording format.
10950 (cmd_record_btrace_bts_start): New.
10951 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
10952 (_initialize_record_btrace): Add "record btrace bts" subcommand.
10953 Add "record bts" alias command.
10954 * remote.c (remote_state)<btrace_config>: New.
10955 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
10956 (remote_protocol_features): Add qXfer:btrace-conf:read.
10957 (remote_open_1): Call remote_btrace_reset.
10958 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
10959 (btrace_target_info)<conf>: New.
10960 (btrace_sync_conf, btrace_read_config): New.
10961 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
10962 btrace_read_conf.
10963 (remote_btrace_conf): New.
10964 (init_remote_ops): Initialize to_btrace_conf.
10965 (_initialize_remote): Add qXfer:btrace-conf packet.
10966 * target.c (target_enable_btrace): Update parameters.
10967 (target_btrace_conf): New.
10968 * target.h (target_enable_btrace): Update parameters.
10969 (target_btrace_conf): New.
10970 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
10971 (target_ops)<to_enable_btrace>: Update parameters and comment.
10972 (target_ops)<to_btrace_conf>: New.
10973 * target-delegates: Regenerate.
10974 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
10975 (target_debug_print_const_struct_btrace_target_info_p): New.
10976 * NEWS: Announce new command and new packet.
10977
aadf7753
MM
109782015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10979
10980 * nat/linux-btrace.h (perf_event_buffer): New.
10981 (btrace_target_info) <buffer, size, data_head>: Replace with ...
10982 <bts>: ... this.
10983 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
10984 (perf_event_buffer_size, perf_event_buffer_begin)
10985 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
10986 Updated users.
10987 (perf_event_new_data): New.
10988
043c3577
MM
109892015-02-09 Markus Metzger <markus.t.metzger@intel.com>
10990
10991 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
10992 * record-btrace.c (record_btrace_open): Remove call to
10993 target_supports_btrace.
10994 * remote.c (remote_supports_btrace): Update parameters.
10995 * target.c (target_supports_btrace): Update parameters.
10996 * target.h (to_supports_btrace, target_supports_btrace): Update
10997 parameters.
10998 * target-delegates.c: Regenerate.
10999 * target-debug.h (target_debug_print_enum_btrace_format): New.
11000 * nat/linux-btrace.c
11001 (kernel_supports_btrace): Rename into ...
11002 (kernel_supports_bts): ... this. Update users. Update warning text.
11003 (intel_supports_btrace): Rename into ...
11004 (intel_supports_bts): ... this. Update users.
11005 (cpu_supports_btrace): Rename into ...
11006 (cpu_supports_bts): ... this. Update users.
11007 (linux_supports_btrace): Update parameters. Split into this and ...
11008 (linux_supports_bts): ... this.
11009 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
11010
734b0e4b
MM
110112015-02-09 Markus Metzger <markus.t.metzger@intel.com>
11012
11013 * Makefile.in (SFILES): Add common/btrace-common.c.
11014 (COMMON_OBS): Add common/btrace-common.o.
11015 (btrace-common.o): Add build rules.
11016 * btrace.c (parse_xml_btrace): Update parameters.
11017 (parse_xml_btrace_block): Set format field.
11018 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
11019 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
11020 (btrace_compute_ftrace): Split into this and...
11021 (btrace_compute_ftrace_bts): ...this.
11022 (btrace_stitch_trace): Split into this and...
11023 (btrace_stitch_bts): ...this.
11024 * btrace.h (parse_xml_btrace): Update parameters.
11025 (make_cleanup_btrace_data): New.
11026 * common/btrace-common.c: New.
11027 * common/btrace-common.h: Include common-defs.h.
11028 (btrace_block_s): Update comment.
11029 (btrace_format): New.
11030 (btrace_format_string): New.
11031 (btrace_data_bts): New.
11032 (btrace_data): New.
11033 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
11034 * remote.c (remote_read_btrace): Update parameters.
11035 * target.c (target_read_btrace): Update parameters.
11036 * target.h (target_read_btrace): Update parameters.
11037 (target_ops)<to_read_btrace>: Update parameters.
11038 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
11039 * target-delegates.c: Regenerate.
11040 * target-debug (target_debug_print_struct_btrace_data_p): New.
11041 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
11042 (linux_read_bts): ...this.
11043 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
11044
bd2e0e9e
DE
110452015-02-06 Doug Evans <dje@google.com>
11046
11047 * remote-m32r-sdi.c: Include symfile.h.
11048
f176c4b5
DE
110492015-02-06 Doug Evans <dje@google.com>
11050
11051 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
11052 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
11053 to here.
11054
d6c146e9
PA
110552015-02-06 Pedro Alves <palves@redhat.com>
11056
11057 * linux-thread-db.c (find_new_threads_callback): Add debug output.
11058
b9d61307
SM
110592015-02-06 Simon Marchi <simon.marchi@ericsson.com>
11060
11061 PR gdb/15678
11062 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
11063 (enable_count_command): Check args for NULL value.
11064
e9fbd043
DE
110652015-02-05 Doug Evans <xdje42@gmail.com>
11066
11067 * guile/scm-frame.c: Fix spelling errors in a comment.
11068
881d5d5d
JK
110692015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11070
11071 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
11072 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
11073 return type.
11074
20ba1ce6
PA
110752015-02-04 Pedro Alves <palves@redhat.com>
11076
11077 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
11078 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
11079 returns true.
11080 (resume_stopped_resumed_lwps): Don't check whether the thread is
11081 marked as executing.
11082 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
11083
f962539a
AA
110842015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11085
11086 * regset.h (struct regset): Add flags field.
11087 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
11088 * corelow.c (get_core_register_section): Add warning if the size
11089 exceeds the requested size and the regset does not have the
11090 REGSET_VARIABLE_SIZE flag set.
11091 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
11092 flag.
11093 * armbsd-tdep.c (armbsd_gregset): Likewise.
11094 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11095 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
11096 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
11097 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
11098
dde9acd6
AA
110992015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11100
11101 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
11102 For ".reg-xstate", explicitly specify the requested section size
11103 via X86_XSTATE_SIZE instead of just 0 on input and
11104 X86_XSTATE_MAX_SIZE on output.
11105 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
11106 Likewise.
11107
1528345d
AA
111082015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
11109
11110 PR corefiles/17808:
11111 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
11112 function type, particularly its SIZE parameter.
11113 * gdbarch.h: Regenerate.
11114 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
11115 actual against required size using ">=" instead of "==".
11116 (amd64_collect_fpregset): Likewise.
11117 * i386-tdep.c (i386_supply_gregset): Likewise.
11118 (i386_collect_gregset): Likewise.
11119 (i386_supply_fpregset): Likewise.
11120 (i386_collect_fpregset): Likewise.
11121 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
11122 (mips_fill_gregset_wrapper): Likewise.
11123 (mips_supply_fpregset_wrapper): Likewise.
11124 (mips_fill_fpregset_wrapper): Likewise.
11125 (mips64_supply_gregset_wrapper): Likewise.
11126 (mips64_fill_gregset_wrapper): Likewise.
11127 (mips64_supply_fpregset_wrapper): Likewise.
11128 (mips64_fill_fpregset_wrapper): Likewise.
11129 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
11130 (am33_supply_fpregset_method): Likewise.
11131 (am33_collect_gregset_method): Likewise.
11132 (am33_collect_fpregset_method): Likewise.
11133
518be979
DE
111342015-02-04 Doug Evans <dje@google.com>
11135 Pedro Alves <palves@redhat.com>
11136 Eli Zaretskii <eliz@gnu.org>
11137
11138 PR tui/17810
11139 * tui/tui-command.c (tui_refresh_cmd_win): New function.
11140 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
11141 * tui/tui-file.c: #include tui/tui-command.h.
11142 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
11143 (tui_file_flush): Refresh command window if stream is gdb_stdout.
11144 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
11145
80bd5fab
PA
111462015-02-04 Pedro Alves <palves@redhat.com>
11147
11148 Fix build breakage.
11149 * event-loop.c (gdb_do_one_event): Add default switch case.
11150
a7606d80
JK
111512015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11152
11153 Filter out inferior gcc option -fpreprocessed.
11154 * compile/compile.c (filter_args): New function.
11155 (get_args): Use it.
11156
70b66289
PA
111572015-02-03 Pedro Alves <palves@redhat.com>
11158
11159 * event-loop.c: Don't declare nor define a queue type for
11160 gdb_event_p.
11161 (event_queue): Delete.
11162 (create_event, create_file_event, gdb_event_xfree)
11163 (initialize_event_loop, process_event): Delete.
11164 (gdb_do_one_event): Return as soon as one event is handled.
11165 (handle_file_event): Change prototype. Used the passed in
11166 file_handler pointer and ready_mask instead of looping over all
11167 file handlers.
11168 (gdb_wait_for_event): Update the poll/select timeouts before
11169 blocking. Run event handlers directly instead of queueing events.
11170 Return as soon as one event is handled.
11171 (struct async_event_handler_data): Delete.
11172 (invoke_async_event_handler): Delete.
11173 (check_async_event_handlers): Change return type to int. Run
11174 event handlers directly instead of queueing events. Return as
11175 soon as one event is handled.
11176 (handle_timer_event): Delete.
11177 (update_wait_timeout): New function, factored out from
11178 poll_timers.
11179 (poll_timers): Reimplement.
11180 * event-loop.h (initialize_event_loop): Delete declaration.
11181 * top.c (gdb_init): Don't call initialize_event_loop.
11182
b7d2e916
PA
111832015-02-03 Pedro Alves <palves@redhat.com>
11184
11185 * event-loop.c (clear_async_event_handler): New function.
11186 * event-loop.h (clear_async_event_handler): New declaration.
11187 * record-btrace.c (record_btrace_async): New function.
11188 (init_record_btrace_ops): Install record_btrace_async.
11189 * record-full.c (record_full_async): New function.
11190 (record_full_resume): Don't mark the async event source here.
11191 (init_record_full_ops): Install record_full_async.
11192 (record_full_core_resume): Don't mark the async event source here.
11193 (init_record_full_core_ops): Install record_full_async.
11194 * remote.c (remote_async): Mark and clear the async stop reply
11195 queue event-loop token as appropriate.
11196
d9d41e78
PA
111972015-02-03 Pedro Alves <palves@redhat.com>
11198
11199 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
11200 target_is_async_p instead of target_can_async.
11201 (linux_nat_wait): Use target_is_async_p instead of
11202 target_can_async. Don't enable async here.
11203 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
11204 target_is_async_p instead of target_can_async.
11205
aa3de267
SM
112062015-02-02 Simon Marchi <simon.marchi@ericsson.com>
11207
11208 * varobj.h (lang_varobj_ops): Mention which return values need
11209 to be freed.
11210
2c811c0f
JB
112112015-02-02 Joel Brobecker <brobecker@adacore.com>
11212
11213 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
11214
b1eedac9
JB
112152015-02-02 Joel Brobecker <brobecker@adacore.com>
11216
11217 PR gdb/17856:
11218 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
11219 results found in the cache.
11220
66c168ae
JB
112212015-02-02 Joel Brobecker <brobecker@adacore.com>
11222
11223 PR gdb/17854:
11224 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
11225 when allocating a new one.
11226
4bdc02b2
TT
112272015-02-01 Tom Tromey <tom@tromey.com>
11228
11229 * MAINTAINERS: Remove myself.
11230
ae6ae975
DE
112312015-01-31 Doug Evans <xdje42@gmail.com>
11232
11233 * dwarf2read.c (process_structure_scope): Update setting of
11234 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
11235 * gdbtypes.c (internal_type_vptr_fieldno): New function.
11236 (set_type_vptr_fieldno): New function.
11237 (internal_type_vptr_basetype): New function.
11238 (set_type_vptr_basetype): New function.
11239 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
11240 TYPE_VPTR_BASETYPE.
11241 (allocate_cplus_struct_type): Initialize vptr_fieldno.
11242 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
11243 (print_cplus_stuff): ... moved here.
11244 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
11245 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
11246 moved to ...
11247 (struct cplus_struct_type): ... here. All uses updated.
11248 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
11249 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
11250 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
11251 * stabsread.c (read_tilde_fields): Update setting of
11252 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
11253
09e2d7c7
DE
112542015-01-31 Doug Evans <xdje42@gmail.com>
11255
11256 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
11257 to self_p.
11258 (cp_print_class_member): Rename local domain to self_type.
11259 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
11260 domain_type to self_type.
11261 (set_die_type) <need_gnat_info>: Handle
11262 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
11263 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
11264 TYPE_SPECIFIC_SELF_TYPE.
11265 * gdbtypes.c (internal_type_self_type): New function.
11266 (set_type_self_type): New function.
11267 (smash_to_memberptr_type): Rename parameter domain to self_type.
11268 Update setting of TYPE_SELF_TYPE.
11269 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
11270 (smash_to_method_type): Rename parameter domain to self_type.
11271 Update setting of TYPE_SELF_TYPE.
11272 (check_stub_method): Call smash_to_method_type.
11273 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
11274 (copy_type_recursive): Ditto.
11275 * gdbtypes.h (enum type_specific_kind): New value
11276 TYPE_SPECIFIC_SELF_TYPE.
11277 (struct main_type) <type_specific>: New member self_type.
11278 (struct cplus_struct_type) <fn_field.type>: Update comment.
11279 (TYPE_SELF_TYPE): Rewrite.
11280 (internal_type_self_type, set_type_self_type): Declare.
11281 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
11282 self_type.
11283 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
11284 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
11285 TYPE_TARGET_TYPE.
11286 * stabsread.c (read_member_functions): Mark methods with
11287 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
11288 TYPE_SELF_TYPE.
11289
4bfb94b8
DE
112902015-01-31 Doug Evans <xdje42@gmail.com>
11291
11292 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
11293 All uses updated.
11294
5f4ce105
DE
112952015-01-31 Doug Evans <xdje42@gmail.com>
11296
11297 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
11298 or unions. Return zero if union.
11299 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
11300 (gnuv3_rtti_type): Pass already-check_typedef'd value to
11301 gnuv3_get_vtable.
11302 (compute_vtable_size): Assert only passed structs.
11303 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
11304
f6b3afbf
DE
113052015-01-31 Doug Evans <xdje42@gmail.com>
11306
11307 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
11308 kinds.
11309
cfb069a8
GB
113102015-01-31 Gary Benson <gbenson@redhat.com>
11311 Doug Evans <dje@google.com>
11312
11313 PR cli/9007
11314 PR cli/11920
11315 PR cli/15548
11316 * cli/cli-cmds.c (complete_command): Notify user if max-completions
11317 reached.
11318 * common/common-exceptions.h (enum errors)
11319 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
11320 * completer.h (get_max_completions_reached_message): New declaration.
11321 (max_completions): Likewise.
11322 (completion_tracker_t): New typedef.
11323 (new_completion_tracker): New declaration.
11324 (make_cleanup_free_completion_tracker): Likewise.
11325 (maybe_add_completion_enum): New enum.
11326 (maybe_add_completion): New declaration.
11327 (throw_max_completions_reached_error): Likewise.
11328 * completer.c (max_completions): New global variable.
11329 (new_completion_tracker): New function.
11330 (free_completion_tracker): Likewise.
11331 (make_cleanup_free_completion_tracker): Likewise.
11332 (maybe_add_completions): Likewise.
11333 (throw_max_completions_reached_error): Likewise.
11334 (complete_line): Remove duplicates and limit result to max_completions
11335 entries.
11336 (get_max_completions_reached_message): New function.
11337 (gdb_display_match_list): Handle max_completions.
11338 (_initialize_completer): New declaration and function.
11339 * symtab.c: Include completer.h.
11340 (completion_tracker): New static variable.
11341 (completion_list_add_name): Call maybe_add_completion.
11342 (default_make_symbol_completion_list_break_on_1): Renamed from
11343 default_make_symbol_completion_list_break_on. Maintain
11344 completion_tracker across calls to completion_list_add_name.
11345 (default_make_symbol_completion_list_break_on): New function.
11346 * top.c (init_main): Set rl_completion_display_matches_hook.
11347 * tui/tui-io.c: Include completer.h.
11348 (tui_old_rl_display_matches_hook): New static global.
11349 (tui_rl_display_match_list): Notify user if max-completions reached.
11350 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
11351 * NEWS (New Options): Mention set/show max-completions.
11352
e11c72c7
GB
113532015-01-31 Gary Benson <gbenson@redhat.com>
11354
11355 * symtab.c (struct add_name_data) <code>: New field.
11356 Updated comments.
11357 (add_symtab_completions): New function.
11358 (symtab_expansion_callback): Likewise.
11359 (default_make_symbol_completion_list_break_on): Set datum.code.
11360 Move minimal symbol scan before calling expand_symtabs_matching.
11361 Scan known primary symtabs for externs and statics before calling
11362 expand_symtabs_matching. Pass symtab_expansion_callback as
11363 expansion_notify argument to expand_symtabs_matching. Do not scan
11364 primary symtabs for externs and statics after calling
11365 expand_symtabs_matching.
11366
276d885b
GB
113672015-01-31 Gary Benson <gbenson@redhat.com>
11368
11369 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
11370 (struct quick_symbol_functions) <expand_symtabs_matching>:
11371 New argument expansion_notify. All uses updated.
11372 (expand_symtabs_matching): New argument expansion_notify.
11373 All uses updated.
11374 * symfile-debug.c (debug_qf_expand_symtabs_matching):
11375 Also print expansion notify.
11376 * symtab.c (expand_symtabs_matching_via_partial): Call
11377 expansion_notify whenever a partial symbol table is expanded.
11378 * dwarf2read.c (dw2_expand_symtabs_matching): Call
11379 expansion_notify whenever a symbol table is instantiated.
11380
82083d6d
DE
113812015-01-31 Doug Evans <xdje42@gmail.com>
11382
11383 * cli-out.c: #include completer.h, readline/readline.h.
11384 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
11385 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
11386 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
11387 * cli-out.h (cli_display_match_list): Declare.
11388 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
11389 (ELLIPSIS_LEN): Ditto.
11390 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
11391 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
11392 (gdb_fnprint, gdb_print_filename): Ditto.
11393 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
11394 (gdb_display_match_list): Ditto.
11395 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
11396 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
11397 (mld_beep_ftype, mld_read_key_ftype): Ditto.
11398 (match_list_displayer): New struct.
11399 (gdb_display_match_list): Declare.
11400 * top.c (init_main): Set rl_completion_display_matches_hook.
11401 * tui/tui-io.c: #include completer.h.
11402 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
11403 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
11404 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
11405 (tui_mld_getc, tui_mld_read_key): Ditto.
11406 (tui_rl_display_match_list): Rewrite.
11407 (tui_handle_resize_during_io): New arg for_completion. All callers
11408 updated.
11409
f57d2163
DE
114102015-01-31 Doug Evans <xdje42@gmail.com>
11411
11412 Add symbol lookup cache.
11413 * NEWS: Document new options and commands.
11414 * symtab.c (symbol_cache_key): New static global.
11415 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
11416 (SYMBOL_LOOKUP_FAILED): New macro.
11417 (symbol_cache_slot_state): New enum.
11418 (block_symbol_cache): New struct.
11419 (symbol_cache): New struct.
11420 (new_symbol_cache_size, symbol_cache_size): New static globals.
11421 (hash_symbol_entry, eq_symbol_entry): New functions.
11422 (symbol_cache_byte_size, resize_symbol_cache): New functions.
11423 (make_symbol_cache, free_symbol_cache): New functions.
11424 (get_symbol_cache, symbol_cache_cleanup): New function.
11425 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
11426 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
11427 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
11428 (symbol_cache_flush, symbol_cache_dump): New functions.
11429 (maintenance_print_symbol_cache): New function.
11430 (maintenance_flush_symbol_cache): New function.
11431 (symbol_cache_stats): New function.
11432 (maintenance_print_symbol_cache_statistics): New function.
11433 (symtab_new_objfile_observer): New function.
11434 (symtab_free_objfile_observer): New function.
11435 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
11436 (_initialize_symtab): Init symbol_cache_key. New parameter
11437 maint symbol-cache-size. New maint commands print symbol-cache,
11438 print symbol-cache-statistics, flush-symbol-cache.
11439 Install new_objfile, free_objfile observers.
11440
e700d1b2
JB
114412015-01-31 Joel Brobecker <brobecker@adacore.com>
11442
11443 PR symtab/17855
11444 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
11445 to end.
11446
9f050062
DE
114472015-01-31 Doug Evans <xdje42@gmail.com>
11448
11449 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
11450 * auto-load.c: #include ctype.h.
11451 (struct auto_load_pspace_info): Replace member loaded_scripts with
11452 new members loaded_script_files, loaded_script_texts.
11453 (auto_load_pspace_data_cleanup): Update.
11454 (init_loaded_scripts_info): Update.
11455 (get_auto_load_pspace_data_for_loading): Update.
11456 (maybe_add_script_file): Renamed from maybe_add_script. All callers
11457 updated.
11458 (maybe_add_script_text): New function.
11459 (clear_section_scripts): Update.
11460 (source_script_file, execute_script_contents): New functions.
11461 (source_section_scripts): Add support for
11462 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
11463 (print_scripts): New function.
11464 (auto_load_info_scripts): Also print inlined scripts.
11465 (maybe_print_unsupported_script_warning): Renamed from
11466 unsupported_script_warning_print. All callers updated.
11467 (maybe_print_script_not_found_warning): Renamed from
11468 script_not_found_warning_print. All callers updated.
11469 * extension-priv.h (struct extension_language_script_ops): New member
11470 objfile_script_executor.
11471 * extension.c (ext_lang_objfile_script_executor): New function.
11472 * extension.h (objfile_script_executor_func): New typedef.
11473 (ext_lang_objfile_script_executor): Declare.
11474 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
11475 * guile/guile.c (guile_extension_script_ops): Update.
11476 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
11477 * python/python.c (python_extension_script_ops): Update.
11478 (gdbpy_execute_objfile_script): New function.
11479
312809f8
EZ
114802015-01-31 Eli Zaretskii <eliz@gnu.org>
11481
11482 * tui/tui-io.c (tui_expand_tabs): New function.
11483 (tui_puts, tui_redisplay_readline): Expand TABs into the
11484 appropriate number of spaces.
11485 * tui/tui-regs.c: Include tui-io.h.
11486 (tui_register_format): Call tui_expand_tabs to expand TABs into
11487 the appropriate number of spaces.
11488 * tui/tui-io.h: Add prototype for tui_expand_tabs.
11489
b6577aab
DE
114902015-01-30 Doug Evans <dje@google.com>
11491
11492 * NEWS: "info source" command now display producer string if present.
11493 * source.c (source_info): Print producer string if present.
11494
6da58d3e
SM
114952015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11496
11497 * varobj.c (varobj_delete): Fix comment.
11498
837ce252
SM
114992015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11500
11501 * varobj.c (create_child): Modify comment.
11502
b09e2c59
SM
115032015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11504
11505 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
11506 parameter.
11507 (ada_name_of_variable): Same.
11508 (ada_path_expr_of_child): Same.
11509 (ada_value_of_variable): Same.
11510 (ada_value_is_changeable_p): Same.
11511 (ada_value_has_mutated): Same.
11512 * c-varobj.c (varobj_is_anonymous_child): Same.
11513 (c_is_path_expr_parent): Same.
11514 (c_number_of_children): Same.
11515 (c_name_of_variable): Same.
11516 (c_path_expr_of_child): Same.
11517 (get_type): Same.
11518 (c_value_of_variable): Same.
11519 (cplus_number_of_children): Same.
11520 (cplus_name_of_variable): Same.
11521 (cplus_path_expr_of_child): Same.
11522 (cplus_value_of_variable): Same.
11523 * jv-varobj.c (java_number_of_children): Same.
11524 (java_name_of_variable): Same.
11525 (java_path_expr_of_child): Same.
11526 (java_value_of_variable): Same.
11527 * varobj.c (number_of_children): Same.
11528 (name_of_variable): Same.
11529 (is_root_p): Same.
11530 (varobj_ensure_python_env): Same.
11531 (varobj_get_objname): Same.
11532 (varobj_get_expression): Same.
11533 (varobj_get_display_format): Same.
11534 (varobj_get_display_hint): Same.
11535 (varobj_has_more): Same.
11536 (varobj_get_thread_id): Same.
11537 (varobj_get_frozen): Same.
11538 (dynamic_varobj_has_child_method): Same.
11539 (varobj_get_gdb_type): Same.
11540 (is_path_expr_parent): Same.
11541 (varobj_default_is_path_expr_parent): Same.
11542 (varobj_get_language): Same.
11543 (varobj_get_attributes): Same.
11544 (varobj_is_dynamic_p): Same.
11545 (varobj_get_child_range): Same.
11546 (varobj_value_has_mutated): Same.
11547 (varobj_get_value_type): Same.
11548 (number_of_children): Same.
11549 (name_of_variable): Same.
11550 (check_scope): Same.
11551 (varobj_editable_p): Same.
11552 (varobj_value_is_changeable_p): Same.
11553 (varobj_floating_p): Same.
11554 (varobj_default_value_is_changeable_p): Same.
11555
2568868e
SM
115562015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11557
11558 * varobj.c (varobj_get_path_expr): Set var->path_expr.
11559 * c-varobj.c (c_path_expr_of_child): Set local var instead of
11560 child->path_expr.
11561 (cplus_path_expr_of_child): Same.
11562
ca83fa81
SM
115632015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11564
11565 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
11566 result.
11567 (mi_cmd_var_info_expression): Same.
11568 * varobj.c (varobj_get_expression): Mention in the comment that
11569 the result must by freed by the caller.
11570
afa269ae
SM
115712015-01-30 Simon Marchi <simon.marchi@ericsson.com>
11572
11573 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
11574 varobj_get_type.
11575 (varobj_update_one): Same.
11576 * varobj.c (update_type_if_necessary): Free curr_type_str and
11577 new_type_str.
11578 (varobj_get_type): Specify in comment that the result needs to be
11579 freed by the caller.
11580
cd366ee8
DE
115812015-01-29 Doug Evans <dje@google.com>
11582
11583 PR symtab/17890
11584 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
11585
38360086
MW
115862015-01-25 Mark Wielaard <mjw@redhat.com>
11587
11588 * dwarf2read.c (checkproducer): Call producer_is_gcc.
11589 * utils.c (producer_is_gcc_ge_4): Likewise.
11590 (producer_is_gcc): New function.
11591 * utils.h (producer_is_gcc): New declaration.
11592
df25ebbd
JB
115932015-01-29 Joel Brobecker <brobecker@adacore.com>
11594
11595 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
11596 kind.
11597 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
11598 parameter by "addr_stack" parameter.
11599 (resolve_dynamic_range): Replace "addr" parameter by
11600 "stack_addr" parameter. Update function documentation.
11601 Update code accordingly.
11602 (resolve_dynamic_array, resolve_dynamic_union)
11603 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
11604 (resolve_dynamic_type): Update code, following the changes made
11605 to resolve_dynamic_type_internal's interface.
11606 * dwarf2loc.h (struct property_addr_info): New.
11607 (dwarf2_evaluate_property): Replace "address" parameter
11608 by "addr_stack" parameter. Adjust function documentation.
11609 (struct dwarf2_offset_baton): New.
11610 (struct dwarf2_property_baton): Update documentation of
11611 field "referenced_type" to be more general. New field
11612 "offset_info" in union data field.
11613 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
11614 parameter by "addr_stack" parameter. Adjust code accordingly.
11615 Add support for PROP_ADDR_OFFSET properties.
11616 * dwarf2read.c (attr_to_dynamic_prop): Add support for
11617 DW_AT_data_member_location attributes as well. Use case
11618 statements instead of if/else condition.
11619
4a0ca9ec
JB
116202015-01-29 Joel Brobecker <brobecker@adacore.com>
11621
11622 * ada-varobj.c (ada_varobj_get_array_number_of_children):
11623 Return zero if PARENT_VALUE is NULL and parent_type's
11624 range type is dynamic.
11625
ddb87a81
JB
116262015-01-29 Joel Brobecker <brobecker@adacore.com>
11627
11628 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
11629 nonzero if the type's subtype is dynamic.
11630 (resolve_dynamic_range): Also resolve the range's subtype.
11631
3d7ad9b4 116322015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 11633
3d7ad9b4 11634 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
11635 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
11636
3a8b707a
DE
116372015-01-27 Doug Evans <dje@google.com>
11638
11639 * NEWS: Mention gdb.Objfile.username.
11640 * python/py-objfile.c (objfpy_get_username): New function.
11641 (objfile_getset): Add "username".
11642
d35b90fb
MW
116432015-01-24 Mark Wielaard <mjw@redhat.com>
11644
11645 * stack.c (return_command): Markup warning message with _.
11646
734ae125
DE
116472015-01-24 Doug Evans <xdje42@gmail.com>
11648
11649 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
11650
527f3840
JK
116512015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11652
11653 Fix 100x slowdown regression on DWZ files.
11654 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
11655 (struct line_header): Add offset and offset_in_dwz.
11656 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
11657 (free_line_header_voidp): New declaration.
11658 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
11659 functions.
11660 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
11661 (handle_DW_AT_stmt_list): Use line_header_hash.
11662 (free_line_header_voidp): New function.
11663 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
11664 (dwarf_decode_lines): New parameter decode_mapping, use it.
11665 (dwarf2_free_objfile): Free line_header_hash.
11666
f7e5394d
SM
116672015-01-23 Simon Marchi <simon.marchi@ericsson.com>
11668
11669 PR gdb/17416
11670 * valops.c (value_rtti_indirect_type): Catch exception thrown by
11671 value_ind.
11672
743649fd
MW
116732015-01-15 Mark Wielaard <mjw@redhat.com>
11674
11675 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
11676 DW_AT_noreturn.
11677 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
11678 calling_convention an 8 bit bit field.
11679 (TYPE_NO_RETURN): New macro.
11680 * infcmd.c (finish_command): Query if function does not return
11681 normally.
11682 * stack.c (return_command): Likewise.
11683
198297aa
PA
116842015-01-23 Pedro Alves <palves@redhat.com>
11685
11686 * linux-nat.c (linux_is_async_p): New macro.
11687 (linux_nat_is_async_p):
11688 (linux_nat_terminal_inferior): Check whether the target can async
11689 instead of whether it is already async.
11690 (linux_nat_terminal_ours): Don't check whether the target is
11691 async.
11692 (linux_async_pipe): Use linux_is_async_p.
11693
253828f1
JK
116942015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11695
11696 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
11697 '-ascending'.
11698 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
11699 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
11700 Sort tp_array using tp_array_compar.
11701 (_initialize_thread): Extend thread_apply_all_command help.
11702
f0e8c4c5
JK
117032015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11704
11705 * corelow.c (core_open): Call also thread_command.
11706 * gdbthread.h (thread_command): New prototype moved from ...
11707 * thread.c (thread_command): ... here.
11708 (thread_command): Make it global.
11709
03b79603
PA
117102015-01-22 Pedro Alves <palves@redhat.com>
11711
11712 * configure.ac [*mingw32*]: Check $curses_found instead of
11713 $prefer_curses.
11714 * configure: Regenerate.
11715 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
11716 HAVE_NCURSES_NCURSES_H checks.
11717
6b8a872f
EZ
117182015-01-22 Eli Zaretskii <eliz@gnu.org>
11719
bbbbffbb 11720 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
11721 fails with the 1st arg NULL, try again with "unknown". Don't test
11722 the "cup" capability: it isn't supported by the Windows port of
11723 ncurses, but the Windows console driver is still capable of
11724 supporting TUI.
11725
4b62a76e
JK
117262015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
11727
11728 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
11729
82a864f9
EZ
117302015-01-22 Eli Zaretskii <eliz@gnu.org>
11731
11732 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
11733 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
11734 reason that "make TAGS" is broken.
11735
b35018fd
CG
117362015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
11737
11738 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
11739 and check additional store instructions.
11740
ffbc4646
WW
117412015-01-21 Wei-cheng Wang <cole945@gmail.com>
11742
11743 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
11744
ddeca1df
WW
117452015-01-21 Wei-cheng Wang <cole945@gmail.com>
11746
11747 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
11748 ppc_canonicalize_syscall, ppc_linux_syscall_record,
11749 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
11750 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11751 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
11752 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
11753 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
11754 ppc_process_record_op19, ppc_process_record_op31,
11755 ppc_process_record_op59, ppc_process_record_op60,
11756 ppc_process_record_op63): Likewise.
11757
049bb5de
JB
117582015-01-20 Joel Brobecker <brobecker@adacore.com>
11759
11760 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
11761 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
11762 strerror.
11763
42b87c63 117642015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
11765
11766 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
11767 ppc_process_record_op31, ppc_process_record_op59,
11768 ppc_process_record_op60, ppc_process_record_op63,
11769 ppc_process_record): Fix -Wformat warning.
11770 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
11771 Remove unused variables.
11772
569340fc
CG
117732015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
11774
11775 * MAINTAINERS (Write After Approval): Add "Chen Gang".
11776
63413d85
EZ
117772015-01-19 Eli Zaretskii <eliz@gnu.org>
11778
11779 * configure.ac [*mingw32*]: Only add windows-termcap.o to
11780 CONFIG_OBS if not building with a curses library.
11781 * configure: Regenerate.
11782
11783 * windows-termcap.c: Include defs.h. Make the whole body empty if
11784 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
11785 HAVE_NCURSES_NCURSES_H is defined.
11786
16d8013c
JB
117872015-01-19 Joel Brobecker <brobecker@adacore.com>
11788
11789 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
11790 from end of line to start of next line.
11791
cf90fd9a
WW
117922015-01-17 Wei-cheng Wang <cole945@gmail.com>
11793
11794 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
11795 Scan PLT stub backward for reverse debugging.
11796 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
11797
b4cdae6f
WW
117982015-01-17 Wei-cheng Wang <cole945@gmail.com>
11799 Ulrich Weigand <uweigand@de.ibm.com>
11800
11801 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
11802 gdb_target_obs.
11803 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
11804 record.
11805 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
11806 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
11807 (ppc_linux_init_abi): Set process_record, process_record_signal.
11808 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
11809 ppc_linux_record_tdep to gdbarch_tdep.
11810 (ppc_process_record): New declaration.
11811 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
11812 ppc_process_record_op19, ppc_process_record_op31,
11813 ppc_process_record_op59, ppc_process_record_op60,
11814 ppc_process_record_op63, ppc_process_record): New functions.
11815
2608dbf8
WW
118162015-01-17 Wei-cheng Wang <cole945@gmail.com>
11817
11818 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
11819 rs6000_in_function_epilogue_frame_p and add an argument
11820 for frame_info.
11821 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
11822 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
11823 New functions.
11824 (rs6000_epilogue_frame_unwind): New.
11825 (rs6000_gdbarch_init): Append epilogue unwinder.
11826
4c347be6
SDJ
118272015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11828
11829 * nat/linux-personality.c: Replace "#ifndef
11830 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
11831 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
11832 systems.
11833
9f2850ba
EZ
118342015-01-16 Eli Zaretskii <eliz@gnu.org>
11835
6cdb25f4
EZ
11836 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
11837 functions.
11838 (_initialize_tui_win) <border-kind, border-mode>:
11839 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
11840 (tui_set_tab_width_command): Fix the commentary.
11841
6cdb25f4
EZ
11842 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
11843
bf555842
EZ
11844 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
11845 Doc fix.
cb86fcc1
EZ
11846 (tui_set_tab_width_command): Delete and recreate the source and
11847 the disassembly windows, to show the effect of the changed tab
11848 size immediately.
bf555842 11849
9f2850ba
EZ
11850 * tui/tui-data.h (LINE_PREFIX): Make shorter
11851 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
11852 "Thread NNNNN.XXXX" thread ID notation on Windows.
11853
95761b2d
JK
118542015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
11855
11856 Fix gcc-5 compilation.
11857 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
11858
8cc73a39
SDJ
118592015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11860
11861 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
11862 (linux-personality.o): New rule.
11863 * common/common-defs.h: Include <stdint.h>.
11864 * config/aarch64/linux.mh (NATDEPFILES): Include
11865 linux-personality.o.
11866 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
11867 * config/arm/linux.mh (NATDEPFILES): Likewise.
11868 * config/i386/linux64.mh (NATDEPFILES): Likewise.
11869 * config/i386/linux.mh (NATDEPFILES): Likewise.
11870 * config/ia64/linux.mh (NATDEPFILES): Likewise.
11871 * config/m32r/linux.mh (NATDEPFILES): Likewise.
11872 * config/m68k/linux.mh (NATDEPFILES): Likewise.
11873 * config/mips/linux.mh (NATDEPFILES): Likewise.
11874 * config/pa/linux.mh (NATDEPFILES): Likewise.
11875 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
11876 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
11877 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
11878 * config/s390/linux.mh (NATDEPFILES): Likewise.
11879 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
11880 * config/sparc/linux.mh (NATDEPFILES): Likewise.
11881 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
11882 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
11883 * defs.h: Remove #include <stdint.h> (moved to
11884 common/common-defs.h).
11885 * linux-nat.c: Include nat/linux-personality.h. Remove #include
11886 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
11887 nat/linux-personality.c).
11888 (linux_nat_create_inferior): Remove code to disable address space
11889 randomization (moved to nat/linux-personality.c). Create cleanup
11890 to disable address space randomization.
11891 * nat/linux-personality.c: New file.
11892 * nat/linux-personality.h: Likewise.
11893
fb23d554
SDJ
118942015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
11895
11896 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
11897 common/posix-strerror.c.
11898 (posix-strerror.o): New rule.
11899 (mingw-strerror.o): Likewise.
11900 * common/common-utils.h (safe_strerror): Move prototype to here,
11901 from utils.h.
11902 * common/common.host: New file.
11903 * common/mingw-strerror.c: Likewise.
11904 * common/posix-strerror.c: Likewise.
11905 * configure: Regenerated.
11906 * configure.ac: Source common/common.host. Add variable
11907 common_host_obs to gdb_host_obs.
11908 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
11909 gdb/common/posix-strerror.c when warning about the use of
11910 strerror.
11911 * mingw-hdep.c (safe_strerror): Remove definition; move it to
11912 common/mingw-strerror.c.
11913 * posix-hdep.c (safe_strerror): Remove definition; move it to
11914 common/posix-hdep.c.
11915 * utils.h (safe_strerror): Remove prototype; move to
11916 common/common-utils.h.
11917
3af8af43
JB
119182015-01-15 Joel Brobecker <brobecker@adacore.com>
11919
11920 GDB 7.8.2 released.
11921
bafffb51
JB
119222015-01-15 Joel Brobecker <brobecker@adacore.com>
11923
11924 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
11925 ___XA type if the array has already been fixed.
11926
cdf43629
YQ
119272015-01-14 Yao Qi <yao@codesourcery.com>
11928
11929 * Makefile.in (ppc-linux.o): New rule.
11930 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
11931 * configure.ac: AC_CHECK_FUNCS(getauxval).
11932 * config.in: Re-generated.
11933 * configure: Re-generated.
11934 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
11935 Declare.
11936 * nat/ppc-linux.c: New file.
11937 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
11938 Call ppc64_64bit_inferior_p.
11939
514c5338
YQ
119402015-01-14 Yao Qi <yao@codesourcery.com>
11941
11942 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
11943 nat/ppc-linux.h.
11944 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
11945 (PPC_FEATURE_HAS_DFP): Likewise.
11946 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
11947 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
11948 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
11949 Include "nat/ppc-linux.h".
11950 * nat/ppc-linux.h: New file.
11951 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
11952
5589af0e
PA
119532015-01-14 Pedro Alves <palves@redhat.com>
11954
11955 PR gdb/17525
11956 * breakpoint.c: Include "interps.h".
11957 (bpstat_do_actions_1): Also check whether the interpreter is
11958 async.
11959
6c400b59
PA
119602015-01-14 Pedro Alves <palves@redhat.com>
11961
11962 PR cli/17828
11963 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
11964 reinstall if the interpreter is sync.
11965
e02c96a7
DE
119662015-01-13 Doug Evans <dje@google.com>
11967
11968 * objfiles.c (objfile_filename): New function.
11969 * objfiles.h (objfile_filename): Declare it.
11970 (objfile_name): Add function comment.
11971 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
11972 bfd file name (which may be realpath'd), and the original name.
11973
3b2f13ff
JB
119742015-01-13 Joel Brobecker <brobecker@adacore.com>
11975
11976 * NEWS: Create a new section for the next release branch.
11977 Rename the section of the current branch, now that it has
11978 been cut.
11979
b4cfe7f8
JB
119802015-01-13 Joel Brobecker <brobecker@adacore.com>
11981
11982 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
11983 * version.in: Bump version to 7.9.50.DATE-cvs.
11984
92fc2e69
JB
119852015-01-13 Joel Brobecker <brobecker@adacore.com>
11986
11987 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
11988 Remove trailing new-line in argument of call to warning.
11989
f71f0b0d
JB
119902015-01-13 Joel Brobecker <brobecker@adacore.com>
11991
11992 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
11993 new-line in argument of call to "warning".
11994
04dccad0
JB
119952015-01-13 Joel Brobecker <brobecker@adacore.com>
11996
11997 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
11998 in static block, then try searching for primitive types.
11999
08b13bdd
PP
120002015-01-12 Patrick Palka <patrick@parcs.ath.cx>
12001
12002 * top.h (gdb_add_history): Declare.
12003 * top.c (command_count): New variable.
12004 (gdb_add_history): New function.
12005 (gdb_safe_append_history): New static function.
12006 (quit_force): Call it.
12007 (command_line_input): Use gdb_add_history instead of
12008 add_history.
12009 * event-top.c (command_line_handler): Likewise.
12010
4ac15b59
JC
120112015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
12012
12013 PR gdb/17046
12014 * darwin-nat.c: Replace <machine/setjmp.h> #include by
12015 <setjmp.h> #include.
12016
005e54bb
DE
120172015-01-11 Doug Evans <xdje42@gmail.com>
12018
12019 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
12020
439250fb
DE
120212015-01-11 Doug Evans <xdje42@gmail.com>
12022
12023 PR gdb/15830
12024 * NEWS: The "maint demangle" command is renamed as "demangle".
12025 * demangle.c: #include cli/cli-utils.h, language.h.
12026 (demangle_command): New function.
12027 (_initialize_demangle): Add new command "demangle".
12028 * maint.c (maintenance_demangle): Stub out.
12029 (_initialize_maint_cmds): Update help text for "maint demangle",
12030 and mark as deprecated.
12031
ebf3aa72
MK
120322015-01-11 Mark Kettenis <kettenis@gnu.org>
12033
12034 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
12035 inferior_thread is a function.
12036
6bf045cd
PP
120372015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12038
12039 * Makefile.in (.y.c): Don't munge yacc's #line
12040 directives.
12041
588dcc3e
PP
120422015-01-09 Patrick Palka <patrick@parcs.ath.cx>
12043
12044 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
12045 to prompt for input.
12046 * tui/tui-hooks.c (tui_query_hook): Remove.
12047 (tui_install_hooks): Don't set deprecated_query_hook.
12048 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
12049 height calculation. Always update the command window's cur_line.
12050
9c02b525
PA
120512015-01-09 Pedro Alves <palves@redhat.com>
12052
12053 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
12054 function.
12055 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
12056 declaration.
12057 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
12058 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
12059 stop_reason.
12060 (check_stopped_by_watchpoint): New function.
12061 (save_sigtrap): Reimplement.
12062 (linux_nat_stopped_by_watchpoint): Adjust.
12063 (linux_nat_lp_status_is_event): Delete.
12064 (stop_wait_callback): Only call save_sigtrap after storing the
12065 pending status.
12066 (status_callback): If the thread had been stopped for a breakpoint
12067 that has since been removed, discard the event and resume the LWP.
12068 (count_events_callback, select_event_lwp_callback): Use
12069 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
12070 (cancel_breakpoint): Rename to ...
12071 (check_stopped_by_breakpoint): ... this. Record whether the LWP
12072 stopped for a software breakpoint or hardware breakpoint.
12073 (select_event_lwp): Only give preference to the stepping LWP in
12074 all-stop mode. Adjust comments.
12075 (stop_and_resume_callback): Remove references to new_pending_p.
12076 (linux_nat_filter_event): Likewise. Leave exit events of the
12077 leader thread pending here. Handle signal short circuiting here.
12078 Only call save_sigtrap after storing the pending waitstatus.
12079 (linux_nat_wait_1): Remove 'retry' label. Remove references to
12080 new_pending. Don't handle leaving events the caller is not
12081 interested in pending here, nor handle signal short-circuiting
12082 here. Also give equal priority to all LWPs that have had events
12083 in non-stop mode. If reporting a software breakpoint event,
12084 unadjust the LWP's PC.
12085 * linux-nat.h (enum lwp_stop_reason): New.
12086 (struct lwp_info) <stop_pc>: New field.
12087 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
12088 (struct lwp_info) <stop_reason>: New field.
12089 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
12090
8af756ef
PA
120912015-01-09 Pedro Alves <palves@redhat.com>
12092
12093 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
12094 Set the LWP's 'resumed' flag.
12095
8a99810d
PA
120962015-01-09 Pedro Alves <palves@redhat.com>
12097
12098 * linux-nat.c (linux_resume_one_lwp): New function.
12099 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
12100 (linux_nat_resume): Use lwp_status_pending_p and
12101 linux_resume_one_lwp.
12102 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
12103 (linux_handle_extended_wait): Use linux_resume_one_lwp.
12104 (status_callback, running_callback): Use lwp_status_pending_p.
12105 (lwp_status_pending_p): New function.
12106 (stop_and_resume_callback): Use lwp_status_pending_p.
12107 (linux_nat_filter_event): Use linux_resume_one_lwp.
12108 (linux_nat_wait_1): Always use status_callback to look for an LWP
12109 with a pending status. Use linux_resume_one_lwp.
12110 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
12111 linux_resume_one_lwp.
12112
f7ce857f
PA
121132015-01-09 Pedro Alves <palves@redhat.com>
12114
12115 * breakpoint.c (bp_location_inserted_here_p): New function,
12116 factored out from ...
12117 (breakpoint_inserted_here_p): ... here. Use
12118 ALL_BP_LOCATIONS_AT_ADDR.
12119 (software_breakpoint_inserted_here_p): Use
12120 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
12121
c1a747c1
PA
121222014-01-09 Pedro Alves <palves@redhat.com>
12123
12124 Skip enabling event reporting if the kernel supports
12125 PTRACE_EVENT_CLONE.
12126 * linux-thread-db.c: Include "nat/linux-ptrace.h".
12127 (thread_db_use_events): New function.
12128 (try_thread_db_load_1): Check thread_db_use_events before enabling
12129 event reporting.
12130 (update_thread_state): New function.
12131 (attach_thread): Use it. Check thread_db_use_events before
12132 enabling event reporting.
12133 (thread_db_detach): Check thread_db_use_events before disabling
12134 event reporting.
12135 (find_new_threads_callback): Check thread_db_use_events before
12136 enabling event reporting. Update the thread's state if not using
12137 libthread_db events.
12138
a33e3959
PA
121392015-01-09 Pedro Alves <palves@redhat.com>
12140
12141 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
12142 about to wait for is > 0.
12143 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
12144 the kernel thread ID is -1.
12145
8784d563
PA
121462015-01-09 Pedro Alves <palves@redhat.com>
12147
12148 * linux-nat.c (attach_proc_task_lwp_callback): New function.
12149 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
12150 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
12151 ptrace option flags.
12152 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
12153 field.
12154 * nat/linux-procfs.c: Include <dirent.h>.
12155 (linux_proc_get_int): New parameter "warn". Handle it.
12156 (linux_proc_get_tgid): Adjust.
12157 (linux_proc_get_tracerpid): Rename to ...
12158 (linux_proc_get_tracerpid_nowarn): ... this.
12159 (linux_proc_pid_get_state): New function, factored out from
12160 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
12161 and handle it.
12162 (linux_proc_pid_is_gone): New function.
12163 (linux_proc_pid_is_stopped): Adjust.
12164 (linux_proc_pid_is_zombie_maybe_warn)
12165 (linux_proc_pid_is_zombie_nowarn): New functions.
12166 (linux_proc_pid_is_zombie): Use
12167 linux_proc_pid_is_zombie_maybe_warn.
12168 (linux_proc_attach_tgid_threads): New function.
12169 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
12170 (linux_proc_get_tracerpid): Rename to ...
12171 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
12172 (linux_proc_pid_is_gone): New declaration.
12173 (linux_proc_pid_is_zombie): Update comment.
12174 (linux_proc_pid_is_zombie_nowarn): New declaration.
12175 (linux_proc_attach_lwp_func): New typedef.
12176 (linux_proc_attach_tgid_threads): New declaration.
12177 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
12178 use nowarn functions.
12179 (linux_ptrace_attach_fail_reason_string): Move here from
12180 gdbserver/linux-low.c and rename.
12181 (ptrace_supports_feature): If the current ptrace options are not
12182 known yet, check them now, instead of asserting.
12183 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
12184 Declare.
12185
883ed13e
PA
121862015-01-09 Pedro Alves <palves@redhat.com>
12187
12188 * linux-thread-db.c (thread_db_find_new_threads_silently)
12189 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
12190 (find_new_threads_once): Print debug output on gdb_stdlog.
12191
1710aab8
CG
121922015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
12193 Pedro Alves <palves@redhat.com>
12194
12195 * compile/compile.c: Include "gdb_wait.h".
12196 (do_rmdir): Check return value, and free 'zap'.
12197
b597c318
YQ
121982015-01-08 Pedro Alves <palves@redhat.com>
12199 Yao Qi <yao@codesourcery.com>
12200
12201 * dwarf2loc.c (indirect_pieced_value): Don't call
12202 gdb_sign_extend. Call extract_signed_integer instead.
12203 * utils.c (gdb_sign_extend): Remove.
12204 * utils.h (gdb_sign_extend): Remove declaration.
12205
025ac414
PM
122062015-01-07 Pierre Muller <muller@sourceware.org>
12207
12208 PR symtab/17811
12209 * stabsread.c (define_symbol): Set language for C++ special symbols.
12210
fa5af12a
PP
122112015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12212
12213 * inflow.c (initial_gdb_ttystate): Tweak comment.
12214
ea42d6f8
JB
122152015-01-07 Joel Brobecker <brobecker@adacore.com>
12216
12217 * inflow.c (set_initial_gdb_ttystate): Add empty line after
12218 comment documenting function.
12219
6a06d660
PP
122202015-01-07 Patrick Palka <patrick@parcs.ath.cx>
12221
12222 * terminal.h (set_initial_gdb_ttystate): Declare.
12223 * inflow.c (initial_gdb_ttystate): New static variable.
12224 (set_initial_gdb_ttystate): New setter.
12225 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
12226 instead of our current terminal state.
12227 * top.c (gdb_init): Call set_initial_gdb_ttystate.
12228
e810d75b
JB
122292015-01-07 Joel Brobecker <brobecker@adacore.com>
12230
12231 * guile/scm-type.c (tyscm_array_1): Add comment.
12232 * python/py-type.c (typy_array_1): Add comment.
12233
fce10a84
JB
122342015-01-06 Joel Brobecker <brobecker@adacore.com>
12235
12236 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
12237 error if N2 is equal to N1 - 1.
12238
8503d6e1
JB
122392015-01-06 Joel Brobecker <brobecker@adacore.com>
12240
12241 * python/py-type.c (typy_array_1): Do not raise negative-length
12242 exception if N2 is equal to N1 - 1.
12243
4d29c0a8
DE
122442015-01-03 Doug Evans <xdje42@gmail.com>
12245
12246 * c-exp.y: Whitespace cleanup.
12247 (classify_inner_name): Remove extra ;.
12248
eaa6a9a4
MR
122492015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
12250
12251 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
12252 offset signed.
12253
02fe9972
DE
122542015-01-02 Doug Evans <dje@google.com>
12255
12256 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
12257
e2ada9cb
DE
122582015-01-02 Doug Evans <dje@google.com>
12259
12260 * symtab.h (struct symbol): Fix typo in comment.
12261
32d0add0
JB
122622015-01-01 Joel Brobecker <brobecker@adacore.com>
12263
12264 Update year range in copyright notice of all files.
12265
76f2b779
JB
122662015-01-01 Joel Brobecker <brobecker@adacore.com>
12267
12268 * top.c (print_gdb_version): Update copyright year to 2015.
12269
077309e2 122702015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 12271
077309e2 12272 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 12273
077309e2 12274For older changes see ChangeLog-2014.
c906108c
SS
12275\f
12276Local Variables:
12277mode: change-log
12278left-margin: 8
12279fill-column: 74
12280version-control: never
57da7796 12281coding: utf-8
c906108c 12282End:
This page took 2.448973 seconds and 4 git commands to generate.