1 2021-04-30 Tom Tromey <tromey@adacore.com>
3 * windows-nat.c: Move code to nat/windows-nat.[ch].
4 (_initialize_windows_nat): Call initialize_loadable.
5 * nat/windows-nat.h (AdjustTokenPrivileges)
6 (DebugActiveProcessStop, DebugBreakProcess)
7 (DebugSetProcessKillOnExit, EnumProcessModules)
8 (EnumProcessModulesEx, GetModuleInformation)
9 (GetModuleFileNameExA, GetModuleFileNameExW)
10 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
11 (GetCurrentConsoleFont, Wow64SuspendThread)
12 (Wow64GetThreadContext, Wow64SetThreadContext)
13 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
14 (AdjustTokenPrivileges_ftype)
15 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
16 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
17 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
18 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
19 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
20 (GetConsoleFontSize_ftype)
21 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
22 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
23 (Wow64GetThreadSelectorEntry_ftype): Likewise.
24 (initialize_loadable): Declare.
25 * nat/windows-nat.c (AdjustTokenPrivileges)
26 (DebugActiveProcessStop, DebugBreakProcess)
27 (DebugSetProcessKillOnExit, EnumProcessModules)
28 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
29 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
30 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
31 (Wow64GetThreadContext, Wow64SetThreadContext)
32 (Wow64GetThreadSelectorEntry): Define.
33 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
35 (initialize_loadable): Likewise, and rename.
37 2021-04-30 Tom Tromey <tromey@adacore.com>
39 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
40 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
41 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
42 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
43 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
44 (bad): New template functions.
45 (_initialize_loadable): Update.
47 2021-04-30 Tom Tromey <tromey@adacore.com>
49 * ada-lang.c (ada_index_type): Use ada_check_typedef.
51 2021-04-29 Simon Marchi <simon.marchi@efficios.com>
53 * auto-load.h: Split namespace declaration.
55 2021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
57 * infrun.c (save_waitstatus): Move variables to inner scope.
59 2021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
61 * NEWS: Fix typo and stray full stop.
63 2021-04-28 Tom Tromey <tromey@adacore.com>
65 * ada-exp.y (primary): Use new type for null pointer.
66 * ada-lang.c (ada_type_match): Remove "may_deref"
67 parameter. Handle null pointer.
68 (ada_args_match): Update.
69 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
72 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
74 * NEWS: Mention new commands.
75 * python/python.c (python_ignore_environment): New static global.
76 (show_python_ignore_environment): New function.
77 (set_python_ignore_environment): New function.
78 (python_dont_write_bytecode): New static global.
79 (show_python_dont_write_bytecode): New function.
80 (set_python_dont_write_bytecode): New function.
81 (_initialize_python): Register new commands.
83 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
85 * extension-priv.h (struct extension_language_ops): Rename
86 'finish_initialization' to 'initialize'.
87 * extension.c (finish_ext_lang_initialization): Renamed to...
88 (ext_lang_initialization): ...this, update comment, and updated
89 the calls to reflect the change in struct extension_language_ops.
90 * extension.h (finish_ext_lang_initialization): Renamed to...
91 (ext_lang_initialization): ...this.
92 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
93 (gdbscm_initialize): ...this, update comment at definition.
94 (guile_extension_ops): Update.
95 * main.c (captured_main_1): Update call to
96 finish_ext_lang_initialization.
97 * python/python.c (gdbpy_finish_initialization): Rename to...
98 (gdbpy_initialize): ...this, update comment at definition, and
99 update call to do_finish_initialization.
100 (python_extension_ops): Update.
101 (do_finish_initialization): Rename to...
102 (do_initialize): ...this, and update comment.
104 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
106 * main.c (captured_main_1): Add a call to
107 finish_ext_lang_initialization.
108 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
110 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
112 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
113 (gdbscm_finish_initialization): Add code moved from
115 (_initialize_guile): Move code to gdbscm_finish_initialization.
116 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
117 _initialize_scm_arch.
118 (_initialize_scm_arch): New function.
119 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
120 into _initialize_scm_block.
121 (_initialize_scm_block): New function.
122 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
123 into _initialize_scm_frame.
124 (_initialize_scm_frame): New function.
125 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
126 into _initialize_scm_objfile.
127 (_initialize_scm_objfile): New function.
128 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
129 code into _initialize_scm_progspace.
130 (_initialize_scm_progspace): New function.
131 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
132 into _initialize_scm_symbol.
133 (_initialize_scm_symbol): New function.
134 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
135 into _initialize_scm_symtab.
136 (_initialize_scm_symtab): New function.
137 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
138 _initialize_scm_type.
139 (_initialize_scm_type): New function.
141 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
143 * python/py-arch.c (_initialize_py_arch): New function.
144 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
145 * python/py-block.c (_initialize_py_block): New function.
146 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
147 * python/py-inferior.c (_initialize_py_inferior): New function.
148 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
149 * python/py-objfile.c (_initialize_py_objfile): New function.
150 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
151 * python/py-progspace.c (_initialize_py_progspace): New function.
152 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
153 * python/py-registers.c (_initialize_py_registers): New function.
154 (gdbpy_initialize_registers): Move code to
155 _initialize_py_registers.
156 * python/py-symbol.c (_initialize_py_symbol): New function.
157 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
158 * python/py-symtab.c (_initialize_py_symtab): New function.
159 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
160 * python/py-type.c (_initialize_py_type): New function.
161 (gdbpy_initialize_types): Move code to _initialize_py_type.
162 * python/py-unwind.c (_initialize_py_unwind): New function.
163 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
164 * python/python.c (_initialize_python): Move call to
165 do_start_initialization to gdbpy_finish_initialization.
166 (gdbpy_finish_initialization): Add call to
167 do_start_initialization.
169 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
171 * extension.c (struct scoped_default_signal): New struct.
172 (scoped_default_sigint): New typedef.
173 (finish_ext_lang_initialization): Make use of
174 scoped_default_sigint.
176 2021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
178 * main.c (captured_main_1): Don't pass argument to gdb_init.
179 * top.c (gdb_init): Remove unused argument, and add header
181 * top.h (gdb_init): Remove argument.
183 2021-04-27 Luis Machado <luis.machado@linaro.org>
185 * psymtab.c (psymbol_functions::dump): Output newline.
187 * symmisc.c (dump_objfile): Likewise.
189 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
190 Simon Marchi <simon.marchi@polymtl.ca>
192 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
193 when attaching the 'auto_load_new_objfile' observer, so
194 other observers can specify it as a dependency.
195 * gdb/auto-load.h (struct token): Declare
196 'auto_load_new_objfile_observer_token' as token to be used
197 for the 'auto_load_new_objfile' observer.
198 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
199 'python_new_objfile' observer depend on 'auto_load_new_objfile'
200 observer, so it gets notified after the latter.
202 2021-04-27 Michael Weghorn <m.weghorn@posteo.de>
203 Simon Marchi <simon.marchi@polymtl.ca>
205 * unittests/observable-selftests.c (dependency_test_counters):
207 (observer_token0, observer_token1, observer_token2,
208 observer_token3, observer_token4, observer_token5): New.
209 (struct dependency_observer_data): New struct.
210 (observer_dependency_test_callback): New function.
211 (test_observers): New.
212 (run_dependency_test): New function.
213 (test_dependency): New.
214 (_initialize_observer_selftest): Register dependency test.
216 2021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
219 * cli/cli-dump.c (dump_binary_file): Check result of
222 2021-04-25 Sergei Trofimovich <siarheit@google.com>
224 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
225 by passing `process_stratum_target*` parameter.
227 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
230 * typeprint.h (struct type_print_options): Add print_in_hex
232 (struct print_offset_data): Add print_in_hex flag, add a
233 constructor accepting a type_print_options* argument.
234 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
235 default value for print_in_hex.
236 (print_offset_data::indentation): Allow more horizontal space.
237 (print_offset_data::print_offset_data): Add ctor.
238 (print_offset_data::maybe_print_hole, print_offset_data::update):
239 Handle the print_in_hex flag.
240 (whatis_exp): Handle 'x' and 'd' flags.
241 (print_offsets_and_sizes_in_hex): Declare.
242 (set_print_offsets_and_sizes_in_hex): Create.
243 (show_print_offsets_and_sizes_in_hex): Create.
244 (_initialize_typeprint): Update help message for the ptype
245 command, register the 'set print type hex' and 'show print type
247 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
248 (c_type_print_base): Construct the print_offset_data
249 object using the type_print_optons parameter.
250 * rust-lang.c (rust_language::print_type): Construct the
251 print_offset_data object using the type_print_optons parameter.
252 * NEWS: Mention the new flags of the ptype command.
254 2021-04-25 Lancelot Six <lsix@lancelotsix.com>
256 * typeprint.h (struct type_print_options): Move before
259 2021-04-25 Joel Brobecker <brobecker@adacore.com>
263 2021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
265 * observable.c (observer_debug): Change to bool.
267 2021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
269 * dwarf2/read.c: Add 'unordered_set' include.
270 (dwarf2_base_index_functions::map_symbol_filenames): Replace
271 'visited' hash table with 'qfn_cache' unordered_set. Remove use
272 of per_Bfd->filenames_cache cache, and use function local
273 filenames_cache instead. Reindent.
274 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
276 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
278 * breakpoint.c (iterate_over_bp_locations): Change callback to
279 function view, remove data parameter.
280 * breakpoint.h (iterate_over_bp_locations): Likewise.
281 * record-full.c (record_full_sync_record_breakpoints): Remove
284 2021-04-22 Tom Tromey <tom@tromey.com>
286 * c-typeprint.c (c_type_print_base_struct_union): Use
287 print_spaces_filtered_with_print_options.
289 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
292 * python/py-type.c (typy_range): Check that bounds are constant
293 before accessing them as such.
294 * guile/scm-type.c (gdbscm_type_range): Likewise.
296 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
298 * Makefile.in (COMMON_SFILES): Remove continuations.c.
299 * inferior.c (inferior::add_continuation): New method, adapted
300 from 'add_inferior_continuation'.
301 (inferior::do_all_continuations): New method, adapted from
302 'do_all_inferior_continuations'.
303 (inferior::~inferior): Clear the list of continuations directly.
304 * inferior.h (class inferior) <continuations>: Rename into...
305 <m_continuations>: ...this and make private.
306 * continuations.c: Remove.
307 * continuations.h: Remove.
308 * event-top.c: Don't include "continuations.h".
310 Update the users below.
311 * inf-loop.c (inferior_event_handler)
312 * infcmd.c (attach_command)
313 (notice_new_inferior): Update.
315 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
317 * inferior.h (class inferior) <continuations>: Change the type
318 to be an std::list of std::function's.
319 Update the references and uses below.
320 * continuations.c (struct continuation): Delete.
321 (make_continuation): Delete.
322 (do_my_continuations_1): Delete.
323 (do_my_continuations): Delete.
324 (discard_my_continuations_1): Delete.
325 (discard_my_continuations): Delete.
326 (add_inferior_continuation): Update.
327 (do_all_inferior_continuations): Update.
328 (discard_all_inferior_continuations): Update.
329 * continuations.h (add_inferior_continuation): Update to take
330 an std::function as the parameter.
331 * infcmd.c (struct attach_command_continuation_args): Delete.
332 (attach_command_continuation): Delete.
333 (attach_command_continuation_free_args): Delete.
334 (attach_command): Update.
335 (notice_new_inferior): Update.
337 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
339 * continuations.h: Update the general comment.
340 * inferior.h (class inferior) <continuations>: Update the comment.
341 * interps.c: Do not include "continuations.h".
343 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
345 * continuations.h (do_all_inferior_continuations): Remove the 'err'
346 parameter. Update the references below.
347 * continuations.c (do_my_continuations_1)
348 (do_my_continuations)
349 (do_all_inferior_continuations): Update.
350 * inf-loop.c (inferior_event_handler): Update.
351 * infcmd.c (attach_command_continuation): Update.
353 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
355 * infcmd.c (attach_post_wait): Update the function comment.
357 2021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
359 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
360 Update the references below.
361 (struct attach_command_continuation_args)
362 (attach_command_continuation)
363 (attach_command_continuation_free_args)
365 (notice_new_inferior): Update to remove the reference to 'args'.
367 2021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
368 Tom de Vries <tdevries@suse.de>
371 * remote.c (remote_target_is_non_stop_p): New function.
372 * remote.h (remote_target_is_non_stop_p): Declare.
373 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
374 to check non-stopness using notif_state->remote rather current target.
376 2021-04-22 Tom Tromey <tom@tromey.com>
378 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
379 (struct typed_val_int) <val>: Now ULONGEST.
380 (rust_parser::parse_array_type): Remove negative check.
381 (rust_lex_int_test): Change 'value' to ULONGEST.
383 2021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
385 * arch-utils.c (default_addressable_memory_unit_size): Return a
386 value based on bfd's bits per byte.
388 2021-04-21 Tom Tromey <tom@tromey.com>
390 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
392 (struct dwarf2_per_cu_data): Rearrange.
393 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
395 (struct comp_unit_head): Rearrange.
396 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
398 2021-04-21 Tom de Vries <tdevries@suse.de>
401 * configure.ac: Remove --without-included-regex/--with-included-regex.
402 * config.in: Regenerate.
403 * configure: Regenerate.
404 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
406 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
408 * breakpoint.h (create_breakpoint): Add a new parameter,
410 * breakpoint.c (create_breakpoint): Use the 'force_condition'
411 argument when 'parse_extra' is false to check if the condition
412 is invalid at all of the breakpoint locations.
413 Update the users below.
419 (create_tracepoint_from_upload): Update.
420 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
421 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
422 * python/py-breakpoint.c (bppy_init): Update.
423 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
425 2021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
427 * breakpoint.c (print_one_breakpoint_location): Display "N" for
428 disabled-by-condition locations on MI-like output.
429 (breakpoint_1): Do not display the disabled-by-condition footnote
430 if the output is MI-like.
432 2021-04-21 Frederic Cambus <fred@statdns.com>
434 * syscalls/update-netbsd.sh: Fix script name display in usage, and
435 update year range in generated copyright notices.
437 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
439 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
442 2021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
444 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
446 2021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
448 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
449 (producer_is_icc): Replace use of std::regex with gdb's
452 2021-04-17 Tom Tromey <tom@tromey.com>
455 * dwarf2/read.c (class offset_view): New.
456 (struct symbol_table_slot): Remove.
457 (struct mapped_index) <symbol_table, constant_pool>: Change type.
458 <symbol_name_index, symbol_vec_index>: New methods.
459 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
461 (read_gdb_index_from_buffer): Update.
462 (struct dw2_symtab_iterator) <vec>: Change type.
463 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
464 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
465 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
466 <append_array, append_offset>: New methods.
467 (write_hash_table, add_address_entry, write_gdbindex_1)
468 (write_debug_names): Update.
469 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
471 2021-04-17 Tom Tromey <tom@tromey.com>
473 * dwarf2/index-write.c (write_psymtabs_to_index): Check
476 2021-04-17 Tom Tromey <tom@tromey.com>
478 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
479 from map_matching_symbols. Change parameters.
480 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
481 Rename from map_matching_symbols. Change parameters.
482 * dwarf2/read.c (struct dwarf2_gdb_index)
483 <expand_matching_symbols>: Rename from map_matching_symbols.
485 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
486 Rename from map_matching_symbols. Change parameters.
487 (dwarf2_gdb_index::expand_matching_symbols): Rename from
488 dw2_map_matching_symbols. Change parameters.
489 (dwarf2_gdb_index::expand_matching_symbols): Remove old
491 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
492 map_matching_symbols. Change parameters.
493 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
494 from map_matching_symbols. Change parameters.
495 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
496 map_matching_symbols. Change parameters.
497 * ada-lang.c (map_matching_symbols): New function.
498 (add_nonlocal_symbols): Update.
500 2021-04-17 Tom Tromey <tom@tromey.com>
502 * quick-symbol.h (struct quick_symbol_functions)
503 <expand_symtabs_with_fullname>: Remove.
504 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
506 * psympriv.h (struct psymbol_functions)
507 <expand_symtabs_with_fullname>: Remove.
508 * dwarf2/read.c (struct dwarf2_base_index_functions)
509 <expand_symtabs_with_fullname>: Remove.
510 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
512 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
514 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
517 2021-04-17 Tom Tromey <tom@tromey.com>
519 * symfile-debug.c (objfile::expand_symtabs_for_function):
521 * quick-symbol.h (struct quick_symbol_functions)
522 <expand_symtabs_for_function>: Remove.
523 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
525 * psympriv.h (struct psymbol_functions)
526 <expand_symtabs_for_function>: Remove.
527 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
529 * dwarf2/read.c (struct dwarf2_gdb_index)
530 <expand_symtabs_for_function>: Remove.
531 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
533 (find_slot_in_mapped_hash): Remove.
534 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
535 (dw2_symtab_iter_init): Remove one overload.
536 (dwarf2_gdb_index::expand_symtabs_for_function)
537 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
539 2021-04-17 Tom Tromey <tom@tromey.com>
541 * symfile-debug.c (objfile::map_symtabs_matching_filename):
543 * quick-symbol.h (struct quick_symbol_functions)
544 <map_symtabs_matching_filename>: Remove.
545 * psymtab.c (partial_map_expand_apply)
546 (psymbol_functions::map_symtabs_matching_filename): Remove.
547 * psympriv.h (struct psymbol_functions)
548 <map_symtabs_matching_filename>: Remove.
549 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
551 * dwarf2/read.c (struct dwarf2_base_index_functions)
552 <map_symtabs_matching_filename>: Remove.
553 (dw2_map_expand_apply)
554 (dwarf2_base_index_functions::map_symtabs_matching_filename):
557 2021-04-17 Tom Tromey <tom@tromey.com>
559 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
560 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
562 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
563 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
564 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
565 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
567 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
568 (dwarf2_gdb_index::lookup_symbol)
569 (dwarf2_debug_names_index::lookup_symbol): Remove.
571 2021-04-17 Tom Tromey <tom@tromey.com>
573 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
574 * symmisc.c (maintenance_expand_symtabs): Update.
575 * symfile.c (expand_symtabs_matching): Update.
576 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
578 * quick-symbol.h (struct quick_symbol_functions)
579 <expand_symtabs_matching>: Add 'domain' parameter.
580 * psymtab.c (recursively_search_psymtabs)
581 (psymbol_functions::expand_symtabs_matching): Add 'domain'
583 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
584 Add 'domain' parameter.
585 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
587 * linespec.c (iterate_over_all_matching_symtabs): Update.
588 * dwarf2/read.c (struct dwarf2_gdb_index)
589 <expand_symtabs_matching>: Add 'domain' parameter.
590 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
592 (dw2_expand_symtabs_matching)
593 (dwarf2_gdb_index::expand_symtabs_matching)
594 (dw2_debug_names_iterator)
595 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
598 2021-04-17 Tom Tromey <tom@tromey.com>
600 * symtab.c (global_symbol_searcher::expand_symtabs)
601 (default_collect_symbol_completion_matches_break_on): Update.
602 * symmisc.c (maintenance_expand_symtabs): Update.
603 * symfile.h (expand_symtabs_matching): Add search_flags
605 * symfile.c (expand_symtabs_matching): Add search_flags
607 * symfile-debug.c (objfile::expand_symtabs_matching): Add
608 search_flags parameter.
609 * quick-symbol.h (struct quick_symbol_functions)
610 <expand_symtabs_matching>: Add search_flags parameter.
611 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
612 * psymtab.c (recursively_search_psymtabs)
613 (psymbol_functions::expand_symtabs_matching): Add search_flags
615 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
616 Add search_flags parameter.
617 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
618 search_flags parameter.
619 * linespec.c (iterate_over_all_matching_symtabs): Update.
620 * dwarf2/read.c (struct dwarf2_gdb_index)
621 <expand_symtabs_matching>: Add search_flags parameter.
622 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
623 search_flags parameter.
624 (dw2_map_matching_symbols): Update.
625 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
626 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
628 (dw2_debug_names_iterator): Change block_index to search flags.
629 <m_block_index>: Likewise.
630 (dw2_debug_names_iterator::next)
631 (dwarf2_debug_names_index::lookup_symbol)
632 (dwarf2_debug_names_index::expand_symtabs_for_function)
633 (dwarf2_debug_names_index::map_matching_symbols)
634 (dwarf2_debug_names_index::map_matching_symbols): Update.
635 (dwarf2_debug_names_index::expand_symtabs_matching): Add
636 search_flags parameter.
637 * ada-lang.c (ada_add_global_exceptions)
638 (collect_symbol_completion_matches): Update.
640 2021-04-17 Tom Tromey <tom@tromey.com>
642 * symtab.c (default_collect_symbol_completion_matches_break_on):
644 * symfile.h (expand_symtabs_matching): Return bool.
645 * symfile.c (expand_symtabs_matching): Return bool.
646 * symfile-debug.c (objfile::expand_symtabs_matching): Return
648 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
649 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
651 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
653 * psympriv.h (struct psymbol_functions)
654 <expand_symtabs_matching>: Return bool.
655 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
657 * dwarf2/read.c (struct dwarf2_gdb_index)
658 <expand_symtabs_matching>: Return bool.
659 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
661 (dw2_expand_symtabs_matching_symbol): Return bool.
662 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
663 (dw2_expand_symtabs_matching)
664 (dwarf2_gdb_index::expand_symtabs_matching)
665 (dwarf2_debug_names_index::expand_symtabs_matching)
666 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
668 2021-04-17 Tom Tromey <tom@tromey.com>
670 * quick-symbol.h (enum block_search_flag_values): New.
671 (block_search_flags): New enum flags type.
673 2021-04-16 Tom Tromey <tom@tromey.com>
675 * rust-parse.c: New file.
676 * rust-exp.y: Remove.
677 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
678 (SFILES): Remove rust-exp.y.
679 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
681 2021-04-16 Luis Machado <luis.machado@linaro.org>
683 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
685 2021-04-15 John Baldwin <jhb@FreeBSD.org>
687 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
690 2021-04-15 Tom Tromey <tromey@adacore.com>
692 * ada-valprint.c (ada_value_print_array): Handle optimized-out
695 2021-04-15 Tom Tromey <tromey@adacore.com>
697 * printcmd.c (print_variable_and_value): Use
698 common_val_print_checked.
700 2021-04-15 Tom Tromey <tromey@adacore.com>
702 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
703 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
705 * p-exp.y (variable): Update.
706 * m2-exp.y (variable): Update.
707 * go-exp.y (variable): Update.
708 * expprint.c (dump_for_expression): New overload.
709 * expop.h (check_objfile): New overload.
710 (check_constant): New overload.
711 (class var_value_operation): Use block_symbol.
712 <get_symbol>: Rewrite.
713 * eval.c (var_value_operation::evaluate)
714 (var_value_operation::evaluate_funcall)
715 (var_value_operation::evaluate_for_address)
716 (var_value_operation::evaluate_for_address)
717 (var_value_operation::evaluate_with_coercion)
718 (var_value_operation::evaluate_for_sizeof)
719 (var_value_operation::evaluate_for_cast): Update.
720 * d-exp.y (PrimaryExpression): Update.
721 * c-exp.y (variable): Update.
722 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
723 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
724 (ada_var_value_operation::evaluate)
725 (ada_var_value_operation::resolve)
726 (ada_funcall_operation::resolve): Update.
727 * ada-exp.y (write_var_from_sym, write_object_renaming)
728 (write_ambiguous_var, write_var_or_type, write_name_assoc)
729 (maybe_overload): Update.
730 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
732 2021-04-15 Tom Tromey <tom@tromey.com>
733 Andrew Burgess <andrew.burgess@embecosm.com>
736 * main.c (captured_main_1): Call check_quiet_mode.
737 * top.c (startup_quiet): New global.
738 (check_quiet_mode): New function.
739 (show_startup_quiet): New function.
740 (init_main): Register new command.
741 * top.h (check_quiet_mode): Declare.
743 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
746 * NEWS: Mention new early init files and command line options.
747 * config.in: Regenerate.
748 * configure: Regenerate.
749 * configure.ac: Define GDBEARLYINIT.
750 * main.c (get_earlyinit_files): New function.
751 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
752 CMDARG_EARLYINIT_COMMAND.
753 (captured_main_1): Add support for new command line flags, and for
754 processing startup files.
755 (print_gdb_help): Include startup files in the output.
757 2021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
759 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
760 (relocate_file_path_maybe_in_datadir): ...this.
761 (class gdb_initfile_finder): New class.
762 (get_init_files): Now uses gdb_initfile_finder.
763 (print_gdb_help): Print 'None found' when there are no init files.
765 2021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
767 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
768 corresponding child of the abstract DIE when iterating the
769 children of the concrete DIE.
771 2021-04-13 Tom de Vries <tdevries@suse.de>
773 * ui-style.c (read_semi_number, extended_color): Change idx parameter
776 2021-04-13 Luis Machado <luis.machado@linaro.org>
778 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
781 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
783 * rs6000-tdep.c: Add support for single-stepping of
784 prefixed instructions.
786 2021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
789 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
790 handle the addpcis/lnia instruction.
792 2021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
794 * MAINTAINERS (Write After Approval): Add myself.
796 2021-4-12 Carl Love <cel@us.ibm.com>
798 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
799 (rs6000_builtin_type_vec128): Add append_composite_type_field for
802 2021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
804 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
805 * nat/windows-nat.h: Likewise.
807 2021-04-10 Eli Zaretskii <eliz@gnu.org>
809 * windows-nat.c (windows_nat::handle_load_dll): Call
810 windows_add_dll if get_image_name failed to glean the name of the
811 DLL by using the lpImageName pointer.
812 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
813 (windows_add_dll): Now does what windows_add_all_dlls did before,
814 but also accepts an argument LOAD_ADDR, which, if non-NULL,
815 specifies the address where the DLL was loaded into the inferior,
816 and looks for the single DLL loaded at that address.
818 2021-04-09 Luis Machado <luis.machado@linaro.org>
820 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
822 2021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
824 * darwin-nat.c (darwin_nat_target::resume): Remove status
827 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
829 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
830 prologue end for Intel compilers.
831 * amd64-tdep.c (amd64_skip_prologue): Likewise.
832 * producer.c (producer_is_icc_ge_19): New function.
833 * producer.h (producer_is_icc_ge_19): New declaration.
835 2021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
837 * producer.c: (producer_is_icc): Update for new version scheme.
838 (producer_parsing_tests): Update names and expected results.
839 * producer.h: (producer_is_icc): Update comment accordingly.
841 2021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
843 * target.h (struct target_ops) <follow_fork>: Return void.
844 (target_follow_fork): Likewise.
845 * target.c (default_follow_fork): Likewise.
846 (target_follow_fork): Likewise.
847 * infrun.c (follow_fork_inferior): Adjust.
848 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
849 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
850 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
851 * linux-nat.c (linux_nat_target::follow_fork): Return void.
852 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
853 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
854 * remote.c (class remote_target) <follow_fork>: Likewise.
855 (remote_target::follow_fork): Likewise.
856 * target-delegates.c: Re-generate.
858 2021-04-07 Weimin Pan <weimin.pan@oracle.com>
860 * ctfread.c (fetch_tid_type): New function, use throughout file.
861 (read_forward_type): New function.
862 (read_type_record): Call read_forward_type.
864 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
866 * f-exp.h (class fortran_structop_operation): New class.
867 * f-exp.y (exp): Create fortran_structop_operation instead of the
868 generic structop_operation.
869 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
870 expression as EVAL_NORMAL if the result type was dynamic so we can
871 extract the actual array bounds.
872 (fortran_structop_operation::evaluate): New function.
874 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
876 * eval.c (evaluate_subexp_standard): Remove
877 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
880 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
882 * valops.c (value_cast): Call value_deeply_equal before performing
885 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
887 * gdbtypes.c (types_equal): Move pointer equality check earlier in
890 2021-04-07 Caroline Tice <cmtice@google.com>
892 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
893 the search paths used resolve relative location of .dwo file.
895 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
897 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
899 (dwarf2_section_info::get_file_name): Add an assert.
900 (dwarf2_section_info::read_string): Display a minimal, sane error
901 when the dwarf2_section_info is not associated with a bfd section.
903 2021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
905 * top.c (staged_gdb_datadir): Update comment.
906 (set_gdb_datadir): Copy the value of gdb_datadir back into
908 (init_main): Initialise staged_gdb_datadir.
910 2021-04-06 Tom de Vries <tdevries@suse.de>
913 * infcmd.c (prepare_one_step): Using inline frame info to narrow
916 2021-04-06 Tom de Vries <tdevries@suse.de>
919 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
922 2021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
924 * avr-tdep.c (avr_frame_unwind_cache): Use
925 trad_frame_saved_reg::is_addr.
927 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
929 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
932 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
934 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
935 objfile parameter for objfile_per_bfd_storage, adjust callers.
936 (struct standard_psymtab) <standard_psymtab>: Likewise.
937 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
938 * psymtab.c (partial_symtab::partial_symtab): Likewise.
939 * ctfread.c (struct ctf_psymtab): Likewise.
940 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
941 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
942 (dwarf2_create_include_psymtab): Likewise.
943 * objfiles.h (struct objfile_per_bfd_storage)
944 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
945 <get_bfd>: New method.
947 * objfiles.c (get_objfile_bfd_data): Adjust.
949 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
951 * psymtab.c (partial_symtab::partial_symtab): Change
952 last_objfile_name to be an std::string.
953 * symfile.c (allocate_symtab): Likewise.
955 2021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
957 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
959 (struct objfile) <intern>: Use
960 objfile::objfile_per_bfd_storage::intern.
962 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
964 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
965 with type::is_flag_enum.
967 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
969 * gdbtypes.h (struct type) <is_flag_enum,
970 set_is_flag_enum>: New methods.
971 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
972 write call sites to use type::set_is_flag_enum.
974 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
976 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
977 with type::is_declared_class.
979 2021-04-01 Simon Marchi <simon.marchi@efficios.com>
981 * gdbtypes.h (struct type) <is_declared_class,
982 set_is_declared_class>: New methods.
983 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
984 write call sites to use type::set_is_declared_class.
986 2021-02-28 Boris Staletic <boris.staletic@gmail.com>
988 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
989 to avoid deprecation warnings.
991 2021-04-01 Martin Liska <mliska@suse.cz>
993 * cp-name-parser.y: Use startswith instead of strncmp.
994 * m2-exp.y: Likewise.
995 * macroexp.c (substitute_args): Likewise.
996 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
997 * rust-exp.y: Likewise.
999 2021-03-31 Tom Tromey <tom@tromey.com>
1001 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1002 with dw2_map_matching_symbols.
1003 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1004 dw2_expand_symtabs_matching.
1006 2021-03-31 Tom Tromey <tromey@adacore.com>
1008 * dwarf2/stringify.h: Fix typo.
1010 2021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1013 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1014 with objfiles using READNOW.
1016 2021-03-29 Tom Tromey <tromey@adacore.com>
1018 * top.c (check_frame_language_change): Update.
1019 * language.c (language_info): Remove parameter.
1020 * language.h (language_info): Remove parameter.
1022 2021-03-29 Luis Machado <luis.machado@linaro.org>
1024 * compile/compile.c (get_args): Don't add empty argv entries.
1026 2021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1029 * procfs.c (procfs_target::attach): Define inf.
1031 (procfs_target::create_inferior): Likewise.
1033 2021-03-28 Tom Tromey <tom@tromey.com>
1035 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1036 (elf_symfile_read): Simplify.
1037 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1038 (make_lazy_dwarf_reader): New function.
1039 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1040 (dwarf2_initialize_objfile): Return void. Remove index_kind
1041 parameter. Push on 'qf' list.
1042 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1043 type. Remove 'index_kind' parameter.
1044 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1046 2021-03-27 Tom Tromey <tom@tromey.com>
1048 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1050 2021-03-27 Tom Tromey <tom@tromey.com>
1052 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1054 2021-03-26 Lancelot Six <lsix@lancelotsix.com>
1056 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1059 2021-03-26 Tom Tromey <tom@tromey.com>
1061 * symtab.c (struct output_source_filename_data): Add 'output'
1062 method and operator().
1063 (output_source_filename_data::output): Rename from
1064 output_source_filename.
1065 (output_partial_symbol_filename): Remove.
1066 (info_sources_command): Update.
1067 (struct add_partial_filename_data): Add operator().
1068 (add_partial_filename_data::operator()): Rename from
1069 maybe_add_partial_symtab_filename.
1070 (make_source_files_completion_list): Update.
1071 * symfile.c (quick_symbol_functions): Update.
1072 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1073 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1074 'need_fullname'. Remove 'data' parameter.
1075 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1076 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1077 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1078 Change type of 'fun' and 'need_fullname'. Remove 'data'
1080 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1081 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1082 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1084 (mi_cmd_file_list_exec_source_files): Update.
1086 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1088 2021-03-26 Tom Tromey <tom@tromey.com>
1090 * ada-lang.c (struct match_data): Add operator().
1091 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1092 (callback): Remove 'callback'.
1094 2021-03-26 Tom Tromey <tom@tromey.com>
1096 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1097 call make_ignore_params once.
1099 2021-03-26 Tom Tromey <tom@tromey.com>
1101 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1104 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1105 Pedro Alves <pedro@palves.net>
1107 * async-event.c: Include "infrun.h".
1108 (async_event_handler_marked): New.
1109 * async-event.h (async_event_handler_marked): Declare.
1110 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1111 inferior before calling target method. Don't commit-resumed if
1112 target_has_pending_events is true.
1113 * remote.c (remote_target::has_pending_events): New.
1114 * target-delegates.c: Regenerate.
1115 * target.c (target_has_pending_events): New.
1116 * target.h (target_ops::has_pending_events): New target method.
1117 (target_has_pending_events): New.
1119 2021-03-26 Simon Marchi <simon.marchi@efficios.com>
1120 Pedro Alves <pedro@palves.net>
1122 * infcmd.c (run_command_1, attach_command, detach_command)
1123 (interrupt_target_1): Use scoped_disable_commit_resumed.
1124 * infrun.c (do_target_resume): Remove
1125 target_commit_resume call.
1126 (commit_resume_all_targets): Remove.
1127 (maybe_set_commit_resumed_all_targets): New.
1128 (maybe_call_commit_resumed_all_targets): New.
1129 (enable_commit_resumed): New.
1130 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1131 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1132 (scoped_disable_commit_resumed::reset)
1133 (scoped_disable_commit_resumed::reset_and_commit)
1134 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1135 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1137 (proceed): Use scoped_disable_commit_resumed and
1138 maybe_call_commit_resumed_all_targets.
1139 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1140 * infrun.h (struct scoped_disable_commit_resumed): New.
1141 (maybe_call_commit_resumed_all_process_targets): New.
1142 (struct scoped_enable_commit_resumed): New.
1143 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1144 * process-stratum-target.h (class process_stratum_target):
1145 <commit_resumed_state>: New.
1146 * record-full.c (record_full_wait_1): Change commit_resumed_state
1147 around calling commit_resumed.
1148 * remote.c (class remote_target) <commit_resume>: Rename to...
1149 <commit_resumed>: ... this.
1150 (struct stop_reply): Move up.
1151 (remote_target::commit_resume): Rename to...
1152 (remote_target::commit_resumed): ... this. Check if there is any
1153 thread pending vCont resume.
1154 (remote_target::remote_stop_ns): Generate stop replies for resumed
1155 but pending vCont threads.
1156 (remote_target::wait_ns): Add gdb_assert.
1157 * target-delegates.c: Regenerate.
1158 * target.c (target_wait, target_resume): Assert that the current
1159 process_stratum target isn't in commit-resumed state.
1160 (defer_target_commit_resume): Remove.
1161 (target_commit_resume): Remove.
1162 (target_commit_resumed): New.
1163 (make_scoped_defer_target_commit_resume): Remove.
1164 (target_stop): Assert that the current process_stratum target
1165 isn't in commit-resumed state.
1166 * target.h (struct target_ops) <commit_resume>: Rename to ...
1167 <commit_resumed>: ... this.
1168 (target_commit_resume): Remove.
1169 (target_commit_resumed): New.
1170 (make_scoped_defer_target_commit_resume): Remove.
1171 * top.c (wait_sync_command_done): Use
1172 scoped_enable_commit_resumed.
1174 2021-03-26 Pedro Alves <pedro@palves.net>
1176 * target.c (target_always_non_stop_p): Also check whether the
1179 2021-03-26 Tom Tromey <tom@tromey.com>
1181 * dwarf2/read.c (dwarf2_read_debug_names)
1182 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1183 (dw2_debug_names_iterator::next, create_type_unit_group):
1186 2021-03-25 Pedro Alves <pedro@palves.net>
1188 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1189 around setting the breakpoint.
1191 2021-03-25 Pedro Alves <pedro@palves.net>
1194 (remote_target::check_pending_events_prevent_wildcard_vcont):
1195 Check whether the event's ptid is not null_ptid before looking up
1196 the corresponding inferior.
1198 2021-03-24 Changbin Du <changbin.du@gmail.com>
1200 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1203 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1205 * target.h (current_top_target): Remove, make callers use the
1206 current inferior instead.
1207 * target.c (current_top_target): Remove.
1209 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1211 * target.h (target_shortname): Change to function declaration.
1212 (target_longname): Likewise.
1213 (target_attach_no_wait): Likewise.
1214 (target_post_attach): Likewise.
1215 (target_prepare_to_store): Likewise.
1216 (target_supports_enable_disable_tracepoint): Likewise.
1217 (target_supports_string_tracing): Likewise.
1218 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1219 (target_supports_dumpcore): Likewise.
1220 (target_dumpcore): Likewise.
1221 (target_can_run_breakpoint_commands): Likewise.
1222 (target_files_info): Likewise.
1223 (target_post_startup_inferior): Likewise.
1224 (target_insert_fork_catchpoint): Likewise.
1225 (target_remove_fork_catchpoint): Likewise.
1226 (target_insert_vfork_catchpoint): Likewise.
1227 (target_remove_vfork_catchpoint): Likewise.
1228 (target_insert_exec_catchpoint): Likewise.
1229 (target_remove_exec_catchpoint): Likewise.
1230 (target_set_syscall_catchpoint): Likewise.
1231 (target_rcmd): Likewise.
1232 (target_can_lock_scheduler): Likewise.
1233 (target_can_async_p): Likewise.
1234 (target_is_async_p): Likewise.
1235 (target_execution_direction): Likewise.
1236 (target_extra_thread_info): Likewise.
1237 (target_pid_to_exec_file): Likewise.
1238 (target_thread_architecture): Likewise.
1239 (target_find_memory_regions): Likewise.
1240 (target_make_corefile_notes): Likewise.
1241 (target_get_bookmark): Likewise.
1242 (target_goto_bookmark): Likewise.
1243 (target_stopped_by_watchpoint): Likewise.
1244 (target_stopped_by_sw_breakpoint): Likewise.
1245 (target_supports_stopped_by_sw_breakpoint): Likewise.
1246 (target_stopped_by_hw_breakpoint): Likewise.
1247 (target_supports_stopped_by_hw_breakpoint): Likewise.
1248 (target_have_steppable_watchpoint): Likewise.
1249 (target_can_use_hardware_watchpoint): Likewise.
1250 (target_region_ok_for_hw_watchpoint): Likewise.
1251 (target_can_do_single_step): Likewise.
1252 (target_insert_watchpoint): Likewise.
1253 (target_remove_watchpoint): Likewise.
1254 (target_insert_hw_breakpoint): Likewise.
1255 (target_remove_hw_breakpoint): Likewise.
1256 (target_can_accel_watchpoint_condition): Likewise.
1257 (target_can_execute_reverse): Likewise.
1258 (target_get_ada_task_ptid): Likewise.
1259 (target_filesystem_is_local): Likewise.
1260 (target_trace_init): Likewise.
1261 (target_download_tracepoint): Likewise.
1262 (target_can_download_tracepoint): Likewise.
1263 (target_download_trace_state_variable): Likewise.
1264 (target_enable_tracepoint): Likewise.
1265 (target_disable_tracepoint): Likewise.
1266 (target_trace_start): Likewise.
1267 (target_trace_set_readonly_regions): Likewise.
1268 (target_get_trace_status): Likewise.
1269 (target_get_tracepoint_status): Likewise.
1270 (target_trace_stop): Likewise.
1271 (target_trace_find): Likewise.
1272 (target_get_trace_state_variable_value): Likewise.
1273 (target_save_trace_data): Likewise.
1274 (target_upload_tracepoints): Likewise.
1275 (target_upload_trace_state_variables): Likewise.
1276 (target_get_raw_trace_data): Likewise.
1277 (target_get_min_fast_tracepoint_insn_len): Likewise.
1278 (target_set_disconnected_tracing): Likewise.
1279 (target_set_circular_trace_buffer): Likewise.
1280 (target_set_trace_buffer_size): Likewise.
1281 (target_set_trace_notes): Likewise.
1282 (target_get_tib_address): Likewise.
1283 (target_set_permissions): Likewise.
1284 (target_static_tracepoint_marker_at): Likewise.
1285 (target_static_tracepoint_markers_by_strid): Likewise.
1286 (target_traceframe_info): Likewise.
1287 (target_use_agent): Likewise.
1288 (target_can_use_agent): Likewise.
1289 (target_augmented_libraries_svr4_read): Likewise.
1290 (target_log_command): Likewise.
1291 * target.c (target_shortname): New.
1292 (target_longname): New.
1293 (target_attach_no_wait): New.
1294 (target_post_attach): New.
1295 (target_prepare_to_store): New.
1296 (target_supports_enable_disable_tracepoint): New.
1297 (target_supports_string_tracing): New.
1298 (target_supports_evaluation_of_breakpoint_conditions): New.
1299 (target_supports_dumpcore): New.
1300 (target_dumpcore): New.
1301 (target_can_run_breakpoint_commands): New.
1302 (target_files_info): New.
1303 (target_post_startup_inferior): New.
1304 (target_insert_fork_catchpoint): New.
1305 (target_remove_fork_catchpoint): New.
1306 (target_insert_vfork_catchpoint): New.
1307 (target_remove_vfork_catchpoint): New.
1308 (target_insert_exec_catchpoint): New.
1309 (target_remove_exec_catchpoint): New.
1310 (target_set_syscall_catchpoint): New.
1312 (target_can_lock_scheduler): New.
1313 (target_can_async_p): New.
1314 (target_is_async_p): New.
1315 (target_execution_direction): New.
1316 (target_extra_thread_info): New.
1317 (target_pid_to_exec_file): New.
1318 (target_thread_architecture): New.
1319 (target_find_memory_regions): New.
1320 (target_make_corefile_notes): New.
1321 (target_get_bookmark): New.
1322 (target_goto_bookmark): New.
1323 (target_stopped_by_watchpoint): New.
1324 (target_stopped_by_sw_breakpoint): New.
1325 (target_supports_stopped_by_sw_breakpoint): New.
1326 (target_stopped_by_hw_breakpoint): New.
1327 (target_supports_stopped_by_hw_breakpoint): New.
1328 (target_have_steppable_watchpoint): New.
1329 (target_can_use_hardware_watchpoint): New.
1330 (target_region_ok_for_hw_watchpoint): New.
1331 (target_can_do_single_step): New.
1332 (target_insert_watchpoint): New.
1333 (target_remove_watchpoint): New.
1334 (target_insert_hw_breakpoint): New.
1335 (target_remove_hw_breakpoint): New.
1336 (target_can_accel_watchpoint_condition): New.
1337 (target_can_execute_reverse): New.
1338 (target_get_ada_task_ptid): New.
1339 (target_filesystem_is_local): New.
1340 (target_trace_init): New.
1341 (target_download_tracepoint): New.
1342 (target_can_download_tracepoint): New.
1343 (target_download_trace_state_variable): New.
1344 (target_enable_tracepoint): New.
1345 (target_disable_tracepoint): New.
1346 (target_trace_start): New.
1347 (target_trace_set_readonly_regions): New.
1348 (target_get_trace_status): New.
1349 (target_get_tracepoint_status): New.
1350 (target_trace_stop): New.
1351 (target_trace_find): New.
1352 (target_get_trace_state_variable_value): New.
1353 (target_save_trace_data): New.
1354 (target_upload_tracepoints): New.
1355 (target_upload_trace_state_variables): New.
1356 (target_get_raw_trace_data): New.
1357 (target_get_min_fast_tracepoint_insn_len): New.
1358 (target_set_disconnected_tracing): New.
1359 (target_set_circular_trace_buffer): New.
1360 (target_set_trace_buffer_size): New.
1361 (target_set_trace_notes): New.
1362 (target_get_tib_address): New.
1363 (target_set_permissions): New.
1364 (target_static_tracepoint_marker_at): New.
1365 (target_static_tracepoint_markers_by_strid): New.
1366 (target_traceframe_info): New.
1367 (target_use_agent): New.
1368 (target_can_use_agent): New.
1369 (target_augmented_libraries_svr4_read): New.
1370 (target_log_command): New.
1371 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1372 * infrun.c (set_schedlock_func): Adjust.
1373 * mi/mi-main.c (exec_reverse_continue): Adjust.
1374 * reverse.c (exec_reverse_once): Adjust.
1375 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1376 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1377 * remote-sim.c (gdbsim_target::detach): Adjust.
1378 (gdbsim_target::files_info): Adjust.
1380 2021-03-24 Tom Tromey <tom@tromey.com>
1382 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1383 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1384 (check_match, dw2_expand_symtabs_matching)
1385 (dwarf2_debug_names_index::map_matching_symbols)
1386 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1388 2021-03-24 Keith Seitz <keiths@redhat.com>
1390 * compile/compile-cplus-types.c
1391 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1394 2021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1396 * gdbarch.sh (gdbarch_data_registry): Make static.
1397 * gdbarch.c: Re-generate.
1399 2021-03-24 Luis Machado <luis.machado@linaro.org>
1401 * NEWS: Mention memory tagging changes.
1403 2021-03-24 Luis Machado <luis.machado@linaro.org>
1405 * printcmd.c (decode_format): Handle the 'm' modifier.
1406 (do_examine): Display allocation tags when required/supported.
1407 (should_validate_memtags): New function.
1408 (print_command_1): Display memory tag mismatches.
1409 * valprint.c (show_memory_tag_violations): New function.
1410 (value_print_option_defs): Add new option "memory-tag-violations".
1411 (user_print_options) <memory_tag_violations>: Initialize to 1.
1412 * valprint.h (struct format_data) <print_tags>: New field.
1413 (value_print_options) <memory_tag_violations>: New field.
1415 2021-03-24 Luis Machado <luis.machado@linaro.org>
1417 * printcmd.c: Include gdbsupport/rsp-low.h.
1418 (memory_tag_list): New static global.
1419 (process_print_command_args): Factored out of
1421 (print_command_1): Use process_print_command_args.
1422 (show_addr_not_tagged, show_memory_tagging_unsupported)
1423 (memory_tag_command, memory_tag_print_tag_command)
1424 (memory_tag_print_logical_tag_command)
1425 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1426 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1427 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1429 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1431 2021-03-24 Luis Machado <luis.machado@linaro.org>
1433 * aarch64-linux-tdep.c
1434 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1435 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1437 2021-03-24 Luis Machado <luis.machado@linaro.org>
1439 * aarch64-linux-tdep.c
1440 (aarch64_linux_report_signal_info): New function.
1441 (aarch64_linux_init_abi): Register
1442 aarch64_linux_report_signal_info as the report_signal_info hook.
1443 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1444 (SEGV_MTESERR): Define.
1446 2021-03-24 Luis Machado <luis.machado@linaro.org>
1448 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1449 (aarch64_linux_ltag_tests): New function.
1450 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1452 2021-03-24 Luis Machado <luis.machado@linaro.org>
1454 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1455 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1456 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1457 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1459 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1460 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1461 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1462 (aarch64_linux_get_ltag): New functions.
1463 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1464 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1465 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1466 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1468 2021-03-24 Luis Machado <luis.machado@linaro.org>
1470 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1472 (struct smaps_data): New struct.
1473 (decode_vmflags): Handle the 'mt' flag.
1474 (parse_smaps_data): New function, refactored from
1475 linux_find_memory_regions_full.
1476 (linux_address_in_memtag_page): New function.
1477 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1478 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1480 2021-03-24 Luis Machado <luis.machado@linaro.org>
1482 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1483 instead of char arrays.
1485 2021-03-24 Luis Machado <luis.machado@linaro.org>
1487 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1488 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1489 nat/aarch64-mte-linux-ptrace.h.
1490 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1491 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1493 <fetch_memtags>: New method override.
1494 <store_memtags>: New method override.
1495 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1496 (aarch64_linux_nat_target::fetch_memtags): New method.
1497 (aarch64_linux_nat_target::store_memtags): New method.
1498 * arch/aarch64-mte-linux.c: New file.
1499 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1500 (AARCH64_MTE_GRANULE_SIZE): Define.
1501 (aarch64_memtag_type): New enum.
1502 (aarch64_mte_get_tag_granules): New prototype.
1503 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1504 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1505 * nat/aarch64-mte-linux-ptrace.c: New file.
1506 * nat/aarch64-mte-linux-ptrace.h: New file.
1508 2021-03-24 Luis Machado <luis.machado@linaro.org>
1510 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1511 * nat/aarch64-mte-linux-ptrace.h: New file.
1513 2021-03-24 Luis Machado <luis.machado@linaro.org>
1515 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1516 (store_mteregs_to_thread): New function.
1517 (aarch64_linux_nat_target::fetch_registers): Update to call
1518 fetch_mteregs_from_thread.
1519 (aarch64_linux_nat_target::store_registers): Update to call
1520 store_mteregs_to_thread.
1521 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1522 (aarch64_cannot_store_register): Handle MTE registers.
1523 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1524 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1525 <has_mte>: New method.
1526 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1528 2021-03-24 Luis Machado <luis.machado@linaro.org>
1530 * aarch64-linux-nat.c
1531 (aarch64_linux_nat_target::read_description): Take MTE flag into
1533 Slight refactor to hwcap flag checking.
1534 * aarch64-linux-tdep.c
1535 (aarch64_linux_core_read_description): Likewise.
1536 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1538 (aarch64_read_description): Add mte_p parameter and update to use it.
1539 Update the documentation.
1540 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1541 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1542 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1543 (aarch64_create_target_description): Add mte_p parameter and update
1545 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1547 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1548 * features/aarch64-mte.c: New file, generated.
1549 * features/aarch64-mte.xml: New file.
1551 2021-03-24 Luis Machado <luis.machado@linaro.org>
1553 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1554 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1555 * aarch64-linux-tdep.c: Likewise
1556 * arch/aarch64-mte-linux.h: New file.
1558 2021-03-24 Luis Machado <luis.machado@linaro.org>
1560 * remote: Include gdbsupport/selftest.h.
1561 (test_memory_tagging_functions): New function.
1562 (_initialize_remote): Register test_memory_tagging_functions.
1564 2021-03-24 Luis Machado <luis.machado@linaro.org>
1566 * remote.c (PACKET_memory_tagging_feature): New enum.
1567 (remote_memory_tagging_p): New function.
1568 (remote_protocol_features): New "memory-tagging" entry.
1569 (remote_target::remote_query_supported): Handle memory tagging
1571 (remote_target::supports_memory_tagging): Implement.
1572 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1573 (create_store_memtags_request): New functions.
1574 (remote_target::fetch_memtags): Implement.
1575 (remote_target::store_memtags): Implement.
1576 (_initialize_remote): Add new "memory-tagging-feature"
1579 2021-03-24 Luis Machado <luis.machado@linaro.org>
1581 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1582 (default_memtag_matches_p, default_set_memtags)
1583 (default_get_memtag): New functions.
1584 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1585 (default_memtag_matches_p, default_set_memtags)
1586 (default_get_memtag): New prototypes.
1587 * gdbarch.c: Regenerate.
1588 * gdbarch.h: Regenerate.
1589 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1590 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1591 (enum memtag_type): New enum.
1593 2021-03-24 Luis Machado <luis.machado@linaro.org>
1595 * remote.c (remote_target) <supports_memory_tagging>: New method
1597 <fetch_memtags>: New method override.
1598 <store_memtags>: New method override.
1599 (remote_target::supports_memory_tagging): New method.
1600 (remote_target::fetch_memtags): New method.
1601 (remote_target::store_memtags): New method.
1602 * target-delegates.c: Regenerate.
1603 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1605 <fetch_memtags>: New virtual method.
1606 <store_memtags>: New virtual method.
1607 (target_supports_memory_tagging): Define.
1608 (target_fetch_memtags): Define.
1609 (target_store_memtags): Define.
1610 * target-debug.h (target_debug_print_size_t)
1611 (target_debug_print_const_gdb_byte_vector_r)
1612 (target_debug_print_gdb_byte_vector_r): New functions.
1614 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1616 * target.h (target_longname): Remove.
1618 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1620 * target.h (target_is_pushed): Remove, update callers to use
1621 inferior::target_is_pushed instead.
1622 * target.c (target_is_pushed): Remove.
1624 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1626 * target.h (push_target): Remove, update callers to use
1627 inferior::push_target.
1628 * target.c (push_target): Remove.
1629 * inferior.h (class inferior) <push_target>: New overload.
1631 2021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1633 * target.h (unpush_target): Remove, update all callers
1634 to use `inferior::unpush_target` instead.
1635 (struct target_unpusher) <operator()>: Just declare.
1636 * target.c (unpush_target): Remove.
1637 (target_unpusher::operator()): New.
1639 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1641 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1643 (process_full_comp_unit): Validate the top-level tag before
1644 processing the first DIE.
1645 (read_func_scope): Ensure we have a valid builder.
1647 2021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1649 * objc-lang.c (objc_demangle): Renamed to
1650 objc_language::demangle_symbol, and moved later in the file.
1651 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1653 (objc_language::demangle_symbol): Defined outside of class
1654 declaration. The definition is the old objc_demangle with NULL
1655 changed to nullptr, and if conditions relating to nullptr pointers
1656 or null character checks made explicit.
1657 * objc-lang.h (objc_demangle): Delete declaration.
1659 2021-03-22 Martin Liska <mliska@suse.cz>
1661 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1662 (_initialize_arm_tdep): Likewise.
1664 2021-03-20 Tom Tromey <tom@tromey.com>
1666 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1667 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1668 * psymtab.h (make_psymbol_functions): Don't declare.
1669 * psymtab.c (make_psymbol_functions): Remove.
1670 (maintenance_print_psymbols): Update.
1671 * psympriv.h (struct psymbol_functions): Add no-argument
1673 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1674 <partial_symtabs>: Remove.
1675 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1676 * elfread.c (read_partial_symbols): Update.
1677 (elf_symfile_read): Remove check for existing partial symbols.
1679 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1681 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1683 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1685 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1686 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1688 2021-03-20 Tom Tromey <tom@tromey.com>
1690 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1691 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1692 * symfile-debug.c (objfile::has_partial_symbols)
1693 (objfile::find_last_source_symtab)
1694 (objfile::forget_cached_source_info)
1695 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1696 (objfile::print_stats, objfile::dump)
1697 (objfile::expand_symtabs_for_function)
1698 (objfile::expand_all_symtabs)
1699 (objfile::expand_symtabs_with_fullname)
1700 (objfile::map_matching_symbols)
1701 (objfile::expand_symtabs_matching)
1702 (objfile::find_pc_sect_compunit_symtab)
1703 (objfile::map_symbol_filenames)
1704 (objfile::find_compunit_symtab_by_address)
1705 (objfile::lookup_global_symbol_language)
1706 (objfile::require_partial_symbols): Update.
1707 * psymtab.c (maintenance_print_psymbols)
1708 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1709 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1710 * objfiles.c (objfile_relocate1): Update.
1711 * elfread.c (elf_symfile_read): Update.
1713 2021-03-20 Tom Tromey <tom@tromey.com>
1715 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1717 2021-03-20 Tom Tromey <tom@tromey.com>
1719 * psymtab.c (psymbol_functions::count_psyms): Rename.
1720 (psymbol_functions::print_stats): Update.
1721 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1724 2021-03-20 Tom Tromey <tom@tromey.com>
1726 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1727 (psymbol_functions::find_pc_sect_psymtab): Rename.
1728 (psymbol_functions::find_pc_sect_compunit_symtab)
1729 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1730 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1732 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1734 2021-03-20 Tom Tromey <tom@tromey.com>
1736 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1737 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1738 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1740 (add_psymbol_to_bcache): Remove.
1741 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1742 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1744 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1745 <add_psymbol>: Likewise.
1746 (standard_psymtab, legacy_psymtab): Likewise.
1747 * mdebugread.c (parse_partial_symbols): Update.
1748 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1749 (handle_psymbol_enumerators): Update.
1750 (new_psymtab): Add partial_symtabs parameter.
1751 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1752 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1754 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1755 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1757 * dbxread.c (read_dbx_symtab): Update.
1758 (start_psymtab): Add partial_symtabs parameter.
1759 (dbx_end_psymtab): Update.
1760 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1761 (ctf_psymtab): Add partial_symtabs parameter.
1762 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1764 (scan_partial_symbols): Add partial_symtabs parameter.
1765 (scan_partial_symbols, elfctf_build_psymtabs)
1766 (ctf_psymtab_add_enums): Update.
1768 2021-03-20 Tom Tromey <tom@tromey.com>
1770 * symfile.c (read_symbols): Use objfile method.
1771 * symfile-debug.c (objfile::require_partial_symbols): New method.
1772 * psymtab.h (require_partial_symbols): Don't declare.
1773 * psymtab.c (require_partial_symbols): Use objfile method. Now
1775 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1776 (psymbol_functions::lookup_symbol)
1777 (psymbol_functions::lookup_global_symbol_language)
1778 (psymbol_functions::find_last_source_symtab)
1779 (psymbol_functions::forget_cached_source_info)
1780 (psymbol_functions::print_stats)
1781 (psymbol_functions::expand_symtabs_for_function)
1782 (psymbol_functions::expand_all_symtabs)
1783 (psymbol_functions::expand_symtabs_with_fullname)
1784 (psymbol_functions::map_symbol_filenames)
1785 (psymbol_functions::map_matching_symbols)
1786 (psymbol_functions::expand_symtabs_matching)
1787 (psymbol_functions::find_compunit_symtab_by_address)
1788 (maintenance_print_psymbols, maintenance_info_psymtabs)
1789 (maintenance_check_psymtabs): Update.
1790 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1793 2021-03-20 Tom Tromey <tom@tromey.com>
1795 * xcoffread.c (xcoff_sym_fns): Update.
1796 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1797 * symfile-debug.c (objfile::has_partial_symbols): Use
1798 can_lazily_read_symbols.
1799 (debug_sym_read_psymbols): Remove.
1800 (debug_sym_fns, install_symfile_debug_logging): Update.
1801 * quick-symbol.h (struct quick_symbol_functions)
1802 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1803 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1804 * mipsread.c (ecoff_sym_fns): Update.
1805 * machoread.c (macho_sym_fns): Update.
1806 * elfread.c (struct lazy_dwarf_reader): New.
1807 (elf_symfile_read): Update.
1808 (read_psyms): Now a method of lazy_dwarf_reader.
1809 (elf_sym_fns): Update.
1810 (elf_sym_fns_lazy_psyms): Remove.
1811 * dbxread.c (aout_sym_fns): Update.
1812 * coffread.c (coff_sym_fns): Update.
1814 2021-03-20 Tom Tromey <tom@tromey.com>
1816 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1817 (reread_symbols): Move reset_psymtabs call later.
1818 * objfiles.c (objfile::objfile): Don't initialize
1821 2021-03-20 Tom Tromey <tom@tromey.com>
1823 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1824 set_partial_symtabs.
1825 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1826 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1828 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1830 (psymbol_functions::find_pc_sect_compunit_symtab)
1831 (psymbol_functions::print_stats, psymbol_functions::dump)
1832 (psymbol_functions::has_symbols): Update.
1833 (make_psymbol_functions, dump_psymtab_addrmap): Add
1834 partial_symtabs parameter.
1835 (maintenance_print_psymbols): Update.
1836 (psymbol_functions::expand_symtabs_matching): Update.
1837 * psympriv.h (struct psymbol_functions): Add constructor.
1838 <m_partial_symtabs>: New member.
1839 <set_partial_symtabs>: New method.
1841 2021-03-20 Tom Tromey <tom@tromey.com>
1843 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
1845 (process_psymtab_comp_unit_reader)
1846 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
1847 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
1848 Reference psymtabs via per_bfd.
1850 2021-03-20 Tom Tromey <tom@tromey.com>
1852 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
1854 (add_address_entry): Remove objfile parameter.
1855 (add_address_entry_worker): Update.
1856 (write_address_map): Replace objfile parameter with per_bfd.
1857 (write_gdbindex, write_psymtabs_to_index): Update.
1859 2021-03-20 Tom Tromey <tom@tromey.com>
1861 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
1862 print_bcache parameter.
1863 * symfile-debug.c (objfile::print_stats): Add print_bcache
1865 * quick-symbol.h (struct quick_symbol_functions)
1866 <print_stats>: Add print_bcache parameter.
1867 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
1869 (print_objfile_statistics): Move psymtab code to psymtab.c.
1870 * psymtab.c (count_psyms): Move from symmisc.c.
1871 (psymbol_functions::print_stats): Print partial symbol and bcache
1872 statistics. Add print_bcache parameter.
1873 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
1874 (struct objfile) <print_stats>: Add print_bcache parameter.
1875 * maint.c (maintenance_print_statistics): Update.
1877 2021-03-20 Tom Tromey <tom@tromey.com>
1879 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
1881 * dwarf2/read.c (create_addrmap_from_index)
1882 (create_addrmap_from_aranges): Set per_bfd addrmap.
1883 (dwarf2_read_gdb_index): Don't set partial_symtabs.
1884 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
1886 (dwarf2_read_debug_names): Don't set partial_symtabs.
1887 (dwarf2_initialize_objfile): Likewise.
1889 2021-03-20 Tom Tromey <tom@tromey.com>
1891 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
1894 2021-03-20 Tom Tromey <tom@tromey.com>
1896 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
1897 (~psymtab_discarder, keep): Update.
1898 <m_objfile>: Remove.
1899 <m_partial_symtabs>: New member.
1900 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1902 2021-03-20 Tom Tromey <tom@tromey.com>
1904 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
1905 (xcoff_end_psymtab): Update.
1906 (scan_xcoff_symtab): Add partial_symtabs parameter.
1907 (xcoff_initial_scan): Update.
1908 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
1909 * mdebugread.c (mdebug_build_psymtabs): Update.
1910 (parse_partial_symbols): Add partial_symtabs parameter.
1911 * dbxread.c (dbx_symfile_read): Update.
1912 (read_dbx_symtab): Add partial_symtabs parameter.
1913 (read_dbx_symtab): Update.
1914 (dbx_end_psymtab): Add partial_symtabs parameter.
1916 2021-03-20 Tom Tromey <tom@tromey.com>
1918 * quick-symbol.h (struct quick_symbol_functions)
1919 <relocated>: New method.
1920 * psymtab.h (struct psymbol_functions) <relocated>: New
1922 <fill_psymbol_map>: Declare method.
1923 <m_psymbol_map>: New member.
1924 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
1925 (psymbol_functions::find_compunit_symtab_by_address): Update.
1926 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
1927 (struct objfile) <psymbol_map>: Remove.
1928 * objfiles.c (objfile_relocate1): Update.
1930 2021-03-20 Tom Tromey <tom@tromey.com>
1932 * psympriv.h (struct psymbol_functions): New.
1933 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1934 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
1935 (objfile::lookup_global_symbol_language): Update.
1936 * quick-symbol.h (struct quick_symbol_functions): Convert function
1937 pointers to methods. Add virtual destructor.
1938 (quick_symbol_functions_up): New typedef.
1939 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
1940 (dwarf2_debug_names_functions): Don't declare.
1941 (make_psymbol_functions): Declare.
1942 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
1943 (psymbol_functions::find_pc_sect_compunit_symtab)
1944 (psymbol_functions::lookup_symbol)
1945 (psymbol_functions::lookup_global_symbol_language)
1946 (psymbol_functions::find_last_source_symtab)
1947 (psymbol_functions::forget_cached_source_info)
1948 (psymbol_functions::print_stats, psymbol_functions::dump)
1949 (psymbol_functions::expand_symtabs_for_function)
1950 (psymbol_functions::expand_all_symtabs)
1951 (psymbol_functions::expand_symtabs_with_fullname)
1952 (psymbol_functions::map_symbol_filenames)
1953 (psymbol_functions::map_matching_symbols)
1954 (psymbol_functions::expand_symtabs_matching)
1955 (psymbol_functions::has_symbols)
1956 (psymbol_functions::find_compunit_symtab_by_address): Rename.
1957 (psym_functions): Remove.
1958 (make_psymbol_functions): New function.
1959 * objfiles.h (struct objfile) <qf>: Change type.
1960 * elfread.c (elf_symfile_read): Update.
1961 * dwarf2/read.c (struct dwarf2_base_index_functions)
1962 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
1963 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
1964 (dwarf2_base_index_functions::find_last_source_symtab)
1965 (dwarf2_base_index_functions::forget_cached_source_info)
1966 (dwarf2_base_index_functions::map_symtabs_matching_filename)
1967 (dwarf2_gdb_index::lookup_symbol)
1968 (dwarf2_base_index_functions::print_stats)
1969 (dwarf2_gdb_index::dump)
1970 (dwarf2_gdb_index::expand_symtabs_for_function)
1971 (dwarf2_base_index_functions::expand_all_symtabs)
1972 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
1974 (dwarf2_gdb_index::map_matching_symbols): New method.
1975 (dwarf2_gdb_index::expand_symtabs_matching): New method.
1976 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
1977 (dwarf2_base_index_functions::map_symbol_filenames)
1978 (dwarf2_base_index_functions::has_symbols): Rename.
1979 (dwarf2_gdb_index_functions): Remove.
1980 (dwarf2_debug_names_index::lookup_symbol)
1981 (dwarf2_debug_names_index::dump)
1982 (dwarf2_debug_names_index::expand_symtabs_for_function)
1983 (dwarf2_debug_names_index::map_matching_symbols)
1984 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
1985 (dwarf2_debug_names_functions): Remove.
1986 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
1989 2021-03-20 Tom Tromey <tom@tromey.com>
1991 * psymtab.c (require_partial_symbols): Check that 'sf' is not
1993 * xcoffread.c (xcoff_sym_fns): Update.
1994 * symfile.h (struct sym_fns) <qf>: Remove.
1995 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1996 * symfile-debug.c (objfile::has_partial_symbols)
1997 (objfile::find_last_source_symtab)
1998 (objfile::forget_cached_source_info)
1999 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2000 (objfile::print_stats, objfile::dump)
2001 (objfile::expand_symtabs_for_function)
2002 (objfile::expand_all_symtabs)
2003 (objfile::expand_symtabs_with_fullname)
2004 (objfile::map_matching_symbols)
2005 (objfile::expand_symtabs_matching)
2006 (objfile::find_pc_sect_compunit_symtab)
2007 (objfile::map_symbol_filenames)
2008 (objfile::find_compunit_symtab_by_address)
2009 (objfile::lookup_global_symbol_language, debug_sym_fns)
2010 (install_symfile_debug_logging): Update.
2011 * objfiles.h (struct objfile) <qf>: New member.
2012 * mipsread.c (ecoff_sym_fns): Update.
2013 * machoread.c (macho_sym_fns): Update.
2014 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2016 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2017 * dbxread.c (aout_sym_fns): Update.
2018 * coffread.c (coff_sym_fns): Update.
2020 2021-03-20 Tom Tromey <tom@tromey.com>
2022 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2023 (expand_symtabs_file_matcher_ftype)
2024 (expand_symtabs_symbol_matcher_ftype)
2025 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2026 Move to quick-symbol.h.
2027 * quick-symbol.h: New file.
2029 2021-03-20 Tom Tromey <tom@tromey.com>
2031 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2032 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2033 (basic_lookup_transparent_type_quick)
2034 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2035 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2037 * symmisc.c (print_objfile_statistics, dump_objfile)
2038 (maintenance_expand_symtabs): Update.
2039 * symfile.c (symbol_file_add_with_addrs)
2040 (expand_symtabs_matching, map_symbol_filenames): Update.
2041 * symfile-debug.c (objfile::has_partial_symbols)
2042 (objfile::find_last_source_symtab)
2043 (objfile::forget_cached_source_info)
2044 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2045 (objfile::print_stats, objfile::dump)
2046 (objfile::expand_symtabs_for_function)
2047 (objfile::expand_all_symtabs)
2048 (objfile::expand_symtabs_with_fullname)
2049 (objfile::map_matching_symbols)
2050 (objfile::expand_symtabs_matching)
2051 (objfile::find_pc_sect_compunit_symtab)
2052 (objfile::map_symbol_filenames)
2053 (objfile::find_compunit_symtab_by_address)
2054 (objfile::lookup_global_symbol_language): New methods.
2055 (debug_sym_quick_functions): Remove.
2056 (debug_sym_fns, install_symfile_debug_logging): Update.
2057 * source.c (forget_cached_source_info_for_objfile)
2058 (select_source_symtab): Update.
2059 * objfiles.h (struct objfile): Add methods corresponding to
2060 quick_symbol_functions.
2061 * objfiles.c (objfile::has_partial_symbols): Move to
2063 * linespec.c (iterate_over_all_matching_symtabs): Update.
2064 * cp-support.c (add_symbol_overload_list_qualified): Update.
2065 * ada-lang.c (add_nonlocal_symbols): Update.
2067 2021-03-20 Tom Tromey <tom@tromey.com>
2069 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2070 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2072 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2073 * psymtab.c (psym_has_symbols): Return bool.
2074 * objfiles.c (objfile::has_partial_symbols): Return bool.
2075 * dwarf2/read.c (dw2_has_symbols): Return bool.
2077 2021-03-20 Tom Tromey <tom@tromey.com>
2079 * symfile.c (read_symbols): Update.
2080 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2081 (objfile_has_partial_symbols): Don't declare.
2082 * objfiles.c (objfile::has_partial_symbols): Rename from
2083 objfile_has_partial_symbols.
2084 (objfile_has_symbols, have_partial_symbols): Update.
2085 * elfread.c (elf_symfile_read): Update.
2086 * dwarf2/read.c (dwarf2_has_info): Update.
2087 * coffread.c (coff_symfile_read): Update.
2089 2021-03-20 Tom Tromey <tom@tromey.com>
2091 * coffread.c: Include dwarf2/public.h.
2092 * dwarf2/frame.c: Include dwarf2/public.h.
2093 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2094 * dwarf2/public.h: New file.
2095 * dwarf2/read.c: Include dwarf2/public.h.
2096 * elfread.c: Include dwarf2/public.h.
2097 * machoread.c: Include dwarf2/public.h.
2098 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2099 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2100 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2101 * xcoffread.c: Include dwarf2/public.h.
2103 2021-03-20 Tom Tromey <tom@tromey.com>
2105 * symfile.h (enum dwarf2_section_enum)
2106 (dwarf2_get_section_info): Move to dwarf2/read.h.
2107 * dwarf2/read.h (enum dwarf2_section_enum)
2108 (dwarf2_get_section_info): Move from symfile.h.
2110 2021-03-19 Pedro Alves <pedro@palves.net>
2112 * thread.c (any_thread_of_inferior): Check if there's a selected
2113 thread before calling inferior_thread().
2115 2021-03-18 Tom Tromey <tromey@adacore.com>
2117 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2119 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2120 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2122 2021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2124 * python/py-param.c (get_set_value): Update header comment.
2126 2021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2128 * infrun.c (check_multi_target_resumption): Remove argument to
2129 all_non_exited_inferiors.
2131 2021-03-16 Christian Biesinger <cbiesinger@google.com>
2133 * windows-nat.c (windows_init_thread_list): Add message to
2136 2021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2138 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2139 well as PyLong_Check for Python 2.
2141 2021-03-15 Tom Tromey <tromey@adacore.com>
2144 * rust-exp.y (maker_map): Use gdb::hash_enum.
2145 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2147 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2149 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2152 2021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2154 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2155 parameter, adjust caller.
2157 2021-03-15 Tom Tromey <tromey@adacore.com>
2159 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2161 2021-03-15 Tom Tromey <tromey@adacore.com>
2163 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2164 ada_ensure_varsize_limit.
2166 2021-03-15 Tom Tromey <tromey@adacore.com>
2168 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2170 * ada-exp.y (maybe_overload): New function.
2171 (ada_wrap_overload): New function.
2172 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2173 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2174 (or_else_exp, xor_exp, primary): Update.
2176 2021-03-15 Tom Tromey <tromey@adacore.com>
2179 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2180 call for tagged type.
2182 2021-03-15 Tom Tromey <tromey@adacore.com>
2184 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2187 2021-03-15 Tom Tromey <tromey@adacore.com>
2189 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2191 (ada_assign_operation::evaluate): Update.
2192 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2195 2021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2197 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2199 2021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2201 * python/python.c (gdbpy_source_objfile_script): Use
2202 make_scoped_restore to restore gdbpy_current_objfile.
2203 (gdbpy_execute_objfile_script): Likewise.
2205 2021-03-14 Tom Tromey <tom@tromey.com>
2207 * dwarf2/read.c (read_attribute_value): Use cu_header
2210 2021-03-14 Tom Tromey <tom@tromey.com>
2212 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2213 (peek_die_abbrev): Use reader.abfd.
2215 2021-03-14 Tom Tromey <tom@tromey.com>
2217 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2220 2021-03-13 Tom Tromey <tom@tromey.com>
2222 * dwarf2/read.c (struct partial_die_info): Update.
2223 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2224 (load_partial_dies, partial_die_info::partial_die_info): Update.
2225 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2227 2021-03-13 Tom Tromey <tom@tromey.com>
2229 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2231 2021-03-12 Christian Biesinger <cbiesinger@google.com>
2234 * cp-support.c: Use scoped_segv_handler_restore.
2235 * event-top.c (thread_local_segv_handler): Made static.
2236 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2238 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2240 * event-top.h (class scoped_segv_handler_restore): New class.
2241 (thread_local_segv_handler): Removed.
2243 2021-03-10 Tom Tromey <tromey@adacore.com>
2245 * parser-defs.h (parser_state): Change completion to bool.
2246 <parse_completion>: Likewise.
2247 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2248 (ada_resolve_variable, ada_resolve_function): Update.
2249 * ada-lang.c (ada_find_operator_symbol): Change
2250 parse_completion to bool.
2251 (ada_resolve_funcall, ada_resolve_variable)
2252 (ada_resolve_function): Likewise.
2254 2021-03-09 Tom Tromey <tromey@adacore.com>
2256 * eval.c (operation::evaluate_funcall): Use function formal
2257 parameter types when evaluating.
2259 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2261 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2262 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2263 and owner to m_owner.
2265 2021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2267 * f-exp.h (eval_op_f_loc): Declare.
2268 (expr::fortran_loc_operation): New typedef.
2269 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2271 (f77_keywords): Add LOC keyword.
2272 * f-lang.c (eval_op_f_loc): New function.
2273 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2275 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2277 * f-exp.h (eval_op_f_array_shape): Declare.
2278 (fortran_array_shape_operation): New type.
2279 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2281 (f77_keywords): Add "shape" keyword.
2282 * f-lang.c (fortran_array_shape): New function.
2283 (eval_op_f_array_shape): New function.
2284 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2286 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2288 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2290 (expr::fortran_array_size_1arg): New type.
2291 (expr::fortran_array_size_2arg): Likewise.
2292 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2293 UNOP_OR_BINOP_INTRINSIC.
2294 (f77_keywords): Add "size" keyword.
2295 * f-lang.c (fortran_array_size): New function.
2296 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2297 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2299 2021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2301 * f-exp.h (eval_op_f_rank): Declare.
2302 (expr::fortran_rank_operation): New typedef.
2303 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2305 (f77_keywords): Add "rank" keyword.
2306 * f-lang.c (eval_op_f_rank): New function.
2307 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2309 2021-03-08 Tom Tromey <tom@tromey.com>
2311 * printcmd.c (set_command): Remove null check.
2312 * value.c (init_if_undefined_command): Remove null check.
2314 2021-03-08 Tom Tromey <tom@tromey.com>
2316 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2318 * p-exp.y (variable): Update.
2319 * go-exp.y (variable): Update.
2320 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2321 Remove overload for objfile.
2322 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2324 (check_objfile): Likewise.
2325 (dump_for_expression): Likewise. Remove overload for objfile.
2326 (class var_msym_value_operation): Use bound_minimal_symbol.
2327 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2329 (var_msym_value_operation::evaluate_for_address)
2330 (var_msym_value_operation::evaluate_for_sizeof)
2331 (var_msym_value_operation::evaluate_for_cast): Update.
2332 * d-exp.y (PrimaryExpression): Update.
2333 * c-exp.y (variable): Update.
2334 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2335 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2337 * ada-exp.y (write_var_or_type): Update.
2339 2021-03-08 Tom Tromey <tom@tromey.com>
2341 * parser-defs.h (exp_uses_objfile): Return bool.
2342 * parse.c (exp_uses_objfile): Return bool.
2344 2021-03-08 Tom Tromey <tom@tromey.com>
2346 * value.h (eval_skip_value): Don't declare.
2347 * opencl-lang.c (eval_opencl_assign): Update.
2348 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2349 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2350 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2351 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2352 * expop.h (typeof_operation::evaluate)
2353 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2354 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2355 (cxx_cast_operation::evaluate): Update.
2356 * eval.c (eval_skip_value): Remove.
2357 (eval_op_scope, eval_op_var_entry_value)
2358 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2359 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2360 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2361 (eval_op_binary, eval_op_subscript, eval_op_equal)
2362 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2363 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2364 (eval_op_complement, eval_op_lognot, eval_op_ind)
2365 (eval_op_memval, eval_op_preinc, eval_op_predec)
2366 (eval_op_postinc, eval_op_postdec, eval_op_type)
2367 (eval_binop_assign_modify, eval_op_objc_msgcall)
2368 (eval_multi_subscript, logical_and_operation::evaluate)
2369 (logical_or_operation::evaluate, array_operation::evaluate)
2370 (operation::evaluate_for_cast)
2371 (var_msym_value_operation::evaluate_for_cast)
2372 (var_value_operation::evaluate_for_cast): Update.
2373 * c-lang.c (c_string_operation::evaluate): Update.
2374 * c-exp.h (objc_nsstring_operation::evaluate)
2375 (objc_selector_operation::evaluate): Update.
2376 * ada-lang.c (ada_assign_operation::evaluate)
2377 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2378 (ada_atr_size): Update.
2380 2021-03-08 Tom Tromey <tom@tromey.com>
2382 * eval.c: Merge "namespace" scopes.
2384 2021-03-08 Tom Tromey <tom@tromey.com>
2386 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2388 * parse.c (expr_builder::expr_builder, expr_builder::release):
2391 2021-03-08 Tom Tromey <tom@tromey.com>
2393 * parse.c (expression::expression, expression::~expression):
2395 * expression.h (struct expression): Inline constructor. Remove
2398 2021-03-08 Tom Tromey <tom@tromey.com>
2400 * std-operator.def (BINOP_END): Remove.
2401 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2402 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2403 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2404 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2405 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2408 2021-03-08 Tom Tromey <tom@tromey.com>
2410 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2412 2021-03-08 Tom Tromey <tom@tromey.com>
2414 * std-operator.def (OP_EXTENDED0): Remove.
2416 2021-03-08 Tom Tromey <tom@tromey.com>
2418 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2419 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2422 2021-03-08 Tom Tromey <tom@tromey.com>
2424 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2425 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2427 2021-03-08 Tom Tromey <tom@tromey.com>
2429 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2430 * ada-lang.c (ada_binop_minmax): Update.
2431 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2432 Use BINOP_MIN and BINOP_MAX.
2434 2021-03-08 Tom Tromey <tom@tromey.com>
2436 * value.h (evaluate_subexp_with_coercion): Don't declare.
2437 * parse.c (exp_descriptor_standard): Remove.
2438 (expr_builder::expr_builder, expr_builder::release): Update.
2439 (expression::expression): Remove size_t parameter.
2440 (expression::~expression): Simplify.
2441 (expression::resize): Remove.
2442 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2443 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2444 (write_exp_elt_longcst, write_exp_elt_floatcst)
2445 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2446 (write_exp_string_vector, write_exp_bitstring): Remove.
2447 * p-lang.h (class pascal_language) <opcode_print_table,
2448 op_print_tab>: Remove.
2449 * p-lang.c (pascal_language::op_print_tab): Remove.
2450 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2452 * objc-lang.c (objc_op_print_tab): Remove.
2453 (class objc_language) <opcode_print_table>: Remove.
2454 * m2-lang.h (class m2_language) <opcode_print_table,
2455 op_print_tab>: Remove.
2456 * m2-lang.c (m2_language::op_print_tab): Remove.
2457 * language.h (struct language_defn) <post_parser, expression_ops,
2458 opcode_print_table>: Remove.
2459 * language.c (language_defn::expression_ops)
2460 (auto_or_unknown_language::opcode_print_table): Remove.
2461 * go-lang.h (class go_language) <opcode_print_table,
2462 op_print_tab>: Remove.
2463 * go-lang.c (go_language::op_print_tab): Remove.
2464 * f-lang.h (class f_language) <opcode_print_table>: Remove
2465 <op_print_tab>: Remove.
2466 * f-lang.c (f_language::op_print_tab): Remove.
2467 * expression.h (union exp_element): Remove.
2468 (struct expression): Remove size_t parameter from constructor.
2470 <first_opcode>: Update.
2471 <nelts, elts>: Remove.
2472 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2473 (evaluate_subexp_standard, print_expression, op_string)
2474 (dump_raw_expression): Don't declare.
2475 * expprint.c (print_expression, print_subexp)
2476 (print_subexp_funcall, print_subexp_standard, op_string)
2477 (dump_raw_expression, dump_subexp, dump_subexp_body)
2478 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2479 (dump_prefix_expression): Update.
2480 * eval.c (evaluate_subexp): Remove.
2481 (evaluate_expression, evaluate_type): Update.
2482 (evaluate_subexpression_type): Remove.
2483 (fetch_subexp_value): Remove "pc" parameter. Update.
2484 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2485 (evaluate_subexp_standard, evaluate_subexp_for_address)
2486 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2487 (evaluate_subexp_for_cast): Remove.
2488 (parse_and_eval_type): Update.
2489 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2490 * d-lang.c (d_op_print_tab): Remove.
2491 (class d_language) <opcode_print_table>: Remove.
2492 * c-lang.h (c_op_print_tab): Don't declare.
2493 * c-lang.c (c_op_print_tab): Remove.
2494 (class c_language, class cplus_language, class asm_language, class
2495 minimal_language) <opcode_print_table>: Remove.
2496 * breakpoint.c (update_watchpoint, watchpoint_check)
2497 (watchpoint_exp_is_const, watch_command_1): Update.
2498 * ax-gdb.h (union exp_element): Don't declare.
2499 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2500 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2501 (gen_expr_binop_rest): Remove.
2502 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2503 * ada-lang.c (ada_op_print_tab): Remove.
2504 (class ada_language) <post_parser, opcode_print_table>: Remove.
2506 2021-03-08 Tom Tromey <tom@tromey.com>
2508 * go-lang.c (go_language::expression_ops): Don't declare.
2509 * go-lang.h (class go_language) <expression_ops>: Remove.
2510 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2512 (class opencl_language) <expression_ops>: Remove.
2513 * d-lang.c (class d_language) <expression_ops>: Remove.
2514 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2515 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2516 (class c_language, class cplus_language, class asm_language)
2517 (class minimal_language) <expression_ops>: Remove.
2519 2021-03-08 Tom Tromey <tom@tromey.com>
2521 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2522 (evaluate_subexp_type, assign_aggregate)
2523 (aggregate_assign_positional, aggregate_assign_from_choices)
2524 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2525 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2526 (ada_operator_check, ada_forward_operator_length)
2527 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2529 (post_parser): Update.
2530 (class ada_language) <expresssion_ops>: Remove.
2532 2021-03-08 Tom Tromey <tom@tromey.com>
2534 * m2-lang.h (class m2_language) <expresssion_ops,
2535 exp_descriptor_modula2>: Remove.
2536 * m2-lang.c (evaluate_subexp_modula2)
2537 (m2_language::exp_descriptor_modula2): Remove.
2539 2021-03-08 Tom Tromey <tom@tromey.com>
2541 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2542 <exp_descriptor_tab>: Remove.
2543 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2544 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2545 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2546 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2549 2021-03-08 Tom Tromey <tom@tromey.com>
2551 * rust-lang.h (class rust_language) <expression_ops,
2552 exp_descriptor_tab>: Remove.
2553 * rust-lang.c (rust_evaluate_funcall): Remove.
2554 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2556 (rust_evaluate_subexp): Remove.
2557 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2558 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2559 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2561 2021-03-08 Tom Tromey <tom@tromey.com>
2563 * ada-exp.y: Create operations.
2564 (empty_stoken): Remove.
2565 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2566 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2567 (components): New global.
2568 (push_component, choice_component, pop_component, pop_components):
2570 (associations): New global
2571 (push_association, pop_association, pop_associations): New
2573 (ada_parse): Update.
2574 (write_var_from_sym, write_int): Create operations.
2575 (write_exp_op_with_string): Remove.
2576 (write_object_renaming, write_selectors, write_ambiguous_var)
2577 (write_var_or_type, write_name_assoc): Create operations.
2578 * ada-lang.h (ada_index_type): Declare.
2579 * ada-lang.c (ada_index_type): No longer static.
2581 2021-03-08 Tom Tromey <tom@tromey.com>
2583 * f-exp.y: Create operations.
2584 (f_language::parser): Update.
2586 2021-03-08 Tom Tromey <tom@tromey.com>
2588 * m2-exp.y: Create operations.
2589 (m2_language::parser): Update.
2591 2021-03-08 Tom Tromey <tom@tromey.com>
2593 * p-exp.y: Create operations.
2594 (pascal_language::parser): Update.
2596 2021-03-08 Tom Tromey <tom@tromey.com>
2598 * d-exp.y: Create operations.
2601 2021-03-08 Tom Tromey <tom@tromey.com>
2603 * go-exp.y: Create operations.
2604 (go_language::parser): Update.
2606 2021-03-08 Tom Tromey <tom@tromey.com>
2608 * objc-lang.c (end_msglist): Create operations.
2609 * c-exp.y: Change parser to create operations.
2610 (write_destructor_name): Remove.
2613 2021-03-08 Tom Tromey <tom@tromey.com>
2615 * rust-exp.y: Create operations.
2616 (rust_parser::convert_params_to_expression): Change return type.
2617 (binop_maker_ftype): New typedef.
2618 (maker_map): New global.
2619 (rust_parser::convert_ast_to_expression): Change return type.
2620 (rust_language::parser): Update.
2621 (_initialize_rust_exp): Initialize maker_map.
2623 2021-03-08 Tom Tromey <tom@tromey.com>
2625 * stap-probe.c (binop_maker_ftype): New typedef.
2626 (stap_maker_map): New global.
2627 (stap_make_binop): New function.
2628 (stap_parse_register_operand): Return operation_up.
2629 (stap_parse_single_operand, stap_parse_argument_conditionally)
2630 (stap_parse_argument_1): Likewise.
2631 (stap_parse_argument): Create operations.
2632 (stap_probe::parse_arguments): Update.
2633 (_initialize_stap_probe): Initialize stap_maker_map.
2634 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2636 * i386-tdep.h (i386_stap_parse_special_token): Change return
2638 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2639 (i386_stap_parse_special_token_three_arg_disp)
2640 (i386_stap_parse_special_token): Change return type.
2641 * gdbarch.sh (stap_parse_special_token): Change return type.
2642 * gdbarch.c: Rebuild.
2643 * gdbarch.h: Rebuild.
2644 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2646 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2649 2021-03-08 Tom Tromey <tom@tromey.com>
2651 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2652 * gdbarch.h: Rebuild.
2653 * gdbarch.c: Rebuild.
2654 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2655 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2657 (amd64_dtrace_parse_probe_argument): Update.
2659 2021-03-08 Tom Tromey <tom@tromey.com>
2661 * parser-defs.h (struct parser_state) <push, push_new,
2662 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2663 wrap2>: New methods.
2664 <m_operations>: New member.
2665 * parse.c (parser_state::push_c_string)
2666 (parser_state::push_symbol, parser_state::push_dollar): New
2669 2021-03-08 Tom Tromey <tom@tromey.com>
2671 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2673 (struct parser_state) <mark_struct_expression>: New method.
2674 * parse.c (parser_state::mark_struct_expression): Update assert.
2675 (parser_state::mark_struct_expression): New method.
2676 (parser_state::mark_completion_tag): Update assert.
2677 (parse_expression_for_completion): Handle expout_last_op.
2679 2021-03-08 Tom Tromey <tom@tromey.com>
2681 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2683 * value.h (fetch_subexp_value): Add "op" parameter.
2684 * value.c (init_if_undefined_command): Update.
2685 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2686 * stap-probe.c (stap_probe::compile_to_ax): Update.
2687 * printcmd.c (set_command): Update.
2688 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2690 * parser-defs.h (struct expr_builder) <set_operation>: New
2692 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2693 * expression.h (struct expression) <first_opcode>: Update.
2695 * expprint.c (dump_raw_expression, dump_prefix_expression):
2697 * expop.h (class var_value_operation) <get_symbol>: New method.
2698 (class register_operation) <get_name>: New method.
2699 (class equal_operation): No longer a typedef, now a subclass.
2700 (class unop_memval_operation) <get_type>: New method.
2701 (class assign_operation) <get_lhs>: New method.
2702 (class unop_cast_operation) <get_type>: New method.
2703 * eval.c (evaluate_expression, evaluate_type)
2704 (evaluate_subexpression_type): Update.
2705 (fetch_subexp_value): Add "op" parameter.
2706 (parse_and_eval_type): Update.
2707 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2708 * breakpoint.c (update_watchpoint, watchpoint_check)
2709 (watchpoint_exp_is_const, watch_command_1): Update.
2710 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2713 2021-03-08 Tom Tromey <tom@tromey.com>
2715 * ada-lang.c (ada_value_binop): Do not use op_string.
2717 2021-03-08 Tom Tromey <tom@tromey.com>
2719 * expprint.c (dump_for_expression): New overload.
2720 * expop.h (check_objfile, dump_for_expression): Declare new
2722 * ada-lang.c (check_objfile): New overload.
2723 (assign_component, ada_aggregate_component::uses_objfile)
2724 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2725 (ada_aggregate_component::assign_aggregate)
2726 (ada_positional_component::uses_objfile)
2727 (ada_positional_component::dump, ada_positional_component::assign)
2728 (ada_discrete_range_association::uses_objfile)
2729 (ada_discrete_range_association::dump)
2730 (ada_discrete_range_association::assign)
2731 (ada_name_association::uses_objfile, ada_name_association::dump)
2732 (ada_name_association::assign)
2733 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2734 (ada_choices_component::assign)
2735 (ada_others_component::uses_objfile, ada_others_component::dump)
2736 (ada_others_component::assign, ada_assign_operation::evaluate):
2738 * ada-exp.h (ada_string_operation) <get_name>: New method.
2739 (class ada_assign_operation): New.
2740 (class ada_component): New.
2741 (ada_component_up): New typedef.
2742 (class ada_aggregate_operation, class ada_aggregate_component)
2743 (class ada_positional_component, class ada_others_component)
2744 (class ada_association): New.
2745 (ada_association_up): New typedef.
2746 (class ada_choices_component)
2747 (class ada_discrete_range_association)
2748 (class ada_name_association): New.
2750 2021-03-08 Tom Tromey <tom@tromey.com>
2752 * ada-lang.c (ada_var_value_operation::resolve)
2753 (ada_funcall_operation::resolve)
2754 (ada_ternop_slice_operation::resolve): New methods.
2755 * ada-exp.h (struct ada_resolvable): New.
2756 (class ada_var_value_operation): Derive from ada_resolvable.
2757 <get_block, resolve>: New methods.
2758 (class ada_funcall_operation): Derive from ada_resolvable.
2759 <resolve>: New method.
2760 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2761 <resolve>: New method.
2763 2021-03-08 Tom Tromey <tom@tromey.com>
2765 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2766 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2768 (class ada_funcall_operation): New.
2770 2021-03-08 Tom Tromey <tom@tromey.com>
2772 * ada-lang.c (ada_structop_operation::evaluate): New method.
2773 * ada-exp.h (class ada_structop_operation): New.
2775 2021-03-08 Tom Tromey <tom@tromey.com>
2777 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2778 * ada-exp.h (class ada_unop_ind_operation): New.
2780 2021-03-08 Tom Tromey <tom@tromey.com>
2782 * ada-lang.c (ada_binop_exp): No longer static.
2783 * ada-exp.h (ada_binop_exp_operation): New typedef.
2785 2021-03-08 Tom Tromey <tom@tromey.com>
2787 * ada-lang.c (ada_val_atr): No longer static.
2788 (ada_atr_val_operation::evaluate): New method.
2789 * ada-exp.h (class ada_atr_val_operation): New.
2791 2021-03-08 Tom Tromey <tom@tromey.com>
2793 * ada-lang.c (ada_pos_atr): No longer static.
2794 * ada-exp.h (ada_pos_operation): New typedef.
2796 2021-03-08 Tom Tromey <tom@tromey.com>
2798 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2800 (ada_evaluate_subexp): Use it.
2802 2021-03-08 Tom Tromey <tom@tromey.com>
2804 * ada-lang.c (ada_binop_minmax): No longer static.
2805 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2808 2021-03-08 Tom Tromey <tom@tromey.com>
2810 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2812 * ada-exp.h (class ada_var_msym_value_operation): New.
2814 2021-03-08 Tom Tromey <tom@tromey.com>
2816 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2817 (ada_var_value_operation::evaluate): New methods.
2818 * ada-exp.h (class ada_var_value_operation): New.
2820 2021-03-08 Tom Tromey <tom@tromey.com>
2822 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2823 * ada-exp.h (class ada_unop_atr_operation): New.
2825 2021-03-08 Tom Tromey <tom@tromey.com>
2827 * ada-lang.c (ada_binop_in_bounds): No longer static.
2828 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2830 2021-03-08 Tom Tromey <tom@tromey.com>
2832 * ada-lang.c (ada_ternop_slice): No longer static.
2833 * ada-exp.h (class ada_ternop_slice_operation): New.
2835 2021-03-08 Tom Tromey <tom@tromey.com>
2837 * ada-exp.h (ada_bitwise_operation): New template class.
2838 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
2839 (ada_bitwise_xor_operation): New typedefs.
2841 2021-03-08 Tom Tromey <tom@tromey.com>
2843 * ada-lang.c (ada_equal_binop): No longer static.
2844 * ada-exp.h (class ada_binop_equal_operation): New.
2846 2021-03-08 Tom Tromey <tom@tromey.com>
2848 * ada-lang.c (ada_mult_binop): No longer static.
2849 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
2850 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
2852 2021-03-08 Tom Tromey <tom@tromey.com>
2854 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
2855 * ada-exp.h (class ada_binop_addsub_operation): New.
2857 2021-03-08 Tom Tromey <tom@tromey.com>
2859 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2860 (ada_resolve_variable): Declare.
2861 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
2862 (ada_resolve_variable): New functions.
2863 (resolve_subexp): Update.
2865 2021-03-08 Tom Tromey <tom@tromey.com>
2867 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
2869 * c-exp.h (class opencl_ternop_cond_operation): New.
2871 2021-03-08 Tom Tromey <tom@tromey.com>
2873 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
2875 * c-exp.h (class opencl_logical_binop_operation): New.
2877 2021-03-08 Tom Tromey <tom@tromey.com>
2879 * opencl-lang.c (opencl_structop_operation::evaluate): New
2881 * c-exp.h (class opencl_structop_operation): New.
2883 2021-03-08 Tom Tromey <tom@tromey.com>
2885 * opencl-lang.c (opencl_logical_not): No longer static. Change
2887 (evaluate_subexp_opencl): Update.
2888 * c-exp.h (opencl_notequal_operation): New typedef.
2890 2021-03-08 Tom Tromey <tom@tromey.com>
2892 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
2893 static. Change parameters.
2894 (eval_opencl_assign): No longer static. Add "op" parameter.
2895 (evaluate_subexp_opencl): Update.
2896 * c-exp.h (opencl_binop_operation): New template class.
2897 (opencl_assign_operation, opencl_equal_operation)
2898 (opencl_notequal_operation, opencl_less_operation)
2899 (opencl_gtr_operation, opencl_geq_operation)
2900 (opencl_leq_operation): New typedefs.
2902 2021-03-08 Tom Tromey <tom@tromey.com>
2904 * opencl-lang.c (opencl_value_cast): No longer static.
2905 * c-exp.h (opencl_cast_type_operation): New typedef.
2907 2021-03-08 Tom Tromey <tom@tromey.com>
2909 * f-exp.h (eval_op_f_allocated): Declare.
2910 (fortran_allocated_operation): New typedef.
2911 * f-lang.c (eval_op_f_allocated): No longer static.
2913 2021-03-08 Tom Tromey <tom@tromey.com>
2915 * f-lang.c (eval_op_f_associated): New functions.
2916 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
2919 2021-03-08 Tom Tromey <tom@tromey.com>
2921 * f-lang.c (fortran_bound_1arg::evaluate)
2922 (fortran_bound_2arg::evaluate): New methods.
2923 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
2926 2021-03-08 Tom Tromey <tom@tromey.com>
2928 * expop.h (class unop_addr_operation) <get_expression>: New
2930 * f-lang.c (fortran_undetermined::value_subarray)
2931 (fortran_undetermined::evaluate): New methods.
2932 (fortran_prepare_argument): New overload.
2933 * f-exp.h (class fortran_range_operation)
2934 (class fortran_undetermined): New classes.
2936 2021-03-08 Tom Tromey <tom@tromey.com>
2938 * rust-lang.c (rust_structop::evaluate_funcall): New method.
2939 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
2942 2021-03-08 Tom Tromey <tom@tromey.com>
2944 * expression.h (class operation) <evaluate_funcall>: New methods.
2945 * expop.h (class scope_operation) <evaluate_funcall>: New method.
2946 (class var_value_operation) <evaluate_funcall>: New method.
2947 (class structop_base_operation) <evaluate_funcall>: New method.
2948 (class var_msym_value_operation) <evaluate_funcall>: New method.
2949 (class structop_member_base): New class.
2950 (class structop_member_operation): Derive from
2951 structop_member_base.
2952 (class structop_mptr_operation): Derive from
2953 structop_member_base.
2954 (class funcall_operation): New class.
2955 * eval.c (operation::evaluate_funcall)
2956 (var_value_operation::evaluate_funcall)
2957 (scope_operation::evaluate_funcall)
2958 (structop_member_base::evaluate_funcall)
2959 (structop_base_operation::evaluate_funcall): New methods.
2961 2021-03-08 Tom Tromey <tom@tromey.com>
2963 * expop.h (class array_operation): New.
2964 * eval.c (array_operation::evaluate_struct_tuple)
2965 (array_operation::evaluate): New methods.
2967 2021-03-08 Tom Tromey <tom@tromey.com>
2969 * expop.h (class adl_func_operation): New.
2970 * eval.c (adl_func_operation::evaluate): New method.
2972 2021-03-08 Tom Tromey <tom@tromey.com>
2974 * ada-lang.c (ada_unop_in_range): No longer static.
2975 * ada-exp.h (class ada_unop_range_operation): New.
2977 2021-03-08 Tom Tromey <tom@tromey.com>
2979 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
2981 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
2982 (ada_atr_size_operation, ada_abs_operation): New typedefs.
2984 2021-03-08 Tom Tromey <tom@tromey.com>
2986 * expop.h (class logical_and_operation)
2987 (class logical_or_operation): New.
2988 * eval.c (logical_and_operation::evaluate)
2989 (logical_or_operation::evaluate): New methods.
2990 * ax-gdb.c (logical_and_operation::do_generate_ax)
2991 (logical_or_operation::do_generate_ax): New methods.
2993 2021-03-08 Tom Tromey <tom@tromey.com>
2995 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
2997 * m2-exp.h: New file.
2999 2021-03-08 Tom Tromey <tom@tromey.com>
3001 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3002 * rust-exp.h (class rust_aggregate_operation): New.
3004 2021-03-08 Tom Tromey <tom@tromey.com>
3006 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3008 * rust-exp.h (class rust_struct_anon): New.
3009 (class rust_structop): New.
3011 2021-03-08 Tom Tromey <tom@tromey.com>
3013 * rust-lang.c (rust_range): No longer static.
3014 * rust-exp.h (class rust_range_operation): New.
3016 2021-03-08 Tom Tromey <tom@tromey.com>
3018 * rust-lang.c (rust_subscript): No longer static.
3019 * rust-exp.h (class rust_subscript_operation): New.
3021 2021-03-08 Tom Tromey <tom@tromey.com>
3023 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3025 (rust_evaluate_subexp): Update.
3026 * rust-exp.h (class rust_unop_ind_operation): New.
3028 2021-03-08 Tom Tromey <tom@tromey.com>
3030 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3031 longer static. Add "opcode" parameter.
3032 (rust_evaluate_subexp): Update.
3033 * rust-exp.h: New file.
3035 2021-03-08 Tom Tromey <tom@tromey.com>
3037 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3038 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3039 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3040 (evaluate_subexp_f): Update.
3041 * f-exp.h: New file.
3043 2021-03-08 Tom Tromey <tom@tromey.com>
3045 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3046 * ada-exp.h (class ada_ternop_range_operation): New.
3048 2021-03-08 Tom Tromey <tom@tromey.com>
3050 * ada-lang.c (ada_qual_operation::evaluate): New method.
3051 * ada-exp.h (class ada_qual_operation): New.
3053 2021-03-08 Tom Tromey <tom@tromey.com>
3055 * ada-lang.c (ada_string_operation::evaluate): New method.
3056 * ada-exp.h (class ada_string_operation): New.
3058 2021-03-08 Tom Tromey <tom@tromey.com>
3060 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3061 * ada-exp.h: New file.
3063 2021-03-08 Tom Tromey <tom@tromey.com>
3065 * expop.h (class multi_subscript_operation): New.
3066 * eval.c (multi_subscript_operation::evaluate): New method.
3068 2021-03-08 Tom Tromey <tom@tromey.com>
3070 * eval.c (objc_msgcall_operation::evaluate): New method.
3071 * c-exp.h (class objc_msgcall_operation): New.
3073 2021-03-08 Tom Tromey <tom@tromey.com>
3075 * expop.h (class var_value_operation): New.
3076 * eval.c (var_value_operation::evaluate)
3077 (var_value_operation::evaluate_for_address)
3078 (var_value_operation::evaluate_with_coercion)
3079 (var_value_operation::evaluate_for_sizeof)
3080 (var_value_operation::evaluate_for_cast): New methods.
3081 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3083 2021-03-08 Tom Tromey <tom@tromey.com>
3085 * expop.h (cxx_cast_ftype): New typedef.
3086 (cxx_cast_operation): New template.
3087 (dynamic_cast_operation, reinterpret_cast_operation): New
3090 2021-03-08 Tom Tromey <tom@tromey.com>
3092 * expop.h (class unop_cast_type_operation): New.
3093 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3096 2021-03-08 Tom Tromey <tom@tromey.com>
3098 * expop.h (class unop_cast_operation): New.
3099 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3101 2021-03-08 Tom Tromey <tom@tromey.com>
3103 * expop.h (class assign_modify_operation): New.
3104 * eval.c (eval_binop_assign_modify): No longer static.
3105 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3107 2021-03-08 Tom Tromey <tom@tromey.com>
3109 * expop.h (class assign_operation): New.
3110 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3112 2021-03-08 Tom Tromey <tom@tromey.com>
3114 * expop.h (class type_instance_operation): New.
3115 * eval.c (type_instance_operation::evaluate): New method.
3117 2021-03-08 Tom Tromey <tom@tromey.com>
3119 * expop.h (class op_this_operation): New.
3120 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3122 2021-03-08 Tom Tromey <tom@tromey.com>
3124 * expop.h (class unop_memval_operation)
3125 (class unop_memval_type_operation): New.
3126 * eval.c (eval_op_memval): No longer static.
3127 (unop_memval_operation::evaluate_for_address)
3128 (unop_memval_type_operation::evaluate_for_address)
3129 (unop_memval_operation::evaluate_for_sizeof)
3130 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3131 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3132 (unop_memval_type_operation::do_generate_ax): New methods.
3134 2021-03-08 Tom Tromey <tom@tromey.com>
3136 * expop.h (class unop_alignof_operation): New.
3137 * eval.c (eval_op_alignof): No longer static.
3139 2021-03-08 Tom Tromey <tom@tromey.com>
3141 * expop.h (class unop_sizeof_operation): New.
3142 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3144 2021-03-08 Tom Tromey <tom@tromey.com>
3146 * expop.h (class unop_addr_operation): New.
3147 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3149 2021-03-08 Tom Tromey <tom@tromey.com>
3151 * expop.h (class typeid_operation): New.
3153 2021-03-08 Tom Tromey <tom@tromey.com>
3155 * expop.h (class decltype_operation): New.
3157 2021-03-08 Tom Tromey <tom@tromey.com>
3159 * expop.h (class typeof_operation): New.
3161 2021-03-08 Tom Tromey <tom@tromey.com>
3163 * expop.h (class type_operation): New.
3164 * eval.c (eval_op_type): No longer static.
3166 2021-03-08 Tom Tromey <tom@tromey.com>
3168 * expop.h (class unop_ind_base_operation)
3169 (class unop_ind_operation): New.
3170 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3171 (unop_ind_base_operation::evaluate_for_address)
3172 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3173 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3175 2021-03-08 Tom Tromey <tom@tromey.com>
3177 * expop.h (unop_incr_operation): New template.
3178 (preinc_operation, predec_operation, postinc_operation)
3179 (postdec_operation): New typedefs.
3180 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3181 (eval_op_postdec): No longer static.
3183 2021-03-08 Tom Tromey <tom@tromey.com>
3185 * expop.h (unary_ftype): New typedef.
3186 (unop_operation, usual_ax_binop_operation): New templates.
3187 (unary_plus_operation, unary_neg_operation)
3188 (unary_complement_operation, unary_logical_not_operation): New
3190 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3191 (eval_op_lognot): No longer static.
3192 * ax-gdb.c (gen_expr_unop): New function.
3194 2021-03-08 Tom Tromey <tom@tromey.com>
3196 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3198 2021-03-08 Tom Tromey <tom@tromey.com>
3200 * expop.h (class repeat_operation): New.
3201 * eval.c (eval_op_repeat): No longer static. Remove "op"
3203 (evaluate_subexp_standard): Update.
3204 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3206 2021-03-08 Tom Tromey <tom@tromey.com>
3208 * expop.h (class comparison_operation): New.
3209 (equal_operation, notequal_operation, less_operation)
3210 (gtr_operation, geq_operation, leq_operation): New typedefs.
3211 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3212 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3214 2021-03-08 Tom Tromey <tom@tromey.com>
3216 * expop.h (class subscript_operation): New.
3217 * eval.c (eval_op_subscript): No longer static.
3219 2021-03-08 Tom Tromey <tom@tromey.com>
3221 * expop.h (class binop_operation, class usual_ax_binop_operation):
3223 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3224 (div_operation, rem_operation, lsh_operation, rsh_operation)
3225 (bitwise_and_operation, bitwise_ior_operation)
3226 (bitwise_xor_operation): New typedefs.
3227 * eval.c (eval_op_binary): No longer static.
3229 2021-03-08 Tom Tromey <tom@tromey.com>
3231 * expop.h (class sub_operation): New.
3232 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3233 (evaluate_subexp_standard): Update.
3235 2021-03-08 Tom Tromey <tom@tromey.com>
3237 * expop.h (class add_operation): New.
3238 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3239 (evaluate_subexp_standard): Update.
3241 2021-03-08 Tom Tromey <tom@tromey.com>
3243 * expop.h (class concat_operation): New.
3244 * eval.c (eval_op_concat): No longer static. Remove "op"
3246 (evaluate_subexp_standard): Update.
3248 2021-03-08 Tom Tromey <tom@tromey.com>
3250 * expop.h (class structop_member_operation)
3251 (class structop_mptr_operation): New.
3252 * eval.c (eval_op_member): No longer static.
3254 2021-03-08 Tom Tromey <tom@tromey.com>
3256 * expop.h (class structop_ptr_operation): New.
3257 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3260 2021-03-08 Tom Tromey <tom@tromey.com>
3262 * expop.h (class structop_base_operation)
3263 (class structop_operation): New.
3264 * eval.c (eval_op_structop_struct): No longer static.
3266 2021-03-08 Tom Tromey <tom@tromey.com>
3268 * expop.h (class complex_operation): New.
3270 2021-03-08 Tom Tromey <tom@tromey.com>
3272 * eval.c (eval_op_objc_selector): No longer static.
3273 * c-exp.h (class objc_selector_operation): New.
3275 2021-03-08 Tom Tromey <tom@tromey.com>
3277 * eval.c: Include c-exp.h.
3278 * c-exp.h (class objc_nsstring_operation): New.
3280 2021-03-08 Tom Tromey <tom@tromey.com>
3282 * c-lang.c (c_string_operation::evaluate): New method.
3283 * c-exp.h: New file.
3285 2021-03-08 Tom Tromey <tom@tromey.com>
3287 * expop.h (class ternop_cond_operation): New.
3288 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3290 2021-03-08 Tom Tromey <tom@tromey.com>
3292 * expop.h (class ternop_slice_operation): New.
3293 * eval.c (eval_op_ternop): No longer static.
3295 2021-03-08 Tom Tromey <tom@tromey.com>
3297 * expop.h (class string_operation): New.
3298 * eval.c (eval_op_string): No longer static.
3300 2021-03-08 Tom Tromey <tom@tromey.com>
3302 * expop.h (class internalvar_operation): New.
3303 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3305 2021-03-08 Tom Tromey <tom@tromey.com>
3307 * expop.h (class bool_operation): New.
3309 2021-03-08 Tom Tromey <tom@tromey.com>
3311 * expop.h (class register_operation): New.
3312 * eval.c (eval_op_register): No longer static.
3313 * ax-gdb.c (register_operation::do_generate_ax): New method.
3315 2021-03-08 Tom Tromey <tom@tromey.com>
3317 * expop.h (class last_operation): New.
3319 2021-03-08 Tom Tromey <tom@tromey.com>
3321 * expop.h (class func_static_var_operation): New.
3322 * eval.c (eval_op_func_static_var): No longer static.
3324 2021-03-08 Tom Tromey <tom@tromey.com>
3326 * expop.h (class var_entry_value_operation): New.
3327 * eval.c (eval_op_var_entry_value): No longer static.
3329 2021-03-08 Tom Tromey <tom@tromey.com>
3331 * expression.h (class operation) <set_outermost>: New method.
3332 * expop.h (class var_msym_value_operation): New.
3333 * eval.c (eval_op_var_msym_value): No longer static.
3334 (var_msym_value_operation::evaluate_for_address)
3335 (var_msym_value_operation::evaluate_for_sizeof)
3336 (var_msym_value_operation::evaluate_for_cast): New methods.
3337 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3340 2021-03-08 Tom Tromey <tom@tromey.com>
3342 * expop.h (class long_const_operation): New.
3343 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3345 2021-03-08 Tom Tromey <tom@tromey.com>
3347 * expop.h (class scope_operation): New.
3348 * eval.c (eval_op_scope): No longer static.
3349 (scope_operation::evaluate_for_address): New method.
3350 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3352 2021-03-08 Tom Tromey <tom@tromey.com>
3354 * expprint.c (float_const_operation::dump): New method.
3355 * expop.h (float_data): New typedef.
3356 (class float_const_operation): New.
3358 2021-03-08 Tom Tromey <tom@tromey.com>
3360 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3361 * ax-gdb.c (gen_expr_binop): New function.
3362 (gen_expr_structop): Likewise.
3364 2021-03-08 Tom Tromey <tom@tromey.com>
3366 * expprint.c (expr::dump_for_expression): New functions.
3367 * expop.h (dump_for_expression): New overloads.
3368 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3371 2021-03-08 Tom Tromey <tom@tromey.com>
3373 * expression.h (expr::operation): New class.
3374 (expr::make_operation): New function.
3375 (expr::operation_up): New typedef.
3376 * expop.h: New file.
3377 * eval.c (operation::evaluate_for_cast)
3378 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3380 * ax-gdb.c (operation::generate_ax): New method.
3382 2021-03-08 Tom Tromey <tom@tromey.com>
3384 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3385 (gen_expr_binop_rest): New overload.
3387 2021-03-08 Tom Tromey <tom@tromey.com>
3389 * eval.c (eval_multi_subscript): New function.
3390 (evaluate_subexp_standard): Use it.
3392 2021-03-08 Tom Tromey <tom@tromey.com>
3394 * ada-lang.c (ada_binop_exp): New function.
3395 (ada_evaluate_subexp): Use it.
3397 2021-03-08 Tom Tromey <tom@tromey.com>
3399 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3401 (ada_evaluate_subexp): Use it.
3403 2021-03-08 Tom Tromey <tom@tromey.com>
3405 * ada-lang.c (ada_binop_minmax): New function.
3406 (ada_evaluate_subexp): Use it.
3408 2021-03-08 Tom Tromey <tom@tromey.com>
3410 * ada-lang.c (ada_unop_atr): New function.
3411 (ada_evaluate_subexp): Use it.
3413 2021-03-08 Tom Tromey <tom@tromey.com>
3415 * ada-lang.c (ada_binop_in_bounds): New function.
3416 (ada_evaluate_subexp): Use it.
3418 2021-03-08 Tom Tromey <tom@tromey.com>
3420 * ada-lang.c (ada_ternop_slice): New function.
3421 (ada_evaluate_subexp): Use it.
3423 2021-03-08 Tom Tromey <tom@tromey.com>
3425 * ada-lang.c (ada_equal_binop): New function.
3426 (ada_evaluate_subexp): Use it.
3428 2021-03-08 Tom Tromey <tom@tromey.com>
3430 * ada-lang.c (ada_mult_binop): New function.
3431 (ada_evaluate_subexp): Use it.
3433 2021-03-08 Tom Tromey <tom@tromey.com>
3435 * ada-lang.c (ada_abs): New function.
3436 (ada_evaluate_subexp): Use it.
3438 2021-03-08 Tom Tromey <tom@tromey.com>
3440 * ada-lang.c (ada_atr_size): New function.
3441 (ada_evaluate_subexp): Use it.
3443 2021-03-08 Tom Tromey <tom@tromey.com>
3445 * ada-lang.c (ada_atr_tag): New function.
3446 (ada_evaluate_subexp): Use it.
3448 2021-03-08 Tom Tromey <tom@tromey.com>
3450 * ada-lang.c (ada_unop_in_range): New function.
3451 (ada_evaluate_subexp): Use it.
3453 2021-03-08 Tom Tromey <tom@tromey.com>
3455 * ada-lang.c (ada_unop_neg): New function.
3456 (ada_evaluate_subexp): Use it.
3458 2021-03-08 Tom Tromey <tom@tromey.com>
3460 * ada-lang.c (eval_ternop_in_range): New function.
3461 (ada_evaluate_subexp): Use it.
3463 2021-03-08 Tom Tromey <tom@tromey.com>
3465 * opencl-lang.c (eval_opencl_assign): New function.
3466 (evaluate_subexp_opencl): Use it.
3468 2021-03-08 Tom Tromey <tom@tromey.com>
3470 * eval.c (eval_op_objc_msgcall): New function.
3471 (evaluate_subexp_standard): Use it.
3473 2021-03-08 Tom Tromey <tom@tromey.com>
3475 * eval.c (eval_binop_assign_modify): New function.
3476 (evaluate_subexp_standard): Use it.
3478 2021-03-08 Tom Tromey <tom@tromey.com>
3480 * m2-lang.c (eval_op_m2_subscript): New function.
3481 (evaluate_subexp_modula2): Use it.
3483 2021-03-08 Tom Tromey <tom@tromey.com>
3485 * m2-lang.c (eval_op_m2_high): New function.
3486 (evaluate_subexp_modula2): Use it.
3488 2021-03-08 Tom Tromey <tom@tromey.com>
3490 * eval.c (evaluate_subexp_for_address_base): New function.
3491 (evaluate_subexp_for_address): Use it.
3492 (evaluate_subexp_for_sizeof_base): New function.
3493 (evaluate_subexp_for_sizeof): Use it.
3495 2021-03-08 Tom Tromey <tom@tromey.com>
3497 * rust-lang.c (eval_op_rust_structop): New function.
3498 (rust_evaluate_subexp): Use it.
3500 2021-03-08 Tom Tromey <tom@tromey.com>
3502 * rust-lang.c (eval_op_rust_struct_anon): New function.
3503 (rust_evaluate_subexp): Use it.
3505 2021-03-08 Tom Tromey <tom@tromey.com>
3507 * rust-lang.c (eval_op_rust_array): New function.
3508 (rust_evaluate_subexp): Use it.
3510 2021-03-08 Tom Tromey <tom@tromey.com>
3512 * rust-lang.c (eval_op_rust_complement): New function.
3513 (rust_evaluate_subexp): Use it.
3515 2021-03-08 Tom Tromey <tom@tromey.com>
3517 * rust-lang.c (eval_op_rust_ind): New function.
3518 (rust_evaluate_subexp): Use it.
3520 2021-03-08 Tom Tromey <tom@tromey.com>
3522 * rust-lang.c (rust_subscript): Change parameters.
3523 (rust_evaluate_subexp): Update.
3525 2021-03-08 Tom Tromey <tom@tromey.com>
3527 * rust-lang.c (rust_range): Change parameters.
3528 (rust_evaluate_subexp): Update.
3530 2021-03-08 Tom Tromey <tom@tromey.com>
3532 * f-lang.c (eval_op_f_allocated): New function.
3533 (evaluate_subexp_f): Use it.
3535 2021-03-08 Tom Tromey <tom@tromey.com>
3537 * f-lang.c (fortran_require_array): New function.
3538 (evaluate_subexp_f): Use it.
3540 2021-03-08 Tom Tromey <tom@tromey.com>
3542 * f-lang.c (eval_op_f_kind): New function.
3543 (evaluate_subexp_f): Use it.
3545 2021-03-08 Tom Tromey <tom@tromey.com>
3547 * f-lang.c (eval_op_f_cmplx): New function.
3548 (evaluate_subexp_f): Use it.
3550 2021-03-08 Tom Tromey <tom@tromey.com>
3552 * f-lang.c (eval_op_f_modulo): New function.
3553 (evaluate_subexp_f): Use it.
3555 2021-03-08 Tom Tromey <tom@tromey.com>
3557 * f-lang.c (eval_op_f_floor): New function.
3558 (evaluate_subexp_f): Use it.
3560 2021-03-08 Tom Tromey <tom@tromey.com>
3562 * f-lang.c (eval_op_f_ceil): New function.
3563 (evaluate_subexp_f): Use it.
3565 2021-03-08 Tom Tromey <tom@tromey.com>
3567 * f-lang.c (eval_op_f_mod): New function.
3568 (evaluate_subexp_f): Use it.
3570 2021-03-08 Tom Tromey <tom@tromey.com>
3572 * f-lang.c (eval_op_f_abs): New function.
3573 (evaluate_subexp_f): Use it.
3575 2021-03-08 Tom Tromey <tom@tromey.com>
3577 * eval.c (eval_op_type): New function.
3578 (evaluate_subexp_standard): Use it.
3580 2021-03-08 Tom Tromey <tom@tromey.com>
3582 * eval.c (eval_op_postdec): New function.
3583 (evaluate_subexp_standard): Use it.
3585 2021-03-08 Tom Tromey <tom@tromey.com>
3587 * eval.c (eval_op_postinc): New function.
3588 (evaluate_subexp_standard): Use it.
3590 2021-03-08 Tom Tromey <tom@tromey.com>
3592 * eval.c (eval_op_predec): New file.
3593 (evaluate_subexp_standard): Use it.
3595 2021-03-08 Tom Tromey <tom@tromey.com>
3597 * eval.c (eval_op_preinc): New function.
3598 (evaluate_subexp_standard): Use it.
3600 2021-03-08 Tom Tromey <tom@tromey.com>
3602 * eval.c (eval_op_memval): New function.
3603 (evaluate_subexp_standard): Use it.
3605 2021-03-08 Tom Tromey <tom@tromey.com>
3607 * eval.c (eval_op_alignof): New function.
3608 (evaluate_subexp_standard): Use it.
3610 2021-03-08 Tom Tromey <tom@tromey.com>
3612 * eval.c (eval_op_ind): New function.
3613 (evaluate_subexp_standard): Use it.
3615 2021-03-08 Tom Tromey <tom@tromey.com>
3617 * eval.c (eval_op_lognot): New function.
3618 (evaluate_subexp_standard): Use it.
3620 2021-03-08 Tom Tromey <tom@tromey.com>
3622 * eval.c (eval_op_complement): New function.
3623 (evaluate_subexp_standard): Use it.
3625 2021-03-08 Tom Tromey <tom@tromey.com>
3627 * eval.c (eval_op_neg): New function.
3628 (evaluate_subexp_standard): Use it.
3630 2021-03-08 Tom Tromey <tom@tromey.com>
3632 * eval.c (eval_op_plus): New function.
3633 (evaluate_subexp_standard): Use it.
3635 2021-03-08 Tom Tromey <tom@tromey.com>
3637 * eval.c (eval_op_repeat): New function.
3638 (evaluate_subexp_standard): Use it.
3640 2021-03-08 Tom Tromey <tom@tromey.com>
3642 * eval.c (eval_op_leq): New function.
3643 (evaluate_subexp_standard): Use it.
3645 2021-03-08 Tom Tromey <tom@tromey.com>
3647 * eval.c (eval_op_geq): New function.
3648 (evaluate_subexp_standard): Use it.
3650 2021-03-08 Tom Tromey <tom@tromey.com>
3652 * eval.c (eval_op_gtr): New function.
3653 (evaluate_subexp_standard): Use it.
3655 2021-03-08 Tom Tromey <tom@tromey.com>
3657 * eval.c (eval_op_less): New function.
3658 (evaluate_subexp_standard): Use it.
3660 2021-03-08 Tom Tromey <tom@tromey.com>
3662 * eval.c (eval_op_notequal): New function.
3663 (evaluate_subexp_standard): Use it.
3665 2021-03-08 Tom Tromey <tom@tromey.com>
3667 * eval.c (eval_op_equal): New function.
3668 (evaluate_subexp_standard): Use it.
3670 2021-03-08 Tom Tromey <tom@tromey.com>
3672 * eval.c (eval_op_subscript): New function.
3673 (evaluate_subexp_standard): Use it.
3675 2021-03-08 Tom Tromey <tom@tromey.com>
3677 * eval.c (eval_op_binary): New function.
3678 (evaluate_subexp_standard): Use it.
3680 2021-03-08 Tom Tromey <tom@tromey.com>
3682 * eval.c (eval_op_sub): New function.
3683 (evaluate_subexp_standard): Use it.
3685 2021-03-08 Tom Tromey <tom@tromey.com>
3687 * eval.c (eval_op_add): New function.
3688 (evaluate_subexp_standard): Use it.
3690 2021-03-08 Tom Tromey <tom@tromey.com>
3692 * eval.c (eval_op_member): New function.
3693 (evaluate_subexp_standard): Use it.
3695 2021-03-08 Tom Tromey <tom@tromey.com>
3697 * eval.c (eval_op_structop_ptr): New function.
3698 (evaluate_subexp_standard): Use it.
3700 2021-03-08 Tom Tromey <tom@tromey.com>
3702 * eval.c (eval_op_structop_struct): New function.
3703 (evaluate_subexp_standard): Use it.
3705 2021-03-08 Tom Tromey <tom@tromey.com>
3707 * eval.c (eval_op_ternop): New function.
3708 (evaluate_subexp_standard): Use it.
3710 2021-03-08 Tom Tromey <tom@tromey.com>
3712 * eval.c (eval_op_concat): New function.
3713 (evaluate_subexp_standard): Use it.
3715 2021-03-08 Tom Tromey <tom@tromey.com>
3717 * eval.c (eval_op_objc_selector): New function.
3718 (evaluate_subexp_standard): Use it.
3720 2021-03-08 Tom Tromey <tom@tromey.com>
3722 * eval.c (eval_op_string): New function.
3723 (evaluate_subexp_standard): Use it.
3725 2021-03-08 Tom Tromey <tom@tromey.com>
3727 * eval.c (eval_op_register): New function.
3728 (evaluate_subexp_standard): Use it.
3730 2021-03-08 Tom Tromey <tom@tromey.com>
3732 * eval.c (eval_op_func_static_var): New function.
3733 (evaluate_subexp_standard): Use it.
3735 2021-03-08 Tom Tromey <tom@tromey.com>
3737 * eval.c (eval_op_var_msym_value): New function.
3738 (evaluate_subexp_standard): Use it.
3740 2021-03-08 Tom Tromey <tom@tromey.com>
3742 * eval.c (eval_op_var_entry_value): New function.
3743 (evaluate_subexp_standard): Use it.
3745 2021-03-08 Tom Tromey <tom@tromey.com>
3747 * eval.c (eval_op_scope): New function.
3748 (evaluate_subexp_standard): Use it.
3750 2021-03-06 Chernov Sergey <klen_s@mail.ru>
3753 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3755 2021-03-06 Tom Tromey <tom@tromey.com>
3757 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3758 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3759 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3760 (locate_dwz_sections, dwz_search_other_debugdirs)
3761 (dwarf2_get_dwz_file): Move to dwz.c.
3762 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3764 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3765 (dwarf2_get_dwz_file): Move from read.c.
3767 2021-03-06 Tom Tromey <tom@tromey.com>
3769 * debuginfod-support.h: Include scoped_fd.h.
3771 2021-03-06 Tom Tromey <tom@tromey.com>
3773 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3774 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3775 (get_abbrev_section_for_cu, read_attribute_value)
3776 (get_debug_line_section): Update.
3777 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3779 2021-03-06 Tom Tromey <tom@tromey.com>
3781 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3783 * dwarf2/read.c (section_is_p): Remove.
3784 (dwarf2_per_bfd::locate_sections)
3785 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3786 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3787 (dwarf2_locate_common_dwp_sections)
3788 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3791 2021-03-06 Tom Tromey <tom@tromey.com>
3793 * xcoffread.c: Include sect-names.h.
3794 * symfile.h (struct dwarf2_section_names, struct
3795 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3796 * dwarf2/sect-names.h: New file, from symfile.h.
3797 * dwarf2/read.c: Include sect-names.h.
3799 2021-03-06 Tom Tromey <tom@tromey.com>
3801 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3802 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3803 (abbrev_table::read): Update.
3804 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3805 (struct abbrev_info): Reformat.
3806 <attrs>: Now an array.
3807 (struct abbrev_table) <alloc_abbrev>: Remove.
3809 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3811 * ctfread.c (ctf_psymtab_add_enums): New function.
3812 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3814 2021-03-06 Weimin Pan <weimin.pan@oracle.com>
3816 * ctfread.c (read_func_kind_type): Set up function arguments.
3818 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3819 Andrew Burgess <andrew.burgess@embecosm.com>
3821 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3823 (riscv_csrset): New static global.
3824 (riscv_update_csrmap): New function.
3825 (riscv_iterate_over_regset_sections): Process CSRs.
3827 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3829 * riscv-tdep.c (riscv_feature_name_csr): Define.
3830 (riscv_feature_name_cpu): Define.
3831 (riscv_feature_name_fpu): Define.
3832 (riscv_feature_name_virtual): Define.
3833 (riscv_xreg_feature): Use riscv_feature_name_cpu.
3834 (riscv_freg_feature): Use riscv_feature_name_fpu.
3835 (riscv_virtual_feature): Use riscv_feature_name_virtual.
3836 (riscv_csr_feature): Use riscv_feature_name_csr.
3837 * riscv-tdep.h (riscv_feature_name_csr): Declare.
3839 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3840 Craig Blackmore <craig.blackmore@embecosm.com>
3842 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
3843 (ALLDEPFILES): Add riscv-none-tdep.c.
3844 * configure: Regenerate.
3845 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
3847 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
3848 * elf-none-tdep.c: New file.
3849 * elf-none-tdep.h: New file.
3850 * riscv-none-tdep.c: New file.
3852 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3853 Andrew Burgess <andrew.burgess@embecosm.com>
3855 * corelow.c: Add 'xml-tdesc.h' include.
3856 (core_target::read_description): Load the target description from
3857 the core file when possible.
3858 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
3860 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
3861 (gcore_elf_make_tdesc_note): New function.
3862 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
3863 * linux-tdep.c (linux_make_corefile_notes): Add target description
3866 2021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3868 * Makefile.in (SFILES): Add gcore-elf.c.
3869 (HFILES_NO_SRCDIR): Add gcore-elf.h
3870 * configure: Regenerate.
3871 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
3873 * fbsd-tdep.c: Add 'gcore-elf.h' include.
3874 (struct fbsd_collect_regset_section_cb_data): Delete.
3875 (fbsd_collect_regset_section_cb): Delete.
3876 (fbsd_collect_thread_registers): Delete.
3877 (struct fbsd_corefile_thread_data): Delete.
3878 (fbsd_corefile_thread): Delete.
3879 (fbsd_make_corefile_notes): Call
3880 gcore_elf_build_thread_register_notes instead of the now deleted
3882 * gcore-elf.c: New file, the content was moved here from
3883 linux-tdep.c, functions were renamed and given minor cleanup.
3884 * gcore-elf.h: New file.
3885 * gcore.c (gcore_find_signalled_thread): Moved here from
3886 linux-tdep.c and given a new name. Minor cleanups.
3887 * gcore.h (gcore_find_signalled_thread): Declare.
3888 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
3889 (struct linux_collect_regset_section_cb_data): Delete.
3890 (linux_collect_regset_section_cb): Delete.
3891 (linux_collect_thread_registers): Delete.
3892 (linux_corefile_thread): Call
3893 gcore_elf_build_thread_register_notes.
3894 (find_signalled_thread): Delete.
3895 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
3897 2021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
3900 * sparc-nat.h (sparc_fetch_inferior_registers): Add
3901 process_stratum_target parameter,
3902 sparc_store_inferior_registers): update callers.
3903 * sparc-nat.c (sparc_fetch_inferior_registers,
3904 sparc_store_inferior_registers): Add process_stratum_target
3905 parameter. Switch current thread before calling
3906 sparc_supply_gregset / sparc_collect_rwindow.
3907 (sparc_store_inferior_registers): Likewise.
3908 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
3909 (sparc32obsd_collect_uthread): Likewise.
3910 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
3912 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
3913 sparc64obsd_supply_uthread): Add assertion.
3915 2021-03-04 Tom Tromey <tromey@adacore.com>
3917 * ada-lang.c (struct match_data) <found_sym>: Now bool.
3918 (aux_add_nonlocal_symbols): Update.
3919 (ada_add_block_symbols): Change "found_sym" to bool.
3921 2021-03-03 Tom Tromey <tromey@adacore.com>
3923 * ada-lang.c (ada_resolve_function): Update comment.
3924 (is_nonfunction, add_symbols_from_enclosing_procs)
3925 (remove_extra_symbols): Likewise.
3926 (struct match_data): Add constructor, initializers.
3927 (add_nonlocal_symbols): Remove memset.
3928 (aux_add_nonlocal_symbols): Update comment.
3929 (ada_add_block_renamings, add_nonlocal_symbols)
3930 (ada_add_all_symbols): Likewise.
3931 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
3933 2021-03-02 Tom Tromey <tromey@adacore.com>
3935 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
3936 (cast_to_gnat_encoded_fixed_point_type): Remove.
3937 (ada_value_cast, ada_evaluate_subexp): Update.
3938 (gnat_encoded_fixed_point_type_info)
3939 (ada_is_gnat_encoded_fixed_point_type)
3940 (gnat_encoded_fixed_point_delta)
3941 (gnat_encoded_fixed_point_scaling_factor): Remove.
3942 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
3943 (gnat_encoded_fixed_point_delta)
3944 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
3945 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
3946 (ada_print_type): Update.
3947 * ada-valprint.c (ada_value_print_num): Update.
3948 * dwarf2/read.c (ada_get_gnat_encoded_number)
3949 (ada_get_gnat_encoded_ratio): New functions.
3950 (finish_fixed_point_type): Use them. Add parameters.
3951 (GNAT_FIXED_POINT_SUFFIX): New define.
3952 (gnat_encoded_fixed_point_type_info): New function.
3953 (read_base_type): Handle gnat encodings.
3955 2021-03-02 Tom Tromey <tromey@adacore.com>
3957 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
3958 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
3960 (GROW_VECT): Remove.
3961 (grow_vect): Remove.
3963 2021-03-02 Tom Tromey <tromey@adacore.com>
3965 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
3966 * ada-lang.c (resolve_subexp): Update.
3967 (ada_resolve_function): Accept a vector.
3968 (is_nonfunction, add_defn_to_vec)
3969 (add_symbols_from_enclosing_procs): Likewise.
3970 (num_defns_collected, defns_collected): Remove.
3971 (remove_extra_symbols): Return a vector.
3972 (remove_irrelevant_renamings): Return void.
3973 (ada_add_local_symbols): Accept a vector.
3974 (struct match_data) <obstackp>: Remove.
3975 <resultp>: New member.
3976 (aux_add_nonlocal_symbols): Update.
3977 (ada_add_block_renamings, add_nonlocal_symbols)
3978 (ada_add_all_symbols): Accept a vector.
3979 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
3981 (ada_lookup_symbol): Update.
3982 (ada_add_block_symbols): Accept a vector.
3983 (get_var_value, iterate_over_symbols): Update.
3984 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
3987 2021-03-02 Tom Tromey <tromey@adacore.com>
3989 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
3991 2021-03-02 Tom Tromey <tromey@adacore.com>
3993 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
3996 (ada_pspace_data): Remove destructor.
3997 <sym_cache>: Now a unique_ptr.
3998 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
3999 (ada_get_symbol_cache): Use 'new'.
4000 (ada_clear_symbol_cache): Rewrite.
4002 2021-03-02 Tom Tromey <tromey@adacore.com>
4004 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4007 2021-02-27 Lancelot Six <lsix@lancelotsix.com>
4010 * source.c (add_path): Skip empty dirnames.
4012 2021-02-25 Kevin Buettner <kevinb@redhat.com>
4014 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4015 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4017 2021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4020 * target.c (target_mourn_inferior): Only compare pids in
4021 target_mourn_inferior.
4023 2021-02-25 Jan Matyas <jmatyas@codasip.com>
4026 * remote.c (remote_target::start_remote): Ensure the single
4027 thread, automatically added for remote targets without the
4028 concept of threading, is initially in set to the "resumed"
4030 * remote.c (remote_target::add_current_inferior_and_thread):
4031 Add return value - return the main thread.
4033 2021-02-25 Jan Vrany <jan.vrany@labware.com>
4035 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4036 (mi_tsv_created): Likewise.
4037 (mi_tsv_deleted): Likewise.
4039 2021-02-25 Tom de Vries <tdevries@suse.de>
4042 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4043 section_kind for &dwo_file->sections.info.
4045 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4048 * f-lang.c (fortran_argument_convert): Delete declaration.
4049 (fortran_prepare_argument): New function.
4050 (evaluate_subexp_f): Move logic to new function
4051 fortran_prepare_argument.
4053 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4055 * f-exp.y (f77_keywords): Add 'associated'.
4056 * f-lang.c (fortran_associated): New function.
4057 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4058 (operator_length_f): Likewise.
4059 (print_unop_or_binop_subexp_f): New function.
4060 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4061 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4062 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4063 (operator_check_f): Likewise.
4064 * std-operator.def: Add FORTRAN_ASSOCIATED.
4066 2021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4068 * f-exp.y (fortran_operators): Add ".xor.".
4070 2021-02-24 Tom de Vries <tdevries@suse.de>
4073 * dwarf2/attribute.c (attribute::form_is_signed): New function
4075 * dwarf2/attribute.h (attribute::as_signed): ... here.
4076 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4077 (attribute::form_is_signed): Declare.
4078 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4079 for DW_AT_decl_file.
4081 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4083 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4084 order for <sys/ptrace.h> and <asm/ptrace.h>.
4086 2021-02-24 Kevin Buettner <kevinb@redhat.com>
4088 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4091 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4093 * exec.c (set_section_command): Move variable declarations into
4094 the function body, and use std::string instead of a fixed size
4097 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4099 * exec.c (exec_target::get_section_table): Delete member function.
4100 (section_table_read_available_memory): Use current_top_target, not
4101 just the exec_ops target.
4102 * target-delegates.c: Regenerate.
4103 * target.c (default_get_section_table): New function.
4104 * target.h (target_ops::get_section_table): Change default
4105 behaviour to call default_get_section_table.
4106 (default_get_section_table): Declare.
4108 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4110 * exec.c (exec_target::close): Call new clear_target_sections
4112 (program_space::add_target_sections): Update name of member
4114 (program_space::add_target_sections): Update name of member
4116 (program_space::remove_target_sections): Likewise.
4117 (exec_one_fork): Use new target_sections member function.
4118 (exec_target::get_section_table): Likewise.
4119 (exec_target::files_info): Likewise.
4120 (set_section_command): Likewise.
4121 (exec_set_section_address): Likewise.
4122 (exec_target::has_memory): Use new target_sections member
4124 * progspace.h (program_space::clear_target_sections): New member
4126 (program_space::target_sections): Rename member variable to
4127 m_target_sections, replace with a new member function.
4128 (program_space::m_target_sections): New member variable.
4129 * solib-dsbt.c (scan_dyntag): Use new member function.
4130 * solib-svr4.c (scan_dyntag): Likewise.
4132 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4134 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4136 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4137 (section_table_read_available_memory): Make local const.
4138 (exec_target::xfer_partial): Make local const.
4139 (print_section_info): Make parameter const.
4140 * gdb/exec.h (print_section_info): Likewise.
4141 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4143 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4145 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4147 * gdb/s390-tdep.c (s390_load): Likewise.
4148 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4149 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4150 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4152 (target_debug_print_const_target_section_table_p): ...this.
4153 * gdb/target-delegates.c: Regenerate.
4154 * gdb/target.c (target_get_section_table): Make return type const.
4155 (target_section_by_addr): Likewise. Also make some locals const.
4156 (memory_xfer_partial_1): Make some locals const.
4157 * gdb/target.h (struct target_ops) <get_section_table>: Make
4159 (target_section_by_addr): Likewise.
4160 (target_get_section_table): Likewise.
4162 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4164 * NEWS: Mention new 'maint info target-sections' command.
4165 * maint.c (maintenance_info_target_sections): New function.
4166 (_initialize_maint_cmds): Register new command.
4168 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4170 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4171 (riscv_features_from_bfd): ...this. Change parameter type to
4172 'bfd*', and update as required.
4173 (riscv_find_default_target_description): Update call to
4174 riscv_features_from_bfd. Select a default xlen based on
4176 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4178 2021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4180 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4181 dynamic types in UNOP_IND.
4183 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4186 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4188 (~dwarf2_queue_guard): Clear queue.
4189 (queue_comp_unit): Assert that queue is
4191 (process_queue): Adjust.
4192 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4194 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4197 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4198 to decide whether or not to enqueue it for expansion.
4199 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4200 after calling maybe_queue_comp_unit.
4202 2021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4204 * linux-nat.c (linux_nat_filter_event): Return void.
4206 2021-02-22 Tom Tromey <tromey@adacore.com>
4208 * solib-svr4.c (enable_break): Update.
4209 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4211 (target_bfd_reopen): Change parameter type.
4212 * bfd-target.h (target_bfd_reopen): Change parameter type.
4214 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4216 * thread.c (add_thread_silent): Add assert.
4217 (find_thread_ptid): Add assert.
4219 2021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4222 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4223 (target_unpush_up): Likewise.
4224 * procfs.c (procfs_target::attach): Push target early. Use
4225 target_unpush_up to unpush target in case of error.
4226 * target.h (struct target_unpusher): Move here.
4227 (target_unpush_up): Likewise.
4229 2021-02-19 Kevin Buettner <kevinb@redhat.com>
4231 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4232 (which in turn includes <gnulib/config.h>) before include
4235 2021-02-19 Nelson Chu <nelson.chu@sifive.com>
4238 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4239 (decode_j_type_insn): Likewise.
4240 (decode_cj_type_insn): Likewise.
4241 (decode_b_type_insn): Likewise.
4244 2021-02-18 Tom Tromey <tom@tromey.com>
4246 * expression.h (struct expression) <evaluate>: Declare method.
4247 * eval.c (evaluate_subexp): Simplify.
4248 (expression::evaluate): New method.
4249 (evaluate_expression, evaluate_type): Use expression::evaluate.
4251 2021-02-17 Kevin Buettner <kevinb@redhat.com>
4253 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4255 (ada_lookup_name_info): Likewise.
4257 2021-02-13 Mike Frysinger <vapier@gentoo.org>
4259 * aclocal.m4: Regenerate.
4261 2021-02-12 Tom de Vries <tdevries@suse.de>
4264 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4265 (lin_thread_signals): New static var.
4266 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4268 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4269 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4271 * linux-thread-db.c (check_thread_signals): Use
4272 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4274 2021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4276 * f-exp.y (f77_keywords): Add allocated.
4277 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4278 (operator_length_f): Likewise.
4279 (print_subexp_f): Likewise.
4280 (dump_subexp_body_f): Likewise.
4281 (operator_check_f): Likewise.
4282 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4284 2021-02-11 Tom de Vries <tdevries@suse.de>
4287 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4288 Return true for DW_FORM_strx.
4290 2021-02-11 Tom Tromey <tromey@adacore.com>
4293 * parse.c (write_exp_symbol_reference): Write sym.block.
4295 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4297 * NEWS: Mention changes to 'maint info sections'.
4298 * maint.c (match_substring): Return a bool, fix whitespace issue.
4299 (struct single_bfd_flag_info): New struct.
4300 (bfd_flag_info): New static global.
4301 (match_bfd_flags): Return a bool, use bfd_flag_info.
4302 (print_bfd_flags): Use bfd_flag_info.
4303 (maint_print_section_info): Delete trailing whitespace.
4304 (struct maint_info_sections_opts): New struct.
4305 (maint_info_sections_option_defs): New static global.
4306 (maint_info_sections_completer): New function.
4307 (maintenance_info_sections): Use option parsing mechanism.
4308 (_initialize_maint_cmds): Update command help text for 'maint info
4309 sections' and register a command completer.
4311 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4313 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4314 functionality merged into...
4315 (maint_print_all_sections): ...this new function.
4316 (maintenance_info_sections): Make use of maint_print_all_sections,
4317 allow all objects to be printed even where there's no executable.
4319 2021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4321 * breakpoint.c (resolve_sal_pc): Make use of
4322 bound_minimal_symbol::obj_section.
4323 * maint.c (maintenance_translate_address): Likewise.
4324 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4325 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4327 * printcmd.c (info_address_command): Make use of
4328 bound_minimal_symbol::obj_section.
4330 2021-02-11 Alan Modra <amodra@gmail.com>
4332 * arm-symbian-tdep.c: Delete.
4333 * NEWS: Mention arm-symbian removal.
4334 * Makefile.in: Remove arm-symbian-tdep entries.
4335 * configure.tgt: Remove arm*-*-symbianelf*.
4336 * doc/gdb.texinfo: Remove mention of SymbianOS.
4337 * osabi.c (gdb_osabi_names): Remove "Symbian".
4338 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4339 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4340 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4342 * testsuite/gdb.base/dup-sect.exp: Likewise.
4343 * testsuite/gdb.base/long_long.exp: Likewise.
4344 * testsuite/gdb.base/solib-weak.exp: Likewise.
4345 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4346 * testsuite/gdb.python/py-section-script.exp: Likewise.
4347 * testsuite/lib/dwarf.exp: Likewise.
4348 * testsuite/lib/gdb.exp: Likewise.
4350 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4352 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4353 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4354 (one_or_two_args): New pattern.
4355 (f77_keywords): Add lbound and ubound.
4356 * f-lang.c (fortran_bounds_all_dims): New function.
4357 (fortran_bounds_for_dimension): New function.
4358 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4359 (operator_length_f): Likewise.
4360 (print_subexp_f): Likewise.
4361 (dump_subexp_body_f): Likewise.
4362 (operator_check_f): Likewise.
4363 * std-operator.def (FORTRAN_LBOUND): Define.
4364 (FORTRAN_UBOUND): Define.
4366 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4368 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4369 and set_section_index member functions where appropriate.
4370 * coffread.c (coff_symtab_read): Likewise.
4371 (process_coff_symbol): Likewise.
4372 * ctfread.c (set_symbol_address): Likewise.
4373 * dwarf2/read.c (add_partial_symbol): Likewise.
4374 (var_decode_location): Likewise.
4375 * language.c: Likewise.
4376 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4377 (compact_minimal_symbols): Likewise.
4378 (minimal_symbol_upper_bound): Likewise.
4379 * objfiles.c (relocate_one_symbol): Likewise.
4380 * psympriv.h (partial_symbol::obj_section): Likewise.
4381 (partial_symbol::address): Likewise.
4382 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4383 * stabsread.c (scan_file_globals): Likewise.
4384 * symmisc.c (dump_msymbols): Likewise.
4385 * symtab.c (general_symbol_info::obj_section): Likewise.
4386 (fixup_section): Likewise.
4387 (get_msymbol_address): Likewise.
4388 * symtab.h (general_symbol_info::section): Rename to...
4389 (general_symbol_info::m_section): ...this.
4390 (general_symbol_info::set_section_index): New member function.
4391 (general_symbol_info::section_index): Likewise.
4392 (SYMBOL_SECTION): Delete.
4393 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4394 set_section_index member functions where appropriate.
4395 (MSYMBOL_SECTION): Delete.
4396 (symbol::symbol): Update to initialize 'm_section'.
4397 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4398 (process_xcoff_symbol): Likewise.
4400 2021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4402 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4403 MSYMBOL_OBJ_SECTION.
4404 * findvar.c (language_defn::read_var_value): Likewise.
4405 * infcmd.c (jump_command): Likewise.
4406 * linespec.c (minsym_found): Likewise.
4407 * maint.c (maintenance_translate_address): Likewise.
4408 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4409 (minimal_symbol_upper_bound): Likewise.
4410 * parse.c (find_minsym_type_and_address): Likewise.
4411 (operator_check_standard): Likewise.
4412 * printcmd.c (info_address_command): Likewise.
4413 * symmisc.c (dump_msymbols): Likewise.
4414 (print_symbol): Likewise.
4415 * symtab.c (general_symbol_info::obj_section): Define new
4417 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4418 (find_pc_sect_compunit_symtab): Likewise.
4419 (find_function_start_sal): Likewise.
4420 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4421 MSYMBOL_OBJ_SECTION.
4422 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4424 (SYMBOL_OBJ_SECTION): Delete.
4425 (MSYMBOL_OBJ_SECTION): Delete.
4427 2021-02-09 Tom Tromey <tom@tromey.com>
4429 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4431 2021-02-09 Tom de Vries <tdevries@suse.de>
4434 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4435 construct an array type. Add assert to ensure that element_type is
4438 2021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4440 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4441 (gcore_collect_regset_section_cb): Delete.
4442 (gcore_collect_thread_registers): Delete.
4443 (gcore_build_thread_register_notes): Delete.
4444 (gcore_find_signalled_thread): Delete.
4445 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4446 'gdbarch' and 'thread_info' declarations.
4447 (gcore_build_thread_register_notes): Delete declaration.
4448 (gcore_find_signalled_thread): Likewise.
4449 * fbsd-tdep.c: Remove 'gcore.h' include.
4450 (struct fbsd_collect_regset_section_cb_data): New struct.
4451 (fbsd_collect_regset_section_cb): New function.
4452 (fbsd_collect_thread_registers): New function.
4453 (struct fbsd_corefile_thread_data): New struct.
4454 (fbsd_corefile_thread): New function.
4455 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4456 * linux-tdep.c: Remove 'gcore.h' include.
4457 (struct linux_collect_regset_section_cb_data): New struct.
4458 (linux_collect_regset_section_cb): New function.
4459 (linux_collect_thread_registers): New function.
4460 (linux_corefile_thread): Call Linux specific code.
4461 (find_signalled_thread): New function.
4462 (linux_make_corefile_notes): Call find_signalled_thread.
4464 2021-02-09 Tom Tromey <tromey@adacore.com>
4466 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4468 * value.c (value_contents_copy_raw): Now static.
4469 * value.h (value_contents_copy_raw): Don't declare.
4471 2021-02-09 Tom Tromey <tromey@adacore.com>
4473 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4476 2021-02-08 Shahab Vahedi <shahab@synopsys.com>
4479 * arc-linux-tdep.c (handle_atomic_sequence): New.
4480 (arc_linux_software_single_step): Call handle_atomic_sequence().
4482 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4484 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4486 (REQUIRE_WINDOW): Call is_valid member function.
4487 (REQUIRE_WINDOW_FOR_SETTER): New define.
4488 (gdbpy_tui_is_valid): Call is_valid member function.
4489 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4490 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4492 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4493 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4496 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4498 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4499 for the title is not nullptr.
4501 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4503 * tui-layout.c (saved_tui_windows): Delete.
4504 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4505 call new get_windows member function instead.
4506 (tui_get_window_by_name): Check in tui_windows.
4507 (tui_layout_window::apply): Don't add to tui_windows.
4508 * tui-layout.h (tui_layout_base::get_windows): New member function.
4509 (tui_layout_window::get_windows): Likewise.
4510 (tui_layout_split::get_windows): Likewise.
4512 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4514 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4515 of the window objects.
4517 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4519 * python/python.c (gdbpy_print_stack): Reformat an error message.
4521 2021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4523 * tui/tui-interp.c (tui_command_line_handler): New function.
4524 (tui_interp::resume): Register tui_command_line_handler as the
4526 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4528 (tui_getc_1): Delete handling of '\n' and '\r'.
4529 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4531 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4533 * tui/tui-regs.c (tui_data_window::display_registers_from):
4534 Mark invisible register sub windows.
4535 (tui_data_window::check_register_values): Ignore invisible
4536 register sub windows.
4538 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4540 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4541 n_spaces with a negative value.
4543 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4545 * tui/tui-regs.c (tui_data_window::display_registers_from):
4546 Add refresh_window call.
4548 2021-02-07 Hannes Domani <ssbssa@yahoo.de>
4550 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4552 2021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4554 * symmisc.c (std_in, std_out, std_err): Remove.
4555 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4557 2021-02-05 Tom de Vries <tdevries@suse.de>
4559 PR breakpoints/27330
4560 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4561 glibc object file has debug info.
4563 2021-02-05 Tom de Vries <tdevries@suse.de>
4566 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4568 2021-02-05 Tom de Vries <tdevries@suse.de>
4570 PR breakpoints/27313
4571 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4574 2021-02-05 Tom Tromey <tom@tromey.com>
4576 * compile/compile-c-support.c (get_compile_context)
4577 (c_get_compile_context, cplus_get_compile_context): Change return
4579 * language.c (language_defn::get_compile_instance): New method.
4580 * language.h (language_defn::get_compile_instance): Change return
4581 type. No longer inline.
4582 * c-lang.c (c_language::get_compile_instance): Change return type.
4583 (cplus_language::get_compile_instance): Change return type.
4584 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4586 * compile/compile.c (compile_to_object): Update.
4588 2021-02-05 Tom Tromey <tom@tromey.com>
4590 * parser-defs.h (write_exp_symbol_reference): Declare.
4591 * parse.c (write_exp_symbol_reference): New function.
4592 * p-exp.y (variable): Use write_exp_symbol_reference.
4593 * m2-exp.y (variable): Use write_exp_symbol_reference.
4594 * f-exp.y (variable): Use write_exp_symbol_reference.
4595 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4596 * c-exp.y (variable): Use write_exp_symbol_reference.
4598 2021-02-05 Tom de Vries <tdevries@suse.de>
4601 * valarith.c (complex_binop): Throw an error if complex type can't
4604 2021-02-05 Tom de Vries <tdevries@suse.de>
4607 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4610 2021-02-05 Tom de Vries <tdevries@suse.de>
4612 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4614 2021-02-04 Mike Frysinger <vapier@gentoo.org>
4616 * configure.tgt (riscv*-*-*): Set gdb_sim.
4618 2021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4620 * target.c (target_is_non_stop_p): Return bool.
4621 * target.h (target_is_non_stop_p): Return bool.
4623 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4625 * record-full.c (record_full_async_inferior_event_handler):
4626 Don't clear async event handler.
4627 (record_full_base_target::wait): Clear async event handler at
4630 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4632 * record-btrace.c (record_btrace_handle_async_inferior_event):
4633 Don't clear async event handler.
4634 (record_btrace_target::wait): Clear async event handler at
4637 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4639 * remote.c (remote_target::wait): Clear async event handler at
4640 beginning, mark if needed at the end.
4641 (remote_async_inferior_event_handler): Don't set or clear async
4644 2021-02-04 Simon Marchi <simon.marchi@efficios.com>
4646 * async-event.h (async_event_handler_func): Add documentation.
4647 * async-event.c (check_async_event_handlers): Don't clear
4648 async_event_handler ready flag.
4649 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4651 * record-btrace.c (record_btrace_handle_async_inferior_event):
4653 * record-full.c (record_full_async_inferior_event_handler):
4655 * remote-notif.c (remote_async_get_pending_events_handler):
4657 * remote.c (remote_async_inferior_event_handler): Likewise.
4659 2021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4661 * infrun.c (handle_inferior_event): Move stop_soon variable to
4664 2021-02-03 Pedro Alves <pedro@palves.net>
4666 * infcmd.c (detach_command): Hold strong reference to target, and
4667 if all-stop on entry, restart threads on exit.
4668 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4669 (restart_stepped_thread): ... this new function. Also handle
4671 (restart_after_all_stop_detach): New function.
4672 * infrun.h (restart_after_all_stop_detach): Declare.
4674 2021-02-03 Pedro Alves <pedro@palves.net>
4676 * infrun.c (struct step_over_info): Initialize fields.
4677 (prepare_for_detach): Handle ongoing in-line step over.
4679 2021-02-03 Pedro Alves <pedro@palves.net>
4681 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4683 * remote.c (remote_target::remote_detach_1): ... and here ...
4684 * target.c (target_detach): ... instead of here.
4685 * target.h (target_ops::detach): Add comment.
4687 2021-02-03 Pedro Alves <pedro@palves.net>
4689 * infrun.c (struct wait_one_event): Move higher up.
4690 (prepare_for_detach): Abort in-progress displaced steps instead of
4691 letting them complete.
4692 (handle_one): If the inferior is detaching, don't add the thread
4693 back to the global step-over chain.
4694 (restart_threads): Don't restart threads if detaching.
4695 (handle_signal_stop): Remove inferior::detaching reference.
4697 2021-02-03 Pedro Alves <pedro@palves.net>
4699 * infrun.c (prepare_for_detach): Don't release scoped_restore
4702 2021-02-03 Pedro Alves <pedro@palves.net>
4704 * infrun.c (handle_one): New function, factored out from ...
4705 (stop_all_threads): ... here.
4707 2021-02-03 Pedro Alves <pedro@palves.net>
4709 * remote.c (remote_notif_stop_ack): Don't error out on
4710 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4711 (remote_target::discard_pending_stop_replies): Don't delete
4712 in-flight notification; instead, clear its contents.
4714 2021-02-03 Pedro Alves <pedro@palves.net>
4716 * remote.c (extended_remote_target::attach): Set target async in
4717 the target-non-stop path too.
4719 2021-02-03 Pedro Alves <pedro@palves.net>
4722 * infrun.c (handle_signal_stop): Move main context_switch call
4723 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4725 2021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4727 * NEWS (Changed commands): Add entry for the behavior change of
4728 the inferior command.
4729 * inferior.c (inferior_command): When no argument is given to the
4730 inferior command, display info about the currently selected
4733 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4735 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4737 (read_attribute_reprocess): Adjust.
4739 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4741 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4742 <gnu_ranges_base>: ... this...
4743 <rnglists_base>: ... and this.
4744 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4745 <gnu_ranges_base>: ... this...
4746 <rnglists_base>: ... and this.
4747 (read_cutu_die_from_dwo): Adjust
4748 (dwarf2_get_pc_bounds): Adjust
4749 (dwarf2_record_block_ranges): Adjust.
4750 (read_full_die_1): Adjust
4751 (partial_die_info::read): Adjust.
4752 (read_rnglist_index): Adjust.
4754 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4757 * dwarf2/read.c (read_loclists_rnglists_header): Add
4758 header_offset parameter and use it.
4759 (read_loclist_index): Read header of the current contribution,
4760 not the one at the beginning of the section.
4761 (read_rnglist_index): Likewise.
4763 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4766 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4767 requires_reprocessing flag.
4768 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4770 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4771 and DW_FORM_loclistx.
4772 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4773 instead of set_address for DW_FORM_loclistx and
4776 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4778 * dwarf2/read.c (read_loclist_index): Remove bound check for
4780 (read_rnglist_index): Likewise.
4782 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4784 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4787 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4789 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4791 2021-02-02 Simon Marchi <simon.marchi@efficios.com>
4793 * dwarf2/read.c (read_loclist_index): Change complaints into
4796 2021-02-02 Tom de Vries <tdevries@suse.de>
4799 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4802 2021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4804 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4805 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4806 here from linux-tdep.c and given a new name. Minor cleanups.
4807 (gcore_collect_regset_section_cb): Likewise.
4808 (gcore_collect_thread_registers): Likewise.
4809 (gcore_build_thread_register_notes): Likewise.
4810 (gcore_find_signalled_thread): Likewise.
4811 * gcore.h (gcore_build_thread_register_notes): Declare.
4812 (gcore_find_signalled_thread): Declare.
4813 * fbsd-tdep.c: Add 'gcore.h' include.
4814 (struct fbsd_collect_regset_section_cb_data): Delete.
4815 (fbsd_collect_regset_section_cb): Delete.
4816 (fbsd_collect_thread_registers): Delete.
4817 (struct fbsd_corefile_thread_data): Delete.
4818 (fbsd_corefile_thread): Delete.
4819 (fbsd_make_corefile_notes): Call
4820 gcore_build_thread_register_notes instead of the now deleted
4822 * linux-tdep.c: Add 'gcore.h' include.
4823 (struct linux_collect_regset_section_cb_data): Delete.
4824 (linux_collect_regset_section_cb): Delete.
4825 (linux_collect_thread_registers): Delete.
4826 (linux_corefile_thread): Call
4827 gcore_build_thread_register_notes.
4828 (find_signalled_thread): Delete.
4829 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4831 2021-01-29 Tom de Vries <tdevries@suse.de>
4833 PR breakpoints/26063
4834 * infrun.c (process_event_stop_test): Reset
4835 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
4838 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4840 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
4841 assert. Extend the header comment.
4843 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4845 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
4846 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
4847 * tui/tui-data.h (TUI_STATUS_WIN): Define.
4848 (tui_locator_win_info_ptr): Delete declaration.
4849 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
4850 (tui_disasm_window::set_contents): Fetch state from tui_location
4852 (tui_get_begin_asm_address): Likewise.
4853 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
4855 (get_locator_window): Delete.
4856 (initialize_known_windows): Treat locator window just like all the
4858 * tui/tui-source.c: Add 'tui/tui-location.h' include.
4859 (tui_source_window::set_contents): Fetch state from tui_location
4861 (tui_source_window::showing_source_p): Likewise.
4862 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
4864 (tui_locator_win_info_ptr): Delete.
4865 (tui_locator_window::make_status_line): Fetch state from
4866 tui_location global.
4867 (tui_locator_window::rerender): Remove check of 'handle',
4868 reindent function body.
4869 (tui_locator_window::set_locator_fullname): Delete.
4870 (tui_locator_window::set_locator_info): Delete.
4871 (tui_update_locator_fullname): Delete.
4872 (tui_show_frame_info): Likewise.
4873 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
4874 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
4875 tui/tui-location.h and renamed to
4876 tui_location_tracker::set_location.
4877 (tui_locator_window::set_locator_fullname): Moved to
4878 tui/tui-location.h and renamed to
4879 tui_location_tracker::set_fullname.
4880 (tui_locator_window::full_name): Delete.
4881 (tui_locator_window::proc_name): Delete.
4882 (tui_locator_window::line_no): Delete.
4883 (tui_locator_window::addr): Delete.
4884 (tui_locator_window::gdbarch): Delete.
4885 (tui_update_locator_fullname): Delete declaration.
4886 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
4888 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
4889 (tui_display_main): Call function on tui_location directly.
4890 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
4891 * tui/tui-location.c: New file.
4892 * tui/tui-location.h: New file.
4894 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4896 * gdbtypes.h (get_type_arch): Rename to...
4897 (struct type) <arch>: ... this, update all users.
4899 2021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
4901 * gdbtypes.h (struct type) <arch>: Rename to...
4902 <arch_owner>: ... this, update all users.
4903 <objfile>: Rename to...
4904 <objfile_owner>: ... this, update all users.
4906 2021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
4908 * gdbcmd.h (execute_command_to_string): Update comment.
4909 * top.c (execute_command_to_string): Update header comment.
4911 2021-01-28 Tom de Vries <tdevries@suse.de>
4913 PR breakpoints/27205
4914 * breakpoint.c (create_longjmp_master_breakpoint_probe)
4915 (create_longjmp_master_breakpoint_names): New function, factored out
4917 (create_longjmp_master_breakpoint): ... here. Only try to install
4918 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
4919 breakpoint in libc.so failed.
4921 2021-01-27 Lancelot SIX <lsix@lancelotsix.com>
4924 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
4925 unique_ptr is released when the wrapped pointer is kept for later
4928 2021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
4930 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
4931 BLR and BR instructions.
4932 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
4933 (enum aarch64_masks): New.
4935 2021-01-26 Tom Tromey <tromey@adacore.com>
4937 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
4938 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
4939 (windows_init_thread_list, windows_nat::handle_load_dll)
4940 (windows_nat::handle_unload_dll, windows_nat_target::resume)
4941 (windows_nat_target::resume)
4942 (windows_nat_target::get_windows_debug_event)
4943 (windows_nat_target::interrupt, windows_xfer_memory)
4944 (windows_nat_target::close): Update.
4945 * nat/windows-nat.c (DEBUG_EVENTS): Use
4946 debug_prefixed_printf_cond.
4947 (matching_pending_stop, fetch_pending_stop)
4948 (continue_last_debug_event): Update.
4950 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
4952 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
4953 elfcore_write_file_note.
4955 2021-01-26 Shahab Vahedi <shahab@synopsys.com>
4957 * arc-tdep.c (arc_add_reggroups): New function.
4958 (arc_gdbarch_init): Call arc_add_reggroups.
4960 2021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
4962 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
4964 2021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
4965 Simon Marchi <simon.marchi@polymtl.ca>
4966 Tom de Vries <tdevries@suse.de>
4968 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
4971 2021-01-25 Tom Tromey <tromey@adacore.com>
4973 * dwarf2/read.c (get_mpz): New function.
4974 (get_dwarf2_rational_constant): Use it.
4976 2021-01-25 Tom Tromey <tromey@adacore.com>
4978 * ada-lang.c (resolve_subexp): Handle array context.
4980 2021-01-23 Tom Tromey <tom@tromey.com>
4983 * compile/compile-loc2c.c (note_register): New function.
4984 (pushf_register_address, pushf_register): Use it.
4986 2021-01-23 Tom Tromey <tom@tromey.com>
4988 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
4989 Change type of "registers_used".
4990 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
4991 * dwarf2/loc.c (dwarf2_compile_property_to_c)
4992 (locexpr_generate_c_location, loclist_generate_c_location): Change
4993 type of "registers_used".
4994 * compile/compile.h (compile_dwarf_expr_to_c)
4995 (compile_dwarf_bounds_to_c): Update.
4996 * compile/compile-loc2c.c (pushf_register_address)
4997 (pushf_register, do_compile_dwarf_expr_to_c)
4998 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
4999 of "registers_used".
5000 * compile/compile-c.h (generate_c_for_variable_locations):
5002 * compile/compile-c-symbols.c (generate_vla_size)
5003 (generate_c_for_for_one_variable): Change type of
5005 (generate_c_for_variable_locations): Return std::vector.
5006 * compile/compile-c-support.c (generate_register_struct): Change
5007 type of "registers_used".
5010 2021-01-23 Tom Tromey <tom@tromey.com>
5012 * compile/compile-internal.h (class compile_instance)
5013 <set_arguments>: Change return type.
5014 * compile/compile.c (compile_to_object): Remove call to reset.
5015 (compile_instance::set_arguments): Change return type.
5017 2021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5019 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5020 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5022 2021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5024 * Makefile.in (SELFTESTS_SRCS): Add
5025 unittests/gdb_tilde_expand-selftests.c.
5026 * unittests/gdb_tilde_expand-selftests.c: New file.
5028 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5031 * NEWS: Mention new command.
5032 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5033 (version_style): Define.
5034 (cli_style_option::cli_style_option): Add intensity parameter, and
5036 (_initialize_cli_style): Register version style set/show commands.
5037 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5038 (version_style): Declare.
5039 * top.c (print_gdb_version): Use version_stype, and styled_string
5040 to print the GDB version string.
5042 2021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5044 * utils.c (emit_style_escape): Only emit an escape sequence if the
5045 requested style is different than the current applied style.
5046 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5047 current applied_style.
5048 (fputs_styled): Remove is_default check.
5049 (fputs_styled_unfiltered): Likewise.
5050 (vfprintf_styled_no_gdbfmt): Likewise.
5052 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5054 * remote.h (remote_debug_printf): New.
5055 (remote_debug_printf_nofunc): New.
5056 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5057 * remote.c: Use above macros throughout file.
5059 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5061 * remote.h (remote_debug): Change to bool.
5062 * remote.c (remote_debug): Change to bool.
5063 (_initialize_remote): Adjust.
5065 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5067 * target.h (remote_debug): Move to...
5068 * remote.h (remote_debug): ... here.
5069 * top.c (remote_debug): Move to...
5070 * remote.c (remote_debug): ... here.
5071 * remote-sim.c: Include remote.h.
5073 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5075 * cli/cli-cmds.c (show_remote_debug): Remove.
5076 (show_remote_timeout): Remove.
5077 (_initialize_cli_cmds): Don't register commands.
5078 * remote.c (show_remote_debug): Move here.
5079 (show_remote_timeout): Move here.
5080 (_initialize_remote): Register commands.
5082 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5084 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5085 type::objfile method instead.
5087 2021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5089 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5090 use the type::is_objfile_owned method.
5092 2021-01-22 Simon Marchi <simon.marchi@efficios.com>
5094 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5095 (TYPE_OWNER): Remove.
5096 (TYPE_OBJFILE): Adjust.
5097 (struct main_type) <flag_objfile_owned>: Rename to...
5098 <m_flag_objfile_owned>: ... this.
5099 <owner>: Rename to...
5100 <m_owner>: ... this.
5101 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5103 (TYPE_ALLOC): Adjust.
5104 * gdbtypes.c (alloc_type): Adjust.
5105 (alloc_type_arch): Adjust.
5106 (alloc_type_copy): Adjust.
5107 (get_type_arch): Adjust.
5108 (smash_type): Adjust.
5109 (lookup_array_range_type): Adjust.
5110 (recursive_dump_type): Adjust.
5111 (copy_type_recursive): Adjust.
5112 * compile/compile-c-types.c (convert_func): Adjust.
5113 (convert_type_basic): Adjust.
5114 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5117 (language_arch_info::type_and_symbol::alloc_type_symbol):
5120 2021-01-21 Luis Machado <luis.machado@linaro.org>
5122 * coffread.c (enter_linenos): Passing string to complaint.
5123 * valops.c (value_assign): Make array view.
5125 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5127 * auto-load.h (debug_auto_load): Move here.
5128 (auto_load_debug_printf): New.
5129 * auto-load.c: Use auto_load_debug_printf.
5130 (debug_auto_load): Move to header.
5131 * linux-thread-db.c (try_thread_db_load): Use
5132 auto_load_debug_printf.
5133 * main.c (captured_main_1): Likewise.
5135 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5137 * f-valprint.c (f77_array_offset_tbl): Remove.
5139 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5141 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5143 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5145 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5148 2021-01-21 Hannes Domani <ssbssa@yahoo.de>
5151 * python/py-breakpoint.c (bppy_get_location): Handle
5152 bp_hardware_breakpoint.
5153 (bppy_init): Likewise.
5154 (gdbpy_breakpoint_created): Likewise.
5156 2021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5158 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5160 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5162 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5163 (_initialize_gdb_bfd): Adjust.
5165 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5168 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5170 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5172 * dwarf2/read.c (follow_die_offset): Add logging.
5173 (dwarf2_per_objfile::age_comp_units): Add logging.
5175 2021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5177 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5178 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5179 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5180 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5181 * arm-tdep.c (struct frame_unwind): Make static.
5182 * auto-load.c (auto_load_safe_path_vec): Make static.
5183 * csky-tdep.c (csky_stub_unwind): Make static.
5184 * gdbarch.c (gdbarch_data_registry): Make static.
5185 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5186 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5187 * i386-tdep.c (i386_frame_setup_skip_insns,
5188 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5190 * infrun.c (observer_mode): Make static.
5191 * linux-nat.c (sigchld_action): Make static.
5192 * linux-thread-db.c (thread_db_list): Make static.
5193 * maint-test-options.c (maintenance_test_options_list):
5194 * mep-tdep.c (mep_csr_registers): Make static.
5195 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5196 (stats): Make static.
5197 * nat/linux-osdata.c (struct osdata_type): Make static.
5198 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5199 * progspace.c (last_program_space_num): Make static.
5200 * python/py-param.c (struct parm_constant): Remove struct type
5202 (parm_constants): Make static.
5203 * python/py-record-btrace.c (btpy_list_methods): Make static.
5204 * python/py-record.c (recpy_gap_type): Make static.
5205 * record.c (record_goto_cmdlist): Make static.
5206 * regcache.c (regcache_descr_handle): Make static.
5207 * registry.h (DEFINE_REGISTRY): Make definition static.
5208 * symmisc.c (std_in, std_out, std_err): Make static.
5209 * top.c (previous_saved_command_line): Make static.
5210 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5212 * unittests/command-def-selftests.c (nr_duplicates,
5213 nr_invalid_prefixcmd, lists): Make static.
5214 * unittests/observable-selftests.c (test_notification): Make
5216 * unittests/optional/assignment/1.cc (counter): Make static.
5217 * unittests/optional/assignment/2.cc (counter): Make static.
5218 * unittests/optional/assignment/3.cc (counter): Make static.
5219 * unittests/optional/assignment/4.cc (counter): Make static.
5220 * unittests/optional/assignment/5.cc (counter): Make static.
5221 * unittests/optional/assignment/6.cc (counter): Make static.
5223 2021-01-20 Joel Sherrill <joel@rtems.org>
5226 * remote.c (struct remote_thread_info) <resume_state>: Rename
5228 <get_resume_state>: ... this.
5229 (remote_target::resume): Adjust.
5230 (remote_target::commit_resume): Adjust.
5231 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5233 2021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5234 Tom Tromey <tom@tromey.com>
5236 * stap-probe.c (stap_parse_single_operand): Handle '!'
5238 (stap_parse_argument_conditionally): Likewise.
5239 Skip spaces after processing open-parenthesis sub-expression.
5240 (stap_parse_argument_1): Skip spaces after call to
5241 stap_parse_argument_conditionally.
5242 Handle case when right-side expression is a parenthesized
5244 Skip spaces after call to stap_parse_argument_1.
5246 2021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5248 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5250 2021-01-19 Luis Machado <luis.machado@linaro.org>
5252 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5253 memory and save data.
5254 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5255 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5256 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5257 (trad_frame_value_bytes_p): Remove.
5258 (trad_frame_reset_saved_regs): Adjust documentation.
5259 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5260 constructor and reset the state of the registers.
5261 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5262 (trad_frame_value_bytes_p, trad_frame_set_value)
5263 (trad_frame_set_realreg, trad_frame_set_addr)
5264 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5265 (trad_frame_set_reg_realreg): Update to call member function.
5266 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5267 (trad_frame_get_prev_register): Likewise.
5269 * aarch64-tdep.c (aarch64_analyze_prologue)
5270 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5271 (aarch64_prologue_prev_register): Update to use member functions.
5272 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5273 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5274 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5275 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5276 (arm_make_epilogue_frame_cache): Likewise.
5277 * avr-tdep.c (avr_frame_unwind_cache)
5278 (avr_frame_prev_register): Likewise.
5279 * cris-tdep.c (cris_scan_prologue): Likewise.
5280 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5281 * frv-tdep.c (frv_analyze_prologue): Likewise.
5282 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5283 * lm32-tdep.c (lm32_frame_cache): Likewise.
5284 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5285 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5286 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5287 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5288 (reset_saved_regs): Adjust to set realreg.
5289 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5290 call member functions.
5291 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5292 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5293 (s390_backchain_frame_unwind_cache): Likewise.
5294 * score-tdep.c (score7_analyze_prologue)
5295 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5296 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5297 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5298 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5299 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5300 * tilegx-tdep.c (tilegx_analyze_prologue)
5301 (tilegx_frame_cache): Likewise.
5302 * v850-tdep.c (v850_frame_cache): Likewise.
5303 * vax-tdep.c (vax_frame_cache): Likewise.
5305 2021-01-19 Luis Machado <luis.machado@linaro.org>
5307 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5309 (put_frame_register_bytes): Likewise.
5310 Adjust documentation.
5311 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5312 (safe_frame_unwind_memory): Likewise.
5313 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5314 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5316 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5317 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5318 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5319 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5320 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5321 * dwarf2/loc.c (rw_pieced_value): Likewise.
5322 * hppa-tdep.c (hppa_frame_cache): Likewise.
5323 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5324 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5325 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5326 (i386_linux_rt_sigtramp_start): Likewise.
5327 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5328 * i386-tdep.c (i386_register_to_value): Likewise.
5329 * i387-tdep.c (i387_register_to_value): Likewise.
5330 * ia64-tdep.c (ia64_register_to_value): Likewise.
5331 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5332 (m32r_linux_rt_sigtramp_start): Likewise.
5333 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5334 * m68k-tdep.c (m68k_register_to_value): Likewise.
5335 * mips-tdep.c (mips_register_to_value)
5336 (mips_value_to_register): Likewise.
5337 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5338 (ppcfbsd_sigtramp_frame_cache): Likewise.
5339 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5340 (ppcobsd_sigtramp_frame_cache): Likewise.
5341 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5342 (rs6000_register_to_value): Likewise.
5343 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5344 * tramp-frame.c (tramp_frame_start): Likewise.
5345 * valops.c (value_assign): Likewise.
5347 2021-01-19 Luis Machado <luis.machado@linaro.org>
5349 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5351 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5352 instead of buffer and size.
5353 (trad_frame_set_reg_value_bytes): Likewise.
5354 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5355 (trad_frame_set_value_bytes): Likewise.
5357 2021-01-18 Mike Frysinger <vapier@gentoo.org>
5359 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5361 2021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5363 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5364 (riscv_fbsd_gregset): Use riscv_supply_regset.
5365 (riscv_fbsd_fpregset): Likewise.
5366 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5367 (riscv_linux_fregset): Likewise.
5368 * riscv-tdep.c (riscv_supply_regset): Define new function.
5369 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5371 2021-01-18 Tom de Vries <tdevries@suse.de>
5374 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5376 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5379 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5381 * remote.c (class remote_target) <remote_hostio_send_command,
5382 remote_hostio_parse_result>: Constify parameter.
5383 (remote_hostio_parse_result): Likewise.
5384 (remote_target::remote_hostio_send_command): Adjust.
5385 (remote_target::remote_hostio_pread_vFile): Adjust.
5386 (remote_target::fileio_readlink): Adjust.
5387 (remote_target::fileio_fstat): Adjust.
5389 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5391 * remote.c (remote_target::start_remote): Move wait_status to
5394 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5396 * remote.c (class remote_target):
5397 <add_current_inferior_and_thread>: Constify parameter.
5398 (stop_reply_extract_thread): Likewise.
5399 (remote_target::get_current_thread): Likewise.
5400 (remote_target::add_current_inferior_and_thread): Likewise.
5402 2021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5404 * remote.c (class remote_target)
5405 <remote_unpack_thread_info_response,
5406 parse_threadlist_response>: Constify parameter and/or return
5407 value and or local variable.
5408 (stub_unpack_int): Likewise.
5409 (unpack_nibble): Likewise.
5410 (unpack_byte): Likewise.
5411 (unpack_int): Likewise.
5412 (unpack_string): Likewise.
5413 (unpack_threadid): Likewise.
5414 (remote_target::remote_unpack_thread_info_response): Likewise.
5415 (remote_target::parse_threadlist_response): Likewise.
5417 2021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5419 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5421 2021-01-14 Lancelot Six <lsix@lancelotsix.com>
5423 * MAINTAINERS (Write After Approval): Add myself.
5425 2021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5427 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5428 because is_trivially_default_constructible was first implemented with
5431 2021-01-14 Tom de Vries <tdevries@suse.de>
5433 PR breakpoints/27151
5434 * objfiles.h (in_plt_section): Handle .plt.sec.
5436 2021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5440 (remote_target::select_thread_for_ambiguous_stop_reply): New
5442 (remote_target::process_stop_reply): Call
5443 select_thread_for_ambiguous_stop_reply.
5445 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5447 * record-btrace.c (class record_btrace_target): Remove.
5448 (record_btrace_target::commit_resume): Remove.
5449 * record-full.c (class record_full_target): Remove.
5450 (record_full_target::commit_resume): Remove.
5452 2021-01-13 Simon Marchi <simon.marchi@efficios.com>
5454 * remote.c (enum class resume_state): New.
5455 (struct resumed_pending_vcont_info): New.
5456 (struct remote_thread_info) <resume_state, set_not_resumed,
5457 set_resumed_pending_vcont, resumed_pending_vcont_info,
5458 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5460 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5461 (remote_target::remote_add_thread): Adjust.
5462 (remote_target::process_initial_stop_replies): Adjust.
5463 (remote_target::resume): Adjust.
5464 (remote_target::commit_resume): Rely on state in
5465 remote_thread_info and not on tp->executing.
5466 (remote_target::process_stop_reply): Adjust.
5468 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5470 * arc-tdep.h (arc_debug_printf): New.
5471 * arc-tdep.c: Use arc_debug_printf.
5472 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5473 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5474 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5476 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5478 * arc-tdep.h (arc_debug): Change type to bool.
5479 * arc-tdep.c (arc_debug): Change type to bool.
5480 (arc_analyze_prologue): Adjust.
5481 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5482 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5484 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5486 * auto-load.c (auto_load_objfile_script_1): Use bool.
5487 (execute_script_contents): Use bool.
5489 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5491 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5493 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5495 * extension-priv.h (struct extension_language_script_ops)
5496 <auto_load_enabled>: Return bool.
5497 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5499 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5501 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5503 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5504 move comment to header.
5505 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5507 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5508 move comment to header.
5510 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5512 * auto-load.h (file_is_auto_load_safe): Change return type to
5513 bool, move comment here.
5514 * auto-load.c (file_is_auto_load_safe): Change return type and
5515 advice_printed to bool. Move comment to header.
5517 2021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5519 * jit.c (jit_debug_printf): New, use throughout file.
5521 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5523 * infrun.c (normal_stop): Fix indentation.
5525 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5527 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5529 * symfile.h: ... here.
5530 * symfile.c: Update doc.
5532 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5534 * target.h (baud_rate, serial_parity): Move declarations...
5535 * serial.h: ... here.
5536 * main.c: Include serial.h.
5537 * serial.c (baud_rate, serial_parity): Update doc.
5539 2021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5541 * top.c (pre_init_ui_hook): Remove.
5543 2021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5545 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5546 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5547 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5548 * features/aarch64-fpu.xml: Add bfloat16 type.
5550 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5552 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5554 2021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5556 * f-exp.y (dot_ops): Rename to...
5557 (fortran_operators): ...this. Add a header comment. Add symbol
5559 (yylex): Update to use fortran_operators not dot_ops. Remove
5560 special handling for '**', this is now included in
5563 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5565 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5566 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5567 * aarch64-tdep.c: Use aarch64_debug_printf.
5569 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5571 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5574 2021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5576 * jit.c (jit_debug): Change type to bool.
5577 (_initialize_jit): Adjust.
5579 2021-01-09 Tom Tromey <tom@tromey.com>
5582 * compile/compile.c (compile_to_object): Avoid crash when
5583 osabi_triplet_regexp returns NULL.
5585 2021-01-09 Tom Tromey <tom@tromey.com>
5587 * tracepoint.h (class collection_list) <append_exp>: Take a
5589 * tracepoint.c (collection_list::append_exp): Take a std::string.
5590 (encode_actions_1): Update.
5592 2021-01-08 Tom Tromey <tromey@adacore.com>
5594 * parse.c (parse_expression): Add void_context_p parameter. Use
5595 parse_exp_in_context.
5596 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5598 (print_command, call_command): Update.
5599 * expression.h (parse_expression): Add void_context_p parameter.
5601 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5603 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5604 for internalvar components that have a dynamic location.
5606 2021-01-08 Tom de Vries <tdevries@suse.de>
5609 * breakpoint.c (create_exception_master_breakpoint_probe)
5610 (create_exception_master_breakpoint_hook): Factor out
5612 (create_exception_master_breakpoint): ... here. Only try to install
5613 the master exception breakpoint in objfile.debug using the
5614 _Unwind_DebugHook method, if the install using probes in objfile
5617 2021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5619 * f-lang.c (fortran_value_subarray): Call value_from_component.
5621 2021-01-07 Mike Frysinger <vapier@gentoo.org>
5623 * remote-sim.c: Include memory-map.h.
5624 (gdbsim_target): Define memory_map override.
5625 (gdbsim_target::memory_map): Define.
5627 2021-01-07 Tom Tromey <tromey@adacore.com>
5629 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5631 2021-01-07 Tom Tromey <tromey@adacore.com>
5633 * ada-lang.c (add_component_interval): Start loop using vector's
5636 2021-01-06 Tom Tromey <tromey@adacore.com>
5638 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5640 * valarith.c (fixed_point_binop): Handle multiplication
5641 and division specially.
5642 * valops.c (value_to_gdb_mpq): New function.
5643 (value_cast_to_fixed_point): Use it.
5645 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5647 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5648 Call wnoutrefresh instead of tui_win_info::refresh_window.
5650 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5652 * tui/tui-source.c (tui_source_window::show_line_number):
5653 Redraw second space after line number.
5655 2021-01-05 Hannes Domani <ssbssa@yahoo.de>
5658 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5659 Fix source pad size in prefresh.
5660 (tui_source_window_base::show_source_content): Grow source pad
5663 2021-01-04 Mike Frysinger <vapier@gentoo.org>
5665 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5666 (bfin_frame_align): Use align_down.
5668 2021-01-04 Tom de Vries <tdevries@suse.de>
5670 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5671 terminators that do not terminate anything.
5673 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5675 * debug.c (debug_print_depth): New.
5676 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5677 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5678 * infrun.c (start_step_over): Use
5679 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5680 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5681 INFRUN_SCOPED_DEBUG_START_END.
5682 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5684 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5686 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5688 2021-01-04 Simon Marchi <simon.marchi@efficios.com>
5690 * utils.c (vfprintf_unfiltered): Print timestamp only when
5691 previous debug output ended with a newline.
5693 2021-01-04 Luis Machado <luis.machado@linaro.org>
5695 Update all users of trad_frame_saved_reg to use the new member
5698 Remote all struct keywords from declarations of trad_frame_saved_reg
5699 types, except on forward declarations.
5701 * aarch64-tdep.c: Update.
5702 * alpha-mdebug-tdep.c: Update.
5703 * alpha-tdep.c: Update.
5704 * arc-tdep.c: Update.
5705 * arm-tdep.c: Update.
5706 * avr-tdep.c: Update.
5707 * cris-tdep.c: Update.
5708 * csky-tdep.c: Update.
5709 * frv-tdep.c: Update.
5710 * hppa-linux-tdep.c: Update.
5711 * hppa-tdep.c: Update.
5712 * hppa-tdep.h: Update.
5713 * lm32-tdep.c: Update.
5714 * m32r-linux-tdep.c: Update.
5715 * m32r-tdep.c: Update.
5716 * m68hc11-tdep.c: Update.
5717 * mips-tdep.c: Update.
5718 * moxie-tdep.c: Update.
5719 * riscv-tdep.c: Update.
5720 * rs6000-tdep.c: Update.
5721 * s390-linux-tdep.c: Update.
5722 * s390-tdep.c: Update.
5723 * score-tdep.c: Update.
5724 * sparc-netbsd-tdep.c: Update.
5725 * sparc-sol2-tdep.c: Update.
5726 * sparc64-fbsd-tdep.c: Update.
5727 * sparc64-netbsd-tdep.c: Update.
5728 * sparc64-obsd-tdep.c: Update.
5729 * sparc64-sol2-tdep.c: Update.
5730 * tilegx-tdep.c: Update.
5731 * v850-tdep.c: Update.
5732 * vax-tdep.c: Update.
5734 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5735 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5737 * trad-frame.c: Update.
5738 Remove TF_REG_* enum.
5739 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5740 a trivially-constructible struct.
5741 (trad_frame_reset_saved_regs): Adjust to use member function.
5742 (trad_frame_value_p): Likewise.
5743 (trad_frame_addr_p): Likewise.
5744 (trad_frame_realreg_p): Likewise.
5745 (trad_frame_value_bytes_p): Likewise.
5746 (trad_frame_set_value): Likewise.
5747 (trad_frame_set_realreg): Likewise.
5748 (trad_frame_set_addr): Likewise.
5749 (trad_frame_set_unknown): Likewise.
5750 (trad_frame_set_value_bytes): Likewise.
5751 (trad_frame_get_prev_register): Likewise.
5752 * trad-frame.h: Update.
5753 (trad_frame_saved_reg_kind): New enum.
5754 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5755 <m_kind, m_reg>: New member fields.
5756 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5757 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5758 <is_addr, is_unknown, is_value_bytes>: New member functions.
5760 2021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5762 * target-float.c: Fix typos.
5764 2021-01-02 Hannes Domani <ssbssa@yahoo.de>
5766 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5768 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5770 * gdbarch.sh: Update copyright year range.
5772 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5774 Update copyright year range in copyright header of all GDB files.
5776 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5778 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5779 to the list of directories to update.
5781 2021-01-01 Joel Brobecker <brobecker@adacore.com>
5783 * top.c (print_gdb_version): Update copyright year.
5785 2021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
5787 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
5789 For older changes see ChangeLog-2020.
5795 version-control: never