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