1 2019-03-22 Alan Hayward <alan.hayward@arm.com>
2 Jiong Wang <jiong.wang@arm.com>
4 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
6 (aarch64_pseudo_register_name): Likewise.
7 (aarch64_pseudo_register_type): Likewise.
8 (aarch64_pseudo_register_reggroup_p): Likewise.
9 (aarch64_gdbarch_init): Add pauth registers.
10 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
11 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
12 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
13 (struct gdbarch_tdep): Add regnum for ra_state.
15 2019-03-22 Alan Hayward <alan.hayward@arm.com>
16 Jiong Wang <jiong.wang@arm.com>
18 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
20 2019-03-22 Alan Hayward <alan.hayward@arm.com>
21 Jiong Wang <jiong.wang@arm.com>
23 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
25 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
26 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
27 (aarch64_gdbarch_init): Add puth registers.
28 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
29 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
30 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
32 2019-03-22 Alan Hayward <alan.hayward@arm.com>
33 Jiong Wang <jiong.wang@arm.com>
36 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
37 * aarch64-linux-tdep.c
38 (aarch64_linux_core_read_description): Likewise.
39 (aarch64_linux_get_hwcap): New function.
40 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
41 (aarch64_linux_get_hwcap): New declaration.
43 2019-03-22 Alan Hayward <alan.hayward@arm.com>
44 Jiong Wang <jiong.wang@arm.com>
47 (aarch64_linux_nat_target::read_description): Add pauth param.
48 * aarch64-linux-tdep.c
49 (aarch64_linux_core_read_description): Likewise.
50 * aarch64-tdep.c (struct target_desc): Add in pauth.
51 (aarch64_read_description): Add pauth param.
52 (aarch64_gdbarch_init): Likewise.
53 * aarch64-tdep.h (aarch64_read_description): Likewise.
54 * arch/aarch64.c (aarch64_create_target_description): Likewise.
55 * arch/aarch64.h (aarch64_create_target_description): Likewise.
56 * features/Makefile: Add new files.
57 * features/aarch64-pauth.c: New file.
58 * features/aarch64-pauth.xml: New file.
60 2019-03-20 Tom Tromey <tromey@adacore.com>
62 * infrun.c (handle_inferior_event): Rename from
63 handle_inferior_event_1. Create a scoped_value_mark.
64 (handle_inferior_event): Remove.
66 2019-03-19 Tom Tromey <tromey@adacore.com>
68 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
69 * infrun.h (print_stop_event): Add "displays" parameter.
70 * infrun.c (print_stop_event): Add "displays" parameter.
72 2019-03-19 Pedro Alves <palves@redhat.com>
74 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
75 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
76 to -1. Fix TABs vs spaces.
77 (tui_ui_out::tui_ui_out): Don't initialize fields here.
78 * tui/tui-out.h (tui_ui_out) Add intro comments.
79 <m_line, m_start_of_line>: In-class initialize, and add describing
82 2019-03-18 Alan Hayward <alan.hayward@arm.com>
84 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
86 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
88 2019-03-18 Pedro Alves <palves@redhat.com>
89 Eli Zaretskii <eliz@gnu.org>
91 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
92 m_line and m_start_of_line.
94 2019-03-18 Eli Zaretskii <eliz@gnu.org>
96 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
97 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
98 it returns a newline. This fixes a regression in TU mode, whereby
99 the next line is output on the same screen line as the user input.
101 2019-03-18 Tom Tromey <tromey@adacore.com>
103 * minsyms.c (minimal_symbol_reader::install): Remove call to
106 2019-03-18 Pedro Alves <palves@redhat.com>
108 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
110 (apply_style): New, factored out from ...
111 (apply_ansi_escape): ... this. Handle reverse video mode.
112 (tui_set_reverse_mode): New function.
113 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
114 * tui/tui-winsource.c (tui_show_source_line): Use
115 tui_set_reverse_mode instead of setting A_STANDOUT.
116 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
119 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
121 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
124 2019-03-18 Tom Tromey <tromey@adacore.com>
126 * ada-lang.c (empty_array): Add "high" parameter.
127 (ada_evaluate_subexp): Update.
129 2019-03-17 Sergei Trofimovich <siarheit@google.com>
131 * unittests/string_view-selftests.c: Define
132 _initialize_string_view_selftests unconditionally.
134 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
137 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
139 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
142 * windows-nat.c (display_selector): Fix format specifiers.
144 2019-03-17 Eli Zaretskii <eliz@gnu.org>
146 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
147 tui_refill_source_window instead of tui_refresh_win, to update the
148 current execution line. This fixes redisplay of the current line
149 when stepping through the code with "next" or "step".
151 2019-03-16 Eli Zaretskii <eliz@gnu.org>
153 * source-cache.c (source_cache::get_source_lines): Call
154 find_source_lines to initialize s->nlines. This fixes vertical
155 scrolling of TUI source window when the DOWN arrow is pressed.
157 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
159 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
160 linux-thread-db.c (_initialize_thread_db): Likewise.
162 2019-03-16 Eli Zaretskii <eliz@gnu.org>
164 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
165 wclrtoeol in tui_show_source_line". This reverts changes made in
166 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
168 2019-03-15 Tom Tromey <tom@tromey.com>
170 * symtab.h (struct minimal_symbol): Derive from
172 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
173 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
174 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
175 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
176 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
177 (MSYMBOL_SEARCH_NAME): Update.
178 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
179 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
180 * minsyms.c (minimal_symbol_reader::record_full): Update.
182 2019-03-15 Tom Tromey <tom@tromey.com>
184 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
186 2019-03-15 Tom Tromey <tom@tromey.com>
188 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
190 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
192 * minsyms.c (lookup_minimal_symbol_by_pc_section)
193 (build_minimal_symbol_hash_tables)
194 (minimal_symbol_reader::install): Update.
196 2019-03-15 Tom Tromey <tom@tromey.com>
198 * symtab.c (create_demangled_names_hash): Update.
199 (symbol_set_names): Update.
200 * objfiles.h (struct objfile_per_bfd_storage)
201 <demangled_names_hash>: Now an htab_up.
202 * objfiles.c (objfile_per_bfd_storage): Simplify.
204 2019-03-15 Tom Tromey <tom@tromey.com>
206 * objfiles.h (struct objfile_per_bfd_storage): Declare
208 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
210 (get_objfile_bfd_data): Use new. Don't initialize
212 (free_objfile_per_bfd_storage): Remove.
213 (objfile_bfd_data_free, objfile::~objfile): Use delete.
215 2019-03-15 Tom Tromey <tom@tromey.com>
217 * symfile.c (reread_symbols): Update.
218 * objfiles.c (objfile::objfile): Update.
219 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
220 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
222 (minimal_symbol_reader::install): Update.
223 (terminate_minimal_symbol_table): Remove.
224 * jit.c (jit_object_close_impl): Update.
226 2019-03-15 Tom Tromey <tom@tromey.com>
228 * minsyms.c (minimal_symbol_reader::record_full): Remove some
231 2019-03-15 Tom Tromey <tom@tromey.com>
233 * objfiles.h (struct objfile_per_bfd_storage)
234 <demangled_hash_languages>: Now a bitset.
235 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
236 (lookup_minimal_symbol): Update.
238 2019-03-15 Tom Tromey <tom@tromey.com>
240 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
241 Don't return the symbol.
242 * coffread.c (record_minimal_symbol): Use record_full.
244 2019-03-14 Eli Zaretskii <eliz@gnu.org>
246 The MS-Windows port of ncurses fails to switch to a color pair if
247 one or both of the colors are the implicit default colors. This
248 change records the default colors when TUI is initialized, and
249 then specifies them explicitly when a color pair uses the default
250 colors. This allows color styling in TUI mode on MS-Windows.
252 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
254 (tui_initialize_io) [__MINGW32__]: Record the default terminal
255 colors in ncurses_norm_attr.
256 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
257 "none", replace it with the default color recorded in
260 2019-03-14 Tom Tromey <tromey@adacore.com>
262 * source-cache.h (class source_cache) <get_source_lines>: Return
264 * source-cache.c (source_cache::extract_lines): Handle case where
265 first_pos==npos. Return std::string.
266 (source_cache::get_source_lines): Update.
268 2019-03-14 Tom Tromey <tromey@adacore.com>
270 * NEWS: Add item for "style sources" commands.
271 * source-cache.c (source_cache::get_source_lines): Check
273 * cli/cli-style.c (source_styling): New global.
274 (_initialize_cli_style): Add "style sources" commands.
275 (show_style_sources): New function.
276 * cli/cli-style.h (source_styling): Declare.
278 2019-03-14 Pedro Alves <palves@redhat.com>
279 Tom Tromey <tromey@adacore.com>
281 * tui/tui-winsource.h (tui_refill_source_window): Declare.
282 * tui/tui-winsource.c (tui_refill_source_window): New function,
284 (tui_horizontal_source_scroll): ... here. Move some logic.
285 * cli/cli-style.c (set_style_enabled): Notify new observable.
286 * tui/tui-hooks.c (tui_redisplay_source): New function.
287 (tui_attach_detach_observers): Attach or detach
288 tui_redisplay_source.
289 * observable.h (source_styling_changed): New observable.
290 * observable.c: Define source_styling_changed observable.
292 2019-03-13 Tom Tromey <tromey@adacore.com>
294 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
295 (i386_gnu_nat_target::store_registers): Update.
296 * target-debug.h (target_debug_print_std_string): New macro.
297 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
298 * windows-tdep.c (display_one_tib): Update.
299 * tui/tui-stack.c (tui_make_status_line): Update.
300 * top.c (print_inferior_quit_action): Update.
301 * thread.c (thr_try_catch_cmd): Update.
302 (add_thread_with_info): Update.
303 (thread_target_id_str): Update.
304 (thr_try_catch_cmd): Update.
305 (thread_command): Update.
306 (thread_find_command): Update.
307 * record-btrace.c (record_btrace_target::info_record)
308 (record_btrace_resume_thread, record_btrace_target::resume)
309 (record_btrace_cancel_resume, record_btrace_step_thread)
310 (record_btrace_target::wait, record_btrace_target::wait)
311 (record_btrace_target::wait, record_btrace_target::stop): Update.
312 * progspace.c (print_program_space): Update.
313 * process-stratum-target.c
314 (process_stratum_target::thread_address_space): Update.
315 * linux-fork.c (linux_fork_mourn_inferior)
316 (detach_checkpoint_command, info_checkpoints_command)
317 (linux_fork_context): Update.
318 (linux_fork_detach): Update.
319 (class scoped_switch_fork_info): Update.
320 (delete_checkpoint_command): Update.
321 * infrun.c (follow_fork_inferior): Update.
322 (follow_fork_inferior): Update.
323 (proceed_after_vfork_done): Update.
324 (handle_vfork_child_exec_or_exit): Update.
325 (follow_exec): Update.
326 (displaced_step_prepare_throw): Update.
327 (displaced_step_restore): Update.
328 (start_step_over): Update.
330 (clear_proceed_status_thread): Update.
332 (print_target_wait_results): Update.
333 (do_target_wait): Update.
334 (context_switch): Update.
335 (stop_all_threads): Update.
336 (restart_threads): Update.
337 (finish_step_over): Update.
338 (handle_signal_stop): Update.
339 (switch_back_to_stepped_thread): Update.
340 (keep_going_pass_signal): Update.
341 (print_exited_reason): Update.
342 (normal_stop): Update.
343 * inferior.c (inferior_pid_to_str): Change return type.
344 (print_selected_inferior): Update.
345 (add_inferior): Update.
346 (detach_inferior): Update.
347 * dummy-frame.c (fprint_dummy_frames): Update.
348 * dcache.c (dcache_info_1): Update.
349 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
350 (btrace_fetch, btrace_clear): Update.
351 * linux-tdep.c (linux_core_pid_to_str): Change return type.
352 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
354 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
355 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
356 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
357 * gdbarch.c, gdbarch.h: Rebuild.
358 * gdbarch.sh (core_pid_to_str): Change return type.
359 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
361 (windows_nat_target::pid_to_str): Change return type.
362 (windows_delete_thread): Update.
363 (windows_nat_target::attach): Update.
364 (windows_nat_target::files_info): Update.
365 * target-delegates.c: Rebuild.
366 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
368 (sol_thread_target::pid_to_str): Change return type.
369 * remote.c (class remote_target) <pid_to_str>: Change return
371 (remote_target::pid_to_str): Change return type.
372 (extended_remote_target::attach, remote_target::remote_stop_ns)
373 (remote_target::remote_notif_remove_queued_reply)
374 (remote_target::push_stop_reply, remote_target::disable_btrace):
376 (extended_remote_target::attach): Update.
377 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
379 (gdbsim_target::pid_to_str): Change return type.
380 * ravenscar-thread.c (struct ravenscar_thread_target)
381 <pid_to_str>: Change return type.
382 (ravenscar_thread_target::pid_to_str): Change return type.
383 * procfs.c (class procfs_target) <pid_to_str>: Change return
385 (procfs_target::pid_to_str): Change return type.
386 (procfs_target::attach): Update.
387 (procfs_target::detach): Update.
388 (procfs_target::fetch_registers): Update.
389 (procfs_target::store_registers): Update.
390 (procfs_target::wait): Update.
391 (procfs_target::files_info): Update.
392 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
393 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
395 (nto_procfs_target::pid_to_str): Change return type.
396 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
397 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
399 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
401 (attach_proc_task_lwp_callback, get_detach_signal)
402 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
403 (linux_nat_target::resume, wait_lwp, stop_callback)
404 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
405 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
406 (linux_nat_wait_1, resume_stopped_resumed_lwps)
407 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
408 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
410 (inf_ptrace_target::attach): Update.
411 (inf_ptrace_target::files_info): Update.
412 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
414 (go32_nat_target::pid_to_str): Change return type.
415 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
416 (gnu_nat_target::wait): Update.
417 (gnu_nat_target::wait): Update.
418 (gnu_nat_target::resume): Update.
419 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
420 (fbsd_nat_target::wait): Update.
421 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
423 (darwin_nat_target::attach): Update.
424 * corelow.c (class core_target) <pid_to_str>: Change return type.
425 (core_target::pid_to_str): Change return type.
426 * target.c (normal_pid_to_str): Change return type.
427 (default_pid_to_str): Likewise.
428 (target_pid_to_str): Change return type.
429 (target_translate_tls_address): Update.
430 (target_announce_detach): Update.
431 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
433 (bsd_uthread_target::pid_to_str): Change return type.
434 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
436 (bsd_kvm_target::pid_to_str): Change return type.
437 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
439 (aix_thread_target::pid_to_str): Change return type.
440 * target.h (struct target_ops) <pid_to_str>: Change return type.
441 (target_pid_to_str, normal_pid_to_str): Likewise.
442 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
444 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
446 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
448 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
450 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
452 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
455 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
457 * NEWS: Mention that the new default MI version is 3. Mention
458 changes to the output of commands and events that deal with
459 multi-location breakpoints.
460 * breakpoint.c: Include "mi/mi-out.h".
461 (print_one_breakpoint): Change output syntax if using MI version
463 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
465 (mi_multi_location_breakpoint_output_fixed): New.
466 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
467 (mi_cmd_fix_multi_location_breakpoint_output): New.
468 (mi_multi_location_breakpoint_output_fixed): New.
469 * mi/mi-cmds.c (mi_cmds): Register command
470 -fix-multi-location-breakpoint-output.
471 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
474 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
476 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
477 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
478 instantiate mi_ui_out based on interpreter name.
479 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
480 * mi/mi-main.c (mi_load_progress): Likewise.
482 2019-03-12 John Baldwin <jhb@FreeBSD.org>
484 * NEWS: Combine separate "New targets" sections for 8.3.
486 2019-03-12 John Baldwin <jhb@FreeBSD.org>
488 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
489 (ppcfbsd_init_abi): Install gdbarch
490 "fetch_tls_load_module_address" and "get_thread_local_address"
493 2019-03-12 John Baldwin <jhb@FreeBSD.org>
495 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
496 (riscv_fbsd_init_abi): Install gdbarch
497 "fetch_tls_load_module_address" and "get_thread_local_address"
500 2019-03-12 John Baldwin <jhb@FreeBSD.org>
502 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
503 (i386fbsd_init_abi): Install gdbarch
504 "fetch_tls_load_module_address" and "get_thread_local_address"
507 2019-03-12 John Baldwin <jhb@FreeBSD.org>
509 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
510 (amd64fbsd_init_abi): Install gdbarch
511 "fetch_tls_load_module_address" and "get_thread_local_address"
514 2019-03-12 John Baldwin <jhb@FreeBSD.org>
516 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
517 (struct fbsd_pspace_data): New type.
518 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
519 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
520 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
521 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
522 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
524 2019-03-12 John Baldwin <jhb@FreeBSD.org>
526 * gdbtypes.c (lookup_struct_elt): New function.
527 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
528 * gdbtypes.h (struct struct_elt): New type.
529 (lookup_struct_elt): New prototype.
531 2019-03-12 John Baldwin <jhb@FreeBSD.org>
533 * gdbtypes.c (lookup_struct_elt_type): Update comment and
534 remove disabled code block.
536 2019-03-12 John Baldwin <jhb@FreeBSD.org>
538 * gdbarch.sh (get_thread_local_address): New method.
539 * gdbarch.h, gdbarch.c: Regenerate.
540 * target.c (target_translate_tls_address): Use
541 gdbarch_get_thread_local_address if present instead of
542 target::get_thread_local_address.
544 2019-03-12 John Baldwin <jhb@FreeBSD.org>
546 * target.h (target::get_thread_local_address): Update comment.
548 2019-03-12 John Baldwin <jhb@FreeBSD.org>
550 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
551 objfile->separate_debug_objfile_backlink if not NULL.
553 2019-03-12 John Baldwin <jhb@FreeBSD.org>
555 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
556 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
557 (amd64bsd_store_inferior_registers): Likewise.
558 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
559 Enable segment base registers.
560 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
561 PT_GETFSBASE and PT_GETGSBASE.
562 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
564 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
565 segment base registers.
566 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
568 2019-03-12 John Baldwin <jhb@FreeBSD.org>
570 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
571 Update calls to i386_target_description to add 'segments'
573 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
574 add segment base registers.
575 * arch/i386.c (i386_create_target_description): Add 'segments'
576 parameter to enable segment base registers.
577 * arch/i386.h (i386_create_target_description): Likewise.
578 * features/i386/32bit-segments.xml: New file.
579 * features/i386/32bit-segments.c: Generate.
580 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
581 call to i386_target_description to add 'segments' parameter.
582 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
583 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
584 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
585 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
586 if feature is present.
587 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
588 Add 'segments' parameter to call to i386_target_description.
589 (i386_target_description): Add 'segments' parameter to enable
590 segment base registers.
591 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
592 to call to i386_target_description.
593 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
594 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
595 Define I386_NUM_REGS.
596 (i386_target_description): Add 'segments' parameter to enable
597 segment base registers.
599 2019-03-12 Eli Zaretskii <eliz@gnu.org>
602 * source-cache.c: #undef open and close, to avoid unresolved
603 externals during linking.
605 2019-03-12 Tom Tromey <tromey@adacore.com>
607 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
608 const. Add initializers.
609 (_initialize_remote): Don't initialize ptid globals.
611 2019-03-12 Pedro Alves <palves@redhat.com>
613 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
615 2019-03-12 Pedro Alves <palves@redhat.com>
617 * cp-name-parser.y (main): Remove unused 'len' variable.
619 2019-03-12 Tom Tromey <tromey@adacore.com>
621 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
622 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
624 2019-03-12 Tom Tromey <tromey@adacore.com>
626 * linux-nat.c (iterate_over_lwps): Update.
627 (stop_callback): Remove parameter.
628 (stop_wait_callback, detach_callback, resume_set_callback)
629 (select_singlestep_lwp_callback, set_ignore_sigint)
630 (status_callback, resumed_callback, resume_clear_callback)
631 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
633 (linux_nat_target::detach, linux_nat_target::resume)
634 (linux_stop_and_wait_all_lwps, select_event_lwp)
635 (linux_nat_filter_event, linux_nat_wait_1)
636 (linux_nat_target::kill, linux_nat_target::stop)
637 (linux_nat_target::stop): Update.
638 (linux_nat_resume_callback): Change type.
639 (resume_stopped_resumed_lwps, count_events_callback)
640 (select_event_lwp_callback): Likewise.
641 (linux_stop_lwp, linux_nat_stop_lwp): Update.
642 * arm-linux-nat.c (struct update_registers_data): Remove.
643 (update_registers_callback): Change type.
644 (arm_linux_insert_hw_breakpoint1): Update.
645 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
647 (x86_linux_dr_set_addr): Update.
648 (x86_linux_dr_set_control): Update.
649 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
650 (iterate_over_lwps): Use gdb::function_view.
651 * nat/aarch64-linux-hw-point.c (struct
652 aarch64_dr_update_callback_param): Remove.
653 (debug_reg_change_callback): Change type.
654 (aarch64_notify_debug_reg_change): Update.
655 * s390-linux-nat.c (s390_refresh_per_info): Update.
657 2019-03-11 Tom Tromey <tromey@adacore.com>
659 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
660 redundant assignment to "this_cu".
662 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
664 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
666 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
668 * gdbtypes.c (rank_one_type_parm_set): New function extracted
670 (rank_one_type): ... this.
672 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
674 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
676 (rank_one_type): ... this.
678 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
680 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
682 (rank_one_type): ... this.
684 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
686 * gdbtypes.c (rank_one_type_parm_float): New function extracted
688 (rank_one_type): ... this.
690 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
692 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
694 (rank_one_type): ... this.
696 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
698 * gdbtypes.c (rank_one_type_parm_range): New function extracted
700 (rank_one_type): ... this.
702 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
704 * gdbtypes.c (rank_one_type_parm_char): 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_enum): 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_int): 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_func): 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_array): 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_ptr): New function extracted
736 (rank_one_type): ... this.
738 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
740 * inferior.c (initialize_inferiors): Ensure 'help set/show print
741 inferior-events' shows the example events.
743 2019-03-08 Eli Zaretskii <eliz@gnu.org>
745 Support styling on native MS-Windows console
748 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
749 on MS-Windows if $TERM is not defined.
751 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
753 * posix-hdep.c (gdb_console_fputs):
754 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
756 * ui-file.h (gdb_console_fputs): Add prototype.
758 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
759 back to fputs only if the former returns zero.
761 2019-03-07 Tom Tromey <tom@tromey.com>
763 * symmisc.c (print_symbol_bcache_statistics): Update.
764 (print_objfile_statistics): Update.
765 * symfile.c (allocate_symtab): Update.
766 * stabsread.c: Don't include bcache.h.
767 * psymtab.h (struct psymbol_bcache): Don't declare.
768 (class psymtab_storage) <psymbol_cache>: Now a bcache.
769 (psymbol_bcache_init, psymbol_bcache_free)
770 (psymbol_bcache_get_bcache): Don't declare.
771 * psymtab.c (struct psymbol_bcache): Remove.
772 (psymtab_storage::psymtab_storage): Update.
773 (psymtab_storage::~psymtab_storage): Update.
774 (psymbol_bcache_init, psymbol_bcache_free)
775 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
776 (add_psymbol_to_bcache): Update.
777 (allocate_psymtab): Update.
778 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
779 macro_cache>: No longer pointers.
780 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
781 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
782 * macrotab.c (macro_bcache): Update.
783 * macroexp.c: Don't include bcache.h.
784 * gdbtypes.c (check_types_worklist): Update.
785 (types_deeply_equal): Remove TRY/CATCH. Update.
786 * elfread.c (elf_symtab_read): Update.
787 * dwarf2read.c: Don't include bcache.h.
788 * buildsym.c (buildsym_compunit::get_macro_table): Update.
789 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
790 (print_bcache_statistics, bcache_memory_used): Don't declare.
791 (struct bcache): Move from bcache.c. Add constructor, destructor,
792 methods. Rename all data members.
793 * bcache.c (struct bcache): Move to bcache.h.
794 (bcache::expand_hash_table): Rename from expand_hash_table.
796 (bcache::insert): Rename from bcache_full.
797 (bcache::compare): Rename from bcache_compare.
798 (bcache_xmalloc): Remove.
799 (bcache::~bcache): Rename from bcache_xfree.
800 (bcache::print_statistics): Rename from print_bcache_statistics.
801 (bcache::memory_used): Rename from bcache_memory_used.
803 2019-03-07 Pedro Alves <palves@redhat.com>
805 * infrun.c (normal_stop): Also check for
806 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
808 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
810 * f-lang.c (value_from_host_double): Moved to...
811 * value.c (value_from_host_double): ...here.
812 * value.h (value_from_host_double): Declare.
813 * guile/scm-math.c (vlscm_convert_typed_number): Use
814 value_from_host_double.
815 (vlscm_convert_number): Likewise.
816 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
817 * python/py-value.c (convert_value_from_python): Likewise.
819 2019-03-06 Tom Tromey <tom@tromey.com>
821 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
823 2019-03-06 Tom Tromey <tom@tromey.com>
825 * utils.h (free_current_contents): Don't declare.
826 * utils.c (free_current_contents): Remove.
828 2019-03-06 Tom Tromey <tom@tromey.com>
830 * top.c (quit_force): Update.
831 * main.c (captured_command_loop): Update.
832 * common/new-op.c (operator new): Update.
833 * common/common-exceptions.c (struct catcher)
834 <save_cleanup_chain>: Remove member.
835 (exceptions_state_mc_init): Update.
836 (exception_try_scope_entry): Return nullptr.
837 (exception_try_scope_exit, exception_rethrow)
838 (throw_exception_sjlj, throw_exception_cxx): Update.
839 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
840 (all_cleanups, do_cleanups, discard_cleanups)
841 (discard_final_cleanups, save_cleanups, save_final_cleanups)
842 (restore_cleanups, restore_final_cleanups): Don't declare.
843 (do_final_cleanups): Remove parameter.
844 * common/cleanups.c (cleanup_chain, make_cleanup)
845 (make_cleanup_dtor, all_cleanups, do_cleanups)
846 (discard_my_cleanups, discard_cleanups)
847 (discard_final_cleanups, save_my_cleanups, save_cleanups)
848 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
849 (null_cleanup): Remove.
850 (do_final_cleanups): Remove parameter.
852 2019-03-06 Tom Tromey <tom@tromey.com>
854 * remote.c (remote_target::remote_parse_stop_reply): Use
857 2019-03-06 Tom Tromey <tom@tromey.com>
859 * stabsread.c (struct stabs_field_info): Rename from field_info.
860 <list, fnlist>: Add initializers.
861 <obstack>: New member.
862 (read_member_functions, read_struct_fields, read_baseclasses):
863 Allocate on obstack. Don't use cleanups.
864 (read_one_struct_field, read_member_functions, read_struct_fields)
865 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
866 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
867 (read_struct_type): Update.
869 2019-03-06 Tom Tromey <tom@tromey.com>
871 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
872 * common/filestuff.h (make_cleanup_close): Don't declare.
873 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
876 2019-03-06 Tom Tromey <tom@tromey.com>
878 * solib-aix.c: Use make_scope_exit.
880 2019-03-06 Tom Tromey <tom@tromey.com>
882 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
885 2019-03-06 Tom Tromey <tom@tromey.com>
887 * solib-svr4.c (disable_probes_interface): Remove parameter.
888 (svr4_handle_solib_event): Use make_scope_exit.
890 2019-03-06 Tom Tromey <tom@tromey.com>
892 * remote.c (struct stop_reply_deleter): Remove.
893 (stop_reply_up): Update.
894 (struct stop_reply): Derive from notif_event. Don't typedef.
895 <regcache>: Now a std::vector.
896 (stop_reply_xfree): Remove.
897 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
898 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
899 (remote_target::discard_pending_stop_replies): Use delete.
900 (remote_target::remote_parse_stop_reply): Update.
901 (remote_target::process_stop_reply): Update.
902 * remote-notif.h (struct notif_event): Add virtual destructor.
904 (struct notif_client) <alloc_event>: Return a unique_ptr.
905 (notif_event_xfree): Don't declare.
906 (notif_event_up): New typedef.
907 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
908 (notif_event_xfree, do_notif_event_xfree): Remove.
909 (remote_notif_state_xfree): Update.
911 2019-03-06 Tom Tromey <tom@tromey.com>
913 * infrun.c (displaced_step_clear_cleanup): Now a
914 forward_scope_exit type.
915 (displaced_step_prepare_throw): Update.
916 (displaced_step_fixup): Update.
918 2019-03-06 Tom Tromey <tom@tromey.com>
920 * inferior.h (class inferior): Update comment.
921 * gdbthread.h (class thread_info): Update comment.
923 2019-03-06 Joel Brobecker <brobecker@adacore.com>
924 Tom Tromey <tom@tromey.com>
926 * stabsread.h (struct stab_section_list): Remove.
927 (coffstab_build_psymtabs): Update.
928 * dbxread.c (symbuf_sections): Now a std::vector.
929 (sect_idx): New global.
930 (fill_symbuf): Update.
931 (coffstab_build_psymtabs): Change type of stabsects parameter.
933 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
935 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
936 (coff_locate_sections): Update.
937 (coff_symfile_read): Remove cleanups. Update.
938 (init_stringtab): Add storage parameter.
939 (free_stringtab, free_stringtab_cleanup): Remove.
940 (init_lineno): Add storage parameter.
941 (free_linetab, free_linetab_cleanup): Remove.
943 2019-03-06 Pedro Alves <palves@redhat.com>
945 * linux-fork.c (fork_info::clobber_regs): Delete.
946 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
947 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
949 (scoped_switch_fork_info::scoped_switch_fork_info)
950 (checkpoint_command, linux_fork_context): Adjust
951 fork_save_infrun_state calls.
953 2019-03-06 Pedro Alves <palves@redhat.com>
955 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
956 (inf_has_multiple_threads): Return 'bool' and rewrite using
957 inferior_info::threads().
959 2019-03-06 Pedro Alves <palves@redhat.com>
961 * linux-fork.c: Include <list>.
962 (fork_list): Now a std::list instance.
963 (fork_info): Add ctor, dtor, and in-class initialize all fields.
964 (forks_exist_p, find_last_fork): Adjust.
968 (free_fork): Delete, folded into fork_info::~fork_info().
969 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
971 (init_fork_list): Delete.
972 (linux_fork_killall, linux_fork_mourn_inferior)
973 (linux_fork_detach, info_checkpoints_command): Adjust.
974 (_initialize_linux_fork): No longer call init_fork_list.
976 2019-03-06 Pedro Alves <palves@redhat.com>
978 * linux-fork.c (new_fork): New, split out of ...
979 (add_fork): ... this. Return void. Move "first fork" special
980 case from here, to ...
981 (checkpoint_command): ... here.
982 * linux-linux.h (add_fork): Return void.
984 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
986 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
988 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
989 Chris January <chris.january@arm.com>
990 David Lecomber <david.lecomber@arm.com>
992 * f-exp.y: New token, UNOP_INTRINSIC.
993 (exp): New pattern using UNOP_INTRINSIC token.
994 (f77_keywords): Add 'abs' keyword.
995 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
996 (value_from_host_double): New function.
997 (evaluate_subexp_f): Support UNOP_ABS.
999 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1001 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
1004 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1006 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
1007 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
1008 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
1010 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1012 * f-exp.y (convert_to_kind_type): Handle more type kinds.
1014 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1015 Chris January <chris.january@arm.com>
1017 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
1018 * f-exp.y: Define 'KIND' token.
1019 (exp): New pattern for KIND expressions.
1020 (ptype): Handle types with a kind extension.
1021 (direct_abs_decl): Extend to spot kind extensions.
1022 (f77_keywords): Add 'kind' to the list.
1023 (push_kind_type): New function.
1024 (convert_to_kind_type): New function.
1025 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
1026 * parse.c (operator_length_standard): Likewise.
1027 * parser-defs.h (enum type_pieces): Add tp_kind.
1028 * std-operator.def: Add UNOP_KIND.
1030 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1032 * f-exp.y (f_parse): Set yydebug.
1034 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1036 * f-lang.c (evaluate_subexp_f): New function.
1037 (exp_descriptor_f): New global.
1038 (f_language_defn): Use exp_descriptor_f instead of
1039 exp_descriptor_standard.
1041 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1043 * f-exp.y (struct token): Add comments.
1044 (dot_ops): Remove uppercase versions and the end marker.
1045 (f77_keywords): Likewise.
1046 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
1047 entries in the dot_ops array are case insensitive, and use
1048 strncasecmp to compare strings. Also some whitespace cleanup in
1049 this area. Similar for the f77_keywords array, except entries in
1050 this list might be case sensitive.
1052 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
1054 * f-exp.y (struct f77_boolean_val): Add comments.
1055 (boolean_values): Remove uppercase versions, and end marker.
1056 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
1057 and use strncasecmp to achieve case insensitivity. Additionally,
1058 perform whitespace cleanup around this code.
1060 2019-03-06 Tom Tromey <tromey@adacore.com>
1062 * remote-sim.c (gdbsim_target_open): Use result of
1065 2019-03-06 Richard Bunt <richard.bunt@arm.com>
1066 Dirk Schubert <dirk.schubert@arm.com>
1067 Chris January <chris.january@arm.com>
1069 * eval.c (evaluate_subexp_standard): Call Fortran argument
1071 * f-lang.c (struct value): A value which can be passed into a
1072 Fortran function call.
1073 (fortran_argument_convert): Wrap Fortran arguments in a pointer
1075 (struct type): Value ready for a Fortran function call.
1076 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
1078 * f-lang.h (fortran_argument_convert): Declaration.
1079 (fortran_preserve_arg_pointer): Declaration.
1080 * infcall.c (value_arg_coerce): Call Fortran argument logic.
1082 2019-03-05 Tom Tromey <tromey@adacore.com>
1084 * python/py-prettyprint.c (print_string_repr): Remove #if.
1085 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
1087 2019-03-05 Tom Tromey <tromey@adacore.com>
1089 * target.c (the_dummy_target): Move later. Change type to
1091 (initialize_targets): Don't initialize the_dummy_target.
1093 2019-03-05 Tom Tromey <tromey@adacore.com>
1095 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
1096 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
1098 2019-03-05 Tom Tromey <tromey@adacore.com>
1100 * windows-nat.c (windows_nat_target::attach)
1101 (windows_nat_target::detach): Don't call gdb_flush.
1102 * valprint.c (generic_val_print, val_print, val_print_string):
1103 Don't call gdb_flush.
1104 * utils.c (defaulted_query): Don't call gdb_flush.
1105 * typeprint.c (print_type_scalar): Don't call gdb_flush.
1106 * target.c (target_announce_detach): Don't call gdb_flush.
1107 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
1108 * remote.c (extended_remote_target::attach): Don't call
1110 * procfs.c (procfs_target::detach): Don't call gdb_flush.
1111 * printcmd.c (do_examine): Don't call gdb_flush.
1112 (info_display_command): Don't call gdb_flush.
1113 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
1114 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
1115 * memattr.c (info_mem_command): Don't call gdb_flush.
1116 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
1117 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
1118 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
1119 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
1120 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
1121 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
1122 (gnu_nat_target::detach): Don't call gdb_flush.
1123 * f-valprint.c (f_val_print): Don't call gdb_flush.
1124 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
1125 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
1126 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
1128 * c-valprint.c (c_val_print): Don't call gdb_flush.
1129 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
1131 2019-03-05 Tom Tromey <tromey@adacore.com>
1133 * varobj.c (update_dynamic_varobj_children): Update.
1134 (install_default_visualizer): Use reset, not release.
1135 * value.c (set_internalvar): Update.
1136 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
1137 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
1138 ATTRIBUTE_UNUSED_RESULT.
1140 2019-03-05 Tom Tromey <tromey@adacore.com>
1142 * remote.c (class scoped_remote_fd) <release>: Add
1143 ATTRIBUTE_UNUSED_RESULT.
1145 2019-03-05 Tom Tromey <tromey@adacore.com>
1147 * macroexp.c (struct macro_buffer) <release>: Add
1148 ATTRIBUTE_UNUSED_RESULT.
1150 2019-03-05 Tom Tromey <tromey@adacore.com>
1152 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
1153 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
1154 ATTRIBUTE_UNUSED_RESULT.
1156 2019-03-05 Tom Tromey <tromey@adacore.com>
1158 * common/scoped_fd.h (class scoped_fd) <release>: Add
1159 ATTRIBUTE_UNUSED_RESULT.
1161 2019-03-05 Tom Tromey <tromey@adacore.com>
1163 * parser-defs.h (struct parser_state) <release>: Add
1164 ATTRIBUTE_UNUSED_RESULT.
1166 2019-03-05 Tom Tromey <tromey@adacore.com>
1168 * utils.h (class gdb_argv) <release>: Add
1169 ATTRIBUTE_UNUSED_RESULT.
1170 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
1172 2019-03-02 Eli Zaretskii <eliz@gnu.org>
1174 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
1175 for-loop range, to avoid compiler warnings.
1177 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
1178 avoid compiler warnings about unused variables.
1180 * NEWS: Mention end of support for native debugging on MS-Windows
1184 * common/netstuff.c:
1185 * gdbserver/gdbreplay.c
1186 * gdbserver/remote-utils.c:
1188 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
1189 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
1190 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
1191 'getaddrinfo' and 'freeaddrinfo' were not available before
1192 Windows XP, and mingw.org's MinGW headers by default define
1193 _WIN32_WINNT to 0x500.
1195 2019-03-01 Gary Benson <gbenson@redhat.com>
1197 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
1199 2019-02-28 Brian Vandenberg <phantall@gmail.com>
1200 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1203 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
1204 set_sigint_trap, clear_sigint_trap.
1206 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1208 * target.c (target_detach): Clear the regcache and the
1211 2019-02-27 Pedro Alves <palves@redhat.com>
1213 * utils.c (set_screen_size): When we cap the height/width sizes,
1214 tweak the corresponding command variable to show "unlimited":
1216 2019-02-27 Saagar Jha <saagar@saagarjha.com>
1217 Pedro Alves <palves@redhat.com>
1219 * utils.c (set_screen_size): Reduce "infinite" rows and columns
1220 before calling rl_set_screen_size.
1222 2019-02-27 Tom Tromey <tromey@adacore.com>
1224 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
1226 * python/py-value.c: Remove Python 2.4 workaround.
1227 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
1229 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
1230 Python 2.4 workaround.
1231 * python/python-internal.h: Remove Python 2.4 comment.
1232 (Py_ssize_t): Don't define.
1233 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
1234 (gdb_Py_DECREF): Remove Python 2.4 workaround.
1235 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
1236 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
1237 * python/python.c (do_start_initialization): Remove Python 2.4
1239 * python/py-prettyprint.c (class dummy_python_frame): Remove.
1240 (print_children): Remove Python 2.4 workaround.
1241 * python/py-inferior.c (buffer_procs): Remove Python 2.4
1243 (CHARBUFFERPROC_NAME): Remove.
1244 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
1245 Python 2.4 workaround.
1247 2019-02-27 Kevin Buettner <kevinb@redhat.com>
1249 * NEWS: Note minimum Python version.
1251 2019-02-27 Kevin Buettner <kevinb@redhat.com>
1253 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
1254 code from these functions. Remove corresponding ifdefs. Use
1255 Py_buffer_up instead of explicit calls to PyBuffer_Release.
1256 Remove gotos and target of gotos.
1257 (infpy_search_memory): Likewise.
1259 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1261 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
1262 (hppa_gdbarch_init): Don't register deleted functions with
1265 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1267 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
1268 (h8300_unwind_sp): Delete.
1269 (h8300_dummy_id): Delete.
1270 (h8300_gdbarch_init): Don't register deleted functions with
1273 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1275 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
1276 (ft32_unwind_pc): Delete.
1277 (ft32_unwind_sp): Delete.
1278 (ft32_gdbarch_init): Don't register deleted functions with
1281 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1283 * gdb/frv-tdep.c (frv_dummy_id): Delete.
1284 (frv_unwind_pc): Delete.
1285 (frv_unwind_sp): Delete.
1286 (frv_gdbarch_init): Don't register deleted functions with
1289 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1291 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
1292 (riscv_unwind_pc): Delete.
1293 (riscv_unwind_sp): Delete.
1294 (riscv_gdbarch_init): Don't register deleted functions with
1297 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1299 * gdb/csky-tdep.c (csky_dummy_id): Delete.
1300 (csky_unwind_pc): Delete.
1301 (csky_unwind_sp): Delete.
1302 (csky_gdbarch_init): Don't register deleted functions with
1305 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1307 * gdb/cris-tdep.c (cris_dummy_id): Delete.
1308 (cris_unwind_pc): Delete.
1309 (cris_unwind_sp): Delete.
1310 (cris_gdbarch_init): Don't register deleted functions with
1313 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1315 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
1316 (bfin_unwind_pc): Delete.
1317 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
1319 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1321 * gdb/arm-tdep.c (arm_dummy_id): Delete.
1322 (arm_unwind_pc): Delete.
1323 (arm_unwind_sp): Delete.
1324 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
1326 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1328 * gdb/arc-tdep.c (arc_dummy_id): Delete.
1329 (arc_unwind_pc): Delete.
1330 (arc_unwind_sp): Delete.
1331 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
1333 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1335 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
1336 (alpha_unwind_pc): Delete.
1337 (alpha_gdbarch_init): Don't register deleted functions with
1340 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1342 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
1343 (aarch64_unwind_pc): Delete.
1344 (aarch64_unwind_sp): Delete.
1345 (aarch64_gdbarch_init): Don't register deleted functions with
1348 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1350 * gdbtypes.c (type_align): Don't consider static members when
1351 computing structure alignment.
1353 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
1355 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
1356 return 0 for other types.
1357 * arch-utils.c (default_type_align): Always return 0.
1358 * gdbarch.h: Regenerate.
1359 * gdbarch.sh (type_align): Extend comment.
1360 * gdbtypes.c (type_align): Add additional comments, always call
1361 gdbarch_type_align before applying the default rules.
1362 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
1363 generic code will then apply a suitable default.
1364 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
1365 types, return 0 for other types.
1367 2019-02-27 Joel Brobecker <brobecker@adacore.com>
1369 * NEWS: Create a new section for the next release branch.
1370 Rename the section of the current branch, now that it has
1373 2019-02-27 Joel Brobecker <brobecker@adacore.com>
1375 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
1376 * version.in: Bump version to 8.3.50.DATE-git.
1378 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
1380 * aix-thread.c (ptid_cmp): Remove unused variable.
1381 (get_signaled_thread): Likewise.
1382 (store_regs_user_thread): Likewise.
1383 (store_regs_kernel_thread): Likewise.
1384 (fetch_regs_kernel_thread): Remove shadowed variable.
1386 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
1388 * features/riscv/32bit-cpu.xml: Add register numbers.
1389 * features/riscv/32bit-fpu.c: Regenerate.
1390 * features/riscv/32bit-fpu.xml: Add register numbers.
1391 * features/riscv/64bit-cpu.xml: Add register numbers.
1392 * features/riscv/64bit-fpu.c: Regenerate.
1393 * features/riscv/64bit-fpu.xml: Add register numbers.
1395 2019-02-26 Kevin Buettner <kevinb@redhat.com>
1397 * NEWS: Mention two argument form of gdb.Value constructor.
1398 * python/py-value.c (convert_buffer_and_type_to_value): New
1400 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
1401 Add support for handling an optional second argument. Call
1402 convert_buffer_and_type_to_value as appropriate.
1403 * python/python-internal.h (Py_buffer_deleter): New struct.
1404 (Py_buffer_up): New typedef.
1406 2019-02-25 John Baldwin <jhb@FreeBSD.org>
1408 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
1409 instead of releasing ownership.
1411 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
1413 * dwarf2read.c (open_and_init_dwp_file): Call
1414 elf_numsections instead of bfd_count_sections to initialize
1415 dwp_file->num_sections.
1417 2019-02-25 Tom Tromey <tromey@adacore.com>
1419 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
1421 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
1423 * gcore.in: Add '--readnever' option when invoking GDB.
1425 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1427 * MAINTAINERS: Update my email address.
1429 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
1431 * build-id.c (build_id_to_debug_bfd_1): New function.
1432 (build_id_to_debug_bfd): Look for separate debug file in
1435 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
1437 * gdbarch.sh: Update the copyright year range that is placed into
1440 2019-02-22 Keith Seitz <keiths@redhat.com>
1443 * linespec.c (create_sals_line_offset): Search for the default
1444 symtab's filename instead of its fullname.
1446 2019-02-21 Alan Hayward <alan.hayward@arm.com>
1448 * NEWS: Update style defaults.
1450 2019-02-21 Alan Hayward <alan.hayward@arm.com>
1452 * main.c (captured_main_1): Disable styling in batch mode.
1454 2019-02-20 Tom Tromey <tom@tromey.com>
1456 * symtab.c (symtab_symbol_info): Fix typos.
1458 2019-02-20 Tom Tromey <tromey@adacore.com>
1460 * findcmd.c (_initialize_mem_search): Use upper case for
1461 metasyntactic variables.
1463 2019-02-20 Alan Hayward <alan.hayward@arm.com>
1465 * aarch64-tdep.c (aarch64_add_reggroups): New function.
1466 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
1468 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
1470 * top.h (source_file_name): Change to std::string.
1471 * top.c (source_file_name): Likewise.
1472 (command_line_input): Adjust.
1473 * cli/cli-script.c (script_from_file): Adjust.
1475 2019-02-19 Tom Tromey <tromey@adacore.com>
1477 * ravenscar-thread.c
1478 (ravenscar_thread_target::update_thread_list): Don't call
1479 ada_build_task_list.
1480 * ada-lang.h (ada_build_task_list): Don't declare.
1481 * ada-tasks.c (struct ada_tasks_inferior_data)
1482 <task_list_valid_p>: Now bool.
1483 (read_known_tasks, ada_task_list_changed)
1484 (ada_tasks_invalidate_inferior_data): Update.
1485 (read_known_tasks_array): Return bool.
1486 (read_known_tasks_list): Likewise.
1487 (read_known_tasks): Return void.
1488 (ada_build_task_list): Now static.
1490 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
1492 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
1493 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
1495 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1497 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
1498 variant for ada_tasks_pspace_data_handle and
1499 ada_tasks_inferior_data_handle.
1500 (ada_tasks_pspace_data_cleanup): New function.
1501 (ada_tasks_inferior_data_cleanup): New function.
1503 2019-02-17 Tom Tromey <tom@tromey.com>
1505 * macrotab.h (macro_source_fullname): Return a std::string.
1506 * macrotab.c (macro_include, check_for_redefinition)
1507 (macro_undef, macro_lookup_definition, foreach_macro)
1508 (foreach_macro_in_scope): Update.
1509 (macro_source_fullname): Return a std::string.
1510 * macrocmd.c (show_pp_source_pos): Update.
1512 2019-02-17 Tom Tromey <tom@tromey.com>
1514 * macrocmd.c (show_pp_source_pos): Style the file names.
1516 2019-02-17 Tom Tromey <tom@tromey.com>
1519 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
1521 2019-02-17 Tom Tromey <tom@tromey.com>
1523 * ada-lang.c (user_select_syms): Use filtered printing.
1524 * utils.c (wrap_style): New global.
1525 (desired_style): Remove.
1526 (emit_style_escape): Add stream parameter.
1527 (set_output_style, reset_terminal_style, prompt_for_continue):
1529 (flush_wrap_buffer): Only flush gdb_stdout.
1530 (wrap_here): Set wrap_style.
1531 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
1532 treat escape sequences as a character. Change when wrap buffer is
1534 (fputs_styled): Do not set the output style when the default is
1536 * ui-style.h (struct ui_file_style) <is_default>: New method.
1537 * source.c (print_source_lines_base): Emit escape sequences in one
1540 2019-02-17 Joel Brobecker <brobecker@adacore.com>
1542 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
1543 integers and enumeration types.
1545 2019-02-17 Joel Brobecker <brobecker@adacore.com>
1547 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
1548 instead of lookup_symbol_in_language
1549 (do_exact_match): New function.
1550 (ada_get_symbol_name_matcher): Return do_exact_match when
1551 doing a verbatim match.
1553 2019-02-15 Tom Tromey <tromey@adacore.com>
1555 * ravenscar-thread.c (ravenscar_thread_target::resume)
1556 (ravenscar_thread_target::wait): Special case wildcard requests.
1558 2019-02-15 Tom Tromey <tromey@adacore.com>
1560 * ravenscar-thread.c (base_ptid): Remove.
1561 (struct ravenscar_thread_target) <close>: New method.
1562 <m_base_ptid>: New member.
1563 <update_inferior_ptid, active_task, task_is_currently_active,
1564 runtime_initialized>: Declare methods.
1565 <ravenscar_thread_target>: Add constructor.
1566 (ravenscar_thread_target::task_is_currently_active)
1567 (ravenscar_thread_target::update_inferior_ptid)
1568 (ravenscar_runtime_initialized): Rename. Now methods.
1569 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
1570 (ravenscar_thread_target::update_thread_list): Update.
1571 (ravenscar_thread_target::active_task): Now method.
1572 (ravenscar_thread_target::store_registers)
1573 (ravenscar_thread_target::prepare_to_store)
1574 (ravenscar_thread_target::prepare_to_store)
1575 (ravenscar_thread_target::mourn_inferior): Update.
1576 (ravenscar_inferior_created): Use "new" to create target.
1577 (ravenscar_thread_target::get_ada_task_ptid): Update.
1578 (_initialize_ravenscar): Don't initialize base_ptid.
1579 (ravenscar_ops): Remove global.
1581 2019-02-15 Tom Tromey <tromey@adacore.com>
1583 * target.h (push_target): Declare new overload.
1584 * target.c (push_target): New overload, taking an rvalue reference.
1585 * remote.c (remote_target::open_1): Use push_target overload.
1586 * corelow.c (core_target_open): Use push_target overload.
1588 2019-02-15 Tom Tromey <tromey@adacore.com>
1590 * ravenscar-thread.c (is_ravenscar_task)
1591 (ravenscar_task_is_currently_active): Return bool.
1592 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
1593 (_initialize_ravenscar): Remove "(void)".
1594 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
1597 2019-02-15 Tom Tromey <tromey@adacore.com>
1599 * ravenscar-thread.c (ravenscar_runtime_initializer)
1600 (has_ravenscar_runtime, get_running_thread_id)
1601 (ravenscar_thread_target::resume): Fix indentation.
1603 2019-02-15 Tom Tromey <tromey@adacore.com>
1605 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
1606 from ravenscar_arch_ops.
1607 (sparc_ravenscar_ops::fetch_registers)
1608 (sparc_ravenscar_ops::store_registers): Now methods.
1609 (sparc_ravenscar_prepare_to_store): Remove.
1610 (sparc_ravenscar_ops): Redefine.
1611 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
1612 methods and destructor. Remove members.
1613 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
1614 (ravenscar_thread_target::store_registers)
1615 (ravenscar_thread_target::prepare_to_store): Update.
1616 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
1618 (struct ppc_ravenscar_powerpc_ops): Derive from
1620 (ppc_ravenscar_powerpc_ops::fetch_registers)
1621 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
1622 (ppc_ravenscar_powerpc_ops): Redefine.
1623 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
1624 (ppc_ravenscar_e500_ops::fetch_registers)
1625 (ppc_ravenscar_e500_ops::store_registers): Now methods.
1626 (ppc_ravenscar_e500_ops): Redefine.
1627 * aarch64-ravenscar-thread.c
1628 (aarch64_ravenscar_generic_prepare_to_store): Remove.
1629 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
1630 (aarch64_ravenscar_fetch_registers)
1631 (aarch64_ravenscar_store_registers): Now methods.
1632 (aarch64_ravenscar_ops): Redefine.
1634 2019-02-15 Tom Tromey <tromey@adacore.com>
1636 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
1637 (ravenscar_thread_target::stopped_by_hw_breakpoint)
1638 (ravenscar_thread_target::stopped_by_watchpoint)
1639 (ravenscar_thread_target::stopped_data_address)
1640 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
1642 2019-02-15 Tom Tromey <tromey@adacore.com>
1644 * ravenscar-thread.c: Fix some typos.
1646 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1647 Tom Tromey <tromey@adacore.com>
1649 * ada-lang.c (ada_exception_sal): Change addr_string to a
1651 (create_ada_exception_catchpoint): Update.
1653 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1654 Tom Tromey <tromey@adacore.com>
1656 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
1657 (bp_location_ops): Remove.
1658 (base_breakpoint_allocate_location): Update.
1659 (free_bp_location): Update.
1660 * ada-lang.c (class ada_catchpoint_location)
1661 <ada_catchpoint_location>: Remove ops parameter.
1662 (ada_catchpoint_location_dtor): Remove.
1663 (ada_catchpoint_location_ops): Remove.
1664 (allocate_location_exception): Update.
1665 * breakpoint.h (struct bp_location_ops): Remove.
1666 (class bp_location) <bp_location>: Remove bp_location_ops
1668 <~bp_location>: Add destructor.
1671 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1672 Pedro Alves <palves@redhat.com>
1674 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
1677 2019-02-14 David Michael <fedora.dm0@gmail.com>
1678 Samuel Thibault <samuel.thibault@gnu.org>
1679 Thomas Schwinge <thomas@codesourcery.com>
1681 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
1682 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
1684 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
1686 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
1687 (check_empty): Use "const char *".
1689 * gnu-nat.c (gnu_nat_target::detach): Instead of
1690 'detach_inferior (pid)' call
1691 'detach_inferior (find_inferior_pid (pid))'.
1693 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
1694 'nat/fork-inferior.o'.
1695 * gnu-nat.c: #include "nat/fork-inferior.h".
1697 * gnu-nat.c (gnu_nat_target::detach): Instead of
1698 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
1699 * gnu-nat.h: #include "inf-child.h".
1700 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
1701 'i386_gnu_nat_target::fetch_registers'.
1702 (gnu_store_registers): Rename/move to
1703 'i386_gnu_nat_target::store_registers'.
1705 * config/i386/nm-i386gnu.h: Don't "#include" any files.
1706 * gnu-nat.h (mach_thread_info): New function.
1707 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
1709 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
1711 2019-02-14 Frederic Konrad <konrad@adacore.com>
1713 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
1715 2019-02-14 Joel Brobecker <brobecker@adacore.com>
1717 * windows-nat.c (windows_add_thread): Add new parameter
1718 "main_thread_p" with default value set to false. Update
1719 function documentation as well as all callers.
1720 (windows_delete_thread): Likewise.
1721 (fake_create_process): Update call to windows_add_thread.
1722 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
1723 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
1724 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
1725 call to windows_delete_thread.
1727 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
1729 * MAINTAINERS: Add Andrew Burgess as global maintainer.
1731 2019-02-12 John Baldwin <jhb@FreeBSD.org>
1733 * symfile.c (find_separate_debug_file): Use canonical path of
1734 sysroot with child_path instead of gdb_sysroot if it is valid.
1736 2019-02-12 John Baldwin <jhb@FreeBSD.org>
1738 * symfile.c (find_separate_debug_file): Use child_path to
1739 determine if an object file is under a sysroot.
1741 2019-02-12 John Baldwin <jhb@FreeBSD.org>
1743 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
1744 unittests/child-path-selftests.c.
1745 * common/pathstuff.c (child_path): New function.
1746 * common/pathstuff.h (child_path): New prototype.
1747 * unittests/child-path-selftests.c: New file.
1749 2019-02-12 John Baldwin <jhb@FreeBSD.org>
1751 * symfile.c (find_separate_debug_file): Look for separate debug
1752 files in debug directories under the sysroot.
1754 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1756 * symtab.h (struct minimal_symbol data_p): New const method.
1757 (struct minimal_symbol text_p): Likewise.
1758 * symtab.c (output_source_filename): Use file name style
1760 (print_symbol_info): Likewise.
1761 (print_msymbol_info): Use address style to print addresses.
1762 Use function name style to print executable text symbols.
1763 (expand_symtab_containing_pc): Use data_p.
1764 (find_pc_sect_compunit_symtab): Likewise.
1766 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1768 * breakpoint.c (describe_other_breakpoints): Use address style
1770 (say_where): Likewise.
1772 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1774 * ada-typeprint.c (print_func_type): Print function name
1775 style to print function name.
1776 * c-typeprint.c (c_print_type_1): Likewise.
1778 2019-02-11 Alan Hayward <alan.hayward@arm.com>
1780 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
1783 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1785 * c-exp.y (direct_abs_decl): Use emplace_back to record the
1788 2019-02-10 Joel Brobecker <brobecker@adacore.com>
1790 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
1791 TYPE_CODE_REF types.
1793 2019-02-08 Jim Wilson <jimw@sifive.com>
1795 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
1796 (riscv_linux_fregset): New.
1797 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
1799 2019-02-07 Tom Tromey <tom@tromey.com>
1801 * thread.c (thread_cancel_execution_command): Update.
1802 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
1804 (struct thread_fsm_ops): Remove.
1805 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
1806 (thread_fsm_should_stop, thread_fsm_return_value)
1807 (thread_fsm_set_finished, thread_fsm_finished_p)
1808 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
1810 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
1811 * infrun.c (clear_proceed_status_thread)
1812 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
1813 (print_stop_event): Update.
1814 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
1816 (step_command_fsm_ops): Remove.
1817 (new_step_command_fsm): Remove.
1819 (step_command_fsm::should_stop): Rename from
1820 step_command_fsm_should_stop.
1821 (step_command_fsm::clean_up): Rename from
1822 step_command_fsm_clean_up.
1823 (step_command_fsm::do_async_reply_reason): Rename from
1824 step_command_fsm_async_reply_reason.
1825 (struct until_next_fsm): Inherit from thread_fsm. Add
1827 (until_next_fsm_ops): Remove.
1828 (new_until_next_fsm): Remove.
1829 (until_next_fsm::should_stop): Rename from
1830 until_next_fsm_should_stop.
1831 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
1832 (until_next_fsm::do_async_reply_reason): Rename from
1833 until_next_fsm_async_reply_reason.
1834 (struct finish_command_fsm): Inherit from thread_fsm. Add
1835 constructor. Change type of breakpoint.
1836 (finish_command_fsm_ops): Remove.
1837 (new_finish_command_fsm): Remove.
1838 (finish_command_fsm::should_stop): Rename from
1839 finish_command_fsm_should_stop.
1840 (finish_command_fsm::clean_up): Rename from
1841 finish_command_fsm_clean_up.
1842 (finish_command_fsm::return_value): Rename from
1843 finish_command_fsm_return_value.
1844 (finish_command_fsm::do_async_reply_reason): Rename from
1845 finish_command_fsm_async_reply_reason.
1846 (finish_command): Update.
1847 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
1849 (call_thread_fsm_ops): Remove.
1850 (call_thread_fsm::call_thread_fsm): Rename from
1851 new_call_thread_fsm.
1852 (call_thread_fsm::should_stop): Rename from
1853 call_thread_fsm_should_stop.
1854 (call_thread_fsm::should_notify_stop): Rename from
1855 call_thread_fsm_should_notify_stop.
1856 (run_inferior_call, call_function_by_hand_dummy): Update.
1857 * cli/cli-interp.c (should_print_stop_to_console): Update.
1858 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
1859 Add constructor. Change type of location_breakpoint,
1861 (until_break_fsm_ops): Remove.
1862 (new_until_break_fsm): Remove.
1863 (until_break_fsm::should_stop): Rename from
1864 until_break_fsm_should_stop.
1865 (until_break_fsm::clean_up): Rename from
1866 until_break_fsm_clean_up.
1867 (until_break_fsm::do_async_reply_reason): Rename from
1868 until_break_fsm_async_reply_reason.
1869 (until_break_command): Update.
1870 * thread-fsm.c: Remove.
1871 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
1873 2019-02-07 Tom Tromey <tom@tromey.com>
1875 * yy-remap.h: Add include guard.
1876 * xtensa-tdep.h: Add include guard.
1877 * xcoffread.h: Rename include guard.
1878 * varobj-iter.h: Add include guard.
1879 * tui/tui.h: Rename include guard.
1880 * tui/tui-winsource.h: Rename include guard.
1881 * tui/tui-wingeneral.h: Rename include guard.
1882 * tui/tui-windata.h: Rename include guard.
1883 * tui/tui-win.h: Rename include guard.
1884 * tui/tui-stack.h: Rename include guard.
1885 * tui/tui-source.h: Rename include guard.
1886 * tui/tui-regs.h: Rename include guard.
1887 * tui/tui-out.h: Rename include guard.
1888 * tui/tui-layout.h: Rename include guard.
1889 * tui/tui-io.h: Rename include guard.
1890 * tui/tui-hooks.h: Rename include guard.
1891 * tui/tui-file.h: Rename include guard.
1892 * tui/tui-disasm.h: Rename include guard.
1893 * tui/tui-data.h: Rename include guard.
1894 * tui/tui-command.h: Rename include guard.
1895 * tic6x-tdep.h: Add include guard.
1896 * target/waitstatus.h: Rename include guard.
1897 * target/wait.h: Rename include guard.
1898 * target/target.h: Rename include guard.
1899 * target/resume.h: Rename include guard.
1900 * target-float.h: Rename include guard.
1901 * stabsread.h: Add include guard.
1902 * rs6000-tdep.h: Add include guard.
1903 * riscv-fbsd-tdep.h: Add include guard.
1904 * regformats/regdef.h: Rename include guard.
1905 * record.h: Rename include guard.
1906 * python/python.h: Rename include guard.
1907 * python/python-internal.h: Rename include guard.
1908 * python/py-stopevent.h: Rename include guard.
1909 * python/py-ref.h: Rename include guard.
1910 * python/py-record.h: Rename include guard.
1911 * python/py-record-full.h: Rename include guard.
1912 * python/py-record-btrace.h: Rename include guard.
1913 * python/py-instruction.h: Rename include guard.
1914 * python/py-events.h: Rename include guard.
1915 * python/py-event.h: Rename include guard.
1916 * procfs.h: Add include guard.
1917 * proc-utils.h: Add include guard.
1918 * p-lang.h: Add include guard.
1919 * or1k-tdep.h: Rename include guard.
1920 * observable.h: Rename include guard.
1921 * nto-tdep.h: Rename include guard.
1922 * nat/x86-linux.h: Rename include guard.
1923 * nat/x86-linux-dregs.h: Rename include guard.
1924 * nat/x86-gcc-cpuid.h: Add include guard.
1925 * nat/x86-dregs.h: Rename include guard.
1926 * nat/x86-cpuid.h: Rename include guard.
1927 * nat/ppc-linux.h: Rename include guard.
1928 * nat/mips-linux-watch.h: Rename include guard.
1929 * nat/linux-waitpid.h: Rename include guard.
1930 * nat/linux-ptrace.h: Rename include guard.
1931 * nat/linux-procfs.h: Rename include guard.
1932 * nat/linux-osdata.h: Rename include guard.
1933 * nat/linux-nat.h: Rename include guard.
1934 * nat/linux-namespaces.h: Rename include guard.
1935 * nat/linux-btrace.h: Rename include guard.
1936 * nat/glibc_thread_db.h: Rename include guard.
1937 * nat/gdb_thread_db.h: Rename include guard.
1938 * nat/gdb_ptrace.h: Rename include guard.
1939 * nat/fork-inferior.h: Rename include guard.
1940 * nat/amd64-linux-siginfo.h: Rename include guard.
1941 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
1942 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
1943 * nat/aarch64-linux.h: Rename include guard.
1944 * nat/aarch64-linux-hw-point.h: Rename include guard.
1945 * mn10300-tdep.h: Add include guard.
1946 * mips-linux-tdep.h: Add include guard.
1947 * mi/mi-parse.h: Rename include guard.
1948 * mi/mi-out.h: Rename include guard.
1949 * mi/mi-main.h: Rename include guard.
1950 * mi/mi-interp.h: Rename include guard.
1951 * mi/mi-getopt.h: Rename include guard.
1952 * mi/mi-console.h: Rename include guard.
1953 * mi/mi-common.h: Rename include guard.
1954 * mi/mi-cmds.h: Rename include guard.
1955 * mi/mi-cmd-break.h: Rename include guard.
1956 * m2-lang.h: Add include guard.
1957 * location.h: Rename include guard.
1958 * linux-record.h: Rename include guard.
1959 * linux-nat.h: Add include guard.
1960 * linux-fork.h: Add include guard.
1961 * i386-darwin-tdep.h: Rename include guard.
1962 * hppa-linux-offsets.h: Add include guard.
1963 * guile/guile.h: Rename include guard.
1964 * guile/guile-internal.h: Rename include guard.
1965 * gnu-nat.h: Rename include guard.
1966 * gdb-stabs.h: Rename include guard.
1967 * frv-tdep.h: Add include guard.
1968 * f-lang.h: Add include guard.
1969 * event-loop.h: Add include guard.
1970 * darwin-nat.h: Rename include guard.
1971 * cp-abi.h: Rename include guard.
1972 * config/sparc/nm-sol2.h: Rename include guard.
1973 * config/nm-nto.h: Rename include guard.
1974 * config/nm-linux.h: Add include guard.
1975 * config/i386/nm-i386gnu.h: Rename include guard.
1976 * config/djgpp/nl_types.h: Rename include guard.
1977 * config/djgpp/langinfo.h: Rename include guard.
1978 * compile/gcc-cp-plugin.h: Add include guard.
1979 * compile/gcc-c-plugin.h: Add include guard.
1980 * compile/compile.h: Rename include guard.
1981 * compile/compile-object-run.h: Rename include guard.
1982 * compile/compile-object-load.h: Rename include guard.
1983 * compile/compile-internal.h: Rename include guard.
1984 * compile/compile-cplus.h: Rename include guard.
1985 * compile/compile-c.h: Rename include guard.
1986 * common/xml-utils.h: Rename include guard.
1987 * common/x86-xstate.h: Rename include guard.
1988 * common/version.h: Rename include guard.
1989 * common/vec.h: Rename include guard.
1990 * common/tdesc.h: Rename include guard.
1991 * common/selftest.h: Rename include guard.
1992 * common/scoped_restore.h: Rename include guard.
1993 * common/scoped_mmap.h: Rename include guard.
1994 * common/scoped_fd.h: Rename include guard.
1995 * common/safe-iterator.h: Rename include guard.
1996 * common/run-time-clock.h: Rename include guard.
1997 * common/refcounted-object.h: Rename include guard.
1998 * common/queue.h: Rename include guard.
1999 * common/ptid.h: Rename include guard.
2000 * common/print-utils.h: Rename include guard.
2001 * common/preprocessor.h: Rename include guard.
2002 * common/pathstuff.h: Rename include guard.
2003 * common/observable.h: Rename include guard.
2004 * common/netstuff.h: Rename include guard.
2005 * common/job-control.h: Rename include guard.
2006 * common/host-defs.h: Rename include guard.
2007 * common/gdb_wait.h: Rename include guard.
2008 * common/gdb_vecs.h: Rename include guard.
2009 * common/gdb_unlinker.h: Rename include guard.
2010 * common/gdb_unique_ptr.h: Rename include guard.
2011 * common/gdb_tilde_expand.h: Rename include guard.
2012 * common/gdb_sys_time.h: Rename include guard.
2013 * common/gdb_string_view.h: Rename include guard.
2014 * common/gdb_splay_tree.h: Rename include guard.
2015 * common/gdb_setjmp.h: Rename include guard.
2016 * common/gdb_ref_ptr.h: Rename include guard.
2017 * common/gdb_optional.h: Rename include guard.
2018 * common/gdb_locale.h: Rename include guard.
2019 * common/gdb_assert.h: Rename include guard.
2020 * common/filtered-iterator.h: Rename include guard.
2021 * common/filestuff.h: Rename include guard.
2022 * common/fileio.h: Rename include guard.
2023 * common/environ.h: Rename include guard.
2024 * common/common-utils.h: Rename include guard.
2025 * common/common-types.h: Rename include guard.
2026 * common/common-regcache.h: Rename include guard.
2027 * common/common-inferior.h: Rename include guard.
2028 * common/common-gdbthread.h: Rename include guard.
2029 * common/common-exceptions.h: Rename include guard.
2030 * common/common-defs.h: Rename include guard.
2031 * common/common-debug.h: Rename include guard.
2032 * common/cleanups.h: Rename include guard.
2033 * common/buffer.h: Rename include guard.
2034 * common/btrace-common.h: Rename include guard.
2035 * common/break-common.h: Rename include guard.
2036 * cli/cli-utils.h: Rename include guard.
2037 * cli/cli-style.h: Rename include guard.
2038 * cli/cli-setshow.h: Rename include guard.
2039 * cli/cli-script.h: Rename include guard.
2040 * cli/cli-interp.h: Rename include guard.
2041 * cli/cli-decode.h: Rename include guard.
2042 * cli/cli-cmds.h: Rename include guard.
2043 * charset-list.h: Add include guard.
2044 * buildsym-legacy.h: Rename include guard.
2045 * bfin-tdep.h: Add include guard.
2046 * ax.h: Rename include guard.
2047 * arm-linux-tdep.h: Add include guard.
2048 * arm-fbsd-tdep.h: Add include guard.
2049 * arch/xtensa.h: Rename include guard.
2050 * arch/tic6x.h: Add include guard.
2051 * arch/i386.h: Add include guard.
2052 * arch/arm.h: Rename include guard.
2053 * arch/arm-linux.h: Rename include guard.
2054 * arch/arm-get-next-pcs.h: Rename include guard.
2055 * arch/amd64.h: Add include guard.
2056 * arch/aarch64-insn.h: Rename include guard.
2057 * arch-utils.h: Rename include guard.
2058 * annotate.h: Add include guard.
2059 * amd64-darwin-tdep.h: Rename include guard.
2060 * aarch64-linux-tdep.h: Add include guard.
2061 * aarch64-fbsd-tdep.h: Add include guard.
2062 * aarch32-linux-nat.h: Add include guard.
2064 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2066 * macrotab.c (macro_define_internal): New function that
2067 factorizes macro_define_object_internal and macro_define_function
2069 (macro_define_object_internal): Use macro_define_internal.
2070 (macro_define_function): Likewise.
2072 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2074 * macrocmd.c (extract_identifier): Return
2075 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
2078 2019-02-06 John Baldwin <jhb@FreeBSD.org>
2080 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
2082 2019-02-05 Tom Tromey <tom@tromey.com>
2084 * target.c (target_stack::unpush): Move assertion earlier.
2086 2019-01-30 Tom Tromey <tom@tromey.com>
2089 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
2090 (gdbpy_parse_and_eval): Likewise.
2091 * python/python-internal.h (gdbpy_allow_threads): New class.
2093 2019-01-28 John Baldwin <jhb@FreeBSD.org>
2095 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
2096 (aarch64_fbsd_fpregmap): Move earlier.
2097 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
2098 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
2099 instead of individual calls to trad_frame_set_reg_addr.
2100 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
2102 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
2103 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
2104 instead of individual calls to trad_frame_set_reg_addr.
2106 2019-01-28 Alan Hayward <alan.hayward@arm.com>
2108 * CONTRIBUTE: Replace contribution list with wiki link.
2110 2019-01-25 Tom Tromey <tom@tromey.com>
2112 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
2114 2019-01-25 Tom Tromey <tom@tromey.com>
2116 * xtensa-linux-nat.c: Fix common/ includes.
2117 * xml-support.h: Fix common/ includes.
2118 * xml-support.c: Fix common/ includes.
2119 * x86-linux-nat.c: Fix common/ includes.
2120 * windows-nat.c: Fix common/ includes.
2121 * varobj.h: Fix common/ includes.
2122 * varobj.c: Fix common/ includes.
2123 * value.c: Fix common/ includes.
2124 * valops.c: Fix common/ includes.
2125 * utils.c: Fix common/ includes.
2126 * unittests/xml-utils-selftests.c: Fix common/ includes.
2127 * unittests/utils-selftests.c: Fix common/ includes.
2128 * unittests/unpack-selftests.c: Fix common/ includes.
2129 * unittests/tracepoint-selftests.c: Fix common/ includes.
2130 * unittests/style-selftests.c: Fix common/ includes.
2131 * unittests/string_view-selftests.c: Fix common/ includes.
2132 * unittests/scoped_restore-selftests.c: Fix common/ includes.
2133 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
2134 * unittests/scoped_fd-selftests.c: Fix common/ includes.
2135 * unittests/rsp-low-selftests.c: Fix common/ includes.
2136 * unittests/parse-connection-spec-selftests.c: Fix common/
2138 * unittests/optional-selftests.c: Fix common/ includes.
2139 * unittests/offset-type-selftests.c: Fix common/ includes.
2140 * unittests/observable-selftests.c: Fix common/ includes.
2141 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
2142 * unittests/memrange-selftests.c: Fix common/ includes.
2143 * unittests/memory-map-selftests.c: Fix common/ includes.
2144 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
2145 * unittests/function-view-selftests.c: Fix common/ includes.
2146 * unittests/environ-selftests.c: Fix common/ includes.
2147 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
2148 * unittests/common-utils-selftests.c: Fix common/ includes.
2149 * unittests/cli-utils-selftests.c: Fix common/ includes.
2150 * unittests/array-view-selftests.c: Fix common/ includes.
2151 * ui-file.c: Fix common/ includes.
2152 * tui/tui-io.c: Fix common/ includes.
2153 * tracepoint.h: Fix common/ includes.
2154 * tracepoint.c: Fix common/ includes.
2155 * tracefile-tfile.c: Fix common/ includes.
2156 * top.h: Fix common/ includes.
2157 * top.c: Fix common/ includes.
2158 * thread.c: Fix common/ includes.
2159 * target/waitstatus.h: Fix common/ includes.
2160 * target/waitstatus.c: Fix common/ includes.
2161 * target.h: Fix common/ includes.
2162 * target.c: Fix common/ includes.
2163 * target-memory.c: Fix common/ includes.
2164 * target-descriptions.c: Fix common/ includes.
2165 * symtab.h: Fix common/ includes.
2166 * symfile.c: Fix common/ includes.
2167 * stap-probe.c: Fix common/ includes.
2168 * spu-linux-nat.c: Fix common/ includes.
2169 * sparc-nat.c: Fix common/ includes.
2170 * source.c: Fix common/ includes.
2171 * solib.c: Fix common/ includes.
2172 * solib-target.c: Fix common/ includes.
2173 * ser-unix.c: Fix common/ includes.
2174 * ser-tcp.c: Fix common/ includes.
2175 * ser-pipe.c: Fix common/ includes.
2176 * ser-base.c: Fix common/ includes.
2177 * selftest-arch.c: Fix common/ includes.
2178 * s12z-tdep.c: Fix common/ includes.
2179 * rust-exp.y: Fix common/ includes.
2180 * rs6000-aix-tdep.c: Fix common/ includes.
2181 * riscv-tdep.c: Fix common/ includes.
2182 * remote.c: Fix common/ includes.
2183 * remote-notif.h: Fix common/ includes.
2184 * remote-fileio.h: Fix common/ includes.
2185 * remote-fileio.c: Fix common/ includes.
2186 * regcache.h: Fix common/ includes.
2187 * regcache.c: Fix common/ includes.
2188 * record-btrace.c: Fix common/ includes.
2189 * python/python.c: Fix common/ includes.
2190 * python/py-type.c: Fix common/ includes.
2191 * python/py-inferior.c: Fix common/ includes.
2192 * progspace.h: Fix common/ includes.
2193 * producer.c: Fix common/ includes.
2194 * procfs.c: Fix common/ includes.
2195 * proc-api.c: Fix common/ includes.
2196 * printcmd.c: Fix common/ includes.
2197 * ppc-linux-nat.c: Fix common/ includes.
2198 * parser-defs.h: Fix common/ includes.
2199 * osdata.c: Fix common/ includes.
2200 * obsd-nat.c: Fix common/ includes.
2201 * nat/x86-linux.c: Fix common/ includes.
2202 * nat/x86-linux-dregs.c: Fix common/ includes.
2203 * nat/x86-dregs.h: Fix common/ includes.
2204 * nat/x86-dregs.c: Fix common/ includes.
2205 * nat/ppc-linux.c: Fix common/ includes.
2206 * nat/mips-linux-watch.h: Fix common/ includes.
2207 * nat/mips-linux-watch.c: Fix common/ includes.
2208 * nat/linux-waitpid.c: Fix common/ includes.
2209 * nat/linux-ptrace.h: Fix common/ includes.
2210 * nat/linux-ptrace.c: Fix common/ includes.
2211 * nat/linux-procfs.c: Fix common/ includes.
2212 * nat/linux-personality.c: Fix common/ includes.
2213 * nat/linux-osdata.c: Fix common/ includes.
2214 * nat/linux-namespaces.c: Fix common/ includes.
2215 * nat/linux-btrace.h: Fix common/ includes.
2216 * nat/linux-btrace.c: Fix common/ includes.
2217 * nat/fork-inferior.c: Fix common/ includes.
2218 * nat/amd64-linux-siginfo.c: Fix common/ includes.
2219 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
2220 * nat/aarch64-linux.c: Fix common/ includes.
2221 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
2222 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
2223 * namespace.h: Fix common/ includes.
2224 * mips-linux-tdep.c: Fix common/ includes.
2225 * minsyms.c: Fix common/ includes.
2226 * mi/mi-parse.h: Fix common/ includes.
2227 * mi/mi-main.c: Fix common/ includes.
2228 * mi/mi-cmd-env.c: Fix common/ includes.
2229 * memrange.h: Fix common/ includes.
2230 * memattr.c: Fix common/ includes.
2231 * maint.h: Fix common/ includes.
2232 * maint.c: Fix common/ includes.
2233 * main.c: Fix common/ includes.
2234 * machoread.c: Fix common/ includes.
2235 * location.c: Fix common/ includes.
2236 * linux-thread-db.c: Fix common/ includes.
2237 * linux-nat.c: Fix common/ includes.
2238 * linux-fork.c: Fix common/ includes.
2239 * inline-frame.c: Fix common/ includes.
2240 * infrun.c: Fix common/ includes.
2241 * inflow.c: Fix common/ includes.
2242 * inferior.h: Fix common/ includes.
2243 * inferior.c: Fix common/ includes.
2244 * infcmd.c: Fix common/ includes.
2245 * inf-ptrace.c: Fix common/ includes.
2246 * inf-child.c: Fix common/ includes.
2247 * ia64-linux-nat.c: Fix common/ includes.
2248 * i387-tdep.c: Fix common/ includes.
2249 * i386-tdep.c: Fix common/ includes.
2250 * i386-linux-tdep.c: Fix common/ includes.
2251 * i386-linux-nat.c: Fix common/ includes.
2252 * i386-go32-tdep.c: Fix common/ includes.
2253 * i386-fbsd-tdep.c: Fix common/ includes.
2254 * i386-fbsd-nat.c: Fix common/ includes.
2255 * guile/scm-type.c: Fix common/ includes.
2256 * guile/guile.c: Fix common/ includes.
2257 * go32-nat.c: Fix common/ includes.
2258 * gnu-nat.c: Fix common/ includes.
2259 * gdbthread.h: Fix common/ includes.
2260 * gdbarch-selftests.c: Fix common/ includes.
2261 * gdb_usleep.c: Fix common/ includes.
2262 * gdb_select.h: Fix common/ includes.
2263 * gdb_bfd.c: Fix common/ includes.
2264 * gcore.c: Fix common/ includes.
2265 * fork-child.c: Fix common/ includes.
2266 * findvar.c: Fix common/ includes.
2267 * fbsd-nat.c: Fix common/ includes.
2268 * event-top.c: Fix common/ includes.
2269 * event-loop.c: Fix common/ includes.
2270 * dwarf2read.c: Fix common/ includes.
2271 * dwarf2loc.c: Fix common/ includes.
2272 * dwarf2-frame.c: Fix common/ includes.
2273 * dwarf-index-cache.c: Fix common/ includes.
2274 * dtrace-probe.c: Fix common/ includes.
2275 * disasm-selftests.c: Fix common/ includes.
2276 * defs.h: Fix common/ includes.
2277 * csky-tdep.c: Fix common/ includes.
2278 * cp-valprint.c: Fix common/ includes.
2279 * cp-support.h: Fix common/ includes.
2280 * cp-support.c: Fix common/ includes.
2281 * corelow.c: Fix common/ includes.
2282 * completer.h: Fix common/ includes.
2283 * completer.c: Fix common/ includes.
2284 * compile/compile.c: Fix common/ includes.
2285 * compile/compile-loc2c.c: Fix common/ includes.
2286 * compile/compile-cplus-types.c: Fix common/ includes.
2287 * compile/compile-cplus-symbols.c: Fix common/ includes.
2288 * command.h: Fix common/ includes.
2289 * cli/cli-dump.c: Fix common/ includes.
2290 * cli/cli-cmds.c: Fix common/ includes.
2291 * charset.c: Fix common/ includes.
2292 * build-id.c: Fix common/ includes.
2293 * btrace.h: Fix common/ includes.
2294 * btrace.c: Fix common/ includes.
2295 * breakpoint.h: Fix common/ includes.
2296 * breakpoint.c: Fix common/ includes.
2298 (enum agent_op): Fix common/ includes.
2299 * ax-general.c (struct aop_map): Fix common/ includes.
2300 * ax-gdb.c: Fix common/ includes.
2301 * auxv.c: Fix common/ includes.
2302 * auto-load.c: Fix common/ includes.
2303 * arm-tdep.c: Fix common/ includes.
2304 * arch/riscv.c: Fix common/ includes.
2305 * arch/ppc-linux-common.c: Fix common/ includes.
2306 * arch/i386.c: Fix common/ includes.
2307 * arch/arm.c: Fix common/ includes.
2308 * arch/arm-linux.c: Fix common/ includes.
2309 * arch/arm-get-next-pcs.c: Fix common/ includes.
2310 * arch/amd64.c: Fix common/ includes.
2311 * arch/aarch64.c: Fix common/ includes.
2312 * arch/aarch64-insn.c: Fix common/ includes.
2313 * arch-utils.c: Fix common/ includes.
2314 * amd64-windows-tdep.c: Fix common/ includes.
2315 * amd64-tdep.c: Fix common/ includes.
2316 * amd64-sol2-tdep.c: Fix common/ includes.
2317 * amd64-obsd-tdep.c: Fix common/ includes.
2318 * amd64-nbsd-tdep.c: Fix common/ includes.
2319 * amd64-linux-tdep.c: Fix common/ includes.
2320 * amd64-linux-nat.c: Fix common/ includes.
2321 * amd64-fbsd-tdep.c: Fix common/ includes.
2322 * amd64-fbsd-nat.c: Fix common/ includes.
2323 * amd64-dicos-tdep.c: Fix common/ includes.
2324 * amd64-darwin-tdep.c: Fix common/ includes.
2325 * agent.c: Fix common/ includes.
2326 * ada-lang.h: Fix common/ includes.
2327 * ada-lang.c: Fix common/ includes.
2328 * aarch64-tdep.c: Fix common/ includes.
2330 2019-01-25 Tom Tromey <tom@tromey.com>
2332 * common/create-version.sh: Use common/version.h.
2334 2019-01-24 Pedro Alves <palves@redhat.com>
2336 * infrun.c (signal_stop, signal_print, signal_program)
2337 (signal_catch, signal_pass): Now arrays instead of pointers.
2338 (update_signals_program_target, do_target_resume)
2339 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
2340 * linux-nat.c (linux_nat_target::pass_signals)
2341 (linux_nat_target::create_inferior, linux_nat_target::attach):
2343 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
2344 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
2345 * procfs.c (procfs_target::pass_signals): Adjust.
2346 * record-full.c (record_full_target::resume): Adjust.
2347 * remote.c (remote_target::pass_signals)
2348 (remote_target::program_signals): Adjust.
2349 * target-debug.h (target_debug_print_signals): Now takes a
2350 gdb::array_view as parameter. Adjust.
2351 * target.h (target_ops) <pass_signals, program_signals>: Replace
2352 pointer and length parameters with gdb::array_view.
2353 (target_pass_signals, target_program_signals): Likewise.
2354 * target-delegates.c: Regenerate.
2356 2019-01-24 Pedro Alves <palves@redhat.com>
2358 * common/forward-scope-exit.h
2359 (forward_scope_exit::forward_scope_exit): Pass arguments to
2360 m_bind_function directly, instead of creating a std::bind and
2363 2019-01-24 Alan Hayward <alan.hayward@arm.com>
2365 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
2367 (pass_in_v_vfp_candidate): Likewise.
2369 2019-01-23 Tom Tromey <tom@tromey.com>
2370 Pedro Alves <palves@redhat.com>
2372 * regcache.c (class regcache_invalidator): Remove.
2373 (regcache::raw_write): Use make_scope_exit.
2375 2019-01-23 Tom Tromey <tom@tromey.com>
2377 * ui-out.h (class ui_out_emit_type): Update comment.
2379 2019-01-23 Tom Tromey <tom@tromey.com>
2381 * infrun.c (fetch_inferior_event): Update comment.
2383 2019-01-23 Tom Tromey <tom@tromey.com>
2384 Pedro Alves <palves@redhat.com>
2386 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
2388 (fetch_inferior_event): Use SCOPE_EXIT.
2391 2019-01-23 Tom Tromey <tom@tromey.com>
2392 Pedro Alves <palves@redhat.com>
2394 * infrun.c (disable_thread_events): Delete.
2395 (stop_all_threads): Use SCOPE_EXIT.
2397 2019-01-23 Tom Tromey <tom@tromey.com>
2398 Pedro Alves <palves@redhat.com>
2400 * symfile.c: Include forward-scope-exit.h.
2401 (clear_symtab_users_cleanup): Replace forward declaration with
2402 a FORWARD_SCOPE_EXIT.
2403 (syms_from_objfile_1): Use the forward_scope_exit and
2404 gdb::optional instead of cleanup_function.
2405 (reread_symbols): Use the forward_scope_exit instead of
2407 (clear_symtab_users_cleanup): Remove function.
2409 2019-01-23 Tom Tromey <tom@tromey.com>
2410 Pedro Alves <palves@redhat.com>
2412 * linux-nat.c: Include scope-exit.h.
2413 (cleanup_target_stop): Remove.
2414 (linux_nat_target::static_tracepoint_markers_by_strid): Use
2417 2019-01-23 Tom Tromey <tom@tromey.com>
2418 Pedro Alves <palves@redhat.com>
2420 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
2421 (call_function_by_hand_dummy): Use SCOPE_EXIT.
2423 2019-01-23 Tom Tromey <tom@tromey.com>
2424 Andrew Burgess <andrew.burgess@embecosm.com>
2425 Pedro Alves <palves@redhat.com>
2427 * infrun.c (fetch_inferior_event): Use scope_exit.
2428 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
2429 * top.c (execute_command): Use scope_exit.
2430 * breakpoint.c (bpstat_do_actions): Use scope_exit.
2431 * utils.c (do_bpstat_clear_actions_cleanup)
2432 (make_bpstat_clear_actions_cleanup): Remove.
2434 2019-01-23 Tom Tromey <tom@tromey.com>
2435 Pedro Alves <palves@redhat.com>
2437 * infrun.c: Include "common/scope-exit.h"
2438 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
2439 (wait_for_inferior): Use SCOPE_EXIT.
2440 (fetch_inferior_event): Use scope_exit.
2442 2019-01-23 Tom Tromey <tom@tromey.com>
2443 Pedro Alves <palves@redhat.com>
2445 * breakpoint.c (create_breakpoint): Remove cleanup.
2447 2019-01-23 Tom Tromey <tom@tromey.com>
2448 Andrew Burgess <andrew.burgess@embecosm.com>
2449 Pedro Alves <palves@redhat.com>
2451 2019-01-23 Pedro Alves <palves@redhat.com>
2453 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
2455 2019-01-23 Pedro Alves <palves@redhat.com>
2456 Andrew Burgess <andrew.burgess@embecosm.com>
2458 * gdbthread.h: Include "common/forward-scope-exit.h".
2459 (scoped_finish_thread_state): Redefine custom class in terms of
2462 2019-01-23 Pedro Alves <palves@redhat.com>
2463 Andrew Burgess <andrew.burgess@embecosm.com>
2465 * common/forward-scope-exit.h: New file.
2467 2019-01-23 Pedro Alves <palves@redhat.com>
2468 Andrew Burgess <andrew.burgess@embecosm.com>
2469 Tom Tromey <tom@tromey.com>
2471 * common/scope-exit.h: New file.
2473 2019-01-23 Pedro Alves <palves@redhat.com>
2475 * common/preprocessor.h (ESC): Rename to ...
2476 (ESC_PARENS): ... this.
2477 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
2478 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
2480 2019-01-23 Tom Tromey <tom@tromey.com>
2482 * language.h (class scoped_switch_to_sym_language_if_auto):
2483 Initialize m_lang in both cases.
2485 2019-01-23 Alan Hayward <alan.hayward@arm.com>
2487 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
2490 2019-01-22 Tom Tromey <tom@tromey.com>
2492 * corelow.c: Do not include sys/file.h.
2494 2019-01-22 Tom Tromey <tom@tromey.com>
2496 * tui/tui-wingeneral.h: Include gdb_curses.h.
2498 2019-01-22 Tom Tromey <tom@tromey.com>
2500 * source-cache.h (class source_cache) <get_source_lines,
2501 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
2503 2019-01-22 Tom Tromey <tom@tromey.com>
2505 * remote-fileio.h (struct remote_target): Declare.
2507 2019-01-22 Tom Tromey <tom@tromey.com>
2509 * python/py-arch.c: Do not include py-ref.h.
2510 * python/py-bpevent.c: Do not include py-ref.h.
2511 * python/py-cmd.c: Do not include py-ref.h.
2512 * python/py-continueevent.c: Do not include py-ref.h.
2513 * python/py-event.h: Do not include py-ref.h.
2514 * python/py-evtregistry.c: Do not include py-ref.h.
2515 * python/py-finishbreakpoint.c: Do not include py-ref.h.
2516 * python/py-frame.c: Do not include py-ref.h.
2517 * python/py-framefilter.c: Do not include py-ref.h.
2518 * python/py-function.c: Do not include py-ref.h.
2519 * python/py-infevents.c: Do not include py-ref.h.
2520 * python/py-linetable.c: Do not include py-ref.h.
2521 * python/py-objfile.c: Do not include py-ref.h.
2522 * python/py-param.c: Do not include py-ref.h.
2523 * python/py-prettyprint.c: Do not include py-ref.h.
2524 * python/py-progspace.c: Do not include py-ref.h.
2525 * python/py-symbol.c: Do not include py-ref.h.
2526 * python/py-symtab.c: Do not include py-ref.h.
2527 * python/py-type.c: Do not include py-ref.h.
2528 * python/py-unwind.c: Do not include py-ref.h.
2529 * python/py-utils.c: Do not include py-ref.h.
2530 * python/py-value.c: Do not include py-ref.h.
2531 * python/py-varobj.c: Do not include py-ref.h.
2532 * python/py-xmethods.c: Do not include py-ref.h.
2533 * python/python.c: Do not include py-ref.h.
2534 * varobj.c: Do not include py-ref.h.
2536 2019-01-22 Tom Tromey <tom@tromey.com>
2538 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
2541 2019-01-22 Tom Tromey <tom@tromey.com>
2543 * compile/compile-cplus-types.c: Remove a comment by #include.
2545 2019-01-22 Tom Tromey <tom@tromey.com>
2547 * compile/gcc-c-plugin.h: Include compile-internal.h.
2549 2019-01-22 Tom Tromey <tom@tromey.com>
2551 * stabsread.c (EXTERN): Do not define.
2552 (symnum, next_symbol_text_func, processing_gcc_compilation)
2553 (within_function, global_sym_chain, global_stabs)
2554 (previous_stab_code, this_object_header_files)
2555 (n_this_object_header_files)
2556 (n_allocated_this_object_header_files): Define.
2557 * stabsread.h (EXTERN): Never define. Use "extern".
2559 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2561 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
2564 2019-01-21 Tom Tromey <tom@tromey.com>
2566 * ui-out.c: Fix includes.
2567 * tui/tui-source.c: Fix includes.
2568 * target.c: Fix includes.
2569 * remote.c: Fix includes.
2570 * regcache.c: Fix includes.
2571 * python/py-block.c: Fix includes.
2572 * printcmd.c: Fix includes.
2573 * or1k-tdep.c: Fix includes.
2574 * mi/mi-main.c: Fix includes.
2575 * m32r-tdep.c: Fix includes.
2576 * csky-tdep.c: Fix includes.
2577 * compile/compile-cplus-types.c: Fix includes.
2578 * cli/cli-interp.c: Fix includes.
2580 2019-01-21 Alan Hayward <alan.hayward@arm.com>
2582 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
2585 2019-01-16 Tom Tromey <tom@tromey.com>
2587 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
2589 (struct objfile) <msymbols_range>: Move from top level.
2590 <msymbols>: New method.
2591 (class objfile_msymbols): Remove.
2592 * symtab.c (default_collect_symbol_completion_matches_break_on):
2594 * symmisc.c (dump_msymbols): Update.
2595 * stabsread.c (scan_file_globals): Update.
2596 * objc-lang.c (info_selectors_command, info_classes_command)
2597 (find_methods): Update.
2598 * minsyms.c (find_solib_trampoline_target): Update.
2599 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
2600 * coffread.c (coff_symfile_read): Update.
2601 * ada-lang.c (ada_lookup_simple_minsym)
2602 (ada_collect_symbol_completion_matches): Update.
2604 2019-01-16 Tom Tromey <tom@tromey.com>
2606 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
2607 type. Remove no-argument constructor.
2608 <iterator::operator++>: Simplify.
2610 <end>: Use minimal_symbol_count.
2612 2019-01-16 Tom Tromey <tom@tromey.com>
2614 * objfiles.h (struct objfile) <psymtabs>: New method.
2615 (class objfile_psymtabs): Remove.
2616 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
2618 <range>: New method.
2619 (require_partial_symbols): Change return type.
2620 * psymtab.c (require_partial_symbols)
2621 (psym_expand_symtabs_matching): Update.
2622 * mdebugread.c (parse_partial_symbols): Update.
2623 * dbxread.c (dbx_end_psymtab): Update.
2625 2019-01-15 Tom Tromey <tom@tromey.com>
2627 * symtab.c (lookup_objfile_from_block)
2628 (lookup_symbol_in_objfile_symtabs)
2629 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
2630 (find_line_symtab, info_sources_command)
2631 (default_collect_symbol_completion_matches_break_on)
2632 (make_source_files_completion_list): Update.
2633 * symmisc.c (print_objfile_statistics, dump_objfile)
2634 (maintenance_print_symbols, maintenance_info_symtabs)
2635 (maintenance_check_symtabs, maintenance_info_line_tables):
2637 * source.c (select_source_symtab)
2638 (forget_cached_source_info_for_objfile): Update.
2639 * objfiles.h (class objfile_compunits): Remove.
2640 (struct objfile) <compunits_range>: New typedef.
2641 (compunits): New method.
2642 * objfiles.c (objfile_relocate1): Update.
2643 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
2644 * maint.c (count_symtabs_and_blocks): Update.
2645 * linespec.c (iterate_over_all_matching_symtabs): Update.
2646 * cp-support.c (add_symbol_overload_list_qualified): Update.
2647 * coffread.c (coff_symtab_read): Update.
2648 * ada-lang.c (add_nonlocal_symbols)
2649 (ada_collect_symbol_completion_matches)
2650 (ada_add_global_exceptions): Update.
2652 2019-01-15 Tom Tromey <tom@tromey.com>
2654 * progspace.h (program_space) <objfiles_safe_range>: New
2656 <objfiles_safe>: New method.
2657 * objfiles.h (class all_objfiles_safe): Remove.
2658 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
2659 * jit.c (jit_inferior_exit_hook): Update.
2661 2019-01-17 Tom Tromey <tom@tromey.com>
2663 * progspace.h (program_space) <objfiles_range>: New typedef.
2664 <objfiles>: New method.
2665 <objfiles_head>: Rename from objfiles.
2666 (object_files): Update.
2667 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
2668 * guile/scm-pretty-print.c
2669 (ppscm_find_pretty_printer_from_objfiles): Update.
2670 * guile/scm-objfile.c (gdbscm_objfiles): Update.
2671 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
2673 * python/py-progspace.c (pspy_get_objfiles): Update.
2674 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
2676 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
2677 (objfpy_lookup_objfile_by_build_id): Update.
2678 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
2679 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
2681 * symtab.c (iterate_over_symtabs, matching_obj_sections)
2682 (expand_symtab_containing_pc, lookup_objfile_from_block)
2683 (lookup_static_symbol, basic_lookup_transparent_type)
2684 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2685 (find_line_symtab, info_sources_command)
2686 (default_collect_symbol_completion_matches_break_on)
2687 (make_source_files_completion_list, find_main_name): Update.
2688 * symmisc.c (print_symbol_bcache_statistics)
2689 (print_objfile_statistics, maintenance_print_symbols)
2690 (maintenance_print_msymbols, maintenance_print_objfiles)
2691 (maintenance_info_symtabs, maintenance_check_symtabs)
2692 (maintenance_expand_symtabs, maintenance_info_line_tables):
2694 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
2695 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
2696 (map_overlay_command, unmap_overlay_command)
2697 (simple_overlay_update, expand_symtabs_matching)
2698 (map_symbol_filenames): Update.
2699 * symfile-debug.c (set_debug_symfile): Update.
2700 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
2702 * source.c (select_source_symtab, forget_cached_source_info):
2704 * solib.c (solib_read_symbols): Update.
2705 * solib-spu.c (append_ocl_sos): Update.
2706 * psymtab.c (maintenance_print_psymbols)
2707 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2708 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
2709 * printcmd.c (info_symbol_command): Update.
2710 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
2712 * objfiles.h (class all_objfiles): Remove.
2713 * objfiles.c (have_partial_symbols, have_full_symbols)
2714 (have_minimal_symbols, qsort_cmp, update_section_map)
2715 (shared_objfile_contains_address_p)
2716 (default_iterate_over_objfiles_in_search_order): Update.
2717 * objc-lang.c (info_selectors_command, info_classes_command)
2718 (find_methods): Update.
2719 * minsyms.c (find_solib_trampoline_target): Update.
2720 * maint.c (maintenance_info_sections)
2721 (maintenance_translate_address, count_symtabs_and_blocks):
2723 * main.c (captured_main_1): Update.
2724 * linux-thread-db.c (try_thread_db_load_from_pdir)
2725 (has_libpthread): Update.
2726 * linespec.c (iterate_over_all_matching_symtabs)
2727 (search_minsyms_for_name): Update.
2728 * jit.c (jit_find_objf_with_entry_addr): Update.
2729 * hppa-tdep.c (find_unwind_entry)
2730 (hppa_lookup_stub_minimal_symbol): Update.
2731 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
2733 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
2734 (elf_gnu_ifunc_resolve_by_got): Update.
2735 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
2736 * dwarf-index-write.c (save_gdb_index_command): Update.
2737 * cp-support.c (add_symbol_overload_list_qualified): Update.
2738 * breakpoint.c (create_overlay_event_breakpoint)
2739 (create_longjmp_master_breakpoint)
2740 (create_std_terminate_master_breakpoint)
2741 (create_exception_master_breakpoint): Update.
2742 * blockframe.c (find_pc_partial_function): Update.
2743 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
2744 (ada_collect_symbol_completion_matches)
2745 (ada_add_global_exceptions): Update.
2747 2019-01-17 Tom Tromey <tom@tromey.com>
2749 * solib-target.c (lm_info_target_p): Remove typedef. Don't
2751 (solib_target_parse_libraries): Change return type.
2752 (library_list_start_segment, library_list_start_section)
2753 (library_list_end_library, library_list_start_library); Update.
2754 (solib_target_free_library_list): Remove.
2755 (solib_target_parse_libraries): Remove cleanup. Change return
2757 (solib_target_current_sos): Update.
2759 2019-01-17 Tom Tromey <tromey@bapiya>
2761 * valprint.c: Replace "the the" with "the".
2762 * symtab.c: Replace "the the" with "the".
2763 * solib.c: Replace "the the" with "the".
2764 * solib-dsbt.c: Replace "the the" with "the".
2765 * linespec.c: Replace "the the" with "the".
2766 * dwarf2loc.h: Replace "the the" with "the".
2767 * amd64-windows-tdep.c: Replace "the the" with "the".
2768 * aarch64-tdep.c: Replace "the the" with "the".
2770 2019-01-16 Keith Seitz <keiths@redhat.com>
2773 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
2774 <builder>: Rename to ..
2775 <m_builder>: ... this and make private.
2776 (dwarf2_cu::get_builder): New method. Change all users of
2777 `builder' to use this method.
2778 (dwarf2_start_symtab): Move to ...
2779 (dwarf2_cu::start_symtab): ... here. Update all callers
2780 (setup_type_unit_groups): Move to ...
2781 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
2783 (dwarf2_cu::reset_builder): New method.
2784 (process_full_compunit, process_full_type_unit): Use
2785 dwarf2_cu::reset_builder.
2786 (follow_die_offset): Record the ancestor CU if it is different
2787 from the followed DIE's CU.
2788 (follow_die_sig_1): Likewise.
2790 2019-01-15 Tom Tromey <tom@tromey.com>
2792 * remote.c (class remote_state) <buf>: Now a char_vector.
2794 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
2796 (remote_target::getpkt_or_notif_sane_1)
2797 (remote_target::getpkt_sane)
2798 (remote_target::getpkt_or_notif_sane): Likewise.
2799 (class remote_target) <putpkt>: New overload.
2800 (remote_target::read_frame): Change type of "buf_p". Remove
2802 (packet_ok): New overload.
2803 (packet_check_result): New overload.
2806 2019-01-14 Tom Tromey <tom@tromey.com>
2808 * remote-notif.c (handle_notification, remote_notif_ack)
2809 (remote_notif_parse): Make "buf" const.
2810 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
2812 (remote_notif_parse, remote_notif_ack, handle_notification):
2814 * remote.c (remote_notif_stop_parse): Make "buf" const.
2815 (remote_target::remote_parse_stop_reply): Make "buf" const.
2816 (remote_notif_stop_ack): Make "buf" const.
2818 2019-01-14 Tom Tromey <tom@tromey.com>
2820 * remote.c (remote_console_output): Make parameter const.
2822 2019-01-14 Tom Tromey <tom@tromey.com>
2824 * target-debug.h (target_debug_print_signals): Constify.
2825 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
2826 * procfs.c (procfs_target::pass_signals): Update.
2827 * linux-nat.c (linux_nat_target::pass_signals): Update.
2828 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
2829 * target-delegates.c: Rebuild.
2830 * remote.c (remote_target::program_signals): Update.
2831 (remote_target::pass_signals): Update.
2832 * target.c (target_pass_signals): Constify argument.
2833 (target_program_signals): Likewise.
2834 * target.h (struct target_ops) <pass_signals, program_signals>:
2836 (target_pass_signals, target_program_signals): Constify argument.
2838 2019-01-14 Tom Tromey <tom@tromey.com>
2841 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
2843 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
2845 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
2847 * rs6000-tdep.c: Include reggroups.h.
2848 (IS_V_ALIAS_PSEUDOREG): Define.
2849 (rs6000_register_name): Return names for the "vX" aliases.
2850 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
2851 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
2852 aliases. Call default_register_reggroup_p for all other
2854 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
2856 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
2857 Handle "vX" aliases.
2858 (v_alias_pseudo_register_collect): New function.
2859 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
2860 (rs6000_gdbarch_init): Initialize "vX" aliases as
2861 pseudo-registers. Restore registration of
2862 rs6000_pseudo_register_reggroup_p with
2863 set_tdesc_pseudo_register_reggroup_p.
2865 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
2867 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
2868 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
2869 set_gdbarch_num_pseudo_regs.
2871 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2873 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
2874 Remove arg prefixname, add do_set and do_show.
2875 Add member functions set_list and show_list.
2876 * cli/cli-style.c (class cli_style_option): Update accordingly.
2877 (style_set_list): Move to file scope.
2878 (style_show_list): Likewise.
2879 (set_style): Call help_list.
2880 (show_style): Call cmd_show_list.
2881 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
2882 Update to use the new macro.
2884 2019-10-12 Joel Brobecker <brobecker@adacore.com>
2886 * ada-lang.c (_initialize_ada_language): Expand the help text
2887 for the "catch exception" command.
2889 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2891 * symtab.c (matching_obj_sections): Initialize obj,
2892 declare it closer to its usage.
2894 2019-01-10 Tom Tromey <tom@tromey.com>
2896 * thread-iter.h (inf_threads_iterator): Use next_iterator.
2897 (basic_inf_threads_range): Remove.
2898 (inf_threads_range, inf_non_exited_threads_range)
2899 (safe_inf_threads_range): Use next_adapter.
2901 2019-01-10 Keith Seitz <keiths@redhat.com>
2905 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
2906 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
2908 2019-01-10 Keith Seitz <keiths@redhat.com>
2912 * dictionary.c (pending_to_vector): Remove.
2913 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
2914 Remove _1 suffix, replacing functions of the same name. Update
2916 (dict_create_hashed, dict_create_hashed_expandable)
2917 (dict_create_linear, dict_create_linear_expandable, dict_free)
2918 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
2919 Make functions static.
2921 2019-01-10 Keith Seitz <keiths@redhat.com>
2925 * dictionary.h (struct dictionary): Replace declaration with
2927 (dict_create_hashed, dict_create_hashed_expandable)
2928 (dict_create_linear, dict_create_linear_expandable)
2929 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
2930 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
2931 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
2932 taking multidictionary argument.
2933 [ALL_DICT_SYMBOLS]: Update for multidictionary.
2934 * block.h (struct block) <dict>: Change to multidictionary
2935 and rename `multidict'.
2936 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
2937 symmisc.c: Update all dictionary references to multidictionary.
2939 2019-01-10 Keith Seitz <keiths@redhat.com>
2943 * dictionary.c: Include unordered_map.
2944 (pending_to_vector): New function.
2945 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
2946 Rewrite the non-"_1" functions to take vector instead
2948 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
2949 "new" _1 versions of the same name.
2950 (multidictionary): Define.
2951 (std::hash<enum language): New definition.
2952 (collate_pending_symbols_by_language, mdict_create_hashed)
2953 (mdict_create_hashed_expandable, mdict_create_linear)
2954 (mdict_create_linear_expandable, mdict_free)
2955 (find_language_dictionary, create_new_language_dictionary)
2956 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
2957 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
2958 (mdict_size, mdict_empty): New functions.
2959 * dictionary.h (mdict_iterator): Define.
2961 2019-01-10 Pedro Alves <palves@redhat.com>
2963 * breakpoint.c (read_uploaded_action)
2964 (create_tracepoint_from_upload): Adjust to use
2965 gdb::unique_xmalloc_ptr.
2966 * ctf.c (ctf_write_uploaded_tp):
2967 (SET_ARRAY_FIELD): Use emplace_back.
2968 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
2969 * tracefile-tfile.c (tfile_write_uploaded_tp):
2970 * tracepoint.c (parse_tracepoint_definition): Adjust to use
2971 gdb::unique_xmalloc_ptr.
2972 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
2973 at_string, cond_string, cmd_strings>: Replace char pointers
2974 with gdb::unique_xmalloc_ptr.
2976 2019-01-10 Pedro Alves <palves@redhat.com>
2978 * solib-target.c (library_list_start_library): Don't xstrdup name.
2980 2019-01-10 Pedro Alves <palves@redhat.com>
2982 * mdebugread.c (parse_partial_symbols): Use
2983 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
2985 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
2987 * linux-fork.c (scoped_switch_fork_info)
2988 <~scoped_switch_fork_info>: Fix incorrect variable name.
2990 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
2992 * linux-fork.c (scoped_switch_fork_info)
2993 <scoped_switch_fork_info>: Make explicit.
2994 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
2996 2019-01-10 Tom Tromey <tom@tromey.com>
2998 * objfiles.h (objfile::reset_psymtabs): Update.
2999 * objfiles.c (objfile::objfile): Update.
3000 * psymtab.h (psymtab_storage::obstack): Update.
3001 (psymtab_storage::m_obstack): Use gdb::optional.
3002 (class psymtab_storage): Update comment. Remove objfile
3004 * psymtab.c (psymtab_storage::psymtab_storage): Update.
3006 2019-01-10 Tom Tromey <tom@tromey.com>
3008 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
3009 <free_psymtabs>: Now private.
3010 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
3011 (allocate_psymtab): Use new method.
3013 2019-01-10 Tom Tromey <tom@tromey.com>
3015 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
3016 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
3017 * mdebugread.c (parse_partial_symbols): Use
3018 allocate_dependencies.
3019 * dwarf2read.c (dwarf2_create_include_psymtab): Use
3020 allocate_dependencies.
3021 (process_psymtab_comp_unit_reader)
3022 (build_type_psymtab_dependencies): Likewise.
3023 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
3025 2019-01-10 Tom Tromey <tom@tromey.com>
3027 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
3028 PSYMBOL_SET_LANGUAGE.
3029 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
3031 2019-01-10 Tom Tromey <tom@tromey.com>
3033 * psymtab.h (psymtab_storage::obstack): New method.
3034 <m_obstack>: Rename from obstack; now private.
3035 * psymtab.c (psymtab_storage): Update.
3036 * dwarf2read.c (create_addrmap_from_index)
3037 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
3040 2019-01-10 Tom Tromey <tom@tromey.com>
3042 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
3043 * objfiles.h (objfile::reset_psymtabs): New method.
3045 2019-01-10 Tom Tromey <tom@tromey.com>
3047 * symmisc.c (print_symbol_bcache_statistics): Update.
3048 (print_objfile_statistics): Update.
3049 * symfile.c (reread_symbols): Update.
3050 * psymtab.h (class psymtab_storage): New.
3051 * psymtab.c (psymtab_storage): New constructor.
3052 (~psymtab_storage): New destructor.
3053 (require_partial_symbols): Update.
3054 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
3055 (find_pc_sect_psymtab, find_pc_sect_psymbol)
3056 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
3057 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
3058 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
3059 (start_psymtab_common, end_psymtab_common)
3060 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
3061 (allocate_psymtab): Update.
3062 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
3064 (dump_psymtab_addrmap, maintenance_print_psymbols)
3065 (maintenance_check_psymtabs): Update.
3066 (class objfile_psymtabs): Move to objfiles.h.
3067 * psympriv.h (discard_psymtab): Now inline.
3068 (psymtab_discarder::psymtab_discarder): Update.
3069 (psymtab_discarder::~psymtab_discarder): Update.
3070 (ALL_OBJFILE_PSYMTABS): Rewrite.
3071 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
3072 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
3074 <partial_symtabs>: New field.
3075 (class objfile_psymtabs): Move from psymtab.h. Update.
3076 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
3078 (objfile::~objfile): Don't destroy psymbol_cache.
3079 * mdebugread.c (parse_partial_symbols): Update.
3080 * dwarf2read.c (create_addrmap_from_index)
3081 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
3082 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
3083 (add_partial_subprogram, dwarf2_ranges_read): Update.
3084 * dwarf-index-write.c (write_address_map)
3085 (write_one_signatured_type, recursively_write_psymbols)
3086 (class debug_names, class debug_names, write_psymtabs_to_index):
3089 2019-01-10 Tom Tromey <tom@tromey.com>
3091 * symtab.h (SYMBOL_SET_NAMES): Update.
3092 (symbol_set_names): Update.
3093 (MSYMBOL_SET_NAMES): Update.
3094 * symtab.c (symbol_set_names): Change argument to be an
3095 objfile_per_bfd_storage.
3096 * psymtab.c (add_psymbol_to_bcache): Update.
3097 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
3099 2019-01-10 Tom Tromey <tom@tromey.com>
3101 * symtab.c (create_demangled_names_hash): Change argument to be an
3102 objfile_per_bfd_storage.
3103 (symbol_set_names): Update.
3105 2019-01-10 Tom Tromey <tom@tromey.com>
3107 * xcoffread.c (xcoff_initial_scan): Unconditionally call
3109 * psymtab.c (init_psymbol_list): Do nothing if already called.
3110 * psympriv.h (init_psymbol_list): Add comment.
3111 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
3113 * dbxread.c (dbx_symfile_read): Unconditionally call
3116 2019-01-10 Tom Tromey <tom@tromey.com>
3118 * xcoffread.c (scan_xcoff_symtab): Update.
3119 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
3121 * mdebugread.c (parse_partial_symbols)
3122 (handle_psymbol_enumerators): Update.
3123 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
3124 * dbxread.c (read_dbx_symtab): Update.
3125 * psympriv.h (psymbol_placement): New enum.
3126 (add_psymbol_to_list): Update.
3128 2019-01-10 Tom Tromey <tom@tromey.com>
3130 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
3131 static_psymbols parameters.
3132 (scan_xcoff_symtab): Update.
3133 * psymtab.c (start_psymtab_common): Remove global_psymbols and
3134 static_psymbols parameters.
3135 * psympriv.h (start_psymtab_common): Update.
3136 * mdebugread.c (parse_partial_symbols): Update.
3137 * dwarf2read.c (create_partial_symtab): Update.
3138 * dbxread.c (read_dbx_symtab): Update.
3139 (start_psymtab): Remove global_psymbols and static_psymbols
3142 2019-01-10 Tom Tromey <tom@tromey.com>
3144 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
3145 * psymtab.c (allocate_psymtab): Add comment.
3146 * psympriv.h (allocate_psymtab): Add comment.
3147 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
3149 * dbxread.c (dbx_end_psymtab): Remove some initializations.
3151 2019-01-10 Tom Tromey <tom@tromey.com>
3153 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
3155 * mipsread.c: Include mdebugread.h.
3156 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
3158 * elfread.c: Include mdebugread.h.
3160 2019-01-09 Tom Tromey <tom@tromey.com>
3162 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
3163 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
3164 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
3165 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
3166 (psym_lookup_symbol, psym_find_last_source_symtab)
3167 (psym_forget_cached_source_info, psym_print_stats)
3168 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
3169 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
3170 (psym_map_matching_symbols, psym_expand_symtabs_matching)
3171 (psym_find_compunit_symtab_by_address)
3172 (maintenance_print_psymbols, maintenance_info_psymtabs)
3173 (maintenance_check_psymtabs): Use ranged for.
3174 * psymtab.h (class objfile_psymtabs): New.
3175 (require_partial_symbols): Return objfile_psymtabs.
3176 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
3178 2019-01-09 Tom Tromey <tom@tromey.com>
3180 * symfile.c (overlay_invalidate_all, find_pc_overlay)
3181 (find_pc_mapped_section, list_overlays_command)
3182 (map_overlay_command, unmap_overlay_command)
3183 (simple_overlay_update): Use all_objfiles.
3184 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
3185 * printcmd.c (info_symbol_command): Use all_objfiles.
3186 * objfiles.h (ALL_OBJSECTIONS): Remove.
3187 * maint.c (maintenance_translate_address): Use all_objfiles.
3188 * gcore.c (gcore_create_callback): Use all_objfiles.
3189 (objfile_find_memory_regions): Likewise.
3191 2019-01-09 Tom Tromey <tom@tromey.com>
3193 * symtab.c (find_line_symtab, info_sources_command)
3194 (make_source_files_completion_list): Use objfile_compunits.
3195 * source.c (select_source_symtab): Use objfile_compunits.
3196 * objfiles.h (struct objfile): Update comment.
3197 (ALL_OBJFILES): Remove.
3198 (ALL_FILETABS): Remove.
3199 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
3202 2019-01-09 Tom Tromey <tom@tromey.com>
3204 * symmisc.c (print_objfile_statistics, dump_objfile)
3205 (maintenance_print_symbols): Use compunit_filetabs.
3206 * source.c (forget_cached_source_info_for_objfile): Use
3208 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
3209 (ALL_FILETABS): Use compunit_filetabs.
3210 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
3211 * coffread.c (coff_symtab_read): Use compunit_filetabs.
3213 2019-01-09 Tom Tromey <tom@tromey.com>
3215 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
3216 (compunit_filetabs): New.
3217 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
3219 (info_sources_command, make_source_files_completion_list): Remove
3221 * symmisc.c (print_objfile_statistics, dump_objfile)
3222 (maintenance_print_symbols): Remove declaration.
3223 (maintenance_info_symtabs): Use compunit_filetabs.
3224 (maintenance_info_line_tables): Likewise.
3225 * source.c (select_source_symtab): Change local variable name.
3226 (forget_cached_source_info_for_objfile): Remove declaration.
3227 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
3228 * objfiles.c (objfile_relocate1): Remove declaration.
3229 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
3231 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
3232 * coffread.c (coff_symtab_read): Remove declaration.
3233 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3236 2019-01-09 Tom Tromey <tom@tromey.com>
3238 * symtab.c (lookup_objfile_from_block)
3239 (find_pc_sect_compunit_symtab, search_symbols)
3240 (default_collect_symbol_completion_matches_break_on): Use
3242 * objfiles.h (ALL_COMPUNITS): Remove.
3243 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
3244 * cp-support.c (add_symbol_overload_list_qualified): Use
3246 * ada-lang.c (ada_collect_symbol_completion_matches)
3247 (ada_add_global_exceptions): Use objfile_compunits.
3249 2019-01-09 Tom Tromey <tom@tromey.com>
3251 * source.c (select_source_symtab)
3252 (forget_cached_source_info_for_objfile): Remove declaration.
3253 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
3255 * maint.c (count_symtabs_and_blocks): Remove declaration.
3256 * cp-support.c (add_symbol_overload_list_qualified): Remove
3258 * coffread.c (coff_symtab_read): Remove declaration.
3259 * symtab.c (lookup_symbol_in_objfile_symtabs)
3260 (basic_lookup_transparent_type_1): Use objfile_compunits.
3261 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
3262 (info_sources_command, search_symbols)
3263 (default_collect_symbol_completion_matches_break_on)
3264 (make_source_files_completion_list): Remove declaration.
3265 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
3266 (ada_collect_symbol_completion_matches)
3267 (ada_add_global_exceptions): Remove declaration.
3268 * linespec.c (iterate_over_all_matching_symtabs): Use
3270 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
3271 (class objfile_compunits): New.
3272 (ALL_COMPUNITS): Use objfile_compunits.
3273 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
3274 (maintenance_check_symtabs, maintenance_info_line_tables): Use
3276 * objfiles.c (objfile_relocate1): Use objfile_compunits.
3278 2019-01-09 Tom Tromey <tom@tromey.com>
3280 * symtab.c (search_symbols)
3281 (default_collect_symbol_completion_matches_break_on): Use
3283 * ada-lang.c (ada_lookup_simple_minsym)
3284 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
3285 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
3286 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
3288 * coffread.c (coff_symfile_read): Use objfile_msymbols.
3289 * symmisc.c (dump_msymbols): Use objfile_msymbols.
3290 * objc-lang.c (find_methods): Use objfile_msymbols.
3291 (info_selectors_command, info_classes_command): Likewise.
3292 * stabsread.c (scan_file_globals): Use objfile_msymbols.
3293 * objfiles.h (class objfile_msymbols): New.
3294 (ALL_OBJFILE_MSYMBOLS): Remove.
3295 (ALL_MSYMBOLS): Remove.
3297 2019-01-09 Tom Tromey <tom@tromey.com>
3299 * common/next-iterator.h (next_adapter): Add Iterator template
3301 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
3302 (class all_objfiles_safe): New.
3303 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
3304 * objfiles.c (put_objfile_before): Update comment.
3305 (add_separate_debug_objfile): Likewise.
3306 (free_all_objfiles): Use all_objfiles_safe.
3307 (objfile_purge_solibs): Likewise.
3309 2019-01-09 Tom Tromey <tom@tromey.com>
3311 * symtab.c (iterate_over_symtabs, matching_obj_sections)
3312 (expand_symtab_containing_pc, lookup_static_symbol)
3313 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
3314 (find_symbol_at_address, find_line_symtab, find_main_name): Use
3316 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
3317 * breakpoint.c (create_overlay_event_breakpoint)
3318 (create_longjmp_master_breakpoint)
3319 (create_std_terminate_master_breakpoint)
3320 (create_exception_master_breakpoint): Use all_objfiles.
3321 * linux-thread-db.c (try_thread_db_load_from_pdir)
3322 (has_libpthread): Use all_objfiles.
3323 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
3324 * linespec.c (iterate_over_all_matching_symtabs)
3325 (search_minsyms_for_name): Use all_objfiles.
3326 * maint.c (maintenance_info_sections): Use all_objfiles.
3327 * main.c (captured_main_1): Use all_objfiles.
3328 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
3329 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
3330 * guile/scm-pretty-print.c
3331 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
3332 * solib-spu.c (append_ocl_sos): Use all_objfiles.
3333 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
3334 (maintenance_print_msymbols): Use all_objfiles.
3335 * source.c (select_source_symtab): Use all_objfiles.
3336 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
3337 * symfile.c (remove_symbol_file_command)
3338 (expand_symtabs_matching, map_symbol_filenames): Use
3340 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
3342 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
3343 * objc-lang.c (find_methods): Use all_objfiles.
3344 * objfiles.c (have_partial_symbols, have_full_symbols)
3345 (have_minimal_symbols, qsort_cmp)
3346 (default_iterate_over_objfiles_in_search_order): Use
3348 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
3349 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
3350 (maintenance_check_psymtabs): Use all_objfiles.
3351 (ALL_PSYMTABS): Remove.
3352 * compile/compile-object-run.c (do_module_cleanup): Use
3354 * blockframe.c (find_pc_partial_function): Use all_objfiles.
3355 * cp-support.c (add_symbol_overload_list_qualified): Use
3357 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
3359 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
3360 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
3362 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
3363 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
3364 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
3366 * solib.c (solib_read_symbols): Use all_objfiles
3368 2019-01-09 Tom Tromey <tom@tromey.com>
3370 * probe.c (parse_probes_in_pspace): Use all_objfiles.
3371 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
3373 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
3374 * symmisc.c (print_symbol_bcache_statistics)
3375 (print_objfile_statistics, maintenance_print_objfiles)
3376 (maintenance_info_symtabs, maintenance_check_symtabs)
3377 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
3379 * source.c (forget_cached_source_info): Use all_objfiles.
3380 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
3381 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
3382 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
3383 * objfiles.c (update_section_map): Use all_objfiles.
3384 (shared_objfile_contains_address_p): Likewise.
3385 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
3386 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
3388 2019-01-09 Tom Tromey <tom@tromey.com>
3390 * common/next-iterator.h: New file.
3391 * objfiles.h (class all_objfiles): New.
3392 (struct objfile_iterator): New.
3394 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3396 * NEWS: Move the description of the changed "frame", "select-frame",
3397 and "info frame" commands to the Changed commands section.
3399 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
3401 * gdbtypes.c (check_stub_method_group): Remove handling of old
3403 * linespec.c (find_methods): Likewise.
3404 * stabsread.c (read_member_functions): Likewise.
3405 * valops.c (search_struct_method): Likewise.
3406 (value_struct_elt_for_reference): Likewise.
3407 * NEWS: Mention this change.
3409 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
3411 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
3413 * source.c (print_source_lines_base): Update line number check.
3414 (print_source_lines): New function.
3415 (source_lines_range::source_lines_range): New function.
3416 * source.h (class source_lines_range): New class.
3417 (print_source_lines): New declaration.
3419 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3421 * linespec.c (linespec_state_destructor): Free self->canonical_names.
3423 2019-01-08 Tom Tromey <tom@tromey.com>
3424 Simon Marchi <simon.marchi@ericsson.com>
3427 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
3428 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
3429 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
3430 * f-exp.y (DOLLAR_VARIABLE): Likewise.
3431 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
3432 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
3434 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3436 * source.c (select_source_symtab): Move header comment to
3437 declaration in source.h.
3438 (forget_cached_source_info_for_objfile): Likewise.
3439 (forget_cached_source_info): Likewise.
3440 (identify_source_line): Likewise.
3441 * source.h (identify_source_line): Move declaration from symtab.h
3442 and add comment from source.c
3443 (print_source_lines): Likewise.
3444 (forget_cached_source_info_for_objfile): Likewise.
3445 (forget_cached_source_info): Likewise.
3446 (select_source_symtab): Likewise.
3447 (enum print_source_lines_flag): Move definition from symtab.h.
3448 * symtab.h (identify_source_line): Move declaration to source.h.
3449 (print_source_lines): Likewise.
3450 (forget_cached_source_info_for_objfile): Likewise.
3451 (forget_cached_source_info): Likewise.
3452 (select_source_symtab): Likewise.
3453 (enum print_source_lines_flag): Move definition to source.h.
3454 * tui/tui-hooks.c: Add 'source.h' include.
3456 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3458 * source.c (print_source_lines_base): Handle requests to print
3459 reverse line number sequences, and guard against empty lines
3462 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
3464 * source.c (print_source_lines_base): Fix skip of '\r' if next
3467 2019-01-06 Tom Tromey <tom@tromey.com>
3469 * c-exp.y (struct c_parse_state) <macro_original_text,
3470 expansion_obstack>: New member.
3471 (macro_original_text, expansion_obstack): Remove globals.
3472 (scan_macro_expansion, scanning_macro_expansion)
3473 (finished_macro_expansion): Update.
3474 (scan_macro_cleanup): Remove.
3475 (yylex, c_parse): Update.
3477 2019-01-06 Tom Tromey <tom@tromey.com>
3479 * c-exp.y (struct c_parse_state) <strings>: New member.
3480 (operator_stoken): Update.
3482 2019-01-06 Tom Tromey <tom@tromey.com>
3484 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
3485 (union type_stack_elt) <typelist_val>: Now a pointer to
3487 (type_stack_cleanup): Don't declare.
3488 (push_typelist): Update.
3489 * parse.c (pop_typelist): Return a std::vector.
3490 (push_typelist): Take a std::vector.
3491 (follow_types): Update. Do not free args.
3492 (type_stack_cleanup): Remove.
3493 * c-exp.y (struct c_parse_state): New.
3494 (cpstate): New global.
3495 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
3496 (nonempty_typelist): Update.
3497 (func_mod): Create a new vector.
3498 (c_parse): Create a c_parse_state.
3499 (check_parameter_typelist): Do not delete params.
3500 (function_method): Update. Do not delete type_list.
3502 2019-01-06 Tom Tromey <tom@tromey.com>
3505 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
3507 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
3508 (print_return_value): Likewise.
3510 2019-01-05 Tom Tromey <tom@tromey.com>
3512 * contrib/cleanup_check.py: Remove.
3513 * contrib/gcc-with-excheck: Remove.
3514 * contrib/exsummary.py: Remove.
3515 * contrib/excheck.py: Remove.
3517 2019-01-05 Joel Brobecker <brobecker@adacore.com>
3519 * thread.c (delete_thread_1): Add gdb_assert that THR is not
3520 NULL. Initialize tpprev to NULL instead of assigning it
3521 to NULL on the next statement.
3522 * windows-nat.c (windows_delete_thread): Remove check for
3523 main_thread_id before printing thread exit notifications.
3524 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
3525 Remove thread ID check against main_thread_id.
3526 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
3527 windows_delete_thread.
3528 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
3530 2019-01-04 Tom Tromey <tom@tromey.com>
3532 * compile/compile.c (_initialize_compile): Use upper case for
3533 metasyntactic variables.
3534 * symmisc.c (_initialize_symmisc): Use upper case for
3535 metasyntactic variables.
3536 * psymtab.c (_initialize_psymtab): Use upper case for
3537 metasyntactic variables.
3538 * demangle.c (demangle_command): Use upper case for metasyntactic
3540 (_initialize_demangler): Likewise.
3541 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
3544 2019-01-03 Tom Tromey <tom@tromey.com>
3546 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
3548 2019-01-03 Tom Tromey <tom@tromey.com>
3550 * python/py-symtab.c (salpy_str): Update.
3551 (struct salpy_sal_object) <symtab>: Now a PyObject.
3552 (salpy_dealloc): Update.
3553 (del_objfile_sal): Use gdbpy_ref.
3555 2019-01-03 Tom Tromey <tom@tromey.com>
3557 * python/py-type.c (convert_field): Use new_reference. Return
3559 (make_fielditem): Return gdbpy_ref.
3560 (typy_fields): Update.
3561 (typy_getitem): Update.
3562 (field_name): Return gdbpy_ref. Use new_reference.
3563 (typy_iterator_iternext): Update.
3565 2019-01-03 Tom Tromey <tom@tromey.com>
3567 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
3569 2019-01-03 Tom Tromey <tom@tromey.com>
3571 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
3572 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
3573 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
3574 (pspy_set_frame_filters, pspy_set_frame_unwinders)
3575 (pspy_set_type_printers): Likewise.
3576 * python/py-function.c (fnpy_init): Use gdbpy_ref.
3577 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
3578 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
3579 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
3580 (objfpy_set_type_printers): Likewise.
3582 2019-01-03 Tom Tromey <tom@tromey.com>
3584 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
3585 (gdbpy_print_stack): Use gdbpy_err_fetch.
3586 * python/python-internal.h (class gdbpy_err_fetch): New class.
3587 (class gdbpy_enter) <m_error_type, m_error_value,
3588 m_error_traceback>: Remove.
3589 <m_error>: New member.
3590 (gdbpy_exception_to_string): Don't declare.
3591 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
3592 * python/py-value.c (convert_value_from_python): Use
3594 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
3595 gdbpy_exception_to_string.
3596 (gdbpy_handle_exception): Use gdbpy_err_fetch.
3597 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
3600 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3602 * linux-nat.c (delete_lwp_cleanup): Delete.
3603 (struct lwp_deleter): New struct.
3604 (lwp_info_up): New typedef.
3605 (linux_nat_target::follow_fork): Delete cleanup, and make use of
3608 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3610 * linux-fork.c (class scoped_switch_fork_info): New class.
3611 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
3613 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3615 * valops.c (find_overload_match): Remove use of null_cleanup, and
3616 calls to do_cleanups.
3618 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3620 * compile/compile-cplus-types.c
3621 (compile_cplus_instance::decl_name): Handle changes to
3623 * cp-support.c (cp_func_name): Update header comment, update
3625 * cp-support.h (cp_func_name): Update return type in declaration.
3626 * valops.c (find_overload_match): Move temp_func local to top
3627 level of function and change its type. Use temp_func to hold and
3628 delete temporary string obtained from cp_func_name.
3630 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
3632 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
3633 gdb::char_vector, remove cleanup, and update uses of `msg`.
3635 2019-01-03 Jim Wilson <jimw@sifive.com>
3637 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
3639 2019-01-02 Tom Tromey <tom@tromey.com>
3641 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
3642 (tdesc_parse_xml): Remove cleanups.
3643 * target-descriptions.h (make_cleanup_free_target_description):
3645 (target_desc_deleter): New struct.
3646 (target_desc_up): New typedef.
3647 * target-descriptions.c (target_desc_deleter::operator()): Rename
3648 from free_target_description.
3649 (make_cleanup_free_target_description): Remove.
3651 2019-01-02 Tom Tromey <tom@tromey.com>
3653 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
3654 constructor, destructor.
3655 (linespec_parser): Remove typedef.
3656 (~linespec_parser): Rename from linespec_parser_delete.
3657 (linespec_lex_to_end, linespec_complete_label)
3658 (linespec_complete): Update.
3659 (decode_line_full): Remove cleanups.
3660 (decode_line_1): Update.
3662 2019-01-02 Tom Tromey <tom@tromey.com>
3664 * python/python-internal.h (inferior_to_inferior_object): Change
3666 * python/py-exitedevent.c (create_exited_event_object): Update.
3667 * python/py-inferior.c (inferior_to_inferior_object): Return
3669 (python_new_inferior, python_inferior_deleted)
3670 (thread_to_thread_object, delete_thread_object)
3671 (build_inferior_list, gdbpy_selected_inferior): Update.
3672 * python/py-infthread.c (create_thread_object): Update. Also fail
3673 if inferior_to_inferior_object fails.
3675 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
3677 * inferior.h (class inferior) <displaced_step_state>: New field.
3678 * infrun.h (struct displaced_step_state): Move here from
3679 infrun.c. Initialize fields, add constructor.
3680 <inf>: Remove field.
3681 <reset>: New method.
3682 * infrun.c (struct displaced_step_inferior_state): Move to
3684 (displaced_step_inferior_states): Remove.
3685 (get_displaced_stepping_state): Adust.
3686 (displaced_step_in_progress_any_inferior): Adjust.
3687 (displaced_step_in_progress_thread): Adjust.
3688 (displaced_step_in_progress): Adjust.
3689 (add_displaced_stepping_state): Remove.
3690 (get_displaced_step_closure_by_addr): Adjust.
3691 (remove_displaced_stepping_state): Remove.
3692 (infrun_inferior_exit): Call displaced_step_state.reset.
3693 (use_displaced_stepping): Don't check for NULL.
3694 (displaced_step_prepare_throw): Call
3695 get_displaced_stepping_state.
3696 (displaced_step_fixup): Don't check for NULL.
3697 (prepare_for_detach): Don't check for NULL.
3699 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3701 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
3702 in case of call that did not complete.
3704 2019-01-02 Andrey Utkin <autkin@undo.io>
3706 * symfile.c (find_separate_debug_file): Fix search of debug files for
3709 2019-01-02 Tom Tromey <tom@tromey.com>
3711 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
3713 * python/py-frame.c (frapy_older): Remove cast.
3714 (frapy_newer): Likewise.
3715 * python/py-breakpoint.c (local_setattro): Remove cast.
3716 * python/py-arch.c (archpy_name): Remove local variable.
3717 * python/py-type.c (gdbpy_lookup_type): Remove cast.
3719 2019-01-02 Joel Brobecker <brobecker@adacore.com>
3721 * unittests/basic_string_view/element_access/char/empty.cc:
3722 Fix year range in copyright header.
3724 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
3726 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
3728 <operator==>: Update with for removed field.
3730 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
3731 <isa_features>: ...this.
3732 <abi_features>: New field.
3733 (riscv_isa_flen): Update comment.
3734 (riscv_abi_xlen): New declaration.
3735 (riscv_abi_flen): New declaration.
3736 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
3738 (riscv_abi_xlen): New function.
3739 (riscv_isa_flen): Update to get answer from isa_features.
3740 (riscv_abi_flen): New function.
3741 (riscv_has_fp_abi): Update to get answer from abi_features.
3742 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
3744 (riscv_call_info) <xlen, flen>: Update comment.
3745 (riscv_call_arg_struct): Remove invalid assertions
3746 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
3748 (riscv_gdbarch_init): Gather isa features and abi features
3749 separately, ensure both match on the gdbarch when reusing an old
3750 gdbarch. Relax an error check to allow 32-bit abi float to run on
3751 a target with 64-bit float hardware.
3753 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3755 * source.c (search_command_helper): Stop reverse search
3756 when line 1 has been searched.
3758 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3760 * record-full.c (record_full_base_target::close): Rewrite
3761 record_full_core_buf_list free logic.
3763 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3765 * break-catch-syscall.c (print_one_catch_syscall): xfree
3768 2019-01-01 Joel Brobecker <brobecker@adacore.com>
3770 * top.c (print_gdb_version): Update Copyright year in version
3773 2019-01-01 Joel Brobecker <brobecker@adacore.com>
3775 Update copyright year range in all GDB files.
3777 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
3779 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
3781 For older changes see ChangeLog-2018.
3787 version-control: never