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