Replace some xmalloc-family functions with XNEW-family ones
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
8d749320
SM
12015-08-26 Simon Marchi <simon.marchi@ericsson.com>
2
3 * aarch64-linux-nat.c (aarch64_add_process): Likewise.
4 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
5 * ada-exp.y (write_ambiguous_var): Likewise.
6 * ada-lang.c (resolve_subexp): Likewise.
7 (user_select_syms): Likewise.
8 (assign_aggregate): Likewise.
9 (ada_evaluate_subexp): Likewise.
10 (cache_symbol): Likewise.
11 * addrmap.c (allocate_key): Likewise.
12 (addrmap_create_mutable): Likewise.
13 * aix-thread.c (sync_threadlists): Likewise.
14 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
15 (alpha_gdbarch_init): Likewise.
16 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
17 * arm-linux-nat.c (arm_linux_add_process): Likewise.
18 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
19 * arm-tdep.c (push_stack_item): Likewise.
20 (arm_displaced_step_copy_insn): Likewise.
21 (arm_gdbarch_init): Likewise.
22 (_initialize_arm_tdep): Likewise.
23 * avr-tdep.c (push_stack_item): Likewise.
24 * ax-general.c (new_agent_expr): Likewise.
25 * block.c (block_initialize_namespace): Likewise.
26 * breakpoint.c (alloc_counted_command_line): Likewise.
27 (update_dprintf_command_list): Likewise.
28 (parse_breakpoint_sals): Likewise.
29 (decode_static_tracepoint_spec): Likewise.
30 (until_break_command): Likewise.
31 (clear_command): Likewise.
32 (update_global_location_list): Likewise.
33 (get_breakpoint_objfile_data) Likewise.
34 * btrace.c (ftrace_new_function): Likewise.
35 (btrace_set_insn_history): Likewise.
36 (btrace_set_call_history): Likewise.
37 * buildsym.c (add_symbol_to_list): Likewise.
38 (record_pending_block): Likewise.
39 (start_subfile): Likewise.
40 (start_buildsym_compunit): Likewise.
41 (push_subfile): Likewise.
42 (end_symtab_get_static_block): Likewise.
43 (buildsym_init): Likewise.
44 * cli/cli-cmds.c (source_command): Likewise.
45 * cli/cli-decode.c (add_cmd): Likewise.
46 * cli/cli-script.c (build_command_line): Likewise.
47 (setup_user_args): Likewise.
48 (realloc_body_list): Likewise.
49 (process_next_line): Likewise.
50 (copy_command_lines): Likewise.
51 * cli/cli-setshow.c (do_set_command): Likewise.
52 * coff-pe-read.c (read_pe_exported_syms): Likewise.
53 * coffread.c (coff_locate_sections): Likewise.
54 (coff_symtab_read): Likewise.
55 (coff_read_struct_type): Likewise.
56 * common/cleanups.c (make_my_cleanup2): Likewise.
57 * common/common-exceptions.c (throw_it): Likewise.
58 * common/filestuff.c (make_cleanup_close): Likewise.
59 * common/format.c (parse_format_string): Likewise.
60 * common/queue.h (DEFINE_QUEUE_P): Likewise.
61 * compile/compile-object-load.c (munmap_list_add): Likewise.
62 (compile_object_load): Likewise.
63 * compile/compile-object-run.c (compile_object_run): Likewise.
64 * compile/compile.c (append_args): Likewise.
65 * corefile.c (specify_exec_file_hook): Likewise.
66 * cp-support.c (make_symbol_overload_list): Likewise.
67 * cris-tdep.c (push_stack_item): Likewise.
68 (cris_gdbarch_init): Likewise.
69 * ctf.c (ctf_trace_file_writer_new): Likewise.
70 * dbxread.c (init_header_files): Likewise.
71 (add_new_header_file): Likewise.
72 (init_bincl_list): Likewise.
73 (dbx_end_psymtab): Likewise.
74 (start_psymtab): Likewise.
75 (dbx_end_psymtab): Likewise.
76 * dcache.c (dcache_init): Likewise.
77 * dictionary.c (dict_create_hashed): Likewise.
78 (dict_create_hashed_expandable): Likewise.
79 (dict_create_linear): Likewise.
80 (dict_create_linear_expandable): Likewise.
81 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
82 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
83 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
84 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
85 (decode_frame_entry_1): Likewise.
86 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
87 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
88 * dwarf2read.c (dwarf2_has_info): Likewise.
89 (create_signatured_type_table_from_index): Likewise.
90 (dwarf2_read_index): Likewise.
91 (dw2_get_file_names_reader): Likewise.
92 (create_all_type_units): Likewise.
93 (read_cutu_die_from_dwo): Likewise.
94 (init_tu_and_read_dwo_dies): Likewise.
95 (init_cutu_and_read_dies): Likewise.
96 (create_all_comp_units): Likewise.
97 (queue_comp_unit): Likewise.
98 (inherit_abstract_dies): Likewise.
99 (read_call_site_scope): Likewise.
100 (dwarf2_add_field): Likewise.
101 (dwarf2_add_typedef): Likewise.
102 (dwarf2_add_member_fn): Likewise.
103 (attr_to_dynamic_prop): Likewise.
104 (abbrev_table_alloc_abbrev): Likewise.
105 (abbrev_table_read_table): Likewise.
106 (add_include_dir): Likewise.
107 (add_file_name): Likewise.
108 (dwarf_decode_line_header): Likewise.
109 (dwarf2_const_value_attr): Likewise.
110 (dwarf_alloc_block): Likewise.
111 (parse_macro_definition): Likewise.
112 (set_die_type): Likewise.
113 (write_psymtabs_to_index): Likewise.
114 (create_cus_from_index): Likewise.
115 (dwarf2_create_include_psymtab): Likewise.
116 (process_psymtab_comp_unit_reader): Likewise.
117 (build_type_psymtab_dependencies): Likewise.
118 (read_comp_units_from_section): Likewise.
119 (compute_compunit_symtab_includes): Likewise.
120 (create_dwo_unit_in_dwp_v1): Likewise.
121 (create_dwo_unit_in_dwp_v2): Likewise.
122 (read_func_scope): Likewise.
123 (process_structure_scope): Likewise.
124 (mark_common_block_symbol_computed): Likewise.
125 (load_partial_dies): Likewise.
126 (dwarf2_symbol_mark_computed): Likewise.
127 * elfread.c (elf_symfile_segments): Likewise.
128 (elf_read_minimal_symbols): Likewise.
129 * environ.c (make_environ): Likewise.
130 * eval.c (evaluate_subexp_standard): Likewise.
131 * event-loop.c (create_file_handler): Likewise.
132 (create_async_signal_handler): Likewise.
133 (create_async_event_handler): Likewise.
134 (create_timer): Likewise.
135 * exec.c (build_section_table): Likewise.
136 * fbsd-nat.c (fbsd_remember_child): Likewise.
137 * fork-child.c (fork_inferior): Likewise.
138 * frv-tdep.c (new_variant): Likewise.
139 * gdbarch.sh (gdbarch_alloc): Likewise.
140 (append_name): Likewise.
141 * gdbtypes.c (rank_function): Likewise.
142 (copy_type_recursive): Likewise.
143 (add_dyn_prop): Likewise.
144 * gnu-nat.c (make_proc): Likewise.
145 (make_inf): Likewise.
146 (gnu_write_inferior): Likewise.
147 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
148 (build_std_type_info_type): Likewise.
149 * guile/scm-param.c (compute_enum_list): Likewise.
150 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
151 * guile/scm-value.c (gdbscm_value_call): Likewise.
152 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
153 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
154 (read_unwind_info): Likewise.
155 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
156 * infcall.c (dummy_frame_context_saver_setup): Likewise.
157 (call_function_by_hand_dummy): Likewise.
158 * infcmd.c (step_once): Likewise.
159 (finish_forward): Likewise.
160 (attach_command): Likewise.
161 (notice_new_inferior): Likewise.
162 * inferior.c (add_inferior_silent): Likewise.
163 * infrun.c (add_displaced_stepping_state): Likewise.
164 (save_infcall_control_state): Likewise.
165 (save_inferior_ptid): Likewise.
166 (_initialize_infrun): Likewise.
167 * jit.c (bfd_open_from_target_memory): Likewise.
168 (jit_gdbarch_data_init): Likewise.
169 * language.c (add_language): Likewise.
170 * linespec.c (decode_line_2): Likewise.
171 * linux-nat.c (add_to_pid_list): Likewise.
172 (add_initial_lwp): Likewise.
173 * linux-thread-db.c (add_thread_db_info): Likewise.
174 (record_thread): Likewise.
175 (info_auto_load_libthread_db): Likewise.
176 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
178 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
179 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
180 * macrocmd.c (macro_define_command): Likewise.
181 * macroexp.c (gather_arguments): Likewise.
182 * macroscope.c (sal_macro_scope): Likewise.
183 * macrotab.c (new_macro_table): Likewise.
184 * mdebugread.c (push_parse_stack): Likewise.
185 (parse_partial_symbols): Likewise.
186 (parse_symbol): Likewise.
187 (psymtab_to_symtab_1): Likewise.
188 (new_block): Likewise.
189 (new_psymtab): Likewise.
190 (mdebug_build_psymtabs): Likewise.
191 (add_pending): Likewise.
192 (elfmdebug_build_psymtabs): Likewise.
193 * mep-tdep.c (mep_gdbarch_init): Likewise.
194 * mi/mi-main.c (mi_execute_command): Likewise.
195 * mi/mi-parse.c (mi_parse_argv): Likewise.
196 * minidebug.c (lzma_open): Likewise.
197 * minsyms.c (terminate_minimal_symbol_table): Likewise.
198 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
199 * mips-tdep.c (mips_gdbarch_init): Likewise.
200 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
201 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
202 * mt-tdep.c (mt_registers_info): Likewise.
203 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
204 * nat/linux-btrace.c (linux_enable_bts): Likewise.
205 (linux_enable_pt): Likewise.
206 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
207 (linux_xfer_osdata_processgroups): Likewise.
208 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
209 * nto-procfs.c (procfs_meminfo): Likewise.
210 * objc-lang.c (start_msglist): Likewise.
211 (selectors_info): Likewise.
212 (classes_info): Likewise.
213 (find_methods): Likewise.
214 * objfiles.c (allocate_objfile): Likewise.
215 (update_section_map): Likewise.
216 * osabi.c (gdbarch_register_osabi): Likewise.
217 (gdbarch_register_osabi_sniffer): Likewise.
218 * parse.c (start_arglist): Likewise.
219 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
220 (hwdebug_insert_point): Likewise.
221 * printcmd.c (display_command): Likewise.
222 (ui_printf): Likewise.
223 * procfs.c (create_procinfo): Likewise.
224 (load_syscalls): Likewise.
225 (proc_get_LDT_entry): Likewise.
226 (proc_update_threads): Likewise.
227 * prologue-value.c (make_pv_area): Likewise.
228 (pv_area_store): Likewise.
229 * psymtab.c (extend_psymbol_list): Likewise.
230 (init_psymbol_list): Likewise.
231 (allocate_psymtab): Likewise.
232 * python/py-inferior.c (add_thread_object): Likewise.
233 * python/py-param.c (compute_enum_values): Likewise.
234 * python/py-value.c (valpy_call): Likewise.
235 * python/py-varobj.c (py_varobj_iter_next): Likewise.
236 * python/python.c (ensure_python_env): Likewise.
237 * record-btrace.c (record_btrace_start_replaying): Likewise.
238 * record-full.c (record_full_reg_alloc): Likewise.
239 (record_full_mem_alloc): Likewise.
240 (record_full_end_alloc): Likewise.
241 (record_full_core_xfer_partial): Likewise.
242 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
243 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
244 * remote-notif.c (remote_notif_state_allocate): Likewise.
245 * remote.c (demand_private_info): Likewise.
246 (remote_notif_stop_alloc_reply): Likewise.
247 (remote_enable_btrace): Likewise.
248 * reverse.c (save_bookmark_command): Likewise.
249 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
250 * rx-tdep.c (rx_gdbarch_init): Likewise.
251 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
252 * ser-go32.c (dos_get_tty_state): Likewise.
253 (dos_copy_tty_state): Likewise.
254 * ser-mingw.c (ser_windows_open): Likewise.
255 (ser_console_wait_handle): Likewise.
256 (ser_console_get_tty_state): Likewise.
257 (make_pipe_state): Likewise.
258 (net_windows_open): Likewise.
259 * ser-unix.c (hardwire_get_tty_state): Likewise.
260 (hardwire_copy_tty_state): Likewise.
261 * solib-aix.c (solib_aix_new_lm_info): Likewise.
262 * solib-dsbt.c (dsbt_current_sos): Likewise.
263 (dsbt_relocate_main_executable): Likewise.
264 * solib-frv.c (frv_current_sos): Likewise.
265 (frv_relocate_main_executable): Likewise.
266 * solib-spu.c (spu_bfd_fopen): Likewise.
267 * solib-svr4.c (lm_info_read): Likewise.
268 (svr4_copy_library_list): Likewise.
269 (svr4_default_sos): Likewise.
270 * source.c (find_source_lines): Likewise.
271 (line_info): Likewise.
272 (add_substitute_path_rule): Likewise.
273 * spu-linux-nat.c (spu_bfd_open): Likewise.
274 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
275 * stabsread.c (dbx_lookup_type): Likewise.
276 (read_type): Likewise.
277 (read_member_functions): Likewise.
278 (read_struct_fields): Likewise.
279 (read_baseclasses): Likewise.
280 (read_args): Likewise.
281 (_initialize_stabsread): Likewise.
282 * stack.c (func_command): Likewise.
283 * stap-probe.c (handle_stap_probe): Likewise.
284 * symfile.c (addrs_section_sort): Likewise.
285 (addr_info_make_relative): Likewise.
286 (load_section_callback): Likewise.
287 (add_symbol_file_command): Likewise.
288 (init_filename_language_table): Likewise.
289 * symtab.c (create_filename_seen_cache): Likewise.
290 (sort_search_symbols_remove_dups): Likewise.
291 (search_symbols): Likewise.
292 * target.c (make_cleanup_restore_target_terminal): Likewise.
293 * thread.c (new_thread): Likewise.
294 (enable_thread_stack_temporaries): Likewise.
295 (make_cleanup_restore_current_thread): Likewise.
296 (thread_apply_all_command): Likewise.
297 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
298 * top.c (gdb_readline_wrapper): Likewise.
299 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
300 * tracepoint.c (trace_find_line_command): Likewise.
301 (all_tracepoint_actions_and_cleanup): Likewise.
302 (make_cleanup_restore_current_traceframe): Likewise.
303 (get_uploaded_tp): Likewise.
304 (get_uploaded_tsv): Likewise.
305 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
306 (tui_alloc_win_info): Likewise.
307 (tui_alloc_content): Likewise.
308 (tui_add_content_elements): Likewise.
309 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
310 (tui_set_disassem_content): Likewise.
311 * ui-file.c (ui_file_new): Likewise.
312 (stdio_file_new): Likewise.
313 (tee_file_new): Likewise.
314 * utils.c (make_cleanup_restore_integer): Likewise.
315 (add_internal_problem_command): Likewise.
316 * v850-tdep.c (v850_gdbarch_init): Likewise.
317 * valops.c (find_oload_champ): Likewise.
318 * value.c (allocate_value_lazy): Likewise.
319 (record_latest_value): Likewise.
320 (create_internalvar): Likewise.
321 * varobj.c (install_variable): Likewise.
322 (new_variable): Likewise.
323 (new_root_variable): Likewise.
324 (cppush): Likewise.
325 (_initialize_varobj): Likewise.
326 * windows-nat.c (windows_make_so): Likewise.
327 * x86-nat.c (x86_add_process): Likewise.
328 * xcoffread.c (arrange_linetable): Likewise.
329 (allocate_include_entry): Likewise.
330 (process_linenos): Likewise.
331 (SYMBOL_DUP): Likewise.
332 (xcoff_start_psymtab): Likewise.
333 (xcoff_end_psymtab): Likewise.
334 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
335 * xtensa-tdep.c (xtensa_register_type): Likewise.
336 * gdbarch.c: Regenerate.
337 * gdbarch.h: Regenerate.
338
17d8546e
DB
3392015-08-25 Don Breazeal <donb@codesourcery.com>
340
341 * infrun.c (follow_exec): Re-order operations for
342 handling follow-exec-mode "new".
343 (handle_inferior_event_1): Assign ecs->event_thread
344 to the current thread.
345 * remote.c (get_remote_arch_state): Add an assertion.
346
ba49e44b
PA
3472015-08-26 Pedro Alves <palves@redhat.com>
348
349 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
350
abc56d60
PA
3512015-08-24 Pedro Alves <palves@redhat.com>
352
353 * defs.h (maybe_quit): Declare.
354 (QUIT): Now calls maybe_quit.
355 * event-loop.c (clear_async_signal_handler)
356 (async_signal_handler_is_marked): New functions.
357 * event-loop.h (async_signal_handler_is_marked)
358 (clear_async_signal_handler): New declarations.
359 * remote.c (remote_check_pending_interrupt): New function.
360 (interrupt_query): Use make_cleanup_restore_target_terminal. No
361 longer check whether the target is async. If waiting for a stop
362 reply, and a Ctrl-C as been sent to the target, offer to
363 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
364 Otherwise do not disconnect and throw a quit.
365 (_initialize_remote): Install remote_check_pending_interrupt as
366 to_check_pending_interrupt.
367 * target.c (target_check_pending_interrupt): New function.
368 * target.h (struct target_ops) <to_check_pending_interrupt>: New
369 field.
370 (target_check_pending_interrupt): New declaration.
371 * utils.c (maybe_quit): New function.
372 * target-delegates.c: Regenerate.
373
dfe7f77c
YQ
3742015-08-25 Yao Qi <yao.qi@linaro.org>
375
376 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
377 Rename local variable pid to tid, and get lwpid of lwp. Update
378 debug output.
379
63e43d3a
PMR
3802015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
381
382 * ada-lang.c (ada_read_var_value): Add a var_block argument
383 and pass it to default_read_var_value.
384 * block.c (block_static_link): New accessor.
385 * block.h (block_static_link): Declare it.
386 * buildsym.c (finish_block_internal): Add a static_link
387 argument. If there is a static link, associate it to the new
388 block.
389 (finish_block): Add a static link argument and pass it to
390 finish_block_internal.
391 (end_symtab_get_static_block): Update calls to finish_block and
392 to finish_block_internal.
393 (end_symtab_with_blockvector): Update call to
394 finish_block_internal.
395 * buildsym.h: Forward-declare struct dynamic_prop.
396 (struct context_stack): Add a static_link field.
397 (finish_block): Add a static link argument.
398 * c-exp.y: Remove an obsolete comment (evaluation of variables
399 already start from the selected frame, and now they climb *up*
400 the call stack) and propagate the block information to the
401 produced expression.
402 * d-exp.y: Likewise.
403 * f-exp.y: Likewise.
404 * go-exp.y: Likewise.
405 * jv-exp.y: Likewise.
406 * m2-exp.y: Likewise.
407 * p-exp.y: Likewise.
408 * coffread.c (coff_symtab_read): Update calls to finish_block.
409 * dbxread.c (process_one_symbol): Likewise.
410 * xcoffread.c (read_xcoff_symtab): Likewise.
411 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
412 "sym" parameter to struct block_symbol, update its uses and pass
413 its block to calls to read_var_value.
414 (convert_symbol_sym): Update the calls to convert_one_symbol.
415 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
416 call to read_var_value.
417 * dwarf2loc.c (block_op_get_frame_base): New.
418 (dwarf2_block_frame_base_locexpr_funcs): Implement the
419 get_frame_base method.
420 (dwarf2_block_frame_base_loclist_funcs): Likewise.
421 (dwarf2locexpr_baton_eval): Add a frame argument and use it
422 instead of the selected frame in order to evaluate the
423 expression.
424 (dwarf2_evaluate_property): Add a frame argument. Update call
425 to dwarf2_locexpr_baton_eval to provide a frame in available and
426 to handle the absence of address stack.
427 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
428 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
429 declaration.
430 (read_func_scope): Record any available static link description.
431 Update call to finish_block.
432 (read_lexical_block_scope): Update call to finish_block.
433 * findvar.c (follow_static_link): New.
434 (get_hosting_frame): New.
435 (default_read_var_value): Add a var_block argument. Use
436 get_hosting_frame to handle non-local references.
437 (read_var_value): Add a var_block argument and pass it to the
438 LA_READ_VAR_VALUE method.
439 * gdbtypes.c (resolve_dynamic_range): Update calls to
440 dwarf2_evaluate_property.
441 (resolve_dynamic_type_internal): Likewise.
442 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
443 read_var_value, passing it the block coming from symbol lookup.
444 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
445 read_var_value (TODO).
446 * infcmd.c (finish_command_continuation): Update call to
447 read_var_value, passing it the block coming from symbol lookup.
448 * infrun.c (insert_exception_resume_breakpoint): Likewise.
449 * language.h (struct language_defn): Add a var_block argument to
450 the LA_READ_VAR_VALUE method.
451 * objfiles.c (struct static_link_htab_entry): New.
452 (static_link_htab_entry_hash): New.
453 (static_link_htab_entry_eq): New.
454 (objfile_register_static_link): New.
455 (objfile_lookup_static_link): New.
456 (free_objfile): Free the STATIC_LINKS hashed map if needed.
457 * objfiles.h: Include hashtab.h.
458 (struct objfile): Add a static_links field.
459 (objfile_register_static_link): New.
460 (objfile_lookup_static_link): New.
461 * printcmd.c (print_variable_and_value): Update call to
462 read_var_value.
463 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
464 * python/py-frame.c (frapy_read_var): Update call to
465 read_var_value, passing it the block coming from symbol lookup.
466 * python/py-framefilter.c (extract_sym): Add a sym_block
467 parameter and set the pointed value to NULL (TODO).
468 (enumerate_args): Update call to extract_sym.
469 (enumerate_locals): Update calls to extract_sym and to
470 read_var_value.
471 * python/py-symbol.c (sympy_value): Update call to
472 read_var_value (TODO).
473 * stack.c (read_frame_local): Update call to read_var_value.
474 (read_frame_arg): Likewise.
475 (return_command): Likewise.
476 * symtab.h (struct symbol_block_ops): Add a get_frame_base
477 method.
478 (struct symbol): Add a block field.
479 (SYMBOL_BLOCK): New accessor.
480 * valops.c (value_of_variable): Remove frame/block handling and
481 pass the block argument to read_var_value, which does this job
482 now.
483 (value_struct_elt_for_reference): Update calls to
484 read_var_value.
485 (value_of_this): Pass the block found to read_var_value.
486 * value.h (read_var_value): Add a var_block argument.
487 (default_read_var_value): Likewise.
488
ed8b7b42
YQ
4892015-08-25 Yao Qi <yao.qi@linaro.org>
490
491 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
492 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
493 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
494
db3cb7cb
YQ
4952015-08-25 Yao Qi <yao.qi@linaro.org>
496
497 * Makefile.in (aarch64-liunx.o): New rule.
498 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
499 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
500 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
501 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
502 extern.
503 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
504 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
505 * nat/aarch64-linux.c: New file.
506 * nat/aarch64-linux.h: New file.
507
f6011a1c
YQ
5082015-08-25 Yao Qi <yao.qi@linaro.org>
509
510 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
511 lwp_arch_private_info and ptid_of_lwp.
512
5e35436e
YQ
5132015-08-25 Yao Qi <yao.qi@linaro.org>
514
515 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
516 Move it to nat/aarch64-linux-hw-point.c.
517 (debug_reg_change_callback): Likewise.
518 (aarch64_notify_debug_reg_change): :Likewise.
519 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
520 (aarch64_dr_update_callback_param): New.
521 (debug_reg_change_callback): New function.
522 (aarch64_notify_debug_reg_change): Likewise.
523 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
524 Remove the declaration.
525
4a8a7965
YQ
5262015-08-25 Yao Qi <yao.qi@linaro.org>
527
528 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
529 Call current_lwp_ptid.
530
32a271ee
YQ
5312015-08-25 Yao Qi <yao.qi@linaro.org>
532
533 * aarch64-linux-nat.c (debug_reg_change_callback): Use
534 debug_printf.
535
5e137137
YQ
5362015-08-25 Yao Qi <yao.qi@linaro.org>
537
538 * aarch64-linux-nat.c (debug_reg_change_callback): Call
539 ptid_get_pid rather than ptid_get_lwp.
540
73b8c1fd
PA
5412015-08-24 Pedro Alves <palves@redhat.com>
542
543 * NEWS (New commands): Mention set/show remote
544 multiprocess-extensions-packet.
545 * remote.c (remote_query_supported): Only tell the server to use
546 the multiprocess extensions if the user hasn't force-disabled them
547 with "set remote multiprocess-extensions-packet off".
548
4a626d0a
PA
5492015-08-24 Pedro Alves <palves@redhat.com>
550
551 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
552 1029a8112290f6eee9d7878a391c49db42c999bd.
553 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
554 Regenerate.
555 * gnulib/import/Makefile.am: Update.
556 * gnulib/import/Makefile.in: Update.
557 * gnulib/import/alloca.in.h: Update.
558 * gnulib/import/basename-lgpl.c: Update.
559 * gnulib/import/canonicalize-lgpl.c: Update.
560 * gnulib/import/config.charset: Update.
561 * gnulib/import/dirent.in.h: Update.
562 * gnulib/import/dirfd.c: Update.
563 * gnulib/import/dirname-lgpl.c: Update.
564 * gnulib/import/dirname.h: Update.
565 * gnulib/import/dosname.h: Update.
566 * gnulib/import/errno.in.h: Update.
567 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
568 * gnulib/import/extra/snippet/c++defs.h: Update.
569 * gnulib/import/extra/snippet/warn-on-use.h: Update.
570 * gnulib/import/extra/update-copyright: Update.
571 * gnulib/import/float+.h: Update.
572 * gnulib/import/float.c: Update.
573 * gnulib/import/float.in.h: Update.
574 * gnulib/import/fnmatch.c: Update.
575 * gnulib/import/fnmatch.in.h: Update.
576 * gnulib/import/fnmatch_loop.c: Update.
577 * gnulib/import/fpucw.h: Update.
578 * gnulib/import/frexp.c: Update.
579 * gnulib/import/frexpl.c: Update.
580 * gnulib/import/gettimeofday.c: Update.
581 * gnulib/import/inttypes.in.h: Update.
582 * gnulib/import/isnan.c: Update.
583 * gnulib/import/isnand-nolibm.h: Update.
584 * gnulib/import/isnand.c: Update.
585 * gnulib/import/isnanl-nolibm.h: Update.
586 * gnulib/import/isnanl.c: Update.
587 * gnulib/import/itold.c: Update.
588 * gnulib/import/localcharset.c: Update.
589 * gnulib/import/localcharset.h: Update.
590 * gnulib/import/lstat.c: Update.
591 * gnulib/import/m4/00gnulib.m4: Update.
592 * gnulib/import/m4/absolute-header.m4: Update.
593 * gnulib/import/m4/alloca.m4: Update.
594 * gnulib/import/m4/canonicalize.m4: Update.
595 * gnulib/import/m4/codeset.m4: Update.
596 * gnulib/import/m4/configmake.m4: Update.
597 * gnulib/import/m4/dirent_h.m4: Update.
598 * gnulib/import/m4/dirfd.m4: Update.
599 * gnulib/import/m4/dirname.m4: Update.
600 * gnulib/import/m4/double-slash-root.m4: Update.
601 * gnulib/import/m4/eealloc.m4: Update.
602 * gnulib/import/m4/errno_h.m4: Update.
603 * gnulib/import/m4/exponentd.m4: Update.
604 * gnulib/import/m4/exponentl.m4: Update.
605 * gnulib/import/m4/extensions.m4: Update.
606 * gnulib/import/m4/extern-inline.m4: Update.
607 * gnulib/import/m4/fcntl-o.m4: Update.
608 * gnulib/import/m4/float_h.m4: Update.
609 * gnulib/import/m4/fnmatch.m4: Update.
610 * gnulib/import/m4/fpieee.m4: Update.
611 * gnulib/import/m4/frexp.m4: Update.
612 * gnulib/import/m4/frexpl.m4: Update.
613 * gnulib/import/m4/gettimeofday.m4: Update.
614 * gnulib/import/m4/glibc21.m4: Update.
615 * gnulib/import/m4/gnulib-cache.m4: Update.
616 * gnulib/import/m4/gnulib-common.m4: Update.
617 * gnulib/import/m4/gnulib-comp.m4: Update.
618 * gnulib/import/m4/gnulib-tool.m4: Update.
619 * gnulib/import/m4/include_next.m4: Update.
620 * gnulib/import/m4/inttypes-pri.m4: Update.
621 * gnulib/import/m4/inttypes.m4: Update.
622 * gnulib/import/m4/isnand.m4: Update.
623 * gnulib/import/m4/isnanl.m4: Update.
624 * gnulib/import/m4/largefile.m4: Update.
625 * gnulib/import/m4/localcharset.m4: Update.
626 * gnulib/import/m4/locale-fr.m4: Update.
627 * gnulib/import/m4/locale-ja.m4: Update.
628 * gnulib/import/m4/locale-zh.m4: Update.
629 * gnulib/import/m4/longlong.m4: Update.
630 * gnulib/import/m4/lstat.m4: Update.
631 * gnulib/import/m4/malloc.m4: Update.
632 * gnulib/import/m4/malloca.m4: Update.
633 * gnulib/import/m4/math_h.m4: Update.
634 * gnulib/import/m4/mbrtowc.m4: Update.
635 * gnulib/import/m4/mbsinit.m4: Update.
636 * gnulib/import/m4/mbsrtowcs.m4: Update.
637 * gnulib/import/m4/mbstate_t.m4: Update.
638 * gnulib/import/m4/memchr.m4: Update.
639 * gnulib/import/m4/memmem.m4: Update.
640 * gnulib/import/m4/mmap-anon.m4: Update.
641 * gnulib/import/m4/multiarch.m4: Update.
642 * gnulib/import/m4/nocrash.m4: Update.
643 * gnulib/import/m4/off_t.m4: Update.
644 * gnulib/import/m4/pathmax.m4: Update.
645 * gnulib/import/m4/readlink.m4: Update.
646 * gnulib/import/m4/rename.m4: Update.
647 * gnulib/import/m4/rmdir.m4: Update.
648 * gnulib/import/m4/ssize_t.m4: Update.
649 * gnulib/import/m4/stat.m4: Update.
650 * gnulib/import/m4/stdbool.m4: Update.
651 * gnulib/import/m4/stddef_h.m4: Update.
652 * gnulib/import/m4/stdint.m4: Update.
653 * gnulib/import/m4/stdio_h.m4: Update.
654 * gnulib/import/m4/stdlib_h.m4: Update.
655 * gnulib/import/m4/string_h.m4: Update.
656 * gnulib/import/m4/strstr.m4: Update.
657 * gnulib/import/m4/strtok_r.m4: Update.
658 * gnulib/import/m4/sys_socket_h.m4: Update.
659 * gnulib/import/m4/sys_stat_h.m4: Update.
660 * gnulib/import/m4/sys_time_h.m4: Update.
661 * gnulib/import/m4/sys_types_h.m4: Update.
662 * gnulib/import/m4/time_h.m4: Update.
663 * gnulib/import/m4/unistd_h.m4: Update.
664 * gnulib/import/m4/warn-on-use.m4: Update.
665 * gnulib/import/m4/wchar_h.m4: Update.
666 * gnulib/import/m4/wchar_t.m4: Update.
667 * gnulib/import/m4/wctype_h.m4: Update.
668 * gnulib/import/m4/wint_t.m4: Update.
669 * gnulib/import/malloc.c: Update.
670 * gnulib/import/malloca.c: Update.
671 * gnulib/import/malloca.h: Update.
672 * gnulib/import/math.in.h: Update.
673 * gnulib/import/mbrtowc.c: Update.
674 * gnulib/import/mbsinit.c: Update.
675 * gnulib/import/mbsrtowcs-impl.h: Update.
676 * gnulib/import/mbsrtowcs-state.c: Update.
677 * gnulib/import/mbsrtowcs.c: Update.
678 * gnulib/import/memchr.c: Update.
679 * gnulib/import/memmem.c: Update.
680 * gnulib/import/pathmax.h: Update.
681 * gnulib/import/readlink.c: Update.
682 * gnulib/import/ref-add.sin: Update.
683 * gnulib/import/ref-del.sin: Update.
684 * gnulib/import/rename.c: Update.
685 * gnulib/import/rmdir.c: Update.
686 * gnulib/import/same-inode.h: Update.
687 * gnulib/import/stat.c: Update.
688 * gnulib/import/stdbool.in.h: Update.
689 * gnulib/import/stddef.in.h: Update.
690 * gnulib/import/stdint.in.h: Update.
691 * gnulib/import/stdio.c: Update.
692 * gnulib/import/stdio.in.h: Update.
693 * gnulib/import/stdlib.in.h: Update.
694 * gnulib/import/str-two-way.h: Update.
695 * gnulib/import/streq.h: Update.
696 * gnulib/import/string.in.h: Update.
697 * gnulib/import/stripslash.c: Update.
698 * gnulib/import/strnlen1.c: Update.
699 * gnulib/import/strnlen1.h: Update.
700 * gnulib/import/strstr.c: Update.
701 * gnulib/import/strtok_r.c: Update.
702 * gnulib/import/sys_stat.in.h: Update.
703 * gnulib/import/sys_time.in.h: Update.
704 * gnulib/import/sys_types.in.h: Update.
705 * gnulib/import/time.in.h: Update.
706 * gnulib/import/unistd.in.h: Update.
707 * gnulib/import/verify.h: Update.
708 * gnulib/import/wchar.in.h: Update.
709 * gnulib/import/wctype.in.h: Update.
710 * gnulib/import/gettimeofday.c: New file.
711 * gnulib/import/m4/absolute-header.m4: New file.
712 * gnulib/import/m4/gettimeofday.m4: New file.
713 * gnulib/import/m4/sys_socket_h.m4: New file.
714 * gnulib/import/m4/sys_time_h.m4: New file.
715 * gnulib/import/stdio.c: Delete file.
716 * gnulib/import/sys_time.in.h: New file.
717
438e1e42
PA
7182015-08-24 Pedro Alves <palves@redhat.com>
719
720 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
721 * common/gdb_sys_time.h: New file.
722 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
723 * gdb_select.h: Likewise.
724 * gdb_usleep.c: Likewise.
725 * maint.c: Likewise.
726 * mi/mi-main.c: Likewise.
727 * mi/mi-parse.h: Likewise.
728 * remote-fileio.c: Likewise.
729 * remote-m32r-sdi.c: Likewise.
730 * remote.c: Likewise.
731 * ser-base.c: Likewise.
732 * ser-pipe.c: Likewise.
733 * ser-tcp.c: Likewise.
734 * ser-unix.c: Likewise.
735 * symfile.c: Likewise.
736 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
737 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
738 * utils.c: Likewise.
739
40e0b271
PA
7402015-08-24 Pedro Alves <palves@redhat.com>
741
742 * NEWS: Mention removed support for the various ROM monitors.
743 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
744 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
745 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
746 gdb_target_obs.
747 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
748 gdb_target_obs.
749 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
750 dsrec.o from gdb_target_obs.
751 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
752 from gdb_target_obs.
753 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
754 gdb_target_obs.
755 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
756 dink32-rom.o from gdb_target_obs.
757 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
758 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
759 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
760 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
761
f8904751
PA
7622015-08-21 Pedro Alves <palves@redhat.com>
763
764 * frame.c (null_frame_id): Explicitly zero-initialize.
765
049412e3
TT
7662015-08-21 Tom Tromey <tromey@redhat.com>
767
768 * dwarf2read.c (struct dwarf2_section_info): Rename field
769 'asection' to 'section'.
770 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
771 (dwarf2_locate_sections, dwarf2_locate_sections)
772 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
773 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
774 (dwarf2_locate_v2_dwp_sections): Adjust.
775
948578a9
PP
7762015-08-21 Patrick Palka <patrick@parcs.ath.cx>
777
778 * top.h (gdb_in_secondary_prompt_p): Declare.
779 * top.c (gdb_secondary_prompt_depth): Define.
780 (gdb_in_secondary_prompt_p): Define.
781 (gdb_readline_wrapper_cleanup): Decrement
782 gdb_secondary_prompt_depth.
783 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
784 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
785 are in a secondary prompt.
786
7a8bcb88
PP
7872015-08-21 Patrick Palka <patrick@parcs.ath.cx>
788
789 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
790 emit the newline.
791
2d7711a3
GB
7922015-08-21 Gary Benson <gbenson@redhat.com>
793
794 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
795
4313b8c0
GB
7962015-08-21 Gary Benson <gbenson@redhat.com>
797
798 * target.h (struct target_ops) <to_fileio_open>: New argument
799 warn_if_slow. Update comment. All implementations updated.
800 (target_fileio_open_warn_if_slow): New declaration.
801 * target.c (target_fileio_open): Renamed as...
802 (target_fileio_open_1): ...this. New argument warn_if_slow.
803 Pass warn_if_slow to implementation. Update debug printing.
804 (target_fileio_open): New function.
805 (target_fileio_open_warn_if_slow): Likewise.
806 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
807 target_fileio_open_warn_if_slow.
808
f36b8719
GB
8092015-08-21 Gary Benson <gbenson@redhat.com>
810
811 * nat/linux-namespaces.c (linux_mntns_access_fs):
812 Do not overwrite old_chain.
813
40045d91
MF
8142015-08-20 Max Filippov <jcmvbkbc@gmail.com>
815
816 * arch/xtensa.h: New file.
817 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
818 (ps_get_thread_area): New function.
819 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
820 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
821 * xtensa-tdep.c (osabi.h): New #include.
822 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
823 xtensa-specific hooks.
824 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
825 member and move the structure to arch/xtensa.h.
826
80152258
PA
8272015-08-21 Pedro Alves <palves@redhat.com>
828
829 * remote.c (struct readahead_cache): New.
830 (struct remote_state) <readahead_cache>: New field.
831 (remote_open_1): Invalidate the cache.
832 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
833 functions.
834 (remote_hostio_pwrite): Invalidate the readahead cache.
835 (remote_hostio_pread): Rename to ...
836 (remote_hostio_pread_vFile): ... this.
837 (remote_hostio_pread_from_cache): New function.
838 (remote_hostio_pread): Reimplement.
839 (remote_hostio_close): Invalidate the readahead cache.
840
88fc5eb7
MC
8412015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
842
843 PR build/18843
844 * procfs.c: Include "filestuff.h".
845
6f1cb6ea
PP
8462015-08-21 Patrick Palka <patrick@parcs.ath.cx>
847
848 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
849 curch.
850 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
851 cur_line or curch, instead call wmove().
852 (init_win_info) [CMD_WIN]: Likewise.
853 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
854 instead call getcury().
855 (tui_redisplay_readline): Don't set cur_line or curch.
856 (tui_mld_erase_entire_line): Don't read cur_line, instead call
857 getcury().
858 (tui_cont_sig): Remove call to wmove.
859 (tui_getc): Don't read cur_line or curch, instead call getcury()
860 or getyx(). Don't set curch.
861 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
862 set cur_line or curch. Always move cursor to (0,0).
863
221e1a37
PA
8642015-08-20 Pedro Alves <palves@redhat.com>
865
866 * infrun.c (print_target_wait_results): Make extern.
867 * infrun.h (print_target_wait_results): Declare.
868 * remote.c (set_stop_requested_callback): Delete.
869 (process_initial_stop_replies): New function.
870 (remote_start_remote): Use it.
871 (stop_reply_queue_length): New function.
872
40e3ad0e
PA
8732015-08-20 Pedro Alves <palves@redhat.com>
874
875 * dwarf2read.c (process_full_comp_unit): To tell whether
876 start_subfile managed to deduce a language, test for
877 language_unknown instead of language_c.
878
af39b327
PMR
8792015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
880
881 * ada-lex.l: Reset the start condition to INITIAL in the rule that
882 matches attributes.
883
7d45c7c3
KB
8842015-08-19 Kevin Buettner <kevinb@redhat.com>
885
886 * dwarf2read.c (dwarf2_string_attr): New function.
887 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
888 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
889 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
890 (anonymous_struct_prefix, prepare_one_comp_unit): Use
891 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
892
4d6cceb4
DE
8932015-08-18 Doug Evans <dje@google.com>
894 Adrian Sendroiu <adrian.sendroiu@freescale.com>
895
896 PR mi/18833
897 * cli/cli-logging.c (pop_output_files): Don't restore redirection
898 if MI-like.
899 * mi/mi-out.c: #include "vec.h".
900 (ui_filep): New type.
901 (DEV_VEC_P (ui_filep)): New type.
902 (struct ui_out_data) <buffer, original_buffer>: Delete.
903 (struct ui_out_data) <streams>: New member.
904 (mi_ui_out_impl): Add data_destroy field.
905 (mi_field_string, mi_field_fmt): Update.
906 (mi_flush, mi_redirect, field_separator): Update.
907 (mi_open, mi_close): Update.
908 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
909 (mi_out_data_ctor, mi_out_data_dtor): New functions.
910 (mi_out_new): Call mi_out_data_ctor.
911
26d56a93
SL
9122015-08-18 Sandra Loosemore <sandra@codesourcery.com>
913
914 * remote.c (strprefix): New.
915 (remote_parse_stop_reply): Use strprefix instead of strncmp
916 to ensure exact match of keyword.
917
566f5e3b
AB
9182015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * gdb_bfd.c (debug_bfd_cache): New variable.
921 (show_bfd_cache_debug): New function.
922 (gdb_bfd_open): Add debug logging.
923 (gdb_bfd_ref): Likewise.
924 (gdb_bfd_unref): Likewise.
925 (_initialize_gdb_bfd): Add new set/show command.
926 * NEWS: Mention new command.
927
18989b3c
AB
9282015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
929
930 * gdb_bfd.c (bfd_sharing): New variable.
931 (show_bfd_sharing): New function.
932 (gdb_bfd_open): Check bfd_sharing variable.
933 (_initialize_gdb_bfd): Add new set/show command.
934 * NEWS: Mention new command.
935
c04fe68f
AB
9362015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
937
938 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
939 field.
940 (struct gdb_bfd_cache_search): Likewise.
941 (eq_bfd): Compare the size, inode, and device id fields.
942 (gdb_bfd_open): Initialise the size, inode, and device id fields.
943 (gdb_bfd_ref): Likewise.
944 (gdb_bfd_unref): Likewise.
945
b2a33439
PA
9462015-08-18 Pedro Alves <palves@redhat.com>
947
948 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
949 target implements to_always_non_stop_p, call it.
950 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
951 (x86_linux_create_target): Install it as to_always_non_stop_p
952 method.
953
71b57e37
DE
9542015-08-17 Doug Evans <dje@google.com>
955
956 * ui-out.c (default_ui_out_impl): Add comment.
957
7f3706eb
IB
9582015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
959
960 * d-exp.y (type_aggregate_p): New function.
961 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
962 (classify_inner_name): Likewise.
963 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
964
1762568f
DE
9652015-08-15 Doug Evans <xdje42@gmail.com>
966
967 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
968 updated.
969 (add_psymbol_to_list): Ditto.
970
8763cede
DE
9712015-08-15 Doug Evans <xdje42@gmail.com>
972
973 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
974 updated. Call end_psymtab_common.
975 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
976 end_psymtab_common.
977 (build_type_psymtabs_reader): Ditto.
978 * psympriv.h (sort_pst_symbols): Delete.
979 (end_psymtab_common): Declare.
980 * psymtab.c (sort_pst_symbols): Make static.
981 (end_psymtab_common): New function.
982 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
983
51cdc993
DE
9842015-08-15 Doug Evans <xdje42@gmail.com>
985
986 * defs.h (LANGUAGE_BITS): Define.
987 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
988 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
989 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
990 (minimal_symbol_type): Add nr_minsym_types.
991 (MINSYM_TYPE_BITS): Define.
992 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
993 (domain_enum_tag): Add NR_DOMAINS.
994 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
995 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
996
95cf5869
DE
9972015-08-15 Doug Evans <xdje42@gmail.com>
998
999 * objfiles.h: Whitespace cleanup.
1000 * psympriv.h: Whitespace cleanup.
1001 * psymtab.c: Whitespace/coding convention cleanup.
1002
e3ae3c43
PP
10032015-08-15 Patrick Palka <patrick@parcs.ath.cx>
1004
1005 * inferior.c (detach_inferior_command): Don't call
1006 any_thread_of_process when pid is 0.
1007 (kill_inferior_command): Likewise.
1008
6ff0ba5f
DE
10092015-08-14 Doug Evans <xdje42@gmail.com>
1010
1011 PR gdb/11833
1012 * NEWS: Document new /s modifier for the disassemble command.
1013 * cli/cli-cmds.c (disassemble_command): Add support for /s.
1014 (_initialize_cli_cmds): Update online docs of disassemble command.
1015 * disasm.c: #include "source.h".
1016 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
1017 All uses updated.
1018 (dis_line_entry): New struct.
1019 (hash_dis_line_entry, eq_dis_line_entry): New functions.
1020 (allocate_dis_line_table): New functions.
1021 (maybe_add_dis_line_entry, line_has_code_p): New functions.
1022 (dump_insns): New arg end_pc. All callers updated.
1023 (do_mixed_source_and_assembly_deprecated): Renamed from
1024 do_mixed_source_and_assembly. All callers updated.
1025 (do_mixed_source_and_assembly): New function.
1026 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
1027 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
1028 DISASSEMBLY_SOURCE. All uses updated.
1029 (DISASSEMBLY_SOURCE): New macro.
1030 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
1031
b56ccc20
KS
10322015-08-14 Keith Seitz <keiths@redhat.com>
1033
1034 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
1035 `typename' to `type_name' to avoid C++ reserved word.
1036
ebdad8fc
KS
10372015-08-14 Keith Seitz <keiths@redhat.com>
1038
1039 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
1040 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
1041 silence ARI errors.
1042
c0fe2ae7
IB
10432015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
1044
1045 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
1046 xstrprintf instead of malloc and sprintf.
1047 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
1048 (lex_one_token): Likewise.
1049
a738da3a
MF
10502015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1051
1052 * solib-svr4.c (read_program_header): Add base_addr argument to
1053 report the runtime address of the segment.
1054 (find_program_interpreter): Update read_program_header call to pass
1055 a NULL pointer for the new argument.
1056 (scan_dyntag): Add ptr_addr argument to report the runtime address
1057 of the tag payload.
1058 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
1059 read_program_header to get the base address of the dynamic segment.
1060 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
1061 read_program_header.
1062 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
1063
f8edc4ff
MF
10642015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1065
1066 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
1067
444c1ed8
IB
10682015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1069
1070 * d-exp.y (%union): Add voidval.
1071 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
1072 name in the lexing stage.
1073 (PostfixExpression): Move symbol completion handling in grammar here
1074 from PrimaryExpression.
1075 (PrimaryExpression): Move routines to handle resolving identifier
1076 tokens in the grammar here from push_expression_name.
1077 (IdentifierExp): Remove the handling of alternating '.' and identifier
1078 tokens.
1079 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
1080 (BasicType): Remove C-style typename rules.
1081 (d_type_from_name, d_module_from_name, push_variable)
1082 (push_fieldnames, push_type_name, push_module_name)
1083 (push_expression_name): Remove.
1084 (lex_one_token): Rename from yylex. Replace pstate with par_state.
1085 (token_and_value): New type.
1086 (token_fifo, popping, name_obstack): New globals.
1087 (classify_name): New function.
1088 (classify_inner_name): Likewise.
1089 (yylex): Likewise.
1090 (d_parse): Initialize token_fifo, popping and name_obstack.
1091
bc7c9fab
IB
10922015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1093
1094 * Makefile.in (SFILES): Add d-namespace.c.
1095 (COMMON_OBS): Add d-namespace.o.
1096 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
1097 la_lookup_symbol_nonlocal callback function pointer.
1098 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
1099 (d_lookup_nested_symbol): New declaration.
1100 * d-namespace.c: New file.
1101
3207396b
PA
11022015-08-13 Pedro Alves <palves@redhat.com>
1103
1104 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
1105 cleanup after the decref cleanup, not before.
1106
5d8c3ed3
PMR
11072015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
1108
1109 * ada-lang.c: Include namespace.h
1110 (aux_add_nonlocal_symbols): Fix a function name in comment.
1111 (ada_add_block_renamings): New.
1112 (add_nonlocal_symbols): Add global renamings handling.
1113 (ada_lookup_symbol_list_worker): Move the symbol lookup part
1114 to...
1115 (ada_add_all_symbols): ... this new function.
1116 (ada_add_block_symbols): Try to match the input name against the
1117 "using directives list", perform a recursive symbol lookup on
1118 the matched declarations.
1119 * block.h (struct block): Move the_namespace to top-level as
1120 namespace_info. Remove the language_specific field.
1121 (BLOCK_NAMESPACE): Update access to the namespace_info field.
1122 * buildsym.h (using_directives): Rename into...
1123 (local_using_directives): ... this.
1124 (global_using_directives): New.
1125 (struct context_stack): Rename the using_directives field into
1126 local_using_directives.
1127 * buildsym.c (finish_block_internal): Deal with the proper
1128 using directives repository (local or global).
1129 (prepare_for_building): Reset local_using_directives. Assert
1130 that there is no pending global using directive.
1131 (reset_symtab_globals): Reset global_using_directives and
1132 local_using_directives.
1133 (end_symtab_get_static_block): Don't ignore symtabs that have
1134 only using directives.
1135 (push_context): Update references to local_using_directives.
1136 (buildsym_init): Do not reset using_directives.
1137 * cp-support.c: Include namespace.h.
1138 * cp-support.h (struct using_direct): Move to namespace.h.
1139 (cp_add_using_directives): Move to namespace.h.
1140 * cp-namespace.c: Include namespace.h
1141 (cp_add_using_directive): Move to namespace.c, rename it to
1142 add_using_directive, add a "using_directives" argument and use
1143 it as the pending using directives repository. All callers
1144 updated.
1145 * dwarf2read.c (using_directives): New.
1146 (read_import_statement): Call using_directives.
1147 (read_func_scope): Update references to local_using_directives.
1148 (read_lexical_block_scope): Likewise.
1149 (read_namespace): Update the heading comment, call
1150 using_directives.
1151 * namespace.h: New file.
1152 * namespace.c: New file.
1153 * Makefile.in (SFILES): Add namespace.c.
1154 (COMMON_OBS): Add namespace.o
1155
4dafcdeb
JB
11562015-08-12 Joel Brobecker <brobecker@adacore.com>
1157
1158 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
1159 compute RETADDR.
1160
67994074
KS
11612015-08-12 Keith Seitz <keiths@redhat.com>
1162
1163 * break-catch-throw.c (re_set_exception_catchpoint) Rename
1164 reserved C++ keyword "explicit" to "explicit_loc".
1165 * breakpoint.c (create_overlay_event_breakpoint)
1166 (create_longjmp_master_breakpoint)
1167 (create_std_terminate_master_breakpoint)
1168 (create_exception_master_breakpoint, update_static_tracepoint):
1169 Rename reserved C++ keyword "explicit" to "explicit_loc".
1170 * completer.c (collect_explicit_location_matches)
1171 (explicit_location_completer): Rename reserved C++ keyword
1172 "explicit" to "explicit_loc".
1173 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
1174 (canonicalize_linespec, create_sals_line_offset)
1175 (convert_linespec_to_sals, convert_explicit_location_to_sals)
1176 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
1177 "explicit" to "explicit_loc".
1178 * location.c (struct event_location) <explicit>: Rename to
1179 "explicit_loc".
1180 (initialize_explicit_location, new_explicit_location)
1181 (explicit_location_to_string_internal, explicit_location_to_linespec):
1182 Rename reserved C++ keyword "explicit" to "explicit_loc".
1183 * location.h (explicit_location_to_string)
1184 (explicit_location_to_linespec, initialize_explicit_location)
1185 (new_explicit_location): Rename reserved C++ keyword "explicit"
1186 to "explicit_loc".
1187 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
1188 keyword "explicit" to "explicit_loc".
1189
59ecaff3
KS
11902015-08-12 Keith Seitz <keiths@redhat.com>
1191
1192 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
1193 and only call decode_line_1 when it is non-NULL.
1194
244558af
LM
11952015-08-12 Luis Machado <lgustavo@codesourcery.com>
1196
1197 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
1198 location address is not meaningful.
1199 (breakpoint_address_is_meaningful): Update comment.
1200
629500fa
KS
12012015-08-11 Keith Seitz <keiths@redhat.com>
1202
1203 * NEWS: Mention explicit locations.
1204 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
1205 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
1206 (_initialize_breakpoint): Update documentation for
1207 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
1208
eb8c4e2e
KS
12092015-08-11 Keith Seitz <keiths@redhat.com>
1210
1211 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
1212 explicit locations, options "--source", "--function",
1213 "--label", and "--line".
1214
87f0e720
KS
12152015-08-11 Keith Seitz <keiths@redhat.com>
1216
1217 * completer.c: Include location.h.
1218 (enum match_type): New enum.
1219 (location_completer): Rename to ...
1220 (linespec_completer): ... this.
1221 (collect_explicit_location_matches, backup_text_ptr)
1222 (explicit_location_completer): New functions.
1223 (location_completer): "New" function; handle linespec
1224 and explicit location completions.
1225 (complete_line_internal): Remove all location completer-specific
1226 handling.
1227 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
1228 (find_toplevel_char): Export.
1229 (linespec_parse_line_offset): Export.
1230 Issue error if STRING is not numerical.
1231 (gdb_get_linespec_parser_quote_characters): New function.
1232 * linespec.h (linespec_parse_line_offset): Declare.
1233 (get_gdb_linespec_parser_quote_characters): Declare.
1234 (is_ada_operator): Declare.
1235 (find_toplevel_char): Declare.
1236 (linespec_lexer_lex_keyword): Declare.
1237 * location.c (explicit_to_event_location): New function.
1238 (explicit_location_lex_one): New function.
1239 (string_to_explicit_location): New function.
1240 (string_to_event_location): Handle explicit locations.
1241 * location.h (explicit_to_event_location): Declare.
1242 (string_to_explicit_location): Declare.
1243
00e52e53
KS
12442015-08-11 Keith Seitz <keiths@redhat.com>
1245
1246 * break-catch-throw.c (re_set_exception_catchpoint): Convert
1247 linespec into explicit location.
1248 * breakpoint.c (create_overlay_breakpoint)
1249 (create_longjmp_master_breakpoint)
1250 (create_std_terminate_master_breakpoint)
1251 (create_exception_master_breakpoint): Convert linespec into explicit
1252 location.
1253 (update_static_tracepoint): Convert linespec into explicit location.
1254 * linespec.c (enum offset_relative_sign, struct line_offset): Move
1255 location.h.
1256 (struct linespec) <expression, expr_pc, source_filename>
1257 <function_name, label_name, line_offset>: Replace with ...
1258 <explicit>: ... this.
1259 <is_linespec>: New member.
1260 (PARSER_EXPLICIT): New accessor macro.
1261 (undefined_label_error): New function.
1262 (source_file_not_found_error): New function.
1263 (linespec_parse_basic): The parser result is now an explicit location.
1264 Use PARSER_EXPLICIT to access it.
1265 Use undefined_label_error.
1266 (canonicalize_linespec): Convert canonical linespec into explicit
1267 location.
1268 Move string representation of location to explicit_location_to_linespec
1269 and use it and explicit_location_to_string to save string
1270 representations of the canonical location.
1271 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
1272 explicit location. Update all references.
1273 (convert_explicit_location_to_sals): New function.
1274 (parse_linespec): Use PARSER_EXPLICIT to access the parser
1275 result's explicit location.
1276 (linespec_state_constructor): Initialize is_linespec.
1277 Use PARSER_EXPLICIT.
1278 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
1279 result.
1280 (event_location_to_sals): For linespec locations, set is_linespec.
1281 Handle explicit locations.
1282 (decode_objc): 'ls' contains an explicit location now. Update all
1283 references.
1284 (symtabs_from_filename): Use source_file_not_found_error.
1285 * location.c (struct event_location.u) <explicit>: New member.
1286 (initialize_explicit_location): New function.
1287 (initialize_event_location): Initialize explicit locations.
1288 (new_explicit_location, get_explicit_location)
1289 (get_explicit_location_const): New functions.
1290 (explicit_to_string_internal): New function; most of contents moved
1291 from canonicalize_linespec.
1292 (explicit_location_to_string): New function.
1293 (explicit_location_to_linespec): New function.
1294 (copy_event_location, delete_event_location)
1295 (event_location_to_string_const, event_location_empty_p): Handle
1296 explicit locations.
1297 * location.h (enum offset_relative_sign, struct line_offset): Move
1298 here from linespec.h.
1299 (enum event_location_type): Add EXPLICIT_LOCATION.
1300 (struct explicit_location): New structure.
1301 (explicit_location_to_string): Declare.
1302 (explicit_location_to_linespec): Declare.
1303 (new_explicit_location, get_explicit_locationp
1304 (get_explicit_location_const, initialize_explicit_location): Declare.
1305
5b56227b
KS
13062015-08-11 Keith Seitz <keiths@redhat.com>
1307
1308 * break-catch-throw.c (re_set_exception_catchpoint): Convert
1309 linespec for stap probe to probe location.
1310 * breakpoint.c (create_longjmp_master_breakpoint)
1311 (create_exception_master_breakpoint): Likewise.
1312 (break_command_1): Remove local variable `arg_cp'.
1313 Check location type to set appropriate breakpoint ops methods.
1314 (trace_command): Likewise.
1315 * linespec.c (event_location_to_sals): Assert on probe locations.
1316 * location.c (EL_PROBE): Add macro definition.
1317 (new_probe_location, get_probe_location): New functions.
1318 (copy_event_location, delete_event_location, event_location_to_string)
1319 (string_to_event_location, event_location_empty_p): Handle probe
1320 locations.
1321 * location.h (enum event_location_type): Add PROBE_LOCATION.
1322 (new_probe_location, get_probe_location): Declare.
1323 * probe.c (parse_probes): Assert that LOCATION is a probe location.
1324 Convert linespec into probe location.
1325
a06efdd6
KS
13262015-08-11 Keith Seitz <keiths@redhat.com>
1327
1328 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
1329 Convert linespec to address location.
1330 * linespec.c (canonicalize_linespec): Do not handle address
1331 locations here.
1332 (convert_address_location_to_sals): New function; contents moved
1333 from ...
1334 (convert_linespc_to_sals): ... here.
1335 (parse_linespec): Remove address locations from linespec grammar.
1336 Remove handling of address locations.
1337 (linespec_lex_to_end): Remove handling of address linespecs.
1338 (event_location_to_sals): Handle ADDRESS_LOCATION.
1339 (linespec_expression_to_pc): Export.
1340 * linespec.h (linespec_expression_to_pc): Add declaration.
1341 * location.c (struct event_location.u) <address>: New member.
1342 (new_address_location, get_address_location): New functions.
1343 (copy_event_location, delete_event_location, event_location_to_string)
1344 (string_to_event_location, event_location_empty_p): Handle address
1345 locations.
1346 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
1347 (new_address_location, get_address_location): Declare.
1348 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
1349 to address location.
1350 * spu-tdep.c (spu_catch_start): Likewise.
1351
f00aae0f
KS
13522015-08-11 Keith Seitz <keiths@redhat.com>
1353
1354 * ax-gdb.c: Include location.h.
1355 (agent_command_1) Use linespec location instead of address
1356 string.
1357 * break-catch-throw.c: Include location.h.
1358 (re_set_exception_catchpoint): Use linespec locations instead
1359 of address strings.
1360 * breakpoint.c: Include location.h.
1361 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
1362 (create_std_terminate_master_breakpoint)
1363 (create_exception_master_breakpoint, update_breakpoints_after_exec):
1364 Use linespec location instead of address string.
1365 (print_breakpoint_location): Use locations and
1366 event_location_to_string.
1367 Print extra_string for pending locations for non-MI streams.
1368 (print_one_breakpoint_location): Use locations and
1369 event_location_to_string.
1370 (init_raw_breakpoint_without_location): Initialize b->location.
1371 (create_thread_event_breakpoint): Use linespec location instead of
1372 address string.
1373 (init_breakpoint_sal): Likewise.
1374 Only save extra_string if it is non-NULL and not the empty string.
1375 Use event_location_to_string instead of `addr_string'.
1376 Constify `p' and `endp'.
1377 Use skip_spaces_const/skip_space_const instead of non-const versions.
1378 Copy the location into the breakpoint.
1379 If LOCATION is NULL, save the breakpoint address as a linespec location
1380 instead of an address string.
1381 (create_breakpoint_sal): Change `addr_string' parameter to a struct
1382 event_location. All uses updated.
1383 (create_breakpoints_sal): Likewise for local variable `addr_string'.
1384 (parse_breakpoint_sals): Use locations instead of address strings.
1385 Remove check for empty linespec with conditional.
1386 Refactor.
1387 (decode_static_tracepoint_spec): Make argument const and update
1388 function.
1389 (create_breakpoint): Change `arg' to a struct event_location and
1390 rename.
1391 Remove `copy_arg' and `addr_start'.
1392 If EXTRA_STRING is empty, set it to NULL.
1393 Don't populate `canonical' for pending breakpoints.
1394 Pass `extra_string' to find_condition_and_thread.
1395 Clear `extra_string' if `rest' was NULL.
1396 Do not error with "garbage after location" if setting a dprintf
1397 breakpoint.
1398 Copy the location into the breakpoint instead of an address string.
1399 (break_command_1): Use string_to_event_location and pass this to
1400 create_breakpoint instead of an address string.
1401 Check against `arg_cp' for a probe linespec.
1402 (dprintf_command): Use string_to_event_location and pass this to
1403 create_breakpoint instead of an address string.
1404 Throw an exception if no format string was specified.
1405 (print_recreate_ranged_breakpoint): Use event_location_to_string
1406 instead of address strings.
1407 (break_range_command, until_break_command)
1408 (init_ada_exception_breakpoint): Use locations instead
1409 of address strings.
1410 (say_where): Print out extra_string for pending locations.
1411 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
1412 the breakpoint.
1413 (base_breakpoint_create_sals_from_location): Use struct event_location
1414 instead of address string.
1415 Remove `addr_start' and `copy_arg' parameters.
1416 (base_breakpoint_decode_location): Use struct event_location instead of
1417 address string.
1418 (bkpt_re_set): Use locations instead of address strings.
1419 Use event_location_empty_p to check for unset location.
1420 (bkpt_print_recreate): Use event_location_to_string instead of
1421 an address string.
1422 Print out extra_string for pending locations.
1423 (bkpt_create_sals_from_location, bkpt_decode_location)
1424 (bkpt_probe_create_sals_from_location): Use struct event_location
1425 instead of address string.
1426 (bkpt_probe_decode_location): Use struct event_location instead of
1427 address string.
1428 (tracepoint_print_recreate): Use event_location_to_string to
1429 recreate the tracepoint.
1430 (tracepoint_create_sals_from_location, tracepoint_decode_location)
1431 (tracepoint_probe_create_sals_from_location)
1432 (tracepoint_probe_decode_location): Use struct event_location
1433 instead of address string.
1434 (dprintf_print_recreate): Use event_location_to_string to recreate
1435 the dprintf.
1436 (dprintf_re_set): Remove check for valid/missing format string.
1437 (strace_marker_create_sals_from_location)
1438 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
1439 (update_static_tracepoint): Use struct event_location instead of
1440 address string.
1441 (location_to_sals): Likewise.
1442 Pass `extra_string' to find_condition_and_thread.
1443 For newly resolved pending breakpoint locations, clear the location's
1444 string representation.
1445 Assert that the breakpoint's condition string is NULL when
1446 condition_not_parsed.
1447 (breakpoint_re_set_default, create_sals_from_location_default)
1448 (decode_location_default, trace_command, ftrace_command)
1449 (strace_command, create_tracepoint_from_upload): Use locations
1450 instead of address strings.
1451 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
1452 Use struct event_location instead of address string.
1453 Update all uses.
1454 <decode_location>: Likewise.
1455 (struct breakpoint) <addr_string>: Change to struct event_location
1456 and rename `location'.
1457 <addr_string_range_end>: Change to struct event_location and rename
1458 `location_range_end'.
1459 (create_breakpoint): Use struct event_location instead of address
1460 string.
1461 * cli/cli-cmds.c: Include location.h.
1462 (edit_command, list_command): Use locations instead of address strings.
1463 * elfread.c: Include location.h.
1464 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
1465 * guile/scm-breakpoint.c: Include location.h.
1466 (bpscm_print_breakpoint_smob): Use event_location_to_string.
1467 (gdbscm_register_breakpoint): Use locations instead of address
1468 strings.
1469 * linespec.c: Include location.h.
1470 (struct ls_parser) <stream>: Change to const char *.
1471 (PARSER_STREAM): Update.
1472 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
1473 keywords must be followed by whitespace.
1474 (canonicalize_linespec): Save a linespec location into `canonical'.
1475 Save a canonical linespec into `canonical'.
1476 (parse_linespec): Change `argptr' to const char * and rename `arg'.
1477 All uses updated.
1478 Update function description.
1479 (linespec_parser_new): Initialize `parser'.
1480 Update initialization of parsing stream.
1481 (event_location_to_sals): New function.
1482 (decode_line_full): Change `argptr' to a struct event_location and
1483 rename it `location'.
1484 Use locations instead of address strings.
1485 Call event_location_to_sals instead of parse_linespec.
1486 (decode_line_1): Likewise.
1487 (decode_line_with_current_source, decode_line_with_last_displayed)
1488 Use locations instead of address strings.
1489 (decode_objc): Likewise.
1490 Change `argptr' to const char * and rename `arg'.
1491 (destroy_linespec_result): Delete the linespec result's location
1492 instead of freeing the address string.
1493 * linespec.h (struct linespec_result) <addr_string>: Change to
1494 struct event_location and rename to ...
1495 <location>: ... this.
1496 (decode_line_1, decode_line_full): Change `argptr' to struct
1497 event_location. All callers updated.
1498 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
1499 (mi_cmd_break_insert_1): Use locations instead of address strings.
1500 Throw an error if there was "garbage" at the end of the specified
1501 linespec.
1502 * probe.c: Include location.h.
1503 (parse_probes): Change `argptr' to struct event_location.
1504 Use event locations instead of address strings.
1505 * probe.h (parse_probes): Change `argptr' to struct event_location.
1506 * python/py-breakpoint.c: Include location.h.
1507 (bppy_get_location): Constify local variable `str'.
1508 Use event_location_to_string.
1509 (bppy_init): Use locations instead of address strings.
1510 * python/py-finishbreakpoint.c: Include location.h.
1511 (bpfinishpy_init): Remove local variable `addr_str'.
1512 Use locations instead of address strings.
1513 * python/python.c: Include location.h.
1514 (gdbpy_decode_line): Use locations instead of address strings.
1515 * remote.c: Include location.h.
1516 (remote_download_tracepoint): Use locations instead of address
1517 strings.
1518 * spu-tdep.c: Include location.h.
1519 (spu_catch_start): Remove local variable `buf'.
1520 Use locations instead of address strings.
1521 * tracepoint.c: Include location.h.
1522 (scope_info): Use locations instead of address strings.
1523 (encode_source_string): Constify parameter `src'.
1524 * tracepoint.h (encode_source_string): Likewise.
1525
c7c1b3e9
KS
15262015-08-11 Keith Seitz <keiths@redhat.com>
1527
1528 * Makefile.in (SFILES): Add location.c.
1529 (HFILES_NO_SRCDIR): Add location.h.
1530 (COMMON_OBS): Add location.o.
1531 * linespec.c (linespec_lex_to_end): New function.
1532 * linespec.h (linespec_lex_to_end): Declare.
1533 * location.c: New file.
1534 * location.h: New file.
1535
5f700d83
KS
15362015-08-11 Keith Seitz <keiths@redhat.com>
1537
1538 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
1539 Renamed to create_sals_from_location.
1540 <decode_linespec>: Renamed to decode_location.
1541 Update all callers.
1542 * breakpoint.c (create_sals_from_address_default): Renamed to ...
1543 (create_sals_from_location_default): ... this.
1544 (addr_string_to_sals): Renamed to ...
1545 (location_to_sals): ... this.
1546 (decode_linespec_default): Renamed to ...
1547 (decode_location_default): ... this.
1548 (base_breakpoint_create_sals_from_address): Renamed to ...
1549 (base_breakpoint_create_sals_from_location): ... this.
1550 (bkpt_create_sals_from_address): Renamed to ...
1551 (bkpt_create_sals_from_location): ... this.
1552 (bkpt_decode_linespec): Renamed to ...
1553 (bkpt_decode_location): ... this.
1554 (bkpt_probe_create_sals_from_address): Renamed to ...
1555 (bkpt_probe_create_sals_from_location): ... this.
1556 (tracepoint_create_sals_from_address): Renamed to ...
1557 (tracepoint_create_sals_from_location): ... this.
1558 (tracepoint_decode_linespec): Renamed to ...
1559 (tracepoint_decode_location): ... this.
1560 (tracepoint_probe_create_sals_from_address): Renamed to ...
1561 (tracepoint_probe_create_sals_from_location): ... this.
1562 (tracepoint_probe_decode_linespec): Renamed to ...
1563 (tracepoint_probe_decode_location): ... this.
1564 (strace_marker_create_sals_from_address): Renamed to ...
1565 (strace_marker_create_sals_from_location): ... this.
1566 (decode_linespec_default): Renamed to ...
1567 (decode_location_default): ... this.
1568
e27852be
DE
15692015-08-10 Doug Evans <dje@google.com>
1570 Keith Seitz <keiths@redhat.com>
1571
1572 PR gdb/17960
1573 * symtab.c (make_file_symbol_completion_list_1): Renamed from
1574 make_file_symbol_completion_list and made static.
1575 (make_file_symbol_completion_list): New function.
80af41e0 1576
fd7dcb94
JB
15772015-08-10 Joel Brobecker <brobecker@adacore.com>
1578
1579 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
1580 trailing new-line at end of warning message.
1581 (proceed): Add i18n marker to error messages.
1582
f12899e9
PA
15832015-08-07 Pedro Alves <palves@redhat.com>
1584
1585 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
1586
5ac21343
PA
15872015-08-07 Pedro Alves <palves@redhat.com>
1588
1589 * s390-linux-tdep.c (is_non_branch_ril)
1590 (s390_displaced_step_copy_insn): New functions.
1591 (s390_displaced_step_fixup): Update comment.
1592 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
1593 gdbarch_displaced_step_copy_insn hook.
1594
7f03bd92
PA
15952015-08-07 Pedro Alves <palves@redhat.com>
1596
1597 * infrun.c (displaced_step_prepare_throw): Return -1 if
1598 gdbarch_displaced_step_copy_insn returns NULL. Update intro
1599 comment.
1600 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
1601 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
1602 in file.
1603 (ppc_displaced_step_copy_insn): New function.
1604 (ppc_displaced_step_fixup): Update comment.
1605 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
1606 gdbarch_displaced_step_copy_insn hook.
1607 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
1608 NULL return.
1609 * gdbarch.h: Regenerate.
1610
3fc8eb30
PA
16112015-08-07 Pedro Alves <palves@redhat.com>
1612
1613 * inferior.h (struct inferior) <displaced_stepping_failed>: New
1614 field.
1615 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
1616 Return false if dispaced stepping failed before.
1617 (resume): Pass the current inferior to
1618 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
1619 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
1620 displaced_stepping_failed flag, and fall back to an in-line
1621 step-over.
1622
bfedc46a
PA
16232015-08-07 Pedro Alves <palves@redhat.com>
1624
1625 * darwin-nat.c (darwin_stop): Rename to ...
1626 (darwin_interrupt): ... this.
1627 (_initialize_darwin_inferior): Adjust.
1628 * gnu-nat.c (gnu_stop): Delete.
1629 (gnu_target): Don't install gnu_stop.
1630 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
1631 (inf_ptrace_interrupt): ... this.
1632 (inf_ptrace_target): Adjust.
1633 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
1634 target_stop.
1635 * linux-nat (linux_nat_stop): Rename to ...
1636 (linux_nat_interrupt): ... this.
1637 (linux_nat_stop): Reimplement.
1638 (linux_nat_add_target): Install linux_nat_interrupt.
1639 * nto-procfs.c (nto_interrupt_twice): Rename to ...
1640 (nto_handle_sigint_twice): ... this.
1641 (nto_interrupt): Rename to ...
1642 (nto_handle_sigint): ... this. Call target_interrupt instead of
1643 target_stop.
1644 (procfs_wait): Adjust.
1645 (procfs_stop): Rename to ...
1646 (procfs_interrupt): ... this.
1647 (init_procfs_targets): Adjust.
1648 * procfs.c (procfs_stop): Rename to ...
1649 (procfs_interrupt): ... this.
1650 (procfs_target): Adjust.
1651 * remote-m32r-sdi.c (m32r_stop): Rename to ...
1652 (m32r_interrupt): ... this.
1653 (init_m32r_ops): Adjust.
1654 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
1655 (gdbsim_interrupt_inferior): ... this.
1656 (gdbsim_stop): Rename to ...
1657 (gdbsim_interrupt): ... this.
1658 (gdbsim_cntrl_c): Adjust.
1659 (init_gdbsim_ops): Adjust.
1660 * remote.c (sync_remote_interrupt): Adjust comments.
1661 (remote_stop_as): Rename to ...
1662 (remote_interrupt_as): ... this.
1663 (remote_stop): Adjust comment.
1664 (remote_interrupt): New function.
1665 (init_remote_ops): Install remote_interrupt.
1666 * target.c (target_interrupt): New function.
1667 * target.h (struct target_ops) <to_interrupt>: New field.
1668 (target_interrupt): New declaration.
1669 * windows-nat.c (windows_stop): Rename to ...
1670 (windows_interrupt): ... this.
1671 * target-delegates.c: Regenerate.
1672
d55007b5
PA
16732015-08-07 Pedro Alves <palves@redhat.com>
1674
1675 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
1676 threads" as alternative to "switching back to stepped thread".
1677
fbea99ea
PA
16782015-08-07 Pedro Alves <palves@redhat.com>
1679
1680 * NEWS: Mention "maint set/show target-non-stop".
1681 * breakpoint.c (update_global_location_list): Check
1682 target_is_non_stop_p instead of non_stop.
1683 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
1684 * infrun.c (show_can_use_displaced_stepping)
1685 (can_use_displaced_stepping_p, start_step_over_inferior):
1686 Likewise.
1687 (internal_resume_ptid): New function.
1688 (resume): Use it.
1689 (proceed): Check target_is_non_stop_p instead of non_stop. If in
1690 all-stop mode but the target is always in non-stop mode, start all
1691 the other threads that are implicitly resumed too.
1692 (for_each_just_stopped_thread, fetch_inferior_event)
1693 (adjust_pc_after_break, stop_all_threads): Check
1694 target_is_non_stop_p instead of non_stop.
1695 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
1696 with the target always in non-stop mode.
1697 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
1698 instead of non_stop.
1699 (switch_back_to_stepped_thread): Check target_is_non_stop_p
1700 instead of non_stop.
1701 (keep_going_stepped_thread): Use internal_resume_ptid.
1702 (stop_waiting): If in all-stop mode, and the target is in non-stop
1703 mode, stop all threads.
1704 (keep_going_pass): Likewise, when starting a new in-line step-over
1705 sequence.
1706 * linux-nat.c (get_pending_status, select_event_lwp)
1707 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
1708 target_is_non_stop_p instead of non_stop.
1709 (linux_nat_always_non_stop_p): New function.
1710 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
1711 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
1712 * target-delegates.c: Regenerate.
1713 * target.c (target_is_non_stop_p): New function.
1714 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
1715 (maint_set_target_non_stop_command)
1716 (maint_show_target_non_stop_command): New functions.
1717 (_initilize_target): Install "maint set/show target-non-stop"
1718 commands.
1719 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
1720 (target_non_stop_enabled): New declaration.
1721 (target_is_non_stop_p): New declaration.
1722
372316f1
PA
17232015-08-07 Pedro Alves <pedro@codesourcery.com>
1724
1725 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
1726 has a pending status, return true.
1727 * gdbthread.h: Include target/waitstatus.h.
1728 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
1729 stop_pc>: New fields.
1730 (struct thread_info) <resumed>: New field.
1731 (set_resumed): Declare.
1732 * infrun.c: Include "event-loop.h".
1733 (infrun_async_inferior_event_token, infrun_is_async): New globals.
1734 (infrun_async): New function.
1735 (clear_step_over_info): Add debug output.
1736 (displaced_step_in_progress_any_inferior): New function.
1737 (displaced_step_fixup): New returns int.
1738 (start_step_over): Handle in-line step-overs too. Assert the
1739 thread is marked resumed.
1740 (resume_cleanups): Clear the thread's resumed flag.
1741 (resume): Set the thread's resumed flag. Return early if the
1742 thread has a pending status. Allow stepping a breakpoint with no
1743 signal.
1744 (proceed): Adjust to check 'resumed' instead of 'executing'.
1745 (clear_proceed_status_thread): If the thread has a pending status,
1746 and that status is a finished step, discard the pending status.
1747 (clear_proceed_status): Don't clear step_over_info here.
1748 (random_pending_event_thread, do_target_wait): New functions.
1749 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
1750 do_target_wait.
1751 (wait_one): New function.
1752 (THREAD_STOPPED_BY): New macro.
1753 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1754 (thread_stopped_by_hw_breakpoint): New functions.
1755 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
1756 functions.
1757 (handle_inferior_event): Also call set_resumed(false) on all
1758 threads implicitly stopped by the event.
1759 (restart_threads, resumed_thread_with_pending_status): New
1760 functions.
1761 (finish_step_over): If we were doing an in-line step-over before,
1762 and no longer are after trying to start a new step-over, restart
1763 all threads. If we have multiple threads with pending events,
1764 save the current event and go through the event loop again.
1765 (handle_signal_stop): Return early if finish_step_over returns
1766 false.
1767 <random signal>: If we get a signal while stepping over a
1768 breakpoint in-line in non-stop mode, restart all threads. Clear
1769 step_over_info before delivering the signal.
1770 (keep_going_stepped_thread): Use internal_error instead of
1771 gdb_assert. Mark the thread as resumed.
1772 (keep_going_pass_signal): Assert the thread isn't already resumed.
1773 If some other thread is doing an in-line step-over, defer the
1774 resume. If we just started a new in-line step-over, stop all
1775 threads. Don't clear step_over_info.
1776 (infrun_async_inferior_event_handler): New function.
1777 (_initialize_infrun): Create async event handler with
1778 infrun_async_inferior_event_handler as callback.
1779 (infrun_async): New declaration.
1780 * target.c (target_async): New function.
1781 * target.h (target_async): Declare macro and readd as function
1782 declaration.
1783 * target/waitstatus.h (enum target_stop_reason)
1784 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
1785 * thread.c (new_thread): Clear the new waitstatus field.
1786 (set_resumed): New function.
1787
2ac7589c
PA
17882015-08-07 Pedro Alves <palves@redhat.com>
1789
1790 * infrun.c (keep_going_stepped_thread): New function, factored out
1791 from ...
1792 (switch_back_to_stepped_thread): ... here.
1793
8b061563
PA
17942015-08-07 Pedro Alves <palves@redhat.com>
1795
1796 * infrun.c (currently_stepping): Extend intro comment.
1797 * target.h (target_resume): Extend intro comment.
1798
1afd5965
PA
17992015-08-07 Pedro Alves <palves@redhat.com>
1800
1801 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
1802 of inferior_ptid. If the stepped thread vanished, return 0
1803 instead of resuming here. Use reset_ecs. Print the prev_pc and
1804 the current stop_pc in log message. Clear trap_expected if the
1805 thread advanced. Don't pass currently_stepping to
1806 do_target_resume.
1807
4d9d9d04
PA
18082015-08-07 Pedro Alves <palves@redhat.com>
1809
1810 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
1811 * infrun.c (struct execution_control_state): Move higher up in the
1812 file.
1813 (reset_ecs): New function.
1814 (start_step_over): Now returns int. Rewrite to use
1815 keep_going_pass_signal instead of manually starting a displaced step.
1816 (resume): Don't call set_running here. If displaced stepping
1817 can't start now, clear trap_expected.
1818 (find_thread_needs_step_over): Delete function.
1819 (proceed): Set up finish_thread_state_cleanup. Call set_running.
1820 If the current thread needs a step over, push it in the step-over
1821 chain. Don't set insert breakpoints nor call resume directly
1822 here. Instead rewrite to use start_step_over and
1823 keep_going_pass_signal.
1824 (finish_step_over): New function.
1825 (handle_signal_stop): Call finish_step_over instead of
1826 start_step_over.
1827 (switch_back_to_stepped_thread): If the event thread needs another
1828 step-over do that first. Use start_step_over.
1829 (keep_going_pass_signal): New function, factored out from ...
1830 (keep_going): ... here.
1831 (_initialize_infrun): Comment moved here.
1832 * thread.c (set_running_thread): New function.
1833 (set_running, finish_thread_state): Use set_running_thread.
1834
c2829269
PA
18352015-08-07 Pedro Alves <palves@redhat.com>
1836
1837 * gdbthread.h (struct thread_info) <step_over_prev,
1838 step_over_next>: New fields.
1839 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
1840 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
1841 declarations.
1842 * infrun.c (struct displaced_step_request): Delete.
1843 (struct displaced_step_inferior_state) <step_request_queue>:
1844 Delete field.
1845 (displaced_step_prepare): Assert that trap_expected is set. Use
1846 thread_step_over_chain_enqueue. Split starting a new displaced
1847 step to ...
1848 (start_step_over): ... this new function.
1849 (resume): Assert the thread isn't waiting for a step over already.
1850 (proceed): Assert the thread isn't waiting for a step over
1851 already.
1852 (infrun_thread_stop_requested): Adjust to remove threads from the
1853 embedded step-over chain.
1854 (handle_inferior_event) <fork/vfork>: Call start_step_over after
1855 displaced_step_fixup.
1856 (handle_signal_stop): Call start_step_over after
1857 displaced_step_fixup.
1858 * infrun.h (step_over_queue_head): New declaration.
1859 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
1860 (thread_step_over_chain_next, thread_is_in_step_over_chain)
1861 (thread_step_over_chain_enqueue)
1862 (thread_step_over_chain_remove): New functions.
1863 (delete_thread_1): Remove thread from the step-over chain.
1864
6c4cfb24
PA
18652015-08-07 Pedro Alves <palves@redhat.com>
1866
1867 * infrun.c (thread_still_needs_step_over): Rename to ...
1868 (thread_still_needs_step_over_bp): ... this.
1869 (enum step_over_what): New.
1870 (thread_still_needs_step_over): Reimplement.
1871
567420d1
PA
18722015-08-07 Pedro Alves <palves@redhat.com>
1873
1874 * remote.c (remote_wait_as): If not waiting for a stop reply,
1875 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
1876 requested, don't block waiting forever.
1877
d8dd4d5f
PA
18782015-08-07 Pedro Alves <pedro@codesourcery.com>
1879
1880 * infrun.c (adjust_pc_after_break): Now takes thread_info and
1881 waitstatus pointers instead of an ecs. Adjust.
1882 (handle_inferior_event): Adjust caller.
1883
e1316e60
PA
18842015-08-07 Pedro Alves <palves@redhat.com>
1885
1886 * infrun.c (handle_inferior_event): If we get
1887 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
1888 mode, mark all threads of the exiting process as not-executing.
1889 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
1890 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
1891 exiting process, if inferior_ptid still points at a process.
1892 * thread.c (struct current_thread_cleanup) <next>: New field.
1893 (current_thread_cleanup_chain): New global.
1894 (restore_current_thread_ptid_changed): New function.
1895 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
1896 current_thread_cleanup_chain list.
1897 (make_cleanup_restore_current_thread): Add the cleanup data to the
1898 current_thread_cleanup_chain list.
1899 (_initialize_thread): Install restore_current_thread_ptid_changed
1900 as thread_ptid_changed observer.
1901
47e9c225
JB
19022015-08-07 Joel Brobecker <brobecker@adacore.com>
1903
1904 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
1905 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
1906 smaller than expected.
1907
06096720
AB
19082015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
1909
1910 * stack.c (get_frame_language): Moved ...
1911 * frame.c (get_frame_language): ... to here.
1912 * language.h (get_frame_language): Declaration moved to frame.h.
1913 * frame.h: Add language.h include, for language enum.
1914 (get_frame_language): Declaration moved from language.h.
1915 * language.c: Add frame.h include.
1916 * top.c: Add frame.h include.
1917 * symtab.h (struct obj_section): Declare.
1918 (struct cmd_list_element): Declare.
1919
7ff38b1c
AB
19202015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
1921
1922 * language.c (show_language_command): Find selected frame before
1923 asking for the language of that frame.
1924 (set_language_command): Likewise.
1925 * language.h (get_frame_language): Add frame parameter.
1926 * stack.c (get_frame_language): Add frame parameter, assert
1927 parameter is not NULL, update comment and reindent.
1928 * top.c (check_frame_language_change): Pass the selected frame
1929 into get_frame_language.
1930
da8c46d2
MM
19312015-08-07 Markus Metzger <markus.t.metzger@intel.com>
1932
1933 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
1934 (pt_btrace_insn_flags): New.
1935 (ftrace_add_pt): Call pt_btrace_insn_flags.
1936 * btrace.h (btrace_insn_flag): New.
1937 (btrace_insn) <flags>: New.
1938 * record-btrace.c (btrace_insn_history): Print insn prefix.
1939 * NEWS: Announce it.
1940
5599c404
MM
19412015-08-07 Markus Metzger <markus.t.metzger@intel.com>
1942
1943 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
1944 * configure: Regenerate.
1945
016a3251
DD
19462015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
1947
1948 * Makefile.in (LIBICONV): Define.
1949 (CLIBS): Add LIBICONV.
1950 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
1951 * configure: Regenerate.
1952
aead7601
SM
19532015-08-06 Simon Marchi <simon.marchi@ericsson.com>
1954 Pedro Alves <palves@redhat.com>
1955
1956 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
1957 (arm_set_abi): Likewise.
1958 * ax-general.c (ax_print): Likewise.
1959 * c-exp.y (exp : string_exp): Likewise.
1960 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
1961 (do_compile_dwarf_expr_to_c): Likewise.
1962 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
1963 Likewise.
1964 * dwarf2expr.c (execute_stack_op): Likewise.
1965 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
1966 (disassemble_dwarf_expression): Likewise.
1967 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
1968 (read_array_order): Likewise.
1969 (abbrev_table_read_table): Likewise.
1970 (read_attribute_value): Likewise.
1971 (skip_unknown_opcode): Likewise.
1972 (dwarf_decode_macro_bytes): Likewise.
1973 (dwarf_decode_macros): Likewise.
1974 * eval.c (value_f90_subarray): Likewise.
1975 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
1976 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
1977 * infrun.c (handle_command): Likewise.
1978 * memory-map.c (memory_map_start_memory): Likewise.
1979 * osabi.c (set_osabi): Likewise.
1980 * parse.c (operator_length_standard): Likewise.
1981 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
1982 single return point.
1983 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1984 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1985 (gdbpy_lookup_global_symbol): Likewise.
1986 * record-full.c (record_full_restore): Likewise.
1987 * regcache.c (regcache_register_status): Likewise.
1988 (regcache_raw_read): Likewise.
1989 (regcache_cooked_read): Likewise.
1990 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
1991 * symtab.c (initialize_ordinary_address_classes): Likewise.
1992 * target-debug.h (target_debug_print_signals): Likewise.
1993 * utils.c (do_restore_current_language): Likewise.
1994
ca0a5f0b
CD
19952015-08-06 Clem Dickey <clemd@acm.org>
1996
1997 PR python/17136
1998 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
1999
05d999b0
SM
20002015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2001
2002 * complaints.c (enum complaint_series): Add newlines and remove
2003 out of date comment.
2004 (struct complaints) <series>: Change type to enum
2005 complaint_series and remove out of date comment.
2006 (symfile_complaint_hook): Use equivalent enum value
2007 ISOLATED_MESSAGE instead of 0.
2008
bf47e248
PA
20092015-08-06 Pedro Alves <palves@redhat.com>
2010
2011 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2012 returned > 0.
2013
b6b9ffcc
PL
20142015-08-06 Pierre Langlois <pierre.langlois@arm.com>
2015
2016 * common/agent.c (symbol_list) <required>: Remove.
2017
863d01bd
PA
20182015-08-06 Pedro Alves <palves@redhat.com>
2019
2020 * target/waitstatus.h (enum target_stop_reason)
2021 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2022
0a39bb32
PA
20232015-08-05 Pedro Alves <palves@redhat.com>
2024 Joel Brobecker <brobecker@adacore.com>
2025
9d996aba 2026 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
0a39bb32
PA
2027 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
2028 case where BS->STOP is not set.
2029
260439cb
UW
20302015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
2031
2032 * nat/gdb_thread_db.h: Add copyright header.
2033 Protect against multiple inclusion.
2034
d89fa914
YQ
20352015-08-05 Yao Qi <yao.qi@linaro.org>
2036
2037 * aarch64-linux-nat.c (get_thread_id): Remove.
2038 (debug_reg_change_callback): Call ptid_get_lwp instead of
2039 get_thread_id.
2040 (fetch_gregs_from_thread): Likewise.
2041 (store_gregs_to_thread): Likewise.
2042 (fetch_fpregs_from_thread): Likewise.
2043 (store_fpregs_to_thread): Likewise.
2044 (aarch64_linux_get_debug_reg_capacity): Likewise.
2045 * arm-linux-nat.c (get_thread_id): Remove.
2046 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2047 * xtensa-linux-nat.c (get_thread_id): Remove.
2048 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2049 * arm-linux-nat.c (get_thread_id): Remove.
2050 (GET_THREAD_ID): Remove.
2051 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
2052 (store_fpregs, fetch_regs, store_regs): Likewise.
2053 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2054 (fetch_vfp_regs, store_vfp_regs): Likewise.
2055 (arm_linux_read_description): Likewise.
2056 (arm_linux_get_hwbp_cap): Likewise.
2057 * xtensa-linux-nat.c (get_thread_id): Remove.
2058 (GET_THREAD_ID): Remove.
2059 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
2060 GET_THREAD_ID.
2061
4efd80aa
CS
20622015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
2063
2064 * python/py-linetable.c: Fix case of Linetable to LineTable
2065 in docstrings and code comments.
2066 * python/py-symtab.c: Same.
2067
c6343a91
JK
20682015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2069
2070 * infcmd.c (signal_command): Call do_cleanups for args_chain.
2071
978b9495
JK
20722015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2073
2074 PR gdb/18767
2075 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
2076 use.
2077
96e9210f
PA
20782015-08-04 Pedro Alves <palves@redhat.com>
2079
2080 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
2081 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
2082 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
2083 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
2084 (td_thr_validate_ftype, td_thr_get_info_ftype)
2085 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
2086 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
2087 New typedefs.
2088 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
2089 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
2090 local macros and use them instead of verbose_dlsym and dlsym
2091 calls.
2092
af60a1ef
SL
20932015-08-03 Sandra Loosemore <sandra@codesourcery.com>
2094
2095 * nios2-tdep.h: Include opcode/nios2.h here.
2096 (NIOS2_CDX_OPCODE_SIZE): New.
2097 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
2098 * nios2-tdep.c: Don't include opcode/nios2.h here.
2099 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
2100 4-byte read fails.
2101 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
2102 (nios2_match_addi, nios2_match_orhi): Likewise.
2103 (nios2_match_stw, nios2_match_ldw): Likewise.
2104 (nios2_match_rdctl): Likewise.
2105 (nios2_match_stwm, nios2_match_ldwm): New.
2106 (nios2_match_branch): Add cases for R2 encodings.
2107 (nios2_match_jmpi, nios2_match_calli): Likewise.
2108 (nios2_match_jmpr, nios2_match_callr): Likewise.
2109 (nios2_match_break, nios2_match_trap): Likewise.
2110 (nios2_in_epilogue_p): Add R2 support.
2111 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
2112 prologues.
2113 (nios2_breakpoint_from_pc): Handle R2 instructions.
2114 (nios2_get_next_pc): Likewise. Adjust call to
2115 tdep->syscall_next_pc.
2116 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
2117 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
2118 instruction field macros instead of literal hex values.
2119 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
2120 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
2121 Use size field from OP instead of assuming all instructions
2122 are the same size.
2123 (nios2_linux_init_abi): Register appropriate unwinder for mach.
2124
1da03605
UW
21252015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
2126
2127 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
2128 variable warning with some compilers.
2129
8156fe7f
YQ
21302015-08-03 Yao Qi <yao.qi@linaro.org>
2131
2132 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
2133 in comment. Replace "rw" with "type".
2134 (arm_linux_remove_watchpoint): Change type of "rw" to
2135 "enum target_hw_bp_type".
2136
835a09d9
PMR
21372015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
2138
2139 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
2140 lookup_symbol.
2141 * ft32-tdep.c (ft32_skip_prologue): Likewise.
2142 * moxie-tdep.c (moxie_skip_prologue): Likewise.
2143 * mt-tdep.c (mt_skip_prologue): Likewise.
2144 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2145
d12307c1
PMR
21462015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
2147
2148 * ada-exp.y (write_object_renaming): Replace struct
2149 ada_symbol_info with struct block_symbol. Update field
2150 references accordingly.
2151 (block_lookup, select_possible_type_sym): Likewise.
2152 (find_primitive_type): Likewise. Also update call to
2153 ada_lookup_symbol to extract the symbol itself.
2154 (write_var_or_type, write_name_assoc): Likewise.
2155 * ada-lang.h (struct ada_symbol_info): Remove.
2156 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
2157 struct block_symbol.
2158 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
2159 (ada_lookup_symbol): Return struct block_symbol instead of a
2160 mere symbol.
2161 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
2162 with struct block_symbol.
2163 (resolve_subexp, ada_resolve_function, sort_choices,
2164 user_select_syms, is_nonfunction, add_defn_to_vec,
2165 num_defns_collected, defns_collected,
2166 symbols_are_identical_enums, remove_extra_symbols,
2167 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
2168 ada_lookup_symbol_list, ada_iterate_over_symbols,
2169 ada_lookup_encoded_symbol, get_var_value): Likewise.
2170 (ada_lookup_symbol): Return a block_symbol instead of a mere
2171 symbol. Replace struct ada_symbol_info with struct
2172 block_symbol.
2173 (ada_lookup_symbol_nonlocal): Likewise.
2174 (standard_lookup): Make block passing explicit through
2175 lookup_symbol_in_language.
2176 * ada-tasks.c (get_tcb_types_info): Update the calls to
2177 lookup_symbol_in_language to extract the mere symbol out of the
2178 returned value.
2179 (ada_tasks_inferior_data_sniffer): Likewise.
2180 * ax-gdb.c (gen_static_field): Likewise for the call to
2181 lookup_symbol.
a5fdf78a 2182 (gen_maybe_namespace_elt): Deal with struct block_symbol from
d12307c1
PMR
2183 lookup functions.
2184 (gen_expr): Likewise.
2185 * c-exp.y: Likewise. Remove uses of block_found.
2186 (lex_one_token, classify_inner_name, c_print_token): Likewise.
2187 (classify_name): Likewise. Rename the "sym" local variable to
2188 "bsym".
2189 * c-valprint.c (print_unpacked_pointer): Likewise.
2190 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
2191 "sym" parameter from struct symbol * to struct block_symbol.
2192 Use it to remove uses of block_found. Deal with struct
a5fdf78a 2193 block_symbol from lookup functions.
d12307c1
PMR
2194 (gcc_convert_symbol): Likewise. Update the call to
2195 convert_symbol_sym.
2196 * compile/compile-object-load.c (compile_object_load): Deal with
a5fdf78a 2197 struct block_symbol from lookup functions.
d12307c1
PMR
2198 * cp-namespace.c (cp_lookup_nested_symbol_1,
2199 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
2200 cp_search_static_and_baseclasses,
2201 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
2202 cp_lookup_symbol_imports_or_template,
2203 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
2204 lookup_namespace_scope, cp_lookup_nonlocal,
a5fdf78a
PMR
2205 find_symbol_in_baseclass): Return struct block_symbol instead of
2206 mere symbols and deal with struct block_symbol from lookup
d12307c1
PMR
2207 functions.
2208 * cp-support.c (inspect_type, replace_typedefs,
a5fdf78a 2209 cp_lookup_rtti_type): Deal with struct block_symbol from
d12307c1
PMR
2210 lookup functions.
2211 * cp-support.h (cp_lookup_symbol_nonlocal,
2212 cp_lookup_symbol_from_namespace,
2213 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
a5fdf78a 2214 Return struct block_symbol instead of mere symbols.
d12307c1
PMR
2215 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
2216 push_module_name):
a5fdf78a 2217 Deal with struct block_symbol from lookup functions. Remove
d12307c1
PMR
2218 uses of block_found.
2219 * eval.c (evaluate_subexp_standard): Update call to
2220 cp_lookup_symbol_namespace.
a5fdf78a
PMR
2221 * f-exp.y: Deal with struct block_symbol from lookup functions.
2222 Remove uses of block_found.
d12307c1
PMR
2223 (yylex): Likewise.
2224 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
2225 lookup_enum, lookup_template_type, check_typedef): Deal with
a5fdf78a 2226 struct block_symbol from lookup functions.
d12307c1
PMR
2227 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
2228 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
2229 (gdbscm_lookup_global_symbol): Likewise.
2230 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
2231 * go-exp.y: Likewise. Remove uses of block_found.
2232 (package_name_p, classify_packaged_name, classify_name):
2233 Likewise.
2234 * infrun.c (insert_exception_resume_breakpoint): Likewise.
2235 * jv-exp.y (push_variable): Likewise.
2236 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
2237 * language.c (language_bool_type): Likewise.
2238 * language.h (struct language_defn): Update
a5fdf78a
PMR
2239 la_lookup_symbol_nonlocal to return a struct block_symbol rather
2240 than a mere symbol.
2241 * linespec.c (find_label_symbols): Deal with struct block_symbol
2242 from lookup functions.
d12307c1
PMR
2243 * m2-exp.y: Likewise. Remove uses of block_found.
2244 (yylex): Likewise.
2245 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2246 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
2247 * p-exp.y: Likewise. Remove uses of block_found.
2248 (yylex): Likewise.
2249 * p-valprint.c (pascal_val_print): Likewise.
2250 * parse.c (write_dollar_variable): Likewise. Remove uses of
2251 block_found.
2252 * parser-defs.h (struct symtoken): Turn the SYM field into a
a5fdf78a
PMR
2253 struct block_symbol.
2254 * printcmd.c (address_info): Deal with struct block_symbol from
2255 lookup functions.
d12307c1
PMR
2256 * python/py-frame.c (frapy_read_var): Likewise.
2257 * python/py-symbol.c (gdbpy_lookup_symbol,
2258 gdbpy_lookup_global_symbol): Likewise.
2259 * skip.c (skip_function_command): Likewise.
2260 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
a5fdf78a 2261 block_symbol instead of a mere symbol.
d12307c1
PMR
2262 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
2263 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2264 * solib.c (solib_global_lookup): Likewise.
2265 * solist.h (solib_global_lookup): Likewise.
2266 (struct target_so_ops): Update lookup_lib_global_symbol to
a5fdf78a
PMR
2267 return a struct block_symbol rather than a mere symbol.
2268 * source.c (select_source_symtab): Deal with struct block_symbol
2269 from lookup functions.
d12307c1
PMR
2270 * stack.c (print_frame_args, iterate_over_block_arg_vars):
2271 Likewise.
2272 * symfile.c (set_initial_language): Likewise.
2273 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
a5fdf78a 2274 block_symbol.
d12307c1
PMR
2275 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
2276 (struct symbol_cache_slot): Turn the FOUND field into a struct
a5fdf78a 2277 block_symbol.
d12307c1 2278 (block_found): Remove.
a5fdf78a 2279 (eq_symbol_entry): Update to deal with struct block_symbol in
d12307c1 2280 cache slots.
a5fdf78a
PMR
2281 (symbol_cache_lookup): Return a struct block_symbol rather than
2282 a mere symbol.
d12307c1
PMR
2283 (symbol_cache_mark_found): Add a BLOCK parameter to fill
2284 appropriately the cache slots. Update callers.
2285 (symbol_cache_dump): Update cache slots handling to the type
2286 change.
2287 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
2288 lookup_symbol_aux, lookup_local_symbol,
2289 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
2290 lookup_symbol_in_objfile_symtabs,
2291 lookup_symbol_in_objfile_from_linkage_name,
2292 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
2293 lookup_symbol_in_static_block, lookup_static_symbol,
2294 lookup_global_symbol):
a5fdf78a
PMR
2295 Return a struct block_symbol rather than a mere symbol. Deal
2296 with struct block_symbol from other lookup functions. Remove
d12307c1
PMR
2297 uses of block_found.
2298 (lookup_symbol_in_block): Remove uses of block_found.
2299 (struct global_sym_lookup_data): Turn the RESULT field into a
a5fdf78a 2300 struct block_symbol.
d12307c1
PMR
2301 (lookup_symbol_global_iterator_cb): Update references to the
2302 RESULT field.
a5fdf78a 2303 (search_symbols): Deal with struct block_symbol from lookup
d12307c1 2304 functions.
a5fdf78a 2305 * symtab.h (struct block_symbol): New structure.
d12307c1
PMR
2306 (block_found): Remove.
2307 (lookup_symbol_in_language, lookup_symbol,
2308 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
a5fdf78a
PMR
2309 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
2310 lookup_global_symbol_from_objfile): Return a struct block_symbol
2311 rather than just a mere symbol. Update comments to remove
2312 mentions of block_found.
d12307c1
PMR
2313 * valops.c (find_function_in_inferior,
2314 value_struct_elt_for_reference, value_maybe_namespace_elt,
a5fdf78a 2315 value_of_this): Deal with struct block_symbol from lookup
d12307c1
PMR
2316 functions.
2317 * value.c (value_static_field, value_fn_field): Likewise.
2318
b1c59ddc
SM
23192015-07-31 Simon Marchi <simon.marchi@ericsson.com>
2320
2321 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
2322 instead of integer.
2323
f486487f 23242015-07-31 Simon Marchi <simon.marchi@ericsson.com>
84da3f0c 2325 Pedro Alves <palves@redhat.com>
f486487f
SM
2326
2327 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
2328 type or value instead of integer.
2329 (aarch64_linux_insert_watchpoint): Likewise.
2330 (aarch64_linux_remove_watchpoint): Likewise.
2331 * ada-lang.c (ada_op_print_tab): Likewise.
2332 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
2333 (amd64_linux_syscall_record_common): Likewise.
2334 * arch-utils.c (target_byte_order_user): Likewise.
2335 (default_byte_order): Likewise.
2336 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
2337 (arm_linux_get_hwbp_type): Likewise.
2338 (arm_linux_hw_watchpoint_initialize): Likewise.
2339 (arm_linux_insert_watchpoint): Likewise.
2340 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
2341 (arm_linux_syscall_record): Likewise.
2342 * breakpoint.c (update_watchpoint): Likewise.
2343 (breakpoint_here_p): Likewise.
2344 (bpstat_print): Likewise.
2345 (enable_breakpoint_disp): Likewise.
2346 * c-lang.c (c_op_print_tab): Likewise.
2347 * cli/cli-decode.c (add_info_alias): Likewise.
2348 * d-lang.c (d_op_print_tab): Likewise.
2349 * eval.c (evaluate_subexp_standard): Likewise.
2350 * f-exp.y (dot_ops): Likewise.
2351 (f77_keywords): Likewise.
2352 * f-lang.c (f_op_print_tab): Likewise.
2353 * go-lang.c (go_op_print_tab): Likewise.
2354 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
2355 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
2356 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2357 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
2358 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
2359 (struct scm_from_stringn_data): Likewise.
2360 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2361 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2362 (ia64_linux_remove_watchpoint): Likewise.
2363 (ia64_linux_can_use_hw_breakpoint): Likewise.
2364 * infrun.c (print_stop_event): Likewise.
2365 * jv-lang.c (java_op_print_tab): Likewise.
2366 * linux-nat.c (linux_proc_xfer_partial): Likewise.
2367 * linux-nat.h (struct lwp_info): Likewise.
2368 * linux-thread-db.c (enable_thread_event): Likewise.
2369 * m2-lang.c (m2_op_print_tab): Likewise.
2370 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
2371 (mi_cmd_stack_list_variables): Likewise.
2372 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
2373 * mi/mi-out.c (mi_table_begin): Likewise.
2374 (mi_table_header): Likewise.
2375 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
2376 (mips_linux_insert_watchpoint): Likewise.
2377 (mips_linux_remove_watchpoint): Likewise.
2378 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
2379 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
2380 (mips_linux_watch_type_to_irw): Likewise.
2381 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2382 (procfs_insert_hw_watchpoint): Likewise.
2383 (procfs_remove_hw_watchpoint): Likewise.
2384 (procfs_hw_watchpoint): Likewise.
2385 (procfs_can_use_hw_breakpoint): Likewise.
2386 (procfs_remove_hw_watchpoint): Likewise.
2387 (procfs_insert_hw_watchpoint): Likewise.
2388 * p-lang.c (pascal_op_print_tab): Likewise.
2389 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
2390 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
2391 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
2392 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2393 (procfs_insert_watchpoint): Likewise.
2394 (procfs_remove_watchpoint): Likewise.
2395 * psymtab.c (recursively_search_psymtabs): Likewise.
2396 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
2397 (m32r_insert_watchpoint): Likewise.
2398 * remote-mips.c (mips_can_use_watchpoint): Likewise.
2399 (mips_insert_watchpoint): Likewise.
2400 (mips_remove_watchpoint): Likewise.
2401 * remote.c (watchpoint_to_Z_packet): Likewise.
2402 (remote_insert_watchpoint): Likewise.
2403 (remote_remove_watchpoint): Likewise.
2404 (remote_check_watch_resources): Likewise.
2405 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2406 (s390_remove_watchpoint): Likewise.
2407 (s390_can_use_hw_breakpoint): Likewise.
2408 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2409 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
2410 * target.h (struct target_ops): Likewise.
2411 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2412 * ui-out.c (struct ui_out_hdr): Likewise.
2413 (append_header_to_list): Likewise.
2414 (get_next_header): Likewise.
2415 (verify_field): Likewise.
2416 (ui_out_begin): Likewise.
2417 (ui_out_field_int): Likewise.
2418 (ui_out_field_fmt_int): Likewise.
2419 (ui_out_field_skip): Likewise.
2420 (ui_out_field_string): Likewise.
2421 (ui_out_field_fmt): Likewise.
2422 * varobj.c (new_variable): Likewise.
2423 * x86-nat.c (x86_insert_watchpoint): Likewise.
2424 (x86_remove_watchpoint): Likewise.
2425 (x86_can_use_hw_breakpoint): Likewise.
2426 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
2427 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
2428 previously anonymous enumeration type..
2429 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
2430 value.
2431 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
2432 (target_debug_print_enum_bptype): New.
2433 * target-delegates.c: Regenerate.
2434
e1b5381f
SL
24352015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2436
2437 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
2438 already says and disallow non-stack memory writes in the prologue.
2439
9aaf8e3a
SL
24402015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2441
2442 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
2443 reflect how current GCC emits stack overflow checks. Match
2444 both trap and break instructions for backward compatbility.
2445 Disallow other trap and break instructions in the prologue.
2446
69dde7dc
PA
24472015-07-30 Pedro Alves <palves@redhat.com>
2448
2449 PR threads/18600
2450 * linux-nat.c (wait_lwp): Report to the core when thread group
2451 leader exits.
2452
4dd63d48
PA
24532015-07-30 Pedro Alves <palves@redhat.com>
2454 Simon Marchi <simon.marchi@ericsson.com>
2455
2456 PR threads/18600
2457 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
2458 mark the new thread as resumed. Remove STOPPING parameter.
2459 (wait_lwp): Adjust call to linux_handle_extended_wait.
2460 (linux_nat_filter_event): Adjust call to
2461 linux_handle_extended_wait.
2462 (resume_stopped_resumed_lwps): Add debug output.
2463
6b940e6a
PL
24642015-07-30 Pierre Langlois <pierre.langlois@arm.com>
2465
2466 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
2467 isize argument.
2468 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
2469 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
2470 gdbarch_fast_tracepoint_valid_at.
2471 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
2472 * gdbarch.h: Regenerate.
2473 * gdbarch.c: Regenerate.
2474 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
2475 argument. Do not set it.
2476 * remote.c (remote_download_tracepoint): Adjust call to
2477 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
2478 the instruction length.
2479
ec741292
YQ
24802015-07-30 Yao Qi <yao.qi@linaro.org>
2481
2482 * arm-tdep.h (enum gdb_regnum): Move it to ...
2483 * arch/arm.h: ... here. New file.
2484 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
2485
0ea6402e
PL
24862015-07-30 Pierre Langlois <pierre.langlois@arm.com>
2487
2488 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
2489 Change its type to int *.
2490 (decode_br): Rename link argument to is_blr. Change its type to
2491 int *.
2492 (decode_cb): Rename op argument to is_cbnz. Change its type to
2493 int *.
2494 (decode_tb): Rename op argument to is_tbnz. Change its type to
2495 int *. Set is_tbnz to either 1 or 0.
2496 (aarch64_analyze_prologue): Change type of is_link to int. Add
2497 new variables is_cbnz and is_tbnz. Adjust call to
2498 aarch64_decode_cb and aarch64_decode_tb.
2499
aa58a496
SM
25002015-07-29 Simon Marchi <simon.marchi@ericsson.com>
2501
2502 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
2503 parameter.
2504 (mips_linux_new_thread): Likewise.
2505 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
2506
18206ca3
PP
25072015-07-29 Patrick Palka <patrick@parcs.ath.cx>
2508
2509 * top.c: Include "tui/tui.h".
2510 (undo_terminal_modifications_before_exit): New static function.
2511 (quit_force): Use it.
2512
7afa63c6
PP
25132015-07-29 Patrick Palka <patrick@parcs.ath.cx>
2514
2515 * target.c (terminal_state): Initialize to terminal_is_ours.
2516
cc9f16aa
YQ
25172015-07-29 Yao Qi <yao.qi@linaro.org>
2518
2519 PR record/18691
2520 * dcache.c (dcache_read_memory_partial): Call
2521 raw_memory_xfer_partial.
2522 * target.c (raw_memory_xfer_partial): Make it non-static.
2523 * target.h (raw_memory_xfer_partial): Declare.
2524
3ae385af
SM
25252015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2526
2527 * c-valprint.c (c_val_print_array): Consider addressable memory
2528 unit size.
2529 (c_val_print_ptr): Likewise.
2530 (c_val_print_int): Likewise.
2531 * findvar.c (read_frame_register_value): Likewise.
2532 * valarith.c (find_size_for_pointer_math): Likewise.
2533 (value_ptrdiff): Likewise.
2534 (value_subscripted_rvalue): Likewise.
2535 * valops.c (read_value_memory): Likewise (and rename variables).
2536 (value_assign): Likewise.
2537 (value_repeat): Likewise.
2538 (value_array): Likewise.
2539 (value_slice): Likewise.
2540 * valprint.c (generic_val_print_ptr): Likewise.
2541 (generic_val_print_enum): Likewise.
2542 (generic_val_print_bool): Likewise.
2543 (generic_val_print_int): Likewise.
2544 (generic_val_print_char): Likewise.
2545 (generic_val_print_float): Likewise.
2546 (generic_val_print_decfloat): Likewise.
2547 (generic_val_print_complex): Likewise.
2548 (val_print_scalar_formatted): Likewise.
2549 (val_print_array_elements): Likewise.
2550 * value.c (set_value_parent): Likewise.
2551 (value_contents_copy_raw): Likewise.
2552 (set_internalvar_component): Likewise.
2553 (value_primitive_field): Likewise.
2554 (value_fetch_lazy): Likewise.
2555 * value.h (read_value_memory): Update comment.
2556
e512cdbd
SM
25572015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2558
2559 * value.c (get_value_arch): New function.
2560 * value.h (get_value_arch): New declaration.
2561
3723fda8
SM
25622015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2563
2564 * value.c (struct value): Update comments.
2565
2e056931
SM
25662015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2567
2568 * gdbtypes.c (type_length_units): New function.
2569 * gdbtypes.h (type_length_units): New declaration.
2570 (struct type) <length>: Update comment.
2571
0c87c0bf
SM
25722015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2573
2574 * valprint.c (generic_val_print): Factor out complex
2575 printing code to ...
2576 (generic_val_print_complex): ... this new function.
2577
9550ae5e
SM
25782015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2579
2580 * valprint.c (generic_val_print): Factor out decfloat
2581 printing code to ...
2582 (generic_val_print_decfloat): ... this new function.
2583
7784724b
SM
25842015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2585
2586 * valprint.c (generic_val_print): Factor out float
2587 printing code to ...
2588 (generic_val_print_float): ... this new function.
2589
385f5aff
SM
25902015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2591
2592 * valprint.c (generic_val_print): Factor out char
2593 printing code to ...
2594 (generic_val_print_char): ... this new function.
2595
b21b6342
SM
25962015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2597
2598 * valprint.c (generic_val_print): Factor out integer
2599 printing code to ...
2600 (generic_val_print_int): ... this new function.
2601
e5bead4b
SM
26022015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2603
2604 * valprint.c (generic_val_print): Factor out bool
2605 printing code to ...
2606 (generic_val_print_bool): ... this new function.
2607
4a8c372f
SM
26082015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2609
2610 * valprint.c (generic_val_print): Factor out function/method
2611 printing code to ...
2612 (generic_val_print_func): ... this new function.
2613
d93880bd
SM
26142015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2615
2616 * valprint.c (generic_val_print): Factor out flags
2617 printing code to ...
2618 (generic_val_print_flags): ... this new function.
2619
ef0bc0dd
SM
26202015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2621
2622 * valprint.c (generic_val_print): Factor out enum
2623 printing code to ...
2624 (generic_val_print_enum): ... this new function.
2625
fe43fede
SM
26262015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2627
2628 * valprint.c (generic_val_print): Factor out reference
2629 printing code to ...
2630 (generic_val_print_ref): ... this new function.
2631
45000ea2
SM
26322015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2633
2634 * valprint.c (generic_val_print): Factor out memberptr
2635 printing code to ...
2636 (generic_val_print_memberptr): ... this new function.
2637
81eb921a
SM
26382015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2639
2640 * valprint.c (generic_val_print): Factor out pointer
2641 printing code to ...
2642 (generic_val_print_ptr): ... this new function.
2643
557dbe8a
SM
26442015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2645
2646 * valprint.c (generic_val_print): Factor out array
2647 printing code to ...
2648 (generic_val_print_array): ... this new function.
2649
9f436164
SM
26502015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2651
2652 * valprint.c (generic_val_print): Factor out
2653 print_unpacked_pointer code to ...
2654 (print_unpacked_pointer): ... this new function.
2655
077836f7
PP
26562015-07-27 Patrick Palka <patrick@parcs.ath.cx>
2657
2658 * event-top.c (handle_sigterm): Don't inspect
2659 target_can_async_p. Always set the quit flag and always mark
2660 the async signal handler.
2661
3a60804f
YQ
26622015-07-27 Yao Qi <yao.qi@linaro.org>
2663
2664 * Makefile.in (REMOTE_EXAMPLES): Remove it.
2665
c9f35b34
KB
26662015-07-25 Kevin Buettner <kevinb@redhat.com>
2667
2668 * remote.c (read_ptid): Return null_ptid when no thread id
2669 is found.
2670 (remote_current_thread): Add log warning for malformed
2671 qC reply.
2672 (remote_start_remote): Add log warning when current thread
2673 not found.
2674
2b4cab86
PA
26752015-07-24 Pedro Alves <palves@redhat.com>
2676
2677 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
2678 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
2679 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
2680
77598427
PA
26812015-07-24 Pedro Alves <palves@redhat.com>
2682
2683 PR gdb/18717
2684 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
2685 is resumed, and extend the debug log.
2686
fe23c31f
PA
26872015-07-24 Pedro Alves <palves@redhat.com>
2688
2689 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
2690
5826e159
PA
26912015-07-24 Pedro Alves <palves@redhat.com>
2692
2693 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
2694 sys/ptrace.h.
2695 * alpha-linux-nat.c: Likewise.
2696 * amd64-linux-nat.c: Likewise.
2697 * arm-linux-nat.c: Likewise.
2698 * hppa-linux-nat.c: Likewise.
2699 * i386-linux-nat.c: Likewise.
2700 * ia64-linux-nat.c: Likewise.
2701 * linux-fork.c: Likewise.
2702 * linux-nat.c: Likewise.
2703 * m32r-linux-nat.c: Likewise.
2704 * m68klinux-nat.c: Likewise.
2705 * mips-linux-nat.c: Likewise.
2706 * nat/linux-btrace.c: Likewise.
2707 * nat/linux-ptrace.c: Likewise.
2708 * nat/linux-ptrace.h
2709 * nat/mips-linux-watch.c: Likewise.
2710 * nat/x86-linux-dregs.c: Likewise.
2711 * ppc-linux-nat.c: Likewise.
2712 * s390-linux-nat.c: Likewise.
2713 * spu-linux-nat.c: Likewise.
2714 * tilegx-linux-nat.c: Likewise.
2715 * x86-linux-nat.c: Likewise.
2716 * xtensa-linux-nat.c: Likewise.
2717
54019719
PA
27182015-07-24 Pedro Alves <palves@redhat.com>
2719
2720 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
2721 __ptrace_request as first parameter type instead of int.
2722 (PTRACE_TYPE_ARG1): Define.
2723 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
2724 that casts first argument to PTRACE_TYPE_ARG1.
2725 * config.in: Regenerate.
2726 * configure: Regenerate.
2727
e3790375
PA
27282015-07-24 Pedro Alves <palves@redhat.com>
2729
2730 * gdb_ptrace.h: Move ...
2731 * nat/gdb_ptrace.h: ... here.
2732 * inf-ptrace.c: Adjust.
2733
eb7aa561
PA
27342015-07-24 Pedro Alves <palves@redhat.com>
2735
2736 * acinclude.m4: Include ptrace.m4.
2737 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
2738 * ptrace.m4: ... to this new file.
2739
cc12ce38
DE
27402015-07-23 Doug Evans <dje@google.com>
2741
2742 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
2743 (load_cu): Handle dummy CUs.
2744 (dw2_do_instantiate_symtab, process_queuef): Ditto.
2745 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
2746
7b849db4
CS
27472015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
2748
2749 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
2750 documentation to say that it returns a list rather than
2751 a FrozenSet.
2752 (linetable_object_methods): Update the docstring of the
2753 "source_line" entry.
2754
d0d84780
PMR
27552015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
2756
2757 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
2758 type to the recursive call instead of the original (maybe
2759 TYPE_CODE_TYPEDEF) type.
2760
c2fbdc59
YQ
27612015-07-23 Yao Qi <yao.qi@linaro.org>
2762
2763 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
2764 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
2765 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
2766
af1b22f3
YQ
27672015-07-21 Yao Qi <yao.qi@linaro.org>
2768
2769 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
2770 Move it to nat/aarch64-linux-hw-point.c.
2771 (aarch64_linux_child_post_startup_inferior): Update.
2772 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
2773 New function.
2774 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
2775 Declare it.
2776
40e050d2
MM
27772015-07-21 Markus Metzger <markus.t.metzger@intel.com>
2778
2779 * common/btrace-common.c (btrace_data_append): Change case label.
2780
3675a06a
YQ
27812015-07-20 Yao Qi <yao.qi@linaro.org>
2782
2783 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
2784 Re-indent the code.
2785 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
2786 "unsigned long long".
2787
b4e1fd61
KB
27882015-07-18 Kevin Buettner <kevinb@redhat.com>
2789
2790 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
2791 to be set for SEC_ALLOC sections too.
2792
554717a3
YQ
27932015-07-17 Yao Qi <yao.qi@linaro.org>
2794
2795 * Makefile.in (HFILES_NO_SRCDIR): Add
2796 nat/aarch64-linux-hw-point.h.
2797 (aarch64-linux-hw-point.o): New rule.
2798 * nat/aarch64-linux-hw-point.h: New file.
2799 * nat/aarch64-linux-hw-point.c: New file.
2800 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
2801 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
2802 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
2803 (AARCH64_HWP_ALIGNMENT): Likewise.
2804 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
2805 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
2806 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
2807 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
2808 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
2809 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
2810 (struct aarch64_debug_reg_state): Likewise.
2811 (struct arch_lwp_info): Likewise.
2812 (aarch64_linux_set_debug_regs): Likewise.
2813 (aarch64_notify_debug_reg_change): Remove static.
2814 (aarch64_align_watchpoint): Likewise.
2815 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
2816 (aarch64_watchpoint_length): Likewise.
2817 (aarch64_point_encode_ctrl_reg): Likewise
2818 (aarch64_point_is_aligned): Likewise.
2819 (aarch64_dr_state_insert_one_point): Likewise.
2820 (aarch64_dr_state_remove_one_point): Likewise.
2821 (aarch64_handle_breakpoint): Likewise.
2822 (aarch64_handle_aligned_watchpoint): Likewise.
2823 (aarch64_handle_unaligned_watchpoint): Likewise.
2824 (aarch64_handle_watchpoint): Likewise.
2825 * config/aarch64/linux.mh (NAT_FILE): Add
2826 aarch64-linux-hw-point.o.
2827
c67ca4de
YQ
28282015-07-17 Yao Qi <yao.qi@linaro.org>
2829
2830 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
2831 state and don't call aarch64_get_debug_reg_state. All callers
2832 update.
2833 (aarch64_linux_insert_hw_breakpoint): Call
2834 aarch64_get_debug_reg_state earlier.
2835 (aarch64_linux_remove_hw_breakpoint): Likewise.
2836 (aarch64_handle_aligned_watchpoint): Add argument state and
2837 don't call aarch64_get_debug_reg_state. All callers update.
2838 (aarch64_handle_unaligned_watchpoint): Likewise.
2839 (aarch64_handle_watchpoint): Add argument state.
2840 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
2841 earlier.
2842 (aarch64_linux_remove_watchpoint): Likewise.
2843
25abf979
YQ
28442015-07-17 Yao Qi <yao.qi@linaro.org>
2845
2846 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
2847 debug_printf.
2848 (aarch64_handle_unaligned_watchpoint): Likewise.
2849
2ecd81c2
YQ
28502015-07-17 Yao Qi <yao.qi@linaro.org>
2851
2852 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
2853 argument type's type to 'enum target_hw_bp_type'.
2854 (aarch64_dr_state_remove_one_point): Likewise.
2855 (aarch64_handle_breakpoint): Likewise.
2856 (aarch64_linux_insert_hw_breakpoint): Likewise.
2857 (aarch64_linux_remove_hw_breakpoint): Likewise.
2858 (aarch64_handle_aligned_watchpoint): Likewise.
2859
e53b6938
YQ
28602015-07-17 Yao Qi <yao.qi@linaro.org>
2861
2862 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
2863 ptid_get_pid instead of get_thread_id.
2864
6a49a997
YQ
28652015-07-17 Yao Qi <yao.qi@linaro.org>
2866
2867 * remote.c (get_current_thread): Initialise ptid to null_ptid.
2868 (add_current_inferior_and_thread): Don't initialise ptid.
2869
4bcddace
PL
28702015-07-16 Pierre Langlois <pierre.langlois@arm.com>
2871
2872 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
2873 unavailable if invalid.
2874
db1ff28b
JK
28752015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2876
2877 Revert the previous 6 commits:
2878 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
2879 Move gdb_regex* to common/
2880 Prepare linux_find_memory_regions_full & co. for move
2881 Move linux_find_memory_regions_full & co.
2882 gdbserver build-id attribute generator
2883 Validate symbol file using build-id
2884
ca5268b6
JK
28852015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2886 Jan Kratochvil <jan.kratochvil@redhat.com>
2887
2888 Validate symbol file using build-id.
2889 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
2890 and 'show validate-build-id'. Add build-id attribute.
2891 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
2892 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
2893 * solib-frv.c (_initialize_frv_solib): Ditto.
2894 * solib-spu.c (set_spu_solib_ops): Ditto.
2895 * solib-svr4.c: Include rsp-low.h.
2896 (NOTE_GNU_BUILD_ID_NAME): New define.
2897 (svr4_validate): New function.
2898 (svr4_copy_library_list): Duplicate field build_id.
2899 (library_list_start_library): Parse 'build-id' attribute.
2900 (svr4_library_attributes): Add 'build-id' attribute.
2901 (_initialize_svr4_solib): Assign validate value.
2902 * solib-target.c (solib.h): Include.
2903 (_initialize_solib_target): Assign validate value.
2904 * solib.c (validate_build_id, show_validate_build_id): New.
2905 (solib_map_sections): Use ops->validate.
2906 (clear_so): Free build_id.
2907 (default_solib_validate): New function.
2908 (_initialize_solib): Add "validate-build-id".
2909 * solib.h (default_solib_validate): New declaration.
2910 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
2911 (target_so_ops): New field 'validate'.
2912
700ca40f
JK
29132015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2914 Jan Kratochvil <jan.kratochvil@redhat.com>
2915
2916 gdbserver build-id attribute generator.
2917 * features/library-list-svr4.dtd (library-list-svr4): New
2918 'build-id' attribute.
2919
9904185c
JK
29202015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2921 Jan Kratochvil <jan.kratochvil@redhat.com>
2922
2923 Move linux_find_memory_regions_full & co.
2924 * linux-tdep.c (nat/linux-maps.h): Include.
2925 (gdb_regex.h): Remove the include.
2926 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
2927 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
2928 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
2929 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
2930 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
2931 and target/target.h.
2932 (struct smaps_vmflags, read_mapping, decode_vmflags)
2933 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
2934 (linux_find_memory_regions_full): Move from linux-tdep.c.
2935 * nat/linux-maps.h (read_mapping): New declaration.
2936 (linux_find_memory_region_ftype, enum filterflags): Moved from
2937 linux-tdep.c.
2938 (linux_find_memory_regions_full): New declaration.
2939 * target.c (target/target-utils.h): Include.
2940 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
2941 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
2942 definitions to target/target-utils.c.
2943 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
2944 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
2945 from target.c.
2946 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
2947 (read_alloc): New declaration.
2948 (read_stralloc_func_ftype): New typedef.
2949 (read_stralloc): New declaration.
2950 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
2951
f7af1fcd
JK
29522015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2953 Jan Kratochvil <jan.kratochvil@redhat.com>
2954
2955 Prepare linux_find_memory_regions_full & co. for move.
2956 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
2957 (linux_find_memory_regions_full): Change signature and prepare
2958 for moving to linux-maps.
2959 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
2960 (linux_find_memory_regions_thunk): New.
2961 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
2962 (linux_find_memory_regions_gdb): New.
2963 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
2964 (linux_make_mappings_corefile_notes): Use
2965 linux_find_memory_regions_gdb.
2966 * target.c (read_alloc_pread_ftype): New typedef.
2967 (target_fileio_read_alloc_1_pread): New function.
2968 (read_alloc): Refactor from target_fileio_read_alloc_1.
2969 (read_stralloc_func_ftype): New typedef.
2970 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
2971 (read_stralloc): Refactored from target_fileio_read_stralloc.
2972 (target_fileio_read_stralloc): New implementation, use read_stralloc.
2973
6e5b4429
JK
29742015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2975
2976 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
2977 common/gdb_regex.h.
2978 (COMMON_OBS): Add gdb_regex.o.
2979 (gdb_regex.o): New.
2980 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
2981 --without-included-regex and USE_INCLUDED_REGEX.
2982 * common/gdb_regex.c: New file from utils.c functions.
2983 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
2984 file wrapping define name.
2985 * configure: Rebuilt.
2986 * configure.ac (gdb_use_included_regex, --without-included-regex)
2987 (USE_INCLUDED_REGEX): Move them to common/common.m4.
2988 * gdb_regex.h: Move it to common/gdb_regex.h.
2989 * utils.c: Remove include gdb_regex.h.
2990 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
2991 (compile_rx_or_error): Move them to common/gdb_regex.c.
2992
ddc98fbf
JK
29932015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2994 Jan Kratochvil <jan.kratochvil@redhat.com>
2995
2996 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
2997 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
2998 common/target-utils.h.
2999 (COMMON_OBS): Add target-utils.o.
3000 (linux-maps.o, target-utils.o): New.
3001 * target/target-utils.c: New file.
3002 * target/target-utils.h: New file.
3003 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3004 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3005 * nat/linux-maps.c: New file.
3006 * nat/linux-maps.h: New file.
3007
e7b01ce0
MM
30082015-07-15 Markus Metzger <markus.t.metzger@intel.com>
3009 Pedro Alves <palves@redhat.com>
3010
3011 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
3012 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
3013 (perf_event_read_bts): Change the type of SIZE and READ.
3014 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
3015 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
3016 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
3017 mmap page.
3018 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
3019 buffer size to UINT_MAX.
3020 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
3021 DATA_TAIL.
3022 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
3023 <last_head>: Change type.
3024 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
3025 * common/btrace-common.c (btrace_data_append): Change the type of
3026 SIZE.
3027 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
3028 check.
3029
f168693b
SM
30302015-07-14 Simon Marchi <simon.marchi@ericsson.com>
3031
3032 * gdbtypes.h (CHECK_TYPEDEF): Remove.
3033 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
3034 with check_typedef.
3035 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
3036 (ada_array_length): Likewise.
3037 (find_parallel_type_by_descriptive_type): Likewise.
3038 (ada_check_typedef): Likewise.
3039 * arm-tdep.c (arm_return_in_memory): Likewise.
3040 * ax-gdb.c (gen_trace_static_fields): Likewise.
3041 (gen_struct_ref_recursive): Likewise.
3042 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3043 (variable: block COLONCOLON name): Likewise.
3044 (qualified_name: TYPENAME COLONCOLON name): Likewise.
3045 * c-lang.c (classify_type): Likewise.
3046 * c-typeprint.c (c_print_type): Likewise.
3047 (c_print_typedef): Likewise.
3048 (c_type_print_base): Likewise.
3049 * c-valprint.c (c_val_print): Likewise.
3050 * compile/compile-c-types.c (convert_type): Likewise.
3051 * compile/compile-object-load.c (get_out_value_type): Likewise.
3052 * completer.c (add_struct_fields): Likewise.
3053 (expression_completer): Likewise.
3054 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
3055 (cp_lookup_nested_symbol_1): Likewise.
3056 (cp_lookup_nested_symbol): Likewise.
3057 * cp-valprint.c (cp_print_value_fields): Likewise.
3058 (cp_print_static_field): Likewise.
3059 * d-valprint.c (d_val_print): Likewise.
3060 * eval.c (evaluate_subexp_standard): Likewise.
3061 (evaluate_subexp_for_sizeof): Likewise.
3062 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3063 * f-typeprint.c (f_type_print_base): Likewise.
3064 * f-valprint.c (f_val_print): Likewise.
3065 * gdbtypes.c (get_discrete_bounds): Likewise.
3066 (create_array_type_with_stride): Likewise.
3067 (type_name_no_tag_or_error): Likewise.
3068 (lookup_struct_elt_type): Likewise.
3069 (get_unsigned_type_max): Likewise.
3070 (internal_type_vptr_fieldno): Likewise.
3071 (set_type_vptr_fieldno): Likewise.
3072 (internal_type_vptr_basetype): Likewise.
3073 (set_type_vptr_basetype): Likewise.
3074 (get_vptr_fieldno): Likewise.
3075 (is_integral_type): Likewise.
3076 (is_scalar_type): Likewise.
3077 (is_scalar_type_recursive): Likewise.
3078 (distance_to_ancestor): Likewise.
3079 (is_unique_ancestor_worker): Likewise.
3080 (check_types_equal): Likewise.
3081 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3082
45280282
IB
30832015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
3084
3085 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
3086 also test for language_d.
3087 (dwarf2_compute_name): Likewise.
3088 (read_func_scope): Likewise.
3089 (read_structure_type): Likewise.
3090 (new_symbol_full): Likewise.
3091 (determine_prefix): Likewise.
3092 (read_import_statement): Use dot as the separator for language_d.
3093 (typename_concat): Likewise, but don't prefix the D main function.
3094
99fe86f7
PB
30952015-07-14 Peter Bergner <bergner@vnet.ibm.com>
3096
3097 * nat/linux-namespaces.c (setns): Rename from this ...
3098 (do_setns): ... to this. Support calling setns if it exists.
3099 (mnsh_handle_setns): Call do_setns.
3100
d5131498
YQ
31012015-07-13 Yao Qi <yao.qi@linaro.org>
3102
3103 * exec.c (exec_file_attach): Add period at the end of error
3104 message.
3105
97605e61
AB
31062015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
3107
3108 * tui/tui-win.c (window_name_completer): New function.
3109 (focus_completer): Call window_name_completer. All old content
3110 moved into window_name_completer.
3111 (winheight_completer): New function.
3112 (_initialize_tui_win): Rename variable. Add completer to
3113 winheight command. Update doc string on winheight.
3114
8d6dbeb4
SL
31152015-07-12 Sandra Loosemore <sandra@codesourcery.com>
3116
3117 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
3118 all nios2 mach variants.
3119
a0e28e54
KB
31202015-07-10 Kevin Buettner <kevinb@redhat.com>
3121
3122 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
3123 of target_read_memory.
3124
c101f28f
AB
31252015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3126
3127 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
3128 string copy.
3129 (parse_scrolling_args): Likewise.
3130
150375dc
AB
31312015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3132
3133 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
3134 names in this function.
3135
6dce28e4
AB
31362015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3137
3138 * tui/tui-data.h (SRC_NAME): Convert to lower case.
3139 (CMD_NAME): Likewise.
3140 (DATA_NAME): Likewise.
3141 (DISASSEM_NAME): Likewise.
3142 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
3143 (tui_set_win_height): Likewise.
3144 (parse_scrolling_args): Likewise.
3145
485668e5
MM
31462015-07-10 Markus Metzger <markus.t.metzger@intel.com>
3147
3148 * record-btrace.c (record_btrace_goto_begin)
3149 (record_btrace_goto_end, record_btrace_goto): Move call to
3150 print_stack_frame ...
3151 (record_btrace_set_replay): ... here. Set stop_pc.
3152 * record-full.c (record_full_goto_entry): Set stop_pc.
3153
58d2eda5
PL
31542015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3155
3156 * NEWS: Mention support for tracepoints on aarch64-linux.
3157
7671bf47
PL
31582015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3159
3160 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
3161 function. Return 1.
3162 (the_low_target): Install it.
3163
7890fb45
PL
31642015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3165
3166 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
3167 * gdb.trace/collection.exp: Likewise.
3168 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
3169 * gdb.trace/mi-trace-unavailable.exp: Likewise.
3170 * gdb.trace/report.exp: Likewise.
3171 * gdb.trace/trace-break.exp: Likewise.
3172 * gdb.trace/unavailable.exp: Likewise.
3173 * gdb.trace/while-dyn.exp: Likewise.
3174
ea873d8e
PL
31752015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3176
3177 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
3178 (aarch64_gen_return_address): New function.
3179 (aarch64_gdbarch_init): Hook it.
3180
02a2a705
PL
31812015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3182
3183 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
3184 swallow NOT_AVAILABLE_ERROR.
3185 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
3186 available_p is not set.
3187 (aarch64_stub_frame_unwind_stop_reason): New function.
3188 (aarch64_stub_unwind): Install it.
3189
7dfa3edc
PL
31902015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3191
3192 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
3193 field.
3194 (aarch64_make_prologue_cache_1): New function, factored out from
3195 aarch64_make_prologue_cache. Do not allocate cache. Set
3196 available_p.
3197 (aarch64_make_prologue_cache): Reimplement wrapping
3198 aarch64_make_prologue_cache_1, and swallowing
3199 NOT_AVAILABLE_ERROR.
3200 (aarch64_prologue_frame_unwind_stop_reason): New function.
3201 Return UNWIND_UNAVAILABLE if available_p is not set.
3202 (aarch64_prologue_unwind): Install it.
3203 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
3204 checks into aarch64_prologue_frame_unwind_stop_reason. Call
3205 frame_id_build_unavailable_stack if available_p is not set.
3206
db634143
PL
32072015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3208
3209 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
3210 fields.
3211 (aarch64_scan_prologue): Set prev_pc.
3212 (aarch64_make_prologue_cache): Set func.
3213 (aarch64_make_stub_cache): Set prev_pc.
3214 (aarch64_prologue_this_id): Remove local variables id, pc and
3215 func. Read prev_pc and func from cache.
3216 (aarch64_stub_this_id): Read prev_pc from cache.
3217
8b61f75d
PL
32182015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3219
3220 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
3221 argument this_cache. Remove unused local variables reg and
3222 unwound_fp. Return early if this_cache is already set. Set
3223 this_cache.
3224 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
3225
7c8edfae
PL
32262015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3227
3228 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
3229 New argument this_cache. Return early if this_cache is already
3230 set. Set this_cache.
3231 (aarch64_prologue_this_id): Update call to
3232 aarch64_make_prologue_cache.
3233 (aarch64_prologue_prev_register): Likewise.
3234 (aarch64_normal_frame_base): Likewise.
3235
938c69a1
SM
32362015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3237
3238 * c-valprint.c (c_val_print): Factor out memberptr printing code
3239 from c_val_print to ...
3240 (c_val_print_memberptr): ... this new function.
3241
49f7fe28
SM
32422015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3243
3244 * c-valprint.c (c_val_print): Factor out int printing code to ...
3245 (c_val_print_int): ... this new function.
3246
9e4f353c
SM
32472015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3248
3249 * c-valprint.c (c_val_print): Factor out struct and union
3250 printing code to ...
3251 (c_val_print_struct): ... this new function ...
3252 (c_val_print_union): ... and this new function.
3253
1c67f032
SM
32542015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3255
3256 * c-valprint.c (c_val_print): Factor out pointer printing code
3257 to ...
3258 (c_val_print_ptr): ... this new function.
3259
0b6ef777
SM
32602015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3261
3262 * c-valprint.c (c_valprint): Factor our array printing code from
3263 c_val_print to ...
3264 (c_val_print_array): ... this new function.
3265
1033c33c
SM
32662015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3267
3268 * c-valprint.c (c_val_print): Factor out pointer printing code
3269 to ...
3270 (print_unpacked_pointer): ... this new function.
3271
f6b93c34
SM
32722015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3273
3274 * c-valprint.c (c_val_print): Remove an assignment to i and move
3275 its declaration.
3276
0f4576e3
YQ
32772015-07-09 Yao Qi <yao.qi@linaro.org>
3278
3279 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
3280 argument ptid. Update comments. Caller update.
3281
37fdfe4c
MM
32822015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3283
3284 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
3285 mnt packets.
3286
80a2b330
MM
32872015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3288
3289 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
3290
4ab31498
SM
32912015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3292
3293 * progspace.c (delete_program_space): Add missing spaces.
3294
7a41607e
SM
32952015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3296
3297 * inferior.c (delete_inferior_1): Rename to ...
3298 (delete_inferior): ..., remove 'silent' parameter, delete
3299 program space when unused and remove call to prune_program_spaces.
3300 Remove the old, unused, delete_inferior.
3301 (delete_inferior_silent): Remove.
3302 (prune_inferiors): Change call from delete_inferior_1 to
3303 delete_inferior and remove 'silent' parameter. Remove call to
3304 prune_program_spaces.
3305 (remove_inferior_command): Idem.
3306 * inferior.h (delete_inferior_1): Rename to...
3307 (delete_inferior): ..., remove 'silent' parameter and remove the
3308 original delete_inferior.
3309 (delete_inferior_silent): Remove.
3310 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
3311 delete_inferior_1 to delete_inferior and remove 'silent'
3312 parameter.
3313 * progspace.c (prune_program_spaces): Remove.
3314 (pspace_empty_p): Rename to...
3315 (program_space_empty_p): ... and make non-static.
3316 (delete_program_space): New.
3317 * progspace.h (prune_program_spaces): Remove declaration.
3318 (program_space_empty_p): New declaration.
3319 (delete_program_space): New declaration.
3320 * monitor.c (monitor_close): Replace call to
3321 delete_thread_silent and delete_inferior_silent with
3322 discard_all_inferiors.
3323
a9bd710f
PP
33242015-07-08 Patrick Palka <patrick@parcs.ath.cx>
3325
3326 * defs.h (deprecated_register_changed_hook): Remove prototype.
3327 * interps.c (clear_iterpreter_hooks): Remove reference to
3328 deprecated_register_changed_hook.
3329 * top.c (deprecated_register_changed_hook): Remove prototype.
3330 * valops.c (value_assign): Remove reference to
3331 deprecated_register_changed_hook.
3332 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
3333 Add comment documenting the function.
3334 (tui_register_changed_observer): Define.
3335 (tui_install_hooks): Remove reference to
3336 deprecated_register_changed_hook. Set
3337 tui_register_changed_observer.
3338 (tui_remove_hooks): Remove reference to
3339 deprecated_register_changed_hook. Unset
3340 tui_register_changed_observer.
3341
08464196
JK
33422015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3343
3344 PR compile/18484
3345 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
3346
bcf5c1d9
RC
33472015-07-08 Robert O'Callahan <robert@ocallahan.org>
3348
3349 PR exp/18617
3350 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
3351
e8643a45
MM
33522015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3353
3354 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
3355
76fb6829
MM
33562015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3357
3358 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
3359 Use safe_strerror() instead of strerror().
3360
82c40d4b
YQ
33612015-07-07 Yao Qi <yao.qi@linaro.org>
3362
3363 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
3364 * features/arm-with-m-fpa-layout.c: Regenerated.
3365 * features/arm-with-m-vfp-d16.xml: Likewise.
3366 * features/arm-with-m-vfp-d16.c: Regenerated.
3367 * features/arm-with-m.xml: Likewise.
3368 * features/arm-with-m.c: Regenerated.
3369 * features/arm-with-neon.xml: Likewise.
3370 * features/arm-with-neon.c: Regenerated.
3371 * features/arm-with-vfpv2.xml: Likewise.
3372 * features/arm-with-vfpv2.c: Regenerated.
3373 * features/arm-with-vfpv3.xml: Likewise.
3374 * features/arm-with-vfpv3.c: Regenerated.
3375
607685ec
YQ
33762015-07-07 Yao Qi <yao.qi@linaro.org>
3377
3378 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
3379 arm-linux-nat.c.
3380 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
3381 elf/external.h.
3382 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
3383 if target is 32-bit.
3384 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
3385 if target is 32-bit.
3386 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
3387 if target is 32-bit.
3388 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
3389 if target is 32-bit.
3390 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
3391 (aarch64_linux_read_description): Return the right target
3392 description.
3393 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
3394 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3395 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
3396 arm-linux-tdep.o.
3397
f1b67888
YQ
33982015-07-07 Yao Qi <yao.qi@linaro.org>
3399
3400 * aarch32-linux-nat.c: New file.
3401 * aarch32-linux-nat.h: New file.
3402 * arm-linux-nat.c: Include aarch32-linux-nat.h.
3403 (fetch_regs): Move code to aarch32-linux-nat.c. Call
3404 aarch32_gp_regcache_supply.
3405 (store_regs): Move code to aarch32-linux-nat.c. Call
3406 aarch32_gp_regcache_collect.
3407 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
3408 aarch32_vfp_regcache_supply.
3409 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
3410 aarch32_vfp_regcache_collect.
3411 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3412
179bfe82
YQ
34132015-07-07 Yao Qi <yao.qi@linaro.org>
3414
3415 * arm-linux-nat.c (store_fpregister): Remove.
3416 (store_register): Likewise.
3417 (fetch_fpregister): Likewise.
3418 (fetch_register): Likewise.
3419 (arm_linux_store_inferior_registers): Call store_regs and
3420 store_fpregs instead.
3421 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
3422 fetch_regs instead.
3423
6008fc5f
AB
34242015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3425
3426 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
3427 and focus commands.
3428
7c79d316
JB
34292015-07-06 Joel Brobecker <brobecker@adacore.com>
3430
3431 * NEWS: Create a new section for the next release branch.
3432 Rename the section of the current branch, now that it has
3433 been cut.
3434
f2232bea
JB
34352015-07-06 Joel Brobecker <brobecker@adacore.com>
3436
3437 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
3438 * version.in: Bump version to 7.10.50.DATE-cvs.
3439
66c4b3e8
LM
34402015-07-06 Luis Machado <lgustavo@codesourcery.com>
3441
3442 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
3443 breakpoints in a special way.
3444 (remove_breakpoint): Likewise.
3445 (mark_breakpoints_out): Likewise.
3446
bcd8537c
AB
34472015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3448
3449 * doc/gdb.texinfo (TUI): Add comma after @xref.
3450
10e9aaa3
AB
34512015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3452
3453 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
3454 instead of casting the structure type.
3455
8a13d42d
SM
34562015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3457
3458 * valops.c (search_struct_field): Remove OFFSET parameter.
3459 (value_cast_structs): Adjust calls to search_struct_field.
3460 (value_struct_elt): Same.
3461 (find_overload_match): Same.
3462
a844296a
SM
34632015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3464
3465 * value.c (value_fetch_lazy): Update comment, change return
3466 value to void.
3467 * value.h (value_fetch_lazy): Change return value to void.
3468
f41cbf58
AB
34692015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3470
3471 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
3472 (tui_win_name): Make parameter and result const.
3473 * tui/tui-data.h (tui_win_name): Make parameter and result const.
3474
118ca224
PP
34752015-07-06 Patrick Palka <patrick@parcs.ath.cx>
3476
3477 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
3478 use printf_unfiltered.
3479 (set_mpx_cmd): Add missing trailing space to command string
3480 literal.
3481 (_initialize_i386_tdep): Give the "mpx" prefix command its
3482 correct name.
3483
1b485e67
KB
34842015-07-02 Kevin Buettner <kevinb@redhat.com>
3485
3486 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
3487 (enum rx_frame_type): New.
3488 (struct rx_prologue): Add new field `frame_type'.
3489 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
3490 parameter in the prologue struct. Add code for recording
3491 locations of PC and PSW for fast interrupt and exception frames.
3492 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
3493 (rx_analyze_frame_prologue): Add `frame_type' parameter.
3494 (rx_frame_type): New function.
3495 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
3496 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
3497 `this_cache'.
3498 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
72f4393d 3499 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
1b485e67
KB
3500 RX_FRAME_TYPE_FAST_INTERRUPT.
3501 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
3502 (rx_frame_sniffer, rx_exception_sniffer): New functions.
3503 (rx_frame_unwind): Use rx_frame_sniffer instead of
3504 default_frame_sniffer.
3505 (rx_frame_unwind): New unwinder.
3506 (rx_gdbarch_init): Register new unwinder.
3507
0561fea4
KB
35082015-07-02 Kevin Buettner <kevinb@redhat.com>
3509
3510 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
3511 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
3512 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
3513 and RX_FPSW_REGNUM.
3514 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
3515
decf8d9a
JK
35162015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3517
3518 Fix GCC false warning.
3519 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
3520
2fd0f80d
YQ
35212015-07-02 Yao Qi <yao.qi@linaro.org>
3522
3523 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
3524 typo in the debugging message.
3525
b0627500
MM
35262015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3527
3528 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
3529 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
3530 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
3531 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
3532 (btrace_maint_clear): New.
3533 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
3534 (pt_print_packet, btrace_maint_decode_pt)
3535 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
3536 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
3537 (maint_btrace_packet_history_cmd)
3538 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3539 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
3540 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
3541 (maint_info_btrace_cmd, _initialize_btrace): New.
3542 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
3543 (btrace_maint_packet_history, btrace_maint_info): New.
3544 (btrace_thread_info) <maint>: New.
3545 * NEWS: Announce it.
3546
9be54cae
MM
35472015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3548
3549 * btrace.c (btrace_fetch): Append the new trace data.
3550 (btrace_clear): Clear the stored trace data.
3551 * btrace.h (btrace_thread_info) <data>: New.
3552 * common/btrace-common.h (btrace_data_clear)
3553 (btrace_data_append): New.
3554 * common/btrace-common.c (btrace_data_clear)
3555 (btrace_data_append): New.
3556
010a18a1
MM
35572015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3558
3559 * nat/linux-btrace.c (linux_enable_bts): Check for
3560 PERF_ATTR_SIZE_VER5.
3561 Check for data_offset and data_size fields. Use them.
3562
b20a6524
MM
35632015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3564
3565 * NEWS: Announce new commands "record btrace pt" and "record pt".
3566 Announce new options "set|show record btrace pt buffer-size".
3567 * btrace.c: Include "rsp-low.h".
3568 Include "inttypes.h".
3569 (btrace_add_pc): Add forward declaration.
3570 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
3571 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
3572 (btrace_compute_ftrace_pt): New.
3573 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
3574 (check_xml_btrace_version): Update version check.
3575 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
3576 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
3577 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
3578 (btrace_pt_children): New.
3579 (btrace_children): Add support for "pt".
3580 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
3581 (btrace_conf_children): Add support for "pt".
3582 * btrace.h: Include "intel-pt.h".
3583 (btrace_pt_error): New.
3584 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
3585 (btrace_data_empty): Support BTRACE_FORMAT_PT.
3586 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
3587 (struct btrace_config_pt): New.
3588 (struct btrace_config)<pt>: New.
3589 (struct btrace_data_pt_config, struct btrace_data_pt): New.
3590 (struct btrace_data)<pt>: New.
3591 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
3592 (pt): New.
3593 * features/btrace.dtd (btrace)<pt>: New.
3594 (pt, pt-config, cpu): New.
3595 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
3596 (perf_event_pt_event_type, kernel_supports_pt)
3597 (linux_supports_pt): New.
3598 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
3599 (linux_enable_bts): Free tinfo on error.
3600 (linux_enable_pt): New.
3601 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
3602 (linux_disable_pt): New.
3603 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
3604 (linux_fill_btrace_pt_config, linux_read_pt): New.
3605 (linux_read_btrace): Support BTRACE_FORMAT_PT.
3606 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
3607 (struct btrace_target_info)<pt>: New.
3608 * record-btrace.c (set_record_btrace_pt_cmdlist)
3609 (show_record_btrace_pt_cmdlist): New.
3610 (record_btrace_print_pt_conf): New.
3611 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
3612 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
3613 (cmd_record_btrace_pt_start): New.
3614 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
3615 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
3616 (_initialize_record_btrace): Add new commands.
3617 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
3618 (remote_protocol_features): Add "Qbtrace:pt".
3619 Add "Qbtrace-conf:pt:size".
3620 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
3621 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
3622 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
3623 (_initialize_remote): Add new commands.
3624
58bfce93
MM
36252015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3626
3627 * configure.ac: check for libipt
3628 * configure: Regenerate.
3629 * config.in: Regenerate.
3630 * Makefile.in (LIBIPT): New.
3631 (CLIBS): Add $LIBIPT.
3632 * NEWS: document new configure options
3633
b0fd6b30
JK
36342015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3635
3636 * compile/compile-object-load.c (compile_object_load): Replace debug
3637 message "lookup undefined ELF symbol" by 3 more specific messages.
3638
e6280369
KB
36392015-07-01 Kevin Buettner <kevinb@redhat.com>
3640
3641 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
3642 (rl78_register_type): Add case for RL78_PSW_REGNUM.
3643 (rl78_gdbarch_init): Initialize rl78_psw_type.
3644
bbcbf914
PP
36452015-07-01 Patrick Palka <patrick@parcs.ath.cx>
3646
3647 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3648 Update commentary. Always refresh the registers when frame
3649 information has changed.
3650 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
3651 Change return type to int. Return 1 if frame information has
3652 changed, 0 otherwise.
3653 (tui_before_prompt): Update commentary.
3654 * tui/tui-stack.h (tui_show_frame_info): Change return type to
3655 int.
3656
0986c744
PP
36572015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3658
3659 PR tui/13378
3660 * frame.c (select_frame): Remove reference to
3661 deprecated_selected_frame_level_changed_hook.
3662 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
3663 declaration.
3664 * stack.c (deprecated_selected_frame_level_changed_hook):
3665 Likewise.
3666 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
3667 Rename to ...
3668 (tui_refresh_frame_and_register_information): ... this. Bail
3669 out if there is no stack. Don't update register information
3670 unless registers_too_p is true.
3671 (tui_print_frame_info_listing_hook): Rename to ...
3672 (tui_dummy_print_frame_info_listing_hook): ... this.
3673 (tui_before_prompt): New function.
3674 (tui_normal_stop): New function.
3675 (tui_before_prompt_observer): New observer.
3676 (tui_normal_stop_observer): New observer.
3677 (tui_install_hooks): Set
3678 deprecated_print_frame_info_listing_hook to
3679 tui_dummy_print_frame_info_listing_hook. Register
3680 tui_before_prompt_observer to call tui_before_prompt and
3681 tui_normal_stop_observer to call tui_normal_stop. Remove
3682 reference to deprecated_selected_frame_level_changed_hook.
3683 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
3684 and tui_normal_stop_observer. Remove reference to
3685 deprecated_selected_frame_level_changed_hook.
3686
b5fca6d7
PP
36872015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3688
3689 PR tui/13378
3690 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
3691 return an int instead of void. Return whether the locator
3692 window has changed.
3693 (tui_show_frame_info): If the locator info has not changed, then
3694 bail out early to avoid refreshing the windows.
3695
c45613e3
PP
36962015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3697
3698 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
3699 LOCATOR_WIN to tui_alloc_content.
3700
7b9be803
YQ
37012015-06-30 Yao Qi <yao.qi@linaro.org>
3702
3703 PR tdep/18605
3704 * arm-tdep.c (arm_get_next_pc_raw): Break for media
3705 instructions.
3706
fd6e021d
KB
37072015-06-29 Kevin Buettner <kevinb@redhat.com>
3708
78ab7e9d
KB
3709 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
3710 (rx_dwarf_reg_to_regnum): New function.
3711 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
3712 unwinding.
fd6e021d 3713
28bf096c
PA
37142015-06-29 Pedro Alves <palves@redhat.com>
3715
3716 PR threads/18127
3717 * infcall.c (run_inferior_call): On infcall success, if the thread
3718 was marked stopped before, reset it back to stopped.
3719 * infrun.c (resume): Don't suppress the set_running calls when
3720 doing an infcall.
3721 (normal_stop): Only discard the finish_thread_state cleanup if the
3722 infcall succeeded.
3723
2880b51c 37242015-06-29 Pierre Langlois <pierre.langlois@arm.com>
1451ea7d
PL
3725
3726 * MAINTAINERS (Write After Approval): Update my email address.
3727
ee93cd5e
KS
37282015-06-26 Keith Seitz <keiths@redhat.com>
3729 Doug Evans <dje@google.com>
3730
3731 PR 16253
3732 * block.c (block_lookup_symbol): For non-function blocks,
3733 continue to search for a symbol with an exact domain match
3734 Otherwise, return any previously found "best domain" symbol.
3735 (block_lookup_symbol_primary): Likewise.
3736
fc637f04
PP
37372015-06-26 Patrick Palka <patrick@parcs.ath.cx>
3738
3739 * NEWS: Mention the new option "history remove-duplicates".
3740 * top.c (history_remove_duplicates): New static variable.
3741 (show_history_remove_duplicates): New static function.
3742 (gdb_add_history): Conditionally remove duplicate history
3743 entries.
3744 (init_main): Add "history remove-duplicates" option.
3745
2e52ae68
PP
37462015-06-26 Patrick Palka <patrick@parcs.ath.cx>
3747
3748 * tui/tui-win.c (focus_completer): New static function.
3749 (_initialize_tui_win): Set the completion function of the
3750 "focus" command to focus_completer.
3751
6e22494e
JK
37522015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3753
3754 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
3755 and language_asm..
3756 * symtab.c (find_function_start_sal): Likewise.
3757
f8773be1
GB
37582015-06-25 Gary Benson <gbenson@redhat.com>
3759
3760 * solib.c (solib_find_1): Set local variable sysroot to NULL if
3761 it is the empty string after trailing slashes have been stripped.
3762
a3be80c3
GB
37632015-06-25 Gary Benson <gbenson@redhat.com>
3764
3765 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
3766 * infrun.c (follow_exec): Likewise.
3767 * remote.c (remote_filesystem_is_local): Likewise.
3768 * solib.c (solib_find_1): Likewise.
3769
32fad71f
KS
37702015-06-24 Keith Seitz <keiths@redhat.com>
3771
3772 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
3773 return value from lrealpath.
3774
87d1b309
MF
37752015-06-24 Mike Frysinger <vapier@gentoo.org>
3776
3777 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
3778
23bf70af
MF
37792015-06-24 Mike Frysinger <vapier@gentoo.org>
3780
3781 * remote-sim.c: Include gdb_bfd.h.
3782 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
3783 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
3784
5cd867b4
YQ
37852015-06-24 Yao Qi <yao.qi@linaro.org>
3786
3787 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
3788 set_gdbarch_get_siginfo_type.
3789 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
3790 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
3791 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3792 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
3793 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
3794 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3795 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
3796 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
3797 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
3798 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
3799
dc06243f
GB
38002015-06-24 Gary Benson <gbenson@redhat.com>
3801
3802 * common/buffer.c (stdint.h): Do not include.
3803 * common/print-utils.c (stdint.h): Likewise.
3804 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
3805 * compile/compile-c-types.c (gdb_assert.h): Likewise.
3806 * ft32-tdep.c (gdb_assert.h): Likewise.
3807 * guile/scm-utils.c (stdint.h): Likewise.
3808 * i386-linux-tdep.c (stdint.h): Likewise.
3809 * i386-tdep.c (stdint.h): Likewise.
3810 * nat/linux-btrace.c (stdint.h): Likewise.
3811 * nat/linux-btrace.h (stdint.h): Likewise.
3812 * nat/linux-ptrace.c (stdint.h): Likewise.
3813 * nat/mips-linux-watch.h (stdint.h): Likewise.
3814 * ppc-linux-nat.c (stdint.h): Likewise.
3815 * python/python-internal.h (stdint.h): Likewise.
3816 * stub-termcap.c (stdlib.h): Likewise.
3817 * target/target.h (stdint.h): Likewise.
3818 * xtensa-linux-nat.c (stdint.h): Likewise.
3819
0fc26caf
PP
38202015-06-23 Patrick Palka <patrick@parcs.ath.cx>
3821
3822 * top.c (init_history): Look at errno after calling strtol to
3823 properly map large GDBHISTSIZE values to infinity.
3824
a38fe4fe
DE
38252015-06-23 Doug Evans <dje@google.com>
3826
3827 * inferior.h (struct inferior_suspend_state): Delete, unused.
3828 All references deleted.
3829
7564fe45
MF
38302015-06-23 Mike Frysinger <vapier@gentoo.org>
3831
3832 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
3833 (microblaze_push_dummy_call): Likewise.
3834 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
3835 and set_gdbarch_push_dummy_call.
3836
0bdb2f78
YQ
38372015-06-23 Yao Qi <yao.qi@linaro.org>
3838
3839 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3840 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
3841 (amd64_linux_store_inferior_registers): Likewise.
3842 * arm-linux-nat.c (fetch_fpregister): Likewise.
3843 (fetch_fpregs, store_fpregister): Likewise.
3844 (store_fpregister, store_fpregs): Likewise.
3845 (fetch_register, fetch_regs): Likewise.
3846 (store_register, store_regs): Likewise.
3847 (fetch_vfp_regs, store_vfp_regs): Likewise.
3848 (arm_linux_read_description): Check have_ptrace_getregset is
3849 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
3850 or TRIBOOL_FALSE.
3851 * i386-linux-nat.c (fetch_xstateregs): Check
3852 have_ptrace_getregset is not TRIBOOL_TRUE.
3853 (store_xstateregs): Likewise.
3854 * linux-nat.c (have_ptrace_getregset): Change its type to
3855 enum tribool.
3856 * linux-nat.h (tribool): New enum.
3857 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
3858 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
3859
18a94d75
DE
38602015-06-19 Doug Evans <dje@google.com>
3861
3862 * NEWS: Mention Sun's version of stabs is no longer supported.
3863 * elfread.c (free_elfinfo): Delete. All uses updated.
3864 (elfstab_offset_sections): Delete. All uses updated.
3865 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
3866 * psympriv.h (partial_symtab) <section_offsets>: Delete.
3867 All uses updated.
3868 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
3869 All callers updated.
3870
124e13d9
SM
38712015-06-18 Simon Marchi <simon.marchi@ericsson.com>
3872
3873 * common/rsp-low.c (needs_escaping): New.
3874 (remote_escape_output): Add unit_size parameter. Refactor to
3875 support multi-byte addressable units. Rename parameters.
3876 * common/rsp-low.h (remote_escape_output): Add unit_size
3877 parameter and rename others. Update doc.
3878 * remote.c (align_for_efficient_write): New.
3879 (remote_write_bytes_aux): Add unit_size parameter and use it.
3880 Rename some variables. Update doc.
3881 (remote_xfer_partial): Get unit size and use it.
3882 (remote_read_bytes_1): Add unit_size parameter and use it.
3883 Rename some variables. Update doc.
3884 (remote_write_bytes): Same.
3885 (remote_xfer_live_readonly_partial): Same.
3886 (remote_read_bytes): Same.
3887 (remote_flash_write): Update call to remote_write_bytes_aux.
3888 (remote_write_qxfer): Update call to remote_escape_output.
3889 (remote_search_memory): Same.
3890 (remote_hostio_pwrite): Same.
3891
6ae88661
LM
38922015-06-17 Luis Machado <lgustavo@codesourcery.com>
3893
3894 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
3895 locations as inserted.
3896 Update and expand comment about permanent locations.
3897 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
3898 Move comment to add_location_to_breakpoint.
3899 (update_global_location_list): Don't error out if a permanent
3900 breakpoint is not marked inserted.
3901 Don't error out if a non-permanent breakpoint location is inserted on
3902 top of a permanent breakpoint.
3903
da4616f6
LM
39042015-06-17 Luis Machado <lgustavo@codesourcery.com>
3905
3906 * breakpoint.c (make_breakpoint_permanent): Remove unused
3907 function.
3908 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
3909
bc460514
PP
39102015-06-17 Patrick Palka <patrick@parcs.ath.cx>
3911
3912 PR gdb/16999
3913 * NEWS: Mention new GDBHISTSIZE behavior.
3914 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
3915 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
3916
b58c513b
PP
39172015-06-17 Patrick Palka <patrick@parcs.ath.cx>
3918
3919 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
3920 * top.c (init_history): Read from GDBHISTSIZE instead of
3921 HISTSIZE.
3922 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
3923
2093d2d3
PP
39242015-06-17 Patrick Palka <patrick@parcs.ath.cx>
3925
3926 * top.c (gdb_safe_append_history): Do not call
3927 history_truncate_file if the history is not stifled.
3928
fc248485
AA
39292015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
3930
3931 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
3932 * syscalls/s390x-linux.xml: Likewise.
3933
4da680ad
ME
39342015-06-16 Michael Eager <eager@eagercon.com>
3935
3936 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
3937
0a75489f
PP
39382015-06-16 Patrick Palka <patrick@parcs.ath.cx>
3939
3940 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
3941 target_terminal_ours_for_output() before calling
3942 tui_show_frame_info(), and restore the original terminal
3943 settings afterwards.
3944
95855ca8
MS
39452015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
3946
3947 * arm-linux-nat.c: Include nat/linux-ptrace.h.
3948
cfc32360
SM
39492015-06-15 Simon Marchi <simon.marchi@ericsson.com>
3950
3951 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
3952 memory unit size.
3953 (mi_cmd_data_write_memory_bytes): Same.
3954
cb6f16cf
SM
39552015-06-15 Simon Marchi <simon.marchi@ericsson.com>
3956
3957 * corefile.c (write_memory): Update doc.
3958 * gdbcore.h (write_memory): Same.
3959
31b7833d
JK
39602015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3961
3962 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
3963 (dump_mapping_p): Use it for parameter filterflags.
3964 (linux_find_memory_regions_full): Use it for variable filterflags.
3965
909c2cda
JK
39662015-06-15 Aleksandar Ristovski <aristovski@qnx.com
3967 Jan Kratochvil <jan.kratochvil@redhat.com>
3968
3969 Merge multiple hex conversions.
3970 * monitor.c: Include rsp-low.h.
3971 (fromhex): Remove definition.
3972
03aef70f
JK
39732015-06-15 Aleksandar Ristovski <aristovski@qnx.com
3974 Jan Kratochvil <jan.kratochvil@redhat.com>
3975
3976 Move utility functions to common/.
3977 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
3978 Move defs to common/common-utils.c.
3979 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
3980 (skip_to_space_const): Move decls to common/common-utils.h.
3981 * common/common-defs.h: Move include of common-types.h before
3982 common-utils.h.
3983 * common/common-utils.c: Include host-defs.h and ctype.h.
3984 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
3985 from utils.c.
3986 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
3987 cli/cli-utils.c.
3988 * common/common-utils.h (strtoulst): Move decl from utils.h.
3989 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
3990 Move from cli/cli-utils.h.
3991 * common/host-defs.h: Include limits.h.
3992 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
3993 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
3994 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
3995 common/common-utils.h.
3996 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
3997 (strtoulst): Move to common/common-utils.c.
3998 * utils.h (strtoulst): Moved decl to common/common-utils.h.
3999
d1168cc1
YQ
40002015-06-15 Yao Qi <yao.qi@linaro.org>
4001
4002 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4003
c74f7d1c
JT
40042015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
4005
4006 * build-id.c: Don't include elf-bfd.h.
4007 (build_id_bfd_get): Use bfd_build_id.
4008 (build_id_verify): Ditto.
4009 * build-id.h: Ditto.
4010 (find_separate_debug_file_by_buildid): Ditto.
4011 * python/py-objfile.c: Don't include elf-bfd.h.
4012 (objfpy_get_build_id) Use bfd_build_id.
4013 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
4014 * coffread.c: Include build-id.h.
4015 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
4016
f20c58f5
JT
40172015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4018
4019 * windows-nat.c (do_windows_fetch_inferior_registers)
4020 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
4021 conditional with __CYGWIN__.
4022
51f0e40d
AB
40232015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
4024
4025 * completer.c: Add arch-utils.h include.
4026 (enum reg_completer_targets): New enum.
4027 (reg_or_group_completer_1): New function containing old
4028 reg_or_group_completer, add and use new parameter to control what
4029 is completed on. Use get_current_arch rather than architecture of
4030 currently selected frame.
4031 (reg_or_group_completer): Call new reg_or_group_completer_1.
4032 (reggroup_completer): Call new reg_or_group_completer_1.
4033 * completer.h (reggroup_completer): Add declaration.
4034 * tui/tui-regs.c: Add 'completer.h' include.
4035 (tui_reg_next_command): Renamed to...
4036 (tui_reg_next): ...this. Adjust parameters and return rather than
4037 display new group.
4038 (tui_reg_prev_command): Renamed to...
4039 (tui_reg_prev): ...this. Adjust parameters and return rather than
4040 display new group.
4041 (tui_reg_float_command): Delete.
4042 (tui_reg_general_command): Delete.
4043 (tui_reg_system_command): Delete.
4044 (tui_reg_command): Rewrite to perform switching of register group.
4045 Add header comment.
4046 (tuireglist): Remove.
4047 (tui_reggroup_completer): New function.
4048 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
4049 creation of 'tui reg' command.
4050 * NEWS: Add comment about 'tui reg' changes.
4051
d309493c
SM
40522015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4053
4054 * target.c (target_read): Consider addressable unit size when
4055 reading from a memory object.
4056 (read_memory_robust): Same.
4057 (read_whatever_is_readable): Same.
4058 (target_write_with_progress): Consider addressable unit size
4059 when writing to a memory object.
4060 * target.h (target_read): Update documentation.
4061 (target_write): Add documentation.
4062
3374165f
SM
40632015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4064
4065 * arch-utils.h (default_addressable_memory_unit_size): New.
4066 * arch-utils.c (default_addressable_memory_unit_size): New.
4067 * gdbarch.sh (addressable_memory_unit_size): New.
4068 * gdbarch.h: Re-generate.
4069 * gdbarch.c: Re-generate.
4070
279a6fed
SM
40712015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4072
4073 * target.c (target_read): Rename variables and use
4074 TARGET_XFER_E_IO.
4075 (target_read_with_progress): Same.
4076 (read_memory_robust): Constify parameters and rename
4077 variables.
4078 (read_whatever_is_readable): Constify parameters,
4079 rename variables, adjust formatting.
4080 * target.h (read_memory_robust): Constify parameters.
4081
1e5338b6 40822015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
a1da2672
UW
4083
4084 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
4085 synthetic (non-AltiVec) vector types.
4086 (ppc64_sysv_abi_return_value): Likewise.
4087
98aa42ee
AT
40882015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
4089
4090 PR breakpoints/16465
4091 * breakpoint.c (create_breakpoint): Save extra_string for
4092 pending breakpoints.
4093
966f0aef
WT
40942015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4095
4096 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
4097 and bt_mask to CORE_ADDR.
4098
6449ed0d
GB
40992015-06-11 Gary Benson <gbenson@redhat.com>
4100
4101 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
4102 (mnsh_recv_message): Likewise.
4103
34f8ac9f
WT
41042015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
4105
4106 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
4107 long long int and plongest instead of %ll.
4108
198c808c
GB
41092015-06-11 Gary Benson <gbenson@redhat.com>
4110
4111 * nat/linux-namespaces.c (gdb_wait.h): New include.
4112 (sys/wait.h): Do not include.
4113
e815d2d2
SM
41142015-06-10 Simon Marchi <simon.marchi@ericsson.com>
4115
4116 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
4117 end_sequence is true.
4118
8847cac2
JK
41192015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4120
4121 Code cleanup.
4122 * solib-target.c (library_list_start_list): Use explicit NULL
4123 comparison.
4124
24c05f46
JK
41252015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4126
4127 * solib-target.c (library_list_start_list): Do not dereference
4128 variable version in its initialization. Make the VERSION check handle
4129 NULL.
4130 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
4131
51aad7cc
GB
41322015-06-10 Gary Benson <gbenson@redhat.com>
4133
4134 * NEWS: Announce support for direct access of executable and
4135 shared library files when attaching to inferiors in containers
4136 on GNU/Linux systems.
4137
15a201c8
GB
41382015-06-10 Gary Benson <gbenson@redhat.com>
4139
4140 * remote.c (struct remote_state) <fs_pid>: New field.
4141 (new_remote_state): Initialize the above.
4142 (PACKET_vFile_setfs): New enum value.
4143 (remote_hostio_set_filesystem): New function.
4144 (remote_hostio_open): Call the above.
4145 (remote_hostio_unlink): Likewise.
4146 (remote_hostio_readlink): Likewise.
4147 (_initialize_remote): Register new "set/show remote
4148 hostio-setfs-packet" command.
4149 * NEWS: Announce new vFile:setfs packet.
4150
7a6a1731
GB
41512015-06-10 Gary Benson <gbenson@redhat.com>
4152
4153 * linux-nat.c (nat/linux-namespaces.h): New include.
4154 (fileio.h): Likewise.
4155 (linux_nat_filesystem_is_local): New function.
4156 (linux_nat_fileio_pid_of): Likewise.
4157 (linux_nat_fileio_open): Likewise.
4158 (linux_nat_fileio_readlink): Likewise.
4159 (linux_nat_fileio_unlink): Likewise.
4160 (linux_nat_add_target): Initialize to_filesystem_is_local,
4161 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
4162 (_initialize_linux_nat): New "set/show debug linux-namespaces"
4163 commands.
4164 * NEWS: Mention new "set/show debug linux-namespaces" commands.
4165
07c138c8
GB
41662015-06-10 Gary Benson <gbenson@redhat.com>
4167
4168 * target.h (struct inferior): New forward declaration.
4169 (struct target_ops) <to_filesystem_is_local>: Update comment.
4170 (struct target_ops) <to_fileio_open>: New argument inf.
4171 Update comment. All implementations updated.
4172 (struct target_ops) <to_fileio_unlink>: Likewise.
4173 (struct target_ops) <to_fileio_readlink>: Likewise.
4174 (target_filesystem_is_local): Update comment.
4175 (target_fileio_open): New argument inf. Update comment.
4176 (target_fileio_unlink): Likewise.
4177 (target_fileio_readlink): Likewise.
4178 (target_fileio_read_alloc): Likewise.
4179 (target_fileio_read_stralloc): Likewise.
4180 * target.c (target_fileio_open): New argument inf.
4181 Pass inf to implementation. Update debug printing.
4182 (target_fileio_unlink): Likewise.
4183 (target_fileio_readlink): Likewise.
4184 (target_fileio_read_alloc_1): New argument inf. Pass inf
4185 to target_fileio_open.
4186 (target_fileio_read_alloc): New argument inf. Pass inf to
4187 target_fileio_read_alloc_1.
4188 (target_fileio_read_stralloc): Likewise.
4189 * gdb_bfd.c (inferior.h): New include.
4190 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
4191 argument with new argument "inferior". Pass inferior to
4192 target_fileio_open.
4193 (gdb_bfd_open): Supply inferior argument to
4194 gdb_bfd_iovec_fileio_open.
4195 * linux-tdep.c (linux_info_proc): Supply inf argument to
4196 relevant target_fileio calls.
4197 (linux_find_memory_regions_full): Likewise.
4198 (linux_fill_prpsinfo): Likewise.
4199 * remote.c (remote_filesystem_is_local): Supply inf
4200 argument to remote_hostio_open.
4201 (remote_file_put): Likewise.
4202 (remote_file_get): Likewise.
4203 (remote_file_delete): Supply inf argument to
4204 remote_hostio_unlink.
4205
12e2a5fd
GB
42062015-06-10 Gary Benson <gbenson@redhat.com>
4207
4208 * inf-child.c (inf_child_fileio_open): Replace comment.
4209 (inf_child_fileio_pwrite): Likewise.
4210 (inf_child_fileio_pread): Likewise.
4211 (inf_child_fileio_fstat): Insert blank line before comment.
4212 (inf_child_fileio_close): Replace comment.
4213 (inf_child_fileio_unlink): Likewise.
4214 (inf_child_fileio_readlink): Likewise.
4215 * remote.c (remote_hostio_open): Likewise.
4216 (remote_hostio_pread): Likewise.
4217 (remote_hostio_pwrite): Likewise.
4218 (remote_hostio_close): Likewise.
4219 (remote_hostio_unlink): Likewise.
4220 (remote_hostio_readlink): Likewise.
4221 (remote_hostio_fstat): Likewise.
4222 (remote_filesystem_is_local): Likewise.
4223 * target.c (target_fileio_open): Likewise.
4224 (target_fileio_pwrite): Likewise.
4225 (target_fileio_pread): Likewise.
4226 (target_fileio_fstat): Insert blank line before comment.
4227 (target_fileio_close): Replace comment.
4228 (target_fileio_unlink): Likewise.
4229 (target_fileio_readlink): Likewise.
4230 (target_fileio_read_alloc): Likewise.
4231 (target_fileio_read_stralloc): Likewise.
4232
9bc3a976
GB
42332015-06-10 Gary Benson <gbenson@redhat.com>
4234
4235 * linux-thread-db.c (nat/linux-namespaces.h): New include.
4236 (check_pid_namespace_match): Use linux_ns_same rather than
4237 linux_proc_pid_get_ns to spot PID namespace mismatches.
4238 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
4239 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
4240
4b8b5e72
GB
42412015-06-10 Gary Benson <gbenson@redhat.com>
4242
4243 * configure.ac (AC_CHECK_FUNCS): Add setns.
4244 * config.in: Regenerate.
4245 * configure: Likewise.
4246 * nat/linux-namespaces.h: New file.
4247 * nat/linux-namespaces.c: Likewise.
4248 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
4249 (linux-namespaces.o): New rule.
4250 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
4251 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4252 * config/arm/linux.mh (NATDEPFILES): Likewise.
4253 * config/i386/linux.mh (NATDEPFILES): Likewise.
4254 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4255 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4256 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4257 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4258 * config/mips/linux.mh (NATDEPFILES): Likewise.
4259 * config/pa/linux.mh (NATDEPFILES): Likewise.
4260 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4261 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4262 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4263 * config/s390/linux.mh (NATDEPFILES): Likewise.
4264 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4265 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4266 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4267 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4268
ca095836
GB
42692015-06-10 Gary Benson <gbenson@redhat.com>
4270
4271 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
4272 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
4273 (make_cleanup_close): Likewise.
4274 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
4275 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
4276 (make_cleanup_close): Likewise.
4277
5d9c55d3
JT
42782015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4279
4280 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
4281 from SuspendThread().
4282
040ea00b
JT
42832015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4284
4285 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
4286 from OutputDebugString.
4287
7d73c23c
WT
42882015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4289 Mircea Gherzan <mircea.gherzan@intel.com>
4290
4291 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
4292 MPX_BT_MASK_32): New macros.
4293 (i386_mpx_set_bounds): New function that implements
4294 the command "set-mpx-bound".
4295 (i386_mpx_enabled): Helper function to test MPX availability.
4296 (i386_mpx_bd_base): Helper function to calculate the base directory
4297 address.
4298 (i386_mpx_get_bt_entry): Helper function to access a bound
4299 table entry.
4300 (i386_mpx_print_bounds): Effectively display bound information.
4301 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
4302 "show mpx".
4303 (_initialize_i386_tdep):
4304 Add "bound" to the commands "show mpx" and "set mpx" commands.
4305 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
4306 and "show mpx" commands.
4307 * NEWS: List new commands for MPX support.
4308
3ac2e371
GB
43092015-06-09 Gary Benson <gbenson@redhat.com>
4310
4311 * common/fileio.h (fileio_to_host_mode): New declaration.
4312 * common/fileio.c (fileio_to_host_mode): New Function.
4313 * inf-child.c (inf_child_fileio_open): Process mode argument
4314 with fileio_to_host_mode.
4315
ecef18c5
GB
43162015-06-09 Gary Benson <gbenson@redhat.com>
4317
4318 * common/fileio.c (fileio_mode_pack): Fix preprocessor
4319 conditional.
4320
e3dd7556
GB
43212015-06-05 Gary Benson <gbenson@redhat.com>
4322
4323 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
4324 * remote.c (remote_filesystem_is_local): ...here.
4325
5b74bf7d
YQ
43262015-06-04 Yao Qi <yao.qi@linaro.org>
4327
4328 * gdbarch.c: Regenerate it.
4329
7f361056
JK
43302015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4331
4332 * arch-utils.c (default_infcall_munmap): New.
4333 * arch-utils.h (default_infcall_munmap): New declaration.
4334 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
4335 (munmap_list_free, munmap_listp_free_cleanup): New.
4336 (struct setup_sections_data): Add field munmap_list_headp.
4337 (setup_sections): Call munmap_list_add.
4338 (compile_object_load): New variable munmap_list_head, initialize
4339 setup_sections_data.munmap_list_headp, return munmap_list_head.
4340 * compile/compile-object-load.h (struct munmap_list): New declaration.
4341 (struct compile_module): Add field munmap_list_head.
4342 (munmap_list_free): New declaration.
4343 * compile/compile-object-run.c (struct do_module_cleanup): Add field
4344 munmap_list_head.
4345 (do_module_cleanup): Call munmap_list_free.
4346 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
4347 * gdbarch.c: Regenerate.
4348 * gdbarch.h: Regenerate.
4349 * gdbarch.sh (infcall_munmap): New.
4350 * linux-tdep.c (linux_infcall_munmap): New.
4351 (linux_init_abi): Install it.
4352
3b462ec2
SM
43532015-06-02 Simon Marchi <simon.marchi@ericsson.com>
4354
4355 PR gdb/15564
4356 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
4357
8d683210
YQ
43582015-06-02 Yao Qi <yao.qi@linaro.org>
4359
4360 * i386-linux-nat.c: Include linux-nat.h.
4361
e0619de6
JK
43622015-06-01 Andreas Schwab <schwab@linux-m68k.org>
4363 Jan Kratochvil <jan.kratochvil@redhat.com>
4364
4365 PR symtab/18392
4366 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
4367 assertion.
4368 * dwarf2loc.c (chain_candidate): Likewise.
4369
bd16da51
YQ
43702015-06-01 Yao Qi <yao.qi@linaro.org>
4371
4372 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
4373 (store_vfp_regs): Use PTRACE_SETREGSET.
4374
df9d7ec9
YQ
43752015-06-01 Yao Qi <yao.qi@linaro.org>
4376
4377 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
4378 (fetch_fpregs): Likewise.
4379 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
4380 (store_fpregs): Likewise.
4381
10766686
YQ
43822015-06-01 Yao Qi <yao.qi@linaro.org>
4383
4384 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
4385 (fetch_regs): Likewise.
4386 (store_regs): Use PTRACE_SETREGSET.
4387 (store_register): Likewise.
4388
7efe48d1
YQ
43892015-06-01 Yao Qi <yao.qi@linaro.org>
4390
4391 * arm-linux-nat.c (arm_linux_read_description): Check whether
4392 kernel supports PTRACE_GETREGSET.
4393
433bbbf8
YQ
43942015-06-01 Yao Qi <yao.qi@linaro.org>
4395
4396 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
4397 * linux-nat.c: ... here.
4398 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
4399 to ...
4400 * linux-nat.h: ... here.
4401
ca9b78ce
YQ
44022015-06-01 Yao Qi <yao.qi@linaro.org>
4403
4404 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
4405 * i386-linux-nat.c: Likewise.
4406 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
4407 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
4408 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4409 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
4410 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4411
99cee7b7
EZ
44122015-05-30 Eli Zaretskii <eliz@gnu.org>
4413
4414 * go32-nat.c (go32_xfer_memory): Fix the return value to be
4415 compatible to what read_child and write_child return. This
4416 unbreaks that DJGPP build of GDB which was broken since v7.7.
4417
2147f5bd
MG
44182015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
4419
4420 * MAINTAINERS (Write After Approval): Add Martin Galvan.
4421
c8f6c93c
RM
44222015-05-29 Roland McGrath <mcgrathr@google.com>
4423
4424 PR gdb/18464
4425 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
4426 rather than internal_error for an unrecognized value.
4427
8c6a948d
MF
44282015-05-29 Max Filippov <jcmvbkbc@gmail.com>
4429
4430 * xtensa-tdep.c (xtensa_pseudo_register_read)
4431 (xtensa_pseudo_register_write): Don't alias last pseudo register
4432 to a1.
4433
8dd06f7a
DB
44342015-05-28 Don Breazeal <donb@codesourcery.com>
4435
4436 * infrun.c (follow_fork_inferior): Ensure the use of
4437 process-style ptids (pid,0,0) in verbose/debug "Detaching"
4438 messages.
4439
a051152b
DE
44402015-05-28 Doug Evans <dje@google.com>
4441
4442 * dwarf2read.c (record_line_ftype): Remove, duplicate.
4443
a56cc1ce
YQ
44442015-05-28 Yao Qi <yao.qi@linaro.org>
4445
4446 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
4447 (arm_linux_fetch_inferior_registers): Use
4448 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
4449 (arm_linux_store_inferior_registers): Likewise.
4450 (arm_linux_read_description): Don't set
4451 arm_linux_has_wmmx_registers.
4452 * arm-tdep.c (arm_gdbarch_init): Set
4453 tdep->have_wmmx_registers according target descriptions.
4454 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
4455 field.
4456
330c6ca9
YQ
44572015-05-28 Yao Qi <yao.qi@linaro.org>
4458
4459 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
4460 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
4461 instead of arm_linux_vfp_register_count.
4462 (store_vfp_regs): Likewise.
4463 (arm_linux_fetch_inferior_registers): Likewise.
4464 (arm_linux_store_inferior_registers): Likewise.
4465 (arm_linux_read_description): Don't set
4466 arm_linux_vfp_register_count.
4467 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
4468 Adjust.
4469 * arm-tdep.c (arm_gdbarch_init): Add assert on
4470 vfp_register_count.
4471 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
4472 field to vfp_register_count. All users updated.
4473
d403db27
KH
44742015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
4475
4476 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
4477 ELFOSABI_GNU binaries.
4478
d9b3de22
DE
44792015-05-27 Doug Evans <dje@google.com>
4480
4481 * dwarf2read.c (lnp_state_machine): New typedef.
4482 (lnp_reader_state): New typedef.
4483 (dwarf_record_line_1): Renamed from dwarf_record_line.
4484 All callers updated.
4485 (dwarf_record_line): New function.
4486 (init_lnp_state_machine): New function.
4487 (check_line_address): Replace p_record_line parameter with state.
4488 All callers updated.
4489 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
4490 Update to record state in lnp_state_machine.
4491
924c2928
DE
44922015-05-27 Doug Evans <dje@google.com>
4493
4494 * dwarf2read.c (record_line_ftype): New typedef.
4495 (check_line_address): New function.
4496 (dwarf_decode_lines_1): Call it.
4497
27e0867f
DE
44982015-05-27 Doug Evans <dje@google.com>
4499
4500 * NEWS: Mention "set debug dwarf-line".
4501 * dwarf2read.c (dwarf_line_debug): New static global.
4502 (add_include_dir): Add debug dwarf-line support.
4503 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
4504 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
4505
4dcabcc2
DE
45062015-05-27 Doug Evans <dje@google.com>
4507
4508 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
4509 All callers updated.
4510 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
4511 * cp-support.h (cp_lookup_nested_symbol): Update.
4512
b2e2f908
DE
45132015-05-27 Doug Evans <dje@google.com>
4514
4515 PR symtab/18258
4516 * block.c (block_find_symbol): New function.
4517 (block_find_non_opaque_type): Ditto.
4518 (block_find_non_opaque_type_preferred): Ditto.
4519 * block.h (block_symbol_matcher_ftype): New typedef.
4520 (block_find_symbol): Declare.
4521 (block_find_non_opaque_type): Ditto.
4522 (block_find_non_opaque_type_preferred): Ditto.
4523 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
4524 * psymtab.c (psym_lookup_symbol): Ditto.
4525 * symtab.c (basic_lookup_transparent_type_1): New function.
4526 (basic_lookup_transparent_type): Call it.
4527
f62fce35
YQ
45282015-05-27 Yao Qi <yao.qi@linaro.org>
4529
4530 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
4531 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
4532
5d98d3cd
YQ
45332015-05-27 Yao Qi <yao.qi@linaro.org>
4534
4535 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
4536 before operator &&.
4537 (aarch64_record_load_store): Likewise.
4538
82c7be31
DE
45392015-05-26 Doug Evans <dje@google.com>
4540
4541 PR c++/18141, c++/18417.
4542 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
4543 a typedef.
4544
b4f54984
DE
45452015-05-26 Doug Evans <dje@google.com>
4546
4547 * NEWS: Add entries for command renamings.
4548 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
4549 All uses updated.
4550 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
4551 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
4552 All uses updated.
4553 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
4554 All callers updated. Fix spelling of DWARF in help text.
4555 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
4556 All uses updated.
4557 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
4558 All uses updated.
4559 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
4560 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
4561 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
4562 All uses updated.
4563 (show_dwarf_always_disassemble): Renamed from
4564 show_dwarf2_always_disassemble. All callers updated.
4565 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
4566 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
4567 "set/show dwarf max-cache-age". Rename
4568 "set/show dwarf2 always-disassemble" to
4569 "set/show dwarf always-disassemble". Rename
4570 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
4571 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
4572
4ea6efe9
DE
45732015-05-26 Doug Evans <dje@google.com>
4574
4575 PR python/18438
4576 * python/py-lazy-string.c (stpy_convert_to_value): Use
4577 gdbpy_gdb_memory_error not PyExc_MemoryError.
4578 (gdbpy_create_lazy_string_object): Ditto.
4579
b93fd21d
AB
45802015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
4581
4582 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
4583
55b40027
AB
45842015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
4585
4586 * tui/tui-regs.c (tui_reg_prev_command): New function.
4587 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
4588 * reggroups.c (reggroup_prev): New function.
4589 * reggroups.h (reggroup_prev): Add declaration. Update comment.
4590
99afc88b
OJ
45912015-05-26 Omair Javaid <omair.javaid@linaro.org>
4592 Yao Qi <yao.qi@linaro.org>
4593
4594 * aarch64-linux-tdep.c: Include linux-record.h and
4595 record-full.h.
4596 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
4597 (aarch64_syscall): New enum.
4598 (aarch64_canonicalize_syscall): New function.
4599 (aarch64_all_but_pc_registers_record): New function.
4600 (aarch64_linux_syscall_record): New function.
4601 (aarch64_linux_init_abi): Install AArch64 process record
4602 handler. Update to handle syscall recording.
4603 * aarch64-tdep.c: Include record.h and record-full.h.
4604 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
4605 (struct aarch64_mem_r): Define.
4606 (aarch64_record_result): New enum.
4607 (struct insn_decode_record): Define.
4608 (insn_decode_record): New typedef.
4609 (aarch64_record_data_proc_reg): New function.
4610 (aarch64_record_data_proc_imm): New function.
4611 (aarch64_record_branch_except_sys): New function.
4612 (aarch64_record_load_store): New function.
4613 (aarch64_record_data_proc_simd_fp): New function.
4614 (aarch64_record_asimd_load_store): New function.
4615 (aarch64_record_decode_insn_handler): New function.
4616 (deallocate_reg_mem): New function.
4617 (aarch64_process_record): New function.
4618 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
4619 New field.
4620 (aarch64_process_record): New extern declaration.
4621 * configure.tgt: Add linux-record.o to gdb_target_obs.
4622 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
4623
c16a3f52
OJ
46242015-05-26 Omair Javaid <omair.javaid@linaro.org>
4625
4626 * NEWS: Add a note on process record-replay support on aarch64*-linux*
4627 targets.
4628
c9cf6e20
MG
46292015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
4630
4631 * amd64-tdep.c: Replace in_function_epilogue_p with
4632 stack_frame_destroyed_p throughout.
4633 * arch-utils.c: Ditto.
4634 * arch-utils.h: Ditto.
4635 * arm-tdep.c: Ditto.
4636 * breakpoint.c: Ditto.
4637 * gdbarch.sh: Ditto.
4638 * hppa-tdep.c: Ditto.
4639 * i386-tdep.c: Ditto.
4640 * mips-tdep.c: Ditto.
4641 * nios2-tdep.c: Ditto.
4642 * rs6000-tdep.c: Ditto.
4643 * s390-linux-tdep.c: Ditto.
4644 * score-tdep.c: Ditto.
4645 * sh-tdep.c: Ditto.
4646 * sparc-tdep.c: Ditto.
4647 * sparc-tdep.h: Ditto.
4648 * sparc64-tdep.c: Ditto.
4649 * spu-tdep.c: Ditto.
4650 * tic6x-tdep.c: Ditto.
4651 * tilegx-tdep.c: Ditto.
4652 * xstormy16-tdep.c: Ditto.
4653 * gdbarch.c, gdbarch.h: Re-generated.
4654
a4ea0946
AB
46552015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4656
4657 * NEWS: Mention 'tui enable' and 'tui disable'.
4658 * tui/tui.c (tui_enable_command): New function.
4659 (tui_disable_command): New function.
4660 (_initialize_tui): New function.
4661
b75c69bb
AB
46622015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4663
4664 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
4665
c1b009ee
AB
46662015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4667
4668 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
4669 buf_ptr is freed.
4670
880d1e40
AB
46712015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4672
4673 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
4674 into ...
4675 (tui_set_layout_for_display_command): ...here, before calling
4676 tui_set_layout. Only set the layout if gdb has not already
4677 entered the TUI_FAILURE state.
4678
a0145030
AB
46792015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4680
4681 * tui/tui-layout.c (layout_completer): New function.
4682 (_initialize_tui_layout): Set completer on layout command.
4683
7bd0be3a
AB
46842015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4685
4686 * tui/tui-layout.c (tui_set_layout): Remove
4687 tui_register_display_type parameter. Remove all checking of this
4688 parameter, and reindent function. Update header comment.
4689 (tui_set_layout_for_display_command): Rename to...
4690 (tui_set_layout_by_name): ...this, and don't check for different
4691 register class types, don't pass a tui_register_display_type to
4692 tui_set_layout. Update header comment.
4693 (layout_names): Remove register set specific names.
4694 * tui/tui-layout.h (tui_set_layout): Remove
4695 tui_register_display_type parameter.
4696 * tui/tui.c (tui_rl_change_windows): Don't pass a
4697 tui_register_display_type to tui_set_layout.
4698 (tui_rl_delete_other_windows): Likewise.
4699 (tui_enable): Likewise.
4700 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
4701 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
4702 (TUI_GENERAL_REGS_NAME): Remove.
4703 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
4704 (TUI_SPECIAL_REGS_NAME): Remove.
4705 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
4706 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
4707 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
4708 (enum tui_register_display_type): Remove.
4709 (struct tui_layout_def): Remove regs_display_type and
4710 float_regs_display_type fields.
4711 (struct tui_data_info): Remove regs_display_type field.
4712 (tui_layout_command): Use new name for
4713 tui_set_layout_for_display_command.
4714 * tui/tui-data.c (layout_def): Don't initialise removed fields.
4715 (tui_clear_win_detail): Don't initialise removed fields of
4716 win_info.
4717 * tui/tui-regs.c (tui_show_registers): Use new name for
4718 tui_set_layout_for_display_command.
4719 * tui/tui.h (tui_set_layout_for_display_command): Rename
4720 declaration to...
4721 (tui_set_layout_by_name): ...this.
4722 * printcmd.c (display_command): Remove tui related layout call,
4723 and reindent.
4724
0b6e5e10
JB
47252015-05-20 Joel Brobecker <brobecker@adacore.com>
4726
4727 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
4728 (handle_inferior_event): New function.
4729
1da0522e
JB
47302015-05-20 Joel Brobecker <brobecker@adacore.com>
4731
4732 * ada-lang.c (to_fixed_array_type): Rename local variable
4733 typename into type_name.
4734
5fe75eec
JK
47352015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4736
4737 Fix ASAN crash for gdb.compile/compile.exp.
4738 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
4739
a4063588
JK
47402015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4741
4742 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
4743 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
4744 * compile/compile-object-load.c (setup_sections, compile_object_load):
4745 Likewise.
4746 * compile/compile.c (compile_to_object): Likewise.
4747
37442ce1
DE
47482015-05-16 Doug Evans <xdje42@gmail.com>
4749
4750 * NEWS: Mention support for unbuffered Guile memory ports.
4751 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
4752 (ioscm_lseek_address): Improve overflow calculation.
4753 (gdbscm_memory_port_fill_input): Add assert.
4754 (gdbscm_memory_port_write): Handle unbuffered ports.
4755 Handle large writes identical to Guile's fport_write.
4756 (gdbscm_memory_port_seek): Fix seeking past end check.
4757 (gdbscm_memory_port_close): Handle closing unbuffered port.
4758 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
4759 (ioscm_init_memory_port): Handle unbuffered ports.
4760 (ioscm_reinit_memory_port): Ditto.
4761 (ioscm_init_memory_port): Update size calculation.
4762 (gdbscm_open_memory): Support zero sized ports.
4763
d976bace
JK
47642015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4765
4766 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
4767 variable compiler warnings.
4768
4d18dfad
JK
47692015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4770
4771 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
4772
36de76f9
JK
47732015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4774 Phil Muldoon <pmuldoon@redhat.com>
4775
4776 * NEWS (Changes since GDB 7.9): Add compile print.
4777 * compile/compile-c-support.c (add_code_header, add_code_footer)
4778 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
4779 COMPILE_I_PRINT_VALUE_SCOPE.
4780 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
4781 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
4782 New.
4783 * compile/compile-object-load.c: Include block.h.
4784 (get_out_value_type): New function.
4785 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
4786 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
4787 OUT_VALUE_TYPE.
4788 * compile/compile-object-load.h (struct compile_module): Add fields
4789 out_value_addr and out_value_type.
4790 * compile/compile-object-run.c: Include valprint.h and compile.h.
4791 (struct do_module_cleanup): Add fields out_value_addr and
4792 out_value_type.
4793 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
4794 COMPILE_I_PRINT_VALUE_SCOPE.
4795 (compile_object_run): Propagate out_value_addr and out_value_type.
4796 Pass OUT_VALUE_ADDR.
4797 * compile/compile.c: Include valprint.h.
4798 (compile_print_value, compile_print_command): New functions.
4799 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
4800 (_initialize_compile): Update compile code help text. Install
4801 compile_print_command.
4802 * compile/compile.h (compile_print_value): New prototype.
4803 * defs.h (enum compile_i_scope_types): Add
4804 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
4805
83d3415e
JK
48062015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4807
4808 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
4809 Rely on its parameter count.
4810 (compile_object_load): Replace lookup_minimal_symbol_text by
4811 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
4812 return value.
4813 * compile/compile-object-load.h (struct compile_module): Replace
4814 func_addr by func_sym.
4815 * compile/compile-object-run.c: Include block.h.
4816 (compile_object_run): Reset module variable after it is freed. Use
4817 FUNC_SYM instead of FUNC_ADDR. Rely on it.
4818
3a9558c4
JK
48192015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4820
4821 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
4822 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
4823 (c_compute_program): Call generate_register_struct after typedefs.
4824 * compile/compile-loc2c.c (push, pushf_register_address)
4825 (pushf_register): Cast to GCC_UINTPTR.
4826 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
4827 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
4828 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
4829 * compile/compile.c (_initialize_compile): Enable warnings for
4830 COMPILE_ARGS.
4831
5c65b58a
JK
48322015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4833
4834 * cli/cli-script.c (execute_control_command): Update
4835 eval_compile_command caller.
4836 * compile/compile-object-load.c (compile_object_load): Add parameters
4837 scope and scope_data. Set them.
4838 * compile/compile-object-load.h (struct compile_module): Add fields
4839 scope and scope_data.
4840 (compile_object_load): Add parameters scope and scope_data.
4841 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
4842 scope and scope_data.
4843 (compile_object_run): Propagate the fields scope and scope_data.
4844 * compile/compile.c (compile_file_command, compile_code_command):
4845 Update eval_compile_command callers.
4846 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
4847 * compile/compile.h (eval_compile_command): Add parameter scope_data.
4848 * defs.h (struct command_line): Add field scope_data.
4849
1c88ceb1
JK
48502015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4851
4852 * printcmd.c (struct format_data): Move it to valprint.h.
4853 (print_command_parse_format, print_value): New functions from ...
4854 (print_command_1): ... here. Call them.
4855 * valprint.h (struct format_data): Move it here from printcmd.c.
4856 (print_command_parse_format, print_value): New declarations.
4857
0b738f27
JK
48582015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4859
4860 * compile/compile-object-load.c (compile_object_load): Add
4861 COMPILE_DEBUG message.
4862
aa715135
JG
48632015-05-15 Jerome Guitton <guitton@adacore.com>
4864
4865 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
4866 index to get element instead of enum value.
4867 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
4868 of index to compute length, but enum values to compute bounds.
4869 (ada_array_length): Use enum position of index instead of enum value.
4870 (pos_atr): Move position computation to...
4871 (ada_evaluate_subexp): Use enum values to compute bounds.
4872 * gdbtypes.c (discrete_position): ...this new function.
4873 * gdbtypes.h (discrete_position): New function declaration.
4874 * valprint.c (val_print_array_elements): Call discrete_position
4875 to handle array indexed by non-contiguous enumeration types.
4876
931e5bc3
JG
48772015-05-15 Jerome Guitton <guitton@adacore.com>
4878
4879 * ada-lang.c (find_parallel_type_by_descriptive_type):
4880 Go through typedefs during lookup.
4881 (to_fixed_array_type): Add support for non-bit packed arrays
4882 as variable-length fields.
4883
4e63d0ac
PA
48842015-05-15 Pedro Alves <palves@redhat.com>
4885 Simon Marchi <simon.marchi@ericsson.com>
4886
4887 * event-loop.c (gdb_notifier) <next_file_handler,
4888 next_poll_fds_index>: New fields.
4889 (get_next_file_handler_to_handle_and_advance): New function.
4890 (delete_file_handler): If deleting the next file handler to
4891 handle, advance to the next file handler.
4892 (gdb_wait_for_event): Bail early if no event fired. Poll file
4893 handlers in round-robin fashion.
4894
52e48b36
PA
48952015-05-15 Pedro Alves <palves@redhat.com>
4896
4897 * linux-tdep.c (linux_find_memory_regions_full): Rename local
4898 'private' to 'priv'.
4899
2465e12e
PA
49002015-05-15 Pedro Alves <palves@redhat.com>
4901
4902 * nat/linux-nat.h: Include "target/waitstatus.h".
4903
13fa0398
YZ
49042015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
4905
4906 * python/py-unwind.c (struct reg_info): Move out of ...
4907 (struct cached_frame_info): ... this scope.
4908 (pending_frame_object_type, unwind_info_object_type): Make extern.
4909
9cd4d857
JB
49102015-05-15 Joel Brobecker <brobecker@adacore.com>
4911
4912 * ada-lang.c (ada_value_primitive_packed_val): Make sure
4913 accumSize is never negative.
4914
e3555239
PP
49152015-05-14 Patrick Palka <patrick@parcs.ath.cx>
4916
4917 * tui/tui-command.c: Remove include of <ctype.h>.
4918 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
4919
08a76f8a
MG
49202015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
4921
4922 * dwarf2read.c (die_needs_namespace): Return 1 for
4923 DW_TAG_inlined_subroutine.
4924
bd49952b
JK
49252015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4926
4927 * regcache.c (regcache_cpy_no_passthrough): New declaration.
4928 (regcache_cpy_no_passthrough): Make it static, add function comment.
4929 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
4930 (regcache_cpy_no_passthrough): Remove declaration.
4931
46c03469
JK
49322015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4933
4934 * gdbthread.h (struct thread_control_state): Update comment for
4935 proceed_to_finish.
4936 * infcall.c (run_inferior_call): Update comment about
4937 proceed_to_finish.
4938 * infcmd.c (get_return_value): Update comment about stop_registers.
4939 (finish_forward): Update comment about proceed_to_finish.
4940 * infrun.c (stop_registers): Remove.
4941 (clear_proceed_status, normal_stop): Remove stop_registers handling.
4942 * infrun.h (stop_registers): Remove.
4943
8a6c4031
JK
49442015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4945
4946 * infcall.c (struct dummy_frame_context_saver)
4947 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
4948 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
4949 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
4950 New.
4951 (call_function_by_hand_dummy): Move discard_cleanups of
4952 inf_status_cleanup before dummy_frame_push. Call
4953 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
4954 Use dummy_frame_context_saver_get_regs instead of stop_registers.
4955 * infcall.h (struct dummy_frame_context_saver)
4956 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
4957 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
4958 New declarations.
4959 * infcmd.c: Include infcall.h.
4960 (get_return_value): Add parameter ctx_saver, use it instead of
4961 stop_registers.
4962 (print_return_value): Add parameter ctx_saver, pass it.
4963 (struct finish_command_continuation_args): Add field ctx_saver.
4964 (finish_command_continuation): Update print_return_value caller.
4965 (finish_command_continuation_free_arg): Free also ctx_saver.
4966 (finish_forward): Call dummy_frame_context_saver_setup.
4967 * inferior.h (struct dummy_frame_context_saver): New declaration.
4968 (get_return_value): Add parameter ctx_saver.
4969 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
4970 get_return_value caller.
4971
10989690
JK
49722015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4973
4974 * dummy-frame.c (struct dummy_frame_dtor_list): New.
4975 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
4976 (remove_dummy_frame): Process dtor_list.
4977 (pop_dummy_frame): Process dtor_list.
4978 (register_dummy_frame_dtor): Maintain dtor_list.
4979 (find_dummy_frame_dtor): Handle dtor_list.
4980 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
4981 Update comments.
4982
5e970501
JK
49832015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4984
4985 * compile/compile-object-run.c (do_module_cleanup): Add parameter
4986 registers_valid.
4987 (compile_object_run): Update do_module_cleanup caller.
4988 * dummy-frame.c: Include infcall.h.
4989 (struct dummy_frame): Update dtor comment.
4990 (remove_dummy_frame): Call dtor.
4991 (pop_dummy_frame): Update dtor caller.
4992 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
4993 registers_valid.
4994
1c4eb778
JB
49952015-05-13 Joel Brobecker <brobecker@adacore.com>
4996
4997 GDB 7.9.1 released.
4998
f5f85ab9
JB
49992015-05-13 Joel Brobecker <brobecker@adacore.com>
5000
5001 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
5002 Xmethods now being able to specify a result type to that new
5003 sectioin.
5004
242cd84c
PP
50052015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5006
5007 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5008 first before resizing the window.
e3555239 5009 * tui/tui.c (tui_enable): Likewise.
242cd84c
PP
5010
50112015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
558e5469
JK
5012
5013 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
5014 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5015 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
5016 dummy_dtor parameter.
5017 * infcall.h: Include dummy-frame.h.
5018 (call_function_by_hand_dummy_dtor_ftype): Remove.
5019 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
5020 parameter.
5021
ebfd00d2
PP
50222015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5023
5024 PR gdb/17820
5025 * top.c (history_size_setshow_var): Change type to signed.
5026 Initialize to -2. Update documentation.
5027 (set_readline_history_size): Define.
5028 (set_history_size_command): Use it. Remove logic for handling
5029 out-of-range sizes.
5030 (init_history): Use set_readline_history_size(). Test for a
5031 value of -2 instead of 0 when determining whether to set a
5032 default history size.
5033 (init_main): Decode the argument of the "size" command as a
5034 zuinteger_unlimited.
5035
83769d0b
DE
50362015-05-12 Doug Evans <dje@google.com>
5037
5038 * dwarf2read.c (struct file_entry): Tweak comments.
5039 (get_debug_line_section): Tweak comments.
5040
0d71eef5
DB
50412015-05-12 Don Breazeal <donb@codesourcery.com>
5042
5043 * NEWS: Announce fork support in the RSP and support
5044 for fork debugging in extended mode.
5045
cbb8991c
DB
50462015-05-12 Don Breazeal <donb@codesourcery.com>
5047
5048 * remote.c (remote_insert_fork_catchpoint): New function.
5049 (remote_remove_fork_catchpoint): New function.
5050 (remote_insert_vfork_catchpoint): New function.
5051 (remote_remove_vfork_catchpoint): New function.
5052 (pending_fork_parent_callback): New function.
5053 (remove_new_fork_child): New function.
5054 (remote_update_thread_list): Call remote_notif_get_pending_events
5055 and remove_new_fork_child.
5056 (extended_remote_kill): Kill fork child when killing the
5057 parent before follow_fork completes.
5058 (init_extended_remote_ops): Initialize target vector with
5059 new fork catchpoint functions.
5060
c269dbdb
DB
50612015-05-12 Don Breazeal <donb@codesourcery.com>
5062
5063 * remote.c (remove_vfork_event_p): New function.
5064 (remote_follow_fork): Add vfork event type to event checking.
5065 (remote_parse_stop_reply): New stop reasons "vfork" and
5066 "vforkdone" for RSP 'T' Stop Reply Packet.
5067
de0d863e
DB
50682015-05-12 Don Breazeal <donb@codesourcery.com>
5069
5070 * linux-nat.c (linux_nat_ptrace_options): New function.
5071 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
5072 Call linux_nat_ptrace_options and use different argument to
5073 linux_enable_event_reporting.
5074 (_initialize_linux_nat): Delete call to
5075 linux_ptrace_set_additional_flags.
c8f6c93c 5076 * nat/linux-ptrace.c (current_ptrace_options): Rename to
de0d863e
DB
5077 supported_ptrace_options.
5078 (additional_flags): Delete variable.
5079 (linux_check_ptrace_features): Use supported_ptrace_options.
5080 (linux_test_for_tracesysgood, linux_test_for_tracefork):
5081 Likewise, and remove additional_flags check.
5082 (linux_enable_event_reporting): Change 'attached' argument to
5083 'options'. Use supported_ptrace_options.
c8f6c93c 5084 (ptrace_supports_feature): Change comment. Use
de0d863e
DB
5085 supported_ptrace_options.
5086 (linux_ptrace_set_additional_flags): Delete function.
5087 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5088 Delete function prototype.
5089 * remote.c (remote_fork_event_p): New function.
5090 (remote_detach_pid): New function.
5091 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
5092 if doing detach-on-fork.
5093 (remote_follow_fork): New function.
5094 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
5095 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
5096 (init_extended_remote_ops): Initialize to_follow_fork.
5097
89245bc0
DB
50982015-05-12 Don Breazeal <donb@codesourcery.com>
5099
5100 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
5101 from static to extern.
5102 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
5103 * remote.c (anonymous enum): <PACKET_fork_event_feature,
5104 * PACKET_vfork_event_feature>: New enumeration constants.
5105 (remote_protocol_features): Add table entries for new packets.
5106 (remote_query_supported): Add new feature queries to qSupported
5107 packet.
5108
835205d0
GB
51092015-05-12 Gary Benson <gbenson@redhat.com>
5110
5111 * remote.c (remote_add_inferior): Call exec_file_locate_attach
5112 for fake PIDs as well as real ones.
5113 (remote_pid_to_exec_file): Send empty annex if PID is fake.
5114
4c082a81
SC
51152015-05-09 Siva Chandra Reddy <sivachandra@google.com>
5116
5117 * NEWS (Python Scripting): Mention the new gdb.Value methods.
5118 * python/py-value.c (valpy_reference_value): New function.
5119 (valpy_const_value): Likewise.
5120 (value_object_methods): Add new methods.
5121 * value.c (make_cv_value): New function.
5122 * value.h (make_cv_value): Declare.
5123
afa6c9ab
SL
51242015-05-08 Yao Qi <yao@codesourcery.com>
5125 Sandra Loosemore <sandra@codesourcery.com>
5126
5127 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
5128 to 'lh->include_dirs' before accessing to it.
5129 (psymtab_include_file_name): Likewise.
5130 (dwarf_decode_lines_1): Likewise.
5131 (dwarf_decode_lines): Likewise.
5132 (file_file_name): Likewise.
5133
35d54293
SL
51342015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5135
5136 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
5137 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
5138 (nios2_linux_rt_sigreturn_init): Adjust base address of
5139 register save area.
5140
b73c49b7
SL
51412015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5142
5143 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
5144 "trap 31" as the breakpoint instruction on all targets.
5145
dd9f02a0
JK
51462015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5147
5148 * infcmd.c (print_return_value): Remove unused declaration.
5149
6ad395a7
JB
51502015-05-08 Joel Brobecker <brobecker@adacore.com>
5151
5152 * dwarf2read.c (attr_to_dynamic_prop)
5153 <DW_AT_data_member_location>: Use read_type_die isntead of
5154 get_die_type.
5155
8344af1e
JB
51562015-05-08 Joel Brobecker <brobecker@adacore.com>
5157
5158 * ada-lang.c (ada_convert_actual): Add handling of formals
5159 passed inside an aligner type.
5160
80b0912b
JB
51612015-05-08 Joel Brobecker <brobecker@adacore.com>
5162
5163 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
5164
df2eb078
SC
51652015-05-08 Siva Chandra Reddy <sivachandra@google.com>
5166
5167 PR python/18291
5168 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
5169 Print xmethod matcher status.
5170
2492f0d0
AA
51712015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
5172
5173 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
5174 register in the regcache when treating the PSWM register, and vice
5175 versa.
5176
1c56a84d
GB
51772015-05-07 Gary Benson <gbenson@redhat.com>
5178
5179 * linux-thread-db.c (struct thread_db_info)
5180 <td_ta_map_id2thr_p>: Remove field.
5181 (try_thread_db_load_1): Remove initialization for the above.
5182
74850322
GB
51832015-05-07 Gary Benson <gbenson@redhat.com>
5184
5185 * linux-thread-db.c (struct thread_db_info)
5186 <td_thr_validate_p>: Remove field.
5187 (try_thread_db_load_1): Remove initialization for the above.
5188
e26efa40
JK
51892015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5190
5191 * compile/compile-object-load.c (compile_object_load): Support
5192 mst_text_gnu_ifunc.
5193
851c9091
JK
51942015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5195
5196 * compile/compile.c (compile_to_object): Make the cmd_string parameter
5197 const. Use new variables for the const compatibility.
5198 (eval_compile_command): Make the cmd_string parameter const.
5199 * compile/compile.h (eval_compile_command): Make the cmd_string
5200 parameter const.
5201
f218b647
JB
52022015-05-06 Joel Brobecker <brobecker@adacore.com>
5203
5204 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
5205 comment.
5206 * top.c (deprecated_init_ui_hook): Delete.
5207 (gdb_init): Remove handling of deprecated_init_ui_hook.
5208 * interps.c (clear_interpreter_hooks): Remove handling of
5209 deprecated_init_ui_hook.
5210 * main.c (captured_main): Update comment.
5211
b30a0bc3
JB
52122015-05-06 Joel Brobecker <brobecker@adacore.com>
5213
5214 * solib.c (_initialize_solib): Add "info dll" alias creation.
5215 * windows-nat.c (set_windows_aliases): Delete.
5216 (_initialize_windows_nat): Remove deprecated_init_ui_hook
5217 assignment.
5218 * NEWS: Add news entry about "info dll" now being available
5219 on all platforms.
5220
7c512744
JB
52212015-05-05 Joel Brobecker <brobecker@adacore.com>
5222
5223 * ada-lang.c (value_assign_to_component): Reformat and improve
5224 documentation. Remove all trailing spaces.
5225
0fa7fe50
JB
52262015-05-05 Joel Brobecker <brobecker@adacore.com>
5227
5228 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5229 Stop counting inlined frames as soon as an out-of-line function
5230 is found.
5231
3ea89b92
PMR
52322014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
5233
5234 * dwarf2read.c (inherit_abstract_dies): Skip
5235 DW_TAG_GNU_call_site dies while inheriting children of an
5236 abstract DIE into a scope.
5237 (read_lexical_block_scope): Inherit abstract DIE's for
5238 lexical scopes.
5239
2478d075
JB
52402015-05-05 Joel Brobecker <brobecker@adacore.com>
5241
5242 * ada-valprint.c (val_print_packed_array_elements): Delete
5243 variable "len". Add a type-length check when comparing two
5244 consecutive elements of the array. Use the element's actual
5245 length in call to value_contents_eq.
5246 * ada-lang.c (ada_value_primitive_packed_val): Always return
5247 a value whose type has been resolved.
5248
fc958966
JB
52492015-05-05 Joel Brobecker <brobecker@adacore.com>
5250
5251 * ada-lang.c (ada_value_primitive_packed_val): Recompute
5252 BIT_SIZE and LEN if the size of the resolved type is smaller
5253 than BIT_SIZE * HOST_CHAR_BIT.
5254
ca34b84f
JB
52552015-05-05 Joel Brobecker <brobecker@adacore.com>
5256
5257 * ada-lang.c (ada_value_primitive_packed_val): Use a more
5258 correct address in call to value_at. Adjust call to
5259 value_address accordingly.
5260
62c67f3c
JB
52612015-05-05 Joel Brobecker <brobecker@adacore.com>
5262
5263 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
5264 to print it.
5265
c3345124
JB
52662015-05-05 Joel Brobecker <brobecker@adacore.com>
5267
5268 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
5269 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
5270 pinfo->valaddr.
5271 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
5272 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
5273 (resolve_dynamic_type_internal): Set pinfo.valaddr.
5274 Add handling of addr_stack->valaddr.
5275 (resolve_dynamic_type): Add "valaddr" parameter.
5276 Set pinfo.valaddr field.
5277 * ada-lang.c (ada_discrete_type_high_bound): Update call to
5278 resolve_dynamic_type.
5279 (ada_discrete_type_low_bound): Likewise.
5280 * findvar.c (default_read_var_value): Likewise.
5281 * value.c (value_from_contents_and_address): Likewise.
5282
75ea5859
JB
52832015-05-05 Joel Brobecker <brobecker@adacore.com>
5284
5285 * gdbtypes.c (resolve_dynamic_array): Use
5286 create_array_type_with_stride instead of create_array_type.
5287
0952813b
DD
52882015-04-30 DJ Delorie <dj@redhat.com>
5289
5290 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
5291 rl78_decode_opcode
5292
2ce1cdbf
DE
52932015-04-29 Doug Evans <dje@google.com>
5294
5295 PR python/18285
5296 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
5297 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
5298 EVAL_AVOID_SIDE_EFFECTS for xmethods.
5299 * extension-priv.h (struct extension_language_ops)
5300 <get_xmethod_result_type>: New member.
5301 * extension.c (get_xmethod_result_type): New function.
5302 * extension.h (get_xmethod_result_type): Declare.
5303 * python/py-xmethods.c (get_result_type_method_name): New static
5304 global.
5305 (py_get_result_type_method_name): Ditto.
5306 (gdbpy_get_xmethod_result_type): New function.
5307 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
5308 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
5309 * python/python.c (python_extension_ops): Add
5310 gdbpy_get_xmethod_result_type.
5311 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
5312 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
5313 xmethods.
5314 (value_x_unop): Ditto.
5315 * value.c (result_type_of_xmethod): New function.
5316 * value.h (result_type_of_xmethod): Declare.
5317
998d2a3e
GB
53182015-04-29 Gary Benson <gbenson@redhat.com>
5319
5320 * solib.c (solib_find_1): Allow fd argument to be NULL.
5321 (exec_file_find): Update comment.
5322 (solib_find): Likewise.
5323 * exec.c (exec_file_locate_attach): Use NULL as fd
5324 argument to exec_file_find to avoid having to close
5325 the opened file.
5326 * infrun.c (follow_exec): Likewise.
5327
34f5f757
DE
53282015-04-28 Doug Evans <dje@google.com>
5329
5330 PR python/18299
5331 * python/lib/gdb/printing.py (register_pretty_printer): Handle
5332 name or __name__ attributes. Handle gdb module as first argument.
5333
69b4374a
DE
53342015-04-28 Doug Evans <dje@google.com>
5335
5336 PR python/18089
5337 * python/py-prettyprint.c (print_children): Verify result of children
5338 iterator. Provide better error message.
5339 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
5340 * python/python.c (gdbpy_print_python_errors_p): New function.
5341
5e7cf078
DE
53422015-04-28 Doug Evans <dje@google.com>
5343
5344 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
5345
59fb7612
SS
53462015-04-28 Sasha Smundak <asmundak@google.com>
5347
5348 * NEWS: Mention gdb.Type.optimized_out method.
5349 * python/py-type.c (typy_optimized_out): New function.
5350
cea6e4f1
JB
53512015-04-28 John Baldwin <jhb@FreeBSD.org>
5352
5353 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5354
24b73f8e
PP
53552015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5356
5357 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
5358 (initialize_utils): Move call of init_page_info() to ...
5359 * top.c (gdb_init): ... here.
5360
a88d0bb3
PP
53612015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5362
5363 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
5364 (tui_sigwinch_handler): Still update our idea of
5365 the terminal's width and height even when TUI is not active.
5366
d6e5e7f7
PP
53672015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5368
5369 * utils.h (set_screen_width_and_height): Declare.
5370 * utils.c (set_screen_width_and_height): Define.
5371 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
5372
ff862be4
GB
53732015-04-28 Gary Benson <gbenson@redhat.com>
5374
5375 * infrun.c (solist.h): New include.
5376 (follow_exec): Use exec_file_find to prefix execd_pathname
5377 with gdb_sysroot.
5378
2eb639cb
PP
53792015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5380
5381 * tui/tui-source.c (tui_set_source_content): Avoid calling
5382 strcpy() when offset is 0.
5383
97206799
PP
53842015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5385
5386 PR gdb/18155
5387 * tui/tui-data.c (tui_free_window): Don't free the locator
5388 window when passed an SRC_WIN or a DISASSEM_WIN.
5389
63ed8182
PP
53902015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5391
5392 * tui/tui-data.h (struct tui_win_element): Forward-declare.
5393 (tui_win_content): Move declaration.
5394 (struct tui_gen_win_info): Give 'content' field the
5395 type tui_win_content.
5396 * tui/tui-data.c (init_content_element): Remove redundant and
5397 erroneous casts.
5398 (tui_add_content_elements): Remove erroneous cast.
5399 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
5400 casts.
5401 (tui_get_begin_asm_address): Likewise.
5402 * tui/tui-regs.c (tui_show_registers): Likewise.
5403 (tui_show_register_group): Likewise.
5404 (tui_display_registers_from): Likewise.
5405 (tui_check_register_values): Likewise.
5406 * tui/tui-source.c (tui_set_source_content): Likewise.
5407 (tui_set_source_content_nil): Likewise.
5408 (tui_source_is_displayed): Likewise.
5409 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5410 (tui_set_locator_fullname): Likewise.
5411 (tui_set_locator_info): Likewise.
5412 (tui_show_frame_info): Likewise.
5413 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
5414 (tui_show_source_line): Likewise.
5415 (tui_horizontal_source_scroll): Likewise.
5416 (tui_update_breakpoint_info): Likewise.
5417 (tui_set_exec_info_content): Likewise.
5418 (tui_show_exec_info_content): Likewise.
5419 (tui_alloc_source_buffer): Likewise.
5420 (tui_line_is_displayed): Likewise.
5421 (tui_addr_is_displayed): Likewise.
5422
d2b41ca0
JB
54232015-04-27 John Baldwin <jhb@FreeBSD.org>
5424
5425 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
5426 event if PL_FLAG_EXEC is set.
5427 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
5428 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
5429 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
5430 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
5431 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
5432
e58e05d6
JB
54332015-04-27 John Baldwin <jhb@FreeBSD.org>
5434
5435 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
5436 [TDP_RFPPWAIT] New variable fbsd_pending_children.
5437 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
5438 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
5439 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
5440 [PT_LWPINFO] (fbsd_wait): New function.
5441 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
5442 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
5443 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
5444 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
5445 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
5446 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
5447 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
5448 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
5449 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
5450 "fbsd_wait".
5451 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
5452 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
5453 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
5454 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
5455 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
5456 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
5457 Set "to_post_attach" to "fbsd_post_attach".
5458
8f60fe01
JB
54592015-04-27 John Baldwin <jhb@FreeBSD.org>
5460
5461 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
5462 (fbsd_find_memory_regions): Mark static.
5463 (fbsd_nat_add_target): New function.
5464 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
5465 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
5466 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
5467 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
5468 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
5469 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
5470
5fbae7d1
GB
54712015-04-27 Gary Benson <gbenson@redhat.com>
5472
5473 * objfiles.c (allocate_objfile): Do not attempt to expand name
5474 if name is a "target:" filename.
5475 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
5476 to load auto-load scripts for objfiles with "target:" filenames.
5477
417c80f9
AA
54782015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5479
5480 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
5481 (enum s390_vector_abi_kind): New enum.
5482 (struct gdbarch_tdep)<vector_abi>: New field.
5483 (s390_effective_inner_type): Add parameter min_size. Stop
5484 unwrapping if the inner type is smaller than min_size.
5485 (s390_function_arg_float): Adjust call to
5486 s390_effective_inner_type.
5487 (s390_function_arg_vector): New function.
5488 (s390_function_arg_integer): Adjust comment.
5489 (struct s390_arg_state)<vr>: New field.
5490 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
5491 arguments according to vector ABI when appropriate.
5492 (s390_push_dummy_call): Initialize the argument state's field
5493 'vr'. Adjust calls to s390_handle_arg.
5494 (s390_register_return_value): Handle vector return values.
5495 (s390_return_value): Apply the "register" return value convention
5496 to a vector when appropriate.
5497 (s390_gdbarch_init): Initialize tdep->vector_abi.
5498 * NEWS: Announce S390 vector ABI support.
5499
4e65a17e
AA
55002015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5501
5502 * s390-linux-tdep.c (s390_return_value_convention): Remove
5503 function. Inline its logic...
5504 (s390_return_value): ...here. Instead, move the handling of the
5505 "register" return value convention...
5506 (s390_register_return_value): ...here. New function.
5507
80f75320
AA
55082015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5509
5510 * s390-linux-tdep.c
5511 (is_float_singleton): Remove function. Move the "singleton" part
5512 of the logic...
5513 (s390_effective_inner_type): ...here. New function.
5514 (is_float_like): Remove function. Inline its logic...
5515 (s390_function_arg_float): ...here.
5516 (is_pointer_like, is_integer_like, is_struct_like): Remove
5517 functions. Inline their logic...
5518 (s390_function_arg_integer): ...here.
5519 (s390_function_arg_pass_by_reference): Remove function.
5520 (extend_simple_arg): Remove function.
5521 (alignment_of): Remove function.
5522 (struct s390_arg_state): New structure.
5523 (s390_handle_arg): New function.
5524 (s390_push_dummy_call): Move parameter placement logic to the new
5525 function s390_handle_arg. Call it for calculating the stack area
5526 sizes first, and again for actually writing the parameters.
5527
6dbc9c04
AA
55282015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5529
5530 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
5531 false if the argument is zero.
5532
9e195661
PMR
55332015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
5534
5535 * ada-lang.c (template_to_static_fixed_type): Return input type
5536 when it is already fixed. Cache the input type itself when not
5537 creating a static fixed copy. Make it explicit that we never
5538 molestate the input type.
5539 * gdbtypes.c (resolve_dynamic_struct): Reset the
5540 TYPE_TARGET_TYPE field for resolved copies.
5541
460efde1
JB
55422015-04-27 Joel Brobecker <brobecker@adacore.com>
5543
5544 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
5545 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
5546 (template_to_static_fixed_type): Call ada_check_typedef only
5547 when necessary.
5548
6faec16b
AB
55492015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
5550
5551 * cli/cli-dump.c (srec_dump_command): Add internationalization
5552 mark ups.
5553 (ihex_dump_command): Likewise.
5554 (tekhex_dump_command): Likewise.
5555 (binary_dump_command): Likewise.
5556 (binary_append_command): Likewise.
5557
cf75d6c3
AB
55582015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
5559
5560 * cli/cli-dump.c (verilog_cmdlist): New variable.
5561 (dump_verilog_memory): New function.
5562 (dump_verilog_value): New function.
5563 (verilog_dump_command): New function.
5564 (_initialize_cli_dump): Add new commands to support verilog dump
5565 format.
5566 * NEWS: Add entry for "dump verilog".
5567
8cd00c59
PMR
55682015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
5569
5570 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
5571 descriptive type when there is none.
5572
8900d71e
PP
55732015-04-23 Patrick Palka <patrick@parcs.ath.cx>
5574
5575 * tui/tui-win.c (tui_async_resize_screen): Call
5576 rl_resize_terminal().
5577
f16eab5f
JT
55782015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
5579
5580 * windows-nat.c (handle_output_debug_string): Don't change
5581 current_event.dwThreadId.
5582 (get_windows_debug_event): Use thread_id, rather than relying on
5583 current_event.dwThreadId being changed.
5584
68ffc902
JT
55852015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
5586
5587 * windows-nat.c (windows_continue): Report an error if
5588 ContinueDebugEvent() fails.
5589
23942819
JT
55902015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5591
5592 * windows-nat.c (windows_resume): Fix misspelling in debug output.
5593
e6ad66bd
JT
55942015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5595
5596 * windows-nat.c (get_windows_debug_event): Replace retval with
5597 thread_id throughout. Update stale comment.
5598
776704b9
JT
55992015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5600
5601 * windows-nat.c (get_windows_debug_event): Don't use ternary
5602 conditional operator.
5603
8aae4344
PM
56042015-04-21 Pierre Muller <muller@sourceware.org>
5605
5606 PR pascal/17815
5607 p-exp.y (yylex): Reorganize code to return the matched pattern
5608 for a field of this.
5609
819843c7
GB
56102015-04-21 Gary Benson <gbenson@redhat.com>
5611
5612 * common/fileio.h (fileio_to_host_openflags): New declaration.
5613 * common/fileio.c (fcntl.h): New include.
5614 (fileio_to_host_openflags): New function, factored out from...
5615 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
5616 Single use updated.
5617
0bca7f99
KB
56182015-04-21 Kevin Buettner <kevinb@redhat.com>
5619
5620 * rl78-tdep.c (RL78_SP_ADDR): Define.
5621 (opc_reg_to_gdb_regnum): New static function.
5622 (rl78_analyze_prologue): Recognize instructions forming slightly
5623 more interesting prologues.
5624
e771e4be
PMR
56252015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
5626
5627 Revert:
5628 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
5629 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
5630 TYPE_CODE_REF types so that they are not considered as dynamic
5631 depending on the referenced type.
5632 (resolve_dynamic_type_internal): Likewise.
5633
ee715b5a
PMR
56342015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
5635
5636 Revert:
5637 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
5638 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
5639 "top_level" parameter.
5640 (resolve_dynamic_type_internal): Remove the unused "top_level"
5641 parameter. Update call to is_dynamic_type_internal.
5642 (is_dynamic_type): Update call to is_dynamic_type_internal.
5643 (resolve_dynamic_range): Update call to
5644 resolve_dynamic_type_internal.
5645 (resolve_dynamic_union): Likewise.
5646 (resolve_dynamic_struct): Likewise.
5647 (resolve_dynamic_type): Likewise.
5648
e31d7699
GKB
56492015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
5650
5651 * breakpoint.c (update_dprintf_command_list): Remove duplicated
5652 xmalloc.
5653
d214e5e7
TS
56542015-04-20 Thomas Schwinge <thomas@codesourcery.com>
5655
110f9112
TS
5656 * reply_mig_hack.awk: Robustify parsing.
5657
d214e5e7
TS
5658 * reply_mig_hack.awk: Don't bother to declare an intermediate
5659 function pointer variable.
5660
8f61baf8
DE
56612015-04-17 Doug Evans <dje@google.com>
5662
5663 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
5664 to "exec_displacement" to avoid confusion with inner use of the name.
5665
dbbf180a
YQ
56662015-04-17 Pedro Alves <palves@redhat.com>
5667
5668 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
5669 if HW point of TYPE isn't supported.
5670
059790a0
YQ
56712015-04-17 Yao Qi <yao.qi@linaro.org>
5672 Pedro Alves <palves@redhat.com>
5673
5674 * target.h (target_can_use_hardware_watchpoint): Update comments.
5675 Remove trailing ";".
5676
1b6e6f5c
GB
56772015-04-17 Gary Benson <gbenson@redhat.com>
5678
5679 * remote.c (remote_add_inferior): New argument try_open_exec.
5680 If nonzero, attempt to open the inferior's executable file as
5681 the main executable if no main executable is open already.
5682 All callers updated.
5683 * NEWS: Mention that GDB now supports automatic location and
5684 retrieval of executable + files from remote targets.
5685
c78fa86a
GB
56862015-04-17 Gary Benson <gbenson@redhat.com>
5687
5688 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
5689 * remote.c (PACKET_qXfer_exec_file): Likewise.
5690 (remote_protocol_features): Register the
5691 "qXfer:exec-file:read" feature.
5692 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
5693 (remote_pid_to_exec_file): New function.
5694 (init_remote_ops): Initialize to_pid_to_exec_file.
5695 (_initialize_remote): Register new "set/show remote
5696 pid-to-exec-file-packet" command.
5697 * NEWS: Announce new qXfer:exec-file:read packet.
5698
e0d86d2c
GB
56992015-04-17 Gary Benson <gbenson@redhat.com>
5700
5701 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
5702 New declaration.
5703 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
5704 New function, factored out from...
5705 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
5706
a9a5a3d1
GB
57072015-04-17 Gary Benson <gbenson@redhat.com>
5708
5709 * exec.c (solist.h): New include.
5710 (exec_file_locate_attach): Prefix absolute executable
5711 paths with gdb_sysroot if set.
5712 * NEWS: Mention that executable paths may be prepended
5713 with sysroot.
5714
af1900b0
GB
57152015-04-17 Gary Benson <gbenson@redhat.com>
5716
5717 * solist.h (exec_file_find): New declaration.
5718 * solib.c (solib_find_1): New function, factored out from...
5719 (solib_find): ...here.
5720 (exec_file_find): New function.
5721
a10de604
GB
57222015-04-17 Gary Benson <gbenson@redhat.com>
5723
5724 * gdbcore.h (exec_file_locate_attach): New declaration.
5725 * exec.c (exec_file_locate_attach): New function, factored
5726 out from...
5727 * infcmd.c (attach_command_post_wait): ...here.
5728
92209ddf
MF
57292015-04-17 Mike Frysinger <vapier@gentoo.org>
5730
5731 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
5732
8550d3b3
YQ
57332015-04-16 Yao Qi <yao.qi@linaro.org>
5734
5735 * infrun.c (maybe_software_singlestep): Declare.
5736 (displaced_step_fixup): Call maybe_software_singlestep.
5737
30b3dd9d
DE
57382015-04-15 Doug Evans <dje@google.com>
5739
5740 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
5741
61d96d7e
DE
57422015-04-15 Doug Evans <dje@google.com>
5743
5744 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
5745
40d2f8d6
SM
57462015-04-15 Simon Marchi <simon.marchi@ericsson.com>
5747
5748 * python/lib/gdb/command/unwinders.py: Add parentheses.
5749
6bbbba9b
YQ
57502015-04-15 Yao Qi <yao.qi@linaro.org>
5751
5752 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
5753
2bb2dcab
YQ
57542015-04-15 Yao Qi <yao.qi@linaro.org>
5755
5756 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
5757
41f071ef
YQ
57582015-04-15 Yao Qi <yao.qi@linaro.org>
5759
5760 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5761 dsc->insn_size instead of 4.
5762
326a5c7e
GB
57632015-04-14 Gary Benson <gbenson@redhat.com>
5764
5765 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
5766 * minidebug.c (lzma_stat): Likewise.
5767 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
5768 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
5769
dd177e81
SS
57702015-04-13 Stan Shebs <stanshebs@google.com>
5771
5772 * MAINTAINERS: Update my email address.
5773
97de3545
JB
57742015-04-13 John Baldwin <jhb@FreeBSD.org>
5775
5776 * amd64-tdep.c (amd64_target_description): New function.
5777 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
5778 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
5779 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
5780 x86 extended save area.
5781 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
5782 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
5783 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
5784 (_initialize_amd64fbsd_nat): Set "to_read_description" to
5785 "amd64fbsd_read_description".
5786 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
5787 (amd64fbsd_supply_xstateregset): New function.
5788 (amd64fbsd_collect_xstateregset): New function.
5789 Add "amd64fbsd_xstateregset".
5790 (amd64fbsd_iterate_over_regset_sections): New function.
5791 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
5792 "I386_FBSD_XSAVE_XCR0_OFFSET".
5793 Add "iterate_over_regset_sections" gdbarch method.
5794 Add "core_read_description" gdbarch method.
5795 * i386-tdep.c (i386_target_description): New function.
5796 * i386-tdep.h: Export i386_target_description and tdesc_i386.
5797 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
5798 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
5799 x86 extended save area.
5800 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
5801 * i386bsd-nat.h: Export i386bsd_xsave_len.
5802 * i386fbsd-nat.c (i386fbsd_read_description): New function.
5803 (_initialize_i386fbsd_nat): Set "to_read_description" to
5804 "i386fbsd_read_description".
5805 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
5806 (i386fbsd_core_read_description): New function.
5807 (i386fbsd_supply_xstateregset): New function.
5808 (i386fbsd_collect_xstateregset): New function.
5809 Add "i386fbsd_xstateregset".
5810 (i386fbsd_iterate_over_regset_sections): New function.
5811 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
5812 "I386_FBSD_XSAVE_XCR0_OFFSET".
5813 Add "iterate_over_regset_sections" gdbarch method.
5814 Add "core_read_description" gdbarch method.
5815 * i386fbsd-tdep.h: New file.
5816
4f45d445
JK
58172015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5818
5819 * NEWS (Changes since GDB 7.9): Add removed -xdb.
5820 * breakpoint.c (command_line_is_silent): Remove xdb_commands
5821 conditional.
5822 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
5823 and lb.
5824 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
5825 va.
5826 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
5827 conditional.
5828 * defs.h (xdb_commands): Remove declaration.
5829 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
5830 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
5831 * infcmd.c (run_no_args_command, go_command): Remove.
5832 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
5833 * infrun.c (xdb_handle_command): Remove.
5834 (_initialize_infrun): Remove xdb_commands for lz and z.
5835 * main.c (xdb_commands): Remove variable.
5836 (captured_main): Remove "xdb" from long_options.
5837 (print_gdb_help): Remove --xdb from help.
5838 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
5839 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
5840 * stack.c (backtrace_full_command, args_plus_locals_info)
5841 (current_frame_command): Remove.
5842 (_initialize_stack): Remove xdb_commands for t, T and l.
5843 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
5844 * thread.c (_initialize_thread): Remove xdb_commands condition.
5845 * tui/tui-layout.c (tui_toggle_layout_command)
5846 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
5847 (_initialize_tui_layout): Remove xdb_commands for td and ts.
5848 * tui/tui-regs.c (tui_scroll_regs_forward_command)
5849 (tui_scroll_regs_backward_command): Remove.
5850 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
5851 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
5852 (_initialize_tui_win): Remove xdb_commands for U and w.
5853 * utils.c (pagination_on_command, pagination_off_command): Remove.
5854 (initialize_utils): Remove xdb_commands for am and sm.
5855
cb71640d
PA
58562015-04-10 Pedro Alves <palves@redhat.com>
5857
5858 * infrun.c (displaced_step_fixup): Switch to the event ptid
5859 earlier. If the thread stopped for a watchpoint and the
5860 target/arch has non-continuable watchpoints, cancel the displaced
5861 step.
5862 (resume): Don't start a displaced step if in-line step-over info
5863 is valid.
5864
8f572e5c
PA
58652015-04-10 Pedro Alves <palves@redhat.com>
5866
5867 * infrun.c (displaced_step_in_progress): New function.
5868 (do_target_resume): Advise target to report all signals if
5869 displaced stepping.
5870
8d707a12
PA
58712015-04-10 Pedro Alves <palves@redhat.com>
5872
5873 PR gdb/18216
5874 * infrun.c (process_event_stop_test): Don't assume a step-resume
5875 is set if tp->stepped_breakpoint is true.
5876
ef713951
YQ
58772015-04-10 Yao Qi <yao.qi@linaro.org>
5878
5879 * arm-tdep.c (install_alu_reg): Update comment.
5880 (thumb_copy_alu_reg): Remove local variable rn. Update
5881 debugging message. Use r2 instead of r1 in the modified
5882 instruction.
5883
906d60cf
PA
58842015-04-10 Pedro Alves <palves@redhat.com>
5885
5886 PR gdb/13858
5887 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
5888 linux_displaced_step_location as gdbarch_displaced_step_location
5889 hook.
5890 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5891 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5892 * linux-tdep.c (linux_displaced_step_location): New function,
5893 based on ppc_linux_displaced_step_location.
5894 * linux-tdep.h (linux_displaced_step_location): New declaration.
5895 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
5896 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
5897 Delete.
5898 (ppc_linux_init_abi): Install linux_displaced_step_location as
5899 gdbarch_displaced_step_location hook, even without Cell/B.E..
5900 (_initialize_ppc_linux_tdep): Don't install
5901 ppc_linux_inferior_created as inferior_created observer.
5902 * s390-linux-tdep.c (s390_gdbarch_init): Install
5903 linux_displaced_step_location as gdbarch_displaced_step_location
5904 hook.
5905
7823a941
GB
59062015-04-09 Gary Benson <gbenson@redhat.com>
5907
5908 * common/common-remote-fileio.h: Rename to...
5909 * common/fileio.h: ...this. Update all references.
5910 (remote_fileio_to_fio_error): Rename to...
5911 (host_to_fileio_error): ...this.
5912 (remote_fileio_to_be): Rename to...
5913 (host_to_bigendian): ...this. Update all callers.
5914 (remote_fileio_to_fio_uint): Rename to...
5915 (host_to_fileio_uint): ...this. Update all callers.
5916 (remote_fileio_to_fio_time): Rename to...
5917 (host_to_fileio_time): ...this. Update all callers.
5918 (remote_fileio_to_fio_stat): Rename to...
5919 (host_to_fileio_stat): ...this.
5920 Update all references.
5921 * common/common-remote-fileio.c: Rename to...
5922 * common/fileio.c: ...this. Update all references.
5923 (remote_fileio_to_fio_error): Rename to...
5924 (host_to_fileio_error): ...this. Update all callers.
5925 (remote_fileio_mode_to_target): Rename to...
5926 (fileio_mode_pack): ...this. Update all callers.
5927 (remote_fileio_to_fio_mode): Rename to...
5928 (host_to_fileio_mode): ...this. Update all callers.
5929 (remote_fileio_to_fio_ulong): Rename to...
5930 (host_to_fileio_ulong): ...this. Update all callers.
5931 (remote_fileio_to_fio_stat): Rename to...
5932 (host_to_fileio_stat): ...this. Update all callers.
5933
f2983cc3
AW
59342015-04-09 Andy Wingo <wingo@igalia.com>
5935
5936 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
5937 (frame_functions): Bind gdbscm_frame_read_register to
5938 frame-read-register.
5939 * guile/lib/gdb.scm (frame-read-register): Export.
5940
b88bb450
GB
59412015-04-09 Gary Benson <gbenson@redhat.com>
5942
5943 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
5944 New declaration.
5945 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
5946 New function, factored out the named functions below.
5947 * inf-child.c (gdb/fileio.h): Remove include.
5948 (common-remote-fileio.h): New include.
5949 (inf_child_errno_to_fileio_error): Remove function. Update
5950 all callers to use remote_fileio_to_fio_error.
5951 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
5952
2f2680f3
AW
59532015-04-09 Andy Wingo <wingo@igalia.com>
5954
5955 * MAINTAINERS (Write After Approval): Add Andy Wingo.
5956
5a2d4533
L
59572015-04-09 H.J. Lu <hongjiu.lu@intel.com>
5958
5959 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
5960 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
5961 * configure: Regenerated.
5962
421693b0
PA
59632015-04-09 Pedro Alves <palves@redhat.com>
5964
5965 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
5966 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
5967 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
5968 * gnulib/import/Makefile.am: Update.
5969 * gnulib/import/Makefile.in: Update.
5970 * gnulib/import/m4/gnulib-cache.m4: Update.
5971 * gnulib/import/m4/gnulib-comp.m4: Update.
5972 * gnulib/import/m4/strtok_r.m4: New file.
5973 * gnulib/import/strtok_r.c: New file.
5974
f543dc83
PA
59752015-04-09 Pedro Alves <palves@redhat.com>
5976
5977 * gnulib/update-gnulib.sh (aclocal version check): Filter out
5978 "called too early to check prototype".
5979
6d62641c
SDJ
59802015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
5981
5982 PR python/16699
5983 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
5984 use a caching mechanism. Adjust comments and code to reflect
5985 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
5986 (cmdpy_completer_handle_brkchars): Adjust call to
5987 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
5988 (cmdpy_completer): Likewise.
5989
85558555
YQ
59902015-04-08 Yao Qi <yao.qi@linaro.org>
5991
5992 * spu-tdep.c (spu_gdbarch_init): Don't call
5993 set_gdbarch_cannot_step_breakpoint.
5994
d249a14a
SDJ
59952015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
5996
5997 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
5998
8a06aea7
PA
59992015-04-07 Pedro Alves <palves@redhat.com>
6000
6001 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6002 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6003 (delete_exited_threads): New declaration.
6004 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6005 * linux-nat.c (linux_nat_update_thread_list): New function.
6006 (linux_nat_add_target): Install it.
6007 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
6008 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
6009 (delete_exited_threads): New function.
6010
d9b67d9f
PA
60112015-04-07 Pedro Alves <pedro@codesourcery.com>
6012
6013 * infrun.c (resume) <displaced stepping debug output>: Get the
6014 leader thread's regcache, not resume_ptid's.
6015
2c26b84f
DE
60162015-04-06 Doug Evans <xdje42@gmail.com>
6017
6018 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
6019 VAR_DOMAIN.
6020 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
6021 Include symbol domain in debugging output.
6022
7a85168d
PA
60232015-04-06 Pedro Alves <palves@redhat.com>
6024 Bernd Edlinger <bernd.edlinger@hotmail.de>
6025
6026 * configure.ac: Remove the mingw32-specific stub-termcap.o
6027 fallback, and instead fallback to the stub termcap on all hosts.
6028 * configure: Regenerate.
6029 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
6030 symbols.
6031
25755e2b
PMR
60322015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6033
6034 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6035 "top_level" parameter.
6036 (resolve_dynamic_type_internal): Remove the unused "top_level"
6037 parameter. Update call to is_dynamic_type_internal.
6038 (is_dynamic_type): Update call to is_dynamic_type_internal.
6039 (resolve_dynamic_range): Update call to
6040 resolve_dynamic_type_internal.
6041 (resolve_dynamic_union): Likewise.
6042 (resolve_dynamic_struct): Likewise.
6043 (resolve_dynamic_type): Likewise.
6044
961f4160
PMR
60452015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6046
6047 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6048 TYPE_CODE_REF types so that they are not considered as dynamic
6049 depending on the referenced type.
6050 (resolve_dynamic_type_internal): Likewise.
6051
39f3de7c
L
60522015-04-02 H.J. Lu <hongjiu.lu@intel.com>
6053
6054 * Makefile.in (top_srcdir): New.
6055 * configure: Regenerated.
6056
599bd15c
GB
60572015-04-02 Gary Benson <gbenson@redhat.com>
6058
6059 * NEWS: Announce the new default sysroot of "target:".
6060
fed040c6
GB
60612015-04-02 Gary Benson <gbenson@redhat.com>
6062
6063 * main.c (captured_main): Set gdb_sysroot to "target:"
6064 if not otherwise set.
6065
64c0b5de
GB
60662015-04-02 Gary Benson <gbenson@redhat.com>
6067
6068 * exec.c (exec_file_attach): Support "target:" filenames.
6069
b57fbfba
GB
60702015-04-02 Gary Benson <gbenson@redhat.com>
6071
6072 * solib.c (solib_find): Strip "target:" prefix from sysroot
6073 if accessing local files.
6074
97a41605
GB
60752015-04-02 Gary Benson <gbenson@redhat.com>
6076
6077 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
6078 checks and error messages.
6079
2938e6cf
GB
60802015-04-02 Gary Benson <gbenson@redhat.com>
6081
6082 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
6083 (remote_filename_p): Remove declaration.
6084 (remote_bfd_open): Likewise.
6085 * remote.c (remote_bfd_iovec_open): Remove function.
6086 (remote_bfd_iovec_close): Likewise.
6087 (remote_bfd_iovec_pread): Likewise.
6088 (remote_bfd_iovec_stat): Likewise.
6089 (remote_filename_p): Likewise.
6090 (remote_bfd_open): Likewise.
6091 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
6092 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
6093 (gdb_bfd_open_maybe_remote): Remove function.
6094 (symfile_bfd_open): Replace remote filename check with
6095 target filename check.
6096 (reread_symbols): Use gdb_bfd_open.
6097 * build-id.c (gdbcore.h): New include.
6098 (build_id_to_debug_bfd): Use gdb_bfd_open.
6099 * infcmd.c (attach_command_post_wait): Remove remote filename
6100 check.
6101 * solib.c (solib_find): Replace remote-specific handling with
6102 target-specific handling. Update comments where necessary.
6103 (solib_bfd_open): Replace remote-specific handling with
6104 target-specific handling.
6105 (gdb_sysroot_changed): New function.
6106 (_initialize_solib): Call the above when gdb_sysroot changes.
6107 * windows-tdep.c (gdbcore.h): New include.
6108 (windows_xfer_shared_library): Use gdb_bfd_open.
6109
f08e97fe
GB
61102015-04-02 Gary Benson <gbenson@redhat.com>
6111
6112 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
6113 (is_target_filename): New declaration.
6114 (gdb_bfd_has_target_filename): Likewise.
6115 (gdb_bfd_open): Update documentation comment.
6116 * gdb_bfd.c (target.h): New include.
6117 (gdb/fileio.h): Likewise.
6118 (is_target_filename): New function.
6119 (gdb_bfd_has_target_filename): Likewise.
6120 (fileio_errno_to_host): Likewise.
6121 (gdb_bfd_iovec_fileio_open): Likewise.
6122 (gdb_bfd_iovec_fileio_pread): Likewise.
6123 (gdb_bfd_iovec_fileio_close): Likewise.
6124 (gdb_bfd_iovec_fileio_fstat): Likewise.
6125 (gdb_bfd_open): Use target fileio to access paths prefixed
6126 with "target:" where necessary.
6127
4bd7dc42
GB
61282015-04-02 Gary Benson <gbenson@redhat.com>
6129
6130 * target.h (struct target_ops) <to_filesystem_is_local>:
6131 New field.
6132 (target_filesystem_is_local): New macro.
6133 * target-delegates.c: Regenerate.
6134 * remote.c (remote_filesystem_is_local): New function.
6135 (init_remote_ops): Initialize to_filesystem_is_local.
6136
9b15c1f0
GB
61372015-04-02 Gary Benson <gbenson@redhat.com>
6138
6139 * target.h (struct target_ops) <to_fileio_fstat>: New field.
6140 (target_fileio_fstat): New declaration.
6141 * target.c (target_fileio_fstat): New function.
6142 * inf-child.c (inf_child_fileio_fstat): Likewise.
6143 (inf_child_target): Initialize to_fileio_fstat.
6144 * remote.c (init_remote_ops): Likewise.
6145
d11916aa
SS
61462015-04-01 Sasha Smundak <asmundak@google.com>
6147
6148 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
6149 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
6150 (py-unwind.o): New recipe.
6151 * NEWS: mention Python frame unwinding.
6152 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
6153 gdb/unwinder.py and gdb/command/unwinder.py
6154 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
6155 list.
6156 (execute_unwinders): New function.
6157 * python/lib/gdb/command/unwinders.py: New file.
6158 * python/lib/gdb/unwinder.py: New file.
6159 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
6160 (objfpy_dealloc): Decrement frame_unwinders reference count.
6161 (objfpy_initialize): Create frame_unwinders list.
6162 (objfpy_get_frame_unwinders): New function.
6163 (objfpy_set_frame_unwinders): Ditto.
6164 (objfile_getset): Add frame_unwinders attribute to Objfile.
6165 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
6166 (pspy_dealloc): Decrement frame_unwinders reference count.
6167 (pspy_initialize): Create frame_unwinders list.
6168 (pspy_get_frame_unwinders): New function.
6169 (pspy_set_frame_unwinders): Ditto.
6170 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
6171 * python/py-unwind.c: New file.
6172 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
6173 (objpy_get_frame_unwinders): New prototype.
6174 (gdbpy_initialize_unwind): New prototype.
6175 * python/python.c (gdbpy_apply_type_printers): Call
6176 gdbpy_initialize_unwind.
6177
6b403daa
PA
61782015-04-01 Pedro Alves <palves@redhat.com>
6179
6180 * infrun.c (resume): Check currently_stepping after clearing
6181 stepped_breakpoint, not before.
6182
1176ecec
PA
61832015-04-01 Pedro Alves <palves@redhat.com>
6184
6185 * infrun.c (print_target_wait_results): Print all the ptid
6186 elements.
6187
de1fe8c8
PA
61882015-04-01 Pedro Alves <palves@redhat.com>
6189
6190 * infrun.c (keep_going): Also discard cleanups if inserting
6191 breakpoints fails.
6192
e6f5c25b
PA
61932015-04-01 Pedro Alves <palves@redhat.com>
6194
6195 * infrun.c (wait_for_inferior): Install the
6196 finish_thread_state_cleanup cleanup across the whole function, not
6197 just around handle_inferior_event.
6198
1ac806b8
PA
61992015-04-01 Pedro Alves <palves@redhat.com>
6200
6201 * infrun.c (resume) <step past permanent breakpoint>: Use
6202 do_target_resume.
6203
2ee52aa4
PA
62042015-04-01 Pedro Alves <palves@redhat.com>
6205
6206 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
6207
5445da1b
PMR
62082015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
6209
6210 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
6211
4eec2deb
PA
62122015-04-01 Pedro Alves <palves@redhat.com>
6213
6214 * linux-thread-db.c (record_thread): Readd the thread to gdb's
6215 list if it was marked exited.
6216
afa59b79
L
62172015-04-01 H.J. Lu <hongjiu.lu@intel.com>
6218
6219 * configure: Regenerated.
6220
df8411da
SDJ
62212015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6222 Jan Kratochvil <jan.kratochvil@redhat.com>
6223 Oleg Nesterov <oleg@redhat.com>
6224
6225 PR corefiles/16092
6226 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
6227 New enum identifying the various options of the coredump_filter
6228 file.
6229 (struct smaps_vmflags): New struct.
6230 (use_coredump_filter): New variable.
6231 (decode_vmflags): New function.
6232 (mapping_is_anonymous_p): Likewise.
6233 (dump_mapping_p): Likewise.
6234 (linux_find_memory_regions_full): New variables
6235 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
6236 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
6237 parsing of its information. Implement memory mapping filtering
6238 based on its contents.
6239 (show_use_coredump_filter): New function.
6240 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
6241 * NEWS: Mention the possibility of using the
6242 '/proc/PID/coredump_filter' file when generating a corefile.
6243 Mention new command 'set use-coredump-filter'.
6244
416f679e
SDJ
62452015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6246
6247 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
6248 read_memory_unsigned_integer.
6249
711a72d3
L
62502015-03-31 H.J. Lu <hongjiu.lu@intel.com>
6251
6252 * Makefile.in (ZLIB): New.
6253 (ZLIBINC): Likewise.
6254 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
6255 (CLIBS): Add $(ZLIB).
6256 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
6257 Add -lz to LIBS.
6258 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
6259 * top.c (print_gdb_configuration): Remove --with-zlib and
6260 --without-zlib.
6261 * config.in: Regenerated.
6262 * configure: Likewise.
6263
d33279b3
AT
62642015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6265
6266 * NEWS: Mention info os cpus support.
6267 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
6268 (struct osdata_type): Add cpus entry, reorder the entries in
6269 alphabetical order.
6270
71b30f27
MK
62712015-03-31 Matthias Klose <doko@ubuntu.com>
6272
6273 * compile/compile.c (compile_to_object): Allow triplets with or
6274 without vendor set.
6275
13ce9222
DE
62762015-03-30 Doug Evans <dje@google.com>
6277
6278 PR c++/18141
6279 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
6280 klass in VAR_DOMAIN.
6281
20f796c9
GB
62822015-03-30 Gary Benson <gbenson@redhat.com>
6283
6284 * remote.c (remote_mourn_1): Remove function. Update all callers
6285 to use remote_mourn.
6286 (extended_remote_mourn_1): Remove function. Update all callers
6287 to use extended_remote_mourn.
6288 (extended_remote_attach_1): Remove function. Update all callers
6289 to use extended_remote_attach.
6290
49d45b20
JB
62912015-03-28 James Bowman <james.bowman@ftdichip.com>
6292
6293 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
6294 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
6295 (ALLDEPFILES): Add ft32-tdep.c.
6296 * configure.tgt: Add FT32 entry.
6297 * ft32-tdep.c: New file, FT32 target-dependent code.
6298 * ft32-tdep.h: New file, FT32 target-dependent code.
6299
1c4ff080
JK
63002015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6301
6302 Revert:
6303 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6304 Code cleanup.
6305 * printcmd.c (print_command_1): Move expr variable scope.
6306
79498702
JB
63072015-03-27 Joel Brobecker <brobecker@adacore.com>
6308
6309 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
6310
ce9c0ca1
AK
63112015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
6312
6313 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
6314 sections.
6315
429e1e81
JB
63162015-03-26 Joel Brobecker <brobecker@adacore.com>
6317
6318 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
6319 exception raised while parsing the probe arguments.
6320 Force parsing to be done using the C language parser.
6321 * expression.h (parse_expression_with_language): Declare.
6322 * parse.c (parse_expression_with_language): New function.
6323
4593441b
JT
63242015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
6325
6326 * MAINTAINERS (Write After Approval): Add "Jon Turney".
6327
ff908ebf
AW
63282015-03-26 Andy Wingo <wingo@igalia.com>
6329
6330 PR symtab/18148
6331 * dwarf2read.c (struct partial_die_info): Add has_const_value
6332 member.
6333 (add_partial_symbol): Don't punt on symbols that have const_value
6334 attributes.
6335 (read_partial_die): Detect DW_AT_const_value.
6336
f30d5c78
JK
63372015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6338
6339 Code cleanup.
6340 * printcmd.c (print_command_1): Move expr variable scope.
6341
8d89f51a
JK
63422015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6343
6344 Code cleanup.
6345 * printcmd.c (validate_format): Make the parameter cmdname const.
6346
0b736949
DB
63472015-03-26 Don Breazeal <donb@codesourcery.com>
6348
6349 * remote.c (_initialize_remote): Update comment.
6350
20d35291
PA
63512015-03-26 Pedro Alves <palves@redhat.com>
6352 Jon TURNEY <jon.turney@dronecode.org.uk>
6353
6354 * coffread.c (coff_symfile_read): When constructing the name of an
6355 import stub symbol from import symbol for amd64, only skip the
6356 char after _imp_ if the target is underscored (like i386) and the
6357 char is indeed the target's leading char.
6358
6a3753b3
PA
63592015-03-25 Pedro Alves <palves@redhat.com>
6360
6361 * target.h <to_async>: Replace 'callback' and 'context' parameters
6362 with boolean 'enable' parameter.
6363 (target_async): Replace CALLBACK and CONTEXT parameters with
6364 boolean ENABLE parameter.
6365 * inf-loop.c (inferior_event_handler): Adjust.
6366 * linux-nat.c (linux_nat_attach, linux_nat_resume)
6367 (linux_nat_resume): Adjust.
6368 (async_client_callback, async_client_context): Delete.
6369 (handle_target_event): Call inferior_event_handler directly.
6370 (linux_nat_async): Replace 'callback' and 'context' parameters
6371 with boolean 'enable' parameter. Adjust. Remove references to
6372 async_client_callback and async_client_context.
6373 (linux_nat_close): Adjust.
6374 * record-btrace.c (record_btrace_async): Replace 'callback' and
6375 'context' parameters with boolean 'enable' parameter. Adjust.
6376 (record_btrace_resume): Adjust.
6377 * record-full.c (record_full_async): Replace 'callback' and
6378 'context' parameters with boolean 'enable' parameter. Adjust.
6379 (record_full_resume, record_full_core_resume): Adjust.
6380 * remote.c (struct remote_state) <async_client_callback,
6381 async_client_context>: Delete fields.
6382 (remote_start_remote, extended_remote_attach_1, remote_resume)
6383 (extended_remote_create_inferior): Adjust.
6384 (remote_async_serial_handler): Call inferior_event_handler
6385 directly.
6386 (remote_async): Replace 'callback' and 'context' parameters with
6387 boolean 'enable' parameter. Adjust.
6388 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
6389 Adjust.
6390 * target-delegates.c: Regenerate.
6391
1c4b552b
GB
63922015-03-25 Gary Benson <gbenson@redhat.com>
6393 Pedro Alves <palves@redhat.com>
6394
6395 * target.c (fileio_ft_t): New typedef, define object vector.
6396 (fileio_fhandles): New static variable.
6397 (is_closed_fileio_fh): New macro.
6398 (lowest_closed_fd): New static variable.
6399 (acquire_fileio_fd): New function.
6400 (release_fileio_fd): Likewise.
6401 (fileio_fd_to_fh): New macro.
6402 (target_fileio_open): Wrap the file descriptor on success.
6403 (target_fileio_pwrite): Updated to use wrapped file descriptor.
6404 (target_fileio_pread): Likewise.
6405 (target_fileio_close): Likewise.
6406
a25d8bf9
PA
64072015-03-24 Pedro Alves <palves@redhat.com>
6408
6409 * thread.c (thread_apply_all_command): Take exited threads into
6410 account.
6411
44a1ee51
PA
64122015-03-24 Pedro Alves <palves@redhat.com>
6413
6414 * infrun.c (resume, proceed): Mention
6415 switch_back_to_stepped_thread, not switch_back_to_stepping.
6416
f3263aa4
PA
64172015-03-24 Pedro Alves <palves@redhat.com>
6418
6419 * infrun.c (user_visible_resume_ptid): Rewrite going from
6420 most-locked to unlocked instead of the opposite. Move comment ...
6421 * infrun.h (user_visible_resume_ptid): ... here.
6422
2bf6fb9d
PA
64232015-03-24 Pedro Alves <palves@redhat.com>
6424
6425 * linux-nat.c (linux_nat_resume): Output debug logs before trying
6426 to resume the event lwp. Use the lwp's ptid instead of the passed
6427 in (maybe wildcard) ptid.
6428 (stop_wait_callback): Tweak debug log output.
6429 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
6430 TRAP_TRACE.
6431 (linux_nat_filter_event): In debug output, distinguish a
6432 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
6433 before trying to resume the lwp.
6434
283a9958
JB
64352015-03-24 Joel Brobecker <brobecker@adacore.com>
6436
6437 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
6438 pointer indirection.
6439 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
6440 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
6441
93a8e227
JB
64422015-03-24 Joel Brobecker <brobecker@adacore.com>
6443
6444 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
6445 Renames DYN_ATTR_DATA_LOCATION.
6446 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
6447 DYN_ATTR_DATA_LOCATION.
6448 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
6449 instead of DYN_ATTR_DATA_LOCATION.
6450
64ce06e4
PA
64512015-03-24 Pedro Alves <palves@redhat.com>
6452
6453 * breakpoint.c (until_break_command): Adjust call to proceed.
6454 * gdbthread.h (struct thread_control_state) <stepping_command>:
6455 New field.
6456 * infcall.c (run_inferior_call): Adjust call to proceed.
6457 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
6458 Adjust calls to proceed.
6459 (set_step_frame): Set the current thread's step_start_function
6460 here.
6461 (step_once): Adjust calls to proceed.
6462 (jump_command, signal_command, until_next_command)
6463 (finish_backward, finish_forward, proceed_after_attach_callback)
6464 (attach_command_post_wait): Adjust calls to proceed.
6465 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
6466 (do_target_resume): New function, factored out from ...
6467 (resume): ... here. Remove 'step' parameter. Instead, check
6468 currently_stepping to determine whether the thread should be
6469 single-stepped.
6470 (proceed): Remove 'step' parameter and don't set the thread's
6471 step_start_function here. Adjust call to 'resume'.
6472 (handle_inferior_event): Adjust calls to 'resume'.
6473 (switch_back_to_stepped_thread): Use do_target_resume instead of
6474 'resume'.
6475 (keep_going): Adjust calls to 'resume'.
6476 * infrun.h (proceed): Remove 'step' parameter.
6477 (resume): Likewise.
6478 * windows-nat.c (do_initial_windows_stuff): Adjust call to
6479 'resume'.
6480 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
6481
856e7dd6
PA
64822015-03-24 Pedro Alves <palves@redhat.com>
6483
6484 * gdbthread.h (struct thread_control_state) <stepping_command>:
6485 New field.
6486 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
6487 the thread's stepping_command field.
6488 * infrun.c (resume): Check the thread's stepping_command flag to
6489 determine which threads should be resumed. Rename 'entry_step'
6490 local to user_step.
6491 (clear_proceed_status_thread): Clear 'stepping_command'.
6492 (schedlock_applies): Change parameter type to struct thread_info
6493 pointer. Adjust.
6494 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
6495 (switch_back_to_stepped_thread): Adjust calls to
6496 'schedlock_applies'.
6497 (_initialize_infrun): Adjust "set scheduler-locking step" help.
6498
885eeb5b
PA
64992015-03-24 Pedro Alves <palves@redhat.com>
6500
6501 * infrun.c (step_start_function): Delete and ...
6502 * gdbthread.h (struct thread_control_state) <step_start_function>:
6503 ... now a field here.
6504 * infrun.c (clear_proceed_status_thread): Clear the thread's
6505 step_start_function.
6506 (proceed, process_event_stop_test, print_stop_event): Adjust.
6507
3333f03a
PA
65082015-03-24 Pedro Alves <palves@redhat.com>
6509
6510 * infrun.c (proceed): No longer handle negative step.
6511
369f6daa
GB
65122015-03-24 Gary Benson <gbenson@redhat.com>
6513
6514 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
6515 (x86_linux_prepare_to_resume): Likewise.
6516 * x86-linux-nat.c (x86_linux_new_thread):
6517 Moved to nat/x86-linux.c.
6518 (x86_linux_prepare_to_resume): Likewise.
6519 * nat/x86-linux.c (x86_linux_new_thread): New function.
6520 (x86_linux_prepare_to_resume): Likewise.
6521
8e5d4070
GB
65222015-03-24 Gary Benson <gbenson@redhat.com>
6523
6524 * nat/x86-linux-dregs.h: New file.
6525 * nat/x86-linux-dregs.c: Likewise.
6526 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
6527 (x86-linux-dregs.o): New rule.
6528 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
6529 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6530 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
6531 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6532 (x86_linux_dr_get): Likewise.
6533 (x86_linux_dr_set): Likewise.
6534 (x86_linux_dr_get_addr): Likewise.
6535 (x86_linux_dr_get_control): Likewise.
6536 (x86_linux_dr_get_status): Likewise.
6537 (update_debug_registers_callback): Likewise.
6538 (x86_linux_dr_set_control): Likewise.
6539 (x86_linux_dr_set_addr): Likewise.
6540 (x86_linux_update_debug_registers): Likewise.
6541
2b95d440
GB
65422015-03-24 Gary Benson <gbenson@redhat.com>
6543
6544 * x86-linux-nat.c (x86_linux_update_debug_registers):
6545 New function, factored out from...
6546 (x86_linux_prepare_to_resume): ...this.
6547
14b0bc68
GB
65482015-03-24 Gary Benson <gbenson@redhat.com>
6549
6550 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
6551 (x86_linux_dr_set): Likewise.
6552 (x86_linux_dr_get_addr): Likewise.
6553 (x86_linux_dr_get_control): Likewise.
6554 (x86_linux_dr_get_status): Likewise.
6555 (update_debug_registers_callback): Likewise.
6556 (x86_linux_dr_set_control): Likewise.
6557 (x86_linux_dr_set_addr): Likewise.
6558 (x86_linux_prepare_to_resume): Likewise.
6559 (x86_linux_new_thread): Likewise.
6560
5dfe6ca8
GB
65612015-03-24 Gary Benson <gbenson@redhat.com>
6562
6563 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
6564 (x86_linux_new_thread): Rename argument.
6565
4b134ca1
GB
65662015-03-24 Gary Benson <gbenson@redhat.com>
6567
6568 * nat/x86-linux.h: New file.
6569 * nat/x86-linux.c: Likewise.
6570 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
6571 (x86-linux.o): New rule.
6572 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
6573 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6574 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
6575 (lwp_set_arch_private_info): New declaration.
6576 (lwp_arch_private_info): Likewise.
6577 * linux-nat.c (lwp_set_arch_private_info): New function.
6578 (lwp_arch_private_info): Likewise.
6579 * x86-linux-nat.c: Include nat/x86-linux.h.
6580 (arch_lwp_info): Removed structure.
6581 (update_debug_registers_callback):
6582 Use lwp_set_debug_registers_changed.
6583 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
6584 and lwp_set_debug_registers_changed.
6585 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
6586
cff068da
GB
65872015-03-24 Gary Benson <gbenson@redhat.com>
6588
6589 * nat/linux-nat.h (ptid_of_lwp): New declaration.
6590 (lwp_is_stopped): Likewise.
6591 (lwp_stop_reason): Likewise.
6592 * linux-nat.c (ptid_of_lwp): New function.
6593 (lwp_is_stopped): Likewise.
6594 (lwp_is_stopped_by_watchpoint): Likewise.
6595 * x86-linux-nat.c (update_debug_registers_callback):
6596 Use lwp_is_stopped.
6597 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
6598 lwp_stop_reason.
6599
b2f7c7e8
GB
66002015-03-24 Gary Benson <gbenson@redhat.com>
6601
6602 * linux-nat.h (linux_stop_lwp): Move declaration to...
6603 * nat/linux-nat.h (linux_stop_lwp): New declaration.
6604
6d4ee8c6
GB
66052015-03-24 Gary Benson <gbenson@redhat.com>
6606
6607 * linux-nat.h: Include nat/linux-nat.h.
6608 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
6609 * nat/linux-nat.h (struct lwp_info): New forward declaration.
6610 (iterate_over_lwps_ftype): New typedef.
6611 (iterate_over_lwps): New declaration.
6612 * linux-nat.h (iterate_over_lwps): Update comment. Use
6613 iterate_over_lwps_ftype. Update callback return value check.
6614
70a0bb6b
GB
66152015-03-24 Gary Benson <gbenson@redhat.com>
6616
6617 * x86-nat.h (x86_debug_reg_state): Move declaration to...
6618 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
6619
7b669087
GB
66202015-03-24 Gary Benson <gbenson@redhat.com>
6621
6622 * nat/linux-nat.h (current_lwp_ptid): New declaration.
6623 * linux-nat.c (current_lwp_ptid): New function.
6624 * x86-linux-nat.c: Include nat/linux-nat.h.
6625 (x86_linux_dr_get_addr): Use current_lwp_ptid.
6626 (x86_linux_dr_get_control): Likewise.
6627 (x86_linux_dr_get_status): Likewise.
6628 (x86_linux_dr_set_control): Likewise.
6629 (x86_linux_dr_set_addr): Likewise.
6630
15630549
AT
66312015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
6632
6633 PR breakpoints/16466
6634 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
6635
8a4506c0
JB
66362015-03-23 Joel Brobecker <brobecker@adacore.com>
6637
6638 * ser-mingw.c (ser_windows_setparity): Fix indentation.
6639 * ser-unix.c (hardwire_setparity): Likewise.
6640
236af5e3
YG
66412015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
6642
6643 * NEWS: Mention set/show serial parity command.
6644 * monitor.c (monitor_open): Call serial_setparity.
6645 * remote.c (remote_open_1): Likewise.
6646 * ser-base.c (ser_base_serparity): New function.
6647 * ser-base.h (ser_base_setparity): Add declaration.
6648 * ser-go32.c (dos_ops): Set "setparity" field.
6649 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
6650 state.Parity.
6651 (ser_windows_setparity): New function.
6652 (hardwire_ops): Add ser_windows_setparity.
6653 (tty_ops): Add NULL for setparity field.
6654 (pipe_ops): Add ser_base_setparity.
6655 (tcp_ops): Likewise.
6656 * ser-pipe.c (pipe_ops): Likewise.
6657 * ser-tcp.c (tcp_ops): Likewise.
6658 * ser-unix.c (hardwire_setparity): Add declaration.
6659 (hardwire_raw): Don't reset PARENB flag.
6660 (hardwire_setparity): New function.
6661 (hardwire_ops): Add hardwire_setparity.
6662 * serial.c (serial_setparity): New function.
6663 (serial_parity): New global.
6664 (parity_none, parity_odd, parity_even, parity_enums, parity):
6665 New static globals.
6666 (set_parity): New function.
6667 (_initialize_serial): Add set/show serial parity commands.
6668 * serial.h (GDBPARITY_NONE): Define.
6669 (GDBPARITY_ODD): Define.
6670 (GDBPARITY_EVEN): Define.
6671 (serial_setparity) Add declaration.
6672 (struct serial_ops): Add setparity field.
6673 * target.h (serial_parity): Add declaration.
6674
32b40af9
KS
66752015-03-23 Keith Seitz <keiths@redhat.com>
6676
6677 * linespec.c (linespec_lexer_lex_keyword): Update comment.
6678
693dca06
KS
66792015-03-23 Keith Seitz <keiths@redhat.com>
6680
6681 * breakpoint.c (parse_breakpoint_sals): Use
6682 linespec_lexer_lex_keyword to ascertain if the user specified
6683 a NULL location.
6684 * linespec.c [IF_KEYWORD_INDEX]: Define.
6685 (linespec_lexer_lex_keyword): Export.
6686 (struct ls_parser) <keyword_ok>: Remove.
6687 A keyword is only a keyword if not followed by another keyword.
6688 (linespec_lexer_lex_one): Remove keyword_ok handling.
6689 Add comment explaining why the parsing stream is not advanced
6690 when a keyword is seen.
6691 (parse_linespec): Remove parser->keyword_ok.
6692 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
6693
7e993ebf
KS
66942015-03-23 Keith Seitz <keiths@redhat.com>
6695
6696 PR gdb/18021
6697 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
6698 if we find a static method with DW_AT_vtable_elem_location.
6699
b1a0f704
EZ
67002015-03-21 Eli Zaretskii <eliz@gnu.org>
6701
6702 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
6703 before the second loop, to avoid undefined behavior. Reported by
6704 Anton Blanchard <anton@samba.org>.
6705
d9823cbb
KB
67062015-03-20 Keven Boell <keven.boell@intel.com>
6707
6708 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
6709 data_location usage to linked list.
6710 (resolve_dynamic_type_internal): Adapt data_location to
6711 linked list.
6712 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
6713 (copy_type_recursive, copy_type): Add copy of linked list.
6714 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
6715 (struct dynamic_prop_list): New struct.
6716 * dwarf2read.c (set_die_type): Set data_location data.
6717
2e7bf1d7
PA
67182015-03-20 Pedro Alves <palves@redhat.com>
6719
6720 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
6721 inner block and make it const.
6722 * machoread.c (get_archive_prefix_len): Make "lparen" const.
6723
7a26bd4d
PA
67242015-03-20 Pedro Alves <palves@redhat.com>
6725
6726 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
6727 * breakpoint.h (set_breakpoint_condition): Update declaration.
6728
cd46431b
PA
67292015-03-20 Pedro Alves <palves@redhat.com>
6730
6731 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
6732
e28566f7
PA
67332015-03-20 Pedro Alves <palves@redhat.com>
6734
6735 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
6736
f6fc92f6
PA
67372015-03-20 Pedro Alves <palves@redhat.com>
6738
6739 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
6740
c32ed3ef
PA
67412015-03-20 Pedro Alves <palves@redhat.com>
6742
6743 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
6744 (nto_init_solib_absolute_prefix): Likewise.
6745
53e78085
PA
67462015-03-20 Pedro Alves <palves@redhat.com>
6747
6748 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
6749 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
6750
bc23328c
JK
67512015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6752
6753 * config/djgpp/README: Remove gdb.hp.
6754
e8ffc436
YQ
67552015-03-20 Yao Qi <yao.qi@linaro.org>
6756
6757 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6758 set_gdbarch_cannot_step_breakpoint.
6759
23f238d3
PA
67602015-03-19 Pedro Alves <palves@redhat.com>
6761
6762 * linux-nat.c (linux_resume_one_lwp): Rename to ...
6763 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
6764 instead call perror_with_name.
6765 (check_ptrace_stopped_lwp_gone): New function.
6766 (linux_resume_one_lwp): Reimplement as wrapper around
6767 linux_resume_one_lwp_throw that swallows errors if the LWP is
6768 gone.
6769 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
6770 swallows errors if the LWP is gone. Use
6771 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
6772
eb54c8bf
PA
67732015-03-19 Pedro Alves <palves@redhat.com>
6774
6775 * linux-nat.c (status_callback): Return early if the LWP has no
6776 status pending.
6777
b90fc188
PA
67782015-03-19 Pedro Alves <palves@redhat.com>
6779
6780 * linux-nat.c (select_event_lwp_callback): Update comment to no
6781 longer mention SIGTRAP.
6782
670f82d4
TG
67832015-03-18 Tristan Gingold <gingold@adacore.com>
6784
72f4393d
L
6785 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
6786 redirection code to ...
6787 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
6788 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
670f82d4 6789
464b0089
GB
67902015-03-18 Gary Benson <gbenson@redhat.com>
6791
6792 (remote_protocol_features): Remove the "vFile:fstat" feature.
6793 (remote_hostio_fstat): Probe for "vFile:fstat" support.
6794
f68f11b7
YQ
67952015-03-11 Yao Qi <yao.qi@linaro.org>
6796
6797 PR tdep/18107
6798 * aarch64-linux-tdep.c: Include xml-syscall.h
6799 (aarch64_linux_get_syscall_number): New function.
6800 (aarch64_linux_init_abi): Call
6801 set_gdbarch_get_syscall_number.
6802 * syscalls/aarch64-linux.xml: New file.
6803
393bd0c0
YG
68042015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
6805
6806 * ser-base.h (ser_base_setstopbits): Change second argument name
6807 from "rate" to "num".
6808
7f3647e2
GB
68092015-03-17 Gary Benson <gbenson@redhat.com>
6810 Luke Allardyce <lukeallardyce@gmail.com>
6811
6812 PR gdb/18131
6813 * common/common-remote-fileio.h (sys/stat.h): New include.
6814 (stuct stat): Remove forward declaration.
6815
3ce5b6e2
JB
68162015-03-16 John Baldwin <jhb@FreeBSD.org>
6817
6818 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
6819 before writing core register notes.
6820
d053f6be
YZ
68212015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
6822 Pedro Alves <palves@redhat.com>
6823
6824 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
6825 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
6826 (tgoto): Wrap with extern "C".
6827
b1a921c8
PA
68282015-03-16 Pedro Alves <palves@redhat.com>
6829 Yuanhui Zhang <asmwarrior@gmail.com>
6830
6831 * stub-termcap.c (tputs): Change prototype.
6832
876d1cd7
YZ
68332015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
6834 Pedro Alves <palves@redhat.com>
6835
6836 * windows-nat.c (struct thread_info_struct): Rename to ...
6837 (struct windows_thread_info_struct): ... this.
6838 (thread_info): Rename to ...
6839 (windows_thread_info): ... this.
6840 All users updated.
6841
0800b440
JK
68422015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6843 Pedro Alves <palves@redhat.com>
6844
6845 * NEWS: New Removed targets and native configurations.
6846
68472015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
61a12cfa
JK
6848
6849 Remove HPUX.
6850 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
6851 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
6852 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
6853 ia64-hpux-tdep.h, solib-ia64-hpux.h.
6854 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
6855 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
6856 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
6857 hppa-hpux-tdep.c.
6858 * config/ia64/hpux.mh: Remove file.
6859 * config/pa/hpux.mh: Remove file.
6860 * configure: Rebuilt.
6861 * configure.ac (dlgetmodinfo, somread.o): Remove.
6862 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
6863 (ia64-*-hpux*): Remove its float format exception.
6864 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
6865 * hppa-hpux-nat.c: Remove file.
6866 * hppa-hpux-tdep.c: Remove file.
6867 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
6868 Move them here from hppa-tdep.h
6869 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
6870 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
6871 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
6872 Move them to hppa-tdep.c.
6873 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
6874 declarations.
6875 * ia64-hpux-nat.c: Remove file.
6876 * ia64-hpux-tdep.c: Remove file.
6877 * ia64-hpux-tdep.h: Remove file.
6878 * inf-ttrace.c: Remove file.
6879 * inf-ttrace.h: Remove file.
6880 * solib-ia64-hpux.c: Remove file.
6881 * solib-ia64-hpux.h: Remove file.
6882 * solib-pa64.c: Remove file.
6883 * solib-pa64.h: Remove file.
6884 * solib-som.c: Remove file.
6885 * solib-som.h: Remove file.
6886 * somread.c: Remove file.
6887
25268153
JB
68882015-03-13 John Baldwin <jhb@FreeBSD.org>
6889
6890 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
6891 * config.in: Regenerate.
6892 * configure: Regenerate.
6893 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
72f4393d 6894 define.
25268153
JB
6895 (fbsd_find_memory_regions): Use kinfo_getvmmap to
6896 enumerate memory regions if present.
6897
773eacf5
JB
68982015-03-13 John Baldwin <jhb@FreeBSD.org>
6899
6900 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
6901 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
6902 expressions.
6903 (i386fbsd_sigtramp_p): Likewise.
6904
01b6bdb0
JB
69052015-03-12 John Baldwin <jhb@FreeBSD.org>
6906
6907 * MAINTAINERS (Write After Approval): Add John Baldwin.
6908
811a659a
GB
69092015-03-12 Gary Benson <gbenson@redhat.com>
6910
6911 * solib.c (_initialize_solib): Make "set/show sysroot" use
6912 add_setshow_optional_filename_cmd so it can be restored to
6913 empty after being set.
6914
10304ef3
SDJ
69152015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
6916
6917 * Makefile.in (SFILES): New source break-catch-syscall.c.
6918 (COMMON_OBS): New object break-catch-syscall.o.
6919 * break-catch-syscall.c: New file.
6920 * breakpoint.c: Remove inclusion of "xml-syscall.h".
6921 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
6922 (struct syscall_catchpoint): Likewise.
6923 (dtor_catch_syscall): Likewise.
6924 (catch_syscall_inferior_data): Likewise.
6925 (struct catch_syscall_inferior_data): Likewise.
6926 (get_catch_syscall_inferior_data): Likewise.
6927 (catch_syscall_inferior_data_cleanup): Likewise.
6928 (insert_catch_syscall): Likewise.
6929 (remove_catch_syscall): Likewise.
6930 (breakpoint_hit_catch_syscall): Likewise.
6931 (print_it_catch_syscall): Likewise.
6932 (print_one_catch_syscall): Likewise.
6933 (print_mention_catch_syscall): Likewise.
6934 (print_recreate_catch_syscall): Likewise.
6935 (catch_syscall_breakpoint_ops): Likewise.
6936 (syscall_catchpoint_p): Likewise.
6937 (create_syscall_event_catchpoint): Likewise.
6938 (catch_syscall_split_args): Likewise.
6939 (catch_syscall_command_1): Likewise.
6940 (is_syscall_catchpoint_enabled): Likewise.
6941 (catch_syscall_enabled): Likewise.
6942 (catching_syscall_number): Likewise.
6943 (catch_syscall_completer): Likewise.
6944 (clear_syscall_counts): Likewise.
6945 (initialize_breakpoint_ops): Move initialization of syscall
6946 catchpoints to break-catch-syscall.c.
6947 (_initialize_breakpoint): Move code related to syscall catchpoints
6948 to break-catch-syscall.c.
6949
badd37ce
SDJ
69502015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
6951
6952 * breakpoint.c (breakpoint_find_if): New function.
6953 * breakpoint.h (breakpoint_find_if): New prototype.
6954
0a93529c
GB
69552015-03-11 Gary Benson <gbenson@redhat.com>
6956
6957 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
6958 * remote-fileio.c (remote_fileio_to_host_uint): New function.
6959 (remote_fileio_to_host_ulong): Likewise.
6960 (remote_fileio_to_host_mode): Likewise.
6961 (remote_fileio_to_host_time): Likewise.
6962 (remote_fileio_to_host_stat): Likewise.
6963 * remote.c (PACKET_vFile_fstat): New enum value.
6964 (remote_protocol_features): Register the "vFile:fstat" feature.
6965 (remote_hostio_fstat): New function.
6966 (remote_bfd_iovec_stat): Use the above.
6967 (_initialize_remote): Register new "set/show remote
6968 hostio-fstat-packet" command.
6969 * symfile.c (separate_debug_file_exists): Update comment.
6970 * NEWS: Announce new vFile:fstat packet.
6971
791c0056
GB
69722015-03-11 Gary Benson <gbenson@redhat.com>
6973
6974 * common/common-remote-fileio.h: New file.
6975 * common/common-remote-fileio.c: Likewise.
6976 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
6977 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
6978 (COMMON_OBS): Add common-remote-fileio.o.
6979 (common-remote-fileio.o): New rule.
6980 * remote-fileio.h (common-remote-fileio.h): New include.
6981 * remote-fileio.c (gdb/fileio.h): Do not include.
6982 (remote_fileio_to_be): Moved to common-remote-fileio.h.
6983 (remote_fileio_to_fio_uint): Likewise.
6984 (remote_fileio_to_fio_time): Likewise.
6985 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
6986 (remote_fileio_to_fio_mode): Likewise.
6987 (remote_fileio_to_fio_ulong): Likewise.
6988 (remote_fileio_to_fio_stat): Likewise.
6989
1390d0ef
AW
69902015-03-11 Andy Wingo <wingo@igalia.com>
6991
6992 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
6993 we were checking the cached type, not the cached dynamic type.
6994
84a4591a
AW
69952015-03-11 Andy Wingo <wingo@igalia.com>
6996
6997 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
6998 other strings, as these are on the GC'd heap, and will be
6999 collected along with the smob.
7000
85642ba0
AW
70012015-03-11 Andy Wingo <wingo@igalia.com>
7002
7003 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7004 (objfile_functions): Bind gdbscm_objfile_progspace to
7005 objfile-progspace.
7006 * guile/lib/gdb.scm: Add objfile-progspace to exports.
7007
92fab5a6
AW
70082015-03-11 Andy Wingo <wingo@igalia.com>
7009
7010 * guile/guile.c (_initialize_guile): Disable automatic
7011 finalization, if Guile offers us that possibility.
7012 * guile/guile.c (call_initialize_gdb_module):
7013 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
7014 finalizers in appropriate places.
7015 * configure.ac (AC_TRY_LIBGUILE): Add a check for
7016 scm_set_automatic_finalization_enabled.
7017 * configure: Regenerated.
7018
f054145e
AA
70192015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7020
7021 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
7022 SAL, if possible.
7023
18396193
AA
70242015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7025
7026 * s390-linux-nat.c (struct arch_lwp_info): New.
7027 (s390_fix_watch_points): Rename to...
7028 (s390_prepare_to_resume): ...this. Skip the PER info update
7029 unless the watch points have changed.
7030 (s390_refresh_per_info, s390_new_thread): New functions.
7031 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
7032 s390_fix_watch_points.
7033 (s390_remove_watchpoint): Likewise.
7034 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
7035 Register s390_prepare_to_resume.
7036
9eb1356e
PA
70372015-03-09 Pedro Alves <palves@redhat.com>
7038
7039 Revert:
7040 2015-03-07 Pedro Alves <palves@redhat.com>
7041 * common/gdb_socket.h: New file.
7042 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7043 sys/socket.h.
7044 (net_open): Use union gdb_sockaddr_u.
7045
aac331e4
PA
70462015-03-07 Pedro Alves <palves@redhat.com>
7047
7048 * configure.ac (build_warnings): Move -Wmissing-prototypes
7049 -Wdeclaration-after-statement -Wmissing-parameter-type
7050 -Wold-style-declaration -Wold-style-definition to the C-specific
7051 set.
7052 * configure: Regenerate.
7053
366c75fc
PA
70542015-03-07 Pedro Alves <palves@redhat.com>
7055
7056 * common/gdb_socket.h: New file.
7057 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7058 sys/socket.h.
7059 (net_open): Use union gdb_sockaddr_u.
7060
72df25b2
PA
70612015-03-07 Pedro Alves <palves@redhat.com>
7062
7063 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
7064 (exceptions_state_mc_action_iter)
7065 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7066 Don't define.
7067 [__cplusplus] (try_scope_depth): New global.
7068 [__cplusplus] (exception_try_scope_entry)
7069 (exception_try_scope_exit, gdb_exception_sliced_copy)
7070 (exception_rethrow): New functions.
7071 (throw_exception): In C++ mode, throw
7072 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
7073 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
7074 (throw_it): In C++ mode, use try_scope_depth.
7075 * common/common-exceptions.h [!__cplusplus]
7076 (exceptions_state_mc_action_iter)
7077 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7078 Don't declare.
7079 [__cplusplus] (exception_try_scope_entry)
7080 (exception_try_scope_exit, exception_rethrow): Declare.
7081 [__cplusplus] (struct exception_try_scope): New struct.
7082 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
7083 C++ exceptions.
7084 (struct gdb_exception_RETURN_MASK_ALL)
7085 (struct gdb_exception_RETURN_MASK_ERROR)
7086 (struct gdb_exception_RETURN_MASK_QUIT): New types.
7087
284e6217
PA
70882015-03-07 Pedro Alves <palves@redhat.com>
7089
7090 * main.c (handle_command_errors): Remove volatile qualifier from
7091 parameter.
7092
6c63c96a
PA
70932015-03-07 Pedro Alves <palves@redhat.com>
7094
7095 * breakpoint.c (save_breakpoints): Adjust to avoid code between
7096 TRY and CATCH.
7097 * gdbtypes.c (safe_parse_type): Remove empty line.
7098 (types_deeply_equal):
7099 * guile/scm-frame.c (gdbscm_frame_name):
7100 * linux-thread-db.c (find_new_threads_once):
7101 * python/py-breakpoint.c (bppy_get_commands):
7102 * record-btrace.c (record_btrace_insert_breakpoint)
7103 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
7104 (record_btrace_start_replaying): Adjust to avoid code between TRY
7105 and CATCH.
7106
492d29ea
PA
71072015-03-07 Pedro Alves <palves@redhat.com>
7108
7109 * common/common-exceptions.c (struct catcher) <exception>: No
7110 longer a pointer to volatile exception. Now an exception value.
7111 <mask>: Delete field.
7112 (exceptions_state_mc_init): Remove all parameters. Adjust.
7113 (exceptions_state_mc): No longer pop the catcher here.
7114 (exceptions_state_mc_catch): New function.
7115 (throw_exception): Adjust.
7116 * common/common-exceptions.h (exceptions_state_mc_init): Remove
7117 all parameters.
7118 (exceptions_state_mc_catch): Declare.
7119 (TRY_CATCH): Rename to ...
7120 (TRY): ... this. Remove EXCEPTION and MASK parameters.
7121 (CATCH, END_CATCH): New.
7122 All callers adjusted.
7123
ece957c8
TT
71242015-03-07 Tom Tromey <tromey@redhat.com>
7125
7126 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
7127
7556d4a4
PA
71282015-03-07 Pedro Alves <palves@redhat.com>
7129
7130 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7131 (amd64_epilogue_frame_cache): Normal exception handling code.
7132 * break-catch-throw.c (check_status_exception_catchpoint)
7133 (re_set_exception_catchpoint): Ditto.
7134 * cli/cli-interp.c (safe_execute_command):
7135 * cli/cli-script.c (script_from_file): Ditto.
7136 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
7137 Ditto.
7138 * compile/compile-object-run.c (compile_object_run): Ditto.
7139 * cp-abi.c (baseclass_offset): Ditto.
7140 * cp-valprint.c (cp_print_value): Ditto.
7141 * exceptions.c (catch_exceptions_with_msg):
7142 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
7143 * frame.c (get_frame_address_in_block_if_available): Ditto.
7144 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7145 (i386_sigtramp_frame_cache): Ditto.
7146 * infcmd.c (post_create_inferior): Ditto.
7147 * linespec.c (parse_linespec, find_linespec_symbols):
7148 * p-valprint.c (pascal_object_print_value): Ditto.
7149 * parse.c (parse_expression_for_completion): Ditto.
7150 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7151 * remote.c (remote_get_noisy_reply): Ditto.
7152 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
7153 * solib-svr4.c (solib_svr4_r_map): Ditto.
7154
f873665f 71552015-03-06 Gary Benson <gbenson@redhat.com>
61012eef
GB
7156
7157 * common/common-utils.h (startswith): New inline function.
7158 All places where this logic was used updated to use the above.
7159
68901c4d
PA
71602015-03-05 Pedro Alves <palves@redhat.com>
7161
7162 PR gdb/18002
7163 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
7164 after reading the breakpoint's shadow memory.
7165
2dcb2b1a
MK
71662015-03-05 Mark Kettenis <kettenis@gnu.org>
7167
7168 * hppabsd-nat.c: Remove file.
7169 * hppaobsd-nat.c: New file.
7170 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
7171 hppaobsd-nat.c.
7172 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
7173 hppaobsd-nat.o.
7174
527a273a
PA
71752015-03-04 Pedro Alves <palves@redhat.com>
7176
7177 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
7178 (target_decr_pc_after_break): Delete declaration.
7179 * target.c (default_target_decr_pc_after_break)
7180 (target_decr_pc_after_break): Delete.
7181 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
7182 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
7183 * linux-thread-db.c (check_event): Likewise.
7184 * infrun.c (adjust_pc_after_break): Likewise.
7185 * darwin-nat.c (cancel_breakpoint): Likewise.
7186 * aix-thread.c (aix_thread_wait): Likewise.
7187 * target-delegates.c: Regenerate.
7188
faf09f01
PA
71892015-03-04 Pedro Alves <palves@redhat.com>
7190
7191 * linux-nat.c (save_sigtrap): Check for breakpoints before
7192 checking watchpoints.
7193 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7194 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7195 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
7196 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
7197 (linux_nat_stopped_by_sw_breakpoint)
7198 (linux_nat_supports_stopped_by_sw_breakpoint)
7199 (linux_nat_stopped_by_hw_breakpoint)
7200 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
7201 (linux_nat_wait_1): Don't re-increment the PC if relying on
7202 SIGTRAP's siginfo->si_code.
7203 (linux_nat_add_target): Install new target methods.
7204 * linux-thread-db.c (check_event): Don't account for breakpoint PC
7205 offset if the target already adjusted the PC.
7206 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
7207 (GDB_ARCH_TRAP_BRKPT): New.
7208 (TRAP_HWBKPT): Define if not already defined.
7209
f7e6eed5
PA
72102015-03-04 Pedro Alves <palves@redhat.com>
7211
7212 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
7213 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
7214 Delete field.
7215 <stop_reason>: New field.
7216 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
7217 (packet_set_cmd_state): New function.
7218 (remote_protocol_features): Register the "swbreak" and "hwbreak"
7219 features.
7220 (remote_query_supported): If not disabled with the corresponding
7221 "set remote foo-packet" command, report support for the swbreak
7222 and hwbreak features.
7223 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
7224 field.
7225 <stop_reason>: New field.
7226 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
7227 (remote_wait_as): Adjust.
7228 (remote_stopped_by_sw_breakpoint)
7229 (remote_supports_stopped_by_sw_breakpoint)
7230 (remote_stopped_by_hw_breakpoint)
7231 (remote_supports_stopped_by_hw_breakpoint): New functions.
7232 (remote_stopped_by_watchpoint): New function.
7233 (init_remote_ops): Install them.
7234 (_initialize_remote): Register new "set/show remote
7235 swbreak-feature-packet" and "set/show remote
7236 swbreak-feature-packet" commands.
7237
9e8915c6
PA
72382015-03-04 Pedro Alves <palves@redhat.com>
7239
7240 * btrace.h: Include target/waitstatus.h.
7241 (struct btrace_thread_info) <stop_reason>: New field.
7242 * record-btrace.c (record_btrace_step_thread): Use
7243 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7244 (record_btrace_decr_pc_after_break): Delete.
7245 (record_btrace_stopped_by_sw_breakpoint)
7246 (record_btrace_supports_stopped_by_sw_breakpoint)
7247 (record_btrace_stopped_by_hw_breakpoint)
7248 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
7249 (init_record_btrace_ops): Install them.
7250 * record-full.c (record_full_hw_watchpoint): Delete and replace
7251 with ...
7252 (record_full_stop_reason): ... this throughout.
7253 (record_full_exec_insn): Adjust.
7254 (record_full_wait_1): Adjust. No longer re-increment the PC.
7255 (record_full_wait_1): Adjust. Use
7256 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7257 (record_full_stopped_by_watchpoint): Adjust.
7258 (record_full_stopped_by_sw_breakpoint)
7259 (record_full_supports_stopped_by_sw_breakpoint)
7260 (record_full_supports_stopped_by_sw_breakpoint)
7261 (record_full_stopped_by_hw_breakpoint)
7262 (record_full_supports_stopped_by_hw_breakpoint): New functions.
7263 (init_record_full_ops, init_record_full_core_ops): Install them.
7264 * record.c (record_check_stopped_by_breakpoint): New function.
7265 * record.h: Include target/waitstatus.h.
7266 (record_check_stopped_by_breakpoint): New declaration.
7267
15c66dd6
PA
72682015-03-04 Pedro Alves <palves@redhat.com>
7269
7270 enum lwp_stop_reason -> enum target_stop_reason
7271 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
7272 (linux_nat_stopped_by_watchpoint, status_callback)
7273 (linux_nat_wait_1): Adjust.
7274 * linux-nat.h (enum lwp_stop_reason): Delete.
7275 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7276 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7277 * target/waitstatus.h (enum target_stop_reason): New.
7278
1cf4d951
PA
72792015-03-04 Pedro Alves <palves@redhat.com>
7280
7281 * breakpoint.c (need_moribund_for_location_type): New function.
7282 (bpstat_stop_status): Don't skipping checking moribund locations
7283 of breakpoint types which the target tell caused a stop.
7284 (program_breakpoint_here_p): New function, factored out from ...
7285 (bp_loc_is_permanent): ... this.
7286 (update_global_location_list): Don't create a moribund location if
7287 the target supports reporting stops of the type of the removed
7288 breakpoint.
7289 * breakpoint.h (program_breakpoint_here_p): New declaration.
7290 * infrun.c (adjust_pc_after_break): Return early if the target has
7291 already adjusted the PC. Add comments.
7292 (handle_signal_stop): If nothing explains a signal, and the target
7293 tells us the stop was caused by a software breakpoint, check if
7294 there's a breakpoint instruction in the memory. If so, adjust the
7295 PC before presenting the stop to the user. Otherwise, ignore the
7296 trap. If nothing explains a signal, and the target tells us the
7297 stop was caused by a hardware breakpoint, ignore the trap.
7298 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
7299 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
7300 to_supports_stopped_by_hw_breakpoint>: New fields.
7301 (target_stopped_by_sw_breakpoint)
7302 (target_supports_stopped_by_sw_breakpoint)
7303 (target_stopped_by_hw_breakpoint)
7304 (target_supports_stopped_by_hw_breakpoint): Define.
7305 * target-delegates.c: Regenerate.
7306
79639e11
PA
73072015-03-04 Pedro Alves <palves@redhat.com>
7308
7309 * infrun.c (follow_fork_inferior): Use the whole of the
7310 inferior_ptid and pending_follow.related_pid ptids instead of
7311 building ptids from the process components. Adjust verbose output
7312 to use target_pid_to_str.
7313 * linux-nat.c (linux_child_follow_fork): Use the whole of the
7314 inferior_ptid and pending_follow.related_pid ptids instead of
7315 building ptids from the process components.
7316
e85e8e5e
MK
73172015-03-04 Mark Kettenis <kettenis@gnu.org>
7318
7319 * inf-ptrace.c [PT_GET_PROCESS_STATE]
7320 (inf_ptrace_insert_fork_catchpoint): New function.
7321 (inf_ptrace_remove_fork_catchpoint): New function.
7322 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
7323
87de11c0
AA
73242015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7325
7326 * s390-linux-tdep.c (s390_register_name): Return empty string
7327 instead of NULL for registers that shouldn't be visible.
7328
d851a69a
AA
73292015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7330
7331 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
7332 XML file for 64-bit targets.
7333
b072f6c1
SM
73342015-03-03 Simon Marchi <simon.marchi@ericsson.com>
7335
7336 * target.h (find_default_create_inferior): Remove declaration.
7337 (find_default_attach): Likewise.
7338
c1593e4f
PA
73392015-03-03 Pedro Alves <palves@redhat.com>
7340
7341 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
7342 Use ptid_get_pid to get the overall process id when resuming all
7343 threads.
7344
90ad5e1d
PA
73452015-03-03 Pedro Alves <palves@redhat.com>
7346
7347 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
7348 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
7349 * inf-ptrace.c (get_ptrace_pid): New function.
7350 (inf_ptrace_resume): Use it.
7351 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
7352 to the lower layer.
7353
d68e53f4
MM
73542015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7355
7356 * nat/linux-btrace.c: Include sys/utsname.h.
7357 (linux_determine_kernel_ptr_bits): New.
7358 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
7359 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
7360 ptr_bits.
7361
986b6601
MM
73622015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7363
7364 * btrace.c (ftrace_update_function): Treat return as tailcall for
7365 "_dl_runtime_resolve".
7366
ce0dfbea
MM
73672015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7368
7369 * btrace.h (btrace_function) <lbegin, lend>: Remove.
7370 * btrace.c (ftrace_debug): Do not print the line range.
7371 (ftrace_skip_file, ftrace_update_lines): Remove.
7372 (ftrace_new_function): Remove lbegin and lend initialization.
7373 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
7374 * record-btrace.c (btrace_compute_src_line_range): New.
7375 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
7376
95e50b27
PA
73772015-03-02 Pedro Alves <palves@redhat.com>
7378
7379 * infrun.c (follow_exec): Delete all threads of the process except
7380 the event thread. Extended comments.
7381
00e474c2
JB
73822015-03-02 Joel Brobecker <brobecker@adacore.com>
7383
7384 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
7385
cc7039d3
JB
73862015-03-02 Joel Brobecker <brobecker@adacore.com>
7387
7388 * utils.h: Remove <stdbool.h> #include.
7389 (producer_is_gcc): Change return type to "int".
7390 * utils.c (producer_is_gcc): Change return type to int.
7391 Return 1 instead of true, and 0 instead of false.
7392 Adjust function documentation accordingly.
7393
550bdf96
AA
73942015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7395
7396 * s390-linux-nat.c (have_regset_vxrs): New static variable.
7397 (s390_linux_fetch_inferior_registers): Handle vector registers, if
7398 present.
7399 (s390_linux_store_inferior_registers): Likewise.
7400 (s390_get_hwcap): Remove function. Embed its logic...
7401 (s390_read_description): ...here. Yield a target description with
7402 vector registers if applicable.
7403 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
7404 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
7405 "features/s390x-tevx-linux64.c".
7406 (struct gdbarch_tdep) <v0_full_regnum>: New field.
7407 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
7408 for "GNU/Linux-specific registers".
7409 (s390_dwarf_reg_r0l): New enum value.
7410 (s390_dwarf_reg_to_regnum): Support vector registers.
7411 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
7412 of GPR lower halves.
7413 (regnum_is_vxr_full): New function.
7414 (s390_register_name): New function.
7415 (s390_pseudo_register_name): Handle v0-v15, which are composed of
7416 f0-f15 and v0l-v15l.
7417 (s390_pseudo_register_type): Likewise.
7418 (s390_pseudo_register_read): Likewise.
7419 (s390_pseudo_register_write): Likewise.
7420 (s390_value_from_register): Account for the fact that values are
7421 placed left-justified in vector registers.
7422 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
7423 the vector reggroup and omit them from the general reggroup.
7424 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
7425 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
7426 (s390_iterate_over_regset_sections): Add iterations for the two
7427 new vector regsets.
7428 (s390_core_read_description): Yield a target description with
7429 vector registers if applicable.
7430 (s390_gdbarch_init): Handle target descriptions with vector
7431 registers. Add "register_name" gdbarch method.
7432 (_initialize_s390_tdep): Call new tdesc initialization functions.
7433 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
7434 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
7435 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
7436 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
7437 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
7438 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
7439 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
7440 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
7441 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
7442 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
7443 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
7444 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
7445 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
7446 (S390_NUM_REGS): Adjust value.
7447 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
7448 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7449 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
7450 * NEWS: Announce S/390 vector register support.
7451
446899e4
AA
74522015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7453
7454 * features/s390-tevx-linux64.xml: New file.
7455 * features/s390-vx-linux64.xml: New file.
7456 * features/s390-vx.xml: New file.
7457 * features/s390x-tevx-linux64.xml: New file.
7458 * features/s390x-vx-linux64.xml: New file.
7459 * features/Makefile (WHICH): Add s390-vx-linux64,
7460 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
7461 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
7462 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
7463 macros.
7464 * features/s390-tevx-linux64.c: New generated file.
7465 * features/s390-vx-linux64.c: Likewise.
7466 * features/s390x-tevx-linux64.c: Likewise.
7467 * features/s390x-vx-linux64.c: Likewise.
7468 * regformats/s390-tevx-linux64.dat: Likewise.
7469 * regformats/s390-vx-linux64.dat: Likewise.
7470 * regformats/s390x-tevx-linux64.dat: Likewise.
7471 * regformats/s390x-vx-linux64.dat: Likewise.
7472
b7236fbe
DE
74732015-02-28 Doug Evans <xdje42@gmail.com>
7474
7475 * symtab.h (struct symtab) <next>: Fix comment.
7476
02e62830
SM
74772015-02-27 Simon Marchi <simon.marchi@ericsson.com>
7478
7479 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
7480 python_GdbMethods.
7481
bf36a1e7
PA
74822015-02-27 Pedro Alves <palves@redhat.com>
7483
7484 * dtrace-probe.c (dtrace_probe_ops): Make extern.
7485
ad6aff7d
PA
74862015-02-27 Pedro Alves <palves@redhat.com>
7487
7488 * common/common-exceptions.h (exception_none): Declare.
7489 * common/common-exceptions.c (exception_none): Moved from
7490 exceptions.c.
7491 (exceptions_state_mc_init): Use exception_none.
7492 * exceptions.c (exception_none): Move to
7493 common/common-exceptions.c.
7494 * exceptions.h (exception_none): Move to
7495 common/common-exceptions.h.
7496
97c18565
PA
74972015-02-27 Pedro Alves <palves@redhat.com>
7498
7499 * main.c (catch_command_errors, catch_command_errors_const):
7500 Remove 'mask' argument. Adjust.
7501 (captured_main): Adjust callers.
7502
e992c591
PA
75032015-02-27 Pedro Alves <palves@redhat.com>
7504
7505 * python/python-internal.h: Include "extension-priv.h".
7506
64166036
PA
75072015-02-27 Pedro Alves <palves@redhat.com>
7508
7509 * breakpoint.h (enum print_stop_action): Move further up in the
7510 file.
7511
8a526fa6
PA
75122015-02-27 Pedro Alves <palves@redhat.com>
7513
7514 * gdbarch.sh: Include regcache.h.
7515 * gdbarch.h: Regenerate.
7516
0fa9c223
PA
75172015-02-27 Pedro Alves <palves@redhat.com>
7518
7519 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
7520 Remove duplicate const.
7521 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
7522 duplicate const.
7523
7cf99fb1
PA
75242015-02-27 Pedro Alves <palves@redhat.com>
7525
7526 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
7527 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
7528 * features/feature_to_c.sh: Tag the generated xml_builtin array
7529 with extern const in C++ mode.
7530
1424c16e
TT
75312015-02-27 Tom Tromey <tromey@redhat.com>
7532
7533 * minidebug.c (struct lzma_stream): Rename to ...
7534 (struct gdb_lzma_stream): ... this.
7535 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
7536
10367c7c
PA
75372015-02-27 Pedro Alves <palves@redhat.com>
7538
7539 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
7540 function.
7541 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7542 (mi_cmd_stack_list_variables): Use it.
7543
4180215b
PA
75442015-02-27 Pedro Alves <palves@redhat.com>
7545
7546 * x86-linux-nat.c (u_debugreg_offset): New function.
7547 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7548
2f56f7c3
PA
75492015-02-27 Pedro Alves <palves@redhat.com>
7550
7551 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
7552 declaration.
7553 Include break-common.h.
7554
570dc176
TT
75552015-02-27 Tom Tromey <tromey@redhat.com>
7556 Pedro Alves <palves@redhat.com>
7557
7558 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
7559 local used to iterate over enums.
7560 * completer.c (signal_completer): Likewise.
7561 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
7562 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
7563 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
7564 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
7565 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
7566 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
7567 * tui-wingeneral.c (tui_refresh_all): Likewise.
7568
68c14faa
PA
75692015-02-27 Pedro Alves <palves@redhat.com>
7570
7571 * target.h: Include "infrun.h".
7572
749bab01
PA
75732015-02-27 Pedro Alves <palves@redhat.com>
7574
7575 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7576
3c14e5a3
PA
75772015-02-27 Pedro Alves <palves@redhat.com>
7578
7579 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
7580 (IPA_SYM): Use it.
7581 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
7582
56000a98
PA
75832015-02-27 Pedro Alves <palves@redhat.com>
7584
7585 * cli-out.c (_rl_erase_entire_line): Move declaration out of
7586 cli_mld_erase_entire_line, and make it extern "C".
7587 * common/common-defs.h (EXTERN_C): New.
7588 * completer.c (_rl_completion_prefix_display_length)
7589 (_rl_print_completions_horizontally, QSFUNC): Move declarations
7590 out of gdb_display_match_list_1.
7591 (_rl_qsort_string_compare): Move declaration out of
7592 gdb_display_match_list_1, and make it extern "C".
7593 * defs.h (re_comp): Use EXTERN_C.
7594 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
7595 and make it extern "C".
7596 (monstartup): Move declaration out of maintenance_set_profile_cmd,
7597 and make it extern "C".
7598 (main): Move declaration out of maintenance_set_profile_cmd.
7599 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
7600 EXTERN_C.
7601
bcabf420
PA
76022015-02-27 Pedro Alves <palves@redhat.com>
7603
7604 * python/python.c (GdbMethods): Rename to ...
7605 (python_GdbMethods): ... this and make extern.
7606 (GdbModuleDef): Rename to ...
7607 (python_GdbModuleDef): ... this and make extern.
7608
928dbe07
PA
76092015-02-27 Pedro Alves <palves@redhat.com>
7610
7611 * record-btrace.c (set_record_btrace_cmdlist)
7612 (show_record_btrace_cmdlist): Remove redefinitions.
7613
52059ffd
TT
76142015-02-27 Tom Tromey <tromey@redhat.com>
7615 Pedro Alves <palves@redhat.com>
7616
7617 * dwarf2-frame.c (enum cfa_how_kind, struct
7618 dwarf2_frame_state_reg_info): Move out of struct
7619 dwarf2_frame_state.
7620 * dwarf2read.c (struct tu_stats): Move out of struct
7621 dwarf2_per_objfile.
7622 (struct file_entry): Move out of struct line_header.
7623 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
7624 typedef_field_list): Move out of struct field_info.
7625 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
7626 Move out of struct dynamic_prop.
7627 (union type_owner, union field_location, struct field, struct
7628 range_bounds, union type_specific): Move out of struct main_type.
7629 (struct fn_fieldlist, struct fn_field, struct typedef_field)
7630 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
7631 (struct call_site_target, union call_site_parameter_u, struct
7632 call_site_parameter): Move out of struct call_site.
7633 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
7634 m32c_prologue.
7635 (enum srcdest_kind): Move out of struct srcdest.
7636 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
7637 * prologue-value.h (enum prologue_value_kind): Move out of struct
7638 prologue_value.
7639 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
7640 gdbarch_tdep.
7641 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
7642 out of struct field_info.
7643 * symfile.h (struct other_sections): Move out of struct
7644 section_addr_info.
7645 * symtab.c (struct symbol_cache_slot): Move out struct
7646 block_symbol_cache.
7647 * target-descriptions.c (enum tdesc_type_kind): Move out of
7648 typedef struct tdesc_type.
7649 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
7650 struct tui_line_or_address.
7651 * value.c (enum internalvar_kind, union internalvar_data): Move
7652 out of struct internalvar.
7653 * xtensa-tdep.h (struct ctype_cache): Move out of struct
7654 gdbarch_tdep.
7655
fe978cb0
PA
76562015-02-27 Tom Tromey <tromey@redhat.com>
7657 Pedro Alves <palves@redhat.com>
7658
7659 Rename symbols whose names are reserved C++ keywords throughout.
7660
3bc3d82a
PA
76612015-02-27 Pedro Alves <palves@redhat.com>
7662
7663 * Makefile.in (COMPILER): New, get it from autoconf.
7664 (COMPILE.pre, CC_LD): Use COMPILER.
7665 (CXX): Get from autoconf instead.
7666 (CXX_FOR_TARGET): Default to g++ instead of gcc.
7667 * acinclude.m4: Include build-with-cxx.m4.
7668 * build-with-cxx.m4: New file.
7669 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
7670 Disable -Werror by default if building in C++ mode.
7671 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
7672 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
7673 Run supported-warning-flags tests with the C++ compiler.
7674 Save/restore CXXFLAGS too.
7675 * configure: Regenerate.
7676
07697489
PA
76772015-02-27 Pedro Alves <palves@redhat.com>
7678
7679 * libiberty.m4: New file.
7680 * acinclude.m4: Include libiberty.m4.
7681 * configure.ac: Call libiberty_INIT.
7682 * config.in, configure: Regenerate.
7683
60abeae4
AA
76842015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
7685
7686 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
7687 31-bit targets, but 64-bit targets as well.
7688 (s390_gnu_triplet_regexp): New function.
7689 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
7690 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
7691 method.
7692
f44466fb 76932015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
f0666312
JT
7694
7695 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
7696 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
7697 from CONTEXT_DEBUGGER.
7698
0def5aaa
DE
76992015-02-26 Doug Evans <dje@google.com>
7700
7701 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
7702 CHECK_TYPEDEF.
7703 (set_type_vptr_fieldno): Ditto.
7704 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
7705 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
7706
77b64a49
PA
77072015-02-26 Pedro Alves <palves@redhat.com>
7708
7709 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
7710 * complaints.c (vcomplaint): Pass argument FMT directly to
7711 printf-like functions instead of complaint->fmt.
7712 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
7713 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
7714 * compile/compile-loc2c.c (pushf, unary, binary): Add
7715 ATTRIBUTE_PRINTF.
7716 (do_compile_dwarf_expr_to_c): Pass string literal as format string
7717 to pushf.
7718 (BINARY): Pass string literal as format string to 'binary'.
7719 * compile/compile-object-load.c (link_callbacks_einfo): Add
7720 ATTRIBUTE_PRINTF.
7721 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
7722
532f44ed
PA
77232015-02-26 Pedro Alves <palves@redhat.com>
7724
7725 * windows-termcap.c: Rename to ...
7726 * stub-termcap.c: ... this. Adjust header line.
7727 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
7728 windows-termcap.c.
7729 * configure: Regenerate.
7730 * configure.ac: Refer to stub-termcap.o instead of
7731 windows-termcap.o.
7732 * gdb_curses.h: Mention stub-termcap.c instead of
7733 windows-termcap.c.
7734
081a1c2c
JK
77352015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7736
7737 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
7738 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
7739
2f41223f
AT
77402015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
7741
7742 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
7743
80c57053
JK
77442015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7745
7746 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
7747 bfd_canonicalize_symtab.
7748
cf424aef
JB
77492015-02-25 John Baldwin <jhb@FreeBSD.org>
7750
7751 * amd64fbsd-nat.c: Include sys/user.h.
7752 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
7753 instead of KERN_PS_STRINGS to locate the signal trampoline.
7754 * i386fbsd-nat.c: Include sys/user.h.
7755 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
7756 instead of KERN_PS_STRINGS to locate the signal trampoline.
7757 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
7758 (amd64fbsd_sigtramp_p): New.
7759 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
7760 longer set default values.
7761 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
7762 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
7763 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
7764 (i386fbsd_freebsd4_sigtramp_start)
7765 (i386fbsd_freebsd4_sigtramp_middle)
7766 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
7767 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
7768 (i386fbsd_sigtramp_p): New.
7769 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
7770 longer set default values.
7771 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
7772
c5cb74ee
JB
77732015-02-25 John Baldwin <jhb@freebsd.org>
7774
7775 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
7776 get_frame_register instead of frame_unwind_register_unsigned.
7777
17487d85
JK
77782015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7779
7780 PR build/18033
7781 * compile/compile-c-support.c (c_compute_program): Change // comment.
7782 * compile/compile-object-load.c (setup_sections): Change // comment.
7783
9357a9e6
JB
77842015-02-26 Joel Brobecker <brobecker@adacore.com>
7785
7786 PR build/18033:
7787 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
7788
1f10ba14
PA
77892015-02-23 Pedro Alves <palves@redhat.com>
7790
7791 * remote.c (skip_to_semicolon): New function.
7792 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
7793 special case the stop reasons that look like hex numbers
7794 upfront. Instead handle real register numbers after matching
7795 all the known stop reasons.
7796
96553a0c
DE
77972015-02-21 Doug Evans <dje@google.com>
7798
7799 PR c++/17976, symtab/17821
7800 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
7801 is_in_anonymous. All callers updated.
7802 (find_symbol_in_baseclass): Ditto.
7803 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
7804 for symbols in an anonymous namespace.
7805 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
7806 DW_AT_name directly.
7807 (dwarf2_name): Convert missing namespace name to
7808 CP_ANONYMOUS_NAMESPACE_STR.
7809
2db9a427
PA
78102015-02-20 Pedro Alves <palves@redhat.com>
7811
7812 * linux-nat.c (linux_handle_extended_wait): Call
7813 thread_db_notice_clone whenever a new clone LWP is detected.
7814 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
7815 functions.
7816 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
7817 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
7818 (linux_unstop_all_lwps): Declare.
7819 * linux-thread-db.c (struct thread_get_info_inout): Delete.
7820 (thread_get_info_callback): Delete.
7821 (thread_from_lwp): Use td_thr_get_info and record_thread.
7822 (thread_db_attach_lwp): Delete.
7823 (thread_db_notice_clone): New function.
7824 (try_thread_db_load_1): If /proc is mounted and shows the
7825 process'es task list, walk over all LWPs and call thread_from_lwp
7826 instead of relying on td_ta_thr_iter.
7827 (attach_thread): Don't call check_thread_signals here. Split the
7828 tail part of the function (which adds the thread to the core GDB
7829 thread list) to ...
7830 (record_thread): ... this function. Call check_thread_signals
7831 here.
7832 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
7833 call thread_from_lwp.
7834 (thread_db_update_thread_list): Rename to ...
7835 (thread_db_update_thread_list_org): ... this.
7836 (thread_db_update_thread_list): New function.
7837 (thread_db_find_thread_from_tid): Delete.
7838 (thread_db_get_ada_task_ptid): Simplify.
7839 * nat/linux-procfs.c: Include <sys/stat.h>.
7840 (linux_proc_task_list_dir_exists): New function.
7841 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
7842
3b27ef47
PA
78432015-02-20 Pedro Alves <palves@redhat.com>
7844
7845 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
7846 main LWP. Handle the case of waitpid returning 0 if we're already
7847 attached to the LWP. Don't set the LWP's last_resume_kind to
7848 resume_stop if we already knew about the LWP.
7849 (linux_nat_filter_event): Add debug logs.
7850
1cc28231
PA
78512015-02-20 Pedro Alves <palves@redhat.com>
7852
7853 * target.h (forward_target_decr_pc_after_break): Delete
7854 declaration.
7855
5c5019c2
PA
78562015-02-20 Pedro Alves <palves@redhat.com>
7857
7858 PR threads/18006
7859 * linux-thread-db.c (thread_get_info_callback): Return early if
7860 the thread's lwp id is -1.
7861
f3978e91
JB
78622015-02-20 Joel Brobecker <brobecker@adacore.com>
7863
7864 GDB 7.9 released.
7865
ffdf88ec
SE
78662015-02-19 Steve Ellcey <sellcey@imgtec.com>
7867
7868 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
7869 (dtrace_get_probes) Change type of variable 'dof'.
7870
c9587f88
AT
78712015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
7872
7873 PR breakpoints/16812
7874 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
7875 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
7876 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
7877
53cf2ee0
DT
78782015-02-19 David Taylor <dtaylor@emc.com>
7879
7880 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
7881
acfe0940
PP
78822015-02-18 Patrick Palka <patrick@parcs.ath.cx>
7883
7884 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
7885 function.
7886 (tui_putc): Don't call tui_handle_resize_during_io.
7887 (tui_getc): Likewise.
7888 (tui_mld_getc): Likewise.
7889 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
7890 (tui_sigwinch_token): New static variable.
7891 (tui_initialize_win): Adjust documentation. Set
7892 tui_sigwinch_token.
7893 (tui_async_resize_screen): New asynchronous callback.
7894 (tui_sigwinch_handler): Adjust documentation. Asynchronously
7895 invoke tui_async_resize_screen.
7896
f6a88844
JM
78972015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
7898
7899 * configure: Regenerated.
7900 * configure.ac: Use GDB_AC_TRANSFORM.
7901 * Makefile.in (aclocal_m4_deps): Added transform.m4.
7902 * acinclude.m4: sinclude transform.m4.
7903 * transform.m4: New file.
7904 (GDB_AC_TRANSFORM): New macro.
7905
b05e3b0d
JM
79062015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7907
7908 * NEWS: Announce the support for DTrace SDT probes.
7909
c3e3045e
JM
79102015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7911
7912 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
7913 (amd64_dtrace_parse_probe_argument): New function.
7914 (amd64_dtrace_probe_is_enabled): Likewise.
7915 (amd64_dtrace_enable_probe): Likewise.
7916 (amd64_dtrace_disable_probe): Likewise.
7917 (amd64_linux_init_abi): Register the
7918 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
7919 `gdbarch_dtrace_disable_probe' and
7920 `gdbarch_dtrace_probe_is_enabled' hooks.
7921 (amd64_dtrace_disabled_probe_sequence_1): New constant.
7922 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
7923 (amd64_dtrace_enable_probe_sequence): Likewise.
7924 (amd64_dtrace_disable_probe_sequence): Likewise.
7925
d4777acb
JM
79262015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7927
7928 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
7929 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
7930 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
7931 handle ELF files.
7932 * Makefile.in (SFILES): dtrace-probe.c added.
7933 * configure: Regenerate.
7934 * dtrace-probe.c: New file.
7935 (SHT_SUNW_dof): New constant.
7936 (dtrace_probe_type): New enum.
7937 (dtrace_probe_arg): New struct.
7938 (dtrace_probe_arg_s): New typedef.
7939 (struct dtrace_probe_enabler): New struct.
7940 (dtrace_probe_enabler_s): New typedef.
7941 (dtrace_probe): New struct.
7942 (dtrace_probe_is_linespec): New function.
7943 (dtrace_dof_sect_type): New enum.
7944 (dtrace_dof_dofh_ident): Likewise.
7945 (dtrace_dof_encoding): Likewise.
7946 (DTRACE_DOF_ENCODE_LSB): Likewise.
7947 (DTRACE_DOF_ENCODE_MSB): Likewise.
7948 (dtrace_dof_hdr): New struct.
7949 (dtrace_dof_sect): Likewise.
7950 (dtrace_dof_provider): Likewise.
7951 (dtrace_dof_probe): Likewise.
7952 (DOF_UINT): New macro.
7953 (DTRACE_DOF_PTR): Likewise.
7954 (DTRACE_DOF_SECT): Likewise.
7955 (dtrace_process_dof_probe): New function.
7956 (dtrace_process_dof): Likewise.
7957 (dtrace_build_arg_exprs): Likewise.
7958 (dtrace_get_arg): Likewise.
7959 (dtrace_get_probes): Likewise.
7960 (dtrace_get_probe_argument_count): Likewise.
7961 (dtrace_can_evaluate_probe_arguments): Likewise.
7962 (dtrace_evaluate_probe_argument): Likewise.
7963 (dtrace_compile_to_ax): Likewise.
7964 (dtrace_probe_destroy): Likewise.
7965 (dtrace_gen_info_probes_table_header): Likewise.
7966 (dtrace_gen_info_probes_table_values): Likewise.
7967 (dtrace_probe_is_enabled): Likewise.
7968 (dtrace_probe_ops): New variable.
7969 (info_probes_dtrace_command): New function.
7970 (_initialize_dtrace_probe): Likewise.
7971 (dtrace_type_name): Likewise.
7972
8b367e17
JM
79732015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7974
7975 * gdbarch.sh (dtrace_parse_probe_argument): New.
7976 (dtrace_probe_is_enabled): Likewise.
7977 (dtrace_enable_probe): Likewise.
7978 (dtrace_disable_probe): Likewise.
7979 * gdbarch.c: Regenerate.
7980 * gdbarch.h: Regenerate.
7981
9aca2ff8
JM
79822015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7983
7984 * stap-probe.c (stap_probe_ops): Add NULLs in the static
7985 stap_probe_ops for `enable_probe' and `disable_probe'.
7986 * probe.c (enable_probes_command): New function.
7987 (disable_probes_command): Likewise.
7988 (_initialize_probe): Define the cli commands `enable probe' and
7989 `disable probe'.
7990 (parse_probe_linespec): New function.
7991 (info_probes_for_ops): Use parse_probe_linespec.
7992 * probe.h (probe_ops): New hooks `enable_probe' and
7993 `disable_probe'.
7994
03e98035
JM
79952015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7996
7997 * probe.c (compute_probe_arg): Moved from stap-probe.c
7998 (compile_probe_arg): Likewise.
7999 (probe_funcs): Likewise.
8000 * stap-probe.c (compute_probe_arg): Moved to probe.c.
8001 (compile_probe_arg): Likewise.
8002 (probe_funcs): Likewise.
8003
6f9b8491
JM
80042015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8005
8006 * probe.c (print_ui_out_not_applicables): New function.
8007 (exists_probe_with_pops): Likewise.
8008 (info_probes_for_ops): Do not include column headers for probe
8009 types for which no probe has been actually found on any object.
8010 Also invoke `print_ui_out_not_applicables' in order to match the
8011 column rows with the header when probes of several types are
8012 listed.
8013 Print the "Type" column.
8014 * probe.h (probe_ops): Added a new probe operation `type_name'.
8015 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
8016 (stap_type_name): New function.
8017
69efdff1
PP
80182015-02-17 Patrick Palka <patrick@parcs.ath.cx>
8019
8020 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
8021 (key_is_command_char): Delete.
8022
f8e5e23e
PA
80232015-02-17 Pedro Alves <palves@redhat.com>
8024
8025 * tui/tui.c (tui_enable): Resize windows before anything
8026 might show a window.
8027
9f2e0721
MO
80282015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
8029
8030 PR gdb/17984
8031 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
8032 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
8033 call.
8034 * aarch64-tdep.h (tdesc_aarch64): Declare.
8035
171e6b1c
MW
80362015-02-12 Mark Wielaard <mjw@redhat.com>
8037
8038 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
8039
d5ff0482
DE
80402015-02-13 Doug Evans <dje@google.com>
8041
8042 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
8043 anonymous_namespace to is_in_anonymous for consistency with the rest
8044 of the file.
8045 (cp_lookup_bare_symbol): Fix typo in comment.
8046 (cp_search_static_and_baseclasses): Ditto.
8047 (search_symbol_list): Use vertical space in comment better.
8048 (reset_directive_searched): Ditto. Fix typo.
8049 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
8050
9f04ac5f
YQ
80512015-02-13 Yao Qi <yao.qi@arm.com>
8052
8053 * MAINTAINERS: Update my email address.
8054
013d0319
DE
80552015-02-12 Doug Evans <dje@google.com>
8056
b615dd20 8057 * symtab.c (completion_list_add_name): Fix memory leak.
013d0319 8058
9a7e538e
DE
80592015-02-12 Doug Evans <dje@google.com>
8060
8061 * completer.c (complete_line): Remove incorrect comment.
8062
e1fcd575
JK
80632015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8064
8065 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
8066 (py_print_frame): Use RETURN_MASK_ERROR.
8067
b99bf4e3
JK
80682015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8069
8070 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
8071 function comment. Wrap all function that can throw in cleanups.
8072 (gdbpy_apply_frame_filter): Wrap all function that can throw in
8073 cleanups.
8074
800eb1ce
JK
80752015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8076
8077 * python/py-framefilter.c (py_print_frame): Substitute goto error.
8078 Remove the error label.
8079
34019068
JK
80802015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8081
8082 * python/py-framefilter.c (py_print_frame): Put conditional code paths
8083 with goto first, indent the former else codepath left. Put variable
8084 'elided' to a new inner block.
8085
8d4a54e2
JK
80862015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8087
8088 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
8089
18ad82c1
PA
80902015-02-11 Pedro Alves <palves@redhat.com>
8091
8092 * xcoffread.c (within_function): Delete.
8093
e36122e9
TT
80942015-02-11 Tom Tromey <tromey@redhat.com>
8095 Pedro Alves <palves@redhat.com>
8096
8097 * breakpoint.c (base_breakpoint_ops): Delete.
8098 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
8099 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
8100 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
8101 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
8102 * python/py-arch.c (arch_object_type): Make extern.
8103 * python/py-block.c (block_syms_iterator_object_type): Make extern.
8104 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
8105 * python/py-cmd.c (cmdpy_object_type): Make extern.
8106 * python/py-continueevent.c (continue_event_object_type)
8107 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
8108 parameter. Update all callers.
8109 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
8110 * python/py-exitedevent.c (exited_event_object_type): Make extern.
8111 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
8112 * python/py-function.c (fnpy_object_type): Make extern.
8113 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
8114 * python/py-infevents.c (call_pre_event_object_type)
8115 (inferior_call_post_event_object_type).
8116 (memory_changed_event_object_type): Make extern.
8117 * python/py-infthread.c (thread_object_type): Make extern.
8118 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
8119 * python/py-linetable.c (linetable_entry_object_type)
8120 (linetable_object_type, ltpy_iterator_object_type): Make extern.
8121 * python/py-newobjfileevent.c (new_objfile_event_object_type)
8122 (clear_objfiles_event_object_type): Make extern.
8123 * python/py-objfile.c (objfile_object_type): Make extern.
8124 * python/py-param.c (parmpy_object_type): Make extern.
8125 * python/py-progspace.c (pspace_object_type): Make extern.
8126 * python/py-signalevent.c (signal_event_object_type): Make extern.
8127 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
8128 * python/py-type.c (type_object_type, field_object_type)
8129 (type_iterator_object_type): Make extern.
8130 * python/python.c (python_extension_script_ops)
8131 (python_extension_ops): Make extern.
8132 * stap-probe.c (stap_probe_ops): Make extern.
8133
0703599a
PA
81342015-02-11 Pedro Alves <pedro@codesourcery.com>
8135
8136 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
8137 because the event thread is not the current thread.
8138
eaaf76ab
DE
81392015-02-11 Doug Evans <xdje42@gmail.com>
8140
8141 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
8142 been initialized yet, return NULL.
8143
e7d52ed3
DE
81442015-02-11 Doug Evans <dje@google.com>
8145
8146 * symfile.h (new_symfile_objfile): Delete.
8147 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
8148 All callers updated.
8149
fc6b1256
PP
81502015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8151
8152 * tui/tui-io.c (tui_handle_resize_during_io): Call
8153 tui_update_gdb_sizes() after resizing the screen.
8154 * tui/tui.c (tui_enable): Resize the terminal before
8155 calling tui_update_gdb_sizes().
8156
d9080678
PP
81572015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8158
8159 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
8160 line before printing a newline.
8161
9f615e3a
MW
81622015-02-11 Mark Wielaard <mjw@redhat.com>
8163
8164 * utils.c (producer_is_gcc): Return true or false.
8165
d9080678 81662015-02-10 Mark Wielaard <mjw@redhat.com>
b1ffba5a
MW
8167
8168 * utils.h (producer_is_gcc): Change return type to bool. Add major
8169 argument.
8170 * utils.c (producer_is_gcc): Likewise.
8171 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
8172 * dwarf2read.c (check_producer): Likewise.
8173
b052c4fb
PA
81742015-02-10 Pedro Alves <palves@redhat.com>
8175
8176 * infrun.c (displaced_step_fixup): Switch to the event thread
8177 before calling gdbarch_displaced_step_fixup.
8178
3ac240d4
AT
81792015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8180
8181 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
8182
c1cc6152
SM
81832015-02-10 Simon Marchi <simon.marchi@ericsson.com>
8184
8185 * ada-varobj.c (ada_name_of_child): Constify parent.
8186 (ada_path_expr_of_child): Same.
8187 (ada_value_of_child): Same.
8188 (ada_type_of_child): Same.
8189 * c-varobj.c (c_is_path_expr_parent): Same.
8190 (c_describe_child): Same.
8191 (c_name_of_child): Same.
8192 (c_value_of_child): Same.
8193 (c_type_of_child): Same.
8194 (cplus_number_of_children): Same.
8195 (cplus_describe_child): Constify var.
8196 (cplus_name_of_child): Constify parent.
8197 (cplus_value_of_child): Same.
8198 (cplus_type_of_child): Same.
8199 * jv-varobj.c (java_name_of_child): Same.
8200 (java_value_of_child): Same.
8201 (java_type_of_child): Same.
8202 * varobj.c (value_of_child): Same.
8203 (varobj_default_is_path_expr_parent): Constify var, parent and return
8204 value.
8205 (varobj_get_path_expr): Constify var, modify path_expr through
8206 mutable_var.
8207 (install_new_value): Constify parent.
8208 (value_of_child): Constify parent.
8209 * varobj.h (struct varobj): Constify parent.
8210 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
8211 type_of_child.
8212 (varobj_get_path_expr): Constify var.
8213 (varobj_get_path_expr_parent): Constify var and return value.
8214
c1ee9414
LM
82152015-02-10 Luis Machado <lgustavo@codesourcery.com>
8216
8217 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
8218 (arm_prologue_this_id): Move PC and SP limit checks to
8219 arm_prologue_unwind_stop_reason.
8220 (arm_prologue_unwind) <stop_reason> : Set to
8221 arm_prologue_unwind_stop_reason.
8222
f7de9aab
MW
82232015-02-09 Mark Wielaard <mjw@redhat.com>
8224
8225 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
8226 DW_LANG_Fortran08 as language_fortran.
8227
0b24eb2d
SDJ
82282015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
8229
8230 PR remote/17946
8231 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
8232 of pointer against char.
8233
a2c2acaf
MW
82342015-02-09 Mark Wielaard <mjw@redhat.com>
8235
8236 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
8237 (c_type_print_modifier): Likewise.
8238 * dwarf2read.c (read_tag_atomic_type): New function.
8239 (read_type_die_1): Handle DW_TAG_atomic_type.
8240 * gdbtypes.c (make_atomic_type): New function.
8241 (recursive_dump_type): Handle TYPE_ATOMIC.
8242 * gdbtypes.h (enum type_flag_values): Renumber.
8243 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
8244 (TYPE_ATOMIC): New macro.
8245 (make_atomic_type): Declare.
8246
31fd9caa
MM
82472015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8248
8249 * btrace.c (ftrace_find_call): Skip gaps.
8250 (ftrace_new_function): Initialize level.
8251 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
8252 (ftrace_new_switch): Update
8253 level computation.
8254 (ftrace_new_gap): New.
8255 (ftrace_update_function): Create new function after gap.
8256 (btrace_compute_ftrace_bts): Create gap on error.
8257 (btrace_stitch_bts): Update parameters. Clear trace if it
8258 becomes empty.
8259 (btrace_stitch_trace): Update parameters. Update callers.
8260 (btrace_clear): Reset the number of gaps.
8261 (btrace_insn_get): Return NULL if the iterator points to a gap.
8262 (btrace_insn_number): Return zero if the iterator points to a gap.
8263 (btrace_insn_end): Allow gaps at the end.
8264 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
8265 (btrace_find_insn_by_number): Assert that the found iterator does
8266 not point to a gap.
8267 (btrace_call_next, btrace_call_prev): Assert that the last function
8268 is not a gap.
8269 * btrace.h (btrace_bts_error): New.
8270 (btrace_function): Update comment.
8271 (btrace_function) <insn, insn_offset, number>: Update comment.
8272 (btrace_function) <errcode>: New.
8273 (btrace_thread_info) <ngaps>: New.
8274 (btrace_thread_info) <replay>: Update comment.
8275 (btrace_insn_get): Update comment.
8276 * record-btrace.c (btrace_ui_out_decode_error): New.
8277 (record_btrace_info): Print number of gaps.
8278 (btrace_insn_history, btrace_call_history): Call
8279 btrace_ui_out_decode_error for gaps.
8280 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
8281
afb778a2
MM
82822015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8283
8284 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
8285 * nat/linux-btrace.c: (btrace_this_cpu): New.
8286 (cpu_supports_bts): Call btrace_this_cpu.
8287 (intel_supports_bts): Add cpu parameter.
8288
7d5c24b3
MM
82892015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8290
8291 * btrace.h (btrace_insn_class): New.
8292 (btrace_insn) <size, iclass>: New.
8293 * btrace.c (ftrace_find_call): Update parameters. Update users.
8294 Use instruction classification.
8295 (ftrace_new_return): Update parameters. Update users.
8296 (ftrace_update_function): Update parameters. Update users. Use
8297 instruction classification.
8298 (ftrace_update_insns): Update parameters. Update users.
8299 (ftrace_classify_insn): New.
8300 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
8301 TRY_CATCH around call to gdb_insn_length.
8302
76235df1
MM
83032015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8304
8305 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
8306 Update parameters. Update users.
8307
d33501a5
MM
83082015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8309
8310 * btrace.c (parse_xml_btrace_conf_bts): Add size.
8311 (btrace_conf_bts_attributes): New.
8312 (btrace_conf_children): Add attributes.
8313 * common/btrace-common.h (btrace_config_bts): New.
8314 (btrace_config)<bts>: New.
8315 (btrace_config): Update comment.
8316 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
8317 Use config.
8318 * features/btrace-conf.dtd: Increment version. Add size
8319 attribute to bts element.
8320 * record-btrace.c (set_record_btrace_bts_cmdlist,
8321 show_record_btrace_bts_cmdlist): New.
8322 (record_btrace_adjust_size, record_btrace_print_bts_conf,
8323 record_btrace_print_conf, cmd_set_record_btrace_bts,
8324 cmd_show_record_btrace_bts): New.
8325 (record_btrace_info): Call record_btrace_print_conf.
8326 (_initialize_record_btrace): Add commands.
8327 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
8328 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
8329 (btrace_sync_conf): Synchronize bts size.
8330 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
8331 * NEWS: Announce new commands and new packets.
8332
f4abbc16
MM
83332015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8334
8335 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
8336 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
8337 (x86_linux_btrace_conf): New.
8338 (x86_linux_create_target): Initialize to_btrace_conf.
8339 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
8340 Check format. Split into this and ...
8341 (linux_enable_bts): ... this.
8342 (linux_btrace_conf): New.
8343 (perf_event_skip_record): Renamed into ...
8344 (perf_event_skip_bts_record): ... this. Updated users.
8345 (linux_disable_btrace): Split into this and ...
8346 (linux_disable_bts): ... this.
8347 (linux_read_btrace): Check format.
8348 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
8349 (linux_btrace_conf): New.
8350 (btrace_target_info)<ptid>: Moved.
8351 (btrace_target_info)<conf>: New.
8352 (btrace_target_info): Split into this and ...
8353 (btrace_tinfo_bts): ... this. Updated users.
8354 * btrace.c (btrace_enable): Update parameters.
8355 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
8356 (btrace_conf_children, btrace_conf_attributes)
8357 (btrace_conf_elements): New.
8358 * btrace.h (btrace_enable): Update parameters.
8359 (btrace_conf, parse_xml_btrace_conf): New.
8360 * common/btrace-common.h (btrace_config): New.
8361 * feature/btrace-conf.dtd: New.
8362 * record-btrace.c (record_btrace_conf): New.
8363 (record_btrace_cmdlist): New.
8364 (record_btrace_enable_warn, record_btrace_open): Pass
8365 &record_btrace_conf.
8366 (record_btrace_info): Print recording format.
8367 (cmd_record_btrace_bts_start): New.
8368 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
8369 (_initialize_record_btrace): Add "record btrace bts" subcommand.
8370 Add "record bts" alias command.
8371 * remote.c (remote_state)<btrace_config>: New.
8372 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
8373 (remote_protocol_features): Add qXfer:btrace-conf:read.
8374 (remote_open_1): Call remote_btrace_reset.
8375 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
8376 (btrace_target_info)<conf>: New.
8377 (btrace_sync_conf, btrace_read_config): New.
8378 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
8379 btrace_read_conf.
8380 (remote_btrace_conf): New.
8381 (init_remote_ops): Initialize to_btrace_conf.
8382 (_initialize_remote): Add qXfer:btrace-conf packet.
8383 * target.c (target_enable_btrace): Update parameters.
8384 (target_btrace_conf): New.
8385 * target.h (target_enable_btrace): Update parameters.
8386 (target_btrace_conf): New.
8387 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
8388 (target_ops)<to_enable_btrace>: Update parameters and comment.
8389 (target_ops)<to_btrace_conf>: New.
8390 * target-delegates: Regenerate.
8391 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
8392 (target_debug_print_const_struct_btrace_target_info_p): New.
8393 * NEWS: Announce new command and new packet.
8394
aadf7753
MM
83952015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8396
8397 * nat/linux-btrace.h (perf_event_buffer): New.
8398 (btrace_target_info) <buffer, size, data_head>: Replace with ...
8399 <bts>: ... this.
8400 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
8401 (perf_event_buffer_size, perf_event_buffer_begin)
8402 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
8403 Updated users.
8404 (perf_event_new_data): New.
8405
043c3577
MM
84062015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8407
8408 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
8409 * record-btrace.c (record_btrace_open): Remove call to
8410 target_supports_btrace.
8411 * remote.c (remote_supports_btrace): Update parameters.
8412 * target.c (target_supports_btrace): Update parameters.
8413 * target.h (to_supports_btrace, target_supports_btrace): Update
8414 parameters.
8415 * target-delegates.c: Regenerate.
8416 * target-debug.h (target_debug_print_enum_btrace_format): New.
8417 * nat/linux-btrace.c
8418 (kernel_supports_btrace): Rename into ...
8419 (kernel_supports_bts): ... this. Update users. Update warning text.
8420 (intel_supports_btrace): Rename into ...
8421 (intel_supports_bts): ... this. Update users.
8422 (cpu_supports_btrace): Rename into ...
8423 (cpu_supports_bts): ... this. Update users.
8424 (linux_supports_btrace): Update parameters. Split into this and ...
8425 (linux_supports_bts): ... this.
8426 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
8427
734b0e4b
MM
84282015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8429
8430 * Makefile.in (SFILES): Add common/btrace-common.c.
8431 (COMMON_OBS): Add common/btrace-common.o.
8432 (btrace-common.o): Add build rules.
8433 * btrace.c (parse_xml_btrace): Update parameters.
8434 (parse_xml_btrace_block): Set format field.
8435 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
8436 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
8437 (btrace_compute_ftrace): Split into this and...
8438 (btrace_compute_ftrace_bts): ...this.
8439 (btrace_stitch_trace): Split into this and...
8440 (btrace_stitch_bts): ...this.
8441 * btrace.h (parse_xml_btrace): Update parameters.
8442 (make_cleanup_btrace_data): New.
8443 * common/btrace-common.c: New.
8444 * common/btrace-common.h: Include common-defs.h.
8445 (btrace_block_s): Update comment.
8446 (btrace_format): New.
8447 (btrace_format_string): New.
8448 (btrace_data_bts): New.
8449 (btrace_data): New.
8450 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
8451 * remote.c (remote_read_btrace): Update parameters.
8452 * target.c (target_read_btrace): Update parameters.
8453 * target.h (target_read_btrace): Update parameters.
8454 (target_ops)<to_read_btrace>: Update parameters.
8455 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
8456 * target-delegates.c: Regenerate.
8457 * target-debug (target_debug_print_struct_btrace_data_p): New.
8458 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
8459 (linux_read_bts): ...this.
8460 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
8461
bd2e0e9e
DE
84622015-02-06 Doug Evans <dje@google.com>
8463
8464 * remote-m32r-sdi.c: Include symfile.h.
8465
f176c4b5
DE
84662015-02-06 Doug Evans <dje@google.com>
8467
8468 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
8469 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
8470 to here.
8471
d6c146e9
PA
84722015-02-06 Pedro Alves <palves@redhat.com>
8473
8474 * linux-thread-db.c (find_new_threads_callback): Add debug output.
8475
b9d61307
SM
84762015-02-06 Simon Marchi <simon.marchi@ericsson.com>
8477
8478 PR gdb/15678
8479 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
8480 (enable_count_command): Check args for NULL value.
8481
e9fbd043
DE
84822015-02-05 Doug Evans <xdje42@gmail.com>
8483
8484 * guile/scm-frame.c: Fix spelling errors in a comment.
8485
881d5d5d
JK
84862015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8487
8488 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
8489 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
8490 return type.
8491
20ba1ce6
PA
84922015-02-04 Pedro Alves <palves@redhat.com>
8493
8494 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
8495 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
8496 returns true.
8497 (resume_stopped_resumed_lwps): Don't check whether the thread is
8498 marked as executing.
8499 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
8500
f962539a
AA
85012015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8502
8503 * regset.h (struct regset): Add flags field.
8504 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
8505 * corelow.c (get_core_register_section): Add warning if the size
8506 exceeds the requested size and the regset does not have the
8507 REGSET_VARIABLE_SIZE flag set.
8508 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
8509 flag.
8510 * armbsd-tdep.c (armbsd_gregset): Likewise.
8511 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8512 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
8513 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
8514 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
8515
dde9acd6
AA
85162015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8517
8518 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
8519 For ".reg-xstate", explicitly specify the requested section size
8520 via X86_XSTATE_SIZE instead of just 0 on input and
8521 X86_XSTATE_MAX_SIZE on output.
8522 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
8523 Likewise.
8524
1528345d
AA
85252015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8526
8527 PR corefiles/17808:
8528 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
8529 function type, particularly its SIZE parameter.
8530 * gdbarch.h: Regenerate.
8531 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
8532 actual against required size using ">=" instead of "==".
8533 (amd64_collect_fpregset): Likewise.
8534 * i386-tdep.c (i386_supply_gregset): Likewise.
8535 (i386_collect_gregset): Likewise.
8536 (i386_supply_fpregset): Likewise.
8537 (i386_collect_fpregset): Likewise.
8538 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
8539 (mips_fill_gregset_wrapper): Likewise.
8540 (mips_supply_fpregset_wrapper): Likewise.
8541 (mips_fill_fpregset_wrapper): Likewise.
8542 (mips64_supply_gregset_wrapper): Likewise.
8543 (mips64_fill_gregset_wrapper): Likewise.
8544 (mips64_supply_fpregset_wrapper): Likewise.
8545 (mips64_fill_fpregset_wrapper): Likewise.
8546 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
8547 (am33_supply_fpregset_method): Likewise.
8548 (am33_collect_gregset_method): Likewise.
8549 (am33_collect_fpregset_method): Likewise.
8550
518be979
DE
85512015-02-04 Doug Evans <dje@google.com>
8552 Pedro Alves <palves@redhat.com>
8553 Eli Zaretskii <eliz@gnu.org>
8554
8555 PR tui/17810
8556 * tui/tui-command.c (tui_refresh_cmd_win): New function.
8557 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
8558 * tui/tui-file.c: #include tui/tui-command.h.
8559 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
8560 (tui_file_flush): Refresh command window if stream is gdb_stdout.
8561 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
8562
80bd5fab
PA
85632015-02-04 Pedro Alves <palves@redhat.com>
8564
8565 Fix build breakage.
8566 * event-loop.c (gdb_do_one_event): Add default switch case.
8567
a7606d80
JK
85682015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8569
8570 Filter out inferior gcc option -fpreprocessed.
8571 * compile/compile.c (filter_args): New function.
8572 (get_args): Use it.
8573
70b66289
PA
85742015-02-03 Pedro Alves <palves@redhat.com>
8575
8576 * event-loop.c: Don't declare nor define a queue type for
8577 gdb_event_p.
8578 (event_queue): Delete.
8579 (create_event, create_file_event, gdb_event_xfree)
8580 (initialize_event_loop, process_event): Delete.
8581 (gdb_do_one_event): Return as soon as one event is handled.
8582 (handle_file_event): Change prototype. Used the passed in
8583 file_handler pointer and ready_mask instead of looping over all
8584 file handlers.
8585 (gdb_wait_for_event): Update the poll/select timeouts before
8586 blocking. Run event handlers directly instead of queueing events.
8587 Return as soon as one event is handled.
8588 (struct async_event_handler_data): Delete.
8589 (invoke_async_event_handler): Delete.
8590 (check_async_event_handlers): Change return type to int. Run
8591 event handlers directly instead of queueing events. Return as
8592 soon as one event is handled.
8593 (handle_timer_event): Delete.
8594 (update_wait_timeout): New function, factored out from
8595 poll_timers.
8596 (poll_timers): Reimplement.
8597 * event-loop.h (initialize_event_loop): Delete declaration.
8598 * top.c (gdb_init): Don't call initialize_event_loop.
8599
b7d2e916
PA
86002015-02-03 Pedro Alves <palves@redhat.com>
8601
8602 * event-loop.c (clear_async_event_handler): New function.
8603 * event-loop.h (clear_async_event_handler): New declaration.
8604 * record-btrace.c (record_btrace_async): New function.
8605 (init_record_btrace_ops): Install record_btrace_async.
8606 * record-full.c (record_full_async): New function.
8607 (record_full_resume): Don't mark the async event source here.
8608 (init_record_full_ops): Install record_full_async.
8609 (record_full_core_resume): Don't mark the async event source here.
8610 (init_record_full_core_ops): Install record_full_async.
8611 * remote.c (remote_async): Mark and clear the async stop reply
8612 queue event-loop token as appropriate.
8613
d9d41e78
PA
86142015-02-03 Pedro Alves <palves@redhat.com>
8615
8616 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
8617 target_is_async_p instead of target_can_async.
8618 (linux_nat_wait): Use target_is_async_p instead of
8619 target_can_async. Don't enable async here.
8620 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
8621 target_is_async_p instead of target_can_async.
8622
aa3de267
SM
86232015-02-02 Simon Marchi <simon.marchi@ericsson.com>
8624
8625 * varobj.h (lang_varobj_ops): Mention which return values need
8626 to be freed.
8627
2c811c0f
JB
86282015-02-02 Joel Brobecker <brobecker@adacore.com>
8629
8630 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
8631
b1eedac9
JB
86322015-02-02 Joel Brobecker <brobecker@adacore.com>
8633
8634 PR gdb/17856:
8635 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
8636 results found in the cache.
8637
66c168ae
JB
86382015-02-02 Joel Brobecker <brobecker@adacore.com>
8639
8640 PR gdb/17854:
8641 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
8642 when allocating a new one.
8643
4bdc02b2
TT
86442015-02-01 Tom Tromey <tom@tromey.com>
8645
8646 * MAINTAINERS: Remove myself.
8647
ae6ae975
DE
86482015-01-31 Doug Evans <xdje42@gmail.com>
8649
8650 * dwarf2read.c (process_structure_scope): Update setting of
8651 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
8652 * gdbtypes.c (internal_type_vptr_fieldno): New function.
8653 (set_type_vptr_fieldno): New function.
8654 (internal_type_vptr_basetype): New function.
8655 (set_type_vptr_basetype): New function.
8656 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
8657 TYPE_VPTR_BASETYPE.
8658 (allocate_cplus_struct_type): Initialize vptr_fieldno.
8659 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
8660 (print_cplus_stuff): ... moved here.
8661 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
8662 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
8663 moved to ...
8664 (struct cplus_struct_type): ... here. All uses updated.
8665 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
8666 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
8667 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
8668 * stabsread.c (read_tilde_fields): Update setting of
8669 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
8670
09e2d7c7
DE
86712015-01-31 Doug Evans <xdje42@gmail.com>
8672
8673 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
8674 to self_p.
8675 (cp_print_class_member): Rename local domain to self_type.
8676 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
8677 domain_type to self_type.
8678 (set_die_type) <need_gnat_info>: Handle
8679 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
8680 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
8681 TYPE_SPECIFIC_SELF_TYPE.
8682 * gdbtypes.c (internal_type_self_type): New function.
8683 (set_type_self_type): New function.
8684 (smash_to_memberptr_type): Rename parameter domain to self_type.
8685 Update setting of TYPE_SELF_TYPE.
8686 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
8687 (smash_to_method_type): Rename parameter domain to self_type.
8688 Update setting of TYPE_SELF_TYPE.
8689 (check_stub_method): Call smash_to_method_type.
8690 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
8691 (copy_type_recursive): Ditto.
8692 * gdbtypes.h (enum type_specific_kind): New value
8693 TYPE_SPECIFIC_SELF_TYPE.
8694 (struct main_type) <type_specific>: New member self_type.
8695 (struct cplus_struct_type) <fn_field.type>: Update comment.
8696 (TYPE_SELF_TYPE): Rewrite.
8697 (internal_type_self_type, set_type_self_type): Declare.
8698 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
8699 self_type.
8700 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
8701 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
8702 TYPE_TARGET_TYPE.
8703 * stabsread.c (read_member_functions): Mark methods with
8704 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
8705 TYPE_SELF_TYPE.
8706
4bfb94b8
DE
87072015-01-31 Doug Evans <xdje42@gmail.com>
8708
8709 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
8710 All uses updated.
8711
5f4ce105
DE
87122015-01-31 Doug Evans <xdje42@gmail.com>
8713
8714 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
8715 or unions. Return zero if union.
8716 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
8717 (gnuv3_rtti_type): Pass already-check_typedef'd value to
8718 gnuv3_get_vtable.
8719 (compute_vtable_size): Assert only passed structs.
8720 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
8721
f6b3afbf
DE
87222015-01-31 Doug Evans <xdje42@gmail.com>
8723
8724 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
8725 kinds.
8726
cfb069a8
GB
87272015-01-31 Gary Benson <gbenson@redhat.com>
8728 Doug Evans <dje@google.com>
8729
8730 PR cli/9007
8731 PR cli/11920
8732 PR cli/15548
8733 * cli/cli-cmds.c (complete_command): Notify user if max-completions
8734 reached.
8735 * common/common-exceptions.h (enum errors)
8736 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
8737 * completer.h (get_max_completions_reached_message): New declaration.
8738 (max_completions): Likewise.
8739 (completion_tracker_t): New typedef.
8740 (new_completion_tracker): New declaration.
8741 (make_cleanup_free_completion_tracker): Likewise.
8742 (maybe_add_completion_enum): New enum.
8743 (maybe_add_completion): New declaration.
8744 (throw_max_completions_reached_error): Likewise.
8745 * completer.c (max_completions): New global variable.
8746 (new_completion_tracker): New function.
8747 (free_completion_tracker): Likewise.
8748 (make_cleanup_free_completion_tracker): Likewise.
8749 (maybe_add_completions): Likewise.
8750 (throw_max_completions_reached_error): Likewise.
8751 (complete_line): Remove duplicates and limit result to max_completions
8752 entries.
8753 (get_max_completions_reached_message): New function.
8754 (gdb_display_match_list): Handle max_completions.
8755 (_initialize_completer): New declaration and function.
8756 * symtab.c: Include completer.h.
8757 (completion_tracker): New static variable.
8758 (completion_list_add_name): Call maybe_add_completion.
8759 (default_make_symbol_completion_list_break_on_1): Renamed from
8760 default_make_symbol_completion_list_break_on. Maintain
8761 completion_tracker across calls to completion_list_add_name.
8762 (default_make_symbol_completion_list_break_on): New function.
8763 * top.c (init_main): Set rl_completion_display_matches_hook.
8764 * tui/tui-io.c: Include completer.h.
8765 (tui_old_rl_display_matches_hook): New static global.
8766 (tui_rl_display_match_list): Notify user if max-completions reached.
8767 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
8768 * NEWS (New Options): Mention set/show max-completions.
8769
e11c72c7
GB
87702015-01-31 Gary Benson <gbenson@redhat.com>
8771
8772 * symtab.c (struct add_name_data) <code>: New field.
8773 Updated comments.
8774 (add_symtab_completions): New function.
8775 (symtab_expansion_callback): Likewise.
8776 (default_make_symbol_completion_list_break_on): Set datum.code.
8777 Move minimal symbol scan before calling expand_symtabs_matching.
8778 Scan known primary symtabs for externs and statics before calling
8779 expand_symtabs_matching. Pass symtab_expansion_callback as
8780 expansion_notify argument to expand_symtabs_matching. Do not scan
8781 primary symtabs for externs and statics after calling
8782 expand_symtabs_matching.
8783
276d885b
GB
87842015-01-31 Gary Benson <gbenson@redhat.com>
8785
8786 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
8787 (struct quick_symbol_functions) <expand_symtabs_matching>:
8788 New argument expansion_notify. All uses updated.
8789 (expand_symtabs_matching): New argument expansion_notify.
8790 All uses updated.
8791 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8792 Also print expansion notify.
8793 * symtab.c (expand_symtabs_matching_via_partial): Call
8794 expansion_notify whenever a partial symbol table is expanded.
8795 * dwarf2read.c (dw2_expand_symtabs_matching): Call
8796 expansion_notify whenever a symbol table is instantiated.
8797
82083d6d
DE
87982015-01-31 Doug Evans <xdje42@gmail.com>
8799
8800 * cli-out.c: #include completer.h, readline/readline.h.
8801 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
8802 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
8803 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
8804 * cli-out.h (cli_display_match_list): Declare.
8805 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
8806 (ELLIPSIS_LEN): Ditto.
8807 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
8808 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
8809 (gdb_fnprint, gdb_print_filename): Ditto.
8810 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
8811 (gdb_display_match_list): Ditto.
8812 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
8813 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
8814 (mld_beep_ftype, mld_read_key_ftype): Ditto.
8815 (match_list_displayer): New struct.
8816 (gdb_display_match_list): Declare.
8817 * top.c (init_main): Set rl_completion_display_matches_hook.
8818 * tui/tui-io.c: #include completer.h.
8819 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
8820 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
8821 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
8822 (tui_mld_getc, tui_mld_read_key): Ditto.
8823 (tui_rl_display_match_list): Rewrite.
8824 (tui_handle_resize_during_io): New arg for_completion. All callers
8825 updated.
8826
f57d2163
DE
88272015-01-31 Doug Evans <xdje42@gmail.com>
8828
8829 Add symbol lookup cache.
8830 * NEWS: Document new options and commands.
8831 * symtab.c (symbol_cache_key): New static global.
8832 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
8833 (SYMBOL_LOOKUP_FAILED): New macro.
8834 (symbol_cache_slot_state): New enum.
8835 (block_symbol_cache): New struct.
8836 (symbol_cache): New struct.
8837 (new_symbol_cache_size, symbol_cache_size): New static globals.
8838 (hash_symbol_entry, eq_symbol_entry): New functions.
8839 (symbol_cache_byte_size, resize_symbol_cache): New functions.
8840 (make_symbol_cache, free_symbol_cache): New functions.
8841 (get_symbol_cache, symbol_cache_cleanup): New function.
8842 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
8843 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
8844 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
8845 (symbol_cache_flush, symbol_cache_dump): New functions.
8846 (maintenance_print_symbol_cache): New function.
8847 (maintenance_flush_symbol_cache): New function.
8848 (symbol_cache_stats): New function.
8849 (maintenance_print_symbol_cache_statistics): New function.
8850 (symtab_new_objfile_observer): New function.
8851 (symtab_free_objfile_observer): New function.
8852 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
8853 (_initialize_symtab): Init symbol_cache_key. New parameter
8854 maint symbol-cache-size. New maint commands print symbol-cache,
8855 print symbol-cache-statistics, flush-symbol-cache.
8856 Install new_objfile, free_objfile observers.
8857
e700d1b2
JB
88582015-01-31 Joel Brobecker <brobecker@adacore.com>
8859
8860 PR symtab/17855
8861 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
8862 to end.
8863
9f050062
DE
88642015-01-31 Doug Evans <xdje42@gmail.com>
8865
8866 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
8867 * auto-load.c: #include ctype.h.
8868 (struct auto_load_pspace_info): Replace member loaded_scripts with
8869 new members loaded_script_files, loaded_script_texts.
8870 (auto_load_pspace_data_cleanup): Update.
8871 (init_loaded_scripts_info): Update.
8872 (get_auto_load_pspace_data_for_loading): Update.
8873 (maybe_add_script_file): Renamed from maybe_add_script. All callers
8874 updated.
8875 (maybe_add_script_text): New function.
8876 (clear_section_scripts): Update.
8877 (source_script_file, execute_script_contents): New functions.
8878 (source_section_scripts): Add support for
8879 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
8880 (print_scripts): New function.
8881 (auto_load_info_scripts): Also print inlined scripts.
8882 (maybe_print_unsupported_script_warning): Renamed from
8883 unsupported_script_warning_print. All callers updated.
8884 (maybe_print_script_not_found_warning): Renamed from
8885 script_not_found_warning_print. All callers updated.
8886 * extension-priv.h (struct extension_language_script_ops): New member
8887 objfile_script_executor.
8888 * extension.c (ext_lang_objfile_script_executor): New function.
8889 * extension.h (objfile_script_executor_func): New typedef.
8890 (ext_lang_objfile_script_executor): Declare.
8891 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
8892 * guile/guile.c (guile_extension_script_ops): Update.
8893 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
8894 * python/python.c (python_extension_script_ops): Update.
8895 (gdbpy_execute_objfile_script): New function.
8896
312809f8
EZ
88972015-01-31 Eli Zaretskii <eliz@gnu.org>
8898
8899 * tui/tui-io.c (tui_expand_tabs): New function.
8900 (tui_puts, tui_redisplay_readline): Expand TABs into the
8901 appropriate number of spaces.
8902 * tui/tui-regs.c: Include tui-io.h.
8903 (tui_register_format): Call tui_expand_tabs to expand TABs into
8904 the appropriate number of spaces.
8905 * tui/tui-io.h: Add prototype for tui_expand_tabs.
8906
b6577aab
DE
89072015-01-30 Doug Evans <dje@google.com>
8908
8909 * NEWS: "info source" command now display producer string if present.
8910 * source.c (source_info): Print producer string if present.
8911
6da58d3e
SM
89122015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8913
8914 * varobj.c (varobj_delete): Fix comment.
8915
837ce252
SM
89162015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8917
8918 * varobj.c (create_child): Modify comment.
8919
b09e2c59
SM
89202015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8921
8922 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
8923 parameter.
8924 (ada_name_of_variable): Same.
8925 (ada_path_expr_of_child): Same.
8926 (ada_value_of_variable): Same.
8927 (ada_value_is_changeable_p): Same.
8928 (ada_value_has_mutated): Same.
8929 * c-varobj.c (varobj_is_anonymous_child): Same.
8930 (c_is_path_expr_parent): Same.
8931 (c_number_of_children): Same.
8932 (c_name_of_variable): Same.
8933 (c_path_expr_of_child): Same.
8934 (get_type): Same.
8935 (c_value_of_variable): Same.
8936 (cplus_number_of_children): Same.
8937 (cplus_name_of_variable): Same.
8938 (cplus_path_expr_of_child): Same.
8939 (cplus_value_of_variable): Same.
8940 * jv-varobj.c (java_number_of_children): Same.
8941 (java_name_of_variable): Same.
8942 (java_path_expr_of_child): Same.
8943 (java_value_of_variable): Same.
8944 * varobj.c (number_of_children): Same.
8945 (name_of_variable): Same.
8946 (is_root_p): Same.
8947 (varobj_ensure_python_env): Same.
8948 (varobj_get_objname): Same.
8949 (varobj_get_expression): Same.
8950 (varobj_get_display_format): Same.
8951 (varobj_get_display_hint): Same.
8952 (varobj_has_more): Same.
8953 (varobj_get_thread_id): Same.
8954 (varobj_get_frozen): Same.
8955 (dynamic_varobj_has_child_method): Same.
8956 (varobj_get_gdb_type): Same.
8957 (is_path_expr_parent): Same.
8958 (varobj_default_is_path_expr_parent): Same.
8959 (varobj_get_language): Same.
8960 (varobj_get_attributes): Same.
8961 (varobj_is_dynamic_p): Same.
8962 (varobj_get_child_range): Same.
8963 (varobj_value_has_mutated): Same.
8964 (varobj_get_value_type): Same.
8965 (number_of_children): Same.
8966 (name_of_variable): Same.
8967 (check_scope): Same.
8968 (varobj_editable_p): Same.
8969 (varobj_value_is_changeable_p): Same.
8970 (varobj_floating_p): Same.
8971 (varobj_default_value_is_changeable_p): Same.
8972
2568868e
SM
89732015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8974
8975 * varobj.c (varobj_get_path_expr): Set var->path_expr.
8976 * c-varobj.c (c_path_expr_of_child): Set local var instead of
8977 child->path_expr.
8978 (cplus_path_expr_of_child): Same.
8979
ca83fa81
SM
89802015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8981
8982 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
8983 result.
8984 (mi_cmd_var_info_expression): Same.
8985 * varobj.c (varobj_get_expression): Mention in the comment that
8986 the result must by freed by the caller.
8987
afa269ae
SM
89882015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8989
8990 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
8991 varobj_get_type.
8992 (varobj_update_one): Same.
8993 * varobj.c (update_type_if_necessary): Free curr_type_str and
8994 new_type_str.
8995 (varobj_get_type): Specify in comment that the result needs to be
8996 freed by the caller.
8997
cd366ee8
DE
89982015-01-29 Doug Evans <dje@google.com>
8999
9000 PR symtab/17890
9001 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9002
38360086
MW
90032015-01-25 Mark Wielaard <mjw@redhat.com>
9004
9005 * dwarf2read.c (checkproducer): Call producer_is_gcc.
9006 * utils.c (producer_is_gcc_ge_4): Likewise.
9007 (producer_is_gcc): New function.
9008 * utils.h (producer_is_gcc): New declaration.
9009
df25ebbd
JB
90102015-01-29 Joel Brobecker <brobecker@adacore.com>
9011
9012 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
9013 kind.
9014 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
9015 parameter by "addr_stack" parameter.
9016 (resolve_dynamic_range): Replace "addr" parameter by
9017 "stack_addr" parameter. Update function documentation.
9018 Update code accordingly.
9019 (resolve_dynamic_array, resolve_dynamic_union)
9020 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
9021 (resolve_dynamic_type): Update code, following the changes made
9022 to resolve_dynamic_type_internal's interface.
9023 * dwarf2loc.h (struct property_addr_info): New.
9024 (dwarf2_evaluate_property): Replace "address" parameter
9025 by "addr_stack" parameter. Adjust function documentation.
9026 (struct dwarf2_offset_baton): New.
9027 (struct dwarf2_property_baton): Update documentation of
9028 field "referenced_type" to be more general. New field
9029 "offset_info" in union data field.
9030 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
9031 parameter by "addr_stack" parameter. Adjust code accordingly.
9032 Add support for PROP_ADDR_OFFSET properties.
9033 * dwarf2read.c (attr_to_dynamic_prop): Add support for
9034 DW_AT_data_member_location attributes as well. Use case
9035 statements instead of if/else condition.
9036
4a0ca9ec
JB
90372015-01-29 Joel Brobecker <brobecker@adacore.com>
9038
9039 * ada-varobj.c (ada_varobj_get_array_number_of_children):
9040 Return zero if PARENT_VALUE is NULL and parent_type's
9041 range type is dynamic.
9042
ddb87a81
JB
90432015-01-29 Joel Brobecker <brobecker@adacore.com>
9044
9045 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
9046 nonzero if the type's subtype is dynamic.
9047 (resolve_dynamic_range): Also resolve the range's subtype.
9048
3d7ad9b4 90492015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
7a270e0c 9050
3d7ad9b4 9051 Pushed by Joel Brobecker <brobecker@adacore.com>.
7a270e0c
AK
9052 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
9053
3a8b707a
DE
90542015-01-27 Doug Evans <dje@google.com>
9055
9056 * NEWS: Mention gdb.Objfile.username.
9057 * python/py-objfile.c (objfpy_get_username): New function.
9058 (objfile_getset): Add "username".
9059
d35b90fb
MW
90602015-01-24 Mark Wielaard <mjw@redhat.com>
9061
9062 * stack.c (return_command): Markup warning message with _.
9063
734ae125
DE
90642015-01-24 Doug Evans <xdje42@gmail.com>
9065
9066 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
9067
527f3840
JK
90682015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9069
9070 Fix 100x slowdown regression on DWZ files.
9071 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
9072 (struct line_header): Add offset and offset_in_dwz.
9073 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
9074 (free_line_header_voidp): New declaration.
9075 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
9076 functions.
9077 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
9078 (handle_DW_AT_stmt_list): Use line_header_hash.
9079 (free_line_header_voidp): New function.
9080 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
9081 (dwarf_decode_lines): New parameter decode_mapping, use it.
9082 (dwarf2_free_objfile): Free line_header_hash.
9083
f7e5394d
SM
90842015-01-23 Simon Marchi <simon.marchi@ericsson.com>
9085
9086 PR gdb/17416
9087 * valops.c (value_rtti_indirect_type): Catch exception thrown by
9088 value_ind.
9089
743649fd
MW
90902015-01-15 Mark Wielaard <mjw@redhat.com>
9091
9092 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
9093 DW_AT_noreturn.
9094 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
9095 calling_convention an 8 bit bit field.
9096 (TYPE_NO_RETURN): New macro.
9097 * infcmd.c (finish_command): Query if function does not return
9098 normally.
9099 * stack.c (return_command): Likewise.
9100
198297aa
PA
91012015-01-23 Pedro Alves <palves@redhat.com>
9102
9103 * linux-nat.c (linux_is_async_p): New macro.
9104 (linux_nat_is_async_p):
9105 (linux_nat_terminal_inferior): Check whether the target can async
9106 instead of whether it is already async.
9107 (linux_nat_terminal_ours): Don't check whether the target is
9108 async.
9109 (linux_async_pipe): Use linux_is_async_p.
9110
253828f1
JK
91112015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9112
9113 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
9114 '-ascending'.
9115 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
9116 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
9117 Sort tp_array using tp_array_compar.
9118 (_initialize_thread): Extend thread_apply_all_command help.
9119
f0e8c4c5
JK
91202015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9121
9122 * corelow.c (core_open): Call also thread_command.
9123 * gdbthread.h (thread_command): New prototype moved from ...
9124 * thread.c (thread_command): ... here.
9125 (thread_command): Make it global.
9126
03b79603
PA
91272015-01-22 Pedro Alves <palves@redhat.com>
9128
9129 * configure.ac [*mingw32*]: Check $curses_found instead of
9130 $prefer_curses.
9131 * configure: Regenerate.
9132 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
9133 HAVE_NCURSES_NCURSES_H checks.
9134
6b8a872f
EZ
91352015-01-22 Eli Zaretskii <eliz@gnu.org>
9136
bbbbffbb 9137 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
6b8a872f
EZ
9138 fails with the 1st arg NULL, try again with "unknown". Don't test
9139 the "cup" capability: it isn't supported by the Windows port of
9140 ncurses, but the Windows console driver is still capable of
9141 supporting TUI.
9142
4b62a76e
JK
91432015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9144
9145 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
9146
82a864f9
EZ
91472015-01-22 Eli Zaretskii <eliz@gnu.org>
9148
9149 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
9150 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
9151 reason that "make TAGS" is broken.
9152
b35018fd
CG
91532015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
9154
9155 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
9156 and check additional store instructions.
9157
ffbc4646
WW
91582015-01-21 Wei-cheng Wang <cole945@gmail.com>
9159
9160 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
9161
ddeca1df
WW
91622015-01-21 Wei-cheng Wang <cole945@gmail.com>
9163
9164 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
9165 ppc_canonicalize_syscall, ppc_linux_syscall_record,
9166 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
9167 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9168 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
9169 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
9170 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
9171 ppc_process_record_op19, ppc_process_record_op31,
9172 ppc_process_record_op59, ppc_process_record_op60,
9173 ppc_process_record_op63): Likewise.
9174
049bb5de
JB
91752015-01-20 Joel Brobecker <brobecker@adacore.com>
9176
9177 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
9178 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
9179 strerror.
9180
42b87c63 91812015-01-20 Wei-cheng Wang <cole945@gmail.com>
810c1026
WW
9182
9183 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
9184 ppc_process_record_op31, ppc_process_record_op59,
9185 ppc_process_record_op60, ppc_process_record_op63,
9186 ppc_process_record): Fix -Wformat warning.
9187 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
9188 Remove unused variables.
9189
569340fc
CG
91902015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
9191
9192 * MAINTAINERS (Write After Approval): Add "Chen Gang".
9193
63413d85
EZ
91942015-01-19 Eli Zaretskii <eliz@gnu.org>
9195
9196 * configure.ac [*mingw32*]: Only add windows-termcap.o to
9197 CONFIG_OBS if not building with a curses library.
9198 * configure: Regenerate.
9199
9200 * windows-termcap.c: Include defs.h. Make the whole body empty if
9201 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
9202 HAVE_NCURSES_NCURSES_H is defined.
9203
16d8013c
JB
92042015-01-19 Joel Brobecker <brobecker@adacore.com>
9205
9206 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
9207 from end of line to start of next line.
9208
cf90fd9a
WW
92092015-01-17 Wei-cheng Wang <cole945@gmail.com>
9210
9211 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
9212 Scan PLT stub backward for reverse debugging.
9213 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9214
b4cdae6f
WW
92152015-01-17 Wei-cheng Wang <cole945@gmail.com>
9216 Ulrich Weigand <uweigand@de.ibm.com>
9217
9218 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
9219 gdb_target_obs.
9220 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
9221 record.
9222 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
9223 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
9224 (ppc_linux_init_abi): Set process_record, process_record_signal.
9225 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
9226 ppc_linux_record_tdep to gdbarch_tdep.
9227 (ppc_process_record): New declaration.
9228 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
9229 ppc_process_record_op19, ppc_process_record_op31,
9230 ppc_process_record_op59, ppc_process_record_op60,
9231 ppc_process_record_op63, ppc_process_record): New functions.
9232
2608dbf8
WW
92332015-01-17 Wei-cheng Wang <cole945@gmail.com>
9234
9235 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
9236 rs6000_in_function_epilogue_frame_p and add an argument
9237 for frame_info.
9238 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
9239 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
9240 New functions.
9241 (rs6000_epilogue_frame_unwind): New.
9242 (rs6000_gdbarch_init): Append epilogue unwinder.
9243
4c347be6
SDJ
92442015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9245
9246 * nat/linux-personality.c: Replace "#ifndef
9247 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
9248 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
9249 systems.
9250
9f2850ba
EZ
92512015-01-16 Eli Zaretskii <eliz@gnu.org>
9252
6cdb25f4
EZ
9253 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
9254 functions.
9255 (_initialize_tui_win) <border-kind, border-mode>:
9256 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
c54da50d
EZ
9257 (tui_set_tab_width_command): Fix the commentary.
9258
6cdb25f4
EZ
9259 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
9260
bf555842
EZ
9261 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
9262 Doc fix.
cb86fcc1
EZ
9263 (tui_set_tab_width_command): Delete and recreate the source and
9264 the disassembly windows, to show the effect of the changed tab
9265 size immediately.
bf555842 9266
9f2850ba
EZ
9267 * tui/tui-data.h (LINE_PREFIX): Make shorter
9268 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
9269 "Thread NNNNN.XXXX" thread ID notation on Windows.
9270
95761b2d
JK
92712015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9272
9273 Fix gcc-5 compilation.
9274 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
9275
8cc73a39
SDJ
92762015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9277
9278 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
9279 (linux-personality.o): New rule.
9280 * common/common-defs.h: Include <stdint.h>.
9281 * config/aarch64/linux.mh (NATDEPFILES): Include
9282 linux-personality.o.
9283 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9284 * config/arm/linux.mh (NATDEPFILES): Likewise.
9285 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9286 * config/i386/linux.mh (NATDEPFILES): Likewise.
9287 * config/ia64/linux.mh (NATDEPFILES): Likewise.
9288 * config/m32r/linux.mh (NATDEPFILES): Likewise.
9289 * config/m68k/linux.mh (NATDEPFILES): Likewise.
9290 * config/mips/linux.mh (NATDEPFILES): Likewise.
9291 * config/pa/linux.mh (NATDEPFILES): Likewise.
9292 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9293 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9294 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9295 * config/s390/linux.mh (NATDEPFILES): Likewise.
9296 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9297 * config/sparc/linux.mh (NATDEPFILES): Likewise.
9298 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9299 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9300 * defs.h: Remove #include <stdint.h> (moved to
9301 common/common-defs.h).
9302 * linux-nat.c: Include nat/linux-personality.h. Remove #include
9303 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
9304 nat/linux-personality.c).
9305 (linux_nat_create_inferior): Remove code to disable address space
9306 randomization (moved to nat/linux-personality.c). Create cleanup
9307 to disable address space randomization.
9308 * nat/linux-personality.c: New file.
9309 * nat/linux-personality.h: Likewise.
9310
fb23d554
SDJ
93112015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9312
9313 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
9314 common/posix-strerror.c.
9315 (posix-strerror.o): New rule.
9316 (mingw-strerror.o): Likewise.
9317 * common/common-utils.h (safe_strerror): Move prototype to here,
9318 from utils.h.
9319 * common/common.host: New file.
9320 * common/mingw-strerror.c: Likewise.
9321 * common/posix-strerror.c: Likewise.
9322 * configure: Regenerated.
9323 * configure.ac: Source common/common.host. Add variable
9324 common_host_obs to gdb_host_obs.
9325 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
9326 gdb/common/posix-strerror.c when warning about the use of
9327 strerror.
9328 * mingw-hdep.c (safe_strerror): Remove definition; move it to
9329 common/mingw-strerror.c.
9330 * posix-hdep.c (safe_strerror): Remove definition; move it to
9331 common/posix-hdep.c.
9332 * utils.h (safe_strerror): Remove prototype; move to
9333 common/common-utils.h.
9334
3af8af43
JB
93352015-01-15 Joel Brobecker <brobecker@adacore.com>
9336
9337 GDB 7.8.2 released.
9338
bafffb51
JB
93392015-01-15 Joel Brobecker <brobecker@adacore.com>
9340
9341 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
9342 ___XA type if the array has already been fixed.
9343
cdf43629
YQ
93442015-01-14 Yao Qi <yao@codesourcery.com>
9345
9346 * Makefile.in (ppc-linux.o): New rule.
9347 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
9348 * configure.ac: AC_CHECK_FUNCS(getauxval).
9349 * config.in: Re-generated.
9350 * configure: Re-generated.
9351 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
9352 Declare.
9353 * nat/ppc-linux.c: New file.
9354 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
9355 Call ppc64_64bit_inferior_p.
9356
514c5338
YQ
93572015-01-14 Yao Qi <yao@codesourcery.com>
9358
9359 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
9360 nat/ppc-linux.h.
9361 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
9362 (PPC_FEATURE_HAS_DFP): Likewise.
9363 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9364 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9365 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9366 Include "nat/ppc-linux.h".
9367 * nat/ppc-linux.h: New file.
9368 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
9369
5589af0e
PA
93702015-01-14 Pedro Alves <palves@redhat.com>
9371
9372 PR gdb/17525
9373 * breakpoint.c: Include "interps.h".
9374 (bpstat_do_actions_1): Also check whether the interpreter is
9375 async.
9376
6c400b59
PA
93772015-01-14 Pedro Alves <palves@redhat.com>
9378
9379 PR cli/17828
9380 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
9381 reinstall if the interpreter is sync.
9382
e02c96a7
DE
93832015-01-13 Doug Evans <dje@google.com>
9384
9385 * objfiles.c (objfile_filename): New function.
9386 * objfiles.h (objfile_filename): Declare it.
9387 (objfile_name): Add function comment.
9388 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
9389 bfd file name (which may be realpath'd), and the original name.
9390
3b2f13ff
JB
93912015-01-13 Joel Brobecker <brobecker@adacore.com>
9392
9393 * NEWS: Create a new section for the next release branch.
9394 Rename the section of the current branch, now that it has
9395 been cut.
9396
b4cfe7f8
JB
93972015-01-13 Joel Brobecker <brobecker@adacore.com>
9398
9399 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
9400 * version.in: Bump version to 7.9.50.DATE-cvs.
9401
92fc2e69
JB
94022015-01-13 Joel Brobecker <brobecker@adacore.com>
9403
9404 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
9405 Remove trailing new-line in argument of call to warning.
9406
f71f0b0d
JB
94072015-01-13 Joel Brobecker <brobecker@adacore.com>
9408
9409 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
9410 new-line in argument of call to "warning".
9411
04dccad0
JB
94122015-01-13 Joel Brobecker <brobecker@adacore.com>
9413
9414 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
9415 in static block, then try searching for primitive types.
9416
08b13bdd
PP
94172015-01-12 Patrick Palka <patrick@parcs.ath.cx>
9418
9419 * top.h (gdb_add_history): Declare.
9420 * top.c (command_count): New variable.
9421 (gdb_add_history): New function.
9422 (gdb_safe_append_history): New static function.
9423 (quit_force): Call it.
9424 (command_line_input): Use gdb_add_history instead of
9425 add_history.
9426 * event-top.c (command_line_handler): Likewise.
9427
4ac15b59
JC
94282015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
9429
9430 PR gdb/17046
9431 * darwin-nat.c: Replace <machine/setjmp.h> #include by
9432 <setjmp.h> #include.
9433
005e54bb
DE
94342015-01-11 Doug Evans <xdje42@gmail.com>
9435
9436 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
9437
439250fb
DE
94382015-01-11 Doug Evans <xdje42@gmail.com>
9439
9440 PR gdb/15830
9441 * NEWS: The "maint demangle" command is renamed as "demangle".
9442 * demangle.c: #include cli/cli-utils.h, language.h.
9443 (demangle_command): New function.
9444 (_initialize_demangle): Add new command "demangle".
9445 * maint.c (maintenance_demangle): Stub out.
9446 (_initialize_maint_cmds): Update help text for "maint demangle",
9447 and mark as deprecated.
9448
ebf3aa72
MK
94492015-01-11 Mark Kettenis <kettenis@gnu.org>
9450
9451 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
9452 inferior_thread is a function.
9453
6bf045cd
PP
94542015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9455
9456 * Makefile.in (.y.c): Don't munge yacc's #line
9457 directives.
9458
588dcc3e
PP
94592015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9460
9461 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
9462 to prompt for input.
9463 * tui/tui-hooks.c (tui_query_hook): Remove.
9464 (tui_install_hooks): Don't set deprecated_query_hook.
9465 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
9466 height calculation. Always update the command window's cur_line.
9467
9c02b525
PA
94682015-01-09 Pedro Alves <palves@redhat.com>
9469
9470 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
9471 function.
9472 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
9473 declaration.
9474 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
9475 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
9476 stop_reason.
9477 (check_stopped_by_watchpoint): New function.
9478 (save_sigtrap): Reimplement.
9479 (linux_nat_stopped_by_watchpoint): Adjust.
9480 (linux_nat_lp_status_is_event): Delete.
9481 (stop_wait_callback): Only call save_sigtrap after storing the
9482 pending status.
9483 (status_callback): If the thread had been stopped for a breakpoint
9484 that has since been removed, discard the event and resume the LWP.
9485 (count_events_callback, select_event_lwp_callback): Use
9486 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
9487 (cancel_breakpoint): Rename to ...
9488 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9489 stopped for a software breakpoint or hardware breakpoint.
9490 (select_event_lwp): Only give preference to the stepping LWP in
9491 all-stop mode. Adjust comments.
9492 (stop_and_resume_callback): Remove references to new_pending_p.
9493 (linux_nat_filter_event): Likewise. Leave exit events of the
9494 leader thread pending here. Handle signal short circuiting here.
9495 Only call save_sigtrap after storing the pending waitstatus.
9496 (linux_nat_wait_1): Remove 'retry' label. Remove references to
9497 new_pending. Don't handle leaving events the caller is not
9498 interested in pending here, nor handle signal short-circuiting
9499 here. Also give equal priority to all LWPs that have had events
9500 in non-stop mode. If reporting a software breakpoint event,
9501 unadjust the LWP's PC.
9502 * linux-nat.h (enum lwp_stop_reason): New.
9503 (struct lwp_info) <stop_pc>: New field.
9504 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
9505 (struct lwp_info) <stop_reason>: New field.
9506 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9507
8af756ef
PA
95082015-01-09 Pedro Alves <palves@redhat.com>
9509
9510 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
9511 Set the LWP's 'resumed' flag.
9512
8a99810d
PA
95132015-01-09 Pedro Alves <palves@redhat.com>
9514
9515 * linux-nat.c (linux_resume_one_lwp): New function.
9516 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
9517 (linux_nat_resume): Use lwp_status_pending_p and
9518 linux_resume_one_lwp.
9519 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
9520 (linux_handle_extended_wait): Use linux_resume_one_lwp.
9521 (status_callback, running_callback): Use lwp_status_pending_p.
9522 (lwp_status_pending_p): New function.
9523 (stop_and_resume_callback): Use lwp_status_pending_p.
9524 (linux_nat_filter_event): Use linux_resume_one_lwp.
9525 (linux_nat_wait_1): Always use status_callback to look for an LWP
9526 with a pending status. Use linux_resume_one_lwp.
9527 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
9528 linux_resume_one_lwp.
9529
f7ce857f
PA
95302015-01-09 Pedro Alves <palves@redhat.com>
9531
9532 * breakpoint.c (bp_location_inserted_here_p): New function,
9533 factored out from ...
9534 (breakpoint_inserted_here_p): ... here. Use
9535 ALL_BP_LOCATIONS_AT_ADDR.
9536 (software_breakpoint_inserted_here_p): Use
9537 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
9538
c1a747c1
PA
95392014-01-09 Pedro Alves <palves@redhat.com>
9540
9541 Skip enabling event reporting if the kernel supports
9542 PTRACE_EVENT_CLONE.
9543 * linux-thread-db.c: Include "nat/linux-ptrace.h".
9544 (thread_db_use_events): New function.
9545 (try_thread_db_load_1): Check thread_db_use_events before enabling
9546 event reporting.
9547 (update_thread_state): New function.
9548 (attach_thread): Use it. Check thread_db_use_events before
9549 enabling event reporting.
9550 (thread_db_detach): Check thread_db_use_events before disabling
9551 event reporting.
9552 (find_new_threads_callback): Check thread_db_use_events before
9553 enabling event reporting. Update the thread's state if not using
9554 libthread_db events.
9555
a33e3959
PA
95562015-01-09 Pedro Alves <palves@redhat.com>
9557
9558 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
9559 about to wait for is > 0.
9560 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
9561 the kernel thread ID is -1.
9562
8784d563
PA
95632015-01-09 Pedro Alves <palves@redhat.com>
9564
9565 * linux-nat.c (attach_proc_task_lwp_callback): New function.
9566 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
9567 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
9568 ptrace option flags.
9569 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
9570 field.
9571 * nat/linux-procfs.c: Include <dirent.h>.
9572 (linux_proc_get_int): New parameter "warn". Handle it.
9573 (linux_proc_get_tgid): Adjust.
9574 (linux_proc_get_tracerpid): Rename to ...
9575 (linux_proc_get_tracerpid_nowarn): ... this.
9576 (linux_proc_pid_get_state): New function, factored out from
9577 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
9578 and handle it.
9579 (linux_proc_pid_is_gone): New function.
9580 (linux_proc_pid_is_stopped): Adjust.
9581 (linux_proc_pid_is_zombie_maybe_warn)
9582 (linux_proc_pid_is_zombie_nowarn): New functions.
9583 (linux_proc_pid_is_zombie): Use
9584 linux_proc_pid_is_zombie_maybe_warn.
9585 (linux_proc_attach_tgid_threads): New function.
9586 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
9587 (linux_proc_get_tracerpid): Rename to ...
9588 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
9589 (linux_proc_pid_is_gone): New declaration.
9590 (linux_proc_pid_is_zombie): Update comment.
9591 (linux_proc_pid_is_zombie_nowarn): New declaration.
9592 (linux_proc_attach_lwp_func): New typedef.
9593 (linux_proc_attach_tgid_threads): New declaration.
9594 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
9595 use nowarn functions.
9596 (linux_ptrace_attach_fail_reason_string): Move here from
9597 gdbserver/linux-low.c and rename.
9598 (ptrace_supports_feature): If the current ptrace options are not
9599 known yet, check them now, instead of asserting.
9600 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
9601 Declare.
9602
883ed13e
PA
96032015-01-09 Pedro Alves <palves@redhat.com>
9604
9605 * linux-thread-db.c (thread_db_find_new_threads_silently)
9606 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
9607 (find_new_threads_once): Print debug output on gdb_stdlog.
9608
1710aab8
CG
96092015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
9610 Pedro Alves <palves@redhat.com>
9611
9612 * compile/compile.c: Include "gdb_wait.h".
9613 (do_rmdir): Check return value, and free 'zap'.
9614
b597c318
YQ
96152015-01-08 Pedro Alves <palves@redhat.com>
9616 Yao Qi <yao@codesourcery.com>
9617
9618 * dwarf2loc.c (indirect_pieced_value): Don't call
9619 gdb_sign_extend. Call extract_signed_integer instead.
9620 * utils.c (gdb_sign_extend): Remove.
9621 * utils.h (gdb_sign_extend): Remove declaration.
9622
025ac414
PM
96232015-01-07 Pierre Muller <muller@sourceware.org>
9624
9625 PR symtab/17811
9626 * stabsread.c (define_symbol): Set language for C++ special symbols.
9627
fa5af12a
PP
96282015-01-07 Patrick Palka <patrick@parcs.ath.cx>
9629
9630 * inflow.c (initial_gdb_ttystate): Tweak comment.
9631
ea42d6f8
JB
96322015-01-07 Joel Brobecker <brobecker@adacore.com>
9633
9634 * inflow.c (set_initial_gdb_ttystate): Add empty line after
9635 comment documenting function.
9636
6a06d660
PP
96372015-01-07 Patrick Palka <patrick@parcs.ath.cx>
9638
9639 * terminal.h (set_initial_gdb_ttystate): Declare.
9640 * inflow.c (initial_gdb_ttystate): New static variable.
9641 (set_initial_gdb_ttystate): New setter.
9642 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
9643 instead of our current terminal state.
9644 * top.c (gdb_init): Call set_initial_gdb_ttystate.
9645
e810d75b
JB
96462015-01-07 Joel Brobecker <brobecker@adacore.com>
9647
9648 * guile/scm-type.c (tyscm_array_1): Add comment.
9649 * python/py-type.c (typy_array_1): Add comment.
9650
fce10a84
JB
96512015-01-06 Joel Brobecker <brobecker@adacore.com>
9652
9653 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
9654 error if N2 is equal to N1 - 1.
9655
8503d6e1
JB
96562015-01-06 Joel Brobecker <brobecker@adacore.com>
9657
9658 * python/py-type.c (typy_array_1): Do not raise negative-length
9659 exception if N2 is equal to N1 - 1.
9660
4d29c0a8
DE
96612015-01-03 Doug Evans <xdje42@gmail.com>
9662
9663 * c-exp.y: Whitespace cleanup.
9664 (classify_inner_name): Remove extra ;.
9665
eaa6a9a4
MR
96662015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
9667
9668 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
9669 offset signed.
9670
02fe9972
DE
96712015-01-02 Doug Evans <dje@google.com>
9672
9673 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
9674
e2ada9cb
DE
96752015-01-02 Doug Evans <dje@google.com>
9676
9677 * symtab.h (struct symbol): Fix typo in comment.
9678
32d0add0
JB
96792015-01-01 Joel Brobecker <brobecker@adacore.com>
9680
9681 Update year range in copyright notice of all files.
9682
76f2b779
JB
96832015-01-01 Joel Brobecker <brobecker@adacore.com>
9684
9685 * top.c (print_gdb_version): Update copyright year to 2015.
9686
077309e2 96872015-01-01 Joel Brobecker <brobecker@adacore.com>
6bf6fd09 9688
077309e2 9689 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
6bf6fd09 9690
077309e2 9691For older changes see ChangeLog-2014.
c906108c
SS
9692\f
9693Local Variables:
9694mode: change-log
9695left-margin: 8
9696fill-column: 74
9697version-control: never
57da7796 9698coding: utf-8
c906108c 9699End:
This page took 3.125127 seconds and 4 git commands to generate.