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