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