1 2019-03-23 Tom Tromey <tom@tromey.com>
3 * objfiles.h: Include bcache.h.
5 2019-03-23 Tom Tromey <tom@tromey.com>
7 * linespec.c (get_current_search_block): Use
8 scoped_restore_current_language.
9 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
11 2019-03-22 Alan Hayward <alan.hayward@arm.com>
12 Jiong Wang <jiong.wang@arm.com>
14 * aarch64-linux-tdep.c
15 (aarch64_linux_iterate_over_regset_sections): Check for pauth
17 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
19 2019-03-22 Alan Hayward <alan.hayward@arm.com>
20 Jiong Wang <jiong.wang@arm.com>
22 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
24 (aarch64_analyze_prologue_test): Add PACIASP test.
25 (aarch64_prologue_prev_register): Unmask PC value.
27 2019-03-22 Alan Hayward <alan.hayward@arm.com>
28 Jiong Wang <jiong.wang@arm.com>
30 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
31 (aarch64_dwarf2_prev_register): Unmask PC value.
32 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
33 (aarch64_execute_dwarf_cfa_vendor_op): Check for
34 DW_CFA_AARCH64_negate_ra_state.
35 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
37 2019-03-22 Alan Hayward <alan.hayward@arm.com>
38 Jiong Wang <jiong.wang@arm.com>
40 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
42 (aarch64_pseudo_register_name): Likewise.
43 (aarch64_pseudo_register_type): Likewise.
44 (aarch64_pseudo_register_reggroup_p): Likewise.
45 (aarch64_gdbarch_init): Add pauth registers.
46 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
47 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
48 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
49 (struct gdbarch_tdep): Add regnum for ra_state.
51 2019-03-22 Alan Hayward <alan.hayward@arm.com>
52 Jiong Wang <jiong.wang@arm.com>
54 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
56 2019-03-22 Alan Hayward <alan.hayward@arm.com>
57 Jiong Wang <jiong.wang@arm.com>
59 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
61 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
62 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
63 (aarch64_gdbarch_init): Add puth registers.
64 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
65 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
66 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
68 2019-03-22 Alan Hayward <alan.hayward@arm.com>
69 Jiong Wang <jiong.wang@arm.com>
72 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
73 * aarch64-linux-tdep.c
74 (aarch64_linux_core_read_description): Likewise.
75 (aarch64_linux_get_hwcap): New function.
76 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
77 (aarch64_linux_get_hwcap): New declaration.
79 2019-03-22 Alan Hayward <alan.hayward@arm.com>
80 Jiong Wang <jiong.wang@arm.com>
83 (aarch64_linux_nat_target::read_description): Add pauth param.
84 * aarch64-linux-tdep.c
85 (aarch64_linux_core_read_description): Likewise.
86 * aarch64-tdep.c (struct target_desc): Add in pauth.
87 (aarch64_read_description): Add pauth param.
88 (aarch64_gdbarch_init): Likewise.
89 * aarch64-tdep.h (aarch64_read_description): Likewise.
90 * arch/aarch64.c (aarch64_create_target_description): Likewise.
91 * arch/aarch64.h (aarch64_create_target_description): Likewise.
92 * features/Makefile: Add new files.
93 * features/aarch64-pauth.c: New file.
94 * features/aarch64-pauth.xml: New file.
96 2019-03-20 Tom Tromey <tromey@adacore.com>
98 * infrun.c (handle_inferior_event): Rename from
99 handle_inferior_event_1. Create a scoped_value_mark.
100 (handle_inferior_event): Remove.
102 2019-03-19 Tom Tromey <tromey@adacore.com>
104 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
105 * infrun.h (print_stop_event): Add "displays" parameter.
106 * infrun.c (print_stop_event): Add "displays" parameter.
108 2019-03-19 Pedro Alves <palves@redhat.com>
110 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
111 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
112 to -1. Fix TABs vs spaces.
113 (tui_ui_out::tui_ui_out): Don't initialize fields here.
114 * tui/tui-out.h (tui_ui_out) Add intro comments.
115 <m_line, m_start_of_line>: In-class initialize, and add describing
118 2019-03-18 Alan Hayward <alan.hayward@arm.com>
120 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
122 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
124 2019-03-18 Pedro Alves <palves@redhat.com>
125 Eli Zaretskii <eliz@gnu.org>
127 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
128 m_line and m_start_of_line.
130 2019-03-18 Eli Zaretskii <eliz@gnu.org>
132 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
133 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
134 it returns a newline. This fixes a regression in TU mode, whereby
135 the next line is output on the same screen line as the user input.
137 2019-03-18 Tom Tromey <tromey@adacore.com>
139 * minsyms.c (minimal_symbol_reader::install): Remove call to
142 2019-03-18 Pedro Alves <palves@redhat.com>
144 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
146 (apply_style): New, factored out from ...
147 (apply_ansi_escape): ... this. Handle reverse video mode.
148 (tui_set_reverse_mode): New function.
149 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
150 * tui/tui-winsource.c (tui_show_source_line): Use
151 tui_set_reverse_mode instead of setting A_STANDOUT.
152 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
155 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
157 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
160 2019-03-18 Tom Tromey <tromey@adacore.com>
162 * ada-lang.c (empty_array): Add "high" parameter.
163 (ada_evaluate_subexp): Update.
165 2019-03-17 Sergei Trofimovich <siarheit@google.com>
167 * unittests/string_view-selftests.c: Define
168 _initialize_string_view_selftests unconditionally.
170 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
173 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
175 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
178 * windows-nat.c (display_selector): Fix format specifiers.
180 2019-03-17 Eli Zaretskii <eliz@gnu.org>
182 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
183 tui_refill_source_window instead of tui_refresh_win, to update the
184 current execution line. This fixes redisplay of the current line
185 when stepping through the code with "next" or "step".
187 2019-03-16 Eli Zaretskii <eliz@gnu.org>
189 * source-cache.c (source_cache::get_source_lines): Call
190 find_source_lines to initialize s->nlines. This fixes vertical
191 scrolling of TUI source window when the DOWN arrow is pressed.
193 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
195 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
196 linux-thread-db.c (_initialize_thread_db): Likewise.
198 2019-03-16 Eli Zaretskii <eliz@gnu.org>
200 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
201 wclrtoeol in tui_show_source_line". This reverts changes made in
202 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
204 2019-03-15 Tom Tromey <tom@tromey.com>
206 * symtab.h (struct minimal_symbol): Derive from
208 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
209 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
210 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
211 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
212 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
213 (MSYMBOL_SEARCH_NAME): Update.
214 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
215 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
216 * minsyms.c (minimal_symbol_reader::record_full): Update.
218 2019-03-15 Tom Tromey <tom@tromey.com>
220 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
222 2019-03-15 Tom Tromey <tom@tromey.com>
224 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
226 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
228 * minsyms.c (lookup_minimal_symbol_by_pc_section)
229 (build_minimal_symbol_hash_tables)
230 (minimal_symbol_reader::install): Update.
232 2019-03-15 Tom Tromey <tom@tromey.com>
234 * symtab.c (create_demangled_names_hash): Update.
235 (symbol_set_names): Update.
236 * objfiles.h (struct objfile_per_bfd_storage)
237 <demangled_names_hash>: Now an htab_up.
238 * objfiles.c (objfile_per_bfd_storage): Simplify.
240 2019-03-15 Tom Tromey <tom@tromey.com>
242 * objfiles.h (struct objfile_per_bfd_storage): Declare
244 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
246 (get_objfile_bfd_data): Use new. Don't initialize
248 (free_objfile_per_bfd_storage): Remove.
249 (objfile_bfd_data_free, objfile::~objfile): Use delete.
251 2019-03-15 Tom Tromey <tom@tromey.com>
253 * symfile.c (reread_symbols): Update.
254 * objfiles.c (objfile::objfile): Update.
255 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
256 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
258 (minimal_symbol_reader::install): Update.
259 (terminate_minimal_symbol_table): Remove.
260 * jit.c (jit_object_close_impl): Update.
262 2019-03-15 Tom Tromey <tom@tromey.com>
264 * minsyms.c (minimal_symbol_reader::record_full): Remove some
267 2019-03-15 Tom Tromey <tom@tromey.com>
269 * objfiles.h (struct objfile_per_bfd_storage)
270 <demangled_hash_languages>: Now a bitset.
271 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
272 (lookup_minimal_symbol): Update.
274 2019-03-15 Tom Tromey <tom@tromey.com>
276 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
277 Don't return the symbol.
278 * coffread.c (record_minimal_symbol): Use record_full.
280 2019-03-14 Eli Zaretskii <eliz@gnu.org>
282 The MS-Windows port of ncurses fails to switch to a color pair if
283 one or both of the colors are the implicit default colors. This
284 change records the default colors when TUI is initialized, and
285 then specifies them explicitly when a color pair uses the default
286 colors. This allows color styling in TUI mode on MS-Windows.
288 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
290 (tui_initialize_io) [__MINGW32__]: Record the default terminal
291 colors in ncurses_norm_attr.
292 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
293 "none", replace it with the default color recorded in
296 2019-03-14 Tom Tromey <tromey@adacore.com>
298 * source-cache.h (class source_cache) <get_source_lines>: Return
300 * source-cache.c (source_cache::extract_lines): Handle case where
301 first_pos==npos. Return std::string.
302 (source_cache::get_source_lines): Update.
304 2019-03-14 Tom Tromey <tromey@adacore.com>
306 * NEWS: Add item for "style sources" commands.
307 * source-cache.c (source_cache::get_source_lines): Check
309 * cli/cli-style.c (source_styling): New global.
310 (_initialize_cli_style): Add "style sources" commands.
311 (show_style_sources): New function.
312 * cli/cli-style.h (source_styling): Declare.
314 2019-03-14 Pedro Alves <palves@redhat.com>
315 Tom Tromey <tromey@adacore.com>
317 * tui/tui-winsource.h (tui_refill_source_window): Declare.
318 * tui/tui-winsource.c (tui_refill_source_window): New function,
320 (tui_horizontal_source_scroll): ... here. Move some logic.
321 * cli/cli-style.c (set_style_enabled): Notify new observable.
322 * tui/tui-hooks.c (tui_redisplay_source): New function.
323 (tui_attach_detach_observers): Attach or detach
324 tui_redisplay_source.
325 * observable.h (source_styling_changed): New observable.
326 * observable.c: Define source_styling_changed observable.
328 2019-03-13 Tom Tromey <tromey@adacore.com>
330 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
331 (i386_gnu_nat_target::store_registers): Update.
332 * target-debug.h (target_debug_print_std_string): New macro.
333 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
334 * windows-tdep.c (display_one_tib): Update.
335 * tui/tui-stack.c (tui_make_status_line): Update.
336 * top.c (print_inferior_quit_action): Update.
337 * thread.c (thr_try_catch_cmd): Update.
338 (add_thread_with_info): Update.
339 (thread_target_id_str): Update.
340 (thr_try_catch_cmd): Update.
341 (thread_command): Update.
342 (thread_find_command): Update.
343 * record-btrace.c (record_btrace_target::info_record)
344 (record_btrace_resume_thread, record_btrace_target::resume)
345 (record_btrace_cancel_resume, record_btrace_step_thread)
346 (record_btrace_target::wait, record_btrace_target::wait)
347 (record_btrace_target::wait, record_btrace_target::stop): Update.
348 * progspace.c (print_program_space): Update.
349 * process-stratum-target.c
350 (process_stratum_target::thread_address_space): Update.
351 * linux-fork.c (linux_fork_mourn_inferior)
352 (detach_checkpoint_command, info_checkpoints_command)
353 (linux_fork_context): Update.
354 (linux_fork_detach): Update.
355 (class scoped_switch_fork_info): Update.
356 (delete_checkpoint_command): Update.
357 * infrun.c (follow_fork_inferior): Update.
358 (follow_fork_inferior): Update.
359 (proceed_after_vfork_done): Update.
360 (handle_vfork_child_exec_or_exit): Update.
361 (follow_exec): Update.
362 (displaced_step_prepare_throw): Update.
363 (displaced_step_restore): Update.
364 (start_step_over): Update.
366 (clear_proceed_status_thread): Update.
368 (print_target_wait_results): Update.
369 (do_target_wait): Update.
370 (context_switch): Update.
371 (stop_all_threads): Update.
372 (restart_threads): Update.
373 (finish_step_over): Update.
374 (handle_signal_stop): Update.
375 (switch_back_to_stepped_thread): Update.
376 (keep_going_pass_signal): Update.
377 (print_exited_reason): Update.
378 (normal_stop): Update.
379 * inferior.c (inferior_pid_to_str): Change return type.
380 (print_selected_inferior): Update.
381 (add_inferior): Update.
382 (detach_inferior): Update.
383 * dummy-frame.c (fprint_dummy_frames): Update.
384 * dcache.c (dcache_info_1): Update.
385 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
386 (btrace_fetch, btrace_clear): Update.
387 * linux-tdep.c (linux_core_pid_to_str): Change return type.
388 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
390 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
391 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
392 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
393 * gdbarch.c, gdbarch.h: Rebuild.
394 * gdbarch.sh (core_pid_to_str): Change return type.
395 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
397 (windows_nat_target::pid_to_str): Change return type.
398 (windows_delete_thread): Update.
399 (windows_nat_target::attach): Update.
400 (windows_nat_target::files_info): Update.
401 * target-delegates.c: Rebuild.
402 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
404 (sol_thread_target::pid_to_str): Change return type.
405 * remote.c (class remote_target) <pid_to_str>: Change return
407 (remote_target::pid_to_str): Change return type.
408 (extended_remote_target::attach, remote_target::remote_stop_ns)
409 (remote_target::remote_notif_remove_queued_reply)
410 (remote_target::push_stop_reply, remote_target::disable_btrace):
412 (extended_remote_target::attach): Update.
413 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
415 (gdbsim_target::pid_to_str): Change return type.
416 * ravenscar-thread.c (struct ravenscar_thread_target)
417 <pid_to_str>: Change return type.
418 (ravenscar_thread_target::pid_to_str): Change return type.
419 * procfs.c (class procfs_target) <pid_to_str>: Change return
421 (procfs_target::pid_to_str): Change return type.
422 (procfs_target::attach): Update.
423 (procfs_target::detach): Update.
424 (procfs_target::fetch_registers): Update.
425 (procfs_target::store_registers): Update.
426 (procfs_target::wait): Update.
427 (procfs_target::files_info): Update.
428 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
429 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
431 (nto_procfs_target::pid_to_str): Change return type.
432 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
433 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
435 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
437 (attach_proc_task_lwp_callback, get_detach_signal)
438 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
439 (linux_nat_target::resume, wait_lwp, stop_callback)
440 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
441 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
442 (linux_nat_wait_1, resume_stopped_resumed_lwps)
443 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
444 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
446 (inf_ptrace_target::attach): Update.
447 (inf_ptrace_target::files_info): Update.
448 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
450 (go32_nat_target::pid_to_str): Change return type.
451 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
452 (gnu_nat_target::wait): Update.
453 (gnu_nat_target::wait): Update.
454 (gnu_nat_target::resume): Update.
455 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
456 (fbsd_nat_target::wait): Update.
457 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
459 (darwin_nat_target::attach): Update.
460 * corelow.c (class core_target) <pid_to_str>: Change return type.
461 (core_target::pid_to_str): Change return type.
462 * target.c (normal_pid_to_str): Change return type.
463 (default_pid_to_str): Likewise.
464 (target_pid_to_str): Change return type.
465 (target_translate_tls_address): Update.
466 (target_announce_detach): Update.
467 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
469 (bsd_uthread_target::pid_to_str): Change return type.
470 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
472 (bsd_kvm_target::pid_to_str): Change return type.
473 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
475 (aix_thread_target::pid_to_str): Change return type.
476 * target.h (struct target_ops) <pid_to_str>: Change return type.
477 (target_pid_to_str, normal_pid_to_str): Likewise.
478 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
480 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
482 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
484 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
486 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
488 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
491 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
493 * NEWS: Mention that the new default MI version is 3. Mention
494 changes to the output of commands and events that deal with
495 multi-location breakpoints.
496 * breakpoint.c: Include "mi/mi-out.h".
497 (print_one_breakpoint): Change output syntax if using MI version
499 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
501 (mi_multi_location_breakpoint_output_fixed): New.
502 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
503 (mi_cmd_fix_multi_location_breakpoint_output): New.
504 (mi_multi_location_breakpoint_output_fixed): New.
505 * mi/mi-cmds.c (mi_cmds): Register command
506 -fix-multi-location-breakpoint-output.
507 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
510 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
512 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
513 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
514 instantiate mi_ui_out based on interpreter name.
515 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
516 * mi/mi-main.c (mi_load_progress): Likewise.
518 2019-03-12 John Baldwin <jhb@FreeBSD.org>
520 * NEWS: Combine separate "New targets" sections for 8.3.
522 2019-03-12 John Baldwin <jhb@FreeBSD.org>
524 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
525 (ppcfbsd_init_abi): Install gdbarch
526 "fetch_tls_load_module_address" and "get_thread_local_address"
529 2019-03-12 John Baldwin <jhb@FreeBSD.org>
531 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
532 (riscv_fbsd_init_abi): Install gdbarch
533 "fetch_tls_load_module_address" and "get_thread_local_address"
536 2019-03-12 John Baldwin <jhb@FreeBSD.org>
538 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
539 (i386fbsd_init_abi): Install gdbarch
540 "fetch_tls_load_module_address" and "get_thread_local_address"
543 2019-03-12 John Baldwin <jhb@FreeBSD.org>
545 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
546 (amd64fbsd_init_abi): Install gdbarch
547 "fetch_tls_load_module_address" and "get_thread_local_address"
550 2019-03-12 John Baldwin <jhb@FreeBSD.org>
552 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
553 (struct fbsd_pspace_data): New type.
554 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
555 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
556 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
557 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
558 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
560 2019-03-12 John Baldwin <jhb@FreeBSD.org>
562 * gdbtypes.c (lookup_struct_elt): New function.
563 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
564 * gdbtypes.h (struct struct_elt): New type.
565 (lookup_struct_elt): New prototype.
567 2019-03-12 John Baldwin <jhb@FreeBSD.org>
569 * gdbtypes.c (lookup_struct_elt_type): Update comment and
570 remove disabled code block.
572 2019-03-12 John Baldwin <jhb@FreeBSD.org>
574 * gdbarch.sh (get_thread_local_address): New method.
575 * gdbarch.h, gdbarch.c: Regenerate.
576 * target.c (target_translate_tls_address): Use
577 gdbarch_get_thread_local_address if present instead of
578 target::get_thread_local_address.
580 2019-03-12 John Baldwin <jhb@FreeBSD.org>
582 * target.h (target::get_thread_local_address): Update comment.
584 2019-03-12 John Baldwin <jhb@FreeBSD.org>
586 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
587 objfile->separate_debug_objfile_backlink if not NULL.
589 2019-03-12 John Baldwin <jhb@FreeBSD.org>
591 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
592 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
593 (amd64bsd_store_inferior_registers): Likewise.
594 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
595 Enable segment base registers.
596 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
597 PT_GETFSBASE and PT_GETGSBASE.
598 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
600 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
601 segment base registers.
602 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
604 2019-03-12 John Baldwin <jhb@FreeBSD.org>
606 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
607 Update calls to i386_target_description to add 'segments'
609 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
610 add segment base registers.
611 * arch/i386.c (i386_create_target_description): Add 'segments'
612 parameter to enable segment base registers.
613 * arch/i386.h (i386_create_target_description): Likewise.
614 * features/i386/32bit-segments.xml: New file.
615 * features/i386/32bit-segments.c: Generate.
616 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
617 call to i386_target_description to add 'segments' parameter.
618 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
619 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
620 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
621 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
622 if feature is present.
623 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
624 Add 'segments' parameter to call to i386_target_description.
625 (i386_target_description): Add 'segments' parameter to enable
626 segment base registers.
627 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
628 to call to i386_target_description.
629 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
630 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
631 Define I386_NUM_REGS.
632 (i386_target_description): Add 'segments' parameter to enable
633 segment base registers.
635 2019-03-12 Eli Zaretskii <eliz@gnu.org>
638 * source-cache.c: #undef open and close, to avoid unresolved
639 externals during linking.
641 2019-03-12 Tom Tromey <tromey@adacore.com>
643 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
644 const. Add initializers.
645 (_initialize_remote): Don't initialize ptid globals.
647 2019-03-12 Pedro Alves <palves@redhat.com>
649 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
651 2019-03-12 Pedro Alves <palves@redhat.com>
653 * cp-name-parser.y (main): Remove unused 'len' variable.
655 2019-03-12 Tom Tromey <tromey@adacore.com>
657 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
658 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
660 2019-03-12 Tom Tromey <tromey@adacore.com>
662 * linux-nat.c (iterate_over_lwps): Update.
663 (stop_callback): Remove parameter.
664 (stop_wait_callback, detach_callback, resume_set_callback)
665 (select_singlestep_lwp_callback, set_ignore_sigint)
666 (status_callback, resumed_callback, resume_clear_callback)
667 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
669 (linux_nat_target::detach, linux_nat_target::resume)
670 (linux_stop_and_wait_all_lwps, select_event_lwp)
671 (linux_nat_filter_event, linux_nat_wait_1)
672 (linux_nat_target::kill, linux_nat_target::stop)
673 (linux_nat_target::stop): Update.
674 (linux_nat_resume_callback): Change type.
675 (resume_stopped_resumed_lwps, count_events_callback)
676 (select_event_lwp_callback): Likewise.
677 (linux_stop_lwp, linux_nat_stop_lwp): Update.
678 * arm-linux-nat.c (struct update_registers_data): Remove.
679 (update_registers_callback): Change type.
680 (arm_linux_insert_hw_breakpoint1): Update.
681 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
683 (x86_linux_dr_set_addr): Update.
684 (x86_linux_dr_set_control): Update.
685 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
686 (iterate_over_lwps): Use gdb::function_view.
687 * nat/aarch64-linux-hw-point.c (struct
688 aarch64_dr_update_callback_param): Remove.
689 (debug_reg_change_callback): Change type.
690 (aarch64_notify_debug_reg_change): Update.
691 * s390-linux-nat.c (s390_refresh_per_info): Update.
693 2019-03-11 Tom Tromey <tromey@adacore.com>
695 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
696 redundant assignment to "this_cu".
698 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
700 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
702 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
704 * gdbtypes.c (rank_one_type_parm_set): New function extracted
706 (rank_one_type): ... this.
708 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
710 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
712 (rank_one_type): ... this.
714 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
716 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
718 (rank_one_type): ... this.
720 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
722 * gdbtypes.c (rank_one_type_parm_float): New function extracted
724 (rank_one_type): ... this.
726 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
728 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
730 (rank_one_type): ... this.
732 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
734 * gdbtypes.c (rank_one_type_parm_range): New function extracted
736 (rank_one_type): ... this.
738 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
740 * gdbtypes.c (rank_one_type_parm_char): New function extracted
742 (rank_one_type): ... this.
744 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
746 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
748 (rank_one_type): ... this.
750 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
752 * gdbtypes.c (rank_one_type_parm_int): New function extracted
754 (rank_one_type): ... this.
756 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
758 * gdbtypes.c (rank_one_type_parm_func): New function extracted
760 (rank_one_type): ... this.
762 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
764 * gdbtypes.c (rank_one_type_parm_array): New function extracted
766 (rank_one_type): ... this.
768 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
770 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
772 (rank_one_type): ... this.
774 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
776 * inferior.c (initialize_inferiors): Ensure 'help set/show print
777 inferior-events' shows the example events.
779 2019-03-08 Eli Zaretskii <eliz@gnu.org>
781 Support styling on native MS-Windows console
784 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
785 on MS-Windows if $TERM is not defined.
787 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
789 * posix-hdep.c (gdb_console_fputs):
790 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
792 * ui-file.h (gdb_console_fputs): Add prototype.
794 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
795 back to fputs only if the former returns zero.
797 2019-03-07 Tom Tromey <tom@tromey.com>
799 * symmisc.c (print_symbol_bcache_statistics): Update.
800 (print_objfile_statistics): Update.
801 * symfile.c (allocate_symtab): Update.
802 * stabsread.c: Don't include bcache.h.
803 * psymtab.h (struct psymbol_bcache): Don't declare.
804 (class psymtab_storage) <psymbol_cache>: Now a bcache.
805 (psymbol_bcache_init, psymbol_bcache_free)
806 (psymbol_bcache_get_bcache): Don't declare.
807 * psymtab.c (struct psymbol_bcache): Remove.
808 (psymtab_storage::psymtab_storage): Update.
809 (psymtab_storage::~psymtab_storage): Update.
810 (psymbol_bcache_init, psymbol_bcache_free)
811 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
812 (add_psymbol_to_bcache): Update.
813 (allocate_psymtab): Update.
814 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
815 macro_cache>: No longer pointers.
816 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
817 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
818 * macrotab.c (macro_bcache): Update.
819 * macroexp.c: Don't include bcache.h.
820 * gdbtypes.c (check_types_worklist): Update.
821 (types_deeply_equal): Remove TRY/CATCH. Update.
822 * elfread.c (elf_symtab_read): Update.
823 * dwarf2read.c: Don't include bcache.h.
824 * buildsym.c (buildsym_compunit::get_macro_table): Update.
825 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
826 (print_bcache_statistics, bcache_memory_used): Don't declare.
827 (struct bcache): Move from bcache.c. Add constructor, destructor,
828 methods. Rename all data members.
829 * bcache.c (struct bcache): Move to bcache.h.
830 (bcache::expand_hash_table): Rename from expand_hash_table.
832 (bcache::insert): Rename from bcache_full.
833 (bcache::compare): Rename from bcache_compare.
834 (bcache_xmalloc): Remove.
835 (bcache::~bcache): Rename from bcache_xfree.
836 (bcache::print_statistics): Rename from print_bcache_statistics.
837 (bcache::memory_used): Rename from bcache_memory_used.
839 2019-03-07 Pedro Alves <palves@redhat.com>
841 * infrun.c (normal_stop): Also check for
842 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
844 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
846 * f-lang.c (value_from_host_double): Moved to...
847 * value.c (value_from_host_double): ...here.
848 * value.h (value_from_host_double): Declare.
849 * guile/scm-math.c (vlscm_convert_typed_number): Use
850 value_from_host_double.
851 (vlscm_convert_number): Likewise.
852 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
853 * python/py-value.c (convert_value_from_python): Likewise.
855 2019-03-06 Tom Tromey <tom@tromey.com>
857 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
859 2019-03-06 Tom Tromey <tom@tromey.com>
861 * utils.h (free_current_contents): Don't declare.
862 * utils.c (free_current_contents): Remove.
864 2019-03-06 Tom Tromey <tom@tromey.com>
866 * top.c (quit_force): Update.
867 * main.c (captured_command_loop): Update.
868 * common/new-op.c (operator new): Update.
869 * common/common-exceptions.c (struct catcher)
870 <save_cleanup_chain>: Remove member.
871 (exceptions_state_mc_init): Update.
872 (exception_try_scope_entry): Return nullptr.
873 (exception_try_scope_exit, exception_rethrow)
874 (throw_exception_sjlj, throw_exception_cxx): Update.
875 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
876 (all_cleanups, do_cleanups, discard_cleanups)
877 (discard_final_cleanups, save_cleanups, save_final_cleanups)
878 (restore_cleanups, restore_final_cleanups): Don't declare.
879 (do_final_cleanups): Remove parameter.
880 * common/cleanups.c (cleanup_chain, make_cleanup)
881 (make_cleanup_dtor, all_cleanups, do_cleanups)
882 (discard_my_cleanups, discard_cleanups)
883 (discard_final_cleanups, save_my_cleanups, save_cleanups)
884 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
885 (null_cleanup): Remove.
886 (do_final_cleanups): Remove parameter.
888 2019-03-06 Tom Tromey <tom@tromey.com>
890 * remote.c (remote_target::remote_parse_stop_reply): Use
893 2019-03-06 Tom Tromey <tom@tromey.com>
895 * stabsread.c (struct stabs_field_info): Rename from field_info.
896 <list, fnlist>: Add initializers.
897 <obstack>: New member.
898 (read_member_functions, read_struct_fields, read_baseclasses):
899 Allocate on obstack. Don't use cleanups.
900 (read_one_struct_field, read_member_functions, read_struct_fields)
901 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
902 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
903 (read_struct_type): Update.
905 2019-03-06 Tom Tromey <tom@tromey.com>
907 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
908 * common/filestuff.h (make_cleanup_close): Don't declare.
909 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
912 2019-03-06 Tom Tromey <tom@tromey.com>
914 * solib-aix.c: Use make_scope_exit.
916 2019-03-06 Tom Tromey <tom@tromey.com>
918 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
921 2019-03-06 Tom Tromey <tom@tromey.com>
923 * solib-svr4.c (disable_probes_interface): Remove parameter.
924 (svr4_handle_solib_event): Use make_scope_exit.
926 2019-03-06 Tom Tromey <tom@tromey.com>
928 * remote.c (struct stop_reply_deleter): Remove.
929 (stop_reply_up): Update.
930 (struct stop_reply): Derive from notif_event. Don't typedef.
931 <regcache>: Now a std::vector.
932 (stop_reply_xfree): Remove.
933 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
934 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
935 (remote_target::discard_pending_stop_replies): Use delete.
936 (remote_target::remote_parse_stop_reply): Update.
937 (remote_target::process_stop_reply): Update.
938 * remote-notif.h (struct notif_event): Add virtual destructor.
940 (struct notif_client) <alloc_event>: Return a unique_ptr.
941 (notif_event_xfree): Don't declare.
942 (notif_event_up): New typedef.
943 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
944 (notif_event_xfree, do_notif_event_xfree): Remove.
945 (remote_notif_state_xfree): Update.
947 2019-03-06 Tom Tromey <tom@tromey.com>
949 * infrun.c (displaced_step_clear_cleanup): Now a
950 forward_scope_exit type.
951 (displaced_step_prepare_throw): Update.
952 (displaced_step_fixup): Update.
954 2019-03-06 Tom Tromey <tom@tromey.com>
956 * inferior.h (class inferior): Update comment.
957 * gdbthread.h (class thread_info): Update comment.
959 2019-03-06 Joel Brobecker <brobecker@adacore.com>
960 Tom Tromey <tom@tromey.com>
962 * stabsread.h (struct stab_section_list): Remove.
963 (coffstab_build_psymtabs): Update.
964 * dbxread.c (symbuf_sections): Now a std::vector.
965 (sect_idx): New global.
966 (fill_symbuf): Update.
967 (coffstab_build_psymtabs): Change type of stabsects parameter.
969 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
971 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
972 (coff_locate_sections): Update.
973 (coff_symfile_read): Remove cleanups. Update.
974 (init_stringtab): Add storage parameter.
975 (free_stringtab, free_stringtab_cleanup): Remove.
976 (init_lineno): Add storage parameter.
977 (free_linetab, free_linetab_cleanup): Remove.
979 2019-03-06 Pedro Alves <palves@redhat.com>
981 * linux-fork.c (fork_info::clobber_regs): Delete.
982 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
983 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
985 (scoped_switch_fork_info::scoped_switch_fork_info)
986 (checkpoint_command, linux_fork_context): Adjust
987 fork_save_infrun_state calls.
989 2019-03-06 Pedro Alves <palves@redhat.com>
991 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
992 (inf_has_multiple_threads): Return 'bool' and rewrite using
993 inferior_info::threads().
995 2019-03-06 Pedro Alves <palves@redhat.com>
997 * linux-fork.c: Include <list>.
998 (fork_list): Now a std::list instance.
999 (fork_info): Add ctor, dtor, and in-class initialize all fields.
1000 (forks_exist_p, find_last_fork): Adjust.
1004 (free_fork): Delete, folded into fork_info::~fork_info().
1005 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
1007 (init_fork_list): Delete.
1008 (linux_fork_killall, linux_fork_mourn_inferior)
1009 (linux_fork_detach, info_checkpoints_command): Adjust.
1010 (_initialize_linux_fork): No longer call init_fork_list.
1012 2019-03-06 Pedro Alves <palves@redhat.com>
1014 * linux-fork.c (new_fork): New, split out of ...
1015 (add_fork): ... this. Return void. Move "first fork" special
1016 case from here, to ...
1017 (checkpoint_command): ... here.
1018 * linux-linux.h (add_fork): Return void.
1020 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1022 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
1024 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1025 Chris January <chris.january@arm.com>
1026 David Lecomber <david.lecomber@arm.com>
1028 * f-exp.y: New token, UNOP_INTRINSIC.
1029 (exp): New pattern using UNOP_INTRINSIC token.
1030 (f77_keywords): Add 'abs' keyword.
1031 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
1032 (value_from_host_double): New function.
1033 (evaluate_subexp_f): Support UNOP_ABS.
1035 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1037 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
1040 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1042 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
1043 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
1044 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
1046 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1048 * f-exp.y (convert_to_kind_type): Handle more type kinds.
1050 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1051 Chris January <chris.january@arm.com>
1053 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
1054 * f-exp.y: Define 'KIND' token.
1055 (exp): New pattern for KIND expressions.
1056 (ptype): Handle types with a kind extension.
1057 (direct_abs_decl): Extend to spot kind extensions.
1058 (f77_keywords): Add 'kind' to the list.
1059 (push_kind_type): New function.
1060 (convert_to_kind_type): New function.
1061 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
1062 * parse.c (operator_length_standard): Likewise.
1063 * parser-defs.h (enum type_pieces): Add tp_kind.
1064 * std-operator.def: Add UNOP_KIND.
1066 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1068 * f-exp.y (f_parse): Set yydebug.
1070 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1072 * f-lang.c (evaluate_subexp_f): New function.
1073 (exp_descriptor_f): New global.
1074 (f_language_defn): Use exp_descriptor_f instead of
1075 exp_descriptor_standard.
1077 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1079 * f-exp.y (struct token): Add comments.
1080 (dot_ops): Remove uppercase versions and the end marker.
1081 (f77_keywords): Likewise.
1082 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
1083 entries in the dot_ops array are case insensitive, and use
1084 strncasecmp to compare strings. Also some whitespace cleanup in
1085 this area. Similar for the f77_keywords array, except entries in
1086 this list might be case sensitive.
1088 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1090 * f-exp.y (struct f77_boolean_val): Add comments.
1091 (boolean_values): Remove uppercase versions, and end marker.
1092 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
1093 and use strncasecmp to achieve case insensitivity. Additionally,
1094 perform whitespace cleanup around this code.
1096 2019-03-06 Tom Tromey <tromey@adacore.com>
1098 * remote-sim.c (gdbsim_target_open): Use result of
1101 2019-03-06 Richard Bunt <richard.bunt@arm.com>
1102 Dirk Schubert <dirk.schubert@arm.com>
1103 Chris January <chris.january@arm.com>
1105 * eval.c (evaluate_subexp_standard): Call Fortran argument
1107 * f-lang.c (struct value): A value which can be passed into a
1108 Fortran function call.
1109 (fortran_argument_convert): Wrap Fortran arguments in a pointer
1111 (struct type): Value ready for a Fortran function call.
1112 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
1114 * f-lang.h (fortran_argument_convert): Declaration.
1115 (fortran_preserve_arg_pointer): Declaration.
1116 * infcall.c (value_arg_coerce): Call Fortran argument logic.
1118 2019-03-05 Tom Tromey <tromey@adacore.com>
1120 * python/py-prettyprint.c (print_string_repr): Remove #if.
1121 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
1123 2019-03-05 Tom Tromey <tromey@adacore.com>
1125 * target.c (the_dummy_target): Move later. Change type to
1127 (initialize_targets): Don't initialize the_dummy_target.
1129 2019-03-05 Tom Tromey <tromey@adacore.com>
1131 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
1132 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
1134 2019-03-05 Tom Tromey <tromey@adacore.com>
1136 * windows-nat.c (windows_nat_target::attach)
1137 (windows_nat_target::detach): Don't call gdb_flush.
1138 * valprint.c (generic_val_print, val_print, val_print_string):
1139 Don't call gdb_flush.
1140 * utils.c (defaulted_query): Don't call gdb_flush.
1141 * typeprint.c (print_type_scalar): Don't call gdb_flush.
1142 * target.c (target_announce_detach): Don't call gdb_flush.
1143 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
1144 * remote.c (extended_remote_target::attach): Don't call
1146 * procfs.c (procfs_target::detach): Don't call gdb_flush.
1147 * printcmd.c (do_examine): Don't call gdb_flush.
1148 (info_display_command): Don't call gdb_flush.
1149 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
1150 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
1151 * memattr.c (info_mem_command): Don't call gdb_flush.
1152 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
1153 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
1154 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
1155 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
1156 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
1157 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
1158 (gnu_nat_target::detach): Don't call gdb_flush.
1159 * f-valprint.c (f_val_print): Don't call gdb_flush.
1160 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
1161 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
1162 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
1164 * c-valprint.c (c_val_print): Don't call gdb_flush.
1165 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
1167 2019-03-05 Tom Tromey <tromey@adacore.com>
1169 * varobj.c (update_dynamic_varobj_children): Update.
1170 (install_default_visualizer): Use reset, not release.
1171 * value.c (set_internalvar): Update.
1172 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
1173 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
1174 ATTRIBUTE_UNUSED_RESULT.
1176 2019-03-05 Tom Tromey <tromey@adacore.com>
1178 * remote.c (class scoped_remote_fd) <release>: Add
1179 ATTRIBUTE_UNUSED_RESULT.
1181 2019-03-05 Tom Tromey <tromey@adacore.com>
1183 * macroexp.c (struct macro_buffer) <release>: Add
1184 ATTRIBUTE_UNUSED_RESULT.
1186 2019-03-05 Tom Tromey <tromey@adacore.com>
1188 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
1189 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
1190 ATTRIBUTE_UNUSED_RESULT.
1192 2019-03-05 Tom Tromey <tromey@adacore.com>
1194 * common/scoped_fd.h (class scoped_fd) <release>: Add
1195 ATTRIBUTE_UNUSED_RESULT.
1197 2019-03-05 Tom Tromey <tromey@adacore.com>
1199 * parser-defs.h (struct parser_state) <release>: Add
1200 ATTRIBUTE_UNUSED_RESULT.
1202 2019-03-05 Tom Tromey <tromey@adacore.com>
1204 * utils.h (class gdb_argv) <release>: Add
1205 ATTRIBUTE_UNUSED_RESULT.
1206 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
1208 2019-03-02 Eli Zaretskii <eliz@gnu.org>
1210 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
1211 for-loop range, to avoid compiler warnings.
1213 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
1214 avoid compiler warnings about unused variables.
1216 * NEWS: Mention end of support for native debugging on MS-Windows
1220 * common/netstuff.c:
1221 * gdbserver/gdbreplay.c
1222 * gdbserver/remote-utils.c:
1224 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
1225 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
1226 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
1227 'getaddrinfo' and 'freeaddrinfo' were not available before
1228 Windows XP, and mingw.org's MinGW headers by default define
1229 _WIN32_WINNT to 0x500.
1231 2019-03-01 Gary Benson <gbenson@redhat.com>
1233 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
1235 2019-02-28 Brian Vandenberg <phantall@gmail.com>
1236 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1239 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
1240 set_sigint_trap, clear_sigint_trap.
1242 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1244 * target.c (target_detach): Clear the regcache and the
1247 2019-02-27 Pedro Alves <palves@redhat.com>
1249 * utils.c (set_screen_size): When we cap the height/width sizes,
1250 tweak the corresponding command variable to show "unlimited":
1252 2019-02-27 Saagar Jha <saagar@saagarjha.com>
1253 Pedro Alves <palves@redhat.com>
1255 * utils.c (set_screen_size): Reduce "infinite" rows and columns
1256 before calling rl_set_screen_size.
1258 2019-02-27 Tom Tromey <tromey@adacore.com>
1260 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
1262 * python/py-value.c: Remove Python 2.4 workaround.
1263 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
1265 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
1266 Python 2.4 workaround.
1267 * python/python-internal.h: Remove Python 2.4 comment.
1268 (Py_ssize_t): Don't define.
1269 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
1270 (gdb_Py_DECREF): Remove Python 2.4 workaround.
1271 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
1272 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
1273 * python/python.c (do_start_initialization): Remove Python 2.4
1275 * python/py-prettyprint.c (class dummy_python_frame): Remove.
1276 (print_children): Remove Python 2.4 workaround.
1277 * python/py-inferior.c (buffer_procs): Remove Python 2.4
1279 (CHARBUFFERPROC_NAME): Remove.
1280 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
1281 Python 2.4 workaround.
1283 2019-02-27 Kevin Buettner <kevinb@redhat.com>
1285 * NEWS: Note minimum Python version.
1287 2019-02-27 Kevin Buettner <kevinb@redhat.com>
1289 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
1290 code from these functions. Remove corresponding ifdefs. Use
1291 Py_buffer_up instead of explicit calls to PyBuffer_Release.
1292 Remove gotos and target of gotos.
1293 (infpy_search_memory): Likewise.
1295 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1297 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
1298 (hppa_gdbarch_init): Don't register deleted functions with
1301 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1303 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
1304 (h8300_unwind_sp): Delete.
1305 (h8300_dummy_id): Delete.
1306 (h8300_gdbarch_init): Don't register deleted functions with
1309 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1311 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
1312 (ft32_unwind_pc): Delete.
1313 (ft32_unwind_sp): Delete.
1314 (ft32_gdbarch_init): Don't register deleted functions with
1317 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1319 * gdb/frv-tdep.c (frv_dummy_id): Delete.
1320 (frv_unwind_pc): Delete.
1321 (frv_unwind_sp): Delete.
1322 (frv_gdbarch_init): Don't register deleted functions with
1325 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1327 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
1328 (riscv_unwind_pc): Delete.
1329 (riscv_unwind_sp): Delete.
1330 (riscv_gdbarch_init): Don't register deleted functions with
1333 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1335 * gdb/csky-tdep.c (csky_dummy_id): Delete.
1336 (csky_unwind_pc): Delete.
1337 (csky_unwind_sp): Delete.
1338 (csky_gdbarch_init): Don't register deleted functions with
1341 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1343 * gdb/cris-tdep.c (cris_dummy_id): Delete.
1344 (cris_unwind_pc): Delete.
1345 (cris_unwind_sp): Delete.
1346 (cris_gdbarch_init): Don't register deleted functions with
1349 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1351 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
1352 (bfin_unwind_pc): Delete.
1353 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
1355 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1357 * gdb/arm-tdep.c (arm_dummy_id): Delete.
1358 (arm_unwind_pc): Delete.
1359 (arm_unwind_sp): Delete.
1360 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
1362 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1364 * gdb/arc-tdep.c (arc_dummy_id): Delete.
1365 (arc_unwind_pc): Delete.
1366 (arc_unwind_sp): Delete.
1367 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
1369 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1371 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
1372 (alpha_unwind_pc): Delete.
1373 (alpha_gdbarch_init): Don't register deleted functions with
1376 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1378 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
1379 (aarch64_unwind_pc): Delete.
1380 (aarch64_unwind_sp): Delete.
1381 (aarch64_gdbarch_init): Don't register deleted functions with
1384 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1386 * gdbtypes.c (type_align): Don't consider static members when
1387 computing structure alignment.
1389 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1391 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
1392 return 0 for other types.
1393 * arch-utils.c (default_type_align): Always return 0.
1394 * gdbarch.h: Regenerate.
1395 * gdbarch.sh (type_align): Extend comment.
1396 * gdbtypes.c (type_align): Add additional comments, always call
1397 gdbarch_type_align before applying the default rules.
1398 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
1399 generic code will then apply a suitable default.
1400 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
1401 types, return 0 for other types.
1403 2019-02-27 Joel Brobecker <brobecker@adacore.com>
1405 * NEWS: Create a new section for the next release branch.
1406 Rename the section of the current branch, now that it has
1409 2019-02-27 Joel Brobecker <brobecker@adacore.com>
1411 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
1412 * version.in: Bump version to 8.3.50.DATE-git.
1414 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
1416 * aix-thread.c (ptid_cmp): Remove unused variable.
1417 (get_signaled_thread): Likewise.
1418 (store_regs_user_thread): Likewise.
1419 (store_regs_kernel_thread): Likewise.
1420 (fetch_regs_kernel_thread): Remove shadowed variable.
1422 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
1424 * features/riscv/32bit-cpu.xml: Add register numbers.
1425 * features/riscv/32bit-fpu.c: Regenerate.
1426 * features/riscv/32bit-fpu.xml: Add register numbers.
1427 * features/riscv/64bit-cpu.xml: Add register numbers.
1428 * features/riscv/64bit-fpu.c: Regenerate.
1429 * features/riscv/64bit-fpu.xml: Add register numbers.
1431 2019-02-26 Kevin Buettner <kevinb@redhat.com>
1433 * NEWS: Mention two argument form of gdb.Value constructor.
1434 * python/py-value.c (convert_buffer_and_type_to_value): New
1436 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
1437 Add support for handling an optional second argument. Call
1438 convert_buffer_and_type_to_value as appropriate.
1439 * python/python-internal.h (Py_buffer_deleter): New struct.
1440 (Py_buffer_up): New typedef.
1442 2019-02-25 John Baldwin <jhb@FreeBSD.org>
1444 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
1445 instead of releasing ownership.
1447 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
1449 * dwarf2read.c (open_and_init_dwp_file): Call
1450 elf_numsections instead of bfd_count_sections to initialize
1451 dwp_file->num_sections.
1453 2019-02-25 Tom Tromey <tromey@adacore.com>
1455 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
1457 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
1459 * gcore.in: Add '--readnever' option when invoking GDB.
1461 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1463 * MAINTAINERS: Update my email address.
1465 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1467 * build-id.c (build_id_to_debug_bfd_1): New function.
1468 (build_id_to_debug_bfd): Look for separate debug file in
1471 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
1473 * gdbarch.sh: Update the copyright year range that is placed into
1476 2019-02-22 Keith Seitz <keiths@redhat.com>
1479 * linespec.c (create_sals_line_offset): Search for the default
1480 symtab's filename instead of its fullname.
1482 2019-02-21 Alan Hayward <alan.hayward@arm.com>
1484 * NEWS: Update style defaults.
1486 2019-02-21 Alan Hayward <alan.hayward@arm.com>
1488 * main.c (captured_main_1): Disable styling in batch mode.
1490 2019-02-20 Tom Tromey <tom@tromey.com>
1492 * symtab.c (symtab_symbol_info): Fix typos.
1494 2019-02-20 Tom Tromey <tromey@adacore.com>
1496 * findcmd.c (_initialize_mem_search): Use upper case for
1497 metasyntactic variables.
1499 2019-02-20 Alan Hayward <alan.hayward@arm.com>
1501 * aarch64-tdep.c (aarch64_add_reggroups): New function.
1502 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
1504 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
1506 * top.h (source_file_name): Change to std::string.
1507 * top.c (source_file_name): Likewise.
1508 (command_line_input): Adjust.
1509 * cli/cli-script.c (script_from_file): Adjust.
1511 2019-02-19 Tom Tromey <tromey@adacore.com>
1513 * ravenscar-thread.c
1514 (ravenscar_thread_target::update_thread_list): Don't call
1515 ada_build_task_list.
1516 * ada-lang.h (ada_build_task_list): Don't declare.
1517 * ada-tasks.c (struct ada_tasks_inferior_data)
1518 <task_list_valid_p>: Now bool.
1519 (read_known_tasks, ada_task_list_changed)
1520 (ada_tasks_invalidate_inferior_data): Update.
1521 (read_known_tasks_array): Return bool.
1522 (read_known_tasks_list): Likewise.
1523 (read_known_tasks): Return void.
1524 (ada_build_task_list): Now static.
1526 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1528 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
1529 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
1531 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1533 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
1534 variant for ada_tasks_pspace_data_handle and
1535 ada_tasks_inferior_data_handle.
1536 (ada_tasks_pspace_data_cleanup): New function.
1537 (ada_tasks_inferior_data_cleanup): New function.
1539 2019-02-17 Tom Tromey <tom@tromey.com>
1541 * macrotab.h (macro_source_fullname): Return a std::string.
1542 * macrotab.c (macro_include, check_for_redefinition)
1543 (macro_undef, macro_lookup_definition, foreach_macro)
1544 (foreach_macro_in_scope): Update.
1545 (macro_source_fullname): Return a std::string.
1546 * macrocmd.c (show_pp_source_pos): Update.
1548 2019-02-17 Tom Tromey <tom@tromey.com>
1550 * macrocmd.c (show_pp_source_pos): Style the file names.
1552 2019-02-17 Tom Tromey <tom@tromey.com>
1555 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
1557 2019-02-17 Tom Tromey <tom@tromey.com>
1559 * ada-lang.c (user_select_syms): Use filtered printing.
1560 * utils.c (wrap_style): New global.
1561 (desired_style): Remove.
1562 (emit_style_escape): Add stream parameter.
1563 (set_output_style, reset_terminal_style, prompt_for_continue):
1565 (flush_wrap_buffer): Only flush gdb_stdout.
1566 (wrap_here): Set wrap_style.
1567 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
1568 treat escape sequences as a character. Change when wrap buffer is
1570 (fputs_styled): Do not set the output style when the default is
1572 * ui-style.h (struct ui_file_style) <is_default>: New method.
1573 * source.c (print_source_lines_base): Emit escape sequences in one
1576 2019-02-17 Joel Brobecker <brobecker@adacore.com>
1578 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
1579 integers and enumeration types.
1581 2019-02-17 Joel Brobecker <brobecker@adacore.com>
1583 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
1584 instead of lookup_symbol_in_language
1585 (do_exact_match): New function.
1586 (ada_get_symbol_name_matcher): Return do_exact_match when
1587 doing a verbatim match.
1589 2019-02-15 Tom Tromey <tromey@adacore.com>
1591 * ravenscar-thread.c (ravenscar_thread_target::resume)
1592 (ravenscar_thread_target::wait): Special case wildcard requests.
1594 2019-02-15 Tom Tromey <tromey@adacore.com>
1596 * ravenscar-thread.c (base_ptid): Remove.
1597 (struct ravenscar_thread_target) <close>: New method.
1598 <m_base_ptid>: New member.
1599 <update_inferior_ptid, active_task, task_is_currently_active,
1600 runtime_initialized>: Declare methods.
1601 <ravenscar_thread_target>: Add constructor.
1602 (ravenscar_thread_target::task_is_currently_active)
1603 (ravenscar_thread_target::update_inferior_ptid)
1604 (ravenscar_runtime_initialized): Rename. Now methods.
1605 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
1606 (ravenscar_thread_target::update_thread_list): Update.
1607 (ravenscar_thread_target::active_task): Now method.
1608 (ravenscar_thread_target::store_registers)
1609 (ravenscar_thread_target::prepare_to_store)
1610 (ravenscar_thread_target::prepare_to_store)
1611 (ravenscar_thread_target::mourn_inferior): Update.
1612 (ravenscar_inferior_created): Use "new" to create target.
1613 (ravenscar_thread_target::get_ada_task_ptid): Update.
1614 (_initialize_ravenscar): Don't initialize base_ptid.
1615 (ravenscar_ops): Remove global.
1617 2019-02-15 Tom Tromey <tromey@adacore.com>
1619 * target.h (push_target): Declare new overload.
1620 * target.c (push_target): New overload, taking an rvalue reference.
1621 * remote.c (remote_target::open_1): Use push_target overload.
1622 * corelow.c (core_target_open): Use push_target overload.
1624 2019-02-15 Tom Tromey <tromey@adacore.com>
1626 * ravenscar-thread.c (is_ravenscar_task)
1627 (ravenscar_task_is_currently_active): Return bool.
1628 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
1629 (_initialize_ravenscar): Remove "(void)".
1630 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
1633 2019-02-15 Tom Tromey <tromey@adacore.com>
1635 * ravenscar-thread.c (ravenscar_runtime_initializer)
1636 (has_ravenscar_runtime, get_running_thread_id)
1637 (ravenscar_thread_target::resume): Fix indentation.
1639 2019-02-15 Tom Tromey <tromey@adacore.com>
1641 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
1642 from ravenscar_arch_ops.
1643 (sparc_ravenscar_ops::fetch_registers)
1644 (sparc_ravenscar_ops::store_registers): Now methods.
1645 (sparc_ravenscar_prepare_to_store): Remove.
1646 (sparc_ravenscar_ops): Redefine.
1647 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
1648 methods and destructor. Remove members.
1649 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
1650 (ravenscar_thread_target::store_registers)
1651 (ravenscar_thread_target::prepare_to_store): Update.
1652 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
1654 (struct ppc_ravenscar_powerpc_ops): Derive from
1656 (ppc_ravenscar_powerpc_ops::fetch_registers)
1657 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
1658 (ppc_ravenscar_powerpc_ops): Redefine.
1659 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
1660 (ppc_ravenscar_e500_ops::fetch_registers)
1661 (ppc_ravenscar_e500_ops::store_registers): Now methods.
1662 (ppc_ravenscar_e500_ops): Redefine.
1663 * aarch64-ravenscar-thread.c
1664 (aarch64_ravenscar_generic_prepare_to_store): Remove.
1665 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
1666 (aarch64_ravenscar_fetch_registers)
1667 (aarch64_ravenscar_store_registers): Now methods.
1668 (aarch64_ravenscar_ops): Redefine.
1670 2019-02-15 Tom Tromey <tromey@adacore.com>
1672 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
1673 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1674 (ravenscar_thread_target::stopped_by_watchpoint)
1675 (ravenscar_thread_target::stopped_data_address)
1676 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
1678 2019-02-15 Tom Tromey <tromey@adacore.com>
1680 * ravenscar-thread.c: Fix some typos.
1682 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1683 Tom Tromey <tromey@adacore.com>
1685 * ada-lang.c (ada_exception_sal): Change addr_string to a
1687 (create_ada_exception_catchpoint): Update.
1689 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1690 Tom Tromey <tromey@adacore.com>
1692 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
1693 (bp_location_ops): Remove.
1694 (base_breakpoint_allocate_location): Update.
1695 (free_bp_location): Update.
1696 * ada-lang.c (class ada_catchpoint_location)
1697 <ada_catchpoint_location>: Remove ops parameter.
1698 (ada_catchpoint_location_dtor): Remove.
1699 (ada_catchpoint_location_ops): Remove.
1700 (allocate_location_exception): Update.
1701 * breakpoint.h (struct bp_location_ops): Remove.
1702 (class bp_location) <bp_location>: Remove bp_location_ops
1704 <~bp_location>: Add destructor.
1707 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1708 Pedro Alves <palves@redhat.com>
1710 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
1713 2019-02-14 David Michael <fedora.dm0@gmail.com>
1714 Samuel Thibault <samuel.thibault@gnu.org>
1715 Thomas Schwinge <thomas@codesourcery.com>
1717 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
1718 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
1720 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1722 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
1723 (check_empty): Use "const char *".
1725 * gnu-nat.c (gnu_nat_target::detach): Instead of
1726 'detach_inferior (pid)' call
1727 'detach_inferior (find_inferior_pid (pid))'.
1729 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
1730 'nat/fork-inferior.o'.
1731 * gnu-nat.c: #include "nat/fork-inferior.h".
1733 * gnu-nat.c (gnu_nat_target::detach): Instead of
1734 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
1735 * gnu-nat.h: #include "inf-child.h".
1736 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
1737 'i386_gnu_nat_target::fetch_registers'.
1738 (gnu_store_registers): Rename/move to
1739 'i386_gnu_nat_target::store_registers'.
1741 * config/i386/nm-i386gnu.h: Don't "#include" any files.
1742 * gnu-nat.h (mach_thread_info): New function.
1743 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
1745 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
1747 2019-02-14 Frederic Konrad <konrad@adacore.com>
1749 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
1751 2019-02-14 Joel Brobecker <brobecker@adacore.com>
1753 * windows-nat.c (windows_add_thread): Add new parameter
1754 "main_thread_p" with default value set to false. Update
1755 function documentation as well as all callers.
1756 (windows_delete_thread): Likewise.
1757 (fake_create_process): Update call to windows_add_thread.
1758 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
1759 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
1760 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
1761 call to windows_delete_thread.
1763 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
1765 * MAINTAINERS: Add Andrew Burgess as global maintainer.
1767 2019-02-12 John Baldwin <jhb@FreeBSD.org>
1769 * symfile.c (find_separate_debug_file): Use canonical path of
1770 sysroot with child_path instead of gdb_sysroot if it is valid.
1772 2019-02-12 John Baldwin <jhb@FreeBSD.org>
1774 * symfile.c (find_separate_debug_file): Use child_path to
1775 determine if an object file is under a sysroot.
1777 2019-02-12 John Baldwin <jhb@FreeBSD.org>
1779 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1780 unittests/child-path-selftests.c.
1781 * common/pathstuff.c (child_path): New function.
1782 * common/pathstuff.h (child_path): New prototype.
1783 * unittests/child-path-selftests.c: New file.
1785 2019-02-12 John Baldwin <jhb@FreeBSD.org>
1787 * symfile.c (find_separate_debug_file): Look for separate debug
1788 files in debug directories under the sysroot.
1790 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1792 * symtab.h (struct minimal_symbol data_p): New const method.
1793 (struct minimal_symbol text_p): Likewise.
1794 * symtab.c (output_source_filename): Use file name style
1796 (print_symbol_info): Likewise.
1797 (print_msymbol_info): Use address style to print addresses.
1798 Use function name style to print executable text symbols.
1799 (expand_symtab_containing_pc): Use data_p.
1800 (find_pc_sect_compunit_symtab): Likewise.
1802 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1804 * breakpoint.c (describe_other_breakpoints): Use address style
1806 (say_where): Likewise.
1808 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1810 * ada-typeprint.c (print_func_type): Print function name
1811 style to print function name.
1812 * c-typeprint.c (c_print_type_1): Likewise.
1814 2019-02-11 Alan Hayward <alan.hayward@arm.com>
1816 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
1819 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1821 * c-exp.y (direct_abs_decl): Use emplace_back to record the
1824 2019-02-10 Joel Brobecker <brobecker@adacore.com>
1826 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
1827 TYPE_CODE_REF types.
1829 2019-02-08 Jim Wilson <jimw@sifive.com>
1831 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
1832 (riscv_linux_fregset): New.
1833 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
1835 2019-02-07 Tom Tromey <tom@tromey.com>
1837 * thread.c (thread_cancel_execution_command): Update.
1838 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
1840 (struct thread_fsm_ops): Remove.
1841 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
1842 (thread_fsm_should_stop, thread_fsm_return_value)
1843 (thread_fsm_set_finished, thread_fsm_finished_p)
1844 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
1846 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
1847 * infrun.c (clear_proceed_status_thread)
1848 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
1849 (print_stop_event): Update.
1850 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
1852 (step_command_fsm_ops): Remove.
1853 (new_step_command_fsm): Remove.
1855 (step_command_fsm::should_stop): Rename from
1856 step_command_fsm_should_stop.
1857 (step_command_fsm::clean_up): Rename from
1858 step_command_fsm_clean_up.
1859 (step_command_fsm::do_async_reply_reason): Rename from
1860 step_command_fsm_async_reply_reason.
1861 (struct until_next_fsm): Inherit from thread_fsm. Add
1863 (until_next_fsm_ops): Remove.
1864 (new_until_next_fsm): Remove.
1865 (until_next_fsm::should_stop): Rename from
1866 until_next_fsm_should_stop.
1867 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
1868 (until_next_fsm::do_async_reply_reason): Rename from
1869 until_next_fsm_async_reply_reason.
1870 (struct finish_command_fsm): Inherit from thread_fsm. Add
1871 constructor. Change type of breakpoint.
1872 (finish_command_fsm_ops): Remove.
1873 (new_finish_command_fsm): Remove.
1874 (finish_command_fsm::should_stop): Rename from
1875 finish_command_fsm_should_stop.
1876 (finish_command_fsm::clean_up): Rename from
1877 finish_command_fsm_clean_up.
1878 (finish_command_fsm::return_value): Rename from
1879 finish_command_fsm_return_value.
1880 (finish_command_fsm::do_async_reply_reason): Rename from
1881 finish_command_fsm_async_reply_reason.
1882 (finish_command): Update.
1883 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
1885 (call_thread_fsm_ops): Remove.
1886 (call_thread_fsm::call_thread_fsm): Rename from
1887 new_call_thread_fsm.
1888 (call_thread_fsm::should_stop): Rename from
1889 call_thread_fsm_should_stop.
1890 (call_thread_fsm::should_notify_stop): Rename from
1891 call_thread_fsm_should_notify_stop.
1892 (run_inferior_call, call_function_by_hand_dummy): Update.
1893 * cli/cli-interp.c (should_print_stop_to_console): Update.
1894 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
1895 Add constructor. Change type of location_breakpoint,
1897 (until_break_fsm_ops): Remove.
1898 (new_until_break_fsm): Remove.
1899 (until_break_fsm::should_stop): Rename from
1900 until_break_fsm_should_stop.
1901 (until_break_fsm::clean_up): Rename from
1902 until_break_fsm_clean_up.
1903 (until_break_fsm::do_async_reply_reason): Rename from
1904 until_break_fsm_async_reply_reason.
1905 (until_break_command): Update.
1906 * thread-fsm.c: Remove.
1907 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
1909 2019-02-07 Tom Tromey <tom@tromey.com>
1911 * yy-remap.h: Add include guard.
1912 * xtensa-tdep.h: Add include guard.
1913 * xcoffread.h: Rename include guard.
1914 * varobj-iter.h: Add include guard.
1915 * tui/tui.h: Rename include guard.
1916 * tui/tui-winsource.h: Rename include guard.
1917 * tui/tui-wingeneral.h: Rename include guard.
1918 * tui/tui-windata.h: Rename include guard.
1919 * tui/tui-win.h: Rename include guard.
1920 * tui/tui-stack.h: Rename include guard.
1921 * tui/tui-source.h: Rename include guard.
1922 * tui/tui-regs.h: Rename include guard.
1923 * tui/tui-out.h: Rename include guard.
1924 * tui/tui-layout.h: Rename include guard.
1925 * tui/tui-io.h: Rename include guard.
1926 * tui/tui-hooks.h: Rename include guard.
1927 * tui/tui-file.h: Rename include guard.
1928 * tui/tui-disasm.h: Rename include guard.
1929 * tui/tui-data.h: Rename include guard.
1930 * tui/tui-command.h: Rename include guard.
1931 * tic6x-tdep.h: Add include guard.
1932 * target/waitstatus.h: Rename include guard.
1933 * target/wait.h: Rename include guard.
1934 * target/target.h: Rename include guard.
1935 * target/resume.h: Rename include guard.
1936 * target-float.h: Rename include guard.
1937 * stabsread.h: Add include guard.
1938 * rs6000-tdep.h: Add include guard.
1939 * riscv-fbsd-tdep.h: Add include guard.
1940 * regformats/regdef.h: Rename include guard.
1941 * record.h: Rename include guard.
1942 * python/python.h: Rename include guard.
1943 * python/python-internal.h: Rename include guard.
1944 * python/py-stopevent.h: Rename include guard.
1945 * python/py-ref.h: Rename include guard.
1946 * python/py-record.h: Rename include guard.
1947 * python/py-record-full.h: Rename include guard.
1948 * python/py-record-btrace.h: Rename include guard.
1949 * python/py-instruction.h: Rename include guard.
1950 * python/py-events.h: Rename include guard.
1951 * python/py-event.h: Rename include guard.
1952 * procfs.h: Add include guard.
1953 * proc-utils.h: Add include guard.
1954 * p-lang.h: Add include guard.
1955 * or1k-tdep.h: Rename include guard.
1956 * observable.h: Rename include guard.
1957 * nto-tdep.h: Rename include guard.
1958 * nat/x86-linux.h: Rename include guard.
1959 * nat/x86-linux-dregs.h: Rename include guard.
1960 * nat/x86-gcc-cpuid.h: Add include guard.
1961 * nat/x86-dregs.h: Rename include guard.
1962 * nat/x86-cpuid.h: Rename include guard.
1963 * nat/ppc-linux.h: Rename include guard.
1964 * nat/mips-linux-watch.h: Rename include guard.
1965 * nat/linux-waitpid.h: Rename include guard.
1966 * nat/linux-ptrace.h: Rename include guard.
1967 * nat/linux-procfs.h: Rename include guard.
1968 * nat/linux-osdata.h: Rename include guard.
1969 * nat/linux-nat.h: Rename include guard.
1970 * nat/linux-namespaces.h: Rename include guard.
1971 * nat/linux-btrace.h: Rename include guard.
1972 * nat/glibc_thread_db.h: Rename include guard.
1973 * nat/gdb_thread_db.h: Rename include guard.
1974 * nat/gdb_ptrace.h: Rename include guard.
1975 * nat/fork-inferior.h: Rename include guard.
1976 * nat/amd64-linux-siginfo.h: Rename include guard.
1977 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
1978 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
1979 * nat/aarch64-linux.h: Rename include guard.
1980 * nat/aarch64-linux-hw-point.h: Rename include guard.
1981 * mn10300-tdep.h: Add include guard.
1982 * mips-linux-tdep.h: Add include guard.
1983 * mi/mi-parse.h: Rename include guard.
1984 * mi/mi-out.h: Rename include guard.
1985 * mi/mi-main.h: Rename include guard.
1986 * mi/mi-interp.h: Rename include guard.
1987 * mi/mi-getopt.h: Rename include guard.
1988 * mi/mi-console.h: Rename include guard.
1989 * mi/mi-common.h: Rename include guard.
1990 * mi/mi-cmds.h: Rename include guard.
1991 * mi/mi-cmd-break.h: Rename include guard.
1992 * m2-lang.h: Add include guard.
1993 * location.h: Rename include guard.
1994 * linux-record.h: Rename include guard.
1995 * linux-nat.h: Add include guard.
1996 * linux-fork.h: Add include guard.
1997 * i386-darwin-tdep.h: Rename include guard.
1998 * hppa-linux-offsets.h: Add include guard.
1999 * guile/guile.h: Rename include guard.
2000 * guile/guile-internal.h: Rename include guard.
2001 * gnu-nat.h: Rename include guard.
2002 * gdb-stabs.h: Rename include guard.
2003 * frv-tdep.h: Add include guard.
2004 * f-lang.h: Add include guard.
2005 * event-loop.h: Add include guard.
2006 * darwin-nat.h: Rename include guard.
2007 * cp-abi.h: Rename include guard.
2008 * config/sparc/nm-sol2.h: Rename include guard.
2009 * config/nm-nto.h: Rename include guard.
2010 * config/nm-linux.h: Add include guard.
2011 * config/i386/nm-i386gnu.h: Rename include guard.
2012 * config/djgpp/nl_types.h: Rename include guard.
2013 * config/djgpp/langinfo.h: Rename include guard.
2014 * compile/gcc-cp-plugin.h: Add include guard.
2015 * compile/gcc-c-plugin.h: Add include guard.
2016 * compile/compile.h: Rename include guard.
2017 * compile/compile-object-run.h: Rename include guard.
2018 * compile/compile-object-load.h: Rename include guard.
2019 * compile/compile-internal.h: Rename include guard.
2020 * compile/compile-cplus.h: Rename include guard.
2021 * compile/compile-c.h: Rename include guard.
2022 * common/xml-utils.h: Rename include guard.
2023 * common/x86-xstate.h: Rename include guard.
2024 * common/version.h: Rename include guard.
2025 * common/vec.h: Rename include guard.
2026 * common/tdesc.h: Rename include guard.
2027 * common/selftest.h: Rename include guard.
2028 * common/scoped_restore.h: Rename include guard.
2029 * common/scoped_mmap.h: Rename include guard.
2030 * common/scoped_fd.h: Rename include guard.
2031 * common/safe-iterator.h: Rename include guard.
2032 * common/run-time-clock.h: Rename include guard.
2033 * common/refcounted-object.h: Rename include guard.
2034 * common/queue.h: Rename include guard.
2035 * common/ptid.h: Rename include guard.
2036 * common/print-utils.h: Rename include guard.
2037 * common/preprocessor.h: Rename include guard.
2038 * common/pathstuff.h: Rename include guard.
2039 * common/observable.h: Rename include guard.
2040 * common/netstuff.h: Rename include guard.
2041 * common/job-control.h: Rename include guard.
2042 * common/host-defs.h: Rename include guard.
2043 * common/gdb_wait.h: Rename include guard.
2044 * common/gdb_vecs.h: Rename include guard.
2045 * common/gdb_unlinker.h: Rename include guard.
2046 * common/gdb_unique_ptr.h: Rename include guard.
2047 * common/gdb_tilde_expand.h: Rename include guard.
2048 * common/gdb_sys_time.h: Rename include guard.
2049 * common/gdb_string_view.h: Rename include guard.
2050 * common/gdb_splay_tree.h: Rename include guard.
2051 * common/gdb_setjmp.h: Rename include guard.
2052 * common/gdb_ref_ptr.h: Rename include guard.
2053 * common/gdb_optional.h: Rename include guard.
2054 * common/gdb_locale.h: Rename include guard.
2055 * common/gdb_assert.h: Rename include guard.
2056 * common/filtered-iterator.h: Rename include guard.
2057 * common/filestuff.h: Rename include guard.
2058 * common/fileio.h: Rename include guard.
2059 * common/environ.h: Rename include guard.
2060 * common/common-utils.h: Rename include guard.
2061 * common/common-types.h: Rename include guard.
2062 * common/common-regcache.h: Rename include guard.
2063 * common/common-inferior.h: Rename include guard.
2064 * common/common-gdbthread.h: Rename include guard.
2065 * common/common-exceptions.h: Rename include guard.
2066 * common/common-defs.h: Rename include guard.
2067 * common/common-debug.h: Rename include guard.
2068 * common/cleanups.h: Rename include guard.
2069 * common/buffer.h: Rename include guard.
2070 * common/btrace-common.h: Rename include guard.
2071 * common/break-common.h: Rename include guard.
2072 * cli/cli-utils.h: Rename include guard.
2073 * cli/cli-style.h: Rename include guard.
2074 * cli/cli-setshow.h: Rename include guard.
2075 * cli/cli-script.h: Rename include guard.
2076 * cli/cli-interp.h: Rename include guard.
2077 * cli/cli-decode.h: Rename include guard.
2078 * cli/cli-cmds.h: Rename include guard.
2079 * charset-list.h: Add include guard.
2080 * buildsym-legacy.h: Rename include guard.
2081 * bfin-tdep.h: Add include guard.
2082 * ax.h: Rename include guard.
2083 * arm-linux-tdep.h: Add include guard.
2084 * arm-fbsd-tdep.h: Add include guard.
2085 * arch/xtensa.h: Rename include guard.
2086 * arch/tic6x.h: Add include guard.
2087 * arch/i386.h: Add include guard.
2088 * arch/arm.h: Rename include guard.
2089 * arch/arm-linux.h: Rename include guard.
2090 * arch/arm-get-next-pcs.h: Rename include guard.
2091 * arch/amd64.h: Add include guard.
2092 * arch/aarch64-insn.h: Rename include guard.
2093 * arch-utils.h: Rename include guard.
2094 * annotate.h: Add include guard.
2095 * amd64-darwin-tdep.h: Rename include guard.
2096 * aarch64-linux-tdep.h: Add include guard.
2097 * aarch64-fbsd-tdep.h: Add include guard.
2098 * aarch32-linux-nat.h: Add include guard.
2100 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2102 * macrotab.c (macro_define_internal): New function that
2103 factorizes macro_define_object_internal and macro_define_function
2105 (macro_define_object_internal): Use macro_define_internal.
2106 (macro_define_function): Likewise.
2108 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2110 * macrocmd.c (extract_identifier): Return
2111 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
2114 2019-02-06 John Baldwin <jhb@FreeBSD.org>
2116 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
2118 2019-02-05 Tom Tromey <tom@tromey.com>
2120 * target.c (target_stack::unpush): Move assertion earlier.
2122 2019-01-30 Tom Tromey <tom@tromey.com>
2125 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
2126 (gdbpy_parse_and_eval): Likewise.
2127 * python/python-internal.h (gdbpy_allow_threads): New class.
2129 2019-01-28 John Baldwin <jhb@FreeBSD.org>
2131 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
2132 (aarch64_fbsd_fpregmap): Move earlier.
2133 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
2134 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
2135 instead of individual calls to trad_frame_set_reg_addr.
2136 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
2138 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
2139 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
2140 instead of individual calls to trad_frame_set_reg_addr.
2142 2019-01-28 Alan Hayward <alan.hayward@arm.com>
2144 * CONTRIBUTE: Replace contribution list with wiki link.
2146 2019-01-25 Tom Tromey <tom@tromey.com>
2148 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
2150 2019-01-25 Tom Tromey <tom@tromey.com>
2152 * xtensa-linux-nat.c: Fix common/ includes.
2153 * xml-support.h: Fix common/ includes.
2154 * xml-support.c: Fix common/ includes.
2155 * x86-linux-nat.c: Fix common/ includes.
2156 * windows-nat.c: Fix common/ includes.
2157 * varobj.h: Fix common/ includes.
2158 * varobj.c: Fix common/ includes.
2159 * value.c: Fix common/ includes.
2160 * valops.c: Fix common/ includes.
2161 * utils.c: Fix common/ includes.
2162 * unittests/xml-utils-selftests.c: Fix common/ includes.
2163 * unittests/utils-selftests.c: Fix common/ includes.
2164 * unittests/unpack-selftests.c: Fix common/ includes.
2165 * unittests/tracepoint-selftests.c: Fix common/ includes.
2166 * unittests/style-selftests.c: Fix common/ includes.
2167 * unittests/string_view-selftests.c: Fix common/ includes.
2168 * unittests/scoped_restore-selftests.c: Fix common/ includes.
2169 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
2170 * unittests/scoped_fd-selftests.c: Fix common/ includes.
2171 * unittests/rsp-low-selftests.c: Fix common/ includes.
2172 * unittests/parse-connection-spec-selftests.c: Fix common/
2174 * unittests/optional-selftests.c: Fix common/ includes.
2175 * unittests/offset-type-selftests.c: Fix common/ includes.
2176 * unittests/observable-selftests.c: Fix common/ includes.
2177 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
2178 * unittests/memrange-selftests.c: Fix common/ includes.
2179 * unittests/memory-map-selftests.c: Fix common/ includes.
2180 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
2181 * unittests/function-view-selftests.c: Fix common/ includes.
2182 * unittests/environ-selftests.c: Fix common/ includes.
2183 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
2184 * unittests/common-utils-selftests.c: Fix common/ includes.
2185 * unittests/cli-utils-selftests.c: Fix common/ includes.
2186 * unittests/array-view-selftests.c: Fix common/ includes.
2187 * ui-file.c: Fix common/ includes.
2188 * tui/tui-io.c: Fix common/ includes.
2189 * tracepoint.h: Fix common/ includes.
2190 * tracepoint.c: Fix common/ includes.
2191 * tracefile-tfile.c: Fix common/ includes.
2192 * top.h: Fix common/ includes.
2193 * top.c: Fix common/ includes.
2194 * thread.c: Fix common/ includes.
2195 * target/waitstatus.h: Fix common/ includes.
2196 * target/waitstatus.c: Fix common/ includes.
2197 * target.h: Fix common/ includes.
2198 * target.c: Fix common/ includes.
2199 * target-memory.c: Fix common/ includes.
2200 * target-descriptions.c: Fix common/ includes.
2201 * symtab.h: Fix common/ includes.
2202 * symfile.c: Fix common/ includes.
2203 * stap-probe.c: Fix common/ includes.
2204 * spu-linux-nat.c: Fix common/ includes.
2205 * sparc-nat.c: Fix common/ includes.
2206 * source.c: Fix common/ includes.
2207 * solib.c: Fix common/ includes.
2208 * solib-target.c: Fix common/ includes.
2209 * ser-unix.c: Fix common/ includes.
2210 * ser-tcp.c: Fix common/ includes.
2211 * ser-pipe.c: Fix common/ includes.
2212 * ser-base.c: Fix common/ includes.
2213 * selftest-arch.c: Fix common/ includes.
2214 * s12z-tdep.c: Fix common/ includes.
2215 * rust-exp.y: Fix common/ includes.
2216 * rs6000-aix-tdep.c: Fix common/ includes.
2217 * riscv-tdep.c: Fix common/ includes.
2218 * remote.c: Fix common/ includes.
2219 * remote-notif.h: Fix common/ includes.
2220 * remote-fileio.h: Fix common/ includes.
2221 * remote-fileio.c: Fix common/ includes.
2222 * regcache.h: Fix common/ includes.
2223 * regcache.c: Fix common/ includes.
2224 * record-btrace.c: Fix common/ includes.
2225 * python/python.c: Fix common/ includes.
2226 * python/py-type.c: Fix common/ includes.
2227 * python/py-inferior.c: Fix common/ includes.
2228 * progspace.h: Fix common/ includes.
2229 * producer.c: Fix common/ includes.
2230 * procfs.c: Fix common/ includes.
2231 * proc-api.c: Fix common/ includes.
2232 * printcmd.c: Fix common/ includes.
2233 * ppc-linux-nat.c: Fix common/ includes.
2234 * parser-defs.h: Fix common/ includes.
2235 * osdata.c: Fix common/ includes.
2236 * obsd-nat.c: Fix common/ includes.
2237 * nat/x86-linux.c: Fix common/ includes.
2238 * nat/x86-linux-dregs.c: Fix common/ includes.
2239 * nat/x86-dregs.h: Fix common/ includes.
2240 * nat/x86-dregs.c: Fix common/ includes.
2241 * nat/ppc-linux.c: Fix common/ includes.
2242 * nat/mips-linux-watch.h: Fix common/ includes.
2243 * nat/mips-linux-watch.c: Fix common/ includes.
2244 * nat/linux-waitpid.c: Fix common/ includes.
2245 * nat/linux-ptrace.h: Fix common/ includes.
2246 * nat/linux-ptrace.c: Fix common/ includes.
2247 * nat/linux-procfs.c: Fix common/ includes.
2248 * nat/linux-personality.c: Fix common/ includes.
2249 * nat/linux-osdata.c: Fix common/ includes.
2250 * nat/linux-namespaces.c: Fix common/ includes.
2251 * nat/linux-btrace.h: Fix common/ includes.
2252 * nat/linux-btrace.c: Fix common/ includes.
2253 * nat/fork-inferior.c: Fix common/ includes.
2254 * nat/amd64-linux-siginfo.c: Fix common/ includes.
2255 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
2256 * nat/aarch64-linux.c: Fix common/ includes.
2257 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
2258 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
2259 * namespace.h: Fix common/ includes.
2260 * mips-linux-tdep.c: Fix common/ includes.
2261 * minsyms.c: Fix common/ includes.
2262 * mi/mi-parse.h: Fix common/ includes.
2263 * mi/mi-main.c: Fix common/ includes.
2264 * mi/mi-cmd-env.c: Fix common/ includes.
2265 * memrange.h: Fix common/ includes.
2266 * memattr.c: Fix common/ includes.
2267 * maint.h: Fix common/ includes.
2268 * maint.c: Fix common/ includes.
2269 * main.c: Fix common/ includes.
2270 * machoread.c: Fix common/ includes.
2271 * location.c: Fix common/ includes.
2272 * linux-thread-db.c: Fix common/ includes.
2273 * linux-nat.c: Fix common/ includes.
2274 * linux-fork.c: Fix common/ includes.
2275 * inline-frame.c: Fix common/ includes.
2276 * infrun.c: Fix common/ includes.
2277 * inflow.c: Fix common/ includes.
2278 * inferior.h: Fix common/ includes.
2279 * inferior.c: Fix common/ includes.
2280 * infcmd.c: Fix common/ includes.
2281 * inf-ptrace.c: Fix common/ includes.
2282 * inf-child.c: Fix common/ includes.
2283 * ia64-linux-nat.c: Fix common/ includes.
2284 * i387-tdep.c: Fix common/ includes.
2285 * i386-tdep.c: Fix common/ includes.
2286 * i386-linux-tdep.c: Fix common/ includes.
2287 * i386-linux-nat.c: Fix common/ includes.
2288 * i386-go32-tdep.c: Fix common/ includes.
2289 * i386-fbsd-tdep.c: Fix common/ includes.
2290 * i386-fbsd-nat.c: Fix common/ includes.
2291 * guile/scm-type.c: Fix common/ includes.
2292 * guile/guile.c: Fix common/ includes.
2293 * go32-nat.c: Fix common/ includes.
2294 * gnu-nat.c: Fix common/ includes.
2295 * gdbthread.h: Fix common/ includes.
2296 * gdbarch-selftests.c: Fix common/ includes.
2297 * gdb_usleep.c: Fix common/ includes.
2298 * gdb_select.h: Fix common/ includes.
2299 * gdb_bfd.c: Fix common/ includes.
2300 * gcore.c: Fix common/ includes.
2301 * fork-child.c: Fix common/ includes.
2302 * findvar.c: Fix common/ includes.
2303 * fbsd-nat.c: Fix common/ includes.
2304 * event-top.c: Fix common/ includes.
2305 * event-loop.c: Fix common/ includes.
2306 * dwarf2read.c: Fix common/ includes.
2307 * dwarf2loc.c: Fix common/ includes.
2308 * dwarf2-frame.c: Fix common/ includes.
2309 * dwarf-index-cache.c: Fix common/ includes.
2310 * dtrace-probe.c: Fix common/ includes.
2311 * disasm-selftests.c: Fix common/ includes.
2312 * defs.h: Fix common/ includes.
2313 * csky-tdep.c: Fix common/ includes.
2314 * cp-valprint.c: Fix common/ includes.
2315 * cp-support.h: Fix common/ includes.
2316 * cp-support.c: Fix common/ includes.
2317 * corelow.c: Fix common/ includes.
2318 * completer.h: Fix common/ includes.
2319 * completer.c: Fix common/ includes.
2320 * compile/compile.c: Fix common/ includes.
2321 * compile/compile-loc2c.c: Fix common/ includes.
2322 * compile/compile-cplus-types.c: Fix common/ includes.
2323 * compile/compile-cplus-symbols.c: Fix common/ includes.
2324 * command.h: Fix common/ includes.
2325 * cli/cli-dump.c: Fix common/ includes.
2326 * cli/cli-cmds.c: Fix common/ includes.
2327 * charset.c: Fix common/ includes.
2328 * build-id.c: Fix common/ includes.
2329 * btrace.h: Fix common/ includes.
2330 * btrace.c: Fix common/ includes.
2331 * breakpoint.h: Fix common/ includes.
2332 * breakpoint.c: Fix common/ includes.
2334 (enum agent_op): Fix common/ includes.
2335 * ax-general.c (struct aop_map): Fix common/ includes.
2336 * ax-gdb.c: Fix common/ includes.
2337 * auxv.c: Fix common/ includes.
2338 * auto-load.c: Fix common/ includes.
2339 * arm-tdep.c: Fix common/ includes.
2340 * arch/riscv.c: Fix common/ includes.
2341 * arch/ppc-linux-common.c: Fix common/ includes.
2342 * arch/i386.c: Fix common/ includes.
2343 * arch/arm.c: Fix common/ includes.
2344 * arch/arm-linux.c: Fix common/ includes.
2345 * arch/arm-get-next-pcs.c: Fix common/ includes.
2346 * arch/amd64.c: Fix common/ includes.
2347 * arch/aarch64.c: Fix common/ includes.
2348 * arch/aarch64-insn.c: Fix common/ includes.
2349 * arch-utils.c: Fix common/ includes.
2350 * amd64-windows-tdep.c: Fix common/ includes.
2351 * amd64-tdep.c: Fix common/ includes.
2352 * amd64-sol2-tdep.c: Fix common/ includes.
2353 * amd64-obsd-tdep.c: Fix common/ includes.
2354 * amd64-nbsd-tdep.c: Fix common/ includes.
2355 * amd64-linux-tdep.c: Fix common/ includes.
2356 * amd64-linux-nat.c: Fix common/ includes.
2357 * amd64-fbsd-tdep.c: Fix common/ includes.
2358 * amd64-fbsd-nat.c: Fix common/ includes.
2359 * amd64-dicos-tdep.c: Fix common/ includes.
2360 * amd64-darwin-tdep.c: Fix common/ includes.
2361 * agent.c: Fix common/ includes.
2362 * ada-lang.h: Fix common/ includes.
2363 * ada-lang.c: Fix common/ includes.
2364 * aarch64-tdep.c: Fix common/ includes.
2366 2019-01-25 Tom Tromey <tom@tromey.com>
2368 * common/create-version.sh: Use common/version.h.
2370 2019-01-24 Pedro Alves <palves@redhat.com>
2372 * infrun.c (signal_stop, signal_print, signal_program)
2373 (signal_catch, signal_pass): Now arrays instead of pointers.
2374 (update_signals_program_target, do_target_resume)
2375 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
2376 * linux-nat.c (linux_nat_target::pass_signals)
2377 (linux_nat_target::create_inferior, linux_nat_target::attach):
2379 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
2380 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
2381 * procfs.c (procfs_target::pass_signals): Adjust.
2382 * record-full.c (record_full_target::resume): Adjust.
2383 * remote.c (remote_target::pass_signals)
2384 (remote_target::program_signals): Adjust.
2385 * target-debug.h (target_debug_print_signals): Now takes a
2386 gdb::array_view as parameter. Adjust.
2387 * target.h (target_ops) <pass_signals, program_signals>: Replace
2388 pointer and length parameters with gdb::array_view.
2389 (target_pass_signals, target_program_signals): Likewise.
2390 * target-delegates.c: Regenerate.
2392 2019-01-24 Pedro Alves <palves@redhat.com>
2394 * common/forward-scope-exit.h
2395 (forward_scope_exit::forward_scope_exit): Pass arguments to
2396 m_bind_function directly, instead of creating a std::bind and
2399 2019-01-24 Alan Hayward <alan.hayward@arm.com>
2401 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
2403 (pass_in_v_vfp_candidate): Likewise.
2405 2019-01-23 Tom Tromey <tom@tromey.com>
2406 Pedro Alves <palves@redhat.com>
2408 * regcache.c (class regcache_invalidator): Remove.
2409 (regcache::raw_write): Use make_scope_exit.
2411 2019-01-23 Tom Tromey <tom@tromey.com>
2413 * ui-out.h (class ui_out_emit_type): Update comment.
2415 2019-01-23 Tom Tromey <tom@tromey.com>
2417 * infrun.c (fetch_inferior_event): Update comment.
2419 2019-01-23 Tom Tromey <tom@tromey.com>
2420 Pedro Alves <palves@redhat.com>
2422 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
2424 (fetch_inferior_event): Use SCOPE_EXIT.
2427 2019-01-23 Tom Tromey <tom@tromey.com>
2428 Pedro Alves <palves@redhat.com>
2430 * infrun.c (disable_thread_events): Delete.
2431 (stop_all_threads): Use SCOPE_EXIT.
2433 2019-01-23 Tom Tromey <tom@tromey.com>
2434 Pedro Alves <palves@redhat.com>
2436 * symfile.c: Include forward-scope-exit.h.
2437 (clear_symtab_users_cleanup): Replace forward declaration with
2438 a FORWARD_SCOPE_EXIT.
2439 (syms_from_objfile_1): Use the forward_scope_exit and
2440 gdb::optional instead of cleanup_function.
2441 (reread_symbols): Use the forward_scope_exit instead of
2443 (clear_symtab_users_cleanup): Remove function.
2445 2019-01-23 Tom Tromey <tom@tromey.com>
2446 Pedro Alves <palves@redhat.com>
2448 * linux-nat.c: Include scope-exit.h.
2449 (cleanup_target_stop): Remove.
2450 (linux_nat_target::static_tracepoint_markers_by_strid): Use
2453 2019-01-23 Tom Tromey <tom@tromey.com>
2454 Pedro Alves <palves@redhat.com>
2456 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
2457 (call_function_by_hand_dummy): Use SCOPE_EXIT.
2459 2019-01-23 Tom Tromey <tom@tromey.com>
2460 Andrew Burgess <andrew.burgess@embecosm.com>
2461 Pedro Alves <palves@redhat.com>
2463 * infrun.c (fetch_inferior_event): Use scope_exit.
2464 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
2465 * top.c (execute_command): Use scope_exit.
2466 * breakpoint.c (bpstat_do_actions): Use scope_exit.
2467 * utils.c (do_bpstat_clear_actions_cleanup)
2468 (make_bpstat_clear_actions_cleanup): Remove.
2470 2019-01-23 Tom Tromey <tom@tromey.com>
2471 Pedro Alves <palves@redhat.com>
2473 * infrun.c: Include "common/scope-exit.h"
2474 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
2475 (wait_for_inferior): Use SCOPE_EXIT.
2476 (fetch_inferior_event): Use scope_exit.
2478 2019-01-23 Tom Tromey <tom@tromey.com>
2479 Pedro Alves <palves@redhat.com>
2481 * breakpoint.c (create_breakpoint): Remove cleanup.
2483 2019-01-23 Tom Tromey <tom@tromey.com>
2484 Andrew Burgess <andrew.burgess@embecosm.com>
2485 Pedro Alves <palves@redhat.com>
2487 2019-01-23 Pedro Alves <palves@redhat.com>
2489 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
2491 2019-01-23 Pedro Alves <palves@redhat.com>
2492 Andrew Burgess <andrew.burgess@embecosm.com>
2494 * gdbthread.h: Include "common/forward-scope-exit.h".
2495 (scoped_finish_thread_state): Redefine custom class in terms of
2498 2019-01-23 Pedro Alves <palves@redhat.com>
2499 Andrew Burgess <andrew.burgess@embecosm.com>
2501 * common/forward-scope-exit.h: New file.
2503 2019-01-23 Pedro Alves <palves@redhat.com>
2504 Andrew Burgess <andrew.burgess@embecosm.com>
2505 Tom Tromey <tom@tromey.com>
2507 * common/scope-exit.h: New file.
2509 2019-01-23 Pedro Alves <palves@redhat.com>
2511 * common/preprocessor.h (ESC): Rename to ...
2512 (ESC_PARENS): ... this.
2513 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
2514 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
2516 2019-01-23 Tom Tromey <tom@tromey.com>
2518 * language.h (class scoped_switch_to_sym_language_if_auto):
2519 Initialize m_lang in both cases.
2521 2019-01-23 Alan Hayward <alan.hayward@arm.com>
2523 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
2526 2019-01-22 Tom Tromey <tom@tromey.com>
2528 * corelow.c: Do not include sys/file.h.
2530 2019-01-22 Tom Tromey <tom@tromey.com>
2532 * tui/tui-wingeneral.h: Include gdb_curses.h.
2534 2019-01-22 Tom Tromey <tom@tromey.com>
2536 * source-cache.h (class source_cache) <get_source_lines,
2537 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
2539 2019-01-22 Tom Tromey <tom@tromey.com>
2541 * remote-fileio.h (struct remote_target): Declare.
2543 2019-01-22 Tom Tromey <tom@tromey.com>
2545 * python/py-arch.c: Do not include py-ref.h.
2546 * python/py-bpevent.c: Do not include py-ref.h.
2547 * python/py-cmd.c: Do not include py-ref.h.
2548 * python/py-continueevent.c: Do not include py-ref.h.
2549 * python/py-event.h: Do not include py-ref.h.
2550 * python/py-evtregistry.c: Do not include py-ref.h.
2551 * python/py-finishbreakpoint.c: Do not include py-ref.h.
2552 * python/py-frame.c: Do not include py-ref.h.
2553 * python/py-framefilter.c: Do not include py-ref.h.
2554 * python/py-function.c: Do not include py-ref.h.
2555 * python/py-infevents.c: Do not include py-ref.h.
2556 * python/py-linetable.c: Do not include py-ref.h.
2557 * python/py-objfile.c: Do not include py-ref.h.
2558 * python/py-param.c: Do not include py-ref.h.
2559 * python/py-prettyprint.c: Do not include py-ref.h.
2560 * python/py-progspace.c: Do not include py-ref.h.
2561 * python/py-symbol.c: Do not include py-ref.h.
2562 * python/py-symtab.c: Do not include py-ref.h.
2563 * python/py-type.c: Do not include py-ref.h.
2564 * python/py-unwind.c: Do not include py-ref.h.
2565 * python/py-utils.c: Do not include py-ref.h.
2566 * python/py-value.c: Do not include py-ref.h.
2567 * python/py-varobj.c: Do not include py-ref.h.
2568 * python/py-xmethods.c: Do not include py-ref.h.
2569 * python/python.c: Do not include py-ref.h.
2570 * varobj.c: Do not include py-ref.h.
2572 2019-01-22 Tom Tromey <tom@tromey.com>
2574 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
2577 2019-01-22 Tom Tromey <tom@tromey.com>
2579 * compile/compile-cplus-types.c: Remove a comment by #include.
2581 2019-01-22 Tom Tromey <tom@tromey.com>
2583 * compile/gcc-c-plugin.h: Include compile-internal.h.
2585 2019-01-22 Tom Tromey <tom@tromey.com>
2587 * stabsread.c (EXTERN): Do not define.
2588 (symnum, next_symbol_text_func, processing_gcc_compilation)
2589 (within_function, global_sym_chain, global_stabs)
2590 (previous_stab_code, this_object_header_files)
2591 (n_this_object_header_files)
2592 (n_allocated_this_object_header_files): Define.
2593 * stabsread.h (EXTERN): Never define. Use "extern".
2595 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2597 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
2600 2019-01-21 Tom Tromey <tom@tromey.com>
2602 * ui-out.c: Fix includes.
2603 * tui/tui-source.c: Fix includes.
2604 * target.c: Fix includes.
2605 * remote.c: Fix includes.
2606 * regcache.c: Fix includes.
2607 * python/py-block.c: Fix includes.
2608 * printcmd.c: Fix includes.
2609 * or1k-tdep.c: Fix includes.
2610 * mi/mi-main.c: Fix includes.
2611 * m32r-tdep.c: Fix includes.
2612 * csky-tdep.c: Fix includes.
2613 * compile/compile-cplus-types.c: Fix includes.
2614 * cli/cli-interp.c: Fix includes.
2616 2019-01-21 Alan Hayward <alan.hayward@arm.com>
2618 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
2621 2019-01-16 Tom Tromey <tom@tromey.com>
2623 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
2625 (struct objfile) <msymbols_range>: Move from top level.
2626 <msymbols>: New method.
2627 (class objfile_msymbols): Remove.
2628 * symtab.c (default_collect_symbol_completion_matches_break_on):
2630 * symmisc.c (dump_msymbols): Update.
2631 * stabsread.c (scan_file_globals): Update.
2632 * objc-lang.c (info_selectors_command, info_classes_command)
2633 (find_methods): Update.
2634 * minsyms.c (find_solib_trampoline_target): Update.
2635 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
2636 * coffread.c (coff_symfile_read): Update.
2637 * ada-lang.c (ada_lookup_simple_minsym)
2638 (ada_collect_symbol_completion_matches): Update.
2640 2019-01-16 Tom Tromey <tom@tromey.com>
2642 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
2643 type. Remove no-argument constructor.
2644 <iterator::operator++>: Simplify.
2646 <end>: Use minimal_symbol_count.
2648 2019-01-16 Tom Tromey <tom@tromey.com>
2650 * objfiles.h (struct objfile) <psymtabs>: New method.
2651 (class objfile_psymtabs): Remove.
2652 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
2654 <range>: New method.
2655 (require_partial_symbols): Change return type.
2656 * psymtab.c (require_partial_symbols)
2657 (psym_expand_symtabs_matching): Update.
2658 * mdebugread.c (parse_partial_symbols): Update.
2659 * dbxread.c (dbx_end_psymtab): Update.
2661 2019-01-15 Tom Tromey <tom@tromey.com>
2663 * symtab.c (lookup_objfile_from_block)
2664 (lookup_symbol_in_objfile_symtabs)
2665 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
2666 (find_line_symtab, info_sources_command)
2667 (default_collect_symbol_completion_matches_break_on)
2668 (make_source_files_completion_list): Update.
2669 * symmisc.c (print_objfile_statistics, dump_objfile)
2670 (maintenance_print_symbols, maintenance_info_symtabs)
2671 (maintenance_check_symtabs, maintenance_info_line_tables):
2673 * source.c (select_source_symtab)
2674 (forget_cached_source_info_for_objfile): Update.
2675 * objfiles.h (class objfile_compunits): Remove.
2676 (struct objfile) <compunits_range>: New typedef.
2677 (compunits): New method.
2678 * objfiles.c (objfile_relocate1): Update.
2679 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
2680 * maint.c (count_symtabs_and_blocks): Update.
2681 * linespec.c (iterate_over_all_matching_symtabs): Update.
2682 * cp-support.c (add_symbol_overload_list_qualified): Update.
2683 * coffread.c (coff_symtab_read): Update.
2684 * ada-lang.c (add_nonlocal_symbols)
2685 (ada_collect_symbol_completion_matches)
2686 (ada_add_global_exceptions): Update.
2688 2019-01-15 Tom Tromey <tom@tromey.com>
2690 * progspace.h (program_space) <objfiles_safe_range>: New
2692 <objfiles_safe>: New method.
2693 * objfiles.h (class all_objfiles_safe): Remove.
2694 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
2695 * jit.c (jit_inferior_exit_hook): Update.
2697 2019-01-17 Tom Tromey <tom@tromey.com>
2699 * progspace.h (program_space) <objfiles_range>: New typedef.
2700 <objfiles>: New method.
2701 <objfiles_head>: Rename from objfiles.
2702 (object_files): Update.
2703 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
2704 * guile/scm-pretty-print.c
2705 (ppscm_find_pretty_printer_from_objfiles): Update.
2706 * guile/scm-objfile.c (gdbscm_objfiles): Update.
2707 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2709 * python/py-progspace.c (pspy_get_objfiles): Update.
2710 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2712 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
2713 (objfpy_lookup_objfile_by_build_id): Update.
2714 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
2715 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
2717 * symtab.c (iterate_over_symtabs, matching_obj_sections)
2718 (expand_symtab_containing_pc, lookup_objfile_from_block)
2719 (lookup_static_symbol, basic_lookup_transparent_type)
2720 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2721 (find_line_symtab, info_sources_command)
2722 (default_collect_symbol_completion_matches_break_on)
2723 (make_source_files_completion_list, find_main_name): Update.
2724 * symmisc.c (print_symbol_bcache_statistics)
2725 (print_objfile_statistics, maintenance_print_symbols)
2726 (maintenance_print_msymbols, maintenance_print_objfiles)
2727 (maintenance_info_symtabs, maintenance_check_symtabs)
2728 (maintenance_expand_symtabs, maintenance_info_line_tables):
2730 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
2731 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
2732 (map_overlay_command, unmap_overlay_command)
2733 (simple_overlay_update, expand_symtabs_matching)
2734 (map_symbol_filenames): Update.
2735 * symfile-debug.c (set_debug_symfile): Update.
2736 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
2738 * source.c (select_source_symtab, forget_cached_source_info):
2740 * solib.c (solib_read_symbols): Update.
2741 * solib-spu.c (append_ocl_sos): Update.
2742 * psymtab.c (maintenance_print_psymbols)
2743 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2744 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
2745 * printcmd.c (info_symbol_command): Update.
2746 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
2748 * objfiles.h (class all_objfiles): Remove.
2749 * objfiles.c (have_partial_symbols, have_full_symbols)
2750 (have_minimal_symbols, qsort_cmp, update_section_map)
2751 (shared_objfile_contains_address_p)
2752 (default_iterate_over_objfiles_in_search_order): Update.
2753 * objc-lang.c (info_selectors_command, info_classes_command)
2754 (find_methods): Update.
2755 * minsyms.c (find_solib_trampoline_target): Update.
2756 * maint.c (maintenance_info_sections)
2757 (maintenance_translate_address, count_symtabs_and_blocks):
2759 * main.c (captured_main_1): Update.
2760 * linux-thread-db.c (try_thread_db_load_from_pdir)
2761 (has_libpthread): Update.
2762 * linespec.c (iterate_over_all_matching_symtabs)
2763 (search_minsyms_for_name): Update.
2764 * jit.c (jit_find_objf_with_entry_addr): Update.
2765 * hppa-tdep.c (find_unwind_entry)
2766 (hppa_lookup_stub_minimal_symbol): Update.
2767 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
2769 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
2770 (elf_gnu_ifunc_resolve_by_got): Update.
2771 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
2772 * dwarf-index-write.c (save_gdb_index_command): Update.
2773 * cp-support.c (add_symbol_overload_list_qualified): Update.
2774 * breakpoint.c (create_overlay_event_breakpoint)
2775 (create_longjmp_master_breakpoint)
2776 (create_std_terminate_master_breakpoint)
2777 (create_exception_master_breakpoint): Update.
2778 * blockframe.c (find_pc_partial_function): Update.
2779 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
2780 (ada_collect_symbol_completion_matches)
2781 (ada_add_global_exceptions): Update.
2783 2019-01-17 Tom Tromey <tom@tromey.com>
2785 * solib-target.c (lm_info_target_p): Remove typedef. Don't
2787 (solib_target_parse_libraries): Change return type.
2788 (library_list_start_segment, library_list_start_section)
2789 (library_list_end_library, library_list_start_library); Update.
2790 (solib_target_free_library_list): Remove.
2791 (solib_target_parse_libraries): Remove cleanup. Change return
2793 (solib_target_current_sos): Update.
2795 2019-01-17 Tom Tromey <tromey@bapiya>
2797 * valprint.c: Replace "the the" with "the".
2798 * symtab.c: Replace "the the" with "the".
2799 * solib.c: Replace "the the" with "the".
2800 * solib-dsbt.c: Replace "the the" with "the".
2801 * linespec.c: Replace "the the" with "the".
2802 * dwarf2loc.h: Replace "the the" with "the".
2803 * amd64-windows-tdep.c: Replace "the the" with "the".
2804 * aarch64-tdep.c: Replace "the the" with "the".
2806 2019-01-16 Keith Seitz <keiths@redhat.com>
2809 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
2810 <builder>: Rename to ..
2811 <m_builder>: ... this and make private.
2812 (dwarf2_cu::get_builder): New method. Change all users of
2813 `builder' to use this method.
2814 (dwarf2_start_symtab): Move to ...
2815 (dwarf2_cu::start_symtab): ... here. Update all callers
2816 (setup_type_unit_groups): Move to ...
2817 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
2819 (dwarf2_cu::reset_builder): New method.
2820 (process_full_compunit, process_full_type_unit): Use
2821 dwarf2_cu::reset_builder.
2822 (follow_die_offset): Record the ancestor CU if it is different
2823 from the followed DIE's CU.
2824 (follow_die_sig_1): Likewise.
2826 2019-01-15 Tom Tromey <tom@tromey.com>
2828 * remote.c (class remote_state) <buf>: Now a char_vector.
2830 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
2832 (remote_target::getpkt_or_notif_sane_1)
2833 (remote_target::getpkt_sane)
2834 (remote_target::getpkt_or_notif_sane): Likewise.
2835 (class remote_target) <putpkt>: New overload.
2836 (remote_target::read_frame): Change type of "buf_p". Remove
2838 (packet_ok): New overload.
2839 (packet_check_result): New overload.
2842 2019-01-14 Tom Tromey <tom@tromey.com>
2844 * remote-notif.c (handle_notification, remote_notif_ack)
2845 (remote_notif_parse): Make "buf" const.
2846 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
2848 (remote_notif_parse, remote_notif_ack, handle_notification):
2850 * remote.c (remote_notif_stop_parse): Make "buf" const.
2851 (remote_target::remote_parse_stop_reply): Make "buf" const.
2852 (remote_notif_stop_ack): Make "buf" const.
2854 2019-01-14 Tom Tromey <tom@tromey.com>
2856 * remote.c (remote_console_output): Make parameter const.
2858 2019-01-14 Tom Tromey <tom@tromey.com>
2860 * target-debug.h (target_debug_print_signals): Constify.
2861 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
2862 * procfs.c (procfs_target::pass_signals): Update.
2863 * linux-nat.c (linux_nat_target::pass_signals): Update.
2864 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
2865 * target-delegates.c: Rebuild.
2866 * remote.c (remote_target::program_signals): Update.
2867 (remote_target::pass_signals): Update.
2868 * target.c (target_pass_signals): Constify argument.
2869 (target_program_signals): Likewise.
2870 * target.h (struct target_ops) <pass_signals, program_signals>:
2872 (target_pass_signals, target_program_signals): Constify argument.
2874 2019-01-14 Tom Tromey <tom@tromey.com>
2877 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
2879 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2881 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
2883 * rs6000-tdep.c: Include reggroups.h.
2884 (IS_V_ALIAS_PSEUDOREG): Define.
2885 (rs6000_register_name): Return names for the "vX" aliases.
2886 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
2887 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
2888 aliases. Call default_register_reggroup_p for all other
2890 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
2892 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
2893 Handle "vX" aliases.
2894 (v_alias_pseudo_register_collect): New function.
2895 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
2896 (rs6000_gdbarch_init): Initialize "vX" aliases as
2897 pseudo-registers. Restore registration of
2898 rs6000_pseudo_register_reggroup_p with
2899 set_tdesc_pseudo_register_reggroup_p.
2901 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
2903 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
2904 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
2905 set_gdbarch_num_pseudo_regs.
2907 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2909 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
2910 Remove arg prefixname, add do_set and do_show.
2911 Add member functions set_list and show_list.
2912 * cli/cli-style.c (class cli_style_option): Update accordingly.
2913 (style_set_list): Move to file scope.
2914 (style_show_list): Likewise.
2915 (set_style): Call help_list.
2916 (show_style): Call cmd_show_list.
2917 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
2918 Update to use the new macro.
2920 2019-10-12 Joel Brobecker <brobecker@adacore.com>
2922 * ada-lang.c (_initialize_ada_language): Expand the help text
2923 for the "catch exception" command.
2925 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2927 * symtab.c (matching_obj_sections): Initialize obj,
2928 declare it closer to its usage.
2930 2019-01-10 Tom Tromey <tom@tromey.com>
2932 * thread-iter.h (inf_threads_iterator): Use next_iterator.
2933 (basic_inf_threads_range): Remove.
2934 (inf_threads_range, inf_non_exited_threads_range)
2935 (safe_inf_threads_range): Use next_adapter.
2937 2019-01-10 Keith Seitz <keiths@redhat.com>
2941 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
2942 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
2944 2019-01-10 Keith Seitz <keiths@redhat.com>
2948 * dictionary.c (pending_to_vector): Remove.
2949 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
2950 Remove _1 suffix, replacing functions of the same name. Update
2952 (dict_create_hashed, dict_create_hashed_expandable)
2953 (dict_create_linear, dict_create_linear_expandable, dict_free)
2954 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
2955 Make functions static.
2957 2019-01-10 Keith Seitz <keiths@redhat.com>
2961 * dictionary.h (struct dictionary): Replace declaration with
2963 (dict_create_hashed, dict_create_hashed_expandable)
2964 (dict_create_linear, dict_create_linear_expandable)
2965 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
2966 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
2967 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
2968 taking multidictionary argument.
2969 [ALL_DICT_SYMBOLS]: Update for multidictionary.
2970 * block.h (struct block) <dict>: Change to multidictionary
2971 and rename `multidict'.
2972 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
2973 symmisc.c: Update all dictionary references to multidictionary.
2975 2019-01-10 Keith Seitz <keiths@redhat.com>
2979 * dictionary.c: Include unordered_map.
2980 (pending_to_vector): New function.
2981 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
2982 Rewrite the non-"_1" functions to take vector instead
2984 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
2985 "new" _1 versions of the same name.
2986 (multidictionary): Define.
2987 (std::hash<enum language): New definition.
2988 (collate_pending_symbols_by_language, mdict_create_hashed)
2989 (mdict_create_hashed_expandable, mdict_create_linear)
2990 (mdict_create_linear_expandable, mdict_free)
2991 (find_language_dictionary, create_new_language_dictionary)
2992 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
2993 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
2994 (mdict_size, mdict_empty): New functions.
2995 * dictionary.h (mdict_iterator): Define.
2997 2019-01-10 Pedro Alves <palves@redhat.com>
2999 * breakpoint.c (read_uploaded_action)
3000 (create_tracepoint_from_upload): Adjust to use
3001 gdb::unique_xmalloc_ptr.
3002 * ctf.c (ctf_write_uploaded_tp):
3003 (SET_ARRAY_FIELD): Use emplace_back.
3004 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
3005 * tracefile-tfile.c (tfile_write_uploaded_tp):
3006 * tracepoint.c (parse_tracepoint_definition): Adjust to use
3007 gdb::unique_xmalloc_ptr.
3008 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
3009 at_string, cond_string, cmd_strings>: Replace char pointers
3010 with gdb::unique_xmalloc_ptr.
3012 2019-01-10 Pedro Alves <palves@redhat.com>
3014 * solib-target.c (library_list_start_library): Don't xstrdup name.
3016 2019-01-10 Pedro Alves <palves@redhat.com>
3018 * mdebugread.c (parse_partial_symbols): Use
3019 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
3021 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
3023 * linux-fork.c (scoped_switch_fork_info)
3024 <~scoped_switch_fork_info>: Fix incorrect variable name.
3026 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
3028 * linux-fork.c (scoped_switch_fork_info)
3029 <scoped_switch_fork_info>: Make explicit.
3030 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
3032 2019-01-10 Tom Tromey <tom@tromey.com>
3034 * objfiles.h (objfile::reset_psymtabs): Update.
3035 * objfiles.c (objfile::objfile): Update.
3036 * psymtab.h (psymtab_storage::obstack): Update.
3037 (psymtab_storage::m_obstack): Use gdb::optional.
3038 (class psymtab_storage): Update comment. Remove objfile
3040 * psymtab.c (psymtab_storage::psymtab_storage): Update.
3042 2019-01-10 Tom Tromey <tom@tromey.com>
3044 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
3045 <free_psymtabs>: Now private.
3046 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
3047 (allocate_psymtab): Use new method.
3049 2019-01-10 Tom Tromey <tom@tromey.com>
3051 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
3052 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
3053 * mdebugread.c (parse_partial_symbols): Use
3054 allocate_dependencies.
3055 * dwarf2read.c (dwarf2_create_include_psymtab): Use
3056 allocate_dependencies.
3057 (process_psymtab_comp_unit_reader)
3058 (build_type_psymtab_dependencies): Likewise.
3059 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
3061 2019-01-10 Tom Tromey <tom@tromey.com>
3063 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
3064 PSYMBOL_SET_LANGUAGE.
3065 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
3067 2019-01-10 Tom Tromey <tom@tromey.com>
3069 * psymtab.h (psymtab_storage::obstack): New method.
3070 <m_obstack>: Rename from obstack; now private.
3071 * psymtab.c (psymtab_storage): Update.
3072 * dwarf2read.c (create_addrmap_from_index)
3073 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
3076 2019-01-10 Tom Tromey <tom@tromey.com>
3078 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
3079 * objfiles.h (objfile::reset_psymtabs): New method.
3081 2019-01-10 Tom Tromey <tom@tromey.com>
3083 * symmisc.c (print_symbol_bcache_statistics): Update.
3084 (print_objfile_statistics): Update.
3085 * symfile.c (reread_symbols): Update.
3086 * psymtab.h (class psymtab_storage): New.
3087 * psymtab.c (psymtab_storage): New constructor.
3088 (~psymtab_storage): New destructor.
3089 (require_partial_symbols): Update.
3090 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
3091 (find_pc_sect_psymtab, find_pc_sect_psymbol)
3092 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
3093 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
3094 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
3095 (start_psymtab_common, end_psymtab_common)
3096 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
3097 (allocate_psymtab): Update.
3098 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
3100 (dump_psymtab_addrmap, maintenance_print_psymbols)
3101 (maintenance_check_psymtabs): Update.
3102 (class objfile_psymtabs): Move to objfiles.h.
3103 * psympriv.h (discard_psymtab): Now inline.
3104 (psymtab_discarder::psymtab_discarder): Update.
3105 (psymtab_discarder::~psymtab_discarder): Update.
3106 (ALL_OBJFILE_PSYMTABS): Rewrite.
3107 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
3108 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
3110 <partial_symtabs>: New field.
3111 (class objfile_psymtabs): Move from psymtab.h. Update.
3112 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
3114 (objfile::~objfile): Don't destroy psymbol_cache.
3115 * mdebugread.c (parse_partial_symbols): Update.
3116 * dwarf2read.c (create_addrmap_from_index)
3117 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
3118 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
3119 (add_partial_subprogram, dwarf2_ranges_read): Update.
3120 * dwarf-index-write.c (write_address_map)
3121 (write_one_signatured_type, recursively_write_psymbols)
3122 (class debug_names, class debug_names, write_psymtabs_to_index):
3125 2019-01-10 Tom Tromey <tom@tromey.com>
3127 * symtab.h (SYMBOL_SET_NAMES): Update.
3128 (symbol_set_names): Update.
3129 (MSYMBOL_SET_NAMES): Update.
3130 * symtab.c (symbol_set_names): Change argument to be an
3131 objfile_per_bfd_storage.
3132 * psymtab.c (add_psymbol_to_bcache): Update.
3133 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
3135 2019-01-10 Tom Tromey <tom@tromey.com>
3137 * symtab.c (create_demangled_names_hash): Change argument to be an
3138 objfile_per_bfd_storage.
3139 (symbol_set_names): Update.
3141 2019-01-10 Tom Tromey <tom@tromey.com>
3143 * xcoffread.c (xcoff_initial_scan): Unconditionally call
3145 * psymtab.c (init_psymbol_list): Do nothing if already called.
3146 * psympriv.h (init_psymbol_list): Add comment.
3147 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
3149 * dbxread.c (dbx_symfile_read): Unconditionally call
3152 2019-01-10 Tom Tromey <tom@tromey.com>
3154 * xcoffread.c (scan_xcoff_symtab): Update.
3155 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
3157 * mdebugread.c (parse_partial_symbols)
3158 (handle_psymbol_enumerators): Update.
3159 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
3160 * dbxread.c (read_dbx_symtab): Update.
3161 * psympriv.h (psymbol_placement): New enum.
3162 (add_psymbol_to_list): Update.
3164 2019-01-10 Tom Tromey <tom@tromey.com>
3166 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
3167 static_psymbols parameters.
3168 (scan_xcoff_symtab): Update.
3169 * psymtab.c (start_psymtab_common): Remove global_psymbols and
3170 static_psymbols parameters.
3171 * psympriv.h (start_psymtab_common): Update.
3172 * mdebugread.c (parse_partial_symbols): Update.
3173 * dwarf2read.c (create_partial_symtab): Update.
3174 * dbxread.c (read_dbx_symtab): Update.
3175 (start_psymtab): Remove global_psymbols and static_psymbols
3178 2019-01-10 Tom Tromey <tom@tromey.com>
3180 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
3181 * psymtab.c (allocate_psymtab): Add comment.
3182 * psympriv.h (allocate_psymtab): Add comment.
3183 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
3185 * dbxread.c (dbx_end_psymtab): Remove some initializations.
3187 2019-01-10 Tom Tromey <tom@tromey.com>
3189 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
3191 * mipsread.c: Include mdebugread.h.
3192 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
3194 * elfread.c: Include mdebugread.h.
3196 2019-01-09 Tom Tromey <tom@tromey.com>
3198 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
3199 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
3200 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
3201 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
3202 (psym_lookup_symbol, psym_find_last_source_symtab)
3203 (psym_forget_cached_source_info, psym_print_stats)
3204 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
3205 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
3206 (psym_map_matching_symbols, psym_expand_symtabs_matching)
3207 (psym_find_compunit_symtab_by_address)
3208 (maintenance_print_psymbols, maintenance_info_psymtabs)
3209 (maintenance_check_psymtabs): Use ranged for.
3210 * psymtab.h (class objfile_psymtabs): New.
3211 (require_partial_symbols): Return objfile_psymtabs.
3212 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
3214 2019-01-09 Tom Tromey <tom@tromey.com>
3216 * symfile.c (overlay_invalidate_all, find_pc_overlay)
3217 (find_pc_mapped_section, list_overlays_command)
3218 (map_overlay_command, unmap_overlay_command)
3219 (simple_overlay_update): Use all_objfiles.
3220 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
3221 * printcmd.c (info_symbol_command): Use all_objfiles.
3222 * objfiles.h (ALL_OBJSECTIONS): Remove.
3223 * maint.c (maintenance_translate_address): Use all_objfiles.
3224 * gcore.c (gcore_create_callback): Use all_objfiles.
3225 (objfile_find_memory_regions): Likewise.
3227 2019-01-09 Tom Tromey <tom@tromey.com>
3229 * symtab.c (find_line_symtab, info_sources_command)
3230 (make_source_files_completion_list): Use objfile_compunits.
3231 * source.c (select_source_symtab): Use objfile_compunits.
3232 * objfiles.h (struct objfile): Update comment.
3233 (ALL_OBJFILES): Remove.
3234 (ALL_FILETABS): Remove.
3235 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
3238 2019-01-09 Tom Tromey <tom@tromey.com>
3240 * symmisc.c (print_objfile_statistics, dump_objfile)
3241 (maintenance_print_symbols): Use compunit_filetabs.
3242 * source.c (forget_cached_source_info_for_objfile): Use
3244 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
3245 (ALL_FILETABS): Use compunit_filetabs.
3246 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
3247 * coffread.c (coff_symtab_read): Use compunit_filetabs.
3249 2019-01-09 Tom Tromey <tom@tromey.com>
3251 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
3252 (compunit_filetabs): New.
3253 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
3255 (info_sources_command, make_source_files_completion_list): Remove
3257 * symmisc.c (print_objfile_statistics, dump_objfile)
3258 (maintenance_print_symbols): Remove declaration.
3259 (maintenance_info_symtabs): Use compunit_filetabs.
3260 (maintenance_info_line_tables): Likewise.
3261 * source.c (select_source_symtab): Change local variable name.
3262 (forget_cached_source_info_for_objfile): Remove declaration.
3263 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
3264 * objfiles.c (objfile_relocate1): Remove declaration.
3265 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
3267 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
3268 * coffread.c (coff_symtab_read): Remove declaration.
3269 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3272 2019-01-09 Tom Tromey <tom@tromey.com>
3274 * symtab.c (lookup_objfile_from_block)
3275 (find_pc_sect_compunit_symtab, search_symbols)
3276 (default_collect_symbol_completion_matches_break_on): Use
3278 * objfiles.h (ALL_COMPUNITS): Remove.
3279 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
3280 * cp-support.c (add_symbol_overload_list_qualified): Use
3282 * ada-lang.c (ada_collect_symbol_completion_matches)
3283 (ada_add_global_exceptions): Use objfile_compunits.
3285 2019-01-09 Tom Tromey <tom@tromey.com>
3287 * source.c (select_source_symtab)
3288 (forget_cached_source_info_for_objfile): Remove declaration.
3289 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
3291 * maint.c (count_symtabs_and_blocks): Remove declaration.
3292 * cp-support.c (add_symbol_overload_list_qualified): Remove
3294 * coffread.c (coff_symtab_read): Remove declaration.
3295 * symtab.c (lookup_symbol_in_objfile_symtabs)
3296 (basic_lookup_transparent_type_1): Use objfile_compunits.
3297 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
3298 (info_sources_command, search_symbols)
3299 (default_collect_symbol_completion_matches_break_on)
3300 (make_source_files_completion_list): Remove declaration.
3301 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
3302 (ada_collect_symbol_completion_matches)
3303 (ada_add_global_exceptions): Remove declaration.
3304 * linespec.c (iterate_over_all_matching_symtabs): Use
3306 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
3307 (class objfile_compunits): New.
3308 (ALL_COMPUNITS): Use objfile_compunits.
3309 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
3310 (maintenance_check_symtabs, maintenance_info_line_tables): Use
3312 * objfiles.c (objfile_relocate1): Use objfile_compunits.
3314 2019-01-09 Tom Tromey <tom@tromey.com>
3316 * symtab.c (search_symbols)
3317 (default_collect_symbol_completion_matches_break_on): Use
3319 * ada-lang.c (ada_lookup_simple_minsym)
3320 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
3321 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
3322 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
3324 * coffread.c (coff_symfile_read): Use objfile_msymbols.
3325 * symmisc.c (dump_msymbols): Use objfile_msymbols.
3326 * objc-lang.c (find_methods): Use objfile_msymbols.
3327 (info_selectors_command, info_classes_command): Likewise.
3328 * stabsread.c (scan_file_globals): Use objfile_msymbols.
3329 * objfiles.h (class objfile_msymbols): New.
3330 (ALL_OBJFILE_MSYMBOLS): Remove.
3331 (ALL_MSYMBOLS): Remove.
3333 2019-01-09 Tom Tromey <tom@tromey.com>
3335 * common/next-iterator.h (next_adapter): Add Iterator template
3337 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
3338 (class all_objfiles_safe): New.
3339 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
3340 * objfiles.c (put_objfile_before): Update comment.
3341 (add_separate_debug_objfile): Likewise.
3342 (free_all_objfiles): Use all_objfiles_safe.
3343 (objfile_purge_solibs): Likewise.
3345 2019-01-09 Tom Tromey <tom@tromey.com>
3347 * symtab.c (iterate_over_symtabs, matching_obj_sections)
3348 (expand_symtab_containing_pc, lookup_static_symbol)
3349 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
3350 (find_symbol_at_address, find_line_symtab, find_main_name): Use
3352 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
3353 * breakpoint.c (create_overlay_event_breakpoint)
3354 (create_longjmp_master_breakpoint)
3355 (create_std_terminate_master_breakpoint)
3356 (create_exception_master_breakpoint): Use all_objfiles.
3357 * linux-thread-db.c (try_thread_db_load_from_pdir)
3358 (has_libpthread): Use all_objfiles.
3359 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
3360 * linespec.c (iterate_over_all_matching_symtabs)
3361 (search_minsyms_for_name): Use all_objfiles.
3362 * maint.c (maintenance_info_sections): Use all_objfiles.
3363 * main.c (captured_main_1): Use all_objfiles.
3364 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
3365 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
3366 * guile/scm-pretty-print.c
3367 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
3368 * solib-spu.c (append_ocl_sos): Use all_objfiles.
3369 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
3370 (maintenance_print_msymbols): Use all_objfiles.
3371 * source.c (select_source_symtab): Use all_objfiles.
3372 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
3373 * symfile.c (remove_symbol_file_command)
3374 (expand_symtabs_matching, map_symbol_filenames): Use
3376 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
3378 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
3379 * objc-lang.c (find_methods): Use all_objfiles.
3380 * objfiles.c (have_partial_symbols, have_full_symbols)
3381 (have_minimal_symbols, qsort_cmp)
3382 (default_iterate_over_objfiles_in_search_order): Use
3384 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
3385 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
3386 (maintenance_check_psymtabs): Use all_objfiles.
3387 (ALL_PSYMTABS): Remove.
3388 * compile/compile-object-run.c (do_module_cleanup): Use
3390 * blockframe.c (find_pc_partial_function): Use all_objfiles.
3391 * cp-support.c (add_symbol_overload_list_qualified): Use
3393 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
3395 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
3396 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
3398 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
3399 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
3400 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3402 * solib.c (solib_read_symbols): Use all_objfiles
3404 2019-01-09 Tom Tromey <tom@tromey.com>
3406 * probe.c (parse_probes_in_pspace): Use all_objfiles.
3407 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
3409 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
3410 * symmisc.c (print_symbol_bcache_statistics)
3411 (print_objfile_statistics, maintenance_print_objfiles)
3412 (maintenance_info_symtabs, maintenance_check_symtabs)
3413 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
3415 * source.c (forget_cached_source_info): Use all_objfiles.
3416 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
3417 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
3418 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
3419 * objfiles.c (update_section_map): Use all_objfiles.
3420 (shared_objfile_contains_address_p): Likewise.
3421 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
3422 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
3424 2019-01-09 Tom Tromey <tom@tromey.com>
3426 * common/next-iterator.h: New file.
3427 * objfiles.h (class all_objfiles): New.
3428 (struct objfile_iterator): New.
3430 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3432 * NEWS: Move the description of the changed "frame", "select-frame",
3433 and "info frame" commands to the Changed commands section.
3435 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
3437 * gdbtypes.c (check_stub_method_group): Remove handling of old
3439 * linespec.c (find_methods): Likewise.
3440 * stabsread.c (read_member_functions): Likewise.
3441 * valops.c (search_struct_method): Likewise.
3442 (value_struct_elt_for_reference): Likewise.
3443 * NEWS: Mention this change.
3445 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
3447 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
3449 * source.c (print_source_lines_base): Update line number check.
3450 (print_source_lines): New function.
3451 (source_lines_range::source_lines_range): New function.
3452 * source.h (class source_lines_range): New class.
3453 (print_source_lines): New declaration.
3455 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3457 * linespec.c (linespec_state_destructor): Free self->canonical_names.
3459 2019-01-08 Tom Tromey <tom@tromey.com>
3460 Simon Marchi <simon.marchi@ericsson.com>
3463 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
3464 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
3465 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
3466 * f-exp.y (DOLLAR_VARIABLE): Likewise.
3467 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
3468 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
3470 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3472 * source.c (select_source_symtab): Move header comment to
3473 declaration in source.h.
3474 (forget_cached_source_info_for_objfile): Likewise.
3475 (forget_cached_source_info): Likewise.
3476 (identify_source_line): Likewise.
3477 * source.h (identify_source_line): Move declaration from symtab.h
3478 and add comment from source.c
3479 (print_source_lines): Likewise.
3480 (forget_cached_source_info_for_objfile): Likewise.
3481 (forget_cached_source_info): Likewise.
3482 (select_source_symtab): Likewise.
3483 (enum print_source_lines_flag): Move definition from symtab.h.
3484 * symtab.h (identify_source_line): Move declaration to source.h.
3485 (print_source_lines): Likewise.
3486 (forget_cached_source_info_for_objfile): Likewise.
3487 (forget_cached_source_info): Likewise.
3488 (select_source_symtab): Likewise.
3489 (enum print_source_lines_flag): Move definition to source.h.
3490 * tui/tui-hooks.c: Add 'source.h' include.
3492 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3494 * source.c (print_source_lines_base): Handle requests to print
3495 reverse line number sequences, and guard against empty lines
3498 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3500 * source.c (print_source_lines_base): Fix skip of '\r' if next
3503 2019-01-06 Tom Tromey <tom@tromey.com>
3505 * c-exp.y (struct c_parse_state) <macro_original_text,
3506 expansion_obstack>: New member.
3507 (macro_original_text, expansion_obstack): Remove globals.
3508 (scan_macro_expansion, scanning_macro_expansion)
3509 (finished_macro_expansion): Update.
3510 (scan_macro_cleanup): Remove.
3511 (yylex, c_parse): Update.
3513 2019-01-06 Tom Tromey <tom@tromey.com>
3515 * c-exp.y (struct c_parse_state) <strings>: New member.
3516 (operator_stoken): Update.
3518 2019-01-06 Tom Tromey <tom@tromey.com>
3520 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
3521 (union type_stack_elt) <typelist_val>: Now a pointer to
3523 (type_stack_cleanup): Don't declare.
3524 (push_typelist): Update.
3525 * parse.c (pop_typelist): Return a std::vector.
3526 (push_typelist): Take a std::vector.
3527 (follow_types): Update. Do not free args.
3528 (type_stack_cleanup): Remove.
3529 * c-exp.y (struct c_parse_state): New.
3530 (cpstate): New global.
3531 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
3532 (nonempty_typelist): Update.
3533 (func_mod): Create a new vector.
3534 (c_parse): Create a c_parse_state.
3535 (check_parameter_typelist): Do not delete params.
3536 (function_method): Update. Do not delete type_list.
3538 2019-01-06 Tom Tromey <tom@tromey.com>
3541 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
3543 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
3544 (print_return_value): Likewise.
3546 2019-01-05 Tom Tromey <tom@tromey.com>
3548 * contrib/cleanup_check.py: Remove.
3549 * contrib/gcc-with-excheck: Remove.
3550 * contrib/exsummary.py: Remove.
3551 * contrib/excheck.py: Remove.
3553 2019-01-05 Joel Brobecker <brobecker@adacore.com>
3555 * thread.c (delete_thread_1): Add gdb_assert that THR is not
3556 NULL. Initialize tpprev to NULL instead of assigning it
3557 to NULL on the next statement.
3558 * windows-nat.c (windows_delete_thread): Remove check for
3559 main_thread_id before printing thread exit notifications.
3560 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
3561 Remove thread ID check against main_thread_id.
3562 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
3563 windows_delete_thread.
3564 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
3566 2019-01-04 Tom Tromey <tom@tromey.com>
3568 * compile/compile.c (_initialize_compile): Use upper case for
3569 metasyntactic variables.
3570 * symmisc.c (_initialize_symmisc): Use upper case for
3571 metasyntactic variables.
3572 * psymtab.c (_initialize_psymtab): Use upper case for
3573 metasyntactic variables.
3574 * demangle.c (demangle_command): Use upper case for metasyntactic
3576 (_initialize_demangler): Likewise.
3577 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
3580 2019-01-03 Tom Tromey <tom@tromey.com>
3582 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
3584 2019-01-03 Tom Tromey <tom@tromey.com>
3586 * python/py-symtab.c (salpy_str): Update.
3587 (struct salpy_sal_object) <symtab>: Now a PyObject.
3588 (salpy_dealloc): Update.
3589 (del_objfile_sal): Use gdbpy_ref.
3591 2019-01-03 Tom Tromey <tom@tromey.com>
3593 * python/py-type.c (convert_field): Use new_reference. Return
3595 (make_fielditem): Return gdbpy_ref.
3596 (typy_fields): Update.
3597 (typy_getitem): Update.
3598 (field_name): Return gdbpy_ref. Use new_reference.
3599 (typy_iterator_iternext): Update.
3601 2019-01-03 Tom Tromey <tom@tromey.com>
3603 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
3605 2019-01-03 Tom Tromey <tom@tromey.com>
3607 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
3608 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
3609 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
3610 (pspy_set_frame_filters, pspy_set_frame_unwinders)
3611 (pspy_set_type_printers): Likewise.
3612 * python/py-function.c (fnpy_init): Use gdbpy_ref.
3613 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
3614 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
3615 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
3616 (objfpy_set_type_printers): Likewise.
3618 2019-01-03 Tom Tromey <tom@tromey.com>
3620 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
3621 (gdbpy_print_stack): Use gdbpy_err_fetch.
3622 * python/python-internal.h (class gdbpy_err_fetch): New class.
3623 (class gdbpy_enter) <m_error_type, m_error_value,
3624 m_error_traceback>: Remove.
3625 <m_error>: New member.
3626 (gdbpy_exception_to_string): Don't declare.
3627 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
3628 * python/py-value.c (convert_value_from_python): Use
3630 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
3631 gdbpy_exception_to_string.
3632 (gdbpy_handle_exception): Use gdbpy_err_fetch.
3633 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3636 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3638 * linux-nat.c (delete_lwp_cleanup): Delete.
3639 (struct lwp_deleter): New struct.
3640 (lwp_info_up): New typedef.
3641 (linux_nat_target::follow_fork): Delete cleanup, and make use of
3644 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3646 * linux-fork.c (class scoped_switch_fork_info): New class.
3647 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
3649 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3651 * valops.c (find_overload_match): Remove use of null_cleanup, and
3652 calls to do_cleanups.
3654 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3656 * compile/compile-cplus-types.c
3657 (compile_cplus_instance::decl_name): Handle changes to
3659 * cp-support.c (cp_func_name): Update header comment, update
3661 * cp-support.h (cp_func_name): Update return type in declaration.
3662 * valops.c (find_overload_match): Move temp_func local to top
3663 level of function and change its type. Use temp_func to hold and
3664 delete temporary string obtained from cp_func_name.
3666 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3668 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
3669 gdb::char_vector, remove cleanup, and update uses of `msg`.
3671 2019-01-03 Jim Wilson <jimw@sifive.com>
3673 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
3675 2019-01-02 Tom Tromey <tom@tromey.com>
3677 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
3678 (tdesc_parse_xml): Remove cleanups.
3679 * target-descriptions.h (make_cleanup_free_target_description):
3681 (target_desc_deleter): New struct.
3682 (target_desc_up): New typedef.
3683 * target-descriptions.c (target_desc_deleter::operator()): Rename
3684 from free_target_description.
3685 (make_cleanup_free_target_description): Remove.
3687 2019-01-02 Tom Tromey <tom@tromey.com>
3689 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
3690 constructor, destructor.
3691 (linespec_parser): Remove typedef.
3692 (~linespec_parser): Rename from linespec_parser_delete.
3693 (linespec_lex_to_end, linespec_complete_label)
3694 (linespec_complete): Update.
3695 (decode_line_full): Remove cleanups.
3696 (decode_line_1): Update.
3698 2019-01-02 Tom Tromey <tom@tromey.com>
3700 * python/python-internal.h (inferior_to_inferior_object): Change
3702 * python/py-exitedevent.c (create_exited_event_object): Update.
3703 * python/py-inferior.c (inferior_to_inferior_object): Return
3705 (python_new_inferior, python_inferior_deleted)
3706 (thread_to_thread_object, delete_thread_object)
3707 (build_inferior_list, gdbpy_selected_inferior): Update.
3708 * python/py-infthread.c (create_thread_object): Update. Also fail
3709 if inferior_to_inferior_object fails.
3711 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
3713 * inferior.h (class inferior) <displaced_step_state>: New field.
3714 * infrun.h (struct displaced_step_state): Move here from
3715 infrun.c. Initialize fields, add constructor.
3716 <inf>: Remove field.
3717 <reset>: New method.
3718 * infrun.c (struct displaced_step_inferior_state): Move to
3720 (displaced_step_inferior_states): Remove.
3721 (get_displaced_stepping_state): Adust.
3722 (displaced_step_in_progress_any_inferior): Adjust.
3723 (displaced_step_in_progress_thread): Adjust.
3724 (displaced_step_in_progress): Adjust.
3725 (add_displaced_stepping_state): Remove.
3726 (get_displaced_step_closure_by_addr): Adjust.
3727 (remove_displaced_stepping_state): Remove.
3728 (infrun_inferior_exit): Call displaced_step_state.reset.
3729 (use_displaced_stepping): Don't check for NULL.
3730 (displaced_step_prepare_throw): Call
3731 get_displaced_stepping_state.
3732 (displaced_step_fixup): Don't check for NULL.
3733 (prepare_for_detach): Don't check for NULL.
3735 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3737 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
3738 in case of call that did not complete.
3740 2019-01-02 Andrey Utkin <autkin@undo.io>
3742 * symfile.c (find_separate_debug_file): Fix search of debug files for
3745 2019-01-02 Tom Tromey <tom@tromey.com>
3747 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
3749 * python/py-frame.c (frapy_older): Remove cast.
3750 (frapy_newer): Likewise.
3751 * python/py-breakpoint.c (local_setattro): Remove cast.
3752 * python/py-arch.c (archpy_name): Remove local variable.
3753 * python/py-type.c (gdbpy_lookup_type): Remove cast.
3755 2019-01-02 Joel Brobecker <brobecker@adacore.com>
3757 * unittests/basic_string_view/element_access/char/empty.cc:
3758 Fix year range in copyright header.
3760 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
3762 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
3764 <operator==>: Update with for removed field.
3766 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
3767 <isa_features>: ...this.
3768 <abi_features>: New field.
3769 (riscv_isa_flen): Update comment.
3770 (riscv_abi_xlen): New declaration.
3771 (riscv_abi_flen): New declaration.
3772 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
3774 (riscv_abi_xlen): New function.
3775 (riscv_isa_flen): Update to get answer from isa_features.
3776 (riscv_abi_flen): New function.
3777 (riscv_has_fp_abi): Update to get answer from abi_features.
3778 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
3780 (riscv_call_info) <xlen, flen>: Update comment.
3781 (riscv_call_arg_struct): Remove invalid assertions
3782 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
3784 (riscv_gdbarch_init): Gather isa features and abi features
3785 separately, ensure both match on the gdbarch when reusing an old
3786 gdbarch. Relax an error check to allow 32-bit abi float to run on
3787 a target with 64-bit float hardware.
3789 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3791 * source.c (search_command_helper): Stop reverse search
3792 when line 1 has been searched.
3794 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3796 * record-full.c (record_full_base_target::close): Rewrite
3797 record_full_core_buf_list free logic.
3799 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3801 * break-catch-syscall.c (print_one_catch_syscall): xfree
3804 2019-01-01 Joel Brobecker <brobecker@adacore.com>
3806 * top.c (print_gdb_version): Update Copyright year in version
3809 2019-01-01 Joel Brobecker <brobecker@adacore.com>
3811 Update copyright year range in all GDB files.
3813 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
3815 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
3817 For older changes see ChangeLog-2018.
3823 version-control: never