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