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