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