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