1 2015-08-28 Simon Marchi <simon.marchi@ericsson.com>
3 * NEWS: Update entry about non-8-bits addressable memory.
5 2015-08-28 Ulrich Weigand <uweigand@de.ibm.com>
8 2014-11-06 Doug Evans <xdje42@gmail.com>
9 * solib.c (solib_global_lookup): Fetch arch from objfile,
12 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
14 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Do not
15 attempt to relocate a TLS variable offset.
17 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
19 * spu-multiarch.c (parse_spufs_run): Bail out if inferior is not
20 registered yet. Set inferior_ptid while calling target_read_memory.
22 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
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.
29 2015-08-27 Ulrich Weigand <uweigand@de.ibm.com>
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.
35 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
37 * m88k-tdep.c (m88k_analyze_prologue): Fix inverted allocation
40 2015-08-27 Simon Marchi <simon.marchi@ericsson.com>
42 * NEWS: Document support for non-8-bits addressable memory.
44 2015-08-27 Pedro Alves <palves@redhat.com>
46 * configure.ac: Remove AC_TYPE_SIGNAL call.
47 * configure, config.in: Regenerate.
49 2015-08-27 Pedro Alves <palves@redhat.com>
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
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.
66 2015-08-27 Pedro Alves <palves@redhat.com>
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.
79 2015-08-27 Pedro Alves <palves@redhat.com>
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
86 (set_memory_packet_size): Adjust, and remove dead code.
87 (remote_check_symbols): Use xmalloc and a cleanup instead of
89 (remote_packet_size): No longer cap the packet size.
90 (putpkt_binary): Use xmalloc and a cleanup instead of alloca.
92 2015-08-26 Luis Machado <lgustavo@codesourcery.com>
94 * compile/compile.c (compile_to_object): Mention language in
97 2015-08-26 Patrick Palka <patrick@parcs.ath.cx>
99 * target.c (target_pre_inferior): Unset attach_flag.
101 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
103 * gdbarch.sh (append_name): Fix type in XRESIZEVEC.
104 * gdbarch.c: Re-generate.
106 2015-08-26 Simon Marchi <simon.marchi@ericsson.com>
108 * aarch64-linux-nat.c (aarch64_add_process): Replace xmalloc-family
109 function with the XNEW-family equivalent.
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.
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.
445 2015-08-25 Don Breazeal <donb@codesourcery.com>
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.
453 2015-08-26 Pedro Alves <palves@redhat.com>
455 * MAINTAINERS: Add Markus Metzger as btrace maintainer.
457 2015-08-25 Pedro Alves <palves@redhat.com>
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
477 (target_check_pending_interrupt): New declaration.
478 * utils.c (maybe_quit): New function.
479 * target-delegates.c: Regenerate.
481 2015-08-25 Yao Qi <yao.qi@linaro.org>
483 * nat/aarch64-linux-hw-point.c (debug_reg_change_callback):
484 Rename local variable pid to tid, and get lwpid of lwp. Update
487 2015-08-25 Pierre-Marie de Rodat <derodat@adacore.com>
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
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
511 * go-exp.y: Likewise.
512 * jv-exp.y: Likewise.
513 * m2-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
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
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
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
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
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
590 (value_struct_elt_for_reference): Update calls to
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.
596 2015-08-25 Yao Qi <yao.qi@linaro.org>
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.
602 2015-08-25 Yao Qi <yao.qi@linaro.org>
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
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.
615 2015-08-25 Yao Qi <yao.qi@linaro.org>
617 * aarch64-linux-nat.c (aarch64_linux_prepare_to_resume): Use
618 lwp_arch_private_info and ptid_of_lwp.
620 2015-08-25 Yao Qi <yao.qi@linaro.org>
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.
633 2015-08-25 Yao Qi <yao.qi@linaro.org>
635 * aarch64-linux-nat.c (aarch64_notify_debug_reg_change):
636 Call current_lwp_ptid.
638 2015-08-25 Yao Qi <yao.qi@linaro.org>
640 * aarch64-linux-nat.c (debug_reg_change_callback): Use
643 2015-08-25 Yao Qi <yao.qi@linaro.org>
645 * aarch64-linux-nat.c (debug_reg_change_callback): Call
646 ptid_get_pid rather than ptid_get_lwp.
648 2015-08-24 Pedro Alves <palves@redhat.com>
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".
656 2015-08-24 Pedro Alves <palves@redhat.com>
658 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
659 1029a8112290f6eee9d7878a391c49db42c999bd.
660 * gnulib/configure, gnulib/config.in, gnulib/aclocal.m4:
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.
825 2015-08-24 Pedro Alves <palves@redhat.com>
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.
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.
847 2015-08-24 Pedro Alves <palves@redhat.com>
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
854 (m68*-*-*): Remove monitor.o dbug-rom.o and dsrec.o from
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
860 (powerpc-*-lynx*178): Remove monitor.o and dsrec.o from
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.
869 2015-08-21 Pedro Alves <palves@redhat.com>
871 * frame.c (null_frame_id): Explicitly zero-initialize.
873 2015-08-21 Tom Tromey <tromey@redhat.com>
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.
883 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
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.
894 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
896 * tui/tui-io.c (tui_getc): Use tui_putc instead of waddch to
899 2015-08-21 Gary Benson <gbenson@redhat.com>
901 * gdb_bfd.c (gdb_bfd_iovec_fileio_pread): Add QUIT call.
903 2015-08-21 Gary Benson <gbenson@redhat.com>
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.
916 2015-08-21 Gary Benson <gbenson@redhat.com>
918 * nat/linux-namespaces.c (linux_mntns_access_fs):
919 Do not overwrite old_chain.
921 2015-08-20 Max Filippov <jcmvbkbc@gmail.com>
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.
934 2015-08-21 Pedro Alves <palves@redhat.com>
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
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.
948 2015-08-21 Marcin Cieślak <saper@saper.info> (tiny patch)
951 * procfs.c: Include "filestuff.h".
953 2015-08-21 Patrick Palka <patrick@parcs.ath.cx>
955 * tui/tui-data.h (tui_command_info): Remove fields cur_line and
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
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).
971 2015-08-20 Pedro Alves <palves@redhat.com>
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.
980 2015-08-20 Pedro Alves <palves@redhat.com>
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.
986 2015-08-20 Pierre-Marie de Rodat <derodat@adacore.com>
988 * ada-lex.l: Reset the start condition to INITIAL in the rule that
991 2015-08-19 Kevin Buettner <kevinb@redhat.com>
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.
1000 2015-08-18 Doug Evans <dje@google.com>
1001 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1004 * cli/cli-logging.c (pop_output_files): Don't restore redirection
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.
1019 2015-08-18 Sandra Loosemore <sandra@codesourcery.com>
1021 * remote.c (strprefix): New.
1022 (remote_parse_stop_reply): Use strprefix instead of strncmp
1023 to ensure exact match of keyword.
1025 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
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.
1035 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
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.
1043 2015-08-18 Andrew Burgess <andrew.burgess@embecosm.com>
1045 * gdb_bfd.c (struct gdb_bfd_data): Add size, inode, and device id
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.
1053 2015-08-18 Pedro Alves <palves@redhat.com>
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
1061 2015-08-17 Doug Evans <dje@google.com>
1063 * ui-out.c (default_ui_out_impl): Add comment.
1065 2015-08-17 Iain Buclaw <ibuclaw@gdcproject.org>
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.
1072 2015-08-15 Doug Evans <xdje42@gmail.com>
1074 * psymtab.c (add_psymbol_to_bcache): Remove "val" arg. All callers
1076 (add_psymbol_to_list): Ditto.
1078 2015-08-15 Doug Evans <xdje42@gmail.com>
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
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.
1091 2015-08-15 Doug Evans <xdje42@gmail.com>
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.
1104 2015-08-15 Doug Evans <xdje42@gmail.com>
1106 * objfiles.h: Whitespace cleanup.
1107 * psympriv.h: Whitespace cleanup.
1108 * psymtab.c: Whitespace/coding convention cleanup.
1110 2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
1112 * inferior.c (detach_inferior_command): Don't call
1113 any_thread_of_process when pid is 0.
1114 (kill_inferior_command): Likewise.
1116 2015-08-14 Doug Evans <xdje42@gmail.com>
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.
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.
1139 2015-08-14 Keith Seitz <keiths@redhat.com>
1141 * d-exp.y (PrimaryExpression : TypeExp '.' IdentifierExp): Rename
1142 `typename' to `type_name' to avoid C++ reserved word.
1144 2015-08-14 Keith Seitz <keiths@redhat.com>
1146 * location.c (EL_TYPE, EL_LINESPEC, EL_PROBE, EL_ADDRESS)
1147 (EL_EXPLICIT, EL_STRING): Change macro parameter to "P" to
1150 2015-08-14 Iain Buclaw <ibuclaw@gdcproject.org>
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.
1157 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
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
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.
1171 2015-08-14 Matthew Fortune <matthew.fortune@imgtec.com>
1173 * MAINTAINERS (Write After Approval): Add Matthew Fortune.
1175 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
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
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.
1197 (d_parse): Initialize token_fifo, popping and name_obstack.
1199 2015-08-13 Iain Buclaw <ibuclaw@gdcproject.org>
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.
1209 2015-08-13 Pedro Alves <palves@redhat.com>
1211 * python/py-unwind.c (pyuw_sniffer): Install the invalidate
1212 cleanup after the decref cleanup, not before.
1214 2015-08-13 Pierre-Marie de Rodat <derodat@adacore.com>
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
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
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
1258 * namespace.h: New file.
1259 * namespace.c: New file.
1260 * Makefile.in (SFILES): Add namespace.c.
1261 (COMMON_OBS): Add namespace.o
1263 2015-08-12 Joel Brobecker <brobecker@adacore.com>
1265 * amd64-tdep.c (amd64_displaced_step_fixup): Fix the mask used to
1268 2015-08-12 Keith Seitz <keiths@redhat.com>
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
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"
1294 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Rename reserved C++
1295 keyword "explicit" to "explicit_loc".
1297 2015-08-12 Keith Seitz <keiths@redhat.com>
1299 * python/python.c (gdbpy_decode_line): Initialize `location' to NULL
1300 and only call decode_line_1 when it is non-NULL.
1302 2015-08-12 Luis Machado <lgustavo@codesourcery.com>
1304 * breakpoint.c (bp_loc_is_permanent): Return 0 when breakpoint
1305 location address is not meaningful.
1306 (breakpoint_address_is_meaningful): Update comment.
1308 2015-08-11 Keith Seitz <keiths@redhat.com>
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".
1316 2015-08-11 Keith Seitz <keiths@redhat.com>
1318 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Add support for
1319 explicit locations, options "--source", "--function",
1320 "--label", and "--line".
1322 2015-08-11 Keith Seitz <keiths@redhat.com>
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
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.
1351 2015-08-11 Keith Seitz <keiths@redhat.com>
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
1360 (update_static_tracepoint): Convert linespec into explicit location.
1361 * linespec.c (enum offset_relative_sign, struct line_offset): Move
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
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
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
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
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.
1413 2015-08-11 Keith Seitz <keiths@redhat.com>
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
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.
1433 2015-08-11 Keith Seitz <keiths@redhat.com>
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
1439 (convert_address_location_to_sals): New function; contents moved
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
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.
1459 2015-08-11 Keith Seitz <keiths@redhat.com>
1461 * ax-gdb.c: Include location.h.
1462 (agent_command_1) Use linespec location instead of address
1464 * break-catch-throw.c: Include location.h.
1465 (re_set_exception_catchpoint): Use linespec locations instead
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
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.
1494 (decode_static_tracepoint_spec): Make argument const and update
1496 (create_breakpoint): Change `arg' to a struct event_location and
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
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
1517 (say_where): Print out extra_string for pending locations.
1518 (base_breakpoint_dtor): Delete `location' and `location_range_end' of
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
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
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
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
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
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.
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
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
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'.
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
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
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.
1633 2015-08-11 Keith Seitz <keiths@redhat.com>
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.
1643 2015-08-11 Keith Seitz <keiths@redhat.com>
1645 * breakpoint.h (struct breakpoint_ops) <create_sals_from_address>:
1646 Renamed to create_sals_from_location.
1647 <decode_linespec>: Renamed to decode_location.
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.
1676 2015-08-10 Doug Evans <dje@google.com>
1677 Keith Seitz <keiths@redhat.com>
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.
1684 2015-08-10 Joel Brobecker <brobecker@adacore.com>
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.
1690 2015-08-07 Pedro Alves <palves@redhat.com>
1692 * linux-nat.c (linux_nat_always_non_stop_p): Return 1.
1694 2015-08-07 Pedro Alves <palves@redhat.com>
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.
1702 2015-08-07 Pedro Alves <palves@redhat.com>
1704 * infrun.c (displaced_step_prepare_throw): Return -1 if
1705 gdbarch_displaced_step_copy_insn returns NULL. Update intro
1707 * rs6000-tdep.c (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION)
1708 (STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION): Move higher up
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
1716 * gdbarch.h: Regenerate.
1718 2015-08-07 Pedro Alves <palves@redhat.com>
1720 * inferior.h (struct inferior) <displaced_stepping_failed>: New
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
1730 2015-08-07 Pedro Alves <palves@redhat.com>
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
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
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.
1780 2015-08-07 Pedro Alves <palves@redhat.com>
1782 * signal-while-stepping-over-bp-other-thread.exp: Expect "restart
1783 threads" as alternative to "switching back to stepped thread".
1785 2015-08-07 Pedro Alves <palves@redhat.com>
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):
1794 (internal_resume_ptid): New function.
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
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"
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.
1830 2015-08-07 Pedro Alves <pedro@codesourcery.com>
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
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
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
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
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
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
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.
1895 2015-08-07 Pedro Alves <palves@redhat.com>
1897 * infrun.c (keep_going_stepped_thread): New function, factored out
1899 (switch_back_to_stepped_thread): ... here.
1901 2015-08-07 Pedro Alves <palves@redhat.com>
1903 * infrun.c (currently_stepping): Extend intro comment.
1904 * target.h (target_resume): Extend intro comment.
1906 2015-08-07 Pedro Alves <palves@redhat.com>
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
1915 2015-08-07 Pedro Alves <palves@redhat.com>
1917 * gdbthread.h (struct thread_info) <prev_pc>: Extend comment.
1918 * infrun.c (struct execution_control_state): Move higher up in the
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
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.
1942 2015-08-07 Pedro Alves <palves@redhat.com>
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
1949 * infrun.c (struct displaced_step_request): Delete.
1950 (struct displaced_step_inferior_state) <step_request_queue>:
1952 (displaced_step_prepare): Assert that trap_expected is set. Use
1953 thread_step_over_chain_enqueue. Split starting a new displaced
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
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.
1972 2015-08-07 Pedro Alves <palves@redhat.com>
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.
1979 2015-08-07 Pedro Alves <palves@redhat.com>
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.
1985 2015-08-07 Pedro Alves <pedro@codesourcery.com>
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.
1991 2015-08-07 Pedro Alves <palves@redhat.com>
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.
2009 2015-08-07 Joel Brobecker <brobecker@adacore.com>
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.
2015 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
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.
2027 2015-08-07 Andrew Burgess <andrew.burgess@embecosm.com>
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.
2038 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
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.
2048 2015-08-07 Markus Metzger <markus.t.metzger@intel.com>
2050 * configure.ac: Check for PERF_ATTR_SIZE_VER5 in linux/perf_event.h
2051 * configure: Regenerate.
2053 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
2055 * Makefile.in (LIBICONV): Define.
2056 (CLIBS): Add LIBICONV.
2057 * acinclude.m4: Use config/iconv.m4 instead of custom AM_ICONV.
2058 * configure: Regenerate.
2060 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
2061 Pedro Alves <palves@redhat.com>
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):
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.
2102 2015-08-06 Clem Dickey <clemd@acm.org>
2105 * python/lib/gdb/command/type_printers.py (InfoTypePrinter): Fix typo.
2107 2015-08-06 Simon Marchi <simon.marchi@ericsson.com>
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.
2116 2015-08-06 Pedro Alves <palves@redhat.com>
2118 * nat/linux-waitpid.c (my_waitpid): Only print *status if waitpid
2121 2015-08-06 Pierre Langlois <pierre.langlois@arm.com>
2123 * common/agent.c (symbol_list) <required>: Remove.
2125 2015-08-06 Pedro Alves <palves@redhat.com>
2127 * target/waitstatus.h (enum target_stop_reason)
2128 <TARGET_STOPPED_BY_SINGLE_STEP>: New value.
2130 2015-08-05 Pedro Alves <palves@redhat.com>
2131 Joel Brobecker <brobecker@adacore.com>
2133 * breakpoint.c (bpstat_what) <bp_longjmp, bp_longjmp_call_dummy>
2134 <bp_exception, bp_longjmp_resume, bp_exception_resume>: Handle the
2135 case where BS->STOP is not set.
2137 2015-08-05 Ulrich Weigand <uweigand@de.ibm.com>
2139 * nat/gdb_thread_db.h: Add copyright header.
2140 Protect against multiple inclusion.
2142 2015-08-05 Yao Qi <yao.qi@linaro.org>
2144 * aarch64-linux-nat.c (get_thread_id): Remove.
2145 (debug_reg_change_callback): Call ptid_get_lwp instead of
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
2169 2015-08-04 Ciro Santilli <ciro.santilli@gmail.com> (obvious patch)
2171 * python/py-linetable.c: Fix case of Linetable to LineTable
2172 in docstrings and code comments.
2173 * python/py-symtab.c: Same.
2175 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2177 * infcmd.c (signal_command): Call do_cleanups for args_chain.
2179 2015-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2182 * infcmd.c (attach_command): Move ARGS_CHAIN cleanup after last ARGS
2185 2015-08-04 Pedro Alves <palves@redhat.com>
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):
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
2200 2015-08-03 Sandra Loosemore <sandra@codesourcery.com>
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
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
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
2230 (nios2_linux_init_abi): Register appropriate unwinder for mach.
2232 2015-08-03 Ulrich Weigand <uweigand@de.ibm.com>
2234 * cp-namespace.c (cp_lookup_symbol_via_imports): Fix uninitialized
2235 variable warning with some compilers.
2237 2015-08-03 Yao Qi <yao.qi@linaro.org>
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".
2244 2015-08-02 Pierre-Marie de Rodat <derodat@adacore.com>
2246 * alpha-mdebug-tdep.c (find_proc_desc): Update call to
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.
2253 2015-08-01 Pierre-Marie de Rodat <derodat@adacore.com>
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
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
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
2286 (ada_tasks_inferior_data_sniffer): Likewise.
2287 * ax-gdb.c (gen_static_field): Likewise for the call to
2289 (gen_maybe_namespace_elt): Deal with struct block_symbol from
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
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
2300 block_symbol from lookup functions.
2301 (gcc_convert_symbol): Likewise. Update the call to
2303 * compile/compile-object-load.c (compile_object_load): Deal with
2304 struct block_symbol from lookup functions.
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,
2312 find_symbol_in_baseclass): Return struct block_symbol instead of
2313 mere symbols and deal with struct block_symbol from lookup
2315 * cp-support.c (inspect_type, replace_typedefs,
2316 cp_lookup_rtti_type): Deal with struct block_symbol from
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):
2321 Return struct block_symbol instead of mere symbols.
2322 * d-exp.y (d_type_from_name, d_module_from_name, push_variable,
2324 Deal with struct block_symbol from lookup functions. Remove
2325 uses of block_found.
2326 * eval.c (evaluate_subexp_standard): Update call to
2327 cp_lookup_symbol_namespace.
2328 * f-exp.y: Deal with struct block_symbol from lookup functions.
2329 Remove uses of block_found.
2331 * gdbtypes.c (lookup_typename, lookup_struct, lookup_union,
2332 lookup_enum, lookup_template_type, check_typedef): Deal with
2333 struct block_symbol from lookup functions.
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):
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
2346 la_lookup_symbol_nonlocal to return a struct block_symbol rather
2348 * linespec.c (find_label_symbols): Deal with struct block_symbol
2349 from lookup functions.
2350 * m2-exp.y: Likewise. Remove uses of block_found.
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.
2356 * p-valprint.c (pascal_val_print): Likewise.
2357 * parse.c (write_dollar_variable): Likewise. Remove uses of
2359 * parser-defs.h (struct symtoken): Turn the SYM field into a
2360 struct block_symbol.
2361 * printcmd.c (address_info): Deal with struct block_symbol from
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
2368 block_symbol instead of a mere symbol.
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
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.
2377 * stack.c (print_frame_args, iterate_over_block_arg_vars):
2379 * symfile.c (set_initial_language): Likewise.
2380 * symtab.c (SYMBOL_LOOKUP_FAILED): Turn into a struct
2382 (SYMBOL_LOOKUP_FAILED_P): New predicate as a macro.
2383 (struct symbol_cache_slot): Turn the FOUND field into a struct
2385 (block_found): Remove.
2386 (eq_symbol_entry): Update to deal with struct block_symbol in
2388 (symbol_cache_lookup): Return a struct block_symbol rather than
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
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):
2402 Return a struct block_symbol rather than a mere symbol. Deal
2403 with struct block_symbol from other lookup functions. Remove
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
2407 struct block_symbol.
2408 (lookup_symbol_global_iterator_cb): Update references to the
2410 (search_symbols): Deal with struct block_symbol from lookup
2412 * symtab.h (struct block_symbol): New structure.
2413 (block_found): Remove.
2414 (lookup_symbol_in_language, lookup_symbol,
2415 basic_lookup_symbol_nonlocal, lookup_symbol_in_static_block,
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.
2420 * valops.c (find_function_in_inferior,
2421 value_struct_elt_for_reference, value_maybe_namespace_elt,
2422 value_of_this): Deal with struct block_symbol from lookup
2424 * value.c (value_static_field, value_fn_field): Likewise.
2426 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
2428 * remote-m32r-sdi.c (m32r_remove_watchpoint): Use enum type
2431 2015-07-31 Simon Marchi <simon.marchi@ericsson.com>
2432 Pedro Alves <palves@redhat.com>
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
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.
2542 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
2544 * nios2-tdep.c (nios2_analyze_prologue): Do what the comment
2545 already says and disallow non-stack memory writes in the prologue.
2547 2015-07-30 Sandra Loosemore <sandra@codesourcery.com>
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.
2554 2015-07-30 Pedro Alves <palves@redhat.com>
2557 * linux-nat.c (wait_lwp): Report to the core when thread group
2560 2015-07-30 Pedro Alves <palves@redhat.com>
2561 Simon Marchi <simon.marchi@ericsson.com>
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.
2571 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
2573 * arch-utils.c (default_fast_tracepoint_valid_at): Remove unused
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.
2587 2015-07-30 Yao Qi <yao.qi@linaro.org>
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.
2593 2015-07-30 Pierre Langlois <pierre.langlois@arm.com>
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
2599 (decode_cb): Rename op argument to is_cbnz. Change its type to
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.
2607 2015-07-29 Simon Marchi <simon.marchi@ericsson.com>
2609 * mips-linux-nat.c (write_watchpoint_regs): Add NULL as ptrace's 4th
2611 (mips_linux_new_thread): Likewise.
2612 * nat/mips-linux-watch.c (mips_linux_read_watch_registers): Likewise.
2614 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
2616 * top.c: Include "tui/tui.h".
2617 (undo_terminal_modifications_before_exit): New static function.
2618 (quit_force): Use it.
2620 2015-07-29 Patrick Palka <patrick@parcs.ath.cx>
2622 * target.c (terminal_state): Initialize to terminal_is_ours.
2624 2015-07-29 Yao Qi <yao.qi@linaro.org>
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.
2632 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2634 * c-valprint.c (c_val_print_array): Consider addressable memory
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.
2664 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2666 * value.c (get_value_arch): New function.
2667 * value.h (get_value_arch): New declaration.
2669 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2671 * value.c (struct value): Update comments.
2673 2015-07-28 Simon Marchi <simon.marchi@ericsson.com>
2675 * gdbtypes.c (type_length_units): New function.
2676 * gdbtypes.h (type_length_units): New declaration.
2677 (struct type) <length>: Update comment.
2679 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2681 * valprint.c (generic_val_print): Factor out complex
2682 printing code to ...
2683 (generic_val_print_complex): ... this new function.
2685 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2687 * valprint.c (generic_val_print): Factor out decfloat
2688 printing code to ...
2689 (generic_val_print_decfloat): ... this new function.
2691 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2693 * valprint.c (generic_val_print): Factor out float
2694 printing code to ...
2695 (generic_val_print_float): ... this new function.
2697 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2699 * valprint.c (generic_val_print): Factor out char
2700 printing code to ...
2701 (generic_val_print_char): ... this new function.
2703 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2705 * valprint.c (generic_val_print): Factor out integer
2706 printing code to ...
2707 (generic_val_print_int): ... this new function.
2709 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2711 * valprint.c (generic_val_print): Factor out bool
2712 printing code to ...
2713 (generic_val_print_bool): ... this new function.
2715 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2717 * valprint.c (generic_val_print): Factor out function/method
2718 printing code to ...
2719 (generic_val_print_func): ... this new function.
2721 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2723 * valprint.c (generic_val_print): Factor out flags
2724 printing code to ...
2725 (generic_val_print_flags): ... this new function.
2727 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2729 * valprint.c (generic_val_print): Factor out enum
2730 printing code to ...
2731 (generic_val_print_enum): ... this new function.
2733 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2735 * valprint.c (generic_val_print): Factor out reference
2736 printing code to ...
2737 (generic_val_print_ref): ... this new function.
2739 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2741 * valprint.c (generic_val_print): Factor out memberptr
2742 printing code to ...
2743 (generic_val_print_memberptr): ... this new function.
2745 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2747 * valprint.c (generic_val_print): Factor out pointer
2748 printing code to ...
2749 (generic_val_print_ptr): ... this new function.
2751 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2753 * valprint.c (generic_val_print): Factor out array
2754 printing code to ...
2755 (generic_val_print_array): ... this new function.
2757 2015-07-27 Simon Marchi <simon.marchi@ericsson.com>
2759 * valprint.c (generic_val_print): Factor out
2760 print_unpacked_pointer code to ...
2761 (print_unpacked_pointer): ... this new function.
2763 2015-07-27 Patrick Palka <patrick@parcs.ath.cx>
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.
2769 2015-07-27 Yao Qi <yao.qi@linaro.org>
2771 * Makefile.in (REMOTE_EXAMPLES): Remove it.
2773 2015-07-25 Kevin Buettner <kevinb@redhat.com>
2775 * remote.c (read_ptid): Return null_ptid when no thread id
2777 (remote_current_thread): Add log warning for malformed
2779 (remote_start_remote): Add log warning when current thread
2782 2015-07-24 Pedro Alves <palves@redhat.com>
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.
2788 2015-07-24 Pedro Alves <palves@redhat.com>
2791 * linux-nat.c (linux_nat_filter_event): Don't assert that the lwp
2792 is resumed, and extend the debug log.
2794 2015-07-24 Pedro Alves <palves@redhat.com>
2796 * fork-child.c (fork_inferior): Print argv[0] instead of exec_file.
2798 2015-07-24 Pedro Alves <palves@redhat.com>
2800 * aarch64-linux-nat.c: Include nat/gdb_ptrace.h instead of
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.
2825 2015-07-24 Pedro Alves <palves@redhat.com>
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.
2835 2015-07-24 Pedro Alves <palves@redhat.com>
2837 * gdb_ptrace.h: Move ...
2838 * nat/gdb_ptrace.h: ... here.
2839 * inf-ptrace.c: Adjust.
2841 2015-07-24 Pedro Alves <palves@redhat.com>
2843 * acinclude.m4: Include ptrace.m4.
2844 * configure.ac: Call GDB_AC_PTRACE and move ptrace checks ...
2845 * ptrace.m4: ... to this new file.
2847 2015-07-23 Doug Evans <dje@google.com>
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.
2854 2015-07-23 Ciro Santilli <ciro.santilli@gmail.com> (tiny patch)
2856 * py-linetable.c (ltpy_get_all_source_lines): Adjust function
2857 documentation to say that it returns a list rather than
2859 (linetable_object_methods): Update the docstring of the
2860 "source_line" entry.
2862 2015-07-23 Pierre-Marie de Rodat <derodat@adacore.com>
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.
2868 2015-07-23 Yao Qi <yao.qi@linaro.org>
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.
2874 2015-07-21 Yao Qi <yao.qi@linaro.org>
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):
2881 * nat/aarch64-linux-hw-point.h (aarch64_linux_get_debug_reg_capacity):
2884 2015-07-21 Markus Metzger <markus.t.metzger@intel.com>
2886 * common/btrace-common.c (btrace_data_append): Change case label.
2888 2015-07-20 Yao Qi <yao.qi@linaro.org>
2890 * nat/aarch64-linux-hw-point.c (aarch64_handle_unaligned_watchpoint):
2892 * nat/aarch64-linux-hw-point.h: Use ULONGEST rather than
2893 "unsigned long long".
2895 2015-07-18 Kevin Buettner <kevinb@redhat.com>
2897 * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero
2898 to be set for SEC_ALLOC sections too.
2900 2015-07-17 Yao Qi <yao.qi@linaro.org>
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.
2935 2015-07-17 Yao Qi <yao.qi@linaro.org>
2937 * aarch64-linux-nat.c (aarch64_handle_breakpoint): Add argument
2938 state and don't call aarch64_get_debug_reg_state. All callers
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
2949 (aarch64_linux_remove_watchpoint): Likewise.
2951 2015-07-17 Yao Qi <yao.qi@linaro.org>
2953 * aarch64-linux-nat.c (aarch64_show_debug_reg_state): Use
2955 (aarch64_handle_unaligned_watchpoint): Likewise.
2957 2015-07-17 Yao Qi <yao.qi@linaro.org>
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.
2967 2015-07-17 Yao Qi <yao.qi@linaro.org>
2969 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Call
2970 ptid_get_pid instead of get_thread_id.
2972 2015-07-17 Yao Qi <yao.qi@linaro.org>
2974 * remote.c (get_current_thread): Initialise ptid to null_ptid.
2975 (add_current_inferior_and_thread): Don't initialise ptid.
2977 2015-07-16 Pierre Langlois <pierre.langlois@arm.com>
2979 * aarch64-tdep.c (aarch64_pseudo_read_value): Mark S register as
2980 unavailable if invalid.
2982 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
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
2992 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
2993 Jan Kratochvil <jan.kratochvil@redhat.com>
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'.
3020 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3021 Jan Kratochvil <jan.kratochvil@redhat.com>
3023 gdbserver build-id attribute generator.
3024 * features/library-list-svr4.dtd (library-list-svr4): New
3025 'build-id' attribute.
3027 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3028 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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
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.
3059 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3060 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
3081 2015-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3083 * Makefile.in (HFILES_NO_SRCDIR): Change gdb_regex.h to
3085 (COMMON_OBS): Add gdb_regex.o.
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.
3100 2015-07-15 Aleksandar Ristovski <aristovski@qnx.com
3101 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
3115 2015-07-15 Markus Metzger <markus.t.metzger@intel.com>
3116 Pedro Alves <palves@redhat.com>
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
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
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
3134 * btrace.c (parse_xml_raw): Change the type of SIZE. Change oddness
3137 2015-07-14 Simon Marchi <simon.marchi@ericsson.com>
3139 * gdbtypes.h (CHECK_TYPEDEF): Remove.
3140 * aarch64-tdep.c (aarch64_return_in_memory): Replace 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.
3190 2015-07-14 Iain Buclaw <ibuclaw@gdcproject.org>
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.
3202 2015-07-14 Peter Bergner <bergner@vnet.ibm.com>
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.
3208 2015-07-13 Yao Qi <yao.qi@linaro.org>
3210 * exec.c (exec_file_attach): Add period at the end of error
3213 2015-07-13 Andrew Burgess <andrew.burgess@embecosm.com>
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.
3222 2015-07-12 Sandra Loosemore <sandra@codesourcery.com>
3224 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Register
3225 all nios2 mach variants.
3227 2015-07-10 Kevin Buettner <kevinb@redhat.com>
3229 * rx-tdep.c (rx_get_opcode_byte): Use target_read_code instead
3230 of target_read_memory.
3232 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3234 * tui/tui-win.c (tui_set_win_height): Use a cleanup to free the
3236 (parse_scrolling_args): Likewise.
3238 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
3240 * tui/tui-win.c (focus_completer): Don't duplicate the tui window
3241 names in this function.
3243 2015-07-10 Andrew Burgess <andrew.burgess@embecosm.com>
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.
3253 2015-07-10 Markus Metzger <markus.t.metzger@intel.com>
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.
3261 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3263 * NEWS: Mention support for tracepoints on aarch64-linux.
3265 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3267 * linux-aarch64-low.c (aarch64_supports_tracepoints): New
3269 (the_low_target): Install it.
3271 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
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.
3282 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
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.
3288 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
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.
3297 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3299 * aarch64-tdep.c (aarch64_prologue_cache) <available_p>: New
3301 (aarch64_make_prologue_cache_1): New function, factored out from
3302 aarch64_make_prologue_cache. Do not allocate cache. Set
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.
3314 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
3316 * aarch64-tdep.c (aarch64_prologue_cache) <func, prev_pc>: New
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.
3325 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
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
3331 (aarch64_stub_this_id): Update call to aarch64_make_stub_cache.
3333 2015-07-09 Pierre Langlois <pierre.langlois@arm.com>
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.
3343 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
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.
3349 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3351 * c-valprint.c (c_val_print): Factor out int printing code to ...
3352 (c_val_print_int): ... this new function.
3354 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
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.
3361 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3363 * c-valprint.c (c_val_print): Factor out pointer printing code
3365 (c_val_print_ptr): ... this new function.
3367 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3369 * c-valprint.c (c_valprint): Factor our array printing code from
3371 (c_val_print_array): ... this new function.
3373 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3375 * c-valprint.c (c_val_print): Factor out pointer printing code
3377 (print_unpacked_pointer): ... this new function.
3379 2015-07-09 Simon Marchi <simon.marchi@ericsson.com>
3381 * c-valprint.c (c_val_print): Remove an assignment to i and move
3384 2015-07-09 Yao Qi <yao.qi@linaro.org>
3386 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity): Add
3387 argument ptid. Update comments. Caller update.
3389 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3391 * btrace.c (pt_print_packet): Print stop, vmcs, tma, mtc, cyc, and
3394 2015-07-09 Markus Metzger <markus.t.metzger@intel.com>
3396 * btrace.c (btrace_pt_readmem_callback): Change type of PC argument.
3398 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
3400 * progspace.c (delete_program_space): Add missing spaces.
3402 2015-07-08 Simon Marchi <simon.marchi@ericsson.com>
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'
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.
3431 2015-07-08 Patrick Palka <patrick@parcs.ath.cx>
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.
3449 2015-07-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3452 * compile/compile-c-types.c (insert_type): Change gdb_assert to error.
3454 2015-07-08 Robert O'Callahan <robert@ocallahan.org>
3457 * ax-gdb.c (gen_conversion): Extend to 'to' bits, not 'from'.
3459 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3461 * MAINTAINERS (Write After Approval): Add Markus T. Metzger.
3463 2015-07-08 Markus Metzger <markus.t.metzger@intel.com>
3465 * nat/linux-btrace.c (kernel_supports_bts, kernel_supports_pt):
3466 Use safe_strerror() instead of strerror().
3468 2015-07-07 Yao Qi <yao.qi@linaro.org>
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.
3483 2015-07-07 Yao Qi <yao.qi@linaro.org>
3485 * aarch32-linux-nat.h (VFP_REGS_SIZE): New macro, moved from
3487 * aarch64-linux-nat.c: Include aarch32-linux-nat.h and
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
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
3505 2015-07-07 Yao Qi <yao.qi@linaro.org>
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.
3520 2015-07-07 Yao Qi <yao.qi@linaro.org>
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
3531 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3533 * doc/gdb.texinfo (TUI): Restructure documentation on TUI layout
3536 2015-07-06 Joel Brobecker <brobecker@adacore.com>
3538 * NEWS: Create a new section for the next release branch.
3539 Rename the section of the current branch, now that it has
3542 2015-07-06 Joel Brobecker <brobecker@adacore.com>
3544 GDB 7.10 branch created (66c4b3e8a628a207bc6aafef6af0c4128195f56e):
3545 * version.in: Bump version to 7.10.50.DATE-cvs.
3547 2015-07-06 Luis Machado <lgustavo@codesourcery.com>
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.
3554 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3556 * doc/gdb.texinfo (TUI): Add comma after @xref.
3558 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
3560 * tui/tui-win.c (tui_set_focus): Use structure member 'generic'
3561 instead of casting the structure type.
3563 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
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.
3570 2015-07-06 Simon Marchi <simon.marchi@ericsson.com>
3572 * value.c (value_fetch_lazy): Update comment, change return
3574 * value.h (value_fetch_lazy): Change return value to void.
3576 2015-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
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.
3582 2015-07-06 Patrick Palka <patrick@parcs.ath.cx>
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
3588 (_initialize_i386_tdep): Give the "mpx" prefix command its
3591 2015-07-02 Kevin Buettner <kevinb@redhat.com>
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
3605 (rx_frame_prev_register): Rename parameter `this_prologue_cache' to
3606 `this_cache'. Add cases for RX_FRAME_TYPE_EXCEPTION and
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.
3615 2015-07-02 Kevin Buettner <kevinb@redhat.com>
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,
3621 (rx_gdbarch_init): Initialize PSW, BPSW, and FPSW flags types.
3623 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3625 Fix GCC false warning.
3626 * s390-linux-tdep.c (s390_handle_arg): Initialize VAL.
3628 2015-07-02 Yao Qi <yao.qi@linaro.org>
3630 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Fix
3631 typo in the debugging message.
3633 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
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.
3654 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
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.
3664 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
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.
3670 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
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.
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.
3732 2015-07-02 Markus Metzger <markus.t.metzger@intel.com>
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
3741 2015-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3743 * compile/compile-object-load.c (compile_object_load): Replace debug
3744 message "lookup undefined ELF symbol" by 3 more specific messages.
3746 2015-07-01 Kevin Buettner <kevinb@redhat.com>
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.
3752 2015-07-01 Patrick Palka <patrick@parcs.ath.cx>
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
3764 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
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
3771 * stack.c (deprecated_selected_frame_level_changed_hook):
3773 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook):
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.
3794 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3797 * tui/tui-stack.c (tui_set_locator_info): Change prototype to
3798 return an int instead of void. Return whether the locator
3800 (tui_show_frame_info): If the locator info has not changed, then
3801 bail out early to avoid refreshing the windows.
3803 2015-06-30 Patrick Palka <patrick@parcs.ath.cx>
3805 * tui/tui-stack.c (tui_set_locator_info): Explicitly pass
3806 LOCATOR_WIN to tui_alloc_content.
3808 2015-06-30 Yao Qi <yao.qi@linaro.org>
3811 * arm-tdep.c (arm_get_next_pc_raw): Break for media
3814 2015-06-29 Kevin Buettner <kevinb@redhat.com>
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
3821 2015-06-29 Pedro Alves <palves@redhat.com>
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
3828 (normal_stop): Only discard the finish_thread_state cleanup if the
3831 2015-06-29 Pierre Langlois <pierre.langlois@arm.com>
3833 * MAINTAINERS (Write After Approval): Update my email address.
3835 2015-06-26 Keith Seitz <keiths@redhat.com>
3836 Doug Evans <dje@google.com>
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.
3844 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
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
3851 (init_main): Add "history remove-duplicates" option.
3853 2015-06-26 Patrick Palka <patrick@parcs.ath.cx>
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.
3859 2015-06-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3861 * linespec.c (minsym_found): Reset sal.PC for COMPUNIT_LOCATIONS_VALID
3863 * symtab.c (find_function_start_sal): Likewise.
3865 2015-06-25 Gary Benson <gbenson@redhat.com>
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.
3870 2015-06-25 Gary Benson <gbenson@redhat.com>
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.
3877 2015-06-24 Keith Seitz <keiths@redhat.com>
3879 * build-id.c (build_id_to_debug_bfd): Add cleanup to free
3880 return value from lrealpath.
3882 2015-06-24 Mike Frysinger <vapier@gentoo.org>
3884 * remote-sim.c (gdbsim_open): Move sysroot update to the top.
3886 2015-06-24 Mike Frysinger <vapier@gentoo.org>
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.
3892 2015-06-24 Yao Qi <yao.qi@linaro.org>
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.
3907 2015-06-24 Gary Benson <gbenson@redhat.com>
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.
3927 2015-06-23 Patrick Palka <patrick@parcs.ath.cx>
3929 * top.c (init_history): Look at errno after calling strtol to
3930 properly map large GDBHISTSIZE values to infinity.
3932 2015-06-23 Doug Evans <dje@google.com>
3934 * inferior.h (struct inferior_suspend_state): Delete, unused.
3935 All references deleted.
3937 2015-06-23 Mike Frysinger <vapier@gentoo.org>
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.
3944 2015-06-23 Yao Qi <yao.qi@linaro.org>
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
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
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.
3967 2015-06-19 Doug Evans <dje@google.com>
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.
3975 * psymtab.c (start_psymtab_common): Delete arg section_offsets.
3976 All callers updated.
3978 2015-06-18 Simon Marchi <simon.marchi@ericsson.com>
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.
3999 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
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.
4011 2015-06-17 Luis Machado <lgustavo@codesourcery.com>
4013 * breakpoint.c (make_breakpoint_permanent): Remove unused
4015 * breakpoint.h (make_breakpoint_permanent): Remove declaration.
4017 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
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.
4024 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4026 * NEWS: Mention that GDBHISTSIZE is read instead of HISTSIZE.
4027 * top.c (init_history): Read from GDBHISTSIZE instead of
4029 (init_main): Refer to GDBHISTSIZE instead of HISTSIZE.
4031 2015-06-17 Patrick Palka <patrick@parcs.ath.cx>
4033 * top.c (gdb_safe_append_history): Do not call
4034 history_truncate_file if the history is not stifled.
4036 2015-06-17 Andreas Arnez <arnez@linux.vnet.ibm.com>
4038 * syscalls/s390-linux.xml: Add syscalls 344 through 354.
4039 * syscalls/s390x-linux.xml: Likewise.
4041 2015-06-16 Michael Eager <eager@eagercon.com>
4043 * nat/linux-namespaces.c (MSG_CMSG_CLOEXEC): Define if not defined.
4045 2015-06-16 Patrick Palka <patrick@parcs.ath.cx>
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.
4052 2015-06-16 Martin Simmons <martin@lispworks.com> (tiny patch)
4054 * arm-linux-nat.c: Include nat/linux-ptrace.h.
4056 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4058 * mi/mi-main.c (mi_cmd_data_read_memory_bytes): Consider addressable
4060 (mi_cmd_data_write_memory_bytes): Same.
4062 2015-06-15 Simon Marchi <simon.marchi@ericsson.com>
4064 * corefile.c (write_memory): Update doc.
4065 * gdbcore.h (write_memory): Same.
4067 2015-06-15 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
4073 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4074 Jan Kratochvil <jan.kratochvil@redhat.com>
4076 Merge multiple hex conversions.
4077 * monitor.c: Include rsp-low.h.
4078 (fromhex): Remove definition.
4080 2015-06-15 Aleksandar Ristovski <aristovski@qnx.com
4081 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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
4093 (skip_spaces, skip_spaces_const, skip_to_space_const): Move from
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.
4107 2015-06-15 Yao Qi <yao.qi@linaro.org>
4109 * data-directory/Makefile.in (SYSCALLS_FILES): Add aarch64-linux.xml.
4111 2015-06-10 Jon Turney <jon.turney@dronecode.org.uk>
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.
4124 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4126 * windows-nat.c (do_windows_fetch_inferior_registers)
4127 (handle_output_debug_string): Replace __COPY_CONTEXT_SIZE
4128 conditional with __CYGWIN__.
4130 2015-06-13 Andrew Burgess <andrew.burgess@embecosm.com>
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
4145 (tui_reg_prev_command): Renamed to...
4146 (tui_reg_prev): ...this. Adjust parameters and return rather than
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.
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.
4159 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
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.
4170 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
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.
4178 2015-06-12 Simon Marchi <simon.marchi@ericsson.com>
4180 * target.c (target_read): Rename variables and use
4182 (target_read_with_progress): Same.
4183 (read_memory_robust): Constify parameters and rename
4185 (read_whatever_is_readable): Constify parameters,
4186 rename variables, adjust formatting.
4187 * target.h (read_memory_robust): Constify parameters.
4189 2015-06-12 Ulrich Weigand <uweigand@de.ibm.com>
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.
4195 2015-06-12 Antoine Tremblay <antoine.tremblay@ericsson.com>
4197 PR breakpoints/16465
4198 * breakpoint.c (create_breakpoint): Save extra_string for
4199 pending breakpoints.
4201 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4203 * i386-tdep.c (i386_mpx_get_bt_entry): Add a cast for mpx_bd_mask
4204 and bt_mask to CORE_ADDR.
4206 2015-06-11 Gary Benson <gbenson@redhat.com>
4208 * nat/linux-namespaces.c (mnsh_send_message): Use pulongest.
4209 (mnsh_recv_message): Likewise.
4211 2015-06-11 Walfred Tedeschi <walfred.tedeschi@intel.com>
4213 * i386-tdep.c (i386_mpx_print_bounds): use of LONGEST instead of
4214 long long int and plongest instead of %ll.
4216 2015-06-11 Gary Benson <gbenson@redhat.com>
4218 * nat/linux-namespaces.c (gdb_wait.h): New include.
4219 (sys/wait.h): Do not include.
4221 2015-06-10 Simon Marchi <simon.marchi@ericsson.com>
4223 * dwarf2read.c (dwarf_record_line): Call dwarf_record_line if
4224 end_sequence is true.
4226 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4229 * solib-target.c (library_list_start_list): Use explicit NULL
4232 2015-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4234 * solib-target.c (library_list_start_list): Do not dereference
4235 variable version in its initialization. Make the VERSION check handle
4237 (library_list_attributes): Make "version" GDB_XML_AF_OPTIONAL.
4239 2015-06-10 Gary Benson <gbenson@redhat.com>
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.
4245 2015-06-10 Gary Benson <gbenson@redhat.com>
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.
4258 2015-06-10 Gary Benson <gbenson@redhat.com>
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"
4271 * NEWS: Mention new "set/show debug linux-namespaces" commands.
4273 2015-06-10 Gary Benson <gbenson@redhat.com>
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
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.
4313 2015-06-10 Gary Benson <gbenson@redhat.com>
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.
4340 2015-06-10 Gary Benson <gbenson@redhat.com>
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.
4348 2015-06-10 Gary Benson <gbenson@redhat.com>
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.
4376 2015-06-10 Gary Benson <gbenson@redhat.com>
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.
4385 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4387 * windows-nat.c (thread_rec): Also ignore ERROR_INVALID_HANDLE
4388 from SuspendThread().
4390 2015-06-03 Jon Turney <jon.turney@dronecode.org.uk>
4392 * windows-nat.c (handle_output_debug_string): Trim trailing '\n'
4393 from OutputDebugString.
4395 2015-06-10 Walfred Tedeschi <walfred.tedeschi@intel.com>
4396 Mircea Gherzan <mircea.gherzan@intel.com>
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
4405 (i386_mpx_get_bt_entry): Helper function to access a bound
4407 (i386_mpx_print_bounds): Effectively display bound information.
4408 (_initialize_i386_tdep): Add new commands to commands "set mpx" and
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.
4416 2015-06-09 Gary Benson <gbenson@redhat.com>
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.
4423 2015-06-09 Gary Benson <gbenson@redhat.com>
4425 * common/fileio.c (fileio_mode_pack): Fix preprocessor
4428 2015-06-05 Gary Benson <gbenson@redhat.com>
4430 * gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
4431 * remote.c (remote_filesystem_is_local): ...here.
4433 2015-06-04 Yao Qi <yao.qi@linaro.org>
4435 * gdbarch.c: Regenerate it.
4437 2015-06-03 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
4460 2015-06-02 Simon Marchi <simon.marchi@ericsson.com>
4463 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0.
4465 2015-06-02 Yao Qi <yao.qi@linaro.org>
4467 * i386-linux-nat.c: Include linux-nat.h.
4469 2015-06-01 Andreas Schwab <schwab@linux-m68k.org>
4470 Jan Kratochvil <jan.kratochvil@redhat.com>
4473 * dwarf2-frame-tailcall.c (pretended_chain_levels): Correct
4475 * dwarf2loc.c (chain_candidate): Likewise.
4477 2015-06-01 Yao Qi <yao.qi@linaro.org>
4479 * arm-linux-nat.c (fetch_vfp_regs): Use PTRACE_GETREGSET.
4480 (store_vfp_regs): Use PTRACE_SETREGSET.
4482 2015-06-01 Yao Qi <yao.qi@linaro.org>
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.
4489 2015-06-01 Yao Qi <yao.qi@linaro.org>
4491 * arm-linux-nat.c (fetch_register): Use PTRACE_GETREGSET.
4492 (fetch_regs): Likewise.
4493 (store_regs): Use PTRACE_SETREGSET.
4494 (store_register): Likewise.
4496 2015-06-01 Yao Qi <yao.qi@linaro.org>
4498 * arm-linux-nat.c (arm_linux_read_description): Check whether
4499 kernel supports PTRACE_GETREGSET.
4501 2015-06-01 Yao Qi <yao.qi@linaro.org>
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
4507 * linux-nat.h: ... here.
4509 2015-06-01 Yao Qi <yao.qi@linaro.org>
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.
4519 2015-05-30 Eli Zaretskii <eliz@gnu.org>
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.
4525 2015-05-29 Martin Galvan <martin.galvan@tallertechnologies.com>
4527 * MAINTAINERS (Write After Approval): Add Martin Galvan.
4529 2015-05-29 Roland McGrath <mcgrathr@google.com>
4532 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Use warning
4533 rather than internal_error for an unrecognized value.
4535 2015-05-29 Max Filippov <jcmvbkbc@gmail.com>
4537 * xtensa-tdep.c (xtensa_pseudo_register_read)
4538 (xtensa_pseudo_register_write): Don't alias last pseudo register
4541 2015-05-28 Don Breazeal <donb@codesourcery.com>
4543 * infrun.c (follow_fork_inferior): Ensure the use of
4544 process-style ptids (pid,0,0) in verbose/debug "Detaching"
4547 2015-05-28 Doug Evans <dje@google.com>
4549 * dwarf2read.c (record_line_ftype): Remove, duplicate.
4551 2015-05-28 Yao Qi <yao.qi@linaro.org>
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
4564 2015-05-28 Yao Qi <yao.qi@linaro.org>
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):
4576 * arm-tdep.c (arm_gdbarch_init): Add assert on
4578 * arm-tdep.h (struct gdbarch_tdep) <have_vfp_registers>: Rename
4579 field to vfp_register_count. All users updated.
4581 2015-05-28 Kyle Huey <me@kylehuey.com> (tiny patch)
4583 * gdb/arm-tdep.c (arm_gdbarch_init): Perform arm_abi detection on
4584 ELFOSABI_GNU binaries.
4586 2015-05-27 Doug Evans <dje@google.com>
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.
4599 2015-05-27 Doug Evans <dje@google.com>
4601 * dwarf2read.c (record_line_ftype): New typedef.
4602 (check_line_address): New function.
4603 (dwarf_decode_lines_1): Call it.
4605 2015-05-27 Doug Evans <dje@google.com>
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".
4613 2015-05-27 Doug Evans <dje@google.com>
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.
4620 2015-05-27 Doug Evans <dje@google.com>
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.
4635 2015-05-27 Yao Qi <yao.qi@linaro.org>
4637 * aarch64-tdep.c (aarch64_record_data_proc_simd_fp): Return
4638 AARCH64_RECORD_UNKNOWN for unknown instruction encoding.
4640 2015-05-27 Yao Qi <yao.qi@linaro.org>
4642 * aarch64-tdep.c (aarch64_record_branch_except_sys): Split lines
4644 (aarch64_record_load_store): Likewise.
4646 2015-05-26 Doug Evans <dje@google.com>
4648 PR c++/18141, c++/18417.
4649 * cp-support.c (cp_lookup_rtti_type): Handle the case of NAME being
4652 2015-05-26 Doug Evans <dje@google.com>
4654 * NEWS: Add entries for command renamings.
4655 * dwarf2read.c (dwarf_read_debug): Renamed from dwarf2_read_debug.
4657 (dwarf_die_debug): Renamed from dwarf2_die_debug. All uses updated.
4658 (dwarf_max_cache_age): Renamed from dwarf2_max_cache_age.
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.
4664 (show_dwarf_cmdlist): Renamed from show_dwarf2_cmdlist.
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.
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".
4680 2015-05-26 Doug Evans <dje@google.com>
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.
4687 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
4689 * tui/tui-regs.c (tui_reg_next_command): Compare against NULL.
4691 2015-05-26 Andrew Burgess <andrew.burgess@embecosm.com>
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.
4698 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
4699 Yao Qi <yao.qi@linaro.org>
4701 * aarch64-linux-tdep.c: Include linux-record.h and
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>:
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.
4731 2015-05-26 Omair Javaid <omair.javaid@linaro.org>
4733 * NEWS: Add a note on process record-replay support on aarch64*-linux*
4736 2015-05-26 Martin Galvan <martin.galvan@tallertechnologies.com>
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.
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.
4762 2015-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
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.
4769 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4771 * tui/tui-regs.c (tui_reg_next_command): Use NULL not 0.
4773 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4775 * tui/tui-layout.c (tui_set_layout_for_display_command): Ensure
4778 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4780 * tui/tui-layout.c (tui_layout_command): Move call to tui_enable
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.
4786 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
4788 * tui/tui-layout.c (layout_completer): New function.
4789 (_initialize_tui_layout): Set completer on layout command.
4791 2015-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
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
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
4828 (tui_set_layout_by_name): ...this.
4829 * printcmd.c (display_command): Remove tui related layout call,
4832 2015-05-20 Joel Brobecker <brobecker@adacore.com>
4834 * infrun.c (handle_inferior_event_1): Renames handle_inferior_event.
4835 (handle_inferior_event): New function.
4837 2015-05-20 Joel Brobecker <brobecker@adacore.com>
4839 * ada-lang.c (to_fixed_array_type): Rename local variable
4840 typename into type_name.
4842 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4844 Fix ASAN crash for gdb.compile/compile.exp.
4845 * infcall.c (call_function_by_hand_dummy): Use xstrdup for NAME.
4847 2015-05-19 Jan Kratochvil <jan.kratochvil@redhat.com>
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):
4853 * compile/compile.c (compile_to_object): Likewise.
4855 2015-05-16 Doug Evans <xdje42@gmail.com>
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.
4871 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4873 * compile/compile-object-load.c (get_out_value_type): Fix uninitialized
4874 variable compiler warnings.
4876 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4878 * compile/compile-object-load.c (get_out_value_type): Fix returned type.
4880 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4881 Phil Muldoon <pmuldoon@redhat.com>
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):
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
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
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.
4913 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
4926 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
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
4939 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
4957 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
4965 2015-05-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4967 * compile/compile-object-load.c (compile_object_load): Add
4968 COMPILE_DEBUG message.
4970 2015-05-15 Jerome Guitton <guitton@adacore.com>
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.
4984 2015-05-15 Jerome Guitton <guitton@adacore.com>
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.
4991 2015-05-15 Pedro Alves <palves@redhat.com>
4992 Simon Marchi <simon.marchi@ericsson.com>
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.
5002 2015-05-15 Pedro Alves <palves@redhat.com>
5004 * linux-tdep.c (linux_find_memory_regions_full): Rename local
5005 'private' to 'priv'.
5007 2015-05-15 Pedro Alves <palves@redhat.com>
5009 * nat/linux-nat.h: Include "target/waitstatus.h".
5011 2015-05-15 Yuanhui Zhang <asmwarrior@gmail.com>
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.
5017 2015-05-15 Joel Brobecker <brobecker@adacore.com>
5019 * ada-lang.c (ada_value_primitive_packed_val): Make sure
5020 accumSize is never negative.
5022 2015-05-14 Patrick Palka <patrick@parcs.ath.cx>
5024 * tui/tui-command.c: Remove include of <ctype.h>.
5025 (tui_dispatch_ctrl_char): Remove workaround for xterm terminals.
5027 2015-05-13 Martin Galvan <martin.galvan@tallertechnologies.com>
5029 * dwarf2read.c (die_needs_namespace): Return 1 for
5030 DW_TAG_inlined_subroutine.
5032 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
5039 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5041 * gdbthread.h (struct thread_control_state): Update comment for
5043 * infcall.c (run_inferior_call): Update comment about
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.
5051 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
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):
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):
5066 * infcmd.c: Include infcall.h.
5067 (get_return_value): Add parameter ctx_saver, use it instead of
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.
5079 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
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):
5090 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5092 * compile/compile-object-run.c (do_module_cleanup): Add parameter
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
5102 2015-05-13 Joel Brobecker <brobecker@adacore.com>
5106 2015-05-13 Joel Brobecker <brobecker@adacore.com>
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
5112 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
5114 * tui/tui-win.c (tui_async_resize_screen): Clear win_resized
5115 first before resizing the window.
5116 * tui/tui.c (tui_enable): Likewise.
5118 2015-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
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
5129 2015-05-13 Patrick Palka <patrick@parcs.ath.cx>
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
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.
5143 2015-05-12 Doug Evans <dje@google.com>
5145 * dwarf2read.c (struct file_entry): Tweak comments.
5146 (get_debug_line_section): Tweak comments.
5148 2015-05-12 Don Breazeal <donb@codesourcery.com>
5150 * NEWS: Announce fork support in the RSP and support
5151 for fork debugging in extended mode.
5153 2015-05-12 Don Breazeal <donb@codesourcery.com>
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.
5168 2015-05-12 Don Breazeal <donb@codesourcery.com>
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.
5175 2015-05-12 Don Breazeal <donb@codesourcery.com>
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.
5183 * nat/linux-ptrace.c (current_ptrace_options): Rename to
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.
5191 (ptrace_supports_feature): Change comment. Use
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.
5205 2015-05-12 Don Breazeal <donb@codesourcery.com>
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
5216 2015-05-12 Gary Benson <gbenson@redhat.com>
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.
5222 2015-05-09 Siva Chandra Reddy <sivachandra@google.com>
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.
5231 2015-05-08 Yao Qi <yao@codesourcery.com>
5232 Sandra Loosemore <sandra@codesourcery.com>
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.
5241 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
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
5248 2015-05-08 Sandra Loosemore <sandra@codesourcery.com>
5250 * nios2-tdep.c (nios2_breakpoint_from_pc): Revert to using
5251 "trap 31" as the breakpoint instruction on all targets.
5253 2015-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5255 * infcmd.c (print_return_value): Remove unused declaration.
5257 2015-05-08 Joel Brobecker <brobecker@adacore.com>
5259 * dwarf2read.c (attr_to_dynamic_prop)
5260 <DW_AT_data_member_location>: Use read_type_die isntead of
5263 2015-05-08 Joel Brobecker <brobecker@adacore.com>
5265 * ada-lang.c (ada_convert_actual): Add handling of formals
5266 passed inside an aligner type.
5268 2015-05-08 Joel Brobecker <brobecker@adacore.com>
5270 * copyright.py (NOT_FSF_LIST): Remove sim/erc32 entries.
5272 2015-05-08 Siva Chandra Reddy <sivachandra@google.com>
5275 * python/lib/gdb/command/xmethods.py (print_xm_info): Fix typo.
5276 Print xmethod matcher status.
5278 2015-05-08 Andreas Arnez <arnez@linux.vnet.ibm.com>
5280 * s390-linux-nat.c (fill_gregset): Avoid relying on the PSWA
5281 register in the regcache when treating the PSWM register, and vice
5284 2015-05-07 Gary Benson <gbenson@redhat.com>
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.
5290 2015-05-07 Gary Benson <gbenson@redhat.com>
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.
5296 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5298 * compile/compile-object-load.c (compile_object_load): Support
5301 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
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
5309 2015-05-06 Joel Brobecker <brobecker@adacore.com>
5311 * defs.h (deprecated_init_ui_hook): Delete. Remove associated
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.
5319 2015-05-06 Joel Brobecker <brobecker@adacore.com>
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
5325 * NEWS: Add news entry about "info dll" now being available
5328 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5330 * ada-lang.c (value_assign_to_component): Reformat and improve
5331 documentation. Remove all trailing spaces.
5333 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5335 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
5336 Stop counting inlined frames as soon as an out-of-line function
5339 2014-05-05 Pierre-Marie de Rodat <derodat@adacore.com>
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
5347 2015-05-05 Joel Brobecker <brobecker@adacore.com>
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.
5356 2015-05-05 Joel Brobecker <brobecker@adacore.com>
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.
5362 2015-05-05 Joel Brobecker <brobecker@adacore.com>
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.
5368 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5370 * ada-valprint.c (ada_val_print_1): Resolve TYPE before trying
5373 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5375 * dwarf2loc.h (struct property_addr_info): Add "valaddr" field.
5376 * dwarf2loc.c (dwarf2_evaluate_property): Add handling of
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.
5390 2015-05-05 Joel Brobecker <brobecker@adacore.com>
5392 * gdbtypes.c (resolve_dynamic_array): Use
5393 create_array_type_with_stride instead of create_array_type.
5395 2015-04-30 DJ Delorie <dj@redhat.com>
5397 * rl78-tdep.c (rl78_analyze_prologue): Pass RL78_ISA_DEFAULT to
5400 2015-04-29 Doug Evans <dje@google.com>
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
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
5421 (value_x_unop): Ditto.
5422 * value.c (result_type_of_xmethod): New function.
5423 * value.h (result_type_of_xmethod): Declare.
5425 2015-04-29 Gary Benson <gbenson@redhat.com>
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
5433 * infrun.c (follow_exec): Likewise.
5435 2015-04-28 Doug Evans <dje@google.com>
5438 * python/lib/gdb/printing.py (register_pretty_printer): Handle
5439 name or __name__ attributes. Handle gdb module as first argument.
5441 2015-04-28 Doug Evans <dje@google.com>
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.
5449 2015-04-28 Doug Evans <dje@google.com>
5451 * gdbtypes.h (struct cplus_struct_type) <n_baseclasses>: Fix comment.
5453 2015-04-28 Sasha Smundak <asmundak@google.com>
5455 * NEWS: Mention gdb.Type.optimized_out method.
5456 * python/py-type.c (typy_optimized_out): New function.
5458 2015-04-28 John Baldwin <jhb@FreeBSD.org>
5460 * fbsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5462 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
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.
5468 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
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.
5474 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
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.
5480 2015-04-28 Gary Benson <gbenson@redhat.com>
5482 * infrun.c (solist.h): New include.
5483 (follow_exec): Use exec_file_find to prefix execd_pathname
5486 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5488 * tui/tui-source.c (tui_set_source_content): Avoid calling
5489 strcpy() when offset is 0.
5491 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
5494 * tui/tui-data.c (tui_free_window): Don't free the locator
5495 window when passed an SRC_WIN or a DISASSEM_WIN.
5497 2015-04-28 Patrick Palka <patrick@parcs.ath.cx>
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
5505 (tui_add_content_elements): Remove erroneous cast.
5506 * tui/tui-disasm.c (tui_set_disassem_content): Remove redundant
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.
5530 2015-04-27 John Baldwin <jhb@FreeBSD.org>
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".
5540 2015-04-27 John Baldwin <jhb@FreeBSD.org>
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
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".
5566 2015-04-27 John Baldwin <jhb@FreeBSD.org>
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.
5578 2015-04-27 Gary Benson <gbenson@redhat.com>
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.
5585 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
5607 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
5615 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5618 (is_float_singleton): Remove function. Move the "singleton" part
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.
5635 2015-04-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
5637 * s390-linux-tdep.c (is_power_of_two): Add comment. Return
5638 false if the argument is zero.
5640 2015-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
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.
5649 2015-04-27 Joel Brobecker <brobecker@adacore.com>
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
5656 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
5658 * cli/cli-dump.c (srec_dump_command): Add internationalization
5660 (ihex_dump_command): Likewise.
5661 (tekhex_dump_command): Likewise.
5662 (binary_dump_command): Likewise.
5663 (binary_append_command): Likewise.
5665 2015-04-24 Andrew Burgess <andrew.burgess@embecosm.com>
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
5673 * NEWS: Add entry for "dump verilog".
5675 2015-04-24 Pierre-Marie de Rodat <derodat@adacore.com>
5677 * gdbtypes.c (print_gnat_stuff): Do not recurse on the
5678 descriptive type when there is none.
5680 2015-04-23 Patrick Palka <patrick@parcs.ath.cx>
5682 * tui/tui-win.c (tui_async_resize_screen): Call
5683 rl_resize_terminal().
5685 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
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.
5692 2015-04-22 Jon Turney <jon.turney@dronecode.org.uk>
5694 * windows-nat.c (windows_continue): Report an error if
5695 ContinueDebugEvent() fails.
5697 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5699 * windows-nat.c (windows_resume): Fix misspelling in debug output.
5701 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5703 * windows-nat.c (get_windows_debug_event): Replace retval with
5704 thread_id throughout. Update stale comment.
5706 2015-04-16 Jon Turney <jon.turney@dronecode.org.uk>
5708 * windows-nat.c (get_windows_debug_event): Don't use ternary
5709 conditional operator.
5711 2015-04-21 Pierre Muller <muller@sourceware.org>
5714 p-exp.y (yylex): Reorganize code to return the matched pattern
5715 for a field of this.
5717 2015-04-21 Gary Benson <gbenson@redhat.com>
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.
5725 2015-04-21 Kevin Buettner <kevinb@redhat.com>
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.
5732 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
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.
5741 2015-04-20 Pierre-Marie de Rodat <derodat@adacore.com>
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.
5756 2015-04-19 Gabriel Krisman Bertazi <gabriel@krisman.be>
5758 * breakpoint.c (update_dprintf_command_list): Remove duplicated
5761 2015-04-20 Thomas Schwinge <thomas@codesourcery.com>
5763 * reply_mig_hack.awk: Robustify parsing.
5765 * reply_mig_hack.awk: Don't bother to declare an intermediate
5766 function pointer variable.
5768 2015-04-17 Doug Evans <dje@google.com>
5770 * solib-svr4.c (svr4_exec_displacement): Rename outer "displacement"
5771 to "exec_displacement" to avoid confusion with inner use of the name.
5773 2015-04-17 Pedro Alves <palves@redhat.com>
5775 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Return zero
5776 if HW point of TYPE isn't supported.
5778 2015-04-17 Yao Qi <yao.qi@linaro.org>
5779 Pedro Alves <palves@redhat.com>
5781 * target.h (target_can_use_hardware_watchpoint): Update comments.
5782 Remove trailing ";".
5784 2015-04-17 Gary Benson <gbenson@redhat.com>
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.
5793 2015-04-17 Gary Benson <gbenson@redhat.com>
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.
5806 2015-04-17 Gary Benson <gbenson@redhat.com>
5808 * nat/linux-procfs.h (linux_proc_pid_to_exec_file):
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.
5814 2015-04-17 Gary Benson <gbenson@redhat.com>
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
5822 2015-04-17 Gary Benson <gbenson@redhat.com>
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.
5829 2015-04-17 Gary Benson <gbenson@redhat.com>
5831 * gdbcore.h (exec_file_locate_attach): New declaration.
5832 * exec.c (exec_file_locate_attach): New function, factored
5834 * infcmd.c (attach_command_post_wait): ...here.
5836 2015-04-17 Mike Frysinger <vapier@gentoo.org>
5838 * MAINTAINERS: Add myself for Blackfin/write-after-approval.
5840 2015-04-16 Yao Qi <yao.qi@linaro.org>
5842 * infrun.c (maybe_software_singlestep): Declare.
5843 (displaced_step_fixup): Call maybe_software_singlestep.
5845 2015-04-15 Doug Evans <dje@google.com>
5847 * psymtab.c (psym_expand_symtabs_matching): Add QUIT call.
5849 2015-04-15 Doug Evans <dje@google.com>
5851 * dwarf2read.c (dw2_expand_symtabs_matching): Add some QUIT calls.
5853 2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
5855 * python/lib/gdb/command/unwinders.py: Add parentheses.
5857 2015-04-15 Yao Qi <yao.qi@linaro.org>
5859 * arm-linux-tdep.c (arm_linux_copy_svc): Update debug message.
5861 2015-04-15 Yao Qi <yao.qi@linaro.org>
5863 * arm-linux-tdep.c (arm_linux_copy_svc): Fix indentation.
5865 2015-04-15 Yao Qi <yao.qi@linaro.org>
5867 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5868 dsc->insn_size instead of 4.
5870 2015-04-14 Gary Benson <gbenson@redhat.com>
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.
5877 2015-04-13 Stan Shebs <stanshebs@google.com>
5879 * MAINTAINERS: Update my email address.
5881 2015-04-13 John Baldwin <jhb@FreeBSD.org>
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.
5924 2015-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5926 * NEWS (Changes since GDB 7.9): Add removed -xdb.
5927 * breakpoint.c (command_line_is_silent): Remove xdb_commands
5929 (_initialize_breakpoint): Remove xdb_commands for bc, ab, sb, db, ba
5931 * cli/cli-cmds.c (_initialize_cli_cmds): Remove xdb_commands for v and
5933 * cli/cli-decode.c (find_command_name_length): Remove xdb_commands
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.
5963 2015-04-10 Pedro Alves <palves@redhat.com>
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
5969 (resume): Don't start a displaced step if in-line step-over info
5972 2015-04-10 Pedro Alves <palves@redhat.com>
5974 * infrun.c (displaced_step_in_progress): New function.
5975 (do_target_resume): Advise target to report all signals if
5978 2015-04-10 Pedro Alves <palves@redhat.com>
5981 * infrun.c (process_event_stop_test): Don't assume a step-resume
5982 is set if tp->stepped_breakpoint is true.
5984 2015-04-10 Yao Qi <yao.qi@linaro.org>
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
5991 2015-04-10 Pedro Alves <palves@redhat.com>
5994 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Install
5995 linux_displaced_step_location as gdbarch_displaced_step_location
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):
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
6013 2015-04-09 Gary Benson <gbenson@redhat.com>
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.
6041 2015-04-09 Andy Wingo <wingo@igalia.com>
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.
6048 2015-04-09 Gary Benson <gbenson@redhat.com>
6050 * common/common-remote-fileio.h (remote_fileio_to_fio_error):
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.
6060 2015-04-09 Andy Wingo <wingo@igalia.com>
6062 * MAINTAINERS (Write After Approval): Add Andy Wingo.
6064 2015-04-09 H.J. Lu <hongjiu.lu@intel.com>
6066 * acinclude.m4: (GDB_AC_CHECK_BFD): Set ZLIBDIR with $zlibdir.
6067 Replace $zlibdir with $ZLIBDIR in LDFLAGS.
6068 * configure: Regenerated.
6070 2015-04-09 Pedro Alves <palves@redhat.com>
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.
6082 2015-04-09 Pedro Alves <palves@redhat.com>
6084 * gnulib/update-gnulib.sh (aclocal version check): Filter out
6085 "called too early to check prototype".
6087 2015-04-08 Sergio Durigan Junior <sergiodj@redhat.com>
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.
6097 2015-04-08 Yao Qi <yao.qi@linaro.org>
6099 * spu-tdep.c (spu_gdbarch_init): Don't call
6100 set_gdbarch_cannot_step_breakpoint.
6102 2015-04-07 Sergio Durigan Junior <sergiodj@redhat.com>
6104 * linux-tdep.c (decode_vmflags): Initialize 'saveptr'.
6106 2015-04-07 Pedro Alves <palves@redhat.com>
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.
6118 2015-04-07 Pedro Alves <pedro@codesourcery.com>
6120 * infrun.c (resume) <displaced stepping debug output>: Get the
6121 leader thread's regcache, not resume_ptid's.
6123 2015-04-06 Doug Evans <xdje42@gmail.com>
6125 * symtab.c (hash_symbol_entry): Hash STRUCT_DOMAIN symbols as
6127 (symbol_cache_lookup): Clarify use of bsc_ptr, slot_ptr parameters.
6128 Include symbol domain in debugging output.
6130 2015-04-06 Pedro Alves <palves@redhat.com>
6131 Bernd Edlinger <bernd.edlinger@hotmail.de>
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
6139 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
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.
6152 2015-04-03 Pierre-Marie de Rodat <derodat@adacore.com>
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.
6159 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
6161 * Makefile.in (top_srcdir): New.
6162 * configure: Regenerated.
6164 2015-04-02 Gary Benson <gbenson@redhat.com>
6166 * NEWS: Announce the new default sysroot of "target:".
6168 2015-04-02 Gary Benson <gbenson@redhat.com>
6170 * main.c (captured_main): Set gdb_sysroot to "target:"
6171 if not otherwise set.
6173 2015-04-02 Gary Benson <gbenson@redhat.com>
6175 * exec.c (exec_file_attach): Support "target:" filenames.
6177 2015-04-02 Gary Benson <gbenson@redhat.com>
6179 * solib.c (solib_find): Strip "target:" prefix from sysroot
6180 if accessing local files.
6182 2015-04-02 Gary Benson <gbenson@redhat.com>
6184 * symfile.c (symfile_bfd_open): Reorder to remove duplicated
6185 checks and error messages.
6187 2015-04-02 Gary Benson <gbenson@redhat.com>
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
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.
6217 2015-04-02 Gary Benson <gbenson@redhat.com>
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.
6235 2015-04-02 Gary Benson <gbenson@redhat.com>
6237 * target.h (struct target_ops) <to_filesystem_is_local>:
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.
6244 2015-04-02 Gary Benson <gbenson@redhat.com>
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.
6253 2015-04-01 Sasha Smundak <asmundak@google.com>
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
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.
6285 2015-04-01 Pedro Alves <palves@redhat.com>
6287 * infrun.c (resume): Check currently_stepping after clearing
6288 stepped_breakpoint, not before.
6290 2015-04-01 Pedro Alves <palves@redhat.com>
6292 * infrun.c (print_target_wait_results): Print all the ptid
6295 2015-04-01 Pedro Alves <palves@redhat.com>
6297 * infrun.c (keep_going): Also discard cleanups if inserting
6300 2015-04-01 Pedro Alves <palves@redhat.com>
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.
6306 2015-04-01 Pedro Alves <palves@redhat.com>
6308 * infrun.c (resume) <step past permanent breakpoint>: Use
6311 2015-04-01 Pedro Alves <palves@redhat.com>
6313 * linux-nat.c (linux_handle_extended_wait): Always call set_running.
6315 2015-04-01 Pierre-Marie de Rodat <derodat@adacore.com>
6317 * MAINTAINERS (Write After Approval): Add "Pierre-Marie de Rodat".
6319 2015-04-01 Pedro Alves <palves@redhat.com>
6321 * linux-thread-db.c (record_thread): Readd the thread to gdb's
6322 list if it was marked exited.
6324 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
6326 * configure: Regenerated.
6328 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6329 Jan Kratochvil <jan.kratochvil@redhat.com>
6330 Oleg Nesterov <oleg@redhat.com>
6333 * linux-tdep.c: Include 'gdbcmd.h' and 'gdb_regex.h'.
6334 New enum identifying the various options of the coredump_filter
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'.
6352 2015-03-31 Sergio Durigan Junior <sergiodj@redhat.com>
6354 * solib-svr4.c (solib_svr4_r_ldsomap): Catch possible exception by
6355 read_memory_unsigned_integer.
6357 2015-03-31 H.J. Lu <hongjiu.lu@intel.com>
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.
6365 * gdb_bfd.c: Don't check HAVE_ZLIB_H to include <zlib.h>.
6366 * top.c (print_gdb_configuration): Remove --with-zlib and
6368 * config.in: Regenerated.
6369 * configure: Likewise.
6371 2015-03-31 Antoine Tremblay <antoine.tremblay@ericsson.com>
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
6378 2015-03-31 Matthias Klose <doko@ubuntu.com>
6380 * compile/compile.c (compile_to_object): Allow triplets with or
6383 2015-03-30 Doug Evans <dje@google.com>
6386 * cp-namespace.c (cp_search_static_and_baseclasses): Always look for
6387 klass in VAR_DOMAIN.
6389 2015-03-30 Gary Benson <gbenson@redhat.com>
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.
6398 2015-03-28 James Bowman <james.bowman@ftdichip.com>
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.
6407 2015-03-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6410 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6412 * printcmd.c (print_command_1): Move expr variable scope.
6414 2015-03-27 Joel Brobecker <brobecker@adacore.com>
6416 * dtrace-probe.c (dtrace_process_dof_probe): Initialize expr to NULL.
6418 2015-03-27 Andrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
6420 * gdb_bfd.c (gdb_bfd_section_index): Fix off-by-one for special
6423 2015-03-26 Joel Brobecker <brobecker@adacore.com>
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.
6431 2015-03-26 Jon Turney <jon.turney@dronecode.org.uk>
6433 * MAINTAINERS (Write After Approval): Add "Jon Turney".
6435 2015-03-26 Andy Wingo <wingo@igalia.com>
6438 * dwarf2read.c (struct partial_die_info): Add has_const_value
6440 (add_partial_symbol): Don't punt on symbols that have const_value
6442 (read_partial_die): Detect DW_AT_const_value.
6444 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6447 * printcmd.c (print_command_1): Move expr variable scope.
6449 2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6452 * printcmd.c (validate_format): Make the parameter cmdname const.
6454 2015-03-26 Don Breazeal <donb@codesourcery.com>
6456 * remote.c (_initialize_remote): Update comment.
6458 2015-03-26 Pedro Alves <palves@redhat.com>
6459 Jon TURNEY <jon.turney@dronecode.org.uk>
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.
6466 2015-03-25 Pedro Alves <palves@redhat.com>
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
6493 (remote_async): Replace 'callback' and 'context' parameters with
6494 boolean 'enable' parameter. Adjust.
6495 * top.c (gdb_readline_wrapper_cleanup, gdb_readline_wrapper):
6497 * target-delegates.c: Regenerate.
6499 2015-03-25 Gary Benson <gbenson@redhat.com>
6500 Pedro Alves <palves@redhat.com>
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.
6514 2015-03-24 Pedro Alves <palves@redhat.com>
6516 * thread.c (thread_apply_all_command): Take exited threads into
6519 2015-03-24 Pedro Alves <palves@redhat.com>
6521 * infrun.c (resume, proceed): Mention
6522 switch_back_to_stepped_thread, not switch_back_to_stepping.
6524 2015-03-24 Pedro Alves <palves@redhat.com>
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.
6530 2015-03-24 Pedro Alves <palves@redhat.com>
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
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.
6542 2015-03-24 Joel Brobecker <brobecker@adacore.com>
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.
6549 2015-03-24 Joel Brobecker <brobecker@adacore.com>
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.
6558 2015-03-24 Pedro Alves <palves@redhat.com>
6560 * breakpoint.c (until_break_command): Adjust call to proceed.
6561 * gdbthread.h (struct thread_control_state) <stepping_command>:
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
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
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
6582 (keep_going): Adjust calls to 'resume'.
6583 * infrun.h (proceed): Remove 'step' parameter.
6585 * windows-nat.c (do_initial_windows_stuff): Adjust call to
6587 * mi/mi-main.c (proceed_thread): Adjust call to 'proceed'.
6589 2015-03-24 Pedro Alves <palves@redhat.com>
6591 * gdbthread.h (struct thread_control_state) <stepping_command>:
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'
6598 (clear_proceed_status_thread): Clear 'stepping_command'.
6599 (schedlock_applies): Change parameter type to struct thread_info
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.
6606 2015-03-24 Pedro Alves <palves@redhat.com>
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.
6615 2015-03-24 Pedro Alves <palves@redhat.com>
6617 * infrun.c (proceed): No longer handle negative step.
6619 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
6629 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
6649 2015-03-24 Gary Benson <gbenson@redhat.com>
6651 * x86-linux-nat.c (x86_linux_update_debug_registers):
6652 New function, factored out from...
6653 (x86_linux_prepare_to_resume): ...this.
6655 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
6668 2015-03-24 Gary Benson <gbenson@redhat.com>
6670 * x86-linux-nat.c (x86_linux_dr_set_addr): Update assertion.
6671 (x86_linux_new_thread): Rename argument.
6673 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
6694 2015-03-24 Gary Benson <gbenson@redhat.com>
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):
6704 (x86_linux_prepare_to_resume): Use ptid_of_lwp and
6707 2015-03-24 Gary Benson <gbenson@redhat.com>
6709 * linux-nat.h (linux_stop_lwp): Move declaration to...
6710 * nat/linux-nat.h (linux_stop_lwp): New declaration.
6712 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
6722 2015-03-24 Gary Benson <gbenson@redhat.com>
6724 * x86-nat.h (x86_debug_reg_state): Move declaration to...
6725 * nat/x86-dregs.h (x86_debug_reg_state): New declaration.
6727 2015-03-24 Gary Benson <gbenson@redhat.com>
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.
6738 2015-03-24 Antoine Tremblay <antoine.tremblay@ericsson.com>
6740 PR breakpoints/16466
6741 * breakpoint.c (create_breakpoint): Set thread on breakpoint struct.
6743 2015-03-23 Joel Brobecker <brobecker@adacore.com>
6745 * ser-mingw.c (ser_windows_setparity): Fix indentation.
6746 * ser-unix.c (hardwire_setparity): Likewise.
6748 2015-03-23 Yurij Grechishhev <yurij.grechishhev@gmail.com>
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
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):
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.
6782 2015-03-23 Keith Seitz <keiths@redhat.com>
6784 * linespec.c (linespec_lexer_lex_keyword): Update comment.
6786 2015-03-23 Keith Seitz <keiths@redhat.com>
6788 * breakpoint.c (parse_breakpoint_sals): Use
6789 linespec_lexer_lex_keyword to ascertain if the user specified
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.
6801 2015-03-23 Keith Seitz <keiths@redhat.com>
6804 * dwarf2read.c (dwarf2_add_member_fn): Issue a complaint
6805 if we find a static method with DW_AT_vtable_elem_location.
6807 2015-03-21 Eli Zaretskii <eliz@gnu.org>
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>.
6813 2015-03-20 Keven Boell <keven.boell@intel.com>
6815 * gdbtypes.c (resolve_dynamic_type_internal): Adapt
6816 data_location usage to linked list.
6817 (resolve_dynamic_type_internal): Adapt data_location to
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.
6825 2015-03-20 Pedro Alves <palves@redhat.com>
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.
6831 2015-03-20 Pedro Alves <palves@redhat.com>
6833 * breakpoint.c (set_breakpoint_condition): Make argument "exp" const.
6834 * breakpoint.h (set_breakpoint_condition): Update declaration.
6836 2015-03-20 Pedro Alves <palves@redhat.com>
6838 * tui/tui-io.c (tui_expand_tabs): Make "s1" const.
6840 2015-03-20 Pedro Alves <palves@redhat.com>
6842 * xcoffread.c (scan_xcoff_symtab): Make "p" and "q" const.
6844 2015-03-20 Pedro Alves <palves@redhat.com>
6846 * remote-m32r-sdi.c (m32r_open): Make "port_str" const.
6848 2015-03-20 Pedro Alves <palves@redhat.com>
6850 * nto-tdep.c (nto_find_and_open_solib): Make "endian" const.
6851 (nto_init_solib_absolute_prefix): Likewise.
6853 2015-03-20 Pedro Alves <palves@redhat.com>
6855 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Make "p" const.
6856 * spu-tdep.c (spu_gdbarch_init): Make "name" const.
6858 2015-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6860 * config/djgpp/README: Remove gdb.hp.
6862 2015-03-20 Yao Qi <yao.qi@linaro.org>
6864 * aarch64-tdep.c (aarch64_gdbarch_init): Don't call
6865 set_gdbarch_cannot_step_breakpoint.
6867 2015-03-19 Pedro Alves <palves@redhat.com>
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
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.
6880 2015-03-19 Pedro Alves <palves@redhat.com>
6882 * linux-nat.c (status_callback): Return early if the LWP has no
6885 2015-03-19 Pedro Alves <palves@redhat.com>
6887 * linux-nat.c (select_event_lwp_callback): Update comment to no
6888 longer mention SIGTRAP.
6890 2015-03-18 Tristan Gingold <gingold@adacore.com>
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.
6897 2015-03-18 Gary Benson <gbenson@redhat.com>
6899 (remote_protocol_features): Remove the "vFile:fstat" feature.
6900 (remote_hostio_fstat): Probe for "vFile:fstat" support.
6902 2015-03-11 Yao Qi <yao.qi@linaro.org>
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.
6911 2015-03-17 Yurij Grechishhev <yurij.grechishhev@gmail.com>
6913 * ser-base.h (ser_base_setstopbits): Change second argument name
6914 from "rate" to "num".
6916 2015-03-17 Gary Benson <gbenson@redhat.com>
6917 Luke Allardyce <lukeallardyce@gmail.com>
6920 * common/common-remote-fileio.h (sys/stat.h): New include.
6921 (stuct stat): Remove forward declaration.
6923 2015-03-16 John Baldwin <jhb@FreeBSD.org>
6925 * fbsd-tdep.c (fbsd_make_corefile_notes): Fetch all target registers
6926 before writing core register notes.
6928 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
6929 Pedro Alves <palves@redhat.com>
6931 * gdb_curses.h (tgetnum): Mark with EXTERN_C.
6932 * stub-termcap.c (tgetent, tgetnum, tgetflag, tgetstr, tputs)
6933 (tgoto): Wrap with extern "C".
6935 2015-03-16 Pedro Alves <palves@redhat.com>
6936 Yuanhui Zhang <asmwarrior@gmail.com>
6938 * stub-termcap.c (tputs): Change prototype.
6940 2015-03-16 Yuanhui Zhang <asmwarrior@gmail.com>
6941 Pedro Alves <palves@redhat.com>
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.
6949 2015-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6950 Pedro Alves <palves@redhat.com>
6952 * NEWS: New Removed targets and native configurations.
6954 2015-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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
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.
6995 2015-03-13 John Baldwin <jhb@FreeBSD.org>
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
7002 (fbsd_find_memory_regions): Use kinfo_getvmmap to
7003 enumerate memory regions if present.
7005 2015-03-13 John Baldwin <jhb@FreeBSD.org>
7007 * amd64fbsd-tdep.c (amd64fbsd_sigtramp_p): Style fixes.
7008 * i386fbsd-tdep.c: Fix style in various gdb_static_assert
7010 (i386fbsd_sigtramp_p): Likewise.
7012 2015-03-12 John Baldwin <jhb@FreeBSD.org>
7014 * MAINTAINERS (Write After Approval): Add John Baldwin.
7016 2015-03-12 Gary Benson <gbenson@redhat.com>
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.
7022 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
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.
7057 2015-03-11 Sergio Durigan Junior <sergiodj@redhat.com>
7059 * breakpoint.c (breakpoint_find_if): New function.
7060 * breakpoint.h (breakpoint_find_if): New prototype.
7062 2015-03-11 Gary Benson <gbenson@redhat.com>
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.
7079 2015-03-11 Gary Benson <gbenson@redhat.com>
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.
7097 2015-03-11 Andy Wingo <wingo@igalia.com>
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.
7102 2015-03-11 Andy Wingo <wingo@igalia.com>
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.
7108 2015-03-11 Andy Wingo <wingo@igalia.com>
7110 * guile/scm-objfile.c (gdbscm_objfile_progspace): New function.
7111 (objfile_functions): Bind gdbscm_objfile_progspace to
7113 * guile/lib/gdb.scm: Add objfile-progspace to exports.
7115 2015-03-11 Andy Wingo <wingo@igalia.com>
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.
7126 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
7128 * s390-linux-tdep.c (s390_skip_prologue): Skip the prologue using
7131 2015-03-11 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
7144 2015-03-09 Pedro Alves <palves@redhat.com>
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
7151 (net_open): Use union gdb_sockaddr_u.
7153 2015-03-07 Pedro Alves <palves@redhat.com>
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
7159 * configure: Regenerate.
7161 2015-03-07 Pedro Alves <palves@redhat.com>
7163 * common/gdb_socket.h: New file.
7164 * ser-tcp.c: Include gdb_socket.h. Don't include netinet/in.h nor
7166 (net_open): Use union gdb_sockaddr_u.
7168 2015-03-07 Pedro Alves <palves@redhat.com>
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):
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):
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
7191 (struct gdb_exception_RETURN_MASK_ALL)
7192 (struct gdb_exception_RETURN_MASK_ERROR)
7193 (struct gdb_exception_RETURN_MASK_QUIT): New types.
7195 2015-03-07 Pedro Alves <palves@redhat.com>
7197 * main.c (handle_command_errors): Remove volatile qualifier from
7200 2015-03-07 Pedro Alves <palves@redhat.com>
7202 * breakpoint.c (save_breakpoints): Adjust to avoid code between
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
7214 2015-03-07 Pedro Alves <palves@redhat.com>
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
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.
7231 2015-03-07 Tom Tromey <tromey@redhat.com>
7233 * top.c (quit_force): Inline and delete DO_TRY, DO_PRINT_EX.
7235 2015-03-07 Pedro Alves <palves@redhat.com>
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):
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.
7262 2015-03-06 Gary Benson <gbenson@redhat.com>
7264 * common/common-utils.h (startswith): New inline function.
7265 All places where this logic was used updated to use the above.
7267 2015-03-05 Pedro Alves <palves@redhat.com>
7270 * mem-break.c (default_memory_insert_breakpoint): Set shadow_len
7271 after reading the breakpoint's shadow memory.
7273 2015-03-05 Mark Kettenis <kettenis@gnu.org>
7275 * hppabsd-nat.c: Remove file.
7276 * hppaobsd-nat.c: New file.
7277 * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
7279 * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
7282 2015-03-04 Pedro Alves <palves@redhat.com>
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.
7296 2015-03-04 Pedro Alves <palves@redhat.com>
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.
7317 2015-03-04 Pedro Alves <palves@redhat.com>
7319 * NEWS: Mention the new "swbreak" and "hwbreak" stop reasons.
7320 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p>:
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"
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
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.
7345 2015-03-04 Pedro Alves <palves@redhat.com>
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
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.
7375 2015-03-04 Pedro Alves <palves@redhat.com>
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.
7386 2015-03-04 Pedro Alves <palves@redhat.com>
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
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.
7414 2015-03-04 Pedro Alves <palves@redhat.com>
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.
7424 2015-03-04 Mark Kettenis <kettenis@gnu.org>
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.
7431 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7433 * s390-linux-tdep.c (s390_register_name): Return empty string
7434 instead of NULL for registers that shouldn't be visible.
7436 2015-03-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
7438 * s390-linux-tdep.c (s390_gdbarch_init): Use the correct syscall
7439 XML file for 64-bit targets.
7441 2015-03-03 Simon Marchi <simon.marchi@ericsson.com>
7443 * target.h (find_default_create_inferior): Remove declaration.
7444 (find_default_attach): Likewise.
7446 2015-03-03 Pedro Alves <palves@redhat.com>
7448 * inf-ptrace.c (inf_ptrace_resume): Remove spurious whitespace.
7449 Use ptid_get_pid to get the overall process id when resuming all
7452 2015-03-03 Pedro Alves <palves@redhat.com>
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
7461 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
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
7469 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
7471 * btrace.c (ftrace_update_function): Treat return as tailcall for
7472 "_dl_runtime_resolve".
7474 2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
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.
7484 2015-03-02 Pedro Alves <palves@redhat.com>
7486 * infrun.c (follow_exec): Delete all threads of the process except
7487 the event thread. Extended comments.
7489 2015-03-02 Joel Brobecker <brobecker@adacore.com>
7491 * contrib/ari/gdb_ari.sh: Reinstate checks for "true" and "false".
7493 2015-03-02 Joel Brobecker <brobecker@adacore.com>
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.
7501 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
7503 * s390-linux-nat.c (have_regset_vxrs): New static variable.
7504 (s390_linux_fetch_inferior_registers): Handle vector registers, if
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
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.
7559 2015-03-02 Andreas Arnez <arnez@linux.vnet.ibm.com>
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
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.
7580 2015-02-28 Doug Evans <xdje42@gmail.com>
7582 * symtab.h (struct symtab) <next>: Fix comment.
7584 2015-02-27 Simon Marchi <simon.marchi@ericsson.com>
7586 * python/python.c (python_GdbModuleDef): Rename GdbMethods to
7589 2015-02-27 Pedro Alves <palves@redhat.com>
7591 * dtrace-probe.c (dtrace_probe_ops): Make extern.
7593 2015-02-27 Pedro Alves <palves@redhat.com>
7595 * common/common-exceptions.h (exception_none): Declare.
7596 * common/common-exceptions.c (exception_none): Moved from
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.
7604 2015-02-27 Pedro Alves <palves@redhat.com>
7606 * main.c (catch_command_errors, catch_command_errors_const):
7607 Remove 'mask' argument. Adjust.
7608 (captured_main): Adjust callers.
7610 2015-02-27 Pedro Alves <palves@redhat.com>
7612 * python/python-internal.h: Include "extension-priv.h".
7614 2015-02-27 Pedro Alves <palves@redhat.com>
7616 * breakpoint.h (enum print_stop_action): Move further up in the
7619 2015-02-27 Pedro Alves <palves@redhat.com>
7621 * gdbarch.sh: Include regcache.h.
7622 * gdbarch.h: Regenerate.
7624 2015-02-27 Pedro Alves <palves@redhat.com>
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
7631 2015-02-27 Pedro Alves <palves@redhat.com>
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.
7638 2015-02-27 Tom Tromey <tromey@redhat.com>
7640 * minidebug.c (struct lzma_stream): Rename to ...
7641 (struct gdb_lzma_stream): ... this.
7642 (lzma_open, lzma_pread, lzma_close, lzma_stat): Adjust.
7644 2015-02-27 Pedro Alves <palves@redhat.com>
7646 * mi/mi-cmd-stack.c (mi_apply_ext_lang_frame_filter): New
7648 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
7649 (mi_cmd_stack_list_variables): Use it.
7651 2015-02-27 Pedro Alves <palves@redhat.com>
7653 * x86-linux-nat.c (u_debugreg_offset): New function.
7654 (x86_linux_dr_get, x86_linux_dr_set): Use it.
7656 2015-02-27 Pedro Alves <palves@redhat.com>
7658 * nat/x86-dregs.h (enum target_hw_bp_type): Remove forward
7660 Include break-common.h.
7662 2015-02-27 Tom Tromey <tromey@redhat.com>
7663 Pedro Alves <palves@redhat.com>
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.
7676 2015-02-27 Pedro Alves <palves@redhat.com>
7678 * target.h: Include "infrun.h".
7680 2015-02-27 Pedro Alves <palves@redhat.com>
7682 * gdb_proc_service.h: Wrap with EXTERN_C_PUSH/EXTERN_C_POP.
7684 2015-02-27 Pedro Alves <palves@redhat.com>
7686 * common/agent.h (IPA_SYM_EXPORTED_NAME): New.
7688 * common/common-defs.h (EXTERN_C_PUSH, EXTERN_C_POP): New macros.
7690 2015-02-27 Pedro Alves <palves@redhat.com>
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
7709 2015-02-27 Pedro Alves <palves@redhat.com>
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.
7716 2015-02-27 Pedro Alves <palves@redhat.com>
7718 * record-btrace.c (set_record_btrace_cmdlist)
7719 (show_record_btrace_cmdlist): Remove redefinitions.
7721 2015-02-27 Tom Tromey <tromey@redhat.com>
7722 Pedro Alves <palves@redhat.com>
7724 * dwarf2-frame.c (enum cfa_how_kind, struct
7725 dwarf2_frame_state_reg_info): Move out of struct
7727 * dwarf2read.c (struct tu_stats): Move out of struct
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
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
7746 * s390-linux-tdep.c (enum s390_abi_kind): Move out of struct
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
7752 * symtab.c (struct symbol_cache_slot): Move out struct
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
7763 2015-02-27 Tom Tromey <tromey@redhat.com>
7764 Pedro Alves <palves@redhat.com>
7766 Rename symbols whose names are reserved C++ keywords throughout.
7768 2015-02-27 Pedro Alves <palves@redhat.com>
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.
7784 2015-02-27 Pedro Alves <palves@redhat.com>
7786 * libiberty.m4: New file.
7787 * acinclude.m4: Include libiberty.m4.
7788 * configure.ac: Call libiberty_INIT.
7789 * config.in, configure: Regenerate.
7791 2015-02-27 Andreas Arnez <arnez@linux.vnet.ibm.com>
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
7800 2015-02-27 Jon TURNEY <jon.turney@dronecode.org.uk> (tiny patch)
7802 * windows-nat.c (CONTEXT_DEBUGGER): Remove.
7803 (CONTEXT_DEBUGGER_DR): Add CONTEXT_SEGMENTS. Incorporate flags
7804 from CONTEXT_DEBUGGER.
7806 2015-02-26 Doug Evans <dje@google.com>
7808 * gdbtypes.c (internal_type_vptr_fieldno): Add missing call to
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.
7814 2015-02-26 Pedro Alves <palves@redhat.com>
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
7823 (do_compile_dwarf_expr_to_c): Pass string literal as format string
7825 (BINARY): Pass string literal as format string to 'binary'.
7826 * compile/compile-object-load.c (link_callbacks_einfo): Add
7828 * guile/guile-internal.h (gdbscm_printf): Add ATTRIBUTE_PRINTF.
7830 2015-02-26 Pedro Alves <palves@redhat.com>
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
7836 * configure: Regenerate.
7837 * configure.ac: Refer to stub-termcap.o instead of
7839 * gdb_curses.h: Mention stub-termcap.c instead of
7842 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7844 * compile/compile-c-symbols.c (convert_one_symbol, convert_symbol_bmsym)
7845 (gcc_symbol_address): Call gnu_ifunc_resolve_addr.
7847 2015-02-26 Antoine Tremblay <antoine.tremblay@ericsson.com>
7849 * gdb/infcmd.c (print_return_value): use type_to_string to print type.
7851 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7853 * elfread.c (elf_read_minimal_symbols): Use bfd_alloc for
7854 bfd_canonicalize_symtab.
7856 2015-02-25 John Baldwin <jhb@FreeBSD.org>
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".
7880 2015-02-25 John Baldwin <jhb@freebsd.org>
7882 * amd64fbsd-tdep.c (amd64fbsd_sigcontext_addr): Use
7883 get_frame_register instead of frame_unwind_register_unsigned.
7885 2015-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7888 * compile/compile-c-support.c (c_compute_program): Change // comment.
7889 * compile/compile-object-load.c (setup_sections): Change // comment.
7891 2015-02-26 Joel Brobecker <brobecker@adacore.com>
7894 * iq2000-tdep.c (iq2000_frame_cache): Delete C++-style comment.
7896 2015-02-23 Pedro Alves <palves@redhat.com>
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.
7904 2015-02-21 Doug Evans <dje@google.com>
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.
7917 2015-02-20 Pedro Alves <palves@redhat.com>
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
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
7937 (record_thread): ... this function. Call check_thread_signals
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.
7950 2015-02-20 Pedro Alves <palves@redhat.com>
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.
7958 2015-02-20 Pedro Alves <palves@redhat.com>
7960 * target.h (forward_target_decr_pc_after_break): Delete
7963 2015-02-20 Pedro Alves <palves@redhat.com>
7966 * linux-thread-db.c (thread_get_info_callback): Return early if
7967 the thread's lwp id is -1.
7969 2015-02-20 Joel Brobecker <brobecker@adacore.com>
7973 2015-02-19 Steve Ellcey <sellcey@imgtec.com>
7975 * dtrace-probe.c (dtrace_process_dof_probe): Initialize arg.expr.
7976 (dtrace_get_probes) Change type of variable 'dof'.
7978 2015-02-19 Antoine Tremblay <antoine.tremblay@ericsson.com>
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.
7985 2015-02-19 David Taylor <dtaylor@emc.com>
7987 * common/ax.def (setv): Fix consumed entry in setv DEFOP.
7989 2015-02-18 Patrick Palka <patrick@parcs.ath.cx>
7991 * tui/tui-io.c (tui_handle_resize_during_io): Remove this
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
8000 (tui_async_resize_screen): New asynchronous callback.
8001 (tui_sigwinch_handler): Adjust documentation. Asynchronously
8002 invoke tui_async_resize_screen.
8004 2015-02-18 Jose E. Marchesi <jose.marchesi@oracle.com>
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.
8013 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
8015 * NEWS: Announce the support for DTrace SDT probes.
8017 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
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.
8033 2015-01-17 Jose E. Marchesi <jose.marchesi@oracle.com>
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
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.
8080 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
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.
8089 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
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
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
8102 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
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.
8111 2015-02-17 Jose E. Marchesi <jose.marchesi@oracle.com>
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
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.
8125 2015-02-17 Patrick Palka <patrick@parcs.ath.cx>
8127 * tui/tui-io.c (tui_getc): Don't call key_is_command_char.
8128 (key_is_command_char): Delete.
8130 2015-02-17 Pedro Alves <palves@redhat.com>
8132 * tui/tui.c (tui_enable): Resize windows before anything
8133 might show a window.
8135 2015-02-17 Max Ostapenko <m.ostapenko@partner.samsung.com>
8138 * aarch64-linux-nat.c: Don't include features/aarch64.c anymore.
8139 (aarch64_linux_read_description): Remove initialize_tdesc_aarch64
8141 * aarch64-tdep.h (tdesc_aarch64): Declare.
8143 2015-02-12 Mark Wielaard <mjw@redhat.com>
8145 * contrib/ari/gdb_ari.sh: Remove checks for "true" and "false".
8147 2015-02-13 Doug Evans <dje@google.com>
8149 * cp-namespace.c (cp_basic_lookup_symbol): Rename parameter
8150 anonymous_namespace to is_in_anonymous for consistency with the rest
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.
8158 2015-02-13 Yao Qi <yao.qi@arm.com>
8160 * MAINTAINERS: Update my email address.
8162 2015-02-12 Doug Evans <dje@google.com>
8164 * symtab.c (completion_list_add_name): Fix memory leak.
8166 2015-02-12 Doug Evans <dje@google.com>
8168 * completer.c (complete_line): Remove incorrect comment.
8170 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8172 * python/py-framefilter.c (py_print_single_arg, enumerate_locals)
8173 (py_print_frame): Use RETURN_MASK_ERROR.
8175 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
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
8182 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8184 * python/py-framefilter.c (py_print_frame): Substitute goto error.
8185 Remove the error label.
8187 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
8193 2015-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8195 * python/py-framefilter.c (py_print_frame): Whitespacing fixes.
8197 2015-02-11 Pedro Alves <palves@redhat.com>
8199 * xcoffread.c (within_function): Delete.
8201 2015-02-11 Tom Tromey <tromey@redhat.com>
8202 Pedro Alves <palves@redhat.com>
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.
8241 2015-02-11 Pedro Alves <pedro@codesourcery.com>
8243 * infrun.c (adjust_pc_after_break): Don't adjust the PC just
8244 because the event thread is not the current thread.
8246 2015-02-11 Doug Evans <xdje42@gmail.com>
8248 * gdbtypes.c (internal_type_self_type): If TYPE_SPECIFIC_FIELD hasn't
8249 been initialized yet, return NULL.
8251 2015-02-11 Doug Evans <dje@google.com>
8253 * symfile.h (new_symfile_objfile): Delete.
8254 * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
8255 All callers updated.
8257 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
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().
8264 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
8266 * tui/tui-io.c (tui_getc): Move cursor to the end of the command
8267 line before printing a newline.
8269 2015-02-11 Mark Wielaard <mjw@redhat.com>
8271 * utils.c (producer_is_gcc): Return true or false.
8273 2015-02-10 Mark Wielaard <mjw@redhat.com>
8275 * utils.h (producer_is_gcc): Change return type to bool. Add major
8277 * utils.c (producer_is_gcc): Likewise.
8278 (producer_is_gcc_ge_4): Adjust producer_is_gcc call.
8279 * dwarf2read.c (check_producer): Likewise.
8281 2015-02-10 Pedro Alves <palves@redhat.com>
8283 * infrun.c (displaced_step_fixup): Switch to the event thread
8284 before calling gdbarch_displaced_step_fixup.
8286 2015-02-10 Antoine Tremblay <antoine.tremblay@ericsson.com>
8288 * MAINTAINERS (Write After Approval): Add Antoine Tremblay.
8290 2015-02-10 Simon Marchi <simon.marchi@ericsson.com>
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
8312 (varobj_get_path_expr): Constify var, modify path_expr through
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
8319 (varobj_get_path_expr): Constify var.
8320 (varobj_get_path_expr_parent): Constify var and return value.
8322 2015-02-10 Luis Machado <lgustavo@codesourcery.com>
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.
8330 2015-02-09 Mark Wielaard <mjw@redhat.com>
8332 * dwarf2read.c (set_cu_language): Recognize DW_LANG_Fortran03 and
8333 DW_LANG_Fortran08 as language_fortran.
8335 2015-02-09 Sergio Durigan Junior <sergiodj@redhat.com>
8338 * gdb/remote.c (remote_parse_stop_reply): Fix wrong comparison
8339 of pointer against char.
8341 2015-02-09 Mark Wielaard <mjw@redhat.com>
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.
8354 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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
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
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
8374 (btrace_call_next, btrace_call_prev): Assert that the last function
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.
8389 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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.
8396 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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.
8410 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8412 * btrace.c (btrace_compute_ftrace_bts, btrace_compute_ftrace):
8413 Update parameters. Update users.
8415 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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):
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.
8440 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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
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.
8502 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
8504 * nat/linux-btrace.h (perf_event_buffer): New.
8505 (btrace_target_info) <buffer, size, data_head>: Replace with ...
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.
8511 (perf_event_new_data): New.
8513 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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
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.
8535 2015-02-09 Markus Metzger <markus.t.metzger@intel.com>
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.
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.
8569 2015-02-06 Doug Evans <dje@google.com>
8571 * remote-m32r-sdi.c: Include symfile.h.
8573 2015-02-06 Doug Evans <dje@google.com>
8575 * symtab.h (clear_symtab_users, deduce_language_from_filename): Move
8576 * symfile.h (clear_symtab_users, deduce_language_from_filename): ...
8579 2015-02-06 Pedro Alves <palves@redhat.com>
8581 * linux-thread-db.c (find_new_threads_callback): Add debug output.
8583 2015-02-06 Simon Marchi <simon.marchi@ericsson.com>
8586 * breakpoint.c (map_breakpoint_numbers): Check for empty args string.
8587 (enable_count_command): Check args for NULL value.
8589 2015-02-05 Doug Evans <xdje42@gmail.com>
8591 * guile/scm-frame.c: Fix spelling errors in a comment.
8593 2015-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
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
8599 2015-02-04 Pedro Alves <palves@redhat.com>
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
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.
8608 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
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
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.
8623 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
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):
8632 2015-02-04 Andreas Arnez <arnez@linux.vnet.ibm.com>
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.
8658 2015-02-04 Doug Evans <dje@google.com>
8659 Pedro Alves <palves@redhat.com>
8660 Eli Zaretskii <eliz@gnu.org>
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.
8670 2015-02-04 Pedro Alves <palves@redhat.com>
8673 * event-loop.c (gdb_do_one_event): Add default switch case.
8675 2015-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8677 Filter out inferior gcc option -fpreprocessed.
8678 * compile/compile.c (filter_args): New function.
8681 2015-02-03 Pedro Alves <palves@redhat.com>
8683 * event-loop.c: Don't declare nor define a queue type for
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
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
8703 (poll_timers): Reimplement.
8704 * event-loop.h (initialize_event_loop): Delete declaration.
8705 * top.c (gdb_init): Don't call initialize_event_loop.
8707 2015-02-03 Pedro Alves <palves@redhat.com>
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.
8721 2015-02-03 Pedro Alves <palves@redhat.com>
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.
8730 2015-02-02 Simon Marchi <simon.marchi@ericsson.com>
8732 * varobj.h (lang_varobj_ops): Mention which return values need
8735 2015-02-02 Joel Brobecker <brobecker@adacore.com>
8737 * dwarf2loc.c (dwarf2_evaluate_property): Add i18n marker.
8739 2015-02-02 Joel Brobecker <brobecker@adacore.com>
8742 * ada-lang.c (ada_lookup_symbol_list_worker): Do not re-cache
8743 results found in the cache.
8745 2015-02-02 Joel Brobecker <brobecker@adacore.com>
8748 * ada-lang.c (ada_get_symbol_cache): Set pspace_data->sym_cache
8749 when allocating a new one.
8751 2015-02-01 Tom Tromey <tom@tromey.com>
8753 * MAINTAINERS: Remove myself.
8755 2015-01-31 Doug Evans <xdje42@gmail.com>
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,
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
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.
8778 2015-01-31 Doug Evans <xdje42@gmail.com>
8780 * cp-valprint.c (cp_find_class_member): Rename parameter domain_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
8807 (gnuv3_method_ptr_to_value): Rename local domain_type to self_type.
8808 * m2-typeprint.c (m2_range): Replace TYPE_SELF_TYPE with
8810 * stabsread.c (read_member_functions): Mark methods with
8811 TYPE_CODE_METHOD, not TYPE_CODE_FUNC. Update setting of
8814 2015-01-31 Doug Evans <xdje42@gmail.com>
8816 * gdbtypes.h (TYPE_SELF_TYPE): Renamed from TYPE_DOMAIN_TYPE.
8819 2015-01-31 Doug Evans <xdje42@gmail.com>
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
8826 (compute_vtable_size): Assert only passed structs.
8827 (gnuv3_print_vtable): Don't call gnuv3_get_vtable for non-structs.
8829 2015-01-31 Doug Evans <xdje42@gmail.com>
8831 * gdbtypes.c (copy_type_recursive): Handle all TYPE_SPECIFIC_FIELD
8834 2015-01-31 Gary Benson <gbenson@redhat.com>
8835 Doug Evans <dje@google.com>
8840 * cli/cli-cmds.c (complete_command): Notify user if max-completions
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
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.
8877 2015-01-31 Gary Benson <gbenson@redhat.com>
8879 * symtab.c (struct add_name_data) <code>: New field.
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.
8891 2015-01-31 Gary Benson <gbenson@redhat.com>
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.
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.
8905 2015-01-31 Doug Evans <xdje42@gmail.com>
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
8934 2015-01-31 Doug Evans <xdje42@gmail.com>
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.
8965 2015-01-31 Joel Brobecker <brobecker@adacore.com>
8968 * symfile.c (clear_symtab_users): Move call to breakpoint_re_set
8971 2015-01-31 Doug Evans <xdje42@gmail.com>
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
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.
9004 2015-01-31 Eli Zaretskii <eliz@gnu.org>
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.
9014 2015-01-30 Doug Evans <dje@google.com>
9016 * NEWS: "info source" command now display producer string if present.
9017 * source.c (source_info): Print producer string if present.
9019 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9021 * varobj.c (varobj_delete): Fix comment.
9023 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9025 * varobj.c (create_child): Modify comment.
9027 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9029 * ada-varobj.c (ada_number_of_children): Constify struct varobj *
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.
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.
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.
9080 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
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
9085 (cplus_path_expr_of_child): Same.
9087 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9089 * mi-cmd-var.c (print_varobj): Free varobj_get_expression
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.
9095 2015-01-30 Simon Marchi <simon.marchi@ericsson.com>
9097 * mi/mi-cmd-var.c (mi_cmd_var_info_type): Free result of
9099 (varobj_update_one): Same.
9100 * varobj.c (update_type_if_necessary): Free curr_type_str and
9102 (varobj_get_type): Specify in comment that the result needs to be
9103 freed by the caller.
9105 2015-01-29 Doug Evans <dje@google.com>
9108 * dwarf2read.c (dwarf_decode_line_header): Punt if version > 4.
9110 2015-01-25 Mark Wielaard <mjw@redhat.com>
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.
9117 2015-01-29 Joel Brobecker <brobecker@adacore.com>
9119 * gdbtypes.h (struct dynamic_prop): New PROP_ADDR_OFFSET enum
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.
9144 2015-01-29 Joel Brobecker <brobecker@adacore.com>
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.
9150 2015-01-29 Joel Brobecker <brobecker@adacore.com>
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.
9156 2015-01-29 Alexander Klimov <alserkli@inbox.ru> (tiny patch)
9158 Pushed by Joel Brobecker <brobecker@adacore.com>.
9159 * symfile.c (unmap_overlay_command): Initialize sec to NULL.
9161 2015-01-27 Doug Evans <dje@google.com>
9163 * NEWS: Mention gdb.Objfile.username.
9164 * python/py-objfile.c (objfpy_get_username): New function.
9165 (objfile_getset): Add "username".
9167 2015-01-24 Mark Wielaard <mjw@redhat.com>
9169 * stack.c (return_command): Markup warning message with _.
9171 2015-01-24 Doug Evans <xdje42@gmail.com>
9173 * gdbtypes.h (TYPE_TYPE_SPECIFIC): Delete.
9175 2015-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
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
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.
9191 2015-01-23 Simon Marchi <simon.marchi@ericsson.com>
9194 * valops.c (value_rtti_indirect_type): Catch exception thrown by
9197 2015-01-15 Mark Wielaard <mjw@redhat.com>
9199 * dwarf2read.c (read_subroutine_type): Set TYPE_NO_RETURN from
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
9206 * stack.c (return_command): Likewise.
9208 2015-01-23 Pedro Alves <palves@redhat.com>
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
9216 (linux_async_pipe): Use linux_is_async_p.
9218 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9220 * NEWS (Changes since GDB 7.9): Add 'thread apply all' option
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.
9227 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
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.
9234 2015-01-22 Pedro Alves <palves@redhat.com>
9236 * configure.ac [*mingw32*]: Check $curses_found instead of
9238 * configure: Regenerate.
9239 * windows-termcap.c: Remove HAVE_CURSES_H, HAVE_NCURSES_H and
9240 HAVE_NCURSES_NCURSES_H checks.
9242 2015-01-22 Eli Zaretskii <eliz@gnu.org>
9244 * tui/tui.c (tui_enable) [__MINGW32__]: If the call to 'newterm'
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
9250 2015-01-22 Jan Kratochvil <jan.kratochvil@redhat.com>
9252 * compile/compile.c (_initialize_compile): Use -fPIE for compile_args.
9254 2015-01-22 Eli Zaretskii <eliz@gnu.org>
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.
9260 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
9262 * hppa-tdep.c (inst_saves_gr): Fix logical working flow issues
9263 and check additional store instructions.
9265 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
9267 * MAINTAINERS (Write After Approval): Add "Wei-cheng Wang".
9269 2015-01-21 Wei-cheng Wang <cole945@gmail.com>
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.
9282 2015-01-20 Joel Brobecker <brobecker@adacore.com>
9284 * nat/linux-ptrace.c (linux_ptrace_attach_fail_reason_string)
9285 (linux_ptrace_test_ret_to_nx): Use safe_strerror instead of
9288 2015-01-20 Wei-cheng Wang <cole945@gmail.com>
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.
9297 2015-01-20 Chen Gang <gang.chen.5i5j@gmail.com>
9299 * MAINTAINERS (Write After Approval): Add "Chen Gang".
9301 2015-01-19 Eli Zaretskii <eliz@gnu.org>
9303 * configure.ac [*mingw32*]: Only add windows-termcap.o to
9304 CONFIG_OBS if not building with a curses library.
9305 * configure: Regenerate.
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.
9311 2015-01-19 Joel Brobecker <brobecker@adacore.com>
9313 * rs6000-tdep.c (rs6000_gdbarch_init): Move divide operator
9314 from end of line to start of next line.
9316 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
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.
9322 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
9323 Ulrich Weigand <uweigand@de.ibm.com>
9325 * configure.tgt (powerpc*-*-linux): Add linux-record.o to
9327 (ppc_linux_record_tdep, ppc64_linux_record_tdep): New for linux syscall
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.
9340 2015-01-17 Wei-cheng Wang <cole945@gmail.com>
9342 * rs6000-tdep.c (rs6000_in_function_epilogue_p): Rename to
9343 rs6000_in_function_epilogue_frame_p and add an argument
9345 (rs6000_epilogue_frame_cache, rs6000_epilogue_frame_this_id,
9346 rs6000_epilogue_frame_prev_register, rs6000_epilogue_frame_sniffer):
9348 (rs6000_epilogue_frame_unwind): New.
9349 (rs6000_gdbarch_init): Append epilogue unwinder.
9351 2015-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
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
9358 2015-01-16 Eli Zaretskii <eliz@gnu.org>
9360 * tui/tui-win.c (tui_rehighlight_all, tui_set_var_cmd): New
9362 (_initialize_tui_win) <border-kind, border-mode>:
9363 <active-border-mode>: Use tui_set_var_cmd as the "set" function.
9364 (tui_set_tab_width_command): Fix the commentary.
9366 * tui/tui-win.h: Add prototype for tui_rehighlight_all.
9368 * tui/tui-win.c (tui_scroll_left_command, tui_scroll_right_command):
9370 (tui_set_tab_width_command): Delete and recreate the source and
9371 the disassembly windows, to show the effect of the changed tab
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.
9378 2015-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9380 Fix gcc-5 compilation.
9381 * hppa-tdep.c (inst_saves_gr): Fix parentheses typo.
9383 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
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.
9418 2015-01-15 Sergio Durigan Junior <sergiodj@redhat.com>
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,
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
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.
9442 2015-01-15 Joel Brobecker <brobecker@adacore.com>
9446 2015-01-15 Joel Brobecker <brobecker@adacore.com>
9448 * ada-lang.c (ada_array_bound_from_type): Ignore array's parallel
9449 ___XA type if the array has already been fixed.
9451 2015-01-14 Yao Qi <yao@codesourcery.com>
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):
9460 * nat/ppc-linux.c: New file.
9461 * ppc-linux-nat.c (ppc_linux_target_wordsize) [__powerpc64__]:
9462 Call ppc64_64bit_inferior_p.
9464 2015-01-14 Yao Qi <yao@codesourcery.com>
9466 * ppc-linux-nat.c (PT_ORIG_R3, PT_TRAP): Move to
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.
9477 2015-01-14 Pedro Alves <palves@redhat.com>
9480 * breakpoint.c: Include "interps.h".
9481 (bpstat_do_actions_1): Also check whether the interpreter is
9484 2015-01-14 Pedro Alves <palves@redhat.com>
9487 * infrun.c (reinstall_readline_callback_handler_cleanup): Don't
9488 reinstall if the interpreter is sync.
9490 2015-01-13 Doug Evans <dje@google.com>
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.
9498 2015-01-13 Joel Brobecker <brobecker@adacore.com>
9500 * NEWS: Create a new section for the next release branch.
9501 Rename the section of the current branch, now that it has
9504 2015-01-13 Joel Brobecker <brobecker@adacore.com>
9506 GDB 7.9 branch created (92fc2e6978d9a7c8324c7e851dbee59e22ec7a37):
9507 * version.in: Bump version to 7.9.50.DATE-cvs.
9509 2015-01-13 Joel Brobecker <brobecker@adacore.com>
9511 * nat/linux-procfs.c (linux_proc_attach_tgid_threads):
9512 Remove trailing new-line in argument of call to warning.
9514 2015-01-13 Joel Brobecker <brobecker@adacore.com>
9516 * linux-nat.c (attach_proc_task_lwp_callback): Remove trailing
9517 new-line in argument of call to "warning".
9519 2015-01-13 Joel Brobecker <brobecker@adacore.com>
9521 * ada-lang.c (ada_lookup_symbol_nonlocal): If name not found
9522 in static block, then try searching for primitive types.
9524 2015-01-12 Patrick Palka <patrick@parcs.ath.cx>
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
9533 * event-top.c (command_line_handler): Likewise.
9535 2015-01-12 James Clarke <jrtc27@jrtc27.com> (tiny patch)
9538 * darwin-nat.c: Replace <machine/setjmp.h> #include by
9539 <setjmp.h> #include.
9541 2015-01-11 Doug Evans <xdje42@gmail.com>
9543 * dwarf2read.c (compute_delayed_physnames): Use TYPE_FN_FIELD_PHYSNAME.
9545 2015-01-11 Doug Evans <xdje42@gmail.com>
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.
9556 2015-01-11 Mark Kettenis <kettenis@gnu.org>
9558 * inf-ptrace.c (inf_ptrace_follow_fork): Adjust now that
9559 inferior_thread is a function.
9561 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
9563 * Makefile.in (.y.c): Don't munge yacc's #line
9566 2015-01-09 Patrick Palka <patrick@parcs.ath.cx>
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.
9575 2015-01-09 Pedro Alves <palves@redhat.com>
9577 * breakpoint.c (hardware_breakpoint_inserted_here_p): New
9579 * breakpoint.h (hardware_breakpoint_inserted_here_p): New
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
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
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.
9615 2015-01-09 Pedro Alves <palves@redhat.com>
9617 * linux-nat.c (linux_handle_extended_wait) <PTRACE_EVENT_EXEC>:
9618 Set the LWP's 'resumed' flag.
9620 2015-01-09 Pedro Alves <palves@redhat.com>
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.
9637 2015-01-09 Pedro Alves <palves@redhat.com>
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.
9646 2014-01-09 Pedro Alves <palves@redhat.com>
9648 Skip enabling event reporting if the kernel supports
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
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
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.
9663 2015-01-09 Pedro Alves <palves@redhat.com>
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.
9670 2015-01-09 Pedro Alves <palves@redhat.com>
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
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"
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):
9710 2015-01-09 Pedro Alves <palves@redhat.com>
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.
9716 2015-01-09 Chen Gang <gang.chen.5i5j@gmail.com>
9717 Pedro Alves <palves@redhat.com>
9719 * compile/compile.c: Include "gdb_wait.h".
9720 (do_rmdir): Check return value, and free 'zap'.
9722 2015-01-08 Pedro Alves <palves@redhat.com>
9723 Yao Qi <yao@codesourcery.com>
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.
9730 2015-01-07 Pierre Muller <muller@sourceware.org>
9733 * stabsread.c (define_symbol): Set language for C++ special symbols.
9735 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
9737 * inflow.c (initial_gdb_ttystate): Tweak comment.
9739 2015-01-07 Joel Brobecker <brobecker@adacore.com>
9741 * inflow.c (set_initial_gdb_ttystate): Add empty line after
9742 comment documenting function.
9744 2015-01-07 Patrick Palka <patrick@parcs.ath.cx>
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.
9753 2015-01-07 Joel Brobecker <brobecker@adacore.com>
9755 * guile/scm-type.c (tyscm_array_1): Add comment.
9756 * python/py-type.c (typy_array_1): Add comment.
9758 2015-01-06 Joel Brobecker <brobecker@adacore.com>
9760 * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range
9761 error if N2 is equal to N1 - 1.
9763 2015-01-06 Joel Brobecker <brobecker@adacore.com>
9765 * python/py-type.c (typy_array_1): Do not raise negative-length
9766 exception if N2 is equal to N1 - 1.
9768 2015-01-03 Doug Evans <xdje42@gmail.com>
9770 * c-exp.y: Whitespace cleanup.
9771 (classify_inner_name): Remove extra ;.
9773 2015-01-02 Maciej W. Rozycki <macro@codesourcery.com>
9775 * mips-tdep.c (mips32_scan_prologue): Keep the extracted stack
9778 2015-01-02 Doug Evans <dje@google.com>
9780 * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
9782 2015-01-02 Doug Evans <dje@google.com>
9784 * symtab.h (struct symbol): Fix typo in comment.
9786 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9788 Update year range in copyright notice of all files.
9790 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9792 * top.c (print_gdb_version): Update copyright year to 2015.
9794 2015-01-01 Joel Brobecker <brobecker@adacore.com>
9796 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
9798 For older changes see ChangeLog-2014.
9804 version-control: never