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