1 2015-08-27 Pedro Alves <palves@redhat.com>
3 * remote.c (DEFAULT_MAX_MEMORY_PACKET_SIZE)
4 (MIN_MEMORY_PACKET_SIZE): New.
5 (MAX_REMOTE_PACKET_SIZE, MIN_REMOTE_PACKET_SIZE): Delete.
6 (get_memory_packet_size): Adjust. No longer limit the max packet
8 (set_memory_packet_size): Adjust, and remove dead code.
9 (remote_check_symbols): Use xmalloc and a cleanup instead of
11 (remote_packet_size): No longer cap the packet size.
12 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
14 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
16 * compile/compile.c (compile_to_object): Mention language in
19 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
21 * target.c (target_pre_inferior): Unset attach_flag.
23 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
25 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
26 * gdbarch.c: Re-generate.
28 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
30 * aarch64-linux-nat.c (aarch64_add_process): Likewise.
31 * aarch64-tdep.c (aarch64_gdbarch_init): Likewise.
32 * ada-exp.y (write_ambiguous_var): Likewise.
33 * ada-lang.c (resolve_subexp): Likewise.
34 (user_select_syms): Likewise.
35 (assign_aggregate): Likewise.
36 (ada_evaluate_subexp): Likewise.
37 (cache_symbol): Likewise.
38 * addrmap.c (allocate_key): Likewise.
39 (addrmap_create_mutable): Likewise.
40 * aix-thread.c (sync_threadlists): Likewise.
41 * alpha-tdep.c (alpha_push_dummy_call): Likewise.
42 (alpha_gdbarch_init): Likewise.
43 * amd64-windows-tdep.c (amd64_windows_push_arguments): Likewise.
44 * arm-linux-nat.c (arm_linux_add_process): Likewise.
45 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
46 * arm-tdep.c (push_stack_item): Likewise.
47 (arm_displaced_step_copy_insn): Likewise.
48 (arm_gdbarch_init): Likewise.
49 (_initialize_arm_tdep): Likewise.
50 * avr-tdep.c (push_stack_item): Likewise.
51 * ax-general.c (new_agent_expr): Likewise.
52 * block.c (block_initialize_namespace): Likewise.
53 * breakpoint.c (alloc_counted_command_line): Likewise.
54 (update_dprintf_command_list): Likewise.
55 (parse_breakpoint_sals): Likewise.
56 (decode_static_tracepoint_spec): Likewise.
57 (until_break_command): Likewise.
58 (clear_command): Likewise.
59 (update_global_location_list): Likewise.
60 (get_breakpoint_objfile_data) Likewise.
61 * btrace.c (ftrace_new_function): Likewise.
62 (btrace_set_insn_history): Likewise.
63 (btrace_set_call_history): Likewise.
64 * buildsym.c (add_symbol_to_list): Likewise.
65 (record_pending_block): Likewise.
66 (start_subfile): Likewise.
67 (start_buildsym_compunit): Likewise.
68 (push_subfile): Likewise.
69 (end_symtab_get_static_block): Likewise.
70 (buildsym_init): Likewise.
71 * cli/cli-cmds.c (source_command): Likewise.
72 * cli/cli-decode.c (add_cmd): Likewise.
73 * cli/cli-script.c (build_command_line): Likewise.
74 (setup_user_args): Likewise.
75 (realloc_body_list): Likewise.
76 (process_next_line): Likewise.
77 (copy_command_lines): Likewise.
78 * cli/cli-setshow.c (do_set_command): Likewise.
79 * coff-pe-read.c (read_pe_exported_syms): Likewise.
80 * coffread.c (coff_locate_sections): Likewise.
81 (coff_symtab_read): Likewise.
82 (coff_read_struct_type): Likewise.
83 * common/cleanups.c (make_my_cleanup2): Likewise.
84 * common/common-exceptions.c (throw_it): Likewise.
85 * common/filestuff.c (make_cleanup_close): Likewise.
86 * common/format.c (parse_format_string): Likewise.
87 * common/queue.h (DEFINE_QUEUE_P): Likewise.
88 * compile/compile-object-load.c (munmap_list_add): Likewise.
89 (compile_object_load): Likewise.
90 * compile/compile-object-run.c (compile_object_run): Likewise.
91 * compile/compile.c (append_args): Likewise.
92 * corefile.c (specify_exec_file_hook): Likewise.
93 * cp-support.c (make_symbol_overload_list): Likewise.
94 * cris-tdep.c (push_stack_item): Likewise.
95 (cris_gdbarch_init): Likewise.
96 * ctf.c (ctf_trace_file_writer_new): Likewise.
97 * dbxread.c (init_header_files): Likewise.
98 (add_new_header_file): Likewise.
99 (init_bincl_list): Likewise.
100 (dbx_end_psymtab): Likewise.
101 (start_psymtab): Likewise.
102 (dbx_end_psymtab): Likewise.
103 * dcache.c (dcache_init): Likewise.
104 * dictionary.c (dict_create_hashed): Likewise.
105 (dict_create_hashed_expandable): Likewise.
106 (dict_create_linear): Likewise.
107 (dict_create_linear_expandable): Likewise.
108 * dtrace-probe.c (dtrace_process_dof_probe): Likewise.
109 * dummy-frame.c (register_dummy_frame_dtor): Likewise.
110 * dwarf2-frame-tailcall.c (cache_new_ref1): Likewise.
111 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
112 (decode_frame_entry_1): Likewise.
113 * dwarf2expr.c (new_dwarf_expr_context): Likewise.
114 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
115 * dwarf2read.c (dwarf2_has_info): Likewise.
116 (create_signatured_type_table_from_index): Likewise.
117 (dwarf2_read_index): Likewise.
118 (dw2_get_file_names_reader): Likewise.
119 (create_all_type_units): Likewise.
120 (read_cutu_die_from_dwo): Likewise.
121 (init_tu_and_read_dwo_dies): Likewise.
122 (init_cutu_and_read_dies): Likewise.
123 (create_all_comp_units): Likewise.
124 (queue_comp_unit): Likewise.
125 (inherit_abstract_dies): Likewise.
126 (read_call_site_scope): Likewise.
127 (dwarf2_add_field): Likewise.
128 (dwarf2_add_typedef): Likewise.
129 (dwarf2_add_member_fn): Likewise.
130 (attr_to_dynamic_prop): Likewise.
131 (abbrev_table_alloc_abbrev): Likewise.
132 (abbrev_table_read_table): Likewise.
133 (add_include_dir): Likewise.
134 (add_file_name): Likewise.
135 (dwarf_decode_line_header): Likewise.
136 (dwarf2_const_value_attr): Likewise.
137 (dwarf_alloc_block): Likewise.
138 (parse_macro_definition): Likewise.
139 (set_die_type): Likewise.
140 (write_psymtabs_to_index): Likewise.
141 (create_cus_from_index): Likewise.
142 (dwarf2_create_include_psymtab): Likewise.
143 (process_psymtab_comp_unit_reader): Likewise.
144 (build_type_psymtab_dependencies): Likewise.
145 (read_comp_units_from_section): Likewise.
146 (compute_compunit_symtab_includes): Likewise.
147 (create_dwo_unit_in_dwp_v1): Likewise.
148 (create_dwo_unit_in_dwp_v2): Likewise.
149 (read_func_scope): Likewise.
150 (process_structure_scope): Likewise.
151 (mark_common_block_symbol_computed): Likewise.
152 (load_partial_dies): Likewise.
153 (dwarf2_symbol_mark_computed): Likewise.
154 * elfread.c (elf_symfile_segments): Likewise.
155 (elf_read_minimal_symbols): Likewise.
156 * environ.c (make_environ): Likewise.
157 * eval.c (evaluate_subexp_standard): Likewise.
158 * event-loop.c (create_file_handler): Likewise.
159 (create_async_signal_handler): Likewise.
160 (create_async_event_handler): Likewise.
161 (create_timer): Likewise.
162 * exec.c (build_section_table): Likewise.
163 * fbsd-nat.c (fbsd_remember_child): Likewise.
164 * fork-child.c (fork_inferior): Likewise.
165 * frv-tdep.c (new_variant): Likewise.
166 * gdbarch.sh (gdbarch_alloc): Likewise.
167 (append_name): Likewise.
168 * gdbtypes.c (rank_function): Likewise.
169 (copy_type_recursive): Likewise.
170 (add_dyn_prop): Likewise.
171 * gnu-nat.c (make_proc): Likewise.
172 (make_inf): Likewise.
173 (gnu_write_inferior): Likewise.
174 * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
175 (build_std_type_info_type): Likewise.
176 * guile/scm-param.c (compute_enum_list): Likewise.
177 * guile/scm-utils.c (gdbscm_parse_function_args): Likewise.
178 * guile/scm-value.c (gdbscm_value_call): Likewise.
179 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
180 * hppa-tdep.c (hppa_init_objfile_priv_data): Likewise.
181 (read_unwind_info): Likewise.
182 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
183 * infcall.c (dummy_frame_context_saver_setup): Likewise.
184 (call_function_by_hand_dummy): Likewise.
185 * infcmd.c (step_once): Likewise.
186 (finish_forward): Likewise.
187 (attach_command): Likewise.
188 (notice_new_inferior): Likewise.
189 * inferior.c (add_inferior_silent): Likewise.
190 * infrun.c (add_displaced_stepping_state): Likewise.
191 (save_infcall_control_state): Likewise.
192 (save_inferior_ptid): Likewise.
193 (_initialize_infrun): Likewise.
194 * jit.c (bfd_open_from_target_memory): Likewise.
195 (jit_gdbarch_data_init): Likewise.
196 * language.c (add_language): Likewise.
197 * linespec.c (decode_line_2): Likewise.
198 * linux-nat.c (add_to_pid_list): Likewise.
199 (add_initial_lwp): Likewise.
200 * linux-thread-db.c (add_thread_db_info): Likewise.
201 (record_thread): Likewise.
202 (info_auto_load_libthread_db): Likewise.
203 * m32c-tdep.c (m32c_gdbarch_init): Likewise.
204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
205 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
206 * m88k-tdep.c (m88k_analyze_prologue): Likewise.
207 * macrocmd.c (macro_define_command): Likewise.
208 * macroexp.c (gather_arguments): Likewise.
209 * macroscope.c (sal_macro_scope): Likewise.
210 * macrotab.c (new_macro_table): Likewise.
211 * mdebugread.c (push_parse_stack): Likewise.
212 (parse_partial_symbols): Likewise.
213 (parse_symbol): Likewise.
214 (psymtab_to_symtab_1): Likewise.
215 (new_block): Likewise.
216 (new_psymtab): Likewise.
217 (mdebug_build_psymtabs): Likewise.
218 (add_pending): Likewise.
219 (elfmdebug_build_psymtabs): Likewise.
220 * mep-tdep.c (mep_gdbarch_init): Likewise.
221 * mi/mi-main.c (mi_execute_command): Likewise.
222 * mi/mi-parse.c (mi_parse_argv): Likewise.
223 * minidebug.c (lzma_open): Likewise.
224 * minsyms.c (terminate_minimal_symbol_table): Likewise.
225 * mips-linux-nat.c (mips_linux_insert_watchpoint): Likewise.
226 * mips-tdep.c (mips_gdbarch_init): Likewise.
227 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
228 * msp430-tdep.c (msp430_gdbarch_init): Likewise.
229 * mt-tdep.c (mt_registers_info): Likewise.
230 * nat/aarch64-linux.c (aarch64_linux_new_thread): Likewise.
231 * nat/linux-btrace.c (linux_enable_bts): Likewise.
232 (linux_enable_pt): Likewise.
233 * nat/linux-osdata.c (linux_xfer_osdata_processes): Likewise.
234 (linux_xfer_osdata_processgroups): Likewise.
235 * nios2-tdep.c (nios2_gdbarch_init): Likewise.
236 * nto-procfs.c (procfs_meminfo): Likewise.
237 * objc-lang.c (start_msglist): Likewise.
238 (selectors_info): Likewise.
239 (classes_info): Likewise.
240 (find_methods): Likewise.
241 * objfiles.c (allocate_objfile): Likewise.
242 (update_section_map): Likewise.
243 * osabi.c (gdbarch_register_osabi): Likewise.
244 (gdbarch_register_osabi_sniffer): Likewise.
245 * parse.c (start_arglist): Likewise.
246 * ppc-linux-nat.c (hwdebug_find_thread_points_by_tid): Likewise.
247 (hwdebug_insert_point): Likewise.
248 * printcmd.c (display_command): Likewise.
249 (ui_printf): Likewise.
250 * procfs.c (create_procinfo): Likewise.
251 (load_syscalls): Likewise.
252 (proc_get_LDT_entry): Likewise.
253 (proc_update_threads): Likewise.
254 * prologue-value.c (make_pv_area): Likewise.
255 (pv_area_store): Likewise.
256 * psymtab.c (extend_psymbol_list): Likewise.
257 (init_psymbol_list): Likewise.
258 (allocate_psymtab): Likewise.
259 * python/py-inferior.c (add_thread_object): Likewise.
260 * python/py-param.c (compute_enum_values): Likewise.
261 * python/py-value.c (valpy_call): Likewise.
262 * python/py-varobj.c (py_varobj_iter_next): Likewise.
263 * python/python.c (ensure_python_env): Likewise.
264 * record-btrace.c (record_btrace_start_replaying): Likewise.
265 * record-full.c (record_full_reg_alloc): Likewise.
266 (record_full_mem_alloc): Likewise.
267 (record_full_end_alloc): Likewise.
268 (record_full_core_xfer_partial): Likewise.
269 * regcache.c (get_thread_arch_aspace_regcache): Likewise.
270 * remote-fileio.c (remote_fileio_init_fd_map): Likewise.
271 * remote-notif.c (remote_notif_state_allocate): Likewise.
272 * remote.c (demand_private_info): Likewise.
273 (remote_notif_stop_alloc_reply): Likewise.
274 (remote_enable_btrace): Likewise.
275 * reverse.c (save_bookmark_command): Likewise.
276 * rl78-tdep.c (rl78_gdbarch_init): Likewise.
277 * rx-tdep.c (rx_gdbarch_init): Likewise.
278 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
279 * ser-go32.c (dos_get_tty_state): Likewise.
280 (dos_copy_tty_state): Likewise.
281 * ser-mingw.c (ser_windows_open): Likewise.
282 (ser_console_wait_handle): Likewise.
283 (ser_console_get_tty_state): Likewise.
284 (make_pipe_state): Likewise.
285 (net_windows_open): Likewise.
286 * ser-unix.c (hardwire_get_tty_state): Likewise.
287 (hardwire_copy_tty_state): Likewise.
288 * solib-aix.c (solib_aix_new_lm_info): Likewise.
289 * solib-dsbt.c (dsbt_current_sos): Likewise.
290 (dsbt_relocate_main_executable): Likewise.
291 * solib-frv.c (frv_current_sos): Likewise.
292 (frv_relocate_main_executable): Likewise.
293 * solib-spu.c (spu_bfd_fopen): Likewise.
294 * solib-svr4.c (lm_info_read): Likewise.
295 (svr4_copy_library_list): Likewise.
296 (svr4_default_sos): Likewise.
297 * source.c (find_source_lines): Likewise.
298 (line_info): Likewise.
299 (add_substitute_path_rule): Likewise.
300 * spu-linux-nat.c (spu_bfd_open): Likewise.
301 * spu-tdep.c (info_spu_dma_cmdlist): Likewise.
302 * stabsread.c (dbx_lookup_type): Likewise.
303 (read_type): Likewise.
304 (read_member_functions): Likewise.
305 (read_struct_fields): Likewise.
306 (read_baseclasses): Likewise.
307 (read_args): Likewise.
308 (_initialize_stabsread): Likewise.
309 * stack.c (func_command): Likewise.
310 * stap-probe.c (handle_stap_probe): Likewise.
311 * symfile.c (addrs_section_sort): Likewise.
312 (addr_info_make_relative): Likewise.
313 (load_section_callback): Likewise.
314 (add_symbol_file_command): Likewise.
315 (init_filename_language_table): Likewise.
316 * symtab.c (create_filename_seen_cache): Likewise.
317 (sort_search_symbols_remove_dups): Likewise.
318 (search_symbols): Likewise.
319 * target.c (make_cleanup_restore_target_terminal): Likewise.
320 * thread.c (new_thread): Likewise.
321 (enable_thread_stack_temporaries): Likewise.
322 (make_cleanup_restore_current_thread): Likewise.
323 (thread_apply_all_command): Likewise.
324 * tic6x-tdep.c (tic6x_gdbarch_init): Likewise.
325 * top.c (gdb_readline_wrapper): Likewise.
326 * tracefile-tfile.c (tfile_trace_file_writer_new): Likewise.
327 * tracepoint.c (trace_find_line_command): Likewise.
328 (all_tracepoint_actions_and_cleanup): Likewise.
329 (make_cleanup_restore_current_traceframe): Likewise.
330 (get_uploaded_tp): Likewise.
331 (get_uploaded_tsv): Likewise.
332 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
333 (tui_alloc_win_info): Likewise.
334 (tui_alloc_content): Likewise.
335 (tui_add_content_elements): Likewise.
336 * tui/tui-disasm.c (tui_find_disassembly_address): Likewise.
337 (tui_set_disassem_content): Likewise.
338 * ui-file.c (ui_file_new): Likewise.
339 (stdio_file_new): Likewise.
340 (tee_file_new): Likewise.
341 * utils.c (make_cleanup_restore_integer): Likewise.
342 (add_internal_problem_command): Likewise.
343 * v850-tdep.c (v850_gdbarch_init): Likewise.
344 * valops.c (find_oload_champ): Likewise.
345 * value.c (allocate_value_lazy): Likewise.
346 (record_latest_value): Likewise.
347 (create_internalvar): Likewise.
348 * varobj.c (install_variable): Likewise.
349 (new_variable): Likewise.
350 (new_root_variable): Likewise.
352 (_initialize_varobj): Likewise.
353 * windows-nat.c (windows_make_so): Likewise.
354 * x86-nat.c (x86_add_process): Likewise.
355 * xcoffread.c (arrange_linetable): Likewise.
356 (allocate_include_entry): Likewise.
357 (process_linenos): Likewise.
358 (SYMBOL_DUP): Likewise.
359 (xcoff_start_psymtab): Likewise.
360 (xcoff_end_psymtab): Likewise.
361 * xml-support.c (gdb_xml_parse_attr_ulongest): Likewise.
362 * xtensa-tdep.c (xtensa_register_type): Likewise.
363 * gdbarch.c: Regenerate.
364 * gdbarch.h: Regenerate.
366 2015-08-25 Don Breazeal <donb@codesourcery.com>
368 * infrun.c (follow_exec): Re-order operations for
369 handling follow-exec-mode "new".
370 (handle_inferior_event_1): Assign ecs->event_thread
371 to the current thread.
372 * remote.c (get_remote_arch_state): Add an assertion.
374 2015-08-26 Pedro Alves <palves@redhat.com>
376 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
378 2015-08-24 Pedro Alves <palves@redhat.com>
380 * defs.h (maybe_quit): Declare.
381 (QUIT): Now calls maybe_quit.
382 * event-loop.c (clear_async_signal_handler)
383 (async_signal_handler_is_marked): New functions.
384 * event-loop.h (async_signal_handler_is_marked)
385 (clear_async_signal_handler): New declarations.
386 * remote.c (remote_check_pending_interrupt): New function.
387 (interrupt_query): Use make_cleanup_restore_target_terminal. No
388 longer check whether the target is async. If waiting for a stop
389 reply, and a Ctrl-C as been sent to the target, offer to
390 disconnect, and throw TARGET_CLOSE_ERROR instead of a quit.
391 Otherwise do not disconnect and throw a quit.
392 (_initialize_remote): Install remote_check_pending_interrupt as
393 to_check_pending_interrupt.
394 * target.c (target_check_pending_interrupt): New function.
395 * target.h (struct target_ops) <to_check_pending_interrupt>: New
397 (target_check_pending_interrupt): New declaration.
398 * utils.c (maybe_quit): New function.
399 * target-delegates.c: Regenerate.
401 2015-08-25 Yao Qi <yao.qi@linaro.org>
403 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
404 Rename local variable pid to tid, and get lwpid of lwp. Update
407 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
409 * ada-lang.c (ada_read_var_value): Add a var_block argument
410 and pass it to default_read_var_value.
411 * block.c (block_static_link): New accessor.
412 * block.h (block_static_link): Declare it.
413 * buildsym.c (finish_block_internal): Add a static_link
414 argument. If there is a static link, associate it to the new
416 (finish_block): Add a static link argument and pass it to
417 finish_block_internal.
418 (end_symtab_get_static_block): Update calls to finish_block and
419 to finish_block_internal.
420 (end_symtab_with_blockvector): Update call to
421 finish_block_internal.
422 * buildsym.h: Forward-declare struct dynamic_prop.
423 (struct context_stack): Add a static_link field.
424 (finish_block): Add a static link argument.
425 * c-exp.y: Remove an obsolete comment (evaluation of variables
426 already start from the selected frame, and now they climb *up*
427 the call stack) and propagate the block information to the
431 * go-exp.y: Likewise.
432 * jv-exp.y: Likewise.
433 * m2-exp.y: Likewise.
435 * coffread.c (coff_symtab_read): Update calls to finish_block.
436 * dbxread.c (process_one_symbol): Likewise.
437 * xcoffread.c (read_xcoff_symtab): Likewise.
438 * compile/compile-c-symbols.c (convert_one_symbol): Promote the
439 "sym" parameter to struct block_symbol, update its uses and pass
440 its block to calls to read_var_value.
441 (convert_symbol_sym): Update the calls to convert_one_symbol.
442 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update
443 call to read_var_value.
444 * dwarf2loc.c (block_op_get_frame_base): New.
445 (dwarf2_block_frame_base_locexpr_funcs): Implement the
446 get_frame_base method.
447 (dwarf2_block_frame_base_loclist_funcs): Likewise.
448 (dwarf2locexpr_baton_eval): Add a frame argument and use it
449 instead of the selected frame in order to evaluate the
451 (dwarf2_evaluate_property): Add a frame argument. Update call
452 to dwarf2_locexpr_baton_eval to provide a frame in available and
453 to handle the absence of address stack.
454 * dwarf2loc.h (dwarf2_evaluate_property): Add a frame argument.
455 * dwarf2read.c (attr_to_dynamic_prop): Add a forward
457 (read_func_scope): Record any available static link description.
458 Update call to finish_block.
459 (read_lexical_block_scope): Update call to finish_block.
460 * findvar.c (follow_static_link): New.
461 (get_hosting_frame): New.
462 (default_read_var_value): Add a var_block argument. Use
463 get_hosting_frame to handle non-local references.
464 (read_var_value): Add a var_block argument and pass it to the
465 LA_READ_VAR_VALUE method.
466 * gdbtypes.c (resolve_dynamic_range): Update calls to
467 dwarf2_evaluate_property.
468 (resolve_dynamic_type_internal): Likewise.
469 * guile/scm-frame.c (gdbscm_frame_read_var): Update call to
470 read_var_value, passing it the block coming from symbol lookup.
471 * guile/scm-symbol.c (gdbscm_symbol_value): Update call to
472 read_var_value (TODO).
473 * infcmd.c (finish_command_continuation): Update call to
474 read_var_value, passing it the block coming from symbol lookup.
475 * infrun.c (insert_exception_resume_breakpoint): Likewise.
476 * language.h (struct language_defn): Add a var_block argument to
477 the LA_READ_VAR_VALUE method.
478 * objfiles.c (struct static_link_htab_entry): New.
479 (static_link_htab_entry_hash): New.
480 (static_link_htab_entry_eq): New.
481 (objfile_register_static_link): New.
482 (objfile_lookup_static_link): New.
483 (free_objfile): Free the STATIC_LINKS hashed map if needed.
484 * objfiles.h: Include hashtab.h.
485 (struct objfile): Add a static_links field.
486 (objfile_register_static_link): New.
487 (objfile_lookup_static_link): New.
488 * printcmd.c (print_variable_and_value): Update call to
490 * python/py-finishbreakpoint.c (bpfinishpy_init): Likewise.
491 * python/py-frame.c (frapy_read_var): Update call to
492 read_var_value, passing it the block coming from symbol lookup.
493 * python/py-framefilter.c (extract_sym): Add a sym_block
494 parameter and set the pointed value to NULL (TODO).
495 (enumerate_args): Update call to extract_sym.
496 (enumerate_locals): Update calls to extract_sym and to
498 * python/py-symbol.c (sympy_value): Update call to
499 read_var_value (TODO).
500 * stack.c (read_frame_local): Update call to read_var_value.
501 (read_frame_arg): Likewise.
502 (return_command): Likewise.
503 * symtab.h (struct symbol_block_ops): Add a get_frame_base
505 (struct symbol): Add a block field.
506 (SYMBOL_BLOCK): New accessor.
507 * valops.c (value_of_variable): Remove frame/block handling and
508 pass the block argument to read_var_value, which does this job
510 (value_struct_elt_for_reference): Update calls to
512 (value_of_this): Pass the block found to read_var_value.
513 * value.h (read_var_value): Add a var_block argument.
514 (default_read_var_value): Likewise.
516 2015-08-25 Yao Qi <yao.qi@linaro.org>
518 * aarch64-linux-nat.c (aarch64_linux_new_thread): Move it to ...
519 * nat/aarch64-linux.c (aarch64_linux_new_thread): ... here.
520 * nat/aarch64-linux.h (aarch64_linux_new_thread): Declare.
522 2015-08-25 Yao Qi <yao.qi@linaro.org>
524 * Makefile.in (aarch64-liunx.o): New rule.
525 (HFILES_NO_SRCDIR): Add aarch64-linux.h.
526 * config/aarch64/linux.mh (NAT_FILE): Add aarch64-linux.o.
527 * aarch64-linux-nat.c: Include nat/aarch64-linux.h.
528 * aarch64-linux-nat.c (aarch64_get_debug_reg_state): Make it
530 (aarch64_linux_prepare_to_resume): Move it nat/aarch64-linux.c.
531 * nat/aarch64-linux-hw-point.h (aarch64_debug_reg_state): Declare
532 * nat/aarch64-linux.c: New file.
533 * nat/aarch64-linux.h: New file.
535 2015-08-25 Yao Qi <yao.qi@linaro.org>
537 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
538 lwp_arch_private_info and ptid_of_lwp.
540 2015-08-25 Yao Qi <yao.qi@linaro.org>
542 * aarch64-linux-nat.c (struct arch64_dr_update_callback_param):
543 Move it to nat/aarch64-linux-hw-point.c.
544 (debug_reg_change_callback): Likewise.
545 (aarch64_notify_debug_reg_change): :Likewise.
546 * nat/aarch64-linux-hw-point.c: Include nat/linux-nat.h.
547 (aarch64_dr_update_callback_param): New.
548 (debug_reg_change_callback): New function.
549 (aarch64_notify_debug_reg_change): Likewise.
550 * nat/aarch64-linux-hw-point.h (aarch64_notify_debug_reg_change):
551 Remove the declaration.
553 2015-08-25 Yao Qi <yao.qi@linaro.org>
555 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
556 Call current_lwp_ptid.
558 2015-08-25 Yao Qi <yao.qi@linaro.org>
560 * aarch64-linux-nat.c (debug_reg_change_callback): Use
563 2015-08-25 Yao Qi <yao.qi@linaro.org>
565 * aarch64-linux-nat.c (debug_reg_change_callback): Call
566 ptid_get_pid rather than ptid_get_lwp.
568 2015-08-24 Pedro Alves <palves@redhat.com>
570 * NEWS (New commands): Mention set/show remote
571 multiprocess-extensions-packet.
572 * remote.c (remote_query_supported): Only tell the server to use
573 the multiprocess extensions if the user hasn't force-disabled them
574 with "set remote multiprocess-extensions-packet off".
576 2015-08-24 Pedro Alves <palves@redhat.com>
578 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
579 1029a8112290f6eee9d7878a391c49db42c999bd.
580 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
582 * gnulib/import/Makefile.am: Update.
583 * gnulib/import/Makefile.in: Update.
584 * gnulib/import/alloca.in.h: Update.
585 * gnulib/import/basename-lgpl.c: Update.
586 * gnulib/import/canonicalize-lgpl.c: Update.
587 * gnulib/import/config.charset: Update.
588 * gnulib/import/dirent.in.h: Update.
589 * gnulib/import/dirfd.c: Update.
590 * gnulib/import/dirname-lgpl.c: Update.
591 * gnulib/import/dirname.h: Update.
592 * gnulib/import/dosname.h: Update.
593 * gnulib/import/errno.in.h: Update.
594 * gnulib/import/extra/snippet/arg-nonnull.h: Update.
595 * gnulib/import/extra/snippet/c++defs.h: Update.
596 * gnulib/import/extra/snippet/warn-on-use.h: Update.
597 * gnulib/import/extra/update-copyright: Update.
598 * gnulib/import/float+.h: Update.
599 * gnulib/import/float.c: Update.
600 * gnulib/import/float.in.h: Update.
601 * gnulib/import/fnmatch.c: Update.
602 * gnulib/import/fnmatch.in.h: Update.
603 * gnulib/import/fnmatch_loop.c: Update.
604 * gnulib/import/fpucw.h: Update.
605 * gnulib/import/frexp.c: Update.
606 * gnulib/import/frexpl.c: Update.
607 * gnulib/import/gettimeofday.c: Update.
608 * gnulib/import/inttypes.in.h: Update.
609 * gnulib/import/isnan.c: Update.
610 * gnulib/import/isnand-nolibm.h: Update.
611 * gnulib/import/isnand.c: Update.
612 * gnulib/import/isnanl-nolibm.h: Update.
613 * gnulib/import/isnanl.c: Update.
614 * gnulib/import/itold.c: Update.
615 * gnulib/import/localcharset.c: Update.
616 * gnulib/import/localcharset.h: Update.
617 * gnulib/import/lstat.c: Update.
618 * gnulib/import/m4/00gnulib.m4: Update.
619 * gnulib/import/m4/absolute-header.m4: Update.
620 * gnulib/import/m4/alloca.m4: Update.
621 * gnulib/import/m4/canonicalize.m4: Update.
622 * gnulib/import/m4/codeset.m4: Update.
623 * gnulib/import/m4/configmake.m4: Update.
624 * gnulib/import/m4/dirent_h.m4: Update.
625 * gnulib/import/m4/dirfd.m4: Update.
626 * gnulib/import/m4/dirname.m4: Update.
627 * gnulib/import/m4/double-slash-root.m4: Update.
628 * gnulib/import/m4/eealloc.m4: Update.
629 * gnulib/import/m4/errno_h.m4: Update.
630 * gnulib/import/m4/exponentd.m4: Update.
631 * gnulib/import/m4/exponentl.m4: Update.
632 * gnulib/import/m4/extensions.m4: Update.
633 * gnulib/import/m4/extern-inline.m4: Update.
634 * gnulib/import/m4/fcntl-o.m4: Update.
635 * gnulib/import/m4/float_h.m4: Update.
636 * gnulib/import/m4/fnmatch.m4: Update.
637 * gnulib/import/m4/fpieee.m4: Update.
638 * gnulib/import/m4/frexp.m4: Update.
639 * gnulib/import/m4/frexpl.m4: Update.
640 * gnulib/import/m4/gettimeofday.m4: Update.
641 * gnulib/import/m4/glibc21.m4: Update.
642 * gnulib/import/m4/gnulib-cache.m4: Update.
643 * gnulib/import/m4/gnulib-common.m4: Update.
644 * gnulib/import/m4/gnulib-comp.m4: Update.
645 * gnulib/import/m4/gnulib-tool.m4: Update.
646 * gnulib/import/m4/include_next.m4: Update.
647 * gnulib/import/m4/inttypes-pri.m4: Update.
648 * gnulib/import/m4/inttypes.m4: Update.
649 * gnulib/import/m4/isnand.m4: Update.
650 * gnulib/import/m4/isnanl.m4: Update.
651 * gnulib/import/m4/largefile.m4: Update.
652 * gnulib/import/m4/localcharset.m4: Update.
653 * gnulib/import/m4/locale-fr.m4: Update.
654 * gnulib/import/m4/locale-ja.m4: Update.
655 * gnulib/import/m4/locale-zh.m4: Update.
656 * gnulib/import/m4/longlong.m4: Update.
657 * gnulib/import/m4/lstat.m4: Update.
658 * gnulib/import/m4/malloc.m4: Update.
659 * gnulib/import/m4/malloca.m4: Update.
660 * gnulib/import/m4/math_h.m4: Update.
661 * gnulib/import/m4/mbrtowc.m4: Update.
662 * gnulib/import/m4/mbsinit.m4: Update.
663 * gnulib/import/m4/mbsrtowcs.m4: Update.
664 * gnulib/import/m4/mbstate_t.m4: Update.
665 * gnulib/import/m4/memchr.m4: Update.
666 * gnulib/import/m4/memmem.m4: Update.
667 * gnulib/import/m4/mmap-anon.m4: Update.
668 * gnulib/import/m4/multiarch.m4: Update.
669 * gnulib/import/m4/nocrash.m4: Update.
670 * gnulib/import/m4/off_t.m4: Update.
671 * gnulib/import/m4/pathmax.m4: Update.
672 * gnulib/import/m4/readlink.m4: Update.
673 * gnulib/import/m4/rename.m4: Update.
674 * gnulib/import/m4/rmdir.m4: Update.
675 * gnulib/import/m4/ssize_t.m4: Update.
676 * gnulib/import/m4/stat.m4: Update.
677 * gnulib/import/m4/stdbool.m4: Update.
678 * gnulib/import/m4/stddef_h.m4: Update.
679 * gnulib/import/m4/stdint.m4: Update.
680 * gnulib/import/m4/stdio_h.m4: Update.
681 * gnulib/import/m4/stdlib_h.m4: Update.
682 * gnulib/import/m4/string_h.m4: Update.
683 * gnulib/import/m4/strstr.m4: Update.
684 * gnulib/import/m4/strtok_r.m4: Update.
685 * gnulib/import/m4/sys_socket_h.m4: Update.
686 * gnulib/import/m4/sys_stat_h.m4: Update.
687 * gnulib/import/m4/sys_time_h.m4: Update.
688 * gnulib/import/m4/sys_types_h.m4: Update.
689 * gnulib/import/m4/time_h.m4: Update.
690 * gnulib/import/m4/unistd_h.m4: Update.
691 * gnulib/import/m4/warn-on-use.m4: Update.
692 * gnulib/import/m4/wchar_h.m4: Update.
693 * gnulib/import/m4/wchar_t.m4: Update.
694 * gnulib/import/m4/wctype_h.m4: Update.
695 * gnulib/import/m4/wint_t.m4: Update.
696 * gnulib/import/malloc.c: Update.
697 * gnulib/import/malloca.c: Update.
698 * gnulib/import/malloca.h: Update.
699 * gnulib/import/math.in.h: Update.
700 * gnulib/import/mbrtowc.c: Update.
701 * gnulib/import/mbsinit.c: Update.
702 * gnulib/import/mbsrtowcs-impl.h: Update.
703 * gnulib/import/mbsrtowcs-state.c: Update.
704 * gnulib/import/mbsrtowcs.c: Update.
705 * gnulib/import/memchr.c: Update.
706 * gnulib/import/memmem.c: Update.
707 * gnulib/import/pathmax.h: Update.
708 * gnulib/import/readlink.c: Update.
709 * gnulib/import/ref-add.sin: Update.
710 * gnulib/import/ref-del.sin: Update.
711 * gnulib/import/rename.c: Update.
712 * gnulib/import/rmdir.c: Update.
713 * gnulib/import/same-inode.h: Update.
714 * gnulib/import/stat.c: Update.
715 * gnulib/import/stdbool.in.h: Update.
716 * gnulib/import/stddef.in.h: Update.
717 * gnulib/import/stdint.in.h: Update.
718 * gnulib/import/stdio.c: Update.
719 * gnulib/import/stdio.in.h: Update.
720 * gnulib/import/stdlib.in.h: Update.
721 * gnulib/import/str-two-way.h: Update.
722 * gnulib/import/streq.h: Update.
723 * gnulib/import/string.in.h: Update.
724 * gnulib/import/stripslash.c: Update.
725 * gnulib/import/strnlen1.c: Update.
726 * gnulib/import/strnlen1.h: Update.
727 * gnulib/import/strstr.c: Update.
728 * gnulib/import/strtok_r.c: Update.
729 * gnulib/import/sys_stat.in.h: Update.
730 * gnulib/import/sys_time.in.h: Update.
731 * gnulib/import/sys_types.in.h: Update.
732 * gnulib/import/time.in.h: Update.
733 * gnulib/import/unistd.in.h: Update.
734 * gnulib/import/verify.h: Update.
735 * gnulib/import/wchar.in.h: Update.
736 * gnulib/import/wctype.in.h: Update.
737 * gnulib/import/gettimeofday.c: New file.
738 * gnulib/import/m4/absolute-header.m4: New file.
739 * gnulib/import/m4/gettimeofday.m4: New file.
740 * gnulib/import/m4/sys_socket_h.m4: New file.
741 * gnulib/import/m4/sys_time_h.m4: New file.
742 * gnulib/import/stdio.c: Delete file.
743 * gnulib/import/sys_time.in.h: New file.
745 2015-08-24 Pedro Alves <palves@redhat.com>
747 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_sys_time.h.
748 * common/gdb_sys_time.h: New file.
749 * event-loop.c: Include gdb_sys_time.h instead of sys/time.h.
750 * gdb_select.h: Likewise.
751 * gdb_usleep.c: Likewise.
753 * mi/mi-main.c: Likewise.
754 * mi/mi-parse.h: Likewise.
755 * remote-fileio.c: Likewise.
756 * remote-m32r-sdi.c: Likewise.
757 * remote.c: Likewise.
758 * ser-base.c: Likewise.
759 * ser-pipe.c: Likewise.
760 * ser-tcp.c: Likewise.
761 * ser-unix.c: Likewise.
762 * symfile.c: Likewise.
763 * symfile.c: Likewise. Rename OSIZE to SIZE throughout.
764 * target-memory.c: Include gdb_sys_time.h instead of sys/time.h.
767 2015-08-24 Pedro Alves <palves@redhat.com>
769 * NEWS: Mention removed support for the various ROM monitors.
770 * Makefile.in (ALL_TARGET_OBS): Remove dbug-rom.o, dink32-rom.o,
771 ppcbug-rom.o, m32r-rom.o, dsrec.o and monitor.o from gdb_target_obs.
772 * configure.tgt (h8300-*-*): Remove monitor.o and m32r-rom.o from
774 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
776 (microblaze*-linux-*): Remove microblaze-rom.o, monitor.o and
777 dsrec.o from gdb_target_obs.
778 (microblaze*-*-*): Remove microblaze-rom.o, monitor.o and dsrec.o
780 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
782 (powerpc*-*-*): Remove monitor.o, dsrec.o, ppcbug-rom.o and
783 dink32-rom.o from gdb_target_obs.
784 (sh*-*-linux*): Remove monitor.o and dsrec.o from gdb_target_obs.
785 (sh*): Remove monitor.o and dsrec.o from gdb_target_obs.
786 * dbug-rom.c, dink32-rom.c, dsrec.c, m32r-rom.c, microblaze-rom.c,
787 monitor.c, monitor.h, ppcbug-rom.c, srec.h: Delete files.
789 2015-08-21 Pedro Alves <palves@redhat.com>
791 * frame.c (null_frame_id): Explicitly zero-initialize.
793 2015-08-21 Tom Tromey <tromey@redhat.com>
795 * dwarf2read.c (struct dwarf2_section_info): Rename field
796 'asection' to 'section'.
797 (dwarf2_has_info, get_section_bfd_owner, get_section_bfd_section)
798 (dwarf2_locate_sections, dwarf2_locate_sections)
799 (locate_dwz_sections, locate_v1_virtual_dwo_sections)
800 (dwarf2_locate_dwo_sections, dwarf2_locate_dwo_sections)
801 (dwarf2_locate_v2_dwp_sections): Adjust.
803 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
805 * top.h (gdb_in_secondary_prompt_p): Declare.
806 * top.c (gdb_secondary_prompt_depth): Define.
807 (gdb_in_secondary_prompt_p): Define.
808 (gdb_readline_wrapper_cleanup): Decrement
809 gdb_secondary_prompt_depth.
810 (gdb_readline_wrapper): Increment gdb_secondary_prompt_depth.
811 * tui/tui-io.c (tui_getc): Don't clear the prompt line if we
812 are in a secondary prompt.
814 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
816 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
819 2015-08-21 Gary Benson <gbenson@redhat.com>
821 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
823 2015-08-21 Gary Benson <gbenson@redhat.com>
825 * target.h (struct target_ops) <to_fileio_open>: New argument
826 warn_if_slow. Update comment. All implementations updated.
827 (target_fileio_open_warn_if_slow): New declaration.
828 * target.c (target_fileio_open): Renamed as...
829 (target_fileio_open_1): ...this. New argument warn_if_slow.
830 Pass warn_if_slow to implementation. Update debug printing.
831 (target_fileio_open): New function.
832 (target_fileio_open_warn_if_slow): Likewise.
833 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function
834 target_fileio_open_warn_if_slow.
836 2015-08-21 Gary Benson <gbenson@redhat.com>
838 * nat/linux-namespaces.c (linux_mntns_access_fs):
839 Do not overwrite old_chain.
841 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
843 * arch/xtensa.h: New file.
844 * xtensa-linux-nat.c (gdb_proc_service.h): New #include.
845 (ps_get_thread_area): New function.
846 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Add call to
847 set_gdbarch_fetch_tls_load_module_address to enable TLS support.
848 * xtensa-tdep.c (osabi.h): New #include.
849 (xtensa_gdbarch_init): Call gdbarch_init_osabi to register
850 xtensa-specific hooks.
851 * xtensa-tdep.h (struct xtensa_elf_gregset_t): Add threadptr
852 member and move the structure to arch/xtensa.h.
854 2015-08-21 Pedro Alves <palves@redhat.com>
856 * remote.c (struct readahead_cache): New.
857 (struct remote_state) <readahead_cache>: New field.
858 (remote_open_1): Invalidate the cache.
859 (readahead_cache_invalidate, readahead_cache_invalidate_fd): New
861 (remote_hostio_pwrite): Invalidate the readahead cache.
862 (remote_hostio_pread): Rename to ...
863 (remote_hostio_pread_vFile): ... this.
864 (remote_hostio_pread_from_cache): New function.
865 (remote_hostio_pread): Reimplement.
866 (remote_hostio_close): Invalidate the readahead cache.
868 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
871 * procfs.c: Include "filestuff.h".
873 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
875 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
877 * tui/tui-data.c (tui_clear_win_detail) [CMD_WIN]: Don't set
878 cur_line or curch, instead call wmove().
879 (init_win_info) [CMD_WIN]: Likewise.
880 * tui/tui-io.c (tui_puts): Likewise. Don't read cur_line,
881 instead call getcury().
882 (tui_redisplay_readline): Don't set cur_line or curch.
883 (tui_mld_erase_entire_line): Don't read cur_line, instead call
885 (tui_cont_sig): Remove call to wmove.
886 (tui_getc): Don't read cur_line or curch, instead call getcury()
887 or getyx(). Don't set curch.
888 * tui/tui-win.c (make_visible_with_new_height) [CMD_WIN]: Don't
889 set cur_line or curch. Always move cursor to (0,0).
891 2015-08-20 Pedro Alves <palves@redhat.com>
893 * infrun.c (print_target_wait_results): Make extern.
894 * infrun.h (print_target_wait_results): Declare.
895 * remote.c (set_stop_requested_callback): Delete.
896 (process_initial_stop_replies): New function.
897 (remote_start_remote): Use it.
898 (stop_reply_queue_length): New function.
900 2015-08-20 Pedro Alves <palves@redhat.com>
902 * dwarf2read.c (process_full_comp_unit): To tell whether
903 start_subfile managed to deduce a language, test for
904 language_unknown instead of language_c.
906 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
908 * ada-lex.l: Reset the start condition to INITIAL in the rule that
911 2015-08-19 Kevin Buettner <kevinb@redhat.com>
913 * dwarf2read.c (dwarf2_string_attr): New function.
914 (lookup_dwo_unit, process_psymtab_comp_unit_reader)
915 (dwarf2_compute_name, dwarf2_physname, find_file_and_directory)
916 (read_call_site_scope, namespace_name, guess_full_die_structure_name)
917 (anonymous_struct_prefix, prepare_one_comp_unit): Use
918 dwarf2_string_attr in place of dwarf2_attr and DW_STRING.
920 2015-08-18 Doug Evans <dje@google.com>
921 Adrian Sendroiu <adrian.sendroiu@freescale.com>
924 * cli/cli-logging.c (pop_output_files): Don't restore redirection
926 * mi/mi-out.c: #include "vec.h".
927 (ui_filep): New type.
928 (DEV_VEC_P (ui_filep)): New type.
929 (struct ui_out_data) <buffer, original_buffer>: Delete.
930 (struct ui_out_data) <streams>: New member.
931 (mi_ui_out_impl): Add data_destroy field.
932 (mi_field_string, mi_field_fmt): Update.
933 (mi_flush, mi_redirect, field_separator): Update.
934 (mi_open, mi_close): Update.
935 (mi_out_buffered, mi_out_rewind, mi_out_put): Update.
936 (mi_out_data_ctor, mi_out_data_dtor): New functions.
937 (mi_out_new): Call mi_out_data_ctor.
939 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
941 * remote.c (strprefix): New.
942 (remote_parse_stop_reply): Use strprefix instead of strncmp
943 to ensure exact match of keyword.
945 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
947 * gdb_bfd.c (debug_bfd_cache): New variable.
948 (show_bfd_cache_debug): New function.
949 (gdb_bfd_open): Add debug logging.
950 (gdb_bfd_ref): Likewise.
951 (gdb_bfd_unref): Likewise.
952 (_initialize_gdb_bfd): Add new set/show command.
953 * NEWS: Mention new command.
955 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
957 * gdb_bfd.c (bfd_sharing): New variable.
958 (show_bfd_sharing): New function.
959 (gdb_bfd_open): Check bfd_sharing variable.
960 (_initialize_gdb_bfd): Add new set/show command.
961 * NEWS: Mention new command.
963 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
965 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
967 (struct gdb_bfd_cache_search): Likewise.
968 (eq_bfd): Compare the size, inode, and device id fields.
969 (gdb_bfd_open): Initialise the size, inode, and device id fields.
970 (gdb_bfd_ref): Likewise.
971 (gdb_bfd_unref): Likewise.
973 2015-08-18 Pedro Alves <palves@redhat.com>
975 * linux-nat.c (linux_nat_always_non_stop_p): If the linux_ops
976 target implements to_always_non_stop_p, call it.
977 * x86-linux-nat.c (x86_linux_always_non_stop_p): New function.
978 (x86_linux_create_target): Install it as to_always_non_stop_p
981 2015-08-17 Doug Evans <dje@google.com>
983 * ui-out.c (default_ui_out_impl): Add comment.
985 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
987 * d-exp.y (type_aggregate_p): New function.
988 (PrimaryExpression : TypeExp '.' IdentifierExp): Use it.
989 (classify_inner_name): Likewise.
990 * d-namespace.c (d_lookup_nested_symbol): Handle TYPE_CODE_ENUM.
992 2015-08-15 Doug Evans <xdje42@gmail.com>
994 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
996 (add_psymbol_to_list): Ditto.
998 2015-08-15 Doug Evans <xdje42@gmail.com>
1000 * dbxread.c (dbx_end_psymtab): Renamed from end_psymtab. All callers
1001 updated. Call end_psymtab_common.
1002 * dwarf2read.c (process_psymtab_comp_unit_reader): Call
1004 (build_type_psymtabs_reader): Ditto.
1005 * psympriv.h (sort_pst_symbols): Delete.
1006 (end_psymtab_common): Declare.
1007 * psymtab.c (sort_pst_symbols): Make static.
1008 (end_psymtab_common): New function.
1009 * xcoffread.c (xcoff_end_psymtab): Call end_psymtab_common.
1011 2015-08-15 Doug Evans <xdje42@gmail.com>
1013 * defs.h (LANGUAGE_BITS): Define.
1014 * psympriv.h (partial_symbol) <domain>: Use SYMBOL_DOMAIN_BITS.
1015 (partial_symbol) <aclass>: Use SYMBOL_ACLASS_BITS.
1016 * symtab.h (general_symbol_info> <language>: Usage LANGUAGE_BITS.
1017 (minimal_symbol_type): Add nr_minsym_types.
1018 (MINSYM_TYPE_BITS): Define.
1019 (minimal_symbol) <type>: Use MINSYM_TYPE_BITS.
1020 (domain_enum_tag): Add NR_DOMAINS.
1021 (SYMBOL_DOMAIN_BITS): Change from 4 to 3.
1022 (SYMBOL_ACLASS_BITS): Define from 6 to 5.
1024 2015-08-15 Doug Evans <xdje42@gmail.com>
1026 * objfiles.h: Whitespace cleanup.
1027 * psympriv.h: Whitespace cleanup.
1028 * psymtab.c: Whitespace/coding convention cleanup.
1030 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
1032 * inferior.c (detach_inferior_command): Don't call
1033 any_thread_of_process when pid is 0.
1034 (kill_inferior_command): Likewise.
1036 2015-08-14 Doug Evans <xdje42@gmail.com>
1039 * NEWS: Document new /s modifier for the disassemble command.
1040 * cli/cli-cmds.c (disassemble_command): Add support for /s.
1041 (_initialize_cli_cmds): Update online docs of disassemble command.
1042 * disasm.c: #include "source.h".
1043 (struct deprecated_dis_line_entry): Renamed from dis_line_entry.
1045 (dis_line_entry): New struct.
1046 (hash_dis_line_entry, eq_dis_line_entry): New functions.
1047 (allocate_dis_line_table): New functions.
1048 (maybe_add_dis_line_entry, line_has_code_p): New functions.
1049 (dump_insns): New arg end_pc. All callers updated.
1050 (do_mixed_source_and_assembly_deprecated): Renamed from
1051 do_mixed_source_and_assembly. All callers updated.
1052 (do_mixed_source_and_assembly): New function.
1053 (gdb_disassembly): Handle /s (DISASSEMBLY_SOURCE).
1054 * disasm.h (DISASSEMBLY_SOURCE_DEPRECATED): Renamed from
1055 DISASSEMBLY_SOURCE. All uses updated.
1056 (DISASSEMBLY_SOURCE): New macro.
1057 * mi/mi-cmd-disas.c (mi_cmd_disassemble): New modes 4,5.
1059 2015-08-14 Keith Seitz <keiths@redhat.com>
1061 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
1062 `typename' to `type_name' to avoid C++ reserved word.
1064 2015-08-14 Keith Seitz <keiths@redhat.com>
1066 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
1067 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
1070 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
1072 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Use
1073 xstrprintf instead of malloc and sprintf.
1074 (PrimaryExpression : IdentifierExp): Avoid operator at end of line.
1075 (lex_one_token): Likewise.
1077 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1079 * solib-svr4.c (read_program_header): Add base_addr argument to
1080 report the runtime address of the segment.
1081 (find_program_interpreter): Update read_program_header call to pass
1082 a NULL pointer for the new argument.
1083 (scan_dyntag): Add ptr_addr argument to report the runtime address
1085 (scan_dyntag_auxv): Likewise and use thew new base_addr argument of
1086 read_program_header to get the base address of the dynamic segment.
1087 (elf_locate_base): Update uses of scan_dyntag, scan_dyntag_auxv and
1088 read_program_header.
1089 (elf_locate_base): Scan for and handle DT_MIPS_RLD_MAP_REL.
1091 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1093 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
1095 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1097 * d-exp.y (%union): Add voidval.
1098 (%token): Add UNKNOWN_NAME as a token to represent an unclassified
1099 name in the lexing stage.
1100 (PostfixExpression): Move symbol completion handling in grammar here
1101 from PrimaryExpression.
1102 (PrimaryExpression): Move routines to handle resolving identifier
1103 tokens in the grammar here from push_expression_name.
1104 (IdentifierExp): Remove the handling of alternating '.' and identifier
1106 (TypeExp): Allow TypeExp to be wrapped in parenthesis in the grammar.
1107 (BasicType): Remove C-style typename rules.
1108 (d_type_from_name, d_module_from_name, push_variable)
1109 (push_fieldnames, push_type_name, push_module_name)
1110 (push_expression_name): Remove.
1111 (lex_one_token): Rename from yylex. Replace pstate with par_state.
1112 (token_and_value): New type.
1113 (token_fifo, popping, name_obstack): New globals.
1114 (classify_name): New function.
1115 (classify_inner_name): Likewise.
1117 (d_parse): Initialize token_fifo, popping and name_obstack.
1119 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
1121 * Makefile.in (SFILES): Add d-namespace.c.
1122 (COMMON_OBS): Add d-namespace.o.
1123 * d-lang.c (d_language_defn): Use d_lookup_symbol_nonlocal as the
1124 la_lookup_symbol_nonlocal callback function pointer.
1125 * d-lang.h (d_lookup_symbol_nonlocal): New declaration.
1126 (d_lookup_nested_symbol): New declaration.
1127 * d-namespace.c: New file.
1129 2015-08-13 Pedro Alves <palves@redhat.com>
1131 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
1132 cleanup after the decref cleanup, not before.
1134 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
1136 * ada-lang.c: Include namespace.h
1137 (aux_add_nonlocal_symbols): Fix a function name in comment.
1138 (ada_add_block_renamings): New.
1139 (add_nonlocal_symbols): Add global renamings handling.
1140 (ada_lookup_symbol_list_worker): Move the symbol lookup part
1142 (ada_add_all_symbols): ... this new function.
1143 (ada_add_block_symbols): Try to match the input name against the
1144 "using directives list", perform a recursive symbol lookup on
1145 the matched declarations.
1146 * block.h (struct block): Move the_namespace to top-level as
1147 namespace_info. Remove the language_specific field.
1148 (BLOCK_NAMESPACE): Update access to the namespace_info field.
1149 * buildsym.h (using_directives): Rename into...
1150 (local_using_directives): ... this.
1151 (global_using_directives): New.
1152 (struct context_stack): Rename the using_directives field into
1153 local_using_directives.
1154 * buildsym.c (finish_block_internal): Deal with the proper
1155 using directives repository (local or global).
1156 (prepare_for_building): Reset local_using_directives. Assert
1157 that there is no pending global using directive.
1158 (reset_symtab_globals): Reset global_using_directives and
1159 local_using_directives.
1160 (end_symtab_get_static_block): Don't ignore symtabs that have
1161 only using directives.
1162 (push_context): Update references to local_using_directives.
1163 (buildsym_init): Do not reset using_directives.
1164 * cp-support.c: Include namespace.h.
1165 * cp-support.h (struct using_direct): Move to namespace.h.
1166 (cp_add_using_directives): Move to namespace.h.
1167 * cp-namespace.c: Include namespace.h
1168 (cp_add_using_directive): Move to namespace.c, rename it to
1169 add_using_directive, add a "using_directives" argument and use
1170 it as the pending using directives repository. All callers
1172 * dwarf2read.c (using_directives): New.
1173 (read_import_statement): Call using_directives.
1174 (read_func_scope): Update references to local_using_directives.
1175 (read_lexical_block_scope): Likewise.
1176 (read_namespace): Update the heading comment, call
1178 * namespace.h: New file.
1179 * namespace.c: New file.
1180 * Makefile.in (SFILES): Add namespace.c.
1181 (COMMON_OBS): Add namespace.o
1183 2015-08-12 Joel Brobecker <brobecker@adacore.com>
1185 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
1188 2015-08-12 Keith Seitz <keiths@redhat.com>
1190 * break-catch-throw.c (re_set_exception_catchpoint) Rename
1191 reserved C++ keyword "explicit" to "explicit_loc".
1192 * breakpoint.c (create_overlay_event_breakpoint)
1193 (create_longjmp_master_breakpoint)
1194 (create_std_terminate_master_breakpoint)
1195 (create_exception_master_breakpoint, update_static_tracepoint):
1196 Rename reserved C++ keyword "explicit" to "explicit_loc".
1197 * completer.c (collect_explicit_location_matches)
1198 (explicit_location_completer): Rename reserved C++ keyword
1199 "explicit" to "explicit_loc".
1200 * linespec.c (struct linespec) <explicit>: Rename to "explicit_loc".
1201 (canonicalize_linespec, create_sals_line_offset)
1202 (convert_linespec_to_sals, convert_explicit_location_to_sals)
1203 (event_location_to_sals, decode_objc): Rename reserved C++ keyword
1204 "explicit" to "explicit_loc".
1205 * location.c (struct event_location) <explicit>: Rename to
1207 (initialize_explicit_location, new_explicit_location)
1208 (explicit_location_to_string_internal, explicit_location_to_linespec):
1209 Rename reserved C++ keyword "explicit" to "explicit_loc".
1210 * location.h (explicit_location_to_string)
1211 (explicit_location_to_linespec, initialize_explicit_location)
1212 (new_explicit_location): Rename reserved C++ keyword "explicit"
1214 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
1215 keyword "explicit" to "explicit_loc".
1217 2015-08-12 Keith Seitz <keiths@redhat.com>
1219 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
1220 and only call decode_line_1 when it is non-NULL.
1222 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
1224 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
1225 location address is not meaningful.
1226 (breakpoint_address_is_meaningful): Update comment.
1228 2015-08-11 Keith Seitz <keiths@redhat.com>
1230 * NEWS: Mention explicit locations.
1231 * breakpoint.c [LOCATION_HELP_STRING]: New macro.
1232 [BREAK_ARGS_HELP]: Use LOCATION_HELP_STRING.
1233 (_initialize_breakpoint): Update documentation for
1234 "clear", "break", "trace", "strace", "ftrace", and "dprintf".
1236 2015-08-11 Keith Seitz <keiths@redhat.com>
1238 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
1239 explicit locations, options "--source", "--function",
1240 "--label", and "--line".
1242 2015-08-11 Keith Seitz <keiths@redhat.com>
1244 * completer.c: Include location.h.
1245 (enum match_type): New enum.
1246 (location_completer): Rename to ...
1247 (linespec_completer): ... this.
1248 (collect_explicit_location_matches, backup_text_ptr)
1249 (explicit_location_completer): New functions.
1250 (location_completer): "New" function; handle linespec
1251 and explicit location completions.
1252 (complete_line_internal): Remove all location completer-specific
1254 * linespec.c (linespec_lexer_lex_keyword, is_ada_operator)
1255 (find_toplevel_char): Export.
1256 (linespec_parse_line_offset): Export.
1257 Issue error if STRING is not numerical.
1258 (gdb_get_linespec_parser_quote_characters): New function.
1259 * linespec.h (linespec_parse_line_offset): Declare.
1260 (get_gdb_linespec_parser_quote_characters): Declare.
1261 (is_ada_operator): Declare.
1262 (find_toplevel_char): Declare.
1263 (linespec_lexer_lex_keyword): Declare.
1264 * location.c (explicit_to_event_location): New function.
1265 (explicit_location_lex_one): New function.
1266 (string_to_explicit_location): New function.
1267 (string_to_event_location): Handle explicit locations.
1268 * location.h (explicit_to_event_location): Declare.
1269 (string_to_explicit_location): Declare.
1271 2015-08-11 Keith Seitz <keiths@redhat.com>
1273 * break-catch-throw.c (re_set_exception_catchpoint): Convert
1274 linespec into explicit location.
1275 * breakpoint.c (create_overlay_breakpoint)
1276 (create_longjmp_master_breakpoint)
1277 (create_std_terminate_master_breakpoint)
1278 (create_exception_master_breakpoint): Convert linespec into explicit
1280 (update_static_tracepoint): Convert linespec into explicit location.
1281 * linespec.c (enum offset_relative_sign, struct line_offset): Move
1283 (struct linespec) <expression, expr_pc, source_filename>
1284 <function_name, label_name, line_offset>: Replace with ...
1285 <explicit>: ... this.
1286 <is_linespec>: New member.
1287 (PARSER_EXPLICIT): New accessor macro.
1288 (undefined_label_error): New function.
1289 (source_file_not_found_error): New function.
1290 (linespec_parse_basic): The parser result is now an explicit location.
1291 Use PARSER_EXPLICIT to access it.
1292 Use undefined_label_error.
1293 (canonicalize_linespec): Convert canonical linespec into explicit
1295 Move string representation of location to explicit_location_to_linespec
1296 and use it and explicit_location_to_string to save string
1297 representations of the canonical location.
1298 (create_sals_line_offset, convert_linespec_to_sals): `ls' contains an
1299 explicit location. Update all references.
1300 (convert_explicit_location_to_sals): New function.
1301 (parse_linespec): Use PARSER_EXPLICIT to access the parser
1302 result's explicit location.
1303 (linespec_state_constructor): Initialize is_linespec.
1304 Use PARSER_EXPLICIT.
1305 (linespec_parser_delete): Use PARSER_EXPLICIT to access the parser's
1307 (event_location_to_sals): For linespec locations, set is_linespec.
1308 Handle explicit locations.
1309 (decode_objc): 'ls' contains an explicit location now. Update all
1311 (symtabs_from_filename): Use source_file_not_found_error.
1312 * location.c (struct event_location.u) <explicit>: New member.
1313 (initialize_explicit_location): New function.
1314 (initialize_event_location): Initialize explicit locations.
1315 (new_explicit_location, get_explicit_location)
1316 (get_explicit_location_const): New functions.
1317 (explicit_to_string_internal): New function; most of contents moved
1318 from canonicalize_linespec.
1319 (explicit_location_to_string): New function.
1320 (explicit_location_to_linespec): New function.
1321 (copy_event_location, delete_event_location)
1322 (event_location_to_string_const, event_location_empty_p): Handle
1324 * location.h (enum offset_relative_sign, struct line_offset): Move
1325 here from linespec.h.
1326 (enum event_location_type): Add EXPLICIT_LOCATION.
1327 (struct explicit_location): New structure.
1328 (explicit_location_to_string): Declare.
1329 (explicit_location_to_linespec): Declare.
1330 (new_explicit_location, get_explicit_locationp
1331 (get_explicit_location_const, initialize_explicit_location): Declare.
1333 2015-08-11 Keith Seitz <keiths@redhat.com>
1335 * break-catch-throw.c (re_set_exception_catchpoint): Convert
1336 linespec for stap probe to probe location.
1337 * breakpoint.c (create_longjmp_master_breakpoint)
1338 (create_exception_master_breakpoint): Likewise.
1339 (break_command_1): Remove local variable `arg_cp'.
1340 Check location type to set appropriate breakpoint ops methods.
1341 (trace_command): Likewise.
1342 * linespec.c (event_location_to_sals): Assert on probe locations.
1343 * location.c (EL_PROBE): Add macro definition.
1344 (new_probe_location, get_probe_location): New functions.
1345 (copy_event_location, delete_event_location, event_location_to_string)
1346 (string_to_event_location, event_location_empty_p): Handle probe
1348 * location.h (enum event_location_type): Add PROBE_LOCATION.
1349 (new_probe_location, get_probe_location): Declare.
1350 * probe.c (parse_probes): Assert that LOCATION is a probe location.
1351 Convert linespec into probe location.
1353 2015-08-11 Keith Seitz <keiths@redhat.com>
1355 * breakpoint.c (create_thread_event_breakpoint, init_breakpoint_sal):
1356 Convert linespec to address location.
1357 * linespec.c (canonicalize_linespec): Do not handle address
1359 (convert_address_location_to_sals): New function; contents moved
1361 (convert_linespc_to_sals): ... here.
1362 (parse_linespec): Remove address locations from linespec grammar.
1363 Remove handling of address locations.
1364 (linespec_lex_to_end): Remove handling of address linespecs.
1365 (event_location_to_sals): Handle ADDRESS_LOCATION.
1366 (linespec_expression_to_pc): Export.
1367 * linespec.h (linespec_expression_to_pc): Add declaration.
1368 * location.c (struct event_location.u) <address>: New member.
1369 (new_address_location, get_address_location): New functions.
1370 (copy_event_location, delete_event_location, event_location_to_string)
1371 (string_to_event_location, event_location_empty_p): Handle address
1373 * location.h (enum event_location_type): Add ADDRESS_LOCATION.
1374 (new_address_location, get_address_location): Declare.
1375 * python/py-finishbreakpoint.c (bpfinishpy_init): Convert linespec
1376 to address location.
1377 * spu-tdep.c (spu_catch_start): Likewise.
1379 2015-08-11 Keith Seitz <keiths@redhat.com>
1381 * ax-gdb.c: Include location.h.
1382 (agent_command_1) Use linespec location instead of address
1384 * break-catch-throw.c: Include location.h.
1385 (re_set_exception_catchpoint): Use linespec locations instead
1387 * breakpoint.c: Include location.h.
1388 (create_overlay_event_breakpoint, create_longjmp_master_breakpoint)
1389 (create_std_terminate_master_breakpoint)
1390 (create_exception_master_breakpoint, update_breakpoints_after_exec):
1391 Use linespec location instead of address string.
1392 (print_breakpoint_location): Use locations and
1393 event_location_to_string.
1394 Print extra_string for pending locations for non-MI streams.
1395 (print_one_breakpoint_location): Use locations and
1396 event_location_to_string.
1397 (init_raw_breakpoint_without_location): Initialize b->location.
1398 (create_thread_event_breakpoint): Use linespec location instead of
1400 (init_breakpoint_sal): Likewise.
1401 Only save extra_string if it is non-NULL and not the empty string.
1402 Use event_location_to_string instead of `addr_string'.
1403 Constify `p' and `endp'.
1404 Use skip_spaces_const/skip_space_const instead of non-const versions.
1405 Copy the location into the breakpoint.
1406 If LOCATION is NULL, save the breakpoint address as a linespec location
1407 instead of an address string.
1408 (create_breakpoint_sal): Change `addr_string' parameter to a struct
1409 event_location. All uses updated.
1410 (create_breakpoints_sal): Likewise for local variable `addr_string'.
1411 (parse_breakpoint_sals): Use locations instead of address strings.
1412 Remove check for empty linespec with conditional.
1414 (decode_static_tracepoint_spec): Make argument const and update
1416 (create_breakpoint): Change `arg' to a struct event_location and
1418 Remove `copy_arg' and `addr_start'.
1419 If EXTRA_STRING is empty, set it to NULL.
1420 Don't populate `canonical' for pending breakpoints.
1421 Pass `extra_string' to find_condition_and_thread.
1422 Clear `extra_string' if `rest' was NULL.
1423 Do not error with "garbage after location" if setting a dprintf
1425 Copy the location into the breakpoint instead of an address string.
1426 (break_command_1): Use string_to_event_location and pass this to
1427 create_breakpoint instead of an address string.
1428 Check against `arg_cp' for a probe linespec.
1429 (dprintf_command): Use string_to_event_location and pass this to
1430 create_breakpoint instead of an address string.
1431 Throw an exception if no format string was specified.
1432 (print_recreate_ranged_breakpoint): Use event_location_to_string
1433 instead of address strings.
1434 (break_range_command, until_break_command)
1435 (init_ada_exception_breakpoint): Use locations instead
1437 (say_where): Print out extra_string for pending locations.
1438 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
1440 (base_breakpoint_create_sals_from_location): Use struct event_location
1441 instead of address string.
1442 Remove `addr_start' and `copy_arg' parameters.
1443 (base_breakpoint_decode_location): Use struct event_location instead of
1445 (bkpt_re_set): Use locations instead of address strings.
1446 Use event_location_empty_p to check for unset location.
1447 (bkpt_print_recreate): Use event_location_to_string instead of
1449 Print out extra_string for pending locations.
1450 (bkpt_create_sals_from_location, bkpt_decode_location)
1451 (bkpt_probe_create_sals_from_location): Use struct event_location
1452 instead of address string.
1453 (bkpt_probe_decode_location): Use struct event_location instead of
1455 (tracepoint_print_recreate): Use event_location_to_string to
1456 recreate the tracepoint.
1457 (tracepoint_create_sals_from_location, tracepoint_decode_location)
1458 (tracepoint_probe_create_sals_from_location)
1459 (tracepoint_probe_decode_location): Use struct event_location
1460 instead of address string.
1461 (dprintf_print_recreate): Use event_location_to_string to recreate
1463 (dprintf_re_set): Remove check for valid/missing format string.
1464 (strace_marker_create_sals_from_location)
1465 (strace_marker_create_breakpoints_sal, strace_marker_decode_location)
1466 (update_static_tracepoint): Use struct event_location instead of
1468 (location_to_sals): Likewise.
1469 Pass `extra_string' to find_condition_and_thread.
1470 For newly resolved pending breakpoint locations, clear the location's
1471 string representation.
1472 Assert that the breakpoint's condition string is NULL when
1473 condition_not_parsed.
1474 (breakpoint_re_set_default, create_sals_from_location_default)
1475 (decode_location_default, trace_command, ftrace_command)
1476 (strace_command, create_tracepoint_from_upload): Use locations
1477 instead of address strings.
1478 * breakpoint.h (struct breakpoint_ops) <create_sals_from_location>:
1479 Use struct event_location instead of address string.
1481 <decode_location>: Likewise.
1482 (struct breakpoint) <addr_string>: Change to struct event_location
1483 and rename `location'.
1484 <addr_string_range_end>: Change to struct event_location and rename
1485 `location_range_end'.
1486 (create_breakpoint): Use struct event_location instead of address
1488 * cli/cli-cmds.c: Include location.h.
1489 (edit_command, list_command): Use locations instead of address strings.
1490 * elfread.c: Include location.h.
1491 (elf_gnu_ifunc_resolver_return_stop): Use event_location_to_string.
1492 * guile/scm-breakpoint.c: Include location.h.
1493 (bpscm_print_breakpoint_smob): Use event_location_to_string.
1494 (gdbscm_register_breakpoint): Use locations instead of address
1496 * linespec.c: Include location.h.
1497 (struct ls_parser) <stream>: Change to const char *.
1498 (PARSER_STREAM): Update.
1499 (lionespec_lexer_lex_keyword): According to find_condition_and_thread,
1500 keywords must be followed by whitespace.
1501 (canonicalize_linespec): Save a linespec location into `canonical'.
1502 Save a canonical linespec into `canonical'.
1503 (parse_linespec): Change `argptr' to const char * and rename `arg'.
1505 Update function description.
1506 (linespec_parser_new): Initialize `parser'.
1507 Update initialization of parsing stream.
1508 (event_location_to_sals): New function.
1509 (decode_line_full): Change `argptr' to a struct event_location and
1510 rename it `location'.
1511 Use locations instead of address strings.
1512 Call event_location_to_sals instead of parse_linespec.
1513 (decode_line_1): Likewise.
1514 (decode_line_with_current_source, decode_line_with_last_displayed)
1515 Use locations instead of address strings.
1516 (decode_objc): Likewise.
1517 Change `argptr' to const char * and rename `arg'.
1518 (destroy_linespec_result): Delete the linespec result's location
1519 instead of freeing the address string.
1520 * linespec.h (struct linespec_result) <addr_string>: Change to
1521 struct event_location and rename to ...
1522 <location>: ... this.
1523 (decode_line_1, decode_line_full): Change `argptr' to struct
1524 event_location. All callers updated.
1525 * mi/mi-cmd-break.c: Include language.h, location.h, and linespec.h.
1526 (mi_cmd_break_insert_1): Use locations instead of address strings.
1527 Throw an error if there was "garbage" at the end of the specified
1529 * probe.c: Include location.h.
1530 (parse_probes): Change `argptr' to struct event_location.
1531 Use event locations instead of address strings.
1532 * probe.h (parse_probes): Change `argptr' to struct event_location.
1533 * python/py-breakpoint.c: Include location.h.
1534 (bppy_get_location): Constify local variable `str'.
1535 Use event_location_to_string.
1536 (bppy_init): Use locations instead of address strings.
1537 * python/py-finishbreakpoint.c: Include location.h.
1538 (bpfinishpy_init): Remove local variable `addr_str'.
1539 Use locations instead of address strings.
1540 * python/python.c: Include location.h.
1541 (gdbpy_decode_line): Use locations instead of address strings.
1542 * remote.c: Include location.h.
1543 (remote_download_tracepoint): Use locations instead of address
1545 * spu-tdep.c: Include location.h.
1546 (spu_catch_start): Remove local variable `buf'.
1547 Use locations instead of address strings.
1548 * tracepoint.c: Include location.h.
1549 (scope_info): Use locations instead of address strings.
1550 (encode_source_string): Constify parameter `src'.
1551 * tracepoint.h (encode_source_string): Likewise.
1553 2015-08-11 Keith Seitz <keiths@redhat.com>
1555 * Makefile.in (SFILES): Add location.c.
1556 (HFILES_NO_SRCDIR): Add location.h.
1557 (COMMON_OBS): Add location.o.
1558 * linespec.c (linespec_lex_to_end): New function.
1559 * linespec.h (linespec_lex_to_end): Declare.
1560 * location.c: New file.
1561 * location.h: New file.
1563 2015-08-11 Keith Seitz <keiths@redhat.com>
1565 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
1566 Renamed to create_sals_from_location.
1567 <decode_linespec>: Renamed to decode_location.
1569 * breakpoint.c (create_sals_from_address_default): Renamed to ...
1570 (create_sals_from_location_default): ... this.
1571 (addr_string_to_sals): Renamed to ...
1572 (location_to_sals): ... this.
1573 (decode_linespec_default): Renamed to ...
1574 (decode_location_default): ... this.
1575 (base_breakpoint_create_sals_from_address): Renamed to ...
1576 (base_breakpoint_create_sals_from_location): ... this.
1577 (bkpt_create_sals_from_address): Renamed to ...
1578 (bkpt_create_sals_from_location): ... this.
1579 (bkpt_decode_linespec): Renamed to ...
1580 (bkpt_decode_location): ... this.
1581 (bkpt_probe_create_sals_from_address): Renamed to ...
1582 (bkpt_probe_create_sals_from_location): ... this.
1583 (tracepoint_create_sals_from_address): Renamed to ...
1584 (tracepoint_create_sals_from_location): ... this.
1585 (tracepoint_decode_linespec): Renamed to ...
1586 (tracepoint_decode_location): ... this.
1587 (tracepoint_probe_create_sals_from_address): Renamed to ...
1588 (tracepoint_probe_create_sals_from_location): ... this.
1589 (tracepoint_probe_decode_linespec): Renamed to ...
1590 (tracepoint_probe_decode_location): ... this.
1591 (strace_marker_create_sals_from_address): Renamed to ...
1592 (strace_marker_create_sals_from_location): ... this.
1593 (decode_linespec_default): Renamed to ...
1594 (decode_location_default): ... this.
1596 2015-08-10 Doug Evans <dje@google.com>
1597 Keith Seitz <keiths@redhat.com>
1600 * symtab.c (make_file_symbol_completion_list_1): Renamed from
1601 make_file_symbol_completion_list and made static.
1602 (make_file_symbol_completion_list): New function.
1604 2015-08-10 Joel Brobecker <brobecker@adacore.com>
1606 * infrun.c (follow_fork, displaced_step_prepare, resume): Remove
1607 trailing new-line at end of warning message.
1608 (proceed): Add i18n marker to error messages.
1610 2015-08-07 Pedro Alves <palves@redhat.com>
1612 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
1614 2015-08-07 Pedro Alves <palves@redhat.com>
1616 * s390-linux-tdep.c (is_non_branch_ril)
1617 (s390_displaced_step_copy_insn): New functions.
1618 (s390_displaced_step_fixup): Update comment.
1619 (s390_gdbarch_init): Install s390_displaced_step_copy_insn as
1620 gdbarch_displaced_step_copy_insn hook.
1622 2015-08-07 Pedro Alves <palves@redhat.com>
1624 * infrun.c (displaced_step_prepare_throw): Return -1 if
1625 gdbarch_displaced_step_copy_insn returns NULL. Update intro
1627 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
1628 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
1630 (ppc_displaced_step_copy_insn): New function.
1631 (ppc_displaced_step_fixup): Update comment.
1632 (rs6000_gdbarch_init): Install ppc_displaced_step_copy_insn as
1633 gdbarch_displaced_step_copy_insn hook.
1634 * gdbarch.sh (displaced_step_copy_insn): Document what happens on
1636 * gdbarch.h: Regenerate.
1638 2015-08-07 Pedro Alves <palves@redhat.com>
1640 * inferior.h (struct inferior) <displaced_stepping_failed>: New
1642 * infrun.c (use_displaced_stepping_now_p): New parameter 'inf'.
1643 Return false if dispaced stepping failed before.
1644 (resume): Pass the current inferior to
1645 use_displaced_stepping_now_p. Wrap displaced_step_prepare in
1646 TRY/CATCH. If we get a MEMORY_ERROR, set the inferior's
1647 displaced_stepping_failed flag, and fall back to an in-line
1650 2015-08-07 Pedro Alves <palves@redhat.com>
1652 * darwin-nat.c (darwin_stop): Rename to ...
1653 (darwin_interrupt): ... this.
1654 (_initialize_darwin_inferior): Adjust.
1655 * gnu-nat.c (gnu_stop): Delete.
1656 (gnu_target): Don't install gnu_stop.
1657 * inf-ptrace.c (inf_ptrace_stop): Rename to ...
1658 (inf_ptrace_interrupt): ... this.
1659 (inf_ptrace_target): Adjust.
1660 * infcmd.c (interrupt_target_1): Use target_interrupt instead of
1662 * linux-nat (linux_nat_stop): Rename to ...
1663 (linux_nat_interrupt): ... this.
1664 (linux_nat_stop): Reimplement.
1665 (linux_nat_add_target): Install linux_nat_interrupt.
1666 * nto-procfs.c (nto_interrupt_twice): Rename to ...
1667 (nto_handle_sigint_twice): ... this.
1668 (nto_interrupt): Rename to ...
1669 (nto_handle_sigint): ... this. Call target_interrupt instead of
1671 (procfs_wait): Adjust.
1672 (procfs_stop): Rename to ...
1673 (procfs_interrupt): ... this.
1674 (init_procfs_targets): Adjust.
1675 * procfs.c (procfs_stop): Rename to ...
1676 (procfs_interrupt): ... this.
1677 (procfs_target): Adjust.
1678 * remote-m32r-sdi.c (m32r_stop): Rename to ...
1679 (m32r_interrupt): ... this.
1680 (init_m32r_ops): Adjust.
1681 * remote-sim.c (gdbsim_stop_inferior): Rename to ...
1682 (gdbsim_interrupt_inferior): ... this.
1683 (gdbsim_stop): Rename to ...
1684 (gdbsim_interrupt): ... this.
1685 (gdbsim_cntrl_c): Adjust.
1686 (init_gdbsim_ops): Adjust.
1687 * remote.c (sync_remote_interrupt): Adjust comments.
1688 (remote_stop_as): Rename to ...
1689 (remote_interrupt_as): ... this.
1690 (remote_stop): Adjust comment.
1691 (remote_interrupt): New function.
1692 (init_remote_ops): Install remote_interrupt.
1693 * target.c (target_interrupt): New function.
1694 * target.h (struct target_ops) <to_interrupt>: New field.
1695 (target_interrupt): New declaration.
1696 * windows-nat.c (windows_stop): Rename to ...
1697 (windows_interrupt): ... this.
1698 * target-delegates.c: Regenerate.
1700 2015-08-07 Pedro Alves <palves@redhat.com>
1702 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
1703 threads" as alternative to "switching back to stepped thread".
1705 2015-08-07 Pedro Alves <palves@redhat.com>
1707 * NEWS: Mention "maint set/show target-non-stop".
1708 * breakpoint.c (update_global_location_list): Check
1709 target_is_non_stop_p instead of non_stop.
1710 * infcmd.c (attach_command_post_wait, attach_command): Likewise.
1711 * infrun.c (show_can_use_displaced_stepping)
1712 (can_use_displaced_stepping_p, start_step_over_inferior):
1714 (internal_resume_ptid): New function.
1716 (proceed): Check target_is_non_stop_p instead of non_stop. If in
1717 all-stop mode but the target is always in non-stop mode, start all
1718 the other threads that are implicitly resumed too.
1719 (for_each_just_stopped_thread, fetch_inferior_event)
1720 (adjust_pc_after_break, stop_all_threads): Check
1721 target_is_non_stop_p instead of non_stop.
1722 (handle_inferior_event): Likewise. Handle detach-fork in all-stop
1723 with the target always in non-stop mode.
1724 (handle_signal_stop) <random signal>: Check target_is_non_stop_p
1725 instead of non_stop.
1726 (switch_back_to_stepped_thread): Check target_is_non_stop_p
1727 instead of non_stop.
1728 (keep_going_stepped_thread): Use internal_resume_ptid.
1729 (stop_waiting): If in all-stop mode, and the target is in non-stop
1730 mode, stop all threads.
1731 (keep_going_pass): Likewise, when starting a new in-line step-over
1733 * linux-nat.c (get_pending_status, select_event_lwp)
1734 (linux_nat_filter_event, linux_nat_wait_1, linux_nat_wait): Check
1735 target_is_non_stop_p instead of non_stop.
1736 (linux_nat_always_non_stop_p): New function.
1737 (linux_nat_stop): Check target_is_non_stop_p instead of non_stop.
1738 (linux_nat_add_target): Install linux_nat_always_non_stop_p.
1739 * target-delegates.c: Regenerate.
1740 * target.c (target_is_non_stop_p): New function.
1741 (target_non_stop_enabled, target_non_stop_enabled_1): New globals.
1742 (maint_set_target_non_stop_command)
1743 (maint_show_target_non_stop_command): New functions.
1744 (_initilize_target): Install "maint set/show target-non-stop"
1746 * target.h (struct target_ops) <to_always_non_stop_p>: New field.
1747 (target_non_stop_enabled): New declaration.
1748 (target_is_non_stop_p): New declaration.
1750 2015-08-07 Pedro Alves <pedro@codesourcery.com>
1752 * breakpoint.c (breakpoints_should_be_inserted_now): If any thread
1753 has a pending status, return true.
1754 * gdbthread.h: Include target/waitstatus.h.
1755 (struct thread_suspend_state) <stop_reason, waitstatus_pending_p,
1756 stop_pc>: New fields.
1757 (struct thread_info) <resumed>: New field.
1758 (set_resumed): Declare.
1759 * infrun.c: Include "event-loop.h".
1760 (infrun_async_inferior_event_token, infrun_is_async): New globals.
1761 (infrun_async): New function.
1762 (clear_step_over_info): Add debug output.
1763 (displaced_step_in_progress_any_inferior): New function.
1764 (displaced_step_fixup): New returns int.
1765 (start_step_over): Handle in-line step-overs too. Assert the
1766 thread is marked resumed.
1767 (resume_cleanups): Clear the thread's resumed flag.
1768 (resume): Set the thread's resumed flag. Return early if the
1769 thread has a pending status. Allow stepping a breakpoint with no
1771 (proceed): Adjust to check 'resumed' instead of 'executing'.
1772 (clear_proceed_status_thread): If the thread has a pending status,
1773 and that status is a finished step, discard the pending status.
1774 (clear_proceed_status): Don't clear step_over_info here.
1775 (random_pending_event_thread, do_target_wait): New functions.
1776 (prepare_for_detach, wait_for_inferior, fetch_inferior_event): Use
1778 (wait_one): New function.
1779 (THREAD_STOPPED_BY): New macro.
1780 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
1781 (thread_stopped_by_hw_breakpoint): New functions.
1782 (switch_to_thread_cleanup, save_waitstatus, stop_all_threads): New
1784 (handle_inferior_event): Also call set_resumed(false) on all
1785 threads implicitly stopped by the event.
1786 (restart_threads, resumed_thread_with_pending_status): New
1788 (finish_step_over): If we were doing an in-line step-over before,
1789 and no longer are after trying to start a new step-over, restart
1790 all threads. If we have multiple threads with pending events,
1791 save the current event and go through the event loop again.
1792 (handle_signal_stop): Return early if finish_step_over returns
1794 <random signal>: If we get a signal while stepping over a
1795 breakpoint in-line in non-stop mode, restart all threads. Clear
1796 step_over_info before delivering the signal.
1797 (keep_going_stepped_thread): Use internal_error instead of
1798 gdb_assert. Mark the thread as resumed.
1799 (keep_going_pass_signal): Assert the thread isn't already resumed.
1800 If some other thread is doing an in-line step-over, defer the
1801 resume. If we just started a new in-line step-over, stop all
1802 threads. Don't clear step_over_info.
1803 (infrun_async_inferior_event_handler): New function.
1804 (_initialize_infrun): Create async event handler with
1805 infrun_async_inferior_event_handler as callback.
1806 (infrun_async): New declaration.
1807 * target.c (target_async): New function.
1808 * target.h (target_async): Declare macro and readd as function
1810 * target/waitstatus.h (enum target_stop_reason)
1811 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
1812 * thread.c (new_thread): Clear the new waitstatus field.
1813 (set_resumed): New function.
1815 2015-08-07 Pedro Alves <palves@redhat.com>
1817 * infrun.c (keep_going_stepped_thread): New function, factored out
1819 (switch_back_to_stepped_thread): ... here.
1821 2015-08-07 Pedro Alves <palves@redhat.com>
1823 * infrun.c (currently_stepping): Extend intro comment.
1824 * target.h (target_resume): Extend intro comment.
1826 2015-08-07 Pedro Alves <palves@redhat.com>
1828 * infrun.c (switch_back_to_stepped_thread): Use ecs->ptid instead
1829 of inferior_ptid. If the stepped thread vanished, return 0
1830 instead of resuming here. Use reset_ecs. Print the prev_pc and
1831 the current stop_pc in log message. Clear trap_expected if the
1832 thread advanced. Don't pass currently_stepping to
1835 2015-08-07 Pedro Alves <palves@redhat.com>
1837 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
1838 * infrun.c (struct execution_control_state): Move higher up in the
1840 (reset_ecs): New function.
1841 (start_step_over): Now returns int. Rewrite to use
1842 keep_going_pass_signal instead of manually starting a displaced step.
1843 (resume): Don't call set_running here. If displaced stepping
1844 can't start now, clear trap_expected.
1845 (find_thread_needs_step_over): Delete function.
1846 (proceed): Set up finish_thread_state_cleanup. Call set_running.
1847 If the current thread needs a step over, push it in the step-over
1848 chain. Don't set insert breakpoints nor call resume directly
1849 here. Instead rewrite to use start_step_over and
1850 keep_going_pass_signal.
1851 (finish_step_over): New function.
1852 (handle_signal_stop): Call finish_step_over instead of
1854 (switch_back_to_stepped_thread): If the event thread needs another
1855 step-over do that first. Use start_step_over.
1856 (keep_going_pass_signal): New function, factored out from ...
1857 (keep_going): ... here.
1858 (_initialize_infrun): Comment moved here.
1859 * thread.c (set_running_thread): New function.
1860 (set_running, finish_thread_state): Use set_running_thread.
1862 2015-08-07 Pedro Alves <palves@redhat.com>
1864 * gdbthread.h (struct thread_info) <step_over_prev,
1865 step_over_next>: New fields.
1866 (thread_step_over_chain_enqueue, thread_step_over_chain_remove)
1867 (thread_step_over_chain_next, thread_is_in_step_over_chain): New
1869 * infrun.c (struct displaced_step_request): Delete.
1870 (struct displaced_step_inferior_state) <step_request_queue>:
1872 (displaced_step_prepare): Assert that trap_expected is set. Use
1873 thread_step_over_chain_enqueue. Split starting a new displaced
1875 (start_step_over): ... this new function.
1876 (resume): Assert the thread isn't waiting for a step over already.
1877 (proceed): Assert the thread isn't waiting for a step over
1879 (infrun_thread_stop_requested): Adjust to remove threads from the
1880 embedded step-over chain.
1881 (handle_inferior_event) <fork/vfork>: Call start_step_over after
1882 displaced_step_fixup.
1883 (handle_signal_stop): Call start_step_over after
1884 displaced_step_fixup.
1885 * infrun.h (step_over_queue_head): New declaration.
1886 * thread.c (step_over_chain_enqueue, step_over_chain_remove)
1887 (thread_step_over_chain_next, thread_is_in_step_over_chain)
1888 (thread_step_over_chain_enqueue)
1889 (thread_step_over_chain_remove): New functions.
1890 (delete_thread_1): Remove thread from the step-over chain.
1892 2015-08-07 Pedro Alves <palves@redhat.com>
1894 * infrun.c (thread_still_needs_step_over): Rename to ...
1895 (thread_still_needs_step_over_bp): ... this.
1896 (enum step_over_what): New.
1897 (thread_still_needs_step_over): Reimplement.
1899 2015-08-07 Pedro Alves <palves@redhat.com>
1901 * remote.c (remote_wait_as): If not waiting for a stop reply,
1902 return TARGET_WAITKIND_NO_RESUMED. If TARGET_WNOHANG is
1903 requested, don't block waiting forever.
1905 2015-08-07 Pedro Alves <pedro@codesourcery.com>
1907 * infrun.c (adjust_pc_after_break): Now takes thread_info and
1908 waitstatus pointers instead of an ecs. Adjust.
1909 (handle_inferior_event): Adjust caller.
1911 2015-08-07 Pedro Alves <palves@redhat.com>
1913 * infrun.c (handle_inferior_event): If we get
1914 TARGET_WAITKIND_SIGNALLED or TARGET_WAITKIND_EXITED in non-stop
1915 mode, mark all threads of the exiting process as not-executing.
1916 (normal_stop): If we get TARGET_WAITKIND_SIGNALLED or
1917 TARGET_WAITKIND_EXITED in non-stop mode, finish all threads of the
1918 exiting process, if inferior_ptid still points at a process.
1919 * thread.c (struct current_thread_cleanup) <next>: New field.
1920 (current_thread_cleanup_chain): New global.
1921 (restore_current_thread_ptid_changed): New function.
1922 (restore_current_thread_cleanup_dtor): Remove the cleanup from the
1923 current_thread_cleanup_chain list.
1924 (make_cleanup_restore_current_thread): Add the cleanup data to the
1925 current_thread_cleanup_chain list.
1926 (_initialize_thread): Install restore_current_thread_ptid_changed
1927 as thread_ptid_changed observer.
1929 2015-08-07 Joel Brobecker <brobecker@adacore.com>
1931 * dtrace-probe.c (dtrace_process_dof): Ignore the objfile's DOF
1932 data if a DTRACE_DOF_SECT_TYPE_PROVIDER section is found to be
1933 smaller than expected.
1935 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
1937 * stack.c (get_frame_language): Moved ...
1938 * frame.c (get_frame_language): ... to here.
1939 * language.h (get_frame_language): Declaration moved to frame.h.
1940 * frame.h: Add language.h include, for language enum.
1941 (get_frame_language): Declaration moved from language.h.
1942 * language.c: Add frame.h include.
1943 * top.c: Add frame.h include.
1944 * symtab.h (struct obj_section): Declare.
1945 (struct cmd_list_element): Declare.
1947 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
1949 * language.c (show_language_command): Find selected frame before
1950 asking for the language of that frame.
1951 (set_language_command): Likewise.
1952 * language.h (get_frame_language): Add frame parameter.
1953 * stack.c (get_frame_language): Add frame parameter, assert
1954 parameter is not NULL, update comment and reindent.
1955 * top.c (check_frame_language_change): Pass the selected frame
1956 into get_frame_language.
1958 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
1960 * btrace.c (btrace_compute_ftrace_bts): Clear insn flags.
1961 (pt_btrace_insn_flags): New.
1962 (ftrace_add_pt): Call pt_btrace_insn_flags.
1963 * btrace.h (btrace_insn_flag): New.
1964 (btrace_insn) <flags>: New.
1965 * record-btrace.c (btrace_insn_history): Print insn prefix.
1966 * NEWS: Announce it.
1968 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
1970 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
1971 * configure: Regenerate.
1973 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
1975 * Makefile.in (LIBICONV): Define.
1976 (CLIBS): Add LIBICONV.
1977 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
1978 * configure: Regenerate.
1980 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
1981 Pedro Alves <palves@redhat.com>
1983 * arm-tdep.c (set_fp_model_sfunc): Add cast from integer to enum.
1984 (arm_set_abi): Likewise.
1985 * ax-general.c (ax_print): Likewise.
1986 * c-exp.y (exp : string_exp): Likewise.
1987 * compile/compile-loc2c.c (compute_stack_depth_worker): Likewise.
1988 (do_compile_dwarf_expr_to_c): Likewise.
1989 * cp-name-parser.y (demangler_special : DEMANGLER_SPECIAL start):
1991 * dwarf2expr.c (execute_stack_op): Likewise.
1992 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Likewise.
1993 (disassemble_dwarf_expression): Likewise.
1994 * dwarf2read.c (dwarf2_add_member_fn): Likewise.
1995 (read_array_order): Likewise.
1996 (abbrev_table_read_table): Likewise.
1997 (read_attribute_value): Likewise.
1998 (skip_unknown_opcode): Likewise.
1999 (dwarf_decode_macro_bytes): Likewise.
2000 (dwarf_decode_macros): Likewise.
2001 * eval.c (value_f90_subarray): Likewise.
2002 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2003 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2004 * infrun.c (handle_command): Likewise.
2005 * memory-map.c (memory_map_start_memory): Likewise.
2006 * osabi.c (set_osabi): Likewise.
2007 * parse.c (operator_length_standard): Likewise.
2008 * ppc-linux-tdep.c (ppc_canonicalize_syscall): Likewise, and use
2009 single return point.
2010 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2011 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2012 (gdbpy_lookup_global_symbol): Likewise.
2013 * record-full.c (record_full_restore): Likewise.
2014 * regcache.c (regcache_register_status): Likewise.
2015 (regcache_raw_read): Likewise.
2016 (regcache_cooked_read): Likewise.
2017 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
2018 * symtab.c (initialize_ordinary_address_classes): Likewise.
2019 * target-debug.h (target_debug_print_signals): Likewise.
2020 * utils.c (do_restore_current_language): Likewise.
2022 2015-08-06 Clem Dickey <clemd@acm.org>
2025 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2027 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2029 * complaints.c (enum complaint_series): Add newlines and remove
2030 out of date comment.
2031 (struct complaints) <series>: Change type to enum
2032 complaint_series and remove out of date comment.
2033 (symfile_complaint_hook): Use equivalent enum value
2034 ISOLATED_MESSAGE instead of 0.
2036 2015-08-06 Pedro Alves <palves@redhat.com>
2038 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2041 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
2043 * common/agent.c (symbol_list) <required>: Remove.
2045 2015-08-06 Pedro Alves <palves@redhat.com>
2047 * target/waitstatus.h (enum target_stop_reason)
2048 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2050 2015-08-05 Pedro Alves <palves@redhat.com>
2051 Joel Brobecker <brobecker@adacore.com>
2053 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
2054 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
2055 case where BS->STOP is not set.
2057 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
2059 * nat/gdb_thread_db.h: Add copyright header.
2060 Protect against multiple inclusion.
2062 2015-08-05 Yao Qi <yao.qi@linaro.org>
2064 * aarch64-linux-nat.c (get_thread_id): Remove.
2065 (debug_reg_change_callback): Call ptid_get_lwp instead of
2067 (fetch_gregs_from_thread): Likewise.
2068 (store_gregs_to_thread): Likewise.
2069 (fetch_fpregs_from_thread): Likewise.
2070 (store_fpregs_to_thread): Likewise.
2071 (aarch64_linux_get_debug_reg_capacity): Likewise.
2072 * arm-linux-nat.c (get_thread_id): Remove.
2073 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2074 * xtensa-linux-nat.c (get_thread_id): Remove.
2075 (GET_THREAD_ID): Update macro to use ptid_get_lwp.
2076 * arm-linux-nat.c (get_thread_id): Remove.
2077 (GET_THREAD_ID): Remove.
2078 (fetch_fpregs): Call ptid_get_lwp instead of GET_THREAD_ID.
2079 (store_fpregs, fetch_regs, store_regs): Likewise.
2080 (fetch_wmmx_regs, store_wmmx_regs): Likewise.
2081 (fetch_vfp_regs, store_vfp_regs): Likewise.
2082 (arm_linux_read_description): Likewise.
2083 (arm_linux_get_hwbp_cap): Likewise.
2084 * xtensa-linux-nat.c (get_thread_id): Remove.
2085 (GET_THREAD_ID): Remove.
2086 (fetch_gregs, store_gregs): Call ptid_get_lwp instead of
2089 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
2091 * python/py-linetable.c: Fix case of Linetable to LineTable
2092 in docstrings and code comments.
2093 * python/py-symtab.c: Same.
2095 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2097 * infcmd.c (signal_command): Call do_cleanups for args_chain.
2099 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2102 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
2105 2015-08-04 Pedro Alves <palves@redhat.com>
2107 * nat/gdb_thread_db.h (td_init_ftype, td_ta_new_ftype)
2108 (td_ta_map_lwp2thr_ftype, td_ta_thr_iter_ftype)
2109 (td_ta_event_addr_ftype, td_ta_set_event_ftype)
2110 (td_ta_clear_event_ftype, td_ta_event_getmsg_ftype)
2111 (td_thr_validate_ftype, td_thr_get_info_ftype)
2112 (td_thr_event_enable_ftype, td_thr_tls_get_addr_ftype)
2113 (td_thr_tlsbase_ftype, td_symbol_list_ftype, td_ta_delete_ftype):
2115 * linux-thread-db.c (struct thread_db_info): Use new typedefs.
2116 (try_thread_db_load_1): Define TDB_VERBOSE_DLSYM, TDB_DLSYM , CHK
2117 local macros and use them instead of verbose_dlsym and dlsym
2120 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
2122 * nios2-tdep.h: Include opcode/nios2.h here.
2123 (NIOS2_CDX_OPCODE_SIZE): New.
2124 (struct gdbarch_tdep): Add OP parameter to syscall_next_pc.
2125 * nios2-tdep.c: Don't include opcode/nios2.h here.
2126 (nios2_fetch_insn): For R2, try reading 2-byte instruction if
2128 (nios2_match_add, nios2_match_sub): Add cases for R2 encodings.
2129 (nios2_match_addi, nios2_match_orhi): Likewise.
2130 (nios2_match_stw, nios2_match_ldw): Likewise.
2131 (nios2_match_rdctl): Likewise.
2132 (nios2_match_stwm, nios2_match_ldwm): New.
2133 (nios2_match_branch): Add cases for R2 encodings.
2134 (nios2_match_jmpi, nios2_match_calli): Likewise.
2135 (nios2_match_jmpr, nios2_match_callr): Likewise.
2136 (nios2_match_break, nios2_match_trap): Likewise.
2137 (nios2_in_epilogue_p): Add R2 support.
2138 (nios2_analyze_prologue): Update comments. Recognize R2 CDX
2140 (nios2_breakpoint_from_pc): Handle R2 instructions.
2141 (nios2_get_next_pc): Likewise. Adjust call to
2142 tdep->syscall_next_pc.
2143 * nios2-linux-tdep.c (nios2_r1_linux_rt_sigreturn_tramp_frame):
2144 Renamed from nios2_linux_rt_sigreturn_tramp_frame. Use
2145 instruction field macros instead of literal hex values.
2146 (nios2_r2_linux_rt_sigreturn_tramp_frame): New.
2147 (nios2_linux_syscall_next_pc): Adjust signature to pass OP.
2148 Use size field from OP instead of assuming all instructions
2150 (nios2_linux_init_abi): Register appropriate unwinder for mach.
2152 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
2154 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
2155 variable warning with some compilers.
2157 2015-08-03 Yao Qi <yao.qi@linaro.org>
2159 * arm-linux-nat.c (arm_linux_get_hwbp_type): Capitalize "type"
2160 in comment. Replace "rw" with "type".
2161 (arm_linux_remove_watchpoint): Change type of "rw" to
2162 "enum target_hw_bp_type".
2164 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
2166 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
2168 * ft32-tdep.c (ft32_skip_prologue): Likewise.
2169 * moxie-tdep.c (moxie_skip_prologue): Likewise.
2170 * mt-tdep.c (mt_skip_prologue): Likewise.
2171 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2173 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
2175 * ada-exp.y (write_object_renaming): Replace struct
2176 ada_symbol_info with struct block_symbol. Update field
2177 references accordingly.
2178 (block_lookup, select_possible_type_sym): Likewise.
2179 (find_primitive_type): Likewise. Also update call to
2180 ada_lookup_symbol to extract the symbol itself.
2181 (write_var_or_type, write_name_assoc): Likewise.
2182 * ada-lang.h (struct ada_symbol_info): Remove.
2183 (ada_lookup_symbol_list): Replace struct ada_symbol_info with
2184 struct block_symbol.
2185 (ada_lookup_encoded_symbol, user_select_syms): Likewise.
2186 (ada_lookup_symbol): Return struct block_symbol instead of a
2188 * ada-lang.c (defns_collected): Replace struct ada_symbol_info
2189 with struct block_symbol.
2190 (resolve_subexp, ada_resolve_function, sort_choices,
2191 user_select_syms, is_nonfunction, add_defn_to_vec,
2192 num_defns_collected, defns_collected,
2193 symbols_are_identical_enums, remove_extra_symbols,
2194 remove_irrelevant_renamings, add_lookup_symbol_list_worker,
2195 ada_lookup_symbol_list, ada_iterate_over_symbols,
2196 ada_lookup_encoded_symbol, get_var_value): Likewise.
2197 (ada_lookup_symbol): Return a block_symbol instead of a mere
2198 symbol. Replace struct ada_symbol_info with struct
2200 (ada_lookup_symbol_nonlocal): Likewise.
2201 (standard_lookup): Make block passing explicit through
2202 lookup_symbol_in_language.
2203 * ada-tasks.c (get_tcb_types_info): Update the calls to
2204 lookup_symbol_in_language to extract the mere symbol out of the
2206 (ada_tasks_inferior_data_sniffer): Likewise.
2207 * ax-gdb.c (gen_static_field): Likewise for the call to
2209 (gen_maybe_namespace_elt): Deal with struct block_symbol from
2211 (gen_expr): Likewise.
2212 * c-exp.y: Likewise. Remove uses of block_found.
2213 (lex_one_token, classify_inner_name, c_print_token): Likewise.
2214 (classify_name): Likewise. Rename the "sym" local variable to
2216 * c-valprint.c (print_unpacked_pointer): Likewise.
2217 * compile/compile-c-symbols.c (convert_symbol_sym): Promote the
2218 "sym" parameter from struct symbol * to struct block_symbol.
2219 Use it to remove uses of block_found. Deal with struct
2220 block_symbol from lookup functions.
2221 (gcc_convert_symbol): Likewise. Update the call to
2223 * compile/compile-object-load.c (compile_object_load): Deal with
2224 struct block_symbol from lookup functions.
2225 * cp-namespace.c (cp_lookup_nested_symbol_1,
2226 cp_lookup_nested_symbol, cp_lookup_bare_symbol,
2227 cp_search_static_and_baseclasses,
2228 cp_lookup_symbol_in_namespace, cp_lookup_symbol_via_imports,
2229 cp_lookup_symbol_imports_or_template,
2230 cp_lookup_symbol_via_all_imports, cp_lookup_symbol_namespace,
2231 lookup_namespace_scope, cp_lookup_nonlocal,
2232 find_symbol_in_baseclass): Return struct block_symbol instead of
2233 mere symbols and deal with struct block_symbol from lookup
2235 * cp-support.c (inspect_type, replace_typedefs,
2236 cp_lookup_rtti_type): Deal with struct block_symbol from
2238 * cp-support.h (cp_lookup_symbol_nonlocal,
2239 cp_lookup_symbol_from_namespace,
2240 cp_lookup_symbol_imports_or_template, cp_lookup_nested_symbol):
2241 Return struct block_symbol instead of mere symbols.
2242 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
2244 Deal with struct block_symbol from lookup functions. Remove
2245 uses of block_found.
2246 * eval.c (evaluate_subexp_standard): Update call to
2247 cp_lookup_symbol_namespace.
2248 * f-exp.y: Deal with struct block_symbol from lookup functions.
2249 Remove uses of block_found.
2251 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
2252 lookup_enum, lookup_template_type, check_typedef): Deal with
2253 struct block_symbol from lookup functions.
2254 * guile/scm-frame.c (gdbscm_frame_read_var): Likewise.
2255 * guile/scm-symbol.c (gdbscm_lookup_symbol): Likewise.
2256 (gdbscm_lookup_global_symbol): Likewise.
2257 * gnu-v3-abi.c (gnuv3_get_typeid_type): Likewise.
2258 * go-exp.y: Likewise. Remove uses of block_found.
2259 (package_name_p, classify_packaged_name, classify_name):
2261 * infrun.c (insert_exception_resume_breakpoint): Likewise.
2262 * jv-exp.y (push_variable): Likewise.
2263 * jv-lang.c (java_lookup_class, get_java_object_type): Likewise.
2264 * language.c (language_bool_type): Likewise.
2265 * language.h (struct language_defn): Update
2266 la_lookup_symbol_nonlocal to return a struct block_symbol rather
2268 * linespec.c (find_label_symbols): Deal with struct block_symbol
2269 from lookup functions.
2270 * m2-exp.y: Likewise. Remove uses of block_found.
2272 * mi/mi-cmd-stack.c (list_args_or_locals): Likewise.
2273 * objc-lang.c (lookup_struct_typedef, find_imps): Likewise.
2274 * p-exp.y: Likewise. Remove uses of block_found.
2276 * p-valprint.c (pascal_val_print): Likewise.
2277 * parse.c (write_dollar_variable): Likewise. Remove uses of
2279 * parser-defs.h (struct symtoken): Turn the SYM field into a
2280 struct block_symbol.
2281 * printcmd.c (address_info): Deal with struct block_symbol from
2283 * python/py-frame.c (frapy_read_var): Likewise.
2284 * python/py-symbol.c (gdbpy_lookup_symbol,
2285 gdbpy_lookup_global_symbol): Likewise.
2286 * skip.c (skip_function_command): Likewise.
2287 * solib-darwin.c (darwin_lookup_lib_symbol): Return a struct
2288 block_symbol instead of a mere symbol.
2289 * solib-spu.c (spu_lookup_lib_symbol): Likewise.
2290 * solib-svr4.c (elf_lookup_lib_symbol): Likewise.
2291 * solib.c (solib_global_lookup): Likewise.
2292 * solist.h (solib_global_lookup): Likewise.
2293 (struct target_so_ops): Update lookup_lib_global_symbol to
2294 return a struct block_symbol rather than a mere symbol.
2295 * source.c (select_source_symtab): Deal with struct block_symbol
2296 from lookup functions.
2297 * stack.c (print_frame_args, iterate_over_block_arg_vars):
2299 * symfile.c (set_initial_language): Likewise.
2300 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
2302 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
2303 (struct symbol_cache_slot): Turn the FOUND field into a struct
2305 (block_found): Remove.
2306 (eq_symbol_entry): Update to deal with struct block_symbol in
2308 (symbol_cache_lookup): Return a struct block_symbol rather than
2310 (symbol_cache_mark_found): Add a BLOCK parameter to fill
2311 appropriately the cache slots. Update callers.
2312 (symbol_cache_dump): Update cache slots handling to the type
2314 (lookup_symbol_in_language, lookup_symbol, lookup_language_this,
2315 lookup_symbol_aux, lookup_local_symbol,
2316 lookup_symbol_in_objfile, lookup_global_symbol_from_objfile,
2317 lookup_symbol_in_objfile_symtabs,
2318 lookup_symbol_in_objfile_from_linkage_name,
2319 lookup_symbol_via_quick_fns, basic_lookup_symbol_nonlocal,
2320 lookup_symbol_in_static_block, lookup_static_symbol,
2321 lookup_global_symbol):
2322 Return a struct block_symbol rather than a mere symbol. Deal
2323 with struct block_symbol from other lookup functions. Remove
2324 uses of block_found.
2325 (lookup_symbol_in_block): Remove uses of block_found.
2326 (struct global_sym_lookup_data): Turn the RESULT field into a
2327 struct block_symbol.
2328 (lookup_symbol_global_iterator_cb): Update references to the
2330 (search_symbols): Deal with struct block_symbol from lookup
2332 * symtab.h (struct block_symbol): New structure.
2333 (block_found): Remove.
2334 (lookup_symbol_in_language, lookup_symbol,
2335 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
2336 lookup_static_symbol, lookup_global_symbol, lookup_language_this,
2337 lookup_global_symbol_from_objfile): Return a struct block_symbol
2338 rather than just a mere symbol. Update comments to remove
2339 mentions of block_found.
2340 * valops.c (find_function_in_inferior,
2341 value_struct_elt_for_reference, value_maybe_namespace_elt,
2342 value_of_this): Deal with struct block_symbol from lookup
2344 * value.c (value_static_field, value_fn_field): Likewise.
2346 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
2348 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
2351 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
2352 Pedro Alves <palves@redhat.com>
2354 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Use enum
2355 type or value instead of integer.
2356 (aarch64_linux_insert_watchpoint): Likewise.
2357 (aarch64_linux_remove_watchpoint): Likewise.
2358 * ada-lang.c (ada_op_print_tab): Likewise.
2359 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Likewise.
2360 (amd64_linux_syscall_record_common): Likewise.
2361 * arch-utils.c (target_byte_order_user): Likewise.
2362 (default_byte_order): Likewise.
2363 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Likewise.
2364 (arm_linux_get_hwbp_type): Likewise.
2365 (arm_linux_hw_watchpoint_initialize): Likewise.
2366 (arm_linux_insert_watchpoint): Likewise.
2367 * arm-linux-tdep.c (arm_canonicalize_syscall): Likewise.
2368 (arm_linux_syscall_record): Likewise.
2369 * breakpoint.c (update_watchpoint): Likewise.
2370 (breakpoint_here_p): Likewise.
2371 (bpstat_print): Likewise.
2372 (enable_breakpoint_disp): Likewise.
2373 * c-lang.c (c_op_print_tab): Likewise.
2374 * cli/cli-decode.c (add_info_alias): Likewise.
2375 * d-lang.c (d_op_print_tab): Likewise.
2376 * eval.c (evaluate_subexp_standard): Likewise.
2377 * f-exp.y (dot_ops): Likewise.
2378 (f77_keywords): Likewise.
2379 * f-lang.c (f_op_print_tab): Likewise.
2380 * go-lang.c (go_op_print_tab): Likewise.
2381 * guile/scm-breakpoint.c (gdbscm_make_breakpoint): Likewise.
2382 * guile/scm-cmd.c (gdbscm_make_command): Likewise.
2383 * guile/scm-param.c (gdbscm_make_parameter): Likewise.
2384 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Likewise.
2385 * guile/scm-string.c (struct scm_to_stringn_data): Likewise.
2386 (struct scm_from_stringn_data): Likewise.
2387 * i386-linux-tdep.c (i386_canonicalize_syscall): Likewise.
2388 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2389 (ia64_linux_remove_watchpoint): Likewise.
2390 (ia64_linux_can_use_hw_breakpoint): Likewise.
2391 * infrun.c (print_stop_event): Likewise.
2392 * jv-lang.c (java_op_print_tab): Likewise.
2393 * linux-nat.c (linux_proc_xfer_partial): Likewise.
2394 * linux-nat.h (struct lwp_info): Likewise.
2395 * linux-thread-db.c (enable_thread_event): Likewise.
2396 * m2-lang.c (m2_op_print_tab): Likewise.
2397 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Likewise.
2398 (mi_cmd_stack_list_variables): Likewise.
2399 * mi/mi-main.c (mi_cmd_trace_frame_collected): Likewise.
2400 * mi/mi-out.c (mi_table_begin): Likewise.
2401 (mi_table_header): Likewise.
2402 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Likewise.
2403 (mips_linux_insert_watchpoint): Likewise.
2404 (mips_linux_remove_watchpoint): Likewise.
2405 * nat/mips-linux-watch.c (mips_linux_watch_type_to_irw): Likewise.
2406 * nat/mips-linux-watch.h (struct mips_watchpoint): Likewise.
2407 (mips_linux_watch_type_to_irw): Likewise.
2408 * nto-procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2409 (procfs_insert_hw_watchpoint): Likewise.
2410 (procfs_remove_hw_watchpoint): Likewise.
2411 (procfs_hw_watchpoint): Likewise.
2412 (procfs_can_use_hw_breakpoint): Likewise.
2413 (procfs_remove_hw_watchpoint): Likewise.
2414 (procfs_insert_hw_watchpoint): Likewise.
2415 * p-lang.c (pascal_op_print_tab): Likewise.
2416 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Likewise.
2417 * ppc-linux-tdep.c (ppu2spu_unwind_register): Likewise.
2418 * ppc-sysv-tdep.c (get_decimal_float_return_value): Likewise.
2419 * procfs.c (procfs_can_use_hw_breakpoint): Likewise.
2420 (procfs_insert_watchpoint): Likewise.
2421 (procfs_remove_watchpoint): Likewise.
2422 * psymtab.c (recursively_search_psymtabs): Likewise.
2423 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Likewise.
2424 (m32r_insert_watchpoint): Likewise.
2425 * remote-mips.c (mips_can_use_watchpoint): Likewise.
2426 (mips_insert_watchpoint): Likewise.
2427 (mips_remove_watchpoint): Likewise.
2428 * remote.c (watchpoint_to_Z_packet): Likewise.
2429 (remote_insert_watchpoint): Likewise.
2430 (remote_remove_watchpoint): Likewise.
2431 (remote_check_watch_resources): Likewise.
2432 * s390-linux-nat.c (s390_insert_watchpoint): Likewise.
2433 (s390_remove_watchpoint): Likewise.
2434 (s390_can_use_hw_breakpoint): Likewise.
2435 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
2436 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Likewise.
2437 * target.h (struct target_ops): Likewise.
2438 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
2439 * ui-out.c (struct ui_out_hdr): Likewise.
2440 (append_header_to_list): Likewise.
2441 (get_next_header): Likewise.
2442 (verify_field): Likewise.
2443 (ui_out_begin): Likewise.
2444 (ui_out_field_int): Likewise.
2445 (ui_out_field_fmt_int): Likewise.
2446 (ui_out_field_skip): Likewise.
2447 (ui_out_field_string): Likewise.
2448 (ui_out_field_fmt): Likewise.
2449 * varobj.c (new_variable): Likewise.
2450 * x86-nat.c (x86_insert_watchpoint): Likewise.
2451 (x86_remove_watchpoint): Likewise.
2452 (x86_can_use_hw_breakpoint): Likewise.
2453 * xtensa-tdep.h (struct gdbarch_tdep): Likewise.
2454 * inflow.c (enum gdb_has_a_terminal_flag_enum): Add name to
2455 previously anonymous enumeration type..
2456 * linux-record.h (enum gdb_syscall): Add gdb_sys_no_syscall
2458 * target-debug.h (target_debug_print_enum_target_hw_bp_type): New.
2459 (target_debug_print_enum_bptype): New.
2460 * target-delegates.c: Regenerate.
2462 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2464 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
2465 already says and disallow non-stack memory writes in the prologue.
2467 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2469 * nios2-tdep.c (nios2_analyze_prologue): Update comments to
2470 reflect how current GCC emits stack overflow checks. Match
2471 both trap and break instructions for backward compatbility.
2472 Disallow other trap and break instructions in the prologue.
2474 2015-07-30 Pedro Alves <palves@redhat.com>
2477 * linux-nat.c (wait_lwp): Report to the core when thread group
2480 2015-07-30 Pedro Alves <palves@redhat.com>
2481 Simon Marchi <simon.marchi@ericsson.com>
2484 * linux-nat.c (linux_handle_extended_wait): On CLONE event, always
2485 mark the new thread as resumed. Remove STOPPING parameter.
2486 (wait_lwp): Adjust call to linux_handle_extended_wait.
2487 (linux_nat_filter_event): Adjust call to
2488 linux_handle_extended_wait.
2489 (resume_stopped_resumed_lwps): Add debug output.
2491 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
2493 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
2495 * arch-utils.h (default_fast_tracepoint_valid_at): Likewise.
2496 * breakpoint.c (check_fast_tracepoint_sals): Adjust call to
2497 gdbarch_fast_tracepoint_valid_at.
2498 * gdbarch.sh (fast_tracepoint_valid_at): Remove isize argument.
2499 * gdbarch.h: Regenerate.
2500 * gdbarch.c: Regenerate.
2501 * i386-tdep.c (i386_fast_tracepoint_valid_at): Remove isize
2502 argument. Do not set it.
2503 * remote.c (remote_download_tracepoint): Adjust call to
2504 gdbarch_fast_tracepoint_valid_at. Call gdb_insn_length to get
2505 the instruction length.
2507 2015-07-30 Yao Qi <yao.qi@linaro.org>
2509 * arm-tdep.h (enum gdb_regnum): Move it to ...
2510 * arch/arm.h: ... here. New file.
2511 * Makefile.in (HFILES_NO_SRCDIR): Add arch/arm.h.
2513 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
2515 * aarch64-tdep.c (decode_b): Rename link argument to is_bl.
2516 Change its type to int *.
2517 (decode_br): Rename link argument to is_blr. Change its type to
2519 (decode_cb): Rename op argument to is_cbnz. Change its type to
2521 (decode_tb): Rename op argument to is_tbnz. Change its type to
2522 int *. Set is_tbnz to either 1 or 0.
2523 (aarch64_analyze_prologue): Change type of is_link to int. Add
2524 new variables is_cbnz and is_tbnz. Adjust call to
2525 aarch64_decode_cb and aarch64_decode_tb.
2527 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
2529 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
2531 (mips_linux_new_thread): Likewise.
2532 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
2534 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
2536 * top.c: Include "tui/tui.h".
2537 (undo_terminal_modifications_before_exit): New static function.
2538 (quit_force): Use it.
2540 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
2542 * target.c (terminal_state): Initialize to terminal_is_ours.
2544 2015-07-29 Yao Qi <yao.qi@linaro.org>
2547 * dcache.c (dcache_read_memory_partial): Call
2548 raw_memory_xfer_partial.
2549 * target.c (raw_memory_xfer_partial): Make it non-static.
2550 * target.h (raw_memory_xfer_partial): Declare.
2552 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2554 * c-valprint.c (c_val_print_array): Consider addressable memory
2556 (c_val_print_ptr): Likewise.
2557 (c_val_print_int): Likewise.
2558 * findvar.c (read_frame_register_value): Likewise.
2559 * valarith.c (find_size_for_pointer_math): Likewise.
2560 (value_ptrdiff): Likewise.
2561 (value_subscripted_rvalue): Likewise.
2562 * valops.c (read_value_memory): Likewise (and rename variables).
2563 (value_assign): Likewise.
2564 (value_repeat): Likewise.
2565 (value_array): Likewise.
2566 (value_slice): Likewise.
2567 * valprint.c (generic_val_print_ptr): Likewise.
2568 (generic_val_print_enum): Likewise.
2569 (generic_val_print_bool): Likewise.
2570 (generic_val_print_int): Likewise.
2571 (generic_val_print_char): Likewise.
2572 (generic_val_print_float): Likewise.
2573 (generic_val_print_decfloat): Likewise.
2574 (generic_val_print_complex): Likewise.
2575 (val_print_scalar_formatted): Likewise.
2576 (val_print_array_elements): Likewise.
2577 * value.c (set_value_parent): Likewise.
2578 (value_contents_copy_raw): Likewise.
2579 (set_internalvar_component): Likewise.
2580 (value_primitive_field): Likewise.
2581 (value_fetch_lazy): Likewise.
2582 * value.h (read_value_memory): Update comment.
2584 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2586 * value.c (get_value_arch): New function.
2587 * value.h (get_value_arch): New declaration.
2589 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2591 * value.c (struct value): Update comments.
2593 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2595 * gdbtypes.c (type_length_units): New function.
2596 * gdbtypes.h (type_length_units): New declaration.
2597 (struct type) <length>: Update comment.
2599 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2601 * valprint.c (generic_val_print): Factor out complex
2602 printing code to ...
2603 (generic_val_print_complex): ... this new function.
2605 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2607 * valprint.c (generic_val_print): Factor out decfloat
2608 printing code to ...
2609 (generic_val_print_decfloat): ... this new function.
2611 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2613 * valprint.c (generic_val_print): Factor out float
2614 printing code to ...
2615 (generic_val_print_float): ... this new function.
2617 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2619 * valprint.c (generic_val_print): Factor out char
2620 printing code to ...
2621 (generic_val_print_char): ... this new function.
2623 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2625 * valprint.c (generic_val_print): Factor out integer
2626 printing code to ...
2627 (generic_val_print_int): ... this new function.
2629 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2631 * valprint.c (generic_val_print): Factor out bool
2632 printing code to ...
2633 (generic_val_print_bool): ... this new function.
2635 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2637 * valprint.c (generic_val_print): Factor out function/method
2638 printing code to ...
2639 (generic_val_print_func): ... this new function.
2641 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2643 * valprint.c (generic_val_print): Factor out flags
2644 printing code to ...
2645 (generic_val_print_flags): ... this new function.
2647 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2649 * valprint.c (generic_val_print): Factor out enum
2650 printing code to ...
2651 (generic_val_print_enum): ... this new function.
2653 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2655 * valprint.c (generic_val_print): Factor out reference
2656 printing code to ...
2657 (generic_val_print_ref): ... this new function.
2659 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2661 * valprint.c (generic_val_print): Factor out memberptr
2662 printing code to ...
2663 (generic_val_print_memberptr): ... this new function.
2665 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2667 * valprint.c (generic_val_print): Factor out pointer
2668 printing code to ...
2669 (generic_val_print_ptr): ... this new function.
2671 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2673 * valprint.c (generic_val_print): Factor out array
2674 printing code to ...
2675 (generic_val_print_array): ... this new function.
2677 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2679 * valprint.c (generic_val_print): Factor out
2680 print_unpacked_pointer code to ...
2681 (print_unpacked_pointer): ... this new function.
2683 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
2685 * event-top.c (handle_sigterm): Don't inspect
2686 target_can_async_p. Always set the quit flag and always mark
2687 the async signal handler.
2689 2015-07-27 Yao Qi <yao.qi@linaro.org>
2691 * Makefile.in (REMOTE_EXAMPLES): Remove it.
2693 2015-07-25 Kevin Buettner <kevinb@redhat.com>
2695 * remote.c (read_ptid): Return null_ptid when no thread id
2697 (remote_current_thread): Add log warning for malformed
2699 (remote_start_remote): Add log warning when current thread
2702 2015-07-24 Pedro Alves <palves@redhat.com>
2704 * s390-linux-nat.c (fetch_regs, store_regs, fetch_fpregs)
2705 (s390_stopped_by_watchpoint, s390_prepare_to_resume): Pass 0 as
2706 forth argument to ptrace PTRACE_PEEKUSR_AREA/PTRACE_POKEUSR_AREA.
2708 2015-07-24 Pedro Alves <palves@redhat.com>
2711 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
2712 is resumed, and extend the debug log.
2714 2015-07-24 Pedro Alves <palves@redhat.com>
2716 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
2718 2015-07-24 Pedro Alves <palves@redhat.com>
2720 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
2722 * alpha-linux-nat.c: Likewise.
2723 * amd64-linux-nat.c: Likewise.
2724 * arm-linux-nat.c: Likewise.
2725 * hppa-linux-nat.c: Likewise.
2726 * i386-linux-nat.c: Likewise.
2727 * ia64-linux-nat.c: Likewise.
2728 * linux-fork.c: Likewise.
2729 * linux-nat.c: Likewise.
2730 * m32r-linux-nat.c: Likewise.
2731 * m68klinux-nat.c: Likewise.
2732 * mips-linux-nat.c: Likewise.
2733 * nat/linux-btrace.c: Likewise.
2734 * nat/linux-ptrace.c: Likewise.
2735 * nat/linux-ptrace.h
2736 * nat/mips-linux-watch.c: Likewise.
2737 * nat/x86-linux-dregs.c: Likewise.
2738 * ppc-linux-nat.c: Likewise.
2739 * s390-linux-nat.c: Likewise.
2740 * spu-linux-nat.c: Likewise.
2741 * tilegx-linux-nat.c: Likewise.
2742 * x86-linux-nat.c: Likewise.
2743 * xtensa-linux-nat.c: Likewise.
2745 2015-07-24 Pedro Alves <palves@redhat.com>
2747 * ptrace.m4 (ptrace tests): Test in C++ mode. Try with 'enum
2748 __ptrace_request as first parameter type instead of int.
2749 (PTRACE_TYPE_ARG1): Define.
2750 * nat/gdb_ptrace.h [!PTRACE_TYPE_ARG5] (ptrace): Define as wrapper
2751 that casts first argument to PTRACE_TYPE_ARG1.
2752 * config.in: Regenerate.
2753 * configure: Regenerate.
2755 2015-07-24 Pedro Alves <palves@redhat.com>
2757 * gdb_ptrace.h: Move ...
2758 * nat/gdb_ptrace.h: ... here.
2759 * inf-ptrace.c: Adjust.
2761 2015-07-24 Pedro Alves <palves@redhat.com>
2763 * acinclude.m4: Include ptrace.m4.
2764 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
2765 * ptrace.m4: ... to this new file.
2767 2015-07-23 Doug Evans <dje@google.com>
2769 * dwarf2read.c (dwarf2_per_cu_data): Add comment.
2770 (load_cu): Handle dummy CUs.
2771 (dw2_do_instantiate_symtab, process_queuef): Ditto.
2772 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes): Ditto.
2774 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
2776 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
2777 documentation to say that it returns a list rather than
2779 (linetable_object_methods): Update the docstring of the
2780 "source_line" entry.
2782 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
2784 * gdbtypes.c (resolve_dynamic_array): Pass the peeled element
2785 type to the recursive call instead of the original (maybe
2786 TYPE_CODE_TYPEDEF) type.
2788 2015-07-23 Yao Qi <yao.qi@linaro.org>
2790 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): If
2791 TYPE is watchpoint, return zero if aarch64_num_wp_regs is zero.
2792 If TYPE is breakpoint, return zero if arch64_num_bp_regs is zero.
2794 2015-07-21 Yao Qi <yao.qi@linaro.org>
2796 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
2797 Move it to nat/aarch64-linux-hw-point.c.
2798 (aarch64_linux_child_post_startup_inferior): Update.
2799 * nat/aarch64-linux-hw-point.c (aarch64_linux_get_debug_reg_capacity):
2801 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
2804 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
2806 * common/btrace-common.c (btrace_data_append): Change case label.
2808 2015-07-20 Yao Qi <yao.qi@linaro.org>
2810 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
2812 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
2813 "unsigned long long".
2815 2015-07-18 Kevin Buettner <kevinb@redhat.com>
2817 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
2818 to be set for SEC_ALLOC sections too.
2820 2015-07-17 Yao Qi <yao.qi@linaro.org>
2822 * Makefile.in (HFILES_NO_SRCDIR): Add
2823 nat/aarch64-linux-hw-point.h.
2824 (aarch64-linux-hw-point.o): New rule.
2825 * nat/aarch64-linux-hw-point.h: New file.
2826 * nat/aarch64-linux-hw-point.c: New file.
2827 * aarch64-linux-nat.c: Include nat/aarch64-linux-hw-point.h.
2828 (AARCH64_HBP_MAX_NUM): Move to nat/aarch64-linux-hw-point.h.
2829 (AARCH64_HWP_MAX_NUM, AARCH64_HBP_ALIGNMENT): Likewise.
2830 (AARCH64_HWP_ALIGNMENT): Likewise.
2831 (AARCH64_HWP_MAX_LEN_PER_REG): Likewise.
2832 (AARCH64_DEBUG_NUM_SLOTS, AARCH64_DEBUG_ARCH): Likewise.
2833 (AARCH64_DEBUG_ARCH_V8, DR_MARK_ALL_CHANGED): Likewise.
2834 (DR_MARK_N_CHANGED, DR_CLEAR_CHANGED): Likewise.
2835 (DR_HAS_CHANGED, DR_N_HAS_CHANGE): Likewise.
2836 (aarch64_num_bp_regs, aarch64_num_wp_regs): Likewise.
2837 (struct aarch64_debug_reg_state): Likewise.
2838 (struct arch_lwp_info): Likewise.
2839 (aarch64_linux_set_debug_regs): Likewise.
2840 (aarch64_notify_debug_reg_change): Remove static.
2841 (aarch64_align_watchpoint): Likewise.
2842 (DR_CONTROL_ENABLED, DR_CONTROL_LENGTH): Likewise.
2843 (aarch64_watchpoint_length): Likewise.
2844 (aarch64_point_encode_ctrl_reg): Likewise
2845 (aarch64_point_is_aligned): Likewise.
2846 (aarch64_dr_state_insert_one_point): Likewise.
2847 (aarch64_dr_state_remove_one_point): Likewise.
2848 (aarch64_handle_breakpoint): Likewise.
2849 (aarch64_handle_aligned_watchpoint): Likewise.
2850 (aarch64_handle_unaligned_watchpoint): Likewise.
2851 (aarch64_handle_watchpoint): Likewise.
2852 * config/aarch64/linux.mh (NAT_FILE): Add
2853 aarch64-linux-hw-point.o.
2855 2015-07-17 Yao Qi <yao.qi@linaro.org>
2857 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
2858 state and don't call aarch64_get_debug_reg_state. All callers
2860 (aarch64_linux_insert_hw_breakpoint): Call
2861 aarch64_get_debug_reg_state earlier.
2862 (aarch64_linux_remove_hw_breakpoint): Likewise.
2863 (aarch64_handle_aligned_watchpoint): Add argument state and
2864 don't call aarch64_get_debug_reg_state. All callers update.
2865 (aarch64_handle_unaligned_watchpoint): Likewise.
2866 (aarch64_handle_watchpoint): Add argument state.
2867 (aarch64_linux_insert_watchpoint): Call aarch64_get_debug_reg_state
2869 (aarch64_linux_remove_watchpoint): Likewise.
2871 2015-07-17 Yao Qi <yao.qi@linaro.org>
2873 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
2875 (aarch64_handle_unaligned_watchpoint): Likewise.
2877 2015-07-17 Yao Qi <yao.qi@linaro.org>
2879 * aarch64-linux-nat.c (aarch64_dr_state_insert_one_point): Change
2880 argument type's type to 'enum target_hw_bp_type'.
2881 (aarch64_dr_state_remove_one_point): Likewise.
2882 (aarch64_handle_breakpoint): Likewise.
2883 (aarch64_linux_insert_hw_breakpoint): Likewise.
2884 (aarch64_linux_remove_hw_breakpoint): Likewise.
2885 (aarch64_handle_aligned_watchpoint): Likewise.
2887 2015-07-17 Yao Qi <yao.qi@linaro.org>
2889 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
2890 ptid_get_pid instead of get_thread_id.
2892 2015-07-17 Yao Qi <yao.qi@linaro.org>
2894 * remote.c (get_current_thread): Initialise ptid to null_ptid.
2895 (add_current_inferior_and_thread): Don't initialise ptid.
2897 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
2899 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
2900 unavailable if invalid.
2902 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2904 Revert the previous 6 commits:
2905 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
2906 Move gdb_regex* to common/
2907 Prepare linux_find_memory_regions_full & co. for move
2908 Move linux_find_memory_regions_full & co.
2909 gdbserver build-id attribute generator
2910 Validate symbol file using build-id
2912 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2913 Jan Kratochvil <jan.kratochvil@redhat.com>
2915 Validate symbol file using build-id.
2916 * NEWS (Changes since GDB 7.10): Add 'set validate-build-id'
2917 and 'show validate-build-id'. Add build-id attribute.
2918 * solib-darwin.c (_initialize_darwin_solib): Assign validate value.
2919 * solib-dsbt.c (_initialize_dsbt_solib): Ditto.
2920 * solib-frv.c (_initialize_frv_solib): Ditto.
2921 * solib-spu.c (set_spu_solib_ops): Ditto.
2922 * solib-svr4.c: Include rsp-low.h.
2923 (NOTE_GNU_BUILD_ID_NAME): New define.
2924 (svr4_validate): New function.
2925 (svr4_copy_library_list): Duplicate field build_id.
2926 (library_list_start_library): Parse 'build-id' attribute.
2927 (svr4_library_attributes): Add 'build-id' attribute.
2928 (_initialize_svr4_solib): Assign validate value.
2929 * solib-target.c (solib.h): Include.
2930 (_initialize_solib_target): Assign validate value.
2931 * solib.c (validate_build_id, show_validate_build_id): New.
2932 (solib_map_sections): Use ops->validate.
2933 (clear_so): Free build_id.
2934 (default_solib_validate): New function.
2935 (_initialize_solib): Add "validate-build-id".
2936 * solib.h (default_solib_validate): New declaration.
2937 * solist.h (struct so_list): New fields 'build_idsz' and 'build_id'.
2938 (target_so_ops): New field 'validate'.
2940 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2941 Jan Kratochvil <jan.kratochvil@redhat.com>
2943 gdbserver build-id attribute generator.
2944 * features/library-list-svr4.dtd (library-list-svr4): New
2945 'build-id' attribute.
2947 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2948 Jan Kratochvil <jan.kratochvil@redhat.com>
2950 Move linux_find_memory_regions_full & co.
2951 * linux-tdep.c (nat/linux-maps.h): Include.
2952 (gdb_regex.h): Remove the include.
2953 (enum filterflags, struct smaps_vmflags, read_mapping, decode_vmflags)
2954 (mapping_is_anonymous_p, dump_mapping_p): Moved to nat/linux-maps.c.
2955 (linux_find_memory_region_ftype): Moved typedef to nat/linux-maps.h.
2956 (linux_find_memory_regions_full): Moved definition to nat/linux-maps.c.
2957 * nat/linux-maps.c: Include ctype.h, target/target-utils.h, gdb_regex.h
2958 and target/target.h.
2959 (struct smaps_vmflags, read_mapping, decode_vmflags)
2960 (mapping_is_anonymous_p, dump_mapping_p): Move from linux-tdep.c.
2961 (linux_find_memory_regions_full): Move from linux-tdep.c.
2962 * nat/linux-maps.h (read_mapping): New declaration.
2963 (linux_find_memory_region_ftype, enum filterflags): Moved from
2965 (linux_find_memory_regions_full): New declaration.
2966 * target.c (target/target-utils.h): Include.
2967 (read_alloc_pread_ftype): Moved typedef to target/target-utils.h.
2968 (read_alloc, read_stralloc_func_ftype, read_stralloc): Moved
2969 definitions to target/target-utils.c.
2970 * target.h (target_fileio_read_stralloc): Move it to target/target.h.
2971 * target/target-utils.c (read_alloc, read_stralloc): Move definitions
2973 * target/target-utils.h (read_alloc_pread_ftype): New typedef.
2974 (read_alloc): New declaration.
2975 (read_stralloc_func_ftype): New typedef.
2976 (read_stralloc): New declaration.
2977 * target/target.h (target_fileio_read_stralloc): Move it from target.h.
2979 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2980 Jan Kratochvil <jan.kratochvil@redhat.com>
2982 Prepare linux_find_memory_regions_full & co. for move.
2983 * linux-tdep.c (linux_find_memory_region_ftype): Comment.
2984 (linux_find_memory_regions_full): Change signature and prepare
2985 for moving to linux-maps.
2986 (linux_find_memory_regions_data): Rename field 'obfd' to 'data'.
2987 (linux_find_memory_regions_thunk): New.
2988 (linux_find_memory_regions_thunk): Use 'data' field instead of 'obfd'.
2989 (linux_find_memory_regions_gdb): New.
2990 (linux_find_memory_regions): Rename argument 'obfd' to 'func_data'.
2991 (linux_make_mappings_corefile_notes): Use
2992 linux_find_memory_regions_gdb.
2993 * target.c (read_alloc_pread_ftype): New typedef.
2994 (target_fileio_read_alloc_1_pread): New function.
2995 (read_alloc): Refactor from target_fileio_read_alloc_1.
2996 (read_stralloc_func_ftype): New typedef.
2997 (target_fileio_read_alloc_1): New implementation. Use read_alloc.
2998 (read_stralloc): Refactored from target_fileio_read_stralloc.
2999 (target_fileio_read_stralloc): New implementation, use read_stralloc.
3001 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3003 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3005 (COMMON_OBS): Add gdb_regex.o.
3007 * common/common.m4 (GDB_AC_COMMON): Add gdb_use_included_regex,
3008 --without-included-regex and USE_INCLUDED_REGEX.
3009 * common/gdb_regex.c: New file from utils.c functions.
3010 * common/gdb_regex.h: Move it here from gdb_regex.h, update include
3011 file wrapping define name.
3012 * configure: Rebuilt.
3013 * configure.ac (gdb_use_included_regex, --without-included-regex)
3014 (USE_INCLUDED_REGEX): Move them to common/common.m4.
3015 * gdb_regex.h: Move it to common/gdb_regex.h.
3016 * utils.c: Remove include gdb_regex.h.
3017 (do_regfree_cleanup, make_regfree_cleanup, get_regcomp_error)
3018 (compile_rx_or_error): Move them to common/gdb_regex.c.
3020 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3021 Jan Kratochvil <jan.kratochvil@redhat.com>
3023 Create empty nat/linux-maps.[ch] and common/target-utils.[ch].
3024 * Makefile.in (HFILES_NO_SRCDIR); Add nat/linux-maps.h,
3025 common/target-utils.h.
3026 (COMMON_OBS): Add target-utils.o.
3027 (linux-maps.o, target-utils.o): New.
3028 * target/target-utils.c: New file.
3029 * target/target-utils.h: New file.
3030 * config/i386/linux.mh (NATDEPFILES): Add linux-maps.o.
3031 * config/i386/linux64.mh (NATDEPFILES): Ditto.
3032 * nat/linux-maps.c: New file.
3033 * nat/linux-maps.h: New file.
3035 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
3036 Pedro Alves <palves@redhat.com>
3038 * nat/linux-btrace.c (perf_event_read): Change the type of DATA_HEAD.
3039 (perf_event_read_all): Change the type of SIZE and DATA_HEAD.
3040 (perf_event_read_bts): Change the type of SIZE and READ.
3041 (linux_enable_bts): Change the type of SIZE, PAGES, DATA_SIZE,
3042 and DATA_OFFSET. Move DATA_SIZE declaration. Restrict the buffer size
3043 to UINT_MAX. Check for overflows when using DATA_HEAD from the perf
3045 (linux_enable_pt): Change the type of PAGES and SIZE. Restrict the
3046 buffer size to UINT_MAX.
3047 (linux_read_bts): Change the type of BUFFER_SIZE, SIZE, DATA_HEAD, and
3049 * nat/linux-btrace.h (struct perf_event_buffer)<size, data_head>
3050 <last_head>: Change type.
3051 * common/btrace-common.h (struct btrace_dat_pt) <size>: Change type.
3052 * common/btrace-common.c (btrace_data_append): Change the type of
3054 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
3057 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
3059 * gdbtypes.h (CHECK_TYPEDEF): Remove.
3060 * aarch64-tdep.c (aarch64_return_in_memory): Replace CHECK_TYPEDEF
3062 * ada-lang.c (decode_constrained_packed_array_type): Likewise.
3063 (ada_array_length): Likewise.
3064 (find_parallel_type_by_descriptive_type): Likewise.
3065 (ada_check_typedef): Likewise.
3066 * arm-tdep.c (arm_return_in_memory): Likewise.
3067 * ax-gdb.c (gen_trace_static_fields): Likewise.
3068 (gen_struct_ref_recursive): Likewise.
3069 * c-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3070 (variable: block COLONCOLON name): Likewise.
3071 (qualified_name: TYPENAME COLONCOLON name): Likewise.
3072 * c-lang.c (classify_type): Likewise.
3073 * c-typeprint.c (c_print_type): Likewise.
3074 (c_print_typedef): Likewise.
3075 (c_type_print_base): Likewise.
3076 * c-valprint.c (c_val_print): Likewise.
3077 * compile/compile-c-types.c (convert_type): Likewise.
3078 * compile/compile-object-load.c (get_out_value_type): Likewise.
3079 * completer.c (add_struct_fields): Likewise.
3080 (expression_completer): Likewise.
3081 * cp-namespace.c (cp_find_type_baseclass_by_name): Likewise.
3082 (cp_lookup_nested_symbol_1): Likewise.
3083 (cp_lookup_nested_symbol): Likewise.
3084 * cp-valprint.c (cp_print_value_fields): Likewise.
3085 (cp_print_static_field): Likewise.
3086 * d-valprint.c (d_val_print): Likewise.
3087 * eval.c (evaluate_subexp_standard): Likewise.
3088 (evaluate_subexp_for_sizeof): Likewise.
3089 * f-exp.y (exp : SIZEOF '(' type ')' %prec UNARY): Likewise.
3090 * f-typeprint.c (f_type_print_base): Likewise.
3091 * f-valprint.c (f_val_print): Likewise.
3092 * gdbtypes.c (get_discrete_bounds): Likewise.
3093 (create_array_type_with_stride): Likewise.
3094 (type_name_no_tag_or_error): Likewise.
3095 (lookup_struct_elt_type): Likewise.
3096 (get_unsigned_type_max): Likewise.
3097 (internal_type_vptr_fieldno): Likewise.
3098 (set_type_vptr_fieldno): Likewise.
3099 (internal_type_vptr_basetype): Likewise.
3100 (set_type_vptr_basetype): Likewise.
3101 (get_vptr_fieldno): Likewise.
3102 (is_integral_type): Likewise.
3103 (is_scalar_type): Likewise.
3104 (is_scalar_type_recursive): Likewise.
3105 (distance_to_ancestor): Likewise.
3106 (is_unique_ancestor_worker): Likewise.
3107 (check_types_equal): Likewise.
3108 * gnu-v2-abi.c (gnuv2_value_rtti_type): Likewise.
3110 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
3112 * dwarf2read.c (find_slot_in_mapped_hash): Extend language support to
3113 also test for language_d.
3114 (dwarf2_compute_name): Likewise.
3115 (read_func_scope): Likewise.
3116 (read_structure_type): Likewise.
3117 (new_symbol_full): Likewise.
3118 (determine_prefix): Likewise.
3119 (read_import_statement): Use dot as the separator for language_d.
3120 (typename_concat): Likewise, but don't prefix the D main function.
3122 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
3124 * nat/linux-namespaces.c (setns): Rename from this ...
3125 (do_setns): ... to this. Support calling setns if it exists.
3126 (mnsh_handle_setns): Call do_setns.
3128 2015-07-13 Yao Qi <yao.qi@linaro.org>
3130 * exec.c (exec_file_attach): Add period at the end of error
3133 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
3135 * tui/tui-win.c (window_name_completer): New function.
3136 (focus_completer): Call window_name_completer. All old content
3137 moved into window_name_completer.
3138 (winheight_completer): New function.
3139 (_initialize_tui_win): Rename variable. Add completer to
3140 winheight command. Update doc string on winheight.
3142 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
3144 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
3145 all nios2 mach variants.
3147 2015-07-10 Kevin Buettner <kevinb@redhat.com>
3149 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
3150 of target_read_memory.
3152 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3154 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
3156 (parse_scrolling_args): Likewise.
3158 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3160 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
3161 names in this function.
3163 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3165 * tui/tui-data.h (SRC_NAME): Convert to lower case.
3166 (CMD_NAME): Likewise.
3167 (DATA_NAME): Likewise.
3168 (DISASSEM_NAME): Likewise.
3169 * tui/tui-win.c (tui_set_focus): Window names are now lower case.
3170 (tui_set_win_height): Likewise.
3171 (parse_scrolling_args): Likewise.
3173 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
3175 * record-btrace.c (record_btrace_goto_begin)
3176 (record_btrace_goto_end, record_btrace_goto): Move call to
3177 print_stack_frame ...
3178 (record_btrace_set_replay): ... here. Set stop_pc.
3179 * record-full.c (record_full_goto_entry): Set stop_pc.
3181 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3183 * NEWS: Mention support for tracepoints on aarch64-linux.
3185 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3187 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
3189 (the_low_target): Install it.
3191 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3193 * gdb.trace/backtrace.exp: Set registers for aarch64 target.
3194 * gdb.trace/collection.exp: Likewise.
3195 * gdb.trace/mi-trace-frame-collected.exp: Likewise.
3196 * gdb.trace/mi-trace-unavailable.exp: Likewise.
3197 * gdb.trace/report.exp: Likewise.
3198 * gdb.trace/trace-break.exp: Likewise.
3199 * gdb.trace/unavailable.exp: Likewise.
3200 * gdb.trace/while-dyn.exp: Likewise.
3202 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3204 * aarch64-tdep.c: Add ax.h and ax-gdb.h includes.
3205 (aarch64_gen_return_address): New function.
3206 (aarch64_gdbarch_init): Hook it.
3208 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3210 * aarch64-tdep.c (aarch64_make_stub_cache): Set available_p and
3211 swallow NOT_AVAILABLE_ERROR.
3212 (aarch64_stub_this_id): Call frame_id_build_unavailable_stack if
3213 available_p is not set.
3214 (aarch64_stub_frame_unwind_stop_reason): New function.
3215 (aarch64_stub_unwind): Install it.
3217 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3219 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
3221 (aarch64_make_prologue_cache_1): New function, factored out from
3222 aarch64_make_prologue_cache. Do not allocate cache. Set
3224 (aarch64_make_prologue_cache): Reimplement wrapping
3225 aarch64_make_prologue_cache_1, and swallowing
3226 NOT_AVAILABLE_ERROR.
3227 (aarch64_prologue_frame_unwind_stop_reason): New function.
3228 Return UNWIND_UNAVAILABLE if available_p is not set.
3229 (aarch64_prologue_unwind): Install it.
3230 (aarch64_prologue_this_id): Move prev_pc and prev_sp limit
3231 checks into aarch64_prologue_frame_unwind_stop_reason. Call
3232 frame_id_build_unavailable_stack if available_p is not set.
3234 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3236 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
3238 (aarch64_scan_prologue): Set prev_pc.
3239 (aarch64_make_prologue_cache): Set func.
3240 (aarch64_make_stub_cache): Set prev_pc.
3241 (aarch64_prologue_this_id): Remove local variables id, pc and
3242 func. Read prev_pc and func from cache.
3243 (aarch64_stub_this_id): Read prev_pc from cache.
3245 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3247 * aarch64-tdep.c (aarch64_make_stub_cache): Update comment. New
3248 argument this_cache. Remove unused local variables reg and
3249 unwound_fp. Return early if this_cache is already set. Set
3251 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
3253 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3255 * aarch64-tdep.c (aarch64_make_prologue_cache): Update comment.
3256 New argument this_cache. Return early if this_cache is already
3257 set. Set this_cache.
3258 (aarch64_prologue_this_id): Update call to
3259 aarch64_make_prologue_cache.
3260 (aarch64_prologue_prev_register): Likewise.
3261 (aarch64_normal_frame_base): Likewise.
3263 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3265 * c-valprint.c (c_val_print): Factor out memberptr printing code
3266 from c_val_print to ...
3267 (c_val_print_memberptr): ... this new function.
3269 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3271 * c-valprint.c (c_val_print): Factor out int printing code to ...
3272 (c_val_print_int): ... this new function.
3274 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3276 * c-valprint.c (c_val_print): Factor out struct and union
3277 printing code to ...
3278 (c_val_print_struct): ... this new function ...
3279 (c_val_print_union): ... and this new function.
3281 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3283 * c-valprint.c (c_val_print): Factor out pointer printing code
3285 (c_val_print_ptr): ... this new function.
3287 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3289 * c-valprint.c (c_valprint): Factor our array printing code from
3291 (c_val_print_array): ... this new function.
3293 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3295 * c-valprint.c (c_val_print): Factor out pointer printing code
3297 (print_unpacked_pointer): ... this new function.
3299 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3301 * c-valprint.c (c_val_print): Remove an assignment to i and move
3304 2015-07-09 Yao Qi <yao.qi@linaro.org>
3306 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
3307 argument ptid. Update comments. Caller update.
3309 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3311 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
3314 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3316 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
3318 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3320 * progspace.c (delete_program_space): Add missing spaces.
3322 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3324 * inferior.c (delete_inferior_1): Rename to ...
3325 (delete_inferior): ..., remove 'silent' parameter, delete
3326 program space when unused and remove call to prune_program_spaces.
3327 Remove the old, unused, delete_inferior.
3328 (delete_inferior_silent): Remove.
3329 (prune_inferiors): Change call from delete_inferior_1 to
3330 delete_inferior and remove 'silent' parameter. Remove call to
3331 prune_program_spaces.
3332 (remove_inferior_command): Idem.
3333 * inferior.h (delete_inferior_1): Rename to...
3334 (delete_inferior): ..., remove 'silent' parameter and remove the
3335 original delete_inferior.
3336 (delete_inferior_silent): Remove.
3337 * mi/mi-main.c (mi_cmd_remove_inferior): Change call from
3338 delete_inferior_1 to delete_inferior and remove 'silent'
3340 * progspace.c (prune_program_spaces): Remove.
3341 (pspace_empty_p): Rename to...
3342 (program_space_empty_p): ... and make non-static.
3343 (delete_program_space): New.
3344 * progspace.h (prune_program_spaces): Remove declaration.
3345 (program_space_empty_p): New declaration.
3346 (delete_program_space): New declaration.
3347 * monitor.c (monitor_close): Replace call to
3348 delete_thread_silent and delete_inferior_silent with
3349 discard_all_inferiors.
3351 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
3353 * defs.h (deprecated_register_changed_hook): Remove prototype.
3354 * interps.c (clear_iterpreter_hooks): Remove reference to
3355 deprecated_register_changed_hook.
3356 * top.c (deprecated_register_changed_hook): Remove prototype.
3357 * valops.c (value_assign): Remove reference to
3358 deprecated_register_changed_hook.
3359 * tui/tui-hooks.c (tui_register_changed): Add parameter "frame".
3360 Add comment documenting the function.
3361 (tui_register_changed_observer): Define.
3362 (tui_install_hooks): Remove reference to
3363 deprecated_register_changed_hook. Set
3364 tui_register_changed_observer.
3365 (tui_remove_hooks): Remove reference to
3366 deprecated_register_changed_hook. Unset
3367 tui_register_changed_observer.
3369 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3372 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
3374 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
3377 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
3379 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3381 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
3383 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3385 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
3386 Use safe_strerror() instead of strerror().
3388 2015-07-07 Yao Qi <yao.qi@linaro.org>
3390 * features/arm-with-m-fpa-layout.xml: Set architecture to arm.
3391 * features/arm-with-m-fpa-layout.c: Regenerated.
3392 * features/arm-with-m-vfp-d16.xml: Likewise.
3393 * features/arm-with-m-vfp-d16.c: Regenerated.
3394 * features/arm-with-m.xml: Likewise.
3395 * features/arm-with-m.c: Regenerated.
3396 * features/arm-with-neon.xml: Likewise.
3397 * features/arm-with-neon.c: Regenerated.
3398 * features/arm-with-vfpv2.xml: Likewise.
3399 * features/arm-with-vfpv2.c: Regenerated.
3400 * features/arm-with-vfpv3.xml: Likewise.
3401 * features/arm-with-vfpv3.c: Regenerated.
3403 2015-07-07 Yao Qi <yao.qi@linaro.org>
3405 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
3407 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
3409 (fetch_gregs_from_thread): Call aarch32_gp_regcache_supply
3410 if target is 32-bit.
3411 (store_gregs_to_thread): Call aarch32_gp_regcache_collect
3412 if target is 32-bit.
3413 (fetch_fpregs_from_thread): Call aarch32_vfp_regcache_supply
3414 if target is 32-bit.
3415 (store_fpregs_to_thread): Call aarch32_vfp_regcache_collect
3416 if target is 32-bit.
3417 (tdesc_arm_with_vfpv3, tdesc_arm_with_neon): Declare.
3418 (aarch64_linux_read_description): Return the right target
3420 * arm-linux-nat.c (VFP_REGS_SIZE): Moved to aarch32-linux-nat.h.
3421 * config/aarch64/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3422 * configure.tgt (aarch64*-*-linux*): Add arm-tdep.o and
3425 2015-07-07 Yao Qi <yao.qi@linaro.org>
3427 * aarch32-linux-nat.c: New file.
3428 * aarch32-linux-nat.h: New file.
3429 * arm-linux-nat.c: Include aarch32-linux-nat.h.
3430 (fetch_regs): Move code to aarch32-linux-nat.c. Call
3431 aarch32_gp_regcache_supply.
3432 (store_regs): Move code to aarch32-linux-nat.c. Call
3433 aarch32_gp_regcache_collect.
3434 (fetch_vfp_regs): Move code to aarch32-linux-nat.c. Call
3435 aarch32_vfp_regcache_supply.
3436 (store_vfp_regs): Move code to aarch32-linux-nat.c. Call
3437 aarch32_vfp_regcache_collect.
3438 * config/arm/linux.mh (NATDEPFILES): Add aarch32-linux-nat.o.
3440 2015-07-07 Yao Qi <yao.qi@linaro.org>
3442 * arm-linux-nat.c (store_fpregister): Remove.
3443 (store_register): Likewise.
3444 (fetch_fpregister): Likewise.
3445 (fetch_register): Likewise.
3446 (arm_linux_store_inferior_registers): Call store_regs and
3447 store_fpregs instead.
3448 (arm_linux_fetch_inferior_registers): Call fetch_fpregs and
3451 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3453 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
3456 2015-07-06 Joel Brobecker <brobecker@adacore.com>
3458 * NEWS: Create a new section for the next release branch.
3459 Rename the section of the current branch, now that it has
3462 2015-07-06 Joel Brobecker <brobecker@adacore.com>
3464 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
3465 * version.in: Bump version to 7.10.50.DATE-cvs.
3467 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
3469 * breakpoint.c (remove_breakpoint_1): Don't handle permanent
3470 breakpoints in a special way.
3471 (remove_breakpoint): Likewise.
3472 (mark_breakpoints_out): Likewise.
3474 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3476 * doc/gdb.texinfo (TUI): Add comma after @xref.
3478 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3480 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
3481 instead of casting the structure type.
3483 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3485 * valops.c (search_struct_field): Remove OFFSET parameter.
3486 (value_cast_structs): Adjust calls to search_struct_field.
3487 (value_struct_elt): Same.
3488 (find_overload_match): Same.
3490 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3492 * value.c (value_fetch_lazy): Update comment, change return
3494 * value.h (value_fetch_lazy): Change return value to void.
3496 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3498 * tui/tui-data.c (tui_partial_win_by_name): Window name is const.
3499 (tui_win_name): Make parameter and result const.
3500 * tui/tui-data.h (tui_win_name): Make parameter and result const.
3502 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
3504 * i386-tdep.c (i386_mpx_info_bounds): Don't call error, instead
3505 use printf_unfiltered.
3506 (set_mpx_cmd): Add missing trailing space to command string
3508 (_initialize_i386_tdep): Give the "mpx" prefix command its
3511 2015-07-02 Kevin Buettner <kevinb@redhat.com>
3513 * rx-tdep.c (RX_USP_REGNUM, RX_BPC_REGNUM): New constants.
3514 (enum rx_frame_type): New.
3515 (struct rx_prologue): Add new field `frame_type'.
3516 (rx_analyze_prologue): Add `frame_type' parameter. Cache this
3517 parameter in the prologue struct. Add code for recording
3518 locations of PC and PSW for fast interrupt and exception frames.
3519 (rx_skip_prologue): Adjust call to rx_analyze_prologue.
3520 (rx_analyze_frame_prologue): Add `frame_type' parameter.
3521 (rx_frame_type): New function.
3522 (rx_frame_base): Fetch frame type and pass it to rx_analyze_prologue.
3523 (rx_frame_this_id): Rename parameter `this_prologue_cache' to
3525 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
3526 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
3527 RX_FRAME_TYPE_FAST_INTERRUPT.
3528 (normal_frame_p, exception_frame_p, rx_frame_sniffer_common)
3529 (rx_frame_sniffer, rx_exception_sniffer): New functions.
3530 (rx_frame_unwind): Use rx_frame_sniffer instead of
3531 default_frame_sniffer.
3532 (rx_frame_unwind): New unwinder.
3533 (rx_gdbarch_init): Register new unwinder.
3535 2015-07-02 Kevin Buettner <kevinb@redhat.com>
3537 * rx-tdep.c (RX_BPSW_REGNUM, RX_FPSW_REGNUM): New constants.
3538 (struct gdbarch_tdep): Add fields rx_psw_type and rx_fpsw_type.
3539 (rx_register_type): Add cases for RX_PSW_REGNUM, RX_BPSW_REGNUM,
3541 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
3543 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3545 Fix GCC false warning.
3546 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
3548 2015-07-02 Yao Qi <yao.qi@linaro.org>
3550 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
3551 typo in the debugging message.
3553 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3555 * btrace.c: Include gdbcmd.h, cli/cli-utils.h, and ctype.h.
3556 (maint_btrace_cmdlist, maint_btrace_set_cmdlist)
3557 (maint_btrace_show_cmdlist, maint_btrace_pt_set_cmdlist)
3558 (maint_btrace_pt_show_cmdlist, maint_btrace_pt_skip_pad)
3559 (btrace_maint_clear): New.
3560 (btrace_fetch, btrace_clear): Call btrace_maint_clear.
3561 (pt_print_packet, btrace_maint_decode_pt)
3562 (btrace_maint_update_pt_packets, btrace_maint_update_packets)
3563 (btrace_maint_print_packets, get_uint, get_context_size, no_chunk)
3564 (maint_btrace_packet_history_cmd)
3565 (maint_btrace_clear_packet_history_cmd, maint_btrace_clear_cmd)
3566 (maint_btrace_cmd, maint_btrace_set_cmd, maint_btrace_show_cmd)
3567 (maint_btrace_pt_set_cmd, maint_btrace_pt_show_cmd)
3568 (maint_info_btrace_cmd, _initialize_btrace): New.
3569 * btrace.h (btrace_pt_packet, btrace_pt_packet_s)
3570 (btrace_maint_packet_history, btrace_maint_info): New.
3571 (btrace_thread_info) <maint>: New.
3572 * NEWS: Announce it.
3574 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3576 * btrace.c (btrace_fetch): Append the new trace data.
3577 (btrace_clear): Clear the stored trace data.
3578 * btrace.h (btrace_thread_info) <data>: New.
3579 * common/btrace-common.h (btrace_data_clear)
3580 (btrace_data_append): New.
3581 * common/btrace-common.c (btrace_data_clear)
3582 (btrace_data_append): New.
3584 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3586 * nat/linux-btrace.c (linux_enable_bts): Check for
3587 PERF_ATTR_SIZE_VER5.
3588 Check for data_offset and data_size fields. Use them.
3590 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3592 * NEWS: Announce new commands "record btrace pt" and "record pt".
3593 Announce new options "set|show record btrace pt buffer-size".
3594 * btrace.c: Include "rsp-low.h".
3595 Include "inttypes.h".
3596 (btrace_add_pc): Add forward declaration.
3597 (pt_reclassify_insn, ftrace_add_pt, btrace_pt_readmem_callback)
3598 (pt_translate_cpu_vendor, btrace_finalize_ftrace_pt)
3599 (btrace_compute_ftrace_pt): New.
3600 (btrace_compute_ftrace): Support BTRACE_FORMAT_PT.
3601 (check_xml_btrace_version): Update version check.
3602 (parse_xml_raw, parse_xml_btrace_pt_config_cpu)
3603 (parse_xml_btrace_pt_raw, parse_xml_btrace_pt)
3604 (btrace_pt_config_cpu_attributes, btrace_pt_config_children)
3605 (btrace_pt_children): New.
3606 (btrace_children): Add support for "pt".
3607 (parse_xml_btrace_conf_pt, btrace_conf_pt_attributes): New.
3608 (btrace_conf_children): Add support for "pt".
3609 * btrace.h: Include "intel-pt.h".
3610 (btrace_pt_error): New.
3611 * common/btrace-common.c (btrace_format_string, btrace_data_fini)
3612 (btrace_data_empty): Support BTRACE_FORMAT_PT.
3613 * common/btrace-common.h (btrace_format): Add BTRACE_FORMAT_PT.
3614 (struct btrace_config_pt): New.
3615 (struct btrace_config)<pt>: New.
3616 (struct btrace_data_pt_config, struct btrace_data_pt): New.
3617 (struct btrace_data)<pt>: New.
3618 * features/btrace-conf.dtd (btrace-conf)<pt>: New.
3620 * features/btrace.dtd (btrace)<pt>: New.
3621 (pt, pt-config, cpu): New.
3622 * nat/linux-btrace.c (perf_event_read, perf_event_read_all)
3623 (perf_event_pt_event_type, kernel_supports_pt)
3624 (linux_supports_pt): New.
3625 (linux_supports_btrace): Support BTRACE_FORMAT_PT.
3626 (linux_enable_bts): Free tinfo on error.
3627 (linux_enable_pt): New.
3628 (linux_enable_btrace): Support BTRACE_FORMAT_PT.
3629 (linux_disable_pt): New.
3630 (linux_disable_btrace): Support BTRACE_FORMAT_PT.
3631 (linux_fill_btrace_pt_config, linux_read_pt): New.
3632 (linux_read_btrace): Support BTRACE_FORMAT_PT.
3633 * nat/linux-btrace.h (struct btrace_tinfo_pt): New.
3634 (struct btrace_target_info)<pt>: New.
3635 * record-btrace.c (set_record_btrace_pt_cmdlist)
3636 (show_record_btrace_pt_cmdlist): New.
3637 (record_btrace_print_pt_conf): New.
3638 (record_btrace_print_conf): Support BTRACE_FORMAT_PT.
3639 (btrace_ui_out_decode_error): Support BTRACE_FORMAT_PT.
3640 (cmd_record_btrace_pt_start): New.
3641 (cmd_record_btrace_start): Support BTRACE_FORMAT_PT.
3642 (cmd_set_record_btrace_pt, cmd_show_record_btrace_pt): New.
3643 (_initialize_record_btrace): Add new commands.
3644 * remote.c (PACKET_Qbtrace_pt, PACKET_Qbtrace_conf_pt_size): New.
3645 (remote_protocol_features): Add "Qbtrace:pt".
3646 Add "Qbtrace-conf:pt:size".
3647 (remote_supports_btrace): Support BTRACE_FORMAT_PT.
3648 (btrace_sync_conf): Support PACKET_Qbtrace_conf_pt_size.
3649 (remote_enable_btrace): Support BTRACE_FORMAT_PT.
3650 (_initialize_remote): Add new commands.
3652 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
3654 * configure.ac: check for libipt
3655 * configure: Regenerate.
3656 * config.in: Regenerate.
3657 * Makefile.in (LIBIPT): New.
3658 (CLIBS): Add $LIBIPT.
3659 * NEWS: document new configure options
3661 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3663 * compile/compile-object-load.c (compile_object_load): Replace debug
3664 message "lookup undefined ELF symbol" by 3 more specific messages.
3666 2015-07-01 Kevin Buettner <kevinb@redhat.com>
3668 * rl78-tdep.c (struct gdbarch_tdep): Add new field, rl78_psw_type.
3669 (rl78_register_type): Add case for RL78_PSW_REGNUM.
3670 (rl78_gdbarch_init): Initialize rl78_psw_type.
3672 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
3674 * tui/tui-hooks.c (tui_refresh_frame_and_register_information):
3675 Update commentary. Always refresh the registers when frame
3676 information has changed.
3677 * tui/tui-stack.c (tui_show_frame_info): Update commentary.
3678 Change return type to int. Return 1 if frame information has
3679 changed, 0 otherwise.
3680 (tui_before_prompt): Update commentary.
3681 * tui/tui-stack.h (tui_show_frame_info): Change return type to
3684 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3687 * frame.c (select_frame): Remove reference to
3688 deprecated_selected_frame_level_changed_hook.
3689 * frame.h (deprecated_selected_frame_level_changed_hook): Remove
3691 * stack.c (deprecated_selected_frame_level_changed_hook):
3693 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
3695 (tui_refresh_frame_and_register_information): ... this. Bail
3696 out if there is no stack. Don't update register information
3697 unless registers_too_p is true.
3698 (tui_print_frame_info_listing_hook): Rename to ...
3699 (tui_dummy_print_frame_info_listing_hook): ... this.
3700 (tui_before_prompt): New function.
3701 (tui_normal_stop): New function.
3702 (tui_before_prompt_observer): New observer.
3703 (tui_normal_stop_observer): New observer.
3704 (tui_install_hooks): Set
3705 deprecated_print_frame_info_listing_hook to
3706 tui_dummy_print_frame_info_listing_hook. Register
3707 tui_before_prompt_observer to call tui_before_prompt and
3708 tui_normal_stop_observer to call tui_normal_stop. Remove
3709 reference to deprecated_selected_frame_level_changed_hook.
3710 (tui_remove_hooks): Detach and unset tui_before_prompt_observer
3711 and tui_normal_stop_observer. Remove reference to
3712 deprecated_selected_frame_level_changed_hook.
3714 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3717 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
3718 return an int instead of void. Return whether the locator
3720 (tui_show_frame_info): If the locator info has not changed, then
3721 bail out early to avoid refreshing the windows.
3723 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3725 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
3726 LOCATOR_WIN to tui_alloc_content.
3728 2015-06-30 Yao Qi <yao.qi@linaro.org>
3731 * arm-tdep.c (arm_get_next_pc_raw): Break for media
3734 2015-06-29 Kevin Buettner <kevinb@redhat.com>
3736 * rx-tdep.c (RX_PSW_REGNUM): New enum constant.
3737 (rx_dwarf_reg_to_regnum): New function.
3738 (rx_gdbarch_init): Register rx_dwarf_reg_to_regnum. Use dwarf2
3741 2015-06-29 Pedro Alves <palves@redhat.com>
3744 * infcall.c (run_inferior_call): On infcall success, if the thread
3745 was marked stopped before, reset it back to stopped.
3746 * infrun.c (resume): Don't suppress the set_running calls when
3748 (normal_stop): Only discard the finish_thread_state cleanup if the
3751 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
3753 * MAINTAINERS (Write After Approval): Update my email address.
3755 2015-06-26 Keith Seitz <keiths@redhat.com>
3756 Doug Evans <dje@google.com>
3759 * block.c (block_lookup_symbol): For non-function blocks,
3760 continue to search for a symbol with an exact domain match
3761 Otherwise, return any previously found "best domain" symbol.
3762 (block_lookup_symbol_primary): Likewise.
3764 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
3766 * NEWS: Mention the new option "history remove-duplicates".
3767 * top.c (history_remove_duplicates): New static variable.
3768 (show_history_remove_duplicates): New static function.
3769 (gdb_add_history): Conditionally remove duplicate history
3771 (init_main): Add "history remove-duplicates" option.
3773 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
3775 * tui/tui-win.c (focus_completer): New static function.
3776 (_initialize_tui_win): Set the completion function of the
3777 "focus" command to focus_completer.
3779 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3781 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
3783 * symtab.c (find_function_start_sal): Likewise.
3785 2015-06-25 Gary Benson <gbenson@redhat.com>
3787 * solib.c (solib_find_1): Set local variable sysroot to NULL if
3788 it is the empty string after trailing slashes have been stripped.
3790 2015-06-25 Gary Benson <gbenson@redhat.com>
3792 * exec.c (exec_file_locate_attach): Remove gdb_sysroot NULL check.
3793 * infrun.c (follow_exec): Likewise.
3794 * remote.c (remote_filesystem_is_local): Likewise.
3795 * solib.c (solib_find_1): Likewise.
3797 2015-06-24 Keith Seitz <keiths@redhat.com>
3799 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
3800 return value from lrealpath.
3802 2015-06-24 Mike Frysinger <vapier@gentoo.org>
3804 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
3806 2015-06-24 Mike Frysinger <vapier@gentoo.org>
3808 * remote-sim.c: Include gdb_bfd.h.
3809 (gdbsim_open): Declare new local sysroot pointing to gdb_sysroot.
3810 Skip TARGET_SYSROOT_PREFIX in gdb_sysroot when it is active.
3812 2015-06-24 Yao Qi <yao.qi@linaro.org>
3814 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Don't call
3815 set_gdbarch_get_siginfo_type.
3816 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Likewise.
3817 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
3818 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
3819 * m68klinux-tdep.c (m68k_linux_init_abi): Likewise.
3820 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
3821 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
3822 * tilegx-linux-tdep.c (tilegx_linux_init_abi): Likewise.
3823 * linux-tdep.c (linux_get_siginfo_type): Change it to static.
3824 (linux_init_abi): Call set_gdbarch_get_siginfo_type.
3825 * linux-tdep.h (linux_get_siginfo_type): Remove the declaration.
3827 2015-06-24 Gary Benson <gbenson@redhat.com>
3829 * common/buffer.c (stdint.h): Do not include.
3830 * common/print-utils.c (stdint.h): Likewise.
3831 * compile/compile-c-symbols.c (gdb_assert.h): Likewise.
3832 * compile/compile-c-types.c (gdb_assert.h): Likewise.
3833 * ft32-tdep.c (gdb_assert.h): Likewise.
3834 * guile/scm-utils.c (stdint.h): Likewise.
3835 * i386-linux-tdep.c (stdint.h): Likewise.
3836 * i386-tdep.c (stdint.h): Likewise.
3837 * nat/linux-btrace.c (stdint.h): Likewise.
3838 * nat/linux-btrace.h (stdint.h): Likewise.
3839 * nat/linux-ptrace.c (stdint.h): Likewise.
3840 * nat/mips-linux-watch.h (stdint.h): Likewise.
3841 * ppc-linux-nat.c (stdint.h): Likewise.
3842 * python/python-internal.h (stdint.h): Likewise.
3843 * stub-termcap.c (stdlib.h): Likewise.
3844 * target/target.h (stdint.h): Likewise.
3845 * xtensa-linux-nat.c (stdint.h): Likewise.
3847 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
3849 * top.c (init_history): Look at errno after calling strtol to
3850 properly map large GDBHISTSIZE values to infinity.
3852 2015-06-23 Doug Evans <dje@google.com>
3854 * inferior.h (struct inferior_suspend_state): Delete, unused.
3855 All references deleted.
3857 2015-06-23 Mike Frysinger <vapier@gentoo.org>
3859 * microblaze-tdep.c (microblaze_push_dummy_code): Delete.
3860 (microblaze_push_dummy_call): Likewise.
3861 (microblaze_gdbarch_init): Delete calls to set_gdbarch_push_dummy_code
3862 and set_gdbarch_push_dummy_call.
3864 2015-06-23 Yao Qi <yao.qi@linaro.org>
3866 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers):
3867 Check whether have_ptrace_getregset is TRIBOOL_TRUE explicitly.
3868 (amd64_linux_store_inferior_registers): Likewise.
3869 * arm-linux-nat.c (fetch_fpregister): Likewise.
3870 (fetch_fpregs, store_fpregister): Likewise.
3871 (store_fpregister, store_fpregs): Likewise.
3872 (fetch_register, fetch_regs): Likewise.
3873 (store_register, store_regs): Likewise.
3874 (fetch_vfp_regs, store_vfp_regs): Likewise.
3875 (arm_linux_read_description): Check have_ptrace_getregset is
3876 TRIBOOL_UNKNOWN. Set have_ptrace_getregset to TRIBOOL_TRUE
3878 * i386-linux-nat.c (fetch_xstateregs): Check
3879 have_ptrace_getregset is not TRIBOOL_TRUE.
3880 (store_xstateregs): Likewise.
3881 * linux-nat.c (have_ptrace_getregset): Change its type to
3883 * linux-nat.h (tribool): New enum.
3884 * x86-linux-nat.c (x86_linux_read_description): Use enum tribool.
3885 Check whether have_ptrace_getregset is TRIBOOL_TRUE.
3887 2015-06-19 Doug Evans <dje@google.com>
3889 * NEWS: Mention Sun's version of stabs is no longer supported.
3890 * elfread.c (free_elfinfo): Delete. All uses updated.
3891 (elfstab_offset_sections): Delete. All uses updated.
3892 * gdb-stabs.h (stab_section_info): Delete. All uses updated.
3893 * psympriv.h (partial_symtab) <section_offsets>: Delete.
3895 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
3896 All callers updated.
3898 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
3900 * common/rsp-low.c (needs_escaping): New.
3901 (remote_escape_output): Add unit_size parameter. Refactor to
3902 support multi-byte addressable units. Rename parameters.
3903 * common/rsp-low.h (remote_escape_output): Add unit_size
3904 parameter and rename others. Update doc.
3905 * remote.c (align_for_efficient_write): New.
3906 (remote_write_bytes_aux): Add unit_size parameter and use it.
3907 Rename some variables. Update doc.
3908 (remote_xfer_partial): Get unit size and use it.
3909 (remote_read_bytes_1): Add unit_size parameter and use it.
3910 Rename some variables. Update doc.
3911 (remote_write_bytes): Same.
3912 (remote_xfer_live_readonly_partial): Same.
3913 (remote_read_bytes): Same.
3914 (remote_flash_write): Update call to remote_write_bytes_aux.
3915 (remote_write_qxfer): Update call to remote_escape_output.
3916 (remote_search_memory): Same.
3917 (remote_hostio_pwrite): Same.
3919 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
3921 * breakpoint.c (add_location_to_breakpoint): Don't mark permanent
3922 locations as inserted.
3923 Update and expand comment about permanent locations.
3924 (bp_loc_is_permanent): Don't return 0 for bp_call_dummy.
3925 Move comment to add_location_to_breakpoint.
3926 (update_global_location_list): Don't error out if a permanent
3927 breakpoint is not marked inserted.
3928 Don't error out if a non-permanent breakpoint location is inserted on
3929 top of a permanent breakpoint.
3931 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
3933 * breakpoint.c (make_breakpoint_permanent): Remove unused
3935 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
3937 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
3940 * NEWS: Mention new GDBHISTSIZE behavior.
3941 * top.c (init_history): For null or out-of-range GDBHISTSIZE,
3942 set history size to unlimited. Ignore non-numeric GDBHISTSIZE.
3944 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
3946 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
3947 * top.c (init_history): Read from GDBHISTSIZE instead of
3949 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
3951 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
3953 * top.c (gdb_safe_append_history): Do not call
3954 history_truncate_file if the history is not stifled.
3956 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
3958 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
3959 * syscalls/s390x-linux.xml: Likewise.
3961 2015-06-16 Michael Eager <eager@eagercon.com>
3963 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
3965 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
3967 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Call
3968 target_terminal_ours_for_output() before calling
3969 tui_show_frame_info(), and restore the original terminal
3970 settings afterwards.
3972 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
3974 * arm-linux-nat.c: Include nat/linux-ptrace.h.
3976 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
3978 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
3980 (mi_cmd_data_write_memory_bytes): Same.
3982 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
3984 * corefile.c (write_memory): Update doc.
3985 * gdbcore.h (write_memory): Same.
3987 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3989 * linux-tdep.c (enum filterflags): Make it from anonymous enum.
3990 (dump_mapping_p): Use it for parameter filterflags.
3991 (linux_find_memory_regions_full): Use it for variable filterflags.
3993 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
3994 Jan Kratochvil <jan.kratochvil@redhat.com>
3996 Merge multiple hex conversions.
3997 * monitor.c: Include rsp-low.h.
3998 (fromhex): Remove definition.
4000 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4001 Jan Kratochvil <jan.kratochvil@redhat.com>
4003 Move utility functions to common/.
4004 * cli/cli-utils.c (skip_spaces, skip_spaces_const, skip_to_space_const):
4005 Move defs to common/common-utils.c.
4006 * cli/cli-utils.h (skip_spaces, skip_spaces_const, skip_to_space)
4007 (skip_to_space_const): Move decls to common/common-utils.h.
4008 * common/common-defs.h: Move include of common-types.h before
4010 * common/common-utils.c: Include host-defs.h and ctype.h.
4011 (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int, strtoulst): Move
4013 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
4015 * common/common-utils.h (strtoulst): Move decl from utils.h.
4016 (skip_spaces, skip_spaces_const, skip_to_space, skip_to_space_const):
4017 Move from cli/cli-utils.h.
4018 * common/host-defs.h: Include limits.h.
4019 (TARGET_CHAR_BIT, HOST_CHAR_BIT): Moved from defs.h.
4020 (skip_spaces, skip_spaces_const): Move decls from cli/cli-utils.h.
4021 * defs.h (TARGET_CHAR_BIT, HOST_CHAR_BIT): Move to
4022 common/common-utils.h.
4023 * utils.c (HIGH_BYTE_POSN, is_digit_in_base, digit_to_int)
4024 (strtoulst): Move to common/common-utils.c.
4025 * utils.h (strtoulst): Moved decl to common/common-utils.h.
4027 2015-06-15 Yao Qi <yao.qi@linaro.org>
4029 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4031 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
4033 * build-id.c: Don't include elf-bfd.h.
4034 (build_id_bfd_get): Use bfd_build_id.
4035 (build_id_verify): Ditto.
4036 * build-id.h: Ditto.
4037 (find_separate_debug_file_by_buildid): Ditto.
4038 * python/py-objfile.c: Don't include elf-bfd.h.
4039 (objfpy_get_build_id) Use bfd_build_id.
4040 (objfpy_build_id_matches, objfpy_lookup_objfile_by_build_id): Ditto.
4041 * coffread.c: Include build-id.h.
4042 (coff_symfile_read): Try find_separate_debug_file_by_buildid.
4044 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4046 * windows-nat.c (do_windows_fetch_inferior_registers)
4047 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
4048 conditional with __CYGWIN__.
4050 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
4052 * completer.c: Add arch-utils.h include.
4053 (enum reg_completer_targets): New enum.
4054 (reg_or_group_completer_1): New function containing old
4055 reg_or_group_completer, add and use new parameter to control what
4056 is completed on. Use get_current_arch rather than architecture of
4057 currently selected frame.
4058 (reg_or_group_completer): Call new reg_or_group_completer_1.
4059 (reggroup_completer): Call new reg_or_group_completer_1.
4060 * completer.h (reggroup_completer): Add declaration.
4061 * tui/tui-regs.c: Add 'completer.h' include.
4062 (tui_reg_next_command): Renamed to...
4063 (tui_reg_next): ...this. Adjust parameters and return rather than
4065 (tui_reg_prev_command): Renamed to...
4066 (tui_reg_prev): ...this. Adjust parameters and return rather than
4068 (tui_reg_float_command): Delete.
4069 (tui_reg_general_command): Delete.
4070 (tui_reg_system_command): Delete.
4071 (tui_reg_command): Rewrite to perform switching of register group.
4073 (tuireglist): Remove.
4074 (tui_reggroup_completer): New function.
4075 (_initialize_tui_regs): Remove 'tui reg' sub-commands, update
4076 creation of 'tui reg' command.
4077 * NEWS: Add comment about 'tui reg' changes.
4079 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4081 * target.c (target_read): Consider addressable unit size when
4082 reading from a memory object.
4083 (read_memory_robust): Same.
4084 (read_whatever_is_readable): Same.
4085 (target_write_with_progress): Consider addressable unit size
4086 when writing to a memory object.
4087 * target.h (target_read): Update documentation.
4088 (target_write): Add documentation.
4090 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4092 * arch-utils.h (default_addressable_memory_unit_size): New.
4093 * arch-utils.c (default_addressable_memory_unit_size): New.
4094 * gdbarch.sh (addressable_memory_unit_size): New.
4095 * gdbarch.h: Re-generate.
4096 * gdbarch.c: Re-generate.
4098 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4100 * target.c (target_read): Rename variables and use
4102 (target_read_with_progress): Same.
4103 (read_memory_robust): Constify parameters and rename
4105 (read_whatever_is_readable): Constify parameters,
4106 rename variables, adjust formatting.
4107 * target.h (read_memory_robust): Constify parameters.
4109 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
4111 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value_base): Handle short
4112 synthetic (non-AltiVec) vector types.
4113 (ppc64_sysv_abi_return_value): Likewise.
4115 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
4117 PR breakpoints/16465
4118 * breakpoint.c (create_breakpoint): Save extra_string for
4119 pending breakpoints.
4121 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4123 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
4124 and bt_mask to CORE_ADDR.
4126 2015-06-11 Gary Benson <gbenson@redhat.com>
4128 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
4129 (mnsh_recv_message): Likewise.
4131 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
4133 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
4134 long long int and plongest instead of %ll.
4136 2015-06-11 Gary Benson <gbenson@redhat.com>
4138 * nat/linux-namespaces.c (gdb_wait.h): New include.
4139 (sys/wait.h): Do not include.
4141 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
4143 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
4144 end_sequence is true.
4146 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4149 * solib-target.c (library_list_start_list): Use explicit NULL
4152 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4154 * solib-target.c (library_list_start_list): Do not dereference
4155 variable version in its initialization. Make the VERSION check handle
4157 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
4159 2015-06-10 Gary Benson <gbenson@redhat.com>
4161 * NEWS: Announce support for direct access of executable and
4162 shared library files when attaching to inferiors in containers
4163 on GNU/Linux systems.
4165 2015-06-10 Gary Benson <gbenson@redhat.com>
4167 * remote.c (struct remote_state) <fs_pid>: New field.
4168 (new_remote_state): Initialize the above.
4169 (PACKET_vFile_setfs): New enum value.
4170 (remote_hostio_set_filesystem): New function.
4171 (remote_hostio_open): Call the above.
4172 (remote_hostio_unlink): Likewise.
4173 (remote_hostio_readlink): Likewise.
4174 (_initialize_remote): Register new "set/show remote
4175 hostio-setfs-packet" command.
4176 * NEWS: Announce new vFile:setfs packet.
4178 2015-06-10 Gary Benson <gbenson@redhat.com>
4180 * linux-nat.c (nat/linux-namespaces.h): New include.
4181 (fileio.h): Likewise.
4182 (linux_nat_filesystem_is_local): New function.
4183 (linux_nat_fileio_pid_of): Likewise.
4184 (linux_nat_fileio_open): Likewise.
4185 (linux_nat_fileio_readlink): Likewise.
4186 (linux_nat_fileio_unlink): Likewise.
4187 (linux_nat_add_target): Initialize to_filesystem_is_local,
4188 to_fileio_open, to_fileio_readlink and to_fileio_unlink.
4189 (_initialize_linux_nat): New "set/show debug linux-namespaces"
4191 * NEWS: Mention new "set/show debug linux-namespaces" commands.
4193 2015-06-10 Gary Benson <gbenson@redhat.com>
4195 * target.h (struct inferior): New forward declaration.
4196 (struct target_ops) <to_filesystem_is_local>: Update comment.
4197 (struct target_ops) <to_fileio_open>: New argument inf.
4198 Update comment. All implementations updated.
4199 (struct target_ops) <to_fileio_unlink>: Likewise.
4200 (struct target_ops) <to_fileio_readlink>: Likewise.
4201 (target_filesystem_is_local): Update comment.
4202 (target_fileio_open): New argument inf. Update comment.
4203 (target_fileio_unlink): Likewise.
4204 (target_fileio_readlink): Likewise.
4205 (target_fileio_read_alloc): Likewise.
4206 (target_fileio_read_stralloc): Likewise.
4207 * target.c (target_fileio_open): New argument inf.
4208 Pass inf to implementation. Update debug printing.
4209 (target_fileio_unlink): Likewise.
4210 (target_fileio_readlink): Likewise.
4211 (target_fileio_read_alloc_1): New argument inf. Pass inf
4212 to target_fileio_open.
4213 (target_fileio_read_alloc): New argument inf. Pass inf to
4214 target_fileio_read_alloc_1.
4215 (target_fileio_read_stralloc): Likewise.
4216 * gdb_bfd.c (inferior.h): New include.
4217 (gdb_bfd_iovec_fileio_open): Replace unused "open_closure"
4218 argument with new argument "inferior". Pass inferior to
4220 (gdb_bfd_open): Supply inferior argument to
4221 gdb_bfd_iovec_fileio_open.
4222 * linux-tdep.c (linux_info_proc): Supply inf argument to
4223 relevant target_fileio calls.
4224 (linux_find_memory_regions_full): Likewise.
4225 (linux_fill_prpsinfo): Likewise.
4226 * remote.c (remote_filesystem_is_local): Supply inf
4227 argument to remote_hostio_open.
4228 (remote_file_put): Likewise.
4229 (remote_file_get): Likewise.
4230 (remote_file_delete): Supply inf argument to
4231 remote_hostio_unlink.
4233 2015-06-10 Gary Benson <gbenson@redhat.com>
4235 * inf-child.c (inf_child_fileio_open): Replace comment.
4236 (inf_child_fileio_pwrite): Likewise.
4237 (inf_child_fileio_pread): Likewise.
4238 (inf_child_fileio_fstat): Insert blank line before comment.
4239 (inf_child_fileio_close): Replace comment.
4240 (inf_child_fileio_unlink): Likewise.
4241 (inf_child_fileio_readlink): Likewise.
4242 * remote.c (remote_hostio_open): Likewise.
4243 (remote_hostio_pread): Likewise.
4244 (remote_hostio_pwrite): Likewise.
4245 (remote_hostio_close): Likewise.
4246 (remote_hostio_unlink): Likewise.
4247 (remote_hostio_readlink): Likewise.
4248 (remote_hostio_fstat): Likewise.
4249 (remote_filesystem_is_local): Likewise.
4250 * target.c (target_fileio_open): Likewise.
4251 (target_fileio_pwrite): Likewise.
4252 (target_fileio_pread): Likewise.
4253 (target_fileio_fstat): Insert blank line before comment.
4254 (target_fileio_close): Replace comment.
4255 (target_fileio_unlink): Likewise.
4256 (target_fileio_readlink): Likewise.
4257 (target_fileio_read_alloc): Likewise.
4258 (target_fileio_read_stralloc): Likewise.
4260 2015-06-10 Gary Benson <gbenson@redhat.com>
4262 * linux-thread-db.c (nat/linux-namespaces.h): New include.
4263 (check_pid_namespace_match): Use linux_ns_same rather than
4264 linux_proc_pid_get_ns to spot PID namespace mismatches.
4265 * nat/linux-procfs.h (linux_proc_pid_get_ns): Remove.
4266 * nat/linux-procfs.c (linux_proc_pid_get_ns): Likewise.
4268 2015-06-10 Gary Benson <gbenson@redhat.com>
4270 * configure.ac (AC_CHECK_FUNCS): Add setns.
4271 * config.in: Regenerate.
4272 * configure: Likewise.
4273 * nat/linux-namespaces.h: New file.
4274 * nat/linux-namespaces.c: Likewise.
4275 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-namespaces.h.
4276 (linux-namespaces.o): New rule.
4277 * config/aarch64/linux.mh (NATDEPFILES): Add linux-namespaces.o.
4278 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
4279 * config/arm/linux.mh (NATDEPFILES): Likewise.
4280 * config/i386/linux.mh (NATDEPFILES): Likewise.
4281 * config/i386/linux64.mh (NATDEPFILES): Likewise.
4282 * config/ia64/linux.mh (NATDEPFILES): Likewise.
4283 * config/m32r/linux.mh (NATDEPFILES): Likewise.
4284 * config/m68k/linux.mh (NATDEPFILES): Likewise.
4285 * config/mips/linux.mh (NATDEPFILES): Likewise.
4286 * config/pa/linux.mh (NATDEPFILES): Likewise.
4287 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
4288 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
4289 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
4290 * config/s390/linux.mh (NATDEPFILES): Likewise.
4291 * config/sparc/linux.mh (NATDEPFILES): Likewise.
4292 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
4293 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
4294 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
4296 2015-06-10 Gary Benson <gbenson@redhat.com>
4298 * utils.h (make_cleanup_close): Moved to common/filestuff.h.
4299 * utils.c (do_close_cleanup): Moved to common/filestuff.c.
4300 (make_cleanup_close): Likewise.
4301 * common/filestuff.h (make_cleanup_close): Moved from utils.h.
4302 * common/filestuff.c (do_close_cleanup): Moved from utils.c.
4303 (make_cleanup_close): Likewise.
4305 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4307 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
4308 from SuspendThread().
4310 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4312 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
4313 from OutputDebugString.
4315 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4316 Mircea Gherzan <mircea.gherzan@intel.com>
4318 * i386-tdep.c (MPX_BASE_MASK, MPX_BD_MASK, MPX_BT_MASK, MPX_BD_MASK_32,
4319 MPX_BT_MASK_32): New macros.
4320 (i386_mpx_set_bounds): New function that implements
4321 the command "set-mpx-bound".
4322 (i386_mpx_enabled): Helper function to test MPX availability.
4323 (i386_mpx_bd_base): Helper function to calculate the base directory
4325 (i386_mpx_get_bt_entry): Helper function to access a bound
4327 (i386_mpx_print_bounds): Effectively display bound information.
4328 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
4330 (_initialize_i386_tdep):
4331 Add "bound" to the commands "show mpx" and "set mpx" commands.
4332 (mpx_set_cmdlist and mpx_show_cmdlist): List for the new prefixed "set mpx"
4333 and "show mpx" commands.
4334 * NEWS: List new commands for MPX support.
4336 2015-06-09 Gary Benson <gbenson@redhat.com>
4338 * common/fileio.h (fileio_to_host_mode): New declaration.
4339 * common/fileio.c (fileio_to_host_mode): New Function.
4340 * inf-child.c (inf_child_fileio_open): Process mode argument
4341 with fileio_to_host_mode.
4343 2015-06-09 Gary Benson <gbenson@redhat.com>
4345 * common/fileio.c (fileio_mode_pack): Fix preprocessor
4348 2015-06-05 Gary Benson <gbenson@redhat.com>
4350 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
4351 * remote.c (remote_filesystem_is_local): ...here.
4353 2015-06-04 Yao Qi <yao.qi@linaro.org>
4355 * gdbarch.c: Regenerate it.
4357 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4359 * arch-utils.c (default_infcall_munmap): New.
4360 * arch-utils.h (default_infcall_munmap): New declaration.
4361 * compile/compile-object-load.c (struct munmap_list, munmap_list_add)
4362 (munmap_list_free, munmap_listp_free_cleanup): New.
4363 (struct setup_sections_data): Add field munmap_list_headp.
4364 (setup_sections): Call munmap_list_add.
4365 (compile_object_load): New variable munmap_list_head, initialize
4366 setup_sections_data.munmap_list_headp, return munmap_list_head.
4367 * compile/compile-object-load.h (struct munmap_list): New declaration.
4368 (struct compile_module): Add field munmap_list_head.
4369 (munmap_list_free): New declaration.
4370 * compile/compile-object-run.c (struct do_module_cleanup): Add field
4372 (do_module_cleanup): Call munmap_list_free.
4373 (compile_object_run): Pass munmap_list_head to do_module_cleanup.
4374 * gdbarch.c: Regenerate.
4375 * gdbarch.h: Regenerate.
4376 * gdbarch.sh (infcall_munmap): New.
4377 * linux-tdep.c (linux_infcall_munmap): New.
4378 (linux_init_abi): Install it.
4380 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
4383 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
4385 2015-06-02 Yao Qi <yao.qi@linaro.org>
4387 * i386-linux-nat.c: Include linux-nat.h.
4389 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
4390 Jan Kratochvil <jan.kratochvil@redhat.com>
4393 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
4395 * dwarf2loc.c (chain_candidate): Likewise.
4397 2015-06-01 Yao Qi <yao.qi@linaro.org>
4399 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
4400 (store_vfp_regs): Use PTRACE_SETREGSET.
4402 2015-06-01 Yao Qi <yao.qi@linaro.org>
4404 * arm-linux-nat.c (fetch_fpregister): Use PTRACE_GETREGSET.
4405 (fetch_fpregs): Likewise.
4406 * arm-linux-nat.c (store_fpregister): Use PTRACE_SETREGSET.
4407 (store_fpregs): Likewise.
4409 2015-06-01 Yao Qi <yao.qi@linaro.org>
4411 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
4412 (fetch_regs): Likewise.
4413 (store_regs): Use PTRACE_SETREGSET.
4414 (store_register): Likewise.
4416 2015-06-01 Yao Qi <yao.qi@linaro.org>
4418 * arm-linux-nat.c (arm_linux_read_description): Check whether
4419 kernel supports PTRACE_GETREGSET.
4421 2015-06-01 Yao Qi <yao.qi@linaro.org>
4423 * x86-linux-nat.c (have_ptrace_getregset): Move it to ...
4424 * linux-nat.c: ... here.
4425 * x86-linux-nat.h (have_ptrace_getregset): Move the declaration
4427 * linux-nat.h: ... here.
4429 2015-06-01 Yao Qi <yao.qi@linaro.org>
4431 * amd64-linux-nat.c: Include "nat/linux-ptrace.h".
4432 * i386-linux-nat.c: Likewise.
4433 * nat/linux-ptrace.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Define.
4434 * s390-linux-nat.c: Include "nat/linux-ptrace.h".
4435 (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4436 * x86-linux-nat.c: Include "nat/linux-ptrace.h".
4437 * x86-linux-nat.h (PTRACE_GETREGSET, PTRACE_SETREGSET): Remove.
4439 2015-05-30 Eli Zaretskii <eliz@gnu.org>
4441 * go32-nat.c (go32_xfer_memory): Fix the return value to be
4442 compatible to what read_child and write_child return. This
4443 unbreaks that DJGPP build of GDB which was broken since v7.7.
4445 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
4447 * MAINTAINERS (Write After Approval): Add Martin Galvan.
4449 2015-05-29 Roland McGrath <mcgrathr@google.com>
4452 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
4453 rather than internal_error for an unrecognized value.
4455 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
4457 * xtensa-tdep.c (xtensa_pseudo_register_read)
4458 (xtensa_pseudo_register_write): Don't alias last pseudo register
4461 2015-05-28 Don Breazeal <donb@codesourcery.com>
4463 * infrun.c (follow_fork_inferior): Ensure the use of
4464 process-style ptids (pid,0,0) in verbose/debug "Detaching"
4467 2015-05-28 Doug Evans <dje@google.com>
4469 * dwarf2read.c (record_line_ftype): Remove, duplicate.
4471 2015-05-28 Yao Qi <yao.qi@linaro.org>
4473 * arm-linux-nat.c (arm_linux_has_wmmx_registers): Remove.
4474 (arm_linux_fetch_inferior_registers): Use
4475 tdep->have_wmmx_registers instead of arm_linux_has_wmmx_registers.
4476 (arm_linux_store_inferior_registers): Likewise.
4477 (arm_linux_read_description): Don't set
4478 arm_linux_has_wmmx_registers.
4479 * arm-tdep.c (arm_gdbarch_init): Set
4480 tdep->have_wmmx_registers according target descriptions.
4481 * arm-tdep.h (struct gdbarch_tdep) <have_wmmx_registers>: New
4484 2015-05-28 Yao Qi <yao.qi@linaro.org>
4486 * arm-linux-nat.c (arm_linux_vfp_register_count): Remove.
4487 (fetch_vfp_regs): Use vfp_register_count from gdbarch_tdep
4488 instead of arm_linux_vfp_register_count.
4489 (store_vfp_regs): Likewise.
4490 (arm_linux_fetch_inferior_registers): Likewise.
4491 (arm_linux_store_inferior_registers): Likewise.
4492 (arm_linux_read_description): Don't set
4493 arm_linux_vfp_register_count.
4494 * arm-linux-tdep.c (arm_linux_iterate_over_regset_sections):
4496 * arm-tdep.c (arm_gdbarch_init): Add assert on
4498 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
4499 field to vfp_register_count. All users updated.
4501 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
4503 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
4504 ELFOSABI_GNU binaries.
4506 2015-05-27 Doug Evans <dje@google.com>
4508 * dwarf2read.c (lnp_state_machine): New typedef.
4509 (lnp_reader_state): New typedef.
4510 (dwarf_record_line_1): Renamed from dwarf_record_line.
4511 All callers updated.
4512 (dwarf_record_line): New function.
4513 (init_lnp_state_machine): New function.
4514 (check_line_address): Replace p_record_line parameter with state.
4515 All callers updated.
4516 (dwarf_decode_lines_1): Call dwarf_record_line, init_lnp_state_machine.
4517 Update to record state in lnp_state_machine.
4519 2015-05-27 Doug Evans <dje@google.com>
4521 * dwarf2read.c (record_line_ftype): New typedef.
4522 (check_line_address): New function.
4523 (dwarf_decode_lines_1): Call it.
4525 2015-05-27 Doug Evans <dje@google.com>
4527 * NEWS: Mention "set debug dwarf-line".
4528 * dwarf2read.c (dwarf_line_debug): New static global.
4529 (add_include_dir): Add debug dwarf-line support.
4530 (add_file_name, dwarf_record_line, dwarf_finish_line): Ditto.
4531 (_initialize_dwarf2_read): New parameter "debug dwarf-line".
4533 2015-05-27 Doug Evans <dje@google.com>
4535 * cp-namespace.c (cp_lookup_nested_symbol): New arg "domain".
4536 All callers updated.
4537 (cp_lookup_nested_symbol_1, find_symbol_in_baseclass): Ditto.
4538 * cp-support.h (cp_lookup_nested_symbol): Update.
4540 2015-05-27 Doug Evans <dje@google.com>
4543 * block.c (block_find_symbol): New function.
4544 (block_find_non_opaque_type): Ditto.
4545 (block_find_non_opaque_type_preferred): Ditto.
4546 * block.h (block_symbol_matcher_ftype): New typedef.
4547 (block_find_symbol): Declare.
4548 (block_find_non_opaque_type): Ditto.
4549 (block_find_non_opaque_type_preferred): Ditto.
4550 * dwarf2read.c (dw2_lookup_symbol): Call block_find_symbol.
4551 * psymtab.c (psym_lookup_symbol): Ditto.
4552 * symtab.c (basic_lookup_transparent_type_1): New function.
4553 (basic_lookup_transparent_type): Call it.
4555 2015-05-27 Yao Qi <yao.qi@linaro.org>
4557 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
4558 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
4560 2015-05-27 Yao Qi <yao.qi@linaro.org>
4562 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
4564 (aarch64_record_load_store): Likewise.
4566 2015-05-26 Doug Evans <dje@google.com>
4568 PR c++/18141, c++/18417.
4569 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
4572 2015-05-26 Doug Evans <dje@google.com>
4574 * NEWS: Add entries for command renamings.
4575 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
4577 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
4578 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
4580 (show_dwarf_max_cache_age): Renamed from show_dwarf2_max_cache_age.
4581 All callers updated. Fix spelling of DWARF in help text.
4582 (set_dwarf_cmdlist): Renamed from set_dwarf2_cmdlist.
4584 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
4586 (set_dwarf_cmd): Renamed from set_dwarf2_cmd. All callers updated.
4587 (show_dwarf_cmd): Renamed from show_dwarf2_cmd. All callers updated.
4588 (dwarf_always_disassemble): Renamed from dwarf_always_disassemble.
4590 (show_dwarf_always_disassemble): Renamed from
4591 show_dwarf2_always_disassemble. All callers updated.
4592 (_initialize_dwarf2_read): Rename "set/show dwarf2" prefix to
4593 "set/show dwarf". Rename "set/show dwarf2 max-cache-age" to
4594 "set/show dwarf max-cache-age". Rename
4595 "set/show dwarf2 always-disassemble" to
4596 "set/show dwarf always-disassemble". Rename
4597 "set/show debug dwarf2-read" to "set/show debug dwarf-read". Rename
4598 "set/show debug dwarf2-die" to "set/show debug dwarf-die".
4600 2015-05-26 Doug Evans <dje@google.com>
4603 * python/py-lazy-string.c (stpy_convert_to_value): Use
4604 gdbpy_gdb_memory_error not PyExc_MemoryError.
4605 (gdbpy_create_lazy_string_object): Ditto.
4607 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
4609 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
4611 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
4613 * tui/tui-regs.c (tui_reg_prev_command): New function.
4614 (_initialize_tui_regs): Add 'prev' command for 'tui reg'.
4615 * reggroups.c (reggroup_prev): New function.
4616 * reggroups.h (reggroup_prev): Add declaration. Update comment.
4618 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
4619 Yao Qi <yao.qi@linaro.org>
4621 * aarch64-linux-tdep.c: Include linux-record.h and
4623 (struct linux_record_tdep aarch64_linux_record_tdep): Declare.
4624 (aarch64_syscall): New enum.
4625 (aarch64_canonicalize_syscall): New function.
4626 (aarch64_all_but_pc_registers_record): New function.
4627 (aarch64_linux_syscall_record): New function.
4628 (aarch64_linux_init_abi): Install AArch64 process record
4629 handler. Update to handle syscall recording.
4630 * aarch64-tdep.c: Include record.h and record-full.h.
4631 (submask, bit, bits, REG_ALLOC, MEM_ALLOC): New macros.
4632 (struct aarch64_mem_r): Define.
4633 (aarch64_record_result): New enum.
4634 (struct insn_decode_record): Define.
4635 (insn_decode_record): New typedef.
4636 (aarch64_record_data_proc_reg): New function.
4637 (aarch64_record_data_proc_imm): New function.
4638 (aarch64_record_branch_except_sys): New function.
4639 (aarch64_record_load_store): New function.
4640 (aarch64_record_data_proc_simd_fp): New function.
4641 (aarch64_record_asimd_load_store): New function.
4642 (aarch64_record_decode_insn_handler): New function.
4643 (deallocate_reg_mem): New function.
4644 (aarch64_process_record): New function.
4645 * aarch64-tdep.h (struct gdbarch_tdep) <aarch64_syscall_record>:
4647 (aarch64_process_record): New extern declaration.
4648 * configure.tgt: Add linux-record.o to gdb_target_obs.
4649 * linux-record.h (struct linux_record_tdep) <arg7>: New field.
4651 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
4653 * NEWS: Add a note on process record-replay support on aarch64*-linux*
4656 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
4658 * amd64-tdep.c: Replace in_function_epilogue_p with
4659 stack_frame_destroyed_p throughout.
4660 * arch-utils.c: Ditto.
4661 * arch-utils.h: Ditto.
4662 * arm-tdep.c: Ditto.
4663 * breakpoint.c: Ditto.
4664 * gdbarch.sh: Ditto.
4665 * hppa-tdep.c: Ditto.
4666 * i386-tdep.c: Ditto.
4667 * mips-tdep.c: Ditto.
4668 * nios2-tdep.c: Ditto.
4669 * rs6000-tdep.c: Ditto.
4670 * s390-linux-tdep.c: Ditto.
4671 * score-tdep.c: Ditto.
4673 * sparc-tdep.c: Ditto.
4674 * sparc-tdep.h: Ditto.
4675 * sparc64-tdep.c: Ditto.
4676 * spu-tdep.c: Ditto.
4677 * tic6x-tdep.c: Ditto.
4678 * tilegx-tdep.c: Ditto.
4679 * xstormy16-tdep.c: Ditto.
4680 * gdbarch.c, gdbarch.h: Re-generated.
4682 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
4684 * NEWS: Mention 'tui enable' and 'tui disable'.
4685 * tui/tui.c (tui_enable_command): New function.
4686 (tui_disable_command): New function.
4687 (_initialize_tui): New function.
4689 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4691 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
4693 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4695 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
4698 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4700 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
4702 (tui_set_layout_for_display_command): ...here, before calling
4703 tui_set_layout. Only set the layout if gdb has not already
4704 entered the TUI_FAILURE state.
4706 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4708 * tui/tui-layout.c (layout_completer): New function.
4709 (_initialize_tui_layout): Set completer on layout command.
4711 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4713 * tui/tui-layout.c (tui_set_layout): Remove
4714 tui_register_display_type parameter. Remove all checking of this
4715 parameter, and reindent function. Update header comment.
4716 (tui_set_layout_for_display_command): Rename to...
4717 (tui_set_layout_by_name): ...this, and don't check for different
4718 register class types, don't pass a tui_register_display_type to
4719 tui_set_layout. Update header comment.
4720 (layout_names): Remove register set specific names.
4721 * tui/tui-layout.h (tui_set_layout): Remove
4722 tui_register_display_type parameter.
4723 * tui/tui.c (tui_rl_change_windows): Don't pass a
4724 tui_register_display_type to tui_set_layout.
4725 (tui_rl_delete_other_windows): Likewise.
4726 (tui_enable): Likewise.
4727 * tui/tui-data.h (TUI_FLOAT_REGS_NAME): Remove.
4728 (TUI_FLOAT_REGS_NAME_LOWER): Remove.
4729 (TUI_GENERAL_REGS_NAME): Remove.
4730 (TUI_GENERAL_REGS_NAME_LOWER): Remove.
4731 (TUI_SPECIAL_REGS_NAME): Remove.
4732 (TUI_SPECIAL_REGS_NAME_LOWER): Remove.
4733 (TUI_GENERAL_SPECIAL_REGS_NAME): Remove.
4734 (TUI_GENERAL_SPECIAL_REGS_NAME_LOWER): Remove.
4735 (enum tui_register_display_type): Remove.
4736 (struct tui_layout_def): Remove regs_display_type and
4737 float_regs_display_type fields.
4738 (struct tui_data_info): Remove regs_display_type field.
4739 (tui_layout_command): Use new name for
4740 tui_set_layout_for_display_command.
4741 * tui/tui-data.c (layout_def): Don't initialise removed fields.
4742 (tui_clear_win_detail): Don't initialise removed fields of
4744 * tui/tui-regs.c (tui_show_registers): Use new name for
4745 tui_set_layout_for_display_command.
4746 * tui/tui.h (tui_set_layout_for_display_command): Rename
4748 (tui_set_layout_by_name): ...this.
4749 * printcmd.c (display_command): Remove tui related layout call,
4752 2015-05-20 Joel Brobecker <brobecker@adacore.com>
4754 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
4755 (handle_inferior_event): New function.
4757 2015-05-20 Joel Brobecker <brobecker@adacore.com>
4759 * ada-lang.c (to_fixed_array_type): Rename local variable
4760 typename into type_name.
4762 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4764 Fix ASAN crash for gdb.compile/compile.exp.
4765 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
4767 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4769 * compile/compile-c-symbols.c (convert_symbol_sym, gcc_convert_symbol)
4770 (gcc_symbol_address): Change gdb_stdout to gdb_stdlog.
4771 * compile/compile-object-load.c (setup_sections, compile_object_load):
4773 * compile/compile.c (compile_to_object): Likewise.
4775 2015-05-16 Doug Evans <xdje42@gmail.com>
4777 * NEWS: Mention support for unbuffered Guile memory ports.
4778 * scm-ports.c (ioscm_memory_port): Update comments on end, size.
4779 (ioscm_lseek_address): Improve overflow calculation.
4780 (gdbscm_memory_port_fill_input): Add assert.
4781 (gdbscm_memory_port_write): Handle unbuffered ports.
4782 Handle large writes identical to Guile's fport_write.
4783 (gdbscm_memory_port_seek): Fix seeking past end check.
4784 (gdbscm_memory_port_close): Handle closing unbuffered port.
4785 (ioscm_parse_mode_bits): Recognize "0" for unbuffered ports.
4786 (ioscm_init_memory_port): Handle unbuffered ports.
4787 (ioscm_reinit_memory_port): Ditto.
4788 (ioscm_init_memory_port): Update size calculation.
4789 (gdbscm_open_memory): Support zero sized ports.
4791 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4793 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
4794 variable compiler warnings.
4796 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4798 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
4800 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4801 Phil Muldoon <pmuldoon@redhat.com>
4803 * NEWS (Changes since GDB 7.9): Add compile print.
4804 * compile/compile-c-support.c (add_code_header, add_code_footer)
4805 (c_compute_program): Add COMPILE_I_PRINT_ADDRESS_SCOPE and
4806 COMPILE_I_PRINT_VALUE_SCOPE.
4807 * compile/compile-internal.h (COMPILE_I_PRINT_OUT_ARG_TYPE)
4808 (COMPILE_I_PRINT_OUT_ARG, COMPILE_I_EXPR_VAL, COMPILE_I_EXPR_PTR_TYPE):
4810 * compile/compile-object-load.c: Include block.h.
4811 (get_out_value_type): New function.
4812 (compile_object_load): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
4813 COMPILE_I_PRINT_VALUE_SCOPE. Set compile_module's OUT_VALUE_ADDR and
4815 * compile/compile-object-load.h (struct compile_module): Add fields
4816 out_value_addr and out_value_type.
4817 * compile/compile-object-run.c: Include valprint.h and compile.h.
4818 (struct do_module_cleanup): Add fields out_value_addr and
4820 (do_module_cleanup): Handle COMPILE_I_PRINT_ADDRESS_SCOPE and
4821 COMPILE_I_PRINT_VALUE_SCOPE.
4822 (compile_object_run): Propagate out_value_addr and out_value_type.
4823 Pass OUT_VALUE_ADDR.
4824 * compile/compile.c: Include valprint.h.
4825 (compile_print_value, compile_print_command): New functions.
4826 (eval_compile_command): Handle failed COMPILE_I_PRINT_ADDRESS_SCOPE.
4827 (_initialize_compile): Update compile code help text. Install
4828 compile_print_command.
4829 * compile/compile.h (compile_print_value): New prototype.
4830 * defs.h (enum compile_i_scope_types): Add
4831 COMPILE_I_PRINT_ADDRESS_SCOPE and COMPILE_I_PRINT_VALUE_SCOPE.
4833 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4835 * compile/compile-object-load.c (get_regs_type): Add parameter func_sym.
4836 Rely on its parameter count.
4837 (compile_object_load): Replace lookup_minimal_symbol_text by
4838 lookup_global_symbol_from_objfile. Verify FUNC_SYM. Set it in the
4840 * compile/compile-object-load.h (struct compile_module): Replace
4841 func_addr by func_sym.
4842 * compile/compile-object-run.c: Include block.h.
4843 (compile_object_run): Reset module variable after it is freed. Use
4844 FUNC_SYM instead of FUNC_ADDR. Rely on it.
4846 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4848 * compile/compile-c-support.c (print_one_macro): Use #ifndef.
4849 (generate_register_struct): Use __gdb_uintptr for TYPE_CODE_PTR.
4850 (c_compute_program): Call generate_register_struct after typedefs.
4851 * compile/compile-loc2c.c (push, pushf_register_address)
4852 (pushf_register): Cast to GCC_UINTPTR.
4853 (do_compile_dwarf_expr_to_c): Use unused attribute. Add space after
4854 type. Use GCC_UINTPTR instead of void *. Remove excessive cast.
4855 (compile_dwarf_expr_to_c): Use GCC_UINTPTR instead of void *.
4856 * compile/compile.c (_initialize_compile): Enable warnings for
4859 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4861 * cli/cli-script.c (execute_control_command): Update
4862 eval_compile_command caller.
4863 * compile/compile-object-load.c (compile_object_load): Add parameters
4864 scope and scope_data. Set them.
4865 * compile/compile-object-load.h (struct compile_module): Add fields
4866 scope and scope_data.
4867 (compile_object_load): Add parameters scope and scope_data.
4868 * compile/compile-object-run.c (struct do_module_cleanup): Add fields
4869 scope and scope_data.
4870 (compile_object_run): Propagate the fields scope and scope_data.
4871 * compile/compile.c (compile_file_command, compile_code_command):
4872 Update eval_compile_command callers.
4873 (eval_compile_command): Add parameter scope_data. Pass it plus scope.
4874 * compile/compile.h (eval_compile_command): Add parameter scope_data.
4875 * defs.h (struct command_line): Add field scope_data.
4877 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4879 * printcmd.c (struct format_data): Move it to valprint.h.
4880 (print_command_parse_format, print_value): New functions from ...
4881 (print_command_1): ... here. Call them.
4882 * valprint.h (struct format_data): Move it here from printcmd.c.
4883 (print_command_parse_format, print_value): New declarations.
4885 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4887 * compile/compile-object-load.c (compile_object_load): Add
4888 COMPILE_DEBUG message.
4890 2015-05-15 Jerome Guitton <guitton@adacore.com>
4892 * ada-lang.c (ada_value_ptr_subscript): Use enum position of
4893 index to get element instead of enum value.
4894 (ada_value_slice_from_ptr, ada_value_slice): Use enum position
4895 of index to compute length, but enum values to compute bounds.
4896 (ada_array_length): Use enum position of index instead of enum value.
4897 (pos_atr): Move position computation to...
4898 (ada_evaluate_subexp): Use enum values to compute bounds.
4899 * gdbtypes.c (discrete_position): ...this new function.
4900 * gdbtypes.h (discrete_position): New function declaration.
4901 * valprint.c (val_print_array_elements): Call discrete_position
4902 to handle array indexed by non-contiguous enumeration types.
4904 2015-05-15 Jerome Guitton <guitton@adacore.com>
4906 * ada-lang.c (find_parallel_type_by_descriptive_type):
4907 Go through typedefs during lookup.
4908 (to_fixed_array_type): Add support for non-bit packed arrays
4909 as variable-length fields.
4911 2015-05-15 Pedro Alves <palves@redhat.com>
4912 Simon Marchi <simon.marchi@ericsson.com>
4914 * event-loop.c (gdb_notifier) <next_file_handler,
4915 next_poll_fds_index>: New fields.
4916 (get_next_file_handler_to_handle_and_advance): New function.
4917 (delete_file_handler): If deleting the next file handler to
4918 handle, advance to the next file handler.
4919 (gdb_wait_for_event): Bail early if no event fired. Poll file
4920 handlers in round-robin fashion.
4922 2015-05-15 Pedro Alves <palves@redhat.com>
4924 * linux-tdep.c (linux_find_memory_regions_full): Rename local
4925 'private' to 'priv'.
4927 2015-05-15 Pedro Alves <palves@redhat.com>
4929 * nat/linux-nat.h: Include "target/waitstatus.h".
4931 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
4933 * python/py-unwind.c (struct reg_info): Move out of ...
4934 (struct cached_frame_info): ... this scope.
4935 (pending_frame_object_type, unwind_info_object_type): Make extern.
4937 2015-05-15 Joel Brobecker <brobecker@adacore.com>
4939 * ada-lang.c (ada_value_primitive_packed_val): Make sure
4940 accumSize is never negative.
4942 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
4944 * tui/tui-command.c: Remove include of <ctype.h>.
4945 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
4947 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
4949 * dwarf2read.c (die_needs_namespace): Return 1 for
4950 DW_TAG_inlined_subroutine.
4952 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4954 * regcache.c (regcache_cpy_no_passthrough): New declaration.
4955 (regcache_cpy_no_passthrough): Make it static, add function comment.
4956 * regcache.h (regcache_dup, regcache_cpy): Reduce/update their comment.
4957 (regcache_cpy_no_passthrough): Remove declaration.
4959 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4961 * gdbthread.h (struct thread_control_state): Update comment for
4963 * infcall.c (run_inferior_call): Update comment about
4965 * infcmd.c (get_return_value): Update comment about stop_registers.
4966 (finish_forward): Update comment about proceed_to_finish.
4967 * infrun.c (stop_registers): Remove.
4968 (clear_proceed_status, normal_stop): Remove stop_registers handling.
4969 * infrun.h (stop_registers): Remove.
4971 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4973 * infcall.c (struct dummy_frame_context_saver)
4974 (dummy_frame_context_saver_data_free, dummy_frame_context_saver_dtor)
4975 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
4976 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
4978 (call_function_by_hand_dummy): Move discard_cleanups of
4979 inf_status_cleanup before dummy_frame_push. Call
4980 dummy_frame_context_saver_setup and prepare context_saver_cleanup.
4981 Use dummy_frame_context_saver_get_regs instead of stop_registers.
4982 * infcall.h (struct dummy_frame_context_saver)
4983 (dummy_frame_context_saver_drop, dummy_frame_context_saver_cleanup)
4984 (dummy_frame_context_saver_get_regs, dummy_frame_context_saver_setup):
4986 * infcmd.c: Include infcall.h.
4987 (get_return_value): Add parameter ctx_saver, use it instead of
4989 (print_return_value): Add parameter ctx_saver, pass it.
4990 (struct finish_command_continuation_args): Add field ctx_saver.
4991 (finish_command_continuation): Update print_return_value caller.
4992 (finish_command_continuation_free_arg): Free also ctx_saver.
4993 (finish_forward): Call dummy_frame_context_saver_setup.
4994 * inferior.h (struct dummy_frame_context_saver): New declaration.
4995 (get_return_value): Add parameter ctx_saver.
4996 * python/py-finishbreakpoint.c (bpfinishpy_pre_stop_hook): Update
4997 get_return_value caller.
4999 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5001 * dummy-frame.c (struct dummy_frame_dtor_list): New.
5002 (struct dummy_frame): Replace dtor and dtor_data by dtor_list.
5003 (remove_dummy_frame): Process dtor_list.
5004 (pop_dummy_frame): Process dtor_list.
5005 (register_dummy_frame_dtor): Maintain dtor_list.
5006 (find_dummy_frame_dtor): Handle dtor_list.
5007 * dummy-frame.h (register_dummy_frame_dtor, find_dummy_frame_dtor):
5010 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5012 * compile/compile-object-run.c (do_module_cleanup): Add parameter
5014 (compile_object_run): Update do_module_cleanup caller.
5015 * dummy-frame.c: Include infcall.h.
5016 (struct dummy_frame): Update dtor comment.
5017 (remove_dummy_frame): Call dtor.
5018 (pop_dummy_frame): Update dtor caller.
5019 * dummy-frame.h (dummy_frame_dtor_ftype): Add parameter
5022 2015-05-13 Joel Brobecker <brobecker@adacore.com>
5026 2015-05-13 Joel Brobecker <brobecker@adacore.com>
5028 * NEWS: Create "Changes in GDB 7.9.1" section. Move news about
5029 Xmethods now being able to specify a result type to that new
5032 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5034 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5035 first before resizing the window.
5036 * tui/tui.c (tui_enable): Likewise.
5038 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5040 * dummy-frame.c (struct dummy_frame): Use proper typedef for dtor.
5041 * dummy-frame.h (dummy_frame_dtor_ftype): Add its comment.
5042 * infcall.c (call_function_by_hand_dummy): Use proper typedef for
5043 dummy_dtor parameter.
5044 * infcall.h: Include dummy-frame.h.
5045 (call_function_by_hand_dummy_dtor_ftype): Remove.
5046 (call_function_by_hand_dummy): Use proper typedef for dummy_dtor
5049 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5052 * top.c (history_size_setshow_var): Change type to signed.
5053 Initialize to -2. Update documentation.
5054 (set_readline_history_size): Define.
5055 (set_history_size_command): Use it. Remove logic for handling
5057 (init_history): Use set_readline_history_size(). Test for a
5058 value of -2 instead of 0 when determining whether to set a
5059 default history size.
5060 (init_main): Decode the argument of the "size" command as a
5061 zuinteger_unlimited.
5063 2015-05-12 Doug Evans <dje@google.com>
5065 * dwarf2read.c (struct file_entry): Tweak comments.
5066 (get_debug_line_section): Tweak comments.
5068 2015-05-12 Don Breazeal <donb@codesourcery.com>
5070 * NEWS: Announce fork support in the RSP and support
5071 for fork debugging in extended mode.
5073 2015-05-12 Don Breazeal <donb@codesourcery.com>
5075 * remote.c (remote_insert_fork_catchpoint): New function.
5076 (remote_remove_fork_catchpoint): New function.
5077 (remote_insert_vfork_catchpoint): New function.
5078 (remote_remove_vfork_catchpoint): New function.
5079 (pending_fork_parent_callback): New function.
5080 (remove_new_fork_child): New function.
5081 (remote_update_thread_list): Call remote_notif_get_pending_events
5082 and remove_new_fork_child.
5083 (extended_remote_kill): Kill fork child when killing the
5084 parent before follow_fork completes.
5085 (init_extended_remote_ops): Initialize target vector with
5086 new fork catchpoint functions.
5088 2015-05-12 Don Breazeal <donb@codesourcery.com>
5090 * remote.c (remove_vfork_event_p): New function.
5091 (remote_follow_fork): Add vfork event type to event checking.
5092 (remote_parse_stop_reply): New stop reasons "vfork" and
5093 "vforkdone" for RSP 'T' Stop Reply Packet.
5095 2015-05-12 Don Breazeal <donb@codesourcery.com>
5097 * linux-nat.c (linux_nat_ptrace_options): New function.
5098 (linux_init_ptrace, wait_lwp, linux_nat_filter_event):
5099 Call linux_nat_ptrace_options and use different argument to
5100 linux_enable_event_reporting.
5101 (_initialize_linux_nat): Delete call to
5102 linux_ptrace_set_additional_flags.
5103 * nat/linux-ptrace.c (current_ptrace_options): Rename to
5104 supported_ptrace_options.
5105 (additional_flags): Delete variable.
5106 (linux_check_ptrace_features): Use supported_ptrace_options.
5107 (linux_test_for_tracesysgood, linux_test_for_tracefork):
5108 Likewise, and remove additional_flags check.
5109 (linux_enable_event_reporting): Change 'attached' argument to
5110 'options'. Use supported_ptrace_options.
5111 (ptrace_supports_feature): Change comment. Use
5112 supported_ptrace_options.
5113 (linux_ptrace_set_additional_flags): Delete function.
5114 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5115 Delete function prototype.
5116 * remote.c (remote_fork_event_p): New function.
5117 (remote_detach_pid): New function.
5118 (remote_detach_1): Call remote_detach_pid, don't mourn inferior
5119 if doing detach-on-fork.
5120 (remote_follow_fork): New function.
5121 (remote_parse_stop_reply): Handle new "T" stop reason "fork".
5122 (remote_pid_to_str): Print "process" strings for pid/0/0 ptids.
5123 (init_extended_remote_ops): Initialize to_follow_fork.
5125 2015-05-12 Don Breazeal <donb@codesourcery.com>
5127 * nat/linux-ptrace.c (linux_check_ptrace_features): Change
5128 from static to extern.
5129 * nat/linux-ptrace.h (linux_check_ptrace_features): Declare.
5130 * remote.c (anonymous enum): <PACKET_fork_event_feature,
5131 * PACKET_vfork_event_feature>: New enumeration constants.
5132 (remote_protocol_features): Add table entries for new packets.
5133 (remote_query_supported): Add new feature queries to qSupported
5136 2015-05-12 Gary Benson <gbenson@redhat.com>
5138 * remote.c (remote_add_inferior): Call exec_file_locate_attach
5139 for fake PIDs as well as real ones.
5140 (remote_pid_to_exec_file): Send empty annex if PID is fake.
5142 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
5144 * NEWS (Python Scripting): Mention the new gdb.Value methods.
5145 * python/py-value.c (valpy_reference_value): New function.
5146 (valpy_const_value): Likewise.
5147 (value_object_methods): Add new methods.
5148 * value.c (make_cv_value): New function.
5149 * value.h (make_cv_value): Declare.
5151 2015-05-08 Yao Qi <yao@codesourcery.com>
5152 Sandra Loosemore <sandra@codesourcery.com>
5154 * dwarf2read.c (setup_type_unit_groups): Do NULL pointer check
5155 to 'lh->include_dirs' before accessing to it.
5156 (psymtab_include_file_name): Likewise.
5157 (dwarf_decode_lines_1): Likewise.
5158 (dwarf_decode_lines): Likewise.
5159 (file_file_name): Likewise.
5161 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5163 * nios2-linux-tdep.c (NIOS2_SIGRETURN_TRAMP_ADDR): Define.
5164 (NIOS2_SIGRETURN_REGSAVE_OFFSET): Define.
5165 (nios2_linux_rt_sigreturn_init): Adjust base address of
5168 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5170 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
5171 "trap 31" as the breakpoint instruction on all targets.
5173 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5175 * infcmd.c (print_return_value): Remove unused declaration.
5177 2015-05-08 Joel Brobecker <brobecker@adacore.com>
5179 * dwarf2read.c (attr_to_dynamic_prop)
5180 <DW_AT_data_member_location>: Use read_type_die isntead of
5183 2015-05-08 Joel Brobecker <brobecker@adacore.com>
5185 * ada-lang.c (ada_convert_actual): Add handling of formals
5186 passed inside an aligner type.
5188 2015-05-08 Joel Brobecker <brobecker@adacore.com>
5190 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
5192 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
5195 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
5196 Print xmethod matcher status.
5198 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
5200 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
5201 register in the regcache when treating the PSWM register, and vice
5204 2015-05-07 Gary Benson <gbenson@redhat.com>
5206 * linux-thread-db.c (struct thread_db_info)
5207 <td_ta_map_id2thr_p>: Remove field.
5208 (try_thread_db_load_1): Remove initialization for the above.
5210 2015-05-07 Gary Benson <gbenson@redhat.com>
5212 * linux-thread-db.c (struct thread_db_info)
5213 <td_thr_validate_p>: Remove field.
5214 (try_thread_db_load_1): Remove initialization for the above.
5216 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5218 * compile/compile-object-load.c (compile_object_load): Support
5221 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5223 * compile/compile.c (compile_to_object): Make the cmd_string parameter
5224 const. Use new variables for the const compatibility.
5225 (eval_compile_command): Make the cmd_string parameter const.
5226 * compile/compile.h (eval_compile_command): Make the cmd_string
5229 2015-05-06 Joel Brobecker <brobecker@adacore.com>
5231 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
5233 * top.c (deprecated_init_ui_hook): Delete.
5234 (gdb_init): Remove handling of deprecated_init_ui_hook.
5235 * interps.c (clear_interpreter_hooks): Remove handling of
5236 deprecated_init_ui_hook.
5237 * main.c (captured_main): Update comment.
5239 2015-05-06 Joel Brobecker <brobecker@adacore.com>
5241 * solib.c (_initialize_solib): Add "info dll" alias creation.
5242 * windows-nat.c (set_windows_aliases): Delete.
5243 (_initialize_windows_nat): Remove deprecated_init_ui_hook
5245 * NEWS: Add news entry about "info dll" now being available
5248 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5250 * ada-lang.c (value_assign_to_component): Reformat and improve
5251 documentation. Remove all trailing spaces.
5253 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5255 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5256 Stop counting inlined frames as soon as an out-of-line function
5259 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
5261 * dwarf2read.c (inherit_abstract_dies): Skip
5262 DW_TAG_GNU_call_site dies while inheriting children of an
5263 abstract DIE into a scope.
5264 (read_lexical_block_scope): Inherit abstract DIE's for
5267 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5269 * ada-valprint.c (val_print_packed_array_elements): Delete
5270 variable "len". Add a type-length check when comparing two
5271 consecutive elements of the array. Use the element's actual
5272 length in call to value_contents_eq.
5273 * ada-lang.c (ada_value_primitive_packed_val): Always return
5274 a value whose type has been resolved.
5276 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5278 * ada-lang.c (ada_value_primitive_packed_val): Recompute
5279 BIT_SIZE and LEN if the size of the resolved type is smaller
5280 than BIT_SIZE * HOST_CHAR_BIT.
5282 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5284 * ada-lang.c (ada_value_primitive_packed_val): Use a more
5285 correct address in call to value_at. Adjust call to
5286 value_address accordingly.
5288 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5290 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
5293 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5295 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
5296 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
5298 * gdbtypes.h (resolve_dynamic_type): Add "valaddr" parameter.
5299 * gdbtypes.c (resolve_dynamic_struct): Set pinfo.valaddr.
5300 (resolve_dynamic_type_internal): Set pinfo.valaddr.
5301 Add handling of addr_stack->valaddr.
5302 (resolve_dynamic_type): Add "valaddr" parameter.
5303 Set pinfo.valaddr field.
5304 * ada-lang.c (ada_discrete_type_high_bound): Update call to
5305 resolve_dynamic_type.
5306 (ada_discrete_type_low_bound): Likewise.
5307 * findvar.c (default_read_var_value): Likewise.
5308 * value.c (value_from_contents_and_address): Likewise.
5310 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5312 * gdbtypes.c (resolve_dynamic_array): Use
5313 create_array_type_with_stride instead of create_array_type.
5315 2015-04-30 DJ Delorie <dj@redhat.com>
5317 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
5320 2015-04-29 Doug Evans <dje@google.com>
5323 * NEWS: Document new gdb.XMethodWorker.get_result_type method.
5324 * eval.c (evaluate_subexp_standard) <OP_FUNCALL>: Handle
5325 EVAL_AVOID_SIDE_EFFECTS for xmethods.
5326 * extension-priv.h (struct extension_language_ops)
5327 <get_xmethod_result_type>: New member.
5328 * extension.c (get_xmethod_result_type): New function.
5329 * extension.h (get_xmethod_result_type): Declare.
5330 * python/py-xmethods.c (get_result_type_method_name): New static
5332 (py_get_result_type_method_name): Ditto.
5333 (gdbpy_get_xmethod_result_type): New function.
5334 (gdbpy_initialize_xmethods): Initialize py_get_result_type_method_name.
5335 * python/python-internal.h (gdbpy_get_xmethod_result_type): Declare.
5336 * python/python.c (python_extension_ops): Add
5337 gdbpy_get_xmethod_result_type.
5338 * python/lib/gdb/xmethod.py (XMethodWorker): Add get_result_type.
5339 * valarith.c (value_x_binop): Handle EVAL_AVOID_SIDE_EFFECTS for
5341 (value_x_unop): Ditto.
5342 * value.c (result_type_of_xmethod): New function.
5343 * value.h (result_type_of_xmethod): Declare.
5345 2015-04-29 Gary Benson <gbenson@redhat.com>
5347 * solib.c (solib_find_1): Allow fd argument to be NULL.
5348 (exec_file_find): Update comment.
5349 (solib_find): Likewise.
5350 * exec.c (exec_file_locate_attach): Use NULL as fd
5351 argument to exec_file_find to avoid having to close
5353 * infrun.c (follow_exec): Likewise.
5355 2015-04-28 Doug Evans <dje@google.com>
5358 * python/lib/gdb/printing.py (register_pretty_printer): Handle
5359 name or __name__ attributes. Handle gdb module as first argument.
5361 2015-04-28 Doug Evans <dje@google.com>
5364 * python/py-prettyprint.c (print_children): Verify result of children
5365 iterator. Provide better error message.
5366 * python/python-internal..h (gdbpy_print_python_errors_p): Declare.
5367 * python/python.c (gdbpy_print_python_errors_p): New function.
5369 2015-04-28 Doug Evans <dje@google.com>
5371 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
5373 2015-04-28 Sasha Smundak <asmundak@google.com>
5375 * NEWS: Mention gdb.Type.optimized_out method.
5376 * python/py-type.c (typy_optimized_out): New function.
5378 2015-04-28 John Baldwin <jhb@FreeBSD.org>
5380 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5382 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5384 * utils.c (init_page_info): Set rl_catch_sigwinch to zero.
5385 (initialize_utils): Move call of init_page_info() to ...
5386 * top.c (gdb_init): ... here.
5388 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5390 * tui/tui-win.c (tui_sigwinch_handler): Remove now-stale comment.
5391 (tui_sigwinch_handler): Still update our idea of
5392 the terminal's width and height even when TUI is not active.
5394 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5396 * utils.h (set_screen_width_and_height): Declare.
5397 * utils.c (set_screen_width_and_height): Define.
5398 * tui/tui-win.c (tui_update_gdb_sizes): Use it.
5400 2015-04-28 Gary Benson <gbenson@redhat.com>
5402 * infrun.c (solist.h): New include.
5403 (follow_exec): Use exec_file_find to prefix execd_pathname
5406 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5408 * tui/tui-source.c (tui_set_source_content): Avoid calling
5409 strcpy() when offset is 0.
5411 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5414 * tui/tui-data.c (tui_free_window): Don't free the locator
5415 window when passed an SRC_WIN or a DISASSEM_WIN.
5417 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5419 * tui/tui-data.h (struct tui_win_element): Forward-declare.
5420 (tui_win_content): Move declaration.
5421 (struct tui_gen_win_info): Give 'content' field the
5422 type tui_win_content.
5423 * tui/tui-data.c (init_content_element): Remove redundant and
5425 (tui_add_content_elements): Remove erroneous cast.
5426 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
5428 (tui_get_begin_asm_address): Likewise.
5429 * tui/tui-regs.c (tui_show_registers): Likewise.
5430 (tui_show_register_group): Likewise.
5431 (tui_display_registers_from): Likewise.
5432 (tui_check_register_values): Likewise.
5433 * tui/tui-source.c (tui_set_source_content): Likewise.
5434 (tui_set_source_content_nil): Likewise.
5435 (tui_source_is_displayed): Likewise.
5436 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5437 (tui_set_locator_fullname): Likewise.
5438 (tui_set_locator_info): Likewise.
5439 (tui_show_frame_info): Likewise.
5440 * tui/tui-winsource.c (tui_clear_source_content): Likewise.
5441 (tui_show_source_line): Likewise.
5442 (tui_horizontal_source_scroll): Likewise.
5443 (tui_update_breakpoint_info): Likewise.
5444 (tui_set_exec_info_content): Likewise.
5445 (tui_show_exec_info_content): Likewise.
5446 (tui_alloc_source_buffer): Likewise.
5447 (tui_line_is_displayed): Likewise.
5448 (tui_addr_is_displayed): Likewise.
5450 2015-04-27 John Baldwin <jhb@FreeBSD.org>
5452 * fbsd-nat.c: (fbsd_wait) [PL_FLAG_EXEC]: Report TARGET_WAITKIND_EXECD
5453 event if PL_FLAG_EXEC is set.
5454 [PL_FLAG_EXEC] (fbsd_insert_exec_catchpoint): New function.
5455 [PL_FLAG_EXEC] (fbsd_remove_exec_catchpoint): New function.
5456 (fbsd_nat_add_target) [PL_FLAG_EXEC]: Set
5457 "to_insert_exec_catchpoint" to "fbsd_insert_exec_catchpoint".
5458 Set "to_remove_exec_catchpoint" to "fbsd_remove_exec_catchpoint".
5460 2015-04-27 John Baldwin <jhb@FreeBSD.org>
5462 * fbsd-nat.c: [PT_LWPINFO] New variable super_wait.
5463 [TDP_RFPPWAIT] New variable fbsd_pending_children.
5464 [TDP_RFPPWAIT] (fbsd_remember_child): New function.
5465 [TDP_RFPPWAIT] (fbsd_is_child_pending): New function.
5466 [TDP_RFPPWAIT] (fbsd_fetch_kinfo_proc): New function.
5467 [PT_LWPINFO] (fbsd_wait): New function.
5468 [TDP_RFPPWAIT] (fbsd_follow_fork): New function.
5469 [TDP_RFPPWAIT] (fbsd_insert_fork_catchpoint): New function.
5470 [TDP_RFPPWAIT] (fbsd_remove_fork_catchpoint): New function.
5471 [TDP_RFPPWAIT] (fbsd_insert_vfork_catchpoint): New function.
5472 [TDP_RFPPWAIT] (fbsd_remove_vfork_catchpoint): New function.
5473 [TDP_RFPPWAIT] (fbsd_enable_follow_fork): New function.
5474 [TDP_RFPPWAIT] (fbsd_post_startup_inferior): New function.
5475 [TDP_RFPPWAIT] (fbsd_post_attach): New function.
5476 (fbsd_nat_add_target) [PT_LWPINFO] Set "to_wait" to
5478 [TDP_RFPPWAIT] Set "to_follow_fork" to "fbsd_follow_fork".
5479 Set "to_insert_fork_catchpoint" to "fbsd_insert_fork_catchpoint".
5480 Set "to_remove_fork_catchpoint" to "fbsd_remove_fork_catchpoint".
5481 Set "to_insert_vfork_catchpoint" to "fbsd_insert_vfork_catchpoint".
5482 Set "to_remove_vfork_catchpoint" to "fbsd_remove_vfork_catchpoint".
5483 Set "to_post_startup_inferior" to "fbsd_post_startup_inferior".
5484 Set "to_post_attach" to "fbsd_post_attach".
5486 2015-04-27 John Baldwin <jhb@FreeBSD.org>
5488 * fbsd-nat.c (fbsd_pid_to_exec_file): Mark static.
5489 (fbsd_find_memory_regions): Mark static.
5490 (fbsd_nat_add_target): New function.
5491 * fbsd-nat.h: Export fbsd_nat_add_target and remove prototypes for
5492 fbsd_pid_to_exec_file and fbsd_find_memory_regions.
5493 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Use fbsd_nat_add_target.
5494 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
5495 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Likewise.
5496 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Likewise.
5498 2015-04-27 Gary Benson <gbenson@redhat.com>
5500 * objfiles.c (allocate_objfile): Do not attempt to expand name
5501 if name is a "target:" filename.
5502 * auto-load.c (load_auto_scripts_for_objfile): Do not attempt
5503 to load auto-load scripts for objfiles with "target:" filenames.
5505 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5507 * s390-linux-tdep.c: Include "elf/s390.h" and "elf-bfd.h".
5508 (enum s390_vector_abi_kind): New enum.
5509 (struct gdbarch_tdep)<vector_abi>: New field.
5510 (s390_effective_inner_type): Add parameter min_size. Stop
5511 unwrapping if the inner type is smaller than min_size.
5512 (s390_function_arg_float): Adjust call to
5513 s390_effective_inner_type.
5514 (s390_function_arg_vector): New function.
5515 (s390_function_arg_integer): Adjust comment.
5516 (struct s390_arg_state)<vr>: New field.
5517 (s390_handle_arg): Add parameter 'is_unnamed'. Pass vector
5518 arguments according to vector ABI when appropriate.
5519 (s390_push_dummy_call): Initialize the argument state's field
5520 'vr'. Adjust calls to s390_handle_arg.
5521 (s390_register_return_value): Handle vector return values.
5522 (s390_return_value): Apply the "register" return value convention
5523 to a vector when appropriate.
5524 (s390_gdbarch_init): Initialize tdep->vector_abi.
5525 * NEWS: Announce S390 vector ABI support.
5527 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5529 * s390-linux-tdep.c (s390_return_value_convention): Remove
5530 function. Inline its logic...
5531 (s390_return_value): ...here. Instead, move the handling of the
5532 "register" return value convention...
5533 (s390_register_return_value): ...here. New function.
5535 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538 (is_float_singleton): Remove function. Move the "singleton" part
5540 (s390_effective_inner_type): ...here. New function.
5541 (is_float_like): Remove function. Inline its logic...
5542 (s390_function_arg_float): ...here.
5543 (is_pointer_like, is_integer_like, is_struct_like): Remove
5544 functions. Inline their logic...
5545 (s390_function_arg_integer): ...here.
5546 (s390_function_arg_pass_by_reference): Remove function.
5547 (extend_simple_arg): Remove function.
5548 (alignment_of): Remove function.
5549 (struct s390_arg_state): New structure.
5550 (s390_handle_arg): New function.
5551 (s390_push_dummy_call): Move parameter placement logic to the new
5552 function s390_handle_arg. Call it for calculating the stack area
5553 sizes first, and again for actually writing the parameters.
5555 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5557 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
5558 false if the argument is zero.
5560 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
5562 * ada-lang.c (template_to_static_fixed_type): Return input type
5563 when it is already fixed. Cache the input type itself when not
5564 creating a static fixed copy. Make it explicit that we never
5565 molestate the input type.
5566 * gdbtypes.c (resolve_dynamic_struct): Reset the
5567 TYPE_TARGET_TYPE field for resolved copies.
5569 2015-04-27 Joel Brobecker <brobecker@adacore.com>
5571 * ada-lang.c (ada_is_tagged_type): Add call to ada_check_typedef.
5572 (ada_lookup_struct_elt_type): Remove calls to ada_check_typedef.
5573 (template_to_static_fixed_type): Call ada_check_typedef only
5576 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
5578 * cli/cli-dump.c (srec_dump_command): Add internationalization
5580 (ihex_dump_command): Likewise.
5581 (tekhex_dump_command): Likewise.
5582 (binary_dump_command): Likewise.
5583 (binary_append_command): Likewise.
5585 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
5587 * cli/cli-dump.c (verilog_cmdlist): New variable.
5588 (dump_verilog_memory): New function.
5589 (dump_verilog_value): New function.
5590 (verilog_dump_command): New function.
5591 (_initialize_cli_dump): Add new commands to support verilog dump
5593 * NEWS: Add entry for "dump verilog".
5595 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
5597 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
5598 descriptive type when there is none.
5600 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
5602 * tui/tui-win.c (tui_async_resize_screen): Call
5603 rl_resize_terminal().
5605 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
5607 * windows-nat.c (handle_output_debug_string): Don't change
5608 current_event.dwThreadId.
5609 (get_windows_debug_event): Use thread_id, rather than relying on
5610 current_event.dwThreadId being changed.
5612 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
5614 * windows-nat.c (windows_continue): Report an error if
5615 ContinueDebugEvent() fails.
5617 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5619 * windows-nat.c (windows_resume): Fix misspelling in debug output.
5621 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5623 * windows-nat.c (get_windows_debug_event): Replace retval with
5624 thread_id throughout. Update stale comment.
5626 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5628 * windows-nat.c (get_windows_debug_event): Don't use ternary
5629 conditional operator.
5631 2015-04-21 Pierre Muller <muller@sourceware.org>
5634 p-exp.y (yylex): Reorganize code to return the matched pattern
5635 for a field of this.
5637 2015-04-21 Gary Benson <gbenson@redhat.com>
5639 * common/fileio.h (fileio_to_host_openflags): New declaration.
5640 * common/fileio.c (fcntl.h): New include.
5641 (fileio_to_host_openflags): New function, factored out from...
5642 * inf-child.c (inf_child_fileio_open_flags_to_host): ...here.
5645 2015-04-21 Kevin Buettner <kevinb@redhat.com>
5647 * rl78-tdep.c (RL78_SP_ADDR): Define.
5648 (opc_reg_to_gdb_regnum): New static function.
5649 (rl78_analyze_prologue): Recognize instructions forming slightly
5650 more interesting prologues.
5652 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
5655 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
5656 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
5657 TYPE_CODE_REF types so that they are not considered as dynamic
5658 depending on the referenced type.
5659 (resolve_dynamic_type_internal): Likewise.
5661 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
5664 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
5665 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
5666 "top_level" parameter.
5667 (resolve_dynamic_type_internal): Remove the unused "top_level"
5668 parameter. Update call to is_dynamic_type_internal.
5669 (is_dynamic_type): Update call to is_dynamic_type_internal.
5670 (resolve_dynamic_range): Update call to
5671 resolve_dynamic_type_internal.
5672 (resolve_dynamic_union): Likewise.
5673 (resolve_dynamic_struct): Likewise.
5674 (resolve_dynamic_type): Likewise.
5676 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
5678 * breakpoint.c (update_dprintf_command_list): Remove duplicated
5681 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
5683 * reply_mig_hack.awk: Robustify parsing.
5685 * reply_mig_hack.awk: Don't bother to declare an intermediate
5686 function pointer variable.
5688 2015-04-17 Doug Evans <dje@google.com>
5690 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
5691 to "exec_displacement" to avoid confusion with inner use of the name.
5693 2015-04-17 Pedro Alves <palves@redhat.com>
5695 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
5696 if HW point of TYPE isn't supported.
5698 2015-04-17 Yao Qi <yao.qi@linaro.org>
5699 Pedro Alves <palves@redhat.com>
5701 * target.h (target_can_use_hardware_watchpoint): Update comments.
5702 Remove trailing ";".
5704 2015-04-17 Gary Benson <gbenson@redhat.com>
5706 * remote.c (remote_add_inferior): New argument try_open_exec.
5707 If nonzero, attempt to open the inferior's executable file as
5708 the main executable if no main executable is open already.
5709 All callers updated.
5710 * NEWS: Mention that GDB now supports automatic location and
5711 retrieval of executable + files from remote targets.
5713 2015-04-17 Gary Benson <gbenson@redhat.com>
5715 * target.h (TARGET_OBJECT_EXEC_FILE): New enum value.
5716 * remote.c (PACKET_qXfer_exec_file): Likewise.
5717 (remote_protocol_features): Register the
5718 "qXfer:exec-file:read" feature.
5719 (remote_xfer_partial): Handle TARGET_OBJECT_EXEC_FILE.
5720 (remote_pid_to_exec_file): New function.
5721 (init_remote_ops): Initialize to_pid_to_exec_file.
5722 (_initialize_remote): Register new "set/show remote
5723 pid-to-exec-file-packet" command.
5724 * NEWS: Announce new qXfer:exec-file:read packet.
5726 2015-04-17 Gary Benson <gbenson@redhat.com>
5728 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
5730 * nat/linux-procfs.c (linux_proc_pid_to_exec_file):
5731 New function, factored out from...
5732 * linux-nat.c (linux_child_pid_to_exec_file): ...here.
5734 2015-04-17 Gary Benson <gbenson@redhat.com>
5736 * exec.c (solist.h): New include.
5737 (exec_file_locate_attach): Prefix absolute executable
5738 paths with gdb_sysroot if set.
5739 * NEWS: Mention that executable paths may be prepended
5742 2015-04-17 Gary Benson <gbenson@redhat.com>
5744 * solist.h (exec_file_find): New declaration.
5745 * solib.c (solib_find_1): New function, factored out from...
5746 (solib_find): ...here.
5747 (exec_file_find): New function.
5749 2015-04-17 Gary Benson <gbenson@redhat.com>
5751 * gdbcore.h (exec_file_locate_attach): New declaration.
5752 * exec.c (exec_file_locate_attach): New function, factored
5754 * infcmd.c (attach_command_post_wait): ...here.
5756 2015-04-17 Mike Frysinger <vapier@gentoo.org>
5758 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
5760 2015-04-16 Yao Qi <yao.qi@linaro.org>
5762 * infrun.c (maybe_software_singlestep): Declare.
5763 (displaced_step_fixup): Call maybe_software_singlestep.
5765 2015-04-15 Doug Evans <dje@google.com>
5767 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
5769 2015-04-15 Doug Evans <dje@google.com>
5771 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
5773 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
5775 * python/lib/gdb/command/unwinders.py: Add parentheses.
5777 2015-04-15 Yao Qi <yao.qi@linaro.org>
5779 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
5781 2015-04-15 Yao Qi <yao.qi@linaro.org>
5783 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
5785 2015-04-15 Yao Qi <yao.qi@linaro.org>
5787 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5788 dsc->insn_size instead of 4.
5790 2015-04-14 Gary Benson <gbenson@redhat.com>
5792 * jit.c (mem_bfd_iovec_stat): Zero supplied buffer.
5793 * minidebug.c (lzma_stat): Likewise.
5794 * solib-spu.c (spu_bfd_iovec_stat): Likewise.
5795 * spu-linux-nat.c (spu_bfd_iovec_stat): Likewise.
5797 2015-04-13 Stan Shebs <stanshebs@google.com>
5799 * MAINTAINERS: Update my email address.
5801 2015-04-13 John Baldwin <jhb@FreeBSD.org>
5803 * amd64-tdep.c (amd64_target_description): New function.
5804 * amd64-tdep.h: Export amd64_target_description and tdesc_amd64.
5805 * amd64bsd-nat.c [PT_GETXSTATE_INFO]: New variable amd64bsd_xsave_len.
5806 (amd64bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
5807 x86 extended save area.
5808 (amd64bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
5809 * amd64bsd-nat.h: Export amd64bsd_xsave_len.
5810 * amd64fbsd-nat.c (amd64fbsd_read_description): New function.
5811 (_initialize_amd64fbsd_nat): Set "to_read_description" to
5812 "amd64fbsd_read_description".
5813 * amd64fbsd-tdep.c (amd64fbsd_core_read_description): New function.
5814 (amd64fbsd_supply_xstateregset): New function.
5815 (amd64fbsd_collect_xstateregset): New function.
5816 Add "amd64fbsd_xstateregset".
5817 (amd64fbsd_iterate_over_regset_sections): New function.
5818 (amd64fbsd_init_abi): Set "xsave_xcr0_offset" to
5819 "I386_FBSD_XSAVE_XCR0_OFFSET".
5820 Add "iterate_over_regset_sections" gdbarch method.
5821 Add "core_read_description" gdbarch method.
5822 * i386-tdep.c (i386_target_description): New function.
5823 * i386-tdep.h: Export i386_target_description and tdesc_i386.
5824 * i386bsd-nat.c [PT_GETXSTATE_INFO]: New variable i386bsd_xsave_len.
5825 (i386bsd_fetch_inferior_registers) [PT_GETXSTATE_INFO]: Handle
5826 x86 extended save area.
5827 (i386bsd_store_inferior_registers) [PT_GETXSTATE_INFO]: Likewise.
5828 * i386bsd-nat.h: Export i386bsd_xsave_len.
5829 * i386fbsd-nat.c (i386fbsd_read_description): New function.
5830 (_initialize_i386fbsd_nat): Set "to_read_description" to
5831 "i386fbsd_read_description".
5832 * i386fbsd-tdep.c (i386fbsd_core_read_xcr0): New function.
5833 (i386fbsd_core_read_description): New function.
5834 (i386fbsd_supply_xstateregset): New function.
5835 (i386fbsd_collect_xstateregset): New function.
5836 Add "i386fbsd_xstateregset".
5837 (i386fbsd_iterate_over_regset_sections): New function.
5838 (i386fbsd4_init_abi): Set "xsave_xcr0_offset" to
5839 "I386_FBSD_XSAVE_XCR0_OFFSET".
5840 Add "iterate_over_regset_sections" gdbarch method.
5841 Add "core_read_description" gdbarch method.
5842 * i386fbsd-tdep.h: New file.
5844 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5846 * NEWS (Changes since GDB 7.9): Add removed -xdb.
5847 * breakpoint.c (command_line_is_silent): Remove xdb_commands
5849 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
5851 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
5853 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
5855 * defs.h (xdb_commands): Remove declaration.
5856 * f-valprint.c (_initialize_f_valprint): Remove xdb_commands for lc.
5857 * guile/scm-cmd.c (command_classes): Remove xdb from comment.
5858 * infcmd.c (run_no_args_command, go_command): Remove.
5859 (_initialize_infcmd): Remove xdb_commands for S, go, g, R and lr.
5860 * infrun.c (xdb_handle_command): Remove.
5861 (_initialize_infrun): Remove xdb_commands for lz and z.
5862 * main.c (xdb_commands): Remove variable.
5863 (captured_main): Remove "xdb" from long_options.
5864 (print_gdb_help): Remove --xdb from help.
5865 * python/py-cmd.c (gdbpy_initialize_commands): Remove xdb from comment.
5866 * source.c (_initialize_source): Remove xdb_commands for D, ld, / and ?.
5867 * stack.c (backtrace_full_command, args_plus_locals_info)
5868 (current_frame_command): Remove.
5869 (_initialize_stack): Remove xdb_commands for t, T and l.
5870 * symtab.c (_initialize_symtab): Remove xdb_commands for lf and lg.
5871 * thread.c (_initialize_thread): Remove xdb_commands condition.
5872 * tui/tui-layout.c (tui_toggle_layout_command)
5873 (tui_toggle_split_layout_command, tui_handle_xdb_layout): Remove.
5874 (_initialize_tui_layout): Remove xdb_commands for td and ts.
5875 * tui/tui-regs.c (tui_scroll_regs_forward_command)
5876 (tui_scroll_regs_backward_command): Remove.
5877 (_initialize_tui_regs): Remove xdb_commands for fr, gr, sr, +r and -r.
5878 * tui/tui-win.c (tui_xdb_set_win_height_command): Remove.
5879 (_initialize_tui_win): Remove xdb_commands for U and w.
5880 * utils.c (pagination_on_command, pagination_off_command): Remove.
5881 (initialize_utils): Remove xdb_commands for am and sm.
5883 2015-04-10 Pedro Alves <palves@redhat.com>
5885 * infrun.c (displaced_step_fixup): Switch to the event ptid
5886 earlier. If the thread stopped for a watchpoint and the
5887 target/arch has non-continuable watchpoints, cancel the displaced
5889 (resume): Don't start a displaced step if in-line step-over info
5892 2015-04-10 Pedro Alves <palves@redhat.com>
5894 * infrun.c (displaced_step_in_progress): New function.
5895 (do_target_resume): Advise target to report all signals if
5898 2015-04-10 Pedro Alves <palves@redhat.com>
5901 * infrun.c (process_event_stop_test): Don't assume a step-resume
5902 is set if tp->stepped_breakpoint is true.
5904 2015-04-10 Yao Qi <yao.qi@linaro.org>
5906 * arm-tdep.c (install_alu_reg): Update comment.
5907 (thumb_copy_alu_reg): Remove local variable rn. Update
5908 debugging message. Use r2 instead of r1 in the modified
5911 2015-04-10 Pedro Alves <palves@redhat.com>
5914 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
5915 linux_displaced_step_location as gdbarch_displaced_step_location
5917 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
5918 * i386-linux-tdep.c (i386_linux_init_abi): Likewise.
5919 * linux-tdep.c (linux_displaced_step_location): New function,
5920 based on ppc_linux_displaced_step_location.
5921 * linux-tdep.h (linux_displaced_step_location): New declaration.
5922 * ppc-linux-tdep.c (ppc_linux_entry_point_addr): Delete.
5923 (ppc_linux_inferior_created, ppc_linux_displaced_step_location):
5925 (ppc_linux_init_abi): Install linux_displaced_step_location as
5926 gdbarch_displaced_step_location hook, even without Cell/B.E..
5927 (_initialize_ppc_linux_tdep): Don't install
5928 ppc_linux_inferior_created as inferior_created observer.
5929 * s390-linux-tdep.c (s390_gdbarch_init): Install
5930 linux_displaced_step_location as gdbarch_displaced_step_location
5933 2015-04-09 Gary Benson <gbenson@redhat.com>
5935 * common/common-remote-fileio.h: Rename to...
5936 * common/fileio.h: ...this. Update all references.
5937 (remote_fileio_to_fio_error): Rename to...
5938 (host_to_fileio_error): ...this.
5939 (remote_fileio_to_be): Rename to...
5940 (host_to_bigendian): ...this. Update all callers.
5941 (remote_fileio_to_fio_uint): Rename to...
5942 (host_to_fileio_uint): ...this. Update all callers.
5943 (remote_fileio_to_fio_time): Rename to...
5944 (host_to_fileio_time): ...this. Update all callers.
5945 (remote_fileio_to_fio_stat): Rename to...
5946 (host_to_fileio_stat): ...this.
5947 Update all references.
5948 * common/common-remote-fileio.c: Rename to...
5949 * common/fileio.c: ...this. Update all references.
5950 (remote_fileio_to_fio_error): Rename to...
5951 (host_to_fileio_error): ...this. Update all callers.
5952 (remote_fileio_mode_to_target): Rename to...
5953 (fileio_mode_pack): ...this. Update all callers.
5954 (remote_fileio_to_fio_mode): Rename to...
5955 (host_to_fileio_mode): ...this. Update all callers.
5956 (remote_fileio_to_fio_ulong): Rename to...
5957 (host_to_fileio_ulong): ...this. Update all callers.
5958 (remote_fileio_to_fio_stat): Rename to...
5959 (host_to_fileio_stat): ...this. Update all callers.
5961 2015-04-09 Andy Wingo <wingo@igalia.com>
5963 * guile/scm-frame.c (gdbscm_frame_read_register): New function.
5964 (frame_functions): Bind gdbscm_frame_read_register to
5965 frame-read-register.
5966 * guile/lib/gdb.scm (frame-read-register): Export.
5968 2015-04-09 Gary Benson <gbenson@redhat.com>
5970 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
5972 * common/common-remote-fileio.c (remote_fileio_to_fio_error):
5973 New function, factored out the named functions below.
5974 * inf-child.c (gdb/fileio.h): Remove include.
5975 (common-remote-fileio.h): New include.
5976 (inf_child_errno_to_fileio_error): Remove function. Update
5977 all callers to use remote_fileio_to_fio_error.
5978 * remote-fileio.c (remote_fileio_errno_to_target): Likewise.
5980 2015-04-09 Andy Wingo <wingo@igalia.com>
5982 * MAINTAINERS (Write After Approval): Add Andy Wingo.
5984 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
5986 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
5987 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
5988 * configure: Regenerated.
5990 2015-04-09 Pedro Alves <palves@redhat.com>
5992 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add strtok_r.
5993 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/strtok_r.m4.
5994 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4: Regenerate.
5995 * gnulib/import/Makefile.am: Update.
5996 * gnulib/import/Makefile.in: Update.
5997 * gnulib/import/m4/gnulib-cache.m4: Update.
5998 * gnulib/import/m4/gnulib-comp.m4: Update.
5999 * gnulib/import/m4/strtok_r.m4: New file.
6000 * gnulib/import/strtok_r.c: New file.
6002 2015-04-09 Pedro Alves <palves@redhat.com>
6004 * gnulib/update-gnulib.sh (aclocal version check): Filter out
6005 "called too early to check prototype".
6007 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
6010 * python/py-cmd.c (cmdpy_completer_helper): Adjust function to not
6011 use a caching mechanism. Adjust comments and code to reflect
6012 that. Replace 'sizeof' by 'strlen' when fetching 'wordobj'.
6013 (cmdpy_completer_handle_brkchars): Adjust call to
6014 cmdpy_completer_helper. Call Py_XDECREF for 'resultobj'.
6015 (cmdpy_completer): Likewise.
6017 2015-04-08 Yao Qi <yao.qi@linaro.org>
6019 * spu-tdep.c (spu_gdbarch_init): Don't call
6020 set_gdbarch_cannot_step_breakpoint.
6022 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
6024 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6026 2015-04-07 Pedro Alves <palves@redhat.com>
6028 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): Rename to ...
6029 (ALL_THREADS_SAFE): ... this, and don't skip exited threads.
6030 (delete_exited_threads): New declaration.
6031 * infrun.c (follow_exec): Use ALL_THREADS_SAFE.
6032 * linux-nat.c (linux_nat_update_thread_list): New function.
6033 (linux_nat_add_target): Install it.
6034 * remote.c (remote_update_thread_list): Use ALL_THREADS_SAFE.
6035 * thread.c (prune_threads): Use ALL_THREADS_SAFE.
6036 (delete_exited_threads): New function.
6038 2015-04-07 Pedro Alves <pedro@codesourcery.com>
6040 * infrun.c (resume) <displaced stepping debug output>: Get the
6041 leader thread's regcache, not resume_ptid's.
6043 2015-04-06 Doug Evans <xdje42@gmail.com>
6045 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
6047 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
6048 Include symbol domain in debugging output.
6050 2015-04-06 Pedro Alves <palves@redhat.com>
6051 Bernd Edlinger <bernd.edlinger@hotmail.de>
6053 * configure.ac: Remove the mingw32-specific stub-termcap.o
6054 fallback, and instead fallback to the stub termcap on all hosts.
6055 * configure: Regenerate.
6056 * stub-termcap.c [!__MINGW32__] (PC, BC, UP): Define as weak
6059 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6061 * gdbtypes.c (is_dynamic_type_internal): Remove the unused
6062 "top_level" parameter.
6063 (resolve_dynamic_type_internal): Remove the unused "top_level"
6064 parameter. Update call to is_dynamic_type_internal.
6065 (is_dynamic_type): Update call to is_dynamic_type_internal.
6066 (resolve_dynamic_range): Update call to
6067 resolve_dynamic_type_internal.
6068 (resolve_dynamic_union): Likewise.
6069 (resolve_dynamic_struct): Likewise.
6070 (resolve_dynamic_type): Likewise.
6072 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
6074 * gdbtypes.c (is_dynamic_type_internal): Remove special handling of
6075 TYPE_CODE_REF types so that they are not considered as dynamic
6076 depending on the referenced type.
6077 (resolve_dynamic_type_internal): Likewise.
6079 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
6081 * Makefile.in (top_srcdir): New.
6082 * configure: Regenerated.
6084 2015-04-02 Gary Benson <gbenson@redhat.com>
6086 * NEWS: Announce the new default sysroot of "target:".
6088 2015-04-02 Gary Benson <gbenson@redhat.com>
6090 * main.c (captured_main): Set gdb_sysroot to "target:"
6091 if not otherwise set.
6093 2015-04-02 Gary Benson <gbenson@redhat.com>
6095 * exec.c (exec_file_attach): Support "target:" filenames.
6097 2015-04-02 Gary Benson <gbenson@redhat.com>
6099 * solib.c (solib_find): Strip "target:" prefix from sysroot
6100 if accessing local files.
6102 2015-04-02 Gary Benson <gbenson@redhat.com>
6104 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
6105 checks and error messages.
6107 2015-04-02 Gary Benson <gbenson@redhat.com>
6109 * remote.h (REMOTE_SYSROOT_PREFIX): Remove definition.
6110 (remote_filename_p): Remove declaration.
6111 (remote_bfd_open): Likewise.
6112 * remote.c (remote_bfd_iovec_open): Remove function.
6113 (remote_bfd_iovec_close): Likewise.
6114 (remote_bfd_iovec_pread): Likewise.
6115 (remote_bfd_iovec_stat): Likewise.
6116 (remote_filename_p): Likewise.
6117 (remote_bfd_open): Likewise.
6118 * symfile.h (gdb_bfd_open_maybe_remote): Remove declaration.
6119 * symfile.c (separate_debug_file_exists): Use gdb_bfd_open.
6120 (gdb_bfd_open_maybe_remote): Remove function.
6121 (symfile_bfd_open): Replace remote filename check with
6122 target filename check.
6123 (reread_symbols): Use gdb_bfd_open.
6124 * build-id.c (gdbcore.h): New include.
6125 (build_id_to_debug_bfd): Use gdb_bfd_open.
6126 * infcmd.c (attach_command_post_wait): Remove remote filename
6128 * solib.c (solib_find): Replace remote-specific handling with
6129 target-specific handling. Update comments where necessary.
6130 (solib_bfd_open): Replace remote-specific handling with
6131 target-specific handling.
6132 (gdb_sysroot_changed): New function.
6133 (_initialize_solib): Call the above when gdb_sysroot changes.
6134 * windows-tdep.c (gdbcore.h): New include.
6135 (windows_xfer_shared_library): Use gdb_bfd_open.
6137 2015-04-02 Gary Benson <gbenson@redhat.com>
6139 * gdb/gdb_bfd.h (TARGET_SYSROOT_PREFIX): New definition.
6140 (is_target_filename): New declaration.
6141 (gdb_bfd_has_target_filename): Likewise.
6142 (gdb_bfd_open): Update documentation comment.
6143 * gdb_bfd.c (target.h): New include.
6144 (gdb/fileio.h): Likewise.
6145 (is_target_filename): New function.
6146 (gdb_bfd_has_target_filename): Likewise.
6147 (fileio_errno_to_host): Likewise.
6148 (gdb_bfd_iovec_fileio_open): Likewise.
6149 (gdb_bfd_iovec_fileio_pread): Likewise.
6150 (gdb_bfd_iovec_fileio_close): Likewise.
6151 (gdb_bfd_iovec_fileio_fstat): Likewise.
6152 (gdb_bfd_open): Use target fileio to access paths prefixed
6153 with "target:" where necessary.
6155 2015-04-02 Gary Benson <gbenson@redhat.com>
6157 * target.h (struct target_ops) <to_filesystem_is_local>:
6159 (target_filesystem_is_local): New macro.
6160 * target-delegates.c: Regenerate.
6161 * remote.c (remote_filesystem_is_local): New function.
6162 (init_remote_ops): Initialize to_filesystem_is_local.
6164 2015-04-02 Gary Benson <gbenson@redhat.com>
6166 * target.h (struct target_ops) <to_fileio_fstat>: New field.
6167 (target_fileio_fstat): New declaration.
6168 * target.c (target_fileio_fstat): New function.
6169 * inf-child.c (inf_child_fileio_fstat): Likewise.
6170 (inf_child_target): Initialize to_fileio_fstat.
6171 * remote.c (init_remote_ops): Likewise.
6173 2015-04-01 Sasha Smundak <asmundak@google.com>
6175 * Makefile.in (SUBDIR_PYTHON_OBJS): Add py-unwind.o.
6176 (SUBDIR_PYTHON_SRCS): Add py-unwind.c.
6177 (py-unwind.o): New recipe.
6178 * NEWS: mention Python frame unwinding.
6179 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add
6180 gdb/unwinder.py and gdb/command/unwinder.py
6181 * python/lib/gdb/__init__.py (packages): Add frame_unwinders
6183 (execute_unwinders): New function.
6184 * python/lib/gdb/command/unwinders.py: New file.
6185 * python/lib/gdb/unwinder.py: New file.
6186 * python/py-objfile.c (objfile_object): Add frame_unwinders field.
6187 (objfpy_dealloc): Decrement frame_unwinders reference count.
6188 (objfpy_initialize): Create frame_unwinders list.
6189 (objfpy_get_frame_unwinders): New function.
6190 (objfpy_set_frame_unwinders): Ditto.
6191 (objfile_getset): Add frame_unwinders attribute to Objfile.
6192 * python/py-progspace.c (pspace_object): Add frame_unwinders field.
6193 (pspy_dealloc): Decrement frame_unwinders reference count.
6194 (pspy_initialize): Create frame_unwinders list.
6195 (pspy_get_frame_unwinders): New function.
6196 (pspy_set_frame_unwinders): Ditto.
6197 (pspy_getset): Add frame_unwinders attribute to gdb.Progspace.
6198 * python/py-unwind.c: New file.
6199 * python/python-internal.h (pspy_get_name_unwinders): New prototype.
6200 (objpy_get_frame_unwinders): New prototype.
6201 (gdbpy_initialize_unwind): New prototype.
6202 * python/python.c (gdbpy_apply_type_printers): Call
6203 gdbpy_initialize_unwind.
6205 2015-04-01 Pedro Alves <palves@redhat.com>
6207 * infrun.c (resume): Check currently_stepping after clearing
6208 stepped_breakpoint, not before.
6210 2015-04-01 Pedro Alves <palves@redhat.com>
6212 * infrun.c (print_target_wait_results): Print all the ptid
6215 2015-04-01 Pedro Alves <palves@redhat.com>
6217 * infrun.c (keep_going): Also discard cleanups if inserting
6220 2015-04-01 Pedro Alves <palves@redhat.com>
6222 * infrun.c (wait_for_inferior): Install the
6223 finish_thread_state_cleanup cleanup across the whole function, not
6224 just around handle_inferior_event.
6226 2015-04-01 Pedro Alves <palves@redhat.com>
6228 * infrun.c (resume) <step past permanent breakpoint>: Use
6231 2015-04-01 Pedro Alves <palves@redhat.com>
6233 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
6235 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
6237 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
6239 2015-04-01 Pedro Alves <palves@redhat.com>
6241 * linux-thread-db.c (record_thread): Readd the thread to gdb's
6242 list if it was marked exited.
6244 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
6246 * configure: Regenerated.
6248 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6249 Jan Kratochvil <jan.kratochvil@redhat.com>
6250 Oleg Nesterov <oleg@redhat.com>
6253 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
6254 New enum identifying the various options of the coredump_filter
6256 (struct smaps_vmflags): New struct.
6257 (use_coredump_filter): New variable.
6258 (decode_vmflags): New function.
6259 (mapping_is_anonymous_p): Likewise.
6260 (dump_mapping_p): Likewise.
6261 (linux_find_memory_regions_full): New variables
6262 'coredumpfilter_name', 'coredumpfilterdata', 'pid', 'filterflags'.
6263 Removed variable 'modified'. Read /proc/<PID>/smaps file; improve
6264 parsing of its information. Implement memory mapping filtering
6265 based on its contents.
6266 (show_use_coredump_filter): New function.
6267 (_initialize_linux_tdep): New command 'set use-coredump-filter'.
6268 * NEWS: Mention the possibility of using the
6269 '/proc/PID/coredump_filter' file when generating a corefile.
6270 Mention new command 'set use-coredump-filter'.
6272 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6274 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
6275 read_memory_unsigned_integer.
6277 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
6279 * Makefile.in (ZLIB): New.
6280 (ZLIBINC): Likewise.
6281 (INTERNAL_CFLAGS_BASE): Add $(ZLIBINC).
6282 (CLIBS): Add $(ZLIB).
6283 * acinclude.m4: (GDB_AC_CHECK_BFD): Add $zlibdir to LDFLAGS.
6285 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
6286 * top.c (print_gdb_configuration): Remove --with-zlib and
6288 * config.in: Regenerated.
6289 * configure: Likewise.
6291 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
6293 * NEWS: Mention info os cpus support.
6294 * gdb/nat/linux-osdata.c (linux_xfer_osdata_cpus): New function.
6295 (struct osdata_type): Add cpus entry, reorder the entries in
6298 2015-03-31 Matthias Klose <doko@ubuntu.com>
6300 * compile/compile.c (compile_to_object): Allow triplets with or
6303 2015-03-30 Doug Evans <dje@google.com>
6306 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
6307 klass in VAR_DOMAIN.
6309 2015-03-30 Gary Benson <gbenson@redhat.com>
6311 * remote.c (remote_mourn_1): Remove function. Update all callers
6312 to use remote_mourn.
6313 (extended_remote_mourn_1): Remove function. Update all callers
6314 to use extended_remote_mourn.
6315 (extended_remote_attach_1): Remove function. Update all callers
6316 to use extended_remote_attach.
6318 2015-03-28 James Bowman <james.bowman@ftdichip.com>
6320 * Makefile.in (ALL_TARGET_OBS): Add ft32-tdep.o.
6321 (HFILES_NO_SRCDIR): Add ft32-tdep.h.
6322 (ALLDEPFILES): Add ft32-tdep.c.
6323 * configure.tgt: Add FT32 entry.
6324 * ft32-tdep.c: New file, FT32 target-dependent code.
6325 * ft32-tdep.h: New file, FT32 target-dependent code.
6327 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6330 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6332 * printcmd.c (print_command_1): Move expr variable scope.
6334 2015-03-27 Joel Brobecker <brobecker@adacore.com>
6336 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
6338 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
6340 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
6343 2015-03-26 Joel Brobecker <brobecker@adacore.com>
6345 * dtrace-probe.c (dtrace_process_dof_probe): Contain any
6346 exception raised while parsing the probe arguments.
6347 Force parsing to be done using the C language parser.
6348 * expression.h (parse_expression_with_language): Declare.
6349 * parse.c (parse_expression_with_language): New function.
6351 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
6353 * MAINTAINERS (Write After Approval): Add "Jon Turney".
6355 2015-03-26 Andy Wingo <wingo@igalia.com>
6358 * dwarf2read.c (struct partial_die_info): Add has_const_value
6360 (add_partial_symbol): Don't punt on symbols that have const_value
6362 (read_partial_die): Detect DW_AT_const_value.
6364 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6367 * printcmd.c (print_command_1): Move expr variable scope.
6369 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6372 * printcmd.c (validate_format): Make the parameter cmdname const.
6374 2015-03-26 Don Breazeal <donb@codesourcery.com>
6376 * remote.c (_initialize_remote): Update comment.
6378 2015-03-26 Pedro Alves <palves@redhat.com>
6379 Jon TURNEY <jon.turney@dronecode.org.uk>
6381 * coffread.c (coff_symfile_read): When constructing the name of an
6382 import stub symbol from import symbol for amd64, only skip the
6383 char after _imp_ if the target is underscored (like i386) and the
6384 char is indeed the target's leading char.
6386 2015-03-25 Pedro Alves <palves@redhat.com>
6388 * target.h <to_async>: Replace 'callback' and 'context' parameters
6389 with boolean 'enable' parameter.
6390 (target_async): Replace CALLBACK and CONTEXT parameters with
6391 boolean ENABLE parameter.
6392 * inf-loop.c (inferior_event_handler): Adjust.
6393 * linux-nat.c (linux_nat_attach, linux_nat_resume)
6394 (linux_nat_resume): Adjust.
6395 (async_client_callback, async_client_context): Delete.
6396 (handle_target_event): Call inferior_event_handler directly.
6397 (linux_nat_async): Replace 'callback' and 'context' parameters
6398 with boolean 'enable' parameter. Adjust. Remove references to
6399 async_client_callback and async_client_context.
6400 (linux_nat_close): Adjust.
6401 * record-btrace.c (record_btrace_async): Replace 'callback' and
6402 'context' parameters with boolean 'enable' parameter. Adjust.
6403 (record_btrace_resume): Adjust.
6404 * record-full.c (record_full_async): Replace 'callback' and
6405 'context' parameters with boolean 'enable' parameter. Adjust.
6406 (record_full_resume, record_full_core_resume): Adjust.
6407 * remote.c (struct remote_state) <async_client_callback,
6408 async_client_context>: Delete fields.
6409 (remote_start_remote, extended_remote_attach_1, remote_resume)
6410 (extended_remote_create_inferior): Adjust.
6411 (remote_async_serial_handler): Call inferior_event_handler
6413 (remote_async): Replace 'callback' and 'context' parameters with
6414 boolean 'enable' parameter. Adjust.
6415 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
6417 * target-delegates.c: Regenerate.
6419 2015-03-25 Gary Benson <gbenson@redhat.com>
6420 Pedro Alves <palves@redhat.com>
6422 * target.c (fileio_ft_t): New typedef, define object vector.
6423 (fileio_fhandles): New static variable.
6424 (is_closed_fileio_fh): New macro.
6425 (lowest_closed_fd): New static variable.
6426 (acquire_fileio_fd): New function.
6427 (release_fileio_fd): Likewise.
6428 (fileio_fd_to_fh): New macro.
6429 (target_fileio_open): Wrap the file descriptor on success.
6430 (target_fileio_pwrite): Updated to use wrapped file descriptor.
6431 (target_fileio_pread): Likewise.
6432 (target_fileio_close): Likewise.
6434 2015-03-24 Pedro Alves <palves@redhat.com>
6436 * thread.c (thread_apply_all_command): Take exited threads into
6439 2015-03-24 Pedro Alves <palves@redhat.com>
6441 * infrun.c (resume, proceed): Mention
6442 switch_back_to_stepped_thread, not switch_back_to_stepping.
6444 2015-03-24 Pedro Alves <palves@redhat.com>
6446 * infrun.c (user_visible_resume_ptid): Rewrite going from
6447 most-locked to unlocked instead of the opposite. Move comment ...
6448 * infrun.h (user_visible_resume_ptid): ... here.
6450 2015-03-24 Pedro Alves <palves@redhat.com>
6452 * linux-nat.c (linux_nat_resume): Output debug logs before trying
6453 to resume the event lwp. Use the lwp's ptid instead of the passed
6454 in (maybe wildcard) ptid.
6455 (stop_wait_callback): Tweak debug log output.
6456 (check_stopped_by_breakpoint): Tweak debug log output. Also dump
6458 (linux_nat_filter_event): In debug output, distinguish a
6459 resume_stop SIGSTOP from a delayed SIGSTOP. Output debug logs
6460 before trying to resume the lwp.
6462 2015-03-24 Joel Brobecker <brobecker@adacore.com>
6464 * gdbtypes.h (struct dynamic_prop_list) <prop>: Remove
6465 pointer indirection.
6466 * gdbtypes.c (get_dyn_prop): Adjust, following change above.
6467 (add_dyn_prop, copy_dynamic_prop_list): Likewise.
6469 2015-03-24 Joel Brobecker <brobecker@adacore.com>
6471 * gdbtypes.h (enum dynamic_prop_node_kind) <DYN_PROP_DATA_LOCATION>:
6472 Renames DYN_ATTR_DATA_LOCATION.
6473 (TYPE_DATA_LOCATION): Use DYN_PROP_DATA_LOCATION instead of
6474 DYN_ATTR_DATA_LOCATION.
6475 * dwarf2read.c (set_die_type): Use DYN_PROP_DATA_LOCATION
6476 instead of DYN_ATTR_DATA_LOCATION.
6478 2015-03-24 Pedro Alves <palves@redhat.com>
6480 * breakpoint.c (until_break_command): Adjust call to proceed.
6481 * gdbthread.h (struct thread_control_state) <stepping_command>:
6483 * infcall.c (run_inferior_call): Adjust call to proceed.
6484 * infcmd.c (run_command_1, proceed_thread_callback, continue_1):
6485 Adjust calls to proceed.
6486 (set_step_frame): Set the current thread's step_start_function
6488 (step_once): Adjust calls to proceed.
6489 (jump_command, signal_command, until_next_command)
6490 (finish_backward, finish_forward, proceed_after_attach_callback)
6491 (attach_command_post_wait): Adjust calls to proceed.
6492 * infrun.c (proceed_after_vfork_done): Adjust call to proceed.
6493 (do_target_resume): New function, factored out from ...
6494 (resume): ... here. Remove 'step' parameter. Instead, check
6495 currently_stepping to determine whether the thread should be
6497 (proceed): Remove 'step' parameter and don't set the thread's
6498 step_start_function here. Adjust call to 'resume'.
6499 (handle_inferior_event): Adjust calls to 'resume'.
6500 (switch_back_to_stepped_thread): Use do_target_resume instead of
6502 (keep_going): Adjust calls to 'resume'.
6503 * infrun.h (proceed): Remove 'step' parameter.
6505 * windows-nat.c (do_initial_windows_stuff): Adjust call to
6507 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
6509 2015-03-24 Pedro Alves <palves@redhat.com>
6511 * gdbthread.h (struct thread_control_state) <stepping_command>:
6513 * infcmd.c (step_once): Pass step=1 to clear_proceed_status. Set
6514 the thread's stepping_command field.
6515 * infrun.c (resume): Check the thread's stepping_command flag to
6516 determine which threads should be resumed. Rename 'entry_step'
6518 (clear_proceed_status_thread): Clear 'stepping_command'.
6519 (schedlock_applies): Change parameter type to struct thread_info
6521 (find_thread_needs_step_over): Remove 'step' parameter. Adjust.
6522 (switch_back_to_stepped_thread): Adjust calls to
6523 'schedlock_applies'.
6524 (_initialize_infrun): Adjust "set scheduler-locking step" help.
6526 2015-03-24 Pedro Alves <palves@redhat.com>
6528 * infrun.c (step_start_function): Delete and ...
6529 * gdbthread.h (struct thread_control_state) <step_start_function>:
6530 ... now a field here.
6531 * infrun.c (clear_proceed_status_thread): Clear the thread's
6532 step_start_function.
6533 (proceed, process_event_stop_test, print_stop_event): Adjust.
6535 2015-03-24 Pedro Alves <palves@redhat.com>
6537 * infrun.c (proceed): No longer handle negative step.
6539 2015-03-24 Gary Benson <gbenson@redhat.com>
6541 * nat/x86-linux.h (x86_linux_new_thread): New declaration.
6542 (x86_linux_prepare_to_resume): Likewise.
6543 * x86-linux-nat.c (x86_linux_new_thread):
6544 Moved to nat/x86-linux.c.
6545 (x86_linux_prepare_to_resume): Likewise.
6546 * nat/x86-linux.c (x86_linux_new_thread): New function.
6547 (x86_linux_prepare_to_resume): Likewise.
6549 2015-03-24 Gary Benson <gbenson@redhat.com>
6551 * nat/x86-linux-dregs.h: New file.
6552 * nat/x86-linux-dregs.c: Likewise.
6553 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux-dregs.h.
6554 (x86-linux-dregs.o): New rule.
6555 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-dregs.o.
6556 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6557 * x86-linux-nat.c: Include nat/x86-linux-dregs.h.
6558 (u_debugreg_offset): Moved to nat/x86-linux-dregs.c.
6559 (x86_linux_dr_get): Likewise.
6560 (x86_linux_dr_set): Likewise.
6561 (x86_linux_dr_get_addr): Likewise.
6562 (x86_linux_dr_get_control): Likewise.
6563 (x86_linux_dr_get_status): Likewise.
6564 (update_debug_registers_callback): Likewise.
6565 (x86_linux_dr_set_control): Likewise.
6566 (x86_linux_dr_set_addr): Likewise.
6567 (x86_linux_update_debug_registers): Likewise.
6569 2015-03-24 Gary Benson <gbenson@redhat.com>
6571 * x86-linux-nat.c (x86_linux_update_debug_registers):
6572 New function, factored out from...
6573 (x86_linux_prepare_to_resume): ...this.
6575 2015-03-24 Gary Benson <gbenson@redhat.com>
6577 * x86-linux-nat.c (x86_linux_dr_get): Update comments.
6578 (x86_linux_dr_set): Likewise.
6579 (x86_linux_dr_get_addr): Likewise.
6580 (x86_linux_dr_get_control): Likewise.
6581 (x86_linux_dr_get_status): Likewise.
6582 (update_debug_registers_callback): Likewise.
6583 (x86_linux_dr_set_control): Likewise.
6584 (x86_linux_dr_set_addr): Likewise.
6585 (x86_linux_prepare_to_resume): Likewise.
6586 (x86_linux_new_thread): Likewise.
6588 2015-03-24 Gary Benson <gbenson@redhat.com>
6590 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
6591 (x86_linux_new_thread): Rename argument.
6593 2015-03-24 Gary Benson <gbenson@redhat.com>
6595 * nat/x86-linux.h: New file.
6596 * nat/x86-linux.c: Likewise.
6597 * Makefile.in (HFILES_NO_SRCDIR): Add nat/x86-linux.h.
6598 (x86-linux.o): New rule.
6599 * config/i386/linux.mh (NATDEPFILES): Add x86-linux.o.
6600 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6601 * nat/linux-nat.h (struct arch_lwp_info): New forward declaration.
6602 (lwp_set_arch_private_info): New declaration.
6603 (lwp_arch_private_info): Likewise.
6604 * linux-nat.c (lwp_set_arch_private_info): New function.
6605 (lwp_arch_private_info): Likewise.
6606 * x86-linux-nat.c: Include nat/x86-linux.h.
6607 (arch_lwp_info): Removed structure.
6608 (update_debug_registers_callback):
6609 Use lwp_set_debug_registers_changed.
6610 (x86_linux_prepare_to_resume): Use lwp_debug_registers_changed
6611 and lwp_set_debug_registers_changed.
6612 (x86_linux_new_thread): Use lwp_set_debug_registers_changed.
6614 2015-03-24 Gary Benson <gbenson@redhat.com>
6616 * nat/linux-nat.h (ptid_of_lwp): New declaration.
6617 (lwp_is_stopped): Likewise.
6618 (lwp_stop_reason): Likewise.
6619 * linux-nat.c (ptid_of_lwp): New function.
6620 (lwp_is_stopped): Likewise.
6621 (lwp_is_stopped_by_watchpoint): Likewise.
6622 * x86-linux-nat.c (update_debug_registers_callback):
6624 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
6627 2015-03-24 Gary Benson <gbenson@redhat.com>
6629 * linux-nat.h (linux_stop_lwp): Move declaration to...
6630 * nat/linux-nat.h (linux_stop_lwp): New declaration.
6632 2015-03-24 Gary Benson <gbenson@redhat.com>
6634 * linux-nat.h: Include nat/linux-nat.h.
6635 (iterate_over_lwps): Move declaration to nat/linux-nat.h.
6636 * nat/linux-nat.h (struct lwp_info): New forward declaration.
6637 (iterate_over_lwps_ftype): New typedef.
6638 (iterate_over_lwps): New declaration.
6639 * linux-nat.h (iterate_over_lwps): Update comment. Use
6640 iterate_over_lwps_ftype. Update callback return value check.
6642 2015-03-24 Gary Benson <gbenson@redhat.com>
6644 * x86-nat.h (x86_debug_reg_state): Move declaration to...
6645 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
6647 2015-03-24 Gary Benson <gbenson@redhat.com>
6649 * nat/linux-nat.h (current_lwp_ptid): New declaration.
6650 * linux-nat.c (current_lwp_ptid): New function.
6651 * x86-linux-nat.c: Include nat/linux-nat.h.
6652 (x86_linux_dr_get_addr): Use current_lwp_ptid.
6653 (x86_linux_dr_get_control): Likewise.
6654 (x86_linux_dr_get_status): Likewise.
6655 (x86_linux_dr_set_control): Likewise.
6656 (x86_linux_dr_set_addr): Likewise.
6658 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
6660 PR breakpoints/16466
6661 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
6663 2015-03-23 Joel Brobecker <brobecker@adacore.com>
6665 * ser-mingw.c (ser_windows_setparity): Fix indentation.
6666 * ser-unix.c (hardwire_setparity): Likewise.
6668 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
6670 * NEWS: Mention set/show serial parity command.
6671 * monitor.c (monitor_open): Call serial_setparity.
6672 * remote.c (remote_open_1): Likewise.
6673 * ser-base.c (ser_base_serparity): New function.
6674 * ser-base.h (ser_base_setparity): Add declaration.
6675 * ser-go32.c (dos_ops): Set "setparity" field.
6676 * ser-mingw.c (ser_windows_raw): Do not set state.fParity and
6678 (ser_windows_setparity): New function.
6679 (hardwire_ops): Add ser_windows_setparity.
6680 (tty_ops): Add NULL for setparity field.
6681 (pipe_ops): Add ser_base_setparity.
6682 (tcp_ops): Likewise.
6683 * ser-pipe.c (pipe_ops): Likewise.
6684 * ser-tcp.c (tcp_ops): Likewise.
6685 * ser-unix.c (hardwire_setparity): Add declaration.
6686 (hardwire_raw): Don't reset PARENB flag.
6687 (hardwire_setparity): New function.
6688 (hardwire_ops): Add hardwire_setparity.
6689 * serial.c (serial_setparity): New function.
6690 (serial_parity): New global.
6691 (parity_none, parity_odd, parity_even, parity_enums, parity):
6693 (set_parity): New function.
6694 (_initialize_serial): Add set/show serial parity commands.
6695 * serial.h (GDBPARITY_NONE): Define.
6696 (GDBPARITY_ODD): Define.
6697 (GDBPARITY_EVEN): Define.
6698 (serial_setparity) Add declaration.
6699 (struct serial_ops): Add setparity field.
6700 * target.h (serial_parity): Add declaration.
6702 2015-03-23 Keith Seitz <keiths@redhat.com>
6704 * linespec.c (linespec_lexer_lex_keyword): Update comment.
6706 2015-03-23 Keith Seitz <keiths@redhat.com>
6708 * breakpoint.c (parse_breakpoint_sals): Use
6709 linespec_lexer_lex_keyword to ascertain if the user specified
6711 * linespec.c [IF_KEYWORD_INDEX]: Define.
6712 (linespec_lexer_lex_keyword): Export.
6713 (struct ls_parser) <keyword_ok>: Remove.
6714 A keyword is only a keyword if not followed by another keyword.
6715 (linespec_lexer_lex_one): Remove keyword_ok handling.
6716 Add comment explaining why the parsing stream is not advanced
6717 when a keyword is seen.
6718 (parse_linespec): Remove parser->keyword_ok.
6719 * linespec.h (linespec_lexer_lex_keyword): Add declaration.
6721 2015-03-23 Keith Seitz <keiths@redhat.com>
6724 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
6725 if we find a static method with DW_AT_vtable_elem_location.
6727 2015-03-21 Eli Zaretskii <eliz@gnu.org>
6729 * tui/tui-io.c (tui_expand_tabs): Reinitialize the column counter
6730 before the second loop, to avoid undefined behavior. Reported by
6731 Anton Blanchard <anton@samba.org>.
6733 2015-03-20 Keven Boell <keven.boell@intel.com>
6735 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
6736 data_location usage to linked list.
6737 (resolve_dynamic_type_internal): Adapt data_location to
6739 (get_dyn_prop, add_dyn_prop, copy_dynamic_prop_list): New function.
6740 (copy_type_recursive, copy_type): Add copy of linked list.
6741 * gdbtypes.h (enum dynamic_prop_node_kind): New enum.
6742 (struct dynamic_prop_list): New struct.
6743 * dwarf2read.c (set_die_type): Set data_location data.
6745 2015-03-20 Pedro Alves <palves@redhat.com>
6747 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Move "p" to
6748 inner block and make it const.
6749 * machoread.c (get_archive_prefix_len): Make "lparen" const.
6751 2015-03-20 Pedro Alves <palves@redhat.com>
6753 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
6754 * breakpoint.h (set_breakpoint_condition): Update declaration.
6756 2015-03-20 Pedro Alves <palves@redhat.com>
6758 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
6760 2015-03-20 Pedro Alves <palves@redhat.com>
6762 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
6764 2015-03-20 Pedro Alves <palves@redhat.com>
6766 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
6768 2015-03-20 Pedro Alves <palves@redhat.com>
6770 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
6771 (nto_init_solib_absolute_prefix): Likewise.
6773 2015-03-20 Pedro Alves <palves@redhat.com>
6775 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
6776 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
6778 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6780 * config/djgpp/README: Remove gdb.hp.
6782 2015-03-20 Yao Qi <yao.qi@linaro.org>
6784 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6785 set_gdbarch_cannot_step_breakpoint.
6787 2015-03-19 Pedro Alves <palves@redhat.com>
6789 * linux-nat.c (linux_resume_one_lwp): Rename to ...
6790 (linux_resume_one_lwp_throw): ... this. Don't handle ESRCH here,
6791 instead call perror_with_name.
6792 (check_ptrace_stopped_lwp_gone): New function.
6793 (linux_resume_one_lwp): Reimplement as wrapper around
6794 linux_resume_one_lwp_throw that swallows errors if the LWP is
6796 (resume_stopped_resumed_lwps): Try register reads in TRY/CATCH and
6797 swallows errors if the LWP is gone. Use
6798 linux_resume_one_lwp_throw instead of linux_resume_one_lwp.
6800 2015-03-19 Pedro Alves <palves@redhat.com>
6802 * linux-nat.c (status_callback): Return early if the LWP has no
6805 2015-03-19 Pedro Alves <palves@redhat.com>
6807 * linux-nat.c (select_event_lwp_callback): Update comment to no
6808 longer mention SIGTRAP.
6810 2015-03-18 Tristan Gingold <gingold@adacore.com>
6812 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Move
6813 redirection code to ...
6814 (amd64_windows_frame_decode_insns): ... Here. Fix in prologue
6815 checks. Fix SAVE_NONVOL operations. Add debug code and comments.
6817 2015-03-18 Gary Benson <gbenson@redhat.com>
6819 (remote_protocol_features): Remove the "vFile:fstat" feature.
6820 (remote_hostio_fstat): Probe for "vFile:fstat" support.
6822 2015-03-11 Yao Qi <yao.qi@linaro.org>
6825 * aarch64-linux-tdep.c: Include xml-syscall.h
6826 (aarch64_linux_get_syscall_number): New function.
6827 (aarch64_linux_init_abi): Call
6828 set_gdbarch_get_syscall_number.
6829 * syscalls/aarch64-linux.xml: New file.
6831 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
6833 * ser-base.h (ser_base_setstopbits): Change second argument name
6834 from "rate" to "num".
6836 2015-03-17 Gary Benson <gbenson@redhat.com>
6837 Luke Allardyce <lukeallardyce@gmail.com>
6840 * common/common-remote-fileio.h (sys/stat.h): New include.
6841 (stuct stat): Remove forward declaration.
6843 2015-03-16 John Baldwin <jhb@FreeBSD.org>
6845 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
6846 before writing core register notes.
6848 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
6849 Pedro Alves <palves@redhat.com>
6851 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
6852 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
6853 (tgoto): Wrap with extern "C".
6855 2015-03-16 Pedro Alves <palves@redhat.com>
6856 Yuanhui Zhang <asmwarrior@gmail.com>
6858 * stub-termcap.c (tputs): Change prototype.
6860 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
6861 Pedro Alves <palves@redhat.com>
6863 * windows-nat.c (struct thread_info_struct): Rename to ...
6864 (struct windows_thread_info_struct): ... this.
6865 (thread_info): Rename to ...
6866 (windows_thread_info): ... this.
6869 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6870 Pedro Alves <palves@redhat.com>
6872 * NEWS: New Removed targets and native configurations.
6874 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6877 * Makefile.in (ALL_64_TARGET_OBS): Remove ia64-hpux-tdep.o.
6878 (ALL_TARGET_OBS): Remove hppa-hpux-tdep.o, solib-som.o and solib-pa64.o.
6879 (HFILES_NO_SRCDIR): Remove solib-som.h, inf-ttrace.h, solib-pa64.h and
6880 ia64-hpux-tdep.h, solib-ia64-hpux.h.
6881 (ALLDEPFILES): Remove hppa-hpux-tdep.c, hppa-hpux-nat.c,
6882 ia64-hpux-nat.c, ia64-hpux-tdep.c, somread.c and solib-som.c.
6883 * config/djgpp/fnchange.lst: Remove hppa-hpux-nat.c and
6885 * config/ia64/hpux.mh: Remove file.
6886 * config/pa/hpux.mh: Remove file.
6887 * configure: Rebuilt.
6888 * configure.ac (dlgetmodinfo, somread.o): Remove.
6889 * configure.host (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
6890 (ia64-*-hpux*): Remove its float format exception.
6891 * configure.tgt (hppa*-*-hpux*, ia64-*-hpux*): Make them obsolete.
6892 * hppa-hpux-nat.c: Remove file.
6893 * hppa-hpux-tdep.c: Remove file.
6894 * hppa-tdep.c (struct hppa_unwind_info, struct hppa_objfile_private):
6895 Move them here from hppa-tdep.h
6896 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Make it static.
6897 (hppa_frame_prev_register_helper): Remove HPPA_FLAGS_REGNUM exception.
6898 * hppa-tdep.h (struct hppa_unwind_info, struct hppa_objfile_private):
6899 Move them to hppa-tdep.c.
6900 (hppa_objfile_priv_data, hppa_init_objfile_priv_data): Remove
6902 * ia64-hpux-nat.c: Remove file.
6903 * ia64-hpux-tdep.c: Remove file.
6904 * ia64-hpux-tdep.h: Remove file.
6905 * inf-ttrace.c: Remove file.
6906 * inf-ttrace.h: Remove file.
6907 * solib-ia64-hpux.c: Remove file.
6908 * solib-ia64-hpux.h: Remove file.
6909 * solib-pa64.c: Remove file.
6910 * solib-pa64.h: Remove file.
6911 * solib-som.c: Remove file.
6912 * solib-som.h: Remove file.
6913 * somread.c: Remove file.
6915 2015-03-13 John Baldwin <jhb@FreeBSD.org>
6917 * configure.ac: AC_SEARCH_LIBS(kinfo_getvmmap, util).
6918 * config.in: Regenerate.
6919 * configure: Regenerate.
6920 * fbsd-nat.c [!HAVE_KINFO_GETVMMAP] (fbsd_read_mapping): Don't
6922 (fbsd_find_memory_regions): Use kinfo_getvmmap to
6923 enumerate memory regions if present.
6925 2015-03-13 John Baldwin <jhb@FreeBSD.org>
6927 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
6928 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
6930 (i386fbsd_sigtramp_p): Likewise.
6932 2015-03-12 John Baldwin <jhb@FreeBSD.org>
6934 * MAINTAINERS (Write After Approval): Add John Baldwin.
6936 2015-03-12 Gary Benson <gbenson@redhat.com>
6938 * solib.c (_initialize_solib): Make "set/show sysroot" use
6939 add_setshow_optional_filename_cmd so it can be restored to
6940 empty after being set.
6942 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
6944 * Makefile.in (SFILES): New source break-catch-syscall.c.
6945 (COMMON_OBS): New object break-catch-syscall.o.
6946 * break-catch-syscall.c: New file.
6947 * breakpoint.c: Remove inclusion of "xml-syscall.h".
6948 (syscall_catchpoint_p): Move declaration to break-catch-syscall.c
6949 (struct syscall_catchpoint): Likewise.
6950 (dtor_catch_syscall): Likewise.
6951 (catch_syscall_inferior_data): Likewise.
6952 (struct catch_syscall_inferior_data): Likewise.
6953 (get_catch_syscall_inferior_data): Likewise.
6954 (catch_syscall_inferior_data_cleanup): Likewise.
6955 (insert_catch_syscall): Likewise.
6956 (remove_catch_syscall): Likewise.
6957 (breakpoint_hit_catch_syscall): Likewise.
6958 (print_it_catch_syscall): Likewise.
6959 (print_one_catch_syscall): Likewise.
6960 (print_mention_catch_syscall): Likewise.
6961 (print_recreate_catch_syscall): Likewise.
6962 (catch_syscall_breakpoint_ops): Likewise.
6963 (syscall_catchpoint_p): Likewise.
6964 (create_syscall_event_catchpoint): Likewise.
6965 (catch_syscall_split_args): Likewise.
6966 (catch_syscall_command_1): Likewise.
6967 (is_syscall_catchpoint_enabled): Likewise.
6968 (catch_syscall_enabled): Likewise.
6969 (catching_syscall_number): Likewise.
6970 (catch_syscall_completer): Likewise.
6971 (clear_syscall_counts): Likewise.
6972 (initialize_breakpoint_ops): Move initialization of syscall
6973 catchpoints to break-catch-syscall.c.
6974 (_initialize_breakpoint): Move code related to syscall catchpoints
6975 to break-catch-syscall.c.
6977 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
6979 * breakpoint.c (breakpoint_find_if): New function.
6980 * breakpoint.h (breakpoint_find_if): New prototype.
6982 2015-03-11 Gary Benson <gbenson@redhat.com>
6984 * remote-fileio.h (remote_fileio_to_host_stat): New declaration.
6985 * remote-fileio.c (remote_fileio_to_host_uint): New function.
6986 (remote_fileio_to_host_ulong): Likewise.
6987 (remote_fileio_to_host_mode): Likewise.
6988 (remote_fileio_to_host_time): Likewise.
6989 (remote_fileio_to_host_stat): Likewise.
6990 * remote.c (PACKET_vFile_fstat): New enum value.
6991 (remote_protocol_features): Register the "vFile:fstat" feature.
6992 (remote_hostio_fstat): New function.
6993 (remote_bfd_iovec_stat): Use the above.
6994 (_initialize_remote): Register new "set/show remote
6995 hostio-fstat-packet" command.
6996 * symfile.c (separate_debug_file_exists): Update comment.
6997 * NEWS: Announce new vFile:fstat packet.
6999 2015-03-11 Gary Benson <gbenson@redhat.com>
7001 * common/common-remote-fileio.h: New file.
7002 * common/common-remote-fileio.c: Likewise.
7003 * Makefile.in (SFILES): Add common/common-remote-fileio.c.
7004 (HFILES_NO_SRCDIR): Add common/common-remote-fileio.h.
7005 (COMMON_OBS): Add common-remote-fileio.o.
7006 (common-remote-fileio.o): New rule.
7007 * remote-fileio.h (common-remote-fileio.h): New include.
7008 * remote-fileio.c (gdb/fileio.h): Do not include.
7009 (remote_fileio_to_be): Moved to common-remote-fileio.h.
7010 (remote_fileio_to_fio_uint): Likewise.
7011 (remote_fileio_to_fio_time): Likewise.
7012 (remote_fileio_mode_to_target): Moved to common-remote-fileio.c.
7013 (remote_fileio_to_fio_mode): Likewise.
7014 (remote_fileio_to_fio_ulong): Likewise.
7015 (remote_fileio_to_fio_stat): Likewise.
7017 2015-03-11 Andy Wingo <wingo@igalia.com>
7019 * guile/scm-value.c (gdbscm_value_dynamic_type): Fix typo in which
7020 we were checking the cached type, not the cached dynamic type.
7022 2015-03-11 Andy Wingo <wingo@igalia.com>
7024 * guile/scm-cmd.c (cmdscm_destroyer): Don't xfree the name and
7025 other strings, as these are on the GC'd heap, and will be
7026 collected along with the smob.
7028 2015-03-11 Andy Wingo <wingo@igalia.com>
7030 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7031 (objfile_functions): Bind gdbscm_objfile_progspace to
7033 * guile/lib/gdb.scm: Add objfile-progspace to exports.
7035 2015-03-11 Andy Wingo <wingo@igalia.com>
7037 * guile/guile.c (_initialize_guile): Disable automatic
7038 finalization, if Guile offers us that possibility.
7039 * guile/guile.c (call_initialize_gdb_module):
7040 * guile/scm-safe-call.c (gdbscm_with_catch): Arrange to run
7041 finalizers in appropriate places.
7042 * configure.ac (AC_TRY_LIBGUILE): Add a check for
7043 scm_set_automatic_finalization_enabled.
7044 * configure: Regenerated.
7046 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7048 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
7051 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7053 * s390-linux-nat.c (struct arch_lwp_info): New.
7054 (s390_fix_watch_points): Rename to...
7055 (s390_prepare_to_resume): ...this. Skip the PER info update
7056 unless the watch points have changed.
7057 (s390_refresh_per_info, s390_new_thread): New functions.
7058 (s390_insert_watchpoint): Call s390_refresh_per_info instead of
7059 s390_fix_watch_points.
7060 (s390_remove_watchpoint): Likewise.
7061 (_initialize_s390_nat): Reflect renaming of s390_fix_watch_points.
7062 Register s390_prepare_to_resume.
7064 2015-03-09 Pedro Alves <palves@redhat.com>
7067 2015-03-07 Pedro Alves <palves@redhat.com>
7068 * common/gdb_socket.h: New file.
7069 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7071 (net_open): Use union gdb_sockaddr_u.
7073 2015-03-07 Pedro Alves <palves@redhat.com>
7075 * configure.ac (build_warnings): Move -Wmissing-prototypes
7076 -Wdeclaration-after-statement -Wmissing-parameter-type
7077 -Wold-style-declaration -Wold-style-definition to the C-specific
7079 * configure: Regenerate.
7081 2015-03-07 Pedro Alves <palves@redhat.com>
7083 * common/gdb_socket.h: New file.
7084 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7086 (net_open): Use union gdb_sockaddr_u.
7088 2015-03-07 Pedro Alves <palves@redhat.com>
7090 * common/common-exceptions.c [!__cplusplus] (enum catcher_state)
7091 (exceptions_state_mc_action_iter)
7092 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7094 [__cplusplus] (try_scope_depth): New global.
7095 [__cplusplus] (exception_try_scope_entry)
7096 (exception_try_scope_exit, gdb_exception_sliced_copy)
7097 (exception_rethrow): New functions.
7098 (throw_exception): In C++ mode, throw
7099 gdb_exception_RETURN_MASK_QUIT for RETURN_QUIT and
7100 gdb_exception_RETURN_MASK_ERROR for RETURN_ERROR.
7101 (throw_it): In C++ mode, use try_scope_depth.
7102 * common/common-exceptions.h [!__cplusplus]
7103 (exceptions_state_mc_action_iter)
7104 (exceptions_state_mc_action_iter_1, exceptions_state_mc_catch):
7106 [__cplusplus] (exception_try_scope_entry)
7107 (exception_try_scope_exit, exception_rethrow): Declare.
7108 [__cplusplus] (struct exception_try_scope): New struct.
7109 [__cplusplus] (TRY, CATCH, END_CATCH): Reimplement on top of real
7111 (struct gdb_exception_RETURN_MASK_ALL)
7112 (struct gdb_exception_RETURN_MASK_ERROR)
7113 (struct gdb_exception_RETURN_MASK_QUIT): New types.
7115 2015-03-07 Pedro Alves <palves@redhat.com>
7117 * main.c (handle_command_errors): Remove volatile qualifier from
7120 2015-03-07 Pedro Alves <palves@redhat.com>
7122 * breakpoint.c (save_breakpoints): Adjust to avoid code between
7124 * gdbtypes.c (safe_parse_type): Remove empty line.
7125 (types_deeply_equal):
7126 * guile/scm-frame.c (gdbscm_frame_name):
7127 * linux-thread-db.c (find_new_threads_once):
7128 * python/py-breakpoint.c (bppy_get_commands):
7129 * record-btrace.c (record_btrace_insert_breakpoint)
7130 (record_btrace_remove_breakpoint, record_btrace_start_replaying)
7131 (record_btrace_start_replaying): Adjust to avoid code between TRY
7134 2015-03-07 Pedro Alves <palves@redhat.com>
7136 * common/common-exceptions.c (struct catcher) <exception>: No
7137 longer a pointer to volatile exception. Now an exception value.
7138 <mask>: Delete field.
7139 (exceptions_state_mc_init): Remove all parameters. Adjust.
7140 (exceptions_state_mc): No longer pop the catcher here.
7141 (exceptions_state_mc_catch): New function.
7142 (throw_exception): Adjust.
7143 * common/common-exceptions.h (exceptions_state_mc_init): Remove
7145 (exceptions_state_mc_catch): Declare.
7146 (TRY_CATCH): Rename to ...
7147 (TRY): ... this. Remove EXCEPTION and MASK parameters.
7148 (CATCH, END_CATCH): New.
7149 All callers adjusted.
7151 2015-03-07 Tom Tromey <tromey@redhat.com>
7153 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
7155 2015-03-07 Pedro Alves <palves@redhat.com>
7157 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
7158 (amd64_epilogue_frame_cache): Normal exception handling code.
7159 * break-catch-throw.c (check_status_exception_catchpoint)
7160 (re_set_exception_catchpoint): Ditto.
7161 * cli/cli-interp.c (safe_execute_command):
7162 * cli/cli-script.c (script_from_file): Ditto.
7163 * compile/compile-c-symbols.c (generate_c_for_for_one_variable):
7165 * compile/compile-object-run.c (compile_object_run): Ditto.
7166 * cp-abi.c (baseclass_offset): Ditto.
7167 * cp-valprint.c (cp_print_value): Ditto.
7168 * exceptions.c (catch_exceptions_with_msg):
7169 * frame-unwind.c (frame_unwind_try_unwinder): Ditto.
7170 * frame.c (get_frame_address_in_block_if_available): Ditto.
7171 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
7172 (i386_sigtramp_frame_cache): Ditto.
7173 * infcmd.c (post_create_inferior): Ditto.
7174 * linespec.c (parse_linespec, find_linespec_symbols):
7175 * p-valprint.c (pascal_object_print_value): Ditto.
7176 * parse.c (parse_expression_for_completion): Ditto.
7177 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7178 * remote.c (remote_get_noisy_reply): Ditto.
7179 * s390-linux-tdep.c (s390_frame_unwind_cache): Ditto.
7180 * solib-svr4.c (solib_svr4_r_map): Ditto.
7182 2015-03-06 Gary Benson <gbenson@redhat.com>
7184 * common/common-utils.h (startswith): New inline function.
7185 All places where this logic was used updated to use the above.
7187 2015-03-05 Pedro Alves <palves@redhat.com>
7190 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
7191 after reading the breakpoint's shadow memory.
7193 2015-03-05 Mark Kettenis <kettenis@gnu.org>
7195 * hppabsd-nat.c: Remove file.
7196 * hppaobsd-nat.c: New file.
7197 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
7199 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
7202 2015-03-04 Pedro Alves <palves@redhat.com>
7204 * target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
7205 (target_decr_pc_after_break): Delete declaration.
7206 * target.c (default_target_decr_pc_after_break)
7207 (target_decr_pc_after_break): Delete.
7208 * linux-nat.c (check_stopped_by_breakpoint, linux_nat_wait_1): Use
7209 gdbarch_decr_pc_after_break instead of target_decr_pc_after_break.
7210 * linux-thread-db.c (check_event): Likewise.
7211 * infrun.c (adjust_pc_after_break): Likewise.
7212 * darwin-nat.c (cancel_breakpoint): Likewise.
7213 * aix-thread.c (aix_thread_wait): Likewise.
7214 * target-delegates.c: Regenerate.
7216 2015-03-04 Pedro Alves <palves@redhat.com>
7218 * linux-nat.c (save_sigtrap): Check for breakpoints before
7219 checking watchpoints.
7220 (status_callback) [USE_SIGTRAP_SIGINFO]: Don't check whether a
7221 breakpoint is inserted if relying on SIGTRAP's siginfo.si_code.
7222 (check_stopped_by_breakpoint) [USE_SIGTRAP_SIGINFO]: Decide whether
7223 a breakpoint triggered based on the SIGTRAP's siginfo.si_code.
7224 (linux_nat_stopped_by_sw_breakpoint)
7225 (linux_nat_supports_stopped_by_sw_breakpoint)
7226 (linux_nat_stopped_by_hw_breakpoint)
7227 (linux_nat_supports_stopped_by_hw_breakpoint): New functions.
7228 (linux_nat_wait_1): Don't re-increment the PC if relying on
7229 SIGTRAP's siginfo->si_code.
7230 (linux_nat_add_target): Install new target methods.
7231 * linux-thread-db.c (check_event): Don't account for breakpoint PC
7232 offset if the target already adjusted the PC.
7233 * nat/linux-ptrace.h (USE_SIGTRAP_SIGINFO): New.
7234 (GDB_ARCH_TRAP_BRKPT): New.
7235 (TRAP_HWBKPT): Define if not already defined.
7237 2015-03-04 Pedro Alves <palves@redhat.com>
7239 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
7240 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
7242 <stop_reason>: New field.
7243 (PACKET_swbreak_feature, PACKET_hwbreak_feature): New enum values.
7244 (packet_set_cmd_state): New function.
7245 (remote_protocol_features): Register the "swbreak" and "hwbreak"
7247 (remote_query_supported): If not disabled with the corresponding
7248 "set remote foo-packet" command, report support for the swbreak
7249 and hwbreak features.
7250 (struct stop_reply) <remote_stopped_by_watchpoint_p>: Delete
7252 <stop_reason>: New field.
7253 (remote_parse_stop_reply): Handle "swbreak" and "hwbreak".
7254 (remote_wait_as): Adjust.
7255 (remote_stopped_by_sw_breakpoint)
7256 (remote_supports_stopped_by_sw_breakpoint)
7257 (remote_stopped_by_hw_breakpoint)
7258 (remote_supports_stopped_by_hw_breakpoint): New functions.
7259 (remote_stopped_by_watchpoint): New function.
7260 (init_remote_ops): Install them.
7261 (_initialize_remote): Register new "set/show remote
7262 swbreak-feature-packet" and "set/show remote
7263 swbreak-feature-packet" commands.
7265 2015-03-04 Pedro Alves <palves@redhat.com>
7267 * btrace.h: Include target/waitstatus.h.
7268 (struct btrace_thread_info) <stop_reason>: New field.
7269 * record-btrace.c (record_btrace_step_thread): Use
7270 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7271 (record_btrace_decr_pc_after_break): Delete.
7272 (record_btrace_stopped_by_sw_breakpoint)
7273 (record_btrace_supports_stopped_by_sw_breakpoint)
7274 (record_btrace_stopped_by_hw_breakpoint)
7275 (record_btrace_supports_stopped_by_hw_breakpoint): New functions.
7276 (init_record_btrace_ops): Install them.
7277 * record-full.c (record_full_hw_watchpoint): Delete and replace
7279 (record_full_stop_reason): ... this throughout.
7280 (record_full_exec_insn): Adjust.
7281 (record_full_wait_1): Adjust. No longer re-increment the PC.
7282 (record_full_wait_1): Adjust. Use
7283 record_check_stopped_by_breakpoint instead of breakpoint_here_p.
7284 (record_full_stopped_by_watchpoint): Adjust.
7285 (record_full_stopped_by_sw_breakpoint)
7286 (record_full_supports_stopped_by_sw_breakpoint)
7287 (record_full_supports_stopped_by_sw_breakpoint)
7288 (record_full_stopped_by_hw_breakpoint)
7289 (record_full_supports_stopped_by_hw_breakpoint): New functions.
7290 (init_record_full_ops, init_record_full_core_ops): Install them.
7291 * record.c (record_check_stopped_by_breakpoint): New function.
7292 * record.h: Include target/waitstatus.h.
7293 (record_check_stopped_by_breakpoint): New declaration.
7295 2015-03-04 Pedro Alves <palves@redhat.com>
7297 enum lwp_stop_reason -> enum target_stop_reason
7298 * linux-nat.c (linux_resume_one_lwp, check_stopped_by_watchpoint)
7299 (linux_nat_stopped_by_watchpoint, status_callback)
7300 (linux_nat_wait_1): Adjust.
7301 * linux-nat.h (enum lwp_stop_reason): Delete.
7302 (struct lwp_info) <stop_reason>: Now an enum target_stop_reason.
7303 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
7304 * target/waitstatus.h (enum target_stop_reason): New.
7306 2015-03-04 Pedro Alves <palves@redhat.com>
7308 * breakpoint.c (need_moribund_for_location_type): New function.
7309 (bpstat_stop_status): Don't skipping checking moribund locations
7310 of breakpoint types which the target tell caused a stop.
7311 (program_breakpoint_here_p): New function, factored out from ...
7312 (bp_loc_is_permanent): ... this.
7313 (update_global_location_list): Don't create a moribund location if
7314 the target supports reporting stops of the type of the removed
7316 * breakpoint.h (program_breakpoint_here_p): New declaration.
7317 * infrun.c (adjust_pc_after_break): Return early if the target has
7318 already adjusted the PC. Add comments.
7319 (handle_signal_stop): If nothing explains a signal, and the target
7320 tells us the stop was caused by a software breakpoint, check if
7321 there's a breakpoint instruction in the memory. If so, adjust the
7322 PC before presenting the stop to the user. Otherwise, ignore the
7323 trap. If nothing explains a signal, and the target tells us the
7324 stop was caused by a hardware breakpoint, ignore the trap.
7325 * target.h (struct target_ops) <to_stopped_by_sw_breakpoint,
7326 to_supports_stopped_by_sw_breakpoint, to_stopped_by_hw_breakpoint,
7327 to_supports_stopped_by_hw_breakpoint>: New fields.
7328 (target_stopped_by_sw_breakpoint)
7329 (target_supports_stopped_by_sw_breakpoint)
7330 (target_stopped_by_hw_breakpoint)
7331 (target_supports_stopped_by_hw_breakpoint): Define.
7332 * target-delegates.c: Regenerate.
7334 2015-03-04 Pedro Alves <palves@redhat.com>
7336 * infrun.c (follow_fork_inferior): Use the whole of the
7337 inferior_ptid and pending_follow.related_pid ptids instead of
7338 building ptids from the process components. Adjust verbose output
7339 to use target_pid_to_str.
7340 * linux-nat.c (linux_child_follow_fork): Use the whole of the
7341 inferior_ptid and pending_follow.related_pid ptids instead of
7342 building ptids from the process components.
7344 2015-03-04 Mark Kettenis <kettenis@gnu.org>
7346 * inf-ptrace.c [PT_GET_PROCESS_STATE]
7347 (inf_ptrace_insert_fork_catchpoint): New function.
7348 (inf_ptrace_remove_fork_catchpoint): New function.
7349 (inf_ptrace_target) [PT_GET_PROCESS_STATE]: Install them.
7351 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7353 * s390-linux-tdep.c (s390_register_name): Return empty string
7354 instead of NULL for registers that shouldn't be visible.
7356 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7358 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
7359 XML file for 64-bit targets.
7361 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
7363 * target.h (find_default_create_inferior): Remove declaration.
7364 (find_default_attach): Likewise.
7366 2015-03-03 Pedro Alves <palves@redhat.com>
7368 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
7369 Use ptid_get_pid to get the overall process id when resuming all
7372 2015-03-03 Pedro Alves <palves@redhat.com>
7374 * i386-linux-nat.c (i386_linux_resume): Get the ptrace PID out of
7375 the lwp field of ptid. Pass the full ptid to get_thread_regcache.
7376 * inf-ptrace.c (get_ptrace_pid): New function.
7377 (inf_ptrace_resume): Use it.
7378 * linux-nat.c (linux_resume_one_lwp): Pass the LWP's ptid ummodified
7381 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7383 * nat/linux-btrace.c: Include sys/utsname.h.
7384 (linux_determine_kernel_ptr_bits): New.
7385 (linux_enable_bts): Call linux_determine_kernel_ptr_bits.
7386 * x86-linux-nat.c (x86_linux_enable_btrace): Do not overwrite non-zero
7389 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7391 * btrace.c (ftrace_update_function): Treat return as tailcall for
7392 "_dl_runtime_resolve".
7394 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7396 * btrace.h (btrace_function) <lbegin, lend>: Remove.
7397 * btrace.c (ftrace_debug): Do not print the line range.
7398 (ftrace_skip_file, ftrace_update_lines): Remove.
7399 (ftrace_new_function): Remove lbegin and lend initialization.
7400 (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
7401 * record-btrace.c (btrace_compute_src_line_range): New.
7402 (btrace_call_history_src_line): Call btrace_compute_src_line_range.
7404 2015-03-02 Pedro Alves <palves@redhat.com>
7406 * infrun.c (follow_exec): Delete all threads of the process except
7407 the event thread. Extended comments.
7409 2015-03-02 Joel Brobecker <brobecker@adacore.com>
7411 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
7413 2015-03-02 Joel Brobecker <brobecker@adacore.com>
7415 * utils.h: Remove <stdbool.h> #include.
7416 (producer_is_gcc): Change return type to "int".
7417 * utils.c (producer_is_gcc): Change return type to int.
7418 Return 1 instead of true, and 0 instead of false.
7419 Adjust function documentation accordingly.
7421 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7423 * s390-linux-nat.c (have_regset_vxrs): New static variable.
7424 (s390_linux_fetch_inferior_registers): Handle vector registers, if
7426 (s390_linux_store_inferior_registers): Likewise.
7427 (s390_get_hwcap): Remove function. Embed its logic...
7428 (s390_read_description): ...here. Yield a target description with
7429 vector registers if applicable.
7430 * s390-linux-tdep.c: Include "features/s390-vx-linux64.c",
7431 "features/s390-tevx-linux64.c", "features/s390x-vx-linux64.c", and
7432 "features/s390x-tevx-linux64.c".
7433 (struct gdbarch_tdep) <v0_full_regnum>: New field.
7434 (s390_dwarf_regmap): Add vector registers. Remove bogus entries
7435 for "GNU/Linux-specific registers".
7436 (s390_dwarf_reg_r0l): New enum value.
7437 (s390_dwarf_reg_to_regnum): Support vector registers.
7438 (s390_adjust_frame_regnum): Adjust pseudo DWARF register numbers
7439 of GPR lower halves.
7440 (regnum_is_vxr_full): New function.
7441 (s390_register_name): New function.
7442 (s390_pseudo_register_name): Handle v0-v15, which are composed of
7443 f0-f15 and v0l-v15l.
7444 (s390_pseudo_register_type): Likewise.
7445 (s390_pseudo_register_read): Likewise.
7446 (s390_pseudo_register_write): Likewise.
7447 (s390_value_from_register): Account for the fact that values are
7448 placed left-justified in vector registers.
7449 (s390_pseudo_register_reggroup_p): Add pseudo registers v0-v15 to
7450 the vector reggroup and omit them from the general reggroup.
7451 (s390_regmap_vxrs_low, s390_regmap_vxrs_high): New register maps.
7452 (s390_vxrs_low_regset, s390_vxrs_high_regset): New regsets.
7453 (s390_iterate_over_regset_sections): Add iterations for the two
7455 (s390_core_read_description): Yield a target description with
7456 vector registers if applicable.
7457 (s390_gdbarch_init): Handle target descriptions with vector
7458 registers. Add "register_name" gdbarch method.
7459 (_initialize_s390_tdep): Call new tdesc initialization functions.
7460 * s390-linux-tdep.h (HWCAP_S390_VX): New macro.
7461 (S390_V0_LOWER_REGNUM, S390_V1_LOWER_REGNUM, S390_V2_LOWER_REGNUM)
7462 (S390_V3_LOWER_REGNUM, S390_V4_LOWER_REGNUM, S390_V5_LOWER_REGNUM)
7463 (S390_V6_LOWER_REGNUM, S390_V7_LOWER_REGNUM, S390_V8_LOWER_REGNUM)
7464 (S390_V9_LOWER_REGNUM, S390_V10_LOWER_REGNUM)
7465 (S390_V11_LOWER_REGNUM, S390_V12_LOWER_REGNUM)
7466 (S390_V13_LOWER_REGNUM, S390_V14_LOWER_REGNUM)
7467 (S390_V15_LOWER_REGNUM, S390_V16_REGNUM, S390_V17_REGNUM)
7468 (S390_V18_REGNUM, S390_V19_REGNUM, S390_V20_REGNUM)
7469 (S390_V21_REGNUM, S390_V22_REGNUM, S390_V23_REGNUM)
7470 (S390_V24_REGNUM, S390_V25_REGNUM, S390_V26_REGNUM)
7471 (S390_V27_REGNUM, S390_V28_REGNUM, S390_V29_REGNUM)
7472 (S390_V30_REGNUM, S390_V31_REGNUM): New macros.
7473 (S390_NUM_REGS): Adjust value.
7474 (s390_vxrs_low_regset, s390_vxrs_high_regset): Declare.
7475 (tdesc_s390_vx_linux64, tdesc_s390_tevx_linux64)
7476 (tdesc_s390x_vx_linux64, tdesc_s390x_tevx_linux64): Likewise.
7477 * NEWS: Announce S/390 vector register support.
7479 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7481 * features/s390-tevx-linux64.xml: New file.
7482 * features/s390-vx-linux64.xml: New file.
7483 * features/s390-vx.xml: New file.
7484 * features/s390x-tevx-linux64.xml: New file.
7485 * features/s390x-vx-linux64.xml: New file.
7486 * features/Makefile (WHICH): Add s390-vx-linux64,
7487 s390x-vx-linux64, s390-tevx-linux64, and s390x-tevx-linux64.
7488 (s390-vx-linux64-expedite, s390-tevx-linux64-expedite)
7489 (s390x-vx-linux64-expedite, s390x-tevx-linux64-expedite): New
7491 * features/s390-tevx-linux64.c: New generated file.
7492 * features/s390-vx-linux64.c: Likewise.
7493 * features/s390x-tevx-linux64.c: Likewise.
7494 * features/s390x-vx-linux64.c: Likewise.
7495 * regformats/s390-tevx-linux64.dat: Likewise.
7496 * regformats/s390-vx-linux64.dat: Likewise.
7497 * regformats/s390x-tevx-linux64.dat: Likewise.
7498 * regformats/s390x-vx-linux64.dat: Likewise.
7500 2015-02-28 Doug Evans <xdje42@gmail.com>
7502 * symtab.h (struct symtab) <next>: Fix comment.
7504 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
7506 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
7509 2015-02-27 Pedro Alves <palves@redhat.com>
7511 * dtrace-probe.c (dtrace_probe_ops): Make extern.
7513 2015-02-27 Pedro Alves <palves@redhat.com>
7515 * common/common-exceptions.h (exception_none): Declare.
7516 * common/common-exceptions.c (exception_none): Moved from
7518 (exceptions_state_mc_init): Use exception_none.
7519 * exceptions.c (exception_none): Move to
7520 common/common-exceptions.c.
7521 * exceptions.h (exception_none): Move to
7522 common/common-exceptions.h.
7524 2015-02-27 Pedro Alves <palves@redhat.com>
7526 * main.c (catch_command_errors, catch_command_errors_const):
7527 Remove 'mask' argument. Adjust.
7528 (captured_main): Adjust callers.
7530 2015-02-27 Pedro Alves <palves@redhat.com>
7532 * python/python-internal.h: Include "extension-priv.h".
7534 2015-02-27 Pedro Alves <palves@redhat.com>
7536 * breakpoint.h (enum print_stop_action): Move further up in the
7539 2015-02-27 Pedro Alves <palves@redhat.com>
7541 * gdbarch.sh: Include regcache.h.
7542 * gdbarch.h: Regenerate.
7544 2015-02-27 Pedro Alves <palves@redhat.com>
7546 * arm-tdep.c (decode_insn) <arm_handle_insn, thumb_handle_insn>:
7547 Remove duplicate const.
7548 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Remove
7551 2015-02-27 Pedro Alves <palves@redhat.com>
7553 * cp-valprint.c (vtbl_ptr_name): Use EXPORTED_CONST.
7554 * guile/guile.c (extension_language_guile): Use EXPORTED_CONST.
7555 * features/feature_to_c.sh: Tag the generated xml_builtin array
7556 with extern const in C++ mode.
7558 2015-02-27 Tom Tromey <tromey@redhat.com>
7560 * minidebug.c (struct lzma_stream): Rename to ...
7561 (struct gdb_lzma_stream): ... this.
7562 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
7564 2015-02-27 Pedro Alves <palves@redhat.com>
7566 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
7568 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7569 (mi_cmd_stack_list_variables): Use it.
7571 2015-02-27 Pedro Alves <palves@redhat.com>
7573 * x86-linux-nat.c (u_debugreg_offset): New function.
7574 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7576 2015-02-27 Pedro Alves <palves@redhat.com>
7578 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
7580 Include break-common.h.
7582 2015-02-27 Tom Tromey <tromey@redhat.com>
7583 Pedro Alves <palves@redhat.com>
7585 * arm-tdep.c (set_fp_model_sfunc, arm_set_abi): Use 'int' for
7586 local used to iterate over enums.
7587 * completer.c (signal_completer): Likewise.
7588 * i386-tdep.c (i386_stap_parse_special_token): Likewise.
7589 * rs6000-tdep.c (powerpc_set_vector_abi): Likewise.
7590 * tui/tui-data.c (tui_next_win, tui_prev_win): Likewise.
7591 * tui/tui-layout.c (next_layout, prev_layout): Likewise.
7592 * tui/tui-win.c (tui_refresh_all_win, tui_rehighlight_all)
7593 (tui_resize_all, tui_set_focus_command, tui_all_windows_info): Likewise.
7594 * tui-wingeneral.c (tui_refresh_all): Likewise.
7596 2015-02-27 Pedro Alves <palves@redhat.com>
7598 * target.h: Include "infrun.h".
7600 2015-02-27 Pedro Alves <palves@redhat.com>
7602 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7604 2015-02-27 Pedro Alves <palves@redhat.com>
7606 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
7608 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
7610 2015-02-27 Pedro Alves <palves@redhat.com>
7612 * cli-out.c (_rl_erase_entire_line): Move declaration out of
7613 cli_mld_erase_entire_line, and make it extern "C".
7614 * common/common-defs.h (EXTERN_C): New.
7615 * completer.c (_rl_completion_prefix_display_length)
7616 (_rl_print_completions_horizontally, QSFUNC): Move declarations
7617 out of gdb_display_match_list_1.
7618 (_rl_qsort_string_compare): Move declaration out of
7619 gdb_display_match_list_1, and make it extern "C".
7620 * defs.h (re_comp): Use EXTERN_C.
7621 * maint.c (_mcleanup): Move declaration out of mcleanup_wrapper,
7622 and make it extern "C".
7623 (monstartup): Move declaration out of maintenance_set_profile_cmd,
7624 and make it extern "C".
7625 (main): Move declaration out of maintenance_set_profile_cmd.
7626 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string): Use
7629 2015-02-27 Pedro Alves <palves@redhat.com>
7631 * python/python.c (GdbMethods): Rename to ...
7632 (python_GdbMethods): ... this and make extern.
7633 (GdbModuleDef): Rename to ...
7634 (python_GdbModuleDef): ... this and make extern.
7636 2015-02-27 Pedro Alves <palves@redhat.com>
7638 * record-btrace.c (set_record_btrace_cmdlist)
7639 (show_record_btrace_cmdlist): Remove redefinitions.
7641 2015-02-27 Tom Tromey <tromey@redhat.com>
7642 Pedro Alves <palves@redhat.com>
7644 * dwarf2-frame.c (enum cfa_how_kind, struct
7645 dwarf2_frame_state_reg_info): Move out of struct
7647 * dwarf2read.c (struct tu_stats): Move out of struct
7649 (struct file_entry): Move out of struct line_header.
7650 (struct nextfield, struct nextfnfield, struct fnfieldlist, struct
7651 typedef_field_list): Move out of struct field_info.
7652 * gdbtypes.h (enum dynamic_prop_kind, union dynamic_prop_data):
7653 Move out of struct dynamic_prop.
7654 (union type_owner, union field_location, struct field, struct
7655 range_bounds, union type_specific): Move out of struct main_type.
7656 (struct fn_fieldlist, struct fn_field, struct typedef_field)
7657 (VOFFSET_STATIC): Move out of struct cplus_struct_type.
7658 (struct call_site_target, union call_site_parameter_u, struct
7659 call_site_parameter): Move out of struct call_site.
7660 * m32c-tdep.c (enum m32c_prologue_kind): Move out of struct
7662 (enum srcdest_kind): Move out of struct srcdest.
7663 * main.c (enum cmdarg_kind): Move out of struct cmdarg.
7664 * prologue-value.h (enum prologue_value_kind): Move out of struct
7666 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
7668 * stabsread.c (struct nextfield, struct next_fnfieldlist): Move
7669 out of struct field_info.
7670 * symfile.h (struct other_sections): Move out of struct
7672 * symtab.c (struct symbol_cache_slot): Move out struct
7674 * target-descriptions.c (enum tdesc_type_kind): Move out of
7675 typedef struct tdesc_type.
7676 * tui/tui-data.h (enum tui_line_or_address_kind): Move out of
7677 struct tui_line_or_address.
7678 * value.c (enum internalvar_kind, union internalvar_data): Move
7679 out of struct internalvar.
7680 * xtensa-tdep.h (struct ctype_cache): Move out of struct
7683 2015-02-27 Tom Tromey <tromey@redhat.com>
7684 Pedro Alves <palves@redhat.com>
7686 Rename symbols whose names are reserved C++ keywords throughout.
7688 2015-02-27 Pedro Alves <palves@redhat.com>
7690 * Makefile.in (COMPILER): New, get it from autoconf.
7691 (COMPILE.pre, CC_LD): Use COMPILER.
7692 (CXX): Get from autoconf instead.
7693 (CXX_FOR_TARGET): Default to g++ instead of gcc.
7694 * acinclude.m4: Include build-with-cxx.m4.
7695 * build-with-cxx.m4: New file.
7696 * configure.ac: Call AC_PROG_CXX and GDB_AC_BUILD_WITH_CXX.
7697 Disable -Werror by default if building in C++ mode.
7698 (build_warnings): Add -Wno-sign-compare, -Wno-write-strings and
7699 -Wno-narrowing in C++ mode. Only enable -Wpointer-sign in C mode.
7700 Run supported-warning-flags tests with the C++ compiler.
7701 Save/restore CXXFLAGS too.
7702 * configure: Regenerate.
7704 2015-02-27 Pedro Alves <palves@redhat.com>
7706 * libiberty.m4: New file.
7707 * acinclude.m4: Include libiberty.m4.
7708 * configure.ac: Call libiberty_INIT.
7709 * config.in, configure: Regenerate.
7711 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
7713 * s390-linux-tdep.c (s390_gcc_target_options): Not just handle
7714 31-bit targets, but 64-bit targets as well.
7715 (s390_gnu_triplet_regexp): New function.
7716 (s390_gdbarch_init): Set the gcc_target_options gdbarch method for
7717 64-bit targets as well. Set the gnu_triplet_regexp gdbarch
7720 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
7722 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
7723 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
7724 from CONTEXT_DEBUGGER.
7726 2015-02-26 Doug Evans <dje@google.com>
7728 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
7730 (set_type_vptr_fieldno): Ditto.
7731 (internal_type_vptr_basetype, set_type_vptr_basetype): Ditto.
7732 * gnu-v3-abi.c (gnuv3_dynamic_class): Ditto.
7734 2015-02-26 Pedro Alves <palves@redhat.com>
7736 * auto-load.h (file_is_auto_load_safe): Add ATTRIBUTE_PRINTF.
7737 * complaints.c (vcomplaint): Pass argument FMT directly to
7738 printf-like functions instead of complaint->fmt.
7739 * ctf.c (ctf_save_write_metadata): Add ATTRIBUTE_PRINTF.
7740 * darwin-nat.c (inferior_debug): Add ATTRIBUTE_PRINTF.
7741 * compile/compile-loc2c.c (pushf, unary, binary): Add
7743 (do_compile_dwarf_expr_to_c): Pass string literal as format string
7745 (BINARY): Pass string literal as format string to 'binary'.
7746 * compile/compile-object-load.c (link_callbacks_einfo): Add
7748 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
7750 2015-02-26 Pedro Alves <palves@redhat.com>
7752 * windows-termcap.c: Rename to ...
7753 * stub-termcap.c: ... this. Adjust header line.
7754 * Makefile.in (SFILES): Refer to stub-termcap.c instead of
7756 * configure: Regenerate.
7757 * configure.ac: Refer to stub-termcap.o instead of
7759 * gdb_curses.h: Mention stub-termcap.c instead of
7762 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7764 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
7765 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
7767 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
7769 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
7771 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7773 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
7774 bfd_canonicalize_symtab.
7776 2015-02-25 John Baldwin <jhb@FreeBSD.org>
7778 * amd64fbsd-nat.c: Include sys/user.h.
7779 (_initialize_amd64fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
7780 instead of KERN_PS_STRINGS to locate the signal trampoline.
7781 * i386fbsd-nat.c: Include sys/user.h.
7782 (_initialize_i386fbsd_nat): Use the KERN_PROC_SIGTRAMP sysctl
7783 instead of KERN_PS_STRINGS to locate the signal trampoline.
7784 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_code): New.
7785 (amd64fbsd_sigtramp_p): New.
7786 (amd64fbsd_sigtramp_start_addr, amd64fbsd_sigtramp_end_addr): No
7787 longer set default values.
7788 (amd64fbsd_init_abi): Set "sigtramp_p" to "amd64fbsd_sigtramp_p".
7789 * i386fbsd-tdep.c (i386fbsd_sigtramp_start)
7790 (i386fbsd_sigtramp_middle, i386fbsd_sigtramp_end)
7791 (i386fbsd_freebsd4_sigtramp_start)
7792 (i386fbsd_freebsd4_sigtramp_middle)
7793 (i386fbsd_freebsd4_sigtramp_end, i386fbsd_osigtramp_start)
7794 (i386fbsd_osigtramp_middle, i386fbsd_osigtramp_end): New.
7795 (i386fbsd_sigtramp_p): New.
7796 (i386fbsd_sigtramp_start_addr, i386fbsd_sigtramp_end_addr): No
7797 longer set default values.
7798 (i386fbsd_init_abi): Set "sigtramp_p" to "i386fbsd_sigtramp_p".
7800 2015-02-25 John Baldwin <jhb@freebsd.org>
7802 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
7803 get_frame_register instead of frame_unwind_register_unsigned.
7805 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7808 * compile/compile-c-support.c (c_compute_program): Change // comment.
7809 * compile/compile-object-load.c (setup_sections): Change // comment.
7811 2015-02-26 Joel Brobecker <brobecker@adacore.com>
7814 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
7816 2015-02-23 Pedro Alves <palves@redhat.com>
7818 * remote.c (skip_to_semicolon): New function.
7819 (remote_parse_stop_reply) <T stop reply>: Use it. Don't
7820 special case the stop reasons that look like hex numbers
7821 upfront. Instead handle real register numbers after matching
7822 all the known stop reasons.
7824 2015-02-21 Doug Evans <dje@google.com>
7826 PR c++/17976, symtab/17821
7827 * cp-namespace.c (cp_search_static_and_baseclasses): New parameter
7828 is_in_anonymous. All callers updated.
7829 (find_symbol_in_baseclass): Ditto.
7830 (cp_lookup_nested_symbol_1): Ditto. Don't search all static blocks
7831 for symbols in an anonymous namespace.
7832 * dwarf2read.c (namespace_name): Don't call dwarf2_name, fetch
7833 DW_AT_name directly.
7834 (dwarf2_name): Convert missing namespace name to
7835 CP_ANONYMOUS_NAMESPACE_STR.
7837 2015-02-20 Pedro Alves <palves@redhat.com>
7839 * linux-nat.c (linux_handle_extended_wait): Call
7840 thread_db_notice_clone whenever a new clone LWP is detected.
7841 (linux_stop_and_wait_all_lwps, linux_unstop_all_lwps): New
7843 * linux-nat.h (thread_db_attach_lwp): Delete declaration.
7844 (thread_db_notice_clone, linux_stop_and_wait_all_lwps)
7845 (linux_unstop_all_lwps): Declare.
7846 * linux-thread-db.c (struct thread_get_info_inout): Delete.
7847 (thread_get_info_callback): Delete.
7848 (thread_from_lwp): Use td_thr_get_info and record_thread.
7849 (thread_db_attach_lwp): Delete.
7850 (thread_db_notice_clone): New function.
7851 (try_thread_db_load_1): If /proc is mounted and shows the
7852 process'es task list, walk over all LWPs and call thread_from_lwp
7853 instead of relying on td_ta_thr_iter.
7854 (attach_thread): Don't call check_thread_signals here. Split the
7855 tail part of the function (which adds the thread to the core GDB
7857 (record_thread): ... this function. Call check_thread_signals
7859 (thread_db_wait): Don't call thread_db_find_new_threads_1. Always
7860 call thread_from_lwp.
7861 (thread_db_update_thread_list): Rename to ...
7862 (thread_db_update_thread_list_org): ... this.
7863 (thread_db_update_thread_list): New function.
7864 (thread_db_find_thread_from_tid): Delete.
7865 (thread_db_get_ada_task_ptid): Simplify.
7866 * nat/linux-procfs.c: Include <sys/stat.h>.
7867 (linux_proc_task_list_dir_exists): New function.
7868 * nat/linux-procfs.h (linux_proc_task_list_dir_exists): Declare.
7870 2015-02-20 Pedro Alves <palves@redhat.com>
7872 * linux-nat.c (lin_lwp_attach_lwp): No longer special case the
7873 main LWP. Handle the case of waitpid returning 0 if we're already
7874 attached to the LWP. Don't set the LWP's last_resume_kind to
7875 resume_stop if we already knew about the LWP.
7876 (linux_nat_filter_event): Add debug logs.
7878 2015-02-20 Pedro Alves <palves@redhat.com>
7880 * target.h (forward_target_decr_pc_after_break): Delete
7883 2015-02-20 Pedro Alves <palves@redhat.com>
7886 * linux-thread-db.c (thread_get_info_callback): Return early if
7887 the thread's lwp id is -1.
7889 2015-02-20 Joel Brobecker <brobecker@adacore.com>
7893 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
7895 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
7896 (dtrace_get_probes) Change type of variable 'dof'.
7898 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
7900 PR breakpoints/16812
7901 * linux-nat.c (linux_nat_filter_event): Report SIGTRAP,SIGILL,SIGSEGV.
7902 * nat/linux-ptrace.c (linux_wstatus_maybe_breakpoint): Add.
7903 * nat/linux-ptrace.h: Add linux_wstatus_maybe_breakpoint.
7905 2015-02-19 David Taylor <dtaylor@emc.com>
7907 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
7909 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
7911 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
7913 (tui_putc): Don't call tui_handle_resize_during_io.
7914 (tui_getc): Likewise.
7915 (tui_mld_getc): Likewise.
7916 * tui/tui-win.c: Include event-loop.h and tui/tui-io.h.
7917 (tui_sigwinch_token): New static variable.
7918 (tui_initialize_win): Adjust documentation. Set
7920 (tui_async_resize_screen): New asynchronous callback.
7921 (tui_sigwinch_handler): Adjust documentation. Asynchronously
7922 invoke tui_async_resize_screen.
7924 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
7926 * configure: Regenerated.
7927 * configure.ac: Use GDB_AC_TRANSFORM.
7928 * Makefile.in (aclocal_m4_deps): Added transform.m4.
7929 * acinclude.m4: sinclude transform.m4.
7930 * transform.m4: New file.
7931 (GDB_AC_TRANSFORM): New macro.
7933 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7935 * NEWS: Announce the support for DTrace SDT probes.
7937 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7939 * amd64-linux-tdep.c: Include "parser-defs.h" and "user-regs.h".
7940 (amd64_dtrace_parse_probe_argument): New function.
7941 (amd64_dtrace_probe_is_enabled): Likewise.
7942 (amd64_dtrace_enable_probe): Likewise.
7943 (amd64_dtrace_disable_probe): Likewise.
7944 (amd64_linux_init_abi): Register the
7945 `gdbarch_dtrace_probe_argument', `gdbarch_dtrace_enable_probe',
7946 `gdbarch_dtrace_disable_probe' and
7947 `gdbarch_dtrace_probe_is_enabled' hooks.
7948 (amd64_dtrace_disabled_probe_sequence_1): New constant.
7949 (amd64_dtrace_disabled_probe_sequence_2): Likewise.
7950 (amd64_dtrace_enable_probe_sequence): Likewise.
7951 (amd64_dtrace_disable_probe_sequence): Likewise.
7953 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
7955 * breakpoint.c (BREAK_ARGS_HELP): Help string updated to mention
7956 the -probe-dtrace new vpossible value for PROBE_MODIFIER.
7957 * configure.ac (CONFIG_OBS): dtrace-probe.o added if BFD can
7959 * Makefile.in (SFILES): dtrace-probe.c added.
7960 * configure: Regenerate.
7961 * dtrace-probe.c: New file.
7962 (SHT_SUNW_dof): New constant.
7963 (dtrace_probe_type): New enum.
7964 (dtrace_probe_arg): New struct.
7965 (dtrace_probe_arg_s): New typedef.
7966 (struct dtrace_probe_enabler): New struct.
7967 (dtrace_probe_enabler_s): New typedef.
7968 (dtrace_probe): New struct.
7969 (dtrace_probe_is_linespec): New function.
7970 (dtrace_dof_sect_type): New enum.
7971 (dtrace_dof_dofh_ident): Likewise.
7972 (dtrace_dof_encoding): Likewise.
7973 (DTRACE_DOF_ENCODE_LSB): Likewise.
7974 (DTRACE_DOF_ENCODE_MSB): Likewise.
7975 (dtrace_dof_hdr): New struct.
7976 (dtrace_dof_sect): Likewise.
7977 (dtrace_dof_provider): Likewise.
7978 (dtrace_dof_probe): Likewise.
7979 (DOF_UINT): New macro.
7980 (DTRACE_DOF_PTR): Likewise.
7981 (DTRACE_DOF_SECT): Likewise.
7982 (dtrace_process_dof_probe): New function.
7983 (dtrace_process_dof): Likewise.
7984 (dtrace_build_arg_exprs): Likewise.
7985 (dtrace_get_arg): Likewise.
7986 (dtrace_get_probes): Likewise.
7987 (dtrace_get_probe_argument_count): Likewise.
7988 (dtrace_can_evaluate_probe_arguments): Likewise.
7989 (dtrace_evaluate_probe_argument): Likewise.
7990 (dtrace_compile_to_ax): Likewise.
7991 (dtrace_probe_destroy): Likewise.
7992 (dtrace_gen_info_probes_table_header): Likewise.
7993 (dtrace_gen_info_probes_table_values): Likewise.
7994 (dtrace_probe_is_enabled): Likewise.
7995 (dtrace_probe_ops): New variable.
7996 (info_probes_dtrace_command): New function.
7997 (_initialize_dtrace_probe): Likewise.
7998 (dtrace_type_name): Likewise.
8000 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8002 * gdbarch.sh (dtrace_parse_probe_argument): New.
8003 (dtrace_probe_is_enabled): Likewise.
8004 (dtrace_enable_probe): Likewise.
8005 (dtrace_disable_probe): Likewise.
8006 * gdbarch.c: Regenerate.
8007 * gdbarch.h: Regenerate.
8009 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8011 * stap-probe.c (stap_probe_ops): Add NULLs in the static
8012 stap_probe_ops for `enable_probe' and `disable_probe'.
8013 * probe.c (enable_probes_command): New function.
8014 (disable_probes_command): Likewise.
8015 (_initialize_probe): Define the cli commands `enable probe' and
8017 (parse_probe_linespec): New function.
8018 (info_probes_for_ops): Use parse_probe_linespec.
8019 * probe.h (probe_ops): New hooks `enable_probe' and
8022 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8024 * probe.c (compute_probe_arg): Moved from stap-probe.c
8025 (compile_probe_arg): Likewise.
8026 (probe_funcs): Likewise.
8027 * stap-probe.c (compute_probe_arg): Moved to probe.c.
8028 (compile_probe_arg): Likewise.
8029 (probe_funcs): Likewise.
8031 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8033 * probe.c (print_ui_out_not_applicables): New function.
8034 (exists_probe_with_pops): Likewise.
8035 (info_probes_for_ops): Do not include column headers for probe
8036 types for which no probe has been actually found on any object.
8037 Also invoke `print_ui_out_not_applicables' in order to match the
8038 column rows with the header when probes of several types are
8040 Print the "Type" column.
8041 * probe.h (probe_ops): Added a new probe operation `type_name'.
8042 * stap-probe.c (stap_probe_ops): Add `stap_type_name'.
8043 (stap_type_name): New function.
8045 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
8047 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
8048 (key_is_command_char): Delete.
8050 2015-02-17 Pedro Alves <palves@redhat.com>
8052 * tui/tui.c (tui_enable): Resize windows before anything
8053 might show a window.
8055 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
8058 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
8059 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
8061 * aarch64-tdep.h (tdesc_aarch64): Declare.
8063 2015-02-12 Mark Wielaard <mjw@redhat.com>
8065 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
8067 2015-02-13 Doug Evans <dje@google.com>
8069 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
8070 anonymous_namespace to is_in_anonymous for consistency with the rest
8072 (cp_lookup_bare_symbol): Fix typo in comment.
8073 (cp_search_static_and_baseclasses): Ditto.
8074 (search_symbol_list): Use vertical space in comment better.
8075 (reset_directive_searched): Ditto. Fix typo.
8076 (cp_lookup_nested_symbol_1): Clarify contents of NESTED_NAME parameter.
8078 2015-02-13 Yao Qi <yao.qi@arm.com>
8080 * MAINTAINERS: Update my email address.
8082 2015-02-12 Doug Evans <dje@google.com>
8084 * symtab.c (completion_list_add_name): Fix memory leak.
8086 2015-02-12 Doug Evans <dje@google.com>
8088 * completer.c (complete_line): Remove incorrect comment.
8090 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8092 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
8093 (py_print_frame): Use RETURN_MASK_ERROR.
8095 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8097 * python/py-framefilter.c (py_print_frame): Mention RETURN_QUIT in
8098 function comment. Wrap all function that can throw in cleanups.
8099 (gdbpy_apply_frame_filter): Wrap all function that can throw in
8102 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8104 * python/py-framefilter.c (py_print_frame): Substitute goto error.
8105 Remove the error label.
8107 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8109 * python/py-framefilter.c (py_print_frame): Put conditional code paths
8110 with goto first, indent the former else codepath left. Put variable
8111 'elided' to a new inner block.
8113 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8115 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
8117 2015-02-11 Pedro Alves <palves@redhat.com>
8119 * xcoffread.c (within_function): Delete.
8121 2015-02-11 Tom Tromey <tromey@redhat.com>
8122 Pedro Alves <palves@redhat.com>
8124 * breakpoint.c (base_breakpoint_ops): Delete.
8125 * dwarf2loc.c (dwarf_expr_ctx_funcs): Make extern.
8126 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_lazy_psyms): Make extern.
8127 * guile/guile.c (guile_extension_script_ops, guile_extension_ops): Make extern.
8128 * ppcnbsd-tdep.c (ppcnbsd2_sigtramp): Make extern.
8129 * python/py-arch.c (arch_object_type): Make extern.
8130 * python/py-block.c (block_syms_iterator_object_type): Make extern.
8131 * python/py-bpevent.c (breakpoint_event_object_type): Make extern.
8132 * python/py-cmd.c (cmdpy_object_type): Make extern.
8133 * python/py-continueevent.c (continue_event_object_type)
8134 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Remove 'qual'
8135 parameter. Update all callers.
8136 * python/py-evtregistry.c (eventregistry_object_type): Make extern.
8137 * python/py-exitedevent.c (exited_event_object_type): Make extern.
8138 * python/py-finishbreakpoint.c (finish_breakpoint_object_type): Make extern.
8139 * python/py-function.c (fnpy_object_type): Make extern.
8140 * python/py-inferior.c (inferior_object_type, membuf_object_type): Make extern.
8141 * python/py-infevents.c (call_pre_event_object_type)
8142 (inferior_call_post_event_object_type).
8143 (memory_changed_event_object_type): Make extern.
8144 * python/py-infthread.c (thread_object_type): Make extern.
8145 * python/py-lazy-string.c (lazy_string_object_type): Make extern.
8146 * python/py-linetable.c (linetable_entry_object_type)
8147 (linetable_object_type, ltpy_iterator_object_type): Make extern.
8148 * python/py-newobjfileevent.c (new_objfile_event_object_type)
8149 (clear_objfiles_event_object_type): Make extern.
8150 * python/py-objfile.c (objfile_object_type): Make extern.
8151 * python/py-param.c (parmpy_object_type): Make extern.
8152 * python/py-progspace.c (pspace_object_type): Make extern.
8153 * python/py-signalevent.c (signal_event_object_type): Make extern.
8154 * python/py-symtab.c (symtab_object_type, sal_object_type): Make extern.
8155 * python/py-type.c (type_object_type, field_object_type)
8156 (type_iterator_object_type): Make extern.
8157 * python/python.c (python_extension_script_ops)
8158 (python_extension_ops): Make extern.
8159 * stap-probe.c (stap_probe_ops): Make extern.
8161 2015-02-11 Pedro Alves <pedro@codesourcery.com>
8163 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
8164 because the event thread is not the current thread.
8166 2015-02-11 Doug Evans <xdje42@gmail.com>
8168 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
8169 been initialized yet, return NULL.
8171 2015-02-11 Doug Evans <dje@google.com>
8173 * symfile.h (new_symfile_objfile): Delete.
8174 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
8175 All callers updated.
8177 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8179 * tui/tui-io.c (tui_handle_resize_during_io): Call
8180 tui_update_gdb_sizes() after resizing the screen.
8181 * tui/tui.c (tui_enable): Resize the terminal before
8182 calling tui_update_gdb_sizes().
8184 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8186 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
8187 line before printing a newline.
8189 2015-02-11 Mark Wielaard <mjw@redhat.com>
8191 * utils.c (producer_is_gcc): Return true or false.
8193 2015-02-10 Mark Wielaard <mjw@redhat.com>
8195 * utils.h (producer_is_gcc): Change return type to bool. Add major
8197 * utils.c (producer_is_gcc): Likewise.
8198 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
8199 * dwarf2read.c (check_producer): Likewise.
8201 2015-02-10 Pedro Alves <palves@redhat.com>
8203 * infrun.c (displaced_step_fixup): Switch to the event thread
8204 before calling gdbarch_displaced_step_fixup.
8206 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8208 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
8210 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
8212 * ada-varobj.c (ada_name_of_child): Constify parent.
8213 (ada_path_expr_of_child): Same.
8214 (ada_value_of_child): Same.
8215 (ada_type_of_child): Same.
8216 * c-varobj.c (c_is_path_expr_parent): Same.
8217 (c_describe_child): Same.
8218 (c_name_of_child): Same.
8219 (c_value_of_child): Same.
8220 (c_type_of_child): Same.
8221 (cplus_number_of_children): Same.
8222 (cplus_describe_child): Constify var.
8223 (cplus_name_of_child): Constify parent.
8224 (cplus_value_of_child): Same.
8225 (cplus_type_of_child): Same.
8226 * jv-varobj.c (java_name_of_child): Same.
8227 (java_value_of_child): Same.
8228 (java_type_of_child): Same.
8229 * varobj.c (value_of_child): Same.
8230 (varobj_default_is_path_expr_parent): Constify var, parent and return
8232 (varobj_get_path_expr): Constify var, modify path_expr through
8234 (install_new_value): Constify parent.
8235 (value_of_child): Constify parent.
8236 * varobj.h (struct varobj): Constify parent.
8237 (struct lang_varobj_ops): Constify name_of_child, value_of_child and
8239 (varobj_get_path_expr): Constify var.
8240 (varobj_get_path_expr_parent): Constify var and return value.
8242 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
8244 * arm-tdep.c (arm_prologue_unwind_stop_reason): New function.
8245 (arm_prologue_this_id): Move PC and SP limit checks to
8246 arm_prologue_unwind_stop_reason.
8247 (arm_prologue_unwind) <stop_reason> : Set to
8248 arm_prologue_unwind_stop_reason.
8250 2015-02-09 Mark Wielaard <mjw@redhat.com>
8252 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
8253 DW_LANG_Fortran08 as language_fortran.
8255 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
8258 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
8259 of pointer against char.
8261 2015-02-09 Mark Wielaard <mjw@redhat.com>
8263 * c-typeprint.c (cp_type_print_method_args): Handle '_Atomic'.
8264 (c_type_print_modifier): Likewise.
8265 * dwarf2read.c (read_tag_atomic_type): New function.
8266 (read_type_die_1): Handle DW_TAG_atomic_type.
8267 * gdbtypes.c (make_atomic_type): New function.
8268 (recursive_dump_type): Handle TYPE_ATOMIC.
8269 * gdbtypes.h (enum type_flag_values): Renumber.
8270 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_ATOMIC.
8271 (TYPE_ATOMIC): New macro.
8272 (make_atomic_type): Declare.
8274 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8276 * btrace.c (ftrace_find_call): Skip gaps.
8277 (ftrace_new_function): Initialize level.
8278 (ftrace_new_call, ftrace_new_tailcall, ftrace_new_return)
8279 (ftrace_new_switch): Update
8281 (ftrace_new_gap): New.
8282 (ftrace_update_function): Create new function after gap.
8283 (btrace_compute_ftrace_bts): Create gap on error.
8284 (btrace_stitch_bts): Update parameters. Clear trace if it
8286 (btrace_stitch_trace): Update parameters. Update callers.
8287 (btrace_clear): Reset the number of gaps.
8288 (btrace_insn_get): Return NULL if the iterator points to a gap.
8289 (btrace_insn_number): Return zero if the iterator points to a gap.
8290 (btrace_insn_end): Allow gaps at the end.
8291 (btrace_insn_next, btrace_insn_prev, btrace_insn_cmp): Handle gaps.
8292 (btrace_find_insn_by_number): Assert that the found iterator does
8294 (btrace_call_next, btrace_call_prev): Assert that the last function
8296 * btrace.h (btrace_bts_error): New.
8297 (btrace_function): Update comment.
8298 (btrace_function) <insn, insn_offset, number>: Update comment.
8299 (btrace_function) <errcode>: New.
8300 (btrace_thread_info) <ngaps>: New.
8301 (btrace_thread_info) <replay>: Update comment.
8302 (btrace_insn_get): Update comment.
8303 * record-btrace.c (btrace_ui_out_decode_error): New.
8304 (record_btrace_info): Print number of gaps.
8305 (btrace_insn_history, btrace_call_history): Call
8306 btrace_ui_out_decode_error for gaps.
8307 (record_btrace_step_thread, record_btrace_start_replaying): Skip gaps.
8309 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8311 * common/btrace-common.h (btrace_cpu_vendor, btrace_cpu): New.
8312 * nat/linux-btrace.c: (btrace_this_cpu): New.
8313 (cpu_supports_bts): Call btrace_this_cpu.
8314 (intel_supports_bts): Add cpu parameter.
8316 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8318 * btrace.h (btrace_insn_class): New.
8319 (btrace_insn) <size, iclass>: New.
8320 * btrace.c (ftrace_find_call): Update parameters. Update users.
8321 Use instruction classification.
8322 (ftrace_new_return): Update parameters. Update users.
8323 (ftrace_update_function): Update parameters. Update users. Use
8324 instruction classification.
8325 (ftrace_update_insns): Update parameters. Update users.
8326 (ftrace_classify_insn): New.
8327 (btrace_compute_ftrace_bts): Fill in new btrace_insn fields. Add
8328 TRY_CATCH around call to gdb_insn_length.
8330 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8332 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
8333 Update parameters. Update users.
8335 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8337 * btrace.c (parse_xml_btrace_conf_bts): Add size.
8338 (btrace_conf_bts_attributes): New.
8339 (btrace_conf_children): Add attributes.
8340 * common/btrace-common.h (btrace_config_bts): New.
8341 (btrace_config)<bts>: New.
8342 (btrace_config): Update comment.
8343 * nat/linux-btrace.c (linux_enable_btrace, linux_enable_bts):
8345 * features/btrace-conf.dtd: Increment version. Add size
8346 attribute to bts element.
8347 * record-btrace.c (set_record_btrace_bts_cmdlist,
8348 show_record_btrace_bts_cmdlist): New.
8349 (record_btrace_adjust_size, record_btrace_print_bts_conf,
8350 record_btrace_print_conf, cmd_set_record_btrace_bts,
8351 cmd_show_record_btrace_bts): New.
8352 (record_btrace_info): Call record_btrace_print_conf.
8353 (_initialize_record_btrace): Add commands.
8354 * remote.c: Add PACKET_Qbtrace_conf_bts_size enum.
8355 (remote_protocol_features): Add Qbtrace-conf:bts:size packet.
8356 (btrace_sync_conf): Synchronize bts size.
8357 (_initialize_remote): Add Qbtrace-conf:bts:size packet.
8358 * NEWS: Announce new commands and new packets.
8360 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8362 * Makefile.in (XMLFILES): Add btrace-conf.dtd.
8363 * x86-linux-nat.c (x86_linux_enable_btrace): Update parameters.
8364 (x86_linux_btrace_conf): New.
8365 (x86_linux_create_target): Initialize to_btrace_conf.
8366 * nat/linux-btrace.c (linux_enable_btrace): Update parameters.
8367 Check format. Split into this and ...
8368 (linux_enable_bts): ... this.
8369 (linux_btrace_conf): New.
8370 (perf_event_skip_record): Renamed into ...
8371 (perf_event_skip_bts_record): ... this. Updated users.
8372 (linux_disable_btrace): Split into this and ...
8373 (linux_disable_bts): ... this.
8374 (linux_read_btrace): Check format.
8375 * nat/linux-btrace.h (linux_enable_btrace): Update parameters.
8376 (linux_btrace_conf): New.
8377 (btrace_target_info)<ptid>: Moved.
8378 (btrace_target_info)<conf>: New.
8379 (btrace_target_info): Split into this and ...
8380 (btrace_tinfo_bts): ... this. Updated users.
8381 * btrace.c (btrace_enable): Update parameters.
8382 (btrace_conf, parse_xml_btrace_conf_bts, parse_xml_btrace_conf)
8383 (btrace_conf_children, btrace_conf_attributes)
8384 (btrace_conf_elements): New.
8385 * btrace.h (btrace_enable): Update parameters.
8386 (btrace_conf, parse_xml_btrace_conf): New.
8387 * common/btrace-common.h (btrace_config): New.
8388 * feature/btrace-conf.dtd: New.
8389 * record-btrace.c (record_btrace_conf): New.
8390 (record_btrace_cmdlist): New.
8391 (record_btrace_enable_warn, record_btrace_open): Pass
8392 &record_btrace_conf.
8393 (record_btrace_info): Print recording format.
8394 (cmd_record_btrace_bts_start): New.
8395 (cmd_record_btrace_start): Call cmd_record_btrace_bts_start.
8396 (_initialize_record_btrace): Add "record btrace bts" subcommand.
8397 Add "record bts" alias command.
8398 * remote.c (remote_state)<btrace_config>: New.
8399 (remote_btrace_reset, PACKET_qXfer_btrace_conf): New.
8400 (remote_protocol_features): Add qXfer:btrace-conf:read.
8401 (remote_open_1): Call remote_btrace_reset.
8402 (remote_xfer_partial): Handle TARGET_OBJECT_BTRACE_CONF.
8403 (btrace_target_info)<conf>: New.
8404 (btrace_sync_conf, btrace_read_config): New.
8405 (remote_enable_btrace): Update parameters. Call btrace_sync_conf and
8407 (remote_btrace_conf): New.
8408 (init_remote_ops): Initialize to_btrace_conf.
8409 (_initialize_remote): Add qXfer:btrace-conf packet.
8410 * target.c (target_enable_btrace): Update parameters.
8411 (target_btrace_conf): New.
8412 * target.h (target_enable_btrace): Update parameters.
8413 (target_btrace_conf): New.
8414 (target_object)<TARGET_OBJECT_BTRACE_CONF>: New.
8415 (target_ops)<to_enable_btrace>: Update parameters and comment.
8416 (target_ops)<to_btrace_conf>: New.
8417 * target-delegates: Regenerate.
8418 * target-debug.h (target_debug_print_const_struct_btrace_config_p)
8419 (target_debug_print_const_struct_btrace_target_info_p): New.
8420 * NEWS: Announce new command and new packet.
8422 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8424 * nat/linux-btrace.h (perf_event_buffer): New.
8425 (btrace_target_info) <buffer, size, data_head>: Replace with ...
8427 * nat/linux-btrace.c (perf_event_header, perf_event_mmap_size)
8428 (perf_event_buffer_size, perf_event_buffer_begin)
8429 (perf_event_buffer_end, linux_btrace_has_changed): Removed.
8431 (perf_event_new_data): New.
8433 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8435 * btrace.c (btrace_enable): Pass BTRACE_FORMAT_BTS.
8436 * record-btrace.c (record_btrace_open): Remove call to
8437 target_supports_btrace.
8438 * remote.c (remote_supports_btrace): Update parameters.
8439 * target.c (target_supports_btrace): Update parameters.
8440 * target.h (to_supports_btrace, target_supports_btrace): Update
8442 * target-delegates.c: Regenerate.
8443 * target-debug.h (target_debug_print_enum_btrace_format): New.
8444 * nat/linux-btrace.c
8445 (kernel_supports_btrace): Rename into ...
8446 (kernel_supports_bts): ... this. Update users. Update warning text.
8447 (intel_supports_btrace): Rename into ...
8448 (intel_supports_bts): ... this. Update users.
8449 (cpu_supports_btrace): Rename into ...
8450 (cpu_supports_bts): ... this. Update users.
8451 (linux_supports_btrace): Update parameters. Split into this and ...
8452 (linux_supports_bts): ... this.
8453 * nat/linux-btrace.h (linux_supports_btrace): Update parameters.
8455 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8457 * Makefile.in (SFILES): Add common/btrace-common.c.
8458 (COMMON_OBS): Add common/btrace-common.o.
8459 (btrace-common.o): Add build rules.
8460 * btrace.c (parse_xml_btrace): Update parameters.
8461 (parse_xml_btrace_block): Set format field.
8462 (btrace_add_pc, btrace_fetch): Use struct btrace_data.
8463 (do_btrace_data_cleanup, make_cleanup_btrace_data): New.
8464 (btrace_compute_ftrace): Split into this and...
8465 (btrace_compute_ftrace_bts): ...this.
8466 (btrace_stitch_trace): Split into this and...
8467 (btrace_stitch_bts): ...this.
8468 * btrace.h (parse_xml_btrace): Update parameters.
8469 (make_cleanup_btrace_data): New.
8470 * common/btrace-common.c: New.
8471 * common/btrace-common.h: Include common-defs.h.
8472 (btrace_block_s): Update comment.
8473 (btrace_format): New.
8474 (btrace_format_string): New.
8475 (btrace_data_bts): New.
8477 (btrace_data_init, btrace_data_fini, btrace_data_empty): New.
8478 * remote.c (remote_read_btrace): Update parameters.
8479 * target.c (target_read_btrace): Update parameters.
8480 * target.h (target_read_btrace): Update parameters.
8481 (target_ops)<to_read_btrace>: Update parameters.
8482 * x86-linux-nat.c (x86_linux_read_btrace): Update parameters.
8483 * target-delegates.c: Regenerate.
8484 * target-debug (target_debug_print_struct_btrace_data_p): New.
8485 * nat/linux-btrace.c (linux_read_btrace): Split into this and...
8486 (linux_read_bts): ...this.
8487 * nat/linux-btrace.h (linux_read_btrace): Update parameters.
8489 2015-02-06 Doug Evans <dje@google.com>
8491 * remote-m32r-sdi.c: Include symfile.h.
8493 2015-02-06 Doug Evans <dje@google.com>
8495 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
8496 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
8499 2015-02-06 Pedro Alves <palves@redhat.com>
8501 * linux-thread-db.c (find_new_threads_callback): Add debug output.
8503 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
8506 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
8507 (enable_count_command): Check args for NULL value.
8509 2015-02-05 Doug Evans <xdje42@gmail.com>
8511 * guile/scm-frame.c: Fix spelling errors in a comment.
8513 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8515 * python/python-internal.h (Py_hash_t): Define it for Python <3.2.
8516 * python/py-value.c (valpy_fetch_lazy): Use it. Remove cast to the
8519 2015-02-04 Pedro Alves <palves@redhat.com>
8521 * linux-nat.c (handle_extended_wait): Don't resume LWPs here.
8522 (wait_lwp): Don't call wait_lwp if linux_handle_extended_wait
8524 (resume_stopped_resumed_lwps): Don't check whether the thread is
8525 marked as executing.
8526 (linux_nat_wait_1): Use resume_stopped_resumed_lwps.
8528 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8530 * regset.h (struct regset): Add flags field.
8531 (REGSET_VARIABLE_SIZE): New value for a regset's flags field.
8532 * corelow.c (get_core_register_section): Add warning if the size
8533 exceeds the requested size and the regset does not have the
8534 REGSET_VARIABLE_SIZE flag set.
8535 * alphanbsd-tdep.c (alphanbsd_gregset): Add REGSET_VARIABLE_SIZE
8537 * armbsd-tdep.c (armbsd_gregset): Likewise.
8538 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8539 * hppaobsd-tdep.c (hppaobsd_gregset): Likewise.
8540 * m68kbsd-tdep.c (m68kbsd_gregset): Likewise.
8541 * mipsnbsd-tdep.c (mipsnbsd_gregset): Likewise.
8543 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8545 * amd64-linux-tdep.c (amd64_linux_iterate_over_regset_sections):
8546 For ".reg-xstate", explicitly specify the requested section size
8547 via X86_XSTATE_SIZE instead of just 0 on input and
8548 X86_XSTATE_MAX_SIZE on output.
8549 * i386-linux-tdep.c (i386_linux_iterate_over_regset_sections):
8552 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
8555 * gdbarch.sh (iterate_over_regset_sections_cb): Document this
8556 function type, particularly its SIZE parameter.
8557 * gdbarch.h: Regenerate.
8558 * amd64-tdep.c (amd64_supply_fpregset): In gdb_assert, compare
8559 actual against required size using ">=" instead of "==".
8560 (amd64_collect_fpregset): Likewise.
8561 * i386-tdep.c (i386_supply_gregset): Likewise.
8562 (i386_collect_gregset): Likewise.
8563 (i386_supply_fpregset): Likewise.
8564 (i386_collect_fpregset): Likewise.
8565 * mips-linux-tdep.c (mips_supply_gregset_wrapper): Likewise.
8566 (mips_fill_gregset_wrapper): Likewise.
8567 (mips_supply_fpregset_wrapper): Likewise.
8568 (mips_fill_fpregset_wrapper): Likewise.
8569 (mips64_supply_gregset_wrapper): Likewise.
8570 (mips64_fill_gregset_wrapper): Likewise.
8571 (mips64_supply_fpregset_wrapper): Likewise.
8572 (mips64_fill_fpregset_wrapper): Likewise.
8573 * mn10300-linux-tdep.c (am33_supply_gregset_method): Likewise.
8574 (am33_supply_fpregset_method): Likewise.
8575 (am33_collect_gregset_method): Likewise.
8576 (am33_collect_fpregset_method): Likewise.
8578 2015-02-04 Doug Evans <dje@google.com>
8579 Pedro Alves <palves@redhat.com>
8580 Eli Zaretskii <eliz@gnu.org>
8583 * tui/tui-command.c (tui_refresh_cmd_win): New function.
8584 * tui/tui-command.c (tui_refresh_cmd_win): Declare.
8585 * tui/tui-file.c: #include tui/tui-command.h.
8586 (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
8587 (tui_file_flush): Refresh command window if stream is gdb_stdout.
8588 * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
8590 2015-02-04 Pedro Alves <palves@redhat.com>
8593 * event-loop.c (gdb_do_one_event): Add default switch case.
8595 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8597 Filter out inferior gcc option -fpreprocessed.
8598 * compile/compile.c (filter_args): New function.
8601 2015-02-03 Pedro Alves <palves@redhat.com>
8603 * event-loop.c: Don't declare nor define a queue type for
8605 (event_queue): Delete.
8606 (create_event, create_file_event, gdb_event_xfree)
8607 (initialize_event_loop, process_event): Delete.
8608 (gdb_do_one_event): Return as soon as one event is handled.
8609 (handle_file_event): Change prototype. Used the passed in
8610 file_handler pointer and ready_mask instead of looping over all
8612 (gdb_wait_for_event): Update the poll/select timeouts before
8613 blocking. Run event handlers directly instead of queueing events.
8614 Return as soon as one event is handled.
8615 (struct async_event_handler_data): Delete.
8616 (invoke_async_event_handler): Delete.
8617 (check_async_event_handlers): Change return type to int. Run
8618 event handlers directly instead of queueing events. Return as
8619 soon as one event is handled.
8620 (handle_timer_event): Delete.
8621 (update_wait_timeout): New function, factored out from
8623 (poll_timers): Reimplement.
8624 * event-loop.h (initialize_event_loop): Delete declaration.
8625 * top.c (gdb_init): Don't call initialize_event_loop.
8627 2015-02-03 Pedro Alves <palves@redhat.com>
8629 * event-loop.c (clear_async_event_handler): New function.
8630 * event-loop.h (clear_async_event_handler): New declaration.
8631 * record-btrace.c (record_btrace_async): New function.
8632 (init_record_btrace_ops): Install record_btrace_async.
8633 * record-full.c (record_full_async): New function.
8634 (record_full_resume): Don't mark the async event source here.
8635 (init_record_full_ops): Install record_full_async.
8636 (record_full_core_resume): Don't mark the async event source here.
8637 (init_record_full_core_ops): Install record_full_async.
8638 * remote.c (remote_async): Mark and clear the async stop reply
8639 queue event-loop token as appropriate.
8641 2015-02-03 Pedro Alves <palves@redhat.com>
8643 * linux-nat.c (linux_child_follow_fork, linux_nat_wait_1): Use
8644 target_is_async_p instead of target_can_async.
8645 (linux_nat_wait): Use target_is_async_p instead of
8646 target_can_async. Don't enable async here.
8647 * remote.c (interrupt_query, remote_wait, putpkt_binary): Use
8648 target_is_async_p instead of target_can_async.
8650 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
8652 * varobj.h (lang_varobj_ops): Mention which return values need
8655 2015-02-02 Joel Brobecker <brobecker@adacore.com>
8657 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
8659 2015-02-02 Joel Brobecker <brobecker@adacore.com>
8662 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
8663 results found in the cache.
8665 2015-02-02 Joel Brobecker <brobecker@adacore.com>
8668 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
8669 when allocating a new one.
8671 2015-02-01 Tom Tromey <tom@tromey.com>
8673 * MAINTAINERS: Remove myself.
8675 2015-01-31 Doug Evans <xdje42@gmail.com>
8677 * dwarf2read.c (process_structure_scope): Update setting of
8678 TYPE_VPTR_BASETYPE, TYPE_VPTR_FIELDNO.
8679 * gdbtypes.c (internal_type_vptr_fieldno): New function.
8680 (set_type_vptr_fieldno): New function.
8681 (internal_type_vptr_basetype): New function.
8682 (set_type_vptr_basetype): New function.
8683 (get_vptr_fieldno): Update setting of TYPE_VPTR_FIELDNO,
8685 (allocate_cplus_struct_type): Initialize vptr_fieldno.
8686 (recursive_dump_type): Printing of vptr_fieldno, vptr_basetype ...
8687 (print_cplus_stuff): ... moved here.
8688 (copy_type_recursive): Don't copy TYPE_VPTR_BASETYPE.
8689 * gdbtypes.h (struct main_type): Members vptr_fieldno, vptr_basetype
8691 (struct cplus_struct_type): ... here. All uses updated.
8692 (TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE): Rewrite.
8693 (internal_type_vptr_fieldno, set_type_vptr_fieldno): Declare.
8694 (internal_type_vptr_basetype, set_type_vptr_basetype): Declare.
8695 * stabsread.c (read_tilde_fields): Update setting of
8696 TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE.
8698 2015-01-31 Doug Evans <xdje42@gmail.com>
8700 * cp-valprint.c (cp_find_class_member): Rename parameter domain_p
8702 (cp_print_class_member): Rename local domain to self_type.
8703 * dwarf2read.c (quirk_gcc_member_function_pointer): Rename local
8704 domain_type to self_type.
8705 (set_die_type) <need_gnat_info>: Handle
8706 TYPE_CODE_METHODPTR, TYPE_CODE_MEMBERPTR, TYPE_CODE_METHOD.
8707 * gdb-gdb.py (StructMainTypePrettyPrinter): Handle
8708 TYPE_SPECIFIC_SELF_TYPE.
8709 * gdbtypes.c (internal_type_self_type): New function.
8710 (set_type_self_type): New function.
8711 (smash_to_memberptr_type): Rename parameter domain to self_type.
8712 Update setting of TYPE_SELF_TYPE.
8713 (smash_to_methodptr_type): Update setting of TYPE_SELF_TYPE.
8714 (smash_to_method_type): Rename parameter domain to self_type.
8715 Update setting of TYPE_SELF_TYPE.
8716 (check_stub_method): Call smash_to_method_type.
8717 (recursive_dump_type): Handle TYPE_SPECIFIC_SELF_TYPE.
8718 (copy_type_recursive): Ditto.
8719 * gdbtypes.h (enum type_specific_kind): New value
8720 TYPE_SPECIFIC_SELF_TYPE.
8721 (struct main_type) <type_specific>: New member self_type.
8722 (struct cplus_struct_type) <fn_field.type>: Update comment.
8723 (TYPE_SELF_TYPE): Rewrite.
8724 (internal_type_self_type, set_type_self_type): Declare.
8725 * gnu-v3-abi.c (gnuv3_print_method_ptr): Rename local domain to
8727 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
8728 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
8730 * stabsread.c (read_member_functions): Mark methods with
8731 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
8734 2015-01-31 Doug Evans <xdje42@gmail.com>
8736 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
8739 2015-01-31 Doug Evans <xdje42@gmail.com>
8741 * gnu-v3-abi.c (gnuv3_dynamic_class): Assert only passed structs
8742 or unions. Return zero if union.
8743 (gnuv3_get_vtable): Call check_typedef. Assert only passed structs.
8744 (gnuv3_rtti_type): Pass already-check_typedef'd value to
8746 (compute_vtable_size): Assert only passed structs.
8747 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
8749 2015-01-31 Doug Evans <xdje42@gmail.com>
8751 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
8754 2015-01-31 Gary Benson <gbenson@redhat.com>
8755 Doug Evans <dje@google.com>
8760 * cli/cli-cmds.c (complete_command): Notify user if max-completions
8762 * common/common-exceptions.h (enum errors)
8763 <MAX_COMPLETIONS_REACHED_ERROR>: New value.
8764 * completer.h (get_max_completions_reached_message): New declaration.
8765 (max_completions): Likewise.
8766 (completion_tracker_t): New typedef.
8767 (new_completion_tracker): New declaration.
8768 (make_cleanup_free_completion_tracker): Likewise.
8769 (maybe_add_completion_enum): New enum.
8770 (maybe_add_completion): New declaration.
8771 (throw_max_completions_reached_error): Likewise.
8772 * completer.c (max_completions): New global variable.
8773 (new_completion_tracker): New function.
8774 (free_completion_tracker): Likewise.
8775 (make_cleanup_free_completion_tracker): Likewise.
8776 (maybe_add_completions): Likewise.
8777 (throw_max_completions_reached_error): Likewise.
8778 (complete_line): Remove duplicates and limit result to max_completions
8780 (get_max_completions_reached_message): New function.
8781 (gdb_display_match_list): Handle max_completions.
8782 (_initialize_completer): New declaration and function.
8783 * symtab.c: Include completer.h.
8784 (completion_tracker): New static variable.
8785 (completion_list_add_name): Call maybe_add_completion.
8786 (default_make_symbol_completion_list_break_on_1): Renamed from
8787 default_make_symbol_completion_list_break_on. Maintain
8788 completion_tracker across calls to completion_list_add_name.
8789 (default_make_symbol_completion_list_break_on): New function.
8790 * top.c (init_main): Set rl_completion_display_matches_hook.
8791 * tui/tui-io.c: Include completer.h.
8792 (tui_old_rl_display_matches_hook): New static global.
8793 (tui_rl_display_match_list): Notify user if max-completions reached.
8794 (tui_setup_io): Save/restore rl_completion_display_matches_hook.
8795 * NEWS (New Options): Mention set/show max-completions.
8797 2015-01-31 Gary Benson <gbenson@redhat.com>
8799 * symtab.c (struct add_name_data) <code>: New field.
8801 (add_symtab_completions): New function.
8802 (symtab_expansion_callback): Likewise.
8803 (default_make_symbol_completion_list_break_on): Set datum.code.
8804 Move minimal symbol scan before calling expand_symtabs_matching.
8805 Scan known primary symtabs for externs and statics before calling
8806 expand_symtabs_matching. Pass symtab_expansion_callback as
8807 expansion_notify argument to expand_symtabs_matching. Do not scan
8808 primary symtabs for externs and statics after calling
8809 expand_symtabs_matching.
8811 2015-01-31 Gary Benson <gbenson@redhat.com>
8813 * symfile.h (expand_symtabs_exp_notify_ftype): New typedef.
8814 (struct quick_symbol_functions) <expand_symtabs_matching>:
8815 New argument expansion_notify. All uses updated.
8816 (expand_symtabs_matching): New argument expansion_notify.
8818 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8819 Also print expansion notify.
8820 * symtab.c (expand_symtabs_matching_via_partial): Call
8821 expansion_notify whenever a partial symbol table is expanded.
8822 * dwarf2read.c (dw2_expand_symtabs_matching): Call
8823 expansion_notify whenever a symbol table is instantiated.
8825 2015-01-31 Doug Evans <xdje42@gmail.com>
8827 * cli-out.c: #include completer.h, readline/readline.h.
8828 (cli_mld_crlf, cli_mld_putch, cli_mld_puts): New functions.
8829 (cli_mld_flush, cld_mld_erase_entire_line): Ditto.
8830 (cli_mld_beep, cli_mld_read_key, cli_display_match_list): Ditto.
8831 * cli-out.h (cli_display_match_list): Declare.
8832 * completer.c (MB_INVALIDCH, MB_NULLWCH): New macros.
8833 (ELLIPSIS_LEN): Ditto.
8834 (gdb_get_y_or_n, gdb_display_match_list_pager): New functions.
8835 (gdb_path_isdir, gdb_printable_part, gdb_fnwidth): Ditto.
8836 (gdb_fnprint, gdb_print_filename): Ditto.
8837 (gdb_complete_get_screenwidth, gdb_display_match_list_1): Ditto.
8838 (gdb_display_match_list): Ditto.
8839 * completer.h (mld_crlf_ftype, mld_putch_ftype): New typedefs.
8840 (mld_puts_ftype, mld_flush_ftype, mld_erase_entire_line_ftype): Ditto.
8841 (mld_beep_ftype, mld_read_key_ftype): Ditto.
8842 (match_list_displayer): New struct.
8843 (gdb_display_match_list): Declare.
8844 * top.c (init_main): Set rl_completion_display_matches_hook.
8845 * tui/tui-io.c: #include completer.h.
8846 (printable_part, PUTX, print_filename, get_y_or_n): Delete.
8847 (tui_mld_crlf, tui_mld_putch, tui_mld_puts): New functions.
8848 (tui_mld_flush, tui_mld_erase_entire_line, tui_mld_beep): Ditto.
8849 (tui_mld_getc, tui_mld_read_key): Ditto.
8850 (tui_rl_display_match_list): Rewrite.
8851 (tui_handle_resize_during_io): New arg for_completion. All callers
8854 2015-01-31 Doug Evans <xdje42@gmail.com>
8856 Add symbol lookup cache.
8857 * NEWS: Document new options and commands.
8858 * symtab.c (symbol_cache_key): New static global.
8859 (DEFAULT_SYMBOL_CACHE_SIZE, MAX_SYMBOL_CACHE_SIZE): New macros.
8860 (SYMBOL_LOOKUP_FAILED): New macro.
8861 (symbol_cache_slot_state): New enum.
8862 (block_symbol_cache): New struct.
8863 (symbol_cache): New struct.
8864 (new_symbol_cache_size, symbol_cache_size): New static globals.
8865 (hash_symbol_entry, eq_symbol_entry): New functions.
8866 (symbol_cache_byte_size, resize_symbol_cache): New functions.
8867 (make_symbol_cache, free_symbol_cache): New functions.
8868 (get_symbol_cache, symbol_cache_cleanup): New function.
8869 (set_symbol_cache_size, set_symbol_cache_size_handler): New functions.
8870 (symbol_cache_lookup, symbol_cache_clear_slot): New function.
8871 (symbol_cache_mark_found, symbol_cache_mark_not_found): New functions.
8872 (symbol_cache_flush, symbol_cache_dump): New functions.
8873 (maintenance_print_symbol_cache): New function.
8874 (maintenance_flush_symbol_cache): New function.
8875 (symbol_cache_stats): New function.
8876 (maintenance_print_symbol_cache_statistics): New function.
8877 (symtab_new_objfile_observer): New function.
8878 (symtab_free_objfile_observer): New function.
8879 (lookup_static_symbol, lookup_global_symbol): Use symbol cache.
8880 (_initialize_symtab): Init symbol_cache_key. New parameter
8881 maint symbol-cache-size. New maint commands print symbol-cache,
8882 print symbol-cache-statistics, flush-symbol-cache.
8883 Install new_objfile, free_objfile observers.
8885 2015-01-31 Joel Brobecker <brobecker@adacore.com>
8888 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
8891 2015-01-31 Doug Evans <xdje42@gmail.com>
8893 * NEWS: Mention inlined scripts in .debug_gdb_scripts section.
8894 * auto-load.c: #include ctype.h.
8895 (struct auto_load_pspace_info): Replace member loaded_scripts with
8896 new members loaded_script_files, loaded_script_texts.
8897 (auto_load_pspace_data_cleanup): Update.
8898 (init_loaded_scripts_info): Update.
8899 (get_auto_load_pspace_data_for_loading): Update.
8900 (maybe_add_script_file): Renamed from maybe_add_script. All callers
8902 (maybe_add_script_text): New function.
8903 (clear_section_scripts): Update.
8904 (source_script_file, execute_script_contents): New functions.
8905 (source_section_scripts): Add support for
8906 SECTION_SCRIPT_ID_PYTHON_TEXT, SECTION_SCRIPT_ID_GUILE_TEXT.
8907 (print_scripts): New function.
8908 (auto_load_info_scripts): Also print inlined scripts.
8909 (maybe_print_unsupported_script_warning): Renamed from
8910 unsupported_script_warning_print. All callers updated.
8911 (maybe_print_script_not_found_warning): Renamed from
8912 script_not_found_warning_print. All callers updated.
8913 * extension-priv.h (struct extension_language_script_ops): New member
8914 objfile_script_executor.
8915 * extension.c (ext_lang_objfile_script_executor): New function.
8916 * extension.h (objfile_script_executor_func): New typedef.
8917 (ext_lang_objfile_script_executor): Declare.
8918 * guile/guile-internal.h (gdbscm_execute_objfile_script): Declare.
8919 * guile/guile.c (guile_extension_script_ops): Update.
8920 * guile/scm-objfile.c (gdbscm_execute_objfile_script): New function.
8921 * python/python.c (python_extension_script_ops): Update.
8922 (gdbpy_execute_objfile_script): New function.
8924 2015-01-31 Eli Zaretskii <eliz@gnu.org>
8926 * tui/tui-io.c (tui_expand_tabs): New function.
8927 (tui_puts, tui_redisplay_readline): Expand TABs into the
8928 appropriate number of spaces.
8929 * tui/tui-regs.c: Include tui-io.h.
8930 (tui_register_format): Call tui_expand_tabs to expand TABs into
8931 the appropriate number of spaces.
8932 * tui/tui-io.h: Add prototype for tui_expand_tabs.
8934 2015-01-30 Doug Evans <dje@google.com>
8936 * NEWS: "info source" command now display producer string if present.
8937 * source.c (source_info): Print producer string if present.
8939 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8941 * varobj.c (varobj_delete): Fix comment.
8943 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8945 * varobj.c (create_child): Modify comment.
8947 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
8949 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
8951 (ada_name_of_variable): Same.
8952 (ada_path_expr_of_child): Same.
8953 (ada_value_of_variable): Same.
8954 (ada_value_is_changeable_p): Same.
8955 (ada_value_has_mutated): Same.
8956 * c-varobj.c (varobj_is_anonymous_child): Same.
8957 (c_is_path_expr_parent): Same.
8958 (c_number_of_children): Same.
8959 (c_name_of_variable): Same.
8960 (c_path_expr_of_child): Same.
8962 (c_value_of_variable): Same.
8963 (cplus_number_of_children): Same.
8964 (cplus_name_of_variable): Same.
8965 (cplus_path_expr_of_child): Same.
8966 (cplus_value_of_variable): Same.
8967 * jv-varobj.c (java_number_of_children): Same.
8968 (java_name_of_variable): Same.
8969 (java_path_expr_of_child): Same.
8970 (java_value_of_variable): Same.
8971 * varobj.c (number_of_children): Same.
8972 (name_of_variable): Same.
8974 (varobj_ensure_python_env): Same.
8975 (varobj_get_objname): Same.
8976 (varobj_get_expression): Same.
8977 (varobj_get_display_format): Same.
8978 (varobj_get_display_hint): Same.
8979 (varobj_has_more): Same.
8980 (varobj_get_thread_id): Same.
8981 (varobj_get_frozen): Same.
8982 (dynamic_varobj_has_child_method): Same.
8983 (varobj_get_gdb_type): Same.
8984 (is_path_expr_parent): Same.
8985 (varobj_default_is_path_expr_parent): Same.
8986 (varobj_get_language): Same.
8987 (varobj_get_attributes): Same.
8988 (varobj_is_dynamic_p): Same.
8989 (varobj_get_child_range): Same.
8990 (varobj_value_has_mutated): Same.
8991 (varobj_get_value_type): Same.
8992 (number_of_children): Same.
8993 (name_of_variable): Same.
8994 (check_scope): Same.
8995 (varobj_editable_p): Same.
8996 (varobj_value_is_changeable_p): Same.
8997 (varobj_floating_p): Same.
8998 (varobj_default_value_is_changeable_p): Same.
9000 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9002 * varobj.c (varobj_get_path_expr): Set var->path_expr.
9003 * c-varobj.c (c_path_expr_of_child): Set local var instead of
9005 (cplus_path_expr_of_child): Same.
9007 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9009 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
9011 (mi_cmd_var_info_expression): Same.
9012 * varobj.c (varobj_get_expression): Mention in the comment that
9013 the result must by freed by the caller.
9015 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9017 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9019 (varobj_update_one): Same.
9020 * varobj.c (update_type_if_necessary): Free curr_type_str and
9022 (varobj_get_type): Specify in comment that the result needs to be
9023 freed by the caller.
9025 2015-01-29 Doug Evans <dje@google.com>
9028 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9030 2015-01-25 Mark Wielaard <mjw@redhat.com>
9032 * dwarf2read.c (checkproducer): Call producer_is_gcc.
9033 * utils.c (producer_is_gcc_ge_4): Likewise.
9034 (producer_is_gcc): New function.
9035 * utils.h (producer_is_gcc): New declaration.
9037 2015-01-29 Joel Brobecker <brobecker@adacore.com>
9039 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
9041 * gdbtypes.c (resolve_dynamic_type_internal): Replace "addr"
9042 parameter by "addr_stack" parameter.
9043 (resolve_dynamic_range): Replace "addr" parameter by
9044 "stack_addr" parameter. Update function documentation.
9045 Update code accordingly.
9046 (resolve_dynamic_array, resolve_dynamic_union)
9047 (resolve_dynamic_struct, resolve_dynamic_type_internal): Likewise.
9048 (resolve_dynamic_type): Update code, following the changes made
9049 to resolve_dynamic_type_internal's interface.
9050 * dwarf2loc.h (struct property_addr_info): New.
9051 (dwarf2_evaluate_property): Replace "address" parameter
9052 by "addr_stack" parameter. Adjust function documentation.
9053 (struct dwarf2_offset_baton): New.
9054 (struct dwarf2_property_baton): Update documentation of
9055 field "referenced_type" to be more general. New field
9056 "offset_info" in union data field.
9057 * dwarf2loc.c (dwarf2_evaluate_property): Replace "address"
9058 parameter by "addr_stack" parameter. Adjust code accordingly.
9059 Add support for PROP_ADDR_OFFSET properties.
9060 * dwarf2read.c (attr_to_dynamic_prop): Add support for
9061 DW_AT_data_member_location attributes as well. Use case
9062 statements instead of if/else condition.
9064 2015-01-29 Joel Brobecker <brobecker@adacore.com>
9066 * ada-varobj.c (ada_varobj_get_array_number_of_children):
9067 Return zero if PARENT_VALUE is NULL and parent_type's
9068 range type is dynamic.
9070 2015-01-29 Joel Brobecker <brobecker@adacore.com>
9072 * gdbtypes.c (is_dynamic_type_internal) <TYPE_CODE_RANGE>: Return
9073 nonzero if the type's subtype is dynamic.
9074 (resolve_dynamic_range): Also resolve the range's subtype.
9076 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
9078 Pushed by Joel Brobecker <brobecker@adacore.com>.
9079 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
9081 2015-01-27 Doug Evans <dje@google.com>
9083 * NEWS: Mention gdb.Objfile.username.
9084 * python/py-objfile.c (objfpy_get_username): New function.
9085 (objfile_getset): Add "username".
9087 2015-01-24 Mark Wielaard <mjw@redhat.com>
9089 * stack.c (return_command): Markup warning message with _.
9091 2015-01-24 Doug Evans <xdje42@gmail.com>
9093 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
9095 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9097 Fix 100x slowdown regression on DWZ files.
9098 * dwarf2read.c (struct dwarf2_per_objfile): Add line_header_hash.
9099 (struct line_header): Add offset and offset_in_dwz.
9100 (dwarf_decode_lines): Add parameter decode_mapping to the declaration.
9101 (free_line_header_voidp): New declaration.
9102 (line_header_hash, line_header_hash_voidp, line_header_eq_voidp): New
9104 (dwarf2_build_include_psymtabs): Update dwarf_decode_lines caller.
9105 (handle_DW_AT_stmt_list): Use line_header_hash.
9106 (free_line_header_voidp): New function.
9107 (dwarf_decode_line_header): Initialize offset and offset_in_dwz.
9108 (dwarf_decode_lines): New parameter decode_mapping, use it.
9109 (dwarf2_free_objfile): Free line_header_hash.
9111 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
9114 * valops.c (value_rtti_indirect_type): Catch exception thrown by
9117 2015-01-15 Mark Wielaard <mjw@redhat.com>
9119 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
9121 * gdbtypes.h (struct func_type): Add is_noreturn field flag. Make
9122 calling_convention an 8 bit bit field.
9123 (TYPE_NO_RETURN): New macro.
9124 * infcmd.c (finish_command): Query if function does not return
9126 * stack.c (return_command): Likewise.
9128 2015-01-23 Pedro Alves <palves@redhat.com>
9130 * linux-nat.c (linux_is_async_p): New macro.
9131 (linux_nat_is_async_p):
9132 (linux_nat_terminal_inferior): Check whether the target can async
9133 instead of whether it is already async.
9134 (linux_nat_terminal_ours): Don't check whether the target is
9136 (linux_async_pipe): Use linux_is_async_p.
9138 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9140 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
9142 * thread.c (tp_array_compar_ascending, tp_array_compar): New.
9143 (thread_apply_all_command): Parse CMD for tp_array_compar_ascending.
9144 Sort tp_array using tp_array_compar.
9145 (_initialize_thread): Extend thread_apply_all_command help.
9147 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9149 * corelow.c (core_open): Call also thread_command.
9150 * gdbthread.h (thread_command): New prototype moved from ...
9151 * thread.c (thread_command): ... here.
9152 (thread_command): Make it global.
9154 2015-01-22 Pedro Alves <palves@redhat.com>
9156 * configure.ac [*mingw32*]: Check $curses_found instead of
9158 * configure: Regenerate.
9159 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
9160 HAVE_NCURSES_NCURSES_H checks.
9162 2015-01-22 Eli Zaretskii <eliz@gnu.org>
9164 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
9165 fails with the 1st arg NULL, try again with "unknown". Don't test
9166 the "cup" capability: it isn't supported by the Windows port of
9167 ncurses, but the Windows console driver is still capable of
9170 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9172 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
9174 2015-01-22 Eli Zaretskii <eliz@gnu.org>
9176 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
9177 (ALLDEPFILES): Remove irix5-nat.c. These two are part of the
9178 reason that "make TAGS" is broken.
9180 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
9182 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
9183 and check additional store instructions.
9185 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
9187 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
9189 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
9191 * ppc-linux-tdep.c (ppc_skip_trampoline_code,
9192 ppc_canonicalize_syscall, ppc_linux_syscall_record,
9193 ppc_linux_record_signal, ppc_init_linux_record_tdep): Add comments.
9194 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9195 * rs6000-tdep.c (rs6000_epilogue_frame_cache,
9196 rs6000_epilogue_frame_this_id, rs6000_epilogue_frame_prev_register,
9197 rs6000_epilogue_frame_sniffer, ppc_record_vsr, ppc_process_record_op4,
9198 ppc_process_record_op19, ppc_process_record_op31,
9199 ppc_process_record_op59, ppc_process_record_op60,
9200 ppc_process_record_op63): Likewise.
9202 2015-01-20 Joel Brobecker <brobecker@adacore.com>
9204 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
9205 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
9208 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
9210 * rs6000-tdep.c (ppc_process_record_op4, ppc_process_record_op19,
9211 ppc_process_record_op31, ppc_process_record_op59,
9212 ppc_process_record_op60, ppc_process_record_op63,
9213 ppc_process_record): Fix -Wformat warning.
9214 * rs6000-tdep.c (rs6000_epilogue_frame_cache, ppc_process_record_op60):
9215 Remove unused variables.
9217 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
9219 * MAINTAINERS (Write After Approval): Add "Chen Gang".
9221 2015-01-19 Eli Zaretskii <eliz@gnu.org>
9223 * configure.ac [*mingw32*]: Only add windows-termcap.o to
9224 CONFIG_OBS if not building with a curses library.
9225 * configure: Regenerate.
9227 * windows-termcap.c: Include defs.h. Make the whole body empty if
9228 either one of HAVE_CURSES_H or HAVE_NCURSES_H or
9229 HAVE_NCURSES_NCURSES_H is defined.
9231 2015-01-19 Joel Brobecker <brobecker@adacore.com>
9233 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
9234 from end of line to start of next line.
9236 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
9238 * ppc-linux-tdep.c (ppc_skip_trampoline_code):
9239 Scan PLT stub backward for reverse debugging.
9240 * ppc64-tdep.c (ppc64_skip_trampoline_code): Likewise.
9242 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
9243 Ulrich Weigand <uweigand@de.ibm.com>
9245 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
9247 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
9249 (ppc_canonicalize_syscall, ppc_linux_syscall_record,
9250 ppc_linux_record_signal, ppc_init_linux_record_tdep): New functions.
9251 (ppc_linux_init_abi): Set process_record, process_record_signal.
9252 * ppc-tdep.h (struct gdbarch_tdep): Add ppc_syscall_record and
9253 ppc_linux_record_tdep to gdbarch_tdep.
9254 (ppc_process_record): New declaration.
9255 * rs6000-tdep.c (ppc_record_vsr, ppc_process_record_op4,
9256 ppc_process_record_op19, ppc_process_record_op31,
9257 ppc_process_record_op59, ppc_process_record_op60,
9258 ppc_process_record_op63, ppc_process_record): New functions.
9260 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
9262 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
9263 rs6000_in_function_epilogue_frame_p and add an argument
9265 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
9266 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
9268 (rs6000_epilogue_frame_unwind): New.
9269 (rs6000_gdbarch_init): Append epilogue unwinder.
9271 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9273 * nat/linux-personality.c: Replace "#ifndef
9274 HAVE_DECL_ADDR_NO_RANDOMIZE" by "#if
9275 !HAVE_DECL_ADDR_NO_RANDOMIZE", fixing a regression in RHEL-5
9278 2015-01-16 Eli Zaretskii <eliz@gnu.org>
9280 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
9282 (_initialize_tui_win) <border-kind, border-mode>:
9283 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
9284 (tui_set_tab_width_command): Fix the commentary.
9286 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
9288 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
9290 (tui_set_tab_width_command): Delete and recreate the source and
9291 the disassembly windows, to show the effect of the changed tab
9294 * tui/tui-data.h (LINE_PREFIX): Make shorter
9295 (MAX_PID_WIDTH): Enlarge from 14 to 19, to leave enough space for
9296 "Thread NNNNN.XXXX" thread ID notation on Windows.
9298 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9300 Fix gcc-5 compilation.
9301 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
9303 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9305 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-personality.h.
9306 (linux-personality.o): New rule.
9307 * common/common-defs.h: Include <stdint.h>.
9308 * config/aarch64/linux.mh (NATDEPFILES): Include
9309 linux-personality.o.
9310 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
9311 * config/arm/linux.mh (NATDEPFILES): Likewise.
9312 * config/i386/linux64.mh (NATDEPFILES): Likewise.
9313 * config/i386/linux.mh (NATDEPFILES): Likewise.
9314 * config/ia64/linux.mh (NATDEPFILES): Likewise.
9315 * config/m32r/linux.mh (NATDEPFILES): Likewise.
9316 * config/m68k/linux.mh (NATDEPFILES): Likewise.
9317 * config/mips/linux.mh (NATDEPFILES): Likewise.
9318 * config/pa/linux.mh (NATDEPFILES): Likewise.
9319 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
9320 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
9321 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
9322 * config/s390/linux.mh (NATDEPFILES): Likewise.
9323 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
9324 * config/sparc/linux.mh (NATDEPFILES): Likewise.
9325 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
9326 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
9327 * defs.h: Remove #include <stdint.h> (moved to
9328 common/common-defs.h).
9329 * linux-nat.c: Include nat/linux-personality.h. Remove #include
9330 <sys/personality.h>; do not define ADDR_NO_RANDOMIZE (moved to
9331 nat/linux-personality.c).
9332 (linux_nat_create_inferior): Remove code to disable address space
9333 randomization (moved to nat/linux-personality.c). Create cleanup
9334 to disable address space randomization.
9335 * nat/linux-personality.c: New file.
9336 * nat/linux-personality.h: Likewise.
9338 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
9340 * Makefile.in (ALLDEPFILES): Including common/mingw-strerror.c and
9341 common/posix-strerror.c.
9342 (posix-strerror.o): New rule.
9343 (mingw-strerror.o): Likewise.
9344 * common/common-utils.h (safe_strerror): Move prototype to here,
9346 * common/common.host: New file.
9347 * common/mingw-strerror.c: Likewise.
9348 * common/posix-strerror.c: Likewise.
9349 * configure: Regenerated.
9350 * configure.ac: Source common/common.host. Add variable
9351 common_host_obs to gdb_host_obs.
9352 * contrib/ari/gdb_ari.sh: Mention gdb/common/mingw-strerror.c and
9353 gdb/common/posix-strerror.c when warning about the use of
9355 * mingw-hdep.c (safe_strerror): Remove definition; move it to
9356 common/mingw-strerror.c.
9357 * posix-hdep.c (safe_strerror): Remove definition; move it to
9358 common/posix-hdep.c.
9359 * utils.h (safe_strerror): Remove prototype; move to
9360 common/common-utils.h.
9362 2015-01-15 Joel Brobecker <brobecker@adacore.com>
9366 2015-01-15 Joel Brobecker <brobecker@adacore.com>
9368 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
9369 ___XA type if the array has already been fixed.
9371 2015-01-14 Yao Qi <yao@codesourcery.com>
9373 * Makefile.in (ppc-linux.o): New rule.
9374 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add ppc-linux.o.
9375 * configure.ac: AC_CHECK_FUNCS(getauxval).
9376 * config.in: Re-generated.
9377 * configure: Re-generated.
9378 * nat/ppc-linux.h [__powerpc64__] (ppc64_64bit_inferior_p):
9380 * nat/ppc-linux.c: New file.
9381 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
9382 Call ppc64_64bit_inferior_p.
9384 2015-01-14 Yao Qi <yao@codesourcery.com>
9386 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
9388 (PPC_FEATURE_CELL, PPC_FEATURE_BOOKE): Likewise.
9389 (PPC_FEATURE_HAS_DFP): Likewise.
9390 (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Likewise.
9391 (PTRACE_GETVSXREGS, PTRACE_SETVSXREGS): Likewise.
9392 (PTRACE_GETEVRREGS, PTRACE_SETEVRREGS): Likewise.
9393 Include "nat/ppc-linux.h".
9394 * nat/ppc-linux.h: New file.
9395 * Makefile.in (HFILES_NO_SRCDIR): Add nat/ppc-linux.h.
9397 2015-01-14 Pedro Alves <palves@redhat.com>
9400 * breakpoint.c: Include "interps.h".
9401 (bpstat_do_actions_1): Also check whether the interpreter is
9404 2015-01-14 Pedro Alves <palves@redhat.com>
9407 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
9408 reinstall if the interpreter is sync.
9410 2015-01-13 Doug Evans <dje@google.com>
9412 * objfiles.c (objfile_filename): New function.
9413 * objfiles.h (objfile_filename): Declare it.
9414 (objfile_name): Add function comment.
9415 * python/py-objfile.c (objfpy_lookup_objfile_by_name): Try both the
9416 bfd file name (which may be realpath'd), and the original name.
9418 2015-01-13 Joel Brobecker <brobecker@adacore.com>
9420 * NEWS: Create a new section for the next release branch.
9421 Rename the section of the current branch, now that it has
9424 2015-01-13 Joel Brobecker <brobecker@adacore.com>
9426 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
9427 * version.in: Bump version to 7.9.50.DATE-cvs.
9429 2015-01-13 Joel Brobecker <brobecker@adacore.com>
9431 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
9432 Remove trailing new-line in argument of call to warning.
9434 2015-01-13 Joel Brobecker <brobecker@adacore.com>
9436 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
9437 new-line in argument of call to "warning".
9439 2015-01-13 Joel Brobecker <brobecker@adacore.com>
9441 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
9442 in static block, then try searching for primitive types.
9444 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
9446 * top.h (gdb_add_history): Declare.
9447 * top.c (command_count): New variable.
9448 (gdb_add_history): New function.
9449 (gdb_safe_append_history): New static function.
9450 (quit_force): Call it.
9451 (command_line_input): Use gdb_add_history instead of
9453 * event-top.c (command_line_handler): Likewise.
9455 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
9458 * darwin-nat.c: Replace <machine/setjmp.h> #include by
9459 <setjmp.h> #include.
9461 2015-01-11 Doug Evans <xdje42@gmail.com>
9463 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
9465 2015-01-11 Doug Evans <xdje42@gmail.com>
9468 * NEWS: The "maint demangle" command is renamed as "demangle".
9469 * demangle.c: #include cli/cli-utils.h, language.h.
9470 (demangle_command): New function.
9471 (_initialize_demangle): Add new command "demangle".
9472 * maint.c (maintenance_demangle): Stub out.
9473 (_initialize_maint_cmds): Update help text for "maint demangle",
9474 and mark as deprecated.
9476 2015-01-11 Mark Kettenis <kettenis@gnu.org>
9478 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
9479 inferior_thread is a function.
9481 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9483 * Makefile.in (.y.c): Don't munge yacc's #line
9486 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9488 * utils.c (defaulted_query): Rewrite to use gdb_readline_wrapper
9489 to prompt for input.
9490 * tui/tui-hooks.c (tui_query_hook): Remove.
9491 (tui_install_hooks): Don't set deprecated_query_hook.
9492 * tui/tui-io.c (tui_redisplay_readline): Fix off-by-one error in
9493 height calculation. Always update the command window's cur_line.
9495 2015-01-09 Pedro Alves <palves@redhat.com>
9497 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
9499 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
9501 * linux-nat.c (linux_nat_status_is_event): Move higher up in file.
9502 (linux_resume_one_lwp): Store the thread's PC. Adjust to clear
9504 (check_stopped_by_watchpoint): New function.
9505 (save_sigtrap): Reimplement.
9506 (linux_nat_stopped_by_watchpoint): Adjust.
9507 (linux_nat_lp_status_is_event): Delete.
9508 (stop_wait_callback): Only call save_sigtrap after storing the
9510 (status_callback): If the thread had been stopped for a breakpoint
9511 that has since been removed, discard the event and resume the LWP.
9512 (count_events_callback, select_event_lwp_callback): Use
9513 lwp_status_pending_p instead of linux_nat_lp_status_is_event.
9514 (cancel_breakpoint): Rename to ...
9515 (check_stopped_by_breakpoint): ... this. Record whether the LWP
9516 stopped for a software breakpoint or hardware breakpoint.
9517 (select_event_lwp): Only give preference to the stepping LWP in
9518 all-stop mode. Adjust comments.
9519 (stop_and_resume_callback): Remove references to new_pending_p.
9520 (linux_nat_filter_event): Likewise. Leave exit events of the
9521 leader thread pending here. Handle signal short circuiting here.
9522 Only call save_sigtrap after storing the pending waitstatus.
9523 (linux_nat_wait_1): Remove 'retry' label. Remove references to
9524 new_pending. Don't handle leaving events the caller is not
9525 interested in pending here, nor handle signal short-circuiting
9526 here. Also give equal priority to all LWPs that have had events
9527 in non-stop mode. If reporting a software breakpoint event,
9528 unadjust the LWP's PC.
9529 * linux-nat.h (enum lwp_stop_reason): New.
9530 (struct lwp_info) <stop_pc>: New field.
9531 (struct lwp_info) <stopped_by_watchpoint>: Delete field.
9532 (struct lwp_info) <stop_reason>: New field.
9533 * x86-linux-nat.c (x86_linux_prepare_to_resume): Adjust.
9535 2015-01-09 Pedro Alves <palves@redhat.com>
9537 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
9538 Set the LWP's 'resumed' flag.
9540 2015-01-09 Pedro Alves <palves@redhat.com>
9542 * linux-nat.c (linux_resume_one_lwp): New function.
9543 (resume_lwp): Use lwp_status_pending_p and linux_resume_one_lwp.
9544 (linux_nat_resume): Use lwp_status_pending_p and
9545 linux_resume_one_lwp.
9546 (linux_handle_syscall_trap): Use linux_resume_one_lwp.
9547 (linux_handle_extended_wait): Use linux_resume_one_lwp.
9548 (status_callback, running_callback): Use lwp_status_pending_p.
9549 (lwp_status_pending_p): New function.
9550 (stop_and_resume_callback): Use lwp_status_pending_p.
9551 (linux_nat_filter_event): Use linux_resume_one_lwp.
9552 (linux_nat_wait_1): Always use status_callback to look for an LWP
9553 with a pending status. Use linux_resume_one_lwp.
9554 (resume_stopped_resumed_lwps): Use lwp_status_pending_p and
9555 linux_resume_one_lwp.
9557 2015-01-09 Pedro Alves <palves@redhat.com>
9559 * breakpoint.c (bp_location_inserted_here_p): New function,
9560 factored out from ...
9561 (breakpoint_inserted_here_p): ... here. Use
9562 ALL_BP_LOCATIONS_AT_ADDR.
9563 (software_breakpoint_inserted_here_p): Use
9564 bp_location_inserted_here_p and ALL_BP_LOCATIONS_AT_ADDR.
9566 2014-01-09 Pedro Alves <palves@redhat.com>
9568 Skip enabling event reporting if the kernel supports
9570 * linux-thread-db.c: Include "nat/linux-ptrace.h".
9571 (thread_db_use_events): New function.
9572 (try_thread_db_load_1): Check thread_db_use_events before enabling
9574 (update_thread_state): New function.
9575 (attach_thread): Use it. Check thread_db_use_events before
9576 enabling event reporting.
9577 (thread_db_detach): Check thread_db_use_events before disabling
9579 (find_new_threads_callback): Check thread_db_use_events before
9580 enabling event reporting. Update the thread's state if not using
9581 libthread_db events.
9583 2015-01-09 Pedro Alves <palves@redhat.com>
9585 * linux-nat.c (lin_lwp_attach_lwp): Assert that the lwp id we're
9586 about to wait for is > 0.
9587 * linux-thread-db.c (find_new_threads_callback): Ignore thread if
9588 the kernel thread ID is -1.
9590 2015-01-09 Pedro Alves <palves@redhat.com>
9592 * linux-nat.c (attach_proc_task_lwp_callback): New function.
9593 (linux_nat_attach): Use linux_proc_attach_tgid_threads.
9594 (wait_lwp, linux_nat_filter_event): If not set yet, set the lwp's
9595 ptrace option flags.
9596 * linux-nat.h (struct lwp_info) <must_set_ptrace_flags>: New
9598 * nat/linux-procfs.c: Include <dirent.h>.
9599 (linux_proc_get_int): New parameter "warn". Handle it.
9600 (linux_proc_get_tgid): Adjust.
9601 (linux_proc_get_tracerpid): Rename to ...
9602 (linux_proc_get_tracerpid_nowarn): ... this.
9603 (linux_proc_pid_get_state): New function, factored out from
9604 (linux_proc_pid_has_state): ... this. Add new parameter "warn"
9606 (linux_proc_pid_is_gone): New function.
9607 (linux_proc_pid_is_stopped): Adjust.
9608 (linux_proc_pid_is_zombie_maybe_warn)
9609 (linux_proc_pid_is_zombie_nowarn): New functions.
9610 (linux_proc_pid_is_zombie): Use
9611 linux_proc_pid_is_zombie_maybe_warn.
9612 (linux_proc_attach_tgid_threads): New function.
9613 * nat/linux-procfs.h (linux_proc_get_tgid): Update comment.
9614 (linux_proc_get_tracerpid): Rename to ...
9615 (linux_proc_get_tracerpid_nowarn): ... this, and update comment.
9616 (linux_proc_pid_is_gone): New declaration.
9617 (linux_proc_pid_is_zombie): Update comment.
9618 (linux_proc_pid_is_zombie_nowarn): New declaration.
9619 (linux_proc_attach_lwp_func): New typedef.
9620 (linux_proc_attach_tgid_threads): New declaration.
9621 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason): Adjust to
9622 use nowarn functions.
9623 (linux_ptrace_attach_fail_reason_string): Move here from
9624 gdbserver/linux-low.c and rename.
9625 (ptrace_supports_feature): If the current ptrace options are not
9626 known yet, check them now, instead of asserting.
9627 * nat/linux-ptrace.h (linux_ptrace_attach_fail_reason_string):
9630 2015-01-09 Pedro Alves <palves@redhat.com>
9632 * linux-thread-db.c (thread_db_find_new_threads_silently)
9633 (try_thread_db_load_1, try_thread_db_load, thread_db_load_search)
9634 (find_new_threads_once): Print debug output on gdb_stdlog.
9636 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
9637 Pedro Alves <palves@redhat.com>
9639 * compile/compile.c: Include "gdb_wait.h".
9640 (do_rmdir): Check return value, and free 'zap'.
9642 2015-01-08 Pedro Alves <palves@redhat.com>
9643 Yao Qi <yao@codesourcery.com>
9645 * dwarf2loc.c (indirect_pieced_value): Don't call
9646 gdb_sign_extend. Call extract_signed_integer instead.
9647 * utils.c (gdb_sign_extend): Remove.
9648 * utils.h (gdb_sign_extend): Remove declaration.
9650 2015-01-07 Pierre Muller <muller@sourceware.org>
9653 * stabsread.c (define_symbol): Set language for C++ special symbols.
9655 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
9657 * inflow.c (initial_gdb_ttystate): Tweak comment.
9659 2015-01-07 Joel Brobecker <brobecker@adacore.com>
9661 * inflow.c (set_initial_gdb_ttystate): Add empty line after
9662 comment documenting function.
9664 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
9666 * terminal.h (set_initial_gdb_ttystate): Declare.
9667 * inflow.c (initial_gdb_ttystate): New static variable.
9668 (set_initial_gdb_ttystate): New setter.
9669 (child_terminal_init_with_pgrp): Copy initial_gdb_ttystate
9670 instead of our current terminal state.
9671 * top.c (gdb_init): Call set_initial_gdb_ttystate.
9673 2015-01-07 Joel Brobecker <brobecker@adacore.com>
9675 * guile/scm-type.c (tyscm_array_1): Add comment.
9676 * python/py-type.c (typy_array_1): Add comment.
9678 2015-01-06 Joel Brobecker <brobecker@adacore.com>
9680 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
9681 error if N2 is equal to N1 - 1.
9683 2015-01-06 Joel Brobecker <brobecker@adacore.com>
9685 * python/py-type.c (typy_array_1): Do not raise negative-length
9686 exception if N2 is equal to N1 - 1.
9688 2015-01-03 Doug Evans <xdje42@gmail.com>
9690 * c-exp.y: Whitespace cleanup.
9691 (classify_inner_name): Remove extra ;.
9693 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
9695 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
9698 2015-01-02 Doug Evans <dje@google.com>
9700 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
9702 2015-01-02 Doug Evans <dje@google.com>
9704 * symtab.h (struct symbol): Fix typo in comment.
9706 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9708 Update year range in copyright notice of all files.
9710 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9712 * top.c (print_gdb_version): Update copyright year to 2015.
9714 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9716 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
9718 For older changes see ChangeLog-2014.
9724 version-control: never