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