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