]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: add lookup_cmd_exact to simplify a common pattern
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4cf88725
TV
12021-05-07 Tom de Vries <tdevries@suse.de>
2
3 PR symtab/26327
4 * dwarf2/read.c (struct dwarf2_cu): Remove ancestor.
5 (dwarf2_cu::get_builder): Remove ancestor-related code.
6 (new_symbol): Remove code supporting pre-4.1 gcc that show arguments
7 of inlined functions as locals.
8 (follow_die_offset, follow_die_sig_1): Remove setting of ancestor.
9
9589edb8
AB
102021-05-07 Andrew Burgess <andrew.burgess@embecosm.com>
11
12 * guile/guile-internal.h (gdbscm_safe_source_script): Change
13 function return type.
14 * guile/guile.c (gdbscm_source_script): Update to handle change in
15 gdbscm_safe_source_script.
16 * guile/scm-objfile.c (gdbscm_source_objfile_script): Likewise.
17 * guile/scm-safe-call.c (gdbscm_safe_source_script): Change return
18 type.
19
ec66d6ea
SM
202021-05-06 Simon Marchi <simon.marchi@polymtl.ca>
21
22 * inferior.h (class inferior) <args>: Change type to
23 unique_xmalloc_ptr.
24 * inferior.c (inferior::~inferior): Don't free args.
25 * infcmd.c (get_inferior_args): Adjust.
26 (set_inferior_args): Adjust.
27
0618ecf6
AB
282021-05-06 Andrew Burgess <andrew.burgess@embecosm.com>
29
30 * guile/scm-breakpoint.c (bpscm_print_breakpoint_smob): Only print
31 breakpoint locations when the breakpoint actually has a location.
32
79aabb73
TBA
332021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
34
35 * mi/mi-cmd-break.c (mi_cmd_break_condition): New function.
36 * mi/mi-cmds.c: Change the binding of "-break-condition" to
37 mi_cmd_break_condition.
38 * mi/mi-cmds.h (mi_cmd_break_condition): Declare.
39 * breakpoint.h (set_breakpoint_condition): Declare a new
40 overload.
41 * breakpoint.c (set_breakpoint_condition): New overloaded function
42 extracted out from ...
43 (condition_command): ... this.
44 * NEWS: Mention the change.
45
10e578d7
TBA
462021-05-06 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
47
48 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Recognize the
49 '--force-condition' flag to force the condition in the
50 '-break-insert' and '-dprintf-insert' commands.
51 * NEWS: Mention the change.
52
225bda24
TV
532021-05-04 Tom de Vries <tdevries@suse.de>
54
55 PR guile/27806
56 * guile/guile.c (gdbscm_initialize): Don't let guile change libgmp
57 memory functions.
58
b8efb248
TT
592021-04-30 Tom Tromey <tom@tromey.com>
60
61 * dwarf2/read.c (dwarf2_initialize_objfile): Update.
62 (add_signatured_type_cu_to_table): Remove.
63 (create_debug_type_hash_table): Assume dwo_file is non-null.
64 (create_debug_types_hash_table): Update comment.
65 (create_all_type_units): Remove.
66 (sort_tu_by_abbrev_offset): Update comment.
67 (build_type_psymtabs): Rename from build_type_psymtabs_1.
68 (build_type_psymtabs): Remove.
69 (process_skeletonless_type_unit, dwarf2_build_psymtabs_hard):
70 Update.
71 (read_comp_units_from_section): Add types_htab, section_kind
72 parameters.
73 (create_all_comp_units): Read type units.
74
91eea9cc
TT
752021-04-30 Tom Tromey <tom@tromey.com>
76
77 * dwarf2/read.h (struct tu_stats) <nr_tus>: New member.
78 (struct dwarf2_per_bfd) <get_cutu, get_tu>: Remove
79 <get_cu>: Now inline.
80 <all_type_units>: Remove.
81 * dwarf2/read.c (dwarf2_per_bfd::~dwarf2_per_bfd): Update.
82 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
83 (dwarf2_per_bfd::get_tu): Remove.
84 (dwarf2_per_bfd::allocate_signatured_type): Update nr_tus.
85 (create_signatured_type_table_from_index)
86 (create_signatured_type_table_from_debug_names)
87 (dw2_symtab_iter_next, dwarf2_base_index_functions::print_stats)
88 (dwarf2_base_index_functions::expand_all_symtabs)
89 (dw2_expand_marked_cus, dw_expand_symtabs_matching_file_matcher)
90 (dwarf2_base_index_functions::map_symbol_filenames)
91 (dw2_debug_names_iterator::next, dwarf2_initialize_objfile)
92 (add_signatured_type_cu_to_table, create_all_type_units)
93 (add_type_unit, build_type_psymtabs_1, print_tu_stats)
94 (create_all_comp_units): Update.
95 * dwarf2/index-write.c (check_dwarf64_offsets, write_gdbindex)
96 (write_debug_names): Update.
97
0d305d5c
TT
982021-04-30 Tom Tromey <tom@tromey.com>
99
100 * dwarf2/read.h (struct dwarf2_per_bfd) <allocate_per_cu,
101 allocate_signatured_type>: Change return type.
102 <all_comp_units, all_type_units>: Hold unique pointers.
103 (struct dwarf2_per_cu_data): Add constructor and initializers.
104 (struct signatured_type): Derive from dwarf2_per_cu_data.
105 * dwarf2/read.c (type_unit_group): Derive from
106 dwarf2_per_cu_data.
107 (dwarf2_per_bfd::get_cutu, dwarf2_per_bfd::get_cu)
108 (dwarf2_per_bfd::get_tu)
109 (dwarf2_per_bfd::allocate_signatured_type)
110 (dwarf2_per_bfd::allocate_signatured_type)
111 (create_cu_from_index_list, create_cus_from_index_list)
112 (create_signatured_type_table_from_index)
113 (create_signatured_type_table_from_debug_names)
114 (create_addrmap_from_aranges)
115 (dwarf2_base_index_functions::find_last_source_symtab)
116 (dw_expand_symtabs_matching_file_matcher)
117 (dwarf2_gdb_index::expand_symtabs_matching)
118 (dwarf2_base_index_functions::map_symbol_filenames)
119 (create_cus_from_debug_names_list)
120 (dw2_debug_names_iterator::next)
121 (dwarf2_debug_names_index::expand_symtabs_matching)
122 (create_debug_type_hash_table, add_type_unit)
123 (fill_in_sig_entry_from_dwo_entry, lookup_dwo_signatured_type):
124 Update.
125 (allocate_type_unit_groups_table): Use delete.
126 (create_type_unit_group): Change return type. Use new.
127 (get_type_unit_group, build_type_psymtabs_1)
128 (build_type_psymtab_dependencies)
129 (process_skeletonless_type_unit, set_partial_user)
130 (dwarf2_build_psymtabs_hard, read_comp_units_from_section)
131 (create_cus_hash_table, queue_and_load_dwo_tu, follow_die_sig_1)
132 (read_signatured_type): Update.
133 (dwarf2_find_containing_comp_unit): Change type of
134 'all_comp_units'.
135 (run_test): Update.
136 (dwarf2_per_bfd::allocate_per_cu)
137 (dwarf2_per_bfd::allocate_signatured_type): Change return type.
138 Use new.
139 (add_signatured_type_cu_to_table): Update.
140 * dwarf2/index-write.c (write_one_signatured_type)
141 (check_dwarf64_offsets, psyms_seen_size, write_gdbindex)
142 (write_debug_names): Update.
143
1bee48c7
TT
1442021-04-30 Tom Tromey <tromey@adacore.com>
145
146 * nat/windows-nat.h (get_image_name): Don't declare.
147 * nat/windows-nat.c (get_image_name): Now static.
148
e228ef97
TT
1492021-04-30 Tom Tromey <tromey@adacore.com>
150
151 * windows-nat.c (windows_nat::handle_load_dll): Update.
152 (windows_nat_target::get_windows_debug_event): Call
153 dll_loaded_event.
154 (windows_add_all_dlls, windows_add_dll): Move to
155 nat/windows-nat.c.
156 * nat/windows-nat.h (handle_load_dll): Change parameters.
157 (dll_loaded_event, windows_add_all_dlls): Declare.
158 * nat/windows-nat.c (windows_add_dll, windows_add_all_dlls): Move
159 from windows-nat.c.
160 (dll_loaded_event): New function.
161
de071872
TT
1622021-04-30 Tom Tromey <tromey@adacore.com>
163
164 * nat/windows-nat.h (GenerateConsoleCtrlEvent): New define.
165 (GenerateConsoleCtrlEvent_ftype, GenerateConsoleCtrlEvent):
166 Declare.
167 * nat/windows-nat.c (GenerateConsoleCtrlEvent): Define.
168 (initialize_loadable): Initialize GenerateConsoleCtrlEvent.
169
9e439f00
TT
1702021-04-30 Tom Tromey <tromey@adacore.com>
171
172 * windows-nat.c: Move code to nat/windows-nat.[ch].
173 (_initialize_windows_nat): Call initialize_loadable.
174 * nat/windows-nat.h (AdjustTokenPrivileges)
175 (DebugActiveProcessStop, DebugBreakProcess)
176 (DebugSetProcessKillOnExit, EnumProcessModules)
177 (EnumProcessModulesEx, GetModuleInformation)
178 (GetModuleFileNameExA, GetModuleFileNameExW)
179 (LookupPrivilegeValueA, OpenProcessToken, GetConsoleFontSize)
180 (GetCurrentConsoleFont, Wow64SuspendThread)
181 (Wow64GetThreadContext, Wow64SetThreadContext)
182 (Wow64GetThreadSelectorEntry): Move from windows-nat.c.
183 (AdjustTokenPrivileges_ftype)
184 (DebugActiveProcessStop_ftype, DebugBreakProcess_ftype)
185 (DebugSetProcessKillOnExit_ftype, EnumProcessModules_ftype)
186 (EnumProcessModulesEx_ftype, GetModuleInformation_ftype)
187 (GetModuleFileNameExA_ftype, GetModuleFileNameExW_ftype)
188 (LookupPrivilegeValueA_ftype, OpenProcessToken_ftype)
189 (GetConsoleFontSize_ftype)
190 (GetCurrentConsoleFont_ftype, Wow64SuspendThread_ftype)
191 (Wow64GetThreadContext_ftype, Wow64SetThreadContext_ftype)
192 (Wow64GetThreadSelectorEntry_ftype): Likewise.
193 (initialize_loadable): Declare.
194 * nat/windows-nat.c (AdjustTokenPrivileges)
195 (DebugActiveProcessStop, DebugBreakProcess)
196 (DebugSetProcessKillOnExit, EnumProcessModules)
197 (EnumProcessModulesEx, GetModuleInformation, GetModuleFileNameExA)
198 (GetModuleFileNameExW, LookupPrivilegeValueA, OpenProcessToken)
199 (GetCurrentConsoleFont, GetConsoleFontSize, Wow64SuspendThread)
200 (Wow64GetThreadContext, Wow64SetThreadContext)
201 (Wow64GetThreadSelectorEntry): Define.
202 (bad, bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): Move
203 from windows-nat.c.
204 (initialize_loadable): Likewise, and rename.
205
1053c638
TT
2062021-04-30 Tom Tromey <tromey@adacore.com>
207
208 * windows-nat.c (bad_GetModuleFileNameEx): Remove define.
209 (bad_DebugActiveProcessStop, bad_DebugBreakProcess)
210 (bad_DebugSetProcessKillOnExit, bad_EnumProcessModules)
211 (bad_GetModuleFileNameExW, bad_GetModuleFileNameExA)
212 (bad_GetModuleInformation, bad_OpenProcessToken): Remove.
213 (bad): New template functions.
214 (_initialize_loadable): Update.
215
2869ac4b
TT
2162021-04-30 Tom Tromey <tromey@adacore.com>
217
218 * ada-lang.c (ada_index_type): Use ada_check_typedef.
219
e197dfae
SM
2202021-04-29 Simon Marchi <simon.marchi@efficios.com>
221
222 * auto-load.h: Split namespace declaration.
223
89ba430c
SM
2242021-04-29 Simon Marchi <simon.marchi@polymtl.ca>
225
226 * infrun.c (save_waitstatus): Move variables to inner scope.
227
8eb82ba1
AB
2282021-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
229
230 * NEWS: Fix typo and stray full stop.
231
db2534b7
TT
2322021-04-28 Tom Tromey <tromey@adacore.com>
233
234 * ada-exp.y (primary): Use new type for null pointer.
235 * ada-lang.c (ada_type_match): Remove "may_deref"
236 parameter. Handle null pointer.
237 (ada_args_match): Update.
238 * ada-valprint.c (ada_value_print_ptr, ada_value_print):
239 Handle null pointer.
240
edeaceda
AB
2412021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
242
243 * NEWS: Mention new commands.
244 * python/python.c (python_ignore_environment): New static global.
245 (show_python_ignore_environment): New function.
246 (set_python_ignore_environment): New function.
247 (python_dont_write_bytecode): New static global.
248 (show_python_dont_write_bytecode): New function.
249 (set_python_dont_write_bytecode): New function.
250 (_initialize_python): Register new commands.
251
041ca48e
AB
2522021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
253
254 * extension-priv.h (struct extension_language_ops): Rename
255 'finish_initialization' to 'initialize'.
256 * extension.c (finish_ext_lang_initialization): Renamed to...
257 (ext_lang_initialization): ...this, update comment, and updated
258 the calls to reflect the change in struct extension_language_ops.
259 * extension.h (finish_ext_lang_initialization): Renamed to...
260 (ext_lang_initialization): ...this.
261 * guile/guile.c (gdbscm_finish_initialization): Renamed to...
262 (gdbscm_initialize): ...this, update comment at definition.
263 (guile_extension_ops): Update.
264 * main.c (captured_main_1): Update call to
265 finish_ext_lang_initialization.
266 * python/python.c (gdbpy_finish_initialization): Rename to...
267 (gdbpy_initialize): ...this, update comment at definition, and
268 update call to do_finish_initialization.
269 (python_extension_ops): Update.
270 (do_finish_initialization): Rename to...
271 (do_initialize): ...this, and update comment.
272
1178f01a
AB
2732021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
274
275 * main.c (captured_main_1): Add a call to
276 finish_ext_lang_initialization.
277 * top.c (gdb_init): Remove call to finish_ext_lang_initialization.
278
880ae75a
AB
2792021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
280
281 * guile/guile.c (gdbscm_set_backtrace): Add declaration.
282 (gdbscm_finish_initialization): Add code moved from
283 _initialize_guile.
284 (_initialize_guile): Move code to gdbscm_finish_initialization.
285 * guile/scm-arch.c (gdbscm_initialize_arches): Move some code into
286 _initialize_scm_arch.
287 (_initialize_scm_arch): New function.
288 * guile/scm-block.c (gdbscm_initialize_blocks): Move some code
289 into _initialize_scm_block.
290 (_initialize_scm_block): New function.
291 * guile/scm-frame.c (gdbscm_initialize_frames): Move some code
292 into _initialize_scm_frame.
293 (_initialize_scm_frame): New function.
294 * guile/scm-objfile.c (gdbscm_initialize_objfiles): Move some code
295 into _initialize_scm_objfile.
296 (_initialize_scm_objfile): New function.
297 * guile/scm-progspace.c (gdbscm_initialize_pspaces): Move some
298 code into _initialize_scm_progspace.
299 (_initialize_scm_progspace): New function.
300 * guile/scm-symbol.c (gdbscm_initialize_symbols): Move some code
301 into _initialize_scm_symbol.
302 (_initialize_scm_symbol): New function.
303 * guile/scm-symtab.c (gdbscm_initialize_symtabs): Move some code
304 into _initialize_scm_symtab.
305 (_initialize_scm_symtab): New function.
306 * guile/scm-type.c (gdbscm_initialize_types): Move some code into
307 _initialize_scm_type.
308 (_initialize_scm_type): New function.
309
8e3685bf
AB
3102021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
311
312 * python/py-arch.c (_initialize_py_arch): New function.
313 (gdbpy_initialize_arch): Move code to _initialize_py_arch.
314 * python/py-block.c (_initialize_py_block): New function.
315 (gdbpy_initialize_blocks): Move code to _initialize_py_block.
316 * python/py-inferior.c (_initialize_py_inferior): New function.
317 (gdbpy_initialize_inferior): Move code to _initialize_py_inferior.
318 * python/py-objfile.c (_initialize_py_objfile): New function.
319 (gdbpy_initialize_objfile): Move code to _initialize_py_objfile.
320 * python/py-progspace.c (_initialize_py_progspace): New function.
321 (gdbpy_initialize_pspace): Move code to _initialize_py_progspace.
322 * python/py-registers.c (_initialize_py_registers): New function.
323 (gdbpy_initialize_registers): Move code to
324 _initialize_py_registers.
325 * python/py-symbol.c (_initialize_py_symbol): New function.
326 (gdbpy_initialize_symbols): Move code to _initialize_py_symbol.
327 * python/py-symtab.c (_initialize_py_symtab): New function.
328 (gdbpy_initialize_symtabs): Move code to _initialize_py_symtab.
329 * python/py-type.c (_initialize_py_type): New function.
330 (gdbpy_initialize_types): Move code to _initialize_py_type.
331 * python/py-unwind.c (_initialize_py_unwind): New function.
332 (gdbpy_initialize_unwind): Move code to _initialize_py_unwind.
333 * python/python.c (_initialize_python): Move call to
334 do_start_initialization to gdbpy_finish_initialization.
335 (gdbpy_finish_initialization): Add call to
336 do_start_initialization.
337
913832e9
AB
3382021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
339
340 * extension.c (struct scoped_default_signal): New struct.
341 (scoped_default_sigint): New typedef.
342 (finish_ext_lang_initialization): Make use of
343 scoped_default_sigint.
344
a3b5ef3e
AB
3452021-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
346
347 * main.c (captured_main_1): Don't pass argument to gdb_init.
348 * top.c (gdb_init): Remove unused argument, and add header
349 comment.
350 * top.h (gdb_init): Remove argument.
351
b9f90c72
LM
3522021-04-27 Luis Machado <luis.machado@linaro.org>
353
354 * psymtab.c (psymbol_functions::dump): Output newline.
355 Remove wrap.
356 * symmisc.c (dump_objfile): Likewise.
357
2c473def
MW
3582021-04-27 Michael Weghorn <m.weghorn@posteo.de>
359 Simon Marchi <simon.marchi@polymtl.ca>
360
361 * gdb/auto-load.c (_initialize_auto_load): 'Specify token
362 when attaching the 'auto_load_new_objfile' observer, so
363 other observers can specify it as a dependency.
364 * gdb/auto-load.h (struct token): Declare
365 'auto_load_new_objfile_observer_token' as token to be used
366 for the 'auto_load_new_objfile' observer.
367 * gdb/python/py-inferior.c (gdbpy_initialize_inferior): Make
368 'python_new_objfile' observer depend on 'auto_load_new_objfile'
369 observer, so it gets notified after the latter.
370
9a6e099f
MW
3712021-04-27 Michael Weghorn <m.weghorn@posteo.de>
372 Simon Marchi <simon.marchi@polymtl.ca>
373
374 * unittests/observable-selftests.c (dependency_test_counters):
375 New.
376 (observer_token0, observer_token1, observer_token2,
377 observer_token3, observer_token4, observer_token5): New.
378 (struct dependency_observer_data): New struct.
379 (observer_dependency_test_callback): New function.
380 (test_observers): New.
381 (run_dependency_test): New function.
382 (test_dependency): New.
383 (_initialize_observer_selftest): Register dependency test.
384
bea3329b
SM
3852021-04-26 Simon Marchi <simon.marchi@polymtl.ca>
386
387 PR gdb/27773
388 * cli/cli-dump.c (dump_binary_file): Check result of
389 gdb_fopen_cloexec.
390
c290cb01
ST
3912021-04-25 Sergei Trofimovich <siarheit@google.com>
392
393 * sparc-linux-nat.c (sparc_linux_nat_target): fix sparc build
394 by passing `process_stratum_target*` parameter.
395
fbb46296
LS
3962021-04-25 Lancelot Six <lsix@lancelotsix.com>
397
398 PR gdb/22640
399 * typeprint.h (struct type_print_options): Add print_in_hex
400 flag.
401 (struct print_offset_data): Add print_in_hex flag, add a
402 constructor accepting a type_print_options* argument.
403 * typeprint.c (type_print_raw_options, default_ptype_flags): Set
404 default value for print_in_hex.
405 (print_offset_data::indentation): Allow more horizontal space.
406 (print_offset_data::print_offset_data): Add ctor.
407 (print_offset_data::maybe_print_hole, print_offset_data::update):
408 Handle the print_in_hex flag.
409 (whatis_exp): Handle 'x' and 'd' flags.
410 (print_offsets_and_sizes_in_hex): Declare.
411 (set_print_offsets_and_sizes_in_hex): Create.
412 (show_print_offsets_and_sizes_in_hex): Create.
413 (_initialize_typeprint): Update help message for the ptype
414 command, register the 'set print type hex' and 'show print type
415 hex' commands.
416 * c-typeprint.c (c_print_type, c_type_print_base_struct_union)
417 (c_type_print_base): Construct the print_offset_data
418 object using the type_print_optons parameter.
419 * rust-lang.c (rust_language::print_type): Construct the
420 print_offset_data object using the type_print_optons parameter.
421 * NEWS: Mention the new flags of the ptype command.
422
18bbba46
LS
4232021-04-25 Lancelot Six <lsix@lancelotsix.com>
424
425 * typeprint.h (struct type_print_options): Move before
426 print_offset_data.
427
77393c9b
JB
4282021-04-25 Joel Brobecker <brobecker@adacore.com>
429
430 GDB 10.2 released.
431
98c897e3
SM
4322021-04-23 Simon Marchi <simon.marchi@polymtl.ca>
433
434 * observable.c (observer_debug): Change to bool.
435
9fc29955
AB
4362021-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
437
438 * dwarf2/read.c: Add 'unordered_set' include.
439 (dwarf2_base_index_functions::map_symbol_filenames): Replace
440 'visited' hash table with 'qfn_cache' unordered_set. Remove use
441 of per_Bfd->filenames_cache cache, and use function local
442 filenames_cache instead. Reindent.
443 * dwarf2/read.h (struct dwarf2_per_bfd) <filenames_cache>: Delete.
444
0406545d
SM
4452021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
446
447 * breakpoint.c (iterate_over_bp_locations): Change callback to
448 function view, remove data parameter.
449 * breakpoint.h (iterate_over_bp_locations): Likewise.
450 * record-full.c (record_full_sync_record_breakpoints): Remove
451 data parameter.
452
432ce4cf
TT
4532021-04-22 Tom Tromey <tom@tromey.com>
454
455 * c-typeprint.c (c_type_print_base_struct_union): Use
456 print_spaces_filtered_with_print_options.
457
e25d6d93
SM
4582021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
459
460 PR gdb/27757
461 * python/py-type.c (typy_range): Check that bounds are constant
462 before accessing them as such.
463 * guile/scm-type.c (gdbscm_type_range): Likewise.
464
4efeb0d3
TBA
4652021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
466
467 * Makefile.in (COMMON_SFILES): Remove continuations.c.
468 * inferior.c (inferior::add_continuation): New method, adapted
469 from 'add_inferior_continuation'.
470 (inferior::do_all_continuations): New method, adapted from
471 'do_all_inferior_continuations'.
472 (inferior::~inferior): Clear the list of continuations directly.
473 * inferior.h (class inferior) <continuations>: Rename into...
474 <m_continuations>: ...this and make private.
475 * continuations.c: Remove.
476 * continuations.h: Remove.
477 * event-top.c: Don't include "continuations.h".
478
479 Update the users below.
480 * inf-loop.c (inferior_event_handler)
481 * infcmd.c (attach_command)
482 (notice_new_inferior): Update.
483
c4c493de
TBA
4842021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
485
486 * inferior.h (class inferior) <continuations>: Change the type
487 to be an std::list of std::function's.
488 Update the references and uses below.
489 * continuations.c (struct continuation): Delete.
490 (make_continuation): Delete.
491 (do_my_continuations_1): Delete.
492 (do_my_continuations): Delete.
493 (discard_my_continuations_1): Delete.
494 (discard_my_continuations): Delete.
495 (add_inferior_continuation): Update.
496 (do_all_inferior_continuations): Update.
497 (discard_all_inferior_continuations): Update.
498 * continuations.h (add_inferior_continuation): Update to take
499 an std::function as the parameter.
500 * infcmd.c (struct attach_command_continuation_args): Delete.
501 (attach_command_continuation): Delete.
502 (attach_command_continuation_free_args): Delete.
503 (attach_command): Update.
504 (notice_new_inferior): Update.
505
1194676e
TBA
5062021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
507
508 * continuations.h: Update the general comment.
509 * inferior.h (class inferior) <continuations>: Update the comment.
510 * interps.c: Do not include "continuations.h".
511
35682f0a
TBA
5122021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
513
514 * continuations.h (do_all_inferior_continuations): Remove the 'err'
515 parameter. Update the references below.
516 * continuations.c (do_my_continuations_1)
517 (do_my_continuations)
518 (do_all_inferior_continuations): Update.
519 * inf-loop.c (inferior_event_handler): Update.
520 * infcmd.c (attach_command_continuation): Update.
521
6fee5eee
TBA
5222021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
523
524 * infcmd.c (attach_post_wait): Update the function comment.
525
27d0790a
TBA
5262021-04-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
527
528 * infcmd.c (attach_post_wait): Remove the unused parameter 'args'.
529 Update the references below.
530 (struct attach_command_continuation_args)
531 (attach_command_continuation)
532 (attach_command_continuation_free_args)
533 (attach_command)
534 (notice_new_inferior): Update to remove the reference to 'args'.
535
c39ebbf4
TV
5362021-04-22 Simon Marchi <simon.marchi@polymtl.ca>
537 Tom de Vries <tdevries@suse.de>
538
539 PR remote/27710
540 * remote.c (remote_target_is_non_stop_p): New function.
541 * remote.h (remote_target_is_non_stop_p): Declare.
542 * remote-notif.c (remote_async_get_pending_events_handler): Fix assert
543 to check non-stopness using notif_state->remote rather current target.
544
22f80c0f
TT
5452021-04-22 Tom Tromey <tom@tromey.com>
546
547 * rust-parse.c (rust_parser::parse_sizeof): Remove KW_MUT code.
548 (struct typed_val_int) <val>: Now ULONGEST.
549 (rust_parser::parse_array_type): Remove negative check.
550 (rust_lex_int_test): Change 'value' to ULONGEST.
551
05f3c0f0
AB
5522021-04-22 Andrew Burgess <andrew.burgess@embecosm.com>
553
554 * arch-utils.c (default_addressable_memory_unit_size): Return a
555 value based on bfd's bits per byte.
556
7e7a35fb
TT
5572021-04-21 Tom Tromey <tom@tromey.com>
558
559 * dwarf2/read.h (struct dwarf2_per_cu_data) <dwarf_version>: Now
560 unsigned char.
561 (struct dwarf2_per_cu_data): Rearrange.
562 * dwarf2/comp-unit.h (struct comp_unit_head) <version>: Now
563 unsigned char.
564 (struct comp_unit_head): Rearrange.
565 * dwarf2/comp-unit.c (read_comp_unit_head): Update.
566
ff507520
TV
5672021-04-21 Tom de Vries <tdevries@suse.de>
568
569 PR build/27681
570 * configure.ac: Remove --without-included-regex/--with-included-regex.
571 * config.in: Regenerate.
572 * configure: Regenerate.
573 * gdb_regex.h: Assume USE_INCLUDED_REGEX is defined.
574
10a636cc
TBA
5752021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
576
577 * breakpoint.h (create_breakpoint): Add a new parameter,
578 'force_condition'.
579 * breakpoint.c (create_breakpoint): Use the 'force_condition'
580 argument when 'parse_extra' is false to check if the condition
581 is invalid at all of the breakpoint locations.
582 Update the users below.
583 (break_command_1)
584 (dprintf_command)
585 (trace_command)
586 (ftrace_command)
587 (strace_command)
588 (create_tracepoint_from_upload): Update.
589 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
590 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Update.
591 * python/py-breakpoint.c (bppy_init): Update.
592 * python/py-finishbreakpoint.c (bpfinishpy_init): Update.
593
85c88e2a
TBA
5942021-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
595
596 * breakpoint.c (print_one_breakpoint_location): Display "N" for
597 disabled-by-condition locations on MI-like output.
598 (breakpoint_1): Do not display the disabled-by-condition footnote
599 if the output is MI-like.
600
fd34472c
FC
6012021-04-21 Frederic Cambus <fred@statdns.com>
602
603 * syscalls/update-netbsd.sh: Fix script name display in usage, and
604 update year range in generated copyright notices.
605
184dcd81
FW
6062021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
607
608 * c-exp.y (qualifier_seq_noopt): Replace qualifier_seq with
609 qualifier_seq_noopt.
610
525174e8
FW
6112021-04-20 Felix Willgerodt <felix.willgerodt@intel.com>
612
613 * c-exp.y (single_qualifier): Handle UNKNOWN_CPP_NAME.
614
f5dc2ee3
AB
6152021-04-19 Andrew Burgess <andrew.burgess@embecosm.com>
616
617 * producer.c: Replace 'regex' include with 'gdb_regex.h'.
618 (producer_is_icc): Replace use of std::regex with gdb's
619 compiled_regex.
620
42c2c694
TT
6212021-04-17 Tom Tromey <tom@tromey.com>
622
623 PR gdb/23743:
624 * dwarf2/read.c (class offset_view): New.
625 (struct symbol_table_slot): Remove.
626 (struct mapped_index) <symbol_table, constant_pool>: Change type.
627 <symbol_name_index, symbol_vec_index>: New methods.
628 <symbol_name_slot_invalid, symbol_name_at, symbol_name_count>:
629 Rewrite.
630 (read_gdb_index_from_buffer): Update.
631 (struct dw2_symtab_iterator) <vec>: Change type.
632 (dw2_symtab_iter_init_common, dw2_symtab_iter_init)
633 (dw2_symtab_iter_next, dw2_expand_marked_cus): Update.
634 * dwarf2/index-write.c (class data_buf) <append_data>: Remove.
635 <append_array, append_offset>: New methods.
636 (write_hash_table, add_address_entry, write_gdbindex_1)
637 (write_debug_names): Update.
638 * dwarf2/index-common.h (byte_swap, MAYBE_SWAP): Remove.
639
da314dd3
TT
6402021-04-17 Tom Tromey <tom@tromey.com>
641
642 * dwarf2/index-write.c (write_psymtabs_to_index): Check
643 partial_symtabs.
644
0b7b2c2a
TT
6452021-04-17 Tom Tromey <tom@tromey.com>
646
647 * psymtab.c (psymbol_functions::expand_matching_symbols): Rename
648 from map_matching_symbols. Change parameters.
649 * psympriv.h (struct psymbol_functions) <expand_matching_symbols>:
650 Rename from map_matching_symbols. Change parameters.
651 * dwarf2/read.c (struct dwarf2_gdb_index)
652 <expand_matching_symbols>: Rename from map_matching_symbols.
653 Change parameters.
654 (struct dwarf2_debug_names_index) <expand_matching_symbols>:
655 Rename from map_matching_symbols. Change parameters.
656 (dwarf2_gdb_index::expand_matching_symbols): Rename from
657 dw2_map_matching_symbols. Change parameters.
658 (dwarf2_gdb_index::expand_matching_symbols): Remove old
659 implementation.
660 (dwarf2_debug_names_index::expand_matching_symbols): Rename from
661 map_matching_symbols. Change parameters.
662 * objfiles.h (struct objfile) <expand_matching_symbols>: Rename
663 from map_matching_symbols. Change parameters.
664 * symfile-debug.c (objfile::expand_matching_symbols): Rename from
665 map_matching_symbols. Change parameters.
666 * ada-lang.c (map_matching_symbols): New function.
667 (add_nonlocal_symbols): Update.
668
90160b57
TT
6692021-04-17 Tom Tromey <tom@tromey.com>
670
671 * quick-symbol.h (struct quick_symbol_functions)
672 <expand_symtabs_with_fullname>: Remove.
673 * psymtab.c (psymbol_functions::expand_symtabs_with_fullname):
674 Remove.
675 * psympriv.h (struct psymbol_functions)
676 <expand_symtabs_with_fullname>: Remove.
677 * dwarf2/read.c (struct dwarf2_base_index_functions)
678 <expand_symtabs_with_fullname>: Remove.
679 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
680 Remove.
681 * objfiles.h (struct objfile) <expand_symtabs_with_fullname>:
682 Update comment.
683 * symfile-debug.c (objfile::expand_symtabs_with_fullname):
684 Rewrite.
685
7089bd88
TT
6862021-04-17 Tom Tromey <tom@tromey.com>
687
688 * symfile-debug.c (objfile::expand_symtabs_for_function):
689 Rewrite.
690 * quick-symbol.h (struct quick_symbol_functions)
691 <expand_symtabs_for_function>: Remove.
692 * psymtab.c (psymbol_functions::expand_symtabs_for_function):
693 Remove.
694 * psympriv.h (struct psymbol_functions)
695 <expand_symtabs_for_function>: Remove.
696 * objfiles.h (struct objfile) <expand_symtabs_for_function>:
697 Update comment.
698 * dwarf2/read.c (struct dwarf2_gdb_index)
699 <expand_symtabs_for_function>: Remove.
700 (struct dwarf2_debug_names_index) <expand_symtabs_for_function>:
701 Remove.
702 (find_slot_in_mapped_hash): Remove.
703 (dw2_symtab_iter_init_common): Merge with dw2_symtab_iter_init.
704 (dw2_symtab_iter_init): Remove one overload.
705 (dwarf2_gdb_index::expand_symtabs_for_function)
706 (dwarf2_debug_names_index::expand_symtabs_for_function): Remove.
707
536a40f3
TT
7082021-04-17 Tom Tromey <tom@tromey.com>
709
710 * symfile-debug.c (objfile::map_symtabs_matching_filename):
711 Rewrite.
712 * quick-symbol.h (struct quick_symbol_functions)
713 <map_symtabs_matching_filename>: Remove.
714 * psymtab.c (partial_map_expand_apply)
715 (psymbol_functions::map_symtabs_matching_filename): Remove.
716 * psympriv.h (struct psymbol_functions)
717 <map_symtabs_matching_filename>: Remove.
718 * objfiles.h (struct objfile) <map_symtabs_matching_filename>:
719 Update comment.
720 * dwarf2/read.c (struct dwarf2_base_index_functions)
721 <map_symtabs_matching_filename>: Remove.
722 (dw2_map_expand_apply)
723 (dwarf2_base_index_functions::map_symtabs_matching_filename):
724 Remove.
725
84d865e3
TT
7262021-04-17 Tom Tromey <tom@tromey.com>
727
728 * symfile-debug.c (objfile::lookup_symbol): Rewrite.
729 * quick-symbol.h (struct quick_symbol_functions) <lookup_symbol>:
730 Remove.
731 * psymtab.c (psymbol_functions::lookup_symbol): Remove.
732 * psympriv.h (struct psymbol_functions) <lookup_symbol>: Remove.
733 * objfiles.h (struct objfile) <lookup_symbol>: Add comment.
734 * dwarf2/read.c (struct dwarf2_gdb_index) <lookup_symbol>:
735 Remove.
736 (struct dwarf2_debug_names_index) <lookup_symbol>: Remove.
737 (dwarf2_gdb_index::lookup_symbol)
738 (dwarf2_debug_names_index::lookup_symbol): Remove.
739
3bfa51a7
TT
7402021-04-17 Tom Tromey <tom@tromey.com>
741
742 * symtab.c (global_symbol_searcher::expand_symtabs): Update.
743 * symmisc.c (maintenance_expand_symtabs): Update.
744 * symfile.c (expand_symtabs_matching): Update.
745 * symfile-debug.c (objfile::expand_symtabs_matching): Add 'domain'
746 parameter.
747 * quick-symbol.h (struct quick_symbol_functions)
748 <expand_symtabs_matching>: Add 'domain' parameter.
749 * psymtab.c (recursively_search_psymtabs)
750 (psymbol_functions::expand_symtabs_matching): Add 'domain'
751 parameter.
752 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
753 Add 'domain' parameter.
754 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
755 'domain' parameter.
756 * linespec.c (iterate_over_all_matching_symtabs): Update.
757 * dwarf2/read.c (struct dwarf2_gdb_index)
758 <expand_symtabs_matching>: Add 'domain' parameter.
759 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
760 'domain' parameter.
761 (dw2_expand_symtabs_matching)
762 (dwarf2_gdb_index::expand_symtabs_matching)
763 (dw2_debug_names_iterator)
764 (dwarf2_debug_names_index::expand_symtabs_matching): Add 'domain'
765 parameter.
766
03a8ea51
TT
7672021-04-17 Tom Tromey <tom@tromey.com>
768
769 * symtab.c (global_symbol_searcher::expand_symtabs)
770 (default_collect_symbol_completion_matches_break_on): Update.
771 * symmisc.c (maintenance_expand_symtabs): Update.
772 * symfile.h (expand_symtabs_matching): Add search_flags
773 parameter.
774 * symfile.c (expand_symtabs_matching): Add search_flags
775 parameter.
776 * symfile-debug.c (objfile::expand_symtabs_matching): Add
777 search_flags parameter.
778 * quick-symbol.h (struct quick_symbol_functions)
779 <expand_symtabs_matching>: Add search_flags parameter.
780 * python/py-symbol.c (gdbpy_lookup_static_symbols): Update.
781 * psymtab.c (recursively_search_psymtabs)
782 (psymbol_functions::expand_symtabs_matching): Add search_flags
783 parameter.
784 * psympriv.h (struct psymbol_functions) <expand_symtabs_matching>:
785 Add search_flags parameter.
786 * objfiles.h (struct objfile) <expand_symtabs_matching>: Add
787 search_flags parameter.
788 * linespec.c (iterate_over_all_matching_symtabs): Update.
789 * dwarf2/read.c (struct dwarf2_gdb_index)
790 <expand_symtabs_matching>: Add search_flags parameter.
791 (struct dwarf2_debug_names_index) <expand_symtabs_matching>: Add
792 search_flags parameter.
793 (dw2_map_matching_symbols): Update.
794 (dw2_expand_marked_cus, dw2_expand_symtabs_matching)
795 (dwarf2_gdb_index::expand_symtabs_matching): Add search_flags
796 parameter.
797 (dw2_debug_names_iterator): Change block_index to search flags.
798 <m_block_index>: Likewise.
799 (dw2_debug_names_iterator::next)
800 (dwarf2_debug_names_index::lookup_symbol)
801 (dwarf2_debug_names_index::expand_symtabs_for_function)
802 (dwarf2_debug_names_index::map_matching_symbols)
803 (dwarf2_debug_names_index::map_matching_symbols): Update.
804 (dwarf2_debug_names_index::expand_symtabs_matching): Add
805 search_flags parameter.
806 * ada-lang.c (ada_add_global_exceptions)
807 (collect_symbol_completion_matches): Update.
808
df35e626
TT
8092021-04-17 Tom Tromey <tom@tromey.com>
810
811 * symtab.c (default_collect_symbol_completion_matches_break_on):
812 Update.
813 * symfile.h (expand_symtabs_matching): Return bool.
814 * symfile.c (expand_symtabs_matching): Return bool.
815 * symfile-debug.c (objfile::expand_symtabs_matching): Return
816 bool.
817 * quick-symbol.h (expand_symtabs_exp_notify_ftype): Return bool.
818 (struct quick_symbol_functions) <expand_symtabs_matching>: Return
819 bool.
820 * psymtab.c (psymbol_functions::expand_symtabs_matching): Return
821 bool.
822 * psympriv.h (struct psymbol_functions)
823 <expand_symtabs_matching>: Return bool.
824 * objfiles.h (struct objfile) <expand_symtabs_matching>: Return
825 bool.
826 * dwarf2/read.c (struct dwarf2_gdb_index)
827 <expand_symtabs_matching>: Return bool.
828 (struct dwarf2_debug_names_index) <expand_symtabs_matching>:
829 Return bool.
830 (dw2_expand_symtabs_matching_symbol): Return bool.
831 (dw2_expand_symtabs_matching_one, dw2_expand_marked_cus)
832 (dw2_expand_symtabs_matching)
833 (dwarf2_gdb_index::expand_symtabs_matching)
834 (dwarf2_debug_names_index::expand_symtabs_matching)
835 (dwarf2_debug_names_index::expand_symtabs_matching): Return bool.
836
e357e990
TT
8372021-04-17 Tom Tromey <tom@tromey.com>
838
839 * quick-symbol.h (enum block_search_flag_values): New.
840 (block_search_flags): New enum flags type.
841
3cbc7ac3
TT
8422021-04-16 Tom Tromey <tom@tromey.com>
843
844 * rust-parse.c: New file.
845 * rust-exp.y: Remove.
846 * Makefile.in (COMMON_SFILES): Add rust-parse.c.
847 (SFILES): Remove rust-exp.y.
848 (YYFILES, local-maintainer-clean): Remove rust-exp.c.
849
1b6b755e
LM
8502021-04-16 Luis Machado <luis.machado@linaro.org>
851
852 * arch-utils.c (default_floatformat_for_type): Handle bfloat16.
853
c45ecc9d
JB
8542021-04-15 John Baldwin <jhb@FreeBSD.org>
855
856 * fbsd-nat.c (fbsd_lwp_debug_printf, fbsd_nat_debug_printf): New,
857 use throughout file.
858
a15a276b
TT
8592021-04-15 Tom Tromey <tromey@adacore.com>
860
861 * ada-valprint.c (ada_value_print_array): Handle optimized-out
862 arrays.
863
644a2e75
TT
8642021-04-15 Tom Tromey <tromey@adacore.com>
865
866 * printcmd.c (print_variable_and_value): Use
867 common_val_print_checked.
868
9e5e03df
TT
8692021-04-15 Tom Tromey <tromey@adacore.com>
870
871 * rust-exp.y (rust_parser::convert_ast_to_expression): Update.
872 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
873 Update.
874 * p-exp.y (variable): Update.
875 * m2-exp.y (variable): Update.
876 * go-exp.y (variable): Update.
877 * expprint.c (dump_for_expression): New overload.
878 * expop.h (check_objfile): New overload.
879 (check_constant): New overload.
880 (class var_value_operation): Use block_symbol.
881 <get_symbol>: Rewrite.
882 * eval.c (var_value_operation::evaluate)
883 (var_value_operation::evaluate_funcall)
884 (var_value_operation::evaluate_for_address)
885 (var_value_operation::evaluate_for_address)
886 (var_value_operation::evaluate_with_coercion)
887 (var_value_operation::evaluate_for_sizeof)
888 (var_value_operation::evaluate_for_cast): Update.
889 * d-exp.y (PrimaryExpression): Update.
890 * c-exp.y (variable): Update.
891 * ax-gdb.c (var_value_operation::do_generate_ax): Update.
892 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
893 (ada_var_value_operation::evaluate)
894 (ada_var_value_operation::resolve)
895 (ada_funcall_operation::resolve): Update.
896 * ada-exp.y (write_var_from_sym, write_object_renaming)
897 (write_ambiguous_var, write_var_or_type, write_name_assoc)
898 (maybe_overload): Update.
899 * ada-exp.h (class ada_var_value_operation) <get_block>: Rewrite.
900
5809fbf2
TT
9012021-04-15 Tom Tromey <tom@tromey.com>
902 Andrew Burgess <andrew.burgess@embecosm.com>
903
904 * NEWS: Add entry.
905 * main.c (captured_main_1): Call check_quiet_mode.
906 * top.c (startup_quiet): New global.
907 (check_quiet_mode): New function.
908 (show_startup_quiet): New function.
909 (init_main): Register new command.
910 * top.h (check_quiet_mode): Declare.
911
92e4e97a
AB
9122021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
913
914 PR cli/25956
915 * NEWS: Mention new early init files and command line options.
916 * config.in: Regenerate.
917 * configure: Regenerate.
918 * configure.ac: Define GDBEARLYINIT.
919 * main.c (get_earlyinit_files): New function.
920 (enum cmdarg_kind): Add CMDARG_EARLYINIT_FILE and
921 CMDARG_EARLYINIT_COMMAND.
922 (captured_main_1): Add support for new command line flags, and for
923 processing startup files.
924 (print_gdb_help): Include startup files in the output.
925
54b4dcc5
AB
9262021-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
927
928 * main.c (relocate_gdbinit_path_maybe_in_datadir): Rename to...
929 (relocate_file_path_maybe_in_datadir): ...this.
930 (class gdb_initfile_finder): New class.
931 (get_init_files): Now uses gdb_initfile_finder.
932 (print_gdb_help): Print 'None found' when there are no init files.
933
34dc0f95
TBA
9342021-04-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
935
936 * dwarf2/read.c (inherit_abstract_dies): Keep a reference to the
937 corresponding child of the abstract DIE when iterating the
938 children of the concrete DIE.
939
329534fd
TV
9402021-04-13 Tom de Vries <tdevries@suse.de>
941
942 * ui-style.c (read_semi_number, extended_color): Change idx parameter
943 type to regoff_t *.
944
d9d2ef05
LM
9452021-04-13 Luis Machado <luis.machado@linaro.org>
946
947 * rs6000-tdep.c (ppc_displaced_step_fixup): Use %s to print
948 hex values.
949
c8a37944
WS
9502021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
951
952 * rs6000-tdep.c: Add support for single-stepping of
953 prefixed instructions.
954
b722acca
WS
9552021-04-12 Will Schmidt <will_schmidt@vnet.ibm.com>
956
e3d528d7
WS
957 PR gdb/27525
958 * gdb/rs6000-tdep.c (ppc_displaced_step_fixup): Update to
959 handle the addpcis/lnia instruction.
960
9612021-04-05 Will Schmidt <will_schmidt@vnet.ibm.com>
962
b722acca
WS
963 * MAINTAINERS (Write After Approval): Add myself.
964
6ba4cb84
CL
9652021-4-12 Carl Love <cel@us.ibm.com>
966
967 * rs6000-tdep.c (rs6000_builtin_type_vec128): Add t_float128 variable.
968 (rs6000_builtin_type_vec128): Add append_composite_type_field for
969 float128.
970
d4717483
SM
9712021-04-12 Simon Marchi <simon.marchi@polymtl.ca>
972
973 * nat/windows-nat.c: Remove all code guarded by _WIN32_WCE.
974 * nat/windows-nat.h: Likewise.
975
b3885679
EZ
9762021-04-10 Eli Zaretskii <eliz@gnu.org>
977
978 * windows-nat.c (windows_nat::handle_load_dll): Call
979 windows_add_dll if get_image_name failed to glean the name of the
980 DLL by using the lpImageName pointer.
981 (windows_add_all_dlls): Now a thin wrapper around windows_add_dll.
982 (windows_add_dll): Now does what windows_add_all_dlls did before,
983 but also accepts an argument LOAD_ADDR, which, if non-NULL,
984 specifies the address where the DLL was loaded into the inferior,
985 and looks for the single DLL loaded at that address.
986
1ef6a596
LM
9872021-04-09 Luis Machado <luis.machado@linaro.org>
988
989 * nat/aarch64-mte-linux-ptrace.c: Update include file order.
990
83a559f7
DQ
9912021-04-08 Dominique Quatravaux <dominique.quatravaux@epfl.ch>
992
993 * darwin-nat.c (darwin_nat_target::resume): Remove status
994 variable.
995
16e311ab
FW
9962021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
997
998 * i386-tdep.c (i386_skip_prologue): Use symbol table to find the
999 prologue end for Intel compilers.
1000 * amd64-tdep.c (amd64_skip_prologue): Likewise.
1001 * producer.c (producer_is_icc_ge_19): New function.
1002 * producer.h (producer_is_icc_ge_19): New declaration.
1003
fbb3bcfc
FW
10042021-04-08 Felix Willgerodt <felix.willgerodt@intel.com>
1005
1006 * producer.c: (producer_is_icc): Update for new version scheme.
1007 (producer_parsing_tests): Update names and expected results.
1008 * producer.h: (producer_is_icc): Update comment accordingly.
1009
e97007b6
SM
10102021-04-07 Simon Marchi <simon.marchi@polymtl.ca>
1011
1012 * target.h (struct target_ops) <follow_fork>: Return void.
1013 (target_follow_fork): Likewise.
1014 * target.c (default_follow_fork): Likewise.
1015 (target_follow_fork): Likewise.
1016 * infrun.c (follow_fork_inferior): Adjust.
1017 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Return void.
1018 * fbsd-nat.c (fbsd_nat_target:::follow_fork): Likewise.
1019 * linux-nat.h (class linux_nat_target) <follow_fork>: Likewise.
1020 * linux-nat.c (linux_nat_target::follow_fork): Return void.
1021 * obsd-nat.h (class obsd_nat_target) <follow_fork>: Return void.
1022 * obsd-nat.c (obsd_nat_target::follow_fork): Likewise.
1023 * remote.c (class remote_target) <follow_fork>: Likewise.
1024 (remote_target::follow_fork): Likewise.
1025 * target-delegates.c: Re-generate.
1026
dc2b480f
WP
10272021-04-07 Weimin Pan <weimin.pan@oracle.com>
1028
1029 * ctfread.c (fetch_tid_type): New function, use throughout file.
1030 (read_forward_type): New function.
1031 (read_type_record): Call read_forward_type.
1032
0a703a4c
AB
10332021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1034
1035 * f-exp.h (class fortran_structop_operation): New class.
1036 * f-exp.y (exp): Create fortran_structop_operation instead of the
1037 generic structop_operation.
1038 * f-lang.c (fortran_undetermined::evaluate): Re-evaluate
1039 expression as EVAL_NORMAL if the result type was dynamic so we can
1040 extract the actual array bounds.
1041 (fortran_structop_operation::evaluate): New function.
1042
10432021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1044
1045 * eval.c (evaluate_subexp_standard): Remove
1046 EVAL_AVOID_SIDE_EFFECTS handling from STRUCTOP_STRUCT and
1047 STRUCTOP_PTR.
1048
30ab3586
AB
10492021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1050
1051 * valops.c (value_cast): Call value_deeply_equal before performing
1052 any cast.
1053
5e18990f
AB
10542021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1055
1056 * gdbtypes.c (types_equal): Move pointer equality check earlier in
1057 the function.
1058
56d467f4
CT
10592021-04-07 Caroline Tice <cmtice@google.com>
1060
1061 * dwarf2/read.c (try_open_dwop_file): Add path for the binary to
1062 the search paths used resolve relative location of .dwo file.
1063
1fd999d9
AB
10642021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1065
1066 * dwarf2/section.c (dwarf2_section_info::get_bfd_owner): Add an
1067 assert.
1068 (dwarf2_section_info::get_file_name): Add an assert.
1069 (dwarf2_section_info::read_string): Display a minimal, sane error
1070 when the dwarf2_section_info is not associated with a bfd section.
1071
79c02443
AB
10722021-04-07 Andrew Burgess <andrew.burgess@embecosm.com>
1073
1074 * top.c (staged_gdb_datadir): Update comment.
1075 (set_gdb_datadir): Copy the value of gdb_datadir back into
1076 staged_datadir.
1077 (init_main): Initialise staged_gdb_datadir.
1078
340d00fb
TV
10792021-04-06 Tom de Vries <tdevries@suse.de>
1080
1081 PR breakpoints/25884
1082 * infcmd.c (prepare_one_step): Using inline frame info to narrow
1083 stepping range.
1084
d811a7cf
TV
10852021-04-06 Tom de Vries <tdevries@suse.de>
1086
1087 PR tui/27680
1088 * tui/tui-disasm.c (len_without_escapes): Pass ptr pointing at escape
1089 to style.parse.
1090
306b445a
SM
10912021-04-04 Simon Marchi <simon.marchi@polymtl.ca>
1092
1093 * avr-tdep.c (avr_frame_unwind_cache): Use
1094 trad_frame_saved_reg::is_addr.
1095
9161c89a
SM
10962021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1097
1098 * objfiles.c (get_objfile_bfd_data): Remove objfile parameter,
1099 adjust callers.
1100
0072c873
SM
11012021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1102
1103 * psympriv.h (struct partial_symtab) <partial_symtab>: Change
1104 objfile parameter for objfile_per_bfd_storage, adjust callers.
1105 (struct standard_psymtab) <standard_psymtab>: Likewise.
1106 (struct legacy_psymtab) <legacy_psymtab>: Likewise.
1107 * psymtab.c (partial_symtab::partial_symtab): Likewise.
1108 * ctfread.c (struct ctf_psymtab): Likewise.
1109 * dwarf2/read.h (struct dwarf2_psymtab): Likewise.
1110 * dwarf2/read.c (struct dwarf2_include_psymtab): Likewise.
1111 (dwarf2_create_include_psymtab): Likewise.
1112 * objfiles.h (struct objfile_per_bfd_storage)
1113 <objfile_per_bfd_storage>: Add bfd parameter, adjust callers.
1114 <get_bfd>: New method.
1115 <m_bfd>: New field.
1116 * objfiles.c (get_objfile_bfd_data): Adjust.
1117
9984dd99
SM
11182021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1119
1120 * psymtab.c (partial_symtab::partial_symtab): Change
1121 last_objfile_name to be an std::string.
1122 * symfile.c (allocate_symtab): Likewise.
1123
4a4f97c1
SM
11242021-04-02 Simon Marchi <simon.marchi@polymtl.ca>
1125
1126 * objfiles.h (struct objfile_per_bfd_storage) <intern>: New
1127 methods.
1128 (struct objfile) <intern>: Use
1129 objfile::objfile_per_bfd_storage::intern.
1130
0672875f
SM
11312021-04-01 Simon Marchi <simon.marchi@efficios.com>
1132
1133 * gdbtypes.h (TYPE_FLAG_ENUM): Remove, replace all uses
1134 with type::is_flag_enum.
1135
9902b327
SM
11362021-04-01 Simon Marchi <simon.marchi@efficios.com>
1137
1138 * gdbtypes.h (struct type) <is_flag_enum,
1139 set_is_flag_enum>: New methods.
1140 (TYPE_FLAG_ENUM): Use type::is_flag_enum, change all
1141 write call sites to use type::set_is_flag_enum.
1142
3bc440a2
SM
11432021-04-01 Simon Marchi <simon.marchi@efficios.com>
1144
1145 * gdbtypes.h (TYPE_DECLARED_CLASS): Remove, replace all uses
1146 with type::is_declared_class.
1147
aa70e35c
SM
11482021-04-01 Simon Marchi <simon.marchi@efficios.com>
1149
1150 * gdbtypes.h (struct type) <is_declared_class,
1151 set_is_declared_class>: New methods.
1152 (TYPE_DECLARED_CLASS): Use type::is_declared_class, change all
1153 write call sites to use type::set_is_declared_class.
1154
bfb9f5dc
BS
11552021-02-28 Boris Staletic <boris.staletic@gmail.com>
1156
1157 * gdb/python/lib/gdb/__init__.py: Use importlib on python 3.4+
1158 to avoid deprecation warnings.
1159
733f5eea
ML
11602021-04-01 Martin Liska <mliska@suse.cz>
1161
1162 * cp-name-parser.y: Use startswith instead of strncmp.
1163 * m2-exp.y: Likewise.
1164 * macroexp.c (substitute_args): Likewise.
1165 * mi/mi-main.c (command_notifies_uscc_observer): Likewise.
1166 * rust-exp.y: Likewise.
1167
af82f89d
TT
11682021-03-31 Tom Tromey <tom@tromey.com>
1169
1170 * dwarf2/read.c (dwarf2_gdb_index::map_matching_symbols): Merge
1171 with dw2_map_matching_symbols.
1172 (dwarf2_gdb_index::expand_symtabs_matching): Merge with
1173 dw2_expand_symtabs_matching.
1174
3570682a
TT
11752021-03-31 Tom Tromey <tromey@adacore.com>
1176
1177 * dwarf2/stringify.h: Fix typo.
1178
8a91fbdf
SM
11792021-03-30 Simon Marchi <simon.marchi@polymtl.ca>
1180
1181 PR gdb/27541
1182 * dwarf2/read.c (dwarf2_has_info): Don't share dwarf2_per_bfd
1183 with objfiles using READNOW.
1184
9f67fc59
TT
11852021-03-29 Tom Tromey <tromey@adacore.com>
1186
1187 * top.c (check_frame_language_change): Update.
1188 * language.c (language_info): Remove parameter.
1189 * language.h (language_info): Remove parameter.
1190
9b8ffbf4
LM
11912021-03-29 Luis Machado <luis.machado@linaro.org>
1192
1193 * compile/compile.c (get_args): Don't add empty argv entries.
1194
25b48839
RO
11952021-03-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1196
1197 gdb:
1198 * procfs.c (procfs_target::attach): Define inf.
1199 Use it.
1200 (procfs_target::create_inferior): Likewise.
1201
edc02ceb
TT
12022021-03-28 Tom Tromey <tom@tromey.com>
1203
1204 * elfread.c (can_lazily_read_symbols): Move to dwarf2/read.c.
1205 (elf_symfile_read): Simplify.
1206 * dwarf2/read.c (struct lazy_dwarf_reader): Move from elfread.c.
1207 (make_lazy_dwarf_reader): New function.
1208 (make_dwarf_gdb_index, make_dwarf_debug_names): Now static.
1209 (dwarf2_initialize_objfile): Return void. Remove index_kind
1210 parameter. Push on 'qf' list.
1211 * dwarf2/public.h (dwarf2_initialize_objfile): Change return
1212 type. Remove 'index_kind' parameter.
1213 (make_dwarf_gdb_index, make_dwarf_debug_names): Don't declare.
1214
6e23d91a
TT
12152021-03-27 Tom Tromey <tom@tromey.com>
1216
1217 * elfread.c (elf_sym_fns_lazy_psyms): Don't declare.
1218
594b8948
TT
12192021-03-27 Tom Tromey <tom@tromey.com>
1220
1221 * elfread.c (elf_symfile_read): Don't clear 'qf'.
1222
efe1ecd8
LS
12232021-03-26 Lancelot Six <lsix@lancelotsix.com>
1224
1225 * contrib/gdb-add-index.sh: Avoid variable shadowing and get
1226 rid of 'local'.
1227
f4655dee
TT
12282021-03-26 Tom Tromey <tom@tromey.com>
1229
1230 * symtab.c (struct output_source_filename_data): Add 'output'
1231 method and operator().
1232 (output_source_filename_data::output): Rename from
1233 output_source_filename.
1234 (output_partial_symbol_filename): Remove.
1235 (info_sources_command): Update.
1236 (struct add_partial_filename_data): Add operator().
1237 (add_partial_filename_data::operator()): Rename from
1238 maybe_add_partial_symtab_filename.
1239 (make_source_files_completion_list): Update.
1240 * symfile.c (quick_symbol_functions): Update.
1241 * symfile-debug.c (objfile::map_symbol_filenames): Update.
1242 * quick-symbol.h (symbol_filename_ftype): Change type of 'fun' and
1243 'need_fullname'. Remove 'data' parameter.
1244 (struct quick_symbol_functions) <map_symbol_filenames>: Likewise.
1245 * psymtab.c (psymbol_functions::map_symbol_filenames): Update.
1246 * psympriv.h (struct psymbol_functions) <map_symbol_filenames>:
1247 Change type of 'fun' and 'need_fullname'. Remove 'data'
1248 parameter.
1249 * objfiles.h (struct objfile) <map_symbol_filenames>: Change type
1250 of 'fun' and 'need_fullname'. Remove 'data' parameter.
1251 * mi/mi-cmd-file.c (print_partial_file_name): Remove 'ignore'
1252 parameter.
1253 (mi_cmd_file_list_exec_source_files): Update.
1254 * dwarf2/read.c
1255 (dwarf2_base_index_functions::map_symbol_filenames): Update.
1256
2315bb2d
TT
12572021-03-26 Tom Tromey <tom@tromey.com>
1258
1259 * ada-lang.c (struct match_data): Add operator().
1260 (match_data::operator()): Rename from aux_add_nonlocal_symbols.
1261 (callback): Remove 'callback'.
1262
e2cd5ca4
TT
12632021-03-26 Tom Tromey <tom@tromey.com>
1264
1265 * psymtab.c (psymbol_functions::expand_symtabs_matching): Only
1266 call make_ignore_params once.
1267
cd43f63e
TT
12682021-03-26 Tom Tromey <tom@tromey.com>
1269
1270 * psymtab.c (psymbol_functions::expand_symtabs_matching): Remove
1271 "user" check.
1272
b4b1a226
SM
12732021-03-26 Simon Marchi <simon.marchi@efficios.com>
1274 Pedro Alves <pedro@palves.net>
1275
1276 * async-event.c: Include "infrun.h".
1277 (async_event_handler_marked): New.
1278 * async-event.h (async_event_handler_marked): Declare.
1279 * infrun.c (maybe_set_commit_resumed_all_targets): Switch to
1280 inferior before calling target method. Don't commit-resumed if
1281 target_has_pending_events is true.
1282 * remote.c (remote_target::has_pending_events): New.
1283 * target-delegates.c: Regenerate.
1284 * target.c (target_has_pending_events): New.
1285 * target.h (target_ops::has_pending_events): New target method.
1286 (target_has_pending_events): New.
1287
1192f124
SM
12882021-03-26 Simon Marchi <simon.marchi@efficios.com>
1289 Pedro Alves <pedro@palves.net>
1290
1291 * infcmd.c (run_command_1, attach_command, detach_command)
1292 (interrupt_target_1): Use scoped_disable_commit_resumed.
1293 * infrun.c (do_target_resume): Remove
1294 target_commit_resume call.
1295 (commit_resume_all_targets): Remove.
1296 (maybe_set_commit_resumed_all_targets): New.
1297 (maybe_call_commit_resumed_all_targets): New.
1298 (enable_commit_resumed): New.
1299 (scoped_disable_commit_resumed::scoped_disable_commit_resumed)
1300 (scoped_disable_commit_resumed::~scoped_disable_commit_resumed)
1301 (scoped_disable_commit_resumed::reset)
1302 (scoped_disable_commit_resumed::reset_and_commit)
1303 (scoped_enable_commit_resumed::scoped_enable_commit_resumed)
1304 (scoped_enable_commit_resumed::~scoped_enable_commit_resumed):
1305 New.
1306 (proceed): Use scoped_disable_commit_resumed and
1307 maybe_call_commit_resumed_all_targets.
1308 (fetch_inferior_event): Use scoped_disable_commit_resumed.
1309 * infrun.h (struct scoped_disable_commit_resumed): New.
1310 (maybe_call_commit_resumed_all_process_targets): New.
1311 (struct scoped_enable_commit_resumed): New.
1312 * mi/mi-main.c (exec_continue): Use scoped_disable_commit_resumed.
1313 * process-stratum-target.h (class process_stratum_target):
1314 <commit_resumed_state>: New.
1315 * record-full.c (record_full_wait_1): Change commit_resumed_state
1316 around calling commit_resumed.
1317 * remote.c (class remote_target) <commit_resume>: Rename to...
1318 <commit_resumed>: ... this.
1319 (struct stop_reply): Move up.
1320 (remote_target::commit_resume): Rename to...
1321 (remote_target::commit_resumed): ... this. Check if there is any
1322 thread pending vCont resume.
1323 (remote_target::remote_stop_ns): Generate stop replies for resumed
1324 but pending vCont threads.
1325 (remote_target::wait_ns): Add gdb_assert.
1326 * target-delegates.c: Regenerate.
1327 * target.c (target_wait, target_resume): Assert that the current
1328 process_stratum target isn't in commit-resumed state.
1329 (defer_target_commit_resume): Remove.
1330 (target_commit_resume): Remove.
1331 (target_commit_resumed): New.
1332 (make_scoped_defer_target_commit_resume): Remove.
1333 (target_stop): Assert that the current process_stratum target
1334 isn't in commit-resumed state.
1335 * target.h (struct target_ops) <commit_resume>: Rename to ...
1336 <commit_resumed>: ... this.
1337 (target_commit_resume): Remove.
1338 (target_commit_resumed): New.
1339 (make_scoped_defer_target_commit_resume): Remove.
1340 * top.c (wait_sync_command_done): Use
1341 scoped_enable_commit_resumed.
1342
e5b9b39f
PA
13432021-03-26 Pedro Alves <pedro@palves.net>
1344
1345 * target.c (target_always_non_stop_p): Also check whether the
1346 target can async.
1347
bab287cd
TT
13482021-03-26 Tom Tromey <tom@tromey.com>
1349
1350 * dwarf2/read.c (dwarf2_read_debug_names)
1351 (dwarf2_build_psymtabs_hard, create_addrmap_from_aranges)
1352 (dw2_debug_names_iterator::next, create_type_unit_group):
1353 Simplify.
1354
eff4f69d
PA
13552021-03-25 Pedro Alves <pedro@palves.net>
1356
1357 * gdb.server/bkpt-other-inferior.exp: Only enable remote output
1358 around setting the breakpoint.
1359
323fd5b9
PA
13602021-03-25 Pedro Alves <pedro@palves.net>
1361
1362 * remote.c
1363 (remote_target::check_pending_events_prevent_wildcard_vcont):
1364 Check whether the event's ptid is not null_ptid before looking up
1365 the corresponding inferior.
1366
d3cbca38
CD
13672021-03-24 Changbin Du <changbin.du@gmail.com>
1368
1369 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Remove call to
1370 read_code.
1371
328d42d8
SM
13722021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1373
1374 * target.h (current_top_target): Remove, make callers use the
1375 current inferior instead.
1376 * target.c (current_top_target): Remove.
1377
d777bf0d
SM
13782021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1379
1380 * target.h (target_shortname): Change to function declaration.
1381 (target_longname): Likewise.
1382 (target_attach_no_wait): Likewise.
1383 (target_post_attach): Likewise.
1384 (target_prepare_to_store): Likewise.
1385 (target_supports_enable_disable_tracepoint): Likewise.
1386 (target_supports_string_tracing): Likewise.
1387 (target_supports_evaluation_of_breakpoint_conditions): Likewise.
1388 (target_supports_dumpcore): Likewise.
1389 (target_dumpcore): Likewise.
1390 (target_can_run_breakpoint_commands): Likewise.
1391 (target_files_info): Likewise.
1392 (target_post_startup_inferior): Likewise.
1393 (target_insert_fork_catchpoint): Likewise.
1394 (target_remove_fork_catchpoint): Likewise.
1395 (target_insert_vfork_catchpoint): Likewise.
1396 (target_remove_vfork_catchpoint): Likewise.
1397 (target_insert_exec_catchpoint): Likewise.
1398 (target_remove_exec_catchpoint): Likewise.
1399 (target_set_syscall_catchpoint): Likewise.
1400 (target_rcmd): Likewise.
1401 (target_can_lock_scheduler): Likewise.
1402 (target_can_async_p): Likewise.
1403 (target_is_async_p): Likewise.
1404 (target_execution_direction): Likewise.
1405 (target_extra_thread_info): Likewise.
1406 (target_pid_to_exec_file): Likewise.
1407 (target_thread_architecture): Likewise.
1408 (target_find_memory_regions): Likewise.
1409 (target_make_corefile_notes): Likewise.
1410 (target_get_bookmark): Likewise.
1411 (target_goto_bookmark): Likewise.
1412 (target_stopped_by_watchpoint): Likewise.
1413 (target_stopped_by_sw_breakpoint): Likewise.
1414 (target_supports_stopped_by_sw_breakpoint): Likewise.
1415 (target_stopped_by_hw_breakpoint): Likewise.
1416 (target_supports_stopped_by_hw_breakpoint): Likewise.
1417 (target_have_steppable_watchpoint): Likewise.
1418 (target_can_use_hardware_watchpoint): Likewise.
1419 (target_region_ok_for_hw_watchpoint): Likewise.
1420 (target_can_do_single_step): Likewise.
1421 (target_insert_watchpoint): Likewise.
1422 (target_remove_watchpoint): Likewise.
1423 (target_insert_hw_breakpoint): Likewise.
1424 (target_remove_hw_breakpoint): Likewise.
1425 (target_can_accel_watchpoint_condition): Likewise.
1426 (target_can_execute_reverse): Likewise.
1427 (target_get_ada_task_ptid): Likewise.
1428 (target_filesystem_is_local): Likewise.
1429 (target_trace_init): Likewise.
1430 (target_download_tracepoint): Likewise.
1431 (target_can_download_tracepoint): Likewise.
1432 (target_download_trace_state_variable): Likewise.
1433 (target_enable_tracepoint): Likewise.
1434 (target_disable_tracepoint): Likewise.
1435 (target_trace_start): Likewise.
1436 (target_trace_set_readonly_regions): Likewise.
1437 (target_get_trace_status): Likewise.
1438 (target_get_tracepoint_status): Likewise.
1439 (target_trace_stop): Likewise.
1440 (target_trace_find): Likewise.
1441 (target_get_trace_state_variable_value): Likewise.
1442 (target_save_trace_data): Likewise.
1443 (target_upload_tracepoints): Likewise.
1444 (target_upload_trace_state_variables): Likewise.
1445 (target_get_raw_trace_data): Likewise.
1446 (target_get_min_fast_tracepoint_insn_len): Likewise.
1447 (target_set_disconnected_tracing): Likewise.
1448 (target_set_circular_trace_buffer): Likewise.
1449 (target_set_trace_buffer_size): Likewise.
1450 (target_set_trace_notes): Likewise.
1451 (target_get_tib_address): Likewise.
1452 (target_set_permissions): Likewise.
1453 (target_static_tracepoint_marker_at): Likewise.
1454 (target_static_tracepoint_markers_by_strid): Likewise.
1455 (target_traceframe_info): Likewise.
1456 (target_use_agent): Likewise.
1457 (target_can_use_agent): Likewise.
1458 (target_augmented_libraries_svr4_read): Likewise.
1459 (target_log_command): Likewise.
1460 * target.c (target_shortname): New.
1461 (target_longname): New.
1462 (target_attach_no_wait): New.
1463 (target_post_attach): New.
1464 (target_prepare_to_store): New.
1465 (target_supports_enable_disable_tracepoint): New.
1466 (target_supports_string_tracing): New.
1467 (target_supports_evaluation_of_breakpoint_conditions): New.
1468 (target_supports_dumpcore): New.
1469 (target_dumpcore): New.
1470 (target_can_run_breakpoint_commands): New.
1471 (target_files_info): New.
1472 (target_post_startup_inferior): New.
1473 (target_insert_fork_catchpoint): New.
1474 (target_remove_fork_catchpoint): New.
1475 (target_insert_vfork_catchpoint): New.
1476 (target_remove_vfork_catchpoint): New.
1477 (target_insert_exec_catchpoint): New.
1478 (target_remove_exec_catchpoint): New.
1479 (target_set_syscall_catchpoint): New.
1480 (target_rcmd): New.
1481 (target_can_lock_scheduler): New.
1482 (target_can_async_p): New.
1483 (target_is_async_p): New.
1484 (target_execution_direction): New.
1485 (target_extra_thread_info): New.
1486 (target_pid_to_exec_file): New.
1487 (target_thread_architecture): New.
1488 (target_find_memory_regions): New.
1489 (target_make_corefile_notes): New.
1490 (target_get_bookmark): New.
1491 (target_goto_bookmark): New.
1492 (target_stopped_by_watchpoint): New.
1493 (target_stopped_by_sw_breakpoint): New.
1494 (target_supports_stopped_by_sw_breakpoint): New.
1495 (target_stopped_by_hw_breakpoint): New.
1496 (target_supports_stopped_by_hw_breakpoint): New.
1497 (target_have_steppable_watchpoint): New.
1498 (target_can_use_hardware_watchpoint): New.
1499 (target_region_ok_for_hw_watchpoint): New.
1500 (target_can_do_single_step): New.
1501 (target_insert_watchpoint): New.
1502 (target_remove_watchpoint): New.
1503 (target_insert_hw_breakpoint): New.
1504 (target_remove_hw_breakpoint): New.
1505 (target_can_accel_watchpoint_condition): New.
1506 (target_can_execute_reverse): New.
1507 (target_get_ada_task_ptid): New.
1508 (target_filesystem_is_local): New.
1509 (target_trace_init): New.
1510 (target_download_tracepoint): New.
1511 (target_can_download_tracepoint): New.
1512 (target_download_trace_state_variable): New.
1513 (target_enable_tracepoint): New.
1514 (target_disable_tracepoint): New.
1515 (target_trace_start): New.
1516 (target_trace_set_readonly_regions): New.
1517 (target_get_trace_status): New.
1518 (target_get_tracepoint_status): New.
1519 (target_trace_stop): New.
1520 (target_trace_find): New.
1521 (target_get_trace_state_variable_value): New.
1522 (target_save_trace_data): New.
1523 (target_upload_tracepoints): New.
1524 (target_upload_trace_state_variables): New.
1525 (target_get_raw_trace_data): New.
1526 (target_get_min_fast_tracepoint_insn_len): New.
1527 (target_set_disconnected_tracing): New.
1528 (target_set_circular_trace_buffer): New.
1529 (target_set_trace_buffer_size): New.
1530 (target_set_trace_notes): New.
1531 (target_get_tib_address): New.
1532 (target_set_permissions): New.
1533 (target_static_tracepoint_marker_at): New.
1534 (target_static_tracepoint_markers_by_strid): New.
1535 (target_traceframe_info): New.
1536 (target_use_agent): New.
1537 (target_can_use_agent): New.
1538 (target_augmented_libraries_svr4_read): New.
1539 (target_log_command): New.
1540 * bfin-tdep.c (bfin_sw_breakpoint_from_kind): Adjust.
1541 * infrun.c (set_schedlock_func): Adjust.
1542 * mi/mi-main.c (exec_reverse_continue): Adjust.
1543 * reverse.c (exec_reverse_once): Adjust.
1544 * sh-tdep.c (sh_sw_breakpoint_from_kind): Adjust.
1545 * tui/tui-stack.c (tui_locator_window::make_status_line): Adjust.
1546 * remote-sim.c (gdbsim_target::detach): Adjust.
1547 (gdbsim_target::files_info): Adjust.
1548
b64f703b
TT
15492021-03-24 Tom Tromey <tom@tromey.com>
1550
1551 * dwarf2/read.c (dw2_map_matching_symbols): Update.
1552 (dw2_expand_symtabs_matching_symbol): Remove 'kind' parameter.
1553 (check_match, dw2_expand_symtabs_matching)
1554 (dwarf2_debug_names_index::map_matching_symbols)
1555 (dwarf2_debug_names_index::expand_symtabs_matching): Update.
1556
68f115f8
KS
15572021-03-24 Keith Seitz <keiths@redhat.com>
1558
1559 * compile/compile-cplus-types.c
1560 (compile_cplus_convert_struct_or_union): Fix TYPE_DECLARED_CLASS
1561 thinko.
1562
41c0087b
SM
15632021-03-24 Simon Marchi <simon.marchi@polymtl.ca>
1564
1565 * gdbarch.sh (gdbarch_data_registry): Make static.
1566 * gdbarch.c: Re-generate.
1567
ce192338
LM
15682021-03-24 Luis Machado <luis.machado@linaro.org>
1569
1570 * NEWS: Mention memory tagging changes.
1571
bef382e6
LM
15722021-03-24 Luis Machado <luis.machado@linaro.org>
1573
1574 * printcmd.c (decode_format): Handle the 'm' modifier.
1575 (do_examine): Display allocation tags when required/supported.
1576 (should_validate_memtags): New function.
1577 (print_command_1): Display memory tag mismatches.
1578 * valprint.c (show_memory_tag_violations): New function.
1579 (value_print_option_defs): Add new option "memory-tag-violations".
1580 (user_print_options) <memory_tag_violations>: Initialize to 1.
1581 * valprint.h (struct format_data) <print_tags>: New field.
1582 (value_print_options) <memory_tag_violations>: New field.
1583
48136e00
LM
15842021-03-24 Luis Machado <luis.machado@linaro.org>
1585
1586 * printcmd.c: Include gdbsupport/rsp-low.h.
1587 (memory_tag_list): New static global.
1588 (process_print_command_args): Factored out of
1589 print_command_1.
1590 (print_command_1): Use process_print_command_args.
1591 (show_addr_not_tagged, show_memory_tagging_unsupported)
1592 (memory_tag_command, memory_tag_print_tag_command)
1593 (memory_tag_print_logical_tag_command)
1594 (memory_tag_print_allocation_tag_command, parse_with_logical_tag_input)
1595 (memory_tag_with_logical_tag_command, parse_set_allocation_tag_input)
1596 (memory_tag_set_allocation_tag_command, memory_tag_check_command): New
1597 functions.
1598 (_initialize_printcmd): Add "memory-tag" prefix and subcommands.
1599
ffcc2a15
LM
16002021-03-24 Luis Machado <luis.machado@linaro.org>
1601
1602 * aarch64-linux-tdep.c
1603 (aarch64_linux_iterate_over_regset_sections): Handle MTE register set.
1604 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_MTE_REGSET): Define.
1605
cf44c9fa
LM
16062021-03-24 Luis Machado <luis.machado@linaro.org>
1607
1608 * aarch64-linux-tdep.c
1609 (aarch64_linux_report_signal_info): New function.
1610 (aarch64_linux_init_abi): Register
1611 aarch64_linux_report_signal_info as the report_signal_info hook.
1612 * arch/aarch64-linux.h (SEGV_MTEAERR): Define.
1613 (SEGV_MTESERR): Define.
1614
b4a7d4fc
LM
16152021-03-24 Luis Machado <luis.machado@linaro.org>
1616
1617 * aarch64-linux-tdep.c: Include gdbsupport/selftest.h.
1618 (aarch64_linux_ltag_tests): New function.
1619 (_initialize_aarch64_linux_tdep): Register aarch64_linux_ltag_tests.
1620
c7782e50
LM
16212021-03-24 Luis Machado <luis.machado@linaro.org>
1622
1623 * aarch64-linux-tdep.c: Include target.h, arch-utils.h, value.h.
1624 (aarch64_mte_get_atag, aarch64_linux_tagged_address_p)
1625 (aarch64_linux_memtag_mismatch_p, aarch64_linux_set_memtags)
1626 (aarch64_linux_get_memtag, aarch64_linux_memtag_to_string): New
1627 functions.
1628 (aarch64_linux_init_abi): Initialize MTE-related gdbarch hooks.
1629 * arch/aarch64-mte-linux.c (aarch64_mte_make_ltag_bits)
1630 (aarch64_mte_make_ltag, aarch64_linux_set_ltag)
1631 (aarch64_linux_get_ltag): New functions.
1632 * arch/aarch64-mte-linux.h (AARCH64_MTE_LOGICAL_TAG_START_BIT)
1633 (AARCH64_MTE_LOGICAL_MAX_VALUE): Define.
1634 (aarch64_mte_make_ltag_bits, aarch64_mte_make_ltag)
1635 (aarch64_mte_set_ltag, aarch64_mte_get_ltag): New prototypes.
1636
1e735120
LM
16372021-03-24 Luis Machado <luis.machado@linaro.org>
1638
1639 * linux-tdep.c (struct smaps_vmflags) <memory_tagging>: New flag
1640 bit.
1641 (struct smaps_data): New struct.
1642 (decode_vmflags): Handle the 'mt' flag.
1643 (parse_smaps_data): New function, refactored from
1644 linux_find_memory_regions_full.
1645 (linux_address_in_memtag_page): New function.
1646 (linux_find_memory_regions_full): Refactor into parse_smaps_data.
1647 * linux-tdep.h (linux_address_in_memtag_page): New prototype.
1648
93e447c6
LM
16492021-03-24 Luis Machado <luis.machado@linaro.org>
1650
1651 * linux-tdep.c (linux_find_memory_regions_full): Use std::string
1652 instead of char arrays.
1653
4601818e
LM
16542021-03-24 Luis Machado <luis.machado@linaro.org>
1655
1656 * Makefile.in (ALL_64_TARGET_OBS): Add arch/aarch64-mte-linux.o.
1657 (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h and
1658 nat/aarch64-mte-linux-ptrace.h.
1659 * aarch64-linux-nat.c: Include nat/aarch64-mte-linux-ptrace.h.
1660 (aarch64_linux_nat_target) <supports_memory_tagging>: New method
1661 override.
1662 <fetch_memtags>: New method override.
1663 <store_memtags>: New method override.
1664 (aarch64_linux_nat_target::supports_memory_tagging): New method.
1665 (aarch64_linux_nat_target::fetch_memtags): New method.
1666 (aarch64_linux_nat_target::store_memtags): New method.
1667 * arch/aarch64-mte-linux.c: New file.
1668 * arch/aarch64-mte-linux.h: Include gdbsupport/common-defs.h.
1669 (AARCH64_MTE_GRANULE_SIZE): Define.
1670 (aarch64_memtag_type): New enum.
1671 (aarch64_mte_get_tag_granules): New prototype.
1672 * configure.nat (NATDEPFILES): Add nat/aarch64-mte-linux-ptrace.o.
1673 * configure.tgt (aarch64*-*-linux*): Add arch/aarch64-mte-linux.o.
1674 * nat/aarch64-mte-linux-ptrace.c: New file.
1675 * nat/aarch64-mte-linux-ptrace.h: New file.
1676
3f3bd8b8
LM
16772021-03-24 Luis Machado <luis.machado@linaro.org>
1678
1679 * Makefile.in (HFILES_NO_SRCDIR): Add nat/aarch64-mte-linux-ptrace.h.
1680 * nat/aarch64-mte-linux-ptrace.h: New file.
1681
5e984dbf
LM
16822021-03-24 Luis Machado <luis.machado@linaro.org>
1683
1684 * aarch64-linux-nat.c (fetch_mteregs_from_thread): New function.
1685 (store_mteregs_to_thread): New function.
1686 (aarch64_linux_nat_target::fetch_registers): Update to call
1687 fetch_mteregs_from_thread.
1688 (aarch64_linux_nat_target::store_registers): Update to call
1689 store_mteregs_to_thread.
1690 * aarch64-tdep.c (aarch64_mte_register_names): New struct.
1691 (aarch64_cannot_store_register): Handle MTE registers.
1692 (aarch64_gdbarch_init): Initialize and setup MTE registers.
1693 * aarch64-tdep.h (gdbarch_tdep) <mte_reg_base>: New field.
1694 <has_mte>: New method.
1695 * arch/aarch64-linux.h (AARCH64_LINUX_SIZEOF_MTE): Define.
1696
c1bd443b
LM
16972021-03-24 Luis Machado <luis.machado@linaro.org>
1698
1699 * aarch64-linux-nat.c
1700 (aarch64_linux_nat_target::read_description): Take MTE flag into
1701 account.
1702 Slight refactor to hwcap flag checking.
1703 * aarch64-linux-tdep.c
1704 (aarch64_linux_core_read_description): Likewise.
1705 * aarch64-tdep.c (tdesc_aarch64_list): Add one more dimension for
1706 MTE.
1707 (aarch64_read_description): Add mte_p parameter and update to use it.
1708 Update the documentation.
1709 (aarch64_gdbarch_init): Update call to aarch64_read_description.
1710 * aarch64-tdep.h (aarch64_read_description): Add mte_p parameter.
1711 * arch/aarch64.c: Include ../features/aarch64-mte.c.
1712 (aarch64_create_target_description): Add mte_p parameter and update
1713 the code to use it.
1714 * arch/aarch64.h (aarch64_create_target_description): Add mte_p
1715 parameter.
1716 * features/Makefile (FEATURE_XMLFILES): Add aarch64-mte.xml.
1717 * features/aarch64-mte.c: New file, generated.
1718 * features/aarch64-mte.xml: New file.
1719
04245125
LM
17202021-03-24 Luis Machado <luis.machado@linaro.org>
1721
1722 * Makefile.in (HFILES_NO_SRCDIR): Add arch/aarch64-mte-linux.h.
1723 * aarch64-linux-nat.c: Include arch/aarch64-mte-linux.h.
1724 * aarch64-linux-tdep.c: Likewise
1725 * arch/aarch64-mte-linux.h: New file.
1726
754487e2
LM
17272021-03-24 Luis Machado <luis.machado@linaro.org>
1728
1729 * remote: Include gdbsupport/selftest.h.
1730 (test_memory_tagging_functions): New function.
1731 (_initialize_remote): Register test_memory_tagging_functions.
1732
2c2e7f87
LM
17332021-03-24 Luis Machado <luis.machado@linaro.org>
1734
1735 * remote.c (PACKET_memory_tagging_feature): New enum.
1736 (remote_memory_tagging_p): New function.
1737 (remote_protocol_features): New "memory-tagging" entry.
1738 (remote_target::remote_query_supported): Handle memory tagging
1739 support.
1740 (remote_target::supports_memory_tagging): Implement.
1741 (create_fetch_memtags_request, parse_fetch_memtags_reply)
1742 (create_store_memtags_request): New functions.
1743 (remote_target::fetch_memtags): Implement.
1744 (remote_target::store_memtags): Implement.
1745 (_initialize_remote): Add new "memory-tagging-feature"
1746 config command.
1747
c193949e
LM
17482021-03-24 Luis Machado <luis.machado@linaro.org>
1749
1750 * arch-utils.c (default_memtag_to_string, default_tagged_address_p)
1751 (default_memtag_matches_p, default_set_memtags)
1752 (default_get_memtag): New functions.
1753 * arch-utils.h (default_memtag_to_string, default_tagged_address_p)
1754 (default_memtag_matches_p, default_set_memtags)
1755 (default_get_memtag): New prototypes.
1756 * gdbarch.c: Regenerate.
1757 * gdbarch.h: Regenerate.
1758 * gdbarch.sh (memtag_to_string, tagged_address_p, memtag_matches_p)
1759 (set_memtags, get_memtag, memtag_granule_size): New gdbarch hooks.
1760 (enum memtag_type): New enum.
1761
dbe692af
LM
17622021-03-24 Luis Machado <luis.machado@linaro.org>
1763
1764 * remote.c (remote_target) <supports_memory_tagging>: New method
1765 override.
1766 <fetch_memtags>: New method override.
1767 <store_memtags>: New method override.
1768 (remote_target::supports_memory_tagging): New method.
1769 (remote_target::fetch_memtags): New method.
1770 (remote_target::store_memtags): New method.
1771 * target-delegates.c: Regenerate.
1772 * target.h (struct target_ops) <supports_memory_tagging>: New virtual
1773 method.
1774 <fetch_memtags>: New virtual method.
1775 <store_memtags>: New virtual method.
1776 (target_supports_memory_tagging): Define.
1777 (target_fetch_memtags): Define.
1778 (target_store_memtags): Define.
1779 * target-debug.h (target_debug_print_size_t)
1780 (target_debug_print_const_gdb_byte_vector_r)
1781 (target_debug_print_gdb_byte_vector_r): New functions.
1782
66848ebc
SM
17832021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1784
1785 * target.h (target_longname): Remove.
1786
c8fbd44a
SM
17872021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1788
1789 * target.h (target_is_pushed): Remove, update callers to use
1790 inferior::target_is_pushed instead.
1791 * target.c (target_is_pushed): Remove.
1792
02980c56
SM
17932021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1794
1795 * target.h (push_target): Remove, update callers to use
1796 inferior::push_target.
1797 * target.c (push_target): Remove.
1798 * inferior.h (class inferior) <push_target>: New overload.
1799
fadf6add
SM
18002021-03-23 Simon Marchi <simon.marchi@polymtl.ca>
1801
1802 * target.h (unpush_target): Remove, update all callers
1803 to use `inferior::unpush_target` instead.
1804 (struct target_unpusher) <operator()>: Just declare.
1805 * target.c (unpush_target): Remove.
1806 (target_unpusher::operator()): New.
1807
702cf3f5
AB
18082021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1809
1810 * dwarf2/read.c (process_psymtab_comp_unit): Replace abort with an
1811 error.
1812 (process_full_comp_unit): Validate the top-level tag before
1813 processing the first DIE.
1814 (read_func_scope): Ensure we have a valid builder.
1815
46fec642
AB
18162021-03-22 Andrew Burgess <andrew.burgess@embecosm.com>
1817
1818 * objc-lang.c (objc_demangle): Renamed to
1819 objc_language::demangle_symbol, and moved later in the file.
1820 (objc_language::sniff_from_mangled_name): Call demangle_symbol
1821 member function.
1822 (objc_language::demangle_symbol): Defined outside of class
1823 declaration. The definition is the old objc_demangle with NULL
1824 changed to nullptr, and if conditions relating to nullptr pointers
1825 or null character checks made explicit.
1826 * objc-lang.h (objc_demangle): Delete declaration.
1827
08dedd66
ML
18282021-03-22 Martin Liska <mliska@suse.cz>
1829
1830 * arm-tdep.c (show_disassembly_style_sfunc): Replace usage of CONST_STRNEQ with startswith.
1831 (_initialize_arm_tdep): Likewise.
1832
eb36a3eb
TT
18332021-03-20 Tom Tromey <tom@tromey.com>
1834
1835 * xcoffread.c (xcoff_initial_scan): Create partial symtabs.
1836 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1837 * psymtab.h (make_psymbol_functions): Don't declare.
1838 * psymtab.c (make_psymbol_functions): Remove.
1839 (maintenance_print_psymbols): Update.
1840 * psympriv.h (struct psymbol_functions): Add no-argument
1841 constructor.
1842 * objfiles.h (struct objfile) <reset_psymtabs>: Remove.
1843 <partial_symtabs>: Remove.
1844 * mdebugread.c (mdebug_build_psymtabs): Create partial symtabs.
1845 * elfread.c (read_partial_symbols): Update.
1846 (elf_symfile_read): Remove check for existing partial symbols.
1847 Don't clear "qf".
1848 * dwarf2/read.c (dwarf2_has_info): Remove check for existing
1849 partial symbols.
1850 (dwarf2_build_psymtabs): Add psymbol_functions parameter. Create
1851 partial symtabs.
1852 * dwarf2/public.h (dwarf2_build_psymtabs): Add psymbol_functions
1853 parameter.
1854 * dbxread.c (dbx_symfile_read): Create partial symtabs.
1855 * ctfread.c (elfctf_build_psymtabs): Create partial symtabs.
1856
e1114590
TT
18572021-03-20 Tom Tromey <tom@tromey.com>
1858
1859 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1860 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1861 * symfile-debug.c (objfile::has_partial_symbols)
1862 (objfile::find_last_source_symtab)
1863 (objfile::forget_cached_source_info)
1864 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
1865 (objfile::print_stats, objfile::dump)
1866 (objfile::expand_symtabs_for_function)
1867 (objfile::expand_all_symtabs)
1868 (objfile::expand_symtabs_with_fullname)
1869 (objfile::map_matching_symbols)
1870 (objfile::expand_symtabs_matching)
1871 (objfile::find_pc_sect_compunit_symtab)
1872 (objfile::map_symbol_filenames)
1873 (objfile::find_compunit_symtab_by_address)
1874 (objfile::lookup_global_symbol_language)
1875 (objfile::require_partial_symbols): Update.
1876 * psymtab.c (maintenance_print_psymbols)
1877 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1878 * objfiles.h (struct objfile) <qf>: Now a forward_list.
1879 * objfiles.c (objfile_relocate1): Update.
1880 * elfread.c (elf_symfile_read): Update.
1881
de909f0b
TT
18822021-03-20 Tom Tromey <tom@tromey.com>
1883
1884 * objfiles.h (struct objfile) <psymtabs>: Remove method.
1885
caf8c1e5
TT
18862021-03-20 Tom Tromey <tom@tromey.com>
1887
1888 * psymtab.c (psymbol_functions::count_psyms): Rename.
1889 (psymbol_functions::print_stats): Update.
1890 * psympriv.h (struct psymbol_functions) <count_psyms>: Declare
1891 method.
1892
3aa31ce7
TT
18932021-03-20 Tom Tromey <tom@tromey.com>
1894
1895 * psymtab.c (psymbol_functions::require_partial_symbols): Rename.
1896 (psymbol_functions::find_pc_sect_psymtab): Rename.
1897 (psymbol_functions::find_pc_sect_compunit_symtab)
1898 (maintenance_print_psymbols, maintenance_check_psymtabs): Update.
1899 * psympriv.h (struct psymbol_functions) <require_partial_symbols>:
1900 Declare new method.
1901 <get_partial_symtabs, find_pc_sect_psymtab>: Likewise.
1902
7b249e47
TT
19032021-03-20 Tom Tromey <tom@tromey.com>
1904
1905 * xcoffread.c (xcoff_start_psymtab): Add partial_symtabs parameter.
1906 (xcoff_end_psymtab, scan_xcoff_symtab): Update.
1907 * psymtab.c (partial_symtab::partial_symtab): Add partial_symtabs
1908 parameter.
1909 (add_psymbol_to_bcache): Remove.
1910 (partial_symtab::add_psymbol): Add partial_symtabs parameter.
1911 (partial_symtab::add_psymbol, partial_symtab::partial_symtab):
1912 Likewise.
1913 * psympriv.h (partial_symtab): Add partial_symtabs parameter.
1914 <add_psymbol>: Likewise.
1915 (standard_psymtab, legacy_psymtab): Likewise.
1916 * mdebugread.c (parse_partial_symbols): Update.
1917 (handle_psymbol_enumerators): Add partial_symtabs parameter.
1918 (handle_psymbol_enumerators): Update.
1919 (new_psymtab): Add partial_symtabs parameter.
1920 * dwarf2/read.h (dwarf2_psymtab): Add partial_symtabs parameter.
1921 * dwarf2/read.c (dwarf2_include_psymtab): Add partial_symtabs
1922 parameter.
1923 (dwarf2_create_include_psymtab): Add partial_symtabs parameter.
1924 (create_partial_symtab, add_partial_symbol, dwarf_decode_lines):
1925 Update.
1926 * dbxread.c (read_dbx_symtab): Update.
1927 (start_psymtab): Add partial_symtabs parameter.
1928 (dbx_end_psymtab): Update.
1929 * ctfread.c (struct ctf_context) <partial_symtabs>: New member.
1930 (ctf_psymtab): Add partial_symtabs parameter.
1931 (create_partial_symtab, ctf_psymtab_type_cb, ctf_psymtab_var_cb):
1932 Update.
1933 (scan_partial_symbols): Add partial_symtabs parameter.
1934 (scan_partial_symbols, elfctf_build_psymtabs)
1935 (ctf_psymtab_add_enums): Update.
1936
d1eef86d
TT
19372021-03-20 Tom Tromey <tom@tromey.com>
1938
1939 * symfile.c (read_symbols): Use objfile method.
1940 * symfile-debug.c (objfile::require_partial_symbols): New method.
1941 * psymtab.h (require_partial_symbols): Don't declare.
1942 * psymtab.c (require_partial_symbols): Use objfile method. Now
1943 static.
1944 (psymbol_functions::map_symtabs_matching_filename, OBJFILE)
1945 (psymbol_functions::lookup_symbol)
1946 (psymbol_functions::lookup_global_symbol_language)
1947 (psymbol_functions::find_last_source_symtab)
1948 (psymbol_functions::forget_cached_source_info)
1949 (psymbol_functions::print_stats)
1950 (psymbol_functions::expand_symtabs_for_function)
1951 (psymbol_functions::expand_all_symtabs)
1952 (psymbol_functions::expand_symtabs_with_fullname)
1953 (psymbol_functions::map_symbol_filenames)
1954 (psymbol_functions::map_matching_symbols)
1955 (psymbol_functions::expand_symtabs_matching)
1956 (psymbol_functions::find_compunit_symtab_by_address)
1957 (maintenance_print_psymbols, maintenance_info_psymtabs)
1958 (maintenance_check_psymtabs): Update.
1959 * objfiles.h (struct objfile) <require_partial_symbols>: Declare
1960 new method.
1961
eb00e468
TT
19622021-03-20 Tom Tromey <tom@tromey.com>
1963
1964 * xcoffread.c (xcoff_sym_fns): Update.
1965 * symfile.h (struct sym_fns) <sym_read_psymbols>: Remove.
1966 * symfile-debug.c (objfile::has_partial_symbols): Use
1967 can_lazily_read_symbols.
1968 (debug_sym_read_psymbols): Remove.
1969 (debug_sym_fns, install_symfile_debug_logging): Update.
1970 * quick-symbol.h (struct quick_symbol_functions)
1971 <can_lazily_read_symbols, read_partial_symbols>: New methods.
1972 * psymtab.c (require_partial_symbols): Use new 'qf' methods.
1973 * mipsread.c (ecoff_sym_fns): Update.
1974 * machoread.c (macho_sym_fns): Update.
1975 * elfread.c (struct lazy_dwarf_reader): New.
1976 (elf_symfile_read): Update.
1977 (read_psyms): Now a method of lazy_dwarf_reader.
1978 (elf_sym_fns): Update.
1979 (elf_sym_fns_lazy_psyms): Remove.
1980 * dbxread.c (aout_sym_fns): Update.
1981 * coffread.c (coff_sym_fns): Update.
1982
b29b98cf
TT
19832021-03-20 Tom Tromey <tom@tromey.com>
1984
1985 * symfile.c (syms_from_objfile_1): Call reset_psymtabs.
1986 (reread_symbols): Move reset_psymtabs call later.
1987 * objfiles.c (objfile::objfile): Don't initialize
1988 partial_symtabs.
1989
17d66340
TT
19902021-03-20 Tom Tromey <tom@tromey.com>
1991
1992 * dwarf2/read.c (dwarf2_build_psymtabs): Call
1993 set_partial_symtabs.
1994 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
1995 * psymtab.h (make_psymbol_functions): Add partial_symtabs
1996 parameter.
1997 * psymtab.c (find_pc_sect_psymtab): Add partial_symtabs
1998 parameter.
1999 (psymbol_functions::find_pc_sect_compunit_symtab)
2000 (psymbol_functions::print_stats, psymbol_functions::dump)
2001 (psymbol_functions::has_symbols): Update.
2002 (make_psymbol_functions, dump_psymtab_addrmap): Add
2003 partial_symtabs parameter.
2004 (maintenance_print_psymbols): Update.
2005 (psymbol_functions::expand_symtabs_matching): Update.
2006 * psympriv.h (struct psymbol_functions): Add constructor.
2007 <m_partial_symtabs>: New member.
2008 <set_partial_symtabs>: New method.
2009
84685904
TT
20102021-03-20 Tom Tromey <tom@tromey.com>
2011
2012 * dwarf2/read.c (dwarf2_create_include_psymtab): Add per_bfd
2013 parameter.
2014 (process_psymtab_comp_unit_reader)
2015 (build_type_psymtab_dependencies, dwarf2_build_psymtabs_hard)
2016 (add_partial_subprogram, dwarf2_ranges_read, dwarf_decode_lines):
2017 Reference psymtabs via per_bfd.
2018
79cc99f6
TT
20192021-03-20 Tom Tromey <tom@tromey.com>
2020
2021 * dwarf2/index-write.c (struct addrmap_index_data) <objfile>:
2022 Remove.
2023 (add_address_entry): Remove objfile parameter.
2024 (add_address_entry_worker): Update.
2025 (write_address_map): Replace objfile parameter with per_bfd.
2026 (write_gdbindex, write_psymtabs_to_index): Update.
2027
4829711b
TT
20282021-03-20 Tom Tromey <tom@tromey.com>
2029
2030 * dwarf2/read.c (dwarf2_base_index_functions::print_stats): Add
2031 print_bcache parameter.
2032 * symfile-debug.c (objfile::print_stats): Add print_bcache
2033 parameter.
2034 * quick-symbol.h (struct quick_symbol_functions)
2035 <print_stats>: Add print_bcache parameter.
2036 * symmisc.c (print_symbol_bcache_statistics, count_psyms): Move
2037 code to psymtab.c.
2038 (print_objfile_statistics): Move psymtab code to psymtab.c.
2039 * psymtab.c (count_psyms): Move from symmisc.c.
2040 (psymbol_functions::print_stats): Print partial symbol and bcache
2041 statistics. Add print_bcache parameter.
2042 * objfiles.h (print_symbol_bcache_statistics): Don't declare.
2043 (struct objfile) <print_stats>: Add print_bcache parameter.
2044 * maint.c (maintenance_print_statistics): Update.
2045
efd7398e
TT
20462021-03-20 Tom Tromey <tom@tromey.com>
2047
2048 * dwarf2/read.h (struct dwarf2_per_bfd) <psymtabs_addrmap>: New
2049 member.
2050 * dwarf2/read.c (create_addrmap_from_index)
2051 (create_addrmap_from_aranges): Set per_bfd addrmap.
2052 (dwarf2_read_gdb_index): Don't set partial_symtabs.
2053 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab): Use
2054 per_bfd addrmap.
2055 (dwarf2_read_debug_names): Don't set partial_symtabs.
2056 (dwarf2_initialize_objfile): Likewise.
2057
51962708
TT
20582021-03-20 Tom Tromey <tom@tromey.com>
2059
2060 * dwarf2/read.c (dwarf2_build_psymtabs): Set partial_symtabs
2061 earlier.
2062
484b1090
TT
20632021-03-20 Tom Tromey <tom@tromey.com>
2064
2065 * psympriv.h (psymtab_discarder): Take psymtab_storage parameter.
2066 (~psymtab_discarder, keep): Update.
2067 <m_objfile>: Remove.
2068 <m_partial_symtabs>: New member.
2069 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
2070
7e9c0476
TT
20712021-03-20 Tom Tromey <tom@tromey.com>
2072
2073 * xcoffread.c (xcoff_end_psymtab): Add partial_symtabs parameter.
2074 (xcoff_end_psymtab): Update.
2075 (scan_xcoff_symtab): Add partial_symtabs parameter.
2076 (xcoff_initial_scan): Update.
2077 * stabsread.h (dbx_end_psymtab): Add partial_symtabs parameter.
2078 * mdebugread.c (mdebug_build_psymtabs): Update.
2079 (parse_partial_symbols): Add partial_symtabs parameter.
2080 * dbxread.c (dbx_symfile_read): Update.
2081 (read_dbx_symtab): Add partial_symtabs parameter.
2082 (read_dbx_symtab): Update.
2083 (dbx_end_psymtab): Add partial_symtabs parameter.
2084
75336a5a
TT
20852021-03-20 Tom Tromey <tom@tromey.com>
2086
2087 * quick-symbol.h (struct quick_symbol_functions)
2088 <relocated>: New method.
2089 * psymtab.h (struct psymbol_functions) <relocated>: New
2090 method.
2091 <fill_psymbol_map>: Declare method.
2092 <m_psymbol_map>: New member.
2093 * psymtab.c (psymbol_functions::fill_psymbol_map): Rename.
2094 (psymbol_functions::find_compunit_symtab_by_address): Update.
2095 * objfiles.h (reset_psymtabs): Don't clear psymbol_map.
2096 (struct objfile) <psymbol_map>: Remove.
2097 * objfiles.c (objfile_relocate1): Update.
2098
39298a5d
TT
20992021-03-20 Tom Tromey <tom@tromey.com>
2100
2101 * psympriv.h (struct psymbol_functions): New.
2102 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2103 * symfile-debug.c (objfile::find_compunit_symtab_by_address)
2104 (objfile::lookup_global_symbol_language): Update.
2105 * quick-symbol.h (struct quick_symbol_functions): Convert function
2106 pointers to methods. Add virtual destructor.
2107 (quick_symbol_functions_up): New typedef.
2108 * psymtab.h (psym_functions, dwarf2_gdb_index_functions)
2109 (dwarf2_debug_names_functions): Don't declare.
2110 (make_psymbol_functions): Declare.
2111 * psymtab.c (psymbol_functions::map_symtabs_matching_filename)
2112 (psymbol_functions::find_pc_sect_compunit_symtab)
2113 (psymbol_functions::lookup_symbol)
2114 (psymbol_functions::lookup_global_symbol_language)
2115 (psymbol_functions::find_last_source_symtab)
2116 (psymbol_functions::forget_cached_source_info)
2117 (psymbol_functions::print_stats, psymbol_functions::dump)
2118 (psymbol_functions::expand_symtabs_for_function)
2119 (psymbol_functions::expand_all_symtabs)
2120 (psymbol_functions::expand_symtabs_with_fullname)
2121 (psymbol_functions::map_symbol_filenames)
2122 (psymbol_functions::map_matching_symbols)
2123 (psymbol_functions::expand_symtabs_matching)
2124 (psymbol_functions::has_symbols)
2125 (psymbol_functions::find_compunit_symtab_by_address): Rename.
2126 (psym_functions): Remove.
2127 (make_psymbol_functions): New function.
2128 * objfiles.h (struct objfile) <qf>: Change type.
2129 * elfread.c (elf_symfile_read): Update.
2130 * dwarf2/read.c (struct dwarf2_base_index_functions)
2131 (struct dwarf2_gdb_index, struct dwarf2_debug_names_index): New.
2132 (make_dwarf_gdb_index, make_dwarf_debug_names): New functions.
2133 (dwarf2_base_index_functions::find_last_source_symtab)
2134 (dwarf2_base_index_functions::forget_cached_source_info)
2135 (dwarf2_base_index_functions::map_symtabs_matching_filename)
2136 (dwarf2_gdb_index::lookup_symbol)
2137 (dwarf2_base_index_functions::print_stats)
2138 (dwarf2_gdb_index::dump)
2139 (dwarf2_gdb_index::expand_symtabs_for_function)
2140 (dwarf2_base_index_functions::expand_all_symtabs)
2141 (dwarf2_base_index_functions::expand_symtabs_with_fullname):
2142 Rename.
2143 (dwarf2_gdb_index::map_matching_symbols): New method.
2144 (dwarf2_gdb_index::expand_symtabs_matching): New method.
2145 (dwarf2_base_index_functions::find_pc_sect_compunit_symtab)
2146 (dwarf2_base_index_functions::map_symbol_filenames)
2147 (dwarf2_base_index_functions::has_symbols): Rename.
2148 (dwarf2_gdb_index_functions): Remove.
2149 (dwarf2_debug_names_index::lookup_symbol)
2150 (dwarf2_debug_names_index::dump)
2151 (dwarf2_debug_names_index::expand_symtabs_for_function)
2152 (dwarf2_debug_names_index::map_matching_symbols)
2153 (dwarf2_debug_names_index::expand_symtabs_matching): Rename.
2154 (dwarf2_debug_names_functions): Remove.
2155 * dwarf2/public.h (make_dwarf_gdb_index, make_dwarf_debug_names):
2156 Declare.
2157
5c3f1e5b
TT
21582021-03-20 Tom Tromey <tom@tromey.com>
2159
2160 * psymtab.c (require_partial_symbols): Check that 'sf' is not
2161 null.
2162 * xcoffread.c (xcoff_sym_fns): Update.
2163 * symfile.h (struct sym_fns) <qf>: Remove.
2164 * symfile.c (syms_from_objfile_1, reread_symbols): Update.
2165 * symfile-debug.c (objfile::has_partial_symbols)
2166 (objfile::find_last_source_symtab)
2167 (objfile::forget_cached_source_info)
2168 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2169 (objfile::print_stats, objfile::dump)
2170 (objfile::expand_symtabs_for_function)
2171 (objfile::expand_all_symtabs)
2172 (objfile::expand_symtabs_with_fullname)
2173 (objfile::map_matching_symbols)
2174 (objfile::expand_symtabs_matching)
2175 (objfile::find_pc_sect_compunit_symtab)
2176 (objfile::map_symbol_filenames)
2177 (objfile::find_compunit_symtab_by_address)
2178 (objfile::lookup_global_symbol_language, debug_sym_fns)
2179 (install_symfile_debug_logging): Update.
2180 * objfiles.h (struct objfile) <qf>: New member.
2181 * mipsread.c (ecoff_sym_fns): Update.
2182 * machoread.c (macho_sym_fns): Update.
2183 * elfread.c (elf_sym_fns_gdb_index, elf_sym_fns_debug_names):
2184 Don't declare.
2185 (elf_symfile_read, elf_sym_fns, elf_sym_fns_lazy_psyms): Update.
2186 * dbxread.c (aout_sym_fns): Update.
2187 * coffread.c (coff_sym_fns): Update.
2188
9b99dcc8
TT
21892021-03-20 Tom Tromey <tom@tromey.com>
2190
2191 * symfile.h (symbol_compare_ftype, symbol_filename_ftype)
2192 (expand_symtabs_file_matcher_ftype)
2193 (expand_symtabs_symbol_matcher_ftype)
2194 (expand_symtabs_exp_notify_ftype, struct quick_symbol_functions):
2195 Move to quick-symbol.h.
2196 * quick-symbol.h: New file.
2197
4d080b46
TT
21982021-03-20 Tom Tromey <tom@tromey.com>
2199
2200 * symtab.c (iterate_over_symtabs, expand_symtab_containing_pc)
2201 (lookup_symbol_via_quick_fns, find_quick_global_symbol_language)
2202 (basic_lookup_transparent_type_quick)
2203 (find_pc_sect_compunit_symtab, find_symbol_at_address)
2204 (find_line_symtab, global_symbol_searcher::expand_symtabs):
2205 Update.
2206 * symmisc.c (print_objfile_statistics, dump_objfile)
2207 (maintenance_expand_symtabs): Update.
2208 * symfile.c (symbol_file_add_with_addrs)
2209 (expand_symtabs_matching, map_symbol_filenames): Update.
2210 * symfile-debug.c (objfile::has_partial_symbols)
2211 (objfile::find_last_source_symtab)
2212 (objfile::forget_cached_source_info)
2213 (objfile::map_symtabs_matching_filename, objfile::lookup_symbol)
2214 (objfile::print_stats, objfile::dump)
2215 (objfile::expand_symtabs_for_function)
2216 (objfile::expand_all_symtabs)
2217 (objfile::expand_symtabs_with_fullname)
2218 (objfile::map_matching_symbols)
2219 (objfile::expand_symtabs_matching)
2220 (objfile::find_pc_sect_compunit_symtab)
2221 (objfile::map_symbol_filenames)
2222 (objfile::find_compunit_symtab_by_address)
2223 (objfile::lookup_global_symbol_language): New methods.
2224 (debug_sym_quick_functions): Remove.
2225 (debug_sym_fns, install_symfile_debug_logging): Update.
2226 * source.c (forget_cached_source_info_for_objfile)
2227 (select_source_symtab): Update.
2228 * objfiles.h (struct objfile): Add methods corresponding to
2229 quick_symbol_functions.
2230 * objfiles.c (objfile::has_partial_symbols): Move to
2231 symfile-debug.c.
2232 * linespec.c (iterate_over_all_matching_symtabs): Update.
2233 * cp-support.c (add_symbol_overload_list_qualified): Update.
2234 * ada-lang.c (add_nonlocal_symbols): Update.
2235
fae2120b
TT
22362021-03-20 Tom Tromey <tom@tromey.com>
2237
2238 * objfiles.h (struct objfile) <has_partial_symbols>: Return bool.
2239 * symfile.h (struct quick_symbol_functions) <has_symbols>: Return
2240 bool.
2241 * symfile-debug.c (debug_qf_has_symbols): Return bool.
2242 * psymtab.c (psym_has_symbols): Return bool.
2243 * objfiles.c (objfile::has_partial_symbols): Return bool.
2244 * dwarf2/read.c (dw2_has_symbols): Return bool.
2245
a8ad4f3c
TT
22462021-03-20 Tom Tromey <tom@tromey.com>
2247
2248 * symfile.c (read_symbols): Update.
2249 * objfiles.h (struct objfile) <has_partial_symbols>: New method.
2250 (objfile_has_partial_symbols): Don't declare.
2251 * objfiles.c (objfile::has_partial_symbols): Rename from
2252 objfile_has_partial_symbols.
2253 (objfile_has_symbols, have_partial_symbols): Update.
2254 * elfread.c (elf_symfile_read): Update.
2255 * dwarf2/read.c (dwarf2_has_info): Update.
2256 * coffread.c (coff_symfile_read): Update.
2257
70182375
TT
22582021-03-20 Tom Tromey <tom@tromey.com>
2259
2260 * coffread.c: Include dwarf2/public.h.
2261 * dwarf2/frame.c: Include dwarf2/public.h.
2262 * dwarf2/index-write.h: Include dwarf2/public.h, not symfile.h.
2263 * dwarf2/public.h: New file.
2264 * dwarf2/read.c: Include dwarf2/public.h.
2265 * elfread.c: Include dwarf2/public.h.
2266 * machoread.c: Include dwarf2/public.h.
2267 * symfile.h (dwarf2_has_info, enum dw_index_kind)
2268 (dwarf2_initialize_objfile, dwarf2_build_psymtabs)
2269 (dwarf2_build_frame_info): Move to dwarf2/public.h.
2270 * xcoffread.c: Include dwarf2/public.h.
2271
18038e63
TT
22722021-03-20 Tom Tromey <tom@tromey.com>
2273
2274 * symfile.h (enum dwarf2_section_enum)
2275 (dwarf2_get_section_info): Move to dwarf2/read.h.
2276 * dwarf2/read.h (enum dwarf2_section_enum)
2277 (dwarf2_get_section_info): Move from symfile.h.
2278
219f56b4
PA
22792021-03-19 Pedro Alves <pedro@palves.net>
2280
2281 * thread.c (any_thread_of_inferior): Check if there's a selected
2282 thread before calling inferior_thread().
2283
15310fd4
TT
22842021-03-18 Tom Tromey <tromey@adacore.com>
2285
2286 * dwarf2/stringify.c (dwarf_unit_type_name): New function. Use
2287 get_DW_UT_name.
2288 * dwarf2/stringify.h (dwarf_unit_type_name): Declare.
2289 * dwarf2/comp-unit.c (dwarf_unit_type_name): Remove.
2290
763b8efd
AB
22912021-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
2292
2293 * python/py-param.c (get_set_value): Update header comment.
2294
f058c521
SM
22952021-03-17 Simon Marchi <simon.marchi@polymtl.ca>
2296
2297 * infrun.c (check_multi_target_resumption): Remove argument to
2298 all_non_exited_inferiors.
2299
383228bc
CB
23002021-03-16 Christian Biesinger <cbiesinger@google.com>
2301
2302 * windows-nat.c (windows_init_thread_list): Add message to
2303 debug log.
2304
7807d76a
AB
23052021-03-16 Andrew Burgess <andrew.burgess@embecosm.com>
2306
2307 * python/py-framefilter.c (py_print_frame): Use PyInt_Check as
2308 well as PyLong_Check for Python 2.
2309
675da9a5
TT
23102021-03-15 Tom Tromey <tromey@adacore.com>
2311
2312 PR build/27579:
2313 * rust-exp.y (maker_map): Use gdb::hash_enum.
2314 * stap-probe.c (stap_maker_map): Use gdb::hash_enum.
2315
4800761a
SM
23162021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2317
2318 * dwarf2/read.c (create_debug_type_hash_table): Remove colon at
2319 end of debug print.
2320
eb5dd737
SM
23212021-03-15 Simon Marchi <simon.marchi@polymtl.ca>
2322
2323 * dwarf2/read.c (dw2_get_file_names_reader): Remove info_ptr
2324 parameter, adjust caller.
2325
6813ceb0
TT
23262021-03-15 Tom Tromey <tromey@adacore.com>
2327
2328 * ada-exp.y (simple_exp): Always push a result for unary '+'.
2329
3b5c4de0
TT
23302021-03-15 Tom Tromey <tromey@adacore.com>
2331
2332 * ada-lang.c (ada_unop_ind_operation::evaluate): Call
2333 ada_ensure_varsize_limit.
2334
c04da66c
TT
23352021-03-15 Tom Tromey <tromey@adacore.com>
2336
2337 * ada-lang.c (numeric_type_p, integer_type_p): Return true for
2338 fixed-point.
2339 * ada-exp.y (maybe_overload): New function.
2340 (ada_wrap_overload): New function.
2341 (ada_un_wrap2, ada_wrap2, ada_wrap_op): Use maybe_overload.
2342 (exp1, simple_exp, relation, and_exp, and_then_exp, or_exp)
2343 (or_else_exp, xor_exp, primary): Update.
2344
9863c3b5
TT
23452021-03-15 Tom Tromey <tromey@adacore.com>
2346
2347 PR ada/27545:
2348 * ada-lang.c (ada_var_value_operation::evaluate): Use recursive
2349 call for tagged type.
2350
1ac74522
TT
23512021-03-15 Tom Tromey <tromey@adacore.com>
2352
2353 * ada-exp.y (exp1): Handle resolution of the right hand side of an
2354 assignment.
2355
207582c0
TT
23562021-03-15 Tom Tromey <tromey@adacore.com>
2357
2358 * ada-lang.c (ada_aggregate_operation::assign_aggregate): Return
2359 container.
2360 (ada_assign_operation::evaluate): Update.
2361 * ada-exp.h (class ada_aggregate_operation) <assign_aggregate>:
2362 Change return type.
2363
8d624a9d
FW
23642021-03-15 Felix Willgerodt <felix.willgerodt@intel.com>
2365
2366 * i386-tdep.c (i386_floatformat_for_type): Add COMPLEX*32 and REAL*16.
2367
ba6a0ef3
AB
23682021-03-15 Andrew Burgess <andrew.burgess@embecosm.com>
2369
2370 * python/python.c (gdbpy_source_objfile_script): Use
2371 make_scoped_restore to restore gdbpy_current_objfile.
2372 (gdbpy_execute_objfile_script): Likewise.
2373
7c290a04
TT
23742021-03-14 Tom Tromey <tom@tromey.com>
2375
2376 * dwarf2/read.c (read_attribute_value): Use cu_header
2377 consistently.
2378
0280fdcc
TT
23792021-03-14 Tom Tromey <tom@tromey.com>
2380
2381 * dwarf2/read.c (struct die_reader_specs) <abfd>: Fix formatting.
2382 (peek_die_abbrev): Use reader.abfd.
2383
a9f172c6
TT
23842021-03-14 Tom Tromey <tom@tromey.com>
2385
2386 * dwarf2/read.c (dwarf2_per_cu_data::get_header): Set
2387 m_header_read_in.
2388
7c32eebb
TT
23892021-03-13 Tom Tromey <tom@tromey.com>
2390
2391 * dwarf2/read.c (struct partial_die_info): Update.
2392 (peek_die_abbrev, skip_children, skip_one_die, read_full_die_1)
2393 (load_partial_dies, partial_die_info::partial_die_info): Update.
2394 * dwarf2/abbrev.h (lookup_abbrev): Constify.
2395
27012aba
TT
23962021-03-13 Tom Tromey <tom@tromey.com>
2397
2398 * dwarf2/abbrev.c (abbrev_table::read): Remove Irix 6 workaround.
2399
fece451c
CB
24002021-03-12 Christian Biesinger <cbiesinger@google.com>
2401
2402 PR threads/27239
2403 * cp-support.c: Use scoped_segv_handler_restore.
2404 * event-top.c (thread_local_segv_handler): Made static.
2405 (scoped_segv_handler_restore::scoped_segv_handler_restore):
2406 New function.
2407 (scoped_segv_handler_restore::~scoped_segv_handler_restore): New
2408 function.
2409 * event-top.h (class scoped_segv_handler_restore): New class.
2410 (thread_local_segv_handler): Removed.
2411
7056f312
TT
24122021-03-10 Tom Tromey <tromey@adacore.com>
2413
2414 * parser-defs.h (parser_state): Change completion to bool.
2415 <parse_completion>: Likewise.
2416 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
2417 (ada_resolve_variable, ada_resolve_function): Update.
2418 * ada-lang.c (ada_find_operator_symbol): Change
2419 parse_completion to bool.
2420 (ada_resolve_funcall, ada_resolve_variable)
2421 (ada_resolve_function): Likewise.
2422
ccdc02ed
TT
24232021-03-09 Tom Tromey <tromey@adacore.com>
2424
2425 * eval.c (operation::evaluate_funcall): Use function formal
2426 parameter types when evaluating.
2427
fbb1aace
AB
24282021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2429
2430 * gdb-gdb.py.in (StructMainTypePrettyPrinter) <owner_to_string>:
2431 Updated fields names flag_objfile_owned to m_flag_objfile_owned,
2432 and owner to m_owner.
2433
611aa09d
FW
24342021-03-09 Felix Willgerodt <felix.willgerodt@intel.com>
2435
2436 * f-exp.h (eval_op_f_loc): Declare.
2437 (expr::fortran_loc_operation): New typedef.
2438 * f-exp.y (exp): Handle UNOP_FORTRAN_LOC after parsing an
2439 UNOP_INTRINSIC.
2440 (f77_keywords): Add LOC keyword.
2441 * f-lang.c (eval_op_f_loc): New function.
2442 * std-operator.def (UNOP_FORTRAN_LOC): New operator.
2443
eef32f59
AB
24442021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2445
2446 * f-exp.h (eval_op_f_array_shape): Declare.
2447 (fortran_array_shape_operation): New type.
2448 * f-exp.y (exp): Handle UNOP_FORTRAN_SHAPE after parsing
2449 UNOP_INTRINSIC.
2450 (f77_keywords): Add "shape" keyword.
2451 * f-lang.c (fortran_array_shape): New function.
2452 (eval_op_f_array_shape): New function.
2453 * std-operator.def (UNOP_FORTRAN_SHAPE): New operator.
2454
7ba155b3
AB
24552021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2456
2457 * f-exp.y (eval_op_f_array_size): Declare 1 and 2 argument forms
2458 of this function.
2459 (expr::fortran_array_size_1arg): New type.
2460 (expr::fortran_array_size_2arg): Likewise.
2461 * f-exp.y (exp): Handle FORTRAN_ARRAY_SIZE after parsing
2462 UNOP_OR_BINOP_INTRINSIC.
2463 (f77_keywords): Add "size" keyword.
2464 * f-lang.c (fortran_array_size): New function.
2465 (eval_op_f_array_size): New function, has a 1 arg and 2 arg form.
2466 * std-operator.def (FORTRAN_ARRAY_SIZE): New operator.
2467
e14816a8
AB
24682021-03-09 Andrew Burgess <andrew.burgess@embecosm.com>
2469
2470 * f-exp.h (eval_op_f_rank): Declare.
2471 (expr::fortran_rank_operation): New typedef.
2472 * f-exp.y (exp): Handle UNOP_FORTRAN_RANK after parsing an
2473 UNOP_INTRINSIC.
2474 (f77_keywords): Add "rank" keyword.
2475 * f-lang.c (eval_op_f_rank): New function.
2476 * std-operator.def (UNOP_FORTRAN_RANK): New operator.
2477
3dd93bf8
TT
24782021-03-08 Tom Tromey <tom@tromey.com>
2479
2480 * printcmd.c (set_command): Remove null check.
2481 * value.c (init_if_undefined_command): Remove null check.
2482
9c79936b
TT
24832021-03-08 Tom Tromey <tom@tromey.com>
2484
2485 * parse.c (parser_state::push_symbol, parser_state::push_dollar):
2486 Update.
2487 * p-exp.y (variable): Update.
2488 * go-exp.y (variable): Update.
2489 * expprint.c (dump_for_expression): Use bound_minimal_symbol.
2490 Remove overload for objfile.
2491 * expop.h (eval_op_var_msym_value): Use bound_minimal_symbol
2492 parameter.
2493 (check_objfile): Likewise.
2494 (dump_for_expression): Likewise. Remove overload for objfile.
2495 (class var_msym_value_operation): Use bound_minimal_symbol.
2496 * eval.c (eval_op_var_msym_value): Use bound_minimal_symbol
2497 parameter.
2498 (var_msym_value_operation::evaluate_for_address)
2499 (var_msym_value_operation::evaluate_for_sizeof)
2500 (var_msym_value_operation::evaluate_for_cast): Update.
2501 * d-exp.y (PrimaryExpression): Update.
2502 * c-exp.y (variable): Update.
2503 * ax-gdb.c (var_msym_value_operation::do_generate_ax): Update.
2504 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2505 Update.
2506 * ada-exp.y (write_var_or_type): Update.
2507
40d07d07
TT
25082021-03-08 Tom Tromey <tom@tromey.com>
2509
2510 * parser-defs.h (exp_uses_objfile): Return bool.
2511 * parse.c (exp_uses_objfile): Return bool.
2512
0b2b0b82
TT
25132021-03-08 Tom Tromey <tom@tromey.com>
2514
2515 * value.h (eval_skip_value): Don't declare.
2516 * opencl-lang.c (eval_opencl_assign): Update.
2517 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): Update.
2518 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
2519 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx): Remove.
2520 * expression.h (enum noside) <EVAL_SKIP>: Remove.
2521 * expop.h (typeof_operation::evaluate)
2522 (decltype_operation::evaluate, unop_addr_operation::evaluate)
2523 (unop_sizeof_operation::evaluate, assign_operation::evaluate)
2524 (cxx_cast_operation::evaluate): Update.
2525 * eval.c (eval_skip_value): Remove.
2526 (eval_op_scope, eval_op_var_entry_value)
2527 (eval_op_func_static_var, eval_op_string, eval_op_objc_selector)
2528 (eval_op_concat, eval_op_ternop, eval_op_structop_struct)
2529 (eval_op_structop_ptr, eval_op_member, eval_op_add, eval_op_sub)
2530 (eval_op_binary, eval_op_subscript, eval_op_equal)
2531 (eval_op_notequal, eval_op_less, eval_op_gtr, eval_op_geq)
2532 (eval_op_leq, eval_op_repeat, eval_op_plus, eval_op_neg)
2533 (eval_op_complement, eval_op_lognot, eval_op_ind)
2534 (eval_op_memval, eval_op_preinc, eval_op_predec)
2535 (eval_op_postinc, eval_op_postdec, eval_op_type)
2536 (eval_binop_assign_modify, eval_op_objc_msgcall)
2537 (eval_multi_subscript, logical_and_operation::evaluate)
2538 (logical_or_operation::evaluate, array_operation::evaluate)
2539 (operation::evaluate_for_cast)
2540 (var_msym_value_operation::evaluate_for_cast)
2541 (var_value_operation::evaluate_for_cast): Update.
2542 * c-lang.c (c_string_operation::evaluate): Update.
2543 * c-exp.h (objc_nsstring_operation::evaluate)
2544 (objc_selector_operation::evaluate): Update.
2545 * ada-lang.c (ada_assign_operation::evaluate)
2546 (eval_ternop_in_range, ada_unop_neg, ada_unop_in_range)
2547 (ada_atr_size): Update.
2548
96db551d
TT
25492021-03-08 Tom Tromey <tom@tromey.com>
2550
2551 * eval.c: Merge "namespace" scopes.
2552
ce284361
TT
25532021-03-08 Tom Tromey <tom@tromey.com>
2554
2555 * parser-defs.h (struct expr_builder) <expr_builder>: Inline.
2556 <release>: Inline.
2557 * parse.c (expr_builder::expr_builder, expr_builder::release):
2558 Remove.
2559
b9d06571
TT
25602021-03-08 Tom Tromey <tom@tromey.com>
2561
2562 * parse.c (expression::expression, expression::~expression):
2563 Remove.
2564 * expression.h (struct expression): Inline constructor. Remove
2565 destructor.
2566
79ab486e
TT
25672021-03-08 Tom Tromey <tom@tromey.com>
2568
2569 * std-operator.def (BINOP_END): Remove.
2570 * p-exp.y (tokentab3, tokentab2): Use OP_NULL, not BINOP_END.
2571 * go-exp.y (tokentab2): Use OP_NULL, not BINOP_END.
2572 * f-exp.y (dot_ops, f77_keywords): Use OP_NULL, not BINOP_END.
2573 * d-exp.y (tokentab2, ident_tokens): Use OP_NULL, not BINOP_END.
2574 * c-exp.y (tokentab3, tokentab2, ident_tokens): Use OP_NULL, not
2575 BINOP_END.
2576
48fa6f23
TT
25772021-03-08 Tom Tromey <tom@tromey.com>
2578
2579 * expression.h (enum exp_opcode) <OP_UNUSED_LAST>: Remove.
2580
43f542e3
TT
25812021-03-08 Tom Tromey <tom@tromey.com>
2582
2583 * std-operator.def (OP_EXTENDED0): Remove.
2584
5d9ba982
TT
25852021-03-08 Tom Tromey <tom@tromey.com>
2586
2587 * std-operator.def (OP_NAME, OP_ATR_IMAGE, OP_ATR_MODULUS)
2588 (OP_OTHERS, OP_CHOICES, OP_POSITIONAL, OP_DISCRETE_RANGE):
2589 Remove.
2590
d357570d
TT
25912021-03-08 Tom Tromey <tom@tromey.com>
2592
2593 * std-operator.def (UNOP_CAP, UNOP_CHR, UNOP_ORD, UNOP_FLOAT)
2594 (UNOP_MAX, UNOP_MIN, UNOP_ODD, UNOP_TRUNC, OP_M2_STRING): Remove.
2595
0922dc84
TT
25962021-03-08 Tom Tromey <tom@tromey.com>
2597
2598 * std-operator.def (OP_ATR_MIN, OP_ATR_MAX): Remove.
2599 * ada-lang.c (ada_binop_minmax): Update.
2600 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2601 Use BINOP_MIN and BINOP_MAX.
2602
1eaebe02
TT
26032021-03-08 Tom Tromey <tom@tromey.com>
2604
2605 * value.h (evaluate_subexp_with_coercion): Don't declare.
2606 * parse.c (exp_descriptor_standard): Remove.
2607 (expr_builder::expr_builder, expr_builder::release): Update.
2608 (expression::expression): Remove size_t parameter.
2609 (expression::~expression): Simplify.
2610 (expression::resize): Remove.
2611 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
2612 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
2613 (write_exp_elt_longcst, write_exp_elt_floatcst)
2614 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
2615 (write_exp_string_vector, write_exp_bitstring): Remove.
2616 * p-lang.h (class pascal_language) <opcode_print_table,
2617 op_print_tab>: Remove.
2618 * p-lang.c (pascal_language::op_print_tab): Remove.
2619 * opencl-lang.c (class opencl_language) <opcode_print_table>:
2620 Remove.
2621 * objc-lang.c (objc_op_print_tab): Remove.
2622 (class objc_language) <opcode_print_table>: Remove.
2623 * m2-lang.h (class m2_language) <opcode_print_table,
2624 op_print_tab>: Remove.
2625 * m2-lang.c (m2_language::op_print_tab): Remove.
2626 * language.h (struct language_defn) <post_parser, expression_ops,
2627 opcode_print_table>: Remove.
2628 * language.c (language_defn::expression_ops)
2629 (auto_or_unknown_language::opcode_print_table): Remove.
2630 * go-lang.h (class go_language) <opcode_print_table,
2631 op_print_tab>: Remove.
2632 * go-lang.c (go_language::op_print_tab): Remove.
2633 * f-lang.h (class f_language) <opcode_print_table>: Remove
2634 <op_print_tab>: Remove.
2635 * f-lang.c (f_language::op_print_tab): Remove.
2636 * expression.h (union exp_element): Remove.
2637 (struct expression): Remove size_t parameter from constructor.
2638 <resize>: Remove.
2639 <first_opcode>: Update.
2640 <nelts, elts>: Remove.
2641 (EXP_ELEM_TO_BYTES, BYTES_TO_EXP_ELEM): Remove.
2642 (evaluate_subexp_standard, print_expression, op_string)
2643 (dump_raw_expression): Don't declare.
2644 * expprint.c (print_expression, print_subexp)
2645 (print_subexp_funcall, print_subexp_standard, op_string)
2646 (dump_raw_expression, dump_subexp, dump_subexp_body)
2647 (dump_subexp_body_funcall, dump_subexp_body_standard): Remove.
2648 (dump_prefix_expression): Update.
2649 * eval.c (evaluate_subexp): Remove.
2650 (evaluate_expression, evaluate_type): Update.
2651 (evaluate_subexpression_type): Remove.
2652 (fetch_subexp_value): Remove "pc" parameter. Update.
2653 (extract_field_op, evaluate_struct_tuple, evaluate_funcall)
2654 (evaluate_subexp_standard, evaluate_subexp_for_address)
2655 (evaluate_subexp_with_coercion, evaluate_subexp_for_sizeof)
2656 (evaluate_subexp_for_cast): Remove.
2657 (parse_and_eval_type): Update.
2658 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2659 * d-lang.c (d_op_print_tab): Remove.
2660 (class d_language) <opcode_print_table>: Remove.
2661 * c-lang.h (c_op_print_tab): Don't declare.
2662 * c-lang.c (c_op_print_tab): Remove.
2663 (class c_language, class cplus_language, class asm_language, class
2664 minimal_language) <opcode_print_table>: Remove.
2665 * breakpoint.c (update_watchpoint, watchpoint_check)
2666 (watchpoint_exp_is_const, watch_command_1): Update.
2667 * ax-gdb.h (union exp_element): Don't declare.
2668 * ax-gdb.c (const_var_ref, const_expr, maybe_const_expr)
2669 (gen_repeat, gen_sizeof, gen_expr_for_cast, gen_expr)
2670 (gen_expr_binop_rest): Remove.
2671 (gen_trace_for_expr, gen_eval_for_expr, gen_printf): Update.
2672 * ada-lang.c (ada_op_print_tab): Remove.
2673 (class ada_language) <post_parser, opcode_print_table>: Remove.
2674
f2a98603
TT
26752021-03-08 Tom Tromey <tom@tromey.com>
2676
2677 * go-lang.c (go_language::expression_ops): Don't declare.
2678 * go-lang.h (class go_language) <expression_ops>: Remove.
2679 * opencl-lang.c (evaluate_subexp_opencl, exp_descriptor_opencl):
2680 Remove.
2681 (class opencl_language) <expression_ops>: Remove.
2682 * d-lang.c (class d_language) <expression_ops>: Remove.
2683 * c-lang.h (evaluate_subexp_c, exp_descriptor_c): Don't declare.
2684 * c-lang.c (evaluate_subexp_c, exp_descriptor_c): Remove.
2685 (class c_language, class cplus_language, class asm_language)
2686 (class minimal_language) <expression_ops>: Remove.
2687
d3c54a1c
TT
26882021-03-08 Tom Tromey <tom@tromey.com>
2689
2690 * ada-lang.c (resolve_subexp, replace_operator_with_call)
2691 (evaluate_subexp_type, assign_aggregate)
2692 (aggregate_assign_positional, aggregate_assign_from_choices)
2693 (aggregate_assign_others, ada_evaluate_subexp_for_cast)
2694 (ada_evaluate_subexp, ADA_OPERATORS, ada_operator_length)
2695 (ada_operator_check, ada_forward_operator_length)
2696 (ada_dump_subexp_body, ada_print_subexp, ada_exp_descriptor):
2697 Remove.
2698 (post_parser): Update.
2699 (class ada_language) <expresssion_ops>: Remove.
2700
5871f0a3
TT
27012021-03-08 Tom Tromey <tom@tromey.com>
2702
2703 * m2-lang.h (class m2_language) <expresssion_ops,
2704 exp_descriptor_modula2>: Remove.
2705 * m2-lang.c (evaluate_subexp_modula2)
2706 (m2_language::exp_descriptor_modula2): Remove.
2707
a99be8c1
TT
27082021-03-08 Tom Tromey <tom@tromey.com>
2709
2710 * f-lang.h (class f_language) <expresssion_ops>: Remove.
2711 <exp_descriptor_tab>: Remove.
2712 * f-lang.c (fortran_value_subarray, evaluate_subexp_f)
2713 (operator_length_f, print_unop_subexp_f, print_binop_subexp_f)
2714 (print_subexp_f, dump_subexp_body_f, operator_check_f)
2715 (f_language::exp_descriptor_tab, fortran_prepare_argument):
2716 Remove.
2717
aa1da9ed
TT
27182021-03-08 Tom Tromey <tom@tromey.com>
2719
2720 * rust-lang.h (class rust_language) <expression_ops,
2721 exp_descriptor_tab>: Remove.
2722 * rust-lang.c (rust_evaluate_funcall): Remove.
2723 (rust_range, rust_subscript, eval_op_rust_complement): Don't use
2724 EVAL_SKIP.
2725 (rust_evaluate_subexp): Remove.
2726 (rust_aggregate_operation::evaluate): Don't use EVAL_SKIP.
2727 (rust_operator_length, rust_dump_subexp_body, rust_print_subexp)
2728 (rust_operator_check, rust_language::exp_descriptor_tab): Remove.
2729
08a057e6
TT
27302021-03-08 Tom Tromey <tom@tromey.com>
2731
2732 * ada-exp.y: Create operations.
2733 (empty_stoken): Remove.
2734 (ada_pop, ada_wrap, ada_addrof, ada_un_wrap2, ada_wrap2)
2735 (ada_wrap_op, ada_wrap3, ada_funcall): New functions.
2736 (components): New global.
2737 (push_component, choice_component, pop_component, pop_components):
2738 New functions.
2739 (associations): New global
2740 (push_association, pop_association, pop_associations): New
2741 functions.
2742 (ada_parse): Update.
2743 (write_var_from_sym, write_int): Create operations.
2744 (write_exp_op_with_string): Remove.
2745 (write_object_renaming, write_selectors, write_ambiguous_var)
2746 (write_var_or_type, write_name_assoc): Create operations.
2747 * ada-lang.h (ada_index_type): Declare.
2748 * ada-lang.c (ada_index_type): No longer static.
2749
d308ba78
TT
27502021-03-08 Tom Tromey <tom@tromey.com>
2751
2752 * f-exp.y: Create operations.
2753 (f_language::parser): Update.
2754
f1b8ceef
TT
27552021-03-08 Tom Tromey <tom@tromey.com>
2756
2757 * m2-exp.y: Create operations.
2758 (m2_language::parser): Update.
2759
3163898e
TT
27602021-03-08 Tom Tromey <tom@tromey.com>
2761
2762 * p-exp.y: Create operations.
2763 (pascal_language::parser): Update.
2764
9412fdcc
TT
27652021-03-08 Tom Tromey <tom@tromey.com>
2766
2767 * d-exp.y: Create operations.
2768 (d_parse): Update.
2769
bb4e0574
TT
27702021-03-08 Tom Tromey <tom@tromey.com>
2771
2772 * go-exp.y: Create operations.
2773 (go_language::parser): Update.
2774
d182f279
TT
27752021-03-08 Tom Tromey <tom@tromey.com>
2776
2777 * objc-lang.c (end_msglist): Create operations.
2778 * c-exp.y: Change parser to create operations.
2779 (write_destructor_name): Remove.
2780 (c_parse): Update.
2781
c1299a23
TT
27822021-03-08 Tom Tromey <tom@tromey.com>
2783
2784 * rust-exp.y: Create operations.
2785 (rust_parser::convert_params_to_expression): Change return type.
2786 (binop_maker_ftype): New typedef.
2787 (maker_map): New global.
2788 (rust_parser::convert_ast_to_expression): Change return type.
2789 (rust_language::parser): Update.
2790 (_initialize_rust_exp): Initialize maker_map.
2791
4c5e7a93
TT
27922021-03-08 Tom Tromey <tom@tromey.com>
2793
2794 * stap-probe.c (binop_maker_ftype): New typedef.
2795 (stap_maker_map): New global.
2796 (stap_make_binop): New function.
2797 (stap_parse_register_operand): Return operation_up.
2798 (stap_parse_single_operand, stap_parse_argument_conditionally)
2799 (stap_parse_argument_1): Likewise.
2800 (stap_parse_argument): Create operations.
2801 (stap_probe::parse_arguments): Update.
2802 (_initialize_stap_probe): Initialize stap_maker_map.
2803 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Change return
2804 type.
2805 * i386-tdep.h (i386_stap_parse_special_token): Change return
2806 type.
2807 * i386-tdep.c (i386_stap_parse_special_token_triplet)
2808 (i386_stap_parse_special_token_three_arg_disp)
2809 (i386_stap_parse_special_token): Change return type.
2810 * gdbarch.sh (stap_parse_special_token): Change return type.
2811 * gdbarch.c: Rebuild.
2812 * gdbarch.h: Rebuild.
2813 * arm-linux-tdep.c (arm_stap_parse_special_token): Change return
2814 type.
2815 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token): Change
2816 return type.
2817
482ddd69
TT
28182021-03-08 Tom Tromey <tom@tromey.com>
2819
2820 * gdbarch.sh (dtrace_parse_probe_argument): Change return type.
2821 * gdbarch.h: Rebuild.
2822 * gdbarch.c: Rebuild.
2823 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
2824 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Change
2825 return type.
2826 (amd64_dtrace_parse_probe_argument): Update.
2827
8227d9e2
TT
28282021-03-08 Tom Tromey <tom@tromey.com>
2829
2830 * parser-defs.h (struct parser_state) <push, push_new,
2831 push_c_string, push_symbol, push_dollar, pop, pop_vector, wrap,
2832 wrap2>: New methods.
2833 <m_operations>: New member.
2834 * parse.c (parser_state::push_c_string)
2835 (parser_state::push_symbol, parser_state::push_dollar): New
2836 methods.
2837
4933522d
TT
28382021-03-08 Tom Tromey <tom@tromey.com>
2839
2840 * parser-defs.h (struct expr_completion_state) <expout_last_op>:
2841 New member.
2842 (struct parser_state) <mark_struct_expression>: New method.
2843 * parse.c (parser_state::mark_struct_expression): Update assert.
2844 (parser_state::mark_struct_expression): New method.
2845 (parser_state::mark_completion_tag): Update assert.
2846 (parse_expression_for_completion): Handle expout_last_op.
2847
413403fc
TT
28482021-03-08 Tom Tromey <tom@tromey.com>
2849
2850 * ada-exp.h (class ada_var_value_operation) <get_symbol>: Remove;
2851 now in superclass.
2852 * value.h (fetch_subexp_value): Add "op" parameter.
2853 * value.c (init_if_undefined_command): Update.
2854 * tracepoint.c (validate_actionline, encode_actions_1): Update.
2855 * stap-probe.c (stap_probe::compile_to_ax): Update.
2856 * printcmd.c (set_command): Update.
2857 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition):
2858 Update.
2859 * parser-defs.h (struct expr_builder) <set_operation>: New
2860 method.
2861 * parse.c (parse_exp_in_context, exp_uses_objfile): Update.
2862 * expression.h (struct expression) <first_opcode>: Update.
2863 <op>: New member.
2864 * expprint.c (dump_raw_expression, dump_prefix_expression):
2865 Update.
2866 * expop.h (class var_value_operation) <get_symbol>: New method.
2867 (class register_operation) <get_name>: New method.
2868 (class equal_operation): No longer a typedef, now a subclass.
2869 (class unop_memval_operation) <get_type>: New method.
2870 (class assign_operation) <get_lhs>: New method.
2871 (class unop_cast_operation) <get_type>: New method.
2872 * eval.c (evaluate_expression, evaluate_type)
2873 (evaluate_subexpression_type): Update.
2874 (fetch_subexp_value): Add "op" parameter.
2875 (parse_and_eval_type): Update.
2876 * dtrace-probe.c (dtrace_probe::compile_to_ax): Update.
2877 * breakpoint.c (update_watchpoint, watchpoint_check)
2878 (watchpoint_exp_is_const, watch_command_1): Update.
2879 * ax-gdb.c (gen_trace_for_expr, gen_eval_for_expr, gen_printf):
2880 Update.
2881
b0f9164c
TT
28822021-03-08 Tom Tromey <tom@tromey.com>
2883
2884 * ada-lang.c (ada_value_binop): Do not use op_string.
2885
a88c4354
TT
28862021-03-08 Tom Tromey <tom@tromey.com>
2887
2888 * expprint.c (dump_for_expression): New overload.
2889 * expop.h (check_objfile, dump_for_expression): Declare new
2890 overloads.
2891 * ada-lang.c (check_objfile): New overload.
2892 (assign_component, ada_aggregate_component::uses_objfile)
2893 (ada_aggregate_component::dump, ada_aggregate_component::assign)
2894 (ada_aggregate_component::assign_aggregate)
2895 (ada_positional_component::uses_objfile)
2896 (ada_positional_component::dump, ada_positional_component::assign)
2897 (ada_discrete_range_association::uses_objfile)
2898 (ada_discrete_range_association::dump)
2899 (ada_discrete_range_association::assign)
2900 (ada_name_association::uses_objfile, ada_name_association::dump)
2901 (ada_name_association::assign)
2902 (ada_choices_component::uses_objfile, ada_choices_component::dump)
2903 (ada_choices_component::assign)
2904 (ada_others_component::uses_objfile, ada_others_component::dump)
2905 (ada_others_component::assign, ada_assign_operation::evaluate):
2906 New methods.
2907 * ada-exp.h (ada_string_operation) <get_name>: New method.
2908 (class ada_assign_operation): New.
2909 (class ada_component): New.
2910 (ada_component_up): New typedef.
2911 (class ada_aggregate_operation, class ada_aggregate_component)
2912 (class ada_positional_component, class ada_others_component)
2913 (class ada_association): New.
2914 (ada_association_up): New typedef.
2915 (class ada_choices_component)
2916 (class ada_discrete_range_association)
2917 (class ada_name_association): New.
2918
d8a4ed8a
TT
29192021-03-08 Tom Tromey <tom@tromey.com>
2920
2921 * ada-lang.c (ada_var_value_operation::resolve)
2922 (ada_funcall_operation::resolve)
2923 (ada_ternop_slice_operation::resolve): New methods.
2924 * ada-exp.h (struct ada_resolvable): New.
2925 (class ada_var_value_operation): Derive from ada_resolvable.
2926 <get_block, resolve>: New methods.
2927 (class ada_funcall_operation): Derive from ada_resolvable.
2928 <resolve>: New method.
2929 (class ada_ternop_slice_operation): Derive from ada_resolvable.
2930 <resolve>: New method.
2931
efe3af2f
TT
29322021-03-08 Tom Tromey <tom@tromey.com>
2933
2934 * ada-lang.c (ada_funcall_operation::evaluate): New method.
2935 * ada-exp.h (class ada_var_msym_value_operation) <get_symbol>: New
2936 method.
2937 (class ada_funcall_operation): New.
2938
ebc06ad8
TT
29392021-03-08 Tom Tromey <tom@tromey.com>
2940
2941 * ada-lang.c (ada_structop_operation::evaluate): New method.
2942 * ada-exp.h (class ada_structop_operation): New.
2943
e8c33fa1
TT
29442021-03-08 Tom Tromey <tom@tromey.com>
2945
2946 * ada-lang.c (ada_unop_ind_operation::evaluate): New method.
2947 * ada-exp.h (class ada_unop_ind_operation): New.
2948
065ec826
TT
29492021-03-08 Tom Tromey <tom@tromey.com>
2950
2951 * ada-lang.c (ada_binop_exp): No longer static.
2952 * ada-exp.h (ada_binop_exp_operation): New typedef.
2953
9e99f48f
TT
29542021-03-08 Tom Tromey <tom@tromey.com>
2955
2956 * ada-lang.c (ada_val_atr): No longer static.
2957 (ada_atr_val_operation::evaluate): New method.
2958 * ada-exp.h (class ada_atr_val_operation): New.
2959
7631cf6c
TT
29602021-03-08 Tom Tromey <tom@tromey.com>
2961
2962 * ada-lang.c (ada_pos_atr): No longer static.
2963 * ada-exp.h (ada_pos_operation): New typedef.
2964
7992accc
TT
29652021-03-08 Tom Tromey <tom@tromey.com>
2966
2967 * ada-lang.c (ada_pos_atr): Rename from value_pos_atr. Change
2968 parameters.
2969 (ada_evaluate_subexp): Use it.
2970
6ad3b8bf
TT
29712021-03-08 Tom Tromey <tom@tromey.com>
2972
2973 * ada-lang.c (ada_binop_minmax): No longer static.
2974 * ada-exp.h (ada_binop_min_operation, ada_binop_max_operation):
2975 New typedefs.
2976
3f4a0053
TT
29772021-03-08 Tom Tromey <tom@tromey.com>
2978
2979 * ada-lang.c (ada_var_msym_value_operation::evaluate_for_cast):
2980 New method.
2981 * ada-exp.h (class ada_var_msym_value_operation): New.
2982
99a3b1e7
TT
29832021-03-08 Tom Tromey <tom@tromey.com>
2984
2985 * ada-lang.c (ada_var_value_operation::evaluate_for_cast)
2986 (ada_var_value_operation::evaluate): New methods.
2987 * ada-exp.h (class ada_var_value_operation): New.
2988
60fa02ca
TT
29892021-03-08 Tom Tromey <tom@tromey.com>
2990
2991 * ada-lang.c (ada_unop_atr_operation::evaluate): New method.
2992 * ada-exp.h (class ada_unop_atr_operation): New.
2993
82c3886e
TT
29942021-03-08 Tom Tromey <tom@tromey.com>
2995
2996 * ada-lang.c (ada_binop_in_bounds): No longer static.
2997 * ada-exp.h (class ada_binop_in_bounds_operation): New.
2998
1b1ebfab
TT
29992021-03-08 Tom Tromey <tom@tromey.com>
3000
3001 * ada-lang.c (ada_ternop_slice): No longer static.
3002 * ada-exp.h (class ada_ternop_slice_operation): New.
3003
039e4b76
TT
30042021-03-08 Tom Tromey <tom@tromey.com>
3005
3006 * ada-exp.h (ada_bitwise_operation): New template class.
3007 (ada_bitwise_and_operation, ada_bitwise_ior_operation)
3008 (ada_bitwise_xor_operation): New typedefs.
3009
6e8fb7b7
TT
30102021-03-08 Tom Tromey <tom@tromey.com>
3011
3012 * ada-lang.c (ada_equal_binop): No longer static.
3013 * ada-exp.h (class ada_binop_equal_operation): New.
3014
d9e7db06
TT
30152021-03-08 Tom Tromey <tom@tromey.com>
3016
3017 * ada-lang.c (ada_mult_binop): No longer static.
3018 * ada-exp.h (ada_binop_mul_operation ada_binop_div_operation)
3019 (ada_binop_rem_operation, ada_binop_mod_operation): New typedefs.
3020
73796c73
TT
30212021-03-08 Tom Tromey <tom@tromey.com>
3022
3023 * ada-lang.c (ada_binop_addsub_operation::evaluate): New method.
3024 * ada-exp.h (class ada_binop_addsub_operation): New.
3025
cd9a3148
TT
30262021-03-08 Tom Tromey <tom@tromey.com>
3027
3028 * ada-lang.h (ada_find_operator_symbol, ada_resolve_funcall)
3029 (ada_resolve_variable): Declare.
3030 * ada-lang.c (ada_find_operator_symbol, ada_resolve_funcall)
3031 (ada_resolve_variable): New functions.
3032 (resolve_subexp): Update.
3033
cf12b17f
TT
30342021-03-08 Tom Tromey <tom@tromey.com>
3035
3036 * opencl-lang.c (opencl_ternop_cond_operation::evaluate): New
3037 method.
3038 * c-exp.h (class opencl_ternop_cond_operation): New.
3039
944fd3b8
TT
30402021-03-08 Tom Tromey <tom@tromey.com>
3041
3042 * opencl-lang.c (opencl_logical_binop_operation::evaluate): New
3043 method.
3044 * c-exp.h (class opencl_logical_binop_operation): New.
3045
33b79214
TT
30462021-03-08 Tom Tromey <tom@tromey.com>
3047
3048 * opencl-lang.c (opencl_structop_operation::evaluate): New
3049 method.
3050 * c-exp.h (class opencl_structop_operation): New.
3051
2492ba36
TT
30522021-03-08 Tom Tromey <tom@tromey.com>
3053
3054 * opencl-lang.c (opencl_logical_not): No longer static. Change
3055 parameters.
3056 (evaluate_subexp_opencl): Update.
3057 * c-exp.h (opencl_notequal_operation): New typedef.
3058
a88c3c8d
TT
30592021-03-08 Tom Tromey <tom@tromey.com>
3060
3061 * opencl-lang.c (opencl_relop, eval_opencl_assign): No longer
3062 static. Change parameters.
3063 (eval_opencl_assign): No longer static. Add "op" parameter.
3064 (evaluate_subexp_opencl): Update.
3065 * c-exp.h (opencl_binop_operation): New template class.
3066 (opencl_assign_operation, opencl_equal_operation)
3067 (opencl_notequal_operation, opencl_less_operation)
3068 (opencl_gtr_operation, opencl_geq_operation)
3069 (opencl_leq_operation): New typedefs.
3070
e9677704
TT
30712021-03-08 Tom Tromey <tom@tromey.com>
3072
3073 * opencl-lang.c (opencl_value_cast): No longer static.
3074 * c-exp.h (opencl_cast_type_operation): New typedef.
3075
f403a4e4
TT
30762021-03-08 Tom Tromey <tom@tromey.com>
3077
3078 * f-exp.h (eval_op_f_allocated): Declare.
3079 (fortran_allocated_operation): New typedef.
3080 * f-lang.c (eval_op_f_allocated): No longer static.
3081
eb4c9271
TT
30822021-03-08 Tom Tromey <tom@tromey.com>
3083
3084 * f-lang.c (eval_op_f_associated): New functions.
3085 * f-exp.h (fortran_associated_1arg, fortran_associated_2arg): New
3086 typedefs.
3087
58a76c72
TT
30882021-03-08 Tom Tromey <tom@tromey.com>
3089
3090 * f-lang.c (fortran_bound_1arg::evaluate)
3091 (fortran_bound_2arg::evaluate): New methods.
3092 * f-exp.h (class fortran_bound_1arg, class fortran_bound_2arg):
3093 New.
3094
2f98abe1
TT
30952021-03-08 Tom Tromey <tom@tromey.com>
3096
3097 * expop.h (class unop_addr_operation) <get_expression>: New
3098 method.
3099 * f-lang.c (fortran_undetermined::value_subarray)
3100 (fortran_undetermined::evaluate): New methods.
3101 (fortran_prepare_argument): New overload.
3102 * f-exp.h (class fortran_range_operation)
3103 (class fortran_undetermined): New classes.
3104
638fd74a
TT
31052021-03-08 Tom Tromey <tom@tromey.com>
3106
3107 * rust-lang.c (rust_structop::evaluate_funcall): New method.
3108 * rust-exp.h (class rust_structop) <evaluate_funcall>: Declare
3109 method.
3110
a00b7254
TT
31112021-03-08 Tom Tromey <tom@tromey.com>
3112
3113 * expression.h (class operation) <evaluate_funcall>: New methods.
3114 * expop.h (class scope_operation) <evaluate_funcall>: New method.
3115 (class var_value_operation) <evaluate_funcall>: New method.
3116 (class structop_base_operation) <evaluate_funcall>: New method.
3117 (class var_msym_value_operation) <evaluate_funcall>: New method.
3118 (class structop_member_base): New class.
3119 (class structop_member_operation): Derive from
3120 structop_member_base.
3121 (class structop_mptr_operation): Derive from
3122 structop_member_base.
3123 (class funcall_operation): New class.
3124 * eval.c (operation::evaluate_funcall)
3125 (var_value_operation::evaluate_funcall)
3126 (scope_operation::evaluate_funcall)
3127 (structop_member_base::evaluate_funcall)
3128 (structop_base_operation::evaluate_funcall): New methods.
3129
1c02eb30
TT
31302021-03-08 Tom Tromey <tom@tromey.com>
3131
3132 * expop.h (class array_operation): New.
3133 * eval.c (array_operation::evaluate_struct_tuple)
3134 (array_operation::evaluate): New methods.
3135
e4479080
TT
31362021-03-08 Tom Tromey <tom@tromey.com>
3137
3138 * expop.h (class adl_func_operation): New.
3139 * eval.c (adl_func_operation::evaluate): New method.
3140
95d49dfb
TT
31412021-03-08 Tom Tromey <tom@tromey.com>
3142
3143 * ada-lang.c (ada_unop_in_range): No longer static.
3144 * ada-exp.h (class ada_unop_range_operation): New.
3145
7c15d377
TT
31462021-03-08 Tom Tromey <tom@tromey.com>
3147
3148 * ada-lang.c (ada_unop_neg, ada_atr_tag, ada_atr_size, ada_abs):
3149 No longer static.
3150 * ada-exp.h (ada_neg_operation, ada_atr_tag_operation)
3151 (ada_atr_size_operation, ada_abs_operation): New typedefs.
3152
5019124b
TT
31532021-03-08 Tom Tromey <tom@tromey.com>
3154
3155 * expop.h (class logical_and_operation)
3156 (class logical_or_operation): New.
3157 * eval.c (logical_and_operation::evaluate)
3158 (logical_or_operation::evaluate): New methods.
3159 * ax-gdb.c (logical_and_operation::do_generate_ax)
3160 (logical_or_operation::do_generate_ax): New methods.
3161
2bc9b40c
TT
31622021-03-08 Tom Tromey <tom@tromey.com>
3163
3164 * m2-lang.c (eval_op_m2_high, eval_op_m2_subscript): No longer
3165 static.
3166 * m2-exp.h: New file.
3167
5947d337
TT
31682021-03-08 Tom Tromey <tom@tromey.com>
3169
3170 * rust-lang.c (rust_aggregate_operation::evaluate): New method.
3171 * rust-exp.h (class rust_aggregate_operation): New.
3172
e4407a20
TT
31732021-03-08 Tom Tromey <tom@tromey.com>
3174
3175 * rust-lang.c (eval_op_rust_struct_anon, eval_op_rust_structop):
3176 No longer static.
3177 * rust-exp.h (class rust_struct_anon): New.
3178 (class rust_structop): New.
3179
9db6b6dd
TT
31802021-03-08 Tom Tromey <tom@tromey.com>
3181
3182 * rust-lang.c (rust_range): No longer static.
3183 * rust-exp.h (class rust_range_operation): New.
3184
6ce1ad67
TT
31852021-03-08 Tom Tromey <tom@tromey.com>
3186
3187 * rust-lang.c (rust_subscript): No longer static.
3188 * rust-exp.h (class rust_subscript_operation): New.
3189
11dd3dce
TT
31902021-03-08 Tom Tromey <tom@tromey.com>
3191
3192 * rust-lang.c (eval_op_rust_ind): No longer static. Add "opcode"
3193 parameter.
3194 (rust_evaluate_subexp): Update.
3195 * rust-exp.h (class rust_unop_ind_operation): New.
3196
6fab4359
TT
31972021-03-08 Tom Tromey <tom@tromey.com>
3198
3199 * rust-lang.c (eval_op_rust_complement, eval_op_rust_array): No
3200 longer static. Add "opcode" parameter.
3201 (rust_evaluate_subexp): Update.
3202 * rust-exp.h: New file.
3203
9dcd3e29
TT
32042021-03-08 Tom Tromey <tom@tromey.com>
3205
3206 * f-lang.c (eval_op_f_abs, eval_op_f_mod, eval_op_f_ceil)
3207 (eval_op_f_floor, eval_op_f_modulo, eval_op_f_cmplx)
3208 (eval_op_f_kind): No longer static. Add "opcode" parameter.
3209 (evaluate_subexp_f): Update.
3210 * f-exp.h: New file.
3211
fc715eb2
TT
32122021-03-08 Tom Tromey <tom@tromey.com>
3213
3214 * ada-lang.c (ada_ternop_range_operation::evaluate): New method.
3215 * ada-exp.h (class ada_ternop_range_operation): New.
3216
cc6bd32e
TT
32172021-03-08 Tom Tromey <tom@tromey.com>
3218
3219 * ada-lang.c (ada_qual_operation::evaluate): New method.
3220 * ada-exp.h (class ada_qual_operation): New.
3221
42fecb61
TT
32222021-03-08 Tom Tromey <tom@tromey.com>
3223
3224 * ada-lang.c (ada_string_operation::evaluate): New method.
3225 * ada-exp.h (class ada_string_operation): New.
3226
03070ee9
TT
32272021-03-08 Tom Tromey <tom@tromey.com>
3228
3229 * ada-lang.c (ada_wrapped_operation::evaluate): New method.
3230 * ada-exp.h: New file.
3231
821e72d7
TT
32322021-03-08 Tom Tromey <tom@tromey.com>
3233
3234 * expop.h (class multi_subscript_operation): New.
3235 * eval.c (multi_subscript_operation::evaluate): New method.
3236
085734dd
TT
32372021-03-08 Tom Tromey <tom@tromey.com>
3238
3239 * eval.c (objc_msgcall_operation::evaluate): New method.
3240 * c-exp.h (class objc_msgcall_operation): New.
3241
e82a5afc
TT
32422021-03-08 Tom Tromey <tom@tromey.com>
3243
3244 * expop.h (class var_value_operation): New.
3245 * eval.c (var_value_operation::evaluate)
3246 (var_value_operation::evaluate_for_address)
3247 (var_value_operation::evaluate_with_coercion)
3248 (var_value_operation::evaluate_for_sizeof)
3249 (var_value_operation::evaluate_for_cast): New methods.
3250 * ax-gdb.c (var_value_operation::do_generate_ax): New method.
3251
d9ad79d8
TT
32522021-03-08 Tom Tromey <tom@tromey.com>
3253
3254 * expop.h (cxx_cast_ftype): New typedef.
3255 (cxx_cast_operation): New template.
3256 (dynamic_cast_operation, reinterpret_cast_operation): New
3257 typedefs.
3258
292382f4
TT
32592021-03-08 Tom Tromey <tom@tromey.com>
3260
3261 * expop.h (class unop_cast_type_operation): New.
3262 * ax-gdb.c (unop_cast_type_operation::do_generate_ax): New
3263 method.
3264
165a813a
TT
32652021-03-08 Tom Tromey <tom@tromey.com>
3266
3267 * expop.h (class unop_cast_operation): New.
3268 * ax-gdb.c (unop_cast_operation::do_generate_ax): New method.
3269
e5946e16
TT
32702021-03-08 Tom Tromey <tom@tromey.com>
3271
3272 * expop.h (class assign_modify_operation): New.
3273 * eval.c (eval_binop_assign_modify): No longer static.
3274 * ax-gdb.c (assign_modify_operation::do_generate_ax): New method.
3275
40786782
TT
32762021-03-08 Tom Tromey <tom@tromey.com>
3277
3278 * expop.h (class assign_operation): New.
3279 * ax-gdb.c (assign_operation::do_generate_ax): New method.
3280
44b675c8
TT
32812021-03-08 Tom Tromey <tom@tromey.com>
3282
3283 * expop.h (class type_instance_operation): New.
3284 * eval.c (type_instance_operation::evaluate): New method.
3285
f6b42326
TT
32862021-03-08 Tom Tromey <tom@tromey.com>
3287
3288 * expop.h (class op_this_operation): New.
3289 * ax-gdb.c (op_this_operation::do_generate_ax): New method.
3290
cbc18219
TT
32912021-03-08 Tom Tromey <tom@tromey.com>
3292
3293 * expop.h (class unop_memval_operation)
3294 (class unop_memval_type_operation): New.
3295 * eval.c (eval_op_memval): No longer static.
3296 (unop_memval_operation::evaluate_for_address)
3297 (unop_memval_type_operation::evaluate_for_address)
3298 (unop_memval_operation::evaluate_for_sizeof)
3299 (unop_memval_type_operation::evaluate_for_sizeof): New methods.
3300 * ax-gdb.c (unop_memval_operation::do_generate_ax)
3301 (unop_memval_type_operation::do_generate_ax): New methods.
3302
ae4bb61e
TT
33032021-03-08 Tom Tromey <tom@tromey.com>
3304
3305 * expop.h (class unop_alignof_operation): New.
3306 * eval.c (eval_op_alignof): No longer static.
3307
85d23bda
TT
33082021-03-08 Tom Tromey <tom@tromey.com>
3309
3310 * expop.h (class unop_sizeof_operation): New.
3311 * ax-gdb.c (unop_sizeof_operation::do_generate_ax): New method.
3312
14aff815
TT
33132021-03-08 Tom Tromey <tom@tromey.com>
3314
3315 * expop.h (class unop_addr_operation): New.
3316 * ax-gdb.c (gen_expr_unop) <case UNOP_ADDR>: New.
3317
929f3aa7
TT
33182021-03-08 Tom Tromey <tom@tromey.com>
3319
3320 * expop.h (class typeid_operation): New.
3321
0af8829e
TT
33222021-03-08 Tom Tromey <tom@tromey.com>
3323
3324 * expop.h (class decltype_operation): New.
3325
4efc574c
TT
33262021-03-08 Tom Tromey <tom@tromey.com>
3327
3328 * expop.h (class typeof_operation): New.
3329
5b5f5140
TT
33302021-03-08 Tom Tromey <tom@tromey.com>
3331
3332 * expop.h (class type_operation): New.
3333 * eval.c (eval_op_type): No longer static.
3334
876469ff
TT
33352021-03-08 Tom Tromey <tom@tromey.com>
3336
3337 * expop.h (class unop_ind_base_operation)
3338 (class unop_ind_operation): New.
3339 * eval.c (eval_op_ind): No longer static. Remove "op" parameter.
3340 (unop_ind_base_operation::evaluate_for_address)
3341 (unop_ind_base_operation::evaluate_for_sizeof): New method.
3342 * ax-gdb.c (gen_expr_unop) <case UNOP_IND>: New.
3343
6d89e296
TT
33442021-03-08 Tom Tromey <tom@tromey.com>
3345
3346 * expop.h (unop_incr_operation): New template.
3347 (preinc_operation, predec_operation, postinc_operation)
3348 (postdec_operation): New typedefs.
3349 * eval.c (eval_op_preinc, eval_op_predec, eval_op_postinc)
3350 (eval_op_postdec): No longer static.
3351
9307d17b
TT
33522021-03-08 Tom Tromey <tom@tromey.com>
3353
3354 * expop.h (unary_ftype): New typedef.
3355 (unop_operation, usual_ax_binop_operation): New templates.
3356 (unary_plus_operation, unary_neg_operation)
3357 (unary_complement_operation, unary_logical_not_operation): New
3358 typedefs.
3359 * eval.c (eval_op_plus, eval_op_neg, eval_op_complement)
3360 (eval_op_lognot): No longer static.
3361 * ax-gdb.c (gen_expr_unop): New function.
3362
ae64ba58
TT
33632021-03-08 Tom Tromey <tom@tromey.com>
3364
3365 * ax-gdb.c (comma_operation::do_generate_ax): New method.
3366
d4eff4c1
TT
33672021-03-08 Tom Tromey <tom@tromey.com>
3368
3369 * expop.h (class repeat_operation): New.
3370 * eval.c (eval_op_repeat): No longer static. Remove "op"
3371 parameter.
3372 (evaluate_subexp_standard): Update.
3373 * ax-gdb.c (repeat_operation::do_generate_ax): New method.
3374
46916f2b
TT
33752021-03-08 Tom Tromey <tom@tromey.com>
3376
3377 * expop.h (class comparison_operation): New.
3378 (equal_operation, notequal_operation, less_operation)
3379 (gtr_operation, geq_operation, leq_operation): New typedefs.
3380 * eval.c (eval_op_equal, eval_op_notequal, eval_op_less)
3381 (eval_op_gtr, eval_op_geq, eval_op_leq): No longer static.
3382
224d6424
TT
33832021-03-08 Tom Tromey <tom@tromey.com>
3384
3385 * expop.h (class subscript_operation): New.
3386 * eval.c (eval_op_subscript): No longer static.
3387
373907ff
TT
33882021-03-08 Tom Tromey <tom@tromey.com>
3389
3390 * expop.h (class binop_operation, class usual_ax_binop_operation):
3391 New.
3392 (exp_operation, intdiv_operation, mod_operation, mul_operation)
3393 (div_operation, rem_operation, lsh_operation, rsh_operation)
3394 (bitwise_and_operation, bitwise_ior_operation)
3395 (bitwise_xor_operation): New typedefs.
3396 * eval.c (eval_op_binary): No longer static.
3397
5133d78b
TT
33982021-03-08 Tom Tromey <tom@tromey.com>
3399
3400 * expop.h (class sub_operation): New.
3401 * eval.c (eval_op_sub): No longer static. Remove "op" parameter.
3402 (evaluate_subexp_standard): Update.
3403
a94323b6
TT
34042021-03-08 Tom Tromey <tom@tromey.com>
3405
3406 * expop.h (class add_operation): New.
3407 * eval.c (eval_op_add): No longer static. Remove "op" parameter.
3408 (evaluate_subexp_standard): Update.
3409
e51e26a0
TT
34102021-03-08 Tom Tromey <tom@tromey.com>
3411
3412 * expop.h (class concat_operation): New.
3413 * eval.c (eval_op_concat): No longer static. Remove "op"
3414 parameter.
3415 (evaluate_subexp_standard): Update.
3416
07f724a8
TT
34172021-03-08 Tom Tromey <tom@tromey.com>
3418
3419 * expop.h (class structop_member_operation)
3420 (class structop_mptr_operation): New.
3421 * eval.c (eval_op_member): No longer static.
3422
ab0609be
TT
34232021-03-08 Tom Tromey <tom@tromey.com>
3424
3425 * expop.h (class structop_ptr_operation): New.
3426 * eval.c (eval_op_structop_ptr): No longer static. Remove "op"
3427 parameter.
3428
808b22cf
TT
34292021-03-08 Tom Tromey <tom@tromey.com>
3430
3431 * expop.h (class structop_base_operation)
3432 (class structop_operation): New.
3433 * eval.c (eval_op_structop_struct): No longer static.
3434
8cfd3e95
TT
34352021-03-08 Tom Tromey <tom@tromey.com>
3436
3437 * expop.h (class complex_operation): New.
3438
09db3700
TT
34392021-03-08 Tom Tromey <tom@tromey.com>
3440
3441 * eval.c (eval_op_objc_selector): No longer static.
3442 * c-exp.h (class objc_selector_operation): New.
3443
06dc61b9
TT
34442021-03-08 Tom Tromey <tom@tromey.com>
3445
3446 * eval.c: Include c-exp.h.
3447 * c-exp.h (class objc_nsstring_operation): New.
3448
72d0a711
TT
34492021-03-08 Tom Tromey <tom@tromey.com>
3450
3451 * c-lang.c (c_string_operation::evaluate): New method.
3452 * c-exp.h: New file.
3453
9186293f
TT
34542021-03-08 Tom Tromey <tom@tromey.com>
3455
3456 * expop.h (class ternop_cond_operation): New.
3457 * ax-gdb.c (ternop_cond_operation::do_generate_ax): New method.
3458
1594e0bb
TT
34592021-03-08 Tom Tromey <tom@tromey.com>
3460
3461 * expop.h (class ternop_slice_operation): New.
3462 * eval.c (eval_op_ternop): No longer static.
3463
b50db09f
TT
34642021-03-08 Tom Tromey <tom@tromey.com>
3465
3466 * expop.h (class string_operation): New.
3467 * eval.c (eval_op_string): No longer static.
3468
e6e01e16
TT
34692021-03-08 Tom Tromey <tom@tromey.com>
3470
3471 * expop.h (class internalvar_operation): New.
3472 * ax-gdb.c (internalvar_operation::do_generate_ax): New method.
3473
e6985c5e
TT
34742021-03-08 Tom Tromey <tom@tromey.com>
3475
3476 * expop.h (class bool_operation): New.
3477
55bdbff8
TT
34782021-03-08 Tom Tromey <tom@tromey.com>
3479
3480 * expop.h (class register_operation): New.
3481 * eval.c (eval_op_register): No longer static.
3482 * ax-gdb.c (register_operation::do_generate_ax): New method.
3483
247d935b
TT
34842021-03-08 Tom Tromey <tom@tromey.com>
3485
3486 * expop.h (class last_operation): New.
3487
17679395
TT
34882021-03-08 Tom Tromey <tom@tromey.com>
3489
3490 * expop.h (class func_static_var_operation): New.
3491 * eval.c (eval_op_func_static_var): No longer static.
3492
b5cc3923
TT
34932021-03-08 Tom Tromey <tom@tromey.com>
3494
3495 * expop.h (class var_entry_value_operation): New.
3496 * eval.c (eval_op_var_entry_value): No longer static.
3497
0c8effa3
TT
34982021-03-08 Tom Tromey <tom@tromey.com>
3499
3500 * expression.h (class operation) <set_outermost>: New method.
3501 * expop.h (class var_msym_value_operation): New.
3502 * eval.c (eval_op_var_msym_value): No longer static.
3503 (var_msym_value_operation::evaluate_for_address)
3504 (var_msym_value_operation::evaluate_for_sizeof)
3505 (var_msym_value_operation::evaluate_for_cast): New methods.
3506 * ax-gdb.c (var_msym_value_operation::do_generate_ax): New
3507 method.
3508
d336c29e
TT
35092021-03-08 Tom Tromey <tom@tromey.com>
3510
3511 * expop.h (class long_const_operation): New.
3512 * ax-gdb.c (long_const_operation::do_generate_ax): New method.
3513
d5ab122c
TT
35142021-03-08 Tom Tromey <tom@tromey.com>
3515
3516 * expop.h (class scope_operation): New.
3517 * eval.c (eval_op_scope): No longer static.
3518 (scope_operation::evaluate_for_address): New method.
3519 * ax-gdb.c (scope_operation::do_generate_ax): New method.
3520
cae26a0c
TT
35212021-03-08 Tom Tromey <tom@tromey.com>
3522
3523 * expprint.c (float_const_operation::dump): New method.
3524 * expop.h (float_data): New typedef.
3525 (class float_const_operation): New.
3526
75f9892d
TT
35272021-03-08 Tom Tromey <tom@tromey.com>
3528
3529 * expop.h (gen_expr_binop, gen_expr_structop): Declare.
3530 * ax-gdb.c (gen_expr_binop): New function.
3531 (gen_expr_structop): Likewise.
3532
de401988
TT
35332021-03-08 Tom Tromey <tom@tromey.com>
3534
3535 * expprint.c (expr::dump_for_expression): New functions.
3536 * expop.h (dump_for_expression): New overloads.
3537 (tuple_holding_operation::dump, tuple_holding_operation::do_dump):
3538 Update.
3539
e2803273
TT
35402021-03-08 Tom Tromey <tom@tromey.com>
3541
3542 * expression.h (expr::operation): New class.
3543 (expr::make_operation): New function.
3544 (expr::operation_up): New typedef.
3545 * expop.h: New file.
3546 * eval.c (operation::evaluate_for_cast)
3547 (operation::evaluate_for_address, operation::evaluate_for_sizeof):
3548 New methods.
3549 * ax-gdb.c (operation::generate_ax): New method.
3550
e18c58f2
TT
35512021-03-08 Tom Tromey <tom@tromey.com>
3552
3553 * ax-gdb.c (gen_expr_binop_rest): Remove "pc" parameter.
3554 (gen_expr_binop_rest): New overload.
3555
c0d7ed8c
TT
35562021-03-08 Tom Tromey <tom@tromey.com>
3557
3558 * eval.c (eval_multi_subscript): New function.
3559 (evaluate_subexp_standard): Use it.
3560
dd5fd283
TT
35612021-03-08 Tom Tromey <tom@tromey.com>
3562
3563 * ada-lang.c (ada_binop_exp): New function.
3564 (ada_evaluate_subexp): Use it.
3565
3848abd6
TT
35662021-03-08 Tom Tromey <tom@tromey.com>
3567
3568 * ada-lang.c (ada_val_atr): Rename from value_val_atr. Change
3569 parameters.
3570 (ada_evaluate_subexp): Use it.
3571
38dc70cf
TT
35722021-03-08 Tom Tromey <tom@tromey.com>
3573
3574 * ada-lang.c (ada_binop_minmax): New function.
3575 (ada_evaluate_subexp): Use it.
3576
b84564fc
TT
35772021-03-08 Tom Tromey <tom@tromey.com>
3578
3579 * ada-lang.c (ada_unop_atr): New function.
3580 (ada_evaluate_subexp): Use it.
3581
b467efaa
TT
35822021-03-08 Tom Tromey <tom@tromey.com>
3583
3584 * ada-lang.c (ada_binop_in_bounds): New function.
3585 (ada_evaluate_subexp): Use it.
3586
5ce19db8
TT
35872021-03-08 Tom Tromey <tom@tromey.com>
3588
3589 * ada-lang.c (ada_ternop_slice): New function.
3590 (ada_evaluate_subexp): Use it.
3591
214b13ac
TT
35922021-03-08 Tom Tromey <tom@tromey.com>
3593
3594 * ada-lang.c (ada_equal_binop): New function.
3595 (ada_evaluate_subexp): Use it.
3596
faa1dfd7
TT
35972021-03-08 Tom Tromey <tom@tromey.com>
3598
3599 * ada-lang.c (ada_mult_binop): New function.
3600 (ada_evaluate_subexp): Use it.
3601
d05e24e6
TT
36022021-03-08 Tom Tromey <tom@tromey.com>
3603
3604 * ada-lang.c (ada_abs): New function.
3605 (ada_evaluate_subexp): Use it.
3606
68c75735
TT
36072021-03-08 Tom Tromey <tom@tromey.com>
3608
3609 * ada-lang.c (ada_atr_size): New function.
3610 (ada_evaluate_subexp): Use it.
3611
020dbabe
TT
36122021-03-08 Tom Tromey <tom@tromey.com>
3613
3614 * ada-lang.c (ada_atr_tag): New function.
3615 (ada_evaluate_subexp): Use it.
3616
7efc87ff
TT
36172021-03-08 Tom Tromey <tom@tromey.com>
3618
3619 * ada-lang.c (ada_unop_in_range): New function.
3620 (ada_evaluate_subexp): Use it.
3621
82390ab8
TT
36222021-03-08 Tom Tromey <tom@tromey.com>
3623
3624 * ada-lang.c (ada_unop_neg): New function.
3625 (ada_evaluate_subexp): Use it.
3626
62d4bd94
TT
36272021-03-08 Tom Tromey <tom@tromey.com>
3628
3629 * ada-lang.c (eval_ternop_in_range): New function.
3630 (ada_evaluate_subexp): Use it.
3631
3634f669
TT
36322021-03-08 Tom Tromey <tom@tromey.com>
3633
3634 * opencl-lang.c (eval_opencl_assign): New function.
3635 (evaluate_subexp_opencl): Use it.
3636
5e80600e
TT
36372021-03-08 Tom Tromey <tom@tromey.com>
3638
3639 * eval.c (eval_op_objc_msgcall): New function.
3640 (evaluate_subexp_standard): Use it.
3641
fb5ba2ab
TT
36422021-03-08 Tom Tromey <tom@tromey.com>
3643
3644 * eval.c (eval_binop_assign_modify): New function.
3645 (evaluate_subexp_standard): Use it.
3646
a49881f7
TT
36472021-03-08 Tom Tromey <tom@tromey.com>
3648
3649 * m2-lang.c (eval_op_m2_subscript): New function.
3650 (evaluate_subexp_modula2): Use it.
3651
41bdced5
TT
36522021-03-08 Tom Tromey <tom@tromey.com>
3653
3654 * m2-lang.c (eval_op_m2_high): New function.
3655 (evaluate_subexp_modula2): Use it.
3656
13ea014a
TT
36572021-03-08 Tom Tromey <tom@tromey.com>
3658
3659 * eval.c (evaluate_subexp_for_address_base): New function.
3660 (evaluate_subexp_for_address): Use it.
3661 (evaluate_subexp_for_sizeof_base): New function.
3662 (evaluate_subexp_for_sizeof): Use it.
3663
1fa41fc7
TT
36642021-03-08 Tom Tromey <tom@tromey.com>
3665
3666 * rust-lang.c (eval_op_rust_structop): New function.
3667 (rust_evaluate_subexp): Use it.
3668
575cae23
TT
36692021-03-08 Tom Tromey <tom@tromey.com>
3670
3671 * rust-lang.c (eval_op_rust_struct_anon): New function.
3672 (rust_evaluate_subexp): Use it.
3673
05104233
TT
36742021-03-08 Tom Tromey <tom@tromey.com>
3675
3676 * rust-lang.c (eval_op_rust_array): New function.
3677 (rust_evaluate_subexp): Use it.
3678
6fa9831f
TT
36792021-03-08 Tom Tromey <tom@tromey.com>
3680
3681 * rust-lang.c (eval_op_rust_complement): New function.
3682 (rust_evaluate_subexp): Use it.
3683
d123f9e4
TT
36842021-03-08 Tom Tromey <tom@tromey.com>
3685
3686 * rust-lang.c (eval_op_rust_ind): New function.
3687 (rust_evaluate_subexp): Use it.
3688
984af2cb
TT
36892021-03-08 Tom Tromey <tom@tromey.com>
3690
3691 * rust-lang.c (rust_subscript): Change parameters.
3692 (rust_evaluate_subexp): Update.
3693
d148f803
TT
36942021-03-08 Tom Tromey <tom@tromey.com>
3695
3696 * rust-lang.c (rust_range): Change parameters.
3697 (rust_evaluate_subexp): Update.
3698
9cbd1c20
TT
36992021-03-08 Tom Tromey <tom@tromey.com>
3700
3701 * f-lang.c (eval_op_f_allocated): New function.
3702 (evaluate_subexp_f): Use it.
3703
3c18c49c
TT
37042021-03-08 Tom Tromey <tom@tromey.com>
3705
3706 * f-lang.c (fortran_require_array): New function.
3707 (evaluate_subexp_f): Use it.
3708
216f6fcb
TT
37092021-03-08 Tom Tromey <tom@tromey.com>
3710
3711 * f-lang.c (eval_op_f_kind): New function.
3712 (evaluate_subexp_f): Use it.
3713
00f2db6f
TT
37142021-03-08 Tom Tromey <tom@tromey.com>
3715
3716 * f-lang.c (eval_op_f_cmplx): New function.
3717 (evaluate_subexp_f): Use it.
3718
93b2b5fa
TT
37192021-03-08 Tom Tromey <tom@tromey.com>
3720
3721 * f-lang.c (eval_op_f_modulo): New function.
3722 (evaluate_subexp_f): Use it.
3723
9f1a1f3c
TT
37242021-03-08 Tom Tromey <tom@tromey.com>
3725
3726 * f-lang.c (eval_op_f_floor): New function.
3727 (evaluate_subexp_f): Use it.
3728
3dc41f3c
TT
37292021-03-08 Tom Tromey <tom@tromey.com>
3730
3731 * f-lang.c (eval_op_f_ceil): New function.
3732 (evaluate_subexp_f): Use it.
3733
e08109f2
TT
37342021-03-08 Tom Tromey <tom@tromey.com>
3735
3736 * f-lang.c (eval_op_f_mod): New function.
3737 (evaluate_subexp_f): Use it.
3738
cc05c68e
TT
37392021-03-08 Tom Tromey <tom@tromey.com>
3740
3741 * f-lang.c (eval_op_f_abs): New function.
3742 (evaluate_subexp_f): Use it.
3743
aec95807
TT
37442021-03-08 Tom Tromey <tom@tromey.com>
3745
3746 * eval.c (eval_op_type): New function.
3747 (evaluate_subexp_standard): Use it.
3748
a220ead5
TT
37492021-03-08 Tom Tromey <tom@tromey.com>
3750
3751 * eval.c (eval_op_postdec): New function.
3752 (evaluate_subexp_standard): Use it.
3753
abffe116
TT
37542021-03-08 Tom Tromey <tom@tromey.com>
3755
3756 * eval.c (eval_op_postinc): New function.
3757 (evaluate_subexp_standard): Use it.
3758
9e1361b7
TT
37592021-03-08 Tom Tromey <tom@tromey.com>
3760
3761 * eval.c (eval_op_predec): New file.
3762 (evaluate_subexp_standard): Use it.
3763
00f50884
TT
37642021-03-08 Tom Tromey <tom@tromey.com>
3765
3766 * eval.c (eval_op_preinc): New function.
3767 (evaluate_subexp_standard): Use it.
3768
3aef2a07
TT
37692021-03-08 Tom Tromey <tom@tromey.com>
3770
3771 * eval.c (eval_op_memval): New function.
3772 (evaluate_subexp_standard): Use it.
3773
acee9468
TT
37742021-03-08 Tom Tromey <tom@tromey.com>
3775
3776 * eval.c (eval_op_alignof): New function.
3777 (evaluate_subexp_standard): Use it.
3778
786f70ee
TT
37792021-03-08 Tom Tromey <tom@tromey.com>
3780
3781 * eval.c (eval_op_ind): New function.
3782 (evaluate_subexp_standard): Use it.
3783
24338fb9
TT
37842021-03-08 Tom Tromey <tom@tromey.com>
3785
3786 * eval.c (eval_op_lognot): New function.
3787 (evaluate_subexp_standard): Use it.
3788
1f09ec81
TT
37892021-03-08 Tom Tromey <tom@tromey.com>
3790
3791 * eval.c (eval_op_complement): New function.
3792 (evaluate_subexp_standard): Use it.
3793
606d105f
TT
37942021-03-08 Tom Tromey <tom@tromey.com>
3795
3796 * eval.c (eval_op_neg): New function.
3797 (evaluate_subexp_standard): Use it.
3798
39f288be
TT
37992021-03-08 Tom Tromey <tom@tromey.com>
3800
3801 * eval.c (eval_op_plus): New function.
3802 (evaluate_subexp_standard): Use it.
3803
eed70b1c
TT
38042021-03-08 Tom Tromey <tom@tromey.com>
3805
3806 * eval.c (eval_op_repeat): New function.
3807 (evaluate_subexp_standard): Use it.
3808
60cdd487
TT
38092021-03-08 Tom Tromey <tom@tromey.com>
3810
3811 * eval.c (eval_op_leq): New function.
3812 (evaluate_subexp_standard): Use it.
3813
96e3efd9
TT
38142021-03-08 Tom Tromey <tom@tromey.com>
3815
3816 * eval.c (eval_op_geq): New function.
3817 (evaluate_subexp_standard): Use it.
3818
1f78d732
TT
38192021-03-08 Tom Tromey <tom@tromey.com>
3820
3821 * eval.c (eval_op_gtr): New function.
3822 (evaluate_subexp_standard): Use it.
3823
6cad1349
TT
38242021-03-08 Tom Tromey <tom@tromey.com>
3825
3826 * eval.c (eval_op_less): New function.
3827 (evaluate_subexp_standard): Use it.
3828
1fcb3559
TT
38292021-03-08 Tom Tromey <tom@tromey.com>
3830
3831 * eval.c (eval_op_notequal): New function.
3832 (evaluate_subexp_standard): Use it.
3833
0cc96de8
TT
38342021-03-08 Tom Tromey <tom@tromey.com>
3835
3836 * eval.c (eval_op_equal): New function.
3837 (evaluate_subexp_standard): Use it.
3838
288d26bc
TT
38392021-03-08 Tom Tromey <tom@tromey.com>
3840
3841 * eval.c (eval_op_subscript): New function.
3842 (evaluate_subexp_standard): Use it.
3843
7cdcdd02
TT
38442021-03-08 Tom Tromey <tom@tromey.com>
3845
3846 * eval.c (eval_op_binary): New function.
3847 (evaluate_subexp_standard): Use it.
3848
d9790e22
TT
38492021-03-08 Tom Tromey <tom@tromey.com>
3850
3851 * eval.c (eval_op_sub): New function.
3852 (evaluate_subexp_standard): Use it.
3853
aedaf9ac
TT
38542021-03-08 Tom Tromey <tom@tromey.com>
3855
3856 * eval.c (eval_op_add): New function.
3857 (evaluate_subexp_standard): Use it.
3858
b7a96ed2
TT
38592021-03-08 Tom Tromey <tom@tromey.com>
3860
3861 * eval.c (eval_op_member): New function.
3862 (evaluate_subexp_standard): Use it.
3863
fb461aa3
TT
38642021-03-08 Tom Tromey <tom@tromey.com>
3865
3866 * eval.c (eval_op_structop_ptr): New function.
3867 (evaluate_subexp_standard): Use it.
3868
3e96c4fc
TT
38692021-03-08 Tom Tromey <tom@tromey.com>
3870
3871 * eval.c (eval_op_structop_struct): New function.
3872 (evaluate_subexp_standard): Use it.
3873
f960a617
TT
38742021-03-08 Tom Tromey <tom@tromey.com>
3875
3876 * eval.c (eval_op_ternop): New function.
3877 (evaluate_subexp_standard): Use it.
3878
5c2f201e
TT
38792021-03-08 Tom Tromey <tom@tromey.com>
3880
3881 * eval.c (eval_op_concat): New function.
3882 (evaluate_subexp_standard): Use it.
3883
f871bae1
TT
38842021-03-08 Tom Tromey <tom@tromey.com>
3885
3886 * eval.c (eval_op_objc_selector): New function.
3887 (evaluate_subexp_standard): Use it.
3888
14a1c64a
TT
38892021-03-08 Tom Tromey <tom@tromey.com>
3890
3891 * eval.c (eval_op_string): New function.
3892 (evaluate_subexp_standard): Use it.
3893
ffff730b
TT
38942021-03-08 Tom Tromey <tom@tromey.com>
3895
3896 * eval.c (eval_op_register): New function.
3897 (evaluate_subexp_standard): Use it.
3898
9b1d8af6
TT
38992021-03-08 Tom Tromey <tom@tromey.com>
3900
3901 * eval.c (eval_op_func_static_var): New function.
3902 (evaluate_subexp_standard): Use it.
3903
c0df9289
TT
39042021-03-08 Tom Tromey <tom@tromey.com>
3905
3906 * eval.c (eval_op_var_msym_value): New function.
3907 (evaluate_subexp_standard): Use it.
3908
50b98adc
TT
39092021-03-08 Tom Tromey <tom@tromey.com>
3910
3911 * eval.c (eval_op_var_entry_value): New function.
3912 (evaluate_subexp_standard): Use it.
3913
ea2d29f7
TT
39142021-03-08 Tom Tromey <tom@tromey.com>
3915
3916 * eval.c (eval_op_scope): New function.
3917 (evaluate_subexp_standard): Use it.
3918
01573d73
TT
39192021-03-06 Chernov Sergey <klen_s@mail.ru>
3920
3921 PR gdb/27528:
3922 * ada-lang.c (ada_fold_name): Use gdb::to_string.
3923
9938d15a
TT
39242021-03-06 Tom Tromey <tom@tromey.com>
3925
3926 * dwarf2/sect-names.h (dwarf2_elf_names): Declare.
3927 * dwarf2/read.h (dwarf2_get_dwz_file): Move to dwz.h.
3928 * dwarf2/read.c (dwarf2_elf_names): No longer static.
3929 (locate_dwz_sections, dwz_search_other_debugdirs)
3930 (dwarf2_get_dwz_file): Move to dwz.c.
3931 * dwarf2/dwz.h (dwarf2_get_dwz_file): Move declaration from
3932 read.h.
3933 * dwarf2/dwz.c (locate_dwz_sections, dwz_search_other_debugdirs)
3934 (dwarf2_get_dwz_file): Move from read.c.
3935
18035655
TT
39362021-03-06 Tom Tromey <tom@tromey.com>
3937
3938 * debuginfod-support.h: Include scoped_fd.h.
3939
a7308ce0
TT
39402021-03-06 Tom Tromey <tom@tromey.com>
3941
3942 * dwarf2/read.h (dwarf2_get_dwz_file): Add 'require' parameter.
3943 * dwarf2/read.c (dwarf2_get_dwz_file): Add 'require' parameter.
3944 (get_abbrev_section_for_cu, read_attribute_value)
3945 (get_debug_line_section): Update.
3946 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
3947
fbedd546
TT
39482021-03-06 Tom Tromey <tom@tromey.com>
3949
3950 * dwarf2/sect-names.h (struct dwarf2_section_names) <matches>: New
3951 method.
3952 * dwarf2/read.c (section_is_p): Remove.
3953 (dwarf2_per_bfd::locate_sections)
3954 (dwarf2_per_bfd::locate_sections, locate_dwz_sections)
3955 (locate_v1_virtual_dwo_sections, dwarf2_locate_dwo_sections)
3956 (dwarf2_locate_common_dwp_sections)
3957 (dwarf2_locate_v2_dwp_sections, dwarf2_locate_v5_dwp_sections):
3958 Update.
3959
c2a62a3d
TT
39602021-03-06 Tom Tromey <tom@tromey.com>
3961
3962 * xcoffread.c: Include sect-names.h.
3963 * symfile.h (struct dwarf2_section_names, struct
3964 dwarf2_debug_sections): Move to dwarf2/sect-names.h.
3965 * dwarf2/sect-names.h: New file, from symfile.h.
3966 * dwarf2/read.c: Include sect-names.h.
3967
4444f407
TT
39682021-03-06 Tom Tromey <tom@tromey.com>
3969
3970 * dwarf2/read.c (read_attribute): Make 'abbrev' const.
3971 * dwarf2/abbrev.c (abbrev_table::alloc_abbrev): Remove.
3972 (abbrev_table::read): Update.
3973 * dwarf2/abbrev.h (struct attr_abbrev): Move earlier.
3974 (struct abbrev_info): Reformat.
3975 <attrs>: Now an array.
3976 (struct abbrev_table) <alloc_abbrev>: Remove.
3977
dd99cf0c
WP
39782021-03-06 Weimin Pan <weimin.pan@oracle.com>
3979
3980 * ctfread.c (ctf_psymtab_add_enums): New function.
3981 (ctf_psymtab_type_cb): call ctf_psymtab_add_enums.
3982
844be3f2
WP
39832021-03-06 Weimin Pan <weimin.pan@oracle.com>
3984
3985 * ctfread.c (read_func_kind_type): Set up function arguments.
3986
b2668f28
AB
39872021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
3988 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * riscv-none-tdep.c: Add 'user-regs.h' and 'target-description.h'
3991 includes.
3992 (riscv_csrset): New static global.
3993 (riscv_update_csrmap): New function.
3994 (riscv_iterate_over_regset_sections): Process CSRs.
3995
d782d24b
AB
39962021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
3997
3998 * riscv-tdep.c (riscv_feature_name_csr): Define.
3999 (riscv_feature_name_cpu): Define.
4000 (riscv_feature_name_fpu): Define.
4001 (riscv_feature_name_virtual): Define.
4002 (riscv_xreg_feature): Use riscv_feature_name_cpu.
4003 (riscv_freg_feature): Use riscv_feature_name_fpu.
4004 (riscv_virtual_feature): Use riscv_feature_name_virtual.
4005 (riscv_csr_feature): Use riscv_feature_name_csr.
4006 * riscv-tdep.h (riscv_feature_name_csr): Declare.
4007
fb8f3fc0
AB
40082021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4009 Craig Blackmore <craig.blackmore@embecosm.com>
4010
4011 * Makefile.in (ALL_TARGET_OBS): Add riscv-none-tdep.o.
4012 (ALLDEPFILES): Add riscv-none-tdep.c.
4013 * configure: Regenerate.
4014 * configure.ac (CONFIG_OBS): Add elf-none-tdep.o when BFD has ELF
4015 support.
4016 * configure.tgt (riscv*-*-*): Include riscv-none-tdep.c.
4017 * elf-none-tdep.c: New file.
4018 * elf-none-tdep.h: New file.
4019 * riscv-none-tdep.c: New file.
4020
95ce627a
AB
40212021-03-05 Craig Blackmore <craig.blackmore@embecosm.com>
4022 Andrew Burgess <andrew.burgess@embecosm.com>
4023
4024 * corelow.c: Add 'xml-tdesc.h' include.
4025 (core_target::read_description): Load the target description from
4026 the core file when possible.
4027 * fbsd-tdep.c (fbsd_make_corefile_notes): Add target description
4028 note.
4029 * gcore-elf.c: Add 'gdbsupport/tdesc.h' include.
4030 (gcore_elf_make_tdesc_note): New function.
4031 * gcore-elf.h (gcore_elf_make_tdesc_note): Declare.
4032 * linux-tdep.c (linux_make_corefile_notes): Add target description
4033 note.
4034
f3a5df7b
AB
40352021-03-05 Andrew Burgess <andrew.burgess@embecosm.com>
4036
4037 * Makefile.in (SFILES): Add gcore-elf.c.
4038 (HFILES_NO_SRCDIR): Add gcore-elf.h
4039 * configure: Regenerate.
4040 * configure.ac: Add gcore-elf.o to CONFIG_OBS if we have ELF
4041 support.
4042 * fbsd-tdep.c: Add 'gcore-elf.h' include.
4043 (struct fbsd_collect_regset_section_cb_data): Delete.
4044 (fbsd_collect_regset_section_cb): Delete.
4045 (fbsd_collect_thread_registers): Delete.
4046 (struct fbsd_corefile_thread_data): Delete.
4047 (fbsd_corefile_thread): Delete.
4048 (fbsd_make_corefile_notes): Call
4049 gcore_elf_build_thread_register_notes instead of the now deleted
4050 FreeBSD code.
4051 * gcore-elf.c: New file, the content was moved here from
4052 linux-tdep.c, functions were renamed and given minor cleanup.
4053 * gcore-elf.h: New file.
4054 * gcore.c (gcore_find_signalled_thread): Moved here from
4055 linux-tdep.c and given a new name. Minor cleanups.
4056 * gcore.h (gcore_find_signalled_thread): Declare.
4057 * linux-tdep.c: Add 'gcore.h' and 'gcore-elf.h' includes.
4058 (struct linux_collect_regset_section_cb_data): Delete.
4059 (linux_collect_regset_section_cb): Delete.
4060 (linux_collect_thread_registers): Delete.
4061 (linux_corefile_thread): Call
4062 gcore_elf_build_thread_register_notes.
4063 (find_signalled_thread): Delete.
4064 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4065
d1e93af6
SM
40662021-03-04 Simon Marchi <simon.marchi@polymtl.ca>
4067
4068 PR gdb/27147
4069 * sparc-nat.h (sparc_fetch_inferior_registers): Add
4070 process_stratum_target parameter,
4071 sparc_store_inferior_registers): update callers.
4072 * sparc-nat.c (sparc_fetch_inferior_registers,
4073 sparc_store_inferior_registers): Add process_stratum_target
4074 parameter. Switch current thread before calling
4075 sparc_supply_gregset / sparc_collect_rwindow.
4076 (sparc_store_inferior_registers): Likewise.
4077 * sparc-obsd-tdep.c (sparc32obsd_supply_uthread): Add assertion.
4078 (sparc32obsd_collect_uthread): Likewise.
4079 * sparc-tdep.c (sparc_supply_rwindow, sparc_collect_rwindow):
4080 Add assertion.
4081 * sparc64-obsd-tdep.c (sparc64obsd_collect_uthread,
4082 sparc64obsd_supply_uthread): Add assertion.
4083
1178743e
TT
40842021-03-04 Tom Tromey <tromey@adacore.com>
4085
4086 * ada-lang.c (struct match_data) <found_sym>: Now bool.
4087 (aux_add_nonlocal_symbols): Update.
4088 (ada_add_block_symbols): Change "found_sym" to bool.
4089
1bfa81ac
TT
40902021-03-03 Tom Tromey <tromey@adacore.com>
4091
4092 * ada-lang.c (ada_resolve_function): Update comment.
4093 (is_nonfunction, add_symbols_from_enclosing_procs)
4094 (remove_extra_symbols): Likewise.
4095 (struct match_data): Add constructor, initializers.
4096 (add_nonlocal_symbols): Remove memset.
4097 (aux_add_nonlocal_symbols): Update comment.
4098 (ada_add_block_renamings, add_nonlocal_symbols)
4099 (ada_add_all_symbols): Likewise.
4100 * ada-exp.y (write_var_or_type): Clean up trailing whitespace.
4101
bbcdf9ab
TT
41022021-03-02 Tom Tromey <tromey@adacore.com>
4103
4104 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type)
4105 (cast_to_gnat_encoded_fixed_point_type): Remove.
4106 (ada_value_cast, ada_evaluate_subexp): Update.
4107 (gnat_encoded_fixed_point_type_info)
4108 (ada_is_gnat_encoded_fixed_point_type)
4109 (gnat_encoded_fixed_point_delta)
4110 (gnat_encoded_fixed_point_scaling_factor): Remove.
4111 * ada-lang.h (ada_is_gnat_encoded_fixed_point_type)
4112 (gnat_encoded_fixed_point_delta)
4113 (gnat_encoded_fixed_point_scaling_factor): Don't declare.
4114 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Remove.
4115 (ada_print_type): Update.
4116 * ada-valprint.c (ada_value_print_num): Update.
4117 * dwarf2/read.c (ada_get_gnat_encoded_number)
4118 (ada_get_gnat_encoded_ratio): New functions.
4119 (finish_fixed_point_type): Use them. Add parameters.
4120 (GNAT_FIXED_POINT_SUFFIX): New define.
4121 (gnat_encoded_fixed_point_type_info): New function.
4122 (read_base_type): Handle gnat encodings.
4123
5f9febe0
TT
41242021-03-02 Tom Tromey <tromey@adacore.com>
4125
4126 * ada-lang.c (ada_fold_name, ada_variant_discrim_name)
4127 (ada_enum_name, scan_discrim_bound, to_fixed_range_type): Use
4128 std::string.
4129 (GROW_VECT): Remove.
4130 (grow_vect): Remove.
4131
d1183b06
TT
41322021-03-02 Tom Tromey <tromey@adacore.com>
4133
4134 * ada-lang.h (ada_lookup_symbol_list): Return a vector.
4135 * ada-lang.c (resolve_subexp): Update.
4136 (ada_resolve_function): Accept a vector.
4137 (is_nonfunction, add_defn_to_vec)
4138 (add_symbols_from_enclosing_procs): Likewise.
4139 (num_defns_collected, defns_collected): Remove.
4140 (remove_extra_symbols): Return a vector.
4141 (remove_irrelevant_renamings): Return void.
4142 (ada_add_local_symbols): Accept a vector.
4143 (struct match_data) <obstackp>: Remove.
4144 <resultp>: New member.
4145 (aux_add_nonlocal_symbols): Update.
4146 (ada_add_block_renamings, add_nonlocal_symbols)
4147 (ada_add_all_symbols): Accept a vector.
4148 (ada_lookup_symbol_list_worker, ada_lookup_symbol_list): Return a
4149 vector.
4150 (ada_lookup_symbol): Update.
4151 (ada_add_block_symbols): Accept a vector.
4152 (get_var_value, iterate_over_symbols): Update.
4153 * ada-exp.y (block_lookup, write_var_or_type, write_name_assoc):
4154 Update.
4155
886d459f
TT
41562021-03-02 Tom Tromey <tromey@adacore.com>
4157
4158 * ada-lang.c (resolve_subexp): Use any_of and erase-remove idiom.
4159
bdcccc56
TT
41602021-03-02 Tom Tromey <tromey@adacore.com>
4161
4162 * ada-lang.c (struct ada_symbol_cache) <cache_space>: Now an
4163 auto_obstack.
4164 <root>: Initialize.
4165 (ada_pspace_data): Remove destructor.
4166 <sym_cache>: Now a unique_ptr.
4167 (ada_init_symbol_cache, ada_free_symbol_cache): Remove.
4168 (ada_get_symbol_cache): Use 'new'.
4169 (ada_clear_symbol_cache): Rewrite.
4170
1228719f
TT
41712021-03-02 Tom Tromey <tromey@adacore.com>
4172
4173 * ada-lang.c (add_nonlocal_symbols): Handle case where objfile->sf
4174 is null.
4175
bb3a4efe
LS
41762021-02-27 Lancelot Six <lsix@lancelotsix.com>
4177
4178 PR gdb/27393
4179 * source.c (add_path): Skip empty dirnames.
4180
26b43ca6 41812021-02-25 Kevin Buettner <kevinb@redhat.com>
0f977b77
KB
4182
4183 * nat/aarch64-sve-linux-ptrace.h: Add comment regarding
4184 include order for <sys/ptrace.h> and <asm/ptrace.h>.
4185
dffdd8b5
SM
41862021-02-25 Simon Marchi <simon.marchi@polymtl.ca>
4187
4188 PR gdb/26861
4189 * target.c (target_mourn_inferior): Only compare pids in
4190 target_mourn_inferior.
4191
64d38fdd
JM
41922021-02-25 Jan Matyas <jmatyas@codasip.com>
4193
4194 PR gdb/26819
4195 * remote.c (remote_target::start_remote): Ensure the single
4196 thread, automatically added for remote targets without the
4197 concept of threading, is initially in set to the "resumed"
4198 state.
4199 * remote.c (remote_target::add_current_inferior_and_thread):
4200 Add return value - return the main thread.
4201
2450ad54
JV
42022021-02-25 Jan Vrany <jan.vrany@labware.com>
4203
4204 * gdb/mi/mi-interp.c (mi_traceframe_changed): Remove trailing \n from output.
4205 (mi_tsv_created): Likewise.
4206 (mi_tsv_deleted): Likewise.
4207
30c80d88
TV
42082021-02-25 Tom de Vries <tdevries@suse.de>
4209
4210 PR symtab/27354
4211 * dwarf2/read.c (open_and_init_dwo_file): Use rcuh_kind::COMPILE as
4212 section_kind for &dwo_file->sections.info.
4213
68337b8b
AB
42142021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4215
4216 PR fortran/26155
4217 * f-lang.c (fortran_argument_convert): Delete declaration.
4218 (fortran_prepare_argument): New function.
4219 (evaluate_subexp_f): Move logic to new function
4220 fortran_prepare_argument.
4221
faeb9f13
AB
42222021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4223
4224 * f-exp.y (f77_keywords): Add 'associated'.
4225 * f-lang.c (fortran_associated): New function.
4226 (evaluate_subexp_f): Handle FORTRAN_ASSOCIATED.
4227 (operator_length_f): Likewise.
4228 (print_unop_or_binop_subexp_f): New function.
4229 (print_subexp_f): Make use of print_unop_or_binop_subexp_f for
4230 FORTRAN_ASSOCIATED, FORTRAN_LBOUND, and FORTRAN_UBOUND.
4231 (dump_subexp_body_f): Handle FORTRAN_ASSOCIATED.
4232 (operator_check_f): Likewise.
4233 * std-operator.def: Add FORTRAN_ASSOCIATED.
4234
170f4b23
AB
42352021-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
4236
4237 * f-exp.y (fortran_operators): Add ".xor.".
4238
aa659cfa
TV
42392021-02-24 Tom de Vries <tdevries@suse.de>
4240
4241 PR symtab/27336
4242 * dwarf2/attribute.c (attribute::form_is_signed): New function
4243 factored out of ...
4244 * dwarf2/attribute.h (attribute::as_signed): ... here.
4245 (attribute::is_nonnegative, attribute::as_nonnegative): New function.
4246 (attribute::form_is_signed): Declare.
4247 * dwarf2/read.c (new_symbol): Use is_nonnegative and as_nonnegative
4248 for DW_AT_decl_file.
4249
268c77c1
KB
42502021-02-24 Kevin Buettner <kevinb@redhat.com>
4251
4252 * nat/aarch64-linux-hw-point.c: Add comment regarding include
4253 order for <sys/ptrace.h> and <asm/ptrace.h>.
4254
665af52e
KB
42552021-02-24 Kevin Buettner <kevinb@redhat.com>
4256
4257 * nat/aarch64-linux-hw-point.c: Include <asm/ptrace.h> after
4258 <sys/ptrace.h>.
4259
dd80d750
AB
42602021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4261
4262 * exec.c (set_section_command): Move variable declarations into
4263 the function body, and use std::string instead of a fixed size
4264 buffer.
4265
336aa7b7
AB
42662021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4267
4268 * exec.c (exec_target::get_section_table): Delete member function.
4269 (section_table_read_available_memory): Use current_top_target, not
4270 just the exec_ops target.
4271 * target-delegates.c: Regenerate.
4272 * target.c (default_get_section_table): New function.
4273 * target.h (target_ops::get_section_table): Change default
4274 behaviour to call default_get_section_table.
4275 (default_get_section_table): Declare.
4276
02f7d26b
AB
42772021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4278
4279 * exec.c (exec_target::close): Call new clear_target_sections
4280 function.
4281 (program_space::add_target_sections): Update name of member
4282 variable.
4283 (program_space::add_target_sections): Update name of member
4284 variable.
4285 (program_space::remove_target_sections): Likewise.
4286 (exec_one_fork): Use new target_sections member function.
4287 (exec_target::get_section_table): Likewise.
4288 (exec_target::files_info): Likewise.
4289 (set_section_command): Likewise.
4290 (exec_set_section_address): Likewise.
4291 (exec_target::has_memory): Use new target_sections member
4292 function.
4293 * progspace.h (program_space::clear_target_sections): New member
4294 function.
4295 (program_space::target_sections): Rename member variable to
4296 m_target_sections, replace with a new member function.
4297 (program_space::m_target_sections): New member variable.
4298 * solib-dsbt.c (scan_dyntag): Use new member function.
4299 * solib-svr4.c (scan_dyntag): Likewise.
4300
19cf757a
AB
43012021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4302
4303 * gdb/bfd-target.c (class target_bfd) <get_section_table>: Make
4304 return type const.
4305 * gdb/exec.c (struct exec_target) <get_section_table>: Likewise.
4306 (section_table_read_available_memory): Make local const.
4307 (exec_target::xfer_partial): Make local const.
4308 (print_section_info): Make parameter const.
4309 * gdb/exec.h (print_section_info): Likewise.
4310 * gdb/ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Make local
4311 const.
4312 * gdb/record-btrace.c (record_btrace_target::xfer_partial):
4313 Likewise.
4314 * gdb/remote.c (remote_target::remote_xfer_live_readonly_partial):
4315 Likewise.
4316 * gdb/s390-tdep.c (s390_load): Likewise.
4317 * gdb/solib-dsbt.c (scan_dyntag): Likewise.
4318 * gdb/solib-svr4.c (scan_dyntag): Likewise.
4319 * gdb/target-debug.h (target_debug_print_target_section_table_p):
4320 Rename to...
4321 (target_debug_print_const_target_section_table_p): ...this.
4322 * gdb/target-delegates.c: Regenerate.
4323 * gdb/target.c (target_get_section_table): Make return type const.
4324 (target_section_by_addr): Likewise. Also make some locals const.
4325 (memory_xfer_partial_1): Make some locals const.
4326 * gdb/target.h (struct target_ops) <get_section_table>: Make
4327 return type const.
4328 (target_section_by_addr): Likewise.
4329 (target_get_section_table): Likewise.
4330
02a79309
AB
43312021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4332
4333 * NEWS: Mention new 'maint info target-sections' command.
4334 * maint.c (maintenance_info_target_sections): New function.
4335 (_initialize_maint_cmds): Register new command.
4336
895b7b4e
AB
43372021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4338
4339 * riscv-tdep.c (riscv_features_from_gdbarch_info): Rename to...
4340 (riscv_features_from_bfd): ...this. Change parameter type to
4341 'bfd*', and update as required.
4342 (riscv_find_default_target_description): Update call to
4343 riscv_features_from_bfd. Select a default xlen based on
4344 info.bfd_arch_info.
4345 (riscv_gdbarch_init): Update call to riscv_features_from_bfd.
4346
bc3c0632
AB
43472021-02-24 Andrew Burgess <andrew.burgess@embecosm.com>
4348
4349 * eval.c (evaluate_subexp_standard): Call value_ind for points to
4350 dynamic types in UNOP_IND.
4351
08ac5771
SM
43522021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4353
4354 PR gdb/26828
4355 * dwarf2/read.c (dwarf2_queue_guard) <dwarf2_queue_guard>:
4356 Instantiate queue.
4357 (~dwarf2_queue_guard): Clear queue.
4358 (queue_comp_unit): Assert that queue is
4359 instantiated.
4360 (process_queue): Adjust.
4361 * dwarf2/read.h (struct dwarf2_per_bfd) <queue>: Make optional.
4362
616c069a
SM
43632021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4364
4365 PR gdb/26828
4366 * dwarf2/read.c (maybe_queue_comp_unit): Check if CU is expanded
4367 to decide whether or not to enqueue it for expansion.
4368 (follow_die_offset, follow_die_sig_1): Ensure we load the DIEs
4369 after calling maybe_queue_comp_unit.
4370
897608ed
SM
43712021-02-23 Simon Marchi <simon.marchi@polymtl.ca>
4372
4373 * linux-nat.c (linux_nat_filter_event): Return void.
4374
15908a11
TT
43752021-02-22 Tom Tromey <tromey@adacore.com>
4376
4377 * solib-svr4.c (enable_break): Update.
4378 * bfd-target.c (class target_bfd) <target_bfd>: Change parameter
4379 type.
4380 (target_bfd_reopen): Change parameter type.
4381 * bfd-target.h (target_bfd_reopen): Change parameter type.
4382
f53fc427
SM
43832021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4384
4385 * thread.c (add_thread_silent): Add assert.
4386 (find_thread_ptid): Add assert.
4387
de146e19
SM
43882021-02-22 Simon Marchi <simon.marchi@polymtl.ca>
4389
4390 PR gdb/27435
4391 * inf-ptrace.c (struct target_unpusher): Move to target.h.
4392 (target_unpush_up): Likewise.
4393 * procfs.c (procfs_target::attach): Push target early. Use
4394 target_unpush_up to unpush target in case of error.
4395 * target.h (struct target_unpusher): Move here.
4396 (target_unpush_up): Likewise.
4397
8488c357
KB
43982021-02-19 Kevin Buettner <kevinb@redhat.com>
4399
4400 * nat/amd64-linux-siginfo.c: Include "gdbsupport/common-defs.h"
4401 (which in turn includes <gnulib/config.h>) before include
4402 of <signal.h>.
4403
5a9f5403
NC
44042021-02-19 Nelson Chu <nelson.chu@sifive.com>
4405
4406 PR 27158
4407 * riscv-tdep.c (decode_ci_type_insn): Updated encoding macros.
4408 (decode_j_type_insn): Likewise.
4409 (decode_cj_type_insn): Likewise.
4410 (decode_b_type_insn): Likewise.
4411 (decode): Likewise.
4412
26f53cd3
TT
44132021-02-18 Tom Tromey <tom@tromey.com>
4414
4415 * expression.h (struct expression) <evaluate>: Declare method.
4416 * eval.c (evaluate_subexp): Simplify.
4417 (expression::evaluate): New method.
4418 (evaluate_expression, evaluate_type): Use expression::evaluate.
4419
6a780b67
KB
44202021-02-17 Kevin Buettner <kevinb@redhat.com>
4421
4422 * ada-lang.c (ada_fold_name): Check for non-empty string prior
4423 to accessing it.
4424 (ada_lookup_name_info): Likewise.
4425
adeab0c5
MF
44262021-02-13 Mike Frysinger <vapier@gentoo.org>
4427
4428 * aclocal.m4: Regenerate.
4429
089436f7
TV
44302021-02-12 Tom de Vries <tdevries@suse.de>
4431
4432 PR threads/26228
4433 * linux-nat.c (lin_thread_get_thread_signals): Remove.
4434 (lin_thread_signals): New static var.
4435 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4436 New function.
4437 * linux-nat.h (lin_thread_get_thread_signals): Remove.
4438 (lin_thread_get_thread_signal_num, lin_thread_get_thread_signal):
4439 Declare.
4440 * linux-thread-db.c (check_thread_signals): Use
4441 lin_thread_get_thread_signal_num and lin_thread_get_thread_signal.
4442
96df3e28
AB
44432021-02-12 Andrew Burgess <andrew.burgess@embecosm.com>
4444
4445 * f-exp.y (f77_keywords): Add allocated.
4446 * f-lang.c (evaluate_subexp_f): Handle UNOP_FORTRAN_ALLOCATED.
4447 (operator_length_f): Likewise.
4448 (print_subexp_f): Likewise.
4449 (dump_subexp_body_f): Likewise.
4450 (operator_check_f): Likewise.
4451 * std-operator.def (UNOP_FORTRAN_ALLOCATED): New operator.
4452
05f68f52
TV
44532021-02-11 Tom de Vries <tdevries@suse.de>
4454
4455 PR symtab/27353
4456 * dwarf2/attribute.c (attribute::form_requires_reprocessing):
4457 Return true for DW_FORM_strx.
4458
b260f8d6
TT
44592021-02-11 Tom Tromey <tromey@adacore.com>
4460
4461 PR gdb/27383:
4462 * parse.c (write_exp_symbol_reference): Write sym.block.
4463
bf3386f0
AB
44642021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4465
4466 * NEWS: Mention changes to 'maint info sections'.
4467 * maint.c (match_substring): Return a bool, fix whitespace issue.
4468 (struct single_bfd_flag_info): New struct.
4469 (bfd_flag_info): New static global.
4470 (match_bfd_flags): Return a bool, use bfd_flag_info.
4471 (print_bfd_flags): Use bfd_flag_info.
4472 (maint_print_section_info): Delete trailing whitespace.
4473 (struct maint_info_sections_opts): New struct.
4474 (maint_info_sections_option_defs): New static global.
4475 (maint_info_sections_completer): New function.
4476 (maintenance_info_sections): Use option parsing mechanism.
4477 (_initialize_maint_cmds): Update command help text for 'maint info
4478 sections' and register a command completer.
4479
4790db14
AB
44802021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4481
4482 * maint.c (print_bfd_section_info_maybe_relocated): Delete,
4483 functionality merged into...
4484 (maint_print_all_sections): ...this new function.
4485 (maintenance_info_sections): Make use of maint_print_all_sections,
4486 allow all objects to be printed even where there's no executable.
4487
1db66e34
AB
44882021-02-11 Andrew Burgess <andrew.burgess@embecosm.com>
4489
4490 * breakpoint.c (resolve_sal_pc): Make use of
4491 bound_minimal_symbol::obj_section.
4492 * maint.c (maintenance_translate_address): Likewise.
4493 * minsyms.c (minimal_symbol_upper_bound): Likewise.
4494 * minsyms.h (struct bound_minimal_symbol) <obj_section>: New
4495 member function.
4496 * printcmd.c (info_address_command): Make use of
4497 bound_minimal_symbol::obj_section.
4498
18b8df43
AM
44992021-02-11 Alan Modra <amodra@gmail.com>
4500
4501 * arm-symbian-tdep.c: Delete.
4502 * NEWS: Mention arm-symbian removal.
4503 * Makefile.in: Remove arm-symbian-tdep entries.
4504 * configure.tgt: Remove arm*-*-symbianelf*.
4505 * doc/gdb.texinfo: Remove mention of SymbianOS.
4506 * osabi.c (gdb_osabi_names): Remove "Symbian".
4507 * osabi.h (enum gdb_osabi): Remove GDB_OSABI_SYMBIAN.
4508 * testsuite/gdb.base/ending-run.exp: Remove E32Main handling.
4509 * testsuite/gdb.ada/catch_ex_std.exp: Remove arm*-*-symbianelf*
4510 handling.
4511 * testsuite/gdb.base/dup-sect.exp: Likewise.
4512 * testsuite/gdb.base/long_long.exp: Likewise.
4513 * testsuite/gdb.base/solib-weak.exp: Likewise.
4514 * testsuite/gdb.guile/scm-section-script.exp: Likewise.
4515 * testsuite/gdb.python/py-section-script.exp: Likewise.
4516 * testsuite/lib/dwarf.exp: Likewise.
4517 * testsuite/lib/gdb.exp: Likewise.
4518
e92c8eb8
AB
45192021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4520
4521 * f-exp.y (UNOP_OR_BINOP_INTRINSIC): New token.
4522 (exp): New pattern using UNOP_OR_BINOP_INTRINSIC.
4523 (one_or_two_args): New pattern.
4524 (f77_keywords): Add lbound and ubound.
4525 * f-lang.c (fortran_bounds_all_dims): New function.
4526 (fortran_bounds_for_dimension): New function.
4527 (evaluate_subexp_f): Handle FORTRAN_LBOUND and FORTRAN_UBOUND.
4528 (operator_length_f): Likewise.
4529 (print_subexp_f): Likewise.
4530 (dump_subexp_body_f): Likewise.
4531 (operator_check_f): Likewise.
4532 * std-operator.def (FORTRAN_LBOUND): Define.
4533 (FORTRAN_UBOUND): Define.
4534
a52d653e
AB
45352021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4536
4537 * coff-pe-read.c (add_pe_forwarded_sym): Make use of section_index
4538 and set_section_index member functions where appropriate.
4539 * coffread.c (coff_symtab_read): Likewise.
4540 (process_coff_symbol): Likewise.
4541 * ctfread.c (set_symbol_address): Likewise.
4542 * dwarf2/read.c (add_partial_symbol): Likewise.
4543 (var_decode_location): Likewise.
4544 * language.c: Likewise.
4545 * minsyms.c (minimal_symbol_reader::record_full): Likewise.
4546 (compact_minimal_symbols): Likewise.
4547 (minimal_symbol_upper_bound): Likewise.
4548 * objfiles.c (relocate_one_symbol): Likewise.
4549 * psympriv.h (partial_symbol::obj_section): Likewise.
4550 (partial_symbol::address): Likewise.
4551 * psymtab.c (partial_symtab::add_psymbol): Likewise.
4552 * stabsread.c (scan_file_globals): Likewise.
4553 * symmisc.c (dump_msymbols): Likewise.
4554 * symtab.c (general_symbol_info::obj_section): Likewise.
4555 (fixup_section): Likewise.
4556 (get_msymbol_address): Likewise.
4557 * symtab.h (general_symbol_info::section): Rename to...
4558 (general_symbol_info::m_section): ...this.
4559 (general_symbol_info::set_section_index): New member function.
4560 (general_symbol_info::section_index): Likewise.
4561 (SYMBOL_SECTION): Delete.
4562 (MSYMBOL_VALUE_ADDRESS): Make use of section_index and
4563 set_section_index member functions where appropriate.
4564 (MSYMBOL_SECTION): Delete.
4565 (symbol::symbol): Update to initialize 'm_section'.
4566 * xcoffread.c (read_xcoff_symtab): Make use of set_section_index.
4567 (process_xcoff_symbol): Likewise.
4568
ebbc3a7d
AB
45692021-02-10 Andrew Burgess <andrew.burgess@embecosm.com>
4570
4571 * breakpoint.c (resolve_sal_pc): Replace SYMBOL_OBJ_SECTION and
4572 MSYMBOL_OBJ_SECTION.
4573 * findvar.c (language_defn::read_var_value): Likewise.
4574 * infcmd.c (jump_command): Likewise.
4575 * linespec.c (minsym_found): Likewise.
4576 * maint.c (maintenance_translate_address): Likewise.
4577 * minsyms.c (lookup_minimal_symbol_by_pc_section): Likewise.
4578 (minimal_symbol_upper_bound): Likewise.
4579 * parse.c (find_minsym_type_and_address): Likewise.
4580 (operator_check_standard): Likewise.
4581 * printcmd.c (info_address_command): Likewise.
4582 * symmisc.c (dump_msymbols): Likewise.
4583 (print_symbol): Likewise.
4584 * symtab.c (general_symbol_info::obj_section): Define new
4585 function.
4586 (fixup_symbol_section): Replace SYMBOL_OBJ_SECTION.
4587 (find_pc_sect_compunit_symtab): Likewise.
4588 (find_function_start_sal): Likewise.
4589 (skip_prologue_sal): Replace SYMBOL_OBJ_SECTION and
4590 MSYMBOL_OBJ_SECTION.
4591 * symtab.h (struct general_symbol_info) <obj_section>: Declare new
4592 function.
4593 (SYMBOL_OBJ_SECTION): Delete.
4594 (MSYMBOL_OBJ_SECTION): Delete.
4595
9bb305b3
TT
45962021-02-09 Tom Tromey <tom@tromey.com>
4597
4598 * stap-probe.c (stap_parse_argument_conditionally): Fix typo.
4599
cf2b2075
TV
46002021-02-09 Tom de Vries <tdevries@suse.de>
4601
4602 PR symtab/27341
4603 * dwarf2/read.c (read_array_type): Return NULL when not being able to
4604 construct an array type. Add assert to ensure that element_type is
4605 not being modified.
4606
03642b71
AB
46072021-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
4608
4609 * gcore.c (struct gcore_collect_regset_section_cb_data): Delete.
4610 (gcore_collect_regset_section_cb): Delete.
4611 (gcore_collect_thread_registers): Delete.
4612 (gcore_build_thread_register_notes): Delete.
4613 (gcore_find_signalled_thread): Delete.
4614 * gcore.h: Remove 'gdbsupport/gdb_signals.h' include and delete
4615 'gdbarch' and 'thread_info' declarations.
4616 (gcore_build_thread_register_notes): Delete declaration.
4617 (gcore_find_signalled_thread): Likewise.
4618 * fbsd-tdep.c: Remove 'gcore.h' include.
4619 (struct fbsd_collect_regset_section_cb_data): New struct.
4620 (fbsd_collect_regset_section_cb): New function.
4621 (fbsd_collect_thread_registers): New function.
4622 (struct fbsd_corefile_thread_data): New struct.
4623 (fbsd_corefile_thread): New function.
4624 (fbsd_make_corefile_notes): Call FreeBSD specific code.
4625 * linux-tdep.c: Remove 'gcore.h' include.
4626 (struct linux_collect_regset_section_cb_data): New struct.
4627 (linux_collect_regset_section_cb): New function.
4628 (linux_collect_thread_registers): New function.
4629 (linux_corefile_thread): Call Linux specific code.
4630 (find_signalled_thread): New function.
4631 (linux_make_corefile_notes): Call find_signalled_thread.
4632
f73e424f
TT
46332021-02-09 Tom Tromey <tromey@adacore.com>
4634
4635 * ada-lang.c (coerce_unspec_val_to_type): Avoid making lazy
4636 not_lval value.
4637 * value.c (value_contents_copy_raw): Now static.
4638 * value.h (value_contents_copy_raw): Don't declare.
4639
a4f0544b
TT
46402021-02-09 Tom Tromey <tromey@adacore.com>
4641
4642 * gdbtypes.c (resolve_dynamic_struct): Handle structure with no
4643 fields.
4644
9b3e4b5d
SV
46452021-02-08 Shahab Vahedi <shahab@synopsys.com>
4646
4647 PR tdep/27369
4648 * arc-linux-tdep.c (handle_atomic_sequence): New.
4649 (arc_linux_software_single_step): Call handle_atomic_sequence().
4650
29db1eb3
AB
46512021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4652
4653 * python/py-tui.c (gdbpy_tui_window) <is_valid>: New member
4654 function.
4655 (REQUIRE_WINDOW): Call is_valid member function.
4656 (REQUIRE_WINDOW_FOR_SETTER): New define.
4657 (gdbpy_tui_is_valid): Call is_valid member function.
4658 (gdbpy_tui_set_title): Call REQUIRE_WINDOW_FOR_SETTER instead.
4659 * tui/tui-data.h (struct tui_win_info) <is_visible>: Check
4660 tui_active too.
4661 * tui/tui-layout.c (tui_apply_current_layout): Add an assert.
4662 * tui/tui.c (tui_enable): Move setting of tui_active earlier in
4663 the function.
4664
e0c23e11
AB
46652021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4666
4667 * python/py-tui.c (gdbpy_tui_set_title): Check that the new value
4668 for the title is not nullptr.
4669
1cf23996
AB
46702021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4671
4672 * tui-layout.c (saved_tui_windows): Delete.
4673 (tui_apply_current_layout): Don't make use of saved_tui_windows,
4674 call new get_windows member function instead.
4675 (tui_get_window_by_name): Check in tui_windows.
4676 (tui_layout_window::apply): Don't add to tui_windows.
4677 * tui-layout.h (tui_layout_base::get_windows): New member function.
4678 (tui_layout_window::get_windows): Likewise.
4679 (tui_layout_split::get_windows): Likewise.
4680
a53a2657
AB
46812021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4682
4683 * tui/tui-layout.c (tui_apply_current_layout): Restore the delete
4684 of the window objects.
4685
2708dbbd
AB
46862021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4687
4688 * python/python.c (gdbpy_print_stack): Reformat an error message.
4689
cd074e04
AB
46902021-02-08 Andrew Burgess <andrew.burgess@embecosm.com>
4691
4692 * tui/tui-interp.c (tui_command_line_handler): New function.
4693 (tui_interp::resume): Register tui_command_line_handler as the
4694 input_handler.
4695 * tui/tui-io.c (tui_inject_newline_into_command_window): New
4696 function.
4697 (tui_getc_1): Delete handling of '\n' and '\r'.
4698 * tui-io.h (tui_inject_newline_into_command_window): Declare.
4699
4cf28e91
HD
47002021-02-07 Hannes Domani <ssbssa@yahoo.de>
4701
4702 * tui/tui-regs.c (tui_data_window::display_registers_from):
4703 Mark invisible register sub windows.
4704 (tui_data_window::check_register_values): Ignore invisible
4705 register sub windows.
4706
3537bc23
HD
47072021-02-07 Hannes Domani <ssbssa@yahoo.de>
4708
4709 * tui/tui-regs.c (tui_data_item_window::rerender): Don't call
4710 n_spaces with a negative value.
4711
5fc2d6aa
HD
47122021-02-07 Hannes Domani <ssbssa@yahoo.de>
4713
4714 * tui/tui-regs.c (tui_data_window::display_registers_from):
4715 Add refresh_window call.
4716
83962f83
HD
47172021-02-07 Hannes Domani <ssbssa@yahoo.de>
4718
4719 * python/py-frame.c (frapy_richcompare): Compare frame_id_is_next.
4720
0110ec82
SM
47212021-02-05 Simon Marchi <simon.marchi@polymtl.ca>
4722
4723 * symmisc.c (std_in, std_out, std_err): Remove.
4724 (_initialize_symmisc): Don't set std_in, std_out and std_err.
4725
7c6944ab
TV
47262021-02-05 Tom de Vries <tdevries@suse.de>
4727
4728 PR breakpoints/27330
4729 * breakpoint.c (create_exception_master_breakpoint): Handle case that
4730 glibc object file has debug info.
4731
e77b0004
TV
47322021-02-05 Tom de Vries <tdevries@suse.de>
4733
4734 PR symtab/27333
4735 * dwarf2/read.c (process_psymtab_comp_unit): Handle DW_TAG_type_unit.
4736
0e857c82
TV
47372021-02-05 Tom de Vries <tdevries@suse.de>
4738
4739 PR breakpoints/27313
4740 * break-catch-syscall.c (catch_syscall_split_args): Reject negative
4741 syscall numbers.
4742
bdfea17e
TT
47432021-02-05 Tom Tromey <tom@tromey.com>
4744
4745 * compile/compile-c-support.c (get_compile_context)
4746 (c_get_compile_context, cplus_get_compile_context): Change return
4747 type.
4748 * language.c (language_defn::get_compile_instance): New method.
4749 * language.h (language_defn::get_compile_instance): Change return
4750 type. No longer inline.
4751 * c-lang.c (c_language::get_compile_instance): Change return type.
4752 (cplus_language::get_compile_instance): Change return type.
4753 * c-lang.h (c_get_compile_context, cplus_get_compile_context):
4754 Change return type.
4755 * compile/compile.c (compile_to_object): Update.
4756
1b30f421
TT
47572021-02-05 Tom Tromey <tom@tromey.com>
4758
4759 * parser-defs.h (write_exp_symbol_reference): Declare.
4760 * parse.c (write_exp_symbol_reference): New function.
4761 * p-exp.y (variable): Use write_exp_symbol_reference.
4762 * m2-exp.y (variable): Use write_exp_symbol_reference.
4763 * f-exp.y (variable): Use write_exp_symbol_reference.
4764 * d-exp.y (PrimaryExpression): Use write_exp_symbol_reference.
4765 * c-exp.y (variable): Use write_exp_symbol_reference.
4766
ae710496
TV
47672021-02-05 Tom de Vries <tdevries@suse.de>
4768
4769 PR exp/27265
4770 * valarith.c (complex_binop): Throw an error if complex type can't
4771 be created.
4772
d3b54e63
TV
47732021-02-05 Tom de Vries <tdevries@suse.de>
4774
4775 PR symtab/27307
4776 * dwarf2/read.c (create_cus_from_debug_names_list): Add missing
4777 return.
4778
fc9a13fb
TV
47792021-02-05 Tom de Vries <tdevries@suse.de>
4780
4781 * dwarf2/read.c (create_cus_from_debug_names_list): Fix indentation.
4782
04b4939b
MF
47832021-02-04 Mike Frysinger <vapier@gentoo.org>
4784
4785 * configure.tgt (riscv*-*-*): Set gdb_sim.
4786
6ff267e1
SM
47872021-02-04 Simon Marchi <simon.marchi@polymtl.ca>
4788
4789 * target.c (target_is_non_stop_p): Return bool.
4790 * target.h (target_is_non_stop_p): Return bool.
4791
fdbc5215
SM
47922021-02-04 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * record-full.c (record_full_async_inferior_event_handler):
4795 Don't clear async event handler.
4796 (record_full_base_target::wait): Clear async event handler at
4797 beginning.
4798
85d3ad8e
SM
47992021-02-04 Simon Marchi <simon.marchi@efficios.com>
4800
4801 * record-btrace.c (record_btrace_handle_async_inferior_event):
4802 Don't clear async event handler.
4803 (record_btrace_target::wait): Clear async event handler at
4804 beginning.
4805
baa8575b
SM
48062021-02-04 Simon Marchi <simon.marchi@efficios.com>
4807
4808 * remote.c (remote_target::wait): Clear async event handler at
4809 beginning, mark if needed at the end.
4810 (remote_async_inferior_event_handler): Don't set or clear async
4811 event handler.
4812
6b36ddeb
SM
48132021-02-04 Simon Marchi <simon.marchi@efficios.com>
4814
4815 * async-event.h (async_event_handler_func): Add documentation.
4816 * async-event.c (check_async_event_handlers): Don't clear
4817 async_event_handler ready flag.
4818 * infrun.c (infrun_async_inferior_event_handler): Clear ready
4819 flag.
4820 * record-btrace.c (record_btrace_handle_async_inferior_event):
4821 Likewise.
4822 * record-full.c (record_full_async_inferior_event_handler):
4823 Likewise.
4824 * remote-notif.c (remote_async_get_pending_events_handler):
4825 Likewise.
4826 * remote.c (remote_async_inferior_event_handler): Likewise.
4827
72d383bb
SM
48282021-02-03 Simon Marchi <simon.marchi@polymtl.ca>
4829
4830 * infrun.c (handle_inferior_event): Move stop_soon variable to
4831 inner scope.
4832
408f6686
PA
48332021-02-03 Pedro Alves <pedro@palves.net>
4834
4835 * infcmd.c (detach_command): Hold strong reference to target, and
4836 if all-stop on entry, restart threads on exit.
4837 * infrun.c (switch_back_to_stepped_thread): Factor out bits to ...
4838 (restart_stepped_thread): ... this new function. Also handle
4839 trap_expected.
4840 (restart_after_all_stop_detach): New function.
4841 * infrun.h (restart_after_all_stop_detach): Declare.
4842
ac7d717c
PA
48432021-02-03 Pedro Alves <pedro@palves.net>
4844
4845 * infrun.c (struct step_over_info): Initialize fields.
4846 (prepare_for_detach): Handle ongoing in-line step over.
4847
e87f0fe8
PA
48482021-02-03 Pedro Alves <pedro@palves.net>
4849
4850 * linux-nat.c (linux_nat_target::detach): Remove breakpoints
4851 here...
4852 * remote.c (remote_target::remote_detach_1): ... and here ...
4853 * target.c (target_detach): ... instead of here.
4854 * target.h (target_ops::detach): Add comment.
4855
8ff53139
PA
48562021-02-03 Pedro Alves <pedro@palves.net>
4857
4858 * infrun.c (struct wait_one_event): Move higher up.
4859 (prepare_for_detach): Abort in-progress displaced steps instead of
4860 letting them complete.
4861 (handle_one): If the inferior is detaching, don't add the thread
4862 back to the global step-over chain.
4863 (restart_threads): Don't restart threads if detaching.
4864 (handle_signal_stop): Remove inferior::detaching reference.
4865
91475068
PA
48662021-02-03 Pedro Alves <pedro@palves.net>
4867
4868 * infrun.c (prepare_for_detach): Don't release scoped_restore
4869 before returning.
4870
d758e62c
PA
48712021-02-03 Pedro Alves <pedro@palves.net>
4872
4873 * infrun.c (handle_one): New function, factored out from ...
4874 (stop_all_threads): ... here.
4875
b0083dd7
PA
48762021-02-03 Pedro Alves <pedro@palves.net>
4877
4878 * remote.c (remote_notif_stop_ack): Don't error out on
4879 TARGET_WAITKIND_IGNORE; instead, just ignore the notification.
4880 (remote_target::discard_pending_stop_replies): Don't delete
4881 in-flight notification; instead, clear its contents.
4882
621cc310
PA
48832021-02-03 Pedro Alves <pedro@palves.net>
4884
4885 * remote.c (extended_remote_target::attach): Set target async in
4886 the target-non-stop path too.
4887
2ab76a18
PA
48882021-02-03 Pedro Alves <pedro@palves.net>
4889
4890 PR gdb/27055
4891 * infrun.c (handle_signal_stop): Move main context_switch call
4892 earlier, before STOP_QUIETLY_NO_SIGSTOP.
4893
2e3773ff
LS
48942021-02-02 Lancelot SIX <lsix@lancelotsix.com>
4895
4896 * NEWS (Changed commands): Add entry for the behavior change of
4897 the inferior command.
4898 * inferior.c (inferior_command): When no argument is given to the
4899 inferior command, display info about the currently selected
4900 inferior.
4901
e57933dc
SM
49022021-02-02 Simon Marchi <simon.marchi@efficios.com>
4903
4904 * dwarf2/read.c (read_loclist_index, read_rnglist_index): Return
4905 a sect_offset.
4906 (read_attribute_reprocess): Adjust.
4907
2b0c7f41
SM
49082021-02-02 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * dwarf2/die.h (struct die_info) <ranges_base>: Split in...
4911 <gnu_ranges_base>: ... this...
4912 <rnglists_base>: ... and this.
4913 * dwarf2/read.c (struct dwarf2_cu) <ranges_base>: Split in...
4914 <gnu_ranges_base>: ... this...
4915 <rnglists_base>: ... and this.
4916 (read_cutu_die_from_dwo): Adjust
4917 (dwarf2_get_pc_bounds): Adjust
4918 (dwarf2_record_block_ranges): Adjust.
4919 (read_full_die_1): Adjust
4920 (partial_die_info::read): Adjust.
4921 (read_rnglist_index): Adjust.
4922
a1c40103
SM
49232021-02-02 Simon Marchi <simon.marchi@efficios.com>
4924
4925 PR gdb/26813
4926 * dwarf2/read.c (read_loclists_rnglists_header): Add
4927 header_offset parameter and use it.
4928 (read_loclist_index): Read header of the current contribution,
4929 not the one at the beginning of the section.
4930 (read_rnglist_index): Likewise.
4931
b1829e1b
SM
49322021-02-02 Simon Marchi <simon.marchi@efficios.com>
4933
4934 PR gdb/26813
4935 * dwarf2/attribute.h (struct attribute) <set_unsigned>: Clear
4936 requires_reprocessing flag.
4937 * dwarf2/attribute.c (attribute::form_is_unsigned): Handle
4938 DW_FORM_loclistx.
4939 (attribute::form_requires_reprocessing): Handle DW_FORM_rnglistx
4940 and DW_FORM_loclistx.
4941 * dwarf2/read.c (read_attribute_reprocess): Use set_unsigned
4942 instead of set_address for DW_FORM_loclistx and
4943 DW_FORM_rnglistx.
4944
0c800c6e
SM
49452021-02-02 Simon Marchi <simon.marchi@efficios.com>
4946
4947 * dwarf2/read.c (read_loclist_index): Remove bound check for
4948 start of offset.
4949 (read_rnglist_index): Likewise.
4950
05787bad
SM
49512021-02-02 Simon Marchi <simon.marchi@efficios.com>
4952
4953 * dwarf2/read.c (read_loclist_index): Add bound check for the end
4954 of the offset.
4955
5e4d9bbc
SM
49562021-02-02 Simon Marchi <simon.marchi@efficios.com>
4957
4958 * dwarf2/read.c (read_rnglist_index): Fix bound check.
4959
a0c1eeba
SM
49602021-02-02 Simon Marchi <simon.marchi@efficios.com>
4961
4962 * dwarf2/read.c (read_loclist_index): Change complaints into
4963 errors.
4964
2bd3e4b8
TV
49652021-02-02 Tom de Vries <tdevries@suse.de>
4966
4967 PR symtab/24620
4968 * dwarf2/index-write.c (write_one_signatured_type): Skip if
4969 psymtab == nullptr.
4970
82a1fd3a
AB
49712021-02-01 Andrew Burgess <andrew.burgess@embecosm.com>
4972
4973 * Makefile.in (HFILES_NO_SRCDIR): Add corefile.h.
4974 * gcore.c (struct gcore_collect_regset_section_cb_data): Moved
4975 here from linux-tdep.c and given a new name. Minor cleanups.
4976 (gcore_collect_regset_section_cb): Likewise.
4977 (gcore_collect_thread_registers): Likewise.
4978 (gcore_build_thread_register_notes): Likewise.
4979 (gcore_find_signalled_thread): Likewise.
4980 * gcore.h (gcore_build_thread_register_notes): Declare.
4981 (gcore_find_signalled_thread): Declare.
4982 * fbsd-tdep.c: Add 'gcore.h' include.
4983 (struct fbsd_collect_regset_section_cb_data): Delete.
4984 (fbsd_collect_regset_section_cb): Delete.
4985 (fbsd_collect_thread_registers): Delete.
4986 (struct fbsd_corefile_thread_data): Delete.
4987 (fbsd_corefile_thread): Delete.
4988 (fbsd_make_corefile_notes): Call
4989 gcore_build_thread_register_notes instead of the now deleted
4990 FreeBSD code.
4991 * linux-tdep.c: Add 'gcore.h' include.
4992 (struct linux_collect_regset_section_cb_data): Delete.
4993 (linux_collect_regset_section_cb): Delete.
4994 (linux_collect_thread_registers): Delete.
4995 (linux_corefile_thread): Call
4996 gcore_build_thread_register_notes.
4997 (find_signalled_thread): Delete.
4998 (linux_make_corefile_notes): Call gcore_find_signalled_thread.
4999
ebde6f2d
TV
50002021-01-29 Tom de Vries <tdevries@suse.de>
5001
5002 PR breakpoints/26063
5003 * infrun.c (process_event_stop_test): Reset
5004 ecs->event_thread->current_line to 0 if is-stmt=n and frame has
5005 changed.
5006
0f93c3a2
AB
50072021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5008
5009 * thread.c (thr_try_catch_cmd): Replace swith_to_thread with an
5010 assert. Extend the header comment.
5011
f237f998
AB
50122021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5013
5014 * Makefile.in (SUBDIR_TUI_SRCS): Add tui/tui-location.c.
5015 (HFILES_NO_SRCDIR): Add tui/tui-location.h.
5016 * tui/tui-data.h (TUI_STATUS_WIN): Define.
5017 (tui_locator_win_info_ptr): Delete declaration.
5018 * tui/tui-disasm.c: Add 'tui/tui-location.h' include.
5019 (tui_disasm_window::set_contents): Fetch state from tui_location
5020 global.
5021 (tui_get_begin_asm_address): Likewise.
5022 * tui/tui-layout.c (tui_apply_current_layout): Remove special case
5023 for locator window.
5024 (get_locator_window): Delete.
5025 (initialize_known_windows): Treat locator window just like all the
5026 rest.
5027 * tui/tui-source.c: Add 'tui/tui-location.h' include.
5028 (tui_source_window::set_contents): Fetch state from tui_location
5029 global.
5030 (tui_source_window::showing_source_p): Likewise.
5031 * tui/tui-stack.c: Add 'tui/tui-location.h' include.
5032 (_locator): Delete.
5033 (tui_locator_win_info_ptr): Delete.
5034 (tui_locator_window::make_status_line): Fetch state from
5035 tui_location global.
5036 (tui_locator_window::rerender): Remove check of 'handle',
5037 reindent function body.
5038 (tui_locator_window::set_locator_fullname): Delete.
5039 (tui_locator_window::set_locator_info): Delete.
5040 (tui_update_locator_fullname): Delete.
5041 (tui_show_frame_info): Likewise.
5042 (tui_show_locator_content): Access window through TUI_STATUS_WIN.
5043 * tui/tui-stack.h (tui_locator_window::set_locator_info): Moved to
5044 tui/tui-location.h and renamed to
5045 tui_location_tracker::set_location.
5046 (tui_locator_window::set_locator_fullname): Moved to
5047 tui/tui-location.h and renamed to
5048 tui_location_tracker::set_fullname.
5049 (tui_locator_window::full_name): Delete.
5050 (tui_locator_window::proc_name): Delete.
5051 (tui_locator_window::line_no): Delete.
5052 (tui_locator_window::addr): Delete.
5053 (tui_locator_window::gdbarch): Delete.
5054 (tui_update_locator_fullname): Delete declaration.
5055 * tui/tui-wingeneral.c (tui_refresh_all): Removed special handling
5056 for locator window.
5057 * tui/tui-winsource.c: Add 'tui/tui-location.h' include.
5058 (tui_display_main): Call function on tui_location directly.
5059 * tui/tui.h (enum tui_win_type): Add STATUS_WIN.
5060 * tui/tui-location.c: New file.
5061 * tui/tui-location.h: New file.
5062
8ee511af
SM
50632021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5064
5065 * gdbtypes.h (get_type_arch): Rename to...
5066 (struct type) <arch>: ... this, update all users.
5067
6ac37371
SM
50682021-01-28 Simon Marchi <simon.marchi@polymtl.ca>
5069
5070 * gdbtypes.h (struct type) <arch>: Rename to...
5071 <arch_owner>: ... this, update all users.
5072 <objfile>: Rename to...
5073 <objfile_owner>: ... this, update all users.
5074
24cf6389
AB
50752021-01-28 Andrew Burgess <andrew.burgess@embecosm.com>
5076
5077 * gdbcmd.h (execute_command_to_string): Update comment.
5078 * top.c (execute_command_to_string): Update header comment.
5079
2a7f6487
TV
50802021-01-28 Tom de Vries <tdevries@suse.de>
5081
5082 PR breakpoints/27205
5083 * breakpoint.c (create_longjmp_master_breakpoint_probe)
5084 (create_longjmp_master_breakpoint_names): New function, factored out
5085 of ...
5086 (create_longjmp_master_breakpoint): ... here. Only try to install
5087 longjmp_names breakpoints in libc.so/libc.so.debug if installing probe
5088 breakpoint in libc.so failed.
5089
59b59f08
LS
50902021-01-27 Lancelot SIX <lsix@lancelotsix.com>
5091
5092 PR gdb/27133
5093 * cli/cli-interp.c (cli_interp_base::set_logging): Ensure the
5094 unique_ptr is released when the wrapped pointer is kept for later
5095 use.
5096
807f647c
MM
50972021-01-27 Matthew Malcomson <matthew.malcomson@arm.com>
5098
5099 * aarch64-tdep.c (aarch64_displaced_step_others): Account for
5100 BLR and BR instructions.
5101 * arch/aarch64-insn.h (enum aarch64_opcodes): Add BR opcode.
5102 (enum aarch64_masks): New.
5103
4ef367bf
TT
51042021-01-26 Tom Tromey <tromey@adacore.com>
5105
5106 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
5107 (DEBUG_EXCEPT): Use debug_prefixed_printf_cond.
5108 (windows_init_thread_list, windows_nat::handle_load_dll)
5109 (windows_nat::handle_unload_dll, windows_nat_target::resume)
5110 (windows_nat_target::resume)
5111 (windows_nat_target::get_windows_debug_event)
5112 (windows_nat_target::interrupt, windows_xfer_memory)
5113 (windows_nat_target::close): Update.
5114 * nat/windows-nat.c (DEBUG_EVENTS): Use
5115 debug_prefixed_printf_cond.
5116 (matching_pending_stop, fetch_pending_stop)
5117 (continue_last_debug_event): Update.
5118
4cb1265b
MS
51192020-12-17 Mihails Strasuns <mihails.strasuns@intel.com>
5120
5121 * linux-tdep.c (linux_make_mappings_corefile_notes): Start using
5122 elfcore_write_file_note.
5123
d0cc52bd
SV
51242021-01-26 Shahab Vahedi <shahab@synopsys.com>
5125
5126 * arc-tdep.c (arc_add_reggroups): New function.
5127 (arc_gdbarch_init): Call arc_add_reggroups.
5128
ac3571d9 51292021-01-26 Anton Kolesov <anton.kolesov@synopsys.com>
d56834cb
AK
5130
5131 * arc-tdep.c (arc_skip_prologue): Log "pc" address.
5132
9f6c202e
TV
51332021-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
5134 Simon Marchi <simon.marchi@polymtl.ca>
5135 Tom de Vries <tdevries@suse.de>
5136
5137 * dwarf2/read.c (partial_die_info::read): Use as_unsigned () for
5138 DW_AT_ranges.
5139
a625a8c9
TT
51402021-01-25 Tom Tromey <tromey@adacore.com>
5141
5142 * dwarf2/read.c (get_mpz): New function.
5143 (get_dwarf2_rational_constant): Use it.
5144
19184910
TT
51452021-01-25 Tom Tromey <tromey@adacore.com>
5146
5147 * ada-lang.c (resolve_subexp): Handle array context.
5148
b10bae18
TT
51492021-01-23 Tom Tromey <tom@tromey.com>
5150
5151 PR compile/25575
5152 * compile/compile-loc2c.c (note_register): New function.
5153 (pushf_register_address, pushf_register): Use it.
5154
3637a558
TT
51552021-01-23 Tom Tromey <tom@tromey.com>
5156
5157 * symtab.h (struct symbol_computed_ops) <generate_c_location>:
5158 Change type of "registers_used".
5159 * dwarf2/loc.h (dwarf2_compile_property_to_c): Update.
5160 * dwarf2/loc.c (dwarf2_compile_property_to_c)
5161 (locexpr_generate_c_location, loclist_generate_c_location): Change
5162 type of "registers_used".
5163 * compile/compile.h (compile_dwarf_expr_to_c)
5164 (compile_dwarf_bounds_to_c): Update.
5165 * compile/compile-loc2c.c (pushf_register_address)
5166 (pushf_register, do_compile_dwarf_expr_to_c)
5167 (compile_dwarf_expr_to_c, compile_dwarf_bounds_to_c): Change type
5168 of "registers_used".
5169 * compile/compile-c.h (generate_c_for_variable_locations):
5170 Update.
5171 * compile/compile-c-symbols.c (generate_vla_size)
5172 (generate_c_for_for_one_variable): Change type of
5173 "registers_used".
5174 (generate_c_for_variable_locations): Return std::vector.
5175 * compile/compile-c-support.c (generate_register_struct): Change
5176 type of "registers_used".
5177 (compute): Update.
5178
9f7f6cb8
TT
51792021-01-23 Tom Tromey <tom@tromey.com>
5180
5181 * compile/compile-internal.h (class compile_instance)
5182 <set_arguments>: Change return type.
5183 * compile/compile.c (compile_to_object): Remove call to reset.
5184 (compile_instance::set_arguments): Change return type.
5185
dd5ca05f
SM
51862021-01-23 Simon Marchi <simon.marchi@polymtl.ca>
5187
5188 * gdbtypes.c (copy_type_recursive): Use get_type_arch.
5189 * gdbtypes.h (struct type) <set_owner>: Add asserts.
5190
d3ee35db
LS
51912021-01-23 Lancelot SIX <lsix@lancelotsix.com>
5192
5193 * Makefile.in (SELFTESTS_SRCS): Add
5194 unittests/gdb_tilde_expand-selftests.c.
5195 * unittests/gdb_tilde_expand-selftests.c: New file.
5196
9d2d8a16
AB
51972021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5198
5199 PR cli/25956
5200 * NEWS: Mention new command.
5201 * cli/cli-style.c: Add 'cli/cli-setshow.h' include.
5202 (version_style): Define.
5203 (cli_style_option::cli_style_option): Add intensity parameter, and
5204 use as appropriate.
5205 (_initialize_cli_style): Register version style set/show commands.
5206 * cli/cli-style.h (cli_style_option): Add intensity parameter.
5207 (version_style): Declare.
5208 * top.c (print_gdb_version): Use version_stype, and styled_string
5209 to print the GDB version string.
5210
e7b43072
AB
52112021-01-22 Andrew Burgess <andrew.burgess@embecosm.com>
5212
5213 * utils.c (emit_style_escape): Only emit an escape sequence if the
5214 requested style is different than the current applied style.
5215 (fputs_maybe_filtered): Adjust the juggling of the wrap_style, and
5216 current applied_style.
5217 (fputs_styled): Remove is_default check.
5218 (fputs_styled_unfiltered): Likewise.
5219 (vfprintf_styled_no_gdbfmt): Likewise.
5220
2189c312
SM
52212021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5222
5223 * remote.h (remote_debug_printf): New.
5224 (remote_debug_printf_nofunc): New.
5225 (REMOTE_SCOPED_DEBUG_ENTER_EXIT): New.
5226 * remote.c: Use above macros throughout file.
5227
02349803
SM
52282021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5229
5230 * remote.h (remote_debug): Change to bool.
5231 * remote.c (remote_debug): Change to bool.
5232 (_initialize_remote): Adjust.
5233
cda09ec9
SM
52342021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5235
5236 * target.h (remote_debug): Move to...
5237 * remote.h (remote_debug): ... here.
5238 * top.c (remote_debug): Move to...
5239 * remote.c (remote_debug): ... here.
5240 * remote-sim.c: Include remote.h.
5241
baf2b57f
SM
52422021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5243
5244 * cli/cli-cmds.c (show_remote_debug): Remove.
5245 (show_remote_timeout): Remove.
5246 (_initialize_cli_cmds): Don't register commands.
5247 * remote.c (show_remote_debug): Move here.
5248 (show_remote_timeout): Move here.
5249 (_initialize_remote): Register commands.
5250
344e9841
SM
52512021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5252
5253 * gdbtypes.h (TYPE_OBJFILE): Remove, change all users to use the
5254 type::objfile method instead.
5255
30625020
SM
52562021-01-22 Simon Marchi <simon.marchi@polymtl.ca>
5257
5258 * gdbtypes.h (TYPE_OBJFILE_OWNED): Remove, update all users to
5259 use the type::is_objfile_owned method.
5260
5b7d941b
SM
52612021-01-22 Simon Marchi <simon.marchi@efficios.com>
5262
5263 * gdbtypes.h (TYPE_OBJFILE_OWNED): Adjust.
5264 (TYPE_OWNER): Remove.
5265 (TYPE_OBJFILE): Adjust.
5266 (struct main_type) <flag_objfile_owned>: Rename to...
5267 <m_flag_objfile_owned>: ... this.
5268 <owner>: Rename to...
5269 <m_owner>: ... this.
5270 (struct type) <is_objfile_owned, set_owner, objfile, arch>: New
5271 methods.
5272 (TYPE_ALLOC): Adjust.
5273 * gdbtypes.c (alloc_type): Adjust.
5274 (alloc_type_arch): Adjust.
5275 (alloc_type_copy): Adjust.
5276 (get_type_arch): Adjust.
5277 (smash_type): Adjust.
5278 (lookup_array_range_type): Adjust.
5279 (recursive_dump_type): Adjust.
5280 (copy_type_recursive): Adjust.
5281 * compile/compile-c-types.c (convert_func): Adjust.
5282 (convert_type_basic): Adjust.
5283 * compile/compile-cplus-types.c (compile_cplus_convert_func):
5284 Adjust.
5285 * language.c
5286 (language_arch_info::type_and_symbol::alloc_type_symbol):
5287 Adjust.
5288
d5d24e12
LM
52892021-01-21 Luis Machado <luis.machado@linaro.org>
5290
5291 * coffread.c (enter_linenos): Passing string to complaint.
5292 * valops.c (value_assign): Make array view.
5293
a59902a7
SM
52942021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5295
5296 * auto-load.h (debug_auto_load): Move here.
5297 (auto_load_debug_printf): New.
5298 * auto-load.c: Use auto_load_debug_printf.
5299 (debug_auto_load): Move to header.
5300 * linux-thread-db.c (try_thread_db_load): Use
5301 auto_load_debug_printf.
5302 * main.c (captured_main_1): Likewise.
5303
d3abc0ce
SM
53042021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5305
5306 * f-valprint.c (f77_array_offset_tbl): Remove.
5307
1e15fcac
SM
53082021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5309
5310 * gdb_bfd.c (bfd_cache_debug_printf): New, use throughout file.
5311
439706e6
SM
53122021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5313
5314 * ser-tcp.c (wait_for_connect): Use interruptible_select instead
5315 of gdb_select.
5316
325d39e4
HD
53172021-01-21 Hannes Domani <ssbssa@yahoo.de>
5318
5319 PR python/19151
5320 * python/py-breakpoint.c (bppy_get_location): Handle
5321 bp_hardware_breakpoint.
5322 (bppy_init): Likewise.
5323 (gdbpy_breakpoint_created): Likewise.
5324
7cb6d92a
SM
53252021-01-21 Simon Marchi <simon.marchi@polymtl.ca>
5326
5327 * arm-tdep.c (arm_debug_printf): Add and use throughout file.
5328
d4dd4fca
SM
53292021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5330
5331 * gdb_bfd.c (debug_bfd_cache): Change type to bool.
5332 (_initialize_gdb_bfd): Adjust.
5333
de53369b
SM
53342021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5335
5336 PR gdb/26828
5337 * dwarf2/read.c (maybe_queue_comp_unit): Add assertion.
5338
17e593e9
SM
53392021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5340
5341 * dwarf2/read.c (follow_die_offset): Add logging.
5342 (dwarf2_per_objfile::age_comp_units): Add logging.
5343
6bd434d6
SM
53442021-01-20 Simon Marchi <simon.marchi@polymtl.ca>
5345
5346 * aarch64-linux-tdep.c (aarch64_linux_record_tdep): Make static.
5347 * aarch64-tdep.c (tdesc_aarch64_list, aarch64_prologue_unwind,
5348 aarch64_stub_unwind, aarch64_normal_base, ): Make static.
5349 * arm-linux-tdep.c (arm_prologue_unwind): Make static.
5350 * arm-tdep.c (struct frame_unwind): Make static.
5351 * auto-load.c (auto_load_safe_path_vec): Make static.
5352 * csky-tdep.c (csky_stub_unwind): Make static.
5353 * gdbarch.c (gdbarch_data_registry): Make static.
5354 * gnu-v2-abi.c (gnu_v2_abi_ops): Make static.
5355 * i386-netbsd-tdep.c (i386nbsd_mc_reg_offset): Make static.
5356 * i386-tdep.c (i386_frame_setup_skip_insns,
5357 i386_tramp_chain_in_reg_insns, i386_tramp_chain_on_stack_insns):
5358 Make static.
5359 * infrun.c (observer_mode): Make static.
5360 * linux-nat.c (sigchld_action): Make static.
5361 * linux-thread-db.c (thread_db_list): Make static.
5362 * maint-test-options.c (maintenance_test_options_list):
5363 * mep-tdep.c (mep_csr_registers): Make static.
5364 * mi/mi-cmds.c (struct mi_cmd_stats): Remove struct type name.
5365 (stats): Make static.
5366 * nat/linux-osdata.c (struct osdata_type): Make static.
5367 * ppc-netbsd-tdep.c (ppcnbsd_reg_offsets): Make static.
5368 * progspace.c (last_program_space_num): Make static.
5369 * python/py-param.c (struct parm_constant): Remove struct type
5370 name.
5371 (parm_constants): Make static.
5372 * python/py-record-btrace.c (btpy_list_methods): Make static.
5373 * python/py-record.c (recpy_gap_type): Make static.
5374 * record.c (record_goto_cmdlist): Make static.
5375 * regcache.c (regcache_descr_handle): Make static.
5376 * registry.h (DEFINE_REGISTRY): Make definition static.
5377 * symmisc.c (std_in, std_out, std_err): Make static.
5378 * top.c (previous_saved_command_line): Make static.
5379 * tracepoint.c (trace_user, trace_notes, trace_stop_notes): Make
5380 static.
5381 * unittests/command-def-selftests.c (nr_duplicates,
5382 nr_invalid_prefixcmd, lists): Make static.
5383 * unittests/observable-selftests.c (test_notification): Make
5384 static.
5385 * unittests/optional/assignment/1.cc (counter): Make static.
5386 * unittests/optional/assignment/2.cc (counter): Make static.
5387 * unittests/optional/assignment/3.cc (counter): Make static.
5388 * unittests/optional/assignment/4.cc (counter): Make static.
5389 * unittests/optional/assignment/5.cc (counter): Make static.
5390 * unittests/optional/assignment/6.cc (counter): Make static.
5391
a6c11cbb
JS
53922021-01-20 Joel Sherrill <joel@rtems.org>
5393
5394 PR gdb/27219
5395 * remote.c (struct remote_thread_info) <resume_state>: Rename
5396 to...
5397 <get_resume_state>: ... this.
5398 (remote_target::resume): Adjust.
5399 (remote_target::commit_resume): Adjust.
5400 (remote_target::select_thread_for_ambiguous_stop_reply): Adjust.
5401
6f52fdf4
SDJ
54022021-01-20 Sergio Durigan Junior <sergiodj@sergiodj.net>
5403 Tom Tromey <tom@tromey.com>
5404
5405 * stap-probe.c (stap_parse_single_operand): Handle '!'
5406 operator.
5407 (stap_parse_argument_conditionally): Likewise.
5408 Skip spaces after processing open-parenthesis sub-expression.
5409 (stap_parse_argument_1): Skip spaces after call to
5410 stap_parse_argument_conditionally.
5411 Handle case when right-side expression is a parenthesized
5412 sub-expression.
5413 Skip spaces after call to stap_parse_argument_1.
5414
1c3b85ad
LS
54152021-01-19 Lancelot SIX <lsix@lancelotsix.com>
5416
5417 * top.h (switch_thru_all_uis): Use DISABLE_COPY_AND_ASSIGN.
5418
a9a87d35
LM
54192021-01-19 Luis Machado <luis.machado@linaro.org>
5420
5421 * trad-frame.h (trad_frame_saved_reg) <set_value_bytes>: Allocate
5422 memory and save data.
5423 (trad_frame_set_value, trad_frame_set_realreg, trad_frame_set_addr)
5424 (trad_frame_set_unknown, trad_frame_set_value_bytes)
5425 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5426 (trad_frame_value_bytes_p): Remove.
5427 (trad_frame_reset_saved_regs): Adjust documentation.
5428 * trad-frame.c (trad_frame_alloc_saved_regs): Initialize via a
5429 constructor and reset the state of the registers.
5430 (trad_frame_value_p, trad_frame_addr_p, trad_frame_realreg_p)
5431 (trad_frame_value_bytes_p, trad_frame_set_value)
5432 (trad_frame_set_realreg, trad_frame_set_addr)
5433 (trad_frame_set_unknown, trad_frame_set_value_bytes): Remove.
5434 (trad_frame_set_reg_realreg): Update to call member function.
5435 (trad_frame_set_reg_addr, trad_frame_set_reg_value_bytes): Likewise.
5436 (trad_frame_get_prev_register): Likewise.
5437
5438 * aarch64-tdep.c (aarch64_analyze_prologue)
5439 (aarch64_analyze_prologue_test, aarch64_make_prologue_cache_1)
5440 (aarch64_prologue_prev_register): Update to use member functions.
5441 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind_cache): Likewise.
5442 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Likewise.
5443 * arc-tdep.c (arc_print_frame_cache, arc_make_frame_cache): Likewise.
5444 * arm-tdep.c (arm_make_prologue_cache, arm_exidx_fill_cache)
5445 (arm_make_epilogue_frame_cache): Likewise.
5446 * avr-tdep.c (avr_frame_unwind_cache)
5447 (avr_frame_prev_register): Likewise.
5448 * cris-tdep.c (cris_scan_prologue): Likewise.
5449 * csky-tdep.c (csky_frame_unwind_cache): Likewise.
5450 * frv-tdep.c (frv_analyze_prologue): Likewise.
5451 * hppa-tdep.c (hppa_frame_cache, hppa_fallback_frame_cache): Likewise.
5452 * lm32-tdep.c (lm32_frame_cache): Likewise.
5453 * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
5454 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
5455 * mips-tdep.c (set_reg_offset, mips_insn16_frame_cache)
5456 (mips_micro_frame_cache, mips_insn32_frame_cache): Likewise.
5457 (reset_saved_regs): Adjust to set realreg.
5458 * riscv-tdep.c (riscv_scan_prologue, riscv_frame_cache): Adjust to
5459 call member functions.
5460 * rs6000-tdep.c (rs6000_frame_cache, rs6000_epilogue_frame_cache)
5461 * s390-tdep.c (s390_prologue_frame_unwind_cache)
5462 (s390_backchain_frame_unwind_cache): Likewise.
5463 * score-tdep.c (score7_analyze_prologue)
5464 (score3_analyze_prologue, score_make_prologue_cache): Likewise.
5465 * sparc-netbsd-tdep.c (sparc32nbsd_sigcontext_saved_regs): Likewise.
5466 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5467 * sparc64-netbsd-tdep.c (sparc64nbsd_sigcontext_saved_regs): Likewise.
5468 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5469 * tilegx-tdep.c (tilegx_analyze_prologue)
5470 (tilegx_frame_cache): Likewise.
5471 * v850-tdep.c (v850_frame_cache): Likewise.
5472 * vax-tdep.c (vax_frame_cache): Likewise.
5473
bdec2917
LM
54742021-01-19 Luis Machado <luis.machado@linaro.org>
5475
5476 * frame.h (get_frame_register_bytes): Pass a gdb::array_view instead
5477 of buffer + length.
5478 (put_frame_register_bytes): Likewise.
5479 Adjust documentation.
5480 (get_frame_memory): Pass a gdb::array_view instead of buffer + length.
5481 (safe_frame_unwind_memory): Likewise.
5482 * frame.c (get_frame_register_bytes, put_frame_register_bytes)
5483 (get_frame_memory, safe_frame_unwind_memory): Adjust to use
5484 gdb::array_view.
5485 * amd64-fbsd-tdep.c (amd64fbsd_sigtramp_p): Likewise.
5486 * amd64-linux-tdep.c (amd64_linux_sigtramp_start): Likewise.
5487 * amd64-obsd-tdep.c (amd64obsd_sigtramp_p): Likewise.
5488 * arc-linux-tdep.c (arc_linux_is_sigtramp): Likewise.
5489 * cris-tdep.c (cris_sigtramp_start, cris_rt_sigtramp_start): Likewise.
5490 * dwarf2/loc.c (rw_pieced_value): Likewise.
5491 * hppa-tdep.c (hppa_frame_cache): Likewise.
5492 * i386-fbsd-tdep.c (i386fbsd_sigtramp_p): Likewise.
5493 * i386-gnu-tdep.c (i386_gnu_sigtramp_start): Likewise.
5494 * i386-linux-tdep.c (i386_linux_sigtramp_start)
5495 (i386_linux_rt_sigtramp_start): Likewise.
5496 * i386-obsd-tdep.c (i386obsd_sigtramp_p): Likewise.
5497 * i386-tdep.c (i386_register_to_value): Likewise.
5498 * i387-tdep.c (i387_register_to_value): Likewise.
5499 * ia64-tdep.c (ia64_register_to_value): Likewise.
5500 * m32r-linux-tdep.c (m32r_linux_sigtramp_start)
5501 (m32r_linux_rt_sigtramp_start): Likewise.
5502 * m68k-linux-tdep.c (m68k_linux_pc_in_sigtramp): Likewise.
5503 * m68k-tdep.c (m68k_register_to_value): Likewise.
5504 * mips-tdep.c (mips_register_to_value)
5505 (mips_value_to_register): Likewise.
5506 * ppc-fbsd-tdep.c (ppcfbsd_sigtramp_frame_sniffer)
5507 (ppcfbsd_sigtramp_frame_cache): Likewise.
5508 * ppc-obsd-tdep.c (ppcobsd_sigtramp_frame_sniffer)
5509 (ppcobsd_sigtramp_frame_cache): Likewise.
5510 * rs6000-tdep.c (rs6000_in_function_epilogue_frame_p)
5511 (rs6000_register_to_value): Likewise.
5512 * tilegx-tdep.c (tilegx_analyze_prologue): Likewise.
5513 * tramp-frame.c (tramp_frame_start): Likewise.
5514 * valops.c (value_assign): Likewise.
5515
ccbe4c82
LM
55162021-01-19 Luis Machado <luis.machado@linaro.org>
5517
5518 * aarch64-linux-tdep.c (aarch64_linux_restore_vreg): Pass in an
5519 array_view.
5520 * trad-frame.c (trad_frame_set_value_bytes): Use gdb::array_view
5521 instead of buffer and size.
5522 (trad_frame_set_reg_value_bytes): Likewise.
5523 * trad-frame.h (trad_frame_set_reg_value_bytes): Likewise.
5524 (trad_frame_set_value_bytes): Likewise.
5525
0e7620dc
MF
55262021-01-18 Mike Frysinger <vapier@gentoo.org>
5527
5528 * copyright.py (NOT_FSF_LIST): Delete sim/testsuite/sim/bfin/s21.s.
5529
6a9ad81c
AB
55302021-01-18 Andrew Burgess <andrew.burgess@embecosm.com>
5531
5532 * riscv-fbsd-tdep.c (riscv_fbsd_supply_gregset): Delete.
5533 (riscv_fbsd_gregset): Use riscv_supply_regset.
5534 (riscv_fbsd_fpregset): Likewise.
5535 * riscv-linux-tdep.c (riscv_linux_gregset): Likewise.
5536 (riscv_linux_fregset): Likewise.
5537 * riscv-tdep.c (riscv_supply_regset): Define new function.
5538 * riscv-tdep.h (riscv_supply_regset): Declare new function.
5539
d3d7d1ba
TV
55402021-01-18 Tom de Vries <tdevries@suse.de>
5541
5542 PR tdep/27172
5543 * nat/amd64-linux-siginfo.c (cpt_si_lower, cpt_si_upper, SEGV_BNDERR):
5544 New macro.
5545 (compat_siginfo_from_siginfo): Copy cpt_si_lower and cpt_si_upper
5546 for SEGV_BNDERR.
5547
aa2838cc
SM
55482021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5549
5550 * remote.c (class remote_target) <remote_hostio_send_command,
5551 remote_hostio_parse_result>: Constify parameter.
5552 (remote_hostio_parse_result): Likewise.
5553 (remote_target::remote_hostio_send_command): Adjust.
5554 (remote_target::remote_hostio_pread_vFile): Adjust.
5555 (remote_target::fileio_readlink): Adjust.
5556 (remote_target::fileio_fstat): Adjust.
5557
b5c8f22d
SM
55582021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5559
5560 * remote.c (remote_target::start_remote): Move wait_status to
5561 narrower scope.
5562
e3b2741b
SM
55632021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * remote.c (class remote_target):
5566 <add_current_inferior_and_thread>: Constify parameter.
5567 (stop_reply_extract_thread): Likewise.
5568 (remote_target::get_current_thread): Likewise.
5569 (remote_target::add_current_inferior_and_thread): Likewise.
5570
cecb1912
SM
55712021-01-18 Simon Marchi <simon.marchi@polymtl.ca>
5572
5573 * remote.c (class remote_target)
5574 <remote_unpack_thread_info_response,
5575 parse_threadlist_response>: Constify parameter and/or return
5576 value and or local variable.
5577 (stub_unpack_int): Likewise.
5578 (unpack_nibble): Likewise.
5579 (unpack_byte): Likewise.
5580 (unpack_int): Likewise.
5581 (unpack_string): Likewise.
5582 (unpack_threadid): Likewise.
5583 (remote_target::remote_unpack_thread_info_response): Likewise.
5584 (remote_target::parse_threadlist_response): Likewise.
5585
5a11fff0
AB
55862021-01-15 Andrew Burgess <andrew.burgess@embecosm.com>
5587
5588 * tui/tui.c (tui_is_window_visible): Compare to nullptr, not 0.
5589
17e89137
LS
55902021-01-14 Lancelot Six <lsix@lancelotsix.com>
5591
5592 * MAINTAINERS (Write After Approval): Add myself.
5593
58eadc4b
BE
55942021-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5595
5596 * trad-frame.c (trad_frame_alloc_saved_regs): Avoid compile-error
5597 because is_trivially_default_constructible was first implemented with
5598 gcc-5.
5599
5fae2a2c
TV
56002021-01-14 Tom de Vries <tdevries@suse.de>
5601
5602 PR breakpoints/27151
5603 * objfiles.h (in_plt_section): Handle .plt.sec.
5604
8f66807b
AB
56052021-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
5606
5607 PR gdb/26819
5608 * remote.c
5609 (remote_target::select_thread_for_ambiguous_stop_reply): New
5610 member function.
5611 (remote_target::process_stop_reply): Call
5612 select_thread_for_ambiguous_stop_reply.
5613
bd497355
SM
56142021-01-13 Simon Marchi <simon.marchi@efficios.com>
5615
5616 * record-btrace.c (class record_btrace_target): Remove.
5617 (record_btrace_target::commit_resume): Remove.
5618 * record-full.c (class record_full_target): Remove.
5619 (record_full_target::commit_resume): Remove.
5620
c9d22089
SM
56212021-01-13 Simon Marchi <simon.marchi@efficios.com>
5622
5623 * remote.c (enum class resume_state): New.
5624 (struct resumed_pending_vcont_info): New.
5625 (struct remote_thread_info) <resume_state, set_not_resumed,
5626 set_resumed_pending_vcont, resumed_pending_vcont_info,
5627 set_resumed, m_resume_state, m_resumed_pending_vcont_info>:
5628 New.
5629 <last_resume_step, last_resume_sig, vcont_resumed>: Remove.
5630 (remote_target::remote_add_thread): Adjust.
5631 (remote_target::process_initial_stop_replies): Adjust.
5632 (remote_target::resume): Adjust.
5633 (remote_target::commit_resume): Rely on state in
5634 remote_thread_info and not on tp->executing.
5635 (remote_target::process_stop_reply): Adjust.
5636
d8d1feb4
SM
56372021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5638
5639 * arc-tdep.h (arc_debug_printf): New.
5640 * arc-tdep.c: Use arc_debug_printf.
5641 * arc-linux-nat.c (arc_linux_nat_debug_printf): Add and use.
5642 * arc-linux-tdep.c (arc_linux_debug_printf): Add and use.
5643 * arc-newlib-tdep.c (arc_newlib_debug_printf): Add and use.
5644
fb0f5031
SM
56452021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5646
5647 * arc-tdep.h (arc_debug): Change type to bool.
5648 * arc-tdep.c (arc_debug): Change type to bool.
5649 (arc_analyze_prologue): Adjust.
5650 (_initialize_arc_tdep): Use add_setshow_boolean_cmd.
5651 * arc-linux-nat.c (ps_get_thread_area): Adjust.
5652
5bf7e91b
SM
56532021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5654
5655 * auto-load.c (auto_load_objfile_script_1): Use bool.
5656 (execute_script_contents): Use bool.
5657
db972fce
SM
56582021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5659
5660 * auto-load.h (auto_load_gdb_scripts_enabled): Return bool, move
5661 comment here.
5662 * auto-load.c (auto_load_gdb_scripts_enabled): Return bool, move
5663 comment to header.
5664 * extension-priv.h (struct extension_language_script_ops)
5665 <auto_load_enabled>: Return bool.
5666 * extension.h (ext_lang_auto_load_enabled): Return bool, move
5667 comment here.
5668 * extension.c (ext_lang_auto_load_enabled): Return bool, move
5669 comment to header.
5670 * guile/guile-header.h (gdbscm_auto_load_enabled): Return bool,
5671 move comment here.
5672 * guile/scm-auto-load.c (gdbscm_auto_load_enabled): Return bool,
5673 move comment to header.
5674 * python/python-header.h (gdbpy_auto_load_enabled): Return bool,
5675 move comment here.
5676 * python/py-auto-load.c (gdbpy_auto_load_enabled): Return bool,
5677 move comment to header.
5678
5e12f48f
SM
56792021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5680
5681 * auto-load.h (file_is_auto_load_safe): Change return type to
5682 bool, move comment here.
5683 * auto-load.c (file_is_auto_load_safe): Change return type and
5684 advice_printed to bool. Move comment to header.
5685
54ca9002
SM
56862021-01-13 Simon Marchi <simon.marchi@polymtl.ca>
5687
5688 * jit.c (jit_debug_printf): New, use throughout file.
5689
24a7f1b5
SM
56902021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5691
5692 * infrun.c (normal_stop): Fix indentation.
5693
fe7a351a
SM
56942021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5695
5696 * top.h (readnow_symbol_files, readnever_symbol_files): Move
5697 declarations to ...
5698 * symfile.h: ... here.
5699 * symfile.c: Update doc.
5700
16e9019e
SM
57012021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5702
5703 * target.h (baud_rate, serial_parity): Move declarations...
5704 * serial.h: ... here.
5705 * main.c: Include serial.h.
5706 * serial.c (baud_rate, serial_parity): Update doc.
5707
b2f2ae0d
SM
57082021-01-12 Simon Marchi <simon.marchi@polymtl.ca>
5709
5710 * top.c (pre_init_ui_hook): Remove.
5711
5291fe3c
SP
57122021-01-12 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
5713
5714 * aarch64-tdep.c (aarch64_vnh_type): Add "bf" field in h registers.
5715 (aarch64_vnv_type): Add "bf" type in h field of v registers.
5716 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerated.
5717 * features/aarch64-fpu.xml: Add bfloat16 type.
5718
ce38f5ed
AB
57192021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5720
5721 * expprint.c (dump_subexp_body_standard): Handle OP_BOOL.
5722
7c654b71
AB
57232021-01-12 Andrew Burgess <andrew.burgess@embecosm.com>
5724
5725 * f-exp.y (dot_ops): Rename to...
5726 (fortran_operators): ...this. Add a header comment. Add symbol
5727 based operators.
5728 (yylex): Update to use fortran_operators not dot_ops. Remove
5729 special handling for '**', this is now included in
5730 fortran_operators.
5731
c6185dce
SM
57322021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5733
5734 * arch/aarch64-insn.h (aarch64_debug_printf): New.
5735 * arch/aarch64-insn.c: Use aarch64_debug_printf.
5736 * aarch64-tdep.c: Use aarch64_debug_printf.
5737
eef401dc
SM
57382021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5739
5740 * solib-aix.c (solib_aix_debug_printf): New, use throughout
5741 file.
5742
062eaacb
SM
57432021-01-11 Simon Marchi <simon.marchi@polymtl.ca>
5744
5745 * jit.c (jit_debug): Change type to bool.
5746 (_initialize_jit): Adjust.
5747
54585eee
TT
57482021-01-09 Tom Tromey <tom@tromey.com>
5749
5750 PR compile/23672
5751 * compile/compile.c (compile_to_object): Avoid crash when
5752 osabi_triplet_regexp returns NULL.
5753
bc167b6b
TT
57542021-01-09 Tom Tromey <tom@tromey.com>
5755
5756 * tracepoint.h (class collection_list) <append_exp>: Take a
5757 std::string.
5758 * tracepoint.c (collection_list::append_exp): Take a std::string.
5759 (encode_actions_1): Update.
5760
8fc48b79
TT
57612021-01-08 Tom Tromey <tromey@adacore.com>
5762
5763 * parse.c (parse_expression): Add void_context_p parameter. Use
5764 parse_exp_in_context.
5765 * printcmd.c (print_command_1): Change voidprint to bool. Pass to
5766 parse_expression.
5767 (print_command, call_command): Update.
5768 * expression.h (parse_expression): Add void_context_p parameter.
5769
3c8c6de2
AB
57702021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5771
5772 * value.c (set_value_component_location): Adjust the VALUE_LVAL
5773 for internalvar components that have a dynamic location.
5774
1940319c
TV
57752021-01-08 Tom de Vries <tdevries@suse.de>
5776
5777 PR gdb/26881
5778 * breakpoint.c (create_exception_master_breakpoint_probe)
5779 (create_exception_master_breakpoint_hook): Factor out
5780 of ...
5781 (create_exception_master_breakpoint): ... here. Only try to install
5782 the master exception breakpoint in objfile.debug using the
5783 _Unwind_DebugHook method, if the install using probes in objfile
5784 failed.
5785
e3436813
AB
57862021-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
5787
5788 * f-lang.c (fortran_value_subarray): Call value_from_component.
5789
e904f56d
MF
57902021-01-07 Mike Frysinger <vapier@gentoo.org>
5791
5792 * remote-sim.c: Include memory-map.h.
5793 (gdbsim_target): Define memory_map override.
5794 (gdbsim_target::memory_map): Define.
5795
959d6a67
TT
57962021-01-07 Tom Tromey <tromey@adacore.com>
5797
5798 * ada-lang.c (do_full_match): Conditionally skip "_ada_" prefix.
5799
d4813f10
TT
58002021-01-07 Tom Tromey <tromey@adacore.com>
5801
5802 * ada-lang.c (add_component_interval): Start loop using vector's
5803 updated size.
5804
b49180ac
TT
58052021-01-06 Tom Tromey <tromey@adacore.com>
5806
5807 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD, BINOP_SUB>:
5808 Do not cast result.
5809 * valarith.c (fixed_point_binop): Handle multiplication
5810 and division specially.
5811 * valops.c (value_to_gdb_mpq): New function.
5812 (value_cast_to_fixed_point): Use it.
5813
55195361
HD
58142021-01-05 Hannes Domani <ssbssa@yahoo.de>
5815
5816 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5817 Call wnoutrefresh instead of tui_win_info::refresh_window.
5818
1b6d4bb2
HD
58192021-01-05 Hannes Domani <ssbssa@yahoo.de>
5820
5821 * tui/tui-source.c (tui_source_window::show_line_number):
5822 Redraw second space after line number.
5823
b5ff370e
HD
58242021-01-05 Hannes Domani <ssbssa@yahoo.de>
5825
5826 PR tui/26927
5827 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
5828 Fix source pad size in prefresh.
5829 (tui_source_window_base::show_source_content): Grow source pad
5830 if necessary.
5831
c68ea49f
MF
58322021-01-04 Mike Frysinger <vapier@gentoo.org>
5833
5834 * bfin-tdep.c (bfin_push_dummy_call): Use align_up.
5835 (bfin_frame_align): Use align_down.
5836
e4ad960a
TV
58372021-01-04 Tom de Vries <tdevries@suse.de>
5838
5839 * buildsym.c (buildsym_compunit::record_line): Filter out end-of-seq
5840 terminators that do not terminate anything.
5841
3ec3145c
SM
58422021-01-04 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * debug.c (debug_print_depth): New.
5845 * infrun.h (INFRUN_SCOPED_DEBUG_START_END): New.
5846 (INFRUN_SCOPED_DEBUG_ENTER_EXIT): New.
5847 * infrun.c (start_step_over): Use
5848 INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5849 (proceed): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT and
5850 INFRUN_SCOPED_DEBUG_START_END.
5851 (fetch_inferior_event): Use INFRUN_SCOPED_DEBUG_ENTER_EXIT.
5852
e71daf80
SM
58532021-01-04 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * infrun.c (print_target_wait_results): Use infrun_debug_printf.
5856
335709bc
SM
58572021-01-04 Simon Marchi <simon.marchi@efficios.com>
5858
5859 * utils.c (vfprintf_unfiltered): Print timestamp only when
5860 previous debug output ended with a newline.
5861
098caef4
LM
58622021-01-04 Luis Machado <luis.machado@linaro.org>
5863
5864 Update all users of trad_frame_saved_reg to use the new member
5865 functions.
5866
5867 Remote all struct keywords from declarations of trad_frame_saved_reg
5868 types, except on forward declarations.
5869
5870 * aarch64-tdep.c: Update.
5871 * alpha-mdebug-tdep.c: Update.
5872 * alpha-tdep.c: Update.
5873 * arc-tdep.c: Update.
5874 * arm-tdep.c: Update.
5875 * avr-tdep.c: Update.
5876 * cris-tdep.c: Update.
5877 * csky-tdep.c: Update.
5878 * frv-tdep.c: Update.
5879 * hppa-linux-tdep.c: Update.
5880 * hppa-tdep.c: Update.
5881 * hppa-tdep.h: Update.
5882 * lm32-tdep.c: Update.
5883 * m32r-linux-tdep.c: Update.
5884 * m32r-tdep.c: Update.
5885 * m68hc11-tdep.c: Update.
5886 * mips-tdep.c: Update.
5887 * moxie-tdep.c: Update.
5888 * riscv-tdep.c: Update.
5889 * rs6000-tdep.c: Update.
5890 * s390-linux-tdep.c: Update.
5891 * s390-tdep.c: Update.
5892 * score-tdep.c: Update.
5893 * sparc-netbsd-tdep.c: Update.
5894 * sparc-sol2-tdep.c: Update.
5895 * sparc64-fbsd-tdep.c: Update.
5896 * sparc64-netbsd-tdep.c: Update.
5897 * sparc64-obsd-tdep.c: Update.
5898 * sparc64-sol2-tdep.c: Update.
5899 * tilegx-tdep.c: Update.
5900 * v850-tdep.c: Update.
5901 * vax-tdep.c: Update.
5902
5903 * frame-unwind.c (frame_unwind_got_bytes): Make parameter const.
5904 * frame-unwind.h (frame_unwind_got_bytes): Likewise.
5905
5906 * trad-frame.c: Update.
5907 Remove TF_REG_* enum.
5908 (trad_frame_alloc_saved_regs): Add a static assertion to check for
5909 a trivially-constructible struct.
5910 (trad_frame_reset_saved_regs): Adjust to use member function.
5911 (trad_frame_value_p): Likewise.
5912 (trad_frame_addr_p): Likewise.
5913 (trad_frame_realreg_p): Likewise.
5914 (trad_frame_value_bytes_p): Likewise.
5915 (trad_frame_set_value): Likewise.
5916 (trad_frame_set_realreg): Likewise.
5917 (trad_frame_set_addr): Likewise.
5918 (trad_frame_set_unknown): Likewise.
5919 (trad_frame_set_value_bytes): Likewise.
5920 (trad_frame_get_prev_register): Likewise.
5921 * trad-frame.h: Update.
5922 (trad_frame_saved_reg_kind): New enum.
5923 (struct trad_frame_saved_reg) <addr, realreg, data>: Remove.
5924 <m_kind, m_reg>: New member fields.
5925 <set_value, set_realreg, set_addr, set_unknown, set_value_bytes>
5926 <kind, value, realreg, addr, value_bytes, is_value, is_realreg>
5927 <is_addr, is_unknown, is_value_bytes>: New member functions.
5928
9898e882
SM
59292021-01-02 Simon Marchi <simon.marchi@polymtl.ca>
5930
5931 * target-float.c: Fix typos.
5932
b66b4e65
HD
59332021-01-02 Hannes Domani <ssbssa@yahoo.de>
5934
5935 * gdb-gdb.py.in: Fix main_type.flds_bnds.bounds pretty printer.
5936
b5b5650a
JB
59372021-01-01 Joel Brobecker <brobecker@adacore.com>
5938
5939 * gdbarch.sh: Update copyright year range.
5940
3666a048
JB
59412021-01-01 Joel Brobecker <brobecker@adacore.com>
5942
5943 Update copyright year range in copyright header of all GDB files.
5944
ff7e39b6
JB
59452021-01-01 Joel Brobecker <brobecker@adacore.com>
5946
5947 * copyright.py (get_update_list): Add "gdbserver" and "gdbsupport"
5948 to the list of directories to update.
5949
2b47c078
JB
59502021-01-01 Joel Brobecker <brobecker@adacore.com>
5951
5952 * top.c (print_gdb_version): Update copyright year.
5953
9e5e03df 59542021-01-01, 21 Joel Brobecker <brobecker@adacore.com>
c8f02daa 5955
476923f1 5956 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2020.
c8f02daa 5957
476923f1 5958For older changes see ChangeLog-2020.
c906108c
SS
5959\f
5960Local Variables:
5961mode: change-log
5962left-margin: 8
5963fill-column: 74
5964version-control: never
57da7796 5965coding: utf-8
c906108c 5966End: