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